geonetwork-ui 2.3.0-dev.6b7e19cb → 2.3.0-dev.82249397
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/read-parts.mjs +2 -2
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +2 -2
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +104 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +8 -3
- package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +8 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +1 -1
- package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +1 -1
- package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +1 -1
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +1 -1
- package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +4 -3
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +5 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +6 -5
- package/esm2022/translations/de.json +2 -0
- package/esm2022/translations/en.json +2 -0
- package/esm2022/translations/es.json +2 -0
- package/esm2022/translations/fr.json +2 -0
- package/esm2022/translations/it.json +2 -0
- package/esm2022/translations/nl.json +2 -0
- package/esm2022/translations/pt.json +2 -0
- package/fesm2022/geonetwork-ui.mjs +149 -23
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.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 +21 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +1 -0
- 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/fields.config.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts +2 -1
- package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +27 -27
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +1 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.html +14 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +143 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +5 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +5 -0
- package/src/libs/feature/editor/src/lib/fields.config.ts +7 -0
- package/src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.ts +3 -0
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -0
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +1 -0
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +1 -1
- package/translations/de.json +2 -0
- package/translations/en.json +2 -0
- package/translations/es.json +2 -0
- package/translations/fr.json +2 -0
- package/translations/it.json +2 -0
- package/translations/nl.json +2 -0
- package/translations/pt.json +2 -0
- package/translations/sk.json +2 -0
|
@@ -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,mBAAmB,EACnB,aAAa,EACb,0BAA0B,EAC1B,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,IAAI,EACJ,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,2DAA2D,CAAA;AAClE,OAAO,
|
|
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,mBAAmB,EACnB,aAAa,EACb,0BAA0B,EAC1B,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,IAAI,EACJ,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,2DAA2D,CAAA;AAClE,OAAO,EAeL,UAAU,EACX,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,iBAAiB,EASlB,MAAM,mBAAmB,CAAA;AAK1B,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MA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AAa,EACrB,MAAM,EAAE,UAAU,QAMnB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormFieldUpdateFrequencyComponent implements OnInit {
|
|
6
|
+
private translateService;
|
|
7
|
+
control: FormControl;
|
|
8
|
+
get planned(): boolean;
|
|
9
|
+
constructor(translateService: TranslateService);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
onPlannedToggled(): void;
|
|
12
|
+
get selectedFrequency(): string;
|
|
13
|
+
onSelectFrequencyValue(value: unknown): void;
|
|
14
|
+
choices: {
|
|
15
|
+
value: string;
|
|
16
|
+
label: any;
|
|
17
|
+
}[];
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldUpdateFrequencyComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldUpdateFrequencyComponent, "gn-ui-form-field-update-frequency", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=form-field-update-frequency.component.d.ts.map
|
|
@@ -0,0 +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,EAIL,MAAM,EACP,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAM5C,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;;AAEvE,qBAQa,iCAAkC,YAAW,MAAM;IAOlD,OAAO,CAAC,gBAAgB;IAN3B,OAAO,EAAE,WAAW,CAAA;IAE7B,IAAI,OAAO,YAEV;gBAEmB,gBAAgB,EAAE,gBAAgB;IAEtD,QAAQ;IAmBR,gBAAgB;IAQhB,IAAI,iBAAiB,WAGpB;IAED,sBAAsB,CAAC,KAAK,EAAE,OAAO;IAKrC,OAAO;;;QAyEN;yCAvHU,iCAAiC;2CAAjC,iCAAiC;CAwH7C"}
|
package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare class FormFieldComponent {
|
|
|
26
26
|
get isAbstract(): boolean;
|
|
27
27
|
get isLicenses(): boolean;
|
|
28
28
|
get isResourceUpdated(): boolean;
|
|
29
|
+
get isUpdateFrequency(): boolean;
|
|
29
30
|
get withoutWrapper(): boolean;
|
|
30
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
31
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "gn-ui-form-field", never, { "model": { "alias": "model"; "required": false; }; "config": { "alias": "config"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,UAAU,EAIX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,WAAW,EAAuB,MAAM,gBAAgB,CAAA;AAMjE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AAUjC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;;
|
|
1
|
+
{"version":3,"file":"form-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,UAAU,EAIX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,WAAW,EAAuB,MAAM,gBAAgB,CAAA;AAMjE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AAUjC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;;AAGpD,qBA0Ba,kBAAkB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,eAAe,CAAA;IAChC,IAAa,KAAK,CAAC,CAAC,EAAE,OAAO,EAI5B;IACS,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAEjB,UAAU,EAAE,UAAU,CAAA;IAE/C,WAAW,mBAAoB;;IAM/B,eAAe;IAIf,IAAI,UAAU,2DAQb;IAED,IAAI,aAAa,YAShB;IACD,IAAI,WAAW,YAEd;IACD,IAAI,oBAAoB,YAEvB;IACD,IAAI,qBAAqB,YAExB;IACD,IAAI,YAAY,YAEf;IACD,IAAI,aAAa,YAEhB;IAED,IAAI,SAAS,YAEZ;IACD,IAAI,aAAa,YAEhB;IACD,IAAI,cAAc,YAEjB;IAED,IAAI,OAAO,YAEV;IACD,IAAI,UAAU,YAEb;IACD,IAAI,UAAU,YAEb;IACD,IAAI,iBAAiB,YAEpB;IACD,IAAI,iBAAiB,YAEpB;IAED,IAAI,cAAc,YAEjB;yCAtFU,kBAAkB;2CAAlB,kBAAkB;CAuF9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.config.d.ts","sourceRoot":"","sources":["../../../../../src/libs/feature/editor/src/lib/fields.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE1D,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"fields.config.d.ts","sourceRoot":"","sources":["../../../../../src/libs/feature/editor/src/lib/fields.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE1D,eAAO,MAAM,cAAc,EAAE,kBAqD5B,CAAA"}
|
|
@@ -8,6 +8,6 @@ export declare class CheckToggleComponent {
|
|
|
8
8
|
toggled: EventEmitter<any>;
|
|
9
9
|
toggle(event: Event): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckToggleComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckToggleComponent, "gn-ui-check-toggle", never, { "title": { "alias": "title"; "required": false; }; "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "toggled": "toggled"; }, never, never,
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckToggleComponent, "gn-ui-check-toggle", never, { "title": { "alias": "title"; "required": false; }; "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "toggled": "toggled"; }, never, never, true, never>;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=check-toggle.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-toggle.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;
|
|
1
|
+
{"version":3,"file":"check-toggle.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAGtB,qBAQa,oBAAoB;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,EAAE,SAAS,GAAG,WAAW,CAAY;IACzC,OAAO,oBAAqB;IAEtC,MAAM,CAAC,KAAK,EAAE,KAAK;yCAPR,oBAAoB;2CAApB,oBAAoB;CAUhC"}
|
|
@@ -11,6 +11,7 @@ export declare class DropdownSelectorComponent implements OnInit {
|
|
|
11
11
|
maxRows: number;
|
|
12
12
|
extraBtnClass: string;
|
|
13
13
|
minWidth: string;
|
|
14
|
+
disabled: boolean;
|
|
14
15
|
selectValue: EventEmitter<unknown>;
|
|
15
16
|
overlayOrigin: CdkOverlayOrigin;
|
|
16
17
|
overlay: CdkConnectedOverlay;
|
|
@@ -35,6 +36,6 @@ export declare class DropdownSelectorComponent implements OnInit {
|
|
|
35
36
|
get focusedIndex(): number | -1;
|
|
36
37
|
selectIfEnter(event: KeyboardEvent, choice: DropdownChoice): void;
|
|
37
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownSelectorComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownSelectorComponent, "gn-ui-dropdown-selector", never, { "title": { "alias": "title"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "ariaName": { "alias": "ariaName"; "required": false; }; "choices": { "alias": "choices"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "extraBtnClass": { "alias": "extraBtnClass"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; }, { "selectValue": "selectValue"; }, never, never, true, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownSelectorComponent, "gn-ui-dropdown-selector", never, { "title": { "alias": "title"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "ariaName": { "alias": "ariaName"; "required": false; }; "choices": { "alias": "choices"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "extraBtnClass": { "alias": "extraBtnClass"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectValue": "selectValue"; }, never, never, true, never>;
|
|
39
40
|
}
|
|
40
41
|
//# sourceMappingURL=dropdown-selector.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-selector.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EAElB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAGL,UAAU,EACV,YAAY,EAEZ,MAAM,EAEN,SAAS,EAGV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;;AAQ1D,qBAca,yBAA0B,YAAW,MAAM;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,UAAO;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAC9B,QAAQ,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,SAAK;IAClB,QAAQ,SAAK;
|
|
1
|
+
{"version":3,"file":"dropdown-selector.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EAElB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAGL,UAAU,EACV,YAAY,EAEZ,MAAM,EAEN,SAAS,EAGV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;;AAQ1D,qBAca,yBAA0B,YAAW,MAAM;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,UAAO;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAC9B,QAAQ,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,SAAK;IAClB,QAAQ,SAAK;IACb,QAAQ,EAAE,OAAO,CAAA;IAChB,WAAW,wBAA8C;IACvC,aAAa,EAAE,gBAAgB,CAAA;IAC3B,OAAO,EAAE,mBAAmB,CAAA;IAC5D,WAAW,UAAQ;IACnB,YAAY,SAAS;IACrB,gBAAgB,SAAS;IACzB,gBAAgB,EAAE,iBAAiB,EAAE,CAepC;IAED,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;IAEnC,IAAI,cAAc,IAAI,cAAc,CAKnC;IAED,IAAI,EAAE,WAEL;IAED,cAAc,IAAI,MAAM;IAIxB,QAAQ,IAAI,IAAI;IAOhB,UAAU,CAAC,MAAM,EAAE,cAAc;IAIjC,aAAa,CAAC,MAAM,EAAE,cAAc;IAMpC,WAAW;IAcX,YAAY;IAIZ,cAAc;IAId,aAAa;IAIP,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAuB/C,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAczC,cAAc,CAAC,KAAK,EAAE,MAAM;IAS5B,IAAI,YAAY,IAAI,MAAM,GAAG,CAAC,CAAC,CAM9B;IAED,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc;yCAnJ/C,yBAAyB;2CAAzB,yBAAyB;CAyJrC"}
|
|
@@ -7,35 +7,35 @@ import * as i5 from "./navigation-button/navigation-button.component";
|
|
|
7
7
|
import * as i6 from "./star-toggle/star-toggle.component";
|
|
8
8
|
import * as i7 from "./dropdown-multiselect/dropdown-multiselect.component";
|
|
9
9
|
import * as i8 from "./viewport-intersector/viewport-intersector.component";
|
|
10
|
-
import * as i9 from "./
|
|
11
|
-
import * as i10 from "./
|
|
12
|
-
import * as i11 from "./
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "@
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "@angular/material/
|
|
21
|
-
import * as i20 from "
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "@angular/
|
|
24
|
-
import * as i23 from "@angular/material/
|
|
25
|
-
import * as i24 from "@angular/material/
|
|
26
|
-
import * as i25 from "@angular/material/
|
|
27
|
-
import * as i26 from "@angular/material/
|
|
28
|
-
import * as i27 from "@angular/material/
|
|
29
|
-
import * as i28 from "
|
|
30
|
-
import * as i29 from "./
|
|
31
|
-
import * as i30 from "./
|
|
32
|
-
import * as i31 from "./
|
|
33
|
-
import * as i32 from "./
|
|
34
|
-
import * as i33 from "./
|
|
35
|
-
import * as i34 from "./
|
|
10
|
+
import * as i9 from "./copy-text-button/copy-text-button.component";
|
|
11
|
+
import * as i10 from "./checkbox/checkbox.component";
|
|
12
|
+
import * as i11 from "./search-input/search-input.component";
|
|
13
|
+
import * as i12 from "@angular/common";
|
|
14
|
+
import * as i13 from "@ngx-translate/core";
|
|
15
|
+
import * as i14 from "ngx-dropzone";
|
|
16
|
+
import * as i15 from "@angular/forms";
|
|
17
|
+
import * as i16 from "ngx-chips";
|
|
18
|
+
import * as i17 from "../../../../util/shared/src/lib/util-shared.module";
|
|
19
|
+
import * as i18 from "@angular/material/autocomplete";
|
|
20
|
+
import * as i19 from "@angular/material/icon";
|
|
21
|
+
import * as i20 from "../../../widgets/src/lib/ui-widgets.module";
|
|
22
|
+
import * as i21 from "@angular/cdk/overlay";
|
|
23
|
+
import * as i22 from "@angular/material/checkbox";
|
|
24
|
+
import * as i23 from "@angular/material/tooltip";
|
|
25
|
+
import * as i24 from "@angular/material/form-field";
|
|
26
|
+
import * as i25 from "@angular/material/input";
|
|
27
|
+
import * as i26 from "@angular/material/datepicker";
|
|
28
|
+
import * as i27 from "@angular/material/core";
|
|
29
|
+
import * as i28 from "./editable-label/editable-label.directive";
|
|
30
|
+
import * as i29 from "./text-area/text-area.component";
|
|
31
|
+
import * as i30 from "./button/button.component";
|
|
32
|
+
import * as i31 from "./image-input/image-input.component";
|
|
33
|
+
import * as i32 from "./dropdown-selector/dropdown-selector.component";
|
|
34
|
+
import * as i33 from "./date-range-picker/date-range-picker.component";
|
|
35
|
+
import * as i34 from "./check-toggle/check-toggle.component";
|
|
36
36
|
export declare class UiInputsModule {
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiInputsModule, never>;
|
|
38
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.AutocompleteComponent, typeof i2.TextInputComponent, typeof i3.DragAndDropFileInputComponent, typeof i4.ChipsInputComponent, typeof i5.NavigationButtonComponent, typeof i6.StarToggleComponent, typeof i7.DropdownMultiselectComponent, typeof i8.ViewportIntersectorComponent, typeof i9.
|
|
38
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.AutocompleteComponent, typeof i2.TextInputComponent, typeof i3.DragAndDropFileInputComponent, typeof i4.ChipsInputComponent, typeof i5.NavigationButtonComponent, typeof i6.StarToggleComponent, typeof i7.DropdownMultiselectComponent, typeof i8.ViewportIntersectorComponent, typeof i9.CopyTextButtonComponent, typeof i10.CheckboxComponent, typeof i11.SearchInputComponent], [typeof i12.CommonModule, typeof i13.TranslateModule, typeof i14.NgxDropzoneModule, typeof i15.FormsModule, typeof i15.ReactiveFormsModule, typeof i16.TagInputModule, typeof i17.UtilSharedModule, typeof i18.MatAutocompleteModule, typeof i19.MatIconModule, typeof i20.UiWidgetsModule, typeof i21.OverlayModule, typeof i22.MatCheckboxModule, typeof i23.MatTooltipModule, typeof i24.MatFormFieldModule, typeof i25.MatInputModule, typeof i26.MatDatepickerModule, typeof i27.MatNativeDateModule, typeof i28.EditableLabelDirective, typeof i29.TextAreaComponent, typeof i30.ButtonComponent, typeof i31.ImageInputComponent, typeof i32.DropdownSelectorComponent, typeof i33.DateRangePickerComponent, typeof i34.CheckToggleComponent], [typeof i32.DropdownSelectorComponent, typeof i1.AutocompleteComponent, typeof i30.ButtonComponent, typeof i2.TextInputComponent, typeof i3.DragAndDropFileInputComponent, typeof i29.TextAreaComponent, typeof i4.ChipsInputComponent, typeof i5.NavigationButtonComponent, typeof i6.StarToggleComponent, typeof i7.DropdownMultiselectComponent, typeof i8.ViewportIntersectorComponent, typeof i34.CheckToggleComponent, typeof i9.CopyTextButtonComponent, typeof i10.CheckboxComponent, typeof i11.SearchInputComponent, typeof i33.DateRangePickerComponent, typeof i28.EditableLabelDirective, typeof i31.ImageInputComponent]>;
|
|
39
39
|
static ɵinj: i0.ɵɵInjectorDeclaration<UiInputsModule>;
|
|
40
40
|
}
|
|
41
41
|
//# sourceMappingURL=ui-inputs.module.d.ts.map
|
package/package.json
CHANGED
|
@@ -434,7 +434,7 @@ export function getUpdateFrequencyFromCustomPeriod(
|
|
|
434
434
|
} else if (days <= 7) {
|
|
435
435
|
return {
|
|
436
436
|
per: 'week',
|
|
437
|
-
updatedTimes: Math.round(7 / days),
|
|
437
|
+
updatedTimes: Math.round(7 / days - 0.0001), // this is to make sure that 'every 2 days' = '3 times per week'
|
|
438
438
|
}
|
|
439
439
|
} else if (days) {
|
|
440
440
|
return {
|
|
@@ -24,10 +24,8 @@ import {
|
|
|
24
24
|
findChildOrCreate,
|
|
25
25
|
findChildrenElement,
|
|
26
26
|
findNestedChildOrCreate,
|
|
27
|
-
findNestedElement,
|
|
28
27
|
findNestedElements,
|
|
29
28
|
readAttribute,
|
|
30
|
-
readText,
|
|
31
29
|
removeAllChildren,
|
|
32
30
|
removeChildren,
|
|
33
31
|
removeChildrenByName,
|
|
@@ -36,7 +34,6 @@ import {
|
|
|
36
34
|
} from '../xml-utils'
|
|
37
35
|
import {
|
|
38
36
|
ChainableFunction,
|
|
39
|
-
combine,
|
|
40
37
|
fallback,
|
|
41
38
|
filterArray,
|
|
42
39
|
getAtIndex,
|
|
@@ -220,7 +217,7 @@ export function getISODuration(updateFrequency: UpdateFrequencyCustom): string {
|
|
|
220
217
|
else duration.hours = Math.round(24 / updateFrequency.updatedTimes)
|
|
221
218
|
break
|
|
222
219
|
case 'week':
|
|
223
|
-
duration.days = Math.round(7 / updateFrequency.updatedTimes)
|
|
220
|
+
duration.days = Math.round(7 / updateFrequency.updatedTimes - 0.0001) // this is to make sure that '2 times per week' = 'every 3 days'
|
|
224
221
|
break
|
|
225
222
|
case 'month':
|
|
226
223
|
if (updateFrequency.updatedTimes <= 1) duration.months = 1
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<gn-ui-check-toggle
|
|
2
|
+
[label]="'editor.record.form.updateFrequency.planned' | translate"
|
|
3
|
+
[value]="planned"
|
|
4
|
+
(toggled)="onPlannedToggled()"
|
|
5
|
+
></gn-ui-check-toggle>
|
|
6
|
+
<gn-ui-dropdown-selector
|
|
7
|
+
title="updateFrequency"
|
|
8
|
+
[showTitle]="false"
|
|
9
|
+
[choices]="choices"
|
|
10
|
+
[selected]="selectedFrequency"
|
|
11
|
+
(selectValue)="onSelectFrequencyValue($event)"
|
|
12
|
+
[disabled]="!planned"
|
|
13
|
+
>
|
|
14
|
+
</gn-ui-dropdown-selector>
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
Input,
|
|
5
|
+
OnInit,
|
|
6
|
+
} from '@angular/core'
|
|
7
|
+
import { FormControl } from '@angular/forms'
|
|
8
|
+
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
9
|
+
import {
|
|
10
|
+
CheckToggleComponent,
|
|
11
|
+
DropdownSelectorComponent,
|
|
12
|
+
} from '../../../../../../../../../libs/ui/inputs/src'
|
|
13
|
+
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
14
|
+
|
|
15
|
+
@Component({
|
|
16
|
+
selector: 'gn-ui-form-field-update-frequency',
|
|
17
|
+
templateUrl: './form-field-update-frequency.component.html',
|
|
18
|
+
styleUrls: ['./form-field-update-frequency.component.css'],
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
+
standalone: true,
|
|
21
|
+
imports: [CheckToggleComponent, DropdownSelectorComponent, TranslateModule],
|
|
22
|
+
})
|
|
23
|
+
export class FormFieldUpdateFrequencyComponent implements OnInit {
|
|
24
|
+
@Input() control: FormControl
|
|
25
|
+
|
|
26
|
+
get planned() {
|
|
27
|
+
return this.control.value !== 'notPlanned'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(private translateService: TranslateService) {}
|
|
31
|
+
|
|
32
|
+
ngOnInit() {
|
|
33
|
+
const updatedTimes = this.control.value?.updatedTimes
|
|
34
|
+
const per = this.control.value?.per
|
|
35
|
+
if (updatedTimes && updatedTimes !== 1 && updatedTimes !== 2) {
|
|
36
|
+
this.choices = [
|
|
37
|
+
{
|
|
38
|
+
value: `${per}.${updatedTimes}`,
|
|
39
|
+
label: this.translateService.instant(
|
|
40
|
+
`domain.record.updateFrequency.${per}`,
|
|
41
|
+
{
|
|
42
|
+
count: updatedTimes,
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
},
|
|
46
|
+
...this.choices,
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
onPlannedToggled() {
|
|
52
|
+
if (this.planned) {
|
|
53
|
+
this.control.setValue('notPlanned')
|
|
54
|
+
} else {
|
|
55
|
+
this.control.setValue({ updatedTimes: 1, per: 'day' })
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
get selectedFrequency() {
|
|
60
|
+
const { updatedTimes, per } = this.control.value
|
|
61
|
+
return `${per}.${updatedTimes}`
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
onSelectFrequencyValue(value: unknown) {
|
|
65
|
+
const split = (value as string).split('.')
|
|
66
|
+
this.control.setValue({ updatedTimes: Number(split[1]), per: split[0] })
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
choices = [
|
|
70
|
+
{
|
|
71
|
+
value: 'day.1',
|
|
72
|
+
label: this.translateService.instant(
|
|
73
|
+
'domain.record.updateFrequency.day',
|
|
74
|
+
{
|
|
75
|
+
count: 1,
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
value: 'day.2',
|
|
81
|
+
label: this.translateService.instant(
|
|
82
|
+
'domain.record.updateFrequency.day',
|
|
83
|
+
{
|
|
84
|
+
count: 2,
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
value: 'week.1',
|
|
90
|
+
label: this.translateService.instant(
|
|
91
|
+
'domain.record.updateFrequency.week',
|
|
92
|
+
{
|
|
93
|
+
count: 1,
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
value: 'week.2',
|
|
99
|
+
label: this.translateService.instant(
|
|
100
|
+
'domain.record.updateFrequency.week',
|
|
101
|
+
{
|
|
102
|
+
count: 2,
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
value: 'month.1',
|
|
108
|
+
label: this.translateService.instant(
|
|
109
|
+
'domain.record.updateFrequency.month',
|
|
110
|
+
{
|
|
111
|
+
count: 1,
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
value: 'month.2',
|
|
117
|
+
label: this.translateService.instant(
|
|
118
|
+
'domain.record.updateFrequency.month',
|
|
119
|
+
{
|
|
120
|
+
count: 2,
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
value: 'year.1',
|
|
126
|
+
label: this.translateService.instant(
|
|
127
|
+
'domain.record.updateFrequency.year',
|
|
128
|
+
{
|
|
129
|
+
count: 1,
|
|
130
|
+
}
|
|
131
|
+
),
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
value: 'year.2',
|
|
135
|
+
label: this.translateService.instant(
|
|
136
|
+
'domain.record.updateFrequency.year',
|
|
137
|
+
{
|
|
138
|
+
count: 2,
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
},
|
|
142
|
+
]
|
|
143
|
+
}
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html
CHANGED
|
@@ -56,6 +56,11 @@
|
|
|
56
56
|
[control]="formControl"
|
|
57
57
|
></gn-ui-form-field-resource-updated>
|
|
58
58
|
</ng-container>
|
|
59
|
+
<ng-container *ngIf="isUpdateFrequency">
|
|
60
|
+
<gn-ui-form-field-update-frequency
|
|
61
|
+
[control]="formControl"
|
|
62
|
+
></gn-ui-form-field-update-frequency>
|
|
63
|
+
</ng-container>
|
|
59
64
|
<ng-container *ngIf="isSimpleField">
|
|
60
65
|
<gn-ui-form-field-simple
|
|
61
66
|
[type]="simpleType"
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts
CHANGED
|
@@ -24,6 +24,7 @@ import { FormFieldSimpleComponent } from './form-field-simple/form-field-simple.
|
|
|
24
24
|
import { FormFieldSpatialExtentComponent } from './form-field-spatial-extent/form-field-spatial-extent.component'
|
|
25
25
|
import { FormFieldTemporalExtentComponent } from './form-field-temporal-extent/form-field-temporal-extent.component'
|
|
26
26
|
import { FormFieldConfig } from './form-field.model'
|
|
27
|
+
import { FormFieldUpdateFrequencyComponent } from './form-field-update-frequency/form-field-update-frequency.component'
|
|
27
28
|
|
|
28
29
|
@Component({
|
|
29
30
|
selector: 'gn-ui-form-field',
|
|
@@ -40,6 +41,7 @@ import { FormFieldConfig } from './form-field.model'
|
|
|
40
41
|
FormFieldWrapperComponent,
|
|
41
42
|
FormFieldLicenseComponent,
|
|
42
43
|
FormFieldResourceUpdatedComponent,
|
|
44
|
+
FormFieldUpdateFrequencyComponent,
|
|
43
45
|
FormFieldSimpleComponent,
|
|
44
46
|
FormFieldRichComponent,
|
|
45
47
|
FormFieldObjectComponent,
|
|
@@ -130,6 +132,9 @@ export class FormFieldComponent {
|
|
|
130
132
|
get isResourceUpdated() {
|
|
131
133
|
return this.model === 'resourceUpdated'
|
|
132
134
|
}
|
|
135
|
+
get isUpdateFrequency() {
|
|
136
|
+
return this.model === 'updateFrequency'
|
|
137
|
+
}
|
|
133
138
|
|
|
134
139
|
get withoutWrapper() {
|
|
135
140
|
return this.model === 'title' || this.model === 'abstract'
|
|
@@ -5,12 +5,15 @@ import {
|
|
|
5
5
|
Input,
|
|
6
6
|
Output,
|
|
7
7
|
} from '@angular/core'
|
|
8
|
+
import { FormsModule } from '@angular/forms'
|
|
8
9
|
|
|
9
10
|
@Component({
|
|
10
11
|
selector: 'gn-ui-check-toggle',
|
|
11
12
|
templateUrl: './check-toggle.component.html',
|
|
12
13
|
styleUrls: ['./check-toggle.component.css'],
|
|
13
14
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
|
+
standalone: true,
|
|
16
|
+
imports: [FormsModule],
|
|
14
17
|
})
|
|
15
18
|
export class CheckToggleComponent {
|
|
16
19
|
@Input() title: string
|
|
@@ -48,6 +48,7 @@ export class DropdownSelectorComponent implements OnInit {
|
|
|
48
48
|
@Input() maxRows: number
|
|
49
49
|
@Input() extraBtnClass = ''
|
|
50
50
|
@Input() minWidth = ''
|
|
51
|
+
@Input() disabled: boolean
|
|
51
52
|
@Output() selectValue = new EventEmitter<DropdownChoice['value']>()
|
|
52
53
|
@ViewChild('overlayOrigin') overlayOrigin: CdkOverlayOrigin
|
|
53
54
|
@ViewChild(CdkConnectedOverlay) overlay: CdkConnectedOverlay
|
|
@@ -44,7 +44,6 @@ import { ImageInputComponent } from './image-input/image-input.component'
|
|
|
44
44
|
StarToggleComponent,
|
|
45
45
|
DropdownMultiselectComponent,
|
|
46
46
|
ViewportIntersectorComponent,
|
|
47
|
-
CheckToggleComponent,
|
|
48
47
|
CopyTextButtonComponent,
|
|
49
48
|
CheckboxComponent,
|
|
50
49
|
SearchInputComponent,
|
|
@@ -73,6 +72,7 @@ import { ImageInputComponent } from './image-input/image-input.component'
|
|
|
73
72
|
ImageInputComponent,
|
|
74
73
|
DropdownSelectorComponent,
|
|
75
74
|
DateRangePickerComponent,
|
|
75
|
+
CheckToggleComponent,
|
|
76
76
|
],
|
|
77
77
|
exports: [
|
|
78
78
|
DropdownSelectorComponent,
|
package/translations/de.json
CHANGED
|
@@ -156,6 +156,8 @@
|
|
|
156
156
|
"editor.record.form.license.pddl": "",
|
|
157
157
|
"editor.record.form.license.unknown": "Unbekannt oder nicht vorhanden",
|
|
158
158
|
"editor.record.form.resourceUpdated": "",
|
|
159
|
+
"editor.record.form.updateFrequency": "",
|
|
160
|
+
"editor.record.form.updateFrequency.planned": "",
|
|
159
161
|
"editor.record.loadError.body": "",
|
|
160
162
|
"editor.record.loadError.closeMessage": "",
|
|
161
163
|
"editor.record.loadError.title": "",
|
package/translations/en.json
CHANGED
|
@@ -156,6 +156,8 @@
|
|
|
156
156
|
"editor.record.form.license.pddl": "Open Data Commons PDDL",
|
|
157
157
|
"editor.record.form.license.unknown": "Unknown or absent",
|
|
158
158
|
"editor.record.form.resourceUpdated": "Last update date",
|
|
159
|
+
"editor.record.form.updateFrequency": "Update frequency",
|
|
160
|
+
"editor.record.form.updateFrequency.planned": "The data should be updated regularly.",
|
|
159
161
|
"editor.record.loadError.body": "The record could not be loaded:",
|
|
160
162
|
"editor.record.loadError.closeMessage": "Understood",
|
|
161
163
|
"editor.record.loadError.title": "Error loading record",
|
package/translations/es.json
CHANGED
|
@@ -156,6 +156,8 @@
|
|
|
156
156
|
"editor.record.form.license.pddl": "",
|
|
157
157
|
"editor.record.form.license.unknown": "",
|
|
158
158
|
"editor.record.form.resourceUpdated": "",
|
|
159
|
+
"editor.record.form.updateFrequency": "",
|
|
160
|
+
"editor.record.form.updateFrequency.planned": "",
|
|
159
161
|
"editor.record.loadError.body": "",
|
|
160
162
|
"editor.record.loadError.closeMessage": "",
|
|
161
163
|
"editor.record.loadError.title": "",
|
package/translations/fr.json
CHANGED
|
@@ -156,6 +156,8 @@
|
|
|
156
156
|
"editor.record.form.license.pddl": "",
|
|
157
157
|
"editor.record.form.license.unknown": "Non-reconnue ou absente",
|
|
158
158
|
"editor.record.form.resourceUpdated": "Date de dernière révision",
|
|
159
|
+
"editor.record.form.updateFrequency": "Fréquence de mise à jour",
|
|
160
|
+
"editor.record.form.updateFrequency.planned": "Ces données doivent être mise à jour régulièrement.",
|
|
159
161
|
"editor.record.loadError.body": "",
|
|
160
162
|
"editor.record.loadError.closeMessage": "",
|
|
161
163
|
"editor.record.loadError.title": "",
|
package/translations/it.json
CHANGED
|
@@ -156,6 +156,8 @@
|
|
|
156
156
|
"editor.record.form.license.pddl": "",
|
|
157
157
|
"editor.record.form.license.unknown": "Non riconosciuta o assente",
|
|
158
158
|
"editor.record.form.resourceUpdated": "",
|
|
159
|
+
"editor.record.form.updateFrequency": "",
|
|
160
|
+
"editor.record.form.updateFrequency.planned": "",
|
|
159
161
|
"editor.record.loadError.body": "",
|
|
160
162
|
"editor.record.loadError.closeMessage": "",
|
|
161
163
|
"editor.record.loadError.title": "",
|
package/translations/nl.json
CHANGED
|
@@ -156,6 +156,8 @@
|
|
|
156
156
|
"editor.record.form.license.pddl": "",
|
|
157
157
|
"editor.record.form.license.unknown": "",
|
|
158
158
|
"editor.record.form.resourceUpdated": "",
|
|
159
|
+
"editor.record.form.updateFrequency": "",
|
|
160
|
+
"editor.record.form.updateFrequency.planned": "",
|
|
159
161
|
"editor.record.loadError.body": "",
|
|
160
162
|
"editor.record.loadError.closeMessage": "",
|
|
161
163
|
"editor.record.loadError.title": "",
|
package/translations/pt.json
CHANGED
|
@@ -156,6 +156,8 @@
|
|
|
156
156
|
"editor.record.form.license.pddl": "",
|
|
157
157
|
"editor.record.form.license.unknown": "",
|
|
158
158
|
"editor.record.form.resourceUpdated": "",
|
|
159
|
+
"editor.record.form.updateFrequency": "",
|
|
160
|
+
"editor.record.form.updateFrequency.planned": "",
|
|
159
161
|
"editor.record.loadError.body": "",
|
|
160
162
|
"editor.record.loadError.closeMessage": "",
|
|
161
163
|
"editor.record.loadError.title": "",
|
package/translations/sk.json
CHANGED
|
@@ -156,6 +156,8 @@
|
|
|
156
156
|
"editor.record.form.license.pddl": "",
|
|
157
157
|
"editor.record.form.license.unknown": "Neznáme alebo chýbajúce",
|
|
158
158
|
"editor.record.form.resourceUpdated": "",
|
|
159
|
+
"editor.record.form.updateFrequency": "",
|
|
160
|
+
"editor.record.form.updateFrequency.planned": "",
|
|
159
161
|
"editor.record.loadError.body": "",
|
|
160
162
|
"editor.record.loadError.closeMessage": "",
|
|
161
163
|
"editor.record.loadError.title": "",
|