@fluxhub/fluxhub-lib 10.0.232 → 10.0.234
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 -10
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid.js +9 -9
- package/esm2015/lib/controls/fhgrid_json.js +4 -4
- package/fesm2015/fluxhub-fluxhub-lib.js +11 -11
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgrid.d.ts +2 -2
- package/lib/controls/fhgrid_json.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5062,7 +5062,7 @@
|
|
|
5062
5062
|
this.enabled = true;
|
|
5063
5063
|
this.auto_load = true;
|
|
5064
5064
|
this.auto_height = false;
|
|
5065
|
-
this.
|
|
5065
|
+
this.enable_export = true;
|
|
5066
5066
|
this.enabled_pag = true;
|
|
5067
5067
|
this.show_help = true;
|
|
5068
5068
|
this.show_num_elem = true;
|
|
@@ -5072,7 +5072,7 @@
|
|
|
5072
5072
|
this.init_fill = true;
|
|
5073
5073
|
this.no_pref = false;
|
|
5074
5074
|
this.pref_hidden = true;
|
|
5075
|
-
this.
|
|
5075
|
+
this.enable_copy = true;
|
|
5076
5076
|
this.autosize_at_ini = true;
|
|
5077
5077
|
this.label_elementi = " Elementi";
|
|
5078
5078
|
this.trova_label = "TROVA";
|
|
@@ -5900,8 +5900,10 @@
|
|
|
5900
5900
|
var _this = this;
|
|
5901
5901
|
this.header_h = n;
|
|
5902
5902
|
this.gridOptions.api.setHeaderHeight(this.header_h);
|
|
5903
|
-
|
|
5903
|
+
console.log('setHeaderHeight ', this.enable_copy);
|
|
5904
|
+
if (!this.enable_copy) {
|
|
5904
5905
|
this.gridOptions.sendToClipboard = function (v) {
|
|
5906
|
+
console.log('sendToClipboard |!!!!!!');
|
|
5905
5907
|
_this.clipboard.copy(v.data);
|
|
5906
5908
|
if (_this.last_copy == v.data)
|
|
5907
5909
|
return;
|
|
@@ -6462,7 +6464,6 @@
|
|
|
6462
6464
|
return;
|
|
6463
6465
|
var ss = "";
|
|
6464
6466
|
var _loop_2 = function (i) {
|
|
6465
|
-
console.log('CALCOLO ', arr_F[i]);
|
|
6466
6467
|
var ss_r = "";
|
|
6467
6468
|
for (var y = 0; y < this_2.columnDefs.length; y++) {
|
|
6468
6469
|
if (this_2.columnDefs[y] != null)
|
|
@@ -6654,7 +6655,7 @@
|
|
|
6654
6655
|
FHGridComponent.decorators = [
|
|
6655
6656
|
{ type: i0.Component, args: [{
|
|
6656
6657
|
selector: "FHGrid",
|
|
6657
|
-
template: "<div fxLayout=\"column\" fxFlexFill>\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutAlign=\"center start\"\n fxLayoutGap=\"3px\"\n style=\"min-height: 55px;\"\n [hidden]=\"!show_buttons\"\n >\n \n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\n <div>\n <h5>{{num_r}} {{label_elementi}}</h5>\n </div>\n \n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <input\n matInput\n [placeholder]=\"trova_label\"\n (keydown)=\"keyDownFunctioncl($event)\"\n [(ngModel)]=\"ric_libera\"\n style=\"\n width: 200px;\n border: 1px solid;\n min-height: 30px;\n \"\n />\n </div>\n\n <div\n matTooltip=\"REMOVE FILTER\"\n matTooltipPosition=\"above\"\n *ngIf=\"show_pulisci_filtri || ric_libera!=''\"\n >\n <button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\n <mat-icon>filter_none</mat-icon> \n </button>\n </div>\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"autoSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>compare_arrows</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"fitSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>keyboard_tab</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"Refresh()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>autorenew</mat-icon>\n </button>\n </div>\n <FHFilterComboBox\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (selchange)=\"ch_config()\"\n (fillend)=\"fe_cfg()\"\n #gf\n init_fill=\"false\"\n ></FHFilterComboBox>\n <div\n matTooltip=\"Modifica Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"edit_config()\">save</mat-icon>\n </button>\n </div>\n <div\n matTooltip=\"Elimina Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\n </button>\n </div>\n <div\n fxHide\n fxShow.gt-sm\n matTooltip=\"Crea Nuova Preferenza\"\n matTooltipPosition=\"above\"\n >\n <button\n mat-icon-button\n style=\"color: rgb(16, 98, 16);\"\n *ngIf=\"show_buttons && !pref_hidden\"\n >\n <mat-icon (click)=\"insert_config()\">library_add</mat-icon>\n </button>\n </div>\n\n <mat-slide-toggle\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (click)=\"ck_flag()\"\n #toggle_mantieni\n >\n {{mantieni_impostazioni}}\n </mat-slide-toggle>\n\n \n <div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"help_window()\"\n color=\"primary\"\n *ngIf=\"show_buttons && show_help\"\n >\n <mat-icon>help</mat-icon>\n </button>\n </div>\n \n\n <img\n *ngIf=\"
|
|
6658
|
+
template: "<div fxLayout=\"column\" fxFlexFill>\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutAlign=\"center start\"\n fxLayoutGap=\"3px\"\n style=\"min-height: 55px;\"\n [hidden]=\"!show_buttons\"\n >\n \n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\n <div>\n <h5>{{num_r}} {{label_elementi}}</h5>\n </div>\n \n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <input\n matInput\n [placeholder]=\"trova_label\"\n (keydown)=\"keyDownFunctioncl($event)\"\n [(ngModel)]=\"ric_libera\"\n style=\"\n width: 200px;\n border: 1px solid;\n min-height: 30px;\n \"\n />\n </div>\n\n <div\n matTooltip=\"REMOVE FILTER\"\n matTooltipPosition=\"above\"\n *ngIf=\"show_pulisci_filtri || ric_libera!=''\"\n >\n <button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\n <mat-icon>filter_none</mat-icon> \n </button>\n </div>\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"autoSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>compare_arrows</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"fitSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>keyboard_tab</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"Refresh()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>autorenew</mat-icon>\n </button>\n </div>\n <FHFilterComboBox\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (selchange)=\"ch_config()\"\n (fillend)=\"fe_cfg()\"\n #gf\n init_fill=\"false\"\n ></FHFilterComboBox>\n <div\n matTooltip=\"Modifica Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"edit_config()\">save</mat-icon>\n </button>\n </div>\n <div\n matTooltip=\"Elimina Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\n </button>\n </div>\n <div\n fxHide\n fxShow.gt-sm\n matTooltip=\"Crea Nuova Preferenza\"\n matTooltipPosition=\"above\"\n >\n <button\n mat-icon-button\n style=\"color: rgb(16, 98, 16);\"\n *ngIf=\"show_buttons && !pref_hidden\"\n >\n <mat-icon (click)=\"insert_config()\">library_add</mat-icon>\n </button>\n </div>\n\n <mat-slide-toggle\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (click)=\"ck_flag()\"\n #toggle_mantieni\n >\n {{mantieni_impostazioni}}\n </mat-slide-toggle>\n\n \n <div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"help_window()\"\n color=\"primary\"\n *ngIf=\"show_buttons && show_help\"\n >\n <mat-icon>help</mat-icon>\n </button>\n </div>\n \n\n <img\n *ngIf=\"enable_export\"\n matTooltip=\"EXPORT PDF\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/pdf.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"print()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n\n <img *ngIf=\"enable_export\"\n matTooltip=\"EXPORT EXCEL\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/xlsx.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"export_excel()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n style=\"width: 100%;\"\n *ngIf=\"enabled\"\n >\n <FHGridToolBar\n (command)=\"docmd($event)\"\n [type]=\"toolbar_type\"\n [custom_commands]=\"toolbar_custom_commands\"\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\n ></FHGridToolBar>\n </div>\n </div>\n\n\n <div fxLayout=\"row\" style=\"width: 100%;\" [fxFlex]=\"show_buttons ? 100:95\">\n <ag-grid-angular\n ref-agGrid\n style=\"width: 100%; height: 100%;\"\n id=\"myGrid\"\n (cellDoubleClicked)=\"onColumnEvent($event)\"\n (cellClicked)=\"onCellClicked($event)\"\n [headerHeight]=\"header_h\"\n [groupHeaderHeight]=\"header_h\"\n class=\"ag-theme-balham\"\n [singleClickEdit]=\"true\"\n [gridOptions]=\"gridOptions\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\"\n [rowSelection]=\"selection_mode\"\n\n [getContextMenuItems]=\"enable_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\n (filterModified)=\"onFilterModified()\"\n (rowDoubleClicked)=\"onRowDClicked($event)\"\n (rowClicked)=\"onRowClicked($event)\"\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\n (columnResized)=\"oncolumnEverythingChanged($event)\"\n (columnMoved)=\"oncolumnEverythingChanged($event)\"\n (cellValueChanged)=\"okr($event)\"\n (sortChanged)=\"onAfterSortChanged()\"\n [paginationPageSize]=\"num_per_pag\"\n (gridReady)=\"onReady($event)\"\n >\n </ag-grid-angular>\n </div>\n</div>\n",
|
|
6658
6659
|
styles: [""]
|
|
6659
6660
|
},] }
|
|
6660
6661
|
];
|
|
@@ -6683,7 +6684,7 @@
|
|
|
6683
6684
|
enabled: [{ type: i0.Input }],
|
|
6684
6685
|
auto_load: [{ type: i0.Input }],
|
|
6685
6686
|
auto_height: [{ type: i0.Input }],
|
|
6686
|
-
|
|
6687
|
+
enable_export: [{ type: i0.Input }],
|
|
6687
6688
|
enabled_pag: [{ type: i0.Input }],
|
|
6688
6689
|
show_help: [{ type: i0.Input }],
|
|
6689
6690
|
show_num_elem: [{ type: i0.Input }],
|
|
@@ -6693,7 +6694,7 @@
|
|
|
6693
6694
|
init_fill: [{ type: i0.Input }],
|
|
6694
6695
|
no_pref: [{ type: i0.Input }],
|
|
6695
6696
|
pref_hidden: [{ type: i0.Input }],
|
|
6696
|
-
|
|
6697
|
+
enable_copy: [{ type: i0.Input }],
|
|
6697
6698
|
full_text_added_columns: [{ type: i0.Input }],
|
|
6698
6699
|
autosize_at_ini: [{ type: i0.Input }],
|
|
6699
6700
|
label_elementi: [{ type: i0.Input }],
|
|
@@ -10952,7 +10953,7 @@
|
|
|
10952
10953
|
this.fields = "*";
|
|
10953
10954
|
this.filters = "1=1";
|
|
10954
10955
|
this.auto_height = false;
|
|
10955
|
-
this.
|
|
10956
|
+
this.enable_export = true;
|
|
10956
10957
|
this.enabled_pag = true;
|
|
10957
10958
|
this.show_help = true;
|
|
10958
10959
|
this.show_num_elem = true;
|
|
@@ -11303,7 +11304,7 @@
|
|
|
11303
11304
|
},
|
|
11304
11305
|
},
|
|
11305
11306
|
];
|
|
11306
|
-
if (!this.
|
|
11307
|
+
if (!this.enable_export)
|
|
11307
11308
|
result = new Array("autoSizeAll", "expandAll", "contractAll", "copy", "copyWithHeaders", "paste",
|
|
11308
11309
|
// 'resetColumns',
|
|
11309
11310
|
"toolPanel");
|
|
@@ -11842,7 +11843,7 @@
|
|
|
11842
11843
|
fields: [{ type: i0.Input }],
|
|
11843
11844
|
filters: [{ type: i0.Input }],
|
|
11844
11845
|
auto_height: [{ type: i0.Input }],
|
|
11845
|
-
|
|
11846
|
+
enable_export: [{ type: i0.Input }],
|
|
11846
11847
|
enabled_pag: [{ type: i0.Input }],
|
|
11847
11848
|
show_help: [{ type: i0.Input }],
|
|
11848
11849
|
show_num_elem: [{ type: i0.Input }],
|