@fluxhub/fluxhub-lib 11.0.113 → 11.0.114
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 +85 -0
- 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 +143 -0
- package/esm2015/lib/fluxhub-lib.module.js +4 -1
- package/esm2015/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +141 -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 +24 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -20073,6 +20073,88 @@
|
|
|
20073
20073
|
db_type: [{ type: i0.Input }]
|
|
20074
20074
|
};
|
|
20075
20075
|
|
|
20076
|
+
var fh_win_grid_selection = /** @class */ (function () {
|
|
20077
|
+
function fh_win_grid_selection(dialogRef, m_AppService, data) {
|
|
20078
|
+
this.dialogRef = dialogRef;
|
|
20079
|
+
this.m_AppService = m_AppService;
|
|
20080
|
+
this.data = data;
|
|
20081
|
+
this.columnDefs = [];
|
|
20082
|
+
this.rowData = [];
|
|
20083
|
+
this.gridOptions = {
|
|
20084
|
+
debug: false,
|
|
20085
|
+
rowMultiSelectWithClick: true,
|
|
20086
|
+
enableRangeSelection: false,
|
|
20087
|
+
defaultColDef: {
|
|
20088
|
+
resizable: true,
|
|
20089
|
+
sortable: true,
|
|
20090
|
+
},
|
|
20091
|
+
rowDeselection: false,
|
|
20092
|
+
};
|
|
20093
|
+
if (this.data) {
|
|
20094
|
+
if (this.data.columnDefs)
|
|
20095
|
+
this.columnDefs = this.data.columnDefs;
|
|
20096
|
+
if (this.data.rowData)
|
|
20097
|
+
this.rowData = this.data.rowData;
|
|
20098
|
+
if (this.data.title)
|
|
20099
|
+
this.title = this.data.title;
|
|
20100
|
+
}
|
|
20101
|
+
}
|
|
20102
|
+
fh_win_grid_selection.prototype.ngAfterViewInit = function () {
|
|
20103
|
+
this.fitSizeAll();
|
|
20104
|
+
};
|
|
20105
|
+
fh_win_grid_selection.prototype.ck_sel = function () {
|
|
20106
|
+
if (!this.gridOptions.api)
|
|
20107
|
+
return true;
|
|
20108
|
+
return this.gridOptions.api.getSelectedRows().length == 0;
|
|
20109
|
+
};
|
|
20110
|
+
fh_win_grid_selection.prototype.onReady = function (a) {
|
|
20111
|
+
var _this = this;
|
|
20112
|
+
setTimeout(function () {
|
|
20113
|
+
if (_this.gridOptions.api)
|
|
20114
|
+
_this.gridOptions.api.selectAll();
|
|
20115
|
+
}, 100);
|
|
20116
|
+
};
|
|
20117
|
+
fh_win_grid_selection.prototype.autoSizeAll = function () {
|
|
20118
|
+
var _this = this;
|
|
20119
|
+
if (this.gridOptions == null)
|
|
20120
|
+
return;
|
|
20121
|
+
if (this.gridOptions.columnApi == null)
|
|
20122
|
+
return;
|
|
20123
|
+
var allColumnIds = [];
|
|
20124
|
+
this.columnDefs.forEach(function (columnDef) {
|
|
20125
|
+
allColumnIds.push(columnDef.field);
|
|
20126
|
+
});
|
|
20127
|
+
this.gridOptions.columnApi.autoSizeColumns(allColumnIds);
|
|
20128
|
+
if (this.gridOptions.columnApi.getColumnState().length > 0)
|
|
20129
|
+
if (this.gridOptions.columnApi.getColumnState()[0].width == 24) {
|
|
20130
|
+
setTimeout(function () {
|
|
20131
|
+
_this.autoSizeAll();
|
|
20132
|
+
}, 300);
|
|
20133
|
+
return;
|
|
20134
|
+
}
|
|
20135
|
+
};
|
|
20136
|
+
fh_win_grid_selection.prototype.fitSizeAll = function () {
|
|
20137
|
+
this.gridOptions.api.sizeColumnsToFit();
|
|
20138
|
+
};
|
|
20139
|
+
fh_win_grid_selection.prototype.ie = function () { };
|
|
20140
|
+
fh_win_grid_selection.prototype.ok = function () { this.dialogRef.close(this.gridOptions.api.getSelectedRows()); };
|
|
20141
|
+
return fh_win_grid_selection;
|
|
20142
|
+
}());
|
|
20143
|
+
fh_win_grid_selection.decorators = [
|
|
20144
|
+
{ type: i0.Component, args: [{
|
|
20145
|
+
providers: [FHCurrencyPipe],
|
|
20146
|
+
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 "
|
|
20147
|
+
},] }
|
|
20148
|
+
];
|
|
20149
|
+
fh_win_grid_selection.ctorParameters = function () { return [
|
|
20150
|
+
{ type: dialog.MatDialogRef },
|
|
20151
|
+
{ type: AppService },
|
|
20152
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
20153
|
+
]; };
|
|
20154
|
+
fh_win_grid_selection.propDecorators = {
|
|
20155
|
+
dtm: [{ type: i0.ViewChild, args: ["dtm",] }]
|
|
20156
|
+
};
|
|
20157
|
+
|
|
20076
20158
|
var FluxhubLibModule = /** @class */ (function () {
|
|
20077
20159
|
function FluxhubLibModule() {
|
|
20078
20160
|
}
|
|
@@ -20206,6 +20288,7 @@
|
|
|
20206
20288
|
wkf_header_bar,
|
|
20207
20289
|
fh_win_list,
|
|
20208
20290
|
fh_win_wait,
|
|
20291
|
+
fh_win_grid_selection,
|
|
20209
20292
|
FHUserFieldComponent,
|
|
20210
20293
|
FHGridJSONComponent,
|
|
20211
20294
|
win_salva_annulla,
|
|
@@ -20274,6 +20357,7 @@
|
|
|
20274
20357
|
FHNumericFieldComponent,
|
|
20275
20358
|
fh_win_list,
|
|
20276
20359
|
fh_win_wait,
|
|
20360
|
+
fh_win_grid_selection,
|
|
20277
20361
|
FHUserFieldComponent,
|
|
20278
20362
|
win_salva_annulla,
|
|
20279
20363
|
win_assegna,
|
|
@@ -26865,6 +26949,7 @@
|
|
|
26865
26949
|
exports.fh_win_auto_complete = fh_win_auto_complete;
|
|
26866
26950
|
exports.fh_win_combo = fh_win_combo;
|
|
26867
26951
|
exports.fh_win_confirm = fh_win_confirm;
|
|
26952
|
+
exports.fh_win_grid_selection = fh_win_grid_selection;
|
|
26868
26953
|
exports.fh_win_list = fh_win_list;
|
|
26869
26954
|
exports.fh_win_mappa = fh_win_mappa;
|
|
26870
26955
|
exports.fh_win_output = fh_win_output;
|