@fluxhub/fluxhub-lib 11.0.138 → 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 +8 -1
- 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 +10 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +9 -1
- 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 +2 -0
- package/package.json +1 -1
|
@@ -19758,6 +19758,7 @@
|
|
|
19758
19758
|
this.columnDefs = [];
|
|
19759
19759
|
this.rowData = [];
|
|
19760
19760
|
this.selectAll = true;
|
|
19761
|
+
this.selectNumber = 0;
|
|
19761
19762
|
this.gridOptions = {
|
|
19762
19763
|
debug: false,
|
|
19763
19764
|
rowMultiSelectWithClick: true,
|
|
@@ -19778,6 +19779,11 @@
|
|
|
19778
19779
|
fh_win_grid_selection.prototype.ngAfterViewInit = function () {
|
|
19779
19780
|
this.fitSizeAll();
|
|
19780
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
|
+
};
|
|
19781
19787
|
fh_win_grid_selection.prototype.ck_sel = function () {
|
|
19782
19788
|
if (!this.gridOptions.api)
|
|
19783
19789
|
return true;
|
|
@@ -19786,6 +19792,7 @@
|
|
|
19786
19792
|
fh_win_grid_selection.prototype.onReady = function (a) {
|
|
19787
19793
|
var _this = this;
|
|
19788
19794
|
setTimeout(function () {
|
|
19795
|
+
console.log("🚀 ~ file: win_grid_selection.ts:104 ~ fh_win_grid_selection ~ setTimeout ~ this.selectAll:", _this.selectAll);
|
|
19789
19796
|
if (_this.gridOptions.api && _this.selectAll)
|
|
19790
19797
|
_this.gridOptions.api.selectAll();
|
|
19791
19798
|
}, 100);
|
|
@@ -19820,7 +19827,7 @@
|
|
|
19820
19827
|
fh_win_grid_selection.decorators = [
|
|
19821
19828
|
{ type: i0.Component, args: [{
|
|
19822
19829
|
providers: [FHCurrencyPipe],
|
|
19823
|
-
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 "
|
|
19824
19831
|
},] }
|
|
19825
19832
|
];
|
|
19826
19833
|
fh_win_grid_selection.ctorParameters = function () { return [
|