@telesign/boreal-web-components 0.1.0-alpha.3 → 0.1.0-alpha.4
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.d.ts +11 -0
- package/components-build/bds-avatar.js +1 -0
- package/components-build/bds-badge.d.ts +11 -0
- package/components-build/bds-badge.js +1 -0
- package/components-build/bds-banner.js +1 -1
- package/components-build/bds-button.js +1 -1
- package/components-build/bds-checkbox.js +1 -1
- package/components-build/bds-dialog.js +1 -1
- package/components-build/bds-divider.d.ts +11 -0
- package/components-build/bds-divider.js +1 -0
- package/components-build/bds-flag.js +1 -1
- package/components-build/bds-grid-item.d.ts +11 -0
- package/components-build/bds-grid-item.js +1 -0
- package/components-build/bds-grid.d.ts +11 -0
- package/components-build/bds-grid.js +1 -0
- package/components-build/bds-list-menu-item.d.ts +11 -0
- package/components-build/bds-list-menu-item.js +1 -0
- package/components-build/bds-list-menu.d.ts +11 -0
- package/components-build/bds-list-menu.js +1 -0
- package/components-build/bds-popover.js +1 -1
- package/components-build/bds-spinner.js +1 -1
- package/components-build/bds-status.d.ts +11 -0
- package/components-build/bds-status.js +1 -0
- package/components-build/bds-tag.d.ts +11 -0
- package/components-build/bds-tag.js +1 -0
- package/components-build/bds-text-field.js +1 -1
- package/components-build/bds-toggle.d.ts +11 -0
- package/components-build/bds-toggle.js +1 -0
- package/components-build/bds-tooltip.js +1 -1
- package/components-build/bds-typography.js +1 -1
- package/components-build/index.js +1 -1
- package/components-build/p-B8n1ru5i.js +1 -0
- package/components-build/p-Bfazyxqi.js +1 -0
- package/components-build/p-CGdxFth9.js +1 -0
- package/components-build/p-CrAt6pGl.js +1 -0
- package/components-build/p-DCwT43Kz.js +1 -0
- package/components-build/p-DIY3CDNL.js +1 -0
- package/components-build/p-DhSchGPI.js +1 -0
- package/components-build/p-kGnB15Lz.js +1 -0
- package/custom-elements.json +2588 -540
- package/dist/boreal-web-components/boreal-web-components.esm.js +1 -1
- package/dist/boreal-web-components/boreal-web-components.js +1 -1
- package/dist/boreal-web-components/css/boreal.css +1066 -1074
- package/dist/boreal-web-components/css/global.css +403 -407
- package/dist/boreal-web-components/css/theme-connect.css +163 -164
- package/dist/boreal-web-components/css/theme-engage.css +163 -164
- package/dist/boreal-web-components/css/theme-protect.css +163 -164
- package/dist/boreal-web-components/css/theme-proximus.css +164 -165
- package/dist/boreal-web-components/p-0028481c.entry.js +1 -0
- package/dist/boreal-web-components/p-127a4134.entry.js +1 -0
- package/dist/boreal-web-components/p-1466de58.system.entry.js +1 -0
- package/dist/boreal-web-components/p-1d1bb9d2.entry.js +1 -0
- package/dist/boreal-web-components/p-2158a7cd.entry.js +1 -0
- package/dist/boreal-web-components/{p-8c57e06a.entry.js → p-251b3002.entry.js} +1 -1
- package/dist/boreal-web-components/p-251d35df.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-fc2cb919.entry.js → p-2b8bd1dd.entry.js} +1 -1
- package/dist/boreal-web-components/p-32c23246.system.entry.js +1 -0
- package/dist/boreal-web-components/p-3fbcc233.entry.js +1 -0
- package/dist/boreal-web-components/p-401f1aee.system.entry.js +1 -0
- package/dist/boreal-web-components/p-41b48701.system.entry.js +1 -0
- package/dist/boreal-web-components/p-41cac1b8.system.entry.js +1 -0
- package/dist/boreal-web-components/p-44ceff4e.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-efe57901.system.entry.js → p-52600375.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-627b19a5.system.entry.js +1 -0
- package/dist/boreal-web-components/p-649737e5.entry.js +1 -0
- package/dist/boreal-web-components/p-64cb5825.entry.js +1 -0
- package/dist/boreal-web-components/p-66360e63.entry.js +1 -0
- package/dist/boreal-web-components/p-695d0830.entry.js +1 -0
- package/dist/boreal-web-components/p-6a99f4c6.system.entry.js +1 -0
- package/dist/boreal-web-components/p-731b88cc.entry.js +1 -0
- package/dist/boreal-web-components/{p-22378341.system.entry.js → p-74c13bed.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-7a4efddd.system.entry.js +1 -0
- package/dist/boreal-web-components/p-7db870b7.entry.js +1 -0
- package/dist/boreal-web-components/p-7f7ac40f.entry.js +1 -0
- package/dist/boreal-web-components/p-80822731.system.entry.js +1 -0
- package/dist/boreal-web-components/p-82d49661.entry.js +1 -0
- package/dist/boreal-web-components/p-83ca193e.entry.js +1 -0
- package/dist/boreal-web-components/p-871c9a9f.system.entry.js +1 -0
- package/dist/boreal-web-components/p-BQ_zoZa2.js +1 -0
- package/dist/boreal-web-components/p-Bfazyxqi.js +1 -0
- package/dist/boreal-web-components/{p-D4EFsvs1.js → p-BqJlOB6b.js} +2 -2
- package/dist/boreal-web-components/p-BsZkk4oK.system.js +1 -0
- package/dist/boreal-web-components/p-CXz1RLGi.system.js +1 -0
- package/dist/boreal-web-components/p-CtknSula.system.js +1 -0
- package/dist/boreal-web-components/p-CvK2d92c.js +1 -0
- package/dist/boreal-web-components/p-CzYQb3pP.js +1 -0
- package/dist/boreal-web-components/p-DCKg5Cg_.system.js +2 -0
- package/dist/boreal-web-components/p-DZcx75cy.system.js +1 -0
- package/dist/boreal-web-components/p-DhSchGPI.js +1 -0
- package/dist/boreal-web-components/{p-BkDQsB4R.system.js → p-Dme-NuTD.system.js} +1 -1
- package/dist/boreal-web-components/p-RhSdMyWk.system.js +1 -0
- package/dist/boreal-web-components/{p-5fa53a80.system.entry.js → p-ab5ffa15.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-b12d4788.system.entry.js +1 -0
- package/dist/boreal-web-components/p-ba2b625a.system.entry.js +1 -0
- package/dist/boreal-web-components/p-bf2ef10b.entry.js +1 -0
- package/dist/boreal-web-components/{p-6de2b44c.system.entry.js → p-c7aee9f4.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-e0bf8a6e.entry.js +1 -0
- package/dist/boreal-web-components/p-edca16b6.system.entry.js +1 -0
- package/dist/boreal-web-components/p-fc24d963.entry.js +1 -0
- package/dist/boreal-web-components/p-kGnB15Lz.js +1 -0
- package/dist/boreal-web-components/p-vzZJGcYF.system.js +1 -0
- package/dist/boreal-web-components/scss/maps/_primitives.scss +404 -408
- package/dist/boreal-web-components/scss/maps/_theme-connect.scss +164 -165
- package/dist/boreal-web-components/scss/maps/_theme-engage.scss +164 -165
- package/dist/boreal-web-components/scss/maps/_theme-protect.scss +164 -165
- package/dist/boreal-web-components/scss/maps/_theme-proximus.scss +165 -166
- package/dist/boreal-web-components/scss/variables/_primitives.scss +404 -408
- package/dist/boreal-web-components/scss/variables/_theme-connect.scss +164 -165
- package/dist/boreal-web-components/scss/variables/_theme-engage.scss +164 -165
- package/dist/boreal-web-components/scss/variables/_theme-protect.scss +164 -165
- package/dist/boreal-web-components/scss/variables/_theme-proximus.scss +165 -166
- package/dist/cjs/BaseAttributes-DBBhKt7O.js +14 -0
- package/dist/cjs/Keys-DbIXSJF2.js +22 -0
- package/dist/cjs/bds-avatar.cjs.entry.js +89 -0
- package/dist/cjs/bds-badge.cjs.entry.js +50 -0
- package/dist/cjs/bds-banner.cjs.entry.js +12 -5
- package/dist/cjs/bds-button.cjs.entry.js +5 -5
- package/dist/cjs/bds-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/bds-dialog.cjs.entry.js +7 -6
- package/dist/cjs/bds-divider.cjs.entry.js +46 -0
- package/dist/cjs/bds-flag.cjs.entry.js +3 -3
- package/dist/cjs/bds-grid-item.cjs.entry.js +93 -0
- package/dist/cjs/bds-grid.cjs.entry.js +37 -0
- package/dist/cjs/bds-list-menu-item.cjs.entry.js +468 -0
- package/dist/cjs/bds-list-menu.cjs.entry.js +130 -0
- package/dist/cjs/bds-popover.cjs.entry.js +17 -8
- package/dist/cjs/bds-spinner.cjs.entry.js +4 -4
- package/dist/cjs/bds-status.cjs.entry.js +59 -0
- package/dist/cjs/bds-tag.cjs.entry.js +140 -0
- package/dist/cjs/bds-text-field.cjs.entry.js +12 -22
- package/dist/cjs/bds-toggle.cjs.entry.js +186 -0
- package/dist/cjs/bds-tooltip_2.cjs.entry.js +320 -0
- package/dist/cjs/boreal-web-components.cjs.js +2 -2
- package/dist/cjs/{anchored.mixin-CnIwkaUi.js → getOffset-m4hBgyVP.js} +42 -26
- package/dist/cjs/{index-BcSjvXJk.js → index-CwYIVC9N.js} +64 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{states-iIYiazaM.js → states-BweP5Vpu.js} +8 -0
- package/dist/cjs/validateProps-CJe9X5x8.js +42 -0
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/actions/bds-button/bds-button.js +2 -2
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.css +25 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.js +301 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.css +71 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.js +437 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.js +1 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/types/enum.js +4 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/types/types.js +1 -0
- package/dist/collection/components/actions/bds-toggle/bds-toggle.css +120 -0
- package/dist/collection/components/actions/bds-toggle/bds-toggle.js +544 -0
- package/dist/collection/components/actions/bds-toggle/types/IEventChange.js +1 -0
- package/dist/collection/components/actions/bds-toggle/types/IToggle.js +1 -0
- package/dist/collection/components/actions/bds-toggle/types/enum.js +4 -0
- package/dist/collection/components/actions/bds-toggle/types/index.js +4 -0
- package/dist/collection/components/actions/bds-toggle/types/types.js +1 -0
- package/dist/collection/components/feedback/bds-badge/bds-badge.css +76 -0
- package/dist/collection/components/feedback/bds-badge/bds-badge.js +120 -0
- package/dist/collection/components/feedback/bds-badge/types/IBadge.js +1 -0
- package/dist/collection/components/feedback/bds-badge/types/enum.js +5 -0
- package/dist/collection/components/feedback/bds-banner/bds-banner.css +1 -2
- package/dist/collection/components/feedback/bds-banner/bds-banner.js +30 -6
- package/dist/collection/components/feedback/bds-spinner/bds-spinner.css +7 -8
- package/dist/collection/components/feedback/bds-spinner/bds-spinner.js +1 -1
- package/dist/collection/components/feedback/bds-status/bds-status.css +101 -0
- package/dist/collection/components/feedback/bds-status/bds-status.js +122 -0
- package/dist/collection/components/feedback/bds-status/types/IStatus.js +1 -0
- package/dist/collection/components/feedback/bds-status/types/enum.js +5 -0
- package/dist/collection/components/feedback/bds-status/types/types.js +1 -0
- package/dist/collection/components/feedback/bds-tag/bds-tag.css +202 -0
- package/dist/collection/components/feedback/bds-tag/bds-tag.js +375 -0
- package/dist/collection/components/feedback/bds-tag/types/ITag.js +1 -0
- package/dist/collection/components/feedback/bds-tag/types/enum.js +10 -0
- package/dist/collection/components/feedback/bds-tag/types/index.js +3 -0
- package/dist/collection/components/feedback/bds-tag/types/types.js +1 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox.js +1 -1
- package/dist/collection/components/forms/bds-flag/bds-flag.js +1 -1
- package/dist/collection/components/forms/bds-text-field/bds-text-field.js +1 -1
- package/dist/collection/components/helpers/bds-divider.css +36 -0
- package/dist/collection/components/helpers/bds-divider.js +88 -0
- package/dist/collection/components/helpers/types/IDivider.js +1 -0
- package/dist/collection/components/helpers/types/enum.js +4 -0
- package/dist/collection/components/helpers/types/types.js +1 -0
- package/dist/collection/components/images-icons/bds-avatar/bds-avatar.css +52 -0
- package/dist/collection/components/images-icons/bds-avatar/bds-avatar.js +219 -0
- package/dist/collection/components/images-icons/bds-avatar/types/IAvatar.js +1 -0
- package/dist/collection/components/images-icons/bds-avatar/types/enum.js +5 -0
- package/dist/collection/components/images-icons/bds-avatar/types/index.js +3 -0
- package/dist/collection/components/images-icons/bds-avatar/types/types.js +1 -0
- package/dist/collection/components/layouts/bds-grid/grid/bds-grid.css +57 -0
- package/dist/collection/components/layouts/bds-grid/grid/bds-grid.js +100 -0
- package/dist/collection/components/layouts/bds-grid/grid/types/IGrid.js +1 -0
- package/dist/collection/components/layouts/bds-grid/grid/types/enum.js +4 -0
- package/dist/collection/components/layouts/bds-grid/grid/types/index.js +3 -0
- package/dist/collection/components/layouts/bds-grid/grid/types/types.js +1 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/bds-grid-item.css +70 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/bds-grid-item.js +306 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/types/IGridItem.js +1 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/types/enum.js +10 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/types/index.js +3 -0
- package/dist/collection/components/layouts/bds-grid/grid-item/types/types.js +1 -0
- package/dist/collection/components/overlays/bds-dialog/bds-dialog.js +4 -3
- package/dist/collection/components/overlays/bds-popover/bds-popover.css +16 -2
- package/dist/collection/components/overlays/bds-popover/bds-popover.js +12 -4
- package/dist/collection/components/overlays/bds-popover/constants/Offset.js +1 -0
- package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.css +2 -13
- package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.js +4 -2
- package/dist/collection/components/overlays/bds-tooltip/constants/Offset.js +1 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.css +4 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.js +20 -19
- package/dist/collection/components/titles-text/bds-typography/utils/bds-typography-utils.js +2 -2
- package/dist/collection/css/boreal.css +1066 -1074
- package/dist/collection/css/global.css +403 -407
- package/dist/collection/css/theme-connect.css +163 -164
- package/dist/collection/css/theme-engage.css +163 -164
- package/dist/collection/css/theme-protect.css +163 -164
- package/dist/collection/css/theme-proximus.css +164 -165
- package/dist/collection/mixins/anchored.mixin.js +14 -1
- package/dist/collection/mixins/index.js +2 -0
- package/dist/collection/mixins/links.mixin.js +153 -0
- package/dist/collection/mixins/menu-behavior.mixin.js +113 -0
- package/dist/collection/scss/maps/_primitives.scss +404 -408
- package/dist/collection/scss/maps/_theme-connect.scss +164 -165
- package/dist/collection/scss/maps/_theme-engage.scss +164 -165
- package/dist/collection/scss/maps/_theme-protect.scss +164 -165
- package/dist/collection/scss/maps/_theme-proximus.scss +165 -166
- package/dist/collection/scss/variables/_primitives.scss +404 -408
- package/dist/collection/scss/variables/_theme-connect.scss +164 -165
- package/dist/collection/scss/variables/_theme-engage.scss +164 -165
- package/dist/collection/scss/variables/_theme-protect.scss +164 -165
- package/dist/collection/scss/variables/_theme-proximus.scss +165 -166
- package/dist/collection/services/floating/positioning.service.js +1 -1
- package/dist/collection/types/IFormProps.js +1 -0
- package/dist/collection/types/index.js +3 -0
- package/dist/collection/types/links.js +1 -0
- package/dist/collection/types/menu.js +8 -0
- package/dist/collection/types/position.js +6 -2
- package/dist/collection/utils/constants/common/Keys.js +12 -0
- package/dist/collection/utils/helpers/overlays/getOffset.js +13 -0
- package/dist/collection/utils/helpers/validateProps.js +21 -0
- package/dist/collection/utils/index.js +2 -1
- package/dist/collection/utils/menu/index.js +1 -0
- package/dist/collection/utils/menu/menu-item.utils.js +81 -0
- package/dist/collection/utils/{__test__ → testing}/index.js +0 -2
- package/dist/collection/utils/testing/mocks/console.js +30 -0
- package/dist/collection/utils/testing/mocks/index.js +4 -0
- package/dist/css/boreal.css +1066 -1074
- package/dist/css/global.css +403 -407
- package/dist/css/theme-connect.css +163 -164
- package/dist/css/theme-engage.css +163 -164
- package/dist/css/theme-protect.css +163 -164
- package/dist/css/theme-proximus.css +164 -165
- package/dist/esm/BaseAttributes-DhSchGPI.js +12 -0
- package/dist/esm/Keys-CzYQb3pP.js +20 -0
- package/dist/esm/bds-avatar.entry.js +87 -0
- package/dist/esm/bds-badge.entry.js +48 -0
- package/dist/esm/bds-banner.entry.js +12 -5
- package/dist/esm/bds-button.entry.js +5 -5
- package/dist/esm/bds-checkbox.entry.js +3 -3
- package/dist/esm/bds-dialog.entry.js +7 -6
- package/dist/esm/bds-divider.entry.js +44 -0
- package/dist/esm/bds-flag.entry.js +3 -3
- package/dist/esm/bds-grid-item.entry.js +91 -0
- package/dist/esm/bds-grid.entry.js +35 -0
- package/dist/esm/bds-list-menu-item.entry.js +466 -0
- package/dist/esm/bds-list-menu.entry.js +128 -0
- package/dist/esm/bds-popover.entry.js +16 -7
- package/dist/esm/bds-spinner.entry.js +4 -4
- package/dist/esm/bds-status.entry.js +57 -0
- package/dist/esm/bds-tag.entry.js +138 -0
- package/dist/esm/bds-text-field.entry.js +5 -15
- package/dist/esm/bds-toggle.entry.js +184 -0
- package/dist/esm/bds-tooltip_2.entry.js +317 -0
- package/dist/esm/boreal-web-components.js +3 -3
- package/dist/esm/{anchored.mixin-Y3MkGc2X.js → getOffset-DKPjeBHi.js} +40 -25
- package/dist/esm/{index-D4EFsvs1.js → index-BqJlOB6b.js} +64 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{states-BhTPNsBb.js → states-Bfazyxqi.js} +8 -1
- package/dist/esm/validateProps-kGnB15Lz.js +39 -0
- package/dist/esm-es5/BaseAttributes-DhSchGPI.js +1 -0
- package/dist/esm-es5/Keys-CzYQb3pP.js +1 -0
- package/dist/esm-es5/bds-avatar.entry.js +1 -0
- package/dist/esm-es5/bds-badge.entry.js +1 -0
- package/dist/esm-es5/bds-banner.entry.js +1 -1
- package/dist/esm-es5/bds-button.entry.js +1 -1
- 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 -0
- package/dist/esm-es5/bds-flag.entry.js +1 -1
- package/dist/esm-es5/bds-grid-item.entry.js +1 -0
- package/dist/esm-es5/bds-grid.entry.js +1 -0
- package/dist/esm-es5/bds-list-menu-item.entry.js +1 -0
- package/dist/esm-es5/bds-list-menu.entry.js +1 -0
- package/dist/esm-es5/bds-popover.entry.js +1 -1
- package/dist/esm-es5/bds-spinner.entry.js +1 -1
- package/dist/esm-es5/bds-status.entry.js +1 -0
- package/dist/esm-es5/bds-tag.entry.js +1 -0
- package/dist/esm-es5/bds-text-field.entry.js +1 -1
- package/dist/esm-es5/bds-toggle.entry.js +1 -0
- package/dist/esm-es5/bds-tooltip_2.entry.js +1 -0
- package/dist/esm-es5/boreal-web-components.js +1 -1
- package/dist/esm-es5/form-associated.mixin-CvK2d92c.js +1 -0
- package/dist/esm-es5/getOffset-DKPjeBHi.js +1 -0
- package/dist/esm-es5/index-BqJlOB6b.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/states-Bfazyxqi.js +1 -0
- package/dist/esm-es5/validateProps-kGnB15Lz.js +1 -0
- package/dist/scss/maps/_primitives.scss +404 -408
- package/dist/scss/maps/_theme-connect.scss +164 -165
- package/dist/scss/maps/_theme-engage.scss +164 -165
- package/dist/scss/maps/_theme-protect.scss +164 -165
- package/dist/scss/maps/_theme-proximus.scss +165 -166
- package/dist/scss/variables/_primitives.scss +404 -408
- package/dist/scss/variables/_theme-connect.scss +164 -165
- package/dist/scss/variables/_theme-engage.scss +164 -165
- package/dist/scss/variables/_theme-protect.scss +164 -165
- package/dist/scss/variables/_theme-proximus.scss +165 -166
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.d.ts +70 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.d.ts +116 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.d.ts +12 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/enum.d.ts +5 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/types.d.ts +3 -0
- package/dist/types/components/actions/bds-toggle/bds-toggle.d.ts +91 -0
- package/dist/types/components/actions/bds-toggle/types/IEventChange.d.ts +5 -0
- package/dist/types/components/actions/bds-toggle/types/IToggle.d.ts +12 -0
- package/dist/types/components/actions/bds-toggle/types/enum.d.ts +5 -0
- package/dist/types/components/actions/bds-toggle/types/index.d.ts +5 -0
- package/dist/types/components/actions/bds-toggle/types/types.d.ts +3 -0
- package/dist/types/components/feedback/bds-badge/bds-badge.d.ts +31 -0
- package/dist/types/components/feedback/bds-badge/types/IBadge.d.ts +6 -0
- package/dist/types/components/feedback/bds-badge/types/enum.d.ts +9 -0
- package/dist/types/components/feedback/bds-banner/bds-banner.d.ts +8 -4
- package/dist/types/components/feedback/bds-status/bds-status.d.ts +26 -0
- package/dist/types/components/feedback/bds-status/types/IStatus.d.ts +7 -0
- package/dist/types/components/feedback/bds-status/types/enum.d.ts +6 -0
- package/dist/types/components/feedback/bds-status/types/types.d.ts +3 -0
- package/dist/types/components/feedback/bds-tag/bds-tag.d.ts +71 -0
- package/dist/types/components/feedback/bds-tag/types/ITag.d.ts +13 -0
- package/dist/types/components/feedback/bds-tag/types/enum.d.ts +11 -0
- package/dist/types/components/feedback/bds-tag/types/index.d.ts +4 -0
- package/dist/types/components/feedback/bds-tag/types/types.d.ts +8 -0
- package/dist/types/components/forms/bds-flag/bds-flag.d.ts +3 -4
- package/dist/types/components/helpers/bds-divider.d.ts +26 -0
- package/dist/types/components/helpers/types/IDivider.d.ts +5 -0
- package/dist/types/components/helpers/types/enum.d.ts +5 -0
- package/dist/types/components/helpers/types/types.d.ts +3 -0
- package/dist/types/components/images-icons/bds-avatar/bds-avatar.d.ts +51 -0
- package/dist/types/components/images-icons/bds-avatar/types/IAvatar.d.ts +9 -0
- package/dist/types/components/images-icons/bds-avatar/types/enum.d.ts +6 -0
- package/dist/types/components/images-icons/bds-avatar/types/index.d.ts +4 -0
- package/dist/types/components/images-icons/bds-avatar/types/types.d.ts +3 -0
- package/dist/types/components/layouts/bds-grid/grid/bds-grid.d.ts +19 -0
- package/dist/types/components/layouts/bds-grid/grid/types/IGrid.d.ts +6 -0
- package/dist/types/components/layouts/bds-grid/grid/types/enum.d.ts +5 -0
- package/dist/types/components/layouts/bds-grid/grid/types/index.d.ts +4 -0
- package/dist/types/components/layouts/bds-grid/grid/types/types.d.ts +3 -0
- package/dist/types/components/layouts/bds-grid/grid-item/bds-grid-item.d.ts +31 -0
- package/dist/types/components/layouts/bds-grid/grid-item/types/IGridItem.d.ts +12 -0
- package/dist/types/components/layouts/bds-grid/grid-item/types/enum.d.ts +11 -0
- package/dist/types/components/layouts/bds-grid/grid-item/types/index.d.ts +4 -0
- package/dist/types/components/layouts/bds-grid/grid-item/types/types.d.ts +3 -0
- package/dist/types/components/overlays/bds-dialog/bds-dialog.d.ts +2 -2
- package/dist/types/components/overlays/bds-popover/bds-popover.d.ts +1 -0
- package/dist/types/components/overlays/bds-popover/constants/Offset.d.ts +2 -0
- package/dist/types/components/overlays/bds-tooltip/bds-tooltip.d.ts +1 -0
- package/dist/types/components/overlays/bds-tooltip/constants/Offset.d.ts +2 -0
- package/dist/types/components/titles-text/bds-typography/bds-typography.d.ts +9 -9
- package/dist/types/components/titles-text/bds-typography/types/ITypography.d.ts +2 -2
- package/dist/types/components/titles-text/bds-typography/utils/bds-typography-utils.d.ts +1 -1
- package/dist/types/components.d.ts +1268 -54
- package/dist/types/mixins/anchored.mixin.d.ts +5 -0
- package/dist/types/mixins/index.d.ts +2 -0
- package/dist/types/mixins/links.mixin.d.ts +85 -0
- package/dist/types/mixins/menu-behavior.mixin.d.ts +91 -0
- package/dist/types/types/IFormProps.d.ts +25 -0
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/links.d.ts +14 -0
- package/dist/types/types/menu.d.ts +16 -0
- package/dist/types/types/position.d.ts +6 -2
- package/dist/types/utils/constants/common/Keys.d.ts +7 -6
- package/dist/types/utils/helpers/overlays/getOffset.d.ts +9 -0
- package/dist/types/utils/helpers/validateProps.d.ts +11 -0
- package/dist/types/utils/index.d.ts +2 -1
- package/dist/types/utils/menu/index.d.ts +2 -0
- package/dist/types/utils/menu/menu-item.utils.d.ts +50 -0
- package/dist/types/utils/{__test__ → testing}/index.d.ts +0 -2
- package/dist/types/utils/{__test__/backdrop-mock.d.ts → testing/mocks/backdrop.d.ts} +1 -1
- package/dist/types/utils/testing/mocks/console.d.ts +17 -0
- package/dist/types/utils/{__test__/mocks/ElementInternals.d.ts → testing/mocks/elementInternals.d.ts} +1 -1
- package/dist/types/utils/testing/mocks/index.d.ts +5 -0
- package/dist/types/utils/{__test__/popover-mock.d.ts → testing/mocks/popover.d.ts} +1 -1
- package/package.json +1 -1
- package/components-build/p-B6R9EVXK.js +0 -1
- package/components-build/p-BSpJ_e9f.js +0 -1
- package/components-build/p-BYEAJCas.js +0 -1
- package/components-build/p-BhTPNsBb.js +0 -1
- package/components-build/p-CYojP4vI.js +0 -1
- package/components-build/p-D5omSME4.js +0 -1
- package/components-build/p-vfAIdwy0.js +0 -1
- package/dist/boreal-web-components/p-07a933df.entry.js +0 -1
- package/dist/boreal-web-components/p-1bb2b33f.entry.js +0 -1
- package/dist/boreal-web-components/p-1fccea3f.system.entry.js +0 -1
- package/dist/boreal-web-components/p-20af732b.system.entry.js +0 -1
- package/dist/boreal-web-components/p-39c26e58.entry.js +0 -1
- package/dist/boreal-web-components/p-6210d025.entry.js +0 -1
- package/dist/boreal-web-components/p-91b9e94e.entry.js +0 -1
- package/dist/boreal-web-components/p-9e06910d.system.entry.js +0 -1
- package/dist/boreal-web-components/p-BIJhHSAt.system.js +0 -1
- package/dist/boreal-web-components/p-BKRyWlfr.js +0 -1
- package/dist/boreal-web-components/p-BhTPNsBb.js +0 -1
- package/dist/boreal-web-components/p-DoDeP7KR.system.js +0 -1
- package/dist/boreal-web-components/p-Dtp4O0H2.system.js +0 -1
- package/dist/boreal-web-components/p-Dy7QKP9e.js +0 -1
- package/dist/boreal-web-components/p-GjKJvOVG.system.js +0 -2
- package/dist/boreal-web-components/p-ac64d4a5.system.entry.js +0 -1
- package/dist/boreal-web-components/p-b61fe06c.entry.js +0 -1
- package/dist/boreal-web-components/p-cdc87437.entry.js +0 -1
- package/dist/boreal-web-components/p-d8ec8557.system.entry.js +0 -1
- package/dist/boreal-web-components/p-ea889727.entry.js +0 -1
- package/dist/boreal-web-components/p-fa327346.system.entry.js +0 -1
- package/dist/boreal-web-components/p-sDZFaZMN.system.js +0 -1
- package/dist/boreal-web-components/p-vfAIdwy0.js +0 -1
- package/dist/cjs/bds-tooltip.cjs.entry.js +0 -152
- package/dist/cjs/bds-typography.cjs.entry.js +0 -168
- package/dist/cjs/validateProps-BNOBk1Xs.js +0 -20
- package/dist/collection/utils/__test__/mocks/index.js +0 -1
- package/dist/esm/bds-tooltip.entry.js +0 -150
- package/dist/esm/bds-typography.entry.js +0 -166
- package/dist/esm/validateProps-vfAIdwy0.js +0 -18
- package/dist/esm-es5/anchored.mixin-Y3MkGc2X.js +0 -1
- package/dist/esm-es5/bds-tooltip.entry.js +0 -1
- package/dist/esm-es5/bds-typography.entry.js +0 -1
- package/dist/esm-es5/index-D4EFsvs1.js +0 -2
- package/dist/esm-es5/internals-Dy7QKP9e.js +0 -1
- package/dist/esm-es5/states-BhTPNsBb.js +0 -1
- package/dist/esm-es5/validateProps-vfAIdwy0.js +0 -1
- package/dist/types/utils/__test__/mocks/index.d.ts +0 -2
- package/dist/cjs/{internals-X77qKxsK.js → form-associated.mixin-DXwvF_vW.js} +30 -30
- package/dist/collection/utils/{__test__ → testing}/constants.js +0 -0
- package/dist/collection/utils/{__test__ → testing}/fixtures.js +0 -0
- package/dist/collection/utils/{__test__ → testing}/helpers.js +0 -0
- package/dist/collection/utils/{__test__/backdrop-mock.js → testing/mocks/backdrop.js} +0 -0
- package/dist/collection/utils/{__test__/mocks/ElementInternals.js → testing/mocks/elementInternals.js} +0 -0
- package/dist/collection/utils/{__test__/popover-mock.js → testing/mocks/popover.js} +0 -0
- package/dist/esm/{internals-Dy7QKP9e.js → form-associated.mixin-CvK2d92c.js} +30 -30
- /package/dist/types/utils/{__test__ → testing}/constants.d.ts +0 -0
- /package/dist/types/utils/{__test__ → testing}/fixtures.d.ts +0 -0
- /package/dist/types/utils/{__test__ → testing}/helpers.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,a,g as r}from"./p-D4EFsvs1.js";import{C as o}from"./p-BhTPNsBb.js";import{a as i}from"./p-CaHOghy5.js";const h="md",l={link:{states:[o.DISABLED],size:["sm",h]},label:{states:[o.DISABLED],isRequired:!0,canUseTooltip:!0},heading:{canUseTooltip:!0},subheading:{canUseTooltip:!0},helper:{states:[o.ERROR]},display:{size:["xs","sm",h,"lg","xl"]}},s=class{constructor(e){t(this,e),this.inheritedAttributes={},this.variant="display",this.size=h,this.state=o.DEFAULT,this.customClass="",this.element="p",this.align="start",this.ellipsis=!1,this.maxLines=1,this.tooltipText="",this.isRequired=!1,this.htmlFor=void 0,this.href=null,this.target=null,this.isDownloadable=!1,this.filename="download",this.sanitizedHref=""}async updateSanitizedHref(){if("a"===this.getTagName&&null!==this.href){const{sanitizeUrl:t}=await import("./p-noyWJ11s.js").then((function(t){return t.i}));this.sanitizedHref=t(this.href)}else this.sanitizedHref=""}async componentWillLoad(){"a"===this.getTagName&&null!==this.href&&await this.updateSanitizedHref(),this.inheritedAttributes={...i(this.el)}}get getTagName(){return"link"===this.variant?"a":this.element.toLowerCase()}getVariantConfig(){return l[this.variant]??{}}getAccessibilityTags(){const{isRequired:t=null}=this.getVariantConfig(),e=["a","label"].includes(this.getTagName);return{"aria-required":this.isRequired&&t,"aria-disabled":this.state===o.DISABLED&&e}}getVariantStateStyles(){const t=this.getVariantConfig();return{[`bds-typography--${this.variant}`]:!0,[`bds-typography--align-${this.align}`]:!0,[`bds-typography--${this.state}`]:!(!t?.states||!t?.states.includes(this.state)),[`bds-typography--size-${this.size}`]:!(!t?.size||!t?.size.includes(this.size)),"bds-typography--required":!(!t?.isRequired||!this.isRequired),"bds-typography--ellipsis":this.ellipsis&&this.maxLines<=1,"bds-typography--ellipsis-multiline":this.ellipsis&&this.maxLines>1,[this.customClass]:""!==this.customClass}}render(){const t=this.getTagName,r={...(i=this,h=t,{a:{href:i.state!==o.DISABLED?i.sanitizedHref:null,target:i.target,download:i.isDownloadable?i.filename:null,rel:"_blank"===i.target?"noopener noreferrer":void 0},label:{htmlFor:i.htmlFor}}[h]||{}),...this.inheritedAttributes,...this.getAccessibilityTags()};var i,h;const l=this.getVariantStateStyles(),{canUseTooltip:s=null,isRequired:p=null}=this.getVariantConfig();return e(a,{key:"98e236475142f2be85fcc227cd507d6cb8648928",class:"bds-typography"},e(t,{key:"eed74e216dc0832b5f4808ba72e1374198f60e1a",class:l,style:{webkitLineClamp:this.maxLines},...r},e("slot",{key:"cc073f2d2a3840970c62296379514884564c3473"}),this.isRequired&&p&&e("em",{key:"299a88d69856603b6e73af9567fa91b1a1e7434f",class:"bds-typography__required-indicator","aria-hidden":"true"},"*"),this.tooltipText&&s&&e("span",{key:"c8fa478a8fbd4a70d0869b4c9d523a8a0e9803bf"},e("em",{key:"0f6869a6dd7ab04b19acee773e54687dbd070af0",class:"bds-typography__info-icon bds-icon-info-circle","aria-label":this.tooltipText}),e("bds-tooltip",{key:"ec2dfc33b119bc3f60ec52e8bd10fdb16ea5cc2a"},this.tooltipText))))}get el(){return r(this)}static get watchers(){return{href:[{updateSanitizedHref:0}]}}};s.style='@charset "UTF-8";.bds-typography{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__required-indicator{color:var(--boreal-icon-danger-base);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__info-icon{color:var(--boreal-icon-default-light)}.bds-typography--heading,.bds-typography--subheading{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--display{display:block}.bds-typography--caption,.bds-typography--helper,.bds-typography--link{display:inline-block}.bds-typography--caption{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-light)}.bds-typography--helper{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm);color:var(--boreal-text-default-light)}.bds-typography--link{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-primary-base);text-decoration:none}.bds-typography--link:hover{text-decoration:underline}.bds-typography--link:visited{color:var(--boreal-text-primary-base)}.bds-typography--link:active{color:var(--boreal-text-primary-dark)}.bds-typography--link.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xs)}.bds-typography--link.bds-typography--size-md{font-size:var(--boreal-typography-font-size-sm)}.bds-typography--code{font-family:var(--boreal-typography-font-family-secondary);font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default);line-height:var(--boreal-typography-line-height-md);overflow-wrap:break-word;background-color:var(--boreal-bg-neutral);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-xs);border-radius:var(--boreal-radius-xs);display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone}.bds-typography--label{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-darker)}.bds-typography--display{font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography--display.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography--display.bds-typography--size-md{font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography--display.bds-typography--size-lg{font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--display.bds-typography--size-xl{font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--heading{font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography h1.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl)}.bds-typography h2.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl)}.bds-typography h3.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography h4.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography h5.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg)}.bds-typography h6.bds-typography--heading{font-size:var(--boreal-typography-font-size-md);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md)}.bds-typography--subheading{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);font-weight:var(--boreal-typography-font-weight-semibold)}.bds-typography--align-start{text-align:start}.bds-typography--align-center{text-align:center}.bds-typography--align-end{text-align:end}.bds-typography--align-inherit{text-align:inherit}.bds-typography--error{color:var(--boreal-text-danger-base)}.bds-typography--disabled{color:var(--boreal-text-disabled);pointer-events:none;cursor:not-allowed}.bds-typography--disabled .bds-typography__required-indicator{color:var(--boreal-text-danger-light)}.bds-typography--ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.bds-typography--ellipsis-multiline{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;width:100%}';export{s as bds_typography}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as r,a as e,g as a}from"./p-D4EFsvs1.js";import{v as s}from"./p-vfAIdwy0.js";const o={SMALL:"sm",MEDIUM:"md",LARGE:"lg"},i=class{constructor(r){t(this,r),this.size=o.SMALL,this.label="Loading"}checkPropValues(){s(Object.values(o),o.SMALL,this.el,"size")}componentWillLoad(){this.checkPropValues()}get getClassMap(){return{"bds-spinner":!0,"bds-spinner--small":this.size===o.SMALL,"bds-spinner--medium":this.size===o.MEDIUM,"bds-spinner--large":this.size===o.LARGE}}render(){return r(e,{key:"b38497732140f7e9dd155199c49f8365f00b004b",class:this.getClassMap,role:"status","aria-label":this.label,"aria-live":"polite","aria-busy":"true"},r("span",{key:"47befa4469a3cf297493c54bcb8acc5bca76fbd3",class:"bds-spinner__sr-only"},this.label))}get el(){return a(this)}static get watchers(){return{size:[{checkPropValues:0}]}}};i.style='@charset "UTF-8";:host{display:block}.bds-spinner{display:inline-block;position:relative;width:1em;height:1em}.bds-spinner::before,.bds-spinner::after{content:"";position:absolute;border-color:transparent transparent var(--boreal-primary-base) transparent;border-radius:50%;border-width:3px;border-style:solid;top:0;left:0;width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.bds-spinner::before{opacity:0.2;border-style:dashed;-webkit-animation:spin 0.8s linear infinite;animation:spin 0.8s linear infinite}.bds-spinner::after{-webkit-animation:draw-arc 0.8s linear infinite;animation:draw-arc 0.8s linear infinite}.bds-spinner--small{width:var(--boreal-layout-m);height:var(--boreal-layout-m)}.bds-spinner--medium{width:var(--boreal-layout-ml);height:var(--boreal-layout-ml)}.bds-spinner--large{width:var(--boreal-layout-xl);height:var(--boreal-layout-xl)}.bds-spinner__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap;border:0}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes draw-arc{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}60%{-webkit-transform:rotate(330deg);transform:rotate(330deg)}65%{-webkit-transform:rotate(335deg);transform:rotate(335deg)}90%{-webkit-transform:rotate(350deg);transform:rotate(350deg)}95%{-webkit-transform:rotate(355deg);transform:rotate(355deg)}98%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes draw-arc{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}60%{-webkit-transform:rotate(330deg);transform:rotate(330deg)}65%{-webkit-transform:rotate(335deg);transform:rotate(335deg)}90%{-webkit-transform:rotate(350deg);transform:rotate(350deg)}95%{-webkit-transform:rotate(355deg);transform:rotate(355deg)}98%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}';export{i as bds_spinner}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,o){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]};return e(t,o)};return function(t,o){if(typeof o!=="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function r(){this.constructor=t}t.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)}}();System.register(["./p-GjKJvOVG.system.js","./p-BIJhHSAt.system.js","./p-CdKFZYxk.system.js","./p-BHYhd1yq.system.js"],(function(e){"use strict";var t,o,r,n,a,i,s;return{setters:[function(e){t=e.M;o=e.r;r=e.h;n=e.a;a=e.g},function(e){i=e.a},function(e){s=e.B},null],execute:function(){var c=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-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)}.popover[data-placement^=top] .popover-arrow{bottom:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=top] .popover-arrow::before{top:0}.popover[data-placement^=bottom] .popover-arrow{top:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=bottom] .popover-arrow::before{top: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 p=e("bds_popover",function(e){__extends(t,e);function t(t){var r=e.call(this)||this;o(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;return{placement:(e=this.floatingOptions.placement)!==null&&e!==void 0?e:"bottom",offset:(t=this.floatingOptions.offset)!==null&&t!==void 0?t:16,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,o;if(((t=e.middlewareData)===null||t===void 0?void 0:t.arrow)&&!this.disabled&&((o=this.arrowElement)===null||o===void 0?void 0:o.isConnected)){var r=e.middlewareData.arrow,n=r.x,a=r.y;Object.assign(this.arrowElement.style,{left:n!=null?"".concat(n,"px"):"",top:a!=null?"".concat(a,"px"):""})}};t.prototype.handleClickOutside=function(e){var t=e.target;var o=this.el.contains(t);var r=this.floatingContent.contains(t)||this.floatingContent===t;if(!o&&!r){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 o;this.floatingContent.setAttribute("data-placement",e.placement);this.setArrowPosition(e);if(this.width==="full"&&this.triggerSlot!==null&&this.triggerSlot!==undefined){var r=(o=this.triggerSlot.parentElement)!==null&&o!==void 0?o:this.triggerSlot;var n=r.getBoundingClientRect().width;var a=this.floatingContent.getBoundingClientRect().width;if(Math.round(a)!==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 o=e.closest("bds-button, bds-input, bds-select");if(o!==null&&o!==undefined){var r=o.querySelector("button, input");var n=r!==null&&r!==void 0?r:o;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.showElement()}),(function(){return t.hideElement()}))}))}else{this.trigger.addEventListener("click",(function(e){return t.handleShow(e)}));this.trigger.addEventListener("keydown",(function(e){return t.handleKeydown(e,(function(){return t.showElement()}),(function(){return t.hideElement()}))}))}};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.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 r(n,{key:"e00cacf63369fc0c409d003aaf495eeef1af424c"},r("div",{key:"0262e5dc2789d817c1332d12d598b7f6bb71a188",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&&r("div",{key:"63156ddf954e2c2b6452184f060ea502b9798d2f",class:"popover-header"},r("div",{key:"1183b88e3352637d9fce99d160c3d1df56b6010b",class:"popover-header__content"},r("span",{key:"48dcc7ac417bddfd9f19e388e32833d6930a566c",class:"popover-header__icon"},r("slot",{key:"a852564051439b09b30f8f0f054c29ccb6c4f722",name:"header-icon"})),r("span",{key:"aaaef66cd3454c4dd3bd4be7e0613187943f49b0",class:"popover-header__title"},r("slot",{key:"231224f3e9115e300998942aecfd07ae7b45dda7",name:"header-title"}))),this.closable&&r("bds-button",{key:"67ccc016aa89d0627812ad80ad1121bdb3e25692",class:"popover-header__close",size:s.SMALL,onBdsClick:function(){return e.hide()}},r("em",{key:"40cdcbf5e9ca75e55f45cdce3db6af2ed5088298",slot:"icon",class:"bds-icon-close"}))),this.canShowArrow&&r("div",{key:"a8bd41e82c5f4a0d7fe7a02287c29140490118e4",class:"popover-arrow",part:"arrow",ref:function(t){return e.arrowElement=t}}),r("div",{key:"a205d8490fb192ebf0c75388775a8247b06d4431",class:"popover-content",tabIndex:-1,part:"popover-content"},r("slot",{key:"e3447f0022c0c78a28d176df5d85ff05daea8bd6"})),this.footer&&r("div",{key:"d16a93b4c702e342c89a7192b9a528f39e035601",class:"popover-footer",onClick:function(e){return e.stopPropagation()}},r("slot",{key:"0c046c725771991b981b5baf090c1ecc023987c6",name:"footer-helper"}),r("slot",{key:"3f4391e420d411b0ae84df6fe29d4fc9e96fc206",name:"footer-button"}))))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return t}(t(i)));p.style=c()}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-GjKJvOVG.system.js","./p-sDZFaZMN.system.js"],(function(t){"use strict";var e,r,a,n,i;return{setters:[function(t){e=t.r;r=t.h;a=t.a;n=t.g},function(t){i=t.v}],execute:function(){var s={SMALL:"sm",MEDIUM:"md",LARGE:"lg"};var o=function(){return'@charset "UTF-8";:host{display:block}.bds-spinner{display:inline-block;position:relative;width:1em;height:1em}.bds-spinner::before,.bds-spinner::after{content:"";position:absolute;border-color:transparent transparent var(--boreal-primary-base) transparent;border-radius:50%;border-width:3px;border-style:solid;top:0;left:0;width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.bds-spinner::before{opacity:0.2;border-style:dashed;-webkit-animation:spin 0.8s linear infinite;animation:spin 0.8s linear infinite}.bds-spinner::after{-webkit-animation:draw-arc 0.8s linear infinite;animation:draw-arc 0.8s linear infinite}.bds-spinner--small{width:var(--boreal-layout-m);height:var(--boreal-layout-m)}.bds-spinner--medium{width:var(--boreal-layout-ml);height:var(--boreal-layout-ml)}.bds-spinner--large{width:var(--boreal-layout-xl);height:var(--boreal-layout-xl)}.bds-spinner__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap;border:0}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes draw-arc{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}60%{-webkit-transform:rotate(330deg);transform:rotate(330deg)}65%{-webkit-transform:rotate(335deg);transform:rotate(335deg)}90%{-webkit-transform:rotate(350deg);transform:rotate(350deg)}95%{-webkit-transform:rotate(355deg);transform:rotate(355deg)}98%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes draw-arc{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}60%{-webkit-transform:rotate(330deg);transform:rotate(330deg)}65%{-webkit-transform:rotate(335deg);transform:rotate(335deg)}90%{-webkit-transform:rotate(350deg);transform:rotate(350deg)}95%{-webkit-transform:rotate(355deg);transform:rotate(355deg)}98%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}'};var d=t("bds_spinner",function(){function t(t){e(this,t);this.size=s.SMALL;this.label="Loading"}t.prototype.checkPropValues=function(){i(Object.values(s),s.SMALL,this.el,"size")};t.prototype.componentWillLoad=function(){this.checkPropValues()};Object.defineProperty(t.prototype,"getClassMap",{get:function(){return{"bds-spinner":true,"bds-spinner--small":this.size===s.SMALL,"bds-spinner--medium":this.size===s.MEDIUM,"bds-spinner--large":this.size===s.LARGE}},enumerable:false,configurable:true});t.prototype.render=function(){return r(a,{key:"b38497732140f7e9dd155199c49f8365f00b004b",class:this.getClassMap,role:"status","aria-label":this.label,"aria-live":"polite","aria-busy":"true"},r("span",{key:"47befa4469a3cf297493c54bcb8acc5bca76fbd3",class:"bds-spinner__sr-only"},this.label))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{size:[{checkPropValues:0}]}},enumerable:false,configurable:true});return t}());d.style=o()}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as a,h as r,F as s,a as n,g as o}from"./p-D4EFsvs1.js";import{S as i}from"./p-BhTPNsBb.js";import{i as b,a as t}from"./p-CaHOghy5.js";const d=class{constructor(r){e(this,r),this.bdsClose=a(this,"bdsClose"),this.inheritedAttributes={},this.isClosing=!1,this.isOpen=!0,this.variant=i.INFO,this.closable=!1,this.closeButtonLabel="",this.handleAnimationEnd=()=>{this.isClosing&&requestAnimationFrame((()=>{this.isClosing=!1,this.isOpen=!1}))}}componentWillLoad(){this.inheritedAttributes={...t(this.el),...b(this.el)}}async closeBanner(){this.handleCloseBanner()}handleCloseBanner(e){void 0!==e&&e.preventDefault(),this.isClosing=!0,this.bdsClose.emit()}handleEscapeKeyClose(e){this.closable&&"Escape"===e.key&&this.handleCloseBanner()}getIconName(){const e={info:"bds-icon-info-circle-fill",success:"bds-icon-check-circle-fill",warning:"bds-icon-info-major-triangle-up-fill",danger:"bds-icon-alert-circle-fill"};return void 0===e[this.variant]?e.info:e[this.variant]}getAttributes(){return{...this.inheritedAttributes,role:"alert","aria-describedby":this.isOpen?"bds-banner__content":null,"aria-live":"polite","aria-hidden":`${!this.isOpen}`,tabIndex:this.isOpen?0:-1}}getStyles(){return{"bds-banner":!0,[`bds-banner--${this.variant}`]:!0,"bds-banner--closing":this.isClosing,"bds-banner--hidden":!this.isOpen}}renderCloseIcon(){return r("button",{role:"close-button",class:"bds-banner__close-icon","aria-label":this.closeButtonLabel,onClick:e=>this.handleCloseBanner(e)},r("em",{class:"bds-icon-close"}))}render(){const e=this.renderCloseIcon(),a=this.getStyles(),o=this.getIconName();return r(n,{key:"e53736fa4860cbbade794fdeae7f962b46de83cf",class:a,...this.getAttributes(),onTransitionEnd:this.handleAnimationEnd,onKeyDown:e=>this.handleEscapeKeyClose(e)},this.isOpen&&r(s,{key:"d2019d19a74602b73283cb8296b3acbdab1c5fa0"},r("div",{key:"f640c10fc372d8828a150b65751c757674fe2262",class:"bds-banner__vertical-line"}),r("div",{key:"b08ac47616e7abde824329f8c713537eef58dd75",class:"bds-banner__container"},r("div",{key:"2d168d2426ae68ee40547045ede9b780407034da",class:"bds-banner__status-icon",role:"status","aria-live":"polite","aria-label":`status ${this.variant}`},r("em",{key:"db079b36701222dd04f93030699264400714d6a6","aria-hidden":"true",class:o})),r("div",{key:"bf3425ec9ddaa61ddd42543dd9e469365f59b812",id:"bds-banner__content",class:"bds-banner__content"},r("div",{key:"b4b270a4007a3326570667736d05d2dbfacdec73",class:"bds-banner__title"},r("slot",{key:"cf18b1b2ef02370ae6266188143de16156a98b18",name:"title"})),r("div",{key:"5008494eb66789884751de0259f4310cc43071ea",class:"bds-banner__body"},r("slot",{key:"54d9b0af54ca113b894cde911287dee26619c5fd"})),r("div",{key:"748b00f58364df57f2ae26cc99d58bf291c1255f",class:"bds-banner__actions"},r("slot",{key:"10a0b7fa7219c0da1578b05016e563a9068935ce",name:"actions"}))),this.closable&&e)))}get el(){return o(this)}};d.style='@charset "UTF-8";.bds-banner{position:relative;display:-ms-flexbox;display:flex;border:var(--boreal-spacing-4xs) solid var(--boreal-stroke-info-base);border-radius:var(--boreal-radius-xs);border-left:0;font-family:var(--boreal-typography-font-family-primary);height:100%;-webkit-transition:all 0.3s ease-out;transition:all 0.3s ease-out}.bds-banner__vertical-line{width:var(--boreal-spacing-2xs);border-top-left-radius:var(--boreal-radius-xs);border-bottom-left-radius:var(--boreal-radius-xs);background-color:var(--boreal-stroke-info-base)}.bds-banner__container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:100%;gap:var(--boreal-spacing-xs);padding:var(--boreal-spacing-s)}.bds-banner__content{width:100%}.bds-banner__title{font-weight:var(--boreal-typography-font-weight-semibold);font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md)}.bds-banner__body{padding-top:var(--boreal-spacing-2xs);font-size:var(--boreal-typography-font-size-sm);line-height:var(--boreal-typography-line-height-sm)}.bds-banner__actions{padding-top:var(--boreal-spacing-s);min-height:0px}.bds-banner__actions:empty{display:none}.bds-banner__status-icon{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);margin-top:var(--boreal-spacing-3xs)}.bds-banner__close-icon{background:none;border:none;-ms-flex-item-align:start;align-self:start;font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-neutral-base);cursor:pointer}.bds-banner--info{border-color:var(--boreal-stroke-info-base);background-color:var(--boreal-ui-info-lighter)}.bds-banner--info .bds-banner__vertical-line{background-color:var(--boreal-stroke-info-base)}.bds-banner--info .bds-banner__status-icon{color:var(--boreal-stroke-info-base)}.bds-banner--success{border-color:var(--boreal-stroke-success-base);background-color:var(--boreal-ui-success-lighter)}.bds-banner--success .bds-banner__vertical-line{background-color:var(--boreal-stroke-success-base)}.bds-banner--success .bds-banner__status-icon{color:var(--boreal-stroke-success-base)}.bds-banner--warning{border-color:var(--boreal-stroke-warning);background-color:var(--boreal-ui-warning-lighter)}.bds-banner--warning .bds-banner__vertical-line{background-color:var(--boreal-stroke-warning)}.bds-banner--warning .bds-banner__status-icon{color:var(--boreal-stroke-warning)}.bds-banner--danger{border-color:var(--boreal-stroke-danger-base);background-color:var(--boreal-ui-danger-lighter)}.bds-banner--danger .bds-banner__vertical-line{background-color:var(--boreal-stroke-danger-base)}.bds-banner--danger .bds-banner__status-icon{color:var(--boreal-stroke-danger-base)}.bds-banner--closing{opacity:0;height:0}.bds-banner--hidden{display:none}';export{d as bds_banner}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as i,r as s,c as e,h as t,g as a}from"./p-D4EFsvs1.js";import{f as o}from"./p-DCXSEEVH.js";import{a as d}from"./p-CaHOghy5.js";import{v as l}from"./p-vfAIdwy0.js";import{S as r}from"./p-BhTPNsBb.js";const n=i=>{class s extends(o(i)){constructor(){super(...arguments),this.isClosing=!1}get hooks(){return{}}showElement(){this.dialogElement.showModal(),this.isVisible=!0}hideElement(){this.dialogElement.close(),this.isVisible=!1,this.isClosing=!1}closeElement(){this.preventClose||this.isClosing||(this.isClosing=!0,void 0!==this.hooks.onBeforeClose?this.onBeforeClose(this.dialogElement):this.hide())}toggle(){this.isVisible?this.closeElement():this.show()}onAfterShow(i){this.previousOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.hooks.onAfterShow?.(i)}onAfterHide(i){document.body.style.overflow=this.previousOverflow??"",this.hooks.onAfterHide?.(i)}onBeforeClose(i){this.hooks.onBeforeClose?.(i)}handleBackdropClick(i){this.backdropClose&&i.target===this.dialogElement&&(i.preventDefault(),i.stopImmediatePropagation(),this.closeElement())}handleKeydown(i){"Escape"===i.key&&(i.preventDefault(),i.stopImmediatePropagation()),this.escapeClose&&!i.repeat&&"Escape"===i.key&&this.closeElement()}addTransitionAnimation(i){this.dialogElement.classList.add(i)}removeTransitionAnimation(i){this.dialogElement.classList.remove(i)}}return s},h={SMALL:"sm",MEDIUM:"md",LARGE:"lg",FULL:"full"},b={...r,DEFAULT:"default"},c={DEFAULT:"default",HEADERLESS:"headerless",FOOTERLESS:"footerless"},g={DEFAULT:"default",NONE:"none"},p=class extends(i(n)){constructor(i){super(),s(this,i),this.bdsOpen=e(this,"bdsOpen"),this.bdsClose=e(this,"bdsClose"),this.bdsMaximize=e(this,"bdsMaximize"),this.inheritedAttributes={},this.active=!1,this.preventClose=!1,this.height="",this.width="",this.layout=c.DEFAULT,this.contentPadding=g.DEFAULT,this.backdropClose=!1,this.escapeClose=!1,this.size=h.MEDIUM,this.variant=b.DEFAULT,this.titleDialog="",this.maximizable=!1,this.closable=!1,this.onDialogTransitionEnd=i=>{i.target===this.dialogElement&&"::backdrop"!==i.pseudoElement&&(this.preventClose||this.isClosing&&this.hide())}}handleIsOpenChange(i){void 0!==this.dialogElement&&(i?this.show():this.closeElement())}componentWillLoad(){this.checkPropValues(),this.inheritedAttributes={...d(this.el)}}componentDidLoad(){this.active&&this.handleIsOpenChange(this.active)}checkPropValues(){l(Object.values(c),c.DEFAULT,this.el,"layout"),l(Object.values(g),g.DEFAULT,this.el,"contentPadding"),l(Object.values(h),h.MEDIUM,this.el,"size"),l(Object.values(b),b.DEFAULT,this.el,"variant")}handleMaximize(){this.bdsMaximize.emit()}async open(){this.show()}async close(){this.closeElement()}get isHeaderLeftVisible(){return this.isHeaderRightVisible||this.titleDialog}get isHeaderRightVisible(){return this.maximizable||this.closable}get hooks(){return{onAfterShow:()=>this.onOpenDialog(),onBeforeClose:()=>this.transitionBeforeClose(),onAfterHide:()=>this.resetComponent()}}transitionBeforeClose(){this.active=!1,this.removeTransitionAnimation("enter");const{transitionDuration:i}=getComputedStyle(this.dialogElement),s=parseFloat(i);i&&!Number.isNaN(s)&&s>0||this.hide()}onOpenDialog(){this.addTransitionAnimation("enter"),this.bdsOpen.emit()}resetComponent(){this.bdsClose.emit()}getVariantIcon(){const i={info:"bds-icon-info-circle-fill",success:"bds-icon-check-circle-fill",warning:"bds-icon-info-major-triangle-up-fill",danger:"bds-icon-alert-circle-fill",default:""};return void 0===i[this.variant]?i.default:i[this.variant]}getStyles(){return{"bds-dialog":!0,[`bds-dialog--${this.variant}`]:!0,[`bds-dialog--${this.size}`]:!0,"bds-dialog--custom-size":this.width.length>0||this.height.length>0}}getFixedSize(){return{...this.width&&{"--bds-dialog-width":`${this.width}px`},...this.height&&{"--bds-dialog-height":`${this.height}px`}}}getHeaderLeftElement(){return this.isHeaderLeftVisible&&t("div",{class:"bds-dialog__header-left"},this.getVariantIcon()&&t("em",{"aria-hidden":"true",class:`bds-dialog__variant-icon ${this.getVariantIcon()}`}),this.titleDialog&&t("span",{id:"bds-dialog-title",class:"bds-dialog__title"},this.titleDialog))}getHeaderRightElement(){return this.isHeaderRightVisible&&t("div",{class:"bds-dialog__header-right"},this.maximizable&&t("bds-button",{"aria-label":"maximize",type:"button",onBdsClick:()=>this.handleMaximize()},t("em",{class:"bds-icon-arrows-out"})),this.closable&&t("bds-button",{"aria-label":"close",type:"button",onBdsClick:()=>this.closeElement()},t("em",{class:"bds-icon-close"})))}render(){const i=this.inheritedAttributes;return t("dialog",{key:"0cc772f12b48d93bf8304597580157400846eb3a",onClick:i=>this.handleBackdropClick(i),onKeyDown:i=>this.handleKeydown(i),onTransitionEnd:this.onDialogTransitionEnd,ref:i=>{void 0!==i&&(this.dialogElement=i)},style:{...this.getFixedSize()},...this.titleDialog.length>0&&{"aria-labelledby":"bds-dialog-title"},...i},t("div",{key:"43fe62c1ddf4537008058d4e1e178a164db98d45",class:this.getStyles()},this.layout!==c.HEADERLESS&&t("div",{key:"2404606784ae0f915191d5994716eaef6682ba9f",class:"bds-dialog__header"},this.getHeaderLeftElement(),this.getHeaderRightElement()),t("div",{key:"fe00d0e4ebf041a2734d40245c098ecfd80deb0b",class:"bds-dialog__body "+("none"===this.contentPadding?"bds-dialog--no-padding":"")},t("slot",{key:"d00c4e8bd26f392003e0de17551177615d26b74a"})),this.layout!==c.FOOTERLESS&&t("div",{key:"ce63e120119b918e0ec1b1d55a71ce2ef11ed4d9",class:"bds-dialog__footer"},t("slot",{key:"ffd76edb35b7fcfd68861d0364e9f94059f5da92",name:"footer"}))))}get el(){return a(this)}static get watchers(){return{active:[{handleIsOpenChange:0}]}}};p.style='@charset "UTF-8";.bds-dialog{font-family:var(--boreal-typography-font-family-primary);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.bds-dialog__header{height:var(--boreal-spacing-4xl);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--boreal-spacing-s) var(--boreal-spacing-s) var(--boreal-spacing-s) var(--boreal-spacing-l)}.bds-dialog__header:empty{display:none}.bds-dialog__header-right,.bds-dialog__header-left{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs)}.bds-dialog__title{color:var(--boreal-text-default-light);font-size:var(--boreal-typography-font-size-md);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md)}.bds-dialog__body{height:100%;overflow-y:auto;padding:var(--boreal-spacing-s) var(--boreal-spacing-l)}.bds-dialog__footer{padding:var(--boreal-spacing-s) var(--boreal-spacing-xs)}.bds-dialog__body,.bds-dialog__footer{-webkit-box-shadow:0 var(--boreal-spacing-4xs) var(--boreal-spacing-4xs) 0 var(--boreal-stroke-default-light) inset;box-shadow:0 var(--boreal-spacing-4xs) var(--boreal-spacing-4xs) 0 var(--boreal-stroke-default-light) inset}.bds-dialog__body:empty,.bds-dialog__footer:empty{display:none}.bds-dialog--sm{width:min(448px, 100vw - var(--boreal-spacing-m) * 2)}.bds-dialog--md{width:min(640px, 100vw - var(--boreal-spacing-m) * 2)}.bds-dialog--lg{width:min(960px, 100vw - var(--boreal-spacing-m) * 2)}.bds-dialog--full{width:min(1280px, 100vw - var(--boreal-spacing-m) * 2);height:calc(100vh - var(--boreal-spacing-4xl))}.bds-dialog--custom-size{width:var(--bds-dialog-width, auto);height:var(--bds-dialog-height, auto)}.bds-dialog--info .bds-dialog__variant-icon{color:var(--boreal-icon-info-base)}.bds-dialog--warning .bds-dialog__variant-icon{color:var(--boreal-icon-warning-base)}.bds-dialog--danger .bds-dialog__variant-icon{color:var(--boreal-icon-danger-base)}.bds-dialog--success .bds-dialog__variant-icon{color:var(--boreal-icon-success-base)}.bds-dialog--no-padding{padding:0}bds-dialog dialog{border:none;border-radius:var(--boreal-radius-xs);background-color:var(--boreal-white);-webkit-box-shadow:0 8px 12px 0 rgba(19, 19, 22, 0.15);box-shadow:0 8px 12px 0 rgba(19, 19, 22, 0.15);-ms-flex-item-align:center;align-self:center;justify-self:center}bds-dialog dialog::-webkit-backdrop{opacity:0;-webkit-transition:opacity 0.3s ease;transition:opacity 0.3s ease}bds-dialog dialog::-ms-backdrop{opacity:0;-ms-transition:opacity 0.3s ease;transition:opacity 0.3s ease}bds-dialog dialog,bds-dialog dialog::backdrop{opacity:0;-webkit-transition:opacity 0.3s ease;transition:opacity 0.3s ease}bds-dialog dialog[open].enter::-webkit-backdrop{opacity:1}bds-dialog dialog[open].enter::-ms-backdrop{opacity:1}bds-dialog dialog[open].enter,bds-dialog dialog[open].enter::backdrop{opacity:1}';export{p as bds_dialog}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as e,r as o,h as t,a as r,g as a}from"./p-D4EFsvs1.js";import{a as s}from"./p-BKRyWlfr.js";import{B as i}from"./p-C8mRvnTA.js";import"./p-DCXSEEVH.js";const p=class extends(e(s)){constructor(e){super(),o(this,e),this.floatingOptions={},this.disabled=!1,this.width=320,this.header=!1,this.footer=!1,this.closable=!1,this.isVisible=!1}get options(){return{placement:this.floatingOptions.placement??"bottom",offset:this.floatingOptions.offset??16,arrow:this.floatingOptions.hideArrow?void 0:this.arrowElement,strategy:"fixed",shift:!0,flip:!0}}get popoverWidth(){return"full"===this.width?"100%":"auto"===this.width?"auto":`${this.width}px`}get hooks(){return{onPositionUpdate:e=>this.handlePosition(e),onBeforeShow:()=>!this.disabled,onAfterShow:()=>this.attachClickOutside(),onAfterHide:()=>this.detachClickOutside(),onBeforeLoad:()=>this.attachTrigger(),subscribeToTrigger:e=>this.subscribe(e)}}attachClickOutside(){!1!==this.floatingOptions?.closeOnClickOutside&&(this.boundClickOutside=e=>this.handleClickOutside(e),document.addEventListener("mousedown",this.boundClickOutside))}detachClickOutside(){!1!==this.floatingOptions?.closeOnClickOutside&&null!==this.boundClickOutside&&(document.removeEventListener("mousedown",this.boundClickOutside),this.boundClickOutside=()=>{})}setArrowPosition(e){if(e.middlewareData?.arrow&&!this.disabled&&this.arrowElement?.isConnected){const{x:o,y:t}=e.middlewareData.arrow;Object.assign(this.arrowElement.style,{left:null!=o?`${o}px`:"",top:null!=t?`${t}px`:""})}}handleClickOutside(e){const o=e.target,t=this.el.contains(o),r=this.floatingContent.contains(o)||this.floatingContent===o;t||r||this.hide()}handleContentClick(e){e.stopPropagation(),this.handleFloatingClick()}handleFloatingClick(){this.floatingOptions.closeOnClick&&this.hide()}handlePosition(e){if(this.floatingContent.setAttribute("data-placement",e.placement),this.setArrowPosition(e),"full"===this.width&&null!=this.triggerSlot){const e=(this.triggerSlot.parentElement??this.triggerSlot).getBoundingClientRect().width,o=this.floatingContent.getBoundingClientRect().width;Math.round(o)!==Math.round(e)&&(this.floatingContent.style.width=`${e}px`),this.updatePosition(this.triggerSlot,this.floatingContent,this.options,(e=>{this.floatingContent.setAttribute("data-placement",e.placement),this.setArrowPosition(e)}))}else"auto"===this.width&&(this.floatingContent.style.width="")}attachTrigger(){}subscribe(e){if(void 0===e)return;this.trigger=e,e.setAttribute("part","popover-trigger"),e.setAttribute("ariaDescribedBy","popover-content"),e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false");const o=e.closest("bds-button, bds-input, bds-select");if(null!=o){const e=o.querySelector("button, input");this.listenTarget=e??o,this.listenTarget.addEventListener("click",(e=>this.handleShow(e))),this.listenTarget.addEventListener("keydown",(e=>this.handleKeydown(e,(()=>this.showElement()),(()=>this.hideElement()))))}else this.trigger.addEventListener("click",(e=>this.handleShow(e))),this.trigger.addEventListener("keydown",(e=>this.handleKeydown(e,(()=>this.showElement()),(()=>this.hideElement()))))}handleShow(e){e.stopPropagation(),this.toggle()}get canShowArrow(){return!this.floatingOptions.hideArrow||!1}get getPlacement(){return this.floatingOptions.placement||"bottom"}get hasHeaderSlot(){return null!==this.el.querySelector('[slot="header"]')}get hasFooterSlot(){return null!==this.el.querySelector('[slot="footer"]')}disconnectedCallback(){this.listenTarget.removeEventListener("click",(e=>this.handleShow(e))),this.trigger.removeEventListener("click",(e=>this.handleShow(e)))}render(){return t(r,{key:"e00cacf63369fc0c409d003aaf495eeef1af424c"},t("div",{key:"0262e5dc2789d817c1332d12d598b7f6bb71a188",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:e=>this.handleContentClick(e),ref:e=>this.floatingContent=e},this.header&&t("div",{key:"63156ddf954e2c2b6452184f060ea502b9798d2f",class:"popover-header"},t("div",{key:"1183b88e3352637d9fce99d160c3d1df56b6010b",class:"popover-header__content"},t("span",{key:"48dcc7ac417bddfd9f19e388e32833d6930a566c",class:"popover-header__icon"},t("slot",{key:"a852564051439b09b30f8f0f054c29ccb6c4f722",name:"header-icon"})),t("span",{key:"aaaef66cd3454c4dd3bd4be7e0613187943f49b0",class:"popover-header__title"},t("slot",{key:"231224f3e9115e300998942aecfd07ae7b45dda7",name:"header-title"}))),this.closable&&t("bds-button",{key:"67ccc016aa89d0627812ad80ad1121bdb3e25692",class:"popover-header__close",size:i.SMALL,onBdsClick:()=>this.hide()},t("em",{key:"40cdcbf5e9ca75e55f45cdce3db6af2ed5088298",slot:"icon",class:"bds-icon-close"}))),this.canShowArrow&&t("div",{key:"a8bd41e82c5f4a0d7fe7a02287c29140490118e4",class:"popover-arrow",part:"arrow",ref:e=>this.arrowElement=e}),t("div",{key:"a205d8490fb192ebf0c75388775a8247b06d4431",class:"popover-content",tabIndex:-1,part:"popover-content"},t("slot",{key:"e3447f0022c0c78a28d176df5d85ff05daea8bd6"})),this.footer&&t("div",{key:"d16a93b4c702e342c89a7192b9a528f39e035601",class:"popover-footer",onClick:e=>e.stopPropagation()},t("slot",{key:"0c046c725771991b981b5baf090c1ecc023987c6",name:"footer-helper"}),t("slot",{key:"3f4391e420d411b0ae84df6fe29d4fc9e96fc206",name:"footer-button"}))))}get el(){return a(this)}};p.style='@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-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)}.popover[data-placement^=top] .popover-arrow{bottom:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=top] .popover-arrow::before{top:0}.popover[data-placement^=bottom] .popover-arrow{top:calc(var(--popover-arrow-size) / -2)}.popover[data-placement^=bottom] .popover-arrow::before{top: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}';export{p as bds_popover}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t))e[t]=n[t]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,n,r,a){function t(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,s){function i(e){try{b(a.next(e))}catch(e){s(e)}}function o(e){try{b(a["throw"](e))}catch(e){s(e)}}function b(e){e.done?r(e.value):t(e.value).then(i,o)}b((a=a.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},a,t,s,i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=o(0),i["throw"]=o(1),i["return"]=o(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(e){return function(n){return b([e,n])}}function b(o){if(a)throw new TypeError("Generator is already executing.");while(i&&(i=0,o[0]&&(r=0)),r)try{if(a=1,t&&(s=o[0]&2?t["return"]:o[0]?t["throw"]||((s=t["return"])&&s.call(t),0):t.next)&&!(s=s.call(t,o[1])).done)return s;if(t=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;t=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){r.label=o[1];break}if(o[0]===6&&r.label<s[1]){r.label=s[1];s=o;break}if(s&&r.label<s[2]){r.label=s[2];r.ops.push(o);break}if(s[2])r.ops.pop();r.trys.pop();continue}o=n.call(e,r)}catch(e){o=[6,e];t=0}finally{a=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-GjKJvOVG.system.js","./p-Dtp4O0H2.system.js","./p-BuxZeJbu.system.js"],(function(e){"use strict";var n,r,a,t,s,i,o,b,c;return{setters:[function(e){n=e.r;r=e.c;a=e.h;t=e.F;s=e.a;i=e.g},function(e){o=e.S},function(e){b=e.i;c=e.a}],execute:function(){var l=function(){return'@charset "UTF-8";.bds-banner{position:relative;display:-ms-flexbox;display:flex;border:var(--boreal-spacing-4xs) solid var(--boreal-stroke-info-base);border-radius:var(--boreal-radius-xs);border-left:0;font-family:var(--boreal-typography-font-family-primary);height:100%;-webkit-transition:all 0.3s ease-out;transition:all 0.3s ease-out}.bds-banner__vertical-line{width:var(--boreal-spacing-2xs);border-top-left-radius:var(--boreal-radius-xs);border-bottom-left-radius:var(--boreal-radius-xs);background-color:var(--boreal-stroke-info-base)}.bds-banner__container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:100%;gap:var(--boreal-spacing-xs);padding:var(--boreal-spacing-s)}.bds-banner__content{width:100%}.bds-banner__title{font-weight:var(--boreal-typography-font-weight-semibold);font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md)}.bds-banner__body{padding-top:var(--boreal-spacing-2xs);font-size:var(--boreal-typography-font-size-sm);line-height:var(--boreal-typography-line-height-sm)}.bds-banner__actions{padding-top:var(--boreal-spacing-s);min-height:0px}.bds-banner__actions:empty{display:none}.bds-banner__status-icon{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);margin-top:var(--boreal-spacing-3xs)}.bds-banner__close-icon{background:none;border:none;-ms-flex-item-align:start;align-self:start;font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-neutral-base);cursor:pointer}.bds-banner--info{border-color:var(--boreal-stroke-info-base);background-color:var(--boreal-ui-info-lighter)}.bds-banner--info .bds-banner__vertical-line{background-color:var(--boreal-stroke-info-base)}.bds-banner--info .bds-banner__status-icon{color:var(--boreal-stroke-info-base)}.bds-banner--success{border-color:var(--boreal-stroke-success-base);background-color:var(--boreal-ui-success-lighter)}.bds-banner--success .bds-banner__vertical-line{background-color:var(--boreal-stroke-success-base)}.bds-banner--success .bds-banner__status-icon{color:var(--boreal-stroke-success-base)}.bds-banner--warning{border-color:var(--boreal-stroke-warning);background-color:var(--boreal-ui-warning-lighter)}.bds-banner--warning .bds-banner__vertical-line{background-color:var(--boreal-stroke-warning)}.bds-banner--warning .bds-banner__status-icon{color:var(--boreal-stroke-warning)}.bds-banner--danger{border-color:var(--boreal-stroke-danger-base);background-color:var(--boreal-ui-danger-lighter)}.bds-banner--danger .bds-banner__vertical-line{background-color:var(--boreal-stroke-danger-base)}.bds-banner--danger .bds-banner__status-icon{color:var(--boreal-stroke-danger-base)}.bds-banner--closing{opacity:0;height:0}.bds-banner--hidden{display:none}'};var d=e("bds_banner",function(){function e(e){var a=this;n(this,e);this.bdsClose=r(this,"bdsClose");this.inheritedAttributes={};this.isClosing=false;this.isOpen=true;this.variant=o.INFO;this.closable=false;this.closeButtonLabel="";this.handleAnimationEnd=function(){if(a.isClosing)requestAnimationFrame((function(){a.isClosing=false;a.isOpen=false}))}}e.prototype.componentWillLoad=function(){this.inheritedAttributes=__assign(__assign({},c(this.el)),b(this.el))};e.prototype.closeBanner=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.handleCloseBanner();return[2]}))}))};e.prototype.handleCloseBanner=function(e){if(e!==undefined)e.preventDefault();this.isClosing=true;this.bdsClose.emit()};e.prototype.handleEscapeKeyClose=function(e){if(!this.closable)return;if(e.key==="Escape")this.handleCloseBanner()};e.prototype.getIconName=function(){var e={info:"bds-icon-info-circle-fill",success:"bds-icon-check-circle-fill",warning:"bds-icon-info-major-triangle-up-fill",danger:"bds-icon-alert-circle-fill"};if(e[this.variant]===undefined)return e["info"];return e[this.variant]};e.prototype.getAttributes=function(){return __assign(__assign({},this.inheritedAttributes),{role:"alert","aria-describedby":this.isOpen?"bds-banner__content":null,"aria-live":"polite","aria-hidden":"".concat(!this.isOpen),tabIndex:this.isOpen?0:-1})};e.prototype.getStyles=function(){var e;return e={"bds-banner":true},e["bds-banner--".concat(this.variant)]=true,e["bds-banner--closing"]=this.isClosing,e["bds-banner--hidden"]=!this.isOpen,e};e.prototype.renderCloseIcon=function(){var e=this;return a("button",{role:"close-button",class:"bds-banner__close-icon","aria-label":this.closeButtonLabel,onClick:function(n){return e.handleCloseBanner(n)}},a("em",{class:"bds-icon-close"}))};e.prototype.render=function(){var e=this;var n=this.renderCloseIcon();var r=this.getStyles();var i=this.getIconName();return a(s,__assign(__assign({key:"e53736fa4860cbbade794fdeae7f962b46de83cf",class:r},this.getAttributes()),{onTransitionEnd:this.handleAnimationEnd,onKeyDown:function(n){return e.handleEscapeKeyClose(n)}}),this.isOpen&&a(t,{key:"d2019d19a74602b73283cb8296b3acbdab1c5fa0"},a("div",{key:"f640c10fc372d8828a150b65751c757674fe2262",class:"bds-banner__vertical-line"}),a("div",{key:"b08ac47616e7abde824329f8c713537eef58dd75",class:"bds-banner__container"},a("div",{key:"2d168d2426ae68ee40547045ede9b780407034da",class:"bds-banner__status-icon",role:"status","aria-live":"polite","aria-label":"status ".concat(this.variant)},a("em",{key:"db079b36701222dd04f93030699264400714d6a6","aria-hidden":"true",class:i})),a("div",{key:"bf3425ec9ddaa61ddd42543dd9e469365f59b812",id:"bds-banner__content",class:"bds-banner__content"},a("div",{key:"b4b270a4007a3326570667736d05d2dbfacdec73",class:"bds-banner__title"},a("slot",{key:"cf18b1b2ef02370ae6266188143de16156a98b18",name:"title"})),a("div",{key:"5008494eb66789884751de0259f4310cc43071ea",class:"bds-banner__body"},a("slot",{key:"54d9b0af54ca113b894cde911287dee26619c5fd"})),a("div",{key:"748b00f58364df57f2ae26cc99d58bf291c1255f",class:"bds-banner__actions"},a("slot",{key:"10a0b7fa7219c0da1578b05016e563a9068935ce",name:"actions"}))),this.closable&&n)))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());d.style=l()}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(r,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))t[n]=r[n]};return t(r,n)};return function(r,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(r,n);function e(){this.constructor=r}r.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++){r=arguments[n];for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i))t[i]=r[i]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,r,n,e){function i(t){return t instanceof n?t:new n((function(r){r(t)}))}return new(n||(n=Promise))((function(n,a){function u(t){try{f(e.next(t))}catch(t){a(t)}}function o(t){try{f(e["throw"](t))}catch(t){a(t)}}function f(t){t.done?n(t.value):i(t.value).then(u,o)}f((e=e.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},e,i,a,u=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return u.next=o(0),u["throw"]=o(1),u["return"]=o(2),typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(r){return f([t,r])}}function f(o){if(e)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(n=0)),n)try{if(e=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=r.call(t,n)}catch(t){o=[6,t];i=0}finally{e=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,r){var n={};for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0)n[e]=t[e];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,e=Object.getOwnPropertySymbols(t);i<e.length;i++){if(r.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(t,e[i]))n[e[i]]=t[e[i]]}return n};var __spreadArray=this&&this.__spreadArray||function(t,r,n){if(n||arguments.length===2)for(var e=0,i=r.length,a;e<i;e++){if(a||!(e in r)){if(!a)a=Array.prototype.slice.call(r,0,e);a[e]=r[e]}}return t.concat(a||Array.prototype.slice.call(r))};System.register(["./p-BHYhd1yq.system.js"],(function(t){"use strict";var r;return{setters:[function(t){r=t.f}],execute:function(){var n=this;var e=Math.min;var i=Math.max;var a=Math.round;var u=Math.floor;var o=function(t){return{x:t,y:t}};var f={left:"right",right:"left",bottom:"top",top:"bottom"};var s={start:"end",end:"start"};function c(t,r,n){return i(t,e(r,n))}function v(t,r){return typeof t==="function"?t(r):t}function l(t){return t.split("-")[0]}function d(t){return t.split("-")[1]}function h(t){return t==="x"?"y":"x"}function _(t){return t==="y"?"height":"width"}var p=new Set(["top","bottom"]);function g(t){return p.has(l(t))?"y":"x"}function y(t){return h(g(t))}function m(t,r,n){if(n===void 0){n=false}var e=d(t);var i=y(t);var a=_(i);var u=i==="x"?e===(n?"end":"start")?"right":"left":e==="start"?"bottom":"top";if(r.reference[a]>r.floating[a]){u=j(u)}return[u,j(u)]}function w(t){var r=j(t);return[b(t),r,b(r)]}function b(t){return t.replace(/start|end/g,(function(t){return s[t]}))}var x=["left","right"];var A=["right","left"];var S=["top","bottom"];var O=["bottom","top"];function k(t,r,n){switch(t){case"top":case"bottom":if(n)return r?A:x;return r?x:A;case"left":case"right":return r?S:O;default:return[]}}function F(t,r,n,e){var i=d(t);var a=k(l(t),n==="start",e);if(i){a=a.map((function(t){return t+"-"+i}));if(r){a=a.concat(a.map(b))}}return a}function j(t){return t.replace(/left|right|bottom|top/g,(function(t){return f[t]}))}function R(t){return __assign({top:0,right:0,bottom:0,left:0},t)}function E(t){return typeof t!=="number"?R(t):{top:t,right:t,bottom:t,left:t}}function P(t){var r=t.x,n=t.y,e=t.width,i=t.height;return{width:e,height:i,top:n,left:r,right:r+e,bottom:n+i,x:r,y:n}}function T(t,r,n){var e=t.reference,i=t.floating;var a=g(r);var u=y(r);var o=_(u);var f=l(r);var s=a==="y";var c=e.x+e.width/2-i.width/2;var v=e.y+e.height/2-i.height/2;var h=e[o]/2-i[o]/2;var p;switch(f){case"top":p={x:c,y:e.y-i.height};break;case"bottom":p={x:c,y:e.y+e.height};break;case"right":p={x:e.x+e.width,y:v};break;case"left":p={x:e.x-i.width,y:v};break;default:p={x:e.x,y:e.y}}switch(d(r)){case"start":p[u]-=h*(n&&s?-1:1);break;case"end":p[u]+=h*(n&&s?-1:1);break}return p}function C(t,r){return __awaiter(this,void 0,void 0,(function(){var n,e,i,a,u,o,f,s,c,l,d,h,_,p,g,y,m,w,b,x,A,S,O,k,F,j,R,T,C,M,q,D,L,z;var I;return __generator(this,(function(B){switch(B.label){case 0:if(r===void 0){r={}}e=t.x,i=t.y,a=t.platform,u=t.rects,o=t.elements,f=t.strategy;s=v(r,t),c=s.boundary,l=c===void 0?"clippingAncestors":c,d=s.rootBoundary,h=d===void 0?"viewport":d,_=s.elementContext,p=_===void 0?"floating":_,g=s.altBoundary,y=g===void 0?false:g,m=s.padding,w=m===void 0?0:m;b=E(w);x=p==="floating"?"reference":"floating";A=o[y?x:p];O=P;F=(k=a).getClippingRect;I={};return[4,a.isElement==null?void 0:a.isElement(A)];case 1:if(!((n=B.sent())!=null?n:true))return[3,2];j=A;return[3,5];case 2:R=A.contextElement;if(R)return[3,4];return[4,a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)];case 3:R=B.sent();B.label=4;case 4:j=R;B.label=5;case 5:return[4,F.apply(k,[(I.element=j,I.boundary=l,I.rootBoundary=h,I.strategy=f,I)])];case 6:S=O.apply(void 0,[B.sent()]);T=p==="floating"?{x:e,y:i,width:u.floating.width,height:u.floating.height}:u.reference;return[4,a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)];case 7:C=B.sent();return[4,a.isElement==null?void 0:a.isElement(C)];case 8:if(!B.sent())return[3,10];return[4,a.getScale==null?void 0:a.getScale(C)];case 9:q=B.sent()||{x:1,y:1};return[3,11];case 10:q={x:1,y:1};B.label=11;case 11:M=q;L=P;if(!a.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,13];return[4,a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:T,offsetParent:C,strategy:f})];case 12:z=B.sent();return[3,14];case 13:z=T;B.label=14;case 14:D=L.apply(void 0,[z]);return[2,{top:(S.top-D.top+b.top)/M.y,bottom:(D.bottom-S.bottom+b.bottom)/M.y,left:(S.left-D.left+b.left)/M.x,right:(D.right-S.right+b.right)/M.x}]}}))}))}var M=function(t,r,e){return __awaiter(n,void 0,void 0,(function(){var n,i,a,u,o,f,s,c,v,l,d,h,_,p,g,y,m,w,b,x,A,S,O,k,F,j,R;var E,P;return __generator(this,(function(M){switch(M.label){case 0:n=e.placement,i=n===void 0?"bottom":n,a=e.strategy,u=a===void 0?"absolute":a,o=e.middleware,f=o===void 0?[]:o,s=e.platform;c=f.filter(Boolean);return[4,s.isRTL==null?void 0:s.isRTL(r)];case 1:v=M.sent();return[4,s.getElementRects({reference:t,floating:r,strategy:u})];case 2:l=M.sent();d=T(l,i,v),h=d.x,_=d.y;p=i;g={};y=0;m=0;M.label=3;case 3:if(!(m<c.length))return[3,11];b=c[m],x=b.name,A=b.fn;return[4,A({x:h,y:_,initialPlacement:i,placement:p,strategy:u,middlewareData:g,rects:l,platform:__assign(__assign({},s),{detectOverflow:(w=s.detectOverflow)!=null?w:C}),elements:{reference:t,floating:r}})];case 4:S=M.sent(),O=S.x,k=S.y,F=S.data,j=S.reset;h=O!=null?O:h;_=k!=null?k:_;g=__assign(__assign({},g),(E={},E[x]=__assign(__assign({},g[x]),F),E));if(!(j&&y<=50))return[3,10];y++;if(!(typeof j==="object"))return[3,9];if(j.placement){p=j.placement}if(!j.rects)return[3,8];if(!(j.rects===true))return[3,6];return[4,s.getElementRects({reference:t,floating:r,strategy:u})];case 5:R=M.sent();return[3,7];case 6:R=j.rects;M.label=7;case 7:l=R;M.label=8;case 8:P=T(l,p,v),h=P.x,_=P.y;M.label=9;case 9:m=-1;M.label=10;case 10:m++;return[3,3];case 11:return[2,{x:h,y:_,placement:p,strategy:u,middlewareData:g}]}}))}))};var q=function(t){return{name:"arrow",options:t,fn:function(r){return __awaiter(this,void 0,void 0,(function(){var n,i,a,u,o,f,s,l,h,p,g,m,w,b,x,A,S,O,k,F,j,R,P,T,C,M,q,D,L,z,I,B,H,N,G;var V,W;return __generator(this,(function(Y){switch(Y.label){case 0:n=r.x,i=r.y,a=r.placement,u=r.rects,o=r.platform,f=r.elements,s=r.middlewareData;l=v(t,r)||{},h=l.element,p=l.padding,g=p===void 0?0:p;if(h==null){return[2,{}]}m=E(g);w={x:n,y:i};b=y(a);x=_(b);return[4,o.getDimensions(h)];case 1:A=Y.sent();S=b==="y";O=S?"top":"left";k=S?"bottom":"right";F=S?"clientHeight":"clientWidth";j=u.reference[x]+u.reference[b]-w[b]-u.floating[x];R=w[b]-u.reference[b];return[4,o.getOffsetParent==null?void 0:o.getOffsetParent(h)];case 2:P=Y.sent();T=P?P[F]:0;C=!T;if(C)return[3,4];return[4,o.isElement==null?void 0:o.isElement(P)];case 3:C=!Y.sent();Y.label=4;case 4:if(C){T=f.floating[F]||u.floating[x]}M=j/2-R/2;q=T/2-A[x]/2-1;D=e(m[O],q);L=e(m[k],q);z=D;I=T-A[x]-L;B=T/2-A[x]/2+M;H=c(z,B,I);N=!s.arrow&&d(a)!=null&&B!==H&&u.reference[x]/2-(B<z?D:L)-A[x]/2<0;G=N?B<z?B-z:B-I:0;return[2,(V={},V[b]=w[b]+G,V.data=__assign((W={},W[b]=H,W.centerOffset=B-H-G,W),N&&{alignmentOffset:G}),V.reset=N,V)]}}))}))}}};var D=function(t){if(t===void 0){t={}}return{name:"flip",options:t,fn:function(r){return __awaiter(this,void 0,void 0,(function(){var n,e,i,a,u,o,f,s,c,d,h,_,p,y,b,x,A,S,O,k,R,E,P,T,C,M,q,D,L,z,I,B,H,N,G,V,W,Y,$,J;return __generator(this,(function(K){switch(K.label){case 0:i=r.placement,a=r.middlewareData,u=r.rects,o=r.initialPlacement,f=r.platform,s=r.elements;c=v(t,r),d=c.mainAxis,h=d===void 0?true:d,_=c.crossAxis,p=_===void 0?true:_,y=c.fallbackPlacements,b=c.fallbackStrategy,x=b===void 0?"bestFit":b,A=c.fallbackAxisSideDirection,S=A===void 0?"none":A,O=c.flipAlignment,k=O===void 0?true:O,R=__rest(c,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=a.arrow)!=null&&n.alignmentOffset){return[2,{}]}E=l(i);P=g(o);T=l(o)===o;return[4,f.isRTL==null?void 0:f.isRTL(s.floating)];case 1:C=K.sent();M=y||(T||!k?[j(o)]:w(o));q=S!=="none";if(!y&&q){M.push.apply(M,F(o,k,S,C))}D=__spreadArray([o],M,true);return[4,f.detectOverflow(r,R)];case 2:L=K.sent();z=[];I=((e=a.flip)==null?void 0:e.overflows)||[];if(h){z.push(L[E])}if(p){B=m(i,u,C);z.push(L[B[0]],L[B[1]])}I=__spreadArray(__spreadArray([],I,true),[{placement:i,overflows:z}],false);if(!z.every((function(t){return t<=0}))){G=(((H=a.flip)==null?void 0:H.index)||0)+1;V=D[G];if(V){W=p==="alignment"?P!==g(V):false;if(!W||I.every((function(t){return g(t.placement)===P?t.overflows[0]>0:true}))){return[2,{data:{index:G,overflows:I},reset:{placement:V}}]}}Y=(N=I.filter((function(t){return t.overflows[0]<=0})).sort((function(t,r){return t.overflows[1]-r.overflows[1]}))[0])==null?void 0:N.placement;if(!Y){switch(x){case"bestFit":{J=($=I.filter((function(t){if(q){var r=g(t.placement);return r===P||r==="y"}return true})).map((function(t){return[t.placement,t.overflows.filter((function(t){return t>0})).reduce((function(t,r){return t+r}),0)]})).sort((function(t,r){return t[1]-r[1]}))[0])==null?void 0:$[0];if(J){Y=J}break}case"initialPlacement":Y=o;break}}if(i!==Y){return[2,{reset:{placement:Y}}]}}return[2,{}]}}))}))}}};var L=new Set(["left","top"]);function z(t,r){return __awaiter(this,void 0,void 0,(function(){var n,e,i,a,u,o,f,s,c,h,_,p,y,m;return __generator(this,(function(w){switch(w.label){case 0:n=t.placement,e=t.platform,i=t.elements;return[4,e.isRTL==null?void 0:e.isRTL(i.floating)];case 1:a=w.sent();u=l(n);o=d(n);f=g(n)==="y";s=L.has(u)?-1:1;c=a&&f?-1:1;h=v(r,t);_=typeof h==="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis},p=_.mainAxis,y=_.crossAxis,m=_.alignmentAxis;if(o&&typeof m==="number"){y=o==="end"?m*-1:m}return[2,f?{x:y*c,y:p*s}:{x:p*s,y:y*c}]}}))}))}var I=function(t){if(t===void 0){t=0}return{name:"offset",options:t,fn:function(r){return __awaiter(this,void 0,void 0,(function(){var n,e,i,a,u,o,f;return __generator(this,(function(s){switch(s.label){case 0:i=r.x,a=r.y,u=r.placement,o=r.middlewareData;return[4,z(r,t)];case 1:f=s.sent();if(u===((n=o.offset)==null?void 0:n.placement)&&(e=o.arrow)!=null&&e.alignmentOffset){return[2,{}]}return[2,{x:i+f.x,y:a+f.y,data:__assign(__assign({},f),{placement:u})}]}}))}))}}};var B=function(t){if(t===void 0){t={}}return{name:"shift",options:t,fn:function(r){return __awaiter(this,void 0,void 0,(function(){var n,e,i,a,u,o,f,s,d,_,p,y,m,w,b,x,A,S,O,k,F,j,O,k,R,E,P;var T,C;return __generator(this,(function(M){switch(M.label){case 0:n=r.x,e=r.y,i=r.placement,a=r.platform;u=v(t,r),o=u.mainAxis,f=o===void 0?true:o,s=u.crossAxis,d=s===void 0?false:s,_=u.limiter,p=_===void 0?{fn:function(t){var r=t.x,n=t.y;return{x:r,y:n}}}:_,y=__rest(u,["mainAxis","crossAxis","limiter"]);m={x:n,y:e};return[4,a.detectOverflow(r,y)];case 1:w=M.sent();b=g(l(i));x=h(b);A=m[x];S=m[b];if(f){O=x==="y"?"top":"left";k=x==="y"?"bottom":"right";F=A+w[O];j=A-w[k];A=c(F,A,j)}if(d){O=b==="y"?"top":"left";k=b==="y"?"bottom":"right";R=S+w[O];E=S-w[k];S=c(R,S,E)}P=p.fn(__assign(__assign({},r),(T={},T[x]=A,T[b]=S,T)));return[2,__assign(__assign({},P),{data:{x:P.x-n,y:P.y-e,enabled:(C={},C[x]=f,C[b]=d,C)}})]}}))}))}}};function H(){return typeof window!=="undefined"}function N(t){if(W(t)){return(t.nodeName||"").toLowerCase()}return"#document"}function G(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function V(t){var r;return(r=(W(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function W(t){if(!H()){return false}return t instanceof Node||t instanceof G(t).Node}function Y(t){if(!H()){return false}return t instanceof Element||t instanceof G(t).Element}function $(t){if(!H()){return false}return t instanceof HTMLElement||t instanceof G(t).HTMLElement}function J(t){if(!H()||typeof ShadowRoot==="undefined"){return false}return t instanceof ShadowRoot||t instanceof G(t).ShadowRoot}var K=new Set(["inline","contents"]);function Q(t){var r=st(t),n=r.overflow,e=r.overflowX,i=r.overflowY,a=r.display;return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!K.has(a)}var U=new Set(["table","td","th"]);function X(t){return U.has(N(t))}var Z=[":popover-open",":modal"];function tt(t){return Z.some((function(r){try{return t.matches(r)}catch(t){return false}}))}var rt=["transform","translate","scale","rotate","perspective"];var nt=["transform","translate","scale","rotate","perspective","filter"];var et=["paint","layout","strict","content"];function it(t){var r=ut();var n=Y(t)?st(t):t;return rt.some((function(t){return n[t]?n[t]!=="none":false}))||(n.containerType?n.containerType!=="normal":false)||!r&&(n.backdropFilter?n.backdropFilter!=="none":false)||!r&&(n.filter?n.filter!=="none":false)||nt.some((function(t){return(n.willChange||"").includes(t)}))||et.some((function(t){return(n.contain||"").includes(t)}))}function at(t){var r=vt(t);while($(r)&&!ft(r)){if(it(r)){return r}else if(tt(r)){return null}r=vt(r)}return null}function ut(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}var ot=new Set(["html","body","#document"]);function ft(t){return ot.has(N(t))}function st(t){return G(t).getComputedStyle(t)}function ct(t){if(Y(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function vt(t){if(N(t)==="html"){return t}var r=t.assignedSlot||t.parentNode||J(t)&&t.host||V(t);return J(r)?r.host:r}function lt(t){var r=vt(t);if(ft(r)){return t.ownerDocument?t.ownerDocument.body:t.body}if($(r)&&Q(r)){return r}return lt(r)}function dt(t,r,n){var e;if(r===void 0){r=[]}if(n===void 0){n=true}var i=lt(t);var a=i===((e=t.ownerDocument)==null?void 0:e.body);var u=G(i);if(a){var o=ht(u);return r.concat(u,u.visualViewport||[],Q(i)?i:[],o&&n?dt(o):[])}return r.concat(i,dt(i,[],n))}function ht(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function _t(t){var r=st(t);var n=parseFloat(r.width)||0;var e=parseFloat(r.height)||0;var i=$(t);var u=i?t.offsetWidth:n;var o=i?t.offsetHeight:e;var f=a(n)!==u||a(e)!==o;if(f){n=u;e=o}return{width:n,height:e,$:f}}function pt(t){return!Y(t)?t.contextElement:t}function gt(t){var r=pt(t);if(!$(r)){return o(1)}var n=r.getBoundingClientRect();var e=_t(r),i=e.width,u=e.height,f=e.$;var s=(f?a(n.width):n.width)/i;var c=(f?a(n.height):n.height)/u;if(!s||!Number.isFinite(s)){s=1}if(!c||!Number.isFinite(c)){c=1}return{x:s,y:c}}var yt=o(0);function mt(t){var r=G(t);if(!ut()||!r.visualViewport){return yt}return{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function wt(t,r,n){if(r===void 0){r=false}if(!n||r&&n!==G(t)){return false}return r}function bt(t,r,n,e){if(r===void 0){r=false}if(n===void 0){n=false}var i=t.getBoundingClientRect();var a=pt(t);var u=o(1);if(r){if(e){if(Y(e)){u=gt(e)}}else{u=gt(t)}}var f=wt(a,n,e)?mt(a):o(0);var s=(i.left+f.x)/u.x;var c=(i.top+f.y)/u.y;var v=i.width/u.x;var l=i.height/u.y;if(a){var d=G(a);var h=e&&Y(e)?G(e):e;var _=d;var p=ht(_);while(p&&e&&h!==_){var g=gt(p);var y=p.getBoundingClientRect();var m=st(p);var w=y.left+(p.clientLeft+parseFloat(m.paddingLeft))*g.x;var b=y.top+(p.clientTop+parseFloat(m.paddingTop))*g.y;s*=g.x;c*=g.y;v*=g.x;l*=g.y;s+=w;c+=b;_=G(p);p=ht(_)}}return P({width:v,height:l,x:s,y:c})}function xt(t,r){var n=ct(t).scrollLeft;if(!r){return bt(V(t)).left+n}return r.left+n}function At(t,r){var n=t.getBoundingClientRect();var e=n.left+r.scrollLeft-xt(t,n);var i=n.top+r.scrollTop;return{x:e,y:i}}function St(t){var r=t.elements,n=t.rect,e=t.offsetParent,i=t.strategy;var a=i==="fixed";var u=V(e);var f=r?tt(r.floating):false;if(e===u||f&&a){return n}var s={scrollLeft:0,scrollTop:0};var c=o(1);var v=o(0);var l=$(e);if(l||!l&&!a){if(N(e)!=="body"||Q(u)){s=ct(e)}if($(e)){var d=bt(e);c=gt(e);v.x=d.x+e.clientLeft;v.y=d.y+e.clientTop}}var h=u&&!l&&!a?At(u,s):o(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+v.x+h.x,y:n.y*c.y-s.scrollTop*c.y+v.y+h.y}}function Ot(t){return Array.from(t.getClientRects())}function kt(t){var r=V(t);var n=ct(t);var e=t.ownerDocument.body;var a=i(r.scrollWidth,r.clientWidth,e.scrollWidth,e.clientWidth);var u=i(r.scrollHeight,r.clientHeight,e.scrollHeight,e.clientHeight);var o=-n.scrollLeft+xt(t);var f=-n.scrollTop;if(st(e).direction==="rtl"){o+=i(r.clientWidth,e.clientWidth)-a}return{width:a,height:u,x:o,y:f}}var Ft=25;function jt(t,r){var n=G(t);var e=V(t);var i=n.visualViewport;var a=e.clientWidth;var u=e.clientHeight;var o=0;var f=0;if(i){a=i.width;u=i.height;var s=ut();if(!s||s&&r==="fixed"){o=i.offsetLeft;f=i.offsetTop}}var c=xt(e);if(c<=0){var v=e.ownerDocument;var l=v.body;var d=getComputedStyle(l);var h=v.compatMode==="CSS1Compat"?parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0:0;var _=Math.abs(e.clientWidth-l.clientWidth-h);if(_<=Ft){a-=_}}else if(c<=Ft){a+=c}return{width:a,height:u,x:o,y:f}}var Rt=new Set(["absolute","fixed"]);function Et(t,r){var n=bt(t,true,r==="fixed");var e=n.top+t.clientTop;var i=n.left+t.clientLeft;var a=$(t)?gt(t):o(1);var u=t.clientWidth*a.x;var f=t.clientHeight*a.y;var s=i*a.x;var c=e*a.y;return{width:u,height:f,x:s,y:c}}function Pt(t,r,n){var e;if(r==="viewport"){e=jt(t,n)}else if(r==="document"){e=kt(V(t))}else if(Y(r)){e=Et(r,n)}else{var i=mt(t);e={x:r.x-i.x,y:r.y-i.y,width:r.width,height:r.height}}return P(e)}function Tt(t,r){var n=vt(t);if(n===r||!Y(n)||ft(n)){return false}return st(n).position==="fixed"||Tt(n,r)}function Ct(t,r){var n=r.get(t);if(n){return n}var e=dt(t,[],false).filter((function(t){return Y(t)&&N(t)!=="body"}));var i=null;var a=st(t).position==="fixed";var u=a?vt(t):t;while(Y(u)&&!ft(u)){var o=st(u);var f=it(u);if(!f&&o.position==="fixed"){i=null}var s=a?!f&&!i:!f&&o.position==="static"&&!!i&&Rt.has(i.position)||Q(u)&&!f&&Tt(t,u);if(s){e=e.filter((function(t){return t!==u}))}else{i=o}u=vt(u)}r.set(t,e);return e}function Mt(t){var r=t.element,n=t.boundary,a=t.rootBoundary,u=t.strategy;var o=n==="clippingAncestors"?tt(r)?[]:Ct(r,this._c):[].concat(n);var f=__spreadArray(__spreadArray([],o,true),[a],false);var s=f[0];var c=f.reduce((function(t,n){var a=Pt(r,n,u);t.top=i(a.top,t.top);t.right=e(a.right,t.right);t.bottom=e(a.bottom,t.bottom);t.left=i(a.left,t.left);return t}),Pt(r,s,u));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function qt(t){var r=_t(t),n=r.width,e=r.height;return{width:n,height:e}}function Dt(t,r,n){var e=$(r);var i=V(r);var a=n==="fixed";var u=bt(t,true,a,r);var f={scrollLeft:0,scrollTop:0};var s=o(0);function c(){s.x=xt(i)}if(e||!e&&!a){if(N(r)!=="body"||Q(i)){f=ct(r)}if(e){var v=bt(r,true,a,r);s.x=v.x+r.clientLeft;s.y=v.y+r.clientTop}else if(i){c()}}if(a&&!e&&i){c()}var l=i&&!e&&!a?At(i,f):o(0);var d=u.left+f.scrollLeft-s.x-l.x;var h=u.top+f.scrollTop-s.y-l.y;return{x:d,y:h,width:u.width,height:u.height}}function Lt(t){return st(t).position==="static"}function zt(t,r){if(!$(t)||st(t).position==="fixed"){return null}if(r){return r(t)}var n=t.offsetParent;if(V(t)===n){n=n.ownerDocument.body}return n}function It(t,r){var n=G(t);if(tt(t)){return n}if(!$(t)){var e=vt(t);while(e&&!ft(e)){if(Y(e)&&!Lt(e)){return e}e=vt(e)}return n}var i=zt(t,r);while(i&&X(i)&&Lt(i)){i=zt(i,r)}if(i&&ft(i)&&Lt(i)&&!it(i)){return n}return i||at(t)||n}var Bt=function(t){return __awaiter(this,void 0,void 0,(function(){var r,n,e,i,a;var u;return __generator(this,(function(o){switch(o.label){case 0:r=this.getOffsetParent||It;n=this.getDimensions;return[4,n(t.floating)];case 1:e=o.sent();u={};i=Dt;a=[t.reference];return[4,r(t.floating)];case 2:return[2,(u.reference=i.apply(void 0,a.concat([o.sent(),t.strategy])),u.floating={x:0,y:0,width:e.width,height:e.height},u)]}}))}))};function Ht(t){return st(t).direction==="rtl"}var Nt={convertOffsetParentRelativeRectToViewportRelativeRect:St,getDocumentElement:V,getClippingRect:Mt,getOffsetParent:It,getElementRects:Bt,getClientRects:Ot,getDimensions:qt,getScale:gt,isElement:Y,isRTL:Ht};function Gt(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function Vt(t,r){var n=null;var a;var o=V(t);function f(){var t;clearTimeout(a);(t=n)==null||t.disconnect();n=null}function s(c,v){if(c===void 0){c=false}if(v===void 0){v=1}f();var l=t.getBoundingClientRect();var d=l.left,h=l.top,_=l.width,p=l.height;if(!c){r()}if(!_||!p){return}var g=u(h);var y=u(o.clientWidth-(d+_));var m=u(o.clientHeight-(h+p));var w=u(d);var b=-g+"px "+-y+"px "+-m+"px "+-w+"px";var x={rootMargin:b,threshold:i(0,e(1,v))||1};var A=true;function S(r){var n=r[0].intersectionRatio;if(n!==v){if(!A){return s()}if(!n){a=setTimeout((function(){s(false,1e-7)}),1e3)}else{s(false,n)}}if(n===1&&!Gt(l,t.getBoundingClientRect())){s()}A=false}try{n=new IntersectionObserver(S,__assign(__assign({},x),{root:o.ownerDocument}))}catch(t){n=new IntersectionObserver(S,x)}n.observe(t)}s(true);return f}function Wt(t,r,n,e){if(e===void 0){e={}}var i=e.ancestorScroll,a=i===void 0?true:i,u=e.ancestorResize,o=u===void 0?true:u,f=e.elementResize,s=f===void 0?typeof ResizeObserver==="function":f,c=e.layoutShift,v=c===void 0?typeof IntersectionObserver==="function":c,l=e.animationFrame,d=l===void 0?false:l;var h=pt(t);var _=a||o?__spreadArray(__spreadArray([],h?dt(h):[],true),dt(r),true):[];_.forEach((function(t){a&&t.addEventListener("scroll",n,{passive:true});o&&t.addEventListener("resize",n)}));var p=h&&v?Vt(h,n):null;var g=-1;var y=null;if(s){y=new ResizeObserver((function(t){var e=t[0];if(e&&e.target===h&&y){y.unobserve(r);cancelAnimationFrame(g);g=requestAnimationFrame((function(){var t;(t=y)==null||t.observe(r)}))}n()}));if(h&&!d){y.observe(h)}y.observe(r)}var m;var w=d?bt(t):null;if(d){b()}function b(){var r=bt(t);if(w&&!Gt(w,r)){n()}w=r;m=requestAnimationFrame(b)}n();return function(){var t;_.forEach((function(t){a&&t.removeEventListener("scroll",n);o&&t.removeEventListener("resize",n)}));p==null||p();(t=y)==null||t.disconnect();y=null;if(d){cancelAnimationFrame(m)}}}var Yt=I;var $t=B;var Jt=D;var Kt=q;var Qt=function(t,r,n){var e=new Map;var i=__assign({platform:Nt},n);var a=__assign(__assign({},i.platform),{_c:e});return M(t,r,__assign(__assign({},i),{platform:a}))};var Ut=function(){function t(){}t.prototype.error=function(t,r){throw new Error("[".concat(t,"]: ").concat(r))};t.prototype.warn=function(t,r){console.warn("[".concat(t,"]: ").concat(r))};t.prototype.log=function(t,r){console.log("[".concat(t,"]: ").concat(r))};return t}();var Xt=function(){function t(t){this.logger=t}t.prototype.computePosition=function(t,r,n){return __awaiter(this,void 0,void 0,(function(){var e,i,a,u,o,f,s,c,v,l,d,h;var _=this;return __generator(this,(function(p){switch(p.label){case 0:if(t===undefined||t===null)this.logger.error("FloatingAdapter.computePosition","Reference element is required for positioning.");if(r===undefined||r===null)this.logger.error("FloatingAdapter.computePosition","Floating element is required for positioning.");e=n.placement,i=n.offset,a=n.flip,u=n.shift,o=n.arrow,f=n.strategy;s=[Yt(i)];if(a)s.push(Jt());if(u)s.push($t());if(o!==undefined||o!==null)s.push(Kt({element:o}));return[4,Qt(t,r,{placement:e,middleware:s,strategy:f}).catch((function(t){_.logger.error("FloatingAdapter.computePosition",t.message)})).then((function(t){return t}))];case 1:c=p.sent();v=c.x,l=c.y,d=c.placement,h=c.middlewareData;return[2,{x:v,y:l,placement:d,middlewareData:h}]}}))}))};t.prototype.applyPosition=function(t,r){if(t===undefined||t===null)this.logger.error("FloatingAdapter.applyPosition","Element is required to apply positioning.");t.style.left="".concat(r.x,"px");t.style.top="".concat(r.y,"px")};return t}();var Zt=function(t){__extends(r,t);function r(){var r=new Ut;return t.call(this,r)||this}return r}(Xt);var tr={Focus:"focus",Blur:"blur"};var rr={Enter:{key:"Enter"},Escape:{key:"Escape"}};var nr=t("a",(function(t){var n=function(t){__extends(r,t);function r(){return t.call(this)||this}Object.defineProperty(r.prototype,"options",{get:function(){return{placement:"bottom",offset:8,strategy:"fixed"}},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"hooks",{get:function(){return{}},enumerable:false,configurable:true});r.prototype.showElement=function(){var t=this;this.floatingContent.showPopover();this.isVisible=true;this.startAutoUpdate(this.triggerSlot,this.floatingContent,this.options,(function(r){var n,e;(e=(n=t.hooks).onPositionUpdate)===null||e===void 0?void 0:e.call(n,r)}))};r.prototype.onBeforeShow=function(r){if(this.triggerSlot===null||this.triggerSlot===undefined){this.logger.error("AnchoredMixin.show","triggerSlot is required");return false}return t.prototype.onBeforeShow.call(this,r)};r.prototype.hideElement=function(){var t;this.stopAutoUpdate();(t=this.floatingContent)===null||t===void 0?void 0:t.hidePopover();this.isVisible=false};r.prototype.handleSlotChange=function(t,r,n){var e=t.target;if(this.previousTrigger!==undefined&&this.previousTrigger!==null){this.detachTriggerListeners(this.previousTrigger,r,n)}if(e!==undefined&&e!==null){this.attachTriggerListeners(e,r,n);this.previousTrigger=e}};r.prototype.handleKeydown=function(t,r,n){if(t.key===rr.Enter.key||t.key===" ")r();if(t.key===rr.Escape.key)n()};r.prototype.updatePosition=function(t,r,n,e){return __awaiter(this,void 0,void 0,(function(){var i;var a,u,o;return __generator(this,(function(f){switch(f.label){case 0:return[4,this.positionEngine.computePosition(t,r,{placement:n.placement,offset:n.offset,flip:(a=n.flip)!==null&&a!==void 0?a:true,shift:(u=n.shift)!==null&&u!==void 0?u:true,arrow:n.arrow,strategy:(o=n.strategy)!==null&&o!==void 0?o:"fixed"})];case 1:i=f.sent();this.positionEngine.applyPosition(r,i);e===null||e===void 0?void 0:e(i);return[2,i]}}))}))};r.prototype.startAutoUpdate=function(t,r,n,e){var i=this;var a=function(){void i.updatePosition(t,r,n,e)};a();this.cleanupAutoUpdate=Wt(t,r,a,{elementResize:true,layoutShift:true})};r.prototype.stopAutoUpdate=function(){var t;(t=this.cleanupAutoUpdate)===null||t===void 0?void 0:t.call(this);this.cleanupAutoUpdate=undefined};r.prototype.attachTriggerListeners=function(t,r,n){t.addEventListener(tr.Focus,r);t.addEventListener(tr.Blur,n)};r.prototype.detachTriggerListeners=function(t,r,n){t.removeEventListener(tr.Focus,r);t.removeEventListener(tr.Blur,n)};r.prototype.floatingDisconnect=function(t,r){if(this.previousTrigger!==undefined&&this.previousTrigger!==null){this.detachTriggerListeners(this.previousTrigger,t,r)}this.stopAutoUpdate()};r.prototype.subscribeToTrigger=function(t){if(this.hooks.subscribeToTrigger!==undefined)this.hooks.subscribeToTrigger(t)};r.prototype.onBeforeLoad=function(){var t=this.el.parentElement;if(t===null)return;var r=t.querySelector("[bds-tooltip], [bds-popover]")||t;if(r.isConnected){this.triggerSlot=r;this.subscribeToTrigger(r)}};r.prototype.componentDidLoad=function(){var t,r;this.onBeforeLoad();(r=(t=this.hooks).onBeforeLoad)===null||r===void 0?void 0:r.call(t,this.el)};r.prototype.componentWillLoad=function(){this.toggle=this.toggle.bind(this);this.show=this.show.bind(this);this.hide=this.hide.bind(this);this.positionEngine=new Zt;this.logger=new Ut;this.cleanupAutoUpdate=undefined;this.previousTrigger=undefined};r.prototype.disconnectedCallback=function(){var t=this;if(this.previousTrigger!==undefined&&this.previousTrigger!==null){this.floatingDisconnect((function(){return t.show()}),(function(){return t.hide()}))}this.stopAutoUpdate();this.hide()};Object.defineProperty(r,"elementRef",{get:function(){return"el"},enumerable:false,configurable:true});return r}(r(t));return n}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as t}from"./p-DCXSEEVH.js";const n=Math.min,e=Math.max,o=Math.round,i=Math.floor,r=t=>({x:t,y:t}),s={left:"right",right:"left",bottom:"top",top:"bottom"},l={start:"end",end:"start"};function a(t,o,i){return e(t,n(o,i))}function c(t,n){return"function"==typeof t?t(n):t}function u(t){return t.split("-")[0]}function f(t){return t.split("-")[1]}function h(t){return"x"===t?"y":"x"}function d(t){return"y"===t?"height":"width"}const p=new Set(["top","bottom"]);function m(t){return p.has(u(t))?"y":"x"}function y(t){return h(m(t))}function g(t){return t.replace(/start|end/g,(t=>l[t]))}const w=["left","right"],x=["right","left"],v=["top","bottom"],b=["bottom","top"];function A(t){return t.replace(/left|right|bottom|top/g,(t=>s[t]))}function S(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function F(t){const{x:n,y:e,width:o,height:i}=t;return{width:o,height:i,top:e,left:n,right:n+o,bottom:e+i,x:n,y:e}}function R(t,n,e){let{reference:o,floating:i}=t;const r=m(n),s=y(n),l=d(s),a=u(n),c="y"===r,h=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,g=o[l]/2-i[l]/2;let w;switch(a){case"top":w={x:h,y:o.y-i.height};break;case"bottom":w={x:h,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:p};break;case"left":w={x:o.x-i.width,y:p};break;default:w={x:o.x,y:o.y}}switch(f(n)){case"start":w[s]-=g*(e&&c?-1:1);break;case"end":w[s]+=g*(e&&c?-1:1)}return w}async function P(t,n){var e;void 0===n&&(n={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=c(n,t),m=S(p),y=l[d?"floating"===h?"reference":"floating":h],g=F(await r.getClippingRect({element:null==(e=await(null==r.isElement?void 0:r.isElement(y)))||e?y:y.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:a})),w="floating"===h?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,x=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),v=await(null==r.isElement?void 0:r.isElement(x))&&await(null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},b=F(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:x,strategy:a}):w);return{top:(g.top-b.top+m.top)/v.y,bottom:(b.bottom-g.bottom+m.bottom)/v.y,left:(g.left-b.left+m.left)/v.x,right:(b.right-g.right+m.right)/v.x}}const k=new Set(["left","top"]);function D(){return"undefined"!=typeof window}function E(t){return L(t)?(t.nodeName||"").toLowerCase():"#document"}function T(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function C(t){var n;return null==(n=(L(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function L(t){return!!D()&&(t instanceof Node||t instanceof T(t).Node)}function O(t){return!!D()&&(t instanceof Element||t instanceof T(t).Element)}function $(t){return!!D()&&(t instanceof HTMLElement||t instanceof T(t).HTMLElement)}function M(t){return!(!D()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof T(t).ShadowRoot)}const z=new Set(["inline","contents"]);function B(t){const{overflow:n,overflowX:e,overflowY:o,display:i}=_(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!z.has(i)}const q=new Set(["table","td","th"]);function j(t){return q.has(E(t))}const H=[":popover-open",":modal"];function I(t){return H.some((n=>{try{return t.matches(n)}catch(t){return!1}}))}const N=["transform","translate","scale","rotate","perspective"],U=["transform","translate","scale","rotate","perspective","filter"],V=["paint","layout","strict","content"];function W(t){const n=X(),e=O(t)?_(t):t;return N.some((t=>!!e[t]&&"none"!==e[t]))||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||U.some((t=>(e.willChange||"").includes(t)))||V.some((t=>(e.contain||"").includes(t)))}function X(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const K=new Set(["html","body","#document"]);function Y(t){return K.has(E(t))}function _(t){return T(t).getComputedStyle(t)}function G(t){return O(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if("html"===E(t))return t;const n=t.assignedSlot||t.parentNode||M(t)&&t.host||C(t);return M(n)?n.host:n}function Q(t){const n=J(t);return Y(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&B(n)?n:Q(n)}function Z(t,n,e){var o;void 0===n&&(n=[]),void 0===e&&(e=!0);const i=Q(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),s=T(i);if(r){const t=tt(s);return n.concat(s,s.visualViewport||[],B(i)?i:[],t&&e?Z(t):[])}return n.concat(i,Z(i,[],e))}function tt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function nt(t){const n=_(t);let e=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const r=$(t),s=r?t.offsetWidth:e,l=r?t.offsetHeight:i,a=o(e)!==s||o(i)!==l;return a&&(e=s,i=l),{width:e,height:i,$:a}}function et(t){return O(t)?t:t.contextElement}function ot(t){const n=et(t);if(!$(n))return r(1);const e=n.getBoundingClientRect(),{width:i,height:s,$:l}=nt(n);let a=(l?o(e.width):e.width)/i,c=(l?o(e.height):e.height)/s;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const it=r(0);function rt(t){const n=T(t);return X()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:it}function st(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),s=et(t);let l=r(1);n&&(o?O(o)&&(l=ot(o)):l=ot(t));const a=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==T(t))&&n}(s,e,o)?rt(s):r(0);let c=(i.left+a.x)/l.x,u=(i.top+a.y)/l.y,f=i.width/l.x,h=i.height/l.y;if(s){const t=T(s),n=o&&O(o)?T(o):o;let e=t,i=tt(e);for(;i&&o&&n!==e;){const t=ot(i),n=i.getBoundingClientRect(),o=_(i),r=n.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,s=n.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,u*=t.y,f*=t.x,h*=t.y,c+=r,u+=s,e=T(i),i=tt(e)}}return F({width:f,height:h,x:c,y:u})}function lt(t,n){const e=G(t).scrollLeft;return n?n.left+e:st(C(t)).left+e}function at(t,n){const e=t.getBoundingClientRect();return{x:e.left+n.scrollLeft-lt(t,e),y:e.top+n.scrollTop}}const ct=new Set(["absolute","fixed"]);function ut(t,n,o){let i;if("viewport"===n)i=function(t,n){const e=T(t),o=C(t),i=e.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,a=0;if(i){r=i.width,s=i.height;const t=X();(!t||t&&"fixed"===n)&&(l=i.offsetLeft,a=i.offsetTop)}const c=lt(o);if(c<=0){const t=o.ownerDocument,n=t.body,e=getComputedStyle(n),i="CSS1Compat"===t.compatMode&&parseFloat(e.marginLeft)+parseFloat(e.marginRight)||0,s=Math.abs(o.clientWidth-n.clientWidth-i);s<=25&&(r-=s)}else c<=25&&(r+=c);return{width:r,height:s,x:l,y:a}}(t,o);else if("document"===n)i=function(t){const n=C(t),o=G(t),i=t.ownerDocument.body,r=e(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),s=e(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let l=-o.scrollLeft+lt(t);const a=-o.scrollTop;return"rtl"===_(i).direction&&(l+=e(n.clientWidth,i.clientWidth)-r),{width:r,height:s,x:l,y:a}}(C(t));else if(O(n))i=function(t,n){const e=st(t,!0,"fixed"===n),o=e.top+t.clientTop,i=e.left+t.clientLeft,s=$(t)?ot(t):r(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:i*s.x,y:o*s.y}}(n,o);else{const e=rt(t);i={x:n.x-e.x,y:n.y-e.y,width:n.width,height:n.height}}return F(i)}function ft(t,n){const e=J(t);return!(e===n||!O(e)||Y(e))&&("fixed"===_(e).position||ft(e,n))}function ht(t,n,e){const o=$(n),i=C(n),s="fixed"===e,l=st(t,!0,s,n);let a={scrollLeft:0,scrollTop:0};const c=r(0);function u(){c.x=lt(i)}if(o||!o&&!s)if(("body"!==E(n)||B(i))&&(a=G(n)),o){const t=st(n,!0,s,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else i&&u();s&&!o&&i&&u();const f=!i||o||s?r(0):at(i,a);return{x:l.left+a.scrollLeft-c.x-f.x,y:l.top+a.scrollTop-c.y-f.y,width:l.width,height:l.height}}function dt(t){return"static"===_(t).position}function pt(t,n){if(!$(t)||"fixed"===_(t).position)return null;if(n)return n(t);let e=t.offsetParent;return C(t)===e&&(e=e.ownerDocument.body),e}function mt(t,n){const e=T(t);if(I(t))return e;if(!$(t)){let n=J(t);for(;n&&!Y(n);){if(O(n)&&!dt(n))return n;n=J(n)}return e}let o=pt(t,n);for(;o&&j(o)&&dt(o);)o=pt(o,n);return o&&Y(o)&&dt(o)&&!W(o)?e:o||function(t){let n=J(t);for(;$(n)&&!Y(n);){if(W(n))return n;if(I(n))return null;n=J(n)}return null}(t)||e}const yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:o,strategy:i}=t;const s="fixed"===i,l=C(o),a=!!n&&I(n.floating);if(o===l||a&&s)return e;let c={scrollLeft:0,scrollTop:0},u=r(1);const f=r(0),h=$(o);if((h||!h&&!s)&&(("body"!==E(o)||B(l))&&(c=G(o)),$(o))){const t=st(o);u=ot(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const d=!l||h||s?r(0):at(l,c);return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-c.scrollLeft*u.x+f.x+d.x,y:e.y*u.y-c.scrollTop*u.y+f.y+d.y}},getDocumentElement:C,getClippingRect:function(t){let{element:o,boundary:i,rootBoundary:r,strategy:s}=t;const l=[..."clippingAncestors"===i?I(o)?[]:function(t,n){const e=n.get(t);if(e)return e;let o=Z(t,[],!1).filter((t=>O(t)&&"body"!==E(t))),i=null;const r="fixed"===_(t).position;let s=r?J(t):t;for(;O(s)&&!Y(s);){const n=_(s),e=W(s);e||"fixed"!==n.position||(i=null),(r?!e&&!i:!e&&"static"===n.position&&i&&ct.has(i.position)||B(s)&&!e&&ft(t,s))?o=o.filter((t=>t!==s)):i=n,s=J(s)}return n.set(t,o),o}(o,this._c):[].concat(i),r],a=l.reduce(((t,i)=>{const r=ut(o,i,s);return t.top=e(r.top,t.top),t.right=n(r.right,t.right),t.bottom=n(r.bottom,t.bottom),t.left=e(r.left,t.left),t}),ut(o,l[0],s));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:mt,getElementRects:async function(t){const n=this.getOffsetParent||mt,e=this.getDimensions,o=await e(t.floating);return{reference:ht(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:n,height:e}=nt(t);return{width:n,height:e}},getScale:ot,isElement:O,isRTL:function(t){return"rtl"===_(t).direction}};function gt(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}const wt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:i,y:r,placement:s,middlewareData:l}=n,a=await async function(t,n){const{placement:e,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),s=u(e),l=f(e),a="y"===m(e),h=k.has(s)?-1:1,d=r&&a?-1:1,p=c(n,t);let{mainAxis:y,crossAxis:g,alignmentAxis:w}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&"number"==typeof w&&(g="end"===l?-1*w:w),a?{x:g*d,y:y*h}:{x:y*h,y:g*d}}(n,t);return s===(null==(e=l.offset)?void 0:e.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:s}}}}},xt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:l,platform:a,elements:h}=n,{mainAxis:p=!0,crossAxis:S=!0,fallbackPlacements:F,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:k=!0,...D}=c(t,n);if(null!=(e=r.arrow)&&e.alignmentOffset)return{};const E=u(i),T=m(l),C=u(l)===l,L=await(null==a.isRTL?void 0:a.isRTL(h.floating)),O=F||(C||!k?[A(l)]:function(t){const n=A(t);return[g(t),n,g(n)]}(l)),$="none"!==P;!F&&$&&O.push(...function(t,n,e,o){const i=f(t);let r=function(t,n,e){switch(t){case"top":case"bottom":return e?n?x:w:n?w:x;case"left":case"right":return n?v:b;default:return[]}}(u(t),"start"===e,o);return i&&(r=r.map((t=>t+"-"+i)),n&&(r=r.concat(r.map(g)))),r}(l,k,P,L));const M=[l,...O],z=await a.detectOverflow(n,D),B=[];let q=(null==(o=r.flip)?void 0:o.overflows)||[];if(p&&B.push(z[E]),S){const t=function(t,n,e){void 0===e&&(e=!1);const o=f(t),i=y(t),r=d(i);let s="x"===i?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[r]>n.floating[r]&&(s=A(s)),[s,A(s)]}(i,s,L);B.push(z[t[0]],z[t[1]])}if(q=[...q,{placement:i,overflows:B}],!B.every((t=>t<=0))){var j,H;const t=((null==(j=r.flip)?void 0:j.index)||0)+1,n=M[t];if(n&&("alignment"!==S||T===m(n)||q.every((t=>m(t.placement)!==T||t.overflows[0]>0))))return{data:{index:t,overflows:q},reset:{placement:n}};let e=null==(H=q.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:H.placement;if(!e)switch(R){case"bestFit":{var I;const t=null==(I=q.filter((t=>{if($){const n=m(t.placement);return n===T||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:I[0];t&&(e=t);break}case"initialPlacement":e=l}if(i!==e)return{reset:{placement:e}}}return{}}}};class vt{error(t,n){throw new Error(`[${t}]: ${n}`)}warn(t,n){console.warn(`[${t}]: ${n}`)}log(t,n){console.log(`[${t}]: ${n}`)}}class bt{constructor(t){this.logger=t}async computePosition(t,e,o){null==t&&this.logger.error("FloatingAdapter.computePosition","Reference element is required for positioning."),null==e&&this.logger.error("FloatingAdapter.computePosition","Floating element is required for positioning.");const{placement:i,offset:r,flip:s,shift:l,arrow:p,strategy:g}=o,w=[wt(r)];s&&w.push(xt()),l&&w.push(function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:o,placement:i,platform:r}=n,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...d}=c(t,n),p={x:e,y:o},y=await r.detectOverflow(n,d),g=m(u(i)),w=h(g);let x=p[w],v=p[g];s&&(x=a(x+y["y"===w?"top":"left"],x,x-y["y"===w?"bottom":"right"])),l&&(v=a(v+y["y"===g?"top":"left"],v,v-y["y"===g?"bottom":"right"]));const b=f.fn({...n,[w]:x,[g]:v});return{...b,data:{x:b.x-e,y:b.y-o,enabled:{[w]:s,[g]:l}}}}}}()),void 0===p&&null===p||w.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:r,rects:s,platform:l,elements:u,middlewareData:h}=e,{element:p,padding:m=0}=c(t,e)||{};if(null==p)return{};const g=S(m),w={x:o,y:i},x=y(r),v=d(x),b=await l.getDimensions(p),A="y"===x,F=A?"top":"left",R=A?"bottom":"right",P=A?"clientHeight":"clientWidth",k=s.reference[v]+s.reference[x]-w[x]-s.floating[v],D=w[x]-s.reference[x],E=await(null==l.getOffsetParent?void 0:l.getOffsetParent(p));let T=E?E[P]:0;T&&await(null==l.isElement?void 0:l.isElement(E))||(T=u.floating[P]||s.floating[v]);const C=k/2-D/2,L=T/2-b[v]/2-1,O=n(g[F],L),$=n(g[R],L),M=O,z=T-b[v]-$,B=T/2-b[v]/2+C,q=a(M,B,z),j=!h.arrow&&null!=f(r)&&B!==q&&s.reference[v]/2-(B<M?O:$)-b[v]/2<0,H=j?B<M?B-M:B-z:0;return{[x]:w[x]+H,data:{[x]:q,centerOffset:B-q-H,...j&&{alignmentOffset:H}},reset:j}}}))({element:p}));const x=await((t,n,e)=>{const o=new Map,i={platform:yt,...e},r={...i.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=e,l=r.filter(Boolean),a=await(null==s.isRTL?void 0:s.isRTL(n));let c=await s.getElementRects({reference:t,floating:n,strategy:i}),{x:u,y:f}=R(c,o,a),h=o,d={},p=0;for(let e=0;e<l.length;e++){var m;const{name:r,fn:y}=l[e],{x:g,y:w,data:x,reset:v}=await y({x:u,y:f,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:c,platform:{...s,detectOverflow:null!=(m=s.detectOverflow)?m:P},elements:{reference:t,floating:n}});u=null!=g?g:u,f=null!=w?w:f,d={...d,[r]:{...d[r],...x}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(c=!0===v.rects?await s.getElementRects({reference:t,floating:n,strategy:i}):v.rects),({x:u,y:f}=R(c,h,a))),e=-1)}return{x:u,y:f,placement:h,strategy:i,middlewareData:d}})(t,n,{...i,platform:r})})(t,e,{placement:i,middleware:w,strategy:g}).catch((t=>{this.logger.error("FloatingAdapter.computePosition",t.message)})).then((t=>t)),{x:v,y:b,placement:A,middlewareData:F}=x;return{x:v,y:b,placement:A,middlewareData:F}}applyPosition(t,n){null==t&&this.logger.error("FloatingAdapter.applyPosition","Element is required to apply positioning."),t.style.left=`${n.x}px`,t.style.top=`${n.y}px`}}class At extends bt{constructor(){super(new vt)}}const St="focus",Ft="blur",Rt="Enter",Pt="Escape",kt=o=>{class r extends(t(o)){constructor(){super()}get options(){return{placement:"bottom",offset:8,strategy:"fixed"}}get hooks(){return{}}showElement(){this.floatingContent.showPopover(),this.isVisible=!0,this.startAutoUpdate(this.triggerSlot,this.floatingContent,this.options,(t=>{this.hooks.onPositionUpdate?.(t)}))}onBeforeShow(t){return null==this.triggerSlot?(this.logger.error("AnchoredMixin.show","triggerSlot is required"),!1):super.onBeforeShow(t)}hideElement(){this.stopAutoUpdate(),this.floatingContent?.hidePopover(),this.isVisible=!1}handleSlotChange(t,n,e){const o=t.target;null!=this.previousTrigger&&this.detachTriggerListeners(this.previousTrigger,n,e),null!=o&&(this.attachTriggerListeners(o,n,e),this.previousTrigger=o)}handleKeydown(t,n,e){t.key!==Rt&&" "!==t.key||n(),t.key===Pt&&e()}async updatePosition(t,n,e,o){const i=await this.positionEngine.computePosition(t,n,{placement:e.placement,offset:e.offset,flip:e.flip??!0,shift:e.shift??!0,arrow:e.arrow,strategy:e.strategy??"fixed"});return this.positionEngine.applyPosition(n,i),o?.(i),i}startAutoUpdate(t,o,r,s){const l=()=>{this.updatePosition(t,o,r,s)};l(),this.cleanupAutoUpdate=function(t,o,r,s){void 0===s&&(s={});const{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=s,h=et(t),d=l||a?[...h?Z(h):[],...Z(o)]:[];d.forEach((t=>{l&&t.addEventListener("scroll",r,{passive:!0}),a&&t.addEventListener("resize",r)}));const p=h&&u?function(t,o){let r,s=null;const l=C(t);function a(){var t;clearTimeout(r),null==(t=s)||t.disconnect(),s=null}return function c(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),a();const h=t.getBoundingClientRect(),{left:d,top:p,width:m,height:y}=h;if(u||o(),!m||!y)return;const g={rootMargin:-i(p)+"px "+-i(l.clientWidth-(d+m))+"px "+-i(l.clientHeight-(p+y))+"px "+-i(d)+"px",threshold:e(0,n(1,f))||1};let w=!0;function x(n){const e=n[0].intersectionRatio;if(e!==f){if(!w)return c();e?c(!1,e):r=setTimeout((()=>{c(!1,1e-7)}),1e3)}1!==e||gt(h,t.getBoundingClientRect())||c(),w=!1}try{s=new IntersectionObserver(x,{...g,root:l.ownerDocument})}catch(t){s=new IntersectionObserver(x,g)}s.observe(t)}(!0),a}(h,r):null;let m,y=-1,g=null;c&&(g=new ResizeObserver((t=>{let[n]=t;n&&n.target===h&&g&&(g.unobserve(o),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(o)}))),r()})),h&&!f&&g.observe(h),g.observe(o));let w=f?st(t):null;return f&&function n(){const e=st(t);w&&!gt(w,e)&&r(),w=e,m=requestAnimationFrame(n)}(),r(),()=>{var t;d.forEach((t=>{l&&t.removeEventListener("scroll",r),a&&t.removeEventListener("resize",r)})),null==p||p(),null==(t=g)||t.disconnect(),g=null,f&&cancelAnimationFrame(m)}}(t,o,l,{elementResize:!0,layoutShift:!0})}stopAutoUpdate(){this.cleanupAutoUpdate?.(),this.cleanupAutoUpdate=void 0}attachTriggerListeners(t,n,e){t.addEventListener(St,n),t.addEventListener(Ft,e)}detachTriggerListeners(t,n,e){t.removeEventListener(St,n),t.removeEventListener(Ft,e)}floatingDisconnect(t,n){null!=this.previousTrigger&&this.detachTriggerListeners(this.previousTrigger,t,n),this.stopAutoUpdate()}subscribeToTrigger(t){void 0!==this.hooks.subscribeToTrigger&&this.hooks.subscribeToTrigger(t)}onBeforeLoad(){const t=this.el.parentElement;if(null===t)return;const n=t.querySelector("[bds-tooltip], [bds-popover]")||t;n.isConnected&&(this.triggerSlot=n,this.subscribeToTrigger(n))}componentDidLoad(){this.onBeforeLoad(),this.hooks.onBeforeLoad?.(this.el)}componentWillLoad(){this.toggle=this.toggle.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.positionEngine=new At,this.logger=new vt,this.cleanupAutoUpdate=void 0,this.previousTrigger=void 0}disconnectedCallback(){null!=this.previousTrigger&&this.floatingDisconnect((()=>this.show()),(()=>this.hide())),this.stopAutoUpdate(),this.hide()}static get elementRef(){return"el"}}return r};export{kt as a}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a={DEFAULT:"default",ERROR:"error",DISABLED:"disabled",ACTIVE:"active"},e={INFO:"info",SUCCESS:"success",WARNING:"warning",DANGER:"danger"};export{a as C,e as S}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,a,n){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function o(e){try{l(n["throw"](e))}catch(e){r(e)}}function l(e){e.done?a(e.value):i(e.value).then(s,o)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,i,r,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(a=0)),a)try{if(n=1,i&&(r=o[0]&2?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;if(i=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;i=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(o[0]===6&&a.label<r[1]){a.label=r[1];r=o;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(o);break}if(r[2])a.ops.pop();a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e];i=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-GjKJvOVG.system.js","./p-BbPAtVJG.system.js"],(function(e,t){"use strict";var a,n,i,r;return{setters:[function(t){a=t.p;n=t.H;i=t.b;e("setNonce",t.s)},function(e){r=e.g}],execute:function(){var e=this;var s=function(){{o(n.prototype)}var e=t.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return a(i)};var o=function(e){var t=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return t.call(this,e)}var a=t.call(this,false);var n=this.childNodes;if(e){for(var i=0;i<n.length;i++){if(n[i].nodeType!==2){a.appendChild(n[i].cloneNode(true))}}}return a}};s().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,r()];case 1:e.sent();return[2,i([["p-ac64d4a5.system",[[836,"bds-text-field",{name:[513],disabled:[516],required:[516],value:[1537],error:[516],errorMessage:[1,"error-message"],customValidators:[16],validationTiming:[1,"validation-timing"],type:[513],variant:[513],placeholder:[1],readOnly:[4,"readonly"],autocomplete:[1],pattern:[1],minLength:[2,"min-length"],maxLength:[2,"max-length"],label:[1],sublabel:[1],icon:[1],helperText:[1,"helper-text"],info:[1],clearable:[4],clearOnHover:[4,"clear-on-hover"],charCount:[2,"char-count"],counter:[4],customWidth:[1,"custom-width"],isDisabled:[32],focused:[32],showPassword:[32],touched:[32],dirty:[32],currentCharCount:[32],validationError:[32],validationMessage:[32],checkValidity:[64],reportValidity:[64]},null,{disabled:[{onDisabledChange:0}],type:[{checkPropValues:0}],variant:[{checkPropValues:0}],validationTiming:[{checkPropValues:0}],customValidators:[{onCustomValidatorsChange:0}],value:[{onValueChange:0}]}]]],["p-5fa53a80.system",[[772,"bds-dialog",{active:[1540],preventClose:[4,"prevent-close"],height:[1],width:[1],layout:[1],contentPadding:[1,"content-padding"],backdropClose:[4,"backdrop-close"],escapeClose:[4,"escape-close"],size:[1],variant:[1],titleDialog:[1,"title-dialog"],maximizable:[4],closable:[4],open:[64],close:[64]},null,{active:[{handleIsOpenChange:0}]}]]],["p-1fccea3f.system",[[772,"bds-popover",{floatingOptions:[16],disabled:[4],width:[8],header:[4],footer:[4],closable:[4],isVisible:[32]}]]],["p-9e06910d.system",[[260,"bds-banner",{variant:[1],closable:[4],closeButtonLabel:[1,"close-button-label"],isClosing:[32],isOpen:[32],closeBanner:[64]}]]],["p-22378341.system",[[836,"bds-checkbox",{name:[513],disabled:[516],required:[516],checked:[1540],indeterminate:[1540],error:[516],value:[1],label:[1],isDisabled:[32]},null,{checked:[{onCheckedChange:0}],disabled:[{onDisabledChange:0}]}]]],["p-efe57901.system",[[0,"bds-flag",{alignFlag:[1,"align-flag"],callSign:[4,"call-sign"],country:[1],customFlags:[16],identifier:[1],label:[4],shape:[1],shortName:[4,"short-name"]},null,{alignFlag:[{checkPropValues:0}],identifier:[{checkPropValues:0}],shape:[{checkPropValues:0}]}]]],["p-20af732b.system",[[0,"bds-spinner",{size:[1],label:[1]},null,{size:[{checkPropValues:0}]}]]],["p-fa327346.system",[[260,"bds-typography",{variant:[513],size:[513],state:[513],customClass:[1,"custom-class"],element:[1],align:[1],ellipsis:[4],maxLines:[2,"max-lines"],tooltipText:[1,"tooltip-text"],isRequired:[516,"is-required"],htmlFor:[1,"html-for"],href:[1],target:[1],isDownloadable:[4,"is-downloadable"],filename:[1],sanitizedHref:[32]},null,{href:[{updateSanitizedHref:0}]}]]],["p-6de2b44c.system",[[324,"bds-button",{label:[1],disabled:[4],name:[1],type:[1],color:[1],variant:[1],size:[1],loading:[4],disclosure:[4],currentState:[32]},null,{type:[{checkPropValues:0}],color:[{checkPropValues:0}],variant:[{checkPropValues:0}],size:[{checkPropValues:0}]}]]],["p-d8ec8557.system",[[772,"bds-tooltip",{multiline:[4],disabled:[4],floatingOptions:[16],isVisible:[32]}]]]],t)]}}))}))}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register([],(function(e){"use strict";return{execute:function(){var r=e("C",{DEFAULT:"default",ERROR:"error",DISABLED:"disabled",ACTIVE:"active"});var n=e("S",{INFO:"info",SUCCESS:"success",WARNING:"warning",DANGER:"danger"})}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const s=s=>class extends s{formDisabledCallback(s){this.isDisabled=s}};function t(s,t){s.setFormValue?.(t)}function e(s,t,e){const n={};let o="";for(const{key:s,isValid:a,message:c}of t)a(e)||(n[s]=!0,""===o&&(o=c));const a=0===Object.keys(n).length;return s.setValidity?.(a?{}:n,o),a}export{s as f,e as r,t as s}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var r=function(n,e){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var e in n)if(Object.prototype.hasOwnProperty.call(n,e))r[e]=n[e]};return r(n,e)};return function(n,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var n,e=1,t=arguments.length;e<t;e++){n=arguments[e];for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i))r[i]=n[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,n,e,t){function i(r){return r instanceof e?r:new e((function(n){n(r)}))}return new(e||(e=Promise))((function(e,f){function a(r){try{o(t.next(r))}catch(r){f(r)}}function u(r){try{o(t["throw"](r))}catch(r){f(r)}}function o(r){r.done?e(r.value):i(r.value).then(a,u)}o((t=t.apply(r,n||[])).next())}))};var __generator=this&&this.__generator||function(r,n){var e={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},t,i,f,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=u(0),a["throw"]=u(1),a["return"]=u(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(r){return function(n){return o([r,n])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(e=0)),e)try{if(t=1,i&&(f=u[0]&2?i["return"]:u[0]?i["throw"]||((f=i["return"])&&f.call(i),0):i.next)&&!(f=f.call(i,u[1])).done)return f;if(i=0,f)u=[u[0]&2,f.value];switch(u[0]){case 0:case 1:f=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;i=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(f=e.trys,f=f.length>0&&f[f.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!f||u[1]>f[0]&&u[1]<f[3])){e.label=u[1];break}if(u[0]===6&&e.label<f[1]){e.label=f[1];f=u;break}if(f&&e.label<f[2]){e.label=f[2];e.ops.push(u);break}if(f[2])e.ops.pop();e.trys.pop();continue}u=n.call(r,e)}catch(r){u=[6,r];i=0}finally{t=f=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,f;t<i;t++){if(f||!(t in n)){if(!f)f=Array.prototype.slice.call(n,0,t);f[t]=n[t]}}return r.concat(f||Array.prototype.slice.call(n))};System.register([],(function(r,n){"use strict";return{execute:function(){var e=this;r("M",En);var t="boreal-web-components";var i={hotModuleReplacement:false,hydratedSelectorName:"hydrated",lazyLoad:true,propChangeCallback:true,shadowDom:false,slotRelocation:true,state:true,updatable:true};var f="http://www.w3.org/2000/svg";var a="http://www.w3.org/1999/xhtml";var u=function(r,n){var e;var t=n.t;var i=Object.entries((e=t.i)!=null?e:{});i.map((function(e){var t=e[0],i=e[1][0];if(i&31||i&32){var f=r[t];var a=o(Object.getPrototypeOf(r),t)||Object.getOwnPropertyDescriptor(r,t);if(a){Object.defineProperty(r,t,{get:function(){return a.get.call(this)},set:function(r){a.set.call(this,r)},configurable:true,enumerable:true})}r[t]=n.u.has(t)?n.u.get(t):f}}))};function o(r,n){while(r){var e=Object.getOwnPropertyDescriptor(r,n);if(e==null?void 0:e.get)return e;r=Object.getPrototypeOf(r)}return void 0}var l=function(r){if(r.__stencil__getHostRef){return r.__stencil__getHostRef()}return void 0};var v=r("r",(function(r,n){if(!n)return;r.__stencil__getHostRef=function(){return n};n.o=r;if(n.t.l&512&&i.state){u(r,n)}}));var s=function(r,n){var e={l:0,$hostElement$:r,t:n,u:new Map,v:new Map};{e.h=new Promise((function(r){return e.p=r}))}{e.m=new Promise((function(r){return e._=r}));r["s-p"]=[];r["s-rc"]=[]}{e.j=[]}var t=e;r.__stencil__getHostRef=function(){return t};return t};var c=function(r,n){return n in r};var d=function(r,n){return(0,console.error)(r,n)};var h=new Map;var p=function(r,e,t){var i=r.O.replace(/-/g,"_");var f=r.S;if(!f){return void 0}var a=h.get(f);if(a){return a[i]}
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return n.import("./".concat(f,".entry.js").concat("")).then((function(r){{h.set(f,r)}return r[i]}),(function(r){d(r,e.$hostElement$)}))};var b=new Map;var y="{visibility:hidden}.hydrated{visibility:inherit}";var m="slot-fb{display:contents}slot-fb[hidden]{display:none}";var w="http://www.w3.org/1999/xlink";var g=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var _=typeof window!=="undefined"?window:{};var j=r("H",_.HTMLElement||function(){function r(){}return r}());var O={l:0,$:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,n,e,t){return r.addEventListener(n,e,t)},rel:function(r,n,e,t){return r.removeEventListener(n,e,t)},ce:function(r,n){return new CustomEvent(r,n)}};var S=i.shadowDom;var $=r("p",(function(r){return Promise.resolve(r)}));var C=function(){try{if(!_.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var k=C?function(){return!!_.document&&Object.getOwnPropertyDescriptor(_.document.adoptedStyleSheets,"length").writable}():false;var N=false;var A=[];var x=[];var E=function(r,n){return function(e){r.push(e);if(!N){N=true;if(n&&O.l&4){T(R)}else{O.raf(R)}}}};var M=function(r){for(var n=0;n<r.length;n++){try{r[n](performance.now())}catch(r){d(r)}}r.length=0};var R=function(){M(A);{M(x);if(N=A.length>0){O.raf(R)}}};var T=function(r){return $().then(r)};var L=E(x,true);var D=r("d",(function(r){var n=new URL(r,O.$);return n.origin!==_.location.origin?n.href:n.pathname}));var F=function(r){var n=lr(r,"childNodes");if(r.tagName&&r.tagName.includes("-")&&r["s-cr"]&&r.tagName!=="SLOT-FB"){U(n,r.tagName).forEach((function(r){if(r.nodeType===1&&r.tagName==="SLOT-FB"){if(B(r,I(r),false).length){r.hidden=true}else{r.hidden=false}}}))}var e=0;for(e=0;e<n.length;e++){var t=n[e];if(t.nodeType===1&&lr(t,"childNodes").length){F(t)}}};var P=function(r){var n=[];for(var e=0;e<r.length;e++){var t=r[e]["s-nr"]||void 0;if(t&&t.isConnected){n.push(t)}}return n};function U(r,n,e){var t=0;var i=[];var f;for(;t<r.length;t++){f=r[t];if(f["s-sr"]&&(!n||f["s-hn"]===n)&&(e===void 0||I(f)===e)){i.push(f);if(typeof e!=="undefined")return i}i=__spreadArray(__spreadArray([],i,true),U(f.childNodes,n,e),true)}return i}var B=function(r,n,e){if(e===void 0){e=true}var t=[];if(e&&r["s-sr"]||!r["s-sr"])t.push(r);var i=r;while(i=i.nextSibling){if(I(i)===n&&(e||!i["s-sr"]))t.push(i)}return t};var z=function(r,n){if(r.nodeType===1){if(r.getAttribute("slot")===null&&n===""){return true}if(r.getAttribute("slot")===n){return true}return false}if(r["s-sn"]===n){return true}return n===""};var H=function(r,n,e,t){if(r["s-ol"]&&r["s-ol"].isConnected){return}var i=document.createTextNode("");i["s-nr"]=r;if(!n["s-cr"]||!n["s-cr"].parentNode)return;var f=n["s-cr"].parentNode;var a=e?lr(f,"prepend"):lr(f,"appendChild");{a.call(f,i)}r["s-ol"]=i;r["s-sh"]=n["s-hn"]};var I=function(r){return typeof r["s-sn"]==="string"?r["s-sn"]:r.nodeType===1&&r.getAttribute("slot")||void 0};function W(r){if(r.assignedElements||r.assignedNodes||!r["s-sr"])return;var n=function(n){return function(r){var e=[];var t=this["s-sn"];if(r==null?void 0:r.flatten){console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ")}var i=this["s-cr"].parentElement;var f=i.__childNodes?i.childNodes:P(i.childNodes);f.forEach((function(r){if(t===I(r)){e.push(r)}}));if(n){return e.filter((function(r){return r.nodeType===1}))}return e}.bind(r)};r.assignedElements=n(true);r.assignedNodes=n(false)}function V(r){r.dispatchEvent(new CustomEvent("slotchange",{bubbles:false,cancelable:false,composed:false}))}function q(r,n){var e;n=n||((e=r["s-ol"])==null?void 0:e.parentElement);if(!n)return{slotNode:null,slotName:""};var t=r["s-sn"]=I(r)||"";var i=lr(n,"childNodes");var f=U(i,n.tagName,t)[0];return{slotNode:f,slotName:t}}var G=function(r){Y(r);Z(r);Q(r);K(r);er(r);X(r);rr(r);nr(r);tr(r);ir(r);J(r)};var Y=function(r){if(r.__cloneNode)return;var n=r.__cloneNode=r.cloneNode;r.cloneNode=function(r){var e=this;var t=n.call(e,false);if(r){var i=0;var f=void 0,a=void 0;var u=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"];var o=this.__childNodes||this.childNodes;for(;i<o.length;i++){f=o[i]["s-nr"];a=u.every((function(r){return!o[i][r]}));if(f){if(t.__appendChild){t.__appendChild(f.cloneNode(true))}else{t.appendChild(f.cloneNode(true))}}if(a){t.appendChild(o[i].cloneNode(true))}}}return t}};var Z=function(r){if(r.__appendChild)return;r.__appendChild=r.appendChild;r.appendChild=function(r){var n=q(r,this),e=n.slotName,t=n.slotNode;if(t){H(r,t);var i=B(t,e);var f=i[i.length-1];var a=lr(f,"parentNode");var u=lr(a,"insertBefore")(r,f.nextSibling);V(t);F(this);return u}return this.__appendChild(r)}};var J=function(r){if(r.__removeChild)return;r.__removeChild=r.removeChild;r.removeChild=function(r){if(r&&typeof r["s-sn"]!=="undefined"){var n=this.__childNodes||this.childNodes;var e=U(n,this.tagName,r["s-sn"]);if(e&&r.isConnected){r.remove();F(this);return}}return this.__removeChild(r)}};var K=function(r){if(r.__prepend)return;r.__prepend=r.prepend;r.prepend=function(){var n=this;var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}e.forEach((function(e){if(typeof e==="string"){e=n.ownerDocument.createTextNode(e)}var t=(e["s-sn"]=I(e))||"";var i=lr(n,"childNodes");var f=U(i,n.tagName,t)[0];if(f){H(e,f,true);var a=B(f,t);var u=a[0];var o=lr(u,"parentNode");var l=lr(o,"insertBefore")(e,lr(u,"nextSibling"));V(f);return l}if(e.nodeType===1&&!!e.getAttribute("slot")){e.hidden=true}return r.__prepend(e)}))}};var Q=function(r){if(r.__append)return;r.__append=r.append;r.append=function(){var r=this;var n=[];for(var e=0;e<arguments.length;e++){n[e]=arguments[e]}n.forEach((function(n){if(typeof n==="string"){n=r.ownerDocument.createTextNode(n)}r.appendChild(n)}))}};var X=function(r){if(r.__insertAdjacentHTML)return;var n=r.insertAdjacentHTML;r.insertAdjacentHTML=function(r,e){if(r!=="afterbegin"&&r!=="beforeend"){return n.call(this,r,e)}var t=this.ownerDocument.createElement("_");var i;t.innerHTML=e;if(r==="afterbegin"){while(i=t.firstChild){this.prepend(i)}}else if(r==="beforeend"){while(i=t.firstChild){this.append(i)}}}};var rr=function(r){r.insertAdjacentText=function(r,n){this.insertAdjacentHTML(r,n)}};var nr=function(r){if(r.__insertBefore)return;var n=r;if(n.__insertBefore)return;n.__insertBefore=r.insertBefore;r.insertBefore=function(r,n){var e=this;var t=q(r,this),i=t.slotName,f=t.slotNode;var a=this.__childNodes?this.childNodes:P(this.childNodes);if(f){var u=false;a.forEach((function(t){if(t===n||n===null){u=true;if(n===null||i!==n["s-sn"]){e.appendChild(r);return}if(i===n["s-sn"]){H(r,f);var a=lr(n,"parentNode");lr(a,"insertBefore")(r,n);V(f)}return}}));if(u)return r}var o=n==null?void 0:n.__parentNode;if(o&&!this.isSameNode(o)){return this.appendChild(r)}return this.__insertBefore(r,n)}};var er=function(r){if(r.__insertAdjacentElement)return;var n=r.insertAdjacentElement;r.insertAdjacentElement=function(r,e){if(r!=="afterbegin"&&r!=="beforeend"){return n.call(this,r,e)}if(r==="afterbegin"){this.prepend(e);return e}else if(r==="beforeend"){this.append(e);return e}return e}};var tr=function(r){or("textContent",r);Object.defineProperty(r,"textContent",{get:function(){var r="";var n=this.__childNodes?this.childNodes:P(this.childNodes);n.forEach((function(n){return r+=n.textContent||""}));return r},set:function(r){var n=this.__childNodes?this.childNodes:P(this.childNodes);n.forEach((function(r){if(r["s-ol"])r["s-ol"].remove();r.remove()}));this.insertAdjacentHTML("beforeend",r)}})};var ir=function(r){var n=function(r){__extends(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}n.prototype.item=function(r){return this[r]};return n}(Array);or("children",r);Object.defineProperty(r,"children",{get:function(){return this.childNodes.filter((function(r){return r.nodeType===1}))}});Object.defineProperty(r,"childElementCount",{get:function(){return this.children.length}});or("firstChild",r);Object.defineProperty(r,"firstChild",{get:function(){return this.childNodes[0]}});or("lastChild",r);Object.defineProperty(r,"lastChild",{get:function(){return this.childNodes[this.childNodes.length-1]}});or("childNodes",r);Object.defineProperty(r,"childNodes",{get:function(){var r=new n;r.push.apply(r,P(this.__childNodes));return r}})};var fr=function(r){if(!r||r.__parentNode)return;or("parentNode",r);Object.defineProperty(r,"parentNode",{get:function(){var r;return((r=this["s-ol"])==null?void 0:r.parentNode)||this.__parentNode},set:function(r){this.__parentNode=r}})};var ar=["children","nextElementSibling","previousElementSibling"];var ur=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function or(r,n){if(!globalThis.Node||!globalThis.Element){return}var e;if(ar.includes(r)){e=Object.getOwnPropertyDescriptor(Element.prototype,r)}else if(ur.includes(r)){e=Object.getOwnPropertyDescriptor(Node.prototype,r)}if(!e){e=Object.getOwnPropertyDescriptor(n,r)}if(e)Object.defineProperty(n,"__"+r,e)}function lr(r,n){if("__"+n in r){var e=r["__"+n];if(typeof e!=="function")return e;return e.bind(r)}else{if(typeof r[n]!=="function")return r[n];return r[n].bind(r)}}var vr=function(r,n){if(n===void 0){n=""}{return function(){return}}};var sr=function(r,n){{return function(){return}}};function cr(r){var n,e,t;return(t=(e=(n=r.head)==null?void 0:n.querySelector('meta[name="csp-nonce"]'))==null?void 0:e.getAttribute("content"))!=null?t:void 0}var dr=new WeakMap;var hr=function(r,n,e){var t=b.get(r);if(C&&e){t=t||new CSSStyleSheet;if(typeof t==="string"){t=n}else{t.replaceSync(n)}}else{t=n}b.set(r,t)};var pr=function(r,n,e){var t,i,f;var a=yr(n);var u=b.get(a);if(!_.document){return a}r=r.nodeType===11?r:_.document;if(u){if(typeof u==="string"){r=r.head||r;var o=dr.get(r);var l=void 0;if(!o){dr.set(r,o=new Set)}if(!o.has(a)){l=_.document.createElement("style");l.textContent=u;var v=(t=O.C)!=null?t:cr(_.document);if(v!=null){l.setAttribute("nonce",v)}if(!(n.l&1)){if(r.nodeName==="HEAD"){var s=r.querySelectorAll("link[rel=preconnect]");var c=s.length>0?s[s.length-1].nextSibling:r.querySelector("style");r.insertBefore(l,(c==null?void 0:c.parentNode)===r?c:null)}else if("host"in r){if(C){var d=(i=r.defaultView)!=null?i:r.ownerDocument.defaultView;var h=new d.CSSStyleSheet;h.replaceSync(u);if(k){r.adoptedStyleSheets.unshift(h)}else{r.adoptedStyleSheets=__spreadArray([h],r.adoptedStyleSheets,true)}}else{var p=r.querySelector("style");if(p){p.textContent=u+p.textContent}else{r.prepend(l)}}}else{r.append(l)}}if(n.l&1){r.insertBefore(l,null)}if(n.l&4){l.textContent+=m}if(o){o.add(a)}}}else{var o=dr.get(r);if(!o){dr.set(r,o=new Set)}if(!o.has(a)){var d=(f=r.defaultView)!=null?f:r.ownerDocument.defaultView;var h=void 0;if(u.constructor===d.CSSStyleSheet){h=u}else{h=new d.CSSStyleSheet;for(var y=0;y<u.cssRules.length;y++){h.insertRule(u.cssRules[y].cssText,y)}}if(k){r.adoptedStyleSheets.push(h)}else{r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[h],false)}o.add(a)}}}return a};var br=function(r){var n=r.t;var e=r.$hostElement$;var t=vr("attachStyles",n.O);pr(e.getRootNode(),n);t()};var yr=function(r,n){return"sc-"+r.O};var mr=function(r){r=typeof r;return r==="object"||r==="function"};var wr=r("h",(function(r,n){var e=[];for(var t=2;t<arguments.length;t++){e[t-2]=arguments[t]}if(typeof r==="string"){r=Rn(r)}var i=null;var f=null;var a=null;var u=false;var o=false;var l=[];var v=function(n){for(var e=0;e<n.length;e++){i=n[e];if(Array.isArray(i)){v(i)}else if(i!=null&&typeof i!=="boolean"){if(u=typeof r!=="function"&&!mr(i)){i=String(i)}if(u&&o){l[l.length-1].k+=i}else{l.push(u?gr(null,i):i)}o=u}}};v(e);if(n){if(n.key){f=n.key}if(n.name){a=n.name}{var s=n.className||n.class;if(s){n.class=typeof s!=="object"?s:Object.keys(s).filter((function(r){return s[r]})).join(" ")}}}if(typeof r==="function"){return r(n===null?{}:n,l,Or)}var c=gr(r,null);c.N=n;if(l.length>0){c.A=l}{c.M=f}{c.R=a}return c}));var gr=function(r,n){var e={l:0,T:r,k:n!=null?n:null,L:null,A:null};{e.N=null}{e.M=null}{e.R=null}return e};var _r=r("a",{});var jr=function(r){return r&&r.T===_r};var Or={forEach:function(r,n){return r.map(Sr).forEach(n)},map:function(r,n){return r.map(Sr).map(n).map($r)}};var Sr=function(r){return{vattrs:r.N,vchildren:r.A,vkey:r.M,vname:r.R,vtag:r.T,vtext:r.k}};var $r=function(r){if(typeof r.vtag==="function"){var n=__assign({},r.vattrs);if(r.vkey){n.key=r.vkey}if(r.vname){n.name=r.vname}return wr.apply(void 0,__spreadArray([r.vtag,n],r.vchildren||[],false))}var e=gr(r.vtag,r.vtext);e.N=r.vattrs;e.A=r.vchildren;e.M=r.vkey;e.R=r.vname;return e};var Cr=function(r,n,e){if(r!=null&&!mr(r)){if(n&4){if(e&&typeof r==="string"){return r===""||!!r}else{return r==="false"?false:r===""||!!r}}if(n&2){return typeof r==="string"?parseFloat(r):typeof r==="number"?r:NaN}if(n&1){return String(r)}return r}return r};var kr=r("g",(function(r){var n;return(n=l(r))==null?void 0:n.$hostElement$}));var Nr=r("c",(function(r,n,e){var t=kr(r);return{emit:function(r){return Ar(t,n,{bubbles:true,composed:true,cancelable:true,detail:r})}}}));var Ar=function(r,n,e){var t=O.ce(n,e);r.dispatchEvent(t);return t};var xr=function(r,n,e,t,i,f,a){if(e===t){return}var u=c(r,n);var o=n.toLowerCase();if(n==="class"){var v=r.classList;var s=Mr(e);var d=Mr(t);{v.remove.apply(v,s.filter((function(r){return r&&!d.includes(r)})));v.add.apply(v,d.filter((function(r){return r&&!s.includes(r)})))}}else if(n==="style"){{for(var h in e){if(!t||t[h]==null){if(h.includes("-")){r.style.removeProperty(h)}else{r.style[h]=""}}}}for(var h in t){if(!e||t[h]!==e[h]){if(h.includes("-")){r.style.setProperty(h,t[h])}else{r.style[h]=t[h]}}}}else if(n==="key");else if(n==="ref"){if(t){tn(t,r)}}else if(!u&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(c(_,o)){n=o.slice(2)}else{n=o[2]+n.slice(3)}if(e||t){var p=n.endsWith(Rr);n=n.replace(Tr,"");if(e){O.rel(r,n,e,p)}if(t){O.ael(r,n,t,p)}}}else if(n[0]==="a"&&n.startsWith("attr:")){var b=n.slice(5);var y=void 0;{var m=l(r);if(m&&m.t&&m.t.i){var g=m.t.i[b];if(g&&g[1]){y=g[1]}}}if(!y){y=b.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(t==null||t===false){if(t!==false||r.getAttribute(y)===""){r.removeAttribute(y)}}else{r.setAttribute(y,t===true?"":t)}return}else if(n[0]==="p"&&n.startsWith("prop:")){var b=n.slice(5);try{r[b]=t}catch(r){}return}else{var j=mr(t);if((u||j&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var S=t==null?"":t;if(n==="list"){u=false}else if(e==null||r[n]!==S){if(typeof r.__lookupSetter__(n)==="function"){r[n]=S}else{r.setAttribute(n,S)}}}else if(r[n]!==t){r[n]=t}}catch(r){}}var $=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){n=o;$=true}}if(t==null||t===false){if(t!==false||r.getAttribute(n)===""){if($){r.removeAttributeNS(w,n)}else{r.removeAttribute(n)}}}else if((!u||f&4||i)&&!j&&r.nodeType===1){t=t===true?"":t;if($){r.setAttributeNS(w,n,t)}else{r.setAttribute(n,t)}}}};var Er=/\s/;var Mr=function(r){if(typeof r==="object"&&r&&"baseVal"in r){r=r.baseVal}if(!r||typeof r!=="string"){return[]}return r.split(Er)};var Rr="Capture";var Tr=new RegExp(Rr+"$");var Lr=function(r,n,e,t){var i=n.L.nodeType===11&&n.L.host?n.L.host:n.L;var f=r&&r.N||{};var a=n.N||{};{for(var u=0,o=Dr(Object.keys(f));u<o.length;u++){var l=o[u];if(!(l in a)){xr(i,l,f[l],void 0,e,n.l)}}}for(var v=0,s=Dr(Object.keys(a));v<s.length;v++){var l=s[v];xr(i,l,f[l],a[l],e,n.l)}};function Dr(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var Fr;var Pr;var Ur=false;var Br=false;var zr=false;var Hr=false;var Ir=[];var Wr=[];var Vr=function(r,n,e){var t;var u=n.A[e];var o=0;var l;var v;var s;if(!Ur){zr=true;if(u.T==="slot"){u.l|=u.A?2:1}}if(u.k!=null){l=u.L=_.document.createTextNode(u.k)}else if(u.l&1){l=u.L=_.document.createTextNode("");{Lr(null,u,Hr)}}else{if(!Hr){Hr=u.T==="svg"}if(!_.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}l=u.L=_.document.createElementNS(Hr?f:a,!Ur&&i.slotRelocation&&u.l&2?"slot-fb":u.T);if(Hr&&u.T==="foreignObject"){Hr=false}{Lr(null,u,Hr)}if(u.A){var c=u.T==="template"?l.content:l;for(o=0;o<u.A.length;++o){v=Vr(r,u,o);if(v){c.appendChild(v)}}}{if(u.T==="svg"){Hr=false}else if(l.tagName==="foreignObject"){Hr=true}}}l["s-hn"]=Pr;{if(u.l&(2|1)){l["s-sr"]=true;l["s-cr"]=Fr;l["s-sn"]=u.R||"";l["s-rf"]=(t=u.N)==null?void 0:t.ref;W(l);s=r&&r.A&&r.A[e];if(s&&s.T===u.T&&r.L){qr(r.L)}}}return l};var qr=function(r){O.l|=1;var n=r.closest(Pr.toLowerCase());if(n!=null){var e=Array.from(n.__childNodes||n.childNodes).find((function(r){return r["s-cr"]}));var t=Array.from(r.__childNodes||r.childNodes);for(var i=0,f=e?t.reverse():t;i<f.length;i++){var a=f[i];if(a["s-sh"]!=null){an(n,a,e!=null?e:null);a["s-sh"]=void 0;zr=true}}}O.l&=-2};var Gr=function(r,n){O.l|=1;var e=Array.from(r.__childNodes||r.childNodes);if(r["s-sr"]){var t=r;while(t=t.nextSibling){if(t&&t["s-sn"]===r["s-sn"]&&t["s-sh"]===Pr){e.push(t)}}}for(var i=e.length-1;i>=0;i--){var f=e[i];if(f["s-hn"]!==Pr&&f["s-ol"]){an(Qr(f).parentNode,f,Qr(f));f["s-ol"].remove();f["s-ol"]=void 0;f["s-sh"]=void 0;zr=true}if(n){Gr(f,n)}}O.l&=-2};var Yr=function(r,n,e,t,i,f){var a=r["s-cr"]&&r["s-cr"].parentNode||r;var u;if(e.T==="template"){a=a.content}for(;i<=f;++i){if(t[i]){u=Vr(null,e,i);if(u){t[i].L=u;an(a,u,Qr(n))}}}};var Zr=function(r,n,e){for(var t=n;t<=e;++t){var i=r[t];if(i){var f=i.L;en(i);if(f){{Br=true;if(f["s-ol"]){f["s-ol"].remove()}else{Gr(f,true)}}f.remove()}}}};var Jr=function(r,n,e,t,i){if(i===void 0){i=false}var f=0;var a=0;var u=0;var o=0;var l=n.length-1;var v=n[0];var s=n[l];var c=t.length-1;var d=t[0];var h=t[c];var p;var b;var y=e.T==="template"?r.content:r;while(f<=l&&a<=c){if(v==null){v=n[++f]}else if(s==null){s=n[--l]}else if(d==null){d=t[++a]}else if(h==null){h=t[--c]}else if(Kr(v,d,i)){Xr(v,d,i);v=n[++f];d=t[++a]}else if(Kr(s,h,i)){Xr(s,h,i);s=n[--l];h=t[--c]}else if(Kr(v,h,i)){if(v.T==="slot"||h.T==="slot"){Gr(v.L.parentNode,false)}Xr(v,h,i);an(y,v.L,s.L.nextSibling);v=n[++f];h=t[--c]}else if(Kr(s,d,i)){if(v.T==="slot"||h.T==="slot"){Gr(s.L.parentNode,false)}Xr(s,d,i);an(y,s.L,v.L);s=n[--l];d=t[++a]}else{u=-1;{for(o=f;o<=l;++o){if(n[o]&&n[o].M!==null&&n[o].M===d.M){u=o;break}}}if(u>=0){b=n[u];if(b.T!==d.T){p=Vr(n&&n[a],e,u)}else{Xr(b,d,i);n[u]=void 0;p=b.L}d=t[++a]}else{p=Vr(n&&n[a],e,a);d=t[++a]}if(p){{an(Qr(v.L).parentNode,p,Qr(v.L))}}}}if(f>l){Yr(r,t[c+1]==null?null:t[c+1].L,e,t,a,c)}else if(a>c){Zr(n,f,l)}};var Kr=function(r,n,e){if(e===void 0){e=false}if(r.T===n.T){if(r.T==="slot"){return r.R===n.R}if(!e){return r.M===n.M}if(e&&!r.M&&n.M){r.M=n.M}return true}return false};var Qr=function(r){return r&&r["s-ol"]||r};var Xr=function(r,n,e){if(e===void 0){e=false}var t=n.L=r.L;var f=r.A;var a=n.A;var u=n.T;var o=n.k;var l;if(o==null){{Hr=u==="svg"?true:u==="foreignObject"?false:Hr}{if(u==="slot"&&!Ur){if(r.R!==n.R){n.L["s-sn"]=n.R||"";qr(n.L.parentElement)}}Lr(r,n,Hr)}if(f!==null&&a!==null){Jr(t,f,n,a,e)}else if(a!==null){if(r.k!==null){t.textContent=""}Yr(t,null,n,a,0,a.length-1)}else if(!e&&i.updatable&&f!==null){Zr(f,0,f.length-1)}else;if(Hr&&u==="svg"){Hr=false}}else if(l=t["s-cr"]){l.parentNode.textContent=o}else if(r.k!==o){t.data=o}};var rn=[];var nn=function(r){var n;var e;var t;var i=r.__childNodes||r.childNodes;for(var f=0,a=i;f<a.length;f++){var u=a[f];if(u["s-sr"]&&(n=u["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;var o=u["s-sn"];var l=function(){n=e[t];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==u["s-hn"]&&(!n["s-sh"]||n["s-sh"]!==u["s-hn"])){if(z(n,o)){var r=rn.find((function(r){return r.D===n}));Br=true;n["s-sn"]=n["s-sn"]||o;if(r){r.D["s-sh"]=u["s-hn"];r.F=u}else{n["s-sh"]=u["s-hn"];rn.push({F:u,D:n})}if(n["s-sr"]){rn.map((function(e){if(z(e.D,n["s-sn"])){r=rn.find((function(r){return r.D===n}));if(r&&!e.F){e.F=r.F}}}))}}else if(!rn.some((function(r){return r.D===n}))){rn.push({D:n})}}};for(t=e.length-1;t>=0;t--){l()}}if(u.nodeType===1){nn(u)}}};var en=function(r){{if(r.N&&r.N.ref){Ir.push((function(){return r.N.ref(null)}))}r.A&&r.A.map(en)}};var tn=function(r,n){{Wr.push((function(){return r(n)}))}};var fn=function(){{Ir.forEach((function(r){return r()}));Ir.length=0;Wr.forEach((function(r){return r()}));Wr.length=0}};var an=function(r,n,e,t){{if(typeof n["s-sn"]==="string"){if(r.getRootNode().nodeType!==11){fr(n)}r.insertBefore(n,e);var i=q(n).slotNode;if(i&&!t)V(i);return n}}if(r.__insertBefore){return r.__insertBefore(n,e)}else{return r==null?void 0:r.insertBefore(n,e)}};var un=function(r,n,e){if(e===void 0){e=false}var t,i,f,a,u;var o=r.$hostElement$;var l=r.t;var v=r.P||gr(null,null);var s=jr(n);var c=s?n:wr(null,null,n);Pr=o.tagName;if(l.U){c.N=c.N||{};l.U.forEach((function(r){var n=r[0],e=r[1];{c.N[e]=o[n]}}))}if(e&&c.N){for(var d=0,h=Object.keys(c.N);d<h.length;d++){var p=h[d];if(o.hasAttribute(p)&&!["key","ref","style","class"].includes(p)){c.N[p]=o[p]}}}c.T=null;c.l|=4;r.P=c;c.L=v.L=o;Ur=S;{Fr=o["s-cr"];Br=false}Xr(v,c,e);{O.l|=1;if(zr){nn(c.L);for(var b=0,y=rn;b<y.length;b++){var m=y[b];var w=m.D;if(!w["s-ol"]&&_.document){var g=_.document.createTextNode("");g["s-nr"]=w;an(w.parentNode,w["s-ol"]=g,w,e)}}for(var j=0,$=rn;j<$.length;j++){var m=$[j];var w=m.D;var C=m.F;if(w.nodeType===1&&e){w["s-ih"]=(t=w.hidden)!=null?t:false}if(C){var k=C.parentNode;var N=C.nextSibling;if(N&&N.nodeType===1){var g=(i=w["s-ol"])==null?void 0:i.previousSibling;while(g){var A=(f=g["s-nr"])!=null?f:null;if(A&&A["s-sn"]===w["s-sn"]&&k===(A.__parentNode||A.parentNode)){A=A.nextSibling;while(A===w||(A==null?void 0:A["s-sr"])){A=A==null?void 0:A.nextSibling}if(!A||!A["s-nr"]){N=A;break}}g=g.previousSibling}}var x=w.__parentNode||w.parentNode;var E=w.__nextSibling||w.nextSibling;if(!N&&k!==x||E!==N){if(w!==N){an(k,w,N,e);if(w.nodeType===8&&w.nodeValue.startsWith("s-nt-")){var M=_.document.createTextNode(w.nodeValue.replace(/^s-nt-/,""));M["s-hn"]=w["s-hn"];M["s-sn"]=w["s-sn"];M["s-sh"]=w["s-sh"];M["s-sr"]=w["s-sr"];M["s-ol"]=w["s-ol"];M["s-ol"]["s-nr"]=M;an(w.parentNode,M,w,e);w.parentNode.removeChild(w)}if(w.nodeType===1&&w.tagName!=="SLOT-FB"){w.hidden=(a=w["s-ih"])!=null?a:false}}}w&&typeof C["s-rf"]==="function"&&C["s-rf"](C)}else if(w.nodeType===1){w.hidden=true}}}if(Br){F(c.L)}O.l&=-2;rn.length=0}if(!Ur&&!(l.l&1)&&o["s-cr"]){var R=c.L.__childNodes||c.L.childNodes;for(var T=0,L=R;T<L.length;T++){var D=L[T];if(D["s-hn"]!==Pr&&!D["s-sh"]){if(e&&D["s-ih"]==null){D["s-ih"]=(u=D.hidden)!=null?u:false}if(D.nodeType===1){D.hidden=true}else if(D.nodeType===3&&!!D.nodeValue.trim()){var P=_.document.createComment("s-nt-"+D.nodeValue);P["s-sn"]=D["s-sn"];an(D.parentNode,P,D,e);D.parentNode.removeChild(D)}}}}Fr=void 0;fn()};var on=function(r,n){if(n&&!r.B&&n["s-p"]){var e=n["s-p"].push(new Promise((function(t){return r.B=function(){n["s-p"].splice(e-1,1);t()}})))}};var ln=function(r,n){{r.l|=16}if(r.l&4){r.l|=512;return}on(r,r.H);var e=function(){return vn(r,n)};if(n){queueMicrotask((function(){e()}));return}return L(e)};var vn=function(r,n){var e=r.$hostElement$;var t=vr("scheduleUpdate",r.t.O);var i=r.o;if(!i){throw new Error("Can't render component <".concat(e.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var f;if(n){{if(r.I){r.I=false;yn(i,"connectedCallback",void 0,e)}if(r.j.length){r.j.forEach((function(r){return r(e)}))}}f=yn(i,"componentWillLoad",void 0,e)}else{f=yn(i,"componentWillUpdate",void 0,e)}f=sn(f,(function(){return yn(i,"componentWillRender",void 0,e)}));t();return sn(f,(function(){return dn(r,i,n)}))};var sn=function(r,n){return cn(r)?r.then(n).catch((function(r){console.error(r);n()})):n()};var cn=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var dn=function(r,n,t){return __awaiter(e,void 0,void 0,(function(){var e,i,f,a,u,o,l;return __generator(this,(function(v){i=r.$hostElement$;f=vr("update",r.t.O);a=i["s-rc"];if(t){br(r)}u=vr("render",r.t.O);{hn(r,n,i,t)}if(a){a.map((function(r){return r()}));i["s-rc"]=void 0}u();f();{o=(e=i["s-p"])!=null?e:[];l=function(){return pn(r)};if(o.length===0){l()}else{Promise.all(o).then(l).catch(l);r.l|=4;o.length=0}}return[2]}))}))};var hn=function(r,n,e,t){try{n=n.render();{r.l&=-17}{r.l|=2}{{{un(r,n,t)}}}}catch(n){d(n,r.$hostElement$)}return null};var pn=function(r){var n=r.t.O;var e=r.$hostElement$;var t=vr("postUpdate",n);var i=r.o;var f=r.H;yn(i,"componentDidRender",void 0,e);if(!(r.l&64)){r.l|=64;{mn(e)}yn(i,"componentDidLoad",void 0,e);t();{r._(e);if(!f){bn()}}}else{yn(i,"componentDidUpdate",void 0,e);t()}{r.p(e)}{if(r.B){r.B();r.B=void 0}if(r.l&512){T((function(){return ln(r,false)}))}r.l&=-517}};var bn=function(r){T((function(){return Ar(_,"appload",{detail:{namespace:t}})}))};var yn=function(r,n,e,t){if(r&&r[n]){try{return r[n](e)}catch(r){d(r,t)}}return void 0};var mn=function(r){var n;return r.classList.add((n=i.hydratedSelectorName)!=null?n:"hydrated")};var wn=function(r,n){return l(r).u.get(n)};var gn=function(r,n,e,t){var i=l(r);if(!i){return}if(!i){throw new Error("Couldn't find host element for \"".concat(t.O,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var f=i.$hostElement$;var a=i.u.get(n);var u=i.l;var o=i.o;e=Cr(e,t.i[n][0],!!(t.l&64));var v=Number.isNaN(a)&&Number.isNaN(e);var s=e!==a&&!v;if((!(u&8)||a===void 0)&&s){i.u.set(n,e);if(t.W){var c=t.W[n];if(c){c.map((function(r){try{var t=Object.entries(r)[0],l=t[0],v=t[1];if(u&128||v&1){if(!o){i.j.push((function(){i.o[l](e,a,n)}))}else{o[l](e,a,n)}}}catch(r){d(r,f)}}))}}if(u&2){if(o.componentShouldUpdate){var h=o.componentShouldUpdate(e,a,n);if(h===false&&!(u&16)){return}}if(!(u&16)){ln(i,false)}}}};var _n=function(r,n,e){var t,f;var a=r.prototype;if(n.l&64&&e&1){g.forEach((function(r){Object.defineProperty(a,r,{value:function(){var n=[];for(var e=0;e<arguments.length;e++){n[e]=arguments[e]}var t;var i=l(this);var f=i==null?void 0:i.o;if(!f){(t=i==null?void 0:i.m)==null?void 0:t.then((function(e){var t=e[r];typeof t==="function"&&t.call.apply(t,__spreadArray([e],n,false))}))}else{var a=f[r];typeof a==="function"&&a.call.apply(a,__spreadArray([f],n,false))}}})}))}if(n.i||i.propChangeCallback){{if(r.watchers&&!n.W){n.W=r.watchers}if(r.deserializers&&!n.V){n.V=r.deserializers}if(r.serializers&&!n.q){n.q=r.serializers}}var u=Object.entries((t=n.i)!=null?t:{});u.map((function(r){var t=r[0],i=r[1][0];if(i&31||e&2&&i&32){var f=Object.getOwnPropertyDescriptor(a,t)||{},u=f.get,o=f.set;if(u)n.i[t][0]|=2048;if(o)n.i[t][0]|=4096;if(e&1||!u){Object.defineProperty(a,t,{get:function(){{if((n.i[t][0]&2048)===0){return wn(this,t)}var r=l(this);var e=r?r.o:a;if(!e)return;return e[t]}},configurable:true,enumerable:true})}Object.defineProperty(a,t,{set:function(r){var f=this;var a=l(this);if(!a){return}if(o){var u=i&32?this[t]:a.$hostElement$[t];if(typeof u==="undefined"&&a.u.get(t)){r=a.u.get(t)}o.apply(this,[Cr(r,i,!!(n.l&64))]);r=i&32?this[t]:a.$hostElement$[t];gn(this,t,r,n);return}{if((e&1)===0||(n.i[t][0]&4096)===0){gn(this,t,r,n);if(e&1&&!a.o){a.j.push((function(){if(n.i[t][0]&4096&&a.o[t]!==a.u.get(t)){a.o[t]=r}}))}return}var v=function(){var e=a.o[t];if(!a.u.get(t)&&e){a.u.set(t,e)}a.o[t]=Cr(r,i,!!(n.l&64));gn(f,t,a.o[t],n)};if(a.o){v()}else{a.j.push((function(){v()}))}}}})}else if(e&1&&i&64){Object.defineProperty(a,t,{value:function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}var e;var i=l(this);return(e=i==null?void 0:i.h)==null?void 0:e.then((function(){var n;return(n=i.o)==null?void 0:n[t].apply(n,r)}))}})}}));if(e&1){var o=new Map;a.attributeChangedCallback=function(r,e,t){var f=this;O.jmp((function(){var v;var s=o.get(r);var c=l(f);if(f.hasOwnProperty(s)&&i.lazyLoad){t=f[s];delete f[s]}if(a.hasOwnProperty(s)&&typeof f[s]==="number"&&f[s]==t){return}else if(s==null){var d=c==null?void 0:c.l;if(c&&d&&!(d&8)&&t!==e){var h=c.o;var p=(v=n.W)==null?void 0:v[r];p==null?void 0:p.forEach((function(n){var i=Object.entries(n)[0],f=i[0],a=i[1];if(h[f]!=null&&(d&128||a&1)){h[f].call(h,t,e,r)}}))}return}var b=u.find((function(r){var n=r[0];return n===s}));if(b&&b[1][0]&4){t=t===null||t==="false"?false:true}var y=Object.getOwnPropertyDescriptor(a,s);if(t!=f[s]&&(!y.get||!!y.set)){f[s]=t}}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((f=n.W)!=null?f:{}),true),u.filter((function(r){var n=r[0],e=r[1];return e[0]&31})).map((function(r){var e=r[0],t=r[1];var i;var f=t[1]||e;o.set(f,e);if(t[0]&512){(i=n.U)==null?void 0:i.push([e,f])}return f})),true)))}}return r};var jn=function(r,n,t,f){return __awaiter(e,void 0,void 0,(function(){var e,f,a,u,o,l,v,s,c,h,y,m,w;return __generator(this,(function(g){switch(g.label){case 0:g.trys.push([0,7,,8]);if(!((n.l&32)===0))return[3,6];n.l|=32;f=t.S;if(!f)return[3,4];a=p(t,n);if(!(a&&"then"in a))return[3,2];u=sr();return[4,a];case 1:e=g.sent();u();return[3,3];case 2:e=a;g.label=3;case 3:if(!e){throw new Error('Constructor for "'.concat(t.O,"#").concat(n.G,'" was not found'))}if(!e.isProxied){{t.W=e.watchers;t.q=e.serializers;t.V=e.deserializers}_n(e,t,2);e.isProxied=true}o=vr("createInstance",t.O);{n.l|=8}try{new e(n)}catch(n){d(n,r)}{n.l&=-9}{n.l|=128}o();l=t.l&4;if(!l){On(n.o,r)}else{n.I=true}return[3,5];case 4:e=r.constructor;v=r.localName;customElements.whenDefined(v).then((function(){return n.l|=128}));g.label=5;case 5:if(e&&e.style){s=void 0;if(typeof e.style==="string"){s=e.style}c=yr(t);if(!b.has(c)||i.hotModuleReplacement){h=vr("registerStyles",t.O);hr(c,s,!!(t.l&1));h()}}g.label=6;case 6:y=n.H;m=function(){return ln(n,true)};if(y&&y["s-rc"]){y["s-rc"].push(m)}else{m()}return[3,8];case 7:w=g.sent();d(w,r);if(n.B){n.B();n.B=void 0}if(n._){n._(r)}return[3,8];case 8:return[2]}}))}))};var On=function(r,n){{yn(r,"connectedCallback",void 0,n)}};var Sn=function(r){if((O.l&1)===0){var n=l(r);if(!n){return}var e=n.t;var t=vr("connectedCallback",e.O);if(!(n.l&1)){n.l|=1;{if(e.l&(4|8)){$n(r)}}{var i=r;while(i=i.parentNode||i.host){if(i["s-p"]){on(n,n.H=i);break}}}if(e.i){Object.entries(e.i).map((function(n){var e=n[0],t=n[1][0];if(t&31&&e in r&&r[e]!==Object.prototype[e]){var i=r[e];delete r[e];r[e]=i}}))}{jn(r,n,e)}}else{if(n==null?void 0:n.o){On(n.o,r)}else if(n==null?void 0:n.m){n.m.then((function(){return On(n.o,r)}))}}t()}};var $n=function(r){if(!_.document){return}var n=r["s-cr"]=_.document.createComment("");n["s-cn"]=true;an(r,n,r.firstChild)};var Cn=function(r,n){{yn(r,"disconnectedCallback",void 0,n||r)}};var kn=function(r){return __awaiter(e,void 0,void 0,(function(){var n;return __generator(this,(function(e){if((O.l&1)===0){n=l(r);if(n==null?void 0:n.o){Cn(n.o,r)}else if(n==null?void 0:n.m){n.m.then((function(){return Cn(n.o,r)}))}}if(dr.has(r)){dr.delete(r)}if(r.shadowRoot&&dr.has(r.shadowRoot)){dr.delete(r.shadowRoot)}return[2]}))}))};var Nn=r("b",(function(r,n){if(n===void 0){n={}}var e;if(!_.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var t=vr();var i=[];var f=n.exclude||[];var a=_.customElements;var u=_.document.head;var o=u.querySelector("meta[charset]");var v=_.document.createElement("style");var c=[];var d;var h=true;Object.assign(O,n);O.$=new URL(n.resourcesUrl||"./",_.document.baseURI).href;var p=false;r.map((function(r){r[1].map((function(n){var e,t,u;var o={l:n[0],O:n[1],i:n[2],Y:n[3]};if(o.l&4){p=true}{o.i=n[2]}{o.U=[]}{o.W=(e=n[4])!=null?e:{};o.q=(t=n[5])!=null?t:{};o.V=(u=n[6])!=null?u:{}}var v=Rn(o.O);var b=function(r){__extends(n,r);function n(n){var e=r.call(this,n)||this;e.hasRegisteredEventListeners=false;n=e;s(n,o);return e}n.prototype.connectedCallback=function(){var r=this;var n=l(this);if(!n){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(h){c.push(this)}else{O.jmp((function(){return Sn(r)}))}};n.prototype.disconnectedCallback=function(){var r=this;O.jmp((function(){return kn(r)}));O.raf((function(){var n;var e=l(r);if(!e){return}var t=c.findIndex((function(n){return n===r}));if(t>-1){c.splice(t,1)}if(((n=e==null?void 0:e.P)==null?void 0:n.L)instanceof Node&&!e.P.L.isConnected){delete e.P.L}}))};n.prototype.componentOnReady=function(){var r;return(r=l(this))==null?void 0:r.m};return n}(HTMLElement);if(!(o.l&1)&&o.l&256){{G(b.prototype)}}else{Y(b.prototype)}if(o.l&64){b.formAssociated=true}o.S=r[0];if(!f.includes(v)&&!a.get(v)){i.push(v);a.define(v,_n(b,o,1))}}))}));if(i.length>0){if(p){v.textContent+=m}{v.textContent+=i.sort()+y}if(v.innerHTML.length){v.setAttribute("data-styles","");var b=(e=O.C)!=null?e:cr(_.document);if(b!=null){v.setAttribute("nonce",b)}u.insertBefore(v,o?o.nextSibling:u.firstChild)}}h=false;if(c.length){c.map((function(r){return r.connectedCallback()}))}else{{O.jmp((function(){return d=setTimeout(bn,30)}))}}t()}));var An=r("F",(function(r,n){return n}));var xn=function(){function r(){}return r}();function En(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}return r.reduceRight((function(r,n){return n(r)}),xn)}var Mn=r("s",(function(r){return O.C=r}));function Rn(r){return r}}}}));
|
|
@@ -1 +0,0 @@
|
|
|
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 s(){this.constructor=t}t.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}}();var __awaiter=this&&this.__awaiter||function(e,t,i,s){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function n(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s["throw"](e))}catch(e){r(e)}}function l(e){e.done?i(e.value):a(e.value).then(n,o)}l((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,a,r,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=o(0),n["throw"]=o(1),n["return"]=o(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(e){return function(t){return l([e,t])}}function l(o){if(s)throw new TypeError("Generator is already executing.");while(n&&(n=0,o[0]&&(i=0)),i)try{if(s=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];a=0}finally{s=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var s=0,a=t.length,r;s<a;s++){if(r||!(s in t)){if(!r)r=Array.prototype.slice.call(t,0,s);r[s]=t[s]}}return e.concat(r||Array.prototype.slice.call(t))};System.register(["./p-GjKJvOVG.system.js","./p-BkDQsB4R.system.js","./p-sDZFaZMN.system.js"],(function(e){"use strict";var t,i,s,a,r,n,o,l,d,c;return{setters:[function(e){t=e.M;i=e.r;s=e.c;a=e.h;r=e.a;n=e.g},function(e){o=e.f;l=e.s;d=e.r},function(e){c=e.v}],execute:function(){var f={Clear:"Clear",ShowPassword:"Show password",HidePassword:"Hide password"};var b={Close:"bds-icon-close",SightOn:"bds-icon-sight-on",SightOff:"bds-icon-sight-off"};function h(e){if(e===void 0){e="bds"}return"".concat(e,"-").concat(Math.random().toString(36).substr(2,9))}var u={TEXT:"text",PASSWORD:"password"};var x={OUTLINE:"outline",PLAIN:"plain"};var p={BLUR:"blur",CHANGE:"change",INPUT:"input",SUBMIT:"submit"};var v=function(){return'@charset "UTF-8";.bds-text-field__container,.bds-text-field__sublabel,.bds-text-field__actions,.bds-text-field__action,.bds-text-field__footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bds-text-field [slot=prefix],.bds-text-field__sublabel{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-xs)}.bds-text-field{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--boreal-spacing-2xs);width:var(--bds-text-field-width, 100%);font-family:var(--boreal-typography-font-family-primary);color:var(--boreal-text-default)}.bds-text-field__container{padding:var(--boreal-spacing-1xs);padding-left:0;height:var(--boreal-layout-l);border:1px solid var(--boreal-stroke-default-light);border-radius:var(--boreal-radius-xs);background-color:var(--boreal-ui-inverse);-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;overflow:hidden}.bds-text-field__sublabel{gap:var(--boreal-spacing-3xs);padding-left:var(--boreal-spacing-xs);white-space:nowrap}.bds-text-field__sublabel em[class^=bds-icon-],.bds-text-field__sublabel em[class*=" bds-icon-"]{width:var(--boreal-icons-m);height:var(--boreal-icons-m);font-size:var(--boreal-typography-font-size-md);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field [slot=prefix]{padding-left:var(--boreal-spacing-xs);overflow:hidden;white-space:nowrap;-ms-flex-negative:0;flex-shrink:0}.bds-text-field__control{min-width:0;width:100%;border:none;outline:none;background:transparent;padding:0;padding-left:var(--boreal-spacing-xs);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-text-field__control::-webkit-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::-moz-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control:-ms-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::-ms-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control:disabled{cursor:not-allowed}.bds-text-field__actions{padding-left:var(--boreal-spacing-xs);gap:var(--boreal-spacing-3xs)}.bds-text-field__action{-ms-flex-pack:center;justify-content:center;background:none;border:none;padding:var(--boreal-spacing-3xs);cursor:pointer;color:var(--boreal-icon-default-light);line-height:1;-webkit-transition:color 0.3s ease, opacity 0.3s ease;transition:color 0.3s ease, opacity 0.3s ease}.bds-text-field__action--clear em[class^=bds-icon-],.bds-text-field__action--clear em[class*=" bds-icon-"]{width:var(--boreal-icons-s);height:var(--boreal-icons-s);font-size:var(--boreal-typography-font-size-xs);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field__action--password em[class^=bds-icon-],.bds-text-field__action--password em[class*=" bds-icon-"]{width:var(--boreal-icons-l);height:var(--boreal-icons-l);font-size:var(--boreal-typography-font-size-lg);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field__action:hover{color:var(--boreal-icon-default-dark)}.bds-text-field__action:focus-visible{-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)}.bds-text-field__footer{-ms-flex-pack:justify;justify-content:space-between}.bds-text-field__char-count{-ms-flex-negative:0;flex-shrink:0;font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-xs);color:var(--boreal-text-default-light)}.bds-text-field--focused .bds-text-field__container{border-color:var(--boreal-stroke-focus);-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)}.bds-text-field--error .bds-text-field__container{border-color:var(--boreal-stroke-danger-base)}.bds-text-field--disabled{cursor:not-allowed}.bds-text-field--disabled .bds-text-field__container{background-color:var(--boreal-ui-default-lighter);border-color:var(--boreal-stroke-default-light)}.bds-text-field--disabled .bds-text-field__sublabel{color:var(--boreal-text-disabled)}.bds-text-field--disabled .bds-text-field__sublabel em[class^=bds-icon-],.bds-text-field--disabled .bds-text-field__sublabel em[class*=" bds-icon-"]{color:var(--boreal-icon-disabled)}.bds-text-field--disabled .bds-text-field__control{color:var(--boreal-icon-disabled)}.bds-text-field--readonly .bds-text-field__container{background-color:transparent;border:none}.bds-text-field--readonly .bds-text-field__control::-webkit-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::-moz-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control:-ms-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::-ms-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--plain .bds-text-field__container{border-color:transparent}.bds-text-field--plain.bds-text-field--focused .bds-text-field__container{border-color:var(--boreal-stroke-focus)}.bds-text-field--clear-on-hover .bds-text-field__action--clear{opacity:0;pointer-events:none}.bds-text-field--clear-on-hover:hover .bds-text-field__action--clear{opacity:1;pointer-events:auto}'};var g=e("bds_text_field",function(e){__extends(t,e);function t(t){var a=e.call(this)||this;i(a,t);a.valueChange=s(a,"valueChange");a.bdsInput=s(a,"bdsInput");a.bdsChange=s(a,"bdsChange");a.bdsFocus=s(a,"bdsFocus");a.bdsBlur=s(a,"bdsBlur");a.bdsClear=s(a,"bdsClear");a.bdsValidationChange=s(a,"bdsValidationChange");if(t.$hostElement$["s-ei"]){a.internals=t.$hostElement$["s-ei"]}else{a.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=a.internals}a.name="";a.disabled=false;a.required=false;a.isDisabled=false;a.value="";a.error=false;a.errorMessage="";a.customValidators=[];a.validationTiming=p.BLUR;a.type=u.TEXT;a.variant=x.OUTLINE;a.placeholder="";a.readOnly=false;a.autocomplete="off";a.pattern="";a.minLength=0;a.maxLength=0;a.label="";a.sublabel="";a.icon="";a.helperText="";a.info="";a.clearable=false;a.clearOnHover=false;a.charCount=0;a.counter=false;a.customWidth="";a.focused=false;a.showPassword=false;a.touched=false;a.dirty=false;a.currentCharCount=0;a.validationError=false;a.validationMessage="";a._valueAtFocus="";a._id=h("bds-text-field");a.invalidHandler=function(e){e.preventDefault();a.validationError=true;a.validationMessage=a.internals.validationMessage;a.bdsValidationChange.emit({valid:false,validity:a.internals.validity,value:a.value,touched:a.touched,dirty:a.dirty})};return a}t.prototype.checkValidity=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.internals.checkValidity()]}))}))};t.prototype.reportValidity=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.internals.reportValidity()]}))}))};t.prototype.onDisabledChange=function(e){this.isDisabled=e};t.prototype.checkPropValues=function(){c(Object.values(u),u.TEXT,this.el,"type");c(Object.values(x),x.OUTLINE,this.el,"variant");c(Object.values(p),p.BLUR,this.el,"validationTiming")};t.prototype.componentWillLoad=function(){this.checkPropValues();this.isDisabled=this.disabled;this.currentCharCount=this.value.length};t.prototype.componentDidLoad=function(){this.el.addEventListener("invalid",this.invalidHandler)};t.prototype.disconnectedCallback=function(){this.el.removeEventListener("invalid",this.invalidHandler)};t.prototype.onCustomValidatorsChange=function(){this.updateValidity()};t.prototype.onValueChange=function(e){l(this.internals,e);this.currentCharCount=e.length;this.updateValidity();this.valueChange.emit(e)};t.prototype.formAssociatedCallback=function(){l(this.internals,this.value);this.updateValidity()};t.prototype.formResetCallback=function(){this.value="";this.touched=false;this.dirty=false;this.currentCharCount=0;this.validationError=false;this.validationMessage="";l(this.internals,null);this.updateValidity()};t.prototype.formStateRestoreCallback=function(e,t){this.value=typeof e==="string"?e:"";l(this.internals,this.value);this.updateValidity()};t.prototype.updateValidity=function(e){if(e===void 0){e=false}var t=d(this.internals,__spreadArray(__spreadArray([],this.validators,true),this.customValidators,true),this.el);if(e){this.validationError=!t;this.validationMessage=t?"":this.internals.validationMessage;this.bdsValidationChange.emit({valid:t,validity:this.internals.validity,value:this.value,touched:this.touched,dirty:this.dirty})}};t.prototype.handleInput=function(e){this.value=e.target.value;this.dirty=true;this.bdsInput.emit({value:this.value,event:e});if(this.validationTiming===p.INPUT){this.updateValidity(true)}};t.prototype.handleChange=function(e){this.bdsChange.emit({value:this.value,event:e});if(this.validationTiming===p.CHANGE){this.updateValidity(true)}};t.prototype.handleFocus=function(e){this.focused=true;this._valueAtFocus=this.value;this.bdsFocus.emit({event:e})};t.prototype.handleBlur=function(e){this.focused=false;this.touched=true;this.bdsBlur.emit({event:e});if(this.validationTiming===p.BLUR){this.updateValidity(true)}else if(this.validationTiming===p.CHANGE&&this.value!==this._valueAtFocus){this.updateValidity(true)}};t.prototype.handleShowPassword=function(){this.showPassword=!this.showPassword};t.prototype.handleClear=function(){var e;this.value="";this.dirty=true;this.validationError=false;this.validationMessage="";this.bdsClear.emit();(e=this.el.querySelector("input"))===null||e===void 0?void 0:e.focus()};t.prototype.handleMouseDown=function(e){if(this.readOnly){e.preventDefault()}};Object.defineProperty(t.prototype,"validators",{get:function(){var e=this;return[{key:"valueMissing",isValid:function(){return!e.required||e.value!==""},message:"This field is required. Please fill it out."},{key:"tooShort",isValid:function(){return e.minLength===0||e.value.length>=e.minLength},message:"Please enter at least ".concat(this.minLength," characters.")},{key:"patternMismatch",isValid:function(){if(e.pattern===""||e.value==="")return true;try{return new RegExp(e.pattern).test(e.value)}catch(e){return true}},message:"Please match the requested format."}]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"effectiveMaxLength",{get:function(){if(this.maxLength!==0)return this.maxLength;if(this.counter&&this.charCount>0)return this.charCount;return undefined},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"classMap",{get:function(){return{"bds-text-field":true,"bds-text-field--error":this.error||this.validationError,"bds-text-field--disabled":this.isDisabled,"bds-text-field--focused":this.focused,"bds-text-field--readonly":this.readOnly,"bds-text-field--plain":this.variant===x.PLAIN,"bds-text-field--clear-on-hover":this.clearOnHover}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hostStyle",{get:function(){return this.customWidth!==""?{"--bds-text-field-width":this.customWidth}:undefined},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"iconClear",{get:function(){return this.clearable||this.clearOnHover?b.Close:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"showPasswordIcon",{get:function(){return this.showPassword?b.SightOn:b.SightOff},enumerable:false,configurable:true});t.prototype.render=function(){var e=this;var t="".concat(this._id,"-label");var i="".concat(this._id,"-helper");var s=(this.clearable||this.clearOnHover)&&this.value!==""&&!this.isDisabled&&!this.readOnly;var n=this.error||this.validationError;var o=this.error&&this.errorMessage!==""?this.errorMessage:this.validationError&&this.validationMessage!==""?this.validationMessage:this.helperText;var l=o!==""||this.counter&&this.charCount>0;var d=this.isDisabled?"disabled":n?"error":"default";return a(r,{key:"8fcf734b92dfa2ad75a32bef27efea78bd61dd63",class:this.classMap,style:this.hostStyle,tabIndex:-1,onFocus:function(){var t;return!e.readOnly&&((t=e.el.querySelector("input"))===null||t===void 0?void 0:t.focus())}},this.label!==""&&a("bds-typography",{key:"d50b6407278dd93b52fbbdbbc5e999a1185d4649",id:t,variant:"label",htmlFor:this._id,isRequired:this.required,tooltipText:this.info!==""?this.info:undefined,state:d},this.label),a("div",{key:"89dc5c7830197786e7dc67b87f64a0b63c8a8c84",class:"bds-text-field__container"},(this.icon!==""||this.sublabel!=="")&&a("span",{key:"a4139e0ce3b3d37bb33d55b5811e439974ed9d53",class:"bds-text-field__sublabel"},this.icon!==""&&a("em",{key:"5fc8f5a49b348fe07c63242243274946e21aa782",class:this.icon}),this.sublabel),a("slot",{key:"a8f62dba555a26aba3b1105402f0afca1378c83a",name:"prefix"}),a("input",{key:"ba2161c8d56c42847c7006d1742a2b60613f4628",id:this._id,class:"bds-text-field__control","aria-labelledby":this.label!==""?t:undefined,"aria-describedby":l&&o!==""?i:undefined,"aria-invalid":this.error||this.validationError?"true":undefined,"aria-required":this.required?"true":undefined,type:this.type===u.PASSWORD&&this.showPassword?u.TEXT:this.type,value:this.value,disabled:this.isDisabled,readOnly:this.readOnly,tabIndex:this.readOnly?-1:undefined,placeholder:this.placeholder,autocomplete:this.autocomplete,pattern:this.pattern!==""?this.pattern:undefined,minLength:this.minLength!==0?this.minLength:undefined,maxLength:this.effectiveMaxLength,onMouseDown:function(t){return e.handleMouseDown(t)},onInput:function(t){return e.handleInput(t)},onChange:function(t){return e.handleChange(t)},onFocus:function(t){return e.handleFocus(t)},onBlur:function(t){return e.handleBlur(t)}}),(s||this.type===u.PASSWORD)&&a("div",{key:"c9ae74b2be87e2759d60ad69c9c91b95bc199163",class:"bds-text-field__actions"},s&&a("button",{key:"d94534386505f9c54aabe892aec58d81b6a0ea94",class:"bds-text-field__action bds-text-field__action--clear",type:"button","aria-label":f.Clear,onClick:function(){return e.handleClear()}},a("em",{key:"7899ffad5be71b731ae8ead1d5601e3fc6b5f6a5",class:this.iconClear})),this.type===u.PASSWORD&&a("button",{key:"612aff7de193d9f61b955e686484c13baca3ff57",class:"bds-text-field__action bds-text-field__action--password",type:"button","aria-label":this.showPassword?f.HidePassword:f.ShowPassword,onClick:function(){return e.handleShowPassword()}},a("em",{key:"e886085b840a351a7455a1adb685996835e47118",class:this.showPasswordIcon})))),l&&a("div",{key:"9b47bbaff802d0c4125e45c87f1e7366418dfdcc",class:"bds-text-field__footer"},o!==""&&a("bds-typography",{key:"64265da85a16152af33b3f94c05e4d8562dc26df",id:i,variant:"helper",state:d},o),this.counter&&this.charCount>0&&a("span",{key:"2a264545ba46b8d6908adabe729a1256334535ef",class:"bds-text-field__char-count"},this.currentCharCount,"/",this.charCount)))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:[{onDisabledChange:0}],type:[{checkPropValues:0}],variant:[{checkPropValues:0}],validationTiming:[{checkPropValues:0}],customValidators:[{onCustomValidatorsChange:0}],value:[{onValueChange:0}]}},enumerable:false,configurable:true});return t}(t(o)));g.style=v()}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as t,h as r,g as b}from"./p-D4EFsvs1.js";import{C as a}from"./p-BhTPNsBb.js";import{a as e,b as s,B as n}from"./p-C8mRvnTA.js";import{v as d}from"./p-vfAIdwy0.js";const i={DEFAULT:"default",PRIMARY:"primary",SUCCESS:"success",ERROR:"error"},u=class{constructor(r){o(this,r),this.bdsClick=t(this,"bdsClick"),r.$hostElement$["s-ei"]?this.internals=r.$hostElement$["s-ei"]:(this.internals=r.$hostElement$.attachInternals(),r.$hostElement$["s-ei"]=this.internals),this.currentState=a.DEFAULT,this.label="",this.disabled=!1,this.name="",this.type=e.BUTTON,this.color=i.DEFAULT,this.variant=s.DEFAULT,this.size=n.MEDIUM,this.loading=!1,this.disclosure=!1,this.handleKeyDown=o=>{"Enter"!==o.key&&" "!==o.key||(this.currentState=a.ACTIVE,o.preventDefault(),this.bdsClick.emit(o))},this.handleKeyUp=()=>{this.currentState=a.DEFAULT},this.handleClick=o=>{o.preventDefault(),o.stopPropagation(),this.disabled||this.loading||(this.type===e.SUBMIT||this.type===e.RESET?this.processFormClick():this.bdsClick.emit(o))}}checkPropValues(){d(Object.values(e),e.BUTTON,this.el,"type"),d(Object.values(i),i.DEFAULT,this.el,"color"),d(Object.values(s),s.DEFAULT,this.el,"variant"),d(Object.values(n),n.MEDIUM,this.el,"size")}componentWillLoad(){this.checkPropValues()}componentDidLoad(){this.setupFormAssociation()}setupFormAssociation(){const o=this.el.closest("form");this.internalForm=(this.internals&&"form"in this.internals?this.internals.form:null)||o||void 0}processFormClick(){if(void 0===this.internalForm)return void console.warn("[BorealDS Button] No form found for submit/reset action. Please ensure the button is within a form or that the form is properly associated.");const o={[e.SUBMIT]:()=>{"function"==typeof this.internalForm?.requestSubmit?this.internalForm.requestSubmit():this.internalForm?.submit()},[e.RESET]:()=>this.internalForm?.reset()}[this.type];"function"==typeof o&&o()}get getClassMap(){return{"bds-button":!0,"bds-button--is-disabled":this.disabled,"bds-button--is-loading":this.loading,[`bds-button--state-${this.currentState}`]:!0,[`bds-button--${this.color}`]:!0,[`bds-button--var-${this.variant}`]:!0,[`bds-button--size-${this.size}`]:!0}}render(){return r("button",{key:"4f71bb10d1910ea7b1fc0d64eedb6269e7049a89",name:this.name,class:this.getClassMap,type:this.type,disabled:this.disabled||this.loading,"aria-label":this.label||void 0,"aria-disabled":this.disabled||this.loading,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp},r("div",{key:"e28da0b776917c6a2c0efc6c7140a2bfa979b708",class:"bds-button__content"},r("span",{key:"ce3d60b504bbf38dc7116560dbfbe51c955f79db",class:"bds-button__content-icon bds-button__content-icon--start"},r("slot",{key:"23b6bbb9d4fbf8ad5e0e584cddaac477edf4a91e",name:"icon"})),r("slot",{key:"adcdc5d87a8db4e346d272b843966405692a2a32"}),r("span",{key:"c908b3a8a18ba4cce854ee20d064178f6420d007",class:"bds-button__content-badge"},r("slot",{key:"ce66f69366dc7436a8f8ca1b2b8f55b91a225ec8",name:"badge"})),this.disclosure&&r("span",{key:"921c0f144f2616da238356705c1e5ff634406b87",class:"bds-button__content-icon"},r("i",{key:"9dc7a891ac4fcb1a73113aeae83976d74cff0c2e",class:"bds-icon-chevron-down"}))))}static get formAssociated(){return!0}get el(){return b(this)}static get watchers(){return{type:[{checkPropValues:0}],color:[{checkPropValues:0}],variant:[{checkPropValues:0}],size:[{checkPropValues:0}]}}};u.style='@charset "UTF-8";bds-button{position:relative;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}.bds-button{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid transparent;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-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;margin:var(--boreal-spacing-2xs) var(--boreal-spacing-3xs);outline:none;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-semibold);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;vertical-align:middle}.bds-button .bds-button__content{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs)}.bds-button--is-loading{pointer-events:none;position:relative;color:transparent !important}.bds-button--is-loading::after{position:absolute;content:" ";-webkit-box-sizing:inherit;box-sizing:inherit;-webkit-animation:rotateSpinner 0.5s linear infinite;animation:rotateSpinner 0.5s linear infinite;border-radius:9999px;display:block;height:1em;width:1em;rotate:45deg;left:calc(50% - 0.5em);top:calc(50% - 0.5em);border:3px solid;border-right-color:transparent;border-top-color:transparent}.bds-button--size-small{border-radius:var(--boreal-radius-xs);font-size:var(--boreal-typography-font-size-xs);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-2xs);line-height:var(--boreal-typography-line-height-xs);height:26px}.bds-button--size-small .bds-button__content{padding:var(--boreal-spacing-3xs) var(--boreal-spacing-2xs)}.bds-button--size-small .bds-button__content-icon{display:-ms-flexbox;display:flex;font-size:var(--boreal-typography-font-size-sm);line-height:var(--boreal-typography-line-height-xs)}.bds-button--size-small .bds-button__content-icon:empty{display:none}.bds-button--size-small .bds-button__content{}.bds-button--size-small .bds-button__content-badge:empty{display:none}.bds-button--size-small .bds-button__content-badge{display:none}.bds-button--size-medium{border-radius:var(--boreal-radius-xs);font-size:var(--boreal-typography-font-size-sm);padding:var(--boreal-spacing-2xs) var(--boreal-spacing-1xs);line-height:var(--boreal-typography-line-height-sm);height:32px}.bds-button--size-medium .bds-button__content{padding:var(--boreal-spacing-3xs) var(--boreal-spacing-2xs)}.bds-button--size-medium .bds-button__content-icon{display:-ms-flexbox;display:flex;font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-sm)}.bds-button--size-medium .bds-button__content-icon:empty{display:none}.bds-button--size-medium .bds-button__content{}.bds-button--size-medium .bds-button__content-badge:empty{display:none}.bds-button--size-large{border-radius:var(--boreal-radius-xs);font-size:var(--boreal-typography-font-size-md);padding:var(--boreal-spacing-xs);line-height:var(--boreal-typography-line-height-md);height:44px}.bds-button--size-large .bds-button__content{padding:var(--boreal-spacing-3xs) var(--boreal-spacing-2xs)}.bds-button--size-large .bds-button__content-icon{display:-ms-flexbox;display:flex;font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-md)}.bds-button--size-large .bds-button__content-icon:empty{display:none}.bds-button--size-large .bds-button__content{}.bds-button--size-large .bds-button__content-badge:empty{display:none}.bds-button.bds-button--var-default.bds-button--default{color:var(--boreal-text-default);background-color:var(--boreal-ui-inverse);border-color:transparent}.bds-button.bds-button--var-default.bds-button--default:hover{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-default.bds-button--default:focus{background-color:var(--boreal-ui-default-lighter);-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)}.bds-button.bds-button--var-default.bds-button--default:active,.bds-button.bds-button--var-default.bds-button--default.bds-button--state-active{background-color:var(--boreal-ui-default-lighter);-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}.bds-button.bds-button--var-default.bds-button--default.bds-button--is-disabled,.bds-button.bds-button--var-default.bds-button--default.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-disabled);background-color:var(--boreal-ui-inverse);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-default.bds-button--default.bds-button--is-loading::after{border-left-color:var(--boreal-text-disabled);border-bottom-color:var(--boreal-text-disabled)}.bds-button.bds-button--var-default.bds-button--primary{color:var(--boreal-text-inverse);background-color:var(--boreal-ui-primary-base);border-color:transparent}.bds-button.bds-button--var-default.bds-button--primary:hover{background-color:var(--boreal-ui-primary-dark);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-default.bds-button--primary:focus{background-color:var(--boreal-ui-primary-base);-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)}.bds-button.bds-button--var-default.bds-button--primary:active,.bds-button.bds-button--var-default.bds-button--primary.bds-button--state-active{background-color:var(--boreal-ui-primary-dark);-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)}.bds-button.bds-button--var-default.bds-button--primary.bds-button--is-disabled,.bds-button.bds-button--var-default.bds-button--primary.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-inverse);background-color:var(--boreal-ui-primary-light);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-default.bds-button--primary.bds-button--is-loading::after{border-left-color:var(--boreal-text-inverse);border-bottom-color:var(--boreal-text-inverse)}.bds-button.bds-button--var-default.bds-button--success{color:var(--boreal-text-inverse);background-color:var(--boreal-ui-success-base);border-color:transparent}.bds-button.bds-button--var-default.bds-button--success:hover{background-color:var(--boreal-ui-success-dark);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-default.bds-button--success:focus{background-color:var(--boreal-ui-success-base);-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)}.bds-button.bds-button--var-default.bds-button--success:active,.bds-button.bds-button--var-default.bds-button--success.bds-button--state-active{background-color:var(--boreal-ui-success-dark);-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)}.bds-button.bds-button--var-default.bds-button--success.bds-button--is-disabled,.bds-button.bds-button--var-default.bds-button--success.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-inverse);background-color:var(--boreal-ui-success-light);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-default.bds-button--success.bds-button--is-loading::after{border-left-color:var(--boreal-text-inverse);border-bottom-color:var(--boreal-text-inverse)}.bds-button.bds-button--var-default.bds-button--error{color:var(--boreal-text-inverse);background-color:var(--boreal-ui-danger-base);border-color:transparent}.bds-button.bds-button--var-default.bds-button--error:hover{background-color:var(--boreal-ui-danger-dark);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-default.bds-button--error:focus{background-color:var(--boreal-ui-danger-base);-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)}.bds-button.bds-button--var-default.bds-button--error:active,.bds-button.bds-button--var-default.bds-button--error.bds-button--state-active{background-color:var(--boreal-ui-danger-dark);-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)}.bds-button.bds-button--var-default.bds-button--error.bds-button--is-disabled,.bds-button.bds-button--var-default.bds-button--error.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-inverse);background-color:var(--boreal-ui-danger-light);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-default.bds-button--error.bds-button--is-loading::after{border-left-color:var(--boreal-text-inverse);border-bottom-color:var(--boreal-text-inverse)}.bds-button.bds-button--var-outline{background-color:transparent}.bds-button.bds-button--var-outline.bds-button--default{color:var(--boreal-text-default);background-color:transparent;border-color:var(--boreal-stroke-default-light)}.bds-button.bds-button--var-outline.bds-button--default:hover{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-outline.bds-button--default:focus{background-color:var(--boreal-ui-default-lighter);-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)}.bds-button.bds-button--var-outline.bds-button--default:active,.bds-button.bds-button--var-outline.bds-button--default.bds-button--state-active{background-color:var(--boreal-ui-default-lighter);-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)}.bds-button.bds-button--var-outline.bds-button--default.bds-button--is-disabled,.bds-button.bds-button--var-outline.bds-button--default.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-disabled);background-color:var(--boreal-ui-inverse);border-color:var(--boreal-stroke-default-light);-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-outline.bds-button--default.bds-button--is-loading::after{border-left-color:var(--boreal-text-disabled);border-bottom-color:var(--boreal-text-disabled)}.bds-button.bds-button--var-outline.bds-button--primary{color:var(--boreal-text-primary-base);background-color:transparent;border-color:var(--boreal-ui-primary-base)}.bds-button.bds-button--var-outline.bds-button--primary:hover{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-outline.bds-button--primary:focus{background-color:var(--boreal-ui-primary-lighter);-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)}.bds-button.bds-button--var-outline.bds-button--primary:active,.bds-button.bds-button--var-outline.bds-button--primary.bds-button--state-active{background-color:var(--boreal-ui-primary-lighter);-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)}.bds-button.bds-button--var-outline.bds-button--primary.bds-button--is-disabled,.bds-button.bds-button--var-outline.bds-button--primary.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-primary-light);background-color:transparent;border-color:var(--boreal-stroke-primary-light);-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-outline.bds-button--primary.bds-button--is-loading::after{border-left-color:var(--boreal-text-primary-light);border-bottom-color:var(--boreal-text-primary-light)}.bds-button.bds-button--var-outline.bds-button--success{color:var(--boreal-text-success-base);background-color:transparent;border-color:var(--boreal-stroke-success-base)}.bds-button.bds-button--var-outline.bds-button--success:hover{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-outline.bds-button--success:focus{background-color:var(--boreal-ui-success-lighter);-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)}.bds-button.bds-button--var-outline.bds-button--success:active,.bds-button.bds-button--var-outline.bds-button--success.bds-button--state-active{background-color:var(--boreal-ui-success-lighter);-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)}.bds-button.bds-button--var-outline.bds-button--success.bds-button--is-disabled,.bds-button.bds-button--var-outline.bds-button--success.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-success-light);background-color:transparent;border-color:var(--boreal-stroke-success-light);-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-outline.bds-button--success.bds-button--is-loading::after{border-left-color:var(--boreal-text-success-light);border-bottom-color:var(--boreal-text-success-light)}.bds-button.bds-button--var-outline.bds-button--error{color:var(--boreal-text-danger-base);background-color:transparent;border-color:var(--boreal-stroke-danger-base)}.bds-button.bds-button--var-outline.bds-button--error:hover{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-outline.bds-button--error:focus{background-color:var(--boreal-ui-danger-lighter);-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)}.bds-button.bds-button--var-outline.bds-button--error:active,.bds-button.bds-button--var-outline.bds-button--error.bds-button--state-active{background-color:var(--boreal-ui-danger-lighter);-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)}.bds-button.bds-button--var-outline.bds-button--error.bds-button--is-disabled,.bds-button.bds-button--var-outline.bds-button--error.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-danger-light);background-color:transparent;border-color:var(--boreal-stroke-danger-light);-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-outline.bds-button--error.bds-button--is-loading::after{border-left-color:var(--boreal-text-danger-light);border-bottom-color:var(--boreal-text-danger-light)}.bds-button.bds-button--var-plain{background-color:transparent}.bds-button.bds-button--var-plain.bds-button--default{color:var(--boreal-text-default);background-color:transparent;border-color:transparent}.bds-button.bds-button--var-plain.bds-button--default:hover{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-plain.bds-button--default:focus{background-color:var(--boreal-ui-default-lighter);-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)}.bds-button.bds-button--var-plain.bds-button--default:active,.bds-button.bds-button--var-plain.bds-button--default.bds-button--state-active{background-color:var(--boreal-ui-default-lighter);-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}.bds-button.bds-button--var-plain.bds-button--default.bds-button--is-disabled,.bds-button.bds-button--var-plain.bds-button--default.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-disabled);background-color:var(--boreal-ui-inverse);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-plain.bds-button--default.bds-button--is-loading::after{border-left-color:var(--boreal-text-disabled);border-bottom-color:var(--boreal-text-disabled)}.bds-button.bds-button--var-plain.bds-button--primary{color:var(--boreal-text-primary-base);background-color:transparent;border-color:transparent}.bds-button.bds-button--var-plain.bds-button--primary:hover{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-plain.bds-button--primary:focus{background-color:var(--boreal-ui-primary-lighter);-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)}.bds-button.bds-button--var-plain.bds-button--primary:active,.bds-button.bds-button--var-plain.bds-button--primary.bds-button--state-active{background-color:var(--boreal-ui-primary-lighter);-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}.bds-button.bds-button--var-plain.bds-button--primary.bds-button--is-disabled,.bds-button.bds-button--var-plain.bds-button--primary.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-primary-light);background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-plain.bds-button--primary.bds-button--is-loading::after{border-left-color:var(--boreal-text-primary-light);border-bottom-color:var(--boreal-text-primary-light)}.bds-button.bds-button--var-plain.bds-button--success{color:var(--boreal-text-success-base);background-color:transparent;border-color:transparent}.bds-button.bds-button--var-plain.bds-button--success:hover{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-plain.bds-button--success:focus{background-color:var(--boreal-ui-success-lighter);-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)}.bds-button.bds-button--var-plain.bds-button--success:active,.bds-button.bds-button--var-plain.bds-button--success.bds-button--state-active{background-color:var(--boreal-ui-success-lighter);-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}.bds-button.bds-button--var-plain.bds-button--success.bds-button--is-disabled,.bds-button.bds-button--var-plain.bds-button--success.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-success-light);background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-plain.bds-button--success.bds-button--is-loading::after{border-left-color:var(--boreal-text-success-light);border-bottom-color:var(--boreal-text-success-light)}.bds-button.bds-button--var-plain.bds-button--error{color:var(--boreal-text-danger-base);background-color:transparent;border-color:transparent}.bds-button.bds-button--var-plain.bds-button--error:hover{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-plain.bds-button--error:focus{background-color:var(--boreal-ui-danger-lighter);-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)}.bds-button.bds-button--var-plain.bds-button--error:active,.bds-button.bds-button--var-plain.bds-button--error.bds-button--state-active{background-color:var(--boreal-ui-danger-lighter);-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}.bds-button.bds-button--var-plain.bds-button--error.bds-button--is-disabled,.bds-button.bds-button--var-plain.bds-button--error.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-danger-light);background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-plain.bds-button--error.bds-button--is-loading::after{border-left-color:var(--boreal-text-danger-light);border-bottom-color:var(--boreal-text-danger-light)}@-webkit-keyframes rotateSpinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotateSpinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}';export{u as bds_button}
|