@fluxhub/fluxhub-lib 1.0.221 → 1.0.223
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 +25 -15
- 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/docs/components/FHGridComponent.html +2 -2
- package/docs/components/FHGridJSONComponent.html +1 -109
- package/docs/coverage.html +1 -1
- package/docs/injectables/LocalDBService.html +16 -1
- package/docs/js/menu-wc.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhgrid.js +2 -2
- package/esm2015/lib/controls/fhgrid_json.js +2 -11
- package/esm2015/lib/fluxhub-lib.module.js +3 -2
- package/esm2015/lib/services/localstorage.service.js +15 -6
- package/esm5/lib/controls/fhgrid.js +2 -2
- package/esm5/lib/controls/fhgrid_json.js +2 -11
- package/esm5/lib/fluxhub-lib.module.js +3 -2
- package/esm5/lib/services/localstorage.service.js +17 -6
- package/fesm2015/fluxhub-fluxhub-lib.js +19 -12
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +21 -12
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgrid_json.d.ts +0 -3
- package/lib/services/localstorage.service.d.ts +1 -1
- package/package.json +4 -3
|
@@ -32,8 +32,9 @@ import { Driver, NgForageCache, NgForage } from 'ngforage';
|
|
|
32
32
|
import { TranslateModule } from '@ngx-translate/core';
|
|
33
33
|
import { DragulaService, DragulaModule } from 'ng2-dragula';
|
|
34
34
|
import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
|
|
35
|
+
import { ImageViewerModule } from 'ngx-image-viewer';
|
|
35
36
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
36
|
-
import { Injectable, Component, Directive, Inject, PLATFORM_ID, Input, Output, EventEmitter, ViewChild, forwardRef, Pipe, ViewContainerRef, ElementRef, defineInjectable, inject,
|
|
37
|
+
import { Injectable, Component, Directive, Inject, PLATFORM_ID, Input, Output, EventEmitter, ViewChild, forwardRef, Pipe, ViewContainerRef, ElementRef, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
|
|
37
38
|
import { Http } from '@angular/http';
|
|
38
39
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
39
40
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -7307,7 +7308,7 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
7307
7308
|
{ type: Component, args: [{
|
|
7308
7309
|
selector: 'FHGrid',
|
|
7309
7310
|
template: "\r\n<div fxLayout=\"column\" fxFlexFill>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"3px\" style=\"min-height: 55px\" [hidden]=\"!show_buttons\">\r\n \r\n <div>\r\n\t\t \t\t<h5>{{num_r}} {{label_elementi}}</h5>\r\n </div>\r\n \r\n\r\n\t\t\t<div>\t<input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\r\n\t\t\t\t\t\t\t style=\"min-width:100px;max-width:180px;border:1px solid;min-height:30px\"></div>\r\n <div matTooltip=\"REMOVE FILTER\" matTooltipPosition=\"above\" *ngIf=\"show_pulisci_filtri\" >\r\n \t\t\t<button mat-raised-button (click)=\"pulisci_filtri()\" color=\"warn\">\r\n\t\t\t\t<mat-icon>filter_none</mat-icon> \r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n \t\t\t<button mat-raised-button (click)=\"autoSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>compare_arrows</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n\t \t\t<button mat-raised-button (click)=\"fitSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>keyboard_tab</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n\r\n <FHComboBox fxHide fxShow.gt-sm [hidden]='!show_buttons' (selchange)=\"ch_config()\" (fillend)=\"fe_cfg()\" #gf init_fill=\"false\"></FHComboBox>\r\n\t\t\t\t<div matTooltip=\"Modifica Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n\t\t\t\t\t<button mat-icon-button *ngIf=\"show_buttons\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"color:rgb(248, 105, 10)\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div fxHide fxShow.gt-sm matTooltip=\"Crea Nuova Preferenza\" matTooltipPosition=\"above\">\r\n\t\t\t\t\t<button mat-icon-button style=\"color:rgb(16, 98, 16)\" *ngIf=\"show_buttons\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\r\n <mat-slide-toggle fxHide fxShow.gt-sm [hidden]='!show_buttons' (click)=\"ck_flag()\" #toggle_mantieni>\r\n\t\t\t\t\t{{mantieni_impostazioni}}\r\n\t\t\t\t</mat-slide-toggle>\r\n\r\n\r\n \t \t<div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button mat-raised-button (click)=\"help_window()\" color=\"primary\" *ngIf=\"show_buttons && show_help\" >\r\n\t\t\t<mat-icon>help</mat-icon>\r\n </button></div>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" fxFlex>\r\n <FHGridToolBar (command)=\"docmd($event)\" [type]=\"toolbar_type\"\r\n\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n\r\n ></FHGridToolBar>\r\n\t\t</div>\r\n\r\n\r\n</div>\r\n\r\n <div fxLayout=\"row\" style=\"width:100%\" fxFlex=\"95\">\r\n<ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n\t\t\t\t\t\t\t\t (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n\t\t\t\t\t\t\t\t [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n\r\n\t\t\t\t\t\t\t\t class=\"ag-theme-balham\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n\t\t\t\t\t\t\t\t [rowData]=\"rowData\"\r\n\t\t\t\t\t\t\t\t (afterFilterChanged)=\"onAfterFilterChanged()\"\r\n (filterModified)=\"onFilterModified()\"\r\n\t\t\t\t\t\t\t\t (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n\t\t\t\t\t\t\t\t (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n\t\t\t\t\t\t\t\t (sortChanged)=\"onAfterSortChanged()\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\">\r\n</ag-grid-angular>\r\n</div>\r\n</div>\r\n",
|
|
7310
|
-
styles: ["\n\n\t"]
|
|
7311
|
+
styles: ["\n \n\t"]
|
|
7311
7312
|
}] }
|
|
7312
7313
|
];
|
|
7313
7314
|
/** @nocollapse */
|
|
@@ -12268,26 +12269,37 @@ var LocalDBService = /** @class */ (function () {
|
|
|
12268
12269
|
* @template T
|
|
12269
12270
|
* @param {?} key
|
|
12270
12271
|
* @param {?=} crypt
|
|
12272
|
+
* @param {?=} json_format
|
|
12271
12273
|
* @return {?}
|
|
12272
12274
|
*/
|
|
12273
12275
|
LocalDBService.prototype.read = /**
|
|
12274
12276
|
* @template T
|
|
12275
12277
|
* @param {?} key
|
|
12276
12278
|
* @param {?=} crypt
|
|
12279
|
+
* @param {?=} json_format
|
|
12277
12280
|
* @return {?}
|
|
12278
12281
|
*/
|
|
12279
|
-
function (key, crypt) {
|
|
12282
|
+
function (key, crypt, json_format) {
|
|
12280
12283
|
var _this = this;
|
|
12281
12284
|
if (crypt === void 0) { crypt = true; }
|
|
12285
|
+
if (json_format === void 0) { json_format = true; }
|
|
12282
12286
|
return this.ngf.getItem(key)
|
|
12283
12287
|
.then(function (r) {
|
|
12284
12288
|
if (r == null) {
|
|
12285
12289
|
return null;
|
|
12286
12290
|
}
|
|
12287
|
-
if (crypt)
|
|
12288
|
-
|
|
12289
|
-
|
|
12290
|
-
|
|
12291
|
+
if (crypt) {
|
|
12292
|
+
if (json_format)
|
|
12293
|
+
return JSON.parse(_this.uti.decrypt_v2(r));
|
|
12294
|
+
else
|
|
12295
|
+
return (_this.uti.decrypt_v2(r));
|
|
12296
|
+
}
|
|
12297
|
+
else {
|
|
12298
|
+
if (json_format)
|
|
12299
|
+
return JSON.parse('' + r);
|
|
12300
|
+
else
|
|
12301
|
+
return ('' + r);
|
|
12302
|
+
}
|
|
12291
12303
|
});
|
|
12292
12304
|
};
|
|
12293
12305
|
/**
|
|
@@ -12393,9 +12405,7 @@ var FHGridJSONComponent = /** @class */ (function () {
|
|
|
12393
12405
|
this.curr_config = '-1';
|
|
12394
12406
|
this.init_end = new EventEmitter();
|
|
12395
12407
|
this.off_set = 0;
|
|
12396
|
-
this.first_ref = true;
|
|
12397
12408
|
this.b_restored = false;
|
|
12398
|
-
this.str_curr_q_p = "";
|
|
12399
12409
|
this.gridOptions = (/** @type {?} */ ({
|
|
12400
12410
|
debug: false,
|
|
12401
12411
|
headerHeight: this.header_h,
|
|
@@ -12408,7 +12418,7 @@ var FHGridJSONComponent = /** @class */ (function () {
|
|
|
12408
12418
|
rowDeselection: false,
|
|
12409
12419
|
getContextMenuItems: function () { return _this.getContextMenuItems(); },
|
|
12410
12420
|
allowContextMenuWithControlKey: true,
|
|
12411
|
-
rowModelType: '
|
|
12421
|
+
rowModelType: 'clientSide',
|
|
12412
12422
|
localeText: {
|
|
12413
12423
|
// for filter panel
|
|
12414
12424
|
page: 'pagina',
|
|
@@ -12660,7 +12670,6 @@ var FHGridJSONComponent = /** @class */ (function () {
|
|
|
12660
12670
|
_this.errorMsg = data.msg;
|
|
12661
12671
|
}
|
|
12662
12672
|
}, function (err) {
|
|
12663
|
-
_this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
|
|
12664
12673
|
});
|
|
12665
12674
|
}
|
|
12666
12675
|
});
|
|
@@ -15985,7 +15994,7 @@ var FluxhubLibModule = /** @class */ (function () {
|
|
|
15985
15994
|
AgmCoreModule.forRoot({
|
|
15986
15995
|
apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
|
|
15987
15996
|
}),
|
|
15988
|
-
FlexLayoutModule, MarkdownModule, CKEditorModule],
|
|
15997
|
+
FlexLayoutModule, MarkdownModule, CKEditorModule, ImageViewerModule.forRoot()],
|
|
15989
15998
|
exports: [WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
15990
15999
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
|
|
15991
16000
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|