@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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +20 -6
- 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/injectables/LocalDBService.html +16 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/services/localstorage.service.js +17 -7
- package/esm5/lib/services/localstorage.service.js +19 -7
- package/fesm2015/fluxhub-fluxhub-lib.js +17 -7
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +19 -7
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/lib/services/localstorage.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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 (
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
-
|
|
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
|