@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
package/changelog.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Version 11.1.0 (2022-02-22)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- added *experimental* `ComponentHostStyle` decorator, which applies css styles to host of component, requires at least empty style on Component
|
|
8
|
+
- added *experimental* `ComponentDisplay` decorator, which applies css display style to host of component, requires at least empty style on Component
|
|
9
|
+
- added *experimental* `ComponentDisplayBlock` decorator, which applies css display block style to host of component, requires at least empty style on Component
|
|
10
|
+
- added *experimental* `ComponentDisplayFlex` decorator, which applies css display flex style to host of component, requires at least empty style on Component
|
|
11
|
+
- added *experimental* `ScrollableContent` decorator, which applies css overflow-y scroll style to host of component, requires at least empty style on Component
|
|
12
|
+
- added `CastPipesModule` module that holds cast pipes
|
|
13
|
+
- added `CastTypePipe` pipe that allows casting of type for templates, should be used inherited
|
|
14
|
+
- added `AsHtmlElementPipe` pipe that casts EventTarget to HTMLELement
|
|
15
|
+
- added `AsRequiredTypePipe` pipe that transforms type to required from `nullable` or `undefined` type
|
|
16
|
+
- added `AsNgClassRequiredPipe` pipe that transforms nullable NgClass input to NgClass non nullable input
|
|
17
|
+
- *subpackage* `@anglr/common/forms`
|
|
18
|
+
- added `FormPipesModule` module that holds form util pipes
|
|
19
|
+
- added `AsFormArrayPipe` pipe that tries to convert `AbstractControl` to `FormArray`
|
|
20
|
+
- added `AsFormControlPipe` pipe that tries to convert `AbstractControl` to `FormControl`
|
|
21
|
+
- added `AsFormGroupPipe` pipe that tries to convert `AbstractControl` to `FormGroup`
|
|
22
|
+
- added `GetControlPipe` pipe that gets control from `FormGroup`
|
|
23
|
+
|
|
24
|
+
## Version 11.0.0 (2022-02-22)
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
- fixed `TitledDialogComponent`, now correctly imports `ngComponentOutletEx`
|
|
29
|
+
|
|
30
|
+
### BREAKING CHANGES
|
|
31
|
+
|
|
32
|
+
- *subpackage* `@anglr/common/hmr`
|
|
33
|
+
- removed whole subpackage
|
|
34
|
+
- replacement for `hmrFinishedNotification` use `simpleNotification` function from `@jscrpt/common`
|
|
35
|
+
|
|
3
36
|
## Version 10.0.1 (2022-02-22)
|
|
4
37
|
|
|
5
38
|
### Bug Fixes
|
|
@@ -16,5 +16,6 @@ export * from './misc/types';
|
|
|
16
16
|
export * from './modules/numberInput.module';
|
|
17
17
|
export * from './modules/hasError.module';
|
|
18
18
|
export * from './modules/requiredClass.module';
|
|
19
|
+
export * from './modules/formPipes';
|
|
19
20
|
export * from './misc/formModel';
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../forms/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,oEAAoE,CAAC;AACnF,cAAc,kEAAkE,CAAC;AACjF,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './directives/numberInput/maxValueNumberValidator.directive';\nexport * from './directives/numberInput/minValueNumberValidator.directive';\nexport * from './directives/numberInput/numberInputValidator.directive';\nexport * from './directives/numberInput/numberInputControlValueAccessor.directive';\nexport * from './directives/hasError/hasError.directive';\nexport * from './directives/groupHasError/groupHasError.directive';\nexport * from './directives/requiredClass/requiredClass.directive';\nexport * from './services/submitted/submitted.service';\nexport * from './services/errorMessagesExtractor/errorMessagesExtractor.interface';\nexport * from './services/errorMessagesExtractor/errorMessagesExtractor.service';\nexport * from './services/validationErrorRenderer/validationErrorRenderer.interface';\nexport * from './services/validationErrorRenderer/validationErrorRenderer.service';\nexport * from './misc/validators';\nexport * from './misc/utils';\nexport * from './misc/types';\nexport * from './modules/numberInput.module';\nexport * from './modules/hasError.module';\nexport * from './modules/requiredClass.module';\nexport * from './misc/formModel';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../forms/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,oEAAoE,CAAC;AACnF,cAAc,kEAAkE,CAAC;AACjF,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './directives/numberInput/maxValueNumberValidator.directive';\nexport * from './directives/numberInput/minValueNumberValidator.directive';\nexport * from './directives/numberInput/numberInputValidator.directive';\nexport * from './directives/numberInput/numberInputControlValueAccessor.directive';\nexport * from './directives/hasError/hasError.directive';\nexport * from './directives/groupHasError/groupHasError.directive';\nexport * from './directives/requiredClass/requiredClass.directive';\nexport * from './services/submitted/submitted.service';\nexport * from './services/errorMessagesExtractor/errorMessagesExtractor.interface';\nexport * from './services/errorMessagesExtractor/errorMessagesExtractor.service';\nexport * from './services/validationErrorRenderer/validationErrorRenderer.interface';\nexport * from './services/validationErrorRenderer/validationErrorRenderer.service';\nexport * from './misc/validators';\nexport * from './misc/utils';\nexport * from './misc/types';\nexport * from './modules/numberInput.module';\nexport * from './modules/hasError.module';\nexport * from './modules/requiredClass.module';\nexport * from './modules/formPipes';\nexport * from './misc/formModel';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../forms/src/modules/formPipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC","sourcesContent":["export * from './modules';\nexport * from './pipes';\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { AsFormArrayPipe, AsFormControlPipe, AsFormGroupPipe, GetControlPipe } from '../pipes';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Module that holds form util pipes
|
|
6
|
+
*/
|
|
7
|
+
export class FormPipesModule {
|
|
8
|
+
}
|
|
9
|
+
FormPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FormPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
+
FormPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FormPipesModule, declarations: [AsFormArrayPipe,
|
|
11
|
+
AsFormControlPipe,
|
|
12
|
+
AsFormGroupPipe,
|
|
13
|
+
GetControlPipe], exports: [AsFormArrayPipe,
|
|
14
|
+
AsFormControlPipe,
|
|
15
|
+
AsFormGroupPipe,
|
|
16
|
+
GetControlPipe] });
|
|
17
|
+
FormPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FormPipesModule });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FormPipesModule, decorators: [{
|
|
19
|
+
type: NgModule,
|
|
20
|
+
args: [{
|
|
21
|
+
declarations: [
|
|
22
|
+
AsFormArrayPipe,
|
|
23
|
+
AsFormControlPipe,
|
|
24
|
+
AsFormGroupPipe,
|
|
25
|
+
GetControlPipe,
|
|
26
|
+
],
|
|
27
|
+
exports: [
|
|
28
|
+
AsFormArrayPipe,
|
|
29
|
+
AsFormControlPipe,
|
|
30
|
+
AsFormGroupPipe,
|
|
31
|
+
GetControlPipe,
|
|
32
|
+
]
|
|
33
|
+
}]
|
|
34
|
+
}] });
|
|
35
|
+
//# sourceMappingURL=formPipes.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formPipes.module.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/formPipes/modules/formPipes.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAC,MAAM,UAAU,CAAC;;AAE7F;;GAEG;AAkBH,MAAM,OAAO,eAAe;;4GAAf,eAAe;6GAAf,eAAe,iBAbpB,eAAe;QACf,iBAAiB;QACjB,eAAe;QACf,cAAc,aAId,eAAe;QACf,iBAAiB;QACjB,eAAe;QACf,cAAc;6GAGT,eAAe;2FAAf,eAAe;kBAjB3B,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,eAAe;wBACf,iBAAiB;wBACjB,eAAe;wBACf,cAAc;qBACjB;oBACD,OAAO,EACP;wBACI,eAAe;wBACf,iBAAiB;wBACjB,eAAe;wBACf,cAAc;qBACjB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {AsFormArrayPipe, AsFormControlPipe, AsFormGroupPipe, GetControlPipe} from '../pipes';\n\n/**\n * Module that holds form util pipes\n */\n@NgModule(\n{\n declarations:\n [\n AsFormArrayPipe,\n AsFormControlPipe,\n AsFormGroupPipe,\n GetControlPipe,\n ],\n exports:\n [\n AsFormArrayPipe,\n AsFormControlPipe,\n AsFormGroupPipe,\n GetControlPipe,\n ]\n})\nexport class FormPipesModule\n{\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/formPipes/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC","sourcesContent":["export * from './formPipes.module';\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import { FormArray } from '@angular/forms';
|
|
3
|
+
import { CastTypePipe } from '@anglr/common';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Tries to convert `AbstractControl` to `FormArray`
|
|
7
|
+
*/
|
|
8
|
+
export class AsFormArrayPipe extends CastTypePipe {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
//######################### protected fields #########################
|
|
12
|
+
/**
|
|
13
|
+
* @inheritdoc
|
|
14
|
+
*/
|
|
15
|
+
this._isInstanceOfPredicate = value => value instanceof FormArray;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
AsFormArrayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormArrayPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe });
|
|
19
|
+
AsFormArrayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormArrayPipe, name: "asFormArray" });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormArrayPipe, decorators: [{
|
|
21
|
+
type: Pipe,
|
|
22
|
+
args: [{ name: 'asFormArray' }]
|
|
23
|
+
}] });
|
|
24
|
+
//# sourceMappingURL=asFormArray.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asFormArray.pipe.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAkB,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;;AAE3C;;GAEG;AAEH,MAAM,OAAO,eAAgB,SAAQ,YAAwC;IAD7E;;QAGI,sEAAsE;QAEtE;;WAEG;QACgB,2BAAsB,GAAwC,KAAK,CAAC,EAAE,CAAC,KAAK,YAAY,SAAS,CAAC;KACxH;;4GARY,eAAe;0GAAf,eAAe;2FAAf,eAAe;kBAD3B,IAAI;mBAAC,EAAC,IAAI,EAAE,aAAa,EAAC","sourcesContent":["import {Pipe} from '@angular/core';\nimport {AbstractControl, FormArray} from '@angular/forms';\nimport {CastTypePipe} from '@anglr/common';\n\n/**\n * Tries to convert `AbstractControl` to `FormArray`\n */\n@Pipe({name: 'asFormArray'})\nexport class AsFormArrayPipe extends CastTypePipe<AbstractControl, FormArray>\n{\n //######################### protected fields #########################\n\n /**\n * @inheritdoc\n */\n protected override _isInstanceOfPredicate: (value: AbstractControl) => boolean = value => value instanceof FormArray;\n}"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { CastTypePipe } from '@anglr/common';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Tries to convert `AbstractControl` to `FormControl`
|
|
7
|
+
*/
|
|
8
|
+
export class AsFormControlPipe extends CastTypePipe {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
//######################### protected fields #########################
|
|
12
|
+
/**
|
|
13
|
+
* @inheritdoc
|
|
14
|
+
*/
|
|
15
|
+
this._isInstanceOfPredicate = value => value instanceof FormControl;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
AsFormControlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormControlPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe });
|
|
19
|
+
AsFormControlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormControlPipe, name: "asFormControl" });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormControlPipe, decorators: [{
|
|
21
|
+
type: Pipe,
|
|
22
|
+
args: [{ name: 'asFormControl' }]
|
|
23
|
+
}] });
|
|
24
|
+
//# sourceMappingURL=asFormControl.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asFormControl.pipe.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAkB,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;;AAE3C;;GAEG;AAEH,MAAM,OAAO,iBAAkB,SAAQ,YAA0C;IADjF;;QAGI,sEAAsE;QAEtE;;WAEG;QACgB,2BAAsB,GAAwC,KAAK,CAAC,EAAE,CAAC,KAAK,YAAY,WAAW,CAAC;KAC1H;;8GARY,iBAAiB;4GAAjB,iBAAiB;2FAAjB,iBAAiB;kBAD7B,IAAI;mBAAC,EAAC,IAAI,EAAE,eAAe,EAAC","sourcesContent":["import {Pipe} from '@angular/core';\nimport {AbstractControl, FormControl} from '@angular/forms';\nimport {CastTypePipe} from '@anglr/common';\n\n/**\n * Tries to convert `AbstractControl` to `FormControl`\n */\n@Pipe({name: 'asFormControl'})\nexport class AsFormControlPipe extends CastTypePipe<AbstractControl, FormControl>\n{\n //######################### protected fields #########################\n\n /**\n * @inheritdoc\n */\n protected override _isInstanceOfPredicate: (value: AbstractControl) => boolean = value => value instanceof FormControl;\n}"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { CastTypePipe } from '@anglr/common';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Tries to convert `AbstractControl` to `FormGroup`
|
|
7
|
+
*/
|
|
8
|
+
export class AsFormGroupPipe extends CastTypePipe {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
//######################### protected fields #########################
|
|
12
|
+
/**
|
|
13
|
+
* @inheritdoc
|
|
14
|
+
*/
|
|
15
|
+
this._isInstanceOfPredicate = value => value instanceof FormGroup;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
AsFormGroupPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormGroupPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe });
|
|
19
|
+
AsFormGroupPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormGroupPipe, name: "asFormGroup" });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AsFormGroupPipe, decorators: [{
|
|
21
|
+
type: Pipe,
|
|
22
|
+
args: [{ name: 'asFormGroup' }]
|
|
23
|
+
}] });
|
|
24
|
+
//# sourceMappingURL=asFormGroup.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asFormGroup.pipe.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAkB,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;;AAE3C;;GAEG;AAEH,MAAM,OAAO,eAAgB,SAAQ,YAAwC;IAD7E;;QAGI,sEAAsE;QAEtE;;WAEG;QACgB,2BAAsB,GAAwC,KAAK,CAAC,EAAE,CAAC,KAAK,YAAY,SAAS,CAAC;KACxH;;4GARY,eAAe;0GAAf,eAAe;2FAAf,eAAe;kBAD3B,IAAI;mBAAC,EAAC,IAAI,EAAE,aAAa,EAAC","sourcesContent":["import {Pipe} from '@angular/core';\nimport {AbstractControl, FormGroup} from '@angular/forms';\nimport {CastTypePipe} from '@anglr/common';\n\n/**\n * Tries to convert `AbstractControl` to `FormGroup`\n */\n@Pipe({name: 'asFormGroup'})\nexport class AsFormGroupPipe extends CastTypePipe<AbstractControl, FormGroup>\n{\n //######################### protected fields #########################\n\n /**\n * @inheritdoc\n */\n protected override _isInstanceOfPredicate: (value: AbstractControl) => boolean = value => value instanceof FormGroup;\n}"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import { FormArray, FormGroup } from '@angular/forms';
|
|
3
|
+
import { isBlank } from '@jscrpt/common';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Gets control from `FormGroup`
|
|
7
|
+
*/
|
|
8
|
+
export class GetControlPipe {
|
|
9
|
+
/**
|
|
10
|
+
* Gets control from `FormGroup`
|
|
11
|
+
* @param value - FormGroup which contains requested control
|
|
12
|
+
* @param control - Control name to be obtained
|
|
13
|
+
* @param _valueHash - Parameter that can be used to change value, indicates that pipe input value has changed
|
|
14
|
+
*/
|
|
15
|
+
transform(value, control, _valueHash) {
|
|
16
|
+
if (isBlank(value)) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
if (!(value instanceof FormArray) && !(value instanceof FormGroup)) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return value.get(control);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
GetControlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: GetControlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
26
|
+
GetControlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: GetControlPipe, name: "getControl" });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: GetControlPipe, decorators: [{
|
|
28
|
+
type: Pipe,
|
|
29
|
+
args: [{ name: 'getControl' }]
|
|
30
|
+
}] });
|
|
31
|
+
//# sourceMappingURL=getControl.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getControl.pipe.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/formPipes/pipes/getControl/getControl.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAkB,SAAS,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAEvC;;GAEG;AAEH,MAAM,OAAO,cAAc;IAEvB;;;;;OAKG;IACI,SAAS,CAAC,KAAsB,EAAE,OAAyB,EAAE,UAAgB;QAEhF,IAAG,OAAO,CAAC,KAAK,CAAC,EACjB;YACI,OAAO,IAAI,CAAC;SACf;QAED,IAAG,CAAC,CAAC,KAAK,YAAY,SAAS,CAAC,IAAI,CAAC,CAAC,KAAK,YAAY,SAAS,CAAC,EACjE;YACI,OAAO,IAAI,CAAC;SACf;QAED,OAAO,KAAK,CAAC,GAAG,CAAC,OAAiB,CAAC,CAAC;IACxC,CAAC;;2GArBQ,cAAc;yGAAd,cAAc;2FAAd,cAAc;kBAD1B,IAAI;mBAAC,EAAC,IAAI,EAAE,YAAY,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {AbstractControl, FormArray, FormGroup} from '@angular/forms';\nimport {isBlank} from '@jscrpt/common';\n\n/**\n * Gets control from `FormGroup`\n */\n@Pipe({name: 'getControl'})\nexport class GetControlPipe<TFormGroup> implements PipeTransform\n{\n /**\n * Gets control from `FormGroup`\n * @param value - FormGroup which contains requested control\n * @param control - Control name to be obtained\n * @param _valueHash - Parameter that can be used to change value, indicates that pipe input value has changed\n */\n public transform(value: AbstractControl, control: keyof TFormGroup, _valueHash?: any): AbstractControl|null\n {\n if(isBlank(value))\n {\n return null;\n }\n\n if(!(value instanceof FormArray) && !(value instanceof FormGroup))\n {\n return null;\n }\n\n return value.get(control as string);\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/formPipes/pipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './asFormArray/asFormArray.pipe';\nexport * from './asFormControl/asFormControl.pipe';\nexport * from './asFormGroup/asFormGroup.pipe';\nexport * from './getControl/getControl.pipe';\n"]}
|
|
@@ -3,7 +3,8 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
|
3
3
|
import { TITLED_DIALOG_DATA } from '../../misc/interfaces/titledDialog.interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/material/dialog";
|
|
6
|
-
import * as i2 from "../../../../src/
|
|
6
|
+
import * as i2 from "../../../../src/directives/ngComponentOutletEx/ngComponentOutletEx.directive";
|
|
7
|
+
import * as i3 from "../../../../src/pipes/localize/localize.pipe";
|
|
7
8
|
/**
|
|
8
9
|
* Component used as wrapper for material dialog enhanced with title
|
|
9
10
|
*/
|
|
@@ -12,12 +13,15 @@ export class TitledDialogComponent {
|
|
|
12
13
|
constructor(data, dialogRef, injector) {
|
|
13
14
|
this.data = data;
|
|
14
15
|
this.dialogRef = dialogRef;
|
|
15
|
-
this.injector = Injector.create(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
this.injector = Injector.create({
|
|
17
|
+
providers: [
|
|
18
|
+
{
|
|
19
|
+
provide: TITLED_DIALOG_DATA,
|
|
20
|
+
useValue: data.data
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
parent: injector
|
|
24
|
+
});
|
|
21
25
|
}
|
|
22
26
|
get component() {
|
|
23
27
|
var _a;
|
|
@@ -28,7 +32,7 @@ export class TitledDialogComponent {
|
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
TitledDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
-
TitledDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TitledDialogComponent, selector: "titled-dialog", ngImport: i0, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"], pipes: { "localize":
|
|
35
|
+
TitledDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TitledDialogComponent, selector: "titled-dialog", ngImport: i0, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"], directives: [{ type: i2.NgComponentOutletEx, selector: "[ngComponentOutletEx]", inputs: ["ngComponentOutletEx", "ngComponentOutletExInjector", "ngComponentOutletExContent"], outputs: ["ngComponentOutletExCreated"], exportAs: ["ngComponentOutletEx"] }], pipes: { "localize": i3.LocalizePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
32
36
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogComponent, decorators: [{
|
|
33
37
|
type: Component,
|
|
34
38
|
args: [{ selector: 'titled-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>", styles: [".titled-dialog-title\r\n{\r\n padding: 10px;\r\n text-transform: capitalize;\r\n font-size: 14px;\r\n font-weight: bold;\r\n}\r\n.titled-dialog-title .close-dialog\r\n{\r\n margin-left: 10px;\r\n}\r\n\r\n.titled-dialog-content\r\n{\r\n padding: 10px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n}"] }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"titledDialog.component.js","sourceRoot":"","sources":["../../../../../material/src/components/titledDialog/titledDialog.component.ts","../../../../../material/src/components/titledDialog/titledDialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAiB,WAAW,EAAC,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAGvE,OAAO,EAAuB,kBAAkB,EAAC,MAAM,8CAA8C,CAAC
|
|
1
|
+
{"version":3,"file":"titledDialog.component.js","sourceRoot":"","sources":["../../../../../material/src/components/titledDialog/titledDialog.component.ts","../../../../../material/src/components/titledDialog/titledDialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAiB,WAAW,EAAC,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAGvE,OAAO,EAAuB,kBAAkB,EAAC,MAAM,8CAA8C,CAAC;;;;;AAEtG;;GAEG;AAQH,MAAM,OAAO,qBAAqB;IAmB9B,iEAAiE;IACjE,YAA4C,IAA0B,EACnD,SAA6C,EACpD,QAAkB;QAFc,SAAI,GAAJ,IAAI,CAAsB;QACnD,cAAS,GAAT,SAAS,CAAoC;QAG5D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAC/B;YACI,SAAS,EACT;gBAEI;oBACI,OAAO,EAAE,kBAAkB;oBAC3B,QAAQ,EAAE,IAAI,CAAC,IAAI;iBACtB;aACJ;YACD,MAAM,EAAE,QAAQ;SACnB,CAAC,CAAC;IACP,CAAC;IA3BD,IAAW,SAAS;;QAEhB,IAAG,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,sBAAsB,aAAY,WAAW,EAC3D;YACI,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC;IAC5C,CAAC;;kHAjBQ,qBAAqB,kBAoBV,eAAe;sGApB1B,qBAAqB,qDChBlC,gcAUM;2FDMO,qBAAqB;kBAPjC,SAAS;+BAEI,eAAe,mBAGR,uBAAuB,CAAC,MAAM;;0BAsBlC,MAAM;2BAAC,eAAe","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Injector, ValueProvider, TemplateRef} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\nimport {ComponentType} from '@angular/cdk/portal';\n\nimport {ɵTitledDialogOptions, TITLED_DIALOG_DATA} from '../../misc/interfaces/titledDialog.interface';\n\n/**\n * Component used as wrapper for material dialog enhanced with title\n */\n@Component(\n{\n selector: 'titled-dialog',\n templateUrl: 'titledDialog.component.html',\n styleUrls: ['titledDialog.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TitledDialogComponent\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Injector used for creating component or template\n */\n public injector: Injector;\n\n public get component(): ComponentType<any>\n {\n if(this.data?.componentOrTemplateRef instanceof TemplateRef)\n {\n return null;\n }\n\n return this.data.componentOrTemplateRef;\n }\n\n //######################### constructor #########################\n constructor(@Inject(MAT_DIALOG_DATA) public data: ɵTitledDialogOptions,\n public dialogRef: MatDialogRef<ɵTitledDialogOptions>,\n injector: Injector)\n {\n this.injector = Injector.create(\n {\n providers:\n [\n <ValueProvider>\n {\n provide: TITLED_DIALOG_DATA,\n useValue: data.data\n }\n ],\n parent: injector\n });\n }\n}","<div class=\"flex-row titled-dialog-title\">\r\n <div class=\"flex-1\">{{data.title | localize}}</div>\r\n\r\n <div class=\"pointer-cursor align-self-center close-dialog\" (click)=\"dialogRef.close()\">\r\n <div class=\"fa fa-times\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"titled-dialog-content\">\r\n <ng-template [ngComponentOutletEx]=\"component\" [ngComponentOutletExInjector]=\"injector\"></ng-template>\r\n</div>"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
3
|
-
import { CommonLocalizeModule } from '@anglr/common';
|
|
3
|
+
import { CommonDynamicModule, CommonLocalizeModule } from '@anglr/common';
|
|
4
4
|
import { TitledDialogComponent } from '../components/titledDialog/titledDialog.component';
|
|
5
5
|
import { TitledDialogService } from '../services/titledDialog/titledDialog.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -10,20 +10,23 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
export class TitledDialogModule {
|
|
11
11
|
}
|
|
12
12
|
TitledDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13
|
-
TitledDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, declarations: [TitledDialogComponent], imports: [
|
|
13
|
+
TitledDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, declarations: [TitledDialogComponent], imports: [CommonDynamicModule,
|
|
14
|
+
CommonLocalizeModule,
|
|
14
15
|
MatDialogModule] });
|
|
15
16
|
TitledDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, providers: [
|
|
16
17
|
TitledDialogService
|
|
17
18
|
], imports: [[
|
|
19
|
+
CommonDynamicModule,
|
|
18
20
|
CommonLocalizeModule,
|
|
19
|
-
MatDialogModule
|
|
21
|
+
MatDialogModule,
|
|
20
22
|
]] });
|
|
21
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TitledDialogModule, decorators: [{
|
|
22
24
|
type: NgModule,
|
|
23
25
|
args: [{
|
|
24
26
|
imports: [
|
|
27
|
+
CommonDynamicModule,
|
|
25
28
|
CommonLocalizeModule,
|
|
26
|
-
MatDialogModule
|
|
29
|
+
MatDialogModule,
|
|
27
30
|
],
|
|
28
31
|
declarations: [
|
|
29
32
|
TitledDialogComponent
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"titledDialog.module.js","sourceRoot":"","sources":["../../../../material/src/modules/titledDialog.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"titledDialog.module.js","sourceRoot":"","sources":["../../../../material/src/modules/titledDialog.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,mBAAmB,EAAE,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAExE,OAAO,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAC,mBAAmB,EAAC,MAAM,+CAA+C,CAAC;;AAElF;;GAEG;AAkBH,MAAM,OAAO,kBAAkB;;+GAAlB,kBAAkB;gHAAlB,kBAAkB,iBAPvB,qBAAqB,aANrB,mBAAmB;QACnB,oBAAoB;QACpB,eAAe;gHAWV,kBAAkB,aAJ3B;QACI,mBAAmB;KACtB,YAZD;YACI,mBAAmB;YACnB,oBAAoB;YACpB,eAAe;SAClB;2FAUQ,kBAAkB;kBAjB9B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,mBAAmB;wBACnB,oBAAoB;wBACpB,eAAe;qBAClB;oBACD,YAAY,EACZ;wBACI,qBAAqB;qBACxB;oBACD,SAAS,EACT;wBACI,mBAAmB;qBACtB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {MatDialogModule} from '@angular/material/dialog';\nimport {CommonDynamicModule, CommonLocalizeModule} from '@anglr/common';\n\nimport {TitledDialogComponent} from '../components/titledDialog/titledDialog.component';\nimport {TitledDialogService} from '../services/titledDialog/titledDialog.service';\n\n/**\n * Module for components and service for displaying titled dialog\n */\n@NgModule(\n{\n imports:\n [\n CommonDynamicModule,\n CommonLocalizeModule,\n MatDialogModule,\n ],\n declarations:\n [\n TitledDialogComponent\n ],\n providers:\n [\n TitledDialogService\n ]\n})\nexport class TitledDialogModule\n{\n}"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentHostStyle } from './componentHostStyle.decorator';
|
|
2
|
+
/**
|
|
3
|
+
* Applies css display style to host of component, requires at least empty style on Component
|
|
4
|
+
* @param display - Css display value
|
|
5
|
+
*
|
|
6
|
+
* @experimental
|
|
7
|
+
*/
|
|
8
|
+
export function ComponentDisplay(display) {
|
|
9
|
+
return ComponentHostStyle(`display: ${display}`);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=componentDisplay.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentDisplay.decorator.js","sourceRoot":"","sources":["../../../src/decorators/componentDisplay.decorator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAElE;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAmB;IAEhD,OAAO,kBAAkB,CAAC,YAAY,OAAO,EAAE,CAAC,CAAC;AACrD,CAAC","sourcesContent":["import {CssDisplay} from '@jscrpt/common';\n\nimport {ComponentHostStyle} from './componentHostStyle.decorator';\n\n/**\n * Applies css display style to host of component, requires at least empty style on Component\n * @param display - Css display value\n * \n * @experimental\n */\nexport function ComponentDisplay(display: CssDisplay): ClassDecorator\n{\n return ComponentHostStyle(`display: ${display}`);\n}\n"]}
|
|
@@ -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/es2015/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/es2015/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';"]}
|