@acorex/layout 6.5.32 → 6.5.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,8 @@
1
1
  import { Component, Input, ViewEncapsulation, ElementRef, ViewChild, NgZone, ChangeDetectionStrategy, ChangeDetectorRef, Output, EventEmitter, ViewChildren, QueryList } from '@angular/core';
2
2
  import { AXWidgetHostComponent } from './widget-host.component';
3
3
  import { AXHtmlUtil, AXClientRec } from '@acorex/core';
4
+ import { Subject } from 'rxjs';
5
+ import { debounceTime } from 'rxjs/operators';
4
6
  import * as i0 from "@angular/core";
5
7
  import * as i1 from "./widget-host.component";
6
8
  import * as i2 from "@angular/common";
@@ -17,6 +19,7 @@ export class AXWidgetBoardComponent {
17
19
  this.newWidget = null;
18
20
  this._isInEditing = false;
19
21
  this.isDragging = false;
22
+ this.saveSubject = new Subject();
20
23
  this.DATA_COL = 'data-col';
21
24
  this.DATA_ROW = 'data-row';
22
25
  this.DATA_SIZE_X = 'data-size-x';
@@ -33,6 +36,12 @@ export class AXWidgetBoardComponent {
33
36
  if (this.rtl == null) {
34
37
  this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
35
38
  }
39
+ this.saveSubject.pipe(debounceTime(750)).subscribe((value) => {
40
+ this.emitConfigChanged(value);
41
+ });
42
+ }
43
+ ngOnDestroy() {
44
+ this.saveSubject?.unsubscribe();
36
45
  }
37
46
  ngAfterViewInit() {
38
47
  this.zone.runOutsideAngular((c) => {
@@ -163,7 +172,7 @@ export class AXWidgetBoardComponent {
163
172
  this.removePlaceholder();
164
173
  this.dragItem = null;
165
174
  this.calcGridSize();
166
- this.emitConfigChanged('config');
175
+ this.saveSubject.next('config');
167
176
  }
168
177
  this.isDragging = false;
169
178
  });
@@ -262,7 +271,7 @@ export class AXWidgetBoardComponent {
262
271
  });
263
272
  this.ref.nativeElement.removeEventListener('mousemove', this.drag.bind(this), false);
264
273
  this.ref.nativeElement.removeEventListener('mouseup', this.dragEnd.bind(this), false);
265
- this.emitConfigChanged('config');
274
+ this.saveSubject.next('config');
266
275
  }
267
276
  addWidget(widget) {
268
277
  this.zone.runOutsideAngular(() => {
@@ -368,7 +377,7 @@ export class AXWidgetBoardComponent {
368
377
  if (this.widgets.length) {
369
378
  this.widgets = [];
370
379
  this.cdr.detectChanges();
371
- this.emitConfigChanged('clear');
380
+ this.saveSubject.next('clear');
372
381
  }
373
382
  }
374
383
  save() {
@@ -392,32 +401,17 @@ export class AXWidgetBoardComponent {
392
401
  }
393
402
  handleOnConfigChanged(e) {
394
403
  this.cdr.detectChanges();
395
- this.emitConfigChanged('config');
404
+ this.saveSubject.next('config');
396
405
  }
397
406
  handleOnResizedChanged(e) {
398
407
  this.detectFirstEmptySlot(e.config);
399
408
  this.cdr.detectChanges();
400
- this.emitConfigChanged('config');
409
+ this.saveSubject.next('config');
401
410
  }
402
- //private resizeChangeObserver: any;
403
411
  emitConfigChanged(mode) {
404
- // if (!this.resizeChangeObserver) {
405
- // this.resizeChangeObserver = new Observable();
406
- // Observable.create(observer => {
407
- // this.resizeChangeObserver = observer;
408
- // })
409
- // .pipe(debounceTime(750))
410
- // .pipe(distinctUntilChanged())
411
- // .subscribe(c => {
412
- // this.onConfigChanged.emit({
413
- // component: this
414
- // });
415
- // });
416
- // }
417
- // this.resizeChangeObserver.next(new Date());
418
412
  this.onConfigChanged.emit({
419
413
  component: this,
420
- mode
414
+ mode: mode
421
415
  });
422
416
  }
423
417
  }
@@ -447,4 +441,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
447
441
  }], onWidgetSave: [{
448
442
  type: Output
449
443
  }] } });
