@anglr/common 11.2.0-beta.20220301105854 → 11.2.0-beta.20220301111415
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 +3 -0
- package/es2015/forms/src/misc/formModel/decorators/formArrayChild.decorator.js +11 -0
- package/es2015/forms/src/misc/formModel/decorators/formArrayChild.decorator.js.map +1 -0
- package/es2015/forms/src/misc/formModel/decorators/index.js +1 -0
- package/es2015/forms/src/misc/formModel/decorators/index.js.map +1 -1
- package/es2020/forms/src/misc/formModel/decorators/formArrayChild.decorator.js +11 -0
- package/es2020/forms/src/misc/formModel/decorators/formArrayChild.decorator.js.map +1 -0
- package/es2020/forms/src/misc/formModel/decorators/index.js +1 -0
- package/es2020/forms/src/misc/formModel/decorators/index.js.map +1 -1
- package/forms/src/misc/formModel/decorators/formArrayChild.decorator.d.ts +7 -0
- package/forms/src/misc/formModel/decorators/formArrayChild.decorator.d.ts.map +1 -0
- package/forms/src/misc/formModel/decorators/index.d.ts +1 -0
- package/forms/src/misc/formModel/decorators/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/version.bak +1 -1
package/changelog.md
CHANGED
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
- requires `@floating-ui/dom` package of minimal version `0.3.1`
|
|
37
37
|
- new `FloatingUiDomPosition` service that is used for positioning two elements against each other, using floating-ui dom implementation
|
|
38
38
|
- new `FLOATING_UI_POSITION` provider for floating ui position implementation
|
|
39
|
+
- *subpackage* `@anglr/common/forms`
|
|
40
|
+
- **Form Model Builder**
|
|
41
|
+
- new `FormArrayChild` decorator which defines child type for FormArray
|
|
39
42
|
|
|
40
43
|
## Version 11.1.0 (2022-02-22)
|
|
41
44
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ModelPropertyMetadata } from './modelPropertyMetadata.decorator';
|
|
2
|
+
/**
|
|
3
|
+
* Defines child type for FormArray
|
|
4
|
+
* @param childType - Type of child that should be created inside FormArray
|
|
5
|
+
*/
|
|
6
|
+
export function FormArrayChild(childType) {
|
|
7
|
+
return ModelPropertyMetadata({
|
|
8
|
+
childType: childType
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=formArrayChild.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formArrayChild.decorator.js","sourceRoot":"","sources":["../../../../../../forms/src/misc/formModel/decorators/formArrayChild.decorator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,qBAAqB,EAAC,MAAM,mCAAmC,CAAC;AAExE;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,SAA+D;IAE1F,OAAO,qBAAqB,CAC5B;QACI,SAAS,EAAE,SAAS;KACvB,CAAC,CAAC;AACP,CAAC","sourcesContent":["import {FormArray, FormControl, FormGroup} from '@angular/forms';\n\nimport {ModelPropertyMetadata} from './modelPropertyMetadata.decorator';\n\n/**\n * Defines child type for FormArray\n * @param childType - Type of child that should be created inside FormArray\n */\nexport function FormArrayChild(childType: typeof FormGroup|typeof FormArray|typeof FormControl): PropertyDecorator\n{\n return ModelPropertyMetadata(\n {\n childType: childType\n });\n}"]}
|
|
@@ -2,6 +2,7 @@ export * from './asyncValidator.decorator';
|
|
|
2
2
|
export * from './controlOptions.decorator';
|
|
3
3
|
export * from './disabled.decorator';
|
|
4
4
|
export * from './email.decorator';
|
|
5
|
+
export * from './formArrayChild.decorator';
|
|
5
6
|
export * from './formArrayProperty.decorator';
|
|
6
7
|
export * from './formGroupAsyncValidator.decorator';
|
|
7
8
|
export * from './formGroupProperty.decorator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../forms/src/misc/formModel/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC","sourcesContent":["export * from './asyncValidator.decorator';\nexport * from './controlOptions.decorator';\nexport * from './disabled.decorator';\nexport * from './email.decorator';\nexport * from './formArrayProperty.decorator';\nexport * from './formGroupAsyncValidator.decorator';\nexport * from './formGroupProperty.decorator';\nexport * from './formGroupValidator.decorator';\nexport * from './invalidateOnChange.decorator';\nexport * from './maxLength.decorator';\nexport * from './maxValue.decorator';\nexport * from './minLength.decorator';\nexport * from './minValue.decorator';\nexport * from './modelPropertyMetadata.decorator';\nexport * from './number.decorator';\nexport * from './pattern.decorator';\nexport * from './required.decorator';\nexport * from './requiredIf.decorator';\nexport * from './validator.decorator';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../forms/src/misc/formModel/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC","sourcesContent":["export * from './asyncValidator.decorator';\nexport * from './controlOptions.decorator';\nexport * from './disabled.decorator';\nexport * from './email.decorator';\nexport * from './formArrayChild.decorator';\nexport * from './formArrayProperty.decorator';\nexport * from './formGroupAsyncValidator.decorator';\nexport * from './formGroupProperty.decorator';\nexport * from './formGroupValidator.decorator';\nexport * from './invalidateOnChange.decorator';\nexport * from './maxLength.decorator';\nexport * from './maxValue.decorator';\nexport * from './minLength.decorator';\nexport * from './minValue.decorator';\nexport * from './modelPropertyMetadata.decorator';\nexport * from './number.decorator';\nexport * from './pattern.decorator';\nexport * from './required.decorator';\nexport * from './requiredIf.decorator';\nexport * from './validator.decorator';\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ModelPropertyMetadata } from './modelPropertyMetadata.decorator';
|
|
2
|
+
/**
|
|
3
|
+
* Defines child type for FormArray
|
|
4
|
+
* @param childType - Type of child that should be created inside FormArray
|
|
5
|
+
*/
|
|
6
|
+
export function FormArrayChild(childType) {
|
|
7
|
+
return ModelPropertyMetadata({
|
|
8
|
+
childType: childType
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=formArrayChild.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formArrayChild.decorator.js","sourceRoot":"","sources":["../../../../../../forms/src/misc/formModel/decorators/formArrayChild.decorator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,qBAAqB,EAAC,MAAM,mCAAmC,CAAC;AAExE;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,SAA+D;IAE1F,OAAO,qBAAqB,CAC5B;QACI,SAAS,EAAE,SAAS;KACvB,CAAC,CAAC;AACP,CAAC","sourcesContent":["import {FormArray, FormControl, FormGroup} from '@angular/forms';\n\nimport {ModelPropertyMetadata} from './modelPropertyMetadata.decorator';\n\n/**\n * Defines child type for FormArray\n * @param childType - Type of child that should be created inside FormArray\n */\nexport function FormArrayChild(childType: typeof FormGroup|typeof FormArray|typeof FormControl): PropertyDecorator\n{\n return ModelPropertyMetadata(\n {\n childType: childType\n });\n}"]}
|
|
@@ -2,6 +2,7 @@ export * from './asyncValidator.decorator';
|
|
|
2
2
|
export * from './controlOptions.decorator';
|
|
3
3
|
export * from './disabled.decorator';
|
|
4
4
|
export * from './email.decorator';
|
|
5
|
+
export * from './formArrayChild.decorator';
|
|
5
6
|
export * from './formArrayProperty.decorator';
|
|
6
7
|
export * from './formGroupAsyncValidator.decorator';
|
|
7
8
|
export * from './formGroupProperty.decorator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../forms/src/misc/formModel/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC","sourcesContent":["export * from './asyncValidator.decorator';\nexport * from './controlOptions.decorator';\nexport * from './disabled.decorator';\nexport * from './email.decorator';\nexport * from './formArrayProperty.decorator';\nexport * from './formGroupAsyncValidator.decorator';\nexport * from './formGroupProperty.decorator';\nexport * from './formGroupValidator.decorator';\nexport * from './invalidateOnChange.decorator';\nexport * from './maxLength.decorator';\nexport * from './maxValue.decorator';\nexport * from './minLength.decorator';\nexport * from './minValue.decorator';\nexport * from './modelPropertyMetadata.decorator';\nexport * from './number.decorator';\nexport * from './pattern.decorator';\nexport * from './required.decorator';\nexport * from './requiredIf.decorator';\nexport * from './validator.decorator';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../forms/src/misc/formModel/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC","sourcesContent":["export * from './asyncValidator.decorator';\nexport * from './controlOptions.decorator';\nexport * from './disabled.decorator';\nexport * from './email.decorator';\nexport * from './formArrayChild.decorator';\nexport * from './formArrayProperty.decorator';\nexport * from './formGroupAsyncValidator.decorator';\nexport * from './formGroupProperty.decorator';\nexport * from './formGroupValidator.decorator';\nexport * from './invalidateOnChange.decorator';\nexport * from './maxLength.decorator';\nexport * from './maxValue.decorator';\nexport * from './minLength.decorator';\nexport * from './minValue.decorator';\nexport * from './modelPropertyMetadata.decorator';\nexport * from './number.decorator';\nexport * from './pattern.decorator';\nexport * from './required.decorator';\nexport * from './requiredIf.decorator';\nexport * from './validator.decorator';\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormGroup } from '@angular/forms';
|
|
2
|
+
/**
|
|
3
|
+
* Defines child type for FormArray
|
|
4
|
+
* @param childType - Type of child that should be created inside FormArray
|
|
5
|
+
*/
|
|
6
|
+
export declare function FormArrayChild(childType: typeof FormGroup | typeof FormArray | typeof FormControl): PropertyDecorator;
|
|
7
|
+
//# sourceMappingURL=formArrayChild.decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formArrayChild.decorator.d.ts","sourceRoot":"","sources":["formArrayChild.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAIjE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,OAAO,SAAS,GAAC,OAAO,SAAS,GAAC,OAAO,WAAW,GAAG,iBAAiB,CAMjH"}
|
|
@@ -2,6 +2,7 @@ export * from './asyncValidator.decorator';
|
|
|
2
2
|
export * from './controlOptions.decorator';
|
|
3
3
|
export * from './disabled.decorator';
|
|
4
4
|
export * from './email.decorator';
|
|
5
|
+
export * from './formArrayChild.decorator';
|
|
5
6
|
export * from './formArrayProperty.decorator';
|
|
6
7
|
export * from './formGroupAsyncValidator.decorator';
|
|
7
8
|
export * from './formGroupProperty.decorator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC"}
|
package/package.json
CHANGED
package/version.bak
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
11.2.0-beta.
|
|
1
|
+
11.2.0-beta.20220301111415
|