@c10t/nice-component-library 0.0.21 → 0.0.22
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-counter-input.component.d.ts +4 -2
- package/components/cva-form-control.d.ts +4 -0
- package/components/cva-input.component.d.ts +9 -5
- package/components/cva-live-searching.component.d.ts +4 -2
- package/components/cva-multi-select-autocomplete.d.ts +4 -2
- package/components/datepicker/cva-date-picker.component.d.ts +7 -2
- package/components/datepicker/cva-range-date-picker.component.d.ts +6 -2
- package/components/table/cva-smart-table.component.d.ts +7 -2
- package/directives/numeric-input-format.d.ts +7 -0
- package/directives/pattern.directive.d.ts +2 -2
- package/enums/column-type.enum.d.ts +1 -0
- package/fesm2022/c10t-nice-component-library.mjs +408 -309
- package/fesm2022/c10t-nice-component-library.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/services/validator.service.d.ts +3 -3
|
@@ -3,20 +3,20 @@ import { FormGroup, FormArray, FormControl, Validators, NgControl, NG_VALUE_ACCE
|
|
|
3
3
|
import * as i1$3 from '@angular/common/http';
|
|
4
4
|
import { HttpParams, HttpHeaders, HttpResponse, HttpResponseBase } from '@angular/common/http';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { InjectionToken, Self, Optional, Inject, Component, Injectable, Directive, EventEmitter, Output, Input, Host, Pipe, HostListener, forwardRef, ViewChild, HostBinding, ViewEncapsulation, NgModule, NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
6
|
+
import { InjectionToken, Self, Optional, Inject, Component, Injectable, Directive, EventEmitter, Output, Input, Host, Pipe, HostListener, forwardRef, ViewChild, ViewChildren, HostBinding, ViewEncapsulation, NgModule, NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
7
7
|
import * as i1$1 from '@angular/material/dialog';
|
|
8
8
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
9
9
|
import * as i1 from '@ngx-translate/core';
|
|
10
10
|
import { TranslateModule } from '@ngx-translate/core';
|
|
11
11
|
import * as i2 from '@angular/common';
|
|
12
|
-
import { CommonModule } from '@angular/common';
|
|
12
|
+
import { formatNumber, CommonModule } from '@angular/common';
|
|
13
13
|
import * as i3 from '@angular/material/button';
|
|
14
14
|
import { MatButtonModule } from '@angular/material/button';
|
|
15
15
|
import * as i6 from '@angular/material/form-field';
|
|
16
16
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
17
|
-
import * as
|
|
17
|
+
import * as i8 from '@angular/material/input';
|
|
18
18
|
import { MAT_INPUT_VALUE_ACCESSOR, MatInputModule } from '@angular/material/input';
|
|
19
|
-
import * as i8 from '@angular/flex-layout/flex';
|
|
19
|
+
import * as i8$1 from '@angular/flex-layout/flex';
|
|
20
20
|
import * as i3$1 from 'ngx-toastr';
|
|
21
21
|
import { BehaviorSubject, Subject, of, forkJoin, debounceTime, distinctUntilChanged, filter, tap, switchMap, throwError } from 'rxjs';
|
|
22
22
|
import * as i5 from '@angular/material/table';
|
|
@@ -27,20 +27,20 @@ import * as i2$1 from 'ngx-filesaver';
|
|
|
27
27
|
import { catchError, map, finalize } from 'rxjs/operators';
|
|
28
28
|
import * as i1$5 from '@angular/material/paginator';
|
|
29
29
|
import { MatPaginatorIntl, MatPaginatorModule } from '@angular/material/paginator';
|
|
30
|
-
import * as i4
|
|
30
|
+
import * as i4 from '@angular/material/checkbox';
|
|
31
31
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
32
32
|
import * as i7 from '@angular/material/icon';
|
|
33
33
|
import { MatIconModule } from '@angular/material/icon';
|
|
34
|
-
import * as i8$
|
|
34
|
+
import * as i8$2 from '@angular/material/tooltip';
|
|
35
35
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
36
36
|
import * as i9 from '@angular/flex-layout/extended';
|
|
37
37
|
import * as i7$1 from '@angular/material/menu';
|
|
38
38
|
import { MatMenuModule } from '@angular/material/menu';
|
|
39
39
|
import * as i2$2 from '@angular/platform-browser';
|
|
40
|
-
import * as
|
|
41
|
-
import * as i4$
|
|
40
|
+
import * as i7$2 from '@angular/cdk/text-field';
|
|
41
|
+
import * as i4$1 from '@angular/material/core';
|
|
42
42
|
import { NativeDateAdapter, DateAdapter, MAT_DATE_FORMATS, MatRippleModule, MatCommonModule } from '@angular/material/core';
|
|
43
|
-
import * as i5$
|
|
43
|
+
import * as i5$1 from '@angular/material/datepicker';
|
|
44
44
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
45
45
|
import * as i10 from '@angular/cdk/scrolling';
|
|
46
46
|
import { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';
|
|
@@ -57,10 +57,10 @@ import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
|
57
57
|
import { NestedTreeControl, FlatTreeControl, CdkTreeModule, CdkTree, CdkTreeNode } from '@angular/cdk/tree';
|
|
58
58
|
import * as i6$1 from '@angular/material/tree';
|
|
59
59
|
import { MatTreeNestedDataSource, MatTreeFlattener, MatTreeFlatDataSource, MatTreeModule } from '@angular/material/tree';
|
|
60
|
-
import * as i4$
|
|
60
|
+
import * as i4$2 from '@angular/material/radio';
|
|
61
61
|
import { MatRadioModule } from '@angular/material/radio';
|
|
62
62
|
import * as i6$2 from '@angular/material/divider';
|
|
63
|
-
import * as i4$
|
|
63
|
+
import * as i4$3 from 'ngx-quill';
|
|
64
64
|
import { QuillModule } from 'ngx-quill';
|
|
65
65
|
import * as i1$6 from 'jsog-typescript';
|
|
66
66
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
@@ -143,6 +143,7 @@ var ColumnTypeEnum;
|
|
|
143
143
|
(function (ColumnTypeEnum) {
|
|
144
144
|
ColumnTypeEnum["VIEW"] = "VIEW";
|
|
145
145
|
ColumnTypeEnum["INPUT_COUNTER"] = "INPUT_COUNTER";
|
|
146
|
+
ColumnTypeEnum["INPUT_CURRENCY"] = "INPUT_CURRENCY";
|
|
146
147
|
ColumnTypeEnum["DATE_PICKER"] = "DATE_PICKER";
|
|
147
148
|
ColumnTypeEnum["MULTI_SELECT_AUTOCOMPLETE"] = "MULTI_SELECT_AUTOCOMPLETE";
|
|
148
149
|
ColumnTypeEnum["CHECKBOX"] = "CHECKBOX";
|
|
@@ -680,7 +681,7 @@ class CvaCustomDialogComponent {
|
|
|
680
681
|
</button>
|
|
681
682
|
</div>
|
|
682
683
|
|
|
683
|
-
`, isInline: true, dependencies: [{ 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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { 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.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { 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:
|
|
684
|
+
`, isInline: true, dependencies: [{ 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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { 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.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { 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: i8.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: "directive", type: i8$1.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$1.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: i8$1.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" }] });
|
|
684
685
|
}
|
|
685
686
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaCustomDialogComponent, decorators: [{
|
|
686
687
|
type: Component,
|
|
@@ -1577,7 +1578,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
1577
1578
|
|
|
1578
1579
|
class ValidatorService {
|
|
1579
1580
|
static invalid(control) {
|
|
1580
|
-
|
|
1581
|
+
if (!control || !control.dirty) {
|
|
1582
|
+
return false;
|
|
1583
|
+
}
|
|
1584
|
+
return control.invalid || !!control.errors;
|
|
1581
1585
|
}
|
|
1582
1586
|
static getErrorMessage(control, errorMessages) {
|
|
1583
1587
|
if (!control) {
|
|
@@ -1653,13 +1657,13 @@ class ValidatorService {
|
|
|
1653
1657
|
if (conditions.required) {
|
|
1654
1658
|
validationFns.push(Validators.required);
|
|
1655
1659
|
}
|
|
1656
|
-
if (conditions.min != undefined
|
|
1660
|
+
if (conditions.min != undefined) {
|
|
1657
1661
|
const validationMin = (control) => {
|
|
1658
1662
|
return ValidatorService.customMinValueNsCounterInput(control.value, ValidatorService.getMinMaxDynamic(conditions.min));
|
|
1659
1663
|
};
|
|
1660
1664
|
validationFns.push(validationMin);
|
|
1661
1665
|
}
|
|
1662
|
-
if (conditions.max != undefined
|
|
1666
|
+
if (conditions.max != undefined) {
|
|
1663
1667
|
const validationMax = (control) => {
|
|
1664
1668
|
return ValidatorService.customMaxValueNsCounterInput(control.value, ValidatorService.getMinMaxDynamic(conditions.max));
|
|
1665
1669
|
};
|
|
@@ -1672,12 +1676,6 @@ class ValidatorService {
|
|
|
1672
1676
|
if (conditions.required) {
|
|
1673
1677
|
validationFns.push(Validators.required);
|
|
1674
1678
|
}
|
|
1675
|
-
// if (conditions.min) {
|
|
1676
|
-
// validationFns.push(new NsValidator({minDate: conditions.min}).customMinDateValidator());
|
|
1677
|
-
// }
|
|
1678
|
-
// if (conditions.max) {
|
|
1679
|
-
// validationFns.push(new NsValidator({maxDate: conditions.max}).customMaxDateValidator());
|
|
1680
|
-
// }
|
|
1681
1679
|
return validationFns;
|
|
1682
1680
|
}
|
|
1683
1681
|
static getRequiredDynamic(isRequired) {
|
|
@@ -1685,8 +1683,6 @@ class ValidatorService {
|
|
|
1685
1683
|
}
|
|
1686
1684
|
static generateNsDateRangePickerValidators(conditions) {
|
|
1687
1685
|
const validationFns = [];
|
|
1688
|
-
// if (NsValidator.getRequiredDynamic(conditions.requiredFromDate)
|
|
1689
|
-
// || NsValidator.getRequiredDynamic(conditions.requiredToDate)) {
|
|
1690
1686
|
const validation = (control) => {
|
|
1691
1687
|
const range = control.value;
|
|
1692
1688
|
if (!range?.fromDate && ValidatorService.getRequiredDynamic(conditions.requiredFromDate)) {
|
|
@@ -1698,12 +1694,8 @@ class ValidatorService {
|
|
|
1698
1694
|
return null;
|
|
1699
1695
|
};
|
|
1700
1696
|
validationFns.push(validation);
|
|
1701
|
-
// }
|
|
1702
1697
|
return validationFns;
|
|
1703
1698
|
}
|
|
1704
|
-
// customMinDateValidator(): ValidatorFn {
|
|
1705
|
-
// return this.customMinDateValidatorControl;
|
|
1706
|
-
// }
|
|
1707
1699
|
static customMinDateValidatorControl(value, minDate) {
|
|
1708
1700
|
if (!minDate || !value) {
|
|
1709
1701
|
return null;
|
|
@@ -1714,9 +1706,6 @@ class ValidatorService {
|
|
|
1714
1706
|
}
|
|
1715
1707
|
return null;
|
|
1716
1708
|
}
|
|
1717
|
-
// customMaxDateValidator(): ValidatorFn {
|
|
1718
|
-
// return this.customMaxDateValidatorControl;
|
|
1719
|
-
// }
|
|
1720
1709
|
static customMaxDateValidatorControl(value, maxDate) {
|
|
1721
1710
|
if (!maxDate || !value) {
|
|
1722
1711
|
return null;
|
|
@@ -1746,96 +1735,113 @@ class ValidatorService {
|
|
|
1746
1735
|
return null;
|
|
1747
1736
|
}
|
|
1748
1737
|
static generateNsSmartTableValidators(conditions) {
|
|
1749
|
-
|
|
1738
|
+
return (control) => {
|
|
1750
1739
|
let errors = null;
|
|
1751
|
-
if (control) {
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1740
|
+
if (!control) {
|
|
1741
|
+
return errors;
|
|
1742
|
+
}
|
|
1743
|
+
const controlValueLength = control.value ? control.value.length : 0;
|
|
1744
|
+
if (conditions.minRow > controlValueLength) {
|
|
1745
|
+
return { minRow: { valid: false, min: conditions.minRow, actual: controlValueLength } };
|
|
1746
|
+
}
|
|
1747
|
+
if (conditions.maxRow < controlValueLength) {
|
|
1748
|
+
return { maxRow: { valid: false, max: conditions.maxRow, actual: controlValueLength } };
|
|
1749
|
+
}
|
|
1750
|
+
if (!control.value) {
|
|
1751
|
+
return null;
|
|
1752
|
+
}
|
|
1753
|
+
control.value.forEach((row) => {
|
|
1754
|
+
if (errors || !conditions.columns) {
|
|
1755
|
+
return;
|
|
1761
1756
|
}
|
|
1762
|
-
|
|
1763
|
-
if (errors
|
|
1757
|
+
conditions.columns.forEach((column) => {
|
|
1758
|
+
if (errors) {
|
|
1764
1759
|
return;
|
|
1765
1760
|
}
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1761
|
+
const tempControl = new FormControl();
|
|
1762
|
+
tempControl.setValue(row[column.columnDef]);
|
|
1763
|
+
const columnType = TableService.getColumnType(column, row);
|
|
1764
|
+
if (columnType === ColumnTypeEnum.MULTI_SELECT_AUTOCOMPLETE) {
|
|
1765
|
+
if (ValidatorService.getRequired(column)) {
|
|
1766
|
+
tempControl.setValidators(Validators.required);
|
|
1769
1767
|
}
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1768
|
+
}
|
|
1769
|
+
else if (columnType === ColumnTypeEnum.INPUT_COUNTER) {
|
|
1770
|
+
tempControl.setValidators(ValidatorService.generateNsCounterInputValidators({
|
|
1771
|
+
required: ValidatorService.getRequired(column),
|
|
1772
|
+
min: null,
|
|
1773
|
+
max: null,
|
|
1774
|
+
isDecimal: ValidatorService.getIsDecimal(column),
|
|
1775
|
+
}));
|
|
1776
|
+
}
|
|
1777
|
+
else if (columnType === ColumnTypeEnum.INPUT_CURRENCY) {
|
|
1778
|
+
tempControl.setValidators(ValidatorService.generateNsCounterInputValidators({
|
|
1779
|
+
required: ValidatorService.getRequired(column),
|
|
1780
|
+
min: null,
|
|
1781
|
+
max: null,
|
|
1782
|
+
isDecimal: ValidatorService.getIsDecimal(column),
|
|
1783
|
+
}));
|
|
1784
|
+
}
|
|
1785
|
+
else if (columnType === ColumnTypeEnum.DATE_PICKER) {
|
|
1786
|
+
tempControl.setValidators(ValidatorService.generateNsDatePickerValidators({
|
|
1787
|
+
required: ValidatorService.getRequired(column),
|
|
1788
|
+
min: null,
|
|
1789
|
+
max: null,
|
|
1790
|
+
}));
|
|
1791
|
+
}
|
|
1792
|
+
else if (columnType === ColumnTypeEnum.INPUT) {
|
|
1793
|
+
tempControl.setValidators(ValidatorService.generateNsInputValidators({
|
|
1794
|
+
required: ValidatorService.getRequired(column),
|
|
1795
|
+
maxLength: column.max ? column.max(row) : undefined,
|
|
1796
|
+
minLength: column.min ? column.min(row) : undefined,
|
|
1797
|
+
pattern: undefined,
|
|
1798
|
+
}));
|
|
1799
|
+
}
|
|
1800
|
+
else if (columnType === ColumnTypeEnum.LIVE_SEARCHING) {
|
|
1801
|
+
tempControl.setValidators(ValidatorService.generateNsInputValidators({
|
|
1802
|
+
required: ValidatorService.getRequired(column),
|
|
1803
|
+
maxLength: column.max ? column.max(row) : undefined,
|
|
1804
|
+
minLength: column.min ? column.min(row) : undefined,
|
|
1805
|
+
pattern: undefined,
|
|
1806
|
+
}));
|
|
1807
|
+
}
|
|
1808
|
+
tempControl.updateValueAndValidity();
|
|
1809
|
+
if (columnType === ColumnTypeEnum.DATE_PICKER) {
|
|
1810
|
+
const errorsArr = [];
|
|
1811
|
+
if (tempControl.errors) {
|
|
1812
|
+
errorsArr.push(tempControl.errors);
|
|
1776
1813
|
}
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
required: ValidatorService.getRequired(column),
|
|
1780
|
-
min: null,
|
|
1781
|
-
max: null,
|
|
1782
|
-
isDecimal: ValidatorService.getIsDecimal(column),
|
|
1783
|
-
}));
|
|
1814
|
+
if (ValidatorService.customMinDateValidatorControl(tempControl.value, column.min ? column.min(row) : null)) {
|
|
1815
|
+
errorsArr.push(ValidatorService.customMinDateValidatorControl(tempControl.value, column.min ? column.min(row) : null));
|
|
1784
1816
|
}
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
required: ValidatorService.getRequired(column),
|
|
1788
|
-
min: null,
|
|
1789
|
-
max: null,
|
|
1790
|
-
}));
|
|
1817
|
+
if (ValidatorService.customMaxDateValidatorControl(tempControl.value, column.max ? column.max(row) : null)) {
|
|
1818
|
+
errorsArr.push(ValidatorService.customMaxDateValidatorControl(tempControl.value, column.max ? column.max(row) : null));
|
|
1791
1819
|
}
|
|
1792
|
-
|
|
1793
|
-
tempControl.
|
|
1794
|
-
required: ValidatorService.getRequired(column),
|
|
1795
|
-
maxLength: column.max ? column.max(row) : undefined,
|
|
1796
|
-
minLength: column.min ? column.min(row) : undefined,
|
|
1797
|
-
pattern: undefined,
|
|
1798
|
-
}));
|
|
1820
|
+
if (errorsArr.length > 0) {
|
|
1821
|
+
tempControl.setErrors(errorsArr);
|
|
1799
1822
|
}
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
}
|
|
1806
|
-
if (ValidatorService.customMinDateValidatorControl(tempControl.value, column.min ? column.min(row) : null)) {
|
|
1807
|
-
errorsArr.push(ValidatorService.customMinDateValidatorControl(tempControl.value, column.min ? column.min(row) : null));
|
|
1808
|
-
}
|
|
1809
|
-
if (ValidatorService.customMaxDateValidatorControl(tempControl.value, column.max ? column.max(row) : null)) {
|
|
1810
|
-
errorsArr.push(ValidatorService.customMaxDateValidatorControl(tempControl.value, column.max ? column.max(row) : null));
|
|
1811
|
-
}
|
|
1812
|
-
if (errorsArr.length > 0) {
|
|
1813
|
-
tempControl.setErrors(errorsArr);
|
|
1814
|
-
}
|
|
1823
|
+
}
|
|
1824
|
+
if (columnType === ColumnTypeEnum.INPUT_COUNTER || columnType === ColumnTypeEnum.INPUT_CURRENCY) {
|
|
1825
|
+
const errorsArr = [];
|
|
1826
|
+
if (tempControl.errors) {
|
|
1827
|
+
errorsArr.push(tempControl.errors);
|
|
1815
1828
|
}
|
|
1816
|
-
if (
|
|
1817
|
-
|
|
1818
|
-
if (tempControl.errors) {
|
|
1819
|
-
errorsArr.push(tempControl.errors);
|
|
1820
|
-
}
|
|
1821
|
-
if (ValidatorService.customMinValueNsCounterInput(tempControl.value, column.min ? column.min(row) : null)) {
|
|
1822
|
-
errorsArr.push(ValidatorService.customMinValueNsCounterInput(tempControl.value, column.min ? column.min(row) : null));
|
|
1823
|
-
}
|
|
1824
|
-
if (ValidatorService.customMaxValueNsCounterInput(tempControl.value, column.max ? column.max(row) : null)) {
|
|
1825
|
-
errorsArr.push(ValidatorService.customMaxValueNsCounterInput(tempControl.value, column.max ? column.max(row) : null));
|
|
1826
|
-
}
|
|
1827
|
-
if (errorsArr.length > 0) {
|
|
1828
|
-
tempControl.setErrors(errorsArr);
|
|
1829
|
-
}
|
|
1829
|
+
if (ValidatorService.customMinValueNsCounterInput(tempControl.value, column.min ? column.min(row) : null)) {
|
|
1830
|
+
errorsArr.push(ValidatorService.customMinValueNsCounterInput(tempControl.value, column.min ? column.min(row) : null));
|
|
1830
1831
|
}
|
|
1831
|
-
tempControl.
|
|
1832
|
-
|
|
1833
|
-
|
|
1832
|
+
if (ValidatorService.customMaxValueNsCounterInput(tempControl.value, column.max ? column.max(row) : null)) {
|
|
1833
|
+
errorsArr.push(ValidatorService.customMaxValueNsCounterInput(tempControl.value, column.max ? column.max(row) : null));
|
|
1834
|
+
}
|
|
1835
|
+
if (errorsArr.length > 0) {
|
|
1836
|
+
tempControl.setErrors(errorsArr);
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
tempControl.markAllAsTouched();
|
|
1840
|
+
errors = tempControl.errors;
|
|
1834
1841
|
});
|
|
1835
|
-
}
|
|
1842
|
+
});
|
|
1836
1843
|
return errors;
|
|
1837
1844
|
};
|
|
1838
|
-
return validator;
|
|
1839
1845
|
}
|
|
1840
1846
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ValidatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1841
1847
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ValidatorService, providedIn: 'root' });
|
|
@@ -1869,7 +1875,7 @@ class CvaCounterInputComponent {
|
|
|
1869
1875
|
onChange = new EventEmitter();
|
|
1870
1876
|
onEnter = new EventEmitter();
|
|
1871
1877
|
// Cái này là để gắn khi nó là FormControl trong 1 FormGroup
|
|
1872
|
-
formControl;
|
|
1878
|
+
formControl = null;
|
|
1873
1879
|
config;
|
|
1874
1880
|
constructor(injector, ngControl) {
|
|
1875
1881
|
this.injector = injector;
|
|
@@ -1889,6 +1895,9 @@ class CvaCounterInputComponent {
|
|
|
1889
1895
|
set counterValue(val) {
|
|
1890
1896
|
this.writeValue(val);
|
|
1891
1897
|
}
|
|
1898
|
+
getFormControl() {
|
|
1899
|
+
return this.formControl;
|
|
1900
|
+
}
|
|
1892
1901
|
ngOnChanges(changes) {
|
|
1893
1902
|
if ('value' in changes) {
|
|
1894
1903
|
this.value = changes.value.currentValue;
|
|
@@ -1910,7 +1919,7 @@ class CvaCounterInputComponent {
|
|
|
1910
1919
|
if (ngControl && !this.formControl) {
|
|
1911
1920
|
// Nếu là NsSmartTable thì phải tự new FormControl còn không thì cứ hóng parent FormControl về ^^
|
|
1912
1921
|
if (this.isFormControl) {
|
|
1913
|
-
this.formControl = ngControl.control ? ngControl.control :
|
|
1922
|
+
this.formControl = ngControl.control ? ngControl.control : null;
|
|
1914
1923
|
}
|
|
1915
1924
|
else {
|
|
1916
1925
|
this.formControl = new FormControl();
|
|
@@ -1974,22 +1983,22 @@ class CvaCounterInputComponent {
|
|
|
1974
1983
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaCounterInputComponent, isStandalone: false, selector: "cva-counter-input", inputs: { label: "label", placeholder: "placeholder", suffixText: "suffixText", hint: "hint", value: "value", disabled: "disabled", required: "required", errorMessages: "errorMessages", min: "min", max: "max", error: "error", isDecimal: "isDecimal", isLabelOutside: "isLabelOutside", isFloatLabel: "isFloatLabel", percentOfLabelOutside: "percentOfLabelOutside", alignNumber: "alignNumber", isFormControl: "isFormControl" }, outputs: { onChange: "onChange", onEnter: "onEnter" }, usesOnChanges: true, ngImport: i0, template: `
|
|
1975
1984
|
<!-- css labelOutside trong base.theme-->
|
|
1976
1985
|
<div class="cva-counter-input"
|
|
1977
|
-
[ngClass]="{'labelOutside':
|
|
1986
|
+
[ngClass]="{'labelOutside': isLabelOutside, 'float_label': isFloatLabel && !isLabelOutside}"
|
|
1978
1987
|
fxLayout="row" fxLayout.lt-sm="row wrap">
|
|
1979
1988
|
<mat-label *ngIf="isLabelOutside" class="label_width"
|
|
1980
1989
|
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
1981
1990
|
<div class="label">
|
|
1982
1991
|
<div>
|
|
1983
1992
|
{{ (label ? label : placeholder) | translate }}<span
|
|
1984
|
-
class="required-label-outside">{{
|
|
1993
|
+
class="required-label-outside">{{ required ? '*' : '' }}</span>
|
|
1985
1994
|
</div>
|
|
1986
1995
|
</div>
|
|
1987
1996
|
</mat-label>
|
|
1988
1997
|
<mat-form-field *ngIf="isShowControl()"
|
|
1989
|
-
appearance="outline" [floatLabel]="
|
|
1998
|
+
appearance="outline" [floatLabel]="isFloatLabel ? 'always' : 'auto'"
|
|
1990
1999
|
[hideRequiredMarker]="!isFloatLabel"
|
|
1991
2000
|
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
1992
|
-
<mat-label *ngIf="!isLabelOutside &&
|
|
2001
|
+
<mat-label *ngIf="!isLabelOutside && isFloatLabel">{{ (label ? label : placeholder) | translate }}</mat-label>
|
|
1993
2002
|
<div class="input-area">
|
|
1994
2003
|
<input matInput type="number" [(ngModel)]="counterValue" #nsCounterInput="ngModel"
|
|
1995
2004
|
[style.text-align]="alignNumber"
|
|
@@ -2005,7 +2014,7 @@ class CvaCounterInputComponent {
|
|
|
2005
2014
|
{{ hint | translate }}
|
|
2006
2015
|
</mat-hint>
|
|
2007
2016
|
<mat-hint style="color: red" *ngIf="NsValidator.invalid(formControl)">
|
|
2008
|
-
{{ NsValidator.
|
|
2017
|
+
{{ NsValidator.getErrorMessageV1(formControl, errorMessages).msg | translate: NsValidator.getErrorMessageV1(formControl, errorMessages).params }}
|
|
2009
2018
|
</mat-hint>
|
|
2010
2019
|
</mat-form-field>
|
|
2011
2020
|
|
|
@@ -2020,7 +2029,7 @@ class CvaCounterInputComponent {
|
|
|
2020
2029
|
</div>
|
|
2021
2030
|
</ng-container>
|
|
2022
2031
|
</div>
|
|
2023
|
-
`, 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: "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.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { 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.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$2.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1$2.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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:
|
|
2032
|
+
`, 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: "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.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { 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.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$2.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1$2.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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: i8.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: "directive", type: i8$1.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$1.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" }] });
|
|
2024
2033
|
}
|
|
2025
2034
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaCounterInputComponent, decorators: [{
|
|
2026
2035
|
type: Component,
|
|
@@ -2030,22 +2039,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
2030
2039
|
template: `
|
|
2031
2040
|
<!-- css labelOutside trong base.theme-->
|
|
2032
2041
|
<div class="cva-counter-input"
|
|
2033
|
-
[ngClass]="{'labelOutside':
|
|
2042
|
+
[ngClass]="{'labelOutside': isLabelOutside, 'float_label': isFloatLabel && !isLabelOutside}"
|
|
2034
2043
|
fxLayout="row" fxLayout.lt-sm="row wrap">
|
|
2035
2044
|
<mat-label *ngIf="isLabelOutside" class="label_width"
|
|
2036
2045
|
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
2037
2046
|
<div class="label">
|
|
2038
2047
|
<div>
|
|
2039
2048
|
{{ (label ? label : placeholder) | translate }}<span
|
|
2040
|
-
class="required-label-outside">{{
|
|
2049
|
+
class="required-label-outside">{{ required ? '*' : '' }}</span>
|
|
2041
2050
|
</div>
|
|
2042
2051
|
</div>
|
|
2043
2052
|
</mat-label>
|
|
2044
2053
|
<mat-form-field *ngIf="isShowControl()"
|
|
2045
|
-
appearance="outline" [floatLabel]="
|
|
2054
|
+
appearance="outline" [floatLabel]="isFloatLabel ? 'always' : 'auto'"
|
|
2046
2055
|
[hideRequiredMarker]="!isFloatLabel"
|
|
2047
2056
|
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
2048
|
-
<mat-label *ngIf="!isLabelOutside &&
|
|
2057
|
+
<mat-label *ngIf="!isLabelOutside && isFloatLabel">{{ (label ? label : placeholder) | translate }}</mat-label>
|
|
2049
2058
|
<div class="input-area">
|
|
2050
2059
|
<input matInput type="number" [(ngModel)]="counterValue" #nsCounterInput="ngModel"
|
|
2051
2060
|
[style.text-align]="alignNumber"
|
|
@@ -2061,7 +2070,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
2061
2070
|
{{ hint | translate }}
|
|
2062
2071
|
</mat-hint>
|
|
2063
2072
|
<mat-hint style="color: red" *ngIf="NsValidator.invalid(formControl)">
|
|
2064
|
-
{{ NsValidator.
|
|
2073
|
+
{{ NsValidator.getErrorMessageV1(formControl, errorMessages).msg | translate: NsValidator.getErrorMessageV1(formControl, errorMessages).params }}
|
|
2065
2074
|
</mat-hint>
|
|
2066
2075
|
</mat-form-field>
|
|
2067
2076
|
|
|
@@ -2352,7 +2361,7 @@ class CvaHeaderExpandButtonComponent {
|
|
|
2352
2361
|
</div>
|
|
2353
2362
|
</mat-menu>
|
|
2354
2363
|
|
|
2355
|
-
`, 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: "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.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4
|
|
2364
|
+
`, 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: "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.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4.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: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i7$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i7$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "directive", type: i8$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: i8$1.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$1.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: "pipe", type: i1.TranslatePipe, name: "translate" }] });
|
|
2356
2365
|
}
|
|
2357
2366
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaHeaderExpandButtonComponent, decorators: [{
|
|
2358
2367
|
type: Component,
|
|
@@ -2789,7 +2798,7 @@ class CvaTableComponent {
|
|
|
2789
2798
|
</div>
|
|
2790
2799
|
</div>
|
|
2791
2800
|
</div>
|
|
2792
|
-
`, 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: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { 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.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4
|
|
2801
|
+
`, 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: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { 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.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4.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.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5.MatCell, selector: "mat-cell, td[mat-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: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i1$5.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { 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$1.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$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i8$1.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: 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: "directive", type: StylePaginatorDirective, selector: "[style-paginator]", inputs: ["showTotalPages", "paging"], outputs: ["pagingChangeEvent"] }, { kind: "component", type: CvaHeaderExpandButtonComponent, selector: "cva-header-expand-button", inputs: ["expandHeaderButton", "columns", "moduleName"], outputs: ["onChange"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "pipe", type: SecureImgPipe, name: "secure" }] });
|
|
2793
2802
|
}
|
|
2794
2803
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaTableComponent, decorators: [{
|
|
2795
2804
|
type: Component,
|
|
@@ -3020,8 +3029,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
3020
3029
|
type: Input
|
|
3021
3030
|
}] } });
|
|
3022
3031
|
|
|
3032
|
+
class NumericInputFormat {
|
|
3033
|
+
locale = 'en';
|
|
3034
|
+
decimalMarker = '.';
|
|
3035
|
+
constructor() {
|
|
3036
|
+
}
|
|
3037
|
+
unformatValue(value) {
|
|
3038
|
+
const regExp = new RegExp(`[^\\d${this.decimalMarker}-]`, 'g');
|
|
3039
|
+
// Separate value on before and after decimal marker
|
|
3040
|
+
const [integer, decimal] = value.replace(regExp, '').split(this.decimalMarker);
|
|
3041
|
+
// Send non localized value, with dot as decimalMarker to API
|
|
3042
|
+
return decimal ? integer.concat('.', decimal) : integer;
|
|
3043
|
+
}
|
|
3044
|
+
formatValue(value) {
|
|
3045
|
+
if (value === null || value === undefined) {
|
|
3046
|
+
return '';
|
|
3047
|
+
}
|
|
3048
|
+
value += '';
|
|
3049
|
+
const [thousandSeparator, decimalMarker] = formatNumber(1000.99, this.locale).replace(/\d/g, '');
|
|
3050
|
+
this.decimalMarker = decimalMarker;
|
|
3051
|
+
// Here value should always come with . as decimal marker thus any other behavior is bug
|
|
3052
|
+
const [integer, decimal] = value.toString().split('.');
|
|
3053
|
+
// console.log('4');
|
|
3054
|
+
// Group every three elements, and add thousandSeparator after them
|
|
3055
|
+
const v = (Number(integer) + '').replace(/\B(?=(\d{3})+(?!\d))/g, thousandSeparator);
|
|
3056
|
+
return Number(decimal) ? v.concat('.', decimal) : (integer === '' ? '' : v);
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3023
3060
|
class PatternDirective {
|
|
3024
3061
|
el;
|
|
3062
|
+
$regPatternString = '';
|
|
3063
|
+
$regPattern = new RegExp('');
|
|
3064
|
+
inputElement;
|
|
3025
3065
|
navigationKeys = [
|
|
3026
3066
|
'Backspace',
|
|
3027
3067
|
'Delete',
|
|
@@ -3034,21 +3074,18 @@ class PatternDirective {
|
|
|
3034
3074
|
'ArrowRight',
|
|
3035
3075
|
'Clear',
|
|
3036
3076
|
'Copy',
|
|
3037
|
-
'Paste'
|
|
3077
|
+
'Paste',
|
|
3038
3078
|
];
|
|
3079
|
+
constructor(el) {
|
|
3080
|
+
this.el = el;
|
|
3081
|
+
this.inputElement = el.nativeElement;
|
|
3082
|
+
}
|
|
3039
3083
|
set regPattern(reg) {
|
|
3040
3084
|
if (reg) {
|
|
3041
3085
|
this.$regPatternString = reg;
|
|
3042
3086
|
this.$regPattern = new RegExp(reg);
|
|
3043
3087
|
}
|
|
3044
3088
|
}
|
|
3045
|
-
$regPatternString = '';
|
|
3046
|
-
$regPattern = new RegExp('');
|
|
3047
|
-
inputElement;
|
|
3048
|
-
constructor(el) {
|
|
3049
|
-
this.el = el;
|
|
3050
|
-
this.inputElement = el.nativeElement;
|
|
3051
|
-
}
|
|
3052
3089
|
// @Output() valueChange = new EventEmitter()
|
|
3053
3090
|
// @HostListener('input', ['$event']) onInputChange(event: any) {
|
|
3054
3091
|
// const initalValue = this.el.nativeElement.value;
|
|
@@ -3080,7 +3117,7 @@ class PatternDirective {
|
|
|
3080
3117
|
// ) {
|
|
3081
3118
|
// e.preventDefault();
|
|
3082
3119
|
// }
|
|
3083
|
-
if (!e.key
|
|
3120
|
+
if (!e.key?.match(this.$regPattern)) {
|
|
3084
3121
|
e.preventDefault();
|
|
3085
3122
|
return;
|
|
3086
3123
|
}
|
|
@@ -3287,6 +3324,7 @@ class CvaInputComponent {
|
|
|
3287
3324
|
isFloatLabel = true;
|
|
3288
3325
|
minLength;
|
|
3289
3326
|
maxLength;
|
|
3327
|
+
alignText = AlignEnum.LEFT;
|
|
3290
3328
|
onFocusStatus = false;
|
|
3291
3329
|
/* hiển thị suffix thay maxlength */
|
|
3292
3330
|
maxLengthDisplay;
|
|
@@ -3297,7 +3335,7 @@ class CvaInputComponent {
|
|
|
3297
3335
|
// Chỉ bằng false khi trong NsSmartTable thôi nhé @@
|
|
3298
3336
|
isFormControl = true;
|
|
3299
3337
|
formatFunc;
|
|
3300
|
-
|
|
3338
|
+
formControl = null;
|
|
3301
3339
|
config;
|
|
3302
3340
|
constructor(injector, ngControl) {
|
|
3303
3341
|
this.injector = injector;
|
|
@@ -3316,13 +3354,8 @@ class CvaInputComponent {
|
|
|
3316
3354
|
set textValue(val) {
|
|
3317
3355
|
this.writeValue(val);
|
|
3318
3356
|
}
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
// const ngControl = this.injector.get(NgControl);
|
|
3322
|
-
// if (ngControl) {
|
|
3323
|
-
// this.control = ngControl.control;
|
|
3324
|
-
// this.callValidator();
|
|
3325
|
-
// }
|
|
3357
|
+
getFormControl() {
|
|
3358
|
+
return this.formControl;
|
|
3326
3359
|
}
|
|
3327
3360
|
ngOnInit() {
|
|
3328
3361
|
this.callValidator();
|
|
@@ -3330,28 +3363,28 @@ class CvaInputComponent {
|
|
|
3330
3363
|
callValidator() {
|
|
3331
3364
|
const ngControl = this.injector.get(NgControl);
|
|
3332
3365
|
// Nếu parent FormControl khởi tạo xong và formControl chưa có giá trị lưu
|
|
3333
|
-
if (ngControl && !this.
|
|
3366
|
+
if (ngControl && !this.formControl) {
|
|
3334
3367
|
// Nếu là NsSmartTable thì phải tự new FormControl còn không thì cứ hóng parent FormControl về ^^
|
|
3335
3368
|
if (this.isFormControl) {
|
|
3336
|
-
this.
|
|
3369
|
+
this.formControl = ngControl.control ? ngControl.control : null;
|
|
3337
3370
|
}
|
|
3338
3371
|
else {
|
|
3339
|
-
this.
|
|
3372
|
+
this.formControl = new FormControl();
|
|
3340
3373
|
}
|
|
3341
3374
|
// Hành động này gắn validator vào this.formControl
|
|
3342
3375
|
// - Nếu this.formControl là parent FormControl thì sẽ show error lên FormGroup
|
|
3343
3376
|
// - Nếu this.formControl là new FormControl thì sẽ quét QueryList để check {errors}
|
|
3344
|
-
if (this.
|
|
3345
|
-
if (this.
|
|
3346
|
-
this.
|
|
3377
|
+
if (this.formControl) {
|
|
3378
|
+
if (this.formControl.validator) {
|
|
3379
|
+
this.formControl.setValidators([...ValidatorService.generateNsInputValidators({
|
|
3347
3380
|
required: this.required,
|
|
3348
3381
|
minLength: this.minLength,
|
|
3349
3382
|
maxLength: this.maxLength,
|
|
3350
3383
|
pattern: this.pattern,
|
|
3351
|
-
}), this.
|
|
3384
|
+
}), this.formControl.validator]);
|
|
3352
3385
|
}
|
|
3353
3386
|
else {
|
|
3354
|
-
this.
|
|
3387
|
+
this.formControl.setValidators([...ValidatorService.generateNsInputValidators({
|
|
3355
3388
|
required: this.required,
|
|
3356
3389
|
minLength: this.minLength,
|
|
3357
3390
|
maxLength: this.maxLength,
|
|
@@ -3360,13 +3393,13 @@ class CvaInputComponent {
|
|
|
3360
3393
|
}
|
|
3361
3394
|
}
|
|
3362
3395
|
}
|
|
3363
|
-
if (this.
|
|
3396
|
+
if (this.formControl) {
|
|
3364
3397
|
// Nếu this.formControl thuộc NsSmartTable thì setValue lại
|
|
3365
3398
|
if (!this.isFormControl) {
|
|
3366
|
-
this.
|
|
3399
|
+
this.formControl.setValue(this.text);
|
|
3367
3400
|
}
|
|
3368
3401
|
// Nếu là parent FormControl rồi thì kệ
|
|
3369
|
-
this.
|
|
3402
|
+
this.formControl.updateValueAndValidity();
|
|
3370
3403
|
}
|
|
3371
3404
|
}
|
|
3372
3405
|
propagateChange = (_) => {
|
|
@@ -3415,32 +3448,36 @@ class CvaInputComponent {
|
|
|
3415
3448
|
isShowControl() {
|
|
3416
3449
|
return !this.disabled || (this.disabled && this.config && this.config.STYLE_DISABLE === 'CONTROL');
|
|
3417
3450
|
}
|
|
3451
|
+
onClear() {
|
|
3452
|
+
this.writeValue(null);
|
|
3453
|
+
}
|
|
3418
3454
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaInputComponent, deps: [{ token: i0.Injector }, { token: i1$2.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
3419
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaInputComponent, isStandalone: false, selector: "cva-input", inputs: { label: "label", name: "name", placeholder: "placeholder", hint: "hint", required: "required", disabled: "disabled", text: "text", type: "type", pattern: "pattern", errorMessages: "errorMessages", multiline: "multiline", isLabelOutside: "isLabelOutside", isFloatLabel: "isFloatLabel", minLength: "minLength", maxLength: "maxLength", maxLengthDisplay: "maxLengthDisplay", percentOfLabelOutside: "percentOfLabelOutside", suffixFontAwesomeClass: "suffixFontAwesomeClass", patternFilter: "patternFilter", isFormControl: "isFormControl", formatFunc: "formatFunc" }, outputs: { onChange: "onChange" }, ngImport: i0, template: `
|
|
3455
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaInputComponent, isStandalone: false, selector: "cva-input", inputs: { label: "label", name: "name", placeholder: "placeholder", hint: "hint", required: "required", disabled: "disabled", text: "text", type: "type", pattern: "pattern", errorMessages: "errorMessages", multiline: "multiline", isLabelOutside: "isLabelOutside", isFloatLabel: "isFloatLabel", minLength: "minLength", maxLength: "maxLength", alignText: "alignText", maxLengthDisplay: "maxLengthDisplay", percentOfLabelOutside: "percentOfLabelOutside", suffixFontAwesomeClass: "suffixFontAwesomeClass", patternFilter: "patternFilter", isFormControl: "isFormControl", formatFunc: "formatFunc" }, outputs: { onChange: "onChange" }, ngImport: i0, template: `
|
|
3420
3456
|
<!-- css labelOutside trong base.theme-->
|
|
3421
3457
|
<div class="cva-input"
|
|
3422
|
-
[ngClass]="{'labelOutside':
|
|
3423
|
-
'float_label':
|
|
3424
|
-
'text_area':
|
|
3458
|
+
[ngClass]="{'labelOutside': isLabelOutside,
|
|
3459
|
+
'float_label': isFloatLabel && !isLabelOutside,
|
|
3460
|
+
'text_area': this.multiline}"
|
|
3425
3461
|
fxLayout="row" fxLayout.lt-sm="row wrap">
|
|
3426
3462
|
<mat-label *ngIf="isLabelOutside" class="label_width"
|
|
3427
3463
|
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
3428
3464
|
<div class="label">
|
|
3429
3465
|
<div>
|
|
3430
3466
|
{{ (label ? label : placeholder) | translate }}<span
|
|
3431
|
-
class="required-label-outside">{{
|
|
3467
|
+
class="required-label-outside">{{ required ? '*' : '' }}</span>
|
|
3432
3468
|
</div>
|
|
3433
3469
|
</div>
|
|
3434
3470
|
</mat-label>
|
|
3435
3471
|
<mat-form-field *ngIf="isShowControl()"
|
|
3436
|
-
appearance="outline" [floatLabel]="
|
|
3472
|
+
appearance="outline" [floatLabel]="isFloatLabel ? 'always' : 'auto'"
|
|
3437
3473
|
[ngClass]="{'cva-input-multiline': multiline}"
|
|
3438
3474
|
[hideRequiredMarker]="!isFloatLabel"
|
|
3439
3475
|
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
3440
|
-
<mat-label *ngIf="!isLabelOutside &&
|
|
3476
|
+
<mat-label *ngIf="!isLabelOutside && isFloatLabel" [ngClass]="{'cva-input-multiline': multiline}">
|
|
3441
3477
|
{{ (label ? label : placeholder) | translate }}
|
|
3442
3478
|
</mat-label>
|
|
3443
3479
|
<input matInput placeholder="{{placeholder|translate}}" [type]="type" [(ngModel)]="textValue"
|
|
3480
|
+
[style.text-align]="alignText"
|
|
3444
3481
|
[pattern]="pattern"
|
|
3445
3482
|
minLength="{{minLength ? minLength : 0}}"
|
|
3446
3483
|
maxLength="{{maxLength ? maxLength : 524288}}"
|
|
@@ -3455,6 +3492,7 @@ class CvaInputComponent {
|
|
|
3455
3492
|
[regPattern]="patternFilter"
|
|
3456
3493
|
autocomplete="off">
|
|
3457
3494
|
<textarea matInput [(ngModel)]="textValue" placeholder="{{placeholder|translate}}"
|
|
3495
|
+
[style.text-align]="alignText"
|
|
3458
3496
|
[pattern]="pattern"
|
|
3459
3497
|
minLength="{{minLength ? minLength : 0}}"
|
|
3460
3498
|
maxLength="{{maxLength ? maxLength : 524288}}"
|
|
@@ -3469,9 +3507,13 @@ class CvaInputComponent {
|
|
|
3469
3507
|
<i *ngIf="!!suffixFontAwesomeClass" class="input-suffix {{suffixFontAwesomeClass}}" matSuffix></i>
|
|
3470
3508
|
<span *ngIf="onFocusStatus && (!!maxLength || !!maxLengthDisplay)" class="input-suffix"
|
|
3471
3509
|
matSuffix>{{ displayLength() }}</span>
|
|
3472
|
-
<mat-
|
|
3473
|
-
|
|
3474
|
-
|
|
3510
|
+
<button mat-icon-button color="warn" class="btnTextClear" matSuffix (click)="onClear()" [disabled]="disabled"
|
|
3511
|
+
type="button">
|
|
3512
|
+
<mat-icon>clear</mat-icon>
|
|
3513
|
+
</button>
|
|
3514
|
+
<mat-hint align="start" *ngIf="!NsValidator.invalid(formControl)">{{ hint | translate }}</mat-hint>
|
|
3515
|
+
<mat-hint style="color: red" align="start" *ngIf="NsValidator.invalid(formControl)">
|
|
3516
|
+
{{ NsValidator.getErrorMessageV1(formControl, errorMessages).msg | translate: NsValidator.getErrorMessageV1(formControl, errorMessages).params }}
|
|
3475
3517
|
</mat-hint>
|
|
3476
3518
|
</mat-form-field>
|
|
3477
3519
|
|
|
@@ -3486,7 +3528,7 @@ class CvaInputComponent {
|
|
|
3486
3528
|
</div>
|
|
3487
3529
|
</ng-container>
|
|
3488
3530
|
</div>
|
|
3489
|
-
`, 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: "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.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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:
|
|
3531
|
+
`, 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: "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.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { 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: 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: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8.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: "directive", type: i7$2.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { kind: "directive", type: i8$1.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$1.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: PatternDirective, selector: "[pattern-directive]", inputs: ["regPattern"] }, { kind: "directive", type: FormatInputDirective, selector: "[inputDirective]", inputs: ["inputDirective", "value"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
|
|
3490
3532
|
}
|
|
3491
3533
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaInputComponent, decorators: [{
|
|
3492
3534
|
type: Component,
|
|
@@ -3496,28 +3538,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
3496
3538
|
template: `
|
|
3497
3539
|
<!-- css labelOutside trong base.theme-->
|
|
3498
3540
|
<div class="cva-input"
|
|
3499
|
-
[ngClass]="{'labelOutside':
|
|
3500
|
-
'float_label':
|
|
3501
|
-
'text_area':
|
|
3541
|
+
[ngClass]="{'labelOutside': isLabelOutside,
|
|
3542
|
+
'float_label': isFloatLabel && !isLabelOutside,
|
|
3543
|
+
'text_area': this.multiline}"
|
|
3502
3544
|
fxLayout="row" fxLayout.lt-sm="row wrap">
|
|
3503
3545
|
<mat-label *ngIf="isLabelOutside" class="label_width"
|
|
3504
3546
|
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
3505
3547
|
<div class="label">
|
|
3506
3548
|
<div>
|
|
3507
3549
|
{{ (label ? label : placeholder) | translate }}<span
|
|
3508
|
-
class="required-label-outside">{{
|
|
3550
|
+
class="required-label-outside">{{ required ? '*' : '' }}</span>
|
|
3509
3551
|
</div>
|
|
3510
3552
|
</div>
|
|
3511
3553
|
</mat-label>
|
|
3512
3554
|
<mat-form-field *ngIf="isShowControl()"
|
|
3513
|
-
appearance="outline" [floatLabel]="
|
|
3555
|
+
appearance="outline" [floatLabel]="isFloatLabel ? 'always' : 'auto'"
|
|
3514
3556
|
[ngClass]="{'cva-input-multiline': multiline}"
|
|
3515
3557
|
[hideRequiredMarker]="!isFloatLabel"
|
|
3516
3558
|
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
3517
|
-
<mat-label *ngIf="!isLabelOutside &&
|
|
3559
|
+
<mat-label *ngIf="!isLabelOutside && isFloatLabel" [ngClass]="{'cva-input-multiline': multiline}">
|
|
3518
3560
|
{{ (label ? label : placeholder) | translate }}
|
|
3519
3561
|
</mat-label>
|
|
3520
3562
|
<input matInput placeholder="{{placeholder|translate}}" [type]="type" [(ngModel)]="textValue"
|
|
3563
|
+
[style.text-align]="alignText"
|
|
3521
3564
|
[pattern]="pattern"
|
|
3522
3565
|
minLength="{{minLength ? minLength : 0}}"
|
|
3523
3566
|
maxLength="{{maxLength ? maxLength : 524288}}"
|
|
@@ -3532,6 +3575,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
3532
3575
|
[regPattern]="patternFilter"
|
|
3533
3576
|
autocomplete="off">
|
|
3534
3577
|
<textarea matInput [(ngModel)]="textValue" placeholder="{{placeholder|translate}}"
|
|
3578
|
+
[style.text-align]="alignText"
|
|
3535
3579
|
[pattern]="pattern"
|
|
3536
3580
|
minLength="{{minLength ? minLength : 0}}"
|
|
3537
3581
|
maxLength="{{maxLength ? maxLength : 524288}}"
|
|
@@ -3546,9 +3590,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
3546
3590
|
<i *ngIf="!!suffixFontAwesomeClass" class="input-suffix {{suffixFontAwesomeClass}}" matSuffix></i>
|
|
3547
3591
|
<span *ngIf="onFocusStatus && (!!maxLength || !!maxLengthDisplay)" class="input-suffix"
|
|
3548
3592
|
matSuffix>{{ displayLength() }}</span>
|
|
3549
|
-
<mat-
|
|
3550
|
-
|
|
3551
|
-
|
|
3593
|
+
<button mat-icon-button color="warn" class="btnTextClear" matSuffix (click)="onClear()" [disabled]="disabled"
|
|
3594
|
+
type="button">
|
|
3595
|
+
<mat-icon>clear</mat-icon>
|
|
3596
|
+
</button>
|
|
3597
|
+
<mat-hint align="start" *ngIf="!NsValidator.invalid(formControl)">{{ hint | translate }}</mat-hint>
|
|
3598
|
+
<mat-hint style="color: red" align="start" *ngIf="NsValidator.invalid(formControl)">
|
|
3599
|
+
{{ NsValidator.getErrorMessageV1(formControl, errorMessages).msg | translate: NsValidator.getErrorMessageV1(formControl, errorMessages).params }}
|
|
3552
3600
|
</mat-hint>
|
|
3553
3601
|
</mat-form-field>
|
|
3554
3602
|
|
|
@@ -3601,6 +3649,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
3601
3649
|
type: Input
|
|
3602
3650
|
}], maxLength: [{
|
|
3603
3651
|
type: Input
|
|
3652
|
+
}], alignText: [{
|
|
3653
|
+
type: Input
|
|
3604
3654
|
}], maxLengthDisplay: [{
|
|
3605
3655
|
type: Input
|
|
3606
3656
|
}], percentOfLabelOutside: [{
|
|
@@ -3724,7 +3774,8 @@ class CvaDatePickerComponent {
|
|
|
3724
3774
|
config;
|
|
3725
3775
|
// Chỉ bằng false khi trong NsSmartTable thôi @@
|
|
3726
3776
|
isFormControl = true;
|
|
3727
|
-
formControl;
|
|
3777
|
+
formControl = null;
|
|
3778
|
+
datepicker;
|
|
3728
3779
|
constructor(dateServiceUtil, ngControl, injector) {
|
|
3729
3780
|
this.dateServiceUtil = dateServiceUtil;
|
|
3730
3781
|
this.injector = injector;
|
|
@@ -3749,6 +3800,9 @@ class CvaDatePickerComponent {
|
|
|
3749
3800
|
set datepickerValue(val) {
|
|
3750
3801
|
this.writeValue(val);
|
|
3751
3802
|
}
|
|
3803
|
+
getFormControl() {
|
|
3804
|
+
return this.formControl;
|
|
3805
|
+
}
|
|
3752
3806
|
ngOnInit() {
|
|
3753
3807
|
if (this.isShowControl()) {
|
|
3754
3808
|
this.callValidator();
|
|
@@ -3760,7 +3814,7 @@ class CvaDatePickerComponent {
|
|
|
3760
3814
|
if (ngControl && !this.formControl) {
|
|
3761
3815
|
// Nếu là NsSmartTable thì phải tự new FormControl còn không thì cứ hóng parent FormControl về ^^
|
|
3762
3816
|
if (this.isFormControl) {
|
|
3763
|
-
this.formControl = ngControl.control ? ngControl.control :
|
|
3817
|
+
this.formControl = ngControl.control ? ngControl.control : null;
|
|
3764
3818
|
}
|
|
3765
3819
|
else {
|
|
3766
3820
|
this.formControl = new FormControl();
|
|
@@ -3865,6 +3919,12 @@ class CvaDatePickerComponent {
|
|
|
3865
3919
|
isShowControl() {
|
|
3866
3920
|
return !this.disabled || (this.disabled && this.config && this.config.STYLE_DISABLE === 'CONTROL');
|
|
3867
3921
|
}
|
|
3922
|
+
openDatepicker(event) {
|
|
3923
|
+
if (!this.disabled && this.datepicker) {
|
|
3924
|
+
event.stopPropagation();
|
|
3925
|
+
this.datepicker.open();
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3868
3928
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaDatePickerComponent, deps: [{ token: DateUtilService }, { token: i1$2.NgControl, optional: true, self: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
3869
3929
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaDatePickerComponent, isStandalone: false, selector: "cva-date-picker", inputs: { label: "label", placeholder: "placeholder", value: "value", disabled: "disabled", required: "required", minDate: "minDate", maxDate: "maxDate", errorMessages: "errorMessages", isLabelOutside: "isLabelOutside", isFloatLabel: "isFloatLabel", percentOfLabelOutside: "percentOfLabelOutside", isFormControl: "isFormControl" }, outputs: { onChange: "onChange" }, providers: [
|
|
3870
3930
|
{ provide: DateAdapter, useClass: NsDateAdapter },
|
|
@@ -3872,7 +3932,7 @@ class CvaDatePickerComponent {
|
|
|
3872
3932
|
provide: MAT_DATE_FORMATS,
|
|
3873
3933
|
useValue: APP_DATE_FORMATS,
|
|
3874
3934
|
},
|
|
3875
|
-
], ngImport: i0, template: `
|
|
3935
|
+
], viewQueries: [{ propertyName: "datepicker", first: true, predicate: ["xDatepicker"], descendants: true }], ngImport: i0, template: `
|
|
3876
3936
|
<!-- css labelOutside trong base.theme-->
|
|
3877
3937
|
<div class="cva-date-picker"
|
|
3878
3938
|
[ngClass]="{'labelOutside': isLabelOutside, 'float_label': isFloatLabel && !isLabelOutside}"
|
|
@@ -3894,19 +3954,20 @@ class CvaDatePickerComponent {
|
|
|
3894
3954
|
<input matInput [matDatepicker]="xDatepicker"
|
|
3895
3955
|
[placeholder]="placeholder|translate"
|
|
3896
3956
|
[(ngModel)]="datepickerValue"
|
|
3957
|
+
[disabled]="disabled"
|
|
3897
3958
|
[readonly]="true"
|
|
3898
3959
|
[required]="checkRequired(required)"
|
|
3899
3960
|
[title]="title ? title : ''"
|
|
3900
|
-
[min]="getMinDate()" [max]="getMaxDate()"
|
|
3961
|
+
[min]="getMinDate()" [max]="getMaxDate()"
|
|
3962
|
+
(click)="openDatepicker($event)">
|
|
3901
3963
|
<mat-datepicker-toggle matPrefix [for]="xDatepicker" [disabled]="disabled"></mat-datepicker-toggle>
|
|
3902
3964
|
<mat-datepicker #xDatepicker></mat-datepicker>
|
|
3903
|
-
<button mat-icon-button color="warn" class="btnDatePicker" matSuffix (click)="onClear()"
|
|
3904
|
-
[disabled]="disabled || checkRequired(required)">
|
|
3965
|
+
<button mat-icon-button color="warn" class="btnDatePicker" matSuffix (click)="onClear()" [disabled]="disabled">
|
|
3905
3966
|
<mat-icon>clear</mat-icon>
|
|
3906
3967
|
</button>
|
|
3907
3968
|
|
|
3908
3969
|
<mat-hint style="color: red" *ngIf="NsValidator.invalid(formControl)">
|
|
3909
|
-
{{ NsValidator.
|
|
3970
|
+
{{ NsValidator.getErrorMessageV1(formControl, errorMessages).msg | translate: NsValidator.getErrorMessageV1(formControl, errorMessages).params }}
|
|
3910
3971
|
</mat-hint>
|
|
3911
3972
|
|
|
3912
3973
|
</mat-form-field>
|
|
@@ -3922,7 +3983,7 @@ class CvaDatePickerComponent {
|
|
|
3922
3983
|
</div>
|
|
3923
3984
|
</ng-container>
|
|
3924
3985
|
</div>
|
|
3925
|
-
`, 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: "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.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: i5$
|
|
3986
|
+
`, 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: "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.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: i5$1.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i5$1.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i5$1.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { 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.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i6.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8.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: "directive", type: i8$1.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$1.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" }] });
|
|
3926
3987
|
}
|
|
3927
3988
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaDatePickerComponent, decorators: [{
|
|
3928
3989
|
type: Component,
|
|
@@ -3951,19 +4012,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
3951
4012
|
<input matInput [matDatepicker]="xDatepicker"
|
|
3952
4013
|
[placeholder]="placeholder|translate"
|
|
3953
4014
|
[(ngModel)]="datepickerValue"
|
|
4015
|
+
[disabled]="disabled"
|
|
3954
4016
|
[readonly]="true"
|
|
3955
4017
|
[required]="checkRequired(required)"
|
|
3956
4018
|
[title]="title ? title : ''"
|
|
3957
|
-
[min]="getMinDate()" [max]="getMaxDate()"
|
|
4019
|
+
[min]="getMinDate()" [max]="getMaxDate()"
|
|
4020
|
+
(click)="openDatepicker($event)">
|
|
3958
4021
|
<mat-datepicker-toggle matPrefix [for]="xDatepicker" [disabled]="disabled"></mat-datepicker-toggle>
|
|
3959
4022
|
<mat-datepicker #xDatepicker></mat-datepicker>
|
|
3960
|
-
<button mat-icon-button color="warn" class="btnDatePicker" matSuffix (click)="onClear()"
|
|
3961
|
-
[disabled]="disabled || checkRequired(required)">
|
|
4023
|
+
<button mat-icon-button color="warn" class="btnDatePicker" matSuffix (click)="onClear()" [disabled]="disabled">
|
|
3962
4024
|
<mat-icon>clear</mat-icon>
|
|
3963
4025
|
</button>
|
|
3964
4026
|
|
|
3965
4027
|
<mat-hint style="color: red" *ngIf="NsValidator.invalid(formControl)">
|
|
3966
|
-
{{ NsValidator.
|
|
4028
|
+
{{ NsValidator.getErrorMessageV1(formControl, errorMessages).msg | translate: NsValidator.getErrorMessageV1(formControl, errorMessages).params }}
|
|
3967
4029
|
</mat-hint>
|
|
3968
4030
|
|
|
3969
4031
|
</mat-form-field>
|
|
@@ -4018,6 +4080,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
4018
4080
|
type: Input
|
|
4019
4081
|
}], isFormControl: [{
|
|
4020
4082
|
type: Input
|
|
4083
|
+
}], datepicker: [{
|
|
4084
|
+
type: ViewChild,
|
|
4085
|
+
args: ['xDatepicker']
|
|
4021
4086
|
}] } });
|
|
4022
4087
|
|
|
4023
4088
|
class CvaMultiSelectAutocomplete {
|
|
@@ -4046,7 +4111,7 @@ class CvaMultiSelectAutocomplete {
|
|
|
4046
4111
|
isFormControl = true;
|
|
4047
4112
|
searchInputRef;
|
|
4048
4113
|
// Cái này là để gắn khi nó là FormControl trong 1 FormGroup
|
|
4049
|
-
formControl;
|
|
4114
|
+
formControl = null;
|
|
4050
4115
|
filteredOptions = [];
|
|
4051
4116
|
selectAllChecked = false;
|
|
4052
4117
|
labelCount = 1;
|
|
@@ -4077,6 +4142,9 @@ class CvaMultiSelectAutocomplete {
|
|
|
4077
4142
|
set selectedValue(val) {
|
|
4078
4143
|
// this.writeValue(val); // Đọc comment bên dưới matSelectionChange
|
|
4079
4144
|
}
|
|
4145
|
+
getFormControl() {
|
|
4146
|
+
return this.formControl;
|
|
4147
|
+
}
|
|
4080
4148
|
ngOnInit() {
|
|
4081
4149
|
this.callValidator();
|
|
4082
4150
|
}
|
|
@@ -4088,7 +4156,7 @@ class CvaMultiSelectAutocomplete {
|
|
|
4088
4156
|
if (ngControl && !this.formControl) {
|
|
4089
4157
|
// Nếu là NsSmartTable thì phải tự new FormControl còn không thì cứ hóng parent FormControl về ^^
|
|
4090
4158
|
if (this.isFormControl) {
|
|
4091
|
-
this.formControl = ngControl.control ? ngControl.control :
|
|
4159
|
+
this.formControl = ngControl.control ? ngControl.control : null;
|
|
4092
4160
|
}
|
|
4093
4161
|
else {
|
|
4094
4162
|
this.formControl = new FormControl();
|
|
@@ -4398,7 +4466,7 @@ class CvaMultiSelectAutocomplete {
|
|
|
4398
4466
|
<mat-icon matSuffix>expand_more</mat-icon>
|
|
4399
4467
|
<mat-hint *ngIf="!NsValidator.invalid(formControl)">{{ hint | translate }}</mat-hint>
|
|
4400
4468
|
<mat-hint style="color: red" *ngIf="NsValidator.invalid(formControl)">
|
|
4401
|
-
{{ NsValidator.
|
|
4469
|
+
{{ NsValidator.getErrorMessageV1(formControl, errorMessages).msg | translate: NsValidator.getErrorMessageV1(formControl, errorMessages).params }}
|
|
4402
4470
|
</mat-hint>
|
|
4403
4471
|
</mat-form-field>
|
|
4404
4472
|
<ng-container *ngIf="!isShowControl()">
|
|
@@ -4412,7 +4480,7 @@ class CvaMultiSelectAutocomplete {
|
|
|
4412
4480
|
</div>
|
|
4413
4481
|
</ng-container>
|
|
4414
4482
|
</div>
|
|
4415
|
-
`, 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.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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4$
|
|
4483
|
+
`, 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.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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i4.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: 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$1.MatLine, selector: "[mat-line], [matLine]" }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i9$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i9$1.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "directive", type: i10.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i10.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i10.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i8$1.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$1.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" }] });
|
|
4416
4484
|
}
|
|
4417
4485
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaMultiSelectAutocomplete, decorators: [{
|
|
4418
4486
|
type: Component,
|
|
@@ -4495,7 +4563,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
4495
4563
|
<mat-icon matSuffix>expand_more</mat-icon>
|
|
4496
4564
|
<mat-hint *ngIf="!NsValidator.invalid(formControl)">{{ hint | translate }}</mat-hint>
|
|
4497
4565
|
<mat-hint style="color: red" *ngIf="NsValidator.invalid(formControl)">
|
|
4498
|
-
{{ NsValidator.
|
|
4566
|
+
{{ NsValidator.getErrorMessageV1(formControl, errorMessages).msg | translate: NsValidator.getErrorMessageV1(formControl, errorMessages).params }}
|
|
4499
4567
|
</mat-hint>
|
|
4500
4568
|
</mat-form-field>
|
|
4501
4569
|
<ng-container *ngIf="!isShowControl()">
|
|
@@ -4579,7 +4647,7 @@ class CvaLiveSearchingComponent {
|
|
|
4579
4647
|
isFormControl = true;
|
|
4580
4648
|
row;
|
|
4581
4649
|
columnDef;
|
|
4582
|
-
|
|
4650
|
+
formControl = null;
|
|
4583
4651
|
textControl = new FormControl('');
|
|
4584
4652
|
filteredOptions = [];
|
|
4585
4653
|
selected;
|
|
@@ -4597,6 +4665,9 @@ class CvaLiveSearchingComponent {
|
|
|
4597
4665
|
get NsValidator() {
|
|
4598
4666
|
return ValidatorService;
|
|
4599
4667
|
}
|
|
4668
|
+
getFormControl() {
|
|
4669
|
+
return this.formControl;
|
|
4670
|
+
}
|
|
4600
4671
|
ngOnInit() {
|
|
4601
4672
|
this.callValidator();
|
|
4602
4673
|
this.textValueChangeSubscribe();
|
|
@@ -4607,37 +4678,37 @@ class CvaLiveSearchingComponent {
|
|
|
4607
4678
|
callValidator() {
|
|
4608
4679
|
const ngControl = this.injector.get(NgControl);
|
|
4609
4680
|
// Nếu parent FormControl khởi tạo xong và formControl chưa có giá trị lưu
|
|
4610
|
-
if (ngControl && !this.
|
|
4681
|
+
if (ngControl && !this.formControl) {
|
|
4611
4682
|
// Nếu là NsSmartTable thì phải tự new FormControl còn không thì cứ hóng parent FormControl về ^^
|
|
4612
4683
|
if (this.isFormControl) {
|
|
4613
|
-
this.
|
|
4684
|
+
this.formControl = ngControl.control ? ngControl.control : null;
|
|
4614
4685
|
}
|
|
4615
4686
|
else {
|
|
4616
|
-
this.
|
|
4687
|
+
this.formControl = new FormControl();
|
|
4617
4688
|
}
|
|
4618
4689
|
// Hành động này gắn validator vào this.formControl
|
|
4619
4690
|
// - Nếu this.formControl là parent FormControl thì sẽ show error lên FormGroup
|
|
4620
4691
|
// - Nếu this.formControl là new FormControl thì sẽ quét QueryList để check {errors}
|
|
4621
|
-
if (this.
|
|
4622
|
-
if (this.
|
|
4623
|
-
this.
|
|
4692
|
+
if (this.formControl) {
|
|
4693
|
+
if (this.formControl.validator) {
|
|
4694
|
+
this.formControl.setValidators([...ValidatorService.generateNsAutocompleteValidators({
|
|
4624
4695
|
required: this.required,
|
|
4625
|
-
}), this.
|
|
4696
|
+
}), this.formControl.validator]);
|
|
4626
4697
|
}
|
|
4627
4698
|
else {
|
|
4628
|
-
this.
|
|
4699
|
+
this.formControl.setValidators([...ValidatorService.generateNsAutocompleteValidators({
|
|
4629
4700
|
required: this.required,
|
|
4630
4701
|
})]);
|
|
4631
4702
|
}
|
|
4632
4703
|
}
|
|
4633
4704
|
}
|
|
4634
|
-
if (this.
|
|
4705
|
+
if (this.formControl) {
|
|
4635
4706
|
// Nếu this.formControl thuộc NsSmartTable thì setValue lại
|
|
4636
4707
|
if (!this.isFormControl) {
|
|
4637
|
-
this.
|
|
4708
|
+
this.formControl.setValue(this.selected);
|
|
4638
4709
|
}
|
|
4639
4710
|
// Nếu là parent FormControl rồi thì kệ
|
|
4640
|
-
this.
|
|
4711
|
+
this.formControl.updateValueAndValidity();
|
|
4641
4712
|
}
|
|
4642
4713
|
}
|
|
4643
4714
|
propagateChange = (_) => {
|
|
@@ -4662,20 +4733,13 @@ class CvaLiveSearchingComponent {
|
|
|
4662
4733
|
*/
|
|
4663
4734
|
writeValue(obj) {
|
|
4664
4735
|
if (!obj || typeof obj !== 'string') {
|
|
4665
|
-
this.selected = {};
|
|
4666
4736
|
this.filteredOptions.length = 0;
|
|
4667
4737
|
this.filteredOptions = [];
|
|
4668
|
-
this.textControl.setValue('', { emitEvent: false });
|
|
4669
|
-
this.updateRowOrFormGroup();
|
|
4670
|
-
return;
|
|
4671
4738
|
}
|
|
4672
4739
|
const matched = this.filteredOptions.find(opt => {
|
|
4673
4740
|
return JSON.stringify(opt[this.displayKey] ?? '') === JSON.stringify(obj ?? '');
|
|
4674
4741
|
});
|
|
4675
|
-
if (!matched) {
|
|
4676
|
-
if (!this.searchFn) {
|
|
4677
|
-
return;
|
|
4678
|
-
}
|
|
4742
|
+
if (!matched && this.searchFn && !!obj) {
|
|
4679
4743
|
// Khi textValueChange chưa chạy không tìm thấy
|
|
4680
4744
|
this.searchFn(obj).subscribe(values => {
|
|
4681
4745
|
if (values && values.length > 0) {
|
|
@@ -4685,8 +4749,9 @@ class CvaLiveSearchingComponent {
|
|
|
4685
4749
|
});
|
|
4686
4750
|
return;
|
|
4687
4751
|
}
|
|
4688
|
-
this.selected = matched;
|
|
4689
|
-
this.textControl.setValue(matched[this.displayKey], { emitEvent: false });
|
|
4752
|
+
this.selected = matched ?? null;
|
|
4753
|
+
this.textControl.setValue(matched ? matched[this.displayKey] : '', { emitEvent: false });
|
|
4754
|
+
this.callValidator();
|
|
4690
4755
|
this.updateRowOrFormGroup();
|
|
4691
4756
|
}
|
|
4692
4757
|
onOptionSelect(displayValue) {
|
|
@@ -4715,22 +4780,22 @@ class CvaLiveSearchingComponent {
|
|
|
4715
4780
|
if (!this.isFormControl && this.row) {
|
|
4716
4781
|
for (const targetKey in this.mappingConfig) {
|
|
4717
4782
|
const sourceKey = this.mappingConfig[targetKey];
|
|
4718
|
-
this.row[targetKey] = this.selected[sourceKey];
|
|
4783
|
+
this.row[targetKey] = !!this.selected ? this.selected[sourceKey] : '';
|
|
4719
4784
|
}
|
|
4720
4785
|
}
|
|
4721
|
-
if (this.isFormControl && this.
|
|
4786
|
+
if (this.isFormControl && this.formControl?.parent) {
|
|
4722
4787
|
for (const targetKey in this.mappingConfig) {
|
|
4723
4788
|
const sourceKey = this.mappingConfig[targetKey];
|
|
4724
|
-
const formControl = this.
|
|
4789
|
+
const formControl = this.formControl.parent.get(targetKey);
|
|
4725
4790
|
if (formControl)
|
|
4726
|
-
formControl.setValue(this.selected[sourceKey]);
|
|
4791
|
+
formControl.setValue(!!this.selected ? this.selected[sourceKey] : '');
|
|
4727
4792
|
}
|
|
4728
4793
|
}
|
|
4729
|
-
this.propagateChange(this.selected[this.displayKey]);
|
|
4730
|
-
this.onChange.emit(this.selected[this.displayKey]);
|
|
4794
|
+
this.propagateChange(!!this.selected ? this.selected[this.displayKey] : '');
|
|
4795
|
+
this.onChange.emit(!!this.selected ? this.selected[this.displayKey] : '');
|
|
4731
4796
|
}
|
|
4732
4797
|
onClear() {
|
|
4733
|
-
this.writeValue(
|
|
4798
|
+
this.writeValue('');
|
|
4734
4799
|
}
|
|
4735
4800
|
isShowControl() {
|
|
4736
4801
|
return !this.disabled || (this.disabled && this.config && this.config.STYLE_DISABLE === 'CONTROL');
|
|
@@ -4738,23 +4803,23 @@ class CvaLiveSearchingComponent {
|
|
|
4738
4803
|
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 });
|
|
4739
4804
|
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", 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: `
|
|
4740
4805
|
<div class="cva-live-searching"
|
|
4741
|
-
[ngClass]="{'labelOutside':
|
|
4742
|
-
'float_label':
|
|
4806
|
+
[ngClass]="{'labelOutside': isLabelOutside,
|
|
4807
|
+
'float_label': isFloatLabel && !isLabelOutside}"
|
|
4743
4808
|
fxLayout="row" fxLayout.lt-sm="row wrap">
|
|
4744
4809
|
<mat-label *ngIf="isLabelOutside" class="label_width"
|
|
4745
4810
|
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
4746
4811
|
<div class="label">
|
|
4747
4812
|
<div>
|
|
4748
4813
|
{{ (label ? label : placeholder) | translate }}<span
|
|
4749
|
-
class="required-label-outside">{{
|
|
4814
|
+
class="required-label-outside">{{ required ? '*' : '' }}</span>
|
|
4750
4815
|
</div>
|
|
4751
4816
|
</div>
|
|
4752
4817
|
</mat-label>
|
|
4753
4818
|
<mat-form-field *ngIf="isShowControl()"
|
|
4754
|
-
appearance="outline" [floatLabel]="
|
|
4819
|
+
appearance="outline" [floatLabel]="isFloatLabel ? 'always' : 'auto'"
|
|
4755
4820
|
[hideRequiredMarker]="!isFloatLabel"
|
|
4756
4821
|
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
4757
|
-
<mat-label *ngIf="!isLabelOutside &&
|
|
4822
|
+
<mat-label *ngIf="!isLabelOutside && isFloatLabel">
|
|
4758
4823
|
{{ (label ? label : placeholder) | translate }}
|
|
4759
4824
|
</mat-label>
|
|
4760
4825
|
<input type="text"
|
|
@@ -4777,9 +4842,9 @@ class CvaLiveSearchingComponent {
|
|
|
4777
4842
|
</mat-option>
|
|
4778
4843
|
</mat-autocomplete>
|
|
4779
4844
|
<i *ngIf="!!suffixFontAwesomeClass" class="input-suffix {{suffixFontAwesomeClass}}" matSuffix></i>
|
|
4780
|
-
<mat-hint align="start" *ngIf="!NsValidator.invalid(
|
|
4781
|
-
<mat-hint style="color: red" align="start" *ngIf="NsValidator.invalid(
|
|
4782
|
-
{{ NsValidator.getErrorMessageV1(
|
|
4845
|
+
<mat-hint align="start" *ngIf="!NsValidator.invalid(formControl)">{{ hint | translate }}</mat-hint>
|
|
4846
|
+
<mat-hint style="color: red" align="start" *ngIf="NsValidator.invalid(formControl)">
|
|
4847
|
+
{{ NsValidator.getErrorMessageV1(formControl, errorMessages).msg | translate: NsValidator.getErrorMessageV1(formControl, errorMessages).params }}
|
|
4783
4848
|
</mat-hint>
|
|
4784
4849
|
</mat-form-field>
|
|
4785
4850
|
|
|
@@ -4794,7 +4859,7 @@ class CvaLiveSearchingComponent {
|
|
|
4794
4859
|
</div>
|
|
4795
4860
|
</ng-container>
|
|
4796
4861
|
</div>
|
|
4797
|
-
`, 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$
|
|
4862
|
+
`, 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$1.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: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { 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: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8.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: i9$2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i8$1.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$1.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" }] });
|
|
4798
4863
|
}
|
|
4799
4864
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaLiveSearchingComponent, decorators: [{
|
|
4800
4865
|
type: Component,
|
|
@@ -4803,23 +4868,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
4803
4868
|
standalone: false,
|
|
4804
4869
|
template: `
|
|
4805
4870
|
<div class="cva-live-searching"
|
|
4806
|
-
[ngClass]="{'labelOutside':
|
|
4807
|
-
'float_label':
|
|
4871
|
+
[ngClass]="{'labelOutside': isLabelOutside,
|
|
4872
|
+
'float_label': isFloatLabel && !isLabelOutside}"
|
|
4808
4873
|
fxLayout="row" fxLayout.lt-sm="row wrap">
|
|
4809
4874
|
<mat-label *ngIf="isLabelOutside" class="label_width"
|
|
4810
4875
|
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
4811
4876
|
<div class="label">
|
|
4812
4877
|
<div>
|
|
4813
4878
|
{{ (label ? label : placeholder) | translate }}<span
|
|
4814
|
-
class="required-label-outside">{{
|
|
4879
|
+
class="required-label-outside">{{ required ? '*' : '' }}</span>
|
|
4815
4880
|
</div>
|
|
4816
4881
|
</div>
|
|
4817
4882
|
</mat-label>
|
|
4818
4883
|
<mat-form-field *ngIf="isShowControl()"
|
|
4819
|
-
appearance="outline" [floatLabel]="
|
|
4884
|
+
appearance="outline" [floatLabel]="isFloatLabel ? 'always' : 'auto'"
|
|
4820
4885
|
[hideRequiredMarker]="!isFloatLabel"
|
|
4821
4886
|
fxLayout="column" fxFlex="auto" fxFlex.lt-md="100%">
|
|
4822
|
-
<mat-label *ngIf="!isLabelOutside &&
|
|
4887
|
+
<mat-label *ngIf="!isLabelOutside && isFloatLabel">
|
|
4823
4888
|
{{ (label ? label : placeholder) | translate }}
|
|
4824
4889
|
</mat-label>
|
|
4825
4890
|
<input type="text"
|
|
@@ -4842,9 +4907,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
4842
4907
|
</mat-option>
|
|
4843
4908
|
</mat-autocomplete>
|
|
4844
4909
|
<i *ngIf="!!suffixFontAwesomeClass" class="input-suffix {{suffixFontAwesomeClass}}" matSuffix></i>
|
|
4845
|
-
<mat-hint align="start" *ngIf="!NsValidator.invalid(
|
|
4846
|
-
<mat-hint style="color: red" align="start" *ngIf="NsValidator.invalid(
|
|
4847
|
-
{{ NsValidator.getErrorMessageV1(
|
|
4910
|
+
<mat-hint align="start" *ngIf="!NsValidator.invalid(formControl)">{{ hint | translate }}</mat-hint>
|
|
4911
|
+
<mat-hint style="color: red" align="start" *ngIf="NsValidator.invalid(formControl)">
|
|
4912
|
+
{{ NsValidator.getErrorMessageV1(formControl, errorMessages).msg | translate: NsValidator.getErrorMessageV1(formControl, errorMessages).params }}
|
|
4848
4913
|
</mat-hint>
|
|
4849
4914
|
</mat-form-field>
|
|
4850
4915
|
|
|
@@ -4905,6 +4970,7 @@ class CvaSmartTableComponent {
|
|
|
4905
4970
|
ref;
|
|
4906
4971
|
config;
|
|
4907
4972
|
injector;
|
|
4973
|
+
cellComponents;
|
|
4908
4974
|
moduleName = '';
|
|
4909
4975
|
columns = [];
|
|
4910
4976
|
buttons = [];
|
|
@@ -4927,6 +4993,7 @@ class CvaSmartTableComponent {
|
|
|
4927
4993
|
formControl;
|
|
4928
4994
|
selectAllChecked = false;
|
|
4929
4995
|
buttonColspan = 0;
|
|
4996
|
+
formatFunc = new NumericInputFormat();
|
|
4930
4997
|
constructor(ref, config, injector, ngControl) {
|
|
4931
4998
|
this.ref = ref;
|
|
4932
4999
|
this.config = config;
|
|
@@ -5066,27 +5133,6 @@ class CvaSmartTableComponent {
|
|
|
5066
5133
|
onDisplayFooter(footer, dataTable) {
|
|
5067
5134
|
return typeof (footer.display) === 'function' ? footer.display(dataTable) : !!footer.display;
|
|
5068
5135
|
}
|
|
5069
|
-
// //Cái khúc này về sau mà có cái loại validate nào mà ngoài thì mới enable validate cột sau
|
|
5070
|
-
// validate(control: AbstractControl): ValidationErrors | null {
|
|
5071
|
-
// let valid = null;
|
|
5072
|
-
//
|
|
5073
|
-
// if (this.value) {
|
|
5074
|
-
// for (const row of this.value) {
|
|
5075
|
-
// for (const column of this.columns) {
|
|
5076
|
-
// if (column.validate) {
|
|
5077
|
-
// valid = column.validate(row);
|
|
5078
|
-
// if (valid) {
|
|
5079
|
-
// break;
|
|
5080
|
-
// }
|
|
5081
|
-
// }
|
|
5082
|
-
// }
|
|
5083
|
-
// if (valid) {
|
|
5084
|
-
// break;
|
|
5085
|
-
// }
|
|
5086
|
-
// }
|
|
5087
|
-
// }
|
|
5088
|
-
// return valid;
|
|
5089
|
-
// }
|
|
5090
5136
|
callValidator() {
|
|
5091
5137
|
const ngControl = this.injector.get(NgControl);
|
|
5092
5138
|
if (ngControl && !this.formControl) {
|
|
@@ -5102,6 +5148,11 @@ class CvaSmartTableComponent {
|
|
|
5102
5148
|
minRow: this.minRow,
|
|
5103
5149
|
maxRow: this.maxRow,
|
|
5104
5150
|
}));
|
|
5151
|
+
this.formControl.statusChanges.subscribe(status => {
|
|
5152
|
+
if (this.formControl?.touched && this.formControl?.dirty) {
|
|
5153
|
+
this.markAllControlsAsDirty();
|
|
5154
|
+
}
|
|
5155
|
+
});
|
|
5105
5156
|
}
|
|
5106
5157
|
}
|
|
5107
5158
|
if (this.formControl) {
|
|
@@ -5125,29 +5176,6 @@ class CvaSmartTableComponent {
|
|
|
5125
5176
|
if (row.isChildRow) {
|
|
5126
5177
|
return;
|
|
5127
5178
|
}
|
|
5128
|
-
// default not expand
|
|
5129
|
-
// if (row.expanded) {
|
|
5130
|
-
// // remove the flag
|
|
5131
|
-
// row.expanded = false;
|
|
5132
|
-
//
|
|
5133
|
-
// // remove the child rows
|
|
5134
|
-
// let childrenDetected = false;
|
|
5135
|
-
// const length = this.datasource.data.length;
|
|
5136
|
-
// for (let index = 0; index < length; index++) {
|
|
5137
|
-
// if (childrenDetected && !this.datasource.data[index].isChildRow) {
|
|
5138
|
-
// break;
|
|
5139
|
-
// }
|
|
5140
|
-
//
|
|
5141
|
-
// if (index > i && this.datasource.data[index].isChildRow) {
|
|
5142
|
-
// this.datasource.data.splice(index, 1);
|
|
5143
|
-
// index--;
|
|
5144
|
-
// childrenDetected = true;
|
|
5145
|
-
// }
|
|
5146
|
-
// }
|
|
5147
|
-
//
|
|
5148
|
-
// this.matTable?.renderRows();
|
|
5149
|
-
// return;
|
|
5150
|
-
// }
|
|
5151
5179
|
// set expanded to true so we don't expand this row again
|
|
5152
5180
|
row.expanded = true;
|
|
5153
5181
|
row.parentRowClassIndex = parentRowClassIndex;
|
|
@@ -5165,15 +5193,26 @@ class CvaSmartTableComponent {
|
|
|
5165
5193
|
// rerender table
|
|
5166
5194
|
this.matTable?.renderRows();
|
|
5167
5195
|
}
|
|
5168
|
-
|
|
5196
|
+
getAlign(column) {
|
|
5169
5197
|
return column.align ? column.align : AlignEnum.RIGHT;
|
|
5170
5198
|
}
|
|
5171
5199
|
getHeaderButtonColspan() {
|
|
5172
5200
|
this.buttonColspan = TableService.getHeaderButtonColspan(this.buttons, this.datasource.data);
|
|
5173
5201
|
return this.buttonColspan;
|
|
5174
5202
|
}
|
|
5203
|
+
markAllControlsAsDirty() {
|
|
5204
|
+
if (this.cellComponents) {
|
|
5205
|
+
this.cellComponents.forEach(cell => {
|
|
5206
|
+
const control = cell.getFormControl();
|
|
5207
|
+
if (control) {
|
|
5208
|
+
control.markAsDirty();
|
|
5209
|
+
control.updateValueAndValidity();
|
|
5210
|
+
}
|
|
5211
|
+
});
|
|
5212
|
+
}
|
|
5213
|
+
}
|
|
5175
5214
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaSmartTableComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: InjectTokenNextSolutionsConfig }, { token: i0.Injector }, { token: i1$2.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
5176
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaSmartTableComponent, isStandalone: false, selector: "cva-smart-table", inputs: { moduleName: "moduleName", columns: "columns", buttons: "buttons", value: "value", minRow: "minRow", maxRow: "maxRow", errorMessages: "errorMessages", isFormControl: "isFormControl", isSticky: "isSticky", isStickyHeader: "isStickyHeader", isStickyFooter: "isStickyFooter", isExpandRowTable: "isExpandRowTable", expandRowProperty: "expandRowProperty" }, outputs: { clickAction: "clickAction", onChange: "onChange" }, viewQueries: [{ propertyName: "matTable", first: true, predicate: ["matTable"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
5215
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaSmartTableComponent, isStandalone: false, selector: "cva-smart-table", inputs: { moduleName: "moduleName", columns: "columns", buttons: "buttons", value: "value", minRow: "minRow", maxRow: "maxRow", errorMessages: "errorMessages", isFormControl: "isFormControl", isSticky: "isSticky", isStickyHeader: "isStickyHeader", isStickyFooter: "isStickyFooter", isExpandRowTable: "isExpandRowTable", expandRowProperty: "expandRowProperty" }, outputs: { clickAction: "clickAction", onChange: "onChange" }, viewQueries: [{ propertyName: "matTable", first: true, predicate: ["matTable"], descendants: true }, { propertyName: "cellComponents", predicate: ["cellComponentRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
5177
5216
|
<div class="table-responsive"
|
|
5178
5217
|
[ngClass]="{'fixed_header': isSticky||isStickyHeader, 'fixed_footer': isSticky||isStickyFooter}">
|
|
5179
5218
|
<table mat-table [dataSource]="datasource" #matTable class="mat-elevation-z8 cva-smart-table">
|
|
@@ -5243,7 +5282,7 @@ class CvaSmartTableComponent {
|
|
|
5243
5282
|
class="{{TableService.getColumnClassName(column, result)}}"
|
|
5244
5283
|
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5245
5284
|
(click)="$event.stopPropagation()">
|
|
5246
|
-
<button mat-icon-button
|
|
5285
|
+
<button mat-icon-button type="button"
|
|
5247
5286
|
color="{{column.button.color}}"
|
|
5248
5287
|
[ngClass]="column.button.className"
|
|
5249
5288
|
(click)="onClick(column.button.click, result, i)"
|
|
@@ -5256,9 +5295,10 @@ class CvaSmartTableComponent {
|
|
|
5256
5295
|
</div>
|
|
5257
5296
|
</ng-container>
|
|
5258
5297
|
<cva-counter-input *ngSwitchCase="ColumnTypes.INPUT_COUNTER"
|
|
5298
|
+
#cellComponentRef
|
|
5259
5299
|
class="inputNumber" #nsCounterInput
|
|
5260
5300
|
[isFormControl]="false"
|
|
5261
|
-
[alignNumber]="
|
|
5301
|
+
[alignNumber]="getAlign(column)"
|
|
5262
5302
|
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5263
5303
|
[value]="result[column.columnDef]"
|
|
5264
5304
|
[required]="getRequired(column)"
|
|
@@ -5269,7 +5309,9 @@ class CvaSmartTableComponent {
|
|
|
5269
5309
|
(onChange)="onCellValueChange(result, column, $event);">
|
|
5270
5310
|
</cva-counter-input>
|
|
5271
5311
|
<cva-input *ngSwitchCase="ColumnTypes.INPUT"
|
|
5312
|
+
#cellComponentRef
|
|
5272
5313
|
[isFormControl]="false"
|
|
5314
|
+
[alignText]="getAlign(column)"
|
|
5273
5315
|
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5274
5316
|
[text]="result[column.columnDef]"
|
|
5275
5317
|
[minLength]="column.min ? column.min(result) : undefined"
|
|
@@ -5278,7 +5320,22 @@ class CvaSmartTableComponent {
|
|
|
5278
5320
|
[errorMessages]="getErrorMessageMap(column)"
|
|
5279
5321
|
(onChange)="onCellValueChange(result, column, $event);">
|
|
5280
5322
|
</cva-input>
|
|
5323
|
+
<cva-input *ngSwitchCase="ColumnTypes.INPUT_CURRENCY"
|
|
5324
|
+
#cellComponentRef
|
|
5325
|
+
[isFormControl]="false"
|
|
5326
|
+
[alignText]="getAlign(column)"
|
|
5327
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5328
|
+
[text]="result[column.columnDef]"
|
|
5329
|
+
[minLength]="column.min ? column.min(result) : undefined"
|
|
5330
|
+
[maxLength]="column.max ? column.max(result) : undefined"
|
|
5331
|
+
[required]="getRequired(column)"
|
|
5332
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5333
|
+
(onChange)="onCellValueChange(result, column, $event);"
|
|
5334
|
+
[pattern]="getIsDecimal(column) ? '^\\d{0,15}(\\.\\d*)?$' : '^\\d{0,15}$'"
|
|
5335
|
+
[formatFunc]="formatFunc">
|
|
5336
|
+
</cva-input>
|
|
5281
5337
|
<cva-date-picker *ngSwitchCase="ColumnTypes.DATE_PICKER"
|
|
5338
|
+
#cellComponentRef
|
|
5282
5339
|
[value]="result[column.columnDef]"
|
|
5283
5340
|
[isFormControl]="false"
|
|
5284
5341
|
[minDate]="column.min ? column.min(result) : null"
|
|
@@ -5289,6 +5346,7 @@ class CvaSmartTableComponent {
|
|
|
5289
5346
|
(onChange)="onCellValueChange(result, column, $event);">
|
|
5290
5347
|
</cva-date-picker>
|
|
5291
5348
|
<cva-multi-select-autocomplete [isFormControl]="false"
|
|
5349
|
+
#cellComponentRef
|
|
5292
5350
|
*ngSwitchCase="ColumnTypes.MULTI_SELECT_AUTOCOMPLETE"
|
|
5293
5351
|
class="multiSelectAutocomplete"
|
|
5294
5352
|
[isTree]="column.isTree??false"
|
|
@@ -5311,6 +5369,7 @@ class CvaSmartTableComponent {
|
|
|
5311
5369
|
</mat-checkbox>
|
|
5312
5370
|
</div>
|
|
5313
5371
|
<cva-live-searching *ngSwitchCase="ColumnTypes.LIVE_SEARCHING"
|
|
5372
|
+
#cellComponentRef
|
|
5314
5373
|
[isFormControl]="false" [required]="getRequired(column)"
|
|
5315
5374
|
[row]="result" [columnDef]="column.columnDef"
|
|
5316
5375
|
[searchFn]="column.searchFn"
|
|
@@ -5331,7 +5390,7 @@ class CvaSmartTableComponent {
|
|
|
5331
5390
|
[attr.colspan]="buttonColspan">
|
|
5332
5391
|
<!-- [fxFlex]="getHeaderButtonWidth(i) + 'px' "-->
|
|
5333
5392
|
<ng-container *ngIf="TableService.getButtonHeader(button) as btnHeader">
|
|
5334
|
-
<button mat-icon-button
|
|
5393
|
+
<button mat-icon-button type="button"
|
|
5335
5394
|
class="{{button.className}}"
|
|
5336
5395
|
color="{{$any(btnHeader).color}}"
|
|
5337
5396
|
(click)="onClick($any(btnHeader).click, null, null)"
|
|
@@ -5357,7 +5416,7 @@ class CvaSmartTableComponent {
|
|
|
5357
5416
|
<td mat-cell [ngClass]="button.className"
|
|
5358
5417
|
*ngIf="TableService.onDisplayButtonCell(button, cell)"
|
|
5359
5418
|
(click)="$event.stopPropagation()">
|
|
5360
|
-
<button mat-icon-button
|
|
5419
|
+
<button mat-icon-button type="button"
|
|
5361
5420
|
color="{{button.color}}"
|
|
5362
5421
|
[ngClass]="button.className"
|
|
5363
5422
|
(click)="onClick(button.click, cell, i)"
|
|
@@ -5399,7 +5458,7 @@ class CvaSmartTableComponent {
|
|
|
5399
5458
|
</ng-container>
|
|
5400
5459
|
</table>
|
|
5401
5460
|
</div>
|
|
5402
|
-
`, 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
|
|
5461
|
+
`, 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.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: i7.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$1.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$1.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", "errorMessages", "multiline", "isLabelOutside", "isFloatLabel", "minLength", "maxLength", "alignText", "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", "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" }] });
|
|
5403
5462
|
}
|
|
5404
5463
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaSmartTableComponent, decorators: [{
|
|
5405
5464
|
type: Component,
|
|
@@ -5476,7 +5535,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
5476
5535
|
class="{{TableService.getColumnClassName(column, result)}}"
|
|
5477
5536
|
fxLayout="row" [fxLayoutAlign]="TableService.alignCellContent(column)"
|
|
5478
5537
|
(click)="$event.stopPropagation()">
|
|
5479
|
-
<button mat-icon-button
|
|
5538
|
+
<button mat-icon-button type="button"
|
|
5480
5539
|
color="{{column.button.color}}"
|
|
5481
5540
|
[ngClass]="column.button.className"
|
|
5482
5541
|
(click)="onClick(column.button.click, result, i)"
|
|
@@ -5489,9 +5548,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
5489
5548
|
</div>
|
|
5490
5549
|
</ng-container>
|
|
5491
5550
|
<cva-counter-input *ngSwitchCase="ColumnTypes.INPUT_COUNTER"
|
|
5551
|
+
#cellComponentRef
|
|
5492
5552
|
class="inputNumber" #nsCounterInput
|
|
5493
5553
|
[isFormControl]="false"
|
|
5494
|
-
[alignNumber]="
|
|
5554
|
+
[alignNumber]="getAlign(column)"
|
|
5495
5555
|
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5496
5556
|
[value]="result[column.columnDef]"
|
|
5497
5557
|
[required]="getRequired(column)"
|
|
@@ -5502,7 +5562,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
5502
5562
|
(onChange)="onCellValueChange(result, column, $event);">
|
|
5503
5563
|
</cva-counter-input>
|
|
5504
5564
|
<cva-input *ngSwitchCase="ColumnTypes.INPUT"
|
|
5565
|
+
#cellComponentRef
|
|
5505
5566
|
[isFormControl]="false"
|
|
5567
|
+
[alignText]="getAlign(column)"
|
|
5506
5568
|
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5507
5569
|
[text]="result[column.columnDef]"
|
|
5508
5570
|
[minLength]="column.min ? column.min(result) : undefined"
|
|
@@ -5511,7 +5573,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
5511
5573
|
[errorMessages]="getErrorMessageMap(column)"
|
|
5512
5574
|
(onChange)="onCellValueChange(result, column, $event);">
|
|
5513
5575
|
</cva-input>
|
|
5576
|
+
<cva-input *ngSwitchCase="ColumnTypes.INPUT_CURRENCY"
|
|
5577
|
+
#cellComponentRef
|
|
5578
|
+
[isFormControl]="false"
|
|
5579
|
+
[alignText]="getAlign(column)"
|
|
5580
|
+
[disabled]="column.disabled ? column.disabled(result) : false"
|
|
5581
|
+
[text]="result[column.columnDef]"
|
|
5582
|
+
[minLength]="column.min ? column.min(result) : undefined"
|
|
5583
|
+
[maxLength]="column.max ? column.max(result) : undefined"
|
|
5584
|
+
[required]="getRequired(column)"
|
|
5585
|
+
[errorMessages]="getErrorMessageMap(column)"
|
|
5586
|
+
(onChange)="onCellValueChange(result, column, $event);"
|
|
5587
|
+
[pattern]="getIsDecimal(column) ? '^\\d{0,15}(\\.\\d*)?$' : '^\\d{0,15}$'"
|
|
5588
|
+
[formatFunc]="formatFunc">
|
|
5589
|
+
</cva-input>
|
|
5514
5590
|
<cva-date-picker *ngSwitchCase="ColumnTypes.DATE_PICKER"
|
|
5591
|
+
#cellComponentRef
|
|
5515
5592
|
[value]="result[column.columnDef]"
|
|
5516
5593
|
[isFormControl]="false"
|
|
5517
5594
|
[minDate]="column.min ? column.min(result) : null"
|
|
@@ -5522,6 +5599,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
5522
5599
|
(onChange)="onCellValueChange(result, column, $event);">
|
|
5523
5600
|
</cva-date-picker>
|
|
5524
5601
|
<cva-multi-select-autocomplete [isFormControl]="false"
|
|
5602
|
+
#cellComponentRef
|
|
5525
5603
|
*ngSwitchCase="ColumnTypes.MULTI_SELECT_AUTOCOMPLETE"
|
|
5526
5604
|
class="multiSelectAutocomplete"
|
|
5527
5605
|
[isTree]="column.isTree??false"
|
|
@@ -5544,6 +5622,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
5544
5622
|
</mat-checkbox>
|
|
5545
5623
|
</div>
|
|
5546
5624
|
<cva-live-searching *ngSwitchCase="ColumnTypes.LIVE_SEARCHING"
|
|
5625
|
+
#cellComponentRef
|
|
5547
5626
|
[isFormControl]="false" [required]="getRequired(column)"
|
|
5548
5627
|
[row]="result" [columnDef]="column.columnDef"
|
|
5549
5628
|
[searchFn]="column.searchFn"
|
|
@@ -5564,7 +5643,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
5564
5643
|
[attr.colspan]="buttonColspan">
|
|
5565
5644
|
<!-- [fxFlex]="getHeaderButtonWidth(i) + 'px' "-->
|
|
5566
5645
|
<ng-container *ngIf="TableService.getButtonHeader(button) as btnHeader">
|
|
5567
|
-
<button mat-icon-button
|
|
5646
|
+
<button mat-icon-button type="button"
|
|
5568
5647
|
class="{{button.className}}"
|
|
5569
5648
|
color="{{$any(btnHeader).color}}"
|
|
5570
5649
|
(click)="onClick($any(btnHeader).click, null, null)"
|
|
@@ -5590,7 +5669,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
5590
5669
|
<td mat-cell [ngClass]="button.className"
|
|
5591
5670
|
*ngIf="TableService.onDisplayButtonCell(button, cell)"
|
|
5592
5671
|
(click)="$event.stopPropagation()">
|
|
5593
|
-
<button mat-icon-button
|
|
5672
|
+
<button mat-icon-button type="button"
|
|
5594
5673
|
color="{{button.color}}"
|
|
5595
5674
|
[ngClass]="button.className"
|
|
5596
5675
|
(click)="onClick(button.click, cell, i)"
|
|
@@ -5641,7 +5720,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
5641
5720
|
type: Self
|
|
5642
5721
|
}, {
|
|
5643
5722
|
type: Optional
|
|
5644
|
-
}] }], propDecorators: {
|
|
5723
|
+
}] }], propDecorators: { cellComponents: [{
|
|
5724
|
+
type: ViewChildren,
|
|
5725
|
+
args: ['cellComponentRef']
|
|
5726
|
+
}], moduleName: [{
|
|
5645
5727
|
type: Input
|
|
5646
5728
|
}], columns: [{
|
|
5647
5729
|
type: Input
|
|
@@ -5714,8 +5796,9 @@ class CvaRangeDatePickerComponent {
|
|
|
5714
5796
|
// config: NiceComponentLibraryConfig;
|
|
5715
5797
|
// Chỉ bằng false khi trong NsSmartTable thôi @@
|
|
5716
5798
|
isFormControl = true;
|
|
5717
|
-
formControl;
|
|
5799
|
+
formControl = null;
|
|
5718
5800
|
defaultFromDate; // lưu giá trị khởi tạo ban đầu khi truyền từ bên ngoài vào
|
|
5801
|
+
picker;
|
|
5719
5802
|
constructor(dateServiceUtil, ngControl, injector) {
|
|
5720
5803
|
this.dateServiceUtil = dateServiceUtil;
|
|
5721
5804
|
this.injector = injector;
|
|
@@ -5753,6 +5836,9 @@ class CvaRangeDatePickerComponent {
|
|
|
5753
5836
|
this.value.toDate = val;
|
|
5754
5837
|
this.writeValue(this.value);
|
|
5755
5838
|
}
|
|
5839
|
+
getFormControl() {
|
|
5840
|
+
return this.formControl;
|
|
5841
|
+
}
|
|
5756
5842
|
ngOnInit() {
|
|
5757
5843
|
this.callValidator();
|
|
5758
5844
|
}
|
|
@@ -5798,7 +5884,7 @@ class CvaRangeDatePickerComponent {
|
|
|
5798
5884
|
if (ngControl && !this.formControl) {
|
|
5799
5885
|
// Nếu là NsSmartTable thì phải tự new FormControl còn không thì cứ hóng parent FormControl về ^^
|
|
5800
5886
|
if (this.isFormControl) {
|
|
5801
|
-
this.formControl = ngControl.control ? ngControl.control :
|
|
5887
|
+
this.formControl = ngControl.control ? ngControl.control : null;
|
|
5802
5888
|
if (this.formControl && !this.formControl.value) {
|
|
5803
5889
|
this.formControl.setValue(this.value);
|
|
5804
5890
|
}
|
|
@@ -5926,6 +6012,12 @@ class CvaRangeDatePickerComponent {
|
|
|
5926
6012
|
this.onOpenPicker.emit(picker);
|
|
5927
6013
|
}
|
|
5928
6014
|
}
|
|
6015
|
+
openRangePicker(event) {
|
|
6016
|
+
if (!this.getDisabled(this.disabledAll) && this.picker) {
|
|
6017
|
+
event.stopPropagation();
|
|
6018
|
+
this.picker.open();
|
|
6019
|
+
}
|
|
6020
|
+
}
|
|
5929
6021
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaRangeDatePickerComponent, deps: [{ token: DateUtilService }, { token: i1$2.NgControl, optional: true, self: true }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
5930
6022
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: CvaRangeDatePickerComponent, isStandalone: false, selector: "cva-range-date-picker", inputs: { label: "label", placeholderFromDate: "placeholderFromDate", placeholderToDate: "placeholderToDate", disabledAll: "disabledAll", disabledFromDate: "disabledFromDate", value: "value", requiredFromDate: "requiredFromDate", requiredToDate: "requiredToDate", minDate: "minDate", maxDate: "maxDate", errorMessages: "errorMessages", isLabelOutside: "isLabelOutside", isFloatLabel: "isFloatLabel", percentOfLabelOutside: "percentOfLabelOutside", fromDateControlName: "fromDateControlName", toDateControlName: "toDateControlName", isFormControl: "isFormControl" }, outputs: { onChange: "onChange", onOpenPicker: "onOpenPicker" }, providers: [
|
|
5931
6023
|
{ provide: DateAdapter, useClass: NsDateAdapter },
|
|
@@ -5933,7 +6025,7 @@ class CvaRangeDatePickerComponent {
|
|
|
5933
6025
|
provide: MAT_DATE_FORMATS,
|
|
5934
6026
|
useValue: APP_DATE_FORMATS,
|
|
5935
6027
|
},
|
|
5936
|
-
], ngImport: i0, template: `
|
|
6028
|
+
], viewQueries: [{ propertyName: "picker", first: true, predicate: ["picker"], descendants: true }], ngImport: i0, template: `
|
|
5937
6029
|
<div class="cva-range-date-picker"
|
|
5938
6030
|
[ngClass]="{'labelOutside': isLabelOutside, 'float_label': isFloatLabel && !isLabelOutside}"
|
|
5939
6031
|
fxLayout="row" fxLayout.lt-sm="row wrap">
|
|
@@ -5958,11 +6050,13 @@ class CvaRangeDatePickerComponent {
|
|
|
5958
6050
|
<input matStartDate
|
|
5959
6051
|
[(ngModel)]="fromDateValue"
|
|
5960
6052
|
readonly="readonly"
|
|
5961
|
-
[placeholder]="placeholderFromDate|translate"
|
|
6053
|
+
[placeholder]="placeholderFromDate|translate"
|
|
6054
|
+
(click)="openRangePicker($event)">
|
|
5962
6055
|
<input matEndDate
|
|
5963
6056
|
[(ngModel)]="toDateValue"
|
|
5964
6057
|
readOnly="true"
|
|
5965
|
-
[placeholder]="placeholderToDate|translate"
|
|
6058
|
+
[placeholder]="placeholderToDate|translate"
|
|
6059
|
+
(click)="openRangePicker($event)">
|
|
5966
6060
|
</mat-date-range-input>
|
|
5967
6061
|
|
|
5968
6062
|
<mat-datepicker-toggle matPrefix [for]="picker"
|
|
@@ -5978,11 +6072,11 @@ class CvaRangeDatePickerComponent {
|
|
|
5978
6072
|
|
|
5979
6073
|
<mat-date-range-picker #picker (opened)="openPicker(picker)"></mat-date-range-picker>
|
|
5980
6074
|
<mat-hint style="color: red" *ngIf="NsValiator.invalid(formControl)">
|
|
5981
|
-
{{ NsValiator.
|
|
6075
|
+
{{ NsValiator.getErrorMessageV1(formControl, errorMessages).msg | translate: NsValiator.getErrorMessageV1(formControl, errorMessages).params }}
|
|
5982
6076
|
</mat-hint>
|
|
5983
6077
|
</mat-form-field>
|
|
5984
6078
|
</div>
|
|
5985
|
-
`, 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: "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.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: i5$
|
|
6079
|
+
`, 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: "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.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: i5$1.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i5$1.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i5$1.MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i5$1.MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i5$1.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { 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.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i6.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8$1.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$1.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" }] });
|
|
5986
6080
|
}
|
|
5987
6081
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaRangeDatePickerComponent, decorators: [{
|
|
5988
6082
|
type: Component,
|
|
@@ -6014,11 +6108,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
6014
6108
|
<input matStartDate
|
|
6015
6109
|
[(ngModel)]="fromDateValue"
|
|
6016
6110
|
readonly="readonly"
|
|
6017
|
-
[placeholder]="placeholderFromDate|translate"
|
|
6111
|
+
[placeholder]="placeholderFromDate|translate"
|
|
6112
|
+
(click)="openRangePicker($event)">
|
|
6018
6113
|
<input matEndDate
|
|
6019
6114
|
[(ngModel)]="toDateValue"
|
|
6020
6115
|
readOnly="true"
|
|
6021
|
-
[placeholder]="placeholderToDate|translate"
|
|
6116
|
+
[placeholder]="placeholderToDate|translate"
|
|
6117
|
+
(click)="openRangePicker($event)">
|
|
6022
6118
|
</mat-date-range-input>
|
|
6023
6119
|
|
|
6024
6120
|
<mat-datepicker-toggle matPrefix [for]="picker"
|
|
@@ -6034,7 +6130,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
6034
6130
|
|
|
6035
6131
|
<mat-date-range-picker #picker (opened)="openPicker(picker)"></mat-date-range-picker>
|
|
6036
6132
|
<mat-hint style="color: red" *ngIf="NsValiator.invalid(formControl)">
|
|
6037
|
-
{{ NsValiator.
|
|
6133
|
+
{{ NsValiator.getErrorMessageV1(formControl, errorMessages).msg | translate: NsValiator.getErrorMessageV1(formControl, errorMessages).params }}
|
|
6038
6134
|
</mat-hint>
|
|
6039
6135
|
</mat-form-field>
|
|
6040
6136
|
</div>
|
|
@@ -6089,6 +6185,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
6089
6185
|
type: Input
|
|
6090
6186
|
}], isFormControl: [{
|
|
6091
6187
|
type: Input
|
|
6188
|
+
}], picker: [{
|
|
6189
|
+
type: ViewChild,
|
|
6190
|
+
args: ['picker']
|
|
6092
6191
|
}] } });
|
|
6093
6192
|
|
|
6094
6193
|
class DragDropDirective {
|
|
@@ -6280,7 +6379,7 @@ class CvaMultiUploadComponent {
|
|
|
6280
6379
|
<mat-error *ngIf="typeError!==null">{{ typeError + ' ' + ('common.is.not-accept' | translate) }}</mat-error>
|
|
6281
6380
|
</div>
|
|
6282
6381
|
</div>
|
|
6283
|
-
`, 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: i7.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" }] });
|
|
6382
|
+
`, 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: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8$1.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$1.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" }] });
|
|
6284
6383
|
}
|
|
6285
6384
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaMultiUploadComponent, decorators: [{
|
|
6286
6385
|
type: Component,
|
|
@@ -6697,7 +6796,7 @@ class CvaUploadFileComponent {
|
|
|
6697
6796
|
<mat-error *ngIf="isRectangleError">{{ ('common.error.image.rectangle' | translate) }}</mat-error>
|
|
6698
6797
|
</div>
|
|
6699
6798
|
</div>
|
|
6700
|
-
`, 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" }] });
|
|
6799
|
+
`, 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$1.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$1.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" }] });
|
|
6701
6800
|
}
|
|
6702
6801
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaUploadFileComponent, decorators: [{
|
|
6703
6802
|
type: Component,
|
|
@@ -6883,7 +6982,7 @@ class CvaMultiUploadImgComponent {
|
|
|
6883
6982
|
></cva-upload-file>
|
|
6884
6983
|
</ng-container>
|
|
6885
6984
|
</div>
|
|
6886
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { 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: "component", type: CvaUploadFileComponent, selector: "cva-upload-file", inputs: ["files", "maxSize", "height", "width", "isSquareImg", "isRectangleImg", "accept", "label", "placeholder", "required", "disabled", "percentOfLabelOutside", "value", "defaultUrl"], outputs: ["onFileChange", "onFileDelete"] }] });
|
|
6985
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i8$1.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: "component", type: CvaUploadFileComponent, selector: "cva-upload-file", inputs: ["files", "maxSize", "height", "width", "isSquareImg", "isRectangleImg", "accept", "label", "placeholder", "required", "disabled", "percentOfLabelOutside", "value", "defaultUrl"], outputs: ["onFileChange", "onFileDelete"] }] });
|
|
6887
6986
|
}
|
|
6888
6987
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaMultiUploadImgComponent, decorators: [{
|
|
6889
6988
|
type: Component,
|
|
@@ -7252,7 +7351,7 @@ class CvaTreeComponent {
|
|
|
7252
7351
|
</mat-tree>
|
|
7253
7352
|
</div>
|
|
7254
7353
|
</div>
|
|
7255
|
-
`, 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: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8$
|
|
7354
|
+
`, 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: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i7.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: i6$1.MatNestedTreeNode, selector: "mat-nested-tree-node", inputs: ["matNestedTreeNode", "disabled", "tabIndex"], outputs: ["activation", "expandedChange"], exportAs: ["matNestedTreeNode"] }, { kind: "directive", type: i6$1.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { kind: "directive", type: i6$1.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { kind: "component", type: i6$1.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { kind: "directive", type: i6$1.MatTreeNode, selector: "mat-tree-node", inputs: ["tabIndex", "disabled"], outputs: ["activation", "expandedChange"], exportAs: ["matTreeNode"] }, { kind: "directive", type: i6$1.MatTreeNodeOutlet, selector: "[matTreeNodeOutlet]" }, { kind: "directive", type: i8$1.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$1.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: 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: i1.TranslatePipe, name: "translate" }] });
|
|
7256
7355
|
}
|
|
7257
7356
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaTreeComponent, decorators: [{
|
|
7258
7357
|
type: Component,
|
|
@@ -7473,7 +7572,7 @@ class CvaRadiobuttonComponent {
|
|
|
7473
7572
|
<mat-hint align="start" *ngIf="NsValidator.invalid(control)">{{NsValidator.getErrorMessage(control, errorMessages) | translate}}</mat-hint>
|
|
7474
7573
|
</div>
|
|
7475
7574
|
</div>
|
|
7476
|
-
`, 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$
|
|
7575
|
+
`, 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$2.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i4$2.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$1.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$1.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" }] });
|
|
7477
7576
|
}
|
|
7478
7577
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaRadiobuttonComponent, decorators: [{
|
|
7479
7578
|
type: Component,
|
|
@@ -7646,7 +7745,7 @@ class CvaFlatTreeNodeLeftComponent {
|
|
|
7646
7745
|
</mat-checkbox>
|
|
7647
7746
|
</ng-container>
|
|
7648
7747
|
</ng-container>
|
|
7649
|
-
`, isInline: true, dependencies: [{ 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
|
|
7748
|
+
`, isInline: true, dependencies: [{ 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.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: "directive", type: i8$1.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"] }] });
|
|
7650
7749
|
}
|
|
7651
7750
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaFlatTreeNodeLeftComponent, decorators: [{
|
|
7652
7751
|
type: Component,
|
|
@@ -7769,7 +7868,7 @@ class CvaFlatTreeNodeRightComponent {
|
|
|
7769
7868
|
</div>
|
|
7770
7869
|
</ng-container>
|
|
7771
7870
|
</ng-container>
|
|
7772
|
-
`, isInline: true, dependencies: [{ 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: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { 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"] }] });
|
|
7871
|
+
`, isInline: true, dependencies: [{ 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: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: i8$1.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$1.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"] }] });
|
|
7773
7872
|
}
|
|
7774
7873
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaFlatTreeNodeRightComponent, decorators: [{
|
|
7775
7874
|
type: Component,
|
|
@@ -8500,7 +8599,7 @@ class CvaFlatTreeComponent {
|
|
|
8500
8599
|
</mat-hint>
|
|
8501
8600
|
</div>
|
|
8502
8601
|
</div>
|
|
8503
|
-
`, isInline: true, dependencies: [{ 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.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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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:
|
|
8602
|
+
`, isInline: true, dependencies: [{ 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.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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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: i8.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: i6$2.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: i10.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i10.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i10.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i8$1.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$1.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.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: "component", type: CvaFlatTreeNodeLeftComponent, selector: "cva-flat-tree-node-left", inputs: ["treeControl", "isHideCheckbox", "node", "nodeClicked"], outputs: ["toggle", "onParentNodeClick", "onLeafNodeClick", "ngModelParentChange", "ngModelLeafChange"] }, { kind: "component", type: CvaFlatTreeNodeRightComponent, selector: "cva-flat-tree-node-right", inputs: ["treeControl", "node", "isView"], outputs: ["toggle", "deSelectLeafNode", "deSelectParentNode"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
|
|
8504
8603
|
}
|
|
8505
8604
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaFlatTreeComponent, decorators: [{
|
|
8506
8605
|
type: Component,
|
|
@@ -9043,7 +9142,7 @@ class CvaQuillEditorComponent {
|
|
|
9043
9142
|
</mat-hint>
|
|
9044
9143
|
</div>
|
|
9045
9144
|
</div>
|
|
9046
|
-
`, 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$
|
|
9145
|
+
`, 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$3.QuillEditorComponent, selector: "quill-editor" }, { kind: "directive", type: i8$1.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$1.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 });
|
|
9047
9146
|
}
|
|
9048
9147
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: CvaQuillEditorComponent, decorators: [{
|
|
9049
9148
|
type: Component,
|
|
@@ -9472,7 +9571,7 @@ class NiceComponentLibraryModule {
|
|
|
9472
9571
|
CvaLiveSearchingComponent], imports: [CommonModule,
|
|
9473
9572
|
FormsModule,
|
|
9474
9573
|
ReactiveFormsModule,
|
|
9475
|
-
AngularMaterialModule, i1$4.RouterModule, i1.TranslateModule, i4$
|
|
9574
|
+
AngularMaterialModule, i1$4.RouterModule, i1.TranslateModule, i4$3.QuillModule, FlexLayoutModule], exports: [CvaTableComponent,
|
|
9476
9575
|
CvaSmartTableComponent,
|
|
9477
9576
|
CvaInputComponent,
|
|
9478
9577
|
CvaCounterInputComponent,
|
|
@@ -9598,5 +9697,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
9598
9697
|
* Generated bundle index. Do not edit.
|
|
9599
9698
|
*/
|
|
9600
9699
|
|
|
9601
|
-
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 };
|
|
9700
|
+
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, NumericInputFormat, OAuth2AuthenticationDto, PatternDirective, PermissionModel, Principal, RangeDatePickerModel, RoleModel, SecureImgPipe, SelectModel, SingletonTranslateService, StylePaginatorDirective, TableFooterModel, TablePagingRequestModel, TablePagingResponseModel, TableService, UIState, UploadModel, UtilsService, ValidatorService };
|
|
9602
9701
|
//# sourceMappingURL=c10t-nice-component-library.mjs.map
|