@gettrx/core-components-angular 1.0.43 → 1.0.44

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.
@@ -736,8 +736,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
736
736
  }] } });
737
737
 
738
738
  class GtrInputComponent {
739
- constructor(ngControl) {
739
+ constructor(ngControl, renderer) {
740
740
  this.ngControl = ngControl;
741
+ this.renderer = renderer;
741
742
  this.onChanged = (e) => {
742
743
  // console.log(e);
743
744
  };
@@ -854,6 +855,14 @@ class GtrInputComponent {
854
855
  * The input data to be send when input value changes
855
856
  */
856
857
  this.data = {};
858
+ /**
859
+ * The input unique id
860
+ */
861
+ this.setFocus =
862
+ /**
863
+ * The component function to handle input focus
864
+ */
865
+ false;
857
866
  /**
858
867
  * The component function to verify error input messages
859
868
  */
@@ -879,6 +888,12 @@ class GtrInputComponent {
879
888
  setDisabledState(isDisabled) {
880
889
  this.disabled = isDisabled;
881
890
  }
891
+ ngAfterViewInit() {
892
+ if (this.setFocus && this.inputId) {
893
+ const element = this.renderer.selectRootElement(`#${this.inputId}`);
894
+ setTimeout(() => element.focus(), 0);
895
+ }
896
+ }
882
897
  /**
883
898
  * The input type
884
899
  */
@@ -1034,8 +1049,8 @@ class GtrInputComponent {
1034
1049
  ? this.hasError || (!this.defaultValidation ? !this.isValid : false)
1035
1050
  : false;
1036
1051
  }
1037
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
1038
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputComponent, selector: "gtr-input", inputs: { inputWrapperId: "inputWrapperId", loading: "loading", type: "type", value: "value", placeholder: "placeholder", inputIcon: "inputIcon", iconSize: "iconSize", iconColor: "iconColor", iconPosition: "iconPosition", iconFontWeight: "iconFontWeight", inputLabel: "inputLabel", disabled: "disabled", validateLabel: "validateLabel", isNumber: "isNumber", readonly: "readonly", isOnlyView: "isOnlyView", defaultValidation: "defaultValidation", required: "required", isValid: "isValid", inputId: "inputId" }, outputs: { inputChanged: "inputChanged", handleError: "handleError" }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n <div class=\"input-icon\">\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\"\n *ngIf=\"inputIcon && iconPosition == 'start'\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <span [class]=\"'gtr-form-element-input ' + (inputIcon && iconPosition)\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value ? value : placeholder}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\"\n *ngIf=\"inputIcon && iconPosition == 'end'\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n </div>\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--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) }label{position:relative;left:auto;top:auto}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:auto;transform:all .4s ease}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}.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)}.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-form-element-input{height:var(--gtr-input-height);border:1px solid var(--gtr-color-base-black-10);width:100%!important;padding:8px 10px;display:flex;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6)}.gtr-form-element-input::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px}.gtr-form-element-input:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-input:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-input.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-input.isonlyview{border:none;height:auto;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:normal;min-height:21px;pointer-events:none;width:auto!important;word-break:break-all}.input-icon{display:flex;align-items:center}span.gtr-input-icon.isonlyview{position:absolute;margin:-20px 0 0 -1px;pointer-events:none}.gtr-form-element-input.gtr-input-width-icon.isonlyview{padding-left:1px}.gtr-form-element-label.isonlyview{margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-input-icon.start{position:absolute;margin:-30px 0 0 7px}.gtr-input-icon.start.isOnlyView{position:relative;line-height:0;margin:0 0 0 -5px}.gtr-input-icon.end.isOnlyView{position:relative;margin:0;right:auto;line-height:0}.gtr-input-icon.end{position:absolute;margin:-30px 7px 0 0;right:0}.gtr-form-element-input.gtr-input-width-icon.start{padding-left:var(--gtr-padding-32)}.gtr-form-element-input.gtr-input-width-icon.end{padding-right:var(--gtr-padding-32)}.gtr-form-element-input.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input:-moz-read-only,input:read-only{height:var(--gtr-input-readonly-height)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
1052
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputComponent, deps: [{ token: i1$1.NgControl, optional: true, self: true }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
1053
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrInputComponent, selector: "gtr-input", inputs: { inputWrapperId: "inputWrapperId", loading: "loading", type: "type", value: "value", placeholder: "placeholder", inputIcon: "inputIcon", iconSize: "iconSize", iconColor: "iconColor", iconPosition: "iconPosition", iconFontWeight: "iconFontWeight", inputLabel: "inputLabel", disabled: "disabled", validateLabel: "validateLabel", isNumber: "isNumber", readonly: "readonly", isOnlyView: "isOnlyView", defaultValidation: "defaultValidation", required: "required", isValid: "isValid", inputId: "inputId", setFocus: "setFocus" }, outputs: { inputChanged: "inputChanged", handleError: "handleError" }, ngImport: i0, template: "<div class=\"gtr-form-element-wrapper gtr-have-icon gtr-relative-element gtr-have-error\" [id]=\"inputWrapperId+'-wrapper'\"\n [attr.data-testid]=\"inputWrapperId+'-wrapper'\" *ngIf=\"this.isDesiredInput()\">\n <label *ngIf=\"inputLabel\" for={{this.inputId}} class=\"gtr-form-element-label\" [id]=\"inputWrapperId+'-label'\"\n [attr.data-testid]=\"inputWrapperId+'-label'\" [class.isonlyview]=\"isOnlyView\">\n {{inputLabel}}\n </label>\n <ng-container *skeleton=\"loading; repeat: 1; className:'skeleton-margin-bottom'; height: '16px'; width: '150px';\">\n <input *ngIf=\"!isOnlyView\" [id]=\"this.inputId\" [class]=\"'gtr-form-element-input ' + iconPosition\"\n [class.gtr-input-width-icon]=\"inputIcon\" [class.gtr-invalid]=\"isInputInvalid\"\n [type]=\"this.isDesiredInput() ? this.inputType : ''\" [value]=\"this.value\" [placeholder]=\"this.placeholder\"\n [disabled]=\"this.disabled\" [readOnly]=\"this.readonly\" [required]=\"this.required\"\n [tabIndex]=\"this.disabled || this.readonly ? -1 : 0\" (focus)=\"this.handleOnfocus()\" (blur)=\"this.handleOnBlur()\"\n (input)=\"this.handleInput($event)\" (keypress)=\"this.handledKeyPressed($event)\"\n [style.padding-left]=\"this.isOnlyView && this.inputIcon && this.iconPosition === 'start' ? (this.iconSize + 'px') : ''\" />\n <div class=\"input-icon\">\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\"\n *ngIf=\"inputIcon && iconPosition == 'start'\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n\n <span [class]=\"'gtr-form-element-input ' + (inputIcon && iconPosition)\" [id]=\"inputWrapperId+'-readonly'\"\n [attr.data-testid]=\"inputWrapperId+'-readonly'\" [class.isonlyview]=\"isOnlyView\" *ngIf=\"isOnlyView\">\n {{value ? value : placeholder}}\n </span>\n\n <span [class]=\"'gtr-input-icon ' + iconPosition\" [id]=\"inputWrapperId+'-icon'\"\n [attr.data-testid]=\"inputWrapperId+'-icon'\" [class.isOnlyView]=\"isOnlyView\"\n *ngIf=\"inputIcon && iconPosition == 'end'\">\n <gtr-icon [name]=\"this.inputIcon\" [size]=\"this.iconSize\" [color]=\"this.iconColor\"\n [weight]=\"this.iconFontWeight\"></gtr-icon>\n </span>\n </div>\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowDefaultError\">\n <gtr-icon name=\"info-circle-filled\" [size]=\"12\"></gtr-icon>\n {{this.errorMsg}}\n </div>\n <div class=\"gtr-error-wrap\" *ngIf=\"isShowCustomError\">\n <ng-content select=\"[slot='custom-error']\"></ng-content>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol,\"Noto Color Emoji\";margin:0;--gtr-border-radius-6: 6px;--gtr-padding-24: 24px;--gtr-padding-32: 32px;--gtr-font-size-13: 13px;--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) }label{position:relative;left:auto;top:auto}.gtr-form-element-wrapper *,.gtr-form-element-wrapper *:before,.gtr-form-element-wrapper *:after{box-sizing:border-box;margin:0;width:auto;transform:all .4s ease}.gtr-relative-element{position:relative}.gtr-disabled,:disabled{opacity:.7;cursor:default!important}.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)}.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-form-element-input{height:var(--gtr-input-height);border:1px solid var(--gtr-color-base-black-10);width:100%!important;padding:8px 10px;display:flex;align-items:center;color:var(--gtr-color-base-black-80);outline:0;font-size:var(--gtr-font-size-13);font-weight:400;line-height:21px;border-radius:var(--gtr-border-radius-6)}.gtr-form-element-input::placeholder{color:var(--gtr-color-base-black-40);font-size:13px;line-height:21px}.gtr-form-element-input:focus{border-color:var(--gtr-color-base-primary-80)}.gtr-form-element-input:disabled{background:var(--gtr-color-base-black-5);opacity:.5}.gtr-form-element-input.gtr-error{color:var(--gtr-color-base-danger-100)}.gtr-form-element-input.isonlyview{border:none;height:auto;padding:0;margin:0;color:var(--gtr-color-base-black-80);font-size:15px;font-style:normal;font-weight:600;line-height:normal;min-height:21px;pointer-events:none;width:auto!important;word-break:break-all}.input-icon{display:flex;align-items:center}span.gtr-input-icon.isonlyview{position:absolute;margin:-20px 0 0 -1px;pointer-events:none}.gtr-form-element-input.gtr-input-width-icon.isonlyview{padding-left:1px}.gtr-form-element-label.isonlyview{margin:0;pointer-events:none}.gtr-error-wrap gtr-icon{margin:-3px 6px 0 0}.gtr-input-icon.start{position:absolute;margin:-30px 0 0 7px}.gtr-input-icon.start.isOnlyView{position:relative;line-height:0;margin:0 0 0 -5px}.gtr-input-icon.end.isOnlyView{position:relative;margin:0;right:auto;line-height:0}.gtr-input-icon.end{position:absolute;margin:-30px 7px 0 0;right:0}.gtr-form-element-input.gtr-input-width-icon.start{padding-left:var(--gtr-padding-32)}.gtr-form-element-input.gtr-input-width-icon.end{padding-right:var(--gtr-padding-32)}.gtr-form-element-input.gtr-invalid{border-color:var(--gtr-color-base-danger-100)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input:-moz-read-only,input:read-only{height:var(--gtr-input-readonly-height)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }] }); }
1039
1054
  }
1040
1055
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrInputComponent, decorators: [{
1041
1056
  type: Component,
@@ -1044,7 +1059,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1044
1059
  type: Optional
1045
1060
  }, {
1046
1061
  type: Self
1047
- }] }]; }, propDecorators: { inputWrapperId: [{
1062
+ }] }, { type: i0.Renderer2 }]; }, propDecorators: { inputWrapperId: [{
1048
1063
  type: Input
1049
1064
  }], loading: [{
1050
1065
  type: Input
@@ -1088,6 +1103,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1088
1103
  type: Output
1089
1104
  }], inputId: [{
1090
1105
  type: Input
1106
+ }], setFocus: [{
1107
+ type: Input
1091
1108
  }] } });
