geonetwork-ui 2.4.0-dev.e4dc8777 → 2.4.0-dev.e6ae55aa
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/esm2022/libs/api/metadata-converter/src/index.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/atomic-operations.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +12 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +2 -6
- package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +7 -2
- package/esm2022/libs/feature/editor/src/lib/+state/editor.models.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +7 -3
- package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +16 -6
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +1 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +11 -7
- package/esm2022/libs/feature/editor/src/lib/expressions.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +143 -60
- package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +2 -0
- package/esm2022/libs/feature/editor/src/lib/models/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +4 -3
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +42 -23
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +13 -5
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +49 -15
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +9 -3
- package/esm2022/libs/ui/elements/src/lib/user-preview/user-preview.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +29 -0
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +15 -7
- package/esm2022/translations/de.json +64 -30
- package/esm2022/translations/en.json +36 -2
- package/esm2022/translations/es.json +34 -0
- package/esm2022/translations/fr.json +37 -3
- package/esm2022/translations/it.json +34 -0
- package/esm2022/translations/nl.json +34 -0
- package/esm2022/translations/pt.json +34 -0
- package/fesm2022/geonetwork-ui.mjs +611 -163
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/index.d.ts +1 -0
- package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +1 -0
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +1 -0
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +9 -0
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +5 -0
- package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +4 -4
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.models.d.ts +8 -0
- package/libs/feature/editor/src/lib/+state/editor.models.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts +4 -3
- package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts +4 -8
- package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +5 -7
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/expressions.d.ts +1 -1
- package/libs/feature/editor/src/lib/expressions.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts +38 -2
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +36 -0
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/models/index.d.ts +1 -0
- package/libs/feature/editor/src/lib/models/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/services/editor.service.d.ts +2 -2
- package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +3 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +11 -0
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +4 -2
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/index.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +1 -0
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +20 -0
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +12 -0
- package/src/libs/common/fixtures/src/index.ts +2 -0
- package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +156 -0
- package/src/libs/common/fixtures/src/lib/editor/index.ts +1 -0
- package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +1 -5
- package/src/libs/data-access/gn4/src/spec.yaml +0 -8
- package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +5 -0
- package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +2 -2
- package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +9 -1
- package/src/libs/feature/editor/src/lib/+state/editor.models.ts +11 -0
- package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +11 -5
- package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +22 -8
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +9 -9
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +2 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +51 -11
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +15 -8
- package/src/libs/feature/editor/src/lib/expressions.ts +1 -1
- package/src/libs/feature/editor/src/lib/fields.config.ts +175 -61
- package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +53 -0
- package/src/libs/feature/editor/src/lib/models/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/services/editor.service.ts +8 -4
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +36 -19
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +6 -2
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.ts +11 -0
- package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +59 -12
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +5 -0
- package/src/libs/ui/elements/src/lib/user-preview/user-preview.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.css +31 -0
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +15 -0
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +38 -0
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.css +0 -0
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +17 -0
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +22 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +9 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +26 -12
- package/translations/de.json +64 -30
- package/translations/en.json +36 -2
- package/translations/es.json +34 -0
- package/translations/fr.json +37 -3
- package/translations/it.json +34 -0
- package/translations/nl.json +34 -0
- package/translations/pt.json +34 -0
- package/translations/sk.json +34 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +0 -2
- package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +0 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts +0 -26
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/models/fields.model.d.ts +0 -15
- package/libs/feature/editor/src/lib/models/fields.model.d.ts.map +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.ts +0 -43
- package/src/libs/feature/editor/src/lib/models/fields.model.ts +0 -29
package/translations/pt.json
CHANGED
|
@@ -165,6 +165,19 @@
|
|
|
165
165
|
"downloads.format.unknown": "",
|
|
166
166
|
"downloads.wfs.featuretype.not.found": "",
|
|
167
167
|
"dropFile": "",
|
|
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": "",
|
|
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": "",
|
|
180
|
+
"editor.record.form.abstract": "",
|
|
168
181
|
"editor.record.form.keywords": "",
|
|
169
182
|
"editor.record.form.license": "",
|
|
170
183
|
"editor.record.form.license.cc-by": "",
|
|
@@ -176,12 +189,31 @@
|
|
|
176
189
|
"editor.record.form.license.odc-by": "",
|
|
177
190
|
"editor.record.form.license.pddl": "",
|
|
178
191
|
"editor.record.form.license.unknown": "",
|
|
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": "",
|
|
208
|
+
"editor.record.form.metadata.title": "",
|
|
209
|
+
"editor.record.form.record.updated": "",
|
|
179
210
|
"editor.record.form.resourceUpdated": "",
|
|
180
211
|
"editor.record.form.temporalExtents": "",
|
|
181
212
|
"editor.record.form.temporalExtents.addDate": "",
|
|
182
213
|
"editor.record.form.temporalExtents.addRange": "",
|
|
183
214
|
"editor.record.form.temporalExtents.date": "",
|
|
184
215
|
"editor.record.form.temporalExtents.range": "",
|
|
216
|
+
"editor.record.form.unique.identifier": "",
|
|
185
217
|
"editor.record.form.updateFrequency": "",
|
|
186
218
|
"editor.record.form.updateFrequency.planned": "",
|
|
187
219
|
"editor.record.loadError.body": "",
|
|
@@ -197,6 +229,7 @@
|
|
|
197
229
|
"editor.record.saveStatus.draftWithChangesPending": "",
|
|
198
230
|
"editor.record.saveStatus.recordUpToDate": "",
|
|
199
231
|
"editor.record.upToDate": "",
|
|
232
|
+
"editor.sidebar.menu.editor": "",
|
|
200
233
|
"externalviewer.dataset.unnamed": "",
|
|
201
234
|
"facets.block.title.OrgForResource": "",
|
|
202
235
|
"facets.block.title.availableInServices": "",
|
|
@@ -274,6 +307,7 @@
|
|
|
274
307
|
"pagination.pageOf": "",
|
|
275
308
|
"previous": "",
|
|
276
309
|
"record.action.download": "",
|
|
310
|
+
"record.action.duplicate": "",
|
|
277
311
|
"record.action.view": "",
|
|
278
312
|
"record.externalViewer.open": "",
|
|
279
313
|
"record.metadata.about": "",
|
package/translations/sk.json
CHANGED
|
@@ -165,6 +165,19 @@
|
|
|
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": "",
|
|
180
|
+
"editor.record.form.abstract": "",
|
|
168
181
|
"editor.record.form.keywords": "",
|
|
169
182
|
"editor.record.form.license": "Licencia",
|
|
170
183
|
"editor.record.form.license.cc-by": "",
|
|
@@ -176,12 +189,31 @@
|
|
|
176
189
|
"editor.record.form.license.odc-by": "",
|
|
177
190
|
"editor.record.form.license.pddl": "",
|
|
178
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": "",
|
|
208
|
+
"editor.record.form.metadata.title": "",
|
|
209
|
+
"editor.record.form.record.updated": "",
|
|
179
210
|
"editor.record.form.resourceUpdated": "",
|
|
180
211
|
"editor.record.form.temporalExtents": "",
|
|
181
212
|
"editor.record.form.temporalExtents.addDate": "",
|
|
182
213
|
"editor.record.form.temporalExtents.addRange": "",
|
|
183
214
|
"editor.record.form.temporalExtents.date": "",
|
|
184
215
|
"editor.record.form.temporalExtents.range": "",
|
|
216
|
+
"editor.record.form.unique.identifier": "",
|
|
185
217
|
"editor.record.form.updateFrequency": "",
|
|
186
218
|
"editor.record.form.updateFrequency.planned": "",
|
|
187
219
|
"editor.record.loadError.body": "",
|
|
@@ -197,6 +229,7 @@
|
|
|
197
229
|
"editor.record.saveStatus.draftWithChangesPending": "",
|
|
198
230
|
"editor.record.saveStatus.recordUpToDate": "",
|
|
199
231
|
"editor.record.upToDate": "",
|
|
232
|
+
"editor.sidebar.menu.editor": "",
|
|
200
233
|
"externalviewer.dataset.unnamed": "",
|
|
201
234
|
"facets.block.title.OrgForResource": "Organizácia",
|
|
202
235
|
"facets.block.title.availableInServices": "Dostupné pre",
|
|
@@ -274,6 +307,7 @@
|
|
|
274
307
|
"pagination.pageOf": "z",
|
|
275
308
|
"previous": "predchádzajúci",
|
|
276
309
|
"record.action.download": "Stiahnuť",
|
|
310
|
+
"record.action.duplicate": "",
|
|
277
311
|
"record.action.view": "Zobraziť",
|
|
278
312
|
"record.externalViewer.open": "Otvoriť v externom mapovom prehliadači",
|
|
279
313
|
"record.metadata.about": "O",
|
package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs
DELETED
|
@@ -1,2 +0,0 @@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4gIGNvbmZpZzogRWRpdG9yRmllbGRDb25maWdcbiAgdmFsdWU6IHN0cmluZyB8IG51bWJlciB8IGJvb2xlYW4gfCB1bmtub3duXG59XG4iXX0=
|
|
@@ -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
|
package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map
DELETED
|
@@ -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"}
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.ts
DELETED
|
@@ -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
|
-
}
|