@researchdatabox/sails-ng-common 0.0.1-beta.8936

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 (220) hide show
  1. package/README.md +5 -0
  2. package/dist/src/config/base-field-component.model.d.ts +26 -0
  3. package/dist/src/config/base-field-component.model.js +29 -0
  4. package/dist/src/config/base-field-component.outline.d.ts +100 -0
  5. package/dist/src/config/base-field-component.outline.js +3 -0
  6. package/dist/src/config/component/accordion.model.d.ts +103 -0
  7. package/dist/src/config/component/accordion.model.js +127 -0
  8. package/dist/src/config/component/accordion.outline.d.ts +150 -0
  9. package/dist/src/config/component/accordion.outline.js +13 -0
  10. package/dist/src/config/component/action-row-layout.model.d.ts +28 -0
  11. package/dist/src/config/component/action-row-layout.model.js +35 -0
  12. package/dist/src/config/component/action-row-layout.outline.d.ts +36 -0
  13. package/dist/src/config/component/action-row-layout.outline.js +6 -0
  14. package/dist/src/config/component/cancel-button.model.d.ts +46 -0
  15. package/dist/src/config/component/cancel-button.model.js +56 -0
  16. package/dist/src/config/component/cancel-button.outline.d.ts +69 -0
  17. package/dist/src/config/component/cancel-button.outline.js +6 -0
  18. package/dist/src/config/component/checkbox-input.model.d.ts +65 -0
  19. package/dist/src/config/component/checkbox-input.model.js +78 -0
  20. package/dist/src/config/component/checkbox-input.outline.d.ts +85 -0
  21. package/dist/src/config/component/checkbox-input.outline.js +8 -0
  22. package/dist/src/config/component/checkbox-tree.model.d.ts +66 -0
  23. package/dist/src/config/component/checkbox-tree.model.js +79 -0
  24. package/dist/src/config/component/checkbox-tree.outline.d.ts +96 -0
  25. package/dist/src/config/component/checkbox-tree.outline.js +8 -0
  26. package/dist/src/config/component/content.model.d.ts +45 -0
  27. package/dist/src/config/component/content.model.js +55 -0
  28. package/dist/src/config/component/content.outline.d.ts +64 -0
  29. package/dist/src/config/component/content.outline.js +6 -0
  30. package/dist/src/config/component/data-location.model.d.ts +82 -0
  31. package/dist/src/config/component/data-location.model.js +94 -0
  32. package/dist/src/config/component/data-location.outline.d.ts +117 -0
  33. package/dist/src/config/component/data-location.outline.js +6 -0
  34. package/dist/src/config/component/date-input.model.d.ts +66 -0
  35. package/dist/src/config/component/date-input.model.js +79 -0
  36. package/dist/src/config/component/date-input.outline.d.ts +81 -0
  37. package/dist/src/config/component/date-input.outline.js +8 -0
  38. package/dist/src/config/component/default-layout.model.d.ts +22 -0
  39. package/dist/src/config/component/default-layout.model.js +30 -0
  40. package/dist/src/config/component/default-layout.outline.d.ts +29 -0
  41. package/dist/src/config/component/default-layout.outline.js +5 -0
  42. package/dist/src/config/component/delete-button.model.d.ts +46 -0
  43. package/dist/src/config/component/delete-button.model.js +48 -0
  44. package/dist/src/config/component/delete-button.outline.d.ts +55 -0
  45. package/dist/src/config/component/delete-button.outline.js +5 -0
  46. package/dist/src/config/component/dropdown-input.model.d.ts +64 -0
  47. package/dist/src/config/component/dropdown-input.model.js +77 -0
  48. package/dist/src/config/component/dropdown-input.outline.d.ts +84 -0
  49. package/dist/src/config/component/dropdown-input.outline.js +8 -0
  50. package/dist/src/config/component/file-upload.model.d.ts +67 -0
  51. package/dist/src/config/component/file-upload.model.js +81 -0
  52. package/dist/src/config/component/file-upload.outline.d.ts +93 -0
  53. package/dist/src/config/component/file-upload.outline.js +8 -0
  54. package/dist/src/config/component/group.model.d.ts +61 -0
  55. package/dist/src/config/component/group.model.js +75 -0
  56. package/dist/src/config/component/group.outline.d.ts +77 -0
  57. package/dist/src/config/component/group.outline.js +8 -0
  58. package/dist/src/config/component/inline-layout.model.d.ts +22 -0
  59. package/dist/src/config/component/inline-layout.model.js +29 -0
  60. package/dist/src/config/component/inline-layout.outline.d.ts +29 -0
  61. package/dist/src/config/component/inline-layout.outline.js +5 -0
  62. package/dist/src/config/component/map.model.d.ts +68 -0
  63. package/dist/src/config/component/map.model.js +85 -0
  64. package/dist/src/config/component/map.outline.d.ts +102 -0
  65. package/dist/src/config/component/map.outline.js +8 -0
  66. package/dist/src/config/component/pdf-list.model.d.ts +68 -0
  67. package/dist/src/config/component/pdf-list.model.js +71 -0
  68. package/dist/src/config/component/pdf-list.outline.d.ts +91 -0
  69. package/dist/src/config/component/pdf-list.outline.js +6 -0
  70. package/dist/src/config/component/publish-data-location-refresh.model.d.ts +38 -0
  71. package/dist/src/config/component/publish-data-location-refresh.model.js +51 -0
  72. package/dist/src/config/component/publish-data-location-refresh.outline.d.ts +47 -0
  73. package/dist/src/config/component/publish-data-location-refresh.outline.js +5 -0
  74. package/dist/src/config/component/publish-data-location-selector.model.d.ts +74 -0
  75. package/dist/src/config/component/publish-data-location-selector.model.js +100 -0
  76. package/dist/src/config/component/publish-data-location-selector.outline.d.ts +99 -0
  77. package/dist/src/config/component/publish-data-location-selector.outline.js +6 -0
  78. package/dist/src/config/component/question-tree.helper.d.ts +61 -0
  79. package/dist/src/config/component/question-tree.helper.js +298 -0
  80. package/dist/src/config/component/question-tree.model.d.ts +64 -0
  81. package/dist/src/config/component/question-tree.model.js +80 -0
  82. package/dist/src/config/component/question-tree.outline.d.ts +305 -0
  83. package/dist/src/config/component/question-tree.outline.js +9 -0
  84. package/dist/src/config/component/radio-input.model.d.ts +63 -0
  85. package/dist/src/config/component/radio-input.model.js +76 -0
  86. package/dist/src/config/component/radio-input.outline.d.ts +83 -0
  87. package/dist/src/config/component/radio-input.outline.js +8 -0
  88. package/dist/src/config/component/record-metadata-retriever.model.d.ts +41 -0
  89. package/dist/src/config/component/record-metadata-retriever.model.js +57 -0
  90. package/dist/src/config/component/record-metadata-retriever.outline.d.ts +47 -0
  91. package/dist/src/config/component/record-metadata-retriever.outline.js +5 -0
  92. package/dist/src/config/component/record-selector.model.d.ts +60 -0
  93. package/dist/src/config/component/record-selector.model.js +60 -0
  94. package/dist/src/config/component/record-selector.outline.d.ts +84 -0
  95. package/dist/src/config/component/record-selector.outline.js +6 -0
  96. package/dist/src/config/component/repeatable.model.d.ts +90 -0
  97. package/dist/src/config/component/repeatable.model.js +109 -0
  98. package/dist/src/config/component/repeatable.outline.d.ts +108 -0
  99. package/dist/src/config/component/repeatable.outline.js +10 -0
  100. package/dist/src/config/component/reusable.model.d.ts +42 -0
  101. package/dist/src/config/component/reusable.model.js +57 -0
  102. package/dist/src/config/component/reusable.outline.d.ts +49 -0
  103. package/dist/src/config/component/reusable.outline.js +6 -0
  104. package/dist/src/config/component/rich-text-editor.model.d.ts +65 -0
  105. package/dist/src/config/component/rich-text-editor.model.js +79 -0
  106. package/dist/src/config/component/rich-text-editor.outline.d.ts +86 -0
  107. package/dist/src/config/component/rich-text-editor.outline.js +8 -0
  108. package/dist/src/config/component/save-button.model.d.ts +45 -0
  109. package/dist/src/config/component/save-button.model.js +55 -0
  110. package/dist/src/config/component/save-button.outline.d.ts +65 -0
  111. package/dist/src/config/component/save-button.outline.js +6 -0
  112. package/dist/src/config/component/save-status.model.d.ts +42 -0
  113. package/dist/src/config/component/save-status.model.js +60 -0
  114. package/dist/src/config/component/save-status.outline.d.ts +52 -0
  115. package/dist/src/config/component/save-status.outline.js +6 -0
  116. package/dist/src/config/component/simple-input.model.d.ts +62 -0
  117. package/dist/src/config/component/simple-input.model.js +75 -0
  118. package/dist/src/config/component/simple-input.outline.d.ts +80 -0
  119. package/dist/src/config/component/simple-input.outline.js +9 -0
  120. package/dist/src/config/component/tab-content.model.d.ts +63 -0
  121. package/dist/src/config/component/tab-content.model.js +77 -0
  122. package/dist/src/config/component/tab-content.outline.d.ts +92 -0
  123. package/dist/src/config/component/tab-content.outline.js +8 -0
  124. package/dist/src/config/component/tab-nav-button.model.d.ts +45 -0
  125. package/dist/src/config/component/tab-nav-button.model.js +55 -0
  126. package/dist/src/config/component/tab-nav-button.outline.d.ts +64 -0
  127. package/dist/src/config/component/tab-nav-button.outline.js +6 -0
  128. package/dist/src/config/component/tab.model.d.ts +71 -0
  129. package/dist/src/config/component/tab.model.js +84 -0
  130. package/dist/src/config/component/tab.outline.d.ts +106 -0
  131. package/dist/src/config/component/tab.outline.js +9 -0
  132. package/dist/src/config/component/text-area.model.d.ts +63 -0
  133. package/dist/src/config/component/text-area.model.js +76 -0
  134. package/dist/src/config/component/text-area.outline.d.ts +81 -0
  135. package/dist/src/config/component/text-area.outline.js +8 -0
  136. package/dist/src/config/component/typeahead-input.model.d.ts +78 -0
  137. package/dist/src/config/component/typeahead-input.model.js +91 -0
  138. package/dist/src/config/component/typeahead-input.outline.d.ts +107 -0
  139. package/dist/src/config/component/typeahead-input.outline.js +8 -0
  140. package/dist/src/config/component/validation-summary.model.d.ts +42 -0
  141. package/dist/src/config/component/validation-summary.model.js +60 -0
  142. package/dist/src/config/component/validation-summary.outline.d.ts +57 -0
  143. package/dist/src/config/component/validation-summary.outline.js +6 -0
  144. package/dist/src/config/dictionary.model.d.ts +624 -0
  145. package/dist/src/config/dictionary.model.js +175 -0
  146. package/dist/src/config/dictionary.outline.d.ts +94 -0
  147. package/dist/src/config/dictionary.outline.js +3 -0
  148. package/dist/src/config/field-component.model.d.ts +7 -0
  149. package/dist/src/config/field-component.model.js +11 -0
  150. package/dist/src/config/field-component.outline.d.ts +20 -0
  151. package/dist/src/config/field-component.outline.js +3 -0
  152. package/dist/src/config/field-layout.model.d.ts +19 -0
  153. package/dist/src/config/field-layout.model.js +23 -0
  154. package/dist/src/config/field-layout.outline.d.ts +42 -0
  155. package/dist/src/config/field-layout.outline.js +3 -0
  156. package/dist/src/config/field-model.model.d.ts +22 -0
  157. package/dist/src/config/field-model.model.js +25 -0
  158. package/dist/src/config/field-model.outline.d.ts +63 -0
  159. package/dist/src/config/field-model.outline.js +3 -0
  160. package/dist/src/config/field.model.d.ts +12 -0
  161. package/dist/src/config/field.model.js +12 -0
  162. package/dist/src/config/field.outline.d.ts +19 -0
  163. package/dist/src/config/field.outline.js +3 -0
  164. package/dist/src/config/form-behaviour.outline.d.ts +128 -0
  165. package/dist/src/config/form-behaviour.outline.js +40 -0
  166. package/dist/src/config/form-component.model.d.ts +38 -0
  167. package/dist/src/config/form-component.model.js +36 -0
  168. package/dist/src/config/form-component.outline.d.ts +257 -0
  169. package/dist/src/config/form-component.outline.js +24 -0
  170. package/dist/src/config/form-config.model.d.ts +33 -0
  171. package/dist/src/config/form-config.model.js +36 -0
  172. package/dist/src/config/form-config.outline.d.ts +109 -0
  173. package/dist/src/config/form-config.outline.js +3 -0
  174. package/dist/src/config/form-override.model.d.ts +116 -0
  175. package/dist/src/config/form-override.model.js +1209 -0
  176. package/dist/src/config/form-override.outline.d.ts +15 -0
  177. package/dist/src/config/form-override.outline.js +3 -0
  178. package/dist/src/config/form-types.model.d.ts +6 -0
  179. package/dist/src/config/form-types.model.js +23 -0
  180. package/dist/src/config/form-types.outline.d.ts +48 -0
  181. package/dist/src/config/form-types.outline.js +137 -0
  182. package/dist/src/config/helpers.d.ts +23 -0
  183. package/dist/src/config/helpers.js +105 -0
  184. package/dist/src/config/names/naming-helpers.d.ts +71 -0
  185. package/dist/src/config/names/naming-helpers.js +72 -0
  186. package/dist/src/config/names/query-helpers.d.ts +43 -0
  187. package/dist/src/config/names/query-helpers.js +64 -0
  188. package/dist/src/config/shared.outline.d.ts +54 -0
  189. package/dist/src/config/shared.outline.js +41 -0
  190. package/dist/src/config/visitor/base.model.d.ts +137 -0
  191. package/dist/src/config/visitor/base.model.js +323 -0
  192. package/dist/src/config/visitor/base.outline.d.ts +140 -0
  193. package/dist/src/config/visitor/base.outline.js +3 -0
  194. package/dist/src/config/visitor/common.model.d.ts +119 -0
  195. package/dist/src/config/visitor/common.model.js +421 -0
  196. package/dist/src/handlebars-helpers.d.ts +224 -0
  197. package/dist/src/handlebars-helpers.js +558 -0
  198. package/dist/src/index.d.ts +109 -0
  199. package/dist/src/index.js +136 -0
  200. package/dist/src/logger.interface.d.ts +14 -0
  201. package/dist/src/logger.interface.js +3 -0
  202. package/dist/src/record.model.d.ts +35 -0
  203. package/dist/src/record.model.js +21 -0
  204. package/dist/src/report.model.d.ts +21 -0
  205. package/dist/src/report.model.js +19 -0
  206. package/dist/src/status.model.d.ts +22 -0
  207. package/dist/src/status.model.js +28 -0
  208. package/dist/src/template.outline.d.ts +49 -0
  209. package/dist/src/template.outline.js +13 -0
  210. package/dist/src/translation-helpers.d.ts +10 -0
  211. package/dist/src/translation-helpers.js +30 -0
  212. package/dist/src/validation/form.model.d.ts +247 -0
  213. package/dist/src/validation/form.model.js +31 -0
  214. package/dist/src/validation/helpers.d.ts +14 -0
  215. package/dist/src/validation/helpers.js +68 -0
  216. package/dist/src/validation/validators-support.d.ts +41 -0
  217. package/dist/src/validation/validators-support.js +141 -0
  218. package/dist/src/validation/validators.d.ts +23 -0
  219. package/dist/src/validation/validators.js +427 -0
  220. package/package.json +95 -0
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TypeaheadInputDefaults = exports.TypeaheadInputMap = exports.TypeaheadInputFormComponentDefinition = exports.TypeaheadInputFieldModelDefinition = exports.TypeaheadInputFieldModelConfig = exports.TypeaheadInputFieldComponentDefinition = exports.TypeaheadInputFieldComponentConfig = void 0;
4
+ const field_model_model_1 = require("../field-model.model");
5
+ const form_component_model_1 = require("../form-component.model");
6
+ const shared_outline_1 = require("../shared.outline");
7
+ const field_component_model_1 = require("../field-component.model");
8
+ const typeahead_input_outline_1 = require("./typeahead-input.outline");
9
+ /* Typeahead Input Component */
10
+ class TypeaheadInputFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
11
+ sourceType = "static";
12
+ staticOptions = [];
13
+ vocabRef;
14
+ queryId;
15
+ provider;
16
+ resultArrayProperty;
17
+ labelField;
18
+ labelTemplate;
19
+ valueField;
20
+ minChars = 2;
21
+ debounceMs = 250;
22
+ maxResults = 25;
23
+ requireSelection = false;
24
+ valueMode = "value";
25
+ cacheResults = true;
26
+ multiSelect = false;
27
+ placeholder;
28
+ readOnlyAfterSelect;
29
+ constructor() {
30
+ super();
31
+ }
32
+ }
33
+ exports.TypeaheadInputFieldComponentConfig = TypeaheadInputFieldComponentConfig;
34
+ class TypeaheadInputFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
35
+ class = typeahead_input_outline_1.TypeaheadInputComponentName;
36
+ config;
37
+ constructor() {
38
+ super();
39
+ }
40
+ accept(visitor) {
41
+ visitor.visitTypeaheadInputFieldComponentDefinition(this);
42
+ }
43
+ }
44
+ exports.TypeaheadInputFieldComponentDefinition = TypeaheadInputFieldComponentDefinition;
45
+ /* Typeahead Input Model */
46
+ class TypeaheadInputFieldModelConfig extends field_model_model_1.FieldModelConfig {
47
+ constructor() {
48
+ super();
49
+ }
50
+ }
51
+ exports.TypeaheadInputFieldModelConfig = TypeaheadInputFieldModelConfig;
52
+ class TypeaheadInputFieldModelDefinition extends field_model_model_1.FieldModelDefinition {
53
+ class = typeahead_input_outline_1.TypeaheadInputModelName;
54
+ config;
55
+ constructor() {
56
+ super();
57
+ }
58
+ accept(visitor) {
59
+ visitor.visitTypeaheadInputFieldModelDefinition(this);
60
+ }
61
+ }
62
+ exports.TypeaheadInputFieldModelDefinition = TypeaheadInputFieldModelDefinition;
63
+ /* Typeahead Input Form Component */
64
+ class TypeaheadInputFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
65
+ component;
66
+ model;
67
+ layout;
68
+ constructor() {
69
+ super();
70
+ }
71
+ accept(visitor) {
72
+ visitor.visitTypeaheadInputFormComponentDefinition(this);
73
+ }
74
+ }
75
+ exports.TypeaheadInputFormComponentDefinition = TypeaheadInputFormComponentDefinition;
76
+ exports.TypeaheadInputMap = [
77
+ { kind: shared_outline_1.FieldComponentConfigKind, def: TypeaheadInputFieldComponentConfig },
78
+ { kind: shared_outline_1.FieldComponentDefinitionKind, def: TypeaheadInputFieldComponentDefinition, class: typeahead_input_outline_1.TypeaheadInputComponentName },
79
+ { kind: shared_outline_1.FieldModelConfigKind, def: TypeaheadInputFieldModelConfig },
80
+ { kind: shared_outline_1.FieldModelDefinitionKind, def: TypeaheadInputFieldModelDefinition, class: typeahead_input_outline_1.TypeaheadInputModelName },
81
+ { kind: shared_outline_1.FormComponentDefinitionKind, def: TypeaheadInputFormComponentDefinition, class: typeahead_input_outline_1.TypeaheadInputComponentName },
82
+ ];
83
+ exports.TypeaheadInputDefaults = {
84
+ [shared_outline_1.FormComponentDefinitionKind]: {
85
+ [typeahead_input_outline_1.TypeaheadInputComponentName]: {
86
+ [shared_outline_1.FieldComponentDefinitionKind]: typeahead_input_outline_1.TypeaheadInputComponentName,
87
+ [shared_outline_1.FieldModelDefinitionKind]: typeahead_input_outline_1.TypeaheadInputModelName,
88
+ },
89
+ },
90
+ };
91
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWFoZWFkLWlucHV0Lm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbmZpZy9jb21wb25lbnQvdHlwZWFoZWFkLWlucHV0Lm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDREQUE0RTtBQUM1RSxrRUFBZ0U7QUFFaEUsc0RBTTJCO0FBQzNCLG9FQUF3RjtBQUV4Rix1RUFVbUM7QUFFbkMsK0JBQStCO0FBRS9CLE1BQWEsa0NBQW1DLFNBQVEsNENBQW9CO0lBQ3hFLFVBQVUsR0FBd0QsUUFBUSxDQUFDO0lBQzNFLGFBQWEsR0FBc0IsRUFBRSxDQUFDO0lBQ3RDLFFBQVEsQ0FBVTtJQUNsQixPQUFPLENBQVU7SUFDakIsUUFBUSxDQUFVO0lBQ2xCLG1CQUFtQixDQUFVO0lBQzdCLFVBQVUsQ0FBVTtJQUNwQixhQUFhLENBQVU7SUFDdkIsVUFBVSxDQUFVO0lBQ3BCLFFBQVEsR0FBRyxDQUFDLENBQUM7SUFDYixVQUFVLEdBQUcsR0FBRyxDQUFDO0lBQ2pCLFVBQVUsR0FBRyxFQUFFLENBQUM7SUFDaEIsZ0JBQWdCLEdBQUcsS0FBSyxDQUFDO0lBQ3pCLFNBQVMsR0FBNkIsT0FBTyxDQUFDO0lBQzlDLFlBQVksR0FBRyxJQUFJLENBQUM7SUFDcEIsV0FBVyxHQUFHLEtBQUssQ0FBQztJQUNwQixXQUFXLENBQVU7SUFDckIsbUJBQW1CLENBQVc7SUFFOUI7UUFDSSxLQUFLLEVBQUUsQ0FBQztJQUNaLENBQUM7Q0FDSjtBQXZCRCxnRkF1QkM7QUFFRCxNQUFhLHNDQUF1QyxTQUFRLGdEQUF3QjtJQUNoRixLQUFLLEdBQUcscURBQTJCLENBQUM7SUFDcEMsTUFBTSxDQUE2QztJQUVuRDtRQUNJLEtBQUssRUFBRSxDQUFDO0lBQ1osQ0FBQztJQUVELE1BQU0sQ0FBQyxPQUFpQztRQUNwQyxPQUFPLENBQUMsMkNBQTJDLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDOUQsQ0FBQztDQUNKO0FBWEQsd0ZBV0M7QUFFRCwyQkFBMkI7QUFFM0IsTUFBYSw4QkFBK0IsU0FBUSxvQ0FBOEM7SUFDOUY7UUFDSSxLQUFLLEVBQUUsQ0FBQztJQUNaLENBQUM7Q0FDSjtBQUpELHdFQUlDO0FBRUQsTUFBYSxrQ0FBbUMsU0FBUSx3Q0FBa0Q7SUFDdEcsS0FBSyxHQUFHLGlEQUF1QixDQUFDO0lBQ2hDLE1BQU0sQ0FBeUM7SUFFL0M7UUFDSSxLQUFLLEVBQUUsQ0FBQztJQUNaLENBQUM7SUFFRCxNQUFNLENBQUMsT0FBaUM7UUFDcEMsT0FBTyxDQUFDLHVDQUF1QyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQzFELENBQUM7Q0FDSjtBQVhELGdGQVdDO0FBRUQsb0NBQW9DO0FBRXBDLE1BQWEscUNBQXNDLFNBQVEsOENBQXVCO0lBQ3ZFLFNBQVMsQ0FBaUQ7SUFDMUQsS0FBSyxDQUE2QztJQUNsRCxNQUFNLENBQTBDO0lBRXZEO1FBQ0ksS0FBSyxFQUFFLENBQUM7SUFDWixDQUFDO0lBRUQsTUFBTSxDQUFDLE9BQWlDO1FBQ3BDLE9BQU8sQ0FBQywwQ0FBMEMsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUM3RCxDQUFDO0NBQ0o7QUFaRCxzRkFZQztBQUVZLFFBQUEsaUJBQWlCLEdBQUc7SUFDN0IsRUFBQyxJQUFJLEVBQUUseUNBQXdCLEVBQUUsR0FBRyxFQUFFLGtDQUFrQyxFQUFDO0lBQ3pFLEVBQUMsSUFBSSxFQUFFLDZDQUE0QixFQUFFLEdBQUcsRUFBRSxzQ0FBc0MsRUFBRSxLQUFLLEVBQUUscURBQTJCLEVBQUM7SUFDckgsRUFBQyxJQUFJLEVBQUUscUNBQW9CLEVBQUUsR0FBRyxFQUFFLDhCQUE4QixFQUFDO0lBQ2pFLEVBQUMsSUFBSSxFQUFFLHlDQUF3QixFQUFFLEdBQUcsRUFBRSxrQ0FBa0MsRUFBRSxLQUFLLEVBQUUsaURBQXVCLEVBQUM7SUFDekcsRUFBQyxJQUFJLEVBQUUsNENBQTJCLEVBQUUsR0FBRyxFQUFFLHFDQUFxQyxFQUFFLEtBQUssRUFBRSxxREFBMkIsRUFBQztDQUN0SCxDQUFDO0FBRVcsUUFBQSxzQkFBc0IsR0FBRztJQUNsQyxDQUFDLDRDQUEyQixDQUFDLEVBQUU7UUFDM0IsQ0FBQyxxREFBMkIsQ0FBQyxFQUFFO1lBQzNCLENBQUMsNkNBQTRCLENBQUMsRUFBRSxxREFBMkI7WUFDM0QsQ0FBQyx5Q0FBd0IsQ0FBQyxFQUFFLGlEQUF1QjtTQUN0RDtLQUNKO0NBQ0osQ0FBQyJ9
@@ -0,0 +1,107 @@
1
+ import { FieldComponentConfigFrameKindType, FieldComponentConfigKindType, FieldComponentDefinitionFrameKindType, FieldComponentDefinitionKindType, FieldModelConfigFrameKindType, FieldModelConfigKindType, FieldModelDefinitionFrameKindType, FieldModelDefinitionKindType, FormComponentDefinitionFrameKindType, FormComponentDefinitionKindType } from "../shared.outline";
2
+ import { FieldComponentConfigFrame, FieldComponentConfigOutline, FieldComponentDefinitionFrame, FieldComponentDefinitionOutline } from "../field-component.outline";
3
+ import { FieldModelConfigFrame, FieldModelConfigOutline, FieldModelDefinitionFrame, FieldModelDefinitionOutline } from "../field-model.outline";
4
+ import { FormComponentDefinitionFrame, FormComponentDefinitionOutline } from "../form-component.outline";
5
+ import { AvailableFieldLayoutDefinitionFrames, AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
6
+ export declare const TypeaheadInputComponentName: "TypeaheadInputComponent";
7
+ export type TypeaheadInputComponentNameType = typeof TypeaheadInputComponentName;
8
+ export type TypeaheadSourceType = "static" | "vocabulary" | "namedQuery" | "external";
9
+ export type TypeaheadValueMode = "value" | "optionObject";
10
+ export type TypeaheadStoredSourceType = TypeaheadSourceType | "freeText";
11
+ export interface TypeaheadOption {
12
+ label: string;
13
+ value: string;
14
+ sourceType?: TypeaheadStoredSourceType;
15
+ raw?: unknown;
16
+ }
17
+ export interface TypeaheadInputFieldComponentConfigFrame extends FieldComponentConfigFrame {
18
+ sourceType?: TypeaheadSourceType;
19
+ staticOptions?: TypeaheadOption[];
20
+ vocabRef?: string;
21
+ queryId?: string;
22
+ provider?: string;
23
+ resultArrayProperty?: string;
24
+ labelField?: string;
25
+ labelTemplate?: string;
26
+ valueField?: string;
27
+ minChars?: number;
28
+ debounceMs?: number;
29
+ maxResults?: number;
30
+ requireSelection?: boolean;
31
+ valueMode?: TypeaheadValueMode;
32
+ cacheResults?: boolean;
33
+ multiSelect?: boolean;
34
+ placeholder?: string;
35
+ readOnlyAfterSelect?: boolean;
36
+ }
37
+ export interface TypeaheadInputFieldComponentConfigOutline extends TypeaheadInputFieldComponentConfigFrame, FieldComponentConfigOutline {
38
+ }
39
+ export interface TypeaheadInputFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
40
+ class: TypeaheadInputComponentNameType;
41
+ config?: TypeaheadInputFieldComponentConfigFrame;
42
+ }
43
+ export interface TypeaheadInputFieldComponentDefinitionOutline extends TypeaheadInputFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
44
+ class: TypeaheadInputComponentNameType;
45
+ config?: TypeaheadInputFieldComponentConfigOutline;
46
+ }
47
+ export declare const TypeaheadInputModelName: "TypeaheadInputModel";
48
+ export type TypeaheadInputModelNameType = typeof TypeaheadInputModelName;
49
+ export interface TypeaheadInputModelOptionValue {
50
+ label: string;
51
+ value: string;
52
+ sourceType?: TypeaheadStoredSourceType;
53
+ }
54
+ export type TypeaheadInputModelValueType = string | TypeaheadInputModelOptionValue | null;
55
+ export interface TypeaheadInputFieldModelConfigFrame extends FieldModelConfigFrame<TypeaheadInputModelValueType> {
56
+ }
57
+ export interface TypeaheadInputFieldModelConfigOutline extends TypeaheadInputFieldModelConfigFrame, FieldModelConfigOutline<TypeaheadInputModelValueType> {
58
+ }
59
+ export interface TypeaheadInputFieldModelDefinitionFrame extends FieldModelDefinitionFrame<TypeaheadInputModelValueType> {
60
+ class: TypeaheadInputModelNameType;
61
+ config?: TypeaheadInputFieldModelConfigFrame;
62
+ }
63
+ export interface TypeaheadInputFieldModelDefinitionOutline extends TypeaheadInputFieldModelDefinitionFrame, FieldModelDefinitionOutline<TypeaheadInputModelValueType> {
64
+ class: TypeaheadInputModelNameType;
65
+ config?: TypeaheadInputFieldModelConfigOutline;
66
+ }
67
+ export interface TypeaheadInputFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
68
+ component: TypeaheadInputFieldComponentDefinitionFrame;
69
+ model?: TypeaheadInputFieldModelDefinitionFrame;
70
+ layout?: AvailableFieldLayoutDefinitionFrames;
71
+ }
72
+ export interface TypeaheadInputFormComponentDefinitionOutline extends TypeaheadInputFormComponentDefinitionFrame, FormComponentDefinitionOutline {
73
+ component: TypeaheadInputFieldComponentDefinitionOutline;
74
+ model?: TypeaheadInputFieldModelDefinitionOutline;
75
+ layout?: AvailableFieldLayoutDefinitionOutlines;
76
+ }
77
+ export type TypeaheadInputTypes = {
78
+ kind: FieldComponentConfigFrameKindType;
79
+ class: TypeaheadInputFieldComponentConfigFrame;
80
+ } | {
81
+ kind: FieldComponentDefinitionFrameKindType;
82
+ class: TypeaheadInputFieldComponentDefinitionFrame;
83
+ } | {
84
+ kind: FieldModelConfigFrameKindType;
85
+ class: TypeaheadInputFieldModelConfigFrame;
86
+ } | {
87
+ kind: FieldModelDefinitionFrameKindType;
88
+ class: TypeaheadInputFieldModelDefinitionFrame;
89
+ } | {
90
+ kind: FormComponentDefinitionFrameKindType;
91
+ class: TypeaheadInputFormComponentDefinitionFrame;
92
+ } | {
93
+ kind: FieldComponentConfigKindType;
94
+ class: TypeaheadInputFieldComponentConfigOutline;
95
+ } | {
96
+ kind: FieldComponentDefinitionKindType;
97
+ class: TypeaheadInputFieldComponentDefinitionOutline;
98
+ } | {
99
+ kind: FieldModelConfigKindType;
100
+ class: TypeaheadInputFieldModelConfigOutline;
101
+ } | {
102
+ kind: FieldModelDefinitionKindType;
103
+ class: TypeaheadInputFieldModelDefinitionOutline;
104
+ } | {
105
+ kind: FormComponentDefinitionKindType;
106
+ class: TypeaheadInputFormComponentDefinitionOutline;
107
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TypeaheadInputModelName = exports.TypeaheadInputComponentName = void 0;
4
+ /* Typeahead Input Component */
5
+ exports.TypeaheadInputComponentName = "TypeaheadInputComponent";
6
+ /* Typeahead Input Model */
7
+ exports.TypeaheadInputModelName = "TypeaheadInputModel";
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWFoZWFkLWlucHV0Lm91dGxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29uZmlnL2NvbXBvbmVudC90eXBlYWhlYWQtaW5wdXQub3V0bGluZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUEyQkEsK0JBQStCO0FBQ2xCLFFBQUEsMkJBQTJCLEdBQUcseUJBQWtDLENBQUM7QUFnRDlFLDJCQUEyQjtBQUNkLFFBQUEsdUJBQXVCLEdBQUcscUJBQThCLENBQUMifQ==
@@ -0,0 +1,42 @@
1
+ import { FormConfigVisitorOutline } from "../visitor/base.outline";
2
+ import { FieldComponentConfig, FieldComponentDefinition } from "../field-component.model";
3
+ import { ValidationSummaryFieldComponentConfigOutline, ValidationSummaryFieldComponentDefinitionOutline, ValidationSummaryFormComponentDefinitionOutline } from "./validation-summary.outline";
4
+ import { FormComponentDefinition } from "../form-component.model";
5
+ import { AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
6
+ export declare class ValidationSummaryFieldComponentConfig extends FieldComponentConfig implements ValidationSummaryFieldComponentConfigOutline {
7
+ showWhenValid: boolean;
8
+ constructor();
9
+ }
10
+ export declare class ValidationSummaryFieldComponentDefinition extends FieldComponentDefinition implements ValidationSummaryFieldComponentDefinitionOutline {
11
+ class: "ValidationSummaryComponent";
12
+ config?: ValidationSummaryFieldComponentConfigOutline;
13
+ constructor();
14
+ accept(visitor: FormConfigVisitorOutline): void;
15
+ }
16
+ export declare class ValidationSummaryFormComponentDefinition extends FormComponentDefinition implements ValidationSummaryFormComponentDefinitionOutline {
17
+ component: ValidationSummaryFieldComponentDefinitionOutline;
18
+ model?: never;
19
+ layout?: AvailableFieldLayoutDefinitionOutlines;
20
+ constructor();
21
+ accept(visitor: FormConfigVisitorOutline): void;
22
+ }
23
+ export declare const ValidationSummaryMap: ({
24
+ kind: "FieldComponentConfigKind";
25
+ def: typeof ValidationSummaryFieldComponentConfig;
26
+ class?: undefined;
27
+ } | {
28
+ kind: "FieldComponentDefinitionKind";
29
+ def: typeof ValidationSummaryFieldComponentDefinition;
30
+ class: "ValidationSummaryComponent";
31
+ } | {
32
+ kind: "FormComponentDefinitionKind";
33
+ def: typeof ValidationSummaryFormComponentDefinition;
34
+ class: "ValidationSummaryComponent";
35
+ })[];
36
+ export declare const ValidationSummaryDefaults: {
37
+ FormComponentDefinitionKind: {
38
+ ValidationSummaryComponent: {
39
+ FieldComponentDefinitionKind: "ValidationSummaryComponent";
40
+ };
41
+ };
42
+ };
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidationSummaryDefaults = exports.ValidationSummaryMap = exports.ValidationSummaryFormComponentDefinition = exports.ValidationSummaryFieldComponentDefinition = exports.ValidationSummaryFieldComponentConfig = void 0;
4
+ const shared_outline_1 = require("../shared.outline");
5
+ const field_component_model_1 = require("../field-component.model");
6
+ const validation_summary_outline_1 = require("./validation-summary.outline");
7
+ const form_component_model_1 = require("../form-component.model");
8
+ /* Validation Summary Component */
9
+ class ValidationSummaryFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
10
+ showWhenValid = false;
11
+ constructor() {
12
+ super();
13
+ }
14
+ }
15
+ exports.ValidationSummaryFieldComponentConfig = ValidationSummaryFieldComponentConfig;
16
+ class ValidationSummaryFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
17
+ class = validation_summary_outline_1.ValidationSummaryComponentName;
18
+ config;
19
+ constructor() {
20
+ super();
21
+ }
22
+ accept(visitor) {
23
+ visitor.visitValidationSummaryFieldComponentDefinition(this);
24
+ }
25
+ }
26
+ exports.ValidationSummaryFieldComponentDefinition = ValidationSummaryFieldComponentDefinition;
27
+ /* Validation Summary Form Component */
28
+ class ValidationSummaryFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
29
+ component;
30
+ model;
31
+ layout;
32
+ constructor() {
33
+ super();
34
+ }
35
+ accept(visitor) {
36
+ visitor.visitValidationSummaryFormComponentDefinition(this);
37
+ }
38
+ }
39
+ exports.ValidationSummaryFormComponentDefinition = ValidationSummaryFormComponentDefinition;
40
+ exports.ValidationSummaryMap = [
41
+ { kind: shared_outline_1.FieldComponentConfigKind, def: ValidationSummaryFieldComponentConfig },
42
+ {
43
+ kind: shared_outline_1.FieldComponentDefinitionKind,
44
+ def: ValidationSummaryFieldComponentDefinition,
45
+ class: validation_summary_outline_1.ValidationSummaryComponentName
46
+ },
47
+ {
48
+ kind: shared_outline_1.FormComponentDefinitionKind,
49
+ def: ValidationSummaryFormComponentDefinition,
50
+ class: validation_summary_outline_1.ValidationSummaryComponentName
51
+ },
52
+ ];
53
+ exports.ValidationSummaryDefaults = {
54
+ [shared_outline_1.FormComponentDefinitionKind]: {
55
+ [validation_summary_outline_1.ValidationSummaryComponentName]: {
56
+ [shared_outline_1.FieldComponentDefinitionKind]: validation_summary_outline_1.ValidationSummaryComponentName,
57
+ },
58
+ },
59
+ };
60
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbi1zdW1tYXJ5Lm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbmZpZy9jb21wb25lbnQvdmFsaWRhdGlvbi1zdW1tYXJ5Lm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLHNEQUFzSDtBQUN0SCxvRUFBd0Y7QUFDeEYsNkVBSXNDO0FBQ3RDLGtFQUFnRTtBQUtoRSxtQ0FBbUM7QUFFbkMsTUFBYSxxQ0FBc0MsU0FBUSw0Q0FBb0I7SUFDM0UsYUFBYSxHQUFHLEtBQUssQ0FBQztJQUV0QjtRQUNJLEtBQUssRUFBRSxDQUFDO0lBQ1osQ0FBQztDQUNKO0FBTkQsc0ZBTUM7QUFHRCxNQUFhLHlDQUEwQyxTQUFRLGdEQUF3QjtJQUNuRixLQUFLLEdBQUcsMkRBQThCLENBQUM7SUFDdkMsTUFBTSxDQUFnRDtJQUV0RDtRQUNJLEtBQUssRUFBRSxDQUFDO0lBQ1osQ0FBQztJQUdELE1BQU0sQ0FBQyxPQUFpQztRQUNwQyxPQUFPLENBQUMsOENBQThDLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDakUsQ0FBQztDQUNKO0FBWkQsOEZBWUM7QUFFRCx1Q0FBdUM7QUFHdkMsTUFBYSx3Q0FBeUMsU0FBUSw4Q0FBdUI7SUFDakYsU0FBUyxDQUFvRDtJQUM3RCxLQUFLLENBQVM7SUFDZCxNQUFNLENBQTBDO0lBRWhEO1FBQ0ksS0FBSyxFQUFFLENBQUM7SUFDWixDQUFDO0lBRUQsTUFBTSxDQUFDLE9BQWlDO1FBQ3BDLE9BQU8sQ0FBQyw2Q0FBNkMsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUNoRSxDQUFDO0NBQ0o7QUFaRCw0RkFZQztBQUVZLFFBQUEsb0JBQW9CLEdBQUc7SUFDaEMsRUFBQyxJQUFJLEVBQUUseUNBQXdCLEVBQUUsR0FBRyxFQUFFLHFDQUFxQyxFQUFDO0lBQzVFO1FBQ0ksSUFBSSxFQUFFLDZDQUE0QjtRQUNsQyxHQUFHLEVBQUUseUNBQXlDO1FBQzlDLEtBQUssRUFBRSwyREFBOEI7S0FDeEM7SUFDRDtRQUNJLElBQUksRUFBRSw0Q0FBMkI7UUFDakMsR0FBRyxFQUFFLHdDQUF3QztRQUM3QyxLQUFLLEVBQUUsMkRBQThCO0tBQ3hDO0NBQ0osQ0FBQztBQUNXLFFBQUEseUJBQXlCLEdBQUc7SUFDckMsQ0FBQyw0Q0FBMkIsQ0FBQyxFQUFFO1FBQzNCLENBQUMsMkRBQThCLENBQUMsRUFBRTtZQUM5QixDQUFDLDZDQUE0QixDQUFDLEVBQUUsMkRBQThCO1NBQ2pFO0tBQ0o7Q0FDSixDQUFDIn0=
@@ -0,0 +1,57 @@
1
+ import { FieldComponentConfigFrame, FieldComponentConfigOutline, FieldComponentDefinitionFrame, FieldComponentDefinitionOutline } from "../field-component.outline";
2
+ import { FormComponentDefinitionFrame, FormComponentDefinitionOutline } from "../form-component.outline";
3
+ import { AvailableFieldLayoutDefinitionFrames, AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
4
+ import { FieldComponentConfigFrameKindType, FieldComponentConfigKindType, FieldComponentDefinitionFrameKindType, FieldComponentDefinitionKindType, FormComponentDefinitionFrameKindType, FormComponentDefinitionKindType } from "../shared.outline";
5
+ export declare const ValidationSummaryComponentName: "ValidationSummaryComponent";
6
+ export type ValidationSummaryComponentNameType = typeof ValidationSummaryComponentName;
7
+ export interface ValidationSummaryFieldComponentConfigFrame extends FieldComponentConfigFrame {
8
+ /**
9
+ * Whether to include tab labels in validation summary labels.
10
+ * Group labels are always included.
11
+ */
12
+ includeTabLabel?: boolean;
13
+ /**
14
+ * Whether to render the informational success message when the form has no validation errors.
15
+ * Defaults to false.
16
+ */
17
+ showWhenValid?: boolean;
18
+ }
19
+ export interface ValidationSummaryFieldComponentConfigOutline extends ValidationSummaryFieldComponentConfigFrame, FieldComponentConfigOutline {
20
+ }
21
+ export interface ValidationSummaryFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
22
+ class: ValidationSummaryComponentNameType;
23
+ config?: ValidationSummaryFieldComponentConfigFrame;
24
+ }
25
+ export interface ValidationSummaryFieldComponentDefinitionOutline extends ValidationSummaryFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
26
+ class: ValidationSummaryComponentNameType;
27
+ config?: ValidationSummaryFieldComponentConfigOutline;
28
+ }
29
+ export interface ValidationSummaryFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
30
+ component: ValidationSummaryFieldComponentDefinitionFrame;
31
+ model?: never;
32
+ layout?: AvailableFieldLayoutDefinitionFrames;
33
+ }
34
+ export interface ValidationSummaryFormComponentDefinitionOutline extends ValidationSummaryFormComponentDefinitionFrame, FormComponentDefinitionOutline {
35
+ component: ValidationSummaryFieldComponentDefinitionOutline;
36
+ model?: never;
37
+ layout?: AvailableFieldLayoutDefinitionOutlines;
38
+ }
39
+ export type ValidationSummaryTypes = {
40
+ kind: FieldComponentConfigFrameKindType;
41
+ class: ValidationSummaryFieldComponentConfigFrame;
42
+ } | {
43
+ kind: FieldComponentDefinitionFrameKindType;
44
+ class: ValidationSummaryFieldComponentDefinitionFrame;
45
+ } | {
46
+ kind: FormComponentDefinitionFrameKindType;
47
+ class: ValidationSummaryFormComponentDefinitionFrame;
48
+ } | {
49
+ kind: FieldComponentConfigKindType;
50
+ class: ValidationSummaryFieldComponentConfigOutline;
51
+ } | {
52
+ kind: FieldComponentDefinitionKindType;
53
+ class: ValidationSummaryFieldComponentDefinitionOutline;
54
+ } | {
55
+ kind: FormComponentDefinitionKindType;
56
+ class: ValidationSummaryFormComponentDefinitionOutline;
57
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidationSummaryComponentName = void 0;
4
+ /* Validation Summary Component */
5
+ exports.ValidationSummaryComponentName = "ValidationSummaryComponent";
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbi1zdW1tYXJ5Lm91dGxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29uZmlnL2NvbXBvbmVudC92YWxpZGF0aW9uLXN1bW1hcnkub3V0bGluZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFhQSxtQ0FBbUM7QUFFdEIsUUFBQSw4QkFBOEIsR0FBRyw0QkFBcUMsQ0FBQyJ9