geonetwork-ui 2.4.1-dev.73bac9979 → 2.4.1-dev.7a0dc5e3f
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/lib/iso19139/utils/update-frequency.mapper.mjs +62 -6
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +1 -19
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -27
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +60 -36
- package/esm2022/translations/de.json +11 -20
- package/esm2022/translations/en.json +7 -16
- package/esm2022/translations/es.json +11 -20
- package/esm2022/translations/fr.json +11 -20
- package/esm2022/translations/it.json +11 -20
- package/esm2022/translations/nl.json +11 -20
- package/esm2022/translations/pt.json +11 -20
- package/fesm2022/geonetwork-ui.mjs +267 -292
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +1 -2
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/update-frequency.mapper.ts +67 -0
- package/src/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.ts +62 -9
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +0 -18
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +7 -29
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +74 -46
- package/translations/de.json +11 -20
- package/translations/en.json +7 -16
- package/translations/es.json +11 -20
- package/translations/fr.json +11 -20
- package/translations/it.json +11 -20
- package/translations/nl.json +11 -20
- package/translations/pt.json +11 -20
- package/translations/sk.json +11 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-frequency.mapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"update-frequency.mapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAE9F,wBAAgB,mCAAmC,CACjD,aAAa,EAAE,MAAM,GACpB,eAAe,CA8DjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-parts.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,UAAU,EACV,qBAAqB,EACrB,aAAa,EACb,0BAA0B,EAC1B,gBAAgB,EAEhB,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,IAAI,EACJ,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,2DAA2D,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAG7F,OAAO,EACL,iBAAiB,EAOlB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAkBL,UAAU,EACX,MAAM,cAAc,CAAA;AAkCrB,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,GACX,iBAAiB,CAAC,UAAU,EAAE,UAAU,CAAC,CAI3C;AAED,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,gBAAgB,EAC9B,eAAe,EAAE,YAAY,GAC5B,iBAAiB,CAAC,UAAU,EAAE,UAAU,CAAC,CAO3C;AAED,wBAAgB,YAAY,CAC1B,GAAG,EAAE,GAAG,GACP,iBAAiB,CAAC,UAAU,EAAE,UAAU,CAAC,CAO3C;AAED,wBAAgB,WAAW,CACzB,GAAG,EAAE,GAAG,EACR,IAAI,CAAC,EAAE,MAAM,GACZ,iBAAiB,CAAC,UAAU,EAAE,UAAU,CAAC,CAQ3C;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,gBAAgB,EAC9B,eAAe,EAAE,YAAY,GAC5B,iBAAiB,CAAC,UAAU,EAAE,UAAU,CAAC,CAO3C;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,IAAI,GACT,iBAAiB,CAAC,UAAU,EAAE,UAAU,CAAC,CAK3C;AAED,wBAAgB,SAAS,CACvB,IAAI,EAAE,IAAI,GACT,iBAAiB,CAAC,UAAU,EAAE,UAAU,CAAC,CAO3C;AAED,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,GACd,iBAAiB,CAAC,UAAU,EAAE,UAAU,CAAC,CAI3C;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAiB5D;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CA+C9C;AAED,wBAAgB,8BAA8B,CAC5C,YAAY,EAAE,0BAA0B,GACvC,MAAM,CAWR;AAED,wBAAgB,2BAA2B,CACzC,eAAe,EAAE,mBAAmB,GACnC,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"write-parts.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,UAA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,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,QAuBvE;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,UAAU,cAQnB;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,UAAU,QAanB"}
|
|
@@ -4,8 +4,7 @@ import type { Geometry } from 'geojson';
|
|
|
4
4
|
import { KeywordType, ThesaurusModel } from '../thesaurus';
|
|
5
5
|
import { ConstraintTranslations, KeywordTranslations, LanguageCode, OnlineResourceTranslations, RecordTranslations, SpatialExtentTranslations } from './translation.model';
|
|
6
6
|
type Uuid = string;
|
|
7
|
-
export
|
|
8
|
-
export type UpdateFrequencyCode = (typeof updateFrequencyCodeValues)[number];
|
|
7
|
+
export type UpdateFrequencyCode = 'unknown' | 'notPlanned' | 'asNeeded' | 'irregular' | 'continual' | 'periodic';
|
|
9
8
|
export type UpdateFrequencyCustom = {
|
|
10
9
|
updatedTimes: number;
|
|
11
10
|
per: 'day' | 'week' | 'month' | 'year';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/common/domain/src/lib/model/record/metadata.model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,YAAY,EACZ,0BAA0B,EAC1B,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAA;AAE5B,KAAK,IAAI,GAAG,MAAM,CAAA;AASlB,
|
|
1
|
+
{"version":3,"file":"metadata.model.d.ts","sourceRo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AK,CAAC,qBAAqB,CAAC,CAAA;IAC7C,cAAc,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAA;CAC5C;AAED,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAA;IAC1C,SAAS,EAAE,SAAS,CAAA;IACpB,cAAc,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAA;IAC3C,eAAe,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAA;CAC9C;AAED,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,KAAK,GAAG,OAAO,CAAA;AAEvD,MAAM,MAAM,cAAc,GAAG,qBAAqB,GAAG,qBAAqB,CAAA;AAE1E,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,WAAW,GAAG,aAAa,CAAA;AAEvE,MAAM,MAAM,iBAAiB,GACzB,MAAM,aAAa,GACnB,MAAM,WAAW,GACjB,MAAM,aAAa,CAAA"}
|
|
@@ -13,7 +13,7 @@ export declare class FormFieldUpdateFrequencyComponent implements OnInit {
|
|
|
13
13
|
ngOnInit(): Promise<void>;
|
|
14
14
|
onPlannedToggled(): void;
|
|
15
15
|
get selectedFrequency(): string;
|
|
16
|
-
onSelectFrequencyValue(value:
|
|
16
|
+
onSelectFrequencyValue(value: unknown): void;
|
|
17
17
|
private getInitialChoices;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldUpdateFrequencyComponent, never>;
|
|
19
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldUpdateFrequencyComponent, "gn-ui-form-field-update-frequency", never, { "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-update-frequency.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEZ,MAAM,EAEP,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,eAAe,
|
|
1
|
+
{"version":3,"file":"form-field-update-frequency.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEZ,MAAM,EAEP,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,eAAe,EAEhB,MAAM,oEAAoE,CAAA;AAC3E,OAAO,EAEL,cAAc,EAEf,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;;AAGvE,qBAQa,iCAAkC,YAAW,MAAM;IAUlD,OAAO,CAAC,gBAAgB;IAT3B,KAAK,EAAE,eAAe,CAAA;IACrB,WAAW,EAAE,YAAY,CAAC,eAAe,CAAC,CAAqB;IAEzE,SAAS,CAAC,OAAO,EAAE,cAAc,EAAE,CAAK;IAExC,IAAI,OAAO,YAEV;gBAEmB,gBAAgB,EAAE,gBAAgB;IAEhD,QAAQ;IAuBd,gBAAgB;IAQhB,IAAI,iBAAiB,IAAI,MAAM,CAI9B;IAED,sBAAsB,CAAC,KAAK,EAAE,OAAO;YAQvB,iBAAiB;yCAzDpB,iCAAiC;2CAAjC,iCAAiC;CA6H7C"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { UpdateFrequency } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
2
|
+
|
|
3
|
+
export function getUpdateFrequencyFromFrequencyCode(
|
|
4
|
+
frequencyCode: string
|
|
5
|
+
): UpdateFrequency {
|
|
6
|
+
switch (frequencyCode) {
|
|
7
|
+
case 'asNeeded':
|
|
8
|
+
return 'asNeeded'
|
|
9
|
+
case 'unknown':
|
|
10
|
+
return 'unknown'
|
|
11
|
+
case 'irregular':
|
|
12
|
+
return 'irregular'
|
|
13
|
+
case 'notPlanned':
|
|
14
|
+
return 'notPlanned'
|
|
15
|
+
case 'continual':
|
|
16
|
+
return 'continual'
|
|
17
|
+
case 'periodic':
|
|
18
|
+
return 'periodic'
|
|
19
|
+
case 'daily':
|
|
20
|
+
return {
|
|
21
|
+
updatedTimes: 1,
|
|
22
|
+
per: 'day',
|
|
23
|
+
}
|
|
24
|
+
case 'weekly':
|
|
25
|
+
return {
|
|
26
|
+
updatedTimes: 1,
|
|
27
|
+
per: 'week',
|
|
28
|
+
}
|
|
29
|
+
case 'fortnightly':
|
|
30
|
+
return {
|
|
31
|
+
updatedTimes: 0.5,
|
|
32
|
+
per: 'week',
|
|
33
|
+
}
|
|
34
|
+
case 'semimonthly':
|
|
35
|
+
return {
|
|
36
|
+
updatedTimes: 2,
|
|
37
|
+
per: 'month',
|
|
38
|
+
}
|
|
39
|
+
case 'monthly':
|
|
40
|
+
return {
|
|
41
|
+
updatedTimes: 1,
|
|
42
|
+
per: 'month',
|
|
43
|
+
}
|
|
44
|
+
case 'quarterly':
|
|
45
|
+
return {
|
|
46
|
+
updatedTimes: 4,
|
|
47
|
+
per: 'year',
|
|
48
|
+
}
|
|
49
|
+
case 'biannually':
|
|
50
|
+
return {
|
|
51
|
+
updatedTimes: 2,
|
|
52
|
+
per: 'year',
|
|
53
|
+
}
|
|
54
|
+
case 'annually':
|
|
55
|
+
return {
|
|
56
|
+
updatedTimes: 1,
|
|
57
|
+
per: 'year',
|
|
58
|
+
}
|
|
59
|
+
case 'biennially':
|
|
60
|
+
return {
|
|
61
|
+
updatedTimes: 0.5,
|
|
62
|
+
per: 'year',
|
|
63
|
+
}
|
|
64
|
+
default:
|
|
65
|
+
return null
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -1,14 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
UpdateFrequency,
|
|
3
|
-
UpdateFrequencyCode,
|
|
4
|
-
updateFrequencyCodeValues,
|
|
5
|
-
} from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
1
|
+
import { UpdateFrequency } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
6
2
|
|
|
7
3
|
export function getUpdateFrequencyFromFrequencyCode(
|
|
8
4
|
frequencyCode: string
|
|
9
5
|
): UpdateFrequency {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
:
|
|
6
|
+
switch (frequencyCode) {
|
|
7
|
+
case 'asNeeded':
|
|
8
|
+
return 'asNeeded'
|
|
9
|
+
case 'unknown':
|
|
10
|
+
return 'unknown'
|
|
11
|
+
case 'irregular':
|
|
12
|
+
return 'irregular'
|
|
13
|
+
case 'notPlanned':
|
|
14
|
+
return 'notPlanned'
|
|
15
|
+
case 'continual':
|
|
16
|
+
return 'continual'
|
|
17
|
+
case 'periodic':
|
|
18
|
+
return 'periodic'
|
|
19
|
+
case 'daily':
|
|
20
|
+
return {
|
|
21
|
+
updatedTimes: 1,
|
|
22
|
+
per: 'day',
|
|
23
|
+
}
|
|
24
|
+
case 'weekly':
|
|
25
|
+
return {
|
|
26
|
+
updatedTimes: 1,
|
|
27
|
+
per: 'week',
|
|
28
|
+
}
|
|
29
|
+
case 'fortnightly':
|
|
30
|
+
return {
|
|
31
|
+
updatedTimes: 0.5,
|
|
32
|
+
per: 'week',
|
|
33
|
+
}
|
|
34
|
+
case 'semimonthly':
|
|
35
|
+
return {
|
|
36
|
+
updatedTimes: 2,
|
|
37
|
+
per: 'month',
|
|
38
|
+
}
|
|
39
|
+
case 'monthly':
|
|
40
|
+
return {
|
|
41
|
+
updatedTimes: 1,
|
|
42
|
+
per: 'month',
|
|
43
|
+
}
|
|
44
|
+
case 'quarterly':
|
|
45
|
+
return {
|
|
46
|
+
updatedTimes: 4,
|
|
47
|
+
per: 'year',
|
|
48
|
+
}
|
|
49
|
+
case 'biannually':
|
|
50
|
+
return {
|
|
51
|
+
updatedTimes: 2,
|
|
52
|
+
per: 'year',
|
|
53
|
+
}
|
|
54
|
+
case 'annually':
|
|
55
|
+
return {
|
|
56
|
+
updatedTimes: 1,
|
|
57
|
+
per: 'year',
|
|
58
|
+
}
|
|
59
|
+
case 'biennially':
|
|
60
|
+
return {
|
|
61
|
+
updatedTimes: 0.5,
|
|
62
|
+
per: 'year',
|
|
63
|
+
}
|
|
64
|
+
default:
|
|
65
|
+
return null
|
|
66
|
+
}
|
|
14
67
|
}
|
|
@@ -269,24 +269,6 @@ export function getMaintenanceFrequencyCode(
|
|
|
269
269
|
return 'continual'
|
|
270
270
|
case 'periodic':
|
|
271
271
|
return 'periodic'
|
|
272
|
-
case 'daily':
|
|
273
|
-
return 'daily'
|
|
274
|
-
case 'weekly':
|
|
275
|
-
return 'weekly'
|
|
276
|
-
case 'fortnightly':
|
|
277
|
-
return 'fortnightly'
|
|
278
|
-
case 'monthly':
|
|
279
|
-
return 'monthly'
|
|
280
|
-
case 'quarterly':
|
|
281
|
-
return 'quarterly'
|
|
282
|
-
case 'biannually':
|
|
283
|
-
return 'biannually'
|
|
284
|
-
case 'annually':
|
|
285
|
-
return 'annually'
|
|
286
|
-
case 'semimonthly':
|
|
287
|
-
return 'semimonthly'
|
|
288
|
-
case 'biennially':
|
|
289
|
-
return 'biennially'
|
|
290
272
|
}
|
|
291
273
|
}
|
|
292
274
|
|
|
@@ -21,41 +21,19 @@ marker('domain.record.updateFrequency.irregular')
|
|
|
21
21
|
marker('domain.record.updateFrequency.continual')
|
|
22
22
|
marker('domain.record.updateFrequency.periodic')
|
|
23
23
|
|
|
24
|
-
export
|
|
25
|
-
'unknown'
|
|
26
|
-
'notPlanned'
|
|
27
|
-
'asNeeded'
|
|
28
|
-
'irregular'
|
|
29
|
-
'continual'
|
|
30
|
-
'periodic'
|
|
31
|
-
'daily',
|
|
32
|
-
'weekly',
|
|
33
|
-
'fortnightly',
|
|
34
|
-
'semimonthly',
|
|
35
|
-
'monthly',
|
|
36
|
-
'quarterly',
|
|
37
|
-
'biannually',
|
|
38
|
-
'annually',
|
|
39
|
-
'biennially',
|
|
40
|
-
] as const
|
|
41
|
-
|
|
42
|
-
export type UpdateFrequencyCode = (typeof updateFrequencyCodeValues)[number]
|
|
24
|
+
export type UpdateFrequencyCode =
|
|
25
|
+
| 'unknown'
|
|
26
|
+
| 'notPlanned'
|
|
27
|
+
| 'asNeeded'
|
|
28
|
+
| 'irregular'
|
|
29
|
+
| 'continual'
|
|
30
|
+
| 'periodic'
|
|
43
31
|
|
|
44
32
|
marker('domain.record.updateFrequency.day')
|
|
45
33
|
marker('domain.record.updateFrequency.week')
|
|
46
34
|
marker('domain.record.updateFrequency.month')
|
|
47
35
|
marker('domain.record.updateFrequency.year')
|
|
48
36
|
|
|
49
|
-
marker('domain.record.updateFrequency.daily')
|
|
50
|
-
marker('domain.record.updateFrequency.weekly')
|
|
51
|
-
marker('domain.record.updateFrequency.fortnightly')
|
|
52
|
-
marker('domain.record.updateFrequency.monthly')
|
|
53
|
-
marker('domain.record.updateFrequency.quarterly')
|
|
54
|
-
marker('domain.record.updateFrequency.biannually')
|
|
55
|
-
marker('domain.record.updateFrequency.annually')
|
|
56
|
-
marker('domain.record.updateFrequency.semimonthly')
|
|
57
|
-
marker('domain.record.updateFrequency.biennially')
|
|
58
|
-
|
|
59
37
|
export type UpdateFrequencyCustom = {
|
|
60
38
|
updatedTimes: number // this should be an integer
|
|
61
39
|
per: 'day' | 'week' | 'month' | 'year'
|
|
@@ -8,8 +8,6 @@ import {
|
|
|
8
8
|
} from '@angular/core'
|
|
9
9
|
import {
|
|
10
10
|
UpdateFrequency,
|
|
11
|
-
UpdateFrequencyCode,
|
|
12
|
-
updateFrequencyCodeValues,
|
|
13
11
|
UpdateFrequencyCustom,
|
|
14
12
|
} from '../../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
15
13
|
import {
|
|
@@ -20,10 +18,6 @@ import {
|
|
|
20
18
|
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
21
19
|
import { firstValueFrom } from 'rxjs'
|
|
22
20
|
|
|
23
|
-
const initialListValues = updateFrequencyCodeValues.filter(
|
|
24
|
-
(code) => !['unknown', 'notPlanned', 'asNeeded', 'irregular'].includes(code)
|
|
25
|
-
)
|
|
26
|
-
|
|
27
21
|
@Component({
|
|
28
22
|
selector: 'gn-ui-form-field-update-frequency',
|
|
29
23
|
templateUrl: './form-field-update-frequency.component.html',
|
|
@@ -39,39 +33,20 @@ export class FormFieldUpdateFrequencyComponent implements OnInit {
|
|
|
39
33
|
protected choices: DropdownChoice[] = []
|
|
40
34
|
|
|
41
35
|
get planned() {
|
|
42
|
-
return
|
|
36
|
+
return typeof this.value !== 'string'
|
|
43
37
|
}
|
|
44
38
|
|
|
45
39
|
constructor(private translateService: TranslateService) {}
|
|
46
40
|
|
|
47
41
|
async ngOnInit() {
|
|
48
42
|
this.choices = await this.getInitialChoices()
|
|
49
|
-
if (!this.planned) {
|
|
50
|
-
return
|
|
51
|
-
}
|
|
52
|
-
if (
|
|
53
|
-
typeof this.value === 'string' &&
|
|
54
|
-
!this.choices.map((choice) => choice.value).includes(this.value)
|
|
55
|
-
) {
|
|
56
|
-
this.choices = [
|
|
57
|
-
{
|
|
58
|
-
value: this.value,
|
|
59
|
-
label: await firstValueFrom(
|
|
60
|
-
this.translateService.get(
|
|
61
|
-
`domain.record.updateFrequency.${this.value}`
|
|
62
|
-
)
|
|
63
|
-
),
|
|
64
|
-
},
|
|
65
|
-
...this.choices,
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
43
|
if (typeof this.value === 'string') {
|
|
69
44
|
return
|
|
70
45
|
}
|
|
71
46
|
const updatedTimes = this.value.updatedTimes
|
|
72
47
|
const per = this.value.per
|
|
73
48
|
// the update frequency is not in the list; make it appear there
|
|
74
|
-
if (updatedTimes) {
|
|
49
|
+
if (updatedTimes && updatedTimes !== 1 && updatedTimes !== 2) {
|
|
75
50
|
this.choices = [
|
|
76
51
|
{
|
|
77
52
|
value: `${per}.${updatedTimes}`,
|
|
@@ -90,37 +65,90 @@ export class FormFieldUpdateFrequencyComponent implements OnInit {
|
|
|
90
65
|
if (this.planned) {
|
|
91
66
|
this.valueChange.emit('notPlanned')
|
|
92
67
|
} else {
|
|
93
|
-
this.valueChange.emit(
|
|
68
|
+
this.valueChange.emit({ updatedTimes: 1, per: 'day' })
|
|
94
69
|
}
|
|
95
70
|
}
|
|
96
71
|
|
|
97
72
|
get selectedFrequency(): string {
|
|
98
|
-
if (!this.value) return null
|
|
99
|
-
if (typeof this.value === 'string') return this.value
|
|
73
|
+
if (!this.value || typeof this.value === 'string') return null
|
|
100
74
|
const { updatedTimes, per } = this.value
|
|
101
75
|
return `${per}.${updatedTimes}`
|
|
102
76
|
}
|
|
103
77
|
|
|
104
|
-
onSelectFrequencyValue(value:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
updatedTimes: Number(split[1]),
|
|
111
|
-
per: split[0] as UpdateFrequencyCustom['per'],
|
|
112
|
-
})
|
|
113
|
-
}
|
|
78
|
+
onSelectFrequencyValue(value: unknown) {
|
|
79
|
+
const split = (value as string).split('.')
|
|
80
|
+
this.valueChange.emit({
|
|
81
|
+
updatedTimes: Number(split[1]),
|
|
82
|
+
per: split[0] as UpdateFrequencyCustom['per'],
|
|
83
|
+
})
|
|
114
84
|
}
|
|
115
85
|
|
|
116
86
|
private async getInitialChoices() {
|
|
117
|
-
return
|
|
118
|
-
|
|
119
|
-
value,
|
|
87
|
+
return [
|
|
88
|
+
{
|
|
89
|
+
value: 'day.1',
|
|
90
|
+
label: await firstValueFrom(
|
|
91
|
+
this.translateService.get('domain.record.updateFrequency.day', {
|
|
92
|
+
count: 1,
|
|
93
|
+
})
|
|
94
|
+
),
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
value: 'day.2',
|
|
98
|
+
label: await firstValueFrom(
|
|
99
|
+
this.translateService.get('domain.record.updateFrequency.day', {
|
|
100
|
+
count: 2,
|
|
101
|
+
})
|
|
102
|
+
),
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
value: 'week.1',
|
|
106
|
+
label: await firstValueFrom(
|
|
107
|
+
this.translateService.get('domain.record.updateFrequency.week', {
|
|
108
|
+
count: 1,
|
|
109
|
+
})
|
|
110
|
+
),
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
value: 'week.2',
|
|
114
|
+
label: await firstValueFrom(
|
|
115
|
+
this.translateService.get('domain.record.updateFrequency.week', {
|
|
116
|
+
count: 2,
|
|
117
|
+
})
|
|
118
|
+
),
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
value: 'month.1',
|
|
122
|
+
label: await firstValueFrom(
|
|
123
|
+
this.translateService.get('domain.record.updateFrequency.month', {
|
|
124
|
+
count: 1,
|
|
125
|
+
})
|
|
126
|
+
),
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
value: 'month.2',
|
|
130
|
+
label: await firstValueFrom(
|
|
131
|
+
this.translateService.get('domain.record.updateFrequency.month', {
|
|
132
|
+
count: 2,
|
|
133
|
+
})
|
|
134
|
+
),
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
value: 'year.1',
|
|
138
|
+
label: await firstValueFrom(
|
|
139
|
+
this.translateService.get('domain.record.updateFrequency.year', {
|
|
140
|
+
count: 1,
|
|
141
|
+
})
|
|
142
|
+
),
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
value: 'year.2',
|
|
120
146
|
label: await firstValueFrom(
|
|
121
|
-
this.translateService.get(
|
|
147
|
+
this.translateService.get('domain.record.updateFrequency.year', {
|
|
148
|
+
count: 2,
|
|
149
|
+
})
|
|
122
150
|
),
|
|
123
|
-
}
|
|
124
|
-
|
|
151
|
+
},
|
|
152
|
+
]
|
|
125
153
|
}
|
|
126
154
|
}
|
package/translations/de.json
CHANGED
|
@@ -171,25 +171,16 @@
|
|
|
171
171
|
"domain.record.status.ongoing": "Kontinuierliche Aktualisierung",
|
|
172
172
|
"domain.record.status.removed": "Entfernt",
|
|
173
173
|
"domain.record.status.under_development": "In Erstellung",
|
|
174
|
-
"domain.record.updateFrequency.
|
|
175
|
-
"domain.record.updateFrequency.
|
|
176
|
-
"domain.record.updateFrequency.
|
|
177
|
-
"domain.record.updateFrequency.
|
|
178
|
-
"domain.record.updateFrequency.
|
|
179
|
-
"domain.record.updateFrequency.
|
|
180
|
-
"domain.record.updateFrequency.
|
|
181
|
-
"domain.record.updateFrequency.
|
|
182
|
-
"domain.record.updateFrequency.
|
|
183
|
-
"domain.record.updateFrequency.
|
|
184
|
-
"domain.record.updateFrequency.monthly": "Daten werden monatlich aktualisiert",
|
|
185
|
-
"domain.record.updateFrequency.notPlanned": "Es gibt keine Pläne, die Daten zu aktualisieren",
|
|
186
|
-
"domain.record.updateFrequency.periodic": "Daten werden in regelmäßigen Abständen aktualisiert",
|
|
187
|
-
"domain.record.updateFrequency.quarterly": "Daten werden alle drei Monate aktualisiert",
|
|
188
|
-
"domain.record.updateFrequency.semimonthly": "Daten werden zweimal im Monat aktualisiert",
|
|
189
|
-
"domain.record.updateFrequency.unknown": "Die Häufigkeit der Datenaktualisierung ist unbekannt",
|
|
190
|
-
"domain.record.updateFrequency.week": "{count, plural, =0{0 Mal} one{Einmal} other{{count} Mal}} pro Woche",
|
|
191
|
-
"domain.record.updateFrequency.weekly": "Daten werden wöchentlich aktualisiert",
|
|
192
|
-
"domain.record.updateFrequency.year": "{count, plural, =0{0 Mal} one{Einmal} other{{count} Mal}} pro Jahr",
|
|
174
|
+
"domain.record.updateFrequency.asNeeded": "Nach Bedarf",
|
|
175
|
+
"domain.record.updateFrequency.continual": "Fortlaufend",
|
|
176
|
+
"domain.record.updateFrequency.day": "{count, plural, =0{0} one{Ein} other{{count}}} mal am Tag",
|
|
177
|
+
"domain.record.updateFrequency.irregular": "Unregelmäßig",
|
|
178
|
+
"domain.record.updateFrequency.month": "{count, plural, =0{0} one{Ein} other{{count}}} mal im Monat",
|
|
179
|
+
"domain.record.updateFrequency.notPlanned": "Nicht geplant",
|
|
180
|
+
"domain.record.updateFrequency.periodic": "Regelmäßig",
|
|
181
|
+
"domain.record.updateFrequency.unknown": "Unbekannt",
|
|
182
|
+
"domain.record.updateFrequency.week": "{count, plural, =0{0} one{Ein} other{{count}}} mal in der Woche",
|
|
183
|
+
"domain.record.updateFrequency.year": "{count, plural, =0{0} one{Ein} other{{count}}} mal im Jahr",
|
|
193
184
|
"downloads.format.unknown": "unbekannt",
|
|
194
185
|
"downloads.wfs.featuretype.not.found": "Der Layer wurde nicht gefunden",
|
|
195
186
|
"dropFile": "Datei ablegen",
|
|
@@ -284,7 +275,7 @@
|
|
|
284
275
|
"editor.record.form.temporalExtents.addRange": "Zeitraum",
|
|
285
276
|
"editor.record.form.temporalExtents.date": "Datum",
|
|
286
277
|
"editor.record.form.temporalExtents.range": "Datumsbereich",
|
|
287
|
-
"editor.record.form.updateFrequency.planned": "
|
|
278
|
+
"editor.record.form.updateFrequency.planned": "Die Daten sollten regelmäßig aktualisiert werden.",
|
|
288
279
|
"editor.record.importFromExternalFile.failure.body": "",
|
|
289
280
|
"editor.record.importFromExternalFile.failure.title": "",
|
|
290
281
|
"editor.record.importFromExternalFile.success.body": "",
|
package/translations/en.json
CHANGED
|
@@ -171,24 +171,15 @@
|
|
|
171
171
|
"domain.record.status.ongoing": "Ongoing",
|
|
172
172
|
"domain.record.status.removed": "Removed",
|
|
173
173
|
"domain.record.status.under_development": "Under development",
|
|
174
|
-
"domain.record.updateFrequency.
|
|
175
|
-
"domain.record.updateFrequency.
|
|
176
|
-
"domain.record.updateFrequency.biannually": "Data is updated twice each year",
|
|
177
|
-
"domain.record.updateFrequency.biennially": "Data is updated every 2 years",
|
|
178
|
-
"domain.record.updateFrequency.continual": "Data is repeatedly and frequently updated",
|
|
179
|
-
"domain.record.updateFrequency.daily": "Data is updated each day",
|
|
174
|
+
"domain.record.updateFrequency.asNeeded": "As needed",
|
|
175
|
+
"domain.record.updateFrequency.continual": "Continual",
|
|
180
176
|
"domain.record.updateFrequency.day": "{count, plural, =0{0 times} one{Once} other{{count} times}} per day",
|
|
181
|
-
"domain.record.updateFrequency.
|
|
182
|
-
"domain.record.updateFrequency.irregular": "Data is updated in intervals that are uneven in duration",
|
|
177
|
+
"domain.record.updateFrequency.irregular": "Irregular",
|
|
183
178
|
"domain.record.updateFrequency.month": "{count, plural, =0{0 times} one{Once} other{{count} times}} per month",
|
|
184
|
-
"domain.record.updateFrequency.
|
|
185
|
-
"domain.record.updateFrequency.
|
|
186
|
-
"domain.record.updateFrequency.
|
|
187
|
-
"domain.record.updateFrequency.quarterly": "Data is updated every three months",
|
|
188
|
-
"domain.record.updateFrequency.semimonthly": "Data is updated twice a month",
|
|
189
|
-
"domain.record.updateFrequency.unknown": "Frequency of maintenance for the data is not known",
|
|
179
|
+
"domain.record.updateFrequency.notPlanned": "Not planned",
|
|
180
|
+
"domain.record.updateFrequency.periodic": "Periodic",
|
|
181
|
+
"domain.record.updateFrequency.unknown": "Unknown",
|
|
190
182
|
"domain.record.updateFrequency.week": "{count, plural, =0{0 times} one{Once} other{{count} times}} per week",
|
|
191
|
-
"domain.record.updateFrequency.weekly": "Data is updated on a weekly basis",
|
|
192
183
|
"domain.record.updateFrequency.year": "{count, plural, =0{0 times} one{Once} other{{count} times}} per year",
|
|
193
184
|
"downloads.format.unknown": "Unknown",
|
|
194
185
|
"downloads.wfs.featuretype.not.found": "The layer was not found",
|
|
@@ -284,7 +275,7 @@
|
|
|
284
275
|
"editor.record.form.temporalExtents.addRange": "Time period",
|
|
285
276
|
"editor.record.form.temporalExtents.date": "Date",
|
|
286
277
|
"editor.record.form.temporalExtents.range": "Date range",
|
|
287
|
-
"editor.record.form.updateFrequency.planned": "
|
|
278
|
+
"editor.record.form.updateFrequency.planned": "The data should be updated regularly",
|
|
288
279
|
"editor.record.importFromExternalFile.failure.body": "Failure",
|
|
289
280
|
"editor.record.importFromExternalFile.failure.title": "The dataset import failed: ",
|
|
290
281
|
"editor.record.importFromExternalFile.success.body": "Import successful",
|
package/translations/es.json
CHANGED
|
@@ -171,25 +171,16 @@
|
|
|
171
171
|
"domain.record.status.ongoing": "",
|
|
172
172
|
"domain.record.status.removed": "",
|
|
173
173
|
"domain.record.status.under_development": "",
|
|
174
|
-
"domain.record.updateFrequency.
|
|
175
|
-
"domain.record.updateFrequency.
|
|
176
|
-
"domain.record.updateFrequency.
|
|
177
|
-
"domain.record.updateFrequency.
|
|
178
|
-
"domain.record.updateFrequency.
|
|
179
|
-
"domain.record.updateFrequency.
|
|
180
|
-
"domain.record.updateFrequency.
|
|
181
|
-
"domain.record.updateFrequency.
|
|
182
|
-
"domain.record.updateFrequency.
|
|
183
|
-
"domain.record.updateFrequency.
|
|
184
|
-
"domain.record.updateFrequency.monthly": "Los datos se actualizan cada mes",
|
|
185
|
-
"domain.record.updateFrequency.notPlanned": "No hay planes para actualizar los datos",
|
|
186
|
-
"domain.record.updateFrequency.periodic": "Los datos se actualizan a intervalos regulares",
|
|
187
|
-
"domain.record.updateFrequency.quarterly": "Los datos se actualizan cada tres meses",
|
|
188
|
-
"domain.record.updateFrequency.semimonthly": "Los datos se actualizan dos veces al mes",
|
|
189
|
-
"domain.record.updateFrequency.unknown": "La frecuencia de actualización de los datos es desconocida",
|
|
190
|
-
"domain.record.updateFrequency.week": "{count, plural, =0{0 veces} one{Una vez} other{{count} veces}} a la semana",
|
|
191
|
-
"domain.record.updateFrequency.weekly": "Los datos se actualizan semanalmente",
|
|
192
|
-
"domain.record.updateFrequency.year": "{count, plural, =0{0 veces} one{Una vez} other{{count} veces}} al año",
|
|
174
|
+
"domain.record.updateFrequency.asNeeded": "",
|
|
175
|
+
"domain.record.updateFrequency.continual": "",
|
|
176
|
+
"domain.record.updateFrequency.day": "",
|
|
177
|
+
"domain.record.updateFrequency.irregular": "",
|
|
178
|
+
"domain.record.updateFrequency.month": "",
|
|
179
|
+
"domain.record.updateFrequency.notPlanned": "",
|
|
180
|
+
"domain.record.updateFrequency.periodic": "",
|
|
181
|
+
"domain.record.updateFrequency.unknown": "",
|
|
182
|
+
"domain.record.updateFrequency.week": "",
|
|
183
|
+
"domain.record.updateFrequency.year": "",
|
|
193
184
|
"downloads.format.unknown": "",
|
|
194
185
|
"downloads.wfs.featuretype.not.found": "",
|
|
195
186
|
"dropFile": "",
|
|
@@ -284,7 +275,7 @@
|
|
|
284
275
|
"editor.record.form.temporalExtents.addRange": "",
|
|
285
276
|
"editor.record.form.temporalExtents.date": "",
|
|
286
277
|
"editor.record.form.temporalExtents.range": "",
|
|
287
|
-
"editor.record.form.updateFrequency.planned": "
|
|
278
|
+
"editor.record.form.updateFrequency.planned": "",
|
|
288
279
|
"editor.record.importFromExternalFile.failure.body": "",
|
|
289
280
|
"editor.record.importFromExternalFile.failure.title": "",
|
|
290
281
|
"editor.record.importFromExternalFile.success.body": "",
|