@anglr/common 11.0.0 → 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 (161) hide show
  1. package/changelog.md +21 -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/src/decorators/componentDisplay.decorator.js +11 -0
  21. package/es2015/src/decorators/componentDisplay.decorator.js.map +1 -0
  22. package/es2015/src/decorators/componentDisplayBlock.decorator.js +10 -0
  23. package/es2015/src/decorators/componentDisplayBlock.decorator.js.map +1 -0
  24. package/es2015/src/decorators/componentDisplayFlex.decorator.js +10 -0
  25. package/es2015/src/decorators/componentDisplayFlex.decorator.js.map +1 -0
  26. package/es2015/src/decorators/componentHostStyle.decorator.js +22 -0
  27. package/es2015/src/decorators/componentHostStyle.decorator.js.map +1 -0
  28. package/es2015/src/decorators/index.js +6 -0
  29. package/es2015/src/decorators/index.js.map +1 -0
  30. package/es2015/src/decorators/scrollableContent.decorator.js +10 -0
  31. package/es2015/src/decorators/scrollableContent.decorator.js.map +1 -0
  32. package/es2015/src/index.js +3 -1
  33. package/es2015/src/index.js.map +1 -1
  34. package/es2015/src/modules/castPipes/index.js +3 -0
  35. package/es2015/src/modules/castPipes/index.js.map +1 -0
  36. package/es2015/src/modules/castPipes/modules/castPipes.module.js +35 -0
  37. package/es2015/src/modules/castPipes/modules/castPipes.module.js.map +1 -0
  38. package/es2015/src/modules/castPipes/modules/index.js +2 -0
  39. package/es2015/src/modules/castPipes/modules/index.js.map +1 -0
  40. package/es2015/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +15 -0
  41. package/es2015/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js.map +1 -0
  42. package/es2015/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +21 -0
  43. package/es2015/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js.map +1 -0
  44. package/es2015/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +23 -0
  45. package/es2015/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js.map +1 -0
  46. package/es2015/src/modules/castPipes/pipes/castType/castType.pipe.js +55 -0
  47. package/es2015/src/modules/castPipes/pipes/castType/castType.pipe.js.map +1 -0
  48. package/es2015/src/modules/castPipes/pipes/index.js +5 -0
  49. package/es2015/src/modules/castPipes/pipes/index.js.map +1 -0
  50. package/es2015/src/modules/{commonLocalize.js → commonLocalize.module.js} +1 -1
  51. package/es2015/src/modules/commonLocalize.module.js.map +1 -0
  52. package/es2015/src/modules/progressIndicator/modules/progressIndicator.module.js +1 -1
  53. package/es2015/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
  54. package/es2020/forms/src/index.js +1 -0
  55. package/es2020/forms/src/index.js.map +1 -1
  56. package/es2020/forms/src/modules/formPipes/index.js +3 -0
  57. package/es2020/forms/src/modules/formPipes/index.js.map +1 -0
  58. package/es2020/forms/src/modules/formPipes/modules/formPipes.module.js +35 -0
  59. package/es2020/forms/src/modules/formPipes/modules/formPipes.module.js.map +1 -0
  60. package/es2020/forms/src/modules/formPipes/modules/index.js +2 -0
  61. package/es2020/forms/src/modules/formPipes/modules/index.js.map +1 -0
  62. package/es2020/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +24 -0
  63. package/es2020/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js.map +1 -0
  64. package/es2020/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +24 -0
  65. package/es2020/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js.map +1 -0
  66. package/es2020/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +24 -0
  67. package/es2020/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js.map +1 -0
  68. package/es2020/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +31 -0
  69. package/es2020/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js.map +1 -0
  70. package/es2020/forms/src/modules/formPipes/pipes/index.js +5 -0
  71. package/es2020/forms/src/modules/formPipes/pipes/index.js.map +1 -0
  72. package/es2020/src/decorators/componentDisplay.decorator.js +11 -0
  73. package/es2020/src/decorators/componentDisplay.decorator.js.map +1 -0
  74. package/es2020/src/decorators/componentDisplayBlock.decorator.js +10 -0
  75. package/es2020/src/decorators/componentDisplayBlock.decorator.js.map +1 -0
  76. package/es2020/src/decorators/componentDisplayFlex.decorator.js +10 -0
  77. package/es2020/src/decorators/componentDisplayFlex.decorator.js.map +1 -0
  78. package/es2020/src/decorators/componentHostStyle.decorator.js +22 -0
  79. package/es2020/src/decorators/componentHostStyle.decorator.js.map +1 -0
  80. package/es2020/src/decorators/index.js +6 -0
  81. package/es2020/src/decorators/index.js.map +1 -0
  82. package/es2020/src/decorators/scrollableContent.decorator.js +10 -0
  83. package/es2020/src/decorators/scrollableContent.decorator.js.map +1 -0
  84. package/es2020/src/index.js +3 -1
  85. package/es2020/src/index.js.map +1 -1
  86. package/es2020/src/modules/castPipes/index.js +3 -0
  87. package/es2020/src/modules/castPipes/index.js.map +1 -0
  88. package/es2020/src/modules/castPipes/modules/castPipes.module.js +35 -0
  89. package/es2020/src/modules/castPipes/modules/castPipes.module.js.map +1 -0
  90. package/es2020/src/modules/castPipes/modules/index.js +2 -0
  91. package/es2020/src/modules/castPipes/modules/index.js.map +1 -0
  92. package/es2020/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +15 -0
  93. package/es2020/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js.map +1 -0
  94. package/es2020/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +21 -0
  95. package/es2020/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js.map +1 -0
  96. package/es2020/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +23 -0
  97. package/es2020/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js.map +1 -0
  98. package/es2020/src/modules/castPipes/pipes/castType/castType.pipe.js +54 -0
  99. package/es2020/src/modules/castPipes/pipes/castType/castType.pipe.js.map +1 -0
  100. package/es2020/src/modules/castPipes/pipes/index.js +5 -0
  101. package/es2020/src/modules/castPipes/pipes/index.js.map +1 -0
  102. package/es2020/src/modules/{commonLocalize.js → commonLocalize.module.js} +1 -1
  103. package/es2020/src/modules/commonLocalize.module.js.map +1 -0
  104. package/es2020/src/modules/progressIndicator/modules/progressIndicator.module.js +1 -1
  105. package/es2020/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
  106. package/forms/src/index.d.ts +1 -0
  107. package/forms/src/index.d.ts.map +1 -1
  108. package/forms/src/modules/formPipes/index.d.ts +3 -0
  109. package/forms/src/modules/formPipes/index.d.ts.map +1 -0
  110. package/forms/src/modules/formPipes/modules/formPipes.module.d.ts +14 -0
  111. package/forms/src/modules/formPipes/modules/formPipes.module.d.ts.map +1 -0
  112. package/forms/src/modules/formPipes/modules/index.d.ts +2 -0
  113. package/forms/src/modules/formPipes/modules/index.d.ts.map +1 -0
  114. package/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.d.ts +15 -0
  115. package/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.d.ts.map +1 -0
  116. package/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.d.ts +15 -0
  117. package/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.d.ts.map +1 -0
  118. package/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.d.ts +15 -0
  119. package/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.d.ts.map +1 -0
  120. package/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.d.ts +18 -0
  121. package/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.d.ts.map +1 -0
  122. package/forms/src/modules/formPipes/pipes/index.d.ts +5 -0
  123. package/forms/src/modules/formPipes/pipes/index.d.ts.map +1 -0
  124. package/package.json +1 -1
  125. package/src/decorators/componentDisplay.decorator.d.ts +9 -0
  126. package/src/decorators/componentDisplay.decorator.d.ts.map +1 -0
  127. package/src/decorators/componentDisplayBlock.decorator.d.ts +7 -0
  128. package/src/decorators/componentDisplayBlock.decorator.d.ts.map +1 -0
  129. package/src/decorators/componentDisplayFlex.decorator.d.ts +7 -0
  130. package/src/decorators/componentDisplayFlex.decorator.d.ts.map +1 -0
  131. package/src/decorators/componentHostStyle.decorator.d.ts +8 -0
  132. package/src/decorators/componentHostStyle.decorator.d.ts.map +1 -0
  133. package/src/decorators/index.d.ts +6 -0
  134. package/src/decorators/index.d.ts.map +1 -0
  135. package/src/decorators/scrollableContent.decorator.d.ts +7 -0
  136. package/src/decorators/scrollableContent.decorator.d.ts.map +1 -0
  137. package/src/index.d.ts +3 -1
  138. package/src/index.d.ts.map +1 -1
  139. package/src/modules/castPipes/index.d.ts +3 -0
  140. package/src/modules/castPipes/index.d.ts.map +1 -0
  141. package/src/modules/castPipes/modules/castPipes.module.d.ts +14 -0
  142. package/src/modules/castPipes/modules/castPipes.module.d.ts.map +1 -0
  143. package/src/modules/castPipes/modules/index.d.ts +2 -0
  144. package/src/modules/castPipes/modules/index.d.ts.map +1 -0
  145. package/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.d.ts +10 -0
  146. package/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.d.ts.map +1 -0
  147. package/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.d.ts +15 -0
  148. package/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.d.ts.map +1 -0
  149. package/src/modules/castPipes/pipes/asRequired/asRequired.pipe.d.ts +17 -0
  150. package/src/modules/castPipes/pipes/asRequired/asRequired.pipe.d.ts.map +1 -0
  151. package/src/modules/castPipes/pipes/castType/castType.pipe.d.ts +28 -0
  152. package/src/modules/castPipes/pipes/castType/castType.pipe.d.ts.map +1 -0
  153. package/src/modules/castPipes/pipes/index.d.ts +5 -0
  154. package/src/modules/castPipes/pipes/index.d.ts.map +1 -0
  155. package/src/modules/{commonLocalize.d.ts → commonLocalize.module.d.ts} +1 -1
  156. package/src/modules/commonLocalize.module.d.ts.map +1 -0
  157. package/src/modules/progressIndicator/modules/progressIndicator.module.d.ts +1 -1
  158. package/version.bak +1 -1
  159. package/es2015/src/modules/commonLocalize.js.map +0 -1
  160. package/es2020/src/modules/commonLocalize.js.map +0 -1
  161. package/src/modules/commonLocalize.d.ts.map +0 -1
