@rxap/form-system 16.0.0-dev.1 → 16.0.0-dev.11

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 (52) hide show
  1. package/CHANGELOG.md +344 -0
  2. package/LICENSE +621 -21
  3. package/LICENSE.md +621 -0
  4. package/README.md +7 -22
  5. package/esm2022/index.mjs +4 -2
  6. package/esm2022/lib/control-data-source.mjs +7 -8
  7. package/esm2022/lib/control-with-data-source.mjs +1 -1
  8. package/esm2022/lib/decorators/metadata-keys.mjs +1 -1
  9. package/esm2022/lib/decorators/use-component.mjs +2 -2
  10. package/esm2022/lib/decorators/use-data-source.mjs +6 -3
  11. package/esm2022/lib/decorators/use-form-component.mjs +2 -2
  12. package/esm2022/lib/directives/control-hide-show.directive.mjs +13 -26
  13. package/esm2022/lib/directives/form-directives.module.mjs +17 -14
  14. package/esm2022/lib/directives/input-select-options.directive.mjs +33 -44
  15. package/esm2022/lib/directives/options-from-remote-method.directive.mjs +131 -0
  16. package/esm2022/lib/error.mjs +1 -1
  17. package/esm2022/lib/form-context-from-activated-route.factory.mjs +4 -0
  18. package/esm2022/lib/form-system-control.directive.mjs +15 -27
  19. package/esm2022/lib/mixins/extract-control-from-parent.mixin.mjs +5 -3
  20. package/esm2022/lib/mixins/extract-control.mixin.mjs +5 -3
  21. package/esm2022/lib/mixins/extract-data-sources.mixin.mjs +2 -2
  22. package/esm2022/lib/mixins/extract-form-definition.mixin.mjs +1 -1
  23. package/esm2022/lib/mixins/extract-options-data-source.mixin.mjs +9 -10
  24. package/esm2022/lib/submit-context-form-adapter.factory.mjs +32 -0
  25. package/esm2022/lib/validators/is-equal-to.mjs +23 -35
  26. package/esm2022/lib/validators/is-selectable-value.directive.mjs +21 -29
  27. package/esm2022/rxap-form-system.mjs +1 -1
  28. package/fesm2022/rxap-form-system.mjs +394 -287
  29. package/fesm2022/rxap-form-system.mjs.map +1 -1
  30. package/index.d.ts +3 -1
  31. package/lib/directives/control-hide-show.directive.d.ts +2 -7
  32. package/lib/directives/form-directives.module.d.ts +1 -1
  33. package/lib/directives/input-select-options.directive.d.ts +6 -11
  34. package/lib/directives/options-from-remote-method.directive.d.ts +38 -0
  35. package/lib/form-context-from-activated-route.factory.d.ts +2 -0
  36. package/lib/form-system-control.directive.d.ts +2 -2
  37. package/lib/mixins/extract-control.mixin.d.ts +2 -2
  38. package/lib/mixins/extract-form-definition.mixin.d.ts +1 -1
  39. package/lib/mixins/extract-options-data-source.mixin.d.ts +6 -7
  40. package/lib/submit-context-form-adapter.factory.d.ts +13 -0
  41. package/lib/validators/is-equal-to.d.ts +1 -6
  42. package/lib/validators/is-selectable-value.directive.d.ts +1 -6
  43. package/package.json +74 -53
  44. package/theme.css +1 -0
  45. package/collection.json +0 -10
  46. package/esm2022/lib/form-system.module.mjs +0 -18
  47. package/lib/form-system.module.d.ts +0 -7
  48. package/migration.json +0 -4
  49. package/src/schematics/ng-add/index.d.ts +0 -2
  50. package/src/schematics/ng-add/index.js +0 -8
  51. package/src/schematics/ng-add/index.js.map +0 -1
  52. package/src/schematics/ng-add/schema.json +0 -7
