@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.
@@ -1254,14 +1254,13 @@ class FormInputComponent extends AbstractNgModelComponent {
1254
1254
  this.label = '';
1255
1255
  this.labelClass = 'form-label';
1256
1256
  this.inputPlaceholder = '';
1257
- this.inputType = 'text';
1258
1257
  this.inputClass = 'form-control';
1259
1258
  this.formBlur = new EventEmitter();
1260
1259
  this.formFocus = new EventEmitter();
1261
1260
  }
1262
1261
  }
1263
1262
  FormInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FormInputComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
1264
- 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: [
1263
+ 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: [
1265
1264
  {
1266
1265
  provide: NG_VALUE_ACCESSOR,
1267
1266
  useExisting: forwardRef(() => FormInputComponent),
@@ -1325,8 +1324,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
1325
1324
  type: Input
1326
1325
  }], inputPlaceholder: [{
1327
1326
  type: Input
1328
- }], inputType: [{
1329
- type: Input
1330
1327
  }], inputStyle: [{
1331
1328
  type: Input
1332
1329
  }], inputClass: [{
@@ -1819,8 +1816,10 @@ class ErrorHandler {
1819
1816
  this.componentRef = null;
1820
1817
  this.httpErrorHandler = this.injector.get(HTTP_ERROR_HANDLER, (_, err) => throwError(err));
1821
1818
  this.executeErrorHandler = (error) => {
1822
- const returnValue = this.httpErrorHandler(this.injector, error);
1823
- return (returnValue instanceof Observable ? returnValue : of(null)).pipe(catchError(err => {
1819
+ const errHandler = this.httpErrorHandler(this.injector, error);
1820
+ const isObservable = errHandler instanceof Observable;
1821
+ const response = isObservable ? errHandler : of(null);
1822
+ return response.pipe(catchError(err => {
1824
1823
  this.handleError(err);
1825
1824
  return of(null);
1826
1825
  }));
@@ -1875,6 +1874,10 @@ class ErrorHandler {
1875
1874
  key: DEFAULT_ERROR_LOCALIZATIONS.defaultError.title,
1876
1875
  defaultValue: DEFAULT_ERROR_MESSAGES.defaultError.title,
1877
1876
  };
1877
+ if (err instanceof HttpErrorResponse && err.headers.get('Abp-Tenant-Resolve-Error')) {
1878
+ this.authService.logout().subscribe();
1879
+ return;
1880
+ }
1878
1881
  if (err instanceof HttpErrorResponse && err.headers.get('_AbpErrorFormat')) {
1879
1882
  const confirmation$ = this.showErrorWithRequestBody(body);
1880
1883
  if (err.status === 401) {
@@ -1883,9 +1886,6 @@ class ErrorHandler {
1883
1886
  });
1884
1887
  }
1885
1888
  }
1886
- if (err instanceof HttpErrorResponse && err.headers.get('Abp-Tenant-Resolve-Error')) {
1887
- this.authService.logout().subscribe();
1888
- }
1889
1889
  else {
1890
1890
  switch (err.status) {
1891
1891
  case 401:
@@ -1912,7 +1912,7 @@ class ErrorHandler {
1912
1912
  status: 403,
1913
1913
  });
1914
1914
  break;
1915
- case 404: {
1915
+ case 404:
1916
1916
  this.canCreateCustomError(404)
1917
1917
  ? this.show404Page()
1918
1918
  : this.showError({
@@ -1923,7 +1923,6 @@ class ErrorHandler {
1923
1923
  defaultValue: DEFAULT_ERROR_MESSAGES.defaultError404.title,
1924
1924
  });
1925
1925
  break;
1926
- }
1927
1926
  case 500:
1928
1927
  this.createErrorComponent({
1929
1928
  title: {