@smartbit4all/ng-client 6.0.30 → 6.0.32

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 (32) hide show
  1. package/esm2022/lib/smart-component-layout/api/model/models.mjs +1 -1
  2. package/esm2022/lib/smart-component-layout/api/model/toolbarAlignment.mjs +1 -1
  3. package/esm2022/lib/smart-component-layout/api/model/toolbarProperties.mjs +1 -1
  4. package/esm2022/lib/smart-component-layout/smart-component-layout.component.mjs +6 -4
  5. package/esm2022/lib/smart-generic-pages/search-page/search-page.component.mjs +1 -1
  6. package/esm2022/lib/smart-generic-pages/subject-selector/subject-selector.component.mjs +1 -1
  7. package/esm2022/lib/smart-grid/api/grid-api/model/gridModel.mjs +1 -1
  8. package/esm2022/lib/smart-grid/api/grid-api/model/gridRow.mjs +1 -1
  9. package/esm2022/lib/smart-grid/api/grid-api/model/gridRowLayoutDescriptor.mjs +2 -0
  10. package/esm2022/lib/smart-grid/api/grid-api/model/models.mjs +2 -1
  11. package/esm2022/lib/smart-grid/components/smart-grid-card/smart-grid-card.component.mjs +53 -33
  12. package/esm2022/lib/smart-grid/models/model.mjs +1 -1
  13. package/esm2022/lib/smart-grid/smart-grid.component.mjs +10 -4
  14. package/esm2022/lib/smart-grid/smart-grid.service.mjs +1 -1
  15. package/esm2022/lib/smart-table/tables/material-table/material-table.component.mjs +9 -7
  16. package/esm2022/lib/smart-table/tables/table.mjs +59 -4
  17. package/esm2022/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +5 -1
  18. package/fesm2022/smartbit4all-ng-client.mjs +133 -47
  19. package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
  20. package/lib/smart-component-layout/smart-component-layout.component.d.ts +2 -1
  21. package/lib/smart-grid/api/grid-api/model/gridRow.d.ts +2 -0
  22. package/lib/smart-grid/api/grid-api/model/gridRowLayoutDescriptor.d.ts +20 -0
  23. package/lib/smart-grid/api/grid-api/model/models.d.ts +1 -0
  24. package/lib/smart-grid/components/smart-grid-card/smart-grid-card.component.d.ts +10 -8
  25. package/lib/smart-grid/models/model.d.ts +2 -0
  26. package/lib/smart-grid/smart-grid.component.d.ts +3 -1
  27. package/lib/smart-grid/smart-grid.service.d.ts +1 -1
  28. package/lib/smart-table/tables/table.d.ts +5 -0
  29. package/lib/view-context/smart-ui-action/ui-action-toolbar.component.d.ts +1 -0
  30. package/package.json +1 -1
  31. package/smartbit4all-ng-client-6.0.32.tgz +0 -0
  32. package/smartbit4all-ng-client-6.0.30.tgz +0 -0
@@ -1,7 +1,6 @@
1
1
  import { AfterViewChecked, AfterViewInit, ApplicationRef, ElementRef, OnChanges, OnDestroy, QueryList, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
2
2
  import { ComponentType, SmartComponentLayoutDefinition, ToolbarProperties } from './api';
3
3
  import { SmartForm, SmartFormWidgetDirection, SmartformComponent, SmartformLayoutDefinitionService } from '../smart-form/projects';
4
- import { SmartGrid, SmartGridComponent } from '../smart-grid/projects';
5
4
  import { SmartFilter, SmartFilterComponent } from '../smart-filter/projects';
6
5
  import { SmarttreeGenericService } from '../smart-tree/projects';
7
6
  import { ExpandableSection } from '../smart-expandable-section/projects';
@@ -11,6 +10,8 @@ import { UiActionToolbarComponent } from '../view-context/projects';
11
10
  import { SmartViewContextService } from '../view-context/smart-view-context.service';
12
11
  import { SmartMapComponent } from '../smart-map/smart-map.component';
13
12
  import { SmartDiagramComponent } from '../smart-diagram/projects';
13
+ import { SmartGridComponent } from '../smart-grid/smart-grid.component';
14
+ import { SmartGrid } from '../smart-grid/models/model';
14
15
  import * as i0 from "@angular/core";
15
16
  export declare class SmartComponentLayoutComponent implements AfterViewInit, AfterViewChecked, OnDestroy, OnChanges {
16
17
  private layoutService;
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ImageResource } from '../../../../view-context/api';
13
+ import { GridRowLayoutDescriptor } from './gridRowLayoutDescriptor';
13
14
  import { Style } from '../../../../view-context/api/model/style';
14
15
  import { UiAction } from '../../../../view-context/api';
15
16
  /**
@@ -42,4 +43,5 @@ export interface GridRow {
42
43
  * If present, this Style will be applied to the row.
43
44
  */
44
45
  style?: Style;
46
+ layoutDescriptor?: GridRowLayoutDescriptor;
45
47
  }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Grid api
