@tetacom/ng-components 1.0.49 → 1.0.52
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/assets/icons.svg +315 -141
- package/esm2020/common/util/position-util.mjs +7 -1
- package/esm2020/component/table/default/default-head-cell/default-head-cell.component.mjs +3 -3
- package/esm2020/directive/drag-drop/drag.directive.mjs +6 -3
- package/fesm2015/tetacom-ng-components.mjs +14 -5
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +13 -4
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
- package/style/presets/color-presets.scss +41 -41
- package/style/table.scss +3 -3
|
@@ -1067,6 +1067,12 @@ class PositionUtil {
|
|
|
1067
1067
|
const elementHeight = elementPosition.bottom - elementPosition.top;
|
|
1068
1068
|
const containerWidth = containerPosition.right - containerPosition.left;
|
|
1069
1069
|
const containerHeight = containerPosition.bottom - containerPosition.top;
|
|
1070
|
+
if (align === Align.auto) {
|
|
1071
|
+
align = Align.left;
|
|
1072
|
+
if (window.innerWidth < containerPosition.left + elementWidth) {
|
|
1073
|
+
align = Align.right;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1070
1076
|
if (align === Align.left) {
|
|
1071
1077
|
rect.left = containerPosition.left + margin;
|
|
1072
1078
|
}
|
|
@@ -8137,10 +8143,10 @@ class DefaultHeadCellComponent extends HeadCellComponentBase {
|
|
|
8137
8143
|
}
|
|
8138
8144
|
}
|
|
8139
8145
|
DefaultHeadCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DefaultHeadCellComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8140
|
-
DefaultHeadCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: DefaultHeadCellComponent, selector: "teta-default-head-cell", inputs: { column: "column", columns: "columns", data: "data" }, usesInheritance: true, ngImport: i0, template: "<div class=\"column column_auto\" [tetaHint]=\"column.hint || column.caption\">\n <div class=\"table-head__cell__text\">\n {{column.caption}}\n </div>\n <div *ngIf=\"column.unit\" class=\"table-head__cell__text font-caption\" style=\"overflow: visible;\">\n [{{column.unit}}]\n </div>\n</div>\n", styles: [":host{align-items:center;justify-content:center;display:flex;min-width:0;padding:6px 8px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8146
|
+
DefaultHeadCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: DefaultHeadCellComponent, selector: "teta-default-head-cell", inputs: { column: "column", columns: "columns", data: "data" }, usesInheritance: true, ngImport: i0, template: "<div class=\"column column_auto\" [tetaHint]=\"column.hint || column.caption\">\n <div class=\"table-head__cell__text\">\n {{column.caption}}\n </div>\n <div *ngIf=\"column.unit\" class=\"table-head__cell__text font-caption color-text-70\" style=\"overflow: visible;\">\n [{{column.unit}}]\n </div>\n</div>\n", styles: [":host{align-items:center;justify-content:center;display:flex;min-width:0;padding:6px 8px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HintDirective, selector: "[tetaHint]", inputs: ["tetaHint", "align", "verticalAlign", "delay"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8141
8147
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DefaultHeadCellComponent, decorators: [{
|
|
8142
8148
|
type: Component,
|
|
8143
|
-
args: [{ selector: 'teta-default-head-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"column column_auto\" [tetaHint]=\"column.hint || column.caption\">\n <div class=\"table-head__cell__text\">\n {{column.caption}}\n </div>\n <div *ngIf=\"column.unit\" class=\"table-head__cell__text font-caption\" style=\"overflow: visible;\">\n [{{column.unit}}]\n </div>\n</div>\n", styles: [":host{align-items:center;justify-content:center;display:flex;min-width:0;padding:6px 8px}\n"] }]
|
|
8149
|
+
args: [{ selector: 'teta-default-head-cell', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"column column_auto\" [tetaHint]=\"column.hint || column.caption\">\n <div class=\"table-head__cell__text\">\n {{column.caption}}\n </div>\n <div *ngIf=\"column.unit\" class=\"table-head__cell__text font-caption color-text-70\" style=\"overflow: visible;\">\n [{{column.unit}}]\n </div>\n</div>\n", styles: [":host{align-items:center;justify-content:center;display:flex;min-width:0;padding:6px 8px}\n"] }]
|
|
8144
8150
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { column: [{
|
|
8145
8151
|
type: Input
|
|
8146
8152
|
}], columns: [{
|
|
@@ -11421,11 +11427,14 @@ class DragDirective {
|
|
|
11421
11427
|
return this.dropTarget === this.instance;
|
|
11422
11428
|
}
|
|
11423
11429
|
mousedown(event) {
|
|
11430
|
+
if (!this.allowDrag) {
|
|
11431
|
+
return;
|
|
11432
|
+
}
|
|
11424
11433
|
if (event.ctrlKey && this._container?.multiple) {
|
|
11425
|
-
this._dragService.addSelection(this.instance, this._container
|
|
11434
|
+
this._dragService.addSelection(this.instance, this._container?.instance);
|
|
11426
11435
|
}
|
|
11427
11436
|
else {
|
|
11428
|
-
this._dragService.setSelection(this.instance, this._container
|
|
11437
|
+
this._dragService.setSelection(this.instance, this._container?.instance);
|
|
11429
11438
|
}
|
|
11430
11439
|
this._dragService.setStartPosition({
|
|
11431
11440
|
x: event.x,
|