@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.
- package/changelog.md +33 -0
- package/es2015/forms/src/index.js +1 -0
- package/es2015/forms/src/index.js.map +1 -1
- package/es2015/forms/src/modules/formPipes/index.js +3 -0
- package/es2015/forms/src/modules/formPipes/index.js.map +1 -0
- package/es2015/forms/src/modules/formPipes/modules/formPipes.module.js +35 -0
- package/es2015/forms/src/modules/formPipes/modules/formPipes.module.js.map +1 -0
- package/es2015/forms/src/modules/formPipes/modules/index.js +2 -0
- package/es2015/forms/src/modules/formPipes/modules/index.js.map +1 -0
- package/es2015/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +24 -0
- package/es2015/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js.map +1 -0
- package/es2015/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +24 -0
- package/es2015/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js.map +1 -0
- package/es2015/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +24 -0
- package/es2015/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js.map +1 -0
- package/es2015/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +31 -0
- package/es2015/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js.map +1 -0
- package/es2015/forms/src/modules/formPipes/pipes/index.js +5 -0
- package/es2015/forms/src/modules/formPipes/pipes/index.js.map +1 -0
- package/es2015/material/src/components/titledDialog/titledDialog.component.js +12 -8
- package/es2015/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
- package/es2015/material/src/modules/titledDialog.module.js +7 -4
- package/es2015/material/src/modules/titledDialog.module.js.map +1 -1
- package/es2015/src/decorators/componentDisplay.decorator.js +11 -0
- package/es2015/src/decorators/componentDisplay.decorator.js.map +1 -0
- package/es2015/src/decorators/componentDisplayBlock.decorator.js +10 -0
- package/es2015/src/decorators/componentDisplayBlock.decorator.js.map +1 -0
- package/es2015/src/decorators/componentDisplayFlex.decorator.js +10 -0
- package/es2015/src/decorators/componentDisplayFlex.decorator.js.map +1 -0
- package/es2015/src/decorators/componentHostStyle.decorator.js +22 -0
- package/es2015/src/decorators/componentHostStyle.decorator.js.map +1 -0
- package/es2015/src/decorators/index.js +6 -0
- package/es2015/src/decorators/index.js.map +1 -0
- package/es2015/src/decorators/scrollableContent.decorator.js +10 -0
- package/es2015/src/decorators/scrollableContent.decorator.js.map +1 -0
- package/es2015/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +1 -0
- package/es2015/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
- package/es2015/src/index.js +3 -1
- package/es2015/src/index.js.map +1 -1
- package/es2015/src/modules/castPipes/index.js +3 -0
- package/es2015/src/modules/castPipes/index.js.map +1 -0
- package/es2015/src/modules/castPipes/modules/castPipes.module.js +35 -0
- package/es2015/src/modules/castPipes/modules/castPipes.module.js.map +1 -0
- package/es2015/src/modules/castPipes/modules/index.js +2 -0
- package/es2015/src/modules/castPipes/modules/index.js.map +1 -0
- package/es2015/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +15 -0
- package/es2015/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js.map +1 -0
- package/es2015/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +21 -0
- package/es2015/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js.map +1 -0
- package/es2015/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +23 -0
- package/es2015/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js.map +1 -0
- package/es2015/src/modules/castPipes/pipes/castType/castType.pipe.js +55 -0
- package/es2015/src/modules/castPipes/pipes/castType/castType.pipe.js.map +1 -0
- package/es2015/src/modules/castPipes/pipes/index.js +5 -0
- package/es2015/src/modules/castPipes/pipes/index.js.map +1 -0
- package/es2015/src/modules/{commonLocalize.js → commonLocalize.module.js} +1 -1
- package/es2015/src/modules/commonLocalize.module.js.map +1 -0
- package/es2015/src/modules/progressIndicator/modules/progressIndicator.module.js +1 -1
- package/es2015/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
- package/es2020/forms/src/index.js +1 -0
- package/es2020/forms/src/index.js.map +1 -1
- package/es2020/forms/src/modules/formPipes/index.js +3 -0
- package/es2020/forms/src/modules/formPipes/index.js.map +1 -0
- package/es2020/forms/src/modules/formPipes/modules/formPipes.module.js +35 -0
- package/es2020/forms/src/modules/formPipes/modules/formPipes.module.js.map +1 -0
- package/es2020/forms/src/modules/formPipes/modules/index.js +2 -0
- package/es2020/forms/src/modules/formPipes/modules/index.js.map +1 -0
- package/es2020/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +24 -0
- package/es2020/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js.map +1 -0
- package/es2020/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +24 -0
- package/es2020/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js.map +1 -0
- package/es2020/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +24 -0
- package/es2020/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js.map +1 -0
- package/es2020/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +31 -0
- package/es2020/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js.map +1 -0
- package/es2020/forms/src/modules/formPipes/pipes/index.js +5 -0
- package/es2020/forms/src/modules/formPipes/pipes/index.js.map +1 -0
- package/es2020/material/src/components/titledDialog/titledDialog.component.js +12 -8
- package/es2020/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
- package/es2020/material/src/modules/titledDialog.module.js +7 -4
- package/es2020/material/src/modules/titledDialog.module.js.map +1 -1
- package/es2020/src/decorators/componentDisplay.decorator.js +11 -0
- package/es2020/src/decorators/componentDisplay.decorator.js.map +1 -0
- package/es2020/src/decorators/componentDisplayBlock.decorator.js +10 -0
- package/es2020/src/decorators/componentDisplayBlock.decorator.js.map +1 -0
- package/es2020/src/decorators/componentDisplayFlex.decorator.js +10 -0
- package/es2020/src/decorators/componentDisplayFlex.decorator.js.map +1 -0
- package/es2020/src/decorators/componentHostStyle.decorator.js +22 -0
- package/es2020/src/decorators/componentHostStyle.decorator.js.map +1 -0
- package/es2020/src/decorators/index.js +6 -0
- package/es2020/src/decorators/index.js.map +1 -0
- package/es2020/src/decorators/scrollableContent.decorator.js +10 -0
- package/es2020/src/decorators/scrollableContent.decorator.js.map +1 -0
- package/es2020/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +1 -0
- package/es2020/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
- package/es2020/src/index.js +3 -1
- package/es2020/src/index.js.map +1 -1
- package/es2020/src/modules/castPipes/index.js +3 -0
- package/es2020/src/modules/castPipes/index.js.map +1 -0
- package/es2020/src/modules/castPipes/modules/castPipes.module.js +35 -0
- package/es2020/src/modules/castPipes/modules/castPipes.module.js.map +1 -0
- package/es2020/src/modules/castPipes/modules/index.js +2 -0
- package/es2020/src/modules/castPipes/modules/index.js.map +1 -0
- package/es2020/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +15 -0
- package/es2020/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js.map +1 -0
- package/es2020/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +21 -0
- package/es2020/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js.map +1 -0
- package/es2020/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +23 -0
- package/es2020/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js.map +1 -0
- package/es2020/src/modules/castPipes/pipes/castType/castType.pipe.js +54 -0
- package/es2020/src/modules/castPipes/pipes/castType/castType.pipe.js.map +1 -0
- package/es2020/src/modules/castPipes/pipes/index.js +5 -0
- package/es2020/src/modules/castPipes/pipes/index.js.map +1 -0
- package/es2020/src/modules/{commonLocalize.js → commonLocalize.module.js} +1 -1
- package/es2020/src/modules/commonLocalize.module.js.map +1 -0
- package/es2020/src/modules/progressIndicator/modules/progressIndicator.module.js +1 -1
- package/es2020/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
- package/forms/src/index.d.ts +1 -0
- package/forms/src/index.d.ts.map +1 -1
- package/forms/src/modules/formPipes/index.d.ts +3 -0
- package/forms/src/modules/formPipes/index.d.ts.map +1 -0
- package/forms/src/modules/formPipes/modules/formPipes.module.d.ts +14 -0
- package/forms/src/modules/formPipes/modules/formPipes.module.d.ts.map +1 -0
- package/forms/src/modules/formPipes/modules/index.d.ts +2 -0
- package/forms/src/modules/formPipes/modules/index.d.ts.map +1 -0
- package/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.d.ts +15 -0
- package/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.d.ts.map +1 -0
- package/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.d.ts +15 -0
- package/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.d.ts.map +1 -0
- package/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.d.ts +15 -0
- package/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.d.ts.map +1 -0
- package/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.d.ts +18 -0
- package/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.d.ts.map +1 -0
- package/forms/src/modules/formPipes/pipes/index.d.ts +5 -0
- package/forms/src/modules/formPipes/pipes/index.d.ts.map +1 -0
- package/material/src/components/titledDialog/titledDialog.component.d.ts.map +1 -1
- package/material/src/modules/titledDialog.module.d.ts +1 -1
- package/material/src/modules/titledDialog.module.d.ts.map +1 -1
- package/package.json +3 -15
- package/readme.md +0 -1
- package/src/decorators/componentDisplay.decorator.d.ts +9 -0
- package/src/decorators/componentDisplay.decorator.d.ts.map +1 -0
- package/src/decorators/componentDisplayBlock.decorator.d.ts +7 -0
- package/src/decorators/componentDisplayBlock.decorator.d.ts.map +1 -0
- package/src/decorators/componentDisplayFlex.decorator.d.ts +7 -0
- package/src/decorators/componentDisplayFlex.decorator.d.ts.map +1 -0
- package/src/decorators/componentHostStyle.decorator.d.ts +8 -0
- package/src/decorators/componentHostStyle.decorator.d.ts.map +1 -0
- package/src/decorators/index.d.ts +6 -0
- package/src/decorators/index.d.ts.map +1 -0
- package/src/decorators/scrollableContent.decorator.d.ts +7 -0
- package/src/decorators/scrollableContent.decorator.d.ts.map +1 -0
- package/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.d.ts.map +1 -1
- package/src/index.d.ts +3 -1
- package/src/index.d.ts.map +1 -1
- package/src/modules/castPipes/index.d.ts +3 -0
- package/src/modules/castPipes/index.d.ts.map +1 -0
- package/src/modules/castPipes/modules/castPipes.module.d.ts +14 -0
- package/src/modules/castPipes/modules/castPipes.module.d.ts.map +1 -0
- package/src/modules/castPipes/modules/index.d.ts +2 -0
- package/src/modules/castPipes/modules/index.d.ts.map +1 -0
- package/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.d.ts +10 -0
- package/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.d.ts.map +1 -0
- package/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.d.ts +15 -0
- package/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.d.ts.map +1 -0
- package/src/modules/castPipes/pipes/asRequired/asRequired.pipe.d.ts +17 -0
- package/src/modules/castPipes/pipes/asRequired/asRequired.pipe.d.ts.map +1 -0
- package/src/modules/castPipes/pipes/castType/castType.pipe.d.ts +28 -0
- package/src/modules/castPipes/pipes/castType/castType.pipe.d.ts.map +1 -0
- package/src/modules/castPipes/pipes/index.d.ts +5 -0
- package/src/modules/castPipes/pipes/index.d.ts.map +1 -0
- package/src/modules/{commonLocalize.d.ts → commonLocalize.module.d.ts} +1 -1
- package/src/modules/commonLocalize.module.d.ts.map +1 -0
- package/src/modules/progressIndicator/modules/progressIndicator.module.d.ts +1 -1
- package/version.bak +1 -1
- package/es2015/hmr/src/index.js +0 -35
- package/es2015/hmr/src/index.js.map +0 -1
- package/es2015/src/modules/commonLocalize.js.map +0 -1
- package/es2020/hmr/src/index.js +0 -35
- package/es2020/hmr/src/index.js.map +0 -1
- package/es2020/src/modules/commonLocalize.js.map +0 -1
- package/hmr/package.json +0 -9
- package/hmr/src/index.d.ts +0 -6
- package/hmr/src/index.d.ts.map +0 -1
- package/src/modules/commonLocalize.d.ts.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentDisplay } from './componentDisplay.decorator';
|
|
2
|
+
/**
|
|
3
|
+
* Applies css display block style to host of component, requires at least empty style on Component
|
|
4
|
+
*
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
export function ComponentDisplayBlock() {
|
|
8
|
+
return ComponentDisplay('block');
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=componentDisplayBlock.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentDisplayBlock.decorator.js","sourceRoot":"","sources":["../../../src/decorators/componentDisplayBlock.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAE9D;;;;GAIG;AACH,MAAM,UAAU,qBAAqB;IAEjC,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC","sourcesContent":["import {ComponentDisplay} from './componentDisplay.decorator';\n\n/**\n * Applies css display block style to host of component, requires at least empty style on Component\n * \n * @experimental\n */\nexport function ComponentDisplayBlock(): ClassDecorator\n{\n return ComponentDisplay('block');\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentDisplay } from './componentDisplay.decorator';
|
|
2
|
+
/**
|
|
3
|
+
* Applies css display flex style to host of component, requires at least empty style on Component
|
|
4
|
+
*
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
export function ComponentDisplayFlex() {
|
|
8
|
+
return ComponentDisplay('flex');
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=componentDisplayFlex.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentDisplayFlex.decorator.js","sourceRoot":"","sources":["../../../src/decorators/componentDisplayFlex.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAE9D;;;;GAIG;AACH,MAAM,UAAU,oBAAoB;IAEhC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import {ComponentDisplay} from './componentDisplay.decorator';\n\n/**\n * Applies css display flex style to host of component, requires at least empty style on Component\n * \n * @experimental\n */\nexport function ComponentDisplayFlex(): ClassDecorator\n{\n return ComponentDisplay('flex');\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ViewEncapsulation } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Applies css styles to host of component, requires at least empty style on Component
|
|
4
|
+
* @param cssStyle - Css style properties to be applied
|
|
5
|
+
*
|
|
6
|
+
* @experimental
|
|
7
|
+
*/
|
|
8
|
+
export function ComponentHostStyle(cssStyle) {
|
|
9
|
+
return function (target) {
|
|
10
|
+
const targetComponent = target;
|
|
11
|
+
if (!targetComponent.ɵcmp) {
|
|
12
|
+
throw new Error(`Unable to apply 'ComponentHostStyle' to '${target.name}'`);
|
|
13
|
+
}
|
|
14
|
+
const cmpDef = targetComponent.ɵcmp;
|
|
15
|
+
if (!cmpDef.styles) {
|
|
16
|
+
throw new Error('Missing styles on component');
|
|
17
|
+
}
|
|
18
|
+
cmpDef.styles.push(`${cmpDef.encapsulation == ViewEncapsulation.Emulated ? '[_nghost-%COMP%]' : ':host'}{${cssStyle}}`);
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=componentHostStyle.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentHostStyle.decorator.js","sourceRoot":"","sources":["../../../src/decorators/componentHostStyle.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAgC,MAAM,eAAe,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,QAAgB;IAE/C,OAAO,UAAsC,MAAiB;QAE1D,MAAM,eAAe,GAA8B,MAAa,CAAC;QAEjE,IAAG,CAAC,eAAe,CAAC,IAAI,EACxB;YACI,MAAM,IAAI,KAAK,CAAC,4CAA4C,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;SAC/E;QAED,MAAM,MAAM,GAA6B,eAAe,CAAC,IAAgC,CAAC;QAE1F,IAAG,CAAC,MAAM,CAAC,MAAM,EACjB;YACI,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;SAClD;QAED,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,aAAa,IAAI,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,OAAO,IAAI,QAAQ,GAAG,CAAC,CAAC;QAExH,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC;AACN,CAAC","sourcesContent":["import {ViewEncapsulation, ɵComponentDef, ɵComponentType} from '@angular/core';\n\n/**\n * Applies css styles to host of component, requires at least empty style on Component\n * @param cssStyle - Css style properties to be applied\n * \n * @experimental\n */\nexport function ComponentHostStyle(cssStyle: string): ClassDecorator\n{\n return function<TFunction extends Function> (target: TFunction): TFunction|void\n {\n const targetComponent: ɵComponentType<TFunction> = target as any;\n\n if(!targetComponent.ɵcmp)\n {\n throw new Error(`Unable to apply 'ComponentHostStyle' to '${target.name}'`);\n }\n\n const cmpDef: ɵComponentDef<TFunction> = targetComponent.ɵcmp as ɵComponentDef<TFunction>;\n\n if(!cmpDef.styles)\n {\n throw new Error('Missing styles on component');\n }\n\n cmpDef.styles.push(`${cmpDef.encapsulation == ViewEncapsulation.Emulated ? '[_nghost-%COMP%]' : ':host'}{${cssStyle}}`);\n \n return target;\n };\n}\n"]}
|
|
@@ -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.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/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","sourcesContent":["export * from './componentDisplay.decorator';\nexport * from './componentDisplayBlock.decorator';\nexport * from './componentDisplayFlex.decorator';\nexport * from './componentHostStyle.decorator';\nexport * from './scrollableContent.decorator';\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentHostStyle } from './componentHostStyle.decorator';
|
|
2
|
+
/**
|
|
3
|
+
* Applies css overflow-y scroll style to host of component, requires at least empty style on Component
|
|
4
|
+
*
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
export function ScrollableContent() {
|
|
8
|
+
return ComponentHostStyle('overflow-y: scroll;');
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=scrollableContent.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollableContent.decorator.js","sourceRoot":"","sources":["../../../src/decorators/scrollableContent.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAElE;;;;GAIG;AACH,MAAM,UAAU,iBAAiB;IAE7B,OAAO,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;AACrD,CAAC","sourcesContent":["import {ComponentHostStyle} from './componentHostStyle.decorator';\n\n/**\n * Applies css overflow-y scroll style to host of component, requires at least empty style on Component\n * \n * @experimental\n */\nexport function ScrollableContent(): ClassDecorator\n{\n return ComponentHostStyle('overflow-y: scroll;');\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, Directive, Injector, Input, Type, ViewContainerRef, Output } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
//TODO: add module as origin componentOutlet has
|
|
3
4
|
/**
|
|
4
5
|
* Instantiates a single Component type and inserts its Host View into current View.
|
|
5
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngComponentOutletEx.directive.js","sourceRoot":"","sources":["../../../../src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAgB,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAa,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAEhI;;GAEG;AAMH,MAAM,OAAO,mBAAmB;IAoD5B,iEAAiE;IACjE,YAAoB,iBAAmC;QAAnC,sBAAiB,GAAjB,iBAAiB,CAAkB;QAnDvD,oEAAoE;QAEpE;;WAEG;QACK,kBAAa,GAAkC,IAAI,CAAC;QAsB5D,iFAAiF;QAEjF;;WAEG;QAEI,+BAA0B,GAAkC,IAAI,YAAY,EAAmB,CAAC;IAoBvG,CAAC;IAlBD,uEAAuE;IAEvE;;OAEG;IACH,IAAW,SAAS;QAEhB,IAAG,CAAC,IAAI,CAAC,aAAa,EACtB;YACI,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAOD,kGAAkG;IAC3F,WAAW;QAEd,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAC/B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAE1B,IAAI,IAAI,CAAC,mBAAmB,EAC5B;YACI,MAAM,QAAQ,GAAG,IAAI,CAAC,2BAA2B,IAAI,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC;YAErF,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAa,IAAI,CAAC,mBAAmB,EACxB;gBACI,QAAQ,EAAE,QAAQ;gBAClB,gBAAgB,EAAE,IAAI,CAAC,0BAA0B;aACpD,CAAC,CAAC;SAC9E;QAED,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACzD,CAAC;;gHA3EQ,mBAAmB;oGAAnB,mBAAmB;2FAAnB,mBAAmB;kBAL/B,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE,qBAAqB;iBAClC;uGAgBU,mBAAmB;sBADzB,KAAK;gBAOC,2BAA2B;sBADjC,KAAK;gBAOC,0BAA0B;sBADhC,KAAK;gBASC,0BAA0B;sBADhC,MAAM","sourcesContent":["import {EventEmitter, ComponentRef, Directive, Injector, Input, OnChanges, Type, ViewContainerRef, Output} from '@angular/core';\n\n/**\n * Instantiates a single Component type and inserts its Host View into current View.\n */\n@Directive(\n{\n selector: '[ngComponentOutletEx]',\n exportAs: 'ngComponentOutletEx'\n})\nexport class NgComponentOutletEx<TComponent> implements OnChanges\n{\n //######################### private fields #########################\n\n /**\n * Created component reference\n */\n private _componentRef: ComponentRef<TComponent>|null = null;\n \n //######################### public properties - inputs #########################\n \n /**\n * Type that should be dynamically created into current container\n */\n @Input() \n public ngComponentOutletEx: Type<TComponent>;\n\n /**\n * Custom injector that will be used for newly created component\n */\n @Input() \n public ngComponentOutletExInjector: Injector;\n\n /**\n * Projectable nodes that can be injected into component\n */\n @Input() \n public ngComponentOutletExContent: any[][];\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when component is created or destroyed, it can send instance of component, or null\n */\n @Output()\n public ngComponentOutletExCreated: EventEmitter<TComponent|null> = new EventEmitter<TComponent|null>();\n\n //######################### public properties #########################\n\n /**\n * Instance of dynamically created component \n */\n public get component(): TComponent|null\n {\n if(!this._componentRef)\n {\n return null;\n }\n\n return this._componentRef.instance;\n }\n\n //######################### constructor #########################\n constructor(private _viewContainerRef: ViewContainerRef)\n {\n }\n\n //######################### public methods - implementation of OnChanges #########################\n public ngOnChanges(): void\n {\n this._viewContainerRef.clear();\n this._componentRef = null;\n\n if (this.ngComponentOutletEx)\n {\n const injector = this.ngComponentOutletExInjector || this._viewContainerRef.injector;\n\n this._componentRef = this._viewContainerRef.createComponent<TComponent>(this.ngComponentOutletEx,\n {\n injector: injector,\n projectableNodes: this.ngComponentOutletExContent\n });\n }\n\n this.ngComponentOutletExCreated.emit(this.component);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ngComponentOutletEx.directive.js","sourceRoot":"","sources":["../../../../src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAgB,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAa,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;;AAEhI,gDAAgD;AAEhD;;GAEG;AAMH,MAAM,OAAO,mBAAmB;IAoD5B,iEAAiE;IACjE,YAAoB,iBAAmC;QAAnC,sBAAiB,GAAjB,iBAAiB,CAAkB;QAnDvD,oEAAoE;QAEpE;;WAEG;QACK,kBAAa,GAAkC,IAAI,CAAC;QAsB5D,iFAAiF;QAEjF;;WAEG;QAEI,+BAA0B,GAAkC,IAAI,YAAY,EAAmB,CAAC;IAoBvG,CAAC;IAlBD,uEAAuE;IAEvE;;OAEG;IACH,IAAW,SAAS;QAEhB,IAAG,CAAC,IAAI,CAAC,aAAa,EACtB;YACI,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAOD,kGAAkG;IAC3F,WAAW;QAEd,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAC/B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAE1B,IAAI,IAAI,CAAC,mBAAmB,EAC5B;YACI,MAAM,QAAQ,GAAG,IAAI,CAAC,2BAA2B,IAAI,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC;YAErF,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAa,IAAI,CAAC,mBAAmB,EACxB;gBACI,QAAQ,EAAE,QAAQ;gBAClB,gBAAgB,EAAE,IAAI,CAAC,0BAA0B;aACpD,CAAC,CAAC;SAC9E;QAED,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACzD,CAAC;;gHA3EQ,mBAAmB;oGAAnB,mBAAmB;2FAAnB,mBAAmB;kBAL/B,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE,qBAAqB;iBAClC;uGAgBU,mBAAmB;sBADzB,KAAK;gBAOC,2BAA2B;sBADjC,KAAK;gBAOC,0BAA0B;sBADhC,KAAK;gBASC,0BAA0B;sBADhC,MAAM","sourcesContent":["import {EventEmitter, ComponentRef, Directive, Injector, Input, OnChanges, Type, ViewContainerRef, Output} from '@angular/core';\n\n//TODO: add module as origin componentOutlet has\n\n/**\n * Instantiates a single Component type and inserts its Host View into current View.\n */\n@Directive(\n{\n selector: '[ngComponentOutletEx]',\n exportAs: 'ngComponentOutletEx'\n})\nexport class NgComponentOutletEx<TComponent> implements OnChanges\n{\n //######################### private fields #########################\n\n /**\n * Created component reference\n */\n private _componentRef: ComponentRef<TComponent>|null = null;\n \n //######################### public properties - inputs #########################\n \n /**\n * Type that should be dynamically created into current container\n */\n @Input() \n public ngComponentOutletEx: Type<TComponent>;\n\n /**\n * Custom injector that will be used for newly created component\n */\n @Input() \n public ngComponentOutletExInjector: Injector;\n\n /**\n * Projectable nodes that can be injected into component\n */\n @Input() \n public ngComponentOutletExContent: any[][];\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when component is created or destroyed, it can send instance of component, or null\n */\n @Output()\n public ngComponentOutletExCreated: EventEmitter<TComponent|null> = new EventEmitter<TComponent|null>();\n\n //######################### public properties #########################\n\n /**\n * Instance of dynamically created component \n */\n public get component(): TComponent|null\n {\n if(!this._componentRef)\n {\n return null;\n }\n\n return this._componentRef.instance;\n }\n\n //######################### constructor #########################\n constructor(private _viewContainerRef: ViewContainerRef)\n {\n }\n\n //######################### public methods - implementation of OnChanges #########################\n public ngOnChanges(): void\n {\n this._viewContainerRef.clear();\n this._componentRef = null;\n\n if (this.ngComponentOutletEx)\n {\n const injector = this.ngComponentOutletExInjector || this._viewContainerRef.injector;\n\n this._componentRef = this._viewContainerRef.createComponent<TComponent>(this.ngComponentOutletEx,\n {\n injector: injector,\n projectableNodes: this.ngComponentOutletExContent\n });\n }\n\n this.ngComponentOutletExCreated.emit(this.component);\n }\n}\n"]}
|
package/es2020/src/index.js
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';
|
|
@@ -16,9 +16,11 @@ export { ClickOutsideModule } from './modules/clickOutside/modules/clickOutside.
|
|
|
16
16
|
export { MultiButtonComponent } from './modules/multiButton/components/multiButton/multiButton.component';
|
|
17
17
|
export { MULTI_BUTTON_CSS_CLASSES } from './modules/multiButton/misc/tokens';
|
|
18
18
|
export { MultiButtonModule } from './modules/multiButton/modules/multiButton.module';
|
|
19
|
+
export * from './modules/castPipes';
|
|
19
20
|
export * from './types/tokens';
|
|
20
21
|
export * from './utils';
|
|
21
22
|
export * from './pipes';
|
|
23
|
+
export * from './decorators';
|
|
22
24
|
export { CookieService } from './services/cookies/cookies.service';
|
|
23
25
|
export { StatusCodeService } from './services/statusCode/statusCode.service';
|
|
24
26
|
export { CookiePermanentStorageService } from './services/permanentStorage';
|
package/es2020/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAC,oBAAoB,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAC,oBAAoB,EAAC,MAAM,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;AAExG,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,EAAmB,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAC,6BAA6B,EAAmB,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAC,2BAA2B,EAAqB,MAAM,+BAA+B,CAAC;AAE9F,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,UAAU,EAAE,uBAAuB,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AACjF,OAAO,EAAC,6BAA6B,EAAE,mBAAmB,EAAC,MAAM,8DAA8D,CAAC;AAChI,OAAO,EAAC,qBAAqB,EAAE,2BAA2B,EAAE,YAAY,EAAE,oBAAoB,EAAiB,oBAAoB,EAAuF,MAAM,0BAA0B,CAAC;AAC3P,cAAc,sBAAsB,CAAC;AAErC,sBAAsB;AACtB,0BAA0B","sourcesContent":["export {GlobalizationService} from './services/globalization/globalization.service';\nexport {CommonDynamicModule} from './modules/commonDynamic.module';\nexport {CommonLocalizeModule} from './modules/commonLocalize.module';\nexport {CommonUtilsModule} from './modules/commonUtils.module';\nexport * from './modules/goBack';\nexport {ProgressIndicatorOptions} from './modules/progressIndicator/services/progressIndicatorOptions';\nexport {ProgressIndicatorComponent} from './modules/progressIndicator/components/progressIndicator/progressIndicator.component';\nexport {ProgressIndicatorModule} from './modules/progressIndicator/modules/progressIndicator.module';\nexport {ProgressIndicatorService} from './modules/progressIndicator/services/progressIndicator.service';\nexport {PROGRESS_INDICATOR_GROUP_NAME} from './modules/progressIndicator/misc/tokens';\nexport {DebugDataModule} from './modules/debugData/modules/debugData.module';\nexport {DebugDataComponent} from './modules/debugData/components/debugData/debugData.component';\nexport {DebugDataEnabledService} from './modules/debugData/services/debugDataEnabled/debugDataEnabled.service';\nexport {ClickOutsideDirective} from './modules/clickOutside/directives/clickOutside/clickOutside.directive';\nexport {ClickOutsideModule} from './modules/clickOutside/modules/clickOutside.module';\nexport {MultiButtonComponent} from './modules/multiButton/components/multiButton/multiButton.component';\nexport {MultiButtonCssClasses} from './modules/multiButton/components/multiButton/multiButton.interface';\nexport {MULTI_BUTTON_CSS_CLASSES} from './modules/multiButton/misc/tokens';\nexport {MultiButtonModule} from './modules/multiButton/modules/multiButton.module';\nexport * from './modules/castPipes';\nexport * from './types/tokens';\nexport * from './utils';\nexport * from './pipes';\nexport * from './decorators';\nexport {CookieService} from './services/cookies/cookies.service';\nexport {StatusCodeService} from './services/statusCode/statusCode.service';\nexport {CookiePermanentStorageService, PermanentStorage} from './services/permanentStorage';\nexport {MemoryTemporaryStorageService, TemporaryStorage} from './services/temporaryStorage';\nexport {NoStringLocalizationService, StringLocalization} from './services/stringLocalization';\nexport {Logger} from './services/logger';\nexport {NgComponentOutletEx} from './directives/ngComponentOutletEx/ngComponentOutletEx.directive';\nexport {APP_STABLE, extractAppStableResolve, runWhenModuleStable} from './utils';\nexport {PROGRESS_INTERCEPTOR_PROVIDER, ProgressInterceptor} from './modules/progressIndicator/interceptors/progressInterceptor';\nexport {DEFAULT_NOTIFICATIONS, DefaultNotificationsService, Notification, NotificationSeverity, Notifications, NotificationsOptions, NotificationsProvider, NotificationsScopeProvider, NotificationsScopeProviderFactory} from './services/notifications';\nexport * from './services/alignment';\n\n//TODO: any to unknown\n//TODO: strict null checks"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/castPipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC","sourcesContent":["export * from './modules';\nexport * from './pipes';"]}
|
|
@@ -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 @@
|
|
|
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 ?? 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,IAAI,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,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 @@
|
|
|
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"]}
|
|
@@ -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,
|
|
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}"]}
|
package/forms/src/index.d.ts
CHANGED
|
@@ -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
|
package/forms/src/index.d.ts.map
CHANGED
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"titledDialog.component.d.ts","sourceRoot":"","sources":["titledDialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,QAAQ,EAA6B,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAkB,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAC,oBAAoB,EAAqB,MAAM,8CAA8C,CAAC;;AAEtG;;GAEG;AACH,qBAOa,qBAAqB;IAoBc,IAAI,EAAE,oBAAoB;IACnD,SAAS,EAAE,YAAY,CAAC,oBAAoB,CAAC;IAjBhE;;OAEG;IACI,QAAQ,EAAE,QAAQ,CAAC;IAE1B,IAAW,SAAS,IAAI,aAAa,CAAC,GAAG,CAAC,CAQzC;gBAG2C,IAAI,EAAE,oBAAoB,EACnD,SAAS,EAAE,YAAY,CAAC,oBAAoB,CAAC,EACpD,QAAQ,EAAE,QAAQ;yCAtBrB,qBAAqB;2CAArB,qBAAqB;
|
|
1
|
+
{"version":3,"file":"titledDialog.component.d.ts","sourceRoot":"","sources":["titledDialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,QAAQ,EAA6B,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAkB,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAC,oBAAoB,EAAqB,MAAM,8CAA8C,CAAC;;AAEtG;;GAEG;AACH,qBAOa,qBAAqB;IAoBc,IAAI,EAAE,oBAAoB;IACnD,SAAS,EAAE,YAAY,CAAC,oBAAoB,CAAC;IAjBhE;;OAEG;IACI,QAAQ,EAAE,QAAQ,CAAC;IAE1B,IAAW,SAAS,IAAI,aAAa,CAAC,GAAG,CAAC,CAQzC;gBAG2C,IAAI,EAAE,oBAAoB,EACnD,SAAS,EAAE,YAAY,CAAC,oBAAoB,CAAC,EACpD,QAAQ,EAAE,QAAQ;yCAtBrB,qBAAqB;2CAArB,qBAAqB;CAqCjC"}
|
|
@@ -7,7 +7,7 @@ import * as i3 from "@angular/material/dialog";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class TitledDialogModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TitledDialogModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TitledDialogModule, [typeof i1.TitledDialogComponent], [typeof i2.CommonLocalizeModule, typeof i3.MatDialogModule], never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TitledDialogModule, [typeof i1.TitledDialogComponent], [typeof i2.CommonDynamicModule, typeof i2.CommonLocalizeModule, typeof i3.MatDialogModule], never>;
|
|
11
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<TitledDialogModule>;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=titledDialog.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"titledDialog.module.d.ts","sourceRoot":"","sources":["titledDialog.module.ts"],"names":[],"mappings":";;;;AAOA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"titledDialog.module.d.ts","sourceRoot":"","sources":["titledDialog.module.ts"],"names":[],"mappings":";;;;AAOA;;GAEG;AACH,qBAiBa,kBAAkB;yCAAlB,kBAAkB;0CAAlB,kBAAkB;0CAAlB,kBAAkB;CAE9B"}
|