@helixui/library 3.3.1 → 3.4.0
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/custom-elements.json +340 -71
- package/dist/components/hx-accordion/hx-accordion-item.d.ts +35 -0
- package/dist/components/hx-accordion/hx-accordion-item.d.ts.map +1 -1
- package/dist/components/hx-alert/hx-alert.d.ts +11 -0
- package/dist/components/hx-alert/hx-alert.d.ts.map +1 -1
- package/dist/components/hx-alert/hx-alert.styles.d.ts.map +1 -1
- package/dist/components/hx-alert/index.js +1 -1
- package/dist/components/hx-badge/hx-badge.styles.d.ts.map +1 -1
- package/dist/components/hx-badge/index.js +1 -1
- package/dist/components/hx-banner/hx-banner.d.ts +9 -1
- package/dist/components/hx-banner/hx-banner.d.ts.map +1 -1
- package/dist/components/hx-banner/index.js +1 -1
- package/dist/components/hx-button/hx-button.d.ts +11 -1
- package/dist/components/hx-button/hx-button.d.ts.map +1 -1
- package/dist/components/hx-button/index.js +1 -1
- package/dist/components/hx-button-group/hx-button-group.d.ts +13 -0
- package/dist/components/hx-button-group/hx-button-group.d.ts.map +1 -1
- package/dist/components/hx-button-group/index.js +1 -1
- package/dist/components/hx-checkbox/hx-checkbox.d.ts +153 -1
- package/dist/components/hx-checkbox/hx-checkbox.d.ts.map +1 -1
- package/dist/components/hx-checkbox/hx-checkbox.styles.d.ts.map +1 -1
- package/dist/components/hx-checkbox/index.js +1 -1
- package/dist/components/hx-checkbox-group/hx-checkbox-group.d.ts +151 -2
- package/dist/components/hx-checkbox-group/hx-checkbox-group.d.ts.map +1 -1
- package/dist/components/hx-checkbox-group/index.js +1 -1
- package/dist/components/hx-color-picker/hx-color-picker.d.ts +163 -1
- package/dist/components/hx-color-picker/hx-color-picker.d.ts.map +1 -1
- package/dist/components/hx-color-picker/hx-color-picker.styles.d.ts.map +1 -1
- package/dist/components/hx-color-picker/index.js +1 -1
- package/dist/components/hx-combobox/hx-combobox.d.ts +311 -2
- package/dist/components/hx-combobox/hx-combobox.d.ts.map +1 -1
- package/dist/components/hx-combobox/index.js +1 -1
- package/dist/components/hx-data-table/hx-data-table.d.ts.map +1 -1
- package/dist/components/hx-data-table/index.js +1 -1
- package/dist/components/hx-date-picker/hx-date-picker.d.ts +182 -56
- package/dist/components/hx-date-picker/hx-date-picker.d.ts.map +1 -1
- package/dist/components/hx-date-picker/hx-date-picker.styles.d.ts.map +1 -1
- package/dist/components/hx-date-picker/index.js +1 -1
- package/dist/components/hx-dialog/hx-dialog.d.ts +240 -0
- package/dist/components/hx-dialog/hx-dialog.d.ts.map +1 -1
- package/dist/components/hx-dialog/index.js +1 -1
- package/dist/components/hx-drawer/hx-drawer.d.ts +201 -0
- package/dist/components/hx-drawer/hx-drawer.d.ts.map +1 -1
- package/dist/components/hx-drawer/hx-drawer.styles.d.ts.map +1 -1
- package/dist/components/hx-drawer/index.js +1 -1
- package/dist/components/hx-dropdown/hx-dropdown.d.ts +168 -0
- package/dist/components/hx-dropdown/hx-dropdown.d.ts.map +1 -1
- package/dist/components/hx-dropdown/index.js +1 -1
- package/dist/components/hx-field/hx-field.d.ts +109 -0
- package/dist/components/hx-field/hx-field.d.ts.map +1 -1
- package/dist/components/hx-field/index.js +1 -1
- package/dist/components/hx-icon-button/hx-icon-button.d.ts +16 -3
- package/dist/components/hx-icon-button/hx-icon-button.d.ts.map +1 -1
- package/dist/components/hx-icon-button/hx-icon-button.styles.d.ts.map +1 -1
- package/dist/components/hx-icon-button/index.js +1 -1
- package/dist/components/hx-link/hx-link.d.ts +10 -1
- package/dist/components/hx-link/hx-link.d.ts.map +1 -1
- package/dist/components/hx-link/index.js +1 -1
- package/dist/components/hx-list/hx-list-item.d.ts +27 -1
- package/dist/components/hx-list/hx-list-item.d.ts.map +1 -1
- package/dist/components/hx-list/hx-list.d.ts +28 -0
- package/dist/components/hx-list/hx-list.d.ts.map +1 -1
- package/dist/components/hx-list/index.js +1 -1
- package/dist/components/hx-menu/hx-menu-divider.d.ts +10 -0
- package/dist/components/hx-menu/hx-menu-divider.d.ts.map +1 -1
- package/dist/components/hx-menu/hx-menu-item.d.ts +99 -2
- package/dist/components/hx-menu/hx-menu-item.d.ts.map +1 -1
- package/dist/components/hx-menu/hx-menu-item.styles.d.ts.map +1 -1
- package/dist/components/hx-menu/hx-menu.d.ts +117 -2
- package/dist/components/hx-menu/hx-menu.d.ts.map +1 -1
- package/dist/components/hx-menu/index.js +1 -1
- package/dist/components/hx-meter/hx-meter.d.ts +39 -0
- package/dist/components/hx-meter/hx-meter.d.ts.map +1 -1
- package/dist/components/hx-meter/hx-meter.styles.d.ts.map +1 -1
- package/dist/components/hx-meter/index.js +1 -1
- package/dist/components/hx-overflow-menu/hx-overflow-menu.d.ts +132 -1
- package/dist/components/hx-overflow-menu/hx-overflow-menu.d.ts.map +1 -1
- package/dist/components/hx-overflow-menu/index.js +1 -1
- package/dist/components/hx-phi-field/hx-phi-field.d.ts +0 -1
- package/dist/components/hx-phi-field/hx-phi-field.d.ts.map +1 -1
- package/dist/components/hx-popover/hx-popover.d.ts +91 -0
- package/dist/components/hx-popover/hx-popover.d.ts.map +1 -1
- package/dist/components/hx-popover/index.js +1 -1
- package/dist/components/hx-progress-bar/hx-progress-bar.d.ts +33 -0
- package/dist/components/hx-progress-bar/hx-progress-bar.d.ts.map +1 -1
- package/dist/components/hx-progress-bar/index.js +1 -1
- package/dist/components/hx-radio-group/hx-radio-group.d.ts +152 -1
- package/dist/components/hx-radio-group/hx-radio-group.d.ts.map +1 -1
- package/dist/components/hx-radio-group/hx-radio.d.ts +14 -0
- package/dist/components/hx-radio-group/hx-radio.d.ts.map +1 -1
- package/dist/components/hx-radio-group/index.js +1 -1
- package/dist/components/hx-select/hx-select.d.ts +304 -2
- package/dist/components/hx-select/hx-select.d.ts.map +1 -1
- package/dist/components/hx-select/hx-select.styles.d.ts.map +1 -1
- package/dist/components/hx-select/index.js +1 -1
- package/dist/components/hx-side-nav/hx-nav-item.styles.d.ts.map +1 -1
- package/dist/components/hx-side-nav/index.js +1 -1
- package/dist/components/hx-spinner/hx-spinner.d.ts +14 -0
- package/dist/components/hx-spinner/hx-spinner.d.ts.map +1 -1
- package/dist/components/hx-spinner/index.js +1 -1
- package/dist/components/hx-split-button/hx-split-button.d.ts +94 -7
- package/dist/components/hx-split-button/hx-split-button.d.ts.map +1 -1
- package/dist/components/hx-split-button/index.js +1 -1
- package/dist/components/hx-stat/hx-stat.d.ts +28 -0
- package/dist/components/hx-stat/hx-stat.d.ts.map +1 -1
- package/dist/components/hx-stat/index.js +1 -1
- package/dist/components/hx-switch/hx-switch.d.ts +78 -1
- package/dist/components/hx-switch/hx-switch.d.ts.map +1 -1
- package/dist/components/hx-switch/hx-switch.styles.d.ts.map +1 -1
- package/dist/components/hx-switch/index.js +1 -1
- package/dist/components/hx-table/hx-td.d.ts +30 -3
- package/dist/components/hx-table/hx-td.d.ts.map +1 -1
- package/dist/components/hx-table/hx-th.d.ts +39 -3
- package/dist/components/hx-table/hx-th.d.ts.map +1 -1
- package/dist/components/hx-table/hx-tr.d.ts +26 -0
- package/dist/components/hx-table/hx-tr.d.ts.map +1 -1
- package/dist/components/hx-table/index.js +1 -1
- package/dist/components/hx-tabs/hx-tab-panel.d.ts +34 -0
- package/dist/components/hx-tabs/hx-tab-panel.d.ts.map +1 -1
- package/dist/components/hx-tabs/hx-tab.d.ts +45 -2
- package/dist/components/hx-tabs/hx-tab.d.ts.map +1 -1
- package/dist/components/hx-tabs/hx-tab.styles.d.ts.map +1 -1
- package/dist/components/hx-tabs/hx-tabs.d.ts +32 -2
- package/dist/components/hx-tabs/hx-tabs.d.ts.map +1 -1
- package/dist/components/hx-tabs/index.js +1 -1
- package/dist/components/hx-tag/hx-tag.styles.d.ts.map +1 -1
- package/dist/components/hx-tag/index.js +1 -1
- package/dist/components/hx-theme/hx-theme.d.ts +10 -5
- package/dist/components/hx-theme/hx-theme.d.ts.map +1 -1
- package/dist/components/hx-time-picker/hx-time-picker.d.ts +210 -2
- package/dist/components/hx-time-picker/hx-time-picker.d.ts.map +1 -1
- package/dist/components/hx-time-picker/hx-time-picker.styles.d.ts.map +1 -1
- package/dist/components/hx-time-picker/index.js +1 -1
- package/dist/components/hx-toast/hx-toast-stack.d.ts +14 -0
- package/dist/components/hx-toast/hx-toast-stack.d.ts.map +1 -1
- package/dist/components/hx-toast/hx-toast.d.ts +22 -3
- package/dist/components/hx-toast/hx-toast.d.ts.map +1 -1
- package/dist/components/hx-toast/index.js +1 -1
- package/dist/components/hx-toast/toast-factory.d.ts.map +1 -1
- package/dist/components/hx-toggle-button/hx-toggle-button.d.ts +110 -0
- package/dist/components/hx-toggle-button/hx-toggle-button.d.ts.map +1 -1
- package/dist/components/hx-toggle-button/hx-toggle-button.styles.d.ts.map +1 -1
- package/dist/components/hx-toggle-button/index.js +1 -1
- package/dist/components/hx-tooltip/hx-tooltip.d.ts +52 -0
- package/dist/components/hx-tooltip/hx-tooltip.d.ts.map +1 -1
- package/dist/components/hx-tooltip/index.js +1 -1
- package/dist/components/hx-tree-view/hx-tree-item.d.ts +117 -12
- package/dist/components/hx-tree-view/hx-tree-item.d.ts.map +1 -1
- package/dist/components/hx-tree-view/hx-tree-view.d.ts +87 -7
- package/dist/components/hx-tree-view/hx-tree-view.d.ts.map +1 -1
- package/dist/components/hx-tree-view/index.js +1 -1
- package/dist/css/helix-all.css +221 -1
- package/dist/css/helix-core.css +81 -0
- package/dist/css/helix-feedback.css +14 -0
- package/dist/css/helix-forms.css +109 -1
- package/dist/css/helix-overlay.css +17 -0
- package/dist/css/hx-alert.css +9 -0
- package/dist/css/hx-badge.css +28 -0
- package/dist/css/hx-checkbox.css +18 -0
- package/dist/css/hx-color-picker.css +25 -0
- package/dist/css/hx-date-picker.css +2 -1
- package/dist/css/hx-drawer.css +17 -0
- package/dist/css/hx-icon-button.css +30 -0
- package/dist/css/hx-meter.css +5 -0
- package/dist/css/hx-select.css +19 -0
- package/dist/css/hx-switch.css +17 -0
- package/dist/css/hx-tag.css +23 -0
- package/dist/css/hx-time-picker.css +11 -0
- package/dist/css/hx-toggle-button.css +17 -0
- package/dist/css/index.css +1 -1
- package/dist/css/manifest.json +4 -1
- package/dist/index.js +38 -38
- package/dist/shared/aria-flatten-DY6v2vah.js +22 -0
- package/dist/shared/aria-flatten-DY6v2vah.js.map +1 -0
- package/dist/shared/aria-idref-CxvyzfQS.js +126 -0
- package/dist/shared/aria-idref-CxvyzfQS.js.map +1 -0
- package/dist/shared/hx-accordion-ZVzgDzTG.js.map +1 -1
- package/dist/shared/{hx-alert-CLn7CstP.js → hx-alert-Bto8-TIi.js} +55 -37
- package/dist/shared/hx-alert-Bto8-TIi.js.map +1 -0
- package/dist/shared/{hx-badge-CQXgOXJM.js → hx-badge-JlFtAdxS.js} +37 -9
- package/dist/shared/hx-badge-JlFtAdxS.js.map +1 -0
- package/dist/shared/{hx-banner-D3DzpfcP.js → hx-banner-fpRnciIO.js} +13 -5
- package/dist/shared/hx-banner-fpRnciIO.js.map +1 -0
- package/dist/shared/{hx-button-DPY6SPVT.js → hx-button-BOwAEcF1.js} +108 -85
- package/dist/shared/{hx-button-DPY6SPVT.js.map → hx-button-BOwAEcF1.js.map} +1 -1
- package/dist/shared/{hx-button-group-BI-QBqmO.js → hx-button-group-DcHP5MBv.js} +15 -16
- package/dist/shared/{hx-button-group-BI-QBqmO.js.map → hx-button-group-DcHP5MBv.js.map} +1 -1
- package/dist/shared/hx-checkbox-C48KYKFq.js +696 -0
- package/dist/shared/hx-checkbox-C48KYKFq.js.map +1 -0
- package/dist/shared/hx-checkbox-group-BJIAX3zU.js +496 -0
- package/dist/shared/hx-checkbox-group-BJIAX3zU.js.map +1 -0
- package/dist/shared/hx-color-picker-Dk4cBwYQ.js +1221 -0
- package/dist/shared/hx-color-picker-Dk4cBwYQ.js.map +1 -0
- package/dist/shared/hx-combobox-BTLO9qiK.js +1359 -0
- package/dist/shared/hx-combobox-BTLO9qiK.js.map +1 -0
- package/dist/shared/{hx-data-table-CLqVqdxr.js → hx-data-table-Ct3gQ6ya.js} +3 -2
- package/dist/shared/{hx-data-table-CLqVqdxr.js.map → hx-data-table-Ct3gQ6ya.js.map} +1 -1
- package/dist/shared/{hx-date-picker-2iRG1p74.js → hx-date-picker-CiR7FVnR.js} +542 -206
- package/dist/shared/hx-date-picker-CiR7FVnR.js.map +1 -0
- package/dist/shared/hx-dialog-AOZpHSuF.js +717 -0
- package/dist/shared/hx-dialog-AOZpHSuF.js.map +1 -0
- package/dist/shared/{hx-drawer-Y1Ui2IWJ.js → hx-drawer-DH6CdAN1.js} +300 -98
- package/dist/shared/hx-drawer-DH6CdAN1.js.map +1 -0
- package/dist/shared/hx-dropdown-DiLd40Lm.js +401 -0
- package/dist/shared/hx-dropdown-DiLd40Lm.js.map +1 -0
- package/dist/shared/{hx-field-B3Qo8OLS.js → hx-field-zw0U1KVi.js} +99 -38
- package/dist/shared/hx-field-zw0U1KVi.js.map +1 -0
- package/dist/shared/{hx-icon-button-CGNdQSFM.js → hx-icon-button-a6OpeQz5.js} +149 -68
- package/dist/shared/hx-icon-button-a6OpeQz5.js.map +1 -0
- package/dist/shared/{hx-link-C-O6vq0Q.js → hx-link-CMnZRUtQ.js} +55 -43
- package/dist/shared/hx-link-CMnZRUtQ.js.map +1 -0
- package/dist/shared/{hx-list-MyEhh8c7.js → hx-list-De66EtAP.js} +163 -107
- package/dist/shared/hx-list-De66EtAP.js.map +1 -0
- package/dist/shared/hx-menu-divider-BjiRIWKq.js +797 -0
- package/dist/shared/hx-menu-divider-BjiRIWKq.js.map +1 -0
- package/dist/shared/{hx-meter-BPscsw5t.js → hx-meter-BJdh6nrF.js} +105 -64
- package/dist/shared/hx-meter-BJdh6nrF.js.map +1 -0
- package/dist/shared/{hx-nav-item-xqRPOCWX.js → hx-nav-item-CODtUlew.js} +13 -9
- package/dist/shared/{hx-nav-item-xqRPOCWX.js.map → hx-nav-item-CODtUlew.js.map} +1 -1
- package/dist/shared/hx-overflow-menu-BQ4fiMYu.js +492 -0
- package/dist/shared/hx-overflow-menu-BQ4fiMYu.js.map +1 -0
- package/dist/shared/hx-phi-field-C19oxlrr.js.map +1 -1
- package/dist/shared/{hx-popover-B-FP3-wW.js → hx-popover-B9W8-tC0.js} +123 -66
- package/dist/shared/hx-popover-B9W8-tC0.js.map +1 -0
- package/dist/shared/hx-progress-bar-C8nDMdYa.js +290 -0
- package/dist/shared/hx-progress-bar-C8nDMdYa.js.map +1 -0
- package/dist/shared/hx-radio-Z1lV1zTO.js +822 -0
- package/dist/shared/hx-radio-Z1lV1zTO.js.map +1 -0
- package/dist/shared/hx-select-D18CnJ0e.js +1089 -0
- package/dist/shared/hx-select-D18CnJ0e.js.map +1 -0
- package/dist/shared/{hx-spinner-DL5AYr16.js → hx-spinner-BB0h2hKZ.js} +62 -34
- package/dist/shared/hx-spinner-BB0h2hKZ.js.map +1 -0
- package/dist/shared/{hx-split-button-Djnc5Aeg.js → hx-split-button-BoABoEm5.js} +153 -82
- package/dist/shared/hx-split-button-BoABoEm5.js.map +1 -0
- package/dist/shared/{hx-stat-WOcNV1Ry.js → hx-stat-Dtf9lz-O.js} +77 -47
- package/dist/shared/hx-stat-Dtf9lz-O.js.map +1 -0
- package/dist/shared/hx-switch-B6kr-EwE.js +540 -0
- package/dist/shared/hx-switch-B6kr-EwE.js.map +1 -0
- package/dist/shared/{hx-tab-panel-DspCrKqo.js → hx-tab-panel-BQtBXKLD.js} +255 -131
- package/dist/shared/hx-tab-panel-BQtBXKLD.js.map +1 -0
- package/dist/shared/{hx-tag-CNSmdyaK.js → hx-tag-C5aCUpVi.js} +63 -40
- package/dist/shared/hx-tag-C5aCUpVi.js.map +1 -0
- package/dist/shared/{hx-td-DnnEMIuA.js → hx-td-BGkFOJEK.js} +267 -123
- package/dist/shared/hx-td-BGkFOJEK.js.map +1 -0
- package/dist/shared/hx-theme-BsefFWTO.js.map +1 -1
- package/dist/shared/hx-time-picker-iwCD7rzW.js +1038 -0
- package/dist/shared/hx-time-picker-iwCD7rzW.js.map +1 -0
- package/dist/shared/{hx-toggle-button-iLiYrMbD.js → hx-toggle-button-BQ81EDkl.js} +226 -65
- package/dist/shared/hx-toggle-button-BQ81EDkl.js.map +1 -0
- package/dist/shared/{hx-tooltip-nYOv9OLu.js → hx-tooltip-DVqtKPCD.js} +68 -46
- package/dist/shared/hx-tooltip-DVqtKPCD.js.map +1 -0
- package/dist/shared/hx-tree-item-CHrUhuZL.js +925 -0
- package/dist/shared/hx-tree-item-CHrUhuZL.js.map +1 -0
- package/dist/shared/menu-roving-DmMnzJhn.js +14 -0
- package/dist/shared/menu-roving-DmMnzJhn.js.map +1 -0
- package/dist/shared/menu-tree-BNM0SYYq.js +42 -0
- package/dist/shared/menu-tree-BNM0SYYq.js.map +1 -0
- package/dist/shared/{toast-factory-YSznocIV.js → toast-factory-CL2BzdSB.js} +128 -77
- package/dist/shared/toast-factory-CL2BzdSB.js.map +1 -0
- package/dist/utils/aria-flatten.d.ts +56 -0
- package/dist/utils/aria-flatten.d.ts.map +1 -0
- package/dist/utils/aria-idref.d.ts +127 -0
- package/dist/utils/aria-idref.d.ts.map +1 -0
- package/dist/utils/menu-label.d.ts +18 -0
- package/dist/utils/menu-label.d.ts.map +1 -0
- package/dist/utils/menu-roving.d.ts +28 -0
- package/dist/utils/menu-roving.d.ts.map +1 -0
- package/dist/utils/menu-tree.d.ts +41 -0
- package/dist/utils/menu-tree.d.ts.map +1 -0
- package/dist/utils/tree-walk.d.ts +53 -0
- package/dist/utils/tree-walk.d.ts.map +1 -0
- package/figma-inventory.json +132 -20
- package/package.json +1 -1
- package/dist/shared/hx-alert-CLn7CstP.js.map +0 -1
- package/dist/shared/hx-badge-CQXgOXJM.js.map +0 -1
- package/dist/shared/hx-banner-D3DzpfcP.js.map +0 -1
- package/dist/shared/hx-checkbox-D7xma9YH.js +0 -524
- package/dist/shared/hx-checkbox-D7xma9YH.js.map +0 -1
- package/dist/shared/hx-checkbox-group-C9n315Ju.js +0 -323
- package/dist/shared/hx-checkbox-group-C9n315Ju.js.map +0 -1
- package/dist/shared/hx-color-picker-uRc865FJ.js +0 -882
- package/dist/shared/hx-color-picker-uRc865FJ.js.map +0 -1
- package/dist/shared/hx-combobox-DDzqNKEW.js +0 -924
- package/dist/shared/hx-combobox-DDzqNKEW.js.map +0 -1
- package/dist/shared/hx-date-picker-2iRG1p74.js.map +0 -1
- package/dist/shared/hx-dialog-DRN_1-Y-.js +0 -514
- package/dist/shared/hx-dialog-DRN_1-Y-.js.map +0 -1
- package/dist/shared/hx-drawer-Y1Ui2IWJ.js.map +0 -1
- package/dist/shared/hx-dropdown-LyaRc8Rf.js +0 -263
- package/dist/shared/hx-dropdown-LyaRc8Rf.js.map +0 -1
- package/dist/shared/hx-field-B3Qo8OLS.js.map +0 -1
- package/dist/shared/hx-icon-button-CGNdQSFM.js.map +0 -1
- package/dist/shared/hx-link-C-O6vq0Q.js.map +0 -1
- package/dist/shared/hx-list-MyEhh8c7.js.map +0 -1
- package/dist/shared/hx-menu-divider-C2omnPtj.js +0 -558
- package/dist/shared/hx-menu-divider-C2omnPtj.js.map +0 -1
- package/dist/shared/hx-meter-BPscsw5t.js.map +0 -1
- package/dist/shared/hx-overflow-menu-DCLsdIBy.js +0 -374
- package/dist/shared/hx-overflow-menu-DCLsdIBy.js.map +0 -1
- package/dist/shared/hx-popover-B-FP3-wW.js.map +0 -1
- package/dist/shared/hx-progress-bar-Bn3JEPUf.js +0 -258
- package/dist/shared/hx-progress-bar-Bn3JEPUf.js.map +0 -1
- package/dist/shared/hx-radio-CJvNU2yP.js +0 -621
- package/dist/shared/hx-radio-CJvNU2yP.js.map +0 -1
- package/dist/shared/hx-select-C8fEHQhC.js +0 -807
- package/dist/shared/hx-select-C8fEHQhC.js.map +0 -1
- package/dist/shared/hx-spinner-DL5AYr16.js.map +0 -1
- package/dist/shared/hx-split-button-Djnc5Aeg.js.map +0 -1
- package/dist/shared/hx-stat-WOcNV1Ry.js.map +0 -1
- package/dist/shared/hx-switch-BrZFaRue.js +0 -420
- package/dist/shared/hx-switch-BrZFaRue.js.map +0 -1
- package/dist/shared/hx-tab-panel-DspCrKqo.js.map +0 -1
- package/dist/shared/hx-tag-CNSmdyaK.js.map +0 -1
- package/dist/shared/hx-td-DnnEMIuA.js.map +0 -1
- package/dist/shared/hx-time-picker-BoEIZwzv.js +0 -688
- package/dist/shared/hx-time-picker-BoEIZwzv.js.map +0 -1
- package/dist/shared/hx-toggle-button-iLiYrMbD.js.map +0 -1
- package/dist/shared/hx-tooltip-nYOv9OLu.js.map +0 -1
- package/dist/shared/hx-tree-item-C2CiWuDE.js +0 -703
- package/dist/shared/hx-tree-item-C2CiWuDE.js.map +0 -1
- package/dist/shared/toast-factory-YSznocIV.js.map +0 -1
|
@@ -7,6 +7,41 @@ export interface HxAccordionToggleDetail {
|
|
|
7
7
|
/**
|
|
8
8
|
* An individual accordion item with collapsible content.
|
|
9
9
|
*
|
|
10
|
+
* ## Architecture Note: Slot Projection vs. Host-Canonical (group-4 round-1)
|
|
11
|
+
*
|
|
12
|
+
* `hx-accordion-item` deliberately does NOT participate in the
|
|
13
|
+
* host-canonical / `internals.ariaLabelledByElements` pattern used by every
|
|
14
|
+
* other group-2/3/4 component. Rationale:
|
|
15
|
+
*
|
|
16
|
+
* 1. The trigger label comes from `<slot name="trigger">` — consumer
|
|
17
|
+
* light-DOM projected directly into the `<summary>` element. AT reads
|
|
18
|
+
* the slot-projected text natively because slot projection preserves
|
|
19
|
+
* accessible name (the `<summary>` IS the heading and consumes the
|
|
20
|
+
* slotted text in its own accessible name computation).
|
|
21
|
+
* 2. `aria-labelledby="${_uid}-trigger"` on the inner content region and
|
|
22
|
+
* `aria-controls="${_uid}-content"` on the summary BOTH resolve
|
|
23
|
+
* same-shadow-root, which works correctly across every AT — these
|
|
24
|
+
* IDREFs never cross a shadow boundary.
|
|
25
|
+
* 3. Pushing these ids through `internals.ariaLabelledByElements` would
|
|
26
|
+
* either duplicate the wiring (heading announced twice) or break the
|
|
27
|
+
* native `<details>/<summary>` toggle semantics (the host carrying
|
|
28
|
+
* `role="heading"` would shadow the summary's own heading projection).
|
|
29
|
+
*
|
|
30
|
+
* `role="heading"` on `<summary>` (with `aria-level=N`) is the APG-canonical
|
|
31
|
+
* Accordion pattern. Per the APG note, `<summary>` MUST be a direct child
|
|
32
|
+
* of `<details>` for the native toggle to function — wrapping it in an
|
|
33
|
+
* `<h3>` would forfeit native disclosure. The role-on-summary approach is
|
|
34
|
+
* the authoritative compromise. NVDA, JAWS, and VoiceOver all announce the
|
|
35
|
+
* summary as a heading at the configured level when this pattern is used.
|
|
36
|
+
*
|
|
37
|
+
* `aria-controls` on the summary points at the shadow-internal content
|
|
38
|
+
* region; APG marks the relationship as implicit via the heading + region
|
|
39
|
+
* structure, so AT not following the IDREF still announces correctly. The
|
|
40
|
+
* IDREF is a hint, not a requirement — and because both ids are in the
|
|
41
|
+
* same shadow root, it resolves cleanly when AT does follow it. This
|
|
42
|
+
* matches the popover/dropdown intentional `aria-controls` omission for
|
|
43
|
+
* the cross-shadow case (see those components' code comments).
|
|
44
|
+
*
|
|
10
45
|
* @summary Collapsible panel that can be expanded or collapsed.
|
|
11
46
|
*
|
|
12
47
|
* @tag hx-accordion-item
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-accordion-item.d.ts","sourceRoot":"","sources":["../../../src/components/hx-accordion/hx-accordion-item.ts"],"names":[],"mappings":"AACA,OAAO,4CAA4C,CAAC;AAGpD,OAAO,EAAE,YAAY,EAAmB,MAAM,qBAAqB,CAAC;AAwBpE,mFAAmF;AACnF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED
|
|
1
|
+
{"version":3,"file":"hx-accordion-item.d.ts","sourceRoot":"","sources":["../../../src/components/hx-accordion/hx-accordion-item.ts"],"names":[],"mappings":"AACA,OAAO,4CAA4C,CAAC;AAGpD,OAAO,EAAE,YAAY,EAAmB,MAAM,qBAAqB,CAAC;AAwBpE,mFAAmF;AACnF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,qBACa,kBAAmB,SAAQ,YAAY;IAClD,OAAgB,MAAM,4BAAuD;IAE7E,gBAAgB;IAChB,OAAO,CAAC,IAAI,CAA0B;IAEtC;;;OAGG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,QAAQ,UAAS;IAEjB;;;;;OAKG;IAEH,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAK;IAIxB,iBAAiB,IAAI,IAAI;IAYlC,gBAAgB;IAChB,OAAO,CAAC,wBAAwB;IAahC;;;;;;;OAOG;IACH,gBAAgB;IAChB,OAAO,KAAK,aAAa,GAExB;IAID,gBAAgB;IAChB,OAAO,CAAC,OAAO;IASf,gBAAgB;IAChB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAiB7C,gBAAgB;IAChB,OAAO,CAAC,mBAAmB;IAK3B,gBAAgB;IAChB,OAAO,CAAC,cAAc;IASb,MAAM;CA0ChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,kBAAkB,CAAC;KACzC;CACF"}
|
|
@@ -141,6 +141,17 @@ export declare class HelixAlert extends HelixElement {
|
|
|
141
141
|
private _actionsSlotChangeHandler;
|
|
142
142
|
/** @internal */
|
|
143
143
|
private _titleSlotChangeHandler;
|
|
144
|
+
/**
|
|
145
|
+
* (group-6 §5.4) Race-guard counter for the sr-only announcer microtask
|
|
146
|
+
* dance. Each open=false→true transition increments this; the deferred
|
|
147
|
+
* text-clear + re-inject only writes to the announcer when the counter
|
|
148
|
+
* matches the value captured at scheduling time. Rapid open/close cycles
|
|
149
|
+
* therefore collapse to a single announcement on the final settled state
|
|
150
|
+
* rather than leaking stale text from earlier cycles.
|
|
151
|
+
*
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
154
|
+
private _announcerCycle;
|
|
144
155
|
/** @internal */
|
|
145
156
|
private _defaultSeverityLabel;
|
|
146
157
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-alert.d.ts","sourceRoot":"","sources":["../../../src/components/hx-alert/hx-alert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,4CAA4C,CAAC;AAGpD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAInD,kEAAkE;AAClE,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpE,4DAA4D;AAC5D,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,qBACa,UAAW,SAAQ,YAAY;IAC1C,OAAgB,MAAM,4BAA2C;IAIjE;;;OAGG;IAEH,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAU;IAE3D;;;OAGG;IAEH,WAAW,UAAS;IAEpB;;;;;OAKG;IAEH,OAAO,SAAM;IAEb;;;OAGG;IACqC,UAAU,SAAiB;IAEnE;;;OAGG;IAEH,IAAI,UAAS;IAEb;;;OAGG;IAEH,QAAQ,UAAS;IAEjB;;;;OAIG;IAEH,MAAM,UAAS;IAEf;;;;OAIG;IAEH,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAElC;;;;;OAKG;IAEH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IAIpC,gBAAgB;IAEhB,OAAO,CAAC,WAAW,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AAO,CAAC,yBAAyB,CAA6B;IAC9D,gBAAgB;IAChB,OAAO,CAAC,uBAAuB,CAA6B;IAE5D;;;;;;;;;OASG;IACH,OAAO,CAAC,eAAe,CAAK;IAI5B,gBAAgB;IAChB,OAAO,CAAC,qBAAqB;IAU7B,gBAAgB;IAChB,OAAO,KAAK,uBAAuB,GAElC;IAED,qEAAqE;IACrE,gBAAgB;IAChB,OAAO,KAAK,YAAY,GAEvB;IAED;;;;OAIG;IACH,gBAAgB;IAChB,OAAO,KAAK,KAAK,GAEhB;IAIQ,iBAAiB,IAAI,IAAI;IAmBzB,oBAAoB,IAAI,IAAI;IAY5B,YAAY,IAAI,IAAI;cAoBV,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAyDzE,gBAAgB;IAChB,OAAO,CAAC,eAAe;IAQvB,gBAAgB;IAChB,OAAO,CAAC,kBAAkB;IAQ1B,gBAAgB;IAChB,OAAO,CAAC,kBAAkB;IAQ1B,gBAAgB;IAChB,OAAO,CAAC,gBAAgB;IAQxB,gBAAgB;IAChB,OAAO,CAAC,kBAAkB;IAc1B,gBAAgB;IAChB,OAAO,CAAC,gBAAgB;IAUxB,gBAAgB;IAChB,OAAO,CAAC,cAAc;IAqCb,MAAM;CA+EhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,UAAU,CAAC;KACxB;CACF;AAED,YAAY,EAAE,UAAU,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-alert.styles.d.ts","sourceRoot":"","sources":["../../../src/components/hx-alert/hx-alert.styles.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"hx-alert.styles.d.ts","sourceRoot":"","sources":["../../../src/components/hx-alert/hx-alert.styles.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,yBAoP5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-badge.styles.d.ts","sourceRoot":"","sources":["../../../src/components/hx-badge/hx-badge.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"hx-badge.styles.d.ts","sourceRoot":"","sources":["../../../src/components/hx-badge/hx-badge.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,yBAiP5B,CAAC"}
|
|
@@ -120,7 +120,15 @@ export declare class HelixBanner extends HelixElement {
|
|
|
120
120
|
private _defaultSeverityLabel;
|
|
121
121
|
/** Returns the effective severity label, using the override if provided. */
|
|
122
122
|
private get _effectiveSeverityLabel();
|
|
123
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* Returns true when the variant requires assertive announcement.
|
|
125
|
+
*
|
|
126
|
+
* (group-6) Harmonized with `hx-alert` and `hx-toast`: only `error` is
|
|
127
|
+
* assertive. Previous behavior also escalated `warning` to assertive on
|
|
128
|
+
* `hx-banner`, which diverged from the rest of the live-region surface.
|
|
129
|
+
* Warnings are non-urgent and use a polite live region (role="status").
|
|
130
|
+
* Critical/error messages remain assertive (role="alert").
|
|
131
|
+
*/
|
|
124
132
|
/** @internal */
|
|
125
133
|
private get _isAssertive();
|
|
126
134
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-banner.d.ts","sourceRoot":"","sources":["../../../src/components/hx-banner/hx-banner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,4CAA4C,CAAC;AAIpD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAInD,mEAAmE;AACnE,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAErE,2DAA2D;AAC3D,MAA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IAAI;cAkBf,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAqBzE,gBAAgB;IAChB,OAAO,CAAC,eAAe;IAQvB,gBAAgB;IAChB,OAAO,CAAC,kBAAkB;IAQ1B,gBAAgB;IAChB,OAAO,CAAC,kBAAkB;IAQ1B,gBAAgB;IAChB,OAAO,CAAC,gBAAgB;IAQxB,gBAAgB;IAChB,OAAO,CAAC,kBAAkB;IAc1B,gBAAgB;IAChB,OAAO,CAAC,gBAAgB;IAUxB;;OAEG;IACH,OAAO,IAAI,IAAI;IAMf,gBAAgB;IAChB,OAAO,CAAC,cAAc;IAkBb,MAAM;CAkDhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,WAAW,CAAC;KAC1B;CACF;AAED,YAAY,EAAE,WAAW,IAAI,QAAQ,EAAE,CAAC"}
|
|
@@ -153,7 +153,17 @@ export declare class HelixButton extends HelixButton_base {
|
|
|
153
153
|
accessibleLabel: string;
|
|
154
154
|
/**
|
|
155
155
|
* Returns the effective label for the button, checking accessible-label first,
|
|
156
|
-
* then the aria-label attribute
|
|
156
|
+
* then the consumer-set aria-label attribute (read via data-aria-label which
|
|
157
|
+
* mixinDelegatesAria writes when consumers set the host's `aria-label`),
|
|
158
|
+
* then the still-pending `aria-label` attribute (in case the mixin has not
|
|
159
|
+
* yet processed it), falling back to empty string.
|
|
160
|
+
*
|
|
161
|
+
* HX-015 migration: never read `this.ariaLabel` (the native HTMLElement IDL
|
|
162
|
+
* property). The mixin overrides `ariaLabel` to read `data-aria-label` in
|
|
163
|
+
* modern browsers, but the IDL fallback path breaks in fallback browsers and
|
|
164
|
+
* confuses consumers who follow the v3 upgrade guide. Read the attribute
|
|
165
|
+
* storage directly so the source-of-truth is unambiguous.
|
|
166
|
+
*
|
|
157
167
|
* @internal
|
|
158
168
|
*/
|
|
159
169
|
private get _effectiveLabel();
|
|
@@ -1 +1 @@
|
|
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AAe,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAM3D,gBAAgB;IAChB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAO5B;IAGX,OAAO,CAAC,qBAAqB,CAAS;IAE7B,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAe3D,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAgB/D,gBAAgB;IAChB,OAAO,CAAC,wBAAwB;IAoBhC;;;OAGG;IACH,OAAO,CAAC,YAAY;IAgCpB;;;OAGG;IACH,OAAO,CAAC,cAAc;IA6BtB;;;OAGG;IACH,OAAO,CAAC,YAAY;IAiBX,MAAM;CAoEhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,WAAW,CAAC;KAC1B;IACD,UAAU,mBAAmB;QAC3B,UAAU,EAAE,WAAW,CAAC;YAAE,aAAa,EAAE,UAAU,CAAA;SAAE,CAAC,CAAC;KACxD;CACF"}
|
|
@@ -47,6 +47,19 @@ export declare class HelixButtonGroup extends HelixElement {
|
|
|
47
47
|
* @attr label
|
|
48
48
|
*/
|
|
49
49
|
label: string;
|
|
50
|
+
/**
|
|
51
|
+
* Tracks whether the consumer set `aria-label` directly as an HTML attribute
|
|
52
|
+
* BEFORE the `label` property fired. Used to avoid clobbering consumer-set
|
|
53
|
+
* aria-label when `label` is empty.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
private _consumerAriaLabel;
|
|
57
|
+
/**
|
|
58
|
+
* Tracks whether the no-label devWarn has already fired for this instance,
|
|
59
|
+
* so disconnect/reconnect cycles do not spam the console.
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
private _emptyLabelWarnEmitted;
|
|
50
63
|
updated(changedProperties: PropertyValues<this>): void;
|
|
51
64
|
connectedCallback(): void;
|
|
52
65
|
render(): import('lit').TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-button-group.d.ts","sourceRoot":"","sources":["../../../src/components/hx-button-group/hx-button-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,4CAA4C,CAAC;AAGpD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKnD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBACa,gBAAiB,SAAQ,YAAY;IAChD,OAAgB,MAAM,4BAAqD;IAE3E;;;OAGG;IACH,IACI,WAAW,IAAI,YAAY,GAAG,UAAU,CAE3C;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,MAAM,EAM5B;IACD;;;OAGG;IACH,OAAO,CAAC,YAAY,CAA2C;IAE/D;;;;OAIG;IAEH,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAEhC;;;;;;OAMG;IAEH,KAAK,EAAE,MAAM,CAAM;
|
|
1
|
+
{"version":3,"file":"hx-button-group.d.ts","sourceRoot":"","sources":["../../../src/components/hx-button-group/hx-button-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,4CAA4C,CAAC;AAGpD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKnD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBACa,gBAAiB,SAAQ,YAAY;IAChD,OAAgB,MAAM,4BAAqD;IAE3E;;;OAGG;IACH,IACI,WAAW,IAAI,YAAY,GAAG,UAAU,CAE3C;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,MAAM,EAM5B;IACD;;;OAGG;IACH,OAAO,CAAC,YAAY,CAA2C;IAE/D;;;;OAIG;IAEH,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAEhC;;;;;;OAMG;IAEH,KAAK,EAAE,MAAM,CAAM;IAInB;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB,CAAuB;IAEjD;;;;OAIG;IACH,OAAO,CAAC,sBAAsB,CAAS;IAE9B,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAsBtD,iBAAiB,IAAI,IAAI;IA+BzB,MAAM;CAchB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,gBAAgB,CAAC;KACrC;CACF"}
|
|
@@ -151,6 +151,28 @@ export declare class HelixCheckbox extends HelixCheckbox_base {
|
|
|
151
151
|
private _inputEl;
|
|
152
152
|
/** @internal */
|
|
153
153
|
private _hasErrorSlot;
|
|
154
|
+
/** @internal */
|
|
155
|
+
private _hasHelpTextSlot;
|
|
156
|
+
/** @internal */
|
|
157
|
+
private _hasLabelSlot;
|
|
158
|
+
/**
|
|
159
|
+
* Set by `hx-checkbox-group` to mark this child as group-managed. While
|
|
160
|
+
* truthy, `_updateFormValue()` short-circuits to `setFormValue(null)`
|
|
161
|
+
* regardless of `name`, so the child does NOT participate in form submission
|
|
162
|
+
* — only the group does. This is durable against post-attach mutations to
|
|
163
|
+
* `cb.name` by consumers/frameworks (which would otherwise re-arm
|
|
164
|
+
* `_updateFormValue()` via the `name` setter and cause double-submission).
|
|
165
|
+
* Codex round-3 finding #1.
|
|
166
|
+
*
|
|
167
|
+
* Public via accessor for the group's exclusive use; the underscore prefix
|
|
168
|
+
* marks it as group-internal (not consumer API). The group sets it during
|
|
169
|
+
* `slotchange` and clears it (via the same setter) when a child is removed.
|
|
170
|
+
* @internal
|
|
171
|
+
*/
|
|
172
|
+
set _groupedSuppress(value: boolean);
|
|
173
|
+
get _groupedSuppress(): boolean;
|
|
174
|
+
/** @internal */
|
|
175
|
+
private __groupedSuppress;
|
|
154
176
|
/**
|
|
155
177
|
* Deferred copy of this.error used inside the live region. Injected after
|
|
156
178
|
* the region is visible (via requestAnimationFrame) so screen readers
|
|
@@ -161,8 +183,38 @@ export declare class HelixCheckbox extends HelixCheckbox_base {
|
|
|
161
183
|
private _announcedError;
|
|
162
184
|
/** @internal */
|
|
163
185
|
private _hasWarnedLabelConflict;
|
|
186
|
+
/**
|
|
187
|
+
* Handle for the shared IDREF observer. Installed in `connectedCallback()`
|
|
188
|
+
* so late-mutated `aria-labelledby`/`aria-describedby` and late-inserted
|
|
189
|
+
* IDREF targets are picked up. See `installAriaIdrefMirror()`.
|
|
190
|
+
* @internal
|
|
191
|
+
*/
|
|
192
|
+
private _ariaMirror;
|
|
164
193
|
/** @internal */
|
|
165
194
|
private _handleErrorSlotChange;
|
|
195
|
+
/** @internal */
|
|
196
|
+
private _handleHelpTextSlotChange;
|
|
197
|
+
/** @internal */
|
|
198
|
+
private _handleLabelSlotChange;
|
|
199
|
+
connectedCallback(): void;
|
|
200
|
+
disconnectedCallback(): void;
|
|
201
|
+
/**
|
|
202
|
+
* Host-level keydown handler. Space toggles per ARIA APG checkbox pattern
|
|
203
|
+
* — but only on the modern path where the host is the announced focus
|
|
204
|
+
* surface. On the no-IDL-ref fallback (round-2 finding #2), the inner
|
|
205
|
+
* `<input>` owns focus + native Space activation, so the host stays out
|
|
206
|
+
* of the activation pipeline to avoid double-toggle.
|
|
207
|
+
* @internal
|
|
208
|
+
*/
|
|
209
|
+
private _handleHostKeyDown;
|
|
210
|
+
/**
|
|
211
|
+
* Host-level click handler. Routes clicks on the host (e.g. via assistive
|
|
212
|
+
* tech activation) to the change handler — only on the modern path. On the
|
|
213
|
+
* fallback path the inner input is the announced surface and natively
|
|
214
|
+
* receives clicks/AT activation.
|
|
215
|
+
* @internal
|
|
216
|
+
*/
|
|
217
|
+
private _handleHostClick;
|
|
166
218
|
updated(changedProperties: PropertyValues<this>): void;
|
|
167
219
|
/** Returns the associated form element, if any. */
|
|
168
220
|
get form(): HTMLFormElement | null;
|
|
@@ -175,12 +227,112 @@ export declare class HelixCheckbox extends HelixCheckbox_base {
|
|
|
175
227
|
protected _onFormReset(): void;
|
|
176
228
|
protected _onFormStateRestore(state: File | string | FormData | null, _mode: 'restore' | 'autocomplete'): void;
|
|
177
229
|
protected _onFormDisabled(disabled: boolean): void;
|
|
230
|
+
/**
|
|
231
|
+
* Writes the checkbox value to ElementInternals' form value. Suppressed when
|
|
232
|
+
* the checkbox is grouped — `hx-checkbox-group` flips `_groupedSuppress` on
|
|
233
|
+
* children so the group is the sole form participant.
|
|
234
|
+
*
|
|
235
|
+
* Codex round-3 finding #1: round-2 used `cb.name = ''` as the suppression
|
|
236
|
+
* signal, but a consumer (or framework binding) that re-set `cb.name = 'foo'`
|
|
237
|
+
* after attach regained form participation through the `name` setter. The
|
|
238
|
+
* `_groupedSuppress` flag is a durable, name-independent kill switch.
|
|
239
|
+
* Stand-alone checkboxes (no parent group) are unaffected.
|
|
240
|
+
* @internal
|
|
241
|
+
*/
|
|
242
|
+
private _updateFormValue;
|
|
178
243
|
/** @internal */
|
|
179
244
|
private _handleChange;
|
|
245
|
+
/**
|
|
246
|
+
* Handles native `change` events from the inner `<input type=checkbox>` on
|
|
247
|
+
* the no-IDL-ref fallback path. On that path the inner input is the
|
|
248
|
+
* announced surface (no `aria-hidden`, `tabindex=0`) and AT activates it
|
|
249
|
+
* directly — pointer/keyboard activation flips `input.checked` natively.
|
|
250
|
+
* We mirror the input's state onto the host, dispatch `hx-change`, and
|
|
251
|
+
* update form participation.
|
|
252
|
+
*
|
|
253
|
+
* Codex round-3 finding #2: round-2 left the inner input click suppressed
|
|
254
|
+
* on both paths, so on no-IDL-ref browsers AT activation could not toggle
|
|
255
|
+
* the control. The fix is to NOT suppress click on the fallback path and
|
|
256
|
+
* to honor the resulting `change` event here.
|
|
257
|
+
* @internal
|
|
258
|
+
*/
|
|
259
|
+
private _handleInternalChange;
|
|
180
260
|
/** @internal */
|
|
181
261
|
private _handleKeyDown;
|
|
182
|
-
/**
|
|
262
|
+
/**
|
|
263
|
+
* Stable inner-input click suppressor for the modern (announced-host) path.
|
|
264
|
+
* Hoisted to a class field so Lit sees a stable listener identity across
|
|
265
|
+
* renders; previously inline arrows were re-allocated each render and
|
|
266
|
+
* caused listener detach/re-attach churn (codex round-4 F3 — performance).
|
|
267
|
+
* @internal
|
|
268
|
+
*/
|
|
269
|
+
private _suppressInnerClick;
|
|
270
|
+
/**
|
|
271
|
+
* Stable inner-input change suppressor for the modern (announced-host) path.
|
|
272
|
+
* Mirrors the click suppressor above — stable identity across renders so
|
|
273
|
+
* Lit's event-listener cache keeps a single registration (codex round-4 F3).
|
|
274
|
+
* @internal
|
|
275
|
+
*/
|
|
276
|
+
private _suppressInnerChange;
|
|
277
|
+
/**
|
|
278
|
+
* Moves focus to the announced checkbox surface. Codex round-1 finding #1
|
|
279
|
+
* relocated the focus target from the inner `<input>` to the host on
|
|
280
|
+
* modern engines so AT only sees one announced widget. Round-7 finding #3
|
|
281
|
+
* extends that contract to the no-IDL-ref fallback: when the host is
|
|
282
|
+
* demoted (`tabindex=-1`, role/state cleared on `internals`) the inner
|
|
283
|
+
* `<input>` owns the announced semantics and tab order, so programmatic
|
|
284
|
+
* `focus()` must redirect there — otherwise scripted focus and error
|
|
285
|
+
* recovery land on the demoted host on unsupported engines.
|
|
286
|
+
*/
|
|
183
287
|
focus(options?: FocusOptions): void;
|
|
288
|
+
/**
|
|
289
|
+
* Mirrors checkbox semantics onto the host via ElementInternals so that
|
|
290
|
+
* consumer-supplied `aria-label`, `aria-labelledby`, and `aria-describedby`
|
|
291
|
+
* on `<hx-checkbox>` reach the announced control. Without this, those
|
|
292
|
+
* attributes — intercepted by `mixinDelegatesAria` and stored on the host —
|
|
293
|
+
* would not propagate through to the inner shadow `<input>`.
|
|
294
|
+
*
|
|
295
|
+
* Codex finding (aria-delegation, severity high): the announced semantic
|
|
296
|
+
* node was the inner `<input>` and the host's labelled-by tokens could not
|
|
297
|
+
* cross the shadow boundary.
|
|
298
|
+
* @internal
|
|
299
|
+
*/
|
|
300
|
+
private _syncHostAriaSemantics;
|
|
301
|
+
/**
|
|
302
|
+
* Fallback `aria-labelledby` token list applied to the inner input on
|
|
303
|
+
* browsers that lack IDL element references. Tracked as a reactive state
|
|
304
|
+
* so the value flows through the next `render()` call.
|
|
305
|
+
* @internal
|
|
306
|
+
*/
|
|
307
|
+
private _fallbackAriaLabelledBy;
|
|
308
|
+
/**
|
|
309
|
+
* Fallback `aria-describedby` token list applied to the inner input on
|
|
310
|
+
* browsers that lack IDL element references.
|
|
311
|
+
* @internal
|
|
312
|
+
*/
|
|
313
|
+
private _fallbackAriaDescribedBy;
|
|
314
|
+
/**
|
|
315
|
+
* Whether the platform supports IDL element references on `ElementInternals`.
|
|
316
|
+
* Drives the render-time branch between the modern path (host is the
|
|
317
|
+
* announced surface, inner input is `aria-hidden + tabindex=-1`) and the
|
|
318
|
+
* fallback path (inner input is the announced surface, host is demoted).
|
|
319
|
+
*
|
|
320
|
+
* Round-2 finding #2: the previous fallback mirrored `aria-labelledby` /
|
|
321
|
+
* `aria-describedby` onto an `aria-hidden` inner input, leaving older
|
|
322
|
+
* browsers with no accessible name. The fallback now keeps the inner input
|
|
323
|
+
* in the a11y tree so AT can name and activate it natively.
|
|
324
|
+
* @internal
|
|
325
|
+
*/
|
|
326
|
+
private _supportsIdrefRefs;
|
|
327
|
+
/**
|
|
328
|
+
* Tracks whether the host's `tabindex` is managed by the component itself
|
|
329
|
+
* (vs. set explicitly by a consumer). Codex round-14 P2: a consumer-supplied
|
|
330
|
+
* `tabindex` (e.g. roving-tabindex toolbar pattern with `tabindex="-1"`)
|
|
331
|
+
* must survive disabled flips and re-renders. Only re-assert tabindex in
|
|
332
|
+
* `updated()` when the component originally claimed it.
|
|
333
|
+
* @internal
|
|
334
|
+
*/
|
|
335
|
+
private _internalTabindexManaged;
|
|
184
336
|
/** @internal */
|
|
185
337
|
private _id;
|
|
186
338
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/hx-checkbox/hx-check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E,OAAO,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACnF;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-checkbox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/hx-checkbox/hx-checkbox.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"hx-checkbox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/hx-checkbox/hx-checkbox.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,yBA4S/B,CAAC"}
|
|
@@ -38,7 +38,8 @@ declare const HelixCheckboxGroup_base: typeof HelixElement & (new (...args: any[
|
|
|
38
38
|
* {% endfor %}
|
|
39
39
|
* </hx-checkbox-group>
|
|
40
40
|
* ```
|
|
41
|
-
* The
|
|
41
|
+
* The group is the sole form participant — children are suppressed via
|
|
42
|
+
* `_groupedSuppress`. Setting `name` on a child has no effect inside a group.
|
|
42
43
|
* @cssprop [--hx-opacity-disabled] - Opacity.
|
|
43
44
|
* @cssprop [--hx-space-2] - Spacing token.
|
|
44
45
|
* @cssprop [--hx-checkbox-group-font-family=var(--hx-font-family-sans)] - CSS custom property.
|
|
@@ -100,6 +101,16 @@ export declare class HelixCheckboxGroup extends HelixCheckboxGroup_base {
|
|
|
100
101
|
private _hasErrorSlot;
|
|
101
102
|
/** Whether the named help-text slot contains projected content. @internal */
|
|
102
103
|
private _hasHelpSlot;
|
|
104
|
+
/** Whether the named label slot contains projected content. @internal */
|
|
105
|
+
private _hasLabelSlot;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the platform supports IDL element references on `ElementInternals`.
|
|
108
|
+
* Drives the render-time branch between modern (host-canonical via
|
|
109
|
+
* internals) and fallback (inner fieldset is the announced surface).
|
|
110
|
+
* Codex round-17 P1.
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
private _supportsIdrefRefs;
|
|
103
114
|
/** @internal */
|
|
104
115
|
private _groupId;
|
|
105
116
|
/** @internal */
|
|
@@ -107,12 +118,106 @@ export declare class HelixCheckboxGroup extends HelixCheckboxGroup_base {
|
|
|
107
118
|
/** @internal */
|
|
108
119
|
private _errorId;
|
|
109
120
|
/** @internal */
|
|
121
|
+
private _labelId;
|
|
122
|
+
/** @internal */
|
|
110
123
|
private _handleErrorSlotChange;
|
|
111
124
|
/** @internal */
|
|
112
125
|
private _handleHelpSlotChange;
|
|
126
|
+
/** @internal */
|
|
127
|
+
private _handleLabelSlotChange;
|
|
128
|
+
/**
|
|
129
|
+
* Watches assigned `<slot name="label">` nodes for in-place text mutations
|
|
130
|
+
* so the no-IDL-ref fallback `internals.ariaLabel` stays in sync when a
|
|
131
|
+
* framework rewrites `textContent` of an already-assigned node without
|
|
132
|
+
* replacing it. `slotchange` does NOT fire for those mutations, so a
|
|
133
|
+
* separate observer is required. Codex round-21 P3 (mirrors the
|
|
134
|
+
* `hx-toggle-button` pattern from round-13 P2).
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
private _labelSlotTextObserver;
|
|
138
|
+
/**
|
|
139
|
+
* (Re-)installs the mutation observer over the current set of assigned
|
|
140
|
+
* label-slot nodes. Disconnects any prior observer first so detached nodes
|
|
141
|
+
* stop firing into a torn-down host. Codex round-21 P3.
|
|
142
|
+
* @internal
|
|
143
|
+
*/
|
|
144
|
+
private _installLabelSlotTextObserver;
|
|
145
|
+
/**
|
|
146
|
+
* Watches assigned `<slot name="help-text">` nodes for in-place text
|
|
147
|
+
* mutations so the no-IDL-ref fallback `internals.ariaDescription` stays in
|
|
148
|
+
* sync when a framework rewrites `textContent` of an already-assigned node
|
|
149
|
+
* without replacing it. `slotchange` does NOT fire for those mutations, so
|
|
150
|
+
* a separate observer is required. Codex round-23 P2 (Finding B) — mirrors
|
|
151
|
+
* the round-21 P3 label-slot observer pattern.
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
154
|
+
private _helpSlotTextObserver;
|
|
155
|
+
/**
|
|
156
|
+
* Watches assigned `<slot name="error">` nodes for in-place text mutations
|
|
157
|
+
* so the no-IDL-ref fallback `internals.ariaDescription` stays in sync when
|
|
158
|
+
* a framework rewrites `textContent` of an already-assigned node without
|
|
159
|
+
* replacing it. Codex round-23 P2 (Finding B).
|
|
160
|
+
* @internal
|
|
161
|
+
*/
|
|
162
|
+
private _errorSlotTextObserver;
|
|
163
|
+
/**
|
|
164
|
+
* (Re-)installs the mutation observer over the current set of assigned
|
|
165
|
+
* help-text-slot nodes. Codex round-23 P2 (Finding B).
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
private _installHelpSlotTextObserver;
|
|
169
|
+
/**
|
|
170
|
+
* (Re-)installs the mutation observer over the current set of assigned
|
|
171
|
+
* error-slot nodes. Codex round-23 P2 (Finding B).
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
private _installErrorSlotTextObserver;
|
|
175
|
+
/**
|
|
176
|
+
* Handle for the shared IDREF observer. See `installAriaIdrefMirror()`.
|
|
177
|
+
* @internal
|
|
178
|
+
*/
|
|
179
|
+
private _ariaMirror;
|
|
180
|
+
/**
|
|
181
|
+
* Deferred copy of `error` driven through reactive state so the persistent
|
|
182
|
+
* live region can re-announce on transitions without direct DOM mutation.
|
|
183
|
+
* Codex round-1 finding #10.
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
private _announcedError;
|
|
187
|
+
/**
|
|
188
|
+
* Last value of `aria-labelledby` we wrote to the host. Used to distinguish
|
|
189
|
+
* external (consumer) attribute mutations from our own internal augmentation
|
|
190
|
+
* writes when refreshing the host-attribute fallback. Codex round-10 P2:
|
|
191
|
+
* without this guard, an internal mutation observer fire would re-read the
|
|
192
|
+
* already-augmented host attribute as if it were consumer-supplied, causing
|
|
193
|
+
* legend/help/error ids to leak forward as "consumer tokens" forever.
|
|
194
|
+
* @internal
|
|
195
|
+
*/
|
|
196
|
+
private _lastWrittenLabelledBy;
|
|
197
|
+
/** @internal — see `_lastWrittenLabelledBy`. */
|
|
198
|
+
private _lastWrittenDescribedBy;
|
|
199
|
+
/**
|
|
200
|
+
* Most recently observed *consumer-supplied* `aria-labelledby` baseline (the
|
|
201
|
+
* set of tokens the consumer themselves wrote on the host). Refreshed only
|
|
202
|
+
* when the host attribute changes via an external write — internal writes
|
|
203
|
+
* leave the baseline untouched.
|
|
204
|
+
* @internal
|
|
205
|
+
*/
|
|
206
|
+
private _consumerLabelledBy;
|
|
207
|
+
/** @internal — see `_consumerLabelledBy`. */
|
|
208
|
+
private _consumerDescribedBy;
|
|
113
209
|
connectedCallback(): void;
|
|
114
210
|
disconnectedCallback(): void;
|
|
115
211
|
updated(changedProperties: PropertyValues<this>): void;
|
|
212
|
+
/**
|
|
213
|
+
* Mirrors group semantics onto the host via ElementInternals so that
|
|
214
|
+
* consumer-supplied `aria-label`, `aria-labelledby`, and `aria-describedby`
|
|
215
|
+
* on `<hx-checkbox-group>` reach the announced control. Without host-level
|
|
216
|
+
* semantics, the announced node is the shadow `<fieldset>`, which is
|
|
217
|
+
* unreachable from light-DOM IDREFs.
|
|
218
|
+
* @internal
|
|
219
|
+
*/
|
|
220
|
+
private _syncHostAriaSemantics;
|
|
116
221
|
firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
117
222
|
/** @internal */
|
|
118
223
|
private _getCheckboxes;
|
|
@@ -120,8 +225,52 @@ export declare class HelixCheckboxGroup extends HelixCheckboxGroup_base {
|
|
|
120
225
|
private _getCheckedValues;
|
|
121
226
|
/** @internal */
|
|
122
227
|
private _syncCheckboxes;
|
|
123
|
-
/**
|
|
228
|
+
/**
|
|
229
|
+
* Tracks the set of checkboxes most recently flagged with
|
|
230
|
+
* `_groupedSuppress = true` so a child removed from the group can have its
|
|
231
|
+
* suppression cleared and regain stand-alone form participation. Codex
|
|
232
|
+
* round-3 finding #1.
|
|
233
|
+
* @internal
|
|
234
|
+
*/
|
|
235
|
+
private _suppressedChildren;
|
|
236
|
+
/**
|
|
237
|
+
* Centralizes form participation on the group: when an `hx-checkbox` is
|
|
238
|
+
* grouped, the group is the sole form participant. Without this, both the
|
|
239
|
+
* group AND each child would call `setFormValue` for the same name, causing
|
|
240
|
+
* every checked value to submit twice.
|
|
241
|
+
*
|
|
242
|
+
* Codex round-2 finding #1 used `cb.name = ''` as the suppression signal.
|
|
243
|
+
* Codex round-3 finding #1 hardened that: a consumer (or framework binding)
|
|
244
|
+
* that re-set `cb.name = 'foo'` after attach regained form participation
|
|
245
|
+
* because the child's `name` setter re-armed `_updateFormValue()` while no
|
|
246
|
+
* `slotchange` re-fired to re-null the name.
|
|
247
|
+
*
|
|
248
|
+
* The fix is a durable, name-independent kill switch — `_groupedSuppress` —
|
|
249
|
+
* on each child. While the flag is set the child's `_updateFormValue()`
|
|
250
|
+
* short-circuits to `setFormValue(null)` regardless of its `name` value.
|
|
251
|
+
* Children removed from the group have the flag cleared so they regain
|
|
252
|
+
* stand-alone form participation.
|
|
253
|
+
* @internal
|
|
254
|
+
*/
|
|
124
255
|
private _syncCheckboxNames;
|
|
256
|
+
/**
|
|
257
|
+
* Clears `_groupedSuppress` on any checkbox that was previously in this
|
|
258
|
+
* group but has since been removed (re-parented or detached). Called from
|
|
259
|
+
* `_handleSlotChange()` after `_syncCheckboxNames()` re-applies the flag
|
|
260
|
+
* to current children.
|
|
261
|
+
*
|
|
262
|
+
* `previousChildren` is a snapshot captured before slot mutation; any child
|
|
263
|
+
* in that set but not in the current set has left the group and must have
|
|
264
|
+
* its suppression cleared so stand-alone use restores form participation.
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
267
|
+
private _clearSuppressionForRemoved;
|
|
268
|
+
/**
|
|
269
|
+
* Snapshot of children captured before each `slotchange` so removed children
|
|
270
|
+
* can be detected (WeakSet is non-enumerable).
|
|
271
|
+
* @internal
|
|
272
|
+
*/
|
|
273
|
+
private _previousChildren;
|
|
125
274
|
/** @internal */
|
|
126
275
|
private _handleCheckboxChange;
|
|
127
276
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hx-checkbox-group.d.ts","sourceRoot":"","sources":["../../../src/components/hx-checkbox-group/hx-checkbox-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,4CAA4C,CAAC;AAGpD,OAAO,EAAE,YAAY,EAAmB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"hx-checkbox-group.d.ts","sourceRoot":"","sources":["../../../src/components/hx-checkbox-group/hx-checkbox-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,4CAA4C,CAAC;AAGpD,OAAO,EAAE,YAAY,EAAmB,MAAM,qBAAqB,CAAC;AAuCpE,sEAAsE;AACtE,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,qBACa,kBAAmB,SAAQ,uBAAuB;IAC7D,OAAgB,MAAM,4BAAiD;IAIvE,oFAAoF;IACpF,OAAgB,cAAc,UAAQ;IAItC;;;OAGG;IAEH,IAAI,SAAM;IAEV;;;OAGG;IAEH,KAAK,SAAM;IAEX;;;OAGG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,KAAK,SAAM;IAEX;;;OAGG;IAEH,QAAQ,SAAM;IAEd;;;OAGG;IACH,IACI,WAAW,IAAI,UAAU,GAAG,YAAY,CAE3C;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,MAAM,EAM5B;IACD,gBAAgB;IAChB,OAAO,CAAC,YAAY,CAAyC;IAE7D,yEAAyE;IAChE,OAAO,CAAC,aAAa,CAAS;IACvC,6EAA6E;IACpE,OAAO,CAAC,YAAY,C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