@carbon/web-components 2.40.1 → 2.41.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 +130 -0
- package/dist/ai-label.min.js +8 -8
- package/dist/breadcrumb.min.js +4 -4
- package/dist/button-CmUJmoio.js +93 -0
- package/dist/{button-skeleton-DKiPqzwa.js → button-skeleton-Ba4xDn6y.js} +1 -1
- package/dist/button.min.js +1 -1
- package/dist/chat-button.min.js +3 -3
- package/dist/code-snippet.min.js +29 -29
- package/dist/combo-button.min.js +7 -7
- package/dist/content-switcher-item-Cz7OvIj8.js +54 -0
- package/dist/content-switcher.min.js +1 -1
- package/dist/copy-button.min.js +8 -8
- package/dist/data-table.min.js +41 -41
- package/dist/feature-flags.min.js +1 -1
- package/dist/file-uploader.min.js +29 -29
- package/dist/floating-controller-CxZPAslz.js +28 -0
- package/dist/icon-button.min.js +7 -7
- package/dist/icon-indicator.min.js +1 -1
- package/dist/menu-button.min.js +5 -5
- package/dist/modal.min.js +6 -6
- package/dist/notification.min.js +36 -38
- package/dist/overflow-menu.min.js +6 -6
- package/dist/pagination.min.js +25 -25
- package/dist/password-input.min.js +7 -7
- package/dist/popover.min.js +9 -9
- package/dist/progress-indicator.min.js +12 -12
- package/dist/radio-button.min.js +3 -3
- package/dist/side-panel.min.js +6 -6
- package/dist/skip-to-content.min.js +4 -4
- package/dist/slug.min.js +8 -8
- package/dist/tabs.min.js +24 -24
- package/dist/tag.min.js +49 -49
- package/dist/tearsheet.min.js +1 -1
- package/dist/tile.min.js +1 -1
- package/dist/toggle-tip.min.js +14 -14
- package/dist/tooltip-content-Tyg0Hg0i.js +30 -0
- package/dist/tooltip.min.js +1 -1
- package/dist/tree-view.min.js +5 -2
- package/dist/ui-shell.min.js +53 -53
- package/es/components/accordion/accordion-item.d.ts +27 -11
- package/es/components/ai-label/ai-label.scss.js +1 -1
- package/es/components/breadcrumb/breadcrumb.scss.js +1 -1
- package/es/components/button/button.d.ts +56 -22
- package/es/components/button/button.scss.js +1 -1
- package/es/components/chat-button/chat-button.scss.js +1 -1
- package/es/components/checkbox/checkbox-group.d.ts +2 -0
- package/es/components/checkbox/checkbox.d.ts +56 -22
- package/es/components/code-snippet/code-snippet.d.ts +29 -11
- package/es/components/code-snippet/code-snippet.scss.js +1 -1
- package/es/components/combo-button/combo-button.d.ts +27 -11
- package/es/components/combo-button/combo-button.scss.js +1 -1
- package/es/components/content-switcher/content-switcher-item.d.ts +29 -11
- package/es/components/content-switcher/content-switcher.scss.js +1 -1
- package/es/components/copy-button/copy-button.d.ts +27 -11
- package/es/components/copy-button/copy-button.scss.js +1 -1
- package/es/components/data-table/data-table.scss.js +1 -1
- package/es/components/data-table/table-expanded-row.d.ts +27 -11
- package/es/components/data-table/table-header-cell.d.ts +29 -11
- package/es/components/data-table/table-row.d.ts +54 -22
- package/es/components/data-table/table-toolbar-search.d.ts +29 -11
- package/es/components/data-table/table.d.ts +27 -11
- package/es/components/data-table/table.js +12 -4
- package/es/components/data-table/table.js.map +1 -1
- package/es/components/date-picker/date-picker-input.d.ts +29 -11
- package/es/components/date-picker/date-picker.d.ts +54 -22
- package/es/components/dropdown/dropdown.d.ts +110 -44
- package/es/components/feature-flags/index.js +1 -0
- package/es/components/feature-flags/index.js.map +1 -1
- package/es/components/file-uploader/file-uploader-button.d.ts +27 -11
- package/es/components/file-uploader/file-uploader-drop-container.d.ts +27 -11
- package/es/components/file-uploader/file-uploader.scss.js +1 -1
- package/es/components/floating-menu/floating-menu.d.ts +56 -22
- package/es/components/icon-button/icon-button.scss.js +1 -1
- package/es/components/link/link.d.ts +29 -11
- package/es/components/menu/menu-item-selectable.d.ts +2 -0
- package/es/components/menu/menu-item.d.ts +54 -22
- package/es/components/menu/menu.d.ts +27 -11
- package/es/components/menu-button/menu-button.d.ts +27 -11
- package/es/components/menu-button/menu-button.scss.js +1 -1
- package/es/components/modal/modal-close-button.d.ts +29 -11
- package/es/components/modal/modal.d.ts +27 -11
- package/es/components/modal/modal.scss.js +1 -1
- package/es/components/notification/actionable-notification.d.ts +27 -11
- package/es/components/notification/actionable-notification.scss.js +1 -1
- package/es/components/notification/inline-notification.d.ts +27 -11
- package/es/components/notification/inline-notification.scss.js +1 -1
- package/es/components/notification/toast-notification.d.ts +1 -1
- package/es/components/notification/toast-notification.js +13 -15
- package/es/components/notification/toast-notification.js.map +1 -1
- package/es/components/notification/toast-notification.scss.js +1 -1
- package/es/components/number-input/number-input.d.ts +2 -0
- package/es/components/overflow-menu/overflow-menu-item.d.ts +29 -11
- package/es/components/overflow-menu/overflow-menu.d.ts +54 -22
- package/es/components/overflow-menu/overflow-menu.scss.js +1 -1
- package/es/components/pagination/pagination.d.ts +56 -22
- package/es/components/pagination/pagination.js +12 -7
- package/es/components/pagination/pagination.js.map +1 -1
- package/es/components/pagination/pagination.scss.js +1 -1
- package/es/components/password-input/password-input.d.ts +2 -0
- package/es/components/popover/defs.d.ts +13 -0
- package/es/components/popover/defs.js +15 -1
- package/es/components/popover/defs.js.map +1 -1
- package/es/components/popover/popover-content.d.ts +13 -0
- package/es/components/popover/popover-content.js +22 -0
- package/es/components/popover/popover-content.js.map +1 -1
- package/es/components/popover/popover.d.ts +37 -12
- package/es/components/popover/popover.js +31 -3
- package/es/components/popover/popover.js.map +1 -1
- package/es/components/popover/popover.scss.js +1 -1
- package/es/components/progress-indicator/progress-indicator.scss.js +1 -1
- package/es/components/progress-indicator/progress-step.d.ts +29 -11
- package/es/components/radio-button/radio-button-group.d.ts +54 -22
- package/es/components/radio-button/radio-button.d.ts +56 -22
- package/es/components/search/search.d.ts +83 -33
- package/es/components/select/select.d.ts +29 -11
- package/es/components/side-panel/side-panel.d.ts +27 -11
- package/es/components/skip-to-content/skip-to-content.d.ts +29 -11
- package/es/components/skip-to-content/skip-to-content.scss.js +1 -1
- package/es/components/slider/slider-input.d.ts +29 -11
- package/es/components/slider/slider.d.ts +83 -33
- package/es/components/slug/slug.scss.js +1 -1
- package/es/components/structured-list/structured-list-row.d.ts +27 -11
- package/es/components/structured-list/structured-list.d.ts +29 -11
- package/es/components/tabs/tabs.d.ts +27 -11
- package/es/components/tabs/tabs.scss.js +1 -1
- package/es/components/tag/dismissible-tag.d.ts +54 -22
- package/es/components/tag/operational-tag.d.ts +54 -22
- package/es/components/tag/selectable-tag.d.ts +54 -22
- package/es/components/tag/tag.d.ts +54 -22
- package/es/components/tag/tag.scss.js +1 -1
- package/es/components/tearsheet/tearsheet.d.ts +27 -11
- package/es/components/text-input/text-input.d.ts +56 -22
- package/es/components/textarea/textarea.d.ts +2 -0
- package/es/components/tile/expandable-tile.d.ts +54 -22
- package/es/components/tile/selectable-tile.d.ts +56 -22
- package/es/components/tile/tile-group.d.ts +27 -11
- package/es/components/tile/tile.scss.js +1 -1
- package/es/components/time-picker/time-picker-select.d.ts +29 -11
- package/es/components/time-picker/time-picker.d.ts +56 -22
- package/es/components/toggle/toggle.d.ts +27 -11
- package/es/components/toggle-tip/toggletip.d.ts +56 -22
- package/es/components/toggle-tip/toggletip.scss.js +1 -1
- package/es/components/tooltip/tooltip.d.ts +27 -11
- package/es/components/tooltip/tooltip.js +3 -0
- package/es/components/tooltip/tooltip.js.map +1 -1
- package/es/components/tooltip/tooltip.scss.js +1 -1
- package/es/components/tree-view/tree-node.js +4 -4
- package/es/components/tree-view/tree-node.js.map +1 -1
- package/es/components/tree-view/tree-view.d.ts +27 -11
- package/es/components/ui-shell/header-global-action.d.ts +2 -0
- package/es/components/ui-shell/header-menu-button.d.ts +29 -11
- package/es/components/ui-shell/header-menu.d.ts +56 -22
- package/es/components/ui-shell/header-name.d.ts +29 -11
- package/es/components/ui-shell/header-nav-item.d.ts +29 -11
- package/es/components/ui-shell/header-panel.d.ts +2 -0
- package/es/components/ui-shell/header.scss.js +1 -1
- package/es/components/ui-shell/side-nav-link.d.ts +29 -11
- package/es/components/ui-shell/side-nav-menu-item.d.ts +29 -11
- package/es/components/ui-shell/side-nav-menu.d.ts +29 -11
- package/es/components/ui-shell/side-nav.d.ts +27 -11
- package/es/components/ui-shell/switcher-item.d.ts +29 -11
- package/es/components/ui-shell/switcher.d.ts +2 -0
- package/es/feature-flags/es/index.js +30 -2
- package/es/feature-flags/es/index.js.map +1 -1
- package/es/globals/mixins/focus.d.ts +27 -11
- package/es/globals/mixins/form.d.ts +27 -11
- package/es/globals/mixins/host-listener.d.ts +27 -11
- package/es/globals/mixins/validity.d.ts +27 -11
- package/es-custom/components/accordion/accordion-item.d.ts +27 -11
- package/es-custom/components/ai-label/ai-label.scss.js +1 -1
- package/es-custom/components/breadcrumb/breadcrumb.scss.js +1 -1
- package/es-custom/components/button/button.d.ts +56 -22
- package/es-custom/components/button/button.scss.js +1 -1
- package/es-custom/components/chat-button/chat-button.scss.js +1 -1
- package/es-custom/components/checkbox/checkbox-group.d.ts +2 -0
- package/es-custom/components/checkbox/checkbox.d.ts +56 -22
- package/es-custom/components/code-snippet/code-snippet.d.ts +29 -11
- package/es-custom/components/code-snippet/code-snippet.scss.js +1 -1
- package/es-custom/components/combo-button/combo-button.d.ts +27 -11
- package/es-custom/components/combo-button/combo-button.scss.js +1 -1
- package/es-custom/components/content-switcher/content-switcher-item.d.ts +29 -11
- package/es-custom/components/content-switcher/content-switcher.scss.js +1 -1
- package/es-custom/components/copy-button/copy-button.d.ts +27 -11
- package/es-custom/components/copy-button/copy-button.scss.js +1 -1
- package/es-custom/components/data-table/data-table.scss.js +1 -1
- package/es-custom/components/data-table/table-expanded-row.d.ts +27 -11
- package/es-custom/components/data-table/table-header-cell.d.ts +29 -11
- package/es-custom/components/data-table/table-row.d.ts +54 -22
- package/es-custom/components/data-table/table-toolbar-search.d.ts +29 -11
- package/es-custom/components/data-table/table.d.ts +27 -11
- package/es-custom/components/data-table/table.js +12 -4
- package/es-custom/components/data-table/table.js.map +1 -1
- package/es-custom/components/date-picker/date-picker-input.d.ts +29 -11
- package/es-custom/components/date-picker/date-picker.d.ts +54 -22
- package/es-custom/components/dropdown/dropdown.d.ts +110 -44
- package/es-custom/components/feature-flags/index.js +1 -0
- package/es-custom/components/feature-flags/index.js.map +1 -1
- package/es-custom/components/file-uploader/file-uploader-button.d.ts +27 -11
- package/es-custom/components/file-uploader/file-uploader-drop-container.d.ts +27 -11
- package/es-custom/components/file-uploader/file-uploader.scss.js +1 -1
- package/es-custom/components/floating-menu/floating-menu.d.ts +56 -22
- package/es-custom/components/icon-button/icon-button.scss.js +1 -1
- package/es-custom/components/link/link.d.ts +29 -11
- package/es-custom/components/menu/menu-item-selectable.d.ts +2 -0
- package/es-custom/components/menu/menu-item.d.ts +54 -22
- package/es-custom/components/menu/menu.d.ts +27 -11
- package/es-custom/components/menu-button/menu-button.d.ts +27 -11
- package/es-custom/components/menu-button/menu-button.scss.js +1 -1
- package/es-custom/components/modal/modal-close-button.d.ts +29 -11
- package/es-custom/components/modal/modal.d.ts +27 -11
- package/es-custom/components/modal/modal.scss.js +1 -1
- package/es-custom/components/notification/actionable-notification.d.ts +27 -11
- package/es-custom/components/notification/actionable-notification.scss.js +1 -1
- package/es-custom/components/notification/inline-notification.d.ts +27 -11
- package/es-custom/components/notification/inline-notification.scss.js +1 -1
- package/es-custom/components/notification/toast-notification.d.ts +1 -1
- package/es-custom/components/notification/toast-notification.js +13 -15
- package/es-custom/components/notification/toast-notification.js.map +1 -1
- package/es-custom/components/notification/toast-notification.scss.js +1 -1
- package/es-custom/components/number-input/number-input.d.ts +2 -0
- package/es-custom/components/overflow-menu/overflow-menu-item.d.ts +29 -11
- package/es-custom/components/overflow-menu/overflow-menu.d.ts +54 -22
- package/es-custom/components/overflow-menu/overflow-menu.scss.js +1 -1
- package/es-custom/components/pagination/pagination.d.ts +56 -22
- package/es-custom/components/pagination/pagination.js +12 -7
- package/es-custom/components/pagination/pagination.js.map +1 -1
- package/es-custom/components/pagination/pagination.scss.js +1 -1
- package/es-custom/components/password-input/password-input.d.ts +2 -0
- package/es-custom/components/popover/defs.d.ts +13 -0
- package/es-custom/components/popover/defs.js +15 -1
- package/es-custom/components/popover/defs.js.map +1 -1
- package/es-custom/components/popover/popover-content.d.ts +13 -0
- package/es-custom/components/popover/popover-content.js +22 -0
- package/es-custom/components/popover/popover-content.js.map +1 -1
- package/es-custom/components/popover/popover.d.ts +37 -12
- package/es-custom/components/popover/popover.js +31 -3
- package/es-custom/components/popover/popover.js.map +1 -1
- package/es-custom/components/popover/popover.scss.js +1 -1
- package/es-custom/components/progress-indicator/progress-indicator.scss.js +1 -1
- package/es-custom/components/progress-indicator/progress-step.d.ts +29 -11
- package/es-custom/components/radio-button/radio-button-group.d.ts +54 -22
- package/es-custom/components/radio-button/radio-button.d.ts +56 -22
- package/es-custom/components/search/search.d.ts +83 -33
- package/es-custom/components/select/select.d.ts +29 -11
- package/es-custom/components/side-panel/side-panel.d.ts +27 -11
- package/es-custom/components/skip-to-content/skip-to-content.d.ts +29 -11
- package/es-custom/components/skip-to-content/skip-to-content.scss.js +1 -1
- package/es-custom/components/slider/slider-input.d.ts +29 -11
- package/es-custom/components/slider/slider.d.ts +83 -33
- package/es-custom/components/slug/slug.scss.js +1 -1
- package/es-custom/components/structured-list/structured-list-row.d.ts +27 -11
- package/es-custom/components/structured-list/structured-list.d.ts +29 -11
- package/es-custom/components/tabs/tabs.d.ts +27 -11
- package/es-custom/components/tabs/tabs.scss.js +1 -1
- package/es-custom/components/tag/dismissible-tag.d.ts +54 -22
- package/es-custom/components/tag/operational-tag.d.ts +54 -22
- package/es-custom/components/tag/selectable-tag.d.ts +54 -22
- package/es-custom/components/tag/tag.d.ts +54 -22
- package/es-custom/components/tag/tag.scss.js +1 -1
- package/es-custom/components/tearsheet/tearsheet.d.ts +27 -11
- package/es-custom/components/text-input/text-input.d.ts +56 -22
- package/es-custom/components/textarea/textarea.d.ts +2 -0
- package/es-custom/components/tile/expandable-tile.d.ts +54 -22
- package/es-custom/components/tile/selectable-tile.d.ts +56 -22
- package/es-custom/components/tile/tile-group.d.ts +27 -11
- package/es-custom/components/tile/tile.scss.js +1 -1
- package/es-custom/components/time-picker/time-picker-select.d.ts +29 -11
- package/es-custom/components/time-picker/time-picker.d.ts +56 -22
- package/es-custom/components/toggle/toggle.d.ts +27 -11
- package/es-custom/components/toggle-tip/toggletip.d.ts +56 -22
- package/es-custom/components/toggle-tip/toggletip.scss.js +1 -1
- package/es-custom/components/tooltip/tooltip.d.ts +27 -11
- package/es-custom/components/tooltip/tooltip.js +3 -0
- package/es-custom/components/tooltip/tooltip.js.map +1 -1
- package/es-custom/components/tooltip/tooltip.scss.js +1 -1
- package/es-custom/components/tree-view/tree-node.js +4 -4
- package/es-custom/components/tree-view/tree-node.js.map +1 -1
- package/es-custom/components/tree-view/tree-view.d.ts +27 -11
- package/es-custom/components/ui-shell/header-global-action.d.ts +2 -0
- package/es-custom/components/ui-shell/header-menu-button.d.ts +29 -11
- package/es-custom/components/ui-shell/header-menu.d.ts +56 -22
- package/es-custom/components/ui-shell/header-name.d.ts +29 -11
- package/es-custom/components/ui-shell/header-nav-item.d.ts +29 -11
- package/es-custom/components/ui-shell/header-panel.d.ts +2 -0
- package/es-custom/components/ui-shell/header.scss.js +1 -1
- package/es-custom/components/ui-shell/side-nav-link.d.ts +29 -11
- package/es-custom/components/ui-shell/side-nav-menu-item.d.ts +29 -11
- package/es-custom/components/ui-shell/side-nav-menu.d.ts +29 -11
- package/es-custom/components/ui-shell/side-nav.d.ts +27 -11
- package/es-custom/components/ui-shell/switcher-item.d.ts +29 -11
- package/es-custom/components/ui-shell/switcher.d.ts +2 -0
- package/es-custom/feature-flags/es/index.js +30 -2
- package/es-custom/feature-flags/es/index.js.map +1 -1
- package/es-custom/globals/mixins/focus.d.ts +27 -11
- package/es-custom/globals/mixins/form.d.ts +27 -11
- package/es-custom/globals/mixins/host-listener.d.ts +27 -11
- package/es-custom/globals/mixins/validity.d.ts +27 -11
- package/lib/components/accordion/accordion-item.d.ts +27 -11
- package/lib/components/button/button.d.ts +56 -22
- package/lib/components/checkbox/checkbox-group.d.ts +2 -0
- package/lib/components/checkbox/checkbox.d.ts +56 -22
- package/lib/components/code-snippet/code-snippet.d.ts +29 -11
- package/lib/components/combo-button/combo-button.d.ts +27 -11
- package/lib/components/content-switcher/content-switcher-item.d.ts +29 -11
- package/lib/components/copy-button/copy-button.d.ts +27 -11
- package/lib/components/data-table/table-expanded-row.d.ts +27 -11
- package/lib/components/data-table/table-header-cell.d.ts +29 -11
- package/lib/components/data-table/table-row.d.ts +54 -22
- package/lib/components/data-table/table-toolbar-search.d.ts +29 -11
- package/lib/components/data-table/table.d.ts +27 -11
- package/lib/components/date-picker/date-picker-input.d.ts +29 -11
- package/lib/components/date-picker/date-picker.d.ts +54 -22
- package/lib/components/dropdown/dropdown.d.ts +110 -44
- package/lib/components/file-uploader/file-uploader-button.d.ts +27 -11
- package/lib/components/file-uploader/file-uploader-drop-container.d.ts +27 -11
- package/lib/components/floating-menu/floating-menu.d.ts +56 -22
- package/lib/components/link/link.d.ts +29 -11
- package/lib/components/menu/menu-item-selectable.d.ts +2 -0
- package/lib/components/menu/menu-item.d.ts +54 -22
- package/lib/components/menu/menu.d.ts +27 -11
- package/lib/components/menu-button/menu-button.d.ts +27 -11
- package/lib/components/modal/modal-close-button.d.ts +29 -11
- package/lib/components/modal/modal.d.ts +27 -11
- package/lib/components/notification/actionable-notification.d.ts +27 -11
- package/lib/components/notification/inline-notification.d.ts +27 -11
- package/lib/components/notification/toast-notification.d.ts +1 -1
- package/lib/components/number-input/number-input.d.ts +2 -0
- package/lib/components/overflow-menu/overflow-menu-item.d.ts +29 -11
- package/lib/components/overflow-menu/overflow-menu.d.ts +54 -22
- package/lib/components/pagination/pagination.d.ts +56 -22
- package/lib/components/password-input/password-input.d.ts +2 -0
- package/lib/components/popover/defs.d.ts +13 -0
- package/lib/components/popover/defs.js +14 -0
- package/lib/components/popover/defs.js.map +1 -1
- package/lib/components/popover/popover-content.d.ts +13 -0
- package/lib/components/popover/popover.d.ts +37 -12
- package/lib/components/progress-indicator/progress-step.d.ts +29 -11
- package/lib/components/radio-button/radio-button-group.d.ts +54 -22
- package/lib/components/radio-button/radio-button.d.ts +56 -22
- package/lib/components/search/search.d.ts +83 -33
- package/lib/components/select/select.d.ts +29 -11
- package/lib/components/side-panel/side-panel.d.ts +27 -11
- package/lib/components/skip-to-content/skip-to-content.d.ts +29 -11
- package/lib/components/slider/slider-input.d.ts +29 -11
- package/lib/components/slider/slider.d.ts +83 -33
- package/lib/components/structured-list/structured-list-row.d.ts +27 -11
- package/lib/components/structured-list/structured-list.d.ts +29 -11
- package/lib/components/tabs/tabs.d.ts +27 -11
- package/lib/components/tag/dismissible-tag.d.ts +54 -22
- package/lib/components/tag/operational-tag.d.ts +54 -22
- package/lib/components/tag/selectable-tag.d.ts +54 -22
- package/lib/components/tag/tag.d.ts +54 -22
- package/lib/components/tearsheet/tearsheet.d.ts +27 -11
- package/lib/components/text-input/text-input.d.ts +56 -22
- package/lib/components/textarea/textarea.d.ts +2 -0
- package/lib/components/tile/expandable-tile.d.ts +54 -22
- package/lib/components/tile/selectable-tile.d.ts +56 -22
- package/lib/components/tile/tile-group.d.ts +27 -11
- package/lib/components/time-picker/time-picker-select.d.ts +29 -11
- package/lib/components/time-picker/time-picker.d.ts +56 -22
- package/lib/components/toggle/toggle.d.ts +27 -11
- package/lib/components/toggle-tip/toggletip.d.ts +56 -22
- package/lib/components/tooltip/tooltip.d.ts +27 -11
- package/lib/components/tree-view/tree-view.d.ts +27 -11
- package/lib/components/ui-shell/header-global-action.d.ts +2 -0
- package/lib/components/ui-shell/header-menu-button.d.ts +29 -11
- package/lib/components/ui-shell/header-menu.d.ts +56 -22
- package/lib/components/ui-shell/header-name.d.ts +29 -11
- package/lib/components/ui-shell/header-nav-item.d.ts +29 -11
- package/lib/components/ui-shell/header-panel.d.ts +2 -0
- package/lib/components/ui-shell/side-nav-link.d.ts +29 -11
- package/lib/components/ui-shell/side-nav-menu-item.d.ts +29 -11
- package/lib/components/ui-shell/side-nav-menu.d.ts +29 -11
- package/lib/components/ui-shell/side-nav.d.ts +27 -11
- package/lib/components/ui-shell/switcher-item.d.ts +29 -11
- package/lib/components/ui-shell/switcher.d.ts +2 -0
- package/lib/globals/mixins/focus.d.ts +27 -11
- package/lib/globals/mixins/form.d.ts +27 -11
- package/lib/globals/mixins/host-listener.d.ts +27 -11
- package/lib/globals/mixins/validity.d.ts +27 -11
- package/package.json +5 -5
- package/scss/components/modal/modal.scss +6 -0
- package/scss/components/popover/popover.scss +210 -9
- package/scss/components/tile/tile.scss +7 -7
- package/telemetry.yml +5 -1
- package/dist/button-Co3aPX0Y.js +0 -93
- package/dist/content-switcher-item-BDJMJLCb.js +0 -54
- package/dist/defs-CBJRLDfw.js +0 -28
- package/dist/floating-controller-CnuSelc_.js +0 -28
- package/dist/tooltip-content-BZBP-szv.js +0 -30
|
@@ -135,9 +135,6 @@ let CDSTreeNode = class CDSTreeNode extends LitElement {
|
|
|
135
135
|
if (!this.hasAttribute('role') && !this.href) {
|
|
136
136
|
this.setAttribute('role', 'treeitem');
|
|
137
137
|
}
|
|
138
|
-
if (!this.hasAttribute('aria-owns') && this._hasChildren && !this.href) {
|
|
139
|
-
this.setAttribute('aria-owns', `subtree-id-${this.id}`);
|
|
140
|
-
}
|
|
141
138
|
if (this._hasChildren && !this.href) {
|
|
142
139
|
this.setAttribute('aria-expanded', String(this.isExpanded));
|
|
143
140
|
}
|
|
@@ -264,7 +261,10 @@ let CDSTreeNode = class CDSTreeNode extends LitElement {
|
|
|
264
261
|
</span>
|
|
265
262
|
</div>
|
|
266
263
|
</a>
|
|
267
|
-
<ul
|
|
264
|
+
<ul
|
|
265
|
+
id="subtree-id-${id}"
|
|
266
|
+
role="group"
|
|
267
|
+
class="${subTreeClasses}">
|
|
268
268
|
<slot @slotchange=${handleSlotChange}></slot>
|
|
269
269
|
</ul>`
|
|
270
270
|
: html `<div id="label" class="${prefix}--tree-node__label">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-node.js","sources":["../../../src/components/tree-view/tree-node.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2025, 2025\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { classMap } from 'lit/directives/class-map.js';\nimport { LitElement, html } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport { iconLoader } from '../../globals/internal/icon-loader';\nimport CaretDown16 from '@carbon/icons/es/caret--down/16.js';\n\nimport styles from './tree-view.scss?lit';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Tree node.\n *\n * @element cds-custom-tree-node\n * @fires eventSelected\n * The name of the custom event fired when node is selected.\n * @fires eventToggled\n * The name of the custom event fired when a node is toggled.\n */\n@customElement(`${prefix}-tree-node`)\nclass CDSTreeNode extends LitElement {\n private _hasChildren = false;\n private _hasIcon = false;\n /**\n * Handles `slotchange` event.\n */\n private _handleSlotChange({ target }: Event) {\n const { _depth: depth, disabled } = this;\n const items = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) =>\n node.nodeType === Node.ELEMENT_NODE &&\n (node as Element).tagName.toLowerCase() === `${prefix}-tree-node`\n );\n\n items.forEach((item) => {\n (item as CDSTreeNode)._depth = depth + 1;\n (item as CDSTreeNode).disabled = disabled;\n });\n\n this._hasChildren = items.length > 0;\n if (this._hasChildren) this.setAttribute('parent', '');\n this.requestUpdate();\n }\n\n /**\n * Handles icon's `slotchange` event.\n */\n private _handleIconSlotChange({ target }: Event) {\n this._hasIcon = (target as HTMLSlotElement).assignedNodes().length > 0;\n if (this._hasIcon) this.setAttribute('has-icon', '');\n this.requestUpdate();\n }\n\n /**\n * Handles style updates based on depth\n */\n private _handleStyles = () => {\n const {\n _depth: depth,\n _hasChildren: hasChildren,\n _hasIcon: hasIcon,\n } = this;\n const calcOffset = () => {\n if (hasChildren && hasIcon) {\n return depth + 1 + depth * 0.5;\n }\n\n if (hasChildren) {\n return depth + 1;\n }\n\n if (hasIcon) {\n return depth + 2 + depth * 0.5;\n }\n\n return depth + 2.5;\n };\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- https://github.com/carbon-design-system/carbon/issues/20452\n const label = this.shadowRoot!.querySelector(\n `.${prefix}--tree-node__label`\n );\n if (label) {\n (label as HTMLElement).style.marginInlineStart = `-${calcOffset()}rem`;\n (label as HTMLElement).style.paddingInlineStart = `${calcOffset()}rem`;\n }\n };\n\n _handleToggleClick = (event) => {\n const { disabled, href } = this;\n if (disabled) return;\n event.stopPropagation();\n if (href) {\n event.preventDefault();\n }\n this.isExpanded = !this.isExpanded;\n if (this.hasAttribute('aria-expanded')) {\n this.setAttribute('aria-expanded', String(this.isExpanded));\n }\n };\n\n /**\n * sets if tree node is active\n */\n @property({ type: Boolean, reflect: true })\n active = false;\n\n /**\n * disabled property\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * **Note:** this is controlled by the parent TreeView component, do not set manually.\n * TreeNode depth to determine spacing\n */\n @state()\n private _depth = 0;\n\n /**\n * Specify if the TreeNode is expanded (only applicable to parent nodes)\n */\n @property({ type: Boolean, attribute: 'is-expanded' })\n isExpanded = false;\n\n /**\n * Optional: The URL the TreeNode is linking to\n */\n @property({})\n href;\n\n /**\n * Specify the TreeNode's ID. Must be unique in the DOM and is used for props.active, props.selected and aria-owns\n */\n @property({})\n id = Math.random().toString(16).slice(2);\n\n /**\n * Rendered label for the TreeNode\n */\n @property({})\n label!: string;\n\n /**\n * sets if tree node is selected\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * when adding an href to control the click functionality\n */\n @property({ type: Function })\n onClick?: (event: Event) => void;\n\n connectedCallback() {\n super.connectedCallback();\n\n // Detect children on first render\n this._hasChildren = Array.from(this.children).some(\n (node) => node.tagName.toLowerCase() === `${prefix}-tree-node`\n );\n\n this._hasIcon = Array.from(this.children).some(\n (node) => node.getAttribute('slot') === 'icon'\n );\n\n if (!this.hasAttribute('role') && !this.href) {\n this.setAttribute('role', 'treeitem');\n }\n\n if (!this.hasAttribute('aria-owns') && this._hasChildren && !this.href) {\n this.setAttribute('aria-owns', `subtree-id-${this.id}`);\n }\n\n if (this._hasChildren && !this.href) {\n this.setAttribute('aria-expanded', String(this.isExpanded));\n }\n\n if (!this.hasAttribute('aria-label')) {\n this.setAttribute('aria-label', this.label);\n }\n }\n\n private _dispatchSelectedEvent(value) {\n const { eventSelected } = this.constructor as typeof CDSTreeNode;\n this.dispatchEvent(\n new CustomEvent(eventSelected, {\n bubbles: true,\n composed: true,\n detail: {\n value,\n },\n })\n );\n }\n\n private _dispatchToggledEvent(value, expanded) {\n const { eventToggled } = this.constructor as typeof CDSTreeNode;\n this.dispatchEvent(\n new CustomEvent(eventToggled, {\n bubbles: true,\n composed: true,\n detail: {\n value,\n expanded: expanded,\n },\n })\n );\n }\n\n updated(changedProperties) {\n if (changedProperties.has('_depth')) {\n this._handleStyles();\n }\n if (changedProperties.has('selected')) {\n if (!this.href) {\n this.setAttribute(\n 'aria-selected',\n String(\n !this.href ? (this.disabled ? undefined : this.selected) : undefined\n )\n );\n }\n\n if (this.selected) {\n this._dispatchSelectedEvent(this.label);\n }\n }\n\n if (changedProperties.has('active') && !this.href) {\n this.setAttribute(\n 'aria-current',\n String(\n !this.href\n ? this.active || undefined\n : this.active\n ? 'page'\n : undefined\n )\n );\n }\n\n if (changedProperties.has('disabled')) {\n this.setAttribute('aria-disabled', String(this.disabled));\n }\n\n if (changedProperties.has('isExpanded')) {\n this._dispatchToggledEvent(this.label, this.isExpanded);\n }\n }\n\n render() {\n const {\n disabled,\n isExpanded,\n href,\n id,\n label,\n onClick,\n _hasChildren: hasChildren,\n _handleIconSlotChange: handleIconSlotChange,\n _handleSlotChange: handleSlotChange,\n _handleToggleClick: handleToggleClick,\n } = this;\n\n let toggleClasses = `${prefix}--tree-parent-node__toggle-icon`;\n if (isExpanded) {\n toggleClasses += `${prefix}--tree-parent-node__toggle-icon--expanded`;\n }\n\n const linkClasses = classMap({\n [`${prefix}--tree-node`]: true,\n [`${prefix}--tree-node--active`]: this.active,\n [`${prefix}--tree-node--disabled`]: disabled,\n [`${prefix}--tree-node--selected`]: this.selected,\n [`${prefix}--tree-node--with-icon`]: this._hasIcon,\n [`${prefix}--tree-leaf-node`]: !this._hasChildren,\n [`${prefix}--tree-parent-node`]: this._hasChildren,\n });\n\n const subTreeClasses = classMap({\n [`${prefix}--tree-node__children`]: true,\n [`${prefix}--tree-node__hidden`]: !isExpanded,\n });\n\n return html`\n ${!hasChildren\n ? html`\n ${href\n ? html`<a\n class=${linkClasses}\n href=${!disabled ? href : undefined}\n role=\"treeitem\"\n ?aria-disabled=${disabled}\n aria-current=${!this.href\n ? this.active || undefined\n : this.active\n ? 'page'\n : undefined}\n tabindex=${disabled ? -1 : undefined}\n @click=${onClick}>\n <div id=\"label\" class=\"${prefix}--tree-node__label\">\n <slot\n name=\"icon\"\n @slotchange=${handleIconSlotChange}></slot>\n ${label}\n </div>\n </a>`\n : html` <div id=\"label\" class=\"${prefix}--tree-node__label\">\n <slot name=\"icon\" @slotchange=${handleIconSlotChange}></slot>\n ${label}\n </div>`}\n `\n : html`\n ${href\n ? html` <a\n role=\"treeitem\"\n class=${linkClasses}\n aria-expanded=${!!isExpanded}\n aria-owns=\"subtree-id-${id}\"\n href=${!disabled ? href : undefined}\n tabindex=${disabled ? -1 : undefined}\n @click=${onClick}>\n <div id=\"label\" class=\"${prefix}--tree-node__label\">\n <span\n class=\"${prefix}--tree-parent-node__toggle\"\n ?disabled=${disabled}\n @click=${handleToggleClick}>\n ${iconLoader(CaretDown16, { class: toggleClasses })}\n </span>\n <span class=\"${prefix}--tree-node__label__details\">\n <slot\n name=\"icon\"\n @slotchange=${handleIconSlotChange}></slot>\n ${label}\n </span>\n </div>\n </a>\n <ul id=\"subtree-id-${id} role=\"group\" class=\"${subTreeClasses}\">\n <slot @slotchange=${handleSlotChange}></slot>\n </ul>`\n : html`<div id=\"label\" class=\"${prefix}--tree-node__label\">\n <span\n class=\"${prefix}--tree-parent-node__toggle\"\n ?disabled=${disabled}\n @click=${handleToggleClick}>\n ${iconLoader(CaretDown16, { class: toggleClasses })}\n </span>\n <span class=\"${prefix}--tree-node__label__details\">\n <slot\n name=\"icon\"\n @slotchange=${handleIconSlotChange}></slot>\n ${label}\n </span>\n </div>\n <ul\n id=\"subtree-id-${id}\"\n role=\"group\"\n class=\"${subTreeClasses}\">\n <slot @slotchange=${handleSlotChange}></slot>\n </ul>`}\n `}\n `;\n }\n\n /**\n * The name of the custom event fired when node is selected.\n */\n static get eventSelected() {\n return `${prefix}-tree-node-selected`;\n }\n\n /**\n * The name of the custom event fired when a node is toggled\n */\n static get eventToggled() {\n return `${prefix}-tree-node-toggled`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTreeNode;\n"],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAYH;;;;;;;;AAQG;AAEH,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU,CAAA;AAApC,IAAA,WAAA,GAAA;;QACU,IAAY,CAAA,YAAA,GAAG,KAAK;QACpB,IAAQ,CAAA,QAAA,GAAG,KAAK;AAiCxB;;AAEG;QACK,IAAa,CAAA,aAAA,GAAG,MAAK;AAC3B,YAAA,MAAM,EACJ,MAAM,EAAE,KAAK,EACb,YAAY,EAAE,WAAW,EACzB,QAAQ,EAAE,OAAO,GAClB,GAAG,IAAI;YACR,MAAM,UAAU,GAAG,MAAK;AACtB,gBAAA,IAAI,WAAW,IAAI,OAAO,EAAE;AAC1B,oBAAA,OAAO,KAAK,GAAG,CAAC,GAAG,KAAK,GAAG,GAAG;;gBAGhC,IAAI,WAAW,EAAE;oBACf,OAAO,KAAK,GAAG,CAAC;;gBAGlB,IAAI,OAAO,EAAE;AACX,oBAAA,OAAO,KAAK,GAAG,CAAC,GAAG,KAAK,GAAG,GAAG;;gBAGhC,OAAO,KAAK,GAAG,GAAG;AACpB,aAAC;;AAED,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,UAAW,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AAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AACzB,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAMjB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;AACK,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAvI7B,WAAW,GAAA,UAAA,CAAA;AADhB,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,UAAA,CAAY;AAC9B,CAAA,EAAA,WAAW,CA2WhB;AAED,oBAAe,WAAW;;;;"}
|
|
1
|
+
{"version":3,"file":"tree-node.js","sources":["../../../src/components/tree-view/tree-node.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2025, 2025\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { classMap } from 'lit/directives/class-map.js';\nimport { LitElement, html } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport { iconLoader } from '../../globals/internal/icon-loader';\nimport CaretDown16 from '@carbon/icons/es/caret--down/16.js';\n\nimport styles from './tree-view.scss?lit';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Tree node.\n *\n * @element cds-custom-tree-node\n * @fires eventSelected\n * The name of the custom event fired when node is selected.\n * @fires eventToggled\n * The name of the custom event fired when a node is toggled.\n */\n@customElement(`${prefix}-tree-node`)\nclass CDSTreeNode extends LitElement {\n private _hasChildren = false;\n private _hasIcon = false;\n /**\n * Handles `slotchange` event.\n */\n private _handleSlotChange({ target }: Event) {\n const { _depth: depth, disabled } = this;\n const items = (target as HTMLSlotElement)\n .assignedNodes()\n .filter(\n (node) =>\n node.nodeType === Node.ELEMENT_NODE &&\n (node as Element).tagName.toLowerCase() === `${prefix}-tree-node`\n );\n\n items.forEach((item) => {\n (item as CDSTreeNode)._depth = depth + 1;\n (item as CDSTreeNode).disabled = disabled;\n });\n\n this._hasChildren = items.length > 0;\n if (this._hasChildren) this.setAttribute('parent', '');\n this.requestUpdate();\n }\n\n /**\n * Handles icon's `slotchange` event.\n */\n private _handleIconSlotChange({ target }: Event) {\n this._hasIcon = (target as HTMLSlotElement).assignedNodes().length > 0;\n if (this._hasIcon) this.setAttribute('has-icon', '');\n this.requestUpdate();\n }\n\n /**\n * Handles style updates based on depth\n */\n private _handleStyles = () => {\n const {\n _depth: depth,\n _hasChildren: hasChildren,\n _hasIcon: hasIcon,\n } = this;\n const calcOffset = () => {\n if (hasChildren && hasIcon) {\n return depth + 1 + depth * 0.5;\n }\n\n if (hasChildren) {\n return depth + 1;\n }\n\n if (hasIcon) {\n return depth + 2 + depth * 0.5;\n }\n\n return depth + 2.5;\n };\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- https://github.com/carbon-design-system/carbon/issues/20452\n const label = this.shadowRoot!.querySelector(\n `.${prefix}--tree-node__label`\n );\n if (label) {\n (label as HTMLElement).style.marginInlineStart = `-${calcOffset()}rem`;\n (label as HTMLElement).style.paddingInlineStart = `${calcOffset()}rem`;\n }\n };\n\n _handleToggleClick = (event) => {\n const { disabled, href } = this;\n if (disabled) return;\n event.stopPropagation();\n if (href) {\n event.preventDefault();\n }\n this.isExpanded = !this.isExpanded;\n if (this.hasAttribute('aria-expanded')) {\n this.setAttribute('aria-expanded', String(this.isExpanded));\n }\n };\n\n /**\n * sets if tree node is active\n */\n @property({ type: Boolean, reflect: true })\n active = false;\n\n /**\n * disabled property\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * **Note:** this is controlled by the parent TreeView component, do not set manually.\n * TreeNode depth to determine spacing\n */\n @state()\n private _depth = 0;\n\n /**\n * Specify if the TreeNode is expanded (only applicable to parent nodes)\n */\n @property({ type: Boolean, attribute: 'is-expanded' })\n isExpanded = false;\n\n /**\n * Optional: The URL the TreeNode is linking to\n */\n @property({})\n href;\n\n /**\n * Specify the TreeNode's ID. Must be unique in the DOM and is used for props.active, props.selected and aria-owns\n */\n @property({})\n id = Math.random().toString(16).slice(2);\n\n /**\n * Rendered label for the TreeNode\n */\n @property({})\n label!: string;\n\n /**\n * sets if tree node is selected\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * when adding an href to control the click functionality\n */\n @property({ type: Function })\n onClick?: (event: Event) => void;\n\n connectedCallback() {\n super.connectedCallback();\n\n // Detect children on first render\n this._hasChildren = Array.from(this.children).some(\n (node) => node.tagName.toLowerCase() === `${prefix}-tree-node`\n );\n\n this._hasIcon = Array.from(this.children).some(\n (node) => node.getAttribute('slot') === 'icon'\n );\n\n if (!this.hasAttribute('role') && !this.href) {\n this.setAttribute('role', 'treeitem');\n }\n\n if (this._hasChildren && !this.href) {\n this.setAttribute('aria-expanded', String(this.isExpanded));\n }\n\n if (!this.hasAttribute('aria-label')) {\n this.setAttribute('aria-label', this.label);\n }\n }\n\n private _dispatchSelectedEvent(value) {\n const { eventSelected } = this.constructor as typeof CDSTreeNode;\n this.dispatchEvent(\n new CustomEvent(eventSelected, {\n bubbles: true,\n composed: true,\n detail: {\n value,\n },\n })\n );\n }\n\n private _dispatchToggledEvent(value, expanded) {\n const { eventToggled } = this.constructor as typeof CDSTreeNode;\n this.dispatchEvent(\n new CustomEvent(eventToggled, {\n bubbles: true,\n composed: true,\n detail: {\n value,\n expanded: expanded,\n },\n })\n );\n }\n\n updated(changedProperties) {\n if (changedProperties.has('_depth')) {\n this._handleStyles();\n }\n if (changedProperties.has('selected')) {\n if (!this.href) {\n this.setAttribute(\n 'aria-selected',\n String(\n !this.href ? (this.disabled ? undefined : this.selected) : undefined\n )\n );\n }\n\n if (this.selected) {\n this._dispatchSelectedEvent(this.label);\n }\n }\n\n if (changedProperties.has('active') && !this.href) {\n this.setAttribute(\n 'aria-current',\n String(\n !this.href\n ? this.active || undefined\n : this.active\n ? 'page'\n : undefined\n )\n );\n }\n\n if (changedProperties.has('disabled')) {\n this.setAttribute('aria-disabled', String(this.disabled));\n }\n\n if (changedProperties.has('isExpanded')) {\n this._dispatchToggledEvent(this.label, this.isExpanded);\n }\n }\n\n render() {\n const {\n disabled,\n isExpanded,\n href,\n id,\n label,\n onClick,\n _hasChildren: hasChildren,\n _handleIconSlotChange: handleIconSlotChange,\n _handleSlotChange: handleSlotChange,\n _handleToggleClick: handleToggleClick,\n } = this;\n\n let toggleClasses = `${prefix}--tree-parent-node__toggle-icon`;\n if (isExpanded) {\n toggleClasses += `${prefix}--tree-parent-node__toggle-icon--expanded`;\n }\n\n const linkClasses = classMap({\n [`${prefix}--tree-node`]: true,\n [`${prefix}--tree-node--active`]: this.active,\n [`${prefix}--tree-node--disabled`]: disabled,\n [`${prefix}--tree-node--selected`]: this.selected,\n [`${prefix}--tree-node--with-icon`]: this._hasIcon,\n [`${prefix}--tree-leaf-node`]: !this._hasChildren,\n [`${prefix}--tree-parent-node`]: this._hasChildren,\n });\n\n const subTreeClasses = classMap({\n [`${prefix}--tree-node__children`]: true,\n [`${prefix}--tree-node__hidden`]: !isExpanded,\n });\n\n return html`\n ${!hasChildren\n ? html`\n ${href\n ? html`<a\n class=${linkClasses}\n href=${!disabled ? href : undefined}\n role=\"treeitem\"\n ?aria-disabled=${disabled}\n aria-current=${!this.href\n ? this.active || undefined\n : this.active\n ? 'page'\n : undefined}\n tabindex=${disabled ? -1 : undefined}\n @click=${onClick}>\n <div id=\"label\" class=\"${prefix}--tree-node__label\">\n <slot\n name=\"icon\"\n @slotchange=${handleIconSlotChange}></slot>\n ${label}\n </div>\n </a>`\n : html` <div id=\"label\" class=\"${prefix}--tree-node__label\">\n <slot name=\"icon\" @slotchange=${handleIconSlotChange}></slot>\n ${label}\n </div>`}\n `\n : html`\n ${href\n ? html` <a\n role=\"treeitem\"\n class=${linkClasses}\n aria-expanded=${!!isExpanded}\n aria-owns=\"subtree-id-${id}\"\n href=${!disabled ? href : undefined}\n tabindex=${disabled ? -1 : undefined}\n @click=${onClick}>\n <div id=\"label\" class=\"${prefix}--tree-node__label\">\n <span\n class=\"${prefix}--tree-parent-node__toggle\"\n ?disabled=${disabled}\n @click=${handleToggleClick}>\n ${iconLoader(CaretDown16, { class: toggleClasses })}\n </span>\n <span class=\"${prefix}--tree-node__label__details\">\n <slot\n name=\"icon\"\n @slotchange=${handleIconSlotChange}></slot>\n ${label}\n </span>\n </div>\n </a>\n <ul\n id=\"subtree-id-${id}\"\n role=\"group\"\n class=\"${subTreeClasses}\">\n <slot @slotchange=${handleSlotChange}></slot>\n </ul>`\n : html`<div id=\"label\" class=\"${prefix}--tree-node__label\">\n <span\n class=\"${prefix}--tree-parent-node__toggle\"\n ?disabled=${disabled}\n @click=${handleToggleClick}>\n ${iconLoader(CaretDown16, { class: toggleClasses })}\n </span>\n <span class=\"${prefix}--tree-node__label__details\">\n <slot\n name=\"icon\"\n @slotchange=${handleIconSlotChange}></slot>\n ${label}\n </span>\n </div>\n <ul\n id=\"subtree-id-${id}\"\n role=\"group\"\n class=\"${subTreeClasses}\">\n <slot @slotchange=${handleSlotChange}></slot>\n </ul>`}\n `}\n `;\n }\n\n /**\n * The name of the custom event fired when node is selected.\n */\n static get eventSelected() {\n return `${prefix}-tree-node-selected`;\n }\n\n /**\n * The name of the custom event fired when a node is toggled\n */\n static get eventToggled() {\n return `${prefix}-tree-node-toggled`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTreeNode;\n"],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAYH;;;;;;;;AAQG;AAEH,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU,CAAA;AAApC,IAAA,WAAA,GAAA;;QACU,IAAY,CAAA,YAAA,GAAG,KAAK;QACpB,IAAQ,CAAA,QAAA,GAAG,KAAK;AAiCxB;;AAEG;QACK,IAAa,CAAA,aAAA,GAAG,MAAK;AAC3B,YAAA,MAAM,EACJ,MAAM,EAAE,KAAK,EACb,YAAY,EAAE,WAAW,EACz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,CAAA,SAAA,EAAA,IAAA,EAAA,MAAA,CAAA;AAMzC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE;AACG,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAMf,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AACzB,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAMjB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;AACK,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAvI7B,WAAW,GAAA,UAAA,CAAA;AADhB,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,UAAA,CAAY;AAC9B,CAAA,EAAA,WAAW,CA0WhB;AAED,oBAAe,WAAW;;;;"}
|
|
@@ -17,6 +17,7 @@ declare const CDSTreeView_base: {
|
|
|
17
17
|
accessKey: string;
|
|
18
18
|
readonly accessKeyLabel: string;
|
|
19
19
|
autocapitalize: string;
|
|
20
|
+
autocorrect: boolean;
|
|
20
21
|
dir: string;
|
|
21
22
|
draggable: boolean;
|
|
22
23
|
hidden: boolean;
|
|
@@ -38,13 +39,14 @@ declare const CDSTreeView_base: {
|
|
|
38
39
|
click(): void;
|
|
39
40
|
hidePopover(): void;
|
|
40
41
|
showPopover(): void;
|
|
41
|
-
togglePopover(
|
|
42
|
+
togglePopover(options?: boolean): boolean;
|
|
42
43
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
43
44
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
44
45
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
45
46
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
46
47
|
readonly attributes: NamedNodeMap;
|
|
47
|
-
|
|
48
|
+
get classList(): DOMTokenList;
|
|
49
|
+
set classList(value: string);
|
|
48
50
|
className: string;
|
|
49
51
|
readonly clientHeight: number;
|
|
50
52
|
readonly clientLeft: number;
|
|
@@ -59,7 +61,8 @@ declare const CDSTreeView_base: {
|
|
|
59
61
|
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
60
62
|
outerHTML: string;
|
|
61
63
|
readonly ownerDocument: Document;
|
|
62
|
-
|
|
64
|
+
get part(): DOMTokenList;
|
|
65
|
+
set part(value: string);
|
|
63
66
|
readonly prefix: string | null;
|
|
64
67
|
readonly scrollHeight: number;
|
|
65
68
|
scrollLeft: number;
|
|
@@ -122,6 +125,8 @@ declare const CDSTreeView_base: {
|
|
|
122
125
|
setPointerCapture(pointerId: number): void;
|
|
123
126
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
124
127
|
webkitMatchesSelector(selectors: string): boolean;
|
|
128
|
+
get textContent(): string;
|
|
129
|
+
set textContent(value: string | null);
|
|
125
130
|
readonly baseURI: string;
|
|
126
131
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
127
132
|
readonly firstChild: ChildNode | null;
|
|
@@ -134,9 +139,8 @@ declare const CDSTreeView_base: {
|
|
|
134
139
|
readonly parentElement: HTMLElement | null;
|
|
135
140
|
readonly parentNode: ParentNode | null;
|
|
136
141
|
readonly previousSibling: ChildNode | null;
|
|
137
|
-
textContent: string | null;
|
|
138
142
|
appendChild<T extends Node>(node: T): T;
|
|
139
|
-
cloneNode(
|
|
143
|
+
cloneNode(subtree?: boolean): Node;
|
|
140
144
|
compareDocumentPosition(other: Node): number;
|
|
141
145
|
contains(other: Node | null): boolean;
|
|
142
146
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
@@ -169,6 +173,7 @@ declare const CDSTreeView_base: {
|
|
|
169
173
|
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
170
174
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
171
175
|
dispatchEvent(event: Event): boolean;
|
|
176
|
+
ariaActiveDescendantElement: Element | null;
|
|
172
177
|
ariaAtomic: string | null;
|
|
173
178
|
ariaAutoComplete: string | null;
|
|
174
179
|
ariaBrailleLabel: string | null;
|
|
@@ -179,25 +184,33 @@ declare const CDSTreeView_base: {
|
|
|
179
184
|
ariaColIndex: string | null;
|
|
180
185
|
ariaColIndexText: string | null;
|
|
181
186
|
ariaColSpan: string | null;
|
|
187
|
+
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
182
188
|
ariaCurrent: string | null;
|
|
189
|
+
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
183
190
|
ariaDescription: string | null;
|
|
191
|
+
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
184
192
|
ariaDisabled: string | null;
|
|
193
|
+
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
185
194
|
ariaExpanded: string | null;
|
|
195
|
+
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
186
196
|
ariaHasPopup: string | null;
|
|
187
197
|
ariaHidden: string | null;
|
|
188
198
|
ariaInvalid: string | null;
|
|
189
199
|
ariaKeyShortcuts: string | null;
|
|
190
200
|
ariaLabel: string | null;
|
|
201
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
191
202
|
ariaLevel: string | null;
|
|
192
203
|
ariaLive: string | null;
|
|
193
204
|
ariaModal: string | null;
|
|
194
205
|
ariaMultiLine: string | null;
|
|
195
206
|
ariaMultiSelectable: string | null;
|
|
196
207
|
ariaOrientation: string | null;
|
|
208
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
197
209
|
ariaPlaceholder: string | null;
|
|
198
210
|
ariaPosInSet: string | null;
|
|
199
211
|
ariaPressed: string | null;
|
|
200
212
|
ariaReadOnly: string | null;
|
|
213
|
+
ariaRelevant: string | null;
|
|
201
214
|
ariaRequired: string | null;
|
|
202
215
|
ariaRoleDescription: string | null;
|
|
203
216
|
ariaRowCount: string | null;
|
|
@@ -239,7 +252,8 @@ declare const CDSTreeView_base: {
|
|
|
239
252
|
replaceChildren(...nodes: (Node | string)[]): void;
|
|
240
253
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
241
254
|
readonly attributeStyleMap: StylePropertyMap;
|
|
242
|
-
|
|
255
|
+
get style(): CSSStyleDeclaration;
|
|
256
|
+
set style(cssText: string);
|
|
243
257
|
contentEditable: string;
|
|
244
258
|
enterKeyHint: string;
|
|
245
259
|
inputMode: string;
|
|
@@ -249,18 +263,19 @@ declare const CDSTreeView_base: {
|
|
|
249
263
|
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
250
264
|
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
251
265
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
252
|
-
onauxclick: ((this: GlobalEventHandlers, ev:
|
|
266
|
+
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
253
267
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
254
|
-
|
|
268
|
+
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
269
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
255
270
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
256
271
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
257
272
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
258
273
|
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
259
274
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
260
|
-
onclick: ((this: GlobalEventHandlers, ev:
|
|
275
|
+
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
261
276
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
262
277
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
263
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev:
|
|
278
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
264
279
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
265
280
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
266
281
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -308,6 +323,7 @@ declare const CDSTreeView_base: {
|
|
|
308
323
|
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
309
324
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
310
325
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
326
|
+
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
311
327
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
312
328
|
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
313
329
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -326,7 +342,7 @@ declare const CDSTreeView_base: {
|
|
|
326
342
|
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
327
343
|
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
344
|
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
329
|
-
ontoggle: ((this: GlobalEventHandlers, ev:
|
|
345
|
+
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
330
346
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
331
347
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
332
348
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
@@ -41,6 +41,8 @@ declare class CDSHeaderGlobalAction extends CDSButton {
|
|
|
41
41
|
shouldUpdate(changedProperties: any): boolean;
|
|
42
42
|
static shadowRootOptions: {
|
|
43
43
|
delegatesFocus: boolean;
|
|
44
|
+
clonable?: boolean;
|
|
45
|
+
customElementRegistry?: CustomElementRegistry;
|
|
44
46
|
mode: ShadowRootMode;
|
|
45
47
|
serializable?: boolean;
|
|
46
48
|
slotAssignment?: SlotAssignmentMode;
|
|
@@ -12,6 +12,7 @@ declare const CDSHeaderMenuButton_base: {
|
|
|
12
12
|
accessKey: string;
|
|
13
13
|
readonly accessKeyLabel: string;
|
|
14
14
|
autocapitalize: string;
|
|
15
|
+
autocorrect: boolean;
|
|
15
16
|
dir: string;
|
|
16
17
|
draggable: boolean;
|
|
17
18
|
hidden: boolean;
|
|
@@ -33,13 +34,14 @@ declare const CDSHeaderMenuButton_base: {
|
|
|
33
34
|
click(): void;
|
|
34
35
|
hidePopover(): void;
|
|
35
36
|
showPopover(): void;
|
|
36
|
-
togglePopover(
|
|
37
|
+
togglePopover(options?: boolean): boolean;
|
|
37
38
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
38
39
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
39
40
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
40
41
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
41
42
|
readonly attributes: NamedNodeMap;
|
|
42
|
-
|
|
43
|
+
get classList(): DOMTokenList;
|
|
44
|
+
set classList(value: string);
|
|
43
45
|
className: string;
|
|
44
46
|
readonly clientHeight: number;
|
|
45
47
|
readonly clientLeft: number;
|
|
@@ -54,7 +56,8 @@ declare const CDSHeaderMenuButton_base: {
|
|
|
54
56
|
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
55
57
|
outerHTML: string;
|
|
56
58
|
readonly ownerDocument: Document;
|
|
57
|
-
|
|
59
|
+
get part(): DOMTokenList;
|
|
60
|
+
set part(value: string);
|
|
58
61
|
readonly prefix: string | null;
|
|
59
62
|
readonly scrollHeight: number;
|
|
60
63
|
scrollLeft: number;
|
|
@@ -117,6 +120,8 @@ declare const CDSHeaderMenuButton_base: {
|
|
|
117
120
|
setPointerCapture(pointerId: number): void;
|
|
118
121
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
119
122
|
webkitMatchesSelector(selectors: string): boolean;
|
|
123
|
+
get textContent(): string;
|
|
124
|
+
set textContent(value: string | null);
|
|
120
125
|
readonly baseURI: string;
|
|
121
126
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
122
127
|
readonly firstChild: ChildNode | null;
|
|
@@ -129,9 +134,8 @@ declare const CDSHeaderMenuButton_base: {
|
|
|
129
134
|
readonly parentElement: HTMLElement | null;
|
|
130
135
|
readonly parentNode: ParentNode | null;
|
|
131
136
|
readonly previousSibling: ChildNode | null;
|
|
132
|
-
textContent: string | null;
|
|
133
137
|
appendChild<T extends Node>(node: T): T;
|
|
134
|
-
cloneNode(
|
|
138
|
+
cloneNode(subtree?: boolean): Node;
|
|
135
139
|
compareDocumentPosition(other: Node): number;
|
|
136
140
|
contains(other: Node | null): boolean;
|
|
137
141
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
@@ -164,6 +168,7 @@ declare const CDSHeaderMenuButton_base: {
|
|
|
164
168
|
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
165
169
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
166
170
|
dispatchEvent(event: Event): boolean;
|
|
171
|
+
ariaActiveDescendantElement: Element | null;
|
|
167
172
|
ariaAtomic: string | null;
|
|
168
173
|
ariaAutoComplete: string | null;
|
|
169
174
|
ariaBrailleLabel: string | null;
|
|
@@ -174,25 +179,33 @@ declare const CDSHeaderMenuButton_base: {
|
|
|
174
179
|
ariaColIndex: string | null;
|
|
175
180
|
ariaColIndexText: string | null;
|
|
176
181
|
ariaColSpan: string | null;
|
|
182
|
+
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
177
183
|
ariaCurrent: string | null;
|
|
184
|
+
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
178
185
|
ariaDescription: string | null;
|
|
186
|
+
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
179
187
|
ariaDisabled: string | null;
|
|
188
|
+
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
180
189
|
ariaExpanded: string | null;
|
|
190
|
+
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
181
191
|
ariaHasPopup: string | null;
|
|
182
192
|
ariaHidden: string | null;
|
|
183
193
|
ariaInvalid: string | null;
|
|
184
194
|
ariaKeyShortcuts: string | null;
|
|
185
195
|
ariaLabel: string | null;
|
|
196
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
186
197
|
ariaLevel: string | null;
|
|
187
198
|
ariaLive: string | null;
|
|
188
199
|
ariaModal: string | null;
|
|
189
200
|
ariaMultiLine: string | null;
|
|
190
201
|
ariaMultiSelectable: string | null;
|
|
191
202
|
ariaOrientation: string | null;
|
|
203
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
192
204
|
ariaPlaceholder: string | null;
|
|
193
205
|
ariaPosInSet: string | null;
|
|
194
206
|
ariaPressed: string | null;
|
|
195
207
|
ariaReadOnly: string | null;
|
|
208
|
+
ariaRelevant: string | null;
|
|
196
209
|
ariaRequired: string | null;
|
|
197
210
|
ariaRoleDescription: string | null;
|
|
198
211
|
ariaRowCount: string | null;
|
|
@@ -234,7 +247,8 @@ declare const CDSHeaderMenuButton_base: {
|
|
|
234
247
|
replaceChildren(...nodes: (Node | string)[]): void;
|
|
235
248
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
236
249
|
readonly attributeStyleMap: StylePropertyMap;
|
|
237
|
-
|
|
250
|
+
get style(): CSSStyleDeclaration;
|
|
251
|
+
set style(cssText: string);
|
|
238
252
|
contentEditable: string;
|
|
239
253
|
enterKeyHint: string;
|
|
240
254
|
inputMode: string;
|
|
@@ -244,18 +258,19 @@ declare const CDSHeaderMenuButton_base: {
|
|
|
244
258
|
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
245
259
|
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
246
260
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
247
|
-
onauxclick: ((this: GlobalEventHandlers, ev:
|
|
261
|
+
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
248
262
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
249
|
-
|
|
263
|
+
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
264
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
250
265
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
251
266
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
252
267
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
253
268
|
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
254
269
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
255
|
-
onclick: ((this: GlobalEventHandlers, ev:
|
|
270
|
+
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
256
271
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
257
272
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
258
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev:
|
|
273
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
259
274
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
260
275
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
261
276
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -303,6 +318,7 @@ declare const CDSHeaderMenuButton_base: {
|
|
|
303
318
|
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
304
319
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
305
320
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
321
|
+
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
306
322
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
307
323
|
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
308
324
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -321,7 +337,7 @@ declare const CDSHeaderMenuButton_base: {
|
|
|
321
337
|
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
322
338
|
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
323
339
|
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
324
|
-
ontoggle: ((this: GlobalEventHandlers, ev:
|
|
340
|
+
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
325
341
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
326
342
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
327
343
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
@@ -385,6 +401,8 @@ declare class CDSHeaderMenuButton extends CDSHeaderMenuButton_base {
|
|
|
385
401
|
static get eventToggle(): string;
|
|
386
402
|
static shadowRootOptions: {
|
|
387
403
|
delegatesFocus: boolean;
|
|
404
|
+
clonable?: boolean;
|
|
405
|
+
customElementRegistry?: CustomElementRegistry;
|
|
388
406
|
mode: ShadowRootMode;
|
|
389
407
|
serializable?: boolean;
|
|
390
408
|
slotAssignment?: SlotAssignmentMode;
|