@fluxhub/fluxhub-lib 11.0.137 → 11.0.139
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/bundles/fluxhub-fluxhub-lib.umd.js +11 -2
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/win_grid_selection.js +13 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +12 -2
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_grid_selection.d.ts +3 -0
- package/package.json +1 -1
|
@@ -19757,6 +19757,8 @@
|
|
|
19757
19757
|
this.data = data;
|
|
19758
19758
|
this.columnDefs = [];
|
|
19759
19759
|
this.rowData = [];
|
|
19760
|
+
this.selectAll = true;
|
|
19761
|
+
this.selectNumber = 0;
|
|
19760
19762
|
this.gridOptions = {
|
|
19761
19763
|
debug: false,
|
|
19762
19764
|
rowMultiSelectWithClick: true,
|
|
@@ -19771,11 +19773,17 @@
|
|
|
19771
19773
|
this.rowData = this.data.rowData;
|
|
19772
19774
|
if (this.data.title)
|
|
19773
19775
|
this.title = this.data.title;
|
|
19776
|
+
this.selectAll = (this.data.selectAll || true);
|
|
19774
19777
|
}
|
|
19775
19778
|
}
|
|
19776
19779
|
fh_win_grid_selection.prototype.ngAfterViewInit = function () {
|
|
19777
19780
|
this.fitSizeAll();
|
|
19778
19781
|
};
|
|
19782
|
+
fh_win_grid_selection.prototype.onSelectionChanged = function (o) {
|
|
19783
|
+
if (!this.gridOptions.api)
|
|
19784
|
+
return;
|
|
19785
|
+
this.selectNumber = this.gridOptions.api.getSelectedRows().length;
|
|
19786
|
+
};
|
|
19779
19787
|
fh_win_grid_selection.prototype.ck_sel = function () {
|
|
19780
19788
|
if (!this.gridOptions.api)
|
|
19781
19789
|
return true;
|
|
@@ -19784,7 +19792,8 @@
|
|
|
19784
19792
|
fh_win_grid_selection.prototype.onReady = function (a) {
|
|
19785
19793
|
var _this = this;
|
|
19786
19794
|
setTimeout(function () {
|
|
19787
|
-
|
|
19795
|
+
console.log("🚀 ~ file: win_grid_selection.ts:104 ~ fh_win_grid_selection ~ setTimeout ~ this.selectAll:", _this.selectAll);
|
|
19796
|
+
if (_this.gridOptions.api && _this.selectAll)
|
|
19788
19797
|
_this.gridOptions.api.selectAll();
|
|
19789
19798
|
}, 100);
|
|
19790
19799
|
};
|
|
@@ -19818,7 +19827,7 @@
|
|
|
19818
19827
|
fh_win_grid_selection.decorators = [
|
|
19819
19828
|
{ type: i0.Component, args: [{
|
|
19820
19829
|
providers: [FHCurrencyPipe],
|
|
19821
|
-
template: "\n <div fxLayout=\"column\">\n <div fxFlex=\"100\" fxLayout=\"row\" class=\"dialog_header\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" style=\"width:50%\">\n {{ title }}\n </div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"dialogRef.close(null)\"\n />\n </div>\n </div>\n <hr style=\"width:100%;size:0.5;color:#DDDDDD\" />\n\n <mat-dialog-content>\n <div fxLayout=\"column\" fxLayoutGap=\"10px\">\n <div\n style=\"width: 100%;\"\n [style.height]=\"m_AppService.getState().body_h - 210 + 'px'\"\n >\n <div style=\"width: 100%; height: 100%;\">\n <ag-grid-angular\n #dtm\n class=\"ag-theme-balham\"\n style=\"width: 100%; height: 100%;\"\n [gridOptions]=\"gridOptions\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\"\n (gridReady)=\"onReady($event)\"\n >\n </ag-grid-angular>\n </div>\n </div>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"10px\"\n fxLayoutAlign=\"center center\"\n fxFlex\n style=\"width:100%\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n [disabled]=\"ck_sel()\"\n (click)=\"ok()\"\n >\n OK \n </button>\n <button mat-flat-button color=\"warn\" (click)=\"dialogRef.close(null)\">\n ANNULLA\n </button>\n </div>\n </mat-dialog-actions>\n </div>\n "
|
|
19830
|
+
template: "\n <div fxLayout=\"column\">\n <div fxFlex=\"100\" fxLayout=\"row\" class=\"dialog_header\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" style=\"width:50%\">\n {{ title }}\n </div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"dialogRef.close(null)\"\n />\n </div>\n </div>\n <hr style=\"width:100%;size:0.5;color:#DDDDDD\" />\n\n <mat-dialog-content>\n <div fxLayout=\"column\" fxLayoutGap=\"10px\">\n <div\n style=\"width: 100%;\"\n [style.height]=\"m_AppService.getState().body_h - 210 + 'px'\"\n >\n <div style=\"width: 100%; height: 100%;\">\n <ag-grid-angular\n #dtm\n class=\"ag-theme-balham\"\n style=\"width: 100%; height: 100%;\"\n [gridOptions]=\"gridOptions\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\"\n (gridReady)=\"onReady($event)\"\n (selectionChanged)=\"onSelectionChanged($event)\"\n >\n </ag-grid-angular>\n </div>\n </div>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"10px\"\n fxLayoutAlign=\"center center\"\n fxFlex\n style=\"width:100%\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n [disabled]=\"ck_sel()\"\n (click)=\"ok()\"\n >\n OK ({{selectNumber}}) \n </button>\n <button mat-flat-button color=\"warn\" (click)=\"dialogRef.close(null)\">\n ANNULLA\n </button>\n </div>\n </mat-dialog-actions>\n </div>\n "
|
|
19822
19831
|
},] }
|
|
19823
19832
|
];
|
|
19824
19833
|
fh_win_grid_selection.ctorParameters = function () { return [
|