@smartbit4all/ng-client 3.1.59 → 3.1.61

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.
Files changed (96) hide show
  1. package/esm2020/lib/smart-filter-editor/api/api/filter.service.mjs +1 -1
  2. package/esm2020/lib/smart-filter-editor/api/configuration.mjs +1 -1
  3. package/esm2020/lib/smart-filter-editor/api/encoder.mjs +1 -1
  4. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBoolOperator.mjs +1 -1
  5. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderApiConfig.mjs +1 -1
  6. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderField.mjs +1 -1
  7. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderGroup.mjs +1 -1
  8. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderModel.mjs +1 -1
  9. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderUiModel.mjs +1 -1
  10. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionData.mjs +1 -1
  11. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionDataType.mjs +1 -1
  12. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionField.mjs +1 -1
  13. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldEditor.mjs +1 -1
  14. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldList.mjs +1 -1
  15. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.mjs +1 -1
  16. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionList.mjs +1 -1
  17. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperandData.mjs +1 -1
  18. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperation.mjs +1 -1
  19. package/esm2020/lib/smart-filter-editor/api/param.mjs +1 -1
  20. package/esm2020/lib/smart-filter-editor/api/variables.mjs +1 -1
  21. package/esm2020/lib/smart-form/api/api/api.mjs +1 -1
  22. package/esm2020/lib/smart-form/api/api/default.service.mjs +1 -1
  23. package/esm2020/lib/smart-form/api/api.module.mjs +1 -1
  24. package/esm2020/lib/smart-form/api/configuration.mjs +1 -1
  25. package/esm2020/lib/smart-form/api/encoder.mjs +1 -1
  26. package/esm2020/lib/smart-form/api/index.mjs +1 -1
  27. package/esm2020/lib/smart-form/api/model/models.mjs +1 -1
  28. package/esm2020/lib/smart-form/api/model/propertyMapping.mjs +1 -1
  29. package/esm2020/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
  30. package/esm2020/lib/smart-form/api/model/smartLayoutDefinition.mjs +1 -1
  31. package/esm2020/lib/smart-form/api/model/smartMatrixModel.mjs +1 -1
  32. package/esm2020/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
  33. package/esm2020/lib/smart-form/api/param.mjs +1 -1
  34. package/esm2020/lib/smart-form/api/variables.mjs +1 -1
  35. package/esm2020/lib/smart-grid/api/grid-api/api/api.mjs +1 -1
  36. package/esm2020/lib/smart-grid/api/grid-api/api/grid.service.mjs +1 -1
  37. package/esm2020/lib/smart-grid/api/grid-api/api.module.mjs +1 -1
  38. package/esm2020/lib/smart-grid/api/grid-api/configuration.mjs +1 -1
  39. package/esm2020/lib/smart-grid/api/grid-api/encoder.mjs +1 -1
  40. package/esm2020/lib/smart-grid/api/grid-api/index.mjs +1 -1
  41. package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnContentType.mjs +1 -1
  42. package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +1 -1
  43. package/esm2020/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.mjs +1 -1
  44. package/esm2020/lib/smart-grid/api/grid-api/model/gridModel.mjs +1 -1
  45. package/esm2020/lib/smart-grid/api/grid-api/model/gridPage.mjs +1 -1
  46. package/esm2020/lib/smart-grid/api/grid-api/model/gridRow.mjs +1 -1
  47. package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionMode.mjs +1 -1
  48. package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionType.mjs +1 -1
  49. package/esm2020/lib/smart-grid/api/grid-api/model/gridServerModel.mjs +1 -1
  50. package/esm2020/lib/smart-grid/api/grid-api/model/gridUpdateData.mjs +1 -1
  51. package/esm2020/lib/smart-grid/api/grid-api/model/gridView.mjs +1 -1
  52. package/esm2020/lib/smart-grid/api/grid-api/model/gridViewDescriptor.mjs +3 -2
  53. package/esm2020/lib/smart-grid/api/grid-api/model/models.mjs +1 -1
  54. package/esm2020/lib/smart-grid/api/grid-api/param.mjs +1 -1
  55. package/esm2020/lib/smart-grid/api/grid-api/variables.mjs +1 -1
  56. package/esm2020/lib/smart-grid/models/model.mjs +8 -1
  57. package/esm2020/lib/smart-grid/smart-grid.component.mjs +143 -5
  58. package/esm2020/lib/smart-grid/smart-grid.module.mjs +9 -1
  59. package/esm2020/lib/view-context/api/api/view.service.mjs +1 -1
  60. package/esm2020/lib/view-context/api/model/uploadedFile.mjs +1 -1
  61. package/esm2020/lib/view-context/api/model/viewEventHandler.mjs +1 -1
  62. package/esm2020/lib/view-context/value-api/api/api.mjs +1 -1
  63. package/esm2020/lib/view-context/value-api/api/value.service.mjs +1 -1
  64. package/esm2020/lib/view-context/value-api/api.module.mjs +1 -1
  65. package/esm2020/lib/view-context/value-api/configuration.mjs +1 -1
  66. package/esm2020/lib/view-context/value-api/encoder.mjs +1 -1
  67. package/esm2020/lib/view-context/value-api/index.mjs +1 -1
  68. package/esm2020/lib/view-context/value-api/model/genericValue.mjs +1 -1
  69. package/esm2020/lib/view-context/value-api/model/models.mjs +1 -1
  70. package/esm2020/lib/view-context/value-api/model/value.mjs +1 -1
  71. package/esm2020/lib/view-context/value-api/model/valueSetData.mjs +1 -1
  72. package/esm2020/lib/view-context/value-api/model/valueSetDefinition.mjs +1 -1
  73. package/esm2020/lib/view-context/value-api/model/valueSetDefinitionData.mjs +1 -1
  74. package/esm2020/lib/view-context/value-api/model/valueSetDefinitionIdentifier.mjs +1 -1
  75. package/esm2020/lib/view-context/value-api/model/valueSetDefinitionKind.mjs +1 -1
  76. package/esm2020/lib/view-context/value-api/model/valueSetExpression.mjs +1 -1
  77. package/esm2020/lib/view-context/value-api/model/valueSetOperand.mjs +1 -1
  78. package/esm2020/lib/view-context/value-api/model/valueSetOperation.mjs +1 -1
  79. package/esm2020/lib/view-context/value-api/param.mjs +1 -1
  80. package/esm2020/lib/view-context/value-api/variables.mjs +1 -1
  81. package/fesm2015/smartbit4all-ng-client.mjs +160 -8
  82. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  83. package/fesm2020/smartbit4all-ng-client.mjs +154 -7
  84. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  85. package/lib/smart-grid/api/grid-api/model/gridRow.d.ts +12 -0
  86. package/lib/smart-grid/api/grid-api/model/gridViewDescriptor.d.ts +5 -1
  87. package/lib/smart-grid/models/model.d.ts +2 -1
  88. package/lib/smart-grid/smart-grid.component.d.ts +24 -0
  89. package/lib/smart-grid/smart-grid.module.d.ts +7 -5
  90. package/package.json +1 -1
  91. package/smartbit4all-ng-client-3.1.61.tgz +0 -0
  92. package/src/lib/smart-filter-editor/api/README.md +226 -226
  93. package/src/lib/smart-form/api/README.md +226 -226
  94. package/src/lib/smart-grid/api/grid-api/README.md +226 -226
  95. package/src/lib/view-context/value-api/README.md +226 -226
  96. package/smartbit4all-ng-client-3.1.59.tgz +0 -0
