@smartbit4all/ng-client 2.0.3 → 2.0.5
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/smart-client/smart-component-api-client.mjs +14 -5
- package/fesm2015/smartbit4all-ng-client.mjs +13 -4
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +13 -4
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-2.0.5.tgz +0 -0
- package/smartbit4all-ng-client-2.0.3.tgz +0 -0
|
@@ -5880,15 +5880,20 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
5880
5880
|
return this._uuid;
|
|
5881
5881
|
}
|
|
5882
5882
|
set uuid(uuid) {
|
|
5883
|
+
let firstUuid = true;
|
|
5883
5884
|
if (this.uuid) {
|
|
5884
5885
|
this.viewContext.unfollow(this.uuid);
|
|
5886
|
+
firstUuid = false;
|
|
5885
5887
|
}
|
|
5886
5888
|
this._uuid = uuid;
|
|
5887
5889
|
if (uuid) {
|
|
5888
|
-
this.widgets.widgets.forEach((ref) => {
|
|
5890
|
+
this.widgets.widgets.forEach((ref, key) => {
|
|
5889
5891
|
if (ref instanceof SmartGridComponent) {
|
|
5890
5892
|
ref.uuid = uuid;
|
|
5891
5893
|
}
|
|
5894
|
+
else if (!ref && !firstUuid) {
|
|
5895
|
+
console.error(`Provided reference for ${key} is undefined on uuid change.`);
|
|
5896
|
+
}
|
|
5892
5897
|
});
|
|
5893
5898
|
if (!this.uuidOfPageHasBeenChangedSubscription) {
|
|
5894
5899
|
this.uuidOfPageHasBeenChangedSubscription = this.viewContext.uuidOfPageHasBeenChanged
|
|
@@ -5965,8 +5970,12 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
5965
5970
|
}
|
|
5966
5971
|
}
|
|
5967
5972
|
async load() {
|
|
5968
|
-
|
|
5969
|
-
|
|
5973
|
+
if (this.uuid) {
|
|
5974
|
+
this.viewContext.unfollow(this.uuid);
|
|
5975
|
+
}
|
|
5976
|
+
let uuid = this.viewContext.getUuidOfPage(this.pageName);
|
|
5977
|
+
this.model = await this.viewContext.load(uuid);
|
|
5978
|
+
this.uuid = uuid;
|
|
5970
5979
|
}
|
|
5971
5980
|
//#region UseUiAction
|
|
5972
5981
|
getAdditionalParams(uiAction) {
|
|
@@ -6015,7 +6024,7 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
6015
6024
|
this.formWidgets.widgets.get(key)?.submitForm();
|
|
6016
6025
|
});
|
|
6017
6026
|
}
|
|
6018
|
-
addGrid(smartGrid, options,
|
|
6027
|
+
addGrid(smartGrid, options, useAsDefaultGrid, componentReference) {
|
|
6019
6028
|
smartGrid.options = options;
|
|
6020
6029
|
smartGrid.uiActionService = this.uiActionService;
|
|
6021
6030
|
smartGrid.uiActionDescriptorService = this.uiActionDescriptorService;
|