@smartbit4all/ng-client 3.0.5 → 3.0.7
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/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.mjs +2 -2
- package/esm2020/lib/smart-grid/api/grid-api/api/api.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/api/grid.service.mjs +49 -27
- package/esm2020/lib/smart-grid/api/grid-api/api.module.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/configuration.mjs +20 -1
- package/esm2020/lib/smart-grid/api/grid-api/encoder.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/index.mjs +2 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridModel.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridPage.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridRow.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionMode.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionType.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridServerModel.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridUpdateData.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridView.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridViewDescriptor.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/models.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/param.mjs +2 -0
- package/esm2020/lib/smart-grid/api/grid-api/variables.mjs +1 -1
- package/esm2020/lib/smart-grid/smart-grid.component.mjs +25 -11
- package/esm2020/lib/smart-grid/smart-grid.service.mjs +16 -15
- package/esm2020/lib/view-context/api/model/componentModel.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiAction.mjs +1 -1
- package/esm2020/lib/view-context/api/model/view.mjs +1 -1
- package/esm2020/lib/view-context/projects.mjs +14 -14
- package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.mjs +2 -2
- package/esm2020/lib/view-context/smart-view-context.module.mjs +4 -2
- package/esm2020/lib/view-context/smart-view-context.service.mjs +15 -6
- package/esm2020/lib/view-context/value-api/model/genericValue.mjs +13 -0
- package/esm2020/lib/view-context/value-api/model/models.mjs +3 -1
- package/esm2020/lib/view-context/value-api/model/valueSetData.mjs +1 -12
- package/esm2020/lib/view-context/value-api/model/valueSetDefinitionIdentifier.mjs +13 -0
- package/fesm2015/smartbit4all-ng-client.mjs +122 -55
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +121 -54
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.d.ts +1 -1
- package/lib/smart-grid/api/grid-api/api/grid.service.d.ts +1 -1
- package/lib/smart-grid/api/grid-api/configuration.d.ts +24 -0
- package/lib/smart-grid/api/grid-api/index.d.ts +1 -0
- package/lib/smart-grid/api/grid-api/model/gridViewDescriptor.d.ts +1 -0
- package/lib/smart-grid/api/grid-api/param.d.ts +37 -0
- package/lib/smart-grid/smart-grid.component.d.ts +2 -0
- package/lib/smart-grid/smart-grid.service.d.ts +1 -2
- package/lib/view-context/projects.d.ts +13 -13
- package/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.d.ts +1 -1
- package/lib/view-context/smart-view-context.service.d.ts +4 -2
- package/lib/view-context/value-api/model/genericValue.d.ts +33 -0
- package/lib/view-context/value-api/model/models.d.ts +2 -0
- package/lib/view-context/value-api/model/valueSetDefinitionIdentifier.d.ts +21 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.0.7.tgz +0 -0
- package/src/lib/smart-grid/api/grid-api/README.md +226 -203
- package/smartbit4all-ng-client-3.0.5.tgz +0 -0
|
@@ -2,7 +2,7 @@ import { MatDialog } from '@angular/material/dialog';
|
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { SmartDevToolDescriptor, SmartDevToolService } from '../smart-dev-tool.service';
|
|
5
|
-
import { SmartdialogService } from '
|
|
5
|
+
import { SmartdialogService } from '../../../smart-dialog/projects';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SmartDevToolDialogService extends SmartdialogService {
|
|
8
8
|
service: SmartDevToolService;
|
|
@@ -11,7 +11,7 @@ export declare class GridService {
|
|
|
11
11
|
defaultHeaders: HttpHeaders;
|
|
12
12
|
configuration: Configuration;
|
|
13
13
|
encoder: HttpParameterCodec;
|
|
14
|
-
constructor(httpClient: HttpClient, basePath: string, configuration: Configuration);
|
|
14
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
15
15
|
private addToHttpParams;
|
|
16
16
|
private addToHttpParamsRecursive;
|
|
17
17
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpParameterCodec } from '@angular/common/http';
|
|
2
|
+
import { Param } from './param';
|
|
2
3
|
export interface ConfigurationParameters {
|
|
3
4
|
/**
|
|
4
5
|
* @deprecated Since 5.0. Use credentials instead
|
|
@@ -14,7 +15,18 @@ export interface ConfigurationParameters {
|
|
|
14
15
|
accessToken?: string | (() => string);
|
|
15
16
|
basePath?: string;
|
|
16
17
|
withCredentials?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Takes care of encoding query- and form-parameters.
|
|
20
|
+
*/
|
|
17
21
|
encoder?: HttpParameterCodec;
|
|
22
|
+
/**
|
|
23
|
+
* Override the default method for encoding path parameters in various
|
|
24
|
+
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
25
|
+
* <p>
|
|
26
|
+
* See {@link README.md} for more details
|
|
27
|
+
* </p>
|
|
28
|
+
*/
|
|
29
|
+
encodeParam?: (param: Param) => string;
|
|
18
30
|
/**
|
|
19
31
|
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
20
32
|
* document. They should map to the value used for authentication
|
|
@@ -39,7 +51,18 @@ export declare class Configuration {
|
|
|
39
51
|
accessToken?: string | (() => string);
|
|
40
52
|
basePath?: string;
|
|
41
53
|
withCredentials?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Takes care of encoding query- and form-parameters.
|
|
56
|
+
*/
|
|
42
57
|
encoder?: HttpParameterCodec;
|
|
58
|
+
/**
|
|
59
|
+
* Encoding of various path parameter
|
|
60
|
+
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
61
|
+
* <p>
|
|
62
|
+
* See {@link README.md} for more details
|
|
63
|
+
* </p>
|
|
64
|
+
*/
|
|
65
|
+
encodeParam: (param: Param) => string;
|
|
43
66
|
/**
|
|
44
67
|
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
45
68
|
* document. They should map to the value used for authentication
|
|
@@ -77,4 +100,5 @@ export declare class Configuration {
|
|
|
77
100
|
*/
|
|
78
101
|
isJsonMime(mime: string): boolean;
|
|
79
102
|
lookupCredential(key: string): string | undefined;
|
|
103
|
+
private defaultEncodeParam;
|
|
80
104
|
}
|
|
@@ -23,6 +23,7 @@ export interface GridViewDescriptor {
|
|
|
23
23
|
selectionMode?: GridSelectionMode;
|
|
24
24
|
selectionType?: GridSelectionType;
|
|
25
25
|
preserveSelectionOnPageChange?: boolean;
|
|
26
|
+
showEditColumns?: boolean;
|
|
26
27
|
}
|
|
27
28
|
export declare namespace GridViewDescriptor {
|
|
28
29
|
type KindEnum = 'TABLE' | 'EXPANDABLECARDS1';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standard parameter styles defined by OpenAPI spec
|
|
3
|
+
*/
|
|
4
|
+
export declare type StandardParamStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
|
|
5
|
+
/**
|
|
6
|
+
* The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
|
|
7
|
+
*/
|
|
8
|
+
export declare type ParamStyle = StandardParamStyle | string;
|
|
9
|
+
/**
|
|
10
|
+
* Standard parameter locations defined by OpenAPI spec
|
|
11
|
+
*/
|
|
12
|
+
export declare type ParamLocation = 'query' | 'header' | 'path' | 'cookie';
|
|
13
|
+
/**
|
|
14
|
+
* Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
|
15
|
+
*/
|
|
16
|
+
export declare type StandardDataType = "integer" | "number" | "boolean" | "string" | "object" | "array";
|
|
17
|
+
/**
|
|
18
|
+
* Standard {@link DataType}s plus your own types/classes.
|
|
19
|
+
*/
|
|
20
|
+
export declare type DataType = StandardDataType | string;
|
|
21
|
+
/**
|
|
22
|
+
* Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
|
23
|
+
*/
|
|
24
|
+
export declare type StandardDataFormat = "int32" | "int64" | "float" | "double" | "byte" | "binary" | "date" | "date-time" | "password";
|
|
25
|
+
export declare type DataFormat = StandardDataFormat | string;
|
|
26
|
+
/**
|
|
27
|
+
* The parameter to encode.
|
|
28
|
+
*/
|
|
29
|
+
export interface Param {
|
|
30
|
+
name: string;
|
|
31
|
+
value: unknown;
|
|
32
|
+
in: ParamLocation;
|
|
33
|
+
style: ParamStyle;
|
|
34
|
+
explode: boolean;
|
|
35
|
+
dataType: DataType;
|
|
36
|
+
dataFormat: DataFormat | undefined;
|
|
37
|
+
}
|
|
@@ -12,6 +12,8 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
export declare class SmartGridComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
13
13
|
private service;
|
|
14
14
|
private cfService;
|
|
15
|
+
private readonly defaultPageSize;
|
|
16
|
+
private readonly defaultPageSizeOptions;
|
|
15
17
|
private _destroy$;
|
|
16
18
|
smartGrid?: SmartGrid;
|
|
17
19
|
uuid: string;
|
|
@@ -9,8 +9,6 @@ export declare class SmartGridService extends SmartdialogService {
|
|
|
9
9
|
private api;
|
|
10
10
|
gridModelChanged: Subject<void>;
|
|
11
11
|
gridModel: GridModel;
|
|
12
|
-
pageSize?: number;
|
|
13
|
-
length?: number;
|
|
14
12
|
constructor(api: GridService, dialog: MatDialog, router: Router);
|
|
15
13
|
load(uuid: string, gridIdentifier: string): Promise<void>;
|
|
16
14
|
setPage(uuid: string, gridIdentifier: string, offset: string, limit: string): Promise<void>;
|
|
@@ -21,6 +19,7 @@ export declare class SmartGridService extends SmartdialogService {
|
|
|
21
19
|
update(uuid: string, identifier: string, updateData: GridUpdateData): Promise<void>;
|
|
22
20
|
closeDialog(): Promise<void>;
|
|
23
21
|
handleAfterClosed(): void;
|
|
22
|
+
private updateGrid;
|
|
24
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartGridService, never>;
|
|
25
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<SmartGridService>;
|
|
26
25
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
1
|
+
export * from './smart-view-context.service';
|
|
2
|
+
export * from './smart-view-context.model';
|
|
3
|
+
export * from './smart-view-context.module';
|
|
4
|
+
export * from './smart-view-redirect/smart-view-redirect';
|
|
5
|
+
export * from './api/index';
|
|
6
|
+
export * from './smart-ui-action/ui-action-toolbar.component';
|
|
7
|
+
export * from './smart-ui-action/ui-action.service';
|
|
8
|
+
export * from './smart-ui-action/ui-action.model';
|
|
9
|
+
export * from './smart-ui-action/ui-action.descriptor.service';
|
|
10
|
+
export * from './smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service';
|
|
11
|
+
export * from './smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component';
|
|
12
|
+
export * from './smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service';
|
|
13
|
+
export * from './smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import { SmartdialogService } from '../../../projects';
|
|
4
3
|
import { ViewApiError } from '../api';
|
|
5
4
|
import { SmartViewContextApiError } from '../smart-view-context.model';
|
|
6
5
|
import { SmartViewContextService } from '../smart-view-context.service';
|
|
6
|
+
import { SmartdialogService } from '../../smart-dialog/projects';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class SmartViewContextErrorDialogService extends SmartdialogService {
|
|
9
9
|
private viewContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
1
|
+
import { InjectionToken, Injector, OnDestroy } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { SmartSessionService } from '../session/smart-session.service';
|
|
4
4
|
import { ComponentModel, DataChange, MessageData, MessageResult, UiActionDescriptor, UiActionRequest, ViewConstraint, ViewContextChange, ViewContextData, ViewContextUpdate, ViewData, ViewService } from './api';
|
|
@@ -10,12 +10,14 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
export declare const SmartViewContextErrorDialogButtonLabel = "SmartViewContextErrorDialogButtonLabel";
|
|
11
11
|
export declare const SmartViewContextErrorDialogTitle = "SmartViewContextErrorDialogTitle";
|
|
12
12
|
export declare const SmartViewContextErrorDialogMessage = "SmartViewContextErrorDialogMessage";
|
|
13
|
+
export declare const DIALOG_DISABLE_CLOSE: InjectionToken<boolean>;
|
|
13
14
|
export declare class SmartViewContextService implements OnDestroy {
|
|
14
15
|
private view;
|
|
15
16
|
private session;
|
|
16
17
|
private navigation;
|
|
17
18
|
private dialog;
|
|
18
19
|
private apiQueueService;
|
|
20
|
+
private inject;
|
|
19
21
|
private tabIdName;
|
|
20
22
|
private tabIdhttpHeaderName;
|
|
21
23
|
messageDialogname: string | undefined;
|
|
@@ -39,7 +41,7 @@ export declare class SmartViewContextService implements OnDestroy {
|
|
|
39
41
|
get translateService(): SmartTranslateService | undefined;
|
|
40
42
|
private _translateService?;
|
|
41
43
|
translateServiceChanged: Subject<void>;
|
|
42
|
-
constructor(view: ViewService, session: SmartSessionService, navigation: SmartNavigationService, dialog: SmartdialogService, apiQueueService: ApiQueueService);
|
|
44
|
+
constructor(view: ViewService, session: SmartSessionService, navigation: SmartNavigationService, dialog: SmartdialogService, apiQueueService: ApiQueueService, inject: Injector);
|
|
43
45
|
ngOnDestroy(): void;
|
|
44
46
|
follow(uuid: string, detectChange: SmartSubject<any>): void;
|
|
45
47
|
unfollow(uuid: string): void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* value api
|
|
3
|
+
* value 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 GenericValue {
|
|
13
|
+
/**
|
|
14
|
+
* The uri the value.
|
|
15
|
+
*/
|
|
16
|
+
uri?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The logical code of the value.
|
|
19
|
+
*/
|
|
20
|
+
code?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The value as it is.
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The code of icon that can be associatied with this value. It may be a uri.
|
|
27
|
+
*/
|
|
28
|
+
icon?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Indicates if this value is inactive.
|
|
31
|
+
*/
|
|
32
|
+
inactive?: boolean;
|
|
33
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
export * from './genericValue';
|
|
1
2
|
export * from './value';
|
|
2
3
|
export * from './valueSetData';
|
|
3
4
|
export * from './valueSetDefinition';
|
|
4
5
|
export * from './valueSetDefinitionData';
|
|
6
|
+
export * from './valueSetDefinitionIdentifier';
|
|
5
7
|
export * from './valueSetDefinitionKind';
|
|
6
8
|
export * from './valueSetExpression';
|
|
7
9
|
export * from './valueSetOperand';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* value api
|
|
3
|
+
* value 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 ValueSetDefinitionIdentifier {
|
|
13
|
+
/**
|
|
14
|
+
* The namespace containing an arbitrary number of value sets. If it\'s null, the identifier refers to the global namespace.
|
|
15
|
+
*/
|
|
16
|
+
namespace?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The unique name of the value set within its namespace.
|
|
19
|
+
*/
|
|
20
|
+
qualifiedName: string;
|
|
21
|
+
}
|
package/package.json
CHANGED
|
Binary file
|