geonetwork-ui 2.5.0-dev.ed99f2ef4 → 2.5.0-dev.f8f8616a0
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/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +7 -23
- package/esm2022/libs/feature/editor/src/lib/models/wizard-field.type.mjs +3 -4
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +24 -5
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +8 -6
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +6 -3
- package/esm2022/libs/ui/elements/src/lib/application-banner/application-banner.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/index.mjs +1 -2
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +37 -2
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +1 -6
- package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +2 -7
- package/esm2022/libs/ui/widgets/src/index.mjs +1 -2
- package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +5 -6
- package/esm2022/libs/util/data-fetcher/src/lib/utils.mjs +5 -3
- package/esm2022/translations/de.json +1 -72
- package/esm2022/translations/en.json +1 -64
- package/esm2022/translations/es.json +0 -71
- package/esm2022/translations/fr.json +1 -72
- package/esm2022/translations/it.json +1 -72
- package/esm2022/translations/nl.json +0 -71
- package/esm2022/translations/pt.json +0 -71
- package/fesm2022/geonetwork-ui.mjs +96 -669
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -0
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts +1 -3
- package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts +2 -3
- package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +3 -2
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +2 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +0 -1
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +16 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +27 -28
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +2 -3
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -1
- package/libs/ui/widgets/src/index.d.ts +0 -1
- package/libs/ui/widgets/src/index.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +8 -9
- package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +0 -13
- package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.ts +0 -20
- package/src/libs/feature/editor/src/lib/models/wizard-field.type.ts +0 -1
- package/src/libs/feature/record/src/lib/data-view/data-view.component.html +24 -13
- package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +23 -4
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +71 -60
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +4 -2
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -0
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +1 -0
- package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.html +2 -2
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts +2 -2
- package/src/libs/ui/inputs/src/index.ts +0 -1
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +42 -0
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +1 -7
- package/src/libs/ui/widgets/src/index.ts +0 -1
- package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +2 -3
- package/src/libs/util/data-fetcher/src/lib/utils.ts +4 -2
- package/translations/de.json +1 -72
- package/translations/en.json +1 -64
- package/translations/es.json +0 -71
- package/translations/fr.json +1 -72
- package/translations/it.json +1 -72
- package/translations/nl.json +0 -71
- package/translations/pt.json +0 -71
- package/translations/sk.json +0 -71
- package/esm2022/libs/ui/inputs/src/lib/chips-input/chips-input.component.mjs +0 -78
- package/esm2022/libs/ui/widgets/src/lib/step-bar/step-bar.component.mjs +0 -55
- package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts +0 -33
- package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts.map +0 -1
- package/libs/ui/widgets/src/lib/step-bar/step-bar.component.d.ts +0 -21
- package/libs/ui/widgets/src/lib/step-bar/step-bar.component.d.ts.map +0 -1
- package/src/libs/data-access/datafeeder/src/index.ts +0 -1
- package/src/libs/data-access/datafeeder/src/openapi/api/api.ts +0 -11
- package/src/libs/data-access/datafeeder/src/openapi/api/config.api.service.ts +0 -168
- package/src/libs/data-access/datafeeder/src/openapi/api/dataPublishing.api.service.ts +0 -270
- package/src/libs/data-access/datafeeder/src/openapi/api/fileUpload.api.service.ts +0 -734
- package/src/libs/data-access/datafeeder/src/openapi/api.module.ts +0 -46
- package/src/libs/data-access/datafeeder/src/openapi/configuration.ts +0 -125
- package/src/libs/data-access/datafeeder/src/openapi/encoder.ts +0 -20
- package/src/libs/data-access/datafeeder/src/openapi/index.ts +0 -5
- package/src/libs/data-access/datafeeder/src/openapi/model/analysisStatusEnum.api.model.ts +0 -24
- package/src/libs/data-access/datafeeder/src/openapi/model/boundingBox.api.model.ts +0 -20
- package/src/libs/data-access/datafeeder/src/openapi/model/cRS.api.model.ts +0 -25
- package/src/libs/data-access/datafeeder/src/openapi/model/datasetMetadata.api.model.ts +0 -45
- package/src/libs/data-access/datafeeder/src/openapi/model/datasetPublishRequest.api.model.ts +0 -39
- package/src/libs/data-access/datafeeder/src/openapi/model/datasetPublishingStatus.api.model.ts +0 -50
- package/src/libs/data-access/datafeeder/src/openapi/model/datasetUploadStatus.api.model.ts +0 -39
- package/src/libs/data-access/datafeeder/src/openapi/model/models.ts +0 -13
- package/src/libs/data-access/datafeeder/src/openapi/model/property.api.model.ts +0 -17
- package/src/libs/data-access/datafeeder/src/openapi/model/publishJobStatus.api.model.ts +0 -33
- package/src/libs/data-access/datafeeder/src/openapi/model/publishRequest.api.model.ts +0 -16
- package/src/libs/data-access/datafeeder/src/openapi/model/publishStatusEnum.api.model.ts +0 -20
- package/src/libs/data-access/datafeeder/src/openapi/model/publishStepEnum.api.model.ts +0 -42
- package/src/libs/data-access/datafeeder/src/openapi/model/uploadJobStatus.api.model.ts +0 -33
- package/src/libs/data-access/datafeeder/src/openapi/variables.ts +0 -9
- package/src/libs/data-access/datafeeder/src/spec.yaml +0 -537
- package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.css +0 -36
- package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.html +0 -23
- package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.ts +0 -81
- package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.css +0 -3
- package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.html +0 -13
- package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.ts +0 -55
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
export class StepBarComponent {
|
|
5
|
-
constructor(cdr) {
|
|
6
|
-
this.cdr = cdr;
|
|
7
|
-
this.currentStep = 1;
|
|
8
|
-
this.type = 'default';
|
|
9
|
-
}
|
|
10
|
-
get stepCounter() {
|
|
11
|
-
return new Array(this.steps);
|
|
12
|
-
}
|
|
13
|
-
get color() {
|
|
14
|
-
switch (this.type) {
|
|
15
|
-
case 'default':
|
|
16
|
-
return {
|
|
17
|
-
outerBar: 'bg-gray-200',
|
|
18
|
-
innerBar: 'bg-gray-100',
|
|
19
|
-
};
|
|
20
|
-
case 'primary':
|
|
21
|
-
return {
|
|
22
|
-
outerBar: 'bg-primary',
|
|
23
|
-
innerBar: 'bg-primary-lighter',
|
|
24
|
-
};
|
|
25
|
-
case 'secondary':
|
|
26
|
-
return {
|
|
27
|
-
outerBar: 'bg-secondary',
|
|
28
|
-
innerBar: 'bg-secondary-lighter',
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
getCircleColor(index) {
|
|
33
|
-
return index === this.currentStep
|
|
34
|
-
? 'bg-black'
|
|
35
|
-
: index < this.currentStep
|
|
36
|
-
? 'bg-white'
|
|
37
|
-
: this.color.innerBar;
|
|
38
|
-
}
|
|
39
|
-
getChecked(index) {
|
|
40
|
-
return index + 1 < this.currentStep;
|
|
41
|
-
}
|
|
42
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StepBarComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: StepBarComponent, selector: "gn-ui-step-bar", inputs: { steps: "steps", currentStep: "currentStep", type: "type" }, ngImport: i0, template: "<div class=\"relative flex flex-col justify-center\">\n <div class=\"flex justify-between ml-16 mr-16 z-10 circle-steps\">\n <div\n *ngFor=\"let step of stepCounter; let i = index\"\n class=\"shadow-md rounded-full h-6 w-6 {{ getCircleColor(i + 1) }}\"\n >\n <span class=\"icon-check pl-1\" *ngIf=\"getChecked(i)\"></span>\n </div>\n </div>\n <div\n class=\"absolute rounded-lg right-0 w-full {{ color.outerBar }} h-2 z-0\"\n ></div>\n</div>\n", styles: [".icon-check{color:var(--color-primary)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
44
|
-
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StepBarComponent, decorators: [{
|
|
46
|
-
type: Component,
|
|
47
|
-
args: [{ selector: 'gn-ui-step-bar', template: "<div class=\"relative flex flex-col justify-center\">\n <div class=\"flex justify-between ml-16 mr-16 z-10 circle-steps\">\n <div\n *ngFor=\"let step of stepCounter; let i = index\"\n class=\"shadow-md rounded-full h-6 w-6 {{ getCircleColor(i + 1) }}\"\n >\n <span class=\"icon-check pl-1\" *ngIf=\"getChecked(i)\"></span>\n </div>\n </div>\n <div\n class=\"absolute rounded-lg right-0 w-full {{ color.outerBar }} h-2 z-0\"\n ></div>\n</div>\n", styles: [".icon-check{color:var(--color-primary)}\n"] }]
|
|
48
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { steps: [{
|
|
49
|
-
type: Input
|
|
50
|
-
}], currentStep: [{
|
|
51
|
-
type: Input
|
|
52
|
-
}], type: [{
|
|
53
|
-
type: Input
|
|
54
|
-
}] } });
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcC1iYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy91aS93aWRnZXRzL3NyYy9saWIvc3RlcC1iYXIvc3RlcC1iYXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy91aS93aWRnZXRzL3NyYy9saWIvc3RlcC1iYXIvc3RlcC1iYXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGlCQUFpQixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUE7OztBQVluRSxNQUFNLE9BQU8sZ0JBQWdCO0lBSzNCLFlBQW9CLEdBQXNCO1FBQXRCLFFBQUcsR0FBS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91bmRlZC1mdWxsIGgtNiB3LTYge3sgZ2V0Q2lyY2xlQ29sb3IoaSArIDEpIH19XCJcbiAgICA+XG4gICAgICA8c3BhbiBjbGFzcz1cImljb24tY2hlY2sgcGwtMVwiICpuZ0lmPVwiZ2V0Q2hlY2tlZChpKVwiPjwvc3Bhbj5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG4gIDxkaXZcbiAgICBjbGFzcz1cImFic29sdXRlIHJvdW5kZWQtbGcgcmlnaHQtMCB3LWZ1bGwge3sgY29sb3Iub3V0ZXJCYXIgfX0gaC0yIHotMFwiXG4gID48L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { Observable, Subject } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export interface Items {
|
|
7
|
-
display: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class ChipsInputComponent implements OnInit, OnDestroy {
|
|
11
|
-
private http;
|
|
12
|
-
private translate;
|
|
13
|
-
url: (text: any) => string;
|
|
14
|
-
placeholder: string;
|
|
15
|
-
selectedItems: Items[];
|
|
16
|
-
required: boolean;
|
|
17
|
-
loadOnce: boolean;
|
|
18
|
-
autocompleteItems: Items[];
|
|
19
|
-
itemsChange: Observable<Items[]>;
|
|
20
|
-
private subscription;
|
|
21
|
-
invalid: boolean;
|
|
22
|
-
rawChange: Subject<Items[]>;
|
|
23
|
-
items: Items[];
|
|
24
|
-
loadedItems: Observable<Items[]>;
|
|
25
|
-
onChange(event: any): void;
|
|
26
|
-
requestAutocompleteItems: (text: string) => Observable<any>;
|
|
27
|
-
constructor(http: HttpClient, translate: TranslateService);
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
ngOnDestroy(): void;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChipsInputComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChipsInputComponent, "gn-ui-chips-input", never, { "url": { "alias": "url"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "required": { "alias": "required"; "required": false; }; "loadOnce": { "alias": "loadOnce"; "required": false; }; "autocompleteItems": { "alias": "autocompleteItems"; "required": false; }; }, { "itemsChange": "itemsChange"; }, never, never, false, never>;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=chips-input.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chips-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/chips-input/chips-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAA;AAE3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,UAAU,EAAM,OAAO,EAAgB,MAAM,MAAM,CAAA;;AAG5D,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CACd;AAED,qBAKa,mBAAoB,YAAW,MAAM,EAAE,SAAS;IAwCzD,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,SAAS;IAxCV,GAAG,EAAE,CAAC,IAAI,KAAA,KAAK,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,KAAK,EAAE,CAAA;IACtB,QAAQ,UAAQ;IAChB,QAAQ,UAAQ;IAChB,iBAAiB,EAAE,KAAK,EAAE,CAAK;IAC9B,WAAW,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA;IAE1C,OAAO,CAAC,YAAY,CAAc;IAElC,OAAO,UAAQ;IAEf,SAAS,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAA;IAE3B,KAAK,EAAE,KAAK,EAAE,CAAK;IAEnB,WAAW,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA;IAEhC,QAAQ,CAAC,KAAK,KAAA;IAId,wBAAwB,SAAU,MAAM,KAAG,UAAU,CAAC,GAAG,CAAC,CAczD;gBAGS,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,gBAAgB;IAOrC,QAAQ,IAAI,IAAI;IAYhB,WAAW;yCA5DA,mBAAmB;2CAAnB,mBAAmB;CA+D/B"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
interface ColorScheme {
|
|
4
|
-
outerBar: string;
|
|
5
|
-
innerBar: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class StepBarComponent {
|
|
8
|
-
private cdr;
|
|
9
|
-
steps: any;
|
|
10
|
-
currentStep: number;
|
|
11
|
-
type: 'primary' | 'secondary' | 'default';
|
|
12
|
-
constructor(cdr: ChangeDetectorRef);
|
|
13
|
-
get stepCounter(): any[];
|
|
14
|
-
get color(): ColorScheme;
|
|
15
|
-
getCircleColor(index: number): string;
|
|
16
|
-
getChecked(index: number): boolean;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StepBarComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepBarComponent, "gn-ui-step-bar", never, { "steps": { "alias": "steps"; "required": false; }; "currentStep": { "alias": "currentStep"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=step-bar.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"step-bar.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/widgets/src/lib/step-bar/step-bar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAoB,MAAM,eAAe,CAAA;;AAEnE,UAAU,WAAW;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,qBAKa,gBAAgB;IAKf,OAAO,CAAC,GAAG;IAJd,KAAK,MAAA;IACL,WAAW,SAAI;IACf,IAAI,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,CAAY;gBAE1C,GAAG,EAAE,iBAAiB;IAE1C,IAAI,WAAW,UAEd;IAED,IAAI,KAAK,IAAI,WAAW,CAkBvB;IAED,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAQrC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;yCAvCvB,gBAAgB;2CAAhB,gBAAgB;CA0C5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './openapi/'
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './config.api.service'
|
|
2
|
-
import { ConfigApiService } from './config.api.service'
|
|
3
|
-
export * from './dataPublishing.api.service'
|
|
4
|
-
import { DataPublishingApiService } from './dataPublishing.api.service'
|
|
5
|
-
export * from './fileUpload.api.service'
|
|
6
|
-
import { FileUploadApiService } from './fileUpload.api.service'
|
|
7
|
-
export const APIS = [
|
|
8
|
-
ConfigApiService,
|
|
9
|
-
DataPublishingApiService,
|
|
10
|
-
FileUploadApiService,
|
|
11
|
-
]
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DataFeeder API
|
|
3
|
-
* This API covers dataset upload and publishing features of the application
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: psc@georchestra.org
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
-
|
|
14
|
-
import { Inject, Injectable, Optional } from '@angular/core'
|
|
15
|
-
import {
|
|
16
|
-
HttpClient,
|
|
17
|
-
HttpHeaders,
|
|
18
|
-
HttpParams,
|
|
19
|
-
HttpResponse,
|
|
20
|
-
HttpEvent,
|
|
21
|
-
HttpParameterCodec,
|
|
22
|
-
} from '@angular/common/http'
|
|
23
|
-
import { CustomHttpParameterCodec } from '../encoder'
|
|
24
|
-
import { Observable } from 'rxjs'
|
|
25
|
-
|
|
26
|
-
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|
27
|
-
import { Configuration } from '../configuration'
|
|
28
|
-
|
|
29
|
-
@Injectable({
|
|
30
|
-
providedIn: 'root',
|
|
31
|
-
})
|
|
32
|
-
export class ConfigApiService {
|
|
33
|
-
protected basePath = 'https://localhost:8080'
|
|
34
|
-
public defaultHeaders = new HttpHeaders()
|
|
35
|
-
public configuration = new Configuration()
|
|
36
|
-
public encoder: HttpParameterCodec
|
|
37
|
-
|
|
38
|
-
constructor(
|
|
39
|
-
protected httpClient: HttpClient,
|
|
40
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
41
|
-
@Optional() configuration: Configuration
|
|
42
|
-
) {
|
|
43
|
-
if (configuration) {
|
|
44
|
-
this.configuration = configuration
|
|
45
|
-
}
|
|
46
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
47
|
-
if (typeof basePath !== 'string') {
|
|
48
|
-
basePath = this.basePath
|
|
49
|
-
}
|
|
50
|
-
this.configuration.basePath = basePath
|
|
51
|
-
}
|
|
52
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec()
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
private addToHttpParams(
|
|
56
|
-
httpParams: HttpParams,
|
|
57
|
-
value: any,
|
|
58
|
-
key?: string
|
|
59
|
-
): HttpParams {
|
|
60
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
61
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value)
|
|
62
|
-
} else {
|
|
63
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key)
|
|
64
|
-
}
|
|
65
|
-
return httpParams
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
private addToHttpParamsRecursive(
|
|
69
|
-
httpParams: HttpParams,
|
|
70
|
-
value?: any,
|
|
71
|
-
key?: string
|
|
72
|
-
): HttpParams {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return httpParams
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (typeof value === 'object') {
|
|
78
|
-
if (Array.isArray(value)) {
|
|
79
|
-
;(value as any[]).forEach(
|
|
80
|
-
(elem) =>
|
|
81
|
-
(httpParams = this.addToHttpParamsRecursive(httpParams, elem, key))
|
|
82
|
-
)
|
|
83
|
-
} else if (value instanceof Date) {
|
|
84
|
-
if (key != null) {
|
|
85
|
-
httpParams = httpParams.append(
|
|
86
|
-
key,
|
|
87
|
-
(value as Date).toISOString().substr(0, 10)
|
|
88
|
-
)
|
|
89
|
-
} else {
|
|
90
|
-
throw Error('key may not be null if value is Date')
|
|
91
|
-
}
|
|
92
|
-
} else {
|
|
93
|
-
Object.keys(value).forEach(
|
|
94
|
-
(k) =>
|
|
95
|
-
(httpParams = this.addToHttpParamsRecursive(
|
|
96
|
-
httpParams,
|
|
97
|
-
value[k],
|
|
98
|
-
key != null ? `${key}.${k}` : k
|
|
99
|
-
))
|
|
100
|
-
)
|
|
101
|
-
}
|
|
102
|
-
} else if (key != null) {
|
|
103
|
-
httpParams = httpParams.append(key, value)
|
|
104
|
-
} else {
|
|
105
|
-
throw Error('key may not be null if value is not object or array')
|
|
106
|
-
}
|
|
107
|
-
return httpParams
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Get the front-end application configuration object
|
|
112
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
113
|
-
* @param reportProgress flag to report request and response progress.
|
|
114
|
-
*/
|
|
115
|
-
public getFrontendConfig(
|
|
116
|
-
observe?: 'body',
|
|
117
|
-
reportProgress?: boolean,
|
|
118
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
119
|
-
): Observable<object>
|
|
120
|
-
public getFrontendConfig(
|
|
121
|
-
observe?: 'response',
|
|
122
|
-
reportProgress?: boolean,
|
|
123
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
124
|
-
): Observable<HttpResponse<object>>
|
|
125
|
-
public getFrontendConfig(
|
|
126
|
-
observe?: 'events',
|
|
127
|
-
reportProgress?: boolean,
|
|
128
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
129
|
-
): Observable<HttpEvent<object>>
|
|
130
|
-
public getFrontendConfig(
|
|
131
|
-
observe: any = 'body',
|
|
132
|
-
reportProgress: boolean = false,
|
|
133
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
134
|
-
): Observable<any> {
|
|
135
|
-
let headers = this.defaultHeaders
|
|
136
|
-
|
|
137
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
138
|
-
options && options.httpHeaderAccept
|
|
139
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
140
|
-
// to determine the Accept header
|
|
141
|
-
const httpHeaderAccepts: string[] = ['application/json']
|
|
142
|
-
httpHeaderAcceptSelected =
|
|
143
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
144
|
-
}
|
|
145
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
146
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
150
|
-
if (
|
|
151
|
-
httpHeaderAcceptSelected &&
|
|
152
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
153
|
-
) {
|
|
154
|
-
responseType_ = 'text'
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
return this.httpClient.get<object>(
|
|
158
|
-
`${this.configuration.basePath}/config/frontend`,
|
|
159
|
-
{
|
|
160
|
-
responseType: <any>responseType_,
|
|
161
|
-
withCredentials: this.configuration.withCredentials,
|
|
162
|
-
headers: headers,
|
|
163
|
-
observe: observe,
|
|
164
|
-
reportProgress: reportProgress,
|
|
165
|
-
}
|
|
166
|
-
)
|
|
167
|
-
}
|
|
168
|
-
}
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DataFeeder API
|
|
3
|
-
* This API covers dataset upload and publishing features of the application
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: psc@georchestra.org
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
-
|
|
14
|
-
import { Inject, Injectable, Optional } from '@angular/core'
|
|
15
|
-
import {
|
|
16
|
-
HttpClient,
|
|
17
|
-
HttpHeaders,
|
|
18
|
-
HttpParams,
|
|
19
|
-
HttpResponse,
|
|
20
|
-
HttpEvent,
|
|
21
|
-
HttpParameterCodec,
|
|
22
|
-
} from '@angular/common/http'
|
|
23
|
-
import { CustomHttpParameterCodec } from '../encoder'
|
|
24
|
-
import { Observable } from 'rxjs'
|
|
25
|
-
|
|
26
|
-
import { PublishJobStatusApiModel } from '../model/models'
|
|
27
|
-
import { PublishRequestApiModel } from '../model/models'
|
|
28
|
-
|
|
29
|
-
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|
30
|
-
import { Configuration } from '../configuration'
|
|
31
|
-
|
|
32
|
-
@Injectable({
|
|
33
|
-
providedIn: 'root',
|
|
34
|
-
})
|
|
35
|
-
export class DataPublishingApiService {
|
|
36
|
-
protected basePath = 'https://localhost:8080'
|
|
37
|
-
public defaultHeaders = new HttpHeaders()
|
|
38
|
-
public configuration = new Configuration()
|
|
39
|
-
public encoder: HttpParameterCodec
|
|
40
|
-
|
|
41
|
-
constructor(
|
|
42
|
-
protected httpClient: HttpClient,
|
|
43
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
44
|
-
@Optional() configuration: Configuration
|
|
45
|
-
) {
|
|
46
|
-
if (configuration) {
|
|
47
|
-
this.configuration = configuration
|
|
48
|
-
}
|
|
49
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
50
|
-
if (typeof basePath !== 'string') {
|
|
51
|
-
basePath = this.basePath
|
|
52
|
-
}
|
|
53
|
-
this.configuration.basePath = basePath
|
|
54
|
-
}
|
|
55
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec()
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
private addToHttpParams(
|
|
59
|
-
httpParams: HttpParams,
|
|
60
|
-
value: any,
|
|
61
|
-
key?: string
|
|
62
|
-
): HttpParams {
|
|
63
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
64
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value)
|
|
65
|
-
} else {
|
|
66
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key)
|
|
67
|
-
}
|
|
68
|
-
return httpParams
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
private addToHttpParamsRecursive(
|
|
72
|
-
httpParams: HttpParams,
|
|
73
|
-
value?: any,
|
|
74
|
-
key?: string
|
|
75
|
-
): HttpParams {
|
|
76
|
-
if (value == null) {
|
|
77
|
-
return httpParams
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (typeof value === 'object') {
|
|
81
|
-
if (Array.isArray(value)) {
|
|
82
|
-
;(value as any[]).forEach(
|
|
83
|
-
(elem) =>
|
|
84
|
-
(httpParams = this.addToHttpParamsRecursive(httpParams, elem, key))
|
|
85
|
-
)
|
|
86
|
-
} else if (value instanceof Date) {
|
|
87
|
-
if (key != null) {
|
|
88
|
-
httpParams = httpParams.append(
|
|
89
|
-
key,
|
|
90
|
-
(value as Date).toISOString().substr(0, 10)
|
|
91
|
-
)
|
|
92
|
-
} else {
|
|
93
|
-
throw Error('key may not be null if value is Date')
|
|
94
|
-
}
|
|
95
|
-
} else {
|
|
96
|
-
Object.keys(value).forEach(
|
|
97
|
-
(k) =>
|
|
98
|
-
(httpParams = this.addToHttpParamsRecursive(
|
|
99
|
-
httpParams,
|
|
100
|
-
value[k],
|
|
101
|
-
key != null ? `${key}.${k}` : k
|
|
102
|
-
))
|
|
103
|
-
)
|
|
104
|
-
}
|
|
105
|
-
} else if (key != null) {
|
|
106
|
-
httpParams = httpParams.append(key, value)
|
|
107
|
-
} else {
|
|
108
|
-
throw Error('key may not be null if value is not object or array')
|
|
109
|
-
}
|
|
110
|
-
return httpParams
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Poll the publishing staus of the given job
|
|
115
|
-
* @param jobId Unique job identifier
|
|
116
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
117
|
-
* @param reportProgress flag to report request and response progress.
|
|
118
|
-
*/
|
|
119
|
-
public getPublishingStatus(
|
|
120
|
-
jobId: string,
|
|
121
|
-
observe?: 'body',
|
|
122
|
-
reportProgress?: boolean,
|
|
123
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
124
|
-
): Observable<PublishJobStatusApiModel>
|
|
125
|
-
public getPublishingStatus(
|
|
126
|
-
jobId: string,
|
|
127
|
-
observe?: 'response',
|
|
128
|
-
reportProgress?: boolean,
|
|
129
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
130
|
-
): Observable<HttpResponse<PublishJobStatusApiModel>>
|
|
131
|
-
public getPublishingStatus(
|
|
132
|
-
jobId: string,
|
|
133
|
-
observe?: 'events',
|
|
134
|
-
reportProgress?: boolean,
|
|
135
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
136
|
-
): Observable<HttpEvent<PublishJobStatusApiModel>>
|
|
137
|
-
public getPublishingStatus(
|
|
138
|
-
jobId: string,
|
|
139
|
-
observe: any = 'body',
|
|
140
|
-
reportProgress: boolean = false,
|
|
141
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
142
|
-
): Observable<any> {
|
|
143
|
-
if (jobId === null || jobId === undefined) {
|
|
144
|
-
throw new Error(
|
|
145
|
-
'Required parameter jobId was null or undefined when calling getPublishingStatus.'
|
|
146
|
-
)
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
let headers = this.defaultHeaders
|
|
150
|
-
|
|
151
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
152
|
-
options && options.httpHeaderAccept
|
|
153
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
154
|
-
// to determine the Accept header
|
|
155
|
-
const httpHeaderAccepts: string[] = ['application/json']
|
|
156
|
-
httpHeaderAcceptSelected =
|
|
157
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
158
|
-
}
|
|
159
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
160
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
164
|
-
if (
|
|
165
|
-
httpHeaderAcceptSelected &&
|
|
166
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
167
|
-
) {
|
|
168
|
-
responseType_ = 'text'
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
return this.httpClient.get<PublishJobStatusApiModel>(
|
|
172
|
-
`${this.configuration.basePath}/upload/${encodeURIComponent(
|
|
173
|
-
String(jobId)
|
|
174
|
-
)}/publish`,
|
|
175
|
-
{
|
|
176
|
-
responseType: <any>responseType_,
|
|
177
|
-
withCredentials: this.configuration.withCredentials,
|
|
178
|
-
headers: headers,
|
|
179
|
-
observe: observe,
|
|
180
|
-
reportProgress: reportProgress,
|
|
181
|
-
}
|
|
182
|
-
)
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Publish the dataset(s) from the given upload
|
|
187
|
-
* @param jobId Unique job identifier
|
|
188
|
-
* @param publishRequestApiModel
|
|
189
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
190
|
-
* @param reportProgress flag to report request and response progress.
|
|
191
|
-
*/
|
|
192
|
-
public publish(
|
|
193
|
-
jobId: string,
|
|
194
|
-
publishRequestApiModel?: PublishRequestApiModel,
|
|
195
|
-
observe?: 'body',
|
|
196
|
-
reportProgress?: boolean,
|
|
197
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
198
|
-
): Observable<PublishJobStatusApiModel>
|
|
199
|
-
public publish(
|
|
200
|
-
jobId: string,
|
|
201
|
-
publishRequestApiModel?: PublishRequestApiModel,
|
|
202
|
-
observe?: 'response',
|
|
203
|
-
reportProgress?: boolean,
|
|
204
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
205
|
-
): Observable<HttpResponse<PublishJobStatusApiModel>>
|
|
206
|
-
public publish(
|
|
207
|
-
jobId: string,
|
|
208
|
-
publishRequestApiModel?: PublishRequestApiModel,
|
|
209
|
-
observe?: 'events',
|
|
210
|
-
reportProgress?: boolean,
|
|
211
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
212
|
-
): Observable<HttpEvent<PublishJobStatusApiModel>>
|
|
213
|
-
public publish(
|
|
214
|
-
jobId: string,
|
|
215
|
-
publishRequestApiModel?: PublishRequestApiModel,
|
|
216
|
-
observe: any = 'body',
|
|
217
|
-
reportProgress: boolean = false,
|
|
218
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
219
|
-
): Observable<any> {
|
|
220
|
-
if (jobId === null || jobId === undefined) {
|
|
221
|
-
throw new Error(
|
|
222
|
-
'Required parameter jobId was null or undefined when calling publish.'
|
|
223
|
-
)
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
let headers = this.defaultHeaders
|
|
227
|
-
|
|
228
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
229
|
-
options && options.httpHeaderAccept
|
|
230
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
231
|
-
// to determine the Accept header
|
|
232
|
-
const httpHeaderAccepts: string[] = ['application/json']
|
|
233
|
-
httpHeaderAcceptSelected =
|
|
234
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
235
|
-
}
|
|
236
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
237
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// to determine the Content-Type header
|
|
241
|
-
const consumes: string[] = ['application/json']
|
|
242
|
-
const httpContentTypeSelected: string | undefined =
|
|
243
|
-
this.configuration.selectHeaderContentType(consumes)
|
|
244
|
-
if (httpContentTypeSelected !== undefined) {
|
|
245
|
-
headers = headers.set('Content-Type', httpContentTypeSelected)
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
249
|
-
if (
|
|
250
|
-
httpHeaderAcceptSelected &&
|
|
251
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
252
|
-
) {
|
|
253
|
-
responseType_ = 'text'
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
return this.httpClient.post<PublishJobStatusApiModel>(
|
|
257
|
-
`${this.configuration.basePath}/upload/${encodeURIComponent(
|
|
258
|
-
String(jobId)
|
|
259
|
-
)}/publish`,
|
|
260
|
-
publishRequestApiModel,
|
|
261
|
-
{
|
|
262
|
-
responseType: <any>responseType_,
|
|
263
|
-
withCredentials: this.configuration.withCredentials,
|
|
264
|
-
headers: headers,
|
|
265
|
-
observe: observe,
|
|
266
|
-
reportProgress: reportProgress,
|
|
267
|
-
}
|
|
268
|
-
)
|
|
269
|
-
}
|
|
270
|
-
}
|