geonetwork-ui 2.4.0-dev.71a43b38 → 2.4.0-dev.78565730

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 (126) hide show
  1. package/esm2022/libs/api/metadata-converter/src/index.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/atomic-operations.mjs +2 -1
  3. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
  4. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +12 -1
  5. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  6. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +2 -6
  7. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
  8. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +3 -3
  9. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +7 -2
  10. package/esm2022/libs/feature/editor/src/lib/+state/editor.models.mjs +1 -1
  11. package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +7 -3
  12. package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +16 -6
  13. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +3 -3
  14. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +1 -2
  15. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +11 -7
  16. package/esm2022/libs/feature/editor/src/lib/expressions.mjs +1 -1
  17. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +143 -60
  18. package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +2 -0
  19. package/esm2022/libs/feature/editor/src/lib/models/index.mjs +2 -1
  20. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +4 -3
  21. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +9 -3
  22. package/esm2022/libs/ui/elements/src/lib/user-preview/user-preview.component.mjs +3 -3
  23. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +29 -0
  24. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +15 -7
  25. package/esm2022/translations/de.json +30 -0
  26. package/esm2022/translations/en.json +30 -0
  27. package/esm2022/translations/es.json +30 -0
  28. package/esm2022/translations/fr.json +30 -0
  29. package/esm2022/translations/it.json +30 -0
  30. package/esm2022/translations/nl.json +30 -0
  31. package/esm2022/translations/pt.json +30 -0
  32. package/fesm2022/geonetwork-ui.mjs +453 -94
  33. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  34. package/libs/api/metadata-converter/src/index.d.ts +1 -0
  35. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  36. package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.map +1 -1
  37. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +1 -0
  38. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
  39. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +1 -0
  40. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  41. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +9 -0
  42. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  43. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  44. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +5 -0
  45. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
  46. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +4 -4
  47. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  48. package/libs/feature/editor/src/lib/+state/editor.models.d.ts +8 -0
  49. package/libs/feature/editor/src/lib/+state/editor.models.d.ts.map +1 -1
  50. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts +4 -3
  51. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts.map +1 -1
  52. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts +4 -8
  53. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts.map +1 -1
  54. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +1 -1
  55. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  56. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +0 -1
  57. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  58. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +5 -7
  59. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
  60. package/libs/feature/editor/src/lib/expressions.d.ts +1 -1
  61. package/libs/feature/editor/src/lib/expressions.d.ts.map +1 -1
  62. package/libs/feature/editor/src/lib/fields.config.d.ts +38 -2
  63. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  64. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +36 -0
  65. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -0
  66. package/libs/feature/editor/src/lib/models/index.d.ts +1 -0
  67. package/libs/feature/editor/src/lib/models/index.d.ts.map +1 -1
  68. package/libs/feature/editor/src/lib/services/editor.service.d.ts +2 -2
  69. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  70. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +3 -1
  71. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  72. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +11 -0
  73. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -0
  74. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +4 -2
  75. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  76. package/package.json +1 -1
  77. package/src/libs/api/metadata-converter/src/index.ts +1 -0
  78. package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +1 -0
  79. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +1 -0
  80. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +20 -0
  81. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +12 -0
  82. package/src/libs/common/fixtures/src/index.ts +2 -0
  83. package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +156 -0
  84. package/src/libs/common/fixtures/src/lib/editor/index.ts +1 -0
  85. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +1 -5
  86. package/src/libs/data-access/gn4/src/spec.yaml +0 -8
  87. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +5 -0
  88. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +2 -2
  89. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +9 -1
  90. package/src/libs/feature/editor/src/lib/+state/editor.models.ts +11 -0
  91. package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +11 -5
  92. package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +22 -8
  93. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +9 -9
  94. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +2 -1
  95. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +0 -1
  96. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +51 -11
  97. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +15 -8
  98. package/src/libs/feature/editor/src/lib/expressions.ts +1 -1
  99. package/src/libs/feature/editor/src/lib/fields.config.ts +175 -61
  100. package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +53 -0
  101. package/src/libs/feature/editor/src/lib/models/index.ts +1 -0
  102. package/src/libs/feature/editor/src/lib/services/editor.service.ts +8 -4
  103. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +1 -0
  104. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +5 -0
  105. package/src/libs/ui/elements/src/lib/user-preview/user-preview.component.html +1 -1
  106. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.css +0 -0
  107. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +17 -0
  108. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +22 -0
  109. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +9 -0
  110. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +26 -12
  111. package/translations/de.json +30 -0
  112. package/translations/en.json +30 -0
  113. package/translations/es.json +30 -0
  114. package/translations/fr.json +30 -0
  115. package/translations/it.json +30 -0
  116. package/translations/nl.json +30 -0
  117. package/translations/pt.json +30 -0
  118. package/translations/sk.json +30 -0
  119. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +0 -2
  120. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +0 -2
  121. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts +0 -26
  122. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +0 -1
  123. package/libs/feature/editor/src/lib/models/fields.model.d.ts +0 -15
  124. package/libs/feature/editor/src/lib/models/fields.model.d.ts.map +0 -1
  125. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.ts +0 -43
  126. package/src/libs/feature/editor/src/lib/models/fields.model.ts +0 -29
