@ukic/canary-web-components 3.0.0-canary.21 → 3.0.0-canary.22
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/README.md +2 -1
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +29 -21
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +17 -10
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +39 -47
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -10
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +2 -2
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +2 -2
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +2 -2
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +15 -4
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +13 -4
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +14 -8
- package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-view.cjs.entry.js +23 -15
- package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.css +3 -2
- package/dist/collection/components/ic-data-table/ic-data-table.js +28 -20
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.stories.js +2 -2
- package/dist/collection/components/ic-data-table/ic-data-table.stories.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +32 -73
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.js +37 -10
- package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +14 -8
- package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.js +23 -15
- package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
- package/dist/components/ic-data-table.js +29 -21
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-picker.js +18 -10
- package/dist/components/ic-date-picker.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +1 -1
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu2.js +42 -47
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-item.js +3 -10
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-search-bar.js +2 -2
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-select2.js +2 -2
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +2 -2
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +17 -4
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +14 -4
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tree-item.js +15 -9
- package/dist/components/ic-tree-item.js.map +1 -1
- package/dist/components/ic-tree-view.js +24 -16
- package/dist/components/ic-tree-view.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-156fc5f1.entry.js +2 -0
- package/dist/core/p-156fc5f1.entry.js.map +1 -0
- package/dist/core/{p-b6c3cc1c.entry.js → p-15ec796a.entry.js} +2 -2
- package/dist/core/p-15ec796a.entry.js.map +1 -0
- package/dist/core/{p-145238fe.entry.js → p-1ffac8ae.entry.js} +2 -2
- package/dist/core/{p-145238fe.entry.js.map → p-1ffac8ae.entry.js.map} +1 -1
- package/dist/core/{p-b6d1988d.entry.js → p-6e7aaca5.entry.js} +2 -2
- package/dist/core/{p-b6d1988d.entry.js.map → p-6e7aaca5.entry.js.map} +1 -1
- package/dist/core/p-755bdc43.entry.js +2 -0
- package/dist/core/p-755bdc43.entry.js.map +1 -0
- package/dist/core/p-78635447.entry.js +2 -0
- package/dist/core/p-78635447.entry.js.map +1 -0
- package/dist/core/{p-1bcf49fa.entry.js → p-a220535c.entry.js} +2 -2
- package/dist/core/p-a220535c.entry.js.map +1 -0
- package/dist/core/{p-9fafa5fa.entry.js → p-b88585bf.entry.js} +2 -2
- package/dist/core/p-b88585bf.entry.js.map +1 -0
- package/dist/core/{p-b6b7c15c.entry.js → p-bc974a3e.entry.js} +2 -2
- package/dist/core/p-bc974a3e.entry.js.map +1 -0
- package/dist/core/p-c67381b1.entry.js +2 -0
- package/dist/core/p-c67381b1.entry.js.map +1 -0
- package/dist/core/p-d04b75cb.entry.js +2 -0
- package/dist/core/p-d04b75cb.entry.js.map +1 -0
- package/dist/core/p-e2103bcc.entry.js +2 -0
- package/dist/core/p-e2103bcc.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/ic-button_3.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-data-table.entry.js +29 -21
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-picker.entry.js +17 -10
- package/dist/esm/ic-date-picker.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +39 -47
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +3 -10
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +2 -2
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +2 -2
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +2 -2
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +15 -4
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +13 -4
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +15 -9
- package/dist/esm/ic-tree-item.entry.js.map +1 -1
- package/dist/esm/ic-tree-view.entry.js +24 -16
- package/dist/esm/ic-tree-view.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +1 -1
- package/dist/types/components/ic-data-table/ic-data-table.stories.d.ts +1 -1
- package/dist/types/components/ic-data-table/story-data.d.ts +0 -64
- package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +4 -0
- package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +2 -0
- package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +2 -1
- package/dist/types/components.d.ts +8 -0
- package/hydrate/index.js +166 -126
- package/hydrate/index.mjs +166 -126
- package/package.json +3 -3
- package/dist/core/p-1b20ab19.entry.js +0 -2
- package/dist/core/p-1b20ab19.entry.js.map +0 -1
- package/dist/core/p-1bcf49fa.entry.js.map +0 -1
- package/dist/core/p-5f8b09e4.entry.js +0 -2
- package/dist/core/p-5f8b09e4.entry.js.map +0 -1
- package/dist/core/p-7001f1c1.entry.js +0 -2
- package/dist/core/p-7001f1c1.entry.js.map +0 -1
- package/dist/core/p-9fafa5fa.entry.js.map +0 -1
- package/dist/core/p-b6b7c15c.entry.js.map +0 -1
- package/dist/core/p-b6c3cc1c.entry.js.map +0 -1
- package/dist/core/p-b9369ce5.entry.js +0 -2
- package/dist/core/p-b9369ce5.entry.js.map +0 -1
- package/dist/core/p-cbbba154.entry.js +0 -2
- package/dist/core/p-cbbba154.entry.js.map +0 -1
- package/dist/core/p-dc3aba7c.entry.js +0 -2
- package/dist/core/p-dc3aba7c.entry.js.map +0 -1
package/hydrate/index.mjs
CHANGED
@@ -6653,7 +6653,7 @@ var descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24
|
|
6653
6653
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
6654
6654
|
</svg>`;
|
6655
6655
|
|
6656
|
-
const icDataTableCss = ":host{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}tbody{vertical-align:top}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}.cell-container{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height);--ic-typography-color:var(--ic-data-table-text-default-emphasis)}.truncation-show-hide{display:block}.cell-icon.truncation-show-hide{display:flex}.cell-container:not(.data-type-element,.truncation-show-hide){overflow-x:hidden}ic-loading-indicator{position:sticky;top:20px}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-row-container{border:var(--ic-space-1px) solid var(--ic-data-table-border)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.column-header-inner-container ic-tooltip{pointer-events:none}.column-header-inner-container ic-tooltip.show-trunc-tooltip{pointer-events:auto}.column-header-inner-container ic-tooltip .column-header-text{--ic-line-clamp:1}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-image:linear-gradient(\n var(--ic-data-table-cell-background-selected) 0 0\n );background-color:var(--ic-data-table-cell-background) !important}.table-row:hover{background-image:linear-gradient(\n var(--ic-data-table-cell-background-hover) 0 0\n );background-color:var(--ic-data-table-cell-background) !important}.table-row-selected:hover{background-image:linear-gradient(\n var(--ic-data-table-cell-background-selected-hover) 0 0\n )}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-data-table-icon-button-background-hover)}.sort-button:active{background-color:var(--ic-data-table-icon-button-background-pressed)}.sort-button svg{color:var(--ic-data-table-sort-toggle-icon)}.sort-button-unsorted svg{color:var(--ic-data-table-sort-toggle-icon-default)}.table-density-dense .column-header-inner-container,td.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious .column-header-inner-container,td.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.dummy-column-header-text{white-space:nowrap;overflow:hidden;height:0;width:-moz-fit-content;width:fit-content}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-data-table-header-background);border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);color:var(--ic-data-table-header-text)}.column-header{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important;justify-content:start !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important;justify-content:end !important}.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.cell-alignment-right.truncation-show-hide ic-typography{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important;justify-content:center !important}.table-row{background-color:var(--ic-data-table-cell-background)}.table-row:nth-child(even){background-color:var(--ic-data-table-cell-background-stripe)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-data-table-cell-keyline) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.table-cell.with-overflow{overflow:visible}.data-type-string,.data-type-address{text-align:left}.data-type-number,.data-type-date{text-align:right;justify-content:end}.cell-vertical-align-top{vertical-align:top;align-items:flex-start}.cell-vertical-align-middle{vertical-align:middle;align-items:center}.cell-vertical-align-bottom{vertical-align:bottom;align-items:flex-end}.cell-emphasis-low ic-typography{--ic-typography-color:var(--ic-data-table-text-low-emphasis)}.cell-emphasis-high ic-typography{--ic-typography-color:var(--ic-data-table-text-high-emphasis);font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-data-table-pagination-bar-background-color);border-top:var(--ic-space-1px) solid\n var(--ic-data-table-pagination-bar-keyline)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}.loading-empty{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}.updating-state{padding:0;border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow);z-index:calc(var(--ic-z-index-
|
6656
|
+
const icDataTableCss = ":host{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}tbody{vertical-align:top}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}.cell-container{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height);--ic-typography-color:var(--ic-data-table-text-default-emphasis)}.truncation-show-hide{display:block}.cell-icon.truncation-show-hide{display:flex}.cell-container:not(.data-type-element,.truncation-show-hide){overflow-x:hidden}ic-loading-indicator{position:sticky;top:20px}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-row-container{border:var(--ic-space-1px) solid var(--ic-data-table-border)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.column-header-inner-container ic-tooltip{pointer-events:none}.column-header-inner-container ic-tooltip.show-trunc-tooltip{pointer-events:auto}.column-header-inner-container ic-tooltip .column-header-text{--ic-line-clamp:1}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-image:linear-gradient(\n var(--ic-data-table-cell-background-selected) 0 0\n );background-color:var(--ic-data-table-cell-background) !important}.table-row:hover{background-image:linear-gradient(\n var(--ic-data-table-cell-background-hover) 0 0\n );background-color:var(--ic-data-table-cell-background) !important}.table-row-selected:hover{background-image:linear-gradient(\n var(--ic-data-table-cell-background-selected-hover) 0 0\n )}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-data-table-icon-button-background-hover)}.sort-button:active{background-color:var(--ic-data-table-icon-button-background-pressed)}.sort-button svg{color:var(--ic-data-table-sort-toggle-icon)}.sort-button-unsorted svg{color:var(--ic-data-table-sort-toggle-icon-default)}.table-density-dense .column-header-inner-container,td.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious .column-header-inner-container,td.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.dummy-column-header-text{white-space:nowrap;overflow:hidden;height:0;width:-moz-fit-content;width:fit-content}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-data-table-header-background);border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);color:var(--ic-data-table-header-text)}.column-header{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important;justify-content:start !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important;justify-content:end !important}.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.cell-alignment-right.truncation-show-hide ic-typography{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important;justify-content:center !important}.table-row{background-color:var(--ic-data-table-cell-background)}.table-row:nth-child(even){background-color:var(--ic-data-table-cell-background-stripe)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-data-table-cell-keyline) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.table-cell.with-overflow{overflow:visible}.data-type-string,.data-type-address{text-align:left}.data-type-number,.data-type-date{text-align:right;justify-content:end}.cell-vertical-align-top{vertical-align:top;align-items:flex-start}.cell-vertical-align-middle{vertical-align:middle;align-items:center}.cell-vertical-align-bottom{vertical-align:bottom;align-items:flex-end}.cell-emphasis-low ic-typography{--ic-typography-color:var(--ic-data-table-text-low-emphasis)}.cell-emphasis-high ic-typography{--ic-typography-color:var(--ic-data-table-text-high-emphasis);font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-data-table-pagination-bar-background-color);border-top:var(--ic-space-1px) solid\n var(--ic-data-table-pagination-bar-keyline)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}.loading-empty{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}.updating-state{padding:0;border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow);z-index:calc(var(--ic-z-index-popover) - 1);background-color:var(--ic-data-table-overlay-background);border:var(--ic-space-1px) solid var(--ic-data-table-overlay-border)}.loading.show{opacity:1}.icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}.column-header .icon>svg,.column-header ::slotted(svg){fill:var(--ic-data-table-icon)}.table-cell .icon>svg,.table-cell ::slotted(svg),.cell-description-icon>svg{fill:var(--ic-data-table-icon-default-emphasis)}.cell-emphasis-high .icon>svg,.cell-emphasis-high ::slotted(svg){fill:var(--ic-data-table-icon-high-emphasis)}.cell-emphasis-low .icon>svg,.cell-emphasis-low ::slotted(svg){fill:var(--ic-data-table-icon-low-emphasis)}.column-header-alignment-right>.icon,.row-header-alignment-right>.icon,.cell-alignment-right>.icon,.column-header-alignment-right>::slotted(svg),.row-header-alignment-right>::slotted(svg),.cell-alignment-right>::slotted(svg){margin-right:auto}.column-header-alignment-center>ic-typography,.column-header-alignment-center>.cell-text-wrapper,.row-header-alignment-right>ic-typography,.row-header-alignment-right>.cell-text-wrapper,.cell-alignment-center>ic-typography,.cell-alignment-center>.cell-text-wrapper{flex:1}.checkbox-cell{--column-width:var(--ic-space-xxl);align-content:center;border-right:none}.table-density-dense.checkbox-cell{--column-width:2.5rem}.checkbox-wrapper{display:flex;justify-content:center}.icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}.truncation-tooltip ic-typography{display:-webkit-box;line-clamp:var(--ic-line-clamp, 0);-webkit-line-clamp:var(--ic-line-clamp, 0);-webkit-box-orient:vertical;overflow:hidden}.truncation-tooltip ic-typography,.truncation-show-hide ic-typography{white-space:normal}.ic-tooltip-overflow{overflow:hidden;width:100%}.action-element{display:flex;justify-content:right}.cell-grid-wrapper{display:grid;grid-template-columns:auto auto}.loading-overlay{visibility:hidden;position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ic-data-table-loading-indicator-overlay-background);z-index:calc(var(--ic-z-index-popover) - 2);opacity:0;transition:opacity var(--ic-transition-duration-slow)}.loading-overlay.show{visibility:visible;opacity:0.6}.sr-only{position:absolute;left:-9999px}@media (prefers-reduced-motion: reduce){.loading-overlay{transition:none}}.cell-text-wrapper{overflow:hidden}.cell-text-wrapper>ic-typography{margin-left:2px}.cell-text-no-wrap{word-wrap:initial}.cell-container-with-description{display:flex;flex-direction:row}.cell-description{display:flex;flex-direction:row;margin-top:var(--ic-space-xxs);word-break:break-all}.cell-description-text{color:var(--ic-data-table-cell-data-description)}.cell-description-icon{padding-right:var(--ic-space-xs)}.cell-description-icon>svg{height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs));display:flex}@media (min-width: 577px){.column-header-inner-container{display:flex;align-items:center}}@media (max-width: 577px){.cell-icon{flex-wrap:wrap}.cell-description-icon{padding-right:0}}@media (forced-colors: active){.icon,::slotted(svg),.cell-description-icon>svg{fill:currentcolor}.sort-button svg{color:currentcolor}.table-row-selected{background-color:Highlight !important}}";
|
6657
6657
|
var IcDataTableStyle0 = icDataTableCss;
|
6658
6658
|
|
6659
6659
|
/**
|
@@ -7218,15 +7218,22 @@ class DataTable {
|
|
7218
7218
|
}
|
7219
7219
|
return {};
|
7220
7220
|
};
|
7221
|
+
this.getSlottedActionElement = (actionElement) => {
|
7222
|
+
const slotName = actionElement.getAttribute("name");
|
7223
|
+
return this.el.querySelector(`[slot="${slotName}"]`);
|
7224
|
+
};
|
7221
7225
|
this.adjustWidthForActionElement = () => {
|
7222
7226
|
var _a;
|
7223
7227
|
const elements = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".action-element");
|
7224
|
-
elements === null || elements === void 0 ? void 0 : elements.forEach((
|
7225
|
-
|
7226
|
-
|
7227
|
-
const
|
7228
|
-
|
7228
|
+
elements === null || elements === void 0 ? void 0 : elements.forEach((actionElementSpan) => {
|
7229
|
+
var _a;
|
7230
|
+
const actionElement = actionElementSpan.firstChild;
|
7231
|
+
const slottedActionElement = this.getSlottedActionElement(actionElement);
|
7232
|
+
const width = (_a = slottedActionElement === null || slottedActionElement === void 0 ? void 0 : slottedActionElement.getBoundingClientRect().width) !== null && _a !== void 0 ? _a : 0;
|
7233
|
+
const gridWrapper = actionElementSpan.closest(".cell-grid-wrapper");
|
7234
|
+
if (gridWrapper) {
|
7229
7235
|
gridWrapper.style.gridTemplateColumns = `auto calc(${width}px + var(--ic-space-xs))`;
|
7236
|
+
}
|
7230
7237
|
});
|
7231
7238
|
};
|
7232
7239
|
this.createCellContent = (columnProps, cell, cellSlotName, rowOptions, hasIcon, cellValue, rowEmphasis, currentRowHeight) => {
|
@@ -7291,7 +7298,8 @@ class DataTable {
|
|
7291
7298
|
["row-header-sticky"]: this.stickyRowHeaders,
|
7292
7299
|
} }, cellValue("title")));
|
7293
7300
|
}
|
7294
|
-
const
|
7301
|
+
const cellSlotName = `${column === null || column === void 0 ? void 0 : column.key}-${rowIndex}`;
|
7302
|
+
const CellContent = this.createCellContent(column, cell, cellSlotName, rowOptions, this.isObject(cell) && Object.keys(cell).includes("icon"), cellValue, rowEmphasis, currentRowHeight || undefined);
|
7295
7303
|
if (rowKeys[index] !== "rowOptions") {
|
7296
7304
|
return (hAsync("td", { class: {
|
7297
7305
|
["table-cell"]: true,
|
@@ -7304,12 +7312,7 @@ class DataTable {
|
|
7304
7312
|
!!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
|
7305
7313
|
!!rowAlignment ||
|
7306
7314
|
!!this.getCellAlignment(cell, "vertical"),
|
7307
|
-
}, style: Object.assign({}, this.getColumnWidth(column.columnWidth)) }, this.
|
7308
|
-
Object.keys(cell).includes("actionElement") ? (hAsync("div", { class: "cell-grid-wrapper" }, CellContent, hAsync("span", { class: "action-element", innerHTML: cellValue("actionElement"),
|
7309
|
-
// eslint-disable-next-line react/jsx-no-bind
|
7310
|
-
onClick: cell.actionOnClick
|
7311
|
-
? (event) => this.handleClick(event, cell.actionOnClick)
|
7312
|
-
: undefined }))) : (CellContent)));
|
7315
|
+
}, style: Object.assign({}, this.getColumnWidth(column.columnWidth)) }, isSlotUsed(this.el, `${cellSlotName}-action-element`) ? (hAsync("div", { class: "cell-grid-wrapper" }, CellContent, hAsync("span", { class: "action-element" }, hAsync("slot", { name: `${cellSlotName}-action-element` })))) : (CellContent)));
|
7313
7316
|
}
|
7314
7317
|
}
|
7315
7318
|
});
|
@@ -7613,9 +7616,14 @@ class DataTable {
|
|
7613
7616
|
this.fixCellTooltip(slottedEl);
|
7614
7617
|
});
|
7615
7618
|
});
|
7616
|
-
(_d = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelectorAll(".action-element")) === null || _d === void 0 ? void 0 : _d.forEach((actionElementSpan) =>
|
7619
|
+
(_d = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelectorAll(".action-element")) === null || _d === void 0 ? void 0 : _d.forEach((actionElementSpan) => {
|
7620
|
+
const actionElement = actionElementSpan.firstChild;
|
7621
|
+
const slottedActionElement = this.getSlottedActionElement(actionElement);
|
7622
|
+
if (slottedActionElement) {
|
7623
|
+
this.fixCellTooltip(slottedActionElement);
|
7624
|
+
}
|
7625
|
+
});
|
7617
7626
|
};
|
7618
|
-
this.handleClick = (event, callback) => callback(event);
|
7619
7627
|
this.renderTableBody = (loading, data, overlay) => {
|
7620
7628
|
if (!(data === null || data === void 0 ? void 0 : data.length))
|
7621
7629
|
return;
|
@@ -7997,22 +8005,22 @@ class DataTable {
|
|
7997
8005
|
? "deselect all"
|
7998
8006
|
: "select all remaining"
|
7999
8007
|
: "select all";
|
8000
|
-
return (hAsync(Host, { key: '
|
8008
|
+
return (hAsync(Host, { key: '84f4f415f8a80939c2b7dc2f6272a01fc43b5aab', style: Object.assign({}, this.setTableDimensions()), class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '9b81dce430b774d76b458157946d8bcdcd8163d1', class: "table-container" }, isSlotUsed(this.el, "title-bar") && hAsync("slot", { key: '41f557715b7dd1835f4760d711dd14a90fc9e6a5', name: "title-bar" }), hAsync("div", { key: '2b668ed233252e678ec6e35cb94b3cfc1a99a277', class: {
|
8001
8009
|
["table-row-container"]: true,
|
8002
8010
|
scrollable,
|
8003
|
-
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '
|
8011
|
+
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '56bef9d91412d8b2240680a85a2b6eb23dd5dc46', style: {
|
8004
8012
|
"--table-layout": tableLayout,
|
8005
|
-
} }, hAsync("caption", { key: '
|
8013
|
+
} }, hAsync("caption", { key: '412993cdb9d8cdbb7fe44700a0a503b6c019274a', class: "table-caption" }, caption), !hideColumnHeaders && (hAsync("thead", { key: 'b8d4ffb763d44d06727608adfbd58c9d2a8a0e3d', class: {
|
8006
8014
|
["column-header-sticky"]: stickyColumnHeaders,
|
8007
8015
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
8008
|
-
} }, hAsync("tr", { key: '
|
8016
|
+
} }, hAsync("tr", { key: '63c8fc7587eb5e5912eec2f18efaae0c37a33630' }, rowSelection && data && (hAsync("th", { key: 'cef5b67389222dd6be1ab940c66df75519017d1e', class: {
|
8009
8017
|
"column-header": true,
|
8010
8018
|
"checkbox-cell": true,
|
8011
8019
|
"updating-state-headers": updating && !loading,
|
8012
8020
|
[`table-density-${density}`]: this.notDefaultDensity(),
|
8013
|
-
} }, hAsync("div", { key: '
|
8021
|
+
} }, hAsync("div", { key: '095be9ca1da7f4b977264b41b9f206061ae484c8', class: "checkbox-wrapper" }, hAsync("ic-checkbox", { key: 'b2ada1483434907c07daf7c1854c14f499cafba5', class: "ic-data-table-checkbox", checked: rowsSelected && allRowsSelected, disabled: updating || loading, hideLabel: true, indeterminate: rowsSelected && !allRowsSelected, label: `${caption} ${headerCheckboxLabelState} rows`, nativeIndeterminateBehaviour: true, onIcCheck: () => selectAllRows(), size: density === "dense" ? "small" : "medium", value: caption })))), createColumnHeaders()))), updating &&
|
8014
8022
|
!loading &&
|
8015
|
-
(hideColumnHeaders ? (hAsync("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), this.renderEmptyState(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), hAsync("div", { key: '
|
8023
|
+
(hideColumnHeaders ? (hAsync("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), this.renderEmptyState(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), hAsync("div", { key: '0b4279d5c29aa8a74dfbfc60a5d6104990bfea66', "aria-live": "assertive", class: "sr-only" }, this.renderAriaLiveLoading()), this.renderLoadingIndicator(loading, loadingOptions), (showPagination || isSlotUsed(this.el, "pagination-bar")) && (hAsync("div", { key: 'ee2c9811630b1c64071e8071ba15c0265a78ee00', class: "pagination-container" }, isSlotUsed(this.el, "pagination-bar") ? (hAsync("slot", { name: "pagination-bar" })) : (hAsync("ic-pagination-bar", { alignment: paginationBarOptions.alignment, hideAllFromItemsPerPage: paginationBarOptions.hideAllFromItemsPerPage, hideRangeLabel: paginationBarOptions.hideRangeLabel, itemLabel: paginationBarOptions.itemLabel, itemsPerPageOptions: paginationBarOptions.itemsPerPageOptions, monochrome: paginationBarOptions.monochrome, pageLabel: paginationBarOptions.pageLabel, rangeLabelType: paginationBarOptions.rangeLabelType, selectedItemsPerPage: paginationBarOptions.selectedItemsPerPage, selectItemsPerPageOnEnter: paginationBarOptions.selectItemsPerPageOnEnter, setToFirstPageOnPaginationChange: paginationBarOptions.setToFirstPageOnPaginationChange, showGoToPageControl: paginationBarOptions.showGoToPageControl, showItemsPerPageControl: paginationBarOptions.showItemsPerPageControl, theme: theme, totalItems: (_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : 0, type: paginationBarOptions.type })))), sortable && (hAsync("div", { key: 'dbe84358bdf8715360f2fd5e810e24878e877a7a', class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
8016
8024
|
? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
|
8017
8025
|
sortedColumn} sorted ${sortedColumnOrder}`
|
8018
8026
|
: "table unsorted")))));
|
@@ -9707,6 +9715,10 @@ class DatePicker {
|
|
9707
9715
|
* If `true`, days outside the current month will be visible in the date picker.
|
9708
9716
|
*/
|
9709
9717
|
this.showDaysOutsideMonth = true;
|
9718
|
+
/**
|
9719
|
+
* If 'true', the 'X' button on the date input will be visible, which clears the field.
|
9720
|
+
*/
|
9721
|
+
this.showClearButton = true;
|
9710
9722
|
/**
|
9711
9723
|
* If `true`, the `Clear` button on the date picker will be visible.
|
9712
9724
|
*/
|
@@ -10415,6 +10427,9 @@ class DatePicker {
|
|
10415
10427
|
if (this.required) {
|
10416
10428
|
inputProps.required = this.required;
|
10417
10429
|
}
|
10430
|
+
if (this.showClearButton !== null) {
|
10431
|
+
inputProps.showClearButton = this.showClearButton;
|
10432
|
+
}
|
10418
10433
|
if (this.size !== "medium") {
|
10419
10434
|
inputProps.size = this.size;
|
10420
10435
|
}
|
@@ -10591,33 +10606,33 @@ class DatePicker {
|
|
10591
10606
|
yesterday.setDate(minDate.getDate() - 1);
|
10592
10607
|
minDay = yesterday;
|
10593
10608
|
}
|
10594
|
-
return (hAsync(Host, { key: '
|
10609
|
+
return (hAsync(Host, { key: '531d49da81ba4f0d37c6a3644200e2b4354ef362', onKeyDown: this.keyDownHandler, class: {
|
10595
10610
|
[`ic-date-picker-${size}`]: true,
|
10596
10611
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
10597
|
-
} }, hAsync("div", { key: '
|
10612
|
+
} }, hAsync("div", { key: '4481290ae95d3ae086e0d50662c200b292c082ac', class: "date-input-container" }, hAsync("ic-date-input", Object.assign({ key: '56558836ac8b41e61149b007ac1cf16b506f8998', ref: (el) => (this.inputEl = el) }, dateInputProps), hAsync("slot", { key: 'de8165f61fa5333e8ca05ed0a18efbcb22578e1f', name: "helper-text", slot: "helper-text" }))), calendarOpen && (hAsync("div", { key: 'b5e7f219cc50107b5360779534094826ee4efeb5' }, hAsync("span", { key: 'cebf92d9beea25c39fd0bf64ff376015ea416698', id: "dialog-description", class: "sr-only" }, dialogDescription), hAsync("div", { key: '6ab22c6b303a6b91744584607fc6ad1fb349d035', role: "dialog", "aria-modal": "true", "aria-label": dialogLabel, "aria-describedBy": "dialog-description", class: {
|
10598
10613
|
"calendar-container": true,
|
10599
10614
|
above: this.showPickerAbove,
|
10600
|
-
}, onMouseDown: this.handleCalendarMouseDown, onClick: this.handleCalendarClick }, hAsync("span", { key: '
|
10615
|
+
}, onMouseDown: this.handleCalendarMouseDown, onClick: this.handleCalendarClick }, hAsync("span", { key: '1d3e11ab36f7fff14524586a982ddd457e4509a1', ref: (el) => (this.liveRegionEl = el), id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("div", { key: '499133f3a2f1cf5a79c7f7b9d695959d5ee76f0d', class: {
|
10601
10616
|
"month-year-nav-container": true,
|
10602
|
-
} }, hAsync("div", { key: '
|
10617
|
+
} }, hAsync("div", { key: '519bf58003c5ca9f5bccc59e7c31a25c096e340d', class: "month-year-nav" }, this.previousMonthButton(), hAsync("span", { key: 'a4e70c8464318199e86df119481d5f7519e8c8ee', id: "select-month-hint", "aria-hidden": "true" }, monthButtonText), hAsync("ic-button", { key: '3c91455809a1630355b0f9f1e757da9e15ac04b6', ref: (el) => (this.monthButtonEl = el), size: size, class: "month-picker-button", "aria-haspopup": "menu", "aria-expanded": monthPickerVisible ? "true" : "false", "full-width": "true", variant: "tertiary", "aria-label": monthLabel, "aria-describedby": "select-month-hint", onKeyDown: this.monthButtonKeyDownHandler, onClick: this.monthButtonClickHandler }, monthNames[monthInView]), this.nextMonthButton()), hAsync("div", { key: '8a9ba32ac36960d01070cab55953ff1bee71fa89', class: "month-year-nav" }, this.previousYearButton(), hAsync("span", { key: '038dfdff3ab2164d6eb2a18803f96a293ee26503', id: "select-year-hint", "aria-hidden": "true" }, yearButtonText), hAsync("ic-button", { key: '3a6fd2d52d8d3f52229aa08fc193ea5094825e26', ref: (el) => (this.yearButtonEl = el), size: size, class: "year-picker-button", "aria-haspopup": "menu", "aria-expanded": yearPickerVisible ? "true" : "false", "full-width": "true", variant: "tertiary", "aria-label": yearLabel, "aria-describedby": "select-year-hint", onKeyDown: this.yearButtonKeyDownHandler, onClick: this.yearButtonClickHandler }, this.yearInView), this.nextYearButton())), !(monthPickerVisible || yearPickerVisible) && (hAsync("div", { key: '78ca07c7e9b5b4737f6bef0fa40c9fb6fdeeb71c', class: {
|
10603
10618
|
calendar: true,
|
10604
10619
|
hidden: monthPickerVisible || yearPickerVisible,
|
10605
|
-
}, onKeyDown: this.handleCalendarKeyDown }, hAsync("div", { key: '
|
10620
|
+
}, onKeyDown: this.handleCalendarKeyDown }, hAsync("div", { key: 'f740560dfc757dce70213118d6a0faacd415e188', class: "weekdays", "aria-hidden": "true" }, orderedDaysOfWeek.map((dayName) => {
|
10606
10621
|
const header = size === "small" ? dayName.charAt(0) : dayName;
|
10607
10622
|
return (hAsync("div", { class: "calendar-day-header" }, hAsync("ic-typography", { variant: "caption" }, header)));
|
10608
|
-
})), hAsync("div", { key: '
|
10623
|
+
})), hAsync("div", { key: 'c77c16fd12c3deeb1891a712ba709e6f29c970b5', class: "calendar-days-container" }, this.currMonthView.map((day) => {
|
10609
10624
|
var _a;
|
10610
10625
|
return (hAsync(DayButton, { day: day, disableDay: (_a = this.disableDays) === null || _a === void 0 ? void 0 : _a.includes(Number(day.getDay())), today: dateMatches(day, this.today), selected: dateMatches(day, this.selectedDate), focussed: dateMatches(day, this.focussedDate), inRange: dateInRange(day, minDay, maxDate), monthInView: monthInView, onSelectDay: this.handleSelectDay, focussedDayRef: this.setFocussedDayEl, onFocusDay: this.onDayButtonFocusHandler, onBlurDay: this.onDayButtonBlurHandler, showDaysOutsideMonth: this.showDaysOutsideMonth }));
|
10611
|
-
})))), hAsync("div", { key: '
|
10626
|
+
})))), hAsync("div", { key: '3e2853724e6401a48c7307940d00a43f64cd941a', class: {
|
10612
10627
|
"month-picker-container": true,
|
10613
10628
|
hidden: !monthPickerVisible,
|
10614
|
-
} }, monthPickerVisible && (hAsync(MonthPicker, { key: '
|
10629
|
+
} }, monthPickerVisible && (hAsync(MonthPicker, { key: 'f3434bb526e456e46d219e7204f8e92a9c91c4b6', size: size, onSelectMonth: this.handleSelectMonth, monthInView: monthInView, focussedMonth: focussedMonth, onKeyDown: this.monthPickerKeyDownHandler, focussedMonthRef: this.setFocussedMonthEl, minDate: minDate, maxDate: maxDate, yearInView: yearInView }))), hAsync("div", { key: '540673c1426c75f0b7b2d96a07f8437fca64457a', class: {
|
10615
10630
|
"year-picker-container": true,
|
10616
10631
|
hidden: !yearPickerVisible,
|
10617
|
-
} }, yearPickerVisible && (hAsync(YearPicker, { key: '
|
10632
|
+
} }, yearPickerVisible && (hAsync(YearPicker, { key: 'd41bc6ef23d9112681165fcd423cd6fa290bce63', decadeView: decadeView, size: size, focussedYear: focussedYear, onSelectYear: this.handleSelectYear, onKeyDown: this.yearPickerKeyDownHandler, onFocusYear: this.onYearButtonFocusHandler, onBlurYear: this.onYearButtonBlurHandler, yearInView: yearInView, minDate: minDate, maxDate: maxDate, focussedYearRef: this.setFocussedYearEl }))), hAsync("div", { key: '2cbd003e0f17165e1a9ce1c2b84eb4cff4399a72', class: {
|
10618
10633
|
"bottom-buttons": true,
|
10619
10634
|
"no-today": !showPickerTodayButton,
|
10620
|
-
} }, showPickerTodayButton && (hAsync("ic-button", { key: '
|
10635
|
+
} }, showPickerTodayButton && (hAsync("ic-button", { key: '524161f633a38ed896c1416ca2b21f4f7cb09939', id: "today-button", variant: "tertiary", ref: (el) => (this.todayButtonEl = el), size: size, "aria-label": "Navigate to current date", onClick: this.todayButtonClickHandler, onKeyDown: this.todayButtonKeyDownHandler, disabled: this.isCurrentMonth() }, "Go to today")), showPickerClearButton && (hAsync("ic-button", { key: 'a4525f0a27fe97bfd2ae01ef0d9205e596a09b29', id: "clear-button", "aria-label": "clear selected date", ref: (el) => (this.clearButtonEl = el), variant: "tertiary", size: size, onClick: this.clearButtonClickHandler, onKeyDown: this.clearButtonKeyDownHandler, disabled: this.value === "" ||
|
10621
10636
|
this.value === null ||
|
10622
10637
|
this.value === undefined }, "Clear"))))))));
|
10623
10638
|
}
|
@@ -10664,6 +10679,7 @@ class DatePicker {
|
|
10664
10679
|
"openAtDate": [1, "open-at-date"],
|
10665
10680
|
"required": [4],
|
10666
10681
|
"showDaysOutsideMonth": [4, "show-days-outside-month"],
|
10682
|
+
"showClearButton": [4, "show-clear-button"],
|
10667
10683
|
"showPickerClearButton": [4, "show-picker-clear-button"],
|
10668
10684
|
"showPickerTodayButton": [4, "show-picker-today-button"],
|
10669
10685
|
"size": [1],
|
@@ -12253,7 +12269,7 @@ class Link {
|
|
12253
12269
|
}; }
|
12254
12270
|
}
|
12255
12271
|
|
12256
|
-
const icLoadingIndicatorCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--linear-border-radius:0.25rem;--inner-color:var(--ic-loading-indicator-inner-color);--outer-color:var(--ic-loading-indicator-outer-color);--label-color:var(--ic-loading-indicator-label-color);--margin:none;--linear-line-height:var(--ic-space-xs)}:host(.ic-loading-indicator-monochrome){--inner-color:var(--ic-loading-indicator-inner-color-monochrome);--outer-color:var(--ic-loading-indicator-outer-color-monochrome);--label-color:var(--ic-loading-indicator-label-color-monochrome)}.ic-loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center}:host([size=\"small\"]){--circular-diameter:2.5rem;--linear-line-height:var(--ic-space-xxs)}:host([size=\"medium\"]){--circular-diameter:5rem}:host([size=\"large\"]){--circular-diameter:7.5rem}:host([size=\"icon\"]){display:inline-block;--margin:var(--ic-space-xxxs);--circular-diameter:1.25rem}:host(.ic-loading-indicator-label){--margin:0 0 var(--ic-space-xs) 0}.ic-loading-label{--ic-typography-color:var(--label-color);margin-left:var(--label-margin-left)}.ic-loading-circular-outer{height:var(--circular-diameter);width:var(--circular-diameter)}.ic-loading-circular-outer.indeterminate{animation:circular-animation 1s linear;animation-iteration-count:infinite}@keyframes circular-animation{100%{transform:rotate(360deg)}}.ic-loading-circular-outer,.ic-loading-linear-outer{margin:var(--margin)}.ic-loading-linear-outer{background-color:var(--outer-color);height:var(--linear-line-height);width:100%;border-radius:var(--linear-border-radius);overflow:hidden}.ic-loading-linear-inner{position:relative;height:100%;background-color:var(--inner-color);border-radius:var(--linear-border-radius)}.indeterminate>.ic-loading-linear-inner{animation:linear-animation 2s infinite}.determinate>.ic-loading-linear-inner{transition:width 0.5s;width:var(--linear-width)}:host(.ic-loading-indicator-full-width){--linear-border-radius:none}@keyframes linear-animation{0%{width:0%;left:-1%}25%{width:0%;left:-1%}50%{width:101%;left:-1%}75%{width:0%;left:101%}100%{width:0%;left:101%}}.ic-loading-circular-svg{position:relative;width:100%;height:100%;transform:rotate(-90deg)}.ic-loading-circular-svg circle{width:100%;height:100%;fill:none;stroke:var(--compact-step-outer-color, var(--outer-color));stroke-width:var(--circular-line-width);stroke-linecap:round}.ic-loading-circular-svg circle:nth-child(2){--circular-indeterminate:calc(\n (0.25 * var(--stroke-dasharray)) - var(--stroke-dasharray)\n );stroke-dasharray:var(--stroke-dasharray), var(--stroke-dasharray);stroke-dashoffset:var(--stroke-dashoffset, var(--circular-indeterminate));stroke:var(--compact-step-inner-color, var(--inner-color))}.inner-label{height:100%;display:grid}.inner-label .ic-loading-circular-svg,.inner-text{grid-column:1;grid-row:1}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:var(--ic-architectural-300)}.inner-text{display:flex;align-items:center;justify-content:center;width:var(--ic-space-lg);height:inherit;overflow:hidden;margin:auto;--ic-typography-color:var(\n --ic-step-indicator-text-current,\n var(--ic-status-info-default)\n )}:host(.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-step-indicator-text-disabled)}:host(.ic-loading-indicator-light.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-architectural-400)}@media (forced-colors: active){.indeterminate>.ic-loading-circular-inner{forced-color-adjust:none}.ic-loading-linear-outer{border:var(--ic-border-hc)}.ic-loading-linear-inner{background-color:canvastext}.ic-loading-circular-svg circle{stroke:Background}.ic-loading-circular-svg circle:nth-child(2){stroke:canvastext}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:GrayText}}";
|
12272
|
+
const icLoadingIndicatorCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--linear-border-radius:0.25rem;--inner-color:var(--ic-loading-indicator-inner-color);--outer-color:var(--ic-loading-indicator-outer-color);--label-color:var(--ic-loading-indicator-label-color);--margin:none;--linear-line-height:var(--ic-space-xs)}:host(.ic-loading-indicator-monochrome){--inner-color:var(--ic-loading-indicator-inner-color-monochrome);--outer-color:var(--ic-loading-indicator-outer-color-monochrome);--label-color:var(--ic-loading-indicator-label-color-monochrome)}.ic-loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center}:host([size=\"small\"]){--circular-diameter:2.5rem;--linear-line-height:var(--ic-space-xxs)}:host([size=\"medium\"]){--circular-diameter:5rem}:host([size=\"large\"]){--circular-diameter:7.5rem}:host([size=\"icon\"]){display:inline-block;--margin:var(--ic-space-xxxs);--circular-diameter:1.25rem}:host(.ic-loading-indicator-label){--margin:0 0 var(--ic-space-xs) 0}.ic-loading-label{--ic-typography-color:var(--label-color);margin-left:var(--label-margin-left)}.ic-loading-circular-outer{height:var(--circular-diameter);width:var(--circular-diameter)}.ic-loading-circular-outer.indeterminate{animation:circular-animation 1s linear;animation-iteration-count:infinite}@keyframes circular-animation{100%{transform:rotate(360deg)}}.ic-loading-circular-outer,.ic-loading-linear-outer{margin:var(--margin)}.ic-loading-linear-outer{background-color:var(--outer-color);height:var(--linear-line-height);width:100%;border-radius:var(--linear-border-radius);overflow:hidden}.ic-loading-circular-outer[aria-valuenow=\"0\"] .ic-loading-circular-inner,.ic-loading-linear-outer[aria-valuenow=\"0\"] .ic-loading-linear-inner{--inner-color:var(--outer-color)}.ic-loading-linear-inner{position:relative;height:100%;background-color:var(--inner-color);border-radius:var(--linear-border-radius)}.indeterminate>.ic-loading-linear-inner{animation:linear-animation 2s infinite}.determinate>.ic-loading-linear-inner{transition:width 0.5s;width:var(--linear-width)}:host(.ic-loading-indicator-full-width){--linear-border-radius:none}@keyframes linear-animation{0%{width:0%;left:-1%}25%{width:0%;left:-1%}50%{width:101%;left:-1%}75%{width:0%;left:101%}100%{width:0%;left:101%}}.ic-loading-circular-svg{position:relative;width:100%;height:100%;transform:rotate(-90deg)}.ic-loading-circular-svg circle{width:100%;height:100%;fill:none;stroke:var(--compact-step-outer-color, var(--outer-color));stroke-width:var(--circular-line-width);stroke-linecap:round}.ic-loading-circular-svg circle:nth-child(2){--circular-indeterminate:calc(\n (0.25 * var(--stroke-dasharray)) - var(--stroke-dasharray)\n );stroke-dasharray:var(--stroke-dasharray), var(--stroke-dasharray);stroke-dashoffset:var(--stroke-dashoffset, var(--circular-indeterminate));stroke:var(--compact-step-inner-color, var(--inner-color))}.inner-label{height:100%;display:grid}.inner-label .ic-loading-circular-svg,.inner-text{grid-column:1;grid-row:1}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:var(--ic-architectural-300)}.inner-text{display:flex;align-items:center;justify-content:center;width:var(--ic-space-lg);height:inherit;overflow:hidden;margin:auto;--ic-typography-color:var(\n --ic-step-indicator-text-current,\n var(--ic-status-info-default)\n )}:host(.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-step-indicator-text-disabled)}:host(.ic-loading-indicator-light.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-architectural-400)}@media (forced-colors: active){.indeterminate>.ic-loading-circular-inner{forced-color-adjust:none}.ic-loading-linear-outer{border:var(--ic-border-hc)}.ic-loading-linear-inner{background-color:canvastext}.ic-loading-circular-svg circle{stroke:Background}.ic-loading-circular-svg circle:nth-child(2){stroke:canvastext}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:GrayText}}";
|
12257
12273
|
var IcLoadingIndicatorStyle0 = icLoadingIndicatorCss;
|
12258
12274
|
|
12259
12275
|
const LOADING_INDICATOR_WIDTHS = {
|
@@ -14311,9 +14327,6 @@ class Menu {
|
|
14311
14327
|
this.hasPreviouslyBlurred = false;
|
14312
14328
|
this.hasTimedOut = false;
|
14313
14329
|
this.isLoading = false;
|
14314
|
-
this.isMultiSelect = false;
|
14315
|
-
this.isSearchBar = false;
|
14316
|
-
this.isSearchableSelect = false;
|
14317
14330
|
this.lastOptionSelected = null; // Index of last option selected
|
14318
14331
|
this.lastOptionFocused = null; // Index of last option focused
|
14319
14332
|
this.multiOptionClicked = null;
|
@@ -14346,6 +14359,18 @@ class Menu {
|
|
14346
14359
|
* The custom name for the label field for IcMenuOption.
|
14347
14360
|
*/
|
14348
14361
|
this.labelField = "label";
|
14362
|
+
/**
|
14363
|
+
* @internal - flag to specify if menu is in a ic-select multiple.
|
14364
|
+
*/
|
14365
|
+
this.multiSelect = false;
|
14366
|
+
/**
|
14367
|
+
* @internal - flag to specify if menu is in a searchable ic-select.
|
14368
|
+
*/
|
14369
|
+
this.searchableSelect = false;
|
14370
|
+
/**
|
14371
|
+
* @internal - flag to specify if menu is in a ic-search-bar.
|
14372
|
+
*/
|
14373
|
+
this.searchBar = false;
|
14349
14374
|
/**
|
14350
14375
|
* Specify the mode search bar uses to search. `navigation` allows for quick lookups of a set of values, `query` allows for more general searches.
|
14351
14376
|
*/
|
@@ -14378,7 +14403,7 @@ class Menu {
|
|
14378
14403
|
this.preventClickOpen = false;
|
14379
14404
|
}
|
14380
14405
|
// Reset optionHighlighted so previously highlighted option doesn't get reselected when Enter pressed
|
14381
|
-
if (this.
|
14406
|
+
if (this.multiSelect) {
|
14382
14407
|
this.optionHighlighted = undefined;
|
14383
14408
|
this.multiOptionClicked = null;
|
14384
14409
|
}
|
@@ -14412,27 +14437,12 @@ class Menu {
|
|
14412
14437
|
});
|
14413
14438
|
}
|
14414
14439
|
};
|
14415
|
-
this.getParentEl = (parent) => {
|
14416
|
-
if (parent.tagName === this.SEARCH_BAR_TAG) {
|
14417
|
-
this.isSearchBar = true;
|
14418
|
-
}
|
14419
|
-
else if (parent.tagName === "IC-SELECT") {
|
14420
|
-
if (parent.getAttribute("searchable") !== null &&
|
14421
|
-
parent.getAttribute("searchable") !== undefined) {
|
14422
|
-
this.isSearchableSelect = true;
|
14423
|
-
}
|
14424
|
-
else if (parent.getAttribute("multiple") !== null &&
|
14425
|
-
parent.getAttribute("multiple") !== undefined) {
|
14426
|
-
this.isMultiSelect = true;
|
14427
|
-
}
|
14428
|
-
}
|
14429
|
-
};
|
14430
14440
|
// Open menu when up or down arrow keys are pressed
|
14431
14441
|
this.arrowBehaviour = (event) => {
|
14432
14442
|
event.preventDefault();
|
14433
14443
|
this.handleMenuChange(true);
|
14434
14444
|
};
|
14435
|
-
this.getMenuOptions = () => this.
|
14445
|
+
this.getMenuOptions = () => this.searchBar ? this.options : this.ungroupedOptions;
|
14436
14446
|
// Set option that is focused and so should show focus state
|
14437
14447
|
this.setHighlightedOption = (highlightedIndex) => {
|
14438
14448
|
const menuOptions = this.getMenuOptions();
|
@@ -14470,11 +14480,11 @@ class Menu {
|
|
14470
14480
|
if (!this.isLoading && !this.hasTimedOut) {
|
14471
14481
|
this.keyboardNav = true;
|
14472
14482
|
}
|
14473
|
-
const isOpen = this.
|
14483
|
+
const isOpen = this.searchBar || this.searchableSelect || this.open;
|
14474
14484
|
if (isOpen) {
|
14475
14485
|
if (highlightedOptionIndex >= 0) {
|
14476
14486
|
if (options[highlightedOptionIndex] !== undefined) {
|
14477
|
-
if (this.
|
14487
|
+
if (this.searchBar &&
|
14478
14488
|
options[highlightedOptionIndex].disabled === true) {
|
14479
14489
|
this.disabledOptionSelected = true;
|
14480
14490
|
}
|
@@ -14519,7 +14529,7 @@ class Menu {
|
|
14519
14529
|
const clickedMultiOptionIndex = menuOptions.findIndex((option) => option[this.valueField] === this.multiOptionClicked);
|
14520
14530
|
const getOptionId = (index) => { var _a; return (_a = Array.from(this.host.querySelectorAll("li"))[index]) === null || _a === void 0 ? void 0 : _a.id; };
|
14521
14531
|
// Space press should be equivalent to Enter when multi-select
|
14522
|
-
if (event.key === " " && this.
|
14532
|
+
if (event.key === " " && this.multiSelect) {
|
14523
14533
|
this.handleOptionSelect(event, highlightedOptionIndex);
|
14524
14534
|
}
|
14525
14535
|
else {
|
@@ -14550,7 +14560,7 @@ class Menu {
|
|
14550
14560
|
this.handleSingleShiftSelect(event, 0, menuOptions);
|
14551
14561
|
}
|
14552
14562
|
// Deselect currently selected options if arrow was pressed for first time after shift is held
|
14553
|
-
if (this.
|
14563
|
+
if (this.multiSelect && this.shiftPressed) {
|
14554
14564
|
this.deselectSelectedOptions([
|
14555
14565
|
highlightedOptionIndex,
|
14556
14566
|
this.getOptionHighlightedIndex(),
|
@@ -14589,7 +14599,7 @@ class Menu {
|
|
14589
14599
|
this.handleSingleShiftSelect(event, highlightedOptionIndex - 1, menuOptions);
|
14590
14600
|
}
|
14591
14601
|
// Deselect currently selected options if arrow was pressed for first time after shift is held
|
14592
|
-
if (this.
|
14602
|
+
if (this.multiSelect && this.shiftPressed) {
|
14593
14603
|
this.deselectSelectedOptions([
|
14594
14604
|
highlightedOptionIndex,
|
14595
14605
|
this.getOptionHighlightedIndex(),
|
@@ -14637,7 +14647,7 @@ class Menu {
|
|
14637
14647
|
if (!isKeyboardCombination) {
|
14638
14648
|
this.keyboardNav = false;
|
14639
14649
|
}
|
14640
|
-
if (this.
|
14650
|
+
if (this.searchBar || this.searchableSelect) {
|
14641
14651
|
break;
|
14642
14652
|
}
|
14643
14653
|
else {
|
@@ -14675,10 +14685,10 @@ class Menu {
|
|
14675
14685
|
if (event.key === "Shift") {
|
14676
14686
|
this.shiftPressed = true;
|
14677
14687
|
}
|
14678
|
-
if (this.
|
14688
|
+
if (this.searchBar) {
|
14679
14689
|
this.keyboardNav = true;
|
14680
14690
|
}
|
14681
|
-
if (this.
|
14691
|
+
if (this.multiSelect) {
|
14682
14692
|
if (this.open && !event.shiftKey && this.selectAllButton) {
|
14683
14693
|
event.preventDefault();
|
14684
14694
|
this.selectAllButton.focus(); // Move focus to select all button instead of focused option
|
@@ -14721,7 +14731,7 @@ class Menu {
|
|
14721
14731
|
};
|
14722
14732
|
this.handleOptionClick = (event) => {
|
14723
14733
|
const { value, label } = event.target.dataset;
|
14724
|
-
if (this.
|
14734
|
+
if (this.multiSelect) {
|
14725
14735
|
const menuOptions = this.getMenuOptions();
|
14726
14736
|
const selectedOptionIndex = menuOptions.findIndex((option) => option.value === value);
|
14727
14737
|
this.handleOptionSelect(event, selectedOptionIndex, true);
|
@@ -14763,7 +14773,7 @@ class Menu {
|
|
14763
14773
|
this.lastOptionFocused = null;
|
14764
14774
|
this.lastOptionSelected = null;
|
14765
14775
|
}
|
14766
|
-
if (!this.
|
14776
|
+
if (!this.searchBar)
|
14767
14777
|
this.hasPreviouslyBlurred = !!event.relatedTarget;
|
14768
14778
|
};
|
14769
14779
|
this.handleMouseDown = (event) => {
|
@@ -14773,7 +14783,7 @@ class Menu {
|
|
14773
14783
|
if (this.activationType === "automatic") {
|
14774
14784
|
this.autoSetValueOnMenuKeyDown(event);
|
14775
14785
|
}
|
14776
|
-
else if (this.activationType === "manual" && !this.
|
14786
|
+
else if (this.activationType === "manual" && !this.searchBar) {
|
14777
14787
|
this.manualSetInputValueKeyboardOpen(event);
|
14778
14788
|
}
|
14779
14789
|
};
|
@@ -14816,7 +14826,7 @@ class Menu {
|
|
14816
14826
|
// When shift key is being used to select contiguous options one by one on a multi-select
|
14817
14827
|
// I.e. holding shift and pressing up and down arrow keys
|
14818
14828
|
this.handleSingleShiftSelect = (event, optionToSelectIndex, options) => {
|
14819
|
-
if (this.
|
14829
|
+
if (this.multiSelect &&
|
14820
14830
|
event.shiftKey &&
|
14821
14831
|
!this.isOptionSelected(optionToSelectIndex)) {
|
14822
14832
|
this.selectHighlightedOption(options, optionToSelectIndex);
|
@@ -15066,9 +15076,7 @@ class Menu {
|
|
15066
15076
|
this.loadUngroupedOptions();
|
15067
15077
|
}
|
15068
15078
|
connectedCallback() {
|
15069
|
-
if (this.
|
15070
|
-
this.getParentEl(this.parentEl);
|
15071
|
-
if (this.isSearchBar) {
|
15079
|
+
if (this.searchBar) {
|
15072
15080
|
if (this.searchMode === "navigation")
|
15073
15081
|
this.setHighlightedOption(0);
|
15074
15082
|
this.initialOptionsListRender = true;
|
@@ -15089,7 +15097,7 @@ class Menu {
|
|
15089
15097
|
this.isLoading = (_d = this.options) === null || _d === void 0 ? void 0 : _d.some((opt) => opt.loading);
|
15090
15098
|
}
|
15091
15099
|
componentDidLoad() {
|
15092
|
-
if (this.
|
15100
|
+
if (this.searchBar &&
|
15093
15101
|
this.parentEl.disableAutoFiltering) {
|
15094
15102
|
this.focusFromSearchKeypress = true;
|
15095
15103
|
}
|
@@ -15111,7 +15119,7 @@ class Menu {
|
|
15111
15119
|
this.keyboardNav &&
|
15112
15120
|
inputValueInOptions &&
|
15113
15121
|
this.autofocusOnSelected &&
|
15114
|
-
!this.
|
15122
|
+
!this.searchableSelect) {
|
15115
15123
|
this.scrollToSelected(this.menu);
|
15116
15124
|
}
|
15117
15125
|
else if (this.selectOnEnter) {
|
@@ -15205,21 +15213,21 @@ class Menu {
|
|
15205
15213
|
focusOnSearchOrSelectInput(menuOptions, highlightedOptionIndex) {
|
15206
15214
|
if (!menuOptions[highlightedOptionIndex])
|
15207
15215
|
return;
|
15208
|
-
if (this.
|
15216
|
+
if (this.searchBar) {
|
15209
15217
|
this.parentEl.setFocus();
|
15210
15218
|
if (this.searchMode === "navigation")
|
15211
15219
|
this.setHighlightedOption(0);
|
15212
15220
|
}
|
15213
|
-
if (this.
|
15221
|
+
if (this.searchableSelect) {
|
15214
15222
|
this.parentEl.setFocus();
|
15215
15223
|
}
|
15216
15224
|
this.focusFromSearchKeypress = true;
|
15217
15225
|
}
|
15218
15226
|
render() {
|
15219
|
-
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, } = this;
|
15227
|
+
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
15220
15228
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
15221
15229
|
const hasNoResults = this.host.classList.contains("no-results");
|
15222
|
-
return (hAsync(Host, { key: '
|
15230
|
+
return (hAsync(Host, { key: 'bce19ee8d7929f03d2de173ad6f2b639cd2fbf2c', class: {
|
15223
15231
|
"ic-menu-full-width": !!fullWidth,
|
15224
15232
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
15225
15233
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
@@ -15227,8 +15235,8 @@ class Menu {
|
|
15227
15235
|
isLoading,
|
15228
15236
|
[`ic-menu-${size}`]: true,
|
15229
15237
|
"ic-menu-open": open && options.length !== 0,
|
15230
|
-
"ic-menu-multiple":
|
15231
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
15238
|
+
"ic-menu-multiple": multiSelect,
|
15239
|
+
} }, options.length !== 0 && (hAsync("ul", { key: 'edbb9d969dd8218a45c6d012abf8964fc2acd0a7', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", tabindex: open &&
|
15232
15240
|
!keyboardNav &&
|
15233
15241
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
15234
15242
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
@@ -15237,7 +15245,7 @@ class Menu {
|
|
15237
15245
|
if (option.children) {
|
15238
15246
|
if (option.children.length > 0) {
|
15239
15247
|
return (hAsync("div", null, hAsync("ic-typography", { class: "option-group-title", role: "presentation", variant: "subtitle-small" }, hAsync("p", null, option[this.labelField])), option.children.map((childOption) => childOption.label &&
|
15240
|
-
this.displayOption(childOption,
|
15248
|
+
this.displayOption(childOption, multiSelect
|
15241
15249
|
? value === null || value === void 0 ? void 0 : value.includes(childOption[this.valueField])
|
15242
15250
|
: childOption[this.valueField] === value, index, option))));
|
15243
15251
|
}
|
@@ -15248,15 +15256,15 @@ class Menu {
|
|
15248
15256
|
else {
|
15249
15257
|
// Display option only if it has a label (rather than displaying an empty space)
|
15250
15258
|
return (option.label &&
|
15251
|
-
this.displayOption(option,
|
15259
|
+
this.displayOption(option, multiSelect
|
15252
15260
|
? value === null || value === void 0 ? void 0 : value.includes(option[this.valueField])
|
15253
15261
|
: option[this.valueField] === value, index));
|
15254
15262
|
}
|
15255
15263
|
}))), options.length !== 0 &&
|
15256
|
-
|
15264
|
+
multiSelect &&
|
15257
15265
|
!isLoading &&
|
15258
15266
|
!hasTimedOut &&
|
15259
|
-
!hasNoResults && (hAsync("div", { key: '
|
15267
|
+
!hasNoResults && (hAsync("div", { key: '317f18bd8ff88fadf840ccc5666bf7ae7a6b1e65', class: "option-bar" }, hAsync("ic-typography", { key: '32e28e814c9c3d4ac243e2d45cb2487a99a900ba' }, hAsync("p", { key: '6ed28e350ad356ef669b4b6b9f3d8718a7274782' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), hAsync("ic-button", { key: 'e66e1b04732d26ebbc05751eadc49968c11ac92c', class: "select-all-button", "aria-label": `${selectAllButtonText} options for ${inputLabel}`, ref: (el) => (this.selectAllButton = el), variant: "tertiary", onClick: this.handleSelectAllClick, onMouseDown: this.handleSelectAllMouseDown, onBlur: this.handleSelectAllBlur, onFocus: this.handleSelectAllFocus, size: size === "small" ? "small" : "medium" }, selectAllButtonText)))));
|
15260
15268
|
}
|
15261
15269
|
get host() { return getElement(this); }
|
15262
15270
|
static get watchers() { return {
|
@@ -15277,8 +15285,11 @@ class Menu {
|
|
15277
15285
|
"inputLabel": [1, "input-label"],
|
15278
15286
|
"labelField": [1, "label-field"],
|
15279
15287
|
"menuId": [1, "menu-id"],
|
15288
|
+
"multiSelect": [4, "multi-select"],
|
15280
15289
|
"open": [516],
|
15281
15290
|
"parentEl": [16],
|
15291
|
+
"searchableSelect": [4, "searchable-select"],
|
15292
|
+
"searchBar": [4, "search-bar"],
|
15282
15293
|
"searchMode": [1, "search-mode"],
|
15283
15294
|
"selectOnEnter": [4, "select-on-enter"],
|
15284
15295
|
"size": [1],
|
@@ -15980,14 +15991,7 @@ class NavigationItem {
|
|
15980
15991
|
this.childBlur.emit();
|
15981
15992
|
}
|
15982
15993
|
};
|
15983
|
-
this.handleClick = (
|
15984
|
-
if (event.type === "click" ||
|
15985
|
-
(event.type === "keydown" &&
|
15986
|
-
(event.key === "Enter" ||
|
15987
|
-
event.key === " "))) {
|
15988
|
-
this.navItemClicked.emit();
|
15989
|
-
}
|
15990
|
-
};
|
15994
|
+
this.handleClick = () => this.navItemClicked.emit();
|
15991
15995
|
// triggered when attributes of host element change
|
15992
15996
|
this.hostMutationCallback = (mutationList) => {
|
15993
15997
|
mutationList.forEach(({ attributeName }) => {
|
@@ -16100,7 +16104,7 @@ class NavigationItem {
|
|
16100
16104
|
render() {
|
16101
16105
|
const { inTopNavSideMenu, isTopNavChild, selected, navigationType, focusStyle, isInitialRender, sideNavExpanded, displayNavigationTooltip, collapsedIconLabel, isSideNavMobile, expandable, isInSideNav, theme, } = this;
|
16102
16106
|
const isTopNavChildDesktop = isTopNavChild && !inTopNavSideMenu;
|
16103
|
-
return (hAsync(Host, { key: '
|
16107
|
+
return (hAsync(Host, { key: 'a5e0183131fc3228cff0026de3f6ce21020abd82', class: {
|
16104
16108
|
"navigation-item": true,
|
16105
16109
|
"navigation-item-selected": !isTopNavChild && selected,
|
16106
16110
|
"navigation-item-top-nav": !inTopNavSideMenu && navigationType === "top",
|
@@ -16119,7 +16123,7 @@ class NavigationItem {
|
|
16119
16123
|
expandable,
|
16120
16124
|
[focusStyle]: isTopNavChild ? isInSideNav : !inTopNavSideMenu,
|
16121
16125
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16122
|
-
}, onBlur: isTopNavChildDesktop ? this.handleBlur : null, onClick: this.handleClick,
|
16126
|
+
}, onBlur: isTopNavChildDesktop ? this.handleBlur : null, onClick: this.handleClick, "aria-current": selected ? "page" : null, role: "listitem" }, hAsync("ic-tooltip", { key: 'c02cac09250e3517005841deac60a95f042a4334', label: this.generateTooltipLabel(), target: "navigation-item", placement: "right", class: {
|
16123
16127
|
"tooltip-navigation-item": true,
|
16124
16128
|
"tooltip-navigation-item-side-nav-collapsed": displayNavigationTooltip && isInSideNav,
|
16125
16129
|
"tooltip-long-label-navigation-item-side-nav-expanded": this.el.hasAttribute("[display-navigation-tooltip = 'true']"),
|
@@ -18604,12 +18608,12 @@ class SearchBar {
|
|
18604
18608
|
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: searchButtonType, variant: "icon", theme: searchSubmitFocused ? "light" : "dark" }))), hAsync("div", { key: 'd59837a4d8626cb434d74920c3d16ebad1aa38e8', class: {
|
18605
18609
|
"menu-container": true,
|
18606
18610
|
fullwidth: fullWidth,
|
18607
|
-
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: '
|
18611
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: 'db6985b5af28d19536d7c3f1a19e84be95c765da', class: {
|
18608
18612
|
"no-results": this.hadNoOptions() ||
|
18609
18613
|
(filteredOptions.length === 1 &&
|
18610
18614
|
(filteredOptions[0][labelField] === loadingLabel ||
|
18611
18615
|
filteredOptions[0][labelField] === loadingErrorLabel)),
|
18612
|
-
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: true, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: labelField, valueField: valueField })))), hAsync("div", { key: '
|
18616
|
+
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: true, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: labelField, valueField: valueField, searchBar: true })))), hAsync("div", { key: '9d3ffbf8df67646d6262b275d27b90d4ff27ca8f', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
18613
18617
|
}
|
18614
18618
|
static get delegatesFocus() { return true; }
|
18615
18619
|
get el() { return getElement(this); }
|
@@ -19544,13 +19548,13 @@ class Select {
|
|
19544
19548
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
19545
19549
|
"expand-icon": true,
|
19546
19550
|
"expand-icon-open": open,
|
19547
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (hAsync("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: '
|
19551
|
+
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (hAsync("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: '56ad9e2340b8c7f7242a33b35cd2ccda78123f1c', class: {
|
19548
19552
|
"no-results": loading ||
|
19549
19553
|
hasTimedOut ||
|
19550
19554
|
((_a = noOptions === null || noOptions === void 0 ? void 0 : noOptions[0]) === null || _a === void 0 ? void 0 : _a.label) === emptyOptionListText,
|
19551
19555
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
19552
19556
|
? this.searchableSelectElement
|
19553
|
-
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple })), multiple && (hAsync("div", { key: '
|
19557
|
+
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple, multiSelect: multiple ? true : false, searchableSelect: searchable ? true : false })), multiple && (hAsync("div", { key: '7f06215c9bf2ea494abde73bc6245c08ef0b6a0a', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: '15510a6e9e5b5ea184bf97d2f863d6d5e5aacd48', class: { "menu-open": open }, ariaLiveMode: "polite", status: validationStatus, message: validationText, for: inputId })))));
|
19554
19558
|
}
|
19555
19559
|
static get delegatesFocus() { return true; }
|
19556
19560
|
get el() { return getElement(this); }
|
@@ -20090,9 +20094,9 @@ class SideNavigation {
|
|
20090
20094
|
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'e23e83b3b8ab5745d3336b9046d73b2093b3ce2b', class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '015266a0a9c86247a1304a261a8854f6f09c2cc9', class: "side-navigation-inner" }, isSlotUsed$1(this.el, "primary-navigation") && (hAsync("nav", { key: 'dd6adfcf6555b8733c3a54e986c376a8173b67f4', class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, hAsync("span", { key: '2496078c272bd4a2330a71a92fe5b6814d57f057', "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), hAsync("ul", { key: '9357b0f4413ffb8a27454e76f4ef8f31a0268edd', class: "navigation-list" }, hAsync("slot", { key: 'f16b2e21c42f8bb71090bdf2616821a7f3971bb6', name: "primary-navigation" }))))), hAsync("div", { key: '526a5d6b53d96281d1f94ccba74fff0656bae624', class: {
|
20091
20095
|
["bottom-wrapper"]: true,
|
20092
20096
|
["classification-spacing"]: hasClassificationBanner(),
|
20093
|
-
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: 'b4ca53bf595e01cca2fa4f6be6c206df17ca9dea', class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { key: '3297c45f0206ad300b91bc72fd3f73833344e0a6', "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { key: '9e26f92a7d9b7a336c030d5d9341e72e8d0c8869', class: "navigation-list" }, hAsync("slot", { key: '7542d4061e0b546499e5b5323c39957c1607435a', name: "secondary-navigation" })))), hAsync("div", { key: '3b7e932d373b189762584a180a13bc06ec702d77', class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", { key: 'fa143397381376b142bef4fc6318ad98f329a358' }), displayExpandBtn && (hAsync("button", { key: '1d92181c969e5fd7c960ff2b28dbc9588b0339cc', class: "menu-expand-button", innerHTML: chevronIcon, onClick: () => this.toggleMenuExpanded(!this.menuExpanded), "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { key: 'f82c9aec7d5b2175bcf0a71edef6e7dbd4d2914e', class: "app-status-wrapper" }, status
|
20097
|
+
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: 'b4ca53bf595e01cca2fa4f6be6c206df17ca9dea', class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { key: '3297c45f0206ad300b91bc72fd3f73833344e0a6', "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { key: '9e26f92a7d9b7a336c030d5d9341e72e8d0c8869', class: "navigation-list" }, hAsync("slot", { key: '7542d4061e0b546499e5b5323c39957c1607435a', name: "secondary-navigation" })))), hAsync("div", { key: '3b7e932d373b189762584a180a13bc06ec702d77', class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", { key: 'fa143397381376b142bef4fc6318ad98f329a358' }), displayExpandBtn && (hAsync("button", { key: '1d92181c969e5fd7c960ff2b28dbc9588b0339cc', class: "menu-expand-button", innerHTML: chevronIcon, onClick: () => this.toggleMenuExpanded(!this.menuExpanded), "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { key: 'f82c9aec7d5b2175bcf0a71edef6e7dbd4d2914e', class: "app-status-wrapper" }, status && (hAsync("div", { key: 'b632cb7118accac8f8085e433a76e69c0e3d092f', class: {
|
20094
20098
|
["app-status"]: true,
|
20095
|
-
} }, hAsync("ic-typography", { key: '
|
20099
|
+
} }, hAsync("ic-typography", { key: '8f2135a81cfd74a6cf79a6ebabec9f09eac6116d', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), version && (hAsync("ic-typography", { key: '8eb1e6ec8476d68071803b511c857cd9252bcb50', variant: "label", class: "app-version", "aria-label": "app version" }, version))))))));
|
20096
20100
|
}
|
20097
20101
|
get el() { return getElement(this); }
|
20098
20102
|
static get watchers() { return {
|
@@ -22202,7 +22206,7 @@ class ToastRegion {
|
|
22202
22206
|
}; }
|
22203
22207
|
}
|
22204
22208
|
|
22205
|
-
const icToggleButtonCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{--toggle-button-border:var(--ic-toggle-button-unselected-border);--toggle-button-text-colour:var(--ic-toggle-button-unselected-text);--toggle-button-border-hover:var(--ic-toggle-button-unselected-border-hover);--toggle-button-text-colour-hover:var(\n --ic-toggle-button-unselected-text-hover\n );--toggle-button-border-active:var(\n --ic-toggle-button-unselected-border-pressed\n );--toggle-button-text-colour-active:var(\n --ic-toggle-button-unselected-text-pressed\n )}:host(:not(.expand-toggle-group-child)){display:inline-block;border-radius:var(--ic-border-radius);border:var(--ic-border-width) solid var(--toggle-button-border)}:host(.ic-toggle-button-full-width:not(.expand-toggle-group-child)){width:100%}:host(.ic-toggle-button-checked){--toggle-button-border:var(--ic-toggle-button-selected-border);--toggle-button-text-colour:var(--ic-toggle-button-selected-text);--toggle-button-border-hover:var(--ic-toggle-button-selected-border-hover);--toggle-button-text-colour-hover:var(--ic-toggle-button-selected-text);--toggle-button-border-active:var(\n --ic-toggle-button-selected-border-pressed\n );--toggle-button-text-colour-active:var(--ic-toggle-button-selected-text)}:host(.ic-toggle-button-monochrome){--toggle-button-border:var(--ic-toggle-button-unselected-border-monochrome);--toggle-button-text-colour:var(\n --ic-toggle-button-unselected-text-monochrome\n );--toggle-button-border-hover:var(\n --ic-toggle-button-unselected-border-hover-monochrome\n );--toggle-button-text-colour-hover:var(\n --ic-toggle-button-unselected-text-monochrome\n );--toggle-button-border-active:var(\n --ic-toggle-button-unselected-border-pressed-monochrome\n );--toggle-button-text-colour-active:var(\n --ic-toggle-button-unselected-text-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked){--toggle-button-border:var(--ic-toggle-button-selected-border-monochrome);--toggle-button-text-colour:var(--ic-toggle-button-selected-text-monochrome);--toggle-button-border-hover:var(\n --ic-toggle-button-selected-border-hover-monochrome\n );--toggle-button-text-colour-hover:var(\n --ic-toggle-button-selected-text-monochrome\n );--toggle-button-border-active:var(\n --ic-toggle-button-selected-border-pressed-monochrome\n );--toggle-button-text-colour-active:var(\n --ic-toggle-button-selected-text-monochrome\n )}:host(.ic-toggle-button-disabled){--toggle-button-border:var(--ic-toggle-button-unselected-border-disabled);--toggle-button-text-colour:var(--ic-toggle-button-unselected-text-disabled)}:host(.ic-toggle-button-disabled.ic-toggle-button-monochrome){--toggle-button-border:var(\n --ic-toggle-button-unselected-border-disabled-monochrome\n );--toggle-button-text-colour:var(\n --ic-toggle-button-unselected-text-disabled-monochrome\n )}:host(.ic-toggle-button-disabled.ic-toggle-button-checked){--toggle-button-border:var(--ic-toggle-button-selected-border-disabled);--toggle-button-text-colour:var(--ic-toggle-button-selected-text-disabled)}:host(.ic-toggle-button-disabled.ic-toggle-button-checked.ic-toggle-button-monochrome){--toggle-button-border:var(\n --ic-toggle-button-selected-border-disabled-monochrome\n );--toggle-button-text-colour:var(\n --ic-toggle-button-selected-text-disabled-monochrome\n )}:host(.expand-toggle-group-child) ::part(button){width:100%}:host(.expand-toggle-group-child:not(.ic-toggle-button-loading)) ::part(button){min-height:inherit;height:auto}:host ic-button{--icon-width:var(--ic-space-lg);--icon-height:var(--ic-space-lg)}:host(.expand-toggle-group-child) ic-button{min-width:100%;min-height:100%;height:100%}:host(.expand-toggle-group-child) ::part(button):focus,:host(.expand-toggle-group-child.ic-toggle-button-checked) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs) var(--ic-action-default),\n var(--ic-border-focus)}:host(.expand-toggle-group-child.ic-toggle-button-light) ::part(button):focus,:host(.expand-toggle-group-child.ic-toggle-button-dark) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs) var(--ic-action-monochrome-dark),\n var(--ic-border-focus)}:host(:focus){z-index:1}:host ::part(button){border:none;color:var(--toggle-button-text-colour)}:host ::part(button):hover{color:var(--toggle-button-text-colour-hover);background-color:var(--ic-toggle-button-unselected-background-hover)}:host ::part(button):active{color:var(--toggle-button-text-colour-active);background-color:var(--ic-toggle-button-unselected-background-pressed)}:host ::part(button):focus{border:var(--ic-border-width) solid var(--toggle-button-border)}:host ::part(button):hover:focus{border:var(--ic-border-width) solid var(--toggle-button-border-hover)}:host ::part(button):active:focus{border:var(--ic-border-width) solid var(--toggle-button-border-active)}:host(.ic-toggle-button-disabled) ::part(button){color:var(--toggle-button-text-colour)}:host(:not(.expand-toggle-group-child)):has(ic-button:hover){border:var(--ic-border-width) solid var(--toggle-button-border-hover)}:host(:not(.expand-toggle-group-child)):has(ic-button:active){border:var(--ic-border-width) solid var(--toggle-button-border-active)}:host(:not(.expand-toggle-group-child).ic-toggle-button-disabled){border:var(--ic-border-width) dashed var(--toggle-button-border)}:host(.ic-toggle-button-checked) ::part(button){background-color:var(--ic-toggle-button-selected-background);box-shadow:inset 0 0 0 var(--ic-space-xxxs)\n var(--ic-toggle-button-selected-text)}:host(.ic-toggle-button-checked) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs)\n var(--ic-toggle-button-selected-border-focus),\n var(--ic-border-focus)}:host(.ic-toggle-button-checked) ::part(button):hover{background-color:var(--ic-toggle-button-selected-background-hover)}:host(.ic-toggle-button-checked) ::part(button):active,:host(.ic-toggle-button-icon.ic-toggle-button-checked) ::part(button):active{background-color:var(--ic-toggle-button-selected-background-pressed)}:host(.ic-toggle-button-monochrome) ::part(button):hover{background-color:var(\n --ic-toggle-button-unselected-background-hover-monochrome\n )}:host(.ic-toggle-button-monochrome) ::part(button):active{background-color:var(\n --ic-toggle-button-unselected-background-pressed-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button){background-color:var(--ic-toggle-button-selected-background-monochrome)}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):hover{background-color:var(\n --ic-toggle-button-selected-background-hover-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):active,:host(.ic-toggle-button-icon.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):active{background-color:var(\n --ic-toggle-button-selected-background-pressed-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs)\n var(--ic-toggle-button-selected-text),\n var(--ic-border-focus)}:host(.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button),:host(.ic-toggle-button-icon.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button){background-color:transparent}:host(.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button),:host(.ic-toggle-button-icon.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button)::before{background-image:radial-gradient(\n var(--ic-toggle-button-selected-background-disabled) 95%,\n white 20%\n );background-repeat:no-repeat}:host(.ic-toggle-button-disabled.ic-toggle-button-checked.ic-toggle-button-monochrome) ::part(button),:host(.ic-toggle-button-icon.ic-toggle-button-disabled.ic-toggle-button-checked.ic-toggle-button-monochrome) ::part(button)::before{background-image:radial-gradient(\n var(--ic-toggle-button-selected-background-disabled-monochrome) 95%,\n white 20%\n );background-repeat:no-repeat}:host(.ic-toggle-button-icon) ::part(button){height:calc(var(--ic-space-xl) + var(--ic-space-xs));width:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-toggle-button-icon) ::part(button):active{background-color:var(--ic-action-default-bg-pressed)}:host(.ic-toggle-button-icon.ic-toggle-button-dark) ::part(button):active{background-color:var(--ic-action-dark-bg-pressed)}:host(.ic-toggle-button-icon.ic-toggle-button-light) ::part(button):active{background-color:var(--ic-action-light-bg-pressed)}:host(.ic-toggle-button-icon.ic-toggle-button-small) ::part(button){height:var(--ic-space-xl);width:var(--ic-space-xl)}:host(.ic-toggle-button-icon.ic-toggle-button-large) ::part(button){height:var(--ic-space-xxl);width:var(--ic-space-xxl)}:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(button){--loading-button-background:var(\n --ic-toggle-button-selected-background-pressed\n );background-color:var(--ic-toggle-button-selected-background-pressed)}:host(.ic-toggle-button-loading) ::part(button){--loading-button-background:var(\n --ic-toggle-button-unselected-background-pressed\n );background-color:var(--ic-toggle-button-unselected-background-pressed)}:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(ic-loading-container){--inner-color:var(--ic-toggle-button-loading-bar)}:host(.ic-toggle-button-loading) ::part(ic-loading-container){--inner-color:var(--ic-toggle-button-selected-loading-bar)}:host(.ic-toggle-button-checked.ic-toggle-button-loading.ic-toggle-button-monochrome) ::part(button){--loading-button-background:var(\n --ic-toggle-button-selected-background-pressed-monochrome\n );background-color:var(\n --ic-toggle-button-selected-background-pressed-monochrome\n )}:host(.ic-toggle-button-loading.ic-toggle-button-monochrome) ::part(button){--loading-button-background:var(\n --ic-toggle-button-unselected-background-pressed-monochrome\n );background-color:var(\n --ic-toggle-button-unselected-background-pressed-monochrome\n )}@media (forced-colors: active){:host(.ic-toggle-button-checked) ::part(button),:host(.ic-toggle-button-checked) ::part(button):hover{background-color:Highlight}:host(.ic-toggle-button-checked.ic-toggle-button-light) ::part(button),:host(.ic-toggle-button-checked.ic-toggle-button-light) ::part(button):hover{background-color:Highlight}:host(.ic-toggle-button-checked.ic-toggle-button-dark) ::part(button),:host(.ic-toggle-button-checked.ic-toggle-button-dark) ::part(button):hover{background-color:Highlight}:host(.ic-toggle-button-checked.ic-toggle-button-disabled) ::part(button){background-color:GrayText}:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(button),:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(button):hover{--loading-button-background:Highlight}}";
|
22209
|
+
const icToggleButtonCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{--toggle-button-border:var(--ic-toggle-button-unselected-border);--toggle-button-text-colour:var(--ic-toggle-button-unselected-text);--toggle-button-border-hover:var(--ic-toggle-button-unselected-border-hover);--toggle-button-text-colour-hover:var(\n --ic-toggle-button-unselected-text-hover\n );--toggle-button-border-active:var(\n --ic-toggle-button-unselected-border-pressed\n );--toggle-button-text-colour-active:var(\n --ic-toggle-button-unselected-text-pressed\n )}:host(:not(.expand-toggle-group-child)){display:inline-block;border-radius:var(--ic-border-radius);border:var(--ic-border-width) solid var(--toggle-button-border)}:host(.ic-toggle-button-full-width:not(.expand-toggle-group-child)){width:100%}:host(.ic-toggle-button-checked){--toggle-button-border:var(--ic-toggle-button-selected-border);--toggle-button-text-colour:var(--ic-toggle-button-selected-text);--toggle-button-border-hover:var(--ic-toggle-button-selected-border-hover);--toggle-button-text-colour-hover:var(--ic-toggle-button-selected-text);--toggle-button-border-active:var(\n --ic-toggle-button-selected-border-pressed\n );--toggle-button-text-colour-active:var(--ic-toggle-button-selected-text)}:host(.ic-toggle-button-monochrome){--toggle-button-border:var(--ic-toggle-button-unselected-border-monochrome);--toggle-button-text-colour:var(\n --ic-toggle-button-unselected-text-monochrome\n );--toggle-button-border-hover:var(\n --ic-toggle-button-unselected-border-hover-monochrome\n );--toggle-button-text-colour-hover:var(\n --ic-toggle-button-unselected-text-monochrome\n );--toggle-button-border-active:var(\n --ic-toggle-button-unselected-border-pressed-monochrome\n );--toggle-button-text-colour-active:var(\n --ic-toggle-button-unselected-text-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked){--toggle-button-border:var(--ic-toggle-button-selected-border-monochrome);--toggle-button-text-colour:var(--ic-toggle-button-selected-text-monochrome);--toggle-button-border-hover:var(\n --ic-toggle-button-selected-border-hover-monochrome\n );--toggle-button-text-colour-hover:var(\n --ic-toggle-button-selected-text-monochrome\n );--toggle-button-border-active:var(\n --ic-toggle-button-selected-border-pressed-monochrome\n );--toggle-button-text-colour-active:var(\n --ic-toggle-button-selected-text-monochrome\n )}:host(.ic-toggle-button-disabled){--toggle-button-border:var(--ic-toggle-button-unselected-border-disabled);--toggle-button-text-colour:var(--ic-toggle-button-unselected-text-disabled)}:host(.ic-toggle-button-disabled.ic-toggle-button-monochrome){--toggle-button-border:var(\n --ic-toggle-button-unselected-border-disabled-monochrome\n );--toggle-button-text-colour:var(\n --ic-toggle-button-unselected-text-disabled-monochrome\n )}:host(.ic-toggle-button-disabled.ic-toggle-button-checked){--toggle-button-border:var(--ic-toggle-button-selected-border-disabled);--toggle-button-text-colour:var(--ic-toggle-button-selected-text-disabled)}:host(.ic-toggle-button-disabled.ic-toggle-button-checked.ic-toggle-button-monochrome){--toggle-button-border:var(\n --ic-toggle-button-selected-border-disabled-monochrome\n );--toggle-button-text-colour:var(\n --ic-toggle-button-selected-text-disabled-monochrome\n )}:host(.expand-toggle-group-child) ::part(button){width:100%}:host(.expand-toggle-group-child:not(.ic-toggle-button-loading)) ::part(button){min-height:inherit;height:auto}:host ic-button{--icon-width:var(--ic-space-lg);--icon-height:var(--ic-space-lg)}:host(.expand-toggle-group-child) ic-button{min-width:100%;min-height:100%;height:100%}:host(.expand-toggle-group-child) ::part(button):focus,:host(.expand-toggle-group-child.ic-toggle-button-checked) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs) var(--ic-action-default),\n var(--ic-border-focus)}:host(.expand-toggle-group-child.ic-toggle-button-light) ::part(button):focus,:host(.expand-toggle-group-child.ic-toggle-button-dark) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs) var(--ic-action-monochrome-dark),\n var(--ic-border-focus)}:host(:focus){z-index:1}:host ::part(button){border:none;color:var(--toggle-button-text-colour)}:host ::part(button):hover{color:var(--toggle-button-text-colour-hover);background-color:var(--ic-toggle-button-unselected-background-hover)}:host ::part(button):active{color:var(--toggle-button-text-colour-active);background-color:var(--ic-toggle-button-unselected-background-pressed)}:host ::part(button):focus{border:var(--ic-border-width) solid var(--toggle-button-border)}:host ::part(button):hover:focus{border:var(--ic-border-width) solid var(--toggle-button-border-hover)}:host ::part(button):active:focus{border:var(--ic-border-width) solid var(--toggle-button-border-active)}:host(.ic-toggle-button-disabled) ::part(button){color:var(--toggle-button-text-colour)}:host(:not(.expand-toggle-group-child)):has(ic-button:hover){border:var(--ic-border-width) solid var(--toggle-button-border-hover)}:host(:not(.expand-toggle-group-child)):has(ic-button:active){border:var(--ic-border-width) solid var(--toggle-button-border-active)}:host(:not(.expand-toggle-group-child).ic-toggle-button-disabled){border:var(--ic-border-width) dashed var(--toggle-button-border)}:host(.ic-toggle-button-checked) ::part(button){background-color:var(--ic-toggle-button-selected-background);box-shadow:inset 0 0 0 var(--ic-space-xxxs)\n var(--ic-toggle-button-selected-text)}:host(.ic-toggle-button-checked) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs)\n var(--ic-toggle-button-selected-border-focus),\n var(--ic-border-focus)}:host(.ic-toggle-button-checked) ::part(button):hover{background-color:var(--ic-toggle-button-selected-background-hover)}:host(.ic-toggle-button-checked) ::part(button):active,:host(.ic-toggle-button-icon.ic-toggle-button-checked) ::part(button):active{background-color:var(--ic-toggle-button-selected-background-pressed)}:host(.ic-toggle-button-monochrome) ::part(button):hover{background-color:var(\n --ic-toggle-button-unselected-background-hover-monochrome\n )}:host(.ic-toggle-button-monochrome) ::part(button):active{background-color:var(\n --ic-toggle-button-unselected-background-pressed-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button){background-color:var(--ic-toggle-button-selected-background-monochrome)}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):hover{background-color:var(\n --ic-toggle-button-selected-background-hover-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):active,:host(.ic-toggle-button-icon.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):active{background-color:var(\n --ic-toggle-button-selected-background-pressed-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs)\n var(--ic-toggle-button-selected-text),\n var(--ic-border-focus)}:host(.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button),:host(.ic-toggle-button-icon.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button){background-color:transparent}:host(.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button),:host(.ic-toggle-button-icon.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button)::before{background-image:radial-gradient(\n var(--ic-toggle-button-selected-background-disabled) 95%,\n white 20%\n );background-repeat:no-repeat}:host(.ic-toggle-button-disabled.ic-toggle-button-checked.ic-toggle-button-monochrome) ::part(button),:host(.ic-toggle-button-icon.ic-toggle-button-disabled.ic-toggle-button-checked.ic-toggle-button-monochrome) ::part(button)::before{background-image:radial-gradient(\n var(--ic-toggle-button-selected-background-disabled-monochrome) 95%,\n white 20%\n );background-repeat:no-repeat}:host(.ic-toggle-button-icon) ::part(button){height:calc(var(--ic-space-xl) + var(--ic-space-xs));width:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-toggle-button-icon) ::part(button):active{background-color:var(--ic-action-default-bg-pressed)}:host(.ic-toggle-button-icon.ic-toggle-button-dark) ::part(button):active{background-color:var(--ic-action-dark-bg-pressed)}:host(.ic-toggle-button-icon.ic-toggle-button-light) ::part(button):active{background-color:var(--ic-action-light-bg-pressed)}:host(.ic-toggle-button-icon.ic-toggle-button-small) ::part(button){height:var(--ic-space-xl);width:var(--ic-space-xl)}:host(.ic-toggle-button-icon.ic-toggle-button-large) ::part(button){height:var(--ic-space-xxl);width:var(--ic-space-xxl)}:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(button){--loading-button-background:var(\n --ic-toggle-button-selected-background-pressed\n );background-color:var(--ic-toggle-button-selected-background-pressed)}:host(.ic-toggle-button-loading) ::part(button){--loading-button-background:var(\n --ic-toggle-button-unselected-background-pressed\n );background-color:var(--ic-toggle-button-unselected-background-pressed)}:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(ic-loading-container){--inner-color:var(--ic-toggle-button-loading-bar)}:host(.ic-toggle-button-loading) ::part(ic-loading-container){--inner-color:var(--ic-toggle-button-selected-loading-bar)}:host(.ic-toggle-button-checked.ic-toggle-button-loading.ic-toggle-button-monochrome) ::part(button){--loading-button-background:var(\n --ic-toggle-button-selected-background-pressed-monochrome\n );background-color:var(\n --ic-toggle-button-selected-background-pressed-monochrome\n )}:host(.ic-toggle-button-loading.ic-toggle-button-monochrome) ::part(button){--loading-button-background:var(\n --ic-toggle-button-unselected-background-pressed-monochrome\n );background-color:var(\n --ic-toggle-button-unselected-background-pressed-monochrome\n )}:host(.ic-toggle-button-hide-outline){--toggle-button-border:transparent !important;--toggle-button-border-hover:transparent !important;--toggle-button-border-active:transparent !important}:host(.ic-toggle-button-hide-outline) ::part(button):focus{border:none}:host(.expand-toggle-group-child.ic-toggle-button-hide-outline) ::part(button):focus,:host(.expand-toggle-group-child.ic-toggle-button-hide-outline.ic-toggle-button-checked) ::part(button):focus{box-shadow:var(--ic-border-focus)}@media (forced-colors: active){:host(.ic-toggle-button-checked) ::part(button),:host(.ic-toggle-button-checked) ::part(button):hover{background-color:Highlight}:host(.ic-toggle-button-checked.ic-toggle-button-light) ::part(button),:host(.ic-toggle-button-checked.ic-toggle-button-light) ::part(button):hover{background-color:Highlight}:host(.ic-toggle-button-checked.ic-toggle-button-dark) ::part(button),:host(.ic-toggle-button-checked.ic-toggle-button-dark) ::part(button):hover{background-color:Highlight}:host(.ic-toggle-button-checked.ic-toggle-button-disabled) ::part(button){background-color:GrayText}:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(button),:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(button):hover{--loading-button-background:Highlight}}";
|
22206
22210
|
var IcToggleButtonStyle0 = icToggleButtonCss;
|
22207
22211
|
|
22208
22212
|
const TRACKED_ATTRIBUTES = [
|
@@ -22214,6 +22218,7 @@ const TRACKED_ATTRIBUTES = [
|
|
22214
22218
|
"size",
|
22215
22219
|
"theme",
|
22216
22220
|
"monochrome",
|
22221
|
+
"outline",
|
22217
22222
|
];
|
22218
22223
|
/**
|
22219
22224
|
* @slot icon - Content will be displayed alongside the toggle button label.
|
@@ -22247,6 +22252,10 @@ class ToggleButton {
|
|
22247
22252
|
* If `true`, the toggle button will display as black in the light theme, and white in dark theme.
|
22248
22253
|
*/
|
22249
22254
|
this.monochrome = false;
|
22255
|
+
/**
|
22256
|
+
* If `true`, the toggle button will display with an outline.
|
22257
|
+
*/
|
22258
|
+
this.outline = true;
|
22250
22259
|
/**
|
22251
22260
|
* The size of the toggle button to be displayed.
|
22252
22261
|
*/
|
@@ -22314,6 +22323,9 @@ class ToggleButton {
|
|
22314
22323
|
case TRACKED_ATTRIBUTES[7]:
|
22315
22324
|
this.monochrome = attribute.value !== "false";
|
22316
22325
|
break;
|
22326
|
+
case TRACKED_ATTRIBUTES[8]:
|
22327
|
+
this.outline = attribute.value !== "false";
|
22328
|
+
break;
|
22317
22329
|
}
|
22318
22330
|
}
|
22319
22331
|
}
|
@@ -22334,18 +22346,19 @@ class ToggleButton {
|
|
22334
22346
|
}
|
22335
22347
|
}
|
22336
22348
|
render() {
|
22337
|
-
const { accessibleLabel, checked, disabled, fullWidth, iconPlacement, monochrome, label, loading, size, theme, tooltipPlacement, variant, } = this;
|
22349
|
+
const { accessibleLabel, checked, disabled, fullWidth, iconPlacement, monochrome, label, loading, outline, size, theme, tooltipPlacement, variant, } = this;
|
22338
22350
|
const iconVariant = variant === "icon";
|
22339
|
-
return (hAsync(Host, { key: '
|
22351
|
+
return (hAsync(Host, { key: 'f2118b4a93ef348f3df18806e1e8e50d6583aadb', class: {
|
22340
22352
|
"ic-toggle-button-checked": checked,
|
22341
22353
|
"ic-toggle-button-disabled": disabled,
|
22342
22354
|
"ic-toggle-button-icon": iconVariant,
|
22343
22355
|
"ic-toggle-button-loading": loading,
|
22344
22356
|
"ic-toggle-button-monochrome": monochrome,
|
22345
22357
|
"ic-toggle-button-full-width": fullWidth,
|
22358
|
+
"ic-toggle-button-hide-outline": !outline,
|
22346
22359
|
[`ic-toggle-button-${size}`]: true,
|
22347
22360
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
22348
|
-
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '
|
22361
|
+
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: 'ad1c3c331cb9d900a8c815aa3e1fce192111d7a3', "aria-pressed": `${checked}`, variant: iconVariant ? "icon" : "secondary", onClick: this.handleClick, title: accessibleLabel, "aria-label": `${accessibleLabel ? accessibleLabel : label}, ${checked ? "ticked" : "unticked"}`, disabled: disabled, size: size, fullWidth: fullWidth, loading: loading, tooltipPlacement: tooltipPlacement }, !iconVariant && label, hAsync("slot", { key: '4fa14905c645f54646c70aa054d2c7f47254c77d' }), isSlotUsed$1(this.el, "icon") && (hAsync("slot", { key: 'ea79cad11be50ce8a6a35a6cf8e743237e349d2c', name: "icon", slot: `${iconPlacement}-icon` })), isSlotUsed$1(this.el, "badge") && (hAsync("slot", { key: 'dc96229f6178198a47c7f597179e069208e49acb', name: "badge", slot: "badge" })))));
|
22349
22362
|
}
|
22350
22363
|
static get delegatesFocus() { return true; }
|
22351
22364
|
get el() { return getElement(this); }
|
@@ -22365,6 +22378,7 @@ class ToggleButton {
|
|
22365
22378
|
"label": [1],
|
22366
22379
|
"loading": [1028],
|
22367
22380
|
"monochrome": [1028],
|
22381
|
+
"outline": [1028],
|
22368
22382
|
"size": [1025],
|
22369
22383
|
"theme": [1025],
|
22370
22384
|
"tooltipPlacement": [1, "tooltip-placement"],
|
@@ -22376,7 +22390,7 @@ class ToggleButton {
|
|
22376
22390
|
}; }
|
22377
22391
|
}
|
22378
22392
|
|
22379
|
-
const icToggleButtonGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:root{display:block}:host{display:flex;flex-direction:row;width:-moz-fit-content;width:fit-content;min-width:-moz-min-content;min-width:min-content;border:var(--ic-border-width) solid var(--ic-toggle-button-unselected-border);border-radius:var(--ic-border-radius)}:host(.ic-toggle-button-group-full-width){width:100%;max-width:100%}:host(.ic-toggle-button-group-loading){min-width:-moz-max-content;min-width:max-content}:host(:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-transition-duration-fast);outline:none}::slotted(ic-toggle-button){flex-grow:1;width:-moz-min-content;width:min-content;--toggle-button-border:none !important;--toggle-button-border-hover:none !important;--toggle-button-border-active:none !important}::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border)}:host(.ic-toggle-button-group-disabled){border:var(--ic-space-1px) dashed\n var(--ic-toggle-button-unselected-border-disabled);pointer-events:none}:host(.ic-toggle-button-group-disabled) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-space-1px) dashed\n var(--ic-toggle-button-unselected-border-disabled)}:host(.ic-toggle-button-group-monochrome){border:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border-monochrome)}:host(.ic-toggle-button-group-monochrome) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border-monochrome)}:host(.ic-toggle-button-group-disabled.ic-toggle-button-group-monochrome){border:var(--ic-border-width) dashed\n var(--ic-toggle-button-unselected-border-disabled-monochrome)}:host(.ic-toggle-button-group-disabled.ic-toggle-button-group-monochrome) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border-disabled-monochrome)}";
|
22393
|
+
const icToggleButtonGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:root{display:block}:host{display:flex;flex-direction:row;width:-moz-fit-content;width:fit-content;min-width:-moz-min-content;min-width:min-content;border:var(--ic-border-width) solid var(--ic-toggle-button-unselected-border);border-radius:var(--ic-border-radius)}:host(.ic-toggle-button-group-full-width){width:100%;max-width:100%}:host(.ic-toggle-button-group-loading){min-width:-moz-max-content;min-width:max-content}:host(:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-transition-duration-fast);outline:none}::slotted(ic-toggle-button){flex-grow:1;width:-moz-min-content;width:min-content;--toggle-button-border:none !important;--toggle-button-border-hover:none !important;--toggle-button-border-active:none !important}::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border)}:host(.ic-toggle-button-group-disabled){border:var(--ic-space-1px) dashed\n var(--ic-toggle-button-unselected-border-disabled);pointer-events:none}:host(.ic-toggle-button-group-disabled) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-space-1px) dashed\n var(--ic-toggle-button-unselected-border-disabled)}:host(.ic-toggle-button-group-monochrome){border:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border-monochrome)}:host(.ic-toggle-button-group-monochrome) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border-monochrome)}:host(.ic-toggle-button-group-disabled.ic-toggle-button-group-monochrome){border:var(--ic-border-width) dashed\n var(--ic-toggle-button-unselected-border-disabled-monochrome)}:host(.ic-toggle-button-group-disabled.ic-toggle-button-group-monochrome) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border-disabled-monochrome)}:host(.ic-toggle-button-group-hide-outline){--ic-toggle-button-unselected-border:transparent;--ic-toggle-button-unselected-border-disabled:transparent;--ic-toggle-button-unselected-border-monochrome:transparent;--ic-toggle-button-unselected-border-disabled-monochrome:transparent}";
|
22380
22394
|
var IcToggleButtonGroupStyle0 = icToggleButtonGroupCss;
|
22381
22395
|
|
22382
22396
|
const TOGGLE_GROUP = "IC-TOGGLE-BUTTON-GROUP";
|
@@ -22408,6 +22422,10 @@ class ToggleButtonGroup {
|
|
22408
22422
|
* If `true`, the toggle button group will display as black in the light theme, and white in dark theme.
|
22409
22423
|
*/
|
22410
22424
|
this.monochrome = false;
|
22425
|
+
/**
|
22426
|
+
* If `true`, the toggle button group will display with an outline.
|
22427
|
+
*/
|
22428
|
+
this.outline = true;
|
22411
22429
|
/**
|
22412
22430
|
* If `auto`, controls are toggled automatically when navigated to. If `manual`, the controls must be actioned to change their toggled state. The value of this prop is ignored if `selectType` is set to`multi`.
|
22413
22431
|
*/
|
@@ -22518,6 +22536,11 @@ class ToggleButtonGroup {
|
|
22518
22536
|
el.monochrome = this.monochrome;
|
22519
22537
|
});
|
22520
22538
|
}
|
22539
|
+
watchOutlineHandler() {
|
22540
|
+
this.getAllToggleButtons().forEach((el) => {
|
22541
|
+
el.outline = this.outline;
|
22542
|
+
});
|
22543
|
+
}
|
22521
22544
|
watchSizeHandler() {
|
22522
22545
|
this.getAllToggleButtons().forEach((el) => {
|
22523
22546
|
el.size = this.size;
|
@@ -22595,14 +22618,15 @@ class ToggleButtonGroup {
|
|
22595
22618
|
document === null || document === void 0 ? void 0 : document.removeEventListener("keydown", this.keyListener);
|
22596
22619
|
}
|
22597
22620
|
render() {
|
22598
|
-
const { accessibleLabel, disabled, fullWidth, loading, monochrome, theme } = this;
|
22599
|
-
return (hAsync(Host, { key: '
|
22621
|
+
const { accessibleLabel, disabled, fullWidth, loading, monochrome, outline, theme, } = this;
|
22622
|
+
return (hAsync(Host, { key: 'b76a2d77d20894bcbf3bd350945e8953c9c690ef', role: "group", "aria-label": accessibleLabel, tabindex: 0, class: {
|
22600
22623
|
"ic-toggle-button-group-disabled": disabled,
|
22601
22624
|
"ic-toggle-button-group-full-width": fullWidth,
|
22602
22625
|
"ic-toggle-button-group-loading": loading,
|
22603
22626
|
"ic-toggle-button-group-monochrome": monochrome,
|
22627
|
+
"ic-toggle-button-group-hide-outline": !outline,
|
22604
22628
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
22605
|
-
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '
|
22629
|
+
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '755e5420c42800c0d436adf366afe611edd8e529' })));
|
22606
22630
|
}
|
22607
22631
|
get el() { return getElement(this); }
|
22608
22632
|
static get watchers() { return {
|
@@ -22610,6 +22634,7 @@ class ToggleButtonGroup {
|
|
22610
22634
|
"fullWidth": ["watchFullWidthHandler"],
|
22611
22635
|
"loading": ["watchLoadingHandler"],
|
22612
22636
|
"monochrome": ["watchMonochromeHandler"],
|
22637
|
+
"outline": ["watchOutlineHandler"],
|
22613
22638
|
"size": ["watchSizeHandler"],
|
22614
22639
|
"theme": ["watchThemeHandler"],
|
22615
22640
|
"tooltipPlacement": ["watchTooltipPlacementHandler"],
|
@@ -22626,6 +22651,7 @@ class ToggleButtonGroup {
|
|
22626
22651
|
"iconPlacement": [1, "icon-placement"],
|
22627
22652
|
"loading": [4],
|
22628
22653
|
"monochrome": [4],
|
22654
|
+
"outline": [4],
|
22629
22655
|
"selectMethod": [1025, "select-method"],
|
22630
22656
|
"selectType": [1, "select-type"],
|
22631
22657
|
"size": [1],
|
@@ -23257,7 +23283,6 @@ class TreeItem {
|
|
23257
23283
|
}
|
23258
23284
|
this.updateAriaLabel();
|
23259
23285
|
this.selected = true;
|
23260
|
-
this.watchSelectedHandler();
|
23261
23286
|
};
|
23262
23287
|
this.setTreeItemPadding = () => {
|
23263
23288
|
var _a;
|
@@ -23353,6 +23378,14 @@ class TreeItem {
|
|
23353
23378
|
const tooltip = typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.closest(this.TOOLTIP);
|
23354
23379
|
tooltip === null || tooltip === void 0 ? void 0 : tooltip.displayTooltip(display);
|
23355
23380
|
};
|
23381
|
+
this.setChildTreeItems = () => {
|
23382
|
+
this.childTreeItems = Array.from(this.el.children).filter((child) => child.tagName === this.treeItemTag);
|
23383
|
+
this.isParent = this.childTreeItems.length > 0;
|
23384
|
+
};
|
23385
|
+
this.hostMutationCallback = (mutationList) => {
|
23386
|
+
this.setChildTreeItems();
|
23387
|
+
renderDynamicChildSlots(mutationList, "icon");
|
23388
|
+
};
|
23356
23389
|
}
|
23357
23390
|
watchDisabledHandler() {
|
23358
23391
|
removeDisabledFalse(this.disabled, this.el);
|
@@ -23372,17 +23405,16 @@ class TreeItem {
|
|
23372
23405
|
}
|
23373
23406
|
componentWillLoad() {
|
23374
23407
|
removeDisabledFalse(this.disabled, this.el);
|
23375
|
-
this.
|
23376
|
-
if (this.childTreeItems.length > 0) {
|
23377
|
-
this.isParent = true;
|
23378
|
-
}
|
23408
|
+
this.setChildTreeItems();
|
23379
23409
|
}
|
23380
23410
|
componentDidLoad() {
|
23381
23411
|
this.setTreeItemPadding();
|
23382
23412
|
this.updateAriaLabel();
|
23383
23413
|
!isSlotUsed(this.el, "label") &&
|
23384
23414
|
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Tree item");
|
23385
|
-
this.hostMutationObserver = new MutationObserver((mutationList) =>
|
23415
|
+
this.hostMutationObserver = new MutationObserver((mutationList) => {
|
23416
|
+
this.hostMutationCallback(mutationList);
|
23417
|
+
});
|
23386
23418
|
this.hostMutationObserver.observe(this.el, {
|
23387
23419
|
childList: true,
|
23388
23420
|
});
|
@@ -23478,7 +23510,7 @@ class TreeItem {
|
|
23478
23510
|
rel: this.rel,
|
23479
23511
|
target: this.target,
|
23480
23512
|
};
|
23481
|
-
return (hAsync(Host, { key: '
|
23513
|
+
return (hAsync(Host, { key: 'e175776f363c9e2377cdd7d291d3643cdaf3218d', class: {
|
23482
23514
|
"ic-tree-item-disabled": disabled,
|
23483
23515
|
"ic-tree-item-selected": !disabled && selected,
|
23484
23516
|
[`ic-tree-item-${size}`]: size !== "medium",
|
@@ -23489,7 +23521,7 @@ class TreeItem {
|
|
23489
23521
|
}, tabIndex: disabled ? -1 : 0, onClick: this.handleTreeItemClicked, ref: (el) => (this.treeItemElement = el), "aria-disabled": disabled ? "true" : "false", "aria-live": "polite" }, attrs, { onFocus: () => this.handleDisplayTooltip(true), onBlur: () => this.handleDisplayTooltip(false) }), this.isParent && (hAsync("span", { class: {
|
23490
23522
|
["arrow-dropdown"]: true,
|
23491
23523
|
["tree-item-expanded"]: expanded,
|
23492
|
-
}, "aria-hidden": "true", innerHTML: arrowDropdown })), isSlotUsed(this.el, "icon") && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { class: "tree-item-label" }, isSlotUsed(this.el, "label") ? hAsync("slot", { name: "label" }) : label))), expanded && (hAsync("div", { key: '
|
23524
|
+
}, "aria-hidden": "true", innerHTML: arrowDropdown })), isSlotUsed(this.el, "icon") && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { class: "tree-item-label" }, isSlotUsed(this.el, "label") ? hAsync("slot", { name: "label" }) : label))), expanded && (hAsync("div", { key: 'f2980c2c25f8a846097ea2af91404cc605a993ea', "aria-hidden": `${!expanded}` }, hAsync("slot", { key: '7454cae4f8dc7d830b4363278daeccaedc43ba3b' })))));
|
23493
23525
|
}
|
23494
23526
|
get el() { return getElement(this); }
|
23495
23527
|
static get watchers() { return {
|
@@ -23586,6 +23618,22 @@ class TreeView {
|
|
23586
23618
|
* When used on small devices, this prop will be overridden and tree-items will be set to text-wrap.
|
23587
23619
|
*/
|
23588
23620
|
this.truncateTreeItems = false;
|
23621
|
+
this.hostMutationCallback = (mutationList) => {
|
23622
|
+
var _a;
|
23623
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
23624
|
+
renderDynamicChildSlots(mutationList, "icon");
|
23625
|
+
this.setTreeItems();
|
23626
|
+
this.createMutationObserver();
|
23627
|
+
};
|
23628
|
+
this.createMutationObserver = () => {
|
23629
|
+
this.hostMutationObserver = new MutationObserver((mutationList) => {
|
23630
|
+
this.hostMutationCallback(mutationList);
|
23631
|
+
});
|
23632
|
+
this.hostMutationObserver.observe(this.el, {
|
23633
|
+
childList: true,
|
23634
|
+
subtree: true,
|
23635
|
+
});
|
23636
|
+
};
|
23589
23637
|
this.runResizeObserver = () => {
|
23590
23638
|
this.resizeObserver = new ResizeObserver(() => {
|
23591
23639
|
const isSmallDevice = getCurrentDeviceSize() <= DEVICE_SIZES.S;
|
@@ -23682,9 +23730,6 @@ class TreeView {
|
|
23682
23730
|
this.treeItems = this.getAllTreeItems(this.el);
|
23683
23731
|
this.linkTreeItems();
|
23684
23732
|
};
|
23685
|
-
this.addSlotChangeListener = () => {
|
23686
|
-
this.el.addEventListener("slotchange", this.setTreeItems);
|
23687
|
-
};
|
23688
23733
|
this.truncateTreeViewHeading = () => {
|
23689
23734
|
var _a, _b;
|
23690
23735
|
const typographyEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".tree-view-header");
|
@@ -23757,10 +23802,9 @@ class TreeView {
|
|
23757
23802
|
});
|
23758
23803
|
}
|
23759
23804
|
disconnectedCallback() {
|
23760
|
-
var _a, _b
|
23761
|
-
(_a = this.
|
23762
|
-
(_b = this.
|
23763
|
-
(_c = this.resizeObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
|
23805
|
+
var _a, _b;
|
23806
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
23807
|
+
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
23764
23808
|
}
|
23765
23809
|
componentWillLoad() {
|
23766
23810
|
this.setTreeItems();
|
@@ -23781,11 +23825,7 @@ class TreeView {
|
|
23781
23825
|
: this.removeHeadingTruncation();
|
23782
23826
|
}
|
23783
23827
|
componentDidLoad() {
|
23784
|
-
this.
|
23785
|
-
this.hostMutationObserver = new MutationObserver((mutationList) => renderDynamicChildSlots(mutationList, "icon"));
|
23786
|
-
this.hostMutationObserver.observe(this.el, {
|
23787
|
-
childList: true,
|
23788
|
-
});
|
23828
|
+
this.createMutationObserver();
|
23789
23829
|
this.isLoaded = true;
|
23790
23830
|
}
|
23791
23831
|
handleTreeItemSelected(event) {
|
@@ -23838,14 +23878,14 @@ class TreeView {
|
|
23838
23878
|
}
|
23839
23879
|
render() {
|
23840
23880
|
const { heading, isLoaded, size, theme, truncateHeading } = this;
|
23841
|
-
return (hAsync(Host, { key: '
|
23881
|
+
return (hAsync(Host, { key: '27580c72297c3cd967fca56e2173e804471021b7', "context-id": this.treeViewId, class: {
|
23842
23882
|
[`ic-tree-view-${size}`]: size !== "medium",
|
23843
23883
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
23844
23884
|
"ic-tree-view-truncate": truncateHeading,
|
23845
|
-
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '
|
23885
|
+
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '0c140dad9e375bd767f0666208ac543a5a6cea6b', class: "heading-area-container" }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: 'fab7825c158e50006616e74d05291a2fb84ad57a', class: "icon-container" }, hAsync("slot", { key: '13add86d2c3b7df897de7d32e44eb115e8d7c06c', name: "icon" }))), hAsync("ic-typography", { key: 'ec68ded1444f4624ac02925be47e86733453f695', variant: "subtitle-large", class: {
|
23846
23886
|
"tree-view-header": true,
|
23847
23887
|
"with-padding": this.truncateHeading && !isLoaded,
|
23848
|
-
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '
|
23888
|
+
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '54f0e3343a5ee14a951646a27636b2b86e067b7d' })));
|
23849
23889
|
}
|
23850
23890
|
get el() { return getElement(this); }
|
23851
23891
|
static get watchers() { return {
|