@c10t/nice-component-library 0.0.12-b → 0.0.15
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/components/cva-live-searching.component.d.ts +56 -0
- package/enums/column-type.enum.d.ts +2 -1
- package/fesm2022/c10t-nice-component-library.mjs +360 -20
- package/fesm2022/c10t-nice-component-library.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/models/components/column.model.d.ts +4 -0
- package/modules/nice-component-library.module.d.ts +9 -8
- package/package.json +1 -1
- package/services/validator.service.d.ts +3 -0
|
@@ -18,7 +18,7 @@ import * as i4 from '@angular/material/input';
|
|
|
18
18
|
import { MAT_INPUT_VALUE_ACCESSOR, MatInputModule } from '@angular/material/input';
|
|
19
19
|
import * as i8 from '@angular/flex-layout/flex';
|
|
20
20
|
import * as i3$1 from 'ngx-toastr';
|
|
21
|
-
import { BehaviorSubject, Subject, of, forkJoin, throwError } from 'rxjs';
|
|
21
|
+
import { BehaviorSubject, Subject, of, forkJoin, debounceTime, distinctUntilChanged, filter, tap, switchMap, throwError } from 'rxjs';
|
|
22
22
|
import * as i5 from '@angular/material/table';
|
|
23
23
|
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
24
24
|
import * as i1$4 from '@angular/router';
|
|
@@ -46,19 +46,21 @@ import * as i10 from '@angular/cdk/scrolling';
|
|
|
46
46
|
import { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';
|
|
47
47
|
import * as i9$1 from '@angular/material/select';
|
|
48
48
|
import { MatSelectModule } from '@angular/material/select';
|
|
49
|
-
import * as i3$2 from '@angular/material/
|
|
49
|
+
import * as i3$2 from '@angular/material/autocomplete';
|
|
50
|
+
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
51
|
+
import * as i7$1 from '@angular/material/progress-spinner';
|
|
52
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
53
|
+
import * as i3$3 from '@angular/material/card';
|
|
50
54
|
import { MatCardModule } from '@angular/material/card';
|
|
51
|
-
import * as i3$
|
|
55
|
+
import * as i3$4 from '@angular/material/progress-bar';
|
|
52
56
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
53
|
-
import * as i4$3 from '@angular/material/progress-spinner';
|
|
54
|
-
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
55
57
|
import { NestedTreeControl, FlatTreeControl, CdkTreeModule, CdkTree, CdkTreeNode } from '@angular/cdk/tree';
|
|
56
58
|
import * as i6$1 from '@angular/material/tree';
|
|
57
59
|
import { MatTreeNestedDataSource, MatTreeFlattener, MatTreeFlatDataSource, MatTreeModule } from '@angular/material/tree';
|
|
58
|
-
import * as i4$
|
|
60
|
+
import * as i4$3 from '@angular/material/radio';
|
|
59
61
|
import { MatRadioModule } from '@angular/material/radio';
|
|
60
62
|
import * as i6$2 from '@angular/material/divider';
|
|
61
|
-
import * as i4$
|
|
63
|
+
import * as i4$4 from 'ngx-quill';
|
|
62
64
|
import { QuillModule } from 'ngx-quill';
|
|
63
65
|
import * as i1$6 from 'jsog-typescript';
|
|
64
66
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
@@ -76,7 +78,6 @@ import { MatChipsModule } from '@angular/material/chips';
|
|
|
76
78
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
77
79
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
78
80
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
79
|
-
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
80
81
|
import { MatSortModule } from '@angular/material/sort';
|
|
81
82
|
import { MatStepperModule } from '@angular/material/stepper';
|
|
82
83
|
import { ScrollingModule as ScrollingModule$1 } from '@angular/cdk-experimental/scrolling';
|
|
@@ -154,6 +155,7 @@ var ColumnTypeEnum;
|
|
|
154
155
|
ColumnTypeEnum["INPUT"] = "INPUT";
|
|
155
156
|
ColumnTypeEnum["LINK"] = "LINK";
|
|
156
157
|
ColumnTypeEnum["STYLE_CSS"] = "STYLE_CSS";
|
|
158
|
+
ColumnTypeEnum["LIVE_SEARCHING"] = "LIVE_SEARCHING";
|
|
157
159
|
})(ColumnTypeEnum || (ColumnTypeEnum = {}));
|
|
158
160
|
|
|
159
161
|
var AlignEnum;
|
|
@@ -196,6 +198,10 @@ class ColumnModel {
|
|
|
196
198
|
footer;
|
|
197
199
|
footers = [];
|
|
198
200
|
button;
|
|
201
|
+
// Dùng cho cva-live-searching
|
|
202
|
+
displayKey;
|
|
203
|
+
mappingConfig = {};
|
|
204
|
+
searchFn;
|
|
199
205
|
title = (e) => `${e}`;
|
|
200
206
|
cell = (e) => `${e}`;
|
|
201
207
|
}
|
|
@@ -1620,6 +1626,13 @@ class ValidatorService {
|
|
|
1620
1626
|
}
|
|
1621
1627
|
return validationFns;
|
|
1622
1628
|
}
|
|
1629
|
+
static generateNsAutocompleteValidators(conditions) {
|
|
1630
|
+
const validationFns = [];
|
|
1631
|
+
if (conditions.required) {
|
|
1632
|
+
validationFns.push(Validators.required);
|
|
1633
|
+
}
|
|
1634
|
+
return validationFns;
|
|
1635
|
+
}
|
|
1623
1636
|
static getMinMaxDynamic(minOrMax) {
|
|
1624
1637
|
return minOrMax !== null ? typeof (minOrMax) === 'function' ? minOrMax() : minOrMax : null;
|
|
1625
1638
|
}
|
|
@@ -4424,6 +4437,311 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
4424
4437
|
args: [CdkVirtualScrollViewport, { static: false }]
|
|
4425
4438
|
}] } });
|
|
4426
4439
|
|
|
4440
|
+
class CvaLiveSearchingComponent {
|
|
4441
|
+
injector;
|
|
4442
|
+
label = '';
|
|
4443
|
+
placeholder = '';
|
|
4444
|
+
hint = '';
|
|
4445
|
+
required = false;
|
|
4446
|
+
disabled = false;
|
|
4447
|
+
readonly = false;
|
|
4448
|
+
errorMessages = new Map();
|
|
4449
|
+
isLabelOutside = false;
|
|
4450
|
+
isFloatLabel = true;
|
|
4451
|
+
percentOfLabelOutside = 25;
|
|
4452
|
+
suffixFontAwesomeClass = '';
|
|
4453
|
+
displayKey = '';
|
|
4454
|
+
mappingConfig = {};
|
|
4455
|
+
searchFn;
|
|
4456
|
+
onChange = new EventEmitter();
|
|
4457
|
+
// Chỉ bằng false khi trong NsSmartTable thôi nhé @@
|
|
4458
|
+
isFormControl = true;
|
|
4459
|
+
row;
|
|
4460
|
+
columnDef;
|
|
4461
|
+
control = undefined;
|
|
4462
|
+
textControl = new FormControl('');
|
|
4463
|
+
filteredOptions = [];
|
|
4464
|
+
selected;
|
|
4465
|
+
loading = false;
|
|
4466
|
+
searchSub;
|
|
4467
|
+
constructor(injector, ngControl) {
|
|
4468
|
+
this.injector = injector;
|
|
4469
|
+
if (ngControl) {
|
|
4470
|
+
// Hành động này thay cho provide: NG_VALUE_ACCESSOR và gắn ControlValueAccessor này vào parent FormControl
|
|
4471
|
+
ngControl.valueAccessor = this;
|
|
4472
|
+
}
|
|
4473
|
+
}
|
|
4474
|
+
get NsValidator() {
|
|
4475
|
+
return ValidatorService;
|
|
4476
|
+
}
|
|
4477
|
+
ngOnInit() {
|
|
4478
|
+
this.callValidator();
|
|
4479
|
+
this.textValueChangeSubscribe();
|
|
4480
|
+
if (!this.isFormControl && !!this.searchFn && this.row && this.columnDef) {
|
|
4481
|
+
this.writeValue(this.row[this.columnDef]);
|
|
4482
|
+
}
|
|
4483
|
+
}
|
|
4484
|
+
callValidator() {
|
|
4485
|
+
const ngControl = this.injector.get(NgControl);
|
|
4486
|
+
// Nếu parent FormControl khởi tạo xong và formControl chưa có giá trị lưu
|
|
4487
|
+
if (ngControl && !this.control) {
|
|
4488
|
+
// Nếu là NsSmartTable thì phải tự new FormControl còn không thì cứ hóng parent FormControl về ^^
|
|
4489
|
+
if (this.isFormControl) {
|
|
4490
|
+
this.control = ngControl.control ? ngControl.control : undefined;
|
|
4491
|
+
}
|
|
4492
|
+
else {
|
|
4493
|
+
this.control = new FormControl();
|
|
4494
|
+
}
|
|
4495
|
+
// Hành động này gắn validator vào this.formControl
|
|
4496
|
+
// - Nếu this.formControl là parent FormControl thì sẽ show error lên FormGroup
|
|
4497
|
+
// - Nếu this.formControl là new FormControl thì sẽ quét QueryList để check {errors}
|
|
4498
|
+
if (this.control) {
|
|
4499
|
+
if (this.control.validator) {
|
|
4500
|
+
this.control.setValidators([...ValidatorService.generateNsAutocompleteValidators({
|
|
4501
|
+
required: this.required,
|
|
4502
|
+
}), this.control.validator]);
|
|
4503
|
+
}
|
|
4504
|
+
else {
|
|
4505
|
+
this.control.setValidators([...ValidatorService.generateNsAutocompleteValidators({
|
|
4506
|
+
required: this.required,
|
|
4507
|
+
})]);
|
|
4508
|
+
}
|
|
4509
|
+
}
|
|
4510
|
+
}
|
|
4511
|
+
if (this.control) {
|
|
4512
|
+
// Nếu this.formControl thuộc NsSmartTable thì setValue lại
|
|
4513
|
+
if (!this.isFormControl) {
|
|
4514
|
+
this.control.setValue(this.selected);
|
|
4515
|
+
}
|
|
4516
|
+
// Nếu là parent FormControl rồi thì kệ
|
|
4517
|
+
this.control.updateValueAndValidity();
|
|
4518
|
+
}
|
|
4519
|
+
}
|
|
4520
|
+
propagateChange = (_) => {
|
|
4521
|
+
/*NON-EMPTY FOR COMPILE*/
|
|
4522
|
+
};
|
|
4523
|
+
/**
|
|
4524
|
+
* Set the function to be called
|
|
4525
|
+
* when the formControl receives a change event.
|
|
4526
|
+
*/
|
|
4527
|
+
registerOnChange(fn) {
|
|
4528
|
+
this.propagateChange = fn;
|
|
4529
|
+
}
|
|
4530
|
+
/**
|
|
4531
|
+
* Set the function to be called
|
|
4532
|
+
* when the formControl receives a touch event.
|
|
4533
|
+
*/
|
|
4534
|
+
registerOnTouched() {
|
|
4535
|
+
/*NON-EMPTY FOR COMPILE*/
|
|
4536
|
+
}
|
|
4537
|
+
/**
|
|
4538
|
+
* Write a new value to the element.
|
|
4539
|
+
*/
|
|
4540
|
+
writeValue(obj) {
|
|
4541
|
+
if (!obj || typeof obj !== 'string') {
|
|
4542
|
+
this.selected = {};
|
|
4543
|
+
this.textControl.setValue('', { emitEvent: false });
|
|
4544
|
+
this.updateRowOrFormGroup();
|
|
4545
|
+
return;
|
|
4546
|
+
}
|
|
4547
|
+
const matched = this.filteredOptions.find(opt => {
|
|
4548
|
+
return JSON.stringify(opt[this.displayKey] ?? '') === JSON.stringify(obj ?? '');
|
|
4549
|
+
});
|
|
4550
|
+
if (!matched) {
|
|
4551
|
+
if (!this.searchFn) {
|
|
4552
|
+
return;
|
|
4553
|
+
}
|
|
4554
|
+
// Khi textValueChange chưa chạy không tìm thấy
|
|
4555
|
+
this.searchFn(obj).subscribe(values => {
|
|
4556
|
+
if (values && values.length > 0) {
|
|
4557
|
+
const emptyObj = {};
|
|
4558
|
+
emptyObj[this.displayKey] = '';
|
|
4559
|
+
this.filteredOptions = [emptyObj, ...values];
|
|
4560
|
+
this.onOptionSelect(obj);
|
|
4561
|
+
}
|
|
4562
|
+
});
|
|
4563
|
+
return;
|
|
4564
|
+
}
|
|
4565
|
+
this.selected = matched;
|
|
4566
|
+
this.textControl.setValue(matched[this.displayKey], { emitEvent: false });
|
|
4567
|
+
this.updateRowOrFormGroup();
|
|
4568
|
+
}
|
|
4569
|
+
onOptionSelect(displayValue) {
|
|
4570
|
+
this.searchSub?.unsubscribe();
|
|
4571
|
+
this.writeValue(displayValue);
|
|
4572
|
+
setTimeout(() => this.textValueChangeSubscribe(), 100);
|
|
4573
|
+
}
|
|
4574
|
+
textValueChangeSubscribe() {
|
|
4575
|
+
this.searchSub = this.textControl.valueChanges.pipe(debounceTime(300), distinctUntilChanged(), filter(text => typeof text === 'string' && text.trim().length > 0), tap(() => this.loading = true), switchMap((text) => {
|
|
4576
|
+
if (typeof text !== 'string' || !text || !text.trim())
|
|
4577
|
+
return of([]);
|
|
4578
|
+
return this.searchFn ? this.searchFn(text) : of([]);
|
|
4579
|
+
}), tap(() => this.loading = false)).subscribe((data) => {
|
|
4580
|
+
const emptyObj = {};
|
|
4581
|
+
emptyObj[this.displayKey] = '';
|
|
4582
|
+
this.filteredOptions = this.selected
|
|
4583
|
+
? [this.selected, emptyObj, ...data.filter((x) => x[this.displayKey] !== this.selected[this.displayKey])]
|
|
4584
|
+
: data;
|
|
4585
|
+
});
|
|
4586
|
+
}
|
|
4587
|
+
updateRowOrFormGroup() {
|
|
4588
|
+
if (!this.isFormControl && this.row) {
|
|
4589
|
+
for (const targetKey in this.mappingConfig) {
|
|
4590
|
+
const sourceKey = this.mappingConfig[targetKey];
|
|
4591
|
+
this.row[targetKey] = this.selected[sourceKey];
|
|
4592
|
+
}
|
|
4593
|
+
}
|
|
4594
|
+
if (this.isFormControl && this.control?.parent) {
|
|
4595
|
+
for (const targetKey in this.mappingConfig) {
|
|
4596
|
+
const sourceKey = this.mappingConfig[targetKey];
|
|
4597
|
+
const formControl = this.control.parent.get(targetKey);
|
|
4598
|
+
if (formControl)
|
|
4599
|
+
formControl.setValue(this.selected[sourceKey]);
|
|
4600
|
+
}
|
|
4601
|
+
}
|
|
4602
|
+
this.propagateChange(this.selected[this.displayKey]);
|
|
4603
|
+
this.onChange.emit(this.selected[this.displayKey]);
|
|
4604
|
+
}
|
|
4605
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaLiveSearchingComponent, deps: [{ token: i0.Injector }, { token: i1$2.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4606
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaLiveSearchingComponent, isStandalone: false, selector: "cva-live-searching", inputs: { label: "label", placeholder: "placeholder", hint: "hint", required: "required", disabled: "disabled", readonly: "readonly", errorMessages: "errorMessages", isLabelOutside: "isLabelOutside", isFloatLabel: "isFloatLabel", percentOfLabelOutside: "percentOfLabelOutside", suffixFontAwesomeClass: "suffixFontAwesomeClass", displayKey: "displayKey", mappingConfig: "mappingConfig", searchFn: "searchFn", isFormControl: "isFormControl", row: "row", columnDef: "columnDef" }, outputs: { onChange: "onChange" }, ngImport: i0, template: `
|
|
4607
|
+
<div class="cva-live-searching"
|
|
4608
|
+
[ngClass]="{'labelOutside': !!isLabelOutside,
|
|
4609
|
+
'float_label': !!isFloatLabel && !isLabelOutside}"
|
|
4610
|
+
fxLayout="row" fxLayout.lt-sm="row wrap">
|
|
4611
|
+
<mat-label *ngIf="isLabelOutside" class="label_width"
|
|
4612
|
+
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
4613
|
+
<div class="label">
|
|
4614
|
+
<div>
|
|
4615
|
+
{{ (label ? label : placeholder) | translate }}<span
|
|
4616
|
+
class="required-label-outside">{{ !!required ? '*' : '' }}</span>
|
|
4617
|
+
</div>
|
|
4618
|
+
</div>
|
|
4619
|
+
</mat-label>
|
|
4620
|
+
<mat-form-field appearance="outline" [floatLabel]="!!isFloatLabel ? 'always' : 'auto'"
|
|
4621
|
+
[hideRequiredMarker]="!isFloatLabel"
|
|
4622
|
+
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
4623
|
+
<mat-label *ngIf="!isLabelOutside && !!isFloatLabel">
|
|
4624
|
+
{{ (label ? label : placeholder) | translate }}
|
|
4625
|
+
</mat-label>
|
|
4626
|
+
<input type="text"
|
|
4627
|
+
matInput
|
|
4628
|
+
[required]="required"
|
|
4629
|
+
[disabled]="disabled"
|
|
4630
|
+
[placeholder]="placeholder"
|
|
4631
|
+
[formControl]="textControl"
|
|
4632
|
+
[matAutocomplete]="auto"
|
|
4633
|
+
readonly="{{readonly}}" />
|
|
4634
|
+
<mat-autocomplete #auto="matAutocomplete" autoActiveFirstOption
|
|
4635
|
+
(optionSelected)="onOptionSelect($event.option.value)">
|
|
4636
|
+
<mat-option *ngIf="loading" class="loading-option">
|
|
4637
|
+
<mat-spinner diameter="20"></mat-spinner>
|
|
4638
|
+
</mat-option>
|
|
4639
|
+
<mat-option *ngFor="let option of filteredOptions" [value]="option[displayKey]">
|
|
4640
|
+
{{ option[displayKey] }}
|
|
4641
|
+
</mat-option>
|
|
4642
|
+
</mat-autocomplete>
|
|
4643
|
+
<i *ngIf="!!suffixFontAwesomeClass" class="input-suffix {{suffixFontAwesomeClass}}" matSuffix></i>
|
|
4644
|
+
<mat-hint align="start" *ngIf="!NsValidator.invalid(control)">{{ hint | translate }}</mat-hint>
|
|
4645
|
+
<mat-hint style="color: red" align="start" *ngIf="NsValidator.invalid(control)">
|
|
4646
|
+
{{ NsValidator.getErrorMessageV1(control, errorMessages).msg | translate: NsValidator.getErrorMessageV1(control, errorMessages).params }}
|
|
4647
|
+
</mat-hint>
|
|
4648
|
+
</mat-form-field>
|
|
4649
|
+
</div>
|
|
4650
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.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$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3$2.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i4$2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i3$2.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i6.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i7$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i9.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
|
|
4651
|
+
}
|
|
4652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaLiveSearchingComponent, decorators: [{
|
|
4653
|
+
type: Component,
|
|
4654
|
+
args: [{
|
|
4655
|
+
selector: 'cva-live-searching',
|
|
4656
|
+
standalone: false,
|
|
4657
|
+
template: `
|
|
4658
|
+
<div class="cva-live-searching"
|
|
4659
|
+
[ngClass]="{'labelOutside': !!isLabelOutside,
|
|
4660
|
+
'float_label': !!isFloatLabel && !isLabelOutside}"
|
|
4661
|
+
fxLayout="row" fxLayout.lt-sm="row wrap">
|
|
4662
|
+
<mat-label *ngIf="isLabelOutside" class="label_width"
|
|
4663
|
+
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
4664
|
+
<div class="label">
|
|
4665
|
+
<div>
|
|
4666
|
+
{{ (label ? label : placeholder) | translate }}<span
|
|
4667
|
+
class="required-label-outside">{{ !!required ? '*' : '' }}</span>
|
|
4668
|
+
</div>
|
|
4669
|
+
</div>
|
|
4670
|
+
</mat-label>
|
|
4671
|
+
<mat-form-field appearance="outline" [floatLabel]="!!isFloatLabel ? 'always' : 'auto'"
|
|
4672
|
+
[hideRequiredMarker]="!isFloatLabel"
|
|
4673
|
+
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
4674
|
+
<mat-label *ngIf="!isLabelOutside && !!isFloatLabel">
|
|
4675
|
+
{{ (label ? label : placeholder) | translate }}
|
|
4676
|
+
</mat-label>
|
|
4677
|
+
<input type="text"
|
|
4678
|
+
matInput
|
|
4679
|
+
[required]="required"
|
|
4680
|
+
[disabled]="disabled"
|
|
4681
|
+
[placeholder]="placeholder"
|
|
4682
|
+
[formControl]="textControl"
|
|
4683
|
+
[matAutocomplete]="auto"
|
|
4684
|
+
readonly="{{readonly}}" />
|
|
4685
|
+
<mat-autocomplete #auto="matAutocomplete" autoActiveFirstOption
|
|
4686
|
+
(optionSelected)="onOptionSelect($event.option.value)">
|
|
4687
|
+
<mat-option *ngIf="loading" class="loading-option">
|
|
4688
|
+
<mat-spinner diameter="20"></mat-spinner>
|
|
4689
|
+
</mat-option>
|
|
4690
|
+
<mat-option *ngFor="let option of filteredOptions" [value]="option[displayKey]">
|
|
4691
|
+
{{ option[displayKey] }}
|
|
4692
|
+
</mat-option>
|
|
4693
|
+
</mat-autocomplete>
|
|
4694
|
+
<i *ngIf="!!suffixFontAwesomeClass" class="input-suffix {{suffixFontAwesomeClass}}" matSuffix></i>
|
|
4695
|
+
<mat-hint align="start" *ngIf="!NsValidator.invalid(control)">{{ hint | translate }}</mat-hint>
|
|
4696
|
+
<mat-hint style="color: red" align="start" *ngIf="NsValidator.invalid(control)">
|
|
4697
|
+
{{ NsValidator.getErrorMessageV1(control, errorMessages).msg | translate: NsValidator.getErrorMessageV1(control, errorMessages).params }}
|
|
4698
|
+
</mat-hint>
|
|
4699
|
+
</mat-form-field>
|
|
4700
|
+
</div>
|
|
4701
|
+
`,
|
|
4702
|
+
}]
|
|
4703
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: i1$2.NgControl, decorators: [{
|
|
4704
|
+
type: Self
|
|
4705
|
+
}, {
|
|
4706
|
+
type: Optional
|
|
4707
|
+
}] }], propDecorators: { label: [{
|
|
4708
|
+
type: Input
|
|
4709
|
+
}], placeholder: [{
|
|
4710
|
+
type: Input
|
|
4711
|
+
}], hint: [{
|
|
4712
|
+
type: Input
|
|
4713
|
+
}], required: [{
|
|
4714
|
+
type: Input
|
|
4715
|
+
}], disabled: [{
|
|
4716
|
+
type: Input
|
|
4717
|
+
}], readonly: [{
|
|
4718
|
+
type: Input
|
|
4719
|
+
}], errorMessages: [{
|
|
4720
|
+
type: Input
|
|
4721
|
+
}], isLabelOutside: [{
|
|
4722
|
+
type: Input
|
|
4723
|
+
}], isFloatLabel: [{
|
|
4724
|
+
type: Input
|
|
4725
|
+
}], percentOfLabelOutside: [{
|
|
4726
|
+
type: Input
|
|
4727
|
+
}], suffixFontAwesomeClass: [{
|
|
4728
|
+
type: Input
|
|
4729
|
+
}], displayKey: [{
|
|
4730
|
+
type: Input
|
|
4731
|
+
}], mappingConfig: [{
|
|
4732
|
+
type: Input
|
|
4733
|
+
}], searchFn: [{
|
|
4734
|
+
type: Input
|
|
4735
|
+
}], onChange: [{
|
|
4736
|
+
type: Output
|
|
4737
|
+
}], isFormControl: [{
|
|
4738
|
+
type: Input
|
|
4739
|
+
}], row: [{
|
|
4740
|
+
type: Input
|
|
4741
|
+
}], columnDef: [{
|
|
4742
|
+
type: Input
|
|
4743
|
+
}] } });
|
|
4744
|
+
|
|
4427
4745
|
class CvaSmartTableComponent {
|
|
4428
4746
|
ref;
|
|
4429
4747
|
config;
|
|
@@ -4834,6 +5152,15 @@ class CvaSmartTableComponent {
|
|
|
4834
5152
|
(change)="toggleSelect($event,result, column)">
|
|
4835
5153
|
</mat-checkbox>
|
|
4836
5154
|
</div>
|
|
5155
|
+
<cva-live-searching *ngSwitchCase="ColumnTypes.LIVE_SEARCHING"
|
|
5156
|
+
[isFormControl]="false" [required]="getRequired(column)"
|
|
5157
|
+
[row]="result" [columnDef]="column.columnDef"
|
|
5158
|
+
[searchFn]="column.searchFn"
|
|
5159
|
+
[mappingConfig]="column.mappingConfig"
|
|
5160
|
+
[displayKey]="column.displayKey"
|
|
5161
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5162
|
+
(onChange)="onCellValueChange(result, column, $event)">
|
|
5163
|
+
</cva-live-searching>
|
|
4837
5164
|
</td>
|
|
4838
5165
|
</ng-container>
|
|
4839
5166
|
</ng-container>
|
|
@@ -4914,7 +5241,7 @@ class CvaSmartTableComponent {
|
|
|
4914
5241
|
</ng-container>
|
|
4915
5242
|
</table>
|
|
4916
5243
|
</div>
|
|
4917
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i5.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i5.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i5.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i5.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i5.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i5.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: i8$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: i1$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i9.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: CvaInputComponent, selector: "cva-input", inputs: ["label", "name", "placeholder", "hint", "required", "disabled", "text", "type", "pattern", "readonly", "errorMessages", "multiline", "isLabelOutside", "isFloatLabel", "minLength", "maxLength", "maxLengthDisplay", "percentOfLabelOutside", "suffixFontAwesomeClass", "patternFilter", "isFormControl", "formatFunc"], outputs: ["onChange"] }, { kind: "component", type: CvaCounterInputComponent, selector: "cva-counter-input", inputs: ["label", "placeholder", "suffixText", "hint", "value", "disabled", "required", "errorMessages", "min", "max", "error", "isDecimal", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "alignNumber", "isFormControl"], outputs: ["onChange", "onEnter"] }, { kind: "component", type: CvaDatePickerComponent, selector: "cva-date-picker", inputs: ["label", "placeholder", "value", "disabled", "required", "minDate", "maxDate", "errorMessages", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "isFormControl"], outputs: ["onChange"] }, { kind: "component", type: CvaMultiSelectAutocomplete, selector: "cva-multi-select-autocomplete", inputs: ["placeholder", "label", "hint", "value", "options", "disabled", "errorMessages", "multiple", "required", "isTree", "treeSymbol", "sizeOfItemsInListByPixels", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "isFormControl"], outputs: ["selectionChange", "selectedOptionDataChange"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "pipe", type: SecureImgPipe, name: "secure" }] });
|
|
5244
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i5.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i5.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i5.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i5.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i5.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i5.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: i8$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: i1$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i9.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: CvaInputComponent, selector: "cva-input", inputs: ["label", "name", "placeholder", "hint", "required", "disabled", "text", "type", "pattern", "readonly", "errorMessages", "multiline", "isLabelOutside", "isFloatLabel", "minLength", "maxLength", "maxLengthDisplay", "percentOfLabelOutside", "suffixFontAwesomeClass", "patternFilter", "isFormControl", "formatFunc"], outputs: ["onChange"] }, { kind: "component", type: CvaCounterInputComponent, selector: "cva-counter-input", inputs: ["label", "placeholder", "suffixText", "hint", "value", "disabled", "required", "errorMessages", "min", "max", "error", "isDecimal", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "alignNumber", "isFormControl"], outputs: ["onChange", "onEnter"] }, { kind: "component", type: CvaDatePickerComponent, selector: "cva-date-picker", inputs: ["label", "placeholder", "value", "disabled", "required", "minDate", "maxDate", "errorMessages", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "isFormControl"], outputs: ["onChange"] }, { kind: "component", type: CvaMultiSelectAutocomplete, selector: "cva-multi-select-autocomplete", inputs: ["placeholder", "label", "hint", "value", "options", "disabled", "errorMessages", "multiple", "required", "isTree", "treeSymbol", "sizeOfItemsInListByPixels", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "isFormControl"], outputs: ["selectionChange", "selectedOptionDataChange"] }, { kind: "component", type: CvaLiveSearchingComponent, selector: "cva-live-searching", inputs: ["label", "placeholder", "hint", "required", "disabled", "readonly", "errorMessages", "isLabelOutside", "isFloatLabel", "percentOfLabelOutside", "suffixFontAwesomeClass", "displayKey", "mappingConfig", "searchFn", "isFormControl", "row", "columnDef"], outputs: ["onChange"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "pipe", type: SecureImgPipe, name: "secure" }] });
|
|
4918
5245
|
}
|
|
4919
5246
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaSmartTableComponent, decorators: [{
|
|
4920
5247
|
type: Component,
|
|
@@ -5056,6 +5383,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
5056
5383
|
(change)="toggleSelect($event,result, column)">
|
|
5057
5384
|
</mat-checkbox>
|
|
5058
5385
|
</div>
|
|
5386
|
+
<cva-live-searching *ngSwitchCase="ColumnTypes.LIVE_SEARCHING"
|
|
5387
|
+
[isFormControl]="false" [required]="getRequired(column)"
|
|
5388
|
+
[row]="result" [columnDef]="column.columnDef"
|
|
5389
|
+
[searchFn]="column.searchFn"
|
|
5390
|
+
[mappingConfig]="column.mappingConfig"
|
|
5391
|
+
[displayKey]="column.displayKey"
|
|
5392
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5393
|
+
(onChange)="onCellValueChange(result, column, $event)">
|
|
5394
|
+
</cva-live-searching>
|
|
5059
5395
|
</td>
|
|
5060
5396
|
</ng-container>
|
|
5061
5397
|
</ng-container>
|
|
@@ -5785,7 +6121,7 @@ class CvaMultiUploadComponent {
|
|
|
5785
6121
|
<mat-error *ngIf="typeError!==null">{{ typeError + ' ' + ('common.is.not-accept' | translate) }}</mat-error>
|
|
5786
6122
|
</div>
|
|
5787
6123
|
</div>
|
|
5788
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3$
|
|
6124
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3$3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$3.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i3$3.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i8$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: DragDropDirective, selector: "[appDragDrop]", outputs: ["onFileDropped"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
|
|
5789
6125
|
}
|
|
5790
6126
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaMultiUploadComponent, decorators: [{
|
|
5791
6127
|
type: Component,
|
|
@@ -6203,7 +6539,7 @@ class CvaUploadFileComponent {
|
|
|
6203
6539
|
<mat-error *ngIf="isRectangleError">{{ ('common.error.image.rectangle' | translate) }}</mat-error>
|
|
6204
6540
|
</div>
|
|
6205
6541
|
</div>
|
|
6206
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3$
|
|
6542
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3$3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$3.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i3$3.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i9.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "directive", type: DragDropDirective, selector: "[appDragDrop]", outputs: ["onFileDropped"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "pipe", type: SecureImgPipe, name: "secure" }] });
|
|
6207
6543
|
}
|
|
6208
6544
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaUploadFileComponent, decorators: [{
|
|
6209
6545
|
type: Component,
|
|
@@ -6514,7 +6850,7 @@ class CvaLoaderComponent {
|
|
|
6514
6850
|
</div>
|
|
6515
6851
|
<img *ngIf="!!imgSrc" [src]="imgSrc" alt=""/>
|
|
6516
6852
|
</div>
|
|
6517
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$
|
|
6853
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$4.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i7$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] });
|
|
6518
6854
|
}
|
|
6519
6855
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaLoaderComponent, decorators: [{
|
|
6520
6856
|
type: Component,
|
|
@@ -6979,7 +7315,7 @@ class CvaRadiobuttonComponent {
|
|
|
6979
7315
|
<mat-hint align="start" *ngIf="NsValidator.invalid(control)">{{NsValidator.getErrorMessage(control, errorMessages) | translate}}</mat-hint>
|
|
6980
7316
|
</div>
|
|
6981
7317
|
</div>
|
|
6982
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$
|
|
7318
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$3.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i4$3.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
|
|
6983
7319
|
}
|
|
6984
7320
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaRadiobuttonComponent, decorators: [{
|
|
6985
7321
|
type: Component,
|
|
@@ -8540,7 +8876,7 @@ class CvaQuillEditorComponent {
|
|
|
8540
8876
|
</mat-hint>
|
|
8541
8877
|
</div>
|
|
8542
8878
|
</div>
|
|
8543
|
-
`, isInline: true, styles: [".cva-quill-editor{margin-bottom:1rem}.cva-quill-editor .required-label-outside{color:red}.cva-quill-editor .ql-container.ql-snow{height:100px;overflow-y:auto}.cva-quill-editor #counter{border:1px solid #ccc;border-width:0px 1px 1px 1px;color:#aaa;padding:5px 15px;text-align:right}.cva-quill-editor quill-editor{margin-bottom:0!important;word-break:break-word}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i4$
|
|
8879
|
+
`, isInline: true, styles: [".cva-quill-editor{margin-bottom:1rem}.cva-quill-editor .required-label-outside{color:red}.cva-quill-editor .ql-container.ql-snow{height:100px;overflow-y:auto}.cva-quill-editor #counter{border:1px solid #ccc;border-width:0px 1px 1px 1px;color:#aaa;padding:5px 15px;text-align:right}.cva-quill-editor quill-editor{margin-bottom:0!important;word-break:break-word}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i4$4.QuillEditorComponent, selector: "quill-editor" }, { kind: "directive", type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i9.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "directive", type: i9.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
8544
8880
|
}
|
|
8545
8881
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaQuillEditorComponent, decorators: [{
|
|
8546
8882
|
type: Component,
|
|
@@ -8687,14 +9023,14 @@ class LoaderInterceptor {
|
|
|
8687
9023
|
this.loaderService.isLoading.next(this.requests.length > 0);
|
|
8688
9024
|
}
|
|
8689
9025
|
intercept(request, next) {
|
|
8690
|
-
if (!request.headers.get('is_image')) {
|
|
9026
|
+
if (!request.headers.get('is_image') && !request.headers.get('is_live_searching')) {
|
|
8691
9027
|
this.requests.push(request);
|
|
8692
9028
|
// console.log('LoaderInterceptor: wait for ' + this.requests.length + 'requests');
|
|
8693
9029
|
this.loaderService.isLoading.next(true);
|
|
8694
9030
|
}
|
|
8695
9031
|
else {
|
|
8696
9032
|
request = request.clone({
|
|
8697
|
-
headers: request.headers.delete('is_image'),
|
|
9033
|
+
headers: request.headers.delete('is_image').delete('is_live_searching'),
|
|
8698
9034
|
});
|
|
8699
9035
|
}
|
|
8700
9036
|
return next.handle(request).pipe(map((event) => {
|
|
@@ -8973,10 +9309,11 @@ class NiceComponentLibraryModule {
|
|
|
8973
9309
|
CvaDialogImportFileComponent,
|
|
8974
9310
|
BaseSearchComponent,
|
|
8975
9311
|
BaseAddEditComponent,
|
|
8976
|
-
CvaQuillEditorComponent
|
|
9312
|
+
CvaQuillEditorComponent,
|
|
9313
|
+
CvaLiveSearchingComponent], imports: [CommonModule,
|
|
8977
9314
|
FormsModule,
|
|
8978
9315
|
ReactiveFormsModule,
|
|
8979
|
-
AngularMaterialModule, i1$4.RouterModule, i1.TranslateModule, i4$
|
|
9316
|
+
AngularMaterialModule, i1$4.RouterModule, i1.TranslateModule, i4$4.QuillModule, FlexLayoutModule], exports: [CvaTableComponent,
|
|
8980
9317
|
CvaSmartTableComponent,
|
|
8981
9318
|
CvaInputComponent,
|
|
8982
9319
|
CvaCounterInputComponent,
|
|
@@ -9002,7 +9339,8 @@ class NiceComponentLibraryModule {
|
|
|
9002
9339
|
CvaDialogImportFileComponent,
|
|
9003
9340
|
BaseSearchComponent,
|
|
9004
9341
|
BaseAddEditComponent,
|
|
9005
|
-
CvaQuillEditorComponent
|
|
9342
|
+
CvaQuillEditorComponent,
|
|
9343
|
+
CvaLiveSearchingComponent] });
|
|
9006
9344
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: NiceComponentLibraryModule, imports: [CommonModule,
|
|
9007
9345
|
FormsModule,
|
|
9008
9346
|
ReactiveFormsModule,
|
|
@@ -9054,6 +9392,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
9054
9392
|
BaseSearchComponent,
|
|
9055
9393
|
BaseAddEditComponent,
|
|
9056
9394
|
CvaQuillEditorComponent,
|
|
9395
|
+
CvaLiveSearchingComponent,
|
|
9057
9396
|
],
|
|
9058
9397
|
exports: [
|
|
9059
9398
|
CvaTableComponent,
|
|
@@ -9083,6 +9422,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
9083
9422
|
BaseSearchComponent,
|
|
9084
9423
|
BaseAddEditComponent,
|
|
9085
9424
|
CvaQuillEditorComponent,
|
|
9425
|
+
CvaLiveSearchingComponent,
|
|
9086
9426
|
],
|
|
9087
9427
|
schemas: [
|
|
9088
9428
|
NO_ERRORS_SCHEMA,
|
|
@@ -9099,5 +9439,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
9099
9439
|
* Generated bundle index. Do not edit.
|
|
9100
9440
|
*/
|
|
9101
9441
|
|
|
9102
|
-
export { ActionTypeEnum, AlignEnum, ApiService, AuthoritiesResolverService, AuthoritiesService, Authority, BaseAddEditComponent, BaseModel, BaseSearchComponent, BaseStatusEnum, BaseTableComponent, BreadCrumbModel, ButtonClickEvent, ButtonModel, CheckboxModel, ColumnModel, ColumnTypeEnum, CustomDialogDataConfigModel, CvaBreadcrumbComponent, CvaCounterInputComponent, CvaCustomDialogComponent, CvaDatePickerComponent, CvaDialogImportFileComponent, CvaFlatTreeComponent, CvaFlatTreeNodeLeftComponent, CvaFlatTreeNodeRightComponent, CvaInputComponent, CvaLoaderComponent, CvaMultiSelectAutocomplete, CvaMultiUploadComponent, CvaMultiUploadImgComponent, CvaQuillEditorComponent, CvaRadiobuttonComponent, CvaRangeDatePickerComponent, CvaSmartTableComponent, CvaTableComponent, CvaTreeComponent, CvaUploadFileComponent, DateUtilService, DialogImportFileConfigModel, DialogTypeEnum, DragDropDirective, FileTypeEnum, FlatTreeConfigModel, FlatTreeModel, FlatTreeNodeModel, FormStateService, FormatInputDirective, IconTypeEnum, InjectTokenNextSolutionsConfig, JsogHttpInterceptor, LoaderInterceptor, LoaderService, MenuModel, MultiTranslateHttpLoader, NavigatorModel, NiceComponentLibraryModule, OAuth2AuthenticationDto, PatternDirective, PermissionModel, Principal, RangeDatePickerModel, RoleModel, SecureImgPipe, SelectModel, SingletonTranslateService, StylePaginatorDirective, TableFooterModel, TablePagingRequestModel, TablePagingResponseModel, TableService, UIState, UploadModel, UtilsService, ValidatorService };
|
|
9442
|
+
export { ActionTypeEnum, AlignEnum, ApiService, AuthoritiesResolverService, AuthoritiesService, Authority, BaseAddEditComponent, BaseModel, BaseSearchComponent, BaseStatusEnum, BaseTableComponent, BreadCrumbModel, ButtonClickEvent, ButtonModel, CheckboxModel, ColumnModel, ColumnTypeEnum, CustomDialogDataConfigModel, CvaBreadcrumbComponent, CvaCounterInputComponent, CvaCustomDialogComponent, CvaDatePickerComponent, CvaDialogImportFileComponent, CvaFlatTreeComponent, CvaFlatTreeNodeLeftComponent, CvaFlatTreeNodeRightComponent, CvaInputComponent, CvaLiveSearchingComponent, CvaLoaderComponent, CvaMultiSelectAutocomplete, CvaMultiUploadComponent, CvaMultiUploadImgComponent, CvaQuillEditorComponent, CvaRadiobuttonComponent, CvaRangeDatePickerComponent, CvaSmartTableComponent, CvaTableComponent, CvaTreeComponent, CvaUploadFileComponent, DateUtilService, DialogImportFileConfigModel, DialogTypeEnum, DragDropDirective, FileTypeEnum, FlatTreeConfigModel, FlatTreeModel, FlatTreeNodeModel, FormStateService, FormatInputDirective, IconTypeEnum, InjectTokenNextSolutionsConfig, JsogHttpInterceptor, LoaderInterceptor, LoaderService, MenuModel, MultiTranslateHttpLoader, NavigatorModel, NiceComponentLibraryModule, OAuth2AuthenticationDto, PatternDirective, PermissionModel, Principal, RangeDatePickerModel, RoleModel, SecureImgPipe, SelectModel, SingletonTranslateService, StylePaginatorDirective, TableFooterModel, TablePagingRequestModel, TablePagingResponseModel, TableService, UIState, UploadModel, UtilsService, ValidatorService };
|
|
9103
9443
|
//# sourceMappingURL=c10t-nice-component-library.mjs.map
|