@@ -65,9 +65,9 @@ import * as i2$5 from '@angular/material/table';
65
65
  import { MatTableModule } from '@angular/material/table';
66
66
  import { catchError, switchMap } from 'rxjs/operators';
67
67
  import * as i2$6 from '@angular/material/tree';
68
- import { MatTreeNestedDataSource, MatTreeModule } from '@angular/material/tree';
69
- import { NestedTreeControl } from '@angular/cdk/tree';
70
- import * as i7$1 from '@angular/material/paginator';
68
+ import { MatTreeNestedDataSource, MatTreeModule, MatTreeFlattener, MatTreeFlatDataSource } from '@angular/material/tree';
69
+ import { NestedTreeControl, FlatTreeControl } from '@angular/cdk/tree';
70
+ import * as i10$1 from '@angular/material/paginator';
71
71
  import { MatPaginatorModule } from '@angular/material/paginator';
72
72
  import * as i1$5 from '@angular/material/toolbar';
73
73
  import { MatToolbarModule } from '@angular/material/toolbar';
@@ -9673,6 +9673,7 @@ var SmartLayoutDef;
9673
9673
  SmartLayoutDef["TABLE"] = "TABLE";
9674
9674
  SmartLayoutDef["EXPANDABLE"] = "EXPANDABLE";
9675
9675
  SmartLayoutDef["CARD"] = "CARD";
9676
+ SmartLayoutDef["TREE"] = "TREE";
9676
9677
  })(SmartLayoutDef || (SmartLayoutDef = {}));
9677
9678
  var SmartGridButtonType;
9678
9679
  (function (SmartGridButtonType) {
@@ -9689,7 +9690,13 @@ var SmartGridType;
9689
9690
  SmartGridType["CARD1"] = "CARD1";
9690
9691
  SmartGridType["CARD2"] = "CARD2";
9691
9692
  SmartGridType["CUSTOM"] = "CUSTOM";
9692
- })(SmartGridType || (SmartGridType = {}));
9693
+ })(SmartGridType || (SmartGridType = {}));
9694
+ // export type SmartGridTreeNode = {
9695
+ // item: string;
9696
+ // level: number;
9697
+ // expandable: boolean;
9698
+ // row: SmartGrid;
9699
+ // };
9693
9700
 
