@gettrx/core-components-angular 1.1.13 → 1.1.16

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.
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { HostBinding, Input, Component, booleanAttribute, Directive, EventEmitter, HostListener, Output, ViewChild, Optional, Self, Injectable, ContentChildren, Pipe, ViewChildren, forwardRef, ElementRef, ContentChild, Inject, LOCALE_ID, inject, DestroyRef, QueryList, ChangeDetectorRef, ViewEncapsulation, ViewContainerRef } from '@angular/core';
3
3
  import * as i1 from '@angular/forms';
4
- import { NG_VALUE_ACCESSOR, FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
4
+ import { NG_VALUE_ACCESSOR, FormGroup, FormControl, Validators, ReactiveFormsModule, NgControl, FormsModule } from '@angular/forms';
5
5
  import { NgStyle, NgClass, TitleCasePipe, getLocaleDateFormat, FormatWidth, DOCUMENT, NgTemplateOutlet, registerLocaleData, formatDate } from '@angular/common';
6
6
  import { Subject, Subscription, BehaviorSubject, throwError, takeUntil, fromEvent } from 'rxjs';
7
7
  import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
@@ -8521,7 +8521,7 @@ class GtrSelectComponent {
8521
8521
  useExisting: forwardRef((() => GtrSelectComponent)),
8522
8522
  multi: true,
8523
8523
  },
8524
- ], usesOnChanges: true, ngImport: i0, template: "<!-- ************ Select Box Element ************ -->\n<div class=\"gtr-select-wrapper\" [class.gtr-only-view]=\"isOnlyView\" [class.multiple]=\"multiple\">\n <!-- Input Label -->\n @if (inputLabel) {\n <ng-container *ngTemplateOutlet=\"inputLabelTemplate\"></ng-container>\n }\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \">\n <!-- Select Box Container -->\n <div class=\"gtr-select\" [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\" [attr.aria-readonly]=\"readonly ? 'true' : 'false'\">\n\n @if (autocomplete) {\n <!-- Select box autocomplete container -->\n\n @if (!multiple) {\n <input type=\"text\" class=\"gtr-autocomplete-input gtr-select-box\" tabindex=\"0\"\n [placeholder]=\"placeholder || ''\" [value]=\"\n selectedValues && selectedValues.length && !multiple\n ? (selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : selectedValuesRaw\n : lazyLoaded)\n : autocompleteInputValue || ''\n \" (input)=\"handleAutocompleteInput($event)\" (click)=\"toggleSelectBox(true)\"\n (keyup.enter)=\"handleAddButton(true)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-autocomplete'\"/>\n } @else {\n <!-- Multi-select selected values -->\n @if (multipleSelectedValues && multiple) {\n\n <div tabindex=\"0\" class=\"gtr-select-box\" [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n }\" [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\">\n <div class=\"gtr-selected-items\">\n <!-- Multi selected values -->\n @for (item of multipleSelectedValues; track i; let i = $index) {\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n @if (i <= 1) {\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : multipleSelectedValues\n : multipleSelectedValuesRaw\n : lazyLoaded) + \" \"\n }}\n <gtr-icon name=\"x\" [size]=\"14\" weight=\"bold\" color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-close'\"></gtr-icon>\n </span>\n }\n }\n\n <!-- Enter autocomplete input -->\n <input type=\"text\" class=\"gtr-autocomplete-input\" tabindex=\"0\" [placeholder]=\"placeholder || ''\"\n [value]=\"autocompleteInputValue || ''\" (input)=\"handleAutocompleteInput($event)\"\n (click)=\"toggleSelectBox(true)\" (keyup.enter)=\"handleAddButton(true)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-autocomplete'\"/>\n <!-- Enter autocomplete input ends here -->\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n @if (multipleSelectedValues && multipleSelectedValues.length > 2) {\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n }\n </div>\n </div>\n }\n\n <!-- Multi-select selected values ends here... -->\n }\n <!-- Select box autocomplete container ends here -->\n\n } @else {\n <!-- Select Box Input Wrapper -->\n <div tabindex=\"0\" class=\"gtr-select-box\" [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\" [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\" (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-wrapper'\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n @if (!(multipleSelectedValues?.length || selectedValues?.length)) {\n <ng-container *ngTemplateOutlet=\"placeholderTemplate\"></ng-container>\n }\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n @if (selectedValues?.length && !multiple) {\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n @if (floatPlaceholder) {\n <ng-container *ngTemplateOutlet=\"floatPlaceholderTemplate\"></ng-container>\n }\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : selectedValuesRaw\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n }\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n @if (multipleSelectedValues && multiple) {\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n @if (floatPlaceholder) {\n <ng-container *ngTemplateOutlet=\"floatPlaceholderTemplate\"></ng-container>\n }\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n @for (item of multipleSelectedValues; track i; let i = $index) {\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n @if (i <= 1) {\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : multipleSelectedValues\n : multipleSelectedValuesRaw\n : lazyLoaded) + \" \"\n }}\n <gtr-icon name=\"x\" [size]=\"14\" weight=\"bold\" color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-remove-option'\"></gtr-icon>\n </span>\n }\n }\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n @if (multipleSelectedValues && multipleSelectedValues.length > 2) {\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n }\n </div>\n }\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n }\n\n <!-- Select Box options list wrapper -->\n @if (!disabled && !readonly) {\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n @if (!autocomplete && searchable) {\n <span class=\"gtr-input-wrapper\">\n <input type=\"text\" class=\"gtr-search-input\" [class.showLoader]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \" [placeholder]=\"searchPlaceholder\" [value]=\"searchValue || ''\" (input)=\"handleSearchInput($event)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-input-search'\"/>\n <div [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"></div>\n </span>\n }\n <!-- Search Wrapper ends here... -->\n\n <!-- add-button template -->\n @if (enableAddButton && addButtonPosition === 'top') {\n <ng-container *ngTemplateOutlet=\"addButtonTemplate\"></ng-container>\n }\n <!-- add button template ends here -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" [class.disabled]=\"hideOptions\" role=\"listbox\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option-list'\"\n (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n @if (listLoading && listLoaderVariation === loaderVariation.TEXT) {\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n }\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n @if (!listLoading && !filteredOptions?.length) {\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n }\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n @if ((!listLoading ||\n (listLoading &&\n listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length) {\n @for (option of filteredOptions; track i; let i = $index) {\n <!-- NOTE: for single select -->\n @if (!multiple) {\n <li class=\"gtr-option\" [class.change-loading]=\"changeLoading\" [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\" [attr.data-value]=\"option\" [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \" role=\"option\" (keyup.enter)=\"handleOptionClick(option)\" (click)=\"handleOptionClick(option)\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option'\"\n tabindex=\"0\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n } @else {\n <!-- NOTE: for multi select -->\n <li class=\"gtr-option\" [class.change-loading]=\"changeLoading\" [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\" [attr.data-value]=\"option\" (keyup.enter)=\"handleOptionClick(option)\" [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \" (click)=\"handleOptionClick(option)\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option'\" tabindex=\"0\" role=\"option\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n }\n }\n }\n </ul>\n <!-- Options List Wrapper -->\n\n <!-- add button -->\n @if (enableAddButton && addButtonPosition === 'bottom') {\n <ng-container *ngTemplateOutlet=\"addButtonTemplate\"></ng-container>\n }\n <!-- add button -->\n </span>\n }\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n @if (is_invalid && !isOnlyView) {\n <ng-container *ngTemplateOutlet=\"errorMessageTemplate\"></ng-container>\n }\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">{{ inputLabel }}</label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">{{\n placeholder | gtrTrimText : textLimit\n }}</span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">{{\n placeholder | gtrTrimText : textLimit\n }}</span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\">{{\n (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit\n }}</span>\n @if (subLabel) {\n <br/>\n <span class=\"sub-label\" [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\">{{\n (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit\n }}</span>\n }\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n\n<!-- Add button template -->\n<ng-template #addButtonTemplate>\n <div class=\"add-button-wrapper\" [class.disabled]=\"hideOptions\" tabindex=\"0\" (click)=\"handleAddButton()\"\n (keyup.enter)=\"handleAddButton()\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-add-button'\">\n <span class=\"add-button\">\n <span [innerHTML]=\"addButtonLabel\"></span>\n </span>\n </div>\n</ng-template>\n<!-- Add button template ends here -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;box-sizing:border-box;perspective:1000px;transform-origin:top center;animation:growOut .1s 0s ease-in-out none;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover,.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.hovered{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled{pointer-events:none;cursor:default}.add-button-wrapper.disabled,.gtr-options-list.disabled{pointer-events:none;cursor:default;opacity:.6}.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.add-button-wrapper{background:var(--gtr-color-base-secondary-100);color:var(--gtr-color-font-inverse-secondary);min-height:38px;width:100%;padding:.5rem;display:flex;align-items:center;align-self:center;justify-content:flex-start;font-size:13px;font-weight:500;padding:8px 16px;cursor:pointer}.gtr-autocomplete-input{border:none;padding:0;margin:0;outline:0;width:100%;height:100%}.gtr-autocomplete-input::placeholder{color:var(--gtr-color-base-black-40)}.gtr-select-box:has(.gtr-autocomplete-input::focus){border-color:var(--gtr-color-base-primary-60)}.gtr-select-spinner{display:flex;justify-content:center;width:fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes growOut{0%{opacity:0;-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}80%{-webkit-transform:scale(1.07);-moz-transform:scale(1.07);-o-transform:scale(1.07);-ms-transform:scale(1.07);transform:scale(1.07)}to{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}\n"], dependencies: [{ kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "pipe", type: GtrFormatSelectedValuePipe, name: "gtrFormatSelectedValue" }, { kind: "pipe", type: GtrTrimTextPipe, name: "gtrTrimText" }] }); }
8524
+ ], usesOnChanges: true, ngImport: i0, template: "<!-- ************ Select Box Element ************ -->\n<div class=\"gtr-select-wrapper\" [class.gtr-only-view]=\"isOnlyView\" [class.multiple]=\"multiple\">\n <!-- Input Label -->\n @if (inputLabel) {\n <ng-container *ngTemplateOutlet=\"inputLabelTemplate\"></ng-container>\n }\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \">\n <!-- Select Box Container -->\n <div class=\"gtr-select\" [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\" [attr.aria-readonly]=\"readonly ? 'true' : 'false'\">\n\n @if (autocomplete) {\n <!-- Select box autocomplete container -->\n\n @if (!multiple) {\n <input type=\"text\" class=\"gtr-autocomplete-input gtr-select-box\" tabindex=\"0\"\n [placeholder]=\"placeholder || ''\" [value]=\"\n selectedValues && selectedValues.length && !multiple\n ? (selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : selectedValuesRaw\n : lazyLoaded)\n : autocompleteInputValue || ''\n \" (input)=\"handleAutocompleteInput($event)\" (click)=\"toggleSelectBox(true)\"\n (keyup.enter)=\"handleAddButton(true)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-autocomplete'\"/>\n } @else {\n <!-- Multi-select selected values -->\n @if (multipleSelectedValues && multiple) {\n\n <div tabindex=\"0\" class=\"gtr-select-box\" [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n }\" [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\">\n <div class=\"gtr-selected-items\">\n <!-- Multi selected values -->\n @for (item of multipleSelectedValues; track i; let i = $index) {\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n @if (i <= 1) {\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : multipleSelectedValues\n : multipleSelectedValuesRaw\n : lazyLoaded) + \" \"\n }}\n <gtr-icon name=\"x\" [size]=\"14\" weight=\"bold\" color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-close'\"></gtr-icon>\n </span>\n }\n }\n\n <!-- Enter autocomplete input -->\n <input type=\"text\" class=\"gtr-autocomplete-input\" tabindex=\"0\" [placeholder]=\"placeholder || ''\"\n [value]=\"autocompleteInputValue || ''\" (input)=\"handleAutocompleteInput($event)\"\n (click)=\"toggleSelectBox(true)\" (keyup.enter)=\"handleAddButton(true)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-autocomplete'\"/>\n <!-- Enter autocomplete input ends here -->\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n @if (multipleSelectedValues && multipleSelectedValues.length > 2) {\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n }\n </div>\n </div>\n }\n\n <!-- Multi-select selected values ends here... -->\n }\n <!-- Select box autocomplete container ends here -->\n\n } @else {\n <!-- Select Box Input Wrapper -->\n <div tabindex=\"0\" class=\"gtr-select-box\" [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\" [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\" (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-wrapper'\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n @if (!(multipleSelectedValues?.length || selectedValues?.length)) {\n <ng-container *ngTemplateOutlet=\"placeholderTemplate\"></ng-container>\n }\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n @if (selectedValues?.length && !multiple) {\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n @if (floatPlaceholder) {\n <ng-container *ngTemplateOutlet=\"floatPlaceholderTemplate\"></ng-container>\n }\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : selectedValuesRaw\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n }\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n @if (multipleSelectedValues && multiple) {\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n @if (floatPlaceholder) {\n <ng-container *ngTemplateOutlet=\"floatPlaceholderTemplate\"></ng-container>\n }\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n @for (item of multipleSelectedValues; track i; let i = $index) {\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n @if (i <= 1) {\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : multipleSelectedValues\n : multipleSelectedValuesRaw\n : lazyLoaded) + \" \"\n }}\n <gtr-icon name=\"x\" [size]=\"14\" weight=\"bold\" color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-remove-option'\"></gtr-icon>\n </span>\n }\n }\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n @if (multipleSelectedValues && multipleSelectedValues.length > 2) {\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n }\n </div>\n }\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n }\n\n <!-- Select Box options list wrapper -->\n @if (!disabled && !readonly) {\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n @if (!autocomplete && searchable) {\n <span class=\"gtr-input-wrapper\">\n <input type=\"text\" class=\"gtr-search-input\" [class.showLoader]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \" [placeholder]=\"searchPlaceholder\" [value]=\"searchValue || ''\" (input)=\"handleSearchInput($event)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-input-search'\"/>\n <div [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"></div>\n </span>\n }\n <!-- Search Wrapper ends here... -->\n\n <!-- add-button template -->\n @if (enableAddButton && addButtonPosition === 'top') {\n <ng-container *ngTemplateOutlet=\"addButtonTemplate\"></ng-container>\n }\n <!-- add button template ends here -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" [class.disabled]=\"hideOptions\" role=\"listbox\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option-list'\"\n (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n @if (listLoading && listLoaderVariation === loaderVariation.TEXT) {\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n }\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n @if (!listLoading && !filteredOptions?.length) {\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n }\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n @if ((!listLoading ||\n (listLoading &&\n listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length) {\n @for (option of filteredOptions; track i; let i = $index) {\n <!-- NOTE: for single select -->\n @if (!multiple) {\n <li class=\"gtr-option\" [class.change-loading]=\"changeLoading\" [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\" [attr.data-value]=\"option\" [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \" role=\"option\" (keyup.enter)=\"handleOptionClick(option)\" (click)=\"handleOptionClick(option)\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option'\"\n tabindex=\"0\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n } @else {\n <!-- NOTE: for multi select -->\n <li class=\"gtr-option\" [class.change-loading]=\"changeLoading\" [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\" [attr.data-value]=\"option\" (keyup.enter)=\"handleOptionClick(option)\" [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \" (click)=\"handleOptionClick(option)\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option'\" tabindex=\"0\" role=\"option\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n }\n }\n }\n </ul>\n <!-- Options List Wrapper -->\n\n <!-- add button -->\n @if (enableAddButton && addButtonPosition === 'bottom') {\n <ng-container *ngTemplateOutlet=\"addButtonTemplate\"></ng-container>\n }\n <!-- add button -->\n </span>\n }\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n @if (is_invalid && !isOnlyView) {\n <ng-container *ngTemplateOutlet=\"errorMessageTemplate\"></ng-container>\n }\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">{{ inputLabel }}</label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">{{\n placeholder | gtrTrimText : textLimit\n }}</span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">{{\n placeholder | gtrTrimText : textLimit\n }}</span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\">{{\n (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit\n }}</span>\n @if (subLabel) {\n <br/>\n <span class=\"sub-label\" [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\">{{\n (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit\n }}</span>\n }\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n\n<!-- Add button template -->\n<ng-template #addButtonTemplate>\n <div class=\"add-button-wrapper\" [class.disabled]=\"hideOptions\" tabindex=\"0\" (click)=\"handleAddButton()\"\n (keyup.enter)=\"handleAddButton()\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-add-button'\">\n <span class=\"add-button\">\n <span [innerHTML]=\"addButtonLabel\"></span>\n </span>\n </div>\n</ng-template>\n<!-- Add button template ends here -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;box-sizing:border-box;perspective:1000px;transform-origin:top center;animation:growOut .1s 0s ease-in-out none;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover,.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.hovered{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled{pointer-events:none;cursor:default}.add-button-wrapper.disabled,.gtr-options-list.disabled{pointer-events:none;cursor:default;opacity:.6}.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.add-button-wrapper{background:var(--gtr-color-base-secondary-100);color:var(--gtr-color-font-inverse-secondary);min-height:38px;width:100%;padding:.5rem;display:flex;align-items:center;align-self:center;justify-content:flex-start;font-size:13px;font-weight:500;padding:8px 16px;cursor:pointer}.gtr-autocomplete-input{border:none;padding:0;margin:0;outline:0;width:100%;height:100%}.gtr-autocomplete-input::placeholder{color:var(--gtr-color-base-black-40)}.gtr-select-box:has(.gtr-autocomplete-input::focus){border-color:var(--gtr-color-base-primary-60)}.gtr-select-spinner{display:flex;justify-content:center;width:fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes growOut{0%{opacity:0;-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}80%{-webkit-transform:scale(1.07);-moz-transform:scale(1.07);-o-transform:scale(1.07);-ms-transform:scale(1.07);transform:scale(1.07)}to{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}\n"], dependencies: [{ kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }, { kind: "pipe", type: GtrFormatSelectedValuePipe, name: "gtrFormatSelectedValue" }, { kind: "pipe", type: GtrTrimTextPipe, name: "gtrTrimText" }] }); }
8525
8525
  }
