@anglr/common 10.0.1 → 11.1.0-beta.20220222192210

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 (185) hide show
  1. package/changelog.md +33 -0
  2. package/es2015/forms/src/index.js +1 -0
  3. package/es2015/forms/src/index.js.map +1 -1
  4. package/es2015/forms/src/modules/formPipes/index.js +3 -0
  5. package/es2015/forms/src/modules/formPipes/index.js.map +1 -0
  6. package/es2015/forms/src/modules/formPipes/modules/formPipes.module.js +35 -0
  7. package/es2015/forms/src/modules/formPipes/modules/formPipes.module.js.map +1 -0
  8. package/es2015/forms/src/modules/formPipes/modules/index.js +2 -0
  9. package/es2015/forms/src/modules/formPipes/modules/index.js.map +1 -0
  10. package/es2015/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +24 -0
  11. package/es2015/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js.map +1 -0
  12. package/es2015/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +24 -0
  13. package/es2015/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js.map +1 -0
  14. package/es2015/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +24 -0
  15. package/es2015/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js.map +1 -0
  16. package/es2015/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +31 -0
  17. package/es2015/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js.map +1 -0
  18. package/es2015/forms/src/modules/formPipes/pipes/index.js +5 -0
  19. package/es2015/forms/src/modules/formPipes/pipes/index.js.map +1 -0
  20. package/es2015/material/src/components/titledDialog/titledDialog.component.js +12 -8
  21. package/es2015/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
  22. package/es2015/material/src/modules/titledDialog.module.js +7 -4
  23. package/es2015/material/src/modules/titledDialog.module.js.map +1 -1
  24. package/es2015/src/decorators/componentDisplay.decorator.js +11 -0
  25. package/es2015/src/decorators/componentDisplay.decorator.js.map +1 -0
  26. package/es2015/src/decorators/componentDisplayBlock.decorator.js +10 -0
  27. package/es2015/src/decorators/componentDisplayBlock.decorator.js.map +1 -0
  28. package/es2015/src/decorators/componentDisplayFlex.decorator.js +10 -0
  29. package/es2015/src/decorators/componentDisplayFlex.decorator.js.map +1 -0
  30. package/es2015/src/decorators/componentHostStyle.decorator.js +22 -0
  31. package/es2015/src/decorators/componentHostStyle.decorator.js.map +1 -0
  32. package/es2015/src/decorators/index.js +6 -0
  33. package/es2015/src/decorators/index.js.map +1 -0
  34. package/es2015/src/decorators/scrollableContent.decorator.js +10 -0
  35. package/es2015/src/decorators/scrollableContent.decorator.js.map +1 -0
  36. package/es2015/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +1 -0
  37. package/es2015/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
  38. package/es2015/src/index.js +3 -1
  39. package/es2015/src/index.js.map +1 -1
  40. package/es2015/src/modules/castPipes/index.js +3 -0
  41. package/es2015/src/modules/castPipes/index.js.map +1 -0
  42. package/es2015/src/modules/castPipes/modules/castPipes.module.js +35 -0
  43. package/es2015/src/modules/castPipes/modules/castPipes.module.js.map +1 -0
  44. package/es2015/src/modules/castPipes/modules/index.js +2 -0
  45. package/es2015/src/modules/castPipes/modules/index.js.map +1 -0
  46. package/es2015/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +15 -0
  47. package/es2015/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js.map +1 -0
  48. package/es2015/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +21 -0
  49. package/es2015/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js.map +1 -0
  50. package/es2015/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +23 -0
  51. package/es2015/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js.map +1 -0
  52. package/es2015/src/modules/castPipes/pipes/castType/castType.pipe.js +55 -0
  53. package/es2015/src/modules/castPipes/pipes/castType/castType.pipe.js.map +1 -0
  54. package/es2015/src/modules/castPipes/pipes/index.js +5 -0
  55. package/es2015/src/modules/castPipes/pipes/index.js.map +1 -0
  56. package/es2015/src/modules/{commonLocalize.js → commonLocalize.module.js} +1 -1
  57. package/es2015/src/modules/commonLocalize.module.js.map +1 -0
  58. package/es2015/src/modules/progressIndicator/modules/progressIndicator.module.js +1 -1
  59. package/es2015/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
  60. package/es2020/forms/src/index.js +1 -0
  61. package/es2020/forms/src/index.js.map +1 -1
  62. package/es2020/forms/src/modules/formPipes/index.js +3 -0
  63. package/es2020/forms/src/modules/formPipes/index.js.map +1 -0
  64. package/es2020/forms/src/modules/formPipes/modules/formPipes.module.js +35 -0
  65. package/es2020/forms/src/modules/formPipes/modules/formPipes.module.js.map +1 -0
  66. package/es2020/forms/src/modules/formPipes/modules/index.js +2 -0
  67. package/es2020/forms/src/modules/formPipes/modules/index.js.map +1 -0
  68. package/es2020/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +24 -0
  69. package/es2020/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js.map +1 -0
  70. package/es2020/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +24 -0
  71. package/es2020/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js.map +1 -0
  72. package/es2020/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +24 -0
  73. package/es2020/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js.map +1 -0
  74. package/es2020/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +31 -0
  75. package/es2020/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js.map +1 -0
  76. package/es2020/forms/src/modules/formPipes/pipes/index.js +5 -0
  77. package/es2020/forms/src/modules/formPipes/pipes/index.js.map +1 -0
  78. package/es2020/material/src/components/titledDialog/titledDialog.component.js +12 -8
  79. package/es2020/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
  80. package/es2020/material/src/modules/titledDialog.module.js +7 -4
  81. package/es2020/material/src/modules/titledDialog.module.js.map +1 -1
  82. package/es2020/src/decorators/componentDisplay.decorator.js +11 -0
  83. package/es2020/src/decorators/componentDisplay.decorator.js.map +1 -0
  84. package/es2020/src/decorators/componentDisplayBlock.decorator.js +10 -0
  85. package/es2020/src/decorators/componentDisplayBlock.decorator.js.map +1 -0
  86. package/es2020/src/decorators/componentDisplayFlex.decorator.js +10 -0
  87. package/es2020/src/decorators/componentDisplayFlex.decorator.js.map +1 -0
  88. package/es2020/src/decorators/componentHostStyle.decorator.js +22 -0
  89. package/es2020/src/decorators/componentHostStyle.decorator.js.map +1 -0
  90. package/es2020/src/decorators/index.js +6 -0
  91. package/es2020/src/decorators/index.js.map +1 -0
  92. package/es2020/src/decorators/scrollableContent.decorator.js +10 -0
  93. package/es2020/src/decorators/scrollableContent.decorator.js.map +1 -0
  94. package/es2020/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +1 -0
  95. package/es2020/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
  96. package/es2020/src/index.js +3 -1
  97. package/es2020/src/index.js.map +1 -1
  98. package/es2020/src/modules/castPipes/index.js +3 -0
  99. package/es2020/src/modules/castPipes/index.js.map +1 -0
  100. package/es2020/src/modules/castPipes/modules/castPipes.module.js +35 -0
  101. package/es2020/src/modules/castPipes/modules/castPipes.module.js.map +1 -0
  102. package/es2020/src/modules/castPipes/modules/index.js +2 -0
  103. package/es2020/src/modules/castPipes/modules/index.js.map +1 -0
  104. package/es2020/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +15 -0
  105. package/es2020/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js.map +1 -0
  106. package/es2020/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +21 -0
  107. package/es2020/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js.map +1 -0
  108. package/es2020/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +23 -0
  109. package/es2020/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js.map +1 -0
  110. package/es2020/src/modules/castPipes/pipes/castType/castType.pipe.js +54 -0
  111. package/es2020/src/modules/castPipes/pipes/castType/castType.pipe.js.map +1 -0
  112. package/es2020/src/modules/castPipes/pipes/index.js +5 -0
  113. package/es2020/src/modules/castPipes/pipes/index.js.map +1 -0
  114. package/es2020/src/modules/{commonLocalize.js → commonLocalize.module.js} +1 -1
  115. package/es2020/src/modules/commonLocalize.module.js.map +1 -0
  116. package/es2020/src/modules/progressIndicator/modules/progressIndicator.module.js +1 -1
  117. package/es2020/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
  118. package/forms/src/index.d.ts +1 -0
  119. package/forms/src/index.d.ts.map +1 -1
  120. package/forms/src/modules/formPipes/index.d.ts +3 -0
  121. package/forms/src/modules/formPipes/index.d.ts.map +1 -0
  122. package/forms/src/modules/formPipes/modules/formPipes.module.d.ts +14 -0
  123. package/forms/src/modules/formPipes/modules/formPipes.module.d.ts.map +1 -0
  124. package/forms/src/modules/formPipes/modules/index.d.ts +2 -0
  125. package/forms/src/modules/formPipes/modules/index.d.ts.map +1 -0
  126. package/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.d.ts +15 -0
  127. package/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.d.ts.map +1 -0
  128. package/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.d.ts +15 -0
  129. package/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.d.ts.map +1 -0
  130. package/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.d.ts +15 -0
  131. package/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.d.ts.map +1 -0
  132. package/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.d.ts +18 -0
  133. package/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.d.ts.map +1 -0
  134. package/forms/src/modules/formPipes/pipes/index.d.ts +5 -0
  135. package/forms/src/modules/formPipes/pipes/index.d.ts.map +1 -0
  136. package/material/src/components/titledDialog/titledDialog.component.d.ts.map +1 -1
  137. package/material/src/modules/titledDialog.module.d.ts +1 -1
  138. package/material/src/modules/titledDialog.module.d.ts.map +1 -1
  139. package/package.json +3 -15
  140. package/readme.md +0 -1
  141. package/src/decorators/componentDisplay.decorator.d.ts +9 -0
  142. package/src/decorators/componentDisplay.decorator.d.ts.map +1 -0
  143. package/src/decorators/componentDisplayBlock.decorator.d.ts +7 -0
  144. package/src/decorators/componentDisplayBlock.decorator.d.ts.map +1 -0
  145. package/src/decorators/componentDisplayFlex.decorator.d.ts +7 -0
  146. package/src/decorators/componentDisplayFlex.decorator.d.ts.map +1 -0
  147. package/src/decorators/componentHostStyle.decorator.d.ts +8 -0
  148. package/src/decorators/componentHostStyle.decorator.d.ts.map +1 -0
  149. package/src/decorators/index.d.ts +6 -0
  150. package/src/decorators/index.d.ts.map +1 -0
  151. package/src/decorators/scrollableContent.decorator.d.ts +7 -0
  152. package/src/decorators/scrollableContent.decorator.d.ts.map +1 -0
  153. package/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.d.ts.map +1 -1
  154. package/src/index.d.ts +3 -1
  155. package/src/index.d.ts.map +1 -1
  156. package/src/modules/castPipes/index.d.ts +3 -0
  157. package/src/modules/castPipes/index.d.ts.map +1 -0
  158. package/src/modules/castPipes/modules/castPipes.module.d.ts +14 -0
  159. package/src/modules/castPipes/modules/castPipes.module.d.ts.map +1 -0
  160. package/src/modules/castPipes/modules/index.d.ts +2 -0
  161. package/src/modules/castPipes/modules/index.d.ts.map +1 -0
  162. package/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.d.ts +10 -0
  163. package/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.d.ts.map +1 -0
  164. package/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.d.ts +15 -0
  165. package/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.d.ts.map +1 -0
  166. package/src/modules/castPipes/pipes/asRequired/asRequired.pipe.d.ts +17 -0
  167. package/src/modules/castPipes/pipes/asRequired/asRequired.pipe.d.ts.map +1 -0
  168. package/src/modules/castPipes/pipes/castType/castType.pipe.d.ts +28 -0
  169. package/src/modules/castPipes/pipes/castType/castType.pipe.d.ts.map +1 -0
  170. package/src/modules/castPipes/pipes/index.d.ts +5 -0
  171. package/src/modules/castPipes/pipes/index.d.ts.map +1 -0
  172. package/src/modules/{commonLocalize.d.ts → commonLocalize.module.d.ts} +1 -1
  173. package/src/modules/commonLocalize.module.d.ts.map +1 -0
  174. package/src/modules/progressIndicator/modules/progressIndicator.module.d.ts +1 -1
  175. package/version.bak +1 -1
  176. package/es2015/hmr/src/index.js +0 -35
  177. package/es2015/hmr/src/index.js.map +0 -1
  178. package/es2015/src/modules/commonLocalize.js.map +0 -1
  179. package/es2020/hmr/src/index.js +0 -35
  180. package/es2020/hmr/src/index.js.map +0 -1
  181. package/es2020/src/modules/commonLocalize.js.map +0 -1
  182. package/hmr/package.json +0 -9
  183. package/hmr/src/index.d.ts +0 -6
  184. package/hmr/src/index.d.ts.map +0 -1
  185. package/src/modules/commonLocalize.d.ts.map +0 -1
