@anglr/common 10.0.0 → 11.0.0

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.
Files changed (62) hide show
  1. package/changelog.md +19 -0
  2. package/es2015/material/src/components/titledDialog/titledDialog.component.js +12 -8
  3. package/es2015/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
  4. package/es2015/material/src/modules/titledDialog.module.js +7 -4
  5. package/es2015/material/src/modules/titledDialog.module.js.map +1 -1
  6. package/es2015/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +1 -0
  7. package/es2015/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
  8. package/es2020/material/src/components/titledDialog/titledDialog.component.js +12 -8
  9. package/es2020/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
  10. package/es2020/material/src/modules/titledDialog.module.js +7 -4
  11. package/es2020/material/src/modules/titledDialog.module.js.map +1 -1
  12. package/es2020/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +1 -0
  13. package/es2020/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
  14. package/material/src/components/titledDialog/titledDialog.component.d.ts.map +1 -1
  15. package/material/src/modules/titledDialog.module.d.ts +1 -1
  16. package/material/src/modules/titledDialog.module.d.ts.map +1 -1
  17. package/package.json +23 -28
  18. package/readme.md +0 -1
  19. package/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.d.ts.map +1 -1
  20. package/version.bak +1 -1
  21. package/common.d.ts +0 -1398
  22. package/common.internal.d.ts +0 -1438
  23. package/date-fns/common-date-fns.d.ts +0 -8
  24. package/date-fns/common-date-fns.internal.d.ts +0 -8
  25. package/date-fns/temp/common-date-fns.api.md +0 -12
  26. package/es2015/hmr/src/index.js +0 -35
  27. package/es2015/hmr/src/index.js.map +0 -1
  28. package/es2020/hmr/src/index.js +0 -35
  29. package/es2020/hmr/src/index.js.map +0 -1
  30. package/forms/common-forms.d.ts +0 -966
  31. package/forms/common-forms.internal.d.ts +0 -966
  32. package/forms/temp/common-forms.api.md +0 -445
  33. package/hmr/common-hmr.d.ts +0 -6
  34. package/hmr/common-hmr.internal.d.ts +0 -6
  35. package/hmr/package.json +0 -9
  36. package/hmr/src/index.d.ts +0 -6
  37. package/hmr/src/index.d.ts.map +0 -1
  38. package/hmr/temp/common-hmr.api.md +0 -12
  39. package/hotkeys/common-hotkeys.d.ts +0 -53
  40. package/hotkeys/common-hotkeys.internal.d.ts +0 -53
  41. package/hotkeys/temp/common-hotkeys.api.md +0 -25
  42. package/material/common-material.d.ts +0 -264
  43. package/material/common-material.internal.d.ts +0 -278
  44. package/material/temp/common-material.api.md +0 -164
  45. package/moment/common-moment.d.ts +0 -61
  46. package/moment/common-moment.internal.d.ts +0 -61
  47. package/moment/temp/common-moment.api.md +0 -47
  48. package/numeral/common-numeral.d.ts +0 -44
  49. package/numeral/common-numeral.internal.d.ts +0 -44
  50. package/numeral/temp/common-numeral.api.md +0 -37
  51. package/positions/common-positions.d.ts +0 -324
  52. package/positions/common-positions.internal.d.ts +0 -346
  53. package/positions/temp/common-positions.api.md +0 -170
  54. package/router/common-router.d.ts +0 -140
  55. package/router/common-router.internal.d.ts +0 -140
  56. package/router/temp/common-router.api.md +0 -74
  57. package/store/common-store.d.ts +0 -61
  58. package/store/common-store.internal.d.ts +0 -61
  59. package/store/temp/common-store.api.md +0 -37
  60. package/structured-log/common-structured-log.d.ts +0 -418
  61. package/structured-log/common-structured-log.internal.d.ts +0 -418
  62. package/structured-log/temp/common-structured-log.api.md +0 -193
package/changelog.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 11.0.0 (2022-02-22)
4
+
5
+ ### Bug Fixes
6
+
7
+ - fixed `TitledDialogComponent`, now correctly imports `ngComponentOutletEx`
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ - *subpackage* `@anglr/common/hmr`
12
+ - removed whole subpackage
13
+ - replacement for `hmrFinishedNotification` use `simpleNotification` function from `@jscrpt/common`
14
+
15
+ ## Version 10.0.1 (2022-02-22)
16
+
17
+ ### Bug Fixes
18
+
19
+ - fixed typings, not using rolled up typings for now
20
+ - fixed scss entry points
21
+
3
22
  ## Version 10.0.0 (2022-02-15)
4
23
 
5
24
  ### Bug Fixes
@@ -3,7 +3,8 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
3
3
  import { TITLED_DIALOG_DATA } from '../../misc/interfaces/titledDialog.interface';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "@angular/material/dialog";
6
- import * as i2 from "../../../../src/pipes/localize/localize.pipe";
6
+ import * as i2 from "../../../../src/directives/ngComponentOutletEx/ngComponentOutletEx.directive";
7
+ import * as i3 from "../../../../src/pipes/localize/localize.pipe";
7
8
  /**
8
9
  * Component used as wrapper for material dialog enhanced with title
9
10
  */
