@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
|
@@ -0,0 +1 @@
|
|
|
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{L as Logger}from"./Logger-iq2UuV7c.js";import{f as floatingMixin}from"./floating.mixin-DCXSEEVH.js";import{K as KEYBOARD}from"./Keys-DlYG-OVB.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,x,b,A,S,O,E,C,P,R,T,L,N,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(_);x=m==="floating"?"reference":"floating";b=s[p?x:m];S=rectToClientRect;E=(O=o).getClippingRect;B={};return[4,o.isElement==null?void 0:o.isElement(b)];case 1:if(!((n=W.sent())!=null?n:true))return[3,2];C=b;return[3,5];case 2:P=b.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:N=W.sent()||{x:1,y:1};return[3,11];case 10:N={x:1,y:1};W.label=11;case 11:L=N;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)/L.y,bottom:(M.bottom-A.bottom+y.bottom)/L.y,left:(A.left-M.left+y.left)/L.x,right:(M.right-A.right+y.right)/L.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,x,b,A,S,O,E,C,P,R;var T,L;return __generator(this,(function(N){switch(N.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=N.sent();return[4,l.getElementRects({reference:e,floating:t,strategy:a})];case 2:v=N.sent();d=computeCoordsFromPlacement(v,i,c),g=d.x,m=d.y;h=i;p={};w=0;_=0;N.label=3;case 3:if(!(_<f.length))return[3,11];x=f[_],b=x.name,A=x.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=N.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[b]=__assign(__assign({},p[b]),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=N.sent();return[3,7];case 6:R=P.rects;N.label=7;case 7:v=R;N.label=8;case 8:L=computeCoordsFromPlacement(v,h,c),g=L.x,m=L.y;N.label=9;case 9:_=-1;N.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,x,b,A,S,O,E,C,P,R,T,L,N,M,F,D,B;var W,V;return __generator(this,(function(j){switch(j.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=j.sent();w=m==="y";_=w?"top":"left";y=w?"bottom":"right";x=w?"clientHeight":"clientWidth";b=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=j.sent();O=S?S[x]:0;E=!O;if(E)return[3,4];return[4,a.isElement==null?void 0:a.isElement(S)];case 3:E=!j.sent();j.label=4;case 4:if(E){O=s.floating[x]||o.floating[h]}C=b/2-A/2;P=O/2-p[h]/2-1;R=min(d[_],P);T=min(d[y],P);L=R;N=O-p[h]-T;M=O/2-p[h]/2+C;F=clamp(L,M,N);D=!u.arrow&&getAlignment(i)!=null&&M!==F&&o.reference[h]/2-(M<L?R:T)-p[h]/2<0;B=D?M<L?M-L:M-N:0;return[2,(W={},W[m]=g[m]+B,W.data=__assign((V={},V[m]=F,V.centerOffset=M-F-B,V),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,x,b,A,S,O,E,C,P,R,T,L,N,M,F,D,B,W,V,j,k,$;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,x=y===void 0?true:y,b=__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||!x?[getOppositePlacement(s)]:getExpandedPlacements(s));P=_!=="none";if(!m&&P){C.push.apply(C,getOppositeAxisPlacements(s,x,_,E))}R=__spreadArray([s],C,true);return[4,u.detectOverflow(t,b)];case 2:T=H.sent();L=[];N=((r=o.flip)==null?void 0:r.overflows)||[];if(v){L.push(T[A])}if(g){M=getAlignmentSides(i,a,E);L.push(T[M[0]],T[M[1]])}N=__spreadArray(__spreadArray([],N,true),[{placement:i,overflows:L}],false);if(!L.every((function(e){return e<=0}))){B=(((F=o.flip)==null?void 0:F.index)||0)+1;W=R[B];if(W){V=g==="alignment"?S!==getSideAxis(W):false;if(!V||N.every((function(e){return getSideAxis(e.placement)===S?e.overflows[0]>0:true}))){return[2,{data:{index:B,overflows:N},reset:{placement:W}}]}}j=(D=N.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(!j){switch(p){case"bestFit":{$=(k=N.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:k[0];if($){j=$}break}case"initialPlacement":j=s;break}}if(i!==j){return[2,{reset:{placement:j}}]}}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,x,b,A,y,x,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";x=p==="y"?"bottom":"right";b=w+m[y];A=w-m[x];w=clamp(b,w,A)}if(f){y=h==="y"?"top":"left";x=h==="y"?"bottom":"right";S=_+m[y];O=_-m[x];_=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 x(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(x,__assign(__assign({},_),{root:i.ownerDocument}))}catch(e){n=new IntersectionObserver(x,_)}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){x()}function x(){var t=getBoundingClientRect(e);if(y&&!rectsAreEqual(y,t)){n()}y=t;_=requestAnimationFrame(x)}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 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||e.key===KEYBOARD.Space)t();if(e.key===KEYBOARD.Escape)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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function setFormValue(r,a){var o;(o=r.setFormValue)===null||o===void 0?void 0:o.call(r,a)}function runValidators(r,a,o){var v;var i={};var t="";for(var u=0,n=a;u<n.length;u++){var e=n[u],l=e.key,s=e.isValid,d=e.message;if(!s(o)){i[l]=true;if(t==="")t=d}}var f=Object.keys(i).length===0;(v=r.setValidity)===null||v===void 0?void 0:v.call(r,f?{}:i,t);return f}export{runValidators as r,setFormValue as s};
|
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,a,l
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,a,o,l){function t(e){return e instanceof o?e:new o((function(a){a(e)}))}return new(o||(o=Promise))((function(o,n){function r(e){try{s(l.next(e))}catch(e){n(e)}}function i(e){try{s(l["throw"](e))}catch(e){n(e)}}function s(e){e.done?o(e.value):t(e.value).then(r,i)}s((l=l.apply(e,a||[])).next())}))};var __generator=this&&this.__generator||function(e,a){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},l,t,n,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=i(0),r["throw"]=i(1),r["return"]=i(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function i(e){return function(a){return s([e,a])}}function s(i){if(l)throw new TypeError("Generator is already executing.");while(r&&(r=0,i[0]&&(o=0)),o)try{if(l=1,t&&(n=i[0]&2?t["return"]:i[0]?t["throw"]||((n=t["return"])&&n.call(t),0):t.next)&&!(n=n.call(t,i[1])).done)return n;if(t=0,n)i=[i[0]&2,n.value];switch(i[0]){case 0:case 1:n=i;break;case 4:o.label++;return{value:i[1],done:false};case 5:o.label++;t=i[1];i=[0];continue;case 7:i=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){o=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){o.label=i[1];break}if(i[0]===6&&o.label<n[1]){o.label=n[1];n=i;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(i);break}if(n[2])o.ops.pop();o.trys.pop();continue}i=a.call(e,o)}catch(e){i=[6,e];t=0}finally{l=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{b as bootstrapLazy}from"./index-BqJlOB6b.js";export{s as setNonce}from"./index-BqJlOB6b.js";import{g as globalScripts}from"./app-globals-DQuL1Twl.js";var defineCustomElements=function(e,a){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(typeof window==="undefined")return[2,undefined];return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy([["bds-list-menu-item",[[772,"bds-list-menu-item",{variant:[513],name:[1],disabled:[516],selected:[1540],value:[513],checkable:[516],activeItem:[516,"active-item"],href:[1],newTab:[4,"new-tab"],download:[1],currentState:[32]},null,{variant:[{checkPropsVariant:0}]}]]],["bds-radio-group",[[836,"bds-radio-group",{disabled:[516],error:[516],errorMessage:[1,"error-message"],helperText:[1,"helper-text"],info:[1],label:[1],name:[513],orientation:[513],required:[516],type:[513],value:[1025],isDisabled:[32],isInvalid:[32],checkValidity:[64],reportValidity:[64]},[[0,"bdsChange","handleRadioChange"],[0,"invalid","handleInvalid"]],{orientation:[{checkPropValues:0}],disabled:[{onDisabledChange:0}],error:[{onErrorChange:0}],value:[{onValueChange:0}]}]]],["bds-radio-card",[[260,"bds-radio-card",{value:[513],info:[1],name:[1],label:[1],checked:[1540],disabled:[516],error:[516]}]]],["bds-text-field",[[836,"bds-text-field",{name:[513],disabled:[516],required:[516],value:[1537],error:[516],errorMessage:[1,"error-message"],customValidators:[16],validationTiming:[1,"validation-timing"],type:[513],variant:[513],placeholder:[1],readOnly:[4,"readonly"],autocomplete:[1],pattern:[1],minLength:[2,"min-length"],maxLength:[2,"max-length"],label:[1],sublabel:[1],icon:[1],helperText:[1,"helper-text"],info:[1],clearable:[4],clearOnHover:[4,"clear-on-hover"],charCount:[2,"char-count"],counter:[4],customWidth:[1,"custom-width"],isDisabled:[32],focused:[32],showPassword:[32],touched:[32],dirty:[32],currentCharCount:[32],validationError:[32],validationMessage:[32],checkValidity:[64],reportValidity:[64]},null,{disabled:[{onDisabledChange:0}],type:[{checkPropValues:0}],variant:[{checkPropValues:0}],validationTiming:[{checkPropValues:0}],customValidators:[{onCustomValidatorsChange:0}],value:[{onValueChange:0}]}]]],["bds-toggle",[[576,"bds-toggle",{name:[513],disabled:[516],required:[516],info:[1],error:[516],errorMessage:[513,"error-message"],checked:[516],placement:[513],label:[513],helperText:[513,"helper-text"],value:[1],isDisabled:[32],validationError:[32],validationMessage:[32],isChecked:[32]},null,{checked:[{onCheckedChange:0}],disabled:[{onDisabledChange:0}]}]]],["bds-checkbox-card",[[836,"bds-checkbox-card",{name:[513],disabled:[516],required:[516],value:[513],label:[1],checked:[1540],indeterminate:[1540],error:[516],isDisabled:[32],isIndeterminate:[32],isChecked:[32]},null,{disabled:[{onDisabledChange:0}],indeterminate:[{onIndeterminateChange:0}],checked:[{onCheckedChange:0}]}]]],["bds-dialog",[[772,"bds-dialog",{active:[1540],preventClose:[4,"prevent-close"],height:[1],width:[1],layout:[1],contentPadding:[1,"content-padding"],backdropClose:[4,"backdrop-close"],escapeClose:[4,"escape-close"],size:[1],variant:[1],titleDialog:[1,"title-dialog"],maximizable:[4],closable:[4],open:[64],close:[64]},null,{active:[{handleIsOpenChange:0}]}]]],["bds-list-menu",[[260,"bds-list-menu",{selectionMode:[1,"selection-mode"],menuRole:[1,"menu-role"],selectControls:[4,"select-controls"],selectedValues:[32],getSelectedValues:[64],setSelectedValues:[64]},[[0,"bdsSelectItem","handleItemClick"]],{selectionMode:[{checkProps:0}],menuRole:[{checkProps:0}]}]]],["bds-popover",[[772,"bds-popover",{floatingOptions:[16],disabled:[4],width:[8],header:[4],footer:[4],closable:[4],isVisible:[32]}]]],["bds-radio",[[260,"bds-radio",{checked:[1540],disabled:[516],value:[1],name:[513],label:[1],error:[516],info:[1]}]]],["bds-radio-button",[[260,"bds-radio-button",{checked:[1540],disabled:[516],error:[516],value:[1],name:[513],label:[1],info:[1]}]]],["bds-avatar",[[0,"bds-avatar",{username:[1],variant:[1],background:[1],initialsColor:[1,"initials-color"]}]]],["bds-badge",[[260,"bds-badge",{variant:[1],disabled:[4]},null,{variant:[{checkPropValues:0}]}]]],["bds-banner",[[260,"bds-banner",{variant:[1],closable:[4],closeButtonLabel:[1,"close-button-label"],isClosing:[32],isOpen:[32],open:[64],close:[64]}]]],["bds-button-group",[[260,"bds-button-group",{size:[1],orientation:[1],label:[1],color:[1],variant:[1]},null,{size:[{validateProps:0},{propagatePropsToButtons:0}],orientation:[{validateProps:0}],color:[{validateProps:0},{propagatePropsToButtons:0}],variant:[{validateProps:0},{propagatePropsToButtons:0}]}]]],["bds-flag",[[0,"bds-flag",{alignFlag:[1,"align-flag"],callSign:[4,"call-sign"],country:[1],customFlags:[16],identifier:[1],label:[4],shape:[1],shortName:[4,"short-name"]},null,{alignFlag:[{checkPropValues:0}],identifier:[{checkPropValues:0}],shape:[{checkPropValues:0}]}]]],["bds-grid",[[260,"bds-grid",{layout:[1],rowGap:[1,"row-gap"]},null,{layout:[{checkPropValues:0}]}]]],["bds-grid-item",[[260,"bds-grid-item",{colSpan:[520,"col-span"],colSpanSm:[520,"col-span-sm"],colSpanMd:[520,"col-span-md"],colSpanLg:[520,"col-span-lg"],colSpanXl:[520,"col-span-xl"],colSpan2xl:[520,"col-span-2xl"],rowSpan:[520,"row-span"],offset:[514]},null,{colSpan:[{checkPropValues:0}],colSpanSm:[{checkPropValues:0}],colSpanMd:[{checkPropValues:0}],colSpanLg:[{checkPropValues:0}],colSpanXl:[{checkPropValues:0}],colSpan2xl:[{checkPropValues:0}],rowSpan:[{checkPropValues:0}],offset:[{checkPropValues:0}]}]]],["bds-spinner",[[0,"bds-spinner",{size:[1],label:[1]},null,{size:[{checkPropValues:0}]}]]],["bds-status",[[260,"bds-status",{state:[1],indicator:[1]},null,{state:[{checkPropValues:0}],indicator:[{checkPropValues:0}]}]]],["bds-tag",[[260,"bds-tag",{multiselect:[4],selected:[4],closeButtonLabel:[1,"close-button-label"],color:[1],readonly:[4],disabled:[4],internalSelected:[32]},null,{color:[{checkPropValues:0}],selected:[{syncSelectedFromProp:0}]}]]],["bds-divider",[[0,"bds-divider",{orientation:[513]},null,{orientation:[{checkPropValues:0}]}]]],["bds-checkbox",[[836,"bds-checkbox",{name:[513],disabled:[516],required:[516],checked:[1540],indeterminate:[1540],error:[516],value:[1],label:[1],isDisabled:[32]},null,{checked:[{onCheckedChange:0}],disabled:[{onDisabledChange:0}]}]]],["bds-button",[[324,"bds-button",{label:[1],disabled:[4],name:[1],type:[1],color:[1],variant:[1],size:[1],loading:[4],disclosure:[4],currentState:[32]},null,{type:[{checkPropValues:0}],color:[{checkPropValues:0}],variant:[{checkPropValues:0}],size:[{checkPropValues:0}]}]]],["bds-tooltip_2",[[260,"bds-typography",{variant:[513],size:[513],state:[513],customClass:[1,"custom-class"],element:[1],align:[1],ellipsis:[4],maxLines:[2,"max-lines"],tooltipText:[1,"tooltip-text"],required:[516],htmlFor:[1,"html-for"],href:[1],target:[1],downloadable:[4],filename:[1],sanitizedHref:[32]},null,{href:[{updateSanitizedHref:0}]}],[772,"bds-tooltip",{multiline:[4],disabled:[4],floatingOptions:[16],isVisible:[32]}]]]],a)]}}))}))};export{defineCustomElements};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var MENU_ROLES={MENU:"menu",LISTBOX:"listbox"};export{MENU_ROLES as M};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var ORIENTATIONS={HORIZONTAL:"horizontal",VERTICAL:"vertical"};export{ORIENTATIONS as O};
|
|
@@ -15,7 +15,7 @@ import { ComponentState } from "../../../types/index";
|
|
|
15
15
|
* @attr {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
16
16
|
* @attr {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
17
17
|
* @attr {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
18
|
-
* @attr {string} size - The size of the button, which can be '
|
|
18
|
+
* @attr {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
19
19
|
* @attr {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
20
20
|
* @attr {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
21
21
|
*
|
|
@@ -25,14 +25,14 @@ import { ComponentState } from "../../../types/index";
|
|
|
25
25
|
* @property {string} type - The type of the button, which can be 'button', 'submit', or 'reset'. Default is 'button'.
|
|
26
26
|
* @property {string} color - The color theme of the button, which can be 'default', 'primary', 'success', or 'error'. Default is 'default'.
|
|
27
27
|
* @property {string} variant - The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.
|
|
28
|
-
* @property {string} size - The size of the button, which can be '
|
|
28
|
+
* @property {string} size - The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'.
|
|
29
29
|
* @property {boolean} loading - Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false.
|
|
30
30
|
* @property {boolean} disclosure - Indicates if the button should show a chevron down at the end of the content.
|
|
31
31
|
*
|
|
32
32
|
* @default 'button' - Default type value
|
|
33
33
|
* @default 'default' - Default color value
|
|
34
34
|
* @default 'default' - Default variant value
|
|
35
|
-
* @default '
|
|
35
|
+
* @default 'md' - Default size value
|
|
36
36
|
* @default 'default' - Default status value
|
|
37
37
|
* @default false - Default disabled value
|
|
38
38
|
* @default '' - Default label value
|
|
@@ -55,7 +55,7 @@ export declare class BdsButton implements IButton {
|
|
|
55
55
|
readonly color: IButton['color'];
|
|
56
56
|
/** variant is a string attribute. The visual style of the button, which can be 'default', 'outline', or 'plain'. Default is 'default'.*/
|
|
57
57
|
readonly variant: IButton['variant'];
|
|
58
|
-
/** size is a string attribute. The size of the button, which can be '
|
|
58
|
+
/** size is a string attribute. The size of the button, which can be 'sm', 'md', or 'lg'. Default is 'md'. */
|
|
59
59
|
readonly size: IButton['size'];
|
|
60
60
|
/** loading is a boolean attribute. Indicates whether the button is in a loading state, which can be used to show a loading spinner and disable the button. Default is false. */
|
|
61
61
|
readonly loading: IButton['loading'];
|
|
@@ -4,9 +4,9 @@ export declare const BUTTON_VARIANTS: {
|
|
|
4
4
|
readonly PLAIN: "plain";
|
|
5
5
|
};
|
|
6
6
|
export declare const BUTTON_SIZES: {
|
|
7
|
-
readonly SMALL: "
|
|
8
|
-
readonly MEDIUM: "
|
|
9
|
-
readonly LARGE: "
|
|
7
|
+
readonly SMALL: "sm";
|
|
8
|
+
readonly MEDIUM: "md";
|
|
9
|
+
readonly LARGE: "lg";
|
|
10
10
|
};
|
|
11
11
|
export declare const BUTTON_TYPES: {
|
|
12
12
|
readonly BUTTON: "button";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IButtonGroup } from './types/IButtonGroup';
|
|
2
|
+
/**
|
|
3
|
+
* Button group component for grouping related buttons together in a unified visual unit.
|
|
4
|
+
* @slot - The content of the button group, typically multiple `<bds-button>` elements.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export declare class BdsButtonGroup implements IButtonGroup {
|
|
8
|
+
private inheritedAttributes;
|
|
9
|
+
private readonly logger;
|
|
10
|
+
/** Controls the size applied to all child `<bds-button>` elements. Accepted values: `'sm'`, `'md'`, `'lg'`. Default is `'md'`. */
|
|
11
|
+
readonly size: IButtonGroup['size'];
|
|
12
|
+
/** Controls the layout direction of the grouped buttons. Accepted values: `'horizontal'`, `'vertical'`. Default is `'horizontal'`. */
|
|
13
|
+
readonly orientation: IButtonGroup['orientation'];
|
|
14
|
+
/** Provides an accessible label for the button group. */
|
|
15
|
+
readonly label: IButtonGroup['label'];
|
|
16
|
+
/** Controls the color applied to all child `<bds-button>` elements. Accepted values: see `CoreColors`. Default is `default`. */
|
|
17
|
+
readonly color: IButtonGroup['color'];
|
|
18
|
+
/** Controls the variant applied to all child `<bds-button>` elements. Accepted values: `'default'`, `'outline'`, `'plain'`. Default is `'default'`. */
|
|
19
|
+
readonly variant: IButtonGroup['variant'];
|
|
20
|
+
/** Reference to the host element. */
|
|
21
|
+
el: HTMLBdsButtonGroupElement;
|
|
22
|
+
/** Validates `size`, `orientation`, `color`, and `variant` prop values on change, falling back to defaults if invalid. */
|
|
23
|
+
validateProps(): void;
|
|
24
|
+
/** Propagates `size`, `color` and `variant` to all child `<bds-button>` elements via `setAttribute`. */
|
|
25
|
+
propagatePropsToButtons(): void;
|
|
26
|
+
/** Validates props before the first render. */
|
|
27
|
+
componentWillLoad(): void;
|
|
28
|
+
/** Warns when non-`<bds-button>` elements are placed in the default slot. */
|
|
29
|
+
private validateSlotContent;
|
|
30
|
+
/** Propagates initial props to child buttons after the component is mounted. */
|
|
31
|
+
componentDidLoad(): void;
|
|
32
|
+
/** Builds the CSS class map applied to the host element based `orientation`. */
|
|
33
|
+
private get classMapButtonGroup();
|
|
34
|
+
render(): any;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=bds-button-group.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Orientation } from "../../../../types/orientation";
|
|
2
|
+
import { CoreColors } from "../../../../types/coreColors";
|
|
3
|
+
import { ButtonVariant, ButtonSizes } from '../../bds-button/types/types';
|
|
4
|
+
export interface IButtonGroup {
|
|
5
|
+
size: ButtonSizes;
|
|
6
|
+
orientation: Orientation;
|
|
7
|
+
label?: string;
|
|
8
|
+
color: CoreColors;
|
|
9
|
+
variant: ButtonVariant;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=IButtonGroup.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
+
import { IListMenu, ListMenuChangeDetail } from './types/IListMenu';
|
|
2
3
|
/**
|
|
3
4
|
* Container component that manages a list of menu items.
|
|
4
5
|
* It handles selection logic (single/multiple) and maintains the data state.
|
|
@@ -6,33 +7,29 @@ import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
|
6
7
|
* @summary A list menu component that can contain multiple menu items and manage their selection state.
|
|
7
8
|
* @slot - Default slot for bds-list-menu-item elements.
|
|
8
9
|
*
|
|
9
|
-
* @
|
|
10
|
-
* @
|
|
11
|
-
*
|
|
12
|
-
* @property {boolean} multiple - If true, allows multiple items to be selected. Default is false (single selection).
|
|
13
|
-
* @property {string} menuRole - Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'.
|
|
14
|
-
*
|
|
15
|
-
* @event bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
10
|
+
* @fires bdsChange - Emitted when the selection changes, providing the current selected value(s).
|
|
11
|
+
* @fires bdsSelect - Emmited when item is selected in menu-role="menu" is clicked
|
|
16
12
|
* @method getSelectedValues - Returns the currently selected value(s). If multiple is true, returns an array of strings; otherwise, returns a single string or undefined.
|
|
17
13
|
* @method setSelectedValues - Sets the selected value(s). Accepts a string for single selection or an array of strings for multiple selection.
|
|
18
|
-
*
|
|
19
|
-
* @default false - By default, the menu does not allow multiple selections (single selection mode).
|
|
20
|
-
* @default 'menu' - The default ARIA role for the menu is 'menu'.
|
|
21
|
-
*
|
|
22
14
|
*/
|
|
23
15
|
export declare class BdsListMenu {
|
|
16
|
+
private inheritedAttributes;
|
|
24
17
|
/** The host element */
|
|
25
18
|
el: HTMLBdsListMenuElement;
|
|
26
|
-
/**
|
|
27
|
-
readonly
|
|
19
|
+
/** The selection mode of the menu. Can be 'SINGLE' or 'MULTIPLE'. Default is 'SINGLE'. */
|
|
20
|
+
readonly selectionMode: IListMenu['selectionMode'];
|
|
28
21
|
/** Defines the ARIA role of the menu. Can be 'menu' or 'listbox'. Default is 'menu'. */
|
|
29
|
-
readonly menuRole: '
|
|
22
|
+
readonly menuRole: IListMenu['menuRole'];
|
|
23
|
+
/** Determines if the menu items have selectall/deselectall controls */
|
|
24
|
+
readonly selectControls: IListMenu['selectControls'];
|
|
30
25
|
/** State to manage selected values */
|
|
31
26
|
selectedValues: string[];
|
|
32
27
|
/** Emitted when the selection changes, providing the current selected value(s). */
|
|
33
28
|
readonly bdsChange: EventEmitter<string | string[]>;
|
|
34
29
|
/** Emitted when the selection changes, providing the current selected value(s). */
|
|
35
|
-
readonly
|
|
30
|
+
readonly bdsSelect: EventEmitter<ListMenuChangeDetail>;
|
|
31
|
+
/** Verify props to be valid */
|
|
32
|
+
checkProps(): void;
|
|
36
33
|
/**
|
|
37
34
|
* Retrieves the currently selected value(s) programmatically.
|
|
38
35
|
* @method getSelectedValues
|
|
@@ -54,6 +51,7 @@ export declare class BdsListMenu {
|
|
|
54
51
|
get childItems(): HTMLBdsListMenuItemElement[];
|
|
55
52
|
/** First clickable element */
|
|
56
53
|
get firstEnabledItem(): HTMLBdsListMenuItemElement;
|
|
54
|
+
get isMultiple(): boolean;
|
|
57
55
|
/** Updates the active state of the menu items based on the current selection. */
|
|
58
56
|
private updateActiveState;
|
|
59
57
|
/** Handles selection logic for multiple selection mode. */
|
|
@@ -62,8 +60,14 @@ export declare class BdsListMenu {
|
|
|
62
60
|
private handleSingleSelection;
|
|
63
61
|
/** Updates the state of child menu items based on the current selection. */
|
|
64
62
|
private updateChildrenState;
|
|
63
|
+
/** activate item based on interaction */
|
|
64
|
+
private setActiveItem;
|
|
65
65
|
/** Initializes the selected values based on the child menu items that have the 'selected' attribute set. */
|
|
66
66
|
private initialSelectedValues;
|
|
67
|
+
/** Handles the toggle of select/deselect all controls, updating the selection state accordingly. */
|
|
68
|
+
private handleToggleSelect;
|
|
69
|
+
/** Renders the select/deselect all controls if applicable based on the props. */
|
|
70
|
+
private renderSelectControls;
|
|
67
71
|
/** Renders the component with a slot for menu items. */
|
|
68
72
|
render(): any;
|
|
69
73
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MenuRole } from "../../../../../types/index";
|
|
2
|
+
import { ListMenuSelectionMode } from './types';
|
|
3
|
+
export interface IListMenu {
|
|
4
|
+
menuRole: MenuRole;
|
|
5
|
+
selectionMode: ListMenuSelectionMode;
|
|
6
|
+
selectControls: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ListMenuChangeDetail {
|
|
9
|
+
value: string | string[] | undefined;
|
|
10
|
+
element: HTMLElement;
|
|
11
|
+
index: string | number;
|
|
12
|
+
checked: boolean | undefined;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=IListMenu.d.ts.map
|
package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare const BdsListMenuItem_base: abstract new (...args: any[]) => {
|
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
selected: boolean;
|
|
8
8
|
activeItem: boolean;
|
|
9
|
+
readonly parent: HTMLElement | null;
|
|
9
10
|
readonly parentRole: import("@/types").MenuRole | null;
|
|
10
11
|
readonly menuItemRole: import("@/types").MenuItemRole;
|
|
11
12
|
readonly ariaSelected: string | null;
|
|
@@ -77,9 +78,11 @@ export declare class BdsListMenuItem extends BdsListMenuItem_base implements ILi
|
|
|
77
78
|
/** Disabled state item */
|
|
78
79
|
readonly disabled: IListMenuItem['disabled'];
|
|
79
80
|
/** Selected item state */
|
|
80
|
-
|
|
81
|
+
selected: IListMenuItem['selected'];
|
|
81
82
|
/** Value associated with the menu item */
|
|
82
83
|
readonly value: IListMenuItem['value'];
|
|
84
|
+
/** Checkable state item, if is activated should be visible a checkbox */
|
|
85
|
+
readonly checkable: IListMenuItem['checkable'];
|
|
83
86
|
/** Active state item */
|
|
84
87
|
readonly activeItem: IListMenuItem['activeItem'];
|
|
85
88
|
/** Link behavior props */
|
|
@@ -91,10 +94,12 @@ export declare class BdsListMenuItem extends BdsListMenuItem_base implements ILi
|
|
|
91
94
|
/** State to manage click and keyboard interaction states */
|
|
92
95
|
currentState: ComponentState;
|
|
93
96
|
/** Event handler for activation */
|
|
94
|
-
readonly
|
|
97
|
+
readonly bdsSelectItem: EventEmitter<IListMenuItemEvent>;
|
|
95
98
|
checkPropsVariant(): void;
|
|
96
99
|
/** Lifecycle method called before the component is loaded */
|
|
97
100
|
componentWillLoad(): void;
|
|
101
|
+
/** Improve aria resolve for checkable items */
|
|
102
|
+
get menuItemRoleExtended(): import("@/types").MenuItemRole | "checkbox" | "menuitemcheckbox";
|
|
98
103
|
/** Event to notify when the menu item is clicked */
|
|
99
104
|
private handleClick;
|
|
100
105
|
/** Event to handle keydown navigation and trigger click */
|
|
@@ -107,6 +112,7 @@ export declare class BdsListMenuItem extends BdsListMenuItem_base implements ILi
|
|
|
107
112
|
private get classMap();
|
|
108
113
|
/** Return the render for the label variant of the list menu item */
|
|
109
114
|
private renderTypeLabel;
|
|
115
|
+
private renderCheckbox;
|
|
110
116
|
/** Return the render for the button variant of the list menu item */
|
|
111
117
|
private renderTypeButton;
|
|
112
118
|
/** Main render */
|
|
@@ -58,7 +58,9 @@ export declare class BdsCheckbox extends BdsCheckbox_base implements ICheckbox,
|
|
|
58
58
|
private handleClick;
|
|
59
59
|
private handleKeyDown;
|
|
60
60
|
private getAriaChecked;
|
|
61
|
+
private get hideFromScreenReaders();
|
|
61
62
|
private renderCheckIcon;
|
|
63
|
+
private get canShowLabel();
|
|
62
64
|
render(): any;
|
|
63
65
|
}
|
|
64
66
|
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { IFormControl } from "../../../mixins/index";
|
|
2
|
+
import { ICheckboxCard } from './types/ICheckboxCard';
|
|
3
|
+
declare const BdsCheckboxCard_base: abstract new (...args: any[]) => {
|
|
4
|
+
formDisabledCallback(disabled: boolean): void;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Checkbox card component is a selectable card-based checkbox option.
|
|
8
|
+
* It presents a non-exclusive choice with optional descriptive text and icon,
|
|
9
|
+
* supporting checked, indeterminate, disabled, and error states.
|
|
10
|
+
* Can be used standalone or within a checkbox group for orchestration.
|
|
11
|
+
*
|
|
12
|
+
* @slot - Label content when no `label` prop is provided.
|
|
13
|
+
* @slot icon - Optional icon rendered to the left of the label.
|
|
14
|
+
* @slot description - Optional descriptive text rendered below the label.
|
|
15
|
+
*
|
|
16
|
+
* @property {string} name - Name of the form control, submitted as a key in the form data.
|
|
17
|
+
* @property {boolean} disabled - Disables the control. Defaults to `false`.
|
|
18
|
+
* @property {boolean} required - Marks the control as required for form submission. Defaults to `false`.
|
|
19
|
+
* @property {string} value - Value submitted with the form data when checked. Defaults to `"on"`.
|
|
20
|
+
* @property {string} label - Label displayed next to the checkbox. If not provided, the default slot is used.
|
|
21
|
+
* @property {boolean} checked - Whether the checkbox card is selected. Defaults to `false`.
|
|
22
|
+
* @property {boolean} indeterminate - Whether the checkbox card shows an indeterminate ("mixed") visual state. Defaults to `false`.
|
|
23
|
+
* @property {boolean} error - Whether the checkbox card is in an error state. Defaults to `false`.
|
|
24
|
+
*
|
|
25
|
+
* @fires valueChange - Emitted when the checked state changes (for 2-way binding / v-model). Payload: `boolean`.
|
|
26
|
+
* @fires bdsChange - Emitted when the user toggles the checkbox card. Payload: `{ checked: boolean, value: string }`.
|
|
27
|
+
*/
|
|
28
|
+
export declare class BdsCheckboxCard extends BdsCheckboxCard_base implements ICheckboxCard, IFormControl<boolean> {
|
|
29
|
+
private isDisabled;
|
|
30
|
+
private isIndeterminate;
|
|
31
|
+
private isChecked;
|
|
32
|
+
el: HTMLBdsCheckboxCardElement;
|
|
33
|
+
internals: ElementInternals;
|
|
34
|
+
/** Name of the form control, submitted as a key in the form data. */
|
|
35
|
+
readonly name: ICheckboxCard['name'];
|
|
36
|
+
/** Disables the control. */
|
|
37
|
+
readonly disabled: ICheckboxCard['disabled'];
|
|
38
|
+
/** Marks the control as required for form submission. */
|
|
39
|
+
readonly required: ICheckboxCard['required'];
|
|
40
|
+
/** Value submitted with the form when this checkbox is selected. */
|
|
41
|
+
readonly value: ICheckboxCard['value'];
|
|
42
|
+
/** Label text displayed next to the checkbox indicator. Falls back to the default slot when empty. */
|
|
43
|
+
readonly label: ICheckboxCard['label'];
|
|
44
|
+
/** Whether this checkbox card is selected. */
|
|
45
|
+
checked: ICheckboxCard['checked'];
|
|
46
|
+
/** Whether the checkbox card shows an indeterminate visual state. */
|
|
47
|
+
indeterminate: ICheckboxCard['indeterminate'];
|
|
48
|
+
/** Whether the checkbox card is in an error state. */
|
|
49
|
+
readonly error: ICheckboxCard['error'];
|
|
50
|
+
/** Emitted when the checked state changes. Useful for 2-way binding / v-model. */
|
|
51
|
+
valueChange: ICheckboxCard['valueChange'];
|
|
52
|
+
/** Emitted when the user toggles this checkbox card. */
|
|
53
|
+
bdsChange: ICheckboxCard['bdsChange'];
|
|
54
|
+
componentWillLoad(): void;
|
|
55
|
+
onDisabledChange(next: boolean): void;
|
|
56
|
+
onIndeterminateChange(next: boolean): void;
|
|
57
|
+
onCheckedChange(next: boolean): void;
|
|
58
|
+
private toggle;
|
|
59
|
+
private handleClick;
|
|
60
|
+
private handleKeyDown;
|
|
61
|
+
private get hostClasses();
|
|
62
|
+
private syncFormValue;
|
|
63
|
+
formAssociatedCallback(): void;
|
|
64
|
+
formResetCallback(): void;
|
|
65
|
+
formStateRestoreCallback(state: unknown, _mode: string): void;
|
|
66
|
+
formDisabledCallback(disabled: boolean): void;
|
|
67
|
+
render(): any;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=bds-checkbox-card.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentInterface } from '../../../../stencil-public-runtime';
|
|
2
|
+
import { ICheckbox } from '../../bds-checkbox/types/ICheckbox';
|
|
3
|
+
export interface ICheckboxCard extends ComponentInterface, ICheckbox {
|
|
4
|
+
name: string;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
required: boolean;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=ICheckboxCard.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import type { IRadio, RadioChangeDetail } from './types/IRadio';
|
|
3
|
+
/**
|
|
4
|
+
* Radio button component for single-selection within a group.
|
|
5
|
+
* Use inside `bds-radio-group` for managed selection and form binding.
|
|
6
|
+
* Can also be used standalone with the `name`, `value`, and `checked` props.
|
|
7
|
+
*
|
|
8
|
+
* @slot - Label content when no `label` prop is provided.
|
|
9
|
+
* @slot icon - Optional icon rendered to the left of the label.
|
|
10
|
+
*/
|
|
11
|
+
export declare class BdsRadio implements IRadio {
|
|
12
|
+
el: HTMLBdsRadioElement;
|
|
13
|
+
/** Whether this radio is selected. Managed by bds-radio-group; can be set directly when used standalone. */
|
|
14
|
+
checked: boolean;
|
|
15
|
+
/** Disables the radio, preventing interaction and selection. */
|
|
16
|
+
readonly disabled: boolean;
|
|
17
|
+
/** Value submitted with the form when this radio is selected. */
|
|
18
|
+
readonly value: string;
|
|
19
|
+
/** Name attribute stamped by the parent bds-radio-group via setAttribute. Set directly when used standalone. */
|
|
20
|
+
readonly name: string;
|
|
21
|
+
/** Label text displayed next to the radio indicator. Falls back to the default slot when empty. */
|
|
22
|
+
readonly label: string;
|
|
23
|
+
/** Shows error styling on the radio indicator. Propagated by bds-radio-group. */
|
|
24
|
+
readonly error: boolean;
|
|
25
|
+
/** Tooltip text shown on an info icon next to the label. */
|
|
26
|
+
readonly info: string;
|
|
27
|
+
/** Emitted when the user selects this radio. Listened to by the parent bds-radio-group to enforce single selection. */
|
|
28
|
+
bdsChange: EventEmitter<RadioChangeDetail>;
|
|
29
|
+
componentDidLoad(): void;
|
|
30
|
+
private select;
|
|
31
|
+
private handleClick;
|
|
32
|
+
private handleKeyDown;
|
|
33
|
+
private get classMap();
|
|
34
|
+
render(): any;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=bds-radio.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface RadioChangeDetail {
|
|
2
|
+
checked: boolean;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IRadio {
|
|
6
|
+
checked: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
error: boolean;
|
|
9
|
+
value: string;
|
|
10
|
+
name: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=IRadio.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import type { IRadioButton, RadioButtonChangeDetail } from './types/IRadioButton';
|
|
3
|
+
/**
|
|
4
|
+
* Button-shaped radio option for use inside `bds-radio-group[type="radiobutton"]`.
|
|
5
|
+
* Creates a segmented control appearance when grouped. Not form-associated — the parent
|
|
6
|
+
* `bds-radio-group` owns form state and single-selection enforcement.
|
|
7
|
+
*
|
|
8
|
+
* @slot - Label content when no `label` prop is provided.
|
|
9
|
+
* @slot icon - Optional icon rendered to the left of the label.
|
|
10
|
+
*/
|
|
11
|
+
export declare class BdsRadioButton implements IRadioButton {
|
|
12
|
+
el: HTMLBdsRadioButtonElement;
|
|
13
|
+
/** Whether this button is selected. Managed by bds-radio-group; can be set directly when used standalone. */
|
|
14
|
+
checked: boolean;
|
|
15
|
+
/** Disables the button, preventing interaction and selection. */
|
|
16
|
+
readonly disabled: boolean;
|
|
17
|
+
/** Shows error styling on the button. Propagated by bds-radio-group. */
|
|
18
|
+
readonly error: boolean;
|
|
19
|
+
/** Value submitted with the form when this button is selected. */
|
|
20
|
+
readonly value: string;
|
|
21
|
+
/** Name attribute stamped by the parent bds-radio-group via setAttribute. Set directly when used standalone. */
|
|
22
|
+
readonly name: string;
|
|
23
|
+
/** Label text displayed inside the button. Falls back to the default slot when empty. */
|
|
24
|
+
readonly label: string;
|
|
25
|
+
/** Tooltip text shown on an info icon next to the label. */
|
|
26
|
+
readonly info: string;
|
|
27
|
+
/** Emitted when the user selects this button. Listened to by the parent bds-radio-group to enforce single selection. */
|
|
28
|
+
bdsChange: EventEmitter<RadioButtonChangeDetail>;
|
|
29
|
+
componentDidLoad(): void;
|
|
30
|
+
private select;
|
|
31
|
+
private handleClick;
|
|
32
|
+
private handleKeyDown;
|
|
33
|
+
private get classMap();
|
|
34
|
+
render(): any;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=bds-radio-button.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface RadioButtonChangeDetail {
|
|
2
|
+
checked: boolean;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IRadioButton {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
info: string;
|
|
9
|
+
checked: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
error: boolean;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=IRadioButton.d.ts.map
|