@wssto2/vue-core 0.2.0 → 0.4.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 +36 -0
- package/dist/AccessGate.vue_vue_type_script_setup_true_lang-DcbZBINh.js +22 -0
- package/dist/AccountMenuItem.vue_vue_type_script_setup_true_lang-CPeNxh5K.js +76 -0
- package/dist/ActionRow.vue_vue_type_script_setup_true_lang-LlfIPWsJ.js +45 -0
- package/dist/Activity-2gGxQn7v.js +156 -0
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CeKK8_g5.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-BoinCY93.js} +48 -47
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-e4hzkzg3.js → AlertDialog.vue_vue_type_script_setup_true_lang-whA4WLdl.js} +1 -1
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-CWLB3xsR.js → AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js} +4 -4
- package/dist/{Banner.vue_vue_type_script_setup_true_lang-n_wGPIIu.js → Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.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-B1eZgLae.js → Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js} +1 -1
- package/dist/Changes-Bm8xvagD.js +129 -0
- package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-DCBVw2Qd.js +1485 -0
- package/dist/DataTable.vue_vue_type_script_setup_true_lang-UH6f9puS.js +52 -0
- package/dist/DateField.vue_vue_type_script_setup_true_lang-GVasv8ao.js +255 -0
- package/dist/DeadLetters-CMRtXn_N.js +104 -0
- package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-DyhYHRyz.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-D1arePCZ.js} +1 -1
- package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-BeGpHMUP.js → EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js} +1 -1
- package/dist/FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js +276 -0
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js +136 -0
- package/dist/FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js +38 -0
- package/dist/General-CTqd0SLK.js +145 -0
- package/dist/HeaderAction.vue_vue_type_script_setup_true_lang-Cgji-Jrr.js +45 -0
- package/dist/{Icon.vue_vue_type_script_lang-DtC4_mkz.js → Icon.vue_vue_type_script_lang-D7oC-d-S.js} +54 -37
- package/dist/{IconTile.vue_vue_type_script_setup_true_lang-Csfv6Sel.js → IconTile.vue_vue_type_script_setup_true_lang-BpIjgu5E.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-CvwoT1JF.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-Cv7KlA5y.js} +2 -2
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-CrMj6KPD.js → Menu.vue_vue_type_script_setup_true_lang-DTbAcDzL.js} +66 -58
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-BQZM49gC.js → Modal.vue_vue_type_script_setup_true_lang-DpBb8ans.js} +4 -4
- package/dist/NewRolePage-DTOWIxxC.js +42 -0
- package/dist/NoAccess.vue_vue_type_script_setup_true_lang-DWxq-MTM.js +31 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-C7N5nq0P.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-B7qdEeej.js +47 -0
- package/dist/{Panel.vue_vue_type_script_setup_true_lang-BQmv3cLb.js → Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js} +1 -1
- package/dist/PanelActions.vue_vue_type_script_setup_true_lang-E9VdIGkf.js +46 -0
- package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-ElDizaW2.js → PhotoViewer.vue_vue_type_script_setup_true_lang-QPCW3Xi6.js} +1 -1
- package/dist/Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js +125 -0
- package/dist/ProfilePage-BlpiWH_W.js +654 -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-C_ymvhHU.js +64 -0
- package/dist/ResourcePage.vue_vue_type_script_setup_true_lang-CwI_sROp.js +173 -0
- package/dist/RoleEditor.vue_vue_type_script_setup_true_lang-CmwvSytD.js +300 -0
- package/dist/RolePage-DZk7BZOc.js +315 -0
- package/dist/RolesPage-DzGGCMnm.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-BFYls8fR.js +148 -0
- package/dist/SectionNavigator.vue_vue_type_script_setup_true_lang-DSMXEaCs.js +314 -0
- package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BMqWlpsL.js +58 -0
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-7O1BAx04.js +423 -0
- package/dist/SessionList.vue_vue_type_script_setup_true_lang-D5KRitar.js +111 -0
- package/dist/Sessions-CWqjjTr1.js +96 -0
- package/dist/SettingsPage-C4s0IdkW.js +255 -0
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js +145 -0
- package/dist/SignIn-zzKY__df.js +140 -0
- package/dist/SignInPage-Rqnus_s-.js +60 -0
- package/dist/SignInTable.vue_vue_type_script_setup_true_lang-CEbAvZ_C.js +79 -0
- package/dist/SignIns-Cnf9BVR0.js +66 -0
- package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-BJIA2JfI.js +93 -0
- package/dist/SwitchField.vue_vue_type_script_setup_true_lang-CM8yp9JQ.js +64 -0
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-CcMcE38r.js +155 -0
- package/dist/TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js +269 -0
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CqAWfABZ.js +68 -0
- package/dist/TimeField.vue_vue_type_script_setup_true_lang-DWfAUlnz.js +164 -0
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CSY_mMm1.js → Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js} +1 -1
- package/dist/UserRecord-DqigxVxH.js +267 -0
- package/dist/UsersList-DNlZsI9J.js +155 -0
- package/dist/ViewTabs.vue_vue_type_script_setup_true_lang-BJIoZAlH.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/contributions.d.ts +1 -1
- package/dist/app/feature.d.ts +8 -0
- package/dist/app/index.js +259 -296
- package/dist/bottomDock-BZEiOPYZ.js +12 -0
- package/dist/button/Button.vue.d.ts +3 -3
- package/dist/button/index.js +1 -1
- 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 +11 -138
- package/dist/client/route.d.ts +59 -0
- package/dist/client-k9euDWF4.js +147 -0
- package/dist/closeOverlays-CjVsIrpL.js +8 -0
- package/dist/collection/definition.d.ts +3 -0
- package/dist/collection/http.d.ts +4 -2
- package/dist/collection/index.js +74 -2428
- package/dist/collection/useCollection.d.ts +2 -0
- package/dist/content/index.js +37 -66
- package/dist/contributions-DsfmDoRD.js +26 -0
- package/dist/control-7EP4tjYy.js +313 -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-l5T9b8Uv.js → describeError-Ctga6GcS.js} +1 -1
- 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 +1 -1
- 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/NumberCell.vue.d.ts +1 -1
- package/dist/form/NumberField.vue.d.ts +2 -2
- package/dist/form/OtpInput.vue.d.ts +2 -2
- package/dist/form/PhotoField.vue.d.ts +1 -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.js +1159 -3474
- package/dist/guards-Dve61KjR.js +51 -0
- package/dist/http-CNcDHSOj.js +194 -0
- package/dist/i18n/index.d.ts +281 -0
- package/dist/i18n/index.js +52 -52
- package/dist/icon/core.d.ts +17 -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/identity/shared/SignInTable.vue.d.ts +11 -0
- 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-BsJ92eub.js +504 -0
- package/dist/index-CGv-u1Ws.js +459 -0
- package/dist/index-GcLnFF-z.js +706 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- 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 +1 -1
- package/dist/modal/Sheet.vue.d.ts +2 -0
- package/dist/modal/index.js +5 -5
- 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/events/entities.d.ts +16 -0
- package/dist/modules/events/routes.d.ts +17 -0
- package/dist/modules/events/schemas.d.ts +16 -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/modules/notification/entities.d.ts +46 -0
- package/dist/modules/notification/routes.d.ts +26 -0
- package/dist/modules/notification/schemas.d.ts +25 -0
- package/dist/{navigation-B33ikiCS.js → navigation-Cm3iChlR.js} +21 -20
- package/dist/neighbors-DpaIMQAL.js +86 -0
- package/dist/notifications/InboxPanel.vue.d.ts +16 -0
- package/dist/notifications/MarkAllRead.vue.d.ts +7 -0
- package/dist/notifications/NotificationBell.vue.d.ts +2 -0
- package/dist/notifications/SettingsLink.vue.d.ts +6 -0
- package/dist/notifications/context.d.ts +20 -0
- package/dist/notifications/deadletters/DeadLetters.vue.d.ts +2 -0
- package/dist/notifications/deadletters/access.d.ts +3 -0
- package/dist/notifications/deadletters/list.d.ts +3 -0
- package/dist/notifications/deadletters/routes.d.ts +13 -0
- package/dist/notifications/feature.d.ts +31 -0
- package/dist/notifications/inbox.d.ts +62 -0
- package/dist/notifications/index.d.ts +13 -0
- package/dist/notifications/index.js +8 -0
- package/dist/notifications/settings/EmailPanel.vue.d.ts +14 -0
- package/dist/notifications/settings/QuietHoursPanel.vue.d.ts +14 -0
- package/dist/notifications/settings/SettingsMenuItem.vue.d.ts +2 -0
- package/dist/notifications/settings/SettingsPage.vue.d.ts +2 -0
- package/dist/notifications/settings/categoryText.d.ts +9 -0
- package/dist/notifications/settings/routes.d.ts +13 -0
- package/dist/notifications/settings/settings.d.ts +18 -0
- package/dist/notifications/settings/state.d.ts +16 -0
- package/dist/notifications/state.d.ts +27 -0
- package/dist/notifications/stream.d.ts +21 -0
- package/dist/options-Ba_0uLWN.js +18 -0
- package/dist/overlay/AlertDialog.vue.d.ts +3 -3
- package/dist/overlay/Popover.vue.d.ts +1 -1
- package/dist/overlay/closeOverlays.d.ts +7 -0
- package/dist/overlay/index.js +21 -20
- 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 +68 -67
- package/dist/platform/index.d.ts +2 -2
- package/dist/platform/index.js +73 -90
- package/dist/platform/platform.d.ts +2 -2
- package/dist/platform/session.d.ts +22 -1
- package/dist/platform-q3cjODLx.js +255 -0
- package/dist/resource/index.js +8 -248
- package/dist/route-goWMxDUN.js +13 -0
- 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-BqTEhEuy.js +603 -0
- package/dist/sectionIndex-BS0ic5W7.js +86 -0
- package/dist/{sections-LtxV5Mtk.js → sections-CntvUTxn.js} +1 -1
- package/dist/shell/AccountMenuItem.vue.d.ts +1 -1
- package/dist/shell/BackofficeShell.vue.d.ts +2 -2
- package/dist/shell/NavigationList.vue.d.ts +1 -1
- 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 +491 -595
- package/dist/state/ProgressTrack.vue.d.ts +1 -1
- package/dist/state/index.js +59 -92
- package/dist/status-BuP3ULjH.js +33 -0
- package/dist/styles.css +1 -1
- package/dist/suggestions-BxMm6MQA.js +138 -0
- package/dist/testing/index.js +1 -1
- package/dist/toast-D9Z5To38.js +13 -0
- package/dist/transport-BnP7WC0Y.js +4 -0
- package/dist/useCommand-BkONMn3X.js +135 -0
- package/dist/useLoad-CYRVx6HW.js +39 -0
- package/dist/useResourceForm-D1hIpwW5.js +52 -0
- package/dist/useSaveChrome-chi6D3HY.js +25 -0
- package/dist/useSheetDrag-OsD6Eb6I.js +72 -0
- package/dist/useTypedEntry-aTfPBAhw.js +857 -0
- package/package.json +26 -5
- package/dist/NoAccess.vue_vue_type_script_setup_true_lang-OKW8pKYU.js +0 -78
- package/dist/SectionList.vue_vue_type_script_setup_true_lang-L9ita_Kx.js +0 -230
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-DZTrU8NJ.js +0 -661
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-CtkJ-4e3.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/environment-D3nozt9a.js +0 -75
- package/dist/feature-DyDtyMLU.js +0 -47
- package/dist/options-DAkBtYkI.js +0 -330
- package/dist/platform-jqlKVJ2e.js +0 -244
- package/dist/toast-DvrHQ6Ag.js +0 -131
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { ref as _, computed as P, defineComponent as V, useId as Y, watch as j, openBlock as m, createBlock as L, Teleport as O, createElementBlock as v, unref as t, createVNode as C, Transition as N, withCtx as $, normalizeStyle as z, createCommentVNode as h, normalizeClass as A, createElementVNode as k, mergeProps as B, renderSlot as D, toDisplayString as F } from "vue";
|
|
2
|
-
import { useI18n as W } from "vue-i18n";
|
|
3
|
-
import { _ as K } from "./Icon.vue_vue_type_script_lang-DtC4_mkz.js";
|
|
4
|
-
import { a as Q } from "./mediaQuery-CygcXmFW.js";
|
|
5
|
-
import { u as q } from "./useDialog-CXR3hN0G.js";
|
|
6
|
-
const G = 120, J = 0.5, R = 40;
|
|
7
|
-
function U({ enabled: g, panel: w, body: I, onDismiss: p }) {
|
|
8
|
-
const o = _(0), l = _(!1);
|
|
9
|
-
let n = 0, u = 0, b = 0, c = 0, y = !1, r = !1;
|
|
10
|
-
function d(e, a) {
|
|
11
|
-
g.value && (n = u = e, b = performance.now(), c = 0, y = a, r = !0, l.value = !a);
|
|
12
|
-
}
|
|
13
|
-
function f(e) {
|
|
14
|
-
if (!r) return !1;
|
|
15
|
-
const a = e - n;
|
|
16
|
-
if (!l.value) {
|
|
17
|
-
const M = (I.value?.scrollTop ?? 0) <= 0;
|
|
18
|
-
if (!y || !M || a <= 0)
|
|
19
|
-
return (a < 0 || !M) && (r = !1), !1;
|
|
20
|
-
l.value = !0, n = e;
|
|
21
|
-
}
|
|
22
|
-
const E = performance.now();
|
|
23
|
-
return c = (e - u) / Math.max(E - b, 1), u = e, b = E, o.value = Math.max(0, e - n), !0;
|
|
24
|
-
}
|
|
25
|
-
async function s() {
|
|
26
|
-
if (!r || (r = !1, !l.value)) return;
|
|
27
|
-
l.value = !1;
|
|
28
|
-
const e = c > J && o.value > R;
|
|
29
|
-
if (o.value > G || e) {
|
|
30
|
-
const a = o.value;
|
|
31
|
-
if (await p()) {
|
|
32
|
-
o.value = Math.max(a, w.value?.offsetHeight ?? window.innerHeight);
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
o.value = 0;
|
|
37
|
-
}
|
|
38
|
-
function T() {
|
|
39
|
-
r = !1, l.value = !1, o.value = 0;
|
|
40
|
-
}
|
|
41
|
-
const x = {
|
|
42
|
-
onPointerdown(e) {
|
|
43
|
-
e.button === 0 && (e.target?.closest('button, a, input, [role="button"]') || (e.currentTarget.setPointerCapture(e.pointerId), d(e.clientY, !1)));
|
|
44
|
-
},
|
|
45
|
-
onPointermove(e) {
|
|
46
|
-
if (e.buttons === 0) {
|
|
47
|
-
s();
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
f(e.clientY);
|
|
51
|
-
},
|
|
52
|
-
onPointerup: () => void s(),
|
|
53
|
-
onPointercancel: () => void s()
|
|
54
|
-
}, i = {
|
|
55
|
-
onTouchstartPassive(e) {
|
|
56
|
-
const a = e.touches[0];
|
|
57
|
-
a && e.touches.length === 1 && d(a.clientY, !0);
|
|
58
|
-
},
|
|
59
|
-
onTouchmove(e) {
|
|
60
|
-
const a = e.touches[0];
|
|
61
|
-
a && f(a.clientY) && e.cancelable && e.preventDefault();
|
|
62
|
-
},
|
|
63
|
-
onTouchend: () => void s(),
|
|
64
|
-
onTouchcancel: () => void s()
|
|
65
|
-
}, S = P(
|
|
66
|
-
() => !g.value || o.value === 0 ? void 0 : { transform: `translateY(${o.value}px)` }
|
|
67
|
-
), H = P(() => {
|
|
68
|
-
if (!g.value || o.value === 0) return;
|
|
69
|
-
const e = w.value?.offsetHeight || window.innerHeight;
|
|
70
|
-
return { opacity: String(Math.max(0, 1 - o.value / e)) };
|
|
71
|
-
});
|
|
72
|
-
return { dragOffset: o, dragging: l, handleEvents: x, bodyEvents: i, panelStyle: S, backdropStyle: H, reset: T };
|
|
73
|
-
}
|
|
74
|
-
const X = ["aria-labelledby"], Z = {
|
|
75
|
-
key: 0,
|
|
76
|
-
class: "flex justify-center pt-1.5",
|
|
77
|
-
"aria-hidden": "true"
|
|
78
|
-
}, ee = ["id"], te = ["aria-label"], oe = {
|
|
79
|
-
key: 0,
|
|
80
|
-
class: "shrink-0 border-t border-border-separator bg-surface-cell px-4 pt-3 pb-[max(0.75rem,var(--app-safe-bottom))]"
|
|
81
|
-
}, ie = /* @__PURE__ */ V({
|
|
82
|
-
__name: "Sheet",
|
|
83
|
-
props: {
|
|
84
|
-
title: { default: void 0 },
|
|
85
|
-
grouped: { type: Boolean, default: !1 }
|
|
86
|
-
},
|
|
87
|
-
emits: ["presented", "dismissed"],
|
|
88
|
-
setup(g, { expose: w, emit: I }) {
|
|
89
|
-
const p = g, o = I, { t: l } = W(), n = Q("(max-width: 1023px), (pointer: coarse)"), u = _(!1), b = () => {
|
|
90
|
-
f.value || (u.value = !1);
|
|
91
|
-
}, c = _(null), y = _(null), r = Y(), d = q(c, {
|
|
92
|
-
initialFocus: "panel",
|
|
93
|
-
onPresented: () => o("presented"),
|
|
94
|
-
onDismissed: () => o("dismissed")
|
|
95
|
-
}), { isOpen: f } = d;
|
|
96
|
-
j(f, (i) => {
|
|
97
|
-
i && (u.value = !0);
|
|
98
|
-
}, { flush: "sync" });
|
|
99
|
-
const s = U({
|
|
100
|
-
enabled: n,
|
|
101
|
-
panel: c,
|
|
102
|
-
body: y,
|
|
103
|
-
onDismiss: () => (d.dismissWithoutAsking(), !0)
|
|
104
|
-
});
|
|
105
|
-
function T() {
|
|
106
|
-
s.reset(), d.present();
|
|
107
|
-
}
|
|
108
|
-
function x() {
|
|
109
|
-
d.dismissWithoutAsking();
|
|
110
|
-
}
|
|
111
|
-
return w({ present: T, dismiss: x }), (i, S) => (m(), L(O, { to: "body" }, [
|
|
112
|
-
u.value ? (m(), v("div", {
|
|
113
|
-
key: 0,
|
|
114
|
-
class: "relative z-9999",
|
|
115
|
-
role: "dialog",
|
|
116
|
-
"aria-modal": "true",
|
|
117
|
-
"aria-labelledby": p.title ? t(r) : void 0
|
|
118
|
-
}, [
|
|
119
|
-
C(N, {
|
|
120
|
-
appear: "",
|
|
121
|
-
"enter-active-class": "transition-opacity duration-motion-normal ease-motion-standard",
|
|
122
|
-
"enter-from-class": "opacity-0",
|
|
123
|
-
"leave-active-class": "pointer-events-none transition-opacity duration-motion-normal ease-motion-standard",
|
|
124
|
-
"leave-to-class": "opacity-0"
|
|
125
|
-
}, {
|
|
126
|
-
default: $(() => [
|
|
127
|
-
t(f) ? (m(), v("div", {
|
|
128
|
-
key: 0,
|
|
129
|
-
class: "fixed inset-0 bg-scrim",
|
|
130
|
-
style: z(t(s).backdropStyle.value),
|
|
131
|
-
"aria-hidden": "true",
|
|
132
|
-
onClick: x
|
|
133
|
-
}, null, 4)) : h("", !0)
|
|
134
|
-
]),
|
|
135
|
-
_: 1
|
|
136
|
-
}),
|
|
137
|
-
C(N, {
|
|
138
|
-
appear: "",
|
|
139
|
-
"enter-active-class": "transition-transform duration-motion-sheet ease-motion-sheet",
|
|
140
|
-
"enter-from-class": t(n) ? "translate-y-full" : "translate-x-full",
|
|
141
|
-
"leave-active-class": "pointer-events-none transition-transform duration-motion-normal ease-motion-standard",
|
|
142
|
-
"leave-to-class": t(n) ? "translate-y-full" : "translate-x-full",
|
|
143
|
-
onAfterLeave: b
|
|
144
|
-
}, {
|
|
145
|
-
default: $(() => [
|
|
146
|
-
t(f) ? (m(), v("div", {
|
|
147
|
-
key: 0,
|
|
148
|
-
ref_key: "panel",
|
|
149
|
-
ref: c,
|
|
150
|
-
tabindex: "-1",
|
|
151
|
-
"data-part": "panel",
|
|
152
|
-
class: A(["fixed flex flex-col text-content-strong shadow-dialog outline-none", [
|
|
153
|
-
p.grouped ? "bg-surface-page" : "bg-surface-cell",
|
|
154
|
-
t(n) ? "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",
|
|
155
|
-
t(s).dragging.value ? "" : "transition-transform duration-motion-normal ease-motion-sheet"
|
|
156
|
-
]]),
|
|
157
|
-
style: z(t(s).panelStyle.value)
|
|
158
|
-
}, [
|
|
159
|
-
k("div", B({
|
|
160
|
-
class: ["shrink-0", t(n) ? "cursor-grab touch-none select-none" : ""]
|
|
161
|
-
}, t(s).handleEvents), [
|
|
162
|
-
t(n) ? (m(), v("div", Z, [...S[0] || (S[0] = [
|
|
163
|
-
k("span", { class: "h-1.25 w-9 rounded-full bg-fill-strong" }, null, -1)
|
|
164
|
-
])])) : h("", !0),
|
|
165
|
-
D(i.$slots, "header", { titleId: t(r) }, () => [
|
|
166
|
-
k("div", {
|
|
167
|
-
class: A(["flex min-h-bar-height items-center justify-between gap-3 px-4", t(n) ? "pb-1" : "border-b border-border-separator"])
|
|
168
|
-
}, [
|
|
169
|
-
p.title ? (m(), v("h3", {
|
|
170
|
-
key: 0,
|
|
171
|
-
id: t(r),
|
|
172
|
-
class: "text-headline font-semibold"
|
|
173
|
-
}, F(p.title), 9, ee)) : h("", !0),
|
|
174
|
-
k("button", {
|
|
175
|
-
type: "button",
|
|
176
|
-
"data-part": "close",
|
|
177
|
-
"aria-label": t(l)("core.actions.close"),
|
|
178
|
-
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",
|
|
179
|
-
onClick: x
|
|
180
|
-
}, [
|
|
181
|
-
C(t(K), {
|
|
182
|
-
name: "close",
|
|
183
|
-
size: 14
|
|
184
|
-
})
|
|
185
|
-
], 8, te)
|
|
186
|
-
], 2)
|
|
187
|
-
])
|
|
188
|
-
], 16),
|
|
189
|
-
k("div", B({
|
|
190
|
-
ref_key: "body",
|
|
191
|
-
ref: y,
|
|
192
|
-
class: "min-h-0 flex-1 overflow-y-auto overscroll-contain px-4 py-4"
|
|
193
|
-
}, t(s).bodyEvents), [
|
|
194
|
-
D(i.$slots, "default")
|
|
195
|
-
], 16),
|
|
196
|
-
i.$slots.footer ? (m(), v("div", oe, [
|
|
197
|
-
D(i.$slots, "footer")
|
|
198
|
-
])) : h("", !0)
|
|
199
|
-
], 6)) : h("", !0)
|
|
200
|
-
]),
|
|
201
|
-
_: 3
|
|
202
|
-
}, 8, ["enter-from-class", "leave-to-class"])
|
|
203
|
-
], 8, X)) : h("", !0)
|
|
204
|
-
]));
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
export {
|
|
208
|
-
ie as _,
|
|
209
|
-
U as u
|
|
210
|
-
};
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import { defineComponent as O, useModel as I, useId as L, inject as z, useTemplateRef as R, computed as D, openBlock as l, createElementBlock as r, createElementVNode as x, Fragment as E, renderList as K, normalizeClass as f, unref as h, createTextVNode as V, toDisplayString as k, createCommentVNode as w, createBlock as N, renderSlot as B, mergeModels as X, ref as j, watch as Y, onBeforeUnmount as H, normalizeStyle as A, createVNode as W } from "vue";
|
|
2
|
-
import { routerKey as q, routeLocationKey as F } from "vue-router";
|
|
3
|
-
import { _ as M } from "./Icon.vue_vue_type_script_lang-DtC4_mkz.js";
|
|
4
|
-
import { u as G } from "./mediaQuery-CygcXmFW.js";
|
|
5
|
-
import { p as U } from "./perDocument-DUuFrdGU.js";
|
|
6
|
-
const J = ["aria-label"], Q = ["aria-label"], Z = ["id", "aria-selected", "tabindex", "aria-controls", "data-tab", "onClick", "onKeydown"], ee = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "text-footnote font-normal tabular-nums"
|
|
9
|
-
}, te = ["aria-label"], ne = ["aria-label"], oe = ["id", "aria-selected", "tabindex", "aria-controls", "data-tab", "onClick", "onKeydown"], le = ["id", "aria-labelledby"], me = /* @__PURE__ */ O({
|
|
10
|
-
__name: "Tabs",
|
|
11
|
-
props: /* @__PURE__ */ X({
|
|
12
|
-
tabs: {},
|
|
13
|
-
presentation: { default: "segmented" },
|
|
14
|
-
alignment: { default: "start" },
|
|
15
|
-
stretch: { type: Boolean, default: !1 },
|
|
16
|
-
label: { default: void 0 }
|
|
17
|
-
}, {
|
|
18
|
-
modelValue: {},
|
|
19
|
-
modelModifiers: {}
|
|
20
|
-
}),
|
|
21
|
-
emits: ["update:modelValue"],
|
|
22
|
-
setup($) {
|
|
23
|
-
const n = $, C = I($, "modelValue"), g = L(), u = z(q, null), v = z(F, null);
|
|
24
|
-
function b() {
|
|
25
|
-
if (!u) throw new Error("Tabs: a tab has `to`, but no router is installed in the app.");
|
|
26
|
-
return u;
|
|
27
|
-
}
|
|
28
|
-
const s = G(), d = R("list"), S = D(() => n.presentation === "scope" && s.value);
|
|
29
|
-
function i(o) {
|
|
30
|
-
return o.to !== void 0 ? b().resolve(o.to).name === v?.name : o.value === C.value;
|
|
31
|
-
}
|
|
32
|
-
const _ = D(() => n.tabs.find(i)), p = (o) => `${g}-tab-${String(o.value)}`;
|
|
33
|
-
function m(o) {
|
|
34
|
-
o.to !== void 0 ? b().push(o.to) : C.value = o.value;
|
|
35
|
-
}
|
|
36
|
-
function T(o, y) {
|
|
37
|
-
const e = n.tabs.length - 1, t = { ArrowRight: y + 1, ArrowLeft: y - 1, Home: 0, End: e }[o.key];
|
|
38
|
-
if (t === void 0) return;
|
|
39
|
-
o.preventDefault();
|
|
40
|
-
const a = n.tabs[(t + n.tabs.length) % n.tabs.length];
|
|
41
|
-
a && (m(a), d.value?.querySelector(`[data-tab="${String(a.value)}"]`)?.focus());
|
|
42
|
-
}
|
|
43
|
-
const P = { start: "justify-start", center: "justify-center", end: "justify-end" };
|
|
44
|
-
return (o, y) => (l(), r("div", null, [
|
|
45
|
-
S.value ? (l(), r("nav", {
|
|
46
|
-
key: 0,
|
|
47
|
-
ref_key: "list",
|
|
48
|
-
ref: d,
|
|
49
|
-
class: "-mx-1 overflow-x-auto overflow-y-hidden",
|
|
50
|
-
"aria-label": n.label
|
|
51
|
-
}, [
|
|
52
|
-
x("ul", {
|
|
53
|
-
class: "flex gap-2 p-1",
|
|
54
|
-
role: "tablist",
|
|
55
|
-
"aria-label": n.label
|
|
56
|
-
}, [
|
|
57
|
-
(l(!0), r(E, null, K(n.tabs, (e, t) => (l(), r("li", {
|
|
58
|
-
key: e.value,
|
|
59
|
-
role: "presentation",
|
|
60
|
-
class: "shrink-0"
|
|
61
|
-
}, [
|
|
62
|
-
x("button", {
|
|
63
|
-
id: p(e),
|
|
64
|
-
type: "button",
|
|
65
|
-
role: "tab",
|
|
66
|
-
"aria-selected": i(e),
|
|
67
|
-
tabindex: i(e) ? 0 : -1,
|
|
68
|
-
"aria-controls": `${h(g)}-panel`,
|
|
69
|
-
"data-tab": String(e.value),
|
|
70
|
-
class: f(["flex min-h-[2.125rem] cursor-pointer items-center gap-1.5 whitespace-nowrap rounded-full px-3.5 text-subheadline font-semibold transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus", i(e) ? "bg-tint text-content-on-tint" : "bg-surface-cell text-content-strong shadow-group active:bg-fill"]),
|
|
71
|
-
onClick: (a) => m(e),
|
|
72
|
-
onKeydown: (a) => T(a, t)
|
|
73
|
-
}, [
|
|
74
|
-
V(k(e.shortLabel ?? e.label) + " ", 1),
|
|
75
|
-
e.badge ? (l(), r("span", ee, k(e.badge), 1)) : w("", !0),
|
|
76
|
-
e.warning ? (l(), N(h(M), {
|
|
77
|
-
key: 1,
|
|
78
|
-
name: "alertTriangle",
|
|
79
|
-
size: 14,
|
|
80
|
-
label: e.warning
|
|
81
|
-
}, null, 8, ["label"])) : w("", !0)
|
|
82
|
-
], 42, Z)
|
|
83
|
-
]))), 128))
|
|
84
|
-
], 8, Q)
|
|
85
|
-
], 8, J)) : (l(), r("nav", {
|
|
86
|
-
key: 1,
|
|
87
|
-
ref_key: "list",
|
|
88
|
-
ref: d,
|
|
89
|
-
"aria-label": n.label,
|
|
90
|
-
class: f([
|
|
91
|
-
n.presentation === "scope" ? "" : "overflow-y-hidden overflow-x-auto whitespace-nowrap",
|
|
92
|
-
n.presentation === "plain" ? "" : "rounded-control bg-fill p-0.5"
|
|
93
|
-
])
|
|
94
|
-
}, [
|
|
95
|
-
x("ul", {
|
|
96
|
-
class: f(["flex gap-0.5", n.presentation === "scope" ? "flex-wrap whitespace-nowrap" : "", P[n.alignment]]),
|
|
97
|
-
role: "tablist",
|
|
98
|
-
"aria-label": n.label
|
|
99
|
-
}, [
|
|
100
|
-
(l(!0), r(E, null, K(n.tabs, (e, t) => (l(), r("li", {
|
|
101
|
-
key: e.value,
|
|
102
|
-
role: "presentation",
|
|
103
|
-
class: f({ "flex flex-1": n.stretch })
|
|
104
|
-
}, [
|
|
105
|
-
x("button", {
|
|
106
|
-
id: p(e),
|
|
107
|
-
type: "button",
|
|
108
|
-
role: "tab",
|
|
109
|
-
"aria-selected": i(e),
|
|
110
|
-
tabindex: i(e) ? 0 : -1,
|
|
111
|
-
"aria-controls": `${h(g)}-panel`,
|
|
112
|
-
"data-tab": String(e.value),
|
|
113
|
-
class: f([
|
|
114
|
-
"flex min-h-8 cursor-pointer items-center justify-center rounded-control px-3.5 py-1 text-subheadline transition-colors duration-motion-fast ease-motion-standard focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
|
|
115
|
-
i(e) ? "bg-segment-selected font-semibold text-content-strong shadow-sm" : "font-medium text-content hover:text-content-strong",
|
|
116
|
-
n.stretch ? "flex-1" : ""
|
|
117
|
-
]),
|
|
118
|
-
onClick: (a) => m(e),
|
|
119
|
-
onKeydown: (a) => T(a, t)
|
|
120
|
-
}, [
|
|
121
|
-
e.icon ? (l(), N(h(M), {
|
|
122
|
-
key: 0,
|
|
123
|
-
name: e.icon,
|
|
124
|
-
class: f(["mr-2", i(e) ? "text-content-link" : ""])
|
|
125
|
-
}, null, 8, ["name", "class"])) : w("", !0),
|
|
126
|
-
V(" " + k(e.label) + " ", 1),
|
|
127
|
-
e.badge ? (l(), r("span", {
|
|
128
|
-
key: 1,
|
|
129
|
-
class: f(["ml-2 block min-w-[1.125rem] rounded-full px-1.5 text-center text-caption font-semibold tabular-nums", i(e) ? "bg-tint-soft text-content-link" : "bg-surface-cell text-content-muted"])
|
|
130
|
-
}, k(e.badge), 3)) : w("", !0),
|
|
131
|
-
e.warning ? (l(), N(h(M), {
|
|
132
|
-
key: 2,
|
|
133
|
-
name: "alertTriangle",
|
|
134
|
-
size: 16,
|
|
135
|
-
label: e.warning,
|
|
136
|
-
class: "ml-2 text-status-warning-content"
|
|
137
|
-
}, null, 8, ["label"])) : w("", !0)
|
|
138
|
-
], 42, oe)
|
|
139
|
-
], 2))), 128))
|
|
140
|
-
], 10, ne)
|
|
141
|
-
], 10, te)),
|
|
142
|
-
o.$slots.default ? (l(), r("div", {
|
|
143
|
-
key: 2,
|
|
144
|
-
id: `${h(g)}-panel`,
|
|
145
|
-
role: "tabpanel",
|
|
146
|
-
"aria-labelledby": _.value ? p(_.value) : void 0,
|
|
147
|
-
class: "mt-4"
|
|
148
|
-
}, [
|
|
149
|
-
B(o.$slots, "default")
|
|
150
|
-
], 8, le)) : w("", !0)
|
|
151
|
-
]));
|
|
152
|
-
}
|
|
153
|
-
}), ae = ["aria-hidden"], se = ["href", "target", "rel", "tabindex", "data-action"], re = Symbol("vue-core:swipe-open-row"), ie = () => U(re, () => j(null)), ve = /* @__PURE__ */ O({
|
|
154
|
-
__name: "SwipeActions",
|
|
155
|
-
props: {
|
|
156
|
-
actions: {},
|
|
157
|
-
contentClass: { default: "" }
|
|
158
|
-
},
|
|
159
|
-
setup($) {
|
|
160
|
-
const n = $, C = 76, g = {
|
|
161
|
-
positive: "bg-status-success-solid",
|
|
162
|
-
info: "bg-status-info-solid",
|
|
163
|
-
neutral: "bg-status-neutral-solid",
|
|
164
|
-
critical: "bg-status-danger-solid"
|
|
165
|
-
}, u = ie(), v = Symbol("swipe-row"), b = D(() => n.actions.length * C), s = j(0), d = j(!1);
|
|
166
|
-
let S = 0, i = 0, _ = 0, p = null, m = !1;
|
|
167
|
-
function T(t) {
|
|
168
|
-
m = !1, !(t.pointerType !== "touch" || n.actions.length === 0) && (S = t.clientX, i = t.clientY, _ = s.value, p = null);
|
|
169
|
-
}
|
|
170
|
-
function P(t) {
|
|
171
|
-
if (t.pointerType !== "touch" || n.actions.length === 0) return;
|
|
172
|
-
const a = t.clientX - S, c = t.clientY - i;
|
|
173
|
-
if (p === null) {
|
|
174
|
-
if (Math.abs(a) < 6 && Math.abs(c) < 6) return;
|
|
175
|
-
p = Math.abs(a) > Math.abs(c);
|
|
176
|
-
}
|
|
177
|
-
p && (d.value = !0, s.value = Math.min(0, Math.max(-b.value - 24, _ + a)));
|
|
178
|
-
}
|
|
179
|
-
function o() {
|
|
180
|
-
s.value = 0, u.value === v && (u.value = null);
|
|
181
|
-
}
|
|
182
|
-
function y() {
|
|
183
|
-
if (!d.value) return;
|
|
184
|
-
d.value = !1, m = !0;
|
|
185
|
-
const t = -s.value > b.value / 2;
|
|
186
|
-
s.value = t ? -b.value : 0, t ? u.value = v : u.value === v && (u.value = null);
|
|
187
|
-
}
|
|
188
|
-
function e(t) {
|
|
189
|
-
if (m) {
|
|
190
|
-
m = !1, t.stopPropagation(), t.preventDefault();
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
s.value !== 0 && !t.target.closest("[data-swipe-action]") && (t.stopPropagation(), t.preventDefault(), o());
|
|
194
|
-
}
|
|
195
|
-
return Y(u, (t) => {
|
|
196
|
-
t !== v && s.value !== 0 && !d.value && (s.value = 0);
|
|
197
|
-
}), H(() => {
|
|
198
|
-
u.value === v && (u.value = null);
|
|
199
|
-
}), (t, a) => (l(), r("div", {
|
|
200
|
-
class: "relative overflow-hidden",
|
|
201
|
-
"data-test": "swipe-row",
|
|
202
|
-
onClickCapture: e
|
|
203
|
-
}, [
|
|
204
|
-
x("div", {
|
|
205
|
-
class: "absolute inset-y-0 right-0 flex",
|
|
206
|
-
style: A({ width: `${b.value}px` }),
|
|
207
|
-
"aria-hidden": s.value === 0
|
|
208
|
-
}, [
|
|
209
|
-
(l(!0), r(E, null, K(n.actions, (c) => (l(), r("a", {
|
|
210
|
-
key: c.key,
|
|
211
|
-
href: c.href,
|
|
212
|
-
"data-swipe-action": "",
|
|
213
|
-
target: c.external ? "_blank" : void 0,
|
|
214
|
-
rel: c.external ? "noopener" : void 0,
|
|
215
|
-
tabindex: s.value === 0 ? -1 : 0,
|
|
216
|
-
"data-action": c.key,
|
|
217
|
-
class: f(["flex flex-1 flex-col items-center justify-center gap-1 text-footnote font-semibold text-white", g[c.tone]]),
|
|
218
|
-
onClick: o
|
|
219
|
-
}, [
|
|
220
|
-
W(h(M), {
|
|
221
|
-
name: c.icon,
|
|
222
|
-
size: 22
|
|
223
|
-
}, null, 8, ["name"]),
|
|
224
|
-
V(" " + k(c.label), 1)
|
|
225
|
-
], 10, se))), 128))
|
|
226
|
-
], 12, ae),
|
|
227
|
-
x("div", {
|
|
228
|
-
class: f(["relative touch-pan-y bg-surface-cell", [n.contentClass, d.value ? "" : "transition-transform duration-motion-normal ease-motion-standard"]]),
|
|
229
|
-
style: A({ transform: `translateX(${s.value}px)` }),
|
|
230
|
-
onPointerdown: T,
|
|
231
|
-
onPointermove: P,
|
|
232
|
-
onPointerup: y,
|
|
233
|
-
onPointercancel: y
|
|
234
|
-
}, [
|
|
235
|
-
B(t.$slots, "default")
|
|
236
|
-
], 38)
|
|
237
|
-
], 32));
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
export {
|
|
241
|
-
ve as _,
|
|
242
|
-
me as a
|
|
243
|
-
};
|
package/dist/chrome-D9pwD6iS.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { ref as c, getCurrentInstance as w, inject as T, shallowRef as C, computed as m, watch as k, toValue as s, onBeforeUnmount as M } from "vue";
|
|
2
|
-
import { d as g } from "./context-Ch1r4fdN.js";
|
|
3
|
-
const [y, I] = g("vue-core.bottomDock");
|
|
4
|
-
function P(l) {
|
|
5
|
-
const n = c(null);
|
|
6
|
-
return l.provide(y, n), n;
|
|
7
|
-
}
|
|
8
|
-
const b = 30;
|
|
9
|
-
function O() {
|
|
10
|
-
const l = c(null), n = c(""), o = c(!0), a = C(/* @__PURE__ */ new Map()), v = c(0), u = /* @__PURE__ */ new Map();
|
|
11
|
-
let f = null, r = null;
|
|
12
|
-
const d = m(() => Array.from(a.value.values())), p = m(() => d.value.flatMap((e) => e.actions)), i = (e) => m(() => d.value.map((t) => t[e]).filter((t) => t != null).pop() ?? null);
|
|
13
|
-
return {
|
|
14
|
-
back: l,
|
|
15
|
-
title: n,
|
|
16
|
-
titleInView: o,
|
|
17
|
-
actions: p,
|
|
18
|
-
leading: i("leading"),
|
|
19
|
-
status: i("status"),
|
|
20
|
-
navTitle: i("navTitle"),
|
|
21
|
-
documentTitle: i("documentTitle"),
|
|
22
|
-
hasShell: m(() => v.value > 0),
|
|
23
|
-
claimShell() {
|
|
24
|
-
v.value++;
|
|
25
|
-
let e = !1;
|
|
26
|
-
return () => {
|
|
27
|
-
e || v.value--, e = !0;
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
claim() {
|
|
31
|
-
const e = Symbol("page-chrome-owner");
|
|
32
|
-
return {
|
|
33
|
-
setBack(t) {
|
|
34
|
-
f = e, l.value = t;
|
|
35
|
-
},
|
|
36
|
-
clearBack() {
|
|
37
|
-
f === e && (f = null, l.value = null);
|
|
38
|
-
},
|
|
39
|
-
setTitle(t) {
|
|
40
|
-
r !== e && (o.value = !0), r = e, n.value = t;
|
|
41
|
-
},
|
|
42
|
-
setTitleInView(t) {
|
|
43
|
-
r === e && (o.value = t);
|
|
44
|
-
},
|
|
45
|
-
clearTitle() {
|
|
46
|
-
r === e && (r = null, n.value = "", o.value = !0);
|
|
47
|
-
},
|
|
48
|
-
setRegistration(t) {
|
|
49
|
-
a.value = new Map(a.value).set(e, t);
|
|
50
|
-
},
|
|
51
|
-
clearRegistration() {
|
|
52
|
-
if (!a.value.has(e)) return;
|
|
53
|
-
const t = new Map(a.value);
|
|
54
|
-
t.delete(e), a.value = t;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
},
|
|
58
|
-
focusMemory: {
|
|
59
|
-
take(e) {
|
|
60
|
-
const t = u.get(e);
|
|
61
|
-
return u.delete(e), t;
|
|
62
|
-
},
|
|
63
|
-
put(e, t) {
|
|
64
|
-
u.delete(e), u.set(e, t), u.size > b && u.delete(u.keys().next().value ?? "");
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
const [h, R] = g("vue-core.pageChrome");
|
|
70
|
-
function D(l) {
|
|
71
|
-
const n = O();
|
|
72
|
-
return l.provide(h, n), n;
|
|
73
|
-
}
|
|
74
|
-
function S() {
|
|
75
|
-
return w() ? T(h, null) : null;
|
|
76
|
-
}
|
|
77
|
-
function V(l) {
|
|
78
|
-
const o = R().claim();
|
|
79
|
-
k(
|
|
80
|
-
() => ({
|
|
81
|
-
actions: s(l.actions) ?? [],
|
|
82
|
-
leading: s(l.leading) ?? null,
|
|
83
|
-
status: s(l.status) ?? null,
|
|
84
|
-
navTitle: s(l.navTitle) ?? null,
|
|
85
|
-
documentTitle: s(l.documentTitle) ?? null
|
|
86
|
-
}),
|
|
87
|
-
(a) => o.setRegistration(a),
|
|
88
|
-
{ immediate: !0, deep: !0 }
|
|
89
|
-
), M(() => o.clearRegistration());
|
|
90
|
-
}
|
|
91
|
-
export {
|
|
92
|
-
D as a,
|
|
93
|
-
y as b,
|
|
94
|
-
O as c,
|
|
95
|
-
V as d,
|
|
96
|
-
R as e,
|
|
97
|
-
S as f,
|
|
98
|
-
P as i,
|
|
99
|
-
h as p,
|
|
100
|
-
I as u
|
|
101
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { inject as v, onMounted as m, onBeforeUnmount as p, shallowRef as h } from "vue";
|
|
2
|
-
import { matchedRouteKey as w, onBeforeRouteLeave as g, onBeforeRouteUpdate as L } from "vue-router";
|
|
3
|
-
import { d as f } from "./context-Ch1r4fdN.js";
|
|
4
|
-
class G extends Error {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(
|
|
7
|
-
'A page with unsaved changes needs to ask "Discard changes?", but no <LeaveGuardRoot /> is mounted. BackofficeShell renders it; a shell of your own must render <LeaveGuardRoot /> once (import it from @wssto2/vue-core/form).'
|
|
8
|
-
), this.name = "MissingLeaveGuardRootError";
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function R() {
|
|
12
|
-
const n = h(null), o = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new WeakMap();
|
|
13
|
-
let t = 0;
|
|
14
|
-
function r(e = null) {
|
|
15
|
-
if (t === 0) return Promise.reject(new G());
|
|
16
|
-
const l = e ? a.get(e) : void 0;
|
|
17
|
-
if (l) return l;
|
|
18
|
-
const s = n.value;
|
|
19
|
-
if (s && e === null && s.to === null) return s.decision;
|
|
20
|
-
s?.resolve(!1);
|
|
21
|
-
let c;
|
|
22
|
-
const u = new Promise((i) => c = i), d = {
|
|
23
|
-
to: e,
|
|
24
|
-
decision: u,
|
|
25
|
-
resolve: (i) => {
|
|
26
|
-
n.value === d && (n.value = null), c(i);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
return n.value = d, e && a.set(e, u), u;
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
pending: n,
|
|
33
|
-
confirm: r,
|
|
34
|
-
attach() {
|
|
35
|
-
t++;
|
|
36
|
-
let e = !1;
|
|
37
|
-
return () => {
|
|
38
|
-
e || t--, e = !0;
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
register(e) {
|
|
42
|
-
return o.add(e), () => o.delete(e);
|
|
43
|
-
},
|
|
44
|
-
hasUnsavedChanges: () => [...o].some((e) => e())
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
const [k, B] = f("vue-core.leaveGuard");
|
|
48
|
-
function x(n) {
|
|
49
|
-
const o = R();
|
|
50
|
-
return n.provide(k, o), o;
|
|
51
|
-
}
|
|
52
|
-
function U(n) {
|
|
53
|
-
const o = B();
|
|
54
|
-
v(w, null) && (g((r) => n() ? o.confirm(r) : !0), L((r, e) => r.path !== e.path && n() ? o.confirm(r) : !0));
|
|
55
|
-
function a(r) {
|
|
56
|
-
n() && (r.preventDefault(), r.returnValue = "");
|
|
57
|
-
}
|
|
58
|
-
let t = null;
|
|
59
|
-
return m(() => {
|
|
60
|
-
window.addEventListener("beforeunload", a), t = o.register(n);
|
|
61
|
-
}), p(() => {
|
|
62
|
-
window.removeEventListener("beforeunload", a), t?.();
|
|
63
|
-
}), { confirmDiscard: async () => !n() || o.confirm() };
|
|
64
|
-
}
|
|
65
|
-
const [C, K] = f("vue-core.application");
|
|
66
|
-
export {
|
|
67
|
-
G as M,
|
|
68
|
-
C as a,
|
|
69
|
-
K as b,
|
|
70
|
-
U as c,
|
|
71
|
-
R as d,
|
|
72
|
-
x as i,
|
|
73
|
-
k as l,
|
|
74
|
-
B as u
|
|
75
|
-
};
|
package/dist/feature-DyDtyMLU.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, h as i } from "vue";
|
|
2
|
-
import { d as p } from "./context-Ch1r4fdN.js";
|
|
3
|
-
function b(t, e) {
|
|
4
|
-
const s = t.map(({ contribution: o }) => o).sort((o, n) => (o.order ?? 0) - (n.order ?? 0));
|
|
5
|
-
return {
|
|
6
|
-
get(o) {
|
|
7
|
-
const n = e.state.value.status === "authenticated";
|
|
8
|
-
return s.filter((a) => a.slot === o && (a.scope === "always" || n));
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const [h, d] = p("vue-core.shellContributions"), f = c({
|
|
13
|
-
name: "ShellOutlet",
|
|
14
|
-
props: { name: { type: String, required: !0 } },
|
|
15
|
-
setup(t) {
|
|
16
|
-
const e = d();
|
|
17
|
-
return () => e.get(t.name).map((s) => i(s.component, { key: s.id }));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
function g(t, e) {
|
|
21
|
-
return { key: t, value: e };
|
|
22
|
-
}
|
|
23
|
-
const u = /* @__PURE__ */ new WeakSet(), y = (t) => typeof t == "object" && t !== null && u.has(t), r = (t) => t === void 0 ? [] : Array.isArray(t) ? [...t] : [t];
|
|
24
|
-
function C(t) {
|
|
25
|
-
if (typeof t.id != "string" || t.id.trim() === "") throw new Error("defineFeature: `id` must be a non-empty string.");
|
|
26
|
-
const e = Object.freeze({
|
|
27
|
-
id: t.id,
|
|
28
|
-
routes: r(t.routes),
|
|
29
|
-
contexts: r(t.context),
|
|
30
|
-
messages: r(t.messages),
|
|
31
|
-
navigation: r(t.navigation),
|
|
32
|
-
contributions: r(t.contributions),
|
|
33
|
-
effects: r(t.effects),
|
|
34
|
-
backend: r(t.backend),
|
|
35
|
-
requires: r(t.requires).map((s) => typeof s == "string" ? s : s.id)
|
|
36
|
-
});
|
|
37
|
-
return u.add(e), e;
|
|
38
|
-
}
|
|
39
|
-
export {
|
|
40
|
-
f as S,
|
|
41
|
-
b as c,
|
|
42
|
-
C as d,
|
|
43
|
-
y as i,
|
|
44
|
-
g as p,
|
|
45
|
-
h as s,
|
|
46
|
-
d as u
|
|
47
|
-
};
|