8526
8526
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: GtrSelectComponent, decorators: [{
8527
8527
  type: Component,
@@ -8538,7 +8538,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
8538
8538
  GtrIconComponent,
8539
8539
  GtrFormatSelectedValuePipe,
8540
8540
  GtrTrimTextPipe,
8541
- ], template: "<!-- ************ Select Box Element ************ -->\n<div class=\"gtr-select-wrapper\" [class.gtr-only-view]=\"isOnlyView\" [class.multiple]=\"multiple\">\n <!-- Input Label -->\n @if (inputLabel) {\n <ng-container *ngTemplateOutlet=\"inputLabelTemplate\"></ng-container>\n }\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \">\n <!-- Select Box Container -->\n <div class=\"gtr-select\" [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\" [attr.aria-readonly]=\"readonly ? 'true' : 'false'\">\n\n @if (autocomplete) {\n <!-- Select box autocomplete container -->\n\n @if (!multiple) {\n <input type=\"text\" class=\"gtr-autocomplete-input gtr-select-box\" tabindex=\"0\"\n [placeholder]=\"placeholder || ''\" [value]=\"\n selectedValues && selectedValues.length && !multiple\n ? (selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : selectedValuesRaw\n : lazyLoaded)\n : autocompleteInputValue || ''\n \" (input)=\"handleAutocompleteInput($event)\" (click)=\"toggleSelectBox(true)\"\n (keyup.enter)=\"handleAddButton(true)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-autocomplete'\"/>\n } @else {\n <!-- Multi-select selected values -->\n @if (multipleSelectedValues && multiple) {\n\n <div tabindex=\"0\" class=\"gtr-select-box\" [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n }\" [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\">\n <div class=\"gtr-selected-items\">\n <!-- Multi selected values -->\n @for (item of multipleSelectedValues; track i; let i = $index) {\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n @if (i <= 1) {\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : multipleSelectedValues\n : multipleSelectedValuesRaw\n : lazyLoaded) + \" \"\n }}\n <gtr-icon name=\"x\" [size]=\"14\" weight=\"bold\" color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-close'\"></gtr-icon>\n </span>\n }\n }\n\n <!-- Enter autocomplete input -->\n <input type=\"text\" class=\"gtr-autocomplete-input\" tabindex=\"0\" [placeholder]=\"placeholder || ''\"\n [value]=\"autocompleteInputValue || ''\" (input)=\"handleAutocompleteInput($event)\"\n (click)=\"toggleSelectBox(true)\" (keyup.enter)=\"handleAddButton(true)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-autocomplete'\"/>\n <!-- Enter autocomplete input ends here -->\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n @if (multipleSelectedValues && multipleSelectedValues.length > 2) {\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n }\n </div>\n </div>\n }\n\n <!-- Multi-select selected values ends here... -->\n }\n <!-- Select box autocomplete container ends here -->\n\n } @else {\n <!-- Select Box Input Wrapper -->\n <div tabindex=\"0\" class=\"gtr-select-box\" [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\" [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\" (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-wrapper'\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n @if (!(multipleSelectedValues?.length || selectedValues?.length)) {\n <ng-container *ngTemplateOutlet=\"placeholderTemplate\"></ng-container>\n }\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n @if (selectedValues?.length && !multiple) {\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n @if (floatPlaceholder) {\n <ng-container *ngTemplateOutlet=\"floatPlaceholderTemplate\"></ng-container>\n }\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : selectedValuesRaw\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n }\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n @if (multipleSelectedValues && multiple) {\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n @if (floatPlaceholder) {\n <ng-container *ngTemplateOutlet=\"floatPlaceholderTemplate\"></ng-container>\n }\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n @for (item of multipleSelectedValues; track i; let i = $index) {\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n @if (i <= 1) {\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : multipleSelectedValues\n : multipleSelectedValuesRaw\n : lazyLoaded) + \" \"\n }}\n <gtr-icon name=\"x\" [size]=\"14\" weight=\"bold\" color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-remove-option'\"></gtr-icon>\n </span>\n }\n }\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n @if (multipleSelectedValues && multipleSelectedValues.length > 2) {\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n }\n </div>\n }\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n }\n\n <!-- Select Box options list wrapper -->\n @if (!disabled && !readonly) {\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n @if (!autocomplete && searchable) {\n <span class=\"gtr-input-wrapper\">\n <input type=\"text\" class=\"gtr-search-input\" [class.showLoader]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \" [placeholder]=\"searchPlaceholder\" [value]=\"searchValue || ''\" (input)=\"handleSearchInput($event)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-input-search'\"/>\n <div [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"></div>\n </span>\n }\n <!-- Search Wrapper ends here... -->\n\n <!-- add-button template -->\n @if (enableAddButton && addButtonPosition === 'top') {\n <ng-container *ngTemplateOutlet=\"addButtonTemplate\"></ng-container>\n }\n <!-- add button template ends here -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" [class.disabled]=\"hideOptions\" role=\"listbox\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option-list'\"\n (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n @if (listLoading && listLoaderVariation === loaderVariation.TEXT) {\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n }\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n @if (!listLoading && !filteredOptions?.length) {\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n }\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n @if ((!listLoading ||\n (listLoading &&\n listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length) {\n @for (option of filteredOptions; track i; let i = $index) {\n <!-- NOTE: for single select -->\n @if (!multiple) {\n <li class=\"gtr-option\" [class.change-loading]=\"changeLoading\" [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\" [attr.data-value]=\"option\" [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \" role=\"option\" (keyup.enter)=\"handleOptionClick(option)\" (click)=\"handleOptionClick(option)\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option'\"\n tabindex=\"0\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n } @else {\n <!-- NOTE: for multi select -->\n <li class=\"gtr-option\" [class.change-loading]=\"changeLoading\" [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\" [attr.data-value]=\"option\" (keyup.enter)=\"handleOptionClick(option)\" [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \" (click)=\"handleOptionClick(option)\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option'\" tabindex=\"0\" role=\"option\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n }\n }\n }\n </ul>\n <!-- Options List Wrapper -->\n\n <!-- add button -->\n @if (enableAddButton && addButtonPosition === 'bottom') {\n <ng-container *ngTemplateOutlet=\"addButtonTemplate\"></ng-container>\n }\n <!-- add button -->\n </span>\n }\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n @if (is_invalid && !isOnlyView) {\n <ng-container *ngTemplateOutlet=\"errorMessageTemplate\"></ng-container>\n }\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">{{ inputLabel }}</label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">{{\n placeholder | gtrTrimText : textLimit\n }}</span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">{{\n placeholder | gtrTrimText : textLimit\n }}</span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\">{{\n (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit\n }}</span>\n @if (subLabel) {\n <br/>\n <span class=\"sub-label\" [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\">{{\n (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit\n }}</span>\n }\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n\n<!-- Add button template -->\n<ng-template #addButtonTemplate>\n <div class=\"add-button-wrapper\" [class.disabled]=\"hideOptions\" tabindex=\"0\" (click)=\"handleAddButton()\"\n (keyup.enter)=\"handleAddButton()\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-add-button'\">\n <span class=\"add-button\">\n <span [innerHTML]=\"addButtonLabel\"></span>\n </span>\n </div>\n</ng-template>\n<!-- Add button template ends here -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;box-sizing:border-box;perspective:1000px;transform-origin:top center;animation:growOut .1s 0s ease-in-out none;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover,.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.hovered{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block;position:relative}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled{pointer-events:none;cursor:default}.add-button-wrapper.disabled,.gtr-options-list.disabled{pointer-events:none;cursor:default;opacity:.6}.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.add-button-wrapper{background:var(--gtr-color-base-secondary-100);color:var(--gtr-color-font-inverse-secondary);min-height:38px;width:100%;padding:.5rem;display:flex;align-items:center;align-self:center;justify-content:flex-start;font-size:13px;font-weight:500;padding:8px 16px;cursor:pointer}.gtr-autocomplete-input{border:none;padding:0;margin:0;outline:0;width:100%;height:100%}.gtr-autocomplete-input::placeholder{color:var(--gtr-color-base-black-40)}.gtr-select-box:has(.gtr-autocomplete-input::focus){border-color:var(--gtr-color-base-primary-60)}.gtr-select-spinner{display:flex;justify-content:center;width:fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes growOut{0%{opacity:0;-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}80%{-webkit-transform:scale(1.07);-moz-transform:scale(1.07);-o-transform:scale(1.07);-ms-transform:scale(1.07);transform:scale(1.07)}to{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}\n"] }]
8541
+ ], template: "<!-- ************ Select Box Element ************ -->\n<div class=\"gtr-select-wrapper\" [class.gtr-only-view]=\"isOnlyView\" [class.multiple]=\"multiple\">\n <!-- Input Label -->\n @if (inputLabel) {\n <ng-container *ngTemplateOutlet=\"inputLabelTemplate\"></ng-container>\n }\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \">\n <!-- Select Box Container -->\n <div class=\"gtr-select\" [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\" [attr.aria-readonly]=\"readonly ? 'true' : 'false'\">\n\n @if (autocomplete) {\n <!-- Select box autocomplete container -->\n\n @if (!multiple) {\n <input type=\"text\" class=\"gtr-autocomplete-input gtr-select-box\" tabindex=\"0\"\n [placeholder]=\"placeholder || ''\" [value]=\"\n selectedValues && selectedValues.length && !multiple\n ? (selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : selectedValuesRaw\n : lazyLoaded)\n : autocompleteInputValue || ''\n \" (input)=\"handleAutocompleteInput($event)\" (click)=\"toggleSelectBox(true)\"\n (keyup.enter)=\"handleAddButton(true)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-autocomplete'\"/>\n } @else {\n <!-- Multi-select selected values -->\n @if (multipleSelectedValues && multiple) {\n\n <div tabindex=\"0\" class=\"gtr-select-box\" [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n }\" [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\">\n <div class=\"gtr-selected-items\">\n <!-- Multi selected values -->\n @for (item of multipleSelectedValues; track i; let i = $index) {\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n @if (i <= 1) {\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : multipleSelectedValues\n : multipleSelectedValuesRaw\n : lazyLoaded) + \" \"\n }}\n <gtr-icon name=\"x\" [size]=\"14\" weight=\"bold\" color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-close'\"></gtr-icon>\n </span>\n }\n }\n\n <!-- Enter autocomplete input -->\n <input type=\"text\" class=\"gtr-autocomplete-input\" tabindex=\"0\" [placeholder]=\"placeholder || ''\"\n [value]=\"autocompleteInputValue || ''\" (input)=\"handleAutocompleteInput($event)\"\n (click)=\"toggleSelectBox(true)\" (keyup.enter)=\"handleAddButton(true)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-autocomplete'\"/>\n <!-- Enter autocomplete input ends here -->\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n @if (multipleSelectedValues && multipleSelectedValues.length > 2) {\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n }\n </div>\n </div>\n }\n\n <!-- Multi-select selected values ends here... -->\n }\n <!-- Select box autocomplete container ends here -->\n\n } @else {\n <!-- Select Box Input Wrapper -->\n <div tabindex=\"0\" class=\"gtr-select-box\" [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\" [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\" (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-wrapper'\">\n <gtr-icon name=\"chevron-down\" [size]=\"20\" color=\"var(--gtr-color-base-black-60)\"></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n @if (!(multipleSelectedValues?.length || selectedValues?.length)) {\n <ng-container *ngTemplateOutlet=\"placeholderTemplate\"></ng-container>\n }\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n @if (selectedValues?.length && !multiple) {\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n @if (floatPlaceholder) {\n <ng-container *ngTemplateOutlet=\"floatPlaceholderTemplate\"></ng-container>\n }\n <!-- float placeholder ends here... -->\n\n <!-- Single select value -->\n <span class=\"gtr-single-select\">{{\n selectedValues\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : selectedValues\n : selectedValuesRaw\n : lazyLoaded\n }}</span>\n <!-- Single select value ends here... -->\n </div>\n }\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n @if (multipleSelectedValues && multiple) {\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n @if (floatPlaceholder) {\n <ng-container *ngTemplateOutlet=\"floatPlaceholderTemplate\"></ng-container>\n }\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n @for (item of multipleSelectedValues; track i; let i = $index) {\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n @if (i <= 1) {\n <span class=\"gtr-multi-select-value\">\n {{\n (item\n | gtrFormatSelectedValue\n : options\n : valueKey\n : selectedLabel\n : labelKey\n : textLimit\n : multiple\n : selectedValueLazy\n : multipleSelectedValues\n : multipleSelectedValuesRaw\n : lazyLoaded) + \" \"\n }}\n <gtr-icon name=\"x\" [size]=\"14\" weight=\"bold\" color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-remove-option'\"></gtr-icon>\n </span>\n }\n }\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n @if (multipleSelectedValues && multipleSelectedValues.length > 2) {\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n }\n </div>\n }\n <!-- Multi-select selected values ends here... -->\n </div>\n <!-- Select Box Input Wrapper ends here... -->\n }\n\n <!-- Select Box options list wrapper -->\n @if (!disabled && !readonly) {\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n @if (!autocomplete && searchable) {\n <span class=\"gtr-input-wrapper\">\n <input type=\"text\" class=\"gtr-search-input\" [class.showLoader]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \" [placeholder]=\"searchPlaceholder\" [value]=\"searchValue || ''\" (input)=\"handleSearchInput($event)\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-input-search'\"/>\n <div [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"></div>\n </span>\n }\n <!-- Search Wrapper ends here... -->\n\n <!-- add-button template -->\n @if (enableAddButton && addButtonPosition === 'top') {\n <ng-container *ngTemplateOutlet=\"addButtonTemplate\"></ng-container>\n }\n <!-- add button template ends here -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" [class.disabled]=\"hideOptions\" role=\"listbox\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option-list'\"\n (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n @if (listLoading && listLoaderVariation === loaderVariation.TEXT) {\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n }\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n @if (!listLoading && !filteredOptions?.length) {\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n }\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n @if ((!listLoading ||\n (listLoading &&\n listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length) {\n @for (option of filteredOptions; track i; let i = $index) {\n <!-- NOTE: for single select -->\n @if (!multiple) {\n <li class=\"gtr-option\" [class.change-loading]=\"changeLoading\" [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\" [attr.data-value]=\"option\" [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \" role=\"option\" (keyup.enter)=\"handleOptionClick(option)\" (click)=\"handleOptionClick(option)\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option'\"\n tabindex=\"0\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n } @else {\n <!-- NOTE: for multi select -->\n <li class=\"gtr-option\" [class.change-loading]=\"changeLoading\" [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\" [attr.data-value]=\"option\" (keyup.enter)=\"handleOptionClick(option)\" [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \" (click)=\"handleOptionClick(option)\"\n [attr.name]=\"name\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-option'\" tabindex=\"0\" role=\"option\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n }\n }\n }\n </ul>\n <!-- Options List Wrapper -->\n\n <!-- add button -->\n @if (enableAddButton && addButtonPosition === 'bottom') {\n <ng-container *ngTemplateOutlet=\"addButtonTemplate\"></ng-container>\n }\n <!-- add button -->\n </span>\n }\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n @if (is_invalid && !isOnlyView) {\n <ng-container *ngTemplateOutlet=\"errorMessageTemplate\"></ng-container>\n }\n <!-- Error Message ends here... -->\n </ng-container>\n <!-- skeleton loading ends here... -->\n</div>\n<!-- ************ Select Box Element ************ -->\n\n<!-- ************ Common Templates ************ -->\n\n<!-- Input Label Template -->\n<ng-template #inputLabelTemplate>\n <label for=\"gtr-select\" class=\"gtr-form-element-label\" [class.gtr-only-view]=\"isOnlyView\">{{ inputLabel }}</label>\n</ng-template>\n<!-- Input Label Template ends here... -->\n\n<!-- Error Message Template -->\n<ng-template #errorMessageTemplate>\n <div class=\"gtr-error-wrap\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n</ng-template>\n<!-- Error Message Template ends here... -->\n\n<!-- Placeholder Template -->\n<ng-template #placeholderTemplate>\n <div class=\"gtr-selected-items\">\n <span class=\"gtr-placeholder\" [attr.aria-placeholder]=\"placeholder\">{{\n placeholder | gtrTrimText : textLimit\n }}</span>\n </div>\n</ng-template>\n<!-- Placeholder Template ends here... -->\n\n<!-- Floating Placeholder Template -->\n<ng-template #floatPlaceholderTemplate>\n <span class=\"gtr-placeholder float\" [attr.aria-placeholder]=\"placeholder\">{{\n placeholder | gtrTrimText : textLimit\n }}</span>\n</ng-template>\n<!-- Floating Placeholder Template ends here... -->\n\n<!-- Option Label Template -->\n<ng-template #optionLabelTemplate let-option=\"option\">\n <div class=\"gtr-option-custom-label\">\n <span [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\">{{\n (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit\n }}</span>\n @if (subLabel) {\n <br/>\n <span class=\"sub-label\" [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\">{{\n (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit\n }}</span>\n }\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n\n<!-- Add button template -->\n<ng-template #addButtonTemplate>\n <div class=\"add-button-wrapper\" [class.disabled]=\"hideOptions\" tabindex=\"0\" (click)=\"handleAddButton()\"\n (keyup.enter)=\"handleAddButton()\"\n [attr.data-transaction-name]=\"dataTransactionName + '-select-add-button'\">\n <span class=\"add-button\">\n <span [innerHTML]=\"addButtonLabel\"></span>\n </span>\n </div>\n</ng-template>\n<!-- Add button template ends here -->\n", styles: [":host{--gtr-webkit-scrollbar-color: var(--gtr-color-base-white-100);--gtr-webkit-scrollbar-thumb: #e4e4e4;--gtr-webkit-scrollbar-border-radius: 6px;--gtr-font-size-13: 13px;--gtr-select-box-dropdown-shadow: 0px 10px 20px rgba(165, 163, 174, .4);--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-background-transparent: transparent;--gtr-input-height: 38px;--gtr-input-readonly-height: 21px;--gray-shades-40: rgba(0, 0, 0, .4);--gtr-color-base-black-10: rgba(0, 0, 0, .1);--gtr-color-base-black-80: rgba(0, 0, 0, .8);--gtr-color-base-black-40: rgba(0, 0, 0, .4);--gtr-color-base-primary-80: rgba(0, 89, 156, .8);--gtr-color-base-black-5: rgba(0, 0, 0, .05);--gtr-color-base-danger-100: #ea5455;--gtr-color-base-label-100:var(--default);box-sizing:border-box}.gtr-select-wrapper *,.gtr-select-wrapper :after,.gtr-select-wrapper :before{box-sizing:border-box}.gtr-select-wrapper{display:block;width:100%}.gtr-select-wrapper .gtr-form-element-label{display:block;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;color:var(--gtr-color-base-label-100);position:unset}.gtr-select-wrapper.gtr-only-view{pointer-events:none;cursor:default}.gtr-select-wrapper.gtr-only-view .gtr-form-element-label{margin:0}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box{height:auto;border:none;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:21px}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box .gtr-placeholder{display:none}.gtr-select-wrapper.gtr-only-view .gtr-select .gtr-select-box gtr-icon{display:none}.gtr-select{position:relative;width:100%;transition:.2s ease;display:flex}.gtr-select ::-webkit-scrollbar{width:6px}.gtr-select ::-webkit-scrollbar-track{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-color)}.gtr-select ::-webkit-scrollbar-thumb{background:var(--gtr-webkit-scrollbar-thumb);border-radius:var(--gtr-webkit-scrollbar-border-radius)}.gtr-select:active .gtr-select-box,.gtr-select:focus .gtr-select-box{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box{position:relative;width:100%;height:38px;background:var(--gtr-color-base-white-100);border-radius:6px;display:flex;align-items:center;padding-left:15px;padding-right:35px;color:var(--gtr-color-base-black-80);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:var(--gtr-color-base-black-10);cursor:pointer;transition:.2s ease;order:0}.gtr-select .gtr-select-box:focus,.gtr-select .gtr-select-box:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.open{border-color:var(--gtr-color-base-primary-60)}.gtr-select .gtr-select-box.multi{padding-left:6px}.gtr-select .gtr-select-box.multi.float{padding-left:15px}.gtr-select .gtr-select-box>gtr-icon{position:absolute;top:8px;right:8px}.gtr-select.open-up .gtr-options-wrapper{top:100%}.gtr-select.open-bottom .gtr-options-wrapper{top:40px}.gtr-select .gtr-options-wrapper{margin:0;position:absolute;background:var(--gtr-color-base-white-100);top:40px;min-width:250px;left:0;width:100%;box-shadow:var(--gtr-select-box-dropdown-shadow);border-radius:6px;z-index:99999;overflow-y:auto;box-sizing:border-box;perspective:1000px;transform-origin:top center;animation:growOut .1s 0s ease-in-out none;display:none;opacity:0}.gtr-select .gtr-options-wrapper.open{display:block;opacity:1}.gtr-select .gtr-options-wrapper .gtr-options-list{list-style-type:none;margin:0;padding:8px;width:100%;z-index:2;overflow-y:auto;max-height:250px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-loading-text{text-align:center;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;pointer-events:none;margin:0 0 5px}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option{border-radius:6px;padding:10px 15px;color:var(--gtr-color-base-black-100);font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:var(--gtr-size-font-weight-normal);font-size:13px;line-height:18px;cursor:pointer;margin:0 0 5px;transition:.3s ease;white-space:break-spaces;word-wrap:break-word}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:hover,.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.hovered{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100)}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option:focus{background:var(--gtr-color-base-primary-10);color:var(--gtr-color-base-primary-100);outline:none}.gtr-select .gtr-options-wrapper .gtr-options-list .gtr-option.selected{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper{display:block}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input{width:calc(100% - 1rem);border:1px solid var(--gtr-color-base-black-10);border-radius:6px;height:36px;padding:0 15px;outline:0;font-family:var(--gtr-component-font-family-base);font-style:normal;font-weight:400;font-size:13px;line-height:15px;color:var(--gtr-color-base-black-100);margin:8px 8px 5px;transition:.2s ease}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input.showLoader{padding-right:36px}.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:hover,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:focus,.gtr-select .gtr-options-wrapper .gtr-input-wrapper .gtr-search-input:active{border-color:var(--gtr-color-base-primary-60)}.gtr-select.disabled{pointer-events:none;cursor:default}.add-button-wrapper.disabled,.gtr-options-list.disabled{pointer-events:none;cursor:default;opacity:.6}.gtr-select.readonly{pointer-events:none;cursor:default}.gtr-select.disabled .gtr-select-box{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-select.invalid .gtr-select-box{border:solid 1px var(--gtr-color-base-danger-100)}.gtr-select.invalid .gtr-select-box>gtr-icon[name=info-circle-filled]{right:35px}.gtr-select .gtr-select-box .gtr-selected-items{width:100%;display:flex;align-items:center}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value{background:var(--gtr-color-base-primary-10);border-radius:4px;color:var(--gtr-color-base-primary-100);display:flex;align-items:center;padding:1px 8px;margin:0 10px 0 0;cursor:default}.gtr-select .gtr-select-box .gtr-selected-items .gtr-multi-select-value gtr-icon{margin-left:5px;cursor:pointer}.gtr-select .gtr-select-box .gtr-selected-items .gtr-single-select{background-color:none;padding:0;border-radius:0;font-family:var(--gtr-component-font-family-base)}.gtr-select .gtr-select-box .gtr-selected-items .gtr-placeholder{color:var(--gtr-color-base-black-40);font-family:var(--gtr-component-font-family-base)}.gtr-placeholder.float{margin-right:6px}.gtr-multi-select-count{margin-left:auto}.gtr-error-wrap{font-weight:500;font-size:11px;display:flex;color:var(--gtr-color-base-danger-100);align-items:center;padding-top:5px}.gtr-option-custom-label .bold{font-weight:600}.add-button-wrapper{background:var(--gtr-color-base-secondary-100);color:var(--gtr-color-font-inverse-secondary);min-height:38px;width:100%;padding:.5rem;display:flex;align-items:center;align-self:center;justify-content:flex-start;font-size:13px;font-weight:500;padding:8px 16px;cursor:pointer}.gtr-autocomplete-input{border:none;padding:0;margin:0;outline:0;width:100%;height:100%}.gtr-autocomplete-input::placeholder{color:var(--gtr-color-base-black-40)}.gtr-select-box:has(.gtr-autocomplete-input::focus){border-color:var(--gtr-color-base-primary-60)}.gtr-select-spinner{display:flex;justify-content:center;width:fit-content;height:fit-content;position:absolute;top:16px;right:16px}.gtr-select-spinner:after{content:\" \";width:1.2rem;height:1.2rem;margin:0;border-radius:50%;border:3px solid var(--gtr-color-base-primary-100);border-color:var(--gtr-color-base-primary-100) var(--gtr-color-base-primary-100) transparent var(--gtr-color-base-primary-100);animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes growOut{0%{opacity:0;-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}80%{-webkit-transform:scale(1.07);-moz-transform:scale(1.07);-o-transform:scale(1.07);-ms-transform:scale(1.07);transform:scale(1.07)}to{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}\n"] }]
8542
8542
  }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { inputLabel: [{
8543
8543
  type: Input
8544
8544
  }], placeholder: [{
@@ -9717,6 +9717,270 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
9717
9717
  type: Output
9718
9718
  }] } });
