@fluxhub/fluxhub-lib 11.0.113 → 11.0.115
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 +87 -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/fhtextinput.js +2 -2
- package/esm2015/lib/controls/win_grid_selection.js +144 -0
- package/esm2015/lib/fluxhub-lib.module.js +4 -1
- package/esm2015/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +143 -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 +23 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -9365,7 +9365,7 @@
|
|
|
9365
9365
|
{ type: i0.Component, args: [{
|
|
9366
9366
|
selector: "FHTextInput",
|
|
9367
9367
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4],
|
|
9368
|
-
template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n ><mat-label>{{ label }}</mat-label>\n <input\n matInput\n [email]=\"email\"\n type=\"text\"\n [(ngModel)]=\"text_v\"\n #el\n [disabled]=\"!enabled\"\n [required]=\"required\"\n (focusout)=\"onFu()\"\n (focusin)=\"onFi()\"\n (ngModelChange)=\"modelch()\"\n [autocomplete]=\"autocomplete\"\n [maxlength]=\"maxlength\"\n [type]=\"type\"\n />\n <mat-hint [hidden]=\"hint==''\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"error
|
|
9368
|
+
template: "\n <mat-form-field [hidden]=\"hidden\" appearance=\"outline\" floatLabel=\"always\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n ><mat-label>{{ label }}</mat-label>\n <input\n matInput\n [email]=\"email\"\n type=\"text\"\n [(ngModel)]=\"text_v\"\n #el\n [disabled]=\"!enabled\"\n [required]=\"required\"\n (focusout)=\"onFu()\"\n (focusin)=\"onFi()\"\n (ngModelChange)=\"modelch()\"\n [autocomplete]=\"autocomplete\"\n [maxlength]=\"maxlength\"\n [type]=\"type\"\n />\n <mat-hint [hidden]=\"hint==''\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"error!=null\">{{ error }}</mat-error>\n </mat-form-field>\n ",
|
|
9369
9369
|
styles: [""]
|
|
9370
9370
|
},] }
|
|
9371
9371
|
];
|
|
@@ -20073,6 +20073,89 @@
|
|
|
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
|
+
var _a, _b;
|
|
20138
|
+
(_b = (_a = this.gridOptions) === null || _a === void 0 ? void 0 : _a.api) === null || _b === void 0 ? void 0 : _b.sizeColumnsToFit();
|
|
20139
|
+
};
|
|
20140
|
+
fh_win_grid_selection.prototype.ie = function () { };
|
|
20141
|
+
fh_win_grid_selection.prototype.ok = function () { var _a; this.dialogRef.close((_a = this.gridOptions.api) === null || _a === void 0 ? void 0 : _a.getSelectedRows()); };
|
|
20142
|
+
return fh_win_grid_selection;
|
|
20143
|
+
}());
|
|
20144
|
+
fh_win_grid_selection.decorators = [
|
|
20145
|
+
{ type: i0.Component, args: [{
|
|
20146
|
+
providers: [FHCurrencyPipe],
|
|
20147
|
+
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 "
|
|
20148
|
+
},] }
|
|
20149
|
+
];
|
|
20150
|
+
fh_win_grid_selection.ctorParameters = function () { return [
|
|
20151
|
+
{ type: dialog.MatDialogRef },
|
|
20152
|
+
{ type: AppService },
|
|
20153
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
20154
|
+
]; };
|
|
20155
|
+
fh_win_grid_selection.propDecorators = {
|
|
20156
|
+
dtm: [{ type: i0.ViewChild, args: ["dtm",] }]
|
|
20157
|
+
};
|
|
20158
|
+
|
|
20076
20159
|
var FluxhubLibModule = /** @class */ (function () {
|
|
20077
20160
|
function FluxhubLibModule() {
|
|
20078
20161
|
}
|
|
@@ -20206,6 +20289,7 @@
|
|
|
20206
20289
|
wkf_header_bar,
|
|
20207
20290
|
fh_win_list,
|
|
20208
20291
|
fh_win_wait,
|
|
20292
|
+
fh_win_grid_selection,
|
|
20209
20293
|
FHUserFieldComponent,
|
|
20210
20294
|
FHGridJSONComponent,
|
|
20211
20295
|
win_salva_annulla,
|
|
@@ -20274,6 +20358,7 @@
|
|
|
20274
20358
|
FHNumericFieldComponent,
|
|
20275
20359
|
fh_win_list,
|
|
20276
20360
|
fh_win_wait,
|
|
20361
|
+
fh_win_grid_selection,
|
|
20277
20362
|
FHUserFieldComponent,
|
|
20278
20363
|
win_salva_annulla,
|
|
20279
20364
|
win_assegna,
|
|
@@ -26865,6 +26950,7 @@
|
|
|
26865
26950
|
exports.fh_win_auto_complete = fh_win_auto_complete;
|
|
26866
26951
|
exports.fh_win_combo = fh_win_combo;
|
|
26867
26952
|
exports.fh_win_confirm = fh_win_confirm;
|
|
26953
|
+
exports.fh_win_grid_selection = fh_win_grid_selection;
|
|
26868
26954
|
exports.fh_win_list = fh_win_list;
|
|
26869
26955
|
exports.fh_win_mappa = fh_win_mappa;
|
|
26870
26956
|
exports.fh_win_output = fh_win_output;
|