@anglr/common 17.0.0-beta.20230711095959 → 17.0.0-beta.20230814105451
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/changelog.md +36 -2
- package/es2022/numeral/src/modules/numeral.module.js +4 -4
- package/es2022/numeral/src/modules/numeral.module.js.map +1 -1
- package/es2022/numeral/src/pipes/numeral.pipe.js +6 -6
- package/es2022/numeral/src/pipes/numeral.pipe.js.map +1 -1
- package/es2022/src/index.js +3 -1
- package/es2022/src/index.js.map +1 -1
- package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js +15 -15
- package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -1
- package/es2022/src/services/logger/logger.interface.js.map +1 -1
- package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js +22 -0
- package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js.map +1 -1
- package/es2022/src/services/permanentStorage/permanentStorage.interface.js.map +1 -1
- package/es2022/src/services/position/position.interface.js.map +1 -1
- package/es2022/src/services/stringLocalization/stringLocalization.interface.js.map +1 -1
- package/es2022/src/services/temporaryStorage/temporaryStorage.interface.js.map +1 -1
- package/es2022/src/types/providerDecoratedType.js +32 -0
- package/es2022/src/types/providerDecoratedType.js.map +1 -0
- package/es2022/src/types/providers.js +48 -0
- package/es2022/src/types/providers.js.map +1 -0
- package/es2022/store/src/index.js +1 -1
- package/es2022/store/src/index.js.map +1 -1
- package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js +21 -1
- package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js.map +1 -1
- package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +21 -0
- package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js.map +1 -1
- package/es2022/structured-log/src/index.js +1 -0
- package/es2022/structured-log/src/index.js.map +1 -1
- package/es2022/structured-log/src/misc/providers.js +12 -0
- package/es2022/structured-log/src/misc/providers.js.map +1 -0
- package/es2022/structured-log/src/modules/consoleLog.module.js +0 -15
- package/es2022/structured-log/src/modules/consoleLog.module.js.map +1 -1
- package/es2022/structured-log/src/services/logger.service.js +21 -0
- package/es2022/structured-log/src/services/logger.service.js.map +1 -1
- package/es2022/structured-log/src/types/tokens.js +0 -9
- package/es2022/structured-log/src/types/tokens.js.map +1 -1
- package/numeral/src/modules/numeral.module.d.ts +1 -1
- package/numeral/src/pipes/numeral.pipe.d.ts +3 -3
- package/numeral/src/pipes/numeral.pipe.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.d.ts +6 -4
- package/src/index.d.ts.map +1 -1
- package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts +10 -9
- package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts.map +1 -1
- package/src/services/logger/logger.interface.d.ts +6 -0
- package/src/services/logger/logger.interface.d.ts.map +1 -1
- package/src/services/permanentStorage/cookiePermanentStorage.service.d.ts +5 -1
- package/src/services/permanentStorage/cookiePermanentStorage.service.d.ts.map +1 -1
- package/src/services/permanentStorage/permanentStorage.interface.d.ts +6 -0
- package/src/services/permanentStorage/permanentStorage.interface.d.ts.map +1 -1
- package/src/services/position/position.interface.d.ts +6 -0
- package/src/services/position/position.interface.d.ts.map +1 -1
- package/src/services/stringLocalization/stringLocalization.interface.d.ts +6 -0
- package/src/services/stringLocalization/stringLocalization.interface.d.ts.map +1 -1
- package/src/services/temporaryStorage/temporaryStorage.interface.d.ts +6 -0
- package/src/services/temporaryStorage/temporaryStorage.interface.d.ts.map +1 -1
- package/src/types/providerDecoratedType.d.ts +12 -0
- package/src/types/providerDecoratedType.d.ts.map +1 -0
- package/src/types/providers.d.ts +32 -0
- package/src/types/providers.d.ts.map +1 -0
- package/store/src/index.d.ts +1 -1
- package/store/src/index.d.ts.map +1 -1
- package/store/src/services/permanentStorage/localPermanentStorage.service.d.ts +5 -1
- package/store/src/services/permanentStorage/localPermanentStorage.service.d.ts.map +1 -1
- package/store/src/services/temporaryStorage/sessionTemporaryStorage.service.d.ts +5 -1
- package/store/src/services/temporaryStorage/sessionTemporaryStorage.service.d.ts.map +1 -1
- package/structured-log/src/index.d.ts +1 -0
- package/structured-log/src/index.d.ts.map +1 -1
- package/structured-log/src/misc/providers.d.ts +6 -0
- package/structured-log/src/misc/providers.d.ts.map +1 -0
- package/structured-log/src/modules/consoleLog.module.d.ts +0 -5
- package/structured-log/src/modules/consoleLog.module.d.ts.map +1 -1
- package/structured-log/src/services/logger.service.d.ts +5 -1
- package/structured-log/src/services/logger.service.d.ts.map +1 -1
- package/structured-log/src/types/tokens.d.ts +0 -4
- package/structured-log/src/types/tokens.d.ts.map +1 -1
- package/version.bak +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
1
2
|
import { Injectable } from '@angular/core';
|
|
3
|
+
import { TEMPORARY_STORAGE, TypeProvider } from '@anglr/common';
|
|
2
4
|
import store from 'store/storages/sessionStorage';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
/**
|
|
@@ -35,4 +37,23 @@ export { SessionTemporaryStorageService };
|
|
|
35
37
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SessionTemporaryStorageService, decorators: [{
|
|
36
38
|
type: Injectable
|
|
37
39
|
}] });
|
|
40
|
+
/**
|
|
41
|
+
* Provider for temporary storage that is using session storage implementation
|
|
42
|
+
*/
|
|
43
|
+
const SESSION_TEMPORARY_STORAGE = {
|
|
44
|
+
provide: TEMPORARY_STORAGE,
|
|
45
|
+
useClass: SessionTemporaryStorageService
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Type that contains provider for session temporary storage when used with `provideTemporaryStorage`
|
|
49
|
+
*/
|
|
50
|
+
let SessionTemporaryStorageType = class SessionTemporaryStorageType {
|
|
51
|
+
};
|
|
52
|
+
SessionTemporaryStorageType = __decorate([
|
|
53
|
+
TypeProvider(SESSION_TEMPORARY_STORAGE)
|
|
54
|
+
], SessionTemporaryStorageType);
|
|
55
|
+
/**
|
|
56
|
+
* Sets temporary storage to use session temporary storage when used with `provideTemporaryStorage`
|
|
57
|
+
*/
|
|
58
|
+
export const SessionTemporaryStorage = SessionTemporaryStorageType;
|
|
38
59
|
//# sourceMappingURL=sessionTemporaryStorage.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionTemporaryStorage.service.js","sourceRoot":"","sources":["../../../../../store/src/services/temporaryStorage/sessionTemporaryStorage.service.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"sessionTemporaryStorage.service.js","sourceRoot":"","sources":["../../../../../store/src/services/temporaryStorage/sessionTemporaryStorage.service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAgB,UAAU,EAAW,MAAM,eAAe,CAAC;AAClE,OAAO,EAAC,iBAAiB,EAA0C,YAAY,EAAC,MAAM,eAAe,CAAC;AACtG,OAAO,KAAK,MAAM,+BAA+B,CAAC;;AAElD;;GAEG;AACH,MACa,8BAA8B;IAEvC,yGAAyG;IAEzG;;;OAGG;IACI,GAAG,CAAU,IAAY;QAE5B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAQ,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,IAAY,EAAE,KAAU;QAE/B,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,IAAY;QAEtB,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;uGA9BQ,8BAA8B;2GAA9B,8BAA8B;;SAA9B,8BAA8B;2FAA9B,8BAA8B;kBAD1C,UAAU;;AAkCX;;GAEG;AACH,MAAM,yBAAyB,GAE/B;IACI,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,8BAA8B;CAC3C,CAAC;AAEF;;GAEG;AAEH,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;CAEhC,CAAA;AAFK,2BAA2B;IADhC,YAAY,CAAC,yBAAyB,CAAC;GAClC,2BAA2B,CAEhC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAyB,2BAA2B,CAAC","sourcesContent":["import {ClassProvider, Injectable, Provider} from '@angular/core';\nimport {TEMPORARY_STORAGE, TemporaryStorage, TemporaryStorageType, TypeProvider} from '@anglr/common';\nimport store from 'store/storages/sessionStorage';\n\n/**\n * Implementation of temporary storage using SessionStorage\n */\n@Injectable()\nexport class SessionTemporaryStorageService implements TemporaryStorage\n{\n //######################### public methods - implementation of TemporaryStorage #########################\n\n /**\n * Gets value that was stored with 'name' from temporary storage\n * @param name - Name with which was value stored\n */\n public get<TResult>(name: string): TResult\n {\n return store.read(name) as any;\n }\n\n /**\n * Sets value that will be stored with 'name'e in temporary storage\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n */\n public set(name: string, value: any): void\n {\n store.write(name, value);\n }\n\n /**\n * Removes value stored with 'name' from temporary storage\n * @param name - Name of stored value that will be removed\n */\n public remove(name: string): void\n {\n store.remove(name);\n }\n}\n\n/**\n * Provider for temporary storage that is using session storage implementation\n */\nconst SESSION_TEMPORARY_STORAGE: Provider =\n<ClassProvider>\n{\n provide: TEMPORARY_STORAGE,\n useClass: SessionTemporaryStorageService\n};\n\n/**\n * Type that contains provider for session temporary storage when used with `provideTemporaryStorage`\n */\n@TypeProvider(SESSION_TEMPORARY_STORAGE)\nclass SessionTemporaryStorageType\n{\n}\n\n/**\n * Sets temporary storage to use session temporary storage when used with `provideTemporaryStorage`\n */\nexport const SessionTemporaryStorage: TemporaryStorageType = SessionTemporaryStorageType;"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './components/console/console.component.animations';
|
|
2
2
|
export * from './components/console/console.component';
|
|
3
3
|
export * from './modules/consoleLog.module';
|
|
4
|
+
export * from './misc/providers';
|
|
4
5
|
export * from './misc/utils';
|
|
5
6
|
export * from './types/tokens';
|
|
6
7
|
export * from './types/logger.interface';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../structured-log/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iDAAiD,CAAC;AAChE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0DAA0D,CAAC;AACzE,cAAc,0DAA0D,CAAC","sourcesContent":["export * from './components/console/console.component.animations';\nexport * from './components/console/console.component';\nexport * from './modules/consoleLog.module';\nexport * from './misc/utils';\nexport * from './types/tokens';\nexport * from './types/logger.interface';\nexport * from './services/console/consoleComponentSink.service';\nexport * from './services/console/consoleSinkConfig.service';\nexport * from './services/logger.service';\nexport * from './services/rest/restSink.options';\nexport * from './services/rest/restSink.service';\nexport * from './services/developerConsole/developerConsoleSink.options';\nexport * from './services/developerConsole/developerConsoleSink.service';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../structured-log/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iDAAiD,CAAC;AAChE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0DAA0D,CAAC;AACzE,cAAc,0DAA0D,CAAC","sourcesContent":["export * from './components/console/console.component.animations';\nexport * from './components/console/console.component';\nexport * from './modules/consoleLog.module';\nexport * from './misc/providers';\nexport * from './misc/utils';\nexport * from './types/tokens';\nexport * from './types/logger.interface';\nexport * from './services/console/consoleComponentSink.service';\nexport * from './services/console/consoleSinkConfig.service';\nexport * from './services/logger.service';\nexport * from './services/rest/restSink.options';\nexport * from './services/rest/restSink.service';\nexport * from './services/developerConsole/developerConsoleSink.options';\nexport * from './services/developerConsole/developerConsoleSink.service';\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { makeEnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { CONSOLE_COMPONENT_SINK, CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER } from '../types/tokens';
|
|
3
|
+
/**
|
|
4
|
+
* Provides console component as sink for logger
|
|
5
|
+
*/
|
|
6
|
+
export function provideConsoleComponentSink() {
|
|
7
|
+
return makeEnvironmentProviders([
|
|
8
|
+
CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER,
|
|
9
|
+
CONSOLE_COMPONENT_SINK,
|
|
10
|
+
]);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../../structured-log/src/misc/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,wBAAwB,EAAC,MAAM,eAAe,CAAC;AAE7E,OAAO,EAAC,sBAAsB,EAAE,uCAAuC,EAAC,MAAM,iBAAiB,CAAC;AAEhG;;GAEG;AACH,MAAM,UAAU,2BAA2B;IAEvC,OAAO,wBAAwB,CAC/B;QACI,uCAAuC;QACvC,sBAAsB;KACzB,CAAC,CAAC;AACP,CAAC","sourcesContent":["import {EnvironmentProviders, makeEnvironmentProviders} from '@angular/core';\n\nimport {CONSOLE_COMPONENT_SINK, CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER} from '../types/tokens';\n\n/**\n * Provides console component as sink for logger\n */\nexport function provideConsoleComponentSink(): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER,\n CONSOLE_COMPONENT_SINK,\n ]);\n}"]}
|
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import { ConsoleComponent } from '../components/console/console.component';
|
|
4
|
-
import { CONSOLE_COMPONENT_SINK, STRUCTURED_LOG_LOGGER, CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER } from '../types/tokens';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
/**
|
|
7
6
|
* Module containing component Console (log)
|
|
8
7
|
*/
|
|
9
8
|
class ConsoleLogModule {
|
|
10
|
-
//######################### public methods #########################
|
|
11
|
-
/**
|
|
12
|
-
* Registers structured-log as logger service, with console component sink
|
|
13
|
-
*/
|
|
14
|
-
static forRoot() {
|
|
15
|
-
return {
|
|
16
|
-
ngModule: ConsoleLogModule,
|
|
17
|
-
providers: [
|
|
18
|
-
CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER,
|
|
19
|
-
CONSOLE_COMPONENT_SINK,
|
|
20
|
-
STRUCTURED_LOG_LOGGER
|
|
21
|
-
]
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
9
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConsoleLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
25
10
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: ConsoleLogModule, declarations: [ConsoleComponent], imports: [CommonModule], exports: [ConsoleComponent] });
|
|
26
11
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConsoleLogModule, imports: [CommonModule] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consoleLog.module.js","sourceRoot":"","sources":["../../../../structured-log/src/modules/consoleLog.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"consoleLog.module.js","sourceRoot":"","sources":["../../../../structured-log/src/modules/consoleLog.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,yCAAyC,CAAC;;AAEzE;;GAEG;AACH,MAea,gBAAgB;uGAAhB,gBAAgB;wGAAhB,gBAAgB,iBAPrB,gBAAgB,aAJhB,YAAY,aAQZ,gBAAgB;wGAGX,gBAAgB,YAXrB,YAAY;;SAWP,gBAAgB;2FAAhB,gBAAgB;kBAf5B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;qBACf;oBACD,YAAY,EACZ;wBACI,gBAAgB;qBACnB;oBACD,OAAO,EACP;wBACI,gBAAgB;qBACnB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {ConsoleComponent} from '../components/console/console.component';\n\n/**\n * Module containing component Console (log)\n */\n@NgModule(\n{\n imports:\n [\n CommonModule\n ],\n declarations:\n [\n ConsoleComponent\n ],\n exports:\n [\n ConsoleComponent\n ]\n})\nexport class ConsoleLogModule\n{\n}"]}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
1
2
|
import { Injectable, Inject } from '@angular/core';
|
|
3
|
+
import { LOGGER, TypeProvider } from '@anglr/common';
|
|
2
4
|
import { configure } from 'structured-log';
|
|
3
5
|
import { LOGGER_SINKS } from '../types/tokens';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
@@ -47,4 +49,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
47
49
|
type: Inject,
|
|
48
50
|
args: [LOGGER_SINKS]
|
|
49
51
|
}] }]; } });
|
|
52
|
+
/**
|
|
53
|
+
* Provider for logger that is using structured log implementation
|
|
54
|
+
*/
|
|
55
|
+
const STRUCTURED_LOG_LOGGER = {
|
|
56
|
+
provide: LOGGER,
|
|
57
|
+
useClass: LoggerService
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Type that contains provider for structured log logger when used with `provideLogger`
|
|
61
|
+
*/
|
|
62
|
+
let StructuredLogLoggerType = class StructuredLogLoggerType {
|
|
63
|
+
};
|
|
64
|
+
StructuredLogLoggerType = __decorate([
|
|
65
|
+
TypeProvider(STRUCTURED_LOG_LOGGER)
|
|
66
|
+
], StructuredLogLoggerType);
|
|
67
|
+
/**
|
|
68
|
+
* Sets logger to use structured log logger when used with `provideLogger`
|
|
69
|
+
*/
|
|
70
|
+
export const StructuredLogLogger = StructuredLogLoggerType;
|
|
50
71
|
//# sourceMappingURL=logger.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.service.js","sourceRoot":"","sources":["../../../../structured-log/src/services/logger.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"logger.service.js","sourceRoot":"","sources":["../../../../structured-log/src/services/logger.service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAE,MAAM,EAA0B,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAC,MAAM,EAA2C,YAAY,EAAC,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAC,SAAS,EAAe,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;;AAE7C;;GAEG;AACH,MACa,aAAa;IAEtB,oEAAoE;IAEpE;;OAEG;IACK,OAAO,CAAS;IAExB,iEAAiE;IACjE,YAAkC,KAAa;QAE3C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,EAAE,aAAa;CAC1B,CAAC;AAEF;;GAEG;AAEH,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAE5B,CAAA;AAFK,uBAAuB;IAD5B,YAAY,CAAC,qBAAqB,CAAC;GAC9B,uBAAuB,CAE5B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAiB,uBAAuB,CAAC","sourcesContent":["import {Injectable, Inject, Provider, ClassProvider} from '@angular/core';\nimport {LOGGER, Logger as LoggerInterface, PositionType, TypeProvider} from '@anglr/common';\nimport {configure, Sink, Logger} from 'structured-log';\n\nimport {LOGGER_SINKS} from '../types/tokens';\n\n/**\n * Service used for logging using structured-log\n */\n@Injectable()\nexport class LoggerService implements LoggerInterface\n{\n //######################### private fields #########################\n\n /**\n * Currently used instance of logger\n */\n private _logger: Logger;\n\n //######################### constructor #########################\n constructor(@Inject(LOGGER_SINKS) sinks: Sink[])\n {\n const configuration = configure();\n\n sinks.forEach(sink =>\n {\n configuration.writeTo(sink);\n });\n\n this._logger = configuration.create();\n }\n\n //######################### public methods #########################\n\n /**\n * Logs an event with the LogEventLevel.fatal severity.\n * @param messageTemplate - Message template for the log event.\n * @param properties - Properties that can be used to render the message template.\n */\n fatal(messageTemplate: string, ...properties: any[]): void;\n\n /**\n * Logs an event with the LogEventLevel.fatal severity.\n * @param error - Error for the log event.\n * @param messageTemplate - Message template for the log event.\n * @param properties - Properties that can be used to render the message template.\n */\n fatal(error: Error, messageTemplate: string, ...properties: any[]): void;\n\n fatal(errorOrMessageTemplate: any, ...properties: any[]): void\n {\n this._logger.fatal(errorOrMessageTemplate, properties);\n }\n\n /**\n * Logs an event with the LogEventLevel.error severity.\n * @param messageTemplate - Message template for the log event.\n * @param properties - Properties that can be used to render the message template.\n */\n error(messageTemplate: string, ...properties: any[]): void;\n\n /**\n * Logs an event with the LogEventLevel.error severity.\n * @param error - Error for the log event.\n * @param messageTemplate - Message template for the log event.\n * @param properties - Properties that can be used to render the message template.\n */\n error(error: Error, messageTemplate: string, ...properties: any[]): void;\n\n error(errorOrMessageTemplate: any, ...properties: any[]): void\n {\n this._logger.error(errorOrMessageTemplate, properties);\n }\n\n /**\n * Logs an event with the LogEventLevel.warning severity.\n * @param messageTemplate - Message template for the log event.\n * @param properties - Properties that can be used to render the message template.\n */\n warn(messageTemplate: string, ...properties: any[]): void;\n\n /**\n * Logs an event with the LogEventLevel.warning severity.\n * @param error - Error for the log event.\n * @param messageTemplate - Message template for the log event.\n * @param properties - Properties that can be used to render the message template.\n */\n warn(error: Error, messageTemplate: string, ...properties: any[]): void;\n\n warn(errorOrMessageTemplate: any, ...properties: any[]): void\n {\n this._logger.warn(errorOrMessageTemplate, properties);\n }\n\n /**\n * Logs an event with the LogEventLevel.information severity.\n * @param messageTemplate - Message template for the log event.\n * @param properties - Properties that can be used to render the message template.\n */\n info(messageTemplate: string, ...properties: any[]): void;\n\n /**\n * Logs an event with the LogEventLevel.information severity.\n * @param error - Error for the log event.\n * @param messageTemplate - Message template for the log event.\n * @param properties - Properties that can be used to render the message template.\n */\n info(error: Error, messageTemplate: string, ...properties: any[]): void;\n\n info(errorOrMessageTemplate: any, ...properties: any[]): void\n {\n this._logger.info(errorOrMessageTemplate, properties);\n }\n\n /**\n * Logs an event with the LogEventLevel.debug severity.\n * @param messageTemplate - Message template for the log event.\n * @param properties - Properties that can be used to render the message template.\n */\n debug(messageTemplate: string, ...properties: any[]): void;\n\n /**\n * Logs an event with the LogEventLevel.debug severity.\n * @param error - Error for the log event.\n * @param messageTemplate - Message template for the log event.\n * @param properties - Properties that can be used to render the message template.\n */\n debug(error: Error, messageTemplate: string, ...properties: any[]): void;\n\n debug(errorOrMessageTemplate: any, ...properties: any[]): void\n {\n this._logger.debug(errorOrMessageTemplate, properties);\n }\n\n /**\n * Logs an event with the LogEventLevel.verbose severity.\n * @param messageTemplate - Message template for the log event.\n * @param properties - Properties that can be used to render the message template.\n */\n verbose(messageTemplate: string, ...properties: any[]): void;\n\n /**\n * Logs an event with the LogEventLevel.verbose severity.\n * @param error - Error for the log event.\n * @param messageTemplate - Message template for the log event.\n * @param properties - Properties that can be used to render the message template.\n */\n verbose(error: Error, messageTemplate: string, ...properties: any[]): void;\n\n verbose(errorOrMessageTemplate: any, ...properties: any[]): void\n {\n this._logger.verbose(errorOrMessageTemplate, properties);\n }\n}\n\n/**\n * Provider for logger that is using structured log implementation\n */\nconst STRUCTURED_LOG_LOGGER: Provider =\n<ClassProvider>\n{\n provide: LOGGER,\n useClass: LoggerService\n};\n\n/**\n * Type that contains provider for structured log logger when used with `provideLogger`\n */\n@TypeProvider(STRUCTURED_LOG_LOGGER)\nclass StructuredLogLoggerType\n{\n}\n\n/**\n * Sets logger to use structured log logger when used with `provideLogger`\n */\nexport const StructuredLogLogger: PositionType = StructuredLogLoggerType;"]}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { LOGGER } from '@anglr/common';
|
|
3
2
|
import { ConsoleComponentSinkService } from '../services/console/consoleComponentSink.service';
|
|
4
|
-
import { LoggerService } from '../services/logger.service';
|
|
5
3
|
import { ConsoleSinkConfigService } from '../services/console/consoleSinkConfig.service';
|
|
6
4
|
import { RestSinkService } from '../services/rest/restSink.service';
|
|
7
5
|
import { DeveloperConsoleSinkService } from '../services/developerConsole/developerConsoleSink.service';
|
|
@@ -55,11 +53,4 @@ export const DEVELOPER_CONSOLE_SINK = {
|
|
|
55
53
|
useClass: DeveloperConsoleSinkService,
|
|
56
54
|
multi: true
|
|
57
55
|
};
|
|
58
|
-
/**
|
|
59
|
-
* Provider for logger that is using structured log implementation
|
|
60
|
-
*/
|
|
61
|
-
export const STRUCTURED_LOG_LOGGER = {
|
|
62
|
-
provide: LOGGER,
|
|
63
|
-
useClass: LoggerService
|
|
64
|
-
};
|
|
65
56
|
//# sourceMappingURL=tokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../structured-log/src/types/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAA6D,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../structured-log/src/types/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAA6D,MAAM,eAAe,CAAC;AAIzG,OAAO,EAAC,2BAA2B,EAAC,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAC,wBAAwB,EAAC,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAC,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAC,2BAA2B,EAAC,MAAM,2DAA2D,CAAC;AAEtG;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,SAAmC;IAE3E,OAAO,IAAI,2BAA2B,CAAC,SAAS,CAAC,CAAC;AACtD,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAA2B,IAAI,cAAc,CAAS,aAAa,CAAC,CAAC;AAE9F;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAyC,IAAI,cAAc,CAAuB,gCAAgC,CAAC,CAAC;AAE/J;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAqC,IAAI,cAAc,CAAmB,oBAAoB,CAAC,CAAC;AAE/H;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAEpD;IACI,OAAO,EAAE,8BAA8B;IACvC,UAAU,EAAE,2BAA2B;IACvC,IAAI,EAAE,CAAC,wBAAwB,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAEnC;IACI,OAAO,EAAE,YAAY;IACrB,WAAW,EAAE,8BAA8B;IAC3C,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAEtB;IACI,OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,eAAe;IACzB,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAEnC;IACI,OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,2BAA2B;IACrC,KAAK,EAAE,IAAI;CACd,CAAC","sourcesContent":["import {InjectionToken, Provider, ExistingProvider, ClassProvider, FactoryProvider} from '@angular/core';\nimport {Sink} from 'structured-log';\n\nimport {ConsoleComponentSink, LoggerRestClient} from './logger.interface';\nimport {ConsoleComponentSinkService} from '../services/console/consoleComponentSink.service';\nimport {ConsoleSinkConfigService} from '../services/console/consoleSinkConfig.service';\nimport {RestSinkService} from '../services/rest/restSink.service';\nimport {DeveloperConsoleSinkService} from '../services/developerConsole/developerConsoleSink.service';\n\n/**\n * Factory method for `ConsoleComponentSink`\n */\nexport function consoleComponentSinkFactory(configSvc: ConsoleSinkConfigService): ConsoleComponentSinkService\n{\n return new ConsoleComponentSinkService(configSvc);\n}\n\n/**\n * Injection token for obtaining loggers sinks\n */\nexport const LOGGER_SINKS: InjectionToken<Sink[]> = new InjectionToken<Sink[]>('LOGGER_SINK');\n\n/**\n * Injection token for obtaining sink service for `ConsoleComponent`\n */\nexport const CONSOLE_COMPONENT_SINK_SERVICE: InjectionToken<ConsoleComponentSink> = new InjectionToken<ConsoleComponentSink>('CONSOLE_COMPONENT_SINK_SERVICE');\n\n/**\n * Injection token for obtaining rest client for rest sink\n */\nexport const LOGGER_REST_CLIENT: InjectionToken<LoggerRestClient> = new InjectionToken<LoggerRestClient>('LOGGER_REST_CLIENT');\n\n/**\n * Provider for `ConsoleComponentSinkService` for logger\n */\nexport const CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER: Provider =\n<FactoryProvider>\n{\n provide: CONSOLE_COMPONENT_SINK_SERVICE,\n useFactory: consoleComponentSinkFactory,\n deps: [ConsoleSinkConfigService]\n};\n\n/**\n * Provider for `ConsoleComponentSink` for logger\n */\nexport const CONSOLE_COMPONENT_SINK: Provider =\n<ExistingProvider>\n{\n provide: LOGGER_SINKS,\n useExisting: CONSOLE_COMPONENT_SINK_SERVICE,\n multi: true\n};\n\n/**\n * Provider for `RestSinkService` for logger\n */\nexport const REST_SINK: Provider =\n<ClassProvider>\n{\n provide: LOGGER_SINKS,\n useClass: RestSinkService,\n multi: true\n};\n\n/**\n * Provider for `DeveloperConsoleSinkService` for logger\n */\nexport const DEVELOPER_CONSOLE_SINK: Provider =\n<ClassProvider>\n{\n provide: LOGGER_SINKS,\n useClass: DeveloperConsoleSinkService,\n multi: true\n};\n"]}
|
|
@@ -5,7 +5,7 @@ import * as i1 from "../pipes/numeral.pipe";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class NumeralModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumeralModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NumeralModule, [typeof i1.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NumeralModule, never, [typeof i1.NumeralSAPipe], [typeof i1.NumeralSAPipe]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<NumeralModule>;
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=numeral.module.d.ts.map
|
|
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
/**
|
|
5
5
|
* Pipe to transform numbers to regional formatting using numeraljs.
|
|
6
6
|
*/
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class NumeralSAPipe implements PipeTransform, OnDestroy {
|
|
8
8
|
/**
|
|
9
9
|
* Subscription for globalization changes
|
|
10
10
|
*/
|
|
@@ -20,7 +20,7 @@ export declare class NumeralPipe implements PipeTransform, OnDestroy {
|
|
|
20
20
|
* Called when component is destroyed
|
|
21
21
|
*/
|
|
22
22
|
ngOnDestroy(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
24
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumeralSAPipe, never>;
|
|
24
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NumeralSAPipe, "numeral", true>;
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=numeral.pipe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numeral.pipe.d.ts","sourceRoot":"","sources":["numeral.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;;AAKnD;;GAEG;AACH,qBACa,
|
|
1
|
+
{"version":3,"file":"numeral.pipe.d.ts","sourceRoot":"","sources":["numeral.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;;AAKnD;;GAEG;AACH,qBACa,aAAc,YAAW,aAAa,EAAE,SAAS;IAI1D;;OAEG;IACH,OAAO,CAAC,gCAAgC,CAAoB;gBAGhD,gBAAgB,EAAE,oBAAoB;IAWlD;;;;OAIG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;IAiBvD;;OAEG;IACI,WAAW,IAAI,IAAI;yCA9CjB,aAAa;uCAAb,aAAa;CAsDzB"}
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -21,13 +21,15 @@ export * from './pipes';
|
|
|
21
21
|
export * from './types/host';
|
|
22
22
|
export * from './types/styles';
|
|
23
23
|
export * from './types/tokens';
|
|
24
|
+
export * from './types/providers';
|
|
25
|
+
export * from './types/providerDecoratedType';
|
|
24
26
|
export * from './utils';
|
|
25
27
|
export { CookieService } from './services/cookies/cookies.service';
|
|
26
28
|
export { StatusCodeService } from './services/statusCode/statusCode.service';
|
|
27
|
-
export { CookiePermanentStorageService, PermanentStorage } from './services/permanentStorage';
|
|
28
|
-
export { MemoryTemporaryStorageService, TemporaryStorage } from './services/temporaryStorage';
|
|
29
|
-
export { NoStringLocalizationService, StringLocalization } from './services/stringLocalization';
|
|
30
|
-
export { Logger } from './services/logger';
|
|
29
|
+
export { CookiePermanentStorageService, PermanentStorage, PermanentStorageType, CookiePermanentStorage } from './services/permanentStorage';
|
|
30
|
+
export { MemoryTemporaryStorageService, TemporaryStorage, TemporaryStorageType } from './services/temporaryStorage';
|
|
31
|
+
export { NoStringLocalizationService, StringLocalization, StringLocalizationType } from './services/stringLocalization';
|
|
32
|
+
export { Logger, LoggerType } from './services/logger';
|
|
31
33
|
export * from './directives/bodyRender/bodyRender.directive';
|
|
32
34
|
export { NgComponentOutletEx } from './directives/ngComponentOutletEx/ngComponentOutletEx.directive';
|
|
33
35
|
export { APP_STABLE, extractAppStableResolve, runWhenModuleStable, runWhenAppStable } from './utils';
|
package/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,eAAe,EAAC,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAC,kBAAkB,EAAC,MAAM,8DAA8D,CAAC;AAChG,OAAO,EAAC,uBAAuB,EAAC,MAAM,wEAAwE,CAAC;AAC/G,OAAO,EAAC,qBAAqB,EAAC,MAAM,uEAAuE,CAAC;AAC5G,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAC,oBAAoB,EAAC,MAAM,oEAAoE,CAAC;AACxG,OAAO,EAAC,qBAAqB,EAAC,MAAM,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AAqB,CAAC"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { TemplateRef, ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
+
import { Invalidatable } from '@jscrpt/common';
|
|
2
3
|
import { TooltipTemplateContext } from '../../directives';
|
|
3
4
|
import { TooltipRenderer } from '../../misc/tooltip.interface';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Component used for displaying tooltip content
|
|
7
8
|
*/
|
|
8
|
-
export declare class TooltipComponent<TData = any> implements TooltipRenderer<TData
|
|
9
|
-
protected
|
|
10
|
-
protected
|
|
9
|
+
export declare class TooltipComponent<TData = any> implements TooltipRenderer<TData>, Invalidatable {
|
|
10
|
+
protected changeDetector: ChangeDetectorRef;
|
|
11
|
+
protected element: ElementRef<HTMLElement>;
|
|
11
12
|
/**
|
|
12
13
|
* Called when mouse enter tooltip component, hover
|
|
13
14
|
*/
|
|
14
|
-
protected
|
|
15
|
+
protected enterFn: () => void;
|
|
15
16
|
/**
|
|
16
17
|
* Called when mouse leaves tooltip component
|
|
17
18
|
*/
|
|
18
|
-
protected
|
|
19
|
+
protected leaveFn: () => void;
|
|
19
20
|
/**
|
|
20
21
|
* Data that are rendered in tooltip
|
|
21
22
|
*/
|
|
@@ -32,7 +33,7 @@ export declare class TooltipComponent<TData = any> implements TooltipRenderer<TD
|
|
|
32
33
|
* Css class that is applied to tooltip renderer component
|
|
33
34
|
*/
|
|
34
35
|
cssClass: string | null | undefined;
|
|
35
|
-
constructor(
|
|
36
|
+
constructor(changeDetector: ChangeDetectorRef, element: ElementRef<HTMLElement>);
|
|
36
37
|
/**
|
|
37
38
|
* Registers handlers that allows reaction to entering or leaving tooltip
|
|
38
39
|
* @param enter - Called when mouse enter tooltip component, hover
|
|
@@ -40,19 +41,19 @@ export declare class TooltipComponent<TData = any> implements TooltipRenderer<TD
|
|
|
40
41
|
*/
|
|
41
42
|
registerHoverEvents(enter: () => void, leave: () => void): void;
|
|
42
43
|
/**
|
|
43
|
-
*
|
|
44
|
+
* @inheritdoc
|
|
44
45
|
*/
|
|
45
46
|
invalidateVisuals(): void;
|
|
46
47
|
/**
|
|
47
48
|
* Handles mouse enter event over tooltip
|
|
48
49
|
* @internal
|
|
49
50
|
*/
|
|
50
|
-
mouseEnter(): void;
|
|
51
|
+
protected mouseEnter(): void;
|
|
51
52
|
/**
|
|
52
53
|
* Handles mouse leave event over tooltip
|
|
53
54
|
* @internal
|
|
54
55
|
*/
|
|
55
|
-
mouseLeave(): void;
|
|
56
|
+
protected mouseLeave(): void;
|
|
56
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent<any>, never>;
|
|
57
58
|
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent<any>, "tooltip-popup", never, {}, {}, never, never, false, never>;
|
|
58
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.component.d.ts","sourceRoot":"","sources":["tooltip.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,WAAW,EAAE,iBAAiB,EAAE,UAAU,EAAe,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.component.d.ts","sourceRoot":"","sources":["tooltip.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,WAAW,EAAE,iBAAiB,EAAE,UAAU,EAAe,MAAM,eAAe,CAAC;AAC3H,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAC,sBAAsB,EAAC,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;;AAE7D;;GAEG;AACH,qBAOa,gBAAgB,CAAC,KAAK,GAAG,GAAG,CAAE,YAAW,eAAe,CAAC,KAAK,CAAC,EAAE,aAAa;IAqC3E,SAAS,CAAC,cAAc,EAAE,iBAAiB;IAC3C,SAAS,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IAlCtD;;OAEG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,IAAI,CAAc;IAE3C;;OAEG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,IAAI,CAAc;IAI3C;;OAEG;IACI,IAAI,EAAE,KAAK,GAAC,IAAI,GAAC,SAAS,CAAC;IAElC;;OAEG;IACI,QAAQ,EAAE,WAAW,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,GAAC,IAAI,GAAC,SAAS,CAAC;IAE3E;;OAEG;IACI,SAAS,EAAE,OAAO,CAAS;IAElC;;OAEG;IACI,QAAQ,EAAE,MAAM,GAAC,IAAI,GAAC,SAAS,CAAC;gBAGjB,cAAc,EAAE,iBAAiB,EACjC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IAMtD;;;;OAIG;IACI,mBAAmB,CAAC,KAAK,EAAE,MAAM,IAAI,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,IAAI;IAMtE;;OAEG;IACI,iBAAiB,IAAI,IAAI;IAYhC;;;OAGG;IAEH,SAAS,CAAC,UAAU,IAAI,IAAI;IAK5B;;;OAGG;IAEH,SAAS,CAAC,UAAU,IAAI,IAAI;yCArFnB,gBAAgB;2CAAhB,gBAAgB;CAyF5B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
1
2
|
/**
|
|
2
3
|
* Interface for general logger
|
|
3
4
|
*/
|
|
@@ -81,4 +82,9 @@ export interface Logger {
|
|
|
81
82
|
*/
|
|
82
83
|
verbose(error: Error, messageTemplate: string, ...properties: any[]): void;
|
|
83
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Used for restriction of logger provider type only for type decorated with logger provider
|
|
87
|
+
*/
|
|
88
|
+
export interface LoggerType extends Type<unknown> {
|
|
89
|
+
}
|
|
84
90
|
//# sourceMappingURL=logger.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.interface.d.ts","sourceRoot":"","sources":["logger.interface.ts"],"names":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OAKG;IACH,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAExE;;;;OAIG;IACH,KAAK,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAE3D;;;;;OAKG;IACH,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAEzE;;;;OAIG;IACH,OAAO,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAE7D;;;;;OAKG;IACH,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CAC9E;AAED;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,OAAO,CAAC;CAEhD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PermanentStorage } from './permanentStorage.interface';
|
|
1
|
+
import { PermanentStorage, PermanentStorageType } from './permanentStorage.interface';
|
|
2
2
|
import { CookieService } from '../cookies/cookies.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -33,4 +33,8 @@ export declare class CookiePermanentStorageService implements PermanentStorage {
|
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<CookiePermanentStorageService, never>;
|
|
34
34
|
static ɵprov: i0.ɵɵInjectableDeclaration<CookiePermanentStorageService>;
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Sets permanent storage to use cookie permanent storage when used with `providePermanentStorage`
|
|
38
|
+
*/
|
|
39
|
+
export declare const CookiePermanentStorage: PermanentStorageType;
|
|
36
40
|
//# sourceMappingURL=cookiePermanentStorage.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookiePermanentStorage.service.d.ts","sourceRoot":"","sources":["cookiePermanentStorage.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"cookiePermanentStorage.service.d.ts","sourceRoot":"","sources":["cookiePermanentStorage.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAE,oBAAoB,EAAC,MAAM,8BAA8B,CAAC;AACpF,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;;AAIzD;;GAEG;AACH,qBACa,6BAA8B,YAAW,gBAAgB;IAGtD,OAAO,CAAC,QAAQ;gBAAR,QAAQ,EAAE,aAAa;IAM3C;;;OAGG;IACI,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO;IAK1C;;;;OAIG;IACI,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;IAE1C;;;;;OAKG;IACI,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,GAAG,IAAI;IAazD;;;OAGG;IACI,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;yCAhDxB,6BAA6B;6CAA7B,6BAA6B;CAoDzC;AAqBD;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,oBAAiD,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
1
2
|
/**
|
|
2
3
|
* Provides api for implementing permanent storage
|
|
3
4
|
*/
|
|
@@ -26,4 +27,9 @@ export interface PermanentStorage {
|
|
|
26
27
|
*/
|
|
27
28
|
remove(name: string): void;
|
|
28
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Used for restriction of permanent storage provider type only for type decorated with permanent storage provider
|
|
32
|
+
*/
|
|
33
|
+
export interface PermanentStorageType extends Type<unknown> {
|
|
34
|
+
}
|
|
29
35
|
//# sourceMappingURL=permanentStorage.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permanentStorage.interface.d.ts","sourceRoot":"","sources":["permanentStorage.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAE7B;;;OAGG;IACH,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAEpC;;;;OAIG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC;IAEpC;;;;;OAKG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IAEnD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B"}
|
|
1
|
+
{"version":3,"file":"permanentStorage.interface.d.ts","sourceRoot":"","sources":["permanentStorage.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAEnC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAE7B;;;OAGG;IACH,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAEpC;;;;OAIG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC;IAEpC;;;;;OAKG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IAEnD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,OAAO,CAAC;CAE1D"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
1
2
|
import { Func1 } from '@jscrpt/common';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { PositionOffsetString, PositionPlacement } from './position.types';
|
|
@@ -127,4 +128,9 @@ export interface Position {
|
|
|
127
128
|
*/
|
|
128
129
|
placeElement(target: Element, source: Element, options?: Partial<PositionOptions>): Observable<PositionResult>;
|
|
129
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Used for restriction of position provider type only for type decorated with position provider
|
|
133
|
+
*/
|
|
134
|
+
export interface PositionType extends Type<unknown> {
|
|
135
|
+
}
|
|
130
136
|
//# sourceMappingURL=position.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"position.interface.d.ts","sourceRoot":"","sources":["position.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC,OAAO,EAAC,oBAAoB,EAAE,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAE9B;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,QAAQ,SAAS,OAAO,GAAG,OAAO;IAEhE;;OAEG;IACH,SAAS,EAAE,QAAQ,CAAC;IAEpB;;OAEG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H,UAAU,EAAE,OAAO,GAAC,iBAAiB,CAAC;IAEtC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,QAAQ,SAAS,OAAO,GAAG,GAAG;IAE1D;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC;IAEjB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IAIrB;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;CAClH;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,OAAO,CAAC;CAElD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
3
|
/**
|
|
3
4
|
* Provides api to localize strings
|
|
@@ -14,4 +15,9 @@ export interface StringLocalization {
|
|
|
14
15
|
*/
|
|
15
16
|
get(key: string, interpolateParams?: Object): string;
|
|
16
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Used for restriction of string localization provider type only for type decorated with string localization provider
|
|
20
|
+
*/
|
|
21
|
+
export interface StringLocalizationType extends Type<unknown> {
|
|
22
|
+
}
|
|
17
23
|
//# sourceMappingURL=stringLocalization.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringLocalization.interface.d.ts","sourceRoot":"","sources":["stringLocalization.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAE/B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IAEvC;;;;OAIG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxD"}
|
|
1
|
+
{"version":3,"file":"stringLocalization.interface.d.ts","sourceRoot":"","sources":["stringLocalization.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAE/B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IAEvC;;;;OAIG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxD;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,OAAO,CAAC;CAE5D"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
1
2
|
/**
|
|
2
3
|
* Provides api for implementing temporary storage
|
|
3
4
|
*/
|
|
@@ -19,4 +20,9 @@ export interface TemporaryStorage {
|
|
|
19
20
|
*/
|
|
20
21
|
remove(name: string): void;
|
|
21
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Used for restriction of temporary storage provider type only for type decorated with temporary storage provider
|
|
25
|
+
*/
|
|
26
|
+
export interface TemporaryStorageType extends Type<unknown> {
|
|
27
|
+
}
|
|
22
28
|
//# sourceMappingURL=temporaryStorage.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temporaryStorage.interface.d.ts","sourceRoot":"","sources":["temporaryStorage.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAE7B;;;OAGG;IACH,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAEpC;;;;OAIG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC;IAEpC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B"}
|
|
1
|
+
{"version":3,"file":"temporaryStorage.interface.d.ts","sourceRoot":"","sources":["temporaryStorage.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAEnC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAE7B;;;OAGG;IACH,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAEpC;;;;OAIG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC;IAEpC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,OAAO,CAAC;CAE1D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Provider, Type } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Gets provider from type
|
|
4
|
+
* @param type - Type that should contain provider
|
|
5
|
+
*/
|
|
6
|
+
export declare function getProviderForType(type: Type<unknown>): Provider;
|
|
7
|
+
/**
|
|
8
|
+
* Attach provider to type
|
|
9
|
+
* @param provider - Provider to be attached
|
|
10
|
+
*/
|
|
11
|
+
export declare function TypeProvider(provider: Provider): ClassDecorator;
|
|
12
|
+
//# sourceMappingURL=providerDecoratedType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerDecoratedType.d.ts","sourceRoot":"","sources":["providerDecoratedType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AAc7C;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,QAAQ,CAUhE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,CAoB/D"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { LoggerType } from '../services/logger/logger.interface';
|
|
3
|
+
import { PermanentStorageType } from '../services/permanentStorage/permanentStorage.interface';
|
|
4
|
+
import { PositionType } from '../services/position/position.interface';
|
|
5
|
+
import { StringLocalizationType } from '../services/stringLocalization/stringLocalization.interface';
|
|
6
|
+
import { TemporaryStorageType } from '../services/temporaryStorage/temporaryStorage.interface';
|
|
7
|
+
/**
|
|
8
|
+
* Provides logger service type
|
|
9
|
+
* @param type - Type of logger that should be used
|
|
10
|
+
*/
|
|
11
|
+
export declare function provideLogger(type: LoggerType): EnvironmentProviders;
|
|
12
|
+
/**
|
|
13
|
+
* Provides permanent storage service type
|
|
14
|
+
* @param type - Type of permanent storage that should be used
|
|
15
|
+
*/
|
|
16
|
+
export declare function providePermanentStorage(type: PermanentStorageType): EnvironmentProviders;
|
|
17
|
+
/**
|
|
18
|
+
* Provides position service type
|
|
19
|
+
* @param type - Type of position that should be used
|
|
20
|
+
*/
|
|
21
|
+
export declare function providePosition(type: PositionType): EnvironmentProviders;
|
|
22
|
+
/**
|
|
23
|
+
* Provides string localization service type
|
|
24
|
+
* @param type - Type of string localization that should be used
|
|
25
|
+
*/
|
|
26
|
+
export declare function provideStringLocalization(type: StringLocalizationType): EnvironmentProviders;
|
|
27
|
+
/**
|
|
28
|
+
* Provides temporary storage service type
|
|
29
|
+
* @param type - Type of temporary storage that should be used
|
|
30
|
+
*/
|
|
31
|
+
export declare function provideTemporaryStorage(type: TemporaryStorageType): EnvironmentProviders;
|
|
32
|
+
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAA2B,MAAM,eAAe,CAAC;AAE7E,OAAO,EAAC,UAAU,EAAC,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAC,oBAAoB,EAAC,MAAM,yDAAyD,CAAC;AAC7F,OAAO,EAAC,YAAY,EAAC,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAC,sBAAsB,EAAC,MAAM,6DAA6D,CAAC;AACnG,OAAO,EAAC,oBAAoB,EAAC,MAAM,yDAAyD,CAAC;AAG7F;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,UAAU,GAAG,oBAAoB,CAMpE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,oBAAoB,GAAG,oBAAoB,CAMxF;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,GAAG,oBAAoB,CAMxE;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,sBAAsB,GAAG,oBAAoB,CAM5F;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,oBAAoB,GAAG,oBAAoB,CAMxF"}
|
package/store/src/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { LocalPermanentStorageService, SessionTemporaryStorageService } from './services';
|
|
1
|
+
export { LocalPermanentStorageService, SessionTemporaryStorageService, SessionTemporaryStorage, LocalPermanentStorage } from './services';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/store/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,4BAA4B,EAAE,8BAA8B,EAAC,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,4BAA4B,EAAE,8BAA8B,EAAE,uBAAuB,EAAE,qBAAqB,EAAC,MAAM,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PermanentStorage } from '@anglr/common';
|
|
1
|
+
import { PermanentStorage, PermanentStorageType } from '@anglr/common';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Implementation of permanent storage using LocalStorage
|
|
@@ -31,4 +31,8 @@ export declare class LocalPermanentStorageService implements PermanentStorage {
|
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocalPermanentStorageService, never>;
|
|
32
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<LocalPermanentStorageService>;
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Sets permanent storage to use local permanent storage when used with `providePermanentStorage`
|
|
36
|
+
*/
|
|
37
|
+
export declare const LocalPermanentStorage: PermanentStorageType;
|
|
34
38
|
//# sourceMappingURL=localPermanentStorage.service.d.ts.map
|