@acorex/layout 6.5.34 → 6.5.35
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/widget-board/widget-board.component.mjs +19 -23
- package/fesm2015/acorex-layout.mjs +19 -22
- package/fesm2015/acorex-layout.mjs.map +1 -1
- package/fesm2020/acorex-layout.mjs +18 -22
- package/fesm2020/acorex-layout.mjs.map +1 -1
- package/lib/widget-board/widget-board.component.d.ts +2 -1
- package/package.json +1 -1
@@ -1,8 +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 {
|
5
|
-
import { debounceTime
|
4
|
+
import { Subject } from 'rxjs';
|
5
|
+
import { debounceTime } from 'rxjs/operators';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
import * as i1 from "./widget-host.component";
|
8
8
|
import * as i2 from "@angular/common";
|
@@ -19,6 +19,7 @@ export class AXWidgetBoardComponent {
|
|
19
19
|
this.newWidget = null;
|
20
20
|
this._isInEditing = false;
|
21
21
|
this.isDragging = false;
|
22
|
+
this.saveSubject = new Subject();
|
22
23
|
this.DATA_COL = 'data-col';
|
23
24
|
this.DATA_ROW = 'data-row';
|
24
25
|
this.DATA_SIZE_X = 'data-size-x';
|
@@ -35,6 +36,12 @@ export class AXWidgetBoardComponent {
|
|
35
36
|
if (this.rtl == null) {
|
36
37
|
this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
|
37
38
|
}
|
39
|
+
this.saveSubject.pipe(debounceTime(750)).subscribe((value) => {
|
40
|
+
this.emitConfigChanged(value);
|
41
|
+
});
|
42
|
+
}
|
43
|
+
ngOnDestroy() {
|
44
|
+
this.saveSubject?.unsubscribe();
|
38
45
|
}
|
39
46
|
ngAfterViewInit() {
|
40
47
|
this.zone.runOutsideAngular((c) => {
|
@@ -165,7 +172,7 @@ export class AXWidgetBoardComponent {
|
|
165
172
|
this.removePlaceholder();
|
166
173
|
this.dragItem = null;
|
167
174
|
this.calcGridSize();
|
168
|
-
this.
|
175
|
+
this.saveSubject.next('config');
|
169
176
|
}
|
170
177
|
this.isDragging = false;
|
171
178
|
});
|
@@ -264,7 +271,7 @@ export class AXWidgetBoardComponent {
|
|
264
271
|
});
|
265
272
|
this.ref.nativeElement.removeEventListener('mousemove', this.drag.bind(this), false);
|
266
273
|
this.ref.nativeElement.removeEventListener('mouseup', this.dragEnd.bind(this), false);
|
267
|
-
this.
|
274
|
+
this.saveSubject.next('config');
|
268
275
|
}
|
269
276
|
addWidget(widget) {
|
270
277
|
this.zone.runOutsideAngular(() => {
|
@@ -370,7 +377,7 @@ export class AXWidgetBoardComponent {
|
|
370
377
|
if (this.widgets.length) {
|
371
378
|
this.widgets = [];
|
372
379
|
this.cdr.detectChanges();
|
373
|
-
this.
|
380
|
+
this.saveSubject.next('clear');
|
374
381
|
}
|
375
382
|
}
|
376
383
|
save() {
|
@@ -394,29 +401,18 @@ export class AXWidgetBoardComponent {
|
|
394
401
|
}
|
395
402
|
handleOnConfigChanged(e) {
|
396
403
|
this.cdr.detectChanges();
|
397
|
-
this.
|
404
|
+
this.saveSubject.next('config');
|
398
405
|
}
|
399
406
|
handleOnResizedChanged(e) {
|
400
407
|
this.detectFirstEmptySlot(e.config);
|
401
408
|
this.cdr.detectChanges();
|
402
|
-
this.
|
409
|
+
this.saveSubject.next('config');
|
403
410
|
}
|
404
411
|
emitConfigChanged(mode) {
|
405
|
-
|
406
|
-
this
|
407
|
-
|
408
|
-
|
409
|
-
})
|
410
|
-
.pipe(debounceTime(1000))
|
411
|
-
.pipe(distinctUntilChanged())
|
412
|
-
.subscribe(c => {
|
413
|
-
this.onConfigChanged.emit({
|
414
|
-
component: this,
|
415
|
-
mode
|
416
|
-
});
|
417
|
-
});
|
418
|
-
}
|
419
|
-
this.resizeChangeObserver.next(new Date());
|
412
|
+
this.onConfigChanged.emit({
|
413
|
+
component: this,
|
414
|
+
mode: mode
|
415
|
+
});
|
420
416
|
}
|
421
417
|
}
|
422
418
|
AXWidgetBoardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetBoardComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
@@ -445,4 +441,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
445
441
|
}], onWidgetSave: [{
|
446
442
|
type: Output
|
447
443
|
}] } });
|
448
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LWJvYXJkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9sYXlvdXQvc3JjL2xpYi93aWRnZXQtYm9hcmQvd2lkZ2V0LWJvYXJkLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9sYXlvdXQvc3JjL2xpYi93aWRnZXQtYm9hcmQvd2lkZ2V0LWJvYXJkLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBRVQsS0FBSyxFQUNMLGlCQUFpQixFQUNqQixVQUFVLEVBQ1YsU0FBUyxFQUNULE1BQU0sRUFDTix1QkFBdUIsRUFDdkIsaUJBQWlCLEVBQ2pCLE1BQU0sRUFDTixZQUFZLEVBQUUsWUFBWSxFQUFFLFNBQVMsRUFDdEMsTUFBTSxlQUFlLENBQUM7QUFPdkIsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0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WRXaWRnZXRzLmZvckVhY2godyA9PiB7XG4gICAgICAgICAgICAgIGNvbnN0IGdpdGVtID0gdGhpcy5nYWxsZXJ5SXRlbXMuZmluZChjID0+IGMudW5pcXVlTmFtZSA9PT0gdy51bmlxdWVOYW1lKTtcbiAgICAgICAgICAgICAgaWYgKGdpdGVtKSB7XG4gICAgICAgICAgICAgICAgdy5jb21wb25lbnQgPSBnaXRlbS5jb21wb25lbnQ7XG4gICAgICAgICAgICAgICAgaWYgKGdpdGVtLnByb3BzKSB7XG4gICAgICAgICAgICAgICAgICB3LnByb3BzID0gSlNPTi5wYXJzZShKU09OLnN0cmluZ2lmeShnaXRlbS5wcm9wcykpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB0aGlzLndpZGdldHMucHVzaCguLi5sb2FkZWRXaWRnZXRzKTtcbiAgICAgICAgICAgIHRoaXMuZW1pdENvbmZpZ0NoYW5nZWQoJ2xvYWQnKTtcbiAgICAgICAgICAgIHdpbmRvdy5jbGVhckludGVydmFsKGludGVydmFsSWQpO1xuICAgICAgICAgICAgdGhpcy5jZHIuZGV0ZWN0Q2hhbmdlcygpO1xuICAgICAgICAgICAgcmVzb2x2ZSgpO1xuICAgICAgICAgIH1cbiAgICAgICAgfTtcbiAgICAgICAgaW50ZXJ2YWxJZCA9IHdpbmRvdy5zZXRJbnRlcnZhbChsb2FkRnVuYywgMjAwKTtcbiAgICAgIH1cbiAgICAgIGVsc2Uge1xuICAgICAgICByZXNvbHZlKCk7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cblxuICBjbGVhcigpIHtcbiAgICBpZiAodGhpcy53aWRnZXRzLmxlbmd0aCkge1xuICAgICAgdGhpcy53aWRnZXRzID0gW107XG4gICAgICB0aGlzLmNkci5kZXRlY3RDaGFuZ2VzKCk7XG4gICAgICB0aGlzLmVtaXRDb25maWdDaGFuZ2VkKCdjbGVhcicpO1xuICAgIH1cbiA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AgICAgICAgIGNvbXBvbmVudDogdGhpcy5uZXdXaWRnZXQuY29tcG9uZW50LFxuICAgICAgICAgICAgdGl0bGU6IHRoaXMubmV3V2lkZ2V0LnRpdGxlLFxuICAgICAgICAgICAgb3B0aW9uczogdGhpcy5uZXdXaWRnZXQub3B0aW9ucyxcbiAgICAgICAgICAgIHNpemVYOiB0aGlzLm5ld1dpZGdldC5zaXplWCxcbiAgICAgICAgICAgIHNpemVZOiB0aGlzLm5ld1dpZGdldC5zaXplWSxcbiAgICAgICAgICAgIGNvbDogTnVtYmVyKHAuZ2V0QXR0cmlidXRlKHRoaXMuREFUQV9DT0wpKSxcbiAgICAgICAgICAgIHJvdzogTnVtYmVyKHAuZ2V0QXR0cmlidXRlKHRoaXMuREFUQV9ST1cpKVxuICAgICAgICAgIH07XG5cbiAgICAgICAgICB0aGlzLndpZGdldHMucHVzaCh3KTtcbiAgICAgICAgICB0aGlzLm5ld1dpZGdldCA9IG51bGw7XG4gICAgICAgICAgdGhpcy5jb250YWluZXIubmF0aXZlRWxlbWVudC5yZW1vdmVDaGlsZCh0aGlzLmRyYWdJdGVtKTtcbiAgICAgICAgICB0aGlzLnpvbmUucnVuKCgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuY2RyLmRldGVjdENoYW5nZXMoKTtcbiAgICAgICAgICAgIHRoaXMuY2FsY0dyaWRTaXplKCk7XG4gICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgd1snX19tZXRhX18nXS5pbnN0YW5jZS5lbGVtZW50LmFkZEV2ZW50TGlzdGVuZXIoJ21vdXNlZG93bicsIHRoaXMuZHJhZ1N0YXJ0LmJpbmQodGhpcyksIGZhbHNlKTtcbiAgICAgICAgICAgIH0sIDEwMDApO1xuICAgICAgICAgIH0pO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIGlmIChwKSB7XG4gICAgICAgICAgICB0aGlzLnNldFBvc2l0aW9uKHRoaXMuZHJhZ0l0ZW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G4iXX0=
|
@@ -7,8 +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 {
|
11
|
-
import { debounceTime
|
10
|
+
import { Subject } from 'rxjs';
|
11
|
+
import { debounceTime } from 'rxjs/operators';
|
12
12
|
import * as i1$2 from '@angular/router';
|
13
13
|
import { RouterModule } from '@angular/router';
|
14
14
|
import { FormsModule } from '@angular/forms';
|
@@ -586,6 +586,7 @@ class AXWidgetBoardComponent {
|
|
586
586
|
this.newWidget = null;
|
587
587
|
this._isInEditing = false;
|
588
588
|
this.isDragging = false;
|
589
|
+
this.saveSubject = new Subject();
|
589
590
|
this.DATA_COL = 'data-col';
|
590
591
|
this.DATA_ROW = 'data-row';
|
591
592
|
this.DATA_SIZE_X = 'data-size-x';
|
@@ -602,6 +603,13 @@ class AXWidgetBoardComponent {
|
|
602
603
|
if (this.rtl == null) {
|
603
604
|
this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
|
604
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();
|
605
613
|
}
|
606
614
|
ngAfterViewInit() {
|
607
615
|
this.zone.runOutsideAngular((c) => {
|
@@ -732,7 +740,7 @@ class AXWidgetBoardComponent {
|
|
732
740
|
this.removePlaceholder();
|
733
741
|
this.dragItem = null;
|
734
742
|
this.calcGridSize();
|
735
|
-
this.
|
743
|
+
this.saveSubject.next('config');
|
736
744
|
}
|
737
745
|
this.isDragging = false;
|
738
746
|
});
|
@@ -831,7 +839,7 @@ class AXWidgetBoardComponent {
|
|
831
839
|
});
|
832
840
|
this.ref.nativeElement.removeEventListener('mousemove', this.drag.bind(this), false);
|
833
841
|
this.ref.nativeElement.removeEventListener('mouseup', this.dragEnd.bind(this), false);
|
834
|
-
this.
|
842
|
+
this.saveSubject.next('config');
|
835
843
|
}
|
836
844
|
addWidget(widget) {
|
837
845
|
this.zone.runOutsideAngular(() => {
|
@@ -938,7 +946,7 @@ class AXWidgetBoardComponent {
|
|
938
946
|
if (this.widgets.length) {
|
939
947
|
this.widgets = [];
|
940
948
|
this.cdr.detectChanges();
|
941
|
-
this.
|
949
|
+
this.saveSubject.next('clear');
|
942
950
|
}
|
943
951
|
}
|
944
952
|
save() {
|
@@ -962,29 +970,18 @@ class AXWidgetBoardComponent {
|
|
962
970
|
}
|
963
971
|
handleOnConfigChanged(e) {
|
964
972
|
this.cdr.detectChanges();
|
965
|
-
this.
|
973
|
+
this.saveSubject.next('config');
|
966
974
|
}
|
967
975
|
handleOnResizedChanged(e) {
|
968
976
|
this.detectFirstEmptySlot(e.config);
|
969
977
|
this.cdr.detectChanges();
|
970
|
-
this.
|
978
|
+
this.saveSubject.next('config');
|
971
979
|
}
|
972
980
|
emitConfigChanged(mode) {
|
973
|
-
|
974
|
-
this
|
975
|
-
|
976
|
-
|
977
|
-
})
|
978
|
-
.pipe(debounceTime(1000))
|
979
|
-
.pipe(distinctUntilChanged())
|
980
|
-
.subscribe(c => {
|
981
|
-
this.onConfigChanged.emit({
|
982
|
-
component: this,
|
983
|
-
mode
|
984
|
-
});
|
985
|
-
});
|
986
|
-
}
|
987
|
-
this.resizeChangeObserver.next(new Date());
|
981
|
+
this.onConfigChanged.emit({
|
982
|
+
component: this,
|
983
|
+
mode: mode
|
984
|
+
});
|
988
985
|
}
|
989
986
|
}
|
990
987
|
AXWidgetBoardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXWidgetBoardComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|