450
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LWJvYXJkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9sYXlvdXQvc3JjL2xpYi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m5hdGl2ZUVsZW1lbnQucXVlcnlTZWxlY3RvcignLndpZGdldC1ibGFuay1wbGFjZWhvbGRlcicpO1xuICAgICAgICBpZiAodGhpcy5uZXdXaWRnZXQpIHtcbiAgICAgICAgICBjb25zdCB3ID0ge1xuICAgICAgICAgICAgdW5pcXVlTmFtZTogdGhpcy5uZXdXaWRnZXQudW5pcXVlTmFtZSxcbiAgICAgICAgICAgIGNvbXBvbmVudDogdGhpcy5uZXdXaWRnZXQuY29tcG9uZW50LFxuICAgICAgICAgICAgdGl0bGU6IHRoaXMubmV3V2lkZ2V0LnRpdGxlLFxuICAgICAgICAgICAgb3B0aW9uczogdGhpcy5uZXdXaWRnZXQub3B0aW9ucyxcbiAgICAgICAgICAgIHNpemVYOiB0aGlzLm5ld1dpZGdldC5zaXplWCxcbiAgICAgICAgICAgIHNpemVZOiB0aGlzLm5ld1dpZGdldC5zaXplWSxcbiAgICAgICAgICAgIGNvbDogTnVtYmVyKHAuZ2V0QXR0cmlidXRlKHRoaXMuREFUQV9DT0wpKSxcbiAgICAgICAgICAgIHJvdzogTnVtYmVyKHAuZ2V0QXR0cmlidXRlKHRoaXMuREFUQV9ST1cpKVxuICAgICAgICAgIH07XG5cbiAgICAgICAgICB0aGlzLndpZGdldHMucHVzaCh3KTtcbiAgICAgICAgICB0aGlzLm5ld1dpZGdldCA9IG51bGw7XG4gICAgICAgICAgdGhpcy5jb250YWluZXIubmF0aXZlRWxlbWVudC5yZW1vdmVDaGlsZCh0aGlzLmRyYWdJdGVtKTtcbiAgICAgICAgICB0aGlzLnpvbmUucnVuKCgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuY2RyLmRldGVjdENoYW5nZXMoKTtcbiAgICAgICAgICAgIHRoaXMuY2FsY0dyaWRTaXplKCk7XG4gICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgd1snX19tZXRhX18nXS5pbnN0YW5jZS5lbGVtZW50LmFkZEV2ZW50TGlzdGVuZXI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aGFuZ2VzKCk7XG4gICAgICAgICAgICByZXNvbHZlKCk7XG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgICBpbnRlcnZhbElkID0gd2luZG93LnNldEludGVydmFsKGxvYWRGdW5jLCAyMDApO1xuICAgICAgfVxuICAgICAgZWxzZSB7XG4gICAgICAgIHJlc29sdmUoKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxuXG4gIGNsZWFyKCkge1xuICAgIGlmICh0aGlzLndpZGdldHMubGVuZ3RoKSB7XG4gICAgICB0aGlzLndpZGdldHMgPSBbXTtcbiAgICAgIHRoaXMuY2RyLmRldGVjdENoYW5nZXMoKTtcbiAgICAgIHRoaXMuc2F2ZVN1YmplY3QubmV4dCgnY2xlYXInKTtcbiAgICB9XG4gIH1cblxuICBzYXZlKCk6IFByb21pc2U8c3RyaW5nPiB7XG4gICAgY29uc3Qgb2JqID0gdGhpcy53aWRnZXRzLm1hcChjID0+ICh7XG4gICAgICB1bmlxdWVOYW1lOiBjLnVuaXF1ZU5hbWUsXG4gICAgICBjb21wb25lbnQ6IGMuY29tcG9uZW50LFxuICAgICAgdGl0bGU6IGMudGl0bGUsXG4gICAgICBzaXplWDogYy5zaXplWCxcbiAgICAgIHNpemVZOiBjLnNpemVZLFxuICAgICAgY29sOiBjLmNvbCxcbiAgICAgIHJvdzogYy5yb3csXG4gICAgICBvcHRpb25zOiBjLm9wdGlvbnMsXG4gICAgICBwcm9wczogYy5wcm9wc1xuICAgIH0pKTtcbiAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKEpTT04uc3RyaW5naWZ5KG9iaikpO1xuICB9XG5cbiAgcmVmcmVzaCgpIHtcbiAgICB0aGlzLndpZGdldEhvc3RzLmZvckVhY2goaG9zdCA9PiB7XG4gICAgICBob3N0LndpZGdldC5yZWZyZXNoKCk7XG4gICAgfSk7XG4gIH1cblxuICBoYW5kbGVPbkNvbmZpZ0NoYW5nZWQoZTogQVhXaWRnZXRDb25maWdDaGFuZ2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ZCk9XCJoYW5kbGVPbkNvbmZpZ0NoYW5nZWQoJGV2ZW50KVwiIChvblJlc2l6ZWQpPVwiaGFuZGxlT25SZXNpemVkQ2hhbmdlZCgkZXZlbnQpXCJcbiAgICAgICAgW3Byb3ZpZGVWYWx1ZV09XCJwcm92aWRlVmFsdWVcIj5cbiAgICA8L2F4LXdpZGdldC1ob3N0PlxuPC9kaXY+XG4iXX0=
@@ -7,6 +7,8 @@ import * as i1$1 from '@acorex/core';
7
7
  import { AXHtmlUtil, AXTranslator, AXObjectUtil, AXClientRec, AXTranslatorModule } from '@acorex/core';
