@smartbit4all/ng-client 3.1.75 → 3.1.77
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/esm2020/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.mjs +3 -3
- package/esm2020/lib/smart-grid/smart-grid.component.mjs +3 -3
- package/fesm2015/smartbit4all-ng-client.mjs +3 -3
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +3 -3
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.d.ts +3 -3
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.77.tgz +0 -0
- package/smartbit4all-ng-client-3.1.75.tgz +0 -0
|
@@ -10965,7 +10965,7 @@ class SmartGridComponent {
|
|
|
10965
10965
|
this.afterViewInitExecuted = false;
|
|
10966
10966
|
this.isBlocked = true;
|
|
10967
10967
|
this.getLevel = (node) => node.level ?? 0;
|
|
10968
|
-
this.isExpandable = (node) => (node.children ? true : false);
|
|
10968
|
+
this.isExpandable = (node) => (node.children && node.children.length > 0 ? true : false);
|
|
10969
10969
|
this.getChildren = (node) => {
|
|
10970
10970
|
if (node.children) {
|
|
10971
10971
|
let rows = this.smartGrid?.gridModel.page.rows?.filter((row) => node.children?.some((child) => child === row.id));
|
|
@@ -10975,7 +10975,7 @@ class SmartGridComponent {
|
|
|
10975
10975
|
}
|
|
10976
10976
|
return [];
|
|
10977
10977
|
};
|
|
10978
|
-
this.hasChild = (_, _nodeData) => (_nodeData
|
|
10978
|
+
this.hasChild = (_, _nodeData) => this.isExpandable(_nodeData);
|
|
10979
10979
|
this.transformer = (row, level) => {
|
|
10980
10980
|
row.level = level;
|
|
10981
10981
|
return row;
|
|
@@ -13032,7 +13032,7 @@ class SmartFilterEditorContentComponent {
|
|
|
13032
13032
|
this.expressionUiActionModels = [];
|
|
13033
13033
|
this.type = FilterExpressionBuilderUiModel.TypeEnum;
|
|
13034
13034
|
}
|
|
13035
|
-
|
|
13035
|
+
ngAfterViewChecked() {
|
|
13036
13036
|
if (this.service.model?.type === this.type.Simple) {
|
|
13037
13037
|
this.smartFilterChangeSubscription = this.smartFilterChild?.service.change
|
|
13038
13038
|
.pipe(takeUntil(this._destroy$))
|