@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
|
@@ -1,9 +1,11 @@
|
|
|
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';
|
|
8
10
|
export * from './valueSetOperation';
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc21hcnQtbmctY2xpZW50L3NyYy9saWIvdmlldy1jb250ZXh0L3ZhbHVlLWFwaS9tb2RlbC9tb2RlbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLFNBQVMsQ0FBQztBQUN4QixjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMscUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2dlbmVyaWNWYWx1ZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdmFsdWUnO1xyXG5leHBvcnQgKiBmcm9tICcuL3ZhbHVlU2V0RGF0YSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdmFsdWVTZXREZWZpbml0aW9uJztcclxuZXhwb3J0ICogZnJvbSAnLi92YWx1ZVNldERlZmluaXRpb25EYXRhJztcclxuZXhwb3J0ICogZnJvbSAnLi92YWx1ZVNldERlZmluaXRpb25JZGVudGlmaWVyJztcclxuZXhwb3J0ICogZnJvbSAnLi92YWx1ZVNldERlZmluaXRpb25LaW5kJztcclxuZXhwb3J0ICogZnJvbSAnLi92YWx1ZVNldEV4cHJlc3Npb24nO1xyXG5leHBvcnQgKiBmcm9tICcuL3ZhbHVlU2V0T3BlcmFuZCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdmFsdWVTZXRPcGVyYXRpb24nO1xyXG4iXX0=
|
|
@@ -1,13 +1,2 @@
|
|
|
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
1
|
export {};
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWVTZXREYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc21hcnQtbmctY2xpZW50L3NyYy9saWIvdmlldy1jb250ZXh0L3ZhbHVlLWFwaS9tb2RlbC92YWx1ZVNldERhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxyXG4gKiB2YWx1ZSBhcGlcclxuICogdmFsdWUgYXBpXHJcbiAqXHJcbiAqIFRoZSB2ZXJzaW9uIG9mIHRoZSBPcGVuQVBJIGRvY3VtZW50OiAxLjAuMFxyXG4gKiBDb250YWN0OiBpbmZvQGl0NGFsbC5odVxyXG4gKlxyXG4gKiBOT1RFOiBUaGlzIGNsYXNzIGlzIGF1dG8gZ2VuZXJhdGVkIGJ5IE9wZW5BUEkgR2VuZXJhdG9yIChodHRwczovL29wZW5hcGktZ2VuZXJhdG9yLnRlY2gpLlxyXG4gKiBodHRwczovL29wZW5hcGktZ2VuZXJhdG9yLnRlY2hcclxuICogRG8gbm90IGVkaXQgdGhlIGNsYXNzIG1hbnVhbGx5LlxyXG4gKi9cclxuaW1wb3J0IHsgRmlsdGVyRXhwcmVzc2lvbkJ1aWxkZXJNb2RlbCB9IGZyb20gJy4uLy4uLy4uL3NtYXJ0LWZpbHRlci9wcm9qZWN0cyc7XHJcbmltcG9ydCB7IFByb3BlcnR5RGVmaW5pdGlvbkRhdGEgfSBmcm9tICcuLi8uLi9wcm9wZXJ0eS1kZWZpbml0aW9uLWRhdGEnO1xyXG5cclxuXHJcbi8qKlxyXG4gKiBUaGUgaW5zdGFuY2Ugb2YgdGhlIFZhbHVlU2V0RGVmaW50aW9uIHRoYXQgY29uYXRpbnMgZXZlcnkgaW5mb3JtYXRpb24gaW5saW5lLiBcclxuICovXHJcbmV4cG9ydCBpbnRlcmZhY2UgVmFsdWVTZXREYXRhIHsgXHJcbiAgICBxdWFsaWZpZWROYW1lOiBzdHJpbmc7XHJcbiAgICAvKipcclxuICAgICAqIFRoZSBuYW1lIG9mIHRoZSBrZXkgcHJvcGVydHkgaW4gdGhlIHZhbHVlLiBJdCB3aWxsIGJlIHRoZSB2YWx1ZSB0aGF0IGNvcGllZCBpbnRvIHRoZSByZWZlcmVuY2Ugd2hlbiBhIGdpdmVuIGl0ZW0gaXMgc2VsZWN0ZWQgZnJvbSB0aGUgdmFsdWUgc2V0LiBcclxuICAgICAqL1xyXG4gICAga2V5UHJvcGVydHk/OiBzdHJpbmc7XHJcbiAgICBwcm9wZXJ0aWVzOiBBcnJheTxQcm9wZXJ0eURlZmluaXRpb25EYXRhPjtcclxuICAgIC8qKlxyXG4gICAgICogT3B0aW9uYWwgaWNvbiBjb2RlIGZvciB0aGUgZ2l2ZW4gdmFsdWUgc2V0LlxyXG4gICAgICovXHJcbiAgICBpY29uQ29kZT86IHN0cmluZztcclxuICAgIC8qKlxyXG4gICAgICogSWYgdHJ1ZSB0aGVuIHRoZSB2YWx1ZSBzZXQgaXMgbm90IGRlZmluZWQgYW5kIG5vdCBhY2Nlc3NpYmxlLiBcclxuICAgICAqL1xyXG4gICAgdW5kZWZpbmVkPzogYm9vbGVhbjtcclxuICAgIC8qKlxyXG4gICAgICogSWYgdHJ1ZSB0aGVuIHRoZSB2YWx1ZXMgZG9lc25cXCd0IGNvbnRhaW5zIHRoZSB0aGUgd2hvbGUgdmFsdWVzIHNldCBvciBpdCBtaWd0aCBiZSBlbXB0eSBhbmQgd2UgaGF2ZSB0byBhc2sgZm9yIGZpbHRlcmVkIHNldCBvZiB2YWx1ZXMgdXNpbmcgdGhlIGZpbHRlciBmaWVsZHMgYXZhaWxhYmxlLiBcclxuICAgICAqL1xyXG4gICAgbGF6eT86IGJvb2xlYW47XHJcbiAgICB2YWx1ZXM6IEFycmF5PG9iamVjdD47XHJcbiAgICAvKipcclxuICAgICAqIFRoZSBmaWx0ZXIgZXhwcmVzc2lvbiBtb2RlbCBmb3IgdGhlIHNlYXJjaCBmcm9tIHZhbHVlcy5cclxuICAgICAqL1xyXG4gICAgZmlsdGVyTW9kZWw/OiBGaWx0ZXJFeHByZXNzaW9uQnVpbGRlck1vZGVsO1xyXG59XHJcblxyXG4iXX0=
|
|
@@ -0,0 +1,13 @@
|
|
|
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 {};
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWVTZXREZWZpbml0aW9uSWRlbnRpZmllci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NtYXJ0LW5nLWNsaWVudC9zcmMvbGliL3ZpZXctY29udGV4dC92YWx1ZS1hcGkvbW9kZWwvdmFsdWVTZXREZWZpbml0aW9uSWRlbnRpZmllci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7OztHQVVHIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXHJcbiAqIHZhbHVlIGFwaVxyXG4gKiB2YWx1ZSBhcGlcclxuICpcclxuICogVGhlIHZlcnNpb24gb2YgdGhlIE9wZW5BUEkgZG9jdW1lbnQ6IDEuMC4wXHJcbiAqIENvbnRhY3Q6IGluZm9AaXQ0YWxsLmh1XHJcbiAqXHJcbiAqIE5PVEU6IFRoaXMgY2xhc3MgaXMgYXV0byBnZW5lcmF0ZWQgYnkgT3BlbkFQSSBHZW5lcmF0b3IgKGh0dHBzOi8vb3BlbmFwaS1nZW5lcmF0b3IudGVjaCkuXHJcbiAqIGh0dHBzOi8vb3BlbmFwaS1nZW5lcmF0b3IudGVjaFxyXG4gKiBEbyBub3QgZWRpdCB0aGUgY2xhc3MgbWFudWFsbHkuXHJcbiAqL1xyXG5cclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgVmFsdWVTZXREZWZpbml0aW9uSWRlbnRpZmllciB7IFxyXG4gICAgLyoqXHJcbiAgICAgKiBUaGUgbmFtZXNwYWNlIGNvbnRhaW5pbmcgYW4gYXJiaXRyYXJ5IG51bWJlciBvZiB2YWx1ZSBzZXRzLiBJZiBpdFxcJ3MgbnVsbCwgdGhlIGlkZW50aWZpZXIgcmVmZXJzIHRvIHRoZSBnbG9iYWwgbmFtZXNwYWNlLiBcclxuICAgICAqL1xyXG4gICAgbmFtZXNwYWNlPzogc3RyaW5nO1xyXG4gICAgLyoqXHJcbiAgICAgKiBUaGUgdW5pcXVlIG5hbWUgb2YgdGhlIHZhbHVlIHNldCB3aXRoaW4gaXRzIG5hbWVzcGFjZS4gXHJcbiAgICAgKi9cclxuICAgIHF1YWxpZmllZE5hbWU6IHN0cmluZztcclxufVxyXG5cclxuIl19
|
|
@@ -5825,13 +5825,15 @@ var SmartActionType;
|
|
|
5825
5825
|
const SmartViewContextErrorDialogButtonLabel = 'SmartViewContextErrorDialogButtonLabel';
|
|
5826
5826
|
const SmartViewContextErrorDialogTitle = 'SmartViewContextErrorDialogTitle';
|
|
5827
5827
|
const SmartViewContextErrorDialogMessage = 'SmartViewContextErrorDialogMessage';
|
|
5828
|
+
const DIALOG_DISABLE_CLOSE = new InjectionToken('dialogDisableClose');
|
|
5828
5829
|
class SmartViewContextService {
|
|
5829
|
-
constructor(view, session, navigation, dialog, apiQueueService) {
|
|
5830
|
+
constructor(view, session, navigation, dialog, apiQueueService, inject) {
|
|
5830
5831
|
this.view = view;
|
|
5831
5832
|
this.session = session;
|
|
5832
5833
|
this.navigation = navigation;
|
|
5833
5834
|
this.dialog = dialog;
|
|
5834
5835
|
this.apiQueueService = apiQueueService;
|
|
5836
|
+
this.inject = inject;
|
|
5835
5837
|
this.tabIdName = 'viewContextUuid';
|
|
5836
5838
|
this.tabIdhttpHeaderName = 'viewContextUuid';
|
|
5837
5839
|
this.viewHandlers = new Array();
|
|
@@ -6012,7 +6014,14 @@ class SmartViewContextService {
|
|
|
6012
6014
|
throw new Error(`Component is undefined in SmartViewHandlerModel with name: ${view.viewName}`);
|
|
6013
6015
|
}
|
|
6014
6016
|
let dialogRef = this.dialog.openComponentAsDialog(viewHandler.component, viewHandler.name);
|
|
6015
|
-
|
|
6017
|
+
let dialogDisableClose = true;
|
|
6018
|
+
try {
|
|
6019
|
+
dialogDisableClose = this.inject.get(DIALOG_DISABLE_CLOSE);
|
|
6020
|
+
}
|
|
6021
|
+
catch (_b) {
|
|
6022
|
+
console.error('Error during reading DIALOG_DISABLE_CLOSE');
|
|
6023
|
+
}
|
|
6024
|
+
dialogRef.disableClose = dialogDisableClose;
|
|
6016
6025
|
// if (view.viewName === this.messageDialogname) {
|
|
6017
6026
|
// if (view.message?.options && view.message.options.length) {
|
|
6018
6027
|
// }
|
|
@@ -6357,14 +6366,14 @@ class SmartViewContextService {
|
|
|
6357
6366
|
});
|
|
6358
6367
|
}
|
|
6359
6368
|
}
|
|
6360
|
-
SmartViewContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, deps: [{ token: ViewService }, { token: SmartSessionService }, { token: SmartNavigationService }, { token: SmartdialogService }, { token: ApiQueueService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6369
|
+
SmartViewContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, deps: [{ token: ViewService }, { token: SmartSessionService }, { token: SmartNavigationService }, { token: SmartdialogService }, { token: ApiQueueService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6361
6370
|
SmartViewContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, providedIn: 'root' });
|
|
6362
6371
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, decorators: [{
|
|
6363
6372
|
type: Injectable,
|
|
6364
6373
|
args: [{
|
|
6365
6374
|
providedIn: 'root',
|
|
6366
6375
|
}]
|
|
6367
|
-
}], ctorParameters: function () { return [{ type: ViewService }, { type: SmartSessionService }, { type: SmartNavigationService }, { type: SmartdialogService }, { type: ApiQueueService }]; } });
|
|
6376
|
+
}], ctorParameters: function () { return [{ type: ViewService }, { type: SmartSessionService }, { type: SmartNavigationService }, { type: SmartdialogService }, { type: ApiQueueService }, { type: i0.Injector }]; } });
|
|
6368
6377
|
const IS_ASYNC_PARAM_NAME = 'isAsync';
|
|
6369
6378
|
class ApiQueueService {
|
|
6370
6379
|
constructor() {
|
|
@@ -8025,6 +8034,7 @@ SmartViewContextModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
8025
8034
|
useClass: SmartViewContextInterceptor,
|
|
8026
8035
|
multi: true,
|
|
8027
8036
|
},
|
|
8037
|
+
{ provide: DIALOG_DISABLE_CLOSE, useValue: true },
|
|
8028
8038
|
], imports: [[
|
|
8029
8039
|
CommonModule,
|
|
8030
8040
|
HttpClientModule,
|
|
@@ -8065,6 +8075,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
8065
8075
|
useClass: SmartViewContextInterceptor,
|
|
8066
8076
|
multi: true,
|
|
8067
8077
|
},
|
|
8078
|
+
{ provide: DIALOG_DISABLE_CLOSE, useValue: true },
|
|
8068
8079
|
],
|
|
8069
8080
|
}]
|
|
8070
8081
|
}] });
|
|
@@ -9712,6 +9723,12 @@ class Configuration$1 {
|
|
|
9712
9723
|
this.basePath = configurationParameters.basePath;
|
|
9713
9724
|
this.withCredentials = configurationParameters.withCredentials;
|
|
9714
9725
|
this.encoder = configurationParameters.encoder;
|
|
9726
|
+
if (configurationParameters.encodeParam) {
|
|
9727
|
+
this.encodeParam = configurationParameters.encodeParam;
|
|
9728
|
+
}
|
|
9729
|
+
else {
|
|
9730
|
+
this.encodeParam = param => this.defaultEncodeParam(param);
|
|
9731
|
+
}
|
|
9715
9732
|
if (configurationParameters.credentials) {
|
|
9716
9733
|
this.credentials = configurationParameters.credentials;
|
|
9717
9734
|
}
|
|
@@ -9773,6 +9790,19 @@ class Configuration$1 {
|
|
|
9773
9790
|
? value()
|
|
9774
9791
|
: value;
|
|
9775
9792
|
}
|
|
9793
|
+
defaultEncodeParam(param) {
|
|
9794
|
+
// This implementation exists as fallback for missing configuration
|
|
9795
|
+
// and for backwards compatibility to older typescript-angular generator versions.
|
|
9796
|
+
// It only works for the 'simple' parameter style.
|
|
9797
|
+
// Date-handling only works for the 'date-time' format.
|
|
9798
|
+
// All other styles and Date-formats are probably handled incorrectly.
|
|
9799
|
+
//
|
|
9800
|
+
// But: if that's all you need (i.e.: the most common use-case): no need for customization!
|
|
9801
|
+
const value = param.dataFormat === 'date-time' && param.value instanceof Date
|
|
9802
|
+
? param.value.toISOString()
|
|
9803
|
+
: param.value;
|
|
9804
|
+
return encodeURIComponent(String(value));
|
|
9805
|
+
}
|
|
9776
9806
|
}
|
|
9777
9807
|
|
|
9778
9808
|
/**
|
|
@@ -9796,6 +9826,9 @@ class GridService {
|
|
|
9796
9826
|
this.configuration = configuration;
|
|
9797
9827
|
}
|
|
9798
9828
|
if (typeof this.configuration.basePath !== 'string') {
|
|
9829
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
9830
|
+
basePath = basePath[0];
|
|
9831
|
+
}
|
|
9799
9832
|
if (typeof basePath !== 'string') {
|
|
9800
9833
|
basePath = this.basePath;
|
|
9801
9834
|
}
|
|
@@ -9805,7 +9838,7 @@ class GridService {
|
|
|
9805
9838
|
}
|
|
9806
9839
|
// @ts-ignore
|
|
9807
9840
|
addToHttpParams(httpParams, value, key) {
|
|
9808
|
-
if (typeof value ===
|
|
9841
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
9809
9842
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
9810
9843
|
}
|
|
9811
9844
|
else {
|
|
@@ -9817,27 +9850,27 @@ class GridService {
|
|
|
9817
9850
|
if (value == null) {
|
|
9818
9851
|
return httpParams;
|
|
9819
9852
|
}
|
|
9820
|
-
if (typeof value ===
|
|
9853
|
+
if (typeof value === "object") {
|
|
9821
9854
|
if (Array.isArray(value)) {
|
|
9822
|
-
value.forEach(
|
|
9855
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
9823
9856
|
}
|
|
9824
9857
|
else if (value instanceof Date) {
|
|
9825
9858
|
if (key != null) {
|
|
9826
9859
|
httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
|
|
9827
9860
|
}
|
|
9828
9861
|
else {
|
|
9829
|
-
throw Error(
|
|
9862
|
+
throw Error("key may not be null if value is Date");
|
|
9830
9863
|
}
|
|
9831
9864
|
}
|
|
9832
9865
|
else {
|
|
9833
|
-
Object.keys(value).forEach(
|
|
9866
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
9834
9867
|
}
|
|
9835
9868
|
}
|
|
9836
9869
|
else if (key != null) {
|
|
9837
9870
|
httpParams = httpParams.append(key, value);
|
|
9838
9871
|
}
|
|
9839
9872
|
else {
|
|
9840
|
-
throw Error(
|
|
9873
|
+
throw Error("key may not be null if value is not object or array");
|
|
9841
9874
|
}
|
|
9842
9875
|
return httpParams;
|
|
9843
9876
|
}
|
|
@@ -9855,7 +9888,9 @@ class GridService {
|
|
|
9855
9888
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
9856
9889
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
9857
9890
|
// to determine the Accept header
|
|
9858
|
-
const httpHeaderAccepts = [
|
|
9891
|
+
const httpHeaderAccepts = [
|
|
9892
|
+
'application/json'
|
|
9893
|
+
];
|
|
9859
9894
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
9860
9895
|
}
|
|
9861
9896
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -9877,13 +9912,14 @@ class GridService {
|
|
|
9877
9912
|
responseType_ = 'blob';
|
|
9878
9913
|
}
|
|
9879
9914
|
}
|
|
9880
|
-
|
|
9915
|
+
let localVarPath = `/grid/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "gridId", value: gridId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "rowId", value: rowId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/expand`;
|
|
9916
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
9881
9917
|
context: localVarHttpContext,
|
|
9882
9918
|
responseType: responseType_,
|
|
9883
9919
|
withCredentials: this.configuration.withCredentials,
|
|
9884
9920
|
headers: localVarHeaders,
|
|
9885
9921
|
observe: observe,
|
|
9886
|
-
reportProgress: reportProgress
|
|
9922
|
+
reportProgress: reportProgress
|
|
9887
9923
|
});
|
|
9888
9924
|
}
|
|
9889
9925
|
load(uuid, gridIdentifier, observe = 'body', reportProgress = false, options) {
|
|
@@ -9897,7 +9933,9 @@ class GridService {
|
|
|
9897
9933
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
9898
9934
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
9899
9935
|
// to determine the Accept header
|
|
9900
|
-
const httpHeaderAccepts = [
|
|
9936
|
+
const httpHeaderAccepts = [
|
|
9937
|
+
'application/json'
|
|
9938
|
+
];
|
|
9901
9939
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
9902
9940
|
}
|
|
9903
9941
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -9919,13 +9957,14 @@ class GridService {
|
|
|
9919
9957
|
responseType_ = 'blob';
|
|
9920
9958
|
}
|
|
9921
9959
|
}
|
|
9922
|
-
|
|
9960
|
+
let localVarPath = `/grid/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "gridIdentifier", value: gridIdentifier, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/load`;
|
|
9961
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
9923
9962
|
context: localVarHttpContext,
|
|
9924
9963
|
responseType: responseType_,
|
|
9925
9964
|
withCredentials: this.configuration.withCredentials,
|
|
9926
9965
|
headers: localVarHeaders,
|
|
9927
9966
|
observe: observe,
|
|
9928
|
-
reportProgress: reportProgress
|
|
9967
|
+
reportProgress: reportProgress
|
|
9929
9968
|
});
|
|
9930
9969
|
}
|
|
9931
9970
|
select(uuid, gridId, rowId, selected, observe = 'body', reportProgress = false, options) {
|
|
@@ -9945,7 +9984,9 @@ class GridService {
|
|
|
9945
9984
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
9946
9985
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
9947
9986
|
// to determine the Accept header
|
|
9948
|
-
const httpHeaderAccepts = [
|
|
9987
|
+
const httpHeaderAccepts = [
|
|
9988
|
+
'application/json'
|
|
9989
|
+
];
|
|
9949
9990
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
9950
9991
|
}
|
|
9951
9992
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -9967,13 +10008,14 @@ class GridService {
|
|
|
9967
10008
|
responseType_ = 'blob';
|
|
9968
10009
|
}
|
|
9969
10010
|
}
|
|
9970
|
-
|
|
10011
|
+
let localVarPath = `/grid/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "gridId", value: gridId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "rowId", value: rowId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/select`;
|
|
10012
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
9971
10013
|
context: localVarHttpContext,
|
|
9972
10014
|
responseType: responseType_,
|
|
9973
10015
|
withCredentials: this.configuration.withCredentials,
|
|
9974
10016
|
headers: localVarHeaders,
|
|
9975
10017
|
observe: observe,
|
|
9976
|
-
reportProgress: reportProgress
|
|
10018
|
+
reportProgress: reportProgress
|
|
9977
10019
|
});
|
|
9978
10020
|
}
|
|
9979
10021
|
selectAll(uuid, gridId, selected, observe = 'body', reportProgress = false, options) {
|
|
@@ -9990,7 +10032,9 @@ class GridService {
|
|
|
9990
10032
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
9991
10033
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
9992
10034
|
// to determine the Accept header
|
|
9993
|
-
const httpHeaderAccepts = [
|
|
10035
|
+
const httpHeaderAccepts = [
|
|
10036
|
+
'application/json'
|
|
10037
|
+
];
|
|
9994
10038
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
9995
10039
|
}
|
|
9996
10040
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -10012,13 +10056,14 @@ class GridService {
|
|
|
10012
10056
|
responseType_ = 'blob';
|
|
10013
10057
|
}
|
|
10014
10058
|
}
|
|
10015
|
-
|
|
10059
|
+
let localVarPath = `/grid/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "gridId", value: gridId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/select`;
|
|
10060
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
10016
10061
|
context: localVarHttpContext,
|
|
10017
10062
|
responseType: responseType_,
|
|
10018
10063
|
withCredentials: this.configuration.withCredentials,
|
|
10019
10064
|
headers: localVarHeaders,
|
|
10020
10065
|
observe: observe,
|
|
10021
|
-
reportProgress: reportProgress
|
|
10066
|
+
reportProgress: reportProgress
|
|
10022
10067
|
});
|
|
10023
10068
|
}
|
|
10024
10069
|
setPage(uuid, gridIdentifier, offset, limit, observe = 'body', reportProgress = false, options) {
|
|
@@ -10060,13 +10105,14 @@ class GridService {
|
|
|
10060
10105
|
responseType_ = 'blob';
|
|
10061
10106
|
}
|
|
10062
10107
|
}
|
|
10063
|
-
|
|
10108
|
+
let localVarPath = `/grid/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "gridIdentifier", value: gridIdentifier, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/page/${this.configuration.encodeParam({ name: "offset", value: offset, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "limit", value: limit, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
10109
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
10064
10110
|
context: localVarHttpContext,
|
|
10065
10111
|
responseType: responseType_,
|
|
10066
10112
|
withCredentials: this.configuration.withCredentials,
|
|
10067
10113
|
headers: localVarHeaders,
|
|
10068
10114
|
observe: observe,
|
|
10069
|
-
reportProgress: reportProgress
|
|
10115
|
+
reportProgress: reportProgress
|
|
10070
10116
|
});
|
|
10071
10117
|
}
|
|
10072
10118
|
update(uuid, gridIdentifier, gridUpdateData, observe = 'body', reportProgress = false, options) {
|
|
@@ -10083,7 +10129,9 @@ class GridService {
|
|
|
10083
10129
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
10084
10130
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
10085
10131
|
// to determine the Accept header
|
|
10086
|
-
const httpHeaderAccepts = [
|
|
10132
|
+
const httpHeaderAccepts = [
|
|
10133
|
+
'application/json'
|
|
10134
|
+
];
|
|
10087
10135
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
10088
10136
|
}
|
|
10089
10137
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -10094,7 +10142,9 @@ class GridService {
|
|
|
10094
10142
|
localVarHttpContext = new HttpContext();
|
|
10095
10143
|
}
|
|
10096
10144
|
// to determine the Content-Type header
|
|
10097
|
-
const consumes = [
|
|
10145
|
+
const consumes = [
|
|
10146
|
+
'application/json'
|
|
10147
|
+
];
|
|
10098
10148
|
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
10099
10149
|
if (httpContentTypeSelected !== undefined) {
|
|
10100
10150
|
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
@@ -10111,13 +10161,15 @@ class GridService {
|
|
|
10111
10161
|
responseType_ = 'blob';
|
|
10112
10162
|
}
|
|
10113
10163
|
}
|
|
10114
|
-
|
|
10164
|
+
let localVarPath = `/grid/${this.configuration.encodeParam({ name: "uuid", value: uuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "gridIdentifier", value: gridIdentifier, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/update`;
|
|
10165
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
10115
10166
|
context: localVarHttpContext,
|
|
10167
|
+
body: gridUpdateData,
|
|
10116
10168
|
responseType: responseType_,
|
|
10117
10169
|
withCredentials: this.configuration.withCredentials,
|
|
10118
10170
|
headers: localVarHeaders,
|
|
10119
10171
|
observe: observe,
|
|
10120
|
-
reportProgress: reportProgress
|
|
10172
|
+
reportProgress: reportProgress
|
|
10121
10173
|
});
|
|
10122
10174
|
}
|
|
10123
10175
|
}
|
|
@@ -10126,7 +10178,7 @@ GridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version:
|
|
|
10126
10178
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: GridService, decorators: [{
|
|
10127
10179
|
type: Injectable,
|
|
10128
10180
|
args: [{
|
|
10129
|
-
providedIn: 'root'
|
|
10181
|
+
providedIn: 'root'
|
|
10130
10182
|
}]
|
|
10131
10183
|
}], ctorParameters: function () {
|
|
10132
10184
|
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
@@ -10249,10 +10301,8 @@ class SmartGridService extends SmartdialogService {
|
|
|
10249
10301
|
}
|
|
10250
10302
|
load(uuid, gridIdentifier) {
|
|
10251
10303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10252
|
-
|
|
10253
|
-
this.
|
|
10254
|
-
this.pageSize = this.gridModel.pageSize;
|
|
10255
|
-
this.gridModelChanged.next();
|
|
10304
|
+
let gridModelResult = yield lastValueFrom(this.api.load(uuid, gridIdentifier));
|
|
10305
|
+
this.updateGrid(gridModelResult, 'load');
|
|
10256
10306
|
});
|
|
10257
10307
|
}
|
|
10258
10308
|
setPage(uuid, gridIdentifier, offset, limit) {
|
|
@@ -10263,13 +10313,10 @@ class SmartGridService extends SmartdialogService {
|
|
|
10263
10313
|
}
|
|
10264
10314
|
sort(smartGrid, gridUpdateData) {
|
|
10265
10315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10266
|
-
let
|
|
10316
|
+
let gridModelResult = yield this.api
|
|
10267
10317
|
.update(smartGrid.gridModel.viewUuid, smartGrid.gridIdentifier, gridUpdateData)
|
|
10268
10318
|
.toPromise();
|
|
10269
|
-
|
|
10270
|
-
this.gridModel = gridModel;
|
|
10271
|
-
this.gridModelChanged.next();
|
|
10272
|
-
}
|
|
10319
|
+
this.updateGrid(gridModelResult, 'sort');
|
|
10273
10320
|
});
|
|
10274
10321
|
}
|
|
10275
10322
|
expand(smartGrid, rowId) {
|
|
@@ -10296,11 +10343,8 @@ class SmartGridService extends SmartdialogService {
|
|
|
10296
10343
|
}
|
|
10297
10344
|
update(uuid, identifier, updateData) {
|
|
10298
10345
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10299
|
-
let
|
|
10300
|
-
|
|
10301
|
-
this.gridModel = res;
|
|
10302
|
-
this.gridModelChanged.next();
|
|
10303
|
-
}
|
|
10346
|
+
let gridModelResult = yield this.api.update(uuid, identifier, updateData).toPromise();
|
|
10347
|
+
this.updateGrid(gridModelResult, 'update');
|
|
10304
10348
|
});
|
|
10305
10349
|
}
|
|
10306
10350
|
closeDialog() {
|
|
@@ -10311,6 +10355,15 @@ class SmartGridService extends SmartdialogService {
|
|
|
10311
10355
|
handleAfterClosed() {
|
|
10312
10356
|
this.gridModelChanged.next();
|
|
10313
10357
|
}
|
|
10358
|
+
updateGrid(gridModel, method) {
|
|
10359
|
+
if (gridModel) {
|
|
10360
|
+
this.gridModel = gridModel;
|
|
10361
|
+
this.gridModelChanged.next();
|
|
10362
|
+
}
|
|
10363
|
+
else {
|
|
10364
|
+
console.error(`GridModel is undefined in service after ${method}!`);
|
|
10365
|
+
}
|
|
10366
|
+
}
|
|
10314
10367
|
}
|
|
10315
10368
|
SmartGridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService, deps: [{ token: GridService }, { token: i1$2.MatDialog }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10316
10369
|
SmartGridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService, providedIn: 'root' });
|
|
@@ -10912,18 +10965,18 @@ class SmartGridComponent {
|
|
|
10912
10965
|
constructor(service, cfService) {
|
|
10913
10966
|
this.service = service;
|
|
10914
10967
|
this.cfService = cfService;
|
|
10968
|
+
this.defaultPageSize = 10;
|
|
10969
|
+
this.defaultPageSizeOptions = [5, 10, 25, 50];
|
|
10915
10970
|
this._destroy$ = new Subject();
|
|
10916
10971
|
this.dev = false;
|
|
10917
|
-
this.pageSizeOptions =
|
|
10972
|
+
this.pageSizeOptions = this.defaultPageSizeOptions;
|
|
10918
10973
|
this.selectionChanges = new Subject();
|
|
10919
10974
|
this.uiActionDescriptors = new Map();
|
|
10920
10975
|
this.afterViewInitExecuted = false;
|
|
10921
10976
|
this.isBlocked = true;
|
|
10922
10977
|
this.service.gridModelChanged.subscribe(() => {
|
|
10978
|
+
// called after every service call (load, save, refresh, etc.)
|
|
10923
10979
|
this.smartGrid.gridModel = this.service.gridModel;
|
|
10924
|
-
if (this.service.gridModel.pageSizeOptions) {
|
|
10925
|
-
this.pageSizeOptions = this.service.gridModel.pageSizeOptions;
|
|
10926
|
-
}
|
|
10927
10980
|
this.render();
|
|
10928
10981
|
});
|
|
10929
10982
|
}
|
|
@@ -10944,6 +10997,8 @@ class SmartGridComponent {
|
|
|
10944
10997
|
}
|
|
10945
10998
|
ngAfterViewInit() {
|
|
10946
10999
|
if (this.dev) {
|
|
11000
|
+
// for dev purposes
|
|
11001
|
+
this.service.gridModel = this.smartGrid.gridModel;
|
|
10947
11002
|
this.render();
|
|
10948
11003
|
}
|
|
10949
11004
|
if (this.uuid && this.smartGrid && !this.dev) {
|
|
@@ -10965,19 +11020,31 @@ class SmartGridComponent {
|
|
|
10965
11020
|
* grid with the newest one.
|
|
10966
11021
|
*/
|
|
10967
11022
|
refresh() {
|
|
10968
|
-
var _a;
|
|
10969
11023
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11024
|
+
// will cause this.service.gridModelChanged to fire
|
|
10970
11025
|
yield this.service.load(this.uuid, this.smartGrid.gridIdentifier);
|
|
10971
|
-
this.length = this.service.gridModel.totalRowCount;
|
|
10972
|
-
this.pageSize = (_a = this.service.gridModel.pageSize) !== null && _a !== void 0 ? _a : 5;
|
|
10973
11026
|
});
|
|
10974
11027
|
}
|
|
10975
11028
|
render() {
|
|
11029
|
+
var _a, _b, _c, _d, _e, _f;
|
|
10976
11030
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10977
|
-
|
|
10978
|
-
|
|
10979
|
-
|
|
10980
|
-
|
|
11031
|
+
const gridModel = (_a = this.smartGrid) === null || _a === void 0 ? void 0 : _a.gridModel;
|
|
11032
|
+
if (gridModel) {
|
|
11033
|
+
this.length = gridModel.totalRowCount;
|
|
11034
|
+
this.pageSize = (_b = gridModel.pageSize) !== null && _b !== void 0 ? _b : this.defaultPageSize;
|
|
11035
|
+
if (gridModel.pageSizeOptions && gridModel.pageSizeOptions.length > 0) {
|
|
11036
|
+
this.pageSizeOptions = gridModel.pageSizeOptions;
|
|
11037
|
+
}
|
|
11038
|
+
else {
|
|
11039
|
+
this.pageSizeOptions = this.defaultPageSizeOptions;
|
|
11040
|
+
}
|
|
11041
|
+
if ((_d = (_c = gridModel === null || gridModel === void 0 ? void 0 : gridModel.view) === null || _c === void 0 ? void 0 : _c.descriptor) === null || _d === void 0 ? void 0 : _d.showEditColumns) {
|
|
11042
|
+
this.smartGrid.showEditColumns = (_f = (_e = gridModel === null || gridModel === void 0 ? void 0 : gridModel.view) === null || _e === void 0 ? void 0 : _e.descriptor) === null || _f === void 0 ? void 0 : _f.showEditColumns;
|
|
11043
|
+
}
|
|
11044
|
+
}
|
|
11045
|
+
else {
|
|
11046
|
+
console.error('GridModel is undefined in component!');
|
|
11047
|
+
}
|
|
10981
11048
|
if (this.smartGrid.layoutDef === SmartLayoutDef.TABLE) {
|
|
10982
11049
|
this.renderTable();
|
|
10983
11050
|
}
|
|
@@ -12794,5 +12861,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
12794
12861
|
* Generated bundle index. Do not edit.
|
|
12795
12862
|
*/
|
|
12796
12863
|
|
|
12797
|
-
export { APIS$3 as APIS, ApiModule$3 as ApiModule, ApiQueueService, BASE_PATH$4 as BASE_PATH, COLLECTION_FORMATS$4 as COLLECTION_FORMATS, CloseResult, ComponentFactoryService, ComponentFactoryServiceModule, ComponentType, ComponentWidgetType, Configuration$4 as Configuration, DataChangeKind, ExpandableSectionButtonIconPosition, ExpandableSectionButtonType, ExpandableSectionComponent, FilterExpressionBoolOperator, FilterExpressionBuilderGroup, FilterExpressionDataType, FilterExpressionFieldWidgetType, FilterExpressionOperation, FilterExpressionOrderBy, GridDataAccessConfig, GridSelectionMode, GridSelectionType, GridUiActionType, GridViewDescriptor, IS_ASYNC_PARAM_NAME, LayoutDirection, MessageOptionType, MessageType, SelectionDefinition, SessionAPIS, SessionErrorBehaviour, SessionService, SimplifiedTabGroupComponent, SmartActionType, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartComponentLayoutComponent, SmartComponentLayoutModule, SmartComponentLayoutUtility, SmartDatePipe, SmartDateTimePipe, SmartDevToolDatePipe, SmartDevToolFloatingButtonComponent, SmartDevToolService, SmartDialog, SmartExpandableSectionModule, SmartExpandableSectionService, SmartFileUploaderComponent, SmartFilterComponent, SmartFilterModule, SmartFilterPosition, SmartFilterType, SmartFormTextFieldButtonIconPosition, SmartFormWidgetDirection, SmartFormWidgetType, SmartFormWidgetWidth, SmartGridButtonType, SmartGridComponent, SmartGridDataLayout, SmartGridModule, SmartGridService, SmartGridType, SmartIconComponent, SmartIconModule, SmartIconService, SmartLayoutDef, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNavbarComponent, SmartNavbarModule, SmartNavbarService, SmartNavigationModule, SmartNavigationService, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartSubject, SmartTabGroupModule, SmartTabGroupService, SmartTable, SmartTableButtonType, SmartTableHeaderPropertyType, SmartTableInterfaceTypeEnum, SmartTableOptionButtonDirection, SmartTableOrder, SmartTableType, SmartTimePipe, SmartTreeComponent, SmartTreeNodeButtonType, SmartUserSettinsIconPosition, SmartValidatorName, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, SmartWidgetHintPosition, SmartWidgetSettings, SmartdialogModule, SmartdialogService, SmartfileuploaderComponent, SmartformComponent, SmartformLayoutDefinitionService, SmartformModule, SmartformwidgetComponent, SmarttableComponent, SmarttableModule, SmarttableService, SmarttreeGenericService, SmarttreeModule, SmarttreeService, TabGroupComponent, ToggleLabelPosition, UiActionButtonIconPos, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, ViewEventHandler, ViewService, ViewState, ViewType, WidgetMap };
|
|
12864
|
+
export { APIS$3 as APIS, ApiModule$3 as ApiModule, ApiQueueService, BASE_PATH$4 as BASE_PATH, COLLECTION_FORMATS$4 as COLLECTION_FORMATS, CloseResult, ComponentFactoryService, ComponentFactoryServiceModule, ComponentType, ComponentWidgetType, Configuration$4 as Configuration, DIALOG_DISABLE_CLOSE, DataChangeKind, ExpandableSectionButtonIconPosition, ExpandableSectionButtonType, ExpandableSectionComponent, FilterExpressionBoolOperator, FilterExpressionBuilderGroup, FilterExpressionDataType, FilterExpressionFieldWidgetType, FilterExpressionOperation, FilterExpressionOrderBy, GridDataAccessConfig, GridSelectionMode, GridSelectionType, GridUiActionType, GridViewDescriptor, IS_ASYNC_PARAM_NAME, LayoutDirection, MessageOptionType, MessageType, SelectionDefinition, SessionAPIS, SessionErrorBehaviour, SessionService, SimplifiedTabGroupComponent, SmartActionType, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartComponentLayoutComponent, SmartComponentLayoutModule, SmartComponentLayoutUtility, SmartDatePipe, SmartDateTimePipe, SmartDevToolDatePipe, SmartDevToolFloatingButtonComponent, SmartDevToolService, SmartDialog, SmartExpandableSectionModule, SmartExpandableSectionService, SmartFileUploaderComponent, SmartFilterComponent, SmartFilterModule, SmartFilterPosition, SmartFilterType, SmartFormTextFieldButtonIconPosition, SmartFormWidgetDirection, SmartFormWidgetType, SmartFormWidgetWidth, SmartGridButtonType, SmartGridComponent, SmartGridDataLayout, SmartGridModule, SmartGridService, SmartGridType, SmartIconComponent, SmartIconModule, SmartIconService, SmartLayoutDef, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNavbarComponent, SmartNavbarModule, SmartNavbarService, SmartNavigationModule, SmartNavigationService, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartSubject, SmartTabGroupModule, SmartTabGroupService, SmartTable, SmartTableButtonType, SmartTableHeaderPropertyType, SmartTableInterfaceTypeEnum, SmartTableOptionButtonDirection, SmartTableOrder, SmartTableType, SmartTimePipe, SmartTreeComponent, SmartTreeNodeButtonType, SmartUserSettinsIconPosition, SmartValidatorName, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, SmartWidgetHintPosition, SmartWidgetSettings, SmartdialogModule, SmartdialogService, SmartfileuploaderComponent, SmartformComponent, SmartformLayoutDefinitionService, SmartformModule, SmartformwidgetComponent, SmarttableComponent, SmarttableModule, SmarttableService, SmarttreeGenericService, SmarttreeModule, SmarttreeService, TabGroupComponent, ToggleLabelPosition, UiActionButtonIconPos, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, ViewEventHandler, ViewService, ViewState, ViewType, WidgetMap };
|
|
12798
12865
|
//# sourceMappingURL=smartbit4all-ng-client.mjs.map
|