@gettrx/core-components-angular 1.1.12 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/gettrx-core-components-angular.mjs +266 -2
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/lib/molecules/tags-input/helpers/functions.d.ts +2 -0
- package/lib/molecules/tags-input/index.d.ts +1 -0
- package/lib/molecules/tags-input/public_api.d.ts +1 -0
- package/lib/molecules/tags-input/tag-input/gtr-tags-input.component.d.ts +57 -0
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { HostBinding, Input, Component, booleanAttribute, Directive, EventEmitter, HostListener, Output, ViewChild, Optional, Self, Injectable, ContentChildren, Pipe, ViewChildren, forwardRef, ElementRef, ContentChild, Inject, LOCALE_ID, inject, DestroyRef, QueryList, ChangeDetectorRef, ViewEncapsulation, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/forms';
|
|
4
|
-
import { NG_VALUE_ACCESSOR, FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { NG_VALUE_ACCESSOR, FormGroup, FormControl, Validators, ReactiveFormsModule, NgControl, FormsModule } from '@angular/forms';
|
|
5
5
|
import { NgStyle, NgClass, TitleCasePipe, getLocaleDateFormat, FormatWidth, DOCUMENT, NgTemplateOutlet, registerLocaleData, formatDate } from '@angular/common';
|
|
6
6
|
import { Subject, Subscription, BehaviorSubject, throwError, takeUntil, fromEvent } from 'rxjs';
|
|
7
7
|
import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
@@ -9717,6 +9717,270 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
9717
9717
|
type: Output
|
|
9718
9718
|
}] } });
|
|
9719
9719
|
|
|
9720
|
+
/** Converts any CSS color (hex, rgb, hsl, etc.) to rgba with alpha */
|
|
9721
|
+
function toRGBA(color, alpha) {
|
|
9722
|
+
// Create a hidden element to let the browser resolve the color
|
|
9723
|
+
const temp = document.createElement('div');
|
|
9724
|
+
temp.style.color = color;
|
|
9725
|
+
document.body.appendChild(temp);
|
|
9726
|
+
const computed = getComputedStyle(temp).color; // always returns "rgb(r,g,b)" or "rgba(r,g,b,a)"
|
|
9727
|
+
document.body.removeChild(temp);
|
|
9728
|
+
const rgbaMatch = computed.match(/(\d+),\s*(\d+),\s*(\d+)/);
|
|
9729
|
+
if (!rgbaMatch)
|
|
9730
|
+
return color; // fallback if parsing fails
|
|
9731
|
+
const [_, r, g, b] = rgbaMatch;
|
|
9732
|
+
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
9733
|
+
}
|
|
9734
|
+
|
|
9735
|
+
class GtrTagsInputComponent {
|
|
9736
|
+
// Reset tag input
|
|
9737
|
+
set resetTagInput(state) {
|
|
9738
|
+
if (state) {
|
|
9739
|
+
this.tagControl?.reset('');
|
|
9740
|
+
}
|
|
9741
|
+
}
|
|
9742
|
+
constructor() {
|
|
9743
|
+
this.value = [];
|
|
9744
|
+
this.inputLabel = '';
|
|
9745
|
+
this.type = 'text';
|
|
9746
|
+
this.disabled = false;
|
|
9747
|
+
this.readonly = false;
|
|
9748
|
+
this.dataTransactionName = 'tag-input';
|
|
9749
|
+
this.invalid = false;
|
|
9750
|
+
this.placeholder = 'Press enter to add tag ...';
|
|
9751
|
+
this.options = [];
|
|
9752
|
+
this.maxTags = Infinity;
|
|
9753
|
+
this.removeLastOnBackspace = true;
|
|
9754
|
+
this.canDeleteTags = true;
|
|
9755
|
+
this.canAddTags = true;
|
|
9756
|
+
this.onlyFromDropdown = false;
|
|
9757
|
+
this.color = '#21617d'; // dynamic color
|
|
9758
|
+
this.dangerColor = '#d9534f'; // dynamic danger color
|
|
9759
|
+
this._removeValidators = true;
|
|
9760
|
+
// Value Changed
|
|
9761
|
+
this.valueChanged = new EventEmitter();
|
|
9762
|
+
// On Touched
|
|
9763
|
+
this.touched = new EventEmitter();
|
|
9764
|
+
// Tag Form Control Status
|
|
9765
|
+
this.inputStatus = new EventEmitter();
|
|
9766
|
+
// Set Tag Validators
|
|
9767
|
+
this.removeValidators = false;
|
|
9768
|
+
this.customValidators = [Validators.required];
|
|
9769
|
+
// services
|
|
9770
|
+
this._destroyRef = inject(DestroyRef);
|
|
9771
|
+
// is touched
|
|
9772
|
+
this.isTouched = false;
|
|
9773
|
+
/** Control Value Accessor Methods */
|
|
9774
|
+
this.onChange = () => { };
|
|
9775
|
+
this.onTouched = () => { };
|
|
9776
|
+
// Tag Control
|
|
9777
|
+
this.tagControl = new FormControl('');
|
|
9778
|
+
this.filteredOptions = [];
|
|
9779
|
+
this.showDropdown = false;
|
|
9780
|
+
this.controlDir = inject(NgControl, { self: true, optional: true });
|
|
9781
|
+
this.elementRef = inject(ElementRef);
|
|
9782
|
+
if (this.controlDir) {
|
|
9783
|
+
this.controlDir.valueAccessor = this;
|
|
9784
|
+
}
|
|
9785
|
+
}
|
|
9786
|
+
ngOnChanges(changes) {
|
|
9787
|
+
if (changes['removeValidators']) {
|
|
9788
|
+
this._removeValidators = this.removeValidators;
|
|
9789
|
+
}
|
|
9790
|
+
if (changes['customValidators'] || changes['removeValidators']) {
|
|
9791
|
+
this.updateTagValidators();
|
|
9792
|
+
}
|
|
9793
|
+
if ((changes['primaryColor'] && changes['primaryColor'].currentValue) ||
|
|
9794
|
+
(changes['dangerColor'] && changes['dangerColor'].currentValue)) {
|
|
9795
|
+
this.applyColorVariables(changes['primaryColor'].currentValue, changes['dangerColor'].currentValue);
|
|
9796
|
+
}
|
|
9797
|
+
if (changes['canAddTags'] || changes['value'] || changes['maxTags']) {
|
|
9798
|
+
this.updateDisabledState();
|
|
9799
|
+
}
|
|
9800
|
+
}
|
|
9801
|
+
ngOnInit() {
|
|
9802
|
+
this.applyColorVariables(this.color);
|
|
9803
|
+
this.updateTagValidators();
|
|
9804
|
+
// Listen for input changes to filter dropdown
|
|
9805
|
+
this.tagControl.valueChanges
|
|
9806
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
9807
|
+
.subscribe((inputValue) => {
|
|
9808
|
+
this.filterOptions(inputValue);
|
|
9809
|
+
});
|
|
9810
|
+
this.tagControl?.statusChanges?.pipe(takeUntilDestroyed(this._destroyRef))?.subscribe({
|
|
9811
|
+
next: (res) => {
|
|
9812
|
+
this.inputStatus.emit(res);
|
|
9813
|
+
},
|
|
9814
|
+
});
|
|
9815
|
+
}
|
|
9816
|
+
updateDisabledState() {
|
|
9817
|
+
const shouldDisable = !this.canAddTags || this.value.length >= this.maxTags;
|
|
9818
|
+
if (shouldDisable && this.tagControl.enabled) {
|
|
9819
|
+
this.tagControl.disable({ emitEvent: false });
|
|
9820
|
+
}
|
|
9821
|
+
else if (!shouldDisable && this.tagControl.disabled) {
|
|
9822
|
+
this.tagControl.enable({ emitEvent: false });
|
|
9823
|
+
}
|
|
9824
|
+
}
|
|
9825
|
+
applyColorVariables(color, danger = this.dangerColor) {
|
|
9826
|
+
const root = this.elementRef.nativeElement;
|
|
9827
|
+
// Convert to rgba with alpha 0.1 using browser-safe method
|
|
9828
|
+
const rgba = toRGBA(color, 0.1);
|
|
9829
|
+
root.style.setProperty('--dropdown-hover-bg', rgba);
|
|
9830
|
+
root.style.setProperty('--dropdown-hover-color', color);
|
|
9831
|
+
root.style.setProperty('--dropdown-active-bg', color);
|
|
9832
|
+
root.style.setProperty('--dropdown-active-color', '#fff');
|
|
9833
|
+
root.style.setProperty('--danger-color', danger);
|
|
9834
|
+
}
|
|
9835
|
+
filterOptions(inputValue) {
|
|
9836
|
+
const filterValue = inputValue?.toLowerCase() || '';
|
|
9837
|
+
// Show all options if input is empty
|
|
9838
|
+
this.filteredOptions = this.options.filter((option) => option.toLowerCase().includes(filterValue) && !this.value.includes(option));
|
|
9839
|
+
this.showDropdown = this.filteredOptions.length > 0;
|
|
9840
|
+
}
|
|
9841
|
+
selectOption(option) {
|
|
9842
|
+
this.tagControl.setValue(option);
|
|
9843
|
+
this.addTag({ target: { value: option } }); // Simulate input event
|
|
9844
|
+
this.showDropdown = false;
|
|
9845
|
+
}
|
|
9846
|
+
updateTagValidators() {
|
|
9847
|
+
if (this._removeValidators) {
|
|
9848
|
+
this.tagControl.setValidators([]);
|
|
9849
|
+
}
|
|
9850
|
+
else {
|
|
9851
|
+
this.tagControl.setValidators([...this.customValidators]);
|
|
9852
|
+
}
|
|
9853
|
+
this.tagControl.updateValueAndValidity();
|
|
9854
|
+
}
|
|
9855
|
+
writeValue(value) {
|
|
9856
|
+
this.value = value || [];
|
|
9857
|
+
}
|
|
9858
|
+
registerOnChange(fn) {
|
|
9859
|
+
this.onChange = fn;
|
|
9860
|
+
}
|
|
9861
|
+
registerOnTouched(fn) {
|
|
9862
|
+
this.onTouched = fn;
|
|
9863
|
+
}
|
|
9864
|
+
handleBackspace(event) {
|
|
9865
|
+
const keyboardEvent = event;
|
|
9866
|
+
setTimeout(() => {
|
|
9867
|
+
const inputValue = this.tagControl.value;
|
|
9868
|
+
if (!inputValue && this.removeLastOnBackspace && this.value.length > 0) {
|
|
9869
|
+
keyboardEvent.preventDefault();
|
|
9870
|
+
this.removeTag(this.value.length - 1);
|
|
9871
|
+
this.tagInputRef?.nativeElement?.focus();
|
|
9872
|
+
}
|
|
9873
|
+
});
|
|
9874
|
+
}
|
|
9875
|
+
setDisabledState(isDisabled) {
|
|
9876
|
+
this.disabled = isDisabled;
|
|
9877
|
+
if (this.disabled) {
|
|
9878
|
+
this.tagControl.disable();
|
|
9879
|
+
}
|
|
9880
|
+
}
|
|
9881
|
+
// Handle Blur
|
|
9882
|
+
handleBlur() {
|
|
9883
|
+
this.isTouched = true;
|
|
9884
|
+
this.onTouched();
|
|
9885
|
+
this.touched.emit(true);
|
|
9886
|
+
// Delay closing dropdown to allow option click
|
|
9887
|
+
setTimeout(() => {
|
|
9888
|
+
this.showDropdown = false;
|
|
9889
|
+
}, 100);
|
|
9890
|
+
}
|
|
9891
|
+
//Add Tag
|
|
9892
|
+
addTag(event) {
|
|
9893
|
+
if (!this.canAddTags)
|
|
9894
|
+
return;
|
|
9895
|
+
const inputValue = event.target?.value?.trim();
|
|
9896
|
+
if (!inputValue)
|
|
9897
|
+
return;
|
|
9898
|
+
if (this.onlyFromDropdown && !this.options.includes(inputValue))
|
|
9899
|
+
return;
|
|
9900
|
+
if (this.value.length >= this.maxTags) {
|
|
9901
|
+
this.tagControl.setValue('');
|
|
9902
|
+
this.tagControl.markAsTouched();
|
|
9903
|
+
this.showDropdown = false;
|
|
9904
|
+
return;
|
|
9905
|
+
}
|
|
9906
|
+
if (this.tagControl?.valid) {
|
|
9907
|
+
this.value = [...this.value, inputValue];
|
|
9908
|
+
this.onChange(this.value);
|
|
9909
|
+
this.valueChanged.emit(this.value);
|
|
9910
|
+
this.tagControl.reset('');
|
|
9911
|
+
}
|
|
9912
|
+
else {
|
|
9913
|
+
this.tagControl?.markAllAsTouched();
|
|
9914
|
+
}
|
|
9915
|
+
}
|
|
9916
|
+
// Remove Tag
|
|
9917
|
+
removeTag(index) {
|
|
9918
|
+
if (index > -1) {
|
|
9919
|
+
const newValue = [...this.value];
|
|
9920
|
+
newValue.splice(index, 1);
|
|
9921
|
+
this.value = [...newValue];
|
|
9922
|
+
this.onChange(this.value);
|
|
9923
|
+
console.log(this.value);
|
|
9924
|
+
this.tagControl.setValue('');
|
|
9925
|
+
this.filterOptions('');
|
|
9926
|
+
this.tagInputRef?.nativeElement?.focus();
|
|
9927
|
+
}
|
|
9928
|
+
}
|
|
9929
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: GtrTagsInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9930
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: GtrTagsInputComponent, isStandalone: true, selector: "gtr-tags-input", inputs: { value: "value", inputLabel: "inputLabel", type: "type", disabled: "disabled", readonly: "readonly", dataTransactionName: "dataTransactionName", invalid: "invalid", placeholder: "placeholder", options: "options", maxTags: "maxTags", removeLastOnBackspace: "removeLastOnBackspace", canDeleteTags: "canDeleteTags", canAddTags: "canAddTags", onlyFromDropdown: "onlyFromDropdown", color: "color", dangerColor: "dangerColor", resetTagInput: "resetTagInput", removeValidators: "removeValidators", customValidators: "customValidators" }, outputs: { valueChanged: "valueChanged", touched: "touched", inputStatus: "inputStatus" }, viewQueries: [{ propertyName: "tagInputRef", first: true, predicate: ["tagInputRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"tag-input-wrapper\">\n @if (inputLabel) {\n <label for=\"tag-input\" class=\"tag-input-label gtr-custom-label\">{{ inputLabel }}</label>\n }\n <div\n class=\"tag-input-container\"\n [class.invalid]=\"invalid || (tagControl?.invalid && tagControl?.touched)\"\n >\n @for (item of value; track i; let i = $index) {\n <div class=\"tag-chips\">\n {{ item }}\n @if (canDeleteTags) {\n <gtr-icon name=\"x\" [size]=\"16\" color=\"primary\" (click)=\"removeTag(i)\"></gtr-icon>\n }\n </div>\n }\n\n <div class=\"input-wrapper\">\n <input\n #tagInputRef\n [type]=\"type\"\n (focus)=\"filterOptions('')\"\n name=\"tag\"\n class=\"tag-input\"\n [placeholder]=\"placeholder\"\n [formControl]=\"tagControl\"\n [attr.data-transaction-name]=\"dataTransactionName + '--input'\"\n (blur)=\"handleBlur()\"\n (keydown.backspace)=\"handleBackspace($event)\"\n (keydown.enter)=\"addTag($event)\"\n />\n @if (showDropdown && filteredOptions.length > 0) {\n <ul class=\"dropdown-list\">\n @for (option of filteredOptions; track option) {\n <li (mousedown)=\"selectOption(option)\" [class.active]=\"option === tagControl.value\">\n {{ option }}\n </li>\n }\n </ul>\n }\n </div>\n\n @if (value.length >= maxTags) {\n <span class=\"tag-limit-msg\">Maximum {{ maxTags }} tags allowed</span>\n }\n </div>\n\n <!-- Error container -->\n @if (invalid || (tagControl?.touched && tagControl?.invalid)) {\n <div class=\"gtr-error-message\">\n <ng-content slot=\"['custom-error']\"> </ng-content>\n </div>\n }\n</div>\n", styles: [".tag-input-wrapper{display:block;width:100%;box-sizing:border-box;margin:0;padding:0}.tag-input-wrapper .input-wrapper{position:relative;width:100%}.tag-input-wrapper .dropdown-list{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #ccc;border-radius:4px;z-index:10;max-height:200px;overflow-y:auto;padding:0;margin-top:4px;list-style:none;box-shadow:0 2px 6px #00000026;transition:all .2s ease-in-out}.tag-input-wrapper .dropdown-list li{padding:10px 14px;cursor:pointer;font-size:14px;transition:background-color .2s ease}.tag-input-wrapper .dropdown-list li:hover{background-color:var(--dropdown-hover-bg, rgba(33, 97, 125, .1));color:var(--dropdown-hover-color, #21617d)}.tag-input-wrapper .tag-limit-msg{font-size:11px;color:var(--danger-color, #ea5455);font-weight:500}.tag-input-wrapper .dropdown-list li.active{background-color:var(--dropdown-active-bg, #21617d);color:var(--dropdown-active-color, #fff)}.tag-input-wrapper .dropdown-list::-webkit-scrollbar{width:8px}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-thumb{background-color:var(--dropdown-hover-color);border-radius:8px}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-thumb:hover{background-color:#184b60}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:8px}.tag-input-wrapper .dropdown-list{scrollbar-color:#21617d #f1f1f1;scrollbar-width:thin}.tag-input-wrapper .tag-input-container{position:relative;width:100%;max-width:100%;min-height:38px;height:100%;background-color:#fff;border-radius:6px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;padding:4px 10px;color:#000c;font-style:normal;font-weight:400;font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:#0000001a;cursor:pointer;transition:.2s ease;order:0}.tag-input-wrapper .tag-input-container.invalid{border-color:var(--danger-color, #ea5455)}.tag-input-wrapper .tag-input-container .tag-chips{background-color:var(--dropdown-hover-bg, rgba(33, 97, 125, .1));color:var(--dropdown-hover-color, #21617d);border-radius:4px;font-size:13px;padding:4px 10px;display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:3px 2px;white-space:normal;word-break:break-word}.tag-input-wrapper .tag-input-container .tag-input{border:none;outline:none;cursor:text;flex-grow:1}.tag-input-wrapper .tag-input-container:has(.tag-input:hover,.tag-input:focus){border-color:var(--dropdown-hover-color, #21617d)}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: GtrIconComponent, selector: "gtr-icon", inputs: ["dataTransactionName", "name", "weight", "color", "size", "iconId"] }] }); }
|
|
9931
|
+
}
|
|
9932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: GtrTagsInputComponent, decorators: [{
|
|
9933
|
+
type: Component,
|
|
9934
|
+
args: [{ selector: 'gtr-tags-input', imports: [ReactiveFormsModule, FormsModule, GtrIconComponent], template: "<div class=\"tag-input-wrapper\">\n @if (inputLabel) {\n <label for=\"tag-input\" class=\"tag-input-label gtr-custom-label\">{{ inputLabel }}</label>\n }\n <div\n class=\"tag-input-container\"\n [class.invalid]=\"invalid || (tagControl?.invalid && tagControl?.touched)\"\n >\n @for (item of value; track i; let i = $index) {\n <div class=\"tag-chips\">\n {{ item }}\n @if (canDeleteTags) {\n <gtr-icon name=\"x\" [size]=\"16\" color=\"primary\" (click)=\"removeTag(i)\"></gtr-icon>\n }\n </div>\n }\n\n <div class=\"input-wrapper\">\n <input\n #tagInputRef\n [type]=\"type\"\n (focus)=\"filterOptions('')\"\n name=\"tag\"\n class=\"tag-input\"\n [placeholder]=\"placeholder\"\n [formControl]=\"tagControl\"\n [attr.data-transaction-name]=\"dataTransactionName + '--input'\"\n (blur)=\"handleBlur()\"\n (keydown.backspace)=\"handleBackspace($event)\"\n (keydown.enter)=\"addTag($event)\"\n />\n @if (showDropdown && filteredOptions.length > 0) {\n <ul class=\"dropdown-list\">\n @for (option of filteredOptions; track option) {\n <li (mousedown)=\"selectOption(option)\" [class.active]=\"option === tagControl.value\">\n {{ option }}\n </li>\n }\n </ul>\n }\n </div>\n\n @if (value.length >= maxTags) {\n <span class=\"tag-limit-msg\">Maximum {{ maxTags }} tags allowed</span>\n }\n </div>\n\n <!-- Error container -->\n @if (invalid || (tagControl?.touched && tagControl?.invalid)) {\n <div class=\"gtr-error-message\">\n <ng-content slot=\"['custom-error']\"> </ng-content>\n </div>\n }\n</div>\n", styles: [".tag-input-wrapper{display:block;width:100%;box-sizing:border-box;margin:0;padding:0}.tag-input-wrapper .input-wrapper{position:relative;width:100%}.tag-input-wrapper .dropdown-list{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #ccc;border-radius:4px;z-index:10;max-height:200px;overflow-y:auto;padding:0;margin-top:4px;list-style:none;box-shadow:0 2px 6px #00000026;transition:all .2s ease-in-out}.tag-input-wrapper .dropdown-list li{padding:10px 14px;cursor:pointer;font-size:14px;transition:background-color .2s ease}.tag-input-wrapper .dropdown-list li:hover{background-color:var(--dropdown-hover-bg, rgba(33, 97, 125, .1));color:var(--dropdown-hover-color, #21617d)}.tag-input-wrapper .tag-limit-msg{font-size:11px;color:var(--danger-color, #ea5455);font-weight:500}.tag-input-wrapper .dropdown-list li.active{background-color:var(--dropdown-active-bg, #21617d);color:var(--dropdown-active-color, #fff)}.tag-input-wrapper .dropdown-list::-webkit-scrollbar{width:8px}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-thumb{background-color:var(--dropdown-hover-color);border-radius:8px}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-thumb:hover{background-color:#184b60}.tag-input-wrapper .dropdown-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:8px}.tag-input-wrapper .dropdown-list{scrollbar-color:#21617d #f1f1f1;scrollbar-width:thin}.tag-input-wrapper .tag-input-container{position:relative;width:100%;max-width:100%;min-height:38px;height:100%;background-color:#fff;border-radius:6px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;padding:4px 10px;color:#000c;font-style:normal;font-weight:400;font-size:13px;line-height:24px;border-width:1px;border-style:solid;border-color:#0000001a;cursor:pointer;transition:.2s ease;order:0}.tag-input-wrapper .tag-input-container.invalid{border-color:var(--danger-color, #ea5455)}.tag-input-wrapper .tag-input-container .tag-chips{background-color:var(--dropdown-hover-bg, rgba(33, 97, 125, .1));color:var(--dropdown-hover-color, #21617d);border-radius:4px;font-size:13px;padding:4px 10px;display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:3px 2px;white-space:normal;word-break:break-word}.tag-input-wrapper .tag-input-container .tag-input{border:none;outline:none;cursor:text;flex-grow:1}.tag-input-wrapper .tag-input-container:has(.tag-input:hover,.tag-input:focus){border-color:var(--dropdown-hover-color, #21617d)}\n"] }]
|
|
9935
|
+
}], ctorParameters: () => [], propDecorators: { tagInputRef: [{
|
|
9936
|
+
type: ViewChild,
|
|
9937
|
+
args: ['tagInputRef']
|
|
9938
|
+
}], value: [{
|
|
9939
|
+
type: Input
|
|
9940
|
+
}], inputLabel: [{
|
|
9941
|
+
type: Input
|
|
9942
|
+
}], type: [{
|
|
9943
|
+
type: Input
|
|
9944
|
+
}], disabled: [{
|
|
9945
|
+
type: Input
|
|
9946
|
+
}], readonly: [{
|
|
9947
|
+
type: Input
|
|
9948
|
+
}], dataTransactionName: [{
|
|
9949
|
+
type: Input
|
|
9950
|
+
}], invalid: [{
|
|
9951
|
+
type: Input
|
|
9952
|
+
}], placeholder: [{
|
|
9953
|
+
type: Input
|
|
9954
|
+
}], options: [{
|
|
9955
|
+
type: Input
|
|
9956
|
+
}], maxTags: [{
|
|
9957
|
+
type: Input
|
|
9958
|
+
}], removeLastOnBackspace: [{
|
|
9959
|
+
type: Input
|
|
9960
|
+
}], canDeleteTags: [{
|
|
9961
|
+
type: Input
|
|
9962
|
+
}], canAddTags: [{
|
|
9963
|
+
type: Input
|
|
9964
|
+
}], onlyFromDropdown: [{
|
|
9965
|
+
type: Input
|
|
9966
|
+
}], color: [{
|
|
9967
|
+
type: Input
|
|
9968
|
+
}], dangerColor: [{
|
|
9969
|
+
type: Input
|
|
9970
|
+
}], resetTagInput: [{
|
|
9971
|
+
type: Input
|
|
9972
|
+
}], valueChanged: [{
|
|
9973
|
+
type: Output
|
|
9974
|
+
}], touched: [{
|
|
9975
|
+
type: Output
|
|
9976
|
+
}], inputStatus: [{
|
|
9977
|
+
type: Output
|
|
9978
|
+
}], removeValidators: [{
|
|
9979
|
+
type: Input
|
|
9980
|
+
}], customValidators: [{
|
|
9981
|
+
type: Input
|
|
9982
|
+
}] } });
|
|
9983
|
+
|
|
9720
9984
|
const MAX_LOOKUP_RETRIES = 3;
|
|
9721
9985
|
class AutosizeDirective {
|
|
9722
9986
|
set minRows(value) {
|
|
@@ -9906,5 +10170,5 @@ function debounce(func, timeout) {
|
|
|
9906
10170
|
* Generated bundle index. Do not edit.
|
|
9907
10171
|
*/
|
|
9908
10172
|
|
|
9909
|
-
export { AutosizeDirective, BreakpointInfix, CContrastBorderColorVariable, ColorHelper, EContrastColor, GtrAccordionComponent, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDropdownComponent, GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrComponentName, GtrDatePickerComponent, GtrDateRangePickerComponent, GtrDisplayValueComponent, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrInputColorComponent, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrModalComponent, GtrNumericCounterComponent, GtrPaginationComponent, GtrPopoverComponent, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSkeletonComponent, GtrSkeletonDirective, GtrStatCardComponent, GtrSwitchComponent, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableResponsiveComponent, GtrTabsWrapperComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTimePickerComponent, GtrToasterComponent, GtrToasterService, GtrTooltipComponent, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
|
|
10173
|
+
export { AutosizeDirective, BreakpointInfix, CContrastBorderColorVariable, ColorHelper, EContrastColor, GtrAccordionComponent, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDropdownComponent, GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrComponentName, GtrDatePickerComponent, GtrDateRangePickerComponent, GtrDisplayValueComponent, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrInputColorComponent, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrModalComponent, GtrNumericCounterComponent, GtrPaginationComponent, GtrPopoverComponent, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSkeletonComponent, GtrSkeletonDirective, GtrStatCardComponent, GtrSwitchComponent, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableResponsiveComponent, GtrTabsWrapperComponent, GtrTagsInputComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTimePickerComponent, GtrToasterComponent, GtrToasterService, GtrTooltipComponent, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
|
|
9910
10174
|
//# sourceMappingURL=gettrx-core-components-angular.mjs.map
|