@ngx-formbar/core 0.12.0 → 2.0.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/README.md +2 -39
  2. package/fesm2022/ngx-formbar-core.mjs +221 -1615
  3. package/fesm2022/ngx-formbar-core.mjs.map +1 -1
  4. package/package.json +5 -12
  5. package/types/ngx-formbar-core.d.ts +522 -0
  6. package/LICENSE +0 -21
  7. package/index.d.ts +0 -5
  8. package/lib/components/form/ngxfb-form.component.d.ts +0 -28
  9. package/lib/composables/computed-value.d.ts +0 -8
  10. package/lib/composables/disabled.state.d.ts +0 -36
  11. package/lib/composables/dynamic-label.d.ts +0 -9
  12. package/lib/composables/dynamic-title.d.ts +0 -9
  13. package/lib/composables/hidden.state.d.ts +0 -68
  14. package/lib/composables/readonly.state.d.ts +0 -19
  15. package/lib/composables/testId.d.ts +0 -16
  16. package/lib/composables/update-strategy.d.ts +0 -20
  17. package/lib/composables/validators.d.ts +0 -22
  18. package/lib/config/config.d.ts +0 -7
  19. package/lib/config/provide-formbar.d.ts +0 -38
  20. package/lib/directives/ngxfb-abstract-control.directive.d.ts +0 -53
  21. package/lib/directives/ngxfb-block.directive.d.ts +0 -124
  22. package/lib/directives/ngxfb-control.directive.d.ts +0 -203
  23. package/lib/directives/ngxfb-group.directive.d.ts +0 -253
  24. package/lib/helper/control-container-view-providers.d.ts +0 -33
  25. package/lib/index.d.ts +0 -23
  26. package/lib/services/component-registration.service.d.ts +0 -8
  27. package/lib/services/configuration.service.d.ts +0 -8
  28. package/lib/services/expression.service.d.ts +0 -148
  29. package/lib/services/form.service.d.ts +0 -10
  30. package/lib/services/validator-registration.service.d.ts +0 -10
  31. package/lib/tokens/component-registrations.d.ts +0 -2
  32. package/lib/tokens/component-resolver.d.ts +0 -3
  33. package/lib/tokens/default-update-strategy.d.ts +0 -3
  34. package/lib/tokens/global-config.d.ts +0 -5
  35. package/lib/tokens/validator-registrations.d.ts +0 -8
  36. package/lib/tokens/validator-resolver.d.ts +0 -3
  37. package/lib/types/component-resolver.type.d.ts +0 -4
  38. package/lib/types/content.type.d.ts +0 -137
  39. package/lib/types/expression.type.d.ts +0 -2
  40. package/lib/types/form.type.d.ts +0 -4
  41. package/lib/types/functions.type.d.ts +0 -4
  42. package/lib/types/global-configuration.type.d.ts +0 -4
  43. package/lib/types/provide.type.d.ts +0 -42
  44. package/lib/types/registration.type.d.ts +0 -18
  45. package/lib/types/validation.type.d.ts +0 -59
  46. package/lib/types/validator-resolver.type.d.ts +0 -6
  47. package/public-api.d.ts +0 -1
  48. package/schematics/block/files/__componentName@dasherize__.component.html.template +0 -1
  49. package/schematics/block/files/__componentName@dasherize__.component.ts.template +0 -29
  50. package/schematics/block/files/__interfaceName@dasherize__.type.ts.template +0 -6
  51. package/schematics/block/index.d.ts +0 -3
  52. package/schematics/block/index.js +0 -11
  53. package/schematics/block/index.js.map +0 -1
  54. package/schematics/block/schema.json +0 -62
  55. package/schematics/collection.json +0 -31
  56. package/schematics/control/files/__componentName@dasherize__.component.html.template +0 -0
  57. package/schematics/control/files/__componentName@dasherize__.component.ts.template +0 -29
  58. package/schematics/control/files/__interfaceName@dasherize__.type.ts.template +0 -6
  59. package/schematics/control/index.d.ts +0 -3
  60. package/schematics/control/index.js +0 -11
  61. package/schematics/control/index.js.map +0 -1
  62. package/schematics/control/schema.json +0 -61
  63. package/schematics/group/files/__componentName@dasherize__.component.html.template +0 -5
  64. package/schematics/group/files/__componentName@dasherize__.component.ts.template +0 -29
  65. package/schematics/group/files/__interfaceName@dasherize__.type.ts.template +0 -5
  66. package/schematics/group/index.d.ts +0 -3
  67. package/schematics/group/index.js +0 -11
  68. package/schematics/group/index.js.map +0 -1
  69. package/schematics/group/schema.json +0 -62
  70. package/schematics/ng-add/files/config-registrations/async-validator-registrations.ts.template +0 -4
  71. package/schematics/ng-add/files/config-registrations/component-registrations.ts.template +0 -4
  72. package/schematics/ng-add/files/config-registrations/index.ts.template +0 -3
  73. package/schematics/ng-add/files/config-registrations/validator-registrations.ts.template +0 -4
  74. package/schematics/ng-add/files/helper/block.host-directive.ts.template +0 -6
  75. package/schematics/ng-add/files/helper/control.host-directive.ts.template +0 -6
  76. package/schematics/ng-add/files/helper/group.host-directive.ts.template +0 -6
  77. package/schematics/ng-add/files/helper/index.ts.template +0 -4
  78. package/schematics/ng-add/files/helper/view-provider.ts.template +0 -9
  79. package/schematics/ng-add/files/provider-config/config/__providerConfigFileName__.ts.template +0 -9
  80. package/schematics/ng-add/files/provider-config/inline/__providerConfigFileName__.ts.template +0 -8
  81. package/schematics/ng-add/files/provider-config/token/__providerConfigFileName__.ts.template +0 -4
  82. package/schematics/ng-add/files/schematics-config/__schematicConfigFileName__.json.template +0 -1
  83. package/schematics/ng-add/files/token-registrations/async-validator-registrations.ts.template +0 -8
  84. package/schematics/ng-add/files/token-registrations/component-registrations.ts.template +0 -8
  85. package/schematics/ng-add/files/token-registrations/index.ts.template +0 -3
  86. package/schematics/ng-add/files/token-registrations/validator-registrations.ts.template +0 -8
  87. package/schematics/ng-add/helper.d.ts +0 -11
  88. package/schematics/ng-add/helper.js +0 -198
  89. package/schematics/ng-add/helper.js.map +0 -1
  90. package/schematics/ng-add/index.d.ts +0 -3
  91. package/schematics/ng-add/index.js +0 -68
  92. package/schematics/ng-add/index.js.map +0 -1
  93. package/schematics/ng-add/rules/create-config-registration-files.rule.d.ts +0 -3
  94. package/schematics/ng-add/rules/create-config-registration-files.rule.js +0 -32
  95. package/schematics/ng-add/rules/create-config-registration-files.rule.js.map +0 -1
  96. package/schematics/ng-add/rules/create-formbar-registration-config.rule.d.ts +0 -3
  97. package/schematics/ng-add/rules/create-formbar-registration-config.rule.js +0 -30
  98. package/schematics/ng-add/rules/create-formbar-registration-config.rule.js.map +0 -1
  99. package/schematics/ng-add/rules/create-helper-files.rule.d.ts +0 -6
  100. package/schematics/ng-add/rules/create-helper-files.rule.js +0 -22
  101. package/schematics/ng-add/rules/create-helper-files.rule.js.map +0 -1
  102. package/schematics/ng-add/rules/create-schematics-config.rule.d.ts +0 -3
  103. package/schematics/ng-add/rules/create-schematics-config.rule.js +0 -42
  104. package/schematics/ng-add/rules/create-schematics-config.rule.js.map +0 -1
  105. package/schematics/ng-add/rules/create-token-registration-files.rule.d.ts +0 -3
  106. package/schematics/ng-add/rules/create-token-registration-files.rule.js +0 -32
  107. package/schematics/ng-add/rules/create-token-registration-files.rule.js.map +0 -1
  108. package/schematics/ng-add/rules/include-templates.rule.d.ts +0 -3
  109. package/schematics/ng-add/rules/include-templates.rule.js +0 -11
  110. package/schematics/ng-add/rules/include-templates.rule.js.map +0 -1
  111. package/schematics/ng-add/rules/install-dependencies.rule.d.ts +0 -2
  112. package/schematics/ng-add/rules/install-dependencies.rule.js +0 -12
  113. package/schematics/ng-add/rules/install-dependencies.rule.js.map +0 -1
  114. package/schematics/ng-add/rules/update-app-config.rule.d.ts +0 -3
  115. package/schematics/ng-add/rules/update-app-config.rule.js +0 -49
  116. package/schematics/ng-add/rules/update-app-config.rule.js.map +0 -1
  117. package/schematics/ng-add/rules/update-schematics-config.rule.d.ts +0 -6
  118. package/schematics/ng-add/rules/update-schematics-config.rule.js +0 -28
  119. package/schematics/ng-add/rules/update-schematics-config.rule.js.map +0 -1
  120. package/schematics/ng-add/schema.d.ts +0 -23
  121. package/schematics/ng-add/schema.js +0 -3
  122. package/schematics/ng-add/schema.js.map +0 -1
  123. package/schematics/ng-add/schema.json +0 -81
  124. package/schematics/register/component-info.type.d.ts +0 -11
  125. package/schematics/register/component-info.type.js +0 -3
  126. package/schematics/register/component-info.type.js.map +0 -1
  127. package/schematics/register/discover-components.d.ts +0 -19
  128. package/schematics/register/discover-components.js +0 -267
  129. package/schematics/register/discover-components.js.map +0 -1
  130. package/schematics/register/index.d.ts +0 -3
  131. package/schematics/register/index.js +0 -49
  132. package/schematics/register/index.js.map +0 -1
  133. package/schematics/register/register-components.d.ts +0 -3
  134. package/schematics/register/register-components.js +0 -38
  135. package/schematics/register/register-components.js.map +0 -1
  136. package/schematics/register/schema.d.ts +0 -14
  137. package/schematics/register/schema.js +0 -3
  138. package/schematics/register/schema.js.map +0 -1
  139. package/schematics/register/schema.json +0 -44
  140. package/schematics/shared/ast/decorators.d.ts +0 -9
  141. package/schematics/shared/ast/decorators.js +0 -182
  142. package/schematics/shared/ast/decorators.js.map +0 -1
  143. package/schematics/shared/ast/imports.d.ts +0 -3
  144. package/schematics/shared/ast/imports.js +0 -93
  145. package/schematics/shared/ast/imports.js.map +0 -1
  146. package/schematics/shared/ast/parse.d.ts +0 -3
  147. package/schematics/shared/ast/parse.js +0 -17
  148. package/schematics/shared/ast/parse.js.map +0 -1
  149. package/schematics/shared/ast/registrations.d.ts +0 -22
  150. package/schematics/shared/ast/registrations.js +0 -654
  151. package/schematics/shared/ast/registrations.js.map +0 -1
  152. package/schematics/shared/ast/types.d.ts +0 -3
  153. package/schematics/shared/ast/types.js +0 -58
  154. package/schematics/shared/ast/types.js.map +0 -1
  155. package/schematics/shared/file.d.ts +0 -4
  156. package/schematics/shared/file.js +0 -60
  157. package/schematics/shared/file.js.map +0 -1
  158. package/schematics/shared/helper.d.ts +0 -2
  159. package/schematics/shared/helper.js +0 -29
  160. package/schematics/shared/helper.js.map +0 -1
  161. package/schematics/shared/rules/create-component.rule.d.ts +0 -3
  162. package/schematics/shared/rules/create-component.rule.js +0 -15
  163. package/schematics/shared/rules/create-component.rule.js.map +0 -1
  164. package/schematics/shared/rules/register-control.rule.d.ts +0 -3
  165. package/schematics/shared/rules/register-control.rule.js +0 -30
  166. package/schematics/shared/rules/register-control.rule.js.map +0 -1
  167. package/schematics/shared/rules/register-type-map.rule.d.ts +0 -3
  168. package/schematics/shared/rules/register-type-map.rule.js +0 -46
  169. package/schematics/shared/rules/register-type-map.rule.js.map +0 -1
  170. package/schematics/shared/rules/register-type-token.rule.d.ts +0 -3
  171. package/schematics/shared/rules/register-type-token.rule.js +0 -49
  172. package/schematics/shared/rules/register-type-token.rule.js.map +0 -1
  173. package/schematics/shared/rules/scaffold-and-register.rule.d.ts +0 -3
  174. package/schematics/shared/rules/scaffold-and-register.rule.js +0 -134
  175. package/schematics/shared/rules/scaffold-and-register.rule.js.map +0 -1
  176. package/schematics/shared/schema.d.ts +0 -32
  177. package/schematics/shared/schema.js +0 -3
  178. package/schematics/shared/schema.js.map +0 -1
  179. package/schematics/tests/generators.spec.d.ts +0 -1
  180. package/schematics/tests/generators.spec.js +0 -450
  181. package/schematics/tests/generators.spec.js.map +0 -1
  182. package/schematics/tests/helper.d.ts +0 -20
  183. package/schematics/tests/helper.js +0 -275
  184. package/schematics/tests/helper.js.map +0 -1
  185. package/schematics/tests/ng-add.spec.d.ts +0 -1
  186. package/schematics/tests/ng-add.spec.js +0 -380
  187. package/schematics/tests/ng-add.spec.js.map +0 -1
  188. package/schematics/tests/register.spec.d.ts +0 -1
  189. package/schematics/tests/register.spec.js +0 -340
  190. package/schematics/tests/register.spec.js.map +0 -1
  191. package/schematics/tests/workspace-setup.d.ts +0 -21
  192. package/schematics/tests/workspace-setup.js +0 -256
  193. package/schematics/tests/workspace-setup.js.map +0 -1
  194. package/shared/ast.d.ts +0 -10
  195. package/shared/ast.js +0 -93
  196. package/shared/ast.js.map +0 -1
  197. package/shared/constants.d.ts +0 -16
  198. package/shared/constants.js +0 -20
  199. package/shared/constants.js.map +0 -1
  200. package/shared/shared-config.type.d.ts +0 -20
  201. package/shared/shared-config.type.js +0 -3
  202. package/shared/shared-config.type.js.map +0 -1
