ngx-rs-ant 1.8.1 → 1.8.2

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.
@@ -3,7 +3,7 @@ import { Component, Input, HostBinding, EventEmitter, Output, HostListener, View
3
3
  import { PluginFactory } from 'coast-plugin-register';
4
4
  import * as i1 from '@angular/common';
5
5
  import { CommonModule, formatDate } from '@angular/common';
6
- import { Subject, ReplaySubject, Subscription, map, shareReplay, lastValueFrom, debounceTime, interval } from 'rxjs';
6
+ import { Subject, ReplaySubject, Subscription, map, shareReplay, firstValueFrom, of, lastValueFrom, debounceTime, interval } from 'rxjs';
7
7
  import * as i2 from 'devextreme-angular/ui/number-box';
8
8
  import * as i2$1 from 'devextreme-angular/ui/draggable';
9
9
  import { DevExtremeModule, DxValidationGroupComponent, DxDataGridComponent } from 'devextreme-angular';
@@ -1874,7 +1874,7 @@ function notify_success(message) {
1874
1874
  width: '300px'
1875
1875
  }, {
1876
1876
  direction: 'down-push',
1877
- position: 'top right'
1877
+ position: 'bottom right'
1878
1878
  });
1879
1879
  }
1880
1880
  function format_date(date, locale) {
@@ -1963,6 +1963,9 @@ function download_file(blob, filename, callback) {
1963
1963
  }
1964
1964
  async function validate(validator) {
1965
1965
  return new Promise(resolve => {
1966
+ if (!validator) {
1967
+ resolve(true);
1968
+ }
1966
1969
  const validateResult = validator.instance.validate();
1967
1970
  if (!validateResult.isValid) {
1968
1971
  resolve(false);
@@ -1983,6 +1986,9 @@ async function validate(validator) {
1983
1986
  });
1984
1987
  }
1985
1988
  async function validate_group(validationGroup) {
1989
+ if (!validationGroup) {
1990
+ return firstValueFrom(of(true));
1991
+ }
1986
1992
  const top = validationGroup.element.nativeElement;
1987
1993
  let sourceNode;
1988
1994
  const targetClassName = 'dx-field';