@telesign/boreal-web-components 0.1.0-alpha.4 → 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.js +1 -1
- package/components-build/bds-badge.js +1 -1
- 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.js +1 -1
- package/components-build/bds-flag.js +1 -1
- package/components-build/bds-grid-item.js +1 -1
- package/components-build/bds-grid.js +1 -1
- package/components-build/bds-list-menu-item.js +1 -1
- package/components-build/bds-list-menu.js +1 -1
- package/components-build/bds-popover.js +1 -1
- package/components-build/bds-radio-button.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.js +1 -1
- package/components-build/bds-tag.js +1 -1
- package/components-build/bds-text-field.js +1 -1
- package/components-build/bds-toggle.js +1 -1
- package/components-build/bds-tooltip.js +1 -1
- package/components-build/bds-typography.js +1 -1
- package/components-build/index.js +1 -1
- package/components-build/p-BSlaf0ff.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-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/{dist/boreal-web-components/p-CaHOghy5.js → components-build/p-fUK0GCeC.js} +1 -1
- package/components-build/p-iq2UuV7c.js +1 -0
- package/components-build/p-nxYzL9uu.js +1 -0
- package/custom-elements.json +2603 -931
- package/dist/boreal-web-components/boreal-web-components.esm.js +1 -1
- package/dist/boreal-web-components/{p-7a4efddd.system.entry.js → p-024d90b0.system.entry.js} +1 -1
- 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-2158a7cd.entry.js → p-19f9352d.entry.js} +1 -1
- package/dist/boreal-web-components/{p-41b48701.system.entry.js → p-277f142e.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-251b3002.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-251d35df.system.entry.js → p-365e8e5c.system.entry.js} +1 -1
- 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-52600375.system.entry.js → p-48ebbfbe.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-ab5ffa15.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-7db870b7.entry.js → p-6629be14.entry.js} +1 -1
- 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-66360e63.entry.js → p-71ed1e1d.entry.js} +1 -1
- package/dist/boreal-web-components/{p-b12d4788.system.entry.js → p-732e98f1.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-80822731.system.entry.js → p-77658a5b.system.entry.js} +1 -1
- 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-1d1bb9d2.entry.js → p-7ebc67c9.entry.js} +1 -1
- 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-871c9a9f.system.entry.js → p-93066db4.system.entry.js} +1 -1
- 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-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-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/{components-build/p-CaHOghy5.js → dist/boreal-web-components/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-731b88cc.entry.js → p-d4c30d2b.entry.js} +1 -1
- package/dist/boreal-web-components/p-db0c10b9.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-695d0830.entry.js → p-dc7d429c.entry.js} +1 -1
- 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-edca16b6.system.entry.js → p-e0a41cab.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-127a4134.entry.js → p-e55f2a8b.entry.js} +1 -1
- package/dist/boreal-web-components/p-e7af1e1a.entry.js +1 -0
- package/dist/boreal-web-components/{p-e0bf8a6e.entry.js → p-efe159aa.entry.js} +1 -1
- package/dist/boreal-web-components/{p-44ceff4e.system.entry.js → p-f65e9d0c.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-f792aa74.entry.js +1 -0
- package/dist/boreal-web-components/{p-fc24d963.entry.js → p-fb9a0e94.entry.js} +1 -1
- package/dist/boreal-web-components/p-iq2UuV7c.js +1 -0
- package/dist/boreal-web-components/p-vzZJGcYF.system.js +1 -1
- package/dist/boreal-web-components/p-wREMI3WA.js +1 -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 +2 -2
- package/dist/cjs/bds-badge.cjs.entry.js +1 -1
- package/dist/cjs/bds-banner.cjs.entry.js +2 -2
- package/dist/cjs/bds-button-group.cjs.entry.js +95 -0
- package/dist/cjs/bds-button.cjs.entry.js +7 -13
- 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 +3 -3
- package/dist/cjs/bds-divider.cjs.entry.js +2 -2
- package/dist/cjs/bds-flag.cjs.entry.js +1 -1
- package/dist/cjs/bds-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/bds-grid.cjs.entry.js +1 -1
- package/dist/cjs/bds-list-menu-item.cjs.entry.js +47 -22
- package/dist/cjs/bds-list-menu.cjs.entry.js +90 -21
- package/dist/cjs/bds-popover.cjs.entry.js +5 -4
- 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 +1 -1
- package/dist/cjs/bds-status.cjs.entry.js +1 -1
- package/dist/cjs/bds-tag.cjs.entry.js +1 -1
- package/dist/cjs/bds-text-field.cjs.entry.js +8 -7
- package/dist/cjs/bds-toggle.cjs.entry.js +6 -5
- package/dist/cjs/bds-tooltip_2.cjs.entry.js +9 -8
- package/dist/cjs/boreal-web-components.cjs.js +1 -1
- 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/{getOffset-m4hBgyVP.js → getOffset-k4ezB-eT.js} +6 -53
- package/dist/cjs/{form-associated.mixin-DXwvF_vW.js → internals-D8x7GMfR.js} +0 -31
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/menu-BxKaEajh.js +8 -0
- package/dist/cjs/orientation-DQAIleEJ.js +8 -0
- package/dist/collection/collection-manifest.json +7 -1
- package/dist/collection/components/actions/bds-button/bds-button.css +19 -19
- package/dist/collection/components/actions/bds-button/bds-button.js +7 -7
- 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-list-menu/bds-list-menu/bds-list-menu.css +27 -1
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.js +148 -49
- 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 +25 -9
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.js +53 -8
- package/dist/collection/components/actions/bds-toggle/bds-toggle.js +1 -1
- package/dist/collection/components/feedback/bds-badge/bds-badge.js +1 -1
- package/dist/collection/components/feedback/bds-banner/bds-banner.js +1 -1
- package/dist/collection/components/feedback/bds-spinner/bds-spinner.js +1 -1
- package/dist/collection/components/feedback/bds-status/bds-status.js +1 -1
- package/dist/collection/components/feedback/bds-tag/bds-tag.js +1 -1
- 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.css → bds-divider/bds-divider.css} +12 -4
- package/dist/collection/components/helpers/{bds-divider.js → bds-divider/bds-divider.js} +3 -3
- package/dist/collection/components/helpers/bds-divider/types/IDivider.js +1 -0
- package/dist/collection/components/helpers/bds-divider/types/types.js +1 -0
- package/dist/collection/components/images-icons/bds-avatar/bds-avatar.js +1 -1
- package/dist/collection/components/layouts/bds-grid/grid/bds-grid.js +1 -1
- package/dist/collection/components/layouts/bds-grid/grid-item/bds-grid-item.js +1 -1
- package/dist/collection/components/overlays/bds-dialog/bds-dialog.js +2 -2
- package/dist/collection/components/overlays/bds-popover/bds-popover.js +1 -1
- package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.js +3 -3
- package/dist/collection/components/titles-text/bds-typography/bds-typography.css +5 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.js +1 -1
- package/dist/collection/mixins/anchored.mixin.js +2 -2
- package/dist/collection/mixins/links.mixin.js +1 -2
- package/dist/collection/mixins/menu-behavior.mixin.js +11 -5
- package/dist/collection/types/index.js +2 -0
- package/dist/collection/types/orientation.js +4 -0
- package/dist/collection/utils/constants/common/Keys.js +10 -24
- package/dist/collection/utils/menu/menu-item.utils.js +9 -8
- package/dist/collection/utils/testing/helpers.js +10 -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 +2 -2
- package/dist/esm/bds-badge.entry.js +1 -1
- package/dist/esm/bds-banner.entry.js +2 -2
- package/dist/esm/bds-button-group.entry.js +93 -0
- package/dist/esm/bds-button.entry.js +5 -11
- package/dist/esm/bds-checkbox-card.entry.js +119 -0
- package/dist/esm/bds-checkbox.entry.js +11 -4
- package/dist/esm/bds-dialog.entry.js +3 -3
- package/dist/esm/bds-divider.entry.js +2 -2
- package/dist/esm/bds-flag.entry.js +1 -1
- package/dist/esm/bds-grid-item.entry.js +1 -1
- package/dist/esm/bds-grid.entry.js +1 -1
- package/dist/esm/bds-list-menu-item.entry.js +47 -22
- package/dist/esm/bds-list-menu.entry.js +90 -21
- package/dist/esm/bds-popover.entry.js +5 -4
- 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 +1 -1
- package/dist/esm/bds-status.entry.js +1 -1
- package/dist/esm/bds-tag.entry.js +1 -1
- package/dist/esm/bds-text-field.entry.js +3 -2
- package/dist/esm/bds-toggle.entry.js +4 -3
- package/dist/esm/bds-tooltip_2.entry.js +9 -8
- package/dist/esm/boreal-web-components.js +1 -1
- 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/{getOffset-DKPjeBHi.js → getOffset-BYS3c13B.js} +4 -51
- package/dist/esm/{form-associated.mixin-CvK2d92c.js → internals-DfaYciGa.js} +1 -31
- package/dist/esm/loader.js +1 -1
- package/dist/esm/menu-dz9-Q2N8.js +6 -0
- package/dist/esm/orientation-CPvuMm5C.js +6 -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 -1
- package/dist/esm-es5/bds-badge.entry.js +1 -1
- 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 -1
- package/dist/esm-es5/bds-flag.entry.js +1 -1
- package/dist/esm-es5/bds-grid-item.entry.js +1 -1
- package/dist/esm-es5/bds-grid.entry.js +1 -1
- package/dist/esm-es5/bds-list-menu-item.entry.js +1 -1
- package/dist/esm-es5/bds-list-menu.entry.js +1 -1
- package/dist/esm-es5/bds-popover.entry.js +1 -1
- package/dist/esm-es5/bds-radio-button.entry.js +1 -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 -1
- package/dist/esm-es5/bds-tag.entry.js +1 -1
- package/dist/esm-es5/bds-text-field.entry.js +1 -1
- package/dist/esm-es5/bds-toggle.entry.js +1 -1
- package/dist/esm-es5/bds-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/boreal-web-components.js +1 -1
- package/dist/esm-es5/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/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/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 +19 -15
- 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 +8 -2
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.d.ts +1 -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-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.d.ts +941 -63
- package/dist/types/mixins/menu-behavior.mixin.d.ts +5 -1
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/orientation.d.ts +6 -0
- package/dist/types/utils/constants/common/Keys.d.ts +13 -16
- package/dist/types/utils/menu/menu-item.utils.d.ts +2 -2
- package/dist/types/utils/testing/helpers.d.ts +8 -0
- package/package.json +1 -1
- package/components-build/p-B8n1ru5i.js +0 -1
- package/components-build/p-CGdxFth9.js +0 -1
- package/components-build/p-CrAt6pGl.js +0 -1
- package/components-build/p-DCwT43Kz.js +0 -1
- package/components-build/p-DIY3CDNL.js +0 -1
- package/dist/boreal-web-components/p-0028481c.entry.js +0 -1
- package/dist/boreal-web-components/p-1466de58.system.entry.js +0 -1
- package/dist/boreal-web-components/p-2b8bd1dd.entry.js +0 -1
- package/dist/boreal-web-components/p-32c23246.system.entry.js +0 -1
- package/dist/boreal-web-components/p-3fbcc233.entry.js +0 -1
- package/dist/boreal-web-components/p-401f1aee.system.entry.js +0 -1
- package/dist/boreal-web-components/p-41cac1b8.system.entry.js +0 -1
- package/dist/boreal-web-components/p-627b19a5.system.entry.js +0 -1
- package/dist/boreal-web-components/p-649737e5.entry.js +0 -1
- package/dist/boreal-web-components/p-64cb5825.entry.js +0 -1
- package/dist/boreal-web-components/p-6a99f4c6.system.entry.js +0 -1
- package/dist/boreal-web-components/p-74c13bed.system.entry.js +0 -1
- package/dist/boreal-web-components/p-7f7ac40f.entry.js +0 -1
- package/dist/boreal-web-components/p-82d49661.entry.js +0 -1
- package/dist/boreal-web-components/p-83ca193e.entry.js +0 -1
- package/dist/boreal-web-components/p-BQ_zoZa2.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-CtknSula.system.js +0 -1
- package/dist/boreal-web-components/p-CvK2d92c.js +0 -1
- package/dist/boreal-web-components/p-CzYQb3pP.js +0 -1
- package/dist/boreal-web-components/p-DZcx75cy.system.js +0 -1
- package/dist/boreal-web-components/p-Dme-NuTD.system.js +0 -1
- package/dist/boreal-web-components/p-ba2b625a.system.entry.js +0 -1
- package/dist/boreal-web-components/p-bf2ef10b.entry.js +0 -1
- package/dist/boreal-web-components/p-c7aee9f4.system.entry.js +0 -1
- package/dist/cjs/Keys-DbIXSJF2.js +0 -22
- package/dist/esm/Keys-CzYQb3pP.js +0 -20
- package/dist/esm-es5/Keys-CzYQb3pP.js +0 -1
- package/dist/esm-es5/enum-C8mRvnTA.js +0 -1
- package/dist/esm-es5/form-associated.mixin-CvK2d92c.js +0 -1
- package/dist/esm-es5/getOffset-DKPjeBHi.js +0 -1
- /package/dist/collection/components/{helpers/types/IDivider.js → actions/bds-button-group/types/IButtonGroup.js} +0 -0
- /package/dist/collection/components/{helpers/types/types.js → actions/bds-list-menu/bds-list-menu/types/IListMenu.js} +0 -0
- /package/dist/collection/components/helpers/{types → bds-divider/types}/enum.js +0 -0
- /package/dist/types/components/helpers/{bds-divider.d.ts → bds-divider/bds-divider.d.ts} +0 -0
- /package/dist/types/components/helpers/{types → bds-divider/types}/IDivider.d.ts +0 -0
- /package/dist/types/components/helpers/{types → bds-divider/types}/enum.d.ts +0 -0
- /package/dist/types/components/helpers/{types → bds-divider/types}/types.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as e,r as t,c as s,h as i,a as o,g as a}from"./p-BqJlOB6b.js";import{f as r,s as l}from"./p-CvK2d92c.js";import{a as d}from"./p-CaHOghy5.js";import{c as h}from"./p-DhSchGPI.js";const b=class extends(e(r)){constructor(e){super(),t(this,e),this.valueChange=s(this,"valueChange"),this.bdsChange=s(this,"bdsChange"),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.inheritedAttributes={},this.disabled=!1,this.required=!1,this.info="",this.error=!1,this.errorMessage="",this.checked=!1,this.placement="left",this.label="",this.helperText="",this.value="on",this._id=h("bds-toggle"),this.isDisabled=!1,this.validationError=!1,this.validationMessage="",this.isChecked=!1,this.handleClick=()=>this.toggle(),this.handleKeyDown=e=>{" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.toggle())},this.handleInvalid=e=>{e.preventDefault(),this.validate()}}componentWillLoad(){this.isChecked=this.checked||!1,this.isDisabled=this.disabled||!1,this.inheritedAttributes={...d(this.el)},this.syncFormValue()}onCheckedChange(e){this.isChecked=e,this.syncFormValue()}onDisabledChange(e){this.isDisabled=e}formAssociatedCallback(){this.syncFormValue()}formDisabledCallback(e){this.isDisabled=e}formResetCallback(){this.isChecked=!1,this.internals.setValidity({}),l(this.internals,null)}formStateRestoreCallback(e,t){this.isChecked=e===this.value,this.internals.setValidity({}),this.syncFormValue()}syncFormValue(){l(this.internals,this.isChecked?this.value:null)}validate(){if(this.isDisabled||!this.required||this.isChecked)this.validationError=!1,this.validationMessage="",this.internals.setValidity({});else{const e=this.el.querySelector("input");this.validationError=!0,this.validationMessage="This field is required",this.internals.setValidity({valueMissing:!0},this.validationMessage,e??this.el)}}toggle(){this.isDisabled||(this.isChecked=!this.isChecked,this.syncFormValue(),this.validate(),this.valueChange.emit(this.isChecked),this.bdsChange.emit({checked:this.isChecked,value:this.value}))}get containerClasses(){return{"bds-toggle__container":!0,"bds-toggle__container--inverse":"right"===this.placement,"bds-toggle__container--checked":this.isChecked,"bds-toggle__container--disabled":this.isDisabled}}get canShowLabel(){return void 0!==this.label&&""!==this.label.trim()&&null!=this.label}render(){const e="bds-toggle",t=this.isDisabled?"disabled":this.error||this.validationError?"error":"default",s=this.error&&""!==this.errorMessage?this.errorMessage:this.validationError&&""!==this.validationMessage?this.validationMessage:this.helperText;return i(o,{key:"8aa5ec26708ce8eb834020353e2e01e882cefad6",...this.inheritedAttributes,onClick:this.handleClick,onKeyDown:this.handleKeyDown,class:e},i("div",{key:"a62ae102ba2167be5e03758c5bfc6197e8f3b73c",part:"container",class:this.containerClasses},this.canShowLabel&&i("bds-typography",{key:"c6129d113b083f9db5bad181f5a8cf1ae161b593",variant:"label",class:`${e}__label`,htmlFor:this._id,required:this.required,tooltipText:this.info},this.label),i("label",{key:"570a0637d106b24823d39945e1b7a68a4cec4f36",class:`${e}__switch`,htmlFor:this._id,onClick:e=>e.preventDefault()},i("input",{key:"197a94215e42e7a8a9d5a5652ad1163b501799ab",class:`${e}__input`,"aria-invalid":this.error||this.validationError?"true":void 0,"aria-label":this.label||null,id:this._id,type:"checkbox",name:this.name,required:this.required,disabled:this.isDisabled,checked:this.isChecked,onInvalid:this.handleInvalid}),i("span",{key:"09ac81f91f9dc92c4e4cac593db4be4697243ce0",class:`${e}__slider ${e}__slider--round`}))),""!==s&&i("bds-typography",{key:"4a35755ec9e280dfedb839826683f1272c76223d",class:`${e}__helper-text`,variant:"helper",state:t,onClick:e=>e.stopPropagation()},s))}static get formAssociated(){return!0}get el(){return a(this)}static get watchers(){return{checked:[{onCheckedChange:0}],disabled:[{onDisabledChange:0}]}}};b.style='@charset "UTF-8";.bds-toggle{font-family:var(--boreal-typography-font-family-primary);display:inline-block}.bds-toggle__container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs);outline:none;width:-webkit-max-content;width:-moz-max-content;width:max-content}.bds-toggle__container:focus{outline:none}.bds-toggle__container--inverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.bds-toggle:active,.bds-toggle:focus-visible{outline:none}.bds-toggle:active .bds-toggle__input:not([disabled])+.bds-toggle__slider,.bds-toggle:focus-visible .bds-toggle__input:not([disabled])+.bds-toggle__slider{-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-toggle .bds-toggle__input:active:not([disabled])+.bds-toggle__slider,.bds-toggle .bds-toggle__input:focus-visible:not([disabled])+.bds-toggle__slider{-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-toggle:hover:not(:active):not([checked]):not([disabled]) .bds-toggle__slider,.bds-toggle:hover:not(:active):focus-within:not([checked]) .bds-toggle__slider{-webkit-box-shadow:0 1px 2px 0 var(--boreal-stroke-default-light);box-shadow:0 1px 2px 0 var(--boreal-stroke-default-light)}.bds-toggle__switch{position:relative;display:inline-block;width:var(--boreal-spacing-3xl);height:var(--boreal-spacing-l)}.bds-toggle__input{opacity:0;width:0;height:0}.bds-toggle__input:not(:checked)+.bds-toggle__slider{border:1px solid var(--boreal-stroke-default-light)}.bds-toggle__input:checked+.bds-toggle__slider{background-color:var(--boreal-ui-primary-base)}.bds-toggle__input:checked+.bds-toggle__slider::before{-webkit-transform:translateX(var(--boreal-spacing-l));-ms-transform:translateX(var(--boreal-spacing-l));transform:translateX(var(--boreal-spacing-l))}.bds-toggle__input:disabled+.bds-toggle__slider{background-color:var(--boreal-ui-disabled);cursor:default}.bds-toggle__input:disabled+.bds-toggle__slider::before{background-color:var(--boreal-icon-default-light)}.bds-toggle__input:disabled:checked+.bds-toggle__slider{background-color:var(--boreal-ui-primary-light)}.bds-toggle__input:disabled:checked+.bds-toggle__slider::before{background-color:var(--boreal-icon-inverse)}.bds-toggle__slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--boreal-ui-base-light);-webkit-transition:all 0.4s, border-color 0s;transition:all 0.4s, border-color 0s}.bds-toggle__slider::before{position:absolute;content:"";height:var(--boreal-typography-font-size-md);width:var(--boreal-typography-font-size-md);left:var(--boreal-spacing-2xs);background-color:var(--boreal-text-inverse);bottom:0;top:0;margin:auto;-webkit-transition:0.3s;transition:0.3s}.bds-toggle__slider--round{border-radius:var(--boreal-radius-m)}.bds-toggle__slider--round::before{border-radius:var(--boreal-radius-full)}.bds-toggle__label{font-size:var(--boreal-typography-font-size-sm);color:var(--boreal-text-default)}.bds-toggle__helper-text{display:-ms-flexbox;display:flex;position:relative;color:var(--boreal-text-default-light);font-size:var(--boreal-typography-font-size-xs);margin-top:var(--boreal-spacing-2xs)}';export{b as bds_toggle}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{M as t,r as s,c as e,h as i,a as o,g as r}from"./p-BqJlOB6b.js";import{C as a}from"./p-Bfazyxqi.js";import{v as n}from"./p-kGnB15Lz.js";import{K as l}from"./p-CzYQb3pP.js";const h=t=>class extends t{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.activeItem=!1}get parentRole(){const t=this.el.closest('[role="menu"], [role="listbox"]');return null!==t?t.getAttribute("role"):null}get menuItemRole(){return"menu"===(this.parentRole||"menu")?"menuitem":"option"}get ariaSelected(){return"option"===this.menuItemRole?String(this.selected):null}get itemTabIndex(){return t=this.menuItemRole,s=this.activeItem,this.disabled?-1:"option"===t?this.selected||s?0:-1:"menuitem"===t&&s?0:-1;var t,s}handleKeyDownLogic(t,s){if(function(t){[l.ArrowDown.key,l.ArrowUp.key,l.Enter.key,l.Space.key].includes(t.key)&&t.preventDefault()}(t),t.key===l.Enter.key||t.key===l.Space.key)return void s();const e=this.el.closest("[role='menu'], [role='listbox']");if(null===e)return;const i=Array.from(e.querySelectorAll(`${this.el.tagName.toLocaleLowerCase()}:not([disabled]):not([variant="label"])`)),o=i.indexOf(this.el);!function(t,s,e){if(0===s.length||-1===e)return;let i=-1;switch(t.key){case l.ArrowDown.key:i=(e+1)%s.length;break;case l.ArrowUp.key:i=(e-1+s.length)%s.length;break;default:return}s[i].focus()}(t,i,o)}},b=t=>class extends t{constructor(){super(...arguments),this.href="",this.newTab=!1,this.download=""}get isLink(){return""!==this.href||""!==this.download}get linkAttributes(){const t={};if(!this.isLink)return t;const s=this.sanitizeUrl(this.href);return t.href=s,t.target=this.newTab?"_blank":"_self",t.rel=this._isExternalLink(s)||this.newTab||""!==this.download?"noopener noreferrer":"",t.download=""!==this.download?this.download:void 0,"a"!==this.el.tagName.toLowerCase()&&(t.role="link",t.tabindex="0"),t}_isExternalLink(t){return/^https?:\/\//.test(t)&&!t.includes(window.location.hostname)}handleLinkKeyDown(t){this.isLink&&("a"===this.el.tagName.toLowerCase()||t.key!==l.Enter.key&&t.key!==l.Space.key||(t.preventDefault(),this.handleLinkClick(new MouseEvent("click",{bubbles:!0,cancelable:!0}))))}handleLinkClick(t){if(!this.isLink)return void t.preventDefault();const s=this.linkAttributes;if(""!==s.download&&void 0!==s.download){t.preventDefault();const e=document.createElement("a");e.href=s.download||"",e.download=s.download,e.style.display="none",document.body.appendChild(e),console.log("Initiating download:",e.href),e.click(),document.body.removeChild(e)}"a"!==this.el.tagName.toLowerCase()&&("_blank"===s.target?window.open(s.href,"_blank",s.rel):window.location.href=s.href||"",t.preventDefault())}sanitizeUrl(t){const s=t.trim().toLowerCase();return s.startsWith("javascript:")||s.startsWith("data:")||s.includes("\0")?"":s.startsWith("http://")||s.startsWith("https://")||s.startsWith("mailto:")||s.startsWith("tel:")||s.startsWith("/")||s.startsWith("#")?t:s.startsWith("://")?"":`https://${t}`}},d={LABEL:"label",BUTTON:"button"},c=class extends(t(h,b)){constructor(t){super(),s(this,t),this.bdsSelect=e(this,"bdsSelect"),this.variant=d.BUTTON,this.name="",this.disabled=!1,this.selected=!1,this.value="",this.activeItem=!1,this.href="",this.newTab=!1,this.download="",this.currentState=a.DEFAULT,this.handleClick=t=>{this.disabled||this.isLabelVariant||(this.isLink?this.handleLinkClick(t):this.bdsSelect.emit({value:this.value,selected:!this.selected}))},this.handleKeyDown=t=>{this.disabled||this.isLabelVariant||(this.handleKeyDownLogic(t,(()=>this.handleClick(t))),this.isLink&&void 0===this.linkAttributes.download||(this.currentState=t.key===l.Enter.key||t.key===l.Space.key?a.ACTIVE:this.currentState))},this.handleKeyUp=()=>{this.disabled||this.isLabelVariant||(this.currentState=a.DEFAULT)}}checkPropsVariant(){n(Object.values(d),d.BUTTON,this.el,"variant")}componentWillLoad(){this.checkPropsVariant()}get isLabelVariant(){return this.variant===d.LABEL}get classMap(){return{"bds-list-item":!0,"bds-list-item--disabled":this.disabled,"bds-list-item--selected":this.selected,[`bds-list-item--state-${this.currentState}`]:!0,[`bds-list-item--${this.variant}`]:!0}}renderTypeLabel(){return i("bds-typography",{variant:"label",element:"label",align:"start",role:"presentation"},i("slot",{name:"left-content"})," ",i("slot",null))}renderTypeButton(){return i("div",{class:"bds-list-item__content"},i("div",{class:"bds-list-item__content--left"},i("slot",{name:"left-content"}),i("slot",null)),i("div",{class:"bds-list-item__content--right"},i("slot",{name:"right-content"})))}render(){let t=this.renderTypeButton();this.isLabelVariant&&(t=this.renderTypeLabel());const s=this.isLink?{...this.linkAttributes,tabindex:this.activeItem?0:-1}:{};return i(o,{key:"ccf9e4a413fd0f13e38f040a0da92493c84d5ae2",class:this.classMap,role:this.isLabelVariant?"presentation":this.menuItemRole,"aria-selected":this.ariaSelected,tabIndex:this.isLabelVariant?-1:this.itemTabIndex,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,...s},t)}get el(){return r(this)}static get watchers(){return{variant:[{checkPropsVariant:0}]}}};c.style='@charset "UTF-8";.bds-list-item,.bds-list-item__content,.bds-list-item__content--left,.bds-list-item__content--right{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bds-list-item{font-family:var(--boreal-typography-font-family-primary);-ms-flex-item-align:stretch;align-self:stretch;color:var(--boreal-text-default);width:100%;font-size:var(--boreal-typography-font-size-sm);font-style:normal;font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm)}.bds-list-item__content{-ms-flex-pack:justify;justify-content:space-between;width:100%;gap:var(--boreal-spacing-3xs)}.bds-list-item__content [class*=bds-icon-]{font-size:var(--boreal-typography-font-size-md)}.bds-list-item--button{cursor:pointer;padding:var(--boreal-spacing-2xs) var(--boreal-spacing-s);-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-list-item--button:not(.bds-list-item--disabled):hover:not([selected]){background-color:var(--boreal-ui-default-lighter);-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-list-item--button:not(.bds-list-item--disabled):focus,.bds-list-item--button:not(.bds-list-item--disabled):focus-visible{outline:none;-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);z-index:1}.bds-list-item--button:not(.bds-list-item--disabled):active,.bds-list-item--button:not(.bds-list-item--disabled).bds-list-item--state-active{-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;background-color:var(--boreal-ui-default-lighter)}.bds-list-item--selected{background-color:var(--boreal-ui-primary-lighter)}.bds-list-item--disabled{color:var(--boreal-text-disabled);cursor:not-allowed}.bds-list-item--label{cursor:default;padding:var(--boreal-spacing-3xs) 0}.bds-list-item--label .bds-typography label{color:var(--boreal-text-default-light)}';export{c as bds_list_menu_item}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as t,h as r,g as b}from"./p-BqJlOB6b.js";import{C as a}from"./p-Bfazyxqi.js";import{a as e,b as s,B as n}from"./p-C8mRvnTA.js";import{v as d}from"./p-kGnB15Lz.js";const i={DEFAULT:"default",PRIMARY:"primary",SUCCESS:"success",ERROR:"error"},u=class{constructor(r){o(this,r),this.bdsClick=t(this,"bdsClick"),r.$hostElement$["s-ei"]?this.internals=r.$hostElement$["s-ei"]:(this.internals=r.$hostElement$.attachInternals(),r.$hostElement$["s-ei"]=this.internals),this.currentState=a.DEFAULT,this.label="",this.disabled=!1,this.name="",this.type=e.BUTTON,this.color=i.DEFAULT,this.variant=s.DEFAULT,this.size=n.MEDIUM,this.loading=!1,this.disclosure=!1,this.handleKeyDown=o=>{"Enter"!==o.key&&" "!==o.key||(this.currentState=a.ACTIVE,o.preventDefault(),this.handleClick(o))},this.handleKeyUp=()=>{this.currentState=a.DEFAULT},this.handleClick=o=>{o.preventDefault(),o.stopPropagation(),this.disabled||this.loading||(this.type===e.SUBMIT||this.type===e.RESET?this.processFormClick():this.bdsClick.emit(o))}}checkPropValues(){d(Object.values(e),e.BUTTON,this.el,"type"),d(Object.values(i),i.DEFAULT,this.el,"color"),d(Object.values(s),s.DEFAULT,this.el,"variant"),d(Object.values(n),n.MEDIUM,this.el,"size")}componentWillLoad(){this.checkPropValues()}componentDidLoad(){this.setupFormAssociation()}setupFormAssociation(){const o=this.el.closest("form");this.internalForm=(this.internals&&"form"in this.internals?this.internals.form:null)||o||void 0}processFormClick(){if(void 0===this.internalForm)return void console.warn("[BorealDS Button] No form found for submit/reset action. Please ensure the button is within a form or that the form is properly associated.");const o={[e.SUBMIT]:()=>{"function"==typeof this.internalForm?.requestSubmit?this.internalForm.requestSubmit():this.internalForm?.submit()},[e.RESET]:()=>this.internalForm?.reset()}[this.type];"function"==typeof o&&o()}get getClassMap(){return{"bds-button":!0,"bds-button--is-disabled":this.disabled,"bds-button--is-loading":this.loading,[`bds-button--state-${this.currentState}`]:!0,[`bds-button--${this.color}`]:!0,[`bds-button--var-${this.variant}`]:!0,[`bds-button--size-${this.size}`]:!0}}render(){return r("button",{key:"e5e7dd996abf7f32218d1871069f4cdd5070cb6b",name:this.name,class:this.getClassMap,type:this.type,disabled:this.disabled||this.loading,"aria-label":this.label||void 0,"aria-disabled":this.disabled||this.loading,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp},r("div",{key:"815ced9f3e464c73f371227c098ea65a7097f376",class:"bds-button__content"},r("span",{key:"350acb5924bb036afeb2c252c71261c5b2015b1e",class:"bds-button__content-icon bds-button__content-icon--start"},r("slot",{key:"57feb7a77e7edd0d43c3432a5822cdaec60729f6",name:"icon"})),r("slot",{key:"07536c420613bc6d4d53b5947524e69999937d19"}),r("span",{key:"ae96692ab7ffe82df0f2a2cb685704912724df35",class:"bds-button__content-badge"},r("slot",{key:"6a802ae2b19f85c3678c16f7950b597efc981da6",name:"badge"})),this.disclosure&&r("span",{key:"c38f71595010045c86257f6d5c3ce48a504966ad",class:"bds-button__content-icon"},r("i",{key:"a51aff2455184cd38b2d7ebd52cc9c590b81601c",class:"bds-icon-chevron-down"}))))}static get formAssociated(){return!0}get el(){return b(this)}static get watchers(){return{type:[{checkPropValues:0}],color:[{checkPropValues:0}],variant:[{checkPropValues:0}],size:[{checkPropValues:0}]}}};u.style='@charset "UTF-8";bds-button{position:relative;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}.bds-button{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid transparent;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;margin:var(--boreal-spacing-2xs) var(--boreal-spacing-3xs);outline:none;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-semibold);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;vertical-align:middle}.bds-button .bds-button__content{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs)}.bds-button--is-loading{pointer-events:none;position:relative;color:transparent !important}.bds-button--is-loading::after{position:absolute;content:" ";-webkit-box-sizing:inherit;box-sizing:inherit;-webkit-animation:rotateSpinner 0.5s linear infinite;animation:rotateSpinner 0.5s linear infinite;border-radius:9999px;display:block;height:1em;width:1em;rotate:45deg;left:calc(50% - 0.5em);top:calc(50% - 0.5em);border:3px solid;border-right-color:transparent;border-top-color:transparent}.bds-button--size-small{border-radius:var(--boreal-radius-xs);font-size:var(--boreal-typography-font-size-xs);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-2xs);line-height:var(--boreal-typography-line-height-xs);height:26px}.bds-button--size-small .bds-button__content{padding:var(--boreal-spacing-3xs) var(--boreal-spacing-2xs)}.bds-button--size-small .bds-button__content-icon{display:-ms-flexbox;display:flex;font-size:var(--boreal-typography-font-size-sm);line-height:var(--boreal-typography-line-height-xs)}.bds-button--size-small .bds-button__content-icon:empty{display:none}.bds-button--size-small .bds-button__content{}.bds-button--size-small .bds-button__content-badge:empty{display:none}.bds-button--size-small .bds-button__content-badge{display:none}.bds-button--size-medium{border-radius:var(--boreal-radius-xs);font-size:var(--boreal-typography-font-size-sm);padding:var(--boreal-spacing-2xs) var(--boreal-spacing-1xs);line-height:var(--boreal-typography-line-height-sm);height:32px}.bds-button--size-medium .bds-button__content{padding:var(--boreal-spacing-3xs) var(--boreal-spacing-2xs)}.bds-button--size-medium .bds-button__content-icon{display:-ms-flexbox;display:flex;font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-sm)}.bds-button--size-medium .bds-button__content-icon:empty{display:none}.bds-button--size-medium .bds-button__content{}.bds-button--size-medium .bds-button__content-badge:empty{display:none}.bds-button--size-large{border-radius:var(--boreal-radius-xs);font-size:var(--boreal-typography-font-size-md);padding:var(--boreal-spacing-xs);line-height:var(--boreal-typography-line-height-md);height:44px}.bds-button--size-large .bds-button__content{padding:var(--boreal-spacing-3xs) var(--boreal-spacing-2xs)}.bds-button--size-large .bds-button__content-icon{display:-ms-flexbox;display:flex;font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-md)}.bds-button--size-large .bds-button__content-icon:empty{display:none}.bds-button--size-large .bds-button__content{}.bds-button--size-large .bds-button__content-badge:empty{display:none}.bds-button.bds-button--var-default.bds-button--default{color:var(--boreal-text-default);background-color:var(--boreal-ui-inverse);border-color:transparent}.bds-button.bds-button--var-default.bds-button--default:hover{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-default.bds-button--default:focus{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--default:active,.bds-button.bds-button--var-default.bds-button--default.bds-button--state-active{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-button.bds-button--var-default.bds-button--default.bds-button--is-disabled,.bds-button.bds-button--var-default.bds-button--default.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-disabled);background-color:var(--boreal-ui-inverse);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-default.bds-button--default.bds-button--is-loading::after{border-left-color:var(--boreal-text-disabled);border-bottom-color:var(--boreal-text-disabled)}.bds-button.bds-button--var-default.bds-button--primary{color:var(--boreal-text-inverse);background-color:var(--boreal-ui-primary-base);border-color:transparent}.bds-button.bds-button--var-default.bds-button--primary:hover{background-color:var(--boreal-ui-primary-dark);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-default.bds-button--primary:focus{background-color:var(--boreal-ui-primary-base);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--primary:active,.bds-button.bds-button--var-default.bds-button--primary.bds-button--state-active{background-color:var(--boreal-ui-primary-dark);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--primary.bds-button--is-disabled,.bds-button.bds-button--var-default.bds-button--primary.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-inverse);background-color:var(--boreal-ui-primary-light);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-default.bds-button--primary.bds-button--is-loading::after{border-left-color:var(--boreal-text-inverse);border-bottom-color:var(--boreal-text-inverse)}.bds-button.bds-button--var-default.bds-button--success{color:var(--boreal-text-inverse);background-color:var(--boreal-ui-success-base);border-color:transparent}.bds-button.bds-button--var-default.bds-button--success:hover{background-color:var(--boreal-ui-success-dark);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-default.bds-button--success:focus{background-color:var(--boreal-ui-success-base);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--success:active,.bds-button.bds-button--var-default.bds-button--success.bds-button--state-active{background-color:var(--boreal-ui-success-dark);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--success.bds-button--is-disabled,.bds-button.bds-button--var-default.bds-button--success.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-inverse);background-color:var(--boreal-ui-success-light);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-default.bds-button--success.bds-button--is-loading::after{border-left-color:var(--boreal-text-inverse);border-bottom-color:var(--boreal-text-inverse)}.bds-button.bds-button--var-default.bds-button--error{color:var(--boreal-text-inverse);background-color:var(--boreal-ui-danger-base);border-color:transparent}.bds-button.bds-button--var-default.bds-button--error:hover{background-color:var(--boreal-ui-danger-dark);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-default.bds-button--error:focus{background-color:var(--boreal-ui-danger-base);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--error:active,.bds-button.bds-button--var-default.bds-button--error.bds-button--state-active{background-color:var(--boreal-ui-danger-dark);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--error.bds-button--is-disabled,.bds-button.bds-button--var-default.bds-button--error.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-inverse);background-color:var(--boreal-ui-danger-light);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-default.bds-button--error.bds-button--is-loading::after{border-left-color:var(--boreal-text-inverse);border-bottom-color:var(--boreal-text-inverse)}.bds-button.bds-button--var-outline{background-color:transparent}.bds-button.bds-button--var-outline.bds-button--default{color:var(--boreal-text-default);background-color:transparent;border-color:var(--boreal-stroke-default-light)}.bds-button.bds-button--var-outline.bds-button--default:hover{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-outline.bds-button--default:focus{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--default:active,.bds-button.bds-button--var-outline.bds-button--default.bds-button--state-active{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--default.bds-button--is-disabled,.bds-button.bds-button--var-outline.bds-button--default.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-disabled);background-color:var(--boreal-ui-inverse);border-color:var(--boreal-stroke-default-light);-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-outline.bds-button--default.bds-button--is-loading::after{border-left-color:var(--boreal-text-disabled);border-bottom-color:var(--boreal-text-disabled)}.bds-button.bds-button--var-outline.bds-button--primary{color:var(--boreal-text-primary-base);background-color:transparent;border-color:var(--boreal-ui-primary-base)}.bds-button.bds-button--var-outline.bds-button--primary:hover{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-outline.bds-button--primary:focus{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--primary:active,.bds-button.bds-button--var-outline.bds-button--primary.bds-button--state-active{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--primary.bds-button--is-disabled,.bds-button.bds-button--var-outline.bds-button--primary.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-primary-light);background-color:transparent;border-color:var(--boreal-stroke-primary-light);-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-outline.bds-button--primary.bds-button--is-loading::after{border-left-color:var(--boreal-text-primary-light);border-bottom-color:var(--boreal-text-primary-light)}.bds-button.bds-button--var-outline.bds-button--success{color:var(--boreal-text-success-base);background-color:transparent;border-color:var(--boreal-stroke-success-base)}.bds-button.bds-button--var-outline.bds-button--success:hover{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-outline.bds-button--success:focus{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--success:active,.bds-button.bds-button--var-outline.bds-button--success.bds-button--state-active{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--success.bds-button--is-disabled,.bds-button.bds-button--var-outline.bds-button--success.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-success-light);background-color:transparent;border-color:var(--boreal-stroke-success-light);-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-outline.bds-button--success.bds-button--is-loading::after{border-left-color:var(--boreal-text-success-light);border-bottom-color:var(--boreal-text-success-light)}.bds-button.bds-button--var-outline.bds-button--error{color:var(--boreal-text-danger-base);background-color:transparent;border-color:var(--boreal-stroke-danger-base)}.bds-button.bds-button--var-outline.bds-button--error:hover{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-outline.bds-button--error:focus{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--error:active,.bds-button.bds-button--var-outline.bds-button--error.bds-button--state-active{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--error.bds-button--is-disabled,.bds-button.bds-button--var-outline.bds-button--error.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-danger-light);background-color:transparent;border-color:var(--boreal-stroke-danger-light);-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-outline.bds-button--error.bds-button--is-loading::after{border-left-color:var(--boreal-text-danger-light);border-bottom-color:var(--boreal-text-danger-light)}.bds-button.bds-button--var-plain{background-color:transparent}.bds-button.bds-button--var-plain.bds-button--default{color:var(--boreal-text-default);background-color:transparent;border-color:transparent}.bds-button.bds-button--var-plain.bds-button--default:hover{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-plain.bds-button--default:focus{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-plain.bds-button--default:active,.bds-button.bds-button--var-plain.bds-button--default.bds-button--state-active{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-button.bds-button--var-plain.bds-button--default.bds-button--is-disabled,.bds-button.bds-button--var-plain.bds-button--default.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-disabled);background-color:var(--boreal-ui-inverse);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-plain.bds-button--default.bds-button--is-loading::after{border-left-color:var(--boreal-text-disabled);border-bottom-color:var(--boreal-text-disabled)}.bds-button.bds-button--var-plain.bds-button--primary{color:var(--boreal-text-primary-base);background-color:transparent;border-color:transparent}.bds-button.bds-button--var-plain.bds-button--primary:hover{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-plain.bds-button--primary:focus{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-plain.bds-button--primary:active,.bds-button.bds-button--var-plain.bds-button--primary.bds-button--state-active{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-button.bds-button--var-plain.bds-button--primary.bds-button--is-disabled,.bds-button.bds-button--var-plain.bds-button--primary.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-primary-light);background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-plain.bds-button--primary.bds-button--is-loading::after{border-left-color:var(--boreal-text-primary-light);border-bottom-color:var(--boreal-text-primary-light)}.bds-button.bds-button--var-plain.bds-button--success{color:var(--boreal-text-success-base);background-color:transparent;border-color:transparent}.bds-button.bds-button--var-plain.bds-button--success:hover{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-plain.bds-button--success:focus{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-plain.bds-button--success:active,.bds-button.bds-button--var-plain.bds-button--success.bds-button--state-active{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-button.bds-button--var-plain.bds-button--success.bds-button--is-disabled,.bds-button.bds-button--var-plain.bds-button--success.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-success-light);background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-plain.bds-button--success.bds-button--is-loading::after{border-left-color:var(--boreal-text-success-light);border-bottom-color:var(--boreal-text-success-light)}.bds-button.bds-button--var-plain.bds-button--error{color:var(--boreal-text-danger-base);background-color:transparent;border-color:transparent}.bds-button.bds-button--var-plain.bds-button--error:hover{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-plain.bds-button--error:focus{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-plain.bds-button--error:active,.bds-button.bds-button--var-plain.bds-button--error.bds-button--state-active{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-button.bds-button--var-plain.bds-button--error.bds-button--is-disabled,.bds-button.bds-button--var-plain.bds-button--error.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-danger-light);background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-plain.bds-button--error.bds-button--is-loading::after{border-left-color:var(--boreal-text-danger-light);border-bottom-color:var(--boreal-text-danger-light)}@-webkit-keyframes rotateSpinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotateSpinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}';export{u as bds_button}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as t}from"./p-DCXSEEVH.js";import{K as n}from"./p-CzYQb3pP.js";const e="focus",o="blur",i=Math.min,r=Math.max,s=Math.round,l=Math.floor,a=t=>({x:t,y:t}),c={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function f(t,n,e){return r(t,i(n,e))}function d(t,n){return"function"==typeof t?t(n):t}function h(t){return t.split("-")[0]}function m(t){return t.split("-")[1]}function p(t){return"x"===t?"y":"x"}function y(t){return"y"===t?"height":"width"}const g=new Set(["top","bottom"]);function w(t){return g.has(h(t))?"y":"x"}function x(t){return p(w(t))}function v(t){return t.replace(/start|end/g,(t=>u[t]))}const b=["left","right"],A=["right","left"],S=["top","bottom"],F=["bottom","top"];function R(t){return t.replace(/left|right|bottom|top/g,(t=>c[t]))}function P(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 k(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 C(t,n,e){let{reference:o,floating:i}=t;const r=w(n),s=x(n),l=y(s),a=h(n),c="y"===r,u=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[l]/2-i[l]/2;let p;switch(a){case"top":p={x:u,y:o.y-i.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:f};break;case"left":p={x:o.x-i.width,y:f};break;default:p={x:o.x,y:o.y}}switch(m(n)){case"start":p[s]-=d*(e&&c?-1:1);break;case"end":p[s]+=d*(e&&c?-1:1)}return p}async function D(t,n){var e;void 0===n&&(n={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=d(n,t),p=P(m),y=l[h?"floating"===f?"reference":"floating":f],g=k(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:c,rootBoundary:u,strategy:a})),w="floating"===f?{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=k(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:x,strategy:a}):w);return{top:(g.top-b.top+p.top)/v.y,bottom:(b.bottom-g.bottom+p.bottom)/v.y,left:(g.left-b.left+p.left)/v.x,right:(b.right-g.right+p.right)/v.x}}const T=new Set(["left","top"]);function E(){return"undefined"!=typeof window}function L(t){return M(t)?(t.nodeName||"").toLowerCase():"#document"}function O(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function $(t){var n;return null==(n=(M(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function M(t){return!!E()&&(t instanceof Node||t instanceof O(t).Node)}function z(t){return!!E()&&(t instanceof Element||t instanceof O(t).Element)}function B(t){return!!E()&&(t instanceof HTMLElement||t instanceof O(t).HTMLElement)}function q(t){return!(!E()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof O(t).ShadowRoot)}const j=new Set(["inline","contents"]);function H(t){const{overflow:n,overflowX:e,overflowY:o,display:i}=J(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!j.has(i)}const I=new Set(["table","td","th"]);function N(t){return I.has(L(t))}const K=[":popover-open",":modal"];function U(t){return K.some((n=>{try{return t.matches(n)}catch(t){return!1}}))}const V=["transform","translate","scale","rotate","perspective"],W=["transform","translate","scale","rotate","perspective","filter"],X=["paint","layout","strict","content"];function Y(t){const n=Q(),e=z(t)?J(t):t;return V.some((t=>!!e[t]&&"none"!==e[t]))||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||W.some((t=>(e.willChange||"").includes(t)))||X.some((t=>(e.contain||"").includes(t)))}function Q(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const _=new Set(["html","body","#document"]);function G(t){return _.has(L(t))}function J(t){return O(t).getComputedStyle(t)}function Z(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function tt(t){if("html"===L(t))return t;const n=t.assignedSlot||t.parentNode||q(t)&&t.host||$(t);return q(n)?n.host:n}function nt(t){const n=tt(t);return G(n)?t.ownerDocument?t.ownerDocument.body:t.body:B(n)&&H(n)?n:nt(n)}function et(t,n,e){var o;void 0===n&&(n=[]),void 0===e&&(e=!0);const i=nt(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),s=O(i);if(r){const t=ot(s);return n.concat(s,s.visualViewport||[],H(i)?i:[],t&&e?et(t):[])}return n.concat(i,et(i,[],e))}function ot(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function it(t){const n=J(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const i=B(t),r=i?t.offsetWidth:e,l=i?t.offsetHeight:o,a=s(e)!==r||s(o)!==l;return a&&(e=r,o=l),{width:e,height:o,$:a}}function rt(t){return z(t)?t:t.contextElement}function st(t){const n=rt(t);if(!B(n))return a(1);const e=n.getBoundingClientRect(),{width:o,height:i,$:r}=it(n);let l=(r?s(e.width):e.width)/o,c=(r?s(e.height):e.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const lt=a(0);function at(t){const n=O(t);return Q()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:lt}function ct(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),r=rt(t);let s=a(1);n&&(o?z(o)&&(s=st(o)):s=st(t));const l=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==O(t))&&n}(r,e,o)?at(r):a(0);let c=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(r){const t=O(r),n=o&&z(o)?O(o):o;let e=t,i=ot(e);for(;i&&o&&n!==e;){const t=st(i),n=i.getBoundingClientRect(),o=J(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,d*=t.y,c+=r,u+=s,e=O(i),i=ot(e)}}return k({width:f,height:d,x:c,y:u})}function ut(t,n){const e=Z(t).scrollLeft;return n?n.left+e:ct($(t)).left+e}function ft(t,n){const e=t.getBoundingClientRect();return{x:e.left+n.scrollLeft-ut(t,e),y:e.top+n.scrollTop}}const dt=new Set(["absolute","fixed"]);function ht(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=O(t),o=$(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=Q();(!t||t&&"fixed"===n)&&(l=i.offsetLeft,a=i.offsetTop)}const c=ut(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,e);else if("document"===n)o=function(t){const n=$(t),e=Z(t),o=t.ownerDocument.body,i=r(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),s=r(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+ut(t);const a=-e.scrollTop;return"rtl"===J(o).direction&&(l+=r(n.clientWidth,o.clientWidth)-i),{width:i,height:s,x:l,y:a}}($(t));else if(z(n))o=function(t,n){const e=ct(t,!0,"fixed"===n),o=e.top+t.clientTop,i=e.left+t.clientLeft,r=B(t)?st(t):a(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(n,e);else{const e=at(t);o={x:n.x-e.x,y:n.y-e.y,width:n.width,height:n.height}}return k(o)}function mt(t,n){const e=tt(t);return!(e===n||!z(e)||G(e))&&("fixed"===J(e).position||mt(e,n))}function pt(t,n,e){const o=B(n),i=$(n),r="fixed"===e,s=ct(t,!0,r,n);let l={scrollLeft:0,scrollTop:0};const c=a(0);function u(){c.x=ut(i)}if(o||!o&&!r)if(("body"!==L(n)||H(i))&&(l=Z(n)),o){const t=ct(n,!0,r,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else i&&u();r&&!o&&i&&u();const f=!i||o||r?a(0):ft(i,l);return{x:s.left+l.scrollLeft-c.x-f.x,y:s.top+l.scrollTop-c.y-f.y,width:s.width,height:s.height}}function yt(t){return"static"===J(t).position}function gt(t,n){if(!B(t)||"fixed"===J(t).position)return null;if(n)return n(t);let e=t.offsetParent;return $(t)===e&&(e=e.ownerDocument.body),e}function wt(t,n){const e=O(t);if(U(t))return e;if(!B(t)){let n=tt(t);for(;n&&!G(n);){if(z(n)&&!yt(n))return n;n=tt(n)}return e}let o=gt(t,n);for(;o&&N(o)&&yt(o);)o=gt(o,n);return o&&G(o)&&yt(o)&&!Y(o)?e:o||function(t){let n=tt(t);for(;B(n)&&!G(n);){if(Y(n))return n;if(U(n))return null;n=tt(n)}return null}(t)||e}const xt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:o,strategy:i}=t;const r="fixed"===i,s=$(o),l=!!n&&U(n.floating);if(o===s||l&&r)return e;let c={scrollLeft:0,scrollTop:0},u=a(1);const f=a(0),d=B(o);if((d||!d&&!r)&&(("body"!==L(o)||H(s))&&(c=Z(o)),B(o))){const t=ct(o);u=st(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const h=!s||d||r?a(0):ft(s,c);return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:e.y*u.y-c.scrollTop*u.y+f.y+h.y}},getDocumentElement:$,getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:s}=t;const l=[..."clippingAncestors"===e?U(n)?[]:function(t,n){const e=n.get(t);if(e)return e;let o=et(t,[],!1).filter((t=>z(t)&&"body"!==L(t))),i=null;const r="fixed"===J(t).position;let s=r?tt(t):t;for(;z(s)&&!G(s);){const n=J(s),e=Y(s);e||"fixed"!==n.position||(i=null),(r?!e&&!i:!e&&"static"===n.position&&i&&dt.has(i.position)||H(s)&&!e&&mt(t,s))?o=o.filter((t=>t!==s)):i=n,s=tt(s)}return n.set(t,o),o}(n,this._c):[].concat(e),o],a=l.reduce(((t,e)=>{const o=ht(n,e,s);return t.top=r(o.top,t.top),t.right=i(o.right,t.right),t.bottom=i(o.bottom,t.bottom),t.left=r(o.left,t.left),t}),ht(n,l[0],s));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:wt,getElementRects:async function(t){const n=this.getOffsetParent||wt,e=this.getDimensions,o=await e(t.floating);return{reference:pt(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}=it(t);return{width:n,height:e}},getScale:st,isElement:z,isRTL:function(t){return"rtl"===J(t).direction}};function vt(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}const bt=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=h(e),l=m(e),a="y"===w(e),c=T.has(s)?-1:1,u=r&&a?-1:1,f=d(n,t);let{mainAxis:p,crossAxis:y,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof g&&(y="end"===l?-1*g:g),a?{x:y*u,y:p*c}:{x:p*c,y:y*u}}(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}}}}},At=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:c}=n,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:k=!0,...C}=d(t,n);if(null!=(e=r.arrow)&&e.alignmentOffset)return{};const D=h(i),T=w(l),E=h(l)===l,L=await(null==a.isRTL?void 0:a.isRTL(c.floating)),O=p||(E||!k?[R(l)]:function(t){const n=R(t);return[v(t),n,v(n)]}(l)),$="none"!==P;!p&&$&&O.push(...function(t,n,e,o){const i=m(t);let r=function(t,n,e){switch(t){case"top":case"bottom":return e?n?A:b:n?b:A;case"left":case"right":return n?S:F;default:return[]}}(h(t),"start"===e,o);return i&&(r=r.map((t=>t+"-"+i)),n&&(r=r.concat(r.map(v)))),r}(l,k,P,L));const M=[l,...O],z=await a.detectOverflow(n,C),B=[];let q=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&B.push(z[D]),f){const t=function(t,n,e){void 0===e&&(e=!1);const o=m(t),i=x(t),r=y(i);let s="x"===i?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[r]>n.floating[r]&&(s=R(s)),[s,R(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"!==f||T===w(n)||q.every((t=>w(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(g){case"bestFit":{var I;const t=null==(I=q.filter((t=>{if($){const n=w(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 St{error(t,n){throw new Error(`[${t}]: ${n}`)}warn(t,n){console.warn(`[${t}]: ${n}`)}log(t,n){console.log(`[${t}]: ${n}`)}}class Ft{constructor(t){this.logger=t}async computePosition(t,n,e){null==t&&this.logger.error("FloatingAdapter.computePosition","Reference element is required for positioning."),null==n&&this.logger.error("FloatingAdapter.computePosition","Floating element is required for positioning.");const{placement:o,offset:r,flip:s,shift:l,arrow:a,strategy:c}=e,u=[bt(r)];s&&u.push(At()),l&&u.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:a={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...c}=d(t,n),u={x:e,y:o},m=await r.detectOverflow(n,c),y=w(h(i)),g=p(y);let x=u[g],v=u[y];s&&(x=f(x+m["y"===g?"top":"left"],x,x-m["y"===g?"bottom":"right"])),l&&(v=f(v+m["y"===y?"top":"left"],v,v-m["y"===y?"bottom":"right"]));const b=a.fn({...n,[g]:x,[y]:v});return{...b,data:{x:b.x-e,y:b.y-o,enabled:{[g]:s,[y]:l}}}}}}()),null!=a&&u.push((t=>({name:"arrow",options:t,async fn(n){const{x:e,y:o,placement:r,rects:s,platform:l,elements:a,middlewareData:c}=n,{element:u,padding:h=0}=d(t,n)||{};if(null==u)return{};const p=P(h),g={x:e,y:o},w=x(r),v=y(w),b=await l.getDimensions(u),A="y"===w,S=A?"top":"left",F=A?"bottom":"right",R=A?"clientHeight":"clientWidth",k=s.reference[v]+s.reference[w]-g[w]-s.floating[v],C=g[w]-s.reference[w],D=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u));let T=D?D[R]:0;T&&await(null==l.isElement?void 0:l.isElement(D))||(T=a.floating[R]||s.floating[v]);const E=k/2-C/2,L=T/2-b[v]/2-1,O=i(p[S],L),$=i(p[F],L),M=O,z=T-b[v]-$,B=T/2-b[v]/2+E,q=f(M,B,z),j=!c.arrow&&null!=m(r)&&B!==q&&s.reference[v]/2-(B<M?O:$)-b[v]/2<0,H=j?B<M?B-M:B-z:0;return{[w]:g[w]+H,data:{[w]:q,centerOffset:B-q-H,...j&&{alignmentOffset:H}},reset:j}}}))({element:a}));const g=await((t,n,e)=>{const o=new Map,i={platform:xt,...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}=C(c,o,a),d=o,h={},m=0;for(let e=0;e<l.length;e++){var p;const{name:r,fn:y}=l[e],{x:g,y:w,data:x,reset:v}=await y({x:u,y:f,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:c,platform:{...s,detectOverflow:null!=(p=s.detectOverflow)?p:D},elements:{reference:t,floating:n}});u=null!=g?g:u,f=null!=w?w:f,h={...h,[r]:{...h[r],...x}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(c=!0===v.rects?await s.getElementRects({reference:t,floating:n,strategy:i}):v.rects),({x:u,y:f}=C(c,d,a))),e=-1)}return{x:u,y:f,placement:d,strategy:i,middlewareData:h}})(t,n,{...i,platform:r})})(t,n,{placement:o,middleware:u,strategy:c}).catch((t=>{this.logger.error("FloatingAdapter.computePosition",t.message)})).then((t=>t)),{x:v,y:b,placement:A,middlewareData:S}=g;return{x:v,y:b,placement:A,middlewareData:S}}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 Rt extends Ft{constructor(){super(new St)}}const Pt=s=>{class a extends(t(s)){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)}hideFocus(){const t=this.floatingContent?.contains(document.activeElement);t&&document.activeElement?.blur()}hideElement(){this.stopAutoUpdate(),this.hideFocus(),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,e,o){t.key!==n.Enter.key&&" "!==t.key||e(),t.key===n.Escape.key&&o()}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,n,e,o){const s=()=>{this.updatePosition(t,n,e,o)};s(),this.cleanupAutoUpdate=function(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,d=rt(t),h=s||a?[...d?et(d):[],...et(n)]:[];h.forEach((t=>{s&&t.addEventListener("scroll",e,{passive:!0}),a&&t.addEventListener("resize",e)}));const m=d&&u?function(t,n){let e,o=null;const s=$(t);function a(){var t;clearTimeout(e),null==(t=o)||t.disconnect(),o=null}return function c(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),a();const d=t.getBoundingClientRect(),{left:h,top:m,width:p,height:y}=d;if(u||n(),!p||!y)return;const g={rootMargin:-l(m)+"px "+-l(s.clientWidth-(h+p))+"px "+-l(s.clientHeight-(m+y))+"px "+-l(h)+"px",threshold:r(0,i(1,f))||1};let w=!0;function x(n){const o=n[0].intersectionRatio;if(o!==f){if(!w)return c();o?c(!1,o):e=setTimeout((()=>{c(!1,1e-7)}),1e3)}1!==o||vt(d,t.getBoundingClientRect())||c(),w=!1}try{o=new IntersectionObserver(x,{...g,root:s.ownerDocument})}catch(t){o=new IntersectionObserver(x,g)}o.observe(t)}(!0),a}(d,e):null;let p,y=-1,g=null;c&&(g=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&g&&(g.unobserve(n),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(n)}))),e()})),d&&!f&&g.observe(d),g.observe(n));let w=f?ct(t):null;return f&&function n(){const o=ct(t);w&&!vt(w,o)&&e(),w=o,p=requestAnimationFrame(n)}(),e(),()=>{var t;h.forEach((t=>{s&&t.removeEventListener("scroll",e),a&&t.removeEventListener("resize",e)})),null==m||m(),null==(t=g)||t.disconnect(),g=null,f&&cancelAnimationFrame(p)}}(t,n,s,{elementResize:!0,layoutShift:!0})}stopAutoUpdate(){this.cleanupAutoUpdate?.(),this.cleanupAutoUpdate=void 0}attachTriggerListeners(t,n,i){t.addEventListener(e,n),t.addEventListener(o,i)}detachTriggerListeners(t,n,i){t.removeEventListener(e,n),t.removeEventListener(o,i)}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.closest(".bds-button, .bds-input, .bds-select")||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 Rt,this.logger=new St,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 a},kt=(t=!1,n=0,e)=>t?void 0!==n?n:0:void 0!==n?e+n:e;export{Pt as a,kt as g}
|
|
@@ -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 __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","./p-DZcx75cy.system.js"],(function(t){"use strict";var r,n;return{setters:[function(t){r=t.f},function(t){n=t.K}],execute:function(){var e=this;var i={Focus:"focus",Blur:"blur"};var a=Math.min;var u=Math.max;var o=Math.round;var f=Math.floor;var s=function(t){return{x:t,y:t}};var c={left:"right",right:"left",bottom:"top",top:"bottom"};var v={start:"end",end:"start"};function l(t,r,n){return u(t,a(r,n))}function d(t,r){return typeof t==="function"?t(r):t}function h(t){return t.split("-")[0]}function _(t){return t.split("-")[1]}function p(t){return t==="x"?"y":"x"}function g(t){return t==="y"?"height":"width"}var m=new Set(["top","bottom"]);function y(t){return m.has(h(t))?"y":"x"}function w(t){return p(y(t))}function b(t,r,n){if(n===void 0){n=false}var e=_(t);var i=w(t);var a=g(i);var u=i==="x"?e===(n?"end":"start")?"right":"left":e==="start"?"bottom":"top";if(r.reference[a]>r.floating[a]){u=P(u)}return[u,P(u)]}function x(t){var r=P(t);return[A(t),r,A(r)]}function A(t){return t.replace(/start|end/g,(function(t){return v[t]}))}var S=["left","right"];var O=["right","left"];var j=["top","bottom"];var k=["bottom","top"];function F(t,r,n){switch(t){case"top":case"bottom":if(n)return r?O:S;return r?S:O;case"left":case"right":return r?j:k;default:return[]}}function R(t,r,n,e){var i=_(t);var a=F(h(t),n==="start",e);if(i){a=a.map((function(t){return t+"-"+i}));if(r){a=a.concat(a.map(A))}}return a}function P(t){return t.replace(/left|right|bottom|top/g,(function(t){return c[t]}))}function T(t){return __assign({top:0,right:0,bottom:0,left:0},t)}function C(t){return typeof t!=="number"?T(t):{top:t,right:t,bottom:t,left:t}}function E(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 M(t,r,n){var e=t.reference,i=t.floating;var a=y(r);var u=w(r);var o=g(u);var f=h(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 l=e[o]/2-i[o]/2;var d;switch(f){case"top":d={x:c,y:e.y-i.height};break;case"bottom":d={x:c,y:e.y+e.height};break;case"right":d={x:e.x+e.width,y:v};break;case"left":d={x:e.x-i.width,y:v};break;default:d={x:e.x,y:e.y}}switch(_(r)){case"start":d[u]-=l*(n&&s?-1:1);break;case"end":d[u]+=l*(n&&s?-1:1);break}return d}function q(t,r){return __awaiter(this,void 0,void 0,(function(){var n,e,i,a,u,o,f,s,c,v,l,h,_,p,g,m,y,w,b,x,A,S,O,j,k,F,R,P,T,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=d(r,t),c=s.boundary,v=c===void 0?"clippingAncestors":c,l=s.rootBoundary,h=l===void 0?"viewport":l,_=s.elementContext,p=_===void 0?"floating":_,g=s.altBoundary,m=g===void 0?false:g,y=s.padding,w=y===void 0?0:y;b=C(w);x=p==="floating"?"reference":"floating";A=o[m?x:p];O=E;k=(j=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];F=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:F=R;B.label=5;case 5:return[4,k.apply(j,[(I.element=F,I.boundary=v,I.rootBoundary=h,I.strategy=f,I)])];case 6:S=O.apply(void 0,[B.sent()]);P=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:T=B.sent();return[4,a.isElement==null?void 0:a.isElement(T)];case 8:if(!B.sent())return[3,10];return[4,a.getScale==null?void 0:a.getScale(T)];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=E;if(!a.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,13];return[4,a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:P,offsetParent:T,strategy:f})];case 12:z=B.sent();return[3,14];case 13:z=P;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 D=function(t,r,n){return __awaiter(e,void 0,void 0,(function(){var e,i,a,u,o,f,s,c,v,l,d,h,_,p,g,m,y,w,b,x,A,S,O,j,k,F,R;var P,T;return __generator(this,(function(C){switch(C.label){case 0:e=n.placement,i=e===void 0?"bottom":e,a=n.strategy,u=a===void 0?"absolute":a,o=n.middleware,f=o===void 0?[]:o,s=n.platform;c=f.filter(Boolean);return[4,s.isRTL==null?void 0:s.isRTL(r)];case 1:v=C.sent();return[4,s.getElementRects({reference:t,floating:r,strategy:u})];case 2:l=C.sent();d=M(l,i,v),h=d.x,_=d.y;p=i;g={};m=0;y=0;C.label=3;case 3:if(!(y<c.length))return[3,11];b=c[y],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:q}),elements:{reference:t,floating:r}})];case 4:S=C.sent(),O=S.x,j=S.y,k=S.data,F=S.reset;h=O!=null?O:h;_=j!=null?j:_;g=__assign(__assign({},g),(P={},P[x]=__assign(__assign({},g[x]),k),P));if(!(F&&m<=50))return[3,10];m++;if(!(typeof F==="object"))return[3,9];if(F.placement){p=F.placement}if(!F.rects)return[3,8];if(!(F.rects===true))return[3,6];return[4,s.getElementRects({reference:t,floating:r,strategy:u})];case 5:R=C.sent();return[3,7];case 6:R=F.rects;C.label=7;case 7:l=R;C.label=8;case 8:T=M(l,p,v),h=T.x,_=T.y;C.label=9;case 9:y=-1;C.label=10;case 10:y++;return[3,3];case 11:return[2,{x:h,y:_,placement:p,strategy:u,middlewareData:g}]}}))}))};var L=function(t){return{name:"arrow",options:t,fn:function(r){return __awaiter(this,void 0,void 0,(function(){var n,e,i,u,o,f,s,c,v,h,p,m,y,b,x,A,S,O,j,k,F,R,P,T,E,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,e=r.y,i=r.placement,u=r.rects,o=r.platform,f=r.elements,s=r.middlewareData;c=d(t,r)||{},v=c.element,h=c.padding,p=h===void 0?0:h;if(v==null){return[2,{}]}m=C(p);y={x:n,y:e};b=w(i);x=g(b);return[4,o.getDimensions(v)];case 1:A=Y.sent();S=b==="y";O=S?"top":"left";j=S?"bottom":"right";k=S?"clientHeight":"clientWidth";F=u.reference[x]+u.reference[b]-y[b]-u.floating[x];R=y[b]-u.reference[b];return[4,o.getOffsetParent==null?void 0:o.getOffsetParent(v)];case 2:P=Y.sent();T=P?P[k]:0;E=!T;if(E)return[3,4];return[4,o.isElement==null?void 0:o.isElement(P)];case 3:E=!Y.sent();Y.label=4;case 4:if(E){T=f.floating[k]||u.floating[x]}M=F/2-R/2;q=T/2-A[x]/2-1;D=a(m[O],q);L=a(m[j],q);z=D;I=T-A[x]-L;B=T/2-A[x]/2+M;H=l(z,B,I);N=!s.arrow&&_(i)!=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]=y[b]+G,V.data=__assign((W={},W[b]=H,W.centerOffset=B-H-G,W),N&&{alignmentOffset:G}),V.reset=N,V)]}}))}))}}};var z=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,v,l,_,p,g,m,w,A,S,O,j,k,F,T,C,E,M,q,D,L,z,I,B,H,N,G,V,W,Y,Z,$;return __generator(this,(function(J){switch(J.label){case 0:i=r.placement,a=r.middlewareData,u=r.rects,o=r.initialPlacement,f=r.platform,s=r.elements;c=d(t,r),v=c.mainAxis,l=v===void 0?true:v,_=c.crossAxis,p=_===void 0?true:_,g=c.fallbackPlacements,m=c.fallbackStrategy,w=m===void 0?"bestFit":m,A=c.fallbackAxisSideDirection,S=A===void 0?"none":A,O=c.flipAlignment,j=O===void 0?true:O,k=__rest(c,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=a.arrow)!=null&&n.alignmentOffset){return[2,{}]}F=h(i);T=y(o);C=h(o)===o;return[4,f.isRTL==null?void 0:f.isRTL(s.floating)];case 1:E=J.sent();M=g||(C||!j?[P(o)]:x(o));q=S!=="none";if(!g&&q){M.push.apply(M,R(o,j,S,E))}D=__spreadArray([o],M,true);return[4,f.detectOverflow(r,k)];case 2:L=J.sent();z=[];I=((e=a.flip)==null?void 0:e.overflows)||[];if(l){z.push(L[F])}if(p){B=b(i,u,E);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"?T!==y(V):false;if(!W||I.every((function(t){return y(t.placement)===T?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(w){case"bestFit":{$=(Z=I.filter((function(t){if(q){var r=y(t.placement);return r===T||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:Z[0];if($){Y=$}break}case"initialPlacement":Y=o;break}}if(i!==Y){return[2,{reset:{placement:Y}}]}}return[2,{}]}}))}))}}};var I=new Set(["left","top"]);function B(t,r){return __awaiter(this,void 0,void 0,(function(){var n,e,i,a,u,o,f,s,c,v,l,p,g,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=h(n);o=_(n);f=y(n)==="y";s=I.has(u)?-1:1;c=a&&f?-1:1;v=d(r,t);l=typeof v==="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis},p=l.mainAxis,g=l.crossAxis,m=l.alignmentAxis;if(o&&typeof m==="number"){g=o==="end"?m*-1:m}return[2,f?{x:g*c,y:p*s}:{x:p*s,y:g*c}]}}))}))}var H=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,B(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 N=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,c,v,_,g,m,w,b,x,A,S,O,j,k,F,O,j,R,P,T;var C,E;return __generator(this,(function(M){switch(M.label){case 0:n=r.x,e=r.y,i=r.placement,a=r.platform;u=d(t,r),o=u.mainAxis,f=o===void 0?true:o,s=u.crossAxis,c=s===void 0?false:s,v=u.limiter,_=v===void 0?{fn:function(t){var r=t.x,n=t.y;return{x:r,y:n}}}:v,g=__rest(u,["mainAxis","crossAxis","limiter"]);m={x:n,y:e};return[4,a.detectOverflow(r,g)];case 1:w=M.sent();b=y(h(i));x=p(b);A=m[x];S=m[b];if(f){O=x==="y"?"top":"left";j=x==="y"?"bottom":"right";k=A+w[O];F=A-w[j];A=l(k,A,F)}if(c){O=b==="y"?"top":"left";j=b==="y"?"bottom":"right";R=S+w[O];P=S-w[j];S=l(R,S,P)}T=_.fn(__assign(__assign({},r),(C={},C[x]=A,C[b]=S,C)));return[2,__assign(__assign({},T),{data:{x:T.x-n,y:T.y-e,enabled:(E={},E[x]=f,E[b]=c,E)}})]}}))}))}}};function G(){return typeof window!=="undefined"}function V(t){if(Z(t)){return(t.nodeName||"").toLowerCase()}return"#document"}function W(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Y(t){var r;return(r=(Z(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Z(t){if(!G()){return false}return t instanceof Node||t instanceof W(t).Node}function $(t){if(!G()){return false}return t instanceof Element||t instanceof W(t).Element}function J(t){if(!G()){return false}return t instanceof HTMLElement||t instanceof W(t).HTMLElement}function K(t){if(!G()||typeof ShadowRoot==="undefined"){return false}return t instanceof ShadowRoot||t instanceof W(t).ShadowRoot}var Q=new Set(["inline","contents"]);function U(t){var r=vt(t),n=r.overflow,e=r.overflowX,i=r.overflowY,a=r.display;return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!Q.has(a)}var X=new Set(["table","td","th"]);function tt(t){return X.has(V(t))}var rt=[":popover-open",":modal"];function nt(t){return rt.some((function(r){try{return t.matches(r)}catch(t){return false}}))}var et=["transform","translate","scale","rotate","perspective"];var it=["transform","translate","scale","rotate","perspective","filter"];var at=["paint","layout","strict","content"];function ut(t){var r=ft();var n=$(t)?vt(t):t;return et.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)||it.some((function(t){return(n.willChange||"").includes(t)}))||at.some((function(t){return(n.contain||"").includes(t)}))}function ot(t){var r=dt(t);while(J(r)&&!ct(r)){if(ut(r)){return r}else if(nt(r)){return null}r=dt(r)}return null}function ft(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}var st=new Set(["html","body","#document"]);function ct(t){return st.has(V(t))}function vt(t){return W(t).getComputedStyle(t)}function lt(t){if($(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function dt(t){if(V(t)==="html"){return t}var r=t.assignedSlot||t.parentNode||K(t)&&t.host||Y(t);return K(r)?r.host:r}function ht(t){var r=dt(t);if(ct(r)){return t.ownerDocument?t.ownerDocument.body:t.body}if(J(r)&&U(r)){return r}return ht(r)}function _t(t,r,n){var e;if(r===void 0){r=[]}if(n===void 0){n=true}var i=ht(t);var a=i===((e=t.ownerDocument)==null?void 0:e.body);var u=W(i);if(a){var o=pt(u);return r.concat(u,u.visualViewport||[],U(i)?i:[],o&&n?_t(o):[])}return r.concat(i,_t(i,[],n))}function pt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function gt(t){var r=vt(t);var n=parseFloat(r.width)||0;var e=parseFloat(r.height)||0;var i=J(t);var a=i?t.offsetWidth:n;var u=i?t.offsetHeight:e;var f=o(n)!==a||o(e)!==u;if(f){n=a;e=u}return{width:n,height:e,$:f}}function mt(t){return!$(t)?t.contextElement:t}function yt(t){var r=mt(t);if(!J(r)){return s(1)}var n=r.getBoundingClientRect();var e=gt(r),i=e.width,a=e.height,u=e.$;var f=(u?o(n.width):n.width)/i;var c=(u?o(n.height):n.height)/a;if(!f||!Number.isFinite(f)){f=1}if(!c||!Number.isFinite(c)){c=1}return{x:f,y:c}}var wt=s(0);function bt(t){var r=W(t);if(!ft()||!r.visualViewport){return wt}return{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function xt(t,r,n){if(r===void 0){r=false}if(!n||r&&n!==W(t)){return false}return r}function At(t,r,n,e){if(r===void 0){r=false}if(n===void 0){n=false}var i=t.getBoundingClientRect();var a=mt(t);var u=s(1);if(r){if(e){if($(e)){u=yt(e)}}else{u=yt(t)}}var o=xt(a,n,e)?bt(a):s(0);var f=(i.left+o.x)/u.x;var c=(i.top+o.y)/u.y;var v=i.width/u.x;var l=i.height/u.y;if(a){var d=W(a);var h=e&&$(e)?W(e):e;var _=d;var p=pt(_);while(p&&e&&h!==_){var g=yt(p);var m=p.getBoundingClientRect();var y=vt(p);var w=m.left+(p.clientLeft+parseFloat(y.paddingLeft))*g.x;var b=m.top+(p.clientTop+parseFloat(y.paddingTop))*g.y;f*=g.x;c*=g.y;v*=g.x;l*=g.y;f+=w;c+=b;_=W(p);p=pt(_)}}return E({width:v,height:l,x:f,y:c})}function St(t,r){var n=lt(t).scrollLeft;if(!r){return At(Y(t)).left+n}return r.left+n}function Ot(t,r){var n=t.getBoundingClientRect();var e=n.left+r.scrollLeft-St(t,n);var i=n.top+r.scrollTop;return{x:e,y:i}}function jt(t){var r=t.elements,n=t.rect,e=t.offsetParent,i=t.strategy;var a=i==="fixed";var u=Y(e);var o=r?nt(r.floating):false;if(e===u||o&&a){return n}var f={scrollLeft:0,scrollTop:0};var c=s(1);var v=s(0);var l=J(e);if(l||!l&&!a){if(V(e)!=="body"||U(u)){f=lt(e)}if(J(e)){var d=At(e);c=yt(e);v.x=d.x+e.clientLeft;v.y=d.y+e.clientTop}}var h=u&&!l&&!a?Ot(u,f):s(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+v.x+h.x,y:n.y*c.y-f.scrollTop*c.y+v.y+h.y}}function kt(t){return Array.from(t.getClientRects())}function Ft(t){var r=Y(t);var n=lt(t);var e=t.ownerDocument.body;var i=u(r.scrollWidth,r.clientWidth,e.scrollWidth,e.clientWidth);var a=u(r.scrollHeight,r.clientHeight,e.scrollHeight,e.clientHeight);var o=-n.scrollLeft+St(t);var f=-n.scrollTop;if(vt(e).direction==="rtl"){o+=u(r.clientWidth,e.clientWidth)-i}return{width:i,height:a,x:o,y:f}}var Rt=25;function Pt(t,r){var n=W(t);var e=Y(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=ft();if(!s||s&&r==="fixed"){o=i.offsetLeft;f=i.offsetTop}}var c=St(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(_<=Rt){a-=_}}else if(c<=Rt){a+=c}return{width:a,height:u,x:o,y:f}}var Tt=new Set(["absolute","fixed"]);function Ct(t,r){var n=At(t,true,r==="fixed");var e=n.top+t.clientTop;var i=n.left+t.clientLeft;var a=J(t)?yt(t):s(1);var u=t.clientWidth*a.x;var o=t.clientHeight*a.y;var f=i*a.x;var c=e*a.y;return{width:u,height:o,x:f,y:c}}function Et(t,r,n){var e;if(r==="viewport"){e=Pt(t,n)}else if(r==="document"){e=Ft(Y(t))}else if($(r)){e=Ct(r,n)}else{var i=bt(t);e={x:r.x-i.x,y:r.y-i.y,width:r.width,height:r.height}}return E(e)}function Mt(t,r){var n=dt(t);if(n===r||!$(n)||ct(n)){return false}return vt(n).position==="fixed"||Mt(n,r)}function qt(t,r){var n=r.get(t);if(n){return n}var e=_t(t,[],false).filter((function(t){return $(t)&&V(t)!=="body"}));var i=null;var a=vt(t).position==="fixed";var u=a?dt(t):t;while($(u)&&!ct(u)){var o=vt(u);var f=ut(u);if(!f&&o.position==="fixed"){i=null}var s=a?!f&&!i:!f&&o.position==="static"&&!!i&&Tt.has(i.position)||U(u)&&!f&&Mt(t,u);if(s){e=e.filter((function(t){return t!==u}))}else{i=o}u=dt(u)}r.set(t,e);return e}function Dt(t){var r=t.element,n=t.boundary,e=t.rootBoundary,i=t.strategy;var o=n==="clippingAncestors"?nt(r)?[]:qt(r,this._c):[].concat(n);var f=__spreadArray(__spreadArray([],o,true),[e],false);var s=f[0];var c=f.reduce((function(t,n){var e=Et(r,n,i);t.top=u(e.top,t.top);t.right=a(e.right,t.right);t.bottom=a(e.bottom,t.bottom);t.left=u(e.left,t.left);return t}),Et(r,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Lt(t){var r=gt(t),n=r.width,e=r.height;return{width:n,height:e}}function zt(t,r,n){var e=J(r);var i=Y(r);var a=n==="fixed";var u=At(t,true,a,r);var o={scrollLeft:0,scrollTop:0};var f=s(0);function c(){f.x=St(i)}if(e||!e&&!a){if(V(r)!=="body"||U(i)){o=lt(r)}if(e){var v=At(r,true,a,r);f.x=v.x+r.clientLeft;f.y=v.y+r.clientTop}else if(i){c()}}if(a&&!e&&i){c()}var l=i&&!e&&!a?Ot(i,o):s(0);var d=u.left+o.scrollLeft-f.x-l.x;var h=u.top+o.scrollTop-f.y-l.y;return{x:d,y:h,width:u.width,height:u.height}}function It(t){return vt(t).position==="static"}function Bt(t,r){if(!J(t)||vt(t).position==="fixed"){return null}if(r){return r(t)}var n=t.offsetParent;if(Y(t)===n){n=n.ownerDocument.body}return n}function Ht(t,r){var n=W(t);if(nt(t)){return n}if(!J(t)){var e=dt(t);while(e&&!ct(e)){if($(e)&&!It(e)){return e}e=dt(e)}return n}var i=Bt(t,r);while(i&&tt(i)&&It(i)){i=Bt(i,r)}if(i&&ct(i)&&It(i)&&!ut(i)){return n}return i||ot(t)||n}var Nt=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||Ht;n=this.getDimensions;return[4,n(t.floating)];case 1:e=o.sent();u={};i=zt;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 Gt(t){return vt(t).direction==="rtl"}var Vt={convertOffsetParentRelativeRectToViewportRelativeRect:jt,getDocumentElement:Y,getClippingRect:Dt,getOffsetParent:Ht,getElementRects:Nt,getClientRects:kt,getDimensions:Lt,getScale:yt,isElement:$,isRTL:Gt};function Wt(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function Yt(t,r){var n=null;var e;var i=Y(t);function o(){var t;clearTimeout(e);(t=n)==null||t.disconnect();n=null}function s(c,v){if(c===void 0){c=false}if(v===void 0){v=1}o();var l=t.getBoundingClientRect();var d=l.left,h=l.top,_=l.width,p=l.height;if(!c){r()}if(!_||!p){return}var g=f(h);var m=f(i.clientWidth-(d+_));var y=f(i.clientHeight-(h+p));var w=f(d);var b=-g+"px "+-m+"px "+-y+"px "+-w+"px";var x={rootMargin:b,threshold:u(0,a(1,v))||1};var A=true;function S(r){var n=r[0].intersectionRatio;if(n!==v){if(!A){return s()}if(!n){e=setTimeout((function(){s(false,1e-7)}),1e3)}else{s(false,n)}}if(n===1&&!Wt(l,t.getBoundingClientRect())){s()}A=false}try{n=new IntersectionObserver(S,__assign(__assign({},x),{root:i.ownerDocument}))}catch(t){n=new IntersectionObserver(S,x)}n.observe(t)}s(true);return o}function Zt(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=mt(t);var _=a||o?__spreadArray(__spreadArray([],h?_t(h):[],true),_t(r),true):[];_.forEach((function(t){a&&t.addEventListener("scroll",n,{passive:true});o&&t.addEventListener("resize",n)}));var p=h&&v?Yt(h,n):null;var g=-1;var m=null;if(s){m=new ResizeObserver((function(t){var e=t[0];if(e&&e.target===h&&m){m.unobserve(r);cancelAnimationFrame(g);g=requestAnimationFrame((function(){var t;(t=m)==null||t.observe(r)}))}n()}));if(h&&!d){m.observe(h)}m.observe(r)}var y;var w=d?At(t):null;if(d){b()}function b(){var r=At(t);if(w&&!Wt(w,r)){n()}w=r;y=requestAnimationFrame(b)}n();return function(){var t;_.forEach((function(t){a&&t.removeEventListener("scroll",n);o&&t.removeEventListener("resize",n)}));p==null||p();(t=m)==null||t.disconnect();m=null;if(d){cancelAnimationFrame(y)}}}var $t=H;var Jt=N;var Kt=z;var Qt=L;var Ut=function(t,r,n){var e=new Map;var i=__assign({platform:Vt},n);var a=__assign(__assign({},i.platform),{_c:e});return D(t,r,__assign(__assign({},i),{platform:a}))};var Xt=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 tr=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=[$t(i)];if(a)s.push(Kt());if(u)s.push(Jt());if(o!==undefined&&o!==null)s.push(Qt({element:o}));return[4,Ut(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 rr=function(t){__extends(r,t);function r(){var r=new Xt;return t.call(this,r)||this}return r}(tr);var nr=t("a",(function(t){var e=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.hideFocus=function(){var t,r;var n=(t=this.floatingContent)===null||t===void 0?void 0:t.contains(document.activeElement);if(n){(r=document.activeElement)===null||r===void 0?void 0:r.blur()}};r.prototype.hideElement=function(){var t;this.stopAutoUpdate();this.hideFocus();(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,e){if(t.key===n.Enter.key||t.key===" ")r();if(t.key===n.Escape.key)e()};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=Zt(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(i.Focus,r);t.addEventListener(i.Blur,n)};r.prototype.detachTriggerListeners=function(t,r,n){t.removeEventListener(i.Focus,r);t.removeEventListener(i.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.closest(".bds-button, .bds-input, .bds-select")||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 rr;this.logger=new Xt;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 e}));var er=t("g",(function(t,r,n){if(t===void 0){t=false}if(r===void 0){r=0}if(t)return r!==undefined?r:0;else return r!==undefined?n+r:n}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function s(s,t){s.setFormValue?.(t)}function t(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}const e=s=>class extends s{formDisabledCallback(s){this.isDisabled=s}};export{e as f,t as r,s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={Enter:{key:"Enter"},Escape:{key:"Escape"},Space:{key:" "},ArrowUp:{key:"ArrowUp"},ArrowDown:{key:"ArrowDown"}};export{e as K}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register([],(function(e){"use strict";return{execute:function(){var r=e("K",{Enter:{key:"Enter"},Escape:{key:"Escape"},Space:{key:" "},ArrowUp:{key:"ArrowUp"},ArrowDown:{key:"ArrowDown"}})}}}));
|
|
@@ -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:r,s:t});function t(n,t){var r;(r=n.setFormValue)===null||r===void 0?void 0:r.call(n,t)}function r(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}var i=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}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]};return e(t,i)};return function(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function s(){this.constructor=t}t.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}}();var __awaiter=this&&this.__awaiter||function(e,t,i,s){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function n(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s["throw"](e))}catch(e){r(e)}}function l(e){e.done?i(e.value):a(e.value).then(n,o)}l((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,a,r,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=o(0),n["throw"]=o(1),n["return"]=o(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(e){return function(t){return l([e,t])}}function l(o){if(s)throw new TypeError("Generator is already executing.");while(n&&(n=0,o[0]&&(i=0)),i)try{if(s=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];a=0}finally{s=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var s=0,a=t.length,r;s<a;s++){if(r||!(s in t)){if(!r)r=Array.prototype.slice.call(t,0,s);r[s]=t[s]}}return e.concat(r||Array.prototype.slice.call(t))};System.register(["./p-DCKg5Cg_.system.js","./p-Dme-NuTD.system.js","./p-RhSdMyWk.system.js","./p-BsZkk4oK.system.js"],(function(e){"use strict";var t,i,s,a,r,n,o,l,d,c,f;return{setters:[function(e){t=e.M;i=e.r;s=e.c;a=e.h;r=e.a;n=e.g},function(e){o=e.f;l=e.s;d=e.r},function(e){c=e.c},function(e){f=e.v}],execute:function(){var b={Clear:"Clear",ShowPassword:"Show password",HidePassword:"Hide password"};var h={Close:"bds-icon-close",SightOn:"bds-icon-sight-on",SightOff:"bds-icon-sight-off"};var u={TEXT:"text",PASSWORD:"password"};var x={OUTLINE:"outline",PLAIN:"plain"};var p={BLUR:"blur",CHANGE:"change",INPUT:"input",SUBMIT:"submit"};var v=function(){return'@charset "UTF-8";.bds-text-field__container,.bds-text-field__sublabel,.bds-text-field__actions,.bds-text-field__action,.bds-text-field__footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bds-text-field [slot=prefix],.bds-text-field__sublabel{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-xs)}.bds-text-field{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--boreal-spacing-2xs);width:var(--bds-text-field-width, 100%);font-family:var(--boreal-typography-font-family-primary);color:var(--boreal-text-default)}.bds-text-field__container{padding:var(--boreal-spacing-1xs);padding-left:0;height:var(--boreal-layout-l);border:1px solid var(--boreal-stroke-default-light);border-radius:var(--boreal-radius-xs);background-color:var(--boreal-ui-inverse);-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;overflow:hidden}.bds-text-field__sublabel{gap:var(--boreal-spacing-3xs);padding-left:var(--boreal-spacing-xs);white-space:nowrap}.bds-text-field__sublabel em[class^=bds-icon-],.bds-text-field__sublabel em[class*=" bds-icon-"]{width:var(--boreal-icons-m);height:var(--boreal-icons-m);font-size:var(--boreal-typography-font-size-md);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field [slot=prefix]{padding-left:var(--boreal-spacing-xs);overflow:hidden;white-space:nowrap;-ms-flex-negative:0;flex-shrink:0}.bds-text-field__control{min-width:0;width:100%;border:none;outline:none;background:transparent;padding:0;padding-left:var(--boreal-spacing-xs);font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm)}.bds-text-field__control::-webkit-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::-moz-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control:-ms-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::-ms-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control:disabled{cursor:not-allowed}.bds-text-field__actions{padding-left:var(--boreal-spacing-xs);gap:var(--boreal-spacing-3xs)}.bds-text-field__action{-ms-flex-pack:center;justify-content:center;background:none;border:none;padding:var(--boreal-spacing-3xs);cursor:pointer;color:var(--boreal-icon-default-light);line-height:1;-webkit-transition:color 0.3s ease, opacity 0.3s ease;transition:color 0.3s ease, opacity 0.3s ease}.bds-text-field__action--clear em[class^=bds-icon-],.bds-text-field__action--clear em[class*=" bds-icon-"]{width:var(--boreal-icons-s);height:var(--boreal-icons-s);font-size:var(--boreal-typography-font-size-xs);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field__action--password em[class^=bds-icon-],.bds-text-field__action--password em[class*=" bds-icon-"]{width:var(--boreal-icons-l);height:var(--boreal-icons-l);font-size:var(--boreal-typography-font-size-lg);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field__action:hover{color:var(--boreal-icon-default-dark)}.bds-text-field__action:focus-visible{-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-text-field__footer{-ms-flex-pack:justify;justify-content:space-between}.bds-text-field__char-count{-ms-flex-negative:0;flex-shrink:0;font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-xs);color:var(--boreal-text-default-light)}.bds-text-field--focused .bds-text-field__container{border-color:var(--boreal-stroke-focus);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-text-field--error .bds-text-field__container{border-color:var(--boreal-stroke-danger-base)}.bds-text-field--disabled{cursor:not-allowed}.bds-text-field--disabled .bds-text-field__container{background-color:var(--boreal-ui-default-lighter);border-color:var(--boreal-stroke-default-light)}.bds-text-field--disabled .bds-text-field__sublabel{color:var(--boreal-text-disabled)}.bds-text-field--disabled .bds-text-field__sublabel em[class^=bds-icon-],.bds-text-field--disabled .bds-text-field__sublabel em[class*=" bds-icon-"]{color:var(--boreal-icon-disabled)}.bds-text-field--disabled .bds-text-field__control{color:var(--boreal-icon-disabled)}.bds-text-field--readonly .bds-text-field__container{background-color:transparent;border:none}.bds-text-field--readonly .bds-text-field__control::-webkit-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::-moz-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control:-ms-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::-ms-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--plain .bds-text-field__container{border-color:transparent}.bds-text-field--plain.bds-text-field--focused .bds-text-field__container{border-color:var(--boreal-stroke-focus)}.bds-text-field--clear-on-hover .bds-text-field__action--clear{opacity:0;pointer-events:none}.bds-text-field--clear-on-hover:hover .bds-text-field__action--clear{opacity:1;pointer-events:auto}'};var g=e("bds_text_field",function(e){__extends(t,e);function t(t){var a=e.call(this)||this;i(a,t);a.valueChange=s(a,"valueChange");a.bdsInput=s(a,"bdsInput");a.bdsChange=s(a,"bdsChange");a.bdsFocus=s(a,"bdsFocus");a.bdsBlur=s(a,"bdsBlur");a.bdsClear=s(a,"bdsClear");a.bdsValidationChange=s(a,"bdsValidationChange");if(t.$hostElement$["s-ei"]){a.internals=t.$hostElement$["s-ei"]}else{a.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=a.internals}a.name="";a.disabled=false;a.required=false;a.isDisabled=false;a.value="";a.error=false;a.errorMessage="";a.customValidators=[];a.validationTiming=p.BLUR;a.type=u.TEXT;a.variant=x.OUTLINE;a.placeholder="";a.readOnly=false;a.autocomplete="off";a.pattern="";a.minLength=0;a.maxLength=0;a.label="";a.sublabel="";a.icon="";a.helperText="";a.info="";a.clearable=false;a.clearOnHover=false;a.charCount=0;a.counter=false;a.customWidth="";a.focused=false;a.showPassword=false;a.touched=false;a.dirty=false;a.currentCharCount=0;a.validationError=false;a.validationMessage="";a._valueAtFocus="";a._id=c("bds-text-field");a.invalidHandler=function(e){e.preventDefault();a.validationError=true;a.validationMessage=a.internals.validationMessage;a.bdsValidationChange.emit({valid:false,validity:a.internals.validity,value:a.value,touched:a.touched,dirty:a.dirty})};return a}t.prototype.checkValidity=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.internals.checkValidity()]}))}))};t.prototype.reportValidity=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.internals.reportValidity()]}))}))};t.prototype.onDisabledChange=function(e){this.isDisabled=e};t.prototype.checkPropValues=function(){f(Object.values(u),u.TEXT,this.el,"type");f(Object.values(x),x.OUTLINE,this.el,"variant");f(Object.values(p),p.BLUR,this.el,"validationTiming")};t.prototype.componentWillLoad=function(){this.checkPropValues();this.isDisabled=this.disabled;this.currentCharCount=this.value.length};t.prototype.componentDidLoad=function(){this.el.addEventListener("invalid",this.invalidHandler)};t.prototype.disconnectedCallback=function(){this.el.removeEventListener("invalid",this.invalidHandler)};t.prototype.onCustomValidatorsChange=function(){this.updateValidity()};t.prototype.onValueChange=function(e){l(this.internals,e);this.currentCharCount=e.length;this.updateValidity();this.valueChange.emit(e)};t.prototype.formAssociatedCallback=function(){l(this.internals,this.value);this.updateValidity()};t.prototype.formResetCallback=function(){this.value="";this.touched=false;this.dirty=false;this.currentCharCount=0;this.validationError=false;this.validationMessage="";l(this.internals,null);this.updateValidity()};t.prototype.formStateRestoreCallback=function(e,t){this.value=typeof e==="string"?e:"";l(this.internals,this.value);this.updateValidity()};t.prototype.updateValidity=function(e){if(e===void 0){e=false}var t=d(this.internals,__spreadArray(__spreadArray([],this.validators,true),this.customValidators,true),this.el);if(e){this.validationError=!t;this.validationMessage=t?"":this.internals.validationMessage;this.bdsValidationChange.emit({valid:t,validity:this.internals.validity,value:this.value,touched:this.touched,dirty:this.dirty})}};t.prototype.handleInput=function(e){this.value=e.target.value;this.dirty=true;this.bdsInput.emit({value:this.value,event:e});if(this.validationTiming===p.INPUT){this.updateValidity(true)}};t.prototype.handleChange=function(e){this.bdsChange.emit({value:this.value,event:e});if(this.validationTiming===p.CHANGE){this.updateValidity(true)}};t.prototype.handleFocus=function(e){this.focused=true;this._valueAtFocus=this.value;this.bdsFocus.emit({event:e})};t.prototype.handleBlur=function(e){this.focused=false;this.touched=true;this.bdsBlur.emit({event:e});if(this.validationTiming===p.BLUR){this.updateValidity(true)}else if(this.validationTiming===p.CHANGE&&this.value!==this._valueAtFocus){this.updateValidity(true)}};t.prototype.handleShowPassword=function(){this.showPassword=!this.showPassword};t.prototype.handleClear=function(){var e;this.value="";this.dirty=true;this.validationError=false;this.validationMessage="";this.bdsClear.emit();(e=this.el.querySelector("input"))===null||e===void 0?void 0:e.focus()};t.prototype.handleMouseDown=function(e){if(this.readOnly){e.preventDefault()}};Object.defineProperty(t.prototype,"validators",{get:function(){var e=this;return[{key:"valueMissing",isValid:function(){return!e.required||e.value!==""},message:"This field is required. Please fill it out."},{key:"tooShort",isValid:function(){return e.minLength===0||e.value.length>=e.minLength},message:"Please enter at least ".concat(this.minLength," characters.")},{key:"patternMismatch",isValid:function(){if(e.pattern===""||e.value==="")return true;try{return new RegExp(e.pattern).test(e.value)}catch(e){return true}},message:"Please match the requested format."}]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"effectiveMaxLength",{get:function(){if(this.maxLength!==0)return this.maxLength;if(this.counter&&this.charCount>0)return this.charCount;return undefined},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"classMap",{get:function(){return{"bds-text-field":true,"bds-text-field--error":this.error||this.validationError,"bds-text-field--disabled":this.isDisabled,"bds-text-field--focused":this.focused,"bds-text-field--readonly":this.readOnly,"bds-text-field--plain":this.variant===x.PLAIN,"bds-text-field--clear-on-hover":this.clearOnHover}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hostStyle",{get:function(){return this.customWidth!==""?{"--bds-text-field-width":this.customWidth}:undefined},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"iconClear",{get:function(){return this.clearable||this.clearOnHover?h.Close:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"showPasswordIcon",{get:function(){return this.showPassword?h.SightOn:h.SightOff},enumerable:false,configurable:true});t.prototype.render=function(){var e=this;var t="".concat(this._id,"-label");var i="".concat(this._id,"-helper");var s=(this.clearable||this.clearOnHover)&&this.value!==""&&!this.isDisabled&&!this.readOnly;var n=this.error||this.validationError;var o=this.error&&this.errorMessage!==""?this.errorMessage:this.validationError&&this.validationMessage!==""?this.validationMessage:this.helperText;var l=o!==""||this.counter&&this.charCount>0;var d=this.isDisabled?"disabled":n?"error":"default";return a(r,{key:"96b7e057fa7f25e8f7d13b7de0fd17f12de602bb",class:this.classMap,style:this.hostStyle,tabIndex:-1,onFocus:function(){var t;return!e.readOnly&&((t=e.el.querySelector("input"))===null||t===void 0?void 0:t.focus())}},this.label!==""&&a("bds-typography",{key:"e827b43ea347037ff2d404229aaefdd258d2ad22",id:t,variant:"label",htmlFor:this._id,required:this.required,tooltipText:this.info!==""?this.info:undefined,state:d},this.label),a("div",{key:"f579762db25f65031917874dbb4c2347b5d9f027",class:"bds-text-field__container"},(this.icon!==""||this.sublabel!=="")&&a("span",{key:"191d2ccec9baf8b739163eea112dce9a1073f4bd",class:"bds-text-field__sublabel"},this.icon!==""&&a("em",{key:"1cc1b1b7ece610b2a18ba872c4b7035d2239731b",class:this.icon}),this.sublabel),a("slot",{key:"ba7b08573b6ae35c10649125991a2bbed15f31f3",name:"prefix"}),a("input",{key:"6391338c4f636382cf19f888dc810baaf6820c80",id:this._id,class:"bds-text-field__control","aria-labelledby":this.label!==""?t:undefined,"aria-describedby":l&&o!==""?i:undefined,"aria-invalid":this.error||this.validationError?"true":undefined,"aria-required":this.required?"true":undefined,type:this.type===u.PASSWORD&&this.showPassword?u.TEXT:this.type,value:this.value,disabled:this.isDisabled,readOnly:this.readOnly,tabIndex:this.readOnly?-1:undefined,placeholder:this.placeholder,autocomplete:this.autocomplete,pattern:this.pattern!==""?this.pattern:undefined,minLength:this.minLength!==0?this.minLength:undefined,maxLength:this.effectiveMaxLength,onMouseDown:function(t){return e.handleMouseDown(t)},onInput:function(t){return e.handleInput(t)},onChange:function(t){return e.handleChange(t)},onFocus:function(t){return e.handleFocus(t)},onBlur:function(t){return e.handleBlur(t)}}),(s||this.type===u.PASSWORD)&&a("div",{key:"e5dc4cab3d536ef09eaeae96ca68a7d4b4e15d92",class:"bds-text-field__actions"},s&&a("button",{key:"b18d06de000c3ea465be221dcbb77ab49bb3949f",class:"bds-text-field__action bds-text-field__action--clear",type:"button","aria-label":b.Clear,onClick:function(){return e.handleClear()}},a("em",{key:"0aa5d75c5214b7832a2a2e80a1cd2c42af5bea9a",class:this.iconClear})),this.type===u.PASSWORD&&a("button",{key:"fd97135cca8d32178461bf7109c9b6a7eec543e9",class:"bds-text-field__action bds-text-field__action--password",type:"button","aria-label":this.showPassword?b.HidePassword:b.ShowPassword,onClick:function(){return e.handleShowPassword()}},a("em",{key:"0de72e7756ad62bbe4fb5f925526071720f358db",class:this.showPasswordIcon})))),l&&a("div",{key:"9d1c0e8920511650ab6711f2f813c01491d52414",class:"bds-text-field__footer"},o!==""&&a("bds-typography",{key:"f27235a7a38f34b9a9f7bae762c3c6be12acd8b0",id:i,variant:"helper",state:d},o),this.counter&&this.charCount>0&&a("span",{key:"3aa43ea8bd6a35963f0983ec8814e0ce19ee71ce",class:"bds-text-field__char-count"},this.currentCharCount,"/",this.charCount)))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:[{onDisabledChange:0}],type:[{checkPropValues:0}],variant:[{checkPropValues:0}],validationTiming:[{checkPropValues:0}],customValidators:[{onCustomValidatorsChange:0}],value:[{onValueChange:0}]}},enumerable:false,configurable:true});return t}(t(o)));g.style=v()}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,h as r,g as t}from"./p-BqJlOB6b.js";import{v as e}from"./p-kGnB15Lz.js";const a={HORIZONTAL:"horizontal",VERTICAL:"vertical"},s=class{constructor(r){i(this,r),this.orientation=a.HORIZONTAL}checkPropValues(){e(Object.values(a),a.HORIZONTAL,this.el,"orientation")}get orientationClass(){return{"bds-divider":!0,[`bds-divider--${this.orientation}`]:!0}}componentWillLoad(){this.checkPropValues()}render(){return r("div",{key:"d34f930e98129a75ca706f4695e40e577d5a12f6",part:"divider",class:this.orientationClass,role:"separator","aria-orientation":this.orientation})}get el(){return t(this)}static get watchers(){return{orientation:[{checkPropValues:0}]}}};s.style='@charset "UTF-8";bds-divider[orientation=vertical]{display:inline-block;height:100%}bds-divider[orientation=horizontal]{display:block;width:100%}.bds-divider{background-color:var(--boreal-ui-default-lighter)}.bds-divider--horizontal{width:100%;height:var(--boreal-spacing-4xs)}.bds-divider--vertical{width:var(--boreal-spacing-4xs);height:100%}';export{s as bds_divider}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-DCKg5Cg_.system.js","./p-CXz1RLGi.system.js","./p-CdKFZYxk.system.js","./p-BsZkk4oK.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.handleClick(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:"e5e7dd996abf7f32218d1871069f4cdd5070cb6b",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:"815ced9f3e464c73f371227c098ea65a7097f376",class:"bds-button__content"},b("span",{key:"350acb5924bb036afeb2c252c71261c5b2015b1e",class:"bds-button__content-icon bds-button__content-icon--start"},b("slot",{key:"57feb7a77e7edd0d43c3432a5822cdaec60729f6",name:"icon"})),b("slot",{key:"07536c420613bc6d4d53b5947524e69999937d19"}),b("span",{key:"ae96692ab7ffe82df0f2a2cb685704912724df35",class:"bds-button__content-badge"},b("slot",{key:"6a802ae2b19f85c3678c16f7950b597efc981da6",name:"badge"})),this.disclosure&&b("span",{key:"c38f71595010045c86257f6d5c3ce48a504966ad",class:"bds-button__content-icon"},b("i",{key:"a51aff2455184cd38b2d7ebd52cc9c590b81601c",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,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Default keyboard keys.
|
|
5
|
-
* Add more keys to the `KEYBOARD` object to add more keyboard shortcuts.
|
|
6
|
-
* This prevents key name typing errors and provides a centralized definition of the keys available for implementation.
|
|
7
|
-
* Can use this page to find the keycodes: https://keycode.info/
|
|
8
|
-
*/
|
|
9
|
-
const KEYBOARD = {
|
|
10
|
-
Enter: {
|
|
11
|
-
key: 'Enter'},
|
|
12
|
-
Escape: {
|
|
13
|
-
key: 'Escape'},
|
|
14
|
-
Space: {
|
|
15
|
-
key: ' '},
|
|
16
|
-
ArrowUp: {
|
|
17
|
-
key: 'ArrowUp'},
|
|
18
|
-
ArrowDown: {
|
|
19
|
-
key: 'ArrowDown'},
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
exports.KEYBOARD = KEYBOARD;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Default keyboard keys.
|
|
3
|
-
* Add more keys to the `KEYBOARD` object to add more keyboard shortcuts.
|
|
4
|
-
* This prevents key name typing errors and provides a centralized definition of the keys available for implementation.
|
|
5
|
-
* Can use this page to find the keycodes: https://keycode.info/
|
|
6
|
-
*/
|
|
7
|
-
const KEYBOARD = {
|
|
8
|
-
Enter: {
|
|
9
|
-
key: 'Enter'},
|
|
10
|
-
Escape: {
|
|
11
|
-
key: 'Escape'},
|
|
12
|
-
Space: {
|
|
13
|
-
key: ' '},
|
|
14
|
-
ArrowUp: {
|
|
15
|
-
key: 'ArrowUp'},
|
|
16
|
-
ArrowDown: {
|
|
17
|
-
key: 'ArrowDown'},
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export { KEYBOARD as K };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var KEYBOARD={Enter:{key:"Enter"},Escape:{key:"Escape"},Space:{key:" "},ArrowUp:{key:"ArrowUp"},ArrowDown:{key:"ArrowDown"}};export{KEYBOARD as K};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var BUTTON_VARIANTS={DEFAULT:"default",OUTLINE:"outline",PLAIN:"plain"};var BUTTON_SIZES={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var BUTTON_TYPES={BUTTON:"button",SUBMIT:"submit",RESET:"reset"};export{BUTTON_SIZES as B,BUTTON_TYPES as a,BUTTON_VARIANTS as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var n=function(r,t){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))n[t]=r[t]};return n(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(r,t);function i(){this.constructor=r}r.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function setFormValue(n,r){var t;(t=n.setFormValue)===null||t===void 0?void 0:t.call(n,r)}function runValidators(n,r,t){var i;var o={};var u="";for(var e=0,a=r;e<a.length;e++){var s=a[e],f=s.key,c=s.isValid,l=s.message;if(!c(t)){o[f]=true;if(u==="")u=l}}var v=Object.keys(o).length===0;(i=n.setValidity)===null||i===void 0?void 0:i.call(n,v?{}:o,u);return v}var formAssociatedMixin=function(n){var r=function(n){__extends(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}r.prototype.formDisabledCallback=function(n){this.isDisabled=n};return r}(n);return r};export{formAssociatedMixin as f,runValidators as r,setFormValue as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++){if(t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i]))n[r[i]]=e[r[i]]}return n};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};import{f as floatingMixin}from"./floating.mixin-DCXSEEVH.js";import{K as KEYBOARD}from"./Keys-CzYQb3pP.js";var EVENTS={Focus:"focus",Blur:"blur"};var min=Math.min;var max=Math.max;var round=Math.round;var floor=Math.floor;var createCoords=function(e){return{x:e,y:e}};var oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};var oppositeAlignmentMap={start:"end",end:"start"};function clamp(e,t,n){return max(e,min(t,n))}function evaluate(e,t){return typeof e==="function"?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return e==="x"?"y":"x"}function getAxisLength(e){return e==="y"?"height":"width"}var yAxisSides=new Set(["top","bottom"]);function getSideAxis(e){return yAxisSides.has(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){if(n===void 0){n=false}var r=getAlignment(e);var i=getAlignmentAxis(e);var o=getAxisLength(i);var a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";if(t.reference[o]>t.floating[o]){a=getOppositePlacement(a)}return[a,getOppositePlacement(a)]}function getExpandedPlacements(e){var t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,(function(e){return oppositeAlignmentMap[e]}))}var lrPlacement=["left","right"];var rlPlacement=["right","left"];var tbPlacement=["top","bottom"];var btPlacement=["bottom","top"];function getSideList(e,t,n){switch(e){case"top":case"bottom":if(n)return t?rlPlacement:lrPlacement;return t?lrPlacement:rlPlacement;case"left":case"right":return t?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(e,t,n,r){var i=getAlignment(e);var o=getSideList(getSide(e),n==="start",r);if(i){o=o.map((function(e){return e+"-"+i}));if(t){o=o.concat(o.map(getOppositeAlignmentPlacement))}}return o}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return oppositeSideMap[e]}))}function expandPaddingObject(e){return __assign({top:0,right:0,bottom:0,left:0},e)}function getPaddingObject(e){return typeof e!=="number"?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){var t=e.x,n=e.y,r=e.width,i=e.height;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function computeCoordsFromPlacement(e,t,n){var r=e.reference,i=e.floating;var o=getSideAxis(t);var a=getAlignmentAxis(t);var s=getAxisLength(a);var u=getSide(t);var l=o==="y";var f=r.x+r.width/2-i.width/2;var c=r.y+r.height/2-i.height/2;var v=r[s]/2-i[s]/2;var d;switch(u){case"top":d={x:f,y:r.y-i.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:c};break;case"left":d={x:r.x-i.width,y:c};break;default:d={x:r.x,y:r.y}}switch(getAlignment(t)){case"start":d[a]-=v*(n&&l?-1:1);break;case"end":d[a]+=v*(n&&l?-1:1);break}return d}function detectOverflow(e,t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,f,c,v,d,g,m,h,p,w,_,y,b,x,A,S,O,E,C,P,R,T,N,L,M,F,D;var B;return __generator(this,(function(W){switch(W.label){case 0:if(t===void 0){t={}}r=e.x,i=e.y,o=e.platform,a=e.rects,s=e.elements,u=e.strategy;l=evaluate(t,e),f=l.boundary,c=f===void 0?"clippingAncestors":f,v=l.rootBoundary,d=v===void 0?"viewport":v,g=l.elementContext,m=g===void 0?"floating":g,h=l.altBoundary,p=h===void 0?false:h,w=l.padding,_=w===void 0?0:w;y=getPaddingObject(_);b=m==="floating"?"reference":"floating";x=s[p?b:m];S=rectToClientRect;E=(O=o).getClippingRect;B={};return[4,o.isElement==null?void 0:o.isElement(x)];case 1:if(!((n=W.sent())!=null?n:true))return[3,2];C=x;return[3,5];case 2:P=x.contextElement;if(P)return[3,4];return[4,o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)];case 3:P=W.sent();W.label=4;case 4:C=P;W.label=5;case 5:return[4,E.apply(O,[(B.element=C,B.boundary=c,B.rootBoundary=d,B.strategy=u,B)])];case 6:A=S.apply(void 0,[W.sent()]);R=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference;return[4,o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)];case 7:T=W.sent();return[4,o.isElement==null?void 0:o.isElement(T)];case 8:if(!W.sent())return[3,10];return[4,o.getScale==null?void 0:o.getScale(T)];case 9:L=W.sent()||{x:1,y:1};return[3,11];case 10:L={x:1,y:1};W.label=11;case 11:N=L;F=rectToClientRect;if(!o.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,13];return[4,o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:R,offsetParent:T,strategy:u})];case 12:D=W.sent();return[3,14];case 13:D=R;W.label=14;case 14:M=F.apply(void 0,[D]);return[2,{top:(A.top-M.top+y.top)/N.y,bottom:(M.bottom-A.bottom+y.bottom)/N.y,left:(A.left-M.left+y.left)/N.x,right:(M.right-A.right+y.right)/N.x}]}}))}))}var computePosition$1=function(e,t,n){return __awaiter(void 0,void 0,void 0,(function(){var r,i,o,a,s,u,l,f,c,v,d,g,m,h,p,w,_,y,b,x,A,S,O,E,C,P,R;var T,N;return __generator(this,(function(L){switch(L.label){case 0:r=n.placement,i=r===void 0?"bottom":r,o=n.strategy,a=o===void 0?"absolute":o,s=n.middleware,u=s===void 0?[]:s,l=n.platform;f=u.filter(Boolean);return[4,l.isRTL==null?void 0:l.isRTL(t)];case 1:c=L.sent();return[4,l.getElementRects({reference:e,floating:t,strategy:a})];case 2:v=L.sent();d=computeCoordsFromPlacement(v,i,c),g=d.x,m=d.y;h=i;p={};w=0;_=0;L.label=3;case 3:if(!(_<f.length))return[3,11];b=f[_],x=b.name,A=b.fn;return[4,A({x:g,y:m,initialPlacement:i,placement:h,strategy:a,middlewareData:p,rects:v,platform:__assign(__assign({},l),{detectOverflow:(y=l.detectOverflow)!=null?y:detectOverflow}),elements:{reference:e,floating:t}})];case 4:S=L.sent(),O=S.x,E=S.y,C=S.data,P=S.reset;g=O!=null?O:g;m=E!=null?E:m;p=__assign(__assign({},p),(T={},T[x]=__assign(__assign({},p[x]),C),T));if(!(P&&w<=50))return[3,10];w++;if(!(typeof P==="object"))return[3,9];if(P.placement){h=P.placement}if(!P.rects)return[3,8];if(!(P.rects===true))return[3,6];return[4,l.getElementRects({reference:e,floating:t,strategy:a})];case 5:R=L.sent();return[3,7];case 6:R=P.rects;L.label=7;case 7:v=R;L.label=8;case 8:N=computeCoordsFromPlacement(v,h,c),g=N.x,m=N.y;L.label=9;case 9:_=-1;L.label=10;case 10:_++;return[3,3];case 11:return[2,{x:g,y:m,placement:h,strategy:a,middlewareData:p}]}}))}))};var arrow$1=function(e){return{name:"arrow",options:e,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,f,c,v,d,g,m,h,p,w,_,y,b,x,A,S,O,E,C,P,R,T,N,L,M,F,D,B;var W,k;return __generator(this,(function(V){switch(V.label){case 0:n=t.x,r=t.y,i=t.placement,o=t.rects,a=t.platform,s=t.elements,u=t.middlewareData;l=evaluate(e,t)||{},f=l.element,c=l.padding,v=c===void 0?0:c;if(f==null){return[2,{}]}d=getPaddingObject(v);g={x:n,y:r};m=getAlignmentAxis(i);h=getAxisLength(m);return[4,a.getDimensions(f)];case 1:p=V.sent();w=m==="y";_=w?"top":"left";y=w?"bottom":"right";b=w?"clientHeight":"clientWidth";x=o.reference[h]+o.reference[m]-g[m]-o.floating[h];A=g[m]-o.reference[m];return[4,a.getOffsetParent==null?void 0:a.getOffsetParent(f)];case 2:S=V.sent();O=S?S[b]:0;E=!O;if(E)return[3,4];return[4,a.isElement==null?void 0:a.isElement(S)];case 3:E=!V.sent();V.label=4;case 4:if(E){O=s.floating[b]||o.floating[h]}C=x/2-A/2;P=O/2-p[h]/2-1;R=min(d[_],P);T=min(d[y],P);N=R;L=O-p[h]-T;M=O/2-p[h]/2+C;F=clamp(N,M,L);D=!u.arrow&&getAlignment(i)!=null&&M!==F&&o.reference[h]/2-(M<N?R:T)-p[h]/2<0;B=D?M<N?M-N:M-L:0;return[2,(W={},W[m]=g[m]+B,W.data=__assign((k={},k[m]=F,k.centerOffset=M-F-B,k),D&&{alignmentOffset:B}),W.reset=D,W)]}}))}))}}};var flip$1=function(e){if(e===void 0){e={}}return{name:"flip",options:e,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,f,c,v,d,g,m,h,p,w,_,y,b,x,A,S,O,E,C,P,R,T,N,L,M,F,D,B,W,k,V,j,$;return __generator(this,(function(H){switch(H.label){case 0:i=t.placement,o=t.middlewareData,a=t.rects,s=t.initialPlacement,u=t.platform,l=t.elements;f=evaluate(e,t),c=f.mainAxis,v=c===void 0?true:c,d=f.crossAxis,g=d===void 0?true:d,m=f.fallbackPlacements,h=f.fallbackStrategy,p=h===void 0?"bestFit":h,w=f.fallbackAxisSideDirection,_=w===void 0?"none":w,y=f.flipAlignment,b=y===void 0?true:y,x=__rest(f,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=o.arrow)!=null&&n.alignmentOffset){return[2,{}]}A=getSide(i);S=getSideAxis(s);O=getSide(s)===s;return[4,u.isRTL==null?void 0:u.isRTL(l.floating)];case 1:E=H.sent();C=m||(O||!b?[getOppositePlacement(s)]:getExpandedPlacements(s));P=_!=="none";if(!m&&P){C.push.apply(C,getOppositeAxisPlacements(s,b,_,E))}R=__spreadArray([s],C,true);return[4,u.detectOverflow(t,x)];case 2:T=H.sent();N=[];L=((r=o.flip)==null?void 0:r.overflows)||[];if(v){N.push(T[A])}if(g){M=getAlignmentSides(i,a,E);N.push(T[M[0]],T[M[1]])}L=__spreadArray(__spreadArray([],L,true),[{placement:i,overflows:N}],false);if(!N.every((function(e){return e<=0}))){B=(((F=o.flip)==null?void 0:F.index)||0)+1;W=R[B];if(W){k=g==="alignment"?S!==getSideAxis(W):false;if(!k||L.every((function(e){return getSideAxis(e.placement)===S?e.overflows[0]>0:true}))){return[2,{data:{index:B,overflows:L},reset:{placement:W}}]}}V=(D=L.filter((function(e){return e.overflows[0]<=0})).sort((function(e,t){return e.overflows[1]-t.overflows[1]}))[0])==null?void 0:D.placement;if(!V){switch(p){case"bestFit":{$=(j=L.filter((function(e){if(P){var t=getSideAxis(e.placement);return t===S||t==="y"}return true})).map((function(e){return[e.placement,e.overflows.filter((function(e){return e>0})).reduce((function(e,t){return e+t}),0)]})).sort((function(e,t){return e[1]-t[1]}))[0])==null?void 0:j[0];if($){V=$}break}case"initialPlacement":V=s;break}}if(i!==V){return[2,{reset:{placement:V}}]}}return[2,{}]}}))}))}}};var originSides=new Set(["left","top"]);function convertValueToCoords(e,t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,f,c,v,d,g,m;return __generator(this,(function(h){switch(h.label){case 0:n=e.placement,r=e.platform,i=e.elements;return[4,r.isRTL==null?void 0:r.isRTL(i.floating)];case 1:o=h.sent();a=getSide(n);s=getAlignment(n);u=getSideAxis(n)==="y";l=originSides.has(a)?-1:1;f=o&&u?-1:1;c=evaluate(t,e);v=typeof c==="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis},d=v.mainAxis,g=v.crossAxis,m=v.alignmentAxis;if(s&&typeof m==="number"){g=s==="end"?m*-1:m}return[2,u?{x:g*f,y:d*l}:{x:d*l,y:g*f}]}}))}))}var offset$1=function(e){if(e===void 0){e=0}return{name:"offset",options:e,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u;return __generator(this,(function(l){switch(l.label){case 0:i=t.x,o=t.y,a=t.placement,s=t.middlewareData;return[4,convertValueToCoords(t,e)];case 1:u=l.sent();if(a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset){return[2,{}]}return[2,{x:i+u.x,y:o+u.y,data:__assign(__assign({},u),{placement:a})}]}}))}))}}};var shift$1=function(e){if(e===void 0){e={}}return{name:"shift",options:e,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,f,c,v,d,g,m,h,p,w,_,y,b,x,A,y,b,S,O,E;var C,P;return __generator(this,(function(R){switch(R.label){case 0:n=t.x,r=t.y,i=t.placement,o=t.platform;a=evaluate(e,t),s=a.mainAxis,u=s===void 0?true:s,l=a.crossAxis,f=l===void 0?false:l,c=a.limiter,v=c===void 0?{fn:function(e){var t=e.x,n=e.y;return{x:t,y:n}}}:c,d=__rest(a,["mainAxis","crossAxis","limiter"]);g={x:n,y:r};return[4,o.detectOverflow(t,d)];case 1:m=R.sent();h=getSideAxis(getSide(i));p=getOppositeAxis(h);w=g[p];_=g[h];if(u){y=p==="y"?"top":"left";b=p==="y"?"bottom":"right";x=w+m[y];A=w-m[b];w=clamp(x,w,A)}if(f){y=h==="y"?"top":"left";b=h==="y"?"bottom":"right";S=_+m[y];O=_-m[b];_=clamp(S,_,O)}E=v.fn(__assign(__assign({},t),(C={},C[p]=w,C[h]=_,C)));return[2,__assign(__assign({},E),{data:{x:E.x-n,y:E.y-r,enabled:(P={},P[p]=u,P[h]=f,P)}})]}}))}))}}};function hasWindow(){return typeof window!=="undefined"}function getNodeName(e){if(isNode(e)){return(e.nodeName||"").toLowerCase()}return"#document"}function getWindow(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return(t=(isNode(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function isNode(e){if(!hasWindow()){return false}return e instanceof Node||e instanceof getWindow(e).Node}function isElement(e){if(!hasWindow()){return false}return e instanceof Element||e instanceof getWindow(e).Element}function isHTMLElement(e){if(!hasWindow()){return false}return e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement}function isShadowRoot(e){if(!hasWindow()||typeof ShadowRoot==="undefined"){return false}return e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot}var invalidOverflowDisplayValues=new Set(["inline","contents"]);function isOverflowElement(e){var t=getComputedStyle$1(e),n=t.overflow,r=t.overflowX,i=t.overflowY,o=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!invalidOverflowDisplayValues.has(o)}var tableElements=new Set(["table","td","th"]);function isTableElement(e){return tableElements.has(getNodeName(e))}var topLayerSelectors=[":popover-open",":modal"];function isTopLayer(e){return topLayerSelectors.some((function(t){try{return e.matches(t)}catch(e){return false}}))}var transformProperties=["transform","translate","scale","rotate","perspective"];var willChangeValues=["transform","translate","scale","rotate","perspective","filter"];var containValues=["paint","layout","strict","content"];function isContainingBlock(e){var t=isWebKit();var n=isElement(e)?getComputedStyle$1(e):e;return transformProperties.some((function(e){return n[e]?n[e]!=="none":false}))||(n.containerType?n.containerType!=="normal":false)||!t&&(n.backdropFilter?n.backdropFilter!=="none":false)||!t&&(n.filter?n.filter!=="none":false)||willChangeValues.some((function(e){return(n.willChange||"").includes(e)}))||containValues.some((function(e){return(n.contain||"").includes(e)}))}function getContainingBlock(e){var t=getParentNode(e);while(isHTMLElement(t)&&!isLastTraversableNode(t)){if(isContainingBlock(t)){return t}else if(isTopLayer(t)){return null}t=getParentNode(t)}return null}function isWebKit(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}var lastTraversableNodeNames=new Set(["html","body","#document"]);function isLastTraversableNode(e){return lastTraversableNodeNames.has(getNodeName(e))}function getComputedStyle$1(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){if(isElement(e)){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}return{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function getParentNode(e){if(getNodeName(e)==="html"){return e}var t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){var t=getParentNode(e);if(isLastTraversableNode(t)){return e.ownerDocument?e.ownerDocument.body:e.body}if(isHTMLElement(t)&&isOverflowElement(t)){return t}return getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var r;if(t===void 0){t=[]}if(n===void 0){n=true}var i=getNearestOverflowAncestor(e);var o=i===((r=e.ownerDocument)==null?void 0:r.body);var a=getWindow(i);if(o){var s=getFrameElement(a);return t.concat(a,a.visualViewport||[],isOverflowElement(i)?i:[],s&&n?getOverflowAncestors(s):[])}return t.concat(i,getOverflowAncestors(i,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){var t=getComputedStyle$1(e);var n=parseFloat(t.width)||0;var r=parseFloat(t.height)||0;var i=isHTMLElement(e);var o=i?e.offsetWidth:n;var a=i?e.offsetHeight:r;var s=round(n)!==o||round(r)!==a;if(s){n=o;r=a}return{width:n,height:r,$:s}}function unwrapElement(e){return!isElement(e)?e.contextElement:e}function getScale(e){var t=unwrapElement(e);if(!isHTMLElement(t)){return createCoords(1)}var n=t.getBoundingClientRect();var r=getCssDimensions(t),i=r.width,o=r.height,a=r.$;var s=(a?round(n.width):n.width)/i;var u=(a?round(n.height):n.height)/o;if(!s||!Number.isFinite(s)){s=1}if(!u||!Number.isFinite(u)){u=1}return{x:s,y:u}}var noOffsets=createCoords(0);function getVisualOffsets(e){var t=getWindow(e);if(!isWebKit()||!t.visualViewport){return noOffsets}return{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function shouldAddVisualOffsets(e,t,n){if(t===void 0){t=false}if(!n||t&&n!==getWindow(e)){return false}return t}function getBoundingClientRect(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=false}var i=e.getBoundingClientRect();var o=unwrapElement(e);var a=createCoords(1);if(t){if(r){if(isElement(r)){a=getScale(r)}}else{a=getScale(e)}}var s=shouldAddVisualOffsets(o,n,r)?getVisualOffsets(o):createCoords(0);var u=(i.left+s.x)/a.x;var l=(i.top+s.y)/a.y;var f=i.width/a.x;var c=i.height/a.y;if(o){var v=getWindow(o);var d=r&&isElement(r)?getWindow(r):r;var g=v;var m=getFrameElement(g);while(m&&r&&d!==g){var h=getScale(m);var p=m.getBoundingClientRect();var w=getComputedStyle$1(m);var _=p.left+(m.clientLeft+parseFloat(w.paddingLeft))*h.x;var y=p.top+(m.clientTop+parseFloat(w.paddingTop))*h.y;u*=h.x;l*=h.y;f*=h.x;c*=h.y;u+=_;l+=y;g=getWindow(m);m=getFrameElement(g)}}return rectToClientRect({width:f,height:c,x:u,y:l})}function getWindowScrollBarX(e,t){var n=getNodeScroll(e).scrollLeft;if(!t){return getBoundingClientRect(getDocumentElement(e)).left+n}return t.left+n}function getHTMLOffset(e,t){var n=e.getBoundingClientRect();var r=n.left+t.scrollLeft-getWindowScrollBarX(e,n);var i=n.top+t.scrollTop;return{x:r,y:i}}function convertOffsetParentRelativeRectToViewportRelativeRect(e){var t=e.elements,n=e.rect,r=e.offsetParent,i=e.strategy;var o=i==="fixed";var a=getDocumentElement(r);var s=t?isTopLayer(t.floating):false;if(r===a||s&&o){return n}var u={scrollLeft:0,scrollTop:0};var l=createCoords(1);var f=createCoords(0);var c=isHTMLElement(r);if(c||!c&&!o){if(getNodeName(r)!=="body"||isOverflowElement(a)){u=getNodeScroll(r)}if(isHTMLElement(r)){var v=getBoundingClientRect(r);l=getScale(r);f.x=v.x+r.clientLeft;f.y=v.y+r.clientTop}}var d=a&&!c&&!o?getHTMLOffset(a,u):createCoords(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x+d.x,y:n.y*l.y-u.scrollTop*l.y+f.y+d.y}}function getClientRects(e){return Array.from(e.getClientRects())}function getDocumentRect(e){var t=getDocumentElement(e);var n=getNodeScroll(e);var r=e.ownerDocument.body;var i=max(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth);var o=max(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);var a=-n.scrollLeft+getWindowScrollBarX(e);var s=-n.scrollTop;if(getComputedStyle$1(r).direction==="rtl"){a+=max(t.clientWidth,r.clientWidth)-i}return{width:i,height:o,x:a,y:s}}var SCROLLBAR_MAX=25;function getViewportRect(e,t){var n=getWindow(e);var r=getDocumentElement(e);var i=n.visualViewport;var o=r.clientWidth;var a=r.clientHeight;var s=0;var u=0;if(i){o=i.width;a=i.height;var l=isWebKit();if(!l||l&&t==="fixed"){s=i.offsetLeft;u=i.offsetTop}}var f=getWindowScrollBarX(r);if(f<=0){var c=r.ownerDocument;var v=c.body;var d=getComputedStyle(v);var g=c.compatMode==="CSS1Compat"?parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0:0;var m=Math.abs(r.clientWidth-v.clientWidth-g);if(m<=SCROLLBAR_MAX){o-=m}}else if(f<=SCROLLBAR_MAX){o+=f}return{width:o,height:a,x:s,y:u}}var absoluteOrFixed=new Set(["absolute","fixed"]);function getInnerBoundingClientRect(e,t){var n=getBoundingClientRect(e,true,t==="fixed");var r=n.top+e.clientTop;var i=n.left+e.clientLeft;var o=isHTMLElement(e)?getScale(e):createCoords(1);var a=e.clientWidth*o.x;var s=e.clientHeight*o.y;var u=i*o.x;var l=r*o.y;return{width:a,height:s,x:u,y:l}}function getClientRectFromClippingAncestor(e,t,n){var r;if(t==="viewport"){r=getViewportRect(e,n)}else if(t==="document"){r=getDocumentRect(getDocumentElement(e))}else if(isElement(t)){r=getInnerBoundingClientRect(t,n)}else{var i=getVisualOffsets(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return rectToClientRect(r)}function hasFixedPositionAncestor(e,t){var n=getParentNode(e);if(n===t||!isElement(n)||isLastTraversableNode(n)){return false}return getComputedStyle$1(n).position==="fixed"||hasFixedPositionAncestor(n,t)}function getClippingElementAncestors(e,t){var n=t.get(e);if(n){return n}var r=getOverflowAncestors(e,[],false).filter((function(e){return isElement(e)&&getNodeName(e)!=="body"}));var i=null;var o=getComputedStyle$1(e).position==="fixed";var a=o?getParentNode(e):e;while(isElement(a)&&!isLastTraversableNode(a)){var s=getComputedStyle$1(a);var u=isContainingBlock(a);if(!u&&s.position==="fixed"){i=null}var l=o?!u&&!i:!u&&s.position==="static"&&!!i&&absoluteOrFixed.has(i.position)||isOverflowElement(a)&&!u&&hasFixedPositionAncestor(e,a);if(l){r=r.filter((function(e){return e!==a}))}else{i=s}a=getParentNode(a)}t.set(e,r);return r}function getClippingRect(e){var t=e.element,n=e.boundary,r=e.rootBoundary,i=e.strategy;var o=n==="clippingAncestors"?isTopLayer(t)?[]:getClippingElementAncestors(t,this._c):[].concat(n);var a=__spreadArray(__spreadArray([],o,true),[r],false);var s=a[0];var u=a.reduce((function(e,n){var r=getClientRectFromClippingAncestor(t,n,i);e.top=max(r.top,e.top);e.right=min(r.right,e.right);e.bottom=min(r.bottom,e.bottom);e.left=max(r.left,e.left);return e}),getClientRectFromClippingAncestor(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function getDimensions(e){var t=getCssDimensions(e),n=t.width,r=t.height;return{width:n,height:r}}function getRectRelativeToOffsetParent(e,t,n){var r=isHTMLElement(t);var i=getDocumentElement(t);var o=n==="fixed";var a=getBoundingClientRect(e,true,o,t);var s={scrollLeft:0,scrollTop:0};var u=createCoords(0);function l(){u.x=getWindowScrollBarX(i)}if(r||!r&&!o){if(getNodeName(t)!=="body"||isOverflowElement(i)){s=getNodeScroll(t)}if(r){var f=getBoundingClientRect(t,true,o,t);u.x=f.x+t.clientLeft;u.y=f.y+t.clientTop}else if(i){l()}}if(o&&!r&&i){l()}var c=i&&!r&&!o?getHTMLOffset(i,s):createCoords(0);var v=a.left+s.scrollLeft-u.x-c.x;var d=a.top+s.scrollTop-u.y-c.y;return{x:v,y:d,width:a.width,height:a.height}}function isStaticPositioned(e){return getComputedStyle$1(e).position==="static"}function getTrueOffsetParent(e,t){if(!isHTMLElement(e)||getComputedStyle$1(e).position==="fixed"){return null}if(t){return t(e)}var n=e.offsetParent;if(getDocumentElement(e)===n){n=n.ownerDocument.body}return n}function getOffsetParent(e,t){var n=getWindow(e);if(isTopLayer(e)){return n}if(!isHTMLElement(e)){var r=getParentNode(e);while(r&&!isLastTraversableNode(r)){if(isElement(r)&&!isStaticPositioned(r)){return r}r=getParentNode(r)}return n}var i=getTrueOffsetParent(e,t);while(i&&isTableElement(i)&&isStaticPositioned(i)){i=getTrueOffsetParent(i,t)}if(i&&isLastTraversableNode(i)&&isStaticPositioned(i)&&!isContainingBlock(i)){return n}return i||getContainingBlock(e)||n}var getElementRects=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r,i,o;var a;return __generator(this,(function(s){switch(s.label){case 0:t=this.getOffsetParent||getOffsetParent;n=this.getDimensions;return[4,n(e.floating)];case 1:r=s.sent();a={};i=getRectRelativeToOffsetParent;o=[e.reference];return[4,t(e.floating)];case 2:return[2,(a.reference=i.apply(void 0,o.concat([s.sent(),e.strategy])),a.floating={x:0,y:0,width:r.width,height:r.height},a)]}}))}))};function isRTL(e){return getComputedStyle$1(e).direction==="rtl"}var platform={convertOffsetParentRelativeRectToViewportRelativeRect:convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement,getClippingRect:getClippingRect,getOffsetParent:getOffsetParent,getElementRects:getElementRects,getClientRects:getClientRects,getDimensions:getDimensions,getScale:getScale,isElement:isElement,isRTL:isRTL};function rectsAreEqual(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function observeMove(e,t){var n=null;var r;var i=getDocumentElement(e);function o(){var e;clearTimeout(r);(e=n)==null||e.disconnect();n=null}function a(s,u){if(s===void 0){s=false}if(u===void 0){u=1}o();var l=e.getBoundingClientRect();var f=l.left,c=l.top,v=l.width,d=l.height;if(!s){t()}if(!v||!d){return}var g=floor(c);var m=floor(i.clientWidth-(f+v));var h=floor(i.clientHeight-(c+d));var p=floor(f);var w=-g+"px "+-m+"px "+-h+"px "+-p+"px";var _={rootMargin:w,threshold:max(0,min(1,u))||1};var y=true;function b(t){var n=t[0].intersectionRatio;if(n!==u){if(!y){return a()}if(!n){r=setTimeout((function(){a(false,1e-7)}),1e3)}else{a(false,n)}}if(n===1&&!rectsAreEqual(l,e.getBoundingClientRect())){a()}y=false}try{n=new IntersectionObserver(b,__assign(__assign({},_),{root:i.ownerDocument}))}catch(e){n=new IntersectionObserver(b,_)}n.observe(e)}a(true);return o}function autoUpdate(e,t,n,r){if(r===void 0){r={}}var i=r.ancestorScroll,o=i===void 0?true:i,a=r.ancestorResize,s=a===void 0?true:a,u=r.elementResize,l=u===void 0?typeof ResizeObserver==="function":u,f=r.layoutShift,c=f===void 0?typeof IntersectionObserver==="function":f,v=r.animationFrame,d=v===void 0?false:v;var g=unwrapElement(e);var m=o||s?__spreadArray(__spreadArray([],g?getOverflowAncestors(g):[],true),getOverflowAncestors(t),true):[];m.forEach((function(e){o&&e.addEventListener("scroll",n,{passive:true});s&&e.addEventListener("resize",n)}));var h=g&&c?observeMove(g,n):null;var p=-1;var w=null;if(l){w=new ResizeObserver((function(e){var r=e[0];if(r&&r.target===g&&w){w.unobserve(t);cancelAnimationFrame(p);p=requestAnimationFrame((function(){var e;(e=w)==null||e.observe(t)}))}n()}));if(g&&!d){w.observe(g)}w.observe(t)}var _;var y=d?getBoundingClientRect(e):null;if(d){b()}function b(){var t=getBoundingClientRect(e);if(y&&!rectsAreEqual(y,t)){n()}y=t;_=requestAnimationFrame(b)}n();return function(){var e;m.forEach((function(e){o&&e.removeEventListener("scroll",n);s&&e.removeEventListener("resize",n)}));h==null||h();(e=w)==null||e.disconnect();w=null;if(d){cancelAnimationFrame(_)}}}var offset=offset$1;var shift=shift$1;var flip=flip$1;var arrow=arrow$1;var computePosition=function(e,t,n){var r=new Map;var i=__assign({platform:platform},n);var o=__assign(__assign({},i.platform),{_c:r});return computePosition$1(e,t,__assign(__assign({},i),{platform:o}))};var Logger=function(){function e(){}e.prototype.error=function(e,t){throw new Error("[".concat(e,"]: ").concat(t))};e.prototype.warn=function(e,t){console.warn("[".concat(e,"]: ").concat(t))};e.prototype.log=function(e,t){console.log("[".concat(e,"]: ").concat(t))};return e}();var FloatingAdapter=function(){function e(e){this.logger=e}e.prototype.computePosition=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var r,i,o,a,s,u,l,f,c,v,d,g;var m=this;return __generator(this,(function(h){switch(h.label){case 0:if(e===undefined||e===null)this.logger.error("FloatingAdapter.computePosition","Reference element is required for positioning.");if(t===undefined||t===null)this.logger.error("FloatingAdapter.computePosition","Floating element is required for positioning.");r=n.placement,i=n.offset,o=n.flip,a=n.shift,s=n.arrow,u=n.strategy;l=[offset(i)];if(o)l.push(flip());if(a)l.push(shift());if(s!==undefined&&s!==null)l.push(arrow({element:s}));return[4,computePosition(e,t,{placement:r,middleware:l,strategy:u}).catch((function(e){m.logger.error("FloatingAdapter.computePosition",e.message)})).then((function(e){return e}))];case 1:f=h.sent();c=f.x,v=f.y,d=f.placement,g=f.middlewareData;return[2,{x:c,y:v,placement:d,middlewareData:g}]}}))}))};e.prototype.applyPosition=function(e,t){if(e===undefined||e===null)this.logger.error("FloatingAdapter.applyPosition","Element is required to apply positioning.");e.style.left="".concat(t.x,"px");e.style.top="".concat(t.y,"px")};return e}();var PositioningEngine=function(e){__extends(t,e);function t(){var t=new Logger;return e.call(this,t)||this}return t}(FloatingAdapter);var anchoredMixin=function(e){var t=function(e){__extends(t,e);function t(){return e.call(this)||this}Object.defineProperty(t.prototype,"options",{get:function(){return{placement:"bottom",offset:8,strategy:"fixed"}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hooks",{get:function(){return{}},enumerable:false,configurable:true});t.prototype.showElement=function(){var e=this;this.floatingContent.showPopover();this.isVisible=true;this.startAutoUpdate(this.triggerSlot,this.floatingContent,this.options,(function(t){var n,r;(r=(n=e.hooks).onPositionUpdate)===null||r===void 0?void 0:r.call(n,t)}))};t.prototype.onBeforeShow=function(t){if(this.triggerSlot===null||this.triggerSlot===undefined){this.logger.error("AnchoredMixin.show","triggerSlot is required");return false}return e.prototype.onBeforeShow.call(this,t)};t.prototype.hideFocus=function(){var e,t;var n=(e=this.floatingContent)===null||e===void 0?void 0:e.contains(document.activeElement);if(n){(t=document.activeElement)===null||t===void 0?void 0:t.blur()}};t.prototype.hideElement=function(){var e;this.stopAutoUpdate();this.hideFocus();(e=this.floatingContent)===null||e===void 0?void 0:e.hidePopover();this.isVisible=false};t.prototype.handleSlotChange=function(e,t,n){var r=e.target;if(this.previousTrigger!==undefined&&this.previousTrigger!==null){this.detachTriggerListeners(this.previousTrigger,t,n)}if(r!==undefined&&r!==null){this.attachTriggerListeners(r,t,n);this.previousTrigger=r}};t.prototype.handleKeydown=function(e,t,n){if(e.key===KEYBOARD.Enter.key||e.key===" ")t();if(e.key===KEYBOARD.Escape.key)n()};t.prototype.updatePosition=function(e,t,n,r){return __awaiter(this,void 0,void 0,(function(){var i;var o,a,s;return __generator(this,(function(u){switch(u.label){case 0:return[4,this.positionEngine.computePosition(e,t,{placement:n.placement,offset:n.offset,flip:(o=n.flip)!==null&&o!==void 0?o:true,shift:(a=n.shift)!==null&&a!==void 0?a:true,arrow:n.arrow,strategy:(s=n.strategy)!==null&&s!==void 0?s:"fixed"})];case 1:i=u.sent();this.positionEngine.applyPosition(t,i);r===null||r===void 0?void 0:r(i);return[2,i]}}))}))};t.prototype.startAutoUpdate=function(e,t,n,r){var i=this;var o=function(){void i.updatePosition(e,t,n,r)};o();this.cleanupAutoUpdate=autoUpdate(e,t,o,{elementResize:true,layoutShift:true})};t.prototype.stopAutoUpdate=function(){var e;(e=this.cleanupAutoUpdate)===null||e===void 0?void 0:e.call(this);this.cleanupAutoUpdate=undefined};t.prototype.attachTriggerListeners=function(e,t,n){e.addEventListener(EVENTS.Focus,t);e.addEventListener(EVENTS.Blur,n)};t.prototype.detachTriggerListeners=function(e,t,n){e.removeEventListener(EVENTS.Focus,t);e.removeEventListener(EVENTS.Blur,n)};t.prototype.floatingDisconnect=function(e,t){if(this.previousTrigger!==undefined&&this.previousTrigger!==null){this.detachTriggerListeners(this.previousTrigger,e,t)}this.stopAutoUpdate()};t.prototype.subscribeToTrigger=function(e){if(this.hooks.subscribeToTrigger!==undefined)this.hooks.subscribeToTrigger(e)};t.prototype.onBeforeLoad=function(){var e=this.el.parentElement;if(e===null)return;var t=e.querySelector("[bds-tooltip], [bds-popover]")||e.closest(".bds-button, .bds-input, .bds-select")||e;if(t.isConnected){this.triggerSlot=t;this.subscribeToTrigger(t)}};t.prototype.componentDidLoad=function(){var e,t;this.onBeforeLoad();(t=(e=this.hooks).onBeforeLoad)===null||t===void 0?void 0:t.call(e,this.el)};t.prototype.componentWillLoad=function(){this.toggle=this.toggle.bind(this);this.show=this.show.bind(this);this.hide=this.hide.bind(this);this.positionEngine=new PositioningEngine;this.logger=new Logger;this.cleanupAutoUpdate=undefined;this.previousTrigger=undefined};t.prototype.disconnectedCallback=function(){var e=this;if(this.previousTrigger!==undefined&&this.previousTrigger!==null){this.floatingDisconnect((function(){return e.show()}),(function(){return e.hide()}))}this.stopAutoUpdate();this.hide()};Object.defineProperty(t,"elementRef",{get:function(){return"el"},enumerable:false,configurable:true});return t}(floatingMixin(e));return t};var getOffset=function(e,t,n){if(e===void 0){e=false}if(t===void 0){t=0}if(e)return t!==undefined?t:0;else return t!==undefined?n+t:n};export{anchoredMixin as a,getOffset as g};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|