9694
9701
  class SmartGridCardComponent {
9695
9702
  constructor(cfService) {
@@ -10322,7 +10329,8 @@ var GridViewDescriptor;
10322
10329
  (function (GridViewDescriptor) {
10323
10330
  GridViewDescriptor.KindEnum = {
10324
10331
  Table: 'TABLE',
10325
- Expandablecards1: 'EXPANDABLECARDS1'
10332
+ Expandablecards1: 'EXPANDABLECARDS1',
10333
+ Tree: 'TREE'
10326
10334
  };
10327
10335
  })(GridViewDescriptor || (GridViewDescriptor = {}));
10328
10336
 
@@ -11047,6 +11055,23 @@ class SmartGridComponent {
11047
11055
  this.uiActionDescriptors = new Map();
11048
11056
  this.afterViewInitExecuted = false;
11049
11057
  this.isBlocked = true;
11058
+ this.getLevel = (node) => { var _a; return (_a = node.level) !== null && _a !== void 0 ? _a : 0; };
11059
+ this.isExpandable = (node) => (node.children ? true : false);
11060
+ this.getChildren = (node) => {
11061
+ var _a, _b;
11062
+ if (node.children) {
11063
+ let rows = (_b = (_a = this.smartGrid) === null || _a === void 0 ? void 0 : _a.gridModel.page.rows) === null || _b === void 0 ? void 0 : _b.filter((row) => { var _a; return (_a = node.children) === null || _a === void 0 ? void 0 : _a.some((child) => child === row.id); });
11064
+ if (rows) {
11065
+ return rows;
11066
+ }
11067
+ }
11068
+ return [];
11069
+ };
11070
+ this.hasChild = (_, _nodeData) => (_nodeData.children ? true : false);
11071
+ this.transformer = (row, level) => {
11072
+ row.level = level;
11073
+ return row;
11074
+ };
11050
11075
  this.service.gridModelChanged.subscribe(() => {
11051
11076
  // called after every service call (load, save, refresh, etc.)
11052
11077
  this.smartGrid.gridModel = this.service.gridModel;
@@ -11127,6 +11152,9 @@ class SmartGridComponent {
11127
11152
  else if (this.smartGrid.layoutDef === SmartLayoutDef.CARD) {
11128
11153
  this.renderCards();
11129
11154
  }
11155
+ else if (this.smartGrid.layoutDef === SmartLayoutDef.TREE) {
11156
+ this.renderTree();
11157
+ }
11130
11158
  this.isBlocked = false;
11131
11159
  });
11132
11160
  }
@@ -11284,6 +11312,112 @@ class SmartGridComponent {
11284
11312
  renderCards() {
11285
11313
  // TODO
11286
11314
  }
11315
+ renderTree() {
11316
+ var _a, _b, _c, _d;
11317
+ if (!this.treeDataSource) {
11318
+ this.treeFlattener = new MatTreeFlattener(this.transformer, this.getLevel, this.isExpandable, this.getChildren);
11319
+ this.treeControl = new FlatTreeControl(this.getLevel, this.isExpandable);
11320
+ this.treeDataSource = new MatTreeFlatDataSource(this.treeControl, this.treeFlattener);
11321
+ const selectionMode = (_b = (_a = this.service.gridModel.view) === null || _a === void 0 ? void 0 : _a.descriptor) === null || _b === void 0 ? void 0 : _b.selectionMode;
11322
+ const isMultiple = selectionMode === GridSelectionMode.Multiple;
11323
+ this.treeChecklistSelection = new SelectionModel(isMultiple);
11324
+ }
11325
+ this.treeDataSource.data = this.smartGrid.gridModel.page.rows.filter((row) => !row.parent);
11326
+ // TODO handle and set selection..
11327
+ (_c = this.treeChecklistSelection) === null || _c === void 0 ? void 0 : _c.clear();
11328
+ (_d = this.treeControl) === null || _d === void 0 ? void 0 : _d.dataNodes.forEach((node) => {
11329
+ var _a;
11330
+ if (node.selected) {
11331
+ (_a = this.treeChecklistSelection) === null || _a === void 0 ? void 0 : _a.select(node);
11332
+ }
11333
+ });
11334
+ }
11335
+ getTreeItem(row) {
11336
+ var _a, _b;
11337
+ let columns = (_b = (_a = this.smartGrid) === null || _a === void 0 ? void 0 : _a.gridModel.view) === null || _b === void 0 ? void 0 : _b.orderedColumnNames;
11338
+ let data = row.data;
11339
+ if (columns && columns.length > 0) {
11340
+ return columns.map((col) => data[col]).join(' ');
11341
+ }
11342
+ return row.id;
11343
+ }
11344
+ /** Toggle the treeNode selection. Select/deselect all the descendants node */
11345
+ treeNodeSelectionToggle(node) {
11346
+ var _a, _b;
11347
+ if (!this.treeChecklistSelection) {
11348
+ return;
11349
+ }
11350
+ let selectionBefore = this.treeChecklistSelection.selected.map((row) => row.id);
11351
+ this.treeChecklistSelection.toggle(node);
11352
+ const descendants = this.treeControl.getDescendants(node);
11353
+ this.treeChecklistSelection.isSelected(node)
11354
+ ? this.treeChecklistSelection.select(...descendants)
11355
+ : this.treeChecklistSelection.deselect(...descendants);
11356
+ this.checkAllParentsSelection(node);
11357
+ let selectionAfter = this.treeChecklistSelection.selected.map((row) => row.id);
11358
+ let selectedIds = selectionAfter.filter((s) => !selectionBefore.includes(s));
11359
+ let unselectedIds = selectionBefore.filter((s) => !selectionAfter.includes(s));
11360
+ (_a = this.service.gridModel.page.rows) === null || _a === void 0 ? void 0 : _a.filter((row) => selectedIds.includes(row.id)).forEach((row) => (row.selected = false)); // onSelect will toggle!
11361
+ (_b = this.service.gridModel.page.rows) === null || _b === void 0 ? void 0 : _b.filter((row) => unselectedIds.includes(row.id)).forEach((row) => (row.selected = true)); // onSelect will toggle!
11362
+ let union = selectedIds.concat(unselectedIds);
11363
+ this.onSelectList(union);
11364
+ }
11365
+ checkAllParentsSelection(node) {
11366
+ let parent = this.getParentNode(node);
11367
+ while (parent) {
11368
+ this.checkParentNodeSelection(parent);
11369
+ parent = this.getParentNode(parent);
11370
+ }
11371
+ }
11372
+ checkParentNodeSelection(node) {
11373
+ if (!this.treeChecklistSelection) {
11374
+ return;
11375
+ }
11376
+ const nodeSelected = this.treeChecklistSelection.isSelected(node);
11377
+ const descAllSelected = this.descendantsAllSelected(node);
11378
+ if (nodeSelected && !descAllSelected) {
11379
+ this.treeChecklistSelection.deselect(node);
11380
+ }
11381
+ else if (!nodeSelected && descAllSelected) {
11382
+ this.treeChecklistSelection.select(node);
11383
+ }
11384
+ }
11385
+ /* Get the parent node of a node */
11386
+ getParentNode(node) {
11387
+ const currentLevel = this.getLevel(node);
11388
+ if (currentLevel < 1) {
11389
+ return null;
11390
+ }
11391
+ const startIndex = this.treeControl.dataNodes.indexOf(node) - 1;
11392
+ for (let i = startIndex; i >= 0; i--) {
11393
+ const currentNode = this.treeControl.dataNodes[i];
11394
+ if (this.getLevel(currentNode) < currentLevel) {
11395
+ return currentNode;
11396
+ }
11397
+ }
11398
+ return null;
11399
+ }
11400
+ /** Whether all the descendants of the node are selected. */
11401
+ descendantsAllSelected(node) {
11402
+ if (!this.treeControl || !this.treeChecklistSelection) {
11403
+ return false;
11404
+ }
11405
+ const descendants = this.treeControl.getDescendants(node);
11406
+ const descAllSelected = descendants.length > 0 &&
11407
+ descendants.every((child) => {
11408
+ return this.treeChecklistSelection.isSelected(child);
11409
+ });
11410
+ return descAllSelected;
11411
+ }
11412
+ /** Whether part of the descendants are selected */
11413
+ descendantsPartiallySelected(node) {
11414
+ if (!this.treeControl || !this.treeChecklistSelection) {
11415
+ return false;
11416
+ }
11417
+ const descendants = this.treeControl.getDescendants(node);
11418
+ const result = descendants.some((child) => this.treeChecklistSelection.isSelected(child));
11419
+ return result && !this.descendantsAllSelected(node);
11420
+ }
11287
11421
  constructHeader() {
11288
11422
  var _a, _b, _c, _d;
11289
11423
  return __awaiter(this, void 0, void 0, function* () {
@@ -11462,12 +11596,24 @@ class SmartGridComponent {
11462
11596
  }
11463
11597
  }
11464
11598
  onSelect(rowId) {
11465
- var _a;
11466
11599
  return __awaiter(this, void 0, void 0, function* () {
11467
11600
  this.isBlocked = true;
11601
+ this.onSelectInternal(rowId);
11602
+ this.refresh();
11603
+ });
11604
+ }
11605
+ onSelectInternal(rowId) {
11606
+ var _a;
11607
+ return __awaiter(this, void 0, void 0, function* () {
11468
11608
  const row = (_a = this.service.gridModel.page.rows) === null || _a === void 0 ? void 0 : _a.find((gridRow) => gridRow.id === rowId);
11469
11609
  const viewContextChange = yield this.service.select(this.smartGrid, row);
11470
11610
  this.smartGrid.viewContextService.handleChanges(viewContextChange.changes);
11611
+ });
11612
+ }
11613
+ onSelectList(rowIds) {
11614
+ return __awaiter(this, void 0, void 0, function* () {
11615
+ this.isBlocked = true;
11616
+ rowIds.forEach((rowId) => this.onSelectInternal(rowId));
11471
11617
  this.refresh();
11472
11618
  });
11473
11619
  }
@@ -11499,10 +11645,10 @@ class SmartGridComponent {
11499
11645
  }
11500
11646
  }
11501
11647
  SmartGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridComponent, deps: [{ token: SmartGridService }, { token: ComponentFactoryService }, { token: i1$2.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
11502
- SmartGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartGridComponent, selector: "smart-grid", inputs: { smartGrid: "smartGrid", uuid: "uuid", dev: "dev" }, providers: [SmartGridService], viewQueries: [{ propertyName: "vcRefTable", first: true, predicate: ["table"], descendants: true, read: ViewContainerRef }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"smartGrid\" class=\"smartGrid-container\">\r\n <div class=\"smart-grid-edit-button\" *ngIf=\"smartGrid.showEditColumns\">\r\n <button (click)=\"editColumns()\" mat-raised-button color=\"primary\">\r\n Oszlopok testreszab\u00E1sa\r\n </button>\r\n </div>\r\n <!-- <div [ngClass]=\"isBlocked ? 'blocked' : ''\"></div> -->\r\n <div class=\"smartGridContent\">\r\n <div>\r\n <div *ngIf=\"smartGrid.showResultCount\">\r\n <div class=\"smartGrid-data-number\">\r\n {{ smartGrid.gridModel.totalRowCount }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"smart-grid-table-container\">\r\n <ng-template #table></ng-template>\r\n </div>\r\n\r\n <div *ngIf=\"smartGrid.layoutDef === layoutDef().EXPANDABLE\">\r\n <smart-expandable-section\r\n #gridExpandableSection\r\n *ngFor=\"let expandableSection of expandableSections\"\r\n [data]=\"expandableSection\"\r\n ></smart-expandable-section>\r\n </div>\r\n <div\r\n *ngIf=\"smartGrid.layoutDef === layoutDef().CARD\"\r\n class=\"cards-container\"\r\n [ngStyle]=\"{\r\n 'grid-template-columns':\r\n smartGrid.numberOfColumn !== undefined\r\n ? 'repeat(' + smartGrid.numberOfColumn + ', 1fr)'\r\n : ''\r\n }\"\r\n >\r\n <app-smart-grid-card\r\n class=\"smartGrid-card-container\"\r\n *ngFor=\"let task of smartGrid.gridModel.page.rows\"\r\n [item]=\"task\"\r\n [smartGrid]=\"smartGrid\"\r\n ></app-smart-grid-card>\r\n </div>\r\n </div>\r\n\r\n <mat-paginator\r\n *ngIf=\"smartGrid.paginator\"\r\n #paginator\r\n [length]=\"length\"\r\n [pageSize]=\"pageSize\"\r\n [pageSizeOptions]=\"pageSizeOptions\"\r\n (page)=\"onChangePage($event)\"\r\n ></mat-paginator>\r\n</div>\r\n", styles: [".smartGrid-container{position:relative;padding:1.5rem;display:flex;flex-direction:column;gap:1rem}.smartGrid-data-number{padding-bottom:1rem}.cards-container{display:grid;grid-gap:1rem;gap:1rem;padding:1rem}.smartGrid-card-container{height:auto;border:1px solid black;border-radius:8px}.smartGrid-container ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-underline{bottom:0}.smartGridContent{width:100%;flex:1;overflow:auto}.blocked{position:absolute;width:calc(100% - 3rem);height:calc(100% - 3rem);z-index:110;background-color:#0003}.smart-grid-table-container{display:flex;flex-direction:column;gap:1rem}.smart-grid-edit-button{display:flex;flex-direction:row;justify-content:flex-end}\n"], components: [{ type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: ExpandableSectionComponent, selector: "smart-expandable-section", inputs: ["data", "index"] }, { type: SmartGridCardComponent, selector: "app-smart-grid-card", inputs: ["item", "smartGrid"] }, { type: i7$1.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
11648
+ SmartGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: SmartGridComponent, selector: "smart-grid", inputs: { smartGrid: "smartGrid", uuid: "uuid", dev: "dev" }, providers: [SmartGridService], viewQueries: [{ propertyName: "vcRefTable", first: true, predicate: ["table"], descendants: true, read: ViewContainerRef }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"smartGrid\" class=\"smartGrid-container\">\r\n <div class=\"smart-grid-edit-button\" *ngIf=\"smartGrid.showEditColumns\">\r\n <button (click)=\"editColumns()\" mat-raised-button color=\"primary\">\r\n Oszlopok testreszab\u00E1sa\r\n </button>\r\n </div>\r\n <!-- <div [ngClass]=\"isBlocked ? 'blocked' : ''\"></div> -->\r\n <div class=\"smartGridContent\">\r\n <div>\r\n <div *ngIf=\"smartGrid.showResultCount\">\r\n <div class=\"smartGrid-data-number\">\r\n {{ smartGrid.gridModel.totalRowCount }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"smart-grid-table-container\">\r\n <ng-template #table></ng-template>\r\n </div>\r\n\r\n <div *ngIf=\"smartGrid.layoutDef === layoutDef().EXPANDABLE\">\r\n <smart-expandable-section\r\n #gridExpandableSection\r\n *ngFor=\"let expandableSection of expandableSections\"\r\n [data]=\"expandableSection\"\r\n ></smart-expandable-section>\r\n </div>\r\n <div\r\n *ngIf=\"smartGrid.layoutDef === layoutDef().CARD\"\r\n class=\"cards-container\"\r\n [ngStyle]=\"{\r\n 'grid-template-columns':\r\n smartGrid.numberOfColumn !== undefined\r\n ? 'repeat(' + smartGrid.numberOfColumn + ', 1fr)'\r\n : ''\r\n }\"\r\n >\r\n <app-smart-grid-card\r\n class=\"smartGrid-card-container\"\r\n *ngFor=\"let task of smartGrid.gridModel.page.rows\"\r\n [item]=\"task\"\r\n [smartGrid]=\"smartGrid\"\r\n ></app-smart-grid-card>\r\n </div>\r\n <div\r\n *ngIf=\"smartGrid.layoutDef === layoutDef().TREE && treeControl\"\r\n class=\"tree-container\"\r\n [ngStyle]=\"{\r\n 'grid-template-columns':\r\n smartGrid.numberOfColumn !== undefined\r\n ? 'repeat(' + smartGrid.numberOfColumn + ', 1fr)'\r\n : ''\r\n }\"\r\n >\r\n <mat-tree [dataSource]=\"treeDataSource!\" [treeControl]=\"treeControl!\">\r\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodeToggle matTreeNodePadding>\r\n <button mat-icon-button disabled></button>\r\n <mat-checkbox\r\n class=\"checklist-leaf-node\"\r\n [checked]=\"treeChecklistSelection?.isSelected(node)\"\r\n (change)=\"treeNodeSelectionToggle(node)\"\r\n >{{ getTreeItem(node) }}</mat-checkbox\r\n >\r\n </mat-tree-node>\r\n\r\n <!-- <mat-tree-node *matTreeNodeDef=\"let node; when: hasNoContent\" matTreeNodePadding>\r\n <button mat-icon-button disabled></button>\r\n <mat-form-field appearance=\"fill\">\r\n <mat-label>New item...</mat-label>\r\n <input matInput #itemValue placeholder=\"Ex. Lettuce\" />\r\n </mat-form-field>\r\n <button mat-button (click)=\"saveNode(node, itemValue.value)\">Save</button>\r\n </mat-tree-node> -->\r\n\r\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\r\n <button mat-icon-button matTreeNodeToggle [attr.aria-label]=\"'Toggle ' + node.item\">\r\n <mat-icon class=\"mat-icon-rtl-mirror\">\r\n {{ treeControl!.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\r\n </mat-icon>\r\n </button>\r\n <!-- [checked]=\"descendantsAllSelected(node)\" -->\r\n <mat-checkbox\r\n [checked]=\"treeChecklistSelection?.isSelected(node)\"\r\n [indeterminate]=\"descendantsPartiallySelected(node)\"\r\n (change)=\"treeNodeSelectionToggle(node)\"\r\n >{{ getTreeItem(node) }}</mat-checkbox\r\n >\r\n </mat-tree-node>\r\n </mat-tree>\r\n </div>\r\n </div>\r\n\r\n <mat-paginator\r\n *ngIf=\"smartGrid.paginator\"\r\n #paginator\r\n [length]=\"length\"\r\n [pageSize]=\"pageSize\"\r\n [pageSizeOptions]=\"pageSizeOptions\"\r\n (page)=\"onChangePage($event)\"\r\n ></mat-paginator>\r\n</div>\r\n", styles: [".smartGrid-container{position:relative;padding:1.5rem;display:flex;flex-direction:column;gap:1rem}.smartGrid-data-number{padding-bottom:1rem}.cards-container{display:grid;grid-gap:1rem;gap:1rem;padding:1rem}.smartGrid-card-container{height:auto;border:1px solid black;border-radius:8px}.smartGrid-container ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-underline{bottom:0}.smartGridContent{width:100%;flex:1;overflow:auto}.blocked{position:absolute;width:calc(100% - 3rem);height:calc(100% - 3rem);z-index:110;background-color:#0003}.smart-grid-table-container{display:flex;flex-direction:column;gap:1rem}.smart-grid-edit-button{display:flex;flex-direction:row;justify-content:flex-end}\n"], components: [{ type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: ExpandableSectionComponent, selector: "smart-expandable-section", inputs: ["data", "index"] }, { type: SmartGridCardComponent, selector: "app-smart-grid-card", inputs: ["item", "smartGrid"] }, { type: i2$6.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { type: i10.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i10$1.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2$6.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { type: i2$6.MatTreeNode, selector: "mat-tree-node", inputs: ["role", "disabled", "tabIndex"], exportAs: ["matTreeNode"] }, { type: i2$6.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { type: i2$6.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }] });
11503
11649
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridComponent, decorators: [{
11504
11650
  type: Component,
11505
- args: [{ selector: 'smart-grid', providers: [SmartGridService], template: "<div *ngIf=\"smartGrid\" class=\"smartGrid-container\">\r\n <div class=\"smart-grid-edit-button\" *ngIf=\"smartGrid.showEditColumns\">\r\n <button (click)=\"editColumns()\" mat-raised-button color=\"primary\">\r\n Oszlopok testreszab\u00E1sa\r\n </button>\r\n </div>\r\n <!-- <div [ngClass]=\"isBlocked ? 'blocked' : ''\"></div> -->\r\n <div class=\"smartGridContent\">\r\n <div>\r\n <div *ngIf=\"smartGrid.showResultCount\">\r\n <div class=\"smartGrid-data-number\">\r\n {{ smartGrid.gridModel.totalRowCount }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"smart-grid-table-container\">\r\n <ng-template #table></ng-template>\r\n </div>\r\n\r\n <div *ngIf=\"smartGrid.layoutDef === layoutDef().EXPANDABLE\">\r\n <smart-expandable-section\r\n #gridExpandableSection\r\n *ngFor=\"let expandableSection of expandableSections\"\r\n [data]=\"expandableSection\"\r\n ></smart-expandable-section>\r\n </div>\r\n <div\r\n *ngIf=\"smartGrid.layoutDef === layoutDef().CARD\"\r\n class=\"cards-container\"\r\n [ngStyle]=\"{\r\n 'grid-template-columns':\r\n smartGrid.numberOfColumn !== undefined\r\n ? 'repeat(' + smartGrid.numberOfColumn + ', 1fr)'\r\n : ''\r\n }\"\r\n >\r\n <app-smart-grid-card\r\n class=\"smartGrid-card-container\"\r\n *ngFor=\"let task of smartGrid.gridModel.page.rows\"\r\n [item]=\"task\"\r\n [smartGrid]=\"smartGrid\"\r\n ></app-smart-grid-card>\r\n </div>\r\n </div>\r\n\r\n <mat-paginator\r\n *ngIf=\"smartGrid.paginator\"\r\n #paginator\r\n [length]=\"length\"\r\n [pageSize]=\"pageSize\"\r\n [pageSizeOptions]=\"pageSizeOptions\"\r\n (page)=\"onChangePage($event)\"\r\n ></mat-paginator>\r\n</div>\r\n", styles: [".smartGrid-container{position:relative;padding:1.5rem;display:flex;flex-direction:column;gap:1rem}.smartGrid-data-number{padding-bottom:1rem}.cards-container{display:grid;grid-gap:1rem;gap:1rem;padding:1rem}.smartGrid-card-container{height:auto;border:1px solid black;border-radius:8px}.smartGrid-container ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-underline{bottom:0}.smartGridContent{width:100%;flex:1;overflow:auto}.blocked{position:absolute;width:calc(100% - 3rem);height:calc(100% - 3rem);z-index:110;background-color:#0003}.smart-grid-table-container{display:flex;flex-direction:column;gap:1rem}.smart-grid-edit-button{display:flex;flex-direction:row;justify-content:flex-end}\n"] }]
11651
+ args: [{ selector: 'smart-grid', providers: [SmartGridService], template: "<div *ngIf=\"smartGrid\" class=\"smartGrid-container\">\r\n <div class=\"smart-grid-edit-button\" *ngIf=\"smartGrid.showEditColumns\">\r\n <button (click)=\"editColumns()\" mat-raised-button color=\"primary\">\r\n Oszlopok testreszab\u00E1sa\r\n </button>\r\n </div>\r\n <!-- <div [ngClass]=\"isBlocked ? 'blocked' : ''\"></div> -->\r\n <div class=\"smartGridContent\">\r\n <div>\r\n <div *ngIf=\"smartGrid.showResultCount\">\r\n <div class=\"smartGrid-data-number\">\r\n {{ smartGrid.gridModel.totalRowCount }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"smart-grid-table-container\">\r\n <ng-template #table></ng-template>\r\n </div>\r\n\r\n <div *ngIf=\"smartGrid.layoutDef === layoutDef().EXPANDABLE\">\r\n <smart-expandable-section\r\n #gridExpandableSection\r\n *ngFor=\"let expandableSection of expandableSections\"\r\n [data]=\"expandableSection\"\r\n ></smart-expandable-section>\r\n </div>\r\n <div\r\n *ngIf=\"smartGrid.layoutDef === layoutDef().CARD\"\r\n class=\"cards-container\"\r\n [ngStyle]=\"{\r\n 'grid-template-columns':\r\n smartGrid.numberOfColumn !== undefined\r\n ? 'repeat(' + smartGrid.numberOfColumn + ', 1fr)'\r\n : ''\r\n }\"\r\n >\r\n <app-smart-grid-card\r\n class=\"smartGrid-card-container\"\r\n *ngFor=\"let task of smartGrid.gridModel.page.rows\"\r\n [item]=\"task\"\r\n [smartGrid]=\"smartGrid\"\r\n ></app-smart-grid-card>\r\n </div>\r\n <div\r\n *ngIf=\"smartGrid.layoutDef === layoutDef().TREE && treeControl\"\r\n class=\"tree-container\"\r\n [ngStyle]=\"{\r\n 'grid-template-columns':\r\n smartGrid.numberOfColumn !== undefined\r\n ? 'repeat(' + smartGrid.numberOfColumn + ', 1fr)'\r\n : ''\r\n }\"\r\n >\r\n <mat-tree [dataSource]=\"treeDataSource!\" [treeControl]=\"treeControl!\">\r\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodeToggle matTreeNodePadding>\r\n <button mat-icon-button disabled></button>\r\n <mat-checkbox\r\n class=\"checklist-leaf-node\"\r\n [checked]=\"treeChecklistSelection?.isSelected(node)\"\r\n (change)=\"treeNodeSelectionToggle(node)\"\r\n >{{ getTreeItem(node) }}</mat-checkbox\r\n >\r\n </mat-tree-node>\r\n\r\n <!-- <mat-tree-node *matTreeNodeDef=\"let node; when: hasNoContent\" matTreeNodePadding>\r\n <button mat-icon-button disabled></button>\r\n <mat-form-field appearance=\"fill\">\r\n <mat-label>New item...</mat-label>\r\n <input matInput #itemValue placeholder=\"Ex. Lettuce\" />\r\n </mat-form-field>\r\n <button mat-button (click)=\"saveNode(node, itemValue.value)\">Save</button>\r\n </mat-tree-node> -->\r\n\r\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\r\n <button mat-icon-button matTreeNodeToggle [attr.aria-label]=\"'Toggle ' + node.item\">\r\n <mat-icon class=\"mat-icon-rtl-mirror\">\r\n {{ treeControl!.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\r\n </mat-icon>\r\n </button>\r\n <!-- [checked]=\"descendantsAllSelected(node)\" -->\r\n <mat-checkbox\r\n [checked]=\"treeChecklistSelection?.isSelected(node)\"\r\n [indeterminate]=\"descendantsPartiallySelected(node)\"\r\n (change)=\"treeNodeSelectionToggle(node)\"\r\n >{{ getTreeItem(node) }}</mat-checkbox\r\n >\r\n </mat-tree-node>\r\n </mat-tree>\r\n </div>\r\n </div>\r\n\r\n <mat-paginator\r\n *ngIf=\"smartGrid.paginator\"\r\n #paginator\r\n [length]=\"length\"\r\n [pageSize]=\"pageSize\"\r\n [pageSizeOptions]=\"pageSizeOptions\"\r\n (page)=\"onChangePage($event)\"\r\n ></mat-paginator>\r\n</div>\r\n", styles: [".smartGrid-container{position:relative;padding:1.5rem;display:flex;flex-direction:column;gap:1rem}.smartGrid-data-number{padding-bottom:1rem}.cards-container{display:grid;grid-gap:1rem;gap:1rem;padding:1rem}.smartGrid-card-container{height:auto;border:1px solid black;border-radius:8px}.smartGrid-container ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-underline{bottom:0}.smartGridContent{width:100%;flex:1;overflow:auto}.blocked{position:absolute;width:calc(100% - 3rem);height:calc(100% - 3rem);z-index:110;background-color:#0003}.smart-grid-table-container{display:flex;flex-direction:column;gap:1rem}.smart-grid-edit-button{display:flex;flex-direction:row;justify-content:flex-end}\n"] }]
11506
11652
  }], ctorParameters: function () { return [{ type: SmartGridService }, { type: ComponentFactoryService }, { type: i1$2.MatDialog }]; }, propDecorators: { smartGrid: [{
11507
11653
  type: Input
11508
11654
  }], uuid: [{
@@ -11542,6 +11688,8 @@ SmartGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
11542
11688
  MatIconModule,
11543
11689
  MatButtonModule,
11544
11690
  MatPaginatorModule,
11691
+ MatTreeModule,
11692
+ MatCheckboxModule,
11545
11693
  SmartExpandableSectionModule,
11546
11694
  DragDropModule,
11547
11695
  SmartformModule,
@@ -11553,6 +11701,8 @@ SmartGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version
11553
11701
  MatIconModule,
11554
11702
  MatButtonModule,
11555
11703
  MatPaginatorModule,
11704
+ MatTreeModule,
11705
+ MatCheckboxModule,
11556
11706
  SmartExpandableSectionModule,
11557
11707
  DragDropModule,
11558
11708
  SmartformModule,
@@ -11574,6 +11724,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
11574
11724
  MatIconModule,
11575
11725
  MatButtonModule,
11576
11726
  MatPaginatorModule,
11727
+ MatTreeModule,
11728
+ MatCheckboxModule,
11577
11729
  SmartExpandableSectionModule,
11578
11730
  DragDropModule,
11579
11731
  SmartformModule,