@c10t/nice-component-library 0.0.2-beta → 0.0.4-beta
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.
|
@@ -477,6 +477,14 @@ var ActionTypeEnum;
|
|
|
477
477
|
ActionTypeEnum["_VIEW"] = "view";
|
|
478
478
|
})(ActionTypeEnum || (ActionTypeEnum = {}));
|
|
479
479
|
|
|
480
|
+
var BaseStatusEnum;
|
|
481
|
+
(function (BaseStatusEnum) {
|
|
482
|
+
BaseStatusEnum["_"] = "base.status.all";
|
|
483
|
+
BaseStatusEnum["_DRAFT"] = "base.status.draft";
|
|
484
|
+
BaseStatusEnum["_APPROVED"] = "base.status.approved";
|
|
485
|
+
BaseStatusEnum["_REJECTED"] = "base.status.rejected";
|
|
486
|
+
})(BaseStatusEnum || (BaseStatusEnum = {}));
|
|
487
|
+
|
|
480
488
|
class BaseTableComponent {
|
|
481
489
|
activatedRoute;
|
|
482
490
|
authoritiesService;
|
|
@@ -718,6 +726,134 @@ class UtilsService {
|
|
|
718
726
|
this.transService = transService;
|
|
719
727
|
this.toastr = toastr;
|
|
720
728
|
}
|
|
729
|
+
static getEnumValue(o, value) {
|
|
730
|
+
return o['_' + value]; // No type safety here unfrotunately
|
|
731
|
+
}
|
|
732
|
+
static calcPosition(e, results, paging) {
|
|
733
|
+
return (paging ? ((paging.pageNumber - 1) * paging.pageSize) : 0) + (results.data.indexOf(e) + 1);
|
|
734
|
+
}
|
|
735
|
+
static reduceEntityAttributeForFormControl(formGroup, e, dateRangeConfigList) {
|
|
736
|
+
return Object.keys(formGroup.controls).reduce(reduceEntityAttributeForFormControlByControlName, {});
|
|
737
|
+
function reduceEntityAttributeForFormControlByControlName(formControl, ctrlName) {
|
|
738
|
+
if (e) {
|
|
739
|
+
let includesOfDateRangeConfig = false;
|
|
740
|
+
if (dateRangeConfigList) {
|
|
741
|
+
for (const dateRangeConfig of dateRangeConfigList) {
|
|
742
|
+
if (dateRangeConfig
|
|
743
|
+
&& [dateRangeConfig.dateRangeControlName,
|
|
744
|
+
dateRangeConfig.fromDateControlName, dateRangeConfig.toDateControlName].includes(ctrlName)) {
|
|
745
|
+
includesOfDateRangeConfig = true;
|
|
746
|
+
switch (ctrlName) {
|
|
747
|
+
case dateRangeConfig.dateRangeControlName:
|
|
748
|
+
formControl[ctrlName] = {
|
|
749
|
+
fromDate: e[dateRangeConfig.fromDateControlName] ? e[dateRangeConfig.fromDateControlName] : null,
|
|
750
|
+
toDate: e[dateRangeConfig.toDateControlName] ? e[dateRangeConfig.toDateControlName] : null,
|
|
751
|
+
};
|
|
752
|
+
break;
|
|
753
|
+
case dateRangeConfig.fromDateControlName:
|
|
754
|
+
formControl[ctrlName] = e[ctrlName];
|
|
755
|
+
if (formControl[dateRangeConfig.dateRangeControlName]
|
|
756
|
+
&& typeof (formControl[dateRangeConfig.dateRangeControlName]) === 'object') {
|
|
757
|
+
formControl[dateRangeConfig.dateRangeControlName].fromDate = e[ctrlName];
|
|
758
|
+
}
|
|
759
|
+
break;
|
|
760
|
+
case dateRangeConfig.toDateControlName:
|
|
761
|
+
formControl[ctrlName] = e[ctrlName];
|
|
762
|
+
if (formControl[dateRangeConfig.dateRangeControlName]
|
|
763
|
+
&& typeof (formControl[dateRangeConfig.dateRangeControlName]) === 'object') {
|
|
764
|
+
formControl[dateRangeConfig.dateRangeControlName].toDate = e[ctrlName];
|
|
765
|
+
}
|
|
766
|
+
break;
|
|
767
|
+
default:
|
|
768
|
+
break;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
if (!includesOfDateRangeConfig) {
|
|
774
|
+
if (typeof (e[ctrlName]) === 'boolean') {
|
|
775
|
+
formControl[ctrlName] = e[ctrlName] ? '1' : '0';
|
|
776
|
+
}
|
|
777
|
+
else if (e[ctrlName] instanceof Array) {
|
|
778
|
+
formControl[ctrlName] = e[ctrlName];
|
|
779
|
+
}
|
|
780
|
+
else if (typeof (e[ctrlName]) === 'object') {
|
|
781
|
+
formControl[ctrlName] = e[ctrlName]
|
|
782
|
+
? (e[ctrlName].id
|
|
783
|
+
? e[ctrlName].id
|
|
784
|
+
: (e[ctrlName].code ? e[ctrlName].code : ''))
|
|
785
|
+
: null;
|
|
786
|
+
}
|
|
787
|
+
else {
|
|
788
|
+
formControl[ctrlName] = (e[ctrlName] != null && e[ctrlName] != undefined) ? e[ctrlName] : '';
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
else {
|
|
793
|
+
formControl[ctrlName] = '';
|
|
794
|
+
}
|
|
795
|
+
return formControl;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
static cloneAbstractControl(control) {
|
|
799
|
+
let newControl;
|
|
800
|
+
if (control instanceof FormGroup) {
|
|
801
|
+
const formGroup = new FormGroup({}, control.validator, control.asyncValidator);
|
|
802
|
+
const controls = control.controls;
|
|
803
|
+
if (controls) {
|
|
804
|
+
Object.keys(controls).forEach(key => {
|
|
805
|
+
const tempControl = UtilsService.cloneAbstractControl(controls[key]);
|
|
806
|
+
if (tempControl) {
|
|
807
|
+
formGroup.addControl(key, tempControl);
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
newControl = formGroup;
|
|
812
|
+
}
|
|
813
|
+
else if (control instanceof FormArray) {
|
|
814
|
+
const formArray = new FormArray([], control.validator, control.asyncValidator);
|
|
815
|
+
const controls = control.controls;
|
|
816
|
+
if (controls) {
|
|
817
|
+
controls.forEach((formControl) => {
|
|
818
|
+
const tempControl = UtilsService.cloneAbstractControl(formControl);
|
|
819
|
+
if (tempControl) {
|
|
820
|
+
formArray.push(tempControl);
|
|
821
|
+
}
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
newControl = formArray;
|
|
825
|
+
}
|
|
826
|
+
else if (control instanceof FormControl || this.isNgControl(control)) {
|
|
827
|
+
newControl = new FormControl(control.value, control.validator, control.asyncValidator);
|
|
828
|
+
}
|
|
829
|
+
else {
|
|
830
|
+
console.error('Error: unexpected formControl value', control);
|
|
831
|
+
}
|
|
832
|
+
if (control.disabled && newControl)
|
|
833
|
+
newControl.disable({ emitEvent: false });
|
|
834
|
+
return newControl;
|
|
835
|
+
}
|
|
836
|
+
static isNgControl(control) {
|
|
837
|
+
return control && 'control' in control;
|
|
838
|
+
}
|
|
839
|
+
static convertTreeDataToAutocompleteData(treeFields, symbol, hasChildFn, nodes, prefixDisplayValue) {
|
|
840
|
+
let result = [];
|
|
841
|
+
if (treeFields) {
|
|
842
|
+
for (const node of nodes) {
|
|
843
|
+
const value = treeFields.value(node).toString();
|
|
844
|
+
const displayValue = prefixDisplayValue ? prefixDisplayValue + symbol + treeFields.display(node) : treeFields.display(node);
|
|
845
|
+
const hasChild = hasChildFn(0, node);
|
|
846
|
+
if (hasChild) {
|
|
847
|
+
const childen = treeFields.children(node);
|
|
848
|
+
result.push(...this.convertTreeDataToAutocompleteData(treeFields, symbol, hasChildFn, childen, displayValue));
|
|
849
|
+
}
|
|
850
|
+
else {
|
|
851
|
+
result.push(new SelectModel(value, displayValue, hasChild, node));
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
return result;
|
|
856
|
+
}
|
|
721
857
|
strFormat(str, replacement) {
|
|
722
858
|
let a = this.transService.instant(str);
|
|
723
859
|
if (replacement === null || replacement === undefined || replacement.length === 0) {
|
|
@@ -820,7 +956,7 @@ class UtilsService {
|
|
|
820
956
|
const strOk = this.transService.instant(strOkText);
|
|
821
957
|
const strCancel = this.transService.instant(strCancelTex);
|
|
822
958
|
const re = /\./gi;
|
|
823
|
-
const customClass = (strCustomClass ? strCustomClass : strTitle).replace(re,
|
|
959
|
+
const customClass = (strCustomClass ? strCustomClass : strTitle).replace(re, '-');
|
|
824
960
|
return this.dialog.open(CvaCustomDialogComponent, confirmDialogConfig ? confirmDialogConfig : {
|
|
825
961
|
width: '500px',
|
|
826
962
|
data: {
|
|
@@ -838,7 +974,7 @@ class UtilsService {
|
|
|
838
974
|
const strOk = this.transService.instant(strOkText);
|
|
839
975
|
const strCancel = this.transService.instant(strCancelTex);
|
|
840
976
|
const re = /\./gi;
|
|
841
|
-
const customClass = (strCustomClass ? strCustomClass : str1).replace(re,
|
|
977
|
+
const customClass = (strCustomClass ? strCustomClass : str1).replace(re, '-');
|
|
842
978
|
return this.dialog.open(CvaCustomDialogComponent, confirmInputDialogConfig ? confirmInputDialogConfig : {
|
|
843
979
|
width: '500px',
|
|
844
980
|
data: {
|
|
@@ -859,139 +995,12 @@ class UtilsService {
|
|
|
859
995
|
type: 'application/json',
|
|
860
996
|
});
|
|
861
997
|
}
|
|
862
|
-
static getEnumValue(o, value) {
|
|
863
|
-
return o['_' + value]; // No type safety here unfrotunately
|
|
864
|
-
}
|
|
865
|
-
static calcPosition(e, results, paging) {
|
|
866
|
-
return (paging ? ((paging.pageNumber - 1) * paging.pageSize) : 0) + (results.data.indexOf(e) + 1);
|
|
867
|
-
}
|
|
868
|
-
static reduceEntityAttributeForFormControl(formGroup, e, dateRangeConfigList) {
|
|
869
|
-
return Object.keys(formGroup.controls).reduce(reduceEntityAttributeForFormControlByControlName, {});
|
|
870
|
-
function reduceEntityAttributeForFormControlByControlName(formControl, ctrlName) {
|
|
871
|
-
if (e) {
|
|
872
|
-
let includesOfDateRangeConfig = false;
|
|
873
|
-
if (dateRangeConfigList) {
|
|
874
|
-
for (const dateRangeConfig of dateRangeConfigList) {
|
|
875
|
-
if (dateRangeConfig
|
|
876
|
-
&& [dateRangeConfig.dateRangeControlName,
|
|
877
|
-
dateRangeConfig.fromDateControlName, dateRangeConfig.toDateControlName].includes(ctrlName)) {
|
|
878
|
-
includesOfDateRangeConfig = true;
|
|
879
|
-
switch (ctrlName) {
|
|
880
|
-
case dateRangeConfig.dateRangeControlName:
|
|
881
|
-
formControl[ctrlName] = {
|
|
882
|
-
fromDate: e[dateRangeConfig.fromDateControlName] ? e[dateRangeConfig.fromDateControlName] : null,
|
|
883
|
-
toDate: e[dateRangeConfig.toDateControlName] ? e[dateRangeConfig.toDateControlName] : null
|
|
884
|
-
};
|
|
885
|
-
break;
|
|
886
|
-
case dateRangeConfig.fromDateControlName:
|
|
887
|
-
formControl[ctrlName] = e[ctrlName];
|
|
888
|
-
if (formControl[dateRangeConfig.dateRangeControlName]
|
|
889
|
-
&& typeof (formControl[dateRangeConfig.dateRangeControlName]) === 'object') {
|
|
890
|
-
formControl[dateRangeConfig.dateRangeControlName].fromDate = e[ctrlName];
|
|
891
|
-
}
|
|
892
|
-
break;
|
|
893
|
-
case dateRangeConfig.toDateControlName:
|
|
894
|
-
formControl[ctrlName] = e[ctrlName];
|
|
895
|
-
if (formControl[dateRangeConfig.dateRangeControlName]
|
|
896
|
-
&& typeof (formControl[dateRangeConfig.dateRangeControlName]) === 'object') {
|
|
897
|
-
formControl[dateRangeConfig.dateRangeControlName].toDate = e[ctrlName];
|
|
898
|
-
}
|
|
899
|
-
break;
|
|
900
|
-
default:
|
|
901
|
-
break;
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
if (!includesOfDateRangeConfig) {
|
|
907
|
-
if (typeof (e[ctrlName]) === 'boolean') {
|
|
908
|
-
formControl[ctrlName] = e[ctrlName] ? '1' : '0';
|
|
909
|
-
}
|
|
910
|
-
else if (e[ctrlName] instanceof Array) {
|
|
911
|
-
formControl[ctrlName] = e[ctrlName];
|
|
912
|
-
}
|
|
913
|
-
else if (typeof (e[ctrlName]) === 'object') {
|
|
914
|
-
formControl[ctrlName] = e[ctrlName]
|
|
915
|
-
? (e[ctrlName].id
|
|
916
|
-
? e[ctrlName].id
|
|
917
|
-
: (e[ctrlName].code ? e[ctrlName].code : ''))
|
|
918
|
-
: null;
|
|
919
|
-
}
|
|
920
|
-
else {
|
|
921
|
-
formControl[ctrlName] = (e[ctrlName] != null && e[ctrlName] != undefined) ? e[ctrlName] : '';
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
else {
|
|
926
|
-
formControl[ctrlName] = '';
|
|
927
|
-
}
|
|
928
|
-
return formControl;
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
static cloneAbstractControl(control) {
|
|
932
|
-
let newControl;
|
|
933
|
-
if (control instanceof FormGroup) {
|
|
934
|
-
const formGroup = new FormGroup({}, control.validator, control.asyncValidator);
|
|
935
|
-
const controls = control.controls;
|
|
936
|
-
if (controls) {
|
|
937
|
-
Object.keys(controls).forEach(key => {
|
|
938
|
-
const tempControl = UtilsService.cloneAbstractControl(controls[key]);
|
|
939
|
-
if (tempControl) {
|
|
940
|
-
formGroup.addControl(key, tempControl);
|
|
941
|
-
}
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
newControl = formGroup;
|
|
945
|
-
}
|
|
946
|
-
else if (control instanceof FormArray) {
|
|
947
|
-
const formArray = new FormArray([], control.validator, control.asyncValidator);
|
|
948
|
-
const controls = control.controls;
|
|
949
|
-
if (controls) {
|
|
950
|
-
controls.forEach((formControl) => {
|
|
951
|
-
const tempControl = UtilsService.cloneAbstractControl(formControl);
|
|
952
|
-
if (tempControl) {
|
|
953
|
-
formArray.push(tempControl);
|
|
954
|
-
}
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
|
-
newControl = formArray;
|
|
958
|
-
}
|
|
959
|
-
else if (control instanceof FormControl || this.isNgControl(control)) {
|
|
960
|
-
newControl = new FormControl(control.value, control.validator, control.asyncValidator);
|
|
961
|
-
}
|
|
962
|
-
else {
|
|
963
|
-
console.error('Error: unexpected formControl value', control);
|
|
964
|
-
}
|
|
965
|
-
if (control.disabled && newControl)
|
|
966
|
-
newControl.disable({ emitEvent: false });
|
|
967
|
-
return newControl;
|
|
968
|
-
}
|
|
969
|
-
static isNgControl(control) {
|
|
970
|
-
return control && 'control' in control;
|
|
971
|
-
}
|
|
972
|
-
static convertTreeDataToAutocompleteData(treeFields, symbol, hasChildFn, nodes, prefixDisplayValue) {
|
|
973
|
-
let result = [];
|
|
974
|
-
if (treeFields) {
|
|
975
|
-
for (const node of nodes) {
|
|
976
|
-
const value = treeFields.value(node).toString();
|
|
977
|
-
const displayValue = prefixDisplayValue ? prefixDisplayValue + symbol + treeFields.display(node) : treeFields.display(node);
|
|
978
|
-
const hasChild = hasChildFn(0, node);
|
|
979
|
-
if (hasChild) {
|
|
980
|
-
const childen = treeFields.children(node);
|
|
981
|
-
result.push(...this.convertTreeDataToAutocompleteData(treeFields, symbol, hasChildFn, childen, displayValue));
|
|
982
|
-
}
|
|
983
|
-
else {
|
|
984
|
-
result.push(new SelectModel(value, displayValue, hasChild, node));
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
return result;
|
|
989
|
-
}
|
|
990
998
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: UtilsService, deps: [{ token: i1$1.MatDialog }, { token: i1.TranslateService }, { token: i3$1.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
991
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: UtilsService });
|
|
999
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: UtilsService, providedIn: 'root' });
|
|
992
1000
|
}
|
|
993
1001
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: UtilsService, decorators: [{
|
|
994
|
-
type: Injectable
|
|
1002
|
+
type: Injectable,
|
|
1003
|
+
args: [{ providedIn: 'root' }]
|
|
995
1004
|
}], ctorParameters: () => [{ type: i1$1.MatDialog }, { type: i1.TranslateService }, { type: i3$1.ToastrService }] });
|
|
996
1005
|
|
|
997
1006
|
class ApiService {
|
|
@@ -1037,7 +1046,7 @@ class ApiService {
|
|
|
1037
1046
|
delete(nativeUrl, options, baseUrl) {
|
|
1038
1047
|
return this.http.delete(baseUrl ? (baseUrl + nativeUrl) : this.getFullUrl(nativeUrl), options ? {
|
|
1039
1048
|
headers: options.headers,
|
|
1040
|
-
params: options.params
|
|
1049
|
+
params: options.params,
|
|
1041
1050
|
} : {});
|
|
1042
1051
|
}
|
|
1043
1052
|
saveFile(nativeUrl, obj, options, baseUrl, onErrorFunc) {
|
|
@@ -1068,10 +1077,11 @@ class ApiService {
|
|
|
1068
1077
|
});
|
|
1069
1078
|
}
|
|
1070
1079
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ApiService, deps: [{ token: i1$3.HttpClient }, { token: i2$1.FileSaverService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1071
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ApiService });
|
|
1080
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ApiService, providedIn: 'root' });
|
|
1072
1081
|
}
|
|
1073
1082
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ApiService, decorators: [{
|
|
1074
|
-
type: Injectable
|
|
1083
|
+
type: Injectable,
|
|
1084
|
+
args: [{ providedIn: 'root' }]
|
|
1075
1085
|
}], ctorParameters: () => [{ type: i1$3.HttpClient }, { type: i2$1.FileSaverService }, { type: i0.Injector }] });
|
|
1076
1086
|
|
|
1077
1087
|
class FormStateService {
|
|
@@ -1081,10 +1091,11 @@ class FormStateService {
|
|
|
1081
1091
|
this.subject.next(mapState);
|
|
1082
1092
|
}
|
|
1083
1093
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: FormStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1084
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: FormStateService });
|
|
1094
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: FormStateService, providedIn: 'root' });
|
|
1085
1095
|
}
|
|
1086
1096
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: FormStateService, decorators: [{
|
|
1087
|
-
type: Injectable
|
|
1097
|
+
type: Injectable,
|
|
1098
|
+
args: [{ providedIn: 'root' }]
|
|
1088
1099
|
}] });
|
|
1089
1100
|
|
|
1090
1101
|
class AuthoritiesService {
|
|
@@ -1111,10 +1122,11 @@ class AuthoritiesService {
|
|
|
1111
1122
|
return this.me.authorities.map(x => x.authority.toString().toLowerCase()).includes(authority.toLowerCase());
|
|
1112
1123
|
}
|
|
1113
1124
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: AuthoritiesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1114
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: AuthoritiesService });
|
|
1125
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: AuthoritiesService, providedIn: 'root' });
|
|
1115
1126
|
}
|
|
1116
1127
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: AuthoritiesService, decorators: [{
|
|
1117
|
-
type: Injectable
|
|
1128
|
+
type: Injectable,
|
|
1129
|
+
args: [{ providedIn: 'root' }]
|
|
1118
1130
|
}] });
|
|
1119
1131
|
|
|
1120
1132
|
class BaseSearchComponent extends BaseTableComponent {
|
|
@@ -1516,10 +1528,11 @@ class TableService {
|
|
|
1516
1528
|
class LoaderService {
|
|
1517
1529
|
isLoading = new BehaviorSubject(false);
|
|
1518
1530
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: LoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1519
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: LoaderService });
|
|
1531
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: LoaderService, providedIn: 'root' });
|
|
1520
1532
|
}
|
|
1521
1533
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: LoaderService, decorators: [{
|
|
1522
|
-
type: Injectable
|
|
1534
|
+
type: Injectable,
|
|
1535
|
+
args: [{ providedIn: 'root' }]
|
|
1523
1536
|
}] });
|
|
1524
1537
|
|
|
1525
1538
|
class ValidatorService {
|
|
@@ -1737,7 +1750,7 @@ class ValidatorService {
|
|
|
1737
1750
|
required: ValidatorService.getRequired(column),
|
|
1738
1751
|
maxLength: column.max ? column.max(row) : undefined,
|
|
1739
1752
|
minLength: column.min ? column.min(row) : undefined,
|
|
1740
|
-
pattern: undefined
|
|
1753
|
+
pattern: undefined,
|
|
1741
1754
|
}));
|
|
1742
1755
|
}
|
|
1743
1756
|
tempControl.updateValueAndValidity();
|
|
@@ -1782,10 +1795,11 @@ class ValidatorService {
|
|
|
1782
1795
|
return validator;
|
|
1783
1796
|
}
|
|
1784
1797
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ValidatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1785
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ValidatorService });
|
|
1798
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ValidatorService, providedIn: 'root' });
|
|
1786
1799
|
}
|
|
1787
1800
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ValidatorService, decorators: [{
|
|
1788
|
-
type: Injectable
|
|
1801
|
+
type: Injectable,
|
|
1802
|
+
args: [{ providedIn: 'root' }]
|
|
1789
1803
|
}] });
|
|
1790
1804
|
|
|
1791
1805
|
class CvaCounterInputComponent {
|
|
@@ -3566,7 +3580,7 @@ class DateUtilService {
|
|
|
3566
3580
|
}
|
|
3567
3581
|
convertToDateIgnoreTimeZone(dateStr) {
|
|
3568
3582
|
if (dateStr != null) {
|
|
3569
|
-
return new Date(dateStr.replace(
|
|
3583
|
+
return new Date(dateStr.replace('Z', ''));
|
|
3570
3584
|
}
|
|
3571
3585
|
else {
|
|
3572
3586
|
return null;
|
|
@@ -3576,10 +3590,11 @@ class DateUtilService {
|
|
|
3576
3590
|
return date ? new Date(date.replace(' ', 'T')) : new Date(1900, 1, 1);
|
|
3577
3591
|
}
|
|
3578
3592
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DateUtilService, deps: [{ token: i2.DatePipe }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3579
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DateUtilService });
|
|
3593
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DateUtilService, providedIn: 'root' });
|
|
3580
3594
|
}
|
|
3581
3595
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DateUtilService, decorators: [{
|
|
3582
|
-
type: Injectable
|
|
3596
|
+
type: Injectable,
|
|
3597
|
+
args: [{ providedIn: 'root' }]
|
|
3583
3598
|
}], ctorParameters: () => [{ type: i2.DatePipe }, { type: i0.Injector }] });
|
|
3584
3599
|
|
|
3585
3600
|
class CvaDatePickerComponent {
|
|
@@ -8589,10 +8604,11 @@ class JsogHttpInterceptor {
|
|
|
8589
8604
|
}));
|
|
8590
8605
|
}
|
|
8591
8606
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: JsogHttpInterceptor, deps: [{ token: i1$6.JsogService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8592
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: JsogHttpInterceptor });
|
|
8607
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: JsogHttpInterceptor, providedIn: 'root' });
|
|
8593
8608
|
}
|
|
8594
8609
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: JsogHttpInterceptor, decorators: [{
|
|
8595
|
-
type: Injectable
|
|
8610
|
+
type: Injectable,
|
|
8611
|
+
args: [{ providedIn: 'root' }]
|
|
8596
8612
|
}], ctorParameters: () => [{ type: i1$6.JsogService }] });
|
|
8597
8613
|
|
|
8598
8614
|
class LoaderInterceptor {
|
|
@@ -8616,7 +8632,7 @@ class LoaderInterceptor {
|
|
|
8616
8632
|
}
|
|
8617
8633
|
else {
|
|
8618
8634
|
request = request.clone({
|
|
8619
|
-
headers: request.headers.delete('is_image')
|
|
8635
|
+
headers: request.headers.delete('is_image'),
|
|
8620
8636
|
});
|
|
8621
8637
|
}
|
|
8622
8638
|
return next.handle(request).pipe(map((event) => {
|
|
@@ -8635,10 +8651,11 @@ class LoaderInterceptor {
|
|
|
8635
8651
|
}));
|
|
8636
8652
|
}
|
|
8637
8653
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: LoaderInterceptor, deps: [{ token: LoaderService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8638
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: LoaderInterceptor });
|
|
8654
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: LoaderInterceptor, providedIn: 'root' });
|
|
8639
8655
|
}
|
|
8640
8656
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: LoaderInterceptor, decorators: [{
|
|
8641
|
-
type: Injectable
|
|
8657
|
+
type: Injectable,
|
|
8658
|
+
args: [{ providedIn: 'root' }]
|
|
8642
8659
|
}], ctorParameters: () => [{ type: LoaderService }] });
|
|
8643
8660
|
|
|
8644
8661
|
class AuthoritiesResolverService {
|
|
@@ -8657,20 +8674,22 @@ class AuthoritiesResolverService {
|
|
|
8657
8674
|
: this.apiService.get('/user/me', new HttpParams(), this.config.BASE_AUTHORIZATION_URL);
|
|
8658
8675
|
}
|
|
8659
8676
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: AuthoritiesResolverService, deps: [{ token: AuthoritiesService }, { token: i0.Injector }, { token: ApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8660
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: AuthoritiesResolverService });
|
|
8677
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: AuthoritiesResolverService, providedIn: 'root' });
|
|
8661
8678
|
}
|
|
8662
8679
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: AuthoritiesResolverService, decorators: [{
|
|
8663
|
-
type: Injectable
|
|
8680
|
+
type: Injectable,
|
|
8681
|
+
args: [{ providedIn: 'root' }]
|
|
8664
8682
|
}], ctorParameters: () => [{ type: AuthoritiesService }, { type: i0.Injector }, { type: ApiService }] });
|
|
8665
8683
|
|
|
8666
8684
|
class SingletonTranslateService {
|
|
8667
8685
|
currentLanguage = new BehaviorSubject('');
|
|
8668
8686
|
currentLanguage$ = this.currentLanguage.asObservable();
|
|
8669
8687
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: SingletonTranslateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8670
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: SingletonTranslateService });
|
|
8688
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: SingletonTranslateService, providedIn: 'root' });
|
|
8671
8689
|
}
|
|
8672
8690
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: SingletonTranslateService, decorators: [{
|
|
8673
|
-
type: Injectable
|
|
8691
|
+
type: Injectable,
|
|
8692
|
+
args: [{ providedIn: 'root' }]
|
|
8674
8693
|
}] });
|
|
8675
8694
|
|
|
8676
8695
|
const MATERIAL_MODULES = [
|
|
@@ -9018,5 +9037,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
|
|
|
9018
9037
|
* Generated bundle index. Do not edit.
|
|
9019
9038
|
*/
|
|
9020
9039
|
|
|
9021
|
-
export { ActionTypeEnum, AlignEnum, ApiService, AuthoritiesResolverService, AuthoritiesService, Authority, BaseAddEditComponent, BaseModel, BaseSearchComponent, BaseTableComponent, BreadCrumbModel, ButtonClickEvent, ButtonModel, CheckboxModel, ColumnModel, ColumnTypeEnum, CustomDialogDataConfigModel, CvaBreadcrumbComponent, CvaCounterInputComponent, CvaCustomDialogComponent, CvaDatePickerComponent, CvaDialogImportFileComponent, CvaFlatTreeComponent, CvaFlatTreeNodeLeftComponent, CvaFlatTreeNodeRightComponent, CvaInputComponent, CvaLoaderComponent, CvaMultiSelectAutocomplete, CvaMultiUploadComponent, CvaMultiUploadImgComponent, CvaQuillEditorComponent, CvaRadiobuttonComponent, CvaRangeDatePickerComponent, CvaSmartTableComponent, CvaTableComponent, CvaTreeComponent, CvaUploadFileComponent, DateUtilService, DialogImportFileConfigModel, DialogTypeEnum, DragDropDirective, FileTypeEnum, FlatTreeConfigModel, FlatTreeModel, FlatTreeNodeModel, FormStateService, FormatInputDirective, IconTypeEnum, InjectTokenNextSolutionsConfig, JsogHttpInterceptor, LoaderInterceptor, LoaderService, MenuModel, MultiTranslateHttpLoader, NavigatorModel, NiceComponentLibraryModule, OAuth2AuthenticationDto, PatternDirective, PermissionModel, Principal, RangeDatePickerModel, RoleModel, SecureImgPipe, SelectModel, SingletonTranslateService, StylePaginatorDirective, TableFooterModel, TablePagingRequestModel, TablePagingResponseModel, TableService, UIState, UploadModel, UtilsService, ValidatorService };
|
|
9040
|
+
export { ActionTypeEnum, AlignEnum, ApiService, AuthoritiesResolverService, AuthoritiesService, Authority, BaseAddEditComponent, BaseModel, BaseSearchComponent, BaseStatusEnum, BaseTableComponent, BreadCrumbModel, ButtonClickEvent, ButtonModel, CheckboxModel, ColumnModel, ColumnTypeEnum, CustomDialogDataConfigModel, CvaBreadcrumbComponent, CvaCounterInputComponent, CvaCustomDialogComponent, CvaDatePickerComponent, CvaDialogImportFileComponent, CvaFlatTreeComponent, CvaFlatTreeNodeLeftComponent, CvaFlatTreeNodeRightComponent, CvaInputComponent, CvaLoaderComponent, CvaMultiSelectAutocomplete, CvaMultiUploadComponent, CvaMultiUploadImgComponent, CvaQuillEditorComponent, CvaRadiobuttonComponent, CvaRangeDatePickerComponent, CvaSmartTableComponent, CvaTableComponent, CvaTreeComponent, CvaUploadFileComponent, DateUtilService, DialogImportFileConfigModel, DialogTypeEnum, DragDropDirective, FileTypeEnum, FlatTreeConfigModel, FlatTreeModel, FlatTreeNodeModel, FormStateService, FormatInputDirective, IconTypeEnum, InjectTokenNextSolutionsConfig, JsogHttpInterceptor, LoaderInterceptor, LoaderService, MenuModel, MultiTranslateHttpLoader, NavigatorModel, NiceComponentLibraryModule, OAuth2AuthenticationDto, PatternDirective, PermissionModel, Principal, RangeDatePickerModel, RoleModel, SecureImgPipe, SelectModel, SingletonTranslateService, StylePaginatorDirective, TableFooterModel, TablePagingRequestModel, TablePagingResponseModel, TableService, UIState, UploadModel, UtilsService, ValidatorService };
|
|
9022
9041
|
//# sourceMappingURL=c10t-nice-component-library.mjs.map
|