@smartbit4all/ng-client 3.1.18 → 3.1.20

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 (28) hide show
  1. package/esm2020/lib/smart-grid/api/grid-api/api/grid.service.mjs +1 -1
  2. package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnContentType.mjs +16 -0
  3. package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +1 -12
  4. package/esm2020/lib/smart-grid/api/grid-api/model/gridRow.mjs +1 -1
  5. package/esm2020/lib/smart-grid/api/grid-api/model/models.mjs +2 -1
  6. package/esm2020/lib/smart-table/tables/material-table/material-table.component.mjs +3 -3
  7. package/esm2020/lib/smart-table/tables/table.mjs +20 -1
  8. package/esm2020/lib/view-context/api/model/componentModel.mjs +1 -1
  9. package/esm2020/lib/view-context/api/model/imageResource.mjs +20 -0
  10. package/esm2020/lib/view-context/api/model/models.mjs +2 -1
  11. package/esm2020/lib/view-context/api/model/view.mjs +1 -1
  12. package/fesm2015/smartbit4all-ng-client.mjs +59 -3
  13. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  14. package/fesm2020/smartbit4all-ng-client.mjs +47 -4
  15. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  16. package/lib/smart-grid/api/grid-api/api/grid.service.d.ts +1 -1
  17. package/lib/smart-grid/api/grid-api/model/gridColumnContentType.d.ts +16 -0
  18. package/lib/smart-grid/api/grid-api/model/gridColumnMeta.d.ts +4 -0
  19. package/lib/smart-grid/api/grid-api/model/gridRow.d.ts +5 -1
  20. package/lib/smart-grid/api/grid-api/model/models.d.ts +1 -0
  21. package/lib/smart-table/tables/table.d.ts +4 -0
  22. package/lib/view-context/api/model/componentModel.d.ts +2 -2
  23. package/lib/view-context/api/model/imageResource.d.ts +25 -0
  24. package/lib/view-context/api/model/models.d.ts +1 -0
  25. package/lib/view-context/api/model/view.d.ts +2 -2
  26. package/package.json +1 -1
  27. package/smartbit4all-ng-client-3.1.20.tgz +0 -0
  28. package/smartbit4all-ng-client-3.1.18.tgz +0 -0
@@ -2,7 +2,7 @@ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, H
2
2
  import { Observable } from 'rxjs';
3
3
  import { GridModel } from '../model/gridModel';
4
4
  import { GridUpdateData } from '../model/gridUpdateData';
5
- import { ViewContextChange } from '../../../../view-context/api/model/viewContextChange';
5
+ import { ViewContextChange } from '../../../../view-context/api';
6
6
  import { Configuration } from '../configuration';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class GridService {
@@ -0,0 +1,16 @@
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
+ export declare type GridColumnContentType = 'text' | 'html';
13
+ export declare const GridColumnContentType: {
14
+ Text: GridColumnContentType;
15
+ Html: GridColumnContentType;
16
+ };
@@ -9,10 +9,14 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { GridColumnContentType } from './gridColumnContentType';
12
13
  export interface GridColumnMeta {
13
14
  label: string;
14
15
  propertyName: string;
15
16
  typeClass?: string;
16
17
  alwaysHidden?: boolean;
17
18
  alwaysShow?: boolean;
19
+ contentType?: GridColumnContentType;
20
+ }
21
+ export declare namespace GridColumnMeta {
18
22
  }
@@ -9,7 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { UiAction } from '../../../../view-context/api/model/uiAction';
12
+ import { ImageResource } from '../../../../view-context/api';
13
+ import { UiAction } from '../../../../view-context/api';
13
14
  /**
14
15
  * This object is a grid row containening the identifier and actions releted with the row.
15
16
  */
@@ -19,4 +20,7 @@ export interface GridRow {
19
20
  data?: object;
20
21
  selectable?: boolean;
21
22
  selected?: boolean;
23
+ icons: {
24
+ [key: string]: ImageResource;
25
+ };
22
26
  }
@@ -1,3 +1,4 @@
1
+ export * from './gridColumnContentType';
1
2
  export * from './gridColumnMeta';
2
3
  export * from './gridDataAccessConfig';
3
4
  export * from './gridModel';
@@ -54,6 +54,10 @@ export declare class Table implements OnInit, OnDestroy {
54
54
  showButton(button: SmartTableButton, element: any): boolean;
55
55
  isDisabled(element: any): boolean;
56
56
  isSelected(element: any): boolean;
57
+ private originalProperty;
58
+ isImageResource(element: any, header: string): boolean;
59
+ getImageResourceIcon(element: any, header: string): any;
60
+ getImageResourceColor(element: any, header: string): any;
57
61
  static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
58
62
  static ɵcmp: i0.ɵɵComponentDeclaration<Table, "ng-component", never, { "smartTable": "smartTable"; }, {}, never, never>;
59
63
  }
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { SmartLayoutDefinition } from '../../../smart-form/api/model/smartLayoutDefinition';
12
+ import { SmartLayoutDefinition } from '../../../smart-form/api';
13
13
  import { ComponentConstraint } from './componentConstraint';
14
- import { SmartComponentLayoutDefinition } from '../../../smart-component-layout/api/model/smartComponentLayoutDefinition';
14
+ import { SmartComponentLayoutDefinition } from '../../../smart-component-layout/api';
15
15
  import { UiAction } from './uiAction';
16
16
  import { ValueSet } from './valueSet';
17
17
  /**
@@ -0,0 +1,25 @@
1
+ /**
2
+ * View API
3
+ * View API
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
+ export interface ImageResource {
13
+ kind?: ImageResource.KindEnum;
14
+ source?: string;
15
+ identifier?: string;
16
+ color?: string;
17
+ }
18
+ export declare namespace ImageResource {
19
+ type KindEnum = 'FE' | 'BE' | 'URL';
20
+ const KindEnum: {
21
+ Fe: KindEnum;
22
+ Be: KindEnum;
23
+ Url: KindEnum;
24
+ };
25
+ }
@@ -5,6 +5,7 @@ export * from './componentModelChange';
5
5
  export * from './dataChange';
6
6
  export * from './dataChangeEvent';
7
7
  export * from './dataChangeKind';
8
+ export * from './imageResource';
8
9
  export * from './link';
9
10
  export * from './messageData';
10
11
  export * from './messageOption';
@@ -10,8 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ViewEventHandler } from './viewEventHandler';
13
- import { SmartLayoutDefinition } from '../../../smart-form/api/model/smartLayoutDefinition';
14
- import { SmartComponentLayoutDefinition } from '../../../smart-component-layout/api/model/smartComponentLayoutDefinition';
13
+ import { SmartLayoutDefinition } from '../../../smart-form/api';
14
+ import { SmartComponentLayoutDefinition } from '../../../smart-component-layout/api';
15
15
  import { ViewState } from './viewState';
16
16
  import { UiAction } from './uiAction';
17
17
  import { ValueSet } from './valueSet';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "3.1.18",
3
+ "version": "3.1.20",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.3.9",
6
6
  "@angular/common": "^13.2.0",
Binary file