@wssto2/vue-core 0.1.0 → 0.3.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 +53 -9
- package/dist/AccessGate.vue_vue_type_script_setup_true_lang-DKX3PH2n.js +22 -0
- package/dist/AccountMenuItem.vue_vue_type_script_setup_true_lang-DIGqTLwd.js +76 -0
- package/dist/ActionRow.vue_vue_type_script_setup_true_lang-B7Lpfkf6.js +45 -0
- package/dist/Activity-DviO0VQ8.js +156 -0
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CKghARkW.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js} +48 -47
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-BZb4qKXo.js → AlertDialog.vue_vue_type_script_setup_true_lang-CJsMUIUg.js} +2 -2
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-B82bl36A.js → AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js} +4 -4
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js +51 -0
- package/dist/{Banner.vue_vue_type_script_setup_true_lang-n_wGPIIu.js → Banner.vue_vue_type_script_setup_true_lang-Cib_YYpr.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-CYil8h9z.js +182 -0
- package/dist/Changes-DlT5mN9G.js +129 -0
- package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-CXILftEc.js +1481 -0
- package/dist/CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js +299 -0
- package/dist/DataTable.vue_vue_type_script_setup_true_lang-DSYgS9lC.js +52 -0
- package/dist/DateField.vue_vue_type_script_setup_true_lang-DMVjNsaM.js +1099 -0
- package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-Bx5O1RZJ.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-Cb3xJI1x.js} +1 -1
- package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-BeGpHMUP.js → EmptyState.vue_vue_type_script_setup_true_lang-C2ZYIT9F.js} +1 -1
- package/dist/FormErrors.vue_vue_type_script_setup_true_lang-DVgNBQ8p.js +276 -0
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js +136 -0
- package/dist/FormView.vue_vue_type_script_setup_true_lang-Bz2m3AtF.js +38 -0
- package/dist/General-BD-Hcz0a.js +145 -0
- package/dist/{Icon.vue_vue_type_script_lang-DtC4_mkz.js → Icon.vue_vue_type_script_lang-VvcV2Bzo.js} +46 -33
- package/dist/{IconTile.vue_vue_type_script_setup_true_lang-Csfv6Sel.js → IconTile.vue_vue_type_script_setup_true_lang-D7QgnUyN.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-DH6EB8br.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-C2udmeEA.js} +2 -2
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-D44EHXQZ.js → Menu.vue_vue_type_script_setup_true_lang-BNAjx9tj.js} +61 -57
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-DYQgaUtj.js → Modal.vue_vue_type_script_setup_true_lang-D7SwVPpL.js} +139 -129
- package/dist/NewRolePage-Dla4YnMs.js +42 -0
- package/dist/NoAccess.vue_vue_type_script_setup_true_lang-8m9cNptR.js +31 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-CYRg7Kfg.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-Cfr5xsJx.js +47 -0
- package/dist/{Panel.vue_vue_type_script_setup_true_lang-BQmv3cLb.js → Panel.vue_vue_type_script_setup_true_lang-BCRxRK4D.js} +1 -1
- package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-DDVQXJRB.js → PhotoViewer.vue_vue_type_script_setup_true_lang-B3Q4dhqJ.js} +2 -2
- package/dist/Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js +125 -0
- package/dist/ProfilePage-OJMQ8cr8.js +691 -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-DKsaKlAq.js +64 -0
- package/dist/ResourcePage.vue_vue_type_script_setup_true_lang-CJcKa9SW.js +173 -0
- package/dist/RoleEditor.vue_vue_type_script_setup_true_lang-DuEPOmjI.js +299 -0
- package/dist/RolePage-bZzv_E4l.js +315 -0
- package/dist/RolesPage-BniZv0nB.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-BKP_bge8.js +148 -0
- package/dist/SectionNavigator.vue_vue_type_script_setup_true_lang-BgGEGxSI.js +314 -0
- package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BZ9UdgA1.js +58 -0
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-BiGaEKBQ.js +422 -0
- package/dist/SessionList.vue_vue_type_script_setup_true_lang-DUQpr7gb.js +111 -0
- package/dist/Sessions-Co5-xdeb.js +96 -0
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-bHYzx7-J.js +142 -0
- package/dist/SignIn-BWwFbxki.js +140 -0
- package/dist/SignInPage-FnLtoi2q.js +60 -0
- package/dist/SignInTable.vue_vue_type_script_setup_true_lang-Dnx3T_42.js +79 -0
- package/dist/SignIns-3UcI64_h.js +66 -0
- package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-4I8m27ol.js +93 -0
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-BeGaydRr.js +155 -0
- package/dist/TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js +269 -0
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CU3KTKIJ.js +127 -0
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CSY_mMm1.js → Timestamp.vue_vue_type_script_setup_true_lang-1RJGKxbD.js} +1 -1
- package/dist/{Tooltip.vue_vue_type_script_setup_true_lang-BJWPVyfT.js → Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js} +1 -1
- package/dist/UserRecord-Ci8HfwbX.js +267 -0
- package/dist/UsersList-vEJ-cgkT.js +155 -0
- package/dist/ViewTabs.vue_vue_type_script_setup_true_lang-ByqTU2JT.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/application.d.ts +5 -0
- package/dist/app/contributions.d.ts +1 -1
- package/dist/app/environment.d.ts +2 -0
- package/dist/app/feature.d.ts +8 -0
- package/dist/app/index.js +260 -294
- package/dist/bottomDock-BZEiOPYZ.js +12 -0
- package/dist/button/Button.vue.d.ts +3 -3
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +5 -3
- package/dist/button/shortcut.d.ts +28 -2
- 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 +19 -138
- package/dist/client/route.d.ts +59 -0
- package/dist/client-Bw0aM5Gu.js +147 -0
- package/dist/closeOverlays-CjVsIrpL.js +8 -0
- package/dist/collection/CollectionPage.vue.d.ts +1 -0
- package/dist/collection/CollectionRows.vue.d.ts +59 -0
- package/dist/collection/CollectionTable.vue.d.ts +1 -1
- package/dist/collection/DataTable.vue.d.ts +47 -0
- package/dist/collection/RowActions.vue.d.ts +19 -0
- package/dist/collection/columns.d.ts +2 -0
- package/dist/collection/http.d.ts +4 -2
- package/dist/collection/index.d.ts +4 -2
- package/dist/collection/index.js +87 -2299
- package/dist/collection/rowLayout.d.ts +10 -0
- package/dist/collection/slots.d.ts +6 -3
- package/dist/content/index.js +37 -66
- package/dist/contributions-CDDg3fKp.js +26 -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-Ctga6GcS.js +41 -0
- package/dist/dialogStack-DZZg55w0.js +31 -0
- 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 +13 -2
- 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/MultiSelectField.vue.d.ts +4 -1
- package/dist/form/NumberCell.vue.d.ts +1 -1
- package/dist/form/NumberField.vue.d.ts +8 -2
- package/dist/form/OptionList.vue.d.ts +6 -2
- package/dist/form/OtpInput.vue.d.ts +2 -2
- package/dist/form/PhotoField.vue.d.ts +1 -1
- package/dist/form/SelectField.vue.d.ts +4 -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.d.ts +2 -0
- package/dist/form/index.js +1273 -3509
- package/dist/form/suggestions.d.ts +11 -0
- package/dist/form/useOptions.d.ts +60 -0
- package/dist/guards-Cd1V28oG.js +51 -0
- package/dist/http-DGGSKWvU.js +193 -0
- package/dist/i18n/describeError.d.ts +31 -0
- package/dist/i18n/index.d.ts +307 -0
- package/dist/i18n/index.js +54 -52
- package/dist/icon/core.d.ts +13 -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/{phone/CountryFlag.vue.d.ts → identity/shared/SignInTable.vue.d.ts} +5 -4
- 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-B2dbYZR9.js +706 -0
- package/dist/index-BAcl44SC.js +459 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/CountryFlag.vue.d.ts +10 -0
- 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 +4 -0
- package/dist/modal/ShortcutHelp.vue.d.ts +2 -0
- package/dist/modal/index.d.ts +2 -0
- package/dist/modal/index.js +64 -6
- package/dist/modal/placement.d.ts +22 -0
- 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/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/{navigation-B33ikiCS.js → navigation-BPWa63ge.js} +21 -20
- package/dist/neighbors-D0WRBxXI.js +86 -0
- package/dist/{options-CjSz2dQK.js → options-BXkMR63B.js} +48 -49
- package/dist/overlay/AlertDialog.vue.d.ts +3 -3
- package/dist/overlay/Popover.vue.d.ts +4 -1
- package/dist/overlay/closeOverlays.d.ts +7 -0
- package/dist/overlay/dialogStack.d.ts +9 -0
- package/dist/overlay/index.d.ts +1 -1
- package/dist/overlay/index.js +20 -18
- 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 +247 -540
- package/dist/platform/AccessGate.vue.d.ts +50 -0
- package/dist/platform/index.d.ts +4 -2
- package/dist/platform/index.js +38 -35
- package/dist/platform/platform.d.ts +2 -2
- package/dist/platform/session.d.ts +22 -1
- package/dist/platform-hunMqFdB.js +255 -0
- package/dist/resource/index.js +8 -248
- 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-BI7a3Kom.js +603 -0
- package/dist/sectionIndex-BS0ic5W7.js +86 -0
- package/dist/{sections-LtxV5Mtk.js → sections-BEqW1dOc.js} +1 -1
- package/dist/shell/AccountMenuItem.vue.d.ts +4 -1
- package/dist/shell/BackofficeShell.vue.d.ts +2 -2
- 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 +476 -532
- package/dist/state/Badge.vue.d.ts +17 -10
- package/dist/state/ProgressTrack.vue.d.ts +1 -1
- package/dist/state/hue.d.ts +8 -0
- package/dist/state/index.d.ts +2 -0
- package/dist/state/index.js +34 -31
- package/dist/state/useLoad.d.ts +41 -0
- package/dist/status-C9aXR-Jb.js +33 -0
- package/dist/styles.css +1 -1
- package/dist/suggestions-BJAqOj4c.js +138 -0
- package/dist/testing/app.d.ts +61 -0
- package/dist/testing/async.d.ts +12 -0
- package/dist/testing/collection.d.ts +18 -0
- package/dist/testing/format.d.ts +9 -0
- package/dist/testing/i18n.d.ts +16 -0
- package/dist/testing/index.d.ts +14 -0
- package/dist/testing/index.js +178 -0
- package/dist/testing/media.d.ts +23 -0
- package/dist/testing/platform.d.ts +40 -0
- package/dist/testing/transport.d.ts +40 -0
- package/dist/toast-D9Z5To38.js +13 -0
- package/dist/useCommand-BgRwnYlV.js +135 -0
- package/dist/{useDialog-wmyNx2j_.js → useDialog-CXR3hN0G.js} +1 -1
- package/dist/useLoad-CYRVx6HW.js +39 -0
- package/dist/useResourceForm-Bgc9jMcu.js +52 -0
- package/dist/useSaveChrome-chi6D3HY.js +25 -0
- package/dist/useSheetDrag-OsD6Eb6I.js +72 -0
- package/package.json +26 -5
- package/src/styles/theme.css +60 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DKc6ugmr.js +0 -31
- package/dist/Button.vue_vue_type_script_setup_true_lang-3f0emVNU.js +0 -141
- package/dist/NoAccess.vue_vue_type_script_setup_true_lang-OKW8pKYU.js +0 -78
- package/dist/SectionList.vue_vue_type_script_setup_true_lang-DGcKX_OJ.js +0 -230
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-SyFWE33A.js +0 -422
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-BLBD5ps8.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/dialogStack-DiTG1rZc.js +0 -26
- package/dist/environment-D3nozt9a.js +0 -75
- package/dist/feature-DyDtyMLU.js +0 -47
- package/dist/platform-jqlKVJ2e.js +0 -244
- package/dist/toast-BTeX0r66.js +0 -129
- /package/dist/{phone → internal}/flagLoaders.d.ts +0 -0
|
@@ -1,422 +0,0 @@
|
|
|
1
|
-
import { defineComponent as L, useModel as P, useTemplateRef as O, computed as D, ref as M, watch as E, openBlock as r, createBlock as B, mergeProps as N, unref as u, withCtx as V, createElementVNode as c, normalizeClass as b, createElementBlock as p, toDisplayString as F, createCommentVNode as _, mergeModels as T, mergeDefaults as W, useId as Y, createVNode as S, withDirectives as Z, vModelText as ee, Fragment as R, renderList as U, createSlots as te, createTextVNode as oe } from "vue";
|
|
2
|
-
import { b as le } from "./controlSurface-t7OEFESJ.js";
|
|
3
|
-
import { u as ae } from "./format-B8mJm946.js";
|
|
4
|
-
import { u as G, a as H, _ as j, f as K, b as J, g as ne, m as se } from "./options-CjSz2dQK.js";
|
|
5
|
-
import { useI18n as Q } from "vue-i18n";
|
|
6
|
-
import { _ as re } from "./Button.vue_vue_type_script_setup_true_lang-3f0emVNU.js";
|
|
7
|
-
import { _ as z } from "./Icon.vue_vue_type_script_lang-DtC4_mkz.js";
|
|
8
|
-
import { u as ie } from "./mediaQuery-CygcXmFW.js";
|
|
9
|
-
import { _ as ue } from "./Sheet.vue_vue_type_script_setup_true_lang-BLBD5ps8.js";
|
|
10
|
-
import { _ as ce } from "./toast-BTeX0r66.js";
|
|
11
|
-
function de(v) {
|
|
12
|
-
const o = v.number(1234.5, { minimumFractionDigits: 1, maximumFractionDigits: 1, useGrouping: !0 }), e = /^\d(\D)\d/.exec(o)?.[1] ?? "";
|
|
13
|
-
return { decimal: o.charAt(o.length - 2) || ".", group: e === "." || e === "," ? e : "" };
|
|
14
|
-
}
|
|
15
|
-
function pe(v, o) {
|
|
16
|
-
const e = v.trim().startsWith("-"), a = v.replace(/[^\d.,]/g, "");
|
|
17
|
-
if (a === "") return e ? void 0 : null;
|
|
18
|
-
const h = [...a].filter((n) => n === "." || n === ",");
|
|
19
|
-
let m = a, w = "";
|
|
20
|
-
if (o.decimals > 0 && h.length > 0) {
|
|
21
|
-
const n = Math.max(a.lastIndexOf("."), a.lastIndexOf(",")), y = a.charAt(n), $ = a.slice(n + 1), i = a.includes(".") && a.includes(","), l = h.filter((s) => s === y).length > 1, k = !i && y === o.group && $.length === 3;
|
|
22
|
-
(i || !l && !k) && (m = a.slice(0, n), w = $);
|
|
23
|
-
}
|
|
24
|
-
const g = (n) => n.replace(/\D/g, ""), x = +`${g(m) || "0"}.${g(w) || "0"}`;
|
|
25
|
-
if (!Number.isFinite(x)) return;
|
|
26
|
-
const d = Number(x.toFixed(o.decimals));
|
|
27
|
-
return e ? -d || 0 : d;
|
|
28
|
-
}
|
|
29
|
-
const me = {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "shrink-0 text-footnote text-content-muted"
|
|
32
|
-
}, fe = ["id", "value", "name", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], be = {
|
|
33
|
-
key: 1,
|
|
34
|
-
class: "shrink-0 text-footnote text-content-muted"
|
|
35
|
-
}, Te = /* @__PURE__ */ L({
|
|
36
|
-
__name: "NumberField",
|
|
37
|
-
props: /* @__PURE__ */ T(/* @__PURE__ */ W({
|
|
38
|
-
label: {},
|
|
39
|
-
hint: {},
|
|
40
|
-
error: {},
|
|
41
|
-
required: { type: Boolean },
|
|
42
|
-
editable: { type: Boolean },
|
|
43
|
-
disabled: { type: Boolean },
|
|
44
|
-
lockedReason: {},
|
|
45
|
-
presentation: {},
|
|
46
|
-
name: {},
|
|
47
|
-
decimals: {},
|
|
48
|
-
negative: { type: Boolean },
|
|
49
|
-
placeholder: {},
|
|
50
|
-
prefix: {},
|
|
51
|
-
suffix: {},
|
|
52
|
-
width: {}
|
|
53
|
-
}, { ...J, decimals: 0, negative: !1, placeholder: void 0, prefix: void 0, suffix: void 0, width: "sm" }), {
|
|
54
|
-
modelValue: { default: null },
|
|
55
|
-
modelModifiers: {}
|
|
56
|
-
}),
|
|
57
|
-
emits: ["update:modelValue"],
|
|
58
|
-
setup(v, { expose: o }) {
|
|
59
|
-
const e = v, a = P(v, "modelValue"), h = ae(), m = O("input"), w = !!G(), g = H("text", () => e.error ? "error" : e.disabled ? "locked" : "rest"), x = D(() => w ? le(e.width) : "w-full"), d = D(() => de(h)), n = (t) => t === null ? "" : h.number(t, { minimumFractionDigits: e.decimals, maximumFractionDigits: e.decimals }), y = (t) => t === null ? "" : String(t).replace(".", d.value.decimal), $ = (t) => pe(t, { decimals: e.decimals, group: d.value.group }), i = M(!1), l = M(n(a.value));
|
|
60
|
-
E(a, (t) => {
|
|
61
|
-
i.value ? $(l.value) !== t && (l.value = y(t)) : l.value = n(t);
|
|
62
|
-
}), E(() => [e.decimals, d.value.decimal], () => {
|
|
63
|
-
i.value || (l.value = n(a.value));
|
|
64
|
-
});
|
|
65
|
-
function k(t) {
|
|
66
|
-
const q = t.target;
|
|
67
|
-
let C = q.value.replace(/[^\d.,\-\s]/g, "");
|
|
68
|
-
e.negative ? C = C.replace(/(?!^)-/g, "") : C = C.replace(/-/g, ""), C !== q.value && (q.value = C), l.value = C;
|
|
69
|
-
const A = $(C);
|
|
70
|
-
A !== void 0 ? a.value = A : a.value = null;
|
|
71
|
-
}
|
|
72
|
-
function s() {
|
|
73
|
-
i.value = !0, l.value = y(a.value);
|
|
74
|
-
}
|
|
75
|
-
function f() {
|
|
76
|
-
i.value = !1, l.value = n(a.value);
|
|
77
|
-
}
|
|
78
|
-
return o({ focus: () => m.value?.focus() }), (t, q) => (r(), B(j, N(u(K)(e), {
|
|
79
|
-
value: a.value === null ? null : n(a.value),
|
|
80
|
-
prefix: e.prefix,
|
|
81
|
-
suffix: e.suffix,
|
|
82
|
-
"value-style": "numeric"
|
|
83
|
-
}), {
|
|
84
|
-
default: V(({ id: C, describedby: A, invalid: X }) => [
|
|
85
|
-
c("div", {
|
|
86
|
-
class: b(["flex items-center gap-1.5", [u(g), x.value]])
|
|
87
|
-
}, [
|
|
88
|
-
e.prefix ? (r(), p("span", me, F(e.prefix), 1)) : _("", !0),
|
|
89
|
-
c("input", {
|
|
90
|
-
id: C,
|
|
91
|
-
ref_key: "input",
|
|
92
|
-
ref: m,
|
|
93
|
-
value: l.value,
|
|
94
|
-
type: "text",
|
|
95
|
-
inputmode: "decimal",
|
|
96
|
-
autocomplete: "off",
|
|
97
|
-
name: e.name,
|
|
98
|
-
placeholder: e.placeholder,
|
|
99
|
-
disabled: e.disabled,
|
|
100
|
-
required: e.required,
|
|
101
|
-
"aria-required": e.required || void 0,
|
|
102
|
-
"aria-invalid": X || void 0,
|
|
103
|
-
"aria-describedby": A,
|
|
104
|
-
class: "block w-full min-w-0 border-0 bg-transparent px-0 py-1 text-right text-body tabular-nums text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
|
|
105
|
-
onInput: k,
|
|
106
|
-
onFocus: s,
|
|
107
|
-
onBlur: f
|
|
108
|
-
}, null, 40, fe),
|
|
109
|
-
e.suffix ? (r(), p("span", be, F(e.suffix), 1)) : _("", !0)
|
|
110
|
-
], 2)
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
}, 16, ["value", "prefix", "suffix"]));
|
|
114
|
-
}
|
|
115
|
-
}), ve = { class: "flex min-h-9 items-center gap-1.5 rounded-control bg-fill px-2.5 text-content-muted focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-border-focus" }, he = ["aria-label", "placeholder"], ge = ["aria-multiselectable"], xe = {
|
|
116
|
-
key: 0,
|
|
117
|
-
role: "presentation"
|
|
118
|
-
}, ye = ["aria-selected"], ke = { class: "flex-1 py-2" }, _e = ["id"], we = ["aria-labelledby"], $e = ["aria-selected"], Ce = ["disabled", "onClick"], Fe = {
|
|
119
|
-
key: 0,
|
|
120
|
-
"aria-hidden": "true",
|
|
121
|
-
class: "flex shrink-0 items-center"
|
|
122
|
-
}, qe = { class: "min-w-0 flex-1 text-content-strong" }, De = {
|
|
123
|
-
key: 0,
|
|
124
|
-
class: "shrink-0 text-footnote text-content-muted"
|
|
125
|
-
}, Ve = {
|
|
126
|
-
key: 1,
|
|
127
|
-
class: "px-4 py-6 text-center text-subheadline text-content-muted"
|
|
128
|
-
}, I = /* @__PURE__ */ L({
|
|
129
|
-
__name: "OptionList",
|
|
130
|
-
props: {
|
|
131
|
-
options: {},
|
|
132
|
-
modelValue: { default: null },
|
|
133
|
-
multiple: { type: Boolean, default: !1 },
|
|
134
|
-
searchFrom: { default: 9 },
|
|
135
|
-
noneLabel: { default: void 0 },
|
|
136
|
-
presentation: { default: "grouped" }
|
|
137
|
-
},
|
|
138
|
-
emits: ["select"],
|
|
139
|
-
setup(v, { emit: o }) {
|
|
140
|
-
const e = v, a = o, { t: h } = Q(), m = M(""), w = Y(), g = O("root"), x = D(() => e.options.length >= e.searchFrom), d = D(() => ne(se(e.options, m.value))), n = (l) => e.multiple ? Array.isArray(e.modelValue) && e.modelValue.includes(l.value) : e.modelValue === l.value, y = D(() => e.multiple ? !1 : e.modelValue === null);
|
|
141
|
-
function $(l) {
|
|
142
|
-
if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(l.key)) return;
|
|
143
|
-
const s = [...g.value?.querySelectorAll("[data-option]:not([disabled])") ?? []];
|
|
144
|
-
if (s.length === 0) return;
|
|
145
|
-
const f = s.indexOf(document.activeElement), t = l.key === "Home" ? 0 : l.key === "End" ? s.length - 1 : l.key === "ArrowDown" ? Math.min(f + 1, s.length - 1) : Math.max(f - 1, 0);
|
|
146
|
-
l.key === "ArrowUp" && f <= 0 ? g.value?.querySelector("[data-option-search]")?.focus() : s[f === -1 && l.key === "ArrowDown" ? 0 : t]?.focus(), l.preventDefault();
|
|
147
|
-
}
|
|
148
|
-
const i = D(() => e.presentation === "grouped");
|
|
149
|
-
return (l, k) => (r(), p("div", {
|
|
150
|
-
ref_key: "root",
|
|
151
|
-
ref: g,
|
|
152
|
-
"data-test": "option-list",
|
|
153
|
-
onKeydown: $
|
|
154
|
-
}, [
|
|
155
|
-
x.value ? (r(), p("div", {
|
|
156
|
-
key: 0,
|
|
157
|
-
class: b(["sticky top-0 z-10 pb-2", i.value ? "bg-surface-page pt-1" : "bg-surface-cell"])
|
|
158
|
-
}, [
|
|
159
|
-
c("label", ve, [
|
|
160
|
-
S(u(z), {
|
|
161
|
-
name: "search",
|
|
162
|
-
size: 16,
|
|
163
|
-
class: "shrink-0"
|
|
164
|
-
}),
|
|
165
|
-
Z(c("input", {
|
|
166
|
-
"onUpdate:modelValue": k[0] || (k[0] = (s) => m.value = s),
|
|
167
|
-
"data-option-search": "",
|
|
168
|
-
type: "search",
|
|
169
|
-
enterkeyhint: "search",
|
|
170
|
-
autocomplete: "off",
|
|
171
|
-
autocapitalize: "off",
|
|
172
|
-
spellcheck: "false",
|
|
173
|
-
"aria-label": u(h)("core.form.select.search"),
|
|
174
|
-
placeholder: u(h)("core.form.select.search"),
|
|
175
|
-
class: "min-w-0 flex-1 border-0 bg-transparent p-0 text-body text-content-strong outline-none placeholder:text-content-disabled focus:ring-0"
|
|
176
|
-
}, null, 8, he), [
|
|
177
|
-
[ee, m.value]
|
|
178
|
-
])
|
|
179
|
-
])
|
|
180
|
-
], 2)) : _("", !0),
|
|
181
|
-
c("ul", {
|
|
182
|
-
class: b(["flex flex-col", i.value ? "gap-group-gap" : "gap-2"]),
|
|
183
|
-
role: "listbox",
|
|
184
|
-
"aria-multiselectable": e.multiple || void 0
|
|
185
|
-
}, [
|
|
186
|
-
e.noneLabel && m.value === "" ? (r(), p("li", xe, [
|
|
187
|
-
c("ul", {
|
|
188
|
-
role: "group",
|
|
189
|
-
class: b(i.value ? "rounded-group bg-surface-cell shadow-group" : "")
|
|
190
|
-
}, [
|
|
191
|
-
c("li", {
|
|
192
|
-
role: "option",
|
|
193
|
-
"aria-selected": y.value
|
|
194
|
-
}, [
|
|
195
|
-
c("button", {
|
|
196
|
-
type: "button",
|
|
197
|
-
"data-option": "",
|
|
198
|
-
class: b(["flex min-h-row w-full cursor-pointer items-center gap-3 px-row-inset text-left text-body hover:bg-fill focus-visible:bg-fill focus-visible:outline-none active:bg-fill", [y.value ? "text-content-strong" : "text-content-muted", i.value ? "rounded-group" : "rounded-control"]]),
|
|
199
|
-
onClick: k[1] || (k[1] = (s) => a("select", null))
|
|
200
|
-
}, [
|
|
201
|
-
c("span", ke, F(e.noneLabel), 1),
|
|
202
|
-
y.value ? (r(), B(u(z), {
|
|
203
|
-
key: 0,
|
|
204
|
-
name: "checkCustom",
|
|
205
|
-
size: 18,
|
|
206
|
-
class: "shrink-0 text-content-link"
|
|
207
|
-
})) : _("", !0)
|
|
208
|
-
], 2)
|
|
209
|
-
], 8, ye)
|
|
210
|
-
], 2)
|
|
211
|
-
])) : _("", !0),
|
|
212
|
-
(r(!0), p(R, null, U(d.value, (s, f) => (r(), p("li", {
|
|
213
|
-
key: s.title ?? f,
|
|
214
|
-
role: "presentation"
|
|
215
|
-
}, [
|
|
216
|
-
s.title ? (r(), p("p", {
|
|
217
|
-
key: 0,
|
|
218
|
-
id: `${u(w)}-${f}`,
|
|
219
|
-
class: "px-row-inset pb-1.5 text-footnote uppercase tracking-wide text-content-muted"
|
|
220
|
-
}, F(s.title), 9, _e)) : _("", !0),
|
|
221
|
-
c("ul", {
|
|
222
|
-
role: "group",
|
|
223
|
-
"aria-labelledby": s.title ? `${u(w)}-${f}` : void 0,
|
|
224
|
-
class: b(i.value ? "rounded-group bg-surface-cell shadow-group" : "")
|
|
225
|
-
}, [
|
|
226
|
-
(r(!0), p(R, null, U(s.options, (t) => (r(), p("li", {
|
|
227
|
-
key: String(t.value),
|
|
228
|
-
role: "option",
|
|
229
|
-
"aria-selected": n(t),
|
|
230
|
-
class: "group/option"
|
|
231
|
-
}, [
|
|
232
|
-
c("button", {
|
|
233
|
-
type: "button",
|
|
234
|
-
"data-option": "",
|
|
235
|
-
"data-test": "option",
|
|
236
|
-
disabled: t.disabled,
|
|
237
|
-
class: b(["flex w-full cursor-pointer items-stretch gap-3 pl-row-inset text-left text-body hover:bg-fill focus-visible:bg-fill focus-visible:outline-none active:bg-fill disabled:cursor-not-allowed disabled:opacity-45", i.value ? "group-first/option:rounded-t-group group-last/option:rounded-b-group" : "rounded-control"]),
|
|
238
|
-
onClick: (q) => a("select", t.value)
|
|
239
|
-
}, [
|
|
240
|
-
e.multiple ? (r(), p("span", Fe, [
|
|
241
|
-
c("span", {
|
|
242
|
-
class: b(["flex size-5.5 items-center justify-center rounded-full border", n(t) ? "border-control-on bg-control-on text-white" : "border-border-control"])
|
|
243
|
-
}, [
|
|
244
|
-
n(t) ? (r(), B(u(z), {
|
|
245
|
-
key: 0,
|
|
246
|
-
name: "checkCustom",
|
|
247
|
-
size: 12
|
|
248
|
-
})) : _("", !0)
|
|
249
|
-
], 2)
|
|
250
|
-
])) : _("", !0),
|
|
251
|
-
c("span", {
|
|
252
|
-
class: b(["flex min-h-row min-w-0 flex-1 items-center gap-3 py-2 pr-row-inset", i.value ? "border-t border-border-separator group-first/option:border-t-0" : ""])
|
|
253
|
-
}, [
|
|
254
|
-
c("span", qe, F(t.label), 1),
|
|
255
|
-
t.description ? (r(), p("span", De, F(t.description), 1)) : _("", !0),
|
|
256
|
-
!e.multiple && n(t) ? (r(), B(u(z), {
|
|
257
|
-
key: 1,
|
|
258
|
-
name: "checkCustom",
|
|
259
|
-
size: 18,
|
|
260
|
-
class: "shrink-0 text-content-link"
|
|
261
|
-
})) : _("", !0)
|
|
262
|
-
], 2)
|
|
263
|
-
], 10, Ce)
|
|
264
|
-
], 8, $e))), 128))
|
|
265
|
-
], 10, we)
|
|
266
|
-
]))), 128)),
|
|
267
|
-
d.value.length === 0 ? (r(), p("li", Ve, F(u(h)("core.form.select.no_matches")), 1)) : _("", !0)
|
|
268
|
-
], 10, ge)
|
|
269
|
-
], 544));
|
|
270
|
-
}
|
|
271
|
-
}), Be = ["id", "disabled", "aria-expanded", "aria-required", "aria-invalid", "aria-describedby"], Se = ["id", "disabled", "aria-required", "aria-invalid", "aria-describedby", "onClick"], ze = { class: "max-h-72 overflow-y-auto" }, We = /* @__PURE__ */ L({
|
|
272
|
-
__name: "SelectField",
|
|
273
|
-
props: /* @__PURE__ */ T(/* @__PURE__ */ W({
|
|
274
|
-
label: {},
|
|
275
|
-
hint: {},
|
|
276
|
-
error: {},
|
|
277
|
-
required: { type: Boolean },
|
|
278
|
-
editable: { type: Boolean },
|
|
279
|
-
disabled: { type: Boolean },
|
|
280
|
-
lockedReason: {},
|
|
281
|
-
presentation: {},
|
|
282
|
-
name: {},
|
|
283
|
-
options: {},
|
|
284
|
-
placeholder: {},
|
|
285
|
-
clearable: { type: Boolean },
|
|
286
|
-
searchFrom: {}
|
|
287
|
-
}, { ...J, placeholder: void 0, clearable: !1, searchFrom: 9 }), {
|
|
288
|
-
modelValue: { default: null },
|
|
289
|
-
modelModifiers: {}
|
|
290
|
-
}),
|
|
291
|
-
emits: ["update:modelValue"],
|
|
292
|
-
setup(v) {
|
|
293
|
-
const o = v, e = P(v, "modelValue"), { t: a } = Q(), h = ie(), m = !!G(), w = O("sheet"), g = M(!1), x = D(() => o.options.find((i) => i.value === e.value) ?? null), d = D(() => o.placeholder ?? a("core.form.select.choose")), n = H("popup", () => o.error ? "error" : o.disabled ? "locked" : "rest");
|
|
294
|
-
function y(i) {
|
|
295
|
-
e.value = i, w.value?.dismiss();
|
|
296
|
-
}
|
|
297
|
-
const $ = D(() => [
|
|
298
|
-
"flex max-w-full min-w-0 items-center gap-1.5 py-1 pl-2.5 pr-2 text-body focus-visible:outline-none",
|
|
299
|
-
m ? "compact:pl-0 compact:pr-0" : "",
|
|
300
|
-
o.disabled ? "cursor-not-allowed" : "cursor-pointer"
|
|
301
|
-
]);
|
|
302
|
-
return (i, l) => (r(), B(j, N(u(K)(o), {
|
|
303
|
-
value: x.value?.label ?? null
|
|
304
|
-
}), {
|
|
305
|
-
default: V(({ id: k, describedby: s, invalid: f }) => [
|
|
306
|
-
c("div", {
|
|
307
|
-
class: b(["inline-flex max-w-full min-w-0", u(n)])
|
|
308
|
-
}, [
|
|
309
|
-
u(h) ? (r(), p("button", {
|
|
310
|
-
key: 0,
|
|
311
|
-
id: k,
|
|
312
|
-
type: "button",
|
|
313
|
-
disabled: o.disabled,
|
|
314
|
-
"aria-haspopup": "dialog",
|
|
315
|
-
"aria-expanded": g.value,
|
|
316
|
-
"aria-required": o.required || void 0,
|
|
317
|
-
"aria-invalid": f || void 0,
|
|
318
|
-
"aria-describedby": s,
|
|
319
|
-
class: b($.value),
|
|
320
|
-
onClick: l[0] || (l[0] = (t) => w.value?.present())
|
|
321
|
-
}, [
|
|
322
|
-
c("span", {
|
|
323
|
-
class: b(["min-w-0 truncate", x.value ? m ? "text-content-strong compact:text-content-muted" : "text-content-strong" : "text-content-disabled"])
|
|
324
|
-
}, F(x.value?.label ?? d.value), 3),
|
|
325
|
-
S(u(z), {
|
|
326
|
-
name: "expandUpDownLine",
|
|
327
|
-
size: 14,
|
|
328
|
-
class: "shrink-0 text-content-muted"
|
|
329
|
-
})
|
|
330
|
-
], 10, Be)) : (r(), B(ce, {
|
|
331
|
-
key: 1,
|
|
332
|
-
label: o.label ?? d.value,
|
|
333
|
-
width: "md",
|
|
334
|
-
placement: "bottom-start",
|
|
335
|
-
arrow: !1
|
|
336
|
-
}, {
|
|
337
|
-
trigger: V(({ toggle: t, attrs: q }) => [
|
|
338
|
-
c("button", N({
|
|
339
|
-
id: k,
|
|
340
|
-
type: "button"
|
|
341
|
-
}, q, {
|
|
342
|
-
"aria-haspopup": "listbox",
|
|
343
|
-
disabled: o.disabled,
|
|
344
|
-
"aria-required": o.required || void 0,
|
|
345
|
-
"aria-invalid": f || void 0,
|
|
346
|
-
"aria-describedby": s,
|
|
347
|
-
class: $.value,
|
|
348
|
-
onClick: t
|
|
349
|
-
}), [
|
|
350
|
-
c("span", {
|
|
351
|
-
class: b(["min-w-0 truncate", x.value ? "text-content-strong" : "text-content-disabled"])
|
|
352
|
-
}, F(x.value?.label ?? d.value), 3),
|
|
353
|
-
S(u(z), {
|
|
354
|
-
name: "expandUpDownLine",
|
|
355
|
-
size: 14,
|
|
356
|
-
class: "shrink-0 text-content-muted"
|
|
357
|
-
})
|
|
358
|
-
], 16, Se)
|
|
359
|
-
]),
|
|
360
|
-
default: V(({ dismiss: t }) => [
|
|
361
|
-
c("div", ze, [
|
|
362
|
-
S(I, {
|
|
363
|
-
options: o.options,
|
|
364
|
-
"model-value": e.value,
|
|
365
|
-
"search-from": o.searchFrom,
|
|
366
|
-
"none-label": o.clearable ? u(a)("core.form.select.clear") : void 0,
|
|
367
|
-
presentation: "plain",
|
|
368
|
-
onSelect: (q) => {
|
|
369
|
-
e.value = q, t();
|
|
370
|
-
}
|
|
371
|
-
}, null, 8, ["options", "model-value", "search-from", "none-label", "onSelect"])
|
|
372
|
-
])
|
|
373
|
-
]),
|
|
374
|
-
_: 2
|
|
375
|
-
}, 1032, ["label"]))
|
|
376
|
-
], 2),
|
|
377
|
-
u(h) ? (r(), B(ue, {
|
|
378
|
-
key: 0,
|
|
379
|
-
ref_key: "sheet",
|
|
380
|
-
ref: w,
|
|
381
|
-
title: o.label ?? d.value,
|
|
382
|
-
grouped: "",
|
|
383
|
-
onPresented: l[2] || (l[2] = (t) => g.value = !0),
|
|
384
|
-
onDismissed: l[3] || (l[3] = (t) => g.value = !1)
|
|
385
|
-
}, te({
|
|
386
|
-
default: V(() => [
|
|
387
|
-
S(I, {
|
|
388
|
-
options: o.options,
|
|
389
|
-
"model-value": e.value,
|
|
390
|
-
"search-from": o.searchFrom,
|
|
391
|
-
"none-label": o.clearable ? u(a)("core.form.select.clear") : void 0,
|
|
392
|
-
onSelect: y
|
|
393
|
-
}, null, 8, ["options", "model-value", "search-from", "none-label"])
|
|
394
|
-
]),
|
|
395
|
-
_: 2
|
|
396
|
-
}, [
|
|
397
|
-
o.clearable && e.value !== null ? {
|
|
398
|
-
name: "footer",
|
|
399
|
-
fn: V(() => [
|
|
400
|
-
S(re, {
|
|
401
|
-
prominence: "plain",
|
|
402
|
-
onClick: l[1] || (l[1] = (t) => y(null))
|
|
403
|
-
}, {
|
|
404
|
-
default: V(() => [
|
|
405
|
-
oe(F(u(a)("core.form.select.clear")), 1)
|
|
406
|
-
]),
|
|
407
|
-
_: 1
|
|
408
|
-
})
|
|
409
|
-
]),
|
|
410
|
-
key: "0"
|
|
411
|
-
} : void 0
|
|
412
|
-
]), 1032, ["title"])) : _("", !0)
|
|
413
|
-
]),
|
|
414
|
-
_: 1
|
|
415
|
-
}, 16, ["value"]));
|
|
416
|
-
}
|
|
417
|
-
});
|
|
418
|
-
export {
|
|
419
|
-
Te as _,
|
|
420
|
-
We as a,
|
|
421
|
-
I as b
|
|
422
|
-
};
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { ref as _, computed as P, defineComponent as V, useId as Y, watch as j, openBlock as m, createBlock as L, Teleport as O, createElementBlock as v, unref as t, createVNode as C, Transition as N, withCtx as $, normalizeStyle as z, createCommentVNode as h, normalizeClass as A, createElementVNode as k, mergeProps as B, renderSlot as D, toDisplayString as F } from "vue";
|
|
2
|
-
import { useI18n as W } from "vue-i18n";
|
|
3
|
-
import { _ as K } from "./Icon.vue_vue_type_script_lang-DtC4_mkz.js";
|
|
4
|
-
import { a as Q } from "./mediaQuery-CygcXmFW.js";
|
|
5
|
-
import { u as q } from "./useDialog-wmyNx2j_.js";
|
|
6
|
-
const G = 120, J = 0.5, R = 40;
|
|
7
|
-
function U({ enabled: g, panel: w, body: I, onDismiss: p }) {
|
|
8
|
-
const o = _(0), l = _(!1);
|
|
9
|
-
let n = 0, u = 0, b = 0, c = 0, y = !1, r = !1;
|
|
10
|
-
function d(e, a) {
|
|
11
|
-
g.value && (n = u = e, b = performance.now(), c = 0, y = a, r = !0, l.value = !a);
|
|
12
|
-
}
|
|
13
|
-
function f(e) {
|
|
14
|
-
if (!r) return !1;
|
|
15
|
-
const a = e - n;
|
|
16
|
-
if (!l.value) {
|
|
17
|
-
const M = (I.value?.scrollTop ?? 0) <= 0;
|
|
18
|
-
if (!y || !M || a <= 0)
|
|
19
|
-
return (a < 0 || !M) && (r = !1), !1;
|
|
20
|
-
l.value = !0, n = e;
|
|
21
|
-
}
|
|
22
|
-
const E = performance.now();
|
|
23
|
-
return c = (e - u) / Math.max(E - b, 1), u = e, b = E, o.value = Math.max(0, e - n), !0;
|
|
24
|
-
}
|
|
25
|
-
async function s() {
|
|
26
|
-
if (!r || (r = !1, !l.value)) return;
|
|
27
|
-
l.value = !1;
|
|
28
|
-
const e = c > J && o.value > R;
|
|
29
|
-
if (o.value > G || e) {
|
|
30
|
-
const a = o.value;
|
|
31
|
-
if (await p()) {
|
|
32
|
-
o.value = Math.max(a, w.value?.offsetHeight ?? window.innerHeight);
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
o.value = 0;
|
|
37
|
-
}
|
|
38
|
-
function T() {
|
|
39
|
-
r = !1, l.value = !1, o.value = 0;
|
|
40
|
-
}
|
|
41
|
-
const x = {
|
|
42
|
-
onPointerdown(e) {
|
|
43
|
-
e.button === 0 && (e.target?.closest('button, a, input, [role="button"]') || (e.currentTarget.setPointerCapture(e.pointerId), d(e.clientY, !1)));
|
|
44
|
-
},
|
|
45
|
-
onPointermove(e) {
|
|
46
|
-
if (e.buttons === 0) {
|
|
47
|
-
s();
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
f(e.clientY);
|
|
51
|
-
},
|
|
52
|
-
onPointerup: () => void s(),
|
|
53
|
-
onPointercancel: () => void s()
|
|
54
|
-
}, i = {
|
|
55
|
-
onTouchstartPassive(e) {
|
|
56
|
-
const a = e.touches[0];
|
|
57
|
-
a && e.touches.length === 1 && d(a.clientY, !0);
|
|
58
|
-
},
|
|
59
|
-
onTouchmove(e) {
|
|
60
|
-
const a = e.touches[0];
|
|
61
|
-
a && f(a.clientY) && e.cancelable && e.preventDefault();
|
|
62
|
-
},
|
|
63
|
-
onTouchend: () => void s(),
|
|
64
|
-
onTouchcancel: () => void s()
|
|
65
|
-
}, S = P(
|
|
66
|
-
() => !g.value || o.value === 0 ? void 0 : { transform: `translateY(${o.value}px)` }
|
|
67
|
-
), H = P(() => {
|
|
68
|
-
if (!g.value || o.value === 0) return;
|
|
69
|
-
const e = w.value?.offsetHeight || window.innerHeight;
|
|
70
|
-
return { opacity: String(Math.max(0, 1 - o.value / e)) };
|
|
71
|
-
});
|
|
72
|
-
return { dragOffset: o, dragging: l, handleEvents: x, bodyEvents: i, panelStyle: S, backdropStyle: H, reset: T };
|
|
73
|
-
}
|
|
74
|
-
const X = ["aria-labelledby"], Z = {
|
|
75
|
-
key: 0,
|
|
76
|
-
class: "flex justify-center pt-1.5",
|
|
77
|
-
"aria-hidden": "true"
|
|
78
|
-
}, ee = ["id"], te = ["aria-label"], oe = {
|
|
79
|
-
key: 0,
|
|
80
|
-
class: "shrink-0 border-t border-border-separator bg-surface-cell px-4 pt-3 pb-[max(0.75rem,var(--app-safe-bottom))]"
|
|
81
|
-
}, ie = /* @__PURE__ */ V({
|
|
82
|
-
__name: "Sheet",
|
|
83
|
-
props: {
|
|
84
|
-
title: { default: void 0 },
|
|
85
|
-
grouped: { type: Boolean, default: !1 }
|
|
86
|
-
},
|
|
87
|
-
emits: ["presented", "dismissed"],
|
|
88
|
-
setup(g, { expose: w, emit: I }) {
|
|
89
|
-
const p = g, o = I, { t: l } = W(), n = Q("(max-width: 1023px), (pointer: coarse)"), u = _(!1), b = () => {
|
|
90
|
-
f.value || (u.value = !1);
|
|
91
|
-
}, c = _(null), y = _(null), r = Y(), d = q(c, {
|
|
92
|
-
initialFocus: "panel",
|
|
93
|
-
onPresented: () => o("presented"),
|
|
94
|
-
onDismissed: () => o("dismissed")
|
|
95
|
-
}), { isOpen: f } = d;
|
|
96
|
-
j(f, (i) => {
|
|
97
|
-
i && (u.value = !0);
|
|
98
|
-
}, { flush: "sync" });
|
|
99
|
-
const s = U({
|
|
100
|
-
enabled: n,
|
|
101
|
-
panel: c,
|
|
102
|
-
body: y,
|
|
103
|
-
onDismiss: () => (d.dismissWithoutAsking(), !0)
|
|
104
|
-
});
|
|
105
|
-
function T() {
|
|
106
|
-
s.reset(), d.present();
|
|
107
|
-
}
|
|
108
|
-
function x() {
|
|
109
|
-
d.dismissWithoutAsking();
|
|
110
|
-
}
|
|
111
|
-
return w({ present: T, dismiss: x }), (i, S) => (m(), L(O, { to: "body" }, [
|
|
112
|
-
u.value ? (m(), v("div", {
|
|
113
|
-
key: 0,
|
|
114
|
-
class: "relative z-9999",
|
|
115
|
-
role: "dialog",
|
|
116
|
-
"aria-modal": "true",
|
|
117
|
-
"aria-labelledby": p.title ? t(r) : void 0
|
|
118
|
-
}, [
|
|
119
|
-
C(N, {
|
|
120
|
-
appear: "",
|
|
121
|
-
"enter-active-class": "transition-opacity duration-motion-normal ease-motion-standard",
|
|
122
|
-
"enter-from-class": "opacity-0",
|
|
123
|
-
"leave-active-class": "pointer-events-none transition-opacity duration-motion-normal ease-motion-standard",
|
|
124
|
-
"leave-to-class": "opacity-0"
|
|
125
|
-
}, {
|
|
126
|
-
default: $(() => [
|
|
127
|
-
t(f) ? (m(), v("div", {
|
|
128
|
-
key: 0,
|
|
129
|
-
class: "fixed inset-0 bg-scrim",
|
|
130
|
-
style: z(t(s).backdropStyle.value),
|
|
131
|
-
"aria-hidden": "true",
|
|
132
|
-
onClick: x
|
|
133
|
-
}, null, 4)) : h("", !0)
|
|
134
|
-
]),
|
|
135
|
-
_: 1
|
|
136
|
-
}),
|
|
137
|
-
C(N, {
|
|
138
|
-
appear: "",
|
|
139
|
-
"enter-active-class": "transition-transform duration-motion-sheet ease-motion-sheet",
|
|
140
|
-
"enter-from-class": t(n) ? "translate-y-full" : "translate-x-full",
|
|
141
|
-
"leave-active-class": "pointer-events-none transition-transform duration-motion-normal ease-motion-standard",
|
|
142
|
-
"leave-to-class": t(n) ? "translate-y-full" : "translate-x-full",
|
|
143
|
-
onAfterLeave: b
|
|
144
|
-
}, {
|
|
145
|
-
default: $(() => [
|
|
146
|
-
t(f) ? (m(), v("div", {
|
|
147
|
-
key: 0,
|
|
148
|
-
ref_key: "panel",
|
|
149
|
-
ref: c,
|
|
150
|
-
tabindex: "-1",
|
|
151
|
-
"data-part": "panel",
|
|
152
|
-
class: A(["fixed flex flex-col text-content-strong shadow-dialog outline-none", [
|
|
153
|
-
p.grouped ? "bg-surface-page" : "bg-surface-cell",
|
|
154
|
-
t(n) ? "inset-x-0 bottom-0 mx-auto max-h-[90dvh] w-full max-w-readable rounded-t-sheet" : "inset-y-0 right-0 w-full max-w-md",
|
|
155
|
-
t(s).dragging.value ? "" : "transition-transform duration-motion-normal ease-motion-sheet"
|
|
156
|
-
]]),
|
|
157
|
-
style: z(t(s).panelStyle.value)
|
|
158
|
-
}, [
|
|
159
|
-
k("div", B({
|
|
160
|
-
class: ["shrink-0", t(n) ? "cursor-grab touch-none select-none" : ""]
|
|
161
|
-
}, t(s).handleEvents), [
|
|
162
|
-
t(n) ? (m(), v("div", Z, [...S[0] || (S[0] = [
|
|
163
|
-
k("span", { class: "h-1.25 w-9 rounded-full bg-fill-strong" }, null, -1)
|
|
164
|
-
])])) : h("", !0),
|
|
165
|
-
D(i.$slots, "header", { titleId: t(r) }, () => [
|
|
166
|
-
k("div", {
|
|
167
|
-
class: A(["flex min-h-bar-height items-center justify-between gap-3 px-4", t(n) ? "pb-1" : "border-b border-border-separator"])
|
|
168
|
-
}, [
|
|
169
|
-
p.title ? (m(), v("h3", {
|
|
170
|
-
key: 0,
|
|
171
|
-
id: t(r),
|
|
172
|
-
class: "text-headline font-semibold"
|
|
173
|
-
}, F(p.title), 9, ee)) : h("", !0),
|
|
174
|
-
k("button", {
|
|
175
|
-
type: "button",
|
|
176
|
-
"data-part": "close",
|
|
177
|
-
"aria-label": t(l)("core.actions.close"),
|
|
178
|
-
class: "hit-target -mr-1 ml-auto flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full bg-fill text-content-muted transition-colors duration-motion-fast hover:bg-fill-strong",
|
|
179
|
-
onClick: x
|
|
180
|
-
}, [
|
|
181
|
-
C(t(K), {
|
|
182
|
-
name: "close",
|
|
183
|
-
size: 14
|
|
184
|
-
})
|
|
185
|
-
], 8, te)
|
|
186
|
-
], 2)
|
|
187
|
-
])
|
|
188
|
-
], 16),
|
|
189
|
-
k("div", B({
|
|
190
|
-
ref_key: "body",
|
|
191
|
-
ref: y,
|
|
192
|
-
class: "min-h-0 flex-1 overflow-y-auto overscroll-contain px-4 py-4"
|
|
193
|
-
}, t(s).bodyEvents), [
|
|
194
|
-
D(i.$slots, "default")
|
|
195
|
-
], 16),
|
|
196
|
-
i.$slots.footer ? (m(), v("div", oe, [
|
|
197
|
-
D(i.$slots, "footer")
|
|
198
|
-
])) : h("", !0)
|
|
199
|
-
], 6)) : h("", !0)
|
|
200
|
-
]),
|
|
201
|
-
_: 3
|
|
202
|
-
}, 8, ["enter-from-class", "leave-to-class"])
|
|
203
|
-
], 8, X)) : h("", !0)
|
|
204
|
-
]));
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
export {
|
|
208
|
-
ie as _,
|
|
209
|
-
U as u
|
|
210
|
-
};
|