@tetacom/ng-components 1.0.26 → 1.0.27
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.
- package/directive/click-outside/click-outside.directive.d.ts +3 -2
- package/esm2020/component/chart-3d/chart3d/chart3d.component.mjs +4 -4
- package/esm2020/component/file-upload/file-item/file-item.component.mjs +4 -4
- package/esm2020/component/table/default/numeric-cell/numeric-cell.component.mjs +2 -1
- package/esm2020/component/table/default/string-cell/string-cell.component.mjs +3 -2
- package/esm2020/directive/click-outside/click-outside.directive.mjs +12 -5
- package/fesm2015/tetacom-ng-components.mjs +20 -10
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +18 -9
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2479,8 +2479,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImpor
|
|
|
2479
2479
|
}] });
|
|
2480
2480
|
|
|
2481
2481
|
class ClickOutsideDirective {
|
|
2482
|
-
constructor(_elementRef) {
|
|
2482
|
+
constructor(_elementRef, _ngZone) {
|
|
2483
2483
|
this._elementRef = _elementRef;
|
|
2484
|
+
this._ngZone = _ngZone;
|
|
2484
2485
|
this.clickOutside = new EventEmitter();
|
|
2485
2486
|
this.rightClick = false;
|
|
2486
2487
|
this._handleEvents = false;
|
|
@@ -2490,6 +2491,7 @@ class ClickOutsideDirective {
|
|
|
2490
2491
|
}
|
|
2491
2492
|
const clickedInside = DomUtil.clickedInside(this._elementRef.nativeElement, click);
|
|
2492
2493
|
if (!clickedInside) {
|
|
2494
|
+
console.log('clickedInside', clickedInside);
|
|
2493
2495
|
this.clickOutside.emit(click);
|
|
2494
2496
|
}
|
|
2495
2497
|
};
|
|
@@ -2497,7 +2499,11 @@ class ClickOutsideDirective {
|
|
|
2497
2499
|
set tetaClickOutside(val) {
|
|
2498
2500
|
this._handleEvents = val;
|
|
2499
2501
|
if (this._handleEvents) {
|
|
2500
|
-
this.
|
|
2502
|
+
this._ngZone.runOutsideAngular(() => {
|
|
2503
|
+
setTimeout(() => {
|
|
2504
|
+
this.addListener(this.rightClick);
|
|
2505
|
+
});
|
|
2506
|
+
});
|
|
2501
2507
|
}
|
|
2502
2508
|
else {
|
|
2503
2509
|
this.removeListener();
|
|
@@ -2511,6 +2517,7 @@ class ClickOutsideDirective {
|
|
|
2511
2517
|
}
|
|
2512
2518
|
addListener(handleRightClick) {
|
|
2513
2519
|
window.addEventListener('click', this.listener);
|
|
2520
|
+
console.log('handleRightClick', handleRightClick);
|
|
2514
2521
|
if (handleRightClick) {
|
|
2515
2522
|
window.addEventListener('contextmenu', this.listener);
|
|
2516
2523
|
}
|
|
@@ -2520,14 +2527,14 @@ class ClickOutsideDirective {
|
|
|
2520
2527
|
window.removeEventListener('contextmenu', this.listener);
|
|
2521
2528
|
}
|
|
2522
2529
|
}
|
|
2523
|
-
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2530
|
+
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2524
2531
|
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.1", type: ClickOutsideDirective, selector: "[tetaClickOutside]", inputs: { rightClick: "rightClick", tetaClickOutside: "tetaClickOutside" }, outputs: { clickOutside: "clickOutside" }, ngImport: i0 });
|
|
2525
2532
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: ClickOutsideDirective, decorators: [{
|
|
2526
2533
|
type: Directive,
|
|
2527
2534
|
args: [{
|
|
2528
2535
|
selector: '[tetaClickOutside]',
|
|
2529
2536
|
}]
|
|
2530
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { clickOutside: [{
|
|
2537
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { clickOutside: [{
|
|
2531
2538
|
type: Output
|
|
2532
2539
|
}], rightClick: [{
|
|
2533
2540
|
type: Input
|
|
@@ -3329,10 +3336,10 @@ class FileItemComponent {
|
|
|
3329
3336
|
ngOnInit() { }
|
|
3330
3337
|
}
|
|
3331
3338
|
FileItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: FileItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3332
|
-
FileItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.1", type: FileItemComponent, selector: "teta-file-item", ngImport: i0, template: "<p>file-item works!</p>\n", styles: [""] });
|
|
3339
|
+
FileItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.1", type: FileItemComponent, selector: "teta-file-item", ngImport: i0, template: "<p>file-item works!</p>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3333
3340
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: FileItemComponent, decorators: [{
|
|
3334
3341
|
type: Component,
|
|
3335
|
-
args: [{ selector: 'teta-file-item', template: "<p>file-item works!</p>\n", styles: [""] }]
|
|
3342
|
+
args: [{ selector: 'teta-file-item', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>file-item works!</p>\n", styles: [""] }]
|
|
3336
3343
|
}], ctorParameters: function () { return []; } });
|
|
3337
3344
|
|
|
3338
3345
|
class FileUploadModule {
|
|
@@ -8702,6 +8709,7 @@ class NumericCellComponent extends CellComponentBase {
|
|
|
8702
8709
|
if (initiator?.column.name === this.column.name) {
|
|
8703
8710
|
setTimeout(() => {
|
|
8704
8711
|
this.input?.nativeElement.focus();
|
|
8712
|
+
this.input?.nativeElement.select();
|
|
8705
8713
|
this.cdr.markForCheck();
|
|
8706
8714
|
}, 0);
|
|
8707
8715
|
}
|
|
@@ -8838,7 +8846,8 @@ class StringCellComponent extends CellComponentBase {
|
|
|
8838
8846
|
if (initiator?.column.name === this.column.name) {
|
|
8839
8847
|
this.cdr.markForCheck();
|
|
8840
8848
|
setTimeout(() => {
|
|
8841
|
-
this.input.nativeElement
|
|
8849
|
+
this.input.nativeElement?.focus();
|
|
8850
|
+
this.input.nativeElement?.select();
|
|
8842
8851
|
}, 0);
|
|
8843
8852
|
}
|
|
8844
8853
|
}
|
|
@@ -12422,10 +12431,10 @@ class Chart3dComponent {
|
|
|
12422
12431
|
}
|
|
12423
12432
|
}
|
|
12424
12433
|
Chart3dComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: Chart3dComponent, deps: [{ token: i0.ElementRef }, { token: ThemeSwitchService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12425
|
-
Chart3dComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.1", type: Chart3dComponent, selector: "teta-chart3d", inputs: { config: "config" }, viewQueries: [{ propertyName: "canvasRef", first: true, predicate: ["canvas"], descendants: true }], ngImport: i0, template: "<canvas #canvas></canvas>\n", styles: [":host{display:flex;width:100%;height:100%}\n"] });
|
|
12434
|
+
Chart3dComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.1", type: Chart3dComponent, selector: "teta-chart3d", inputs: { config: "config" }, viewQueries: [{ propertyName: "canvasRef", first: true, predicate: ["canvas"], descendants: true }], ngImport: i0, template: "<canvas #canvas></canvas>\n", styles: [":host{display:flex;width:100%;height:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12426
12435
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.1", ngImport: i0, type: Chart3dComponent, decorators: [{
|
|
12427
12436
|
type: Component,
|
|
12428
|
-
args: [{ selector: 'teta-chart3d', template: "<canvas #canvas></canvas>\n", styles: [":host{display:flex;width:100%;height:100%}\n"] }]
|
|
12437
|
+
args: [{ selector: 'teta-chart3d', changeDetection: ChangeDetectionStrategy.OnPush, template: "<canvas #canvas></canvas>\n", styles: [":host{display:flex;width:100%;height:100%}\n"] }]
|
|
12429
12438
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: ThemeSwitchService }]; }, propDecorators: { canvasRef: [{
|
|
12430
12439
|
type: ViewChild,
|
|
12431
12440
|
args: ['canvas']
|