@rxap/schematic-angular 16.2.0-dev.21 → 16.2.0-dev.22

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 (37) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/collection.json +5 -0
  4. package/package.json +7 -7
  5. package/src/lib/form/control/autocomplete-table-select-form-control.d.ts +6 -0
  6. package/src/lib/form/control/autocomplete-table-select-form-control.js +34 -0
  7. package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -0
  8. package/src/lib/form/control/form-control-kind.d.ts +2 -1
  9. package/src/lib/form/control/form-control-kind.js +1 -0
  10. package/src/lib/form/control/form-control-kind.js.map +1 -1
  11. package/src/lib/form/control/form-control.d.ts +1 -1
  12. package/src/lib/form/control/form-control.js +3 -0
  13. package/src/lib/form/control/form-control.js.map +1 -1
  14. package/src/schema.json +122 -0
  15. package/src/schematic-input.schema.json +19 -0
  16. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +83 -0
  17. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +83 -0
  18. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +83 -0
  19. package/src/schematics/autocomplete-table-select-form-control.schema.json +96 -0
  20. package/src/schematics/data-grid-component/schema.json +83 -0
  21. package/src/schematics/form/control/autocomplete-table-select-form-control/index.d.ts +10 -0
  22. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +247 -0
  23. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -0
  24. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.d.ts +4 -0
  25. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +453 -0
  26. package/src/schematics/form/control/autocomplete-table-select-form-control/template.schema.json +39 -0
  27. package/src/schematics/form/form-array/schema.json +83 -0
  28. package/src/schematics/form/form-component/schema.json +83 -0
  29. package/src/schematics/form/form-control/schema.json +83 -0
  30. package/src/schematics/form/form-definition/schema.json +83 -0
  31. package/src/schematics/form/form-group/schema.json +83 -0
  32. package/src/schematics/form-control.schema.json +6 -0
  33. package/src/schematics/table/action/form-table-action/schema.json +83 -0
  34. package/src/schematics/table/header-button/form-table-header-button/schema.json +83 -0
  35. package/src/schematics/table/table-component/schema.json +83 -0
  36. package/src/schematics/table/tree-table-component/schema.json +83 -0
  37. package/src/template.schema.json +6 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [16.2.0-dev.22](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.21...@rxap/schematic-angular@16.2.0-dev.22) (2024-03-04)
