@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,64 @@
|
|
|
1
|
+
import { defineComponent as p, useTemplateRef as u, openBlock as t, createElementBlock as c, renderSlot as r, createCommentVNode as s, createElementVNode as n, toDisplayString as a, Fragment as d, renderList as f, createBlock as h, resolveDynamicComponent as g, withCtx as x, createVNode as _, unref as k } from "vue";
|
|
2
|
+
import { _ as b } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
3
|
+
import { u as w } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-BoinCY93.js";
|
|
4
|
+
const v = { class: "flex min-w-0 flex-wrap items-center gap-5 compact:flex-col compact:gap-2 compact:text-center" }, y = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "min-w-0 max-w-full shrink-0"
|
|
7
|
+
}, C = { class: "flex min-w-0 flex-[1_1_14rem] flex-col gap-1.5 compact:w-full compact:flex-none compact:items-center compact:gap-1" }, $ = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "flex min-w-0 flex-wrap items-center gap-2.5 text-subheadline text-content-muted compact:hidden"
|
|
10
|
+
}, q = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "hidden text-subheadline text-content-muted compact:block"
|
|
13
|
+
}, E = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "flex max-w-full flex-wrap gap-2 compact:mt-3 compact:grid compact:w-full compact:auto-cols-fr compact:grid-flow-col"
|
|
16
|
+
}, A = { class: "truncate" }, R = /* @__PURE__ */ p({
|
|
17
|
+
__name: "RecordHeader",
|
|
18
|
+
props: {
|
|
19
|
+
title: {},
|
|
20
|
+
subtitle: { default: void 0 },
|
|
21
|
+
quickActions: { default: () => [] }
|
|
22
|
+
},
|
|
23
|
+
setup(m) {
|
|
24
|
+
const o = m, i = u("titleElement");
|
|
25
|
+
return w(i, () => o.title), (l, B) => (t(), c("div", v, [
|
|
26
|
+
l.$slots.leading ? (t(), c("div", y, [
|
|
27
|
+
r(l.$slots, "leading")
|
|
28
|
+
])) : s("", !0),
|
|
29
|
+
n("div", C, [
|
|
30
|
+
n("h1", {
|
|
31
|
+
ref_key: "titleElement",
|
|
32
|
+
ref: i,
|
|
33
|
+
class: "text-large-title font-semibold tracking-tight break-words text-content-strong compact:mt-1.5"
|
|
34
|
+
}, a(o.title), 513),
|
|
35
|
+
l.$slots.meta ? (t(), c("div", $, [
|
|
36
|
+
r(l.$slots, "meta")
|
|
37
|
+
])) : s("", !0),
|
|
38
|
+
o.subtitle ? (t(), c("p", q, a(o.subtitle), 1)) : s("", !0)
|
|
39
|
+
]),
|
|
40
|
+
o.quickActions.length ? (t(), c("nav", E, [
|
|
41
|
+
(t(!0), c(d, null, f(o.quickActions, (e) => (t(), h(g(e.href ? "a" : "button"), {
|
|
42
|
+
key: e.id,
|
|
43
|
+
href: e.href,
|
|
44
|
+
type: e.href ? void 0 : "button",
|
|
45
|
+
"data-quick-action": e.id,
|
|
46
|
+
class: "hit-target flex min-w-0 max-w-full cursor-pointer items-center justify-center gap-2 rounded-full bg-tint-soft px-4 py-1.5 text-subheadline font-semibold text-content-link transition duration-motion-fast hover:brightness-95 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus dark:hover:brightness-125 compact:flex-col compact:gap-1 compact:rounded-group compact:bg-surface-cell compact:px-2 compact:py-2.5 compact:text-footnote compact:font-medium compact:shadow-group",
|
|
47
|
+
onClick: (N) => e.onClick?.()
|
|
48
|
+
}, {
|
|
49
|
+
default: x(() => [
|
|
50
|
+
_(k(b), {
|
|
51
|
+
name: e.icon,
|
|
52
|
+
class: "compact:size-5.5"
|
|
53
|
+
}, null, 8, ["name"]),
|
|
54
|
+
n("span", A, a(e.label), 1)
|
|
55
|
+
]),
|
|
56
|
+
_: 2
|
|
57
|
+
}, 1032, ["href", "type", "data-quick-action", "onClick"]))), 128))
|
|
58
|
+
])) : s("", !0)
|
|
59
|
+
]));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
R as _
|
|
64
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { defineComponent as S, openBlock as a, createElementBlock as v, unref as t, createBlock as c, withCtx as s, createVNode as l, normalizeClass as d, createElementVNode as R, toDisplayString as y, computed as m, createSlots as w, renderSlot as f, createCommentVNode as A } from "vue";
|
|
2
|
+
import { useI18n as z } from "vue-i18n";
|
|
3
|
+
import { a as C } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-BoinCY93.js";
|
|
4
|
+
import { _ as B } from "./AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js";
|
|
5
|
+
import { _ as D } from "./EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js";
|
|
6
|
+
import { useRouter as K, RouterLink as x } from "vue-router";
|
|
7
|
+
import { u as N } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
8
|
+
import { _ as g } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
9
|
+
import { _ as $ } from "./Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js";
|
|
10
|
+
const V = ["aria-label"], j = {
|
|
11
|
+
class: "min-w-14 px-1 text-center text-footnote tabular-nums text-content-muted compact:px-1.5",
|
|
12
|
+
"data-test": "pager-position",
|
|
13
|
+
"aria-live": "polite"
|
|
14
|
+
}, b = "hit-target flex size-6 items-center justify-center rounded-button text-content-strong transition-colors duration-motion-fast hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus compact:size-9 compact:text-content-link compact:hover:bg-transparent", L = "pointer-events-none opacity-40", E = /* @__PURE__ */ S({
|
|
15
|
+
__name: "RecordPager",
|
|
16
|
+
props: {
|
|
17
|
+
neighbors: {}
|
|
18
|
+
},
|
|
19
|
+
setup(h) {
|
|
20
|
+
const e = h, { t: r } = z(), i = K(), n = (p, u) => N({ key: p, group: "record", label: () => r(`core.resource.pager.${u}`) }, () => {
|
|
21
|
+
const o = e.neighbors[u];
|
|
22
|
+
if (!o) return !1;
|
|
23
|
+
i.push(o);
|
|
24
|
+
});
|
|
25
|
+
return n("j", "next"), n("ArrowRight", "next"), n("k", "previous"), n("ArrowLeft", "previous"), (p, u) => (a(), v("nav", {
|
|
26
|
+
"aria-label": t(r)("core.resource.pager.records"),
|
|
27
|
+
"data-test": "record-pager",
|
|
28
|
+
class: "inline-flex shrink-0 items-center rounded-button bg-fill p-0.5 compact:gap-0.5 compact:bg-surface-overlay compact:p-1 compact:shadow-float"
|
|
29
|
+
}, [
|
|
30
|
+
e.neighbors.previous ? (a(), c(t($), {
|
|
31
|
+
key: 0,
|
|
32
|
+
side: "bottom",
|
|
33
|
+
delay: 300,
|
|
34
|
+
text: `${t(r)("core.resource.pager.previous")} (← / K)`
|
|
35
|
+
}, {
|
|
36
|
+
default: s(() => [
|
|
37
|
+
l(t(x), {
|
|
38
|
+
to: e.neighbors.previous,
|
|
39
|
+
"aria-label": t(r)("core.resource.pager.previous"),
|
|
40
|
+
"aria-keyshortcuts": "ArrowLeft K",
|
|
41
|
+
"data-test": "pager-previous",
|
|
42
|
+
class: d(b)
|
|
43
|
+
}, {
|
|
44
|
+
default: s(() => [
|
|
45
|
+
l(t(g), {
|
|
46
|
+
name: "arrowUpSLine",
|
|
47
|
+
size: 18
|
|
48
|
+
})
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, ["to", "aria-label"])
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
}, 8, ["text"])) : (a(), v("span", {
|
|
55
|
+
key: 1,
|
|
56
|
+
class: d([b, L]),
|
|
57
|
+
"aria-hidden": "true"
|
|
58
|
+
}, [
|
|
59
|
+
l(t(g), {
|
|
60
|
+
name: "arrowUpSLine",
|
|
61
|
+
size: 18
|
|
62
|
+
})
|
|
63
|
+
], 2)),
|
|
64
|
+
R("span", j, y(e.neighbors.position) + " / " + y(e.neighbors.total), 1),
|
|
65
|
+
e.neighbors.next ? (a(), c(t($), {
|
|
66
|
+
key: 2,
|
|
67
|
+
side: "bottom",
|
|
68
|
+
delay: 300,
|
|
69
|
+
text: `${t(r)("core.resource.pager.next")} (→ / J)`
|
|
70
|
+
}, {
|
|
71
|
+
default: s(() => [
|
|
72
|
+
l(t(x), {
|
|
73
|
+
to: e.neighbors.next,
|
|
74
|
+
"aria-label": t(r)("core.resource.pager.next"),
|
|
75
|
+
"aria-keyshortcuts": "ArrowRight J",
|
|
76
|
+
"data-test": "pager-next",
|
|
77
|
+
class: d(b)
|
|
78
|
+
}, {
|
|
79
|
+
default: s(() => [
|
|
80
|
+
l(t(g), {
|
|
81
|
+
name: "arrowDownSLine",
|
|
82
|
+
size: 18
|
|
83
|
+
})
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["to", "aria-label"])
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
}, 8, ["text"])) : (a(), v("span", {
|
|
90
|
+
key: 3,
|
|
91
|
+
class: d([b, L]),
|
|
92
|
+
"aria-hidden": "true"
|
|
93
|
+
}, [
|
|
94
|
+
l(t(g), {
|
|
95
|
+
name: "arrowDownSLine",
|
|
96
|
+
size: 18
|
|
97
|
+
})
|
|
98
|
+
], 2))
|
|
99
|
+
], 8, V));
|
|
100
|
+
}
|
|
101
|
+
}), M = /* @__PURE__ */ S({
|
|
102
|
+
__name: "ResourcePage",
|
|
103
|
+
props: {
|
|
104
|
+
resource: {},
|
|
105
|
+
title: {},
|
|
106
|
+
back: { default: void 0 },
|
|
107
|
+
list: { default: null },
|
|
108
|
+
actions: { default: () => [] },
|
|
109
|
+
width: { default: "content" }
|
|
110
|
+
},
|
|
111
|
+
setup(h) {
|
|
112
|
+
const e = h, { t: r } = z(), i = m(() => e.resource.state.value), n = m(() => e.resource.data.value), p = m(() => i.value.status === "failed" && "reason" in i.value && i.value.reason === "notFound"), u = m(() => e.back ?? e.list?.back ?? null);
|
|
113
|
+
return (o, _) => (a(), c(C, {
|
|
114
|
+
title: e.title,
|
|
115
|
+
"document-title": e.title,
|
|
116
|
+
back: u.value,
|
|
117
|
+
actions: e.actions,
|
|
118
|
+
width: e.width
|
|
119
|
+
}, w({
|
|
120
|
+
default: s(() => [
|
|
121
|
+
p.value ? (a(), c(D, {
|
|
122
|
+
key: 0,
|
|
123
|
+
title: t(r)("core.resource.not_found.title"),
|
|
124
|
+
description: t(r)("core.resource.not_found.body"),
|
|
125
|
+
icon: "errorWarningLine"
|
|
126
|
+
}, null, 8, ["title", "description"])) : (a(), c(B, {
|
|
127
|
+
key: 1,
|
|
128
|
+
state: i.value,
|
|
129
|
+
"is-empty": () => !1,
|
|
130
|
+
onRetry: _[0] || (_[0] = (k) => e.resource.reload())
|
|
131
|
+
}, w({
|
|
132
|
+
default: s(({ value: k }) => [
|
|
133
|
+
f(o.$slots, "default", { record: k })
|
|
134
|
+
]),
|
|
135
|
+
_: 2
|
|
136
|
+
}, [
|
|
137
|
+
o.$slots.loading ? {
|
|
138
|
+
name: "skeleton",
|
|
139
|
+
fn: s(() => [
|
|
140
|
+
f(o.$slots, "loading")
|
|
141
|
+
]),
|
|
142
|
+
key: "0"
|
|
143
|
+
} : void 0
|
|
144
|
+
]), 1032, ["state"]))
|
|
145
|
+
]),
|
|
146
|
+
_: 2
|
|
147
|
+
}, [
|
|
148
|
+
o.$slots.pager || e.list?.neighbors ? {
|
|
149
|
+
name: "pager",
|
|
150
|
+
fn: s(() => [
|
|
151
|
+
f(o.$slots, "pager", {}, () => [
|
|
152
|
+
e.list?.neighbors ? (a(), c(E, {
|
|
153
|
+
key: 0,
|
|
154
|
+
neighbors: e.list.neighbors
|
|
155
|
+
}, null, 8, ["neighbors"])) : A("", !0)
|
|
156
|
+
])
|
|
157
|
+
]),
|
|
158
|
+
key: "0"
|
|
159
|
+
} : void 0,
|
|
160
|
+
n.value !== null && o.$slots.header ? {
|
|
161
|
+
name: "header",
|
|
162
|
+
fn: s(() => [
|
|
163
|
+
f(o.$slots, "header", { record: n.value })
|
|
164
|
+
]),
|
|
165
|
+
key: "1"
|
|
166
|
+
} : void 0
|
|
167
|
+
]), 1032, ["title", "document-title", "back", "actions", "width"]));
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
export {
|
|
171
|
+
E as _,
|
|
172
|
+
M as a
|
|
173
|
+
};
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { defineComponent as I, computed as y, ref as M, openBlock as l, createElementBlock as v, createElementVNode as w, unref as t, Fragment as B, renderList as N, normalizeClass as K, toDisplayString as d, createVNode as V, withCtx as p, createTextVNode as h, createCommentVNode as $, createBlock as _, createSlots as X, watch as Y, mergeProps as F } from "vue";
|
|
2
|
+
import { useI18n as Q } from "vue-i18n";
|
|
3
|
+
import { u as Z } from "./FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js";
|
|
4
|
+
import { _ as G } from "./FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js";
|
|
5
|
+
import { _ as ee } from "./FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js";
|
|
6
|
+
import { _ as te } from "./TextareaField.vue_vue_type_script_setup_true_lang-CqAWfABZ.js";
|
|
7
|
+
import { _ as se } from "./TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js";
|
|
8
|
+
import { u as ae } from "./useSaveChrome-chi6D3HY.js";
|
|
9
|
+
import { t as oe } from "./toast-D9Z5To38.js";
|
|
10
|
+
import { _ as S } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
|
|
11
|
+
import { _ as E } from "./Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js";
|
|
12
|
+
import { d as W, u as J, p as ne, o as R, r as D, g as H, s as le, e as re, a as ie, f as ce, b as ue, h as de } from "./index-GcLnFF-z.js";
|
|
13
|
+
import { _ as me } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
14
|
+
import { _ as fe } from "./Tabs.vue_vue_type_script_setup_true_lang-CcMcE38r.js";
|
|
15
|
+
import { _ as pe } from "./SegmentedField.vue_vue_type_script_setup_true_lang-BMqWlpsL.js";
|
|
16
|
+
import { _ as _e } from "./SwitchField.vue_vue_type_script_setup_true_lang-CM8yp9JQ.js";
|
|
17
|
+
import { u as ge } from "./platform-q3cjODLx.js";
|
|
18
|
+
const ve = {
|
|
19
|
+
class: "flex min-w-0 flex-col gap-4 lg:grid lg:grid-cols-[15rem_minmax(0,1fr)] lg:items-start lg:gap-8",
|
|
20
|
+
"data-test": "permission-tree"
|
|
21
|
+
}, be = ["aria-label"], ye = ["data-test", "aria-current", "onClick"], he = { class: "min-w-0 flex-1 truncate" }, ke = ["data-test"], xe = ["data-test"], we = { class: "flex min-w-0 items-center justify-between gap-3 px-row-inset" }, $e = { class: "min-w-0 flex-1 text-title3 font-semibold text-content-strong" }, Oe = { class: "text-footnote tabular-nums text-content-muted" }, Le = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "contents",
|
|
24
|
+
"data-test": "tree-toggle-all"
|
|
25
|
+
}, Ve = /* @__PURE__ */ I({
|
|
26
|
+
__name: "PermissionTree",
|
|
27
|
+
props: {
|
|
28
|
+
grants: {},
|
|
29
|
+
readonly: { type: Boolean }
|
|
30
|
+
},
|
|
31
|
+
setup(U) {
|
|
32
|
+
const i = U, { t: g } = Q(), { catalogue: a } = W(), m = J(), r = y(() => ne(a)), b = M(r.value[0]?.key ?? ""), f = y(() => r.value.find((e) => e.key === b.value) ?? r.value[0]), j = (e) => Object.entries(a).filter(([, s]) => re(s) === e).map(([s]) => s), O = (e) => {
|
|
33
|
+
const s = j(e);
|
|
34
|
+
return { granted: s.filter((o) => o in i.grants).length, total: s.length };
|
|
35
|
+
}, k = (e) => `${O(e).granted} / ${O(e).total}`, T = y(() => r.value.map((e) => ({ value: e.key, label: m.groupLabel(e.key), badge: k(e.key) }))), u = y(() => f.value !== void 0 && O(f.value.key).granted === O(f.value.key).total);
|
|
36
|
+
function q() {
|
|
37
|
+
if (f.value)
|
|
38
|
+
for (const e of j(f.value.key))
|
|
39
|
+
u.value ? D(a, i.grants, e) : H(a, i.grants, e);
|
|
40
|
+
}
|
|
41
|
+
const z = (e) => [...new Set(e.permissions.map((s) => s.ownable).filter((s) => s !== null))], x = y(() => ["own", "own_location", "all"].map((e) => ({ value: e, label: m.qualifierLabel(e) })));
|
|
42
|
+
function A(e, s) {
|
|
43
|
+
const o = R(a, i.grants, s) ?? "own", n = e.permissions.some((L) => L.ownable === s && L.unownedIsOwn);
|
|
44
|
+
return [m.qualifierHint(o), o === "own" && n ? g("core.access.unowned") : ""].filter(Boolean).join(" · ");
|
|
45
|
+
}
|
|
46
|
+
function C(e) {
|
|
47
|
+
const s = e.requires.map((o) => m.permissionLabel(o)).join(", ");
|
|
48
|
+
return [m.permissionDescription(e.id), s ? g("core.access.requires", { names: s }) : ""].filter(Boolean).join(" ");
|
|
49
|
+
}
|
|
50
|
+
const P = (e, s) => le(a, i.grants, e, s), c = (e, s) => s ? H(a, i.grants, e) : D(a, i.grants, e);
|
|
51
|
+
return (e, s) => (l(), v("div", ve, [
|
|
52
|
+
w("nav", {
|
|
53
|
+
class: "hidden flex-col gap-0.5 lg:sticky lg:top-4 lg:flex",
|
|
54
|
+
"aria-label": t(g)("core.access.modules"),
|
|
55
|
+
"data-test": "tree-modules"
|
|
56
|
+
}, [
|
|
57
|
+
(l(!0), v(B, null, N(r.value, (o) => (l(), v("button", {
|
|
58
|
+
key: o.key,
|
|
59
|
+
type: "button",
|
|
60
|
+
"data-test": `tree-module-${o.key}`,
|
|
61
|
+
"aria-current": b.value === o.key ? "true" : void 0,
|
|
62
|
+
class: K(["flex h-9 items-center justify-between gap-3 rounded-control px-3 text-left text-body transition-colors duration-motion-fast hover:bg-fill focus-visible:outline-2 focus-visible:outline-border-focus", b.value === o.key ? "bg-tint-soft font-semibold text-content-strong" : "text-content"]),
|
|
63
|
+
onClick: (n) => b.value = o.key
|
|
64
|
+
}, [
|
|
65
|
+
w("span", he, d(t(m).groupLabel(o.key)), 1),
|
|
66
|
+
w("span", {
|
|
67
|
+
class: "text-footnote tabular-nums text-content-muted",
|
|
68
|
+
"data-test": `tree-count-${o.key}`
|
|
69
|
+
}, d(k(o.key)), 9, ke)
|
|
70
|
+
], 10, ye))), 128))
|
|
71
|
+
], 8, be),
|
|
72
|
+
V(t(fe), {
|
|
73
|
+
modelValue: b.value,
|
|
74
|
+
"onUpdate:modelValue": s[0] || (s[0] = (o) => b.value = o),
|
|
75
|
+
tabs: T.value,
|
|
76
|
+
presentation: "scope",
|
|
77
|
+
class: "lg:hidden"
|
|
78
|
+
}, null, 8, ["modelValue", "tabs"]),
|
|
79
|
+
f.value ? (l(), v("div", {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: "flex min-w-0 flex-col gap-6",
|
|
82
|
+
"data-test": `tree-panel-${f.value.key}`
|
|
83
|
+
}, [
|
|
84
|
+
w("div", we, [
|
|
85
|
+
w("h2", $e, d(t(m).groupLabel(f.value.key)), 1),
|
|
86
|
+
w("span", Oe, d(k(f.value.key)), 1),
|
|
87
|
+
i.readonly ? $("", !0) : (l(), v("span", Le, [
|
|
88
|
+
V(t(me), {
|
|
89
|
+
prominence: "secondary",
|
|
90
|
+
size: "sm",
|
|
91
|
+
onClick: q
|
|
92
|
+
}, {
|
|
93
|
+
default: p(() => [
|
|
94
|
+
h(d(u.value ? t(g)("core.access.turn_off_all") : t(g)("core.access.turn_on_all")), 1)
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
})
|
|
98
|
+
]))
|
|
99
|
+
]),
|
|
100
|
+
(l(!0), v(B, null, N(f.value.screens, (o) => (l(), _(t(G), {
|
|
101
|
+
key: o.key,
|
|
102
|
+
header: t(m).screenLabel(o.key)
|
|
103
|
+
}, {
|
|
104
|
+
default: p(() => [
|
|
105
|
+
(l(!0), v(B, null, N(z(o), (n) => (l(), _(t(pe), {
|
|
106
|
+
key: n,
|
|
107
|
+
label: t(m).ownableLabel(n),
|
|
108
|
+
hint: A(o, n),
|
|
109
|
+
"model-value": t(R)(t(a), i.grants, n) ?? "own",
|
|
110
|
+
options: x.value,
|
|
111
|
+
disabled: i.readonly || t(R)(t(a), i.grants, n) === null,
|
|
112
|
+
"onUpdate:modelValue": (L) => P(n, L)
|
|
113
|
+
}, null, 8, ["label", "hint", "model-value", "options", "disabled", "onUpdate:modelValue"]))), 128)),
|
|
114
|
+
(l(!0), v(B, null, N(o.permissions, (n) => (l(), _(t(_e), {
|
|
115
|
+
key: n.id,
|
|
116
|
+
label: t(m).permissionLabel(n.id),
|
|
117
|
+
hint: C(n),
|
|
118
|
+
"model-value": n.id in i.grants,
|
|
119
|
+
disabled: i.readonly,
|
|
120
|
+
"onUpdate:modelValue": (L) => c(n.id, !!L)
|
|
121
|
+
}, X({ _: 2 }, [
|
|
122
|
+
n.sensitive || n.system || n.organizationOnly ? {
|
|
123
|
+
name: "before",
|
|
124
|
+
fn: p(() => [
|
|
125
|
+
n.sensitive ? (l(), _(t(S), {
|
|
126
|
+
key: 0,
|
|
127
|
+
tone: "warning"
|
|
128
|
+
}, {
|
|
129
|
+
default: p(() => [
|
|
130
|
+
h(d(t(g)("core.access.sensitive")), 1)
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
})) : $("", !0),
|
|
134
|
+
n.system ? (l(), _(t(S), {
|
|
135
|
+
key: 1,
|
|
136
|
+
tone: "neutral"
|
|
137
|
+
}, {
|
|
138
|
+
default: p(() => [
|
|
139
|
+
h(d(t(g)("core.access.system")), 1)
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
})) : n.organizationOnly ? (l(), _(t(S), {
|
|
143
|
+
key: 2,
|
|
144
|
+
tone: "info"
|
|
145
|
+
}, {
|
|
146
|
+
default: p(() => [
|
|
147
|
+
h(d(t(g)("core.access.organization_only")), 1)
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
})) : $("", !0)
|
|
151
|
+
]),
|
|
152
|
+
key: "0"
|
|
153
|
+
} : void 0
|
|
154
|
+
]), 1032, ["label", "hint", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
155
|
+
]),
|
|
156
|
+
_: 2
|
|
157
|
+
}, 1032, ["header"]))), 128))
|
|
158
|
+
], 8, xe)) : $("", !0)
|
|
159
|
+
]));
|
|
160
|
+
}
|
|
161
|
+
}), je = {
|
|
162
|
+
class: "flex min-w-0 flex-col gap-group-gap",
|
|
163
|
+
"data-test": "role-editor"
|
|
164
|
+
}, qe = {
|
|
165
|
+
key: 0,
|
|
166
|
+
class: "flex flex-wrap gap-1.5 px-row-inset py-2",
|
|
167
|
+
"data-test": "role-attrs"
|
|
168
|
+
}, Ge = /* @__PURE__ */ I({
|
|
169
|
+
__name: "RoleEditor",
|
|
170
|
+
props: {
|
|
171
|
+
role: {},
|
|
172
|
+
source: {}
|
|
173
|
+
},
|
|
174
|
+
emits: ["saved"],
|
|
175
|
+
setup(U, { expose: i, emit: g }) {
|
|
176
|
+
const a = U, m = g, { t: r } = Q(), b = J(), { catalogue: f } = W(), j = ie(), { access: O } = ge(), k = (c, e) => {
|
|
177
|
+
const s = c ?? e ?? null;
|
|
178
|
+
return {
|
|
179
|
+
name: c ? c.name : e ? r("core.access.copy_name", { name: b.roleName(e) }) : "",
|
|
180
|
+
description: s?.description ?? "",
|
|
181
|
+
grants: Object.fromEntries((s?.grants ?? []).map((o) => [o.permission, o.qualifier]))
|
|
182
|
+
};
|
|
183
|
+
}, u = Z({
|
|
184
|
+
defaults: () => k(a.role, a.source),
|
|
185
|
+
validator: {
|
|
186
|
+
safeParse(c) {
|
|
187
|
+
const e = c, s = [
|
|
188
|
+
...e.name.trim() === "" ? [{ path: ["name"], message: r("core.access.name_required") }] : [],
|
|
189
|
+
...e.name.length > 100 ? [{ path: ["name"], message: r("core.access.too_long") }] : [],
|
|
190
|
+
...e.description.length > 255 ? [{ path: ["description"], message: r("core.access.too_long") }] : []
|
|
191
|
+
];
|
|
192
|
+
return s.length === 0 ? { success: !0, data: e } : { success: !1, error: { issues: s } };
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
failureMessage: ce()
|
|
196
|
+
}), q = M([]);
|
|
197
|
+
function z() {
|
|
198
|
+
u.hydrate(k(a.role, a.source)), q.value = de(f, u.values.grants);
|
|
199
|
+
}
|
|
200
|
+
z(), Y(() => [a.role, a.source], z);
|
|
201
|
+
const x = y(() => a.role !== null && (a.role.predefined || a.role.computed) || !O.can(ue.manageRoles)), A = y(
|
|
202
|
+
() => q.value.length === 0 || x.value ? "" : r("core.access.completed", { names: q.value.map((c) => b.permissionLabel(c)).join(", ") })
|
|
203
|
+
);
|
|
204
|
+
async function C() {
|
|
205
|
+
if (x.value) return;
|
|
206
|
+
const c = await u.submit(
|
|
207
|
+
(e) => {
|
|
208
|
+
const s = {
|
|
209
|
+
name: e.name.trim(),
|
|
210
|
+
description: e.description,
|
|
211
|
+
grants: Object.entries(e.grants).map(([o, n]) => ({ permission: o, qualifier: n })),
|
|
212
|
+
// Constraints are the application's own business: kept as the role has them.
|
|
213
|
+
attrs: (a.role ?? a.source)?.attrs ?? []
|
|
214
|
+
};
|
|
215
|
+
return a.role ? j.update({ ref: a.role.ref, ...s }) : j.create(s);
|
|
216
|
+
},
|
|
217
|
+
{ hydrateFrom: (e) => k(e, null) }
|
|
218
|
+
);
|
|
219
|
+
(c.status === "saved" || c.status === "saved-refresh-failed") && (oe.success(r("core.access.saved")), m("saved", c.value));
|
|
220
|
+
}
|
|
221
|
+
ae({ form: u, label: () => r("core.access.save"), allowed: () => !x.value, save: () => void C(), cancel: () => u.reset() });
|
|
222
|
+
const P = y(() => (a.role ?? a.source)?.attrs ?? []);
|
|
223
|
+
return i({ form: u, save: C }), (c, e) => (l(), _(t(ee), {
|
|
224
|
+
form: t(u),
|
|
225
|
+
onSubmit: C
|
|
226
|
+
}, {
|
|
227
|
+
default: p(() => [
|
|
228
|
+
w("div", je, [
|
|
229
|
+
a.role?.computed ? (l(), _(t(E), {
|
|
230
|
+
key: 0,
|
|
231
|
+
tone: "info",
|
|
232
|
+
"data-test": "role-computed-note"
|
|
233
|
+
}, {
|
|
234
|
+
default: p(() => [
|
|
235
|
+
h(d(t(r)("core.access.notes.computed")), 1)
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
})) : a.role?.predefined ? (l(), _(t(E), {
|
|
239
|
+
key: 1,
|
|
240
|
+
tone: "info",
|
|
241
|
+
"data-test": "role-predefined-note"
|
|
242
|
+
}, {
|
|
243
|
+
default: p(() => [
|
|
244
|
+
h(d(t(r)("core.access.notes.predefined")), 1)
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
})) : $("", !0),
|
|
248
|
+
A.value ? (l(), _(t(E), {
|
|
249
|
+
key: 2,
|
|
250
|
+
tone: "warning",
|
|
251
|
+
"data-test": "role-completed-note"
|
|
252
|
+
}, {
|
|
253
|
+
default: p(() => [
|
|
254
|
+
h(d(A.value), 1)
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
})) : $("", !0),
|
|
258
|
+
V(t(G), {
|
|
259
|
+
header: t(r)("core.access.groups.role"),
|
|
260
|
+
editable: !x.value,
|
|
261
|
+
"label-width": "12rem"
|
|
262
|
+
}, {
|
|
263
|
+
default: p(() => [
|
|
264
|
+
V(t(se), F(t(u).bind("name"), {
|
|
265
|
+
label: t(r)("core.access.fields.name"),
|
|
266
|
+
"max-length": 100,
|
|
267
|
+
required: ""
|
|
268
|
+
}), null, 16, ["label"]),
|
|
269
|
+
V(t(te), F(t(u).bind("description"), {
|
|
270
|
+
label: t(r)("core.access.fields.description"),
|
|
271
|
+
rows: 2,
|
|
272
|
+
"max-length": 255
|
|
273
|
+
}), null, 16, ["label"]),
|
|
274
|
+
P.value.length ? (l(), v("div", qe, [
|
|
275
|
+
(l(!0), v(B, null, N(P.value, (s) => (l(), _(t(S), {
|
|
276
|
+
key: s.attribute,
|
|
277
|
+
tone: "neutral"
|
|
278
|
+
}, {
|
|
279
|
+
default: p(() => [
|
|
280
|
+
h(d(s.attribute) + ": " + d(s.values.join(", ")), 1)
|
|
281
|
+
]),
|
|
282
|
+
_: 2
|
|
283
|
+
}, 1024))), 128))
|
|
284
|
+
])) : $("", !0)
|
|
285
|
+
]),
|
|
286
|
+
_: 1
|
|
287
|
+
}, 8, ["header", "editable"]),
|
|
288
|
+
V(Ve, {
|
|
289
|
+
grants: t(u).values.grants,
|
|
290
|
+
readonly: x.value
|
|
291
|
+
}, null, 8, ["grants", "readonly"])
|
|
292
|
+
])
|
|
293
|
+
]),
|
|
294
|
+
_: 1
|
|
295
|
+
}, 8, ["form"]));
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
export {
|
|
299
|
+
Ge as _
|
|
300
|
+
};
|