@@ -165,6 +165,18 @@
165
165
  "downloads.format.unknown": "neznámy",
166
166
  "downloads.wfs.featuretype.not.found": "Vrstva nebola nájdená",
167
167
  "dropFile": "nahrať súbor",
168
+ "editor.record.form.bottomButtons.comeBackLater": "",
169
+ "editor.record.form.bottomButtons.next": "",
170
+ "editor.record.form.bottomButtons.previous": "",
171
+ "editor.record.form.field.abstract": "",
172
+ "editor.record.form.field.keywords": "",
173
+ "editor.record.form.field.license": "Licencia",
174
+ "editor.record.form.field.recordUpdated": "",
175
+ "editor.record.form.field.resourceUpdated": "",
176
+ "editor.record.form.field.temporalExtents": "",
177
+ "editor.record.form.field.title": "",
178
+ "editor.record.form.field.uniqueIdentifier": "",
179
+ "editor.record.form.field.updateFrequency": "",
168
180
  "editor.record.form.abstract": "",
169
181
  "editor.record.form.keywords": "",
170
182
  "editor.record.form.license": "Licencia",
@@ -177,6 +189,22 @@
177
189
  "editor.record.form.license.odc-by": "",
178
190
  "editor.record.form.license.pddl": "",
179
191
  "editor.record.form.license.unknown": "Neznáme alebo chýbajúce",
192
+ "editor.record.form.page.accessAndContact": "",
193
+ "editor.record.form.page.description": "",
194
+ "editor.record.form.page.ressources": "",
195
+ "editor.record.form.section.about.description": "",
196
+ "editor.record.form.section.about.label": "",
197
+ "editor.record.form.section.annexes.label": "",
198
+ "editor.record.form.section.associatedResources.description": "",
199
+ "editor.record.form.section.associatedResources.label": "",
200
+ "editor.record.form.section.classification.description": "",
201
+ "editor.record.form.section.classification.label": "",
202
+ "editor.record.form.section.dataManagers.description": "",
203
+ "editor.record.form.section.dataManagers.label": "",
204
+ "editor.record.form.section.dataPointOfContact.description": "",
205
+ "editor.record.form.section.dataPointOfContact.label": "",
206
+ "editor.record.form.section.geographicalCoverage.label": "",
207
+ "editor.record.form.section.useAndAccessConditions.label": "",
180
208
  "editor.record.form.metadata.title": "",
181
209
  "editor.record.form.record.updated": "",
182
210
  "editor.record.form.resourceUpdated": "",
@@ -201,6 +229,7 @@
201
229
  "editor.record.saveStatus.draftWithChangesPending": "",
202
230
  "editor.record.saveStatus.recordUpToDate": "",
203
231
  "editor.record.upToDate": "",
232
+ "editor.sidebar.menu.editor": "",
204
233
  "externalviewer.dataset.unnamed": "",
205
234
  "facets.block.title.OrgForResource": "Organizácia",
206
235
  "facets.block.title.availableInServices": "Dostupné pre",
@@ -278,6 +307,7 @@
278
307
  "pagination.pageOf": "z",
279
308
  "previous": "predchádzajúci",
280
309
  "record.action.download": "Stiahnuť",
