@hestia-earth/ui-components 0.0.1
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/README.md +24 -0
- package/auth/auth.service.d.ts +10 -0
- package/auth/public-api.d.ts +1 -0
- package/bibliographies/bibliographies-search-confirm/bibliographies-search-confirm.component.d.ts +40 -0
- package/bibliographies/bibliographies.module.d.ts +10 -0
- package/bibliographies/public-api.d.ts +2 -0
- package/bundles/hestia-earth-ui-components.umd.js +7570 -0
- package/bundles/hestia-earth-ui-components.umd.js.map +1 -0
- package/common/bind-once.directive.d.ts +10 -0
- package/common/blank-node-diffs/blank-node-diffs.component.d.ts +18 -0
- package/common/blank-node-state/blank-node-state.component.d.ts +36 -0
- package/common/blank-node-state-notice/blank-node-state-notice.component.d.ts +9 -0
- package/common/blank-node-value-delta/blank-node-value-delta.component.d.ts +13 -0
- package/common/click-outside.directive.d.ts +10 -0
- package/common/clipboard/clipboard.component.d.ts +16 -0
- package/common/common.module.d.ts +37 -0
- package/common/common.service.d.ts +11 -0
- package/common/default.pipe.d.ts +7 -0
- package/common/ellipsis.pipe.d.ts +7 -0
- package/common/get.pipe.d.ts +7 -0
- package/common/key-to-label.pipe.d.ts +7 -0
- package/common/keys.pipe.d.ts +7 -0
- package/common/link-key-value/link-key-value.component.d.ts +16 -0
- package/common/logs-utils.d.ts +17 -0
- package/common/maps-drawing-confirm/maps-drawing-confirm.component.d.ts +28 -0
- package/common/maps-utils.d.ts +70 -0
- package/common/pluralize.pipe.d.ts +7 -0
- package/common/popover/popover.component.d.ts +16 -0
- package/common/popover-confirm/popover-confirm.component.d.ts +15 -0
- package/common/precision.pipe.d.ts +7 -0
- package/common/public-api.d.ts +30 -0
- package/common/schema-version-link/schema-version-link.component.d.ts +10 -0
- package/common/skeleton-text/skeleton-text.component.d.ts +11 -0
- package/common/social-tags/social-tags.component.d.ts +12 -0
- package/common/tags-input.directive.d.ts +20 -0
- package/common/times.pipe.d.ts +7 -0
- package/common/toast/toast.component.d.ts +19 -0
- package/common/toast.service.d.ts +16 -0
- package/common/unit-converter/unit-converter.component.d.ts +25 -0
- package/common/utils.d.ts +88 -0
- package/cycles/cycles-activity/cycles-activity.component.d.ts +31 -0
- package/cycles/cycles-activity-logs/cycles-activity-logs.component.d.ts +25 -0
- package/cycles/cycles-completeness/cycles-completeness.component.d.ts +14 -0
- package/cycles/cycles-emissions/cycles-emissions.component.d.ts +40 -0
- package/cycles/cycles-emissions-chart/cycles-emissions-chart.component.d.ts +18 -0
- package/cycles/cycles-emissions-logs/cycles-emissions-logs.component.d.ts +23 -0
- package/cycles/cycles-functional-unit-measure/cycles-functional-unit-measure.component.d.ts +8 -0
- package/cycles/cycles-result/cycles-result.component.d.ts +13 -0
- package/cycles/cycles-suggest-form/cycles-suggest-form.component.d.ts +24 -0
- package/cycles/cycles.model.d.ts +7 -0
- package/cycles/cycles.module.d.ts +19 -0
- package/cycles/public-api.d.ts +10 -0
- package/engine/aggregation-engine.service.d.ts +71 -0
- package/engine/engine.service.d.ts +61 -0
- package/engine/public-api.d.ts +2 -0
- package/esm2015/auth/auth.service.js +19 -0
- package/esm2015/auth/public-api.js +2 -0
- package/esm2015/bibliographies/bibliographies-search-confirm/bibliographies-search-confirm.component.js +100 -0
- package/esm2015/bibliographies/bibliographies.module.js +30 -0
- package/esm2015/bibliographies/public-api.js +3 -0
- package/esm2015/common/bind-once.directive.js +23 -0
- package/esm2015/common/blank-node-diffs/blank-node-diffs.component.js +47 -0
- package/esm2015/common/blank-node-state/blank-node-state.component.js +90 -0
- package/esm2015/common/blank-node-state-notice/blank-node-state-notice.component.js +27 -0
- package/esm2015/common/blank-node-value-delta/blank-node-value-delta.component.js +41 -0
- package/esm2015/common/click-outside.directive.js +28 -0
- package/esm2015/common/clipboard/clipboard.component.js +69 -0
- package/esm2015/common/common.module.js +144 -0
- package/esm2015/common/common.service.js +29 -0
- package/esm2015/common/default.pipe.js +23 -0
- package/esm2015/common/ellipsis.pipe.js +17 -0
- package/esm2015/common/get.pipe.js +17 -0
- package/esm2015/common/key-to-label.pipe.js +18 -0
- package/esm2015/common/keys.pipe.js +20 -0
- package/esm2015/common/link-key-value/link-key-value.component.js +55 -0
- package/esm2015/common/logs-utils.js +49 -0
- package/esm2015/common/maps-drawing-confirm/maps-drawing-confirm.component.js +89 -0
- package/esm2015/common/maps-utils.js +101 -0
- package/esm2015/common/pluralize.pipe.js +17 -0
- package/esm2015/common/popover/popover.component.js +37 -0
- package/esm2015/common/popover-confirm/popover-confirm.component.js +38 -0
- package/esm2015/common/precision.pipe.js +20 -0
- package/esm2015/common/public-api.js +31 -0
- package/esm2015/common/schema-version-link/schema-version-link.component.js +39 -0
- package/esm2015/common/skeleton-text/skeleton-text.component.js +44 -0
- package/esm2015/common/social-tags/social-tags.component.js +37 -0
- package/esm2015/common/tags-input.directive.js +74 -0
- package/esm2015/common/times.pipe.js +16 -0
- package/esm2015/common/toast/toast.component.js +37 -0
- package/esm2015/common/toast.service.js +36 -0
- package/esm2015/common/unit-converter/unit-converter.component.js +73 -0
- package/esm2015/common/utils.js +245 -0
- package/esm2015/cycles/cycles-activity/cycles-activity.component.js +92 -0
- package/esm2015/cycles/cycles-activity-logs/cycles-activity-logs.component.js +48 -0
- package/esm2015/cycles/cycles-completeness/cycles-completeness.component.js +41 -0
- package/esm2015/cycles/cycles-emissions/cycles-emissions.component.js +121 -0
- package/esm2015/cycles/cycles-emissions-chart/cycles-emissions-chart.component.js +93 -0
- package/esm2015/cycles/cycles-emissions-logs/cycles-emissions-logs.component.js +63 -0
- package/esm2015/cycles/cycles-functional-unit-measure/cycles-functional-unit-measure.component.js +22 -0
- package/esm2015/cycles/cycles-result/cycles-result.component.js +92 -0
- package/esm2015/cycles/cycles-suggest-form/cycles-suggest-form.component.js +83 -0
- package/esm2015/cycles/cycles.model.js +2 -0
- package/esm2015/cycles/cycles.module.js +66 -0
- package/esm2015/cycles/public-api.js +11 -0
- package/esm2015/engine/aggregation-engine.service.js +126 -0
- package/esm2015/engine/engine.service.js +78 -0
- package/esm2015/engine/public-api.js +3 -0
- package/esm2015/files/files-error.model.js +180 -0
- package/esm2015/files/files-form/files-form.component.js +439 -0
- package/esm2015/files/files-form.model.js +548 -0
- package/esm2015/files/files.module.js +42 -0
- package/esm2015/files/public-api.js +3 -0
- package/esm2015/fontawesome/fontawesome.module.js +36 -0
- package/esm2015/fontawesome/public-api.js +2 -0
- package/esm2015/hestia-earth-ui-components.js +5 -0
- package/esm2015/impact-assessments/impact-assessments-indicator-breakdown-chart/impact-assessments-indicator-breakdown-chart.component.js +161 -0
- package/esm2015/impact-assessments/impact-assessments-indicators-chart/impact-assessments-indicators-chart.component.js +142 -0
- package/esm2015/impact-assessments/impact-assessments-products/impact-assessments-products.component.js +252 -0
- package/esm2015/impact-assessments/impact-assessments-products-logs/impact-assessments-products-logs.component.js +68 -0
- package/esm2015/impact-assessments/impact-assessments.model.js +2 -0
- package/esm2015/impact-assessments/impact-assessments.module.js +47 -0
- package/esm2015/impact-assessments/public-api.js +7 -0
- package/esm2015/mendeley/mendeley.service.js +35 -0
- package/esm2015/mendeley/public-api.js +2 -0
- package/esm2015/node/node-csv-export-confirm/node-csv-export-confirm.component.js +65 -0
- package/esm2015/node/node-csv-select-headers/node-csv-select-headers.component.js +119 -0
- package/esm2015/node/node-csv.service.js +24 -0
- package/esm2015/node/node-diffs/node-diffs.component.js +67 -0
- package/esm2015/node/node-diffs/node-diffs.model.js +6 -0
- package/esm2015/node/node-icon/node-icon.component.js +37 -0
- package/esm2015/node/node-link/node-link.component.js +33 -0
- package/esm2015/node/node-logs-file/node-logs-file.component.js +63 -0
- package/esm2015/node/node-logs-models/node-logs-models.component.js +188 -0
- package/esm2015/node/node-missing-lookup-factors/node-missing-lookup-factors.component.js +34 -0
- package/esm2015/node/node-value-details/node-value-details.component.js +46 -0
- package/esm2015/node/node.module.js +67 -0
- package/esm2015/node/node.service.js +113 -0
- package/esm2015/node/public-api.js +13 -0
- package/esm2015/public-api.js +16 -0
- package/esm2015/schema/public-api.js +2 -0
- package/esm2015/schema/schema.service.js +167 -0
- package/esm2015/search/public-api.js +4 -0
- package/esm2015/search/search.model.js +204 -0
- package/esm2015/search/search.module.js +13 -0
- package/esm2015/search/search.service.js +99 -0
- package/esm2015/sites/public-api.js +6 -0
- package/esm2015/sites/sites-maps/sites-maps.component.js +162 -0
- package/esm2015/sites/sites-measurements/sites-measurements.component.js +78 -0
- package/esm2015/sites/sites-measurements-logs/sites-measurements-logs.component.js +63 -0
- package/esm2015/sites/sites.model.js +10 -0
- package/esm2015/sites/sites.module.js +42 -0
- package/esm2015/terms/public-api.js +2 -0
- package/esm2015/terms/terms.model.js +184 -0
- package/esm2015/users/public-api.js +2 -0
- package/esm2015/users/users.service.js +17 -0
- package/fesm2015/hestia-earth-ui-components.js +5920 -0
- package/fesm2015/hestia-earth-ui-components.js.map +1 -0
- package/files/files-error.model.d.ts +40 -0
- package/files/files-form/files-form.component.d.ts +94 -0
- package/files/files-form.model.d.ts +113 -0
- package/files/files.module.d.ts +13 -0
- package/files/public-api.d.ts +2 -0
- package/fontawesome/fontawesome.module.d.ts +10 -0
- package/fontawesome/public-api.d.ts +1 -0
- package/hestia-earth-ui-components.d.ts +5 -0
- package/impact-assessments/impact-assessments-indicator-breakdown-chart/impact-assessments-indicator-breakdown-chart.component.d.ts +28 -0
- package/impact-assessments/impact-assessments-indicators-chart/impact-assessments-indicators-chart.component.d.ts +25 -0
- package/impact-assessments/impact-assessments-products/impact-assessments-products.component.d.ts +77 -0
- package/impact-assessments/impact-assessments-products-logs/impact-assessments-products-logs.component.d.ts +25 -0
- package/impact-assessments/impact-assessments.model.d.ts +6 -0
- package/impact-assessments/impact-assessments.module.d.ts +15 -0
- package/impact-assessments/public-api.d.ts +6 -0
- package/mendeley/mendeley.service.d.ts +25 -0
- package/mendeley/public-api.d.ts +1 -0
- package/node/node-csv-export-confirm/node-csv-export-confirm.component.d.ts +32 -0
- package/node/node-csv-select-headers/node-csv-select-headers.component.d.ts +42 -0
- package/node/node-csv.service.d.ts +9 -0
- package/node/node-diffs/node-diffs.component.d.ts +23 -0
- package/node/node-diffs/node-diffs.model.d.ts +4 -0
- package/node/node-icon/node-icon.component.d.ts +8 -0
- package/node/node-link/node-link.component.d.ts +11 -0
- package/node/node-logs-file/node-logs-file.component.d.ts +31 -0
- package/node/node-logs-models/node-logs-models.component.d.ts +72 -0
- package/node/node-missing-lookup-factors/node-missing-lookup-factors.component.d.ts +14 -0
- package/node/node-value-details/node-value-details.component.d.ts +17 -0
- package/node/node.module.d.ts +20 -0
- package/node/node.service.d.ts +70 -0
- package/node/public-api.d.ts +12 -0
- package/package.json +53 -0
- package/public-api.d.ts +15 -0
- package/schema/public-api.d.ts +1 -0
- package/schema/schema.service.d.ts +51 -0
- package/search/public-api.d.ts +3 -0
- package/search/search.model.d.ts +243 -0
- package/search/search.module.d.ts +7 -0
- package/search/search.service.d.ts +129 -0
- package/sites/public-api.d.ts +5 -0
- package/sites/sites-maps/sites-maps.component.d.ts +35 -0
- package/sites/sites-measurements/sites-measurements.component.d.ts +31 -0
- package/sites/sites-measurements-logs/sites-measurements-logs.component.d.ts +23 -0
- package/sites/sites.model.d.ts +10 -0
- package/sites/sites.module.d.ts +13 -0
- package/styles.scss +197 -0
- package/terms/public-api.d.ts +1 -0
- package/terms/terms.model.d.ts +21 -0
- package/users/public-api.d.ts +1 -0
- package/users/users.service.d.ts +7 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { DataState } from '@hestia-earth/api';
|
|
5
|
+
import { JSONLD, NodeType } from '@hestia-earth/schema';
|
|
6
|
+
import { HeNodeService } from '../node.service';
|
|
7
|
+
import { ILine, Level } from '../../common/logs-utils';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class NodeLogsFileComponent implements OnInit {
|
|
10
|
+
private domSanitizer;
|
|
11
|
+
private nodeService;
|
|
12
|
+
private allLogs;
|
|
13
|
+
node?: JSONLD<NodeType>;
|
|
14
|
+
dataState?: DataState;
|
|
15
|
+
showFilters: boolean;
|
|
16
|
+
Level: typeof Level;
|
|
17
|
+
modelFilter: string;
|
|
18
|
+
termFilter: string;
|
|
19
|
+
selectedLevel: Level;
|
|
20
|
+
loading: boolean;
|
|
21
|
+
nodeLog?: Observable<string>;
|
|
22
|
+
nodeLogLines: ILine[];
|
|
23
|
+
csvContent?: SafeResourceUrl;
|
|
24
|
+
fileToExt: (path: string, extension: string) => string;
|
|
25
|
+
constructor(domSanitizer: DomSanitizer, nodeService: HeNodeService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
private updateCsvContent;
|
|
28
|
+
applyFilters(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeLogsFileComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeLogsFileComponent, "he-node-logs-file", never, { "node": "node"; "dataState": "dataState"; }, {}, never, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Emission, ITermJSONLD, Product, Input as HestiaInput } from '@hestia-earth/schema';
|
|
4
|
+
import { INodeTermLogs } from '../node.service';
|
|
5
|
+
import { HeEngineService } from '../../engine/engine.service';
|
|
6
|
+
import { HeSearchService } from '../../search/search.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
declare type subValueKeys = 'input' | 'property';
|
|
9
|
+
interface IBlankNodeLogSubValue {
|
|
10
|
+
key: subValueKeys;
|
|
11
|
+
value: any;
|
|
12
|
+
configModels: string[];
|
|
13
|
+
}
|
|
14
|
+
interface IBlankNodeLog {
|
|
15
|
+
isOpen: boolean;
|
|
16
|
+
canOpen: boolean;
|
|
17
|
+
term: ITermJSONLD;
|
|
18
|
+
configModels: string[];
|
|
19
|
+
original: number;
|
|
20
|
+
recalculated: number;
|
|
21
|
+
isRecalculated: boolean;
|
|
22
|
+
hasData: boolean;
|
|
23
|
+
logs?: INodeTermLogs;
|
|
24
|
+
keys: string[];
|
|
25
|
+
subValues: IBlankNodeLogSubValue[];
|
|
26
|
+
}
|
|
27
|
+
export declare class NodeLogsModelsComponent implements OnInit {
|
|
28
|
+
private searchService;
|
|
29
|
+
private hestiaEngineService;
|
|
30
|
+
private config?;
|
|
31
|
+
private models;
|
|
32
|
+
private allTerms;
|
|
33
|
+
private allBlankNodes;
|
|
34
|
+
private nodeType?;
|
|
35
|
+
/**
|
|
36
|
+
* Restrict models by key.
|
|
37
|
+
*/
|
|
38
|
+
private nodeKey?;
|
|
39
|
+
logsUrl?: string;
|
|
40
|
+
originalValues: (Emission | Product | HestiaInput)[];
|
|
41
|
+
private recalculatedValues;
|
|
42
|
+
private terms;
|
|
43
|
+
private logs?;
|
|
44
|
+
filteredType?: string;
|
|
45
|
+
isExternal: boolean;
|
|
46
|
+
loading: boolean;
|
|
47
|
+
blankNodes: IBlankNodeLog[];
|
|
48
|
+
methodModelsCount: number;
|
|
49
|
+
methodsById?: any;
|
|
50
|
+
onlyWithData: boolean;
|
|
51
|
+
term?: string;
|
|
52
|
+
suggestTerm: (text$: Observable<string>) => Observable<string[]>;
|
|
53
|
+
constructor(searchService: HeSearchService, hestiaEngineService: HeEngineService);
|
|
54
|
+
ngOnInit(): Promise<void>;
|
|
55
|
+
private fetchAllTerms;
|
|
56
|
+
private suggestByTerm;
|
|
57
|
+
trackByBlankNode(_index: number, node: IBlankNodeLog): string;
|
|
58
|
+
togglePopover(popover: any, context: any): any;
|
|
59
|
+
validSubValue(node: IBlankNodeLog, index: number, subValue?: IBlankNodeLogSubValue): boolean;
|
|
60
|
+
getMethodIdAt(node: IBlankNodeLog, index: number, subValue?: IBlankNodeLogSubValue): string;
|
|
61
|
+
methodName({ logs }: IBlankNodeLog, methodId: string): any;
|
|
62
|
+
hasLog({ logs }: IBlankNodeLog, methodId: string): boolean;
|
|
63
|
+
hasLogDetails({ logs }: IBlankNodeLog, methodId: string): number | {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
} | undefined;
|
|
66
|
+
logColor(node: IBlankNodeLog, methodId: string): "success" | "danger" | "dark";
|
|
67
|
+
requirementColor(value: any): "danger" | "white";
|
|
68
|
+
filterResults(): void;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeLogsModelsComponent, never>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeLogsModelsComponent, "he-node-logs-models", never, { "nodeType": "nodeType"; "nodeKey": "nodeKey"; "logsUrl": "logsUrl"; "originalValues": "originalValues"; "recalculatedValues": "recalculatedValues"; "terms": "terms"; "logs": "logs"; "filteredType": "filteredType"; }, {}, never, never>;
|
|
71
|
+
}
|
|
72
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { JSONLD, NodeType } from '@hestia-earth/schema';
|
|
3
|
+
import { INodeMissingLookupLog, HeNodeService } from '../node.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NodeMissingLookupFactorsComponent implements OnInit {
|
|
6
|
+
nodeService: HeNodeService;
|
|
7
|
+
node?: JSONLD<NodeType>;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
logs: INodeMissingLookupLog[];
|
|
10
|
+
constructor(nodeService: HeNodeService);
|
|
11
|
+
ngOnInit(): Promise<void>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeMissingLookupFactorsComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeMissingLookupFactorsComponent, "he-node-missing-lookup-factors", never, { "node": "node"; }, {}, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { NodeType } from '@hestia-earth/schema';
|
|
3
|
+
import { IGroupedNode } from '../../common/utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NodeValueDetailsComponent<T> implements OnInit {
|
|
6
|
+
data?: IGroupedNode<T>;
|
|
7
|
+
nodeType?: NodeType;
|
|
8
|
+
dataKey?: string;
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
keys: string[];
|
|
11
|
+
additionalKeys: string[];
|
|
12
|
+
tableKeys: string[];
|
|
13
|
+
get type(): any;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeValueDetailsComponent<any>, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeValueDetailsComponent<any>, "he-node-value-details", never, { "data": "data"; "nodeType": "nodeType"; "dataKey": "dataKey"; }, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./node-icon/node-icon.component";
|
|
3
|
+
import * as i2 from "./node-link/node-link.component";
|
|
4
|
+
import * as i3 from "./node-csv-export-confirm/node-csv-export-confirm.component";
|
|
5
|
+
import * as i4 from "./node-csv-select-headers/node-csv-select-headers.component";
|
|
6
|
+
import * as i5 from "./node-diffs/node-diffs.component";
|
|
7
|
+
import * as i6 from "./node-logs-file/node-logs-file.component";
|
|
8
|
+
import * as i7 from "./node-logs-models/node-logs-models.component";
|
|
9
|
+
import * as i8 from "./node-missing-lookup-factors/node-missing-lookup-factors.component";
|
|
10
|
+
import * as i9 from "./node-value-details/node-value-details.component";
|
|
11
|
+
import * as i10 from "@angular/common";
|
|
12
|
+
import * as i11 from "@angular/router";
|
|
13
|
+
import * as i12 from "@angular/forms";
|
|
14
|
+
import * as i13 from "@angular/cdk/drag-drop";
|
|
15
|
+
import * as i14 from "../common/common.module";
|
|
16
|
+
export declare class HeNodeModule {
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeNodeModule, never>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HeNodeModule, [typeof i1.NodeIconComponent, typeof i2.NodeLinkComponent, typeof i3.NodeCsvExportConfirmComponent, typeof i4.NodeCsvSelectHeadersComponent, typeof i5.NodeDiffsComponent, typeof i6.NodeLogsFileComponent, typeof i7.NodeLogsModelsComponent, typeof i8.NodeMissingLookupFactorsComponent, typeof i9.NodeValueDetailsComponent], [typeof i10.CommonModule, typeof i11.RouterModule, typeof i12.FormsModule, typeof i13.DragDropModule, typeof i14.HeCommonModule], [typeof i1.NodeIconComponent, typeof i2.NodeLinkComponent, typeof i3.NodeCsvExportConfirmComponent, typeof i4.NodeCsvSelectHeadersComponent, typeof i5.NodeDiffsComponent, typeof i6.NodeLogsFileComponent, typeof i7.NodeLogsModelsComponent, typeof i8.NodeMissingLookupFactorsComponent, typeof i9.NodeValueDetailsComponent]>;
|
|
19
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HeNodeModule>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { DataState } from '@hestia-earth/api';
|
|
3
|
+
import { ICycleJSONLD, IImpactAssessmentJSONLD, ISiteJSONLD, NodeType, TermTermType } from '@hestia-earth/schema';
|
|
4
|
+
import { HeCommonService } from '../common/common.service';
|
|
5
|
+
import { HeAuthService } from '../auth/auth.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export interface IJSONNode {
|
|
8
|
+
'@type'?: NodeType;
|
|
9
|
+
'@id'?: string;
|
|
10
|
+
type?: NodeType;
|
|
11
|
+
id?: string;
|
|
12
|
+
dataState?: DataState;
|
|
13
|
+
}
|
|
14
|
+
export interface IRelatedNode {
|
|
15
|
+
'@type': NodeType;
|
|
16
|
+
'@id': string;
|
|
17
|
+
[x: string]: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IJSONData {
|
|
20
|
+
[NodeType.Cycle]?: ICycleJSONLD[];
|
|
21
|
+
[NodeType.Site]?: ISiteJSONLD[];
|
|
22
|
+
[NodeType.ImpactAssessment]?: IImpactAssessmentJSONLD[];
|
|
23
|
+
}
|
|
24
|
+
export interface INodeMissingLookupLog {
|
|
25
|
+
filename: string;
|
|
26
|
+
termId: string;
|
|
27
|
+
column: string;
|
|
28
|
+
model?: string;
|
|
29
|
+
term?: string;
|
|
30
|
+
key?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface INodeTermLogs {
|
|
33
|
+
[modelKey: string]: {
|
|
34
|
+
isKey: boolean;
|
|
35
|
+
shouldRun?: boolean;
|
|
36
|
+
missingLookups?: INodeMissingLookupLog[];
|
|
37
|
+
requirements?: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
};
|
|
40
|
+
logs?: {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export interface INodeLogs {
|
|
47
|
+
[term: string]: INodeTermLogs;
|
|
48
|
+
}
|
|
49
|
+
export declare class HeNodeService {
|
|
50
|
+
private http;
|
|
51
|
+
private authService;
|
|
52
|
+
private commonService;
|
|
53
|
+
constructor(http: HttpClient, authService: HeAuthService, commonService: HeCommonService);
|
|
54
|
+
get$<T>({ dataState, ...node }: IJSONNode): import("rxjs").Observable<T>;
|
|
55
|
+
get<T>(node: IJSONNode, defaultForState?: boolean): Promise<T>;
|
|
56
|
+
getLog({ dataState, ...node }: IJSONNode): import("rxjs").Observable<string>;
|
|
57
|
+
getMissingLookupsLog({ dataState, ...node }: IJSONNode): Promise<INodeMissingLookupLog[]>;
|
|
58
|
+
getModelsLog({ dataState, ...node }: IJSONNode): Promise<any>;
|
|
59
|
+
triggerPipeline({ dataState, ...node }: IJSONNode): Promise<Object>;
|
|
60
|
+
downloadRaw<T = any>(url: string, responseType?: any): Promise<T>;
|
|
61
|
+
nodeTypeUrl(type: any): string;
|
|
62
|
+
nodeUrl({ dataState, ...node }: IJSONNode): string;
|
|
63
|
+
nodeLogsUrl({ dataState, ...node }: IJSONNode): string;
|
|
64
|
+
lookupUrl(filename: string): string;
|
|
65
|
+
termTypeLookupUrl(termType: TermTermType): string;
|
|
66
|
+
downloadLookup(filename: string): Promise<string | null>;
|
|
67
|
+
lookupLink(termType: TermTermType): Promise<string | null>;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeNodeService, never>;
|
|
69
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HeNodeService>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './node-csv.service';
|
|
2
|
+
export * from './node.module';
|
|
3
|
+
export * from './node.service';
|
|
4
|
+
export { NodeCsvExportConfirmComponent } from './node-csv-export-confirm/node-csv-export-confirm.component';
|
|
5
|
+
export { NodeCsvSelectHeadersComponent } from './node-csv-select-headers/node-csv-select-headers.component';
|
|
6
|
+
export { NodeDiffsComponent } from './node-diffs/node-diffs.component';
|
|
7
|
+
export { NodeIconComponent } from './node-icon/node-icon.component';
|
|
8
|
+
export { NodeLinkComponent } from './node-link/node-link.component';
|
|
9
|
+
export { NodeLogsFileComponent } from './node-logs-file/node-logs-file.component';
|
|
10
|
+
export { NodeLogsModelsComponent } from './node-logs-models/node-logs-models.component';
|
|
11
|
+
export { NodeMissingLookupFactorsComponent } from './node-missing-lookup-factors/node-missing-lookup-factors.component';
|
|
12
|
+
export { NodeValueDetailsComponent } from './node-value-details/node-value-details.component';
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hestia-earth/ui-components",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Hestia reusable components",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+ssh://git@gitlab.com/hestia-earth/hestia-ui-components.git"
|
|
8
|
+
},
|
|
9
|
+
"author": "Guillaume Royer <guillaume@hestia.earth>",
|
|
10
|
+
"license": "GPL-3.0-or-later",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://gitlab.com/hestia-earth/hestia-ui-components/issues"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://gitlab.com/hestia-earth/hestia-ui-components#readme",
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@angular/cdk": "^12.2.0",
|
|
17
|
+
"@angular/common": "^12.2.0",
|
|
18
|
+
"@angular/core": "^12.2.0",
|
|
19
|
+
"@angular/google-maps": "^12.2.0",
|
|
20
|
+
"@fortawesome/angular-fontawesome": "^0.9.0",
|
|
21
|
+
"@fortawesome/fontawesome-svg-core": "~1.2.36",
|
|
22
|
+
"@fortawesome/free-regular-svg-icons": "^5.15.4",
|
|
23
|
+
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
|
24
|
+
"@google/markerclustererplus": "^5.1.3",
|
|
25
|
+
"@hestia-earth/api": "^0.9.29-0",
|
|
26
|
+
"@hestia-earth/bulma-tagsinput": "^1.0.5",
|
|
27
|
+
"@hestia-earth/schema": "^7.5.1",
|
|
28
|
+
"@hestia-earth/schema-convert": "^7.5.1",
|
|
29
|
+
"@hestia-earth/json-schema": "^7.5.1",
|
|
30
|
+
"@hestia-earth/ui-framework": "^1.11.0",
|
|
31
|
+
"@hestia-earth/utils": "^0.10.11",
|
|
32
|
+
"@ng-bootstrap/ng-bootstrap": "^8.0.4",
|
|
33
|
+
"chart.js": "^2.9.4",
|
|
34
|
+
"chartjs-plugin-datalabels": "^1.0.0",
|
|
35
|
+
"jsondiffpatch": "^0.4.1",
|
|
36
|
+
"lodash.get": "^4.4.2",
|
|
37
|
+
"lodash.omit": "^4.5.0",
|
|
38
|
+
"lodash.orderby": "^4.6.0",
|
|
39
|
+
"pluralize": "^8.0.0",
|
|
40
|
+
"random-material-color": "^1.0.5",
|
|
41
|
+
"ts-clipboard": "^1.0.17"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"tslib": "^2.3.0"
|
|
45
|
+
},
|
|
46
|
+
"main": "bundles/hestia-earth-ui-components.umd.js",
|
|
47
|
+
"module": "fesm2015/hestia-earth-ui-components.js",
|
|
48
|
+
"es2015": "fesm2015/hestia-earth-ui-components.js",
|
|
49
|
+
"esm2015": "esm2015/hestia-earth-ui-components.js",
|
|
50
|
+
"fesm2015": "fesm2015/hestia-earth-ui-components.js",
|
|
51
|
+
"typings": "hestia-earth-ui-components.d.ts",
|
|
52
|
+
"sideEffects": false
|
|
53
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './auth/public-api';
|
|
2
|
+
export * from './bibliographies/public-api';
|
|
3
|
+
export * from './common/public-api';
|
|
4
|
+
export * from './cycles/public-api';
|
|
5
|
+
export * from './engine/public-api';
|
|
6
|
+
export * from './files/public-api';
|
|
7
|
+
export * from './fontawesome/public-api';
|
|
8
|
+
export * from './impact-assessments/public-api';
|
|
9
|
+
export * from './mendeley/public-api';
|
|
10
|
+
export * from './node/public-api';
|
|
11
|
+
export * from './schema/public-api';
|
|
12
|
+
export * from './search/public-api';
|
|
13
|
+
export * from './sites/public-api';
|
|
14
|
+
export * from './terms/public-api';
|
|
15
|
+
export * from './users/public-api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './schema.service';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { SchemaType, NodeType, sortConfig } from '@hestia-earth/schema';
|
|
3
|
+
import { definitions, definition, IDefinitionObject } from '@hestia-earth/json-schema';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const linkTypeEnabled: (type: SchemaType | NodeType) => boolean;
|
|
6
|
+
export declare const refToSchemaType: (ref?: string) => string;
|
|
7
|
+
export declare const definitionToSchemaType: ({ title, $ref }: IDefinitionObject) => SchemaType;
|
|
8
|
+
export declare const schemaRequiredProperties: (schemas: definitions, def: IDefinitionObject) => {
|
|
9
|
+
schemaType: SchemaType;
|
|
10
|
+
properties: {
|
|
11
|
+
key: string;
|
|
12
|
+
value: definition;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
export declare const valueTypeToDefault: {
|
|
16
|
+
number: string;
|
|
17
|
+
integer: string;
|
|
18
|
+
boolean: boolean;
|
|
19
|
+
string: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const nestingTypeEnabled: (schemaType: SchemaType) => boolean;
|
|
22
|
+
export declare const nestingEnabled: (schemaType: SchemaType, key: string) => boolean;
|
|
23
|
+
export declare const schemaTypeToDefaultValue: (schemas: definitions, prop: definition, nested?: boolean) => any;
|
|
24
|
+
export declare const availableProperties: (schema: definition, schemaType: SchemaType, value: any, isTopLevel?: boolean, skipExistingNode?: boolean) => any;
|
|
25
|
+
export declare const isSchemaIri: (schema?: IDefinitionObject | undefined) => boolean;
|
|
26
|
+
export declare class HeSchemaService {
|
|
27
|
+
private http;
|
|
28
|
+
private schemasLoading;
|
|
29
|
+
private schemasLoaded;
|
|
30
|
+
private _schemas;
|
|
31
|
+
private sortConfigLoading;
|
|
32
|
+
private sortConfigLoaded;
|
|
33
|
+
private _sortConfig;
|
|
34
|
+
constructor(http: HttpClient);
|
|
35
|
+
private loadSchemas;
|
|
36
|
+
get schemas$(): import("rxjs").Observable<definitions>;
|
|
37
|
+
schemas(): Promise<definitions>;
|
|
38
|
+
private loadSortConfig;
|
|
39
|
+
get sortConfig$(): import("rxjs").Observable<sortConfig>;
|
|
40
|
+
sortConfig(): Promise<sortConfig>;
|
|
41
|
+
/**
|
|
42
|
+
* Parse and sort (if possible) headers from CSV content according to the schema order.
|
|
43
|
+
* This will load the sort configuration according to the current schema version.
|
|
44
|
+
*
|
|
45
|
+
* @param csvContent The content as a string
|
|
46
|
+
* @returns List of strings as Observable when parsing / sorting is done.
|
|
47
|
+
*/
|
|
48
|
+
parseHeaders(csvContent: string): Promise<string[]>;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeSchemaService, never>;
|
|
50
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HeSchemaService>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { NodeType, TermTermType } from '@hestia-earth/schema';
|
|
2
|
+
export declare type searchableType = NodeType.Cycle | NodeType.Source;
|
|
3
|
+
export declare const searchableTypes: searchableType[];
|
|
4
|
+
declare type multiMatchType = 'best_fields' | 'most_fields' | 'cross_fields' | 'phrase' | 'phrase_prefix' | 'bool_prefix';
|
|
5
|
+
export interface ISearchFilters {
|
|
6
|
+
[key: string]: (string | number)[];
|
|
7
|
+
}
|
|
8
|
+
export declare const serializeSearchFilters: (filters: ISearchFilters) => string;
|
|
9
|
+
export declare const deserializeSearchFilters: (filters: string) => ISearchFilters;
|
|
10
|
+
export declare const matchType: (type: NodeType | string) => Readonly<{
|
|
11
|
+
match: {
|
|
12
|
+
'@type': string;
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
15
|
+
export declare const matchTermType: (termType: TermTermType | string) => Readonly<{
|
|
16
|
+
match: {
|
|
17
|
+
termType: string;
|
|
18
|
+
};
|
|
19
|
+
}>;
|
|
20
|
+
export declare const matchRegex: (key: string, value: string | RegExp) => Readonly<{
|
|
21
|
+
regexp: {
|
|
22
|
+
[x: string]: {
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}>;
|
|
27
|
+
export declare const matchQuery: (key: string, value: any, boost?: number | undefined) => Readonly<{
|
|
28
|
+
match: {
|
|
29
|
+
[x: string]: {
|
|
30
|
+
boost?: number | undefined;
|
|
31
|
+
query: any;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
export declare const matchExactQuery: (key: string, value: any, boost?: number | undefined) => Readonly<{
|
|
36
|
+
match: {
|
|
37
|
+
[x: string]: {
|
|
38
|
+
boost?: number | undefined;
|
|
39
|
+
query: any;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}>;
|
|
43
|
+
export declare const matchNameNormalized: (query: string, boost?: number) => Readonly<{
|
|
44
|
+
match: {
|
|
45
|
+
nameNormalized: {
|
|
46
|
+
query: string;
|
|
47
|
+
boost: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
export declare const numberGte: (key: string, value: number) => Readonly<{
|
|
52
|
+
range: {
|
|
53
|
+
[x: string]: {
|
|
54
|
+
gte: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
export declare const multiMatchQuery: (query: string, fields: string[], type?: multiMatchType, boost?: number | undefined, analyzer?: "standard" | undefined) => Readonly<{
|
|
59
|
+
multi_match: {
|
|
60
|
+
analyzer?: "standard" | undefined;
|
|
61
|
+
boost?: number | undefined;
|
|
62
|
+
query: string;
|
|
63
|
+
fields: string[];
|
|
64
|
+
type: multiMatchType;
|
|
65
|
+
};
|
|
66
|
+
}>;
|
|
67
|
+
export declare const matchPhraseQuery: (query: string, boost?: number | undefined, ...fields: string[]) => Readonly<{
|
|
68
|
+
match: {
|
|
69
|
+
[x: string]: {
|
|
70
|
+
boost?: number | undefined;
|
|
71
|
+
query: any;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
}> | Readonly<{
|
|
75
|
+
multi_match: {
|
|
76
|
+
analyzer?: "standard" | undefined;
|
|
77
|
+
boost?: number | undefined;
|
|
78
|
+
query: string;
|
|
79
|
+
fields: string[];
|
|
80
|
+
type: multiMatchType;
|
|
81
|
+
};
|
|
82
|
+
}>;
|
|
83
|
+
export declare const matchPhrasePrefixQuery: (query: string, boost?: number, ...fields: string[]) => Readonly<{
|
|
84
|
+
multi_match: {
|
|
85
|
+
analyzer?: "standard" | undefined;
|
|
86
|
+
boost?: number | undefined;
|
|
87
|
+
query: string;
|
|
88
|
+
fields: string[];
|
|
89
|
+
type: multiMatchType;
|
|
90
|
+
};
|
|
91
|
+
}> | Readonly<{
|
|
92
|
+
match_phrase_prefix: {
|
|
93
|
+
nameSearchAsYouType: {
|
|
94
|
+
query: string;
|
|
95
|
+
boost: number;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}>;
|
|
99
|
+
export declare const matchBoolPrefixQuery: (query: string, boost?: number, ...fields: string[]) => Readonly<{
|
|
100
|
+
multi_match: {
|
|
101
|
+
analyzer?: "standard" | undefined;
|
|
102
|
+
boost?: number | undefined;
|
|
103
|
+
query: string;
|
|
104
|
+
fields: string[];
|
|
105
|
+
type: multiMatchType;
|
|
106
|
+
};
|
|
107
|
+
}> | Readonly<{
|
|
108
|
+
match_bool_prefix: {
|
|
109
|
+
name: {
|
|
110
|
+
query: string;
|
|
111
|
+
boost: number;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}>;
|
|
115
|
+
export declare const wildcardQuery: (query: string, boost?: number, ...fields: string[]) => Readonly<{
|
|
116
|
+
simple_query_string: {
|
|
117
|
+
query: string;
|
|
118
|
+
fields: string[];
|
|
119
|
+
analyze_wildcard: boolean;
|
|
120
|
+
boost: number;
|
|
121
|
+
};
|
|
122
|
+
}>;
|
|
123
|
+
export declare const matchGlobalRegion: {
|
|
124
|
+
regexp: {
|
|
125
|
+
'@id': string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export declare const matchCountry: Readonly<{
|
|
129
|
+
bool: {
|
|
130
|
+
should: ({
|
|
131
|
+
match: {
|
|
132
|
+
gadmLevel: number;
|
|
133
|
+
};
|
|
134
|
+
} | {
|
|
135
|
+
regexp: {
|
|
136
|
+
'@id': string;
|
|
137
|
+
};
|
|
138
|
+
})[];
|
|
139
|
+
minimum_should_match: number;
|
|
140
|
+
};
|
|
141
|
+
}>;
|
|
142
|
+
export declare const countriesQuery: Readonly<{
|
|
143
|
+
bool: {
|
|
144
|
+
must: ({
|
|
145
|
+
match: {
|
|
146
|
+
gadmLevel: number;
|
|
147
|
+
};
|
|
148
|
+
} | Readonly<{
|
|
149
|
+
match: {
|
|
150
|
+
'@type': string;
|
|
151
|
+
};
|
|
152
|
+
}> | Readonly<{
|
|
153
|
+
match: {
|
|
154
|
+
termType: string;
|
|
155
|
+
};
|
|
156
|
+
}>)[];
|
|
157
|
+
};
|
|
158
|
+
}>;
|
|
159
|
+
export declare const allCountriesQuery: Readonly<{
|
|
160
|
+
bool: {
|
|
161
|
+
should: ({
|
|
162
|
+
match: {
|
|
163
|
+
gadmLevel: number;
|
|
164
|
+
};
|
|
165
|
+
} | {
|
|
166
|
+
regexp: {
|
|
167
|
+
'@id': string;
|
|
168
|
+
};
|
|
169
|
+
})[];
|
|
170
|
+
minimum_should_match: number;
|
|
171
|
+
must: (Readonly<{
|
|
172
|
+
match: {
|
|
173
|
+
'@type': string;
|
|
174
|
+
};
|
|
175
|
+
}> | Readonly<{
|
|
176
|
+
match: {
|
|
177
|
+
termType: string;
|
|
178
|
+
};
|
|
179
|
+
}>)[];
|
|
180
|
+
};
|
|
181
|
+
}>;
|
|
182
|
+
export declare const matchRegion: Readonly<{
|
|
183
|
+
range: {
|
|
184
|
+
[x: string]: {
|
|
185
|
+
gte: number;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
}>;
|
|
189
|
+
export declare const regionsQuery: Readonly<{
|
|
190
|
+
bool: {
|
|
191
|
+
must: (Readonly<{
|
|
192
|
+
match: {
|
|
193
|
+
'@type': string;
|
|
194
|
+
};
|
|
195
|
+
}> | Readonly<{
|
|
196
|
+
match: {
|
|
197
|
+
termType: string;
|
|
198
|
+
};
|
|
199
|
+
}> | Readonly<{
|
|
200
|
+
range: {
|
|
201
|
+
[x: string]: {
|
|
202
|
+
gte: number;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
}>)[];
|
|
206
|
+
};
|
|
207
|
+
}>;
|
|
208
|
+
export declare const worldRegion: Readonly<{
|
|
209
|
+
'@id': string;
|
|
210
|
+
name: string;
|
|
211
|
+
}>;
|
|
212
|
+
export declare const cropsQuery: Readonly<{
|
|
213
|
+
bool: {
|
|
214
|
+
must: (Readonly<{
|
|
215
|
+
match: {
|
|
216
|
+
'@type': string;
|
|
217
|
+
};
|
|
218
|
+
}> | Readonly<{
|
|
219
|
+
match: {
|
|
220
|
+
termType: string;
|
|
221
|
+
};
|
|
222
|
+
}>)[];
|
|
223
|
+
};
|
|
224
|
+
}>;
|
|
225
|
+
export declare const matchAggregatedQuery: Readonly<{
|
|
226
|
+
match: {
|
|
227
|
+
[x: string]: {
|
|
228
|
+
boost?: number | undefined;
|
|
229
|
+
query: any;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
}>;
|
|
233
|
+
export declare const matchNestedKey: (key: string, query: any) => any;
|
|
234
|
+
/**
|
|
235
|
+
* List of fields to return in the search results.
|
|
236
|
+
*/
|
|
237
|
+
export declare const searchResultsFields: {
|
|
238
|
+
[type in searchableType]: string[];
|
|
239
|
+
};
|
|
240
|
+
export declare const searchQuery: (type: searchableType, query?: string | undefined, filters?: ISearchFilters | undefined, aggregated?: boolean | undefined) => {
|
|
241
|
+
bool: any;
|
|
242
|
+
};
|
|
243
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export { HeSearchService } from './search.service';
|
|
3
|
+
export declare class HeSearchModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeSearchModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HeSearchModule, never, never, never>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HeSearchModule>;
|
|
7
|
+
}
|