@fluxhub/fluxhub-lib 1.0.222 → 1.0.224
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 +45 -21
- 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 -16
- package/docs/components/FHGridJSONComponent.html +1 -109
- package/docs/coverage.html +1 -1
- package/docs/injectables/LocalDBService.html +32 -2
- package/docs/js/menu-wc.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhgrid.js +2 -9
- 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 +31 -12
- 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 +35 -12
- package/fesm2015/fluxhub-fluxhub-lib.js +35 -25
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +39 -18
- 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 +2 -2
- 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,
|
|
37
|
+
import { Injectable, Directive, Inject, PLATFORM_ID, Component, Input, ViewChild, Output, EventEmitter, 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
|
|
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
|
/**
|
|
@@ -12304,21 +12316,33 @@ var LocalDBService = /** @class */ (function () {
|
|
|
12304
12316
|
* @param {?} k
|
|
12305
12317
|
* @param {?} obj
|
|
12306
12318
|
* @param {?=} crypt
|
|
12319
|
+
* @param {?=} json_format
|
|
12307
12320
|
* @return {?}
|
|
12308
12321
|
*/
|
|
12309
12322
|
LocalDBService.prototype.write = /**
|
|
12310
12323
|
* @param {?} k
|
|
12311
12324
|
* @param {?} obj
|
|
12312
12325
|
* @param {?=} crypt
|
|
12326
|
+
* @param {?=} json_format
|
|
12313
12327
|
* @return {?}
|
|
12314
12328
|
*/
|
|
12315
|
-
function (k, obj, crypt) {
|
|
12329
|
+
function (k, obj, crypt, json_format) {
|
|
12316
12330
|
if (crypt === void 0) { crypt = true; }
|
|
12317
|
-
if (
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
|
|
12321
|
-
|
|
12331
|
+
if (json_format === void 0) { json_format = true; }
|
|
12332
|
+
if (crypt) {
|
|
12333
|
+
if (json_format)
|
|
12334
|
+
this.ngf.setItem(k, this.uti.encrypt_v2(encodeURIComponent(JSON.stringify(obj)))).then(function (dt) {
|
|
12335
|
+
});
|
|
12336
|
+
else
|
|
12337
|
+
this.ngf.setItem(k, this.uti.encrypt_v2((obj))).then(function (dt) {
|
|
12338
|
+
});
|
|
12339
|
+
}
|
|
12340
|
+
else {
|
|
12341
|
+
if (json_format)
|
|
12342
|
+
this.ngf.setItem(k, encodeURIComponent(JSON.stringify(obj)));
|
|
12343
|
+
else
|
|
12344
|
+
this.ngf.setItem(k, (obj));
|
|
12345
|
+
}
|
|
12322
12346
|
};
|
|
12323
12347
|
/**
|
|
12324
12348
|
* @param {?} k
|
|
@@ -12393,9 +12417,7 @@ var FHGridJSONComponent = /** @class */ (function () {
|
|
|
12393
12417
|
this.curr_config = '-1';
|
|
12394
12418
|
this.init_end = new EventEmitter();
|
|
12395
12419
|
this.off_set = 0;
|
|
12396
|
-
this.first_ref = true;
|
|
12397
12420
|
this.b_restored = false;
|
|
12398
|
-
this.str_curr_q_p = "";
|
|
12399
12421
|
this.gridOptions = (/** @type {?} */ ({
|
|
12400
12422
|
debug: false,
|
|
12401
12423
|
headerHeight: this.header_h,
|
|
@@ -12408,7 +12430,7 @@ var FHGridJSONComponent = /** @class */ (function () {
|
|
|
12408
12430
|
rowDeselection: false,
|
|
12409
12431
|
getContextMenuItems: function () { return _this.getContextMenuItems(); },
|
|
12410
12432
|
allowContextMenuWithControlKey: true,
|
|
12411
|
-
rowModelType: '
|
|
12433
|
+
rowModelType: 'clientSide',
|
|
12412
12434
|
localeText: {
|
|
12413
12435
|
// for filter panel
|
|
12414
12436
|
page: 'pagina',
|
|
@@ -12660,7 +12682,6 @@ var FHGridJSONComponent = /** @class */ (function () {
|
|
|
12660
12682
|
_this.errorMsg = data.msg;
|
|
12661
12683
|
}
|
|
12662
12684
|
}, function (err) {
|
|
12663
|
-
_this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
|
|
12664
12685
|
});
|
|
12665
12686
|
}
|
|
12666
12687
|
});
|
|
@@ -15985,7 +16006,7 @@ var FluxhubLibModule = /** @class */ (function () {
|
|
|
15985
16006
|
AgmCoreModule.forRoot({
|
|
15986
16007
|
apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
|
|
15987
16008
|
}),
|
|
15988
|
-
FlexLayoutModule, MarkdownModule, CKEditorModule],
|
|
16009
|
+
FlexLayoutModule, MarkdownModule, CKEditorModule, ImageViewerModule.forRoot()],
|
|
15989
16010
|
exports: [WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
|
|
15990
16011
|
FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
|
|
15991
16012
|
FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
|