@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
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { query as
|
|
3
|
-
import { classMap as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
import { css as O, html as m, nothing as C } from "lit";
|
|
2
|
+
import { query as k, state as f, property as u, customElement as D } from "lit/decorators.js";
|
|
3
|
+
import { classMap as B } from "lit/directives/class-map.js";
|
|
4
|
+
import { l as F, u as H } from "./body-scroll-lock-VBa5TFP-.js";
|
|
5
|
+
import { a as R } from "./forced-colors-CTEDFRGa.js";
|
|
6
|
+
import { f as x } from "./aria-flatten-DY6v2vah.js";
|
|
7
|
+
import { s as z, i as I, r as L } from "./aria-idref-CxvyzfQS.js";
|
|
8
|
+
import { H as $ } from "./helix-element-BNEYeiys.js";
|
|
9
|
+
import { c as M } from "./id-counter-DuX8vsui.js";
|
|
10
|
+
const N = O`
|
|
10
11
|
/* P2-03: Explicit [hidden] rule to survive CSS resets that may override the UA stylesheet. */
|
|
11
12
|
[hidden] {
|
|
12
13
|
display: none !important;
|
|
@@ -247,6 +248,23 @@ const k = b`
|
|
|
247
248
|
margin: 0;
|
|
248
249
|
}
|
|
249
250
|
|
|
251
|
+
/* ─── Synthesized consumer-description span ─── */
|
|
252
|
+
/* Visually hidden mirror of consumer-resolved aria-describedby text used by */
|
|
253
|
+
/* the host-canonical ARIA pipeline. Always present in the shadow tree so AT */
|
|
254
|
+
/* can resolve the same-root id even when the description is currently empty. */
|
|
255
|
+
|
|
256
|
+
.drawer-sr-only {
|
|
257
|
+
position: absolute;
|
|
258
|
+
width: 1px;
|
|
259
|
+
height: 1px;
|
|
260
|
+
padding: 0;
|
|
261
|
+
margin: -1px;
|
|
262
|
+
overflow: hidden;
|
|
263
|
+
clip: rect(0, 0, 0, 0);
|
|
264
|
+
white-space: nowrap;
|
|
265
|
+
border: 0;
|
|
266
|
+
}
|
|
267
|
+
|
|
250
268
|
/* ─── Body ─── */
|
|
251
269
|
|
|
252
270
|
.drawer-body {
|
|
@@ -290,17 +308,17 @@ const k = b`
|
|
|
290
308
|
}
|
|
291
309
|
}
|
|
292
310
|
`;
|
|
293
|
-
var
|
|
294
|
-
for (var
|
|
295
|
-
(
|
|
296
|
-
return
|
|
311
|
+
var P = Object.defineProperty, V = Object.getOwnPropertyDescriptor, d = (e, t, r, s) => {
|
|
312
|
+
for (var i = s > 1 ? void 0 : s ? V(t, r) : t, a = e.length - 1, o; a >= 0; a--)
|
|
313
|
+
(o = e[a]) && (i = (s ? o(t, r, i) : o(i)) || i);
|
|
314
|
+
return s && i && P(t, r, i), i;
|
|
297
315
|
};
|
|
298
|
-
const
|
|
316
|
+
const j = M("hx-drawer"), U = {
|
|
299
317
|
sm: "20rem",
|
|
300
318
|
md: "30rem",
|
|
301
319
|
lg: "40rem",
|
|
302
320
|
full: "100%"
|
|
303
|
-
},
|
|
321
|
+
}, g = [
|
|
304
322
|
"a[href]",
|
|
305
323
|
"area[href]",
|
|
306
324
|
"button:not([disabled])",
|
|
@@ -310,9 +328,9 @@ const T = S("hx-drawer"), F = {
|
|
|
310
328
|
'[tabindex]:not([tabindex="-1"])',
|
|
311
329
|
"details > summary"
|
|
312
330
|
].join(",");
|
|
313
|
-
let
|
|
331
|
+
let l = class extends $ {
|
|
314
332
|
constructor() {
|
|
315
|
-
super(...arguments), this._isOpen = !1, this._hasHeaderActionsSlot = !1, this._hasFooterSlot = !1, this._hasLabelSlot = !1, this._cachedFocusableElements = [], this._triggerElement = null, this._animationTimeout = null, this._hasScrollLock = !1, this._siblingAriaHiddenElements = [], this._titleId = `${
|
|
333
|
+
super(...arguments), this._isOpen = !1, this._hasHeaderActionsSlot = !1, this._hasFooterSlot = !1, this._hasLabelSlot = !1, this._cachedFocusableElements = [], this._triggerElement = null, this._animationTimeout = null, this._hasScrollLock = !1, this._siblingAriaHiddenElements = [], this._id = j(), this._titleId = `${this._id}-title`, this._consumerDescId = `${this._id}-consumer-desc`, this._supportsIdrefRefs = !0, this._slottedLabelEls = [], this._labelSlotText = "", this._consumerLabelledBy = null, this._consumerDescribedBy = null, this._ariaMirror = null, this._labelSlotTextObserver = null, this._externalRefsObserver = null, this._hostDescribedByObserver = null, this.open = !1, this.placement = "end", this.size = "md", this.contained = !1, this.noHeader = !1, this.noFooter = !1, this.label = "", this.labelClose = "Close drawer", this._handleKeyDown = (e) => {
|
|
316
334
|
if (this._isOpen) {
|
|
317
335
|
if (e.key === "Escape") {
|
|
318
336
|
e.preventDefault(), this.open = !1;
|
|
@@ -330,12 +348,32 @@ let o = class extends E {
|
|
|
330
348
|
super.connectedCallback();
|
|
331
349
|
const e = this.getAttribute("size");
|
|
332
350
|
e !== null && !this.hasAttribute("hx-size") && (this.size = e);
|
|
351
|
+
const t = this.constructor;
|
|
352
|
+
this._supportsIdrefRefs = t.__testSupportsIdrefRefsOverride !== null ? t.__testSupportsIdrefRefsOverride : z(this._internals), this._internals.role = "dialog", this._internals.ariaModal = "true", this._hostDescribedByObserver = new MutationObserver((r) => {
|
|
353
|
+
let s = !1;
|
|
354
|
+
for (const i of r) {
|
|
355
|
+
if (i.attributeName !== "aria-describedby") continue;
|
|
356
|
+
const a = i.oldValue, o = this.getAttribute("aria-describedby");
|
|
357
|
+
a !== null && o === null && (this._consumerDescribedBy = null, s = !0);
|
|
358
|
+
}
|
|
359
|
+
s && this._syncHostAriaSemantics();
|
|
360
|
+
}), this._hostDescribedByObserver.observe(this, {
|
|
361
|
+
attributes: !0,
|
|
362
|
+
attributeFilter: ["aria-describedby"],
|
|
363
|
+
attributeOldValue: !0
|
|
364
|
+
}), this._syncHostAriaSemantics(), this._ariaMirror = I(this, () => {
|
|
365
|
+
this._syncHostAriaSemantics();
|
|
366
|
+
});
|
|
333
367
|
}
|
|
334
368
|
disconnectedCallback() {
|
|
335
|
-
|
|
369
|
+
var e, t, r, s;
|
|
370
|
+
super.disconnectedCallback(), this._removeListeners(), this._animationTimeout !== null && clearTimeout(this._animationTimeout), this._restoreBodyScroll(), (e = this._ariaMirror) == null || e.disconnect(), this._ariaMirror = null, (t = this._labelSlotTextObserver) == null || t.disconnect(), this._labelSlotTextObserver = null, (r = this._externalRefsObserver) == null || r.disconnect(), this._externalRefsObserver = null, (s = this._hostDescribedByObserver) == null || s.disconnect(), this._hostDescribedByObserver = null;
|
|
336
371
|
}
|
|
337
372
|
updated(e) {
|
|
338
|
-
super.updated(e), e.has("open") && (this.open ? this._openDrawer() : this._closeDrawer()), e.has("size") && this._applySizeVar();
|
|
373
|
+
super.updated(e), e.has("open") && (this.open ? this._openDrawer() : this._closeDrawer()), e.has("size") && this._applySizeVar(), this._syncHostAriaSemantics();
|
|
374
|
+
}
|
|
375
|
+
firstUpdated(e) {
|
|
376
|
+
super.firstUpdated(e);
|
|
339
377
|
}
|
|
340
378
|
// ─── Public Methods ───
|
|
341
379
|
/** Opens the drawer. */
|
|
@@ -349,17 +387,17 @@ let o = class extends E {
|
|
|
349
387
|
// ─── Private: Size CSS variable ───
|
|
350
388
|
/** @internal */
|
|
351
389
|
_applySizeVar() {
|
|
352
|
-
const e =
|
|
390
|
+
const e = U[this.size] ?? this.size;
|
|
353
391
|
this.style.setProperty("--_drawer-size", e);
|
|
354
392
|
}
|
|
355
393
|
// ─── Private: Open / Close ───
|
|
356
394
|
/** @internal */
|
|
357
395
|
_lockBodyScroll() {
|
|
358
|
-
this.contained || this._hasScrollLock || (
|
|
396
|
+
this.contained || this._hasScrollLock || (F(), this._hasScrollLock = !0);
|
|
359
397
|
}
|
|
360
398
|
/** @internal */
|
|
361
399
|
_restoreBodyScroll() {
|
|
362
|
-
this._hasScrollLock && (
|
|
400
|
+
this._hasScrollLock && (H(), this._hasScrollLock = !1);
|
|
363
401
|
}
|
|
364
402
|
/** @internal */
|
|
365
403
|
_openDrawer() {
|
|
@@ -372,12 +410,12 @@ let o = class extends E {
|
|
|
372
410
|
new CustomEvent("hx-after-show", { bubbles: !0, composed: !0 })
|
|
373
411
|
);
|
|
374
412
|
else {
|
|
375
|
-
const
|
|
413
|
+
const s = () => {
|
|
376
414
|
this._animationTimeout !== null && (clearTimeout(this._animationTimeout), this._animationTimeout = null), this.dispatchEvent(
|
|
377
415
|
new CustomEvent("hx-after-show", { bubbles: !0, composed: !0 })
|
|
378
416
|
);
|
|
379
417
|
};
|
|
380
|
-
r.addEventListener("transitionend",
|
|
418
|
+
r.addEventListener("transitionend", s, { once: !0 }), this._animationTimeout = setTimeout(s, t + 50);
|
|
381
419
|
}
|
|
382
420
|
}).catch(console.error);
|
|
383
421
|
}
|
|
@@ -443,18 +481,18 @@ let o = class extends E {
|
|
|
443
481
|
}
|
|
444
482
|
/** @internal */
|
|
445
483
|
_getFocusableElements() {
|
|
446
|
-
var
|
|
484
|
+
var s, i;
|
|
447
485
|
const e = Array.from(
|
|
448
|
-
((
|
|
449
|
-
), t = ((
|
|
450
|
-
return t.forEach((
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
r.push(
|
|
486
|
+
((s = this.shadowRoot) == null ? void 0 : s.querySelectorAll(g)) ?? []
|
|
487
|
+
), t = ((i = this.shadowRoot) == null ? void 0 : i.querySelectorAll("slot")) ?? [], r = [];
|
|
488
|
+
return t.forEach((a) => {
|
|
489
|
+
a.assignedElements({ flatten: !0 }).forEach((o) => {
|
|
490
|
+
o instanceof HTMLElement && (o.matches(g) && r.push(o), o.querySelectorAll(g).forEach((b) => {
|
|
491
|
+
r.push(b);
|
|
454
492
|
}));
|
|
455
493
|
});
|
|
456
494
|
}), [...e, ...r].filter(
|
|
457
|
-
(
|
|
495
|
+
(a) => !a.hasAttribute("disabled") && a.getAttribute("tabindex") !== "-1"
|
|
458
496
|
);
|
|
459
497
|
}
|
|
460
498
|
/** @internal */
|
|
@@ -464,10 +502,10 @@ let o = class extends E {
|
|
|
464
502
|
e.preventDefault();
|
|
465
503
|
return;
|
|
466
504
|
}
|
|
467
|
-
const [r, ...
|
|
468
|
-
if (!r || !
|
|
469
|
-
const
|
|
470
|
-
e.shiftKey ?
|
|
505
|
+
const [r, ...s] = t, i = s.length > 0 ? s[s.length - 1] : r;
|
|
506
|
+
if (!r || !i) return;
|
|
507
|
+
const a = document.activeElement;
|
|
508
|
+
e.shiftKey ? a === r && (e.preventDefault(), i.focus()) : a === i && (e.preventDefault(), r.focus());
|
|
471
509
|
}
|
|
472
510
|
// ─── Slot change handlers ───
|
|
473
511
|
/** @internal */
|
|
@@ -482,13 +520,164 @@ let o = class extends E {
|
|
|
482
520
|
}
|
|
483
521
|
/** @internal */
|
|
484
522
|
_handleLabelSlotChange(e) {
|
|
485
|
-
|
|
486
|
-
|
|
523
|
+
if (!(e.target instanceof HTMLSlotElement)) return;
|
|
524
|
+
const t = this._readLabelSlotState(e.target);
|
|
525
|
+
this._hasLabelSlot = t.hasUsefulName, this._slottedLabelEls = t.elements, this._labelSlotText = t.text, this._installLabelSlotTextObserver(t.elements), this._syncHostAriaSemantics();
|
|
526
|
+
}
|
|
527
|
+
// ─── Host-canonical ARIA helpers ───
|
|
528
|
+
/**
|
|
529
|
+
* Reads the label slot's assigned nodes and computes the discriminated
|
|
530
|
+
* naming state. Aggregates ALL assigned elements (not just the first) so
|
|
531
|
+
* composed labels project the FULL visible label via
|
|
532
|
+
* `internals.ariaLabelledByElements`. Per AccName 1.2 §4.3.10,
|
|
533
|
+
* `aria-hidden="true"` / `[hidden]` elements contribute zero to the
|
|
534
|
+
* accessible name but stay in `elements` so AT walking IDL refs sees the
|
|
535
|
+
* full visible group. `hasUsefulName` is gated on the flattened text
|
|
536
|
+
* length: a slot containing only decorative wrappers does NOT name the
|
|
537
|
+
* dialog, and the host falls through to the next naming source.
|
|
538
|
+
* @internal
|
|
539
|
+
*/
|
|
540
|
+
_readLabelSlotState(e) {
|
|
541
|
+
const t = e.assignedNodes({ flatten: !0 }), r = [], s = [];
|
|
542
|
+
for (const a of t)
|
|
543
|
+
if (a.nodeType === Node.ELEMENT_NODE) {
|
|
544
|
+
const o = a;
|
|
545
|
+
if (r.push(o), o.getAttribute("aria-hidden") === "true") continue;
|
|
546
|
+
const b = x(o);
|
|
547
|
+
b && s.push(b);
|
|
548
|
+
} else if (a.nodeType === Node.TEXT_NODE) {
|
|
549
|
+
const o = (a.textContent ?? "").trim();
|
|
550
|
+
o && s.push(o);
|
|
551
|
+
}
|
|
552
|
+
const i = s.join(" ").replace(/\s+/g, " ").trim();
|
|
553
|
+
return {
|
|
554
|
+
hasUsefulName: i.length > 0,
|
|
555
|
+
elements: r,
|
|
556
|
+
text: i
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* (Re-)installs the mutation observer over the current set of slotted label
|
|
561
|
+
* elements. On any descendant text/visibility mutation we re-flatten and
|
|
562
|
+
* re-sync so the host's accessible name tracks the visible label.
|
|
563
|
+
* @internal
|
|
564
|
+
*/
|
|
565
|
+
_installLabelSlotTextObserver(e) {
|
|
566
|
+
var r;
|
|
567
|
+
if ((r = this._labelSlotTextObserver) == null || r.disconnect(), e.length === 0) {
|
|
568
|
+
this._labelSlotTextObserver = null;
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
const t = new MutationObserver(() => {
|
|
572
|
+
const s = [];
|
|
573
|
+
for (const a of e) {
|
|
574
|
+
if (a.getAttribute("aria-hidden") === "true") continue;
|
|
575
|
+
const o = x(a);
|
|
576
|
+
o && s.push(o);
|
|
577
|
+
}
|
|
578
|
+
const i = s.join(" ").replace(/\s+/g, " ").trim();
|
|
579
|
+
this._labelSlotText = i, this._hasLabelSlot = i.length > 0, this._syncHostAriaSemantics();
|
|
580
|
+
});
|
|
581
|
+
for (const s of e)
|
|
582
|
+
t.observe(s, {
|
|
583
|
+
characterData: !0,
|
|
584
|
+
childList: !0,
|
|
585
|
+
subtree: !0,
|
|
586
|
+
attributes: !0,
|
|
587
|
+
attributeFilter: ["aria-hidden", "hidden"]
|
|
588
|
+
});
|
|
589
|
+
this._labelSlotTextObserver = t;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* (Re-)installs a `MutationObserver` against the deduped union of
|
|
593
|
+
* consumer-resolved label/description elements. Watches `characterData`,
|
|
594
|
+
* `childList`, `subtree`, and `aria-hidden` / `hidden` attributes so any
|
|
595
|
+
* in-place mutation on the referenced light-DOM nodes triggers a fresh
|
|
596
|
+
* sync — keeping the modern-path IDL refs and the fallback-path text
|
|
597
|
+
* flatten aligned with the live consumer text.
|
|
598
|
+
* @internal
|
|
599
|
+
*/
|
|
600
|
+
_installExternalRefsObserver(e) {
|
|
601
|
+
if (this._externalRefsObserver && (this._externalRefsObserver.disconnect(), this._externalRefsObserver = null), e.length === 0) return;
|
|
602
|
+
const t = new Set(e), r = new MutationObserver(() => {
|
|
603
|
+
this._syncHostAriaSemantics();
|
|
604
|
+
});
|
|
605
|
+
for (const s of t)
|
|
606
|
+
r.observe(s, {
|
|
607
|
+
characterData: !0,
|
|
608
|
+
subtree: !0,
|
|
609
|
+
childList: !0,
|
|
610
|
+
attributes: !0,
|
|
611
|
+
attributeFilter: ["aria-hidden", "hidden"]
|
|
612
|
+
});
|
|
613
|
+
this._externalRefsObserver = r;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Resolves consumer-supplied label/description IDREFs on the host and
|
|
617
|
+
* projects the canonical dialog ARIA onto the **host** via
|
|
618
|
+
* `ElementInternals` (modern path) and onto the inner overlay via attribute
|
|
619
|
+
* writes (fallback path).
|
|
620
|
+
*
|
|
621
|
+
* Cross-shadow naming is belt-and-suspenders:
|
|
622
|
+
*
|
|
623
|
+
* 1. **Modern path** (`_supportsIdrefRefs === true`): consumer-resolved
|
|
624
|
+
* label/description elements are written onto
|
|
625
|
+
* `internals.ariaLabelledByElements` / `internals.ariaDescribedByElements`
|
|
626
|
+
* on the host. AT walking the host's accessibility tree finds them
|
|
627
|
+
* across the shadow boundary. `internals.ariaLabel` carries the
|
|
628
|
+
* flattened text fallback (only when no labelledby resolves) so AT
|
|
629
|
+
* that does not walk IDL refs still announces a name.
|
|
630
|
+
* 2. **Fallback path** (`_supportsIdrefRefs === false`): the resolved
|
|
631
|
+
* element text is flattened and written to `internals.ariaLabel` AND
|
|
632
|
+
* mirrored to the inner overlay's `aria-label`.
|
|
633
|
+
*
|
|
634
|
+
* The synthesized `<span id="${_consumerDescId}">` mirrors the resolved
|
|
635
|
+
* description text on every sync. The inner overlay's `aria-describedby`
|
|
636
|
+
* chains the in-shadow span. `aria-description` is intentionally NEVER
|
|
637
|
+
* written — W3C AccName ignores it whenever `aria-describedby` is set.
|
|
638
|
+
*
|
|
639
|
+
* Naming precedence (W3C AccName 1.2 §4.3.1):
|
|
640
|
+
* 1. Consumer `aria-labelledby` (resolved IDREFs, text-flattened)
|
|
641
|
+
* 2. Consumer `aria-label`
|
|
642
|
+
* 3. Slotted `<slot name="label">` text
|
|
643
|
+
* 4. `label` property
|
|
644
|
+
* 5. Hard-coded `"Drawer"`
|
|
645
|
+
* @internal
|
|
646
|
+
*/
|
|
647
|
+
_syncHostAriaSemantics() {
|
|
648
|
+
var A;
|
|
649
|
+
const e = this._internals, t = this.getAttribute("aria-labelledby");
|
|
650
|
+
this._consumerLabelledBy = t;
|
|
651
|
+
const r = this.getAttribute("aria-describedby");
|
|
652
|
+
this._consumerDescribedBy = r;
|
|
653
|
+
const s = L(this, this._consumerLabelledBy), i = s.length > 0, a = L(this, this._consumerDescribedBy);
|
|
654
|
+
this._installExternalRefsObserver([...s, ...a]);
|
|
655
|
+
const o = (c) => c.getAttribute("aria-hidden") !== "true" && !c.hasAttribute("hidden"), b = this.getAttribute("aria-label"), y = b !== null ? b.trim() : "", v = [];
|
|
656
|
+
v.push(...s.filter(o)), !i && !y && this._hasLabelSlot && v.push(...this._slottedLabelEls.filter(o));
|
|
657
|
+
const S = [...a.filter(o)], E = (c) => c.filter(o).map((p) => x(p)).filter((p) => p.length > 0).join(" ");
|
|
658
|
+
let h = "";
|
|
659
|
+
if (i && (h = E(s)), !h && y && (h = y), !h && this._hasLabelSlot && this._labelSlotText && (h = this._labelSlotText), !h && this.label && (h = this.label), h || (h = "Drawer"), this._supportsIdrefRefs) {
|
|
660
|
+
const c = e;
|
|
661
|
+
c.ariaLabelledByElements = v.length > 0 ? v : null, c.ariaDescribedByElements = S.length > 0 ? S : null, i ? e.ariaLabel = null : e.ariaLabel = h;
|
|
662
|
+
} else
|
|
663
|
+
e.ariaLabel = h;
|
|
664
|
+
const _ = ((A = this.shadowRoot) == null ? void 0 : A.getElementById(this._consumerDescId)) ?? null, w = E(a);
|
|
665
|
+
_ && _.textContent !== w && (_.textContent = w);
|
|
666
|
+
const n = this._overlayEl ?? null;
|
|
667
|
+
if (n) {
|
|
668
|
+
n.hasAttribute("role") && n.removeAttribute("role"), n.hasAttribute("aria-modal") && n.removeAttribute("aria-modal");
|
|
669
|
+
const c = !this._supportsIdrefRefs && this._hasLabelSlot ? this._titleId : null, p = !this._supportsIdrefRefs && !c ? h : null;
|
|
670
|
+
if (c ? n.getAttribute("aria-labelledby") !== c && n.setAttribute("aria-labelledby", c) : n.hasAttribute("aria-labelledby") && n.removeAttribute("aria-labelledby"), p ? n.getAttribute("aria-label") !== p && n.setAttribute("aria-label", p) : n.hasAttribute("aria-label") && n.removeAttribute("aria-label"), w && _) {
|
|
671
|
+
const T = this._consumerDescId;
|
|
672
|
+
n.getAttribute("aria-describedby") !== T && n.setAttribute("aria-describedby", T);
|
|
673
|
+
} else n.hasAttribute("aria-describedby") && n.removeAttribute("aria-describedby");
|
|
674
|
+
}
|
|
675
|
+
n && n.hasAttribute("aria-description") && n.removeAttribute("aria-description");
|
|
487
676
|
}
|
|
488
677
|
// ─── Render Helpers ───
|
|
489
678
|
/** @internal */
|
|
490
679
|
_renderHeader() {
|
|
491
|
-
return this.noHeader ?
|
|
680
|
+
return this.noHeader ? m`
|
|
492
681
|
<button
|
|
493
682
|
part="close-btn"
|
|
494
683
|
class="drawer-close-button drawer-close-button--sr-only"
|
|
@@ -497,16 +686,16 @@ let o = class extends E {
|
|
|
497
686
|
this.open = !1;
|
|
498
687
|
}}
|
|
499
688
|
></button>
|
|
500
|
-
` :
|
|
689
|
+
` : m`
|
|
501
690
|
<div part="header" class="drawer-header">
|
|
502
691
|
<h2 part="title" id=${this._titleId} class="drawer-title">
|
|
503
692
|
<slot name="label" @slotchange=${this._handleLabelSlotChange}></slot>
|
|
504
693
|
</h2>
|
|
505
694
|
<div class="drawer-header-actions">
|
|
506
|
-
${this._hasHeaderActionsSlot ?
|
|
695
|
+
${this._hasHeaderActionsSlot ? m`<slot
|
|
507
696
|
name="header-actions"
|
|
508
697
|
@slotchange=${this._handleHeaderActionsSlotChange}
|
|
509
|
-
></slot>` :
|
|
698
|
+
></slot>` : m`<slot
|
|
510
699
|
name="header-actions"
|
|
511
700
|
@slotchange=${this._handleHeaderActionsSlotChange}
|
|
512
701
|
style="display:none"
|
|
@@ -541,7 +730,7 @@ let o = class extends E {
|
|
|
541
730
|
}
|
|
542
731
|
/** @internal */
|
|
543
732
|
_renderFooter() {
|
|
544
|
-
return this.noFooter ?
|
|
733
|
+
return this.noFooter ? C : m`
|
|
545
734
|
<div part="footer" class="drawer-footer" ?hidden=${!this._hasFooterSlot}>
|
|
546
735
|
<slot name="footer" @slotchange=${this._handleFooterSlotChange}></slot>
|
|
547
736
|
</div>
|
|
@@ -552,15 +741,11 @@ let o = class extends E {
|
|
|
552
741
|
const e = {
|
|
553
742
|
"drawer-overlay": !0,
|
|
554
743
|
"is-open": this._isOpen
|
|
555
|
-
}
|
|
556
|
-
return
|
|
744
|
+
};
|
|
745
|
+
return m`
|
|
557
746
|
<div
|
|
558
747
|
part="overlay"
|
|
559
|
-
class=${
|
|
560
|
-
role="dialog"
|
|
561
|
-
aria-modal="true"
|
|
562
|
-
aria-labelledby=${p(t)}
|
|
563
|
-
aria-label=${p(r)}
|
|
748
|
+
class=${B(e)}
|
|
564
749
|
tabindex="-1"
|
|
565
750
|
@click=${this._handleOverlayClick}
|
|
566
751
|
>
|
|
@@ -572,57 +757,74 @@ let o = class extends E {
|
|
|
572
757
|
</div>
|
|
573
758
|
${this._renderFooter()}
|
|
574
759
|
</div>
|
|
760
|
+
<!--
|
|
761
|
+
Synthesized in-shadow span carrying consumer-resolved description
|
|
762
|
+
text. Updated imperatively on every sync. The inner overlay's
|
|
763
|
+
\`aria-describedby\` references this span so cross-shadow consumer
|
|
764
|
+
descriptions resolve through the standard described-by channel
|
|
765
|
+
without writing light-DOM ids that cannot resolve from inside a
|
|
766
|
+
shadow root. \`aria-description\` is intentionally NEVER written —
|
|
767
|
+
AccName ignores it whenever \`aria-describedby\` is present.
|
|
768
|
+
-->
|
|
769
|
+
<span id=${this._consumerDescId} class="drawer-sr-only" aria-hidden="false"></span>
|
|
575
770
|
</div>
|
|
576
771
|
`;
|
|
577
772
|
}
|
|
578
773
|
};
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
774
|
+
l.styles = [N, R];
|
|
775
|
+
l.__testSupportsIdrefRefsOverride = null;
|
|
776
|
+
d([
|
|
777
|
+
k(".drawer-overlay")
|
|
778
|
+
], l.prototype, "_overlayEl", 2);
|
|
779
|
+
d([
|
|
780
|
+
k(".drawer-panel")
|
|
781
|
+
], l.prototype, "_panelEl", 2);
|
|
782
|
+
d([
|
|
783
|
+
f()
|
|
784
|
+
], l.prototype, "_isOpen", 2);
|
|
785
|
+
d([
|
|
786
|
+
f()
|
|
787
|
+
], l.prototype, "_hasHeaderActionsSlot", 2);
|
|
788
|
+
d([
|
|
789
|
+
f()
|
|
790
|
+
], l.prototype, "_hasFooterSlot", 2);
|
|
791
|
+
d([
|
|
792
|
+
f()
|
|
793
|
+
], l.prototype, "_hasLabelSlot", 2);
|
|
794
|
+
d([
|
|
795
|
+
f()
|
|
796
|
+
], l.prototype, "_supportsIdrefRefs", 2);
|
|
797
|
+
d([
|
|
798
|
+
f()
|
|
799
|
+
], l.prototype, "_labelSlotText", 2);
|
|
800
|
+
d([
|
|
801
|
+
u({ type: Boolean, reflect: !0 })
|
|
802
|
+
], l.prototype, "open", 2);
|
|
803
|
+
d([
|
|
804
|
+
u({ type: String, reflect: !0 })
|
|
805
|
+
], l.prototype, "placement", 2);
|
|
806
|
+
d([
|
|
807
|
+
u({ type: String, reflect: !0, attribute: "hx-size" })
|
|
808
|
+
], l.prototype, "size", 2);
|
|
809
|
+
d([
|
|
810
|
+
u({ type: Boolean, reflect: !0 })
|
|
811
|
+
], l.prototype, "contained", 2);
|
|
812
|
+
d([
|
|
813
|
+
u({ type: Boolean, reflect: !0, attribute: "no-header" })
|
|
814
|
+
], l.prototype, "noHeader", 2);
|
|
815
|
+
d([
|
|
816
|
+
u({ type: Boolean, reflect: !0, attribute: "no-footer" })
|
|
817
|
+
], l.prototype, "noFooter", 2);
|
|
818
|
+
d([
|
|
819
|
+
u({ type: String })
|
|
820
|
+
], l.prototype, "label", 2);
|
|
821
|
+
d([
|
|
822
|
+
u({ type: String, attribute: "label-close" })
|
|
823
|
+
], l.prototype, "labelClose", 2);
|
|
824
|
+
l = d([
|
|
825
|
+
D("hx-drawer")
|
|
826
|
+
], l);
|
|
625
827
|
export {
|
|
626
|
-
|
|
828
|
+
l as H
|
|
627
829
|
};
|
|
628
|
-
//# sourceMappingURL=hx-drawer-
|
|
830
|
+
//# sourceMappingURL=hx-drawer-DH6CdAN1.js.map
|