310
+ "record.action.duplicate": "",
281
311
  "record.action.view": "Zobraziť",
282
312
  "record.externalViewer.open": "Otvoriť v externom mapovom prehliadači",
283
313
  "record.metadata.about": "O",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZmVhdHVyZS9lZGl0b3Ivc3JjL2xpYi9jb21wb25lbnRzL3JlY29yZC1mb3JtL2Zvcm0tZmllbGQvZm9ybS1maWVsZC5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsidHlwZSBCYXNlRm9ybUZpZWxkVHlwZSA9XG4gIHwgJ3RleHQnXG4gIHwgJ251bWJlcidcbiAgfCAncmljaCdcbiAgfCAnZGF0ZSdcbiAgfCAnbGlzdCdcbiAgfCAnc3BhdGlhbF9leHRlbnQnXG4gIHwgJ3RlbXBvcmFsX2V4dGVudCdcbiAgfCAndXJsJ1xuICB8ICdmaWxlJ1xuICB8ICd0b2dnbGUnXG5cbnR5cGUgQWxsRm9ybUZpZWxkVHlwZSA9IEJhc2VGb3JtRmllbGRUeXBlIHwgJ29iamVjdCcgfCAnYXJyYXknXG5cbmludGVyZmFjZSBGb3JtRmllbGRDb25maWdCYXNlIHtcbiAgdHlwZTogQWxsRm9ybUZpZWxkVHlwZVxuICBsYWJlbEtleTogc3RyaW5nXG4gIGhpbnRLZXk/OiBzdHJpbmdcbiAgdG9vbHRpcEtleT86IHN0cmluZ1xuICByZXF1aXJlZD86IGJvb2xlYW5cbiAgbG9ja2VkPzogYm9vbGVhblxuICBpbnZhbGlkPzogYm9vbGVhblxuICBpbnZhbGlkSGludEtleT86IHN0cmluZ1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEZvcm1GaWVsZENvbmZpZ1NpbXBsZSBleHRlbmRzIEZvcm1GaWV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yRmllbGRTdGF0ZSB7XG4gIGNvbmZpZzogRWRpdG9yRmllbGRDb25maWdcbiAgdmFsdWU6IHN0cmluZyB8IG51bWJlciB8IGJvb2xlYW4gfCB1bmtub3duXG59XG4iXX0=
