@c10t/nice-component-library 0.0.3-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.
@@ -726,6 +726,134 @@ class UtilsService {
726
726
  this.transService = transService;
727
727
  this.toastr = toastr;
728
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
+ }
729
857
  strFormat(str, replacement) {
730
858
  let a = this.transService.instant(str);
731
859
  if (replacement === null || replacement === undefined || replacement.length === 0) {
@@ -828,7 +956,7 @@ class UtilsService {
828
956
  const strOk = this.transService.instant(strOkText);
829
957
  const strCancel = this.transService.instant(strCancelTex);
830
958
  const re = /\./gi;
831
- const customClass = (strCustomClass ? strCustomClass : strTitle).replace(re, "-");
959
+ const customClass = (strCustomClass ? strCustomClass : strTitle).replace(re, '-');
832
960
  return this.dialog.open(CvaCustomDialogComponent, confirmDialogConfig ? confirmDialogConfig : {
833
961
  width: '500px',
834
962
  data: {
@@ -846,7 +974,7 @@ class UtilsService {
846
974
  const strOk = this.transService.instant(strOkText);
847
975
  const strCancel = this.transService.instant(strCancelTex);
848
976
  const re = /\./gi;
849
- const customClass = (strCustomClass ? strCustomClass : str1).replace(re, "-");
977
+ const customClass = (strCustomClass ? strCustomClass : str1).replace(re, '-');
850
978
  return this.dialog.open(CvaCustomDialogComponent, confirmInputDialogConfig ? confirmInputDialogConfig : {
851
979
  width: '500px',
852
980
  data: {
@@ -867,139 +995,12 @@ class UtilsService {
867
995
  type: 'application/json',
868
996
  });
869
997
  }
870
- static getEnumValue(o, value) {
871
- return o['_' + value]; // No type safety here unfrotunately
872
- }
873
- static calcPosition(e, results, paging) {
874
- return (paging ? ((paging.pageNumber - 1) * paging.pageSize) : 0) + (results.data.indexOf(e) + 1);
875
- }
876
- static reduceEntityAttributeForFormControl(formGroup, e, dateRangeConfigList) {
877
- return Object.keys(formGroup.controls).reduce(reduceEntityAttributeForFormControlByControlName, {});
878
- function reduceEntityAttributeForFormControlByControlName(formControl, ctrlName) {
879
- if (e) {
880
- let includesOfDateRangeConfig = false;
881
- if (dateRangeConfigList) {
882
- for (const dateRangeConfig of dateRangeConfigList) {
883
- if (dateRangeConfig
884
- && [dateRangeConfig.dateRangeControlName,
885
- dateRangeConfig.fromDateControlName, dateRangeConfig.toDateControlName].includes(ctrlName)) {
886
- includesOfDateRangeConfig = true;
887
- switch (ctrlName) {
888
- case dateRangeConfig.dateRangeControlName:
889
- formControl[ctrlName] = {
890
- fromDate: e[dateRangeConfig.fromDateControlName] ? e[dateRangeConfig.fromDateControlName] : null,
891
- toDate: e[dateRangeConfig.toDateControlName] ? e[dateRangeConfig.toDateControlName] : null
892
- };
893
- break;
894
- case dateRangeConfig.fromDateControlName:
895
- formControl[ctrlName] = e[ctrlName];
896
- if (formControl[dateRangeConfig.dateRangeControlName]
897
- && typeof (formControl[dateRangeConfig.dateRangeControlName]) === 'object') {
898
- formControl[dateRangeConfig.dateRangeControlName].fromDate = e[ctrlName];
899
- }
900
- break;
901
- case dateRangeConfig.toDateControlName:
902
- formControl[ctrlName] = e[ctrlName];
903
- if (formControl[dateRangeConfig.dateRangeControlName]
904
- && typeof (formControl[dateRangeConfig.dateRangeControlName]) === 'object') {
905
- formControl[dateRangeConfig.dateRangeControlName].toDate = e[ctrlName];
906
- }
907
- break;
908
- default:
909
- break;
910
- }
911
- }
912
- }
913
- }
914
- if (!includesOfDateRangeConfig) {
915
- if (typeof (e[ctrlName]) === 'boolean') {
916
- formControl[ctrlName] = e[ctrlName] ? '1' : '0';
917
- }
918
- else if (e[ctrlName] instanceof Array) {
919
- formControl[ctrlName] = e[ctrlName];
920
- }
921
- else if (typeof (e[ctrlName]) === 'object') {
922
- formControl[ctrlName] = e[ctrlName]
923
- ? (e[ctrlName].id
924
- ? e[ctrlName].id
925
- : (e[ctrlName].code ? e[ctrlName].code : ''))
926
- : null;
927
- }
928
- else {
929
- formControl[ctrlName] = (e[ctrlName] != null && e[ctrlName] != undefined) ? e[ctrlName] : '';
930
- }
931
- }
932
- }
933
- else {
934
- formControl[ctrlName] = '';
935
- }
936
- return formControl;
937
- }
938
- }
939
- static cloneAbstractControl(control) {
940
- let newControl;
941
- if (control instanceof FormGroup) {
942
- const formGroup = new FormGroup({}, control.validator, control.asyncValidator);
943
- const controls = control.controls;
944
- if (controls) {
945
- Object.keys(controls).forEach(key => {
946
- const tempControl = UtilsService.cloneAbstractControl(controls[key]);
947
- if (tempControl) {
948
- formGroup.addControl(key, tempControl);
949
- }
950
- });
951
- }
952
- newControl = formGroup;
953
- }
954
- else if (control instanceof FormArray) {
955
- const formArray = new FormArray([], control.validator, control.asyncValidator);
956
- const controls = control.controls;
957
- if (controls) {
958
- controls.forEach((formControl) => {
959
- const tempControl = UtilsService.cloneAbstractControl(formControl);
960
- if (tempControl) {
961
- formArray.push(tempControl);
962
- }
963
- });
964
- }
965
- newControl = formArray;
966
- }
967
- else if (control instanceof FormControl || this.isNgControl(control)) {
968
- newControl = new FormControl(control.value, control.validator, control.asyncValidator);
969
- }
970
- else {
971
- console.error('Error: unexpected formControl value', control);
972
- }
973
- if (control.disabled && newControl)
974
- newControl.disable({ emitEvent: false });
975
- return newControl;
976
- }
977
- static isNgControl(control) {
978
- return control && 'control' in control;
979
- }
980
- static convertTreeDataToAutocompleteData(treeFields, symbol, hasChildFn, nodes, prefixDisplayValue) {
981
- let result = [];
982
- if (treeFields) {
983
- for (const node of nodes) {
984
- const value = treeFields.value(node).toString();
985
- const displayValue = prefixDisplayValue ? prefixDisplayValue + symbol + treeFields.display(node) : treeFields.display(node);
986
- const hasChild = hasChildFn(0, node);
987
- if (hasChild) {
988
- const childen = treeFields.children(node);
989
- result.push(...this.convertTreeDataToAutocompleteData(treeFields, symbol, hasChildFn, childen, displayValue));
990
- }
991
- else {
992
- result.push(new SelectModel(value, displayValue, hasChild, node));
993
- }
994
- }
995
- }
996
- return result;
997
- }
998
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 });
999
- 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' });
1000
1000
  }
1001
1001
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: UtilsService, decorators: [{
1002
- type: Injectable
1002
+ type: Injectable,
1003
+ args: [{ providedIn: 'root' }]
1003
1004
  }], ctorParameters: () => [{ type: i1$1.MatDialog }, { type: i1.TranslateService }, { type: i3$1.ToastrService }] });
1004
1005
 
1005
1006
  class ApiService {
@@ -1045,7 +1046,7 @@ class ApiService {
1045
1046
  delete(nativeUrl, options, baseUrl) {
1046
1047
  return this.http.delete(baseUrl ? (baseUrl + nativeUrl) : this.getFullUrl(nativeUrl), options ? {
1047
1048
  headers: options.headers,
1048
- params: options.params
1049
+ params: options.params,
1049
1050
  } : {});
1050
1051
  }
1051
1052
  saveFile(nativeUrl, obj, options, baseUrl, onErrorFunc) {
@@ -1076,10 +1077,11 @@ class ApiService {
1076
1077
  });
1077
1078
  }
1078
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 });
1079
- 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' });
1080
1081
  }
1081
1082
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ApiService, decorators: [{
1082
- type: Injectable
1083
+ type: Injectable,
1084
+ args: [{ providedIn: 'root' }]
1083
1085
  }], ctorParameters: () => [{ type: i1$3.HttpClient }, { type: i2$1.FileSaverService }, { type: i0.Injector }] });
