@fluxhub/fluxhub-lib 10.0.231 → 10.0.233
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 +13 -10
- 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/fhgrid.js +11 -8
- package/esm2015/lib/controls/fhgrid_json.js +4 -4
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -10
- 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,7 +5900,7 @@
|
|
|
5900
5900
|
var _this = this;
|
|
5901
5901
|
this.header_h = n;
|
|
5902
5902
|
this.gridOptions.api.setHeaderHeight(this.header_h);
|
|
5903
|
-
if (!this.
|
|
5903
|
+
if (!this.enable_copy) {
|
|
5904
5904
|
this.gridOptions.sendToClipboard = function (v) {
|
|
5905
5905
|
_this.clipboard.copy(v.data);
|
|
5906
5906
|
if (_this.last_copy == v.data)
|
|
@@ -6270,7 +6270,10 @@
|
|
|
6270
6270
|
setTimeout(function () { _this.set_init_size(); }, 500);
|
|
6271
6271
|
return;
|
|
6272
6272
|
}
|
|
6273
|
-
this.
|
|
6273
|
+
if (this.columnDefs.length <= 6)
|
|
6274
|
+
this.fitSizeAll();
|
|
6275
|
+
else
|
|
6276
|
+
this.autoSizeAll();
|
|
6274
6277
|
};
|
|
6275
6278
|
FHGridComponent.prototype.res_columns = function (forza) {
|
|
6276
6279
|
var _this = this;
|
|
@@ -6651,7 +6654,7 @@
|
|
|
6651
6654
|
FHGridComponent.decorators = [
|
|
6652
6655
|
{ type: i0.Component, args: [{
|
|
6653
6656
|
selector: "FHGrid",
|
|
6654
|
-
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=\"
|
|
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=\"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",
|
|
6655
6658
|
styles: [""]
|
|
6656
6659
|
},] }
|
|
6657
6660
|
];
|
|
@@ -6680,7 +6683,7 @@
|
|
|
6680
6683
|
enabled: [{ type: i0.Input }],
|
|
6681
6684
|
auto_load: [{ type: i0.Input }],
|
|
6682
6685
|
auto_height: [{ type: i0.Input }],
|
|
6683
|
-
|
|
6686
|
+
enable_export: [{ type: i0.Input }],
|
|
6684
6687
|
enabled_pag: [{ type: i0.Input }],
|
|
6685
6688
|
show_help: [{ type: i0.Input }],
|
|
6686
6689
|
show_num_elem: [{ type: i0.Input }],
|
|
@@ -6690,7 +6693,7 @@
|
|
|
6690
6693
|
init_fill: [{ type: i0.Input }],
|
|
6691
6694
|
no_pref: [{ type: i0.Input }],
|
|
6692
6695
|
pref_hidden: [{ type: i0.Input }],
|
|
6693
|
-
|
|
6696
|
+
enable_copy: [{ type: i0.Input }],
|
|
6694
6697
|
full_text_added_columns: [{ type: i0.Input }],
|
|
6695
6698
|
autosize_at_ini: [{ type: i0.Input }],
|
|
6696
6699
|
label_elementi: [{ type: i0.Input }],
|
|
@@ -10949,7 +10952,7 @@
|
|
|
10949
10952
|
this.fields = "*";
|
|
10950
10953
|
this.filters = "1=1";
|
|
10951
10954
|
this.auto_height = false;
|
|
10952
|
-
this.
|
|
10955
|
+
this.enable_export = true;
|
|
10953
10956
|
this.enabled_pag = true;
|
|
10954
10957
|
this.show_help = true;
|
|
10955
10958
|
this.show_num_elem = true;
|
|
@@ -11300,7 +11303,7 @@
|
|
|
11300
11303
|
},
|
|
11301
11304
|
},
|
|
11302
11305
|
];
|
|
11303
|
-
if (!this.
|
|
11306
|
+
if (!this.enable_export)
|
|
11304
11307
|
result = new Array("autoSizeAll", "expandAll", "contractAll", "copy", "copyWithHeaders", "paste",
|
|
11305
11308
|
// 'resetColumns',
|
|
11306
11309
|
"toolPanel");
|
|
@@ -11839,7 +11842,7 @@
|
|
|
11839
11842
|
fields: [{ type: i0.Input }],
|
|
11840
11843
|
filters: [{ type: i0.Input }],
|
|
11841
11844
|
auto_height: [{ type: i0.Input }],
|
|
11842
|
-
|
|
11845
|
+
enable_export: [{ type: i0.Input }],
|
|
11843
11846
|
enabled_pag: [{ type: i0.Input }],
|
|
11844
11847
|
show_help: [{ type: i0.Input }],
|
|
11845
11848
|
show_num_elem: [{ type: i0.Input }],
|