@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
|
@@ -74,6 +74,8 @@ export interface Collection<Row, Sort extends string = string, Filter extends st
|
|
|
74
74
|
rowKey(row: Row): string | number;
|
|
75
75
|
/** The page sizes the list offers. */
|
|
76
76
|
readonly pageSizes: readonly number[];
|
|
77
|
+
/** Whether the list can be searched by text (the definition's `query.search`); the toolbar shows the search field only then. */
|
|
78
|
+
readonly searchable: boolean;
|
|
77
79
|
/** The request state: loading (nothing to show), loaded, refreshing (previous rows stay), stale (a refresh failed, previous rows stay) or failed. */
|
|
78
80
|
readonly state: Readonly<Ref<AsyncState<ListPage<Row>>>>;
|
|
79
81
|
/** The query the list shows or is loading. */
|
package/dist/content/index.js
CHANGED
|
@@ -1,107 +1,78 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { _ as K, i as S } from "../Avatar.vue_vue_type_script_setup_true_lang-CFIheaSr.js";
|
|
2
|
+
import { defineComponent as o, openBlock as t, createElementBlock as l, createElementVNode as c, toDisplayString as u, createCommentVNode as d, normalizeClass as f, Fragment as _, renderList as g, createBlock as i, createSlots as x, withCtx as p, renderSlot as m, resolveDynamicComponent as y } from "vue";
|
|
3
|
+
import { _ as b } from "../KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js";
|
|
4
|
+
import { _ as F } from "../Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js";
|
|
5
|
+
import { _ as N } from "../Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js";
|
|
6
|
+
const k = {
|
|
7
7
|
role: "separator",
|
|
8
8
|
class: "my-2 flex items-center gap-4"
|
|
9
|
-
},
|
|
9
|
+
}, v = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "select-none whitespace-nowrap font-mono text-2xs uppercase tracking-widest text-content-muted"
|
|
12
|
-
},
|
|
12
|
+
}, D = /* @__PURE__ */ o({
|
|
13
13
|
__name: "Divider",
|
|
14
14
|
props: {
|
|
15
15
|
label: {}
|
|
16
16
|
},
|
|
17
17
|
setup(s) {
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
s.label ? (
|
|
21
|
-
|
|
18
|
+
return (a, e) => (t(), l("div", k, [
|
|
19
|
+
e[0] || (e[0] = c("span", { class: "h-px flex-1 bg-border-separator" }, null, -1)),
|
|
20
|
+
s.label ? (t(), l("span", v, u(s.label), 1)) : d("", !0),
|
|
21
|
+
e[1] || (e[1] = c("span", { class: "h-px flex-1 bg-border-separator" }, null, -1))
|
|
22
22
|
]));
|
|
23
23
|
}
|
|
24
|
-
}), L =
|
|
25
|
-
__name: "KeyValue",
|
|
26
|
-
props: {
|
|
27
|
-
label: {},
|
|
28
|
-
value: { default: void 0 },
|
|
29
|
-
wrap: { type: Boolean, default: !0 }
|
|
30
|
-
},
|
|
31
|
-
setup(s) {
|
|
32
|
-
const e = s, { t } = V(), r = y(), i = b(() => !r.default && (e.value === null || e.value === void 0 || e.value === ""));
|
|
33
|
-
return (a, p) => (l(), n("div", L, [
|
|
34
|
-
o("dt", B, [
|
|
35
|
-
m(c(e.label) + " ", 1),
|
|
36
|
-
u(a.$slots, "label")
|
|
37
|
-
]),
|
|
38
|
-
o("dd", {
|
|
39
|
-
class: f(["mt-0.5 text-sm font-medium text-content-strong", e.wrap ? "break-words" : "truncate"])
|
|
40
|
-
}, [
|
|
41
|
-
i.value ? (l(), n(_, { key: 0 }, [
|
|
42
|
-
p[0] || (p[0] = o("span", {
|
|
43
|
-
"aria-hidden": "true",
|
|
44
|
-
class: "font-normal text-content-disabled"
|
|
45
|
-
}, "—", -1)),
|
|
46
|
-
o("span", K, c(k(t)("core.state.no_value")), 1)
|
|
47
|
-
], 64)) : u(a.$slots, "default", {}, () => [
|
|
48
|
-
m(c(e.value), 1)
|
|
49
|
-
], void 0, 1)
|
|
50
|
-
], 2)
|
|
51
|
-
]));
|
|
52
|
-
}
|
|
53
|
-
}), I = /* @__PURE__ */ d({
|
|
24
|
+
}), L = /* @__PURE__ */ o({
|
|
54
25
|
__name: "KeyValueList",
|
|
55
26
|
props: {
|
|
56
27
|
items: {},
|
|
57
28
|
columns: { default: 1 }
|
|
58
29
|
},
|
|
59
30
|
setup(s) {
|
|
60
|
-
const
|
|
31
|
+
const a = s, e = {
|
|
61
32
|
1: "grid-cols-1",
|
|
62
33
|
2: "grid-cols-1 sm:grid-cols-2",
|
|
63
34
|
3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"
|
|
64
35
|
};
|
|
65
|
-
return (
|
|
66
|
-
class: f(["grid gap-x-6 gap-y-3",
|
|
36
|
+
return (n, $) => (t(), l("dl", {
|
|
37
|
+
class: f(["grid gap-x-6 gap-y-3", e[a.columns]])
|
|
67
38
|
}, [
|
|
68
|
-
(
|
|
69
|
-
key:
|
|
70
|
-
label:
|
|
71
|
-
value:
|
|
72
|
-
"data-key":
|
|
73
|
-
},
|
|
74
|
-
|
|
39
|
+
(t(!0), l(_, null, g(a.items, (r) => (t(), i(b, {
|
|
40
|
+
key: r.key,
|
|
41
|
+
label: r.label,
|
|
42
|
+
value: r.value,
|
|
43
|
+
"data-key": r.key
|
|
44
|
+
}, x({ _: 2 }, [
|
|
45
|
+
n.$slots.value ? {
|
|
75
46
|
name: "default",
|
|
76
|
-
fn:
|
|
77
|
-
|
|
47
|
+
fn: p(() => [
|
|
48
|
+
m(n.$slots, "value", { item: r })
|
|
78
49
|
]),
|
|
79
50
|
key: "0"
|
|
80
51
|
} : void 0
|
|
81
52
|
]), 1032, ["label", "value", "data-key"]))), 128))
|
|
82
53
|
], 2));
|
|
83
54
|
}
|
|
84
|
-
}),
|
|
55
|
+
}), V = /* @__PURE__ */ o({
|
|
85
56
|
__name: "MicroLabel",
|
|
86
57
|
props: {
|
|
87
58
|
as: { default: "span" }
|
|
88
59
|
},
|
|
89
60
|
setup(s) {
|
|
90
|
-
return (
|
|
91
|
-
default:
|
|
92
|
-
|
|
61
|
+
return (a, e) => (t(), i(y(s.as), { class: "text-2xs font-semibold uppercase tracking-[0.06em] text-content-muted" }, {
|
|
62
|
+
default: p(() => [
|
|
63
|
+
m(a.$slots, "default")
|
|
93
64
|
]),
|
|
94
65
|
_: 3
|
|
95
66
|
}));
|
|
96
67
|
}
|
|
97
68
|
});
|
|
98
69
|
export {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
70
|
+
K as Avatar,
|
|
71
|
+
D as Divider,
|
|
72
|
+
b as KeyValue,
|
|
73
|
+
L as KeyValueList,
|
|
74
|
+
V as MicroLabel,
|
|
75
|
+
F as Panel,
|
|
76
|
+
N as Timestamp,
|
|
77
|
+
S as initialsFor
|
|
107
78
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as i, h as l } from "vue";
|
|
2
|
+
import { d as u } from "./context-Ch1r4fdN.js";
|
|
3
|
+
import { h as a } from "./platform-q3cjODLx.js";
|
|
4
|
+
function h(o, n) {
|
|
5
|
+
const t = o.map(({ contribution: e }) => e).sort((e, r) => (e.order ?? 0) - (r.order ?? 0));
|
|
6
|
+
return {
|
|
7
|
+
get(e) {
|
|
8
|
+
const r = a(n.state.value) !== null;
|
|
9
|
+
return t.filter((s) => s.slot === e && (s.scope === "always" || r));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const [f, c] = u("vue-core.shellContributions"), S = i({
|
|
14
|
+
name: "ShellOutlet",
|
|
15
|
+
props: { name: { type: String, required: !0 } },
|
|
16
|
+
setup(o) {
|
|
17
|
+
const n = c();
|
|
18
|
+
return () => n.get(o.name).map((t) => l(t.component, { key: t.id }));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
S,
|
|
23
|
+
h as c,
|
|
24
|
+
f as s,
|
|
25
|
+
c as u
|
|
26
|
+
};
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { inject as q, ref as G, computed as r, onBeforeUnmount as C, defineComponent as F, useSlots as V, openBlock as l, createBlock as L, resolveDynamicComponent as T, unref as t, normalizeClass as y, withCtx as _, createElementBlock as a, renderSlot as f, createCommentVNode as n, createElementVNode as g, createTextVNode as x, toDisplayString as u, createVNode as D, useAttrs as K, useId as P, mergeProps as A, createSlots as M, mergeDefaults as O } from "vue";
|
|
2
|
+
import { useI18n as U } from "vue-i18n";
|
|
3
|
+
import { _ as I } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
4
|
+
import { RouterLink as Y } from "vue-router";
|
|
5
|
+
import { c as H, a as J } from "./controlSurface-t7OEFESJ.js";
|
|
6
|
+
import { u as Q } from "./mediaQuery-CygcXmFW.js";
|
|
7
|
+
const W = {
|
|
8
|
+
label: void 0,
|
|
9
|
+
hint: void 0,
|
|
10
|
+
error: void 0,
|
|
11
|
+
required: !1,
|
|
12
|
+
editable: !0,
|
|
13
|
+
disabled: !1,
|
|
14
|
+
lockedReason: void 0,
|
|
15
|
+
presentation: "control",
|
|
16
|
+
name: void 0
|
|
17
|
+
}, X = Symbol("vue-core.formGroup"), Z = Symbol("vue-core.formRowIndent"), ee = Symbol("vue-core.formEditable"), R = () => q(X, null), te = () => q(Z, 0);
|
|
18
|
+
function oe(i) {
|
|
19
|
+
const e = R(), d = q(ee, G(!0)), c = Q(), h = r(() => !!e && !!i.disabled && (c.value || i.presentation === "value")), v = r(() => (i.editable ?? !0) && d.value && !h.value), o = r(() => !!e && !!i.disabled && v.value);
|
|
20
|
+
if (e) {
|
|
21
|
+
const m = e.registerLocked(r(() => !!i.disabled && d.value && i.presentation !== "value"));
|
|
22
|
+
C(m);
|
|
23
|
+
}
|
|
24
|
+
return { editable: v, locked: o };
|
|
25
|
+
}
|
|
26
|
+
const le = ["label", "hint", "error", "required", "editable", "disabled", "lockedReason", "presentation", "name"];
|
|
27
|
+
function Re(i) {
|
|
28
|
+
return Object.fromEntries(le.map((e) => [e, i[e]]));
|
|
29
|
+
}
|
|
30
|
+
const re = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "flex shrink-0 items-center"
|
|
33
|
+
}, ae = { class: "row-body min-h-row min-w-0 flex-1 border-t border-border-separator py-2 pr-row-inset" }, se = {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "text-content-destructive",
|
|
36
|
+
"aria-hidden": "true"
|
|
37
|
+
}, ne = ["id"], ie = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "break-words text-body text-content-strong"
|
|
40
|
+
}, de = ["id"], ue = /* @__PURE__ */ F({
|
|
41
|
+
__name: "FormRow",
|
|
42
|
+
props: {
|
|
43
|
+
label: { default: void 0 },
|
|
44
|
+
for: { default: void 0 },
|
|
45
|
+
sub: { default: void 0 },
|
|
46
|
+
subId: { default: void 0 },
|
|
47
|
+
required: { type: Boolean, default: !1 },
|
|
48
|
+
layout: { default: "entry" },
|
|
49
|
+
value: { default: void 0 },
|
|
50
|
+
to: { default: void 0 },
|
|
51
|
+
error: { default: void 0 },
|
|
52
|
+
errorId: { default: void 0 },
|
|
53
|
+
indent: { default: 0 },
|
|
54
|
+
labelLines: { default: void 0 },
|
|
55
|
+
labelAlign: { default: "center" }
|
|
56
|
+
},
|
|
57
|
+
setup(i) {
|
|
58
|
+
const e = i, d = V(), c = te(), h = r(() => c + e.indent), v = ["pl-row-inset", "pl-[calc(var(--app-row-inset)+1.25rem)]", "pl-[calc(var(--app-row-inset)+2.5rem)]"], o = { 1: "line-clamp-1", 2: "line-clamp-2", 3: "line-clamp-3" }, m = r(() => {
|
|
59
|
+
switch (e.layout) {
|
|
60
|
+
case "entry":
|
|
61
|
+
return "grid grid-cols-[var(--form-label-width,11rem)_minmax(0,1fr)] items-center gap-x-4 compact:grid-cols-[minmax(0,auto)_minmax(40%,1fr)]";
|
|
62
|
+
case "value":
|
|
63
|
+
return "grid grid-cols-[minmax(min-content,1fr)_minmax(0,auto)] items-center gap-x-4";
|
|
64
|
+
case "setting":
|
|
65
|
+
return "flex items-center gap-4";
|
|
66
|
+
default:
|
|
67
|
+
return "flex flex-col gap-1";
|
|
68
|
+
}
|
|
69
|
+
}), S = r(() => e.layout === "stacked" ? "text-footnote text-content-muted" : e.layout === "value" ? "text-body text-content-muted" : "text-body text-content-strong"), p = r(() => e.value !== void 0 && e.value !== null && e.value !== "");
|
|
70
|
+
return (b, w) => (l(), L(T(e.to ? t(Y) : "div"), {
|
|
71
|
+
to: e.to,
|
|
72
|
+
"data-test": "form-row",
|
|
73
|
+
"data-layout": e.layout,
|
|
74
|
+
"data-field-error": e.error ? "true" : void 0,
|
|
75
|
+
class: y(["form-row flex min-w-0 items-stretch gap-3 transition-colors duration-motion-fast first:rounded-t-group last:rounded-b-group focus-within:bg-tint-soft/50 [&:first-child>.row-body]:border-t-0", [v[Math.min(h.value, 2)], e.to ? "hover:bg-fill focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus" : ""]])
|
|
76
|
+
}, {
|
|
77
|
+
default: _(() => [
|
|
78
|
+
d.leading ? (l(), a("div", re, [
|
|
79
|
+
f(b.$slots, "leading")
|
|
80
|
+
])) : n("", !0),
|
|
81
|
+
g("div", ae, [
|
|
82
|
+
g("div", {
|
|
83
|
+
class: y(["min-w-0", m.value])
|
|
84
|
+
}, [
|
|
85
|
+
e.label || e.sub || d.sub ? (l(), a("div", {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: y([e.layout === "setting" ? "min-w-min flex-1" : "min-w-0", e.labelAlign === "top" ? "self-start pt-1" : ""])
|
|
88
|
+
}, [
|
|
89
|
+
g("div", {
|
|
90
|
+
class: y(d["label-trailing"] ? "flex items-center justify-between gap-3" : "")
|
|
91
|
+
}, [
|
|
92
|
+
(l(), L(T(e.for ? "label" : "span"), {
|
|
93
|
+
for: e.for,
|
|
94
|
+
class: y(["break-words", [S.value, e.labelLines ? o[e.labelLines] : "block"]])
|
|
95
|
+
}, {
|
|
96
|
+
default: _(() => [
|
|
97
|
+
x(u(e.label), 1),
|
|
98
|
+
e.required ? (l(), a("span", se, " *")) : n("", !0)
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["for", "class"])),
|
|
102
|
+
f(b.$slots, "label-trailing")
|
|
103
|
+
], 2),
|
|
104
|
+
e.sub || d.sub ? (l(), a("small", {
|
|
105
|
+
key: 0,
|
|
106
|
+
id: e.subId,
|
|
107
|
+
class: "mt-0.5 block text-footnote text-content-muted"
|
|
108
|
+
}, [
|
|
109
|
+
f(b.$slots, "sub", {}, () => [
|
|
110
|
+
x(u(e.sub), 1)
|
|
111
|
+
])
|
|
112
|
+
], 8, ne)) : n("", !0)
|
|
113
|
+
], 2)) : n("", !0),
|
|
114
|
+
g("div", {
|
|
115
|
+
class: y(["flex min-w-0 items-center gap-2", e.layout === "value" ? "justify-end text-right" : e.layout === "setting" ? "flex-wrap justify-end text-right" : e.layout === "entry" ? "compact:justify-end" : ""])
|
|
116
|
+
}, [
|
|
117
|
+
f(b.$slots, "default", {}, () => [
|
|
118
|
+
p.value ? (l(), a("span", ie, u(e.value), 1)) : n("", !0)
|
|
119
|
+
]),
|
|
120
|
+
f(b.$slots, "trailing"),
|
|
121
|
+
e.to ? (l(), L(t(I), {
|
|
122
|
+
key: 0,
|
|
123
|
+
name: "arrowRightSLine",
|
|
124
|
+
size: 18,
|
|
125
|
+
class: "shrink-0 text-content-disabled"
|
|
126
|
+
})) : n("", !0)
|
|
127
|
+
], 2)
|
|
128
|
+
], 2),
|
|
129
|
+
e.error ? (l(), a("p", {
|
|
130
|
+
key: 0,
|
|
131
|
+
id: e.errorId,
|
|
132
|
+
class: "mt-1 flex items-start gap-1.5 text-footnote text-content-destructive",
|
|
133
|
+
role: "alert"
|
|
134
|
+
}, [
|
|
135
|
+
D(t(I), {
|
|
136
|
+
name: "alertTriangle",
|
|
137
|
+
size: 14,
|
|
138
|
+
class: "mt-px shrink-0"
|
|
139
|
+
}),
|
|
140
|
+
x(" " + u(e.error), 1)
|
|
141
|
+
], 8, de)) : n("", !0)
|
|
142
|
+
])
|
|
143
|
+
]),
|
|
144
|
+
_: 3
|
|
145
|
+
}, 8, ["to", "data-layout", "data-field-error", "class"]));
|
|
146
|
+
}
|
|
147
|
+
}), ce = ["title"], fe = {
|
|
148
|
+
key: 0,
|
|
149
|
+
class: "mr-1"
|
|
150
|
+
}, ve = {
|
|
151
|
+
key: 1,
|
|
152
|
+
class: "ml-1 text-content-muted"
|
|
153
|
+
}, me = {
|
|
154
|
+
key: 3,
|
|
155
|
+
class: "block text-body text-content-disabled"
|
|
156
|
+
}, be = {
|
|
157
|
+
key: 0,
|
|
158
|
+
class: "sr-only"
|
|
159
|
+
}, ye = ["data-field-error"], pe = {
|
|
160
|
+
key: 0,
|
|
161
|
+
class: "flex items-center justify-between gap-3"
|
|
162
|
+
}, ge = ["for"], xe = {
|
|
163
|
+
key: 0,
|
|
164
|
+
class: "text-content-destructive",
|
|
165
|
+
"aria-hidden": "true"
|
|
166
|
+
}, he = ["id"], ke = ["id"], Ee = /* @__PURE__ */ F({
|
|
167
|
+
__name: "Field",
|
|
168
|
+
props: /* @__PURE__ */ O({
|
|
169
|
+
label: {},
|
|
170
|
+
hint: {},
|
|
171
|
+
error: {},
|
|
172
|
+
required: { type: Boolean },
|
|
173
|
+
editable: { type: Boolean },
|
|
174
|
+
disabled: { type: Boolean },
|
|
175
|
+
lockedReason: {},
|
|
176
|
+
presentation: {},
|
|
177
|
+
name: {},
|
|
178
|
+
value: { type: [String, Number, Boolean, null] },
|
|
179
|
+
prefix: {},
|
|
180
|
+
suffix: {},
|
|
181
|
+
valueStyle: {},
|
|
182
|
+
rowLayout: {},
|
|
183
|
+
rowLabelAlign: {}
|
|
184
|
+
}, { ...W, value: void 0, prefix: void 0, suffix: void 0, valueStyle: void 0, rowLayout: "entry", rowLabelAlign: "center" }),
|
|
185
|
+
setup(i) {
|
|
186
|
+
const e = i, { t: d } = U(), c = V(), h = K(), v = R(), { editable: o, locked: m } = oe(e), S = P(), p = r(() => e.name ?? S), b = r(() => `${p.value}-hint`), w = r(() => `${p.value}-error`);
|
|
187
|
+
if (v?.registerField) {
|
|
188
|
+
const s = h["data-field-key"], j = v.registerField(typeof s == "string" ? s : void 0, r(() => e.disabled));
|
|
189
|
+
C(j);
|
|
190
|
+
}
|
|
191
|
+
const k = r(() => {
|
|
192
|
+
const s = e.value;
|
|
193
|
+
return s == null ? !1 : typeof s == "string" ? s.length > 0 : typeof s == "number" ? !Number.isNaN(s) : !0;
|
|
194
|
+
}), E = r(() => typeof e.value == "boolean" ? e.value ? d("core.form.yes") : d("core.form.no") : e.value), z = r(() => !!v && !o.value && v.hideEmpty.value && !k.value && !c.readonly), N = r(() => [e.hint && o.value ? b.value : null, e.error ? w.value : null].filter(Boolean).join(" ") || void 0), $ = r(() => o.value ? e.rowLayout : e.rowLayout === "stacked" ? "stacked" : "value"), B = r(
|
|
195
|
+
() => o.value && !m.value && e.required ? { "data-field-required": "true", "data-field-filled": k.value ? "true" : void 0 } : {}
|
|
196
|
+
);
|
|
197
|
+
return (s, j) => t(v) && !z.value ? (l(), L(ue, A({ key: 0 }, B.value, {
|
|
198
|
+
label: e.label,
|
|
199
|
+
for: t(o) ? p.value : void 0,
|
|
200
|
+
sub: t(o) ? e.hint : void 0,
|
|
201
|
+
"sub-id": b.value,
|
|
202
|
+
required: t(o) && !t(m) && e.required,
|
|
203
|
+
layout: $.value,
|
|
204
|
+
"label-align": $.value === "entry" ? e.rowLabelAlign : void 0,
|
|
205
|
+
error: t(o) ? e.error : void 0,
|
|
206
|
+
"error-id": w.value,
|
|
207
|
+
"data-field-locked": t(m) ? "true" : void 0
|
|
208
|
+
}), M({
|
|
209
|
+
default: _(() => [
|
|
210
|
+
g("div", {
|
|
211
|
+
class: "relative w-full min-w-0",
|
|
212
|
+
title: t(m) ? e.lockedReason : void 0
|
|
213
|
+
}, [
|
|
214
|
+
g("div", {
|
|
215
|
+
class: y(t(o) ? $.value === "setting" ? "flex min-w-0 flex-col items-end" : $.value === "stacked" ? "flex min-w-0 flex-col items-stretch" : "flex min-w-0 flex-col items-start compact:items-end" : "")
|
|
216
|
+
}, [
|
|
217
|
+
t(o) ? f(s.$slots, "default", {
|
|
218
|
+
id: p.value,
|
|
219
|
+
describedby: N.value,
|
|
220
|
+
invalid: !!e.error,
|
|
221
|
+
required: e.required,
|
|
222
|
+
disabled: e.disabled
|
|
223
|
+
}, void 0, void 0, 0) : t(c).readonly ? f(s.$slots, "readonly", {}, void 0, void 0, 1) : k.value ? (l(), a("span", {
|
|
224
|
+
key: 2,
|
|
225
|
+
class: y(["block break-words text-body text-content-strong", e.valueStyle === "mono" ? "font-mono" : e.valueStyle === "numeric" ? "tabular-nums" : ""])
|
|
226
|
+
}, [
|
|
227
|
+
e.prefix ? (l(), a("span", fe, u(e.prefix), 1)) : n("", !0),
|
|
228
|
+
x(u(E.value), 1),
|
|
229
|
+
e.suffix ? (l(), a("span", ve, u(e.suffix), 1)) : n("", !0)
|
|
230
|
+
], 2)) : (l(), a("span", me, u(t(d)("core.state.no_value")), 1))
|
|
231
|
+
], 2)
|
|
232
|
+
], 8, ce),
|
|
233
|
+
t(m) && e.lockedReason ? (l(), a("span", be, u(e.lockedReason), 1)) : n("", !0)
|
|
234
|
+
]),
|
|
235
|
+
_: 2
|
|
236
|
+
}, [
|
|
237
|
+
t(o) && t(c).trailing ? {
|
|
238
|
+
name: "trailing",
|
|
239
|
+
fn: _(() => [
|
|
240
|
+
f(s.$slots, "trailing")
|
|
241
|
+
]),
|
|
242
|
+
key: "0"
|
|
243
|
+
} : void 0,
|
|
244
|
+
t(o) && t(c).labelTrailing ? {
|
|
245
|
+
name: "label-trailing",
|
|
246
|
+
fn: _(() => [
|
|
247
|
+
f(s.$slots, "labelTrailing")
|
|
248
|
+
]),
|
|
249
|
+
key: "1"
|
|
250
|
+
} : void 0
|
|
251
|
+
]), 1040, ["label", "for", "sub", "sub-id", "required", "layout", "label-align", "error", "error-id", "data-field-locked"])) : t(v) ? n("", !0) : (l(), a("div", A({ key: 1 }, B.value, {
|
|
252
|
+
"data-field-error": e.error ? "true" : void 0,
|
|
253
|
+
class: "flex min-w-0 flex-col gap-1"
|
|
254
|
+
}), [
|
|
255
|
+
e.label || t(o) && t(c).labelTrailing ? (l(), a("div", pe, [
|
|
256
|
+
e.label ? (l(), a("label", {
|
|
257
|
+
key: 0,
|
|
258
|
+
for: t(o) ? p.value : void 0,
|
|
259
|
+
class: "text-footnote font-medium text-content-muted"
|
|
260
|
+
}, [
|
|
261
|
+
x(u(e.label), 1),
|
|
262
|
+
t(o) && e.required ? (l(), a("span", xe, " *")) : n("", !0)
|
|
263
|
+
], 8, ge)) : n("", !0),
|
|
264
|
+
t(o) ? f(s.$slots, "labelTrailing", {}, void 0, void 0, 1) : n("", !0)
|
|
265
|
+
])) : n("", !0),
|
|
266
|
+
t(o) ? f(s.$slots, "default", {
|
|
267
|
+
id: p.value,
|
|
268
|
+
describedby: N.value,
|
|
269
|
+
invalid: !!e.error,
|
|
270
|
+
required: e.required,
|
|
271
|
+
disabled: e.disabled
|
|
272
|
+
}, void 0, void 0, 1) : t(c).readonly ? f(s.$slots, "readonly", {}, void 0, void 0, 2) : (l(), a("span", {
|
|
273
|
+
key: 3,
|
|
274
|
+
class: y(["text-body", k.value ? "text-content-strong" : "text-content-disabled"])
|
|
275
|
+
}, u(k.value ? `${e.prefix ?? ""}${E.value}${e.suffix ?? ""}` : t(d)("core.state.no_value")), 3)),
|
|
276
|
+
e.hint && t(o) ? (l(), a("p", {
|
|
277
|
+
key: 4,
|
|
278
|
+
id: b.value,
|
|
279
|
+
class: "text-footnote text-content-muted"
|
|
280
|
+
}, u(e.hint), 9, he)) : n("", !0),
|
|
281
|
+
e.error ? (l(), a("p", {
|
|
282
|
+
key: 5,
|
|
283
|
+
id: w.value,
|
|
284
|
+
role: "alert",
|
|
285
|
+
class: "flex items-start gap-1.5 text-footnote text-content-destructive"
|
|
286
|
+
}, [
|
|
287
|
+
D(t(I), {
|
|
288
|
+
name: "alertTriangle",
|
|
289
|
+
size: 14,
|
|
290
|
+
class: "mt-px shrink-0"
|
|
291
|
+
}),
|
|
292
|
+
x(" " + u(e.error), 1)
|
|
293
|
+
], 8, ke)) : n("", !0)
|
|
294
|
+
], 16, ye));
|
|
295
|
+
}
|
|
296
|
+
}), _e = "rounded-control transition-[background-color,box-shadow,opacity] duration-motion-fast ease-motion-standard";
|
|
297
|
+
function Ne(i, e) {
|
|
298
|
+
const d = !!R();
|
|
299
|
+
return r(() => d ? H({ kind: i, state: e() }) : [_e, ...J(i, e()).map(([c]) => c)].join(" "));
|
|
300
|
+
}
|
|
301
|
+
export {
|
|
302
|
+
Ee as _,
|
|
303
|
+
R as a,
|
|
304
|
+
W as b,
|
|
305
|
+
Ne as c,
|
|
306
|
+
ee as d,
|
|
307
|
+
ue as e,
|
|
308
|
+
Re as f,
|
|
309
|
+
X as g,
|
|
310
|
+
Z as h,
|
|
311
|
+
te as i,
|
|
312
|
+
oe as u
|
|
313
|
+
};
|
|
@@ -22,9 +22,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
22
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
23
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
invalid: boolean;
|
|
26
25
|
disabled: boolean;
|
|
27
26
|
placeholder: string;
|
|
27
|
+
invalid: boolean;
|
|
28
28
|
expanded: boolean;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -25,9 +25,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
26
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
|
-
invalid: boolean;
|
|
29
28
|
disabled: boolean;
|
|
30
29
|
placeholder: string;
|
|
30
|
+
invalid: boolean;
|
|
31
31
|
popup: "menu" | "listbox" | "dialog";
|
|
32
32
|
variant: "filled" | "plain";
|
|
33
33
|
expanded: boolean;
|
package/dist/controls/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { _ as A } from "../IconTile.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as A } from "../IconTile.vue_vue_type_script_setup_true_lang-BpIjgu5E.js";
|
|
2
2
|
import { defineComponent as p, useSlots as c, openBlock as r, createElementBlock as d, normalizeClass as u, createElementVNode as f, renderSlot as m, toDisplayString as b, createVNode as x, unref as h, useModel as v, useTemplateRef as _, withDirectives as y, mergeProps as g, vModelText as k, mergeModels as w } from "vue";
|
|
3
|
-
import { _ as B } from "../Icon.vue_vue_type_script_lang-
|
|
3
|
+
import { _ as B } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
4
4
|
import { _ as N } from "../DateButton.vue_vue_type_script_setup_true_lang-EcqrfWKz.js";
|
|
5
|
-
import { _ as W
|
|
6
|
-
import {
|
|
5
|
+
import { _ as W } from "../Tabs.vue_vue_type_script_setup_true_lang-CcMcE38r.js";
|
|
6
|
+
import { _ as L } from "../SwipeActions.vue_vue_type_script_setup_true_lang-BJIA2JfI.js";
|
|
7
|
+
import { c as j, a as F, b as G, d as H } from "../controlSurface-t7OEFESJ.js";
|
|
7
8
|
const S = ["disabled", "aria-haspopup", "aria-expanded", "aria-invalid"], V = { class: "min-w-0 truncate" }, P = {
|
|
8
9
|
key: 1,
|
|
9
10
|
class: "text-content-disabled"
|
|
@@ -72,10 +73,10 @@ export {
|
|
|
72
73
|
A as IconTile,
|
|
73
74
|
T as PopupButton,
|
|
74
75
|
C as SearchInput,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
L as SwipeActions,
|
|
77
|
+
W as Tabs,
|
|
78
|
+
j as controlSurface,
|
|
79
|
+
F as controlSurfacePairs,
|
|
80
|
+
G as controlWidth,
|
|
81
|
+
H as controlWidthPair
|
|
81
82
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const c = (n) => /:[A-Za-z0-9_]/.test(n);
|
|
2
|
+
function* s(n) {
|
|
3
|
+
for (const e of n)
|
|
4
|
+
typeof e.name == "string" && (yield e.name), e.children && (yield* s(e.children));
|
|
5
|
+
}
|
|
6
|
+
function f(n) {
|
|
7
|
+
const e = Object.values(n), a = /* @__PURE__ */ new Set();
|
|
8
|
+
for (const t of s(e)) {
|
|
9
|
+
if (a.has(t)) throw new Error(`defineRoutes: the route name "${t}" is used twice in one declaration.`);
|
|
10
|
+
a.add(t);
|
|
11
|
+
}
|
|
12
|
+
const r = {};
|
|
13
|
+
for (const [t, o] of Object.entries(n))
|
|
14
|
+
r[t] = c(o.path) ? (i) => ({ name: o.name, params: i ?? {} }) : { name: o.name };
|
|
15
|
+
return { ...r, records: e };
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
f as d
|
|
19
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function a(s, e) {
|
|
2
|
+
return { key: s, value: e };
|
|
3
|
+
}
|
|
4
|
+
const o = /* @__PURE__ */ new WeakSet(), c = (s) => typeof s == "object" && s !== null && o.has(s), t = (s) => s === void 0 ? [] : Array.isArray(s) ? [...s] : [s];
|
|
5
|
+
function n(s) {
|
|
6
|
+
if (typeof s.id != "string" || s.id.trim() === "") throw new Error("defineFeature: `id` must be a non-empty string.");
|
|
7
|
+
const e = Object.freeze({
|
|
8
|
+
id: s.id,
|
|
9
|
+
routes: t(s.routes),
|
|
10
|
+
contexts: t(s.context),
|
|
11
|
+
messages: t(s.messages),
|
|
12
|
+
navigation: t(s.navigation),
|
|
13
|
+
contributions: t(s.contributions),
|
|
14
|
+
effects: t(s.effects),
|
|
15
|
+
backend: t(s.backend),
|
|
16
|
+
holdsExpiredSession: s.holdsExpiredSession === !0,
|
|
17
|
+
requires: t(s.requires).map((r) => typeof r == "string" ? r : r.id)
|
|
18
|
+
});
|
|
19
|
+
return o.add(e), e;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
n as d,
|
|
23
|
+
c as i,
|
|
24
|
+
a as p
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useI18n as m } from "vue-i18n";
|
|
2
|
+
import { a as c } from "./error-CD7x0Jrz.js";
|
|
3
|
+
import { u as d } from "./format-B8mJm946.js";
|
|
4
|
+
import { u as l } from "./describeError-Ctga6GcS.js";
|
|
5
|
+
function g() {
|
|
6
|
+
const { t: s, te: u } = m(), a = d(), f = l(), i = (e) => [`errors.${e}`, `core.errors.${e}`].find((t) => u(t));
|
|
7
|
+
function n(e, t) {
|
|
8
|
+
if (c(e) && e.code) {
|
|
9
|
+
const r = i(e.code), o = typeof e.params?.locked_until == "string" ? new Date(e.params.locked_until) : null;
|
|
10
|
+
if (r && o && !Number.isNaN(o.getTime())) return s(r, { ...e.params, locked_until: a.time(o) });
|
|
11
|
+
}
|
|
12
|
+
return f(e, t === void 0 ? void 0 : { fallback: t });
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
sentence: n,
|
|
16
|
+
translate: (e) => {
|
|
17
|
+
const t = i(e);
|
|
18
|
+
return t === void 0 ? e : s(t);
|
|
19
|
+
},
|
|
20
|
+
failureMessage: (e, t) => c(t) && t.code && (e === "failed" || e === "forbidden" || e === "conflict") ? n(t) : void 0
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
g as u
|
|
25
|
+
};
|
|
@@ -27,8 +27,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
27
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
28
28
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
error: string;
|
|
31
30
|
disabled: boolean;
|
|
31
|
+
error: string;
|
|
32
32
|
description: string;
|
|
33
33
|
variant: "inline" | "row";
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|