@datorama/core 22.13.0-beta.7 → 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 +12 -9
- package/bundles/datorama-core.umd.js +15 -1
- 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-column-cell-components/grid-initials-cell/grid-initials-cell.component.js +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/esm2015/lib/icon/icon.types.js +1 -1
- package/esm5/lib/grid-v2/grid-column-cell-components/grid-initials-cell/grid-initials-cell.component.js +1 -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/esm5/lib/icon/icon.types.js +1 -1
- package/fesm2015/datorama-core.js +14 -1
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +15 -1
- 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/lib/icon/icon.types.d.ts +1 -1
- 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: [] });
|
|
@@ -20627,7 +20641,7 @@ var DatoGridInitialsCellComponent = /** @class */ (function () {
|
|
|
20627
20641
|
selector: 'dato-grid-initials-cell',
|
|
20628
20642
|
template: "<div *ngIf=\"!isGroup\" class=\"height-100 d-flex items-center primary-500-color initials-container\">\n <div *ngIf=\"initials\" class=\"initials text-center mr-12\" [class.bold]=\"isBold\">{{ initials }}</div>\n <div [class.bold]=\"isBold\">{{text}}</div>\n</div>\n\n<span *ngIf=\"isGroup\">{{text}}</span>\n",
|
|
20629
20643
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20630
|
-
styles: [".initials-container .initials{width:34px;height:34px;line-height:33px;border-radius:50%;font-size:15px}.initials-container.bold{font-weight:600}"]
|
|
20644
|
+
styles: [".initials-container .initials{width:34px;height:34px;line-height:33px;border-radius:50%;font-size:15px;flex:0 0 auto}.initials-container.bold{font-weight:600}"]
|
|
20631
20645
|
})
|
|
20632
20646
|
], DatoGridInitialsCellComponent);
|
|
20633
20647
|
return DatoGridInitialsCellComponent;
|