@tetacom/ng-components 1.0.43 → 1.0.44
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/component/resize-panel/resize-panel/resize-panel.component.d.ts +2 -1
- package/esm2020/component/resize-panel/resize-panel/resize-panel.component.mjs +7 -4
- package/esm2020/component/table/contract/table-column.mjs +5 -5
- package/esm2020/directive/drag-drop/drag.directive.mjs +2 -2
- package/fesm2015/tetacom-ng-components.mjs +12 -8
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +11 -8
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
- package/style/resize-panel.scss +2 -4
|
@@ -6910,13 +6910,13 @@ class TableColumn extends FilterItem {
|
|
|
6910
6910
|
/**
|
|
6911
6911
|
* Ширина
|
|
6912
6912
|
*/
|
|
6913
|
-
this.width =
|
|
6913
|
+
this.width = 80;
|
|
6914
6914
|
/**
|
|
6915
6915
|
* Коэффициент растяжения ячейки
|
|
6916
6916
|
*/
|
|
6917
|
-
this.flex =
|
|
6918
|
-
this.width = options?.width ??
|
|
6919
|
-
this.flex = options?.flex ??
|
|
6917
|
+
this.flex = 1;
|
|
6918
|
+
this.width = options?.width ?? 80;
|
|
6919
|
+
this.flex = options?.flex ?? 1;
|
|
6920
6920
|
this.headCellClass = options?.headCellClass ?? [];
|
|
6921
6921
|
this.cellClass = options?.cellClass ?? [];
|
|
6922
6922
|
this.locked = options?.locked ?? false;
|
|
@@ -10823,6 +10823,7 @@ class ResizePanelComponent {
|
|
|
10823
10823
|
this._elementRef = _elementRef;
|
|
10824
10824
|
this._renderer = _renderer;
|
|
10825
10825
|
this._document = _document;
|
|
10826
|
+
this.size = 8;
|
|
10826
10827
|
this.resizePanelClass = true;
|
|
10827
10828
|
this._direction = 'horizontal';
|
|
10828
10829
|
this._grabPosition = 'left';
|
|
@@ -10955,14 +10956,16 @@ class ResizePanelComponent {
|
|
|
10955
10956
|
}
|
|
10956
10957
|
}
|
|
10957
10958
|
ResizePanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ResizePanelComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
10958
|
-
ResizePanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ResizePanelComponent, selector: "teta-resize-panel", inputs: { direction: "direction", grabPosition: "grabPosition", name: "name", minSize: "minSize", maxSize: "maxSize" }, host: { properties: { "class.resize-panel": "this.resizePanelClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n<div #grab class=\"resize-grab\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd($event)\"\n [tetaResizeDrag]=\"direction\"\n [ngClass]=\"getClassName()\">\n
|
|
10959
|
+
ResizePanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ResizePanelComponent, selector: "teta-resize-panel", inputs: { size: "size", direction: "direction", grabPosition: "grabPosition", name: "name", minSize: "minSize", maxSize: "maxSize" }, host: { properties: { "class.resize-panel": "this.resizePanelClass" } }, ngImport: i0, template: "<ng-content></ng-content>\n<div #grab class=\"resize-grab\"\n [style.width.px]=\"direction === 'vertical' ? size : ''\"\n [style.height.px]=\"direction === 'horizontal' ? size : ''\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd($event)\"\n [tetaResizeDrag]=\"direction\"\n [ngClass]=\"getClassName()\">\n <teta-icon [name]=\"icon\"></teta-icon>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconComponent, selector: "teta-icon", inputs: ["name", "size", "palette", "class"] }, { kind: "directive", type: ResizeDragDirective, selector: "[tetaResizeDrag]", inputs: ["tetaResizeDrag"], outputs: ["resizeStart", "resizeProcess", "resizeEnd"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10959
10960
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ResizePanelComponent, decorators: [{
|
|
10960
10961
|
type: Component,
|
|
10961
|
-
args: [{ selector: 'teta-resize-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n<div #grab class=\"resize-grab\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd($event)\"\n [tetaResizeDrag]=\"direction\"\n [ngClass]=\"getClassName()\">\n
|
|
10962
|
+
args: [{ selector: 'teta-resize-panel', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n<div #grab class=\"resize-grab\"\n [style.width.px]=\"direction === 'vertical' ? size : ''\"\n [style.height.px]=\"direction === 'horizontal' ? size : ''\"\n (resizeStart)=\"resizeStart($event)\"\n (resizeProcess)=\"resizeProcess($event)\"\n (resizeEnd)=\"resizeEnd($event)\"\n [tetaResizeDrag]=\"direction\"\n [ngClass]=\"getClassName()\">\n <teta-icon [name]=\"icon\"></teta-icon>\n</div>\n" }]
|
|
10962
10963
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
|
|
10963
10964
|
type: Inject,
|
|
10964
10965
|
args: [DOCUMENT]
|
|
10965
|
-
}] }]; }, propDecorators: {
|
|
10966
|
+
}] }]; }, propDecorators: { size: [{
|
|
10967
|
+
type: Input
|
|
10968
|
+
}], direction: [{
|
|
10966
10969
|
type: Input
|
|
10967
10970
|
}], grabPosition: [{
|
|
10968
10971
|
type: Input
|
|
@@ -11328,7 +11331,7 @@ class DragDirective {
|
|
|
11328
11331
|
}
|
|
11329
11332
|
ngOnInit() {
|
|
11330
11333
|
this.instance = new DragInstance({
|
|
11331
|
-
container: this._container
|
|
11334
|
+
container: this._container?.instance,
|
|
11332
11335
|
data: this.data
|
|
11333
11336
|
});
|
|
11334
11337
|
this._dragService.dropTarget.pipe(takeWhile(() => this._alive))
|