geonetwork-ui 2.4.1-dev.9ee0df3df → 2.4.1-dev.a1ec7cf5a
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/gn4/gn4.converter.mjs +4 -3
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +5 -2
- 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 +27 -16
- 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 +7 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +3 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +18 -14
- package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +15 -5
- package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +10 -4
- package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +6 -5
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +36 -23
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +7 -12
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.mjs +7 -12
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +6 -12
- 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/services/editor.service.mjs +9 -5
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +3 -4
- package/esm2022/libs/ui/dataviz/src/lib/figure/figure.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +4 -4
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +9 -4
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +10 -10
- package/esm2022/translations/de.json +27 -6
- package/esm2022/translations/en.json +11 -9
- package/esm2022/translations/es.json +25 -4
- package/esm2022/translations/fr.json +11 -9
- package/esm2022/translations/it.json +241 -218
- package/esm2022/translations/nl.json +25 -4
- package/esm2022/translations/pt.json +25 -4
- package/fesm2022/geonetwork-ui.mjs +777 -609
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.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 +4 -3
- 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 +4 -3
- 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 +3 -0
- 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 +10 -2
- package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +6 -2
- package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +5 -2
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts +2 -1
- 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 +2 -1
- 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-license/form-field-license.component.d.ts +4 -4
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts +1 -4
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts +1 -4
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +1 -4
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/services/editor.service.d.ts +1 -1
- package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +0 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +2 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +3 -3
- 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/lib/gn4/gn4.converter.ts +4 -3
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +8 -1
- 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 +53 -27
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +5 -4
- package/src/libs/common/fixtures/src/lib/elasticsearch/full-response.fixtures.ts +2 -2
- package/src/libs/common/fixtures/src/lib/elasticsearch/search-responses.fixtures.ts +16 -16
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +163 -0
- package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +24 -4
- package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +10 -1
- package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +57 -31
- package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +15 -9
- package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +18 -12
- package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +13 -8
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +31 -19
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html +1 -10
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +1 -7
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.html +0 -11
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts +2 -8
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +0 -9
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +2 -8
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +2 -2
- package/src/libs/feature/editor/src/lib/services/editor.service.ts +18 -16
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +0 -1
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +0 -3
- package/src/libs/ui/dataviz/src/lib/figure/figure.component.html +1 -0
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +1 -1
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +12 -1
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +4 -6
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +23 -6
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +6 -6
- package/tailwind.base.config.js +2 -0
- package/translations/de.json +27 -6
- package/translations/en.json +11 -9
- package/translations/es.json +25 -4
- package/translations/fr.json +11 -9
- package/translations/it.json +241 -218
- package/translations/nl.json +25 -4
- package/translations/pt.json +25 -4
- package/translations/sk.json +25 -4
|
@@ -7,7 +7,6 @@ export declare class EditorEffects {
|
|
|
7
7
|
private store;
|
|
8
8
|
saveRecord$: import("rxjs").Observable<import("@ngrx/store").Action<"[Editor] Save record success"> | ({
|
|
9
9
|
record: import("../../../../../common/domain/src/lib/model/record").CatalogRecord;
|
|
10
|
-
alreadySavedOnce: boolean;
|
|
11
10
|
recordSource?: string | null;
|
|
12
11
|
} & import("@ngrx/store").Action<"[Editor] Open record">) | ({
|
|
13
12
|
error: import("geonetwork-ui").SaveRecordError;
|
|
@@ -17,7 +16,6 @@ export declare class EditorEffects {
|
|
|
17
16
|
saveRecordDraft$: import("rxjs").Observable<import("@ngrx/store").Action<"[Editor] Draft save success">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
18
17
|
undoRecordDraft$: import("rxjs").Observable<{
|
|
19
18
|
record: import("../../../../../common/domain/src/lib/model/record").CatalogRecord;
|
|
20
|
-
alreadySavedOnce: boolean;
|
|
21
19
|
recordSource?: string | null;
|
|
22
20
|
} & import("@ngrx/store").Action<"[Editor] Open record">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
23
21
|
checkHasChangesOnOpen$: import("rxjs").Observable<import("@ngrx/store").Action<"[Editor] Mark record as changed">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
@@ -27,6 +25,12 @@ export declare class EditorEffects {
|
|
|
27
25
|
date: Date;
|
|
28
26
|
};
|
|
29
27
|
} & import("@ngrx/store").Action<"[Editor] Has Record Changed Since Draft Success">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
28
|
+
checkIsRecordPublished$: import("rxjs").Observable<{
|
|
29
|
+
isPublished: boolean;
|
|
30
|
+
} & import("@ngrx/store").Action<"[Editor] Record Saved But Not Published">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
31
|
+
checkCanEditRecord$: import("rxjs").Observable<{
|
|
32
|
+
canEditRecord: boolean;
|
|
33
|
+
} & import("@ngrx/store").Action<"[Editor] User can edit record">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
30
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorEffects, never>;
|
|
31
35
|
static ɵprov: i0.ɵɵInjectableDeclaration<EditorEffects>;
|
|
32
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.effects.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/+state/editor.effects.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"editor.effects.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/+state/editor.effects.ts"],"names":[],"mappings":";AAeA,qBACa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,aAAa,CAAwB;IAC7C,OAAO,CAAC,iBAAiB,CAAqC;IAC9D,OAAO,CAAC,mBAAmB,CAA6B;IACxD,OAAO,CAAC,KAAK,CAAgB;IAE7B,WAAW;;;;;sHA6BV;IAED,uBAAuB,kFAsBtB;IAED,cAAc,4IAKb;IAED,gBAAgB,wIAaf;IAED,gBAAgB;;;6GAYf;IAED,sBAAsB,4IASrB;IAED,2BAA2B;;;;;wIAa1B;IAED,uBAAuB;;gIAatB;IAED,mBAAmB;;sHAalB;yCAxJU,aAAa;6CAAb,aAAa;CAyJzB"}
|
|
@@ -6,7 +6,6 @@ export declare class EditorFacade {
|
|
|
6
6
|
private actions$;
|
|
7
7
|
record$: import("rxjs").Observable<CatalogRecord>;
|
|
8
8
|
recordSource$: import("rxjs").Observable<string>;
|
|
9
|
-
alreadySavedOnce$: import("rxjs").Observable<boolean>;
|
|
10
9
|
saving$: import("rxjs").Observable<boolean>;
|
|
11
10
|
saveError$: import("rxjs").Observable<Error>;
|
|
12
11
|
saveSuccess$: import("rxjs").Observable<import("@ngrx/store").Action<"[Editor] Save record success">>;
|
|
@@ -19,13 +18,17 @@ export declare class EditorFacade {
|
|
|
19
18
|
user: string;
|
|
20
19
|
date: Date;
|
|
21
20
|
}>;
|
|
22
|
-
|
|
21
|
+
isPublished$: import("rxjs").Observable<boolean>;
|
|
22
|
+
canEditRecord$: import("rxjs").Observable<boolean>;
|
|
23
|
+
openRecord(record: CatalogRecord, recordSource: string): void;
|
|
23
24
|
saveRecord(): void;
|
|
24
25
|
undoRecordDraft(): void;
|
|
25
26
|
updateRecordField(field: string, value: unknown): void;
|
|
26
27
|
setCurrentPage(page: number): void;
|
|
27
28
|
setFieldVisibility(field: EditorFieldIdentification, visible: boolean): void;
|
|
28
29
|
checkHasRecordChanged(record: CatalogRecord): void;
|
|
30
|
+
isPublished(isPublished: boolean): void;
|
|
31
|
+
canEditRecord(canEditRecord: boolean): void;
|
|
29
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorFacade, never>;
|
|
30
33
|
static ɵprov: i0.ɵɵInjectableDeclaration<EditorFacade>;
|
|
31
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.facade.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/+state/editor.facade.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AAGzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;;AAErD,qBACa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAkB;IAElC,OAAO,2CAAwD;IAC/D,aAAa,oCAA8D;IAC3E,
|
|
1
|
+
{"version":3,"file":"editor.facade.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/+state/editor.facade.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AAGzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;;AAErD,qBACa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAkB;IAElC,OAAO,2CAAwD;IAC/D,aAAa,oCAA8D;IAC3E,OAAO,qCAA8D;IACrE,UAAU,mCAGT;IACD,YAAY,0FAA8D;IAC1E,iBAAiB,qCAEhB;IACD,gBAAgB,+EAEf;IACD,iBAAiB,yFAA6D;IAC9E,YAAY,oCAA6D;IACzE,aAAa,8DAA8D;IAC3E,iBAAiB;;;OAEhB;IACD,YAAY,qCAA6D;IACzE,cAAc,qCAA+D;IAE7E,UAAU,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM;IAUtD,UAAU;IAIV,eAAe;IAIf,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;IAI/C,cAAc,CAAC,IAAI,EAAE,MAAM;IAI3B,kBAAkB,CAAC,KAAK,EAAE,yBAAyB,EAAE,OAAO,EAAE,OAAO;IAIrE,qBAAqB,CAAC,MAAM,EAAE,aAAa;IAI3C,WAAW,CAAC,WAAW,EAAE,OAAO;IAIhC,aAAa,CAAC,aAAa,EAAE,OAAO;yCAjEzB,YAAY;6CAAZ,YAAY;CAoExB"}
|
|
@@ -14,7 +14,6 @@ export declare const EDITOR_FEATURE_KEY = "editor";
|
|
|
14
14
|
export interface EditorState {
|
|
15
15
|
record: CatalogRecord | null;
|
|
16
16
|
recordSource: string | null;
|
|
17
|
-
alreadySavedOnce: boolean;
|
|
18
17
|
saving: boolean;
|
|
19
18
|
saveError: SaveRecordError | null;
|
|
20
19
|
changedSinceSave: boolean;
|
|
@@ -24,6 +23,8 @@ export interface EditorState {
|
|
|
24
23
|
user: string;
|
|
25
24
|
date: Date;
|
|
26
25
|
};
|
|
26
|
+
isPublished: boolean;
|
|
27
|
+
canEditRecord: boolean;
|
|
27
28
|
}
|
|
28
29
|
export interface EditorPartialState {
|
|
29
30
|
readonly [EDITOR_FEATURE_KEY]: EditorState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.reducer.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/+state/editor.reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAqB,MAAM,aAAa,CAAA;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAGxC,eAAO,MAAM,kBAAkB,WAAW,CAAA;AAE1C;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,aAAa,GAAG,IAAI,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,
|
|
1
|
+
{"version":3,"file":"editor.reducer.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/+state/editor.reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAqB,MAAM,aAAa,CAAA;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAGxC,eAAO,MAAM,kBAAkB,WAAW,CAAA;AAE1C;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,aAAa,GAAG,IAAI,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,eAAe,GAAG,IAAI,CAAA;IACjC,gBAAgB,EAAE,OAAO,CAAA;IACzB,YAAY,EAAE,YAAY,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,IAAI,CAAA;KAAE,CAAA;IAC9C,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,CAAC,kBAAkB,CAAC,EAAE,WAAW,CAAA;CAC3C;AAED,eAAO,MAAM,kBAAkB,EAAE,WAWhC,CAAA;AA4ED,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,eAE3E"}
|
|
@@ -6,7 +6,6 @@ export declare const selectRecordSource: import("@ngrx/store").MemoizedSelector<
|
|
|
6
6
|
export declare const selectRecordSaving: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: EditorState) => boolean>;
|
|
7
7
|
export declare const selectRecordSaveError: import("@ngrx/store").MemoizedSelector<object, Error, (s1: EditorState) => Error>;
|
|
8
8
|
export declare const selectRecordChangedSinceSave: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: EditorState) => boolean>;
|
|
9
|
-
export declare const selectRecordAlreadySavedOnce: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: EditorState) => boolean>;
|
|
10
9
|
export declare const selectEditorConfig: import("@ngrx/store").MemoizedSelector<object, import("geonetwork-ui").EditorConfig, (s1: EditorState) => import("geonetwork-ui").EditorConfig>;
|
|
11
10
|
export declare const selectCurrentPage: import("@ngrx/store").MemoizedSelector<object, number, (s1: EditorState) => number>;
|
|
12
11
|
export declare const selectRecordSections: import("@ngrx/store").MemoizedSelector<object, EditorSectionWithValues[], (s1: EditorState) => EditorSectionWithValues[]>;
|
|
@@ -17,4 +16,6 @@ export declare const selectHasRecordChanged: import("@ngrx/store").MemoizedSelec
|
|
|
17
16
|
user: string;
|
|
18
17
|
date: Date;
|
|
19
18
|
}>;
|
|
19
|
+
export declare const selectIsPublished: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: EditorState) => boolean>;
|
|
20
|
+
export declare const selectCanEditRecord: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: EditorState) => boolean>;
|
|
20
21
|
//# sourceMappingURL=editor.selectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.selectors.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/+state/editor.selectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,eAAO,MAAM,iBAAiB,oHAC0B,CAAA;AAExD,eAAO,MAAM,YAAY,2NAGxB,CAAA;AAED,eAAO,MAAM,kBAAkB,qFAG9B,CAAA;AAED,eAAO,MAAM,kBAAkB,uFAG9B,CAAA;AAED,eAAO,MAAM,qBAAqB,mFAGjC,CAAA;AAED,eAAO,MAAM,4BAA4B,uFAGxC,CAAA;AAED,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"editor.selectors.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/+state/editor.selectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,eAAO,MAAM,iBAAiB,oHAC0B,CAAA;AAExD,eAAO,MAAM,YAAY,2NAGxB,CAAA;AAED,eAAO,MAAM,kBAAkB,qFAG9B,CAAA;AAED,eAAO,MAAM,kBAAkB,uFAG9B,CAAA;AAED,eAAO,MAAM,qBAAqB,mFAGjC,CAAA;AAED,eAAO,MAAM,4BAA4B,uFAGxC,CAAA;AAED,eAAO,MAAM,kBAAkB,iJAG9B,CAAA;AAED,eAAO,MAAM,iBAAiB,qFAG7B,CAAA;AAED,eAAO,MAAM,oBAAoB,2HAehC,CAAA;AAED,eAAO,MAAM,sBAAsB;;;;;;EAGlC,CAAA;AAED,eAAO,MAAM,iBAAiB,uFAG7B,CAAA;AAED,eAAO,MAAM,mBAAmB,uFAG/B,CAAA"}
|
|
@@ -7,14 +7,14 @@ type Licence = {
|
|
|
7
7
|
};
|
|
8
8
|
export declare class FormFieldLicenseComponent implements OnInit {
|
|
9
9
|
label: string;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
recordLicences: Constraint[];
|
|
11
|
+
recordLicencesChange: EventEmitter<Constraint[]>;
|
|
12
|
+
choices: Licence[];
|
|
12
13
|
selectedLicence: string;
|
|
13
14
|
ngOnInit(): void;
|
|
14
|
-
get licenceOptions(): Licence[];
|
|
15
15
|
handleLicenceSelection(licenceValue: string): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldLicenseComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldLicenseComponent, "gn-ui-form-field-license", never, { "label": { "alias": "label"; "required": false; }; "
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldLicenseComponent, "gn-ui-form-field-license", never, { "label": { "alias": "label"; "required": false; }; "recordLicences": { "alias": "recordLicences"; "required": false; }; }, { "recordLicencesChange": "recordLicencesChange"; }, never, never, true, never>;
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=form-field-license.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-license.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEZ,MAAM,EAEP,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,oEAAoE,CAAA;;AAI/F,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,qBAQa,yBAA0B,YAAW,MAAM;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,
|
|
1
|
+
{"version":3,"file":"form-field-license.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEZ,MAAM,EAEP,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,oEAAoE,CAAA;;AAI/F,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,qBAQa,yBAA0B,YAAW,MAAM;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,UAAU,EAAE,CAAK;IAChC,oBAAoB,EAAE,YAAY,CAAC,UAAU,EAAE,CAAC,CACtC;IAEpB,OAAO,EAAE,OAAO,EAAE,CAGf;IAEH,eAAe,EAAE,MAAM,CAAA;IAEvB,QAAQ,IAAI,IAAI;IAuBhB,sBAAsB,CAAC,YAAY,EAAE,MAAM;yCApChC,yBAAyB;2CAAzB,yBAAyB;CA6CrC"}
|
|
@@ -5,7 +5,6 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
5
5
|
import { PlatformServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/platform.service.interface';
|
|
6
6
|
import { Subscription } from 'rxjs';
|
|
7
7
|
import { MatDialog } from '@angular/material/dialog';
|
|
8
|
-
import { EditorFacade } from '../../../../+state/editor.facade';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class FormFieldOnlineLinkResourcesComponent {
|
|
11
10
|
private notificationsService;
|
|
@@ -13,7 +12,6 @@ export declare class FormFieldOnlineLinkResourcesComponent {
|
|
|
13
12
|
private platformService;
|
|
14
13
|
private cd;
|
|
15
14
|
private dialog;
|
|
16
|
-
private editorFacade;
|
|
17
15
|
metadataUuid: string;
|
|
18
16
|
set value(onlineResources: Array<OnlineResource>);
|
|
19
17
|
valueChange: EventEmitter<Array<OnlineResource>>;
|
|
@@ -23,8 +21,7 @@ export declare class FormFieldOnlineLinkResourcesComponent {
|
|
|
23
21
|
uploadProgress?: number;
|
|
24
22
|
uploadSubscription: Subscription;
|
|
25
23
|
protected MAX_UPLOAD_SIZE_MB: number;
|
|
26
|
-
|
|
27
|
-
constructor(notificationsService: NotificationsService, translateService: TranslateService, platformService: PlatformServiceInterface, cd: ChangeDetectorRef, dialog: MatDialog, editorFacade: EditorFacade);
|
|
24
|
+
constructor(notificationsService: NotificationsService, translateService: TranslateService, platformService: PlatformServiceInterface, cd: ChangeDetectorRef, dialog: MatDialog);
|
|
28
25
|
handleFileChange(file: File): void;
|
|
29
26
|
handleUploadCancel(): void;
|
|
30
27
|
handleUrlChange(url: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-online-link-resources.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAEjB,YAAY,EAGZ,WAAW,EAEZ,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,kBAAkB,EAClB,cAAc,EACf,MAAM,oEAAoE,CAAA;AAa3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAA;AAChG,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kFAAkF,CAAA;AAC3H,OAAO,EAAO,YAAY,EAAE,MAAM,MAAM,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA
|
|
1
|
+
{"version":3,"file":"form-field-online-link-resources.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAEjB,YAAY,EAGZ,WAAW,EAEZ,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,kBAAkB,EAClB,cAAc,EACf,MAAM,oEAAoE,CAAA;AAa3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAA;AAChG,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kFAAkF,CAAA;AAC3H,OAAO,EAAO,YAAY,EAAE,MAAM,MAAM,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;;AAGpD,qBAiBa,qCAAqC;IAqB9C,OAAO,CAAC,oBAAoB;IAC5B,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,MAAM;IAxBP,YAAY,EAAE,MAAM,CAAA;IAC7B,IAAa,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC,EAKxD;IACS,WAAW,EAAE,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CACtC;IAES,cAAc,EAAE,WAAW,CAAC,cAAc,CAAC,CAAA;IAExE,OAAO,CAAC,YAAY,CAAuB;IAC3C,aAAa,EAAE,kBAAkB,EAAE,CAAK;IACxC,cAAc,CAAC,EAAE,MAAM,CAAY;IACnC,kBAAkB,EAAE,YAAY,CAAO;IAEvC,SAAS,CAAC,kBAAkB,SAAqB;gBAGvC,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,wBAAwB,EACzC,EAAE,EAAE,iBAAiB,EACrB,MAAM,EAAE,SAAS;IAG3B,gBAAgB,CAAC,IAAI,EAAE,IAAI;IAwB3B,kBAAkB;IAOlB,eAAe,CAAC,GAAG,EAAE,MAAM;IAc3B,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE;IAStC,oBAAoB,CAAC,QAAQ,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM;IAIhE,OAAO,CAAC,WAAW;IAqBnB,OAAO,CAAC,cAAc;yCA3GX,qCAAqC;2CAArC,qCAAqC;CA2IjD"}
|
|
@@ -6,7 +6,6 @@ import { NotificationsService } from '../../../../../../../../../libs/feature/no
|
|
|
6
6
|
import { SwitchToggleOption } from '../../../../../../../../../libs/ui/inputs/src';
|
|
7
7
|
import { TranslateService } from '@ngx-translate/core';
|
|
8
8
|
import { Subscription } from 'rxjs';
|
|
9
|
-
import { EditorFacade } from '../../../../+state/editor.facade';
|
|
10
9
|
import * as i0 from "@angular/core";
|
|
11
10
|
type OnlineNotLinkResource = DatasetDownloadDistribution | DatasetServiceDistribution | ServiceEndpoint;
|
|
12
11
|
export declare class FormFieldOnlineResourcesComponent {
|
|
@@ -15,7 +14,6 @@ export declare class FormFieldOnlineResourcesComponent {
|
|
|
15
14
|
private platformService;
|
|
16
15
|
private cd;
|
|
17
16
|
private dialog;
|
|
18
|
-
private editorFacade;
|
|
19
17
|
metadataUuid: string;
|
|
20
18
|
set value(onlineResources: Array<OnlineResource>);
|
|
21
19
|
valueChange: EventEmitter<Array<OnlineResource>>;
|
|
@@ -28,8 +26,7 @@ export declare class FormFieldOnlineResourcesComponent {
|
|
|
28
26
|
uploadSubscription: Subscription;
|
|
29
27
|
newService: Omit<DatasetServiceDistribution, "url">;
|
|
30
28
|
protected MAX_UPLOAD_SIZE_MB: number;
|
|
31
|
-
|
|
32
|
-
constructor(notificationsService: NotificationsService, translateService: TranslateService, platformService: PlatformServiceInterface, cd: ChangeDetectorRef, dialog: MatDialog, editorFacade: EditorFacade);
|
|
29
|
+
constructor(notificationsService: NotificationsService, translateService: TranslateService, platformService: PlatformServiceInterface, cd: ChangeDetectorRef, dialog: MatDialog);
|
|
33
30
|
onSelectedTypeChange(selectedType: unknown): void;
|
|
34
31
|
handleFileChange(file: File): void;
|
|
35
32
|
handleUploadCancel(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-online-resources.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAEjB,YAAY,EAGZ,WAAW,EAEZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEpD,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,cAAc,EACd,eAAe,EAChB,MAAM,oEAAoE,CAAA;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,kFAAkF,CAAA;AAC3H,OAAO,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAA;AAChG,OAAO,EAGL,kBAAkB,EAInB,MAAM,+CAA+C,CAAA;AAKtD,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"form-field-online-resources.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAEjB,YAAY,EAGZ,WAAW,EAEZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEpD,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,cAAc,EACd,eAAe,EAChB,MAAM,oEAAoE,CAAA;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,kFAAkF,CAAA;AAC3H,OAAO,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAA;AAChG,OAAO,EAGL,kBAAkB,EAInB,MAAM,+CAA+C,CAAA;AAKtD,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;;AAKnC,KAAK,qBAAqB,GACtB,2BAA2B,GAC3B,0BAA0B,GAC1B,eAAe,CAAA;AAEnB,qBAmBa,iCAAiC;IAwC1C,OAAO,CAAC,oBAAoB;IAC5B,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,MAAM;IA3CP,YAAY,EAAE,MAAM,CAAA;IAC7B,IAAa,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC,EAKxD;IACS,WAAW,EAAE,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CACtC;IAES,cAAc,EAAE,WAAW,CAAC,cAAc,CAAC,CAAA;IAExE,WAAW,EAAE,kBAAkB,EAAE,CAWhC;IACD,YAAY,EAAE,UAAU,GAAG,SAAS,CAAa;IAEjD,OAAO,CAAC,YAAY,CAAuB;IAC3C,gBAAgB,EAAE,qBAAqB,EAAE,CAAK;IAC9C,cAAc,MAAY;IAC1B,kBAAkB,EAAE,YAAY,CAAO;IACvC,UAAU,EAIL,IAAI,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAA;IAE5C,SAAS,CAAC,kBAAkB,SAAqB;gBAGvC,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,wBAAwB,EACzC,EAAE,EAAE,iBAAiB,EACrB,MAAM,EAAE,SAAS;IAG3B,oBAAoB,CAAC,YAAY,EAAE,OAAO;IAI1C,gBAAgB,CAAC,IAAI,EAAE,IAAI;IAyB3B,kBAAkB;IAOlB,uBAAuB,CAAC,GAAG,EAAE,MAAM;IAcnC,sBAAsB,CAAC,GAAG,EAAE,MAAM;IAUlC,sBAAsB,CAAC,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE;IAUnE,mBAAmB,CACjB,UAAU,EAAE,0BAA0B,EACtC,UAAU,EAAE,0BAA0B;IAOxC,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE;IAStC,oBAAoB,CAAC,QAAQ,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM;IAInE,OAAO,CAAC,WAAW;IAoBnB,OAAO,CAAC,cAAc;yCA/JX,iCAAiC;2CAAjC,iCAAiC;CA+L7C"}
|
|
@@ -4,23 +4,20 @@ import { PlatformServiceInterface } from '../../../../../../../../../libs/common
|
|
|
4
4
|
import { NotificationsService } from '../../../../../../../../../libs/feature/notifications/src';
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
6
|
import { Subscription } from 'rxjs';
|
|
7
|
-
import { EditorFacade } from '../../../../+state/editor.facade';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class FormFieldOverviewsComponent {
|
|
10
9
|
private platformService;
|
|
11
10
|
private notificationsService;
|
|
12
11
|
private translateService;
|
|
13
12
|
private cd;
|
|
14
|
-
private editorFacade;
|
|
15
13
|
metadataUuid: string;
|
|
16
14
|
value: Array<GraphicOverview>;
|
|
17
15
|
valueChange: EventEmitter<Array<GraphicOverview>>;
|
|
18
|
-
disabled$: import("rxjs").Observable<boolean>;
|
|
19
16
|
uploadProgress: any;
|
|
20
17
|
uploadSubscription: Subscription;
|
|
21
18
|
protected MAX_UPLOAD_SIZE_MB: number;
|
|
22
19
|
get firstOverview(): GraphicOverview;
|
|
23
|
-
constructor(platformService: PlatformServiceInterface, notificationsService: NotificationsService, translateService: TranslateService, cd: ChangeDetectorRef
|
|
20
|
+
constructor(platformService: PlatformServiceInterface, notificationsService: NotificationsService, translateService: TranslateService, cd: ChangeDetectorRef);
|
|
24
21
|
handleFileChange(file: File): void;
|
|
25
22
|
handleUploadCancel(): void;
|
|
26
23
|
handleUrlChange(url: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-overviews.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAEjB,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAA;AAEpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,kFAAkF,CAAA;AAC3H,OAAO,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAA;AAChG,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"form-field-overviews.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAEjB,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAA;AAEpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,kFAAkF,CAAA;AAC3H,OAAO,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAA;AAChG,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;;AAGnC,qBAQa,2BAA2B;IAqBpC,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,oBAAoB;IAC5B,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,EAAE;IAvBH,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,CAAA;IAC5B,WAAW,EAAE,YAAY,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CACvC;IAEpB,cAAc,MAAY;IAC1B,kBAAkB,EAAE,YAAY,CAAO;IAEvC,SAAS,CAAC,kBAAkB,SAAqB;IAEjD,IAAI,aAAa,oBAOhB;gBAGS,eAAe,EAAE,wBAAwB,EACzC,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,EAAE,EAAE,iBAAiB;IAG/B,gBAAgB,CAAC,IAAI,EAAE,IAAI;IAsB3B,kBAAkB;IAOlB,eAAe,CAAC,GAAG,EAAE,MAAM;IAY3B,mBAAmB,CAAC,UAAU,EAAE,MAAM;IAOtC,YAAY;IAIZ,YAAY,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IAI7C,OAAO,CAAC,WAAW,CAmBlB;yCAtGU,2BAA2B;2CAA3B,2BAA2B;CAuGvC"}
|
|
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class EditorService {
|
|
7
7
|
private recordsRepository;
|
|
8
8
|
constructor(recordsRepository: RecordsRepositoryInterface);
|
|
9
|
-
saveRecord(record: CatalogRecord, recordSource: string, fieldsConfig: EditorConfig
|
|
9
|
+
saveRecord(record: CatalogRecord, recordSource: string, fieldsConfig: EditorConfig): Observable<[CatalogRecord, string]>;
|
|
10
10
|
saveRecordAsDraft(record: CatalogRecord, recordSource: string): Observable<void>;
|
|
11
11
|
undoRecordDraft(record: CatalogRecord): Observable<[CatalogRecord, string, boolean]>;
|
|
12
12
|
hasRecordChangedSinceDraft(localRecord: CatalogRecord): Observable<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.service.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/services/editor.service.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"editor.service.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/services/editor.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,UAAU,EAAiB,MAAM,MAAM,CAAA;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAEzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;;AAEjI,qBAGa,aAAa;IACZ,OAAO,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,0BAA0B;IAGjE,UAAU,CACR,MAAM,EAAE,aAAa,EACrB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,YAAY,GACzB,UAAU,CAAC,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAwCtC,iBAAiB,CACf,MAAM,EAAE,aAAa,EACrB,YAAY,EAAE,MAAM,GACnB,UAAU,CAAC,IAAI,CAAC;IAOnB,eAAe,CACb,MAAM,EAAE,aAAa,GACpB,UAAU,CAAC,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAK/C,0BAA0B,CACxB,WAAW,EAAE,aAAa,GACzB,UAAU,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,IAAI,CAAA;KAAE,CAAC;yCAnEhC,aAAa;6CAAb,aAAa;CAsEzB"}
|
|
@@ -23,7 +23,6 @@ export declare class ResultsTableContainerComponent implements OnDestroy {
|
|
|
23
23
|
selectedRecords$: import("rxjs").BehaviorSubject<string[]>;
|
|
24
24
|
sortBy$: import("rxjs").Observable<import("../../../../../common/domain/src/lib/model/search").SortByField>;
|
|
25
25
|
hasDraft: (record: CatalogRecord) => boolean;
|
|
26
|
-
isUnsavedDraft: (record: CatalogRecord) => boolean;
|
|
27
26
|
constructor(searchFacade: SearchFacade, searchService: SearchService, selectionService: SelectionService, recordsRepository: RecordsRepositoryInterface, notificationsService: NotificationsService, translateService: TranslateService);
|
|
28
27
|
handleRecordClick(item: unknown): void;
|
|
29
28
|
handleDuplicateRecord(item: unknown): void;
|
package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"results-table-container.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/search/src/lib/results-table/results-table-container.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAEZ,SAAS,EAEV,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;AAGjI,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAA;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;;AAEtD,qBAOa,8BAA+B,YAAW,SAAS;
|
|
1
|
+
{"version":3,"file":"results-table-container.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/search/src/lib/results-table/results-table-container.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAEZ,SAAS,EAEV,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;AAGjI,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAA;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;;AAEtD,qBAOa,8BAA+B,YAAW,SAAS;IAgB5D,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,oBAAoB;IAC5B,OAAO,CAAC,gBAAgB;IApBjB,YAAY,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAa;IAC7D,SAAS,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAa;IAEzD,WAAW,8BAAoC;IAC/C,eAAe,8BAAoC;IAE7D,YAAY,eAAqB;IAEjC,gBAAgB,2CAAoD;IACpE,OAAO,qGAA4B;IAEnC,QAAQ,WAAY,aAAa,KAAG,OAAO,CACqB;gBAGpD,YAAY,EAAE,YAAY,EAC5B,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,EAAE,0BAA0B,EAC7C,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB;IAG5C,iBAAiB,CAAC,IAAI,EAAE,OAAO;IAI/B,qBAAqB,CAAC,IAAI,EAAE,OAAO;IAI7B,kBAAkB,CAAC,IAAI,EAAE,OAAO;IA0CtC,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM;IAIrD,2BAA2B,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,OAAO;IAQvE,WAAW;yCAtFA,8BAA8B;2CAA9B,8BAA8B;CAyF1C"}
|
|
@@ -4,10 +4,10 @@ export declare class FileInputComponent {
|
|
|
4
4
|
private cd;
|
|
5
5
|
maxSizeMB: number;
|
|
6
6
|
uploadProgress?: number;
|
|
7
|
-
disabled?: boolean;
|
|
8
7
|
fileChange: EventEmitter<File>;
|
|
9
8
|
urlChange: EventEmitter<string>;
|
|
10
9
|
uploadCancel: EventEmitter<void>;
|
|
10
|
+
disabled?: boolean;
|
|
11
11
|
dragFilesOver: boolean;
|
|
12
12
|
get isUploadInProgress(): boolean;
|
|
13
13
|
constructor(cd: ChangeDetectorRef);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/file-input/file-input.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAEjB,YAAY,EAGb,MAAM,eAAe,CAAA;;AActB,qBAyBa,kBAAkB;IAcjB,OAAO,CAAC,EAAE;IAbb,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"file-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/file-input/file-input.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAEjB,YAAY,EAGb,MAAM,eAAe,CAAA;;AActB,qBAyBa,kBAAkB;IAcjB,OAAO,CAAC,EAAE;IAbb,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,YAAY,CAAC,IAAI,CAAC,CAAqB;IACnD,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,CAAqB;IACpD,YAAY,EAAE,YAAY,CAAC,IAAI,CAAC,CAAqB;IACtD,QAAQ,CAAC,UAAQ;IAE1B,aAAa,UAAQ;IAErB,IAAI,kBAAkB,YAErB;gBAEmB,EAAE,EAAE,iBAAiB;IAEzC,cAAc;IAOd,gBAAgB;IAOhB,mBAAmB,CAAC,aAAa,EAAE,OAAO;IAK1C,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE;IAM7B,eAAe,CAAC,KAAK,EAAE,KAAK;IAI5B,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKlC,wBAAwB,CAAC,KAAK,EAAE,KAAK;IAOrC,YAAY;yCAzDD,kBAAkB;2CAAlB,kBAAkB;CA4D9B"}
|
|
@@ -4,12 +4,13 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class InteractiveTableComponent {
|
|
5
5
|
columns: QueryList<InteractiveTableColumnComponent>;
|
|
6
6
|
items: unknown[];
|
|
7
|
+
isDraftPage: boolean;
|
|
7
8
|
itemClick: EventEmitter<unknown>;
|
|
8
9
|
get gridStyle(): {
|
|
9
10
|
'grid-template-columns': string;
|
|
10
11
|
};
|
|
11
12
|
handleRowClick(item: unknown): void;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<InteractiveTableComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InteractiveTableComponent, "gn-ui-interactive-table", never, { "items": { "alias": "items"; "required": false; }; }, { "itemClick": "itemClick"; }, ["columns"], never, true, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InteractiveTableComponent, "gn-ui-interactive-table", never, { "items": { "alias": "items"; "required": false; }; "isDraftPage": { "alias": "isDraftPage"; "required": false; }; }, { "itemClick": "itemClick"; }, ["columns"], never, true, never>;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=interactive-table.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactive-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EAGZ,SAAS,EACV,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAA;;
|
|
1
|
+
{"version":3,"file":"interactive-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EAGZ,SAAS,EACV,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAA;;AAM/G,qBASa,yBAAyB;IAEpC,OAAO,EAAE,SAAS,CAAC,+BAA+B,CAAC,CAAA;IAE1C,KAAK,EAAE,OAAO,EAAE,CAAK;IACrB,WAAW,UAAQ;IAClB,SAAS,wBAA8B;IAEjD,IAAI,SAAS;;MAYZ;IAED,cAAc,CAAC,IAAI,EAAE,OAAO;yCAtBjB,yBAAyB;2CAAzB,yBAAyB;CAyBrC"}
|
|
@@ -13,8 +13,8 @@ export declare class ResultsTableComponent {
|
|
|
13
13
|
sortOrder: SortByField;
|
|
14
14
|
hasDraft: (record: CatalogRecord) => boolean;
|
|
15
15
|
canDuplicate: (record: CatalogRecord) => boolean;
|
|
16
|
-
isUnsavedDraft: (record: CatalogRecord) => boolean;
|
|
17
16
|
canDelete: (record: CatalogRecord) => boolean;
|
|
17
|
+
isDraftPage: boolean;
|
|
18
18
|
sortByChange: EventEmitter<[string, "desc" | "asc"]>;
|
|
19
19
|
recordClick: EventEmitter<CatalogRecord>;
|
|
20
20
|
duplicateRecord: EventEmitter<CatalogRecord>;
|
|
@@ -30,7 +30,7 @@ export declare class ResultsTableComponent {
|
|
|
30
30
|
getRecordFormats(record: CatalogRecord): FileFormat[];
|
|
31
31
|
formatUserInfo(userInfo: string | unknown): string;
|
|
32
32
|
getBadgeColor(format: FileFormat): string;
|
|
33
|
-
handleRecordClick(item:
|
|
33
|
+
handleRecordClick(item: CatalogRecord): void;
|
|
34
34
|
handleDuplicate(item: unknown): void;
|
|
35
35
|
handleDelete(item: unknown): void;
|
|
36
36
|
setSortBy(col: string, order: 'asc' | 'desc'): void;
|
|
@@ -38,6 +38,6 @@ export declare class ResultsTableComponent {
|
|
|
38
38
|
isChecked(record: CatalogRecord): boolean;
|
|
39
39
|
handleRecordSelectedChange(selected: boolean, record: CatalogRecord): void;
|
|
40
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResultsTableComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ResultsTableComponent, "gn-ui-results-table", never, { "records": { "alias": "records"; "required": false; }; "selectedRecordsIdentifiers": { "alias": "selectedRecordsIdentifiers"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "hasDraft": { "alias": "hasDraft"; "required": false; }; "canDuplicate": { "alias": "canDuplicate"; "required": false; }; "
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResultsTableComponent, "gn-ui-results-table", never, { "records": { "alias": "records"; "required": false; }; "selectedRecordsIdentifiers": { "alias": "selectedRecordsIdentifiers"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "hasDraft": { "alias": "hasDraft"; "required": false; }; "canDuplicate": { "alias": "canDuplicate"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; "isDraftPage": { "alias": "isDraftPage"; "required": false; }; }, { "sortByChange": "sortByChange"; "recordClick": "recordClick"; "duplicateRecord": "duplicateRecord"; "deleteRecord": "deleteRecord"; "recordsSelectedChange": "recordsSelectedChange"; }, never, never, true, never>;
|
|
42
42
|
}
|
|
43
43
|
//# sourceMappingURL=results-table.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"results-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/search/src/lib/results-table/results-table.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EAEjB,UAAU,EACV,YAAY,EAGZ,SAAS,EAET,gBAAgB,EACjB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAEL,WAAW,EACZ,MAAM,2DAA2D,CAAA;AAMlE,OAAO,EACL,UAAU,EAKX,MAAM,wCAAwC,CAAA;AAK/C,OAAO,EAGL,OAAO,EAER,MAAM,sBAAsB,CAAA;;AAI7B,
|
|
1
|
+
{"version":3,"file":"results-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/search/src/lib/results-table/results-table.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EAEjB,UAAU,EACV,YAAY,EAGZ,SAAS,EAET,gBAAgB,EACjB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAEL,WAAW,EACZ,MAAM,2DAA2D,CAAA;AAMlE,OAAO,EACL,UAAU,EAKX,MAAM,wCAAwC,CAAA;AAK/C,OAAO,EAGL,OAAO,EAER,MAAM,sBAAsB,CAAA;;AAI7B,qBAkBa,qBAAqB;IAyB9B,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,GAAG;IA1BJ,OAAO,EAAE,aAAa,EAAE,CAAK;IAC7B,0BAA0B,EAAE,MAAM,EAAE,CAAK;IACzC,SAAS,EAAE,WAAW,CAAO;IAC7B,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAc;IAC1D,YAAY,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAa;IAC7D,SAAS,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAa;IAC1D,WAAW,UAAQ;IAGlB,YAAY,yCAA+C;IAC3D,WAAW,8BAAoC;IAC/C,eAAe,8BAAoC;IACnD,YAAY,8BAAoC;IAChD,qBAAqB,2CAE5B;IAGH,iBAAiB,EAAG,SAAS,CAAC,UAAU,CAAC,CAAA;IACzC,OAAO,CAAC,UAAU,CAAa;IAE/B,gBAAgB,UAAQ;gBAGd,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,EAClC,GAAG,EAAE,iBAAiB;IAGhC,cAAc,CAAC,IAAI,KAAA,EAAE,QAAQ,KAAA;IAyC7B,eAAe;IAQf,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAShC,gBAAgB,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,EAAE;IAerD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM;IAIlD,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;IAIzC,iBAAiB,CAAC,IAAI,EAAE,aAAa;IAKrC,eAAe,CAAC,IAAI,EAAE,OAAO;IAI7B,YAAY,CAAC,IAAI,EAAE,OAAO;IAK1B,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM;IAI5C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI;IAe9C,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO;IAIzC,0BAA0B,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa;yCApJxD,qBAAqB;2CAArB,qBAAqB;CAuJjC"}
|
package/package.json
CHANGED
|
@@ -18,7 +18,8 @@ export class Gn4Converter extends BaseConverter<Gn4Record> {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
readRecord(document: Gn4Record): Promise<CatalogRecord> {
|
|
21
|
-
const { _source } = document
|
|
21
|
+
const { _source, ...rootDocument } = document
|
|
22
|
+
const allKeys = { ..._source, ...rootDocument }
|
|
22
23
|
const emptyRecord: Partial<CatalogRecord> = {
|
|
23
24
|
kind: 'dataset',
|
|
24
25
|
status: null,
|
|
@@ -40,9 +41,9 @@ export class Gn4Converter extends BaseConverter<Gn4Record> {
|
|
|
40
41
|
defaultLanguage: null,
|
|
41
42
|
otherLanguages: [],
|
|
42
43
|
}
|
|
43
|
-
const record: CatalogRecord = Object.keys(
|
|
44
|
+
const record: CatalogRecord = Object.keys(allKeys).reduce(
|
|
44
45
|
(prev, fieldName) =>
|
|
45
|
-
this.fieldMapper.getMappingFn(fieldName)(prev,
|
|
46
|
+
this.fieldMapper.getMappingFn(fieldName)(prev, allKeys),
|
|
46
47
|
emptyRecord
|
|
47
48
|
)
|
|
48
49
|
return lastValueFrom(
|
|
@@ -280,7 +280,14 @@ export class Gn4FieldMapper {
|
|
|
280
280
|
isPublishedToAll: (output, source) =>
|
|
281
281
|
this.addExtra(
|
|
282
282
|
{
|
|
283
|
-
isPublishedToAll: selectField(source, 'isPublishedToAll')
|
|
283
|
+
isPublishedToAll: selectField(source, 'isPublishedToAll'),
|
|
284
|
+
},
|
|
285
|
+
output
|
|
286
|
+
),
|
|
287
|
+
edit: (output, source) =>
|
|
288
|
+
this.addExtra(
|
|
289
|
+
{
|
|
290
|
+
edit: selectField(source, 'edit'),
|
|
284
291
|
},
|
|
285
292
|
output
|
|
286
293
|
),
|
|
@@ -201,6 +201,22 @@ export class Gn4Repository implements RecordsRepositoryInterface {
|
|
|
201
201
|
)
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
+
getRecordPublicationStatus(uniqueIdentifier: string): Observable<boolean> {
|
|
205
|
+
return uniqueIdentifier
|
|
206
|
+
? this.getRecord(uniqueIdentifier).pipe(
|
|
207
|
+
map((record) => record.extras['isPublishedToAll'] as boolean)
|
|
208
|
+
)
|
|
209
|
+
: of(true)
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
canEditRecord(uniqueIdentifier: string): Observable<boolean> {
|
|
213
|
+
return this.getRecord(uniqueIdentifier).pipe(
|
|
214
|
+
map((record) => {
|
|
215
|
+
return record.extras['edit'] as boolean
|
|
216
|
+
})
|
|
217
|
+
)
|
|
218
|
+
}
|
|
219
|
+
|
|
204
220
|
openRecordForEdition(
|
|
205
221
|
uniqueIdentifier: string
|
|
206
222
|
): Observable<[CatalogRecord, string, boolean] | null> {
|
|
@@ -223,31 +239,45 @@ export class Gn4Repository implements RecordsRepositoryInterface {
|
|
|
223
239
|
|
|
224
240
|
openRecordForDuplication(
|
|
225
241
|
uniqueIdentifier: string
|
|
226
|
-
): Observable<[CatalogRecord, string,
|
|
227
|
-
return this.
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
242
|
+
): Observable<[CatalogRecord, string, true] | null> {
|
|
243
|
+
return this.gn4RecordsApi
|
|
244
|
+
.create(
|
|
245
|
+
uniqueIdentifier,
|
|
246
|
+
'2',
|
|
247
|
+
'METADATA',
|
|
248
|
+
'',
|
|
249
|
+
false,
|
|
250
|
+
undefined,
|
|
251
|
+
true,
|
|
252
|
+
false,
|
|
253
|
+
undefined,
|
|
254
|
+
'body',
|
|
255
|
+
false,
|
|
256
|
+
{
|
|
257
|
+
httpHeaderAccept: 'application/json',
|
|
258
|
+
httpContentTypeSelected: 'application/json;charset=UTF-8',
|
|
259
|
+
}
|
|
260
|
+
)
|
|
261
|
+
.pipe(
|
|
262
|
+
switchMap((uniqueIdentifier) => {
|
|
263
|
+
return this.getRecordAsXml(uniqueIdentifier)
|
|
264
|
+
}),
|
|
265
|
+
switchMap((xml) => {
|
|
266
|
+
return from(
|
|
267
|
+
findConverterForDocument(xml)
|
|
268
|
+
.readRecord(xml)
|
|
269
|
+
.then((record) => {
|
|
270
|
+
return [record, xml, true] as [CatalogRecord, string, true]
|
|
271
|
+
})
|
|
272
|
+
)
|
|
273
|
+
})
|
|
274
|
+
)
|
|
246
275
|
}
|
|
247
276
|
|
|
248
277
|
saveRecord(
|
|
249
278
|
record: CatalogRecord,
|
|
250
|
-
referenceRecordSource?: string
|
|
279
|
+
referenceRecordSource?: string,
|
|
280
|
+
publishToAll = true
|
|
251
281
|
): Observable<string> {
|
|
252
282
|
return this.platformService.getApiVersion().pipe(
|
|
253
283
|
map((version) => {
|
|
@@ -262,7 +292,7 @@ export class Gn4Repository implements RecordsRepositoryInterface {
|
|
|
262
292
|
undefined,
|
|
263
293
|
undefined,
|
|
264
294
|
undefined,
|
|
265
|
-
|
|
295
|
+
publishToAll,
|
|
266
296
|
undefined,
|
|
267
297
|
'OVERWRITE',
|
|
268
298
|
undefined,
|
|
@@ -337,10 +367,6 @@ export class Gn4Repository implements RecordsRepositoryInterface {
|
|
|
337
367
|
return this.getRecordFromLocalStorage(uniqueIdentifier) !== null
|
|
338
368
|
}
|
|
339
369
|
|
|
340
|
-
isRecordNotYetSaved(uniqueIdentifier: string): boolean {
|
|
341
|
-
return uniqueIdentifier.startsWith(TEMPORARY_ID_PREFIX)
|
|
342
|
-
}
|
|
343
|
-
|
|
344
370
|
// generated by copilot
|
|
345
371
|
getAllDrafts(): Observable<CatalogRecord[]> {
|
|
346
372
|
const items = { ...window.localStorage }
|
|
@@ -368,7 +394,7 @@ export class Gn4Repository implements RecordsRepositoryInterface {
|
|
|
368
394
|
|
|
369
395
|
hasRecordChangedSinceDraft(localRecord: CatalogRecord) {
|
|
370
396
|
return of({
|
|
371
|
-
isUnsaved:
|
|
397
|
+
isUnsaved: !localRecord.uniqueIdentifier,
|
|
372
398
|
hasDraft: this.recordHasDraft(localRecord.uniqueIdentifier),
|
|
373
399
|
}).pipe(
|
|
374
400
|
switchMap(({ isUnsaved, hasDraft }) => {
|
|
@@ -17,7 +17,7 @@ export abstract class RecordsRepositoryInterface {
|
|
|
17
17
|
similarTo: CatalogRecord
|
|
18
18
|
): Observable<CatalogRecord[]>
|
|
19
19
|
abstract fuzzySearch(query: string): Observable<SearchResults>
|
|
20
|
-
|
|
20
|
+
abstract canEditRecord(uniqueIdentifier: string): Observable<boolean>
|
|
21
21
|
/**
|
|
22
22
|
* This emits once:
|
|
23
23
|
* - record object; if a draft exists, this will return it
|
|
@@ -40,7 +40,7 @@ export abstract class RecordsRepositoryInterface {
|
|
|
40
40
|
*/
|
|
41
41
|
abstract openRecordForDuplication(
|
|
42
42
|
uniqueIdentifier: string
|
|
43
|
-
): Observable<[CatalogRecord, string,
|
|
43
|
+
): Observable<[CatalogRecord, string, true] | null>
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* @param record
|
|
@@ -49,7 +49,8 @@ export abstract class RecordsRepositoryInterface {
|
|
|
49
49
|
*/
|
|
50
50
|
abstract saveRecord(
|
|
51
51
|
record: CatalogRecord,
|
|
52
|
-
referenceRecordSource?: string
|
|
52
|
+
referenceRecordSource?: string,
|
|
53
|
+
publishToAll?: boolean
|
|
53
54
|
): Observable<string>
|
|
54
55
|
|
|
55
56
|
/**
|
|
@@ -82,7 +83,6 @@ export abstract class RecordsRepositoryInterface {
|
|
|
82
83
|
|
|
83
84
|
abstract clearRecordDraft(uniqueIdentifier: string): void
|
|
84
85
|
abstract recordHasDraft(uniqueIdentifier: string): boolean
|
|
85
|
-
abstract isRecordNotYetSaved(uniqueIdentifier: string): boolean
|
|
86
86
|
|
|
87
87
|
/** will return all pending drafts, both published and not published */
|
|
88
88
|
abstract getAllDrafts(): Observable<CatalogRecord[]>
|
|
@@ -91,4 +91,5 @@ export abstract class RecordsRepositoryInterface {
|
|
|
91
91
|
abstract hasRecordChangedSinceDraft(
|
|
92
92
|
localRecord: CatalogRecord
|
|
93
93
|
): Observable<{ user: string; date: Date }>
|
|
94
|
+
abstract getRecordPublicationStatus(uuid: string): Observable<boolean>
|
|
94
95
|
}
|