1084
1086
 
1085
1087
  class FormStateService {
@@ -1089,10 +1091,11 @@ class FormStateService {
1089
1091
  this.subject.next(mapState);
1090
1092
  }
1091
1093
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: FormStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1092
- 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' });
1093
1095
  }
1094
1096
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: FormStateService, decorators: [{
1095
- type: Injectable
1097
+ type: Injectable,
1098
+ args: [{ providedIn: 'root' }]
1096
1099
  }] });
1097
1100
 
1098
1101
  class AuthoritiesService {
@@ -1119,10 +1122,11 @@ class AuthoritiesService {
1119
1122
  return this.me.authorities.map(x => x.authority.toString().toLowerCase()).includes(authority.toLowerCase());
1120
1123
  }
1121
1124
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: AuthoritiesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1122
- 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' });
1123
1126
  }
1124
1127
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: AuthoritiesService, decorators: [{
1125
- type: Injectable
1128
+ type: Injectable,
1129
+ args: [{ providedIn: 'root' }]
1126
1130
  }] });
1127
1131
 
1128
1132
  class BaseSearchComponent extends BaseTableComponent {
@@ -1524,10 +1528,11 @@ class TableService {
1524
1528
  class LoaderService {
1525
1529
  isLoading = new BehaviorSubject(false);
1526
1530
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: LoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1527
- 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' });
1528
1532
  }
1529
1533
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: LoaderService, decorators: [{
1530
- type: Injectable
1534
+ type: Injectable,
1535
+ args: [{ providedIn: 'root' }]
1531
1536
  }] });
