@smartbit4all/ng-client 3.3.34 → 3.3.36
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 +5 -1
- package/esm2020/lib/smart-grid/smart-grid.component.mjs +7 -3
- package/fesm2015/smartbit4all-ng-client.mjs +16 -8
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +10 -2
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-grid/smart-grid.component.d.ts +1 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.36.tgz +0 -0
- package/smartbit4all-ng-client-3.3.34.tgz +0 -0
|
@@ -10015,6 +10015,7 @@ class SmartGridComponent {
|
|
|
10015
10015
|
if (changes['smartGrid']) {
|
|
10016
10016
|
this.smartGrid = changes['smartGrid'].currentValue;
|
|
10017
10017
|
this.service.paginator = this.smartGrid?.paginator;
|
|
10018
|
+
this.setupToolbar();
|
|
10018
10019
|
}
|
|
10019
10020
|
if (changes['uuid']) {
|
|
10020
10021
|
this.uuid = changes['uuid'].currentValue;
|
|
@@ -10052,6 +10053,11 @@ class SmartGridComponent {
|
|
|
10052
10053
|
* grid with the newest one.
|
|
10053
10054
|
*/
|
|
10054
10055
|
async refresh() {
|
|
10056
|
+
this.setupToolbar();
|
|
10057
|
+
// will cause this.service.gridModelChanged to fire
|
|
10058
|
+
await this.service.load(this.uuid, this.smartGrid.gridIdentifier);
|
|
10059
|
+
}
|
|
10060
|
+
setupToolbar() {
|
|
10055
10061
|
// check if toolbar is available _and_ need set up
|
|
10056
10062
|
if (this.toolbar && this.smartGrid) {
|
|
10057
10063
|
let toolbarId = this.smartGrid?.gridIdentifier + '_toolbar';
|
|
@@ -10059,8 +10065,6 @@ class SmartGridComponent {
|
|
|
10059
10065
|
this.toolbar.id = toolbarId;
|
|
10060
10066
|
}
|
|
10061
10067
|
}
|
|
10062
|
-
// will cause this.service.gridModelChanged to fire
|
|
10063
|
-
await this.service.load(this.uuid, this.smartGrid.gridIdentifier);
|
|
10064
10068
|
}
|
|
10065
10069
|
async render() {
|
|
10066
10070
|
const gridModel = this.smartGrid?.gridModel;
|
|
@@ -14518,6 +14522,10 @@ class SmartComponentApiClient {
|
|
|
14518
14522
|
grid.smartGrid.uiActionDescriptorService = this.uiActionDescriptorService;
|
|
14519
14523
|
grid.smartGrid.serviceToUse = this;
|
|
14520
14524
|
grid.smartGrid.viewContextService = this.viewContext;
|
|
14525
|
+
grid.setupToolbar();
|
|
14526
|
+
if (grid.toolbar) {
|
|
14527
|
+
this.initActions();
|
|
14528
|
+
}
|
|
14521
14529
|
}
|
|
14522
14530
|
if (this.uuid && this.uuid !== grid.uuid)
|
|
14523
14531
|
grid.uuid = this.uuid;
|