@@ -0,0 +1,54 @@
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
+ if (isBlank(value)) {
26
+ return null;
27
+ }
28
+ if (this._isInstanceOf(value)) {
29
+ return value;
30
+ }
31
+ this._logger?.warn('Failed to cast value to target');
32
+ return null;
33
+ }
34
+ //######################### protected methods #########################
35
+ /**
36
+ * Checks whether is value instance of TTarget
37
+ * @param value - Value to be checked whether is instance of TTarget
38
+ */
39
+ _isInstanceOf(value) {
40
+ return this._isInstanceOfPredicate(value);
41
+ }
42
+ }
43
+ 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 });
44
+ CastTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CastTypePipe, name: "castType" });
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CastTypePipe, decorators: [{
46
+ type: Pipe,
47
+ args: [{ name: 'castType' }]
48
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
49
+ type: Optional
50
+ }, {
51
+ type: Inject,
52
+ args: [LOGGER]
53
+ }] }]; } });
54
+ //# 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,IAAI,CAAC,OAAO,EAAE,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.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["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"}
@@ -0,0 +1,3 @@
1
+ export * from './modules';
2
+ export * from './pipes';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../pipes/asFormArray/asFormArray.pipe";
3
+ import * as i2 from "../pipes/asFormControl/asFormControl.pipe";
4
+ import * as i3 from "../pipes/asFormGroup/asFormGroup.pipe";
5
+ import * as i4 from "../pipes/getControl/getControl.pipe";
6
+ /**
7
+ * Module that holds form util pipes
8
+ */
9
+ export declare class FormPipesModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormPipesModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormPipesModule, [typeof i1.AsFormArrayPipe, typeof i2.AsFormControlPipe, typeof i3.AsFormGroupPipe, typeof i4.GetControlPipe], never, [typeof i1.AsFormArrayPipe, typeof i2.AsFormControlPipe, typeof i3.AsFormGroupPipe, typeof i4.GetControlPipe]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormPipesModule>;
13
+ }
14
+ //# sourceMappingURL=formPipes.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formPipes.module.d.ts","sourceRoot":"","sources":["formPipes.module.ts"],"names":[],"mappings":";;;;;AAIA;;GAEG;AACH,qBAiBa,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAE3B"}
@@ -0,0 +1,2 @@
1
+ export * from './formPipes.module';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { AbstractControl, FormArray } from '@angular/forms';
2
+ import { CastTypePipe } from '@anglr/common';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Tries to convert `AbstractControl` to `FormArray`
6
+ */
7
+ export declare class AsFormArrayPipe extends CastTypePipe<AbstractControl, FormArray> {
8
+ /**
9
+ * @inheritdoc
10
+ */
11
+ protected _isInstanceOfPredicate: (value: AbstractControl) => boolean;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AsFormArrayPipe, never>;
13
+ static ɵpipe: i0.ɵɵPipeDeclaration<AsFormArrayPipe, "asFormArray">;
14
+ }
15
+ //# sourceMappingURL=asFormArray.pipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asFormArray.pipe.d.ts","sourceRoot":"","sources":["asFormArray.pipe.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;;AAE3C;;GAEG;AACH,qBACa,eAAgB,SAAQ,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC;IAIzE;;OAEG;IACH,UAAmB,sBAAsB,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAuC;yCAP5G,eAAe;uCAAf,eAAe;CAQ3B"}
@@ -0,0 +1,15 @@
1
+ import { AbstractControl, FormControl } from '@angular/forms';
2
+ import { CastTypePipe } from '@anglr/common';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Tries to convert `AbstractControl` to `FormControl`
6
+ */
7
+ export declare class AsFormControlPipe extends CastTypePipe<AbstractControl, FormControl> {
8
+ /**
9
+ * @inheritdoc
10
+ */
11
+ protected _isInstanceOfPredicate: (value: AbstractControl) => boolean;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AsFormControlPipe, never>;
13
+ static ɵpipe: i0.ɵɵPipeDeclaration<AsFormControlPipe, "asFormControl">;
14
+ }
15
+ //# sourceMappingURL=asFormControl.pipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asFormControl.pipe.d.ts","sourceRoot":"","sources":["asFormControl.pipe.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;;AAE3C;;GAEG;AACH,qBACa,iBAAkB,SAAQ,YAAY,CAAC,eAAe,EAAE,WAAW,CAAC;IAI7E;;OAEG;IACH,UAAmB,sBAAsB,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAyC;yCAP9G,iBAAiB;uCAAjB,iBAAiB;CAQ7B"}
@@ -0,0 +1,15 @@
1
+ import { AbstractControl, FormGroup } from '@angular/forms';
2
+ import { CastTypePipe } from '@anglr/common';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Tries to convert `AbstractControl` to `FormGroup`
6
+ */
7
+ export declare class AsFormGroupPipe extends CastTypePipe<AbstractControl, FormGroup> {
8
+ /**
9
+ * @inheritdoc
10
+ */
11
+ protected _isInstanceOfPredicate: (value: AbstractControl) => boolean;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AsFormGroupPipe, never>;
13
+ static ɵpipe: i0.ɵɵPipeDeclaration<AsFormGroupPipe, "asFormGroup">;
14
+ }
15
+ //# sourceMappingURL=asFormGroup.pipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asFormGroup.pipe.d.ts","sourceRoot":"","sources":["asFormGroup.pipe.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;;AAE3C;;GAEG;AACH,qBACa,eAAgB,SAAQ,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC;IAIzE;;OAEG;IACH,UAAmB,sBAAsB,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAuC;yCAP5G,eAAe;uCAAf,eAAe;CAQ3B"}
@@ -0,0 +1,18 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { AbstractControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Gets control from `FormGroup`
6
+ */
7
+ export declare class GetControlPipe<TFormGroup> implements PipeTransform {
8
+ /**
9
+ * Gets control from `FormGroup`
10
+ * @param value - FormGroup which contains requested control
11
+ * @param control - Control name to be obtained
12
+ * @param _valueHash - Parameter that can be used to change value, indicates that pipe input value has changed
13
+ */
14
+ transform(value: AbstractControl, control: keyof TFormGroup, _valueHash?: any): AbstractControl | null;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetControlPipe<any>, never>;
16
+ static ɵpipe: i0.ɵɵPipeDeclaration<GetControlPipe<any>, "getControl">;
17
+ }
18
+ //# sourceMappingURL=getControl.pipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getControl.pipe.d.ts","sourceRoot":"","sources":["getControl.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,eAAe,EAAuB,MAAM,gBAAgB,CAAC;;AAGrE;;GAEG;AACH,qBACa,cAAc,CAAC,UAAU,CAAE,YAAW,aAAa;IAE5D;;;;;OAKG;IACI,SAAS,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,UAAU,EAAE,UAAU,CAAC,EAAE,GAAG,GAAG,eAAe,GAAC,IAAI;yCARlG,cAAc;uCAAd,cAAc;CAsB1B"}
@@ -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.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anglr/common",
3
- "version": "11.0.0",
3
+ "version": "11.1.0-beta.20220222192210",
4
4
  "description": "Angular module for common angular stuff",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -0,0 +1,9 @@
1
+ import { CssDisplay } from '@jscrpt/common';
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 declare function ComponentDisplay(display: CssDisplay): ClassDecorator;
9
+ //# sourceMappingURL=componentDisplay.decorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentDisplay.decorator.d.ts","sourceRoot":"","sources":["componentDisplay.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAI1C;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,GAAG,cAAc,CAGpE"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Applies css display block style to host of component, requires at least empty style on Component
3
+ *
4
+ * @experimental
5
+ */
6
+ export declare function ComponentDisplayBlock(): ClassDecorator;
7
+ //# sourceMappingURL=componentDisplayBlock.decorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentDisplayBlock.decorator.d.ts","sourceRoot":"","sources":["componentDisplayBlock.decorator.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,cAAc,CAGtD"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Applies css display flex style to host of component, requires at least empty style on Component
3
+ *
4
+ * @experimental
5
+ */
6
+ export declare function ComponentDisplayFlex(): ClassDecorator;
7
+ //# sourceMappingURL=componentDisplayFlex.decorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentDisplayFlex.decorator.d.ts","sourceRoot":"","sources":["componentDisplayFlex.decorator.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,cAAc,CAGrD"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Applies css styles to host of component, requires at least empty style on Component
3
+ * @param cssStyle - Css style properties to be applied
4
+ *
5
+ * @experimental
6
+ */
7
+ export declare function ComponentHostStyle(cssStyle: string): ClassDecorator;
8
+ //# sourceMappingURL=componentHostStyle.decorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentHostStyle.decorator.d.ts","sourceRoot":"","sources":["componentHostStyle.decorator.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAsBnE"}
@@ -0,0 +1,6 @@
1
+ export * from './componentDisplay.decorator';
2
+ export * from './componentDisplayBlock.decorator';
3
+ export * from './componentDisplayFlex.decorator';
4
+ export * from './componentHostStyle.decorator';
5
+ export * from './scrollableContent.decorator';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Applies css overflow-y scroll style to host of component, requires at least empty style on Component
3
+ *
4
+ * @experimental
5
+ */
6
+ export declare function ScrollableContent(): ClassDecorator;
7
+ //# sourceMappingURL=scrollableContent.decorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollableContent.decorator.d.ts","sourceRoot":"","sources":["scrollableContent.decorator.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAGlD"}
package/src/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { GlobalizationService } from './services/globalization/globalization.service';
2
2
  export { CommonDynamicModule } from './modules/commonDynamic.module';
3
- export { CommonLocalizeModule } from './modules/commonLocalize';
3
+ export { CommonLocalizeModule } from './modules/commonLocalize.module';
4
4
  export { CommonUtilsModule } from './modules/commonUtils.module';
5
5
  export * from './modules/goBack';
6
6
  export { ProgressIndicatorOptions } from './modules/progressIndicator/services/progressIndicatorOptions';
@@ -17,9 +17,11 @@ export { MultiButtonComponent } from './modules/multiButton/components/multiButt
17
17
  export { MultiButtonCssClasses } from './modules/multiButton/components/multiButton/multiButton.interface';
18
18
  export { MULTI_BUTTON_CSS_CLASSES } from './modules/multiButton/misc/tokens';
19
19
  export { MultiButtonModule } from './modules/multiButton/modules/multiButton.module';
20
+ export * from './modules/castPipes';
20
21
  export * from './types/tokens';
21
22
  export * from './utils';
22
23
  export * from './pipes';
24
+ export * from './decorators';
23
25
  export { CookieService } from './services/cookies/cookies.service';
24
26
  export { StatusCodeService } from './services/statusCode/statusCode.service';
25
27
  export { CookiePermanentStorageService, PermanentStorage } from './services/permanentStorage';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAC,wBAAwB,EAAC,MAAM,+DAA+D,CAAC;AACvG,OAAO,EAAC,0BAA0B,EAAC,MAAM,sFAAsF,CAAC;AAChI,OAAO,EAAC,uBAAuB,EAAC,MAAM,8DAA8D,CAAC;AACrG,OAAO,EAAC,wBAAwB,EAAC,MAAM,gEAAgE,CAAC;AACxG,OAAO,EAAC,6BAA6B,EAAC,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAC,eAAe,EAAC,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAC,kBAAkB,EAAC,MAAM,8DAA8D,CAAC;AAChG,OAAO,EAAC,uBAAuB,EAAC,MAAM,wEAAwE,CAAC;AAC/G,OAAO,EAAC,qBAAqB,EAAC,MAAM,uEAAuE,CAAC;AAC5G,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAC,oBAAoB,EAAC,MAAM,oEAAoE,CAAC;AACxG,OAAO,EAAC,qBAAqB,EAAC,MAAM,oEAAoE,CAAC;AACzG,OAAO,EAAC,wBAAwB,EAAC,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAC,iBAAiB,EAAC,MAAM,kDAAkD,CAAC;AACnF,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAC,aAAa,EAAC,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAC,6BAA6B,EAAE,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAC,6BAA6B,EAAE,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAC,2BAA2B,EAAE,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,UAAU,EAAE,uBAAuB,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AACjF,OAAO,EAAC,6BAA6B,EAAE,mBAAmB,EAAC,MAAM,8DAA8D,CAAC;AAChI,OAAO,EAAC,qBAAqB,EAAE,2BAA2B,EAAE,YAAY,EAAE,oBAAoB,EAAE,aAAa,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,iCAAiC,EAAC,MAAM,0BAA0B,CAAC;AAC3P,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAC,wBAAwB,EAAC,MAAM,+DAA+D,CAAC;AACvG,OAAO,EAAC,0BAA0B,EAAC,MAAM,sFAAsF,CAAC;AAChI,OAAO,EAAC,uBAAuB,EAAC,MAAM,8DAA8D,CAAC;AACrG,OAAO,EAAC,wBAAwB,EAAC,MAAM,gEAAgE,CAAC;AACxG,OAAO,EAAC,6BAA6B,EAAC,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAC,eAAe,EAAC,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAC,kBAAkB,EAAC,MAAM,8DAA8D,CAAC;AAChG,OAAO,EAAC,uBAAuB,EAAC,MAAM,wEAAwE,CAAC;AAC/G,OAAO,EAAC,qBAAqB,EAAC,MAAM,uEAAuE,CAAC;AAC5G,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAC,oBAAoB,EAAC,MAAM,oEAAoE,CAAC;AACxG,OAAO,EAAC,qBAAqB,EAAC,MAAM,oEAAoE,CAAC;AACzG,OAAO,EAAC,wBAAwB,EAAC,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAC,iBAAiB,EAAC,MAAM,kDAAkD,CAAC;AACnF,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAC,aAAa,EAAC,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAC,6BAA6B,EAAE,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAC,6BAA6B,EAAE,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAC,2BAA2B,EAAE,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,UAAU,EAAE,uBAAuB,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AACjF,OAAO,EAAC,6BAA6B,EAAE,mBAAmB,EAAC,MAAM,8DAA8D,CAAC;AAChI,OAAO,EAAC,qBAAqB,EAAE,2BAA2B,EAAE,YAAY,EAAE,oBAAoB,EAAE,aAAa,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,iCAAiC,EAAC,MAAM,0BAA0B,CAAC;AAC3P,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './modules';
2
+ export * from './pipes';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../pipes/asHtmlElement/asHtmlElement.pipe";
3
+ import * as i2 from "../pipes/asNgClassRequired/asNgClassRequired.pipe";
4
+ import * as i3 from "../pipes/asRequired/asRequired.pipe";
5
+ import * as i4 from "../pipes/castType/castType.pipe";
6
+ /**
7
+ * Module that holds cast pipes
8
+ */
9
+ export declare class CastPipesModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<CastPipesModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CastPipesModule, [typeof i1.AsHtmlElementPipe, typeof i2.AsNgClassRequiredPipe, typeof i3.AsRequiredTypePipe, typeof i4.CastTypePipe], never, [typeof i1.AsHtmlElementPipe, typeof i2.AsNgClassRequiredPipe, typeof i3.AsRequiredTypePipe, typeof i4.CastTypePipe]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<CastPipesModule>;
13
+ }
14
+ //# sourceMappingURL=castPipes.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"castPipes.module.d.ts","sourceRoot":"","sources":["castPipes.module.ts"],"names":[],"mappings":";;;;;AAIA;;GAEG;AACH,qBAiBa,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAE3B"}
@@ -0,0 +1,2 @@
1
+ export * from './castPipes.module';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { CastTypePipe } from '../castType/castType.pipe';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Casts EventTarget to HTMLELement
5
+ */
6
+ export declare class AsHtmlElementPipe extends CastTypePipe<EventTarget, HTMLElement> {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AsHtmlElementPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<AsHtmlElementPipe, "asHtmlElement">;
9
+ }
10
+ //# sourceMappingURL=asHtmlElement.pipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asHtmlElement.pipe.d.ts","sourceRoot":"","sources":["asHtmlElement.pipe.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;;AAEvD;;GAEG;AACH,qBACa,iBAAkB,SAAQ,YAAY,CAAC,WAAW,EAAE,WAAW,CAAC;yCAAhE,iBAAiB;uCAAjB,iBAAiB;CAE7B"}
@@ -0,0 +1,15 @@
1
+ import { Dictionary } from '@jscrpt/common';
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 declare class AsNgClassRequiredPipe extends AsRequiredTypePipe<string | string[] | Set<string> | Dictionary<any>> {
8
+ /**
9
+ * @inheritdoc
10
+ */
11
+ transform(value: string | string[] | Set<string> | Dictionary<any> | null | undefined, valueHash?: any): string | string[] | Set<string> | Dictionary<any>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AsNgClassRequiredPipe, never>;
13
+ static ɵpipe: i0.ɵɵPipeDeclaration<AsNgClassRequiredPipe, "asNgClassRequired">;
14
+ }
15
+ //# sourceMappingURL=asNgClassRequired.pipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asNgClassRequired.pipe.d.ts","sourceRoot":"","sources":["asNgClassRequired.pipe.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;;AAEjE;;GAEG;AACH,qBACa,qBAAsB,SAAQ,kBAAkB,CAAC,MAAM,GAAC,MAAM,EAAE,GAAC,GAAG,CAAC,MAAM,CAAC,GAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAEtG;;OAEG;IACa,SAAS,CAAC,KAAK,EAAE,MAAM,GAAC,MAAM,EAAE,GAAC,GAAG,CAAC,MAAM,CAAC,GAAC,UAAU,CAAC,GAAG,CAAC,GAAC,IAAI,GAAC,SAAS,EAAE,SAAS,CAAC,EAAE,GAAG,GAAG,MAAM,GAAC,MAAM,EAAE,GAAC,GAAG,CAAC,MAAM,CAAC,GAAC,UAAU,CAAC,GAAG,CAAC;yCALjJ,qBAAqB;uCAArB,qBAAqB;CASjC"}
@@ -0,0 +1,17 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Transforms type to required from nullable or undefined type
5
+ */
6
+ export declare class AsRequiredTypePipe<TType> implements PipeTransform {
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: TType | null | undefined, defaultValue: TType, _valueHash?: any): TType;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AsRequiredTypePipe<any>, never>;
15
+ static ɵpipe: i0.ɵɵPipeDeclaration<AsRequiredTypePipe<any>, "asRequired">;
16
+ }
17
+ //# sourceMappingURL=asRequired.pipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asRequired.pipe.d.ts","sourceRoot":"","sources":["asRequired.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;;AAElD;;GAEG;AACH,qBACa,kBAAkB,CAAC,KAAK,CAAE,YAAW,aAAa;IAE3D;;;;;OAKG;IACI,SAAS,CAAC,KAAK,EAAE,KAAK,GAAC,IAAI,GAAC,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,GAAG,GAAG,KAAK;yCARlF,kBAAkB;uCAAlB,kBAAkB;CAY9B"}
@@ -0,0 +1,28 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Logger } from '../../../../services/logger/logger.interface';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Allows casting of type for templates, should be used inherited
6
+ */
7
+ export declare class CastTypePipe<TSource, TTarget extends TSource> implements PipeTransform {
8
+ private _logger?;
9
+ /**
10
+ * Predicate for testing whether is value instance of something
11
+ */
12
+ protected _isInstanceOfPredicate: (value: TSource) => boolean;
13
+ constructor(_logger?: Logger);
14
+ /**
15
+ * Allows casting of type for templates, should be used inherited
16
+ * @param value - Value to be cast to another type
17
+ * @param _valueHash - Parameter that can be used to change value, indicates that pipe input value has changed
18
+ */
19
+ transform(value: TSource, _valueHash?: any): TTarget;
20
+ /**
21
+ * Checks whether is value instance of TTarget
22
+ * @param value - Value to be checked whether is instance of TTarget
23
+ */
24
+ protected _isInstanceOf(value: TSource): value is TTarget;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<CastTypePipe<any, any>, [{ optional: true; }]>;
26
+ static ɵpipe: i0.ɵɵPipeDeclaration<CastTypePipe<any, any>, "castType">;
27
+ }
28
+ //# sourceMappingURL=castType.pipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"castType.pipe.d.ts","sourceRoot":"","sources":["castType.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,aAAa,EAAC,MAAM,eAAe,CAAC;AAGpE,OAAO,EAAC,MAAM,EAAC,MAAM,8CAA8C,CAAC;;AAGpE;;GAEG;AACH,qBACa,YAAY,CAAC,OAAO,EAAE,OAAO,SAAS,OAAO,CAAE,YAAW,aAAa;IAUxC,OAAO,CAAC,OAAO,CAAC;IANxD;;OAEG;IACH,SAAS,CAAC,sBAAsB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAc;gBAG3B,OAAO,CAAC,EAAE,MAAM;IAMhE;;;;OAIG;IACI,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,GAAG,GAAG,OAAO;IAmB3D;;;OAGG;IACH,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,OAAO;yCA5ChD,YAAY;uCAAZ,YAAY;CAgDxB"}
@@ -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.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC"}
@@ -8,4 +8,4 @@ export declare class CommonLocalizeModule {
8
8
  static ɵmod: i0.ɵɵNgModuleDeclaration<CommonLocalizeModule, [typeof i1.LocalizePipe], never, [typeof i1.LocalizePipe]>;
9
9
  static ɵinj: i0.ɵɵInjectorDeclaration<CommonLocalizeModule>;
10
10
  }