@@ -1,26 +0,0 @@
1
- type BaseFormFieldType = 'text' | 'number' | 'rich' | 'date' | 'list' | 'spatial_extent' | 'temporal_extent' | 'url' | 'file' | 'toggle';
2
- type AllFormFieldType = BaseFormFieldType | 'object' | 'array';
3
- interface FormFieldConfigBase {
4
- type: AllFormFieldType;
5
- labelKey: string;
6
- hintKey?: string;
7
- tooltipKey?: string;
8
- required?: boolean;
9
- locked?: boolean;
10
- invalid?: boolean;
11
- invalidHintKey?: string;
12
- }
13
- export interface FormFieldConfigSimple extends FormFieldConfigBase {
14
- type: BaseFormFieldType;
15
- }
16
- export interface FormFieldConfigArray extends FormFieldConfigBase {
17
- type: 'array';
18
- items: FormFieldConfig;
19
- }
20
- export interface FormFieldConfigObject extends FormFieldConfigBase {
21
- type: 'object';
22
- fields: Array<FormFieldConfig>;
23
- }
24
- export type FormFieldConfig = FormFieldConfigSimple | FormFieldConfigArray | FormFieldConfigObject;
25
- export {};
26
- //# sourceMappingURL=form-field.model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form-field.model.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAClB,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,MAAM,GACN,gBAAgB,GAChB,iBAAiB,GACjB,KAAK,GACL,MAAM,GACN,QAAQ,CAAA;AAEZ,KAAK,gBAAgB,GAAG,iBAAiB,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE9D,UAAU,mBAAmB;IAC3B,IAAI,EAAE,gBAAgB,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,qBAAsB,SAAQ,mBAAmB;IAChE,IAAI,EAAE,iBAAiB,CAAA;CACxB;AAED,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,eAAe,CAAA;CACvB;AAED,MAAM,WAAW,qBAAsB,SAAQ,mBAAmB;IAChE,IAAI,EAAE,QAAQ,CAAA;IACd,MAAM,EAAE,KAAK,CAAC,eAAe,CAAC,CAAA;CAC/B;AAED,MAAM,MAAM,eAAe,GACvB,qBAAqB,GACrB,oBAAoB,GACpB,qBAAqB,CAAA"}
@@ -1,15 +0,0 @@
1
- import { FormFieldConfig } from '../components/record-form/form-field';
2
- export type EditorFieldExpression = `$\{${string}}`;
3
- export interface EditorFieldConfig {
4
- formFieldConfig?: FormFieldConfig;
5
- model?: string;
6
- hidden?: boolean;
7
- onSaveProcess?: EditorFieldExpression;
8
- }
9
- export type EditorFieldsConfig = EditorFieldConfig[];
10
- export type EditorFieldValue = string | number | boolean | unknown;
11
- export interface EditorFieldState {
12
- config: EditorFieldConfig;
13
- value: string | number | boolean | unknown;
14
- }
15
- //# sourceMappingURL=fields.model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.model.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/models/fields.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AAItE,MAAM,MAAM,qBAAqB,GAAG,MAAM,MAAM,GAAG,CAAA;AAEnD,MAAM,WAAW,iBAAiB;IAEhC,eAAe,CAAC,EAAE,eAAe,CAAA;IAGjC,KAAK,CAAC,EAAE,MAAM,CAAA;IAId,MAAM,CAAC,EAAE,OAAO,CAAA;IAGhB,aAAa,CAAC,EAAE,qBAAqB,CAAA;CACtC;AAED,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,EAAE,CAAA;AAEpD,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;AAElE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,iBAAiB,CAAA;IACzB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;CAC3C"}
@@ -1,43 +0,0 @@
1
- type BaseFormFieldType =
2
- | 'text'
3
- | 'number'
4
- | 'rich'
5
- | 'date'
6
- | 'list'
7
- | 'spatial_extent'
8
- | 'temporal_extent'
9
- | 'url'
10
- | 'file'
11
- | 'toggle'
12
-
13
- type AllFormFieldType = BaseFormFieldType | 'object' | 'array'
14
-
15
- interface FormFieldConfigBase {
16
- type: AllFormFieldType
17
- labelKey: string
18
- hintKey?: string
19
- tooltipKey?: string
20
- required?: boolean
21
- locked?: boolean
22
- invalid?: boolean
23
- invalidHintKey?: string
24
- }
25
-
26
- export interface FormFieldConfigSimple extends FormFieldConfigBase {
27
- type: BaseFormFieldType
28
- }
29
-
30
- export interface FormFieldConfigArray extends FormFieldConfigBase {
31
- type: 'array'
32
- items: FormFieldConfig
33
- }
34
-
35
- export interface FormFieldConfigObject extends FormFieldConfigBase {
36
- type: 'object'
37
- fields: Array<FormFieldConfig>
38
- }
39
-
40
- export type FormFieldConfig =
41
- | FormFieldConfigSimple
42
- | FormFieldConfigArray
43
- | FormFieldConfigObject
@@ -1,29 +0,0 @@
1
- import { FormFieldConfig } from '../components/record-form/form-field'
2
-
3
- // Expressions should be enclosed in `${}` to be recognized as such
4
- // eg. ${dateNow()}
5
- export type EditorFieldExpression = `$\{${string}}`
6
-
7
- export interface EditorFieldConfig {
8
- // configuration of the form field used as presentation; optional, nothing shown if not defined
9
- formFieldConfig?: FormFieldConfig
10
-
11
- // name of the target field in the record; will not change the record directly if not defined
12
- model?: string
13
-
14
- // a hidden field won't show but can still be used to modify the record
15
- // FIXME: currently this is redundant with an absence of formFieldConfig but necessary for clarity
16
- hidden?: boolean
17
-
18
- // the result of this expression will replace the field value on save
19
- onSaveProcess?: EditorFieldExpression
20
- }
21
-
22
- export type EditorFieldsConfig = EditorFieldConfig[]
23
-
24
- export type EditorFieldValue = string | number | boolean | unknown
25
-
26
- export interface EditorFieldState {
27
- config: EditorFieldConfig
28
- value: string | number | boolean | unknown
29
- }