@abp/ng.theme.shared 7.2.1 → 7.2.3

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.
@@ -1247,14 +1247,13 @@ class FormInputComponent extends AbstractNgModelComponent {
1247
1247
  this.label = '';
1248
1248
  this.labelClass = 'form-label';
1249
1249
  this.inputPlaceholder = '';
1250
- this.inputType = 'text';
1251
1250
  this.inputClass = 'form-control';
1252
1251
  this.formBlur = new EventEmitter();
1253
1252
  this.formFocus = new EventEmitter();
1254
1253
  }
1255
1254
  }
1256
1255
  FormInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormInputComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
1257
- FormInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormInputComponent, selector: "abp-form-input", inputs: { inputId: "inputId", inputReadonly: "inputReadonly", label: "label", labelClass: "labelClass", inputPlaceholder: "inputPlaceholder", inputType: "inputType", inputStyle: "inputStyle", inputClass: "inputClass" }, outputs: { formBlur: "formBlur", formFocus: "formFocus" }, providers: [
1256
+ FormInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FormInputComponent, selector: "abp-form-input", inputs: { inputId: "inputId", inputReadonly: "inputReadonly", label: "label", labelClass: "labelClass", inputPlaceholder: "inputPlaceholder", inputStyle: "inputStyle", inputClass: "inputClass" }, outputs: { formBlur: "formBlur", formFocus: "formFocus" }, providers: [
1258
1257
  {
1259
1258
  provide: NG_VALUE_ACCESSOR,
1260
1259
  useExisting: forwardRef(() => FormInputComponent),
@@ -1318,8 +1317,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
1318
1317
  type: Input
1319
1318
  }], inputPlaceholder: [{
1320
1319
  type: Input
1321
- }], inputType: [{
1322
- type: Input
1323
1320
  }], inputStyle: [{
1324
1321
  type: Input
1325
1322
  }], inputClass: [{
@@ -1810,8 +1807,10 @@ class ErrorHandler {
1810
1807
  this.componentRef = null;
1811
1808
  this.httpErrorHandler = this.injector.get(HTTP_ERROR_HANDLER, (_, err) => throwError(err));
1812
1809
  this.executeErrorHandler = (error) => {
1813
- const returnValue = this.httpErrorHandler(this.injector, error);
1814
- return (returnValue instanceof Observable ? returnValue : of(null)).pipe(catchError(err => {
1810
+ const errHandler = this.httpErrorHandler(this.injector, error);
1811
+ const isObservable = errHandler instanceof Observable;
1812
+ const response = isObservable ? errHandler : of(null);
1813
+ return response.pipe(catchError(err => {
1815
1814
  this.handleError(err);
1816
1815
  return of(null);
1817
1816
  }));
@@ -1863,6 +1862,10 @@ class ErrorHandler {
1863
1862
  key: DEFAULT_ERROR_LOCALIZATIONS.defaultError.title,
1864
1863
  defaultValue: DEFAULT_ERROR_MESSAGES.defaultError.title,
1865
1864
  };
1865
+ if (err instanceof HttpErrorResponse && err.headers.get('Abp-Tenant-Resolve-Error')) {
1866
+ this.authService.logout().subscribe();
1867
+ return;
1868
+ }
1866
1869
  if (err instanceof HttpErrorResponse && err.headers.get('_AbpErrorFormat')) {
1867
1870
  const confirmation$ = this.showErrorWithRequestBody(body);
1868
1871
  if (err.status === 401) {
@@ -1871,9 +1874,6 @@ class ErrorHandler {
1871
1874
  });
1872
1875
  }
1873
1876
  }
1874
- if (err instanceof HttpErrorResponse && err.headers.get('Abp-Tenant-Resolve-Error')) {
1875
- this.authService.logout().subscribe();
1876
- }
1877
1877
  else {
1878
1878
  switch (err.status) {
1879
1879
  case 401:
@@ -1900,7 +1900,7 @@ class ErrorHandler {
1900
1900
  status: 403,
1901
1901
  });
1902
1902
  break;
1903
- case 404: {
1903
+ case 404:
1904
1904
  this.canCreateCustomError(404)
1905
1905
  ? this.show404Page()
1906
1906
  : this.showError({
@@ -1911,7 +1911,6 @@ class ErrorHandler {
1911
1911
  defaultValue: DEFAULT_ERROR_MESSAGES.defaultError404.title,
1912
1912
  });
1913
1913
  break;
1914
- }
1915
1914
  case 500:
1916
1915
  this.createErrorComponent({
1917
1916
  title: {