@@ -0,0 +1,35 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { AsHtmlElementPipe, AsNgClassRequiredPipe, AsRequiredTypePipe, CastTypePipe } from '../pipes';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Module that holds cast pipes
6
+ */
7
+ export class CastPipesModule {
8
+ }
9
+ CastPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CastPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
+ CastPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CastPipesModule, declarations: [AsHtmlElementPipe,
11
+ AsNgClassRequiredPipe,
12
+ AsRequiredTypePipe,
13
+ CastTypePipe], exports: [AsHtmlElementPipe,
14
+ AsNgClassRequiredPipe,
15
+ AsRequiredTypePipe,
16
+ CastTypePipe] });
17
+ CastPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CastPipesModule });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CastPipesModule, decorators: [{
19
+ type: NgModule,
20
+ args: [{
21
+ declarations: [
22
+ AsHtmlElementPipe,
23
+ AsNgClassRequiredPipe,
24
+ AsRequiredTypePipe,
25
+ CastTypePipe,
26
+ ],
27
+ exports: [
28
+ AsHtmlElementPipe,
29
+ AsNgClassRequiredPipe,
30
+ AsRequiredTypePipe,
31
+ CastTypePipe,
32
+ ]
33
+ }]
34
+ }] });
35
+ //# sourceMappingURL=castPipes.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"castPipes.module.js","sourceRoot":"","sources":["../../../../../src/modules/castPipes/modules/castPipes.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,iBAAiB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;;AAEpG;;GAEG;AAkBH,MAAM,OAAO,eAAe;;4GAAf,eAAe;6GAAf,eAAe,iBAbpB,iBAAiB;QACjB,qBAAqB;QACrB,kBAAkB;QAClB,YAAY,aAIZ,iBAAiB;QACjB,qBAAqB;QACrB,kBAAkB;QAClB,YAAY;6GAGP,eAAe;2FAAf,eAAe;kBAjB3B,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,iBAAiB;wBACjB,qBAAqB;wBACrB,kBAAkB;wBAClB,YAAY;qBACf;oBACD,OAAO,EACP;wBACI,iBAAiB;wBACjB,qBAAqB;wBACrB,kBAAkB;wBAClB,YAAY;qBACf;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {AsHtmlElementPipe, AsNgClassRequiredPipe, AsRequiredTypePipe, CastTypePipe} from '../pipes';\n\n/**\n * Module that holds cast pipes\n */\n@NgModule(\n{\n declarations:\n [\n AsHtmlElementPipe,\n AsNgClassRequiredPipe,\n AsRequiredTypePipe,\n CastTypePipe,\n ],\n exports:\n [\n AsHtmlElementPipe,\n AsNgClassRequiredPipe,\n AsRequiredTypePipe,\n CastTypePipe,\n ]\n})\nexport class CastPipesModule\n{\n}"]}
@@ -0,0 +1,2 @@
1
+ export * from './castPipes.module';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/castPipes/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC","sourcesContent":["export * from './castPipes.module';\n"]}
@@ -0,0 +1,15 @@
1
+ import { Pipe } from '@angular/core';
2
+ import { CastTypePipe } from '../castType/castType.pipe';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Casts EventTarget to HTMLELement
6
+ */
7
+ export class AsHtmlElementPipe extends CastTypePipe {
8
+ }
9
+ AsHtmlElementPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsHtmlElementPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe });
10
+ AsHtmlElementPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsHtmlElementPipe, name: "asHtmlElement" });
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsHtmlElementPipe, decorators: [{
12
+ type: Pipe,
13
+ args: [{ name: 'asHtmlElement' }]
14
+ }] });
15
+ //# sourceMappingURL=asHtmlElement.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asHtmlElement.pipe.js","sourceRoot":"","sources":["../../../../../../src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAEnC,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;;AAEvD;;GAEG;AAEH,MAAM,OAAO,iBAAkB,SAAQ,YAAsC;;8GAAhE,iBAAiB;4GAAjB,iBAAiB;2FAAjB,iBAAiB;kBAD7B,IAAI;mBAAC,EAAC,IAAI,EAAE,eAAe,EAAC","sourcesContent":["import {Pipe} from '@angular/core';\n\nimport {CastTypePipe} from '../castType/castType.pipe';\n\n/**\n * Casts EventTarget to HTMLELement\n */\n@Pipe({name: 'asHtmlElement'})\nexport class AsHtmlElementPipe extends CastTypePipe<EventTarget, HTMLElement>\n{\n}"]}
@@ -0,0 +1,21 @@
1
+ import { Pipe } from '@angular/core';
2
+ import { AsRequiredTypePipe } from '../asRequired/asRequired.pipe';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Transforms nullable NgClass input to NgClass non nullable input
6
+ */
7
+ export class AsNgClassRequiredPipe extends AsRequiredTypePipe {
8
+ /**
9
+ * @inheritdoc
10
+ */
11
+ transform(value, valueHash) {
12
+ return super.transform(value, '', valueHash);
13
+ }
14
+ }
15
+ AsNgClassRequiredPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsNgClassRequiredPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe });
16
+ AsNgClassRequiredPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsNgClassRequiredPipe, name: "asNgClassRequired" });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsNgClassRequiredPipe, decorators: [{
18
+ type: Pipe,
19
+ args: [{ name: 'asNgClassRequired' }]
20
+ }] });
21
+ //# sourceMappingURL=asNgClassRequired.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asNgClassRequired.pipe.js","sourceRoot":"","sources":["../../../../../../src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAGnC,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;;AAEjE;;GAEG;AAEH,MAAM,OAAO,qBAAsB,SAAQ,kBAA+D;IAEtG;;OAEG;IACa,SAAS,CAAC,KAAiE,EAAE,SAAe;QAExG,OAAO,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC;IACjD,CAAC;;kHARQ,qBAAqB;gHAArB,qBAAqB;2FAArB,qBAAqB;kBADjC,IAAI;mBAAC,EAAC,IAAI,EAAE,mBAAmB,EAAC","sourcesContent":["import {Pipe} from '@angular/core';\nimport {Dictionary} from '@jscrpt/common';\n\nimport {AsRequiredTypePipe} from '../asRequired/asRequired.pipe';\n\n/**\n * Transforms nullable NgClass input to NgClass non nullable input\n */\n@Pipe({name: 'asNgClassRequired'})\nexport class AsNgClassRequiredPipe extends AsRequiredTypePipe<string|string[]|Set<string>|Dictionary<any>>\n{\n /**\n * @inheritdoc\n */\n public override transform(value: string|string[]|Set<string>|Dictionary<any>|null|undefined, valueHash?: any): string|string[]|Set<string>|Dictionary<any>\n {\n return super.transform(value, '', valueHash);\n }\n}"]}
@@ -0,0 +1,23 @@
1
+ import { Pipe } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Transforms type to required from nullable or undefined type
5
+ */
6
+ export class AsRequiredTypePipe {
7
+ /**
8
+ * Transforms type to required from nullable or undefined type
9
+ * @param value - Value to be transformed
10
+ * @param defaultValue - Default value to be used if undefined or null
11
+ * @param _valueHash - Parameter that can be used to change value, indicates that pipe input value has changed
12
+ */
13
+ transform(value, defaultValue, _valueHash) {
14
+ return value !== null && value !== void 0 ? value : defaultValue;
15
+ }
16
+ }
17
+ AsRequiredTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsRequiredTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
18
+ AsRequiredTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsRequiredTypePipe, name: "asRequired" });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsRequiredTypePipe, decorators: [{
20
+ type: Pipe,
21
+ args: [{ name: 'asRequired' }]
22
+ }] });
23
+ //# sourceMappingURL=asRequired.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asRequired.pipe.js","sourceRoot":"","sources":["../../../../../../src/modules/castPipes/pipes/asRequired/asRequired.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;;AAElD;;GAEG;AAEH,MAAM,OAAO,kBAAkB;IAE3B;;;;;OAKG;IACI,SAAS,CAAC,KAA2B,EAAE,YAAmB,EAAE,UAAgB;QAE/E,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,YAAY,CAAC;IACjC,CAAC;;+GAXQ,kBAAkB;6GAAlB,kBAAkB;2FAAlB,kBAAkB;kBAD9B,IAAI;mBAAC,EAAC,IAAI,EAAE,YAAY,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n/**\n * Transforms type to required from nullable or undefined type\n */\n@Pipe({name: 'asRequired'})\nexport class AsRequiredTypePipe<TType> implements PipeTransform\n{\n /**\n * Transforms type to required from nullable or undefined type\n * @param value - Value to be transformed\n * @param defaultValue - Default value to be used if undefined or null\n * @param _valueHash - Parameter that can be used to change value, indicates that pipe input value has changed\n */\n public transform(value: TType|null|undefined, defaultValue: TType, _valueHash?: any): TType\n {\n return value ?? defaultValue;\n }\n}"]}
@@ -0,0 +1,55 @@
1
+ import { Inject, Optional, Pipe } from '@angular/core';
2
+ import { isBlank } from '@jscrpt/common';
3
+ import { LOGGER } from '../../../../types/tokens';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Allows casting of type for templates, should be used inherited
7
+ */
8
+ export class CastTypePipe {
9
+ //######################### constructors #########################
10
+ constructor(_logger) {
11
+ this._logger = _logger;
12
+ //######################### protected fields #########################
13
+ /**
14
+ * Predicate for testing whether is value instance of something
15
+ */
16
+ this._isInstanceOfPredicate = () => true;
17
+ }
18
+ //######################### public methods - implementation of PipeTransform #########################
19
+ /**
20
+ * Allows casting of type for templates, should be used inherited
21
+ * @param value - Value to be cast to another type
22
+ * @param _valueHash - Parameter that can be used to change value, indicates that pipe input value has changed
23
+ */
24
+ transform(value, _valueHash) {
25
+ var _a;
26
+ if (isBlank(value)) {
27
+ return null;
28
+ }
29
+ if (this._isInstanceOf(value)) {
30
+ return value;
31
+ }
32
+ (_a = this._logger) === null || _a === void 0 ? void 0 : _a.warn('Failed to cast value to target');
33
+ return null;
34
+ }
35
+ //######################### protected methods #########################
36
+ /**
37
+ * Checks whether is value instance of TTarget
38
+ * @param value - Value to be checked whether is instance of TTarget
39
+ */
40
+ _isInstanceOf(value) {
41
+ return this._isInstanceOfPredicate(value);
42
+ }
43
+ }
44
+ CastTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CastTypePipe, deps: [{ token: LOGGER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
45
+ CastTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CastTypePipe, name: "castType" });
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CastTypePipe, decorators: [{
47
+ type: Pipe,
48
+ args: [{ name: 'castType' }]
49
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
50
+ type: Optional
51
+ }, {
52
+ type: Inject,
53
+ args: [LOGGER]
54
+ }] }]; } });
55
+ //# sourceMappingURL=castType.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"castType.pipe.js","sourceRoot":"","sources":["../../../../../../src/modules/castPipes/pipes/castType/castType.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AACpE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAGvC,OAAO,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;;AAEhD;;GAEG;AAEH,MAAM,OAAO,YAAY;IASrB,kEAAkE;IAClE,YAAgD,OAAgB;QAAhB,YAAO,GAAP,OAAO,CAAS;QARhE,sEAAsE;QAEtE;;WAEG;QACO,2BAAsB,GAAgC,GAAG,EAAE,CAAC,IAAI,CAAC;IAK3E,CAAC;IAED,sGAAsG;IAEtG;;;;OAIG;IACI,SAAS,CAAC,KAAc,EAAE,UAAgB;;QAE7C,IAAG,OAAO,CAAC,KAAK,CAAC,EACjB;YACI,OAAO,IAAI,CAAC;SACf;QAED,IAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAC5B;YACI,OAAO,KAAK,CAAC;SAChB;QAED,MAAA,IAAI,CAAC,OAAO,0CAAE,IAAI,CAAC,gCAAgC,CAAC,CAAC;QAErD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,uEAAuE;IAEvE;;;OAGG;IACO,aAAa,CAAC,KAAc;QAElC,OAAO,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAC9C,CAAC;;yGA/CQ,YAAY,kBAUW,MAAM;uGAV7B,YAAY;2FAAZ,YAAY;kBADxB,IAAI;mBAAC,EAAC,IAAI,EAAE,UAAU,EAAC;;0BAWP,QAAQ;;0BAAI,MAAM;2BAAC,MAAM","sourcesContent":["import {Inject, Optional, Pipe, PipeTransform} from '@angular/core';\nimport {isBlank} from '@jscrpt/common';\n\nimport {Logger} from '../../../../services/logger/logger.interface';\nimport {LOGGER} from '../../../../types/tokens';\n\n/**\n * Allows casting of type for templates, should be used inherited\n */\n@Pipe({name: 'castType'})\nexport class CastTypePipe<TSource, TTarget extends TSource> implements PipeTransform\n{\n //######################### protected fields #########################\n\n /**\n * Predicate for testing whether is value instance of something\n */\n protected _isInstanceOfPredicate: (value: TSource) => boolean = () => true;\n\n //######################### constructors #########################\n constructor(@Optional() @Inject(LOGGER) private _logger?: Logger)\n {\n }\n\n //######################### public methods - implementation of PipeTransform #########################\n\n /**\n * Allows casting of type for templates, should be used inherited\n * @param value - Value to be cast to another type\n * @param _valueHash - Parameter that can be used to change value, indicates that pipe input value has changed\n */\n public transform(value: TSource, _valueHash?: any): TTarget\n {\n if(isBlank(value))\n {\n return null;\n }\n\n if(this._isInstanceOf(value))\n {\n return value;\n }\n\n this._logger?.warn('Failed to cast value to target');\n\n return null;\n }\n\n //######################### protected methods #########################\n\n /**\n * Checks whether is value instance of TTarget\n * @param value - Value to be checked whether is instance of TTarget\n */\n protected _isInstanceOf(value: TSource): value is TTarget\n {\n return this._isInstanceOfPredicate(value);\n }\n}"]}
@@ -0,0 +1,5 @@
1
+ export * from './asHtmlElement/asHtmlElement.pipe';
2
+ export * from './asNgClassRequired/asNgClassRequired.pipe';
3
+ export * from './asRequired/asRequired.pipe';
4
+ export * from './castType/castType.pipe';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/castPipes/pipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC","sourcesContent":["export * from './asHtmlElement/asHtmlElement.pipe';\nexport * from './asNgClassRequired/asNgClassRequired.pipe';\nexport * from './asRequired/asRequired.pipe';\nexport * from './castType/castType.pipe';\n"]}
@@ -20,4 +20,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
20
20
  ]
