@datorama/core 22.13.0-beta.8 → 22.13.0-beta.9
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/bundle.scss +0 -9
- package/bundles/datorama-core.umd.js +14 -0
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +25 -25
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/datorama-core.metadata.json +1 -1
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +9 -2
- package/esm2015/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +7 -1
- package/esm5/lib/grid-v2/grid-store/grid.service.js +9 -2
- package/esm5/lib/grid-v2/grid-toolbar/grid-toolbar.component.js +8 -1
- package/fesm2015/datorama-core.js +13 -0
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +14 -0
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid-store/grid.service.d.ts +4 -0
- package/lib/grid-v2/grid-toolbar/grid-toolbar.component.d.ts +1 -0
- package/package.json +1 -1
package/fesm5/datorama-core.js
CHANGED
|
@@ -14013,6 +14013,7 @@ var GridService = /** @class */ (function () {
|
|
|
14013
14013
|
this.logger = logger;
|
|
14014
14014
|
this.treeConfig = defaultGridTreeLabel;
|
|
14015
14015
|
this.pageNumberToReturnAfterRefresh = -1;
|
|
14016
|
+
this.reloadGridActionsSubject = new Subject();
|
|
14016
14017
|
this.CHECKBOX_SELECTION_COL_ID = 'grid-checkbox-selection';
|
|
14017
14018
|
}
|
|
14018
14019
|
Object.defineProperty(GridService.prototype, "treeData", {
|
|
@@ -14045,6 +14046,12 @@ var GridService = /** @class */ (function () {
|
|
|
14045
14046
|
? context
|
|
14046
14047
|
: deepmerge(this.gridRef.gridOptions.context || {}, context);
|
|
14047
14048
|
};
|
|
14049
|
+
GridService.prototype.reloadGridActions = function () {
|
|
14050
|
+
this.reloadGridActionsSubject.next();
|
|
14051
|
+
};
|
|
14052
|
+
GridService.prototype.onReloadGridActions = function () {
|
|
14053
|
+
return this.reloadGridActionsSubject.asObservable();
|
|
14054
|
+
};
|
|
14048
14055
|
/**
|
|
14049
14056
|
* @deprecated use selectRows instead
|
|
14050
14057
|
* @param row
|
|
@@ -16880,6 +16887,7 @@ var DatoGridV2ToolbarComponent = /** @class */ (function () {
|
|
|
16880
16887
|
});
|
|
16881
16888
|
this.registerGroupListeners();
|
|
16882
16889
|
this.subscribeRowsSelectionData();
|
|
16890
|
+
this.subscribeReloadGridActions();
|
|
16883
16891
|
};
|
|
16884
16892
|
DatoGridV2ToolbarComponent.prototype.onActionClick = function (action) {
|
|
16885
16893
|
if (isFunction(action.onClick)) {
|
|
@@ -17135,6 +17143,12 @@ var DatoGridV2ToolbarComponent = /** @class */ (function () {
|
|
|
17135
17143
|
_this.cdr.detectChanges();
|
|
17136
17144
|
});
|
|
17137
17145
|
};
|
|
17146
|
+
DatoGridV2ToolbarComponent.prototype.subscribeReloadGridActions = function () {
|
|
17147
|
+
var _this = this;
|
|
17148
|
+
this.gridService.onReloadGridActions().subscribe(function () {
|
|
17149
|
+
_this.initGridActions();
|
|
17150
|
+
});
|
|
17151
|
+
};
|
|
17138
17152
|
DatoGridV2ToolbarComponent.prototype.selectAllPages = function () {
|
|
17139
17153
|
if (this.gridQuery.isServerSide) {
|
|
17140
17154
|
this.gridService.setServerSidePagination({ selectAllRowsEnabled: true, excludedFromSelectAll: [] });
|