@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,314 @@
|
|
|
1
|
+
import { defineComponent as Y, computed as x, inject as Z, watch as M, onBeforeUnmount as P, useTemplateRef as ee, ref as te, onMounted as ae, openBlock as t, createElementBlock as a, createBlock as F, resolveDynamicComponent as se, unref as l, createElementVNode as s, renderSlot as $, Fragment as y, renderList as w, normalizeClass as d, toDisplayString as i, createCommentVNode as c, createVNode as v, withCtx as C, nextTick as oe } from "vue";
|
|
2
|
+
import { useI18n as ne } from "vue-i18n";
|
|
3
|
+
import { RouterLink as z } from "vue-router";
|
|
4
|
+
import { _ as W } from "./IconTile.vue_vue_type_script_setup_true_lang-BpIjgu5E.js";
|
|
5
|
+
import { _ as q } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
6
|
+
import { a as le } from "./mediaQuery-CygcXmFW.js";
|
|
7
|
+
import { u as re } from "./access-DdRFrVV1.js";
|
|
8
|
+
import { u as ie, a as ce } from "./sections-CntvUTxn.js";
|
|
9
|
+
import { p as ue } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-BoinCY93.js";
|
|
10
|
+
import { p as de } from "./sectionIndex-BS0ic5W7.js";
|
|
11
|
+
import { _ as G, a as me } from "./SectionList.vue_vue_type_script_setup_true_lang-BFYls8fR.js";
|
|
12
|
+
const pe = {
|
|
13
|
+
key: 0,
|
|
14
|
+
"data-test": "section-navigator",
|
|
15
|
+
"data-variant": "none"
|
|
16
|
+
}, fe = {
|
|
17
|
+
key: 1,
|
|
18
|
+
"data-test": "section-navigator",
|
|
19
|
+
"data-variant": "sidebar",
|
|
20
|
+
class: "grid min-w-0 grid-cols-[minmax(0,15rem)_minmax(0,1fr)] items-start gap-8"
|
|
21
|
+
}, ve = { class: "sticky top-[calc(var(--app-bar-height)+1rem+var(--shell-banner-h,0px))] flex min-w-0 flex-col gap-4 self-start" }, be = ["aria-label"], he = { class: "flex flex-col gap-0.5" }, ge = ["href", "aria-current", "data-test", "onClick"], xe = { class: "min-w-0 flex-1 truncate" }, _e = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "text-subheadline tabular-nums text-content-muted"
|
|
24
|
+
}, ke = { class: "min-w-0" }, ye = ["data-variant"], we = {
|
|
25
|
+
key: 0,
|
|
26
|
+
"data-test": "section-summary"
|
|
27
|
+
}, Le = ["aria-label"], Se = { class: "flex gap-2.5 compact:gap-1.5" }, $e = ["href", "aria-current", "data-test", "data-done", "onClick"], Ce = {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "flex size-6.5 shrink-0 items-center justify-center rounded-full bg-control-on text-white"
|
|
30
|
+
}, ze = { class: "flex min-w-0 flex-col" }, Re = { class: "compact:hidden" }, Ae = { class: "hidden compact:inline" }, Be = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "hidden compact:inline"
|
|
33
|
+
}, Ne = {
|
|
34
|
+
key: 1,
|
|
35
|
+
class: "sr-only"
|
|
36
|
+
}, je = ["aria-label"], Ee = { class: "flex gap-0.5" }, Fe = ["href", "aria-current", "data-test", "onClick"], Oe = ["title"], Te = ["aria-label"], Ve = {
|
|
37
|
+
key: 0,
|
|
38
|
+
class: "px-row-inset pb-2 text-subheadline font-semibold text-content-strong compact:text-footnote compact:font-normal compact:uppercase compact:tracking-wide compact:text-content-muted"
|
|
39
|
+
}, De = { class: "overflow-hidden rounded-group bg-surface-cell shadow-group" }, Ie = { class: "flex shrink-0 items-center" }, Me = { class: "row-body flex min-h-row min-w-0 flex-1 items-center gap-2 border-t border-border-separator py-2 pr-row-inset" }, Pe = { class: "min-w-0 flex-1 break-words text-body text-content-strong" }, We = {
|
|
40
|
+
key: 0,
|
|
41
|
+
class: "text-body tabular-nums text-content-muted"
|
|
42
|
+
}, qe = ["data-test"], Ge = {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "sticky top-[calc(var(--app-bar-height)+1rem+var(--shell-banner-h,0px))] min-w-0 self-start"
|
|
45
|
+
}, st = /* @__PURE__ */ Y({
|
|
46
|
+
__name: "SectionNavigator",
|
|
47
|
+
props: {
|
|
48
|
+
label: {},
|
|
49
|
+
desktop: { default: "segments" },
|
|
50
|
+
compact: { default: "segmented" },
|
|
51
|
+
backLabel: { default: void 0 },
|
|
52
|
+
counts: { default: () => ({}) },
|
|
53
|
+
steps: { default: void 0 }
|
|
54
|
+
},
|
|
55
|
+
setup(K) {
|
|
56
|
+
const n = K, { t: Q } = ne(), R = ie();
|
|
57
|
+
ce(R);
|
|
58
|
+
const { sections: f, active: b, first: h, subPage: O } = R, T = de(), U = re(), A = le("(min-width: 64rem)"), u = x(() => n.steps ? "steps" : A.value ? n.desktop : n.compact === "auto" ? f.value.length > 5 ? "rows" : "segmented" : n.compact), g = x(() => f.value.length > 1), H = x(() => R.declared.value > 0 && f.value.length === 0), B = x(() => !!b.value && b.value.name === h.value?.name && !O.value), V = x(() => T.sections.value.length > 1), L = x(() => u.value === "steps" && A.value && V.value), m = (o) => n.steps?.[o] ?? { done: !1 }, J = { positive: "text-status-success-content", warning: "text-status-warning-content", critical: "text-status-danger-content" }, S = Z(ue, null);
|
|
59
|
+
M(
|
|
60
|
+
() => {
|
|
61
|
+
if (O.value && b.value && h.value) {
|
|
62
|
+
const o = { label: n.backLabel || h.value.label, to: h.value.to }, p = b.value.name === h.value.name && !n.backLabel;
|
|
63
|
+
return { label: b.value.shortLabel, to: b.value.to, path: p ? [o] : [o, { label: b.value.label, to: b.value.to }] };
|
|
64
|
+
}
|
|
65
|
+
return u.value === "rows" && g.value && !B.value && h.value ? { label: n.backLabel || h.value.label, to: h.value.to } : null;
|
|
66
|
+
},
|
|
67
|
+
(o) => {
|
|
68
|
+
S && (S.value = o);
|
|
69
|
+
},
|
|
70
|
+
{ immediate: !0 }
|
|
71
|
+
), P(() => {
|
|
72
|
+
S && (S.value = null);
|
|
73
|
+
});
|
|
74
|
+
const X = x(() => {
|
|
75
|
+
const o = [];
|
|
76
|
+
for (const p of f.value.slice(1)) {
|
|
77
|
+
const e = o[o.length - 1];
|
|
78
|
+
e && e.header === p.group ? e.sections.push(p) : o.push({ key: p.name, header: p.group, sections: [p] });
|
|
79
|
+
}
|
|
80
|
+
return o;
|
|
81
|
+
}), _ = ee("segments"), N = te(!1);
|
|
82
|
+
async function D() {
|
|
83
|
+
if (u.value !== "segments" || !_.value) return;
|
|
84
|
+
N.value = !1, await oe();
|
|
85
|
+
const o = _.value?.querySelectorAll("[data-segment-label]") ?? [];
|
|
86
|
+
N.value = [...o].some((p) => p.scrollWidth > p.clientWidth + 1);
|
|
87
|
+
}
|
|
88
|
+
let j = null;
|
|
89
|
+
ae(() => {
|
|
90
|
+
typeof ResizeObserver > "u" || !_.value || (j = new ResizeObserver(() => void D()), j.observe(_.value));
|
|
91
|
+
}), P(() => j?.disconnect()), M([u, f], () => void D(), { flush: "post" });
|
|
92
|
+
const I = (o) => u.value === "segments" && !N.value ? o.label : o.shortLabel;
|
|
93
|
+
return (o, p) => H.value ? (t(), a("div", pe, [
|
|
94
|
+
(t(), F(se(l(U).noAccess)))
|
|
95
|
+
])) : g.value && u.value === "sidebar" ? (t(), a("div", fe, [
|
|
96
|
+
s("aside", ve, [
|
|
97
|
+
$(o.$slots, "summary"),
|
|
98
|
+
s("nav", {
|
|
99
|
+
"aria-label": n.label
|
|
100
|
+
}, [
|
|
101
|
+
s("ul", he, [
|
|
102
|
+
(t(!0), a(y, null, w(l(f), (e, r) => (t(), a("li", {
|
|
103
|
+
key: e.name
|
|
104
|
+
}, [
|
|
105
|
+
e.group && e.group !== l(f)[r - 1]?.group ? (t(), a("div", {
|
|
106
|
+
key: 0,
|
|
107
|
+
"data-test": "section-group",
|
|
108
|
+
class: d(["px-2.5 pb-1.5 text-caption font-semibold tracking-wide text-content-muted uppercase", r > 0 ? "pt-4" : "pt-1"])
|
|
109
|
+
}, i(e.group), 3)) : c("", !0),
|
|
110
|
+
v(l(z), {
|
|
111
|
+
to: e.to,
|
|
112
|
+
custom: ""
|
|
113
|
+
}, {
|
|
114
|
+
default: C(({ href: k, navigate: E }) => [
|
|
115
|
+
s("a", {
|
|
116
|
+
href: k,
|
|
117
|
+
"aria-current": e.active ? "page" : void 0,
|
|
118
|
+
"data-test": `section-${e.name}`,
|
|
119
|
+
class: d(["flex min-h-[2.125rem] items-center gap-2.5 rounded-control py-1 pr-2.5 pl-1.5 text-body text-content-strong transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus", e.active ? "bg-tint-soft font-semibold" : "hover:bg-fill"]),
|
|
120
|
+
onClick: E
|
|
121
|
+
}, [
|
|
122
|
+
v(l(W), {
|
|
123
|
+
tone: e.active ? "brand" : "anchor",
|
|
124
|
+
icon: e.icon
|
|
125
|
+
}, null, 8, ["tone", "icon"]),
|
|
126
|
+
s("span", xe, i(e.label), 1),
|
|
127
|
+
n.counts[e.name] !== void 0 ? (t(), a("span", _e, i(n.counts[e.name]), 1)) : c("", !0)
|
|
128
|
+
], 10, ge)
|
|
129
|
+
]),
|
|
130
|
+
_: 2
|
|
131
|
+
}, 1032, ["to"]),
|
|
132
|
+
e.active && V.value ? (t(), F(G, { key: 1 })) : c("", !0)
|
|
133
|
+
]))), 128))
|
|
134
|
+
])
|
|
135
|
+
], 8, be)
|
|
136
|
+
]),
|
|
137
|
+
s("div", ke, [
|
|
138
|
+
$(o.$slots, "default")
|
|
139
|
+
])
|
|
140
|
+
])) : (t(), a("div", {
|
|
141
|
+
key: 2,
|
|
142
|
+
"data-test": "section-navigator",
|
|
143
|
+
"data-variant": g.value ? u.value : "none",
|
|
144
|
+
class: "flex min-w-0 flex-col gap-section-gap"
|
|
145
|
+
}, [
|
|
146
|
+
o.$slots.summary && (u.value !== "rows" || B.value || !g.value) ? (t(), a("div", we, [
|
|
147
|
+
$(o.$slots, "summary")
|
|
148
|
+
])) : c("", !0),
|
|
149
|
+
g.value && u.value === "steps" ? (t(), a("nav", {
|
|
150
|
+
key: 1,
|
|
151
|
+
"aria-label": n.label,
|
|
152
|
+
"data-test": "section-steps"
|
|
153
|
+
}, [
|
|
154
|
+
s("ol", Se, [
|
|
155
|
+
(t(!0), a(y, null, w(l(f), (e, r) => (t(), a("li", {
|
|
156
|
+
key: e.name,
|
|
157
|
+
class: "flex min-w-0 flex-1"
|
|
158
|
+
}, [
|
|
159
|
+
v(l(z), {
|
|
160
|
+
to: e.to,
|
|
161
|
+
custom: ""
|
|
162
|
+
}, {
|
|
163
|
+
default: C(({ href: k, navigate: E }) => [
|
|
164
|
+
s("a", {
|
|
165
|
+
href: k,
|
|
166
|
+
"aria-current": e.active ? "step" : void 0,
|
|
167
|
+
"data-test": `section-${e.name}`,
|
|
168
|
+
"data-done": m(e.name).done ? "true" : void 0,
|
|
169
|
+
class: d(["flex min-w-0 flex-1 items-center gap-3 rounded-group px-4 py-3 transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus compact:flex-col compact:items-start compact:gap-1.5 compact:p-2", e.active ? "bg-tint-soft ring-2 ring-tint ring-inset" : "bg-surface-cell shadow-group hover:bg-fill"]),
|
|
170
|
+
onClick: E
|
|
171
|
+
}, [
|
|
172
|
+
m(e.name).done ? (t(), a("span", Ce, [
|
|
173
|
+
v(l(q), {
|
|
174
|
+
name: "checkCustom",
|
|
175
|
+
size: 14
|
|
176
|
+
})
|
|
177
|
+
])) : (t(), a("span", {
|
|
178
|
+
key: 1,
|
|
179
|
+
class: d(["flex size-6.5 shrink-0 items-center justify-center rounded-full text-footnote font-semibold", e.active ? "bg-tint text-content-on-tint" : "text-content-muted ring-2 ring-fill-strong ring-inset"])
|
|
180
|
+
}, i(r + 1), 3)),
|
|
181
|
+
s("span", ze, [
|
|
182
|
+
s("span", {
|
|
183
|
+
class: d(["truncate text-headline compact:text-footnote", e.active || m(e.name).done ? "font-semibold text-content-strong" : "font-medium text-content-muted"])
|
|
184
|
+
}, [
|
|
185
|
+
s("span", Re, i(e.label), 1),
|
|
186
|
+
s("span", Ae, i(e.shortLabel), 1)
|
|
187
|
+
], 2),
|
|
188
|
+
m(e.name).sub ? (t(), a("span", {
|
|
189
|
+
key: 0,
|
|
190
|
+
"data-test": "section-step-sub",
|
|
191
|
+
class: d(["truncate text-footnote compact:text-caption", m(e.name).tone ? J[m(e.name).tone] : "text-content-muted"])
|
|
192
|
+
}, [
|
|
193
|
+
s("span", {
|
|
194
|
+
class: d(m(e.name).shortSub ? "compact:hidden" : "")
|
|
195
|
+
}, i(m(e.name).sub), 3),
|
|
196
|
+
m(e.name).shortSub ? (t(), a("span", Be, i(m(e.name).shortSub), 1)) : c("", !0)
|
|
197
|
+
], 2)) : c("", !0),
|
|
198
|
+
m(e.name).done ? (t(), a("span", Ne, i(l(Q)("core.steps.done")), 1)) : c("", !0)
|
|
199
|
+
])
|
|
200
|
+
], 10, $e)
|
|
201
|
+
]),
|
|
202
|
+
_: 2
|
|
203
|
+
}, 1032, ["to"])
|
|
204
|
+
]))), 128))
|
|
205
|
+
])
|
|
206
|
+
], 8, Le)) : c("", !0),
|
|
207
|
+
g.value && (u.value === "segments" || u.value === "segmented") ? (t(), a("div", {
|
|
208
|
+
key: 2,
|
|
209
|
+
class: d(u.value === "segmented" ? "z-20 -mx-screen-padding bg-surface-page/90 px-screen-padding py-2 backdrop-blur-xl max-md:sticky max-md:top-[calc(max(0.25rem,env(safe-area-inset-top))+var(--app-bar-height)+0.25rem+1px+var(--shell-banner-h,0px))]" : "")
|
|
210
|
+
}, [
|
|
211
|
+
s("nav", {
|
|
212
|
+
ref_key: "segments",
|
|
213
|
+
ref: _,
|
|
214
|
+
"aria-label": n.label,
|
|
215
|
+
class: "max-w-full overflow-x-auto rounded-control bg-fill p-0.5 scrollbar-hide"
|
|
216
|
+
}, [
|
|
217
|
+
s("ul", Ee, [
|
|
218
|
+
(t(!0), a(y, null, w(l(f), (e) => (t(), a("li", {
|
|
219
|
+
key: e.name,
|
|
220
|
+
class: "flex min-w-0 flex-1"
|
|
221
|
+
}, [
|
|
222
|
+
v(l(z), {
|
|
223
|
+
to: e.to,
|
|
224
|
+
custom: ""
|
|
225
|
+
}, {
|
|
226
|
+
default: C(({ href: r, navigate: k }) => [
|
|
227
|
+
s("a", {
|
|
228
|
+
href: r,
|
|
229
|
+
"aria-current": e.active ? "page" : void 0,
|
|
230
|
+
"data-test": `section-${e.name}`,
|
|
231
|
+
class: d(["flex min-h-8 min-w-0 flex-1 items-center justify-center gap-1.5 rounded-control px-3 py-1 text-subheadline whitespace-nowrap transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus compact:min-h-[2.125rem] compact:px-1.5", e.active ? "bg-segment-selected font-semibold text-content-strong shadow-sm" : "font-medium text-content hover:text-content-strong"]),
|
|
232
|
+
onClick: k
|
|
233
|
+
}, [
|
|
234
|
+
s("span", {
|
|
235
|
+
class: "truncate",
|
|
236
|
+
"data-segment-label": "",
|
|
237
|
+
title: I(e) !== e.label ? e.label : void 0
|
|
238
|
+
}, i(I(e)), 9, Oe),
|
|
239
|
+
n.counts[e.name] !== void 0 ? (t(), a("span", {
|
|
240
|
+
key: 0,
|
|
241
|
+
"data-test": "section-count",
|
|
242
|
+
class: d(["min-w-[1.125rem] rounded-full px-1.5 text-center text-caption font-semibold tabular-nums", e.active ? "bg-tint-soft text-content-link" : "bg-surface-cell text-content-muted"])
|
|
243
|
+
}, i(n.counts[e.name]), 3)) : c("", !0)
|
|
244
|
+
], 10, Fe)
|
|
245
|
+
]),
|
|
246
|
+
_: 2
|
|
247
|
+
}, 1032, ["to"])
|
|
248
|
+
]))), 128))
|
|
249
|
+
])
|
|
250
|
+
], 8, je)
|
|
251
|
+
], 2)) : g.value && u.value === "rows" && B.value ? (t(), a("nav", {
|
|
252
|
+
key: 3,
|
|
253
|
+
"aria-label": n.label,
|
|
254
|
+
"data-test": "section-rows",
|
|
255
|
+
class: "flex flex-col gap-group-gap"
|
|
256
|
+
}, [
|
|
257
|
+
(t(!0), a(y, null, w(X.value, (e) => (t(), a("section", {
|
|
258
|
+
key: e.key,
|
|
259
|
+
class: "flex min-w-0 flex-col"
|
|
260
|
+
}, [
|
|
261
|
+
e.header ? (t(), a("h3", Ve, i(e.header), 1)) : c("", !0),
|
|
262
|
+
s("ul", De, [
|
|
263
|
+
(t(!0), a(y, null, w(e.sections, (r) => (t(), a("li", {
|
|
264
|
+
key: r.name,
|
|
265
|
+
class: "[&:first-child_.row-body]:border-t-0"
|
|
266
|
+
}, [
|
|
267
|
+
v(l(z), {
|
|
268
|
+
to: r.to,
|
|
269
|
+
"data-test": `section-${r.name}`,
|
|
270
|
+
class: "flex min-w-0 items-stretch gap-3 pl-row-inset transition-colors duration-motion-fast hover:bg-fill focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus"
|
|
271
|
+
}, {
|
|
272
|
+
default: C(() => [
|
|
273
|
+
s("span", Ie, [
|
|
274
|
+
v(l(W), {
|
|
275
|
+
tone: "anchor",
|
|
276
|
+
icon: r.icon
|
|
277
|
+
}, null, 8, ["icon"])
|
|
278
|
+
]),
|
|
279
|
+
s("span", Me, [
|
|
280
|
+
s("span", Pe, i(r.label), 1),
|
|
281
|
+
n.counts[r.name] !== void 0 ? (t(), a("span", We, i(n.counts[r.name]), 1)) : c("", !0),
|
|
282
|
+
v(l(q), {
|
|
283
|
+
name: "arrowRightSLine",
|
|
284
|
+
size: 18,
|
|
285
|
+
class: "shrink-0 text-content-disabled"
|
|
286
|
+
})
|
|
287
|
+
])
|
|
288
|
+
]),
|
|
289
|
+
_: 2
|
|
290
|
+
}, 1032, ["to", "data-test"])
|
|
291
|
+
]))), 128))
|
|
292
|
+
])
|
|
293
|
+
]))), 128))
|
|
294
|
+
], 8, Te)) : c("", !0),
|
|
295
|
+
s("div", {
|
|
296
|
+
class: d(L.value ? "grid min-w-0 grid-cols-[minmax(0,1fr)_minmax(0,14rem)] items-start gap-7" : "contents"),
|
|
297
|
+
"data-test": L.value ? "section-steps-form" : void 0
|
|
298
|
+
}, [
|
|
299
|
+
s("div", {
|
|
300
|
+
class: d(L.value ? "min-w-0" : "contents")
|
|
301
|
+
}, [
|
|
302
|
+
$(o.$slots, "default")
|
|
303
|
+
], 2),
|
|
304
|
+
L.value ? (t(), a("aside", Ge, [
|
|
305
|
+
v(G, { standalone: "" })
|
|
306
|
+
])) : c("", !0)
|
|
307
|
+
], 10, qe),
|
|
308
|
+
!l(A) && l(T).sections.value.length > 2 ? (t(), F(me, { key: 4 })) : c("", !0)
|
|
309
|
+
], 8, ye));
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
export {
|
|
313
|
+
st as _
|
|
314
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as x, openBlock as l, createBlock as y, mergeProps as g, unref as s, withCtx as w, createElementVNode as _, normalizeClass as o, createElementBlock as a, Fragment as V, renderList as k, createTextVNode as h, toDisplayString as r, createCommentVNode as B, mergeDefaults as C } from "vue";
|
|
2
|
+
import { u as L, a as F, _ as D, f as N, b as E } from "./control-7EP4tjYy.js";
|
|
3
|
+
const P = ["id", "aria-label", "aria-describedby", "aria-invalid"], R = ["disabled", "aria-pressed", "onClick"], G = /* @__PURE__ */ x({
|
|
4
|
+
__name: "SegmentedField",
|
|
5
|
+
props: /* @__PURE__ */ C({
|
|
6
|
+
label: {},
|
|
7
|
+
hint: {},
|
|
8
|
+
error: {},
|
|
9
|
+
required: { type: Boolean },
|
|
10
|
+
editable: { type: Boolean },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
lockedReason: {},
|
|
13
|
+
presentation: {},
|
|
14
|
+
name: {},
|
|
15
|
+
modelValue: {},
|
|
16
|
+
options: {},
|
|
17
|
+
rowLayout: {}
|
|
18
|
+
}, { ...E, modelValue: null, rowLayout: "setting" }),
|
|
19
|
+
emits: ["update:modelValue"],
|
|
20
|
+
setup(i, { emit: d }) {
|
|
21
|
+
const e = i, u = d, { editable: c } = L(e), m = !!F(), f = () => e.options.find((n) => n.value === e.modelValue)?.label ?? null;
|
|
22
|
+
return (n, S) => (l(), y(D, g(s(N)(e), {
|
|
23
|
+
value: f(),
|
|
24
|
+
"row-layout": e.rowLayout
|
|
25
|
+
}), {
|
|
26
|
+
default: w(({ id: b, describedby: p, invalid: v }) => [
|
|
27
|
+
_("div", {
|
|
28
|
+
id: b,
|
|
29
|
+
role: "group",
|
|
30
|
+
"aria-label": e.label,
|
|
31
|
+
"aria-describedby": p,
|
|
32
|
+
"aria-invalid": v || void 0,
|
|
33
|
+
"data-test": "segmented",
|
|
34
|
+
class: o(["max-w-full flex-wrap rounded-control bg-fill p-0.5", [m && e.rowLayout === "stacked" ? "flex w-full" : "inline-flex", e.disabled ? "opacity-45" : ""]])
|
|
35
|
+
}, [
|
|
36
|
+
(l(!0), a(V, null, k(e.options, (t) => (l(), a("button", {
|
|
37
|
+
key: t.value,
|
|
38
|
+
type: "button",
|
|
39
|
+
disabled: e.disabled || !s(c) || t.disabled,
|
|
40
|
+
"aria-pressed": t.value === e.modelValue,
|
|
41
|
+
class: o(["relative min-h-7 min-w-fit flex-1 whitespace-nowrap rounded-control px-3.5 py-1 text-sm transition-colors duration-motion-fast ease-motion-standard focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", t.value === e.modelValue ? "bg-segment-selected font-semibold text-content-strong shadow-sm" : "cursor-pointer font-medium text-content hover:text-content-strong"]),
|
|
42
|
+
onClick: ($) => u("update:modelValue", t.value)
|
|
43
|
+
}, [
|
|
44
|
+
h(r(t.label) + " ", 1),
|
|
45
|
+
t.count !== void 0 ? (l(), a("span", {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: o(["ml-1.5 rounded-full px-1.5 text-caption font-semibold tabular-nums", t.value === e.modelValue ? "bg-tint-soft text-content-link" : "bg-fill-strong text-content-muted"])
|
|
48
|
+
}, r(t.count), 3)) : B("", !0)
|
|
49
|
+
], 10, R))), 128))
|
|
50
|
+
], 10, P)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 16, ["value", "row-layout"]));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
G as _
|
|
58
|
+
};
|