@telesign/boreal-web-components 0.1.0-alpha.5 → 0.1.0-alpha.6
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/components-build/bds-avatar.js +1 -1
- package/components-build/bds-breadcrumb-item.d.ts +11 -0
- package/components-build/bds-breadcrumb-item.js +1 -0
- package/components-build/bds-breadcrumb.d.ts +11 -0
- package/components-build/bds-breadcrumb.js +1 -0
- package/components-build/bds-button-group.js +1 -1
- package/components-build/bds-button.js +1 -1
- package/components-build/bds-checkbox-button.d.ts +11 -0
- package/components-build/bds-checkbox-button.js +1 -0
- package/components-build/bds-checkbox-card.js +1 -1
- package/components-build/bds-checkbox-group.d.ts +11 -0
- package/components-build/bds-checkbox-group.js +1 -0
- package/components-build/bds-checkbox.js +1 -1
- package/components-build/bds-dialog.js +1 -1
- package/components-build/bds-divider.js +1 -1
- package/components-build/bds-flag.js +1 -1
- package/components-build/bds-grid-item.js +1 -1
- package/components-build/bds-grid.js +1 -1
- package/components-build/bds-list-menu-item.js +1 -1
- package/components-build/bds-list-menu.js +1 -1
- package/components-build/bds-popover.js +1 -1
- package/components-build/bds-radio-button.js +1 -1
- package/components-build/bds-radio-card.js +1 -1
- package/components-build/bds-radio-group.js +1 -1
- package/components-build/bds-radio.js +1 -1
- package/components-build/bds-select.d.ts +11 -0
- package/components-build/bds-select.js +1 -0
- package/components-build/bds-slider.d.ts +11 -0
- package/components-build/bds-slider.js +1 -0
- package/components-build/bds-tag.js +1 -1
- package/components-build/bds-text-field.js +1 -1
- package/components-build/bds-toggle.js +1 -1
- package/components-build/bds-tooltip.js +1 -1
- package/components-build/bds-typography.js +1 -1
- package/components-build/p-B6e9eIHB.js +1 -0
- package/components-build/p-CJBdGD_4.js +1 -0
- package/components-build/p-DcR7mHFE.js +1 -0
- package/components-build/p-DdOPD9wW.js +1 -0
- package/components-build/{p-BSlaf0ff.js → p-DoNZM78n.js} +1 -1
- package/components-build/p-DrkDx75U.js +1 -0
- package/components-build/p-DuBzr05c.js +1 -0
- package/components-build/p-PmjPRW8X.js +1 -0
- package/components-build/p-cgdh1LO-.js +1 -0
- package/components-build/p-yLNcMg2E.js +1 -0
- package/custom-elements.json +2723 -841
- package/dist/boreal-web-components/boreal-web-components.esm.js +1 -1
- package/dist/boreal-web-components/css/boreal.css +60 -0
- package/dist/boreal-web-components/css/theme-connect.css +15 -0
- package/dist/boreal-web-components/css/theme-engage.css +15 -0
- package/dist/boreal-web-components/css/theme-protect.css +15 -0
- package/dist/boreal-web-components/css/theme-proximus.css +15 -0
- package/dist/boreal-web-components/{p-7bb88855.entry.js → p-02e53626.entry.js} +1 -1
- package/dist/boreal-web-components/p-0357450d.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-efe159aa.entry.js → p-1250ba53.entry.js} +1 -1
- package/dist/boreal-web-components/p-1911b978.entry.js +1 -0
- package/dist/boreal-web-components/p-1mOd23lT.system.js +1 -0
- package/dist/boreal-web-components/{p-48ebbfbe.system.entry.js → p-25823f7d.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-2db71382.system.entry.js +1 -0
- package/dist/boreal-web-components/p-367e40f9.entry.js +1 -0
- package/dist/boreal-web-components/p-3946d587.entry.js +1 -0
- package/dist/boreal-web-components/{p-4dc01078.system.entry.js → p-44b6fe6c.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-024d90b0.system.entry.js → p-48712a63.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-2adf2cd5.entry.js → p-49ea207a.entry.js} +1 -1
- package/dist/boreal-web-components/{p-7aff4c78.entry.js → p-4b028406.entry.js} +1 -1
- package/dist/boreal-web-components/p-4b615de8.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-e0a41cab.system.entry.js → p-4f431941.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-524421f7.system.entry.js +1 -0
- package/dist/boreal-web-components/p-530c8c7f.entry.js +1 -0
- package/dist/boreal-web-components/p-55aeff0c.system.entry.js +1 -0
- package/dist/boreal-web-components/p-5c8650b3.system.entry.js +1 -0
- package/dist/boreal-web-components/p-5e590291.system.entry.js +1 -0
- package/dist/boreal-web-components/p-5ee0841f.entry.js +1 -0
- package/dist/boreal-web-components/{p-93066db4.system.entry.js → p-65923619.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-66ec16d9.entry.js +1 -0
- package/dist/boreal-web-components/{p-e55f2a8b.entry.js → p-714bf70d.entry.js} +1 -1
- package/dist/boreal-web-components/p-7626338e.system.entry.js +1 -0
- package/dist/boreal-web-components/p-7G4h4DI7.js +1 -0
- package/dist/boreal-web-components/p-800fc096.system.entry.js +1 -0
- package/dist/boreal-web-components/p-824485ad.entry.js +1 -0
- package/dist/boreal-web-components/p-8dfe3a9f.entry.js +1 -0
- package/dist/boreal-web-components/p-90022071.entry.js +1 -0
- package/dist/boreal-web-components/{p-7ebc67c9.entry.js → p-9d02057d.entry.js} +1 -1
- package/dist/boreal-web-components/{p-wREMI3WA.js → p-CcENtewr.js} +1 -1
- package/dist/boreal-web-components/p-Dk9dfU9-.system.js +1 -0
- package/dist/boreal-web-components/p-K7DvMlRo.system.js +1 -0
- package/dist/boreal-web-components/{p-DYlZcFrB.system.js → p-UEj9YHof.system.js} +1 -1
- package/dist/boreal-web-components/{p-147d6652.system.entry.js → p-b54fe67f.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-bbcd3a30.system.entry.js +1 -0
- package/dist/boreal-web-components/p-bea25d3d.system.entry.js +1 -0
- package/dist/boreal-web-components/p-bed506d3.entry.js +1 -0
- package/dist/boreal-web-components/p-bfd62034.system.entry.js +1 -0
- package/dist/boreal-web-components/p-c07d6b82.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-7d3a8f61.entry.js → p-cc5c359f.entry.js} +1 -1
- package/dist/boreal-web-components/p-cgdh1LO-.js +1 -0
- package/dist/boreal-web-components/p-d2b6ae79.entry.js +1 -0
- package/dist/boreal-web-components/p-e21b8416.entry.js +1 -0
- package/dist/boreal-web-components/p-e4364a44.system.entry.js +1 -0
- package/dist/boreal-web-components/p-e51407b2.system.entry.js +1 -0
- package/dist/boreal-web-components/p-e8cde179.system.entry.js +1 -0
- package/dist/boreal-web-components/p-eecc3028.system.entry.js +1 -0
- package/dist/boreal-web-components/p-f3bd824d.system.entry.js +1 -0
- package/dist/boreal-web-components/p-f6eabb16.entry.js +1 -0
- package/dist/boreal-web-components/p-f7acf6e5.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-6629be14.entry.js → p-f9560509.entry.js} +1 -1
- package/dist/boreal-web-components/p-fa128cad.system.entry.js +1 -0
- package/dist/boreal-web-components/p-fab1a01d.entry.js +1 -0
- package/dist/boreal-web-components/p-fb9ba833.entry.js +1 -0
- package/dist/boreal-web-components/p-fbe0c9f2.entry.js +1 -0
- package/dist/boreal-web-components/p-fbe88555.entry.js +1 -0
- package/dist/boreal-web-components/p-fc1fa966.system.entry.js +1 -0
- package/dist/boreal-web-components/p-fc4ffa0e.entry.js +1 -0
- package/dist/boreal-web-components/p-fef13445.entry.js +1 -0
- package/dist/boreal-web-components/p-qGhMe8Hk.js +1 -0
- package/dist/boreal-web-components/p-vzZJGcYF.system.js +1 -1
- package/dist/boreal-web-components/scss/maps/_theme-connect.scss +16 -1
- package/dist/boreal-web-components/scss/maps/_theme-engage.scss +16 -1
- package/dist/boreal-web-components/scss/maps/_theme-protect.scss +16 -1
- package/dist/boreal-web-components/scss/maps/_theme-proximus.scss +16 -1
- package/dist/boreal-web-components/scss/variables/_theme-connect.scss +16 -1
- package/dist/boreal-web-components/scss/variables/_theme-engage.scss +16 -1
- package/dist/boreal-web-components/scss/variables/_theme-protect.scss +16 -1
- package/dist/boreal-web-components/scss/variables/_theme-proximus.scss +16 -1
- package/dist/cjs/KeyboardController-B_g3peyB.js +1067 -0
- package/dist/cjs/Keys-DXn16dlA.js +34 -0
- package/dist/cjs/bds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/bds-breadcrumb-item.cjs.entry.js +106 -0
- package/dist/cjs/bds-breadcrumb.cjs.entry.js +127 -0
- package/dist/cjs/bds-button-group.cjs.entry.js +23 -2
- package/dist/cjs/bds-button.cjs.entry.js +33 -6
- package/dist/cjs/bds-checkbox-button.cjs.entry.js +119 -0
- package/dist/cjs/bds-checkbox-card.cjs.entry.js +37 -23
- package/dist/cjs/bds-checkbox-group.cjs.entry.js +292 -0
- package/dist/cjs/bds-checkbox.cjs.entry.js +62 -31
- package/dist/cjs/bds-dialog.cjs.entry.js +3 -3
- package/dist/cjs/bds-divider.cjs.entry.js +1 -1
- package/dist/cjs/bds-flag.cjs.entry.js +1 -1
- package/dist/cjs/bds-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/bds-grid.cjs.entry.js +1 -1
- package/dist/cjs/bds-list-menu-item.cjs.entry.js +19 -8
- package/dist/cjs/bds-list-menu.cjs.entry.js +42 -7
- package/dist/cjs/bds-popover.cjs.entry.js +13 -5
- package/dist/cjs/bds-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/bds-radio-card.cjs.entry.js +2 -2
- package/dist/cjs/bds-radio-group.cjs.entry.js +14 -8
- package/dist/cjs/bds-radio.cjs.entry.js +2 -2
- package/dist/cjs/bds-select.cjs.entry.js +394 -0
- package/dist/cjs/bds-slider.cjs.entry.js +655 -0
- package/dist/cjs/bds-tag.cjs.entry.js +1 -1
- package/dist/cjs/bds-text-field.cjs.entry.js +8 -3
- package/dist/cjs/bds-toggle.cjs.entry.js +1 -1
- package/dist/cjs/bds-tooltip_2.cjs.entry.js +7 -5
- package/dist/cjs/boreal-web-components.cjs.js +1 -1
- package/dist/cjs/checkbox-form-association-DTEpHXUD.js +43 -0
- package/dist/cjs/{getOffset-k4ezB-eT.js → getOffset-CsDHFjPW.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +16 -10
- package/dist/collection/components/actions/bds-button/bds-button.css +36 -36
- package/dist/collection/components/actions/bds-button/bds-button.js +29 -5
- package/dist/collection/components/actions/bds-button-group/bds-button-group.css +1 -1
- package/dist/collection/components/actions/bds-button-group/bds-button-group.js +21 -2
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.js +136 -3
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.css +5 -2
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.js +20 -7
- package/dist/collection/components/actions/bds-toggle/bds-toggle.css +3 -3
- package/dist/collection/components/feedback/bds-tag/bds-tag.css +6 -6
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox/bds-checkbox.css +132 -0
- package/dist/collection/components/forms/bds-checkbox/{bds-checkbox.js → bds-checkbox/bds-checkbox.js} +135 -38
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-button/bds-checkbox-button.css +113 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-button/bds-checkbox-button.js +382 -0
- package/dist/collection/components/forms/{bds-checkbox-card → bds-checkbox/bds-checkbox-card}/bds-checkbox-card.css +15 -3
- package/dist/collection/components/forms/{bds-checkbox-card → bds-checkbox/bds-checkbox-card}/bds-checkbox-card.js +97 -51
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/bds-checkbox-group.css +55 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/bds-checkbox-group.js +648 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/types/enum.js +5 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/types/index.js +3 -0
- package/dist/collection/components/forms/bds-checkbox/utils/checkbox-form-association.js +39 -0
- package/dist/collection/components/forms/bds-checkbox/utils/index.js +1 -0
- package/dist/collection/components/forms/bds-flag/bds-flag.js +1 -1
- package/dist/collection/components/forms/bds-radio/{bds-radio.css → bds-radio/bds-radio.css} +3 -3
- package/dist/collection/components/forms/bds-radio/{bds-radio.js → bds-radio/bds-radio.js} +2 -2
- package/dist/collection/components/forms/{bds-radio-button → bds-radio/bds-radio-button}/bds-radio-button.css +12 -8
- package/dist/collection/components/forms/{bds-radio-button → bds-radio/bds-radio-button}/bds-radio-button.js +2 -2
- package/dist/collection/components/forms/{bds-radio-card → bds-radio/bds-radio-card}/bds-radio-card.css +2 -2
- package/dist/collection/components/forms/{bds-radio-card → bds-radio/bds-radio-card}/bds-radio-card.js +9 -9
- package/dist/collection/components/forms/{bds-radio-group → bds-radio/bds-radio-group}/bds-radio-group.js +51 -23
- package/dist/collection/components/forms/bds-select/bds-select.css +23 -0
- package/dist/collection/components/forms/bds-select/bds-select.js +431 -0
- package/dist/collection/components/forms/bds-slider/bds-slider.css +213 -0
- package/dist/collection/components/forms/bds-slider/bds-slider.js +847 -0
- package/dist/collection/components/forms/bds-slider/helpers/SliderDOMController.js +61 -0
- package/dist/collection/components/forms/bds-slider/helpers/SliderService.js +93 -0
- package/dist/collection/components/forms/bds-slider/helpers/index.js +3 -0
- package/dist/collection/components/forms/bds-slider/helpers/parseValues.js +43 -0
- package/dist/collection/components/forms/bds-slider/types/ISlider.js +1 -0
- package/dist/collection/components/forms/bds-slider/types/ISliderOptions.js +1 -0
- package/dist/collection/components/forms/bds-slider/types/enum.js +16 -0
- package/dist/collection/components/forms/bds-slider/types/index.js +5 -0
- package/dist/collection/components/forms/bds-slider/types/types.js +1 -0
- package/dist/collection/components/forms/bds-text-field/bds-text-field.css +10 -3
- package/dist/collection/components/forms/bds-text-field/bds-text-field.js +47 -2
- package/dist/collection/components/helpers/bds-divider/bds-divider.js +1 -1
- package/dist/collection/components/images-icons/bds-avatar/bds-avatar.js +1 -1
- package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/bds-grid.js +3 -3
- package/dist/collection/components/layouts/bds-grid/bds-grid/types/IGrid.js +1 -0
- package/dist/collection/components/layouts/bds-grid/bds-grid/types/types.js +1 -0
- package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/bds-grid-item.js +9 -9
- package/dist/collection/components/layouts/bds-grid/bds-grid-item/types/IGridItem.js +1 -0
- package/dist/collection/components/layouts/bds-grid/bds-grid-item/types/types.js +1 -0
- package/dist/collection/components/navigation/bds-breadcrumb/bds-breadcrumb.css +21 -0
- package/dist/collection/components/navigation/bds-breadcrumb/bds-breadcrumb.js +292 -0
- package/dist/collection/components/navigation/bds-breadcrumb/types/IBreadcrumb.js +1 -0
- package/dist/collection/components/navigation/bds-breadcrumb-item/bds-breadcrumb-item.css +64 -0
- package/dist/collection/components/navigation/bds-breadcrumb-item/bds-breadcrumb-item.js +369 -0
- package/dist/collection/components/navigation/bds-breadcrumb-item/types/IBreadcrumbItem.js +1 -0
- package/dist/collection/components/overlays/bds-dialog/bds-dialog.css +1 -1
- package/dist/collection/components/overlays/bds-dialog/bds-dialog.js +2 -2
- package/dist/collection/components/overlays/bds-popover/bds-popover.js +49 -3
- package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.js +1 -1
- package/dist/collection/components/titles-text/bds-typography/bds-typography.js +30 -47
- package/dist/collection/components/titles-text/bds-typography/utils/bds-typography-utils.js +1 -1
- package/dist/collection/css/boreal.css +60 -0
- package/dist/collection/css/theme-connect.css +15 -0
- package/dist/collection/css/theme-engage.css +15 -0
- package/dist/collection/css/theme-protect.css +15 -0
- package/dist/collection/css/theme-proximus.css +15 -0
- package/dist/collection/mixins/menu-behavior.mixin.js +1 -1
- package/dist/collection/scss/maps/_theme-connect.scss +16 -1
- package/dist/collection/scss/maps/_theme-engage.scss +16 -1
- package/dist/collection/scss/maps/_theme-protect.scss +16 -1
- package/dist/collection/scss/maps/_theme-proximus.scss +16 -1
- package/dist/collection/scss/variables/_theme-connect.scss +16 -1
- package/dist/collection/scss/variables/_theme-engage.scss +16 -1
- package/dist/collection/scss/variables/_theme-protect.scss +16 -1
- package/dist/collection/scss/variables/_theme-proximus.scss +16 -1
- package/dist/collection/types/index.js +0 -1
- package/dist/collection/utils/a11y/index.js +4 -0
- package/dist/collection/utils/a11y/keyboard/KeyboardController.js +566 -0
- package/dist/collection/utils/a11y/keyboard/_constants.js +30 -0
- package/dist/collection/utils/a11y/keyboard/focus/aria-activedescendant.js +41 -0
- package/dist/collection/utils/a11y/keyboard/focus/resolve.js +48 -0
- package/dist/collection/utils/a11y/keyboard/focus/roving-tabindex.js +55 -0
- package/dist/collection/utils/a11y/keyboard/navigation/grid-navigation.js +194 -0
- package/dist/collection/utils/a11y/keyboard/navigation/linear-navigation.js +137 -0
- package/dist/collection/utils/a11y/keyboard/types/IKeyboardController.js +1 -0
- package/dist/collection/utils/a11y/keyboard/types/index.js +2 -0
- package/dist/collection/utils/a11y/keyboard/types/types.js +1 -0
- package/dist/collection/utils/constants/common/Keys.js +25 -6
- package/dist/collection/utils/dom/elements.js +63 -0
- package/dist/css/boreal.css +60 -0
- package/dist/css/theme-connect.css +15 -0
- package/dist/css/theme-engage.css +15 -0
- package/dist/css/theme-protect.css +15 -0
- package/dist/css/theme-proximus.css +15 -0
- package/dist/esm/KeyboardController-DcnXb5F5.js +1064 -0
- package/dist/esm/Keys-7G4h4DI7.js +31 -0
- package/dist/esm/bds-avatar.entry.js +1 -1
- package/dist/esm/bds-breadcrumb-item.entry.js +104 -0
- package/dist/esm/bds-breadcrumb.entry.js +125 -0
- package/dist/esm/bds-button-group.entry.js +23 -2
- package/dist/esm/bds-button.entry.js +33 -6
- package/dist/esm/bds-checkbox-button.entry.js +117 -0
- package/dist/esm/bds-checkbox-card.entry.js +37 -23
- package/dist/esm/bds-checkbox-group.entry.js +290 -0
- package/dist/esm/bds-checkbox.entry.js +62 -31
- package/dist/esm/bds-dialog.entry.js +3 -3
- package/dist/esm/bds-divider.entry.js +1 -1
- package/dist/esm/bds-flag.entry.js +1 -1
- package/dist/esm/bds-grid-item.entry.js +1 -1
- package/dist/esm/bds-grid.entry.js +1 -1
- package/dist/esm/bds-list-menu-item.entry.js +19 -8
- package/dist/esm/bds-list-menu.entry.js +38 -3
- package/dist/esm/bds-popover.entry.js +13 -5
- package/dist/esm/bds-radio-button.entry.js +2 -2
- package/dist/esm/bds-radio-card.entry.js +2 -2
- package/dist/esm/bds-radio-group.entry.js +14 -8
- package/dist/esm/bds-radio.entry.js +2 -2
- package/dist/esm/bds-select.entry.js +392 -0
- package/dist/esm/bds-slider.entry.js +653 -0
- package/dist/esm/bds-tag.entry.js +1 -1
- package/dist/esm/bds-text-field.entry.js +8 -3
- package/dist/esm/bds-toggle.entry.js +1 -1
- package/dist/esm/bds-tooltip_2.entry.js +7 -5
- package/dist/esm/boreal-web-components.js +1 -1
- package/dist/esm/checkbox-form-association-cgdh1LO-.js +41 -0
- package/dist/esm/{getOffset-BYS3c13B.js → getOffset-DCLpJBcp.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/KeyboardController-DcnXb5F5.js +1 -0
- package/dist/esm-es5/Keys-7G4h4DI7.js +1 -0
- package/dist/esm-es5/bds-avatar.entry.js +1 -1
- package/dist/esm-es5/bds-breadcrumb-item.entry.js +1 -0
- package/dist/esm-es5/bds-breadcrumb.entry.js +1 -0
- package/dist/esm-es5/bds-button-group.entry.js +1 -1
- package/dist/esm-es5/bds-button.entry.js +1 -1
- package/dist/esm-es5/bds-checkbox-button.entry.js +1 -0
- package/dist/esm-es5/bds-checkbox-card.entry.js +1 -1
- package/dist/esm-es5/bds-checkbox-group.entry.js +1 -0
- package/dist/esm-es5/bds-checkbox.entry.js +1 -1
- package/dist/esm-es5/bds-dialog.entry.js +1 -1
- package/dist/esm-es5/bds-divider.entry.js +1 -1
- package/dist/esm-es5/bds-flag.entry.js +1 -1
- package/dist/esm-es5/bds-grid-item.entry.js +1 -1
- package/dist/esm-es5/bds-grid.entry.js +1 -1
- package/dist/esm-es5/bds-list-menu-item.entry.js +1 -1
- package/dist/esm-es5/bds-list-menu.entry.js +1 -1
- package/dist/esm-es5/bds-popover.entry.js +1 -1
- package/dist/esm-es5/bds-radio-button.entry.js +1 -1
- package/dist/esm-es5/bds-radio-card.entry.js +1 -1
- package/dist/esm-es5/bds-radio-group.entry.js +1 -1
- package/dist/esm-es5/bds-radio.entry.js +1 -1
- package/dist/esm-es5/bds-select.entry.js +1 -0
- package/dist/esm-es5/bds-slider.entry.js +1 -0
- package/dist/esm-es5/bds-tag.entry.js +1 -1
- package/dist/esm-es5/bds-text-field.entry.js +1 -1
- package/dist/esm-es5/bds-toggle.entry.js +1 -1
- package/dist/esm-es5/bds-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/boreal-web-components.js +1 -1
- package/dist/esm-es5/checkbox-form-association-cgdh1LO-.js +1 -0
- package/dist/esm-es5/{getOffset-BYS3c13B.js → getOffset-DCLpJBcp.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/scss/maps/_theme-connect.scss +16 -1
- package/dist/scss/maps/_theme-engage.scss +16 -1
- package/dist/scss/maps/_theme-protect.scss +16 -1
- package/dist/scss/maps/_theme-proximus.scss +16 -1
- package/dist/scss/variables/_theme-connect.scss +16 -1
- package/dist/scss/variables/_theme-engage.scss +16 -1
- package/dist/scss/variables/_theme-protect.scss +16 -1
- package/dist/scss/variables/_theme-proximus.scss +16 -1
- package/dist/types/components/actions/bds-button/bds-button.d.ts +4 -0
- package/dist/types/components/actions/bds-button-group/bds-button-group.d.ts +4 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.d.ts +13 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/IListMenu.d.ts +3 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.d.ts +4 -1
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.d.ts +1 -0
- package/dist/types/components/actions/bds-toggle/types/IToggle.d.ts +1 -1
- package/dist/types/components/forms/bds-checkbox/{bds-checkbox.d.ts → bds-checkbox/bds-checkbox.d.ts} +23 -10
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-button/bds-checkbox-button.d.ts +68 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-button/types/ICheckboxButton.d.ts +15 -0
- package/dist/types/components/forms/{bds-checkbox-card → bds-checkbox/bds-checkbox-card}/bds-checkbox-card.d.ts +15 -22
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-card/types/ICheckboxCard.d.ts +9 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/bds-checkbox-group.d.ts +86 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/ICheckboxGroup.d.ts +27 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/enum.d.ts +6 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/index.d.ts +4 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/types.d.ts +4 -0
- package/dist/types/components/forms/bds-checkbox/types/ICheckbox.d.ts +7 -22
- package/dist/types/components/forms/bds-checkbox/utils/checkbox-form-association.d.ts +10 -0
- package/dist/types/components/forms/bds-checkbox/utils/index.d.ts +2 -0
- package/dist/types/components/forms/bds-radio/{bds-radio.d.ts → bds-radio/bds-radio.d.ts} +1 -1
- package/dist/types/components/forms/{bds-radio-button → bds-radio/bds-radio-button}/bds-radio-button.d.ts +1 -1
- package/dist/types/components/forms/{bds-radio-button → bds-radio/bds-radio-button}/types/IRadioButton.d.ts +1 -0
- package/dist/types/components/forms/{bds-radio-card → bds-radio/bds-radio-card}/bds-radio-card.d.ts +1 -1
- package/dist/types/components/forms/{bds-radio-group → bds-radio/bds-radio-group}/bds-radio-group.d.ts +13 -10
- package/dist/types/components/forms/bds-radio/bds-radio-group/types/IRadioGroup.d.ts +20 -0
- package/dist/types/components/forms/bds-select/bds-select.d.ts +98 -0
- package/dist/types/components/forms/bds-select/types/ISelect.d.ts +6 -0
- package/dist/types/components/forms/bds-slider/bds-slider.d.ts +176 -0
- package/dist/types/components/forms/bds-slider/helpers/SliderDOMController.d.ts +38 -0
- package/dist/types/components/forms/bds-slider/helpers/SliderService.d.ts +44 -0
- package/dist/types/components/forms/bds-slider/helpers/index.d.ts +4 -0
- package/dist/types/components/forms/bds-slider/helpers/parseValues.d.ts +18 -0
- package/dist/types/components/forms/bds-slider/types/ChangeDetail.d.ts +9 -0
- package/dist/types/components/forms/bds-slider/types/ISlider.d.ts +17 -0
- package/dist/types/components/forms/bds-slider/types/ISliderOptions.d.ts +31 -0
- package/dist/types/components/forms/bds-slider/types/enum.d.ts +17 -0
- package/dist/types/components/forms/bds-slider/types/index.d.ts +6 -0
- package/dist/types/components/forms/bds-slider/types/types.d.ts +5 -0
- package/dist/types/components/forms/bds-text-field/bds-text-field.d.ts +4 -0
- package/dist/types/components/navigation/bds-breadcrumb/bds-breadcrumb.d.ts +57 -0
- package/dist/types/components/navigation/bds-breadcrumb/types/IBreadcrumb.d.ts +17 -0
- package/dist/types/components/navigation/bds-breadcrumb-item/bds-breadcrumb-item.d.ts +83 -0
- package/dist/types/components/navigation/bds-breadcrumb-item/types/IBreadcrumbItem.d.ts +20 -0
- package/dist/types/components/overlays/bds-popover/bds-popover.d.ts +4 -0
- package/dist/types/components/titles-text/bds-typography/bds-typography.d.ts +2 -46
- package/dist/types/components/titles-text/bds-typography/types/ITypography.d.ts +1 -0
- package/dist/types/components.d.ts +1136 -277
- package/dist/types/types/form.d.ts +24 -0
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/utils/a11y/index.d.ts +4 -0
- package/dist/types/utils/a11y/keyboard/KeyboardController.d.ts +321 -0
- package/dist/types/utils/a11y/keyboard/_constants.d.ts +28 -0
- package/dist/types/utils/a11y/keyboard/focus/aria-activedescendant.d.ts +17 -0
- package/dist/types/utils/a11y/keyboard/focus/resolve.d.ts +23 -0
- package/dist/types/utils/a11y/keyboard/focus/roving-tabindex.d.ts +20 -0
- package/dist/types/utils/a11y/keyboard/navigation/grid-navigation.d.ts +9 -0
- package/dist/types/utils/a11y/keyboard/navigation/linear-navigation.d.ts +13 -0
- package/dist/types/utils/a11y/keyboard/types/IKeyboardController.d.ts +125 -0
- package/dist/types/utils/a11y/keyboard/types/index.d.ts +3 -0
- package/dist/types/utils/a11y/keyboard/types/types.d.ts +6 -0
- package/dist/types/utils/constants/common/Keys.d.ts +23 -6
- package/dist/types/utils/dom/elements.d.ts +41 -0
- package/package.json +1 -1
- package/components-build/p-Cbibqaz0.js +0 -1
- package/components-build/p-ClR-wgiT.js +0 -1
- package/components-build/p-N_tqtRV2.js +0 -1
- package/components-build/p-bAMuJ4Jx.js +0 -1
- package/components-build/p-c2z3tneT.js +0 -1
- package/components-build/p-dz9-Q2N8.js +0 -1
- package/components-build/p-iq2UuV7c.js +0 -1
- package/dist/boreal-web-components/p-06DrzEMB.system.js +0 -1
- package/dist/boreal-web-components/p-11e4c0ec.system.entry.js +0 -1
- package/dist/boreal-web-components/p-148d510f.entry.js +0 -1
- package/dist/boreal-web-components/p-277f142e.system.entry.js +0 -1
- package/dist/boreal-web-components/p-2be4aa3a.system.entry.js +0 -1
- package/dist/boreal-web-components/p-340896b2.entry.js +0 -1
- package/dist/boreal-web-components/p-3d4ce8eb.system.entry.js +0 -1
- package/dist/boreal-web-components/p-44a8fde5.entry.js +0 -1
- package/dist/boreal-web-components/p-5681b294.system.entry.js +0 -1
- package/dist/boreal-web-components/p-5ed75075.entry.js +0 -1
- package/dist/boreal-web-components/p-635f676b.system.entry.js +0 -1
- package/dist/boreal-web-components/p-68b83680.system.entry.js +0 -1
- package/dist/boreal-web-components/p-6a60d134.system.entry.js +0 -1
- package/dist/boreal-web-components/p-7e672cce.entry.js +0 -1
- package/dist/boreal-web-components/p-81401e2a.system.entry.js +0 -1
- package/dist/boreal-web-components/p-8289e506.entry.js +0 -1
- package/dist/boreal-web-components/p-82d15372.entry.js +0 -1
- package/dist/boreal-web-components/p-851c06f2.entry.js +0 -1
- package/dist/boreal-web-components/p-8a3716ec.entry.js +0 -1
- package/dist/boreal-web-components/p-8f4f8af0.system.entry.js +0 -1
- package/dist/boreal-web-components/p-DlYG-OVB.js +0 -1
- package/dist/boreal-web-components/p-DpnBDSUm.system.js +0 -1
- package/dist/boreal-web-components/p-a73659ac.system.entry.js +0 -1
- package/dist/boreal-web-components/p-b2ad9535.system.entry.js +0 -1
- package/dist/boreal-web-components/p-d4c30d2b.entry.js +0 -1
- package/dist/boreal-web-components/p-db0c10b9.system.entry.js +0 -1
- package/dist/boreal-web-components/p-dca16a3d.entry.js +0 -1
- package/dist/boreal-web-components/p-de846c43.system.entry.js +0 -1
- package/dist/boreal-web-components/p-df087e23.system.entry.js +0 -1
- package/dist/boreal-web-components/p-dfb4854e.entry.js +0 -1
- package/dist/boreal-web-components/p-dz9-Q2N8.js +0 -1
- package/dist/boreal-web-components/p-e09b4d14.system.entry.js +0 -1
- package/dist/boreal-web-components/p-e7af1e1a.entry.js +0 -1
- package/dist/boreal-web-components/p-f792aa74.entry.js +0 -1
- package/dist/cjs/Keys-rKl2za5q.js +0 -18
- package/dist/cjs/menu-BxKaEajh.js +0 -8
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox.css +0 -91
- package/dist/esm/Keys-DlYG-OVB.js +0 -16
- package/dist/esm/menu-dz9-Q2N8.js +0 -6
- package/dist/esm-es5/Keys-DlYG-OVB.js +0 -1
- package/dist/esm-es5/menu-dz9-Q2N8.js +0 -1
- package/dist/types/components/forms/bds-checkbox-card/types/ICheckboxCard.d.ts +0 -8
- package/dist/types/components/forms/bds-radio-group/types/IRadioGroup.d.ts +0 -19
- package/dist/types/types/IFormProps.d.ts +0 -25
- /package/dist/collection/components/forms/{bds-checkbox-card/types/ICheckboxCard.js → bds-checkbox/bds-checkbox-button/types/ICheckboxButton.js} +0 -0
- /package/dist/collection/components/forms/{bds-radio-button/types/IRadioButton.js → bds-checkbox/bds-checkbox-card/types/ICheckboxCard.js} +0 -0
- /package/dist/collection/components/forms/{bds-radio-card/types/IRadioCard.js → bds-checkbox/bds-checkbox-group/types/ICheckboxGroup.js} +0 -0
- /package/dist/collection/components/forms/{bds-radio-group → bds-checkbox/bds-checkbox-group}/types/types.js +0 -0
- /package/dist/collection/components/{layouts/bds-grid/grid/types/IGrid.js → forms/bds-radio/bds-radio/types/IRadio.js} +0 -0
- /package/dist/collection/components/forms/{bds-radio-group/types/IRadioGroup.js → bds-radio/bds-radio-button/types/IRadioButton.js} +0 -0
- /package/dist/collection/components/forms/bds-radio/{types/IRadio.js → bds-radio-card/types/IRadioCard.js} +0 -0
- /package/dist/collection/components/forms/{bds-radio-group → bds-radio/bds-radio-group}/bds-radio-group.css +0 -0
- /package/dist/collection/components/{layouts/bds-grid/grid-item/types/IGridItem.js → forms/bds-radio/bds-radio-group/types/IRadioGroup.js} +0 -0
- /package/dist/collection/components/forms/{bds-radio-group → bds-radio/bds-radio-group}/types/enum.js +0 -0
- /package/dist/collection/components/{layouts/bds-grid/grid-item → forms/bds-radio/bds-radio-group}/types/types.js +0 -0
- /package/dist/collection/components/{layouts/bds-grid/grid/types/types.js → forms/bds-select/types/ISelect.js} +0 -0
- /package/dist/collection/{types/IFormProps.js → components/forms/bds-slider/types/ChangeDetail.js} +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/bds-grid.css +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/types/enum.js +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/types/index.js +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/bds-grid-item.css +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/enum.js +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/index.js +0 -0
- /package/dist/types/components/forms/bds-radio/{types → bds-radio/types}/IRadio.d.ts +0 -0
- /package/dist/types/components/forms/{bds-radio-card → bds-radio/bds-radio-card}/types/IRadioCard.d.ts +0 -0
- /package/dist/types/components/forms/{bds-radio-group → bds-radio/bds-radio-group}/types/enum.d.ts +0 -0
- /package/dist/types/components/forms/{bds-radio-group → bds-radio/bds-radio-group}/types/types.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/bds-grid.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/IGrid.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/enum.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/index.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/types.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/bds-grid-item.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/IGridItem.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/enum.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/index.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/types.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(a,s,i){if(i||arguments.length===2)for(var n=0,t=s.length,o;n<t;n++){if(o||!(n in s)){if(!o)o=Array.prototype.slice.call(s,0,n);o[n]=s[n]}}return a.concat(o||Array.prototype.slice.call(s))};import{r as registerInstance,d as getAssetPath,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{v as validatePropValue}from"./validateProps-kGnB15Lz.js";var FlagIdentifier={ISO2:"iso2",ISO3:"iso3",CODE:"code"};var AlignFlag={LEFT:"left",RIGHT:"right"};var Shape={CIRCLE:"circle",SQUARE:"square",RECTANGLE:"rectangle"};var allCountries=[{capital:"Kabul",iso2:"af",continent:"Asia",flag_1x1:"flags/1x1/af.svg",flag_4x3:"flags/4x3/af.svg",iso:true,name:"Afghanistan",country:"93",iso3:"AFG"},{capital:"Mariehamn",iso2:"ax",continent:"Europe",flag_1x1:"flags/1x1/ax.svg",flag_4x3:"flags/4x3/ax.svg",iso:true,name:"Aland Islands",country:"358-18",iso3:"ALA"},{capital:"Tirana",iso2:"al",continent:"Europe",flag_1x1:"flags/1x1/al.svg",flag_4x3:"flags/4x3/al.svg",iso:true,name:"Albania",country:"355",iso3:"ALB"},{capital:"Algiers",iso2:"dz",continent:"Africa",flag_1x1:"flags/1x1/dz.svg",flag_4x3:"flags/4x3/dz.svg",iso:true,name:"Algeria",country:"213",iso3:"DZA"},{capital:"Pago Pago",iso2:"as",continent:"Oceania",flag_1x1:"flags/1x1/as.svg",flag_4x3:"flags/4x3/as.svg",iso:true,name:"American Samoa",country:"1-684",iso3:"ASM"},{capital:"Andorra la Vella",iso2:"ad",continent:"Europe",flag_1x1:"flags/1x1/ad.svg",flag_4x3:"flags/4x3/ad.svg",iso:true,name:"Andorra",country:"376",iso3:"AND"},{capital:"Luanda",iso2:"ao",continent:"Africa",flag_1x1:"flags/1x1/ao.svg",flag_4x3:"flags/4x3/ao.svg",iso:true,name:"Angola",country:"244",iso3:"AGO"},{capital:"The Valley",iso2:"ai",continent:"North America",flag_1x1:"flags/1x1/ai.svg",flag_4x3:"flags/4x3/ai.svg",iso:true,name:"Anguilla",country:"1-264",iso3:"AIA"},{capital:"St. John's",iso2:"ag",continent:"North America",flag_1x1:"flags/1x1/ag.svg",flag_4x3:"flags/4x3/ag.svg",iso:true,name:"Antigua and Barbuda",country:"1-268",iso3:"ATG"},{capital:"Buenos Aires",iso2:"ar",continent:"South America",flag_1x1:"flags/1x1/ar.svg",flag_4x3:"flags/4x3/ar.svg",iso:true,name:"Argentina",country:"54",iso3:"ARG"},{capital:"Yerevan",iso2:"am",continent:"Asia",flag_1x1:"flags/1x1/am.svg",flag_4x3:"flags/4x3/am.svg",iso:true,name:"Armenia",country:"374",iso3:"ARM"},{capital:"Oranjestad",iso2:"aw",continent:"South America",flag_1x1:"flags/1x1/aw.svg",flag_4x3:"flags/4x3/aw.svg",iso:true,name:"Aruba",country:"297",iso3:"ABW"},{capital:"Canberra",iso2:"au",continent:"Oceania",flag_1x1:"flags/1x1/au.svg",flag_4x3:"flags/4x3/au.svg",iso:true,name:"Australia",country:"61",iso3:"AUS"},{capital:"Vienna",iso2:"at",continent:"Europe",flag_1x1:"flags/1x1/at.svg",flag_4x3:"flags/4x3/at.svg",iso:true,name:"Austria",country:"43",iso3:"AUT"},{capital:"Baku",iso2:"az",continent:"Asia",flag_1x1:"flags/1x1/az.svg",flag_4x3:"flags/4x3/az.svg",iso:true,name:"Azerbaijan",country:"994",iso3:"AZE"},{capital:"Nassau",iso2:"bs",continent:"North America",flag_1x1:"flags/1x1/bs.svg",flag_4x3:"flags/4x3/bs.svg",iso:true,name:"Bahamas",country:"1-242",iso3:"BHS"},{capital:"Manama",iso2:"bh",continent:"Asia",flag_1x1:"flags/1x1/bh.svg",flag_4x3:"flags/4x3/bh.svg",iso:true,name:"Bahrain",country:"973",iso3:"BHR"},{capital:"Dhaka",iso2:"bd",continent:"Asia",flag_1x1:"flags/1x1/bd.svg",flag_4x3:"flags/4x3/bd.svg",iso:true,name:"Bangladesh",country:"880",iso3:"BGD"},{capital:"Bridgetown",iso2:"bb",continent:"North America",flag_1x1:"flags/1x1/bb.svg",flag_4x3:"flags/4x3/bb.svg",iso:true,name:"Barbados",country:"1-246",iso3:"BRB"},{capital:"Minsk",iso2:"by",continent:"Europe",flag_1x1:"flags/1x1/by.svg",flag_4x3:"flags/4x3/by.svg",iso:true,name:"Belarus",country:"375",iso3:"BLR"},{capital:"Brussels",iso2:"be",continent:"Europe",flag_1x1:"flags/1x1/be.svg",flag_4x3:"flags/4x3/be.svg",iso:true,name:"Belgium",country:"32",iso3:"BEL"},{capital:"Belmopan",iso2:"bz",continent:"North America",flag_1x1:"flags/1x1/bz.svg",flag_4x3:"flags/4x3/bz.svg",iso:true,name:"Belize",country:"501",iso3:"BLZ"},{capital:"Porto-Novo",iso2:"bj",continent:"Africa",flag_1x1:"flags/1x1/bj.svg",flag_4x3:"flags/4x3/bj.svg",iso:true,name:"Benin",country:"229",iso3:"BEN"},{capital:"Hamilton",iso2:"bm",continent:"North America",flag_1x1:"flags/1x1/bm.svg",flag_4x3:"flags/4x3/bm.svg",iso:true,name:"Bermuda",country:"1-441",iso3:"BMU"},{capital:"Thimphu",iso2:"bt",continent:"Asia",flag_1x1:"flags/1x1/bt.svg",flag_4x3:"flags/4x3/bt.svg",iso:true,name:"Bhutan",country:"975",iso3:"BTN"},{capital:"Sucre",iso2:"bo",continent:"South America",flag_1x1:"flags/1x1/bo.svg",flag_4x3:"flags/4x3/bo.svg",iso:true,name:"Bolivia",country:"591",iso3:"BOL"},{capital:"Kralendijk",iso2:"bq",continent:"South America",flag_1x1:"flags/1x1/bq.svg",flag_4x3:"flags/4x3/bq.svg",iso:true,name:"Bonaire, Sint Eustatius and Saba",country:"599",iso3:"BES"},{capital:"Sarajevo",iso2:"ba",continent:"Europe",flag_1x1:"flags/1x1/ba.svg",flag_4x3:"flags/4x3/ba.svg",iso:true,name:"Bosnia and Herzegovina",country:"387",iso3:"BIH"},{capital:"Gaborone",iso2:"bw",continent:"Africa",flag_1x1:"flags/1x1/bw.svg",flag_4x3:"flags/4x3/bw.svg",iso:true,name:"Botswana",country:"267",iso3:"BWA"},{capital:"Brasília",iso2:"br",continent:"South America",flag_1x1:"flags/1x1/br.svg",flag_4x3:"flags/4x3/br.svg",iso:true,name:"Brazil",country:"55",iso3:"BRA"},{capital:"Diego Garcia",iso2:"io",continent:"Asia",flag_1x1:"flags/1x1/io.svg",flag_4x3:"flags/4x3/io.svg",iso:true,name:"British Indian Ocean Territory",country:"246",iso3:"IOT"},{capital:"Bandar Seri Begawan",iso2:"bn",continent:"Asia",flag_1x1:"flags/1x1/bn.svg",flag_4x3:"flags/4x3/bn.svg",iso:true,name:"Brunei Darussalam",country:"673",iso3:"BRN"},{capital:"Sofia",iso2:"bg",continent:"Europe",flag_1x1:"flags/1x1/bg.svg",flag_4x3:"flags/4x3/bg.svg",iso:true,name:"Bulgaria",country:"359",iso3:"BGR"},{capital:"Ouagadougou",iso2:"bf",continent:"Africa",flag_1x1:"flags/1x1/bf.svg",flag_4x3:"flags/4x3/bf.svg",iso:true,name:"Burkina Faso",country:"226",iso3:"BFA"},{capital:"Bujumbura",iso2:"bi",continent:"Africa",flag_1x1:"flags/1x1/bi.svg",flag_4x3:"flags/4x3/bi.svg",iso:true,name:"Burundi",country:"257",iso3:"BDI"},{capital:"Praia",iso2:"cv",continent:"Africa",flag_1x1:"flags/1x1/cv.svg",flag_4x3:"flags/4x3/cv.svg",iso:true,name:"Cabo Verde",country:"238",iso3:"CPV"},{capital:"Phnom Penh",iso2:"kh",continent:"Asia",flag_1x1:"flags/1x1/kh.svg",flag_4x3:"flags/4x3/kh.svg",iso:true,name:"Cambodia",country:"855",iso3:"KHM"},{capital:"Yaoundé",iso2:"cm",continent:"Africa",flag_1x1:"flags/1x1/cm.svg",flag_4x3:"flags/4x3/cm.svg",iso:true,name:"Cameroon",country:"237",iso3:"CMR"},{capital:"George Town",iso2:"ky",continent:"North America",flag_1x1:"flags/1x1/ky.svg",flag_4x3:"flags/4x3/ky.svg",iso:true,name:"Cayman Islands",country:"1-345",iso3:"CYM"},{capital:"Bangui",iso2:"cf",continent:"Africa",flag_1x1:"flags/1x1/cf.svg",flag_4x3:"flags/4x3/cf.svg",iso:true,name:"Central African Republic",country:"236",iso3:"CAF"},{capital:"N'Djamena",iso2:"td",continent:"Africa",flag_1x1:"flags/1x1/td.svg",flag_4x3:"flags/4x3/td.svg",iso:true,name:"Chad",country:"235",iso3:"TCD"},{capital:"Santiago",iso2:"cl",continent:"South America",flag_1x1:"flags/1x1/cl.svg",flag_4x3:"flags/4x3/cl.svg",iso:true,name:"Chile",country:"56",iso3:"CHL"},{capital:"Beijing",iso2:"cn",continent:"Asia",flag_1x1:"flags/1x1/cn.svg",flag_4x3:"flags/4x3/cn.svg",iso:true,name:"China",country:"86",iso3:"CHN"},{capital:"Flying Fish Cove",iso2:"cx",continent:"Asia",flag_1x1:"flags/1x1/cx.svg",flag_4x3:"flags/4x3/cx.svg",iso:true,name:"Christmas Island",country:"61",iso3:"CXR"},{capital:"West Island",iso2:"cc",continent:"Asia",flag_1x1:"flags/1x1/cc.svg",flag_4x3:"flags/4x3/cc.svg",iso:true,name:"Cocos (Keeling) Islands",country:"61",iso3:"CCK"},{capital:"Bogotá",iso2:"co",continent:"South America",flag_1x1:"flags/1x1/co.svg",flag_4x3:"flags/4x3/co.svg",iso:true,name:"Colombia",country:"57",iso3:"COL"},{capital:"Moroni",iso2:"km",continent:"Africa",flag_1x1:"flags/1x1/km.svg",flag_4x3:"flags/4x3/km.svg",iso:true,name:"Comoros",country:"269",iso3:"COM"},{capital:"Avarua",iso2:"ck",continent:"Oceania",flag_1x1:"flags/1x1/ck.svg",flag_4x3:"flags/4x3/ck.svg",iso:true,name:"Cook Islands",country:"682",iso3:"COK"},{capital:"San José",iso2:"cr",continent:"North America",flag_1x1:"flags/1x1/cr.svg",flag_4x3:"flags/4x3/cr.svg",iso:true,name:"Costa Rica",country:"506",iso3:"CRI"},{capital:"Zagreb",iso2:"hr",continent:"Europe",flag_1x1:"flags/1x1/hr.svg",flag_4x3:"flags/4x3/hr.svg",iso:true,name:"Croatia",country:"385",iso3:"HRV"},{capital:"Havana",iso2:"cu",continent:"North America",flag_1x1:"flags/1x1/cu.svg",flag_4x3:"flags/4x3/cu.svg",iso:true,name:"Cuba",country:"53",iso3:"CUB"},{capital:"Willemstad",iso2:"cw",continent:"South America",flag_1x1:"flags/1x1/cw.svg",flag_4x3:"flags/4x3/cw.svg",iso:true,name:"Curaçao",country:"599",iso3:"CUW"},{capital:"Nicosia",iso2:"cy",continent:"Europe",flag_1x1:"flags/1x1/cy.svg",flag_4x3:"flags/4x3/cy.svg",iso:true,name:"Cyprus",country:"357",iso3:"CYP"},{capital:"Prague",iso2:"cz",continent:"Europe",flag_1x1:"flags/1x1/cz.svg",flag_4x3:"flags/4x3/cz.svg",iso:true,name:"Czech Republic",country:"420",iso3:"CZE"},{capital:"Yamoussoukro",iso2:"ci",continent:"Africa",flag_1x1:"flags/1x1/ci.svg",flag_4x3:"flags/4x3/ci.svg",iso:true,name:"Côte d'Ivoire",country:"225",iso3:"CIV"},{capital:"Kinshasa",iso2:"cd",continent:"Africa",flag_1x1:"flags/1x1/cd.svg",flag_4x3:"flags/4x3/cd.svg",iso:true,name:"Democratic Republic of the Congo",country:"243",iso3:"COD"},{capital:"Copenhagen",iso2:"dk",continent:"Europe",flag_1x1:"flags/1x1/dk.svg",flag_4x3:"flags/4x3/dk.svg",iso:true,name:"Denmark",country:"45",iso3:"DNK"},{capital:"Djibouti",iso2:"dj",continent:"Africa",flag_1x1:"flags/1x1/dj.svg",flag_4x3:"flags/4x3/dj.svg",iso:true,name:"Djibouti",country:"253",iso3:"DJI"},{capital:"Roseau",iso2:"dm",continent:"North America",flag_1x1:"flags/1x1/dm.svg",flag_4x3:"flags/4x3/dm.svg",iso:true,name:"Dominica",country:"1-767",iso3:"DMA"},{capital:"Santo Domingo",iso2:"do",continent:"North America",flag_1x1:"flags/1x1/do.svg",flag_4x3:"flags/4x3/do.svg",iso:true,name:"Dominican Republic",country:"1-809",iso3:"DOM"},{capital:"Quito",iso2:"ec",continent:"South America",flag_1x1:"flags/1x1/ec.svg",flag_4x3:"flags/4x3/ec.svg",iso:true,name:"Ecuador",country:"593",iso3:"ECU"},{capital:"Cairo",iso2:"eg",continent:"Africa",flag_1x1:"flags/1x1/eg.svg",flag_4x3:"flags/4x3/eg.svg",iso:true,name:"Egypt",country:"20",iso3:"EGY"},{capital:"San Salvador",iso2:"sv",continent:"North America",flag_1x1:"flags/1x1/sv.svg",flag_4x3:"flags/4x3/sv.svg",iso:true,name:"El Salvador",country:"503",iso3:"SLV"},{capital:"Malabo",iso2:"gq",continent:"Africa",flag_1x1:"flags/1x1/gq.svg",flag_4x3:"flags/4x3/gq.svg",iso:true,name:"Equatorial Guinea",country:"240",iso3:"GNQ"},{capital:"Asmara",iso2:"er",continent:"Africa",flag_1x1:"flags/1x1/er.svg",flag_4x3:"flags/4x3/er.svg",iso:true,name:"Eritrea",country:"291",iso3:"ERI"},{capital:"Tallinn",iso2:"ee",continent:"Europe",flag_1x1:"flags/1x1/ee.svg",flag_4x3:"flags/4x3/ee.svg",iso:true,name:"Estonia",country:"372",iso3:"EST"},{capital:"Lobamba, Mbabane",iso2:"sz",continent:"Africa",flag_1x1:"flags/1x1/sz.svg",flag_4x3:"flags/4x3/sz.svg",iso:true,name:"Eswatini",country:"268",iso3:"SWZ"},{capital:"Addis Ababa",iso2:"et",continent:"Africa",flag_1x1:"flags/1x1/et.svg",flag_4x3:"flags/4x3/et.svg",iso:true,name:"Ethiopia",country:"251",iso3:"ETH"},{capital:"Stanley",iso2:"fk",continent:"South America",flag_1x1:"flags/1x1/fk.svg",flag_4x3:"flags/4x3/fk.svg",iso:true,name:"Falkland Islands",country:"500",iso3:"FLK"},{capital:"Tórshavn",iso2:"fo",continent:"Europe",flag_1x1:"flags/1x1/fo.svg",flag_4x3:"flags/4x3/fo.svg",iso:true,name:"Faroe Islands",country:"298",iso3:"FRO"},{capital:"Palikir",iso2:"fm",continent:"Oceania",flag_1x1:"flags/1x1/fm.svg",flag_4x3:"flags/4x3/fm.svg",iso:true,name:"Federated States of Micronesia",country:"691",iso3:"FSM"},{capital:"Suva",iso2:"fj",continent:"Oceania",flag_1x1:"flags/1x1/fj.svg",flag_4x3:"flags/4x3/fj.svg",iso:true,name:"Fiji",country:"679",iso3:"FJI"},{capital:"Helsinki",iso2:"fi",continent:"Europe",flag_1x1:"flags/1x1/fi.svg",flag_4x3:"flags/4x3/fi.svg",iso:true,name:"Finland",country:"358",iso3:"FIN"},{capital:"Paris",iso2:"fr",continent:"Europe",flag_1x1:"flags/1x1/fr.svg",flag_4x3:"flags/4x3/fr.svg",iso:true,name:"France",country:"33",iso3:"FRA"},{capital:"Cayenne",iso2:"gf",continent:"South America",flag_1x1:"flags/1x1/gf.svg",flag_4x3:"flags/4x3/gf.svg",iso:true,name:"French Guiana",country:"594",iso3:"GUF"},{capital:"Papeete",iso2:"pf",continent:"Oceania",flag_1x1:"flags/1x1/pf.svg",flag_4x3:"flags/4x3/pf.svg",iso:true,name:"French Polynesia",country:"689",iso3:"PYF"},{capital:"Libreville",iso2:"ga",continent:"Africa",flag_1x1:"flags/1x1/ga.svg",flag_4x3:"flags/4x3/ga.svg",iso:true,name:"Gabon",country:"241",iso3:"GAB"},{capital:"Banjul",iso2:"gm",continent:"Africa",flag_1x1:"flags/1x1/gm.svg",flag_4x3:"flags/4x3/gm.svg",iso:true,name:"Gambia",country:"220",iso3:"GMB"},{capital:"Tbilisi",iso2:"ge",continent:"Asia",flag_1x1:"flags/1x1/ge.svg",flag_4x3:"flags/4x3/ge.svg",iso:true,name:"Georgia",country:"995",iso3:"GEO"},{capital:"Berlin",iso2:"de",continent:"Europe",flag_1x1:"flags/1x1/de.svg",flag_4x3:"flags/4x3/de.svg",iso:true,name:"Germany",country:"49",iso3:"DEU"},{capital:"Accra",iso2:"gh",continent:"Africa",flag_1x1:"flags/1x1/gh.svg",flag_4x3:"flags/4x3/gh.svg",iso:true,name:"Ghana",country:"233",iso3:"GHA"},{capital:"Gibraltar",iso2:"gi",continent:"Europe",flag_1x1:"flags/1x1/gi.svg",flag_4x3:"flags/4x3/gi.svg",iso:true,name:"Gibraltar",country:"350",iso3:"GIB"},{capital:"Athens",iso2:"gr",continent:"Europe",flag_1x1:"flags/1x1/gr.svg",flag_4x3:"flags/4x3/gr.svg",iso:true,name:"Greece",country:"30",iso3:"GRC"},{capital:"Nuuk",iso2:"gl",continent:"North America",flag_1x1:"flags/1x1/gl.svg",flag_4x3:"flags/4x3/gl.svg",iso:true,name:"Greenland",country:"299",iso3:"GRL"},{capital:"St. George's",iso2:"gd",continent:"North America",flag_1x1:"flags/1x1/gd.svg",flag_4x3:"flags/4x3/gd.svg",iso:true,name:"Grenada",country:"1-473",iso3:"GRD"},{capital:"Basse-Terre",iso2:"gp",continent:"North America",flag_1x1:"flags/1x1/gp.svg",flag_4x3:"flags/4x3/gp.svg",iso:true,name:"Guadeloupe",country:"590",iso3:"GLP"},{capital:"Hagåtña",iso2:"gu",continent:"Oceania",flag_1x1:"flags/1x1/gu.svg",flag_4x3:"flags/4x3/gu.svg",iso:true,name:"Guam",country:"1-671",iso3:"GUM"},{capital:"Guatemala City",iso2:"gt",continent:"North America",flag_1x1:"flags/1x1/gt.svg",flag_4x3:"flags/4x3/gt.svg",iso:true,name:"Guatemala",country:"502",iso3:"GTM"},{capital:"Saint Peter Port",iso2:"gg",continent:"Europe",flag_1x1:"flags/1x1/gg.svg",flag_4x3:"flags/4x3/gg.svg",iso:true,name:"Guernsey",country:"44-1481",iso3:"GGY"},{capital:"Conakry",iso2:"gn",continent:"Africa",flag_1x1:"flags/1x1/gn.svg",flag_4x3:"flags/4x3/gn.svg",iso:true,name:"Guinea",country:"224",iso3:"GIN"},{capital:"Bissau",iso2:"gw",continent:"Africa",flag_1x1:"flags/1x1/gw.svg",flag_4x3:"flags/4x3/gw.svg",iso:true,name:"Guinea-Bissau",country:"245",iso3:"GNB"},{capital:"Georgetown",iso2:"gy",continent:"South America",flag_1x1:"flags/1x1/gy.svg",flag_4x3:"flags/4x3/gy.svg",iso:true,name:"Guyana",country:"592",iso3:"GUY"},{capital:"Port-au-Prince",iso2:"ht",continent:"North America",flag_1x1:"flags/1x1/ht.svg",flag_4x3:"flags/4x3/ht.svg",iso:true,name:"Haiti",country:"509",iso3:"HTI"},{iso2:"hm",flag_1x1:"flags/1x1/hm.svg",flag_4x3:"flags/4x3/hm.svg",iso:true,name:"Heard Island and McDonald Islands",country:" ",iso3:"HMD"},{capital:"Vatican City",iso2:"va",continent:"Europe",flag_1x1:"flags/1x1/va.svg",flag_4x3:"flags/4x3/va.svg",iso:true,name:"Holy See",country:"379",iso3:"VAT"},{capital:"Tegucigalpa",iso2:"hn",continent:"North America",flag_1x1:"flags/1x1/hn.svg",flag_4x3:"flags/4x3/hn.svg",iso:true,name:"Honduras",country:"504",iso3:"HND"},{capital:"Hong Kong",iso2:"hk",continent:"Asia",flag_1x1:"flags/1x1/hk.svg",flag_4x3:"flags/4x3/hk.svg",iso:true,name:"Hong Kong",country:"852",iso3:"HKG"},{capital:"Budapest",iso2:"hu",continent:"Europe",flag_1x1:"flags/1x1/hu.svg",flag_4x3:"flags/4x3/hu.svg",iso:true,name:"Hungary",country:"36",iso3:"HUN"},{capital:"Reykjavik",iso2:"is",continent:"Europe",flag_1x1:"flags/1x1/is.svg",flag_4x3:"flags/4x3/is.svg",iso:true,name:"Iceland",country:"354",iso3:"ISL"},{capital:"New Delhi",iso2:"in",continent:"Asia",flag_1x1:"flags/1x1/in.svg",flag_4x3:"flags/4x3/in.svg",iso:true,name:"India",country:"91",iso3:"IND"},{capital:"Jakarta",iso2:"id",continent:"Asia",flag_1x1:"flags/1x1/id.svg",flag_4x3:"flags/4x3/id.svg",iso:true,name:"Indonesia",country:"62",iso3:"IDN"},{capital:"Tehran",iso2:"ir",continent:"Asia",flag_1x1:"flags/1x1/ir.svg",flag_4x3:"flags/4x3/ir.svg",iso:true,name:"Iran",country:"98",iso3:"IRN"},{capital:"Baghdad",iso2:"iq",continent:"Asia",flag_1x1:"flags/1x1/iq.svg",flag_4x3:"flags/4x3/iq.svg",iso:true,name:"Iraq",country:"964",iso3:"IRQ"},{capital:"Dublin",iso2:"ie",continent:"Europe",flag_1x1:"flags/1x1/ie.svg",flag_4x3:"flags/4x3/ie.svg",iso:true,name:"Ireland",country:"353",iso3:"IRL"},{capital:"Douglas",iso2:"im",continent:"Europe",flag_1x1:"flags/1x1/im.svg",flag_4x3:"flags/4x3/im.svg",iso:true,name:"Isle of Man",country:"44-1624",iso3:"IMN"},{capital:"Jerusalem",iso2:"il",continent:"Asia",flag_1x1:"flags/1x1/il.svg",flag_4x3:"flags/4x3/il.svg",iso:true,name:"Israel",country:"972",iso3:"ISR"},{capital:"Rome",iso2:"it",continent:"Europe",flag_1x1:"flags/1x1/it.svg",flag_4x3:"flags/4x3/it.svg",iso:true,name:"Italy",country:"39",iso3:"ITA"},{capital:"Kingston",iso2:"jm",continent:"North America",flag_1x1:"flags/1x1/jm.svg",flag_4x3:"flags/4x3/jm.svg",iso:true,name:"Jamaica",country:"1-876",iso3:"JAM"},{capital:"Tokyo",iso2:"jp",continent:"Asia",flag_1x1:"flags/1x1/jp.svg",flag_4x3:"flags/4x3/jp.svg",iso:true,name:"Japan",country:"81",iso3:"JPN"},{capital:"Saint Helier",iso2:"je",continent:"Europe",flag_1x1:"flags/1x1/je.svg",flag_4x3:"flags/4x3/je.svg",iso:true,name:"Jersey",country:"44-1534",iso3:"JEY"},{capital:"Amman",iso2:"jo",continent:"Asia",flag_1x1:"flags/1x1/jo.svg",flag_4x3:"flags/4x3/jo.svg",iso:true,name:"Jordan",country:"962",iso3:"JOR"},{capital:"Astana",iso2:"kz",continent:"Asia",flag_1x1:"flags/1x1/kz.svg",flag_4x3:"flags/4x3/kz.svg",iso:true,name:"Kazakhstan",country:"7",iso3:"KAZ"},{capital:"Nairobi",iso2:"ke",continent:"Africa",flag_1x1:"flags/1x1/ke.svg",flag_4x3:"flags/4x3/ke.svg",iso:true,name:"Kenya",country:"254",iso3:"KEN"},{capital:"South Tarawa",iso2:"ki",continent:"Oceania",flag_1x1:"flags/1x1/ki.svg",flag_4x3:"flags/4x3/ki.svg",iso:true,name:"Kiribati",country:"686",iso3:"KIR"},{capital:"Kuwait City",iso2:"kw",continent:"Asia",flag_1x1:"flags/1x1/kw.svg",flag_4x3:"flags/4x3/kw.svg",iso:true,name:"Kuwait",country:"965",iso3:"KWT"},{capital:"Bishkek",iso2:"kg",continent:"Asia",flag_1x1:"flags/1x1/kg.svg",flag_4x3:"flags/4x3/kg.svg",iso:true,name:"Kyrgyzstan",country:"996",iso3:"KGZ"},{capital:"Vientiane",iso2:"la",continent:"Asia",flag_1x1:"flags/1x1/la.svg",flag_4x3:"flags/4x3/la.svg",iso:true,name:"Laos",country:"856",iso3:"LAO"},{capital:"Riga",iso2:"lv",continent:"Europe",flag_1x1:"flags/1x1/lv.svg",flag_4x3:"flags/4x3/lv.svg",iso:true,name:"Latvia",country:"371",iso3:"LVA"},{capital:"Beirut",iso2:"lb",continent:"Asia",flag_1x1:"flags/1x1/lb.svg",flag_4x3:"flags/4x3/lb.svg",iso:true,name:"Lebanon",country:"961",iso3:"LBN"},{capital:"Maseru",iso2:"ls",continent:"Africa",flag_1x1:"flags/1x1/ls.svg",flag_4x3:"flags/4x3/ls.svg",iso:true,name:"Lesotho",country:"266",iso3:"LSO"},{capital:"Monrovia",iso2:"lr",continent:"Africa",flag_1x1:"flags/1x1/lr.svg",flag_4x3:"flags/4x3/lr.svg",iso:true,name:"Liberia",country:"231",iso3:"LBR"},{capital:"Tripoli",iso2:"ly",continent:"Africa",flag_1x1:"flags/1x1/ly.svg",flag_4x3:"flags/4x3/ly.svg",iso:true,name:"Libya",country:"218",iso3:"LBY"},{capital:"Vaduz",iso2:"li",continent:"Europe",flag_1x1:"flags/1x1/li.svg",flag_4x3:"flags/4x3/li.svg",iso:true,name:"Liechtenstein",country:"423",iso3:"LIE"},{capital:"Vilnius",iso2:"lt",continent:"Europe",flag_1x1:"flags/1x1/lt.svg",flag_4x3:"flags/4x3/lt.svg",iso:true,name:"Lithuania",country:"370",iso3:"LTU"},{capital:"Luxembourg City",iso2:"lu",continent:"Europe",flag_1x1:"flags/1x1/lu.svg",flag_4x3:"flags/4x3/lu.svg",iso:true,name:"Luxembourg",country:"352",iso3:"LUX"},{capital:"Macau",iso2:"mo",continent:"Asia",flag_1x1:"flags/1x1/mo.svg",flag_4x3:"flags/4x3/mo.svg",iso:true,name:"Macau",country:"853",iso3:"MAC"},{capital:"Antananarivo",iso2:"mg",continent:"Africa",flag_1x1:"flags/1x1/mg.svg",flag_4x3:"flags/4x3/mg.svg",iso:true,name:"Madagascar",country:"261",iso3:"MDG"},{capital:"Lilongwe",iso2:"mw",continent:"Africa",flag_1x1:"flags/1x1/mw.svg",flag_4x3:"flags/4x3/mw.svg",iso:true,name:"Malawi",country:"265",iso3:"MWI"},{capital:"Kuala Lumpur",iso2:"my",continent:"Asia",flag_1x1:"flags/1x1/my.svg",flag_4x3:"flags/4x3/my.svg",iso:true,name:"Malaysia",country:"60",iso3:"MYS"},{capital:"Malé",iso2:"mv",continent:"Asia",flag_1x1:"flags/1x1/mv.svg",flag_4x3:"flags/4x3/mv.svg",iso:true,name:"Maldives",country:"960",iso3:"MDV"},{capital:"Bamako",iso2:"ml",continent:"Africa",flag_1x1:"flags/1x1/ml.svg",flag_4x3:"flags/4x3/ml.svg",iso:true,name:"Mali",country:"223",iso3:"MLI"},{capital:"Valletta",iso2:"mt",continent:"Europe",flag_1x1:"flags/1x1/mt.svg",flag_4x3:"flags/4x3/mt.svg",iso:true,name:"Malta",country:"356",iso3:"MLT"},{capital:"Majuro",iso2:"mh",continent:"Oceania",flag_1x1:"flags/1x1/mh.svg",flag_4x3:"flags/4x3/mh.svg",iso:true,name:"Marshall Islands",country:"692",iso3:"MHL"},{capital:"Fort-de-France",iso2:"mq",continent:"North America",flag_1x1:"flags/1x1/mq.svg",flag_4x3:"flags/4x3/mq.svg",iso:true,name:"Martinique",country:"596",iso3:"MTQ"},{capital:"Nouakchott",iso2:"mr",continent:"Africa",flag_1x1:"flags/1x1/mr.svg",flag_4x3:"flags/4x3/mr.svg",iso:true,name:"Mauritania",country:"222",iso3:"MRT"},{capital:"Port Louis",iso2:"mu",continent:"Africa",flag_1x1:"flags/1x1/mu.svg",flag_4x3:"flags/4x3/mu.svg",iso:true,name:"Mauritius",country:"230",iso3:"MUS"},{capital:"Mamoudzou",iso2:"yt",continent:"Africa",flag_1x1:"flags/1x1/yt.svg",flag_4x3:"flags/4x3/yt.svg",iso:true,name:"Mayotte",country:"262",iso3:"MYT"},{capital:"Mexico City",iso2:"mx",continent:"North America",flag_1x1:"flags/1x1/mx.svg",flag_4x3:"flags/4x3/mx.svg",iso:true,name:"Mexico",country:"52",iso3:"MEX"},{capital:"Chișinău",iso2:"md",continent:"Europe",flag_1x1:"flags/1x1/md.svg",flag_4x3:"flags/4x3/md.svg",iso:true,name:"Moldova",country:"373",iso3:"MDA"},{capital:"Monaco",iso2:"mc",continent:"Europe",flag_1x1:"flags/1x1/mc.svg",flag_4x3:"flags/4x3/mc.svg",iso:true,name:"Monaco",country:"377",iso3:"MCO"},{capital:"Ulaanbaatar",iso2:"mn",continent:"Asia",flag_1x1:"flags/1x1/mn.svg",flag_4x3:"flags/4x3/mn.svg",iso:true,name:"Mongolia",country:"976",iso3:"MNG"},{capital:"Podgorica",iso2:"me",continent:"Europe",flag_1x1:"flags/1x1/me.svg",flag_4x3:"flags/4x3/me.svg",iso:true,name:"Montenegro",country:"382",iso3:"MNE"},{capital:"Little Bay, Brades, Plymouth",iso2:"ms",continent:"North America",flag_1x1:"flags/1x1/ms.svg",flag_4x3:"flags/4x3/ms.svg",iso:true,name:"Montserrat",country:"1-664",iso3:"MSR"},{capital:"Rabat",iso2:"ma",continent:"Africa",flag_1x1:"flags/1x1/ma.svg",flag_4x3:"flags/4x3/ma.svg",iso:true,name:"Morocco",country:"212",iso3:"MAR"},{capital:"Maputo",iso2:"mz",continent:"Africa",flag_1x1:"flags/1x1/mz.svg",flag_4x3:"flags/4x3/mz.svg",iso:true,name:"Mozambique",country:"258",iso3:"MOZ"},{capital:"Naypyidaw",iso2:"mm",continent:"Asia",flag_1x1:"flags/1x1/mm.svg",flag_4x3:"flags/4x3/mm.svg",iso:true,name:"Myanmar",country:"95",iso3:"MMR"},{capital:"Windhoek",iso2:"na",continent:"Africa",flag_1x1:"flags/1x1/na.svg",flag_4x3:"flags/4x3/na.svg",iso:true,name:"Namibia",country:"264",iso3:"NAM"},{capital:"Yaren District",iso2:"nr",continent:"Oceania",flag_1x1:"flags/1x1/nr.svg",flag_4x3:"flags/4x3/nr.svg",iso:true,name:"Nauru",country:"674",iso3:"NRU"},{capital:"Kathmandu",iso2:"np",continent:"Asia",flag_1x1:"flags/1x1/np.svg",flag_4x3:"flags/4x3/np.svg",iso:true,name:"Nepal",country:"977",iso3:"NPL"},{capital:"Amsterdam",iso2:"nl",continent:"Europe",flag_1x1:"flags/1x1/nl.svg",flag_4x3:"flags/4x3/nl.svg",iso:true,name:"Netherlands",country:"31",iso3:"NLD"},{capital:"Nouméa",iso2:"nc",continent:"Oceania",flag_1x1:"flags/1x1/nc.svg",flag_4x3:"flags/4x3/nc.svg",iso:true,name:"New Caledonia",country:"687",iso3:"NCL"},{capital:"Wellington",iso2:"nz",continent:"Oceania",flag_1x1:"flags/1x1/nz.svg",flag_4x3:"flags/4x3/nz.svg",iso:true,name:"New Zealand",country:"64",iso3:"NZL"},{capital:"Managua",iso2:"ni",continent:"North America",flag_1x1:"flags/1x1/ni.svg",flag_4x3:"flags/4x3/ni.svg",iso:true,name:"Nicaragua",country:"505",iso3:"NIC"},{capital:"Niamey",iso2:"ne",continent:"Africa",flag_1x1:"flags/1x1/ne.svg",flag_4x3:"flags/4x3/ne.svg",iso:true,name:"Niger",country:"227",iso3:"NER"},{capital:"Abuja",iso2:"ng",continent:"Africa",flag_1x1:"flags/1x1/ng.svg",flag_4x3:"flags/4x3/ng.svg",iso:true,name:"Nigeria",country:"234",iso3:"NGA"},{capital:"Alofi",iso2:"nu",continent:"Oceania",flag_1x1:"flags/1x1/nu.svg",flag_4x3:"flags/4x3/nu.svg",iso:true,name:"Niue",country:"683",iso3:"NIU"},{capital:"Kingston",iso2:"nf",continent:"Oceania",flag_1x1:"flags/1x1/nf.svg",flag_4x3:"flags/4x3/nf.svg",iso:true,name:"Norfolk Island",country:"672",iso3:"NFK"},{capital:"Pyongyang",iso2:"kp",continent:"Asia",flag_1x1:"flags/1x1/kp.svg",flag_4x3:"flags/4x3/kp.svg",iso:true,name:"North Korea",country:"850",iso3:"PRK"},{capital:"Skopje",iso2:"mk",continent:"Europe",flag_1x1:"flags/1x1/mk.svg",flag_4x3:"flags/4x3/mk.svg",iso:true,name:"North Macedonia",country:"389",iso3:"MKD"},{capital:"Saipan",iso2:"mp",continent:"Oceania",flag_1x1:"flags/1x1/mp.svg",flag_4x3:"flags/4x3/mp.svg",iso:true,name:"Northern Mariana Islands",country:"1-670",iso3:"MNP"},{capital:"Oslo",iso2:"no",continent:"Europe",flag_1x1:"flags/1x1/no.svg",flag_4x3:"flags/4x3/no.svg",iso:true,name:"Norway",country:"47",iso3:"NOR"},{capital:"Muscat",iso2:"om",continent:"Asia",flag_1x1:"flags/1x1/om.svg",flag_4x3:"flags/4x3/om.svg",iso:true,name:"Oman",country:"968",iso3:"OMN"},{capital:"Islamabad",iso2:"pk",continent:"Asia",flag_1x1:"flags/1x1/pk.svg",flag_4x3:"flags/4x3/pk.svg",iso:true,name:"Pakistan",country:"92",iso3:"PAK"},{capital:"Ngerulmud",iso2:"pw",continent:"Oceania",flag_1x1:"flags/1x1/pw.svg",flag_4x3:"flags/4x3/pw.svg",iso:true,name:"Palau",country:"680",iso3:"PLW"},{capital:"Panama City",iso2:"pa",continent:"North America",flag_1x1:"flags/1x1/pa.svg",flag_4x3:"flags/4x3/pa.svg",iso:true,name:"Panama",country:"507",iso3:"PAN"},{capital:"Port Moresby",iso2:"pg",continent:"Oceania",flag_1x1:"flags/1x1/pg.svg",flag_4x3:"flags/4x3/pg.svg",iso:true,name:"Papua New Guinea",country:"675",iso3:"PNG"},{capital:"Asunción",iso2:"py",continent:"South America",flag_1x1:"flags/1x1/py.svg",flag_4x3:"flags/4x3/py.svg",iso:true,name:"Paraguay",country:"595",iso3:"PRY"},{capital:"Lima",iso2:"pe",continent:"South America",flag_1x1:"flags/1x1/pe.svg",flag_4x3:"flags/4x3/pe.svg",iso:true,name:"Peru",country:"51",iso3:"PER"},{capital:"Manila",iso2:"ph",continent:"Asia",flag_1x1:"flags/1x1/ph.svg",flag_4x3:"flags/4x3/ph.svg",iso:true,name:"Philippines",country:"63",iso3:"PHL"},{capital:"Adamstown",iso2:"pn",continent:"Oceania",flag_1x1:"flags/1x1/pn.svg",flag_4x3:"flags/4x3/pn.svg",iso:true,name:"Pitcairn",country:"870",iso3:"PCN"},{capital:"Warsaw",iso2:"pl",continent:"Europe",flag_1x1:"flags/1x1/pl.svg",flag_4x3:"flags/4x3/pl.svg",iso:true,name:"Poland",country:"48",iso3:"POL"},{capital:"Lisbon",iso2:"pt",continent:"Europe",flag_1x1:"flags/1x1/pt.svg",flag_4x3:"flags/4x3/pt.svg",iso:true,name:"Portugal",country:"351",iso3:"PRT"},{capital:"San Juan",iso2:"pr",continent:"North America",flag_1x1:"flags/1x1/pr.svg",flag_4x3:"flags/4x3/pr.svg",iso:true,name:"Puerto Rico",country:"1-787",iso3:"PRI"},{capital:"Doha",iso2:"qa",continent:"Asia",flag_1x1:"flags/1x1/qa.svg",flag_4x3:"flags/4x3/qa.svg",iso:true,name:"Qatar",country:"974",iso3:"QAT"},{capital:"Brazzaville",iso2:"cg",continent:"Africa",flag_1x1:"flags/1x1/cg.svg",flag_4x3:"flags/4x3/cg.svg",iso:true,name:"Republic of the Congo",country:"242",iso3:"COG"},{capital:"Bucharest",iso2:"ro",continent:"Europe",flag_1x1:"flags/1x1/ro.svg",flag_4x3:"flags/4x3/ro.svg",iso:true,name:"Romania",country:"40",iso3:"ROU"},{capital:"Moscow",iso2:"ru",continent:"Europe",flag_1x1:"flags/1x1/ru.svg",flag_4x3:"flags/4x3/ru.svg",iso:true,name:"Russia",country:"7",iso3:"RUS"},{capital:"Kigali",iso2:"rw",continent:"Africa",flag_1x1:"flags/1x1/rw.svg",flag_4x3:"flags/4x3/rw.svg",iso:true,name:"Rwanda",country:"250",iso3:"RWA"},{capital:"Saint-Denis",iso2:"re",continent:"Africa",flag_1x1:"flags/1x1/re.svg",flag_4x3:"flags/4x3/re.svg",iso:true,name:"Réunion",country:"262",iso3:"REU"},{capital:"Gustavia",iso2:"bl",continent:"North America",flag_1x1:"flags/1x1/bl.svg",flag_4x3:"flags/4x3/bl.svg",iso:true,name:"Saint Barthélemy",country:"590",iso3:"BLM"},{capital:"Jamestown",iso2:"sh",continent:"Africa",flag_1x1:"flags/1x1/sh.svg",flag_4x3:"flags/4x3/sh.svg",iso:true,name:"Saint Helena, Ascension and Tristan da Cunha",country:"290",iso3:"SHN"},{capital:"Basseterre",iso2:"kn",continent:"North America",flag_1x1:"flags/1x1/kn.svg",flag_4x3:"flags/4x3/kn.svg",iso:true,name:"Saint Kitts and Nevis",country:"1-869",iso3:"KNA"},{capital:"Castries",iso2:"lc",continent:"North America",flag_1x1:"flags/1x1/lc.svg",flag_4x3:"flags/4x3/lc.svg",iso:true,name:"Saint Lucia",country:"1-758",iso3:"LCA"},{capital:"Marigot",iso2:"mf",continent:"North America",flag_1x1:"flags/1x1/mf.svg",flag_4x3:"flags/4x3/mf.svg",iso:true,name:"Saint Martin",country:"590",iso3:"MAF"},{capital:"Saint-Pierre",iso2:"pm",continent:"North America",flag_1x1:"flags/1x1/pm.svg",flag_4x3:"flags/4x3/pm.svg",iso:true,name:"Saint Pierre and Miquelon",country:"508",iso3:"SPM"},{capital:"Kingstown",iso2:"vc",continent:"North America",flag_1x1:"flags/1x1/vc.svg",flag_4x3:"flags/4x3/vc.svg",iso:true,name:"Saint Vincent and the Grenadines",country:"1-784",iso3:"VCT"},{capital:"Apia",iso2:"ws",continent:"Oceania",flag_1x1:"flags/1x1/ws.svg",flag_4x3:"flags/4x3/ws.svg",iso:true,name:"Samoa",country:"685",iso3:"WSM"},{capital:"San Marino",iso2:"sm",continent:"Europe",flag_1x1:"flags/1x1/sm.svg",flag_4x3:"flags/4x3/sm.svg",iso:true,name:"San Marino",country:"378",iso3:"SMR"},{capital:"São Tomé",iso2:"st",continent:"Africa",flag_1x1:"flags/1x1/st.svg",flag_4x3:"flags/4x3/st.svg",iso:true,name:"Sao Tome and Principe",country:"239",iso3:"STP"},{capital:"Riyadh",iso2:"sa",continent:"Asia",flag_1x1:"flags/1x1/sa.svg",flag_4x3:"flags/4x3/sa.svg",iso:true,name:"Saudi Arabia",country:"966",iso3:"SAU"},{capital:"Dakar",iso2:"sn",continent:"Africa",flag_1x1:"flags/1x1/sn.svg",flag_4x3:"flags/4x3/sn.svg",iso:true,name:"Senegal",country:"221",iso3:"SEN"},{capital:"Belgrade",iso2:"rs",continent:"Europe",flag_1x1:"flags/1x1/rs.svg",flag_4x3:"flags/4x3/rs.svg",iso:true,name:"Serbia",country:"381",iso3:"SRB"},{capital:"Victoria",iso2:"sc",continent:"Africa",flag_1x1:"flags/1x1/sc.svg",flag_4x3:"flags/4x3/sc.svg",iso:true,name:"Seychelles",country:"248",iso3:"SYC"},{capital:"Freetown",iso2:"sl",continent:"Africa",flag_1x1:"flags/1x1/sl.svg",flag_4x3:"flags/4x3/sl.svg",iso:true,name:"Sierra Leone",country:"232",iso3:"SLE"},{capital:"Singapore",iso2:"sg",continent:"Asia",flag_1x1:"flags/1x1/sg.svg",flag_4x3:"flags/4x3/sg.svg",iso:true,name:"Singapore",country:"65",iso3:"SGP"},{capital:"Philipsburg",iso2:"sx",continent:"North America",flag_1x1:"flags/1x1/sx.svg",flag_4x3:"flags/4x3/sx.svg",iso:true,name:"Sint Maarten",country:"599",iso3:"SXM"},{capital:"Bratislava",iso2:"sk",continent:"Europe",flag_1x1:"flags/1x1/sk.svg",flag_4x3:"flags/4x3/sk.svg",iso:true,name:"Slovakia",country:"421",iso3:"SVK"},{capital:"Ljubljana",iso2:"si",continent:"Europe",flag_1x1:"flags/1x1/si.svg",flag_4x3:"flags/4x3/si.svg",iso:true,name:"Slovenia",country:"386",iso3:"SVN"},{capital:"Honiara",iso2:"sb",continent:"Oceania",flag_1x1:"flags/1x1/sb.svg",flag_4x3:"flags/4x3/sb.svg",iso:true,name:"Solomon Islands",country:"677",iso3:"SLB"},{capital:"Mogadishu",iso2:"so",continent:"Africa",flag_1x1:"flags/1x1/so.svg",flag_4x3:"flags/4x3/so.svg",iso:true,name:"Somalia",country:"252",iso3:"SOM"},{capital:"Pretoria",iso2:"za",continent:"Africa",flag_1x1:"flags/1x1/za.svg",flag_4x3:"flags/4x3/za.svg",iso:true,name:"South Africa",country:"27",iso3:"ZAF"},{capital:"Seoul",iso2:"kr",continent:"Asia",flag_1x1:"flags/1x1/kr.svg",flag_4x3:"flags/4x3/kr.svg",iso:true,name:"South Korea",country:"82",iso3:"KOR"},{capital:"Juba",iso2:"ss",continent:"Africa",flag_1x1:"flags/1x1/ss.svg",flag_4x3:"flags/4x3/ss.svg",iso:true,name:"South Sudan",country:"211",iso3:"SSD"},{capital:"Madrid",iso2:"es",continent:"Europe",flag_1x1:"flags/1x1/es.svg",flag_4x3:"flags/4x3/es.svg",iso:true,name:"Spain",country:"34",iso3:"ESP"},{capital:"Sri Jayawardenepura Kotte, Colombo",iso2:"lk",continent:"Asia",flag_1x1:"flags/1x1/lk.svg",flag_4x3:"flags/4x3/lk.svg",iso:true,name:"Sri Lanka",country:"94",iso3:"LKA"},{capital:"Ramallah",iso2:"ps",continent:"Asia",flag_1x1:"flags/1x1/ps.svg",flag_4x3:"flags/4x3/ps.svg",iso:true,name:"State of Palestine",country:"970",iso3:"PSE"},{capital:"Khartoum",iso2:"sd",continent:"Africa",flag_1x1:"flags/1x1/sd.svg",flag_4x3:"flags/4x3/sd.svg",iso:true,name:"Sudan",country:"249",iso3:"SDN"},{capital:"Paramaribo",iso2:"sr",continent:"South America",flag_1x1:"flags/1x1/sr.svg",flag_4x3:"flags/4x3/sr.svg",iso:true,name:"Suriname",country:"597",iso3:"SUR"},{capital:"Longyearbyen",iso2:"sj",continent:"Europe",flag_1x1:"flags/1x1/sj.svg",flag_4x3:"flags/4x3/sj.svg",iso:true,name:"Svalbard and Jan Mayen",country:"47",iso3:"SJM"},{capital:"Stockholm",iso2:"se",continent:"Europe",flag_1x1:"flags/1x1/se.svg",flag_4x3:"flags/4x3/se.svg",iso:true,name:"Sweden",country:"46",iso3:"SWE"},{capital:"Bern",iso2:"ch",continent:"Europe",flag_1x1:"flags/1x1/ch.svg",flag_4x3:"flags/4x3/ch.svg",iso:true,name:"Switzerland",country:"41",iso3:"CHE"},{capital:"Damascus",iso2:"sy",continent:"Asia",flag_1x1:"flags/1x1/sy.svg",flag_4x3:"flags/4x3/sy.svg",iso:true,name:"Syria",country:"963",iso3:"SYR"},{capital:"Taipei",iso2:"tw",continent:"Asia",flag_1x1:"flags/1x1/tw.svg",flag_4x3:"flags/4x3/tw.svg",iso:true,name:"Taiwan",country:"886",iso3:"TWN"},{capital:"Dushanbe",iso2:"tj",continent:"Asia",flag_1x1:"flags/1x1/tj.svg",flag_4x3:"flags/4x3/tj.svg",iso:true,name:"Tajikistan",country:"992",iso3:"TJK"},{capital:"Dodoma",iso2:"tz",continent:"Africa",flag_1x1:"flags/1x1/tz.svg",flag_4x3:"flags/4x3/tz.svg",iso:true,name:"Tanzania",country:"255",iso3:"TZA"},{capital:"Bangkok",iso2:"th",continent:"Asia",flag_1x1:"flags/1x1/th.svg",flag_4x3:"flags/4x3/th.svg",iso:true,name:"Thailand",country:"66",iso3:"THA"},{capital:"Dili",iso2:"tl",continent:"Asia",flag_1x1:"flags/1x1/tl.svg",flag_4x3:"flags/4x3/tl.svg",iso:true,name:"Timor-Leste",country:"670",iso3:"TLS"},{capital:"Lomé",iso2:"tg",continent:"Africa",flag_1x1:"flags/1x1/tg.svg",flag_4x3:"flags/4x3/tg.svg",iso:true,name:"Togo",country:"228",iso3:"TGO"},{capital:"Nukunonu, Atafu,Tokelau",iso2:"tk",continent:"Oceania",flag_1x1:"flags/1x1/tk.svg",flag_4x3:"flags/4x3/tk.svg",iso:true,name:"Tokelau",country:"690",iso3:"TKL"},{capital:"Nukuʻalofa",iso2:"to",continent:"Oceania",flag_1x1:"flags/1x1/to.svg",flag_4x3:"flags/4x3/to.svg",iso:true,name:"Tonga",country:"676",iso3:"TON"},{capital:"Port of Spain",iso2:"tt",continent:"South America",flag_1x1:"flags/1x1/tt.svg",flag_4x3:"flags/4x3/tt.svg",iso:true,name:"Trinidad and Tobago",country:"1-868",iso3:"TTO"},{capital:"Tunis",iso2:"tn",continent:"Africa",flag_1x1:"flags/1x1/tn.svg",flag_4x3:"flags/4x3/tn.svg",iso:true,name:"Tunisia",country:"216",iso3:"TUN"},{capital:"Ashgabat",iso2:"tm",continent:"Asia",flag_1x1:"flags/1x1/tm.svg",flag_4x3:"flags/4x3/tm.svg",iso:true,name:"Turkmenistan",country:"993",iso3:"TKM"},{capital:"Cockburn Town",iso2:"tc",continent:"North America",flag_1x1:"flags/1x1/tc.svg",flag_4x3:"flags/4x3/tc.svg",iso:true,name:"Turks and Caicos Islands",country:"1-649",iso3:"TCA"},{capital:"Funafuti",iso2:"tv",continent:"Oceania",flag_1x1:"flags/1x1/tv.svg",flag_4x3:"flags/4x3/tv.svg",iso:true,name:"Tuvalu",country:"688",iso3:"TUV"},{capital:"Ankara",iso2:"tr",continent:"Asia",flag_1x1:"flags/1x1/tr.svg",flag_4x3:"flags/4x3/tr.svg",iso:true,name:"Türkiye",country:"90",iso3:"TUR"},{capital:"Kampala",iso2:"ug",continent:"Africa",flag_1x1:"flags/1x1/ug.svg",flag_4x3:"flags/4x3/ug.svg",iso:true,name:"Uganda",country:"256",iso3:"UGA"},{capital:"Kiev",iso2:"ua",continent:"Europe",flag_1x1:"flags/1x1/ua.svg",flag_4x3:"flags/4x3/ua.svg",iso:true,name:"Ukraine",country:"380",iso3:"UKR"},{capital:"Abu Dhabi",iso2:"ae",continent:"Asia",flag_1x1:"flags/1x1/ae.svg",flag_4x3:"flags/4x3/ae.svg",iso:true,name:"United Arab Emirates",country:"971",iso3:"ARE"},{capital:"London",iso2:"gb",continent:"Europe",flag_1x1:"flags/1x1/gb.svg",flag_4x3:"flags/4x3/gb.svg",iso:true,name:"United Kingdom",country:"44",iso3:"ENG"},{capital:"Washington, D.C.",iso2:"us",continent:"North America",flag_1x1:"flags/1x1/us.svg",flag_4x3:"flags/4x3/us.svg",iso:true,name:"United States",country:"1",iso3:"USA"},{capital:"Montevideo",iso2:"uy",continent:"South America",flag_1x1:"flags/1x1/uy.svg",flag_4x3:"flags/4x3/uy.svg",iso:true,name:"Uruguay",country:"598",iso3:"URY"},{capital:"Tashkent",iso2:"uz",continent:"Asia",flag_1x1:"flags/1x1/uz.svg",flag_4x3:"flags/4x3/uz.svg",iso:true,name:"Uzbekistan",country:"998",iso3:"UZB"},{capital:"Port Vila",iso2:"vu",continent:"Oceania",flag_1x1:"flags/1x1/vu.svg",flag_4x3:"flags/4x3/vu.svg",iso:true,name:"Vanuatu",country:"678",iso3:"VUT"},{capital:"Caracas",iso2:"ve",continent:"South America",flag_1x1:"flags/1x1/ve.svg",flag_4x3:"flags/4x3/ve.svg",iso:true,name:"Venezuela",country:"58",iso3:"VEN"},{capital:"Hanoi",iso2:"vn",continent:"Asia",flag_1x1:"flags/1x1/vn.svg",flag_4x3:"flags/4x3/vn.svg",iso:true,name:"Vietnam",country:"84",iso3:"VNM"},{capital:"Road Town",iso2:"vg",continent:"North America",flag_1x1:"flags/1x1/vg.svg",flag_4x3:"flags/4x3/vg.svg",iso:true,name:"Virgin Islands (British)",country:"1-284",iso3:"VGB"},{capital:"Charlotte Amalie",iso2:"vi",continent:"North America",flag_1x1:"flags/1x1/vi.svg",flag_4x3:"flags/4x3/vi.svg",iso:true,name:"Virgin Islands (U.S.)",country:"1-340",iso3:"VIR"},{capital:"Mata-Utu",iso2:"wf",continent:"Oceania",flag_1x1:"flags/1x1/wf.svg",flag_4x3:"flags/4x3/wf.svg",iso:true,name:"Wallis and Futuna",country:"681",iso3:"WLF"},{capital:"Laayoune",iso2:"eh",continent:"Africa",flag_1x1:"flags/1x1/eh.svg",flag_4x3:"flags/4x3/eh.svg",iso:true,name:"Western Sahara",country:"212",iso3:"ESH"},{capital:"Sana'a",iso2:"ye",continent:"Asia",flag_1x1:"flags/1x1/ye.svg",flag_4x3:"flags/4x3/ye.svg",iso:true,name:"Yemen",country:"967",iso3:"YEM"},{capital:"Lusaka",iso2:"zm",continent:"Africa",flag_1x1:"flags/1x1/zm.svg",flag_4x3:"flags/4x3/zm.svg",iso:true,name:"Zambia",country:"260",iso3:"ZMB"},{capital:"Harare",iso2:"zw",continent:"Africa",flag_1x1:"flags/1x1/zw.svg",flag_4x3:"flags/4x3/zw.svg",iso:true,name:"Zimbabwe",country:"263",iso3:"ZWE"}];var GLOBAL={capital:"Global",iso2:"global",continent:"",flag_1x1:"",flag_4x3:"",iso:true,name:"Global",country:"00",iso3:"GLOBAL"};var FLAG_BASE_URL="./constants/flags/4x3/";function getNameFlag(a,s,i,n,t,o,g,l,e){var r=o===true||o==="true";var f=g===true||g==="true";var c=l===true||l==="true";var x=t==="iso3"?a:s;var u=i;var v=x.toLocaleUpperCase();var m="";switch(true){case f&&c&&r&&e===AlignFlag.RIGHT:m="(+".concat(n,") ").concat(v);break;case f&&c&&r:m="".concat(v," (+").concat(n,")");break;case f&&!c&&r:m="".concat(v);break;case r&&c&&e===AlignFlag.RIGHT:m="(+".concat(n,") ").concat(u);break;case r&&c:m="".concat(u," (+").concat(n,")");break;case r||!f&&r:m="".concat(u);break;case!r&&!c:m="";break;case!r&&c:m="(+".concat(n,")");break}return m.trim()}var bdsFlagCss=function(){return'@charset "UTF-8";.bds-flag{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bds-flag--reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.bds-flag__country{font-family:var(--boreal-typography-font-family-primary);color:var(--boreal-text-default-light);font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm)}.bds-flag__flag--global{background-image:none;background-color:var(--boreal-ui-base-light)}.bds-flag__flag--country{background-size:cover;background-position:center;background-repeat:no-repeat;-ms-flex-negative:0;flex-shrink:0}.bds-flag__flag--rectangle{width:var(--boreal-layout-ml);height:var(--boreal-layout-m);border-radius:var(--boreal-radius-xs2)}.bds-flag__flag--square{width:var(--boreal-layout-m);height:var(--boreal-layout-m);border-radius:var(--boreal-radius-xs2)}.bds-flag__flag--circle{width:var(--boreal-layout-m);height:var(--boreal-layout-m);border-radius:var(--boreal-radius-full)}'};var BdsFlag=function(){function a(a){registerInstance(this,a);this.alignFlag=AlignFlag.LEFT;this.callSign=false;this.country="";this.customFlags=[];this.identifier=FlagIdentifier.CODE;this.label=false;this.shape=Shape.RECTANGLE;this.shortName=false}a.prototype.checkPropValues=function(){validatePropValue(Object.values(AlignFlag),AlignFlag.LEFT,this.el,"alignFlag");validatePropValue(Object.values(FlagIdentifier),FlagIdentifier.CODE,this.el,"identifier");validatePropValue(Object.values(Shape),Shape.RECTANGLE,this.el,"shape")};a.prototype.componentWillLoad=function(){this.checkPropValues()};a.prototype.flagUrl=function(a){var s;var i=(s=this.customFlags)===null||s===void 0?void 0:s.find((function(s){return s.iso2.toLowerCase()===a}));if((i===null||i===void 0?void 0:i.flag_4x3)!==undefined)return i.flag_4x3;if(FLAG_BASE_URL.startsWith("http")){return"".concat(FLAG_BASE_URL).concat(a,".svg")}return"".concat(window.location.origin).concat(getAssetPath("".concat(FLAG_BASE_URL).concat(a,".svg")))};a.prototype.getCountry=function(){var a=__spreadArray(__spreadArray(__spreadArray([],allCountries,true),this.customFlags,true),[GLOBAL],false);var s=this.identifier===FlagIdentifier.CODE?"country":this.identifier;var i=this.identifier===FlagIdentifier.ISO3?this.country.toUpperCase():this.country.toLowerCase();var n=a.find((function(a){return a[s]===i}));return n||{country:"",iso2:"",iso3:"",name:""}};a.prototype.getCountryName=function(){var a=this.getCountry(),s=a.iso3,i=a.name,n=a.country,t=a.iso2;var o=this.getNameInternal(s,t,i,n);return o};a.prototype.getFlag=function(){var a=this.getCountry().iso2;return a.toLowerCase()};a.prototype.getNameInternal=function(a,s,i,n){return getNameFlag(a,s,i,n,this.identifier,this.label,this.shortName,this.callSign,this.alignFlag)};Object.defineProperty(a.prototype,"isGlobal",{get:function(){return this.getFlag()==="global"},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"flagClass",{get:function(){return{"bds-flag":true,"bds-flag--reverse":this.alignFlag===AlignFlag.RIGHT}},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"flagContentClass",{get:function(){var a;return a={"bds-flag__flag--country":true},a["bds-flag__flag--".concat(this.shape)]=true,a["bds-flag__flag--global"]=this.isGlobal,a},enumerable:false,configurable:true});a.prototype.render=function(){var a=this.getFlag();var s=this.getCountryName();var i=this.flagContentClass;var n=this.flagClass;var t=!this.isGlobal?{backgroundImage:"url(".concat(this.flagUrl(a),")")}:{};return h(Host,{key:"a8a3ef0fefd3e7b1d4c9fd40bf5ea82ce9000815",class:n,"aria-label":s,role:"img"},a&&h("span",{key:"ea653c06af2a3c3341c95acd1750bdbbbd08f268",class:i,style:t,"aria-hidden":"true"}),h("span",{key:"289fcc0f0d247f02b79493fd34aca190c985ed45",class:"bds-flag__country","aria-hidden":"true"},s))};Object.defineProperty(a,"assetsDirs",{get:function(){return["./constants"]},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{alignFlag:[{checkPropValues:0}],identifier:[{checkPropValues:0}],shape:[{checkPropValues:0}]}},enumerable:false,configurable:true});return a}();BdsFlag.style=bdsFlagCss();export{BdsFlag as bds_flag};
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(a,s,i){if(i||arguments.length===2)for(var n=0,t=s.length,o;n<t;n++){if(o||!(n in s)){if(!o)o=Array.prototype.slice.call(s,0,n);o[n]=s[n]}}return a.concat(o||Array.prototype.slice.call(s))};import{r as registerInstance,d as getAssetPath,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{v as validatePropValue}from"./validateProps-kGnB15Lz.js";var FlagIdentifier={ISO2:"iso2",ISO3:"iso3",CODE:"code"};var AlignFlag={LEFT:"left",RIGHT:"right"};var Shape={CIRCLE:"circle",SQUARE:"square",RECTANGLE:"rectangle"};var allCountries=[{capital:"Kabul",iso2:"af",continent:"Asia",flag_1x1:"flags/1x1/af.svg",flag_4x3:"flags/4x3/af.svg",iso:true,name:"Afghanistan",country:"93",iso3:"AFG"},{capital:"Mariehamn",iso2:"ax",continent:"Europe",flag_1x1:"flags/1x1/ax.svg",flag_4x3:"flags/4x3/ax.svg",iso:true,name:"Aland Islands",country:"358-18",iso3:"ALA"},{capital:"Tirana",iso2:"al",continent:"Europe",flag_1x1:"flags/1x1/al.svg",flag_4x3:"flags/4x3/al.svg",iso:true,name:"Albania",country:"355",iso3:"ALB"},{capital:"Algiers",iso2:"dz",continent:"Africa",flag_1x1:"flags/1x1/dz.svg",flag_4x3:"flags/4x3/dz.svg",iso:true,name:"Algeria",country:"213",iso3:"DZA"},{capital:"Pago Pago",iso2:"as",continent:"Oceania",flag_1x1:"flags/1x1/as.svg",flag_4x3:"flags/4x3/as.svg",iso:true,name:"American Samoa",country:"1-684",iso3:"ASM"},{capital:"Andorra la Vella",iso2:"ad",continent:"Europe",flag_1x1:"flags/1x1/ad.svg",flag_4x3:"flags/4x3/ad.svg",iso:true,name:"Andorra",country:"376",iso3:"AND"},{capital:"Luanda",iso2:"ao",continent:"Africa",flag_1x1:"flags/1x1/ao.svg",flag_4x3:"flags/4x3/ao.svg",iso:true,name:"Angola",country:"244",iso3:"AGO"},{capital:"The Valley",iso2:"ai",continent:"North America",flag_1x1:"flags/1x1/ai.svg",flag_4x3:"flags/4x3/ai.svg",iso:true,name:"Anguilla",country:"1-264",iso3:"AIA"},{capital:"St. John's",iso2:"ag",continent:"North America",flag_1x1:"flags/1x1/ag.svg",flag_4x3:"flags/4x3/ag.svg",iso:true,name:"Antigua and Barbuda",country:"1-268",iso3:"ATG"},{capital:"Buenos Aires",iso2:"ar",continent:"South America",flag_1x1:"flags/1x1/ar.svg",flag_4x3:"flags/4x3/ar.svg",iso:true,name:"Argentina",country:"54",iso3:"ARG"},{capital:"Yerevan",iso2:"am",continent:"Asia",flag_1x1:"flags/1x1/am.svg",flag_4x3:"flags/4x3/am.svg",iso:true,name:"Armenia",country:"374",iso3:"ARM"},{capital:"Oranjestad",iso2:"aw",continent:"South America",flag_1x1:"flags/1x1/aw.svg",flag_4x3:"flags/4x3/aw.svg",iso:true,name:"Aruba",country:"297",iso3:"ABW"},{capital:"Canberra",iso2:"au",continent:"Oceania",flag_1x1:"flags/1x1/au.svg",flag_4x3:"flags/4x3/au.svg",iso:true,name:"Australia",country:"61",iso3:"AUS"},{capital:"Vienna",iso2:"at",continent:"Europe",flag_1x1:"flags/1x1/at.svg",flag_4x3:"flags/4x3/at.svg",iso:true,name:"Austria",country:"43",iso3:"AUT"},{capital:"Baku",iso2:"az",continent:"Asia",flag_1x1:"flags/1x1/az.svg",flag_4x3:"flags/4x3/az.svg",iso:true,name:"Azerbaijan",country:"994",iso3:"AZE"},{capital:"Nassau",iso2:"bs",continent:"North America",flag_1x1:"flags/1x1/bs.svg",flag_4x3:"flags/4x3/bs.svg",iso:true,name:"Bahamas",country:"1-242",iso3:"BHS"},{capital:"Manama",iso2:"bh",continent:"Asia",flag_1x1:"flags/1x1/bh.svg",flag_4x3:"flags/4x3/bh.svg",iso:true,name:"Bahrain",country:"973",iso3:"BHR"},{capital:"Dhaka",iso2:"bd",continent:"Asia",flag_1x1:"flags/1x1/bd.svg",flag_4x3:"flags/4x3/bd.svg",iso:true,name:"Bangladesh",country:"880",iso3:"BGD"},{capital:"Bridgetown",iso2:"bb",continent:"North America",flag_1x1:"flags/1x1/bb.svg",flag_4x3:"flags/4x3/bb.svg",iso:true,name:"Barbados",country:"1-246",iso3:"BRB"},{capital:"Minsk",iso2:"by",continent:"Europe",flag_1x1:"flags/1x1/by.svg",flag_4x3:"flags/4x3/by.svg",iso:true,name:"Belarus",country:"375",iso3:"BLR"},{capital:"Brussels",iso2:"be",continent:"Europe",flag_1x1:"flags/1x1/be.svg",flag_4x3:"flags/4x3/be.svg",iso:true,name:"Belgium",country:"32",iso3:"BEL"},{capital:"Belmopan",iso2:"bz",continent:"North America",flag_1x1:"flags/1x1/bz.svg",flag_4x3:"flags/4x3/bz.svg",iso:true,name:"Belize",country:"501",iso3:"BLZ"},{capital:"Porto-Novo",iso2:"bj",continent:"Africa",flag_1x1:"flags/1x1/bj.svg",flag_4x3:"flags/4x3/bj.svg",iso:true,name:"Benin",country:"229",iso3:"BEN"},{capital:"Hamilton",iso2:"bm",continent:"North America",flag_1x1:"flags/1x1/bm.svg",flag_4x3:"flags/4x3/bm.svg",iso:true,name:"Bermuda",country:"1-441",iso3:"BMU"},{capital:"Thimphu",iso2:"bt",continent:"Asia",flag_1x1:"flags/1x1/bt.svg",flag_4x3:"flags/4x3/bt.svg",iso:true,name:"Bhutan",country:"975",iso3:"BTN"},{capital:"Sucre",iso2:"bo",continent:"South America",flag_1x1:"flags/1x1/bo.svg",flag_4x3:"flags/4x3/bo.svg",iso:true,name:"Bolivia",country:"591",iso3:"BOL"},{capital:"Kralendijk",iso2:"bq",continent:"South America",flag_1x1:"flags/1x1/bq.svg",flag_4x3:"flags/4x3/bq.svg",iso:true,name:"Bonaire, Sint Eustatius and Saba",country:"599",iso3:"BES"},{capital:"Sarajevo",iso2:"ba",continent:"Europe",flag_1x1:"flags/1x1/ba.svg",flag_4x3:"flags/4x3/ba.svg",iso:true,name:"Bosnia and Herzegovina",country:"387",iso3:"BIH"},{capital:"Gaborone",iso2:"bw",continent:"Africa",flag_1x1:"flags/1x1/bw.svg",flag_4x3:"flags/4x3/bw.svg",iso:true,name:"Botswana",country:"267",iso3:"BWA"},{capital:"Brasília",iso2:"br",continent:"South America",flag_1x1:"flags/1x1/br.svg",flag_4x3:"flags/4x3/br.svg",iso:true,name:"Brazil",country:"55",iso3:"BRA"},{capital:"Diego Garcia",iso2:"io",continent:"Asia",flag_1x1:"flags/1x1/io.svg",flag_4x3:"flags/4x3/io.svg",iso:true,name:"British Indian Ocean Territory",country:"246",iso3:"IOT"},{capital:"Bandar Seri Begawan",iso2:"bn",continent:"Asia",flag_1x1:"flags/1x1/bn.svg",flag_4x3:"flags/4x3/bn.svg",iso:true,name:"Brunei Darussalam",country:"673",iso3:"BRN"},{capital:"Sofia",iso2:"bg",continent:"Europe",flag_1x1:"flags/1x1/bg.svg",flag_4x3:"flags/4x3/bg.svg",iso:true,name:"Bulgaria",country:"359",iso3:"BGR"},{capital:"Ouagadougou",iso2:"bf",continent:"Africa",flag_1x1:"flags/1x1/bf.svg",flag_4x3:"flags/4x3/bf.svg",iso:true,name:"Burkina Faso",country:"226",iso3:"BFA"},{capital:"Bujumbura",iso2:"bi",continent:"Africa",flag_1x1:"flags/1x1/bi.svg",flag_4x3:"flags/4x3/bi.svg",iso:true,name:"Burundi",country:"257",iso3:"BDI"},{capital:"Praia",iso2:"cv",continent:"Africa",flag_1x1:"flags/1x1/cv.svg",flag_4x3:"flags/4x3/cv.svg",iso:true,name:"Cabo Verde",country:"238",iso3:"CPV"},{capital:"Phnom Penh",iso2:"kh",continent:"Asia",flag_1x1:"flags/1x1/kh.svg",flag_4x3:"flags/4x3/kh.svg",iso:true,name:"Cambodia",country:"855",iso3:"KHM"},{capital:"Yaoundé",iso2:"cm",continent:"Africa",flag_1x1:"flags/1x1/cm.svg",flag_4x3:"flags/4x3/cm.svg",iso:true,name:"Cameroon",country:"237",iso3:"CMR"},{capital:"George Town",iso2:"ky",continent:"North America",flag_1x1:"flags/1x1/ky.svg",flag_4x3:"flags/4x3/ky.svg",iso:true,name:"Cayman Islands",country:"1-345",iso3:"CYM"},{capital:"Bangui",iso2:"cf",continent:"Africa",flag_1x1:"flags/1x1/cf.svg",flag_4x3:"flags/4x3/cf.svg",iso:true,name:"Central African Republic",country:"236",iso3:"CAF"},{capital:"N'Djamena",iso2:"td",continent:"Africa",flag_1x1:"flags/1x1/td.svg",flag_4x3:"flags/4x3/td.svg",iso:true,name:"Chad",country:"235",iso3:"TCD"},{capital:"Santiago",iso2:"cl",continent:"South America",flag_1x1:"flags/1x1/cl.svg",flag_4x3:"flags/4x3/cl.svg",iso:true,name:"Chile",country:"56",iso3:"CHL"},{capital:"Beijing",iso2:"cn",continent:"Asia",flag_1x1:"flags/1x1/cn.svg",flag_4x3:"flags/4x3/cn.svg",iso:true,name:"China",country:"86",iso3:"CHN"},{capital:"Flying Fish Cove",iso2:"cx",continent:"Asia",flag_1x1:"flags/1x1/cx.svg",flag_4x3:"flags/4x3/cx.svg",iso:true,name:"Christmas Island",country:"61",iso3:"CXR"},{capital:"West Island",iso2:"cc",continent:"Asia",flag_1x1:"flags/1x1/cc.svg",flag_4x3:"flags/4x3/cc.svg",iso:true,name:"Cocos (Keeling) Islands",country:"61",iso3:"CCK"},{capital:"Bogotá",iso2:"co",continent:"South America",flag_1x1:"flags/1x1/co.svg",flag_4x3:"flags/4x3/co.svg",iso:true,name:"Colombia",country:"57",iso3:"COL"},{capital:"Moroni",iso2:"km",continent:"Africa",flag_1x1:"flags/1x1/km.svg",flag_4x3:"flags/4x3/km.svg",iso:true,name:"Comoros",country:"269",iso3:"COM"},{capital:"Avarua",iso2:"ck",continent:"Oceania",flag_1x1:"flags/1x1/ck.svg",flag_4x3:"flags/4x3/ck.svg",iso:true,name:"Cook Islands",country:"682",iso3:"COK"},{capital:"San José",iso2:"cr",continent:"North America",flag_1x1:"flags/1x1/cr.svg",flag_4x3:"flags/4x3/cr.svg",iso:true,name:"Costa Rica",country:"506",iso3:"CRI"},{capital:"Zagreb",iso2:"hr",continent:"Europe",flag_1x1:"flags/1x1/hr.svg",flag_4x3:"flags/4x3/hr.svg",iso:true,name:"Croatia",country:"385",iso3:"HRV"},{capital:"Havana",iso2:"cu",continent:"North America",flag_1x1:"flags/1x1/cu.svg",flag_4x3:"flags/4x3/cu.svg",iso:true,name:"Cuba",country:"53",iso3:"CUB"},{capital:"Willemstad",iso2:"cw",continent:"South America",flag_1x1:"flags/1x1/cw.svg",flag_4x3:"flags/4x3/cw.svg",iso:true,name:"Curaçao",country:"599",iso3:"CUW"},{capital:"Nicosia",iso2:"cy",continent:"Europe",flag_1x1:"flags/1x1/cy.svg",flag_4x3:"flags/4x3/cy.svg",iso:true,name:"Cyprus",country:"357",iso3:"CYP"},{capital:"Prague",iso2:"cz",continent:"Europe",flag_1x1:"flags/1x1/cz.svg",flag_4x3:"flags/4x3/cz.svg",iso:true,name:"Czech Republic",country:"420",iso3:"CZE"},{capital:"Yamoussoukro",iso2:"ci",continent:"Africa",flag_1x1:"flags/1x1/ci.svg",flag_4x3:"flags/4x3/ci.svg",iso:true,name:"Côte d'Ivoire",country:"225",iso3:"CIV"},{capital:"Kinshasa",iso2:"cd",continent:"Africa",flag_1x1:"flags/1x1/cd.svg",flag_4x3:"flags/4x3/cd.svg",iso:true,name:"Democratic Republic of the Congo",country:"243",iso3:"COD"},{capital:"Copenhagen",iso2:"dk",continent:"Europe",flag_1x1:"flags/1x1/dk.svg",flag_4x3:"flags/4x3/dk.svg",iso:true,name:"Denmark",country:"45",iso3:"DNK"},{capital:"Djibouti",iso2:"dj",continent:"Africa",flag_1x1:"flags/1x1/dj.svg",flag_4x3:"flags/4x3/dj.svg",iso:true,name:"Djibouti",country:"253",iso3:"DJI"},{capital:"Roseau",iso2:"dm",continent:"North America",flag_1x1:"flags/1x1/dm.svg",flag_4x3:"flags/4x3/dm.svg",iso:true,name:"Dominica",country:"1-767",iso3:"DMA"},{capital:"Santo Domingo",iso2:"do",continent:"North America",flag_1x1:"flags/1x1/do.svg",flag_4x3:"flags/4x3/do.svg",iso:true,name:"Dominican Republic",country:"1-809",iso3:"DOM"},{capital:"Quito",iso2:"ec",continent:"South America",flag_1x1:"flags/1x1/ec.svg",flag_4x3:"flags/4x3/ec.svg",iso:true,name:"Ecuador",country:"593",iso3:"ECU"},{capital:"Cairo",iso2:"eg",continent:"Africa",flag_1x1:"flags/1x1/eg.svg",flag_4x3:"flags/4x3/eg.svg",iso:true,name:"Egypt",country:"20",iso3:"EGY"},{capital:"San Salvador",iso2:"sv",continent:"North America",flag_1x1:"flags/1x1/sv.svg",flag_4x3:"flags/4x3/sv.svg",iso:true,name:"El Salvador",country:"503",iso3:"SLV"},{capital:"Malabo",iso2:"gq",continent:"Africa",flag_1x1:"flags/1x1/gq.svg",flag_4x3:"flags/4x3/gq.svg",iso:true,name:"Equatorial Guinea",country:"240",iso3:"GNQ"},{capital:"Asmara",iso2:"er",continent:"Africa",flag_1x1:"flags/1x1/er.svg",flag_4x3:"flags/4x3/er.svg",iso:true,name:"Eritrea",country:"291",iso3:"ERI"},{capital:"Tallinn",iso2:"ee",continent:"Europe",flag_1x1:"flags/1x1/ee.svg",flag_4x3:"flags/4x3/ee.svg",iso:true,name:"Estonia",country:"372",iso3:"EST"},{capital:"Lobamba, Mbabane",iso2:"sz",continent:"Africa",flag_1x1:"flags/1x1/sz.svg",flag_4x3:"flags/4x3/sz.svg",iso:true,name:"Eswatini",country:"268",iso3:"SWZ"},{capital:"Addis Ababa",iso2:"et",continent:"Africa",flag_1x1:"flags/1x1/et.svg",flag_4x3:"flags/4x3/et.svg",iso:true,name:"Ethiopia",country:"251",iso3:"ETH"},{capital:"Stanley",iso2:"fk",continent:"South America",flag_1x1:"flags/1x1/fk.svg",flag_4x3:"flags/4x3/fk.svg",iso:true,name:"Falkland Islands",country:"500",iso3:"FLK"},{capital:"Tórshavn",iso2:"fo",continent:"Europe",flag_1x1:"flags/1x1/fo.svg",flag_4x3:"flags/4x3/fo.svg",iso:true,name:"Faroe Islands",country:"298",iso3:"FRO"},{capital:"Palikir",iso2:"fm",continent:"Oceania",flag_1x1:"flags/1x1/fm.svg",flag_4x3:"flags/4x3/fm.svg",iso:true,name:"Federated States of Micronesia",country:"691",iso3:"FSM"},{capital:"Suva",iso2:"fj",continent:"Oceania",flag_1x1:"flags/1x1/fj.svg",flag_4x3:"flags/4x3/fj.svg",iso:true,name:"Fiji",country:"679",iso3:"FJI"},{capital:"Helsinki",iso2:"fi",continent:"Europe",flag_1x1:"flags/1x1/fi.svg",flag_4x3:"flags/4x3/fi.svg",iso:true,name:"Finland",country:"358",iso3:"FIN"},{capital:"Paris",iso2:"fr",continent:"Europe",flag_1x1:"flags/1x1/fr.svg",flag_4x3:"flags/4x3/fr.svg",iso:true,name:"France",country:"33",iso3:"FRA"},{capital:"Cayenne",iso2:"gf",continent:"South America",flag_1x1:"flags/1x1/gf.svg",flag_4x3:"flags/4x3/gf.svg",iso:true,name:"French Guiana",country:"594",iso3:"GUF"},{capital:"Papeete",iso2:"pf",continent:"Oceania",flag_1x1:"flags/1x1/pf.svg",flag_4x3:"flags/4x3/pf.svg",iso:true,name:"French Polynesia",country:"689",iso3:"PYF"},{capital:"Libreville",iso2:"ga",continent:"Africa",flag_1x1:"flags/1x1/ga.svg",flag_4x3:"flags/4x3/ga.svg",iso:true,name:"Gabon",country:"241",iso3:"GAB"},{capital:"Banjul",iso2:"gm",continent:"Africa",flag_1x1:"flags/1x1/gm.svg",flag_4x3:"flags/4x3/gm.svg",iso:true,name:"Gambia",country:"220",iso3:"GMB"},{capital:"Tbilisi",iso2:"ge",continent:"Asia",flag_1x1:"flags/1x1/ge.svg",flag_4x3:"flags/4x3/ge.svg",iso:true,name:"Georgia",country:"995",iso3:"GEO"},{capital:"Berlin",iso2:"de",continent:"Europe",flag_1x1:"flags/1x1/de.svg",flag_4x3:"flags/4x3/de.svg",iso:true,name:"Germany",country:"49",iso3:"DEU"},{capital:"Accra",iso2:"gh",continent:"Africa",flag_1x1:"flags/1x1/gh.svg",flag_4x3:"flags/4x3/gh.svg",iso:true,name:"Ghana",country:"233",iso3:"GHA"},{capital:"Gibraltar",iso2:"gi",continent:"Europe",flag_1x1:"flags/1x1/gi.svg",flag_4x3:"flags/4x3/gi.svg",iso:true,name:"Gibraltar",country:"350",iso3:"GIB"},{capital:"Athens",iso2:"gr",continent:"Europe",flag_1x1:"flags/1x1/gr.svg",flag_4x3:"flags/4x3/gr.svg",iso:true,name:"Greece",country:"30",iso3:"GRC"},{capital:"Nuuk",iso2:"gl",continent:"North America",flag_1x1:"flags/1x1/gl.svg",flag_4x3:"flags/4x3/gl.svg",iso:true,name:"Greenland",country:"299",iso3:"GRL"},{capital:"St. George's",iso2:"gd",continent:"North America",flag_1x1:"flags/1x1/gd.svg",flag_4x3:"flags/4x3/gd.svg",iso:true,name:"Grenada",country:"1-473",iso3:"GRD"},{capital:"Basse-Terre",iso2:"gp",continent:"North America",flag_1x1:"flags/1x1/gp.svg",flag_4x3:"flags/4x3/gp.svg",iso:true,name:"Guadeloupe",country:"590",iso3:"GLP"},{capital:"Hagåtña",iso2:"gu",continent:"Oceania",flag_1x1:"flags/1x1/gu.svg",flag_4x3:"flags/4x3/gu.svg",iso:true,name:"Guam",country:"1-671",iso3:"GUM"},{capital:"Guatemala City",iso2:"gt",continent:"North America",flag_1x1:"flags/1x1/gt.svg",flag_4x3:"flags/4x3/gt.svg",iso:true,name:"Guatemala",country:"502",iso3:"GTM"},{capital:"Saint Peter Port",iso2:"gg",continent:"Europe",flag_1x1:"flags/1x1/gg.svg",flag_4x3:"flags/4x3/gg.svg",iso:true,name:"Guernsey",country:"44-1481",iso3:"GGY"},{capital:"Conakry",iso2:"gn",continent:"Africa",flag_1x1:"flags/1x1/gn.svg",flag_4x3:"flags/4x3/gn.svg",iso:true,name:"Guinea",country:"224",iso3:"GIN"},{capital:"Bissau",iso2:"gw",continent:"Africa",flag_1x1:"flags/1x1/gw.svg",flag_4x3:"flags/4x3/gw.svg",iso:true,name:"Guinea-Bissau",country:"245",iso3:"GNB"},{capital:"Georgetown",iso2:"gy",continent:"South America",flag_1x1:"flags/1x1/gy.svg",flag_4x3:"flags/4x3/gy.svg",iso:true,name:"Guyana",country:"592",iso3:"GUY"},{capital:"Port-au-Prince",iso2:"ht",continent:"North America",flag_1x1:"flags/1x1/ht.svg",flag_4x3:"flags/4x3/ht.svg",iso:true,name:"Haiti",country:"509",iso3:"HTI"},{iso2:"hm",flag_1x1:"flags/1x1/hm.svg",flag_4x3:"flags/4x3/hm.svg",iso:true,name:"Heard Island and McDonald Islands",country:" ",iso3:"HMD"},{capital:"Vatican City",iso2:"va",continent:"Europe",flag_1x1:"flags/1x1/va.svg",flag_4x3:"flags/4x3/va.svg",iso:true,name:"Holy See",country:"379",iso3:"VAT"},{capital:"Tegucigalpa",iso2:"hn",continent:"North America",flag_1x1:"flags/1x1/hn.svg",flag_4x3:"flags/4x3/hn.svg",iso:true,name:"Honduras",country:"504",iso3:"HND"},{capital:"Hong Kong",iso2:"hk",continent:"Asia",flag_1x1:"flags/1x1/hk.svg",flag_4x3:"flags/4x3/hk.svg",iso:true,name:"Hong Kong",country:"852",iso3:"HKG"},{capital:"Budapest",iso2:"hu",continent:"Europe",flag_1x1:"flags/1x1/hu.svg",flag_4x3:"flags/4x3/hu.svg",iso:true,name:"Hungary",country:"36",iso3:"HUN"},{capital:"Reykjavik",iso2:"is",continent:"Europe",flag_1x1:"flags/1x1/is.svg",flag_4x3:"flags/4x3/is.svg",iso:true,name:"Iceland",country:"354",iso3:"ISL"},{capital:"New Delhi",iso2:"in",continent:"Asia",flag_1x1:"flags/1x1/in.svg",flag_4x3:"flags/4x3/in.svg",iso:true,name:"India",country:"91",iso3:"IND"},{capital:"Jakarta",iso2:"id",continent:"Asia",flag_1x1:"flags/1x1/id.svg",flag_4x3:"flags/4x3/id.svg",iso:true,name:"Indonesia",country:"62",iso3:"IDN"},{capital:"Tehran",iso2:"ir",continent:"Asia",flag_1x1:"flags/1x1/ir.svg",flag_4x3:"flags/4x3/ir.svg",iso:true,name:"Iran",country:"98",iso3:"IRN"},{capital:"Baghdad",iso2:"iq",continent:"Asia",flag_1x1:"flags/1x1/iq.svg",flag_4x3:"flags/4x3/iq.svg",iso:true,name:"Iraq",country:"964",iso3:"IRQ"},{capital:"Dublin",iso2:"ie",continent:"Europe",flag_1x1:"flags/1x1/ie.svg",flag_4x3:"flags/4x3/ie.svg",iso:true,name:"Ireland",country:"353",iso3:"IRL"},{capital:"Douglas",iso2:"im",continent:"Europe",flag_1x1:"flags/1x1/im.svg",flag_4x3:"flags/4x3/im.svg",iso:true,name:"Isle of Man",country:"44-1624",iso3:"IMN"},{capital:"Jerusalem",iso2:"il",continent:"Asia",flag_1x1:"flags/1x1/il.svg",flag_4x3:"flags/4x3/il.svg",iso:true,name:"Israel",country:"972",iso3:"ISR"},{capital:"Rome",iso2:"it",continent:"Europe",flag_1x1:"flags/1x1/it.svg",flag_4x3:"flags/4x3/it.svg",iso:true,name:"Italy",country:"39",iso3:"ITA"},{capital:"Kingston",iso2:"jm",continent:"North America",flag_1x1:"flags/1x1/jm.svg",flag_4x3:"flags/4x3/jm.svg",iso:true,name:"Jamaica",country:"1-876",iso3:"JAM"},{capital:"Tokyo",iso2:"jp",continent:"Asia",flag_1x1:"flags/1x1/jp.svg",flag_4x3:"flags/4x3/jp.svg",iso:true,name:"Japan",country:"81",iso3:"JPN"},{capital:"Saint Helier",iso2:"je",continent:"Europe",flag_1x1:"flags/1x1/je.svg",flag_4x3:"flags/4x3/je.svg",iso:true,name:"Jersey",country:"44-1534",iso3:"JEY"},{capital:"Amman",iso2:"jo",continent:"Asia",flag_1x1:"flags/1x1/jo.svg",flag_4x3:"flags/4x3/jo.svg",iso:true,name:"Jordan",country:"962",iso3:"JOR"},{capital:"Astana",iso2:"kz",continent:"Asia",flag_1x1:"flags/1x1/kz.svg",flag_4x3:"flags/4x3/kz.svg",iso:true,name:"Kazakhstan",country:"7",iso3:"KAZ"},{capital:"Nairobi",iso2:"ke",continent:"Africa",flag_1x1:"flags/1x1/ke.svg",flag_4x3:"flags/4x3/ke.svg",iso:true,name:"Kenya",country:"254",iso3:"KEN"},{capital:"South Tarawa",iso2:"ki",continent:"Oceania",flag_1x1:"flags/1x1/ki.svg",flag_4x3:"flags/4x3/ki.svg",iso:true,name:"Kiribati",country:"686",iso3:"KIR"},{capital:"Kuwait City",iso2:"kw",continent:"Asia",flag_1x1:"flags/1x1/kw.svg",flag_4x3:"flags/4x3/kw.svg",iso:true,name:"Kuwait",country:"965",iso3:"KWT"},{capital:"Bishkek",iso2:"kg",continent:"Asia",flag_1x1:"flags/1x1/kg.svg",flag_4x3:"flags/4x3/kg.svg",iso:true,name:"Kyrgyzstan",country:"996",iso3:"KGZ"},{capital:"Vientiane",iso2:"la",continent:"Asia",flag_1x1:"flags/1x1/la.svg",flag_4x3:"flags/4x3/la.svg",iso:true,name:"Laos",country:"856",iso3:"LAO"},{capital:"Riga",iso2:"lv",continent:"Europe",flag_1x1:"flags/1x1/lv.svg",flag_4x3:"flags/4x3/lv.svg",iso:true,name:"Latvia",country:"371",iso3:"LVA"},{capital:"Beirut",iso2:"lb",continent:"Asia",flag_1x1:"flags/1x1/lb.svg",flag_4x3:"flags/4x3/lb.svg",iso:true,name:"Lebanon",country:"961",iso3:"LBN"},{capital:"Maseru",iso2:"ls",continent:"Africa",flag_1x1:"flags/1x1/ls.svg",flag_4x3:"flags/4x3/ls.svg",iso:true,name:"Lesotho",country:"266",iso3:"LSO"},{capital:"Monrovia",iso2:"lr",continent:"Africa",flag_1x1:"flags/1x1/lr.svg",flag_4x3:"flags/4x3/lr.svg",iso:true,name:"Liberia",country:"231",iso3:"LBR"},{capital:"Tripoli",iso2:"ly",continent:"Africa",flag_1x1:"flags/1x1/ly.svg",flag_4x3:"flags/4x3/ly.svg",iso:true,name:"Libya",country:"218",iso3:"LBY"},{capital:"Vaduz",iso2:"li",continent:"Europe",flag_1x1:"flags/1x1/li.svg",flag_4x3:"flags/4x3/li.svg",iso:true,name:"Liechtenstein",country:"423",iso3:"LIE"},{capital:"Vilnius",iso2:"lt",continent:"Europe",flag_1x1:"flags/1x1/lt.svg",flag_4x3:"flags/4x3/lt.svg",iso:true,name:"Lithuania",country:"370",iso3:"LTU"},{capital:"Luxembourg City",iso2:"lu",continent:"Europe",flag_1x1:"flags/1x1/lu.svg",flag_4x3:"flags/4x3/lu.svg",iso:true,name:"Luxembourg",country:"352",iso3:"LUX"},{capital:"Macau",iso2:"mo",continent:"Asia",flag_1x1:"flags/1x1/mo.svg",flag_4x3:"flags/4x3/mo.svg",iso:true,name:"Macau",country:"853",iso3:"MAC"},{capital:"Antananarivo",iso2:"mg",continent:"Africa",flag_1x1:"flags/1x1/mg.svg",flag_4x3:"flags/4x3/mg.svg",iso:true,name:"Madagascar",country:"261",iso3:"MDG"},{capital:"Lilongwe",iso2:"mw",continent:"Africa",flag_1x1:"flags/1x1/mw.svg",flag_4x3:"flags/4x3/mw.svg",iso:true,name:"Malawi",country:"265",iso3:"MWI"},{capital:"Kuala Lumpur",iso2:"my",continent:"Asia",flag_1x1:"flags/1x1/my.svg",flag_4x3:"flags/4x3/my.svg",iso:true,name:"Malaysia",country:"60",iso3:"MYS"},{capital:"Malé",iso2:"mv",continent:"Asia",flag_1x1:"flags/1x1/mv.svg",flag_4x3:"flags/4x3/mv.svg",iso:true,name:"Maldives",country:"960",iso3:"MDV"},{capital:"Bamako",iso2:"ml",continent:"Africa",flag_1x1:"flags/1x1/ml.svg",flag_4x3:"flags/4x3/ml.svg",iso:true,name:"Mali",country:"223",iso3:"MLI"},{capital:"Valletta",iso2:"mt",continent:"Europe",flag_1x1:"flags/1x1/mt.svg",flag_4x3:"flags/4x3/mt.svg",iso:true,name:"Malta",country:"356",iso3:"MLT"},{capital:"Majuro",iso2:"mh",continent:"Oceania",flag_1x1:"flags/1x1/mh.svg",flag_4x3:"flags/4x3/mh.svg",iso:true,name:"Marshall Islands",country:"692",iso3:"MHL"},{capital:"Fort-de-France",iso2:"mq",continent:"North America",flag_1x1:"flags/1x1/mq.svg",flag_4x3:"flags/4x3/mq.svg",iso:true,name:"Martinique",country:"596",iso3:"MTQ"},{capital:"Nouakchott",iso2:"mr",continent:"Africa",flag_1x1:"flags/1x1/mr.svg",flag_4x3:"flags/4x3/mr.svg",iso:true,name:"Mauritania",country:"222",iso3:"MRT"},{capital:"Port Louis",iso2:"mu",continent:"Africa",flag_1x1:"flags/1x1/mu.svg",flag_4x3:"flags/4x3/mu.svg",iso:true,name:"Mauritius",country:"230",iso3:"MUS"},{capital:"Mamoudzou",iso2:"yt",continent:"Africa",flag_1x1:"flags/1x1/yt.svg",flag_4x3:"flags/4x3/yt.svg",iso:true,name:"Mayotte",country:"262",iso3:"MYT"},{capital:"Mexico City",iso2:"mx",continent:"North America",flag_1x1:"flags/1x1/mx.svg",flag_4x3:"flags/4x3/mx.svg",iso:true,name:"Mexico",country:"52",iso3:"MEX"},{capital:"Chișinău",iso2:"md",continent:"Europe",flag_1x1:"flags/1x1/md.svg",flag_4x3:"flags/4x3/md.svg",iso:true,name:"Moldova",country:"373",iso3:"MDA"},{capital:"Monaco",iso2:"mc",continent:"Europe",flag_1x1:"flags/1x1/mc.svg",flag_4x3:"flags/4x3/mc.svg",iso:true,name:"Monaco",country:"377",iso3:"MCO"},{capital:"Ulaanbaatar",iso2:"mn",continent:"Asia",flag_1x1:"flags/1x1/mn.svg",flag_4x3:"flags/4x3/mn.svg",iso:true,name:"Mongolia",country:"976",iso3:"MNG"},{capital:"Podgorica",iso2:"me",continent:"Europe",flag_1x1:"flags/1x1/me.svg",flag_4x3:"flags/4x3/me.svg",iso:true,name:"Montenegro",country:"382",iso3:"MNE"},{capital:"Little Bay, Brades, Plymouth",iso2:"ms",continent:"North America",flag_1x1:"flags/1x1/ms.svg",flag_4x3:"flags/4x3/ms.svg",iso:true,name:"Montserrat",country:"1-664",iso3:"MSR"},{capital:"Rabat",iso2:"ma",continent:"Africa",flag_1x1:"flags/1x1/ma.svg",flag_4x3:"flags/4x3/ma.svg",iso:true,name:"Morocco",country:"212",iso3:"MAR"},{capital:"Maputo",iso2:"mz",continent:"Africa",flag_1x1:"flags/1x1/mz.svg",flag_4x3:"flags/4x3/mz.svg",iso:true,name:"Mozambique",country:"258",iso3:"MOZ"},{capital:"Naypyidaw",iso2:"mm",continent:"Asia",flag_1x1:"flags/1x1/mm.svg",flag_4x3:"flags/4x3/mm.svg",iso:true,name:"Myanmar",country:"95",iso3:"MMR"},{capital:"Windhoek",iso2:"na",continent:"Africa",flag_1x1:"flags/1x1/na.svg",flag_4x3:"flags/4x3/na.svg",iso:true,name:"Namibia",country:"264",iso3:"NAM"},{capital:"Yaren District",iso2:"nr",continent:"Oceania",flag_1x1:"flags/1x1/nr.svg",flag_4x3:"flags/4x3/nr.svg",iso:true,name:"Nauru",country:"674",iso3:"NRU"},{capital:"Kathmandu",iso2:"np",continent:"Asia",flag_1x1:"flags/1x1/np.svg",flag_4x3:"flags/4x3/np.svg",iso:true,name:"Nepal",country:"977",iso3:"NPL"},{capital:"Amsterdam",iso2:"nl",continent:"Europe",flag_1x1:"flags/1x1/nl.svg",flag_4x3:"flags/4x3/nl.svg",iso:true,name:"Netherlands",country:"31",iso3:"NLD"},{capital:"Nouméa",iso2:"nc",continent:"Oceania",flag_1x1:"flags/1x1/nc.svg",flag_4x3:"flags/4x3/nc.svg",iso:true,name:"New Caledonia",country:"687",iso3:"NCL"},{capital:"Wellington",iso2:"nz",continent:"Oceania",flag_1x1:"flags/1x1/nz.svg",flag_4x3:"flags/4x3/nz.svg",iso:true,name:"New Zealand",country:"64",iso3:"NZL"},{capital:"Managua",iso2:"ni",continent:"North America",flag_1x1:"flags/1x1/ni.svg",flag_4x3:"flags/4x3/ni.svg",iso:true,name:"Nicaragua",country:"505",iso3:"NIC"},{capital:"Niamey",iso2:"ne",continent:"Africa",flag_1x1:"flags/1x1/ne.svg",flag_4x3:"flags/4x3/ne.svg",iso:true,name:"Niger",country:"227",iso3:"NER"},{capital:"Abuja",iso2:"ng",continent:"Africa",flag_1x1:"flags/1x1/ng.svg",flag_4x3:"flags/4x3/ng.svg",iso:true,name:"Nigeria",country:"234",iso3:"NGA"},{capital:"Alofi",iso2:"nu",continent:"Oceania",flag_1x1:"flags/1x1/nu.svg",flag_4x3:"flags/4x3/nu.svg",iso:true,name:"Niue",country:"683",iso3:"NIU"},{capital:"Kingston",iso2:"nf",continent:"Oceania",flag_1x1:"flags/1x1/nf.svg",flag_4x3:"flags/4x3/nf.svg",iso:true,name:"Norfolk Island",country:"672",iso3:"NFK"},{capital:"Pyongyang",iso2:"kp",continent:"Asia",flag_1x1:"flags/1x1/kp.svg",flag_4x3:"flags/4x3/kp.svg",iso:true,name:"North Korea",country:"850",iso3:"PRK"},{capital:"Skopje",iso2:"mk",continent:"Europe",flag_1x1:"flags/1x1/mk.svg",flag_4x3:"flags/4x3/mk.svg",iso:true,name:"North Macedonia",country:"389",iso3:"MKD"},{capital:"Saipan",iso2:"mp",continent:"Oceania",flag_1x1:"flags/1x1/mp.svg",flag_4x3:"flags/4x3/mp.svg",iso:true,name:"Northern Mariana Islands",country:"1-670",iso3:"MNP"},{capital:"Oslo",iso2:"no",continent:"Europe",flag_1x1:"flags/1x1/no.svg",flag_4x3:"flags/4x3/no.svg",iso:true,name:"Norway",country:"47",iso3:"NOR"},{capital:"Muscat",iso2:"om",continent:"Asia",flag_1x1:"flags/1x1/om.svg",flag_4x3:"flags/4x3/om.svg",iso:true,name:"Oman",country:"968",iso3:"OMN"},{capital:"Islamabad",iso2:"pk",continent:"Asia",flag_1x1:"flags/1x1/pk.svg",flag_4x3:"flags/4x3/pk.svg",iso:true,name:"Pakistan",country:"92",iso3:"PAK"},{capital:"Ngerulmud",iso2:"pw",continent:"Oceania",flag_1x1:"flags/1x1/pw.svg",flag_4x3:"flags/4x3/pw.svg",iso:true,name:"Palau",country:"680",iso3:"PLW"},{capital:"Panama City",iso2:"pa",continent:"North America",flag_1x1:"flags/1x1/pa.svg",flag_4x3:"flags/4x3/pa.svg",iso:true,name:"Panama",country:"507",iso3:"PAN"},{capital:"Port Moresby",iso2:"pg",continent:"Oceania",flag_1x1:"flags/1x1/pg.svg",flag_4x3:"flags/4x3/pg.svg",iso:true,name:"Papua New Guinea",country:"675",iso3:"PNG"},{capital:"Asunción",iso2:"py",continent:"South America",flag_1x1:"flags/1x1/py.svg",flag_4x3:"flags/4x3/py.svg",iso:true,name:"Paraguay",country:"595",iso3:"PRY"},{capital:"Lima",iso2:"pe",continent:"South America",flag_1x1:"flags/1x1/pe.svg",flag_4x3:"flags/4x3/pe.svg",iso:true,name:"Peru",country:"51",iso3:"PER"},{capital:"Manila",iso2:"ph",continent:"Asia",flag_1x1:"flags/1x1/ph.svg",flag_4x3:"flags/4x3/ph.svg",iso:true,name:"Philippines",country:"63",iso3:"PHL"},{capital:"Adamstown",iso2:"pn",continent:"Oceania",flag_1x1:"flags/1x1/pn.svg",flag_4x3:"flags/4x3/pn.svg",iso:true,name:"Pitcairn",country:"870",iso3:"PCN"},{capital:"Warsaw",iso2:"pl",continent:"Europe",flag_1x1:"flags/1x1/pl.svg",flag_4x3:"flags/4x3/pl.svg",iso:true,name:"Poland",country:"48",iso3:"POL"},{capital:"Lisbon",iso2:"pt",continent:"Europe",flag_1x1:"flags/1x1/pt.svg",flag_4x3:"flags/4x3/pt.svg",iso:true,name:"Portugal",country:"351",iso3:"PRT"},{capital:"San Juan",iso2:"pr",continent:"North America",flag_1x1:"flags/1x1/pr.svg",flag_4x3:"flags/4x3/pr.svg",iso:true,name:"Puerto Rico",country:"1-787",iso3:"PRI"},{capital:"Doha",iso2:"qa",continent:"Asia",flag_1x1:"flags/1x1/qa.svg",flag_4x3:"flags/4x3/qa.svg",iso:true,name:"Qatar",country:"974",iso3:"QAT"},{capital:"Brazzaville",iso2:"cg",continent:"Africa",flag_1x1:"flags/1x1/cg.svg",flag_4x3:"flags/4x3/cg.svg",iso:true,name:"Republic of the Congo",country:"242",iso3:"COG"},{capital:"Bucharest",iso2:"ro",continent:"Europe",flag_1x1:"flags/1x1/ro.svg",flag_4x3:"flags/4x3/ro.svg",iso:true,name:"Romania",country:"40",iso3:"ROU"},{capital:"Moscow",iso2:"ru",continent:"Europe",flag_1x1:"flags/1x1/ru.svg",flag_4x3:"flags/4x3/ru.svg",iso:true,name:"Russia",country:"7",iso3:"RUS"},{capital:"Kigali",iso2:"rw",continent:"Africa",flag_1x1:"flags/1x1/rw.svg",flag_4x3:"flags/4x3/rw.svg",iso:true,name:"Rwanda",country:"250",iso3:"RWA"},{capital:"Saint-Denis",iso2:"re",continent:"Africa",flag_1x1:"flags/1x1/re.svg",flag_4x3:"flags/4x3/re.svg",iso:true,name:"Réunion",country:"262",iso3:"REU"},{capital:"Gustavia",iso2:"bl",continent:"North America",flag_1x1:"flags/1x1/bl.svg",flag_4x3:"flags/4x3/bl.svg",iso:true,name:"Saint Barthélemy",country:"590",iso3:"BLM"},{capital:"Jamestown",iso2:"sh",continent:"Africa",flag_1x1:"flags/1x1/sh.svg",flag_4x3:"flags/4x3/sh.svg",iso:true,name:"Saint Helena, Ascension and Tristan da Cunha",country:"290",iso3:"SHN"},{capital:"Basseterre",iso2:"kn",continent:"North America",flag_1x1:"flags/1x1/kn.svg",flag_4x3:"flags/4x3/kn.svg",iso:true,name:"Saint Kitts and Nevis",country:"1-869",iso3:"KNA"},{capital:"Castries",iso2:"lc",continent:"North America",flag_1x1:"flags/1x1/lc.svg",flag_4x3:"flags/4x3/lc.svg",iso:true,name:"Saint Lucia",country:"1-758",iso3:"LCA"},{capital:"Marigot",iso2:"mf",continent:"North America",flag_1x1:"flags/1x1/mf.svg",flag_4x3:"flags/4x3/mf.svg",iso:true,name:"Saint Martin",country:"590",iso3:"MAF"},{capital:"Saint-Pierre",iso2:"pm",continent:"North America",flag_1x1:"flags/1x1/pm.svg",flag_4x3:"flags/4x3/pm.svg",iso:true,name:"Saint Pierre and Miquelon",country:"508",iso3:"SPM"},{capital:"Kingstown",iso2:"vc",continent:"North America",flag_1x1:"flags/1x1/vc.svg",flag_4x3:"flags/4x3/vc.svg",iso:true,name:"Saint Vincent and the Grenadines",country:"1-784",iso3:"VCT"},{capital:"Apia",iso2:"ws",continent:"Oceania",flag_1x1:"flags/1x1/ws.svg",flag_4x3:"flags/4x3/ws.svg",iso:true,name:"Samoa",country:"685",iso3:"WSM"},{capital:"San Marino",iso2:"sm",continent:"Europe",flag_1x1:"flags/1x1/sm.svg",flag_4x3:"flags/4x3/sm.svg",iso:true,name:"San Marino",country:"378",iso3:"SMR"},{capital:"São Tomé",iso2:"st",continent:"Africa",flag_1x1:"flags/1x1/st.svg",flag_4x3:"flags/4x3/st.svg",iso:true,name:"Sao Tome and Principe",country:"239",iso3:"STP"},{capital:"Riyadh",iso2:"sa",continent:"Asia",flag_1x1:"flags/1x1/sa.svg",flag_4x3:"flags/4x3/sa.svg",iso:true,name:"Saudi Arabia",country:"966",iso3:"SAU"},{capital:"Dakar",iso2:"sn",continent:"Africa",flag_1x1:"flags/1x1/sn.svg",flag_4x3:"flags/4x3/sn.svg",iso:true,name:"Senegal",country:"221",iso3:"SEN"},{capital:"Belgrade",iso2:"rs",continent:"Europe",flag_1x1:"flags/1x1/rs.svg",flag_4x3:"flags/4x3/rs.svg",iso:true,name:"Serbia",country:"381",iso3:"SRB"},{capital:"Victoria",iso2:"sc",continent:"Africa",flag_1x1:"flags/1x1/sc.svg",flag_4x3:"flags/4x3/sc.svg",iso:true,name:"Seychelles",country:"248",iso3:"SYC"},{capital:"Freetown",iso2:"sl",continent:"Africa",flag_1x1:"flags/1x1/sl.svg",flag_4x3:"flags/4x3/sl.svg",iso:true,name:"Sierra Leone",country:"232",iso3:"SLE"},{capital:"Singapore",iso2:"sg",continent:"Asia",flag_1x1:"flags/1x1/sg.svg",flag_4x3:"flags/4x3/sg.svg",iso:true,name:"Singapore",country:"65",iso3:"SGP"},{capital:"Philipsburg",iso2:"sx",continent:"North America",flag_1x1:"flags/1x1/sx.svg",flag_4x3:"flags/4x3/sx.svg",iso:true,name:"Sint Maarten",country:"599",iso3:"SXM"},{capital:"Bratislava",iso2:"sk",continent:"Europe",flag_1x1:"flags/1x1/sk.svg",flag_4x3:"flags/4x3/sk.svg",iso:true,name:"Slovakia",country:"421",iso3:"SVK"},{capital:"Ljubljana",iso2:"si",continent:"Europe",flag_1x1:"flags/1x1/si.svg",flag_4x3:"flags/4x3/si.svg",iso:true,name:"Slovenia",country:"386",iso3:"SVN"},{capital:"Honiara",iso2:"sb",continent:"Oceania",flag_1x1:"flags/1x1/sb.svg",flag_4x3:"flags/4x3/sb.svg",iso:true,name:"Solomon Islands",country:"677",iso3:"SLB"},{capital:"Mogadishu",iso2:"so",continent:"Africa",flag_1x1:"flags/1x1/so.svg",flag_4x3:"flags/4x3/so.svg",iso:true,name:"Somalia",country:"252",iso3:"SOM"},{capital:"Pretoria",iso2:"za",continent:"Africa",flag_1x1:"flags/1x1/za.svg",flag_4x3:"flags/4x3/za.svg",iso:true,name:"South Africa",country:"27",iso3:"ZAF"},{capital:"Seoul",iso2:"kr",continent:"Asia",flag_1x1:"flags/1x1/kr.svg",flag_4x3:"flags/4x3/kr.svg",iso:true,name:"South Korea",country:"82",iso3:"KOR"},{capital:"Juba",iso2:"ss",continent:"Africa",flag_1x1:"flags/1x1/ss.svg",flag_4x3:"flags/4x3/ss.svg",iso:true,name:"South Sudan",country:"211",iso3:"SSD"},{capital:"Madrid",iso2:"es",continent:"Europe",flag_1x1:"flags/1x1/es.svg",flag_4x3:"flags/4x3/es.svg",iso:true,name:"Spain",country:"34",iso3:"ESP"},{capital:"Sri Jayawardenepura Kotte, Colombo",iso2:"lk",continent:"Asia",flag_1x1:"flags/1x1/lk.svg",flag_4x3:"flags/4x3/lk.svg",iso:true,name:"Sri Lanka",country:"94",iso3:"LKA"},{capital:"Ramallah",iso2:"ps",continent:"Asia",flag_1x1:"flags/1x1/ps.svg",flag_4x3:"flags/4x3/ps.svg",iso:true,name:"State of Palestine",country:"970",iso3:"PSE"},{capital:"Khartoum",iso2:"sd",continent:"Africa",flag_1x1:"flags/1x1/sd.svg",flag_4x3:"flags/4x3/sd.svg",iso:true,name:"Sudan",country:"249",iso3:"SDN"},{capital:"Paramaribo",iso2:"sr",continent:"South America",flag_1x1:"flags/1x1/sr.svg",flag_4x3:"flags/4x3/sr.svg",iso:true,name:"Suriname",country:"597",iso3:"SUR"},{capital:"Longyearbyen",iso2:"sj",continent:"Europe",flag_1x1:"flags/1x1/sj.svg",flag_4x3:"flags/4x3/sj.svg",iso:true,name:"Svalbard and Jan Mayen",country:"47",iso3:"SJM"},{capital:"Stockholm",iso2:"se",continent:"Europe",flag_1x1:"flags/1x1/se.svg",flag_4x3:"flags/4x3/se.svg",iso:true,name:"Sweden",country:"46",iso3:"SWE"},{capital:"Bern",iso2:"ch",continent:"Europe",flag_1x1:"flags/1x1/ch.svg",flag_4x3:"flags/4x3/ch.svg",iso:true,name:"Switzerland",country:"41",iso3:"CHE"},{capital:"Damascus",iso2:"sy",continent:"Asia",flag_1x1:"flags/1x1/sy.svg",flag_4x3:"flags/4x3/sy.svg",iso:true,name:"Syria",country:"963",iso3:"SYR"},{capital:"Taipei",iso2:"tw",continent:"Asia",flag_1x1:"flags/1x1/tw.svg",flag_4x3:"flags/4x3/tw.svg",iso:true,name:"Taiwan",country:"886",iso3:"TWN"},{capital:"Dushanbe",iso2:"tj",continent:"Asia",flag_1x1:"flags/1x1/tj.svg",flag_4x3:"flags/4x3/tj.svg",iso:true,name:"Tajikistan",country:"992",iso3:"TJK"},{capital:"Dodoma",iso2:"tz",continent:"Africa",flag_1x1:"flags/1x1/tz.svg",flag_4x3:"flags/4x3/tz.svg",iso:true,name:"Tanzania",country:"255",iso3:"TZA"},{capital:"Bangkok",iso2:"th",continent:"Asia",flag_1x1:"flags/1x1/th.svg",flag_4x3:"flags/4x3/th.svg",iso:true,name:"Thailand",country:"66",iso3:"THA"},{capital:"Dili",iso2:"tl",continent:"Asia",flag_1x1:"flags/1x1/tl.svg",flag_4x3:"flags/4x3/tl.svg",iso:true,name:"Timor-Leste",country:"670",iso3:"TLS"},{capital:"Lomé",iso2:"tg",continent:"Africa",flag_1x1:"flags/1x1/tg.svg",flag_4x3:"flags/4x3/tg.svg",iso:true,name:"Togo",country:"228",iso3:"TGO"},{capital:"Nukunonu, Atafu,Tokelau",iso2:"tk",continent:"Oceania",flag_1x1:"flags/1x1/tk.svg",flag_4x3:"flags/4x3/tk.svg",iso:true,name:"Tokelau",country:"690",iso3:"TKL"},{capital:"Nukuʻalofa",iso2:"to",continent:"Oceania",flag_1x1:"flags/1x1/to.svg",flag_4x3:"flags/4x3/to.svg",iso:true,name:"Tonga",country:"676",iso3:"TON"},{capital:"Port of Spain",iso2:"tt",continent:"South America",flag_1x1:"flags/1x1/tt.svg",flag_4x3:"flags/4x3/tt.svg",iso:true,name:"Trinidad and Tobago",country:"1-868",iso3:"TTO"},{capital:"Tunis",iso2:"tn",continent:"Africa",flag_1x1:"flags/1x1/tn.svg",flag_4x3:"flags/4x3/tn.svg",iso:true,name:"Tunisia",country:"216",iso3:"TUN"},{capital:"Ashgabat",iso2:"tm",continent:"Asia",flag_1x1:"flags/1x1/tm.svg",flag_4x3:"flags/4x3/tm.svg",iso:true,name:"Turkmenistan",country:"993",iso3:"TKM"},{capital:"Cockburn Town",iso2:"tc",continent:"North America",flag_1x1:"flags/1x1/tc.svg",flag_4x3:"flags/4x3/tc.svg",iso:true,name:"Turks and Caicos Islands",country:"1-649",iso3:"TCA"},{capital:"Funafuti",iso2:"tv",continent:"Oceania",flag_1x1:"flags/1x1/tv.svg",flag_4x3:"flags/4x3/tv.svg",iso:true,name:"Tuvalu",country:"688",iso3:"TUV"},{capital:"Ankara",iso2:"tr",continent:"Asia",flag_1x1:"flags/1x1/tr.svg",flag_4x3:"flags/4x3/tr.svg",iso:true,name:"Türkiye",country:"90",iso3:"TUR"},{capital:"Kampala",iso2:"ug",continent:"Africa",flag_1x1:"flags/1x1/ug.svg",flag_4x3:"flags/4x3/ug.svg",iso:true,name:"Uganda",country:"256",iso3:"UGA"},{capital:"Kiev",iso2:"ua",continent:"Europe",flag_1x1:"flags/1x1/ua.svg",flag_4x3:"flags/4x3/ua.svg",iso:true,name:"Ukraine",country:"380",iso3:"UKR"},{capital:"Abu Dhabi",iso2:"ae",continent:"Asia",flag_1x1:"flags/1x1/ae.svg",flag_4x3:"flags/4x3/ae.svg",iso:true,name:"United Arab Emirates",country:"971",iso3:"ARE"},{capital:"London",iso2:"gb",continent:"Europe",flag_1x1:"flags/1x1/gb.svg",flag_4x3:"flags/4x3/gb.svg",iso:true,name:"United Kingdom",country:"44",iso3:"ENG"},{capital:"Washington, D.C.",iso2:"us",continent:"North America",flag_1x1:"flags/1x1/us.svg",flag_4x3:"flags/4x3/us.svg",iso:true,name:"United States",country:"1",iso3:"USA"},{capital:"Montevideo",iso2:"uy",continent:"South America",flag_1x1:"flags/1x1/uy.svg",flag_4x3:"flags/4x3/uy.svg",iso:true,name:"Uruguay",country:"598",iso3:"URY"},{capital:"Tashkent",iso2:"uz",continent:"Asia",flag_1x1:"flags/1x1/uz.svg",flag_4x3:"flags/4x3/uz.svg",iso:true,name:"Uzbekistan",country:"998",iso3:"UZB"},{capital:"Port Vila",iso2:"vu",continent:"Oceania",flag_1x1:"flags/1x1/vu.svg",flag_4x3:"flags/4x3/vu.svg",iso:true,name:"Vanuatu",country:"678",iso3:"VUT"},{capital:"Caracas",iso2:"ve",continent:"South America",flag_1x1:"flags/1x1/ve.svg",flag_4x3:"flags/4x3/ve.svg",iso:true,name:"Venezuela",country:"58",iso3:"VEN"},{capital:"Hanoi",iso2:"vn",continent:"Asia",flag_1x1:"flags/1x1/vn.svg",flag_4x3:"flags/4x3/vn.svg",iso:true,name:"Vietnam",country:"84",iso3:"VNM"},{capital:"Road Town",iso2:"vg",continent:"North America",flag_1x1:"flags/1x1/vg.svg",flag_4x3:"flags/4x3/vg.svg",iso:true,name:"Virgin Islands (British)",country:"1-284",iso3:"VGB"},{capital:"Charlotte Amalie",iso2:"vi",continent:"North America",flag_1x1:"flags/1x1/vi.svg",flag_4x3:"flags/4x3/vi.svg",iso:true,name:"Virgin Islands (U.S.)",country:"1-340",iso3:"VIR"},{capital:"Mata-Utu",iso2:"wf",continent:"Oceania",flag_1x1:"flags/1x1/wf.svg",flag_4x3:"flags/4x3/wf.svg",iso:true,name:"Wallis and Futuna",country:"681",iso3:"WLF"},{capital:"Laayoune",iso2:"eh",continent:"Africa",flag_1x1:"flags/1x1/eh.svg",flag_4x3:"flags/4x3/eh.svg",iso:true,name:"Western Sahara",country:"212",iso3:"ESH"},{capital:"Sana'a",iso2:"ye",continent:"Asia",flag_1x1:"flags/1x1/ye.svg",flag_4x3:"flags/4x3/ye.svg",iso:true,name:"Yemen",country:"967",iso3:"YEM"},{capital:"Lusaka",iso2:"zm",continent:"Africa",flag_1x1:"flags/1x1/zm.svg",flag_4x3:"flags/4x3/zm.svg",iso:true,name:"Zambia",country:"260",iso3:"ZMB"},{capital:"Harare",iso2:"zw",continent:"Africa",flag_1x1:"flags/1x1/zw.svg",flag_4x3:"flags/4x3/zw.svg",iso:true,name:"Zimbabwe",country:"263",iso3:"ZWE"}];var GLOBAL={capital:"Global",iso2:"global",continent:"",flag_1x1:"",flag_4x3:"",iso:true,name:"Global",country:"00",iso3:"GLOBAL"};var FLAG_BASE_URL="./constants/flags/4x3/";function getNameFlag(a,s,i,n,t,o,g,l,e){var r=o===true||o==="true";var f=g===true||g==="true";var c=l===true||l==="true";var x=t==="iso3"?a:s;var u=i;var v=x.toLocaleUpperCase();var m="";switch(true){case f&&c&&r&&e===AlignFlag.RIGHT:m="(+".concat(n,") ").concat(v);break;case f&&c&&r:m="".concat(v," (+").concat(n,")");break;case f&&!c&&r:m="".concat(v);break;case r&&c&&e===AlignFlag.RIGHT:m="(+".concat(n,") ").concat(u);break;case r&&c:m="".concat(u," (+").concat(n,")");break;case r||!f&&r:m="".concat(u);break;case!r&&!c:m="";break;case!r&&c:m="(+".concat(n,")");break}return m.trim()}var bdsFlagCss=function(){return'@charset "UTF-8";.bds-flag{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bds-flag--reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.bds-flag__country{font-family:var(--boreal-typography-font-family-primary);color:var(--boreal-text-default-light);font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm)}.bds-flag__flag--global{background-image:none;background-color:var(--boreal-ui-base-light)}.bds-flag__flag--country{background-size:cover;background-position:center;background-repeat:no-repeat;-ms-flex-negative:0;flex-shrink:0}.bds-flag__flag--rectangle{width:var(--boreal-layout-ml);height:var(--boreal-layout-m);border-radius:var(--boreal-radius-xs2)}.bds-flag__flag--square{width:var(--boreal-layout-m);height:var(--boreal-layout-m);border-radius:var(--boreal-radius-xs2)}.bds-flag__flag--circle{width:var(--boreal-layout-m);height:var(--boreal-layout-m);border-radius:var(--boreal-radius-full)}'};var BdsFlag=function(){function a(a){registerInstance(this,a);this.alignFlag=AlignFlag.LEFT;this.callSign=false;this.country="";this.customFlags=[];this.identifier=FlagIdentifier.CODE;this.label=false;this.shape=Shape.RECTANGLE;this.shortName=false}a.prototype.checkPropValues=function(){validatePropValue(Object.values(AlignFlag),AlignFlag.LEFT,this.el,"alignFlag");validatePropValue(Object.values(FlagIdentifier),FlagIdentifier.CODE,this.el,"identifier");validatePropValue(Object.values(Shape),Shape.RECTANGLE,this.el,"shape")};a.prototype.componentWillLoad=function(){this.checkPropValues()};a.prototype.flagUrl=function(a){var s;var i=(s=this.customFlags)===null||s===void 0?void 0:s.find((function(s){return s.iso2.toLowerCase()===a}));if((i===null||i===void 0?void 0:i.flag_4x3)!==undefined)return i.flag_4x3;if(FLAG_BASE_URL.startsWith("http")){return"".concat(FLAG_BASE_URL).concat(a,".svg")}return"".concat(window.location.origin).concat(getAssetPath("".concat(FLAG_BASE_URL).concat(a,".svg")))};a.prototype.getCountry=function(){var a=__spreadArray(__spreadArray(__spreadArray([],allCountries,true),this.customFlags,true),[GLOBAL],false);var s=this.identifier===FlagIdentifier.CODE?"country":this.identifier;var i=this.identifier===FlagIdentifier.ISO3?this.country.toUpperCase():this.country.toLowerCase();var n=a.find((function(a){return a[s]===i}));return n||{country:"",iso2:"",iso3:"",name:""}};a.prototype.getCountryName=function(){var a=this.getCountry(),s=a.iso3,i=a.name,n=a.country,t=a.iso2;var o=this.getNameInternal(s,t,i,n);return o};a.prototype.getFlag=function(){var a=this.getCountry().iso2;return a.toLowerCase()};a.prototype.getNameInternal=function(a,s,i,n){return getNameFlag(a,s,i,n,this.identifier,this.label,this.shortName,this.callSign,this.alignFlag)};Object.defineProperty(a.prototype,"isGlobal",{get:function(){return this.getFlag()==="global"},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"flagClass",{get:function(){return{"bds-flag":true,"bds-flag--reverse":this.alignFlag===AlignFlag.RIGHT}},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"flagContentClass",{get:function(){var a;return a={"bds-flag__flag--country":true},a["bds-flag__flag--".concat(this.shape)]=true,a["bds-flag__flag--global"]=this.isGlobal,a},enumerable:false,configurable:true});a.prototype.render=function(){var a=this.getFlag();var s=this.getCountryName();var i=this.flagContentClass;var n=this.flagClass;var t=!this.isGlobal?{backgroundImage:"url(".concat(this.flagUrl(a),")")}:{};return h(Host,{key:"dd134e8e86c8b6fa5fae0317982296fee5768002",class:n,"aria-label":s,role:"img"},a&&h("span",{key:"41ca5fdab521e855d0c98a90bb07a9b46866bdb5",class:i,style:t,"aria-hidden":"true"}),h("span",{key:"82defab102847400d10358c4cd264cb982df1ab4",class:"bds-flag__country","aria-hidden":"true"},s))};Object.defineProperty(a,"assetsDirs",{get:function(){return["./constants"]},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{alignFlag:[{checkPropValues:0}],identifier:[{checkPropValues:0}],shape:[{checkPropValues:0}]}},enumerable:false,configurable:true});return a}();BdsFlag.style=bdsFlagCss();export{BdsFlag as bds_flag};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{a as validateNumericProp}from"./validateProps-kGnB15Lz.js";var GRID_ITEM_COL_SPAN={SM_MAX:4,MD_MAX:8,LG_MAX:12,XL_MAX:12,XXL_MAX:12,DEFAULT:12,OFFSET_MIN:0,OFFSET_MAX:11};var bdsGridItemCss=function(){return'@charset "UTF-8";bds-grid-item{--_col-span:var(--_col-base, 12);grid-column-end:span var(--_col-span);grid-row-end:span var(--_row-base, 1)}bds-grid-item[col-span=full]{grid-column:1/-1}bds-grid-item[row-span=full]{grid-row:1/-1}@media (min-width: 320px){bds-grid-item{--_col-span:var(--_col-sm, var(--_col-base, 12))}bds-grid-item[col-span-sm=full]{grid-column:1/-1}}@media (min-width: 769px){bds-grid-item{--_col-span:var(--_col-md, var(--_col-sm, var(--_col-base, 12)))}bds-grid-item[col-span-md=full]{grid-column:1/-1}}@media (min-width: 960px){bds-grid-item{--_col-span:var(--_col-lg, var(--_col-md, var(--_col-sm, var(--_col-base, 12))))}bds-grid-item[col-span-lg=full]{grid-column:1/-1}}@media (min-width: 1152px){bds-grid-item{--_col-span:var(--_col-xl, var(--_col-lg, var(--_col-md, var(--_col-sm, var(--_col-base, 12)))))}bds-grid-item[col-span-xl=full]{grid-column:1/-1}}@media (min-width: 1344px){bds-grid-item{--_col-span:var(--_col-2xl, var(--_col-xl, var(--_col-lg, var(--_col-md, var(--_col-sm, var(--_col-base, 12))))))}bds-grid-item[col-span-2xl=full]{grid-column:1/-1}}'};var BdsGridItem=function(){function i(i){registerInstance(this,i);this.colSpan=GRID_ITEM_COL_SPAN.DEFAULT;this.offset=0}i.prototype.checkPropValues=function(){validateNumericProp(1,GRID_ITEM_COL_SPAN.DEFAULT,this.el,"colSpan");validateNumericProp(1,GRID_ITEM_COL_SPAN.SM_MAX,this.el,"colSpanSm");validateNumericProp(1,GRID_ITEM_COL_SPAN.MD_MAX,this.el,"colSpanMd");validateNumericProp(1,GRID_ITEM_COL_SPAN.LG_MAX,this.el,"colSpanLg");validateNumericProp(1,GRID_ITEM_COL_SPAN.XL_MAX,this.el,"colSpanXl");validateNumericProp(1,GRID_ITEM_COL_SPAN.XXL_MAX,this.el,"colSpan2xl");validateNumericProp(1,undefined,this.el,"rowSpan");validateNumericProp(GRID_ITEM_COL_SPAN.OFFSET_MIN,GRID_ITEM_COL_SPAN.OFFSET_MAX,this.el,"offset")};i.prototype.componentWillLoad=function(){this.checkPropValues()};i.prototype.getHostStyles=function(){var i={};if(this.colSpan!=="full")i["--_col-base"]=String(this.colSpan);if(this.colSpanSm!==undefined&&this.colSpanSm!=="full")i["--_col-sm"]=String(this.colSpanSm);if(this.colSpanMd!==undefined&&this.colSpanMd!=="full")i["--_col-md"]=String(this.colSpanMd);if(this.colSpanLg!==undefined&&this.colSpanLg!=="full")i["--_col-lg"]=String(this.colSpanLg);if(this.colSpanXl!==undefined&&this.colSpanXl!=="full")i["--_col-xl"]=String(this.colSpanXl);if(this.colSpan2xl!==undefined&&this.colSpan2xl!=="full")i["--_col-2xl"]=String(this.colSpan2xl);if(this.rowSpan!==undefined&&this.rowSpan!=="full")i["--_row-base"]=String(this.rowSpan);if(this.offset>0)i["grid-column-start"]=String(Number(this.offset)+1);return i};i.prototype.render=function(){return h(Host,{key:"
|
|
1
|
+
import{r as registerInstance,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{a as validateNumericProp}from"./validateProps-kGnB15Lz.js";var GRID_ITEM_COL_SPAN={SM_MAX:4,MD_MAX:8,LG_MAX:12,XL_MAX:12,XXL_MAX:12,DEFAULT:12,OFFSET_MIN:0,OFFSET_MAX:11};var bdsGridItemCss=function(){return'@charset "UTF-8";bds-grid-item{--_col-span:var(--_col-base, 12);grid-column-end:span var(--_col-span);grid-row-end:span var(--_row-base, 1)}bds-grid-item[col-span=full]{grid-column:1/-1}bds-grid-item[row-span=full]{grid-row:1/-1}@media (min-width: 320px){bds-grid-item{--_col-span:var(--_col-sm, var(--_col-base, 12))}bds-grid-item[col-span-sm=full]{grid-column:1/-1}}@media (min-width: 769px){bds-grid-item{--_col-span:var(--_col-md, var(--_col-sm, var(--_col-base, 12)))}bds-grid-item[col-span-md=full]{grid-column:1/-1}}@media (min-width: 960px){bds-grid-item{--_col-span:var(--_col-lg, var(--_col-md, var(--_col-sm, var(--_col-base, 12))))}bds-grid-item[col-span-lg=full]{grid-column:1/-1}}@media (min-width: 1152px){bds-grid-item{--_col-span:var(--_col-xl, var(--_col-lg, var(--_col-md, var(--_col-sm, var(--_col-base, 12)))))}bds-grid-item[col-span-xl=full]{grid-column:1/-1}}@media (min-width: 1344px){bds-grid-item{--_col-span:var(--_col-2xl, var(--_col-xl, var(--_col-lg, var(--_col-md, var(--_col-sm, var(--_col-base, 12))))))}bds-grid-item[col-span-2xl=full]{grid-column:1/-1}}'};var BdsGridItem=function(){function i(i){registerInstance(this,i);this.colSpan=GRID_ITEM_COL_SPAN.DEFAULT;this.offset=0}i.prototype.checkPropValues=function(){validateNumericProp(1,GRID_ITEM_COL_SPAN.DEFAULT,this.el,"colSpan");validateNumericProp(1,GRID_ITEM_COL_SPAN.SM_MAX,this.el,"colSpanSm");validateNumericProp(1,GRID_ITEM_COL_SPAN.MD_MAX,this.el,"colSpanMd");validateNumericProp(1,GRID_ITEM_COL_SPAN.LG_MAX,this.el,"colSpanLg");validateNumericProp(1,GRID_ITEM_COL_SPAN.XL_MAX,this.el,"colSpanXl");validateNumericProp(1,GRID_ITEM_COL_SPAN.XXL_MAX,this.el,"colSpan2xl");validateNumericProp(1,undefined,this.el,"rowSpan");validateNumericProp(GRID_ITEM_COL_SPAN.OFFSET_MIN,GRID_ITEM_COL_SPAN.OFFSET_MAX,this.el,"offset")};i.prototype.componentWillLoad=function(){this.checkPropValues()};i.prototype.getHostStyles=function(){var i={};if(this.colSpan!=="full")i["--_col-base"]=String(this.colSpan);if(this.colSpanSm!==undefined&&this.colSpanSm!=="full")i["--_col-sm"]=String(this.colSpanSm);if(this.colSpanMd!==undefined&&this.colSpanMd!=="full")i["--_col-md"]=String(this.colSpanMd);if(this.colSpanLg!==undefined&&this.colSpanLg!=="full")i["--_col-lg"]=String(this.colSpanLg);if(this.colSpanXl!==undefined&&this.colSpanXl!=="full")i["--_col-xl"]=String(this.colSpanXl);if(this.colSpan2xl!==undefined&&this.colSpan2xl!=="full")i["--_col-2xl"]=String(this.colSpan2xl);if(this.rowSpan!==undefined&&this.rowSpan!=="full")i["--_row-base"]=String(this.rowSpan);if(this.offset>0)i["grid-column-start"]=String(Number(this.offset)+1);return i};i.prototype.render=function(){return h(Host,{key:"4a50b7d73fa449f56a533e6357f92c039c7b73c7",style:this.getHostStyles()},h("slot",{key:"e077c11e511f232ec25456676699c56c4bbcb483"}))};Object.defineProperty(i.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(i,"watchers",{get:function(){return{colSpan:[{checkPropValues:0}],colSpanSm:[{checkPropValues:0}],colSpanMd:[{checkPropValues:0}],colSpanLg:[{checkPropValues:0}],colSpanXl:[{checkPropValues:0}],colSpan2xl:[{checkPropValues:0}],rowSpan:[{checkPropValues:0}],offset:[{checkPropValues:0}]}},enumerable:false,configurable:true});return i}();BdsGridItem.style=bdsGridItemCss();export{BdsGridItem as bds_grid_item};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var i,
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var i,a=1,d=arguments.length;a<d;a++){i=arguments[a];for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s))r[s]=i[s]}return r};return __assign.apply(this,arguments)};import{r as registerInstance,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{v as validatePropValue}from"./validateProps-kGnB15Lz.js";var GRID_LAYOUT={FIXED:"fixed",FLUID:"fluid"};var bdsGridCss=function(){return'@charset "UTF-8";bds-grid{--bds-grid-columns:var(--boreal-grid-columns-sm);--bds-grid-gutter:var(--boreal-grid-gutter-sm);--bds-grid-margin:var(--boreal-grid-margin-sm);display:grid;grid-template-columns:repeat(var(--bds-grid-columns), 1fr);gap:var(--bds-grid-gutter);padding-inline:var(--bds-grid-margin);-webkit-margin-start:var(--bds-grid-nav-offset, 0px);margin-inline-start:var(--bds-grid-nav-offset, 0px);-webkit-box-sizing:border-box;box-sizing:border-box}@media (min-width: 769px){bds-grid{--bds-grid-columns:var(--boreal-grid-columns-md)}}@media (min-width: 960px){bds-grid{--bds-grid-columns:var(--boreal-grid-columns-lg);--bds-grid-margin:var(--boreal-grid-margin-lg)}}@media (min-width: 1152px){bds-grid{--bds-grid-gutter:var(--boreal-grid-gutter-xl);--bds-grid-margin:var(--boreal-grid-margin-xl)}}@media (min-width: 1344px){bds-grid{--bds-grid-margin:var(--boreal-grid-margin-2xl)}}bds-grid.bds-grid--fixed{max-width:calc(var(--boreal-grid-fixed-max-columns-width) + 2 * var(--bds-grid-margin));margin-inline:auto}'};var BdsGrid=function(){function r(r){registerInstance(this,r);this.layout=GRID_LAYOUT.FLUID}r.prototype.checkPropValues=function(){validatePropValue(Object.values(GRID_LAYOUT),GRID_LAYOUT.FLUID,this.el,"layout")};r.prototype.componentWillLoad=function(){this.checkPropValues()};r.prototype.render=function(){return h(Host,{key:"72e2dd4c1ab75d6a7e71dc8e75456d482afbb4b8",class:{"bds-grid--fixed":this.layout===GRID_LAYOUT.FIXED},style:__assign({},this.rowGap&&{"row-gap":this.rowGap})},h("slot",{key:"8c47051a287548daff2402a71aab7bd2aef50da0"}))};Object.defineProperty(r.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{layout:[{checkPropValues:0}]}},enumerable:false,configurable:true});return r}();BdsGrid.style=bdsGridCss();export{BdsGrid as bds_grid};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]};return e(t,i)};return function(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e};return __assign.apply(this,arguments)};import{M as Mixin,r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{C as COMPONENT_STATES}from"./states-Bfazyxqi.js";import{M as MENU_ROLES}from"./menu-dz9-Q2N8.js";import{v as validatePropValue}from"./validateProps-kGnB15Lz.js";import{K as KEYBOARD}from"./Keys-DlYG-OVB.js";function resolveMenuItemRole(e){return e==="menu"?"menuitem":"option"}function resolveAriaSelected(e,t){return e==="option"?String(t):null}function resolveTabIndex(e,t,i){if(t)return-1;if(e==="option"||e==="menuitem"){return i?0:-1}return-1}function handleMenuKeyNavigation(e,t,i){if(t.length===0||i===-1)return;var n=-1;switch(e.key){case KEYBOARD.ArrowDown:n=(i+1)%t.length;break;case KEYBOARD.ArrowUp:n=(i-1+t.length)%t.length;break;default:return}t.forEach((function(e){return e.removeAttribute("active-item")}));t[n].focus();t[n].setAttribute("active-item","")}function preventNavigationKeys(e){var t=[KEYBOARD.ArrowDown,KEYBOARD.ArrowUp,KEYBOARD.Enter,KEYBOARD.Space];if(t.includes(e.key)){e.preventDefault()}}var MenuItemBehavior=function(e){var t=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.disabled=false;t.selected=false;t.activeItem=false;return t}Object.defineProperty(t.prototype,"parent",{get:function(){return this.el.closest('[role="menu"], [role="listbox"]')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"parentRole",{get:function(){var e=this.parent;return e!==null?e.getAttribute("role"):null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"menuItemRole",{get:function(){return resolveMenuItemRole(this.parentRole||"menu")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"ariaSelected",{get:function(){return resolveAriaSelected(this.menuItemRole,this.selected)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return resolveTabIndex(this.menuItemRole,this.disabled,this.activeItem)},enumerable:false,configurable:true});t.prototype.handleKeyDownLogic=function(e,t){preventNavigationKeys(e);if(e.key===KEYBOARD.Enter||e.key===KEYBOARD.Space){t();return}var i=this.parent;if(i===null)return;var n=Array.from(i.querySelectorAll("".concat(this.el.tagName.toLocaleLowerCase(),':not([disabled]):not([variant="label"])')));var s=n.indexOf(this.el);handleMenuKeyNavigation(e,n,s)};return t}(e);return t};var WithLinks=function(e){var t=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.href="";t.newTab=false;t.download="";return t}Object.defineProperty(t.prototype,"isLink",{get:function(){return this.href!==""||this.download!==""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"linkAttributes",{get:function(){var e={};if(!this.isLink)return e;var t=this.sanitizeUrl(this.href);e.href=t;e.target=this.newTab?"_blank":"_self";e.rel=this._isExternalLink(t)||this.newTab||this.download!==""?"noopener noreferrer":"";e.download=this.download!==""?this.download:undefined;if(this.el.tagName.toLowerCase()!=="a"){e.role="link";e.tabindex="0"}return e},enumerable:false,configurable:true});t.prototype._isExternalLink=function(e){var t=/^https?:\/\//.test(e)&&!e.includes(window.location.hostname);return t};t.prototype.handleLinkKeyDown=function(e){if(!this.isLink)return;if(this.el.tagName.toLowerCase()!=="a"&&(e.key===KEYBOARD.Enter||e.key===KEYBOARD.Space)){e.preventDefault();this.handleLinkClick(new MouseEvent("click",{bubbles:true,cancelable:true}))}};t.prototype.handleLinkClick=function(e){if(!this.isLink){e.preventDefault();return}var t=this.linkAttributes;if(t.download!==""&&t.download!==undefined){e.preventDefault();var i=document.createElement("a");i.href=t.download||"";i.download=t.download;i.style.display="none";document.body.appendChild(i);console.log("Initiating download:",i.href);i.click();document.body.removeChild(i)}if(this.el.tagName.toLowerCase()!=="a"){if(t.target==="_blank"){window.open(t.href,"_blank",t.rel)}else{window.location.href=t.href||""}e.preventDefault()}};t.prototype.sanitizeUrl=function(e){var t=e.trim().toLowerCase();if(t.startsWith("javascript:")||t.startsWith("data:")||t.includes("\0")){return""}if(!t.startsWith("http://")&&!t.startsWith("https://")&&!t.startsWith("mailto:")&&!t.startsWith("tel:")&&!t.startsWith("/")&&!t.startsWith("#")){return t.startsWith("://")?"":"https://".concat(e)}return e};return t}(e);return t};var LIST_MENU_ITEM_VARIANTS={LABEL:"label",BUTTON:"button"};var bdsListMenuItemCss=function(){return'@charset "UTF-8";.bds-list-item,.bds-list-item__content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bds-list-item{width:100%;vertical-align:middle;position:relative;color:var(--boreal-text-default);font-style:normal;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular)}.bds-list-item__content{-ms-flex-pack:justify;justify-content:space-between;-ms-flex:1;flex:1;vertical-align:middle;gap:var(--boreal-spacing-3xs)}.bds-list-item__content-left,.bds-list-item__content-right{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;vertical-align:middle}.bds-list-item__content-left__icon,.bds-list-item__content-left__text{display:inline-block;vertical-align:middle;font-style:normal;font-size:var(--boreal-typography-font-size-sm);line-height:var(--boreal-typography-line-height-xs)}.bds-list-item__content-left__icon:not(:empty){padding-right:var(--boreal-spacing-3xs)}.bds-list-item__content [class*=bds-icon-]{font-size:var(--boreal-typography-font-size-md)}.bds-list-item--button{cursor:pointer;padding:var(--boreal-spacing-1xs) var(--boreal-spacing-s);-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-list-item--button:not(.bds-list-item--disabled):hover:not([selected]){background-color:var(--boreal-ui-default-lighter);z-index:1}.bds-list-item--button:not(.bds-list-item--disabled):focus,.bds-list-item--button:not(.bds-list-item--disabled):focus-visible{outline:none;-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);z-index:1}.bds-list-item--button:not(.bds-list-item--disabled):active,.bds-list-item--button:not(.bds-list-item--disabled).bds-list-item--state-active{-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;background-color:var(--boreal-ui-default-lighter);z-index:1}.bds-list-item--selected{background-color:var(--boreal-ui-primary-lighter)}.bds-list-item--disabled{color:var(--boreal-text-disabled);cursor:not-allowed}.bds-list-item--label{cursor:default;padding:var(--boreal-spacing-3xs) 0}.bds-list-item--label .bds-typography label{color:var(--boreal-text-default-light)}'};var BdsListMenuItem=function(e){__extends(t,e);function t(t){var i=e.call(this)||this;registerInstance(i,t);i.bdsSelectItem=createEvent(i,"bdsSelectItem");i.variant=LIST_MENU_ITEM_VARIANTS.BUTTON;i.name="";i.disabled=false;i.selected=false;i.value="";i.checkable=false;i.activeItem=false;i.href="";i.newTab=false;i.download="";i.currentState=COMPONENT_STATES.DEFAULT;i.handleClick=function(e){if(i.disabled||i.isLabelVariant)return;e.stopPropagation();if(i.isLink){i.handleLinkClick(e);return}if(i.checkable&&i.parentRole!==MENU_ROLES.LISTBOX)i.selected=!i.selected;i.bdsSelectItem.emit({value:i.value,selected:!i.selected})};i.handleKeyDown=function(e){if(i.disabled||i.isLabelVariant)return;i.handleKeyDownLogic(e,(function(){return i.handleClick(e)}));if(!i.isLink||i.linkAttributes.download!==undefined){i.currentState=e.key===KEYBOARD.Enter||e.key===KEYBOARD.Space?COMPONENT_STATES.ACTIVE:i.currentState}};i.handleKeyUp=function(){if(i.disabled||i.isLabelVariant)return;i.currentState=COMPONENT_STATES.DEFAULT};return i}t.prototype.checkPropsVariant=function(){validatePropValue(Object.values(LIST_MENU_ITEM_VARIANTS),LIST_MENU_ITEM_VARIANTS.BUTTON,this.el,"variant")};t.prototype.componentWillLoad=function(){this.checkPropsVariant()};Object.defineProperty(t.prototype,"menuItemRoleExtended",{get:function(){if(!this.checkable)return this.menuItemRole;if(this.parentRole==="listbox")return"checkbox";return"menuitemcheckbox"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isLabelVariant",{get:function(){return this.variant===LIST_MENU_ITEM_VARIANTS.LABEL},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"classMap",{get:function(){var e;return e={"bds-list-item":true,"bds-list-item--disabled":this.disabled,"bds-list-item--selected":this.selected},e["bds-list-item--state-".concat(this.currentState)]=true,e["bds-list-item--".concat(this.variant)]=true,e},enumerable:false,configurable:true});t.prototype.renderTypeLabel=function(){return h("bds-typography",{variant:"label",element:"label",align:"start",role:"presentation"},h("slot",{name:"left-content"})," ",h("slot",null))};t.prototype.renderCheckbox=function(){if(!this.checkable)return null;return h("bds-checkbox",{checked:this.selected,disabled:this.disabled,name:"checkbox-".concat(this.value),tabindex:"-1",style:{pointerEvents:"none"},inert:true})};t.prototype.renderTypeButton=function(){return h("div",{class:"bds-list-item__content"},h("div",{class:"bds-list-item__content-left"},this.renderCheckbox(),h("span",{class:"bds-list-item__content-left__icon"},h("slot",{name:"left-content"})),h("span",{class:"bds-list-item__content-left__text"},h("slot",null))),h("div",{class:"bds-list-item__content-right"},h("slot",{name:"right-content"})))};t.prototype.render=function(){var e=this.renderTypeButton();if(this.isLabelVariant)e=this.renderTypeLabel();var t=this.isLink?__assign(__assign({},this.linkAttributes),{tabindex:this.activeItem?0:-1}):{};return h(Host,__assign(__assign({key:"0882d4cb677f6621518113c48e92d7e94cb71916",class:this.classMap,role:this.isLabelVariant?"presentation":this.menuItemRoleExtended,"aria-selected":!this.checkable?this.ariaSelected:false,"aria-checked":this.checkable?this.ariaSelected:undefined},t),{tabIndex:this.isLabelVariant?-1:this.itemTabIndex,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp}),e)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{variant:[{checkPropsVariant:0}]}},enumerable:false,configurable:true});return t}(Mixin(MenuItemBehavior,WithLinks));BdsListMenuItem.style=bdsListMenuItemCss();export{BdsListMenuItem as bds_list_menu_item};
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]};return e(t,i)};return function(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e};return __assign.apply(this,arguments)};import{M as Mixin,r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{C as COMPONENT_STATES}from"./states-Bfazyxqi.js";import{v as validatePropValue}from"./validateProps-kGnB15Lz.js";import{K as KEYBOARD}from"./Keys-7G4h4DI7.js";function resolveMenuItemRole(e){return e==="menu"?"menuitem":"option"}function resolveAriaSelected(e,t){return e==="option"?String(t):null}function resolveTabIndex(e,t,i){if(t)return-1;if(e==="option"||e==="menuitem"){return i?0:-1}return-1}function handleMenuKeyNavigation(e,t,i){if(t.length===0||i===-1)return;var n=-1;switch(e.key){case KEYBOARD.ArrowDown:n=(i+1)%t.length;break;case KEYBOARD.ArrowUp:n=(i-1+t.length)%t.length;break;default:return}t.forEach((function(e){return e.removeAttribute("active-item")}));t[n].focus();t[n].setAttribute("active-item","")}function preventNavigationKeys(e){var t=[KEYBOARD.ArrowDown,KEYBOARD.ArrowUp,KEYBOARD.Enter,KEYBOARD.Space];if(t.includes(e.key)){e.preventDefault()}}var MenuItemBehavior=function(e){var t=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.disabled=false;t.selected=false;t.activeItem=false;return t}Object.defineProperty(t.prototype,"parent",{get:function(){return this.el.closest('[role="menu"], [role="listbox"]')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"parentRole",{get:function(){var e=this.parent;return e!==null?e.getAttribute("role"):null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"menuItemRole",{get:function(){return resolveMenuItemRole(this.parentRole||"menu")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"ariaSelected",{get:function(){return resolveAriaSelected(this.menuItemRole,this.selected)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return resolveTabIndex(this.menuItemRole,this.disabled,this.activeItem)},enumerable:false,configurable:true});t.prototype.handleKeyDownLogic=function(e,t){preventNavigationKeys(e);if(e.key===KEYBOARD.Enter||e.key===KEYBOARD.Space){t();return}var i=this.parent;if(i===null)return;var n=Array.from(i.querySelectorAll("".concat(this.el.tagName.toLocaleLowerCase(),':not([disabled]):not([variant="label"]):not([hidden])')));var s=n.indexOf(this.el);handleMenuKeyNavigation(e,n,s)};return t}(e);return t};var WithLinks=function(e){var t=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.href="";t.newTab=false;t.download="";return t}Object.defineProperty(t.prototype,"isLink",{get:function(){return this.href!==""||this.download!==""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"linkAttributes",{get:function(){var e={};if(!this.isLink)return e;var t=this.sanitizeUrl(this.href);e.href=t;e.target=this.newTab?"_blank":"_self";e.rel=this._isExternalLink(t)||this.newTab||this.download!==""?"noopener noreferrer":"";e.download=this.download!==""?this.download:undefined;if(this.el.tagName.toLowerCase()!=="a"){e.role="link";e.tabindex="0"}return e},enumerable:false,configurable:true});t.prototype._isExternalLink=function(e){var t=/^https?:\/\//.test(e)&&!e.includes(window.location.hostname);return t};t.prototype.handleLinkKeyDown=function(e){if(!this.isLink)return;if(this.el.tagName.toLowerCase()!=="a"&&(e.key===KEYBOARD.Enter||e.key===KEYBOARD.Space)){e.preventDefault();this.handleLinkClick(new MouseEvent("click",{bubbles:true,cancelable:true}))}};t.prototype.handleLinkClick=function(e){if(!this.isLink){e.preventDefault();return}var t=this.linkAttributes;if(t.download!==""&&t.download!==undefined){e.preventDefault();var i=document.createElement("a");i.href=t.download||"";i.download=t.download;i.style.display="none";document.body.appendChild(i);console.log("Initiating download:",i.href);i.click();document.body.removeChild(i)}if(this.el.tagName.toLowerCase()!=="a"){if(t.target==="_blank"){window.open(t.href,"_blank",t.rel)}else{window.location.href=t.href||""}e.preventDefault()}};t.prototype.sanitizeUrl=function(e){var t=e.trim().toLowerCase();if(t.startsWith("javascript:")||t.startsWith("data:")||t.includes("\0")){return""}if(!t.startsWith("http://")&&!t.startsWith("https://")&&!t.startsWith("mailto:")&&!t.startsWith("tel:")&&!t.startsWith("/")&&!t.startsWith("#")){return t.startsWith("://")?"":"https://".concat(e)}return e};return t}(e);return t};var LIST_MENU_ITEM_VARIANTS={LABEL:"label",BUTTON:"button"};var bdsListMenuItemCss=function(){return'@charset "UTF-8";.bds-list-item,.bds-list-item__content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bds-list-item{width:100%;vertical-align:middle;position:relative;color:var(--boreal-text-default);font-style:normal;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular)}.bds-list-item[hidden]{display:none}.bds-list-item__content{-ms-flex-pack:justify;justify-content:space-between;-ms-flex:1;flex:1;vertical-align:middle;gap:var(--boreal-spacing-3xs)}.bds-list-item__content-left,.bds-list-item__content-right{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;vertical-align:middle}.bds-list-item__content-left__icon,.bds-list-item__content-left__text{display:inline-block;vertical-align:middle;font-style:normal;font-size:var(--boreal-typography-font-size-sm);line-height:var(--boreal-typography-line-height-xs)}.bds-list-item__content-left__icon:not(:empty){padding-right:var(--boreal-spacing-3xs)}.bds-list-item__content [class*=bds-icon-]{font-size:var(--boreal-typography-font-size-md)}.bds-list-item--button{cursor:pointer;padding:var(--boreal-spacing-1xs) var(--boreal-spacing-s);-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-list-item--button:not(.bds-list-item--disabled):hover:not([selected]){background-color:var(--boreal-ui-default-lighter);z-index:1}.bds-list-item--button:not(.bds-list-item--disabled):focus,.bds-list-item--button:not(.bds-list-item--disabled):focus-visible{outline:none;-webkit-box-shadow:var(--boreal-depth-box-shadow-focus);box-shadow:var(--boreal-depth-box-shadow-focus);z-index:1}.bds-list-item--button:not(.bds-list-item--disabled):active,.bds-list-item--button:not(.bds-list-item--disabled).bds-list-item--state-active{-webkit-box-shadow:var(--boreal-depth-box-shadow-active);box-shadow:var(--boreal-depth-box-shadow-active);background-color:var(--boreal-ui-default-lighter);z-index:1}.bds-list-item--selected{background-color:var(--boreal-ui-primary-lighter)}.bds-list-item--disabled{color:var(--boreal-text-disabled);cursor:not-allowed}.bds-list-item--label{cursor:default;padding:var(--boreal-spacing-3xs) 0}.bds-list-item--label .bds-typography label{color:var(--boreal-text-default-light)}'};var BdsListMenuItem=function(e){__extends(t,e);function t(t){var i=e.call(this)||this;registerInstance(i,t);i.bdsSelectItem=createEvent(i,"bdsSelectItem");i.variant=LIST_MENU_ITEM_VARIANTS.BUTTON;i.name="";i.disabled=false;i.selected=false;i.value="";i.checkable=false;i.activeItem=false;i.href="";i.newTab=false;i.download="";i.currentState=COMPONENT_STATES.DEFAULT;i.boxChecked=false;i.handleClick=function(e){if(i.disabled||i.isLabelVariant)return;e.stopPropagation();if(i.isLink){i.handleLinkClick(e);return}i.bdsSelectItem.emit({value:i.value,selected:!i.selected,element:i.el})};i.handleKeyDown=function(e){if(i.disabled||i.isLabelVariant)return;i.handleKeyDownLogic(e,(function(){return i.handleClick(e)}));if(!i.isLink||i.linkAttributes.download!==undefined){i.currentState=e.key===KEYBOARD.Enter||e.key===KEYBOARD.Space?COMPONENT_STATES.ACTIVE:i.currentState}};i.handleKeyUp=function(){if(i.disabled||i.isLabelVariant)return;i.currentState=COMPONENT_STATES.DEFAULT};return i}t.prototype.checkPropsVariant=function(){validatePropValue(Object.values(LIST_MENU_ITEM_VARIANTS),LIST_MENU_ITEM_VARIANTS.BUTTON,this.el,"variant")};t.prototype.handleSelectedChange=function(e){if(this.checkable){this.boxChecked=e}};t.prototype.componentWillLoad=function(){this.checkPropsVariant();if(this.checkable){this.boxChecked=this.selected}};Object.defineProperty(t.prototype,"menuItemRoleExtended",{get:function(){if(!this.checkable)return this.menuItemRole;if(this.parentRole==="listbox")return"checkbox";return"menuitemcheckbox"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isLabelVariant",{get:function(){return this.variant===LIST_MENU_ITEM_VARIANTS.LABEL},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"classMap",{get:function(){var e;return e={"bds-list-item":true,"bds-list-item--disabled":this.disabled,"bds-list-item--selected":this.selected},e["bds-list-item--state-".concat(this.currentState)]=true,e["bds-list-item--".concat(this.variant)]=true,e},enumerable:false,configurable:true});t.prototype.renderTypeLabel=function(){return h("bds-typography",{variant:"label",element:"label",align:"start",role:"presentation"},h("slot",{name:"left-content"})," ",h("slot",null))};t.prototype.renderCheckbox=function(){if(!this.checkable)return null;return h("bds-checkbox",{checked:this.boxChecked,disabled:this.disabled,name:"checkbox-".concat(this.value),tabindex:"-1",style:{pointerEvents:"none"},inert:true})};t.prototype.renderTypeButton=function(){return h("div",{class:"bds-list-item__content"},h("div",{class:"bds-list-item__content-left"},this.renderCheckbox(),h("span",{class:"bds-list-item__content-left__icon"},h("slot",{name:"left-content"})),h("span",{class:"bds-list-item__content-left__text"},h("slot",null))),h("div",{class:"bds-list-item__content-right"},h("slot",{name:"right-content"})))};t.prototype.render=function(){var e=this.renderTypeButton();if(this.isLabelVariant)e=this.renderTypeLabel();var t=this.isLink?__assign(__assign({},this.linkAttributes),{tabindex:this.activeItem?0:-1}):{};return h(Host,__assign(__assign({key:"f2eba72a913704f5de812a1be1f7aafbd718f27b",class:this.classMap,role:this.isLabelVariant?"presentation":this.menuItemRoleExtended,"aria-selected":!this.checkable?this.ariaSelected:false,"aria-checked":this.checkable?this.ariaSelected:undefined},t),{tabIndex:this.isLabelVariant?-1:this.itemTabIndex,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp}),e)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{variant:[{checkPropsVariant:0}],selected:[{handleSelectedChange:0}]}},enumerable:false,configurable:true});return t}(Mixin(MenuItemBehavior,WithLinks));BdsListMenuItem.style=bdsListMenuItemCss();export{BdsListMenuItem as bds_list_menu_item};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function a(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n["throw"](t))}catch(t){s(t)}}function u(t){t.done?i(t.value):r(t.value).then(a,o)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=o(0),a["throw"]=o(1),a["return"]=o(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(i=0)),i)try{if(n=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];r=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function a(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n["throw"](t))}catch(t){s(t)}}function u(t){t.done?i(t.value):r(t.value).then(a,o)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=o(0),a["throw"]=o(1),a["return"]=o(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(i=0)),i)try{if(n=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];r=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{a as inheritAriaAttributes}from"./attributes-U9yfbs7i.js";import{v as validatePropValue}from"./validateProps-kGnB15Lz.js";var MENU_ROLES={MENU:"menu",LISTBOX:"listbox"};var LIST_MENU_SELECTION_MODE={SINGLE:"single",MULTIPLE:"multiple"};var bdsListMenuCss=function(){return'@charset "UTF-8";:host{display:block}.bds-list-menu{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-width:var(--bds-list-menu-max-width, 350px);background-color:var(--boreal-ui-inverse);font-family:var(--boreal-typography-font-family-primary)}.bds-list-menu__content{max-height:var(--bds-list-menu-max-height, 240px);overflow-y:auto;padding:var(--boreal-spacing-2xs)}.bds-list-menu__select-controls{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around;border-bottom:var(--boreal-spacing-4xs) solid var(--boreal-ui-default-lighter);margin-bottom:var(--boreal-spacing-3xs)}.bds-list-menu__header:not(:empty),.bds-list-menu__footer:not(:empty){padding:var(--boreal-spacing-xs) 0}.bds-list-menu__header:not(:empty){border-bottom:var(--boreal-spacing-4xs) solid var(--boreal-ui-default-lighter)}.bds-list-menu__footer:not(:empty){border-top:var(--boreal-spacing-4xs) solid var(--boreal-ui-default-lighter)}'};var BdsListMenu=function(){function t(t){registerInstance(this,t);this.bdsChange=createEvent(this,"bdsChange");this.bdsSelect=createEvent(this,"bdsSelect");this.inheritedAttributes={};this.selectionMode=LIST_MENU_SELECTION_MODE.SINGLE;this.menuRole=MENU_ROLES.MENU;this.selectControls=false;this.empty=false;this.checkable=false;this.emptyText="No options available";this.selectedValues=[]}t.prototype.checkProps=function(){validatePropValue(Object.values(MENU_ROLES),MENU_ROLES.MENU,this.el,"menuRole");validatePropValue(Object.values(LIST_MENU_SELECTION_MODE),LIST_MENU_SELECTION_MODE.SINGLE,this.el,"selectionMode")};t.prototype.getSelectedValues=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.isMultiple?this.selectedValues:this.selectedValues[0]]}))}))};t.prototype.setSelectedValues=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.isMultiple){this.selectedValues=Array.isArray(t)?t:[t]}else{this.selectedValues=t!==null?[t]:[]}this.updateChildrenState();return[2]}))}))};t.prototype.getAllItems=function(){return Promise.resolve(this.childItems)};t.prototype.handleItemClick=function(t){var e=t.detail,i=e.value,n=e.selected;if(this.menuRole===MENU_ROLES.LISTBOX){if(this.isMultiple){this.handleMultipleSelection(i,n)}else{this.handleSingleSelection(i,n)}this.updateChildrenState(t.target);this.bdsChange.emit(this.isMultiple?this.selectedValues:this.selectedValues[0]||undefined)}else{var r=t.target;var s=this.childItems.indexOf(r);if(r.checkable)r.selected=!r.selected;this.bdsSelect.emit({value:i,index:s,checked:r.checkable?r.selected:false,element:r})}};t.prototype.componentWillLoad=function(){this.setDefaultProps();this.checkProps();this.initialSelectedValues();this.updateActiveState();this.inheritedAttributes=__assign({},inheritAriaAttributes(this.el,["aria-multiselectable"]))};Object.defineProperty(t.prototype,"childItems",{get:function(){var t=Array.from(this.el.querySelectorAll("bds-list-menu-item"));return t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"firstEnabledItem",{get:function(){var t=this.childItems;var e=t.find((function(t){return!t.disabled&&t.variant!=="label"}));return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isMultiple",{get:function(){return this.selectionMode===LIST_MENU_SELECTION_MODE.MULTIPLE},enumerable:false,configurable:true});t.prototype.setDefaultProps=function(){if(this.isMultiple&&this.checkable){this.childItems.forEach((function(t){if(!t.checkable){t.setAttribute("checkable","true")}}))}};t.prototype.updateActiveState=function(){var t=this.firstEnabledItem;var e=this.childItems;var i=e.some((function(t){return t.selected&&!t.disabled}));if(!i&&t!==undefined){t.setAttribute("active-item","")}};t.prototype.handleMultipleSelection=function(t,e){this.selectedValues=e?__spreadArray(__spreadArray([],this.selectedValues,true),[t],false):this.selectedValues.filter((function(e){return e!==t}))};t.prototype.handleSingleSelection=function(t,e){this.selectedValues=e?[t]:[]};t.prototype.updateChildrenState=function(t){var e=this;var i=this.childItems;i.forEach((function(t){if(t.value!==undefined&&t.variant!=="label"){var i=e.selectedValues.includes(t.value);t.selected=i;t.removeAttribute("active-item")}}));this.setActiveItem(t)};t.prototype.setActiveItem=function(t){var e;if(t!==undefined){e=t}else if(this.selectedValues.length>0){var i=this.selectedValues[0];e=this.childItems.find((function(t){return t.value===i}))}else{e=this.firstEnabledItem}if(e!==undefined){e.setAttribute("active-item","")}};t.prototype.initialSelectedValues=function(){var t=Array.from(this.el.querySelectorAll("bds-list-menu-item[selected]"));if(t.length>0){var e=Array.from(t);var i=e.map((function(t){return t.getAttribute("value")||""}));this.selectedValues=this.isMultiple?i:[i[0]];this.updateChildrenState()}};t.prototype.handleToggleSelect=function(t){var e=this.childItems.filter((function(t){return!t.disabled&&t.variant!=="label"&&t.value!==undefined})).map((function(t){return t.value}));this.selectedValues=t?e:[];this.updateChildrenState();this.bdsChange.emit(this.selectedValues)};t.prototype.renderSelectControls=function(){var t=this;if(this.selectControls&&this.menuRole===MENU_ROLES.LISTBOX&&this.isMultiple){return h("div",{class:"bds-list-menu__select-controls"},h("bds-button",{name:"Select all",variant:"plain",onBdsClick:function(){return t.handleToggleSelect(true)}},"Select All"),h("bds-button",{name:"Deselect all",variant:"plain",onBdsClick:function(){return t.handleToggleSelect(false)}},"Deselect All"))}return null};t.prototype.renderEmptyState=function(){if(this.empty||this.childItems.length===0){return h("bds-typography",{variant:"label",element:"label",align:"start",role:"presentation"},this.emptyText)}return null};t.prototype.render=function(){var t=this.inheritedAttributes;return h(Host,__assign({key:"658fa1497aa51cd6cb8ee40a4c5306e9ef444d14",class:"bds-list-menu",role:this.menuRole,tabIndex:"-1","aria-multiselectable":this.menuRole===MENU_ROLES.LISTBOX&&this.isMultiple?"true":"false"},t),h("slot",{key:"7275e500cb30c352e22730963635cbfbd77d691e",name:"banner-content"}),h("div",{key:"68e1b663db8b96dc9c2aaa1d1b778e81304299ed",class:"bds-list-menu__header"},h("slot",{key:"cb96ac82f30b4b974312a40a7861b4bfee12382b",name:"header-content"})),this.renderSelectControls(),h("div",{key:"0e7d4b74f955eab4999e12ace25b00b521dbaa40",class:"bds-list-menu__content"},h("slot",{key:"78402e3166d97b1d25369db7341958c1834cc30a"}),this.renderEmptyState()),h("div",{key:"cf413da08c650accfaf7ca1cc3cbd5b246b4d977",class:"bds-list-menu__footer"},h("slot",{key:"9636560c612bdee8f201d0b8b9a594ec32e0e44c",name:"footer-content"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selectionMode:[{checkProps:0}],menuRole:[{checkProps:0}]}},enumerable:false,configurable:true});return t}();BdsListMenu.style=bdsListMenuCss();export{BdsListMenu as bds_list_menu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(o,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var t in o)if(Object.prototype.hasOwnProperty.call(o,t))e[t]=o[t]};return e(o,t)};return function(o,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(o,t);function r(){this.constructor=o}o.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();import{M as Mixin,r as registerInstance,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{a as anchoredMixin,g as getOffset}from"./getOffset-BYS3c13B.js";import{B as BUTTON_SIZES}from"./enum-DlVzZK7o.js";import"./Logger-iq2UuV7c.js";import"./floating.mixin-DCXSEEVH.js";import"./Keys-DlYG-OVB.js";var OFFSET=11;var bdsPopoverCss=function(){return'@charset "UTF-8";:root{--popover-arrow-size:var(--boreal-spacing-s);--popover-width:320px}.popover{position:fixed;margin:0;overflow:visible;border-radius:var(--boreal-radius-xs2);font-size:var(--boreal-typography-font-size-xs);line-height:var(--boreal-typography-line-height-xs);font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular);background:var(--boreal-ui-inverse);-webkit-filter:drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.15));filter:drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.15));-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;border:transparent;cursor:auto}.popover-content{position:relative;padding:var(--boreal-spacing-s)}.popover[popover]:not(:popover-open){display:none}.popover-header{border-bottom:var(--boreal-stroke-default-light) solid 1px;padding:var(--boreal-spacing-m) var(--boreal-spacing-xs) var(--boreal-spacing-m) var(--boreal-spacing-s);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.popover-header__content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.popover-header__title{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-sm)}.popover-header__icon{font-size:var(--boreal-typography-font-size-md);margin-right:var(--boreal-spacing-3xs)}.popover-header__close{margin-left:var(--boreal-spacing-s)}.popover-header__close .bds-button{margin:0;padding:0;width:var(--boreal-spacing-ml);height:var(--boreal-spacing-ml)}.popover-header__close .bds-button__content{width:var(--boreal-spacing-ml);height:var(--boreal-spacing-ml)}.popover-header__close em{font-size:var(--boreal-typography-font-size-xs)}.popover-footer{border-top:var(--boreal-stroke-default-light) solid 1px;padding:var(--boreal-spacing-s) var(--boreal-spacing-xs) var(--boreal-spacing-s) var(--boreal-spacing-s);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.popover .popover-arrow{position:absolute;width:var(--popover-arrow-size);height:var(--popover-arrow-size);pointer-events:none}.popover .popover-arrow::before{content:"";position:absolute;width:var(--popover-arrow-size);height:var(--popover-arrow-size);background:var(--boreal-ui-inverse);-webkit-transform:rotate(45deg);transform:rotate(45deg);inset:0}.popover[data-placement^=top] .popover-arrow{bottom:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=top] .popover-arrow::before{bottom:0}.popover[data-placement^=bottom] .popover-arrow{top:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=bottom] .popover-arrow::before{bottom:0}.popover[data-placement^=left] .popover-arrow{right:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=left] .popover-arrow::before{left:0}.popover[data-placement^=right] .popover-arrow{left:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=right] .popover-arrow::before{left:0}'};var BdsPopover=function(e){__extends(o,e);function o(o){var t=e.call(this)||this;registerInstance(t,o);t.floatingOptions={};t.disabled=false;t.width=320;t.header=false;t.footer=false;t.closable=false;t.isVisible=false;return t}Object.defineProperty(o.prototype,"options",{get:function(){var e,o,t;return{placement:(e=this.floatingOptions.placement)!==null&&e!==void 0?e:"bottom",offset:getOffset((o=this.floatingOptions)===null||o===void 0?void 0:o.hideArrow,(t=this.floatingOptions)===null||t===void 0?void 0:t.offset,OFFSET),arrow:this.floatingOptions.hideArrow?undefined:this.arrowElement,strategy:"fixed",shift:true,flip:true}},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"popoverWidth",{get:function(){if(this.width==="full")return"100%";if(this.width==="auto")return"auto";return"".concat(this.width,"px")},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"hooks",{get:function(){var e=this;return{onPositionUpdate:function(o){return e.handlePosition(o)},onBeforeShow:function(){return!e.disabled},onAfterShow:function(){return e.attachClickOutside()},onAfterHide:function(){return e.detachClickOutside()},onBeforeLoad:function(){return e.attachTrigger()},subscribeToTrigger:function(o){return e.subscribe(o)}}},enumerable:false,configurable:true});o.prototype.attachClickOutside=function(){var e=this;var o;if(((o=this.floatingOptions)===null||o===void 0?void 0:o.closeOnClickOutside)===false)return;this.boundClickOutside=function(o){return e.handleClickOutside(o)};document.addEventListener("mousedown",this.boundClickOutside)};o.prototype.detachClickOutside=function(){var e;if(((e=this.floatingOptions)===null||e===void 0?void 0:e.closeOnClickOutside)===false)return;if(this.boundClickOutside!==null){document.removeEventListener("mousedown",this.boundClickOutside);this.boundClickOutside=function(){}}};o.prototype.setArrowPosition=function(e){var o,t;if(((o=e.middlewareData)===null||o===void 0?void 0:o.arrow)&&!this.disabled&&((t=this.arrowElement)===null||t===void 0?void 0:t.isConnected)){var r=this.floatingOptions.placement;var a=e.middlewareData.arrow;var n=r==="top-start"||r==="bottom-start";var i=a.x||undefined;if(n)i=a.x?20:undefined;var s=e.middlewareData.arrow.y;Object.assign(this.arrowElement.style,{left:i!=null?"".concat(i,"px"):"",top:s!=null?"".concat(s,"px"):""})}};o.prototype.handleClickOutside=function(e){var o,t,r;var a=e.target;var n=((o=this.listenTarget)===null||o===void 0?void 0:o.contains(a))||((t=this.trigger)===null||t===void 0?void 0:t.contains(a))||((r=this.triggerSlot)===null||r===void 0?void 0:r.contains(a));var i=this.floatingContent.contains(a)||this.floatingContent===a;if(!n&&!i){this.hide()}};o.prototype.handleContentClick=function(e){e.stopPropagation();this.handleFloatingClick()};o.prototype.handleFloatingClick=function(){if(this.floatingOptions.closeOnClick)this.hide()};o.prototype.handlePosition=function(e){var o=this;var t;this.floatingContent.setAttribute("data-placement",e.placement);this.setArrowPosition(e);if(this.width==="full"&&this.triggerSlot!==null&&this.triggerSlot!==undefined){var r=(t=this.triggerSlot.parentElement)!==null&&t!==void 0?t:this.triggerSlot;var a=r.getBoundingClientRect().width;var n=this.floatingContent.getBoundingClientRect().width;if(Math.round(n)!==Math.round(a)){this.floatingContent.style.width="".concat(a,"px")}void this.updatePosition(this.triggerSlot,this.floatingContent,this.options,(function(e){o.floatingContent.setAttribute("data-placement",e.placement);o.setArrowPosition(e)}))}else if(this.width==="auto"){this.floatingContent.style.width=""}};o.prototype.attachTrigger=function(){if(this.trigger!==null&&this.trigger!==undefined)return};o.prototype.subscribe=function(e){var o=this;if(e===undefined)return;this.trigger=e;e.setAttribute("part","popover-trigger");e.setAttribute("ariaDescribedBy","popover-content");e.setAttribute("aria-haspopup","true");e.setAttribute("aria-expanded","false");var t=e.closest("bds-button, bds-input, bds-select");if(t!==null&&t!==undefined){var r=t.querySelector("button, input");var a=r!==null&&r!==void 0?r:t;this.listenTarget=a;this.listenTarget.addEventListener("click",(function(e){return o.handleShow(e)}));this.listenTarget.addEventListener("keydown",(function(e){return o.handleKeydown(e,(function(){return o.showElement()}),(function(){return o.hideElement()}))}))}else{this.trigger.addEventListener("click",(function(e){return o.handleShow(e)}));this.trigger.addEventListener("keydown",(function(e){return o.handleKeydown(e,(function(){return o.showElement()}),(function(){return o.hideElement()}))}))}};o.prototype.handleShow=function(e){e.stopPropagation();this.toggle()};Object.defineProperty(o.prototype,"canShowArrow",{get:function(){return!this.floatingOptions.hideArrow||false},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"getPlacement",{get:function(){return this.floatingOptions.placement||"bottom"},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"hasHeaderSlot",{get:function(){return this.el.querySelector('[slot="header"]')!==null},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"hasFooterSlot",{get:function(){return this.el.querySelector('[slot="footer"]')!==null},enumerable:false,configurable:true});o.prototype.disconnectedCallback=function(){var e=this;this.listenTarget.removeEventListener("click",(function(o){return e.handleShow(o)}));this.trigger.removeEventListener("click",(function(o){return e.handleShow(o)}))};o.prototype.render=function(){var e=this;return h(Host,{key:"953571ebcd84e1e6910f3fce9aa59ff1b00c1be7",class:"popover",style:{width:this.popoverWidth},popover:"manual",role:"tooltip","data-placement":this.getPlacement,"data-hidearrow":this.canShowArrow,"aria-hidden":this.isVisible?"false":"true",onClick:function(o){return e.handleContentClick(o)},ref:function(o){return e.floatingContent=o}},this.header&&h("div",{key:"435cde7702b5db7ddc5f055ab379ef264a8cac16",class:"popover-header"},h("div",{key:"a3ac8f2b6610090d5947dc299a9ce62d85265e86",class:"popover-header__content"},h("span",{key:"ed1cbb198c54ffba2c7ce22085cb43648d6b7f3d",class:"popover-header__icon"},h("slot",{key:"b3049ec3dc2ad99037a662553103facad38af4f9",name:"header-icon"})),h("span",{key:"591ccd19d65f3a485062be8e5e4acf57a3ff4539",class:"popover-header__title"},h("slot",{key:"9b65d0180f3728906302426f6436034e80f1c783",name:"header-title"}))),this.closable&&h("bds-button",{key:"5e13390200231b50e4a9c38fb22c623bf28d105f",class:"popover-header__close",size:BUTTON_SIZES.SMALL,onBdsClick:function(){return e.hide()}},h("em",{key:"20ea602f48d1f27ee0b10c929a4a2194304a35b2",slot:"icon",class:"bds-icon-close"}))),this.canShowArrow&&h("div",{key:"551089a9b038a27277398dac47b8e72b2f3d9286",class:"popover-arrow",part:"arrow",ref:function(o){return e.arrowElement=o}}),h("div",{key:"17a6a939f83dd930aafc416b48da124faa27a4e0",class:"popover-content",tabIndex:-1,part:"popover-content"},h("slot",{key:"ab7cfa10649128cc387a54cf052429425696269a"})),this.footer&&h("div",{key:"7cf9fa351928fd823a49541764cdd67bd2d57def",class:"popover-footer",onClick:function(e){return e.stopPropagation()}},h("slot",{key:"b6a20d06d0964f6dea85afdd40a46a6fb737bbac",name:"footer-helper"}),h("slot",{key:"379b2b43a1e937775149e686686da9e4554dd962",name:"footer-button"})))};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return o}(Mixin(anchoredMixin));BdsPopover.style=bdsPopoverCss();export{BdsPopover as bds_popover};
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,o){function n(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function a(e){try{f(o.next(e))}catch(e){i(e)}}function s(e){try{f(o["throw"](e))}catch(e){i(e)}}function f(e){e.done?r(e.value):n(e.value).then(a,s)}f((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return f([e,t])}}function f(s){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(o=1,n&&(i=s[0]&2?n["return"]:s[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;if(n=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];n=0}finally{o=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{M as Mixin,r as registerInstance,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";import{a as anchoredMixin,g as getOffset}from"./getOffset-DCLpJBcp.js";import{B as BUTTON_SIZES}from"./enum-DlVzZK7o.js";import"./Logger-iq2UuV7c.js";import"./floating.mixin-DCXSEEVH.js";import"./Keys-7G4h4DI7.js";var OFFSET=11;var bdsPopoverCss=function(){return'@charset "UTF-8";:root{--popover-arrow-size:var(--boreal-spacing-s);--popover-width:320px}.popover{position:fixed;margin:0;overflow:visible;border-radius:var(--boreal-radius-xs2);font-size:var(--boreal-typography-font-size-xs);line-height:var(--boreal-typography-line-height-xs);font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular);background:var(--boreal-ui-inverse);-webkit-filter:drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.15));filter:drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.15));-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;border:transparent;cursor:auto}.popover-content{position:relative;padding:var(--boreal-spacing-s)}.popover[popover]:not(:popover-open){display:none}.popover-header{border-bottom:var(--boreal-stroke-default-light) solid 1px;padding:var(--boreal-spacing-m) var(--boreal-spacing-xs) var(--boreal-spacing-m) var(--boreal-spacing-s);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.popover-header__content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.popover-header__title{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-sm)}.popover-header__icon{font-size:var(--boreal-typography-font-size-md);margin-right:var(--boreal-spacing-3xs)}.popover-header__close{margin-left:var(--boreal-spacing-s)}.popover-header__close .bds-button{margin:0;padding:0;width:var(--boreal-spacing-ml);height:var(--boreal-spacing-ml)}.popover-header__close .bds-button__content{width:var(--boreal-spacing-ml);height:var(--boreal-spacing-ml)}.popover-header__close em{font-size:var(--boreal-typography-font-size-xs)}.popover-footer{border-top:var(--boreal-stroke-default-light) solid 1px;padding:var(--boreal-spacing-s) var(--boreal-spacing-xs) var(--boreal-spacing-s) var(--boreal-spacing-s);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.popover .popover-arrow{position:absolute;width:var(--popover-arrow-size);height:var(--popover-arrow-size);pointer-events:none}.popover .popover-arrow::before{content:"";position:absolute;width:var(--popover-arrow-size);height:var(--popover-arrow-size);background:var(--boreal-ui-inverse);-webkit-transform:rotate(45deg);transform:rotate(45deg);inset:0}.popover[data-placement^=top] .popover-arrow{bottom:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=top] .popover-arrow::before{bottom:0}.popover[data-placement^=bottom] .popover-arrow{top:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=bottom] .popover-arrow::before{bottom:0}.popover[data-placement^=left] .popover-arrow{right:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=left] .popover-arrow::before{left:0}.popover[data-placement^=right] .popover-arrow{left:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=right] .popover-arrow::before{left:0}'};var BdsPopover=function(e){__extends(t,e);function t(t){var r=e.call(this)||this;registerInstance(r,t);r.floatingOptions={};r.disabled=false;r.width=320;r.header=false;r.footer=false;r.closable=false;r.isVisible=false;return r}Object.defineProperty(t.prototype,"options",{get:function(){var e,t,r;return{placement:(e=this.floatingOptions.placement)!==null&&e!==void 0?e:"bottom",offset:getOffset((t=this.floatingOptions)===null||t===void 0?void 0:t.hideArrow,(r=this.floatingOptions)===null||r===void 0?void 0:r.offset,OFFSET),arrow:this.floatingOptions.hideArrow?undefined:this.arrowElement,strategy:"fixed",shift:true,flip:true}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"popoverWidth",{get:function(){if(this.width==="full")return"100%";if(this.width==="auto")return"auto";return"".concat(this.width,"px")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hooks",{get:function(){var e=this;return{onPositionUpdate:function(t){return e.handlePosition(t)},onBeforeShow:function(){return!e.disabled},onAfterShow:function(){return e.attachClickOutside()},onAfterHide:function(){return e.detachClickOutside()},onBeforeLoad:function(){return e.attachTrigger()},subscribeToTrigger:function(t){return e.subscribe(t)}}},enumerable:false,configurable:true});t.prototype.attachClickOutside=function(){var e=this;var t;if(((t=this.floatingOptions)===null||t===void 0?void 0:t.closeOnClickOutside)===false)return;this.boundClickOutside=function(t){return e.handleClickOutside(t)};document.addEventListener("mousedown",this.boundClickOutside)};t.prototype.detachClickOutside=function(){var e;if(((e=this.floatingOptions)===null||e===void 0?void 0:e.closeOnClickOutside)===false)return;if(this.boundClickOutside!==null){document.removeEventListener("mousedown",this.boundClickOutside);this.boundClickOutside=function(){}}};t.prototype.setArrowPosition=function(e){var t,r;if(((t=e.middlewareData)===null||t===void 0?void 0:t.arrow)&&!this.disabled&&((r=this.arrowElement)===null||r===void 0?void 0:r.isConnected)){var o=this.floatingOptions.placement;var n=e.middlewareData.arrow;var i=o==="top-start"||o==="bottom-start";var a=n.x||undefined;if(i)a=n.x?20:undefined;var s=e.middlewareData.arrow.y;Object.assign(this.arrowElement.style,{left:a!=null?"".concat(a,"px"):"",top:s!=null?"".concat(s,"px"):""})}};t.prototype.handleClickOutside=function(e){var t,r,o;var n=e.target;var i=((t=this.listenTarget)===null||t===void 0?void 0:t.contains(n))||((r=this.trigger)===null||r===void 0?void 0:r.contains(n))||((o=this.triggerSlot)===null||o===void 0?void 0:o.contains(n));var a=this.floatingContent.contains(n)||this.floatingContent===n;if(!i&&!a){this.hide()}};t.prototype.handleContentClick=function(e){e.stopPropagation();this.handleFloatingClick()};t.prototype.handleFloatingClick=function(){if(this.floatingOptions.closeOnClick)this.hide()};t.prototype.handlePosition=function(e){var t=this;var r;this.floatingContent.setAttribute("data-placement",e.placement);this.setArrowPosition(e);if(this.width==="full"&&this.triggerSlot!==null&&this.triggerSlot!==undefined){var o=(r=this.triggerSlot.parentElement)!==null&&r!==void 0?r:this.triggerSlot;var n=o.getBoundingClientRect().width;var i=this.floatingContent.getBoundingClientRect().width;if(Math.round(i)!==Math.round(n)){this.floatingContent.style.width="".concat(n,"px")}void this.updatePosition(this.triggerSlot,this.floatingContent,this.options,(function(e){t.floatingContent.setAttribute("data-placement",e.placement);t.setArrowPosition(e)}))}else if(this.width==="auto"){this.floatingContent.style.width=""}};t.prototype.attachTrigger=function(){if(this.trigger!==null&&this.trigger!==undefined)return};t.prototype.subscribe=function(e){var t=this;if(e===undefined)return;this.trigger=e;e.setAttribute("part","popover-trigger");e.setAttribute("ariaDescribedBy","popover-content");e.setAttribute("aria-haspopup","true");e.setAttribute("aria-expanded","false");var r=e.closest("bds-button, bds-input, bds-select");if(r!==null&&r!==undefined){var o=r.querySelector("button, input");var n=o!==null&&o!==void 0?o:r;this.listenTarget=n;this.listenTarget.addEventListener("click",(function(e){return t.handleShow(e)}));this.listenTarget.addEventListener("keydown",(function(e){return t.handleKeydown(e,(function(){return t.show()}),(function(){return t.hide()}))}))}else{this.trigger.addEventListener("click",(function(e){return t.handleShow(e)}));this.trigger.addEventListener("keydown",(function(e){return t.handleKeydown(e,(function(){return t.show()}),(function(){return t.hide()}))}))}};t.prototype.handleShow=function(e){e.stopPropagation();this.toggle()};Object.defineProperty(t.prototype,"canShowArrow",{get:function(){return!this.floatingOptions.hideArrow||false},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"getPlacement",{get:function(){return this.floatingOptions.placement||"bottom"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasHeaderSlot",{get:function(){return this.el.querySelector('[slot="header"]')!==null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasFooterSlot",{get:function(){return this.el.querySelector('[slot="footer"]')!==null},enumerable:false,configurable:true});t.prototype.openPopover=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.show();return[2]}))}))};t.prototype.closePopover=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.hide();return[2]}))}))};t.prototype.disconnectedCallback=function(){var e=this;this.listenTarget.removeEventListener("click",(function(t){return e.handleShow(t)}));this.trigger.removeEventListener("click",(function(t){return e.handleShow(t)}))};t.prototype.render=function(){var e=this;return h(Host,{key:"1145ed2dd0b348768e488601c1fb107d324722d6",class:"popover",style:{width:this.popoverWidth},popover:"manual",role:"tooltip","data-placement":this.getPlacement,"data-hidearrow":this.canShowArrow,"aria-hidden":this.isVisible?"false":"true",onClick:function(t){return e.handleContentClick(t)},ref:function(t){return e.floatingContent=t}},this.header&&h("div",{key:"17f0abca3fb63dec5cc653f04fe9f9b66f8726c7",class:"popover-header"},h("div",{key:"2a75d8bc515b5a570d205b3ed0165fa90f499e72",class:"popover-header__content"},h("span",{key:"e4e3c86e939a164bbf1d66e27ae81ad79e72f622",class:"popover-header__icon"},h("slot",{key:"dae8e922f5764e0df061d00e1610d10b9b566c1b",name:"header-icon"})),h("span",{key:"2c5712ba18797e4afd646116049bceb7bc947304",class:"popover-header__title"},h("slot",{key:"3f50071dd0967d019af5df4b42ba74fda8506288",name:"header-title"}))),this.closable&&h("bds-button",{key:"9a2cea30f338e9f9e43b86ded9307b23380d061c",class:"popover-header__close",size:BUTTON_SIZES.SMALL,onBdsClick:function(){return e.hide()}},h("em",{key:"f58e153416d703d86a2dd6e040fc7d4db4a3493c",slot:"icon",class:"bds-icon-close"}))),this.canShowArrow&&h("div",{key:"e52f80b940678fb20fdde853ebc3f21e2bfc05eb",class:"popover-arrow",part:"arrow",ref:function(t){return e.arrowElement=t}}),h("div",{key:"3bcaf09c7d1e4760f220241352dead7f7d67a576",class:"popover-content",tabIndex:-1,part:"popover-content"},h("slot",{key:"2b9308edf77812d1055f76266304466261563fe0"})),this.footer&&h("div",{key:"33e39c5c515bddcf0339e4af834026436e475035",class:"popover-footer",onClick:function(e){return e.stopPropagation()}},h("slot",{key:"4155b26aef0e05a4b3c1f8692b6e8fb41b556eed",name:"footer-helper"}),h("slot",{key:"d05f3fe0bcebd6082ad19b217805fe657c78166c",name:"footer-button"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}(Mixin(anchoredMixin));BdsPopover.style=bdsPopoverCss();export{BdsPopover as bds_popover};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";var bdsRadioButtonCss=function(){return'@charset "UTF-8";.bds-radio-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-BqJlOB6b.js";var bdsRadioButtonCss=function(){return'@charset "UTF-8";.bds-radio-button{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;gap:var(--boreal-spacing-2xs);padding:var(--boreal-spacing-2xs) var(--boreal-spacing-s);border:1px solid transparent;border-radius:var(--boreal-radius-s);background-color:var(--boreal-ui-default-base);color:var(--boreal-text-default);cursor:pointer;outline:none;-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-radio-button input[type=checkbox],.bds-radio-button input[type=radio]{position:absolute;opacity:0;width:0;height:0;margin:0;pointer-events:none}.bds-radio-button [slot=icon]{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}.bds-radio-button:hover:not(.bds-radio-button--disabled):not(.bds-radio-button--checked):not(.bds-radio-button--error){background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:var(--boreal-depth-box-shadow-xs);box-shadow:var(--boreal-depth-box-shadow-xs)}.bds-radio-button:focus-visible,.bds-radio-button:focus{z-index:1;background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:var(--boreal-depth-box-shadow-focus);box-shadow:var(--boreal-depth-box-shadow-focus);outline:none}.bds-radio-button:active:not(.bds-radio-button--disabled):not(.bds-radio-button--checked):not(.bds-radio-button--error){z-index:1;background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:var(--boreal-depth-box-shadow-active);box-shadow:var(--boreal-depth-box-shadow-active)}.bds-radio-button--checked{background-color:var(--boreal-ui-inverse);border-color:var(--boreal-stroke-primary-base);color:var(--boreal-text-primary-base)}.bds-radio-button--checked:hover,.bds-radio-button--checked:focus-visible,.bds-radio-button--checked:focus,.bds-radio-button--checked:active{background-color:var(--boreal-ui-primary-lighter)}.bds-radio-button--error{background-color:var(--boreal-ui-inverse);color:var(--boreal-text-danger-base)}.bds-radio-button--error:hover,.bds-radio-button--error:focus-visible,.bds-radio-button--error:focus,.bds-radio-button--error:active{background-color:var(--boreal-ui-danger-lighter)}.bds-radio-button--error.bds-radio-button--checked{border-color:var(--boreal-stroke-danger-base)}.bds-radio-button--disabled{cursor:not-allowed;pointer-events:none;background-color:var(--boreal-ui-inverse);color:var(--boreal-text-disabled)}.bds-radio-button--disabled.bds-radio-button--checked{border-color:var(--boreal-stroke-primary-light);color:var(--boreal-text-primary-light)}.bds-radio-button__label{font-family:var(--boreal-typography-font-family-primary);font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-sm)}.bds-radio-button__info{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}.bds-radio-button__icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-radio-button__icon:empty{display:none}.bds-radio-button__info-icon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-size:var(--boreal-typography-font-size-sm);line-height:1;color:var(--boreal-icon-default-ink)}'};var BdsRadioButton=function(){function e(e){var o=this;registerInstance(this,e);this.bdsChange=createEvent(this,"bdsChange");this.checked=false;this.disabled=false;this.error=false;this.value="on";this.name="";this.label="";this.info="";this.handleClick=function(){return o.select()};this.handleKeyDown=function(e){if(e.key===" "){e.preventDefault();o.select()}}}e.prototype.componentDidLoad=function(){this.el.setAttribute("role","radio");this.el.setAttribute("aria-checked",String(this.checked));this.el.setAttribute("tabindex","-1")};e.prototype.select=function(){if(this.disabled||this.checked)return;this.checked=true;this.el.setAttribute("aria-checked","true");this.bdsChange.emit({checked:true,value:this.value})};Object.defineProperty(e.prototype,"classMap",{get:function(){return{"bds-radio-button":true,"bds-radio-button--checked":this.checked,"bds-radio-button--error":this.error,"bds-radio-button--disabled":this.disabled}},enumerable:false,configurable:true});e.prototype.render=function(){var e=this;return h(Host,{key:"a93a54d210b0b5f05e82f5e19f8fecd9502257ae",class:this.classMap,onClick:this.handleClick,onKeyDown:this.handleKeyDown},h("input",{key:"93c8fdba9be5708bb17114f76131ecf88457a6e1",type:"radio",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,"aria-hidden":"true",tabIndex:-1,onFocus:function(){return e.el.focus()}}),h("span",{key:"a51c3c748941b943b16570d13463321ecd122f38",class:"bds-radio-button__icon"},h("slot",{key:"cbbe2373b77ec5743b2eb45e1acc7d753f0de206",name:"icon"})),h("span",{key:"e4d8f4ae5a6538540536908fabe23e5fe49ce2c1",class:"bds-radio-button__label"},this.label||h("slot",{key:"2cc5aee872ab7ffd933d626a8f95f406c434a399"})),this.info&&h("span",{key:"92b187ede0488712d778958de1b599fab975cbf0",class:"bds-radio-button__info"},h("span",{key:"9f840b4ba88fcae4ed226b242c508c96ec73abb6",class:"bds-radio-button__info-icon bds-icon-info-circle","aria-hidden":"true"}),h("bds-tooltip",{key:"fdf5d00827aae240d8cbe803b3f98c786c45f967"},this.info)))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();BdsRadioButton.style=bdsRadioButtonCss();export{BdsRadioButton as bds_radio_button};
|