@anglr/common 8.0.0-beta.20211217112423 → 9.0.0-beta.20220215122203
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 +15 -8
- package/common.d.ts +114 -87
- package/common.internal.d.ts +114 -87
- package/es2015/material/src/components/titledDialog/titledDialog.component.js +2 -3
- package/es2015/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
- package/es2015/material/src/modules/confirmationDialog.module.js +4 -4
- package/es2015/material/src/modules/confirmationDialog.module.js.map +1 -1
- package/es2015/material/src/modules/titledDialog.module.js +4 -4
- package/es2015/material/src/modules/titledDialog.module.js.map +1 -1
- package/es2015/src/index.js +7 -7
- package/es2015/src/index.js.map +1 -1
- package/es2015/src/modules/commonDynamic.module.js +23 -0
- package/es2015/src/modules/commonDynamic.module.js.map +1 -0
- package/es2015/src/modules/commonLocalize.js +23 -0
- package/es2015/src/modules/commonLocalize.js.map +1 -0
- package/es2015/src/modules/commonUtils.module.js +35 -0
- package/es2015/src/modules/commonUtils.module.js.map +1 -0
- package/es2015/src/modules/goBack/directives/goBack/goBack.directive.js +35 -0
- package/es2015/src/modules/goBack/directives/goBack/goBack.directive.js.map +1 -0
- package/es2015/src/modules/goBack/directives/index.js +2 -0
- package/es2015/src/modules/goBack/directives/index.js.map +1 -0
- package/es2015/src/modules/goBack/index.js +3 -0
- package/es2015/src/modules/goBack/index.js.map +1 -0
- package/es2015/src/modules/goBack/modules/goBack.module.js +23 -0
- package/es2015/src/modules/goBack/modules/goBack.module.js.map +1 -0
- package/es2015/src/modules/goBack/modules/index.js +2 -0
- package/es2015/src/modules/goBack/modules/index.js.map +1 -0
- package/es2015/src/modules/progressIndicator/interceptors/progressInterceptor.js +11 -14
- package/es2015/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
- package/es2015/src/modules/progressIndicator/misc/tokens.js +6 -0
- package/es2015/src/modules/progressIndicator/misc/tokens.js.map +1 -0
- package/es2015/src/modules/progressIndicator/modules/progressIndicator.module.js +8 -8
- package/es2015/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
- package/es2015/src/pipes/index.js +1 -0
- package/es2015/src/pipes/index.js.map +1 -1
- package/es2015/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +43 -0
- package/es2015/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js.map +1 -0
- package/es2015/src/services/alignment/alignment.interface.js +2 -0
- package/es2015/src/services/alignment/alignment.interface.js.map +1 -0
- package/es2015/src/services/alignment/index.js +2 -0
- package/es2015/src/services/alignment/index.js.map +1 -0
- package/es2015/src/types/tokens.js +7 -2
- package/es2015/src/types/tokens.js.map +1 -1
- package/es2015/src/utils/index.js.map +1 -1
- package/es2020/material/src/components/titledDialog/titledDialog.component.js +2 -3
- package/es2020/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
- package/es2020/material/src/modules/confirmationDialog.module.js +4 -4
- package/es2020/material/src/modules/confirmationDialog.module.js.map +1 -1
- package/es2020/material/src/modules/titledDialog.module.js +4 -4
- package/es2020/material/src/modules/titledDialog.module.js.map +1 -1
- package/es2020/src/index.js +7 -7
- package/es2020/src/index.js.map +1 -1
- package/es2020/src/modules/commonDynamic.module.js +23 -0
- package/es2020/src/modules/commonDynamic.module.js.map +1 -0
- package/es2020/src/modules/commonLocalize.js +23 -0
- package/es2020/src/modules/commonLocalize.js.map +1 -0
- package/es2020/src/modules/commonUtils.module.js +35 -0
- package/es2020/src/modules/commonUtils.module.js.map +1 -0
- package/es2020/src/modules/goBack/directives/goBack/goBack.directive.js +35 -0
- package/es2020/src/modules/goBack/directives/goBack/goBack.directive.js.map +1 -0
- package/es2020/src/modules/goBack/directives/index.js +2 -0
- package/es2020/src/modules/goBack/directives/index.js.map +1 -0
- package/es2020/src/modules/goBack/index.js +3 -0
- package/es2020/src/modules/goBack/index.js.map +1 -0
- package/es2020/src/modules/goBack/modules/goBack.module.js +23 -0
- package/es2020/src/modules/goBack/modules/goBack.module.js.map +1 -0
- package/es2020/src/modules/goBack/modules/index.js +2 -0
- package/es2020/src/modules/goBack/modules/index.js.map +1 -0
- package/es2020/src/modules/progressIndicator/interceptors/progressInterceptor.js +11 -13
- package/es2020/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
- package/es2020/src/modules/progressIndicator/misc/tokens.js +6 -0
- package/es2020/src/modules/progressIndicator/misc/tokens.js.map +1 -0
- package/es2020/src/modules/progressIndicator/modules/progressIndicator.module.js +8 -8
- package/es2020/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
- package/es2020/src/pipes/index.js +1 -0
- package/es2020/src/pipes/index.js.map +1 -1
- package/es2020/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +43 -0
- package/es2020/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js.map +1 -0
- package/es2020/src/services/alignment/alignment.interface.js +2 -0
- package/es2020/src/services/alignment/alignment.interface.js.map +1 -0
- package/es2020/src/services/alignment/index.js +2 -0
- package/es2020/src/services/alignment/index.js.map +1 -0
- package/es2020/src/types/tokens.js +7 -2
- package/es2020/src/types/tokens.js.map +1 -1
- package/es2020/src/utils/index.js.map +1 -1
- package/material/common-material.d.ts +2 -2
- package/material/common-material.internal.d.ts +2 -2
- package/material/src/modules/confirmationDialog.module.d.ts +1 -1
- package/material/src/modules/titledDialog.module.d.ts +1 -1
- package/material/temp/common-material.api.md +2 -2
- package/package.json +6 -3
- package/src/index.d.ts +7 -8
- package/src/index.d.ts.map +1 -1
- package/src/modules/commonDynamic.module.d.ts +11 -0
- package/src/modules/commonDynamic.module.d.ts.map +1 -0
- package/src/modules/commonLocalize.d.ts +11 -0
- package/src/modules/commonLocalize.d.ts.map +1 -0
- package/src/modules/commonUtils.module.d.ts +14 -0
- package/src/modules/commonUtils.module.d.ts.map +1 -0
- package/src/modules/goBack/directives/goBack/goBack.directive.d.ts +17 -0
- package/src/modules/goBack/directives/goBack/goBack.directive.d.ts.map +1 -0
- package/src/modules/goBack/directives/index.d.ts +2 -0
- package/src/{services/positioning → modules/goBack/directives}/index.d.ts.map +1 -1
- package/src/modules/goBack/index.d.ts +3 -0
- package/src/modules/goBack/index.d.ts.map +1 -0
- package/src/modules/goBack/modules/goBack.module.d.ts +11 -0
- package/src/modules/goBack/modules/goBack.module.d.ts.map +1 -0
- package/src/modules/goBack/modules/index.d.ts +2 -0
- package/src/modules/goBack/modules/index.d.ts.map +1 -0
- package/src/modules/progressIndicator/interceptors/progressInterceptor.d.ts +3 -7
- package/src/modules/progressIndicator/interceptors/progressInterceptor.d.ts.map +1 -1
- package/src/modules/progressIndicator/misc/tokens.d.ts +6 -0
- package/src/modules/progressIndicator/misc/tokens.d.ts.map +1 -0
- package/src/modules/progressIndicator/modules/progressIndicator.module.d.ts +2 -2
- package/src/pipes/index.d.ts +1 -0
- package/src/pipes/index.d.ts.map +1 -1
- package/src/pipes/mergeCssClasses/mergeCssClasses.pipe.d.ts +21 -0
- package/src/pipes/mergeCssClasses/mergeCssClasses.pipe.d.ts.map +1 -0
- package/src/services/alignment/alignment.interface.d.ts +6 -0
- package/src/services/alignment/alignment.interface.d.ts.map +1 -0
- package/src/services/alignment/index.d.ts +2 -0
- package/src/services/alignment/index.d.ts.map +1 -0
- package/src/types/tokens.d.ts +9 -4
- package/src/types/tokens.d.ts.map +1 -1
- package/src/utils/index.d.ts +1 -1
- package/src/utils/index.d.ts.map +1 -1
- package/version.bak +1 -1
- package/es2015/src/modules/common.module.js +0 -49
- package/es2015/src/modules/common.module.js.map +0 -1
- package/es2015/src/modules/progressIndicator/misc/types.js +0 -2
- package/es2015/src/modules/progressIndicator/misc/types.js.map +0 -1
- package/es2015/src/services/ignoredInterceptors/ignoredInterceptors.service.js +0 -60
- package/es2015/src/services/ignoredInterceptors/ignoredInterceptors.service.js.map +0 -1
- package/es2015/src/services/positioning/index.js +0 -2
- package/es2015/src/services/positioning/index.js.map +0 -1
- package/es2015/src/services/positioning/positioning.interface.js +0 -2
- package/es2015/src/services/positioning/positioning.interface.js.map +0 -1
- package/es2015/src/types/additionalInfo.js +0 -2
- package/es2015/src/types/additionalInfo.js.map +0 -1
- package/es2020/src/modules/common.module.js +0 -49
- package/es2020/src/modules/common.module.js.map +0 -1
- package/es2020/src/modules/progressIndicator/misc/types.js +0 -2
- package/es2020/src/modules/progressIndicator/misc/types.js.map +0 -1
- package/es2020/src/services/ignoredInterceptors/ignoredInterceptors.service.js +0 -60
- package/es2020/src/services/ignoredInterceptors/ignoredInterceptors.service.js.map +0 -1
- package/es2020/src/services/positioning/index.js +0 -2
- package/es2020/src/services/positioning/index.js.map +0 -1
- package/es2020/src/services/positioning/positioning.interface.js +0 -2
- package/es2020/src/services/positioning/positioning.interface.js.map +0 -1
- package/es2020/src/types/additionalInfo.js +0 -2
- package/es2020/src/types/additionalInfo.js.map +0 -1
- package/src/modules/common.module.d.ts +0 -16
- package/src/modules/common.module.d.ts.map +0 -1
- package/src/modules/progressIndicator/misc/types.d.ts +0 -10
- package/src/modules/progressIndicator/misc/types.d.ts.map +0 -1
- package/src/services/ignoredInterceptors/ignoredInterceptors.service.d.ts +0 -39
- package/src/services/ignoredInterceptors/ignoredInterceptors.service.d.ts.map +0 -1
- package/src/services/positioning/index.d.ts +0 -2
- package/src/services/positioning/positioning.interface.d.ts +0 -6
- package/src/services/positioning/positioning.interface.d.ts.map +0 -1
- package/src/types/additionalInfo.d.ts +0 -11
- package/src/types/additionalInfo.d.ts.map +0 -1
package/es2020/src/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export { GlobalizationService } from './services/globalization/globalization.service';
|
|
2
|
-
export {
|
|
2
|
+
export { CommonDynamicModule } from './modules/commonDynamic.module';
|
|
3
|
+
export { CommonLocalizeModule } from './modules/commonLocalize';
|
|
4
|
+
export { CommonUtilsModule } from './modules/commonUtils.module';
|
|
5
|
+
export * from './modules/goBack';
|
|
3
6
|
export { ProgressIndicatorOptions } from './modules/progressIndicator/services/progressIndicatorOptions';
|
|
4
7
|
export { ProgressIndicatorComponent } from './modules/progressIndicator/components/progressIndicator/progressIndicator.component';
|
|
5
8
|
export { ProgressIndicatorModule } from './modules/progressIndicator/modules/progressIndicator.module';
|
|
6
9
|
export { ProgressIndicatorService } from './modules/progressIndicator/services/progressIndicator.service';
|
|
10
|
+
export { PROGRESS_INDICATOR_GROUP_NAME } from './modules/progressIndicator/misc/tokens';
|
|
7
11
|
export { DebugDataModule } from './modules/debugData/modules/debugData.module';
|
|
8
12
|
export { DebugDataComponent } from './modules/debugData/components/debugData/debugData.component';
|
|
9
13
|
export { DebugDataEnabledService } from './modules/debugData/services/debugDataEnabled/debugDataEnabled.service';
|
|
@@ -13,22 +17,18 @@ export { MultiButtonComponent } from './modules/multiButton/components/multiButt
|
|
|
13
17
|
export { MULTI_BUTTON_CSS_CLASSES } from './modules/multiButton/misc/tokens';
|
|
14
18
|
export { MultiButtonModule } from './modules/multiButton/modules/multiButton.module';
|
|
15
19
|
export * from './types/tokens';
|
|
16
|
-
export * from './types/additionalInfo';
|
|
17
20
|
export * from './utils';
|
|
18
|
-
export
|
|
19
|
-
export { IsPresentPipe } from './pipes/isPresent/isPresent.pipe';
|
|
20
|
-
export { LocalizePipe } from './pipes/localize/localize.pipe';
|
|
21
|
-
export { UrlEncodePipe } from './pipes/urlEncode/urlEncode.pipe';
|
|
21
|
+
export * from './pipes';
|
|
22
22
|
export { CookieService } from './services/cookies/cookies.service';
|
|
23
23
|
export { StatusCodeService } from './services/statusCode/statusCode.service';
|
|
24
24
|
export { CookiePermanentStorageService } from './services/permanentStorage';
|
|
25
25
|
export { MemoryTemporaryStorageService } from './services/temporaryStorage';
|
|
26
26
|
export { NoStringLocalizationService } from './services/stringLocalization';
|
|
27
|
-
export { IgnoredInterceptorsService } from './services/ignoredInterceptors/ignoredInterceptors.service';
|
|
28
27
|
export { NgComponentOutletEx } from './directives/ngComponentOutletEx/ngComponentOutletEx.directive';
|
|
29
28
|
export { APP_STABLE, extractAppStableResolve, runWhenModuleStable } from './utils';
|
|
30
29
|
export { PROGRESS_INTERCEPTOR_PROVIDER, ProgressInterceptor } from './modules/progressIndicator/interceptors/progressInterceptor';
|
|
31
30
|
export { DEFAULT_NOTIFICATIONS, DefaultNotificationsService, Notification, NotificationSeverity, NotificationsOptions } from './services/notifications';
|
|
31
|
+
export * from './services/alignment';
|
|
32
32
|
//TODO: any to unknown
|
|
33
33
|
//TODO: strict null checks
|
|
34
34
|
//# sourceMappingURL=index.js.map
|
package/es2020/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/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,0BAA0B,CAAC;AAC9D,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAC,wBAAwB,EAAC,MAAM,+DAA+D,CAAC;AACvG,OAAO,EAAC,0BAA0B,EAAC,MAAM,sFAAsF,CAAC;AAChI,OAAO,EAAC,uBAAuB,EAAC,MAAM,8DAA8D,CAAC;AACrG,OAAO,EAAC,wBAAwB,EAAC,MAAM,gEAAgE,CAAC;AACxG,OAAO,EAAC,6BAA6B,EAAC,MAAM,yCAAyC,CAAC;AACtF,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;AAExG,OAAO,EAAC,wBAAwB,EAAC,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAC,iBAAiB,EAAC,MAAM,kDAAkD,CAAC;AACnF,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAC,aAAa,EAAC,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAC,6BAA6B,EAAmB,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAC,6BAA6B,EAAmB,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAC,2BAA2B,EAAqB,MAAM,+BAA+B,CAAC;AAE9F,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,UAAU,EAAE,uBAAuB,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AACjF,OAAO,EAAC,6BAA6B,EAAE,mBAAmB,EAAC,MAAM,8DAA8D,CAAC;AAChI,OAAO,EAAC,qBAAqB,EAAE,2BAA2B,EAAE,YAAY,EAAE,oBAAoB,EAAiB,oBAAoB,EAAuF,MAAM,0BAA0B,CAAC;AAC3P,cAAc,sBAAsB,CAAC;AAErC,sBAAsB;AACtB,0BAA0B","sourcesContent":["export {GlobalizationService} from './services/globalization/globalization.service';\nexport {CommonDynamicModule} from './modules/commonDynamic.module';\nexport {CommonLocalizeModule} from './modules/commonLocalize';\nexport {CommonUtilsModule} from './modules/commonUtils.module';\nexport * from './modules/goBack';\nexport {ProgressIndicatorOptions} from './modules/progressIndicator/services/progressIndicatorOptions';\nexport {ProgressIndicatorComponent} from './modules/progressIndicator/components/progressIndicator/progressIndicator.component';\nexport {ProgressIndicatorModule} from './modules/progressIndicator/modules/progressIndicator.module';\nexport {ProgressIndicatorService} from './modules/progressIndicator/services/progressIndicator.service';\nexport {PROGRESS_INDICATOR_GROUP_NAME} from './modules/progressIndicator/misc/tokens';\nexport {DebugDataModule} from './modules/debugData/modules/debugData.module';\nexport {DebugDataComponent} from './modules/debugData/components/debugData/debugData.component';\nexport {DebugDataEnabledService} from './modules/debugData/services/debugDataEnabled/debugDataEnabled.service';\nexport {ClickOutsideDirective} from './modules/clickOutside/directives/clickOutside/clickOutside.directive';\nexport {ClickOutsideModule} from './modules/clickOutside/modules/clickOutside.module';\nexport {MultiButtonComponent} from './modules/multiButton/components/multiButton/multiButton.component';\nexport {MultiButtonCssClasses} from './modules/multiButton/components/multiButton/multiButton.interface';\nexport {MULTI_BUTTON_CSS_CLASSES} from './modules/multiButton/misc/tokens';\nexport {MultiButtonModule} from './modules/multiButton/modules/multiButton.module';\nexport * from './types/tokens';\nexport * from './utils';\nexport * from './pipes';\nexport {CookieService} from './services/cookies/cookies.service';\nexport {StatusCodeService} from './services/statusCode/statusCode.service';\nexport {CookiePermanentStorageService, PermanentStorage} from './services/permanentStorage';\nexport {MemoryTemporaryStorageService, TemporaryStorage} from './services/temporaryStorage';\nexport {NoStringLocalizationService, StringLocalization} from './services/stringLocalization';\nexport {Logger} from './services/logger';\nexport {NgComponentOutletEx} from './directives/ngComponentOutletEx/ngComponentOutletEx.directive';\nexport {APP_STABLE, extractAppStableResolve, runWhenModuleStable} from './utils';\nexport {PROGRESS_INTERCEPTOR_PROVIDER, ProgressInterceptor} from './modules/progressIndicator/interceptors/progressInterceptor';\nexport {DEFAULT_NOTIFICATIONS, DefaultNotificationsService, Notification, NotificationSeverity, Notifications, NotificationsOptions, NotificationsProvider, NotificationsScopeProvider, NotificationsScopeProviderFactory} from './services/notifications';\nexport * from './services/alignment';\n\n//TODO: any to unknown\n//TODO: strict null checks"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { NgComponentOutletEx } from '../directives/ngComponentOutletEx/ngComponentOutletEx.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Module for common dynamic stuff
|
|
6
|
+
*/
|
|
7
|
+
export class CommonDynamicModule {
|
|
8
|
+
}
|
|
9
|
+
CommonDynamicModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommonDynamicModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
+
CommonDynamicModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommonDynamicModule, declarations: [NgComponentOutletEx], exports: [NgComponentOutletEx] });
|
|
11
|
+
CommonDynamicModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommonDynamicModule });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommonDynamicModule, decorators: [{
|
|
13
|
+
type: NgModule,
|
|
14
|
+
args: [{
|
|
15
|
+
declarations: [
|
|
16
|
+
NgComponentOutletEx,
|
|
17
|
+
],
|
|
18
|
+
exports: [
|
|
19
|
+
NgComponentOutletEx,
|
|
20
|
+
]
|
|
21
|
+
}]
|
|
22
|
+
}] });
|
|
23
|
+
//# sourceMappingURL=commonDynamic.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commonDynamic.module.js","sourceRoot":"","sources":["../../../src/modules/commonDynamic.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,mBAAmB,EAAC,MAAM,iEAAiE,CAAC;;AAEpG;;GAEG;AAYH,MAAM,OAAO,mBAAmB;;gHAAnB,mBAAmB;iHAAnB,mBAAmB,iBAPxB,mBAAmB,aAInB,mBAAmB;iHAGd,mBAAmB;2FAAnB,mBAAmB;kBAX/B,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,mBAAmB;qBACtB;oBACD,OAAO,EACP;wBACI,mBAAmB;qBACtB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {NgComponentOutletEx} from '../directives/ngComponentOutletEx/ngComponentOutletEx.directive';\n\n/**\n * Module for common dynamic stuff\n */\n@NgModule(\n{\n declarations:\n [\n NgComponentOutletEx,\n ],\n exports: \n [\n NgComponentOutletEx,\n ]\n})\nexport class CommonDynamicModule\n{\n}"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { LocalizePipe } from '../pipes/localize/localize.pipe';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Module for common localization stuff
|
|
6
|
+
*/
|
|
7
|
+
export class CommonLocalizeModule {
|
|
8
|
+
}
|
|
9
|
+
CommonLocalizeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommonLocalizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
+
CommonLocalizeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommonLocalizeModule, declarations: [LocalizePipe], exports: [LocalizePipe] });
|
|
11
|
+
CommonLocalizeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommonLocalizeModule });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommonLocalizeModule, decorators: [{
|
|
13
|
+
type: NgModule,
|
|
14
|
+
args: [{
|
|
15
|
+
declarations: [
|
|
16
|
+
LocalizePipe,
|
|
17
|
+
],
|
|
18
|
+
exports: [
|
|
19
|
+
LocalizePipe,
|
|
20
|
+
]
|
|
21
|
+
}]
|
|
22
|
+
}] });
|
|
23
|
+
//# sourceMappingURL=commonLocalize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commonLocalize.js","sourceRoot":"","sources":["../../../src/modules/commonLocalize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAC;;AAE7D;;GAEG;AAYH,MAAM,OAAO,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBAPzB,YAAY,aAIZ,YAAY;kHAGP,oBAAoB;2FAApB,oBAAoB;kBAXhC,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,YAAY;qBACf;oBACD,OAAO,EACP;wBACI,YAAY;qBACf;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {LocalizePipe} from '../pipes/localize/localize.pipe';\n\n/**\n * Module for common localization stuff\n */\n@NgModule(\n{\n declarations:\n [\n LocalizePipe,\n ],\n exports: \n [\n LocalizePipe,\n ]\n})\nexport class CommonLocalizeModule\n{\n}"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { IsNaNPipe, IsPresentPipe, UrlEncodePipe, MergeCssClassesPipe } from '../pipes';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Module for common utility stuff
|
|
6
|
+
*/
|
|
7
|
+
export class CommonUtilsModule {
|
|
8
|
+
}
|
|
9
|
+
CommonUtilsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommonUtilsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
+
CommonUtilsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommonUtilsModule, declarations: [IsNaNPipe,
|
|
11
|
+
IsPresentPipe,
|
|
12
|
+
UrlEncodePipe,
|
|
13
|
+
MergeCssClassesPipe], exports: [IsNaNPipe,
|
|
14
|
+
IsPresentPipe,
|
|
15
|
+
UrlEncodePipe,
|
|
16
|
+
MergeCssClassesPipe] });
|
|
17
|
+
CommonUtilsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommonUtilsModule });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommonUtilsModule, decorators: [{
|
|
19
|
+
type: NgModule,
|
|
20
|
+
args: [{
|
|
21
|
+
declarations: [
|
|
22
|
+
IsNaNPipe,
|
|
23
|
+
IsPresentPipe,
|
|
24
|
+
UrlEncodePipe,
|
|
25
|
+
MergeCssClassesPipe,
|
|
26
|
+
],
|
|
27
|
+
exports: [
|
|
28
|
+
IsNaNPipe,
|
|
29
|
+
IsPresentPipe,
|
|
30
|
+
UrlEncodePipe,
|
|
31
|
+
MergeCssClassesPipe,
|
|
32
|
+
]
|
|
33
|
+
}]
|
|
34
|
+
}] });
|
|
35
|
+
//# sourceMappingURL=commonUtils.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commonUtils.module.js","sourceRoot":"","sources":["../../../src/modules/commonUtils.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,UAAU,CAAC;;AAEtF;;GAEG;AAkBH,MAAM,OAAO,iBAAiB;;8GAAjB,iBAAiB;+GAAjB,iBAAiB,iBAbtB,SAAS;QACT,aAAa;QACb,aAAa;QACb,mBAAmB,aAInB,SAAS;QACT,aAAa;QACb,aAAa;QACb,mBAAmB;+GAGd,iBAAiB;2FAAjB,iBAAiB;kBAjB7B,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,SAAS;wBACT,aAAa;wBACb,aAAa;wBACb,mBAAmB;qBACtB;oBACD,OAAO,EACP;wBACI,SAAS;wBACT,aAAa;wBACb,aAAa;wBACb,mBAAmB;qBACtB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {IsNaNPipe, IsPresentPipe, UrlEncodePipe, MergeCssClassesPipe} from '../pipes';\n\n/**\n * Module for common utility stuff\n */\n@NgModule(\n{\n declarations:\n [\n IsNaNPipe,\n IsPresentPipe,\n UrlEncodePipe,\n MergeCssClassesPipe,\n ],\n exports: \n [\n IsNaNPipe,\n IsPresentPipe,\n UrlEncodePipe,\n MergeCssClassesPipe,\n ]\n})\nexport class CommonUtilsModule\n{\n}"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Directive, HostListener } from '@angular/core';
|
|
2
|
+
import { Location } from '@angular/common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
/**
|
|
6
|
+
* Directive that performs browser back button action on click
|
|
7
|
+
*/
|
|
8
|
+
export class GoBackDirective {
|
|
9
|
+
//######################### constructor #########################
|
|
10
|
+
constructor(_location) {
|
|
11
|
+
this._location = _location;
|
|
12
|
+
}
|
|
13
|
+
//######################### public methods - host #########################
|
|
14
|
+
/**
|
|
15
|
+
* Navigates back in browser
|
|
16
|
+
* @param event - Mouse event that occured
|
|
17
|
+
*/
|
|
18
|
+
goBack(event) {
|
|
19
|
+
event.preventDefault();
|
|
20
|
+
event.stopPropagation();
|
|
21
|
+
this._location.back();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
GoBackDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GoBackDirective, deps: [{ token: i1.Location }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
+
GoBackDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: GoBackDirective, selector: "[goBack]", host: { listeners: { "click": "goBack($event)" } }, ngImport: i0 });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GoBackDirective, decorators: [{
|
|
27
|
+
type: Directive,
|
|
28
|
+
args: [{
|
|
29
|
+
selector: '[goBack]'
|
|
30
|
+
}]
|
|
31
|
+
}], ctorParameters: function () { return [{ type: i1.Location }]; }, propDecorators: { goBack: [{
|
|
32
|
+
type: HostListener,
|
|
33
|
+
args: ['click', ['$event']]
|
|
34
|
+
}] } });
|
|
35
|
+
//# sourceMappingURL=goBack.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goBack.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/goBack/directives/goBack/goBack.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;;;AAEzC;;GAEG;AAKH,MAAM,OAAO,eAAe;IAExB,iEAAiE;IACjE,YAAoB,SAAmB;QAAnB,cAAS,GAAT,SAAS,CAAU;IAEvC,CAAC;IAED,2EAA2E;IAE3E;;;OAGG;IAEI,MAAM,CAAC,KAAiB;QAE3B,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;QAExB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1B,CAAC;;4GApBQ,eAAe;gGAAf,eAAe;2FAAf,eAAe;kBAJ3B,SAAS;mBACV;oBACI,QAAQ,EAAE,UAAU;iBACvB;+FAeU,MAAM;sBADZ,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import {Directive, HostListener} from '@angular/core';\nimport {Location} from '@angular/common';\n\n/**\n * Directive that performs browser back button action on click\n */\n@Directive(\n{\n selector: '[goBack]'\n})\nexport class GoBackDirective\n{\n //######################### constructor #########################\n constructor(private _location: Location)\n {\n }\n\n //######################### public methods - host #########################\n\n /**\n * Navigates back in browser\n * @param event - Mouse event that occured\n */\n @HostListener('click', ['$event'])\n public goBack(event: MouseEvent): void\n {\n event.preventDefault();\n event.stopPropagation();\n\n this._location.back();\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/goBack/directives/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC","sourcesContent":["export * from './goBack/goBack.directive';"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/goBack/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC","sourcesContent":["export * from './modules';\nexport * from './directives';\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { GoBackDirective } from '../directives';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Module for GoBack directive
|
|
6
|
+
*/
|
|
7
|
+
export class GoBackModule {
|
|
8
|
+
}
|
|
9
|
+
GoBackModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GoBackModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
+
GoBackModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GoBackModule, declarations: [GoBackDirective], exports: [GoBackDirective] });
|
|
11
|
+
GoBackModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GoBackModule });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: GoBackModule, decorators: [{
|
|
13
|
+
type: NgModule,
|
|
14
|
+
args: [{
|
|
15
|
+
declarations: [
|
|
16
|
+
GoBackDirective
|
|
17
|
+
],
|
|
18
|
+
exports: [
|
|
19
|
+
GoBackDirective
|
|
20
|
+
]
|
|
21
|
+
}]
|
|
22
|
+
}] });
|
|
23
|
+
//# sourceMappingURL=goBack.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goBack.module.js","sourceRoot":"","sources":["../../../../../src/modules/goBack/modules/goBack.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;;AAE9C;;GAEG;AAYH,MAAM,OAAO,YAAY;;yGAAZ,YAAY;0GAAZ,YAAY,iBAPjB,eAAe,aAIf,eAAe;0GAGV,YAAY;2FAAZ,YAAY;kBAXxB,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,eAAe;qBAClB;oBACD,OAAO,EACP;wBACI,eAAe;qBAClB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {GoBackDirective} from '../directives';\n\n/**\n * Module for GoBack directive\n */\n@NgModule(\n{\n declarations:\n [\n GoBackDirective\n ],\n exports:\n [\n GoBackDirective\n ]\n})\nexport class GoBackModule\n{\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/goBack/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC","sourcesContent":["export * from './goBack.module';"]}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { Injectable
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
2
|
import { HttpEventType, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
3
3
|
import { tap } from 'rxjs/operators';
|
|
4
4
|
import { ProgressIndicatorService } from '../services/progressIndicator.service';
|
|
5
|
-
import {
|
|
5
|
+
import { PROGRESS_INDICATOR_GROUP_NAME } from '../misc/tokens';
|
|
6
|
+
import { IGNORED_INTERCEPTORS } from '../../../types/tokens';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
import * as i1 from "../services/progressIndicator.service";
|
|
8
|
-
import * as i2 from "../../../services/ignoredInterceptors/ignoredInterceptors.service";
|
|
9
9
|
/**
|
|
10
10
|
* ProgressInterceptor used for intercepting http requests and displaying progress indicatior
|
|
11
11
|
*/
|
|
12
12
|
export class ProgressInterceptor {
|
|
13
13
|
//######################### constructors #########################
|
|
14
|
-
constructor(_indicatorSvc
|
|
14
|
+
constructor(_indicatorSvc) {
|
|
15
15
|
this._indicatorSvc = _indicatorSvc;
|
|
16
|
-
this._ignoredInterceptorsService = _ignoredInterceptorsService;
|
|
17
16
|
}
|
|
18
17
|
//######################### public methods - implementation of HttpInterceptor #########################
|
|
19
18
|
/**
|
|
@@ -24,27 +23,26 @@ export class ProgressInterceptor {
|
|
|
24
23
|
intercept(req, next) {
|
|
25
24
|
return next.handle(req)
|
|
26
25
|
.pipe(tap(event => {
|
|
27
|
-
|
|
26
|
+
//interceptor is ignored
|
|
27
|
+
if (req.context.get(IGNORED_INTERCEPTORS).some(itm => itm == ProgressInterceptor)) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
//request started
|
|
31
31
|
if (event.type == HttpEventType.Sent) {
|
|
32
|
-
this._indicatorSvc.showProgress(req.
|
|
32
|
+
this._indicatorSvc.showProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME));
|
|
33
33
|
}
|
|
34
34
|
//response received
|
|
35
35
|
else if (event.type == HttpEventType.Response) {
|
|
36
|
-
this._indicatorSvc.hideProgress(req.
|
|
36
|
+
this._indicatorSvc.hideProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME));
|
|
37
37
|
}
|
|
38
|
-
}, () => this._indicatorSvc.hideProgress(req.
|
|
38
|
+
}, () => this._indicatorSvc.hideProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME))));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
ProgressInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProgressInterceptor, deps: [{ token: i1.ProgressIndicatorService }
|
|
41
|
+
ProgressInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProgressInterceptor, deps: [{ token: i1.ProgressIndicatorService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
42
42
|
ProgressInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProgressInterceptor });
|
|
43
43
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProgressInterceptor, decorators: [{
|
|
44
44
|
type: Injectable
|
|
45
|
-
}], ctorParameters: function () { return [{ type: i1.ProgressIndicatorService }
|
|
46
|
-
type: Optional
|
|
47
|
-
}] }]; } });
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.ProgressIndicatorService }]; } });
|
|
48
46
|
/**
|
|
49
47
|
* Progress interceptor provider
|
|
50
48
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progressInterceptor.js","sourceRoot":"","sources":["../../../../../src/modules/progressIndicator/interceptors/progressInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"progressInterceptor.js","sourceRoot":"","sources":["../../../../../src/modules/progressIndicator/interceptors/progressInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAgB,MAAM,eAAe,CAAC;AACxD,OAAO,EAA0C,aAAa,EAAE,iBAAiB,EAAc,MAAM,sBAAsB,CAAC;AAE5H,OAAO,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AAEnC,OAAO,EAAC,wBAAwB,EAAC,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAC,6BAA6B,EAAC,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAC,oBAAoB,EAAC,MAAM,uBAAuB,CAAC;;;AAE3D;;GAEG;AAEH,MAAM,OAAO,mBAAmB;IAE5B,kEAAkE;IAClE,YAAoB,aAAuC;QAAvC,kBAAa,GAAb,aAAa,CAA0B;IAE3D,CAAC;IAED,wGAAwG;IAExG;;;;OAIG;IACI,SAAS,CAAC,GAAyB,EAAE,IAAiB;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;aAClB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;YAEd,wBAAwB;YACxB,IAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,mBAAmB,CAAC,EAChF;gBACI,OAAO;aACV;YAED,iBAAiB;YACjB,IAAG,KAAK,CAAC,IAAI,IAAI,aAAa,CAAC,IAAI,EACnC;gBACI,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC,CAAC;aACnF;YACD,mBAAmB;iBACd,IAAG,KAAK,CAAC,IAAI,IAAI,aAAa,CAAC,QAAQ,EAC5C;gBACI,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC,CAAC;aACnF;QACL,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC,CAAC,CAAC,CAAC;IACnG,CAAC;;gHApCQ,mBAAmB;oHAAnB,mBAAmB;2FAAnB,mBAAmB;kBAD/B,UAAU;;AAwCX;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAC1C;IACI,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,mBAAmB;IAC7B,KAAK,EAAE,IAAI;CACd,CAAC","sourcesContent":["import {Injectable, ClassProvider} from '@angular/core';\nimport {HttpEvent, HttpInterceptor, HttpHandler, HttpEventType, HTTP_INTERCEPTORS, HttpRequest} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\nimport {ProgressIndicatorService} from '../services/progressIndicator.service';\nimport {PROGRESS_INDICATOR_GROUP_NAME} from '../misc/tokens';\nimport {IGNORED_INTERCEPTORS} from '../../../types/tokens';\n\n/**\n * ProgressInterceptor used for intercepting http requests and displaying progress indicatior\n */\n@Injectable()\nexport class ProgressInterceptor implements HttpInterceptor\n{\n //######################### constructors #########################\n constructor(private _indicatorSvc: ProgressIndicatorService)\n {\n }\n\n //######################### public methods - implementation of HttpInterceptor #########################\n\n /**\n * Intercepts http request\n * @param req - Request to be intercepted\n * @param next - Next middleware that can be called for next processing\n */\n public intercept(req: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>\n {\n return next.handle(req)\n .pipe(tap(event =>\n {\n //interceptor is ignored\n if(req.context.get(IGNORED_INTERCEPTORS).some(itm => itm == ProgressInterceptor))\n {\n return;\n }\n\n //request started\n if(event.type == HttpEventType.Sent)\n {\n this._indicatorSvc.showProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME));\n }\n //response received\n else if(event.type == HttpEventType.Response)\n {\n this._indicatorSvc.hideProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME));\n }\n }, () => this._indicatorSvc.hideProgress(req.context.get(PROGRESS_INDICATOR_GROUP_NAME))));\n }\n}\n\n/**\n * Progress interceptor provider\n */\nexport const PROGRESS_INTERCEPTOR_PROVIDER: ClassProvider = \n{\n provide: HTTP_INTERCEPTORS, \n useClass: ProgressInterceptor, \n multi: true\n};"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HttpContextToken } from '@angular/common/http';
|
|
2
|
+
/**
|
|
3
|
+
* Token used for passing progress indicator group name for local progress indicator
|
|
4
|
+
*/
|
|
5
|
+
export const PROGRESS_INDICATOR_GROUP_NAME = new HttpContextToken(() => null);
|
|
6
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../../src/modules/progressIndicator/misc/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAA6B,IAAI,gBAAgB,CAAS,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC","sourcesContent":["import {HttpContextToken} from '@angular/common/http';\n\n/**\n * Token used for passing progress indicator group name for local progress indicator\n */\nexport const PROGRESS_INDICATOR_GROUP_NAME: HttpContextToken<string> = new HttpContextToken<string>(() => null);\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule
|
|
3
|
-
import {
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { CommonLocalizeModule } from '../../commonLocalize';
|
|
4
4
|
import { ProgressIndicatorComponent } from '../components/progressIndicator/progressIndicator.component';
|
|
5
5
|
import { ProgressOverlayDirective } from '../directives/progressOverlay/progressOverlay.directive';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -11,19 +11,19 @@ export class ProgressIndicatorModule {
|
|
|
11
11
|
}
|
|
12
12
|
ProgressIndicatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProgressIndicatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13
13
|
ProgressIndicatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProgressIndicatorModule, declarations: [ProgressIndicatorComponent,
|
|
14
|
-
ProgressOverlayDirective], imports: [
|
|
15
|
-
|
|
14
|
+
ProgressOverlayDirective], imports: [CommonModule,
|
|
15
|
+
CommonLocalizeModule], exports: [ProgressIndicatorComponent,
|
|
16
16
|
ProgressOverlayDirective] });
|
|
17
17
|
ProgressIndicatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProgressIndicatorModule, imports: [[
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
CommonModule,
|
|
19
|
+
CommonLocalizeModule,
|
|
20
20
|
]] });
|
|
21
21
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ProgressIndicatorModule, decorators: [{
|
|
22
22
|
type: NgModule,
|
|
23
23
|
args: [{
|
|
24
24
|
imports: [
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
CommonModule,
|
|
26
|
+
CommonLocalizeModule,
|
|
27
27
|
],
|
|
28
28
|
declarations: [
|
|
29
29
|
ProgressIndicatorComponent,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progressIndicator.module.js","sourceRoot":"","sources":["../../../../../src/modules/progressIndicator/modules/progressIndicator.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"progressIndicator.module.js","sourceRoot":"","sources":["../../../../../src/modules/progressIndicator/modules/progressIndicator.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAC,0BAA0B,EAAC,MAAM,6DAA6D,CAAC;AACvG,OAAO,EAAC,wBAAwB,EAAC,MAAM,yDAAyD,CAAC;;AAEjG;;GAEG;AAmBH,MAAM,OAAO,uBAAuB;;oHAAvB,uBAAuB;qHAAvB,uBAAuB,iBAT5B,0BAA0B;QAC1B,wBAAwB,aANxB,YAAY;QACZ,oBAAoB,aASpB,0BAA0B;QAC1B,wBAAwB;qHAGnB,uBAAuB,YAfhC;YACI,YAAY;YACZ,oBAAoB;SACvB;2FAYQ,uBAAuB;kBAlBnC,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;wBACZ,oBAAoB;qBACvB;oBACD,YAAY,EACZ;wBACI,0BAA0B;wBAC1B,wBAAwB;qBAC3B;oBACD,OAAO,EACP;wBACI,0BAA0B;wBAC1B,wBAAwB;qBAC3B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {CommonLocalizeModule} from '../../commonLocalize';\nimport {ProgressIndicatorComponent} from '../components/progressIndicator/progressIndicator.component';\nimport {ProgressOverlayDirective} from '../directives/progressOverlay/progressOverlay.directive';\n\n/**\n * Module for progress indicator\n */\n@NgModule(\n{\n imports:\n [\n CommonModule,\n CommonLocalizeModule,\n ],\n declarations:\n [\n ProgressIndicatorComponent,\n ProgressOverlayDirective\n ],\n exports:\n [\n ProgressIndicatorComponent,\n ProgressOverlayDirective\n ]\n})\nexport class ProgressIndicatorModule\n{\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC","sourcesContent":["export * from './urlEncode/urlEncode.pipe';\nexport * from './isPresent/isPresent.pipe';\nexport * from './isNaN/isNaN.pipe';\nexport * from './localize/localize.pipe'
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wCAAwC,CAAC","sourcesContent":["export * from './urlEncode/urlEncode.pipe';\nexport * from './isPresent/isPresent.pipe';\nexport * from './isNaN/isNaN.pipe';\nexport * from './localize/localize.pipe';\nexport * from './mergeCssClasses/mergeCssClasses.pipe';\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import { isString } from '@jscrpt/common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Merges css classes that will be passed to ngClass
|
|
6
|
+
*/
|
|
7
|
+
export class MergeCssClassesPipe {
|
|
8
|
+
/**
|
|
9
|
+
* Merges css classes that will be passed to ngClass
|
|
10
|
+
* @param value - Css class to be merged
|
|
11
|
+
* @param mergeClasses - Definition of css classes that will be merged
|
|
12
|
+
*/
|
|
13
|
+
transform(value, mergeClasses) {
|
|
14
|
+
const result = {};
|
|
15
|
+
function updateResult(val) {
|
|
16
|
+
if (isString(val)) {
|
|
17
|
+
result[val] = true;
|
|
18
|
+
}
|
|
19
|
+
else if (Array.isArray(val)) {
|
|
20
|
+
val.forEach(cssClass => {
|
|
21
|
+
result[cssClass] = true;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
Object.keys(val).forEach(cssClass => {
|
|
26
|
+
result[cssClass] = val[cssClass];
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
updateResult(value);
|
|
31
|
+
mergeClasses.forEach(itm => {
|
|
32
|
+
updateResult(itm);
|
|
33
|
+
});
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
MergeCssClassesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MergeCssClassesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
38
|
+
MergeCssClassesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MergeCssClassesPipe, name: "mergeCssClasses" });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MergeCssClassesPipe, decorators: [{
|
|
40
|
+
type: Pipe,
|
|
41
|
+
args: [{ name: 'mergeCssClasses' }]
|
|
42
|
+
}] });
|
|
43
|
+
//# sourceMappingURL=mergeCssClasses.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeCssClasses.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/mergeCssClasses/mergeCssClasses.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAa,QAAQ,EAAC,MAAM,gBAAgB,CAAC;;AAOpD;;GAEG;AAEH,MAAM,OAAO,mBAAmB;IAE5B;;;;OAIG;IACI,SAAS,CAAC,KAAkB,EAAE,YAA2B;QAE5D,MAAM,MAAM,GAAwB,EAAE,CAAC;QAEvC,SAAS,YAAY,CAAC,GAAgB;YAElC,IAAG,QAAQ,CAAC,GAAG,CAAC,EAChB;gBACI,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;aACtB;iBACI,IAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAC1B;gBACI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;oBAEnB,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;gBAC5B,CAAC,CAAC,CAAC;aACN;iBAED;gBACI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;oBAEhC,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC;gBACrC,CAAC,CAAC,CAAC;aACN;QACL,CAAC;QAED,YAAY,CAAC,KAAK,CAAC,CAAC;QAEpB,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAEvB,YAAY,CAAC,GAAG,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAClB,CAAC;;gHAzCQ,mBAAmB;8GAAnB,mBAAmB;2FAAnB,mBAAmB;kBAD/B,IAAI;mBAAC,EAAC,IAAI,EAAE,iBAAiB,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {Dictionary, isString} from '@jscrpt/common';\n\n/**\n * Type of css class definition for NgClass and merge\n */\nexport type NgClassType = string | string[] | Dictionary<boolean>;\n\n/**\n * Merges css classes that will be passed to ngClass\n */\n@Pipe({name: 'mergeCssClasses'})\nexport class MergeCssClassesPipe implements PipeTransform\n{\n /**\n * Merges css classes that will be passed to ngClass\n * @param value - Css class to be merged\n * @param mergeClasses - Definition of css classes that will be merged\n */\n public transform(value: NgClassType, mergeClasses: NgClassType[]): Dictionary<boolean>\n {\n const result: Dictionary<boolean> = {};\n\n function updateResult(val: NgClassType): void\n {\n if(isString(val))\n {\n result[val] = true;\n }\n else if(Array.isArray(val))\n {\n val.forEach(cssClass =>\n {\n result[cssClass] = true;\n });\n }\n else\n {\n Object.keys(val).forEach(cssClass =>\n {\n result[cssClass] = val[cssClass];\n });\n }\n }\n\n updateResult(value);\n\n mergeClasses.forEach(itm =>\n {\n updateResult(itm);\n });\n\n return result;\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alignment.interface.js","sourceRoot":"","sources":["../../../../src/services/alignment/alignment.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Allows absolute alignment (AKA positioning) of one element to another\n */\nexport interface Alignment\n{\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/alignment/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC","sourcesContent":["export * from './alignment.interface';"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { HttpContextToken } from '@angular/common/http';
|
|
2
3
|
import { NoStringLocalizationService } from '../services/stringLocalization';
|
|
3
4
|
import { DummyLoggerService } from '../services/logger';
|
|
4
5
|
import { MemoryTemporaryStorageService } from '../services/temporaryStorage';
|
|
@@ -31,9 +32,9 @@ export const PERMANENT_STORAGE = new InjectionToken('PERMANENT_STORAGE');
|
|
|
31
32
|
*/
|
|
32
33
|
export const TEMPORARY_STORAGE = new InjectionToken('TEMPORARY_STORAGE', { providedIn: 'root', factory: () => new MemoryTemporaryStorageService() });
|
|
33
34
|
/**
|
|
34
|
-
* Token used for injecting positioning
|
|
35
|
+
* Token used for injecting service that is used for absolute alignment (AKA positioning) of one element to another
|
|
35
36
|
*/
|
|
36
|
-
export const
|
|
37
|
+
export const ALIGNMENT = new InjectionToken('ALIGNMENT');
|
|
37
38
|
/**
|
|
38
39
|
* Token used for injecting notifications service implementation
|
|
39
40
|
*/
|
|
@@ -42,4 +43,8 @@ export const NOTIFICATIONS = new InjectionToken('NOTIFICATIONS');
|
|
|
42
43
|
* Token used for injecting notifications scope name
|
|
43
44
|
*/
|
|
44
45
|
export const NOTIFICATIONS_SCOPE = new InjectionToken('NOTIFICATIONS_SCOPE');
|
|
46
|
+
/**
|
|
47
|
+
* Http context token storing array of ignored interceptors types
|
|
48
|
+
*/
|
|
49
|
+
export const IGNORED_INTERCEPTORS = new HttpContextToken(() => []);
|
|
45
50
|
//# sourceMappingURL=tokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/types/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/types/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAO,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAqB,2BAA2B,EAAC,MAAM,gCAAgC,CAAC;AAE/F,OAAO,EAAS,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAmB,6BAA6B,EAAC,MAAM,8BAA8B,CAAC;AAI7F;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA2B,IAAI,cAAc,CAAS,uBAAuB,CAAC,CAAC;AAEjH;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAA2B,IAAI,cAAc,CAAS,4BAA4B,CAAC,CAAC;AAE3H;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAA2B,IAAI,cAAc,CAAS,0BAA0B,CAAC,CAAC;AAEvH;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAA2B,IAAI,cAAc,CAAS,QAAQ,EAAE,EAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,kBAAkB,EAAE,EAAC,CAAC,CAAC;AAElJ;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAuC,IAAI,cAAc,CAAqB,qBAAqB,EAAE,EAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,2BAA2B,EAAE,EAAC,CAAC,CAAC;AAE7M;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqC,IAAI,cAAc,CAAmB,mBAAmB,CAAC,CAAC;AAE7H;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqC,IAAI,cAAc,CAAmB,mBAAmB,EAAE,EAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,6BAA6B,EAAE,EAAC,CAAC,CAAC;AAEvM;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAA8B,IAAI,cAAc,CAAY,WAAW,CAAC,CAAC;AAE/F;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAkC,IAAI,cAAc,CAAgB,eAAe,CAAC,CAAC;AAE/G;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA2B,IAAI,cAAc,CAAS,qBAAqB,CAAC,CAAC;AAE7G;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAsC,IAAI,gBAAgB,CAAkB,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import {InjectionToken, Type} from '@angular/core';\nimport {HttpContextToken} from '@angular/common/http';\n\nimport {StringLocalization, NoStringLocalizationService} from '../services/stringLocalization';\nimport {PermanentStorage} from '../services/permanentStorage';\nimport {Logger, DummyLoggerService} from '../services/logger';\nimport {TemporaryStorage, MemoryTemporaryStorageService} from '../services/temporaryStorage';\nimport {Notifications} from '../services/notifications';\nimport {Alignment} from '../services/alignment';\n\n/**\n * Base url when using HTTP (example: http://localhost:8888/)\n */\nexport const HTTP_REQUEST_BASE_URL: InjectionToken<string> = new InjectionToken<string>('HTTP_REQUEST_BASE_URL');\n\n/**\n * Token is used to transfer http request cookie header\n */\nexport const HTTP_REQUEST_COOKIE_HEADER: InjectionToken<string> = new InjectionToken<string>('HTTP_REQUEST_COOKIE_HEADER');\n\n/**\n * Token is used to transfer http request authentication header\n */\nexport const HTTP_REQUEST_AUTH_HEADER: InjectionToken<string> = new InjectionToken<string>('HTTP_REQUEST_AUTH_HEADER');\n\n/**\n * Token used for injecting Logger implementation\n */\nexport const LOGGER: InjectionToken<Logger> = new InjectionToken<Logger>('LOGGER', {providedIn: 'root', factory: () => new DummyLoggerService()});\n\n/**\n * Token used for injecting StringLocalization service implementation\n */\nexport const STRING_LOCALIZATION: InjectionToken<StringLocalization> = new InjectionToken<StringLocalization>('STRING_LOCALIZATION', {providedIn: 'root', factory: () => new NoStringLocalizationService()});\n\n/**\n * Token used for injecting permanent storage\n */\nexport const PERMANENT_STORAGE: InjectionToken<PermanentStorage> = new InjectionToken<PermanentStorage>('PERMANENT_STORAGE');\n\n/**\n * Token used for injecting temporary storage\n */\nexport const TEMPORARY_STORAGE: InjectionToken<TemporaryStorage> = new InjectionToken<TemporaryStorage>('TEMPORARY_STORAGE', {providedIn: 'root', factory: () => new MemoryTemporaryStorageService()});\n\n/**\n * Token used for injecting service that is used for absolute alignment (AKA positioning) of one element to another\n */\nexport const ALIGNMENT: InjectionToken<Alignment> = new InjectionToken<Alignment>('ALIGNMENT');\n\n/**\n * Token used for injecting notifications service implementation\n */\nexport const NOTIFICATIONS: InjectionToken<Notifications> = new InjectionToken<Notifications>('NOTIFICATIONS');\n\n/**\n * Token used for injecting notifications scope name\n */\nexport const NOTIFICATIONS_SCOPE: InjectionToken<string> = new InjectionToken<string>('NOTIFICATIONS_SCOPE');\n\n/**\n * Http context token storing array of ignored interceptors types\n */\nexport const IGNORED_INTERCEPTORS: HttpContextToken<Type<unknown>[]> = new HttpContextToken<Type<unknown>[]>(() => []);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,cAAc,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAC,MAAM,EAAE,KAAK,EAAC,MAAM,gBAAgB,CAAC;AAE7C;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,gBAA+B;IAEnE,OAAQ,gBAAwB,CAAC,SAAS,CAAC;AAC/C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB;IAEnC,IAAI,gBAAgB,CAAC;IACrB,MAAM,gBAAgB,GAAG,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE,CAAC,gBAAgB,GAAG,OAAO,CAAC,CAAC;IAEjF,gBAAwB,CAAC,SAAS,GAAG,gBAAgB,CAAC;IAEvD,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAkC,IAAI,cAAc,CAAgB,YAAY,EAAE,EAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,EAAC,CAAC,CAAC;AAEjK;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,cAAc,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAC,MAAM,EAAE,KAAK,EAAC,MAAM,gBAAgB,CAAC;AAE7C;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,gBAA+B;IAEnE,OAAQ,gBAAwB,CAAC,SAAS,CAAC;AAC/C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB;IAEnC,IAAI,gBAAgB,CAAC;IACrB,MAAM,gBAAgB,GAAG,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE,CAAC,gBAAgB,GAAG,OAAO,CAAC,CAAC;IAEjF,gBAAwB,CAAC,SAAS,GAAG,gBAAgB,CAAC;IAEvD,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAkC,IAAI,cAAc,CAAgB,YAAY,EAAE,EAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,EAAC,CAAC,CAAC;AAEjK;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,gBAA+C,EAAE,QAAmD,EAAE,eAAyB;IAE/J,eAAe,GAAG,eAAe,IAAI,KAAK,CAAC;IAE3C,gBAAgB,CAAC,IAAI,CAAC,CAAC,SAA+B,EAAE,EAAE;QAEtD,MAAM,MAAM,GAAmB,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAEtE,MAAM,CAAC,QAAQ;aACV,IAAI,CAAC,MAAM,CAAC,CAAC,QAAiB,EAAE,EAAE,CAAC,QAAQ,CAAC,EACvC,KAAK,EAAE,CAAC;aACb,SAAS,CAAC,GAAG,EAAE;YAEZ,MAAM,gBAAgB,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YAE5D,IAAG,eAAe,EAClB;gBACI,gBAAgB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;aAC1C;YAED,QAAQ,CAAC,SAAS,CAAC,CAAC;YAEpB,IAAG,gBAAgB,EACnB;gBACI,MAAM,eAAe,GAAG,uBAAuB,CAAC,gBAAgB,CAAC,CAAC;gBAElE,eAAe,EAAE,CAAC;aACrB;QACL,CAAC,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;AACP,CAAC","sourcesContent":["import {NgModuleRef, ApplicationRef, InjectionToken} from '@angular/core';\nimport {enableDebugTools} from '@angular/platform-browser';\nimport {filter, first} from 'rxjs/operators';\n\n/**\n * Method used for extraction of resolve method for promise\n * @param appStablePromise - Promise which contains resolve method that is going to be extracted\n */\nexport function extractAppStableResolve(appStablePromise: Promise<void>): () => void\n{\n return (appStablePromise as any).__resolve;\n}\n\n/**\n * Factory used for creating APP_STABLE promise\n * \n * @internal\n */\nexport function appStablePromiseFactory(): Promise<void>\n{\n let appStableResolve;\n const appStablePromise = new Promise<void>(resolve => appStableResolve = resolve);\n\n (appStablePromise as any).__resolve = appStableResolve;\n\n return appStablePromise;\n}\n\n/**\n * Injection token used for obtaining promise that is resolved when application is first time stable\n */\nexport const APP_STABLE: InjectionToken<Promise<void>> = new InjectionToken<Promise<void>>('APP_STABLE', {providedIn: 'root', factory: appStablePromiseFactory});\n\n/**\n * Runs callback function when angular module is bootstrapped and stable\n * @param moduleRefPromise - Promise for module that was bootstrapped\n * @param callback - Callback that is called\n * @param angularProfiler - Indication that angular profiler should be enabled\n */\nexport function runWhenModuleStable(moduleRefPromise: Promise<NgModuleRef<unknown>>, callback: (moduleRef: NgModuleRef<unknown>) => void, angularProfiler?: boolean): void\n{\n angularProfiler = angularProfiler || false;\n\n moduleRefPromise.then((moduleRef: NgModuleRef<unknown>) => \n {\n const appRef: ApplicationRef = moduleRef.injector.get(ApplicationRef);\n\n appRef.isStable\n .pipe(filter((isStable: boolean) => isStable),\n first())\n .subscribe(() => \n {\n const appStablePromise = moduleRef.injector.get(APP_STABLE);\n\n if(angularProfiler)\n {\n enableDebugTools(appRef.components[0]);\n }\n\n callback(moduleRef);\n\n if(appStablePromise)\n {\n const resolveAsStable = extractAppStableResolve(appStablePromise);\n\n resolveAsStable();\n }\n });\n });\n}"]}
|
|
@@ -105,7 +105,7 @@ export declare class ConfirmationDialogDirective {
|
|
|
105
105
|
*/
|
|
106
106
|
export declare class ConfirmationDialogModule {
|
|
107
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogModule, never>;
|
|
108
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ConfirmationDialogModule, [typeof i1_3.ConfirmationDialogComponent, typeof i2_2.ConfirmationDialogDirective], [typeof i3_2.CommonModule, typeof i2.
|
|
108
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ConfirmationDialogModule, [typeof i1_3.ConfirmationDialogComponent, typeof i2_2.ConfirmationDialogDirective], [typeof i3_2.CommonModule, typeof i2.CommonLocalizeModule, typeof i5.TitledDialogModule], [typeof i2_2.ConfirmationDialogDirective]>;
|
|
109
109
|
static ɵinj: i0.ɵɵInjectorDeclaration<ConfirmationDialogModule>;
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -222,7 +222,7 @@ export declare interface TitledDialogConfig<TData> extends MatDialogConfig<TData
|
|
|
222
222
|
*/
|
|
223
223
|
export declare class TitledDialogModule {
|
|
224
224
|
static ɵfac: i0.ɵɵFactoryDeclaration<TitledDialogModule, never>;
|
|
225
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TitledDialogModule, [typeof i1.TitledDialogComponent], [typeof i2.
|
|
225
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TitledDialogModule, [typeof i1.TitledDialogComponent], [typeof i2.CommonLocalizeModule, typeof i3.MatDialogModule], never>;
|
|
226
226
|
static ɵinj: i0.ɵɵInjectorDeclaration<TitledDialogModule>;
|
|
227
227
|
}
|
|
228
228
|
|