9719
9719
 
9720
+ /** Converts any CSS color (hex, rgb, hsl, etc.) to rgba with alpha */
9721
+ function toRGBA(color, alpha) {
9722
+ // Create a hidden element to let the browser resolve the color
9723
+ const temp = document.createElement('div');
9724
+ temp.style.color = color;
9725
+ document.body.appendChild(temp);
9726
+ const computed = getComputedStyle(temp).color; // always returns "rgb(r,g,b)" or "rgba(r,g,b,a)"
9727
+ document.body.removeChild(temp);
9728
+ const rgbaMatch = computed.match(/(\d+),\s*(\d+),\s*(\d+)/);
9729
+ if (!rgbaMatch)
9730
+ return color; // fallback if parsing fails
9731
+ const [_, r, g, b] = rgbaMatch;
9732
+ return `rgba(${r}, ${g}, ${b}, ${alpha})`;
9733
+ }
9734
+
9735
+ class GtrTagsInputComponent {
9736
+ // Reset tag input
9737
+ set resetTagInput(state) {
9738
+ if (state) {
9739
+ this.tagControl?.reset('');
9740
+ }
9741
+ }
9742
+ constructor() {
9743
+ this.value = [];
9744
+ this.inputLabel = '';
9745
+ this.type = 'text';
9746
+ this.disabled = false;
9747
+ this.readonly = false;
9748
+ this.dataTransactionName = 'tag-input';
9749
+ this.invalid = false;
9750
+ this.placeholder = 'Press enter to add tag ...';
9751
+ this.options = [];
9752
+ this.maxTags = Infinity;
9753
+ this.removeLastOnBackspace = true;
9754
+ this.canDeleteTags = true;
9755
+ this.canAddTags = true;
9756
+ this.onlyFromDropdown = false;
9757
+ this.color = '#21617d'; // dynamic color
9758
+ this.dangerColor = '#d9534f'; // dynamic danger color
9759
+ this._removeValidators = true;
9760
+ // Value Changed
9761
+ this.valueChanged = new EventEmitter();
9762
+ // On Touched
9763
+ this.touched = new EventEmitter();
9764
+ // Tag Form Control Status
9765
+ this.inputStatus = new EventEmitter();
9766
+ // Set Tag Validators
9767
+ this.removeValidators = false;
9768
+ this.customValidators = [Validators.required];
9769
+ // services
9770
+ this._destroyRef = inject(DestroyRef);
9771
+ // is touched
9772
+ this.isTouched = false;
9773
+ /** Control Value Accessor Methods */
9774
+ this.onChange = () => { };
9775
+ this.onTouched = () => { };
9776
+ // Tag Control
9777
+ this.tagControl = new FormControl('');
9778
+ this.filteredOptions = [];
9779
+ this.showDropdown = false;
9780
+ this.controlDir = inject(NgControl, { self: true, optional: true });
9781
+ this.elementRef = inject(ElementRef);
9782
+ if (this.controlDir) {
9783
+ this.controlDir.valueAccessor = this;
9784
+ }
9785
+ }
9786
+ ngOnChanges(changes) {
9787
+ if (changes['removeValidators']) {
9788
+ this._removeValidators = this.removeValidators;
9789
+ }
9790
+ if (changes['customValidators'] || changes['removeValidators']) {
9791
+ this.updateTagValidators();
9792
+ }
9793
+ if ((changes['primaryColor'] && changes['primaryColor'].currentValue) ||
9794
+ (changes['dangerColor'] && changes['dangerColor'].currentValue)) {
9795
+ this.applyColorVariables(changes['primaryColor'].currentValue, changes['dangerColor'].currentValue);
9796
+ }
9797
+ if (changes['canAddTags'] || changes['value'] || changes['maxTags']) {
9798
+ this.updateDisabledState();
9799
+ }
9800
+ }
9801
+ ngOnInit() {
9802
+ this.applyColorVariables(this.color);
9803
+ this.updateTagValidators();
9804
+ // Listen for input changes to filter dropdown
9805
+ this.tagControl.valueChanges
9806
+ .pipe(takeUntilDestroyed(this._destroyRef))
9807
+ .subscribe((inputValue) => {
9808
+ this.filterOptions(inputValue);
9809
+ });
9810
+ this.tagControl?.statusChanges?.pipe(takeUntilDestroyed(this._destroyRef))?.subscribe({
9811
+ next: (res) => {
9812
+ this.inputStatus.emit(res);
9813
+ },
9814
+ });
9815
+ }
9816
+ updateDisabledState() {
9817
+ const shouldDisable = !this.canAddTags || this.value.length >= this.maxTags;
9818
+ if (shouldDisable && this.tagControl.enabled) {
9819
+ this.tagControl.disable({ emitEvent: false });
9820
+ }
9821
+ else if (!shouldDisable && this.tagControl.disabled) {
9822
+ this.tagControl.enable({ emitEvent: false });
9823
+ }
9824
+ }
9825
+ applyColorVariables(color, danger = this.dangerColor) {
9826
+ const root = this.elementRef.nativeElement;
9827
+ // Convert to rgba with alpha 0.1 using browser-safe method
9828
+ const rgba = toRGBA(color, 0.1);
9829
+ root.style.setProperty('--dropdown-hover-bg', rgba);
9830
+ root.style.setProperty('--dropdown-hover-color', color);
9831
+ root.style.setProperty('--dropdown-active-bg', color);
9832
+ root.style.setProperty('--dropdown-active-color', '#fff');
9833
+ root.style.setProperty('--danger-color', danger);
9834
+ }
9835
+ filterOptions(inputValue) {
9836
+ const filterValue = inputValue?.toLowerCase() || '';
9837
+ // Show all options if input is empty
9838
+ this.filteredOptions = this.options.filter((option) => option.toLowerCase().includes(filterValue) && !this.value.includes(option));
9839
+ this.showDropdown = this.filteredOptions.length > 0;
9840
+ }
9841
+ selectOption(option) {
9842
+ this.tagControl.setValue(option);
9843
+ this.addTag({ target: { value: option } }); // Simulate input event
9844
+ this.showDropdown = false;
9845
+ }
9846
+ updateTagValidators() {
9847
+ if (this._removeValidators) {
9848
+ this.tagControl.setValidators([]);
9849
+ }
9850
+ else {
9851
+ this.tagControl.setValidators([...this.customValidators]);
9852
+ }
9853
+ this.tagControl.updateValueAndValidity();
9854
+ }
9855
+ writeValue(value) {
9856
+ this.value = value || [];
9857
+ }
9858
+ registerOnChange(fn) {
9859
+ this.onChange = fn;
9860
+ }
9861
+ registerOnTouched(fn) {
9862
+ this.onTouched = fn;
9863
+ }
9864
+ handleBackspace(event) {
9865
+ const keyboardEvent = event;
9866
+ setTimeout(() => {
9867
+ const inputValue = this.tagControl.value;
9868
+ if (!inputValue && this.removeLastOnBackspace && this.value.length > 0) {
9869
+ keyboardEvent.preventDefault();
9870
+ this.removeTag(this.value.length - 1);
9871
+ this.tagInputRef?.nativeElement?.focus();
9872
+ }
9873
+ });
9874
+ }
9875
+ setDisabledState(isDisabled) {
9876
+ this.disabled = isDisabled;
9877
+ if (this.disabled) {
9878
+ this.tagControl.disable();
9879
+ }
9880
+ }
9881
+ // Handle Blur
9882
+ handleBlur() {
9883
+ this.isTouched = true;
9884
+ this.onTouched();
9885
+ this.touched.emit(true);
9886
+ // Delay closing dropdown to allow option click
9887
+ setTimeout(() => {
9888
+ this.showDropdown = false;
9889
+ }, 100);
9890
+ }
9891
+ //Add Tag
9892
+ addTag(event) {
9893
+ if (!this.canAddTags)
9894
+ return;
9895
+ const inputValue = event.target?.value?.trim();
9896
+ if (!inputValue)
9897
+ return;
9898
+ if (this.onlyFromDropdown && !this.options.includes(inputValue))
9899
+ return;
9900
+ if (this.value.length >= this.maxTags) {
9901
+ this.tagControl.setValue('');
9902
+ this.tagControl.markAsTouched();
9903
+ this.showDropdown = false;
9904
+ return;
9905
+ }
9906
+ if (this.tagControl?.valid) {
9907
+ this.value = [...this.value, inputValue];
9908
+ this.onChange(this.value);
9909
+ this.valueChanged.emit(this.value);
9910
+ this.tagControl.reset('');
9911
+ }
9912
+ else {
9913
+ this.tagControl?.markAllAsTouched();
9914
+ }
9915
+ }
9916
+ // Remove Tag
9917
+ removeTag(index) {
9918
+ if (index > -1) {
9919
+ const newValue = [...this.value];
9920
+ newValue.splice(index, 1);
9921
+ this.value = [...newValue];
9922
+ this.onChange(this.value);
9923
+ console.log(this.value);
9924
+ this.tagControl.setValue('');
9925
+ this.filterOptions('');
9926
+ this.tagInputRef?.nativeElement?.focus();
9927
+ }
9928
+ }
9929
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: GtrTagsInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9930
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: GtrTagsInputComponent, isStandalone: true, selector: "gtr-tags-input", inputs: { value: "value", inputLabel: "inputLabel", type: "type", disabled: "disabled", readonly: "readonly", dataTransactionName: "dataTransactionName", invalid: "invalid", placeholder: "placeholder", options: "options", maxTags: "maxTags", removeLastOnBackspace: "removeLastOnBackspace", canDeleteTags: "canDeleteTags", canAddTags: "canAddTags", onlyFromDropdown: "onlyFromDropdown", color: "color", dangerColor: "dangerColor", resetTagInput: "resetTagInput", removeValidators: "removeValidators", customValidators: "customValidators" }, outputs: { valueChanged: "valueChanged", touched: "touched", inputStatus: "inputStatus" }, viewQueries: [{ propertyName: "tagInputRef", first: true, predicate: ["tagInputRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"tag-input-wrapper\">\n @if (inputLabel) {\n <label for=\"tag-input\" class=\"tag-input-label gtr-custom-label\">{{ inputLabel }}</label>\n }\n <div\n class=\"tag-input-container\"\n [class.invalid]=\"invalid || (tagControl?.invalid && tagControl?.touched)\"\n >\n @for (item of value; track i; let i = $index) {\n <div class=\"tag-chips\">\n {{ item }}\n @if (canDeleteTags) {\n <gtr-icon name=\"x\" [size]=\"16\" color=\"primary\" (click)=\"removeTag(i)\"></gtr-icon>\n }\n </div>\n }\n\n <div class=\"input-wrapper\">\n <input\n #tagInputRef\n [type]=\"type\"\n (focus)=\"filterOptions('')\"\n name=\"tag\"\n class=\"tag-input\"\n [placeholder]=\"placeholder\"\n [formControl]=\"tagControl\"\n [attr.data-transaction-name]=\"dataTransactionName + '--input'\"\n (blur)=\"handleBlur()\"\n (keydown.backspace)=\"handleBackspace($event)\"\n (keydown.enter)=\"addTag($event)\"\n />\n @if (showDropdown && filteredOptions.length > 0) {\n <ul class=\"dropdown-list\">\n @for (option of filteredOptions; track option) {\n <li (mousedown)=\"selectOption(option)\" [class.active]=\"option === tagControl.value\">\n {{ option }}\n </li>\n }\n </ul>\n }\n </div>\n\n @if (value.length >= maxTags) {\n <span class=\"tag-limit-msg\">Maximum {{ maxTags }} tags allowed</span>\n }\n </div>\n\n <!-- Error container -->\n @if (invalid || (tagControl?.touched && tagControl?.invalid)) {\n <div class=\"gtr-error-message\">\n <ng-content slot=\"['custom-error']\"> </ng-content>\n </div>\n }\n</div>\n", styles: [".tag-input-wrapper{display:block;width:100%;box-sizing:border-box;margin:0;padding:0}.tag-input-wrapper .input-wrapper{position:relative;width:100%}.tag-input-wrapper .input-wrapper input{width:100%;box-sizing:border-box}.tag-input-wrapper .dropdown-list{position:absolute;top:100%;left:-11px;right:0;background:#fff;border:1px solid #ccc;z-index:10;overflow-y:auto;margin-top:6px;list-style:none;box-shadow:0 2px 6px #00000026;transition:all .2s ease-in-out;padding:8px;max-height:250px;width:107%;border-radius:6px!important}.tag-input-wrapper .dropdown-list li{padding:10px 15px;cursor:pointer;margin:0 0 5px;font-size:13px;line-height:18px;transition:background-color .2s ease;font-weight:var(--gtr-size-font-weight-normal);font-style:normal;color:var(--gtr-color-base-black-100);white-space:break-spaces;word-wrap:break-word;transition:.3s ease}.tag-input-wrapper .dropdown-list li:hover{background-color:var(--dropdown-hover-bg, rgba(33, 97, 125, .1));color:var(--dropdown-hover-color, #21617d)}.tag-input-wrapper .tag-limit-msg{font-size:11px;color:var(--danger-color, #ea5455);font-weight:500}.tag-input-wrapper .dropdown-list li.active{background-color:var(--dropdown-active-bg, #21617d);color:var(--dropdown-active-color, #fff)}.tag-input-wrapper .dropdown-list::-webkit-scrollbar{width:8px}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-thumb{background-color:var(--dropdown-hover-color);border-radius:6px}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-thumb:hover{background-color:#184b60}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:6px}.tag-input-wrapper .dropdown-list{scrollbar-color:#21617d #f1f1f1;scrollbar-width:thin}.tag-input-wrapper .tag-input-container{position:relative;width:100%;max-width:100%;min-height:38px;height:100%;background-color:#fff;border-radius:6px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;padding:4px 10px;color:#000c;font-style:normal;font-weight:400;font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:#0000001a;cursor:pointer;transition:.2s ease;order:0}.tag-input-wrapper .tag-input-container.invalid{border-color:var(--danger-color, #ea5455)}.tag-input-wrapper .tag-input-container .tag-chips{background-color:var(--dropdown-hover-bg, rgba(33, 97, 125, .1));color:var(--dropdown-hover-color, #21617d);border-radius:6px;font-size:13px;padding:4px 10px;display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:3px 2px;white-space:normal;word-break:break-word}.tag-input-wrapper .tag-input-container .tag-input{border:none;outline:none;cursor:text;flex-grow:1}.tag-input-wrapper .tag-input-container:has(.tag-input:hover,.tag-input:focus){border-color:var(--dropdown-hover-color, #21617d)}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
9931
+ }
9932
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: GtrTagsInputComponent, decorators: [{
9933
+ type: Component,
9934
+ args: [{ selector: 'gtr-tags-input', imports: [ReactiveFormsModule, FormsModule, GtrIconComponent], template: "<div class=\"tag-input-wrapper\">\n @if (inputLabel) {\n <label for=\"tag-input\" class=\"tag-input-label gtr-custom-label\">{{ inputLabel }}</label>\n }\n <div\n class=\"tag-input-container\"\n [class.invalid]=\"invalid || (tagControl?.invalid && tagControl?.touched)\"\n >\n @for (item of value; track i; let i = $index) {\n <div class=\"tag-chips\">\n {{ item }}\n @if (canDeleteTags) {\n <gtr-icon name=\"x\" [size]=\"16\" color=\"primary\" (click)=\"removeTag(i)\"></gtr-icon>\n }\n </div>\n }\n\n <div class=\"input-wrapper\">\n <input\n #tagInputRef\n [type]=\"type\"\n (focus)=\"filterOptions('')\"\n name=\"tag\"\n class=\"tag-input\"\n [placeholder]=\"placeholder\"\n [formControl]=\"tagControl\"\n [attr.data-transaction-name]=\"dataTransactionName + '--input'\"\n (blur)=\"handleBlur()\"\n (keydown.backspace)=\"handleBackspace($event)\"\n (keydown.enter)=\"addTag($event)\"\n />\n @if (showDropdown && filteredOptions.length > 0) {\n <ul class=\"dropdown-list\">\n @for (option of filteredOptions; track option) {\n <li (mousedown)=\"selectOption(option)\" [class.active]=\"option === tagControl.value\">\n {{ option }}\n </li>\n }\n </ul>\n }\n </div>\n\n @if (value.length >= maxTags) {\n <span class=\"tag-limit-msg\">Maximum {{ maxTags }} tags allowed</span>\n }\n </div>\n\n <!-- Error container -->\n @if (invalid || (tagControl?.touched && tagControl?.invalid)) {\n <div class=\"gtr-error-message\">\n <ng-content slot=\"['custom-error']\"> </ng-content>\n </div>\n }\n</div>\n", styles: [".tag-input-wrapper{display:block;width:100%;box-sizing:border-box;margin:0;padding:0}.tag-input-wrapper .input-wrapper{position:relative;width:100%}.tag-input-wrapper .input-wrapper input{width:100%;box-sizing:border-box}.tag-input-wrapper .dropdown-list{position:absolute;top:100%;left:-11px;right:0;background:#fff;border:1px solid #ccc;z-index:10;overflow-y:auto;margin-top:6px;list-style:none;box-shadow:0 2px 6px #00000026;transition:all .2s ease-in-out;padding:8px;max-height:250px;width:107%;border-radius:6px!important}.tag-input-wrapper .dropdown-list li{padding:10px 15px;cursor:pointer;margin:0 0 5px;font-size:13px;line-height:18px;transition:background-color .2s ease;font-weight:var(--gtr-size-font-weight-normal);font-style:normal;color:var(--gtr-color-base-black-100);white-space:break-spaces;word-wrap:break-word;transition:.3s ease}.tag-input-wrapper .dropdown-list li:hover{background-color:var(--dropdown-hover-bg, rgba(33, 97, 125, .1));color:var(--dropdown-hover-color, #21617d)}.tag-input-wrapper .tag-limit-msg{font-size:11px;color:var(--danger-color, #ea5455);font-weight:500}.tag-input-wrapper .dropdown-list li.active{background-color:var(--dropdown-active-bg, #21617d);color:var(--dropdown-active-color, #fff)}.tag-input-wrapper .dropdown-list::-webkit-scrollbar{width:8px}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-thumb{background-color:var(--dropdown-hover-color);border-radius:6px}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-thumb:hover{background-color:#184b60}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:6px}.tag-input-wrapper .dropdown-list{scrollbar-color:#21617d #f1f1f1;scrollbar-width:thin}.tag-input-wrapper .tag-input-container{position:relative;width:100%;max-width:100%;min-height:38px;height:100%;background-color:#fff;border-radius:6px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;padding:4px 10px;color:#000c;font-style:normal;font-weight:400;font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:#0000001a;cursor:pointer;transition:.2s ease;order:0}.tag-input-wrapper .tag-input-container.invalid{border-color:var(--danger-color, #ea5455)}.tag-input-wrapper .tag-input-container .tag-chips{background-color:var(--dropdown-hover-bg, rgba(33, 97, 125, .1));color:var(--dropdown-hover-color, #21617d);border-radius:6px;font-size:13px;padding:4px 10px;display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:3px 2px;white-space:normal;word-break:break-word}.tag-input-wrapper .tag-input-container .tag-input{border:none;outline:none;cursor:text;flex-grow:1}.tag-input-wrapper .tag-input-container:has(.tag-input:hover,.tag-input:focus){border-color:var(--dropdown-hover-color, #21617d)}\n"] }]
9935
+ }], ctorParameters: () => [], propDecorators: { tagInputRef: [{
9936
+ type: ViewChild,
9937
+ args: ['tagInputRef']
9938
+ }], value: [{
9939
+ type: Input
9940
+ }], inputLabel: [{
9941
+ type: Input
9942
+ }], type: [{
9943
+ type: Input
9944
+ }], disabled: [{
9945
+ type: Input
9946
+ }], readonly: [{
9947
+ type: Input
9948
+ }], dataTransactionName: [{
9949
+ type: Input
9950
+ }], invalid: [{
9951
+ type: Input
9952
+ }], placeholder: [{
9953
+ type: Input
9954
+ }], options: [{
9955
+ type: Input
9956
+ }], maxTags: [{
9957
+ type: Input
9958
+ }], removeLastOnBackspace: [{
9959
+ type: Input
9960
+ }], canDeleteTags: [{
9961
+ type: Input
9962
+ }], canAddTags: [{
9963
+ type: Input
9964
+ }], onlyFromDropdown: [{
9965
+ type: Input
9966
+ }], color: [{
9967
+ type: Input
9968
+ }], dangerColor: [{
9969
+ type: Input
9970
+ }], resetTagInput: [{
9971
+ type: Input
9972
+ }], valueChanged: [{
9973
+ type: Output
9974
+ }], touched: [{
9975
+ type: Output
9976
+ }], inputStatus: [{
9977
+ type: Output
9978
+ }], removeValidators: [{
9979
+ type: Input
9980
+ }], customValidators: [{
9981
+ type: Input
9982
+ }] } });
9983
+
9720
9984
  const MAX_LOOKUP_RETRIES = 3;
9721
9985
  class AutosizeDirective {
9722
9986
  set minRows(value) {
@@ -9906,5 +10170,5 @@ function debounce(func, timeout) {
9906
10170
  * Generated bundle index. Do not edit.
9907
10171
  */
9908
10172
 
9909
- export { AutosizeDirective, BreakpointInfix, CContrastBorderColorVariable, ColorHelper, EContrastColor, GtrAccordionComponent, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDropdownComponent, GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrComponentName, GtrDatePickerComponent, GtrDateRangePickerComponent, GtrDisplayValueComponent, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrInputColorComponent, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrModalComponent, GtrNumericCounterComponent, GtrPaginationComponent, GtrPopoverComponent, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSkeletonComponent, GtrSkeletonDirective, GtrStatCardComponent, GtrSwitchComponent, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableResponsiveComponent, GtrTabsWrapperComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTimePickerComponent, GtrToasterComponent, GtrToasterService, GtrTooltipComponent, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
10173
+ export { AutosizeDirective, BreakpointInfix, CContrastBorderColorVariable, ColorHelper, EContrastColor, GtrAccordionComponent, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDropdownComponent, GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrComponentName, GtrDatePickerComponent, GtrDateRangePickerComponent, GtrDisplayValueComponent, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrInputColorComponent, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrModalComponent, GtrNumericCounterComponent, GtrPaginationComponent, GtrPopoverComponent, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSkeletonComponent, GtrSkeletonDirective, GtrStatCardComponent, GtrSwitchComponent, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableResponsiveComponent, GtrTabsWrapperComponent, GtrTagsInputComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTimePickerComponent, GtrToasterComponent, GtrToasterService, GtrTooltipComponent, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
9910
10174
  //# sourceMappingURL=gettrx-core-components-angular.mjs.map