11
- //# sourceMappingURL=commonLocalize.d.ts.map
11
+ //# sourceMappingURL=commonLocalize.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commonLocalize.module.d.ts","sourceRoot":"","sources":["commonLocalize.module.ts"],"names":[],"mappings":";;AAIA;;GAEG;AACH,qBAWa,oBAAoB;yCAApB,oBAAoB;0CAApB,oBAAoB;0CAApB,oBAAoB;CAEhC"}
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "../components/progressIndicator/progressIndicator.component";
3
3
  import * as i2 from "../directives/progressOverlay/progressOverlay.directive";
4
4
  import * as i3 from "@angular/common";
5
- import * as i4 from "../../commonLocalize";
5
+ import * as i4 from "../../commonLocalize.module";
6
6
  /**
7
7
  * Module for progress indicator
8
8
  */
package/version.bak CHANGED
@@ -1 +1 @@
1
- 11.0.0
1
+ 11.1.0-beta.20220222192210
@@ -1 +0,0 @@
1
- {"version":3,"file":"commonLocalize.js","sourceRoot":"","sources":["../../../src/modules/commonLocalize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAC;;AAE7D;;GAEG;AAYH,MAAM,OAAO,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBAPzB,YAAY,aAIZ,YAAY;kHAGP,oBAAoB;2FAApB,oBAAoB;kBAXhC,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,YAAY;qBACf;oBACD,OAAO,EACP;wBACI,YAAY;qBACf;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {LocalizePipe} from '../pipes/localize/localize.pipe';\n\n/**\n * Module for common localization stuff\n */\n@NgModule(\n{\n declarations:\n [\n LocalizePipe,\n ],\n exports: \n [\n LocalizePipe,\n ]\n})\nexport class CommonLocalizeModule\n{\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"commonLocalize.js","sourceRoot":"","sources":["../../../src/modules/commonLocalize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAC;;AAE7D;;GAEG;AAYH,MAAM,OAAO,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBAPzB,YAAY,aAIZ,YAAY;kHAGP,oBAAoB;2FAApB,oBAAoB;kBAXhC,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,YAAY;qBACf;oBACD,OAAO,EACP;wBACI,YAAY;qBACf;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {LocalizePipe} from '../pipes/localize/localize.pipe';\n\n/**\n * Module for common localization stuff\n */\n@NgModule(\n{\n declarations:\n [\n LocalizePipe,\n ],\n exports: \n [\n LocalizePipe,\n ]\n})\nexport class CommonLocalizeModule\n{\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"commonLocalize.d.ts","sourceRoot":"","sources":["commonLocalize.ts"],"names":[],"mappings":";;AAIA;;GAEG;AACH,qBAWa,oBAAoB;yCAApB,oBAAoB;0CAApB,oBAAoB;0CAApB,oBAAoB;CAEhC"}