1092
1109
 
1093
1110
  class GtrInputModule {
@@ -1991,11 +2008,11 @@ class GtrAccordionComponent {
1991
2008
  }
1992
2009
  }
1993
2010
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1994
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrAccordionComponent, selector: "gtr-accordion", inputs: { header: "header", status: "status", id: "id", testId: "testId", justifyContent: "justifyContent", prefixIcon: "prefixIcon", opened: "opened", iconSize: "iconSize", iconColor: "iconColor", iconWeight: "iconWeight", allowMultiple: "allowMultiple", expandAll: "expandAll", showArrowIcon: "showArrowIcon" }, outputs: { accordionState: "accordionState" }, ngImport: i0, template: "<div #accordionRef [id]=\"id\" [attr.data-test-id]=\"testId\">\n <div class=\"d-flex gtr-accordion-contianer\">\n <div class=\"gtr-accordion-wrapper\" [class.gtr-accordion-show]=\"opened\">\n <div\n class=\"gtr-accordion-header\"\n (keydown)=\"onKeyDown($event)\"\n (click)=\"toggleSection()\"\n tabindex=\"0\"\n >\n <div [class]=\"justifyContent + ' gtr-row'\">\n <span class=\"gtr-ww\">\n <ng-container *ngIf=\"prefixIcon\">\n <gtr-icon\n [name]=\"prefixIcon\"\n [size]=\"iconSize\"\n [color]=\"iconColor\"\n [weight]=\"iconWeight\"\n class=\"gtr-accordion-icon\"\n ></gtr-icon>\n </ng-container>\n {{ header }}\n </span>\n <ng-container *ngIf=\"status?.text\">\n <gtr-badge type=\"pill\" [color]=\"status?.color\">\n {{ status?.text }}</gtr-badge\n >\n </ng-container>\n </div>\n <ng-container *ngIf=\"showArrowIcon\">\n <gtr-icon\n [name]=\"'chevron-right'\"\n [size]=\"24\"\n color=\"var(--gtr-color-base-black-60)\"\n class=\"gtr-accordion-arrow-icon\"\n [class.rotate-icon]=\"opened\"\n ></gtr-icon>\n </ng-container>\n </div>\n <ng-container *ngIf=\"opened\">\n <div class=\"gtr-accordion-content\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-accordion-wrapper-box-shadow: 0px 2px 4px 0px rgba(165, 163, 174, .3)}.d-flex{display:flex}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.gtr-accordion-contianer{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0px;padding:5px 0}.gtr-accordion-wrapper{background:var(--gtr-color-base-white-100);box-shadow:var(--gtr-accordion-wrapper-box-shadow);border-radius:6px;padding:13px 18px;transition:all .4s ease;width:100%}@media screen and (max-width: 480px){.gtr-accordion-wrapper{padding:10px}}.gtr-accordion-header{font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-color-base-black-80);display:flex;justify-content:space-between;align-items:flex-start;cursor:pointer;align-items:center;padding:0 5px}.gtr-row{display:flex;align-items:center;gap:24px;width:calc(100% - 50px);cursor:pointer}.gtr-accordion-header>gtr-icon.gtr-accordion-arrow-icon{position:relative;right:7px}.gtr-accordion-content{font-size:14px;line-height:22px;color:var(--gtr-color-base-black-60);font-weight:400;margin-top:15px;padding:0 5px}.gtr-accordion-wrapper:not(.gtr-accordion-show) .gtr-accordion-content{display:none}.gtr-accordion-icon{position:relative;top:1px;margin-right:8px}.rotate-icon{transform:rotate(90deg)}@media screen and (max-width: 992px){.gtr-row{align-items:flex-start;gap:10px;flex-flow:column}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }] }); }
2011
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrAccordionComponent, selector: "gtr-accordion", inputs: { header: "header", status: "status", id: "id", testId: "testId", justifyContent: "justifyContent", prefixIcon: "prefixIcon", opened: "opened", iconSize: "iconSize", iconColor: "iconColor", iconWeight: "iconWeight", allowMultiple: "allowMultiple", expandAll: "expandAll", showArrowIcon: "showArrowIcon" }, outputs: { accordionState: "accordionState" }, ngImport: i0, template: "<div #accordionRef [id]=\"id\" [attr.data-test-id]=\"testId\">\n <div class=\"d-flex gtr-accordion-contianer\">\n <div class=\"gtr-accordion-wrapper\" [class.gtr-accordion-show]=\"opened\">\n <div class=\"gtr-accordion-header\" (keydown)=\"onKeyDown($event)\" (click)=\"toggleSection()\" tabindex=\"0\">\n <div [class]=\"justifyContent + ' gtr-row'\">\n <span class=\"gtr-ww\">\n <ng-container *ngIf=\"prefixIcon\">\n <gtr-icon [name]=\"prefixIcon\" [size]=\"iconSize\" [color]=\"iconColor\" [weight]=\"iconWeight\"\n class=\"gtr-accordion-icon\"></gtr-icon>\n </ng-container>\n {{ header }}\n </span>\n\n <ng-container *ngIf=\"status?.icon\">\n <gtr-icon type=\"pill\" [name]=\"status?.name\">\n </gtr-icon>\n </ng-container>\n\n <ng-container *ngIf=\"status?.text\">\n <gtr-badge type=\"pill\" [color]=\"status?.color\">\n {{ status?.text }}</gtr-badge>\n </ng-container>\n\n </div>\n <ng-container *ngIf=\"showArrowIcon\">\n <gtr-icon [name]=\"'chevron-right'\" [size]=\"24\" color=\"var(--gtr-color-base-black-60)\"\n class=\"gtr-accordion-arrow-icon\" [class.rotate-icon]=\"opened\"></gtr-icon>\n </ng-container>\n </div>\n <ng-container *ngIf=\"opened\">\n <div class=\"gtr-accordion-content\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-accordion-wrapper-box-shadow: 0px 2px 4px 0px rgba(165, 163, 174, .3)}.d-flex{display:flex}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.gtr-accordion-contianer{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0px;padding:5px 0}.gtr-accordion-wrapper{background:var(--gtr-color-base-white-100);box-shadow:var(--gtr-accordion-wrapper-box-shadow);border-radius:6px;padding:13px 18px;transition:all .4s ease;width:100%}@media screen and (max-width: 480px){.gtr-accordion-wrapper{padding:10px}}.gtr-accordion-header{font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-color-base-black-80);display:flex;justify-content:space-between;align-items:flex-start;cursor:pointer;align-items:center;padding:0 5px}.gtr-row{display:flex;align-items:center;gap:24px;width:calc(100% - 50px);cursor:pointer}.gtr-accordion-header>gtr-icon.gtr-accordion-arrow-icon{position:relative;right:7px}.gtr-accordion-content{font-size:14px;line-height:22px;color:var(--gtr-color-base-black-60);font-weight:400;margin-top:15px;padding:0 5px}.gtr-accordion-wrapper:not(.gtr-accordion-show) .gtr-accordion-content{display:none}.gtr-accordion-icon{position:relative;top:1px;margin-right:8px}.rotate-icon{transform:rotate(90deg)}@media screen and (max-width: 992px){.gtr-row{align-items:flex-start;gap:10px;flex-flow:column}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "component", type: GtrBadgeComponent, selector: "gtr-badge", inputs: ["shape", "type", "color", "aria-label", "hidden", "position", "id", "testid", "positionProperty", "background-color", "icon-name"] }] }); }
1995
2012
  }