7
+
8
+ ### Features
9
+
10
+ - add autocomplete table select form control ([495df61](https://gitlab.com/rxap/packages/commit/495df61d661c2bce3fb2df185f1a3f7ac7fd12bc))
11
+
6
12
  # [16.2.0-dev.21](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.20...@rxap/schematic-angular@16.2.0-dev.21) (2024-03-04)
7
13
 
8
14
  ### Bug Fixes
package/README.md CHANGED
@@ -17,5 +17,5 @@ yarn add @rxap/schematic-angular
17
17
  ```
18
18
  **Install peer dependencies:**
19
19
  ```bash
20
- yarn add @angular-devkit/core@^16.1.4 @angular-devkit/schematics@^16.1.4 @rxap/schematics-ts-morph@^16.1.0-dev.9 @rxap/schematics-utilities@^16.0.1-dev.0 @rxap/ts-morph@^1.1.0-dev.9 @rxap/utilities@^16.1.0-dev.5 colors@^1.4.0 handlebars@^4.7.7 ts-morph@^18.0.0 tslib@2.6.2
20
+ yarn add @angular-devkit/core@^16.1.4 @angular-devkit/schematics@^16.1.4 @rxap/schematics-ts-morph@^16.1.0-dev.10 @rxap/schematics-utilities@^16.0.1-dev.0 @rxap/ts-morph@^1.1.0-dev.10 @rxap/utilities@^16.1.0-dev.5 colors@^1.4.0 handlebars@^4.7.7 ts-morph@^18.0.0 tslib@2.6.2
21
21
  ```
package/collection.json CHANGED
@@ -85,6 +85,11 @@
85
85
  "factory": "./src/schematics/form/control/table-select-form-control/index",
86
86
  "description": "The table-select-form-control schematic"
87
87
  },
88
+ "autocomplete-table-select-form-control": {
89
+ "schema": "./src/schematics/form/control/autocomplete-table-select-form-control/schema.json",
90
+ "factory": "./src/schematics/form/control/autocomplete-table-select-form-control/index",
91
+ "description": "The autocomplete-table-select-form-control schematic"
92
+ },
88
93
  "form-control": {
89
94
  "schema": "./src/schematics/form/form-control/schema.json",
90
95
  "factory": "./src/schematics/form/form-control/index",
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "16.2.0-dev.21",
2
+ "version": "16.2.0-dev.22",
3
3
  "name": "@rxap/schematic-angular",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "dependencies": {
@@ -12,15 +12,15 @@
12
12
  "peerDependencies": {
13
13
  "@angular-devkit/core": "^16.1.4",
14
14
  "@angular-devkit/schematics": "^16.1.4",
15
- "@rxap/schematics-ts-morph": "^16.1.0-dev.9",
15
+ "@rxap/schematics-ts-morph": "^16.1.0-dev.10",
16
16
  "@rxap/schematics-utilities": "^16.0.1-dev.0",
17
- "@rxap/ts-morph": "^1.1.0-dev.9",
17
+ "@rxap/ts-morph": "^1.1.0-dev.10",
18
18
  "@rxap/utilities": "^16.1.0-dev.5",
19
19
  "colors": "^1.4.0",
20
20
  "handlebars": "^4.7.7",
21
21
  "ts-morph": "^18.0.0",
22
22
  "tslib": "2.6.2",
23
- "@rxap/node-utilities": "1.1.0",
23
+ "@rxap/node-utilities": "1.1.1-dev.0",
24
24
  "@rxap/workspace-ts-morph": "16.0.2-dev.0",
25
25
  "@rxap/workspace-utilities": "16.0.1",
26
26
  "util": "0.12.5"
@@ -45,7 +45,7 @@
45
45
  "packageGroup": [
46
46
  {
47
47
  "package": "@rxap/schematics-ts-morph",
48
- "version": "16.1.0-dev.9"
48
+ "version": "16.1.0-dev.10"
49
49
  },
50
50
  {
51
51
  "package": "@rxap/schematics-utilities",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  {
55
55
  "package": "@rxap/ts-morph",
56
- "version": "1.1.0-dev.9"
56
+ "version": "1.1.0-dev.10"
57
57
  },
58
58
  {
59
59
  "package": "@rxap/utilities",
@@ -76,7 +76,7 @@
76
76
  },
77
77
  "schematics": "./collection.json",
78
78
  "type": "commonjs",
79
- "gitHead": "1cbac86e12b74f4ffffb4b4b9b65f2bdfdb47384",
79
+ "gitHead": "97dbbf5e0974146d5a94d1c7333c07546d811bfa",
80
80
  "main": "./src/index.js",
81
81
  "types": "./src/index.d.ts"
82
82
  }
@@ -0,0 +1,6 @@
1
+ import { NormalizedBaseFormControl } from './base-form-control';
2
+ import { NormalizedTableSelectFormControl, TableSelectFormControl } from './table-select-form-control';
3
+ export type AutocompleteTableSelectFormControl = TableSelectFormControl;
4
+ export type NormalizedAutocompleteTableSelectFormControl = NormalizedTableSelectFormControl;
5
+ export declare function IsNormalizedAutocompleteTableSelectFormControl(template: NormalizedBaseFormControl): template is NormalizedAutocompleteTableSelectFormControl;
6
+ export declare function NormalizeAutocompleteTableSelectFormControl(control: AutocompleteTableSelectFormControl): NormalizedAutocompleteTableSelectFormControl;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NormalizeAutocompleteTableSelectFormControl = exports.IsNormalizedAutocompleteTableSelectFormControl = void 0;
4
+ const ts_morph_1 = require("@rxap/ts-morph");
5
+ const utilities_1 = require("@rxap/utilities");
6
+ const backend_types_1 = require("../../backend-types");
7
+ const form_control_kind_1 = require("./form-control-kind");
8
+ const form_field_form_control_1 = require("./form-field-form-control");
9
+ const table_select_form_control_1 = require("./table-select-form-control");
10
+ function IsNormalizedAutocompleteTableSelectFormControl(template) {
11
+ return template.kind === form_control_kind_1.FormControlKinds.AUTOCOMPLETE_TABLE_SELECT;
12
+ }
13
+ exports.IsNormalizedAutocompleteTableSelectFormControl = IsNormalizedAutocompleteTableSelectFormControl;
14
+ function NormalizeAutocompleteTableSelectFormControl(control) {
15
+ var _a, _b, _c, _d, _e;
16
+ const importList = (_a = control.importList) !== null && _a !== void 0 ? _a : [];
17
+ (0, utilities_1.CoerceArrayItems)(importList, [], (a, b) => a.name === b.name);
18
+ if (!((_b = control.columnList) === null || _b === void 0 ? void 0 : _b.length)) {
19
+ throw new Error('The column list must not be empty');
20
+ }
21
+ const propertyList = (0, ts_morph_1.NormalizeDataPropertyList)(control.propertyList);
22
+ const toDisplay = (0, table_select_form_control_1.NormalizeTableSelectToFunction)(control.toDisplay, control.columnList, 'string');
23
+ const toValue = (0, table_select_form_control_1.NormalizeTableSelectToFunction)(control.toValue, control.columnList);
24
+ (0, utilities_1.CoerceArrayItems)(propertyList, [toDisplay.property, toValue.property], (a, b) => a.name === b.name);
25
+ const columnList = control.columnList.map(table_select_form_control_1.NormalizeTableSelectColumn);
26
+ (0, utilities_1.CoerceArrayItems)(propertyList, columnList, (a, b) => a.name === b.name);
27
+ (_c = control.type) !== null && _c !== void 0 ? _c : (control.type = toValue.property.type);
28
+ return Object.freeze(Object.assign(Object.assign({}, (0, form_field_form_control_1.NormalizeFormFieldFormControl)(control, importList)), { resolver: control.resolver ? { upstream: (0, ts_morph_1.NormalizeUpstreamOptions)(control.resolver.upstream) } : null, kind: form_control_kind_1.FormControlKinds.TABLE_SELECT, backend: (_d = control.backend) !== null && _d !== void 0 ? _d : backend_types_1.BackendTypes.NONE, title: (_e = control.title) !== null && _e !== void 0 ? _e : null, columnList,
29
+ toDisplay,
30
+ toValue,
31
+ propertyList, upstream: (0, ts_morph_1.NormalizeUpstreamOptions)(control.upstream) }));
32
+ }
33
+ exports.NormalizeAutocompleteTableSelectFormControl = NormalizeAutocompleteTableSelectFormControl;
34
+ //# sourceMappingURL=autocomplete-table-select-form-control.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autocomplete-table-select-form-control.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/lib/form/control/autocomplete-table-select-form-control.ts"],"names":[],"mappings":";;;AAAA,6CAGwB;AACxB,+CAAmD;AACnD,uDAAmD;AAGnD,2DAAuD;AACvD,uEAA0E;AAC1E,2EAKqC;AAOrC,SAAgB,8CAA8C,CAAC,QAAmC;IAChG,OAAO,QAAQ,CAAC,IAAI,KAAK,oCAAgB,CAAC,yBAAyB,CAAC;AACtE,CAAC;AAFD,wGAEC;AAED,SAAgB,2CAA2C,CACzD,OAA2C;;IAE3C,MAAM,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,EAAE,CAAC;IAC5C,IAAA,4BAAgB,EAAC,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9D,IAAI,CAAC,CAAA,MAAA,OAAO,CAAC,UAAU,0CAAE,MAAM,CAAA,EAAE;QAC/B,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;KACtD;IACD,MAAM,YAAY,GAAG,IAAA,oCAAyB,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACrE,MAAM,SAAS,GAAG,IAAA,0DAA8B,EAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAClG,MAAM,OAAO,GAAG,IAAA,0DAA8B,EAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACpF,IAAA,4BAAgB,EAAC,YAAY,EAAE,CAAE,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC;IACtG,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,sDAA0B,CAAC,CAAC;IACtE,IAAA,4BAAgB,EAAC,YAAY,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC;IACxE,MAAA,OAAO,CAAC,IAAI,oCAAZ,OAAO,CAAC,IAAI,GAAK,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAC;IACvC,OAAO,MAAM,CAAC,MAAM,iCACf,IAAA,uDAA6B,EAAC,OAAO,EAAE,UAAU,CAAC,KACrD,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAA,mCAAwB,EAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EACrG,IAAI,EAAE,oCAAgB,CAAC,YAAY,EACnC,OAAO,EAAE,MAAA,OAAO,CAAC,OAAO,mCAAI,4BAAY,CAAC,IAAI,EAC7C,KAAK,EAAE,MAAA,OAAO,CAAC,KAAK,mCAAI,IAAI,EAC5B,UAAU;QACV,SAAS;QACT,OAAO;QACP,YAAY,EACZ,QAAQ,EAAE,IAAA,mCAAwB,EAAC,OAAO,CAAC,QAAQ,CAAC,IACpD,CAAC;AACL,CAAC;AA3BD,kGA2BC"}
@@ -4,5 +4,6 @@ export declare enum FormControlKinds {
4
4
  SELECT = "select",
5
5
  CHECKBOX = "checkbox",
6
6
  SLIDE_TOGGLE = "slide-toggle",
7
- TABLE_SELECT = "table-select"
7
+ TABLE_SELECT = "table-select",
8
+ AUTOCOMPLETE_TABLE_SELECT = "autocomplete-table-select"
8
9
  }
@@ -9,5 +9,6 @@ var FormControlKinds;
9
9
  FormControlKinds["CHECKBOX"] = "checkbox";
10
10
  FormControlKinds["SLIDE_TOGGLE"] = "slide-toggle";
11
11
  FormControlKinds["TABLE_SELECT"] = "table-select";
12
+ FormControlKinds["AUTOCOMPLETE_TABLE_SELECT"] = "autocomplete-table-select";
12
13
  })(FormControlKinds || (exports.FormControlKinds = FormControlKinds = {}));
13
14
  //# sourceMappingURL=form-control-kind.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-control-kind.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/lib/form/control/form-control-kind.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,iDAA6B,CAAA;IAC7B,iDAA6B,CAAA;AAC/B,CAAC,EAPW,gBAAgB,gCAAhB,gBAAgB,QAO3B"}
1
+ {"version":3,"file":"form-control-kind.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/lib/form/control/form-control-kind.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,iDAA6B,CAAA;IAC7B,iDAA6B,CAAA;IAC7B,2EAAuD,CAAA;AACzD,CAAC,EARW,gBAAgB,gCAAhB,gBAAgB,QAQ3B"}
@@ -1,7 +1,7 @@
1
1
  import { AbstractControlRolls } from '../abstract-control';
2
+ import { Control, NormalizedControl } from '../control';
2
3
  import { BaseFormControl, NormalizedBaseFormControl } from './base-form-control';
3
4
  import { CheckboxFormControl, NormalizedCheckboxFormControl } from './checkbox-form-control';
4
- import { Control, NormalizedControl } from '../control';
5
5
  import { FormFieldFormControl, NormalizedFormFieldFormControl } from './form-field-form-control';
6
6
  import { InputFormControl, NormalizedInputFormControl } from './input-form-control';
7
7
  import { NormalizedSelectFormControl, SelectFormControl } from './select-form-control';
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NormalizeFormControl = exports.IsNormalizedFormControl = exports.IsFormControl = void 0;
4
4
  const abstract_control_1 = require("../abstract-control");
5
+ const autocomplete_table_select_form_control_1 = require("./autocomplete-table-select-form-control");
5
6
  const base_form_control_1 = require("./base-form-control");
6
7
  const checkbox_form_control_1 = require("./checkbox-form-control");
7
8
  const form_control_kind_1 = require("./form-control-kind");
@@ -31,6 +32,8 @@ function NormalizeFormControl(control) {
31
32
  return (0, slide_toggle_form_control_1.NormalizeSlideToggleFormControl)(control);
32
33
  case form_control_kind_1.FormControlKinds.TABLE_SELECT:
33
34
  return (0, table_select_form_control_1.NormalizeTableSelectFormControl)(control);
35
+ case form_control_kind_1.FormControlKinds.AUTOCOMPLETE_TABLE_SELECT:
36
+ return (0, autocomplete_table_select_form_control_1.NormalizeAutocompleteTableSelectFormControl)(control);
34
37
  case form_control_kind_1.FormControlKinds.DEFAULT:
35
38
  default:
36
39
  return (0, base_form_control_1.NormalizeBaseFormControl)(control);
@@ -1 +1 @@
1
- {"version":3,"file":"form-control.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/lib/form/control/form-control.ts"],"names":[],"mappings":";;;AAAA,0DAA2D;AAC3D,2DAI6B;AAC7B,mEAIiC;AAKjC,2DAAuD;AAKvD,6DAI8B;AAC9B,+DAI+B;AAC/B,2EAIqC;AACrC,2EAIqC;AAMrC,SAAgB,aAAa,CAAC,OAAgB;IAC5C,OAAO,OAAO,CAAC,IAAI,KAAK,uCAAoB,CAAC,OAAO,CAAC;AACvD,CAAC;AAFD,sCAEC;AAED,SAAgB,uBAAuB,CAAC,OAA0B;IAChE,OAAO,OAAO,CAAC,IAAI,KAAK,uCAAoB,CAAC,OAAO,CAAC;AACvD,CAAC;AAFD,0DAEC;AAED,SAAgB,oBAAoB,CAAC,OAAoB;;IACvD,MAAM,IAAI,GAAG,MAAA,OAAO,CAAC,IAAI,mCAAI,oCAAgB,CAAC,OAAO,CAAC;IACtD,QAAQ,IAAI,EAAE;QACZ,KAAK,oCAAgB,CAAC,KAAK;YACzB,OAAO,IAAA,8CAAyB,EAAC,OAAO,CAAC,CAAC;QAC5C,KAAK,oCAAgB,CAAC,MAAM;YAC1B,OAAO,IAAA,gDAA0B,EAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,oCAAgB,CAAC,QAAQ;YAC5B,OAAO,IAAA,oDAA4B,EAAC,OAAO,CAAC,CAAC;QAC/C,KAAK,oCAAgB,CAAC,YAAY;YAChC,OAAO,IAAA,2DAA+B,EAAC,OAAO,CAAC,CAAC;QAClD,KAAK,oCAAgB,CAAC,YAAY;YAChC,OAAO,IAAA,2DAA+B,EAAC,OAAO,CAAC,CAAC;QAClD,KAAK,oCAAgB,CAAC,OAAO,CAAC;QAC9B;YACE,OAAO,IAAA,4CAAwB,EAAC,OAAO,CAAC,CAAC;KAC5C;AACH,CAAC;AAjBD,oDAiBC"}
1
+ {"version":3,"file":"form-control.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/lib/form/control/form-control.ts"],"names":[],"mappings":";;;AAAA,0DAA2D;AAK3D,qGAAuG;AACvG,2DAI6B;AAC7B,mEAIiC;AACjC,2DAAuD;AAKvD,6DAI8B;AAC9B,+DAI+B;AAC/B,2EAIqC;AACrC,2EAIqC;AAMrC,SAAgB,aAAa,CAAC,OAAgB;IAC5C,OAAO,OAAO,CAAC,IAAI,KAAK,uCAAoB,CAAC,OAAO,CAAC;AACvD,CAAC;AAFD,sCAEC;AAED,SAAgB,uBAAuB,CAAC,OAA0B;IAChE,OAAO,OAAO,CAAC,IAAI,KAAK,uCAAoB,CAAC,OAAO,CAAC;AACvD,CAAC;AAFD,0DAEC;AAED,SAAgB,oBAAoB,CAAC,OAAoB;;IACvD,MAAM,IAAI,GAAG,MAAA,OAAO,CAAC,IAAI,mCAAI,oCAAgB,CAAC,OAAO,CAAC;IACtD,QAAQ,IAAI,EAAE;QACZ,KAAK,oCAAgB,CAAC,KAAK;YACzB,OAAO,IAAA,8CAAyB,EAAC,OAAO,CAAC,CAAC;QAC5C,KAAK,oCAAgB,CAAC,MAAM;YAC1B,OAAO,IAAA,gDAA0B,EAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,oCAAgB,CAAC,QAAQ;YAC5B,OAAO,IAAA,oDAA4B,EAAC,OAAO,CAAC,CAAC;QAC/C,KAAK,oCAAgB,CAAC,YAAY;YAChC,OAAO,IAAA,2DAA+B,EAAC,OAAO,CAAC,CAAC;QAClD,KAAK,oCAAgB,CAAC,YAAY;YAChC,OAAO,IAAA,2DAA+B,EAAC,OAAO,CAAC,CAAC;QAClD,KAAK,oCAAgB,CAAC,yBAAyB;YAC7C,OAAO,IAAA,oFAA2C,EAAC,OAAO,CAAC,CAAC;QAC9D,KAAK,oCAAgB,CAAC,OAAO,CAAC;QAC9B;YACE,OAAO,IAAA,4CAAwB,EAAC,OAAO,CAAC,CAAC;KAC5C;AACH,CAAC;AAnBD,oDAmBC"}
package/src/schema.json CHANGED
@@ -467,6 +467,109 @@
467
467
  }
468
468
  ]
469
469
  },
470
+ "autocompleteTableSelectFormControl": {
471
+ "allOf": [
472
+ {
473
+ "$ref": "#/definitions/baseFormControl"
474
+ },
475
+ {
476
+ "type": "object",
477
+ "properties": {
478
+ "formField": {
479
+ "$ref": "#/definitions/formField"
480
+ },
481
+ "kind": {
482
+ "type": "string",
483
+ "const": "table-select"
484
+ },
485
+ "placeholder": {
486
+ "type": "string"
487
+ },
488
+ "columnList": {
489
+ "alias": "column",
490
+ "type": "array",
491
+ "items": {
492
+ "description": "table column name",
493
+ "type": "object",
494
+ "properties": {
495
+ "name": {
496
+ "type": "string",
497
+ "description": "table column name"
498
+ },
499
+ "title": {
500
+ "type": "string",
501
+ "description": "table column label"
502
+ },
503
+ "hasFilter": {
504
+ "type": "boolean",
505
+ "description": "Whether the column has a filter"
506
+ },
507
+ "kind": {
508
+ "type": "string",
509
+ "description": "The kind of data in the column"
510
+ }
511
+ }
512
+ },
513
+ "description": "List of table column names"
514
+ },
515
+ "title": {
516
+ "type": "string",
517
+ "description": "The title of the table select window"
518
+ },
519
+ "toDisplay": {
520
+ "type": "object",
521
+ "properties": {
522
+ "property": {
523
+ "$ref": "#/definitions/property"
524
+ }
525
+ }
526
+ },
527
+ "toValue": {
528
+ "type": "object",
529
+ "properties": {
530
+ "property": {
531
+ "$ref": "#/definitions/property"
532
+ }
533
+ }
534
+ },
535
+ "upstream": {
536
+ "$ref": "#/definitions/upstream"
537
+ },
538
+ "resolver": {
539
+ "type": "object",
540
+ "properties": {
541
+ "upstream": {
542
+ "$ref": "#/definitions/upstream"
543
+ }
544
+ }
545
+ }
546
+ }
547
+ }
548
+ ]
549
+ },
550
+ "autocompleteTableSelectFormControlSchematic": {
551
+ "allOf": [
552
+ {
553
+ "$ref": "#/definitions/angular"
554
+ },
555
+ {
556
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
557
+ },
558
+ {
559
+ "type": "object",
560
+ "properties": {
561
+ "formName": {
562
+ "alias": "form",
563
+ "type": "string",
564
+ "description": "The name of the form where the form control should be added"
565
+ }
566
+ },
567
+ "required": [
568
+ "formName"
569
+ ]
570
+ }
571
+ ]
572
+ },
470
573
  "backend": {
471
574
  "type": "string",
472
575
  "description": "The backend that should be used to handel data",
@@ -980,6 +1083,9 @@
980
1083
  },
981
1084
  {
982
1085
  "$ref": "#/definitions/slideToggleFormControl"
1086
+ },
1087
+ {
1088
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
983
1089
  }
984
1090
  ]
985
1091
  }
@@ -1818,6 +1924,22 @@
1818
1924
  }
1819
1925
  }
1820
1926
  },
1927
+ {
1928
+ "type": "object",
1929
+ "properties": {
1930
+ "package": {
1931
+ "type": "string",
1932
+ "const": "@rxap/schematic-angular"
1933
+ },
1934
+ "name": {
1935
+ "type": "string",
1936
+ "const": "autocomplete-table-select-form-control"
1937
+ },
1938
+ "options": {
1939
+ "$ref": "#/definitions/autocompleteTableSelectFormControlSchematic"
1940
+ }
1941
+ }
1942
+ },
1821
1943
  {
1822
1944
  "type": "object",
1823
1945
  "properties": {
@@ -275,6 +275,22 @@
275
275
  }
276
276
  }
277
277
  },
278
+ {
279
+ "type": "object",
280
+ "properties": {
281
+ "package": {
282
+ "type": "string",
283
+ "const": "@rxap/schematic-angular"
284
+ },
285
+ "name": {
286
+ "type": "string",
287
+ "const": "autocomplete-table-select-form-control"
288
+ },
289
+ "options": {
290
+ "$ref": "#/definitions/autocompleteTableSelectFormControlSchematic"
291
+ }
292
+ }
293
+ },
278
294
  {
279
295
  "type": "object",
280
296
  "properties": {
@@ -504,6 +520,9 @@
504
520
  "tableSelectFormControlSchematic": {
505
521
  "$ref": "schematics/form/control/table-select-form-control/template.schema.json"
506
522
  },
523
+ "autocompleteTableSelectFormControlSchematic": {
524
+ "$ref": "schematics/form/control/autocomplete-table-select-form-control/template.schema.json"
525
+ },
507
526
  "formControlSchematic": {
508
527
  "$ref": "schematics/form/form-control/template.schema.json"
509
528
  },
@@ -205,6 +205,86 @@
205
205
  }
206
206
  ]
207
207
  },
208
+ "autocompleteTableSelectFormControl": {
209
+ "allOf": [
210
+ {
211
+ "$ref": "#/definitions/baseFormControl"
212
+ },
213
+ {
214
+ "type": "object",
215
+ "properties": {
216
+ "formField": {
217
+ "$ref": "#/definitions/formField"
218
+ },
219
+ "kind": {
220
+ "type": "string",
221
+ "const": "table-select"
222
+ },
223
+ "placeholder": {
224
+ "type": "string"
225
+ },
226
+ "columnList": {
227
+ "alias": "column",
228
+ "type": "array",
229
+ "items": {
230
+ "description": "table column name",
231
+ "type": "object",
232
+ "properties": {
233
+ "name": {
234
+ "type": "string",
235
+ "description": "table column name"
236
+ },
237
+ "title": {
238
+ "type": "string",
239
+ "description": "table column label"
240
+ },
241
+ "hasFilter": {
242
+ "type": "boolean",
243
+ "description": "Whether the column has a filter"
244
+ },
245
+ "kind": {
246
+ "type": "string",
247
+ "description": "The kind of data in the column"
248
+ }
249
+ }
250
+ },
251
+ "description": "List of table column names"
252
+ },
253
+ "title": {
254
+ "type": "string",
255
+ "description": "The title of the table select window"
256
+ },
257
+ "toDisplay": {
258
+ "type": "object",
259
+ "properties": {
260
+ "property": {
261
+ "$ref": "#/definitions/property"
262
+ }
263
+ }
264
+ },
265
+ "toValue": {
266
+ "type": "object",
267
+ "properties": {
268
+ "property": {
269
+ "$ref": "#/definitions/property"
270
+ }
271
+ }
272
+ },
273
+ "upstream": {
274
+ "$ref": "#/definitions/upstream"
275
+ },
276
+ "resolver": {
277
+ "type": "object",
278
+ "properties": {
279
+ "upstream": {
280
+ "$ref": "#/definitions/upstream"
281
+ }
282
+ }
283
+ }
284
+ }
285
+ }
286
+ ]
287
+ },
208
288
  "backend": {
209
289
  "type": "string",
210
290
  "description": "The backend that should be used to handel data",
@@ -534,6 +614,9 @@
534
614
  },
535
615
  {
536
616
  "$ref": "#/definitions/slideToggleFormControl"
617
+ },
618
+ {
619
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
537
620
  }
538
621
  ]
539
622
  }
@@ -217,6 +217,86 @@
217
217
  }
218
218
  ]
219
219
  },
220
+ "autocompleteTableSelectFormControl": {
221
+ "allOf": [
222
+ {
223
+ "$ref": "#/definitions/baseFormControl"
224
+ },
225
+ {
226
+ "type": "object",
227
+ "properties": {
228
+ "formField": {
229
+ "$ref": "#/definitions/formField"
230
+ },
231
+ "kind": {
232
+ "type": "string",
233
+ "const": "table-select"
234
+ },
235
+ "placeholder": {
236
+ "type": "string"
237
+ },
238
+ "columnList": {
239
+ "alias": "column",
240
+ "type": "array",
241
+ "items": {
242
+ "description": "table column name",
243
+ "type": "object",
244
+ "properties": {
245
+ "name": {
246
+ "type": "string",
247
+ "description": "table column name"
248
+ },
249
+ "title": {
250
+ "type": "string",
251
+ "description": "table column label"
252
+ },
253
+ "hasFilter": {
254
+ "type": "boolean",
255
+ "description": "Whether the column has a filter"
256
+ },
257
+ "kind": {
258
+ "type": "string",
259
+ "description": "The kind of data in the column"
260
+ }
261
+ }
262
+ },
263
+ "description": "List of table column names"
264
+ },
265
+ "title": {
266
+ "type": "string",
267
+ "description": "The title of the table select window"
268
+ },
269
+ "toDisplay": {
270
+ "type": "object",
271
+ "properties": {
272
+ "property": {
273
+ "$ref": "#/definitions/property"
274
+ }
275
+ }
276
+ },
277
+ "toValue": {
278
+ "type": "object",
279
+ "properties": {
280
+ "property": {
281
+ "$ref": "#/definitions/property"
282
+ }
283
+ }
284
+ },
285
+ "upstream": {
286
+ "$ref": "#/definitions/upstream"
287
+ },
288
+ "resolver": {
289
+ "type": "object",
290
+ "properties": {
291
+ "upstream": {
292
+ "$ref": "#/definitions/upstream"
293
+ }
294
+ }
295
+ }
296
+ }
297
+ }
298
+ ]
299
+ },
220
300
  "backend": {
221
301
  "type": "string",
222
302
  "description": "The backend that should be used to handel data",
@@ -341,6 +421,9 @@
341
421
  },
342
422
  {
343
423
  "$ref": "#/definitions/slideToggleFormControl"
424
+ },
425
+ {
426
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
344
427
  }
345
428
  ]
346
429
  }
@@ -217,6 +217,86 @@
217
217
  }
218
218
  ]
219
219
  },
220
+ "autocompleteTableSelectFormControl": {
221
+ "allOf": [
222
+ {
223
+ "$ref": "#/definitions/baseFormControl"
224
+ },
225
+ {
226
+ "type": "object",
227
+ "properties": {
228
+ "formField": {
229
+ "$ref": "#/definitions/formField"
230
+ },
231
+ "kind": {
232
+ "type": "string",
233
+ "const": "table-select"
234
+ },
235
+ "placeholder": {
236
+ "type": "string"
237
+ },
238
+ "columnList": {
239
+ "alias": "column",
240
+ "type": "array",
241
+ "items": {
242
+ "description": "table column name",
243
+ "type": "object",
244
+ "properties": {
245
+ "name": {
246
+ "type": "string",
247
+ "description": "table column name"
248
+ },
249
+ "title": {
250
+ "type": "string",
251
+ "description": "table column label"
252
+ },
253
+ "hasFilter": {
254
+ "type": "boolean",
255
+ "description": "Whether the column has a filter"
256
+ },
257
+ "kind": {
258
+ "type": "string",
259
+ "description": "The kind of data in the column"
260
+ }
261
+ }
262
+ },
263
+ "description": "List of table column names"
264
+ },
265
+ "title": {
266
+ "type": "string",
267
+ "description": "The title of the table select window"
268
+ },
269
+ "toDisplay": {
270
+ "type": "object",
271
+ "properties": {
272
+ "property": {
273
+ "$ref": "#/definitions/property"
274
+ }
275
+ }
276
+ },
277
+ "toValue": {
278
+ "type": "object",
279
+ "properties": {
280
+ "property": {
281
+ "$ref": "#/definitions/property"
282
+ }
283
+ }
284
+ },
285
+ "upstream": {
286
+ "$ref": "#/definitions/upstream"
287
+ },
288
+ "resolver": {
289
+ "type": "object",
290
+ "properties": {
291
+ "upstream": {
292
+ "$ref": "#/definitions/upstream"
293
+ }
294
+ }
295
+ }
296
+ }
297
+ }
298
+ ]
299
+ },
220
300
  "backend": {
221
301
  "type": "string",
222
302
  "description": "The backend that should be used to handel data",
@@ -341,6 +421,9 @@
341
421
  },
342
422
  {
343
423
  "$ref": "#/definitions/slideToggleFormControl"
424
+ },
425
+ {
426
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
344
427
  }
345
428
  ]
346
429
  }