@smartbit4all/ng-client 3.3.70 → 3.3.72

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.
@@ -1,6 +1,7 @@
1
1
  import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { GridModel } from '../model/gridModel';
4
+ import { GridSelectionChange } from '../model/gridSelectionChange';
4
5
  import { GridUpdateData } from '../model/gridUpdateData';
5
6
  import { ViewContextChange } from '../../../../view-context/api';
6
7
  import { Configuration } from '../configuration';
@@ -94,6 +95,26 @@ export declare class GridService {
94
95
  httpHeaderAccept?: 'application/json';
95
96
  context?: HttpContext;
96
97
  }): Observable<HttpEvent<ViewContextChange>>;
98
+ /**
99
+ *
100
+ * @param uuid
101
+ * @param gridId
102
+ * @param gridSelectionChange
103
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
104
+ * @param reportProgress flag to report request and response progress.
105
+ */
106
+ selectRows(uuid: string, gridId: string, gridSelectionChange: GridSelectionChange, observe?: 'body', reportProgress?: boolean, options?: {
107
+ httpHeaderAccept?: 'application/json';
108
+ context?: HttpContext;
109
+ }): Observable<ViewContextChange>;
110
+ selectRows(uuid: string, gridId: string, gridSelectionChange: GridSelectionChange, observe?: 'response', reportProgress?: boolean, options?: {
111
+ httpHeaderAccept?: 'application/json';
112
+ context?: HttpContext;
113
+ }): Observable<HttpResponse<ViewContextChange>>;
114
+ selectRows(uuid: string, gridId: string, gridSelectionChange: GridSelectionChange, observe?: 'events', reportProgress?: boolean, options?: {
115
+ httpHeaderAccept?: 'application/json';
116
+ context?: HttpContext;
117
+ }): Observable<HttpEvent<ViewContextChange>>;
97
118
  /**
98
119
  *
99
120
  * @param uuid
@@ -0,0 +1,18 @@
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
+ /**
13
+ * This object contains all information about a grid\'s selection change.
14
+ */
15
+ export interface GridSelectionChange {
16
+ selected: Array<string>;
17
+ unselected: Array<string>;
18
+ }
@@ -4,6 +4,7 @@ export * from './gridDataAccessConfig';
4
4
  export * from './gridModel';
5
5
  export * from './gridPage';
6
6
  export * from './gridRow';
7
+ export * from './gridSelectionChange';
7
8
  export * from './gridSelectionMode';
8
9
  export * from './gridSelectionType';
9
10
  export * from './gridServerModel';
@@ -94,9 +94,8 @@ export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnC
94
94
  onDoubleClick(gridRow: GridRow): void;
95
95
  private handleOnClick;
96
96
  onSelect(rowId: any): Promise<void>;
97
- private selectRowInternal;
98
- private onSelectList;
99
97
  private onSelectAll;
98
+ private onSelectRows;
100
99
  editColumns(): void;
101
100
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartGridComponent, never>;
102
101
  static ɵcmp: i0.ɵɵComponentDeclaration<SmartGridComponent, "smart-grid", never, { "smartGrid": "smartGrid"; "uuid": "uuid"; "dev": "dev"; }, {}, never, never>;
@@ -13,6 +13,7 @@ export declare class SmartGridService {
13
13
  sort(smartGrid: SmartGrid, gridUpdateData: GridUpdateData): Promise<void>;
14
14
  expand(smartGrid: SmartGrid, rowId: string): Promise<any>;
15
15
  select(smartGrid: SmartGrid, gridRow: GridRow): Promise<any>;
16
+ selectRows(smartGrid: SmartGrid, selected: string[], unselected: string[]): Promise<any>;
16
17
  selectAll(smartGrid: SmartGrid, selected: boolean): Promise<any>;
17
18
  update(uuid: string, identifier: string, updateData: GridUpdateData): Promise<void>;
18
19
  private updateGrid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "3.3.70",
3
+ "version": "3.3.72",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.3.9",
6
6
  "@angular/common": "^13.2.0",
Binary file