@carbon/web-components 2.0.1 → 2.0.2-rc.1
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 +480 -12
- package/dist/16-01ebcb7f.js +50 -0
- package/dist/16-08c7b6ab.js +50 -0
- package/dist/16-1664e172.js +50 -0
- package/dist/16-1c0007f3.js +50 -0
- package/dist/16-20c5edc1.js +50 -0
- package/dist/16-220724e0.js +50 -0
- package/dist/16-228e7358.js +50 -0
- package/dist/16-291af4c1.js +50 -0
- package/dist/16-36ae18bf.js +50 -0
- package/dist/16-3b37b4ba.js +50 -0
- package/dist/16-46b03826.js +50 -0
- package/dist/16-5aefc3c2.js +50 -0
- package/dist/16-60b422c4.js +50 -0
- package/dist/16-6791071b.js +50 -0
- package/dist/16-6ceb5b82.js +50 -0
- package/dist/16-758bd5d3.js +50 -0
- package/dist/16-99afca88.js +50 -0
- package/dist/16-9e41b122.js +50 -0
- package/dist/16-9f0fa955.js +50 -0
- package/dist/16-a89c399c.js +50 -0
- package/dist/16-ae0e9a56.js +50 -0
- package/dist/16-c0c1a32f.js +50 -0
- package/dist/16-c18899be.js +50 -0
- package/dist/16-c56d8c15.js +50 -0
- package/dist/16-d814df5b.js +50 -0
- package/dist/16-d9457893.js +50 -0
- package/dist/16-d9a15472.js +50 -0
- package/dist/16-f1e0111b.js +50 -0
- package/dist/16-f62d4131.js +50 -0
- package/dist/16-f7a9dffe.js +50 -0
- package/dist/16-fbf142c7.js +50 -0
- package/dist/16-fd11e4ec.js +50 -0
- package/dist/20-1dd5ae57.js +50 -0
- package/dist/20-b7ed64f4.js +50 -0
- package/dist/20-d7cf1679.js +50 -0
- package/dist/20-e51c1f39.js +50 -0
- package/dist/accordion.min.js +103 -0
- package/dist/accordion.rtl.min.js +103 -0
- package/dist/breadcrumb.min.js +64 -0
- package/dist/breadcrumb.rtl.min.js +64 -0
- package/dist/button-3dafe360.js +114 -0
- package/dist/button-582a2f3a.js +114 -0
- package/dist/button-8d4316cb.js +114 -0
- package/dist/button-e33e1c4a.js +114 -0
- package/dist/button-set-04f29086.js +50 -0
- package/dist/button-set-49c4279d.js +50 -0
- package/dist/button-set-5ee221b2.js +50 -0
- package/dist/button-set-c9335535.js +50 -0
- package/dist/button-skeleton-00620289.js +70 -0
- package/dist/button-skeleton-b2facaf2.js +70 -0
- package/dist/button-skeleton-d68066fe.js +70 -0
- package/dist/button-skeleton-f9f83011.js +70 -0
- package/dist/button.min.js +50 -0
- package/dist/button.rtl.min.js +50 -0
- package/dist/carbon-element-4ca9803f.js +58 -0
- package/dist/checkbox-1ca3f18c.js +72 -0
- package/dist/checkbox-1e621c4d.js +72 -0
- package/dist/checkbox-440be135.js +72 -0
- package/dist/checkbox-fa74151f.js +72 -0
- package/dist/checkbox.min.js +56 -0
- package/dist/checkbox.rtl.min.js +56 -0
- package/dist/class-map-0ae732f6.js +55 -0
- package/dist/class-map-ff7e8fde.js +55 -0
- package/dist/code-snippet.min.js +115 -0
- package/dist/code-snippet.rtl.min.js +115 -0
- package/dist/collection-helpers-4e32fe16.js +58 -0
- package/dist/combo-box.min.js +72 -0
- package/dist/combo-box.rtl.min.js +72 -0
- package/dist/content-switcher-item-55b2adca.js +84 -0
- package/dist/content-switcher-item-6d9b81cf.js +84 -0
- package/dist/content-switcher-item-bee4ce7e.js +84 -0
- package/dist/content-switcher-item-f758c238.js +84 -0
- package/dist/content-switcher.min.js +50 -0
- package/dist/content-switcher.rtl.min.js +50 -0
- package/dist/copy-button-0404162f.js +63 -0
- package/dist/copy-button-1d23e1bd.js +63 -0
- package/dist/copy-button-cf261260.js +63 -0
- package/dist/copy-button-d35b2079.js +63 -0
- package/dist/copy-button.min.js +50 -0
- package/dist/copy-button.rtl.min.js +50 -0
- package/dist/custom-element-975be15f.js +55 -0
- package/dist/data-table.min.js +169 -0
- package/dist/data-table.rtl.min.js +169 -0
- package/dist/date-picker.min.js +169 -0
- package/dist/date-picker.rtl.min.js +169 -0
- package/dist/directive-e2d48b9c.js +55 -0
- package/dist/dropdown-item-2ae1dc7f.js +128 -0
- package/dist/dropdown-item-64bf0a4f.js +128 -0
- package/dist/dropdown-item-7273edb2.js +128 -0
- package/dist/dropdown-item-cdd1a116.js +128 -0
- package/dist/dropdown.min.js +57 -0
- package/dist/dropdown.rtl.min.js +57 -0
- package/dist/file-uploader.min.js +128 -0
- package/dist/file-uploader.rtl.min.js +128 -0
- package/dist/floating-menu-1795f0f3.js +58 -0
- package/dist/floating-menu-26d746d4.js +58 -0
- package/dist/floating-menu.min.js +50 -0
- package/dist/floating-menu.rtl.min.js +50 -0
- package/dist/focus-4a59e420.js +58 -0
- package/dist/focus-e79b2a40.js +58 -0
- package/dist/form-54a62766.js +50 -0
- package/dist/form-f6607c5c.js +50 -0
- package/dist/form-group.min.js +61 -0
- package/dist/form-group.rtl.min.js +61 -0
- package/dist/form.min.js +50 -0
- package/dist/form.rtl.min.js +50 -0
- package/dist/get-d229c408.js +50 -0
- package/dist/host-listener-0e75581e.js +58 -0
- package/dist/host-listener-42fdb22d.js +58 -0
- package/dist/icon-button-32eafa9f.js +71 -0
- package/dist/icon-button-334ed010.js +71 -0
- package/dist/icon-button-6974bc9a.js +71 -0
- package/dist/icon-button-8f6cac1e.js +71 -0
- package/dist/icon-button.min.js +50 -0
- package/dist/icon-button.rtl.min.js +50 -0
- package/dist/if-defined-2063a6b2.js +55 -0
- package/dist/if-defined-5b102a7a.js +55 -0
- package/dist/if-non-empty-3cac5484.js +58 -0
- package/dist/if-non-empty-f97d9ca3.js +58 -0
- package/dist/inline-loading.min.js +69 -0
- package/dist/inline-loading.rtl.min.js +69 -0
- package/dist/layer.min.js +50 -0
- package/dist/layer.rtl.min.js +50 -0
- package/dist/link-40eed54e.js +74 -0
- package/dist/link-42b684df.js +74 -0
- package/dist/link.min.js +50 -0
- package/dist/link.rtl.min.js +50 -0
- package/dist/list.min.js +65 -0
- package/dist/list.rtl.min.js +65 -0
- package/dist/loading-38056720.js +50 -0
- package/dist/loading-3aa24148.js +50 -0
- package/dist/loading-638b469c.js +50 -0
- package/dist/loading-dadfb60c.js +50 -0
- package/dist/loading-icon-5f6382df.js +82 -0
- package/dist/loading-icon-64a5114e.js +82 -0
- package/dist/loading.min.js +50 -0
- package/dist/loading.rtl.min.js +50 -0
- package/dist/modal.min.js +87 -0
- package/dist/modal.rtl.min.js +87 -0
- package/dist/multi-select.min.js +119 -0
- package/dist/multi-select.rtl.min.js +119 -0
- package/dist/notification.min.js +119 -0
- package/dist/notification.rtl.min.js +119 -0
- package/dist/number-input.min.js +130 -0
- package/dist/number-input.rtl.min.js +130 -0
- package/dist/objectSpread2-8208d45c.js +50 -0
- package/dist/objectSpread2-ea408269.js +50 -0
- package/dist/on-6c264d49.js +50 -0
- package/dist/overflow-menu.min.js +77 -0
- package/dist/overflow-menu.rtl.min.js +77 -0
- package/dist/pagination.min.js +142 -0
- package/dist/pagination.rtl.min.js +142 -0
- package/dist/popover-content-091b39e0.js +61 -0
- package/dist/popover-content-9e3bbe49.js +61 -0
- package/dist/popover-content-b376ac06.js +61 -0
- package/dist/popover-content-f183f37a.js +61 -0
- package/dist/popover.min.js +50 -0
- package/dist/popover.rtl.min.js +50 -0
- package/dist/progress-bar.min.js +79 -0
- package/dist/progress-bar.rtl.min.js +79 -0
- package/dist/progress-indicator.min.js +87 -0
- package/dist/progress-indicator.rtl.min.js +87 -0
- package/dist/query-6ca5e414.js +55 -0
- package/dist/query-assigned-elements-8e88277c.js +60 -0
- package/dist/radio-button.min.js +89 -0
- package/dist/radio-button.rtl.min.js +89 -0
- package/dist/radio-group-manager-3a681292.js +58 -0
- package/dist/radio-group-manager-f79f750e.js +58 -0
- package/dist/search-28dbefa9.js +79 -0
- package/dist/search-45d09092.js +79 -0
- package/dist/search-63dc2971.js +79 -0
- package/dist/search-f633f8c0.js +79 -0
- package/dist/search.min.js +53 -0
- package/dist/search.rtl.min.js +53 -0
- package/dist/select-item-355b65a2.js +50 -0
- package/dist/select-item-ac48969e.js +50 -0
- package/dist/select.min.js +121 -0
- package/dist/select.rtl.min.js +121 -0
- package/dist/settings-a675998f.js +80 -0
- package/dist/settings-daf72103.js +80 -0
- package/dist/shared-enums-c6fe8c39.js +58 -0
- package/dist/skeleton-placeholder.min.js +50 -0
- package/dist/skeleton-placeholder.rtl.min.js +50 -0
- package/dist/skeleton-text-3f580931.js +58 -0
- package/dist/skeleton-text-5cfb8d17.js +58 -0
- package/dist/skeleton-text-bb615714.js +58 -0
- package/dist/skeleton-text-e6700c4b.js +58 -0
- package/dist/skeleton-text.min.js +50 -0
- package/dist/skeleton-text.rtl.min.js +50 -0
- package/dist/skip-to-content.min.js +54 -0
- package/dist/skip-to-content.rtl.min.js +54 -0
- package/dist/slider.min.js +125 -0
- package/dist/slider.rtl.min.js +125 -0
- package/dist/slug.min.js +84 -0
- package/dist/slug.rtl.min.js +84 -0
- package/dist/spread-6bfe3826.js +58 -0
- package/dist/spread-eaa3f2b9.js +58 -0
- package/dist/stack.min.js +59 -0
- package/dist/stack.rtl.min.js +59 -0
- package/dist/state-63312e74.js +55 -0
- package/dist/structured-list.min.js +68 -0
- package/dist/structured-list.rtl.min.js +68 -0
- package/dist/tabs.min.js +114 -0
- package/dist/tabs.rtl.min.js +114 -0
- package/dist/tag.min.js +71 -0
- package/dist/tag.rtl.min.js +71 -0
- package/dist/text-input-08a8a922.js +119 -0
- package/dist/text-input-45ea7bf7.js +119 -0
- package/dist/text-input-4616af44.js +119 -0
- package/dist/text-input-6d08528b.js +119 -0
- package/dist/text-input.min.js +53 -0
- package/dist/text-input.rtl.min.js +53 -0
- package/dist/textarea.min.js +95 -0
- package/dist/textarea.rtl.min.js +95 -0
- package/dist/tile.min.js +106 -0
- package/dist/tile.rtl.min.js +106 -0
- package/dist/toggle-tip.min.js +50 -0
- package/dist/toggle-tip.rtl.min.js +50 -0
- package/dist/toggle.min.js +92 -0
- package/dist/toggle.rtl.min.js +92 -0
- package/dist/toggletip-0aa429db.js +90 -0
- package/dist/toggletip-0c43069a.js +90 -0
- package/dist/toggletip-6a368ecf.js +90 -0
- package/dist/toggletip-f3e84381.js +90 -0
- package/dist/tooltip-content-2470a2af.js +52 -0
- package/dist/tooltip-content-267c3eb7.js +52 -0
- package/dist/tooltip-content-3096d302.js +52 -0
- package/dist/tooltip-content-a38f2e85.js +52 -0
- package/dist/tooltip.min.js +50 -0
- package/dist/tooltip.rtl.min.js +50 -0
- package/dist/ui-shell.min.js +186 -0
- package/dist/ui-shell.rtl.min.js +186 -0
- package/dist/validity-d86ffa4f.js +58 -0
- package/es/components/accordion/accordion-item.d.ts +47 -27
- package/es/components/accordion/accordion-item.js +13 -3
- package/es/components/accordion/accordion-item.js.map +1 -1
- package/es/components/accordion/accordion.css.js +1 -1
- package/es/components/accordion/accordion.rtl.css.js +1 -1
- package/es/components/breadcrumb/breadcrumb.css.js +1 -1
- package/es/components/breadcrumb/breadcrumb.rtl.css.js +1 -1
- package/es/components/button/button.css.js +1 -1
- package/es/components/button/button.d.ts +98 -58
- package/es/components/button/button.js +3 -3
- package/es/components/button/button.js.map +1 -1
- package/es/components/button/button.rtl.css.js +1 -1
- package/es/components/checkbox/checkbox.css.js +1 -1
- package/es/components/checkbox/checkbox.d.ts +100 -60
- package/es/components/checkbox/checkbox.rtl.css.js +1 -1
- package/es/components/code-snippet/code-snippet.css.js +1 -1
- package/es/components/code-snippet/code-snippet.d.ts +47 -27
- package/es/components/code-snippet/code-snippet.js +1 -1
- package/es/components/code-snippet/code-snippet.js.map +1 -1
- package/es/components/code-snippet/code-snippet.rtl.css.js +1 -1
- package/es/components/combo-box/combo-box.css.js +1 -1
- package/es/components/combo-box/combo-box.d.ts +1 -1
- package/es/components/combo-box/combo-box.js +2 -1
- package/es/components/combo-box/combo-box.js.map +1 -1
- package/es/components/combo-box/combo-box.rtl.css.js +1 -1
- package/es/components/content-switcher/content-switcher-item.d.ts +47 -27
- package/es/components/content-switcher/content-switcher-item.js +3 -3
- package/es/components/content-switcher/content-switcher-item.js.map +1 -1
- package/es/components/content-switcher/content-switcher.css.js +1 -1
- package/es/components/content-switcher/content-switcher.rtl.css.js +1 -1
- package/es/components/copy/copy.js +14 -14
- package/es/components/copy/copy.js.map +1 -1
- package/es/components/copy-button/copy-button.css.js +1 -1
- package/es/components/copy-button/copy-button.d.ts +47 -27
- package/es/components/copy-button/copy-button.rtl.css.js +1 -1
- package/es/components/data-table/data-table.css.js +1 -1
- package/es/components/data-table/data-table.rtl.css.js +1 -1
- package/es/components/data-table/table-expanded-row.d.ts +47 -27
- package/es/components/data-table/table-header-cell.d.ts +47 -27
- package/es/components/data-table/table-row.d.ts +98 -58
- package/es/components/data-table/table-row.js +1 -1
- package/es/components/data-table/table-row.js.map +1 -1
- package/es/components/data-table/table-skeleton.js +2 -2
- package/es/components/data-table/table-skeleton.js.map +1 -1
- package/es/components/data-table/table-toolbar-search.d.ts +47 -27
- package/es/components/data-table/table-toolbar-search.js +1 -1
- package/es/components/data-table/table-toolbar-search.js.map +1 -1
- package/es/components/data-table/table.d.ts +47 -27
- package/es/components/data-table/table.js +2 -2
- package/es/components/data-table/table.js.map +1 -1
- package/es/components/date-picker/date-picker-input.d.ts +59 -27
- package/es/components/date-picker/date-picker-input.js +60 -19
- package/es/components/date-picker/date-picker-input.js.map +1 -1
- package/es/components/date-picker/date-picker.css.js +1 -1
- package/es/components/date-picker/date-picker.d.ts +98 -58
- package/es/components/date-picker/date-picker.rtl.css.js +1 -1
- package/es/components/dropdown/dropdown.css.js +1 -1
- package/es/components/dropdown/dropdown.d.ts +219 -126
- package/es/components/dropdown/dropdown.js +47 -1
- package/es/components/dropdown/dropdown.js.map +1 -1
- package/es/components/dropdown/dropdown.rtl.css.js +1 -1
- package/es/components/file-uploader/file-uploader-button.d.ts +47 -27
- package/es/components/file-uploader/file-uploader-button.js +7 -7
- package/es/components/file-uploader/file-uploader-button.js.map +1 -1
- package/es/components/file-uploader/file-uploader-drop-container.d.ts +47 -27
- package/es/components/file-uploader/file-uploader-drop-container.js +1 -1
- package/es/components/file-uploader/file-uploader-drop-container.js.map +1 -1
- package/es/components/file-uploader/file-uploader.css.js +1 -1
- package/es/components/file-uploader/file-uploader.rtl.css.js +1 -1
- package/es/components/floating-menu/floating-menu.d.ts +98 -58
- package/es/components/floating-menu/floating-menu.js +1 -1
- package/es/components/floating-menu/floating-menu.js.map +1 -1
- package/es/components/form/form-item.css.js +1 -1
- package/es/components/form/form-item.rtl.css.js +1 -1
- package/es/components/form-group/form-group.css.js +1 -1
- package/es/components/form-group/form-group.rtl.css.js +1 -1
- package/es/components/icon-button/icon-button.css.js +1 -1
- package/es/components/icon-button/icon-button.js +3 -3
- package/es/components/icon-button/icon-button.js.map +1 -1
- package/es/components/icon-button/icon-button.rtl.css.js +1 -1
- package/es/components/inline-loading/inline-loading.css.js +1 -1
- package/es/components/inline-loading/inline-loading.rtl.css.js +1 -1
- package/es/components/link/link.css.js +1 -1
- package/es/components/link/link.d.ts +54 -42
- package/es/components/link/link.js +7 -7
- package/es/components/link/link.js.map +1 -1
- package/es/components/link/link.rtl.css.js +1 -1
- package/es/components/list/list.css.js +1 -1
- package/es/components/list/list.rtl.css.js +1 -1
- package/es/components/loading/loading.css.js +1 -1
- package/es/components/loading/loading.rtl.css.js +1 -1
- package/es/components/modal/modal-close-button.d.ts +47 -27
- package/es/components/modal/modal.css.js +1 -1
- package/es/components/modal/modal.d.ts +47 -27
- package/es/components/modal/modal.rtl.css.js +1 -1
- package/es/components/multi-select/multi-select.css.js +1 -1
- package/es/components/multi-select/multi-select.js +15 -6
- package/es/components/multi-select/multi-select.js.map +1 -1
- package/es/components/multi-select/multi-select.rtl.css.js +1 -1
- package/es/components/notification/actionable-notification-button.js +1 -1
- package/es/components/notification/actionable-notification-button.js.map +1 -1
- package/es/components/notification/actionable-notification.css.js +1 -1
- package/es/components/notification/actionable-notification.d.ts +47 -27
- package/es/components/notification/actionable-notification.js +5 -5
- package/es/components/notification/actionable-notification.js.map +1 -1
- package/es/components/notification/actionable-notification.rtl.css.js +1 -1
- package/es/components/notification/inline-notification.css.js +1 -1
- package/es/components/notification/inline-notification.d.ts +47 -27
- package/es/components/notification/inline-notification.rtl.css.js +1 -1
- package/es/components/notification/toast-notification.css.js +1 -1
- package/es/components/notification/toast-notification.rtl.css.js +1 -1
- package/es/components/number-input/number-input.css.js +1 -1
- package/es/components/number-input/number-input.js +4 -2
- package/es/components/number-input/number-input.js.map +1 -1
- package/es/components/number-input/number-input.rtl.css.js +1 -1
- package/es/components/overflow-menu/overflow-menu-body.js +1 -1
- package/es/components/overflow-menu/overflow-menu-body.js.map +1 -1
- package/es/components/overflow-menu/overflow-menu-item.d.ts +47 -27
- package/es/components/overflow-menu/overflow-menu.css.js +1 -1
- package/es/components/overflow-menu/overflow-menu.d.ts +98 -58
- package/es/components/overflow-menu/overflow-menu.js +13 -13
- package/es/components/overflow-menu/overflow-menu.js.map +1 -1
- package/es/components/overflow-menu/overflow-menu.rtl.css.js +1 -1
- package/es/components/pagination/pagination.css.js +1 -1
- package/es/components/pagination/pagination.d.ts +100 -60
- package/es/components/pagination/pagination.js +6 -2
- package/es/components/pagination/pagination.js.map +1 -1
- package/es/components/pagination/pagination.rtl.css.js +1 -1
- package/es/components/popover/popover.css.js +1 -1
- package/es/components/popover/popover.rtl.css.js +1 -1
- package/es/components/progress-bar/progress-bar.css.js +1 -1
- package/es/components/progress-bar/progress-bar.rtl.css.js +1 -1
- package/es/components/progress-indicator/progress-indicator.css.js +1 -1
- package/es/components/progress-indicator/progress-indicator.rtl.css.js +1 -1
- package/es/components/progress-indicator/progress-step.d.ts +47 -27
- package/es/components/radio-button/radio-button-group.d.ts +98 -58
- package/es/components/radio-button/radio-button.css.js +1 -1
- package/es/components/radio-button/radio-button.d.ts +98 -58
- package/es/components/radio-button/radio-button.rtl.css.js +1 -1
- package/es/components/search/search.css.js +1 -1
- package/es/components/search/search.d.ts +149 -89
- package/es/components/search/search.js +3 -3
- package/es/components/search/search.js.map +1 -1
- package/es/components/search/search.rtl.css.js +1 -1
- package/es/components/select/select.css.js +1 -1
- package/es/components/select/select.d.ts +59 -27
- package/es/components/select/select.js +43 -3
- package/es/components/select/select.js.map +1 -1
- package/es/components/select/select.rtl.css.js +1 -1
- package/es/components/skeleton-placeholder/skeleton-placeholder.css.js +1 -1
- package/es/components/skeleton-placeholder/skeleton-placeholder.rtl.css.js +1 -1
- package/es/components/skeleton-text/skeleton-text.css.js +1 -1
- package/es/components/skeleton-text/skeleton-text.rtl.css.js +1 -1
- package/es/components/skip-to-content/skip-to-content.css.js +1 -1
- package/es/components/skip-to-content/skip-to-content.d.ts +47 -27
- package/es/components/skip-to-content/skip-to-content.rtl.css.js +1 -1
- package/es/components/slider/slider-input.d.ts +47 -27
- package/es/components/slider/slider.css.js +1 -1
- package/es/components/slider/slider.d.ts +149 -89
- package/es/components/slider/slider.js +2 -2
- package/es/components/slider/slider.js.map +1 -1
- package/es/components/slider/slider.rtl.css.js +1 -1
- package/es/components/slug/defs.d.ts +73 -0
- package/es/components/slug/defs.js +42 -0
- package/es/components/slug/defs.js.map +1 -0
- package/es/components/slug/index.d.ts +12 -0
- package/es/components/slug/index.js +12 -0
- package/es/components/slug/index.js.map +1 -0
- package/es/components/slug/slug-action-button.d.ts +23 -0
- package/es/components/slug/slug-action-button.js +51 -0
- package/es/components/slug/slug-action-button.js.map +1 -0
- package/es/components/slug/slug.css.js +12 -0
- package/es/components/slug/slug.d.ts +59 -0
- package/es/components/slug/slug.js +270 -0
- package/es/components/slug/slug.js.map +1 -0
- package/es/components/slug/slug.rtl.css.js +12 -0
- package/es/components/stack/stack.css.js +1 -1
- package/es/components/stack/stack.js +4 -3
- package/es/components/stack/stack.js.map +1 -1
- package/es/components/stack/stack.rtl.css.js +1 -1
- package/es/components/structured-list/structured-list-row.d.ts +47 -27
- package/es/components/structured-list/structured-list-row.js +1 -1
- package/es/components/structured-list/structured-list-row.js.map +1 -1
- package/es/components/structured-list/structured-list.css.js +1 -1
- package/es/components/structured-list/structured-list.d.ts +47 -27
- package/es/components/structured-list/structured-list.rtl.css.js +1 -1
- package/es/components/tabs/tab.d.ts +8 -0
- package/es/components/tabs/tab.js +30 -5
- package/es/components/tabs/tab.js.map +1 -1
- package/es/components/tabs/tabs.css.js +1 -1
- package/es/components/tabs/tabs.d.ts +58 -29
- package/es/components/tabs/tabs.js +53 -25
- package/es/components/tabs/tabs.js.map +1 -1
- package/es/components/tabs/tabs.rtl.css.js +1 -1
- package/es/components/tag/tag.css.js +1 -1
- package/es/components/tag/tag.d.ts +98 -58
- package/es/components/tag/tag.rtl.css.js +1 -1
- package/es/components/text-input/text-input.css.js +1 -1
- package/es/components/text-input/text-input.d.ts +112 -60
- package/es/components/text-input/text-input.js +46 -8
- package/es/components/text-input/text-input.js.map +1 -1
- package/es/components/text-input/text-input.rtl.css.js +1 -1
- package/es/components/textarea/textarea.css.js +1 -1
- package/es/components/textarea/textarea.js +4 -2
- package/es/components/textarea/textarea.js.map +1 -1
- package/es/components/textarea/textarea.rtl.css.js +1 -1
- package/es/components/tile/defs.d.ts +1 -1
- package/es/components/tile/defs.js +1 -1
- package/es/components/tile/defs.js.map +1 -1
- package/es/components/tile/expandable-tile.d.ts +98 -58
- package/es/components/tile/selectable-tile.d.ts +98 -58
- package/es/components/tile/tile-group.d.ts +47 -27
- package/es/components/tile/tile.css.js +1 -1
- package/es/components/tile/tile.js +1 -1
- package/es/components/tile/tile.js.map +1 -1
- package/es/components/tile/tile.rtl.css.js +1 -1
- package/es/components/toggle/index.d.ts +1 -1
- package/es/components/toggle/index.js +1 -1
- package/es/components/toggle/index.js.map +1 -1
- package/es/components/toggle/toggle.css.js +1 -1
- package/es/components/toggle/toggle.d.ts +47 -27
- package/es/components/toggle/toggle.rtl.css.js +1 -1
- package/es/components/toggle-tip/toggletip.css.js +1 -1
- package/es/components/toggle-tip/toggletip.d.ts +398 -29
- package/es/components/toggle-tip/toggletip.js +107 -32
- package/es/components/toggle-tip/toggletip.js.map +1 -1
- package/es/components/toggle-tip/toggletip.rtl.css.js +1 -1
- package/es/components/tooltip/tooltip-content.js +2 -2
- package/es/components/tooltip/tooltip-content.js.map +1 -1
- package/es/components/tooltip/tooltip.css.js +1 -1
- package/es/components/tooltip/tooltip.d.ts +47 -27
- package/es/components/tooltip/tooltip.js +3 -3
- package/es/components/tooltip/tooltip.js.map +1 -1
- package/es/components/tooltip/tooltip.rtl.css.js +1 -1
- package/es/components/ui-shell/header-menu-button.d.ts +47 -27
- package/es/components/ui-shell/header-menu.d.ts +98 -58
- package/es/components/ui-shell/header-name.d.ts +47 -27
- package/es/components/ui-shell/header-nav-item.d.ts +47 -27
- package/es/components/ui-shell/header.css.js +1 -1
- package/es/components/ui-shell/header.rtl.css.js +1 -1
- package/es/components/ui-shell/side-nav-link.d.ts +47 -27
- package/es/components/ui-shell/side-nav-link.js +1 -1
- package/es/components/ui-shell/side-nav-link.js.map +1 -1
- package/es/components/ui-shell/side-nav-menu-item.d.ts +48 -27
- package/es/components/ui-shell/side-nav-menu-item.js +11 -0
- package/es/components/ui-shell/side-nav-menu-item.js.map +1 -1
- package/es/components/ui-shell/side-nav-menu.d.ts +47 -27
- package/es/components/ui-shell/side-nav-menu.js +1 -1
- package/es/components/ui-shell/side-nav-menu.js.map +1 -1
- package/es/components/ui-shell/side-nav.css.js +1 -1
- package/es/components/ui-shell/side-nav.d.ts +47 -27
- package/es/components/ui-shell/side-nav.js +1 -1
- package/es/components/ui-shell/side-nav.js.map +1 -1
- package/es/components/ui-shell/side-nav.rtl.css.js +1 -1
- package/es/components/ui-shell/switcher-item.d.ts +47 -27
- package/es/components-react/slug/defs.d.ts +14 -0
- package/es/components-react/slug/defs.js +9 -0
- package/es/components-react/slug/index.d.ts +14 -0
- package/es/components-react/slug/index.js +8 -0
- package/es/components-react/slug/slug-action-button.d.ts +13 -0
- package/es/components-react/slug/slug-action-button.js +22 -0
- package/es/components-react/slug/slug.d.ts +13 -0
- package/es/components-react/slug/slug.js +22 -0
- package/es/globals/decorators/carbon-element.d.ts +1 -1
- package/es/globals/internal/feature-flags.d.ts +25 -0
- package/es/globals/internal/feature-flags.js +27 -0
- package/es/globals/internal/feature-flags.js.map +1 -0
- package/es/globals/internal/radio-group-manager.d.ts +1 -1
- package/es/globals/mixins/focus.d.ts +47 -27
- package/es/globals/mixins/form.d.ts +47 -27
- package/es/globals/mixins/host-listener.d.ts +47 -27
- package/es/globals/mixins/validity.d.ts +47 -27
- package/es/globals/scss/grid.css.js +1 -1
- package/es/globals/scss/grid.rtl.css.js +1 -1
- package/es/globals/scss/themes.css.js +1 -1
- package/es/globals/scss/themes.rtl.css.js +1 -1
- package/es/globals/settings.d.ts +1 -1
- package/es/globals/wrappers/createReactCustomElementType.js +2 -1
- package/es/globals/wrappers/createReactCustomElementType.js.map +1 -1
- package/es/icons/AI/16.d.ts +17 -0
- package/es/icons/AI/16.js +15 -0
- package/es/icons/AI/20.d.ts +17 -0
- package/es/icons/AI/20.js +15 -0
- package/es/icons/AI/24.d.ts +17 -0
- package/es/icons/AI/24.js +15 -0
- package/es/icons/AI/32.d.ts +17 -0
- package/es/icons/AI/32.js +15 -0
- package/es/icons/IP/16.d.ts +17 -0
- package/es/icons/IP/16.js +15 -0
- package/es/icons/IP/20.d.ts +17 -0
- package/es/icons/IP/20.js +15 -0
- package/es/icons/IP/24.d.ts +17 -0
- package/es/icons/IP/24.js +15 -0
- package/es/icons/IP/32.d.ts +17 -0
- package/es/icons/IP/32.js +15 -0
- package/es/icons/MAC/16.d.ts +17 -0
- package/es/icons/MAC/16.js +15 -0
- package/es/icons/MAC/20.d.ts +17 -0
- package/es/icons/MAC/20.js +15 -0
- package/es/icons/MAC/24.d.ts +17 -0
- package/es/icons/MAC/24.js +15 -0
- package/es/icons/MAC/32.d.ts +17 -0
- package/es/icons/MAC/32.js +15 -0
- package/es/icons/URL/16.d.ts +17 -0
- package/es/icons/URL/16.js +15 -0
- package/es/icons/URL/20.d.ts +17 -0
- package/es/icons/URL/20.js +15 -0
- package/es/icons/URL/24.d.ts +17 -0
- package/es/icons/URL/24.js +15 -0
- package/es/icons/URL/32.d.ts +17 -0
- package/es/icons/URL/32.js +15 -0
- package/es/icons/add--large/16.d.ts +17 -0
- package/es/icons/add--large/16.js +15 -0
- package/es/icons/add--large/20.d.ts +17 -0
- package/es/icons/add--large/20.js +15 -0
- package/es/icons/add--large/24.d.ts +17 -0
- package/es/icons/add--large/24.js +15 -0
- package/es/icons/add--large/32.d.ts +17 -0
- package/es/icons/add--large/32.js +15 -0
- package/es/icons/ai-governance--lifecycle/16.d.ts +17 -0
- package/es/icons/ai-governance--lifecycle/16.js +15 -0
- package/es/icons/ai-governance--lifecycle/20.d.ts +17 -0
- package/es/icons/ai-governance--lifecycle/20.js +15 -0
- package/es/icons/ai-governance--lifecycle/24.d.ts +17 -0
- package/es/icons/ai-governance--lifecycle/24.js +15 -0
- package/es/icons/ai-governance--lifecycle/32.d.ts +17 -0
- package/es/icons/ai-governance--lifecycle/32.js +15 -0
- package/es/icons/ai-governance--tracked/16.d.ts +17 -0
- package/es/icons/ai-governance--tracked/16.js +15 -0
- package/es/icons/ai-governance--tracked/20.d.ts +17 -0
- package/es/icons/ai-governance--tracked/20.js +15 -0
- package/es/icons/ai-governance--tracked/24.d.ts +17 -0
- package/es/icons/ai-governance--tracked/24.js +15 -0
- package/es/icons/ai-governance--tracked/32.d.ts +17 -0
- package/es/icons/ai-governance--tracked/32.js +15 -0
- package/es/icons/ai-governance--untracked/16.d.ts +17 -0
- package/es/icons/ai-governance--untracked/16.js +15 -0
- package/es/icons/ai-governance--untracked/20.d.ts +17 -0
- package/es/icons/ai-governance--untracked/20.js +15 -0
- package/es/icons/ai-governance--untracked/24.d.ts +17 -0
- package/es/icons/ai-governance--untracked/24.js +15 -0
- package/es/icons/ai-governance--untracked/32.d.ts +17 -0
- package/es/icons/ai-governance--untracked/32.js +15 -0
- package/es/icons/arithmetic-mean/16.d.ts +17 -0
- package/es/icons/arithmetic-mean/16.js +15 -0
- package/es/icons/arithmetic-mean/20.d.ts +17 -0
- package/es/icons/arithmetic-mean/20.js +15 -0
- package/es/icons/arithmetic-mean/24.d.ts +17 -0
- package/es/icons/arithmetic-mean/24.js +15 -0
- package/es/icons/arithmetic-mean/32.d.ts +17 -0
- package/es/icons/arithmetic-mean/32.js +15 -0
- package/es/icons/arithmetic-median/16.d.ts +17 -0
- package/es/icons/arithmetic-median/16.js +15 -0
- package/es/icons/arithmetic-median/20.d.ts +17 -0
- package/es/icons/arithmetic-median/20.js +15 -0
- package/es/icons/arithmetic-median/24.d.ts +17 -0
- package/es/icons/arithmetic-median/24.js +15 -0
- package/es/icons/arithmetic-median/32.d.ts +17 -0
- package/es/icons/arithmetic-median/32.js +15 -0
- package/es/icons/async/16.d.ts +17 -0
- package/es/icons/async/16.js +15 -0
- package/es/icons/async/20.d.ts +17 -0
- package/es/icons/async/20.js +15 -0
- package/es/icons/async/24.d.ts +17 -0
- package/es/icons/async/24.js +15 -0
- package/es/icons/async/32.d.ts +17 -0
- package/es/icons/async/32.js +15 -0
- package/es/icons/business-processes/16.d.ts +17 -0
- package/es/icons/business-processes/16.js +15 -0
- package/es/icons/business-processes/20.d.ts +17 -0
- package/es/icons/business-processes/20.js +15 -0
- package/es/icons/business-processes/24.d.ts +17 -0
- package/es/icons/business-processes/24.js +15 -0
- package/es/icons/business-processes/32.d.ts +17 -0
- package/es/icons/business-processes/32.js +15 -0
- package/es/icons/calls/16.d.ts +17 -0
- package/es/icons/calls/16.js +15 -0
- package/es/icons/calls/20.d.ts +17 -0
- package/es/icons/calls/20.js +15 -0
- package/es/icons/calls/24.d.ts +17 -0
- package/es/icons/calls/24.js +15 -0
- package/es/icons/calls/32.d.ts +17 -0
- package/es/icons/calls/32.js +15 -0
- package/es/icons/calls--all/16.d.ts +17 -0
- package/es/icons/calls--all/16.js +15 -0
- package/es/icons/calls--all/20.d.ts +17 -0
- package/es/icons/calls--all/20.js +15 -0
- package/es/icons/calls--all/24.d.ts +17 -0
- package/es/icons/calls--all/24.js +15 -0
- package/es/icons/calls--all/32.d.ts +17 -0
- package/es/icons/calls--all/32.js +15 -0
- package/es/icons/calls--incoming/16.d.ts +17 -0
- package/es/icons/calls--incoming/16.js +15 -0
- package/es/icons/calls--incoming/20.d.ts +17 -0
- package/es/icons/calls--incoming/20.js +15 -0
- package/es/icons/calls--incoming/24.d.ts +17 -0
- package/es/icons/calls--incoming/24.js +15 -0
- package/es/icons/calls--incoming/32.d.ts +17 -0
- package/es/icons/calls--incoming/32.js +15 -0
- package/es/icons/carbon-for-mobile/16.d.ts +17 -0
- package/es/icons/carbon-for-mobile/16.js +15 -0
- package/es/icons/carbon-for-mobile/20.d.ts +17 -0
- package/es/icons/carbon-for-mobile/20.js +15 -0
- package/es/icons/carbon-for-mobile/24.d.ts +17 -0
- package/es/icons/carbon-for-mobile/24.js +15 -0
- package/es/icons/carbon-for-mobile/32.d.ts +17 -0
- package/es/icons/carbon-for-mobile/32.js +15 -0
- package/es/icons/chart--dual-y-axis/16.d.ts +17 -0
- package/es/icons/chart--dual-y-axis/16.js +15 -0
- package/es/icons/chart--dual-y-axis/20.d.ts +17 -0
- package/es/icons/chart--dual-y-axis/20.js +15 -0
- package/es/icons/chart--dual-y-axis/24.d.ts +17 -0
- package/es/icons/chart--dual-y-axis/24.js +15 -0
- package/es/icons/chart--dual-y-axis/32.d.ts +17 -0
- package/es/icons/chart--dual-y-axis/32.js +15 -0
- package/es/icons/chart--planning-waterfall/16.d.ts +17 -0
- package/es/icons/chart--planning-waterfall/16.js +15 -0
- package/es/icons/chart--planning-waterfall/20.d.ts +17 -0
- package/es/icons/chart--planning-waterfall/20.js +15 -0
- package/es/icons/chart--planning-waterfall/24.d.ts +17 -0
- package/es/icons/chart--planning-waterfall/24.js +15 -0
- package/es/icons/chart--planning-waterfall/32.d.ts +17 -0
- package/es/icons/chart--planning-waterfall/32.js +15 -0
- package/es/icons/chevron--down--outline/16.d.ts +17 -0
- package/es/icons/chevron--down--outline/16.js +15 -0
- package/es/icons/chevron--down--outline/20.d.ts +17 -0
- package/es/icons/chevron--down--outline/20.js +15 -0
- package/es/icons/chevron--down--outline/24.d.ts +17 -0
- package/es/icons/chevron--down--outline/24.js +15 -0
- package/es/icons/chevron--down--outline/32.d.ts +17 -0
- package/es/icons/chevron--down--outline/32.js +15 -0
- package/es/icons/chevron--up--outline/16.d.ts +17 -0
- package/es/icons/chevron--up--outline/16.js +15 -0
- package/es/icons/chevron--up--outline/20.d.ts +17 -0
- package/es/icons/chevron--up--outline/20.js +15 -0
- package/es/icons/chevron--up--outline/24.d.ts +17 -0
- package/es/icons/chevron--up--outline/24.js +15 -0
- package/es/icons/chevron--up--outline/32.d.ts +17 -0
- package/es/icons/chevron--up--outline/32.js +15 -0
- package/es/icons/close/16.js +1 -1
- package/es/icons/close/20.js +1 -1
- package/es/icons/close/24.js +1 -1
- package/es/icons/close/32.js +1 -1
- package/es/icons/close--large/16.d.ts +17 -0
- package/es/icons/close--large/16.js +15 -0
- package/es/icons/close--large/20.d.ts +17 -0
- package/es/icons/close--large/20.js +15 -0
- package/es/icons/close--large/24.d.ts +17 -0
- package/es/icons/close--large/24.js +15 -0
- package/es/icons/close--large/32.d.ts +17 -0
- package/es/icons/close--large/32.js +15 -0
- package/es/icons/customer/16.d.ts +17 -0
- package/es/icons/customer/16.js +15 -0
- package/es/icons/customer/20.d.ts +17 -0
- package/es/icons/customer/20.js +15 -0
- package/es/icons/customer/24.d.ts +17 -0
- package/es/icons/customer/24.js +15 -0
- package/es/icons/customer/32.d.ts +17 -0
- package/es/icons/customer/32.js +15 -0
- package/es/icons/data--reference/16.js +1 -1
- package/es/icons/data--reference/20.js +1 -1
- package/es/icons/data--reference/24.js +1 -1
- package/es/icons/data--reference/32.js +1 -1
- package/es/icons/data--set/16.js +1 -1
- package/es/icons/data--set/20.js +1 -1
- package/es/icons/data--set/24.js +1 -1
- package/es/icons/data--set/32.js +1 -1
- package/es/icons/data--unreal/16.d.ts +17 -0
- package/es/icons/data--unreal/16.js +15 -0
- package/es/icons/data--unreal/20.d.ts +17 -0
- package/es/icons/data--unreal/20.js +15 -0
- package/es/icons/data--unreal/24.d.ts +17 -0
- package/es/icons/data--unreal/24.js +15 -0
- package/es/icons/data--unreal/32.d.ts +17 -0
- package/es/icons/data--unreal/32.js +15 -0
- package/es/icons/data-analytics/16.d.ts +17 -0
- package/es/icons/data-analytics/16.js +15 -0
- package/es/icons/data-analytics/20.d.ts +17 -0
- package/es/icons/data-analytics/20.js +15 -0
- package/es/icons/data-analytics/24.d.ts +17 -0
- package/es/icons/data-analytics/24.js +15 -0
- package/es/icons/data-analytics/32.d.ts +17 -0
- package/es/icons/data-analytics/32.js +15 -0
- package/es/icons/database--enterprisedb/16.d.ts +17 -0
- package/es/icons/database--enterprisedb/16.js +15 -0
- package/es/icons/database--enterprisedb/20.d.ts +17 -0
- package/es/icons/database--enterprisedb/20.js +15 -0
- package/es/icons/database--enterprisedb/24.d.ts +17 -0
- package/es/icons/database--enterprisedb/24.js +15 -0
- package/es/icons/database--enterprisedb/32.d.ts +17 -0
- package/es/icons/database--enterprisedb/32.js +15 -0
- package/es/icons/database--messaging/16.d.ts +17 -0
- package/es/icons/database--messaging/16.js +15 -0
- package/es/icons/database--messaging/20.d.ts +17 -0
- package/es/icons/database--messaging/20.js +15 -0
- package/es/icons/database--messaging/24.d.ts +17 -0
- package/es/icons/database--messaging/24.js +15 -0
- package/es/icons/database--messaging/32.d.ts +17 -0
- package/es/icons/database--messaging/32.js +15 -0
- package/es/icons/delete/16.d.ts +17 -0
- package/es/icons/delete/16.js +15 -0
- package/es/icons/delete/20.d.ts +17 -0
- package/es/icons/delete/20.js +15 -0
- package/es/icons/delete/24.d.ts +17 -0
- package/es/icons/delete/24.js +15 -0
- package/es/icons/delete/32.d.ts +17 -0
- package/es/icons/delete/32.js +15 -0
- package/es/icons/demo/16.d.ts +17 -0
- package/es/icons/demo/16.js +15 -0
- package/es/icons/demo/20.d.ts +17 -0
- package/es/icons/demo/20.js +15 -0
- package/es/icons/demo/24.d.ts +17 -0
- package/es/icons/demo/24.js +15 -0
- package/es/icons/demo/32.d.ts +17 -0
- package/es/icons/demo/32.js +15 -0
- package/es/icons/devices--apps/16.d.ts +17 -0
- package/es/icons/devices--apps/16.js +15 -0
- package/es/icons/devices--apps/20.d.ts +17 -0
- package/es/icons/devices--apps/20.js +15 -0
- package/es/icons/devices--apps/24.d.ts +17 -0
- package/es/icons/devices--apps/24.js +15 -0
- package/es/icons/devices--apps/32.d.ts +17 -0
- package/es/icons/devices--apps/32.js +15 -0
- package/es/icons/downstream/16.d.ts +17 -0
- package/es/icons/downstream/16.js +15 -0
- package/es/icons/downstream/20.d.ts +17 -0
- package/es/icons/downstream/20.js +15 -0
- package/es/icons/downstream/24.d.ts +17 -0
- package/es/icons/downstream/24.js +15 -0
- package/es/icons/downstream/32.d.ts +17 -0
- package/es/icons/downstream/32.js +15 -0
- package/es/icons/equal--approximately/16.d.ts +17 -0
- package/es/icons/equal--approximately/16.js +15 -0
- package/es/icons/equal--approximately/20.d.ts +17 -0
- package/es/icons/equal--approximately/20.js +15 -0
- package/es/icons/equal--approximately/24.d.ts +17 -0
- package/es/icons/equal--approximately/24.js +15 -0
- package/es/icons/equal--approximately/32.d.ts +17 -0
- package/es/icons/equal--approximately/32.js +15 -0
- package/es/icons/event--change/16.d.ts +17 -0
- package/es/icons/event--change/16.js +15 -0
- package/es/icons/event--change/20.d.ts +17 -0
- package/es/icons/event--change/20.js +15 -0
- package/es/icons/event--change/24.d.ts +17 -0
- package/es/icons/event--change/24.js +15 -0
- package/es/icons/event--change/32.d.ts +17 -0
- package/es/icons/event--change/32.js +15 -0
- package/es/icons/event--incident/16.d.ts +17 -0
- package/es/icons/event--incident/16.js +15 -0
- package/es/icons/event--incident/20.d.ts +17 -0
- package/es/icons/event--incident/20.js +15 -0
- package/es/icons/event--incident/24.d.ts +17 -0
- package/es/icons/event--incident/24.js +15 -0
- package/es/icons/event--incident/32.d.ts +17 -0
- package/es/icons/event--incident/32.js +15 -0
- package/es/icons/event--warning/16.d.ts +17 -0
- package/es/icons/event--warning/16.js +15 -0
- package/es/icons/event--warning/20.d.ts +17 -0
- package/es/icons/event--warning/20.js +15 -0
- package/es/icons/event--warning/24.d.ts +17 -0
- package/es/icons/event--warning/24.js +15 -0
- package/es/icons/event--warning/32.d.ts +17 -0
- package/es/icons/event--warning/32.js +15 -0
- package/es/icons/foundation-model/16.d.ts +17 -0
- package/es/icons/foundation-model/16.js +15 -0
- package/es/icons/foundation-model/20.d.ts +17 -0
- package/es/icons/foundation-model/20.js +15 -0
- package/es/icons/foundation-model/24.d.ts +17 -0
- package/es/icons/foundation-model/24.js +15 -0
- package/es/icons/foundation-model/32.d.ts +17 -0
- package/es/icons/foundation-model/32.js +15 -0
- package/es/icons/global-loan-and-trial/16.d.ts +17 -0
- package/es/icons/global-loan-and-trial/16.js +15 -0
- package/es/icons/global-loan-and-trial/20.d.ts +17 -0
- package/es/icons/global-loan-and-trial/20.js +15 -0
- package/es/icons/global-loan-and-trial/24.d.ts +17 -0
- package/es/icons/global-loan-and-trial/24.js +15 -0
- package/es/icons/global-loan-and-trial/32.d.ts +17 -0
- package/es/icons/global-loan-and-trial/32.js +15 -0
- package/es/icons/ibm--ai-on-z/16.d.ts +17 -0
- package/es/icons/ibm--ai-on-z/16.js +15 -0
- package/es/icons/ibm--ai-on-z/20.d.ts +17 -0
- package/es/icons/ibm--ai-on-z/20.js +15 -0
- package/es/icons/ibm--ai-on-z/24.d.ts +17 -0
- package/es/icons/ibm--ai-on-z/24.js +15 -0
- package/es/icons/ibm--ai-on-z/32.d.ts +17 -0
- package/es/icons/ibm--ai-on-z/32.js +15 -0
- package/es/icons/ibm--aiops-insights/16.d.ts +17 -0
- package/es/icons/ibm--aiops-insights/16.js +15 -0
- package/es/icons/ibm--aiops-insights/20.d.ts +17 -0
- package/es/icons/ibm--aiops-insights/20.js +15 -0
- package/es/icons/ibm--aiops-insights/24.d.ts +17 -0
- package/es/icons/ibm--aiops-insights/24.js +15 -0
- package/es/icons/ibm--aiops-insights/32.d.ts +17 -0
- package/es/icons/ibm--aiops-insights/32.js +15 -0
- package/es/icons/ibm--cloudant/16.d.ts +17 -0
- package/es/icons/ibm--cloudant/16.js +15 -0
- package/es/icons/ibm--cloudant/20.d.ts +17 -0
- package/es/icons/ibm--cloudant/20.js +15 -0
- package/es/icons/ibm--cloudant/24.d.ts +17 -0
- package/es/icons/ibm--cloudant/24.js +15 -0
- package/es/icons/ibm--cloudant/32.d.ts +17 -0
- package/es/icons/ibm--cloudant/32.js +15 -0
- package/es/icons/ibm--data-product-exchange/16.d.ts +17 -0
- package/es/icons/ibm--data-product-exchange/16.js +15 -0
- package/es/icons/ibm--data-product-exchange/20.d.ts +17 -0
- package/es/icons/ibm--data-product-exchange/20.js +15 -0
- package/es/icons/ibm--data-product-exchange/24.d.ts +17 -0
- package/es/icons/ibm--data-product-exchange/24.js +15 -0
- package/es/icons/ibm--data-product-exchange/32.d.ts +17 -0
- package/es/icons/ibm--data-product-exchange/32.js +15 -0
- package/es/icons/ibm--db2/16.js +1 -1
- package/es/icons/ibm--db2/20.js +1 -1
- package/es/icons/ibm--db2/24.js +1 -1
- package/es/icons/ibm--db2/32.js +1 -1
- package/es/icons/ibm--db2-warehouse/16.d.ts +17 -0
- package/es/icons/ibm--db2-warehouse/16.js +15 -0
- package/es/icons/ibm--db2-warehouse/20.d.ts +17 -0
- package/es/icons/ibm--db2-warehouse/20.js +15 -0
- package/es/icons/ibm--db2-warehouse/24.d.ts +17 -0
- package/es/icons/ibm--db2-warehouse/24.js +15 -0
- package/es/icons/ibm--db2-warehouse/32.d.ts +17 -0
- package/es/icons/ibm--db2-warehouse/32.js +15 -0
- package/es/icons/ibm--dynamic-route-server/16.d.ts +17 -0
- package/es/icons/ibm--dynamic-route-server/16.js +15 -0
- package/es/icons/ibm--dynamic-route-server/20.d.ts +17 -0
- package/es/icons/ibm--dynamic-route-server/20.js +15 -0
- package/es/icons/ibm--dynamic-route-server/24.d.ts +17 -0
- package/es/icons/ibm--dynamic-route-server/24.js +15 -0
- package/es/icons/ibm--dynamic-route-server/32.d.ts +17 -0
- package/es/icons/ibm--dynamic-route-server/32.js +15 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/16.d.ts +17 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/16.js +15 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/20.d.ts +17 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/20.js +15 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/24.d.ts +17 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/24.js +15 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/32.d.ts +17 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-model-manager/32.js +15 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/16.d.ts +17 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/16.js +15 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/20.d.ts +17 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/20.js +15 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/24.d.ts +17 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/24.js +15 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/32.d.ts +17 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn1/32.js +15 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/16.d.ts +17 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/16.js +15 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/20.d.ts +17 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/20.js +15 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/24.d.ts +17 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/24.js +15 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/32.d.ts +17 -0
- package/es/icons/ibm--engineering-systems-design-rhapsody-sn2/32.js +15 -0
- package/es/icons/ibm--event-automation/16.d.ts +17 -0
- package/es/icons/ibm--event-automation/16.js +15 -0
- package/es/icons/ibm--event-automation/20.d.ts +17 -0
- package/es/icons/ibm--event-automation/20.js +15 -0
- package/es/icons/ibm--event-automation/24.d.ts +17 -0
- package/es/icons/ibm--event-automation/24.js +15 -0
- package/es/icons/ibm--event-automation/32.d.ts +17 -0
- package/es/icons/ibm--event-automation/32.js +15 -0
- package/es/icons/ibm--event-endpoint-mgmt/16.d.ts +17 -0
- package/es/icons/ibm--event-endpoint-mgmt/16.js +15 -0
- package/es/icons/ibm--event-endpoint-mgmt/20.d.ts +17 -0
- package/es/icons/ibm--event-endpoint-mgmt/20.js +15 -0
- package/es/icons/ibm--event-endpoint-mgmt/24.d.ts +17 -0
- package/es/icons/ibm--event-endpoint-mgmt/24.js +15 -0
- package/es/icons/ibm--event-endpoint-mgmt/32.d.ts +17 -0
- package/es/icons/ibm--event-endpoint-mgmt/32.js +15 -0
- package/es/icons/ibm--event-processing/16.d.ts +17 -0
- package/es/icons/ibm--event-processing/16.js +15 -0
- package/es/icons/ibm--event-processing/20.d.ts +17 -0
- package/es/icons/ibm--event-processing/20.js +15 -0
- package/es/icons/ibm--event-processing/24.d.ts +17 -0
- package/es/icons/ibm--event-processing/24.js +15 -0
- package/es/icons/ibm--event-processing/32.d.ts +17 -0
- package/es/icons/ibm--event-processing/32.js +15 -0
- package/es/icons/ibm--event-streams/16.d.ts +17 -0
- package/es/icons/ibm--event-streams/16.js +15 -0
- package/es/icons/ibm--event-streams/20.d.ts +17 -0
- package/es/icons/ibm--event-streams/20.js +15 -0
- package/es/icons/ibm--event-streams/24.d.ts +17 -0
- package/es/icons/ibm--event-streams/24.js +15 -0
- package/es/icons/ibm--event-streams/32.d.ts +17 -0
- package/es/icons/ibm--event-streams/32.js +15 -0
- package/es/icons/ibm--ibv/16.d.ts +17 -0
- package/es/icons/ibm--ibv/16.js +15 -0
- package/es/icons/ibm--ibv/20.d.ts +17 -0
- package/es/icons/ibm--ibv/20.js +15 -0
- package/es/icons/ibm--ibv/24.d.ts +17 -0
- package/es/icons/ibm--ibv/24.js +15 -0
- package/es/icons/ibm--ibv/32.d.ts +17 -0
- package/es/icons/ibm--ibv/32.js +15 -0
- package/es/icons/ibm--instana/16.d.ts +17 -0
- package/es/icons/ibm--instana/16.js +15 -0
- package/es/icons/ibm--instana/20.d.ts +17 -0
- package/es/icons/ibm--instana/20.js +15 -0
- package/es/icons/ibm--instana/24.d.ts +17 -0
- package/es/icons/ibm--instana/24.js +15 -0
- package/es/icons/ibm--instana/32.d.ts +17 -0
- package/es/icons/ibm--instana/32.js +15 -0
- package/es/icons/ibm--power-vs-private-cloud/16.d.ts +17 -0
- package/es/icons/ibm--power-vs-private-cloud/16.js +15 -0
- package/es/icons/ibm--power-vs-private-cloud/20.d.ts +17 -0
- package/es/icons/ibm--power-vs-private-cloud/20.js +15 -0
- package/es/icons/ibm--power-vs-private-cloud/24.d.ts +17 -0
- package/es/icons/ibm--power-vs-private-cloud/24.js +15 -0
- package/es/icons/ibm--power-vs-private-cloud/32.d.ts +17 -0
- package/es/icons/ibm--power-vs-private-cloud/32.js +15 -0
- package/es/icons/ibm--saas-console/16.d.ts +17 -0
- package/es/icons/ibm--saas-console/16.js +15 -0
- package/es/icons/ibm--saas-console/20.d.ts +17 -0
- package/es/icons/ibm--saas-console/20.js +15 -0
- package/es/icons/ibm--saas-console/24.d.ts +17 -0
- package/es/icons/ibm--saas-console/24.js +15 -0
- package/es/icons/ibm--saas-console/32.d.ts +17 -0
- package/es/icons/ibm--saas-console/32.js +15 -0
- package/es/icons/ibm--turbonomic/16.d.ts +17 -0
- package/es/icons/ibm--turbonomic/16.js +15 -0
- package/es/icons/ibm--turbonomic/20.d.ts +17 -0
- package/es/icons/ibm--turbonomic/20.js +15 -0
- package/es/icons/ibm--turbonomic/24.d.ts +17 -0
- package/es/icons/ibm--turbonomic/24.js +15 -0
- package/es/icons/ibm--turbonomic/32.d.ts +17 -0
- package/es/icons/ibm--turbonomic/32.js +15 -0
- package/es/icons/ibm--vpn-for-vpc/16.d.ts +17 -0
- package/es/icons/ibm--vpn-for-vpc/16.js +15 -0
- package/es/icons/ibm--vpn-for-vpc/20.d.ts +17 -0
- package/es/icons/ibm--vpn-for-vpc/20.js +15 -0
- package/es/icons/ibm--vpn-for-vpc/24.d.ts +17 -0
- package/es/icons/ibm--vpn-for-vpc/24.js +15 -0
- package/es/icons/ibm--vpn-for-vpc/32.d.ts +17 -0
- package/es/icons/ibm--vpn-for-vpc/32.js +15 -0
- package/es/icons/ibm--wazi-deploy/16.d.ts +17 -0
- package/es/icons/ibm--wazi-deploy/16.js +15 -0
- package/es/icons/ibm--wazi-deploy/20.d.ts +17 -0
- package/es/icons/ibm--wazi-deploy/20.js +15 -0
- package/es/icons/ibm--wazi-deploy/24.d.ts +17 -0
- package/es/icons/ibm--wazi-deploy/24.js +15 -0
- package/es/icons/ibm--wazi-deploy/32.d.ts +17 -0
- package/es/icons/ibm--wazi-deploy/32.js +15 -0
- package/es/icons/ibm-cloud--bare-metal-server/16.d.ts +17 -0
- package/es/icons/ibm-cloud--bare-metal-server/16.js +15 -0
- package/es/icons/ibm-cloud--bare-metal-server/20.d.ts +17 -0
- package/es/icons/ibm-cloud--bare-metal-server/20.js +15 -0
- package/es/icons/ibm-cloud--bare-metal-server/24.d.ts +17 -0
- package/es/icons/ibm-cloud--bare-metal-server/24.js +15 -0
- package/es/icons/ibm-cloud--bare-metal-server/32.d.ts +17 -0
- package/es/icons/ibm-cloud--bare-metal-server/32.js +15 -0
- package/es/icons/ibm-cloud--bare-metal-servers-vpc/16.d.ts +17 -0
- package/es/icons/ibm-cloud--bare-metal-servers-vpc/16.js +15 -0
- package/es/icons/ibm-cloud--bare-metal-servers-vpc/20.d.ts +17 -0
- package/es/icons/ibm-cloud--bare-metal-servers-vpc/20.js +15 -0
- package/es/icons/ibm-cloud--bare-metal-servers-vpc/24.d.ts +17 -0
- package/es/icons/ibm-cloud--bare-metal-servers-vpc/24.js +15 -0
- package/es/icons/ibm-cloud--bare-metal-servers-vpc/32.d.ts +17 -0
- package/es/icons/ibm-cloud--bare-metal-servers-vpc/32.js +15 -0
- package/es/icons/ibm-cloud--hpc/16.d.ts +17 -0
- package/es/icons/ibm-cloud--hpc/16.js +15 -0
- package/es/icons/ibm-cloud--hpc/20.d.ts +17 -0
- package/es/icons/ibm-cloud--hpc/20.js +15 -0
- package/es/icons/ibm-cloud--hpc/24.d.ts +17 -0
- package/es/icons/ibm-cloud--hpc/24.js +15 -0
- package/es/icons/ibm-cloud--hpc/32.d.ts +17 -0
- package/es/icons/ibm-cloud--hpc/32.js +15 -0
- package/es/icons/ibm-cloud--pal/16.js +1 -1
- package/es/icons/ibm-cloud--pal/20.js +1 -1
- package/es/icons/ibm-cloud--pal/24.js +1 -1
- package/es/icons/ibm-cloud--pal/32.js +1 -1
- package/es/icons/ibm-cloud--transit-gateway/16.js +1 -1
- package/es/icons/ibm-cloud--transit-gateway/20.js +1 -1
- package/es/icons/ibm-cloud--transit-gateway/24.js +1 -1
- package/es/icons/ibm-cloud--transit-gateway/32.js +1 -1
- package/es/icons/ibm-cloud--virtual-server-classic/16.d.ts +17 -0
- package/es/icons/ibm-cloud--virtual-server-classic/16.js +15 -0
- package/es/icons/ibm-cloud--virtual-server-classic/20.d.ts +17 -0
- package/es/icons/ibm-cloud--virtual-server-classic/20.js +15 -0
- package/es/icons/ibm-cloud--virtual-server-classic/24.d.ts +17 -0
- package/es/icons/ibm-cloud--virtual-server-classic/24.js +15 -0
- package/es/icons/ibm-cloud--virtual-server-classic/32.d.ts +17 -0
- package/es/icons/ibm-cloud--virtual-server-classic/32.js +15 -0
- package/es/icons/ibm-cloud--virtual-server-vpc/16.d.ts +17 -0
- package/es/icons/ibm-cloud--virtual-server-vpc/16.js +15 -0
- package/es/icons/ibm-cloud--virtual-server-vpc/20.d.ts +17 -0
- package/es/icons/ibm-cloud--virtual-server-vpc/20.js +15 -0
- package/es/icons/ibm-cloud--virtual-server-vpc/24.d.ts +17 -0
- package/es/icons/ibm-cloud--virtual-server-vpc/24.js +15 -0
- package/es/icons/ibm-cloud--virtual-server-vpc/32.d.ts +17 -0
- package/es/icons/ibm-cloud--virtual-server-vpc/32.js +15 -0
- package/es/icons/ibm-cloud--vpc/16.d.ts +17 -0
- package/es/icons/ibm-cloud--vpc/16.js +15 -0
- package/es/icons/ibm-cloud--vpc/20.d.ts +17 -0
- package/es/icons/ibm-cloud--vpc/20.js +15 -0
- package/es/icons/ibm-cloud--vpc/24.d.ts +17 -0
- package/es/icons/ibm-cloud--vpc/24.js +15 -0
- package/es/icons/ibm-cloud--vpc/32.d.ts +17 -0
- package/es/icons/ibm-cloud--vpc/32.js +15 -0
- package/es/icons/ibm-watsonx--assistant/16.d.ts +17 -0
- package/es/icons/ibm-watsonx--assistant/16.js +15 -0
- package/es/icons/ibm-watsonx--assistant/20.d.ts +17 -0
- package/es/icons/ibm-watsonx--assistant/20.js +15 -0
- package/es/icons/ibm-watsonx--assistant/24.d.ts +17 -0
- package/es/icons/ibm-watsonx--assistant/24.js +15 -0
- package/es/icons/ibm-watsonx--assistant/32.d.ts +17 -0
- package/es/icons/ibm-watsonx--assistant/32.js +15 -0
- package/es/icons/ibm-watsonx--code-assistant/16.d.ts +17 -0
- package/es/icons/ibm-watsonx--code-assistant/16.js +15 -0
- package/es/icons/ibm-watsonx--code-assistant/20.d.ts +17 -0
- package/es/icons/ibm-watsonx--code-assistant/20.js +15 -0
- package/es/icons/ibm-watsonx--code-assistant/24.d.ts +17 -0
- package/es/icons/ibm-watsonx--code-assistant/24.js +15 -0
- package/es/icons/ibm-watsonx--code-assistant/32.d.ts +17 -0
- package/es/icons/ibm-watsonx--code-assistant/32.js +15 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z/16.d.ts +17 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z/16.js +15 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z/20.d.ts +17 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z/20.js +15 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z/24.d.ts +17 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z/24.js +15 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z/32.d.ts +17 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z/32.js +15 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/16.d.ts +17 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/16.js +15 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/20.d.ts +17 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/20.js +15 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/24.d.ts +17 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/24.js +15 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/32.d.ts +17 -0
- package/es/icons/ibm-watsonx--code-assistant-for-z--refactor/32.js +15 -0
- package/es/icons/ibm-watsonx--orchestrate/16.d.ts +17 -0
- package/es/icons/ibm-watsonx--orchestrate/16.js +15 -0
- package/es/icons/ibm-watsonx--orchestrate/20.d.ts +17 -0
- package/es/icons/ibm-watsonx--orchestrate/20.js +15 -0
- package/es/icons/ibm-watsonx--orchestrate/24.d.ts +17 -0
- package/es/icons/ibm-watsonx--orchestrate/24.js +15 -0
- package/es/icons/ibm-watsonx--orchestrate/32.d.ts +17 -0
- package/es/icons/ibm-watsonx--orchestrate/32.js +15 -0
- package/es/icons/ibm-z--processor-capacity-reference/16.d.ts +17 -0
- package/es/icons/ibm-z--processor-capacity-reference/16.js +15 -0
- package/es/icons/ibm-z--processor-capacity-reference/20.d.ts +17 -0
- package/es/icons/ibm-z--processor-capacity-reference/20.js +15 -0
- package/es/icons/ibm-z--processor-capacity-reference/24.d.ts +17 -0
- package/es/icons/ibm-z--processor-capacity-reference/24.js +15 -0
- package/es/icons/ibm-z--processor-capacity-reference/32.d.ts +17 -0
- package/es/icons/ibm-z--processor-capacity-reference/32.js +15 -0
- package/es/icons/ibm-z-os/16.d.ts +17 -0
- package/es/icons/ibm-z-os/16.js +15 -0
- package/es/icons/ibm-z-os/20.d.ts +17 -0
- package/es/icons/ibm-z-os/20.js +15 -0
- package/es/icons/ibm-z-os/24.d.ts +17 -0
- package/es/icons/ibm-z-os/24.js +15 -0
- package/es/icons/ibm-z-os/32.d.ts +17 -0
- package/es/icons/ibm-z-os/32.js +15 -0
- package/es/icons/infinity/16.d.ts +17 -0
- package/es/icons/infinity/16.js +15 -0
- package/es/icons/infinity/20.d.ts +17 -0
- package/es/icons/infinity/20.js +15 -0
- package/es/icons/infinity/24.d.ts +17 -0
- package/es/icons/infinity/24.js +15 -0
- package/es/icons/infinity/32.d.ts +17 -0
- package/es/icons/infinity/32.js +15 -0
- package/es/icons/js-error/16.d.ts +17 -0
- package/es/icons/js-error/16.js +15 -0
- package/es/icons/js-error/20.d.ts +17 -0
- package/es/icons/js-error/20.js +15 -0
- package/es/icons/js-error/24.d.ts +17 -0
- package/es/icons/js-error/24.js +15 -0
- package/es/icons/js-error/32.d.ts +17 -0
- package/es/icons/js-error/32.js +15 -0
- package/es/icons/kubernetes--ip-address/16.d.ts +17 -0
- package/es/icons/kubernetes--ip-address/16.js +15 -0
- package/es/icons/kubernetes--ip-address/20.d.ts +17 -0
- package/es/icons/kubernetes--ip-address/20.js +15 -0
- package/es/icons/kubernetes--ip-address/24.d.ts +17 -0
- package/es/icons/kubernetes--ip-address/24.js +15 -0
- package/es/icons/kubernetes--ip-address/32.d.ts +17 -0
- package/es/icons/kubernetes--ip-address/32.js +15 -0
- package/es/icons/kubernetes--pod/16.d.ts +17 -0
- package/es/icons/kubernetes--pod/16.js +15 -0
- package/es/icons/kubernetes--pod/20.d.ts +17 -0
- package/es/icons/kubernetes--pod/20.js +15 -0
- package/es/icons/kubernetes--pod/24.d.ts +17 -0
- package/es/icons/kubernetes--pod/24.js +15 -0
- package/es/icons/kubernetes--pod/32.d.ts +17 -0
- package/es/icons/kubernetes--pod/32.js +15 -0
- package/es/icons/logo--gitlab/16.d.ts +17 -0
- package/es/icons/logo--gitlab/16.js +15 -0
- package/es/icons/logo--gitlab/20.d.ts +17 -0
- package/es/icons/logo--gitlab/20.js +15 -0
- package/es/icons/logo--gitlab/24.d.ts +17 -0
- package/es/icons/logo--gitlab/24.js +15 -0
- package/es/icons/logo--gitlab/32.d.ts +17 -0
- package/es/icons/logo--gitlab/32.js +15 -0
- package/es/icons/logo--x/16.d.ts +17 -0
- package/es/icons/logo--x/16.js +15 -0
- package/es/icons/logo--x/20.d.ts +17 -0
- package/es/icons/logo--x/20.js +15 -0
- package/es/icons/logo--x/24.d.ts +17 -0
- package/es/icons/logo--x/24.js +15 -0
- package/es/icons/logo--x/32.d.ts +17 -0
- package/es/icons/logo--x/32.js +15 -0
- package/es/icons/mobile--crash/16.d.ts +17 -0
- package/es/icons/mobile--crash/16.js +15 -0
- package/es/icons/mobile--crash/20.d.ts +17 -0
- package/es/icons/mobile--crash/20.js +15 -0
- package/es/icons/mobile--crash/24.d.ts +17 -0
- package/es/icons/mobile--crash/24.js +15 -0
- package/es/icons/mobile--crash/32.d.ts +17 -0
- package/es/icons/mobile--crash/32.js +15 -0
- package/es/icons/mobile--event/16.d.ts +17 -0
- package/es/icons/mobile--event/16.js +15 -0
- package/es/icons/mobile--event/20.d.ts +17 -0
- package/es/icons/mobile--event/20.js +15 -0
- package/es/icons/mobile--event/24.d.ts +17 -0
- package/es/icons/mobile--event/24.js +15 -0
- package/es/icons/mobile--event/32.d.ts +17 -0
- package/es/icons/mobile--event/32.js +15 -0
- package/es/icons/mobile--request/16.d.ts +17 -0
- package/es/icons/mobile--request/16.js +15 -0
- package/es/icons/mobile--request/20.d.ts +17 -0
- package/es/icons/mobile--request/20.js +15 -0
- package/es/icons/mobile--request/24.d.ts +17 -0
- package/es/icons/mobile--request/24.js +15 -0
- package/es/icons/mobile--request/32.d.ts +17 -0
- package/es/icons/mobile--request/32.js +15 -0
- package/es/icons/mobile--session/16.d.ts +17 -0
- package/es/icons/mobile--session/16.js +15 -0
- package/es/icons/mobile--session/20.d.ts +17 -0
- package/es/icons/mobile--session/20.js +15 -0
- package/es/icons/mobile--session/24.d.ts +17 -0
- package/es/icons/mobile--session/24.js +15 -0
- package/es/icons/mobile--session/32.d.ts +17 -0
- package/es/icons/mobile--session/32.js +15 -0
- package/es/icons/mobile--view/16.d.ts +17 -0
- package/es/icons/mobile--view/16.js +15 -0
- package/es/icons/mobile--view/20.d.ts +17 -0
- package/es/icons/mobile--view/20.js +15 -0
- package/es/icons/mobile--view/24.d.ts +17 -0
- package/es/icons/mobile--view/24.js +15 -0
- package/es/icons/mobile--view/32.d.ts +17 -0
- package/es/icons/mobile--view/32.js +15 -0
- package/es/icons/mobile--view-orientation/16.d.ts +17 -0
- package/es/icons/mobile--view-orientation/16.js +15 -0
- package/es/icons/mobile--view-orientation/20.d.ts +17 -0
- package/es/icons/mobile--view-orientation/20.js +15 -0
- package/es/icons/mobile--view-orientation/24.d.ts +17 -0
- package/es/icons/mobile--view-orientation/24.js +15 -0
- package/es/icons/mobile--view-orientation/32.d.ts +17 -0
- package/es/icons/mobile--view-orientation/32.js +15 -0
- package/es/icons/model--tuned/16.d.ts +17 -0
- package/es/icons/model--tuned/16.js +15 -0
- package/es/icons/model--tuned/20.d.ts +17 -0
- package/es/icons/model--tuned/20.js +15 -0
- package/es/icons/model--tuned/24.d.ts +17 -0
- package/es/icons/model--tuned/24.js +15 -0
- package/es/icons/model--tuned/32.d.ts +17 -0
- package/es/icons/model--tuned/32.js +15 -0
- package/es/icons/mysql/16.d.ts +17 -0
- package/es/icons/mysql/16.js +15 -0
- package/es/icons/mysql/20.d.ts +17 -0
- package/es/icons/mysql/20.js +15 -0
- package/es/icons/mysql/24.d.ts +17 -0
- package/es/icons/mysql/24.js +15 -0
- package/es/icons/mysql/32.d.ts +17 -0
- package/es/icons/mysql/32.js +15 -0
- package/es/icons/network-interface/16.d.ts +17 -0
- package/es/icons/network-interface/16.js +15 -0
- package/es/icons/network-interface/20.d.ts +17 -0
- package/es/icons/network-interface/20.js +15 -0
- package/es/icons/network-interface/24.d.ts +17 -0
- package/es/icons/network-interface/24.js +15 -0
- package/es/icons/network-interface/32.d.ts +17 -0
- package/es/icons/network-interface/32.js +15 -0
- package/es/icons/platforms/16.d.ts +17 -0
- package/es/icons/platforms/16.js +15 -0
- package/es/icons/platforms/20.d.ts +17 -0
- package/es/icons/platforms/20.js +15 -0
- package/es/icons/platforms/24.d.ts +17 -0
- package/es/icons/platforms/24.js +15 -0
- package/es/icons/platforms/32.d.ts +17 -0
- package/es/icons/platforms/32.js +15 -0
- package/es/icons/process/16.d.ts +17 -0
- package/es/icons/process/16.js +15 -0
- package/es/icons/process/20.d.ts +17 -0
- package/es/icons/process/20.js +15 -0
- package/es/icons/process/24.d.ts +17 -0
- package/es/icons/process/24.js +15 -0
- package/es/icons/process/32.d.ts +17 -0
- package/es/icons/process/32.js +15 -0
- package/es/icons/process-automate/16.d.ts +17 -0
- package/es/icons/process-automate/16.js +15 -0
- package/es/icons/process-automate/20.d.ts +17 -0
- package/es/icons/process-automate/20.js +15 -0
- package/es/icons/process-automate/24.d.ts +17 -0
- package/es/icons/process-automate/24.js +15 -0
- package/es/icons/process-automate/32.d.ts +17 -0
- package/es/icons/process-automate/32.js +15 -0
- package/es/icons/prompt-session/16.d.ts +17 -0
- package/es/icons/prompt-session/16.js +15 -0
- package/es/icons/prompt-session/20.d.ts +17 -0
- package/es/icons/prompt-session/20.js +15 -0
- package/es/icons/prompt-session/24.d.ts +17 -0
- package/es/icons/prompt-session/24.js +15 -0
- package/es/icons/prompt-session/32.d.ts +17 -0
- package/es/icons/prompt-session/32.js +15 -0
- package/es/icons/prompt-template/16.d.ts +17 -0
- package/es/icons/prompt-template/16.js +15 -0
- package/es/icons/prompt-template/20.d.ts +17 -0
- package/es/icons/prompt-template/20.js +15 -0
- package/es/icons/prompt-template/24.d.ts +17 -0
- package/es/icons/prompt-template/24.js +15 -0
- package/es/icons/prompt-template/32.d.ts +17 -0
- package/es/icons/prompt-template/32.js +15 -0
- package/es/icons/redo/16.js +1 -1
- package/es/icons/redo/20.js +1 -1
- package/es/icons/redo/24.js +1 -1
- package/es/icons/return/16.d.ts +17 -0
- package/es/icons/return/16.js +15 -0
- package/es/icons/return/20.d.ts +17 -0
- package/es/icons/return/20.js +15 -0
- package/es/icons/return/24.d.ts +17 -0
- package/es/icons/return/24.js +15 -0
- package/es/icons/return/32.d.ts +17 -0
- package/es/icons/return/32.js +15 -0
- package/es/icons/running/16.d.ts +17 -0
- package/es/icons/running/16.js +15 -0
- package/es/icons/running/20.d.ts +17 -0
- package/es/icons/running/20.js +15 -0
- package/es/icons/running/24.d.ts +17 -0
- package/es/icons/running/24.js +15 -0
- package/es/icons/running/32.d.ts +17 -0
- package/es/icons/running/32.js +15 -0
- package/es/icons/sales-ops/16.d.ts +17 -0
- package/es/icons/sales-ops/16.js +15 -0
- package/es/icons/sales-ops/20.d.ts +17 -0
- package/es/icons/sales-ops/20.js +15 -0
- package/es/icons/sales-ops/24.d.ts +17 -0
- package/es/icons/sales-ops/24.js +15 -0
- package/es/icons/sales-ops/32.d.ts +17 -0
- package/es/icons/sales-ops/32.js +15 -0
- package/es/icons/service-levels/16.d.ts +17 -0
- package/es/icons/service-levels/16.js +15 -0
- package/es/icons/service-levels/20.d.ts +17 -0
- package/es/icons/service-levels/20.js +15 -0
- package/es/icons/service-levels/24.d.ts +17 -0
- package/es/icons/service-levels/24.js +15 -0
- package/es/icons/service-levels/32.d.ts +17 -0
- package/es/icons/service-levels/32.js +15 -0
- package/es/icons/settings--edit/16.d.ts +17 -0
- package/es/icons/settings--edit/16.js +15 -0
- package/es/icons/settings--edit/20.d.ts +17 -0
- package/es/icons/settings--edit/20.js +15 -0
- package/es/icons/settings--edit/24.d.ts +17 -0
- package/es/icons/settings--edit/24.js +15 -0
- package/es/icons/settings--edit/32.d.ts +17 -0
- package/es/icons/settings--edit/32.js +15 -0
- package/es/icons/subdirectory/16.d.ts +17 -0
- package/es/icons/subdirectory/16.js +15 -0
- package/es/icons/subdirectory/20.d.ts +17 -0
- package/es/icons/subdirectory/20.js +15 -0
- package/es/icons/subdirectory/24.d.ts +17 -0
- package/es/icons/subdirectory/24.js +15 -0
- package/es/icons/subdirectory/32.d.ts +17 -0
- package/es/icons/subdirectory/32.js +15 -0
- package/es/icons/subtract--filled/16.d.ts +17 -0
- package/es/icons/subtract--filled/16.js +15 -0
- package/es/icons/subtract--filled/20.d.ts +17 -0
- package/es/icons/subtract--filled/20.js +15 -0
- package/es/icons/subtract--filled/24.d.ts +17 -0
- package/es/icons/subtract--filled/24.js +15 -0
- package/es/icons/subtract--filled/32.d.ts +17 -0
- package/es/icons/subtract--filled/32.js +15 -0
- package/es/icons/subtract--large/16.d.ts +17 -0
- package/es/icons/subtract--large/16.js +15 -0
- package/es/icons/subtract--large/20.d.ts +17 -0
- package/es/icons/subtract--large/20.js +15 -0
- package/es/icons/subtract--large/24.d.ts +17 -0
- package/es/icons/subtract--large/24.js +15 -0
- package/es/icons/subtract--large/32.d.ts +17 -0
- package/es/icons/subtract--large/32.js +15 -0
- package/es/icons/sustainability/16.d.ts +17 -0
- package/es/icons/sustainability/16.js +15 -0
- package/es/icons/sustainability/20.d.ts +17 -0
- package/es/icons/sustainability/20.js +15 -0
- package/es/icons/sustainability/24.d.ts +17 -0
- package/es/icons/sustainability/24.js +15 -0
- package/es/icons/sustainability/32.d.ts +17 -0
- package/es/icons/sustainability/32.js +15 -0
- package/es/icons/text--long-paragraph/16.d.ts +17 -0
- package/es/icons/text--long-paragraph/16.js +15 -0
- package/es/icons/text--long-paragraph/20.d.ts +17 -0
- package/es/icons/text--long-paragraph/20.js +15 -0
- package/es/icons/text--long-paragraph/24.d.ts +17 -0
- package/es/icons/text--long-paragraph/24.js +15 -0
- package/es/icons/text--long-paragraph/32.d.ts +17 -0
- package/es/icons/text--long-paragraph/32.js +15 -0
- package/es/icons/text--short-paragraph/16.d.ts +17 -0
- package/es/icons/text--short-paragraph/16.js +15 -0
- package/es/icons/text--short-paragraph/20.d.ts +17 -0
- package/es/icons/text--short-paragraph/20.js +15 -0
- package/es/icons/text--short-paragraph/24.d.ts +17 -0
- package/es/icons/text--short-paragraph/24.js +15 -0
- package/es/icons/text--short-paragraph/32.d.ts +17 -0
- package/es/icons/text--short-paragraph/32.js +15 -0
- package/es/icons/time--filled/16.d.ts +17 -0
- package/es/icons/time--filled/16.js +15 -0
- package/es/icons/time--filled/20.d.ts +17 -0
- package/es/icons/time--filled/20.js +15 -0
- package/es/icons/time--filled/24.d.ts +17 -0
- package/es/icons/time--filled/24.js +15 -0
- package/es/icons/time--filled/32.d.ts +17 -0
- package/es/icons/time--filled/32.js +15 -0
- package/es/icons/tour/16.d.ts +17 -0
- package/es/icons/tour/16.js +15 -0
- package/es/icons/tour/20.d.ts +17 -0
- package/es/icons/tour/20.js +15 -0
- package/es/icons/tour/24.d.ts +17 -0
- package/es/icons/tour/24.js +15 -0
- package/es/icons/tour/32.d.ts +17 -0
- package/es/icons/tour/32.js +15 -0
- package/es/icons/tuning/16.d.ts +17 -0
- package/es/icons/tuning/16.js +15 -0
- package/es/icons/tuning/20.d.ts +17 -0
- package/es/icons/tuning/20.js +15 -0
- package/es/icons/tuning/24.d.ts +17 -0
- package/es/icons/tuning/24.js +15 -0
- package/es/icons/tuning/32.d.ts +17 -0
- package/es/icons/tuning/32.js +15 -0
- package/es/icons/undo/16.js +1 -1
- package/es/icons/undo/20.js +1 -1
- package/es/icons/undo/24.js +1 -1
- package/es/icons/upstream/16.d.ts +17 -0
- package/es/icons/upstream/16.js +15 -0
- package/es/icons/upstream/20.d.ts +17 -0
- package/es/icons/upstream/20.js +15 -0
- package/es/icons/upstream/24.d.ts +17 -0
- package/es/icons/upstream/24.js +15 -0
- package/es/icons/upstream/32.d.ts +17 -0
- package/es/icons/upstream/32.js +15 -0
- package/es/icons/vegetation--encroachment/16.d.ts +17 -0
- package/es/icons/vegetation--encroachment/16.js +15 -0
- package/es/icons/vegetation--encroachment/20.d.ts +17 -0
- package/es/icons/vegetation--encroachment/20.js +15 -0
- package/es/icons/vegetation--encroachment/24.d.ts +17 -0
- package/es/icons/vegetation--encroachment/24.js +15 -0
- package/es/icons/vegetation--encroachment/32.d.ts +17 -0
- package/es/icons/vegetation--encroachment/32.js +15 -0
- package/es/icons/vegetation--height/16.d.ts +17 -0
- package/es/icons/vegetation--height/16.js +15 -0
- package/es/icons/vegetation--height/20.d.ts +17 -0
- package/es/icons/vegetation--height/20.js +15 -0
- package/es/icons/vegetation--height/24.d.ts +17 -0
- package/es/icons/vegetation--height/24.js +15 -0
- package/es/icons/vegetation--height/32.d.ts +17 -0
- package/es/icons/vegetation--height/32.js +15 -0
- package/es/icons/video-player/16.d.ts +17 -0
- package/es/icons/video-player/16.js +15 -0
- package/es/icons/video-player/20.d.ts +17 -0
- package/es/icons/video-player/20.js +15 -0
- package/es/icons/video-player/24.d.ts +17 -0
- package/es/icons/video-player/24.js +15 -0
- package/es/icons/video-player/32.d.ts +17 -0
- package/es/icons/video-player/32.js +15 -0
- package/es/icons/warning--diamond/16.d.ts +17 -0
- package/es/icons/warning--diamond/16.js +15 -0
- package/es/icons/warning--diamond/20.d.ts +17 -0
- package/es/icons/warning--diamond/20.js +15 -0
- package/es/icons/warning--diamond/24.d.ts +17 -0
- package/es/icons/warning--diamond/24.js +15 -0
- package/es/icons/warning--diamond/32.d.ts +17 -0
- package/es/icons/warning--diamond/32.js +15 -0
- package/es/icons/warning--multiple/16.d.ts +17 -0
- package/es/icons/warning--multiple/16.js +15 -0
- package/es/icons/warning--multiple/20.d.ts +17 -0
- package/es/icons/warning--multiple/20.js +15 -0
- package/es/icons/warning--multiple/24.d.ts +17 -0
- package/es/icons/warning--multiple/24.js +15 -0
- package/es/icons/warning--multiple/32.d.ts +17 -0
- package/es/icons/warning--multiple/32.js +15 -0
- package/es/icons/watsonx/16.d.ts +17 -0
- package/es/icons/watsonx/16.js +15 -0
- package/es/icons/watsonx/20.d.ts +17 -0
- package/es/icons/watsonx/20.js +15 -0
- package/es/icons/watsonx/24.d.ts +17 -0
- package/es/icons/watsonx/24.js +15 -0
- package/es/icons/watsonx/32.d.ts +17 -0
- package/es/icons/watsonx/32.js +15 -0
- package/es/icons/watsonx-ai/16.d.ts +17 -0
- package/es/icons/watsonx-ai/16.js +15 -0
- package/es/icons/watsonx-ai/20.d.ts +17 -0
- package/es/icons/watsonx-ai/20.js +15 -0
- package/es/icons/watsonx-ai/24.d.ts +17 -0
- package/es/icons/watsonx-ai/24.js +15 -0
- package/es/icons/watsonx-ai/32.d.ts +17 -0
- package/es/icons/watsonx-ai/32.js +15 -0
- package/es/icons/watsonx-data/16.d.ts +17 -0
- package/es/icons/watsonx-data/16.js +15 -0
- package/es/icons/watsonx-data/20.d.ts +17 -0
- package/es/icons/watsonx-data/20.js +15 -0
- package/es/icons/watsonx-data/24.d.ts +17 -0
- package/es/icons/watsonx-data/24.js +15 -0
- package/es/icons/watsonx-data/32.d.ts +17 -0
- package/es/icons/watsonx-data/32.js +15 -0
- package/es/icons/watsonx-governance/16.d.ts +17 -0
- package/es/icons/watsonx-governance/16.js +15 -0
- package/es/icons/watsonx-governance/20.d.ts +17 -0
- package/es/icons/watsonx-governance/20.js +15 -0
- package/es/icons/watsonx-governance/24.d.ts +17 -0
- package/es/icons/watsonx-governance/24.js +15 -0
- package/es/icons/watsonx-governance/32.d.ts +17 -0
- package/es/icons/watsonx-governance/32.js +15 -0
- package/es/icons/web-services--cluster/16.d.ts +17 -0
- package/es/icons/web-services--cluster/16.js +15 -0
- package/es/icons/web-services--cluster/20.d.ts +17 -0
- package/es/icons/web-services--cluster/20.js +15 -0
- package/es/icons/web-services--cluster/24.d.ts +17 -0
- package/es/icons/web-services--cluster/24.js +15 -0
- package/es/icons/web-services--cluster/32.d.ts +17 -0
- package/es/icons/web-services--cluster/32.js +15 -0
- package/es/icons/web-services--container/16.d.ts +17 -0
- package/es/icons/web-services--container/16.js +15 -0
- package/es/icons/web-services--container/20.d.ts +17 -0
- package/es/icons/web-services--container/20.js +15 -0
- package/es/icons/web-services--container/24.d.ts +17 -0
- package/es/icons/web-services--container/24.js +15 -0
- package/es/icons/web-services--container/32.d.ts +17 -0
- package/es/icons/web-services--container/32.js +15 -0
- package/es/icons/web-services--definition/16.d.ts +17 -0
- package/es/icons/web-services--definition/16.js +15 -0
- package/es/icons/web-services--definition/20.d.ts +17 -0
- package/es/icons/web-services--definition/20.js +15 -0
- package/es/icons/web-services--definition/24.d.ts +17 -0
- package/es/icons/web-services--definition/24.js +15 -0
- package/es/icons/web-services--definition/32.d.ts +17 -0
- package/es/icons/web-services--definition/32.js +15 -0
- package/es/icons/web-services--service/16.d.ts +17 -0
- package/es/icons/web-services--service/16.js +15 -0
- package/es/icons/web-services--service/20.d.ts +17 -0
- package/es/icons/web-services--service/20.js +15 -0
- package/es/icons/web-services--service/24.d.ts +17 -0
- package/es/icons/web-services--service/24.js +15 -0
- package/es/icons/web-services--service/32.d.ts +17 -0
- package/es/icons/web-services--service/32.js +15 -0
- package/es/icons/web-services--task/16.d.ts +17 -0
- package/es/icons/web-services--task/16.js +15 -0
- package/es/icons/web-services--task/20.d.ts +17 -0
- package/es/icons/web-services--task/20.js +15 -0
- package/es/icons/web-services--task/24.d.ts +17 -0
- package/es/icons/web-services--task/24.js +15 -0
- package/es/icons/web-services--task/32.d.ts +17 -0
- package/es/icons/web-services--task/32.js +15 -0
- package/es/icons/web-services--task-definition-version/16.d.ts +17 -0
- package/es/icons/web-services--task-definition-version/16.js +15 -0
- package/es/icons/web-services--task-definition-version/20.d.ts +17 -0
- package/es/icons/web-services--task-definition-version/20.js +15 -0
- package/es/icons/web-services--task-definition-version/24.d.ts +17 -0
- package/es/icons/web-services--task-definition-version/24.js +15 -0
- package/es/icons/web-services--task-definition-version/32.d.ts +17 -0
- package/es/icons/web-services--task-definition-version/32.js +15 -0
- package/lib/components/accordion/defs.js +3 -6
- package/lib/components/accordion/defs.js.map +1 -1
- package/lib/components/button/defs.js +5 -10
- package/lib/components/button/defs.js.map +1 -1
- package/lib/components/code-snippet/defs.js +1 -2
- package/lib/components/code-snippet/defs.js.map +1 -1
- package/lib/components/content-switcher/defs.js +2 -4
- package/lib/components/content-switcher/defs.js.map +1 -1
- package/lib/components/data-table/defs.js +4 -8
- package/lib/components/data-table/defs.js.map +1 -1
- package/lib/components/date-picker/defs.js +1 -2
- package/lib/components/date-picker/defs.js.map +1 -1
- package/lib/components/dropdown/defs.js +5 -10
- package/lib/components/dropdown/defs.js.map +1 -1
- package/lib/components/file-uploader/defs.js +2 -4
- package/lib/components/file-uploader/defs.js.map +1 -1
- package/lib/components/floating-menu/defs.js +2 -4
- package/lib/components/floating-menu/defs.js.map +1 -1
- package/lib/components/icon-button/defs.js +2 -4
- package/lib/components/icon-button/defs.js.map +1 -1
- package/lib/components/inline-loading/defs.js +1 -2
- package/lib/components/inline-loading/defs.js.map +1 -1
- package/lib/components/loading/defs.js +1 -2
- package/lib/components/loading/defs.js.map +1 -1
- package/lib/components/modal/defs.js +1 -2
- package/lib/components/modal/defs.js.map +1 -1
- package/lib/components/multi-select/defs.js +1 -2
- package/lib/components/multi-select/defs.js.map +1 -1
- package/lib/components/notification/defs.js +2 -4
- package/lib/components/notification/defs.js.map +1 -1
- package/lib/components/number-input/defs.js +1 -2
- package/lib/components/number-input/defs.js.map +1 -1
- package/lib/components/overflow-menu/defs.js +2 -4
- package/lib/components/overflow-menu/defs.js.map +1 -1
- package/lib/components/pagination/defs.js +1 -2
- package/lib/components/pagination/defs.js.map +1 -1
- package/lib/components/popover/defs.js +1 -2
- package/lib/components/popover/defs.js.map +1 -1
- package/lib/components/progress-bar/defs.js +3 -6
- package/lib/components/progress-bar/defs.js.map +1 -1
- package/lib/components/progress-indicator/defs.js +1 -2
- package/lib/components/progress-indicator/defs.js.map +1 -1
- package/lib/components/radio-button/defs.js +2 -4
- package/lib/components/radio-button/defs.js.map +1 -1
- package/lib/components/skeleton-text/defs.js +1 -2
- package/lib/components/skeleton-text/defs.js.map +1 -1
- package/lib/components/slug/defs.js +45 -0
- package/lib/components/slug/defs.js.map +1 -0
- package/lib/components/stack/defs.js +2 -4
- package/lib/components/stack/defs.js.map +1 -1
- package/lib/components/tabs/defs.js +2 -4
- package/lib/components/tabs/defs.js.map +1 -1
- package/lib/components/tag/defs.js +2 -4
- package/lib/components/tag/defs.js.map +1 -1
- package/lib/components/text-input/defs.js +4 -8
- package/lib/components/text-input/defs.js.map +1 -1
- package/lib/components/tile/defs.js.map +1 -1
- package/lib/components/toggle/defs.js +1 -2
- package/lib/components/toggle/defs.js.map +1 -1
- package/lib/components/ui-shell/defs.js +2 -4
- package/lib/components/ui-shell/defs.js.map +1 -1
- package/lib/components-react-node/accordion/accordion-item-skeleton.js +3 -6
- package/lib/components-react-node/accordion/accordion-item.js +5 -8
- package/lib/components-react-node/accordion/accordion-skeleton.js +3 -6
- package/lib/components-react-node/accordion/accordion.js +3 -6
- package/lib/components-react-node/breadcrumb/breadcrumb-item.js +3 -6
- package/lib/components-react-node/breadcrumb/breadcrumb-link.js +3 -6
- package/lib/components-react-node/breadcrumb/breadcrumb-overflow-menu.js +11 -6
- package/lib/components-react-node/breadcrumb/breadcrumb-skeleton.js +3 -6
- package/lib/components-react-node/breadcrumb/breadcrumb.js +3 -6
- package/lib/components-react-node/button/button-set.js +3 -6
- package/lib/components-react-node/button/button-skeleton.js +7 -6
- package/lib/components-react-node/button/button.js +3 -6
- package/lib/components-react-node/checkbox/checkbox-skeleton.js +3 -6
- package/lib/components-react-node/checkbox/checkbox.js +5 -8
- package/lib/components-react-node/code-snippet/code-snippet-skeleton.js +3 -6
- package/lib/components-react-node/code-snippet/code-snippet.js +3 -6
- package/lib/components-react-node/combo-box/combo-box-item.js +11 -6
- package/lib/components-react-node/combo-box/combo-box.js +5 -8
- package/lib/components-react-node/content-switcher/content-switcher-item.js +3 -6
- package/lib/components-react-node/content-switcher/content-switcher.js +5 -8
- package/lib/components-react-node/copy/copy.js +11 -6
- package/lib/components-react-node/copy-button/copy-button.js +3 -6
- package/lib/components-react-node/data-table/table-batch-actions.js +5 -8
- package/lib/components-react-node/data-table/table-body.js +3 -6
- package/lib/components-react-node/data-table/table-cell-content.js +3 -6
- package/lib/components-react-node/data-table/table-cell.js +3 -6
- package/lib/components-react-node/data-table/table-expanded-row.js +3 -6
- package/lib/components-react-node/data-table/table-head.js +3 -6
- package/lib/components-react-node/data-table/table-header-cell.js +5 -8
- package/lib/components-react-node/data-table/table-header-description.js +3 -6
- package/lib/components-react-node/data-table/table-header-row.js +5 -8
- package/lib/components-react-node/data-table/table-header-title.js +3 -6
- package/lib/components-react-node/data-table/table-row.js +5 -8
- package/lib/components-react-node/data-table/table-skeleton.js +3 -6
- package/lib/components-react-node/data-table/table-toolbar-content.js +3 -6
- package/lib/components-react-node/data-table/table-toolbar-search.js +5 -8
- package/lib/components-react-node/data-table/table-toolbar.js +3 -6
- package/lib/components-react-node/data-table/table.js +5 -8
- package/lib/components-react-node/date-picker/date-picker-input-skeleton.js +3 -6
- package/lib/components-react-node/date-picker/date-picker-input.js +3 -6
- package/lib/components-react-node/date-picker/date-picker.js +5 -8
- package/lib/components-react-node/dropdown/dropdown-item.js +3 -6
- package/lib/components-react-node/dropdown/dropdown-skeleton.js +3 -6
- package/lib/components-react-node/dropdown/dropdown.js +5 -8
- package/lib/components-react-node/file-uploader/demo-file-uploader.js +3 -6
- package/lib/components-react-node/file-uploader/file-uploader-button.js +5 -8
- package/lib/components-react-node/file-uploader/file-uploader-drop-container.js +5 -8
- package/lib/components-react-node/file-uploader/file-uploader-item.js +5 -8
- package/lib/components-react-node/file-uploader/file-uploader-skeleton.js +3 -6
- package/lib/components-react-node/file-uploader/file-uploader.js +3 -6
- package/lib/components-react-node/floating-menu/floating-menu.js +2 -4
- package/lib/components-react-node/form/form-item.js +3 -6
- package/lib/components-react-node/form-group/form-group.js +3 -6
- package/lib/components-react-node/icon-button/icon-button.js +7 -6
- package/lib/components-react-node/inline-loading/inline-loading.js +3 -6
- package/lib/components-react-node/layer/layer.js +5 -8
- package/lib/components-react-node/link/link.js +3 -6
- package/lib/components-react-node/list/list-item.js +3 -6
- package/lib/components-react-node/list/ordered-list.js +11 -6
- package/lib/components-react-node/list/unordered-list.js +3 -6
- package/lib/components-react-node/loading/loading.js +3 -6
- package/lib/components-react-node/modal/modal-body-content.js +3 -6
- package/lib/components-react-node/modal/modal-body.js +3 -6
- package/lib/components-react-node/modal/modal-close-button.js +3 -6
- package/lib/components-react-node/modal/modal-footer-button.js +7 -6
- package/lib/components-react-node/modal/modal-footer.js +3 -6
- package/lib/components-react-node/modal/modal-header.js +3 -6
- package/lib/components-react-node/modal/modal-heading.js +3 -6
- package/lib/components-react-node/modal/modal-label.js +3 -6
- package/lib/components-react-node/modal/modal.js +5 -8
- package/lib/components-react-node/multi-select/multi-select-item.js +11 -6
- package/lib/components-react-node/multi-select/multi-select.js +5 -8
- package/lib/components-react-node/notification/actionable-notification-button.js +7 -6
- package/lib/components-react-node/notification/actionable-notification.js +11 -6
- package/lib/components-react-node/notification/inline-notification.js +5 -8
- package/lib/components-react-node/notification/toast-notification.js +11 -6
- package/lib/components-react-node/number-input/number-input-skeleton.js +3 -6
- package/lib/components-react-node/number-input/number-input.js +12 -11
- package/lib/components-react-node/overflow-menu/overflow-menu-body.js +11 -6
- package/lib/components-react-node/overflow-menu/overflow-menu-item.js +3 -6
- package/lib/components-react-node/overflow-menu/overflow-menu.js +11 -6
- package/lib/components-react-node/pagination/pagination.js +5 -8
- package/lib/components-react-node/popover/popover-content.js +3 -6
- package/lib/components-react-node/popover/popover.js +3 -6
- package/lib/components-react-node/progress-bar/progress-bar.js +3 -6
- package/lib/components-react-node/progress-indicator/progress-indicator-skeleton.js +3 -6
- package/lib/components-react-node/progress-indicator/progress-indicator.js +3 -6
- package/lib/components-react-node/progress-indicator/progress-step-skeleton.js +3 -6
- package/lib/components-react-node/progress-indicator/progress-step.js +3 -6
- package/lib/components-react-node/radio-button/radio-button-group.js +5 -8
- package/lib/components-react-node/radio-button/radio-button-skeleton.js +3 -6
- package/lib/components-react-node/radio-button/radio-button.js +5 -8
- package/lib/components-react-node/search/search-skeleton.js +3 -6
- package/lib/components-react-node/search/search.js +5 -8
- package/lib/components-react-node/select/select-item-group.js +3 -6
- package/lib/components-react-node/select/select-item.js +3 -6
- package/lib/components-react-node/select/select-skeleton.js +3 -6
- package/lib/components-react-node/select/select.js +5 -8
- package/lib/components-react-node/skeleton-placeholder/skeleton-placeholder.js +3 -6
- package/lib/components-react-node/skeleton-text/skeleton-text.js +3 -6
- package/lib/components-react-node/skip-to-content/skip-to-content.js +3 -6
- package/lib/components-react-node/slider/slider-input.js +5 -8
- package/lib/components-react-node/slider/slider-skeleton.js +3 -6
- package/lib/components-react-node/slider/slider.js +5 -8
- package/lib/components-react-node/slug/defs.js +24 -0
- package/lib/components-react-node/slug/index.js +9 -0
- package/lib/components-react-node/slug/slug-action-button.js +35 -0
- package/lib/components-react-node/slug/slug.js +39 -0
- package/lib/components-react-node/stack/stack.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-body.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-cell.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-head.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-header-cell-skeleton.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-header-cell.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-header-row.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-row.js +3 -6
- package/lib/components-react-node/structured-list/structured-list.js +3 -6
- package/lib/components-react-node/tabs/tab-skeleton.js +3 -6
- package/lib/components-react-node/tabs/tab.js +11 -6
- package/lib/components-react-node/tabs/tabs-skeleton.js +3 -6
- package/lib/components-react-node/tabs/tabs.js +21 -16
- package/lib/components-react-node/tag/tag.js +5 -8
- package/lib/components-react-node/text-input/text-input-skeleton.js +3 -6
- package/lib/components-react-node/text-input/text-input.js +3 -6
- package/lib/components-react-node/textarea/textarea-skeleton.js +3 -6
- package/lib/components-react-node/textarea/textarea.js +11 -6
- package/lib/components-react-node/tile/clickable-tile.js +3 -6
- package/lib/components-react-node/tile/expandable-tile.js +5 -8
- package/lib/components-react-node/tile/radio-tile.js +17 -12
- package/lib/components-react-node/tile/selectable-tile.js +5 -8
- package/lib/components-react-node/tile/tile-group.js +5 -8
- package/lib/components-react-node/tile/tile.js +3 -6
- package/lib/components-react-node/toggle/toggle.js +5 -8
- package/lib/components-react-node/toggle-tip/toggletip.js +3 -6
- package/lib/components-react-node/tooltip/tooltip-content.js +11 -6
- package/lib/components-react-node/tooltip/tooltip.js +7 -6
- package/lib/components-react-node/ui-shell/header-global-action.js +7 -6
- package/lib/components-react-node/ui-shell/header-menu-button.js +5 -8
- package/lib/components-react-node/ui-shell/header-menu-item.js +11 -6
- package/lib/components-react-node/ui-shell/header-menu.js +3 -6
- package/lib/components-react-node/ui-shell/header-name.js +3 -6
- package/lib/components-react-node/ui-shell/header-nav-item.js +3 -6
- package/lib/components-react-node/ui-shell/header-nav.js +3 -6
- package/lib/components-react-node/ui-shell/header-panel.js +3 -6
- package/lib/components-react-node/ui-shell/header-side-nav-items.js +3 -6
- package/lib/components-react-node/ui-shell/header.js +3 -6
- package/lib/components-react-node/ui-shell/side-nav-divider.js +3 -6
- package/lib/components-react-node/ui-shell/side-nav-items.js +3 -6
- package/lib/components-react-node/ui-shell/side-nav-link.js +3 -6
- package/lib/components-react-node/ui-shell/side-nav-menu-item.js +3 -6
- package/lib/components-react-node/ui-shell/side-nav-menu.js +5 -8
- package/lib/components-react-node/ui-shell/side-nav.js +5 -8
- package/lib/components-react-node/ui-shell/switcher-divider.js +3 -6
- package/lib/components-react-node/ui-shell/switcher-item.js +3 -6
- package/lib/components-react-node/ui-shell/switcher.js +3 -6
- package/lib/globals/settings.js +2 -4
- package/lib/globals/settings.js.map +1 -1
- package/lib/globals/shared-enums.js +1 -2
- package/lib/globals/shared-enums.js.map +1 -1
- package/lib/globals/wrappers/createReactCustomElementType.js +3 -4
- package/lib/globals/wrappers/createReactCustomElementType.js.map +1 -1
- package/package.json +18 -17
- package/scss/components/breadcrumb/breadcrumb.scss +2 -2
- package/scss/components/button/button.scss +3 -3
- package/scss/components/code-snippet/code-snippet.scss +5 -5
- package/scss/components/combo-box/combo-box.scss +62 -1
- package/scss/components/content-switcher/content-switcher.scss +8 -7
- package/scss/components/copy-button/copy-button.scss +3 -2
- package/scss/components/data-table/_table-action.scss +1 -1
- package/scss/components/data-table/_table-sizes.scss +5 -5
- package/scss/components/data-table/_table-sort.scss +1 -1
- package/scss/components/date-picker/date-picker.scss +13 -0
- package/scss/components/dropdown/dropdown.scss +28 -4
- package/scss/components/icon-button/icon-button.scss +5 -0
- package/scss/components/list/list.scss +1 -1
- package/scss/components/modal/modal.scss +17 -4
- package/scss/components/multi-select/multi-select.scss +29 -2
- package/scss/components/notification/inline-notification.scss +6 -1
- package/scss/components/number-input/number-input.scss +19 -0
- package/scss/components/overflow-menu/overflow-menu.scss +1 -1
- package/scss/components/pagination/pagination.scss +1 -1
- package/scss/components/popover/popover.scss +57 -20
- package/scss/components/select/select.scss +19 -0
- package/scss/components/slug/slug.scss +135 -0
- package/scss/components/stack/stack.scss +3 -3
- package/scss/components/tabs/tabs.scss +7 -9
- package/scss/components/text-input/text-input.scss +44 -10
- package/scss/components/textarea/textarea.scss +35 -0
- package/scss/components/tile/tile.scss +1 -1
- package/scss/components/toggle-tip/toggletip.scss +3 -2
- package/scss/components/tooltip/tooltip.scss +1 -2
- package/scss/components/ui-shell/header.scss +4 -4
- package/scss/components/ui-shell/side-nav.scss +1 -1
- package/es/components/accordion/accordion-item-skeleton.d.ts.map +0 -1
- package/es/components/accordion/accordion-item.d.ts.map +0 -1
- package/es/components/accordion/accordion-skeleton.d.ts.map +0 -1
- package/es/components/accordion/accordion.d.ts.map +0 -1
- package/es/components/accordion/defs.d.ts.map +0 -1
- package/es/components/accordion/index.d.ts.map +0 -1
- package/es/components/breadcrumb/breadcrumb-item.d.ts.map +0 -1
- package/es/components/breadcrumb/breadcrumb-link.d.ts.map +0 -1
- package/es/components/breadcrumb/breadcrumb-overflow-menu.d.ts.map +0 -1
- package/es/components/breadcrumb/breadcrumb-skeleton.d.ts.map +0 -1
- package/es/components/breadcrumb/breadcrumb.d.ts.map +0 -1
- package/es/components/breadcrumb/index.d.ts.map +0 -1
- package/es/components/button/button-set.d.ts.map +0 -1
- package/es/components/button/button-skeleton.d.ts.map +0 -1
- package/es/components/button/button.d.ts.map +0 -1
- package/es/components/button/defs.d.ts.map +0 -1
- package/es/components/button/index.d.ts.map +0 -1
- package/es/components/checkbox/checkbox-skeleton.d.ts.map +0 -1
- package/es/components/checkbox/checkbox.d.ts.map +0 -1
- package/es/components/checkbox/index.d.ts.map +0 -1
- package/es/components/code-snippet/code-snippet-skeleton.d.ts.map +0 -1
- package/es/components/code-snippet/code-snippet.d.ts.map +0 -1
- package/es/components/code-snippet/defs.d.ts.map +0 -1
- package/es/components/code-snippet/index.d.ts.map +0 -1
- package/es/components/combo-box/combo-box-item.d.ts.map +0 -1
- package/es/components/combo-box/combo-box.d.ts.map +0 -1
- package/es/components/combo-box/index.d.ts.map +0 -1
- package/es/components/content-switcher/content-switcher-item.d.ts.map +0 -1
- package/es/components/content-switcher/content-switcher.d.ts.map +0 -1
- package/es/components/content-switcher/defs.d.ts.map +0 -1
- package/es/components/content-switcher/index.d.ts.map +0 -1
- package/es/components/copy/copy.d.ts.map +0 -1
- package/es/components/copy-button/copy-button.d.ts.map +0 -1
- package/es/components/copy-button/index.d.ts.map +0 -1
- package/es/components/data-table/defs.d.ts.map +0 -1
- package/es/components/data-table/index.d.ts.map +0 -1
- package/es/components/data-table/table-batch-actions.d.ts.map +0 -1
- package/es/components/data-table/table-body.d.ts.map +0 -1
- package/es/components/data-table/table-cell-content.d.ts.map +0 -1
- package/es/components/data-table/table-cell.d.ts.map +0 -1
- package/es/components/data-table/table-expanded-row.d.ts.map +0 -1
- package/es/components/data-table/table-head.d.ts.map +0 -1
- package/es/components/data-table/table-header-cell.d.ts.map +0 -1
- package/es/components/data-table/table-header-description.d.ts.map +0 -1
- package/es/components/data-table/table-header-row.d.ts.map +0 -1
- package/es/components/data-table/table-header-title.d.ts.map +0 -1
- package/es/components/data-table/table-row.d.ts.map +0 -1
- package/es/components/data-table/table-skeleton.d.ts.map +0 -1
- package/es/components/data-table/table-toolbar-content.d.ts.map +0 -1
- package/es/components/data-table/table-toolbar-search.d.ts.map +0 -1
- package/es/components/data-table/table-toolbar.d.ts.map +0 -1
- package/es/components/data-table/table.d.ts.map +0 -1
- package/es/components/date-picker/append-to-plugin.d.ts.map +0 -1
- package/es/components/date-picker/css-class-plugin.d.ts.map +0 -1
- package/es/components/date-picker/date-picker-input-skeleton.d.ts.map +0 -1
- package/es/components/date-picker/date-picker-input.d.ts.map +0 -1
- package/es/components/date-picker/date-picker.d.ts.map +0 -1
- package/es/components/date-picker/defs.d.ts.map +0 -1
- package/es/components/date-picker/fix-events-plugin.d.ts.map +0 -1
- package/es/components/date-picker/focus-plugin.d.ts.map +0 -1
- package/es/components/date-picker/icon-plugin.d.ts.map +0 -1
- package/es/components/date-picker/index.d.ts.map +0 -1
- package/es/components/date-picker/iso-date.d.ts.map +0 -1
- package/es/components/date-picker/month-select-plugin.d.ts.map +0 -1
- package/es/components/date-picker/range-plugin.d.ts.map +0 -1
- package/es/components/date-picker/shadow-dom-events-plugin.d.ts.map +0 -1
- package/es/components/date-picker/state-handshake-plugin.d.ts.map +0 -1
- package/es/components/dropdown/defs.d.ts.map +0 -1
- package/es/components/dropdown/dropdown-item.d.ts.map +0 -1
- package/es/components/dropdown/dropdown-skeleton.d.ts.map +0 -1
- package/es/components/dropdown/dropdown.d.ts.map +0 -1
- package/es/components/dropdown/index.d.ts.map +0 -1
- package/es/components/file-uploader/defs.d.ts.map +0 -1
- package/es/components/file-uploader/demo-file-uploader.d.ts.map +0 -1
- package/es/components/file-uploader/file-uploader-button.d.ts.map +0 -1
- package/es/components/file-uploader/file-uploader-drop-container.d.ts.map +0 -1
- package/es/components/file-uploader/file-uploader-item.d.ts.map +0 -1
- package/es/components/file-uploader/file-uploader-skeleton.d.ts.map +0 -1
- package/es/components/file-uploader/file-uploader.d.ts.map +0 -1
- package/es/components/file-uploader/index.d.ts.map +0 -1
- package/es/components/floating-menu/defs.d.ts.map +0 -1
- package/es/components/floating-menu/floating-menu-trigger.d.ts.map +0 -1
- package/es/components/floating-menu/floating-menu.d.ts.map +0 -1
- package/es/components/floating-menu/index.d.ts.map +0 -1
- package/es/components/form/form-item.d.ts.map +0 -1
- package/es/components/form/index.d.ts.map +0 -1
- package/es/components/form-group/form-group.d.ts.map +0 -1
- package/es/components/form-group/index.d.ts.map +0 -1
- package/es/components/icon-button/defs.d.ts.map +0 -1
- package/es/components/icon-button/icon-button.d.ts.map +0 -1
- package/es/components/icon-button/index.d.ts.map +0 -1
- package/es/components/inline-loading/defs.d.ts.map +0 -1
- package/es/components/inline-loading/index.d.ts.map +0 -1
- package/es/components/inline-loading/inline-loading.d.ts.map +0 -1
- package/es/components/layer/index.d.ts.map +0 -1
- package/es/components/layer/layer.d.ts.map +0 -1
- package/es/components/link/index.d.ts.map +0 -1
- package/es/components/link/link.d.ts.map +0 -1
- package/es/components/list/index.d.ts.map +0 -1
- package/es/components/list/list-item.d.ts.map +0 -1
- package/es/components/list/ordered-list.d.ts.map +0 -1
- package/es/components/list/unordered-list.d.ts.map +0 -1
- package/es/components/loading/defs.d.ts.map +0 -1
- package/es/components/loading/index.d.ts.map +0 -1
- package/es/components/loading/loading-icon.d.ts.map +0 -1
- package/es/components/loading/loading.d.ts.map +0 -1
- package/es/components/loading/types.d.ts.map +0 -1
- package/es/components/modal/defs.d.ts.map +0 -1
- package/es/components/modal/index.d.ts.map +0 -1
- package/es/components/modal/modal-body-content.d.ts.map +0 -1
- package/es/components/modal/modal-body.d.ts.map +0 -1
- package/es/components/modal/modal-close-button.d.ts.map +0 -1
- package/es/components/modal/modal-footer-button.d.ts.map +0 -1
- package/es/components/modal/modal-footer.d.ts.map +0 -1
- package/es/components/modal/modal-header.d.ts.map +0 -1
- package/es/components/modal/modal-heading.d.ts.map +0 -1
- package/es/components/modal/modal-label.d.ts.map +0 -1
- package/es/components/modal/modal.d.ts.map +0 -1
- package/es/components/multi-select/defs.d.ts.map +0 -1
- package/es/components/multi-select/index.d.ts.map +0 -1
- package/es/components/multi-select/multi-select-item.d.ts.map +0 -1
- package/es/components/multi-select/multi-select.d.ts.map +0 -1
- package/es/components/notification/actionable-notification-button.d.ts.map +0 -1
- package/es/components/notification/actionable-notification.d.ts.map +0 -1
- package/es/components/notification/defs.d.ts.map +0 -1
- package/es/components/notification/index.d.ts.map +0 -1
- package/es/components/notification/inline-notification.d.ts.map +0 -1
- package/es/components/notification/toast-notification.d.ts.map +0 -1
- package/es/components/number-input/defs.d.ts.map +0 -1
- package/es/components/number-input/index.d.ts.map +0 -1
- package/es/components/number-input/number-input-skeleton.d.ts.map +0 -1
- package/es/components/number-input/number-input.d.ts.map +0 -1
- package/es/components/overflow-menu/defs.d.ts.map +0 -1
- package/es/components/overflow-menu/index.d.ts.map +0 -1
- package/es/components/overflow-menu/overflow-menu-body.d.ts.map +0 -1
- package/es/components/overflow-menu/overflow-menu-item.d.ts.map +0 -1
- package/es/components/overflow-menu/overflow-menu.d.ts.map +0 -1
- package/es/components/pagination/defs.d.ts.map +0 -1
- package/es/components/pagination/index.d.ts.map +0 -1
- package/es/components/pagination/pagination.d.ts.map +0 -1
- package/es/components/popover/defs.d.ts.map +0 -1
- package/es/components/popover/index.d.ts.map +0 -1
- package/es/components/popover/popover-content.d.ts.map +0 -1
- package/es/components/popover/popover.d.ts.map +0 -1
- package/es/components/progress-bar/defs.d.ts.map +0 -1
- package/es/components/progress-bar/index.d.ts.map +0 -1
- package/es/components/progress-bar/progress-bar.d.ts.map +0 -1
- package/es/components/progress-indicator/defs.d.ts.map +0 -1
- package/es/components/progress-indicator/index.d.ts.map +0 -1
- package/es/components/progress-indicator/progress-indicator-skeleton.d.ts.map +0 -1
- package/es/components/progress-indicator/progress-indicator.d.ts.map +0 -1
- package/es/components/progress-indicator/progress-step-skeleton.d.ts.map +0 -1
- package/es/components/progress-indicator/progress-step.d.ts.map +0 -1
- package/es/components/radio-button/defs.d.ts.map +0 -1
- package/es/components/radio-button/index.d.ts.map +0 -1
- package/es/components/radio-button/radio-button-group.d.ts.map +0 -1
- package/es/components/radio-button/radio-button-skeleton.d.ts.map +0 -1
- package/es/components/radio-button/radio-button.d.ts.map +0 -1
- package/es/components/search/index.d.ts.map +0 -1
- package/es/components/search/search-skeleton.d.ts.map +0 -1
- package/es/components/search/search.d.ts.map +0 -1
- package/es/components/select/index.d.ts.map +0 -1
- package/es/components/select/select-item-group.d.ts.map +0 -1
- package/es/components/select/select-item.d.ts.map +0 -1
- package/es/components/select/select-skeleton.d.ts.map +0 -1
- package/es/components/select/select.d.ts.map +0 -1
- package/es/components/skeleton-placeholder/index.d.ts.map +0 -1
- package/es/components/skeleton-placeholder/skeleton-placeholder.d.ts.map +0 -1
- package/es/components/skeleton-text/defs.d.ts.map +0 -1
- package/es/components/skeleton-text/index.d.ts.map +0 -1
- package/es/components/skeleton-text/skeleton-text.d.ts.map +0 -1
- package/es/components/skip-to-content/index.d.ts.map +0 -1
- package/es/components/skip-to-content/skip-to-content.d.ts.map +0 -1
- package/es/components/slider/index.d.ts.map +0 -1
- package/es/components/slider/slider-input.d.ts.map +0 -1
- package/es/components/slider/slider-skeleton.d.ts.map +0 -1
- package/es/components/slider/slider.d.ts.map +0 -1
- package/es/components/stack/defs.d.ts.map +0 -1
- package/es/components/stack/index.d.ts.map +0 -1
- package/es/components/stack/stack.d.ts.map +0 -1
- package/es/components/structured-list/index.d.ts.map +0 -1
- package/es/components/structured-list/structured-list-body.d.ts.map +0 -1
- package/es/components/structured-list/structured-list-cell.d.ts.map +0 -1
- package/es/components/structured-list/structured-list-head.d.ts.map +0 -1
- package/es/components/structured-list/structured-list-header-cell-skeleton.d.ts.map +0 -1
- package/es/components/structured-list/structured-list-header-cell.d.ts.map +0 -1
- package/es/components/structured-list/structured-list-header-row.d.ts.map +0 -1
- package/es/components/structured-list/structured-list-row.d.ts.map +0 -1
- package/es/components/structured-list/structured-list.d.ts.map +0 -1
- package/es/components/tabs/defs.d.ts.map +0 -1
- package/es/components/tabs/index.d.ts.map +0 -1
- package/es/components/tabs/tab-skeleton.d.ts.map +0 -1
- package/es/components/tabs/tab.d.ts.map +0 -1
- package/es/components/tabs/tabs-skeleton.d.ts.map +0 -1
- package/es/components/tabs/tabs.d.ts.map +0 -1
- package/es/components/tag/defs.d.ts.map +0 -1
- package/es/components/tag/index.d.ts.map +0 -1
- package/es/components/tag/tag.d.ts.map +0 -1
- package/es/components/tag/types.d.ts.map +0 -1
- package/es/components/text-input/defs.d.ts.map +0 -1
- package/es/components/text-input/index.d.ts.map +0 -1
- package/es/components/text-input/text-input-skeleton.d.ts.map +0 -1
- package/es/components/text-input/text-input.d.ts.map +0 -1
- package/es/components/textarea/defs.d.ts.map +0 -1
- package/es/components/textarea/index.d.ts.map +0 -1
- package/es/components/textarea/textarea-skeleton.d.ts.map +0 -1
- package/es/components/textarea/textarea.d.ts.map +0 -1
- package/es/components/tile/clickable-tile.d.ts.map +0 -1
- package/es/components/tile/defs.d.ts.map +0 -1
- package/es/components/tile/expandable-tile.d.ts.map +0 -1
- package/es/components/tile/index.d.ts.map +0 -1
- package/es/components/tile/radio-tile.d.ts.map +0 -1
- package/es/components/tile/selectable-tile.d.ts.map +0 -1
- package/es/components/tile/tile-group.d.ts.map +0 -1
- package/es/components/tile/tile.d.ts.map +0 -1
- package/es/components/toggle/defs.d.ts.map +0 -1
- package/es/components/toggle/index.d.ts.map +0 -1
- package/es/components/toggle/toggle.d.ts.map +0 -1
- package/es/components/toggle-tip/index.d.ts.map +0 -1
- package/es/components/toggle-tip/toggletip.d.ts.map +0 -1
- package/es/components/tooltip/index.d.ts.map +0 -1
- package/es/components/tooltip/tooltip-content.d.ts.map +0 -1
- package/es/components/tooltip/tooltip.d.ts.map +0 -1
- package/es/components/ui-shell/defs.d.ts.map +0 -1
- package/es/components/ui-shell/header-global-action.d.ts.map +0 -1
- package/es/components/ui-shell/header-menu-button.d.ts.map +0 -1
- package/es/components/ui-shell/header-menu-item.d.ts.map +0 -1
- package/es/components/ui-shell/header-menu.d.ts.map +0 -1
- package/es/components/ui-shell/header-name.d.ts.map +0 -1
- package/es/components/ui-shell/header-nav-item.d.ts.map +0 -1
- package/es/components/ui-shell/header-nav.d.ts.map +0 -1
- package/es/components/ui-shell/header-panel.d.ts.map +0 -1
- package/es/components/ui-shell/header-side-nav-items.d.ts.map +0 -1
- package/es/components/ui-shell/header.d.ts.map +0 -1
- package/es/components/ui-shell/index.d.ts.map +0 -1
- package/es/components/ui-shell/side-nav-divider.d.ts.map +0 -1
- package/es/components/ui-shell/side-nav-items.d.ts.map +0 -1
- package/es/components/ui-shell/side-nav-link.d.ts.map +0 -1
- package/es/components/ui-shell/side-nav-menu-item.d.ts.map +0 -1
- package/es/components/ui-shell/side-nav-menu.d.ts.map +0 -1
- package/es/components/ui-shell/side-nav.d.ts.map +0 -1
- package/es/components/ui-shell/switcher-divider.d.ts.map +0 -1
- package/es/components/ui-shell/switcher-item.d.ts.map +0 -1
- package/es/components/ui-shell/switcher.d.ts.map +0 -1
- package/es/globals/decorators/carbon-element.d.ts.map +0 -1
- package/es/globals/decorators/host-listener.d.ts.map +0 -1
- package/es/globals/directives/if-non-empty.d.ts.map +0 -1
- package/es/globals/directives/spread.d.ts.map +0 -1
- package/es/globals/internal/collection-helpers.d.ts.map +0 -1
- package/es/globals/internal/handle.d.ts.map +0 -1
- package/es/globals/internal/radio-group-manager.d.ts.map +0 -1
- package/es/globals/internal/storybook-cdn.d.ts.map +0 -1
- package/es/globals/mixins/focus.d.ts.map +0 -1
- package/es/globals/mixins/form.d.ts.map +0 -1
- package/es/globals/mixins/host-listener.d.ts.map +0 -1
- package/es/globals/mixins/on.d.ts.map +0 -1
- package/es/globals/mixins/validity.d.ts.map +0 -1
- package/es/globals/settings.d.ts.map +0 -1
- package/es/globals/shared-enums.d.ts.map +0 -1
- package/es/globals/wrappers/createReactCustomElementType.d.ts.map +0 -1
- package/es/index.d.ts.map +0 -1
- package/es/polyfills/element-closest.d.ts.map +0 -1
- package/es/polyfills/element-matches.d.ts.map +0 -1
- package/es/polyfills/index.d.ts.map +0 -1
- package/es/polyfills/toggle-attribute.d.ts.map +0 -1
- package/es/polyfills/toggle-class.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/accordion/accordion-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,OAAO,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAInD,OAAO,EAAE,yBAAyB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBrC;;;;;;;;;;;;GAYG;AACH,cACM,gBAAiB,SAAQ,qBAAsB;IACnD;;OAEG;IACH,OAAO,CAAC,kBAAkB,CAAC,CAA4B;IAEvD;;OAEG;IACH,OAAO,CAAC,eAAe,CAAuB;IAE9C;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAwClC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;OAEG;IACH,OAAO,CAAC,qBAAqB,CAI3B;IAEF;;OAEG;IAGH,OAAO,CAAC,eAAe,CAYrB;IAEF;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,IAAI,UAAS;IAEb;;OAEG;IAEH,KAAK,SAAM;IAEX,iBAAiB;IAWjB,oBAAoB;IAMpB,MAAM;IAwCN;;;;OAIG;IACH,MAAM,KAAK,mBAAmB;;;MAK7B;IAED;;;;OAIG;IACH,MAAM,KAAK,iBAAiB;;;MAK3B;IAED;;;OAGG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED,MAAM,KAAK,wBAAwB,WAElC;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,gBAAgB,CAAC","file":"accordion-item.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 } from 'lit/decorators.js';\nimport ChevronRight16 from '@carbon/icons/lib/chevron--right/16';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport Handle from '../../globals/internal/handle';\nimport { ACCORDION_ITEM_BREAKPOINT } from './defs';\nimport styles from './accordion.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport { ACCORDION_ITEM_BREAKPOINT };\n\n/**\n * Observes resize of the given element with the given resize observer.\n *\n * @param observer The resize observer.\n * @param elem The element to observe the resize.\n */\nconst observeResize = (observer: ResizeObserver, elem: Element) => {\n if (!elem) {\n return null;\n }\n observer.observe(elem);\n return {\n release() {\n observer.unobserve(elem);\n return null;\n },\n } as Handle;\n};\n\n/**\n * Accordion item.\n *\n * @element cds-accordion-item\n * @fires cds-accordion-item-beingtoggled\n * The custom event fired before this accordion item is being toggled upon a user gesture.\n * Cancellation of this event stops the user-initiated action of toggling this accordion item.\n * @fires cds-accordion-item-toggled - The custom event fired after this accordion item is toggled upon a user gesture.\n * @csspart expando The expando button.\n * @csspart expando-icon The expando icon.\n * @csspart title The title.\n * @csspart content The content.\n */\n@customElement(`${prefix}-accordion-item`)\nclass CDSAccordionItem extends FocusMixin(LitElement) {\n /**\n * The current breakpoint.\n */\n private _currentBreakpoint?: ACCORDION_ITEM_BREAKPOINT;\n\n /**\n * The handle for observing resize of the parent element of this element.\n */\n private _hObserveResize: Handle | null = null;\n\n /**\n * Handles user-initiated toggle request of this accordion item.\n *\n * @param open The new open state.\n */\n private _handleUserInitiatedToggle(open = !this.open) {\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n open,\n },\n };\n if (\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSAccordionItem).eventBeforeToggle,\n init\n )\n )\n ) {\n const { selectorAccordionContent } = this\n .constructor as typeof CDSAccordionItem;\n\n !this.open\n ? this.setAttribute('expanding', '')\n : this.setAttribute('collapsing', '');\n this.shadowRoot!.querySelector(\n selectorAccordionContent\n )!.addEventListener('animationend', () => {\n this.removeAttribute('expanding');\n this.removeAttribute('collapsing');\n });\n\n this.open = open;\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSAccordionItem).eventToggle,\n init\n )\n );\n }\n }\n\n /**\n * Handler for the `click` event on the expando button.\n */\n private _handleClickExpando() {\n this._handleUserInitiatedToggle();\n }\n\n /**\n * Handler for the `keydown` event on the expando button.\n */\n private _handleKeydownExpando = ({ key }: KeyboardEvent) => {\n if (this.open && (key === 'Esc' || key === 'Escape')) {\n this._handleUserInitiatedToggle(false);\n }\n };\n\n /**\n * The `ResizeObserver` instance for observing element resizes for re-positioning floating menu position.\n */\n // TODO: Wait for `.d.ts` update to support `ResizeObserver`\n // @ts-ignore\n private _resizeObserver = new ResizeObserver(\n (records: ResizeObserverEntry[]) => {\n const { width } = records[records.length - 1].contentRect;\n const { _sizesBreakpoints: sizesBreakpoints } = this\n .constructor as typeof CDSAccordionItem;\n this._currentBreakpoint = Object.keys(sizesBreakpoints)\n .sort((lhs, rhs) => sizesBreakpoints[rhs] - sizesBreakpoints[lhs])\n .find(\n (size) => width >= sizesBreakpoints[size]\n ) as ACCORDION_ITEM_BREAKPOINT;\n this.requestUpdate();\n }\n );\n\n /**\n * `true` if the accordion item should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * `true` if the accordion item should be open.\n */\n @property({ type: Boolean, reflect: true })\n open = false;\n\n /**\n * The title text.\n */\n @property({ attribute: 'title' })\n title = '';\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'listitem');\n }\n super.connectedCallback();\n if (this._hObserveResize) {\n this._hObserveResize = this._hObserveResize.release();\n }\n this._hObserveResize = observeResize(this._resizeObserver, this);\n }\n\n disconnectedCallback() {\n if (this._hObserveResize) {\n this._hObserveResize = this._hObserveResize.release();\n }\n }\n\n render() {\n const {\n disabled,\n title,\n open,\n _currentBreakpoint: currentBreakpoint,\n _handleClickExpando: handleClickExpando,\n _handleKeydownExpando: handleKeydownExpando,\n } = this;\n const { _classesBreakpoints: classesBreakpoints } = this\n .constructor as typeof CDSAccordionItem;\n const { [currentBreakpoint!]: classBreakpoint } = classesBreakpoints;\n const contentClasses = classMap({\n [classBreakpoint]: classBreakpoint,\n [`${prefix}--accordion__content`]: true,\n });\n return html`\n <button\n ?disabled=\"${disabled}\"\n type=\"button\"\n part=\"expando\"\n class=\"${prefix}--accordion__heading\"\n aria-controls=\"content\"\n aria-expanded=\"${open}\"\n @click=\"${handleClickExpando}\"\n @keydown=\"${handleKeydownExpando}\">\n ${ChevronRight16({\n part: 'expando-icon',\n class: `${prefix}--accordion__arrow`,\n })}\n <div part=\"title\" class=\"${prefix}--accordion__title\">\n <slot name=\"title\">${title}</slot>\n </div>\n </button>\n <div id=\"content\" part=\"content\" class=\"${contentClasses}\">\n <slot></slot>\n </div>\n `;\n }\n\n /**\n * The CSS classes for breakpoints.\n *\n * @private\n */\n static get _classesBreakpoints() {\n return {\n [ACCORDION_ITEM_BREAKPOINT.SMALL]: `${prefix}-ce--accordion__content--${ACCORDION_ITEM_BREAKPOINT.SMALL}`,\n [ACCORDION_ITEM_BREAKPOINT.MEDIUM]: `${prefix}-ce--accordion__content--${ACCORDION_ITEM_BREAKPOINT.MEDIUM}`,\n };\n }\n\n /**\n * The breakpoints.\n *\n * @private\n */\n static get _sizesBreakpoints() {\n return {\n [ACCORDION_ITEM_BREAKPOINT.SMALL]: 480,\n [ACCORDION_ITEM_BREAKPOINT.MEDIUM]: 640,\n };\n }\n\n /**\n * The name of the custom event fired before this accordion item is being toggled upon a user gesture.\n * Cancellation of this event stops the user-initiated action of toggling this accordion item.\n */\n static get eventBeforeToggle() {\n return `${prefix}-accordion-item-beingtoggled`;\n }\n\n /**\n * The name of the custom event fired after this accordion item is toggled upon a user gesture.\n */\n static get eventToggle() {\n return `${prefix}-accordion-item-toggled`;\n }\n\n static get selectorAccordionContent() {\n return `.${prefix}--accordion__content`;\n }\n\n static styles = styles;\n}\n\nexport default CDSAccordionItem;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/accordion/accordion-skeleton.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,2BAA2B,CAAC;AACnC,OAAO,wBAAwB,CAAC;AAGhC;;GAEG;AACH,cACM,oBAAqB,SAAQ,UAAU;IAC3C;;OAEG;IAEH,SAAS,sBAA2B;IAEpC;;OAEG;IAEH,KAAK,SAAK;IAEV;;OAEG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IAEH,IAAI,UAAQ;IAEZ,OAAO,CAAC,iBAAiB,KAAA;IAgCzB,MAAM;IAuCN,MAAM,KAAK,8BAA8B,WAExC;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,oBAAoB,CAAC","file":"accordion-skeleton.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport { ACCORDION_ALIGNMENT } from './accordion';\nimport { forEach } from '../../globals/internal/collection-helpers';\nimport ChevronRight16 from '@carbon/icons/lib/chevron--right/16';\nimport './accordion-item-skeleton';\nimport '../skeleton-text/index';\nimport styles from './accordion.scss';\n\n/**\n * Skeleton of code snippet.\n */\n@customElement(`${prefix}-accordion-skeleton`)\nclass CDSAccordionSkeleton extends LitElement {\n /**\n * Specify the alignment of the accordion heading title and chevron\n */\n @property({ reflect: true })\n alignment = ACCORDION_ALIGNMENT.END;\n\n /**\n * Set number of items to render\n */\n @property({ type: Number, attribute: 'count' })\n count = 4;\n\n /**\n * Specify whether Accordion text should be flush, default is false, does not work with align=\"start\"\n */\n @property({ type: Boolean, reflect: true })\n isFlush = false;\n\n /**\n * `true` if the first accordion item should be open.\n */\n @property({ type: Boolean, reflect: true })\n open = true;\n\n updated(changedProperties) {\n if (changedProperties.has('alignment')) {\n // Propagate `alignment` attribute to descendants until `:host-context()` gets supported in all major browsers\n forEach(\n this.shadowRoot!.querySelectorAll(\n (this.constructor as typeof CDSAccordionSkeleton)\n .selectorAccordionItemSkeletons\n ),\n (elem) => {\n elem.setAttribute('alignment', this.alignment);\n }\n );\n }\n if (\n changedProperties.has('isFlush') ||\n changedProperties.has('alignment')\n ) {\n // Propagate `isFlush` attribute to descendants until `:host-context()` gets supported in all major browsers\n forEach(\n this.shadowRoot!.querySelectorAll(\n (this.constructor as typeof CDSAccordionSkeleton)\n .selectorAccordionItemSkeletons\n ),\n (elem) => {\n this.isFlush && this.alignment !== 'start'\n ? elem.setAttribute('isFlush', '')\n : elem.removeAttribute('isFlush');\n }\n );\n }\n }\n\n render() {\n const classes = classMap({\n [`${prefix}--accordion__item`]: true,\n [`${prefix}--accordion__item--active`]: true,\n [`${prefix}--accordion--${this.alignment}`]: this.alignment,\n [`${prefix}--accordion--flush`]:\n this.isFlush && this.alignment !== 'start',\n });\n const numSkeletonItems = this.open ? this.count - 1 : this.count;\n return html`\n ${this.open\n ? html`\n <li class=\"${classes}\">\n <span class=\"${prefix}--accordion__heading\">\n ${ChevronRight16({\n part: 'expando-icon',\n class: `${prefix}--accordion__arrow`,\n })}\n <cds-skeleton-text\n class=\"${prefix}--accordion__title\"></cds-skeleton-text>\n </span>\n <div class=\"${prefix}--accordion__content\">\n <cds-skeleton-text width=\"90%\"></cds-skeleton-text>\n <cds-skeleton-text width=\"80%\"></cds-skeleton-text>\n <cds-skeleton-text width=\"85%\"></cds-skeleton-text>\n </div>\n </li>\n `\n : ``}\n ${Array.from(new Array(numSkeletonItems)).map(\n (_, index) =>\n html`\n <cds-accordion-item-skeleton\n key=${index}></cds-accordion-item-skeleton>\n `\n )}\n `;\n }\n\n static get selectorAccordionItemSkeletons() {\n return `${prefix}-accordion-item-skeleton`;\n }\n\n static styles = styles;\n}\n\nexport default CDSAccordionSkeleton;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/accordion/accordion.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAIvC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAI7D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC;AAE/C;;;;GAIG;AACH,cACM,YAAa,SAAQ,UAAU;IACnC;;OAEG;IAEH,IAAI,iBAAyB;IAE7B;;OAEG;IAEH,SAAS,sBAA2B;IAEpC;;OAEG;IAEH,OAAO,UAAS;IAEhB,iBAAiB;IAOjB,OAAO,CAAC,iBAAiB,KAAA;IAyCzB,MAAM;IAIN,MAAM,KAAK,sBAAsB,WAEhC;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,YAAY,CAAC","file":"accordion.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport { forEach } from '../../globals/internal/collection-helpers';\nimport { ACCORDION_SIZE, ACCORDION_ALIGNMENT } from './defs';\nimport styles from './accordion.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport { ACCORDION_SIZE, ACCORDION_ALIGNMENT };\n\n/**\n * Accordion container.\n *\n * @element cds-accordion\n */\n@customElement(`${prefix}-accordion`)\nclass CDSAccordion extends LitElement {\n /**\n * Accordion size should be sm, md, lg.\n */\n @property({ reflect: true })\n size = ACCORDION_SIZE.MEDIUM;\n\n /**\n * Specify the alignment of the accordion heading title and chevron\n */\n @property({ reflect: true })\n alignment = ACCORDION_ALIGNMENT.END;\n\n /**\n * Specify whether Accordion text should be flush, default is false, does not work with align=\"start\"\n */\n @property({ type: Boolean, reflect: true })\n isFlush = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'list');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('size')) {\n // Propagate `size` attribute to descendants until `:host-context()` gets supported in all major browsers\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof CDSAccordion).selectorAccordionItems\n ),\n (elem) => {\n elem.setAttribute('size', this.size);\n }\n );\n }\n if (changedProperties.has('alignment')) {\n // Propagate `alignment` attribute to descendants until `:host-context()` gets supported in all major browsers\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof CDSAccordion).selectorAccordionItems\n ),\n (elem) => {\n elem.setAttribute('alignment', this.alignment);\n }\n );\n }\n if (\n changedProperties.has('isFlush') ||\n changedProperties.has('alignment')\n ) {\n // Propagate `isFlush` attribute to descendants until `:host-context()` gets supported in all major browsers\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof CDSAccordion).selectorAccordionItems\n ),\n (elem) => {\n this.isFlush && this.alignment !== 'start'\n ? elem.setAttribute('isFlush', '')\n : elem.removeAttribute('isFlush');\n }\n );\n }\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static get selectorAccordionItems() {\n return `${prefix}-accordion-item`;\n }\n\n static styles = styles;\n}\n\nexport default CDSAccordion;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/accordion/defs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,oBAAY,yBAAyB;IACnC;;OAEG;IACH,KAAK,OAAO;IAEZ;;OAEG;IACH,MAAM,OAAO;CACd;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB;;OAEG;IACH,KAAK,OAAO;IAEZ;;OAEG;IACH,MAAM,OAAO;IAEb;;OAEG;IACH,KAAK,OAAO;CACb;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAC7B;;OAEG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,GAAG,QAAQ;CACZ","file":"defs.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022, 2023\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\n/**\n * Breakpoints for accordion items. It's different from one in `@carbon/layout` library.\n */\nexport enum ACCORDION_ITEM_BREAKPOINT {\n /**\n * Small breakpoint.\n */\n SMALL = 'sm',\n\n /**\n * Medium breakpoint.\n */\n MEDIUM = 'md',\n}\n\n/**\n * Accordion size.\n */\nexport enum ACCORDION_SIZE {\n /**\n * Small size.\n */\n SMALL = 'sm',\n\n /**\n * Medium size.\n */\n MEDIUM = 'md',\n\n /**\n * Large size.\n */\n LARGE = 'lg',\n}\n\n/**\n * Specify the alignment of the accordion heading title and chevron.\n */\nexport enum ACCORDION_ALIGNMENT {\n /**\n * Alignment to the start\n */\n START = 'start',\n\n /**\n * Alignment to the end\n */\n END = 'END',\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/accordion/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,aAAa,CAAC;AACrB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,2BAA2B,CAAC;AACnC,OAAO,sBAAsB,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022, 2023\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 './accordion';\nimport './accordion-item';\nimport './accordion-item-skeleton';\nimport './accordion-skeleton';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/breadcrumb/breadcrumb-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,cACM,iBAAkB,SAAQ,UAAU;IACxC,iBAAiB;IAOjB,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,iBAAiB,CAAC","file":"breadcrumb-item.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport styles from './breadcrumb.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Breadcrumb item.\n *\n * @element cds-breadcrumb-item\n */\n@customElement(`${prefix}-breadcrumb-item`)\nclass CDSBreadcrumbItem extends LitElement {\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'listitem');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSBreadcrumbItem;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/breadcrumb/breadcrumb-link.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,OAAO,MAAM,cAAc,CAAC;AAInC;;;;GAIG;AACH,cACM,iBAAkB,SAAQ,OAAO;IACrC,MAAM;IAON,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,iBAAiB,CAAC","file":"breadcrumb-link.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport CDSLink from '../link/link';\nimport styles from './breadcrumb.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Link in breadcrumb.\n *\n * @element cds-breadcrumb-link\n */\n@customElement(`${prefix}-breadcrumb-link`)\nclass CDSBreadcrumbLink extends CDSLink {\n render() {\n return html`\n ${this.href\n ? super.render()\n : html`<span class=\"${prefix}--link\"><slot></slot></span>`}\n `;\n }\n static styles = styles;\n}\n\nexport default CDSBreadcrumbLink;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/breadcrumb/breadcrumb-overflow-menu.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAI7D;;;;GAIG;AACH,cACM,yBAA0B,SAAQ,eAAe;IACrD,MAAM;IAUN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,yBAAyB,CAAC","file":"breadcrumb-overflow-menu.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport OverflowMenuHorizontal16 from '@carbon/icons/lib/overflow-menu--horizontal/16';\nimport CDSOverflowMenu from '../overflow-menu/overflow-menu';\nimport styles from './breadcrumb.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Overflow menu in breadcrumb.\n *\n * @element cds-breadcrumb-overflow-menu\n */\n@customElement(`${prefix}-breadcrumb-overflow-menu`)\nclass CDSBreadcrumbOverflowMenu extends CDSOverflowMenu {\n render() {\n return html`\n <slot name=\"icon\">\n ${OverflowMenuHorizontal16({\n class: `${prefix}--overflow-menu__icon`,\n })}\n </slot>\n `;\n }\n\n static styles = styles;\n}\n\nexport default CDSBreadcrumbOverflowMenu;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/breadcrumb/breadcrumb-skeleton.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAavC;;GAEG;AACH,cACM,qBAAsB,SAAQ,UAAU;IAC5C,MAAM;IAQN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,qBAAqB,CAAC","file":"breadcrumb-skeleton.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './breadcrumb.scss';\n\nconst renderItem = () => {\n return html`\n <div class=\"${prefix}--breadcrumb-item\">\n <span class=\"${prefix}--link\"> </span>\n </div>\n `;\n};\n\n/**\n * Skeleton of breadcrumb.\n */\n@customElement(`${prefix}-breadcrumb-skeleton`)\nclass CDSBreadcrumbSkeleton extends LitElement {\n render() {\n return html`\n <div class=\"${prefix}--breadcrumb ${prefix}--skeleton\">\n ${renderItem()} ${renderItem()} ${renderItem()}\n </div>\n `;\n }\n\n static styles = styles;\n}\n\nexport default CDSBreadcrumbSkeleton;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/breadcrumb/breadcrumb.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC;;;;GAIG;AACH,cACM,aAAc,SAAQ,UAAU;IACpC;;OAEG;IAEH,eAAe,UAAS;IAExB,iBAAiB;IAOjB,MAAM;IAYN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,aAAa,CAAC","file":"breadcrumb.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './breadcrumb.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Breadcrumb.\n *\n * @element cds-breadcrumb\n */\n@customElement(`${prefix}-breadcrumb`)\nclass CDSBreadcrumb extends LitElement {\n /**\n * Optional prop to omit the trailing slash for the breadcrumbs\n */\n @property({ type: Boolean, reflect: true, attribute: 'no-trailing-slash' })\n noTrailingSlash = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'navigation');\n }\n super.connectedCallback();\n }\n\n render() {\n const classes = classMap({\n [`${prefix}--breadcrumb`]: true,\n [`${prefix}--breadcrumb--no-trailing-slash`]: this.noTrailingSlash,\n });\n return html`\n <ol class=\"${classes}\">\n <slot></slot>\n </ol>\n `;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSBreadcrumb;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/breadcrumb/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,cAAc,CAAC;AACtB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,uBAAuB,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022, 2023\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 './breadcrumb';\nimport './breadcrumb-item';\nimport './breadcrumb-link';\nimport './breadcrumb-skeleton';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/button/button-set.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC;;;;GAIG;AACH,cACM,YAAa,SAAQ,UAAU;IACnC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA2BzB,MAAM;IAIN,iBAAiB;IAKjB;;OAEG;IACH,MAAM,KAAK,YAAY,WAEtB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,YAAY,CAAC","file":"button-set.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\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 { LitElement, html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { BUTTON_KIND } from './defs';\nimport styles from './button.scss';\nimport { prefix } from '../../globals/settings';\n\n/**\n * Button set.\n *\n * @element cds-button-set\n */\n@customElement(`${prefix}-button-set`)\nclass CDSButtonSet extends LitElement {\n /**\n * Handler for @slotchange, set the first cds-button to kind secondary and primary for the remaining ones\n *\n * @private\n */\n private _handleSlotChange(event: Event) {\n const childItems = (event.target as HTMLSlotElement)\n .assignedNodes()\n .filter((elem) =>\n (elem as HTMLElement).matches !== undefined\n ? (elem as HTMLElement).matches(\n (this.constructor as typeof CDSButtonSet).selectorItem\n )\n : false\n );\n\n childItems.forEach((elem, index) => {\n (elem as HTMLElement).setAttribute(\n 'kind',\n index === 0 ? BUTTON_KIND.SECONDARY : BUTTON_KIND.PRIMARY\n );\n });\n\n const update = new CustomEvent(`${prefix}-btn-set-update`, {\n bubbles: true,\n cancelable: true,\n composed: true,\n });\n\n this.dispatchEvent(update);\n }\n\n render() {\n return html` <slot @slotchange=\"${this._handleSlotChange}\"></slot> `;\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'list');\n }\n\n /**\n * A selector that will return the child items.\n */\n static get selectorItem() {\n return `${prefix}-button`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default CDSButtonSet;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/button/button-skeleton.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,SAAS,MAAM,UAAU,CAAC;AAIjC;;GAEG;AACH,cACM,iBAAkB,SAAQ,SAAS;IACvC;;;;OAIG;IACH,OAAO,CAAC,wBAAwB;IAOhC,MAAM;IA2CN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,iBAAiB,CAAC","file":"button-skeleton.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { ifDefined } from 'lit/directives/if-defined.js';\nimport { html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport CDSButton from './button';\nimport styles from './button.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Button skeleton.\n */\n@customElement(`${prefix}-button-skeleton`)\nclass CDSButtonSkeleton extends CDSButton {\n /**\n * Handles `click` event on the `<a>.\n *\n * @param event The event.\n */\n private _handleClickLinkSkeleton(event: MouseEvent) {\n if (this.disabled) {\n event.preventDefault(); // Stop following the link\n event.stopPropagation(); // Stop firing `onClick`\n }\n }\n\n render() {\n const {\n autofocus,\n disabled,\n download,\n href,\n hreflang,\n ping,\n rel,\n size,\n target,\n type,\n } = this;\n const classes = classMap({\n [`${prefix}--btn`]: true,\n [`${prefix}--skeleton`]: true,\n [`${prefix}--btn--${size}`]: size,\n });\n return href\n ? html`\n <a\n id=\"button\"\n role=\"button\"\n class=\"${classes}\"\n download=\"${ifDefined(download)}\"\n href=\"${ifDefined(href)}\"\n hreflang=\"${ifDefined(hreflang)}\"\n ping=\"${ifDefined(ping)}\"\n rel=\"${ifDefined(rel)}\"\n target=\"${ifDefined(target)}\"\n type=\"${ifDefined(type)}\"\n @click=\"${this._handleClickLinkSkeleton}\"></a>\n `\n : html`\n <button\n id=\"button\"\n class=\"${classes}\"\n ?autofocus=\"${autofocus}\"\n ?disabled=\"${disabled}\"\n type=\"${ifDefined(type)}\"></button>\n `;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSButtonSkeleton;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAIvC,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,QAAQ,CAAC;AAMhB,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,wBAAwB,EACxB,uBAAuB,GACxB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF;;;;;GAKG;AACH,cACM,SAAU,SAAQ,cAAyC;IAC/D;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAS;IAEzB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,WAAW,CAEjB;IAEF;;OAEG;IAGH,OAAO,CAAC,eAAe,CAErB;IAEF;;;OAGG;IAGH,OAAO,CAAC,YAAY,CAElB;IAEF;;;OAGG;IAGH,OAAO,CAAC,eAAe,CAErB;IAEF;;OAEG;IAEH,SAAS,UAAS;IAElB;;OAEG;IAEH,WAAW,UAAS;IAEpB;;OAEG;IAEH,eAAe,MAAC;IAEhB;;OAEG;IAEH,gBAAgB,MAAC;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,EAAG,MAAM,CAAC;IAElB;;OAEG;IAEH,cAAc,UAAS;IAEvB;;OAEG;IAEH,IAAI,EAAG,MAAM,CAAC;IAEd;;OAEG;IAEH,QAAQ,EAAG,MAAM,CAAC;IAElB;;OAEG;IAEH,YAAY,UAAS;IAErB;;;OAGG;IAEH,UAAU,UAAS;IAEnB;;OAEG;IAEH,IAAI,cAAuB;IAE3B;;OAEG;IAEH,QAAQ,SAAY;IAEpB;;OAEG;IAEH,WAAW,UAAS;IAEpB;;OAEG;IAEH,IAAI,EAAG,MAAM,CAAC;IAEd;;OAEG;IAEH,GAAG,EAAG,MAAM,CAAC;IAEb;;OAEG;IAEH,IAAI,SAAQ;IAEZ;;OAEG;IAEH,MAAM,EAAG,MAAM,CAAC;IAEhB;;;OAGG;IAEH,gBAAgB,2BAAmC;IAEnD;;;OAGG;IAEH,eAAe,0BAA+B;IAE9C;;;OAGG;IAEH,WAAW,EAAG,MAAM,CAAC;IAErB;;OAEG;IAEH,IAAI,cAAsB;IAE1B,MAAM;IAwIN,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,SAAS,CAAC","file":"button.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { ifDefined } from 'lit/directives/if-defined.js';\nimport { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport {\n BUTTON_KIND,\n BUTTON_TYPE,\n BUTTON_SIZE,\n BUTTON_TOOLTIP_ALIGNMENT,\n BUTTON_TOOLTIP_POSITION,\n} from './defs';\nimport styles from './button.scss';\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport {\n BUTTON_KIND,\n BUTTON_TYPE,\n BUTTON_SIZE,\n BUTTON_TOOLTIP_ALIGNMENT,\n BUTTON_TOOLTIP_POSITION,\n};\n\n/**\n * Button.\n *\n * @element cds-button\n * @csspart button The button.\n */\n@customElement(`${prefix}-button`)\nclass CDSButton extends HostListenerMixin(FocusMixin(LitElement)) {\n /**\n * `true` if there is an icon.\n */\n private _hasIcon = false;\n\n /**\n * Handles `slotchange` event.\n */\n private _handleSlotChange({ target }: Event) {\n const { name } = target as HTMLSlotElement;\n const hasContent = (target as HTMLSlotElement)\n .assignedNodes()\n .some(\n (node) => node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n this[name === 'icon' ? '_hasIcon' : 'hasMainContent'] = hasContent;\n this.requestUpdate();\n }\n\n @HostListener('click', { capture: true })\n // @ts-ignore\n private _handleDisabledClick(event: Event) {\n const { disabled } = this;\n if (disabled) {\n event.stopPropagation();\n }\n }\n\n @HostListener('mouseover')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleOver = () => {\n this.openTooltip = true;\n };\n\n /**\n * Handles `keydown` event on this element.\n */\n @HostListener('mouseout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleHoverOut = async () => {\n this.openTooltip = false;\n };\n\n /**\n * Handles `keydown` event on this element.\n * Space & enter will toggle state, Escape will only close.\n */\n @HostListener('focus')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleFocus = async (event) => {\n this.openTooltip = true;\n };\n\n /**\n * Handles `keydown` event on this element.\n * Space & enter will toggle state, Escape will only close.\n */\n @HostListener('focusout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleFocusout = async (event) => {\n this.openTooltip = false;\n };\n\n /**\n * `true` if the button should have input focus when the page loads.\n */\n @property({ type: Boolean, reflect: true })\n autofocus = false;\n\n /**\n * `true` if the button is being used within a data table batch action toolbar\n */\n @property({ type: Boolean, reflect: true, attribute: 'batch-action' })\n batchAction = false;\n\n /**\n * Specify an optional className to be added to your Button\n */\n @property({ reflect: true, attribute: 'button-class-name' })\n buttonClassName;\n\n /**\n * Specify the message read by screen readers for the danger button variant\n */\n @property({ reflect: true, attribute: 'danger-descriptor' })\n dangerDescriptor;\n\n /**\n * `true` if the button should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * The default file name, used if this button is rendered as `<a>`.\n */\n @property({ reflect: true })\n download!: string;\n\n /**\n * `true` if there is a non-icon content.\n */\n @property({ reflect: true, attribute: 'has-main-content', type: Boolean })\n hasMainContent = false;\n\n /**\n * Link `href`. If present, this button is rendered as `<a>`.\n */\n @property({ reflect: true })\n href!: string;\n\n /**\n * The language of what `href` points to, if this button is rendered as `<a>`.\n */\n @property({ reflect: true })\n hreflang!: string;\n\n /**\n * `true` if expressive theme enabled.\n */\n @property({ type: Boolean, reflect: true })\n isExpressive = false;\n\n /**\n * Specify whether the Button is currently selected.\n * Only applies to the Ghost variant.\n */\n @property({ type: Boolean, reflect: true })\n isSelected = false;\n\n /**\n * Button kind.\n */\n @property({ reflect: true })\n kind = BUTTON_KIND.PRIMARY;\n\n /**\n * The a11y role for `<a>`.\n */\n @property({ attribute: 'link-role' })\n linkRole = 'button';\n\n /**\n * Boolean to determine if tooltip is open.\n */\n @property({ type: Boolean })\n openTooltip = false;\n\n /**\n * URLs to ping, if this button is rendered as `<a>`.\n */\n @property({ reflect: true })\n ping!: string;\n\n /**\n * The link type, if this button is rendered as `<a>`.\n */\n @property({ reflect: true })\n rel!: string;\n\n /**\n * Button size.\n */\n @property({ reflect: true })\n size = 'lg';\n\n /**\n * The link target, if this button is rendered as `<a>`.\n */\n @property({ reflect: true })\n target!: string;\n\n /**\n * Specify the alignment of the tooltip to the icon-only button.\n * Can be one of: start, center, or end.\n */\n @property({ reflect: true, attribute: 'tooltip-alignment' })\n tooltipAlignment = BUTTON_TOOLTIP_ALIGNMENT.CENTER;\n\n /**\n * Specify the direction of the tooltip for icon-only buttons.\n * Can be either top, right, bottom, or left.\n */\n @property({ reflect: true, attribute: 'tooltip-position' })\n tooltipPosition = BUTTON_TOOLTIP_POSITION.TOP;\n\n /**\n * Specify the direction of the tooltip for icon-only buttons.\n * Can be either top, right, bottom, or left.\n */\n @property({ reflect: true, attribute: 'tooltip-text' })\n tooltipText!: string;\n\n /**\n * Button type.\n */\n @property({ reflect: true })\n type = BUTTON_TYPE.BUTTON;\n\n render() {\n const {\n autofocus,\n buttonClassName,\n dangerDescriptor,\n disabled,\n download,\n href,\n hreflang,\n kind,\n isExpressive,\n isSelected,\n linkRole,\n openTooltip,\n ping,\n rel,\n size,\n target,\n tooltipAlignment,\n tooltipPosition,\n tooltipText,\n type,\n _hasIcon: hasIcon,\n hasMainContent,\n _handleSlotChange: handleSlotChange,\n } = this;\n\n let defaultClasses = {\n [`${prefix}--btn`]: true,\n [`${prefix}--btn--${kind}`]: kind,\n [`${prefix}--btn--disabled`]: disabled,\n [`${prefix}--btn--icon-only`]: hasIcon && !hasMainContent,\n [`${prefix}--btn--${size}`]: size,\n [`${prefix}--layout--size-${size}`]: size,\n [`${prefix}-ce--btn--has-icon`]: hasIcon,\n [`${prefix}--btn--expressive`]: isExpressive,\n [`${prefix}--btn--selected`]: isSelected && kind === 'ghost',\n };\n\n if (buttonClassName) {\n const outputObject = {};\n buttonClassName?.split(' ').forEach((element) => {\n outputObject[element] = true;\n });\n defaultClasses = { ...defaultClasses, ...outputObject };\n }\n const classes = classMap(defaultClasses);\n\n const isDanger = kind.includes('danger');\n\n if (href) {\n return disabled\n ? html`\n <p id=\"button\" part=\"button\" class=\"${classes}\">\n <slot @slotchange=\"${handleSlotChange}\"></slot>\n <slot name=\"icon\" @slotchange=\"${handleSlotChange}\"></slot>\n </p>\n `\n : html`\n <a\n id=\"button\"\n part=\"button\"\n role=\"${ifDefined(linkRole)}\"\n class=\"${classes}\"\n download=\"${ifDefined(download)}\"\n href=\"${ifDefined(href)}\"\n hreflang=\"${ifDefined(hreflang)}\"\n ping=\"${ifDefined(ping)}\"\n rel=\"${ifDefined(rel)}\"\n target=\"${ifDefined(target)}\"\n type=\"${ifDefined(type)}\">\n <slot @slotchange=\"${handleSlotChange}\"></slot>\n <slot name=\"icon\" @slotchange=\"${handleSlotChange}\"></slot>\n </a>\n `;\n }\n\n const alignmentClass =\n tooltipAlignment &&\n (tooltipPosition === BUTTON_TOOLTIP_POSITION.TOP ||\n tooltipPosition === BUTTON_TOOLTIP_POSITION.BOTTOM)\n ? `-${tooltipAlignment}`\n : '';\n\n const tooltipClasses = classMap({\n [`${prefix}--popover-container`]: true,\n [`${prefix}--popover--caret`]: true,\n [`${prefix}--popover--high-contrast`]: true,\n [`${prefix}--tooltip`]: true,\n [`${prefix}--icon-tooltip`]: hasIcon,\n [`${prefix}--popover--open`]: openTooltip,\n [`${prefix}--popover--${tooltipPosition}${alignmentClass}`]: tooltipText,\n });\n\n return tooltipText && !disabled\n ? html`\n <span class=\"${tooltipClasses}\">\n <button\n id=\"button\"\n part=\"button\"\n class=\"${classes}\"\n ?autofocus=\"${autofocus}\"\n ?disabled=\"${disabled}\"\n type=\"${ifDefined(type)}\"\n aria-label=\"${ifDefined(tooltipText)}\">\n <slot @slotchange=\"${handleSlotChange}\"></slot>\n <slot name=\"icon\" @slotchange=\"${handleSlotChange}\"></slot>\n </button>\n <span class=\"${prefix}--popover\">\n <span\n class=\"${prefix}--popover-content ${prefix}--tooltip-content\">\n ${tooltipText}\n </span>\n <span class=\"${prefix}--popover-caret\"></span>\n </span>\n </span>\n `\n : html`\n <button\n id=\"button\"\n part=\"button\"\n class=\"${classes}\"\n ?autofocus=\"${autofocus}\"\n ?disabled=\"${disabled}\"\n type=\"${ifDefined(type)}\">\n ${isDanger\n ? html`<span class=\"${prefix}--visually-hidden\"\n >${dangerDescriptor}</span\n >`\n : ``}\n <slot @slotchange=\"${handleSlotChange}\"></slot>\n <slot name=\"icon\" @slotchange=\"${handleSlotChange}\"></slot>\n </button>\n `;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSButton;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/button/defs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,SAAS,cAAc;IAEvB;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,cAAc,mBAAmB;IAEjC;;OAEG;IACH,eAAe,oBAAoB;IAEnC;;OAEG;IACH,YAAY,iBAAiB;CAC9B;AAED;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,KAAK,OAAO;IAEZ;;OAEG;IACH,MAAM,OAAO;IAEb;;OAEG;IACH,KAAK,OAAO;IAEZ;;OAEG;IACH,WAAW,OAAO;IAElB;;OAEG;IACH,iBAAiB,QAAQ;CAC1B;AAED;;GAEG;AACH,oBAAY,wBAAwB;IAClC;;OAEG;IACH,KAAK,SAAS;IAEd;;OAEG;IACH,MAAM,KAAK;IAEX;;OAEG;IACH,GAAG,UAAU;CACd;AAED;;GAEG;AACH,oBAAY,uBAAuB;IACjC;;OAEG;IACH,GAAG,QAAQ;IAEX;;OAEG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,IAAI,SAAS;CACd","file":"defs.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022, 2023\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\n/**\n * Button kind.\n */\nexport enum BUTTON_KIND {\n /**\n * Primary button.\n */\n PRIMARY = 'primary',\n\n /**\n * Secondary button.\n */\n SECONDARY = 'secondary',\n\n /**\n * Tertiary button.\n */\n TERTIARY = 'tertiary',\n\n /**\n * Ghost button.\n */\n GHOST = 'ghost',\n\n /**\n * Danger button.\n */\n DANGER = 'danger',\n\n /**\n * Danger primary button.\n */\n DANGER_PRIMARY = 'danger-primary',\n\n /**\n * Danger tertiary button.\n */\n DANGER_TERTIARY = 'danger-tertiary',\n\n /**\n * Danger ghost button,\n */\n DANGER_GHOST = 'danger-ghost',\n}\n\n/**\n * Button type.\n */\nexport enum BUTTON_TYPE {\n /**\n * Default button type.\n */\n BUTTON = 'button',\n\n /**\n * Reset button type.\n */\n RESET = 'reset',\n\n /**\n * Submit button type.\n */\n SUBMIT = 'submit',\n}\n\n/**\n * Button size.\n */\nexport enum BUTTON_SIZE {\n /**\n * Small size.\n */\n SMALL = 'sm',\n\n /**\n * Medium size.\n */\n MEDIUM = 'md',\n\n /**\n * Large size.\n */\n LARGE = 'lg',\n\n /**\n * X-Large size.\n */\n EXTRA_LARGE = 'xl',\n\n /**\n * 2X-Large size.\n */\n EXTRA_EXTRA_LARGE = '2xl',\n}\n\n/**\n * Button tooltip alignment.\n */\nexport enum BUTTON_TOOLTIP_ALIGNMENT {\n /**\n * Aligned to the start.\n */\n START = 'left',\n\n /**\n * Aligned to the center.\n */\n CENTER = '',\n\n /**\n * Aligned to the end.\n */\n END = 'right',\n}\n\n/**\n * Button tooltip position.\n */\nexport enum BUTTON_TOOLTIP_POSITION {\n /**\n * Positioned on the top.\n */\n TOP = 'top',\n\n /**\n * Positioned on the right.\n */\n RIGHT = 'right',\n\n /**\n * Positioned on the bottom.\n */\n BOTTOM = 'bottom',\n\n /**\n * Positined on the left.\n */\n LEFT = 'left',\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/button/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,UAAU,CAAC;AAClB,OAAO,cAAc,CAAC;AACtB,OAAO,mBAAmB,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022, 2023\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 './button';\nimport './button-set';\nimport './button-skeleton';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/checkbox/checkbox-skeleton.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;GAEG;AACH,cACM,mBAAoB,SAAQ,UAAU;IAC1C,MAAM;IAUN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,mBAAmB,CAAC","file":"checkbox-skeleton.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './checkbox.scss';\n\n/**\n * Skeleton of number input.\n */\n@customElement(`${prefix}-checkbox-skeleton`)\nclass CDSCheckboxSkeleton extends LitElement {\n render() {\n return html`\n <label class=\"${prefix}--checkbox-label\" for=\"checkbox\" part=\"label\">\n <span class=\"${prefix}--checkbox-label-text ${prefix}--skeleton\"\n ><slot></slot\n ></span>\n </label>\n `;\n }\n\n static styles = styles;\n}\n\nexport default CDSCheckboxSkeleton;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/checkbox/checkbox.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQvC;;;;;;;GAOG;AACH,cACM,WAAY,SAAQ,gBAAiC;IAEzD,SAAS,CAAC,aAAa,EAAG,gBAAgB,CAAC;IAE3C;;OAEG;IACH,SAAS,CAAC,aAAa;IAiBvB;;OAEG;IACH,OAAO,CAAC,YAAY;IAMpB,eAAe,CAAC,KAAK,EAAE,KAAK;IAQ5B;;OAEG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IAEH,SAAS,UAAS;IAElB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,YAAY,UAAS;IAErB;;OAEG;IAEH,SAAS,UAAS;IAElB;;OAEG;IAEH,aAAa,UAAS;IAEtB;;;OAGG;IAEH,SAAS,SAAM;IAEf;;OAEG;IAEH,IAAI,EAAG,MAAM,CAAC;IAEd;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,KAAK,SAAM;IAEX;;OAEG;IAEH,KAAK,EAAG,MAAM,CAAC;IAEf,MAAM;IA8CN;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,WAAW,CAAC","file":"checkbox.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { ifDefined } from 'lit/directives/if-defined.js';\nimport { LitElement, html } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport FormMixin from '../../globals/mixins/form';\nimport styles from './checkbox.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Check box.\n *\n * @element cds-checkbox\n * @fires cds-checkbox-changed - The custom event fired after this changebox changes its checked state.\n * @csspart input The checkbox.\n * @csspart label The label.\n */\n@customElement(`${prefix}-checkbox`)\nclass CDSCheckbox extends FocusMixin(FormMixin(LitElement)) {\n @query('input')\n protected _checkboxNode!: HTMLInputElement;\n\n /**\n * Handles `click` event on the `<input>` in the shadow DOM.\n */\n protected _handleChange() {\n const { checked, indeterminate } = this._checkboxNode;\n this.checked = checked;\n this.indeterminate = indeterminate;\n const { eventChange } = this.constructor as typeof CDSCheckbox;\n this.dispatchEvent(\n new CustomEvent(eventChange, {\n bubbles: true,\n composed: true,\n detail: {\n checked,\n indeterminate,\n },\n })\n );\n }\n\n /**\n * Prevent checkbox state from updating when readonly\n */\n private _handleClick(event: MouseEvent) {\n if (this.readonly) {\n event.preventDefault();\n }\n }\n\n _handleFormdata(event: Event) {\n const { formData } = event as any; // TODO: Wait for `FormDataEvent` being available in `lib.dom.d.ts`\n const { checked, disabled, name, value = 'on' } = this;\n if (!disabled && checked) {\n formData.append(name, value);\n }\n }\n\n /**\n * Specify whether the underlying input should be checked\n */\n @property({ type: Boolean, reflect: true, attribute: 'checked' })\n checked = false;\n\n /**\n * Specify if checkbox is being used in a data table\n */\n @property({ type: Boolean, reflect: true, attribute: 'data-table' })\n dataTable = false;\n\n /**\n * Specify whether the Checkbox should be disabled\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * Specify whether the checkbox should be present in the DOM,\n * but invisible and uninteractable. Used for data-table purposes.\n */\n @property({ type: Boolean, reflect: true, attribute: 'hide-checkbox' })\n hideCheckbox = false;\n\n /**\n * Specify whether the label should be hidden, or not\n */\n @property({ type: Boolean, reflect: true, attribute: 'hide-label' })\n hideLabel = false;\n\n /**\n * Specify whether the Checkbox is in an indeterminate state\n */\n @property({ type: Boolean, reflect: true })\n indeterminate = false;\n\n /**\n * Provide a label to provide a description of the Checkbox input that you are\n * exposing to the user\n */\n @property({ attribute: 'label-text' })\n labelText = '';\n\n /**\n * The form name.\n */\n @property()\n name!: string;\n\n /**\n * Specify whether the Checkbox is read-only\n */\n @property({ type: Boolean, reflect: true })\n readonly = false;\n\n /**\n * Specify a title for the node for the Checkbox\n */\n @property({ attribute: 'title' })\n title = '';\n\n /**\n * The value.\n */\n @property()\n value!: string;\n\n render() {\n const {\n checked,\n disabled,\n hideLabel,\n indeterminate,\n labelText,\n name,\n readonly,\n title,\n value,\n _handleChange: handleChange,\n _handleClick: handleClick,\n } = this;\n const labelClasses = classMap({\n [`${prefix}--checkbox-label`]: true,\n });\n const labelTextClasses = classMap({\n [`${prefix}--checkbox-label-text`]: true,\n [`${prefix}--visually-hidden`]: hideLabel,\n });\n return html`\n <input\n id=\"checkbox\"\n type=\"checkbox\"\n part=\"input\"\n class=\"${`${prefix}--checkbox`}\"\n aria-checked=\"${indeterminate ? 'mixed' : String(Boolean(checked))}\"\n aria-readonly=\"${String(Boolean(readonly))}\"\n .checked=\"${checked}\"\n ?disabled=\"${disabled}\"\n .indeterminate=\"${indeterminate}\"\n name=\"${ifDefined(name)}\"\n value=\"${ifDefined(value)}\"\n @change=\"${handleChange}\"\n @click=\"${handleClick}\" />\n <label\n for=\"checkbox\"\n part=\"label\"\n class=\"${labelClasses}\"\n title=\"${ifDefined(title)}\">\n <span class=\"${labelTextClasses}\"><slot>${labelText}</slot></span>\n </label>\n `;\n }\n\n /**\n * The name of the custom event fired after this changebox changes its checked state.\n */\n static get eventChange() {\n return `${prefix}-checkbox-changed`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSCheckbox;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/checkbox/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,YAAY,CAAC;AACpB,OAAO,qBAAqB,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022, 2023\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 './checkbox';\nimport './checkbox-skeleton';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/code-snippet/code-snippet-skeleton.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAInD;;GAEG;AACH,cACM,sBAAuB,SAAQ,UAAU;IAC7C;;OAEG;IAEH,IAAI,oBAA4B;IAEhC,MAAM;IAUN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,sBAAsB,CAAC","file":"code-snippet-skeleton.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport { CODE_SNIPPET_TYPE } from './code-snippet';\nimport styles from './code-snippet.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Skeleton of code snippet.\n */\n@customElement(`${prefix}-code-snippet-skeleton`)\nclass CDSCodeSnippetSkeleton extends LitElement {\n /**\n * The type of code snippet. Corresponds to the attribute with the same name.\n */\n @property({ reflect: true })\n type = CODE_SNIPPET_TYPE.SINGLE;\n\n render() {\n return html`\n <div class=\"${prefix}--snippet-container\">\n ${this.type !== CODE_SNIPPET_TYPE.MULTI\n ? html` <span></span> `\n : html` <span></span><span></span><span></span> `}\n </div>\n `;\n }\n\n static styles = styles;\n}\n\nexport default CDSCodeSnippetSkeleton;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/code-snippet/code-snippet.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAGtE,OAAO,sBAAsB,CAAC;AAC9B,OAAO,cAAc,CAAC;AACtB,OAAO,kBAAkB,CAAC;AAG1B,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBxD;;;;GAIG;AACH,cACM,cAAe,SAAQ,mBAAsB;IACjD;;OAEG;IACH,OAAO,CAAC,aAAa,CAAS;IAE9B;;OAEG;IACH,OAAO,CAAC,eAAe,CAAuB;IAE9C;;OAEG;IACH,OAAO,CAAC,kBAAkB,CAAM;IAEhC;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAAQ;IAEjC;;OAEG;IACH,OAAO,CAAC,gBAAgB,CAAS;IAEjC;;OAEG;IACH,OAAO,CAAC,sBAAsB,CAAS;IAEvC;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAuBxB,OAAO,CAAC,qBAAqB;IAc7B;;OAEG;IACH,OAAO,CAAC,aAAa;IAgCrB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAK5B;;OAEG;IAGH,OAAO,CAAC,eAAe,CAwCpB;IAEH;;;OAGG;IAEH,QAAQ,SAAM;IAEd;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,SAAa;IAErB;;OAEG;IAEH,eAAe,SAAQ;IAEvB;;OAEG;IAEH,cAAc,UAAS;IAEvB;;OAEG;IAEH,wBAAwB,SAAM;IAE9B;;OAEG;IAEH,uBAAuB,SAAK;IAE5B;;OAEG;IAEH,wBAAwB,SAAK;IAE7B;;OAEG;IAEH,uBAAuB,SAAM;IAE7B;;;OAGG;IAEH,YAAY,SAAe;IAE3B;;;OAGG;IAEH,YAAY,SAAe;IAE3B;;OAEG;IAEH,cAAc,SAAuB;IAErC;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,IAAI,oBAA4B;IAEhC,iBAAiB;IAQjB,oBAAoB;IAMpB,OAAO;IAQP,MAAM;IAmJN,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,cAAc,CAAC","file":"code-snippet.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { styleMap } from 'lit/directives/style-map.js';\nimport { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport ChevronDown16 from '@carbon/icons/lib/chevron--down/16';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport { CODE_SNIPPET_COLOR_SCHEME, CODE_SNIPPET_TYPE } from './defs';\nimport styles from './code-snippet.scss';\nimport Handle from '../../globals/internal/handle';\nimport '../copy-button/index';\nimport '../copy/copy';\nimport '../button/button';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport { CODE_SNIPPET_COLOR_SCHEME, CODE_SNIPPET_TYPE };\n\n/**\n * Observes resize of the given element with the given resize observer.\n *\n * @param observer The resize observer.\n * @param elem The element to observe the resize.\n */\nconst observeResize = (observer: ResizeObserver, elem: Element) => {\n if (!elem) {\n return null;\n }\n observer.observe(elem);\n return {\n release() {\n observer.unobserve(elem);\n return null;\n },\n } as Handle;\n};\n\n/**\n * Basic code snippet.\n *\n * @element cds-code-snippet\n */\n@customElement(`${prefix}-code-snippet`)\nclass CDSCodeSnippet extends FocusMixin(LitElement) {\n /**\n * `true` to expand multi-line variant of code snippet.\n */\n private _expandedCode = false;\n\n /**\n * The handle for observing resize of the parent element of this element.\n */\n private _hObserveResize: Handle | null = null;\n\n /**\n * Row height in pixels\n */\n private _rowHeightInPixels = 16;\n\n /**\n * `true` if code-snippet has right overflow\n */\n private _hasRightOverflow = true;\n\n /**\n * `true` if code-snippet has left overflow\n */\n private _hasLeftOverflow = false;\n\n /**\n * `true` if show more or show less btn is visible\n */\n private _shouldShowMoreLessBtn = false;\n\n /**\n * Handles `click` event on the copy button.\n */\n private _handleCopyClick() {\n const { ownerDocument: doc } = this;\n const selection = doc!.defaultView!.getSelection();\n selection!.removeAllRanges();\n const code = doc!.createElement('code');\n code.className = `${prefix}--visually-hidden`;\n const pre = doc!.createElement('pre');\n const text = Array.from(this.childNodes).filter(\n (node) => node.nodeType === Node.TEXT_NODE\n );\n pre.textContent = this.copyText || text[0].textContent;\n code.appendChild(pre);\n // Using `<code>` in shadow DOM seems to lose the LFs in some browsers\n doc!.body.appendChild(code);\n const range = doc!.createRange();\n range.selectNodeContents(code);\n selection!.addRange(range);\n doc!.execCommand('copy');\n doc!.body.removeChild(code);\n selection!.removeAllRanges();\n }\n\n // eslint-disable-next-line class-methods-use-this\n private _getCodeRefDimensions(ref) {\n const {\n clientWidth: codeClientWidth,\n scrollLeft: codeScrollLeft,\n scrollWidth: codeScrollWidth,\n } = ref;\n\n return {\n horizontalOverflow: codeScrollWidth > codeClientWidth,\n codeClientWidth,\n codeScrollWidth,\n codeScrollLeft,\n };\n }\n /**\n * Handles `scroll` event.\n */\n private _handleScroll() {\n if (this) {\n const codeContainerRef = this?.shadowRoot?.querySelector(\n `.${prefix}--snippet-container`\n );\n const codeContentRef = codeContainerRef?.querySelector('pre');\n if (\n this.type === CODE_SNIPPET_TYPE.INLINE ||\n (this.type === CODE_SNIPPET_TYPE.SINGLE && !codeContainerRef) ||\n (this.type === CODE_SNIPPET_TYPE.MULTI && !codeContentRef)\n ) {\n return;\n }\n\n const {\n horizontalOverflow,\n codeClientWidth,\n codeScrollWidth,\n codeScrollLeft,\n } =\n this.type === CODE_SNIPPET_TYPE.SINGLE\n ? this._getCodeRefDimensions(codeContainerRef)\n : this._getCodeRefDimensions(codeContentRef);\n\n this._hasLeftOverflow = horizontalOverflow && !!codeScrollLeft;\n this._hasRightOverflow =\n horizontalOverflow &&\n codeScrollLeft + codeClientWidth !== codeScrollWidth;\n this.requestUpdate();\n }\n }\n\n /**\n * Handles `click` event on the show more or show less button.\n */\n private _handleClickExpanded() {\n this._expandedCode = !this._expandedCode;\n this.requestUpdate();\n }\n\n /**\n * The `ResizeObserver` instance for observing element resizes for re-positioning floating menu position.\n */\n // TODO: Wait for `.d.ts` update to support `ResizeObserver`\n // @ts-ignore\n private _resizeObserver = new ResizeObserver(() => {\n const codeContainerRef = this.shadowRoot?.querySelector(\n `.${prefix}--snippet-container`\n );\n const codeContentRef = codeContainerRef?.querySelector('code'); // PRE?\n const {\n type,\n maxCollapsedNumberOfRows,\n maxExpandedNumberOfRows,\n minExpandedNumberOfRows,\n _rowHeightInPixels: rowHeightInPixels,\n _handleScroll: handleScroll,\n } = this;\n if (codeContentRef && type === CODE_SNIPPET_TYPE.MULTI) {\n const { height } = codeContentRef.getBoundingClientRect();\n if (\n maxCollapsedNumberOfRows > 0 &&\n (maxExpandedNumberOfRows <= 0 ||\n maxExpandedNumberOfRows > maxCollapsedNumberOfRows) &&\n height > maxCollapsedNumberOfRows * rowHeightInPixels\n ) {\n this._shouldShowMoreLessBtn = true;\n } else {\n this._shouldShowMoreLessBtn = false;\n }\n if (\n this._expandedCode &&\n minExpandedNumberOfRows > 0 &&\n height <= minExpandedNumberOfRows * rowHeightInPixels\n ) {\n this._expandedCode = false;\n }\n }\n if (\n (codeContentRef && type === CODE_SNIPPET_TYPE.MULTI) ||\n (codeContainerRef && type === CODE_SNIPPET_TYPE.SINGLE)\n ) {\n handleScroll();\n }\n this.requestUpdate();\n });\n\n /**\n * Optional text to copy. If not specified, the `children` node's `innerText`\n * will be used as the copy value.\n */\n @property({ attribute: 'copy-text' })\n copyText = '';\n\n /**\n * `true` if the button should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * Specify the string displayed when the snippet is copied\n */\n @property()\n feedback = 'Copied!';\n\n /**\n * Specify the time it takes for the feedback message to timeout\n */\n @property({ type: Number, attribute: 'feedback-timeout' })\n feedbackTimeout = 2000;\n\n /**\n * Specify whether or not a copy button should be used/rendered.\n */\n @property({ type: Boolean, reflect: true, attribute: 'hide-copy-button' })\n hideCopyButton = false;\n\n /**\n * Specify the maximum number of rows to be shown when in collapsed view\n */\n @property()\n maxCollapsedNumberOfRows = 15;\n\n /**\n * Specify the maximum number of rows to be shown when in expanded view\n */\n @property()\n maxExpandedNumberOfRows = 0;\n\n /**\n * Specify the minimum number of rows to be shown when in collapsed view\n */\n @property()\n minCollapsedNumberOfRows = 3;\n\n /**\n * Specify the minimum number of rows to be shown when in expanded view\n */\n @property()\n minExpandedNumberOfRows = 16;\n\n /**\n * Specify a string that is displayed when the Code Snippet has been\n * interacted with to show less lines\n */\n @property({ attribute: 'show-less-text' })\n showLessText = 'Show less';\n\n /**\n * Specify a string that is displayed when the Code Snippet text is more\n * than 15 lines\n */\n @property({ attribute: 'show-more-text' })\n showMoreText = 'Show more';\n\n /**\n * Tooltip content for the copy button.\n */\n @property({ attribute: 'tooltip-content' })\n tooltipContent = 'Copy to clipboard';\n\n /**\n * `true` if the button should be disabled.\n */\n @property({ type: Boolean, reflect: true, attribute: 'wrap-text' })\n wrapText = false;\n\n /**\n * The type of code snippet.\n */\n @property({ reflect: true })\n type = CODE_SNIPPET_TYPE.SINGLE;\n\n connectedCallback() {\n super.connectedCallback();\n if (this._hObserveResize) {\n this._hObserveResize = this._hObserveResize.release();\n }\n this._hObserveResize = observeResize(this._resizeObserver, this);\n }\n\n disconnectedCallback() {\n if (this._hObserveResize) {\n this._hObserveResize = this._hObserveResize.release();\n }\n }\n\n updated() {\n if (this._expandedCode) {\n this.setAttribute('expanded-code', '');\n } else {\n this.removeAttribute('expanded-code');\n }\n }\n\n render() {\n const {\n disabled,\n feedback,\n feedbackTimeout,\n hideCopyButton,\n maxExpandedNumberOfRows,\n minExpandedNumberOfRows,\n maxCollapsedNumberOfRows,\n minCollapsedNumberOfRows,\n type,\n wrapText,\n tooltipContent,\n showMoreText,\n showLessText,\n _expandedCode: expandedCode,\n _handleCopyClick: handleCopyClick,\n _handleScroll: handleScroll,\n _hasRightOverflow: hasRightOverflow,\n _hasLeftOverflow: hasLeftOverflow,\n _rowHeightInPixels: rowHeightInPixels,\n _shouldShowMoreLessBtn: shouldShowMoreLessBtn,\n } = this;\n\n let classes = `${prefix}--snippet`;\n type ? (classes += ` ${prefix}--snippet--${type}`) : '';\n type !== 'inline' && disabled\n ? (classes += ` ${prefix}--snippet--disabled`)\n : '';\n hideCopyButton ? (classes += ` ${prefix}--snippet--no-copy`) : '';\n wrapText ? (classes += ` ${prefix}--snippet--wraptext`) : '';\n type == 'multi' && hasRightOverflow\n ? (classes += ` ${prefix}--snippet--has-right-overflow`)\n : '';\n\n const expandButtonClass = `${prefix}--snippet-btn--expand`;\n\n const disabledCopyButtonClasses = disabled\n ? `${prefix}--snippet--disabled`\n : '';\n\n const expandCodeBtnText = expandedCode ? showLessText : showMoreText;\n\n if (type === CODE_SNIPPET_TYPE.INLINE) {\n // Ensures no extra whitespace text node\n // prettier-ignore\n return html`\n <cds-copy button-class-name=\"${classes}\" @click=\"${handleCopyClick}\">\n <code slot=\"icon\"><slot></slot></code>\n <span slot=\"tooltip-content\">${tooltipContent}</span>\n </cds-copy>\n `;\n }\n\n const styles = {};\n if (type === 'multi') {\n if (expandedCode) {\n if (maxExpandedNumberOfRows > 0) {\n styles['max-height'] =\n maxExpandedNumberOfRows * rowHeightInPixels + 'px';\n }\n if (minExpandedNumberOfRows > 0) {\n styles['min-height'] =\n minExpandedNumberOfRows * rowHeightInPixels + 'px';\n }\n } else {\n if (maxCollapsedNumberOfRows > 0) {\n styles['max-height'] =\n maxCollapsedNumberOfRows * rowHeightInPixels + 'px';\n }\n if (minCollapsedNumberOfRows > 0) {\n styles['min-height'] =\n minCollapsedNumberOfRows * rowHeightInPixels + 'px';\n }\n }\n }\n\n return html`\n <div\n role=\"${type === CODE_SNIPPET_TYPE.SINGLE ||\n type === CODE_SNIPPET_TYPE.MULTI\n ? 'textbox'\n : null}\"\n tabindex=\"${(type === CODE_SNIPPET_TYPE.SINGLE ||\n type === CODE_SNIPPET_TYPE.MULTI) &&\n !disabled\n ? 0\n : null}\"\n class=\"${prefix}--snippet-container\"\n aria-label=\"${'code-snippet'}\"\n aria-readonly=\"${type === CODE_SNIPPET_TYPE.SINGLE ||\n type === CODE_SNIPPET_TYPE.MULTI\n ? true\n : null}\"\n aria-multiline=\"${type === CODE_SNIPPET_TYPE.MULTI ? true : null}\"\n @scroll=\"${(type === CODE_SNIPPET_TYPE.SINGLE && handleScroll) || null}\"\n style=${styleMap(styles)}>\n <pre\n @scroll=\"${(type === CODE_SNIPPET_TYPE.MULTI && handleScroll) ||\n null}\"><code><slot></slot></code></pre>\n </div>\n\n ${hasLeftOverflow\n ? html`\n <div class=\"${prefix}--snippet__overflow-indicator--left\"></div>\n `\n : ``}\n ${hasRightOverflow && type !== CODE_SNIPPET_TYPE.MULTI\n ? html`\n <div class=\"${prefix}--snippet__overflow-indicator--right\"></div>\n `\n : ``}\n ${hideCopyButton\n ? ``\n : html`\n <cds-copy-button\n ?disabled=${disabled}\n button-class-name=${disabledCopyButtonClasses}\n feedback=${feedback}\n feedback-timeout=${feedbackTimeout}\n @click=\"${handleCopyClick}\">\n ${tooltipContent}\n </cds-copy-button>\n `}\n ${shouldShowMoreLessBtn\n ? html`\n <cds-button\n kind=\"ghost\"\n size=\"sm\"\n button-class-name=${expandButtonClass}\n ?disabled=${disabled}\n @click=${() => this._handleClickExpanded()}>\n <span class=\"${prefix}--snippet-btn--text\">\n ${expandCodeBtnText}\n </span>\n ${ChevronDown16({\n class: `${prefix}--icon-chevron--down ${prefix}--snippet__icon`,\n name: 'cheveron--down',\n role: 'img',\n slot: 'icon',\n })}\n </cds-button>\n `\n : ``}\n `;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n}\n\nexport default CDSCodeSnippet;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/code-snippet/defs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,yBAAyB,IAAI,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEpG;;GAEG;AACH,oBAAY,iBAAiB;IAC3B;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,KAAK,UAAU;CAChB","file":"defs.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\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\nexport { FORM_ELEMENT_COLOR_SCHEME as CODE_SNIPPET_COLOR_SCHEME } from '../../globals/shared-enums';\n\n/**\n * Code snippet types.\n */\nexport enum CODE_SNIPPET_TYPE {\n /**\n * Single variant.\n */\n SINGLE = 'single',\n\n /**\n * Inline variant.\n */\n INLINE = 'inline',\n\n /**\n * Multi-line variant.\n */\n MULTI = 'multi',\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/code-snippet/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,gBAAgB,CAAC;AACxB,OAAO,yBAAyB,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022\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 './code-snippet';\nimport './code-snippet-skeleton';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/combo-box/combo-box-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,eAAe,MAAM,2BAA2B,CAAC;AAIxD;;;;GAIG;AACH,cACM,eAAgB,SAAQ,eAAe;IAC3C,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,eAAe,CAAC","file":"combo-box-item.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { prefix } from '../../globals/settings';\nimport CDSDropdownItem from '../dropdown/dropdown-item';\nimport styles from './combo-box.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Combo box item.\n *\n * @element cds-combo-box-item\n */\n@customElement(`${prefix}-combo-box-item`)\nclass CDSComboBoxItem extends CDSDropdownItem {\n static styles = styles;\n}\n\nexport default CDSComboBoxItem;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/combo-box/combo-box.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,cAAc,EAAQ,MAAM,KAAK,CAAC;AAK3C,OAAO,WAAyC,MAAM,sBAAsB,CAAC;AAC7E,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAI/C,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEzE;;;;;;;;;;;;GAYG;AACH,cACM,WAAY,SAAQ,WAAW;IACnC;;OAEG;IACH,SAAS,CAAC,iBAAiB,SAAM;IAEjC,SAAS,CAAC,yBAAyB,UAAS;IAE5C;;OAEG;IAEH,OAAO,CAAC,gBAAgB,CAAoB;IAE5C;;OAEG;IAEH,OAAO,CAAC,SAAS,CAAe;IAEhC;;OAEG;IAEH,OAAO,CAAC,oBAAoB,CAAe;IAE3C;;;OAGG;IACH,SAAS,CAAC,sBAAsB,CAAC,IAAI,KAAA;IAQrC;;;;;;OAMG;IACH,SAAS,CAAC,mBAAmB,CAC3B,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,MAAM,GAChB,OAAO;IAOV;;OAEG;IACH,SAAS,CAAC,YAAY;IA0CtB,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,UAAU;IAS7C,SAAS,CAAC,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAenD;;OAEG;IACH,SAAS,CAAC,8BAA8B;IAcxC,SAAS,CAAC,8BAA8B,CAAC,IAAI,CAAC,EAAE,eAAe;IAiB/D,SAAS,CAAC,mBAAmB,CAAC,YAAY,CAAC,EAAE,eAAe;IAiB5D,SAAS,CAAC,YAAY,IAAI,cAAc;IAgCxC,SAAS,CAAC,qBAAqB,IAAI,cAAc,GAAG,IAAI;IAuBxD;;OAEG;IAEH,mBAAmB,SAAM;IAEzB;;OAEG;IAEH,UAAU,SAAM;IAEhB;;OAEG;IAEH,WAAW,EAAG,CAAC,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC;IAEpE,YAAY,CAAC,iBAAiB,KAAA;IAS9B,OAAO;IAQP,MAAM,CAAC,YAAY,cAAsB;IAEzC;;OAEG;IACH,MAAM,KAAK,uBAAuB,WAEjC;IAED;;OAEG;IACH,MAAM,KAAK,YAAY,WAEtB;IAED;;OAEG;IACH,MAAM,KAAK,oBAAoB,WAE9B;IAED;;;OAGG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED;;;OAGG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,WAAW,CAAC","file":"combo-box.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { TemplateResult, html } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport Close16 from '@carbon/icons/lib/close/16';\nimport { prefix } from '../../globals/settings';\nimport { findIndex, forEach } from '../../globals/internal/collection-helpers';\nimport CDSDropdown, { DROPDOWN_KEYBOARD_ACTION } from '../dropdown/dropdown';\nimport CDSComboBoxItem from './combo-box-item';\nimport styles from './combo-box.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport { DROPDOWN_DIRECTION, DROPDOWN_SIZE } from '../dropdown/dropdown';\n\n/**\n * Combo box.\n *\n * @element cds-combo-box\n * @fires cds-combo-box-beingselected\n * The custom event fired before a combo box item is selected upon a user gesture.\n * Cancellation of this event stops changing the user-initiated selection.\n * @fires cds-combo-box-beingtoggled\n * The custom event fired before the open state of this combo box is toggled upon a user gesture.\n * Cancellation of this event stops the user-initiated toggling.\n * @fires cds-combo-box-selected - The custom event fired after a combo box item is selected upon a user gesture.\n * @fires cds-combo-box-toggled - The custom event fired after the open state of this combo box is toggled upon a user gesture.\n */\n@customElement(`${prefix}-combo-box`)\nclass CDSComboBox extends CDSDropdown {\n /**\n * The text content that should be set to the `<input>` for filtering.\n */\n protected _filterInputValue = '';\n\n protected _shouldTriggerBeFocusable = false;\n\n /**\n * The `<input>` for filtering.\n */\n @query('input')\n private _filterInputNode!: HTMLInputElement;\n\n /**\n * The menu containing all selectable items.\n */\n @query('#menu-body')\n private _itemMenu!: HTMLElement;\n\n /**\n * The selection button.\n */\n @query('#selection-button')\n private _selectionButtonNode!: HTMLElement;\n\n /**\n * @param item A combo box item.\n * @returns `true` if the given combo box item matches the query text user types.\n */\n protected _testItemWithQueryText(item) {\n return (this.itemMatches || this._defaultItemMatches)(\n item,\n this._filterInputNode.value\n );\n }\n\n /* eslint-disable class-methods-use-this */\n /**\n * The default item matching callback.\n *\n * @param item The combo box item.\n * @param queryText The query text user types.\n * @returns `true` if the given combo box item matches the given query text.\n */\n protected _defaultItemMatches(\n item: CDSComboBoxItem,\n queryText: string\n ): boolean {\n return (\n item.textContent!.toLowerCase().indexOf(queryText.toLowerCase()) >= 0\n );\n }\n /* eslint-enable class-methods-use-this */\n\n /**\n * Handles `input` event on the `<input>` for filtering.\n */\n protected _handleInput() {\n if (this._filterInputValue.length != 0) {\n this.setAttribute('isClosable', '');\n } else {\n this.removeAttribute('isClosable');\n }\n\n const items = this.querySelectorAll(\n (this.constructor as typeof CDSComboBox).selectorItem\n );\n const index = !this._filterInputNode.value\n ? -1\n : findIndex(items, this._testItemWithQueryText, this);\n forEach(items, (item, i) => {\n if (i === index) {\n const menuRect = this._itemMenu?.getBoundingClientRect();\n const itemRect = item.getBoundingClientRect();\n\n if (menuRect && itemRect) {\n const isViewable =\n menuRect!.top <= itemRect?.top &&\n itemRect?.bottom <= menuRect?.top + this._itemMenu!.clientHeight;\n if (!isViewable) {\n const scrollTop = itemRect?.top - menuRect?.top;\n const scrollBot = itemRect?.bottom - menuRect?.bottom;\n\n if (Math.abs(scrollTop) < Math.abs(scrollBot)) {\n this._itemMenu!.scrollTop += scrollTop;\n } else {\n this._itemMenu!.scrollTop += scrollBot;\n }\n }\n }\n }\n (item as CDSComboBoxItem).highlighted = i === index;\n });\n const { _filterInputNode: filterInput } = this;\n this._filterInputValue = !filterInput ? '' : filterInput.value;\n this.open = true;\n this.requestUpdate(); // If the only change is to `_filterInputValue`, auto-update doesn't happen\n }\n\n protected _handleClickInner(event: MouseEvent) {\n const { target } = event as any;\n if (this._selectionButtonNode?.contains(target)) {\n this._handleUserInitiatedClearInput();\n } else {\n super._handleClickInner(event);\n }\n }\n\n protected _handleKeypressInner(event: KeyboardEvent) {\n const { key } = event;\n const action = (this.constructor as typeof CDSDropdown).getAction(key);\n const { TRIGGERING } = DROPDOWN_KEYBOARD_ACTION;\n if (\n this._selectionButtonNode?.contains(event.target as Node) &&\n // Space key should be handled by `<input>` unless \"clear selection\" button has focus\n (action === TRIGGERING || key === ' ')\n ) {\n this._handleUserInitiatedClearInput();\n } else {\n super._handleKeypressInner(event);\n }\n }\n\n /**\n * Handles user-initiated clearing the `<input>` for filtering.\n */\n protected _handleUserInitiatedClearInput() {\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof CDSComboBox).selectorItem\n ),\n (item) => {\n (item as CDSComboBoxItem).highlighted = false;\n }\n );\n this._filterInputValue = '';\n this._filterInputNode.focus();\n this._handleUserInitiatedSelectItem();\n }\n\n protected _handleUserInitiatedSelectItem(item?: CDSComboBoxItem) {\n if (item && !this._selectionShouldChange(item)) {\n // Escape hatch for `shouldUpdate()` logic that updates `._filterInputValue()` when selection changes,\n // given we want to update the `<input>` and close the dropdown even if selection doesn't update.\n // Use case:\n // 1. Select the 2nd item in combo box drop down\n // 2. Type some text in the `<input>`\n // 3. Re-select the 2nd item in combo box drop down,\n // the `<input>` has to updated with the 2nd item and the dropdown should be closed,\n // even if there is no change in the selected value\n this._filterInputValue = item.textContent || '';\n this.open = false;\n this.requestUpdate();\n }\n super._handleUserInitiatedSelectItem(item);\n }\n\n protected _selectionDidChange(itemToSelect?: CDSComboBoxItem) {\n this.value = !itemToSelect ? '' : itemToSelect.value;\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof CDSDropdown).selectorItemSelected\n ),\n (item) => {\n (item as CDSComboBoxItem).selected = false;\n }\n );\n if (itemToSelect) {\n itemToSelect.selected = true;\n this._assistiveStatusText = this.selectedItemAssistiveText;\n }\n this._handleUserInitiatedToggle(false);\n }\n\n protected _renderLabel(): TemplateResult {\n const {\n disabled,\n inputLabel,\n label,\n readOnly,\n value,\n _filterInputValue: filterInputValue,\n _handleInput: handleInput,\n } = this;\n\n const inputClasses = classMap({\n [`${prefix}--text-input`]: true,\n [`${prefix}--text-input--empty`]: !value,\n });\n\n return html`\n <input\n id=\"trigger-label\"\n class=\"${inputClasses}\"\n ?disabled=${disabled}\n placeholder=\"${label}\"\n .value=${filterInputValue}\n role=\"combobox\"\n aria-label=\"${inputLabel}\"\n aria-controls=\"menu-body\"\n aria-autocomplete=\"list\"\n ?readonly=${readOnly}\n @input=${handleInput} />\n `;\n }\n\n protected _renderFollowingLabel(): TemplateResult | void {\n const { clearSelectionLabel, _filterInputValue: filterInputValue } = this;\n\n if (filterInputValue.length != 0) {\n this.setAttribute('isClosable', '');\n } else {\n this.removeAttribute('isClosable');\n }\n\n return filterInputValue.length === 0\n ? undefined\n : html`\n <div\n id=\"selection-button\"\n role=\"button\"\n class=\"${prefix}--list-box__selection\"\n tabindex=\"0\"\n title=\"${clearSelectionLabel}\">\n ${Close16({ 'aria-label': clearSelectionLabel })}\n </div>\n `;\n }\n\n /**\n * The `aria-label` attribute for the icon to clear selection.\n */\n @property({ attribute: 'clear-selection-label' })\n clearSelectionLabel = '';\n\n /**\n * The `aria-label` attribute for the `<input>` for filtering.\n */\n @property({ attribute: 'input-label' })\n inputLabel = '';\n\n /**\n * The custom item matching callback.\n */\n @property({ attribute: false })\n itemMatches!: (item: CDSComboBoxItem, queryText: string) => boolean;\n\n shouldUpdate(changedProperties) {\n super.shouldUpdate(changedProperties);\n const { _selectedItemContent: selectedItemContent } = this;\n if (selectedItemContent && changedProperties.has('value')) {\n this._filterInputValue = selectedItemContent?.textContent || '';\n }\n return true;\n }\n\n updated() {\n const { _listBoxNode: listBoxNode } = this;\n if (listBoxNode) {\n listBoxNode.classList.add(`${prefix}--combo-box`);\n }\n }\n\n // For combo box, open/selection with space key is disabled given the input box should take it over\n static TRIGGER_KEYS = new Set(['Enter']);\n\n /**\n * A selector that will return highlighted items.\n */\n static get selectorItemHighlighted() {\n return `${prefix}-combo-box-item[highlighted]`;\n }\n\n /**\n * A selector that will return combo box items.\n */\n static get selectorItem() {\n return `${prefix}-combo-box-item`;\n }\n\n /**\n * A selector that will return selected items.\n */\n static get selectorItemSelected() {\n return `${prefix}-combo-box-item[selected]`;\n }\n\n /**\n * The name of the custom event fired before this combo box item is being toggled upon a user gesture.\n * Cancellation of this event stops the user-initiated action of toggling this combo box item.\n */\n static get eventBeforeToggle() {\n return `${prefix}-combo-box-beingtoggled`;\n }\n\n /**\n * The name of the custom event fired after this combo box item is toggled upon a user gesture.\n */\n static get eventToggle() {\n return `${prefix}-combo-box-toggled`;\n }\n\n /**\n * The name of the custom event fired before a combo box item is selected upon a user gesture.\n * Cancellation of this event stops changing the user-initiated selection.\n */\n static get eventBeforeSelect() {\n return `${prefix}-combo-box-beingselected`;\n }\n\n /**\n * The name of the custom event fired after a a combo box item is selected upon a user gesture.\n */\n static get eventSelect() {\n return `${prefix}-combo-box-selected`;\n }\n\n static styles = styles;\n}\n\nexport default CDSComboBox;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/combo-box/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,aAAa,CAAC;AACrB,OAAO,kBAAkB,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022\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 './combo-box';\nimport './combo-box-item';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/content-switcher/content-switcher-item.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOvC;;;;GAIG;AAEH,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,2BAAsB;IACxE;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;;;OAIG;IAEH,WAAW,UAAS;IAEpB;;;;OAIG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,MAAM,EAAG,MAAM,CAAC;IAEhB;;;OAGG;IAEH,KAAK,SAAM;IAEX;;OAEG;IAEH,IAAI,UAAS;IAEb;;;OAGG;IAEH,KAAK,SAAS;IAEd;;;OAGG;IAEH,iBAAiB,UAAQ;IAEzB;;;OAGG;IACH,YAAY,SAAO;IAEnB;;;;;OAKG;IACH,YAAY,SAAO;IAEnB,OAAO,CAAC,iBAAiB,KAAA;IAUzB,SAAS,CAAC,qBAAqB;IAQ/B,YAAY,CAAC,iBAAiB,KAAA;IAa9B,MAAM;IA8BN,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;CACxB","file":"content-switcher-item.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { ifDefined } from 'lit/directives/if-defined.js';\nimport { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport styles from './content-switcher.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Content switcher button.\n *\n * @element cds-content-switcher-item\n */\n@customElement(`${prefix}-content-switcher-item`)\nexport default class CDSContentSwitcherItem extends FocusMixin(LitElement) {\n /**\n * `true` if this content switcher item should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * `true` to hide the divider at the left.\n *\n * @private\n */\n @property({ type: Boolean, reflect: true, attribute: 'hide-divider' })\n hideDivider = false;\n\n /**\n * `true` if the content switcher button should be selected.\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * The element ID of target panel.\n */\n @property()\n target!: string;\n\n /**\n * The `value` attribute that is set to the parent `<cds-content-switcher>`\n * when this content switcher item is selected.\n */\n @property()\n value = '';\n\n /**\n * `true` if the content switcher button should be icon-only.\n */\n @property({ type: Boolean, reflect: true })\n icon = false;\n\n /**\n * Specify how the trigger should align with the tooltip for icon-only\n * switcher item\n */\n @property({ reflect: true, type: String })\n align = 'top';\n\n /**\n * Determines whether the tooltip should close when inner content is\n * activated (click, Enter or Space)\n */\n @property({ attribute: 'close-on-activation', reflect: true, type: Boolean })\n closeOnActivation = true;\n\n /**\n * Specify the duration in milliseconds to delay before displaying the\n * tooltip for icon-only switcher item\n */\n enterDelayMs = 100;\n\n /**\n * Specify the duration in milliseconds to delay before hiding the tooltip\n * for icon-only switcher-item\n *\n * TODO: match upstream value once #10471 is resolved\n */\n leaveDelayMs = 100;\n\n updated(changedProperties) {\n if (changedProperties) {\n this.shadowRoot\n ?.querySelector(`${prefix}-tooltip`)\n ?.shadowRoot?.querySelector(`.${prefix}--tooltip`)\n ?.classList.add(`${prefix}--icon-tooltip`);\n }\n }\n\n // eslint-disable-next-line class-methods-use-this\n protected _renderTooltipContent() {\n return html`\n <cds-tooltip-content>\n <slot name=\"tooltip-content\"></slot>\n </cds-tooltip-content>\n `;\n }\n\n shouldUpdate(changedProperties) {\n if (changedProperties.has('selected') || changedProperties.has('target')) {\n const { selected, target } = this;\n if (target) {\n const doc = this.getRootNode() as HTMLDocument;\n // `doc` can be an element if such element is orphaned\n const targetNode = doc?.getElementById(target);\n targetNode?.toggleAttribute('hidden', !selected);\n }\n }\n return true;\n }\n\n render() {\n const { disabled, selected, target } = this;\n const className = classMap({\n [`${prefix}--content-switcher-btn`]: true,\n [`${prefix}--content-switcher--selected`]: selected,\n });\n const switcherItem = html`<button\n type=\"button\"\n role=\"tab\"\n class=\"${className}\"\n ?disabled=\"${disabled}\"\n tabindex=\"${selected ? '0' : '-1'}\"\n aria-controls=\"${ifDefined(target)}\"\n aria-selected=\"${Boolean(selected)}\">\n <span class=\"${prefix}--content-switcher__label\"><slot></slot></span>\n </button>`;\n\n if (this.icon) {\n const { align, closeOnActivation, enterDelayMs, leaveDelayMs } = this;\n return html`<cds-tooltip\n align=${align}\n close-on-activation=\"${closeOnActivation}\"\n enter-delay-ms=${enterDelayMs}\n leave-delay-ms=${leaveDelayMs}>\n ${switcherItem} ${this._renderTooltipContent()}\n </cds-tooltip>`;\n }\n return switcherItem;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/content-switcher/content-switcher.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAIvC,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,sBAAsB,MAAM,yBAAyB,CAAC;AAI7D,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,CAAC;AAiBvD;;;;;;;;GAQG;AAEH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,UAAU;IACxD;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAwBpB;;;;OAIG;IACH,SAAS,CAAC,YAAY,CACpB,WAAW,EAAE,sBAAsB,EACnC,SAAS,EAAE,MAAM;IAUnB;;;;OAIG;IACH,SAAS,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,UAAU;IAI7C;;;;OAIG;IACH,SAAS,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,EAAE,aAAa;IAM/C;;;;OAIG;IACH,SAAS,CAAC,8BAA8B,CAAC,IAAI,EAAE,sBAAsB;IAsBrE;;;;OAIG;IACH,SAAS,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM;IAarC;;;;OAIG;IACH,SAAS,CAAC,mBAAmB,CAAC,YAAY,EAAE,sBAAsB;IA8BlE;;OAEG;IAEH,KAAK,SAAM;IAEX;;OAEG;IAEH,IAAI,wBAAiC;IAErC;;OAEG;IAEH,QAAQ,UAAS;IAEjB,YAAY,CAAC,iBAAiB,KAAA;IAe9B,iBAAiB;IAcjB;;OAEG;IACH,MAAM,KAAK,YAAY,WAEtB;IAED;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED;;OAEG;IACH,MAAM,KAAK,mBAAmB,WAE7B;IAED;;OAEG;IACH,MAAM,KAAK,oBAAoB,WAE9B;IAED;;;OAGG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED,MAAM;IAgBN,MAAM,CAAC,MAAM,MAAU;CACxB","file":"content-switcher.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport { forEach, indexOf } from '../../globals/internal/collection-helpers';\nimport { NAVIGATION_DIRECTION, CONTENT_SWITCHER_SIZE } from './defs';\nimport CDSContentSwitcherItem from './content-switcher-item';\nimport styles from './content-switcher.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport { NAVIGATION_DIRECTION, CONTENT_SWITCHER_SIZE };\n\n/**\n * @param index The index\n * @param length The length of the array.\n * @returns The new index, adjusting overflow/underflow.\n */\nconst capIndex = (index: number, length: number) => {\n if (index < 0) {\n return length - 1;\n }\n if (index >= length) {\n return 0;\n }\n return index;\n};\n\n/**\n * Content switcher.\n *\n * @element cds-content-switcher\n * @fires cds-content-switcher-beingselected\n * The custom event fired before a content switcher item is selected upon a user gesture.\n * Cancellation of this event stops changing the user-initiated selection.\n * @fires cds-content-switcher-selected - The custom event fired after a a content switcher item is selected upon a user gesture.\n */\n@customElement(`${prefix}-content-switcher`)\nexport default class CDSContentSwitcher extends LitElement {\n /**\n * Handles `mouseover`/`mouseout` events on `<slot>`.\n *\n * @param event The event.\n */\n private _handleHover({ target, type }: MouseEvent) {\n const { selectorItem } = this.constructor as typeof CDSContentSwitcher;\n const items = this.querySelectorAll(selectorItem);\n const index =\n type !== 'mouseover'\n ? -1\n : indexOf(items, (target as Element).closest(selectorItem)!);\n const nextIndex = index < 0 ? index : index + 1;\n forEach(this.querySelectorAll(selectorItem), (elem, i) => {\n // Specifies child `<cds-content-switcher-item>` to hide its divider instead of using CSS,\n // until `:host-context()` gets supported in all major browsers\n (elem as CDSContentSwitcherItem).hideDivider = i === nextIndex;\n });\n\n const { selectorItemSelected } = this\n .constructor as typeof CDSContentSwitcher;\n const selectedItem = this.querySelector(selectorItemSelected);\n const nextItem = this._getNextItem(\n selectedItem as CDSContentSwitcherItem,\n 1\n );\n (nextItem as CDSContentSwitcherItem).hideDivider = true;\n }\n\n /**\n * @param currentItem The currently selected item.\n * @param direction The navigation direction.\n * @returns The item to be selected.\n */\n protected _getNextItem(\n currentItem: CDSContentSwitcherItem,\n direction: number\n ) {\n const items = this.querySelectorAll(\n (this.constructor as typeof CDSContentSwitcher).selectorItemEnabled\n );\n const currentIndex = indexOf(items, currentItem);\n const nextIndex = capIndex(currentIndex + direction, items.length);\n return nextIndex === currentIndex ? null : items[nextIndex];\n }\n\n /**\n * Handles `click` event on the top-level element in the shadow DOM.\n *\n * @param event The event.\n */\n protected _handleClick({ target }: MouseEvent) {\n this._handleUserInitiatedSelectItem(target as CDSContentSwitcherItem);\n }\n\n /**\n * Handles `keydown` event on the top-level element in the shadow DOM.\n *\n * @param event The event.\n */\n protected _handleKeydown({ key }: KeyboardEvent) {\n if (key in NAVIGATION_DIRECTION) {\n this._navigate(NAVIGATION_DIRECTION[key]);\n }\n }\n\n /**\n * Handles user-initiated selection of a content switcher item.\n *\n * @param [item] The content switcher item user wants to select.\n */\n protected _handleUserInitiatedSelectItem(item: CDSContentSwitcherItem) {\n if (!item.disabled && item.value !== this.value) {\n const init = {\n bubbles: true,\n composed: true,\n detail: {\n item,\n },\n };\n const constructor = this.constructor as typeof CDSContentSwitcher;\n const beforeSelectEvent = new CustomEvent(constructor.eventBeforeSelect, {\n ...init,\n cancelable: true,\n });\n if (this.dispatchEvent(beforeSelectEvent)) {\n this._selectionDidChange(item);\n const afterSelectEvent = new CustomEvent(constructor.eventSelect, init);\n this.dispatchEvent(afterSelectEvent);\n }\n }\n }\n\n /**\n * Navigates through content switcher items.\n *\n * @param direction `-1` to navigate backward, `1` to navigate forward.\n */\n protected _navigate(direction: number) {\n const { selectorItemSelected } = this\n .constructor as typeof CDSContentSwitcher;\n const nextItem = this._getNextItem(\n this.querySelector(selectorItemSelected) as CDSContentSwitcherItem,\n direction\n );\n if (nextItem) {\n this._handleUserInitiatedSelectItem(nextItem as CDSContentSwitcherItem);\n this.requestUpdate();\n }\n }\n\n /**\n * A callback that runs after change in content switcher selection upon user interaction is confirmed.\n *\n * @param itemToSelect A content switcher item.\n */\n protected _selectionDidChange(itemToSelect: CDSContentSwitcherItem) {\n this.value = itemToSelect.value;\n forEach(\n this.querySelectorAll(\n (this.constructor as typeof CDSContentSwitcher).selectorItemSelected\n ),\n (item) => {\n (item as CDSContentSwitcherItem).selected = false;\n }\n );\n itemToSelect.selected = true;\n // Waits for rendering with the new state that updates `tabindex`\n Promise.resolve().then(() => {\n itemToSelect.focus();\n\n const { selectorItem } = this.constructor as typeof CDSContentSwitcher;\n const items = this.querySelectorAll(selectorItem);\n const index = indexOf(\n items,\n (itemToSelect as Element).closest(selectorItem)!\n );\n const nextIndex = index < 0 ? index : index + 1;\n forEach(this.querySelectorAll(selectorItem), (elem, i) => {\n // Specifies child `<cds-content-switcher-item>` to hide its divider instead of using CSS,\n // until `:host-context()` gets supported in all major browsers\n (elem as CDSContentSwitcherItem).hideDivider = i === nextIndex;\n });\n });\n }\n\n /**\n * The value of the selected item.\n */\n @property({ reflect: true })\n value = '';\n\n /**\n * Content switcher size.\n */\n @property({ reflect: true })\n size = CONTENT_SWITCHER_SIZE.REGULAR;\n\n /**\n * Icon only.\n */\n @property({ type: Boolean, reflect: true, attribute: 'icon' })\n iconOnly = false;\n\n shouldUpdate(changedProperties) {\n if (changedProperties.has('value')) {\n const { selectorItem } = this.constructor as typeof CDSContentSwitcher;\n forEach(this.querySelectorAll(selectorItem), (elem) => {\n (elem as CDSContentSwitcherItem).selected =\n (elem as CDSContentSwitcherItem).value === this.value;\n });\n }\n const { selectorIconItem } = this.constructor as typeof CDSContentSwitcher;\n if (this.querySelector(selectorIconItem)) {\n this.iconOnly = true;\n }\n return true;\n }\n\n _handleSlotchange() {\n const { selectorItemSelected } = this\n .constructor as typeof CDSContentSwitcher;\n const selectedItem = this.querySelector(selectorItemSelected);\n const nextItem = this._getNextItem(\n selectedItem as CDSContentSwitcherItem,\n 1\n );\n\n // Specifies child `<cds-content-switcher-item>` to hide its divider instead of using CSS,\n // until `:host-context()` gets supported in all major browsers\n (nextItem as CDSContentSwitcherItem).hideDivider = true;\n }\n\n /**\n * A selector that will return content switcher items.\n */\n static get selectorItem() {\n return `${prefix}-content-switcher-item`;\n }\n\n /**\n * A selector that will return content switcher icon items.\n */\n static get selectorIconItem() {\n return `${prefix}-content-switcher-item[icon]`;\n }\n\n /**\n * A selector that will return enabled content switcher items.\n */\n static get selectorItemEnabled() {\n return `${prefix}-content-switcher-item:not([disabled])`;\n }\n\n /**\n * A selector that will return selected items.\n */\n static get selectorItemSelected() {\n return `${prefix}-content-switcher-item[selected]`;\n }\n\n /**\n * The name of the custom event fired before a content switcher item is selected upon a user gesture.\n * Cancellation of this event stops changing the user-initiated selection.\n */\n static get eventBeforeSelect() {\n return `${prefix}-content-switcher-beingselected`;\n }\n\n /**\n * The name of the custom event fired after a a content switcher item is selected upon a user gesture.\n */\n static get eventSelect() {\n return `${prefix}-content-switcher-selected`;\n }\n\n render() {\n const {\n _handleHover: handleHover,\n _handleKeydown: handleKeydown,\n _handleSlotchange: handleSlotchange,\n } = this;\n return html`\n <slot\n @click=\"${this._handleClick}\"\n @keydown=\"${handleKeydown}\"\n @mouseover=\"${handleHover}\"\n @mouseout=\"${handleHover}\"\n @slotchange=${handleSlotchange}></slot>\n `;\n }\n\n static styles = styles;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/content-switcher/defs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAC;AAEF;;GAEG;AACH,oBAAY,qBAAqB;IAC/B;;OAEG;IACH,OAAO,KAAK;IAEZ;;OAEG;IACH,KAAK,OAAO;IAEZ;;OAEG;IACH,KAAK,OAAO;IAGZ;;OAEG;IACH,WAAW,OAAO;CACnB","file":"defs.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022, 2023\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\n/**\n * Navigation direction, associated with key symbols.\n */\nexport const NAVIGATION_DIRECTION = {\n Left: -1,\n ArrowLeft: -1,\n Right: 1,\n ArrowRight: 1,\n};\n\n/**\n * Button size.\n */\nexport enum CONTENT_SWITCHER_SIZE {\n /**\n * Regular size.\n */\n REGULAR = '',\n\n /**\n * Small size.\n */\n SMALL = 'sm',\n\n /**\n * Large size.\n */\n LARGE = 'lg',\n\n // TODO: deprecate\n /**\n * X-Large size.\n */\n EXTRA_LARGE = 'xl',\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/content-switcher/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,oBAAoB,CAAC;AAC5B,OAAO,yBAAyB,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022\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 './content-switcher';\nimport './content-switcher-item';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/copy/copy.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,aAAa,MAAM,4BAA4B,CAAC;AAEvD;;;;GAIG;AACH,cACM,OAAQ,SAAQ,aAAa;IACjC;;OAEG;IACH,OAAO,CAAC,aAAa,CAAS;IAE9B;;OAEG;IACH,OAAO,CAAC,UAAU,CAAM;IAExB,OAAO,CAAC,4BAA4B,CAsBlC;IAEF;;OAEG;IACH,OAAO,CAAC,sBAAsB,CAAuC;IAErE;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAI1B;;OAEG;IAEH,QAAQ,SAAa;IAErB;;OAEG;IAEH,eAAe,SAAQ;IAGvB,SAAS,CAAC,qBAAqB;IAU/B,iBAAiB;IASjB,OAAO,CAAC,iBAAiB,KAAA;IAoBzB,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,OAAO,CAAC","file":"copy.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from '../copy-button/copy-button.scss';\nimport CDSIconButton from '../icon-button/icon-button';\n\n/**\n * Copy.\n *\n * @element cds-copy\n */\n@customElement(`${prefix}-copy`)\nclass CDSCopy extends CDSIconButton {\n /**\n * `true` to show the feedback tooltip.\n */\n private _showFeedback = false;\n\n /**\n * `true` to show the feedback tooltip.\n */\n private _animation = '';\n\n private _createHandleFeedbackTooltip = () => {\n let timeoutId: number | void;\n return (timeout: number) => {\n const buttonClasses = this.shadowRoot?.querySelector('button')?.classList;\n\n if (timeoutId) {\n clearTimeout(timeoutId);\n timeoutId = undefined;\n }\n this._showFeedback = true;\n buttonClasses?.add(`${prefix}--copy-btn--animating`);\n this._animation = 'fade-in';\n buttonClasses?.add(`${prefix}--copy-btn--${this._animation}`);\n this.requestUpdate();\n timeoutId = setTimeout(() => {\n this._showFeedback = false;\n this._animation = 'fade-out';\n buttonClasses?.remove(`${prefix}--copy-btn--fade-in`);\n buttonClasses?.add(`${prefix}--copy-btn--${this._animation}`);\n this.requestUpdate();\n }, timeout) as unknown as number;\n };\n };\n\n /**\n * Handles showing/hiding the feedback tooltip.\n */\n private _handleFeedbackTooltip = this._createHandleFeedbackTooltip();\n\n /**\n * Handles `click` event on the copy button.\n */\n private _handleClickButton() {\n this._handleFeedbackTooltip(this.feedbackTimeout);\n }\n\n /**\n * Specify the string that is displayed when the button is clicked and the content is copi\n */\n @property()\n feedback = 'Copied!';\n\n /**\n * The number in milliseconds to determine how long the tooltip should remain.\n */\n @property({ type: Number, attribute: 'feedback-timeout' })\n feedbackTimeout = 2000;\n\n // eslint-disable-next-line class-methods-use-this\n protected _renderTooltipContent() {\n return html`\n <cds-tooltip-content>\n ${this._showFeedback\n ? this.feedback\n : html`<slot name=\"tooltip-content\"></slot>`}\n </cds-tooltip-content>\n `;\n }\n\n connectedCallback() {\n this.closeOnActivation = false;\n this.align = 'bottom';\n\n this.addEventListener('click', this._handleClickButton);\n\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n this.shadowRoot\n ?.querySelector('button')\n ?.addEventListener('animationend', () => {\n if (this._animation === 'fade-out') {\n const buttonClasses =\n this.shadowRoot?.querySelector('button')?.classList;\n buttonClasses?.remove(`${prefix}--copy-btn--animating`);\n buttonClasses?.remove(`${prefix}--copy-btn--${this._animation}`);\n this._animation = '';\n }\n });\n\n super.updated(changedProperties);\n\n this.shadowRoot\n ?.querySelector('button') // @ts-ignore: TS thinks `host` doesn't exist on `parentNode`\n ?.setAttribute('aria-label', this.parentNode?.host.textContent);\n }\n\n static styles = styles;\n}\n\nexport default CDSCopy;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/copy-button/copy-button.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,OAAO,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtB;;;;GAIG;AACH,cACM,aAAc,SAAQ,kBAAsB;IAChD;;OAEG;IAEH,eAAe,MAAC;IAEhB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,SAAa;IAErB;;OAEG;IAEH,eAAe,SAAQ;IAEvB,MAAM;IAqBN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,aAAa,CAAC","file":"copy-button.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport Copy16 from '@carbon/icons/lib/copy/16';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport styles from './copy-button.scss';\nimport '../copy/copy';\n\n/**\n * Copy button.\n *\n * @element cds-copy-button\n */\n@customElement(`${prefix}-copy-button`)\nclass CDSCopyButton extends FocusMixin(LitElement) {\n /**\n * Specify an optional className to be added to your Button\n */\n @property({ reflect: true, attribute: 'button-class-name' })\n buttonClassName;\n\n /**\n * `true` if the button should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * Specify the string that is displayed when the button is clicked and the content is copi\n */\n @property()\n feedback = 'Copied!';\n\n /**\n * The number in milliseconds to determine how long the tooltip should remain.\n */\n @property({ type: Number, attribute: 'feedback-timeout' })\n feedbackTimeout = 2000;\n\n render() {\n const { buttonClassName, disabled, feedback, feedbackTimeout } = this;\n\n let classes = `${prefix}--copy-btn`;\n\n if (buttonClassName) {\n classes += ` ${buttonClassName}`;\n }\n\n return html`\n <cds-copy\n ?disabled=${disabled}\n feedback=${feedback}\n feedback-timeout=${feedbackTimeout}\n button-class-name=${classes}>\n ${Copy16({ slot: 'icon', class: `${prefix}--snippet__icon` })}\n <slot slot=\"tooltip-content\"></slot>\n </cds-copy>\n `;\n }\n\n static styles = styles;\n}\n\nexport default CDSCopyButton;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/copy-button/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,eAAe,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022\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 './copy-button';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/defs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,oBAAY,UAAU;IACpB;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,EAAE,OAAO;CACV;AAED;;GAEG;AACH,oBAAY,oBAAoB;IAC9B;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,SAAS,cAAc;IAEvB;;OAEG;IACH,UAAU,eAAe;CAC1B;AAED;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;IACvD,yBAAyB,8BAA8B;IACvD,0BAA0B,+BAA+B;CAC1D;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;CAmB7B,CAAC","file":"defs.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\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\n/**\n * Table size.\n */\nexport enum TABLE_SIZE {\n /**\n * xs size.\n */\n XS = 'xs',\n\n /**\n * sm size.\n */\n SM = 'sm',\n\n /**\n * md size.\n */\n MD = 'md',\n\n /**\n * lg size - default.\n */\n LG = 'lg',\n\n /**\n * xl size.\n */\n XL = 'xl',\n}\n\n/**\n * Table sort state.\n */\nexport enum TABLE_SORT_DIRECTION {\n /**\n * Not sorted.\n */\n NONE = 'none',\n\n /**\n * Sorted ascendingly.\n */\n ASCENDING = 'ascending',\n\n /**\n * Sorted descendingly.\n */\n DESCENDING = 'descending',\n}\n\n/**\n * Table sort cycle.\n */\nexport enum TABLE_SORT_CYCLE {\n BI_STATES_FROM_ASCENDING = 'bi-states-from-ascending',\n BI_STATES_FROM_DESCENDING = 'bi-states-from-descending',\n TRI_STATES_FROM_ASCENDING = 'tri-states-from-ascending',\n TRI_STATES_FROM_DESCENDING = 'tri-states-from-descending',\n}\n\n/**\n * Mapping of table sort cycles to table sort states.\n */\nexport const TABLE_SORT_CYCLES = {\n [TABLE_SORT_CYCLE.BI_STATES_FROM_ASCENDING]: [\n TABLE_SORT_DIRECTION.ASCENDING,\n TABLE_SORT_DIRECTION.DESCENDING,\n ],\n [TABLE_SORT_CYCLE.BI_STATES_FROM_DESCENDING]: [\n TABLE_SORT_DIRECTION.DESCENDING,\n TABLE_SORT_DIRECTION.ASCENDING,\n ],\n [TABLE_SORT_CYCLE.TRI_STATES_FROM_ASCENDING]: [\n TABLE_SORT_DIRECTION.NONE,\n TABLE_SORT_DIRECTION.ASCENDING,\n TABLE_SORT_DIRECTION.DESCENDING,\n ],\n [TABLE_SORT_CYCLE.TRI_STATES_FROM_DESCENDING]: [\n TABLE_SORT_DIRECTION.NONE,\n TABLE_SORT_DIRECTION.DESCENDING,\n TABLE_SORT_DIRECTION.ASCENDING,\n ],\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,SAAS,CAAC;AACjB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,4BAA4B,CAAC;AACpC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AACtB,OAAO,sBAAsB,CAAC;AAC9B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,cAAc,CAAC;AACtB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AACrB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,yBAAyB,CAAC;AACjC,OAAO,wBAAwB,CAAC","file":"index.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 2022, 2023\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 './table';\nimport './table-skeleton';\nimport './table-header-title';\nimport './table-header-description';\nimport './table-batch-actions';\nimport './table-body';\nimport './table-cell';\nimport './table-cell-content';\nimport './table-expanded-row';\nimport './table-head';\nimport './table-header-cell';\nimport './table-header-row';\nimport './table-row';\nimport './table-skeleton';\nimport './table-toolbar';\nimport './table-toolbar-content';\nimport './table-toolbar-search';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-batch-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC;;;;;GAKG;AACH,cACM,oBAAqB,SAAQ,UAAU;IAC3C;;OAEG;IACH,OAAO,CAAC,aAAa;IAQrB;;OAEG;IAEH,MAAM,UAAS;IAEf;;OAEG;IAEH,wBAAwB;;iBAC2B;IAEnD;;;OAGG;IAEH,iBAAiB,SAAK;IAEtB,YAAY;IAQZ,OAAO,CAAC,iBAAiB,KAAA;IAMzB,MAAM;IAuBN;;OAEG;IACH,MAAM,KAAK,eAAe,WAEzB;IAED;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,oBAAoB,CAAC","file":"table-batch-actions.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Table batch actions.\n *\n * @element cds-table-batch-actions\n * @fires cds-table-batch-actions-cancel-clicked - The custom event fired after the Cancel button is clicked.\n */\n@customElement(`${prefix}-table-batch-actions`)\nclass CDSTableBatchActions extends LitElement {\n /**\n * Handles `click` event on the Cancel button.\n */\n private _handleCancel() {\n const { eventClickCancel } = this\n .constructor as typeof CDSTableBatchActions;\n this.dispatchEvent(\n new CustomEvent(eventClickCancel, { bubbles: true, composed: true })\n );\n }\n\n /**\n * `true` if this batch actions bar should be active.\n */\n @property({ type: Boolean, reflect: true })\n active = false;\n\n /**\n * The formatter for selected items. Should be changed upon the locale the UI is rendered with.\n */\n @property({ attribute: false })\n formatSelectedItemsCount = ({ count }) =>\n `${count} item${count <= 1 ? '' : 's'} selected`;\n\n /**\n * Numeric representation of the total number of items selected in a table.\n * This number is used to derive the selection message.\n */\n @property({ type: Number, attribute: 'selected-rows-count' })\n selectedRowsCount = 0;\n\n firstUpdated() {\n this.querySelectorAll(\n (this.constructor as typeof CDSTableBatchActions).selectorButtons\n ).forEach((e) => {\n e.setAttribute('batch-action', '');\n });\n }\n\n updated(changedProperties) {\n if (changedProperties.has('active')) {\n this.setAttribute('tabindex', `${this.active ? '' : '-1'}`);\n }\n }\n\n render() {\n const {\n formatSelectedItemsCount,\n selectedRowsCount,\n _handleCancel: handleCancel,\n } = this;\n return html`\n <div class=\"${prefix}--batch-summary\">\n <p class=\"${prefix}--batch-summary__para\">\n ${formatSelectedItemsCount({ count: selectedRowsCount })}\n </p>\n </div>\n <div class=\"${prefix}--action-list\">\n <slot></slot>\n <button\n class=\"${prefix}--btn ${prefix}--btn--primary ${prefix}--batch-summary__cancel\"\n @click=${handleCancel}>\n <slot name=\"cancel-button-content\">Cancel</slot>\n </button>\n </div>\n `;\n }\n\n /**\n * The CSS selector to find the action buttons.\n */\n static get selectorButtons() {\n return `${prefix}-button`;\n }\n\n /**\n * The name of the custom event fired after the Cancel button is clicked.\n */\n static get eventClickCancel() {\n return `${prefix}-table-batch-actions-cancel-clicked`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableBatchActions;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-body.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAOvC;;;;GAIG;AACH,cACM,YAAa,SAAQ,UAAU;IACnC;;OAEG;IAEH,OAAO,CAAC,SAAS,CAAmB;IAEpC;;OAEG;IACH,OAAO,CAAC,YAAY;IAWpB;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAEvB;IAEF;;;;OAIG;IAIH;;OAEG;IAEH,cAAc,UAAS;IAEvB,iBAAiB;IAOjB,OAAO,CAAC,iBAAiB,KAAA;IAMzB,MAAM;IAKN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,YAAY,CAAC","file":"table-body.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport CDSTableRow from './table-row';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Data table body.\n *\n * @element cds-table-body\n */\n@customElement(`${prefix}-table-body`)\nclass CDSTableBody extends LitElement {\n /**\n * The `<slot>` element in the shadow DOM.\n */\n @query('slot')\n private _slotNode!: HTMLSlotElement;\n\n /**\n * Updates `even`/`odd` properties of the child `<cds-table-row>`s.\n */\n private _updateZebra() {\n const { useZebraStyles, _slotNode: slotNode } = this;\n slotNode.assignedNodes().forEach((node) => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n const even = (node as HTMLElement).matches('*:nth-of-type(even)');\n (node as CDSTableRow).even = useZebraStyles && even;\n (node as CDSTableRow).odd = useZebraStyles && !even;\n }\n });\n }\n\n /**\n * Handles `slotchange` event in the `<slot>` element in the shadow DOM.\n */\n private _handleSlotChange = () => {\n this._updateZebra();\n };\n\n /**\n * TODO: Uncomment when Carbon fully implements sticky header\n * Specify whether the header should be sticky.\n * Still experimental: may not work with every combination of table props\n */\n // @property({ type: Boolean, reflect: true, attribute: 'sticky-header' })\n // stickyHeader = false;\n\n /**\n * The color scheme.\n */\n @property({ type: Boolean, reflect: true, attribute: 'use-zebra-styles' })\n useZebraStyles = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('useZebraStyles')) {\n this._updateZebra();\n }\n }\n\n render() {\n const { _handleSlotChange: handleSlotChange } = this;\n return html` <slot @slotchange=\"${handleSlotChange}\"></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableBody;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-cell-content.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,cACM,mBAAoB,SAAQ,UAAU;IAC1C,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,mBAAmB,CAAC","file":"table-cell-content.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\n/**\n * Data table cell content.\n *\n * @element cds-table-cell-content\n */\n@customElement(`${prefix}-table-cell-content`)\nclass CDSTableCellContent extends LitElement {\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableCellContent;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC;;;;GAIG;AACH,cACM,YAAa,SAAQ,UAAU;IACnC;;OAEG;IAMH,mBAAmB,UAAS;IAE5B;;OAEG;IAEH,IAAI,MAAC;IAEL;;;;OAIG;IAIH,iBAAiB;IAOjB,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,YAAY,CAAC","file":"table-cell.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Data table cell.\n *\n * @element cds-table-cell\n */\n@customElement(`${prefix}-table-cell`)\nclass CDSTableCell extends LitElement {\n /**\n * Specify whether the overflow menu (if it exists) should be shown always, or only on hover\n */\n @property({\n type: Boolean,\n reflect: true,\n attribute: 'overflow-menu-on-hover',\n })\n overflowMenuOnHover = false;\n\n /**\n * The table size.\n */\n @property({ reflect: true })\n size;\n\n /**\n * TODO: Uncomment when Carbon fully implements sticky header\n * Specify whether the header should be sticky.\n * Still experimental: may not work with every combination of table props\n */\n // @property({ type: Boolean, reflect: true, attribute: 'sticky-header' })\n // stickyHeader = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'cell');\n }\n super.connectedCallback();\n }\n\n render() {\n return html`<slot></slot>`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableCell;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-expanded-row.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASvC;;;;GAIG;AACH,cACM,mBAAoB,SAAQ,wBAA6B;IAC7D;;;;OAIG;IAIH,OAAO,CAAC,mBAAmB;IAS3B;;OAEG;IAEH,OAAO,SAAK;IAEZ;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,WAAW,UAAS;IAEpB;;OAEG;IAEH,QAAQ,UAAS;IAEjB,MAAM;IAWN;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,mBAAmB,CAAC","file":"table-expanded-row.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport CDSTableRow from './table-row';\n/**\n * Table row of collapsible details.\n *\n * @element cds-table-expanded-row\n */\n@customElement(`${prefix}-table-expanded-row`)\nclass CDSTableExpandedRow extends HostListenerMixin(LitElement) {\n /**\n * Handles `mouseover`/`mouseout` event handler on this element.\n *\n * @param event The event.\n */\n @HostListener('mouseover')\n @HostListener('mouseout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleMouseOverOut(event: MouseEvent) {\n const { selectorRow } = this.constructor as typeof CDSTableExpandedRow;\n const { previousElementSibling } = this;\n if (previousElementSibling?.matches(selectorRow)) {\n (previousElementSibling as CDSTableRow).highlighted =\n event.type === 'mouseover';\n }\n }\n\n /**\n * The colspan.\n */\n @property({ type: Number, attribute: 'colspan' })\n colSpan = 1;\n\n /**\n * `true` if the table row should be expanded.\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * `true` if the table row should be filtered.\n */\n @property({ type: Boolean, reflect: true })\n filtered = false;\n\n /**\n * `true` if the table row should be highlighted.\n */\n @property({ type: Boolean, reflect: true })\n highlighted = false;\n\n /**\n * `true` if the previous table row has been selected\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n render() {\n const { colSpan } = this;\n return html`\n <td colspan=\"${colSpan}\">\n <div class=\"${prefix}--child-row-inner-container\">\n <slot></slot>\n </div>\n </td>\n `;\n }\n\n /**\n * A selector that will return the previous sibling row.\n */\n static get selectorRow() {\n return `${prefix}-table-row`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSTableExpandedRow;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-head.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,cACM,YAAa,SAAQ,UAAU;IACnC;;;;OAIG;IAIH,iBAAiB;IAOjB,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,YAAY,CAAC","file":"table-head.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Data table header.\n *\n * @element cds-table-head\n */\n@customElement(`${prefix}-table-head`)\nclass CDSTableHead extends LitElement {\n /**\n * TODO: Uncomment when Carbon fully implements sticky header\n * Specify whether the header should be sticky.\n * Still experimental: may not work with every combination of table props\n */\n //@property({ type: Boolean, reflect: true, attribute: 'sticky-header' })\n // stickyHeader = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'rowgroup');\n }\n super.connectedCallback();\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableHead;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-header-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,QAAQ,CAAC;AAIhB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAErE;;;;;;;GAOG;AACH,cACM,kBAAmB,SAAQ,uBAAsB;IACrD;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAoB9B;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAIzB;;OAEG;IACH,OAAO,CAAC,YAAY;IA0BpB;;OAEG;IAEH,YAAY,UAAS;IAErB;;OAEG;IAEH,YAAY,UAAS;IACrB;;OAEG;IAEH,UAAU,UAAS;IAEnB;;OAEG;IAEH,UAAU,UAAS;IAEnB;;OAEG;IAEH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE7B;;;OAGG;IAEH,aAAa,CAAC,EAAE,oBAAoB,CAAC;IAErC;;;;OAIG;IAIH,iBAAiB;IAOjB,OAAO,CAAC,iBAAiB,KAAA;IAMzB,MAAM;IA6BN;;;OAGG;IACH,MAAM,KAAK,eAAe,WAEzB;IAED,MAAM,CAAC,iBAAiB;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;IAEvB;;OAEG;IACH,MAAM,CAAC,iBAAiB;;;;;MAAqB;CAC9C;AAED,eAAe,kBAAkB,CAAC","file":"table-header-cell.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport ArrowsVertical32 from '@carbon/icons/lib/arrows--vertical/32';\nimport ArrowDown32 from '@carbon/icons/lib/arrow--down/32';\nimport { prefix } from '../../globals/settings';\nimport FocusMixin from '../../globals/mixins/focus';\nimport {\n TABLE_SORT_CYCLE,\n TABLE_SORT_CYCLES,\n TABLE_SORT_DIRECTION,\n} from './defs';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\nexport { TABLE_SORT_CYCLE, TABLE_SORT_CYCLES, TABLE_SORT_DIRECTION };\n\n/**\n * Data table header cell.\n *\n * @element cds-table-header-cell\n * @fires cds-table-header-cell-sort\n * The custom event fired before a new sort direction is set upon a user gesture.\n * Cancellation of this event stops the user-initiated change in sort direction.\n */\n@customElement(`${prefix}-table-header-cell`)\nclass CDSTableHeaderCell extends FocusMixin(LitElement) {\n /**\n * Handles `click` event on the sort button.\n *\n */\n private _handleClickSortButton() {\n const nextSortDirection = this._getNextSort();\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n oldSortDirection: this.sortDirection,\n sortDirection: nextSortDirection,\n },\n };\n const constructor = this.constructor as typeof CDSTableHeaderCell;\n if (\n this.dispatchEvent(new CustomEvent(constructor.eventBeforeSort, init))\n ) {\n this.sortActive = true;\n this.sortDirection = nextSortDirection;\n }\n }\n\n /**\n * Handles `slotchange` event.\n *\n */\n private _handleSlotChange() {\n this.requestUpdate();\n }\n\n /**\n * @returns The next sort direction.\n */\n private _getNextSort() {\n const {\n sortCycle = TABLE_SORT_CYCLE.TRI_STATES_FROM_ASCENDING,\n sortDirection,\n } = this;\n if (!sortDirection) {\n throw new TypeError(\n 'Table sort direction is not defined. ' +\n 'Likely that `_getNextSort()` is called with non-sorted table column, which should not happen in regular condition.'\n );\n }\n const directions = (this.constructor as typeof CDSTableHeaderCell)\n .TABLE_SORT_CYCLES[sortCycle];\n const index = directions.indexOf(sortDirection as TABLE_SORT_DIRECTION);\n if (index < 0) {\n if (sortDirection === TABLE_SORT_DIRECTION.NONE) {\n // If the current sort direction is `none` in bi-state sort cycle, returns the first one in the cycle\n return directions[0];\n }\n throw new RangeError(\n `The given sort state (${sortDirection}) is not found in the given table sort cycle: ${sortCycle}`\n );\n }\n return directions[(index + 1) % directions.length];\n }\n\n /**\n * `true` if the table has expandable rows\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isExpandable = false;\n\n /**\n * `true` if this table has selectable rows\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isSelectable = false;\n /**\n * `true` if this table header column should be sortable\n */\n @property({ type: Boolean, reflect: true, attribute: 'is-sortable' })\n isSortable = false;\n\n /**\n * `true` if this table header cell is of a primary sorting column.\n */\n @property({ type: Boolean, reflect: true, attribute: 'sort-active' })\n sortActive = false;\n\n /**\n * The table sort cycle in use.\n */\n @property({ reflect: true, attribute: 'sort-cycle' })\n sortCycle?: TABLE_SORT_CYCLE;\n\n /**\n * The table sort direction.\n * If present, this table header cell will have a sorting UI. Choose between `ascending` or `descending`.\n */\n @property({ reflect: true, attribute: 'sort-direction' })\n sortDirection?: TABLE_SORT_DIRECTION;\n\n /**\n * TODO: Uncomment when Carbon fully implements sticky header\n * Specify whether the header should be sticky.\n * Still experimental: may not work with every combination of table props\n */\n // @property({ type: Boolean, reflect: true, attribute: 'sticky-header' })\n // stickyHeader = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'columnheader');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (this.isSortable && !changedProperties.has('sortDirection')) {\n this.sortDirection = TABLE_SORT_DIRECTION.NONE;\n }\n }\n\n render() {\n const { sortDirection } = this;\n if (sortDirection) {\n const sortIcon =\n sortDirection === TABLE_SORT_DIRECTION.NONE\n ? ArrowsVertical32({\n part: 'sort-icon',\n class: `${prefix}--table-sort__icon-unsorted`,\n })\n : ArrowDown32({\n part: 'sort-icon',\n class: `${prefix}--table-sort__icon`,\n });\n return html`\n <button\n part=\"sort-button\"\n class=\"${prefix}--table-sort\"\n title=\"${this.textContent}\"\n @click=${this._handleClickSortButton}>\n <span part=\"label-text\" class=\"${prefix}--table-header-label\"\n ><slot @slotchange=${this._handleSlotChange}></slot\n ></span>\n ${sortIcon}\n </button>\n `;\n }\n return html` <slot></slot> `;\n }\n\n /**\n * The name of the custom event fired before a new sort direction is set upon a user gesture.\n * Cancellation of this event stops the user-initiated change in sort direction.\n */\n static get eventBeforeSort() {\n return `${prefix}-table-header-cell-sort`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n\n /**\n * Mapping of table sort cycles to table sort states.\n */\n static TABLE_SORT_CYCLES = TABLE_SORT_CYCLES;\n}\n\nexport default CDSTableHeaderCell;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-header-description.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,cACM,yBAA0B,SAAQ,UAAU;IAChD,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,yBAAyB,CAAC","file":"table-header-description.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\n/**\n * Data table header description\n *\n * @element cds-table-header-description\n */\n@customElement(`${prefix}-table-header-description`)\nclass CDSTableHeaderDescription extends LitElement {\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableHeaderDescription;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-header-row.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,WAAW,MAAM,aAAa,CAAC;AAGtC;;;;GAIG;AACH,cACM,iBAAkB,SAAQ,WAAW;IACzC;;;OAGG;IACH,MAAM,KAAK,0BAA0B,WAEpC;CACF;AAED,eAAe,iBAAiB,CAAC","file":"table-header-row.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { prefix } from '../../globals/settings';\nimport CDSTableRow from './table-row';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Data table header row.\n *\n * @element cds-table-header-row\n */\n@customElement(`${prefix}-table-header-row`)\nclass CDSTableHeaderRow extends CDSTableRow {\n /**\n * The name of the custom event fired before this row is selected/unselected upon a user gesture.\n * Cancellation of this event stops the user-initiated change in selection.\n */\n static get eventBeforeChangeSelection() {\n return `${prefix}-table-change-selection-all`;\n }\n}\n\nexport default CDSTableHeaderRow;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-header-title.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,cACM,cAAe,SAAQ,UAAU;IACrC,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,cAAc,CAAC","file":"table-header-title.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\n/**\n * Data table header title\n *\n * @element cds-table-header-title\n */\n@customElement(`${prefix}-table-header-title`)\nclass CDSTableHeader extends LitElement {\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableHeader;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-row.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAavC;;;;;;;;;GASG;AACH,cACM,WAAY,SAAQ,gBAAyC;IACjE;;;;OAIG;IAGH,OAAO,CAAC,0BAA0B;IA0BlC;;;;OAIG;IAGH,OAAO,CAAC,6BAA6B;IA0BrC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;;;OAIG;IAIH,OAAO,CAAC,mBAAmB;IAoB3B;;;;OAIG;IACH,iCAAiC,CAAC,QAAQ,UAAiB;IA2B3D,SAAS,CAAC,mBAAmB;IAa7B;;OAEG;IACH,SAAS,CAAC,iBAAiB;IA6B3B;;OAEG;IAEH,cAAc,UAAS;IAEvB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;;;;OAKG;IAEH,IAAI,UAAS;IAEb;;;;OAIG;IAEH,UAAU,UAAS;IAEnB;;;;OAIG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;;OAGG;IAEH,YAAY,UAAS;IAErB;;OAEG;IAEH,WAAW,UAAS;IAEpB;;;;;OAKG;IAEH,GAAG,UAAS;IAEZ;;OAEG;IAMH,mBAAmB,UAAS;IAE5B;;;;OAIG;IAEH,KAAK,UAAS;IAEd;;OAEG;IAEH,QAAQ,UAAS;IAEjB;;OAEG;IAEH,cAAc,SAAM;IAEpB;;;OAGG;IAEH,aAAa,SAAM;IAEnB;;OAEG;IAEH,cAAc,SAAM;IAEpB;;;;OAIG;IAIH,iBAAiB;IAOjB,OAAO,CAAC,iBAAiB,KAAA;IAkBzB,MAAM;IAaN;;OAEG;IACH,MAAM,KAAK,gBAAgB,WAE1B;IAED;;OAEG;IACH,MAAM,KAAK,mBAAmB,WAE7B;IAED;;;OAGG;IACH,MAAM,KAAK,0BAA0B,WAEpC;IAED;;OAEG;IACH,MAAM,KAAK,aAAa,WAEvB;IAED;;OAEG;IACH,MAAM,KAAK,6BAA6B,WAEvC;IAED;;OAEG;IACH,MAAM,KAAK,mBAAmB,WAE7B;IAED;;;OAGG;IACH,MAAM,KAAK,wBAAwB,WAElC;IAED;;OAEG;IACH,MAAM,KAAK,kBAAkB,WAE5B;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,WAAW,CAAC","file":"table-row.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport ChevronRight16 from '@carbon/icons/lib/chevron--right/16';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\nimport FocusMixin from '../../globals/mixins/focus';\nimport styles from './data-table.scss';\n\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport CDSTableExpandedRow from './table-expanded-row';\nimport CDSTableCell from './table-cell';\n\n/**\n * Data table row.\n *\n * @element cds-table-row\n * @csspart selection-container The container of the checkbox.\n * @csspart selection The checkbox.\n * @fires cds-table-row-change-selection\n * The custom event fired before this row is selected/unselected upon a user gesture.\n * Cancellation of this event stops the user-initiated change in selection.\n */\n@customElement(`${prefix}-table-row`)\nclass CDSTableRow extends HostListenerMixin(FocusMixin(LitElement)) {\n /**\n * Handles `click` event on the radio button.\n *\n * @param event The event.\n */\n @HostListener('eventRadioChange')\n // @ts-ignore\n private _handleClickSelectionRadio(event: CustomEvent) {\n const { detail } = event;\n const selected = detail.checked;\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n selected,\n },\n };\n const constructor = this.constructor as typeof CDSTableRow;\n if (\n this.dispatchEvent(\n new CustomEvent(constructor.eventBeforeChangeSelection, init)\n )\n ) {\n this.selected = selected;\n const { selectorExpandedRow } = this.constructor as typeof CDSTableRow;\n\n if (this.nextElementSibling?.matches(selectorExpandedRow)) {\n (this.nextElementSibling as CDSTableExpandedRow).selected = selected;\n }\n }\n }\n\n /**\n * Handles `click` event on the check box.\n *\n * @param event The event.\n */\n @HostListener('eventCheckboxChange')\n // @ts-ignore\n private _handleClickSelectionCheckbox(event: CustomEvent) {\n const { detail } = event;\n const selected = detail.checked;\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n selected,\n },\n };\n const constructor = this.constructor as typeof CDSTableRow;\n if (\n this.dispatchEvent(\n new CustomEvent(constructor.eventBeforeChangeSelection, init)\n )\n ) {\n this.selected = selected;\n const { selectorExpandedRow } = this.constructor as typeof CDSTableRow;\n\n if (this.nextElementSibling?.matches(selectorExpandedRow)) {\n (this.nextElementSibling as CDSTableExpandedRow).selected = selected;\n }\n }\n }\n\n /**\n * Handles `click` event on the expando button.\n */\n private _handleClickExpando() {\n this._handleUserInitiatedToggleExpando();\n }\n\n /**\n * Handles `mouseover`/`mouseout` event handler on this element.\n *\n * @param event The event.\n */\n @HostListener('mouseover')\n @HostListener('mouseout')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleMouseOverOut(event: MouseEvent) {\n const { selectorExpandedRow, selectorTableCellOverflowMenu } = this\n .constructor as typeof CDSTableRow;\n const { nextElementSibling } = this;\n if (nextElementSibling?.matches(selectorExpandedRow)) {\n (nextElementSibling as CDSTableExpandedRow).highlighted =\n event.type === 'mouseover';\n }\n if (this.overflowMenuOnHover) {\n const overflowMenu = this.querySelector(selectorTableCellOverflowMenu);\n const parentCell = overflowMenu?.parentElement;\n\n if (event.type === 'mouseout') {\n (parentCell as CDSTableCell).overflowMenuOnHover = true;\n } else {\n (parentCell as CDSTableCell).overflowMenuOnHover = false;\n }\n }\n }\n\n /**\n * Handles user-initiated toggle request of the expando button in this table row.\n *\n * @param expanded The new expanded state.\n */\n _handleUserInitiatedToggleExpando(expanded = !this.expanded) {\n const init = {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n expanded,\n },\n };\n if (\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSTableRow).eventBeforeExpandoToggle,\n init\n )\n )\n ) {\n this.expanded = expanded;\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof CDSTableRow).eventExpandoToggle,\n init\n )\n );\n }\n }\n\n protected _renderExpandButton() {\n const { _handleClickExpando: handleClickExpando } = this;\n return html`\n <div class=\"${prefix}--table-expand\">\n <button\n class=\"${prefix}--table-expand__button\"\n @click=\"${handleClickExpando}\">\n ${ChevronRight16({ class: `${prefix}--table-expand__svg` })}\n </button>\n </div>\n `;\n }\n\n /**\n * @returns The first set of table cells.\n */\n protected _renderFirstCells() {\n const {\n disabled,\n hideCheckbox,\n radio,\n selected,\n selectionLabel,\n selectionName,\n selectionValue,\n } = this;\n return !selectionName\n ? undefined\n : html`\n <div class=\"${prefix}--table-column-checkbox\">\n ${radio\n ? html`<cds-radio-button data-table></cds-radio-button>`\n : html`<cds-checkbox\n hide-label\n ?hide-checkbox=\"${hideCheckbox}\"\n label-text=\"${selectionLabel}\"\n name=${selectionName}\n data-table\n ?disabled=${disabled}\n ?checked=${selected}\n value=${selectionValue}></cds-checkbox> `}\n </div>\n `;\n }\n\n /**\n * `true` if this table should support batch expansion\n */\n @property({ type: Boolean, reflect: true, attribute: 'batch-expansion' })\n batchExpansion = false;\n\n /**\n * `true` if this table row should be disabled.\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * `true` if this table row is placed at an even position in parent `<cds-table-body>`.\n * `<cds-table-body>` sets this property, _only_ in zebra stripe mode.\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n even = false;\n\n /**\n * `true` if this table row can be expanded to show content underneath\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n expandable = false;\n\n /**\n * `true` when the table row expanded is showing\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n expanded = false;\n\n /**\n * `true` if this table row should be filtered out.\n */\n @property({ type: Boolean, reflect: true })\n filtered = false;\n\n /**\n * Specify whether the checkbox should be present in the DOM,\n * but invisible and uninteractable.\n */\n @property({ type: Boolean, reflect: true, attribute: 'hide-checkbox' })\n hideCheckbox = false;\n\n /**\n * `true` if the table row should be highlighted.\n */\n @property({ type: Boolean, reflect: true })\n highlighted = false;\n\n /**\n * `true` if this table row is placed at an odd position in parent `<cds-table-body>`.\n * `<cds-table-body>` sets this property, _only_ in zebra stripe mode.\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n odd = false;\n\n /**\n * Specify whether the overflow menu (if it exists) should be shown always, or only on hover\n */\n @property({\n type: Boolean,\n reflect: true,\n attribute: 'overflow-menu-on-hover',\n })\n overflowMenuOnHover = false;\n\n /**\n * Specify whether the control should be a radio button or inline checkbox\n *\n * @private\n */\n @property({ type: Boolean, reflect: true })\n radio = false;\n\n /**\n * `true` if this table row should be selected.\n */\n @property({ type: Boolean, reflect: true })\n selected = false;\n\n /**\n * The `aria-label` attribute for the `<label>` for selection.\n */\n @property({ attribute: 'selection-label' })\n selectionLabel = '';\n\n /**\n * The `name` attribute for the `<input>` for selection.\n * If present, this table row will be a selectable one.\n */\n @property({ attribute: 'selection-name' })\n selectionName = '';\n\n /**\n * The `value` attribute for the `<input>` for selection.\n */\n @property({ attribute: 'selection-value' })\n selectionValue = '';\n\n /**\n * TODO: Uncomment when Carbon fully implements sticky header\n * Specify whether the header should be sticky.\n * Still experimental: may not work with every combination of table props\n */\n // @property({ type: Boolean, reflect: true, attribute: 'sticky-header' })\n // stickyHeader = false;\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'row');\n }\n super.connectedCallback();\n }\n\n updated(changedProperties) {\n if (changedProperties.has('expanded')) {\n const { selectorExpandedRow } = this.constructor as typeof CDSTableRow;\n const { expanded, nextElementSibling } = this;\n if (nextElementSibling?.matches(selectorExpandedRow)) {\n (nextElementSibling as CDSTableExpandedRow).expanded = expanded;\n }\n }\n\n if (changedProperties.has('highlighted')) {\n const { selectorExpandedRow } = this.constructor as typeof CDSTableRow;\n const { highlighted, nextElementSibling } = this;\n if (nextElementSibling?.matches(selectorExpandedRow)) {\n (nextElementSibling as CDSTableExpandedRow).highlighted = highlighted;\n }\n }\n }\n\n render() {\n if (this.selectionName) {\n this.closest(\n (this.constructor as typeof CDSTableRow).selectorTable\n )?.setAttribute('is-selectable', '');\n }\n return html`\n ${this.expandable ? this._renderExpandButton() : ''}\n ${this._renderFirstCells()}\n <slot></slot>\n `;\n }\n\n /**\n * The name of the custom event fired after this radio button changes its checked state.\n */\n static get eventRadioChange() {\n return `${prefix}-radio-button-changed`;\n }\n\n /**\n * The name of the custom event fired after this radio button changes its checked state.\n */\n static get eventCheckboxChange() {\n return `${prefix}-checkbox-changed`;\n }\n\n /**\n * The name of the custom event fired before this row is selected/unselected upon a user gesture.\n * Cancellation of this event stops the user-initiated change in selection.\n */\n static get eventBeforeChangeSelection() {\n return `${prefix}-table-row-change-selection`;\n }\n\n /**\n * A selector that will return the parent table\n */\n static get selectorTable() {\n return `${prefix}-table`;\n }\n\n /**\n * The CSS selector to find the overflow menu on the table cell\n */\n static get selectorTableCellOverflowMenu() {\n return `${prefix}-table-cell ${prefix}-overflow-menu`;\n }\n\n /**\n * A selector that will return the corresponding expanded row.\n */\n static get selectorExpandedRow() {\n return `${prefix}-table-expanded-row`;\n }\n\n /**\n * The name of the custom event fired before the expanded state this row is being toggled upon a user gesture.\n * Cancellation of this event stops the user-initiated action of toggling the expanded state.\n */\n static get eventBeforeExpandoToggle() {\n return `${prefix}-table-row-expando-beingtoggled`;\n }\n\n /**\n * The name of the custom event fired after the expanded state this row is toggled upon a user gesture.\n */\n static get eventExpandoToggle() {\n return `${prefix}-table-row-expando-toggled`;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableRow;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-skeleton.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC;;;;GAIG;AACH,cACM,gBAAiB,SAAQ,UAAU;IACvC;;OAEG;IAEH,OAAO,CAAC,OAAO,CAAgB;IAE/B;;OAEG;IAEH,OAAO,UAAS;IAEhB;;OAEG;IAEH,WAAW,SAAK;IAEhB;;OAEG;IAEH,QAAQ,SAAK;IAEb;;OAEG;IAEH,UAAU,UAAQ;IAElB;;OAEG;IAEH,WAAW,UAAQ;IAEnB;;OAEG;IAEH,KAAK,UAAS;IAEd;;OAEG;IACH,SAAS,CAAC,aAAa;IAcvB;;OAEG;IACH,SAAS,CAAC,cAAc;IAcxB,iBAAiB;IAOjB,OAAO;IAQP,MAAM;IA+CN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,gBAAgB,CAAC","file":"table-skeleton.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\n\n/**\n * Data table skeleton\n *\n * @element cds-table-skeleton\n */\n@customElement(`${prefix}-table-skeleton`)\nclass CDSTableSkeleton extends LitElement {\n /**\n * Optionally specify the displayed headers\n */\n @property()\n private headers: string[] = [];\n\n /**\n * Optionally specify whether you want the Skeleton to be rendered as a compact DataTable\n */\n @property({ type: Boolean, reflect: true })\n compact = false;\n\n /**\n * Specify the number of columns that you want to render in the skeleton state\n */\n @property({ type: Number, reflect: true, attribute: 'column-count' })\n columnCount = 5;\n\n /**\n * Specify the number of rows that you want to render in the skeleton state\n */\n @property({ type: Number, reflect: true, attribute: 'row-count' })\n rowCount = 5;\n\n /**\n * Specify if the table header should be rendered as part of the skeleton.\n */\n @property({ type: Boolean, reflect: true, attribute: 'show-header' })\n showHeader = true;\n\n /**\n * Specify if the table toolbar should be rendered as part of the skeleton.\n */\n @property({ type: Boolean, reflect: true, attribute: 'show-toolbar' })\n showToolbar = true;\n\n /**\n * true to add useZebraStyles striping.\n */\n @property({ type: Boolean, reflect: true })\n zebra = false;\n\n /**\n * @returns The header\n */\n protected _renderHeader() {\n const { showHeader } = this;\n return !showHeader\n ? undefined\n : html`\n <div class=\"${prefix}--skeleton ${prefix}--data-table-container\">\n <div class=\"${prefix}--data-table-header\">\n <div class=\"${prefix}--data-table-header__title\"></div>\n <div class=\"${prefix}--data-table-header__description\"></div>\n </div>\n </div>\n `;\n }\n\n /**\n * @returns The header\n */\n protected _renderToolbar() {\n const { showToolbar } = this;\n return !showToolbar\n ? undefined\n : html`\n <section class=\"${prefix}--table-toolbar\">\n <div class=\"${prefix}--toolbar-content\">\n <span\n class=\"${prefix}--skeleton ${prefix}--btn ${prefix}--btn--sm\"></span>\n </div>\n </section>\n `;\n }\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'table');\n }\n super.connectedCallback();\n }\n\n updated() {\n if (this.headers.length) {\n this.columnCount = this.headers.length;\n } else {\n this.headers = Array(this.columnCount).fill('');\n }\n }\n\n render() {\n const { compact, columnCount, headers, rowCount, zebra } = this;\n const classes = classMap({\n [`${prefix}--skeleton`]: true,\n [`${prefix}--data-table`]: true,\n [`${prefix}--data-table--compact`]: compact,\n [`${prefix}--data-table--zebra`]: zebra,\n });\n return html`\n ${this._renderHeader()} ${this._renderToolbar()}\n\n <table class=\"${classes}\">\n <thead>\n <tr>\n ${Array.from(new Array(columnCount)).map(\n (_, index) =>\n html`\n <th>\n <div class=\"${prefix}--table-header-label\">\n ${headers[index]}\n </div>\n </th>\n `\n )}\n </tr>\n </thead>\n <tbody>\n ${Array.from(new Array(rowCount)).map(\n (_) =>\n html`\n <tr>\n ${Array.from(new Array(columnCount)).map(\n (_) =>\n html`\n <td>\n <span></span>\n </td>\n `\n )}\n </tr>\n `\n )}\n </tbody>\n </table>\n `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableSkeleton;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["components/data-table/table-toolbar-content.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC;;;;GAIG;AACH,cACM,sBAAuB,SAAQ,UAAU;IAC7C;;OAEG;IAEH,eAAe,UAAS;IAExB;;OAEG;IAEH,IAAI,MAAC;IAEL,OAAO,CAAC,iBAAiB,KAAA;IAkBzB,MAAM;IAIN,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,sBAAsB,CAAC","file":"table-toolbar-content.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\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 { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport styles from './data-table.scss';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\n\n/**\n * Table toolbar content.\n *\n * @element cds-table-toolbar-content\n */\n@customElement(`${prefix}-table-toolbar-content`)\nclass CDSTableToolbarContent extends LitElement {\n /**\n * `true` if this batch actions bar is active.\n */\n @property({ type: Boolean, reflect: true, attribute: 'has-batch-actions' })\n hasBatchActions = false;\n\n /**\n * Table toolbar contents size\n */\n @property({ reflect: true })\n size;\n\n updated(changedProperties) {\n if (changedProperties.has('hasBatchActions')) {\n this.setAttribute('tabindex', `${this.hasBatchActions ? '-1' : ''}`);\n }\n\n if (changedProperties.has('size')) {\n [...this.children].forEach((e) => {\n const size =\n this.size === 'xs'\n ? 'sm'\n : this.size === 'md' || this.size === 'xl'\n ? 'lg'\n : this.size;\n e.setAttribute('size', size);\n });\n }\n }\n\n render() {\n return html` <slot></slot> `;\n }\n\n static styles = styles;\n}\n\nexport default CDSTableToolbarContent;\n"]}
|