@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,29 @@
1
+ import { FieldLayoutConfigFrame, FieldLayoutConfigOutline, FieldLayoutDefinitionFrame, FieldLayoutDefinitionOutline } from '../field-layout.outline';
2
+ import { FieldLayoutConfigFrameKindType, FieldLayoutConfigKindType, FieldLayoutDefinitionFrameKindType, FieldLayoutDefinitionKindType } from '../shared.outline';
3
+ export declare const InlineLayoutName: "InlineLayout";
4
+ export type InlineLayoutNameType = typeof InlineLayoutName;
5
+ export interface InlineFieldLayoutConfigFrame extends FieldLayoutConfigFrame {
6
+ }
7
+ export interface InlineFieldLayoutConfigOutline extends InlineFieldLayoutConfigFrame, FieldLayoutConfigOutline {
8
+ }
9
+ export interface InlineFieldLayoutDefinitionFrame extends FieldLayoutDefinitionFrame {
10
+ class: InlineLayoutNameType;
11
+ config?: InlineFieldLayoutConfigFrame;
12
+ }
13
+ export interface InlineFieldLayoutDefinitionOutline extends InlineFieldLayoutDefinitionFrame, FieldLayoutDefinitionOutline {
14
+ class: InlineLayoutNameType;
15
+ config?: InlineFieldLayoutConfigOutline;
16
+ }
17
+ export type InlineLayoutTypes = {
18
+ kind: FieldLayoutConfigFrameKindType;
19
+ class: InlineFieldLayoutConfigFrame;
20
+ } | {
21
+ kind: FieldLayoutConfigKindType;
22
+ class: InlineFieldLayoutConfigOutline;
23
+ } | {
24
+ kind: FieldLayoutDefinitionFrameKindType;
25
+ class: InlineFieldLayoutDefinitionFrame;
26
+ } | {
27
+ kind: FieldLayoutDefinitionKindType;
28
+ class: InlineFieldLayoutDefinitionOutline;
29
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InlineLayoutName = void 0;
4
+ exports.InlineLayoutName = `InlineLayout`;
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLWxheW91dC5vdXRsaW5lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbmZpZy9jb21wb25lbnQvaW5saW5lLWxheW91dC5vdXRsaW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQWFhLFFBQUEsZ0JBQWdCLEdBQUcsY0FBdUIsQ0FBQyJ9
@@ -0,0 +1,68 @@
1
+ import { FieldModelConfig, FieldModelDefinition } from "../field-model.model";
2
+ import { FormComponentDefinition } from "../form-component.model";
3
+ import { FormConfigVisitorOutline } from "../visitor/base.outline";
4
+ import { FieldComponentConfig, FieldComponentDefinition } from "../field-component.model";
5
+ import { AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
6
+ import { MapDrawingMode, MapFieldComponentConfigOutline, MapFieldComponentDefinitionOutline, MapFieldModelConfigOutline, MapFieldModelDefinitionOutline, MapFormComponentDefinitionOutline, MapModelValueType, MapTileLayerConfig } from "./map.outline";
7
+ export declare class MapFieldComponentConfig extends FieldComponentConfig implements MapFieldComponentConfigOutline {
8
+ center: [number, number];
9
+ zoom: number;
10
+ mapHeight: string;
11
+ tileLayers: MapTileLayerConfig[];
12
+ enabledModes: MapDrawingMode[];
13
+ enableImport: boolean;
14
+ coordinatesHelp?: string;
15
+ constructor();
16
+ }
17
+ export declare class MapFieldComponentDefinition extends FieldComponentDefinition implements MapFieldComponentDefinitionOutline {
18
+ class: "MapComponent";
19
+ config?: MapFieldComponentConfigOutline;
20
+ constructor();
21
+ accept(visitor: FormConfigVisitorOutline): void;
22
+ }
23
+ export declare class MapFieldModelConfig extends FieldModelConfig<MapModelValueType> implements MapFieldModelConfigOutline {
24
+ defaultValue: import("./map.outline").MapFeatureCollection;
25
+ constructor();
26
+ }
27
+ export declare class MapFieldModelDefinition extends FieldModelDefinition<MapModelValueType> implements MapFieldModelDefinitionOutline {
28
+ class: "MapModel";
29
+ config?: MapFieldModelConfigOutline;
30
+ constructor();
31
+ accept(visitor: FormConfigVisitorOutline): void;
32
+ }
33
+ export declare class MapFormComponentDefinition extends FormComponentDefinition implements MapFormComponentDefinitionOutline {
34
+ component: MapFieldComponentDefinitionOutline;
35
+ model?: MapFieldModelDefinitionOutline;
36
+ layout?: AvailableFieldLayoutDefinitionOutlines;
37
+ constructor();
38
+ accept(visitor: FormConfigVisitorOutline): void;
39
+ }
40
+ export declare const MapMap: ({
41
+ kind: "FieldComponentConfigKind";
42
+ def: typeof MapFieldComponentConfig;
43
+ class?: undefined;
44
+ } | {
45
+ kind: "FieldComponentDefinitionKind";
46
+ def: typeof MapFieldComponentDefinition;
47
+ class: "MapComponent";
48
+ } | {
49
+ kind: "FieldModelConfigKind";
50
+ def: typeof MapFieldModelConfig;
51
+ class?: undefined;
52
+ } | {
53
+ kind: "FieldModelDefinitionKind";
54
+ def: typeof MapFieldModelDefinition;
55
+ class: "MapModel";
56
+ } | {
57
+ kind: "FormComponentDefinitionKind";
58
+ def: typeof MapFormComponentDefinition;
59
+ class: "MapComponent";
60
+ })[];
61
+ export declare const MapDefaults: {
62
+ FormComponentDefinitionKind: {
63
+ MapComponent: {
64
+ FieldComponentDefinitionKind: "MapComponent";
65
+ FieldModelDefinitionKind: "MapModel";
66
+ };
67
+ };
68
+ };
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MapDefaults = exports.MapMap = exports.MapFormComponentDefinition = exports.MapFieldModelDefinition = exports.MapFieldModelConfig = exports.MapFieldComponentDefinition = exports.MapFieldComponentConfig = 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 map_outline_1 = require("./map.outline");
9
+ const DefaultFeatureCollection = {
10
+ type: "FeatureCollection",
11
+ features: []
12
+ };
13
+ /* Map Component */
14
+ class MapFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
15
+ center = [-24.67, 134.07];
16
+ zoom = 4;
17
+ mapHeight = "450px";
18
+ tileLayers = [];
19
+ enabledModes = ["point", "polygon", "linestring", "rectangle", "select"];
20
+ enableImport = true;
21
+ coordinatesHelp;
22
+ constructor() {
23
+ super();
24
+ }
25
+ }
26
+ exports.MapFieldComponentConfig = MapFieldComponentConfig;
27
+ class MapFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
28
+ class = map_outline_1.MapComponentName;
29
+ config;
30
+ constructor() {
31
+ super();
32
+ }
33
+ accept(visitor) {
34
+ visitor.visitMapFieldComponentDefinition(this);
35
+ }
36
+ }
37
+ exports.MapFieldComponentDefinition = MapFieldComponentDefinition;
38
+ /* Map Model */
39
+ class MapFieldModelConfig extends field_model_model_1.FieldModelConfig {
40
+ defaultValue = DefaultFeatureCollection;
41
+ constructor() {
42
+ super();
43
+ }
44
+ }
45
+ exports.MapFieldModelConfig = MapFieldModelConfig;
46
+ class MapFieldModelDefinition extends field_model_model_1.FieldModelDefinition {
47
+ class = map_outline_1.MapModelName;
48
+ config;
49
+ constructor() {
50
+ super();
51
+ }
52
+ accept(visitor) {
53
+ visitor.visitMapFieldModelDefinition(this);
54
+ }
55
+ }
56
+ exports.MapFieldModelDefinition = MapFieldModelDefinition;
57
+ /* Map Form Component */
58
+ class MapFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
59
+ component;
60
+ model;
61
+ layout;
62
+ constructor() {
63
+ super();
64
+ }
65
+ accept(visitor) {
66
+ visitor.visitMapFormComponentDefinition(this);
67
+ }
68
+ }
69
+ exports.MapFormComponentDefinition = MapFormComponentDefinition;
70
+ exports.MapMap = [
71
+ { kind: shared_outline_1.FieldComponentConfigKind, def: MapFieldComponentConfig },
72
+ { kind: shared_outline_1.FieldComponentDefinitionKind, def: MapFieldComponentDefinition, class: map_outline_1.MapComponentName },
73
+ { kind: shared_outline_1.FieldModelConfigKind, def: MapFieldModelConfig },
74
+ { kind: shared_outline_1.FieldModelDefinitionKind, def: MapFieldModelDefinition, class: map_outline_1.MapModelName },
75
+ { kind: shared_outline_1.FormComponentDefinitionKind, def: MapFormComponentDefinition, class: map_outline_1.MapComponentName },
76
+ ];
77
+ exports.MapDefaults = {
78
+ [shared_outline_1.FormComponentDefinitionKind]: {
79
+ [map_outline_1.MapComponentName]: {
80
+ [shared_outline_1.FieldComponentDefinitionKind]: map_outline_1.MapComponentName,
81
+ [shared_outline_1.FieldModelDefinitionKind]: map_outline_1.MapModelName,
82
+ }
83
+ }
84
+ };
85
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbmZpZy9jb21wb25lbnQvbWFwLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDREQUE0RTtBQUM1RSxrRUFBZ0U7QUFFaEUsc0RBSzJCO0FBQzNCLG9FQUF3RjtBQUV4RiwrQ0FXdUI7QUFFdkIsTUFBTSx3QkFBd0IsR0FBRztJQUM3QixJQUFJLEVBQUUsbUJBQW1CO0lBQ3pCLFFBQVEsRUFBRSxFQUFFO0NBQ00sQ0FBQztBQUV2QixtQkFBbUI7QUFFbkIsTUFBYSx1QkFBd0IsU0FBUSw0Q0FBb0I7SUFDN0QsTUFBTSxHQUFxQixDQUFDLENBQUMsS0FBSyxFQUFFLE1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indType, 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 MapComponentName: "MapComponent";
7
+ export type MapComponentNameType = typeof MapComponentName;
8
+ export interface MapFeatureGeometry {
9
+ type: string;
10
+ coordinates?: unknown;
11
+ }
12
+ export interface MapFeature {
13
+ type: "Feature";
14
+ id?: string | number;
15
+ geometry: MapFeatureGeometry | null;
16
+ properties?: Record<string, unknown> | null;
17
+ }
18
+ export interface MapFeatureCollection {
19
+ type: "FeatureCollection";
20
+ features: MapFeature[];
21
+ }
22
+ export type MapModelValueType = MapFeatureCollection;
23
+ export type MapDrawingMode = "point" | "polygon" | "linestring" | "rectangle" | "select";
24
+ export interface MapTileLayerConfig {
25
+ name: string;
26
+ url: string;
27
+ options?: Record<string, unknown>;
28
+ }
29
+ export interface MapFieldComponentConfigFrame extends FieldComponentConfigFrame {
30
+ center?: [number, number];
31
+ zoom?: number;
32
+ mapHeight?: string;
33
+ tileLayers?: MapTileLayerConfig[];
34
+ enabledModes?: MapDrawingMode[];
35
+ enableImport?: boolean;
36
+ coordinatesHelp?: string;
37
+ }
38
+ export interface MapFieldComponentConfigOutline extends MapFieldComponentConfigFrame, FieldComponentConfigOutline {
39
+ }
40
+ export interface MapFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
41
+ class: MapComponentNameType;
42
+ config?: MapFieldComponentConfigFrame;
43
+ }
44
+ export interface MapFieldComponentDefinitionOutline extends MapFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
45
+ class: MapComponentNameType;
46
+ config?: MapFieldComponentConfigOutline;
47
+ }
48
+ export declare const MapModelName: "MapModel";
49
+ export type MapModelNameType = typeof MapModelName;
50
+ export interface MapFieldModelConfigFrame extends FieldModelConfigFrame<MapModelValueType> {
51
+ }
52
+ export interface MapFieldModelConfigOutline extends MapFieldModelConfigFrame, FieldModelConfigOutline<MapModelValueType> {
53
+ }
54
+ export interface MapFieldModelDefinitionFrame extends FieldModelDefinitionFrame<MapModelValueType> {
55
+ class: MapModelNameType;
56
+ config?: MapFieldModelConfigFrame;
57
+ }
58
+ export interface MapFieldModelDefinitionOutline extends MapFieldModelDefinitionFrame, FieldModelDefinitionOutline<MapModelValueType> {
59
+ class: MapModelNameType;
60
+ config?: MapFieldModelConfigOutline;
61
+ }
62
+ export interface MapFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
63
+ component: MapFieldComponentDefinitionFrame;
64
+ model?: MapFieldModelDefinitionFrame;
65
+ layout?: AvailableFieldLayoutDefinitionFrames;
66
+ }
67
+ export interface MapFormComponentDefinitionOutline extends MapFormComponentDefinitionFrame, FormComponentDefinitionOutline {
68
+ component: MapFieldComponentDefinitionOutline;
69
+ model?: MapFieldModelDefinitionOutline;
70
+ layout?: AvailableFieldLayoutDefinitionOutlines;
71
+ }
72
+ export type MapTypes = {
73
+ kind: FieldComponentConfigFrameKindType;
74
+ class: MapFieldComponentConfigFrame;
75
+ } | {
76
+ kind: FieldComponentDefinitionFrameKindType;
77
+ class: MapFieldComponentDefinitionFrame;
78
+ } | {
79
+ kind: FieldModelConfigFrameKindType;
80
+ class: MapFieldModelConfigFrame;
81
+ } | {
82
+ kind: FieldModelDefinitionFrameKindType;
83
+ class: MapFieldModelDefinitionFrame;
84
+ } | {
85
+ kind: FormComponentDefinitionFrameKindType;
86
+ class: MapFormComponentDefinitionFrame;
87
+ } | {
88
+ kind: FieldComponentConfigKindType;
89
+ class: MapFieldComponentConfigOutline;
90
+ } | {
91
+ kind: FieldComponentDefinitionKindType;
92
+ class: MapFieldComponentDefinitionOutline;
93
+ } | {
94
+ kind: FieldModelConfigKindType;
95
+ class: MapFieldModelConfigOutline;
96
+ } | {
97
+ kind: FieldModelDefinitionKindType;
98
+ class: MapFieldModelDefinitionOutline;
99
+ } | {
100
+ kind: FormComponentDefinitionKindType;
101
+ class: MapFormComponentDefinitionOutline;
102
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MapModelName = exports.MapComponentName = void 0;
4
+ /* Map Component */
5
+ exports.MapComponentName = "MapComponent";
6
+ /* Map Model */
7
+ exports.MapModelName = "MapModel";
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLm91dGxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29uZmlnL2NvbXBvbmVudC9tYXAub3V0bGluZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFxQkEsbUJBQW1CO0FBQ04sUUFBQSxnQkFBZ0IsR0FBRyxjQUF1QixDQUFDO0FBb0R4RCxlQUFlO0FBQ0YsUUFBQSxZQUFZLEdBQUcsVUFBbUIsQ0FBQyJ9
@@ -0,0 +1,68 @@
1
+ import { FieldModelConfig, FieldModelDefinition } from "../field-model.model";
2
+ import { FormComponentDefinition } from "../form-component.model";
3
+ import { FormConfigVisitorOutline } from "../visitor/base.outline";
4
+ import { FieldComponentConfig, FieldComponentDefinition } from "../field-component.model";
5
+ import { AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
6
+ import { PDFListFieldComponentConfigOutline, PDFListFieldComponentDefinitionOutline, PDFListFieldModelConfigOutline, PDFListFieldModelDefinitionOutline, PDFListFormComponentDefinitionOutline, PDFListModelValueType, RecordAttachment } from "./pdf-list.outline";
7
+ export declare class PDFListFieldComponentConfig extends FieldComponentConfig implements PDFListFieldComponentConfigOutline {
8
+ startsWith: string;
9
+ recentPdfLimit: number;
10
+ showVersionCounter: boolean;
11
+ showVersionColumn: boolean;
12
+ versionColumnValueField: string;
13
+ versionColumnLabelKey: string;
14
+ useVersionLabelForFileName: boolean;
15
+ downloadBtnLabel: string;
16
+ downloadPreviousBtnLabel: string;
17
+ downloadPrefix: string;
18
+ fileNameTemplate: string;
19
+ }
20
+ export declare class PDFListFieldComponentDefinition extends FieldComponentDefinition implements PDFListFieldComponentDefinitionOutline {
21
+ class: "PDFListComponent";
22
+ config?: PDFListFieldComponentConfigOutline;
23
+ accept(visitor: FormConfigVisitorOutline): void;
24
+ }
25
+ export declare class PDFListFieldModelConfig extends FieldModelConfig<PDFListModelValueType> implements PDFListFieldModelConfigOutline {
26
+ defaultValue: RecordAttachment[];
27
+ constructor();
28
+ }
29
+ export declare class PDFListFieldModelDefinition extends FieldModelDefinition<PDFListModelValueType> implements PDFListFieldModelDefinitionOutline {
30
+ class: "PDFListModel";
31
+ config?: PDFListFieldModelConfigOutline;
32
+ accept(visitor: FormConfigVisitorOutline): void;
33
+ }
34
+ export declare class PDFListFormComponentDefinition extends FormComponentDefinition implements PDFListFormComponentDefinitionOutline {
35
+ component: PDFListFieldComponentDefinitionOutline;
36
+ model?: PDFListFieldModelDefinitionOutline;
37
+ layout?: AvailableFieldLayoutDefinitionOutlines;
38
+ accept(visitor: FormConfigVisitorOutline): void;
39
+ }
40
+ export declare const PDFListMap: ({
41
+ kind: "FieldComponentConfigKind";
42
+ def: typeof PDFListFieldComponentConfig;
43
+ class?: undefined;
44
+ } | {
45
+ kind: "FieldComponentDefinitionKind";
46
+ def: typeof PDFListFieldComponentDefinition;
47
+ class: "PDFListComponent";
48
+ } | {
49
+ kind: "FieldModelConfigKind";
50
+ def: typeof PDFListFieldModelConfig;
51
+ class?: undefined;
52
+ } | {
53
+ kind: "FieldModelDefinitionKind";
54
+ def: typeof PDFListFieldModelDefinition;
55
+ class: "PDFListModel";
56
+ } | {
57
+ kind: "FormComponentDefinitionKind";
58
+ def: typeof PDFListFormComponentDefinition;
59
+ class: "PDFListComponent";
60
+ })[];
61
+ export declare const PDFListDefaults: {
62
+ FormComponentDefinitionKind: {
63
+ PDFListComponent: {
64
+ FieldComponentDefinitionKind: "PDFListComponent";
65
+ FieldModelDefinitionKind: "PDFListModel";
66
+ };
67
+ };
68
+ };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PDFListDefaults = exports.PDFListMap = exports.PDFListFormComponentDefinition = exports.PDFListFieldModelDefinition = exports.PDFListFieldModelConfig = exports.PDFListFieldComponentDefinition = exports.PDFListFieldComponentConfig = 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 pdf_list_outline_1 = require("./pdf-list.outline");
9
+ class PDFListFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
10
+ startsWith = "rdmp-pdf";
11
+ recentPdfLimit = 5;
12
+ showVersionCounter = false;
13
+ showVersionColumn = false;
14
+ versionColumnValueField = "";
15
+ versionColumnLabelKey = "";
16
+ useVersionLabelForFileName = false;
17
+ downloadBtnLabel = "@pdf-download";
18
+ downloadPreviousBtnLabel = "@pdf-download-previous";
19
+ downloadPrefix = "rdmp";
20
+ fileNameTemplate = "";
21
+ }
22
+ exports.PDFListFieldComponentConfig = PDFListFieldComponentConfig;
23
+ class PDFListFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
24
+ class = pdf_list_outline_1.PDFListComponentName;
25
+ config;
26
+ accept(visitor) {
27
+ visitor.visitPDFListFieldComponentDefinition(this);
28
+ }
29
+ }
30
+ exports.PDFListFieldComponentDefinition = PDFListFieldComponentDefinition;
31
+ class PDFListFieldModelConfig extends field_model_model_1.FieldModelConfig {
32
+ defaultValue;
33
+ constructor() {
34
+ super();
35
+ this.defaultValue = [];
36
+ }
37
+ }
38
+ exports.PDFListFieldModelConfig = PDFListFieldModelConfig;
39
+ class PDFListFieldModelDefinition extends field_model_model_1.FieldModelDefinition {
40
+ class = pdf_list_outline_1.PDFListModelName;
41
+ config;
42
+ accept(visitor) {
43
+ visitor.visitPDFListFieldModelDefinition(this);
44
+ }
45
+ }
46
+ exports.PDFListFieldModelDefinition = PDFListFieldModelDefinition;
47
+ class PDFListFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
48
+ component;
49
+ model;
50
+ layout;
51
+ accept(visitor) {
52
+ visitor.visitPDFListFormComponentDefinition(this);
53
+ }
54
+ }
55
+ exports.PDFListFormComponentDefinition = PDFListFormComponentDefinition;
56
+ exports.PDFListMap = [
57
+ { kind: shared_outline_1.FieldComponentConfigKind, def: PDFListFieldComponentConfig },
58
+ { kind: shared_outline_1.FieldComponentDefinitionKind, def: PDFListFieldComponentDefinition, class: pdf_list_outline_1.PDFListComponentName },
59
+ { kind: shared_outline_1.FieldModelConfigKind, def: PDFListFieldModelConfig },
60
+ { kind: shared_outline_1.FieldModelDefinitionKind, def: PDFListFieldModelDefinition, class: pdf_list_outline_1.PDFListModelName },
61
+ { kind: shared_outline_1.FormComponentDefinitionKind, def: PDFListFormComponentDefinition, class: pdf_list_outline_1.PDFListComponentName },
62
+ ];
63
+ exports.PDFListDefaults = {
64
+ [shared_outline_1.FormComponentDefinitionKind]: {
65
+ [pdf_list_outline_1.PDFListComponentName]: {
66
+ [shared_outline_1.FieldComponentDefinitionKind]: pdf_list_outline_1.PDFListComponentName,
67
+ [shared_outline_1.FieldModelDefinitionKind]: pdf_list_outline_1.PDFListModelName,
68
+ }
69
+ }
70
+ };
71
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGRmLWxpc3QubW9kZWwuanMiLCJzb3VyY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QUFDLEVBQUU7UUFDM0IsQ0FBQyx1Q0FBb0IsQ0FBQyxFQUFFO1lBQ3BCLENBQUMsNkNBQTRCLENBQUMsRUFBRSx1Q0FBb0I7WUFDcEQsQ0FBQyx5Q0FBd0IsQ0FBQyxFQUFFLG1DQUFnQjtTQUMvQztLQUNKO0NBQ0osQ0FBQyJ9
@@ -0,0 +1,91 @@
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 PDFListComponentName: "PDFListComponent";
7
+ export type PDFListComponentNameType = typeof PDFListComponentName;
8
+ export declare const PDFListModelName: "PDFListModel";
9
+ export type PDFListModelNameType = typeof PDFListModelName;
10
+ export interface RecordAttachment {
11
+ label: string;
12
+ dateUpdated: string;
13
+ [key: string]: unknown;
14
+ }
15
+ export type PDFListModelValueType = RecordAttachment[];
16
+ export interface PDFListFieldComponentConfigFrame extends FieldComponentConfigFrame {
17
+ startsWith?: string;
18
+ recentPdfLimit?: number;
19
+ showVersionCounter?: boolean;
20
+ showVersionColumn?: boolean;
21
+ versionColumnValueField?: string;
22
+ versionColumnLabelKey?: string;
23
+ useVersionLabelForFileName?: boolean;
24
+ downloadBtnLabel?: string;
25
+ downloadPreviousBtnLabel?: string;
26
+ downloadPrefix?: string;
27
+ fileNameTemplate?: string;
28
+ }
29
+ export interface PDFListFieldComponentConfigOutline extends PDFListFieldComponentConfigFrame, FieldComponentConfigOutline {
30
+ }
31
+ export interface PDFListFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
32
+ class: PDFListComponentNameType;
33
+ config?: PDFListFieldComponentConfigFrame;
34
+ }
35
+ export interface PDFListFieldComponentDefinitionOutline extends PDFListFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
36
+ class: PDFListComponentNameType;
37
+ config?: PDFListFieldComponentConfigOutline;
38
+ }
39
+ export interface PDFListFieldModelConfigFrame extends FieldModelConfigFrame<PDFListModelValueType> {
40
+ }
41
+ export interface PDFListFieldModelConfigOutline extends PDFListFieldModelConfigFrame, FieldModelConfigOutline<PDFListModelValueType> {
42
+ }
43
+ export interface PDFListFieldModelDefinitionFrame extends FieldModelDefinitionFrame<PDFListModelValueType> {
44
+ class: PDFListModelNameType;
45
+ config?: PDFListFieldModelConfigFrame;
46
+ }
47
+ export interface PDFListFieldModelDefinitionOutline extends PDFListFieldModelDefinitionFrame, FieldModelDefinitionOutline<PDFListModelValueType> {
48
+ class: PDFListModelNameType;
49
+ config?: PDFListFieldModelConfigOutline;
50
+ }
51
+ export interface PDFListFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
52
+ component: PDFListFieldComponentDefinitionFrame;
53
+ model?: PDFListFieldModelDefinitionFrame;
54
+ layout?: AvailableFieldLayoutDefinitionFrames;
55
+ }
56
+ export interface PDFListFormComponentDefinitionOutline extends PDFListFormComponentDefinitionFrame, FormComponentDefinitionOutline {
57
+ component: PDFListFieldComponentDefinitionOutline;
58
+ model?: PDFListFieldModelDefinitionOutline;
59
+ layout?: AvailableFieldLayoutDefinitionOutlines;
60
+ }
61
+ export type PDFListTypes = {
62
+ kind: FieldComponentConfigFrameKindType;
63
+ class: PDFListFieldComponentConfigFrame;
64
+ } | {
65
+ kind: FieldComponentDefinitionFrameKindType;
66
+ class: PDFListFieldComponentDefinitionFrame;
67
+ } | {
68
+ kind: FieldModelConfigFrameKindType;
69
+ class: PDFListFieldModelConfigFrame;
70
+ } | {
71
+ kind: FieldModelDefinitionFrameKindType;
72
+ class: PDFListFieldModelDefinitionFrame;
73
+ } | {
74
+ kind: FormComponentDefinitionFrameKindType;
75
+ class: PDFListFormComponentDefinitionFrame;
76
+ } | {
77
+ kind: FieldComponentConfigKindType;
78
+ class: PDFListFieldComponentConfigOutline;
79
+ } | {
80
+ kind: FieldComponentDefinitionKindType;
81
+ class: PDFListFieldComponentDefinitionOutline;
82
+ } | {
83
+ kind: FieldModelConfigKindType;
84
+ class: PDFListFieldModelConfigOutline;
85
+ } | {
86
+ kind: FieldModelDefinitionKindType;
87
+ class: PDFListFieldModelDefinitionOutline;
88
+ } | {
89
+ kind: FormComponentDefinitionKindType;
90
+ class: PDFListFormComponentDefinitionOutline;
91
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PDFListModelName = exports.PDFListComponentName = void 0;
4
+ exports.PDFListComponentName = "PDFListComponent";
5
+ exports.PDFListModelName = "PDFListModel";
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGRmLWxpc3Qub3V0bGluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb25maWcvY29tcG9uZW50L3BkZi1saXN0Lm91dGxpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBMkJhLFFBQUEsb0JBQW9CLEdBQUcsa0JBQTJCLENBQUM7QUFHbkQsUUFBQSxnQkFBZ0IsR0FBRyxjQUF1QixDQUFDIn0=
@@ -0,0 +1,38 @@
1
+ import { AvailableFieldLayoutDefinitionOutlines } from '../dictionary.outline';
2
+ import { FieldComponentConfig, FieldComponentDefinition } from '../field-component.model';
3
+ import { FormComponentDefinition } from '../form-component.model';
4
+ import { FormConfigVisitorOutline } from '../visitor/base.outline';
5
+ import { PublishDataLocationRefreshFieldComponentConfigOutline, PublishDataLocationRefreshFieldComponentDefinitionOutline, PublishDataLocationRefreshFormComponentDefinitionOutline } from './publish-data-location-refresh.outline';
6
+ export declare class PublishDataLocationRefreshFieldComponentConfig extends FieldComponentConfig implements PublishDataLocationRefreshFieldComponentConfigOutline {
7
+ }
8
+ /** Visitor-aware definition for the stateless refresh trigger component. */
9
+ export declare class PublishDataLocationRefreshFieldComponentDefinition extends FieldComponentDefinition implements PublishDataLocationRefreshFieldComponentDefinitionOutline {
10
+ class: "PublishDataLocationRefreshComponent";
11
+ config?: PublishDataLocationRefreshFieldComponentConfigOutline;
12
+ accept(visitor: FormConfigVisitorOutline): void;
13
+ }
14
+ export declare class PublishDataLocationRefreshFormComponentDefinition extends FormComponentDefinition implements PublishDataLocationRefreshFormComponentDefinitionOutline {
15
+ component: PublishDataLocationRefreshFieldComponentDefinitionOutline;
16
+ model?: never;
17
+ layout?: AvailableFieldLayoutDefinitionOutlines;
18
+ accept(visitor: FormConfigVisitorOutline): void;
19
+ }
20
+ export declare const PublishDataLocationRefreshMap: readonly [{
21
+ readonly kind: "FieldComponentConfigKind";
22
+ readonly def: typeof PublishDataLocationRefreshFieldComponentConfig;
23
+ }, {
24
+ readonly kind: "FieldComponentDefinitionKind";
25
+ readonly def: typeof PublishDataLocationRefreshFieldComponentDefinition;
26
+ readonly class: "PublishDataLocationRefreshComponent";
27
+ }, {
28
+ readonly kind: "FormComponentDefinitionKind";
29
+ readonly def: typeof PublishDataLocationRefreshFormComponentDefinition;
30
+ readonly class: "PublishDataLocationRefreshComponent";
31
+ }];
32
+ export declare const PublishDataLocationRefreshDefaults: {
33
+ FormComponentDefinitionKind: {
34
+ PublishDataLocationRefreshComponent: {
35
+ FieldComponentDefinitionKind: "PublishDataLocationRefreshComponent";
36
+ };
37
+ };
38
+ };
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PublishDataLocationRefreshDefaults = exports.PublishDataLocationRefreshMap = exports.PublishDataLocationRefreshFormComponentDefinition = exports.PublishDataLocationRefreshFieldComponentDefinition = exports.PublishDataLocationRefreshFieldComponentConfig = void 0;
4
+ const field_component_model_1 = require("../field-component.model");
5
+ const form_component_model_1 = require("../form-component.model");
6
+ const shared_outline_1 = require("../shared.outline");
7
+ const publish_data_location_refresh_outline_1 = require("./publish-data-location-refresh.outline");
8
+ class PublishDataLocationRefreshFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
9
+ }
10
+ exports.PublishDataLocationRefreshFieldComponentConfig = PublishDataLocationRefreshFieldComponentConfig;
11
+ /** Visitor-aware definition for the stateless refresh trigger component. */
12
+ class PublishDataLocationRefreshFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
13
+ class = publish_data_location_refresh_outline_1.PublishDataLocationRefreshComponentName;
14
+ config;
15
+ accept(visitor) {
16
+ visitor.visitPublishDataLocationRefreshFieldComponentDefinition(this);
17
+ }
18
+ }
19
+ exports.PublishDataLocationRefreshFieldComponentDefinition = PublishDataLocationRefreshFieldComponentDefinition;
20
+ class PublishDataLocationRefreshFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
21
+ component;
22
+ model;
23
+ layout;
24
+ accept(visitor) {
25
+ visitor.visitPublishDataLocationRefreshFormComponentDefinition(this);
26
+ }
27
+ }
28
+ exports.PublishDataLocationRefreshFormComponentDefinition = PublishDataLocationRefreshFormComponentDefinition;
29
+ exports.PublishDataLocationRefreshMap = [
30
+ { kind: shared_outline_1.FieldComponentConfigKind, def: PublishDataLocationRefreshFieldComponentConfig },
31
+ {
32
+ kind: shared_outline_1.FieldComponentDefinitionKind,
33
+ def: PublishDataLocationRefreshFieldComponentDefinition,
34
+ class: publish_data_location_refresh_outline_1.PublishDataLocationRefreshComponentName,
35
+ },
36
+ {
37
+ kind: shared_outline_1.FormComponentDefinitionKind,
38
+ def: PublishDataLocationRefreshFormComponentDefinition,
39
+ class: publish_data_location_refresh_outline_1.PublishDataLocationRefreshComponentName,
40
+ },
41
+ ];
42
+ // Provide the minimum default shape necessary for standard construct/migrate
43
+ // visitors to instantiate the component without inventing a backing model.
44
+ exports.PublishDataLocationRefreshDefaults = {
45
+ [shared_outline_1.FormComponentDefinitionKind]: {
46
+ [publish_data_location_refresh_outline_1.PublishDataLocationRefreshComponentName]: {
47
+ [shared_outline_1.FieldComponentDefinitionKind]: publish_data_location_refresh_outline_1.PublishDataLocationRefreshComponentName,
48
+ },
49
+ },
50
+ };
51
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGlzaC1kYXRhLWxvY2F0aW9uLXJlZnJlc2gubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29uZmlnL2NvbXBvbmVudC9wdWJsaXNoLWRhdGEtbG9jYXRpb24tcmVmcmVzaC5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxvRUFBMEY7QUFDMUYsa0VBQWtFO0FBQ2xFLHNEQUkyQjtBQUUzQixtR0FLaUQ7QUFFakQsTUFBYSw4Q0FDWCxTQUFRLDRDQUFvQjtDQUU1QjtBQUhGLHdHQUdFO0FBRUYsNEVBQTRFO0FBQzVFLE1BQWEsa0RBQ1gsU0FBUSxnREFBd0I7SUFHaEMsS0FBSyxHQUFHLCtFQUF1QyxDQUFDO0lBQ2hELE1BQU0sQ0FBeUQ7SUFFL0QsTUFBTSxDQUFDLE9BQWlDO1FBQ3RDLE9BQU8sQ0FBQyx1REFBdUQsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUN4RSxDQUFDO0NBQ0Y7QUFWRCxnSEFVQztBQUVELE1BQWEsaURBQ1gsU0FBUSw4Q0FBdUI7SUFHL0IsU0FBUyxDQUE2RDtJQUN0RSxLQUFLLENBQVM7SUFDZCxNQUFNLENBQTBDO0lBRWhELE1BQ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