@fluxhub/fluxhub-lib 1.0.223 → 1.0.225

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.
@@ -34,7 +34,7 @@ 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
35
  import { ImageViewerModule } from 'ngx-image-viewer';
36
36
  import { ActivatedRoute, Router } from '@angular/router';
37
- import { Injectable, Component, Directive, Inject, PLATFORM_ID, Input, Output, EventEmitter, ViewChild, forwardRef, Pipe, ViewContainerRef, ElementRef, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
37
+ import { Injectable, Component, Directive, Inject, PLATFORM_ID, Input, Output, EventEmitter, ViewChild, forwardRef, Pipe, ViewContainerRef, ElementRef, defineInjectable, HostListener, inject, NgModule } from '@angular/core';
38
38
  import { Http } from '@angular/http';
39
39
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
40
40
  import { ToastrService } from 'ngx-toastr';
@@ -12316,21 +12316,33 @@ var LocalDBService = /** @class */ (function () {
12316
12316
  * @param {?} k
12317
12317
  * @param {?} obj
12318
12318
  * @param {?=} crypt
12319
+ * @param {?=} json_format
12319
12320
  * @return {?}
12320
12321
  */
12321
12322
  LocalDBService.prototype.write = /**
12322
12323
  * @param {?} k
12323
12324
  * @param {?} obj
12324
12325
  * @param {?=} crypt
12326
+ * @param {?=} json_format
12325
12327
  * @return {?}
12326
12328
  */
12327
- function (k, obj, crypt) {
12329
+ function (k, obj, crypt, json_format) {
12328
12330
  if (crypt === void 0) { crypt = true; }
12329
- if (crypt)
12330
- this.ngf.setItem(k, this.uti.encrypt_v2(JSON.stringify(obj))).then(function (dt) {
12331
- });
12332
- else
12333
- this.ngf.setItem(k, JSON.stringify(obj));
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((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, (JSON.stringify(obj)));
12343
+ else
12344
+ this.ngf.setItem(k, (obj));
12345
+ }
12334
12346
  };
12335
12347
  /**
12336
12348
  * @param {?} k