@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
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { defineComponent as M, useTemplateRef as u, shallowRef as C, ref as S, onMounted as G, onBeforeUnmount as A, watch as d, openBlock as n, createElementBlock as s, createCommentVNode as T } from "vue";
|
|
2
|
+
const B = {
|
|
3
|
+
AC: () => import("country-flag-icons/string/3x2/AC"),
|
|
4
|
+
AD: () => import("country-flag-icons/string/3x2/AD"),
|
|
5
|
+
AE: () => import("country-flag-icons/string/3x2/AE"),
|
|
6
|
+
AF: () => import("country-flag-icons/string/3x2/AF"),
|
|
7
|
+
AG: () => import("country-flag-icons/string/3x2/AG"),
|
|
8
|
+
AI: () => import("country-flag-icons/string/3x2/AI"),
|
|
9
|
+
AL: () => import("country-flag-icons/string/3x2/AL"),
|
|
10
|
+
AM: () => import("country-flag-icons/string/3x2/AM"),
|
|
11
|
+
AO: () => import("country-flag-icons/string/3x2/AO"),
|
|
12
|
+
AQ: () => import("country-flag-icons/string/3x2/AQ"),
|
|
13
|
+
AR: () => import("country-flag-icons/string/3x2/AR"),
|
|
14
|
+
AS: () => import("country-flag-icons/string/3x2/AS"),
|
|
15
|
+
AT: () => import("country-flag-icons/string/3x2/AT"),
|
|
16
|
+
AU: () => import("country-flag-icons/string/3x2/AU"),
|
|
17
|
+
AW: () => import("country-flag-icons/string/3x2/AW"),
|
|
18
|
+
AX: () => import("country-flag-icons/string/3x2/AX"),
|
|
19
|
+
AZ: () => import("country-flag-icons/string/3x2/AZ"),
|
|
20
|
+
BA: () => import("country-flag-icons/string/3x2/BA"),
|
|
21
|
+
BB: () => import("country-flag-icons/string/3x2/BB"),
|
|
22
|
+
BD: () => import("country-flag-icons/string/3x2/BD"),
|
|
23
|
+
BE: () => import("country-flag-icons/string/3x2/BE"),
|
|
24
|
+
BF: () => import("country-flag-icons/string/3x2/BF"),
|
|
25
|
+
BG: () => import("country-flag-icons/string/3x2/BG"),
|
|
26
|
+
BH: () => import("country-flag-icons/string/3x2/BH"),
|
|
27
|
+
BI: () => import("country-flag-icons/string/3x2/BI"),
|
|
28
|
+
BJ: () => import("country-flag-icons/string/3x2/BJ"),
|
|
29
|
+
BL: () => import("country-flag-icons/string/3x2/BL"),
|
|
30
|
+
BM: () => import("country-flag-icons/string/3x2/BM"),
|
|
31
|
+
BN: () => import("country-flag-icons/string/3x2/BN"),
|
|
32
|
+
BO: () => import("country-flag-icons/string/3x2/BO"),
|
|
33
|
+
BQ: () => import("country-flag-icons/string/3x2/BQ"),
|
|
34
|
+
BR: () => import("country-flag-icons/string/3x2/BR"),
|
|
35
|
+
BS: () => import("country-flag-icons/string/3x2/BS"),
|
|
36
|
+
BT: () => import("country-flag-icons/string/3x2/BT"),
|
|
37
|
+
BV: () => import("country-flag-icons/string/3x2/BV"),
|
|
38
|
+
BW: () => import("country-flag-icons/string/3x2/BW"),
|
|
39
|
+
BY: () => import("country-flag-icons/string/3x2/BY"),
|
|
40
|
+
BZ: () => import("country-flag-icons/string/3x2/BZ"),
|
|
41
|
+
CA: () => import("country-flag-icons/string/3x2/CA"),
|
|
42
|
+
CC: () => import("country-flag-icons/string/3x2/CC"),
|
|
43
|
+
CD: () => import("country-flag-icons/string/3x2/CD"),
|
|
44
|
+
CF: () => import("country-flag-icons/string/3x2/CF"),
|
|
45
|
+
CG: () => import("country-flag-icons/string/3x2/CG"),
|
|
46
|
+
CH: () => import("country-flag-icons/string/3x2/CH"),
|
|
47
|
+
CI: () => import("country-flag-icons/string/3x2/CI"),
|
|
48
|
+
CK: () => import("country-flag-icons/string/3x2/CK"),
|
|
49
|
+
CL: () => import("country-flag-icons/string/3x2/CL"),
|
|
50
|
+
CM: () => import("country-flag-icons/string/3x2/CM"),
|
|
51
|
+
CN: () => import("country-flag-icons/string/3x2/CN"),
|
|
52
|
+
CO: () => import("country-flag-icons/string/3x2/CO"),
|
|
53
|
+
CR: () => import("country-flag-icons/string/3x2/CR"),
|
|
54
|
+
CU: () => import("country-flag-icons/string/3x2/CU"),
|
|
55
|
+
CV: () => import("country-flag-icons/string/3x2/CV"),
|
|
56
|
+
CW: () => import("country-flag-icons/string/3x2/CW"),
|
|
57
|
+
CX: () => import("country-flag-icons/string/3x2/CX"),
|
|
58
|
+
CY: () => import("country-flag-icons/string/3x2/CY"),
|
|
59
|
+
CZ: () => import("country-flag-icons/string/3x2/CZ"),
|
|
60
|
+
DE: () => import("country-flag-icons/string/3x2/DE"),
|
|
61
|
+
DJ: () => import("country-flag-icons/string/3x2/DJ"),
|
|
62
|
+
DK: () => import("country-flag-icons/string/3x2/DK"),
|
|
63
|
+
DM: () => import("country-flag-icons/string/3x2/DM"),
|
|
64
|
+
DO: () => import("country-flag-icons/string/3x2/DO"),
|
|
65
|
+
DZ: () => import("country-flag-icons/string/3x2/DZ"),
|
|
66
|
+
EC: () => import("country-flag-icons/string/3x2/EC"),
|
|
67
|
+
EE: () => import("country-flag-icons/string/3x2/EE"),
|
|
68
|
+
EG: () => import("country-flag-icons/string/3x2/EG"),
|
|
69
|
+
EH: () => import("country-flag-icons/string/3x2/EH"),
|
|
70
|
+
ER: () => import("country-flag-icons/string/3x2/ER"),
|
|
71
|
+
ES: () => import("country-flag-icons/string/3x2/ES"),
|
|
72
|
+
ET: () => import("country-flag-icons/string/3x2/ET"),
|
|
73
|
+
EU: () => import("country-flag-icons/string/3x2/EU"),
|
|
74
|
+
FI: () => import("country-flag-icons/string/3x2/FI"),
|
|
75
|
+
FJ: () => import("country-flag-icons/string/3x2/FJ"),
|
|
76
|
+
FK: () => import("country-flag-icons/string/3x2/FK"),
|
|
77
|
+
FM: () => import("country-flag-icons/string/3x2/FM"),
|
|
78
|
+
FO: () => import("country-flag-icons/string/3x2/FO"),
|
|
79
|
+
FR: () => import("country-flag-icons/string/3x2/FR"),
|
|
80
|
+
GA: () => import("country-flag-icons/string/3x2/GA"),
|
|
81
|
+
GB: () => import("country-flag-icons/string/3x2/GB"),
|
|
82
|
+
GD: () => import("country-flag-icons/string/3x2/GD"),
|
|
83
|
+
GE: () => import("country-flag-icons/string/3x2/GE"),
|
|
84
|
+
GF: () => import("country-flag-icons/string/3x2/GF"),
|
|
85
|
+
GG: () => import("country-flag-icons/string/3x2/GG"),
|
|
86
|
+
GH: () => import("country-flag-icons/string/3x2/GH"),
|
|
87
|
+
GI: () => import("country-flag-icons/string/3x2/GI"),
|
|
88
|
+
GL: () => import("country-flag-icons/string/3x2/GL"),
|
|
89
|
+
GM: () => import("country-flag-icons/string/3x2/GM"),
|
|
90
|
+
GN: () => import("country-flag-icons/string/3x2/GN"),
|
|
91
|
+
GP: () => import("country-flag-icons/string/3x2/GP"),
|
|
92
|
+
GQ: () => import("country-flag-icons/string/3x2/GQ"),
|
|
93
|
+
GR: () => import("country-flag-icons/string/3x2/GR"),
|
|
94
|
+
GS: () => import("country-flag-icons/string/3x2/GS"),
|
|
95
|
+
GT: () => import("country-flag-icons/string/3x2/GT"),
|
|
96
|
+
GU: () => import("country-flag-icons/string/3x2/GU"),
|
|
97
|
+
GW: () => import("country-flag-icons/string/3x2/GW"),
|
|
98
|
+
GY: () => import("country-flag-icons/string/3x2/GY"),
|
|
99
|
+
HK: () => import("country-flag-icons/string/3x2/HK"),
|
|
100
|
+
HM: () => import("country-flag-icons/string/3x2/HM"),
|
|
101
|
+
HN: () => import("country-flag-icons/string/3x2/HN"),
|
|
102
|
+
HR: () => import("country-flag-icons/string/3x2/HR"),
|
|
103
|
+
HT: () => import("country-flag-icons/string/3x2/HT"),
|
|
104
|
+
HU: () => import("country-flag-icons/string/3x2/HU"),
|
|
105
|
+
IC: () => import("country-flag-icons/string/3x2/IC"),
|
|
106
|
+
ID: () => import("country-flag-icons/string/3x2/ID"),
|
|
107
|
+
IE: () => import("country-flag-icons/string/3x2/IE"),
|
|
108
|
+
IL: () => import("country-flag-icons/string/3x2/IL"),
|
|
109
|
+
IM: () => import("country-flag-icons/string/3x2/IM"),
|
|
110
|
+
IN: () => import("country-flag-icons/string/3x2/IN"),
|
|
111
|
+
IO: () => import("country-flag-icons/string/3x2/IO"),
|
|
112
|
+
IQ: () => import("country-flag-icons/string/3x2/IQ"),
|
|
113
|
+
IR: () => import("country-flag-icons/string/3x2/IR"),
|
|
114
|
+
IS: () => import("country-flag-icons/string/3x2/IS"),
|
|
115
|
+
IT: () => import("country-flag-icons/string/3x2/IT"),
|
|
116
|
+
JE: () => import("country-flag-icons/string/3x2/JE"),
|
|
117
|
+
JM: () => import("country-flag-icons/string/3x2/JM"),
|
|
118
|
+
JO: () => import("country-flag-icons/string/3x2/JO"),
|
|
119
|
+
JP: () => import("country-flag-icons/string/3x2/JP"),
|
|
120
|
+
KE: () => import("country-flag-icons/string/3x2/KE"),
|
|
121
|
+
KG: () => import("country-flag-icons/string/3x2/KG"),
|
|
122
|
+
KH: () => import("country-flag-icons/string/3x2/KH"),
|
|
123
|
+
KI: () => import("country-flag-icons/string/3x2/KI"),
|
|
124
|
+
KM: () => import("country-flag-icons/string/3x2/KM"),
|
|
125
|
+
KN: () => import("country-flag-icons/string/3x2/KN"),
|
|
126
|
+
KP: () => import("country-flag-icons/string/3x2/KP"),
|
|
127
|
+
KR: () => import("country-flag-icons/string/3x2/KR"),
|
|
128
|
+
KW: () => import("country-flag-icons/string/3x2/KW"),
|
|
129
|
+
KY: () => import("country-flag-icons/string/3x2/KY"),
|
|
130
|
+
KZ: () => import("country-flag-icons/string/3x2/KZ"),
|
|
131
|
+
LA: () => import("country-flag-icons/string/3x2/LA"),
|
|
132
|
+
LB: () => import("country-flag-icons/string/3x2/LB"),
|
|
133
|
+
LC: () => import("country-flag-icons/string/3x2/LC"),
|
|
134
|
+
LI: () => import("country-flag-icons/string/3x2/LI"),
|
|
135
|
+
LK: () => import("country-flag-icons/string/3x2/LK"),
|
|
136
|
+
LR: () => import("country-flag-icons/string/3x2/LR"),
|
|
137
|
+
LS: () => import("country-flag-icons/string/3x2/LS"),
|
|
138
|
+
LT: () => import("country-flag-icons/string/3x2/LT"),
|
|
139
|
+
LU: () => import("country-flag-icons/string/3x2/LU"),
|
|
140
|
+
LV: () => import("country-flag-icons/string/3x2/LV"),
|
|
141
|
+
LY: () => import("country-flag-icons/string/3x2/LY"),
|
|
142
|
+
MA: () => import("country-flag-icons/string/3x2/MA"),
|
|
143
|
+
MC: () => import("country-flag-icons/string/3x2/MC"),
|
|
144
|
+
MD: () => import("country-flag-icons/string/3x2/MD"),
|
|
145
|
+
ME: () => import("country-flag-icons/string/3x2/ME"),
|
|
146
|
+
MF: () => import("country-flag-icons/string/3x2/MF"),
|
|
147
|
+
MG: () => import("country-flag-icons/string/3x2/MG"),
|
|
148
|
+
MH: () => import("country-flag-icons/string/3x2/MH"),
|
|
149
|
+
MK: () => import("country-flag-icons/string/3x2/MK"),
|
|
150
|
+
ML: () => import("country-flag-icons/string/3x2/ML"),
|
|
151
|
+
MM: () => import("country-flag-icons/string/3x2/MM"),
|
|
152
|
+
MN: () => import("country-flag-icons/string/3x2/MN"),
|
|
153
|
+
MO: () => import("country-flag-icons/string/3x2/MO"),
|
|
154
|
+
MP: () => import("country-flag-icons/string/3x2/MP"),
|
|
155
|
+
MQ: () => import("country-flag-icons/string/3x2/MQ"),
|
|
156
|
+
MR: () => import("country-flag-icons/string/3x2/MR"),
|
|
157
|
+
MS: () => import("country-flag-icons/string/3x2/MS"),
|
|
158
|
+
MT: () => import("country-flag-icons/string/3x2/MT"),
|
|
159
|
+
MU: () => import("country-flag-icons/string/3x2/MU"),
|
|
160
|
+
MV: () => import("country-flag-icons/string/3x2/MV"),
|
|
161
|
+
MW: () => import("country-flag-icons/string/3x2/MW"),
|
|
162
|
+
MX: () => import("country-flag-icons/string/3x2/MX"),
|
|
163
|
+
MY: () => import("country-flag-icons/string/3x2/MY"),
|
|
164
|
+
MZ: () => import("country-flag-icons/string/3x2/MZ"),
|
|
165
|
+
NA: () => import("country-flag-icons/string/3x2/NA"),
|
|
166
|
+
NC: () => import("country-flag-icons/string/3x2/NC"),
|
|
167
|
+
NE: () => import("country-flag-icons/string/3x2/NE"),
|
|
168
|
+
NF: () => import("country-flag-icons/string/3x2/NF"),
|
|
169
|
+
NG: () => import("country-flag-icons/string/3x2/NG"),
|
|
170
|
+
NI: () => import("country-flag-icons/string/3x2/NI"),
|
|
171
|
+
NL: () => import("country-flag-icons/string/3x2/NL"),
|
|
172
|
+
NO: () => import("country-flag-icons/string/3x2/NO"),
|
|
173
|
+
NP: () => import("country-flag-icons/string/3x2/NP"),
|
|
174
|
+
NR: () => import("country-flag-icons/string/3x2/NR"),
|
|
175
|
+
NU: () => import("country-flag-icons/string/3x2/NU"),
|
|
176
|
+
NZ: () => import("country-flag-icons/string/3x2/NZ"),
|
|
177
|
+
OM: () => import("country-flag-icons/string/3x2/OM"),
|
|
178
|
+
PA: () => import("country-flag-icons/string/3x2/PA"),
|
|
179
|
+
PE: () => import("country-flag-icons/string/3x2/PE"),
|
|
180
|
+
PF: () => import("country-flag-icons/string/3x2/PF"),
|
|
181
|
+
PG: () => import("country-flag-icons/string/3x2/PG"),
|
|
182
|
+
PH: () => import("country-flag-icons/string/3x2/PH"),
|
|
183
|
+
PK: () => import("country-flag-icons/string/3x2/PK"),
|
|
184
|
+
PL: () => import("country-flag-icons/string/3x2/PL"),
|
|
185
|
+
PM: () => import("country-flag-icons/string/3x2/PM"),
|
|
186
|
+
PN: () => import("country-flag-icons/string/3x2/PN"),
|
|
187
|
+
PR: () => import("country-flag-icons/string/3x2/PR"),
|
|
188
|
+
PS: () => import("country-flag-icons/string/3x2/PS"),
|
|
189
|
+
PT: () => import("country-flag-icons/string/3x2/PT"),
|
|
190
|
+
PW: () => import("country-flag-icons/string/3x2/PW"),
|
|
191
|
+
PY: () => import("country-flag-icons/string/3x2/PY"),
|
|
192
|
+
QA: () => import("country-flag-icons/string/3x2/QA"),
|
|
193
|
+
RE: () => import("country-flag-icons/string/3x2/RE"),
|
|
194
|
+
RO: () => import("country-flag-icons/string/3x2/RO"),
|
|
195
|
+
RS: () => import("country-flag-icons/string/3x2/RS"),
|
|
196
|
+
RU: () => import("country-flag-icons/string/3x2/RU"),
|
|
197
|
+
RW: () => import("country-flag-icons/string/3x2/RW"),
|
|
198
|
+
SA: () => import("country-flag-icons/string/3x2/SA"),
|
|
199
|
+
SB: () => import("country-flag-icons/string/3x2/SB"),
|
|
200
|
+
SC: () => import("country-flag-icons/string/3x2/SC"),
|
|
201
|
+
SD: () => import("country-flag-icons/string/3x2/SD"),
|
|
202
|
+
SE: () => import("country-flag-icons/string/3x2/SE"),
|
|
203
|
+
SG: () => import("country-flag-icons/string/3x2/SG"),
|
|
204
|
+
SH: () => import("country-flag-icons/string/3x2/SH"),
|
|
205
|
+
SI: () => import("country-flag-icons/string/3x2/SI"),
|
|
206
|
+
SJ: () => import("country-flag-icons/string/3x2/SJ"),
|
|
207
|
+
SK: () => import("country-flag-icons/string/3x2/SK"),
|
|
208
|
+
SL: () => import("country-flag-icons/string/3x2/SL"),
|
|
209
|
+
SM: () => import("country-flag-icons/string/3x2/SM"),
|
|
210
|
+
SN: () => import("country-flag-icons/string/3x2/SN"),
|
|
211
|
+
SO: () => import("country-flag-icons/string/3x2/SO"),
|
|
212
|
+
SR: () => import("country-flag-icons/string/3x2/SR"),
|
|
213
|
+
SS: () => import("country-flag-icons/string/3x2/SS"),
|
|
214
|
+
ST: () => import("country-flag-icons/string/3x2/ST"),
|
|
215
|
+
SV: () => import("country-flag-icons/string/3x2/SV"),
|
|
216
|
+
SX: () => import("country-flag-icons/string/3x2/SX"),
|
|
217
|
+
SY: () => import("country-flag-icons/string/3x2/SY"),
|
|
218
|
+
SZ: () => import("country-flag-icons/string/3x2/SZ"),
|
|
219
|
+
TA: () => import("country-flag-icons/string/3x2/TA"),
|
|
220
|
+
TC: () => import("country-flag-icons/string/3x2/TC"),
|
|
221
|
+
TD: () => import("country-flag-icons/string/3x2/TD"),
|
|
222
|
+
TF: () => import("country-flag-icons/string/3x2/TF"),
|
|
223
|
+
TG: () => import("country-flag-icons/string/3x2/TG"),
|
|
224
|
+
TH: () => import("country-flag-icons/string/3x2/TH"),
|
|
225
|
+
TJ: () => import("country-flag-icons/string/3x2/TJ"),
|
|
226
|
+
TK: () => import("country-flag-icons/string/3x2/TK"),
|
|
227
|
+
TL: () => import("country-flag-icons/string/3x2/TL"),
|
|
228
|
+
TM: () => import("country-flag-icons/string/3x2/TM"),
|
|
229
|
+
TN: () => import("country-flag-icons/string/3x2/TN"),
|
|
230
|
+
TO: () => import("country-flag-icons/string/3x2/TO"),
|
|
231
|
+
TR: () => import("country-flag-icons/string/3x2/TR"),
|
|
232
|
+
TT: () => import("country-flag-icons/string/3x2/TT"),
|
|
233
|
+
TV: () => import("country-flag-icons/string/3x2/TV"),
|
|
234
|
+
TW: () => import("country-flag-icons/string/3x2/TW"),
|
|
235
|
+
TZ: () => import("country-flag-icons/string/3x2/TZ"),
|
|
236
|
+
UA: () => import("country-flag-icons/string/3x2/UA"),
|
|
237
|
+
UG: () => import("country-flag-icons/string/3x2/UG"),
|
|
238
|
+
UM: () => import("country-flag-icons/string/3x2/UM"),
|
|
239
|
+
US: () => import("country-flag-icons/string/3x2/US"),
|
|
240
|
+
UY: () => import("country-flag-icons/string/3x2/UY"),
|
|
241
|
+
UZ: () => import("country-flag-icons/string/3x2/UZ"),
|
|
242
|
+
VA: () => import("country-flag-icons/string/3x2/VA"),
|
|
243
|
+
VC: () => import("country-flag-icons/string/3x2/VC"),
|
|
244
|
+
VE: () => import("country-flag-icons/string/3x2/VE"),
|
|
245
|
+
VG: () => import("country-flag-icons/string/3x2/VG"),
|
|
246
|
+
VI: () => import("country-flag-icons/string/3x2/VI"),
|
|
247
|
+
VN: () => import("country-flag-icons/string/3x2/VN"),
|
|
248
|
+
VU: () => import("country-flag-icons/string/3x2/VU"),
|
|
249
|
+
WF: () => import("country-flag-icons/string/3x2/WF"),
|
|
250
|
+
WS: () => import("country-flag-icons/string/3x2/WS"),
|
|
251
|
+
XA: () => import("country-flag-icons/string/3x2/XA"),
|
|
252
|
+
XC: () => import("country-flag-icons/string/3x2/XC"),
|
|
253
|
+
XK: () => import("country-flag-icons/string/3x2/XK"),
|
|
254
|
+
XO: () => import("country-flag-icons/string/3x2/XO"),
|
|
255
|
+
YE: () => import("country-flag-icons/string/3x2/YE"),
|
|
256
|
+
YT: () => import("country-flag-icons/string/3x2/YT"),
|
|
257
|
+
ZA: () => import("country-flag-icons/string/3x2/ZA"),
|
|
258
|
+
ZM: () => import("country-flag-icons/string/3x2/ZM"),
|
|
259
|
+
ZW: () => import("country-flag-icons/string/3x2/ZW")
|
|
260
|
+
}, I = ["data-country"], f = ["src"], N = /* @__PURE__ */ M({
|
|
261
|
+
__name: "CountryFlag",
|
|
262
|
+
props: {
|
|
263
|
+
country: {}
|
|
264
|
+
},
|
|
265
|
+
setup(a) {
|
|
266
|
+
const m = a, p = u("holder"), r = C(null), e = S(typeof IntersectionObserver > "u");
|
|
267
|
+
let i = null;
|
|
268
|
+
async function l(o) {
|
|
269
|
+
const t = B[o];
|
|
270
|
+
if (!t) return void (r.value = null);
|
|
271
|
+
const { default: c } = await t();
|
|
272
|
+
o === m.country && (r.value = `data:image/svg+xml,${encodeURIComponent(c)}`);
|
|
273
|
+
}
|
|
274
|
+
return G(() => {
|
|
275
|
+
e.value || !p.value || (i = new IntersectionObserver((o) => {
|
|
276
|
+
o.some((t) => t.isIntersecting) && (e.value = !0, i?.disconnect());
|
|
277
|
+
}), i.observe(p.value));
|
|
278
|
+
}), A(() => i?.disconnect()), d([() => m.country, e], ([o, t]) => {
|
|
279
|
+
r.value = null, t && l(o);
|
|
280
|
+
}, { immediate: !0 }), (o, t) => (n(), s("span", {
|
|
281
|
+
ref_key: "holder",
|
|
282
|
+
ref: p,
|
|
283
|
+
class: "inline-block h-3.5 w-5 shrink-0 overflow-hidden rounded-xs bg-fill-strong ring-1 ring-border-separator",
|
|
284
|
+
"data-test": "flag",
|
|
285
|
+
"data-country": m.country
|
|
286
|
+
}, [
|
|
287
|
+
r.value ? (n(), s("img", {
|
|
288
|
+
key: 0,
|
|
289
|
+
src: r.value,
|
|
290
|
+
alt: "",
|
|
291
|
+
class: "size-full object-cover",
|
|
292
|
+
draggable: "false"
|
|
293
|
+
}, null, 8, f)) : T("", !0)
|
|
294
|
+
], 8, I));
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
export {
|
|
298
|
+
N as _
|
|
299
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as d, computed as s, useSlots as u, openBlock as w, createElementBlock as p, createVNode as y, unref as f, createSlots as m, renderList as b, withCtx as h, renderSlot as v, normalizeProps as _, guardReactiveProps as g } from "vue";
|
|
2
|
+
import { u as k, _ as R } from "./rowLayout-BI7a3Kom.js";
|
|
3
|
+
const B = ["aria-busy"], S = /* @__PURE__ */ d({
|
|
4
|
+
__name: "DataTable",
|
|
5
|
+
props: {
|
|
6
|
+
rows: {},
|
|
7
|
+
columns: {},
|
|
8
|
+
rowKey: {},
|
|
9
|
+
loading: { type: Boolean, default: !1 },
|
|
10
|
+
skeletonRows: { default: 3 },
|
|
11
|
+
recordRoute: { type: Function, default: void 0 },
|
|
12
|
+
rowActions: { type: Function, default: void 0 },
|
|
13
|
+
rowLabel: { type: Function, default: void 0 },
|
|
14
|
+
rowHeight: { default: void 0 },
|
|
15
|
+
density: { default: "regular" },
|
|
16
|
+
actionsVisible: { type: Boolean, default: !1 },
|
|
17
|
+
rowClass: { type: Function, default: void 0 }
|
|
18
|
+
},
|
|
19
|
+
setup(r) {
|
|
20
|
+
const o = r, { phone: a } = k(() => o.columns), n = s(() => o.loading ? "loading" : o.rows.length === 0 ? "empty" : "rows"), l = (e) => o.recordRoute ? o.recordRoute(e) : null, i = s(() => Object.keys(u()));
|
|
21
|
+
return (e, C) => (w(), p("div", {
|
|
22
|
+
"aria-busy": o.loading || void 0,
|
|
23
|
+
"data-test": "data-table"
|
|
24
|
+
}, [
|
|
25
|
+
y(R, {
|
|
26
|
+
columns: o.columns,
|
|
27
|
+
rows: o.rows,
|
|
28
|
+
"row-key": o.rowKey,
|
|
29
|
+
display: n.value,
|
|
30
|
+
phone: f(a),
|
|
31
|
+
link: l,
|
|
32
|
+
"row-actions": o.rowActions,
|
|
33
|
+
"row-label": o.rowLabel,
|
|
34
|
+
"row-height": o.rowHeight,
|
|
35
|
+
density: o.density,
|
|
36
|
+
"actions-visible": o.actionsVisible,
|
|
37
|
+
"skeleton-rows": o.skeletonRows,
|
|
38
|
+
"row-class": o.rowClass
|
|
39
|
+
}, m({ _: 2 }, [
|
|
40
|
+
b(i.value, (t) => ({
|
|
41
|
+
name: t,
|
|
42
|
+
fn: h((c) => [
|
|
43
|
+
v(e.$slots, t, _(g(c ?? {})))
|
|
44
|
+
])
|
|
45
|
+
}))
|
|
46
|
+
]), 1032, ["columns", "rows", "row-key", "display", "phone", "row-actions", "row-label", "row-height", "density", "actions-visible", "skeleton-rows", "row-class"])
|
|
47
|
+
], 8, B));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
S as _
|
|
52
|
+
};
|