@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,175 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormComponentDefinitionMap = exports.FieldLayoutDefinitionMap = exports.FieldModelDefinitionMap = exports.FieldComponentDefinitionMap = exports.KindNameDefaultsMap = exports.AllDefs = void 0;
4
+ const shared_outline_1 = require("./shared.outline");
5
+ const default_layout_model_1 = require("./component/default-layout.model");
6
+ const action_row_layout_model_1 = require("./component/action-row-layout.model");
7
+ const inline_layout_model_1 = require("./component/inline-layout.model");
8
+ const repeatable_model_1 = require("./component/repeatable.model");
9
+ const group_model_1 = require("./component/group.model");
10
+ const save_button_model_1 = require("./component/save-button.model");
11
+ const save_status_model_1 = require("./component/save-status.model");
12
+ const text_area_model_1 = require("./component/text-area.model");
13
+ const content_model_1 = require("./component/content.model");
14
+ const simple_input_model_1 = require("./component/simple-input.model");
15
+ const validation_summary_model_1 = require("./component/validation-summary.model");
16
+ const tab_content_model_1 = require("./component/tab-content.model");
17
+ const tab_model_1 = require("./component/tab.model");
18
+ const accordion_model_1 = require("./component/accordion.model");
19
+ const checkbox_input_model_1 = require("./component/checkbox-input.model");
20
+ const dropdown_input_model_1 = require("./component/dropdown-input.model");
21
+ const radio_input_model_1 = require("./component/radio-input.model");
22
+ const date_input_model_1 = require("./component/date-input.model");
23
+ const reusable_model_1 = require("./component/reusable.model");
24
+ const reusable_outline_1 = require("./component/reusable.outline");
25
+ const question_tree_model_1 = require("./component/question-tree.model");
26
+ const checkbox_tree_model_1 = require("./component/checkbox-tree.model");
27
+ const record_selector_model_1 = require("./component/record-selector.model");
28
+ const typeahead_input_model_1 = require("./component/typeahead-input.model");
29
+ const rich_text_editor_model_1 = require("./component/rich-text-editor.model");
30
+ const map_model_1 = require("./component/map.model");
31
+ const file_upload_model_1 = require("./component/file-upload.model");
32
+ const pdf_list_model_1 = require("./component/pdf-list.model");
33
+ const record_metadata_retriever_model_1 = require("./component/record-metadata-retriever.model");
34
+ const data_location_model_1 = require("./component/data-location.model");
35
+ const publish_data_location_refresh_model_1 = require("./component/publish-data-location-refresh.model");
36
+ const publish_data_location_selector_model_1 = require("./component/publish-data-location-selector.model");
37
+ const cancel_button_model_1 = require("./component/cancel-button.model");
38
+ const tab_nav_button_model_1 = require("./component/tab-nav-button.model");
39
+ const delete_button_model_1 = require("./component/delete-button.model");
40
+ /**
41
+ * The static array of all available classes and the kind of class.
42
+ * Other convenience mappings are built from this.
43
+ */
44
+ exports.AllDefs = [
45
+ ...default_layout_model_1.DefaultLayoutMap,
46
+ ...action_row_layout_model_1.ActionRowLayoutMap,
47
+ ...inline_layout_model_1.InlineLayoutMap,
48
+ ...repeatable_model_1.RepeatableMap,
49
+ ...group_model_1.GroupMap,
50
+ ...save_button_model_1.SaveButtonMap,
51
+ ...save_status_model_1.SaveStatusMap,
52
+ ...cancel_button_model_1.CancelButtonMap,
53
+ ...delete_button_model_1.DeleteButtonMap,
54
+ ...tab_nav_button_model_1.TabNavButtonMap,
55
+ ...text_area_model_1.TextAreaMap,
56
+ ...content_model_1.ContentMap,
57
+ ...simple_input_model_1.SimpleInputMap,
58
+ ...validation_summary_model_1.ValidationSummaryMap,
59
+ ...tab_content_model_1.TabContentMap,
60
+ ...tab_model_1.TabMap,
61
+ ...accordion_model_1.AccordionMap,
62
+ ...checkbox_input_model_1.CheckboxInputMap,
63
+ ...dropdown_input_model_1.DropdownInputMap,
64
+ ...radio_input_model_1.RadioInputMap,
65
+ ...date_input_model_1.DateInputMap,
66
+ ...reusable_model_1.ReusableMap,
67
+ ...question_tree_model_1.QuestionTreeMap,
68
+ ...checkbox_tree_model_1.CheckboxTreeMap,
69
+ ...record_selector_model_1.RecordSelectorMap,
70
+ ...typeahead_input_model_1.TypeaheadInputMap,
71
+ ...rich_text_editor_model_1.RichTextEditorMap,
72
+ ...map_model_1.MapMap,
73
+ ...file_upload_model_1.FileUploadMap,
74
+ ...pdf_list_model_1.PDFListMap,
75
+ ...record_metadata_retriever_model_1.RecordMetadataRetrieverMap,
76
+ ...data_location_model_1.DataLocationMap,
77
+ // Register the stateless refresh trigger alongside the publication selector so
78
+ // construct/migrate/client visitors all see one coherent component family.
79
+ ...publish_data_location_refresh_model_1.PublishDataLocationRefreshMap,
80
+ ...publish_data_location_selector_model_1.PublishDataLocationSelectorMap,
81
+ ];
82
+ /**
83
+ * The static array of all default mappings from kind to class names.
84
+ * Mapping: source kind -> source name -> target kind -> target name.
85
+ */
86
+ const RawDefaults = [
87
+ // DefaultLayoutDefaults,
88
+ repeatable_model_1.RepeatableDefaults,
89
+ group_model_1.GroupDefaults,
90
+ save_button_model_1.SaveButtonDefaults,
91
+ save_status_model_1.SaveStatusDefaults,
92
+ cancel_button_model_1.CancelButtonDefaults,
93
+ delete_button_model_1.DeleteButtonDefaults,
94
+ tab_nav_button_model_1.TabNavButtonDefaults,
95
+ text_area_model_1.TextAreaDefaults,
96
+ content_model_1.ContentDefaults,
97
+ simple_input_model_1.SimpleInputDefaults,
98
+ validation_summary_model_1.ValidationSummaryDefaults,
99
+ tab_content_model_1.TabContentDefaults,
100
+ tab_model_1.TabDefaults,
101
+ accordion_model_1.AccordionDefaults,
102
+ checkbox_input_model_1.CheckboxInputDefaults,
103
+ dropdown_input_model_1.DropdownInputDefaults,
104
+ radio_input_model_1.RadioInputDefaults,
105
+ date_input_model_1.DateInputDefaults,
106
+ reusable_model_1.ReusableDefaults,
107
+ question_tree_model_1.QuestionTreeDefaults,
108
+ checkbox_tree_model_1.CheckboxTreeDefaults,
109
+ record_selector_model_1.RecordSelectorDefaults,
110
+ typeahead_input_model_1.TypeaheadInputDefaults,
111
+ rich_text_editor_model_1.RichTextEditorDefaults,
112
+ map_model_1.MapDefaults,
113
+ file_upload_model_1.FileUploadDefaults,
114
+ pdf_list_model_1.PDFListDefaults,
115
+ record_metadata_retriever_model_1.RecordMetadataRetrieverDefaults,
116
+ data_location_model_1.DataLocationDefaults,
117
+ publish_data_location_refresh_model_1.PublishDataLocationRefreshDefaults,
118
+ publish_data_location_selector_model_1.PublishDataLocationSelectorDefaults,
119
+ ];
120
+ exports.KindNameDefaultsMap = new Map();
121
+ for (const rawDefault of RawDefaults) {
122
+ for (const [sourceKind, sourceNameObj] of Object.entries(rawDefault)) {
123
+ if (!exports.KindNameDefaultsMap.has(sourceKind)) {
124
+ exports.KindNameDefaultsMap.set(sourceKind, new Map());
125
+ }
126
+ const sourceNameMap = exports.KindNameDefaultsMap.get(sourceKind);
127
+ if (sourceNameMap) {
128
+ for (const [sourceName, targetObj] of Object.entries(sourceNameObj)) {
129
+ if (!sourceNameMap.has(sourceName)) {
130
+ sourceNameMap.set(sourceName, new Map());
131
+ }
132
+ const targetMap = sourceNameMap.get(sourceName);
133
+ if (targetMap) {
134
+ for (const [targetKind, targetName] of Object.entries(targetObj ?? {})) {
135
+ if (targetMap.has(targetKind)) {
136
+ throw new Error(`Name defaults map already has an entry for source kind '${sourceKind}' name '${sourceName}', cannot add another one.`);
137
+ }
138
+ else {
139
+ targetMap.set(targetKind, targetName?.toString() ?? '');
140
+ }
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+ const ComponentDefs = exports.AllDefs.filter(i => i.kind === shared_outline_1.FieldComponentDefinitionKind);
148
+ const ComponentClassNames = ComponentDefs.filter(i => i.class !== reusable_outline_1.ReusableComponentName).map(i => i.class);
149
+ const ModelDefs = exports.AllDefs.filter(i => i.kind === shared_outline_1.FieldModelDefinitionKind);
150
+ const ModelClassNames = ModelDefs.map(i => i.class);
151
+ const LayoutDefs = exports.AllDefs.filter(i => i.kind === shared_outline_1.FieldLayoutDefinitionKind);
152
+ const LayoutClassNames = LayoutDefs.map(i => i.class);
153
+ /*
154
+ * Runtime variables containing one of the different kinds of classes.
155
+ * These make it easier to reference the set of classes of one kind.
156
+ *
157
+ * Includes the Reusable component names, as these are needed in the migration visitor.
158
+ */
159
+ function toClassDefMap(items) {
160
+ return new Map(items.map(i => [i.class, i.def]));
161
+ }
162
+ const VisitorComponentDefs = exports.AllDefs.filter(i => i.kind === shared_outline_1.FieldComponentDefinitionKind);
163
+ const VisitorComponentClassNames = VisitorComponentDefs.map(i => i.class);
164
+ const VisitorComponentDefItems = VisitorComponentDefs.map(i => i.def);
165
+ const VisitorModelDefs = exports.AllDefs.filter(i => i.kind === shared_outline_1.FieldModelDefinitionKind);
166
+ const VisitorModelDefItems = VisitorModelDefs.map(i => i.def);
167
+ const VisitorLayoutDefs = exports.AllDefs.filter(i => i.kind === shared_outline_1.FieldLayoutDefinitionKind);
168
+ const VisitorLayoutDefItems = VisitorLayoutDefs.map(i => i.def);
169
+ const VisitorFormComponentDefs = exports.AllDefs.filter(i => i.kind === shared_outline_1.FormComponentDefinitionKind);
170
+ const VisitorFormComponentDefItems = VisitorFormComponentDefs.map(i => i.def);
171
+ exports.FieldComponentDefinitionMap = toClassDefMap(VisitorComponentDefs);
172
+ exports.FieldModelDefinitionMap = toClassDefMap(ModelDefs);
173
+ exports.FieldLayoutDefinitionMap = toClassDefMap(LayoutDefs);
174
+ exports.FormComponentDefinitionMap = toClassDefMap(VisitorFormComponentDefs);
175
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGljdGlvbmFyeS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb25maWcvZGljdGlvb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Q2xGLE1BQU0sb0JBQW9CLEdBQUcsZ0JBQWdCLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBSTlELE1BQU0saUJBQWlCLEdBQUcsZUFBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxJQUFJLEtBQUssMENBQXlCLENBQUMsQ0FBQztBQUNwRixNQUFNLHFCQUFxQixHQUFHLGlCQUFpQixDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUloRSxNQUFNLHdCQUF3QixHQUFHLGVBQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxLQUFLLDRDQUEyQixDQUFDLENBQUM7QUFDN0YsTUFBTSw0QkFBNEIsR0FBRyx3QkFBd0IsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUM7QUFJakUsUUFBQSwyQkFBMkIsR0FDdEMsYUFBYSxDQUErQixvQkFBb0IsQ0FBQyxDQUFDO0FBQ3ZELFFBQUEsdUJBQXVCLEdBQWdDLGFBQWEsQ0FBMkIsU0FBUyxDQUFDLENBQUM7QUFDMUcsUUFBQSx3QkFBd0IsR0FDbkMsYUFBYSxDQUE0QixVQUFVLENBQUMsQ0FBQztBQUMxQyxRQUFBLDBCQUEwQixHQUNyQyxhQUFhLENBQW1DLHdCQUF3QixDQUFDLENBQUMifQ==
@@ -0,0 +1,94 @@
1
+ import { RepeatableElementFieldLayoutDefinitionFrame, RepeatableElementFieldLayoutDefinitionOutline, RepeatableTypes } from './component/repeatable.outline';
2
+ import { GroupTypes } from './component/group.outline';
3
+ import { SaveButtonTypes } from './component/save-button.outline';
4
+ import { SaveStatusTypes } from './component/save-status.outline';
5
+ import { TextAreaTypes } from './component/text-area.outline';
6
+ import { ContentTypes } from './component/content.outline';
7
+ import { SimpleInputTypes } from './component/simple-input.outline';
8
+ import { ValidationSummaryTypes } from './component/validation-summary.outline';
9
+ import { TabContentFormComponentDefinitionOutline, TabContentFormComponentDefinitionFrame, TabContentTypes } from './component/tab-content.outline';
10
+ import { TabTypes } from './component/tab.outline';
11
+ import { AccordionTypes } from './component/accordion.outline';
12
+ import { DefaultLayoutTypes } from './component/default-layout.outline';
13
+ import { InlineLayoutTypes } from './component/inline-layout.outline';
14
+ import { ActionRowLayoutTypes } from './component/action-row-layout.outline';
15
+ import { FieldComponentDefinitionFrameKindType, FieldLayoutDefinitionFrameKindType, FieldLayoutDefinitionKindType, FormComponentDefinitionFrameKindType, FormComponentDefinitionKindType } from './shared.outline';
16
+ import { CheckboxInputTypes } from './component/checkbox-input.outline';
17
+ import { DropdownInputTypes } from './component/dropdown-input.outline';
18
+ import { RadioInputTypes } from './component/radio-input.outline';
19
+ import { DateInputTypes } from './component/date-input.outline';
20
+ import { ReusableTypes } from './component/reusable.outline';
21
+ import { QuestionTreeTypes } from './component/question-tree.outline';
22
+ import { CheckboxTreeTypes } from './component/checkbox-tree.outline';
23
+ import { RecordSelectorTypes } from './component/record-selector.outline';
24
+ import { TypeaheadInputTypes } from './component/typeahead-input.outline';
25
+ import { RichTextEditorTypes } from './component/rich-text-editor.outline';
26
+ import { MapTypes } from './component/map.outline';
27
+ import { FileUploadTypes } from './component/file-upload.outline';
28
+ import { PDFListTypes } from './component/pdf-list.outline';
29
+ import { RecordMetadataRetrieverTypes } from './component/record-metadata-retriever.outline';
30
+ import { DataLocationTypes } from './component/data-location.outline';
31
+ import { PublishDataLocationRefreshTypes } from './component/publish-data-location-refresh.outline';
32
+ import { PublishDataLocationSelectorTypes } from './component/publish-data-location-selector.outline';
33
+ import { CancelButtonTypes } from './component/cancel-button.outline';
34
+ import { TabNavButtonTypes } from './component/tab-nav-button.outline';
35
+ import { DeleteButtonTypes } from './component/delete-button.outline';
36
+ import { FieldComponentDefinitionFrame } from "./field-component.outline";
37
+ import { FieldLayoutDefinitionFrame } from "./field-layout.outline";
38
+ /**
39
+ * The static type union of all available interfaces that provides typing for the object literal and schema.
40
+ * Other convenience mappings are built from this.
41
+ */
42
+ export type AllTypes = DefaultLayoutTypes | InlineLayoutTypes | ActionRowLayoutTypes | RepeatableTypes | GroupTypes | SaveButtonTypes | SaveStatusTypes | CancelButtonTypes | DeleteButtonTypes | TabNavButtonTypes | TextAreaTypes | ContentTypes | SimpleInputTypes | ValidationSummaryTypes | TabContentTypes | TabTypes | AccordionTypes | CheckboxInputTypes | DropdownInputTypes | RadioInputTypes | DateInputTypes | ReusableTypes | QuestionTreeTypes | CheckboxTreeTypes | RecordSelectorTypes | TypeaheadInputTypes | RichTextEditorTypes | MapTypes | FileUploadTypes | PDFListTypes | RecordMetadataRetrieverTypes | DataLocationTypes | PublishDataLocationRefreshTypes | PublishDataLocationSelectorTypes;
43
+ /**
44
+ * The form component definition frames available for use in any list of form components.
45
+ */
46
+ export type AvailableFormComponentDefinitionFrames = Exclude<Extract<AllTypes, {
47
+ kind: FormComponentDefinitionFrameKindType;
48
+ }>, TabContentFormComponentDefinitionFrame>['class'];
49
+ /**
50
+ * All form component definition outlines.
51
+ */
52
+ export type AllFormComponentDefinitionOutlines = Extract<AllTypes, {
53
+ kind: FormComponentDefinitionKindType;
54
+ }>['class'];
55
+ /**
56
+ * All possible field component definition frames.
57
+ */
58
+ export type AllFieldComponentDefinitionFrames = Extract<AllTypes, {
59
+ kind: FieldComponentDefinitionFrameKindType;
60
+ }>['class'];
61
+ /**
62
+ * All possible field layout definition frames.
63
+ */
64
+ export type AllFieldLayoutDefinitionFrames = Extract<AllTypes, {
65
+ kind: FieldLayoutDefinitionFrameKindType;
66
+ }>['class'];
67
+ /**
68
+ * All possible field component and field layout definition frames, including the non-component specific frames.
69
+ */
70
+ export type FormFieldComponentOrLayoutDefinition = FieldComponentDefinitionFrame | FieldLayoutDefinitionFrame | AllFieldComponentDefinitionFrames | AllFieldLayoutDefinitionFrames;
71
+ /**
72
+ * The form component definition outlines available for use in any list of form components.
73
+ */
74
+ export type AvailableFormComponentDefinitionOutlines = Exclude<Extract<AllTypes, {
75
+ kind: FormComponentDefinitionKindType;
76
+ }>, TabContentFormComponentDefinitionOutline>['class'];
77
+ /**
78
+ * The field layout definition outlines available for use by any form component.
79
+ */
80
+ export type AvailableFieldLayoutDefinitionOutlines = Exclude<Extract<AllTypes, {
81
+ kind: FieldLayoutDefinitionKindType;
82
+ }>, RepeatableElementFieldLayoutDefinitionFrame>['class'];
83
+ /**
84
+ * The field layout definition frames available for use by any form component.
85
+ */
86
+ export type AvailableFieldLayoutDefinitionFrames = Exclude<Extract<AllTypes, {
87
+ kind: FieldLayoutDefinitionFrameKindType;
88
+ }>, RepeatableElementFieldLayoutDefinitionOutline>['class'];
89
+ /**
90
+ * The type for a mapping of reusable form config name to form config definition.
91
+ */
92
+ export type ReusableFormDefinitions = {
93
+ [key: string]: AvailableFormComponentDefinitionFrames[];
94
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGljdGlvbmFyeS5vdXRsaW5lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbmZpZy9kaWN0aW9uYXJ5Lm91dGxpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -0,0 +1,7 @@
1
+ import { BaseFieldComponentConfig, BaseFieldComponentDefinition } from "./base-field-component.model";
2
+ import { FieldComponentConfigOutline, FieldComponentDefinitionOutline } from "./field-component.outline";
3
+ export declare abstract class FieldComponentConfig extends BaseFieldComponentConfig implements FieldComponentConfigOutline {
4
+ }
5
+ export declare abstract class FieldComponentDefinition extends BaseFieldComponentDefinition implements FieldComponentDefinitionOutline {
6
+ abstract config?: FieldComponentConfig;
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldComponentDefinition = exports.FieldComponentConfig = void 0;
4
+ const base_field_component_model_1 = require("./base-field-component.model");
5
+ class FieldComponentConfig extends base_field_component_model_1.BaseFieldComponentConfig {
6
+ }
7
+ exports.FieldComponentConfig = FieldComponentConfig;
8
+ class FieldComponentDefinition extends base_field_component_model_1.BaseFieldComponentDefinition {
9
+ }
10
+ exports.FieldComponentDefinition = FieldComponentDefinition;
11
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQtY29tcG9uZW50Lm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbmZpZy9maWVsZC1jb21wb25lbnQubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkVBR3NDO0FBSXRDLE1BQXNCLG9CQUFxQixTQUFRLHFEQUF3QjtDQUMxRTtBQURELG9EQUNDO0FBR0QsTUFBc0Isd0JBQXlCLFNBQVEseURBQTRCO0NBRWxGO0FBRkQsNERBRUMifQ==
@@ -0,0 +1,20 @@
1
+ import { BaseFieldComponentConfigFrame, BaseFieldComponentDefinitionFrame, BaseFieldComponentDefinitionOutline } from './base-field-component.outline';
2
+ export interface FieldComponentConfigFrame extends BaseFieldComponentConfigFrame {
3
+ onItemSelect?: {
4
+ /** Dot-path into selectedItem.raw (or selectedItem) to extract this field's value */
5
+ rawPath: string;
6
+ /**
7
+ * Value to set when selection is cleared. Defaults to null.
8
+ * Should be type-compatible with the target control (e.g. string for text inputs, null for optional fields).
9
+ */
10
+ clearValue?: unknown;
11
+ };
12
+ }
13
+ export interface FieldComponentConfigOutline extends FieldComponentConfigFrame {
14
+ }
15
+ export interface FieldComponentDefinitionFrame extends BaseFieldComponentDefinitionFrame {
16
+ config?: FieldComponentConfigFrame;
17
+ }
18
+ export interface FieldComponentDefinitionOutline extends BaseFieldComponentDefinitionOutline, FieldComponentDefinitionFrame {
19
+ config?: FieldComponentConfigOutline;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQtY29tcG9uZW50Lm91dGxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29uZmlnL2ZpZWxkLWNvbXBvbmVudC5vdXRsaW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -0,0 +1,19 @@
1
+ import { BaseFieldComponentConfig, BaseFieldComponentDefinition } from "./base-field-component.model";
2
+ import { FieldLayoutConfigOutline, FieldLayoutDefinitionOutline } from "./field-layout.outline";
3
+ /**
4
+ * The common form field layout config properties.
5
+ */
6
+ export declare class FieldLayoutConfig extends BaseFieldComponentConfig implements FieldLayoutConfigOutline {
7
+ labelRequiredStr?: string;
8
+ helpText?: string;
9
+ cssClassesMap?: Record<string, string>;
10
+ helpTextVisibleOnInit?: boolean;
11
+ helpTextVisible?: boolean;
12
+ }
13
+ /**
14
+ * The common form field layout definition properties.
15
+ */
16
+ export declare abstract class FieldLayoutDefinition extends BaseFieldComponentDefinition implements FieldLayoutDefinitionOutline {
17
+ abstract config?: FieldLayoutConfig;
18
+ name?: string;
19
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldLayoutDefinition = exports.FieldLayoutConfig = void 0;
4
+ const base_field_component_model_1 = require("./base-field-component.model");
5
+ /**
6
+ * The common form field layout config properties.
7
+ */
8
+ class FieldLayoutConfig extends base_field_component_model_1.BaseFieldComponentConfig {
9
+ labelRequiredStr = '*';
10
+ helpText;
11
+ cssClassesMap = {};
12
+ helpTextVisibleOnInit = false;
13
+ helpTextVisible = false;
14
+ }
15
+ exports.FieldLayoutConfig = FieldLayoutConfig;
16
+ /**
17
+ * The common form field layout definition properties.
18
+ */
19
+ class FieldLayoutDefinition extends base_field_component_model_1.BaseFieldComponentDefinition {
20
+ name;
21
+ }
22
+ exports.FieldLayoutDefinition = FieldLayoutDefinition;
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQtbGF5b3V0Lm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbmZpZy9maWVsZC1sYXlvdXQubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkVBR3NDO0FBUXRDOztHQUVHO0FBQ0gsTUFBYSxpQkFBa0IsU0FBUSxxREFBd0I7SUFDcEQsZ0JBQWdCLEdBQVksR0FBRyxDQUFDO0lBQ2hDLFFBQVEsQ0FBVTtJQUNsQixhQUFhLEdBQTRCLEVBQUUsQ0FBQztJQUM1QyxxQkFBcUIsR0FBYSxLQUFLLENBQUM7SUFDeEMsZUFBZSxHQUFhLEtBQUssQ0FBQztDQUM1QztBQU5ELDhDQU1DO0FBSUQ7O0dBRUc7QUFDSCxNQUFzQixxQkFBc0IsU0FBUSx5REFBNEI7SUFFNUUsSUFBSSxDQUFVO0NBQ2pCO0FBSEQsc0RBR0MifQ==
@@ -0,0 +1,42 @@
1
+ import { BaseFieldComponentConfigFrame, BaseFieldComponentDefinitionFrame } from "./base-field-component.outline";
2
+ import { FieldDefinitionOutline } from "./field.outline";
3
+ /**
4
+ * The form field layout config interface that provides typing for the object literal and schema.
5
+ */
6
+ export interface FieldLayoutConfigFrame extends BaseFieldComponentConfigFrame {
7
+ /**
8
+ * The string to show when a value is required.
9
+ */
10
+ labelRequiredStr?: string;
11
+ /**
12
+ * The help text translation message id.
13
+ */
14
+ helpText?: string;
15
+ /**
16
+ * The css classes to apply to the layout element.
17
+ */
18
+ cssClassesMap?: Record<string, string>;
19
+ /**
20
+ * Whether the help text is visible on initialisation or not.
21
+ */
22
+ helpTextVisibleOnInit?: boolean;
23
+ /**
24
+ * Whether the help text is currently visible or not.
25
+ */
26
+ helpTextVisible?: boolean;
27
+ }
28
+ export interface FieldLayoutConfigOutline extends FieldLayoutConfigFrame {
29
+ }
30
+ /**
31
+ * The form field layout definition interface that provides typing for the object literal and schema.
32
+ */
33
+ export interface FieldLayoutDefinitionFrame extends BaseFieldComponentDefinitionFrame {
34
+ config?: FieldLayoutConfigFrame;
35
+ /**
36
+ * Optional name for the layout, used to reference the layout on the client-side.
37
+ */
38
+ name?: string;
39
+ }
40
+ export interface FieldLayoutDefinitionOutline extends FieldLayoutDefinitionFrame, FieldDefinitionOutline {
41
+ config?: FieldLayoutConfigFrame;
42
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQtbGF5b3V0Lm91dGxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29uZmlnL2ZpZWxkLWxheW91dC5vdXRsaW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -0,0 +1,22 @@
1
+ import { FormValidatorConfig } from "../validation/form.model";
2
+ import { FieldDefinition } from "./field.model";
3
+ import { FieldModelConfigOutline, FieldModelDefinitionOutline } from "./field-model.outline";
4
+ /**
5
+ * The common form field model config properties.
6
+ */
7
+ export declare abstract class FieldModelConfig<ValueType> implements FieldModelConfigOutline<ValueType> {
8
+ defaultValue?: ValueType;
9
+ newEntryValue?: ValueType;
10
+ disableFormBinding?: boolean;
11
+ editCssClasses?: string;
12
+ validators?: FormValidatorConfig[];
13
+ value?: ValueType;
14
+ wrapperCssClasses?: string;
15
+ disabled?: boolean;
16
+ }
17
+ /**
18
+ * The common form field model definition properties.
19
+ */
20
+ export declare abstract class FieldModelDefinition<ValueType> extends FieldDefinition implements FieldModelDefinitionOutline<ValueType> {
21
+ abstract config?: FieldModelConfig<ValueType>;
22
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldModelDefinition = exports.FieldModelConfig = void 0;
4
+ const field_model_1 = require("./field.model");
5
+ /**
6
+ * The common form field model config properties.
7
+ */
8
+ class FieldModelConfig {
9
+ defaultValue;
10
+ newEntryValue;
11
+ disableFormBinding;
12
+ editCssClasses;
13
+ validators;
14
+ value;
15
+ wrapperCssClasses;
16
+ disabled;
17
+ }
18
+ exports.FieldModelConfig = FieldModelConfig;
19
+ /**
20
+ * The common form field model definition properties.
21
+ */
22
+ class FieldModelDefinition extends field_model_1.FieldDefinition {
23
+ }
24
+ exports.FieldModelDefinition = FieldModelDefinition;
25
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQtbW9kZWwubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29uZmlnL2ZpZWxkLW1vZGVsLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLCtDQUFnRDtBQUloRDs7R0FFRztBQUNILE1BQXNCLGdCQUFnQjtJQUNsQyxZQUFZLENBQWE7SUFDekIsYUFBYSxDQUFhO0lBQzFCLGtCQUFrQixDQUFXO0lBQzdCLGNBQWMsQ0FBVTtJQUN4QixVQUFVLENBQXlCO0lBQ25DLEtBQUssQ0FBYTtJQUNsQixpQkFBaUIsQ0FBVTtJQUMzQixRQUFRLENBQVc7Q0FDdEI7QUFURCw0Q0FTQztBQUVEOztHQUVHO0FBQ0gsTUFBc0Isb0JBQWdDLFNBQVEsNkJBQWU7Q0FFNUU7QUFGRCxvREFFQyJ9
@@ -0,0 +1,63 @@
1
+ import { FormValidatorConfig } from "../validation/form.model";
2
+ import { FieldDefinitionFrame, FieldDefinitionOutline } from "./field.outline";
3
+ /**
4
+ * The form field model config interface that provides typing for the object literal and schema.
5
+ */
6
+ export interface FieldModelConfigFrame<ValueType> {
7
+ /**
8
+ * TODO: What is this for? And rename to `bindingDisabled` or `disabledBinding`.
9
+ */
10
+ disableFormBinding?: boolean;
11
+ /**
12
+ * The current value of this model.
13
+ *
14
+ * The 'value' is only available after the form config has been processed,
15
+ * and the default values or the existing record values have been populated.
16
+ */
17
+ value?: ValueType;
18
+ /**
19
+ * The default value for this model.
20
+ *
21
+ * The server-side processing uses this as the default for the field.
22
+ * Defaults from ancestor fields will be combined to form the default value for a new record.
23
+ */
24
+ defaultValue?: ValueType;
25
+ /**
26
+ * The value to use when creating new entries in the repeatable.
27
+ *
28
+ * Only available in a repeatable's elementTemplate in 'model.config.newEntryValue'.
29
+ *
30
+ * The default value for a repeatable is specified in 'model.config.defaultValue'.
31
+ * The value for a repeatable is in 'model.config.value'.
32
+ */
33
+ newEntryValue?: ValueType;
34
+ /**
35
+ * The validators that are configured at the field level that look at only this model.
36
+ */
37
+ validators?: FormValidatorConfig[];
38
+ /**
39
+ * The optional css classes to be applied to the wrapper element.
40
+ */
41
+ wrapperCssClasses?: string;
42
+ /**
43
+ * The optional css classes to be applied to the form dom node in edit mode.
44
+ */
45
+ editCssClasses?: string;
46
+ /**
47
+ * Whether the form control should be disabled.
48
+ *
49
+ * Disabled controls are excluded from the parent form's value.
50
+ */
51
+ disabled?: boolean;
52
+ }
53
+ export interface FieldModelConfigOutline<ValueType> extends FieldModelConfigFrame<ValueType> {
54
+ }
55
+ /**
56
+ * The form field model definition interface that provides typing for the object literal and schema.
57
+ */
58
+ export interface FieldModelDefinitionFrame<ValueType> extends FieldDefinitionFrame {
59
+ config?: FieldModelConfigFrame<ValueType>;
60
+ }
61
+ export interface FieldModelDefinitionOutline<ValueType> extends FieldModelDefinitionFrame<ValueType>, FieldDefinitionOutline {
62
+ config?: FieldModelConfigFrame<ValueType>;
63
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQtbW9kZWwub3V0bGluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb25maWcvZmllbGQtbW9kZWwub3V0bGluZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,12 @@
1
+ import { FormConfigVisitorOutline } from "./visitor/base.outline";
2
+ import { FieldDefinitionOutline } from "./field.outline";
3
+ /**
4
+ * The base form field definition.
5
+ *
6
+ * This is the basic structure used by component, model, and layout definitions.
7
+ */
8
+ export declare abstract class FieldDefinition implements FieldDefinitionOutline {
9
+ abstract class: string;
10
+ abstract config?: object;
11
+ abstract accept(visitor: FormConfigVisitorOutline): void;
12
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldDefinition = void 0;
4
+ /**
5
+ * The base form field definition.
6
+ *
7
+ * This is the basic structure used by component, model, and layout definitions.
8
+ */
9
+ class FieldDefinition {
10
+ }
11
+ exports.FieldDefinition = FieldDefinition;
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29uZmlnL2ZpZWxkLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUlBOzs7O0dBSUc7QUFDSCxNQUFzQixlQUFlO0NBS3BDO0FBTEQsMENBS0MifQ==
@@ -0,0 +1,19 @@
1
+ import { CanVisit } from "./visitor/base.outline";
2
+ /**
3
+ * The form field definition interface that provides typing for the object literal and schema.
4
+ */
5
+ export interface FieldDefinitionFrame {
6
+ /**
7
+ * The class name as a string.
8
+ *
9
+ * Uses typescript discriminated unions to help enforce types.
10
+ * Ref: https://www.typescriptlang.org/docs/handbook/2/narrowing.html#discriminated-unions
11
+ */
12
+ class: string;
13
+ /**
14
+ * The configuration specific to the class of this form field.
15
+ */
16
+ config?: object;
17
+ }
18
+ export interface FieldDefinitionOutline extends FieldDefinitionFrame, CanVisit {
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQub3V0bGluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb25maWcvZmllbGQub3V0bGluZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=