@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
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { defineComponent as j, ref as b, useId as A, watch as N, openBlock as o, createBlock as V, Teleport as M, createElementBlock as n, unref as e, createVNode as h, Transition as k, withCtx as _, normalizeStyle as w, createCommentVNode as r, normalizeClass as S, createElementVNode as i, mergeProps as C, renderSlot as v, toDisplayString as P } from "vue";
|
|
2
|
+
import { useI18n as T } from "vue-i18n";
|
|
3
|
+
import { _ as W } from "./Icon.vue_vue_type_script_lang-VvcV2Bzo.js";
|
|
4
|
+
import { a as F } from "./mediaQuery-CygcXmFW.js";
|
|
5
|
+
import { u as L } from "./useDialog-CXR3hN0G.js";
|
|
6
|
+
import { u as O } from "./useSheetDrag-OsD6Eb6I.js";
|
|
7
|
+
const Q = ["aria-labelledby"], q = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "flex justify-center pt-1.5",
|
|
10
|
+
"aria-hidden": "true"
|
|
11
|
+
}, G = ["id"], H = ["aria-label"], J = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "shrink-0 border-t border-border-separator bg-surface-cell px-4 pt-3 pb-[max(0.75rem,var(--app-safe-bottom))]"
|
|
14
|
+
}, ee = /* @__PURE__ */ j({
|
|
15
|
+
__name: "Sheet",
|
|
16
|
+
props: {
|
|
17
|
+
title: { default: void 0 },
|
|
18
|
+
grouped: { type: Boolean, default: !1 }
|
|
19
|
+
},
|
|
20
|
+
emits: ["presented", "dismissed"],
|
|
21
|
+
setup(z, { expose: B, emit: D }) {
|
|
22
|
+
const l = z, y = D, { t: I } = T(), t = F("(max-width: 1023px), (pointer: coarse)"), u = b(!1), $ = () => {
|
|
23
|
+
c.value || (u.value = !1);
|
|
24
|
+
}, m = b(null), g = b(null), f = A(), d = L(m, {
|
|
25
|
+
initialFocus: "panel",
|
|
26
|
+
onPresented: () => y("presented"),
|
|
27
|
+
onDismissed: () => y("dismissed")
|
|
28
|
+
}), { isOpen: c } = d;
|
|
29
|
+
N(c, (a) => {
|
|
30
|
+
a && (u.value = !0);
|
|
31
|
+
}, { flush: "sync" });
|
|
32
|
+
const s = O({
|
|
33
|
+
enabled: t,
|
|
34
|
+
panel: m,
|
|
35
|
+
body: g,
|
|
36
|
+
onDismiss: () => (d.dismissWithoutAsking(), !0)
|
|
37
|
+
});
|
|
38
|
+
function E() {
|
|
39
|
+
s.reset(), d.present();
|
|
40
|
+
}
|
|
41
|
+
function p() {
|
|
42
|
+
d.dismissWithoutAsking();
|
|
43
|
+
}
|
|
44
|
+
return B({ present: E, dismiss: p }), (a, x) => (o(), V(M, { to: "body" }, [
|
|
45
|
+
u.value ? (o(), n("div", {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "relative z-9999",
|
|
48
|
+
role: "dialog",
|
|
49
|
+
"aria-modal": "true",
|
|
50
|
+
"aria-labelledby": l.title ? e(f) : void 0
|
|
51
|
+
}, [
|
|
52
|
+
h(k, {
|
|
53
|
+
appear: "",
|
|
54
|
+
"enter-active-class": "transition-opacity duration-motion-normal ease-motion-standard",
|
|
55
|
+
"enter-from-class": "opacity-0",
|
|
56
|
+
"leave-active-class": "pointer-events-none transition-opacity duration-motion-normal ease-motion-standard",
|
|
57
|
+
"leave-to-class": "opacity-0"
|
|
58
|
+
}, {
|
|
59
|
+
default: _(() => [
|
|
60
|
+
e(c) ? (o(), n("div", {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: "fixed inset-0 bg-scrim",
|
|
63
|
+
style: w(e(s).backdropStyle.value),
|
|
64
|
+
"aria-hidden": "true",
|
|
65
|
+
onClick: p
|
|
66
|
+
}, null, 4)) : r("", !0)
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}),
|
|
70
|
+
h(k, {
|
|
71
|
+
appear: "",
|
|
72
|
+
"enter-active-class": "transition-transform duration-motion-sheet ease-motion-sheet",
|
|
73
|
+
"enter-from-class": e(t) ? "translate-y-full" : "translate-x-full",
|
|
74
|
+
"leave-active-class": "pointer-events-none transition-transform duration-motion-normal ease-motion-standard",
|
|
75
|
+
"leave-to-class": e(t) ? "translate-y-full" : "translate-x-full",
|
|
76
|
+
onAfterLeave: $
|
|
77
|
+
}, {
|
|
78
|
+
default: _(() => [
|
|
79
|
+
e(c) ? (o(), n("div", {
|
|
80
|
+
key: 0,
|
|
81
|
+
ref_key: "panel",
|
|
82
|
+
ref: m,
|
|
83
|
+
tabindex: "-1",
|
|
84
|
+
"data-part": "panel",
|
|
85
|
+
class: S(["fixed flex flex-col text-content-strong shadow-dialog outline-none", [
|
|
86
|
+
l.grouped ? "bg-surface-page" : "bg-surface-cell",
|
|
87
|
+
e(t) ? "inset-x-0 bottom-0 mx-auto max-h-[90dvh] w-full max-w-readable rounded-t-sheet" : "inset-y-0 right-0 w-full max-w-md",
|
|
88
|
+
e(s).dragging.value ? "" : "transition-transform duration-motion-normal ease-motion-sheet"
|
|
89
|
+
]]),
|
|
90
|
+
style: w(e(s).panelStyle.value)
|
|
91
|
+
}, [
|
|
92
|
+
i("div", C({
|
|
93
|
+
class: ["shrink-0", e(t) ? "cursor-grab touch-none select-none" : ""]
|
|
94
|
+
}, e(s).handleEvents), [
|
|
95
|
+
e(t) ? (o(), n("div", q, [...x[0] || (x[0] = [
|
|
96
|
+
i("span", { class: "h-1.25 w-9 rounded-full bg-fill-strong" }, null, -1)
|
|
97
|
+
])])) : r("", !0),
|
|
98
|
+
v(a.$slots, "header", { titleId: e(f) }, () => [
|
|
99
|
+
i("div", {
|
|
100
|
+
class: S(["flex min-h-bar-height items-center justify-between gap-3 px-4", e(t) ? "pb-1" : "border-b border-border-separator"])
|
|
101
|
+
}, [
|
|
102
|
+
l.title ? (o(), n("h3", {
|
|
103
|
+
key: 0,
|
|
104
|
+
id: e(f),
|
|
105
|
+
class: "text-headline font-semibold"
|
|
106
|
+
}, P(l.title), 9, G)) : r("", !0),
|
|
107
|
+
i("button", {
|
|
108
|
+
type: "button",
|
|
109
|
+
"data-part": "close",
|
|
110
|
+
"aria-label": e(I)("core.actions.close"),
|
|
111
|
+
class: "hit-target -mr-1 ml-auto 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",
|
|
112
|
+
onClick: p
|
|
113
|
+
}, [
|
|
114
|
+
h(e(W), {
|
|
115
|
+
name: "close",
|
|
116
|
+
size: 14
|
|
117
|
+
})
|
|
118
|
+
], 8, H)
|
|
119
|
+
], 2)
|
|
120
|
+
])
|
|
121
|
+
], 16),
|
|
122
|
+
i("div", C({
|
|
123
|
+
ref_key: "body",
|
|
124
|
+
ref: g,
|
|
125
|
+
class: "min-h-0 flex-1 overflow-y-auto overscroll-contain px-4 py-4"
|
|
126
|
+
}, e(s).bodyEvents), [
|
|
127
|
+
v(a.$slots, "default")
|
|
128
|
+
], 16),
|
|
129
|
+
a.$slots.footer ? (o(), n("div", J, [
|
|
130
|
+
v(a.$slots, "footer")
|
|
131
|
+
])) : r("", !0)
|
|
132
|
+
], 6)) : r("", !0)
|
|
133
|
+
]),
|
|
134
|
+
_: 3
|
|
135
|
+
}, 8, ["enter-from-class", "leave-to-class"])
|
|
136
|
+
], 8, Q)) : r("", !0)
|
|
137
|
+
]));
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
export {
|
|
141
|
+
ee as _
|
|
142
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { defineComponent as P, computed as f, ref as I, openBlock as m, createElementBlock as N, createVNode as n, unref as e, withCtx as r, createSlots as R, createBlock as _, createTextVNode as k, toDisplayString as v, createCommentVNode as d } from "vue";
|
|
2
|
+
import { useI18n as A } from "vue-i18n";
|
|
3
|
+
import { _ as B } from "./Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js";
|
|
4
|
+
import { _ as V } from "./IconTile.vue_vue_type_script_setup_true_lang-D7QgnUyN.js";
|
|
5
|
+
import { u as D } from "./format-B8mJm946.js";
|
|
6
|
+
import { _ as p } from "./FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js";
|
|
7
|
+
import { e as b } from "./options-BXkMR63B.js";
|
|
8
|
+
import { u as U } from "./describeError-Ctga6GcS.js";
|
|
9
|
+
import { c as q, P as z, b as F, _ as L, i as O, d as T } from "./index-BAcl44SC.js";
|
|
10
|
+
import { t as h } from "./toast-D9Z5To38.js";
|
|
11
|
+
import { u as j, h as G } from "./platform-hunMqFdB.js";
|
|
12
|
+
import { b as H } from "./routeResource-DstM0hvf.js";
|
|
13
|
+
import { _ as J } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
|
|
14
|
+
import { _ as K } from "./ActionRow.vue_vue_type_script_setup_true_lang-B7Lpfkf6.js";
|
|
15
|
+
import { _ as M } from "./SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js";
|
|
16
|
+
const Q = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "flex min-w-0 max-w-200 flex-col gap-group-gap",
|
|
19
|
+
"data-person-signin": ""
|
|
20
|
+
}, fe = /* @__PURE__ */ P({
|
|
21
|
+
__name: "SignIn",
|
|
22
|
+
setup(W) {
|
|
23
|
+
const { t: s } = A(), { http: w, access: y, session: x } = j(), $ = D(), C = U(), { signInAs: u } = q(), g = H(z), l = F(), o = f(() => g.data.value), t = f(() => o.value?.status === "locked"), c = I(!1), S = f(() => {
|
|
24
|
+
const a = G(x.state.value);
|
|
25
|
+
return u !== !1 && y.can(u) && !!o.value?.active && a !== null && a.impersonator === void 0 && a.user.id !== o.value.id;
|
|
26
|
+
});
|
|
27
|
+
async function E() {
|
|
28
|
+
const a = g.id.value;
|
|
29
|
+
if (!(a === null || c.value)) {
|
|
30
|
+
c.value = !0;
|
|
31
|
+
try {
|
|
32
|
+
await w.request(O.usersUnlock, { id: a }), h.success(s("core.users.signin.unlocked")), await l.refresh();
|
|
33
|
+
} catch (i) {
|
|
34
|
+
T(i) || h.error(C(i, { fallback: s("core.users.signin.unlock_failed") }));
|
|
35
|
+
} finally {
|
|
36
|
+
c.value = !1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return (a, i) => o.value ? (m(), N("div", Q, [
|
|
41
|
+
n(M, {
|
|
42
|
+
title: e(s)("core.users.sections.signin"),
|
|
43
|
+
description: e(s)("core.users.intro.signin", { name: o.value.name })
|
|
44
|
+
}, null, 8, ["title", "description"]),
|
|
45
|
+
n(e(p), {
|
|
46
|
+
header: e(s)("core.users.signin.lock"),
|
|
47
|
+
footer: e(s)("core.users.signin.lock_footer")
|
|
48
|
+
}, {
|
|
49
|
+
default: r(() => [
|
|
50
|
+
n(e(b), {
|
|
51
|
+
layout: "setting",
|
|
52
|
+
label: t.value ? e(s)("core.users.signin.locked_title") : e(s)("core.users.signin.not_locked"),
|
|
53
|
+
sub: t.value && o.value.locked_until ? e(s)("core.users.signin.unlocks_at", { time: e($).time(o.value.locked_until) }) : e(s)("core.users.signin.not_locked_sub"),
|
|
54
|
+
"data-lock-row": ""
|
|
55
|
+
}, R({
|
|
56
|
+
leading: r(() => [
|
|
57
|
+
n(e(V), {
|
|
58
|
+
tone: t.value ? "anchor" : "neutral",
|
|
59
|
+
icon: "lockLine"
|
|
60
|
+
}, null, 8, ["tone"])
|
|
61
|
+
]),
|
|
62
|
+
default: r(() => [
|
|
63
|
+
t.value ? (m(), _(e(J), {
|
|
64
|
+
key: 0,
|
|
65
|
+
tone: "critical",
|
|
66
|
+
dot: ""
|
|
67
|
+
}, {
|
|
68
|
+
default: r(() => [
|
|
69
|
+
k(v(e(s)("core.users.status.locked")), 1)
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
})) : d("", !0)
|
|
73
|
+
]),
|
|
74
|
+
_: 2
|
|
75
|
+
}, [
|
|
76
|
+
t.value && e(l).can.manage ? {
|
|
77
|
+
name: "trailing",
|
|
78
|
+
fn: r(() => [
|
|
79
|
+
n(e(B), {
|
|
80
|
+
size: "sm",
|
|
81
|
+
processing: c.value,
|
|
82
|
+
"data-unlock": "",
|
|
83
|
+
onClick: E
|
|
84
|
+
}, {
|
|
85
|
+
default: r(() => [
|
|
86
|
+
k(v(e(s)("core.users.signin.unlock")), 1)
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
}, 8, ["processing"])
|
|
90
|
+
]),
|
|
91
|
+
key: "0"
|
|
92
|
+
} : void 0
|
|
93
|
+
]), 1032, ["label", "sub"])
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 8, ["header", "footer"]),
|
|
97
|
+
e(l).can.manage ? (m(), _(e(p), {
|
|
98
|
+
key: 0,
|
|
99
|
+
header: e(s)("core.users.signin.password"),
|
|
100
|
+
footer: e(s)("core.users.signin.password_footer")
|
|
101
|
+
}, {
|
|
102
|
+
default: r(() => [
|
|
103
|
+
n(K, {
|
|
104
|
+
label: e(s)("core.users.signin.set_password"),
|
|
105
|
+
sub: e(s)("core.users.signin.set_password_sub"),
|
|
106
|
+
"data-set-password": "",
|
|
107
|
+
onClick: i[0] || (i[0] = (X) => e(l).setPassword())
|
|
108
|
+
}, null, 8, ["label", "sub"])
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
}, 8, ["header", "footer"])) : d("", !0),
|
|
112
|
+
S.value && e(u) !== !1 ? (m(), _(e(p), {
|
|
113
|
+
key: 1,
|
|
114
|
+
header: e(s)("core.users.signin.as_header", { name: o.value.name }),
|
|
115
|
+
footer: e(s)("core.users.signin.as_footer", { name: o.value.name })
|
|
116
|
+
}, {
|
|
117
|
+
default: r(() => [
|
|
118
|
+
n(e(b), {
|
|
119
|
+
layout: "setting",
|
|
120
|
+
label: e(s)("core.users.signin.as_title"),
|
|
121
|
+
sub: e(s)("core.users.signin.as_sub")
|
|
122
|
+
}, {
|
|
123
|
+
trailing: r(() => [
|
|
124
|
+
n(L, {
|
|
125
|
+
"user-id": o.value.id,
|
|
126
|
+
name: o.value.name,
|
|
127
|
+
permission: e(u)
|
|
128
|
+
}, null, 8, ["user-id", "name", "permission"])
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}, 8, ["label", "sub"])
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 8, ["header", "footer"])) : d("", !0)
|
|
135
|
+
])) : d("", !0);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
export {
|
|
139
|
+
fe as default
|
|
140
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as d, openBlock as _, createElementBlock as g, createElementVNode as b, toDisplayString as n, unref as e, createVNode as t, withCtx as s, mergeProps as i, createTextVNode as w } from "vue";
|
|
2
|
+
import { useI18n as x } from "vue-i18n";
|
|
3
|
+
import { useRoute as y, useRouter as h } from "vue-router";
|
|
4
|
+
import { _ as I } from "./Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js";
|
|
5
|
+
import { _ as N } from "./Panel.vue_vue_type_script_setup_true_lang-BCRxRK4D.js";
|
|
6
|
+
import { _ as S } from "./FormView.vue_vue_type_script_setup_true_lang-Bz2m3AtF.js";
|
|
7
|
+
import { _ as a } from "./TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js";
|
|
8
|
+
import { r as $ } from "./guards-Cd1V28oG.js";
|
|
9
|
+
import { u as C, a as E } from "./index-BAcl44SC.js";
|
|
10
|
+
const V = { class: "flex flex-1 flex-col items-center justify-center gap-8" }, k = { class: "text-xl font-semibold text-content-strong" }, H = /* @__PURE__ */ d({
|
|
11
|
+
__name: "SignInPage",
|
|
12
|
+
setup(q) {
|
|
13
|
+
const { t: o } = x(), m = y(), c = h(), { home: l } = C(), { form: r, passwordError: u, submit: p } = E();
|
|
14
|
+
async function f() {
|
|
15
|
+
await p() && await c.push($(m) ?? l);
|
|
16
|
+
}
|
|
17
|
+
return (v, B) => (_(), g("div", V, [
|
|
18
|
+
b("h1", k, n(e(o)("core.identity.signin.title")), 1),
|
|
19
|
+
t(e(N), { class: "w-full max-w-md" }, {
|
|
20
|
+
default: s(() => [
|
|
21
|
+
t(e(S), {
|
|
22
|
+
class: "p-1",
|
|
23
|
+
onSubmit: f
|
|
24
|
+
}, {
|
|
25
|
+
default: s(() => [
|
|
26
|
+
t(e(a), i(e(r).bind("login"), {
|
|
27
|
+
label: e(o)("core.identity.username"),
|
|
28
|
+
autocomplete: "username",
|
|
29
|
+
required: ""
|
|
30
|
+
}), null, 16, ["label"]),
|
|
31
|
+
t(e(a), i(e(r).bind("password"), {
|
|
32
|
+
label: e(o)("core.identity.signin.password"),
|
|
33
|
+
type: "password",
|
|
34
|
+
autocomplete: "current-password",
|
|
35
|
+
required: "",
|
|
36
|
+
error: e(u)
|
|
37
|
+
}), null, 16, ["label", "error"]),
|
|
38
|
+
t(e(I), {
|
|
39
|
+
type: "submit",
|
|
40
|
+
prominence: "primary",
|
|
41
|
+
class: "w-full",
|
|
42
|
+
processing: e(r).submitting.value
|
|
43
|
+
}, {
|
|
44
|
+
default: s(() => [
|
|
45
|
+
w(n(e(o)("core.identity.signin.submit")), 1)
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 8, ["processing"])
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
})
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
})
|
|
55
|
+
]));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
H as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent as _, computed as p, openBlock as y, createElementBlock as g, createVNode as l, unref as i, withCtx as s, createElementVNode as a, toDisplayString as r, createTextVNode as h } from "vue";
|
|
2
|
+
import { useI18n as b } from "vue-i18n";
|
|
3
|
+
import { _ as f } from "./DataTable.vue_vue_type_script_setup_true_lang-DSYgS9lC.js";
|
|
4
|
+
import { _ as v } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
|
|
5
|
+
const w = {
|
|
6
|
+
signed_in: { tone: "positive", byOther: !1 },
|
|
7
|
+
wrong_password: { tone: "critical", byOther: !1 },
|
|
8
|
+
locked_out: { tone: "critical", byOther: !1 },
|
|
9
|
+
refused_inactive: { tone: "critical", byOther: !1 },
|
|
10
|
+
signed_in_as: { tone: "warning", byOther: !0 },
|
|
11
|
+
unlocked: { tone: "neutral", byOther: !0 },
|
|
12
|
+
signed_out_everywhere: { tone: "neutral", byOther: !0 },
|
|
13
|
+
session_revoked: { tone: "neutral", byOther: !0 }
|
|
14
|
+
};
|
|
15
|
+
function d(t) {
|
|
16
|
+
const o = w[t];
|
|
17
|
+
return o ? { ...o, known: !0 } : { tone: "neutral", byOther: !1, known: !1 };
|
|
18
|
+
}
|
|
19
|
+
function k(t, o) {
|
|
20
|
+
const n = d(t);
|
|
21
|
+
return n.known ? n.byOther && o ? `core.account.signins.events_by.${t}` : `core.account.signins.events.${t}` : "core.account.signins.events.unknown";
|
|
22
|
+
}
|
|
23
|
+
const O = {
|
|
24
|
+
class: "overflow-hidden rounded-group bg-surface-cell shadow-group",
|
|
25
|
+
"data-signin-table": ""
|
|
26
|
+
}, x = ["title"], E = { class: "font-mono text-footnote" }, B = {
|
|
27
|
+
class: "px-4 py-8 text-center text-body text-content-muted",
|
|
28
|
+
"data-signin-empty": ""
|
|
29
|
+
}, T = /* @__PURE__ */ _({
|
|
30
|
+
__name: "SignInTable",
|
|
31
|
+
props: {
|
|
32
|
+
rows: {},
|
|
33
|
+
loading: { type: Boolean }
|
|
34
|
+
},
|
|
35
|
+
setup(t) {
|
|
36
|
+
const o = t, { t: n } = b(), u = p(() => [
|
|
37
|
+
{ key: "created_at", label: n("core.account.signins.columns.time"), kind: "timestamp", width: 170, mobile: "meta" },
|
|
38
|
+
{ key: "event", label: n("core.account.signins.columns.event"), mobile: "primary" },
|
|
39
|
+
{ key: "device", label: n("core.account.signins.columns.device"), hideBelow: "md", width: 320, mobile: "hidden" },
|
|
40
|
+
{ key: "ip", label: n("core.account.signins.columns.ip"), hideBelow: "md", width: 140, mobile: "hidden" }
|
|
41
|
+
]), m = (c) => n(k(c.event, c.actor?.name || null), { name: c.actor?.name ?? "" });
|
|
42
|
+
return (c, I) => (y(), g("div", O, [
|
|
43
|
+
l(i(f), {
|
|
44
|
+
rows: o.rows,
|
|
45
|
+
columns: u.value,
|
|
46
|
+
"row-key": (e) => e.id,
|
|
47
|
+
loading: o.loading
|
|
48
|
+
}, {
|
|
49
|
+
"cell-event": s(({ item: e }) => [
|
|
50
|
+
l(i(v), {
|
|
51
|
+
tone: i(d)(e.event).tone,
|
|
52
|
+
"data-event": e.event
|
|
53
|
+
}, {
|
|
54
|
+
default: s(() => [
|
|
55
|
+
h(r(m(e)), 1)
|
|
56
|
+
]),
|
|
57
|
+
_: 2
|
|
58
|
+
}, 1032, ["tone", "data-event"])
|
|
59
|
+
]),
|
|
60
|
+
"cell-device": s(({ item: e }) => [
|
|
61
|
+
a("span", {
|
|
62
|
+
class: "block truncate",
|
|
63
|
+
title: e.device
|
|
64
|
+
}, r(e.device || "—"), 9, x)
|
|
65
|
+
]),
|
|
66
|
+
"cell-ip": s(({ item: e }) => [
|
|
67
|
+
a("span", E, r(e.ip || "—"), 1)
|
|
68
|
+
]),
|
|
69
|
+
empty: s(() => [
|
|
70
|
+
a("p", B, r(i(n)("core.account.signins.empty")), 1)
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 8, ["rows", "columns", "row-key", "loading"])
|
|
74
|
+
]));
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
T as _
|
|
79
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as g, ref as m, watch as p, openBlock as c, createElementBlock as v, createVNode as i, unref as e, withCtx as w, createBlock as x, createCommentVNode as y, createElementVNode as V, toDisplayString as $ } from "vue";
|
|
2
|
+
import { useI18n as N } from "vue-i18n";
|
|
3
|
+
import { P as S, i as b } from "./index-BAcl44SC.js";
|
|
4
|
+
import { u as k } from "./platform-hunMqFdB.js";
|
|
5
|
+
import { b as I } from "./routeResource-DstM0hvf.js";
|
|
6
|
+
import { _ as R } from "./AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js";
|
|
7
|
+
import { u as C } from "./useLoad-CYRVx6HW.js";
|
|
8
|
+
import { _ as E } from "./PageBar.vue_vue_type_script_setup_true_lang-Cfr5xsJx.js";
|
|
9
|
+
import { _ as B } from "./SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js";
|
|
10
|
+
import { _ as P } from "./SignInTable.vue_vue_type_script_setup_true_lang-Dnx3T_42.js";
|
|
11
|
+
import { _ as h } from "./ViewTabs.vue_vue_type_script_setup_true_lang-ByqTU2JT.js";
|
|
12
|
+
const U = {
|
|
13
|
+
class: "flex min-w-0 flex-col gap-group-gap",
|
|
14
|
+
"data-person-signins": ""
|
|
15
|
+
}, q = { class: "px-row-inset text-footnote text-content-muted" }, M = /* @__PURE__ */ g({
|
|
16
|
+
__name: "SignIns",
|
|
17
|
+
setup(D) {
|
|
18
|
+
const d = ["all", "failed"], { t: s } = N(), { http: f } = k(), l = I(S), r = m("all"), a = m(1), n = C(
|
|
19
|
+
async ({ signal: u }) => {
|
|
20
|
+
const t = l.id.value;
|
|
21
|
+
return t === null ? null : (await f.request(b.usersSignins, { id: t, view: r.value, page: a.value, per_page: 20 }, { signal: u })).data;
|
|
22
|
+
},
|
|
23
|
+
{ watch: () => l.id.value }
|
|
24
|
+
);
|
|
25
|
+
return p(r, () => {
|
|
26
|
+
a.value = 1, n.reload();
|
|
27
|
+
}), p(a, () => void n.reload()), (u, t) => (c(), v("div", U, [
|
|
28
|
+
i(B, {
|
|
29
|
+
title: e(s)("core.users.sections.signins"),
|
|
30
|
+
description: e(s)("core.users.intro.signins", { name: e(l).data.value?.name ?? "" })
|
|
31
|
+
}, null, 8, ["title", "description"]),
|
|
32
|
+
i(h, {
|
|
33
|
+
modelValue: r.value,
|
|
34
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
|
|
35
|
+
views: d,
|
|
36
|
+
counts: e(n).data.value?.meta?.views,
|
|
37
|
+
"label-of": (o) => e(s)(`core.account.signins.views.${o}`),
|
|
38
|
+
label: e(s)("core.users.sections.signins")
|
|
39
|
+
}, null, 8, ["modelValue", "counts", "label-of", "label"]),
|
|
40
|
+
i(e(R), {
|
|
41
|
+
state: e(n).state.value,
|
|
42
|
+
"skeleton-rows": 5,
|
|
43
|
+
"is-empty": () => !1,
|
|
44
|
+
onRetry: t[2] || (t[2] = (o) => e(n).reload())
|
|
45
|
+
}, {
|
|
46
|
+
default: w(({ value: o }) => [
|
|
47
|
+
i(P, {
|
|
48
|
+
rows: o?.data ?? []
|
|
49
|
+
}, null, 8, ["rows"]),
|
|
50
|
+
o ? (c(), x(E, {
|
|
51
|
+
key: 0,
|
|
52
|
+
page: a.value,
|
|
53
|
+
"onUpdate:page": t[1] || (t[1] = (_) => a.value = _),
|
|
54
|
+
"last-page": o.last_page,
|
|
55
|
+
total: o.total
|
|
56
|
+
}, null, 8, ["page", "last-page", "total"])) : y("", !0),
|
|
57
|
+
V("p", q, $(e(s)("core.account.signins.footer_user")), 1)
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["state"])
|
|
61
|
+
]));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
M as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { defineComponent as D, computed as N, ref as p, watch as O, onBeforeUnmount as T, openBlock as f, createElementBlock as d, createElementVNode as b, normalizeStyle as x, Fragment as z, renderList as E, normalizeClass as _, createVNode as X, unref as $, createTextVNode as B, toDisplayString as V, renderSlot as Y } from "vue";
|
|
2
|
+
import { _ as A } from "./Icon.vue_vue_type_script_lang-VvcV2Bzo.js";
|
|
3
|
+
import { p as I } from "./perDocument-DUuFrdGU.js";
|
|
4
|
+
const R = ["aria-hidden"], W = ["href", "target", "rel", "tabindex", "data-action"], j = Symbol("vue-core:swipe-open-row"), F = () => I(j, () => p(null)), q = /* @__PURE__ */ D({
|
|
5
|
+
__name: "SwipeActions",
|
|
6
|
+
props: {
|
|
7
|
+
actions: {},
|
|
8
|
+
contentClass: { default: "" }
|
|
9
|
+
},
|
|
10
|
+
setup(y) {
|
|
11
|
+
const o = y, k = 76, C = {
|
|
12
|
+
positive: "bg-status-success-solid",
|
|
13
|
+
info: "bg-status-info-solid",
|
|
14
|
+
neutral: "bg-status-neutral-solid",
|
|
15
|
+
critical: "bg-status-danger-solid"
|
|
16
|
+
}, n = F(), l = Symbol("swipe-row"), r = N(() => o.actions.length * k), t = p(0), s = p(!1);
|
|
17
|
+
let v = 0, m = 0, h = 0, i = null, u = !1;
|
|
18
|
+
function P(e) {
|
|
19
|
+
u = !1, !(e.pointerType !== "touch" || o.actions.length === 0) && (v = e.clientX, m = e.clientY, h = t.value, i = null);
|
|
20
|
+
}
|
|
21
|
+
function M(e) {
|
|
22
|
+
if (e.pointerType !== "touch" || o.actions.length === 0) return;
|
|
23
|
+
const c = e.clientX - v, a = e.clientY - m;
|
|
24
|
+
if (i === null) {
|
|
25
|
+
if (Math.abs(c) < 6 && Math.abs(a) < 6) return;
|
|
26
|
+
i = Math.abs(c) > Math.abs(a);
|
|
27
|
+
}
|
|
28
|
+
i && (s.value = !0, t.value = Math.min(0, Math.max(-r.value - 24, h + c)));
|
|
29
|
+
}
|
|
30
|
+
function g() {
|
|
31
|
+
t.value = 0, n.value === l && (n.value = null);
|
|
32
|
+
}
|
|
33
|
+
function w() {
|
|
34
|
+
if (!s.value) return;
|
|
35
|
+
s.value = !1, u = !0;
|
|
36
|
+
const e = -t.value > r.value / 2;
|
|
37
|
+
t.value = e ? -r.value : 0, e ? n.value = l : n.value === l && (n.value = null);
|
|
38
|
+
}
|
|
39
|
+
function S(e) {
|
|
40
|
+
if (u) {
|
|
41
|
+
u = !1, e.stopPropagation(), e.preventDefault();
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
t.value !== 0 && !e.target.closest("[data-swipe-action]") && (e.stopPropagation(), e.preventDefault(), g());
|
|
45
|
+
}
|
|
46
|
+
return O(n, (e) => {
|
|
47
|
+
e !== l && t.value !== 0 && !s.value && (t.value = 0);
|
|
48
|
+
}), T(() => {
|
|
49
|
+
n.value === l && (n.value = null);
|
|
50
|
+
}), (e, c) => (f(), d("div", {
|
|
51
|
+
class: "relative overflow-hidden",
|
|
52
|
+
"data-test": "swipe-row",
|
|
53
|
+
onClickCapture: S
|
|
54
|
+
}, [
|
|
55
|
+
b("div", {
|
|
56
|
+
class: "absolute inset-y-0 right-0 flex",
|
|
57
|
+
style: x({ width: `${r.value}px` }),
|
|
58
|
+
"aria-hidden": t.value === 0
|
|
59
|
+
}, [
|
|
60
|
+
(f(!0), d(z, null, E(o.actions, (a) => (f(), d("a", {
|
|
61
|
+
key: a.key,
|
|
62
|
+
href: a.href,
|
|
63
|
+
"data-swipe-action": "",
|
|
64
|
+
target: a.external ? "_blank" : void 0,
|
|
65
|
+
rel: a.external ? "noopener" : void 0,
|
|
66
|
+
tabindex: t.value === 0 ? -1 : 0,
|
|
67
|
+
"data-action": a.key,
|
|
68
|
+
class: _(["flex flex-1 flex-col items-center justify-center gap-1 text-footnote font-semibold text-white", C[a.tone]]),
|
|
69
|
+
onClick: g
|
|
70
|
+
}, [
|
|
71
|
+
X($(A), {
|
|
72
|
+
name: a.icon,
|
|
73
|
+
size: 22
|
|
74
|
+
}, null, 8, ["name"]),
|
|
75
|
+
B(" " + V(a.label), 1)
|
|
76
|
+
], 10, W))), 128))
|
|
77
|
+
], 12, R),
|
|
78
|
+
b("div", {
|
|
79
|
+
class: _(["relative touch-pan-y bg-surface-cell", [o.contentClass, s.value ? "" : "transition-transform duration-motion-normal ease-motion-standard"]]),
|
|
80
|
+
style: x({ transform: `translateX(${t.value}px)` }),
|
|
81
|
+
onPointerdown: P,
|
|
82
|
+
onPointermove: M,
|
|
83
|
+
onPointerup: w,
|
|
84
|
+
onPointercancel: w
|
|
85
|
+
}, [
|
|
86
|
+
Y(e.$slots, "default")
|
|
87
|
+
], 38)
|
|
88
|
+
], 32));
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
export {
|
|
92
|
+
q as _
|
|
93
|
+
};
|