@smartbit4all/ng-client 3.3.187 → 3.3.190
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-client/smart-component-api-client.mjs +29 -47
- 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-filter-editor/smart-filter-editor.model.mjs +1 -1
- package/esm2020/lib/smart-filter-editor/smart-filter-editor.service.mjs +7 -11
- 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/smart-grid.component.mjs +2 -4
- package/esm2020/lib/smart-table/tables/table.mjs +2 -2
- 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/smart-view-context.service.mjs +24 -34
- 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 +63 -96
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +59 -93
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +1 -1
- package/lib/smart-filter-editor/smart-filter-editor.model.d.ts +1 -1
- package/lib/smart-grid/smart-grid.component.d.ts +1 -1
- package/lib/view-context/smart-view-context.service.d.ts +3 -4
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.190.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.187.tgz +0 -0
|
@@ -2841,7 +2841,7 @@ class SmartViewContextService {
|
|
|
2841
2841
|
openView(view) {
|
|
2842
2842
|
let alreadyOpened = this.openedViewUuids.some((uuid) => uuid === view.uuid);
|
|
2843
2843
|
if (alreadyOpened)
|
|
2844
|
-
return
|
|
2844
|
+
return;
|
|
2845
2845
|
let viewHandler = this.viewHandlers.find((handler) => handler.name === view.viewName);
|
|
2846
2846
|
if (!viewHandler) {
|
|
2847
2847
|
throw new Error(`SmartViewHandlerModel was not found by view name: ${view.viewName}`);
|
|
@@ -2911,10 +2911,15 @@ class SmartViewContextService {
|
|
|
2911
2911
|
this.openedViewData.push(view);
|
|
2912
2912
|
this.setUuidOfPage(view.viewName, view.uuid, viewHandler.componentName);
|
|
2913
2913
|
this.uuidOfPageHasBeenChanged.next(view.viewName);
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2914
|
+
this.updateViewContext({
|
|
2915
|
+
updates: [
|
|
2916
|
+
{
|
|
2917
|
+
state: ViewState.OPENED,
|
|
2918
|
+
uuid: view.uuid,
|
|
2919
|
+
},
|
|
2920
|
+
],
|
|
2921
|
+
uuid: this.viewContext?.uuid,
|
|
2922
|
+
});
|
|
2918
2923
|
}
|
|
2919
2924
|
closeView(view) {
|
|
2920
2925
|
let viewHandler = this.viewHandlers.find((handler) => handler.name === view.viewName);
|
|
@@ -2946,46 +2951,32 @@ class SmartViewContextService {
|
|
|
2946
2951
|
this.openedViewData.splice(index, 1);
|
|
2947
2952
|
this.clearUuidOfPage(view.viewName, viewHandler.componentName);
|
|
2948
2953
|
}
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
if (update !== undefined && update !== null)
|
|
2958
|
-
updates.push(update);
|
|
2954
|
+
this.updateViewContext({
|
|
2955
|
+
updates: [
|
|
2956
|
+
{
|
|
2957
|
+
state: ViewState.CLOSED,
|
|
2958
|
+
uuid: view.uuid,
|
|
2959
|
+
},
|
|
2960
|
+
],
|
|
2961
|
+
uuid: this.viewContext?.uuid,
|
|
2959
2962
|
});
|
|
2960
|
-
if (updates.length > 0) {
|
|
2961
|
-
this.updateViewContext({
|
|
2962
|
-
updates,
|
|
2963
|
-
uuid: this.viewContext?.uuid,
|
|
2964
|
-
});
|
|
2965
|
-
}
|
|
2966
2963
|
}
|
|
2967
2964
|
async restoreViews(uuid) {
|
|
2968
|
-
const updates = [];
|
|
2969
2965
|
if (!this.viewContext) {
|
|
2970
2966
|
await this.getViewContext(uuid);
|
|
2971
2967
|
}
|
|
2972
|
-
this.viewContext.views.
|
|
2973
|
-
|
|
2974
|
-
if (update) {
|
|
2975
|
-
updates.push(update);
|
|
2976
|
-
}
|
|
2968
|
+
this.viewContext.views.map((view) => {
|
|
2969
|
+
this.openView(view);
|
|
2977
2970
|
});
|
|
2978
|
-
this.sendViewContextUpdates(updates);
|
|
2979
2971
|
}
|
|
2980
2972
|
syncView() {
|
|
2981
|
-
const updates = [];
|
|
2982
2973
|
this.viewContext?.views.map((view) => {
|
|
2983
2974
|
switch (view.state) {
|
|
2984
2975
|
case ViewState.TO_OPEN:
|
|
2985
|
-
|
|
2976
|
+
this.openView(view);
|
|
2986
2977
|
break;
|
|
2987
2978
|
case ViewState.TO_CLOSE:
|
|
2988
|
-
|
|
2979
|
+
this.closeView(view);
|
|
2989
2980
|
break;
|
|
2990
2981
|
}
|
|
2991
2982
|
});
|
|
@@ -2994,10 +2985,9 @@ class SmartViewContextService {
|
|
|
2994
2985
|
.includes(viewData.uuid));
|
|
2995
2986
|
if (viewDataToClose?.length) {
|
|
2996
2987
|
viewDataToClose.map((viewData) => {
|
|
2997
|
-
|
|
2988
|
+
this.closeView(viewData);
|
|
2998
2989
|
});
|
|
2999
2990
|
}
|
|
3000
|
-
this.sendViewContextUpdates(updates);
|
|
3001
2991
|
this.viewContext?.links?.map((data) => {
|
|
3002
2992
|
const link = document.createElement('a');
|
|
3003
2993
|
let target = '_blank'; // default
|
|
@@ -6701,7 +6691,7 @@ class Table {
|
|
|
6701
6691
|
}
|
|
6702
6692
|
customButtonClicked(event, button, element, btn, close) {
|
|
6703
6693
|
event.stopPropagation();
|
|
6704
|
-
if (btn
|
|
6694
|
+
if (btn?.disabled) {
|
|
6705
6695
|
return;
|
|
6706
6696
|
}
|
|
6707
6697
|
if (button.type === SmartTableButtonType.MENU && btn === undefined)
|
|
@@ -10239,9 +10229,7 @@ class SmartGridComponent {
|
|
|
10239
10229
|
async refresh() {
|
|
10240
10230
|
this.setupToolbar();
|
|
10241
10231
|
// will cause this.service.gridModelChanged to fire
|
|
10242
|
-
|
|
10243
|
-
await this.service.load(this.uuid, this.smartGrid.gridIdentifier);
|
|
10244
|
-
}
|
|
10232
|
+
await this.service.load(this.uuid, this.smartGrid.gridIdentifier);
|
|
10245
10233
|
}
|
|
10246
10234
|
setupToolbar() {
|
|
10247
10235
|
// check if toolbar is available _and_ need set up
|
|
@@ -15179,18 +15167,14 @@ class SmartFilterEditorService {
|
|
|
15179
15167
|
this.reSubscribeToChange = new Subject();
|
|
15180
15168
|
}
|
|
15181
15169
|
async load() {
|
|
15182
|
-
|
|
15183
|
-
|
|
15184
|
-
this.modelChanged.next();
|
|
15185
|
-
}
|
|
15170
|
+
this.model = await this.service.load(this.config.uuid, this.config.identifier).toPromise();
|
|
15171
|
+
this.modelChanged.next();
|
|
15186
15172
|
}
|
|
15187
15173
|
async peformWidgetAction(request) {
|
|
15188
|
-
|
|
15189
|
-
this.
|
|
15190
|
-
|
|
15191
|
-
|
|
15192
|
-
this.modelChanged.next();
|
|
15193
|
-
}
|
|
15174
|
+
this.model = await this.service
|
|
15175
|
+
.performWidgetAction(this.config.uuid, this.config.identifier, request)
|
|
15176
|
+
.toPromise();
|
|
15177
|
+
this.modelChanged.next();
|
|
15194
15178
|
}
|
|
15195
15179
|
getModel() {
|
|
15196
15180
|
return this.model;
|
|
@@ -15224,7 +15208,7 @@ class SmartComponentApiClient {
|
|
|
15224
15208
|
this.renderer = renderer;
|
|
15225
15209
|
this._destroy$ = new Subject();
|
|
15226
15210
|
this.detectChange = new SmartSubject(this._destroy$);
|
|
15227
|
-
this.
|
|
15211
|
+
this._ngAfterViewInitPerformed = false;
|
|
15228
15212
|
this.uiActionModels = [];
|
|
15229
15213
|
this.dataChanged = new SmartSubject(this._destroy$);
|
|
15230
15214
|
// Contained Widgets
|
|
@@ -15268,29 +15252,29 @@ class SmartComponentApiClient {
|
|
|
15268
15252
|
firstUuid = false;
|
|
15269
15253
|
}
|
|
15270
15254
|
this._uuid = uuid;
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
ref
|
|
15274
|
-
|
|
15275
|
-
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
});
|
|
15282
|
-
if (!this.uuidOfPageHasBeenChangedSubscription) {
|
|
15283
|
-
this.uuidOfPageHasBeenChangedSubscription = this.viewContext.uuidOfPageHasBeenChanged
|
|
15284
|
-
.pipe(takeUntil(this._destroy$))
|
|
15285
|
-
.subscribe((pageName) => {
|
|
15286
|
-
if (pageName === this.pageName) {
|
|
15287
|
-
this.run();
|
|
15255
|
+
if (uuid) {
|
|
15256
|
+
this.getWidgets().forEach((ref, key) => {
|
|
15257
|
+
if (ref instanceof SmartGridComponent) {
|
|
15258
|
+
ref.uuid = uuid;
|
|
15259
|
+
}
|
|
15260
|
+
else if (ref instanceof SmartFilterEditorService) {
|
|
15261
|
+
ref.config.uuid = uuid;
|
|
15262
|
+
}
|
|
15263
|
+
else if (!ref && !firstUuid) {
|
|
15264
|
+
console.error(`Provided reference for ${key} is undefined on uuid change.`);
|
|
15288
15265
|
}
|
|
15289
15266
|
});
|
|
15267
|
+
if (!this.uuidOfPageHasBeenChangedSubscription) {
|
|
15268
|
+
this.uuidOfPageHasBeenChangedSubscription = this.viewContext.uuidOfPageHasBeenChanged
|
|
15269
|
+
.pipe(takeUntil(this._destroy$))
|
|
15270
|
+
.subscribe((pageName) => {
|
|
15271
|
+
if (pageName === this.pageName) {
|
|
15272
|
+
this.run();
|
|
15273
|
+
}
|
|
15274
|
+
});
|
|
15275
|
+
}
|
|
15290
15276
|
}
|
|
15291
|
-
|
|
15292
|
-
this.viewContext.follow(this._uuid, this.detectChange);
|
|
15293
|
-
}
|
|
15277
|
+
this.viewContext.follow(this._uuid, this.detectChange);
|
|
15294
15278
|
}
|
|
15295
15279
|
get model() {
|
|
15296
15280
|
return this._model;
|
|
@@ -15521,17 +15505,9 @@ class SmartComponentApiClient {
|
|
|
15521
15505
|
}
|
|
15522
15506
|
}
|
|
15523
15507
|
async load() {
|
|
15524
|
-
this.
|
|
15525
|
-
const uuid = this.viewContext.getUuidOfPage(this.pageName);
|
|
15508
|
+
this.uuid = this.viewContext.getUuidOfPage(this.pageName);
|
|
15526
15509
|
// this.model = await this.viewContext.load(this.uuid);
|
|
15527
|
-
|
|
15528
|
-
this.componentModelLoaded = true;
|
|
15529
|
-
this.uuid = uuid;
|
|
15530
|
-
this.model = change.result;
|
|
15531
|
-
if (this.model.widgets) {
|
|
15532
|
-
// grids are already loaded in setUuid()
|
|
15533
|
-
this.handleChangeWidgets(this.model.widgets, true);
|
|
15534
|
-
}
|
|
15510
|
+
await this.viewContext.load2(this.uuid);
|
|
15535
15511
|
}
|
|
15536
15512
|
async executeUiAction(uiAction, options) {
|
|
15537
15513
|
this.uiActionService.uiActionModel = {
|
|
@@ -15774,10 +15750,6 @@ class SmartComponentApiClient {
|
|
|
15774
15750
|
}
|
|
15775
15751
|
handleChanges(change) {
|
|
15776
15752
|
try {
|
|
15777
|
-
if (!this.componentModelLoaded) {
|
|
15778
|
-
// initial load
|
|
15779
|
-
return;
|
|
15780
|
-
}
|
|
15781
15753
|
if (change.changedWidgets) {
|
|
15782
15754
|
this.handleChangeWidgets(change.changedWidgets);
|
|
15783
15755
|
}
|
|
@@ -15821,27 +15793,21 @@ class SmartComponentApiClient {
|
|
|
15821
15793
|
this.model = change.value;
|
|
15822
15794
|
}
|
|
15823
15795
|
}
|
|
15824
|
-
handleChangeWidgets(changedWidgets
|
|
15796
|
+
handleChangeWidgets(changedWidgets) {
|
|
15825
15797
|
let widgets = this.getWidgets();
|
|
15826
15798
|
changedWidgets.forEach((key) => {
|
|
15827
15799
|
const reference = widgets.get(key);
|
|
15828
15800
|
if (reference instanceof SmartGridComponent) {
|
|
15829
15801
|
this.setupGridServices(reference);
|
|
15830
|
-
|
|
15831
|
-
reference.refresh();
|
|
15832
|
-
}
|
|
15802
|
+
reference.refresh();
|
|
15833
15803
|
}
|
|
15834
15804
|
else if (reference instanceof SmarttreeGenericService) {
|
|
15835
|
-
|
|
15836
|
-
reference.initialize();
|
|
15837
|
-
}
|
|
15805
|
+
reference.initialize();
|
|
15838
15806
|
}
|
|
15839
15807
|
else if (reference instanceof SmartFilterEditorService) {
|
|
15840
|
-
|
|
15841
|
-
reference.load();
|
|
15842
|
-
}
|
|
15808
|
+
reference.load();
|
|
15843
15809
|
}
|
|
15844
|
-
else if (
|
|
15810
|
+
else if (reference === undefined) {
|
|
15845
15811
|
console.error(`Provided reference for ${key} is undefined.`);
|
|
15846
15812
|
}
|
|
15847
15813
|
});
|