@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
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as d, computed as s, useSlots as u, openBlock as w, createElementBlock as p, createVNode as y, unref as f, createSlots as m, renderList as b, withCtx as h, renderSlot as v, normalizeProps as _, guardReactiveProps as g } from "vue";
|
|
2
|
+
import { u as k, _ as R } from "./rowLayout-BqTEhEuy.js";
|
|
3
|
+
const B = ["aria-busy"], S = /* @__PURE__ */ d({
|
|
4
|
+
__name: "DataTable",
|
|
5
|
+
props: {
|
|
6
|
+
rows: {},
|
|
7
|
+
columns: {},
|
|
8
|
+
rowKey: {},
|
|
9
|
+
loading: { type: Boolean, default: !1 },
|
|
10
|
+
skeletonRows: { default: 3 },
|
|
11
|
+
recordRoute: { type: Function, default: void 0 },
|
|
12
|
+
rowActions: { type: Function, default: void 0 },
|
|
13
|
+
rowLabel: { type: Function, default: void 0 },
|
|
14
|
+
rowHeight: { default: void 0 },
|
|
15
|
+
density: { default: "regular" },
|
|
16
|
+
actionsVisible: { type: Boolean, default: !1 },
|
|
17
|
+
rowClass: { type: Function, default: void 0 }
|
|
18
|
+
},
|
|
19
|
+
setup(r) {
|
|
20
|
+
const o = r, { phone: a } = k(() => o.columns), n = s(() => o.loading ? "loading" : o.rows.length === 0 ? "empty" : "rows"), l = (e) => o.recordRoute ? o.recordRoute(e) : null, i = s(() => Object.keys(u()));
|
|
21
|
+
return (e, C) => (w(), p("div", {
|
|
22
|
+
"aria-busy": o.loading || void 0,
|
|
23
|
+
"data-test": "data-table"
|
|
24
|
+
}, [
|
|
25
|
+
y(R, {
|
|
26
|
+
columns: o.columns,
|
|
27
|
+
rows: o.rows,
|
|
28
|
+
"row-key": o.rowKey,
|
|
29
|
+
display: n.value,
|
|
30
|
+
phone: f(a),
|
|
31
|
+
link: l,
|
|
32
|
+
"row-actions": o.rowActions,
|
|
33
|
+
"row-label": o.rowLabel,
|
|
34
|
+
"row-height": o.rowHeight,
|
|
35
|
+
density: o.density,
|
|
36
|
+
"actions-visible": o.actionsVisible,
|
|
37
|
+
"skeleton-rows": o.skeletonRows,
|
|
38
|
+
"row-class": o.rowClass
|
|
39
|
+
}, m({ _: 2 }, [
|
|
40
|
+
b(i.value, (t) => ({
|
|
41
|
+
name: t,
|
|
42
|
+
fn: h((c) => [
|
|
43
|
+
v(e.$slots, t, _(g(c ?? {})))
|
|
44
|
+
])
|
|
45
|
+
}))
|
|
46
|
+
]), 1032, ["columns", "rows", "row-key", "display", "phone", "row-actions", "row-label", "row-height", "density", "actions-visible", "skeleton-rows", "row-class"])
|
|
47
|
+
], 8, B));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
S as _
|
|
52
|
+
};
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { computed as f, defineComponent as X, useModel as Z, useTemplateRef as $, openBlock as y, createBlock as A, mergeProps as V, unref as l, withCtx as N, createElementBlock as C, Fragment as I, createVNode as w, createTextVNode as ee, toDisplayString as Q, createCommentVNode as E, createElementVNode as O, normalizeClass as te, mergeModels as re, mergeDefaults as oe, nextTick as Y } from "vue";
|
|
2
|
+
import { useI18n as j } from "vue-i18n";
|
|
3
|
+
import { _ as ae } from "./DateButton.vue_vue_type_script_setup_true_lang-EcqrfWKz.js";
|
|
4
|
+
import { u as K } from "./format-B8mJm946.js";
|
|
5
|
+
import { _ as ne } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
6
|
+
import { u as le } from "./mediaQuery-CygcXmFW.js";
|
|
7
|
+
import { _ as se } from "./Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js";
|
|
8
|
+
import { c as ie, _ as de, f as ue, b as ce } from "./control-7EP4tjYy.js";
|
|
9
|
+
import { e as T, f as B, m as G, g as H, h as me, j as fe, u as pe, k as be, _ as ve, l as ye, c as xe } from "./useTypedEntry-aTfPBAhw.js";
|
|
10
|
+
const ke = ["d", "m", "y"];
|
|
11
|
+
function he(o) {
|
|
12
|
+
const r = o("2033-11-22"), e = { y: r.indexOf("2033") >= 0 ? r.indexOf("2033") : r.indexOf("33"), m: r.indexOf("11"), d: r.indexOf("22") };
|
|
13
|
+
return e.y < 0 || e.m < 0 || e.d < 0 ? ke : ["d", "m", "y"].sort((t, a) => e[t] - e[a]);
|
|
14
|
+
}
|
|
15
|
+
const ge = (o) => o.trim().toLowerCase().replace(/\.+$/, "");
|
|
16
|
+
function _e(o, r) {
|
|
17
|
+
if (o.length === 4) return Number(o);
|
|
18
|
+
if (o.length > 2) return null;
|
|
19
|
+
const e = 2e3 + Number(o);
|
|
20
|
+
return e > Number(r.slice(0, 4)) + 30 ? e - 100 : e;
|
|
21
|
+
}
|
|
22
|
+
function x(o, r) {
|
|
23
|
+
const e = o.y === void 0 ? Number(r.slice(0, 4)) : _e(o.y, r), t = o.m === void 0 ? Number(r.slice(5, 7)) : Number(o.m);
|
|
24
|
+
return e === null || o.d === void 0 ? null : G(e, t, Number(o.d));
|
|
25
|
+
}
|
|
26
|
+
function we(o, r) {
|
|
27
|
+
const e = r.today ?? T(), t = ge(o);
|
|
28
|
+
if (t === "") return null;
|
|
29
|
+
const { words: a } = r;
|
|
30
|
+
if (a.today.includes(t)) return e;
|
|
31
|
+
if (a.tomorrow.includes(t)) return B(e, 1);
|
|
32
|
+
if (a.yesterday.includes(t)) return B(e, -1);
|
|
33
|
+
const d = /^([+-])\s*(\d{1,4})$/.exec(t);
|
|
34
|
+
if (d) return B(e, Number(d[2]) * (d[1] === "-" ? -1 : 1));
|
|
35
|
+
const i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(t);
|
|
36
|
+
if (i) return G(Number(i[1]), Number(i[2]), Number(i[3]));
|
|
37
|
+
if (!/^[\d\s./-]+$/.test(t)) return null;
|
|
38
|
+
const n = r.order, p = n.filter((v) => v !== "y");
|
|
39
|
+
if (/^\d+$/.test(t)) {
|
|
40
|
+
if (t.length <= 2) return x({ d: t }, e);
|
|
41
|
+
if (t.length === 4) return x(M(p, [t.slice(0, 2), t.slice(2)]), e);
|
|
42
|
+
if (t.length === 6 || t.length === 8) {
|
|
43
|
+
const v = n.map((u) => u === "y" ? t.length - 4 : 2);
|
|
44
|
+
let k = 0;
|
|
45
|
+
const b = n.map((u, h) => [u, t.slice(k, k += v[h])]);
|
|
46
|
+
return x(Object.fromEntries(b), e);
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
const m = t.split(/[^\d]+/).filter(Boolean);
|
|
51
|
+
return m.length === 3 ? x(M(n, m), e) : m.length === 2 ? x(M(p, m), e) : m.length === 1 ? x({ d: m[0] }, e) : null;
|
|
52
|
+
}
|
|
53
|
+
function M(o, r) {
|
|
54
|
+
return Object.fromEntries(o.map((e, t) => [e, r[t]]));
|
|
55
|
+
}
|
|
56
|
+
function Ue(o) {
|
|
57
|
+
const r = o.trim().replace(/^(\d{4}-\d{2}-\d{2})T/, "$1 ").split(/\s+/).filter(Boolean), e = r[r.length - 1];
|
|
58
|
+
if (e === void 0) return { date: null, time: null };
|
|
59
|
+
if (!(e.includes(":") || r.length > 1 && /^\d{1,2}\.\d{2}$/.test(e))) return { date: r.join(" "), time: null };
|
|
60
|
+
const a = r.slice(0, -1).join(" ");
|
|
61
|
+
return { date: a === "" ? null : a, time: e };
|
|
62
|
+
}
|
|
63
|
+
function De(o, r, e) {
|
|
64
|
+
const t = o(e), a = /\D+/.exec(t)?.[0].trim() ?? ".", d = /\D+$/.test(t) ? a : "", i = { d: String(Number(e.slice(8))), m: String(Number(e.slice(5, 7))), y: "" };
|
|
65
|
+
return r.filter((n) => n !== "y").map((n) => i[n]).join(a) + d;
|
|
66
|
+
}
|
|
67
|
+
function $e(o) {
|
|
68
|
+
const { t: r } = j(), e = K(), t = (n) => e.date(n), a = f(() => he(t)), d = f(() => ({
|
|
69
|
+
today: [r("core.form.date.words.today").toLowerCase(), "today"],
|
|
70
|
+
tomorrow: [r("core.form.date.words.tomorrow").toLowerCase(), "tomorrow"],
|
|
71
|
+
yesterday: [r("core.form.date.words.yesterday").toLowerCase(), "yesterday"]
|
|
72
|
+
}));
|
|
73
|
+
return {
|
|
74
|
+
placeholder: f(() => r("core.form.date.placeholder", { example: De(t, a.value, T()) })),
|
|
75
|
+
/** The day a text means, or null. */
|
|
76
|
+
parse: (n) => we(n, { order: a.value, words: d.value }),
|
|
77
|
+
available: (n) => !H(n, o()),
|
|
78
|
+
invalidMessage: () => r("core.form.date.invalid", { example: t(T()) }),
|
|
79
|
+
unavailableMessage: () => r("core.form.date.unavailable")
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function Ne(o, r, e) {
|
|
83
|
+
const { t } = j();
|
|
84
|
+
return f(() => {
|
|
85
|
+
const a = T();
|
|
86
|
+
return (o() ?? me(r())).map((d) => {
|
|
87
|
+
const i = fe(d, (n) => t(`core.form.date.${n.replace(/-/g, "_")}`), a);
|
|
88
|
+
return { ...i, disabled: H(i.value, e()) };
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
const Ce = ["id", "name", "value", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], Oe = ["aria-label", "onClick"], Te = { class: "flex flex-col gap-2.5" }, qe = {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: "border-t border-border-separator pt-2.5"
|
|
95
|
+
}, Pe = { class: "text-footnote text-content-muted" }, Re = /* @__PURE__ */ X({
|
|
96
|
+
__name: "DateField",
|
|
97
|
+
props: /* @__PURE__ */ re(/* @__PURE__ */ oe({
|
|
98
|
+
label: {},
|
|
99
|
+
hint: {},
|
|
100
|
+
error: {},
|
|
101
|
+
required: { type: Boolean },
|
|
102
|
+
editable: { type: Boolean },
|
|
103
|
+
disabled: { type: Boolean },
|
|
104
|
+
lockedReason: {},
|
|
105
|
+
presentation: {},
|
|
106
|
+
name: {},
|
|
107
|
+
min: {},
|
|
108
|
+
max: {},
|
|
109
|
+
disabledDates: { type: [Array, Function] },
|
|
110
|
+
openOn: {},
|
|
111
|
+
quickPicks: {}
|
|
112
|
+
}, { ...ce, min: void 0, max: void 0, disabledDates: void 0, openOn: void 0, quickPicks: void 0 }), {
|
|
113
|
+
modelValue: { default: null },
|
|
114
|
+
modelModifiers: {}
|
|
115
|
+
}),
|
|
116
|
+
emits: ["update:modelValue"],
|
|
117
|
+
setup(o, { expose: r }) {
|
|
118
|
+
const e = o, t = Z(o, "modelValue"), { t: a } = j(), d = K(), i = le(), n = $("input"), p = $("popover"), m = $("calendar"), v = $("sheet"), k = f(() => ({ min: e.min, max: e.max, disabled: e.disabledDates })), b = $e(() => k.value), u = pe({
|
|
119
|
+
model: t,
|
|
120
|
+
display: (c) => d.date(c),
|
|
121
|
+
parse: (c) => {
|
|
122
|
+
const s = b.parse(c);
|
|
123
|
+
return s ? b.available(s) ? { value: s } : { error: b.unavailableMessage() } : { error: b.invalidMessage() };
|
|
124
|
+
}
|
|
125
|
+
}), h = Ne(() => e.quickPicks, () => i.value, () => k.value), L = f(() => e.error || u.message.value), q = f(() => t.value ? d.date(t.value) : null), J = ie("date", () => L.value ? "error" : e.disabled ? "locked" : "rest"), z = f(() => u.typed.value ?? (be(t.value) ? t.value : null));
|
|
126
|
+
async function P(c) {
|
|
127
|
+
e.disabled || (p.value?.present(), c && (await Y(), await Y(), m.value?.focus()));
|
|
128
|
+
}
|
|
129
|
+
function W(c) {
|
|
130
|
+
c.key === "Enter" ? (u.commit(), p.value?.dismiss()) : c.key === "ArrowDown" && (c.preventDefault(), P(!0));
|
|
131
|
+
}
|
|
132
|
+
function F(c, s) {
|
|
133
|
+
u.set(c), s();
|
|
134
|
+
}
|
|
135
|
+
return r({ focus: () => n.value?.focus() }), (c, s) => (y(), A(de, V({ ...l(ue)(e), error: L.value }, {
|
|
136
|
+
value: q.value,
|
|
137
|
+
"value-style": "numeric"
|
|
138
|
+
}), {
|
|
139
|
+
default: N(({ id: S, describedby: U, invalid: R }) => [
|
|
140
|
+
l(i) ? (y(), C(I, { key: 0 }, [
|
|
141
|
+
w(ae, V({ id: S, "aria-describedby": U }, {
|
|
142
|
+
disabled: e.disabled,
|
|
143
|
+
invalid: R,
|
|
144
|
+
placeholder: l(a)("core.form.select.choose"),
|
|
145
|
+
onClick: s[0] || (s[0] = (g) => v.value?.present())
|
|
146
|
+
}), {
|
|
147
|
+
default: N(() => [
|
|
148
|
+
q.value ? (y(), C(I, { key: 0 }, [
|
|
149
|
+
ee(Q(q.value), 1)
|
|
150
|
+
], 64)) : E("", !0)
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
}, 16, ["disabled", "invalid", "placeholder"]),
|
|
154
|
+
w(ve, {
|
|
155
|
+
ref_key: "sheet",
|
|
156
|
+
ref: v,
|
|
157
|
+
title: e.label ?? l(a)("core.form.date.calendar"),
|
|
158
|
+
mode: "date",
|
|
159
|
+
"model-value": t.value,
|
|
160
|
+
min: e.min,
|
|
161
|
+
max: e.max,
|
|
162
|
+
"disabled-dates": e.disabledDates,
|
|
163
|
+
"open-on": e.openOn,
|
|
164
|
+
shortcuts: l(h),
|
|
165
|
+
clearable: !e.required,
|
|
166
|
+
"onUpdate:modelValue": l(u).set
|
|
167
|
+
}, null, 8, ["title", "model-value", "min", "max", "disabled-dates", "open-on", "shortcuts", "clearable", "onUpdate:modelValue"])
|
|
168
|
+
], 64)) : (y(), A(se, {
|
|
169
|
+
key: 1,
|
|
170
|
+
ref_key: "popover",
|
|
171
|
+
ref: p,
|
|
172
|
+
label: e.label ?? l(a)("core.form.date.calendar"),
|
|
173
|
+
width: "lg",
|
|
174
|
+
placement: "bottom-start",
|
|
175
|
+
arrow: !1,
|
|
176
|
+
autofocus: !1
|
|
177
|
+
}, {
|
|
178
|
+
trigger: N(({ attrs: g, presented: _ }) => [
|
|
179
|
+
O("div", {
|
|
180
|
+
class: te(["inline-flex max-w-full items-center gap-2", l(J)])
|
|
181
|
+
}, [
|
|
182
|
+
O("input", V({
|
|
183
|
+
id: S,
|
|
184
|
+
ref_key: "input",
|
|
185
|
+
ref: n
|
|
186
|
+
}, g, {
|
|
187
|
+
type: "text",
|
|
188
|
+
role: "combobox",
|
|
189
|
+
autocomplete: "off",
|
|
190
|
+
size: "16",
|
|
191
|
+
name: e.name,
|
|
192
|
+
value: l(u).text.value,
|
|
193
|
+
placeholder: l(b).placeholder.value,
|
|
194
|
+
disabled: e.disabled,
|
|
195
|
+
required: e.required,
|
|
196
|
+
"aria-required": e.required || void 0,
|
|
197
|
+
"aria-invalid": R || void 0,
|
|
198
|
+
"aria-describedby": U,
|
|
199
|
+
class: "block min-h-7 min-w-0 border-0 bg-transparent py-1 pl-2.5 text-body tabular-nums text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
|
|
200
|
+
onInput: s[1] || (s[1] = (D) => l(u).input(D.target.value)),
|
|
201
|
+
onBlur: s[2] || (s[2] = (D) => l(u).commit()),
|
|
202
|
+
onKeydown: W,
|
|
203
|
+
onClick: s[3] || (s[3] = (D) => P(!1))
|
|
204
|
+
}), null, 16, Ce),
|
|
205
|
+
e.disabled ? E("", !0) : (y(), C("button", {
|
|
206
|
+
key: 0,
|
|
207
|
+
type: "button",
|
|
208
|
+
tabindex: "-1",
|
|
209
|
+
"aria-label": l(a)("core.form.date.open"),
|
|
210
|
+
class: "mr-2 flex shrink-0 cursor-pointer items-center text-content-link",
|
|
211
|
+
onClick: (D) => _ ? p.value?.dismiss() : P(!0)
|
|
212
|
+
}, [
|
|
213
|
+
w(l(ne), {
|
|
214
|
+
name: "calendarLine",
|
|
215
|
+
size: 18
|
|
216
|
+
})
|
|
217
|
+
], 8, Oe))
|
|
218
|
+
], 2)
|
|
219
|
+
]),
|
|
220
|
+
default: N(({ dismiss: g }) => [
|
|
221
|
+
O("div", Te, [
|
|
222
|
+
w(ye, {
|
|
223
|
+
ref_key: "calendar",
|
|
224
|
+
ref: m,
|
|
225
|
+
"model-value": z.value,
|
|
226
|
+
min: e.min,
|
|
227
|
+
max: e.max,
|
|
228
|
+
"disabled-dates": e.disabledDates,
|
|
229
|
+
"open-on": e.openOn,
|
|
230
|
+
"month-picker": "",
|
|
231
|
+
"onUpdate:modelValue": (_) => F(_, g)
|
|
232
|
+
}, null, 8, ["model-value", "min", "max", "disabled-dates", "open-on", "onUpdate:modelValue"]),
|
|
233
|
+
l(h).length > 0 ? (y(), C("div", qe, [
|
|
234
|
+
w(xe, {
|
|
235
|
+
items: l(h),
|
|
236
|
+
selected: z.value,
|
|
237
|
+
onPick: (_) => F(_, g)
|
|
238
|
+
}, null, 8, ["items", "selected", "onPick"])
|
|
239
|
+
])) : E("", !0),
|
|
240
|
+
O("p", Pe, Q(l(a)("core.form.date.keys")), 1)
|
|
241
|
+
])
|
|
242
|
+
]),
|
|
243
|
+
_: 2
|
|
244
|
+
}, 1032, ["label"]))
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
}, 16, ["value"]));
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
export {
|
|
251
|
+
Re as _,
|
|
252
|
+
Ne as a,
|
|
253
|
+
Ue as s,
|
|
254
|
+
$e as u
|
|
255
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { defineComponent as B, useTemplateRef as C, computed as y, ref as v, openBlock as D, createBlock as z, unref as r, withCtx as m, createVNode as F, createElementVNode as b, normalizeClass as $, toDisplayString as h } from "vue";
|
|
2
|
+
import { useI18n as q } from "vue-i18n";
|
|
3
|
+
import { a as k } from "./error-CD7x0Jrz.js";
|
|
4
|
+
import { u as V, _ as N } from "./CollectionPage.vue_vue_type_script_setup_true_lang-DCBVw2Qd.js";
|
|
5
|
+
import { u as P } from "./describeError-Ctga6GcS.js";
|
|
6
|
+
import { u as I } from "./format-B8mJm946.js";
|
|
7
|
+
import { e as a, R as O } from "./index-BsJ92eub.js";
|
|
8
|
+
import { _ as W } from "./AlertDialog.vue_vue_type_script_setup_true_lang-whA4WLdl.js";
|
|
9
|
+
import { t as i } from "./toast-D9Z5To38.js";
|
|
10
|
+
import { u as Y } from "./useLoad-CYRVx6HW.js";
|
|
11
|
+
import { u as j } from "./platform-q3cjODLx.js";
|
|
12
|
+
import { a as G, r as H } from "./http-CNcDHSOj.js";
|
|
13
|
+
function J(u) {
|
|
14
|
+
return G({
|
|
15
|
+
id: "events.deadletters",
|
|
16
|
+
stateVersion: 1,
|
|
17
|
+
load: async (e, { signal: s }) => {
|
|
18
|
+
const l = await u.request(a.deadLettersList, { consumer: e.filters.consumer || void 0, page: e.page, per_page: e.pageSize }, { signal: s });
|
|
19
|
+
return H(l, e);
|
|
20
|
+
},
|
|
21
|
+
key: (e) => `${e.event_id}/${e.consumer}`,
|
|
22
|
+
query: { sorts: [], filters: ["consumer"], views: [], pageSizes: [10, 25, 50, 100], search: !1 },
|
|
23
|
+
defaults: { pageSize: 25 }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
const K = ["title"], M = ["datetime"], le = /* @__PURE__ */ B({
|
|
27
|
+
__name: "DeadLetters",
|
|
28
|
+
setup(u) {
|
|
29
|
+
const { t: e } = q(), { http: s, access: l } = j(), g = I(), w = P(), f = C("confirm"), L = y(() => [
|
|
30
|
+
{ key: "event_name", label: e("core.notifications.dead_letters.columns.event"), kind: "identity", title: (t) => t.event_name || e("core.notifications.dead_letters.event_gone"), subtitle: (t) => e("core.notifications.dead_letters.event_id", { id: t.event_id }), mobile: "primary" },
|
|
31
|
+
{ key: "consumer", label: e("core.notifications.dead_letters.columns.consumer"), hideBelow: "md", width: 220, mobile: "meta" },
|
|
32
|
+
{ key: "attempts", label: e("core.notifications.dead_letters.columns.attempts"), hideBelow: "md", width: 100, align: "center", mobile: "hidden" },
|
|
33
|
+
{ key: "last_error", label: e("core.notifications.dead_letters.columns.last_error"), hideBelow: "md", mobile: "hidden" },
|
|
34
|
+
{ key: "dead_at", label: e("core.notifications.dead_letters.columns.dead_at"), width: 170, mobile: "accessory" }
|
|
35
|
+
]), x = Y(async ({ signal: t }) => (await s.request(a.consumers, void 0, { signal: t })).data.consumers), E = y(() => {
|
|
36
|
+
const t = e("core.notifications.dead_letters.columns.consumer"), n = x.data.value;
|
|
37
|
+
return [n ? { key: "consumer", label: t, type: "select", options: n.map((o) => ({ value: o, label: o })), defaultOptionTitle: e("core.notifications.dead_letters.all_consumers") } : { key: "consumer", label: t, type: "text" }];
|
|
38
|
+
}), c = V(J(s), { columns: L, filters: E, state: { kind: "url", key: "query" } }), d = v(!1), _ = v("");
|
|
39
|
+
function p(t) {
|
|
40
|
+
return k(t) && t.kind === "notFound" ? e("core.notifications.dead_letters.errors.not_found") : k(t) && t.kind === "conflict" ? e("core.notifications.dead_letters.errors.event_gone") : w(t);
|
|
41
|
+
}
|
|
42
|
+
async function R(t) {
|
|
43
|
+
if (!d.value) {
|
|
44
|
+
d.value = !0;
|
|
45
|
+
try {
|
|
46
|
+
await s.request(a.deadLettersRetry, { event: t.event_id, consumer: t.consumer }), i.success(e("core.notifications.dead_letters.toasts.retried"));
|
|
47
|
+
} catch (n) {
|
|
48
|
+
i.error(p(n));
|
|
49
|
+
} finally {
|
|
50
|
+
d.value = !1, c.refresh();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async function S(t) {
|
|
55
|
+
const { data: n } = await s.request(a.deadLettersRetryAll, { consumer: t });
|
|
56
|
+
i.success(e("core.notifications.dead_letters.toasts.retried_all", { count: n.retried })), c.refresh();
|
|
57
|
+
}
|
|
58
|
+
function T(t) {
|
|
59
|
+
return !t.retryable || !l.can(O) ? [] : [
|
|
60
|
+
{ key: "retry", label: e("core.notifications.dead_letters.actions.retry"), icon: "refreshLine", tone: "info", onSelect: () => void R(t) },
|
|
61
|
+
{ key: "retry-all", label: e("core.notifications.dead_letters.actions.retry_all"), icon: "refreshLine", tone: "info", section: "all", onSelect: () => (_.value = t.consumer, f.value?.present(t.consumer)) }
|
|
62
|
+
];
|
|
63
|
+
}
|
|
64
|
+
return (t, n) => (D(), z(r(N), {
|
|
65
|
+
collection: r(c),
|
|
66
|
+
title: r(e)("core.notifications.dead_letters.title"),
|
|
67
|
+
description: r(e)("core.notifications.dead_letters.description"),
|
|
68
|
+
icon: "errorWarningLine",
|
|
69
|
+
"row-actions": T,
|
|
70
|
+
"actions-visible": "",
|
|
71
|
+
"row-height": 64,
|
|
72
|
+
"row-label": (o) => o.event_name || r(e)("core.notifications.dead_letters.event_gone")
|
|
73
|
+
}, {
|
|
74
|
+
"cell-last_error": m(({ item: o }) => [
|
|
75
|
+
b("span", {
|
|
76
|
+
class: "line-clamp-2 max-w-md text-footnote break-words whitespace-normal text-content",
|
|
77
|
+
title: o.last_error
|
|
78
|
+
}, h(o.last_error), 9, K)
|
|
79
|
+
]),
|
|
80
|
+
"cell-dead_at": m(({ item: o, compact: A }) => [
|
|
81
|
+
b("time", {
|
|
82
|
+
datetime: o.dead_at,
|
|
83
|
+
class: $(["text-content", A ? "text-footnote text-content-muted" : "text-body"])
|
|
84
|
+
}, h(r(g).dateTime(o.dead_at)), 11, M)
|
|
85
|
+
]),
|
|
86
|
+
default: m(() => [
|
|
87
|
+
F(r(W), {
|
|
88
|
+
ref_key: "confirm",
|
|
89
|
+
ref: f,
|
|
90
|
+
tone: "warning",
|
|
91
|
+
title: r(e)("core.notifications.dead_letters.retry_all.title"),
|
|
92
|
+
message: r(e)("core.notifications.dead_letters.retry_all.message", { consumer: _.value }),
|
|
93
|
+
"confirm-label": r(e)("core.notifications.dead_letters.retry_all.confirm"),
|
|
94
|
+
action: S,
|
|
95
|
+
onFailed: n[0] || (n[0] = (o) => r(i).error(p(o)))
|
|
96
|
+
}, null, 8, ["title", "message", "confirm-label"])
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["collection", "title", "description", "row-label"]));
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
export {
|
|
103
|
+
le as default
|
|
104
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, useTemplateRef as l, openBlock as m, createBlock as d, unref as s } from "vue";
|
|
2
2
|
import { useI18n as f } from "vue-i18n";
|
|
3
|
-
import { _ as p } from "./AlertDialog.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as p } from "./AlertDialog.vue_vue_type_script_setup_true_lang-whA4WLdl.js";
|
|
4
4
|
const C = /* @__PURE__ */ c({
|
|
5
5
|
__name: "DiscardChangesModal",
|
|
6
6
|
emits: ["confirm", "cancel", "dismissed"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as r, openBlock as t, createElementBlock as n, toDisplayString as s, createVNode as a, unref as l, createElementVNode as m, createCommentVNode as c, renderSlot as p } from "vue";
|
|
2
|
-
import { _ as d } from "./Icon.vue_vue_type_script_lang-
|
|
2
|
+
import { _ as d } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
3
3
|
const _ = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "text-sm text-content-muted"
|