@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.
- package/README.md +5 -0
- package/dist/src/config/base-field-component.model.d.ts +26 -0
- package/dist/src/config/base-field-component.model.js +29 -0
- package/dist/src/config/base-field-component.outline.d.ts +100 -0
- package/dist/src/config/base-field-component.outline.js +3 -0
- package/dist/src/config/component/accordion.model.d.ts +103 -0
- package/dist/src/config/component/accordion.model.js +127 -0
- package/dist/src/config/component/accordion.outline.d.ts +150 -0
- package/dist/src/config/component/accordion.outline.js +13 -0
- package/dist/src/config/component/action-row-layout.model.d.ts +28 -0
- package/dist/src/config/component/action-row-layout.model.js +35 -0
- package/dist/src/config/component/action-row-layout.outline.d.ts +36 -0
- package/dist/src/config/component/action-row-layout.outline.js +6 -0
- package/dist/src/config/component/cancel-button.model.d.ts +46 -0
- package/dist/src/config/component/cancel-button.model.js +56 -0
- package/dist/src/config/component/cancel-button.outline.d.ts +69 -0
- package/dist/src/config/component/cancel-button.outline.js +6 -0
- package/dist/src/config/component/checkbox-input.model.d.ts +65 -0
- package/dist/src/config/component/checkbox-input.model.js +78 -0
- package/dist/src/config/component/checkbox-input.outline.d.ts +85 -0
- package/dist/src/config/component/checkbox-input.outline.js +8 -0
- package/dist/src/config/component/checkbox-tree.model.d.ts +66 -0
- package/dist/src/config/component/checkbox-tree.model.js +79 -0
- package/dist/src/config/component/checkbox-tree.outline.d.ts +96 -0
- package/dist/src/config/component/checkbox-tree.outline.js +8 -0
- package/dist/src/config/component/content.model.d.ts +45 -0
- package/dist/src/config/component/content.model.js +55 -0
- package/dist/src/config/component/content.outline.d.ts +64 -0
- package/dist/src/config/component/content.outline.js +6 -0
- package/dist/src/config/component/data-location.model.d.ts +82 -0
- package/dist/src/config/component/data-location.model.js +94 -0
- package/dist/src/config/component/data-location.outline.d.ts +117 -0
- package/dist/src/config/component/data-location.outline.js +6 -0
- package/dist/src/config/component/date-input.model.d.ts +66 -0
- package/dist/src/config/component/date-input.model.js +79 -0
- package/dist/src/config/component/date-input.outline.d.ts +81 -0
- package/dist/src/config/component/date-input.outline.js +8 -0
- package/dist/src/config/component/default-layout.model.d.ts +22 -0
- package/dist/src/config/component/default-layout.model.js +30 -0
- package/dist/src/config/component/default-layout.outline.d.ts +29 -0
- package/dist/src/config/component/default-layout.outline.js +5 -0
- package/dist/src/config/component/delete-button.model.d.ts +46 -0
- package/dist/src/config/component/delete-button.model.js +48 -0
- package/dist/src/config/component/delete-button.outline.d.ts +55 -0
- package/dist/src/config/component/delete-button.outline.js +5 -0
- package/dist/src/config/component/dropdown-input.model.d.ts +64 -0
- package/dist/src/config/component/dropdown-input.model.js +77 -0
- package/dist/src/config/component/dropdown-input.outline.d.ts +84 -0
- package/dist/src/config/component/dropdown-input.outline.js +8 -0
- package/dist/src/config/component/file-upload.model.d.ts +67 -0
- package/dist/src/config/component/file-upload.model.js +81 -0
- package/dist/src/config/component/file-upload.outline.d.ts +93 -0
- package/dist/src/config/component/file-upload.outline.js +8 -0
- package/dist/src/config/component/group.model.d.ts +61 -0
- package/dist/src/config/component/group.model.js +75 -0
- package/dist/src/config/component/group.outline.d.ts +77 -0
- package/dist/src/config/component/group.outline.js +8 -0
- package/dist/src/config/component/inline-layout.model.d.ts +22 -0
- package/dist/src/config/component/inline-layout.model.js +29 -0
- package/dist/src/config/component/inline-layout.outline.d.ts +29 -0
- package/dist/src/config/component/inline-layout.outline.js +5 -0
- package/dist/src/config/component/map.model.d.ts +68 -0
- package/dist/src/config/component/map.model.js +85 -0
- package/dist/src/config/component/map.outline.d.ts +102 -0
- package/dist/src/config/component/map.outline.js +8 -0
- package/dist/src/config/component/pdf-list.model.d.ts +68 -0
- package/dist/src/config/component/pdf-list.model.js +71 -0
- package/dist/src/config/component/pdf-list.outline.d.ts +91 -0
- package/dist/src/config/component/pdf-list.outline.js +6 -0
- package/dist/src/config/component/publish-data-location-refresh.model.d.ts +38 -0
- package/dist/src/config/component/publish-data-location-refresh.model.js +51 -0
- package/dist/src/config/component/publish-data-location-refresh.outline.d.ts +47 -0
- package/dist/src/config/component/publish-data-location-refresh.outline.js +5 -0
- package/dist/src/config/component/publish-data-location-selector.model.d.ts +74 -0
- package/dist/src/config/component/publish-data-location-selector.model.js +100 -0
- package/dist/src/config/component/publish-data-location-selector.outline.d.ts +99 -0
- package/dist/src/config/component/publish-data-location-selector.outline.js +6 -0
- package/dist/src/config/component/question-tree.helper.d.ts +61 -0
- package/dist/src/config/component/question-tree.helper.js +298 -0
- package/dist/src/config/component/question-tree.model.d.ts +64 -0
- package/dist/src/config/component/question-tree.model.js +80 -0
- package/dist/src/config/component/question-tree.outline.d.ts +305 -0
- package/dist/src/config/component/question-tree.outline.js +9 -0
- package/dist/src/config/component/radio-input.model.d.ts +63 -0
- package/dist/src/config/component/radio-input.model.js +76 -0
- package/dist/src/config/component/radio-input.outline.d.ts +83 -0
- package/dist/src/config/component/radio-input.outline.js +8 -0
- package/dist/src/config/component/record-metadata-retriever.model.d.ts +41 -0
- package/dist/src/config/component/record-metadata-retriever.model.js +57 -0
- package/dist/src/config/component/record-metadata-retriever.outline.d.ts +47 -0
- package/dist/src/config/component/record-metadata-retriever.outline.js +5 -0
- package/dist/src/config/component/record-selector.model.d.ts +60 -0
- package/dist/src/config/component/record-selector.model.js +60 -0
- package/dist/src/config/component/record-selector.outline.d.ts +84 -0
- package/dist/src/config/component/record-selector.outline.js +6 -0
- package/dist/src/config/component/repeatable.model.d.ts +90 -0
- package/dist/src/config/component/repeatable.model.js +109 -0
- package/dist/src/config/component/repeatable.outline.d.ts +108 -0
- package/dist/src/config/component/repeatable.outline.js +10 -0
- package/dist/src/config/component/reusable.model.d.ts +42 -0
- package/dist/src/config/component/reusable.model.js +57 -0
- package/dist/src/config/component/reusable.outline.d.ts +49 -0
- package/dist/src/config/component/reusable.outline.js +6 -0
- package/dist/src/config/component/rich-text-editor.model.d.ts +65 -0
- package/dist/src/config/component/rich-text-editor.model.js +79 -0
- package/dist/src/config/component/rich-text-editor.outline.d.ts +86 -0
- package/dist/src/config/component/rich-text-editor.outline.js +8 -0
- package/dist/src/config/component/save-button.model.d.ts +45 -0
- package/dist/src/config/component/save-button.model.js +55 -0
- package/dist/src/config/component/save-button.outline.d.ts +65 -0
- package/dist/src/config/component/save-button.outline.js +6 -0
- package/dist/src/config/component/save-status.model.d.ts +42 -0
- package/dist/src/config/component/save-status.model.js +60 -0
- package/dist/src/config/component/save-status.outline.d.ts +52 -0
- package/dist/src/config/component/save-status.outline.js +6 -0
- package/dist/src/config/component/simple-input.model.d.ts +62 -0
- package/dist/src/config/component/simple-input.model.js +75 -0
- package/dist/src/config/component/simple-input.outline.d.ts +80 -0
- package/dist/src/config/component/simple-input.outline.js +9 -0
- package/dist/src/config/component/tab-content.model.d.ts +63 -0
- package/dist/src/config/component/tab-content.model.js +77 -0
- package/dist/src/config/component/tab-content.outline.d.ts +92 -0
- package/dist/src/config/component/tab-content.outline.js +8 -0
- package/dist/src/config/component/tab-nav-button.model.d.ts +45 -0
- package/dist/src/config/component/tab-nav-button.model.js +55 -0
- package/dist/src/config/component/tab-nav-button.outline.d.ts +64 -0
- package/dist/src/config/component/tab-nav-button.outline.js +6 -0
- package/dist/src/config/component/tab.model.d.ts +71 -0
- package/dist/src/config/component/tab.model.js +84 -0
- package/dist/src/config/component/tab.outline.d.ts +106 -0
- package/dist/src/config/component/tab.outline.js +9 -0
- package/dist/src/config/component/text-area.model.d.ts +63 -0
- package/dist/src/config/component/text-area.model.js +76 -0
- package/dist/src/config/component/text-area.outline.d.ts +81 -0
- package/dist/src/config/component/text-area.outline.js +8 -0
- package/dist/src/config/component/typeahead-input.model.d.ts +78 -0
- package/dist/src/config/component/typeahead-input.model.js +91 -0
- package/dist/src/config/component/typeahead-input.outline.d.ts +107 -0
- package/dist/src/config/component/typeahead-input.outline.js +8 -0
- package/dist/src/config/component/validation-summary.model.d.ts +42 -0
- package/dist/src/config/component/validation-summary.model.js +60 -0
- package/dist/src/config/component/validation-summary.outline.d.ts +57 -0
- package/dist/src/config/component/validation-summary.outline.js +6 -0
- package/dist/src/config/dictionary.model.d.ts +624 -0
- package/dist/src/config/dictionary.model.js +175 -0
- package/dist/src/config/dictionary.outline.d.ts +94 -0
- package/dist/src/config/dictionary.outline.js +3 -0
- package/dist/src/config/field-component.model.d.ts +7 -0
- package/dist/src/config/field-component.model.js +11 -0
- package/dist/src/config/field-component.outline.d.ts +20 -0
- package/dist/src/config/field-component.outline.js +3 -0
- package/dist/src/config/field-layout.model.d.ts +19 -0
- package/dist/src/config/field-layout.model.js +23 -0
- package/dist/src/config/field-layout.outline.d.ts +42 -0
- package/dist/src/config/field-layout.outline.js +3 -0
- package/dist/src/config/field-model.model.d.ts +22 -0
- package/dist/src/config/field-model.model.js +25 -0
- package/dist/src/config/field-model.outline.d.ts +63 -0
- package/dist/src/config/field-model.outline.js +3 -0
- package/dist/src/config/field.model.d.ts +12 -0
- package/dist/src/config/field.model.js +12 -0
- package/dist/src/config/field.outline.d.ts +19 -0
- package/dist/src/config/field.outline.js +3 -0
- package/dist/src/config/form-behaviour.outline.d.ts +128 -0
- package/dist/src/config/form-behaviour.outline.js +40 -0
- package/dist/src/config/form-component.model.d.ts +38 -0
- package/dist/src/config/form-component.model.js +36 -0
- package/dist/src/config/form-component.outline.d.ts +257 -0
- package/dist/src/config/form-component.outline.js +24 -0
- package/dist/src/config/form-config.model.d.ts +33 -0
- package/dist/src/config/form-config.model.js +36 -0
- package/dist/src/config/form-config.outline.d.ts +109 -0
- package/dist/src/config/form-config.outline.js +3 -0
- package/dist/src/config/form-override.model.d.ts +116 -0
- package/dist/src/config/form-override.model.js +1209 -0
- package/dist/src/config/form-override.outline.d.ts +15 -0
- package/dist/src/config/form-override.outline.js +3 -0
- package/dist/src/config/form-types.model.d.ts +6 -0
- package/dist/src/config/form-types.model.js +23 -0
- package/dist/src/config/form-types.outline.d.ts +48 -0
- package/dist/src/config/form-types.outline.js +137 -0
- package/dist/src/config/helpers.d.ts +23 -0
- package/dist/src/config/helpers.js +105 -0
- package/dist/src/config/names/naming-helpers.d.ts +71 -0
- package/dist/src/config/names/naming-helpers.js +72 -0
- package/dist/src/config/names/query-helpers.d.ts +43 -0
- package/dist/src/config/names/query-helpers.js +64 -0
- package/dist/src/config/shared.outline.d.ts +54 -0
- package/dist/src/config/shared.outline.js +41 -0
- package/dist/src/config/visitor/base.model.d.ts +137 -0
- package/dist/src/config/visitor/base.model.js +323 -0
- package/dist/src/config/visitor/base.outline.d.ts +140 -0
- package/dist/src/config/visitor/base.outline.js +3 -0
- package/dist/src/config/visitor/common.model.d.ts +119 -0
- package/dist/src/config/visitor/common.model.js +421 -0
- package/dist/src/handlebars-helpers.d.ts +224 -0
- package/dist/src/handlebars-helpers.js +558 -0
- package/dist/src/index.d.ts +109 -0
- package/dist/src/index.js +136 -0
- package/dist/src/logger.interface.d.ts +14 -0
- package/dist/src/logger.interface.js +3 -0
- package/dist/src/record.model.d.ts +35 -0
- package/dist/src/record.model.js +21 -0
- package/dist/src/report.model.d.ts +21 -0
- package/dist/src/report.model.js +19 -0
- package/dist/src/status.model.d.ts +22 -0
- package/dist/src/status.model.js +28 -0
- package/dist/src/template.outline.d.ts +49 -0
- package/dist/src/template.outline.js +13 -0
- package/dist/src/translation-helpers.d.ts +10 -0
- package/dist/src/translation-helpers.js +30 -0
- package/dist/src/validation/form.model.d.ts +247 -0
- package/dist/src/validation/form.model.js +31 -0
- package/dist/src/validation/helpers.d.ts +14 -0
- package/dist/src/validation/helpers.js +68 -0
- package/dist/src/validation/validators-support.d.ts +41 -0
- package/dist/src/validation/validators-support.js +141 -0
- package/dist/src/validation/validators.d.ts +23 -0
- package/dist/src/validation/validators.js +427 -0
- package/package.json +95 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export * from './record.model';
|
|
2
|
+
export * from './report.model';
|
|
3
|
+
export * from './status.model';
|
|
4
|
+
export * from './template.outline';
|
|
5
|
+
export * from './handlebars-helpers';
|
|
6
|
+
export * from './translation-helpers';
|
|
7
|
+
export * from './config/helpers';
|
|
8
|
+
export * from './config/dictionary.outline';
|
|
9
|
+
export * from './config/dictionary.model';
|
|
10
|
+
export * from './config/shared.outline';
|
|
11
|
+
export * from './config/form-config.outline';
|
|
12
|
+
export * from './config/form-config.model';
|
|
13
|
+
export * from './config/form-behaviour.outline';
|
|
14
|
+
export * from './config/form-component.outline';
|
|
15
|
+
export * from './config/form-component.model';
|
|
16
|
+
export * from './config/base-field-component.outline';
|
|
17
|
+
export * from './config/base-field-component.model';
|
|
18
|
+
export * from './config/field-model.outline';
|
|
19
|
+
export * from './config/field-model.model';
|
|
20
|
+
export * from './config/field-layout.outline';
|
|
21
|
+
export * from './config/field-layout.model';
|
|
22
|
+
export * from './config/field-component.outline';
|
|
23
|
+
export * from './config/field-component.model';
|
|
24
|
+
export * from './config/field.outline';
|
|
25
|
+
export * from './config/field.model';
|
|
26
|
+
export * from './config/form-override.model';
|
|
27
|
+
export * from './config/form-override.outline';
|
|
28
|
+
export * from './config/form-types.model';
|
|
29
|
+
export * from './config/form-types.outline';
|
|
30
|
+
export * from './config/names/query-helpers';
|
|
31
|
+
export * from './config/names/naming-helpers';
|
|
32
|
+
export * from './config/visitor/base.outline';
|
|
33
|
+
export * from './config/visitor/base.model';
|
|
34
|
+
export * from './config/visitor/common.model';
|
|
35
|
+
export * from './logger.interface';
|
|
36
|
+
export * from './config/component/checkbox-input.model';
|
|
37
|
+
export * from './config/component/checkbox-input.outline';
|
|
38
|
+
export * from './config/component/default-layout.model';
|
|
39
|
+
export * from './config/component/default-layout.outline';
|
|
40
|
+
export * from './config/component/action-row-layout.model';
|
|
41
|
+
export * from './config/component/action-row-layout.outline';
|
|
42
|
+
export * from './config/component/inline-layout.model';
|
|
43
|
+
export * from './config/component/inline-layout.outline';
|
|
44
|
+
export * from './config/component/dropdown-input.model';
|
|
45
|
+
export * from './config/component/dropdown-input.outline';
|
|
46
|
+
export * from './config/component/group.model';
|
|
47
|
+
export * from './config/component/group.outline';
|
|
48
|
+
export * from './config/component/radio-input.model';
|
|
49
|
+
export * from './config/component/radio-input.outline';
|
|
50
|
+
export * from './config/component/repeatable.model';
|
|
51
|
+
export * from './config/component/repeatable.outline';
|
|
52
|
+
export * from './config/component/save-button.model';
|
|
53
|
+
export * from './config/component/save-button.outline';
|
|
54
|
+
export * from './config/component/save-status.model';
|
|
55
|
+
export * from './config/component/save-status.outline';
|
|
56
|
+
export * from './config/component/cancel-button.model';
|
|
57
|
+
export * from './config/component/cancel-button.outline';
|
|
58
|
+
export * from './config/component/delete-button.model';
|
|
59
|
+
export * from './config/component/delete-button.outline';
|
|
60
|
+
export * from './config/component/tab-nav-button.model';
|
|
61
|
+
export * from './config/component/tab-nav-button.outline';
|
|
62
|
+
export * from './config/component/simple-input.model';
|
|
63
|
+
export * from './config/component/simple-input.outline';
|
|
64
|
+
export * from './config/component/tab.model';
|
|
65
|
+
export * from './config/component/tab.outline';
|
|
66
|
+
export * from './config/component/accordion.model';
|
|
67
|
+
export * from './config/component/accordion.outline';
|
|
68
|
+
export * from './config/component/tab-content.model';
|
|
69
|
+
export * from './config/component/tab-content.outline';
|
|
70
|
+
export * from './config/component/text-area.model';
|
|
71
|
+
export * from './config/component/text-area.outline';
|
|
72
|
+
export * from './config/component/content.model';
|
|
73
|
+
export * from './config/component/content.outline';
|
|
74
|
+
export * from './config/component/validation-summary.model';
|
|
75
|
+
export * from './config/component/validation-summary.outline';
|
|
76
|
+
export * from './config/component/date-input.model';
|
|
77
|
+
export * from './config/component/date-input.outline';
|
|
78
|
+
export * from './config/component/question-tree.model';
|
|
79
|
+
export * from './config/component/question-tree.outline';
|
|
80
|
+
export * from './config/component/checkbox-tree.model';
|
|
81
|
+
export * from './config/component/checkbox-tree.outline';
|
|
82
|
+
export * from './config/component/record-selector.model';
|
|
83
|
+
export * from './config/component/record-selector.outline';
|
|
84
|
+
export * from './config/component/typeahead-input.model';
|
|
85
|
+
export * from './config/component/typeahead-input.outline';
|
|
86
|
+
export * from './config/component/rich-text-editor.model';
|
|
87
|
+
export * from './config/component/rich-text-editor.outline';
|
|
88
|
+
export * from './config/component/map.model';
|
|
89
|
+
export * from './config/component/map.outline';
|
|
90
|
+
export * from './config/component/file-upload.model';
|
|
91
|
+
export * from './config/component/file-upload.outline';
|
|
92
|
+
export * from './config/component/pdf-list.model';
|
|
93
|
+
export * from './config/component/pdf-list.outline';
|
|
94
|
+
export * from './config/component/record-metadata-retriever.model';
|
|
95
|
+
export * from './config/component/record-metadata-retriever.outline';
|
|
96
|
+
export * from './config/component/publish-data-location-refresh.model';
|
|
97
|
+
export * from './config/component/publish-data-location-refresh.outline';
|
|
98
|
+
export * from './config/component/data-location.model';
|
|
99
|
+
export * from './config/component/data-location.outline';
|
|
100
|
+
export * from './config/component/publish-data-location-selector.model';
|
|
101
|
+
export * from './config/component/publish-data-location-selector.outline';
|
|
102
|
+
export * from './config/component/reusable.model';
|
|
103
|
+
export * from './config/component/reusable.outline';
|
|
104
|
+
export * from './config/component/question-tree.model';
|
|
105
|
+
export * from './config/component/question-tree.outline';
|
|
106
|
+
export * from './validation/helpers';
|
|
107
|
+
export * from './validation/form.model';
|
|
108
|
+
export * from './validation/validators';
|
|
109
|
+
export * from './validation/validators-support';
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// top
|
|
18
|
+
__exportStar(require("./record.model"), exports);
|
|
19
|
+
__exportStar(require("./report.model"), exports);
|
|
20
|
+
__exportStar(require("./status.model"), exports);
|
|
21
|
+
__exportStar(require("./template.outline"), exports);
|
|
22
|
+
__exportStar(require("./handlebars-helpers"), exports);
|
|
23
|
+
__exportStar(require("./translation-helpers"), exports);
|
|
24
|
+
// config
|
|
25
|
+
__exportStar(require("./config/helpers"), exports);
|
|
26
|
+
__exportStar(require("./config/dictionary.outline"), exports);
|
|
27
|
+
__exportStar(require("./config/dictionary.model"), exports);
|
|
28
|
+
__exportStar(require("./config/shared.outline"), exports);
|
|
29
|
+
__exportStar(require("./config/form-config.outline"), exports);
|
|
30
|
+
__exportStar(require("./config/form-config.model"), exports);
|
|
31
|
+
// Form behaviours are exported from the shared package so both server visitors
|
|
32
|
+
// and Angular runtime code consume the same v1 config contract.
|
|
33
|
+
__exportStar(require("./config/form-behaviour.outline"), exports);
|
|
34
|
+
__exportStar(require("./config/form-component.outline"), exports);
|
|
35
|
+
__exportStar(require("./config/form-component.model"), exports);
|
|
36
|
+
__exportStar(require("./config/base-field-component.outline"), exports);
|
|
37
|
+
__exportStar(require("./config/base-field-component.model"), exports);
|
|
38
|
+
__exportStar(require("./config/field-model.outline"), exports);
|
|
39
|
+
__exportStar(require("./config/field-model.model"), exports);
|
|
40
|
+
__exportStar(require("./config/field-layout.outline"), exports);
|
|
41
|
+
__exportStar(require("./config/field-layout.model"), exports);
|
|
42
|
+
__exportStar(require("./config/field-component.outline"), exports);
|
|
43
|
+
__exportStar(require("./config/field-component.model"), exports);
|
|
44
|
+
__exportStar(require("./config/field.outline"), exports);
|
|
45
|
+
__exportStar(require("./config/field.model"), exports);
|
|
46
|
+
__exportStar(require("./config/form-override.model"), exports);
|
|
47
|
+
__exportStar(require("./config/form-override.outline"), exports);
|
|
48
|
+
__exportStar(require("./config/form-types.model"), exports);
|
|
49
|
+
__exportStar(require("./config/form-types.outline"), exports);
|
|
50
|
+
// names
|
|
51
|
+
__exportStar(require("./config/names/query-helpers"), exports);
|
|
52
|
+
__exportStar(require("./config/names/naming-helpers"), exports);
|
|
53
|
+
// config/visitor
|
|
54
|
+
__exportStar(require("./config/visitor/base.outline"), exports);
|
|
55
|
+
__exportStar(require("./config/visitor/base.model"), exports);
|
|
56
|
+
__exportStar(require("./config/visitor/common.model"), exports);
|
|
57
|
+
__exportStar(require("./logger.interface"), exports);
|
|
58
|
+
// config/component
|
|
59
|
+
__exportStar(require("./config/component/checkbox-input.model"), exports);
|
|
60
|
+
__exportStar(require("./config/component/checkbox-input.outline"), exports);
|
|
61
|
+
__exportStar(require("./config/component/default-layout.model"), exports);
|
|
62
|
+
__exportStar(require("./config/component/default-layout.outline"), exports);
|
|
63
|
+
__exportStar(require("./config/component/action-row-layout.model"), exports);
|
|
64
|
+
__exportStar(require("./config/component/action-row-layout.outline"), exports);
|
|
65
|
+
__exportStar(require("./config/component/inline-layout.model"), exports);
|
|
66
|
+
__exportStar(require("./config/component/inline-layout.outline"), exports);
|
|
67
|
+
__exportStar(require("./config/component/dropdown-input.model"), exports);
|
|
68
|
+
__exportStar(require("./config/component/dropdown-input.outline"), exports);
|
|
69
|
+
__exportStar(require("./config/component/group.model"), exports);
|
|
70
|
+
__exportStar(require("./config/component/group.outline"), exports);
|
|
71
|
+
__exportStar(require("./config/component/radio-input.model"), exports);
|
|
72
|
+
__exportStar(require("./config/component/radio-input.outline"), exports);
|
|
73
|
+
__exportStar(require("./config/component/repeatable.model"), exports);
|
|
74
|
+
__exportStar(require("./config/component/repeatable.outline"), exports);
|
|
75
|
+
__exportStar(require("./config/component/save-button.model"), exports);
|
|
76
|
+
__exportStar(require("./config/component/save-button.outline"), exports);
|
|
77
|
+
__exportStar(require("./config/component/save-status.model"), exports);
|
|
78
|
+
__exportStar(require("./config/component/save-status.outline"), exports);
|
|
79
|
+
__exportStar(require("./config/component/cancel-button.model"), exports);
|
|
80
|
+
__exportStar(require("./config/component/cancel-button.outline"), exports);
|
|
81
|
+
__exportStar(require("./config/component/delete-button.model"), exports);
|
|
82
|
+
__exportStar(require("./config/component/delete-button.outline"), exports);
|
|
83
|
+
__exportStar(require("./config/component/tab-nav-button.model"), exports);
|
|
84
|
+
__exportStar(require("./config/component/tab-nav-button.outline"), exports);
|
|
85
|
+
__exportStar(require("./config/component/simple-input.model"), exports);
|
|
86
|
+
__exportStar(require("./config/component/simple-input.outline"), exports);
|
|
87
|
+
__exportStar(require("./config/component/tab.model"), exports);
|
|
88
|
+
__exportStar(require("./config/component/tab.outline"), exports);
|
|
89
|
+
__exportStar(require("./config/component/accordion.model"), exports);
|
|
90
|
+
__exportStar(require("./config/component/accordion.outline"), exports);
|
|
91
|
+
__exportStar(require("./config/component/tab-content.model"), exports);
|
|
92
|
+
__exportStar(require("./config/component/tab-content.outline"), exports);
|
|
93
|
+
__exportStar(require("./config/component/text-area.model"), exports);
|
|
94
|
+
__exportStar(require("./config/component/text-area.outline"), exports);
|
|
95
|
+
__exportStar(require("./config/component/content.model"), exports);
|
|
96
|
+
__exportStar(require("./config/component/content.outline"), exports);
|
|
97
|
+
__exportStar(require("./config/component/validation-summary.model"), exports);
|
|
98
|
+
__exportStar(require("./config/component/validation-summary.outline"), exports);
|
|
99
|
+
__exportStar(require("./config/component/date-input.model"), exports);
|
|
100
|
+
__exportStar(require("./config/component/date-input.outline"), exports);
|
|
101
|
+
__exportStar(require("./config/component/question-tree.model"), exports);
|
|
102
|
+
__exportStar(require("./config/component/question-tree.outline"), exports);
|
|
103
|
+
__exportStar(require("./config/component/checkbox-tree.model"), exports);
|
|
104
|
+
__exportStar(require("./config/component/checkbox-tree.outline"), exports);
|
|
105
|
+
__exportStar(require("./config/component/record-selector.model"), exports);
|
|
106
|
+
__exportStar(require("./config/component/record-selector.outline"), exports);
|
|
107
|
+
__exportStar(require("./config/component/typeahead-input.model"), exports);
|
|
108
|
+
__exportStar(require("./config/component/typeahead-input.outline"), exports);
|
|
109
|
+
__exportStar(require("./config/component/rich-text-editor.model"), exports);
|
|
110
|
+
__exportStar(require("./config/component/rich-text-editor.outline"), exports);
|
|
111
|
+
__exportStar(require("./config/component/map.model"), exports);
|
|
112
|
+
__exportStar(require("./config/component/map.outline"), exports);
|
|
113
|
+
__exportStar(require("./config/component/file-upload.model"), exports);
|
|
114
|
+
__exportStar(require("./config/component/file-upload.outline"), exports);
|
|
115
|
+
__exportStar(require("./config/component/pdf-list.model"), exports);
|
|
116
|
+
__exportStar(require("./config/component/pdf-list.outline"), exports);
|
|
117
|
+
__exportStar(require("./config/component/record-metadata-retriever.model"), exports);
|
|
118
|
+
__exportStar(require("./config/component/record-metadata-retriever.outline"), exports);
|
|
119
|
+
// Exported so hooks and Angular runtime can reference the same component name
|
|
120
|
+
// and visitor-aware definitions.
|
|
121
|
+
__exportStar(require("./config/component/publish-data-location-refresh.model"), exports);
|
|
122
|
+
__exportStar(require("./config/component/publish-data-location-refresh.outline"), exports);
|
|
123
|
+
__exportStar(require("./config/component/data-location.model"), exports);
|
|
124
|
+
__exportStar(require("./config/component/data-location.outline"), exports);
|
|
125
|
+
__exportStar(require("./config/component/publish-data-location-selector.model"), exports);
|
|
126
|
+
__exportStar(require("./config/component/publish-data-location-selector.outline"), exports);
|
|
127
|
+
__exportStar(require("./config/component/reusable.model"), exports);
|
|
128
|
+
__exportStar(require("./config/component/reusable.outline"), exports);
|
|
129
|
+
__exportStar(require("./config/component/question-tree.model"), exports);
|
|
130
|
+
__exportStar(require("./config/component/question-tree.outline"), exports);
|
|
131
|
+
// validation
|
|
132
|
+
__exportStar(require("./validation/helpers"), exports);
|
|
133
|
+
__exportStar(require("./validation/form.model"), exports);
|
|
134
|
+
__exportStar(require("./validation/validators"), exports);
|
|
135
|
+
__exportStar(require("./validation/validators-support"), exports);
|
|
136
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLE1BQU07QUFDTixpREFBK0I7QUFDL0IsaURBQStCO0FBQy9CLGlEQUErQjtBQUMvQixxREFBbUM7QUFDbkMsdURBQXFDO0FBQ3JDLHdEQUFzQztBQUN0QyxTQUFTO0FBQ1QsbURBQWlDO0FBQ2pDLDhEQUE0QztBQUM1Qyw0REFBMEM7QUFDMUMsMERBQXdDO0FBQ3hDLCtEQUE2QztBQUM3Qyw2REFBMkM7QUFDM0MsK0VBQStFO0FBQy9FLGdFQUFnRTtBQUNoRSxrRUFBZ0Q7QUFDaEQsa0VBQWdEO0FBQ2hELGdFQUE4QztBQUM5Qyx3RUFBc0Q7QUFDdEQsc0VBQW9EO0FBQ3BELCtEQUE2QztBQUM3Qyw2REFBMkM7QUFDM0MsZ0VBQThDO0FBQzlDLDhEQUE0QztBQUM1QyxtRUFBaUQ7QUFDakQsaUVBQStDO0FBQy9DLHlEQUF1QztBQUN2Qyx1REFBcUM7QUFDckMsK0RBQTZDO0FBQzdDLGlFQUErQztBQUMvQyw0REFBMEM7QUFDMUMsOERBQTRDO0FBQzVDLFFBQVE7QUFDUiwrREFBNkM7QUFDN0MsZ0VBQThDO0FBQzlDLGlCQUFpQjtBQUNqQixnRUFBOEM7QUFDOUMsOERBQTRDO0FBQzVDLGdFQUE4QztBQUM5QyxxREFBbUM7QUFDbkMsbUJBQW1CO0FBQ25CLDBFQUF3RDtBQUN4RCw0RUFBMEQ7QUFDMUQsMEVBQXdEO0FBQ3hELDRFQUEwRDtBQUMxRCw2RUFBMkQ7QUFDM0QsK0VBQTZEO0FBQzdELHlFQUF1RDtBQUN2RCwyRUFBeUQ7QUFDekQsMEVBQXdEO0FBQ3hELDRFQUEwRDtBQUMxRCxpRUFBK0M7QUFDL0MsbUVBQWlEO0FBQ2pELHVFQUFxRDtBQUNyRCx5RUFBdUQ7QUFDdkQsc0VBQW9EO0FBQ3BELHdFQUFzRDtBQUN0RCx1RUFBcUQ7QUFDckQseUVBQXVEO0FBQ3ZELHVFQUFxRDtBQUNyRCx5RUFBdUQ7QUFDdkQseUVBQXVEO0FBQ3ZELDJFQUF5RDtBQUN6RCx5RUFBdUQ7QUFDdkQsMkVBQXlEO0FBQ3pELDBFQUF3RDtBQUN4RCw0RUFBMEQ7QUFDMUQsd0VBQXNEO0FBQ3RELDBFQUF3RDtBQUN4RCwrREFBNkM7QUFDN0MsaUVBQStDO0FBQy9DLHFFQUFtRDtBQUNuRCx1RUFBcUQ7QUFDckQsdUVBQXFEO0FBQ3JELHlFQUF1RDtBQUN2RCxxRUFBbUQ7QUFDbkQsdUVBQXFEO0FBQ3JELG1FQUFpRDtBQUNqRCxxRUFBbUQ7QUFDbkQsOEVBQTREO0FBQzVELGdGQUE4RDtBQUM5RCxzRUFBb0Q7QUFDcEQsd0VBQXNEO0FBQ3RELHlFQUF1RDtBQUN2RCwyRUFBeUQ7QUFDekQseUVBQXVEO0FBQ3ZELDJFQUF5RDtBQUN6RCwyRUFBeUQ7QUFDekQsNkVBQTJEO0FBQzNELDJFQUF5RDtBQUN6RCw2RUFBMkQ7QUFDM0QsNEVBQTBEO0FBQzFELDhFQUE0RDtBQUM1RCwrREFBNkM7QUFDN0MsaUVBQStDO0FBQy9DLHVFQUFxRDtBQUNyRCx5RUFBdUQ7QUFDdkQsb0VBQWtEO0FBQ2xELHNFQUFvRDtBQUNwRCxxRkFBbUU7QUFDbkUsdUZBQXFFO0FBQ3JFLDhFQUE4RTtBQUM5RSxpQ0FBaUM7QUFDakMseUZBQXVFO0FBQ3ZFLDJGQUF5RTtBQUN6RSx5RUFBdUQ7QUFDdkQsMkVBQXlEO0FBQ3pELDBGQUF3RTtBQUN4RSw0RkFBMEU7QUFDMUUsb0VBQWtEO0FBQ2xELHNFQUFvRDtBQUNwRCx5RUFBdUQ7QUFDdkQsMkVBQXlEO0FBQ3pELGFBQWE7QUFDYix1REFBcUM7QUFDckMsMERBQXdDO0FBQ3hDLDBEQUF3QztBQUN4QyxrRUFBZ0QifQ==
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ILogger {
|
|
2
|
+
silly: (...args: any[]) => void;
|
|
3
|
+
verbose: (...args: any[]) => void;
|
|
4
|
+
trace: (...args: any[]) => void;
|
|
5
|
+
debug: (...args: any[]) => void;
|
|
6
|
+
log: (...args: any[]) => void;
|
|
7
|
+
info: (...args: any[]) => void;
|
|
8
|
+
warn: (...args: any[]) => void;
|
|
9
|
+
error: (...args: any[]) => void;
|
|
10
|
+
crit: (...args: any[]) => void;
|
|
11
|
+
fatal: (...args: any[]) => void;
|
|
12
|
+
silent: (...args: any[]) => void;
|
|
13
|
+
blank: (...args: any[]) => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2VyLmludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9sb2dnZXIuaW50ZXJmYWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the property/column rendering configuration
|
|
3
|
+
*/
|
|
4
|
+
export interface RecordPropViewMetaDto {
|
|
5
|
+
/**
|
|
6
|
+
* control visibility
|
|
7
|
+
*
|
|
8
|
+
* warning breaking change, used to be called 'show'
|
|
9
|
+
*/
|
|
10
|
+
hide: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* if set, will run this against _.template
|
|
13
|
+
*/
|
|
14
|
+
template: string;
|
|
15
|
+
/**
|
|
16
|
+
* the property/variable name
|
|
17
|
+
*/
|
|
18
|
+
property: string;
|
|
19
|
+
/**
|
|
20
|
+
* the column header
|
|
21
|
+
*/
|
|
22
|
+
label: string;
|
|
23
|
+
/**
|
|
24
|
+
* whether to expect the property to be multi-valued
|
|
25
|
+
*/
|
|
26
|
+
multivalue: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Model for each page of records
|
|
30
|
+
*/
|
|
31
|
+
export interface RecordPageDto {
|
|
32
|
+
records: unknown[];
|
|
33
|
+
total: number;
|
|
34
|
+
pageNum: number;
|
|
35
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) 2023 Queensland Cyber Infrastructure Foundation (http://www.qcif.edu.au/)
|
|
3
|
+
//
|
|
4
|
+
// GNU GENERAL PUBLIC LICENSE
|
|
5
|
+
// Version 2, June 1991
|
|
6
|
+
//
|
|
7
|
+
// This program is free software; you can redistribute it and/or modify
|
|
8
|
+
// it under the terms of the GNU General Public License as published by
|
|
9
|
+
// the Free Software Foundation; either version 2 of the License, or
|
|
10
|
+
// (at your option) any later version.
|
|
11
|
+
//
|
|
12
|
+
// This program is distributed in the hope that it will be useful,
|
|
13
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
// GNU General Public License for more details.
|
|
16
|
+
//
|
|
17
|
+
// You should have received a copy of the GNU General Public License along
|
|
18
|
+
// with this program; if not, write to the Free Software Foundation, Inc.,
|
|
19
|
+
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjb3JkLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JlY29yZC5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEZBQTBGO0FBQzFGLEVBQUU7QUFDRiw2QkFBNkI7QUFDN0IsMEJBQTBCO0FBQzFCLEVBQUU7QUFDRix1RUFBdUU7QUFDdkUsdUVBQXVFO0FBQ3ZFLG9FQUFvRTtBQUNwRSxzQ0FBc0M7QUFDdEMsRUFBRTtBQUNGLGtFQUFrRTtBQUNsRSxpRUFBaUU7QUFDakUsZ0VBQWdFO0FBQ2hFLCtDQUErQztBQUMvQyxFQUFFO0FBQ0YsMEVBQTBFO0FBQzFFLDBFQUEwRTtBQUMxRSw4REFBOEQifQ==
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RecordPageDto, RecordPropViewMetaDto } from "./record.model";
|
|
2
|
+
export interface ReportFilterDto {
|
|
3
|
+
type: string;
|
|
4
|
+
paramName: string;
|
|
5
|
+
message: string;
|
|
6
|
+
property: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class ReportDto {
|
|
9
|
+
title: string;
|
|
10
|
+
name: string;
|
|
11
|
+
solrQuery: string;
|
|
12
|
+
filter: ReportFilterDto[];
|
|
13
|
+
columns: RecordPropViewMetaDto[];
|
|
14
|
+
constructor();
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Users of Record Table must extend RecordPage model
|
|
18
|
+
*/
|
|
19
|
+
export interface ReportResultDto extends RecordPageDto {
|
|
20
|
+
recordsPerPage: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportDto = void 0;
|
|
4
|
+
class ReportDto {
|
|
5
|
+
title;
|
|
6
|
+
name;
|
|
7
|
+
solrQuery;
|
|
8
|
+
filter;
|
|
9
|
+
columns;
|
|
10
|
+
constructor() {
|
|
11
|
+
this.title = "";
|
|
12
|
+
this.name = "";
|
|
13
|
+
this.solrQuery = "";
|
|
14
|
+
this.filter = [];
|
|
15
|
+
this.columns = [];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ReportDto = ReportDto;
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0Lm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JlcG9ydC5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFTQSxNQUFhLFNBQVM7SUFDcEIsS0FBSyxDQUFTO0lBQ2QsSUFBSSxDQUFTO0lBQ2IsU0FBUyxDQUFTO0lBQ2xCLE1BQU0sQ0FBb0I7SUFDMUIsT0FBTyxDQUEwQjtJQUNqQztRQUNFLElBQUksQ0FBQyxLQUFLLEdBQUcsRUFBRSxDQUFDO1FBQ2hCLElBQUksQ0FBQyxJQUFJLEdBQUcsRUFBRSxDQUFDO1FBQ2YsSUFBSSxDQUFDLFNBQVMsR0FBRyxFQUFFLENBQUM7UUFDcEIsSUFBSSxDQUFDLE1BQU0sR0FBRyxFQUFFLENBQUM7UUFDakIsSUFBSSxDQUFDLE9BQU8sR0FBRyxFQUFFLENBQUM7SUFDcEIsQ0FBQztDQUNGO0FBYkQsOEJBYUMifQ==
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The status of a component.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum FormFieldComponentStatus {
|
|
5
|
+
INIT = "INIT",
|
|
6
|
+
INIT_VIEW_READY = "INIT_VIEW_READY",// Indicates the view has been initialized and ready for DOM manipulations
|
|
7
|
+
READY = "READY",
|
|
8
|
+
BUSY = "BUSY",
|
|
9
|
+
ERROR = "ERROR"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The status of a form.
|
|
13
|
+
*/
|
|
14
|
+
export declare enum FormStatus {
|
|
15
|
+
INIT = "INIT",
|
|
16
|
+
READY = "READY",
|
|
17
|
+
SAVING = "SAVING",
|
|
18
|
+
DELETING = "DELETING",
|
|
19
|
+
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
20
|
+
LOAD_ERROR = "LOAD_ERROR",
|
|
21
|
+
VALIDATION_PENDING = "VALIDATION_PENDING"
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormStatus = exports.FormFieldComponentStatus = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The status of a component.
|
|
6
|
+
*/
|
|
7
|
+
var FormFieldComponentStatus;
|
|
8
|
+
(function (FormFieldComponentStatus) {
|
|
9
|
+
FormFieldComponentStatus["INIT"] = "INIT";
|
|
10
|
+
FormFieldComponentStatus["INIT_VIEW_READY"] = "INIT_VIEW_READY";
|
|
11
|
+
FormFieldComponentStatus["READY"] = "READY";
|
|
12
|
+
FormFieldComponentStatus["BUSY"] = "BUSY";
|
|
13
|
+
FormFieldComponentStatus["ERROR"] = "ERROR";
|
|
14
|
+
})(FormFieldComponentStatus || (exports.FormFieldComponentStatus = FormFieldComponentStatus = {}));
|
|
15
|
+
/**
|
|
16
|
+
* The status of a form.
|
|
17
|
+
*/
|
|
18
|
+
var FormStatus;
|
|
19
|
+
(function (FormStatus) {
|
|
20
|
+
FormStatus["INIT"] = "INIT";
|
|
21
|
+
FormStatus["READY"] = "READY";
|
|
22
|
+
FormStatus["SAVING"] = "SAVING";
|
|
23
|
+
FormStatus["DELETING"] = "DELETING";
|
|
24
|
+
FormStatus["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
25
|
+
FormStatus["LOAD_ERROR"] = "LOAD_ERROR";
|
|
26
|
+
FormStatus["VALIDATION_PENDING"] = "VALIDATION_PENDING";
|
|
27
|
+
})(FormStatus || (exports.FormStatus = FormStatus = {}));
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3N0YXR1cy5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTs7R0FFRztBQUNILElBQVksd0JBTVg7QUFORCxXQUFZLHdCQUF3QjtJQUNsQyx5Q0FBYSxDQUFBO0lBQ2IsK0RBQW1DLENBQUE7SUFDbkMsMkNBQWUsQ0FBQTtJQUNmLHlDQUFhLENBQUE7SUFDYiwyQ0FBZSxDQUFBO0FBQ2pCLENBQUMsRUFOVyx3QkFBd0Isd0NBQXhCLHdCQUF3QixRQU1uQztBQUNEOztHQUVHO0FBQ0gsSUFBWSxVQVFYO0FBUkQsV0FBWSxVQUFVO0lBQ3BCLDJCQUFhLENBQUE7SUFDYiw2QkFBZSxDQUFBO0lBQ2YsK0JBQWlCLENBQUE7SUFDakIsbUNBQXFCLENBQUE7SUFDckIsbURBQXFDLENBQUE7SUFDckMsdUNBQXlCLENBQUE7SUFDekIsdURBQXlDLENBQUE7QUFDM0MsQ0FBQyxFQVJXLFVBQVUsMEJBQVYsVUFBVSxRQVFyQiJ9
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LineagePath } from "./config/names/naming-helpers";
|
|
2
|
+
export declare const templateCompileKind: readonly ["jsonata", "handlebars"];
|
|
3
|
+
export type TemplateCompileKind = typeof templateCompileKind[number];
|
|
4
|
+
export type TemplateCompileKey = LineagePath;
|
|
5
|
+
export type TemplateCompileKeyFormatted = string;
|
|
6
|
+
export type TemplateCompileValue = string;
|
|
7
|
+
/**
|
|
8
|
+
* One compile mapping builder input or output.
|
|
9
|
+
*/
|
|
10
|
+
export interface TemplateCompileItem {
|
|
11
|
+
/**
|
|
12
|
+
* The key to access the compiled value in the output mapping.
|
|
13
|
+
*
|
|
14
|
+
* Must be unique across all inputs for one call to the compiled mapping builder.
|
|
15
|
+
*/
|
|
16
|
+
key: TemplateCompileKey;
|
|
17
|
+
/**
|
|
18
|
+
* The value string in either the raw form or the compiled form.
|
|
19
|
+
*/
|
|
20
|
+
value: TemplateCompileValue;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* One input to the compile mapping builder.
|
|
24
|
+
*/
|
|
25
|
+
export interface TemplateCompileInput extends TemplateCompileItem {
|
|
26
|
+
/**
|
|
27
|
+
* The kind indicates the format of the value.
|
|
28
|
+
*/
|
|
29
|
+
kind: TemplateCompileKind;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Build a string key that can be used on the server and client.
|
|
33
|
+
* @param key The array of names and indexes.
|
|
34
|
+
*/
|
|
35
|
+
export declare function buildKeyString(key: TemplateCompileKey): TemplateCompileKeyFormatted;
|
|
36
|
+
export type DynamicScriptResponseEvaluateKey = TemplateCompileKey;
|
|
37
|
+
export type DynamicScriptResponseEvaluateContext = unknown;
|
|
38
|
+
export type DynamicScriptResponseEvaluateExtra = {
|
|
39
|
+
libraries?: Record<string, unknown>;
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
export type DynamicScriptResponseEvaluateResult = unknown;
|
|
43
|
+
export type DynamicScriptResponseEvaluate = (key: DynamicScriptResponseEvaluateKey, context: DynamicScriptResponseEvaluateContext, extra?: DynamicScriptResponseEvaluateExtra) => DynamicScriptResponseEvaluateResult;
|
|
44
|
+
/**
|
|
45
|
+
* The type of the dynamic script asset response after import.
|
|
46
|
+
*/
|
|
47
|
+
export interface DynamicScriptResponse {
|
|
48
|
+
evaluate: DynamicScriptResponseEvaluate;
|
|
49
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.templateCompileKind = void 0;
|
|
4
|
+
exports.buildKeyString = buildKeyString;
|
|
5
|
+
exports.templateCompileKind = ["jsonata", "handlebars"];
|
|
6
|
+
/**
|
|
7
|
+
* Build a string key that can be used on the server and client.
|
|
8
|
+
* @param key The array of names and indexes.
|
|
9
|
+
*/
|
|
10
|
+
function buildKeyString(key) {
|
|
11
|
+
return (key ?? [])?.map(i => i?.toString()?.normalize("NFKC"))?.join('__');
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUub3V0bGluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90ZW1wbGF0ZS5vdXRsaW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQXlDQSx3Q0FFQztBQXpDWSxRQUFBLG1CQUFtQixHQUFHLENBQUMsU0FBUyxFQUFFLFlBQVksQ0FBVSxDQUFDO0FBbUN0RTs7O0dBR0c7QUFDSCxTQUFnQixjQUFjLENBQUMsR0FBdUI7SUFDbEQsT0FBTyxDQUFDLEdBQUcsSUFBSSxFQUFFLENBQUMsRUFBRSxHQUFHLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLEVBQUUsUUFBUSxFQUFFLEVBQUUsU0FBUyxDQUFDLE1BQU0sQ0FBQyxDQUFDLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQy9FLENBQUMifQ==
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Guess at whether the key is a natural language string.
|
|
3
|
+
* This is useful for translating only keys that are likely to be translation codes.
|
|
4
|
+
*
|
|
5
|
+
* TODO: The long-term goal is to have everything specify if it is natural langauge or translation code,
|
|
6
|
+
* to remove the need for this method.
|
|
7
|
+
*
|
|
8
|
+
* @param key The string to guess as natual language or not.
|
|
9
|
+
*/
|
|
10
|
+
export declare function isLikelyNaturalLanguage(key: string | null | undefined): boolean;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isLikelyNaturalLanguage = isLikelyNaturalLanguage;
|
|
4
|
+
/**
|
|
5
|
+
* Guess at whether the key is a natural language string.
|
|
6
|
+
* This is useful for translating only keys that are likely to be translation codes.
|
|
7
|
+
*
|
|
8
|
+
* TODO: The long-term goal is to have everything specify if it is natural langauge or translation code,
|
|
9
|
+
* to remove the need for this method.
|
|
10
|
+
*
|
|
11
|
+
* @param key The string to guess as natual language or not.
|
|
12
|
+
*/
|
|
13
|
+
function isLikelyNaturalLanguage(key) {
|
|
14
|
+
const value = (key ?? "").trim();
|
|
15
|
+
// An empty string is not natural language or translation code.
|
|
16
|
+
if (!value) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
// Likely natural language if contains a space or starts with a capital letter.
|
|
20
|
+
if (value.includes(' ') || (value[0].toLowerCase() !== value[0])) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
// Likely a translation code if starts with '@', or contains ':' or contains '_'.
|
|
24
|
+
if (value.startsWith('@') || value.includes(':') || value.includes('_')) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
// Otherwise, be conservative and say the translation key is not natural language.
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNsYXRpb24taGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90cmFuc2xhdGlvbi1oZWxwZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBU0EsMERBb0JDO0FBN0JEOzs7Ozs7OztHQVFHO0FBQ0gsU0FBZ0IsdUJBQXVCLENBQUMsR0FBOEI7SUFDcEUsTUFBTSxLQUFLLEdBQUcsQ0FBQyxHQUFHLElBQUksRUFBRSxDQUFDLENBQUMsSUFBSSxFQUFFLENBQUM7SUFFakMsK0RBQStEO0lBQy9ELElBQUksQ0FBQyxLQUFLLEVBQUUsQ0FBQztRQUNYLE9BQU8sS0FBSyxDQUFDO0lBQ2YsQ0FBQztJQUVELCtFQUErRTtJQUMvRSxJQUFJLEtBQUssQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsV0FBVyxFQUFFLEtBQUssS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQztRQUNqRSxPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7SUFFRCxpRkFBaUY7SUFDakYsSUFBSSxLQUFLLENBQUMsVUFBVSxDQUFDLEdBQUcsQ0FBQyxJQUFJLEtBQUssQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLElBQUksS0FBSyxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDO1FBQ3hFLE9BQU8sS0FBSyxDQUFDO0lBQ2YsQ0FBQztJQUVELGtGQUFrRjtJQUNsRixPQUFPLEtBQUssQ0FBQztBQUNmLENBQUMifQ==
|