@smartbit4all/ng-client 3.3.159 → 3.3.160
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/api/api/session.service.mjs +1 -1
- package/esm2020/lib/session/api/encoder.mjs +1 -1
- package/esm2020/lib/session/api/model/accountInfo.mjs +1 -1
- package/esm2020/lib/session/api/model/apiError.mjs +1 -1
- package/esm2020/lib/session/api/model/authenticationProviderData.mjs +1 -1
- package/esm2020/lib/session/api/model/getAuthenticationProvidersResponse.mjs +1 -1
- package/esm2020/lib/session/api/model/models.mjs +1 -1
- package/esm2020/lib/session/api/model/refreshSessionRequest.mjs +1 -1
- package/esm2020/lib/session/api/model/session.mjs +1 -1
- package/esm2020/lib/session/api/model/sessionInfoData.mjs +1 -1
- package/esm2020/lib/session/api/model/userActivityLog.mjs +1 -1
- package/esm2020/lib/session/api/param.mjs +1 -1
- package/esm2020/lib/session/api/variables.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/api/api.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/api/default.service.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/api.module.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/configuration.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/encoder.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/index.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/model/componentType.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/model/componentWidgetType.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/model/layoutDirection.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/model/models.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/param.mjs +1 -1
- package/esm2020/lib/smart-component-layout/api/variables.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBoolOperator.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderField.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderGroup.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderModel.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionData.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionDataType.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionField.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionFieldList.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionFieldWidgetType.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionList.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOperandData.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOperation.mjs +1 -1
- package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOrderBy.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/api/filter.service.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/configuration.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/encoder.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBoolOperator.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderApiConfig.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderField.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderGroup.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderModel.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderUiModel.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionData.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionDataType.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionField.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldEditor.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldList.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionList.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperandData.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperation.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/model/smartFilterType.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/param.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/api/variables.mjs +1 -1
- package/esm2020/lib/smart-form/api/api/api.mjs +1 -1
- package/esm2020/lib/smart-form/api/api/default.service.mjs +1 -1
- package/esm2020/lib/smart-form/api/api.module.mjs +1 -1
- package/esm2020/lib/smart-form/api/configuration.mjs +1 -1
- package/esm2020/lib/smart-form/api/encoder.mjs +1 -1
- package/esm2020/lib/smart-form/api/index.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/models.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/propertyMapping.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartFormWidgetDirection.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartFormWidgetType.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartLayoutDefinition.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/smartWidgetHint.mjs +1 -1
- package/esm2020/lib/smart-form/api/model/valueChangeMode.mjs +1 -1
- package/esm2020/lib/smart-form/api/param.mjs +1 -1
- package/esm2020/lib/smart-form/api/variables.mjs +1 -1
- package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +1 -1
- package/esm2020/lib/smart-grid/smart-grid.component.mjs +63 -63
- package/esm2020/lib/smart-tree/tree-api/api/tree.service.mjs +1 -1
- package/esm2020/lib/smart-tree/tree-api/configuration.mjs +1 -1
- package/esm2020/lib/smart-tree/tree-api/encoder.mjs +1 -1
- package/esm2020/lib/smart-tree/tree-api/param.mjs +1 -1
- package/esm2020/lib/smart-tree/tree-api/variables.mjs +1 -1
- package/esm2020/lib/view-context/api/api/api.mjs +1 -1
- package/esm2020/lib/view-context/api/api/view.service.mjs +1 -1
- package/esm2020/lib/view-context/api/api.module.mjs +1 -1
- package/esm2020/lib/view-context/api/configuration.mjs +1 -1
- package/esm2020/lib/view-context/api/encoder.mjs +1 -1
- package/esm2020/lib/view-context/api/index.mjs +1 -1
- package/esm2020/lib/view-context/api/model/closeResult.mjs +1 -1
- package/esm2020/lib/view-context/api/model/componentConstraint.mjs +1 -1
- package/esm2020/lib/view-context/api/model/componentModel.mjs +1 -1
- package/esm2020/lib/view-context/api/model/componentModelChange.mjs +1 -1
- package/esm2020/lib/view-context/api/model/dataChange.mjs +1 -1
- package/esm2020/lib/view-context/api/model/dataChangeEvent.mjs +1 -1
- package/esm2020/lib/view-context/api/model/dataChangeKind.mjs +1 -1
- package/esm2020/lib/view-context/api/model/downloadedFile.mjs +1 -1
- package/esm2020/lib/view-context/api/model/iconPosition.mjs +1 -1
- package/esm2020/lib/view-context/api/model/imageResource.mjs +1 -1
- package/esm2020/lib/view-context/api/model/link.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageOption.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageOptionType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageResult.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageTextType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/messageType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/models.mjs +1 -1
- package/esm2020/lib/view-context/api/model/openPendingData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/serverRequestExecutionStat.mjs +1 -1
- package/esm2020/lib/view-context/api/model/serverRequestTrack.mjs +1 -1
- package/esm2020/lib/view-context/api/model/serverRequestType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/smartLinkData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/statisticRecord.mjs +1 -1
- package/esm2020/lib/view-context/api/model/style.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiAction.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionButtonDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionButtonType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionConstraint.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionDialogDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionFeedbackType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionInputType.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionRequest.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionTooltip.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/api/model/valueSet.mjs +1 -1
- package/esm2020/lib/view-context/api/model/view.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewApiError.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewConstraint.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContext.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextChange.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewContextUpdate.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewState.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewStateUpdate.mjs +1 -1
- package/esm2020/lib/view-context/api/model/viewType.mjs +1 -1
- package/esm2020/lib/view-context/api/param.mjs +1 -1
- package/esm2020/lib/view-context/api/variables.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/genericValue.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/models.mjs +1 -1
- package/esm2020/lib/view-context/value-api/model/valueSetDefinitionIdentifier.mjs +1 -1
- package/fesm2015/smartbit4all-ng-client.mjs +162 -162
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +150 -150
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-grid/api/grid-api/model/gridColumnMeta.d.ts +4 -0
- package/lib/smart-grid/smart-grid.component.d.ts +8 -8
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.160.tgz +0 -0
- package/src/lib/session/api/README.md +226 -226
- package/src/lib/smart-component-layout/api/README.md +226 -226
- package/src/lib/smart-filter-editor/api/README.md +226 -226
- package/src/lib/smart-form/api/README.md +226 -226
- package/src/lib/smart-tree/tree-api/README.md +226 -226
- package/src/lib/view-context/api/README.md +226 -226
- package/smartbit4all-ng-client-3.3.159.tgz +0 -0
|
@@ -9046,6 +9046,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
9046
9046
|
args: ['customCardComponent', { read: ViewContainerRef }]
|
|
9047
9047
|
}] } });
|
|
9048
9048
|
|
|
9049
|
+
/**
|
|
9050
|
+
* Filter API 2
|
|
9051
|
+
* Filter API 2
|
|
9052
|
+
*
|
|
9053
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9054
|
+
* Contact: info@it4all.hu
|
|
9055
|
+
*
|
|
9056
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9057
|
+
* https://openapi-generator.tech
|
|
9058
|
+
* Do not edit the class manually.
|
|
9059
|
+
*/
|
|
9060
|
+
var FilterExpressionOrderBy;
|
|
9061
|
+
(function (FilterExpressionOrderBy) {
|
|
9062
|
+
FilterExpressionOrderBy.OrderEnum = {
|
|
9063
|
+
Asc: 'ASC',
|
|
9064
|
+
Desc: 'DESC',
|
|
9065
|
+
};
|
|
9066
|
+
})(FilterExpressionOrderBy || (FilterExpressionOrderBy = {}));
|
|
9067
|
+
|
|
9049
9068
|
/**
|
|
9050
9069
|
* Custom HttpParameterCodec
|
|
9051
9070
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
@@ -9735,82 +9754,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
9735
9754
|
type: Optional
|
|
9736
9755
|
}] }]; } });
|
|
9737
9756
|
|
|
9738
|
-
class SmartGridService {
|
|
9739
|
-
constructor(api) {
|
|
9740
|
-
this.api = api;
|
|
9741
|
-
this.gridModelChanged = new Subject();
|
|
9742
|
-
}
|
|
9743
|
-
async load(uuid, gridIdentifier) {
|
|
9744
|
-
let gridModelResult = await lastValueFrom(this.api.load(uuid, gridIdentifier));
|
|
9745
|
-
this.updateGrid(gridModelResult, 'load');
|
|
9746
|
-
}
|
|
9747
|
-
async setPage(uuid, gridIdentifier, offset, limit) {
|
|
9748
|
-
await lastValueFrom(this.api.setPage(uuid, gridIdentifier, offset, limit));
|
|
9749
|
-
await this.update(uuid, gridIdentifier, {
|
|
9750
|
-
orderByList: this.gridModel.view?.orderByList,
|
|
9751
|
-
orderedColumnNames: this.gridModel.view?.orderedColumnNames,
|
|
9752
|
-
pageSize: +limit,
|
|
9753
|
-
});
|
|
9754
|
-
}
|
|
9755
|
-
async sort(smartGrid, gridUpdateData) {
|
|
9756
|
-
if (!gridUpdateData.pageSize) {
|
|
9757
|
-
gridUpdateData.pageSize = this.getCurrentPageSize();
|
|
9758
|
-
}
|
|
9759
|
-
let gridModelResult = await this.api
|
|
9760
|
-
.update(smartGrid.gridModel.viewUuid, smartGrid.gridIdentifier, gridUpdateData)
|
|
9761
|
-
.toPromise();
|
|
9762
|
-
this.updateGrid(gridModelResult, 'sort');
|
|
9763
|
-
}
|
|
9764
|
-
async expand(smartGrid, rowId) {
|
|
9765
|
-
return await this.api
|
|
9766
|
-
.expand(smartGrid.gridModel.viewUuid, smartGrid.gridIdentifier, rowId)
|
|
9767
|
-
.toPromise();
|
|
9768
|
-
}
|
|
9769
|
-
async select(smartGrid, gridRow) {
|
|
9770
|
-
gridRow.selected = !gridRow.selected;
|
|
9771
|
-
return await this.api
|
|
9772
|
-
.select(smartGrid.gridModel.viewUuid, smartGrid.gridIdentifier, gridRow.id, gridRow.selected)
|
|
9773
|
-
.toPromise();
|
|
9774
|
-
}
|
|
9775
|
-
async selectRows(smartGrid, selected, unselected) {
|
|
9776
|
-
return await this.api
|
|
9777
|
-
.selectRows(smartGrid.gridModel.viewUuid, smartGrid.gridIdentifier, { selected, unselected })
|
|
9778
|
-
.toPromise();
|
|
9779
|
-
}
|
|
9780
|
-
async selectAll(smartGrid, selected) {
|
|
9781
|
-
return await this.api
|
|
9782
|
-
.selectAll(smartGrid.gridModel.viewUuid, smartGrid.gridIdentifier, selected)
|
|
9783
|
-
.toPromise();
|
|
9784
|
-
}
|
|
9785
|
-
async update(uuid, identifier, updateData) {
|
|
9786
|
-
if (!updateData.pageSize) {
|
|
9787
|
-
updateData.pageSize = this.getCurrentPageSize();
|
|
9788
|
-
}
|
|
9789
|
-
let gridModelResult = await this.api.update(uuid, identifier, updateData).toPromise();
|
|
9790
|
-
this.updateGrid(gridModelResult, 'update');
|
|
9791
|
-
}
|
|
9792
|
-
updateGrid(gridModel, method) {
|
|
9793
|
-
if (gridModel) {
|
|
9794
|
-
this.gridModel = gridModel;
|
|
9795
|
-
this.gridModelChanged.next();
|
|
9796
|
-
}
|
|
9797
|
-
else {
|
|
9798
|
-
console.error(`GridModel is undefined in service after ${method}!`);
|
|
9799
|
-
}
|
|
9800
|
-
}
|
|
9801
|
-
getCurrentPageSize() {
|
|
9802
|
-
if (this.paginator) {
|
|
9803
|
-
return this.gridModel.pageSize;
|
|
9804
|
-
}
|
|
9805
|
-
return undefined;
|
|
9806
|
-
}
|
|
9807
|
-
}
|
|
9808
|
-
SmartGridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService, deps: [{ token: GridService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9809
|
-
SmartGridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService });
|
|
9810
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService, decorators: [{
|
|
9811
|
-
type: Injectable
|
|
9812
|
-
}], ctorParameters: function () { return [{ type: GridService }]; } });
|
|
9813
|
-
|
|
9814
9757
|
class TableLayoutDefinerComponent {
|
|
9815
9758
|
constructor(data, dialogRef) {
|
|
9816
9759
|
this.data = data;
|
|
@@ -9979,24 +9922,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
9979
9922
|
args: ['forms']
|
|
9980
9923
|
}] } });
|
|
9981
9924
|
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
}
|
|
9999
|
-
|
|
9925
|
+
class SmartGridService {
|
|
9926
|
+
constructor(api) {
|
|
9927
|
+
this.api = api;
|
|
9928
|
+
this.gridModelChanged = new Subject();
|
|
9929
|
+
}
|
|
9930
|
+
async load(uuid, gridIdentifier) {
|
|
9931
|
+
let gridModelResult = await lastValueFrom(this.api.load(uuid, gridIdentifier));
|
|
9932
|
+
this.updateGrid(gridModelResult, 'load');
|
|
9933
|
+
}
|
|
9934
|
+
async setPage(uuid, gridIdentifier, offset, limit) {
|
|
9935
|
+
await lastValueFrom(this.api.setPage(uuid, gridIdentifier, offset, limit));
|
|
9936
|
+
await this.update(uuid, gridIdentifier, {
|
|
9937
|
+
orderByList: this.gridModel.view?.orderByList,
|
|
9938
|
+
orderedColumnNames: this.gridModel.view?.orderedColumnNames,
|
|
9939
|
+
pageSize: +limit,
|
|
9940
|
+
});
|
|
9941
|
+
}
|
|
9942
|
+
async sort(smartGrid, gridUpdateData) {
|
|
9943
|
+
if (!gridUpdateData.pageSize) {
|
|
9944
|
+
gridUpdateData.pageSize = this.getCurrentPageSize();
|
|
9945
|
+
}
|
|
9946
|
+
let gridModelResult = await this.api
|
|
9947
|
+
.update(smartGrid.gridModel.viewUuid, smartGrid.gridIdentifier, gridUpdateData)
|
|
9948
|
+
.toPromise();
|
|
9949
|
+
this.updateGrid(gridModelResult, 'sort');
|
|
9950
|
+
}
|
|
9951
|
+
async expand(smartGrid, rowId) {
|
|
9952
|
+
return await this.api
|
|
9953
|
+
.expand(smartGrid.gridModel.viewUuid, smartGrid.gridIdentifier, rowId)
|
|
9954
|
+
.toPromise();
|
|
9955
|
+
}
|
|
9956
|
+
async select(smartGrid, gridRow) {
|
|
9957
|
+
gridRow.selected = !gridRow.selected;
|
|
9958
|
+
return await this.api
|
|
9959
|
+
.select(smartGrid.gridModel.viewUuid, smartGrid.gridIdentifier, gridRow.id, gridRow.selected)
|
|
9960
|
+
.toPromise();
|
|
9961
|
+
}
|
|
9962
|
+
async selectRows(smartGrid, selected, unselected) {
|
|
9963
|
+
return await this.api
|
|
9964
|
+
.selectRows(smartGrid.gridModel.viewUuid, smartGrid.gridIdentifier, { selected, unselected })
|
|
9965
|
+
.toPromise();
|
|
9966
|
+
}
|
|
9967
|
+
async selectAll(smartGrid, selected) {
|
|
9968
|
+
return await this.api
|
|
9969
|
+
.selectAll(smartGrid.gridModel.viewUuid, smartGrid.gridIdentifier, selected)
|
|
9970
|
+
.toPromise();
|
|
9971
|
+
}
|
|
9972
|
+
async update(uuid, identifier, updateData) {
|
|
9973
|
+
if (!updateData.pageSize) {
|
|
9974
|
+
updateData.pageSize = this.getCurrentPageSize();
|
|
9975
|
+
}
|
|
9976
|
+
let gridModelResult = await this.api.update(uuid, identifier, updateData).toPromise();
|
|
9977
|
+
this.updateGrid(gridModelResult, 'update');
|
|
9978
|
+
}
|
|
9979
|
+
updateGrid(gridModel, method) {
|
|
9980
|
+
if (gridModel) {
|
|
9981
|
+
this.gridModel = gridModel;
|
|
9982
|
+
this.gridModelChanged.next();
|
|
9983
|
+
}
|
|
9984
|
+
else {
|
|
9985
|
+
console.error(`GridModel is undefined in service after ${method}!`);
|
|
9986
|
+
}
|
|
9987
|
+
}
|
|
9988
|
+
getCurrentPageSize() {
|
|
9989
|
+
if (this.paginator) {
|
|
9990
|
+
return this.gridModel.pageSize;
|
|
9991
|
+
}
|
|
9992
|
+
return undefined;
|
|
9993
|
+
}
|
|
9994
|
+
}
|
|
9995
|
+
SmartGridService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService, deps: [{ token: GridService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9996
|
+
SmartGridService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService });
|
|
9997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartGridService, decorators: [{
|
|
9998
|
+
type: Injectable
|
|
9999
|
+
}], ctorParameters: function () { return [{ type: GridService }]; } });
|
|
10000
10000
|
|
|
10001
10001
|
var ExpandableSectionButtonType;
|
|
10002
10002
|
(function (ExpandableSectionButtonType) {
|
|
@@ -10553,7 +10553,6 @@ class SmartGridComponent {
|
|
|
10553
10553
|
return result;
|
|
10554
10554
|
}
|
|
10555
10555
|
async constructHeader() {
|
|
10556
|
-
let header = [];
|
|
10557
10556
|
if (this.smartGrid.gridModel.page.rows && this.smartGrid.gridModel.page.rows.length) {
|
|
10558
10557
|
await Promise.all(this.smartGrid.gridModel.page.rows.map(async (gridRow) => {
|
|
10559
10558
|
let newUiActions = gridRow.actions?.filter((uiAction) => !this.uiActionDescriptors.get(uiAction.code));
|
|
@@ -10572,70 +10571,70 @@ class SmartGridComponent {
|
|
|
10572
10571
|
}
|
|
10573
10572
|
}));
|
|
10574
10573
|
}
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
let customTableHeader = this.smartGrid.tableConfig?.customSmartTableHeaders?.find((header) => header.propertyName === propertyName);
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
order
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
orderNumber++;
|
|
10590
|
-
}
|
|
10574
|
+
let orederedDescColumns = this.smartGrid.gridModel.view.orderedColumnNames.map((propertyName) => this.smartGrid.gridModel.view.descriptor.columns.find((colDescriptor) => colDescriptor.propertyName === propertyName)).flatMap((f) => f ?? []);
|
|
10575
|
+
let header = await Promise.all(orederedDescColumns.map(async (descColumn) => {
|
|
10576
|
+
let customTableHeader = this.smartGrid.tableConfig?.customSmartTableHeaders?.find((header) => header.propertyName === descColumn.propertyName);
|
|
10577
|
+
let filterExpressionOrderByItem = this.smartGrid.gridModel.view?.orderByList?.find((filterExpression) => filterExpression.propertyName === descColumn.propertyName);
|
|
10578
|
+
let order;
|
|
10579
|
+
let orderNumber;
|
|
10580
|
+
if (filterExpressionOrderByItem) {
|
|
10581
|
+
order =
|
|
10582
|
+
filterExpressionOrderByItem.order === FilterExpressionOrderBy.OrderEnum.Asc
|
|
10583
|
+
? SmartTableOrder.ASC
|
|
10584
|
+
: SmartTableOrder.DESC;
|
|
10585
|
+
if (this.service.gridModel.view.orderByList.length > 1) {
|
|
10586
|
+
orderNumber = this.service.gridModel.view.orderByList.findIndex((filter) => filter.propertyName === descColumn.propertyName);
|
|
10587
|
+
orderNumber++;
|
|
10591
10588
|
}
|
|
10592
|
-
|
|
10593
|
-
|
|
10589
|
+
}
|
|
10590
|
+
const orignalLabel = customTableHeader?.label ?? descColumn.label;
|
|
10591
|
+
let label = '';
|
|
10592
|
+
if (!descColumn.hideLabel) {
|
|
10594
10593
|
if (this.smartGrid.translateService) {
|
|
10595
10594
|
label = await this.smartGrid.translateService?.get(orignalLabel).toPromise();
|
|
10596
10595
|
}
|
|
10597
10596
|
else {
|
|
10598
10597
|
label = orignalLabel;
|
|
10599
10598
|
}
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
}
|
|
10610
|
-
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
}
|
|
10617
|
-
|
|
10618
|
-
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
}
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
}
|
|
10599
|
+
}
|
|
10600
|
+
let properties = customTableHeader?.properties;
|
|
10601
|
+
if (!properties) {
|
|
10602
|
+
if (descColumn.typeClass === 'java.time.OffsetDateTime' ||
|
|
10603
|
+
descColumn.typeClass === 'java.time.LocalDateTime') {
|
|
10604
|
+
let dateFormat = descColumn.typeFormat ?? 'yyyy.MM.dd H:mm';
|
|
10605
|
+
properties = {
|
|
10606
|
+
type: SmartTableHeaderPropertyType.DATETIME,
|
|
10607
|
+
dateFormat,
|
|
10608
|
+
};
|
|
10609
|
+
}
|
|
10610
|
+
else if (descColumn.typeClass === 'java.time.LocalDate') {
|
|
10611
|
+
let dateFormat = descColumn.typeFormat ?? 'yyyy.MM.dd';
|
|
10612
|
+
properties = {
|
|
10613
|
+
type: SmartTableHeaderPropertyType.DATE,
|
|
10614
|
+
dateFormat,
|
|
10615
|
+
};
|
|
10616
|
+
}
|
|
10617
|
+
else if (descColumn.typeClass === 'java.time.LocalTime') {
|
|
10618
|
+
let dateFormat = descColumn.typeFormat ?? 'H:mm';
|
|
10619
|
+
properties = {
|
|
10620
|
+
type: SmartTableHeaderPropertyType.TIME,
|
|
10621
|
+
dateFormat,
|
|
10622
|
+
};
|
|
10623
|
+
}
|
|
10624
|
+
else if (descColumn.typeClass === 'java.lang.Boolean') {
|
|
10625
|
+
properties = {
|
|
10626
|
+
type: SmartTableHeaderPropertyType.CHECKBOX,
|
|
10627
|
+
};
|
|
10629
10628
|
}
|
|
10630
|
-
header.push({
|
|
10631
|
-
...customTableHeader,
|
|
10632
|
-
label: label,
|
|
10633
|
-
propertyName: 'data.' + descColumn.propertyName,
|
|
10634
|
-
order,
|
|
10635
|
-
orderNumber,
|
|
10636
|
-
properties,
|
|
10637
|
-
});
|
|
10638
10629
|
}
|
|
10630
|
+
return {
|
|
10631
|
+
...customTableHeader,
|
|
10632
|
+
label: label,
|
|
10633
|
+
propertyName: 'data.' + descColumn.propertyName,
|
|
10634
|
+
order,
|
|
10635
|
+
orderNumber,
|
|
10636
|
+
properties,
|
|
10637
|
+
};
|
|
10639
10638
|
}));
|
|
10640
10639
|
let complement = this.smartGrid.tableConfig?.customSmartTableHeaders?.filter((tableHeader) => !header.some((tH) => tH.propertyName.includes(tableHeader.propertyName)));
|
|
10641
10640
|
if (complement) {
|
|
@@ -10685,6 +10684,7 @@ class SmartGridComponent {
|
|
|
10685
10684
|
});
|
|
10686
10685
|
}
|
|
10687
10686
|
}
|
|
10687
|
+
console.log(header);
|
|
10688
10688
|
return header;
|
|
10689
10689
|
}
|
|
10690
10690
|
async onChangePage(event) {
|