3
+ * The grid api is resposible for the grid components that shows a list of item.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: info@it4all.hu
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { SmartComponentLayoutDefinition } from '../../../../smart-component-layout/api/model/smartComponentLayoutDefinition';
13
+ export interface GridRowLayoutDescriptor {
14
+ /**
15
+ * The components layouts defined in the row.
16
+ */
17
+ componentLayouts?: {
18
+ [key: string]: SmartComponentLayoutDefinition;
19
+ };
20
+ }
@@ -5,6 +5,7 @@ export * from './gridExportDescriptor';
5
5
  export * from './gridModel';
6
6
  export * from './gridPage';
7
7
  export * from './gridRow';
8
+ export * from './gridRowLayoutDescriptor';
8
9
  export * from './gridSelectionChange';
9
10
  export * from './gridSelectionMode';
10
11
  export * from './gridSelectionType';
@@ -1,24 +1,26 @@
1
- import { ComponentRef, AfterViewInit, ViewContainerRef, OnDestroy } from '@angular/core';
1
+ import { ComponentRef, AfterViewInit, ViewContainerRef, OnDestroy, ChangeDetectorRef } from '@angular/core';
2
2
  import { SmartGrid } from '../../models/model';
3
3
  import { GridRow } from '../../api/grid-api';
