@telesign/boreal-web-components 0.1.0-alpha.3 → 0.1.0-alpha.5
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-group.d.ts +11 -0
- package/components-build/bds-button-group.js +1 -0
- package/components-build/bds-button.js +1 -1
- package/components-build/bds-checkbox-card.d.ts +11 -0
- package/components-build/bds-checkbox-card.js +1 -0
- 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-radio-button.d.ts +11 -0
- package/components-build/bds-radio-button.js +1 -0
- package/components-build/bds-radio-card.d.ts +11 -0
- package/components-build/bds-radio-card.js +1 -0
- package/components-build/bds-radio-group.d.ts +11 -0
- package/components-build/bds-radio-group.js +1 -0
- package/components-build/bds-radio.d.ts +11 -0
- package/components-build/bds-radio.js +1 -0
- 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-BSlaf0ff.js +1 -0
- package/components-build/p-Bfazyxqi.js +1 -0
- package/components-build/p-CPvuMm5C.js +1 -0
- package/components-build/p-Cbibqaz0.js +1 -0
- package/components-build/p-ClR-wgiT.js +1 -0
- package/components-build/p-DfaYciGa.js +1 -0
- package/components-build/p-Dh8DSJs_.js +1 -0
- package/components-build/p-DhSchGPI.js +1 -0
- package/components-build/p-N_tqtRV2.js +1 -0
- package/components-build/p-bAMuJ4Jx.js +1 -0
- package/components-build/p-c2z3tneT.js +1 -0
- package/components-build/p-dz9-Q2N8.js +1 -0
- package/components-build/{p-CaHOghy5.js → p-fUK0GCeC.js} +1 -1
- package/components-build/p-iq2UuV7c.js +1 -0
- package/components-build/p-kGnB15Lz.js +1 -0
- package/components-build/p-nxYzL9uu.js +1 -0
- package/custom-elements.json +4611 -891
- 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-024d90b0.system.entry.js +1 -0
- package/dist/boreal-web-components/p-06DrzEMB.system.js +1 -0
- package/dist/boreal-web-components/p-11e4c0ec.system.entry.js +1 -0
- package/dist/boreal-web-components/p-147d6652.system.entry.js +1 -0
- package/dist/boreal-web-components/p-148d510f.entry.js +1 -0
- package/dist/boreal-web-components/p-19f9352d.entry.js +1 -0
- package/dist/boreal-web-components/p-277f142e.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-8c57e06a.entry.js → p-2adf2cd5.entry.js} +1 -1
- package/dist/boreal-web-components/p-2be4aa3a.system.entry.js +1 -0
- package/dist/boreal-web-components/p-340896b2.entry.js +1 -0
- package/dist/boreal-web-components/p-365e8e5c.system.entry.js +1 -0
- package/dist/boreal-web-components/p-3d4ce8eb.system.entry.js +1 -0
- package/dist/boreal-web-components/p-44a8fde5.entry.js +1 -0
- package/dist/boreal-web-components/{p-efe57901.system.entry.js → p-48ebbfbe.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-5fa53a80.system.entry.js → p-4dc01078.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-5681b294.system.entry.js +1 -0
- package/dist/boreal-web-components/p-5ed75075.entry.js +1 -0
- package/dist/boreal-web-components/p-635f676b.system.entry.js +1 -0
- package/dist/boreal-web-components/p-6629be14.entry.js +1 -0
- package/dist/boreal-web-components/p-68b83680.system.entry.js +1 -0
- package/dist/boreal-web-components/p-6a60d134.system.entry.js +1 -0
- package/dist/boreal-web-components/p-71ed1e1d.entry.js +1 -0
- package/dist/boreal-web-components/p-732e98f1.system.entry.js +1 -0
- package/dist/boreal-web-components/p-77658a5b.system.entry.js +1 -0
- package/dist/boreal-web-components/p-7aff4c78.entry.js +1 -0
- package/dist/boreal-web-components/p-7bb88855.entry.js +1 -0
- package/dist/boreal-web-components/p-7d3a8f61.entry.js +1 -0
- package/dist/boreal-web-components/p-7e672cce.entry.js +1 -0
- package/dist/boreal-web-components/p-7ebc67c9.entry.js +1 -0
- package/dist/boreal-web-components/p-81401e2a.system.entry.js +1 -0
- package/dist/boreal-web-components/p-8289e506.entry.js +1 -0
- package/dist/boreal-web-components/p-82d15372.entry.js +1 -0
- package/dist/boreal-web-components/p-851c06f2.entry.js +1 -0
- package/dist/boreal-web-components/p-8a3716ec.entry.js +1 -0
- package/dist/boreal-web-components/p-8f4f8af0.system.entry.js +1 -0
- package/dist/boreal-web-components/p-93066db4.system.entry.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-C-g3hhl_.system.js +1 -0
- package/dist/boreal-web-components/p-C0P3gzq5.system.js +1 -0
- package/dist/boreal-web-components/p-C4HM8wQe.js +1 -0
- package/dist/boreal-web-components/p-CPvuMm5C.js +1 -0
- package/dist/boreal-web-components/p-CRMH6mfq.system.js +1 -0
- package/dist/boreal-web-components/p-CU_dRLdk.system.js +1 -0
- package/dist/boreal-web-components/p-CW4-dkCF.system.js +1 -0
- package/dist/boreal-web-components/p-CXz1RLGi.system.js +1 -0
- package/dist/boreal-web-components/p-DCKg5Cg_.system.js +2 -0
- package/dist/boreal-web-components/{p-BuxZeJbu.system.js → p-DSU8tkVw.system.js} +1 -1
- package/dist/boreal-web-components/p-DYlZcFrB.system.js +1 -0
- package/dist/boreal-web-components/p-DfaYciGa.js +1 -0
- package/dist/boreal-web-components/p-DhSchGPI.js +1 -0
- package/dist/boreal-web-components/p-DlVzZK7o.js +1 -0
- package/dist/boreal-web-components/p-DlYG-OVB.js +1 -0
- package/dist/boreal-web-components/p-DnIhjwCH.system.js +1 -0
- package/dist/boreal-web-components/p-DpnBDSUm.system.js +1 -0
- package/dist/boreal-web-components/p-Dwo1hcd9.js +1 -0
- package/dist/boreal-web-components/p-RhSdMyWk.system.js +1 -0
- package/dist/boreal-web-components/{p-CaHOghy5.js → p-U9yfbs7i.js} +1 -1
- package/dist/boreal-web-components/p-a73659ac.system.entry.js +1 -0
- package/dist/boreal-web-components/p-b2ad9535.system.entry.js +1 -0
- package/dist/boreal-web-components/p-d4c30d2b.entry.js +1 -0
- package/dist/boreal-web-components/p-db0c10b9.system.entry.js +1 -0
- package/dist/boreal-web-components/p-dc7d429c.entry.js +1 -0
- package/dist/boreal-web-components/p-dca16a3d.entry.js +1 -0
- package/dist/boreal-web-components/p-de846c43.system.entry.js +1 -0
- package/dist/boreal-web-components/p-df087e23.system.entry.js +1 -0
- package/dist/boreal-web-components/p-dfb4854e.entry.js +1 -0
- package/dist/boreal-web-components/p-dz9-Q2N8.js +1 -0
- package/dist/boreal-web-components/p-e09b4d14.system.entry.js +1 -0
- package/dist/boreal-web-components/p-e0a41cab.system.entry.js +1 -0
- package/dist/boreal-web-components/p-e55f2a8b.entry.js +1 -0
- package/dist/boreal-web-components/p-e7af1e1a.entry.js +1 -0
- package/dist/boreal-web-components/p-efe159aa.entry.js +1 -0
- package/dist/boreal-web-components/p-f65e9d0c.system.entry.js +1 -0
- package/dist/boreal-web-components/p-f792aa74.entry.js +1 -0
- package/dist/boreal-web-components/p-fb9a0e94.entry.js +1 -0
- package/dist/boreal-web-components/p-iq2UuV7c.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/p-wREMI3WA.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-rKl2za5q.js +18 -0
- package/dist/cjs/Logger-DnziItRH.js +51 -0
- package/dist/cjs/{attributes-wIHueigW.js → attributes-CgRFplrN.js} +3 -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 +13 -6
- package/dist/cjs/bds-button-group.cjs.entry.js +95 -0
- package/dist/cjs/bds-button.cjs.entry.js +11 -17
- package/dist/cjs/bds-checkbox-card.cjs.entry.js +121 -0
- package/dist/cjs/bds-checkbox.cjs.entry.js +13 -6
- package/dist/cjs/bds-dialog.cjs.entry.js +8 -7
- 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 +493 -0
- package/dist/cjs/bds-list-menu.cjs.entry.js +199 -0
- package/dist/cjs/bds-popover.cjs.entry.js +19 -9
- package/dist/cjs/bds-radio-button.cjs.entry.js +60 -0
- package/dist/cjs/bds-radio-card.cjs.entry.js +76 -0
- package/dist/cjs/bds-radio-group.cjs.entry.js +285 -0
- package/dist/cjs/bds-radio.cjs.entry.js +60 -0
- 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 +8 -17
- package/dist/cjs/bds-toggle.cjs.entry.js +187 -0
- package/dist/cjs/bds-tooltip_2.cjs.entry.js +321 -0
- package/dist/cjs/boreal-web-components.cjs.js +2 -2
- package/dist/cjs/coreColors-CQGojc0l.js +10 -0
- package/dist/cjs/{enum-DLblRCkQ.js → enum-DeTWfR0D.js} +3 -3
- package/dist/cjs/form-associated.mixin-BCR6bj29.js +33 -0
- package/dist/cjs/{anchored.mixin-CnIwkaUi.js → getOffset-k4ezB-eT.js} +45 -76
- package/dist/cjs/{index-BcSjvXJk.js → index-CwYIVC9N.js} +64 -0
- package/dist/cjs/{internals-X77qKxsK.js → internals-D8x7GMfR.js} +0 -31
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/menu-BxKaEajh.js +8 -0
- package/dist/cjs/orientation-DQAIleEJ.js +8 -0
- 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 +16 -0
- package/dist/collection/components/actions/bds-button/bds-button.css +19 -19
- package/dist/collection/components/actions/bds-button/bds-button.js +8 -8
- package/dist/collection/components/actions/bds-button/types/enum.js +3 -3
- package/dist/collection/components/actions/bds-button-group/bds-button-group.css +77 -0
- package/dist/collection/components/actions/bds-button-group/bds-button-group.js +245 -0
- package/dist/collection/components/actions/bds-button-group/types/IButtonGroup.js +1 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.css +51 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.js +400 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/types/IListMenu.js +1 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/types/enum.js +4 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/types/types.js +1 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.css +87 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.js +482 -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.css +9 -8
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox.js +7 -1
- package/dist/collection/components/forms/bds-checkbox-card/bds-checkbox-card.css +127 -0
- package/dist/collection/components/forms/bds-checkbox-card/bds-checkbox-card.js +397 -0
- package/dist/collection/components/forms/bds-checkbox-card/types/ICheckboxCard.js +1 -0
- package/dist/collection/components/forms/bds-flag/bds-flag.js +1 -1
- package/dist/collection/components/forms/bds-radio/bds-radio.css +121 -0
- package/dist/collection/components/forms/bds-radio/bds-radio.js +238 -0
- package/dist/collection/components/forms/bds-radio/types/IRadio.js +1 -0
- package/dist/collection/components/forms/bds-radio-button/bds-radio-button.css +109 -0
- package/dist/collection/components/forms/bds-radio-button/bds-radio-button.js +238 -0
- package/dist/collection/components/forms/bds-radio-button/types/IRadioButton.js +1 -0
- package/dist/collection/components/forms/bds-radio-card/bds-radio-card.css +156 -0
- package/dist/collection/components/forms/bds-radio-card/bds-radio-card.js +307 -0
- package/dist/collection/components/forms/bds-radio-card/types/IRadioCard.js +1 -0
- package/dist/collection/components/forms/bds-radio-group/bds-radio-group.css +55 -0
- package/dist/collection/components/forms/bds-radio-group/bds-radio-group.js +620 -0
- package/dist/collection/components/forms/bds-radio-group/types/IRadioGroup.js +1 -0
- package/dist/collection/components/forms/bds-radio-group/types/enum.js +5 -0
- package/dist/collection/components/forms/bds-radio-group/types/types.js +1 -0
- package/dist/collection/components/forms/bds-text-field/bds-text-field.js +1 -1
- package/dist/collection/components/helpers/bds-divider/bds-divider.css +44 -0
- package/dist/collection/components/helpers/bds-divider/bds-divider.js +88 -0
- package/dist/collection/components/helpers/bds-divider/types/IDivider.js +1 -0
- package/dist/collection/components/helpers/bds-divider/types/enum.js +4 -0
- package/dist/collection/components/helpers/bds-divider/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 +6 -4
- package/dist/collection/components/overlays/bds-tooltip/constants/Offset.js +1 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.css +9 -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 +16 -3
- package/dist/collection/mixins/index.js +2 -0
- package/dist/collection/mixins/links.mixin.js +152 -0
- package/dist/collection/mixins/menu-behavior.mixin.js +119 -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 +5 -0
- package/dist/collection/types/links.js +1 -0
- package/dist/collection/types/menu.js +8 -0
- package/dist/collection/types/orientation.js +4 -0
- package/dist/collection/types/position.js +6 -2
- package/dist/collection/utils/constants/common/Keys.js +10 -12
- 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 +82 -0
- package/dist/collection/utils/{__test__ → testing}/helpers.js +10 -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-DlYG-OVB.js +16 -0
- package/dist/esm/Logger-iq2UuV7c.js +49 -0
- package/dist/esm/{attributes-CaHOghy5.js → attributes-U9yfbs7i.js} +3 -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 +13 -6
- package/dist/esm/bds-button-group.entry.js +93 -0
- package/dist/esm/bds-button.entry.js +9 -15
- package/dist/esm/bds-checkbox-card.entry.js +119 -0
- package/dist/esm/bds-checkbox.entry.js +12 -5
- package/dist/esm/bds-dialog.entry.js +8 -7
- 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 +491 -0
- package/dist/esm/bds-list-menu.entry.js +197 -0
- package/dist/esm/bds-popover.entry.js +18 -8
- package/dist/esm/bds-radio-button.entry.js +58 -0
- package/dist/esm/bds-radio-card.entry.js +74 -0
- package/dist/esm/bds-radio-group.entry.js +283 -0
- package/dist/esm/bds-radio.entry.js +58 -0
- 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 +6 -15
- package/dist/esm/bds-toggle.entry.js +185 -0
- package/dist/esm/bds-tooltip_2.entry.js +318 -0
- package/dist/esm/boreal-web-components.js +3 -3
- package/dist/esm/coreColors-Dwo1hcd9.js +8 -0
- package/dist/esm/{enum-C8mRvnTA.js → enum-DlVzZK7o.js} +4 -4
- package/dist/esm/form-associated.mixin-C4HM8wQe.js +31 -0
- package/dist/esm/{anchored.mixin-Y3MkGc2X.js → getOffset-BYS3c13B.js} +43 -75
- package/dist/esm/{index-D4EFsvs1.js → index-BqJlOB6b.js} +64 -0
- package/dist/esm/{internals-Dy7QKP9e.js → internals-DfaYciGa.js} +1 -31
- package/dist/esm/loader.js +3 -3
- package/dist/esm/menu-dz9-Q2N8.js +6 -0
- package/dist/esm/orientation-CPvuMm5C.js +6 -0
- 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-DlYG-OVB.js +1 -0
- package/dist/esm-es5/Logger-iq2UuV7c.js +1 -0
- package/dist/esm-es5/{attributes-CaHOghy5.js → attributes-U9yfbs7i.js} +1 -1
- 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-group.entry.js +1 -0
- package/dist/esm-es5/bds-button.entry.js +1 -1
- package/dist/esm-es5/bds-checkbox-card.entry.js +1 -0
- package/dist/esm-es5/bds-checkbox.entry.js +1 -1
- package/dist/esm-es5/bds-dialog.entry.js +1 -1
- package/dist/esm-es5/bds-divider.entry.js +1 -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-radio-button.entry.js +1 -0
- package/dist/esm-es5/bds-radio-card.entry.js +1 -0
- package/dist/esm-es5/bds-radio-group.entry.js +1 -0
- package/dist/esm-es5/bds-radio.entry.js +1 -0
- 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/coreColors-Dwo1hcd9.js +1 -0
- package/dist/esm-es5/enum-DlVzZK7o.js +1 -0
- package/dist/esm-es5/form-associated.mixin-C4HM8wQe.js +1 -0
- package/dist/esm-es5/getOffset-BYS3c13B.js +1 -0
- package/dist/esm-es5/index-BqJlOB6b.js +2 -0
- package/dist/esm-es5/internals-DfaYciGa.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/menu-dz9-Q2N8.js +1 -0
- package/dist/esm-es5/orientation-CPvuMm5C.js +1 -0
- 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-button/bds-button.d.ts +4 -4
- package/dist/types/components/actions/bds-button/types/enum.d.ts +3 -3
- package/dist/types/components/actions/bds-button-group/bds-button-group.d.ts +36 -0
- package/dist/types/components/actions/bds-button-group/types/IButtonGroup.d.ts +11 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.d.ts +74 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/IListMenu.d.ts +14 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/enum.d.ts +5 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/types.d.ts +3 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.d.ts +122 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.d.ts +13 -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-checkbox/bds-checkbox.d.ts +2 -0
- package/dist/types/components/forms/bds-checkbox-card/bds-checkbox-card.d.ts +70 -0
- package/dist/types/components/forms/bds-checkbox-card/types/ICheckboxCard.d.ts +8 -0
- package/dist/types/components/forms/bds-flag/bds-flag.d.ts +3 -4
- package/dist/types/components/forms/bds-radio/bds-radio.d.ts +36 -0
- package/dist/types/components/forms/bds-radio/types/IRadio.d.ts +13 -0
- package/dist/types/components/forms/bds-radio-button/bds-radio-button.d.ts +36 -0
- package/dist/types/components/forms/bds-radio-button/types/IRadioButton.d.ts +13 -0
- package/dist/types/components/forms/bds-radio-card/bds-radio-card.d.ts +57 -0
- package/dist/types/components/forms/bds-radio-card/types/IRadioCard.d.ts +14 -0
- package/dist/types/components/forms/bds-radio-group/bds-radio-group.d.ts +82 -0
- package/dist/types/components/forms/bds-radio-group/types/IRadioGroup.d.ts +19 -0
- package/dist/types/components/forms/bds-radio-group/types/enum.d.ts +6 -0
- package/dist/types/components/forms/bds-radio-group/types/types.d.ts +3 -0
- package/dist/types/components/helpers/bds-divider/bds-divider.d.ts +26 -0
- package/dist/types/components/helpers/bds-divider/types/IDivider.d.ts +5 -0
- package/dist/types/components/helpers/bds-divider/types/enum.d.ts +5 -0
- package/dist/types/components/helpers/bds-divider/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 +2542 -450
- 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 +95 -0
- package/dist/types/types/IFormProps.d.ts +25 -0
- package/dist/types/types/index.d.ts +5 -0
- package/dist/types/types/links.d.ts +14 -0
- package/dist/types/types/menu.d.ts +16 -0
- package/dist/types/types/orientation.d.ts +6 -0
- package/dist/types/types/position.d.ts +6 -2
- package/dist/types/utils/constants/common/Keys.d.ts +12 -14
- 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}/helpers.d.ts +8 -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-22378341.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-6de2b44c.system.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-BkDQsB4R.system.js +0 -1
- package/dist/boreal-web-components/p-C8mRvnTA.js +0 -1
- package/dist/boreal-web-components/p-CdKFZYxk.system.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-fc2cb919.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/enum-C8mRvnTA.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/collection/utils/{__test__ → testing}/constants.js +0 -0
- /package/dist/collection/utils/{__test__ → testing}/fixtures.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/types/utils/{__test__ → testing}/constants.d.ts +0 -0
- /package/dist/types/utils/{__test__ → testing}/fixtures.d.ts +0 -0
|
@@ -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 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()}};export{kt as a}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const s=s=>class extends s{constructor(){super(!1)}formDisabledCallback(s){this.isDisabled=s}};function t(s,t){s.setFormValue?.(t)}function o(s,t,o){const c={};let e="";for(const{key:s,isValid:n,message:a}of t)n(o)||(c[s]=!0,""===e&&(e=a));const n=0===Object.keys(c).length;return s.setValidity?.(n?{}:c,e),n}export{s as f,o as r,t as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function o(o,e,n,a){const c=n[a];o.includes(c)||(n[a]=e,console.warn(`[BorealDS] Invalid value "${c}" for prop "${a}" on <${n.tagName.toLowerCase()}>. Expected one of: ${o.join(", ")}.`))}export{o as v}
|
|
@@ -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
|
-
var __extends=this&&this.__extends||function(){var e=function(o,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var r in o)if(Object.prototype.hasOwnProperty.call(o,r))e[r]=o[r]};return e(o,r)};return function(o,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(o,r);function c(){this.constructor=o}o.prototype=r===null?Object.create(r):(c.prototype=r.prototype,new c)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var o,r=1,c=arguments.length;r<c;r++){o=arguments[r];for(var b in o)if(Object.prototype.hasOwnProperty.call(o,b))e[b]=o[b]}return e};return __assign.apply(this,arguments)};System.register(["./p-GjKJvOVG.system.js","./p-BkDQsB4R.system.js","./p-BuxZeJbu.system.js"],(function(e){"use strict";var o,r,c,b,s,t,i,a,n;return{setters:[function(e){o=e.M;r=e.r;c=e.c;b=e.h;s=e.a;t=e.g},function(e){i=e.s;a=e.f},function(e){n=e.a}],execute:function(){var d=function(){return'@charset "UTF-8";bds-checkbox{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:8px;cursor:pointer;outline:none}bds-checkbox .bds-checkbox__label{font-family:var(--boreal-typography-font-family-primary)}bds-checkbox .bds-checkbox__box{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:18px;height:18px;border:2px solid var(--boreal-stroke-default-light);background:transparent;-webkit-transition:all 0.2s ease;transition:all 0.2s ease;border-radius:4px}bds-checkbox:hover .bds-checkbox__box{border-color:var(--boreal-stroke-default-light)}bds-checkbox:focus-visible .bds-checkbox__box{border-color:var(--boreal-stroke-focus);outline:2px solid var(--boreal-stroke-focus);outline-offset:1px}bds-checkbox:active .bds-checkbox__box{border-color:var(--boreal-stroke-default-light);background:var(--boreal-bg-neutral);outline:2px solid var(--boreal-stroke-primary-light)}bds-checkbox.bds-checkbox--checked .bds-checkbox__box,bds-checkbox.bds-checkbox--indeterminate .bds-checkbox__box{border-color:var(--boreal-ui-primary-base);background:var(--boreal-ui-primary-base);color:#fff}bds-checkbox.bds-checkbox--checked:hover .bds-checkbox__box,bds-checkbox.bds-checkbox--indeterminate:hover .bds-checkbox__box{border-color:var(--boreal-ui-primary-dark);background:var(--boreal-ui-primary-dark)}bds-checkbox.bds-checkbox--checked:focus-visible .bds-checkbox__box,bds-checkbox.bds-checkbox--indeterminate:focus-visible .bds-checkbox__box{border-color:var(--boreal-ui-primary-base);background:var(--boreal-ui-primary-base);outline:2px solid var(--boreal-stroke-focus)}bds-checkbox.bds-checkbox--checked:active .bds-checkbox__box,bds-checkbox.bds-checkbox--indeterminate:active .bds-checkbox__box{border-color:var(--boreal-ui-primary-dark);background:var(--boreal-ui-primary-dark)}bds-checkbox.bds-checkbox--error .bds-checkbox__box{border-color:var(--boreal-stroke-danger-base)}bds-checkbox.bds-checkbox--error.bds-checkbox--checked .bds-checkbox__box,bds-checkbox.bds-checkbox--error.bds-checkbox--indeterminate .bds-checkbox__box{border-color:var(--boreal-stroke-danger-base);background:var(--boreal-stroke-danger-base)}bds-checkbox.bds-checkbox--disabled{pointer-events:none}bds-checkbox.bds-checkbox--disabled .bds-checkbox__box{border-color:var(--boreal-stroke-default-light);background:var(--boreal-bg-neutral)}bds-checkbox.bds-checkbox--disabled .bds-checkbox__label{color:var(--boreal-text-disabled)}bds-checkbox.bds-checkbox--disabled.bds-checkbox--checked .bds-checkbox__box,bds-checkbox.bds-checkbox--disabled.bds-checkbox--indeterminate .bds-checkbox__box{border-color:var(--boreal-ui-primary-light);background:var(--boreal-ui-primary-light);color:#fff}'};var h=e("bds_checkbox",function(e){__extends(o,e);function o(o){var b=e.call(this)||this;r(b,o);b.valueChange=c(b,"valueChange");b.bdsChange=c(b,"bdsChange");if(o.$hostElement$["s-ei"]){b.internals=o.$hostElement$["s-ei"]}else{b.internals=o.$hostElement$.attachInternals();o.$hostElement$["s-ei"]=b.internals}b.inheritedAttributes={};b.isDisabled=false;b.disabled=false;b.required=false;b.checked=false;b.indeterminate=false;b.error=false;b.value="on";b.label="";b.handleClick=function(){b.toggle()};b.handleKeyDown=function(e){if(e.key===" "){e.preventDefault();b.toggle()}};return b}o.prototype.componentWillLoad=function(){this.isDisabled=this.disabled;this.inheritedAttributes=__assign({},n(this.el));this.syncFormValue()};o.prototype.onCheckedChange=function(){this.syncFormValue()};o.prototype.onDisabledChange=function(e){this.isDisabled=e};o.prototype.formAssociatedCallback=function(){this.syncFormValue()};o.prototype.formResetCallback=function(){this.checked=false;this.indeterminate=false;i(this.internals,null)};o.prototype.formStateRestoreCallback=function(e,o){this.checked=e===this.value;this.syncFormValue()};o.prototype.formDisabledCallback=function(e){this.isDisabled=e};o.prototype.syncFormValue=function(){i(this.internals,this.checked?this.value:null)};o.prototype.toggle=function(){if(this.isDisabled)return;this.indeterminate=false;this.checked=!this.checked;this.valueChange.emit(this.checked);this.bdsChange.emit({checked:this.checked,value:this.value})};o.prototype.getAriaChecked=function(){if(this.indeterminate)return"mixed";return this.checked?"true":"false"};o.prototype.renderCheckIcon=function(){if(this.indeterminate){return b("svg",{class:"bds-checkbox__icon",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M4 8h8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}))}if(this.checked){return b("svg",{class:"bds-checkbox__icon",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M3.5 8.5L6.5 11.5L12.5 4.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}return null};o.prototype.render=function(){var e={"bds-checkbox":true,"bds-checkbox--checked":this.checked,"bds-checkbox--indeterminate":this.indeterminate,"bds-checkbox--error":this.error,"bds-checkbox--disabled":this.isDisabled};return b(s,__assign(__assign({key:"c65361a26d92b0eb0c7dba951a915e5c3bfe4dbe",class:e},this.inheritedAttributes),{role:"checkbox","aria-checked":this.getAriaChecked(),"aria-disabled":this.isDisabled?"true":null,tabindex:this.isDisabled?-1:0,onClick:this.handleClick,onKeyDown:this.handleKeyDown}),b("span",{key:"ab3ba51a82f980852a42eff1bf81b793518a7ec0",class:"bds-checkbox__box"},this.renderCheckIcon()),b("span",{key:"b25d1b1dd27098bbead5095610bbf16f6a3eabad",class:"bds-checkbox__label"},this.label?this.label:b("slot",null)))};Object.defineProperty(o,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"el",{get:function(){return t(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{checked:[{onCheckedChange:0}],disabled:[{onDisabledChange:0}]}},enumerable:false,configurable:true});return o}(o(a)));h.style=d()}}}));
|
|
@@ -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
|
-
System.register(["./p-GjKJvOVG.system.js","./p-Dtp4O0H2.system.js","./p-CdKFZYxk.system.js","./p-sDZFaZMN.system.js"],(function(o){"use strict";var t,r,b,e,a,s,n,d,u;return{setters:[function(o){t=o.r;r=o.c;b=o.h;e=o.g},function(o){a=o.C},function(o){s=o.a;n=o.b;d=o.B},function(o){u=o.v}],execute:function(){var i={DEFAULT:"default",PRIMARY:"primary",SUCCESS:"success",ERROR:"error"};var l=function(){return'@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)}}'};var c=o("bds_button",function(){function o(o){var b=this;t(this,o);this.bdsClick=r(this,"bdsClick");if(o.$hostElement$["s-ei"]){this.internals=o.$hostElement$["s-ei"]}else{this.internals=o.$hostElement$.attachInternals();o.$hostElement$["s-ei"]=this.internals}this.currentState=a.DEFAULT;this.label="";this.disabled=false;this.name="";this.type=s.BUTTON;this.color=i.DEFAULT;this.variant=n.DEFAULT;this.size=d.MEDIUM;this.loading=false;this.disclosure=false;this.handleKeyDown=function(o){if(o.key==="Enter"||o.key===" "){b.currentState=a.ACTIVE;o.preventDefault();b.bdsClick.emit(o)}};this.handleKeyUp=function(){b.currentState=a.DEFAULT};this.handleClick=function(o){o.preventDefault();o.stopPropagation();if(b.disabled||b.loading)return;if(b.type===s.SUBMIT||b.type===s.RESET){b.processFormClick()}else{b.bdsClick.emit(o)}}}o.prototype.checkPropValues=function(){u(Object.values(s),s.BUTTON,this.el,"type");u(Object.values(i),i.DEFAULT,this.el,"color");u(Object.values(n),n.DEFAULT,this.el,"variant");u(Object.values(d),d.MEDIUM,this.el,"size")};o.prototype.componentWillLoad=function(){this.checkPropValues()};o.prototype.componentDidLoad=function(){this.setupFormAssociation()};o.prototype.setupFormAssociation=function(){var o=this.el.closest("form");var t=this.internals&&"form"in this.internals?this.internals.form:null;this.internalForm=t||o||undefined};o.prototype.processFormClick=function(){var o;var t=this;if(this.internalForm===undefined){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.");return}var r=(o={},o[s.SUBMIT]=function(){var o,r;if(typeof((o=t.internalForm)===null||o===void 0?void 0:o.requestSubmit)==="function"){t.internalForm.requestSubmit()}else{(r=t.internalForm)===null||r===void 0?void 0:r.submit()}},o[s.RESET]=function(){var o;return(o=t.internalForm)===null||o===void 0?void 0:o.reset()},o);var b=r[this.type];if(typeof b==="function"){b()}return};Object.defineProperty(o.prototype,"getClassMap",{get:function(){var o;return o={"bds-button":true,"bds-button--is-disabled":this.disabled,"bds-button--is-loading":this.loading},o["bds-button--state-".concat(this.currentState)]=true,o["bds-button--".concat(this.color)]=true,o["bds-button--var-".concat(this.variant)]=true,o["bds-button--size-".concat(this.size)]=true,o},enumerable:false,configurable:true});o.prototype.render=function(){return b("button",{key:"4f71bb10d1910ea7b1fc0d64eedb6269e7049a89",name:this.name,class:this.getClassMap,type:this.type,disabled:this.disabled||this.loading,"aria-label":this.label||undefined,"aria-disabled":this.disabled||this.loading,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp},b("div",{key:"e28da0b776917c6a2c0efc6c7140a2bfa979b708",class:"bds-button__content"},b("span",{key:"ce3d60b504bbf38dc7116560dbfbe51c955f79db",class:"bds-button__content-icon bds-button__content-icon--start"},b("slot",{key:"23b6bbb9d4fbf8ad5e0e584cddaac477edf4a91e",name:"icon"})),b("slot",{key:"adcdc5d87a8db4e346d272b843966405692a2a32"}),b("span",{key:"c908b3a8a18ba4cce854ee20d064178f6420d007",class:"bds-button__content-badge"},b("slot",{key:"ce66f69366dc7436a8f8ca1b2b8f55b91a225ec8",name:"badge"})),this.disclosure&&b("span",{key:"921c0f144f2616da238356705c1e5ff634406b87",class:"bds-button__content-icon"},b("i",{key:"9dc7a891ac4fcb1a73113aeae83976d74cff0c2e",class:"bds-icon-chevron-down"}))))};Object.defineProperty(o,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"el",{get:function(){return e(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{type:[{checkPropValues:0}],color:[{checkPropValues:0}],variant:[{checkPropValues:0}],size:[{checkPropValues:0}]}},enumerable:false,configurable:true});return o}());c.style=l()}}}));
|
|
@@ -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 __extends=this&&this.__extends||function(){var n=function(t,r){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))n[r]=t[r]};return n(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();System.register([],(function(n){"use strict";return{execute:function(){n({r:i,s:r});var t=n("f",(function(n){var t=function(n){__extends(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}t.prototype.formDisabledCallback=function(n){this.isDisabled=n};return t}(n);return t}));function r(n,t){var r;(r=n.setFormValue)===null||r===void 0?void 0:r.call(n,t)}function i(n,t,r){var i;var u={};var o="";for(var e=0,c=t;e<c.length;e++){var f=c[e],s=f.key,a=f.isValid,v=f.message;if(!a(r)){u[s]=true;if(o==="")o=v}}var l=Object.keys(u).length===0;(i=n.setValidity)===null||i===void 0?void 0:i.call(n,l?{}:u,o);return l}}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a={DEFAULT:"default",OUTLINE:"outline",PLAIN:"plain"},t={SMALL:"small",MEDIUM:"medium",LARGE:"large"},e={BUTTON:"button",SUBMIT:"submit",RESET:"reset"};export{t as B,e as a,a as b}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register([],(function(t){"use strict";return{execute:function(){var e=t("b",{DEFAULT:"default",OUTLINE:"outline",PLAIN:"plain"});var u=t("B",{SMALL:"small",MEDIUM:"medium",LARGE:"large"});var a=t("a",{BUTTON:"button",SUBMIT:"submit",RESET:"reset"})}}}));
|
|
@@ -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}
|