1532
1537
 
1533
1538
  class ValidatorService {
@@ -1745,7 +1750,7 @@ class ValidatorService {
1745
1750
  required: ValidatorService.getRequired(column),
1746
1751
  maxLength: column.max ? column.max(row) : undefined,
1747
1752
  minLength: column.min ? column.min(row) : undefined,
1748
- pattern: undefined
1753
+ pattern: undefined,
1749
1754
  }));
1750
1755
  }
1751
1756
  tempControl.updateValueAndValidity();
@@ -1790,10 +1795,11 @@ class ValidatorService {
1790
1795
  return validator;
1791
1796
  }
1792
1797
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ValidatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1793
- 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' });
1794
1799
  }
1795
1800
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ValidatorService, decorators: [{
1796
- type: Injectable
1801
+ type: Injectable,
1802
+ args: [{ providedIn: 'root' }]
1797
1803
  }] });
1798
1804
 
1799
1805
  class CvaCounterInputComponent {
@@ -3574,7 +3580,7 @@ class DateUtilService {
3574
3580
  }
3575
3581
  convertToDateIgnoreTimeZone(dateStr) {
3576
3582
  if (dateStr != null) {
3577
- return new Date(dateStr.replace("Z", ""));
3583
+ return new Date(dateStr.replace('Z', ''));
3578
3584
  }
3579
3585
  else {
3580
3586
  return null;
@@ -3584,10 +3590,11 @@ class DateUtilService {
3584
3590
  return date ? new Date(date.replace(' ', 'T')) : new Date(1900, 1, 1);
3585
3591
  }
3586
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 });
3587
- 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' });
3588
3594
  }
3589
3595
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DateUtilService, decorators: [{
3590
- type: Injectable
3596
+ type: Injectable,
3597
+ args: [{ providedIn: 'root' }]
3591
3598
  }], ctorParameters: () => [{ type: i2.DatePipe }, { type: i0.Injector }] });
3592
3599
 
3593
3600
  class CvaDatePickerComponent {
@@ -8597,10 +8604,11 @@ class JsogHttpInterceptor {
8597
8604
  }));
8598
8605
  }
8599
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 });
8600
- 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' });
8601
8608
  }
8602
8609
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: JsogHttpInterceptor, decorators: [{
8603
- type: Injectable
8610
+ type: Injectable,
8611
+ args: [{ providedIn: 'root' }]
8604
8612
  }], ctorParameters: () => [{ type: i1$6.JsogService }] });
8605
8613
 
8606
8614
  class LoaderInterceptor {
@@ -8624,7 +8632,7 @@ class LoaderInterceptor {
8624
8632
  }
8625
8633
  else {
8626
8634
  request = request.clone({
8627
- headers: request.headers.delete('is_image')
8635
+ headers: request.headers.delete('is_image'),
8628
8636
  });
8629
8637
  }
8630
8638
  return next.handle(request).pipe(map((event) => {
@@ -8643,10 +8651,11 @@ class LoaderInterceptor {
8643
8651
  }));
8644
8652
  }
8645
8653
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: LoaderInterceptor, deps: [{ token: LoaderService }], target: i0.ɵɵFactoryTarget.Injectable });
8646
- 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' });
8647
8655
  }
8648
8656
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: LoaderInterceptor, decorators: [{
8649
- type: Injectable
8657
+ type: Injectable,
8658
+ args: [{ providedIn: 'root' }]
8650
8659
  }], ctorParameters: () => [{ type: LoaderService }] });
8651
8660
 
8652
8661
  class AuthoritiesResolverService {
@@ -8665,20 +8674,22 @@ class AuthoritiesResolverService {
8665
8674
  : this.apiService.get('/user/me', new HttpParams(), this.config.BASE_AUTHORIZATION_URL);
8666
8675
  }
8667
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 });
8668
- 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' });
8669
8678
  }
8670
8679
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: AuthoritiesResolverService, decorators: [{
8671
- type: Injectable
8680
+ type: Injectable,
8681
+ args: [{ providedIn: 'root' }]
8672
8682
  }], ctorParameters: () => [{ type: AuthoritiesService }, { type: i0.Injector }, { type: ApiService }] });
8673
8683
 
8674
8684
  class SingletonTranslateService {
8675
8685
  currentLanguage = new BehaviorSubject('');
8676
8686
  currentLanguage$ = this.currentLanguage.asObservable();
8677
8687
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: SingletonTranslateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
8678
- 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' });
8679
8689
  }
8680
8690
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: SingletonTranslateService, decorators: [{
8681
- type: Injectable
8691
+ type: Injectable,
8692
+ args: [{ providedIn: 'root' }]
8682
8693
  }] });
8683
8694
 
8684
8695
  const MATERIAL_MODULES = [