4
4
  import { ComponentFactoryService } from '../../../component-factory-service/projects';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SmartGridCardComponent implements AfterViewInit, OnDestroy {
7
7
  private cfService;
8
- item: GridRow;
9
- smartGrid: SmartGrid;
10
- onSelect: (rowId: string) => Promise<void>;
8
+ changeDetector: ChangeDetectorRef;
9
+ item: import("@angular/core").InputSignal<GridRow>;
10
+ smartGrid: import("@angular/core").InputSignal<SmartGrid>;
11
+ parent: import("@angular/core").InputSignal<any>;
12
+ parentLayoutComponent: import("@angular/core").InputSignal<any>;
13
+ layoutComponent: import("@angular/core").WritableSignal<any>;
11
14
  get testId(): string | null;
12
15
  vcRef?: ViewContainerRef;
13
16
  componentRef?: ComponentRef<any>;
17
+ layout: import("@angular/core").Signal<import("@smartbit4all/ng-client").SmartComponentLayoutDefinition | undefined>;
14
18
  uiActionModels: any[];
15
- values: any;
16
- constructor(cfService: ComponentFactoryService);
19
+ constructor(cfService: ComponentFactoryService, changeDetector: ChangeDetectorRef);
17
20
  ngAfterViewInit(): void;
18
21
  ngOnDestroy(): void;
19
22
  constructUiActionModels(): void;
20
23
  constructComponent(): void;
21
- select(): void;
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartGridCardComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<SmartGridCardComponent, "app-smart-grid-card", never, { "item": { "alias": "item"; "required": false; }; "smartGrid": { "alias": "smartGrid"; "required": false; }; "onSelect": { "alias": "onSelect"; "required": false; }; }, {}, never, never, false, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartGridCardComponent, "app-smart-grid-card", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; "smartGrid": { "alias": "smartGrid"; "required": true; "isSignal": true; }; "parent": { "alias": "parent"; "required": false; "isSignal": true; }; "parentLayoutComponent": { "alias": "parentLayoutComponent"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
24
26
  }
@@ -9,6 +9,8 @@ export type SmartGrid = {
9
9
  paginator?: boolean;
10
10
  showEditColumns?: boolean;
11
11
  customComponent?: any;
12
+ layoutComponent?: any;
13
+ layoutUtility?: any;
12
14
  dataLayoutDef?: SmartGridData;
13
15
  inputName?: string;
14
16
  showResultCount?: boolean;
@@ -36,6 +36,8 @@ export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnC
36
36
  private _destroy$;
37
37
  smartGrid?: SmartGrid;
38
38
  uuid?: string;
39
+ parent?: any;
40
+ parentLayoutComponent?: any;
39
41
  get testId(): string | null;
40
42
  dev: boolean;
41
43
  vcRefTable?: ViewContainerRef;
@@ -151,5 +153,5 @@ export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnC
151
153
  private rowMenuActionModelArrayCache;
152
154
  getRowMenuActionModelArray(row: GridRow): any[];
153
155
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartGridComponent, never>;
154
- static ɵcmp: i0.ɵɵComponentDeclaration<SmartGridComponent, "smart-grid", never, { "smartGrid": { "alias": "smartGrid"; "required": false; }; "uuid": { "alias": "uuid"; "required": false; }; "dev": { "alias": "dev"; "required": false; }; }, {}, never, never, false, never>;
156
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartGridComponent, "smart-grid", never, { "smartGrid": { "alias": "smartGrid"; "required": false; }; "uuid": { "alias": "uuid"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; "parentLayoutComponent": { "alias": "parentLayoutComponent"; "required": false; }; "dev": { "alias": "dev"; "required": false; }; }, {}, never, never, false, never>;
155
157
  }
@@ -1,7 +1,7 @@
1
1
  import { Subject } from 'rxjs';
2
2
  import { GridModel, GridRow, GridService, GridUpdateData } from './api/grid-api';
3
- import { SmartGrid } from './projects';
4
3
  import { ViewContextChange } from '../view-context/api/model/viewContextChange';
4
+ import { SmartGrid } from './models/model';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SmartGridService {
7
7
  private api;
@@ -6,6 +6,7 @@ import { ComponentFactoryService } from '../../component-factory-service/project
6
6
  import { ImageResource, UiAction, UiActionTooltip } from '../../view-context/api/model/models';
7
7
  import { DefaultActionsPopupComponent } from '../components/default-actions-popup/default-actions-popup.component';
8
8
  import { SmartTable, SmartTableButton, SmartTableButtonType, SmartTableHeader, SmartTableHeaderPropertyType, SmartTableOptionButtonDirection, SmartTableType } from '../smarttable.model';
9
+ import { MatMenuTrigger } from '@angular/material/menu';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class Table implements OnInit, OnDestroy {
11
12
  protected cfService: ComponentFactoryService;
@@ -21,6 +22,7 @@ export declare class Table implements OnInit, OnDestroy {
21
22
  highlightedRows: any[];
22
23
  sortEvent: Subject<SmartTableHeader>;
23
24
  expandedElement: any | null;
25
+ triggers: QueryList<MatMenuTrigger>;
24
26
  element?: any;
25
27
  cellToActionMap: Record<string, any[]>;
26
28
  onSelectionChanged: Subject<void>;
@@ -68,6 +70,7 @@ export declare class Table implements OnInit, OnDestroy {
68
70
  onRowDoubleClick(row: any): void;
69
71
  onToggle(element: any, event?: any): Promise<void>;
70
72
  setSelection(element: any): void;
73
+ showMenuButton(element: any, button: SmartTableButton): boolean;
71
74
  getValue(element: any, header: string): any;
72
75
  showButton(button: SmartTableButton, element: any): boolean;
73
76
  isDisabled(element: any): boolean;
@@ -88,6 +91,8 @@ export declare class Table implements OnInit, OnDestroy {
88
91
  private rowMenuActionModelArrayCache;
89
92
  getRowMenuActionModelArray(element: any): any[];
90
93
  shouldShowMenuButton(row: any): boolean;
94
+ getMenuButtons(row: any, button: SmartTableButton): SmartTableButton[];
95
+ getMenuItemButtonsPropertyName(element: any, button: SmartTableButton): any[];
91
96
  static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
92
97
  static ɵcmp: i0.ɵɵComponentDeclaration<Table, "ng-component", never, { "smartTable": { "alias": "smartTable"; "required": false; }; }, {}, never, never, false, never>;
93
98
  }
@@ -41,6 +41,7 @@ export declare class UiActionToolbarComponent implements OnInit, OnChanges, OnDe
41
41
  ngOnDestroy(): void;
42
42
  private subscribeToLanguageChange;
43
43
  setUp(): Promise<void>;
44
+ setActionModels(models: UiActionModel[]): void;
44
45
  clearSchedule(): void;
45
46
  scheduleActions(uiActionModels: UiActionModel[]): void;
46
47
  trackByFn(idx: number, m: UiActionModel): string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "6.0.30",
3
+ "version": "6.0.32",
4
4
  "description": "Angular client library for the smartbit4all platform — a server-driven UI framework that renders views, pages, forms, grids, trees and dialogs from backend (ViewApi/PageApi) definitions. Provides reactive view-context state management, dynamic component layouts and OpenAPI-generated BFF clients.",
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
Binary file