@genexus/genexus-ide-ui 0.0.101 → 0.0.102

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.
Files changed (29) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-new-object.cjs.entry.js +57 -7
  3. package/dist/cjs/gx-ide-new-object.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gxg-list-box_2.cjs.entry.js +9 -0
  5. package/dist/cjs/gxg-list-box_2.cjs.entry.js.map +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/components/new-object/new-object.js +74 -7
  8. package/dist/collection/components/new-object/new-object.js.map +1 -1
  9. package/dist/components/gx-ide-new-object.js +58 -7
  10. package/dist/components/gx-ide-new-object.js.map +1 -1
  11. package/dist/components/list-box.js +12 -1
  12. package/dist/components/list-box.js.map +1 -1
  13. package/dist/esm/genexus-ide-ui.js +1 -1
  14. package/dist/esm/gx-ide-new-object.entry.js +57 -7
  15. package/dist/esm/gx-ide-new-object.entry.js.map +1 -1
  16. package/dist/esm/gxg-list-box_2.entry.js +9 -0
  17. package/dist/esm/gxg-list-box_2.entry.js.map +1 -1
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  20. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  21. package/dist/genexus-ide-ui/{p-4a5ad686.entry.js → p-ac1a72d9.entry.js} +62 -11
  22. package/dist/genexus-ide-ui/p-ac1a72d9.entry.js.map +1 -0
  23. package/dist/genexus-ide-ui/{p-4e155cd5.entry.js → p-bf7c17a8.entry.js} +10 -1
  24. package/dist/genexus-ide-ui/p-bf7c17a8.entry.js.map +1 -0
  25. package/dist/types/components/new-object/new-object.d.ts +15 -1
  26. package/dist/types/components.d.ts +8 -0
  27. package/package.json +3 -3
  28. package/dist/genexus-ide-ui/p-4a5ad686.entry.js.map +0 -1
  29. package/dist/genexus-ide-ui/p-4e155cd5.entry.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"names":["repositionScroll","scollableElementRef","activeItem","direction","scrollableElement","hasVerticalScrollbar","scrollHeight","clientHeight","scrollableElementScrollTop","scrollTop","KK","ARROW_UP","scrollableElementTop","getBoundingClientRect","top","selectedItemTop","offset","scrollTo","ARROW_DOWN","scrollableElementBottom","bottom","selectedItemBottom","console","log","listBoxCss","GxgListBox","constructor","hostRef","this","userUsedKeyboard","selectedItemsState","formMessageLogic","setIndexes","allItems","getAllItems","forEach","item","i","index","initialSetup","enabledItems","getEnabledItems","selectedItemsLength","selectItem","allowsEmpty","firstDeselectedItem","find","selected","singleSelection","selectedItems","getSelectedItemsFunc","selectedItem","currentActiveItem","getActiveItem","firstEnabledItem","active","disabled","disabledHandler","checkboxes","checkbox","handleKeyDown","e","ctrlKey","cmdKey","metaKey","shiftKey","code","preventDefault","handleArrow","unselectHighlightedItems","clearSelectedItems","selectItems","clearHighlightedItems","checked","highlightAll","newElement","activeElement","getNextItem","getPrevItem","unhighlightAll","setActiveItem","highlightItem","main","setSiblingSelected","async","length","siblingIsSelected","getIndexByElement","el","element","evaluateSelectedItems","selectedItemsArray","selectedItemsArrayFullInfo","getSelectedItems","then","result","push","value","arraysDiffer","JSON","stringify","updateSelectedItems","allItemsArray","querySelectorAll","theTitle","undefined","emitEmptySelection","keyboardSuggestions","checkCheckbox","uncheckCheckbox","disableSuggestions","noBorder","borderTop","borderEnd","borderBottom","borderStart","checkedItems","hideKeyboardSuggestions","headerHeight","required","validationStatus","validationMessage","informationMessage","selectedItemsInformation","textContent","componentDidRender","header","componentDidLoad","checkboxClickedHandler","containerEl","focus","itemLoadedHandler","itemClickedHandler","event","clickedItem","unselectItems","fromIndex","toIndex","activeItemIndex","selectMultipleItems","unhighlightItem","toggleItem","selectedItemsHandler","newArray","selectionChanged","emit","items","checkedItemsHandler","checkedChanged","disabledItems","getDisabledItems","hideKeyboardSuggestionsHandler","newValue","oldValue","localStorage","setItem","itemSelectedHandler","checkboxStateChangedHandler","checkedItemEl","detail","checkedItem","checkedItemValue","checkedItemsArray","enabledItem","getItem","ignoreHighlighted","actualSelectedItems","doNotActivate","highlighted","ignoreActiveItem","toggleHighlightedItems","highlightedItems","getHighlightedItems","selectHighlightedItems","spacePressed","highlightedItemsArray","getHighlightedItemsLength","highlightedItemsLength","getItemByIndex","itemByIndex","currentActive","enabledActiveItemIndex","findIndex","Array","isArray","unselected","clearActiveItem","enabledItemsArray","disabledItemsArray","setCheckboxState","check","changed","getFirstEnabledItem","getFirstSelectedItem","comparator","fromIndexCopy","renderKeyboardSuggestions","Object","keys","itemsArray","key","listItem","h","class","type","icon","onClick","render","Host","large","state","formClasses","commonClassesNames","onKeyDown","container","tabindex","ref","style","height","listBoxItemCss","GxgListboxItem","parts","handleCheckboxClick","checkboxClicked","stopPropagation","target","attachExportParts","part","getAttribute","exportPartsResult","exportParts","exportparts","emitCheckboxChange","mouseOver","watchPropHandler","itemSelected","checkedChangedHandler","checkboxChangedHandler","checkboxStateChanged","iconColor","componentWillLoad","itemLoaded","itemClickedFunc","itemClicked","onMouseOver","onMouseOut","bind","color","size"],"sources":["node_modules/@genexus/gemini/dist/collection/common/reposition-scroll.js","node_modules/@genexus/gemini/dist/collection/components/list-box/list-box.css?tag=gxg-list-box&encapsulation=shadow","node_modules/@genexus/gemini/dist/collection/components/list-box/list-box.js","node_modules/@genexus/gemini/dist/collection/components/list-box-item/list-box-item.css?tag=gxg-list-box-item&encapsulation=shadow","node_modules/@genexus/gemini/dist/collection/components/list-box-item/list-box-item.js"],"sourcesContent":["import { KeyboardKeys as KK } from \"./types\";\nexport const repositionScroll = (scollableElementRef, activeItem, direction) => {\n const scrollableElement = scollableElementRef;\n const hasVerticalScrollbar = scrollableElement?.scrollHeight > scrollableElement?.clientHeight;\n if (hasVerticalScrollbar && activeItem) {\n const scrollableElementScrollTop = scrollableElement.scrollTop;\n if (direction === KK.ARROW_UP) {\n const scrollableElementTop = scrollableElement.getBoundingClientRect().top;\n const selectedItemTop = activeItem.getBoundingClientRect().top;\n if (selectedItemTop < scrollableElementTop) {\n const offset = scrollableElementTop - selectedItemTop;\n scrollableElement.scrollTo(0, scrollableElementScrollTop - offset);\n }\n }\n else if (direction === KK.ARROW_DOWN) {\n const scrollableElementBottom = scrollableElement.getBoundingClientRect().bottom;\n const selectedItemBottom = activeItem.getBoundingClientRect().bottom;\n if (selectedItemBottom > scrollableElementBottom) {\n console.log(\"selectedItemBottom\", selectedItemBottom);\n console.log(\"scrollableElementBottom\", scrollableElementBottom);\n const offset = selectedItemBottom - scrollableElementBottom;\n scrollableElement.scrollTo(0, scrollableElementScrollTop + offset);\n }\n }\n }\n};\n//# sourceMappingURL=reposition-scroll.js.map\n",":host(.gxg--disabled) .form-element,\n:host(.gxg--disabled.form-element) {\n pointer-events: none;\n background-color: var(--ds-background-color-disabled) !important;\n color: var(--ds-color--disabled) !important;\n border-color: var(--ds-border-color-disabled) !important;\n cursor: default !important;\n}\n\n:root {\n --ui-animaton-speed: 0.2s;\n}\n\n/*ALIGNMENT*/\n/*Ellipsis*/\n/*****************************************************\nTYPOGRAPHY\n*****************************************************/\n/*Title 01 (Positive)*/\n.gxg-title-01 {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-01-font-weight);\n font-size: var(--ds-title-01-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--comfortable);\n color: var(--ds-base-font-color);\n text-align: start;\n line-height: var(--ds-base-font-line-height--comfortable);\n}\n\n/*Title 01 (Negative)*/\n.gxg-title-01--negative {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-01-font-weight);\n font-size: var(--ds-title-01-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--comfortable);\n color: var(--ds-base-font-color);\n text-align: start;\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--negative);\n}\n\n/*Title 02 (Positive)*/\n.gxg-title-02 {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-02-font-weight);\n font-size: var(--ds-title-02-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--regular);\n color: var(--ds-base-font-color);\n text-align: start;\n text-transform: uppercase;\n line-height: var(--ds-base-font-line-height--comfortable);\n}\n\n.gxg-title-02--negative {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-02-font-weight);\n font-size: var(--ds-title-02-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--regular);\n color: var(--ds-base-font-color);\n text-align: start;\n text-transform: uppercase;\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--color-on-primary);\n}\n\n/*Title 03*/\n.gxg-title-03 {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-03-font-weight);\n font-size: var(--ds-title-03-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--regular);\n color: var(--ds-base-font-color);\n text-align: start;\n text-transform: uppercase;\n line-height: var(--ds-base-font-line-height--comfortable);\n}\n\n.gxg-title-03--negative {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-03-font-weight);\n font-size: var(--ds-title-03-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--regular);\n color: var(--ds-base-font-color);\n text-align: start;\n text-transform: uppercase;\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--negative);\n}\n\n/*Title 04*/\n.gxg-title-04 {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-04-font-weight);\n font-size: var(--ds-title-04-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--comfortable);\n color: var(--ds-base-font-color);\n text-align: start;\n line-height: var(--ds-base-font-line-height--comfortable);\n}\n\n.gxg-title-04--negative {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-04-font-weight);\n font-size: var(--ds-title-04-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--comfortable);\n color: var(--ds-base-font-color);\n text-align: start;\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--negative);\n}\n\n/*Title 05*/\n.gxg-title-05 {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-05-font-weight);\n font-size: var(--ds-title-05-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--regular);\n color: var(--ds-base-font-color);\n text-align: start;\n line-height: var(--ds-base-font-line-height--comfortable);\n}\n\n.gxg-title-05--negative {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-05-font-weight);\n font-size: var(--ds-title-05-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--regular);\n color: var(--ds-base-font-color);\n text-align: start;\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--negative);\n}\n\n/*Text*/\n.gxg-text {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n}\n\n.gxg-text--negative {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--negative);\n}\n\n.gxg-text--gray {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--dimmed);\n}\n\n/*Quote*/\n.gxg-quote {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n font-style: italic;\n}\n\n.gxg-quote--negative {\n color: var(--ds-base-font-color--negative);\n}\n\n/*Link*/\n.gxg-link {\n line-height: unset;\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--link);\n text-decoration: underline;\n cursor: pointer;\n display: inline-block;\n}\n.gxg-link:hover {\n color: var(--ds-base-font-color--link-hover);\n}\n.gxg-link:active {\n color: var(--ds-base-font-color--link-active);\n}\n\n.gxg-link-gray {\n line-height: unset;\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--link);\n text-decoration: underline;\n cursor: pointer;\n display: inline-block;\n color: var(--ds-base-font-color--dimmed);\n}\n.gxg-link-gray:hover {\n line-height: unset;\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--link);\n text-decoration: underline;\n cursor: pointer;\n display: inline-block;\n color: var(--ds-base-font-color--dimmed);\n filter: brightness(1.4);\n}\n\n/*Alerts*/\n.gxg-alert-error {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--error);\n display: inline-block;\n}\n\n.gxg-alert-warning {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--warning);\n display: inline-block;\n}\n\n.gxg-alert-success {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--success);\n display: inline-block;\n}\n\n/*Tab*/\n.gxg-tab--disabled {\n color: var(--color-primary-disabled);\n pointer-events: none;\n}\n.gxg-tab--disabled[disabled] {\n color: var(--color-primary-disabled);\n pointer-events: none;\n}\n\n/*Label*/\n.gxg-label {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--gxg-label-font-weight);\n font-size: var(--gxg-label-font-size);\n color: var(--gxg-label-color);\n text-align: center;\n line-height: 1.455em;\n display: flex;\n align-items: center;\n}\n.gxg-label:hover {\n color: var(--color-primary-hover);\n}\n.gxg-label:focus {\n color: var(--color-primary-active);\n}\n.gxg-label:active {\n color: var(--color-primary-active);\n}\n.gxg-label[disabled] {\n color: var(--color-primary-disabled);\n}\n\n.gxg-label--negative {\n color: var(--color-on-primary);\n}\n.gxg-label--negative[disabled] {\n color: var(--color-on-disabled);\n}\n\n/*****************************************************\nGXG-BUTTON and GXG-BUTTON-GROUP COMMON STYLES\n*****************************************************/\n/*****************************************************\nFORM ELEMENTS\n*****************************************************/\n.gxg-scrollbar {\n /* Track */\n /* Handle */\n /* Handle on hover */\n}\n.gxg-scrollbar::-webkit-scrollbar {\n width: var(--gxg-scrollbar-width);\n height: var(--gxg-scrollbar-width);\n}\n.gxg-scrollbar::-webkit-scrollbar-track {\n background-color: var(--gxg-scrollbar-track-background);\n border-radius: var(--gxg-scrollbar-track-border-radius);\n}\n.gxg-scrollbar::-webkit-scrollbar-thumb {\n background-color: var(--gxg-scrollbar-track-thumb-background);\n border-radius: var(--gxg-scrollbar-track-thumb-radius);\n}\n.gxg-scrollbar::-webkit-scrollbar-thumb:hover {\n background-color: var(--gxg-scrollbar-track-thumb-hover-background);\n}\n.gxg-scrollbar::-webkit-scrollbar-corner {\n background: rgba(0, 0, 0, 0);\n}\n\n/*Warning*/\n:host(.gxg-validation--warning) .form-element {\n border-color: var(--ds-border-color--warning);\n}\n:host(.gxg-validation--warning) .form-element:focus {\n outline-color: var(--ds-border-color--warning);\n border-color: var(--ds-border-color--warning);\n}\n:host(.gxg-validation--warning) .form-element:focus + .checkmark {\n --checkmark-border-color: var(--ds-border-color--warning);\n}\n\n/*Error*/\n:host(.gxg-validation--error) .form-element {\n border-color: var(--ds-border-color--error);\n}\n:host(.gxg-validation--error) .form-element:focus {\n outline-color: var(--ds-border-color--error);\n border-color: var(--ds-border-color--error);\n}\n:host(.gxg-validation--error) .form-element:focus + .checkmark {\n --checkmark-border-color: var(--ds-border-color--error);\n}\n\n/*Success*/\n:host(.gxg-validation--success) .form-element {\n border-color: var(--ds-border-color--success);\n}\n:host(.gxg-validation--success) .form-element:focus {\n outline-color: var(--ds-border-color--success);\n border-color: var(--ds-border-color--success);\n}\n:host(.gxg-validation--success) .form-element:focus + .checkmark {\n --checkmark-border-color: var(--ds-border-color--success);\n}\n\n/*Tooltip*/\n.tooltip-outer-wrapper {\n display: grid;\n grid-template-columns: 0fr;\n transition: grid-template-columns var(--timing-02);\n}\n\n:host(.tooltip--visible) .tooltip-outer-wrapper {\n grid-template-columns: 1fr;\n}\n\n.tooltip-inner-wrapper {\n --margin-inline-start: 6px;\n overflow: hidden;\n transition: 150ms width;\n width: 0;\n}\n.tooltip-inner-wrapper gxg-icon {\n display: flex;\n position: relative !important;\n top: 0 !important;\n transform: none !important;\n margin-inline-start: var(--margin-inline-start);\n box-sizing: border-box;\n}\n.tooltip-inner-wrapper--visible {\n width: calc(var(--ds-icon-size-box--small) + var(--margin-inline-start));\n}\n.tooltip-inner-wrapper--hidden {\n display: none;\n}\n\n:host {\n display: block;\n font-size: var(--ds-base-font-size);\n font-family: var(--ds-base-font-family-primary);\n background-color: var(--ds-base-background-color);\n color: var(--ds-base-font-color);\n height: 100%;\n}\n:host .container {\n height: 100%;\n border: var(--gxg-list-box-container__border);\n border-radius: var(--gxg-list-box-general__border-radius);\n overflow: hidden;\n box-sizing: border-box;\n}\n:host .header {\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n box-sizing: border-box;\n background-color: var(--gxg-list-box-header__background-color);\n border-bottom: var(--ds-border-common-styles);\n padding: var(--gxg-list-box-header__padding);\n text-transform: capitalize;\n font-size: inherit;\n font-weight: var(--gxg-list-box-header__font-weight);\n color: var(--gxg-list-box-header__color);\n}\n:host .icon {\n margin-inline-end: var(--spacing-comp-01);\n}\n:host .checkbox {\n margin-inline-end: var(--spacing-comp-01);\n}\n\n.main {\n overflow-y: auto;\n /* Track */\n /* Handle */\n /* Handle on hover */\n padding: var(--gxg-list-box-main__padding);\n box-sizing: border-box;\n}\n.main::-webkit-scrollbar {\n width: var(--gxg-scrollbar-width);\n height: var(--gxg-scrollbar-width);\n}\n.main::-webkit-scrollbar-track {\n background-color: var(--gxg-scrollbar-track-background);\n border-radius: var(--gxg-scrollbar-track-border-radius);\n}\n.main::-webkit-scrollbar-thumb {\n background-color: var(--gxg-scrollbar-track-thumb-background);\n border-radius: var(--gxg-scrollbar-track-thumb-radius);\n}\n.main::-webkit-scrollbar-thumb:hover {\n background-color: var(--gxg-scrollbar-track-thumb-hover-background);\n}\n.main::-webkit-scrollbar-corner {\n background: rgba(0, 0, 0, 0);\n}\n.main--no-border {\n border: none;\n}\n\n.container:focus-within {\n outline: none;\n}\n\n.container:not(:focus-within) {\n --ds-border-color-control--focused: transparent;\n --ds-border-color--focused: transparent;\n --ds-focus-border-color: transparent;\n}\n\n:host([no-border]) .container {\n border: none;\n}\n\n/*SUGGESTION LIST*/\n.suggestions__container {\n background-color: var(--gxg-list-box-suggestions-container__background-color);\n color: var(--gxg-list-box-suggestions-container__color);\n font-family: inherit;\n font-size: var(--gxg-list-box-suggestions-container__font-size);\n padding: var(--gxg-list-box-suggestions-container__padding);\n display: flex;\n gap: var(--gxg-list-box-suggestions-container__gap);\n align-items: center;\n}\n.suggestions__list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n flex-grow: 1;\n}\n\n/*BORDERS*/\n:host([no-border]) .container {\n border: none;\n}\n\n:host([border-top]) .container {\n border-top: 1px solid var(--ds-border-color--regular);\n}\n\n:host([border-end]) .container {\n border-inline-end: 1px solid var(--ds-border-color--regular);\n}\n\n:host([border-bottom]) .container {\n border-bottom: 1px solid var(--ds-border-color--regular);\n}\n\n:host([border-start]) .container {\n border-inline-start: 1px solid var(--ds-border-color--regular);\n}\n\n/*Disabled*/\n:host(.gxg--disabled) .header {\n color: var(--ds-color--disabled);\n border-bottom-color: var(--ds-border-color-disabled);\n}\n\n/*********************************************\nVALIDATION\n**********************************************/\n.messages-wrapper {\n margin-top: var(--spacing-comp-02);\n display: flex;\n gap: var(--spacing-comp-01);\n flex-direction: column;\n}","import { Host, h } from \"@stencil/core\";\nimport { formMessageLogic } from \"../../common/form\";\nimport { formClasses } from \"../../common/classesNames\";\nimport { commonClassesNames } from \"../../common/classesNames\";\nimport { repositionScroll } from \"../../common/reposition-scroll\";\nimport state from \"../store\";\nexport class GxgListBox {\n constructor() {\n this.theTitle = undefined;\n this.checkboxes = false;\n this.singleSelection = false;\n this.allowsEmpty = false;\n this.emitEmptySelection = false;\n this.keyboardSuggestions = {\n checkCheckbox: \"to check a checkbox press (shift + space)\",\n uncheckCheckbox: \"to uncheck a checkbox press (shift + ctrl + space)\"\n };\n this.disableSuggestions = false;\n this.noBorder = false;\n this.borderTop = false;\n this.borderEnd = false;\n this.borderBottom = false;\n this.borderStart = false;\n this.selectedItems = [];\n this.checkedItems = [];\n this.hideKeyboardSuggestions = true;\n this.headerHeight = 0;\n this.disabled = false;\n this.required = false;\n this.validationStatus = \"indeterminate\";\n this.validationMessage = undefined;\n this.informationMessage = undefined;\n }\n /**\n * This event emits the items that are currently selected. event.detail contains the selected items as objects. Each object contains the item idex and the item value. If value was not provided, the value will be the item innerText.\n */\n selectionChanged;\n checkedChanged;\n el;\n header;\n main;\n containerEl;\n /**\n * This is needed to evaluate if keyboard suggestions should be displayed.\n */\n userUsedKeyboard = false;\n activeItem;\n selectedItemsState = [];\n /*VALIDATION*/\n formMessageLogic = formMessageLogic;\n /*********************************\n METHODS\n *********************************/\n async getSelectedItems() {\n const selectedItems = this.getSelectedItemsFunc();\n const selectedItemsInformation = [];\n selectedItems.forEach(selectedItem => {\n selectedItemsInformation.push({\n active: selectedItem.active,\n selected: selectedItem.selected,\n checked: selectedItem.checked,\n index: selectedItem.index,\n value: selectedItem.value || selectedItem.textContent\n });\n });\n return selectedItemsInformation;\n }\n componentDidRender() {\n if (this.theTitle) {\n this.headerHeight = this.header.clientHeight;\n }\n }\n componentDidLoad() {\n //this.setInitialActive();\n }\n setIndexes = () => {\n const allItems = this.getAllItems();\n allItems.forEach((item, i) => {\n item.index = i;\n });\n };\n initialSetup = () => {\n const enabledItems = this.getEnabledItems();\n const selectedItemsLength = this.selectedItemsLength();\n //1. Select item if allowsEmpty is false and no item is currently selected\n const selectItem = !this.allowsEmpty && selectedItemsLength === 0;\n if (selectItem) {\n const firstDeselectedItem = enabledItems.find(item => {\n return !item.selected;\n });\n firstDeselectedItem && (firstDeselectedItem.selected = true);\n }\n else if (this.singleSelection && selectedItemsLength > 1) {\n //Only one item can be selected. Unselect every selected items, except the first one.\n const selectedItems = this.getSelectedItemsFunc();\n selectedItems.forEach((selectedItem, i) => {\n if (i !== 0) {\n selectedItem.selected = false;\n }\n });\n }\n //2. Set active item, if not active item exists yet\n const currentActiveItem = this.getActiveItem();\n if (!currentActiveItem) {\n const firstEnabledItem = this.getEnabledItems()[0];\n if (firstEnabledItem) {\n firstEnabledItem.active = true;\n this.activeItem = firstEnabledItem;\n }\n }\n //3. Set index on every item\n this.setIndexes();\n //4. disable items\n if (this.disabled) {\n this.disabledHandler(true);\n }\n //5. set checkboxes\n if (this.checkboxes) {\n const allItems = this.getAllItems();\n allItems.forEach(item => {\n item.checkbox = true;\n });\n }\n };\n checkboxClickedHandler() {\n this.containerEl.focus();\n }\n itemLoadedHandler() {\n this.initialSetup();\n this.updateSelectedItems();\n }\n itemClickedHandler(event) {\n const { clickedItem, ctrlKey, cmdKey, shiftKey, index } = event[\"detail\"];\n if (this.singleSelection) {\n this.setActiveItem(clickedItem);\n }\n this.containerEl.focus();\n //this.clearActiveItem();\n if (this.singleSelection) {\n if (clickedItem.selected &&\n !this.allowsEmpty) {\n /*same item. do nothing.*/\n return;\n }\n if (this.allowsEmpty && (ctrlKey || cmdKey)) {\n this.unselectItems(clickedItem);\n }\n else {\n this.clearHighlightedItems();\n this.clearSelectedItems();\n this.selectItems(clickedItem);\n this.highlightItem(clickedItem);\n }\n }\n else {\n /*multiple-selection allowed*/\n if (shiftKey || (!cmdKey && !cmdKey)) {\n this.clearHighlightedItems();\n this.clearSelectedItems();\n }\n if (shiftKey) {\n if (this.activeItem === clickedItem)\n return;\n let fromIndex;\n const toIndex = index;\n if (this.activeItem) {\n const activeItemIndex = this.getIndexByElement(this.activeItem);\n if (index === activeItemIndex) {\n return;\n }\n fromIndex = activeItemIndex;\n }\n else {\n fromIndex = 0;\n }\n this.selectMultipleItems(fromIndex, toIndex);\n }\n else if (ctrlKey || cmdKey) {\n if (!this.allowsEmpty &&\n this.selectedItemsLength() === 1 &&\n clickedItem.selected) {\n return;\n }\n this.unhighlightItem(this.activeItem);\n this.toggleItem(clickedItem);\n this.highlightItem(clickedItem);\n }\n else {\n this.selectItems(clickedItem);\n this.highlightItem(clickedItem);\n }\n }\n this.setActiveItem(clickedItem);\n this.evaluateSelectedItems();\n }\n selectedItemsHandler(newArray) {\n this.selectionChanged.emit({ items: newArray });\n }\n checkedItemsHandler(newArray) {\n this.checkedChanged.emit(newArray);\n }\n disabledHandler(disabled) {\n if (disabled) {\n const enabledItems = this.getEnabledItems();\n enabledItems?.forEach(item => {\n item.disabled = true;\n });\n }\n else {\n const disabledItems = this.getDisabledItems();\n disabledItems?.forEach(item => {\n item.disabled = false;\n });\n }\n }\n hideKeyboardSuggestionsHandler(newValue, oldValue) {\n newValue === true &&\n oldValue === false &&\n localStorage.setItem(\"gxg-list-box-hide-keyboard-suggestions\", \"true\");\n }\n itemSelectedHandler() {\n this.setSiblingSelected();\n }\n checkboxStateChangedHandler(e) {\n const checkedItemEl = e.detail.checkedItem;\n const checkedItemValue = e.detail.checked;\n /*Update checkboxes array*/\n const checkedItemsArray = [];\n const enabledItems = this.getEnabledItems();\n if (enabledItems?.length) {\n enabledItems.forEach(enabledItem => {\n let item;\n if (enabledItem === checkedItemEl) {\n item = checkedItemEl;\n }\n else {\n item = enabledItem;\n }\n const checked = enabledItem === checkedItemEl ? checkedItemValue : item.checked;\n if (item && checked) {\n checkedItemsArray.push({\n active: item.active,\n selected: item.selected,\n checked: checked,\n index: item.index,\n value: item.value || item.textContent\n });\n }\n });\n this.checkedItems = checkedItemsArray;\n }\n /*Local Storage*/\n const localStorageExists = localStorage.getItem(\"gxg-list-box-hide-keyboard-suggestions\");\n if (!localStorageExists &&\n !this.disableSuggestions &&\n this.userUsedKeyboard) {\n // this.hideKeyboardSuggestions = false;\n }\n }\n handleKeyDown = (e) => {\n this.userUsedKeyboard = true;\n const ctrlKey = e.ctrlKey;\n const cmdKey = e.metaKey;\n const shiftKey = e.shiftKey;\n //const activeItemIndex = this.getIndexByElement(this.activeItem);\n if (e.code === \"ArrowDown\" ||\n e.code === \"ArrowUp\" ||\n e.code === \"Space\" ||\n e.code === \"Backspace\" ||\n e.code === \"Delete\" ||\n e.code === \"KeyA\") {\n e.preventDefault();\n }\n if (e.code === \"ArrowDown\" || e.code === \"ArrowUp\") {\n this.handleArrow(e.code, shiftKey);\n }\n else if (e.code === \"Space\") {\n if (shiftKey && ctrlKey) {\n /*uncheck checkbox*/\n // const changedLength = this.setCheckboxState(\n // this.getHighlightedItems(),\n // false\n // );\n //changedLength > 0 && (this.hideKeyboardSuggestions = true);\n }\n else if (shiftKey && (!ctrlKey || !cmdKey)) {\n // const changedLength = this.setCheckboxState(\n // this.getHighlightedItems(),\n // true\n // );\n // changedLength > 0 && (this.hideKeyboardSuggestions = true);\n }\n else if (!shiftKey &&\n (ctrlKey || cmdKey) &&\n this.selectedItemsLength() >= 1) {\n this.unselectHighlightedItems(true);\n }\n else if (!ctrlKey && !cmdKey) {\n if (this.singleSelection) {\n if (this.activeItem === this.getSelectedItemsFunc()[0]) {\n return;\n }\n this.clearSelectedItems();\n this.selectItems(this.activeItem);\n }\n else {\n /*multi-select allowed*/\n if (ctrlKey || cmdKey) {\n this.clearHighlightedItems();\n }\n else {\n this.selectItems(this.activeItem);\n //this.selectHighlightedItems();\n }\n }\n }\n const selectedItems = this.getSelectedItemsFunc();\n if (!ctrlKey || !cmdKey) {\n selectedItems.forEach(item => {\n item.checked = true;\n });\n }\n else {\n selectedItems.forEach(item => {\n item.checked = false;\n });\n }\n }\n else if (e.code === \"KeyA\" &&\n (ctrlKey || cmdKey) &&\n !this.singleSelection) {\n /*highlight all*/\n this.highlightAll();\n }\n else if (e.code === \"Delete\" || e.code === \"Backspace\") {\n /*Deselect highlighted items*/\n this.unselectHighlightedItems();\n }\n //this.evaluateSelectedItems();\n };\n handleArrow = (direction, shiftKey) => {\n /*Get the next element*/\n let newElement;\n const activeElement = this.getActiveItem();\n newElement =\n direction === \"ArrowDown\"\n ? (newElement = this.getNextItem(activeElement))\n : (newElement = this.getPrevItem(activeElement));\n /*Handle*/\n if (newElement) {\n this.singleSelection &&\n !this.allowsEmpty &&\n newElement !== this.getSelectedItemsFunc()[0] &&\n this.clearSelectedItems();\n if (shiftKey && !this.singleSelection) {\n !this.activeItem.selected && this.selectItems(this.activeItem);\n !newElement.selected && this.selectItems(newElement);\n }\n this.unhighlightAll();\n this.setActiveItem(newElement);\n this.highlightItem(newElement);\n if (shiftKey && !this.singleSelection) {\n //this.selectItems(this.activeItem);\n }\n if ((this.singleSelection || (!this.singleSelection && shiftKey)) &&\n !newElement.selected &&\n !this.allowsEmpty) {\n this.selectItems(newElement);\n }\n else if (this.singleSelection) {\n }\n repositionScroll(this.main, newElement, direction);\n }\n };\n /* SELECTED */\n setSiblingSelected = async () => {\n const allItems = this.getAllItems();\n allItems.forEach((item, i) => {\n if (i === allItems.length - 1) {\n item.siblingIsSelected = false;\n }\n else {\n if (allItems[i + 1].selected) {\n item.siblingIsSelected = true;\n }\n else {\n item.siblingIsSelected = false;\n }\n }\n });\n };\n clearSelectedItems(ignoreHighlighted = false) {\n const actualSelectedItems = ignoreHighlighted\n ? this.el.querySelectorAll(\"gxg-list-box-item[selected]:not([highlighted])\")\n : this.el.querySelectorAll(\"gxg-list-box-item[selected]\");\n if (actualSelectedItems.length > 0) {\n actualSelectedItems.forEach(item => {\n this.unselectItems(item);\n });\n }\n }\n selectedItemsLength = () => {\n return this.getSelectedItemsFunc().length;\n };\n getSelectedItemsFunc() {\n const selectedItemsArray = [];\n const enabledItems = this.getAllItems();\n if (enabledItems?.length) {\n enabledItems.forEach(item => {\n item.selected && selectedItemsArray.push(item);\n });\n }\n return selectedItemsArray;\n }\n /* HIGHLIGHTED */\n highlightItem(item, doNotActivate = false) {\n if (item) {\n this.singleSelection && this.clearHighlightedItems();\n item.highlighted = true;\n !doNotActivate && (this.activeItem = item);\n }\n }\n unhighlightItem(item) {\n if (item) {\n item.highlighted = false;\n }\n }\n unhighlightAll(ignoreActiveItem = false) {\n const enabledItems = this.getEnabledItems();\n if (enabledItems?.length) {\n enabledItems.forEach(item => {\n ignoreActiveItem && item === this.activeItem\n ? null\n : (item.highlighted = false);\n });\n return enabledItems.length;\n }\n return 0;\n }\n toggleHighlightedItems() {\n const highlightedItems = this.getHighlightedItems();\n highlightedItems.forEach(item => {\n this.toggleItem(item);\n });\n }\n selectHighlightedItems() {\n const selectedItems = this.selectItems(this.getHighlightedItems());\n return selectedItems;\n }\n unselectHighlightedItems(spacePressed = false) {\n const length = this.unselectItems(this.getHighlightedItems(), spacePressed);\n return length;\n }\n clearHighlightedItems() {\n const enabledItems = this.getEnabledItems();\n if (enabledItems?.length) {\n enabledItems.forEach(item => {\n item.highlighted && this.unhighlightItem(item);\n });\n }\n }\n getHighlightedItems() {\n const highlightedItemsArray = [];\n const enabledItems = this.getEnabledItems();\n if (enabledItems?.length) {\n enabledItems.forEach(item => {\n item.highlighted && highlightedItemsArray.push(item);\n });\n }\n return highlightedItemsArray;\n }\n getHighlightedItemsLength() {\n return this.getHighlightedItems().length;\n }\n highlightAll() {\n let highlightedItemsLength = 0;\n const enabledItems = this.getEnabledItems();\n if (enabledItems?.length) {\n enabledItems.forEach(item => {\n this.highlightItem(item, true);\n highlightedItemsLength++;\n });\n }\n return highlightedItemsLength;\n }\n /* INDEX */\n getItemByIndex(index) {\n const enabledItems = this.getEnabledItems();\n let itemByIndex;\n if (enabledItems?.length) {\n itemByIndex = enabledItems.find(item => item.index === index);\n }\n return itemByIndex;\n }\n getIndexByElement = (el) => {\n let index;\n const enabledItems = this.getEnabledItems();\n if (enabledItems?.length) {\n const element = enabledItems.find(item => item === el);\n element && (index = element.index);\n }\n return index;\n };\n /* PREV/NEXT */\n getNextItem(currentActive) {\n const enabledItems = this.getEnabledItems();\n const enabledActiveItemIndex = enabledItems.findIndex(enabledItem => {\n return enabledItem === currentActive;\n });\n //If is the last item, do nothing\n if (enabledActiveItemIndex === enabledItems.length - 1) {\n return null;\n }\n else {\n return enabledItems[enabledActiveItemIndex + 1];\n }\n }\n getPrevItem(currentActive) {\n const enabledItems = this.getEnabledItems();\n const enabledActiveItemIndex = enabledItems.findIndex(enabledItem => {\n return enabledItem === currentActive;\n });\n //If is the first item, do nothing\n if (enabledActiveItemIndex === 0) {\n return null;\n }\n else {\n return enabledItems[enabledActiveItemIndex - 1];\n }\n }\n /* SELECTED */\n selectItems(items) {\n let selected = 0;\n if (items && Array.isArray(items) && items.length > 0) {\n items.forEach(item => {\n if (!item.selected && !item.disabled) {\n (item.selected = true) && selected++;\n }\n this.activeItem !== item && this.unhighlightItem(item);\n });\n }\n else if (items && !Array.isArray(items)) {\n if (!items.selected && !items.disabled) {\n (items.selected = true) && selected++;\n }\n this.activeItem !== items && this.unhighlightItem(items);\n }\n //this.updateSelectedItems();\n return selected;\n }\n unselectItems(items, spacePressed = false) {\n let unselected = 0;\n let selectedItemsLength = this.selectedItemsLength();\n if (items &&\n Array.isArray(items) &&\n items.length > 0 &&\n selectedItemsLength > 0) {\n items.forEach(item => {\n if (item.selected && !item.disabled) {\n if (this.allowsEmpty) {\n item.selected = false;\n unselected++;\n }\n else {\n /*al least one item has to stay selected*/\n if (selectedItemsLength > 1) {\n item.selected = false;\n unselected++;\n selectedItemsLength--;\n }\n }\n }\n this.activeItem !== item && this.unhighlightItem(item);\n if (spacePressed) {\n item.checked = false;\n }\n });\n }\n else if (items && !Array.isArray(items)) {\n if (items.selected && !items.disabled) {\n items.selected = false;\n if (spacePressed) {\n items.checked = false;\n }\n unselected++;\n }\n this.activeItem !== items && this.unhighlightItem(items);\n }\n //unselected > 0 && this.updateSelectedItems();\n return unselected;\n }\n toggleItem(item) {\n if (item?.selected) {\n this.unselectItems(item);\n }\n else {\n this.selectItems(item);\n }\n }\n evaluateSelectedItems = () => {\n const selectedItemsArray = [];\n const selectedItemsArrayFullInfo = [];\n const selectedItems = this.getSelectedItems();\n selectedItems.then(result => {\n result.forEach(item => {\n selectedItemsArray.push(item.value);\n selectedItemsArrayFullInfo.push({\n active: item.active,\n selected: item.selected,\n checked: item.checked,\n index: item.index,\n value: item.value\n });\n });\n const arraysDiffer = JSON.stringify(this.selectedItemsState) !==\n JSON.stringify(selectedItemsArray);\n if (arraysDiffer) {\n this.selectedItemsState = selectedItemsArray;\n this.selectedItems = [...selectedItemsArrayFullInfo];\n }\n });\n };\n updateSelectedItems = () => {\n const selectedItemsArray = [];\n const selectedItems = this.getSelectedItems();\n selectedItems.then(result => {\n result.forEach(item => {\n selectedItemsArray.push(item.value);\n });\n const arraysDiffer = JSON.stringify(this.selectedItemsState) !==\n JSON.stringify(selectedItemsArray);\n if (arraysDiffer) {\n this.selectedItemsState = selectedItemsArray;\n }\n });\n };\n /* ACTIVE */\n getActiveItem() {\n const enabledItems = this.getEnabledItems();\n return enabledItems.find(item => item.active);\n }\n setActiveItem(item) {\n if (item) {\n this.clearActiveItem(); /*Only one active item allowed at a time*/\n item.active = true;\n this.activeItem = item;\n return true;\n }\n return false;\n }\n clearActiveItem() {\n const activeItem = this.getActiveItem();\n if (activeItem) {\n activeItem.active = false;\n return true;\n }\n return false;\n }\n /* ENABLED */\n getEnabledItems() {\n const enabledItemsArray = [];\n const enabledItems = this.el.querySelectorAll(\"gxg-list-box-item\");\n enabledItems.forEach(item => {\n !item.disabled && enabledItemsArray.push(item);\n });\n return enabledItemsArray;\n }\n /* DISABLED*/\n getDisabledItems() {\n const disabledItemsArray = [];\n const allItems = this.el.querySelectorAll(\"gxg-list-box-item\");\n allItems.forEach(item => {\n item.disabled && disabledItemsArray.push(item);\n });\n return disabledItemsArray;\n }\n /* CHECKBOX */\n setCheckboxState(items, check = true) {\n if (items && Array.isArray(items) && items.length !== 0) {\n let changed = 0;\n items.forEach(item => {\n if (!item.checked && check) {\n item.checked = true;\n changed++;\n }\n else if (item.checked && !check) {\n item.checked = false;\n changed++;\n }\n });\n return changed;\n }\n else if (!(items && Array.isArray(items))) {\n const item = items;\n if (!item.checked && check) {\n item.checked = true;\n return 1;\n }\n else if (item.checked && !check) {\n item.checked = false;\n return 1;\n }\n }\n return 0;\n }\n /* OTHER */\n getAllItems = () => {\n const allItemsArray = [];\n const allItems = this.el.querySelectorAll(\"gxg-list-box-item\");\n if (allItems?.length) {\n allItems.forEach(item => {\n allItemsArray.push(item);\n });\n }\n return allItemsArray;\n };\n getFirstEnabledItem() {\n return this.getEnabledItems()[0] || null;\n }\n getFirstSelectedItem() {\n const enabledItems = this.getEnabledItems();\n if (enabledItems?.length && enabledItems[0].selected) {\n return enabledItems[0];\n }\n return undefined;\n }\n selectMultipleItems(fromIndex, toIndex) {\n let comparator = toIndex;\n const selectedItems = [];\n if (fromIndex === toIndex) {\n return;\n }\n else if (fromIndex > toIndex) {\n const fromIndexCopy = fromIndex;\n fromIndex = toIndex;\n toIndex = fromIndexCopy;\n comparator = fromIndex;\n }\n for (let i = fromIndex; i <= toIndex; i++) {\n const item = this.getItemByIndex(i);\n item && selectedItems.push(item);\n if (i === comparator) {\n this.highlightItem(item);\n }\n }\n if (selectedItems?.length > 0) {\n this.selectItems(selectedItems);\n }\n }\n renderKeyboardSuggestions() {\n if (Object.keys(this.keyboardSuggestions).length) {\n const itemsArray = [];\n for (const key in this.keyboardSuggestions) {\n const listItem = (h(\"li\", { class: \"suggestions-__list-item\" }, this.keyboardSuggestions[key]));\n itemsArray.push(listItem);\n }\n return (h(\"div\", { class: \"suggestions suggestions__container\" }, h(\"ul\", { class: \"suggestions__list\" }, itemsArray), h(\"gxg-button\", { class: \"suggestions__button\", type: \"secondary-icon-only\", icon: \"gemini-tools/close\", onClick: () => (this.hideKeyboardSuggestions = true) })));\n }\n }\n /* RENDER */\n render() {\n return (h(Host, { class: {\n large: state.large,\n \"has-title\": !!this.theTitle,\n [formClasses[\"VALIDATION_INDETERMINATE_CLASS\"]]: this.validationStatus === \"indeterminate\",\n [formClasses[\"VALIDATION_WARNING_CLASS\"]]: this.validationStatus === \"warning\",\n [formClasses[\"VALIDATION_ERROR_CLASS\"]]: this.validationStatus === \"error\",\n [formClasses[\"VALIDATION_SUCCESS_CLASS\"]]: this.validationStatus === \"success\",\n [commonClassesNames[\"DISABLED_CLASS\"]]: this.disabled\n }, onKeyDown: this.handleKeyDown }, h(\"div\", { class: { container: true, \"form-element\": true }, tabindex: this.disabled ? \"-1\" : \"0\", ref: el => (this.containerEl = el) }, this.theTitle ? (h(\"header\", { class: { header: true }, ref: el => (this.header = el) }, this.theTitle)) : null, !this.disableSuggestions && !this.hideKeyboardSuggestions\n ? this.renderKeyboardSuggestions()\n : null, h(\"main\", { class: {\n main: true\n }, style: {\n height: `calc(100% - ${this.headerHeight}px)`\n }, ref: el => (this.main = el) }, h(\"slot\", null))), formMessageLogic(this)));\n }\n static get is() { return \"gxg-list-box\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"list-box.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"list-box.css\"]\n };\n }\n static get properties() {\n return {\n \"theTitle\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The listbox title that appears on the header\"\n },\n \"attribute\": \"the-title\",\n \"reflect\": false\n },\n \"checkboxes\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute will display a checkbox for every item\"\n },\n \"attribute\": \"checkboxes\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"singleSelection\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute will deactivate multi-selection\"\n },\n \"attribute\": \"single-selection\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"allowsEmpty\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute allows the list-box to not have any list-box-item selected\"\n },\n \"attribute\": \"allows-empty\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"emitEmptySelection\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute prevents 'selectionChanged' event from being emitted if the selection is empty.\"\n },\n \"attribute\": \"emit-empty-selection\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"keyboardSuggestions\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"KeyboardSuggestions\",\n \"resolved\": \"{ checkCheckbox: string; uncheckCheckbox: string; }\",\n \"references\": {\n \"KeyboardSuggestions\": {\n \"location\": \"local\",\n \"path\": \"/home/circleci/repo/src/components/list-box/list-box.tsx\",\n \"id\": \"src/components/list-box/list-box.tsx::KeyboardSuggestions\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"An object with suggestions about the possible keyboard combinations\"\n },\n \"defaultValue\": \"{\\n checkCheckbox: \\\"to check a checkbox press (shift + space)\\\",\\n uncheckCheckbox: \\\"to uncheck a checkbox press (shift + ctrl + space)\\\"\\n }\"\n },\n \"disableSuggestions\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Disable suggestions about keyboard combinations\"\n },\n \"attribute\": \"disable-suggestions\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"noBorder\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute disables the border all around\"\n },\n \"attribute\": \"no-border\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"borderTop\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute adds a border to the top\"\n },\n \"attribute\": \"border-top\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"borderEnd\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute adds a border to the end\"\n },\n \"attribute\": \"border-end\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"borderBottom\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute adds a border to the bottom\"\n },\n \"attribute\": \"border-bottom\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"borderStart\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute adds a border to the start\"\n },\n \"attribute\": \"border-start\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute makes the component disabled\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"required\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Make the radio-buttons required\"\n },\n \"attribute\": \"required\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"validationStatus\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"ValidationStatus\",\n \"resolved\": \"\\\"error\\\" | \\\"indeterminate\\\" | \\\"success\\\" | \\\"warning\\\"\",\n \"references\": {\n \"ValidationStatus\": {\n \"location\": \"import\",\n \"path\": \"../../common/types\",\n \"id\": \"src/common/types.ts::ValidationStatus\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The validation status\"\n },\n \"attribute\": \"validation-status\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"indeterminate\\\"\"\n },\n \"validationMessage\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The required message if this input is required and no value is provided (optional). If this is not provided, the default browser required message will show up\"\n },\n \"attribute\": \"validation-message\",\n \"reflect\": false\n },\n \"informationMessage\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"An informative message to help the user filling the information\"\n },\n \"attribute\": \"information-message\",\n \"reflect\": false\n }\n };\n }\n static get states() {\n return {\n \"selectedItems\": {},\n \"checkedItems\": {},\n \"hideKeyboardSuggestions\": {},\n \"headerHeight\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"selectionChanged\",\n \"name\": \"selectionChanged\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This event emits the items that are currently selected. event.detail contains the selected items as objects. Each object contains the item idex and the item value. If value was not provided, the value will be the item innerText.\"\n },\n \"complexType\": {\n \"original\": \"SelectionChangedEvent\",\n \"resolved\": \"{ items: ItemsInformation[]; }\",\n \"references\": {\n \"SelectionChangedEvent\": {\n \"location\": \"local\",\n \"path\": \"/home/circleci/repo/src/components/list-box/list-box.tsx\",\n \"id\": \"src/components/list-box/list-box.tsx::SelectionChangedEvent\"\n }\n }\n }\n }, {\n \"method\": \"checkedChanged\",\n \"name\": \"checkedChanged\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"getSelectedItems\": {\n \"complexType\": {\n \"signature\": \"() => Promise<ItemsInformation[]>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n },\n \"ItemsInformation\": {\n \"location\": \"local\",\n \"path\": \"/home/circleci/repo/src/components/list-box/list-box.tsx\",\n \"id\": \"src/components/list-box/list-box.tsx::ItemsInformation\"\n },\n \"HTMLGxgListBoxItemElement\": {\n \"location\": \"global\",\n \"id\": \"global::HTMLGxgListBoxItemElement\"\n }\n },\n \"return\": \"Promise<ItemsInformation[]>\"\n },\n \"docs\": {\n \"text\": \"*******************************\\nMETHODS\\n*******************************\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"selectedItems\",\n \"methodName\": \"selectedItemsHandler\"\n }, {\n \"propName\": \"checkedItems\",\n \"methodName\": \"checkedItemsHandler\"\n }, {\n \"propName\": \"disabled\",\n \"methodName\": \"disabledHandler\"\n }, {\n \"propName\": \"hideKeyboardSuggestions\",\n \"methodName\": \"hideKeyboardSuggestionsHandler\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"checkboxClicked\",\n \"method\": \"checkboxClickedHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"itemLoaded\",\n \"method\": \"itemLoadedHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"itemClicked\",\n \"method\": \"itemClickedHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"itemSelected\",\n \"method\": \"itemSelectedHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"checkboxStateChanged\",\n \"method\": \"checkboxStateChangedHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }];\n }\n}\n//# sourceMappingURL=list-box.js.map\n",":host(.gxg--disabled) .form-element,\n:host(.gxg--disabled.form-element) {\n pointer-events: none;\n background-color: var(--ds-background-color-disabled) !important;\n color: var(--ds-color--disabled) !important;\n border-color: var(--ds-border-color-disabled) !important;\n cursor: default !important;\n}\n\n:root {\n --ui-animaton-speed: 0.2s;\n}\n\n/*ALIGNMENT*/\n/*Ellipsis*/\n/*****************************************************\nTYPOGRAPHY\n*****************************************************/\n/*Title 01 (Positive)*/\n.gxg-title-01 {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-01-font-weight);\n font-size: var(--ds-title-01-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--comfortable);\n color: var(--ds-base-font-color);\n text-align: start;\n line-height: var(--ds-base-font-line-height--comfortable);\n}\n\n/*Title 01 (Negative)*/\n.gxg-title-01--negative {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-01-font-weight);\n font-size: var(--ds-title-01-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--comfortable);\n color: var(--ds-base-font-color);\n text-align: start;\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--negative);\n}\n\n/*Title 02 (Positive)*/\n.gxg-title-02 {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-02-font-weight);\n font-size: var(--ds-title-02-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--regular);\n color: var(--ds-base-font-color);\n text-align: start;\n text-transform: uppercase;\n line-height: var(--ds-base-font-line-height--comfortable);\n}\n\n.gxg-title-02--negative {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-02-font-weight);\n font-size: var(--ds-title-02-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--regular);\n color: var(--ds-base-font-color);\n text-align: start;\n text-transform: uppercase;\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--color-on-primary);\n}\n\n/*Title 03*/\n.gxg-title-03 {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-03-font-weight);\n font-size: var(--ds-title-03-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--regular);\n color: var(--ds-base-font-color);\n text-align: start;\n text-transform: uppercase;\n line-height: var(--ds-base-font-line-height--comfortable);\n}\n\n.gxg-title-03--negative {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-03-font-weight);\n font-size: var(--ds-title-03-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--regular);\n color: var(--ds-base-font-color);\n text-align: start;\n text-transform: uppercase;\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--negative);\n}\n\n/*Title 04*/\n.gxg-title-04 {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-04-font-weight);\n font-size: var(--ds-title-04-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--comfortable);\n color: var(--ds-base-font-color);\n text-align: start;\n line-height: var(--ds-base-font-line-height--comfortable);\n}\n\n.gxg-title-04--negative {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-04-font-weight);\n font-size: var(--ds-title-04-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--comfortable);\n color: var(--ds-base-font-color);\n text-align: start;\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--negative);\n}\n\n/*Title 05*/\n.gxg-title-05 {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-05-font-weight);\n font-size: var(--ds-title-05-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--regular);\n color: var(--ds-base-font-color);\n text-align: start;\n line-height: var(--ds-base-font-line-height--comfortable);\n}\n\n.gxg-title-05--negative {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--ds-title-05-font-weight);\n font-size: var(--ds-title-05-font-size);\n letter-spacing: var(--ds-base-font-letter-spacing--regular);\n color: var(--ds-base-font-color);\n text-align: start;\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--negative);\n}\n\n/*Text*/\n.gxg-text {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n}\n\n.gxg-text--negative {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--negative);\n}\n\n.gxg-text--gray {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--dimmed);\n}\n\n/*Quote*/\n.gxg-quote {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n font-style: italic;\n}\n\n.gxg-quote--negative {\n color: var(--ds-base-font-color--negative);\n}\n\n/*Link*/\n.gxg-link {\n line-height: unset;\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--link);\n text-decoration: underline;\n cursor: pointer;\n display: inline-block;\n}\n.gxg-link:hover {\n color: var(--ds-base-font-color--link-hover);\n}\n.gxg-link:active {\n color: var(--ds-base-font-color--link-active);\n}\n\n.gxg-link-gray {\n line-height: unset;\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--link);\n text-decoration: underline;\n cursor: pointer;\n display: inline-block;\n color: var(--ds-base-font-color--dimmed);\n}\n.gxg-link-gray:hover {\n line-height: unset;\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--link);\n text-decoration: underline;\n cursor: pointer;\n display: inline-block;\n color: var(--ds-base-font-color--dimmed);\n filter: brightness(1.4);\n}\n\n/*Alerts*/\n.gxg-alert-error {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--error);\n display: inline-block;\n}\n\n.gxg-alert-warning {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--warning);\n display: inline-block;\n}\n\n.gxg-alert-success {\n font-family: var(--ds-base-font-family-primary);\n font-size: var(--ds-base-font-size);\n color: var(--ds-base-font-size-color);\n font-weight: var(--ds-base-font-size-weight);\n line-height: var(--ds-base-font-line-height--comfortable);\n color: var(--ds-base-font-color--success);\n display: inline-block;\n}\n\n/*Tab*/\n.gxg-tab--disabled {\n color: var(--color-primary-disabled);\n pointer-events: none;\n}\n.gxg-tab--disabled[disabled] {\n color: var(--color-primary-disabled);\n pointer-events: none;\n}\n\n/*Label*/\n.gxg-label {\n font-family: var(--ds-base-font-family-primary);\n font-weight: var(--gxg-label-font-weight);\n font-size: var(--gxg-label-font-size);\n color: var(--gxg-label-color);\n text-align: center;\n line-height: 1.455em;\n display: flex;\n align-items: center;\n}\n.gxg-label:hover {\n color: var(--color-primary-hover);\n}\n.gxg-label:focus {\n color: var(--color-primary-active);\n}\n.gxg-label:active {\n color: var(--color-primary-active);\n}\n.gxg-label[disabled] {\n color: var(--color-primary-disabled);\n}\n\n.gxg-label--negative {\n color: var(--color-on-primary);\n}\n.gxg-label--negative[disabled] {\n color: var(--color-on-disabled);\n}\n\n/*****************************************************\nGXG-BUTTON and GXG-BUTTON-GROUP COMMON STYLES\n*****************************************************/\n/*****************************************************\nFORM ELEMENTS\n*****************************************************/\n.gxg-scrollbar {\n /* Track */\n /* Handle */\n /* Handle on hover */\n}\n.gxg-scrollbar::-webkit-scrollbar {\n width: var(--gxg-scrollbar-width);\n height: var(--gxg-scrollbar-width);\n}\n.gxg-scrollbar::-webkit-scrollbar-track {\n background-color: var(--gxg-scrollbar-track-background);\n border-radius: var(--gxg-scrollbar-track-border-radius);\n}\n.gxg-scrollbar::-webkit-scrollbar-thumb {\n background-color: var(--gxg-scrollbar-track-thumb-background);\n border-radius: var(--gxg-scrollbar-track-thumb-radius);\n}\n.gxg-scrollbar::-webkit-scrollbar-thumb:hover {\n background-color: var(--gxg-scrollbar-track-thumb-hover-background);\n}\n.gxg-scrollbar::-webkit-scrollbar-corner {\n background: rgba(0, 0, 0, 0);\n}\n\n:host {\n --ds-icon-size-box--regular: var(--gxg-list-box-item-icon__size-box--regular);\n --ds-icon-size--regular: var(--gxg-list-box-item-icon__size--regular);\n display: block;\n font-family: var(--ds-base-font-family-primary);\n font-size: inherit;\n color: inherit;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -o-user-select: none;\n outline: none;\n border-bottom: var(--gxg-list-box-item__border) !important;\n}\n:host .container {\n display: flex;\n align-items: center;\n padding: var(--gxg-list-box-item-container__padding);\n width: 100%;\n height: var(--ds-list-item-height--spaced);\n box-sizing: border-box;\n}\n:host .icon {\n margin-inline-end: var(--gxg-list-box-item-icon__margin-inline-end);\n flex-shrink: 0;\n}\n:host gxg-form-checkbox::part(box) {\n outline: none;\n}\n\n.checkbox {\n margin-inline-end: 8px;\n}\n\n:host(:not([disabled])) {\n cursor: pointer !important;\n}\n\n:host([disabled]) {\n pointer-events: none;\n border-bottom: transparent;\n color: var(--ds-color-on-disabled);\n}\n\n:host(:hover:not([selected])) {\n background-color: var(--gxg-list-box-item__background-color--hover);\n}\n\n:host(.has-icon.no-checkbox) .container {\n padding-inline-start: calc(var(--gxg-list-box-item-container-icon-no-checkbox__padding-inline-start) * 1.5);\n}\n\n.description {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n width: 100%;\n /* Adjust as needed */\n}\n\n/*HIGHLIGHTED*/\n/*ACTIVE*/\n:host([active]) {\n outline: var(--ds-focus-border-width) solid var(--ds-border-color-control--focused);\n outline-offset: -1px;\n outline-offset: 0;\n color: var(--ds-item-color--hover);\n outline-offset: var(--gxg-tree-view-item__outline-offset--active);\n}\n\n/*SELECTED*/\n:host([selected]:not(.gxg--disabled)) {\n background-color: var(--ds-item-background-color--selected);\n color: var(--gxg-grid-row-cell__color--selected);\n}\n\n:host([selected][sibling-is-selected]:not(.gxg--disabled)) {\n border-bottom-color: var(--ds-item-border-color--selected) !important;\n}\n\n:host([selected]:hover) {\n background-color: var(--ds-item-background-color--selected-hover);\n}\n\n:host:last-child {\n border-bottom: none;\n}","import { Host, h } from \"@stencil/core\";\nimport state from \"../store\";\nimport { commonClassesNames } from \"../../common/classesNames\";\nimport { exportParts } from \"../../common/export-parts\";\nexport class GxgListboxItem {\n constructor() {\n this.disabled = undefined;\n this.icon = undefined;\n this.selected = false;\n this.siblingIsSelected = false;\n this.highlighted = false;\n this.active = false;\n this.index = null;\n this.emitCheckboxChange = true;\n this.value = undefined;\n this.checkbox = false;\n this.checked = false;\n this.mouseOver = false;\n }\n parts = {\n checkbox: \"checkbox\"\n };\n exportparts;\n el;\n /**\n * (This event is for internal use.)\n */\n itemClicked;\n /**\n * (This event is for internal use.)\n */\n itemLoaded;\n /**\n * (This event is for internal use.)\n */\n itemSelected;\n /**\n * (This event is for internal use.)\n */\n checkboxStateChanged;\n /**\n * (This event is for internal use.)\n */\n checkboxClicked;\n watchPropHandler() {\n this.itemSelected.emit();\n }\n checkedChangedHandler(e) {\n this.checked = e;\n }\n checkboxChangedHandler(e) {\n const checked = e.detail.value;\n this.emitCheckboxChange &&\n this.checkboxStateChanged.emit({\n checkedItem: this.el,\n checked: checked\n });\n }\n handleCheckboxClick = (e) => {\n this.checkboxClicked.emit(this.el);\n e.stopPropagation();\n e.target.checked\n ? (this.checked = true)\n : (this.checked = false);\n };\n iconColor() {\n if (this.disabled) {\n return \"disabled\";\n }\n else if (this.selected) {\n return \"primary-enabled\";\n }\n else {\n return \"auto\";\n }\n }\n componentWillLoad() {\n this.attachExportParts();\n }\n attachExportParts = () => {\n const part = this.el.getAttribute(\"part\");\n const exportPartsResult = exportParts(part, this.parts);\n exportPartsResult.length && (this.exportparts = exportPartsResult);\n };\n componentDidLoad() {\n this.itemLoaded.emit({ value: this.value });\n }\n itemClickedFunc(e) {\n this.itemClicked.emit({\n clickedItem: this.el,\n ctrlKey: e.ctrlKey,\n cmdKey: e.metaKey,\n shiftKey: e.shiftKey,\n index: this.index\n });\n }\n onMouseOver() {\n this.mouseOver = true;\n }\n onMouseOut() {\n this.mouseOver = false;\n }\n render() {\n return (h(Host, { class: {\n \"has-icon\": this.icon !== undefined,\n \"no-checkbox\": !this.checkbox,\n large: state.large,\n [commonClassesNames[\"DISABLED_CLASS\"]]: this.disabled\n }, onClick: this.itemClickedFunc.bind(this),\n // onMouseOver={this.onMouseOver.bind(this)}\n // onMouseOut={this.onMouseOut.bind(this)}\n exportParts: this.exportparts ? this.exportparts : null }, h(\"div\", { class: { container: true, \"form-element\": true } }, this.checkbox && !this.disabled ? (h(\"gxg-form-checkbox\", { tabindex: \"-1\", checked: this.checked, onClick: this.handleCheckboxClick, disabled: this.disabled, part: this.parts.checkbox, class: \"checkbox\" })) : null, this.icon !== undefined ? (h(\"gxg-icon\", { class: \"icon\", color: this.iconColor(), size: \"regular\", type: this.icon })) : null, h(\"div\", { class: \"description\" }, h(\"slot\", null)))));\n }\n static get is() { return \"gxg-list-box-item\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"list-box-item.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"list-box-item.css\"]\n };\n }\n static get properties() {\n return {\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute disabled the list-box-item\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true\n },\n \"icon\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Any icon that belongs to Gemini icon library: https://gx-gemini.netlify.app/?path=/story/icons\"\n },\n \"attribute\": \"icon\",\n \"reflect\": false,\n \"defaultValue\": \"undefined\"\n },\n \"selected\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute sets this item as selected\"\n },\n \"attribute\": \"selected\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"siblingIsSelected\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This property is for internal use\"\n },\n \"attribute\": \"sibling-is-selected\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"highlighted\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute sets this item as highlighted\"\n },\n \"attribute\": \"highlighted\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute sets this item as active (it is as if it was focused)\\nOnly one item at a time should be active.\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"index\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This property is set by the list-box item. It should not be set by the user.\"\n },\n \"attribute\": \"index\",\n \"reflect\": true,\n \"defaultValue\": \"null\"\n },\n \"emitCheckboxChange\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute emits the 'checkboxChanged' event every time a checkbox value is changed.\"\n },\n \"attribute\": \"emit-checkbox-change\",\n \"reflect\": false,\n \"defaultValue\": \"true\"\n },\n \"value\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The item value. If value is not provided, the value will be the item innerHTML.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false,\n \"defaultValue\": \"undefined\"\n },\n \"checkbox\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute will add a checkbox to the item.\"\n },\n \"attribute\": \"checkbox\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"checked\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The presence of this attribute will make the checkbox checked.\"\n },\n \"attribute\": \"checked\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n }\n };\n }\n static get states() {\n return {\n \"mouseOver\": {}\n };\n }\n static get events() {\n return [{\n \"method\": \"itemClicked\",\n \"name\": \"itemClicked\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"(This event is for internal use.)\"\n },\n \"complexType\": {\n \"original\": \"ItemClicked\",\n \"resolved\": \"{ clickedItem: HTMLGxgListBoxItemElement; ctrlKey: boolean; cmdKey: boolean; shiftKey: boolean; index: number; }\",\n \"references\": {\n \"ItemClicked\": {\n \"location\": \"local\",\n \"path\": \"/home/circleci/repo/src/components/list-box-item/list-box-item.tsx\",\n \"id\": \"src/components/list-box-item/list-box-item.tsx::ItemClicked\"\n }\n }\n }\n }, {\n \"method\": \"itemLoaded\",\n \"name\": \"itemLoaded\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"(This event is for internal use.)\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"itemSelected\",\n \"name\": \"itemSelected\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"(This event is for internal use.)\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }, {\n \"method\": \"checkboxStateChanged\",\n \"name\": \"checkboxStateChanged\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"(This event is for internal use.)\"\n },\n \"complexType\": {\n \"original\": \"ItemChecked\",\n \"resolved\": \"{ checkedItem: HTMLGxgListBoxItemElement; checked: boolean; }\",\n \"references\": {\n \"ItemChecked\": {\n \"location\": \"local\",\n \"path\": \"/home/circleci/repo/src/components/list-box-item/list-box-item.tsx\",\n \"id\": \"src/components/list-box-item/list-box-item.tsx::ItemChecked\"\n }\n }\n }\n }, {\n \"method\": \"checkboxClicked\",\n \"name\": \"checkboxClicked\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"(This event is for internal use.)\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }];\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"selected\",\n \"methodName\": \"watchPropHandler\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"checked\",\n \"method\": \"checkedChangedHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }, {\n \"name\": \"change\",\n \"method\": \"checkboxChangedHandler\",\n \"target\": undefined,\n \"capture\": false,\n \"passive\": false\n }];\n }\n}\n//# sourceMappingURL=list-box-item.js.map\n"],"mappings":";;;;;;;;;;;;AACO,MAAMA,mBAAmB,CAACC,GAAqBC,GAAYC;EAC9D,MAAMC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