@@ -12,12 +13,15 @@ export class TitledDialogComponent {
12
13
  constructor(data, dialogRef, injector) {
13
14
  this.data = data;
14
15
  this.dialogRef = dialogRef;
15
- this.injector = Injector.create([
16
- {
17
- provide: TITLED_DIALOG_DATA,
18
- useValue: data.data
19
- }
20
- ], injector);
16
+ this.injector = Injector.create({
17
+ providers: [
18
+ {
19
+ provide: TITLED_DIALOG_DATA,
20
+ useValue: data.data
21
+ }
22
+ ],
23
+ parent: injector
24
+ });
21
25
  }
22
26
  get component() {
23
27
  var _a;
@@ -28,7 +32,7 @@ export class TitledDialogComponent {
28
32
  }
29
33
  }
30
34
  TitledDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
31
- TitledDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TitledDialogComponent, selector: "titled-dialog", ngImport: i0, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"], pipes: { "localize": i2.LocalizePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
35
+ TitledDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TitledDialogComponent, selector: "titled-dialog", ngImport: i0, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"], directives: [{ type: i2.NgComponentOutletEx, selector: "[ngComponentOutletEx]", inputs: ["ngComponentOutletEx", "ngComponentOutletExInjector", "ngComponentOutletExContent"], outputs: ["ngComponentOutletExCreated"], exportAs: ["ngComponentOutletEx"] }], pipes: { "localize": i3.LocalizePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
32
36
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogComponent, decorators: [{
33
37
  type: Component,
34
38
  args: [{ selector: 'titled-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"] }]
@@ -1 +1 @@
1
- {"version":3,"file":"titledDialog.component.js","sourceRoot":"","sources":["../../../../../material/src/components/titledDialog/titledDialog.component.ts","../../../../../material/src/components/titledDialog/titledDialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAiB,WAAW,EAAC,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAGvE,OAAO,EAAuB,kBAAkB,EAAC,MAAM,8CAA8C,CAAC;;;;AAEtG;;GAEG;AAQH,MAAM,OAAO,qBAAqB;IAmB9B,iEAAiE;IACjE,YAA4C,IAA0B,EACnD,SAA6C,EACpD,QAAkB;QAFc,SAAI,GAAJ,IAAI,CAAsB;QACnD,cAAS,GAAT,SAAS,CAAoC;QAG5D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAC/B;YAEI;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,IAAI,CAAC,IAAI;aACtB;SACJ,EAAE,QAAQ,CAAC,CAAC;IACjB,CAAC;IAvBD,IAAW,SAAS;;QAEhB,IAAG,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,sBAAsB,aAAY,WAAW,EAC3D;YACI,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC;IAC5C,CAAC;;kHAjBQ,qBAAqB,kBAoBV,eAAe;sGApB1B,qBAAqB,qDChBlC,gcAUM;2FDMO,qBAAqB;kBAPjC,SAAS;+BAEI,eAAe,mBAGR,uBAAuB,CAAC,MAAM;;0BAsBlC,MAAM;2BAAC,eAAe","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Injector, ValueProvider, TemplateRef} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\nimport {ComponentType} from '@angular/cdk/portal';\n\nimport {ɵTitledDialogOptions, TITLED_DIALOG_DATA} from '../../misc/interfaces/titledDialog.interface';\n\n/**\n * Component used as wrapper for material dialog enhanced with title\n */\n@Component(\n{\n selector: 'titled-dialog',\n templateUrl: 'titledDialog.component.html',\n styleUrls: ['titledDialog.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TitledDialogComponent\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Injector used for creating component or template\n */\n public injector: Injector;\n\n public get component(): ComponentType<any>\n {\n if(this.data?.componentOrTemplateRef instanceof TemplateRef)\n {\n return null;\n }\n\n return this.data.componentOrTemplateRef;\n }\n\n //######################### constructor #########################\n constructor(@Inject(MAT_DIALOG_DATA) public data: ɵTitledDialogOptions,\n public dialogRef: MatDialogRef<ɵTitledDialogOptions>,\n injector: Injector)\n {\n this.injector = Injector.create(\n [\n <ValueProvider>\n {\n provide: TITLED_DIALOG_DATA,\n useValue: data.data\n }\n ], injector);\n }\n}","<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>"]}
1
+ {"version":3,"file":"titledDialog.component.js","sourceRoot":"","sources":["../../../../../material/src/components/titledDialog/titledDialog.component.ts","../../../../../material/src/components/titledDialog/titledDialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAiB,WAAW,EAAC,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAGvE,OAAO,EAAuB,kBAAkB,EAAC,MAAM,8CAA8C,CAAC;;;;;AAEtG;;GAEG;AAQH,MAAM,OAAO,qBAAqB;IAmB9B,iEAAiE;IACjE,YAA4C,IAA0B,EACnD,SAA6C,EACpD,QAAkB;QAFc,SAAI,GAAJ,IAAI,CAAsB;QACnD,cAAS,GAAT,SAAS,CAAoC;QAG5D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAC/B;YACI,SAAS,EACT;gBAEI;oBACI,OAAO,EAAE,kBAAkB;oBAC3B,QAAQ,EAAE,IAAI,CAAC,IAAI;iBACtB;aACJ;YACD,MAAM,EAAE,QAAQ;SACnB,CAAC,CAAC;IACP,CAAC;IA3BD,IAAW,SAAS;;QAEhB,IAAG,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,sBAAsB,aAAY,WAAW,EAC3D;YACI,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC;IAC5C,CAAC;;kHAjBQ,qBAAqB,kBAoBV,eAAe;sGApB1B,qBAAqB,qDChBlC,gcAUM;2FDMO,qBAAqB;kBAPjC,SAAS;+BAEI,eAAe,mBAGR,uBAAuB,CAAC,MAAM;;0BAsBlC,MAAM;2BAAC,eAAe","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Injector, ValueProvider, TemplateRef} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\nimport {ComponentType} from '@angular/cdk/portal';\n\nimport {ɵTitledDialogOptions, TITLED_DIALOG_DATA} from '../../misc/interfaces/titledDialog.interface';\n\n/**\n * Component used as wrapper for material dialog enhanced with title\n */\n@Component(\n{\n selector: 'titled-dialog',\n templateUrl: 'titledDialog.component.html',\n styleUrls: ['titledDialog.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TitledDialogComponent\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Injector used for creating component or template\n */\n public injector: Injector;\n\n public get component(): ComponentType<any>\n {\n if(this.data?.componentOrTemplateRef instanceof TemplateRef)\n {\n return null;\n }\n\n return this.data.componentOrTemplateRef;\n }\n\n //######################### constructor #########################\n constructor(@Inject(MAT_DIALOG_DATA) public data: ɵTitledDialogOptions,\n public dialogRef: MatDialogRef<ɵTitledDialogOptions>,\n injector: Injector)\n {\n this.injector = Injector.create(\n {\n providers:\n [\n <ValueProvider>\n {\n provide: TITLED_DIALOG_DATA,\n useValue: data.data\n }\n ],\n parent: injector\n });\n }\n}","<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>"]}
@@ -1,6 +1,6 @@
1
1
  import { NgModule } from '@angular/core';
2
2
  import { MatDialogModule } from '@angular/material/dialog';
3
- import { CommonLocalizeModule } from '@anglr/common';
3
+ import { CommonDynamicModule, CommonLocalizeModule } from '@anglr/common';
4
4
  import { TitledDialogComponent } from '../components/titledDialog/titledDialog.component';
5
5
  import { TitledDialogService } from '../services/titledDialog/titledDialog.service';
6
6
  import * as i0 from "@angular/core";
@@ -10,20 +10,23 @@ import * as i0 from "@angular/core";
10
10
  export class TitledDialogModule {
11
11
  }
12
12
  TitledDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
13
- TitledDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, declarations: [TitledDialogComponent], imports: [CommonLocalizeModule,
13
+ TitledDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, declarations: [TitledDialogComponent], imports: [CommonDynamicModule,
14
+ CommonLocalizeModule,
14
15
  MatDialogModule] });
15
16
  TitledDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, providers: [
16
17
  TitledDialogService
17
18
  ], imports: [[
19
+ CommonDynamicModule,
18
20
  CommonLocalizeModule,
19
- MatDialogModule
21
+ MatDialogModule,
20
22
  ]] });
21
23
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, decorators: [{
22
24
  type: NgModule,
23
25
  args: [{
24
26
  imports: [
27
+ CommonDynamicModule,
25
28
  CommonLocalizeModule,
26
- MatDialogModule
29
+ MatDialogModule,
27
30
  ],
28
31
  declarations: [
29
32
  TitledDialogComponent
@@ -1 +1 @@
1
- {"version":3,"file":"titledDialog.module.js","sourceRoot":"","sources":["../../../../material/src/modules/titledDialog.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAC,mBAAmB,EAAC,MAAM,+CAA+C,CAAC;;AAElF;;GAEG;AAiBH,MAAM,OAAO,kBAAkB;;+GAAlB,kBAAkB;gHAAlB,kBAAkB,iBAPvB,qBAAqB,aALrB,oBAAoB;QACpB,eAAe;gHAWV,kBAAkB,aAJ3B;QACI,mBAAmB;KACtB,YAXD;YACI,oBAAoB;YACpB,eAAe;SAClB;2FAUQ,kBAAkB;kBAhB9B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,oBAAoB;wBACpB,eAAe;qBAClB;oBACD,YAAY,EACZ;wBACI,qBAAqB;qBACxB;oBACD,SAAS,EACT;wBACI,mBAAmB;qBACtB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {MatDialogModule} from '@angular/material/dialog';\nimport {CommonLocalizeModule} from '@anglr/common';\n\nimport {TitledDialogComponent} from '../components/titledDialog/titledDialog.component';\nimport {TitledDialogService} from '../services/titledDialog/titledDialog.service';\n\n/**\n * Module for components and service for displaying titled dialog\n */\n@NgModule(\n{\n imports:\n [\n CommonLocalizeModule,\n MatDialogModule\n ],\n declarations:\n [\n TitledDialogComponent\n ],\n providers:\n [\n TitledDialogService\n ]\n})\nexport class TitledDialogModule\n{\n}"]}
1
+ {"version":3,"file":"titledDialog.module.js","sourceRoot":"","sources":["../../../../material/src/modules/titledDialog.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,mBAAmB,EAAE,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAExE,OAAO,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAC,mBAAmB,EAAC,MAAM,+CAA+C,CAAC;;AAElF;;GAEG;AAkBH,MAAM,OAAO,kBAAkB;;+GAAlB,kBAAkB;gHAAlB,kBAAkB,iBAPvB,qBAAqB,aANrB,mBAAmB;QACnB,oBAAoB;QACpB,eAAe;gHAWV,kBAAkB,aAJ3B;QACI,mBAAmB;KACtB,YAZD;YACI,mBAAmB;YACnB,oBAAoB;YACpB,eAAe;SAClB;2FAUQ,kBAAkB;kBAjB9B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,mBAAmB;wBACnB,oBAAoB;wBACpB,eAAe;qBAClB;oBACD,YAAY,EACZ;wBACI,qBAAqB;qBACxB;oBACD,SAAS,EACT;wBACI,mBAAmB;qBACtB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {MatDialogModule} from '@angular/material/dialog';\nimport {CommonDynamicModule, CommonLocalizeModule} from '@anglr/common';\n\nimport {TitledDialogComponent} from '../components/titledDialog/titledDialog.component';\nimport {TitledDialogService} from '../services/titledDialog/titledDialog.service';\n\n/**\n * Module for components and service for displaying titled dialog\n */\n@NgModule(\n{\n imports:\n [\n CommonDynamicModule,\n CommonLocalizeModule,\n MatDialogModule,\n ],\n declarations:\n [\n TitledDialogComponent\n ],\n providers:\n [\n TitledDialogService\n ]\n})\nexport class TitledDialogModule\n{\n}"]}
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter, Directive, Injector, Input, Type, ViewContainerRef, Output } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
+ //TODO: add module as origin componentOutlet has
3
4
  /**
4
5
  * Instantiates a single Component type and inserts its Host View into current View.
5
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ngComponentOutletEx.directive.js","sourceRoot":"","sources":["../../../../src/directives/ngComponentO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EAAE,uBAAuB;oBACjC,QAAQ,EAAE,qBAAqB;iBAClC;uGAgBU,mBAAmB;sBADzB,KAAK;gBAOC,2BAA2B;sBADjC,KAAK;gBAOC,0BAA0B;sBADhC,KAAK;gBASC,0BAA0B;sBADhC,MAAM","sourcesContent":["import {EventEmitter, ComponentRef, Directive, Injector, Input, OnChanges, Type, ViewContainerRef, Output} from '@angular/core';\n\n/**\n * Instantiates a single Component type and inserts its Host View into current View.\n */\n@Directive(\n{\n selector: '[ngComponentOutletEx]',\n exportAs: 'ngComponentOutletEx'\n})\nexport class NgComponentOutletEx<TComponent> implements OnChanges\n{\n //######################### private fields #########################\n\n /**\n * Created component reference\n */\n private _componentRef: ComponentRef<TComponent>|null = null;\n \n //######################### public properties - inputs #########################\n \n /**\n * Type that should be dynamically created into current container\n */\n @Input() \n public ngComponentOutletEx: Type<TComponent>;\n\n /**\n * Custom injector that will be used for newly created component\n */\n @Input() \n public ngComponentOutletExInjector: Injector;\n\n /**\n * Projectable nodes that can be injected into component\n */\n @Input() \n public ngComponentOutletExContent: any[][];\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when component is created or destroyed, it can send instance of component, or null\n */\n @Output()\n public ngComponentOutletExCreated: EventEmitter<TComponent|null> = new EventEmitter<TComponent|null>();\n\n //######################### public properties #########################\n\n /**\n * Instance of dynamically created component \n */\n public get component(): TComponent|null\n {\n if(!this._componentRef)\n {\n return null;\n }\n\n return this._componentRef.instance;\n }\n\n //######################### constructor #########################\n constructor(private _viewContainerRef: ViewContainerRef)\n {\n }\n\n //######################### public methods - implementation of OnChanges #########################\n public ngOnChanges(): void\n {\n this._viewContainerRef.clear();\n this._componentRef = null;\n\n if (this.ngComponentOutletEx)\n {\n const injector = this.ngComponentOutletExInjector || this._viewContainerRef.injector;\n\n this._componentRef = this._viewContainerRef.createComponent<TComponent>(this.ngComponentOutletEx,\n {\n injector: injector,\n projectableNodes: this.ngComponentOutletExContent\n });\n }\n\n this.ngComponentOutletExCreated.emit(this.component);\n }\n}\n"]}
1
+ {"version":3,"file":"ngComponentOutletEx.directive.js","sourceRoot":"","sources":["../../../../src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAgB,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAa,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAEhI,gDAAgD;AAEhD;;GAEG;AAMH,MAAM,OAAO,mBAAmB;IAoD5B,iEAAiE;IACjE,YAAoB,iBAAmC;QAAnC,sBAAiB,GAAjB,iBAAiB,CAAkB;QAnDvD,oEAAoE;QAEpE;;WAEG;QACK,kBAAa,GAAkC,IAAI,CAAC;QAsB5D,iFAAiF;QAEjF;;WAEG;QAEI,+BAA0B,GAAkC,IAAI,YAAY,EAAmB,CAAC;IAoBvG,CAAC;IAlBD,uEAAuE;IAEvE;;OAEG;IACH,IAAW,SAAS;QAEhB,IAAG,CAAC,IAAI,CAAC,aAAa,EACtB;YACI,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAOD,kGAAkG;IAC3F,WAAW;QAEd,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAC/B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAE1B,IAAI,IAAI,CAAC,mBAAmB,EAC5B;YACI,MAAM,QAAQ,GAAG,IAAI,CAAC,2BAA2B,IAAI,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC;YAErF,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAa,IAAI,CAAC,mBAAmB,EACxB;gBACI,QAAQ,EAAE,QAAQ;gBAClB,gBAAgB,EAAE,IAAI,CAAC,0BAA0B;aACpD,CAAC,CAAC;SAC9E;QAED,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACzD,CAAC;;gHA3EQ,mBAAmB;oGAAnB,mBAAmB;2FAAnB,mBAAmB;kBAL/B,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE,qBAAqB;iBAClC;uGAgBU,mBAAmB;sBADzB,KAAK;gBAOC,2BAA2B;sBADjC,KAAK;gBAOC,0BAA0B;sBADhC,KAAK;gBASC,0BAA0B;sBADhC,MAAM","sourcesContent":["import {EventEmitter, ComponentRef, Directive, Injector, Input, OnChanges, Type, ViewContainerRef, Output} from '@angular/core';\n\n//TODO: add module as origin componentOutlet has\n\n/**\n * Instantiates a single Component type and inserts its Host View into current View.\n */\n@Directive(\n{\n selector: '[ngComponentOutletEx]',\n exportAs: 'ngComponentOutletEx'\n})\nexport class NgComponentOutletEx<TComponent> implements OnChanges\n{\n //######################### private fields #########################\n\n /**\n * Created component reference\n */\n private _componentRef: ComponentRef<TComponent>|null = null;\n \n //######################### public properties - inputs #########################\n \n /**\n * Type that should be dynamically created into current container\n */\n @Input() \n public ngComponentOutletEx: Type<TComponent>;\n\n /**\n * Custom injector that will be used for newly created component\n */\n @Input() \n public ngComponentOutletExInjector: Injector;\n\n /**\n * Projectable nodes that can be injected into component\n */\n @Input() \n public ngComponentOutletExContent: any[][];\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when component is created or destroyed, it can send instance of component, or null\n */\n @Output()\n public ngComponentOutletExCreated: EventEmitter<TComponent|null> = new EventEmitter<TComponent|null>();\n\n //######################### public properties #########################\n\n /**\n * Instance of dynamically created component \n */\n public get component(): TComponent|null\n {\n if(!this._componentRef)\n {\n return null;\n }\n\n return this._componentRef.instance;\n }\n\n //######################### constructor #########################\n constructor(private _viewContainerRef: ViewContainerRef)\n {\n }\n\n //######################### public methods - implementation of OnChanges #########################\n public ngOnChanges(): void\n {\n this._viewContainerRef.clear();\n this._componentRef = null;\n\n if (this.ngComponentOutletEx)\n {\n const injector = this.ngComponentOutletExInjector || this._viewContainerRef.injector;\n\n this._componentRef = this._viewContainerRef.createComponent<TComponent>(this.ngComponentOutletEx,\n {\n injector: injector,\n projectableNodes: this.ngComponentOutletExContent\n });\n }\n\n this.ngComponentOutletExCreated.emit(this.component);\n }\n}\n"]}
@@ -3,7 +3,8 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
3
3
  import { TITLED_DIALOG_DATA } from '../../misc/interfaces/titledDialog.interface';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "@angular/material/dialog";
6
- import * as i2 from "../../../../src/pipes/localize/localize.pipe";
6
+ import * as i2 from "../../../../src/directives/ngComponentOutletEx/ngComponentOutletEx.directive";
7
+ import * as i3 from "../../../../src/pipes/localize/localize.pipe";
7
8
  /**
8
9
  * Component used as wrapper for material dialog enhanced with title
9
10
  */
@@ -12,12 +13,15 @@ export class TitledDialogComponent {
12
13
  constructor(data, dialogRef, injector) {
13
14
  this.data = data;
14
15
  this.dialogRef = dialogRef;
15
- this.injector = Injector.create([
16
- {
17
- provide: TITLED_DIALOG_DATA,
18
- useValue: data.data
19
- }
20
- ], injector);
16
+ this.injector = Injector.create({
17
+ providers: [
18
+ {
19
+ provide: TITLED_DIALOG_DATA,
20
+ useValue: data.data
21
+ }
22
+ ],
23
+ parent: injector
24
+ });
21
25
  }
22
26
  get component() {
23
27
  if (this.data?.componentOrTemplateRef instanceof TemplateRef) {
@@ -27,7 +31,7 @@ export class TitledDialogComponent {
27
31
  }
28
32
  }
29
33
  TitledDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
30
- TitledDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TitledDialogComponent, selector: "titled-dialog", ngImport: i0, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"], pipes: { "localize": i2.LocalizePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
34
+ TitledDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TitledDialogComponent, selector: "titled-dialog", ngImport: i0, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"], directives: [{ type: i2.NgComponentOutletEx, selector: "[ngComponentOutletEx]", inputs: ["ngComponentOutletEx", "ngComponentOutletExInjector", "ngComponentOutletExContent"], outputs: ["ngComponentOutletExCreated"], exportAs: ["ngComponentOutletEx"] }], pipes: { "localize": i3.LocalizePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
31
35
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogComponent, decorators: [{
32
36
  type: Component,
33
37
  args: [{ selector: 'titled-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"] }]
@@ -1 +1 @@
1
- {"version":3,"file":"titledDialog.component.js","sourceRoot":"","sources":["../../../../../material/src/components/titledDialog/titledDialog.component.ts","../../../../../material/src/components/titledDialog/titledDialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAiB,WAAW,EAAC,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAGvE,OAAO,EAAuB,kBAAkB,EAAC,MAAM,8CAA8C,CAAC;;;;AAEtG;;GAEG;AAQH,MAAM,OAAO,qBAAqB;IAmB9B,iEAAiE;IACjE,YAA4C,IAA0B,EACnD,SAA6C,EACpD,QAAkB;QAFc,SAAI,GAAJ,IAAI,CAAsB;QACnD,cAAS,GAAT,SAAS,CAAoC;QAG5D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAC/B;YAEI;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,IAAI,CAAC,IAAI;aACtB;SACJ,EAAE,QAAQ,CAAC,CAAC;IACjB,CAAC;IAvBD,IAAW,SAAS;QAEhB,IAAG,IAAI,CAAC,IAAI,EAAE,sBAAsB,YAAY,WAAW,EAC3D;YACI,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC;IAC5C,CAAC;;kHAjBQ,qBAAqB,kBAoBV,eAAe;sGApB1B,qBAAqB,qDChBlC,gcAUM;2FDMO,qBAAqB;kBAPjC,SAAS;+BAEI,eAAe,mBAGR,uBAAuB,CAAC,MAAM;;0BAsBlC,MAAM;2BAAC,eAAe","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Injector, ValueProvider, TemplateRef} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\nimport {ComponentType} from '@angular/cdk/portal';\n\nimport {ɵTitledDialogOptions, TITLED_DIALOG_DATA} from '../../misc/interfaces/titledDialog.interface';\n\n/**\n * Component used as wrapper for material dialog enhanced with title\n */\n@Component(\n{\n selector: 'titled-dialog',\n templateUrl: 'titledDialog.component.html',\n styleUrls: ['titledDialog.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TitledDialogComponent\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Injector used for creating component or template\n */\n public injector: Injector;\n\n public get component(): ComponentType<any>\n {\n if(this.data?.componentOrTemplateRef instanceof TemplateRef)\n {\n return null;\n }\n\n return this.data.componentOrTemplateRef;\n }\n\n //######################### constructor #########################\n constructor(@Inject(MAT_DIALOG_DATA) public data: ɵTitledDialogOptions,\n public dialogRef: MatDialogRef<ɵTitledDialogOptions>,\n injector: Injector)\n {\n this.injector = Injector.create(\n [\n <ValueProvider>\n {\n provide: TITLED_DIALOG_DATA,\n useValue: data.data\n }\n ], injector);\n }\n}","<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>"]}
1
+ {"version":3,"file":"titledDialog.component.js","sourceRoot":"","sources":["../../../../../material/src/components/titledDialog/titledDialog.component.ts","../../../../../material/src/components/titledDialog/titledDialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAiB,WAAW,EAAC,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAGvE,OAAO,EAAuB,kBAAkB,EAAC,MAAM,8CAA8C,CAAC;;;;;AAEtG;;GAEG;AAQH,MAAM,OAAO,qBAAqB;IAmB9B,iEAAiE;IACjE,YAA4C,IAA0B,EACnD,SAA6C,EACpD,QAAkB;QAFc,SAAI,GAAJ,IAAI,CAAsB;QACnD,cAAS,GAAT,SAAS,CAAoC;QAG5D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAC/B;YACI,SAAS,EACT;gBAEI;oBACI,OAAO,EAAE,kBAAkB;oBAC3B,QAAQ,EAAE,IAAI,CAAC,IAAI;iBACtB;aACJ;YACD,MAAM,EAAE,QAAQ;SACnB,CAAC,CAAC;IACP,CAAC;IA3BD,IAAW,SAAS;QAEhB,IAAG,IAAI,CAAC,IAAI,EAAE,sBAAsB,YAAY,WAAW,EAC3D;YACI,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC;IAC5C,CAAC;;kHAjBQ,qBAAqB,kBAoBV,eAAe;sGApB1B,qBAAqB,qDChBlC,gcAUM;2FDMO,qBAAqB;kBAPjC,SAAS;+BAEI,eAAe,mBAGR,uBAAuB,CAAC,MAAM;;0BAsBlC,MAAM;2BAAC,eAAe","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Injector, ValueProvider, TemplateRef} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\nimport {ComponentType} from '@angular/cdk/portal';\n\nimport {ɵTitledDialogOptions, TITLED_DIALOG_DATA} from '../../misc/interfaces/titledDialog.interface';\n\n/**\n * Component used as wrapper for material dialog enhanced with title\n */\n@Component(\n{\n selector: 'titled-dialog',\n templateUrl: 'titledDialog.component.html',\n styleUrls: ['titledDialog.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TitledDialogComponent\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Injector used for creating component or template\n */\n public injector: Injector;\n\n public get component(): ComponentType<any>\n {\n if(this.data?.componentOrTemplateRef instanceof TemplateRef)\n {\n return null;\n }\n\n return this.data.componentOrTemplateRef;\n }\n\n //######################### constructor #########################\n constructor(@Inject(MAT_DIALOG_DATA) public data: ɵTitledDialogOptions,\n public dialogRef: MatDialogRef<ɵTitledDialogOptions>,\n injector: Injector)\n {\n this.injector = Injector.create(\n {\n providers:\n [\n <ValueProvider>\n {\n provide: TITLED_DIALOG_DATA,\n useValue: data.data\n }\n ],\n parent: injector\n });\n }\n}","<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>"]}
@@ -1,6 +1,6 @@
1
1
  import { NgModule } from '@angular/core';
2
2
  import { MatDialogModule } from '@angular/material/dialog';
3
- import { CommonLocalizeModule } from '@anglr/common';
3
+ import { CommonDynamicModule, CommonLocalizeModule } from '@anglr/common';
4
4
  import { TitledDialogComponent } from '../components/titledDialog/titledDialog.component';
5
5
  import { TitledDialogService } from '../services/titledDialog/titledDialog.service';
6
6
  import * as i0 from "@angular/core";
@@ -10,20 +10,23 @@ import * as i0 from "@angular/core";
10
10
  export class TitledDialogModule {
11
11
  }
12
12
  TitledDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
13
- TitledDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, declarations: [TitledDialogComponent], imports: [CommonLocalizeModule,
13
+ TitledDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, declarations: [TitledDialogComponent], imports: [CommonDynamicModule,
14
+ CommonLocalizeModule,
14
15
  MatDialogModule] });
15
16
  TitledDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, providers: [
16
17
  TitledDialogService
17
18
  ], imports: [[
19
+ CommonDynamicModule,
18
20
  CommonLocalizeModule,
19
- MatDialogModule
21
+ MatDialogModule,
20
22
  ]] });
21
23
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, decorators: [{
22
24
  type: NgModule,
23
25
  args: [{
24
26
  imports: [
27
+ CommonDynamicModule,
25
28
  CommonLocalizeModule,
26
- MatDialogModule
29
+ MatDialogModule,
27
30
  ],
28
31
  declarations: [
29
32
  TitledDialogComponent
@@ -1 +1 @@
1
- {"version":3,"file":"titledDialog.module.js","sourceRoot":"","sources":["../../../../material/src/modules/titledDialog.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAC,mBAAmB,EAAC,MAAM,+CAA+C,CAAC;;AAElF;;GAEG;AAiBH,MAAM,OAAO,kBAAkB;;+GAAlB,kBAAkB;gHAAlB,kBAAkB,iBAPvB,qBAAqB,aALrB,oBAAoB;QACpB,eAAe;gHAWV,kBAAkB,aAJ3B;QACI,mBAAmB;KACtB,YAXD;YACI,oBAAoB;YACpB,eAAe;SAClB;2FAUQ,kBAAkB;kBAhB9B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,oBAAoB;wBACpB,eAAe;qBAClB;oBACD,YAAY,EACZ;wBACI,qBAAqB;qBACxB;oBACD,SAAS,EACT;wBACI,mBAAmB;qBACtB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {MatDialogModule} from '@angular/material/dialog';\nimport {CommonLocalizeModule} from '@anglr/common';\n\nimport {TitledDialogComponent} from '../components/titledDialog/titledDialog.component';\nimport {TitledDialogService} from '../services/titledDialog/titledDialog.service';\n\n/**\n * Module for components and service for displaying titled dialog\n */\n@NgModule(\n{\n imports:\n [\n CommonLocalizeModule,\n MatDialogModule\n ],\n declarations:\n [\n TitledDialogComponent\n ],\n providers:\n [\n TitledDialogService\n ]\n})\nexport class TitledDialogModule\n{\n}"]}
1
+ {"version":3,"file":"titledDialog.module.js","sourceRoot":"","sources":["../../../../material/src/modules/titledDialog.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,mBAAmB,EAAE,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAExE,OAAO,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAC,mBAAmB,EAAC,MAAM,+CAA+C,CAAC;;AAElF;;GAEG;AAkBH,MAAM,OAAO,kBAAkB;;+GAAlB,kBAAkB;gHAAlB,kBAAkB,iBAPvB,qBAAqB,aANrB,mBAAmB;QACnB,oBAAoB;QACpB,eAAe;gHAWV,kBAAkB,aAJ3B;QACI,mBAAmB;KACtB,YAZD;YACI,mBAAmB;YACnB,oBAAoB;YACpB,eAAe;SAClB;2FAUQ,kBAAkB;kBAjB9B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,mBAAmB;wBACnB,oBAAoB;wBACpB,eAAe;qBAClB;oBACD,YAAY,EACZ;wBACI,qBAAqB;qBACxB;oBACD,SAAS,EACT;wBACI,mBAAmB;qBACtB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {MatDialogModule} from '@angular/material/dialog';\nimport {CommonDynamicModule, CommonLocalizeModule} from '@anglr/common';\n\nimport {TitledDialogComponent} from '../components/titledDialog/titledDialog.component';\nimport {TitledDialogService} from '../services/titledDialog/titledDialog.service';\n\n/**\n * Module for components and service for displaying titled dialog\n */\n@NgModule(\n{\n imports:\n [\n CommonDynamicModule,\n CommonLocalizeModule,\n MatDialogModule,\n ],\n declarations:\n [\n TitledDialogComponent\n ],\n providers:\n [\n TitledDialogService\n ]\n})\nexport class TitledDialogModule\n{\n}"]}
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter, Directive, Injector, Input, Type, ViewContainerRef, Output } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
+ //TODO: add module as origin componentOutlet has
3
4
  /**
4
5
  * Instantiates a single Component type and inserts its Host View into current View.
5
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ngComponentOutletEx.directive.js","sourceRoot":"","sources":["../../../../src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.ts"],"names":[],"m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BAAqB;iBAClC;uGAgBU,mBAAmB;sBADzB,KAAK;gBAOC,2BAA2B;sBADjC,KAAK;gBAOC,0BAA0B;sBADhC,KAAK;gBASC,0BAA0B;sBADhC,MAAM","sourcesContent":["import {EventEmitter, ComponentRef, Directive, Injector, Input, OnChanges, Type, ViewContainerRef, Output} from '@angular/core';\n\n/**\n * Instantiates a single Component type and inserts its Host View into current View.\n */\n@Directive(\n{\n selector: '[ngComponentOutletEx]',\n exportAs: 'ngComponentOutletEx'\n})\nexport class NgComponentOutletEx<TComponent> implements OnChanges\n{\n //######################### private fields #########################\n\n /**\n * Created component reference\n */\n private _componentRef: ComponentRef<TComponent>|null = null;\n \n //######################### public properties - inputs #########################\n \n /**\n * Type that should be dynamically created into current container\n */\n @Input() \n public ngComponentOutletEx: Type<TComponent>;\n\n /**\n * Custom injector that will be used for newly created component\n */\n @Input() \n public ngComponentOutletExInjector: Injector;\n\n /**\n * Projectable nodes that can be injected into component\n */\n @Input() \n public ngComponentOutletExContent: any[][];\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when component is created or destroyed, it can send instance of component, or null\n */\n @Output()\n public ngComponentOutletExCreated: EventEmitter<TComponent|null> = new EventEmitter<TComponent|null>();\n\n //######################### public properties #########################\n\n /**\n * Instance of dynamically created component \n */\n public get component(): TComponent|null\n {\n if(!this._componentRef)\n {\n return null;\n }\n\n return this._componentRef.instance;\n }\n\n //######################### constructor #########################\n constructor(private _viewContainerRef: ViewContainerRef)\n {\n }\n\n //######################### public methods - implementation of OnChanges #########################\n public ngOnChanges(): void\n {\n this._viewContainerRef.clear();\n this._componentRef = null;\n\n if (this.ngComponentOutletEx)\n {\n const injector = this.ngComponentOutletExInjector || this._viewContainerRef.injector;\n\n this._componentRef = this._viewContainerRef.createComponent<TComponent>(this.ngComponentOutletEx,\n {\n injector: injector,\n projectableNodes: this.ngComponentOutletExContent\n });\n }\n\n this.ngComponentOutletExCreated.emit(this.component);\n }\n}\n"]}
1
+ {"version":3,"file":"ng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GAAnB,mBAAmB;2FAAnB,mBAAmB;kBAL/B,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE,qBAAqB;iBAClC;uGAgBU,mBAAmB;sBADzB,KAAK;gBAOC,2BAA2B;sBADjC,KAAK;gBAOC,0BAA0B;sBADhC,KAAK;gBASC,0BAA0B;sBADhC,MAAM","sourcesContent":["import {EventEmitter, ComponentRef, Directive, Injector, Input, OnChanges, Type, ViewContainerRef, Output} from '@angular/core';\n\n//TODO: add module as origin componentOutlet has\n\n/**\n * Instantiates a single Component type and inserts its Host View into current View.\n */\n@Directive(\n{\n selector: '[ngComponentOutletEx]',\n exportAs: 'ngComponentOutletEx'\n})\nexport class NgComponentOutletEx<TComponent> implements OnChanges\n{\n //######################### private fields #########################\n\n /**\n * Created component reference\n */\n private _componentRef: ComponentRef<TComponent>|null = null;\n \n //######################### public properties - inputs #########################\n \n /**\n * Type that should be dynamically created into current container\n */\n @Input() \n public ngComponentOutletEx: Type<TComponent>;\n\n /**\n * Custom injector that will be used for newly created component\n */\n @Input() \n public ngComponentOutletExInjector: Injector;\n\n /**\n * Projectable nodes that can be injected into component\n */\n @Input() \n public ngComponentOutletExContent: any[][];\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when component is created or destroyed, it can send instance of component, or null\n */\n @Output()\n public ngComponentOutletExCreated: EventEmitter<TComponent|null> = new EventEmitter<TComponent|null>();\n\n //######################### public properties #########################\n\n /**\n * Instance of dynamically created component \n */\n public get component(): TComponent|null\n {\n if(!this._componentRef)\n {\n return null;\n }\n\n return this._componentRef.instance;\n }\n\n //######################### constructor #########################\n constructor(private _viewContainerRef: ViewContainerRef)\n {\n }\n\n //######################### public methods - implementation of OnChanges #########################\n public ngOnChanges(): void\n {\n this._viewContainerRef.clear();\n this._componentRef = null;\n\n if (this.ngComponentOutletEx)\n {\n const injector = this.ngComponentOutletExInjector || this._viewContainerRef.injector;\n\n this._componentRef = this._viewContainerRef.createComponent<TComponent>(this.ngComponentOutletEx,\n {\n injector: injector,\n projectableNodes: this.ngComponentOutletExContent\n });\n }\n\n this.ngComponentOutletExCreated.emit(this.component);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"titledDialog.component.d.ts","sourceRoot":"","sources":["titledDialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,QAAQ,EAA6B,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAkB,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAC,oBAAoB,EAAqB,MAAM,8CAA8C,CAAC;;AAEtG;;GAEG;AACH,qBAOa,qBAAqB;IAoBc,IAAI,EAAE,oBAAoB;IACnD,SAAS,EAAE,YAAY,CAAC,oBAAoB,CAAC;IAjBhE;;OAEG;IACI,QAAQ,EAAE,QAAQ,CAAC;IAE1B,IAAW,SAAS,IAAI,aAAa,CAAC,GAAG,CAAC,CAQzC;gBAG2C,IAAI,EAAE,oBAAoB,EACnD,SAAS,EAAE,YAAY,CAAC,oBAAoB,CAAC,EACpD,QAAQ,EAAE,QAAQ;yCAtBrB,qBAAqB;2CAArB,qBAAqB;CAiCjC"}
1
+ {"version":3,"file":"titledDialog.component.d.ts","sourceRoot":"","sources":["titledDialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,QAAQ,EAA6B,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAkB,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAC,oBAAoB,EAAqB,MAAM,8CAA8C,CAAC;;AAEtG;;GAEG;AACH,qBAOa,qBAAqB;IAoBc,IAAI,EAAE,oBAAoB;IACnD,SAAS,EAAE,YAAY,CAAC,oBAAoB,CAAC;IAjBhE;;OAEG;IACI,QAAQ,EAAE,QAAQ,CAAC;IAE1B,IAAW,SAAS,IAAI,aAAa,CAAC,GAAG,CAAC,CAQzC;gBAG2C,IAAI,EAAE,oBAAoB,EACnD,SAAS,EAAE,YAAY,CAAC,oBAAoB,CAAC,EACpD,QAAQ,EAAE,QAAQ;yCAtBrB,qBAAqB;2CAArB,qBAAqB;CAqCjC"}
@@ -7,7 +7,7 @@ import * as i3 from "@angular/material/dialog";
7
7
  */
8
8
  export declare class TitledDialogModule {
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TitledDialogModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<TitledDialogModule, [typeof i1.TitledDialogComponent], [typeof i2.CommonLocalizeModule, typeof i3.MatDialogModule], never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TitledDialogModule, [typeof i1.TitledDialogComponent], [typeof i2.CommonDynamicModule, typeof i2.CommonLocalizeModule, typeof i3.MatDialogModule], never>;
11
11
  static ɵinj: i0.ɵɵInjectorDeclaration<TitledDialogModule>;
12
12
  }
13
13
  //# sourceMappingURL=titledDialog.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"titledDialog.module.d.ts","sourceRoot":"","sources":["titledDialog.module.ts"],"names":[],"mappings":";;;;AAOA;;GAEG;AACH,qBAgBa,kBAAkB;yCAAlB,kBAAkB;0CAAlB,kBAAkB;0CAAlB,kBAAkB;CAE9B"}
1
+ {"version":3,"file":"titledDialog.module.d.ts","sourceRoot":"","sources":["titledDialog.module.ts"],"names":[],"mappings":";;;;AAOA;;GAEG;AACH,qBAiBa,kBAAkB;yCAAlB,kBAAkB;0CAAlB,kBAAkB;0CAAlB,kBAAkB;CAE9B"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@anglr/common",
3
- "version": "10.0.0",
3
+ "version": "11.0.0",
4
4
  "description": "Angular module for common angular stuff",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
- "build": "ngc --declaration --declarationDir . --declarationMap && ngc -t es2015 --outDir es2015 && npm run dts:rollup",
9
- "dts:rollup": "npm run api -- api-extractor.json && npm run api -- date-fns/api-extractor.json && npm run api -- forms/api-extractor.json && npm run api -- hmr/api-extractor.json && npm run api -- hotkeys/api-extractor.json && npm run api -- material/api-extractor.json && npm run api -- moment/api-extractor.json && npm run api -- numeral/api-extractor.json && npm run api -- positions/api-extractor.json && npm run api -- router/api-extractor.json && npm run api -- store/api-extractor.json && npm run api -- structured-log/api-extractor.json",
8
+ "build": "ngc --declaration --declarationDir . --declarationMap && ngc -t es2015 --outDir es2015",
9
+ "dts:rollup": "npm run api -- api-extractor.json && npm run api -- date-fns/api-extractor.json && npm run api -- forms/api-extractor.json && npm run api -- hotkeys/api-extractor.json && npm run api -- material/api-extractor.json && npm run api -- moment/api-extractor.json && npm run api -- numeral/api-extractor.json && npm run api -- positions/api-extractor.json && npm run api -- router/api-extractor.json && npm run api -- store/api-extractor.json && npm run api -- structured-log/api-extractor.json",
10
10
  "api": "api-extractor run --local --verbose -c",
11
11
  "clean": "rimraf */temp temp es2015 es2020 **/tsdoc-metadata.json src/**/*.d.ts src/**/*.d.ts.map */src/**/*.d.ts */src/**/*.d.ts.map ./*.d.ts ./*.d.ts.map */*.d.ts",
12
12
  "clean:deps": "rimraf package-lock.json node_modules",
@@ -23,16 +23,13 @@
23
23
  "lint": "eslint src/**/*.ts",
24
24
  "doc": "path-exists docs && npm run doc:generate || echo \"No docs generated!\"",
25
25
  "predoc:generate": "cd docs && git pull && cd ..",
26
- "doc:generate": "npm run doc:generate:common && npm run doc:generate:hmr && npm run doc:generate:forms && npm run doc:generate:router && npm run doc:generate:numeral && npm run doc:generate:hotkeys && npm run doc:generate:store && npm run doc:generate:moment && npm run doc:generate:date-fns && npm run doc:generate:structured-log && npm run doc:generate:positions && npm run doc:generate:material && npm run doc:save",
26
+ "postdoc:generate": "npm run doc:save",
27
+ "doc:generate": "npm run doc:generate:common && npm run doc:generate:forms && npm run doc:generate:router && npm run doc:generate:numeral && npm run doc:generate:hotkeys && npm run doc:generate:store && npm run doc:generate:moment && npm run doc:generate:date-fns && npm run doc:generate:structured-log && npm run doc:generate:positions && npm run doc:generate:material",
27
28
  "doc:save": "cd docs && git add . && git commit -m \"INT: updated API docs ng-common\" && git push && cd ..",
28
29
  "doc:generate:common": "rimraf docs/content/api/ng-common && npm run doc:json:common && npm run doc:md:common && npm run doc:api:common",
29
30
  "doc:json:common": "api-extractor run --local --verbose -c api-extractor.json",
30
31
  "doc:md:common": "api-documenter markdown -i temp -o docs/content/api/ng-common",
31
32
  "doc:api:common": "copyfiles -u 1 temp/common.api.md docs/content/api/ng-common && rimraf temp",
32
- "doc:generate:hmr": "rimraf docs/content/api/ng-common-hmr && npm run doc:json:hmr && npm run doc:md:hmr && npm run doc:api:hmr",
33
- "doc:json:hmr": "api-extractor run --local --verbose -c hmr/api-extractor.json",
34
- "doc:md:hmr": "api-documenter markdown -i hmr/temp -o docs/content/api/ng-common-hmr",
35
- "doc:api:hmr": "copyfiles -u 2 hmr/temp/common-hmr.api.md docs/content/api/ng-common-hmr && rimraf hmr/temp",
36
33
  "doc:generate:forms": "rimraf docs/content/api/ng-common-forms && npm run doc:json:forms && npm run doc:md:forms && npm run doc:api:forms",
37
34
  "doc:json:forms": "api-extractor run --local --verbose -c forms/api-extractor.json",
38
35
  "doc:md:forms": "api-documenter markdown -i forms/temp -o docs/content/api/ng-common-forms",
@@ -156,13 +153,19 @@
156
153
  "es2020": "./es2020/src/index.js",
157
154
  "es2015": "./es2015/src/index.js",
158
155
  "module": "./es2015/src/index.js",
159
- "typings": "./common.d.ts",
156
+ "typings": "./src/index.d.ts",
160
157
  "exports": {
161
158
  "./package.json": {
162
159
  "default": "./package.json"
163
160
  },
161
+ "./src/style.scss": {
162
+ "sass": "./src/style.scss"
163
+ },
164
+ "./styles/*": {
165
+ "sass": "./styles/*.scss"
166
+ },
164
167
  ".": {
165
- "types": "./common.d.ts",
168
+ "types": "./src/index.d.ts",
166
169
  "esm2020": "./es2020/src/index.js",
167
170
  "es2020": "./es2020/src/index.js",
168
171
  "es2015": "./es2015/src/index.js",
@@ -170,7 +173,7 @@
170
173
  "default": "./es2020/src/index.js"
171
174
  },
172
175
  "./date-fns": {
173
- "types": "./date-fns/common-date-fns.d.ts",
176
+ "types": "./date-fns/src/index.d.ts",
174
177
  "esm2020": "./es2020/date-fns/src/index.js",
175
178
  "es2020": "./es2020/date-fns/src/index.js",
176
179
  "es2015": "./es2015/date-fns/src/index.js",
@@ -178,23 +181,15 @@
178
181
  "default": "./es2020/date-fns/src/index.js"
179
182
  },
180
183
  "./forms": {
181
- "types": "./forms/common-forms.d.ts",
184
+ "types": "./forms/src/index.d.ts",
182
185
  "esm2020": "./es2020/forms/src/index.js",
183
186
  "es2020": "./es2020/forms/src/index.js",
184
187
  "es2015": "./es2015/forms/src/index.js",
185
188
  "node": "./es2015/forms/src/index.js",
186
189
  "default": "./es2020/forms/src/index.js"
187
190
  },
188
- "./hmr": {
189
- "types": "./hmr/common-hmr.d.ts",
190
- "esm2020": "./es2020/hmr/src/index.js",
191
- "es2020": "./es2020/hmr/src/index.js",
192
- "es2015": "./es2015/hmr/src/index.js",
193
- "node": "./es2015/hmr/src/index.js",
194
- "default": "./es2020/hmr/src/index.js"
195
- },
196
191
  "./hotkeys": {
197
- "types": "./hotkeys/common-hotkeys.d.ts",
192
+ "types": "./hotkeys/src/index.d.ts",
198
193
  "esm2020": "./es2020/hotkeys/src/index.js",
199
194
  "es2020": "./es2020/hotkeys/src/index.js",
200
195
  "es2015": "./es2015/hotkeys/src/index.js",
@@ -202,7 +197,7 @@
202
197
  "default": "./es2020/hotkeys/src/index.js"
203
198
  },
204
199
  "./material": {
205
- "types": "./material/common-material.d.ts",
200
+ "types": "./material/src/index.d.ts",
206
201
  "esm2020": "./es2020/material/src/index.js",
207
202
  "es2020": "./es2020/material/src/index.js",
208
203
  "es2015": "./es2015/material/src/index.js",
@@ -210,7 +205,7 @@
210
205
  "default": "./es2020/material/src/index.js"
211
206
  },
212
207
  "./moment": {
213
- "types": "./moment/common-moment.d.ts",
208
+ "types": "./moment/src/index.d.ts",
214
209
  "esm2020": "./es2020/moment/src/index.js",
215
210
  "es2020": "./es2020/moment/src/index.js",
216
211
  "es2015": "./es2015/moment/src/index.js",
@@ -218,7 +213,7 @@
218
213
  "default": "./es2020/moment/src/index.js"
219
214
  },
220
215
  "./numeral": {
221
- "types": "./numeral/common-numeral.d.ts",
216
+ "types": "./numeral/src/index.d.ts",
222
217
  "esm2020": "./es2020/numeral/src/index.js",
223
218
  "es2020": "./es2020/numeral/src/index.js",
224
219
  "es2015": "./es2015/numeral/src/index.js",
@@ -226,7 +221,7 @@
226
221
  "default": "./es2020/numeral/src/index.js"
227
222
  },
228
223
  "./positions": {
229
- "types": "./positions/common-positions.d.ts",
224
+ "types": "./positions/src/index.d.ts",
230
225
  "esm2020": "./es2020/positions/src/index.js",
231
226
  "es2020": "./es2020/positions/src/index.js",
232
227
  "es2015": "./es2015/positions/src/index.js",
@@ -234,7 +229,7 @@
234
229
  "default": "./es2020/positions/src/index.js"
235
230
  },
236
231
  "./router": {
237
- "types": "./router/common-router.d.ts",
232
+ "types": "./router/src/index.d.ts",
238
233
  "esm2020": "./es2020/router/src/index.js",
239
234
  "es2020": "./es2020/router/src/index.js",
240
235
  "es2015": "./es2015/router/src/index.js",
@@ -242,7 +237,7 @@
242
237
  "default": "./es2020/router/src/index.js"
243
238
  },
244
239
  "./store": {
245
- "types": "./store/common-store.d.ts",
240
+ "types": "./store/src/index.d.ts",
246
241
  "esm2020": "./es2020/store/src/index.js",
247
242
  "es2020": "./es2020/store/src/index.js",
248
243
  "es2015": "./es2015/store/src/index.js",
@@ -250,7 +245,7 @@
250
245
  "default": "./es2020/store/src/index.js"
251
246
  },
252
247
  "./structured-log": {
253
- "types": "./structured-log/common-structured-log.d.ts",
248
+ "types": "./structured-log/src/index.d.ts",
254
249
  "esm2020": "./es2020/structured-log/src/index.js",
255
250
  "es2020": "./es2020/structured-log/src/index.js",
256
251
  "es2015": "./es2015/structured-log/src/index.js",
package/readme.md CHANGED
@@ -6,7 +6,6 @@
6
6
  - [API](https://ressurectit.github.io/#/content/api/ng-common/common)
7
7
  - [API Date FNS](https://ressurectit.github.io/#/content/api/ng-common-date-fns/common-date-fns)
8
8
  - [API Forms](https://ressurectit.github.io/#/content/api/ng-common-forms/common-forms)
9
- - [API HMR](https://ressurectit.github.io/#/content/api/ng-common-hmr/common-hmr)
10
9
  - [API Hotkeys](https://ressurectit.github.io/#/content/api/ng-common-hotkeys/common-hotkeys)
11
10
  - [API Material](https://ressurectit.github.io/#/content/api/ng-common-material/common-material)
12
11
  - [API Moment](https://ressurectit.github.io/#/content/api/ng-common-moment/common-moment)
@@ -1 +1 @@
1
- {"version":3,"file":"ngComponentOutletEx.directive.d.ts","sourceRoot":"","sources":["ngComponentOutletEx.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAA2B,QAAQ,EAAS,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAS,MAAM,eAAe,CAAC;;AAEhI;;GAEG;AACH,qBAKa,mBAAmB,CAAC,UAAU,CAAE,YAAW,SAAS;IAqDjD,OAAO,CAAC,iBAAiB;IAjDrC;;OAEG;IACH,OAAO,CAAC,aAAa,CAAuC;IAI5D;;OAEG;IAEI,mBAAmB,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAE7C;;OAEG;IAEI,2BAA2B,EAAE,QAAQ,CAAC;IAE7C;;OAEG;IAEI,0BAA0B,EAAE,GAAG,EAAE,EAAE,CAAC;IAI3C;;OAEG;IAEI,0BAA0B,EAAE,YAAY,CAAC,UAAU,GAAC,IAAI,CAAC,CAAuC;IAIvG;;OAEG;IACH,IAAW,SAAS,IAAI,UAAU,GAAC,IAAI,CAQtC;gBAGmB,iBAAiB,EAAE,gBAAgB;IAKhD,WAAW,IAAI,IAAI;yCA1DjB,mBAAmB;2CAAnB,mBAAmB;CA4E/B"}
1
+ {"version":3,"file":"ngComponentOutletEx.directive.d.ts","sourceRoot":"","sources":["ng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