package/README.md CHANGED
@@ -1,40 +1,3 @@
1
- # Formbar
1
+ # @ngx-formbar/core
2
2
 
3
- ![NPM Version](https://img.shields.io/npm/v/@ngx-formbar/core?logo=npm&label=NPM%20Version)
4
- ![NPM Downloads](https://img.shields.io/npm/dw/@ngx-formbar/core?label=Downloads)
5
-
6
- A highly flexible framework for generating declarative reactive forms, based on a configuration.
7
-
8
- This package provides a framework for creating Angular Reactive Forms, based on a configuration. This configuration can come from a server in the form of JSON or directly from an object written in TypeScript. It is as close to Angular as possible, to give you the most flexibility, while still taking care of the heavy lifting.
9
-
10
- > [!TIP]
11
- > The full documentation can be found on [ngx-formbar.net](https://docs.ngx-formbar.net)
12
-
13
- ## Current State
14
-
15
- > [!WARNING]
16
- > This project is still in the making and not ready to be used in production!
17
-
18
- ## Installation
19
-
20
- **Primary (recommended)**
21
-
22
- Install and configure via Angular schematic:
23
-
24
- ```bash
25
- ng add @ngx-formbar/core
26
- ```
27
-
28
- This will install the package, update your project files, and configure the Formbar provider.
29
-
30
- **Manual**
31
-
32
- ```bash
33
- npm install @ngx-formbar/core
34
- ```
35
-
36
- For manual setup, you must provide Formbar in your `app.config.ts` or `AppModule`.
37
-
38
- ## Compatibility
39
-
40
- At this time this package is only compatible with Angular 19.2.1 or above.
3
+ See the full documentation at [docs.ngx-formbar.net](https://docs.ngx-formbar.net).