21
21
  }]
22
22
  }] });
23
- //# sourceMappingURL=commonLocalize.js.map
23
+ //# sourceMappingURL=commonLocalize.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commonLocalize.module.js","sourceRoot":"","sources":["../../../src/modules/commonLocalize.module.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}"]}
@@ -1,6 +1,6 @@
1
1
  import { NgModule } from '@angular/core';
2
2
  import { CommonModule } from '@angular/common';
3
- import { CommonLocalizeModule } from '../../commonLocalize';
3
+ import { CommonLocalizeModule } from '../../commonLocalize.module';
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";
@@ -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,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
+ {"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,6BAA6B,CAAC;AACjE,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.module';\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}"]}
@@ -16,5 +16,6 @@ export * from './misc/types';
16
16
  export * from './modules/numberInput.module';
17
17
  export * from './modules/hasError.module';
18
18
  export * from './modules/requiredClass.module';
19
+ export * from './modules/formPipes';
19
20
  export * from './misc/formModel';
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../forms/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,oEAAoE,CAAC;AACnF,cAAc,kEAAkE,CAAC;AACjF,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './directives/numberInput/maxValueNumberValidator.directive';\nexport * from './directives/numberInput/minValueNumberValidator.directive';\nexport * from './directives/numberInput/numberInputValidator.directive';\nexport * from './directives/numberInput/numberInputControlValueAccessor.directive';\nexport * from './directives/hasError/hasError.directive';\nexport * from './directives/groupHasError/groupHasError.directive';\nexport * from './directives/requiredClass/requiredClass.directive';\nexport * from './services/submitted/submitted.service';\nexport * from './services/errorMessagesExtractor/errorMessagesExtractor.interface';\nexport * from './services/errorMessagesExtractor/errorMessagesExtractor.service';\nexport * from './services/validationErrorRenderer/validationErrorRenderer.interface';\nexport * from './services/validationErrorRenderer/validationErrorRenderer.service';\nexport * from './misc/validators';\nexport * from './misc/utils';\nexport * from './misc/types';\nexport * from './modules/numberInput.module';\nexport * from './modules/hasError.module';\nexport * from './modules/requiredClass.module';\nexport * from './misc/formModel';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../forms/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,oEAAoE,CAAC;AACnF,cAAc,kEAAkE,CAAC;AACjF,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './directives/numberInput/maxValueNumberValidator.directive';\nexport * from './directives/numberInput/minValueNumberValidator.directive';\nexport * from './directives/numberInput/numberInputValidator.directive';\nexport * from './directives/numberInput/numberInputControlValueAccessor.directive';\nexport * from './directives/hasError/hasError.directive';\nexport * from './directives/groupHasError/groupHasError.directive';\nexport * from './directives/requiredClass/requiredClass.directive';\nexport * from './services/submitted/submitted.service';\nexport * from './services/errorMessagesExtractor/errorMessagesExtractor.interface';\nexport * from './services/errorMessagesExtractor/errorMessagesExtractor.service';\nexport * from './services/validationErrorRenderer/validationErrorRenderer.interface';\nexport * from './services/validationErrorRenderer/validationErrorRenderer.service';\nexport * from './misc/validators';\nexport * from './misc/utils';\nexport * from './misc/types';\nexport * from './modules/numberInput.module';\nexport * from './modules/hasError.module';\nexport * from './modules/requiredClass.module';\nexport * from './modules/formPipes';\nexport * from './misc/formModel';\n"]}
@@ -0,0 +1,3 @@
1
+ export * from './modules';
2
+ export * from './pipes';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../forms/src/modules/formPipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC","sourcesContent":["export * from './modules';\nexport * from './pipes';\n"]}
@@ -0,0 +1,35 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { AsFormArrayPipe, AsFormControlPipe, AsFormGroupPipe, GetControlPipe } from '../pipes';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Module that holds form util pipes
6
+ */
7
+ export class FormPipesModule {
8
+ }
9
+ FormPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FormPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
+ FormPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FormPipesModule, declarations: [AsFormArrayPipe,
11
+ AsFormControlPipe,
12
+ AsFormGroupPipe,
13
+ GetControlPipe], exports: [AsFormArrayPipe,
14
+ AsFormControlPipe,
15
+ AsFormGroupPipe,
16
+ GetControlPipe] });
17
+ FormPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FormPipesModule });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FormPipesModule, decorators: [{
19
+ type: NgModule,
20
+ args: [{
21
+ declarations: [
22
+ AsFormArrayPipe,
23
+ AsFormControlPipe,
24
+ AsFormGroupPipe,
25
+ GetControlPipe,
26
+ ],
27
+ exports: [
28
+ AsFormArrayPipe,
29
+ AsFormControlPipe,
30
+ AsFormGroupPipe,
31
+ GetControlPipe,
32
+ ]
33
+ }]
34
+ }] });
35
+ //# sourceMappingURL=formPipes.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formPipes.module.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/formPipes/modules/formPipes.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAC,MAAM,UAAU,CAAC;;AAE7F;;GAEG;AAkBH,MAAM,OAAO,eAAe;;4GAAf,eAAe;6GAAf,eAAe,iBAbpB,eAAe;QACf,iBAAiB;QACjB,eAAe;QACf,cAAc,aAId,eAAe;QACf,iBAAiB;QACjB,eAAe;QACf,cAAc;6GAGT,eAAe;2FAAf,eAAe;kBAjB3B,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,eAAe;wBACf,iBAAiB;wBACjB,eAAe;wBACf,cAAc;qBACjB;oBACD,OAAO,EACP;wBACI,eAAe;wBACf,iBAAiB;wBACjB,eAAe;wBACf,cAAc;qBACjB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {AsFormArrayPipe, AsFormControlPipe, AsFormGroupPipe, GetControlPipe} from '../pipes';\n\n/**\n * Module that holds form util pipes\n */\n@NgModule(\n{\n declarations:\n [\n AsFormArrayPipe,\n AsFormControlPipe,\n AsFormGroupPipe,\n GetControlPipe,\n ],\n exports:\n [\n AsFormArrayPipe,\n AsFormControlPipe,\n AsFormGroupPipe,\n GetControlPipe,\n ]\n})\nexport class FormPipesModule\n{\n}"]}
@@ -0,0 +1,2 @@
1
+ export * from './formPipes.module';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/formPipes/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC","sourcesContent":["export * from './formPipes.module';\n"]}
@@ -0,0 +1,24 @@
1
+ import { Pipe } from '@angular/core';
2
+ import { FormArray } from '@angular/forms';
3
+ import { CastTypePipe } from '@anglr/common';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Tries to convert `AbstractControl` to `FormArray`
7
+ */
8
+ export class AsFormArrayPipe extends CastTypePipe {
9
+ constructor() {
10
+ super(...arguments);
11
+ //######################### protected fields #########################
12
+ /**
13
+ * @inheritdoc
14
+ */
15
+ this._isInstanceOfPredicate = value => value instanceof FormArray;
16
+ }
17
+ }
18
+ AsFormArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormArrayPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe });
19
+ AsFormArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormArrayPipe, name: "asFormArray" });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormArrayPipe, decorators: [{
21
+ type: Pipe,
22
+ args: [{ name: 'asFormArray' }]
23
+ }] });
24
+ //# sourceMappingURL=asFormArray.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asFormArray.pipe.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAkB,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;;AAE3C;;GAEG;AAEH,MAAM,OAAO,eAAgB,SAAQ,YAAwC;IAD7E;;QAGI,sEAAsE;QAEtE;;WAEG;QACgB,2BAAsB,GAAwC,KAAK,CAAC,EAAE,CAAC,KAAK,YAAY,SAAS,CAAC;KACxH;;4GARY,eAAe;0GAAf,eAAe;2FAAf,eAAe;kBAD3B,IAAI;mBAAC,EAAC,IAAI,EAAE,aAAa,EAAC","sourcesContent":["import {Pipe} from '@angular/core';\nimport {AbstractControl, FormArray} from '@angular/forms';\nimport {CastTypePipe} from '@anglr/common';\n\n/**\n * Tries to convert `AbstractControl` to `FormArray`\n */\n@Pipe({name: 'asFormArray'})\nexport class AsFormArrayPipe extends CastTypePipe<AbstractControl, FormArray>\n{\n //######################### protected fields #########################\n\n /**\n * @inheritdoc\n */\n protected override _isInstanceOfPredicate: (value: AbstractControl) => boolean = value => value instanceof FormArray;\n}"]}
@@ -0,0 +1,24 @@
1
+ import { Pipe } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { CastTypePipe } from '@anglr/common';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Tries to convert `AbstractControl` to `FormControl`
7
+ */
8
+ export class AsFormControlPipe extends CastTypePipe {
9
+ constructor() {
10
+ super(...arguments);
11
+ //######################### protected fields #########################
12
+ /**
13
+ * @inheritdoc
14
+ */
15
+ this._isInstanceOfPredicate = value => value instanceof FormControl;
16
+ }
17
+ }
18
+ AsFormControlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormControlPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe });
19
+ AsFormControlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormControlPipe, name: "asFormControl" });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormControlPipe, decorators: [{
21
+ type: Pipe,
22
+ args: [{ name: 'asFormControl' }]
23
+ }] });
24
+ //# sourceMappingURL=asFormControl.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asFormControl.pipe.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAkB,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;;AAE3C;;GAEG;AAEH,MAAM,OAAO,iBAAkB,SAAQ,YAA0C;IADjF;;QAGI,sEAAsE;QAEtE;;WAEG;QACgB,2BAAsB,GAAwC,KAAK,CAAC,EAAE,CAAC,KAAK,YAAY,WAAW,CAAC;KAC1H;;8GARY,iBAAiB;4GAAjB,iBAAiB;2FAAjB,iBAAiB;kBAD7B,IAAI;mBAAC,EAAC,IAAI,EAAE,eAAe,EAAC","sourcesContent":["import {Pipe} from '@angular/core';\nimport {AbstractControl, FormControl} from '@angular/forms';\nimport {CastTypePipe} from '@anglr/common';\n\n/**\n * Tries to convert `AbstractControl` to `FormControl`\n */\n@Pipe({name: 'asFormControl'})\nexport class AsFormControlPipe extends CastTypePipe<AbstractControl, FormControl>\n{\n //######################### protected fields #########################\n\n /**\n * @inheritdoc\n */\n protected override _isInstanceOfPredicate: (value: AbstractControl) => boolean = value => value instanceof FormControl;\n}"]}
@@ -0,0 +1,24 @@
1
+ import { Pipe } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { CastTypePipe } from '@anglr/common';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Tries to convert `AbstractControl` to `FormGroup`
7
+ */
8
+ export class AsFormGroupPipe extends CastTypePipe {
9
+ constructor() {
10
+ super(...arguments);
11
+ //######################### protected fields #########################
12
+ /**
13
+ * @inheritdoc
14
+ */
15
+ this._isInstanceOfPredicate = value => value instanceof FormGroup;
16
+ }
17
+ }
18
+ AsFormGroupPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormGroupPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe });
19
+ AsFormGroupPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormGroupPipe, name: "asFormGroup" });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormGroupPipe, decorators: [{
21
+ type: Pipe,
22
+ args: [{ name: 'asFormGroup' }]
23
+ }] });
24
+ //# sourceMappingURL=asFormGroup.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asFormGroup.pipe.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAkB,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;;AAE3C;;GAEG;AAEH,MAAM,OAAO,eAAgB,SAAQ,YAAwC;IAD7E;;QAGI,sEAAsE;QAEtE;;WAEG;QACgB,2BAAsB,GAAwC,KAAK,CAAC,EAAE,CAAC,KAAK,YAAY,SAAS,CAAC;KACxH;;4GARY,eAAe;0GAAf,eAAe;2FAAf,eAAe;kBAD3B,IAAI;mBAAC,EAAC,IAAI,EAAE,aAAa,EAAC","sourcesContent":["import {Pipe} from '@angular/core';\nimport {AbstractControl, FormGroup} from '@angular/forms';\nimport {CastTypePipe} from '@anglr/common';\n\n/**\n * Tries to convert `AbstractControl` to `FormGroup`\n */\n@Pipe({name: 'asFormGroup'})\nexport class AsFormGroupPipe extends CastTypePipe<AbstractControl, FormGroup>\n{\n //######################### protected fields #########################\n\n /**\n * @inheritdoc\n */\n protected override _isInstanceOfPredicate: (value: AbstractControl) => boolean = value => value instanceof FormGroup;\n}"]}
@@ -0,0 +1,31 @@
1
+ import { Pipe } from '@angular/core';
2
+ import { FormArray, FormGroup } from '@angular/forms';
3
+ import { isBlank } from '@jscrpt/common';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Gets control from `FormGroup`
7
+ */
8
+ export class GetControlPipe {
9
+ /**
10
+ * Gets control from `FormGroup`
11
+ * @param value - FormGroup which contains requested control
12
+ * @param control - Control name to be obtained
13
+ * @param _valueHash - Parameter that can be used to change value, indicates that pipe input value has changed
14
+ */
15
+ transform(value, control, _valueHash) {
16
+ if (isBlank(value)) {
17
+ return null;
18
+ }
19
+ if (!(value instanceof FormArray) && !(value instanceof FormGroup)) {
20
+ return null;
21
+ }
22
+ return value.get(control);
23
+ }
24
+ }
25
+ GetControlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: GetControlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
26
+ GetControlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: GetControlPipe, name: "getControl" });
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: GetControlPipe, decorators: [{
28
+ type: Pipe,
29
+ args: [{ name: 'getControl' }]
30
+ }] });
31
+ //# sourceMappingURL=getControl.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getControl.pipe.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/formPipes/pipes/getControl/getControl.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAkB,SAAS,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAEvC;;GAEG;AAEH,MAAM,OAAO,cAAc;IAEvB;;;;;OAKG;IACI,SAAS,CAAC,KAAsB,EAAE,OAAyB,EAAE,UAAgB;QAEhF,IAAG,OAAO,CAAC,KAAK,CAAC,EACjB;YACI,OAAO,IAAI,CAAC;SACf;QAED,IAAG,CAAC,CAAC,KAAK,YAAY,SAAS,CAAC,IAAI,CAAC,CAAC,KAAK,YAAY,SAAS,CAAC,EACjE;YACI,OAAO,IAAI,CAAC;SACf;QAED,OAAO,KAAK,CAAC,GAAG,CAAC,OAAiB,CAAC,CAAC;IACxC,CAAC;;2GArBQ,cAAc;yGAAd,cAAc;2FAAd,cAAc;kBAD1B,IAAI;mBAAC,EAAC,IAAI,EAAE,YAAY,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {AbstractControl, FormArray, FormGroup} from '@angular/forms';\nimport {isBlank} from '@jscrpt/common';\n\n/**\n * Gets control from `FormGroup`\n */\n@Pipe({name: 'getControl'})\nexport class GetControlPipe<TFormGroup> implements PipeTransform\n{\n /**\n * Gets control from `FormGroup`\n * @param value - FormGroup which contains requested control\n * @param control - Control name to be obtained\n * @param _valueHash - Parameter that can be used to change value, indicates that pipe input value has changed\n */\n public transform(value: AbstractControl, control: keyof TFormGroup, _valueHash?: any): AbstractControl|null\n {\n if(isBlank(value))\n {\n return null;\n }\n\n if(!(value instanceof FormArray) && !(value instanceof FormGroup))\n {\n return null;\n }\n\n return value.get(control as string);\n }\n}"]}
@@ -0,0 +1,5 @@
1
+ export * from './asFormArray/asFormArray.pipe';
2
+ export * from './asFormControl/asFormControl.pipe';
3
+ export * from './asFormGroup/asFormGroup.pipe';
4
+ export * from './getControl/getControl.pipe';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/formPipes/pipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './asFormArray/asFormArray.pipe';\nexport * from './asFormControl/asFormControl.pipe';\nexport * from './asFormGroup/asFormGroup.pipe';\nexport * from './getControl/getControl.pipe';\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}"]}
@@ -0,0 +1,11 @@
1
+ import { ComponentHostStyle } from './componentHostStyle.decorator';
2
+ /**
3
+ * Applies css display style to host of component, requires at least empty style on Component
4
+ * @param display - Css display value
5
+ *
6
+ * @experimental
7
+ */
8
+ export function ComponentDisplay(display) {
9
+ return ComponentHostStyle(`display: ${display}`);
10
+ }
11
+ //# sourceMappingURL=componentDisplay.decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentDisplay.decorator.js","sourceRoot":"","sources":["../../../src/decorators/componentDisplay.decorator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAElE;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAmB;IAEhD,OAAO,kBAAkB,CAAC,YAAY,OAAO,EAAE,CAAC,CAAC;AACrD,CAAC","sourcesContent":["import {CssDisplay} from '@jscrpt/common';\n\nimport {ComponentHostStyle} from './componentHostStyle.decorator';\n\n/**\n * Applies css display style to host of component, requires at least empty style on Component\n * @param display - Css display value\n * \n * @experimental\n */\nexport function ComponentDisplay(display: CssDisplay): ClassDecorator\n{\n return ComponentHostStyle(`display: ${display}`);\n}\n"]}