package/package.json CHANGED
@@ -1,67 +1,88 @@
1
1
  {
2
2
  "name": "@rxap/form-system",
3
- "version": "16.0.0-dev.1",
4
- "private": false,
5
- "author": "Merzough Münker",
6
- "homepage": "https://gitlab.com/rxap/packages/libs/form-system",
7
- "repository": "git@gitlab.com:rxap/packages.git",
3
+ "version": "16.0.0-dev.11",
4
+ "peerDependencies": {
5
+ "@angular/core": "^16.1.4",
6
+ "@angular/forms": "^16.1.4",
7
+ "@angular/material": "^16.1.4",
8
+ "@angular/router": "^16.1.4",
9
+ "@rxap/data-source": "^16.0.0-dev.10",
10
+ "@rxap/definition": "^16.0.0-dev.9",
11
+ "@rxap/forms": "^16.0.0-dev.9",
12
+ "@rxap/mixin": "^16.0.0-dev.6",
13
+ "@rxap/open-api": "^16.0.0-dev.11",
14
+ "@rxap/reflect-metadata": "^1.0.1-dev.2",
15
+ "@rxap/remote-method": "^16.0.0-dev.9",
16
+ "@rxap/utilities": "^16.0.0-dev.7",
17
+ "rxjs": "^7.8.0"
18
+ },
19
+ "sideEffects": false,
20
+ "dependencies": {
21
+ "tslib": "2.5.3"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public",
25
+ "directory": "../../../dist/packages/angular/form-system"
26
+ },
8
27
  "keywords": [
9
28
  "rxap",
10
- "forms",
11
29
  "angular",
30
+ "ngx",
31
+ "packages",
12
32
  "form-system"
13
33
  ],
34
+ "homepage": "https:/gitlab.com/rxap/packages/packages/angular/form-system",
14
35
  "bugs": {
15
36
  "url": "https://gitlab.com/rxap/packages/-/issues",
16
37
  "email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
17
38
  },
18
- "description": "Provides the FormSystem concept for RxAP.",
19
- "license": "MIT",
20
- "peerDependencies": {
21
- "@angular-devkit/schematics": "^15.0.3",
22
- "@angular/cdk": "^16.0.1",
23
- "@angular/common": "^16.0.2",
24
- "@angular/core": "^16.0.2",
25
- "@angular/forms": "^16.0.2",
26
- "@angular/material": "^16.0.1",
27
- "@angular/platform-browser": "^16.0.2",
28
- "@angular/platform-browser-dynamic": "^16.0.2",
29
- "@angular/router": "^16.0.2",
30
- "@rxap/data-source": "^16.0.0-dev.1",
31
- "@rxap/definition": "^16.0.0-dev.1",
32
- "@rxap/directives": "^16.0.0-dev.1",
33
- "@rxap/forms": "^16.0.0-dev.1",
34
- "@rxap/mixin": "^16.0.0-dev.1",
35
- "@rxap/services": "^16.0.0-dev.1",
36
- "@rxap/utilities": "^16.0.0-dev.1",
37
- "reflect-metadata": "^0.1.13",
38
- "rxjs": "^6.6.0"
39
+ "license": "GPL-3.0-or-later",
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "https://gitlab.com/rxap/packages.git",
43
+ "directory": "packages/angular/form-system"
44
+ },
45
+ "author": {
46
+ "name": "Merzough Münker",
47
+ "email": "mmuenker@digitaix.com"
39
48
  },
40
- "schematics": "./collection.json",
41
- "ng-update": {
42
- "migrations": "./migration.json",
49
+ "nx-migrations": {
43
50
  "packageGroup": [
44
- "@rxap/data-source",
45
- "@rxap/definition",
46
- "@rxap/directives",
47
- "@rxap/form-system",
48
- "@rxap/forms",
49
- "@rxap/mixin",
50
- "@rxap/services",
51
- "@rxap/utilities"
51
+ {
52
+ "package": "@rxap/data-source",
53
+ "version": "16.0.0-dev.10"
54
+ },
55
+ {
56
+ "package": "@rxap/definition",
57
+ "version": "16.0.0-dev.9"
58
+ },
59
+ {
60
+ "package": "@rxap/forms",
61
+ "version": "16.0.0-dev.9"
62
+ },
63
+ {
64
+ "package": "@rxap/mixin",
65
+ "version": "16.0.0-dev.6"
66
+ },
67
+ {
68
+ "package": "@rxap/open-api",
69
+ "version": "16.0.0-dev.11"
70
+ },
71
+ {
72
+ "package": "@rxap/reflect-metadata",
73
+ "version": "1.0.1-dev.2"
74
+ },
75
+ {
76
+ "package": "@rxap/remote-method",
77
+ "version": "16.0.0-dev.9"
78
+ },
79
+ {
80
+ "package": "@rxap/utilities",
81
+ "version": "16.0.0-dev.7"
82
+ }
52
83
  ]
53
84
  },
54
- "publishConfig": {
55
- "directory": "../../dist/libs/form-system",
56
- "access": "public"
57
- },
58
- "ng-add": {
59
- "save": "dependencies"
60
- },
61
- "dependencies": {
62
- "@rxap/schematics-utilities": "^16.0.0-dev.1",
63
- "tslib": "^2.3.1"
64
- },
85
+ "gitHead": "372993ea6042370db6a054b3ccda10a4499da154",
65
86
  "module": "fesm2022/rxap-form-system.mjs",
66
87
  "typings": "index.d.ts",
67
88
  "exports": {
@@ -73,7 +94,7 @@
73
94
  "esm2022": "./esm2022/rxap-form-system.mjs",
74
95
  "esm": "./esm2022/rxap-form-system.mjs",
75
96
  "default": "./fesm2022/rxap-form-system.mjs"
76
- }
77
- },
78
- "sideEffects": false
79
- }
97
+ },
98
+ "./theme": "./theme.css"
99
+ }
100
+ }
package/theme.css ADDED
@@ -0,0 +1 @@
1
+ .container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.contents{display:contents}.hidden{display:none}.w-full{width:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-4{gap:1rem}.gap-8{gap:2rem}.p-10{padding:2.5rem}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.invert{--tw-invert:invert(100%)}.filter,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}
package/collection.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "schematics": {
3
- "ng-add": {
4
- "description": "Setup the package @rxap/form-system for the workspace.",
5
- "factory": "./src/schematics/ng-add/index",
6
- "schema": "./src/schematics/ng-add/schema.json"
7
- }
8
- },
9
- "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json"
10
- }
@@ -1,18 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { FormSystemControlDirective } from './form-system-control.directive';
3
- import * as i0 from "@angular/core";
4
- class FormSystemModule {
5
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: FormSystemModule, declarations: [FormSystemControlDirective], exports: [FormSystemControlDirective] }); }
7
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSystemModule }); }
8
- }
9
- export { FormSystemModule };
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FormSystemModule, decorators: [{
11
- type: NgModule,
12
- args: [{
13
- declarations: [FormSystemControlDirective],
14
- exports: [FormSystemControlDirective],
15
- imports: []
16
- }]
17
- }] });
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1zeXN0ZW0ubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9mb3JtLXN5c3RlbS9zcmMvbGliL2Zvcm0tc3lzdGVtLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDOztBQUc3RSxNQUthLGdCQUFnQjs4R0FBaEIsZ0JBQWdCOytHQUFoQixnQkFBZ0IsaUJBSlgsMEJBQTBCLGFBQzFCLDBCQUEwQjsrR0FHL0IsZ0JBQWdCOztTQUFoQixnQkFBZ0I7MkZBQWhCLGdCQUFnQjtrQkFMNUIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBRSwwQkFBMEIsQ0FBRTtvQkFDNUMsT0FBTyxFQUFPLENBQUUsMEJBQTBCLENBQUU7b0JBQzVDLE9BQU8sRUFBTyxFQUFFO2lCQUNqQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBGb3JtU3lzdGVtQ29udHJvbERpcmVjdGl2ZSB9IGZyb20gJy4vZm9ybS1zeXN0ZW0tY29udHJvbC5kaXJlY3RpdmUnO1xuXG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogWyBGb3JtU3lzdGVtQ29udHJvbERpcmVjdGl2ZSBdLFxuICBleHBvcnRzOiAgICAgIFsgRm9ybVN5c3RlbUNvbnRyb2xEaXJlY3RpdmUgXSxcbiAgaW1wb3J0czogICAgICBbXVxufSlcbmV4cG9ydCBjbGFzcyBGb3JtU3lzdGVtTW9kdWxlIHt9XG4iXX0=
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./form-system-control.directive";
3
- export declare class FormSystemModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<FormSystemModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormSystemModule, [typeof i1.FormSystemControlDirective], never, [typeof i1.FormSystemControlDirective]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<FormSystemModule>;
7
- }
package/migration.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "schematics": {},
3
- "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json"
4
- }
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export default function (): Rule;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schematics_utilities_1 = require("@rxap/schematics-utilities");
4
- function default_1() {
5
- return (0, schematics_utilities_1.InstallPeerDependencies)();
6
- }
7
- exports.default = default_1;
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/form-system/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,qEAAqE;AAErE;IACE,OAAO,IAAA,8CAAuB,GAAE,CAAC;AACnC,CAAC;AAFD,4BAEC"}
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "form-system-ng-add",
4
- "type": "object",
5
- "properties": {},
6
- "required": []
7
- }