1996
2013
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrAccordionComponent, decorators: [{
1997
2014
  type: Component,
1998
- args: [{ selector: 'gtr-accordion', template: "<div #accordionRef [id]=\"id\" [attr.data-test-id]=\"testId\">\n <div class=\"d-flex gtr-accordion-contianer\">\n <div class=\"gtr-accordion-wrapper\" [class.gtr-accordion-show]=\"opened\">\n <div\n class=\"gtr-accordion-header\"\n (keydown)=\"onKeyDown($event)\"\n (click)=\"toggleSection()\"\n tabindex=\"0\"\n >\n <div [class]=\"justifyContent + ' gtr-row'\">\n <span class=\"gtr-ww\">\n <ng-container *ngIf=\"prefixIcon\">\n <gtr-icon\n [name]=\"prefixIcon\"\n [size]=\"iconSize\"\n [color]=\"iconColor\"\n [weight]=\"iconWeight\"\n class=\"gtr-accordion-icon\"\n ></gtr-icon>\n </ng-container>\n {{ header }}\n </span>\n <ng-container *ngIf=\"status?.text\">\n <gtr-badge type=\"pill\" [color]=\"status?.color\">\n {{ status?.text }}</gtr-badge\n >\n </ng-container>\n </div>\n <ng-container *ngIf=\"showArrowIcon\">\n <gtr-icon\n [name]=\"'chevron-right'\"\n [size]=\"24\"\n color=\"var(--gtr-color-base-black-60)\"\n class=\"gtr-accordion-arrow-icon\"\n [class.rotate-icon]=\"opened\"\n ></gtr-icon>\n </ng-container>\n </div>\n <ng-container *ngIf=\"opened\">\n <div class=\"gtr-accordion-content\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-accordion-wrapper-box-shadow: 0px 2px 4px 0px rgba(165, 163, 174, .3)}.d-flex{display:flex}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.gtr-accordion-contianer{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0px;padding:5px 0}.gtr-accordion-wrapper{background:var(--gtr-color-base-white-100);box-shadow:var(--gtr-accordion-wrapper-box-shadow);border-radius:6px;padding:13px 18px;transition:all .4s ease;width:100%}@media screen and (max-width: 480px){.gtr-accordion-wrapper{padding:10px}}.gtr-accordion-header{font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-color-base-black-80);display:flex;justify-content:space-between;align-items:flex-start;cursor:pointer;align-items:center;padding:0 5px}.gtr-row{display:flex;align-items:center;gap:24px;width:calc(100% - 50px);cursor:pointer}.gtr-accordion-header>gtr-icon.gtr-accordion-arrow-icon{position:relative;right:7px}.gtr-accordion-content{font-size:14px;line-height:22px;color:var(--gtr-color-base-black-60);font-weight:400;margin-top:15px;padding:0 5px}.gtr-accordion-wrapper:not(.gtr-accordion-show) .gtr-accordion-content{display:none}.gtr-accordion-icon{position:relative;top:1px;margin-right:8px}.rotate-icon{transform:rotate(90deg)}@media screen and (max-width: 992px){.gtr-row{align-items:flex-start;gap:10px;flex-flow:column}}\n"] }]
2015
+ args: [{ selector: 'gtr-accordion', template: "<div #accordionRef [id]=\"id\" [attr.data-test-id]=\"testId\">\n <div class=\"d-flex gtr-accordion-contianer\">\n <div class=\"gtr-accordion-wrapper\" [class.gtr-accordion-show]=\"opened\">\n <div class=\"gtr-accordion-header\" (keydown)=\"onKeyDown($event)\" (click)=\"toggleSection()\" tabindex=\"0\">\n <div [class]=\"justifyContent + ' gtr-row'\">\n <span class=\"gtr-ww\">\n <ng-container *ngIf=\"prefixIcon\">\n <gtr-icon [name]=\"prefixIcon\" [size]=\"iconSize\" [color]=\"iconColor\" [weight]=\"iconWeight\"\n class=\"gtr-accordion-icon\"></gtr-icon>\n </ng-container>\n {{ header }}\n </span>\n\n <ng-container *ngIf=\"status?.icon\">\n <gtr-icon type=\"pill\" [name]=\"status?.name\">\n </gtr-icon>\n </ng-container>\n\n <ng-container *ngIf=\"status?.text\">\n <gtr-badge type=\"pill\" [color]=\"status?.color\">\n {{ status?.text }}</gtr-badge>\n </ng-container>\n\n </div>\n <ng-container *ngIf=\"showArrowIcon\">\n <gtr-icon [name]=\"'chevron-right'\" [size]=\"24\" color=\"var(--gtr-color-base-black-60)\"\n class=\"gtr-accordion-arrow-icon\" [class.rotate-icon]=\"opened\"></gtr-icon>\n </ng-container>\n </div>\n <ng-container *ngIf=\"opened\">\n <div class=\"gtr-accordion-content\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [":host{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-accordion-wrapper-box-shadow: 0px 2px 4px 0px rgba(165, 163, 174, .3)}.d-flex{display:flex}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.gtr-accordion-contianer{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0px;padding:5px 0}.gtr-accordion-wrapper{background:var(--gtr-color-base-white-100);box-shadow:var(--gtr-accordion-wrapper-box-shadow);border-radius:6px;padding:13px 18px;transition:all .4s ease;width:100%}@media screen and (max-width: 480px){.gtr-accordion-wrapper{padding:10px}}.gtr-accordion-header{font-weight:600;font-size:15px;line-height:22px;color:var(--gtr-color-base-black-80);display:flex;justify-content:space-between;align-items:flex-start;cursor:pointer;align-items:center;padding:0 5px}.gtr-row{display:flex;align-items:center;gap:24px;width:calc(100% - 50px);cursor:pointer}.gtr-accordion-header>gtr-icon.gtr-accordion-arrow-icon{position:relative;right:7px}.gtr-accordion-content{font-size:14px;line-height:22px;color:var(--gtr-color-base-black-60);font-weight:400;margin-top:15px;padding:0 5px}.gtr-accordion-wrapper:not(.gtr-accordion-show) .gtr-accordion-content{display:none}.gtr-accordion-icon{position:relative;top:1px;margin-right:8px}.rotate-icon{transform:rotate(90deg)}@media screen and (max-width: 992px){.gtr-row{align-items:flex-start;gap:10px;flex-flow:column}}\n"] }]
1999
2016
  }], ctorParameters: function () { return []; }, propDecorators: { header: [{
2000
2017
  type: Input
2001
2018
  }], status: [{
@@ -8188,6 +8205,14 @@ var GtrSelectListLoaderVariation;
8188
8205
  })(GtrSelectListLoaderVariation || (GtrSelectListLoaderVariation = {}));
8189
8206
 
8190
8207
  class GtrSelectComponent {
8208
+ /**
8209
+ * Reset autocomplete input
8210
+ */
8211
+ set resetAutocomplete(value) {
8212
+ if (value) {
8213
+ this.autocompleteInputValue = '';
8214
+ }
8215
+ }
8191
8216
  /**
8192
8217
  * Contructor
8193
8218
  * @param _el
@@ -8211,6 +8236,8 @@ class GtrSelectComponent {
8211
8236
  this.searchable = false;
8212
8237
  /** Allow to disable select box */
8213
8238
  this.disabled = false;
8239
+ /** Allow to disable select box */
8240
+ this.hideOptions = false;
8214
8241
  /** Allow to clean search when closing the select */
8215
8242
  this.cleanSearchWhenClose = false;
8216
8243
  /** Allow to enable readonly state for select box */
@@ -8385,6 +8412,9 @@ class GtrSelectComponent {
8385
8412
  * @param toggleSelectBox
8386
8413
  */
8387
8414
  handleOptionClick(option, removeOption = false, emitValue = true, toggleSelectBox = true) {
8415
+ if (this.hideOptions) {
8416
+ return;
8417
+ }
8388
8418
  const optionValue = this.getOptionValue(option);
8389
8419
  if (this.multiple) {
8390
8420
  const index = this.multipleSelectedValues.indexOf(optionValue ? optionValue : option);
@@ -8622,7 +8652,7 @@ class GtrSelectComponent {
8622
8652
  * Handle click of add button in dropdown list
8623
8653
  */
8624
8654
  handleAddButton(enterKeyPressed = false) {
8625
- if (this.isOpen) {
8655
+ if (this.isOpen && !this.hideOptions) {
8626
8656
  if (enterKeyPressed && this.filteredOptions?.length > 0 && this.autoSelect) {
8627
8657
  this.handleOptionClick(this.filteredOptions[0]);
8628
8658
  }
@@ -8660,13 +8690,13 @@ class GtrSelectComponent {
8660
8690
  this.cleanSearch();
8661
8691
  }
8662
8692
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSelectComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
8663
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrSelectComponent, selector: "gtr-select", inputs: { inputLabel: "inputLabel", placeholder: "placeholder", floatPlaceholder: "floatPlaceholder", labelKey: "labelKey", valueKey: "valueKey", selectedLabel: "selectedLabel", highlightLabel: "highlightLabel", subLabel: "subLabel", isOnlyView: "isOnlyView", value: "value", multiple: "multiple", lazyLoaded: "lazyLoaded", searchable: "searchable", disabled: "disabled", cleanSearchWhenClose: "cleanSearchWhenClose", readonly: "readonly", is_invalid: "is_invalid", listLoading: "listLoading", loading: "loading", changeLoading: "changeLoading", listLoaderVariation: "listLoaderVariation", options: "options", textLimit: "textLimit", autoSelect: "autoSelect", autocomplete: "autocomplete", enableAddButton: "enableAddButton", addButtonPosition: "addButtonPosition", addButtonLabel: "addButtonLabel", searchPlaceholder: "searchPlaceholder" }, outputs: { addButtonClicked: "addButtonClicked", valueChanged: "valueChanged", searchChanged: "searchChanged", autocompleteInputChanged: "autocompleteInputChanged", gtrScroll: "gtrScroll", gtrTouched: "gtrTouched", gtrBlur: "gtrBlur" }, host: { listeners: { "keydown": "handleKeyboardNavigations($event)", "window:click": "onClickOutside($event)", "window:resize": "onWindowResize($event)", "window:scroll": "onWindowScroll($event)" } }, providers: [
8693
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GtrSelectComponent, selector: "gtr-select", inputs: { inputLabel: "inputLabel", placeholder: "placeholder", floatPlaceholder: "floatPlaceholder", labelKey: "labelKey", valueKey: "valueKey", selectedLabel: "selectedLabel", highlightLabel: "highlightLabel", subLabel: "subLabel", isOnlyView: "isOnlyView", value: "value", multiple: "multiple", lazyLoaded: "lazyLoaded", searchable: "searchable", disabled: "disabled", hideOptions: "hideOptions", cleanSearchWhenClose: "cleanSearchWhenClose", readonly: "readonly", is_invalid: "is_invalid", listLoading: "listLoading", loading: "loading", changeLoading: "changeLoading", listLoaderVariation: "listLoaderVariation", options: "options", textLimit: "textLimit", autoSelect: "autoSelect", autocomplete: "autocomplete", resetAutocomplete: "resetAutocomplete", enableAddButton: "enableAddButton", addButtonPosition: "addButtonPosition", addButtonLabel: "addButtonLabel", searchPlaceholder: "searchPlaceholder" }, outputs: { addButtonClicked: "addButtonClicked", valueChanged: "valueChanged", searchChanged: "searchChanged", autocompleteInputChanged: "autocompleteInputChanged", gtrScroll: "gtrScroll", gtrTouched: "gtrTouched", gtrBlur: "gtrBlur" }, host: { listeners: { "keydown": "handleKeyboardNavigations($event)", "window:click": "onClickOutside($event)", "window:resize": "onWindowResize($event)", "window:scroll": "onWindowScroll($event)" } }, providers: [
8664
8694
  {
8665
8695
  provide: NG_VALUE_ACCESSOR,
8666
8696
  useExisting: forwardRef((() => GtrSelectComponent)),
8667
8697
  multi: true,
8668
8698
  },
8669
- ], usesOnChanges: true, ngImport: i0, template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select box autocomplete container -->\n <ng-container *ngIf=\"autocomplete\">\n <ng-container *ngIf=\"!multiple\">\n <input\n type=\"text\"\n class=\"gtr-autocomplete-input gtr-select-box\"\n tabindex=\"0\"\n [placeholder]=\"placeholder || ''\"\n [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 \"\n (input)=\"handleAutocompleteInput($event)\"\n (click)=\"toggleSelectBox(true)\"\n (keyup.enter)=\"handleAddButton(true)\"\n />\n </ng-container>\n\n <ng-container *ngIf=\"multiple\">\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n >\n <div class=\"gtr-selected-items\">\n <!-- Multi selected values -->\n <ng-container\n *ngFor=\"let item of multipleSelectedValues; let i = index\"\n >\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"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\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- Enter autocomplete input -->\n <input\n type=\"text\"\n class=\"gtr-autocomplete-input\"\n tabindex=\"0\"\n [placeholder]=\"placeholder || ''\"\n [value]=\"autocompleteInputValue || ''\"\n (input)=\"handleAutocompleteInput($event)\"\n (click)=\"toggleSelectBox(true)\"\n (keyup.enter)=\"handleAddButton(true)\"\n />\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 <ng-container\n *ngIf=\"\n multipleSelectedValues && multipleSelectedValues.length > 2\n \"\n >\n <span class=\"gtr-multi-select-count\"\n >+ {{ multipleSelectedValues.length - 2 }}</span\n >\n </ng-container>\n </div>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </ng-container>\n </ng-container>\n <!-- Select box autocomplete container ends here -->\n\n <!-- Select Box Input Wrapper -->\n <ng-container *ngIf=\"!autocomplete\">\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon\n name=\"chevron-down\"\n [size]=\"20\"\n color=\"var(--gtr-color-base-black-60)\"\n ></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container\n *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"\n ></ng-container>\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 </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container\n *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"\n ></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container\n *ngFor=\"let item of multipleSelectedValues; let i = index\"\n >\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"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\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container\n *ngIf=\"\n multipleSelectedValues && multipleSelectedValues.length > 2\n \"\n >\n <span class=\"gtr-multi-select-count\"\n >+ {{ multipleSelectedValues.length - 2 }}</span\n >\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n </ng-container>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"!autocomplete && searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n [placeholder]=\"searchPlaceholder\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- add-button template -->\n <ng-container\n *ngIf=\"\n enableAddButton && addButtonPosition === 'top';\n then addButtonTemplate\n \"\n ></ng-container>\n <!-- add button template ends here -->\n\n <!-- Options List Wrapper -->\n <ul\n class=\"gtr-options-list\"\n role=\"listbox\"\n (scroll)=\"lazyLoadPaginationScroll()\"\n >\n <!-- Loader -->\n <ng-container\n *ngIf=\"\n listLoading && listLoaderVariation === loaderVariation.TEXT\n \"\n >\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading &&\n listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container\n *ngFor=\"let option of filteredOptions; let i = index\"\n >\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [class.change-loading]=\"changeLoading\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [class.change-loading]=\"changeLoading\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n\n <!-- add button -->\n <ng-container\n *ngIf=\"\n enableAddButton && addButtonPosition === 'bottom';\n then addButtonTemplate\n \"\n ></ng-container>\n <!-- add button -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container\n *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"\n ></ng-container>\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\n for=\"gtr-select\"\n class=\"gtr-form-element-label\"\n [class.gtr-only-view]=\"isOnlyView\"\n >{{ inputLabel }}</label\n >\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\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >{{\n (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit\n }}</span\n >\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >{{\n (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit\n }}</span\n >\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n\n<!-- Add button template -->\n<ng-template #addButtonTemplate>\n <div\n class=\"add-button-wrapper\"\n tabindex=\"0\"\n (click)=\"handleAddButton()\"\n (keyup.enter)=\"handleAddButton()\"\n >\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,.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:-moz-fit-content;width:fit-content;height:-moz-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%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{opacity:0;transform:scale(0)}80%{transform:scale(1.07)}to{opacity:1;transform:scale(1)}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "pipe", type: GtrFormatSelectedValuePipe, name: "gtrFormatSelectedValue" }, { kind: "pipe", type: GtrTrimTextPipe, name: "gtrTrimText" }] }); }
8699
+ ], 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 <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\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 <!-- Select box autocomplete container -->\n <ng-container *ngIf=\"autocomplete\">\n <ng-container *ngIf=\"!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 </ng-container>\n\n <ng-container *ngIf=\"multiple\">\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\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 <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"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)\"></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\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 <!-- Enter autocomplete input ends here -->\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"\n multipleSelectedValues && multipleSelectedValues.length > 2\n \">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </ng-container>\n </ng-container>\n <!-- Select box autocomplete container ends here -->\n\n <!-- Select Box Input Wrapper -->\n <ng-container *ngIf=\"!autocomplete\">\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 <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 <ng-container *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\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 </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"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)\"></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"\n multipleSelectedValues && multipleSelectedValues.length > 2\n \">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n </ng-container>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"!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 <div [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- add-button template -->\n <ng-container *ngIf=\"\n enableAddButton && addButtonPosition === 'top';\n then addButtonTemplate\n \"></ng-container>\n <!-- add button template ends here -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" [class.disabled]=\"hideOptions\" role=\"listbox\"\n (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"\n listLoading && listLoaderVariation === loaderVariation.TEXT\n \">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container *ngIf=\"\n (!listLoading ||\n (listLoading &&\n listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \">\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li *ngIf=\"!multiple\" 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 tabindex=\"0\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\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)\" tabindex=\"0\" role=\"option\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n\n <!-- add button -->\n <ng-container *ngIf=\"\n enableAddButton && addButtonPosition === 'bottom';\n then addButtonTemplate\n \"></ng-container>\n <!-- add button -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\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 <ng-container *ngIf=\"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 </ng-container>\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()\" (keyup.enter)=\"handleAddButton()\">\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:-moz-fit-content;width:fit-content;height:-moz-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%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{opacity:0;transform:scale(0)}80%{transform:scale(1.07)}to{opacity:1;transform:scale(1)}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: GtrSkeletonDirective, selector: "[skeleton]", inputs: ["skeleton", "skeletonRepeat", "skeletonWidth", "skeletonHeight", "skeletonClassName"] }, { kind: "pipe", type: GtrFormatSelectedValuePipe, name: "gtrFormatSelectedValue" }, { kind: "pipe", type: GtrTrimTextPipe, name: "gtrTrimText" }] }); }
8670
8700
  }
8671
8701
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrSelectComponent, decorators: [{
8672
8702
  type: Component,
@@ -8676,7 +8706,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
8676
8706
  useExisting: forwardRef((() => GtrSelectComponent)),
8677
8707
  multi: true,
8678
8708
  },
8679
- ], template: "<!-- ************ Select Box Element ************ -->\n<div\n class=\"gtr-select-wrapper\"\n [class.gtr-only-view]=\"isOnlyView\"\n [class.multiple]=\"multiple\"\n>\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\n <!-- Input Label ends here... -->\n\n <!-- skeleton loading -->\n <ng-container\n *skeleton=\"\n loading;\n repeat: 1;\n className: 'skeleton-margin-bottom';\n height: '16px';\n width: '150px'\n \"\n >\n <!-- Select Box Container -->\n <div\n class=\"gtr-select\"\n [ngClass]=\"{\n invalid: is_invalid,\n disabled: disabled,\n readonly: readonly\n }\"\n [attr.aria-readonly]=\"readonly ? 'true' : 'false'\"\n >\n <!-- Select box autocomplete container -->\n <ng-container *ngIf=\"autocomplete\">\n <ng-container *ngIf=\"!multiple\">\n <input\n type=\"text\"\n class=\"gtr-autocomplete-input gtr-select-box\"\n tabindex=\"0\"\n [placeholder]=\"placeholder || ''\"\n [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 \"\n (input)=\"handleAutocompleteInput($event)\"\n (click)=\"toggleSelectBox(true)\"\n (keyup.enter)=\"handleAddButton(true)\"\n />\n </ng-container>\n\n <ng-container *ngIf=\"multiple\">\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n >\n <div class=\"gtr-selected-items\">\n <!-- Multi selected values -->\n <ng-container\n *ngFor=\"let item of multipleSelectedValues; let i = index\"\n >\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"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\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- Enter autocomplete input -->\n <input\n type=\"text\"\n class=\"gtr-autocomplete-input\"\n tabindex=\"0\"\n [placeholder]=\"placeholder || ''\"\n [value]=\"autocompleteInputValue || ''\"\n (input)=\"handleAutocompleteInput($event)\"\n (click)=\"toggleSelectBox(true)\"\n (keyup.enter)=\"handleAddButton(true)\"\n />\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 <ng-container\n *ngIf=\"\n multipleSelectedValues && multipleSelectedValues.length > 2\n \"\n >\n <span class=\"gtr-multi-select-count\"\n >+ {{ multipleSelectedValues.length - 2 }}</span\n >\n </ng-container>\n </div>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </ng-container>\n </ng-container>\n <!-- Select box autocomplete container ends here -->\n\n <!-- Select Box Input Wrapper -->\n <ng-container *ngIf=\"!autocomplete\">\n <div\n tabindex=\"0\"\n class=\"gtr-select-box\"\n [ngClass]=\"{\n multi: multipleSelectedValues && multipleSelectedValues.length,\n open: isOpen,\n float: floatPlaceholder,\n }\"\n [attr.aria-expanded]=\"isOpen ? 'true' : 'false'\"\n (click)=\"toggleSelectBox()\"\n (keyup.enter)=\"toggleSelectBox()\"\n >\n <gtr-icon\n name=\"chevron-down\"\n [size]=\"20\"\n color=\"var(--gtr-color-base-black-60)\"\n ></gtr-icon>\n\n <!-- NOTE: if don't have selected values then show placeholder -->\n <!-- Placeholder -->\n <ng-container\n *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"\n ></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container\n *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"\n ></ng-container>\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 </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container\n *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"\n ></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container\n *ngFor=\"let item of multipleSelectedValues; let i = index\"\n >\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"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\n name=\"x\"\n [size]=\"14\"\n weight=\"bold\"\n color=\"var(--gtr-color-base-primary-60)\"\n (click)=\"removeOptions($event, item)\"\n ></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container\n *ngIf=\"\n multipleSelectedValues && multipleSelectedValues.length > 2\n \"\n >\n <span class=\"gtr-multi-select-count\"\n >+ {{ multipleSelectedValues.length - 2 }}</span\n >\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n </ng-container>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"!autocomplete && searchable\">\n <span class=\"gtr-input-wrapper\">\n <input\n type=\"text\"\n class=\"gtr-search-input\"\n [class.showLoader]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n [placeholder]=\"searchPlaceholder\"\n [value]=\"searchValue || ''\"\n (input)=\"handleSearchInput($event)\"\n />\n <div\n [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"\n ></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- add-button template -->\n <ng-container\n *ngIf=\"\n enableAddButton && addButtonPosition === 'top';\n then addButtonTemplate\n \"\n ></ng-container>\n <!-- add button template ends here -->\n\n <!-- Options List Wrapper -->\n <ul\n class=\"gtr-options-list\"\n role=\"listbox\"\n (scroll)=\"lazyLoadPaginationScroll()\"\n >\n <!-- Loader -->\n <ng-container\n *ngIf=\"\n listLoading && listLoaderVariation === loaderVariation.TEXT\n \"\n >\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container\n *ngIf=\"\n (!listLoading ||\n (listLoading &&\n listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \"\n >\n <ng-container\n *ngFor=\"let option of filteredOptions; let i = index\"\n >\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li\n *ngIf=\"!multiple\"\n class=\"gtr-option\"\n [class.change-loading]=\"changeLoading\"\n [ngClass]=\"{\n selected:\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\"\n [attr.data-value]=\"option\"\n [attr.aria-selected]=\"\n selectedValues &&\n selectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \"\n role=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\n <li\n class=\"gtr-option\"\n [class.change-loading]=\"changeLoading\"\n [ngClass]=\"{\n selected:\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n ),\n hovered: autoSelect && autocomplete && i == 0\n }\"\n [attr.data-value]=\"option\"\n (keyup.enter)=\"handleOptionClick(option)\"\n [attr.aria-selected]=\"\n multipleSelectedValues &&\n multipleSelectedValues.includes(\n valueKey ? option[valueKey] : option\n )\n ? 'true'\n : 'false'\n \"\n (click)=\"handleOptionClick(option)\"\n tabindex=\"0\"\n role=\"option\"\n >\n <ng-container\n [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"\n ></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n\n <!-- add button -->\n <ng-container\n *ngIf=\"\n enableAddButton && addButtonPosition === 'bottom';\n then addButtonTemplate\n \"\n ></ng-container>\n <!-- add button -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container\n *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"\n ></ng-container>\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\n for=\"gtr-select\"\n class=\"gtr-form-element-label\"\n [class.gtr-only-view]=\"isOnlyView\"\n >{{ inputLabel }}</label\n >\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\n [ngClass]=\"{\n bold: highlightLabel && labelKey && highlightLabel == labelKey\n }\"\n >{{\n (labelKey ? option[labelKey] : option) | gtrTrimText : textLimit\n }}</span\n >\n <ng-container *ngIf=\"subLabel\">\n <br />\n <span\n class=\"sub-label\"\n [ngClass]=\"{\n bold: highlightLabel && subLabel && highlightLabel === subLabel\n }\"\n >{{\n (subLabel ? option[subLabel] : option) | gtrTrimText : textLimit\n }}</span\n >\n </ng-container>\n </div>\n</ng-template>\n<!-- Option Label Template ends here... -->\n\n<!-- Add button template -->\n<ng-template #addButtonTemplate>\n <div\n class=\"add-button-wrapper\"\n tabindex=\"0\"\n (click)=\"handleAddButton()\"\n (keyup.enter)=\"handleAddButton()\"\n >\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,.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:-moz-fit-content;width:fit-content;height:-moz-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%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{opacity:0;transform:scale(0)}80%{transform:scale(1.07)}to{opacity:1;transform:scale(1)}}\n"] }]
8709
+ ], template: "<!-- ************ Select Box Element ************ -->\n<div class=\"gtr-select-wrapper\" [class.gtr-only-view]=\"isOnlyView\" [class.multiple]=\"multiple\">\n <!-- Input Label -->\n <ng-container *ngIf=\"inputLabel; then inputLabelTemplate\"></ng-container>\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 <!-- Select box autocomplete container -->\n <ng-container *ngIf=\"autocomplete\">\n <ng-container *ngIf=\"!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 </ng-container>\n\n <ng-container *ngIf=\"multiple\">\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\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 <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"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)\"></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\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 <!-- Enter autocomplete input ends here -->\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"\n multipleSelectedValues && multipleSelectedValues.length > 2\n \">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </ng-container>\n </ng-container>\n <!-- Select box autocomplete container ends here -->\n\n <!-- Select Box Input Wrapper -->\n <ng-container *ngIf=\"!autocomplete\">\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 <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 <ng-container *ngIf=\"\n !(multipleSelectedValues?.length || selectedValues?.length);\n then placeholderTemplate\n \"></ng-container>\n <!-- Placeholder ends here... -->\n\n <!-- Single select selected values -->\n <ng-container *ngIf=\"selectedValues?.length && !multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\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 </ng-container>\n <!-- Single select selected values ends here... -->\n\n <!-- Multi-select selected values -->\n <ng-container *ngIf=\"multipleSelectedValues && multiple\">\n <div class=\"gtr-selected-items\">\n <!-- float placeholder -->\n <ng-container *ngIf=\"floatPlaceholder; then floatPlaceholderTemplate\"></ng-container>\n <!-- float placeholder ends here... -->\n\n <!-- Multi selected values -->\n <ng-container *ngFor=\"let item of multipleSelectedValues; let i = index\">\n <!-- NOTE: case1 to show chips if index is smaller or equal than 1 -->\n <ng-container *ngIf=\"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)\"></gtr-icon>\n </span>\n </ng-container>\n </ng-container>\n\n <!-- NOTE: case2 show total count by subtracting 2 if selected values length are greater than 2 -->\n <ng-container *ngIf=\"\n multipleSelectedValues && multipleSelectedValues.length > 2\n \">\n <span class=\"gtr-multi-select-count\">+ {{ multipleSelectedValues.length - 2 }}</span>\n </ng-container>\n </div>\n </ng-container>\n <!-- Multi-select selected values ends here... -->\n </div>\n </ng-container>\n <!-- Select Box Input Wrapper ends here... -->\n\n <!-- Select Box options list wrapper -->\n <ng-container *ngIf=\"!disabled && !readonly\">\n <span class=\"gtr-options-wrapper\" [class.open]=\"isOpen\">\n <!-- Search Wrapper -->\n <ng-container *ngIf=\"!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 <div [class.gtr-select-spinner]=\"\n listLoading && listLoaderVariation === loaderVariation.SPINNER\n \"></div>\n </span>\n </ng-container>\n <!-- Search Wrapper ends here... -->\n\n <!-- add-button template -->\n <ng-container *ngIf=\"\n enableAddButton && addButtonPosition === 'top';\n then addButtonTemplate\n \"></ng-container>\n <!-- add button template ends here -->\n\n <!-- Options List Wrapper -->\n <ul class=\"gtr-options-list\" [class.disabled]=\"hideOptions\" role=\"listbox\"\n (scroll)=\"lazyLoadPaginationScroll()\">\n <!-- Loader -->\n <ng-container *ngIf=\"\n listLoading && listLoaderVariation === loaderVariation.TEXT\n \">\n <li class=\"gtr-loading-text\">\n <span>Searching...</span>\n </li>\n </ng-container>\n <!-- Loader ends here... -->\n\n <!-- No Data -->\n <ng-container *ngIf=\"!listLoading && !filteredOptions?.length\">\n <li class=\"gtr-loading-text\">\n <span>No results found</span>\n </li>\n </ng-container>\n <!-- No Data ends here... -->\n\n <!-- Options list -->\n <ng-container *ngIf=\"\n (!listLoading ||\n (listLoading &&\n listLoaderVariation === loaderVariation.SPINNER)) &&\n filteredOptions?.length\n \">\n <ng-container *ngFor=\"let option of filteredOptions; let i = index\">\n <!-- NOTE: for single select -->\n <ng-container *ngIf=\"!multiple\">\n <li *ngIf=\"!multiple\" 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 tabindex=\"0\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n </ng-container>\n\n <!-- NOTE: for multi select -->\n <ng-container *ngIf=\"multiple\">\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)\" tabindex=\"0\" role=\"option\">\n <ng-container [ngTemplateOutlet]=\"optionLabelTemplate\"\n [ngTemplateOutletContext]=\"{ option: option }\"></ng-container>\n </li>\n </ng-container>\n </ng-container>\n </ng-container>\n </ul>\n <!-- Options List Wrapper -->\n\n <!-- add button -->\n <ng-container *ngIf=\"\n enableAddButton && addButtonPosition === 'bottom';\n then addButtonTemplate\n \"></ng-container>\n <!-- add button -->\n </span>\n </ng-container>\n <!-- Select Box options list wrapper -->\n </div>\n <!-- Select Box Container ends here -->\n\n <!-- Error Message -->\n <ng-container *ngIf=\"is_invalid && !isOnlyView; then errorMessageTemplate\"></ng-container>\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 <ng-container *ngIf=\"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 </ng-container>\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()\" (keyup.enter)=\"handleAddButton()\">\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:-moz-fit-content;width:fit-content;height:-moz-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%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes growOut{0%{opacity:0;transform:scale(0)}80%{transform:scale(1.07)}to{opacity:1;transform:scale(1)}}\n"] }]
8680
8710
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { inputLabel: [{
8681
8711
  type: Input
8682
8712
  }], placeholder: [{
@@ -8705,6 +8735,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
8705
8735
  type: Input
8706
8736
  }], disabled: [{
8707
8737
  type: Input
8738
+ }], hideOptions: [{
8739
+ type: Input
8708
8740
  }], cleanSearchWhenClose: [{
8709
8741
  type: Input
8710
8742
  }], readonly: [{
@@ -8727,6 +8759,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
8727
8759
  type: Input
8728
8760
  }], autocomplete: [{
8729
8761
  type: Input
8762
+ }], resetAutocomplete: [{
8763
+ type: Input
8730
8764
  }], enableAddButton: [{
8731
8765
  type: Input
8732
8766
  }], addButtonPosition: [{
@@ -8889,7 +8923,7 @@ class GtrPaginationComponent {
8889
8923
  this._setTotalPages();
8890
8924
  }
8891
8925
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8892
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrPaginationComponent, selector: "gtr-pagination", inputs: { options: "options", identifier: "identifier", disabled: ["disabled", "disabled", booleanAttribute], limit: "limit", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hidePageSize: "hidePageSize", showFirstLastButtons: ["showFirstLastButtons", "showFirstLastButtons", booleanAttribute], pageIndex: "pageIndex", ariaLabel: "ariaLabel" }, outputs: { pageEvent: "pageEvent", getNumberOfPages: "getNumberOfPages" }, host: { listeners: { "window:resize": "onScreenResize($event)" } }, usesOnChanges: true, ngImport: i0, template: "<ng-container>\n <div [ngSwitch]=\"options.type\">\n <div *ngSwitchCase=\"'flat'\" class=\"flat\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <nav aria-label=\"page\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ul class=\"gtr-pagination\">\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">First\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(pageIndex - 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" (click)=\"changePage(pageIndex + 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" id=\"gtr-pagination-link-last\" *ngIf=\"!options.hideLast\" (click)=\"changePage(totalPages)\"><a\n class=\"gtr-pagination-link\" href=\"javascript:void(0);\">Last\n </a></li>\n </ul>\n </nav>\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div class=\"gtr-pagination-wrapper\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\" aria-label=\"gtr__pagination-first-page\">\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\" aria-label=\"gtr__pagination-prev-page\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"pagesArray?.length\">\n <ng-container *ngFor=\"let page of pagesArray; let i = index\">\n <button type=\"button\" [disabled]=\"disabled\" (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\" class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\" tabindex=\"0\">\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\">\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:-moz-fit-content;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.flat{justify-content:space-between;display:flex;flex-direction:column;align-items:end}.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: GtrSelectComponent, selector: "gtr-select", inputs: ["inputLabel", "placeholder", "floatPlaceholder", "labelKey", "valueKey", "selectedLabel", "highlightLabel", "subLabel", "isOnlyView", "value", "multiple", "lazyLoaded", "searchable", "disabled", "cleanSearchWhenClose", "readonly", "is_invalid", "listLoading", "loading", "changeLoading", "listLoaderVariation", "options", "textLimit", "autoSelect", "autocomplete", "enableAddButton", "addButtonPosition", "addButtonLabel", "searchPlaceholder"], outputs: ["addButtonClicked", "valueChanged", "searchChanged", "autocompleteInputChanged", "gtrScroll", "gtrTouched", "gtrBlur"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: GtrValidatePagePipe, name: "gtrValidatePage" }] }); }
8926
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "16.2.12", type: GtrPaginationComponent, selector: "gtr-pagination", inputs: { options: "options", identifier: "identifier", disabled: ["disabled", "disabled", booleanAttribute], limit: "limit", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hidePageSize: "hidePageSize", showFirstLastButtons: ["showFirstLastButtons", "showFirstLastButtons", booleanAttribute], pageIndex: "pageIndex", ariaLabel: "ariaLabel" }, outputs: { pageEvent: "pageEvent", getNumberOfPages: "getNumberOfPages" }, host: { listeners: { "window:resize": "onScreenResize($event)" } }, usesOnChanges: true, ngImport: i0, template: "<ng-container>\n <div [ngSwitch]=\"options.type\">\n <div *ngSwitchCase=\"'flat'\" class=\"flat\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <nav aria-label=\"page\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ul class=\"gtr-pagination\">\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">First\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===1\" (click)=\"changePage(pageIndex - 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" (click)=\"changePage(pageIndex + 1)\"><a class=\"gtr-pagination-link\"\n href=\"javascript:void(0);\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </a></li>\n <li class=\"gtr-pagination-item\" [class.disabled]=\"pageIndex===totalPages\" id=\"gtr-pagination-link-last\" *ngIf=\"!options.hideLast\" (click)=\"changePage(totalPages)\"><a\n class=\"gtr-pagination-link\" href=\"javascript:void(0);\">Last\n </a></li>\n </ul>\n </nav>\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngIf=\"pageIndex !== 0 && pagesArray?.length\">\n <div class=\"gtr-pagination-wrapper\" [attr.id]=\"identifier || 'gtr__pagination'\"\n [attr.data-testid]=\"identifier || 'gtr__pagination'\" role=\"navigation\"\n [attr.aria-label]=\"ariaLabel || 'gtr__pagination'\">\n <ng-container *ngIf=\"!this.hidePageSize\">\n <div class=\"gtr-pagination-ps-options-wrapper\">\n <span>Items per Page: </span>\n <gtr-select [value]=\"pageSize\" [options]=\"pageSizeOptions\" [disabled]=\"disabled\"\n (valueChanged)=\"onPageSizeChange($event)\"></gtr-select>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(defaultPage)\" aria-label=\"gtr__pagination-first-page\">\n <gtr-icon name=\"chevrons-left\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\" [disabled]=\"pageIndex === 1 || disabled\"\n (click)=\"changePage(pageIndex - 1)\" aria-label=\"gtr__pagination-prev-page\">\n <gtr-icon name=\"chevron-left\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"pagesArray?.length\">\n <ng-container *ngFor=\"let page of pagesArray; let i = index\">\n <button type=\"button\" [disabled]=\"disabled\" (click)=\"changePage(page)\"\n [attr.aria-label]=\"'gtr__pagination-page' + page\"\n [attr.aria-current]=\"page === pageIndex ? 'true' : 'false'\" class=\"gtr-pagination-button\"\n [class.active]=\"pageIndex === page\" tabindex=\"0\">\n {{ page | gtrValidatePage : \"...\" }}\n </button>\n </ng-container>\n </ng-container>\n\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(pageIndex + 1)\"\n aria-label=\"gtr__pagination-next-page\">\n <gtr-icon name=\"chevron-right\" [size]=\"20\"></gtr-icon>\n </button>\n\n <ng-container *ngIf=\"showFirstLastButtons\">\n <button tabindex=\"0\" class=\"gtr-pagination-button\" type=\"button\"\n [disabled]=\"pageIndex === pagesArray[pagesArray.length - 1] || disabled\" (click)=\"changePage(totalPages)\"\n aria-label=\"Last Page\">\n <gtr-icon name=\"chevrons-right\" [size]=\"20\"></gtr-icon>\n </button>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;--gtr-pagination-btn-background-color: rgba(75, 70, 92);--gtr-pagination-btn-background-color-30: rgba(75, 70, 92, .3);--gtr-pagination-btn-background-color-10: rgba(75, 70, 92, .08)}.flat{justify-content:space-between;display:flex;align-items:center}.flat .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.flat .gtr-pagination-ps-options-wrapper span{font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination{margin:0;display:flex;padding:0;list-style:none;border-radius:6px;gap:4px}.gtr-pagination-item{border-radius:6px;list-style:none;background:#f1f0f2}.gtr-pagination-item.disabled{pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-item:last-child{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link{color:#b9b9c3}.gtr-pagination-item .gtr-pagination-link{line-height:1.3;border:none;margin:0;font-size:1rem;min-width:2.286rem;display:flex;align-items:center;justify-content:center;padding:.5rem .85rem;text-decoration:none;color:var(--gtr-color-base-black-60);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.gtr-pagination-link:hover{color:var(--gtr-color-base-primary-100)}.gtr-pagination-item .gtr-pagination-link:focus{color:var(--gtr-color-base-primary-100);background:#ededed}.gtr-pagination-item:last-child .gtr-pagination-link:focus{border-top-right-radius:6px!important;border-bottom-right-radius:6px!important}.gtr-pagination-item:first-child .gtr-pagination-link:focus{border-top-left-radius:6px!important;border-bottom-left-radius:6px!important}.gtr-pagination-item.disabled .gtr-pagination-link:focus{color:var(--gtr-color-base-black-60);pointer-events:none;opacity:.8;background-color:#f3f2f7}.gtr-pagination-link:focus{box-shadow:none}.gtr-pagination-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper{display:flex;flex-direction:row;align-items:center;flex-grow:1}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select{min-width:76px}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper gtr-select::ng-deep .gtr-options-wrapper{min-width:auto}.gtr-pagination-wrapper .gtr-pagination-ps-options-wrapper span{font-family:var(--gtr-component-font-family-base);font-weight:var(--gtr-size-font-weight-normal);font-size:15px;line-height:24px;color:var(--gtr-color-base-black-40);margin-right:8px}.gtr-pagination-wrapper .gtr-pagination-button{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:-moz-fit-content;max-width:fit-content;height:34px;background:var(--gtr-pagination-btn-background-color-10);border-radius:6px;line-height:22px;font-size:15px;outline:none;border:none;cursor:pointer;margin-left:4px;font-family:var(--gtr-component-font-family-base);transition:ease-in-out;transition-duration:.1s;position:relative;color:var(--gtr-color-base-black-60);margin-bottom:4px}.gtr-pagination-wrapper .gtr-pagination-button:disabled{cursor:default;pointer-events:none;opacity:.8}.gtr-pagination-wrapper .gtr-pagination-button:disabled gtr-icon{opacity:.5}.gtr-pagination-wrapper .gtr-pagination-button:hover,.gtr-pagination-wrapper .gtr-pagination-button:focus{background:var(--gtr-pagination-btn-background-color-30)}.gtr-pagination-wrapper .gtr-pagination-button.active{background:var(--gtr-color-base-primary-100);color:var(--gtr-color-font-inverse-primary);box-shadow:var(--gtr-content-box-shadow-20)}@media only screen and (max-width: 540px){.flat{justify-content:space-between;display:flex;flex-direction:column;align-items:end}.gtr-pagination-wrapper{justify-content:end!important}.gtr-pagination-ps-options-wrapper{width:100%;align-items:center;justify-content:end;margin-bottom:1em}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: GtrSelectComponent, selector: "gtr-select", inputs: ["inputLabel", "placeholder", "floatPlaceholder", "labelKey", "valueKey", "selectedLabel", "highlightLabel", "subLabel", "isOnlyView", "value", "multiple", "lazyLoaded", "searchable", "disabled", "hideOptions", "cleanSearchWhenClose", "readonly", "is_invalid", "listLoading", "loading", "changeLoading", "listLoaderVariation", "options", "textLimit", "autoSelect", "autocomplete", "resetAutocomplete", "enableAddButton", "addButtonPosition", "addButtonLabel", "searchPlaceholder"], outputs: ["addButtonClicked", "valueChanged", "searchChanged", "autocompleteInputChanged", "gtrScroll", "gtrTouched", "gtrBlur"] }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["name", "weight", "color", "size", "iconId"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: GtrValidatePagePipe, name: "gtrValidatePage" }] }); }
8893
8927
  }
8894
8928
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GtrPaginationComponent, decorators: [{
8895
8929
  type: Component,