8
8
  import * as i2 from '@angular/common';
9
9
  import { CommonModule } from '@angular/common';
10
+ import { Subject } from 'rxjs';
11
+ import { debounceTime } from 'rxjs/operators';
10
12
  import * as i1$2 from '@angular/router';
11
13
  import { RouterModule } from '@angular/router';
12
14
  import { FormsModule } from '@angular/forms';
@@ -584,6 +586,7 @@ class AXWidgetBoardComponent {
584
586
  this.newWidget = null;
585
587
  this._isInEditing = false;
586
588
  this.isDragging = false;
589
+ this.saveSubject = new Subject();
587
590
  this.DATA_COL = 'data-col';
588
591
  this.DATA_ROW = 'data-row';
589
592
  this.DATA_SIZE_X = 'data-size-x';
@@ -600,6 +603,13 @@ class AXWidgetBoardComponent {
600
603
  if (this.rtl == null) {
601
604
  this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
602
605
  }
606
+ this.saveSubject.pipe(debounceTime(750)).subscribe((value) => {
607
+ this.emitConfigChanged(value);
608
+ });
609
+ }
610
+ ngOnDestroy() {
611
+ var _a;
612
+ (_a = this.saveSubject) === null || _a === void 0 ? void 0 : _a.unsubscribe();
603
613
  }
604
614
  ngAfterViewInit() {
605
615
  this.zone.runOutsideAngular((c) => {
@@ -730,7 +740,7 @@ class AXWidgetBoardComponent {
730
740
  this.removePlaceholder();
731
741
  this.dragItem = null;
732
742
  this.calcGridSize();
733
- this.emitConfigChanged('config');
743
+ this.saveSubject.next('config');
734
744
  }
735
745
  this.isDragging = false;
736
746
  });
@@ -829,7 +839,7 @@ class AXWidgetBoardComponent {
829
839
  });
830
840
  this.ref.nativeElement.removeEventListener('mousemove', this.drag.bind(this), false);
831
841
  this.ref.nativeElement.removeEventListener('mouseup', this.dragEnd.bind(this), false);
832
- this.emitConfigChanged('config');
842
+ this.saveSubject.next('config');
833
843
  }
834
844
  addWidget(widget) {
835
845
  this.zone.runOutsideAngular(() => {
@@ -936,7 +946,7 @@ class AXWidgetBoardComponent {
936
946
  if (this.widgets.length) {
937
947
  this.widgets = [];
938
948
  this.cdr.detectChanges();
939
- this.emitConfigChanged('clear');
949
+ this.saveSubject.next('clear');
940
950
  }
941
951
  }
942
952
  save() {
@@ -960,32 +970,17 @@ class AXWidgetBoardComponent {
960
970
  }
961
971
  handleOnConfigChanged(e) {
962
972
  this.cdr.detectChanges();
963
- this.emitConfigChanged('config');
973
+ this.saveSubject.next('config');
964
974
  }
965
975
  handleOnResizedChanged(e) {
966
976
  this.detectFirstEmptySlot(e.config);
967
977
  this.cdr.detectChanges();
968
- this.emitConfigChanged('config');
978
+ this.saveSubject.next('config');
969
979
  }
970
- //private resizeChangeObserver: any;
971
980
  emitConfigChanged(mode) {
972
- // if (!this.resizeChangeObserver) {
973
- // this.resizeChangeObserver = new Observable();
974
- // Observable.create(observer => {
975
- // this.resizeChangeObserver = observer;
976
- // })
977
- // .pipe(debounceTime(750))
978
- // .pipe(distinctUntilChanged())
979
- // .subscribe(c => {
980
- // this.onConfigChanged.emit({
981
- // component: this
982
- // });
983
- // });
984
- // }
985
- // this.resizeChangeObserver.next(new Date());
986
981
  this.onConfigChanged.emit({
987
982
  component: this,
988
- mode
983
+ mode: mode
989
984
  });
990
985
  }
991
986
  }