@tetacom/ng-components 1.0.143 → 1.0.145
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/property-grid/property-grid/property-grid.component.d.ts +3 -1
- package/esm2020/common/util/position-util.mjs +11 -7
- package/esm2020/component/property-grid/property-grid/property-grid.component.mjs +12 -1
- package/fesm2015/tetacom-ng-components.mjs +21 -6
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +21 -6
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1154,9 +1154,11 @@ class PositionUtil {
|
|
|
1154
1154
|
rect.minWidth = containerWidth;
|
|
1155
1155
|
}
|
|
1156
1156
|
if (verticalAlign === VerticalAlign.auto) {
|
|
1157
|
-
if (containerPosition.bottom
|
|
1158
|
-
|
|
1159
|
-
|
|
1157
|
+
if (containerPosition.bottom <=
|
|
1158
|
+
window.innerHeight / 2 ||
|
|
1159
|
+
containerPosition.bottom +
|
|
1160
|
+
(elementPosition.bottom - elementPosition.top) <=
|
|
1161
|
+
window.innerHeight) {
|
|
1160
1162
|
verticalAlign = VerticalAlign.bottom;
|
|
1161
1163
|
}
|
|
1162
1164
|
else {
|
|
@@ -1164,9 +1166,11 @@ class PositionUtil {
|
|
|
1164
1166
|
}
|
|
1165
1167
|
}
|
|
1166
1168
|
if (verticalAlign === VerticalAlign.innerAuto) {
|
|
1167
|
-
if (containerPosition.bottom
|
|
1168
|
-
|
|
1169
|
-
|
|
1169
|
+
if (containerPosition.bottom <=
|
|
1170
|
+
window.innerHeight / 2 ||
|
|
1171
|
+
containerPosition.bottom +
|
|
1172
|
+
(elementPosition.bottom - elementPosition.top) <=
|
|
1173
|
+
window.innerHeight) {
|
|
1170
1174
|
verticalAlign = VerticalAlign.innerBottom;
|
|
1171
1175
|
}
|
|
1172
1176
|
else {
|
|
@@ -6922,6 +6926,17 @@ class PropertyGridComponent {
|
|
|
6922
6926
|
this._alive = true;
|
|
6923
6927
|
// console.log(this.formGroup)
|
|
6924
6928
|
}
|
|
6929
|
+
set item(item) {
|
|
6930
|
+
this._item = item;
|
|
6931
|
+
if (this.formGroup) {
|
|
6932
|
+
this.formGroup.patchValue(item, {
|
|
6933
|
+
emitEvent: false
|
|
6934
|
+
});
|
|
6935
|
+
}
|
|
6936
|
+
}
|
|
6937
|
+
get item() {
|
|
6938
|
+
return this._item;
|
|
6939
|
+
}
|
|
6925
6940
|
get formGroup() {
|
|
6926
6941
|
if (this._formGroup instanceof FormGroup) {
|
|
6927
6942
|
return this._formGroup;
|