@hestia-earth/ui-components 0.0.7 → 0.0.10
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 +5 -22
- package/bibliographies/bibliographies-search-confirm/bibliographies-search-confirm.component.d.ts +1 -1
- package/bundles/hestia-earth-ui-components.umd.js +2339 -806
- package/bundles/hestia-earth-ui-components.umd.js.map +1 -1
- package/common/blank-node-state/blank-node-state.component.d.ts +2 -2
- package/common/common.light.module.d.ts +19 -0
- package/common/common.module.d.ts +10 -19
- package/common/delta-utils.d.ts +1 -1
- package/common/index.d.ts +1 -0
- package/common/link-key-value/link-key-value.component.d.ts +1 -1
- package/common/maps-utils.d.ts +2 -2
- package/common/precision.pipe.d.ts +1 -1
- package/common/tags-input.directive.d.ts +1 -1
- package/common/utils.d.ts +7 -7
- package/cycles/cycles-emissions-chart/cycles-emissions-chart.component.d.ts +2 -2
- package/cycles/cycles-suggest-form/cycles-suggest-form.component.d.ts +1 -2
- package/cycles/cycles.model.d.ts +1 -1
- package/engine/aggregation-engine.service.d.ts +2 -2
- package/engine/engine.service.d.ts +5 -4
- package/esm2015/common/common.light.module.js +66 -0
- package/esm2015/common/common.module.js +11 -47
- package/esm2015/common/index.js +2 -1
- package/esm2015/common/tags-input.directive.js +3 -3
- package/esm2015/common/utils.js +1 -2
- package/esm2015/engine/engine.service.js +10 -6
- package/esm2015/tags-input/defaultOptions.js +26 -0
- package/esm2015/tags-input/index.js +1053 -0
- package/esm2015/tags-input/templates/dropdown-item.js +3 -0
- package/esm2015/tags-input/templates/tag.js +6 -0
- package/esm2015/tags-input/templates/wrapper.js +10 -0
- package/esm2015/tags-input/utils/component.js +80 -0
- package/esm2015/tags-input/utils/dom.js +98 -0
- package/esm2015/tags-input/utils/events.js +147 -0
- package/esm2015/tags-input/utils/type.js +41 -0
- package/esm2015/tags-input/utils/uuid.js +3 -0
- package/fesm2015/hestia-earth-ui-components.js +1977 -499
- package/fesm2015/hestia-earth-ui-components.js.map +1 -1
- package/files/files-error.model.d.ts +5 -5
- package/files/files-form/files-form.component.d.ts +7 -7
- package/files/files-form.model.d.ts +10 -10
- package/impact-assessments/impact-assessments-indicators-chart/impact-assessments-indicators-chart.component.d.ts +2 -2
- package/impact-assessments/impact-assessments-products/impact-assessments-products.component.d.ts +2 -2
- package/node/node-icon/node-icon.component.d.ts +1 -1
- package/node/node-link/node-link.component.d.ts +1 -1
- package/node/node-logs-models/node-logs-models.component.d.ts +1 -1
- package/node/node.service.d.ts +2 -2
- package/package.json +1 -2
- package/schema/schema.service.d.ts +1 -1
- package/search/search.model.d.ts +18 -17
- package/search/search.service.d.ts +7 -7
- package/sites/sites-maps/sites-maps.component.d.ts +1 -1
- package/sites/sites-measurements/sites-measurements.component.d.ts +1 -1
- package/sites/sites.model.d.ts +1 -1
- package/styles.scss +1 -1
- package/tags-input/defaultOptions.d.ts +25 -0
- package/tags-input/index.d.ts +277 -0
- package/tags-input/styles.sass +154 -0
- package/tags-input/templates/dropdown-item.d.ts +2 -0
- package/tags-input/templates/tag.d.ts +2 -0
- package/tags-input/templates/wrapper.d.ts +2 -0
- package/tags-input/utils/component.d.ts +22 -0
- package/tags-input/utils/dom.d.ts +38 -0
- package/tags-input/utils/events.d.ts +72 -0
- package/tags-input/utils/type.d.ts +17 -0
- package/tags-input/utils/uuid.d.ts +2 -0
- package/terms/terms.model.d.ts +1 -1
|
@@ -27,13 +27,13 @@ export declare const nodeLink: ({ "@type": type, "@id": id, name }: {
|
|
|
27
27
|
"@type": any;
|
|
28
28
|
"@id": any;
|
|
29
29
|
name: any;
|
|
30
|
-
}) => string
|
|
30
|
+
}) => string;
|
|
31
31
|
export declare const code: (text: string | number | boolean) => string;
|
|
32
32
|
export declare const missingNodeErrorMessage: ({ "@type": _t, type, name }: any) => string;
|
|
33
|
-
export declare const formatCustomErrorMessage: (message?: string
|
|
34
|
-
export declare const formatError: (error?: IValidationError
|
|
35
|
-
export declare const errorHasError: (error?: IValidationError
|
|
36
|
-
export declare const errorHasWarning: (error?: IValidationError
|
|
33
|
+
export declare const formatCustomErrorMessage: (message?: string, error?: IValidationError, errorCount?: number) => string;
|
|
34
|
+
export declare const formatError: (error?: IValidationError, errorCount?: number) => IValidationError | undefined;
|
|
35
|
+
export declare const errorHasError: (error?: IValidationError) => boolean;
|
|
36
|
+
export declare const errorHasWarning: (error?: IValidationError) => boolean;
|
|
37
37
|
export declare const isMissingPropertyError: ({ params }: IValidationError) => boolean;
|
|
38
38
|
export declare const isMissingOneOfError: ({ keyword, schemaPath }: IValidationError) => boolean;
|
|
39
39
|
export declare const filterError: (error: IValidationError) => boolean;
|
|
@@ -46,8 +46,8 @@ export declare class FilesFormComponent implements OnInit {
|
|
|
46
46
|
ngOnInit(): void;
|
|
47
47
|
trackByIndex(index: number, _value: any): number;
|
|
48
48
|
trackByProperty(_index: number, { id, fullKey }: INodeProperty): string;
|
|
49
|
-
hasAddons(property: INodeProperty): string | number | boolean
|
|
50
|
-
isRequired({ value, isRequired }: INodeProperty): boolean
|
|
49
|
+
hasAddons(property: INodeProperty): string | number | boolean;
|
|
50
|
+
isRequired({ value, isRequired }: INodeProperty): boolean;
|
|
51
51
|
enableAddError(property: INodeProperty): boolean;
|
|
52
52
|
addError(property: INodeProperty, { message, level }: IErrorProperty): void;
|
|
53
53
|
editError(property: INodeProperty): void;
|
|
@@ -65,19 +65,19 @@ export declare class FilesFormComponent implements OnInit {
|
|
|
65
65
|
}, property: INodeProperty): void;
|
|
66
66
|
addArrayGroup(array: INodeProperty): void;
|
|
67
67
|
duplicateArrayGroup(array: INodeProperty, property: INodeProperty): void;
|
|
68
|
-
removeArrayGroup(array: INodeProperty, { key }: INodeProperty): void
|
|
68
|
+
removeArrayGroup(array: INodeProperty, { key }: INodeProperty): void;
|
|
69
69
|
private moveArrayGroupToPosition;
|
|
70
70
|
moveArrayGroupUp(array: INodeProperty, { key }: INodeProperty): void;
|
|
71
71
|
moveArrayGroupDown(array: INodeProperty, { key }: INodeProperty): void;
|
|
72
72
|
propertyChanged(value: any, property: INodeProperty): void;
|
|
73
73
|
private addDefaultProperty;
|
|
74
|
-
addMissingProperty(property: INodeProperty): void
|
|
74
|
+
addMissingProperty(property: INodeProperty): void;
|
|
75
75
|
addProperty(property: INodeProperty): void;
|
|
76
76
|
private updatePropertyCoordinates;
|
|
77
77
|
get showMap(): boolean;
|
|
78
78
|
mapDrawingModes({ key }: INodeProperty): google.maps.drawing.OverlayType[];
|
|
79
|
-
onMapDrawingClosed(newValue: any): void |
|
|
80
|
-
bibliographiesSearchKey({ key, schemaType }: INodeProperty): string
|
|
79
|
+
onMapDrawingClosed(newValue: any): void | void[];
|
|
80
|
+
bibliographiesSearchKey({ key, schemaType }: INodeProperty): string;
|
|
81
81
|
private updateBibliography;
|
|
82
82
|
private updateSource;
|
|
83
83
|
get bibliographiesSearchSources(): boolean;
|
|
@@ -87,7 +87,7 @@ export declare class FilesFormComponent implements OnInit {
|
|
|
87
87
|
calculateCycleDuration(property: INodeProperty): void;
|
|
88
88
|
calculateCycleStartDateEnabled(property: INodeProperty): boolean;
|
|
89
89
|
calculateCycleStartDate(property: INodeProperty): void;
|
|
90
|
-
unitConverterEnabled(property: INodeProperty): boolean
|
|
90
|
+
unitConverterEnabled(property: INodeProperty): boolean;
|
|
91
91
|
openUnitConverter(popover: any, property: INodeProperty): any;
|
|
92
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilesFormComponent, never>;
|
|
93
93
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilesFormComponent, "he-files-form", never, { "schemas": "schemas"; "errors": "errors"; "node": "node"; "nodeMap": "nodeMap"; "editable": "editable"; "errorMode": "errorMode"; "deepEditable": "deepEditable"; "errorsEditable": "errorsEditable"; }, { "nodeChange": "nodeChange"; "nodeErorrResolved": "nodeErorrResolved"; "nodeErrorAdded": "nodeErrorAdded"; }, never, never>;
|
|
@@ -71,13 +71,13 @@ export declare const formatPropertyError: (errors: any, property: INodeProperty)
|
|
|
71
71
|
export declare const hasError: (value: any) => any;
|
|
72
72
|
export declare const hasWarning: (value: any) => any;
|
|
73
73
|
export declare const formatLinkNodesSuggestions: (nodeMap: {
|
|
74
|
-
Actor?: string[]
|
|
75
|
-
Cycle?: string[]
|
|
76
|
-
ImpactAssessment?: string[]
|
|
77
|
-
Organisation?: string[]
|
|
78
|
-
Site?: string[]
|
|
79
|
-
Source?: string[]
|
|
80
|
-
Term?: string[]
|
|
74
|
+
Actor?: string[];
|
|
75
|
+
Cycle?: string[];
|
|
76
|
+
ImpactAssessment?: string[];
|
|
77
|
+
Organisation?: string[];
|
|
78
|
+
Site?: string[];
|
|
79
|
+
Source?: string[];
|
|
80
|
+
Term?: string[];
|
|
81
81
|
}, type: NodeType) => {
|
|
82
82
|
type: NodeType;
|
|
83
83
|
id: string;
|
|
@@ -95,15 +95,15 @@ export declare const propertyId: () => any;
|
|
|
95
95
|
* @returns Value in the correct format.
|
|
96
96
|
*/
|
|
97
97
|
export declare const parseNewValue: (schema: definition, value: any) => any;
|
|
98
|
-
export declare const propertyError: (errors: IValidationError[]) => (dataPath: string, nonExpandableArray?: boolean) => IValidationError
|
|
98
|
+
export declare const propertyError: (errors: IValidationError[]) => (dataPath: string, nonExpandableArray?: boolean) => IValidationError;
|
|
99
99
|
export declare const singleProperty: (schemas: definitions, errors: IValidationError[], node: any, fullKey: string) => INodeProperty;
|
|
100
100
|
export declare const recursiveProperties: (schemas: definitions, errors: IValidationError[], nodeSchema: definition, deepEditable: boolean, parent?: string) => (node: any) => INodeProperty[];
|
|
101
101
|
export declare const updateProperties: ({ properties }: Partial<INodeProperty>, updater: (prop: INodeProperty) => INodeProperty) => any;
|
|
102
102
|
export declare const typeToNewProperty: (schemas: definitions, schema: definition, nodeSchema: definition, node: any, fullKey: string) => INodeProperty;
|
|
103
103
|
export declare const findProperty: (properties: INodeProperty[], fullKey: string) => any;
|
|
104
104
|
export declare const parentProperty: (properties: INodeProperty[], property: INodeProperty) => INodeProperty;
|
|
105
|
-
export declare const nestedProperty: ({ properties }: INodeProperty, nestedKey: string) => INodeProperty
|
|
106
|
-
export declare const siblingProperty: (properties: INodeProperty[], property: INodeProperty, siblingKey: string) => INodeProperty
|
|
105
|
+
export declare const nestedProperty: ({ properties }: INodeProperty, nestedKey: string) => INodeProperty;
|
|
106
|
+
export declare const siblingProperty: (properties: INodeProperty[], property: INodeProperty, siblingKey: string) => INodeProperty;
|
|
107
107
|
export declare const groupChanged: (properties: INodeProperty[], key: string, value?: any) => void;
|
|
108
108
|
export declare const refreshPropertyKeys: (property: INodeProperty) => any;
|
|
109
109
|
export declare const calculateCycleDurationEnabled: (properties: INodeProperty[], property: INodeProperty) => boolean;
|
|
@@ -13,8 +13,8 @@ export declare class ImpactAssessmentsIndicatorsChartComponent implements AfterV
|
|
|
13
13
|
indicatorPerImpactAssessment: IGroupedNodes<Indicator>;
|
|
14
14
|
terms: Term[];
|
|
15
15
|
selectedTerm?: Term;
|
|
16
|
-
ngAfterViewInit(): void
|
|
17
|
-
ngOnChanges(changes: SimpleChanges): void
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
18
18
|
private termAllowed;
|
|
19
19
|
private init;
|
|
20
20
|
private updateBarChart;
|
package/impact-assessments/impact-assessments-products/impact-assessments-products.component.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { OnChanges, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { FormBuilder } from '@angular/forms';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { DataState } from '@hestia-earth/api';
|
|
5
|
-
import {
|
|
5
|
+
import { IImpactAssessmentJSONLD, Indicator, TermTermType, Term } from '@hestia-earth/schema';
|
|
6
6
|
import { HeNodeService } from '../../node/node.service';
|
|
7
7
|
import { HeSearchService } from '../../search/search.service';
|
|
8
8
|
import { HeToastService } from '../../common/toast.service';
|
|
@@ -43,7 +43,7 @@ export declare class ImpactAssessmentsProductsComponent implements OnChanges {
|
|
|
43
43
|
formatter: ({ "@id": id }: {
|
|
44
44
|
"@id": any;
|
|
45
45
|
}) => any;
|
|
46
|
-
suggestImpactAssessment: (text$: Observable<string>) => Observable<
|
|
46
|
+
suggestImpactAssessment: (text$: Observable<string>) => Observable<any[]>;
|
|
47
47
|
constructor(formBuilder: FormBuilder, nodeService: HeNodeService, searchService: HeSearchService, toastService: HeToastService);
|
|
48
48
|
ngOnChanges(changes: SimpleChanges): void | Promise<void>;
|
|
49
49
|
trackById(_index: number, item: IImpactAssessmentJSONLD): string;
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class NodeIconComponent {
|
|
3
3
|
private type?;
|
|
4
4
|
size: string;
|
|
5
|
-
get icon(): string
|
|
5
|
+
get icon(): string;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NodeIconComponent, never>;
|
|
7
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<NodeIconComponent, "he-node-icon", never, { "type": "type"; "size": "size"; }, {}, never, never>;
|
|
8
8
|
}
|
|
@@ -4,7 +4,7 @@ export declare class NodeLinkComponent {
|
|
|
4
4
|
node?: JSONLD<NodeType>;
|
|
5
5
|
showExternalLink: boolean;
|
|
6
6
|
baseUrl: string;
|
|
7
|
-
get showLink(): boolean
|
|
7
|
+
get showLink(): boolean;
|
|
8
8
|
get target(): "_blank" | "_self";
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<NodeLinkComponent, never>;
|
|
10
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<NodeLinkComponent, "he-node-link", never, { "node": "node"; "showExternalLink": "showExternalLink"; }, {}, never, ["*"]>;
|
|
@@ -62,7 +62,7 @@ export declare class NodeLogsModelsComponent implements OnInit {
|
|
|
62
62
|
hasLog({ logs }: IBlankNodeLog, methodId: string): boolean;
|
|
63
63
|
hasLogDetails({ logs }: IBlankNodeLog, methodId: string): number | {
|
|
64
64
|
[key: string]: any;
|
|
65
|
-
}
|
|
65
|
+
};
|
|
66
66
|
logColor(node: IBlankNodeLog, methodId: string): "success" | "danger" | "dark";
|
|
67
67
|
requirementColor(value: any): "danger" | "white";
|
|
68
68
|
filterResults(): void;
|
package/node/node.service.d.ts
CHANGED
|
@@ -72,8 +72,8 @@ export declare class HeNodeService {
|
|
|
72
72
|
nodeTypeUrl(type: any): string;
|
|
73
73
|
nodeUrl(node: IJSONNode): string;
|
|
74
74
|
nodeLogsUrl(node: IJSONNode): string;
|
|
75
|
-
downloadLookup(filename: string): Promise<string
|
|
76
|
-
lookupLink(termType: TermTermType): Promise<string
|
|
75
|
+
downloadLookup(filename: string): Promise<string>;
|
|
76
|
+
lookupLink(termType: TermTermType): Promise<string>;
|
|
77
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeNodeService, never>;
|
|
78
78
|
static ɵprov: i0.ɵɵInjectableDeclaration<HeNodeService>;
|
|
79
79
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hestia-earth/ui-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "Hestia reusable components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
|
24
24
|
"@google/markerclustererplus": "^5.1.3",
|
|
25
25
|
"@hestia-earth/api": ">=0.9.0",
|
|
26
|
-
"@hestia-earth/bulma-tagsinput": "^1.0.5",
|
|
27
26
|
"@hestia-earth/schema": "^7.5.0",
|
|
28
27
|
"@hestia-earth/schema-convert": "^7.5.0",
|
|
29
28
|
"@hestia-earth/json-schema": "^7.5.0",
|
|
@@ -22,7 +22,7 @@ export declare const nestingTypeEnabled: (schemaType: SchemaType) => boolean;
|
|
|
22
22
|
export declare const nestingEnabled: (schemaType: SchemaType, key: string) => boolean;
|
|
23
23
|
export declare const schemaTypeToDefaultValue: (schemas: definitions, prop: definition, nested?: boolean) => any;
|
|
24
24
|
export declare const availableProperties: (schema: definition, schemaType: SchemaType, value: any, isTopLevel?: boolean, skipExistingNode?: boolean) => any;
|
|
25
|
-
export declare const isSchemaIri: (schema?: IDefinitionObject
|
|
25
|
+
export declare const isSchemaIri: (schema?: IDefinitionObject) => boolean;
|
|
26
26
|
export declare class HeSchemaService {
|
|
27
27
|
protected http: HttpClient;
|
|
28
28
|
private schemasLoading;
|
package/search/search.model.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { NodeType, TermTermType } from '@hestia-earth/schema';
|
|
|
2
2
|
export declare type searchableType = NodeType.Cycle | NodeType.Source;
|
|
3
3
|
export declare const searchableTypes: searchableType[];
|
|
4
4
|
declare type multiMatchType = 'best_fields' | 'most_fields' | 'cross_fields' | 'phrase' | 'phrase_prefix' | 'bool_prefix';
|
|
5
|
+
declare type multiMatchAnalyzer = 'standard';
|
|
5
6
|
export interface ISearchFilters {
|
|
6
7
|
[key: string]: (string | number)[];
|
|
7
8
|
}
|
|
@@ -24,18 +25,18 @@ export declare const matchRegex: (key: string, value: string | RegExp) => Readon
|
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
27
|
}>;
|
|
27
|
-
export declare const matchQuery: (key: string, value: any, boost?: number
|
|
28
|
+
export declare const matchQuery: (key: string, value: any, boost?: number) => Readonly<{
|
|
28
29
|
match: {
|
|
29
30
|
[x: string]: {
|
|
30
|
-
boost?: number
|
|
31
|
+
boost?: number;
|
|
31
32
|
query: any;
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
35
|
}>;
|
|
35
|
-
export declare const matchExactQuery: (key: string, value: any, boost?: number
|
|
36
|
+
export declare const matchExactQuery: (key: string, value: any, boost?: number) => Readonly<{
|
|
36
37
|
match: {
|
|
37
38
|
[x: string]: {
|
|
38
|
-
boost?: number
|
|
39
|
+
boost?: number;
|
|
39
40
|
query: any;
|
|
40
41
|
};
|
|
41
42
|
};
|
|
@@ -55,26 +56,26 @@ export declare const numberGte: (key: string, value: number) => Readonly<{
|
|
|
55
56
|
};
|
|
56
57
|
};
|
|
57
58
|
}>;
|
|
58
|
-
export declare const multiMatchQuery: (query: string, fields: string[], type?: multiMatchType, boost?: number
|
|
59
|
+
export declare const multiMatchQuery: (query: string, fields: string[], type?: multiMatchType, boost?: number, analyzer?: multiMatchAnalyzer) => Readonly<{
|
|
59
60
|
multi_match: {
|
|
60
|
-
analyzer?: "standard"
|
|
61
|
-
boost?: number
|
|
61
|
+
analyzer?: "standard";
|
|
62
|
+
boost?: number;
|
|
62
63
|
query: string;
|
|
63
64
|
fields: string[];
|
|
64
65
|
type: multiMatchType;
|
|
65
66
|
};
|
|
66
67
|
}>;
|
|
67
|
-
export declare const matchPhraseQuery: (query: string, boost?: number
|
|
68
|
+
export declare const matchPhraseQuery: (query: string, boost?: number, ...fields: string[]) => Readonly<{
|
|
68
69
|
match: {
|
|
69
70
|
[x: string]: {
|
|
70
|
-
boost?: number
|
|
71
|
+
boost?: number;
|
|
71
72
|
query: any;
|
|
72
73
|
};
|
|
73
74
|
};
|
|
74
75
|
}> | Readonly<{
|
|
75
76
|
multi_match: {
|
|
76
|
-
analyzer?: "standard"
|
|
77
|
-
boost?: number
|
|
77
|
+
analyzer?: "standard";
|
|
78
|
+
boost?: number;
|
|
78
79
|
query: string;
|
|
79
80
|
fields: string[];
|
|
80
81
|
type: multiMatchType;
|
|
@@ -82,8 +83,8 @@ export declare const matchPhraseQuery: (query: string, boost?: number | undefine
|
|
|
82
83
|
}>;
|
|
83
84
|
export declare const matchPhrasePrefixQuery: (query: string, boost?: number, ...fields: string[]) => Readonly<{
|
|
84
85
|
multi_match: {
|
|
85
|
-
analyzer?: "standard"
|
|
86
|
-
boost?: number
|
|
86
|
+
analyzer?: "standard";
|
|
87
|
+
boost?: number;
|
|
87
88
|
query: string;
|
|
88
89
|
fields: string[];
|
|
89
90
|
type: multiMatchType;
|
|
@@ -98,8 +99,8 @@ export declare const matchPhrasePrefixQuery: (query: string, boost?: number, ...
|
|
|
98
99
|
}>;
|
|
99
100
|
export declare const matchBoolPrefixQuery: (query: string, boost?: number, ...fields: string[]) => Readonly<{
|
|
100
101
|
multi_match: {
|
|
101
|
-
analyzer?: "standard"
|
|
102
|
-
boost?: number
|
|
102
|
+
analyzer?: "standard";
|
|
103
|
+
boost?: number;
|
|
103
104
|
query: string;
|
|
104
105
|
fields: string[];
|
|
105
106
|
type: multiMatchType;
|
|
@@ -225,7 +226,7 @@ export declare const cropsQuery: Readonly<{
|
|
|
225
226
|
export declare const matchAggregatedQuery: Readonly<{
|
|
226
227
|
match: {
|
|
227
228
|
[x: string]: {
|
|
228
|
-
boost?: number
|
|
229
|
+
boost?: number;
|
|
229
230
|
query: any;
|
|
230
231
|
};
|
|
231
232
|
};
|
|
@@ -237,7 +238,7 @@ export declare const matchNestedKey: (key: string, query: any) => any;
|
|
|
237
238
|
export declare const searchResultsFields: {
|
|
238
239
|
[type in searchableType]: string[];
|
|
239
240
|
};
|
|
240
|
-
export declare const searchQuery: (type: searchableType, query?: string
|
|
241
|
+
export declare const searchQuery: (type: searchableType, query?: string, filters?: ISearchFilters, aggregated?: boolean) => {
|
|
241
242
|
bool: any;
|
|
242
243
|
};
|
|
243
244
|
export {};
|
|
@@ -54,14 +54,14 @@ export declare const MAX_RESULTS = 10000;
|
|
|
54
54
|
export declare const suggestMatchQuery: (query: string) => (Readonly<{
|
|
55
55
|
match: {
|
|
56
56
|
[x: string]: {
|
|
57
|
-
boost?: number
|
|
57
|
+
boost?: number;
|
|
58
58
|
query: any;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
}> | Readonly<{
|
|
62
62
|
multi_match: {
|
|
63
|
-
analyzer?: "standard"
|
|
64
|
-
boost?: number
|
|
63
|
+
analyzer?: "standard";
|
|
64
|
+
boost?: number;
|
|
65
65
|
query: string;
|
|
66
66
|
fields: string[];
|
|
67
67
|
type: "best_fields" | "most_fields" | "cross_fields" | "phrase" | "phrase_prefix" | "bool_prefix";
|
|
@@ -74,7 +74,7 @@ export declare const suggestMatchQuery: (query: string) => (Readonly<{
|
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
}>)[];
|
|
77
|
-
export declare const suggestQuery: <T extends NodeType = searchableType>(query: string, type?: T
|
|
77
|
+
export declare const suggestQuery: <T extends NodeType = searchableType>(query: string, type?: T, extraQueries?: any[]) => {
|
|
78
78
|
bool: {
|
|
79
79
|
must: any[];
|
|
80
80
|
should: {
|
|
@@ -87,14 +87,14 @@ export declare const suggestQuery: <T extends NodeType = searchableType>(query:
|
|
|
87
87
|
should: (Readonly<{
|
|
88
88
|
match: {
|
|
89
89
|
[x: string]: {
|
|
90
|
-
boost?: number
|
|
90
|
+
boost?: number;
|
|
91
91
|
query: any;
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
}> | Readonly<{
|
|
95
95
|
multi_match: {
|
|
96
|
-
analyzer?: "standard"
|
|
97
|
-
boost?: number
|
|
96
|
+
analyzer?: "standard";
|
|
97
|
+
boost?: number;
|
|
98
98
|
query: string;
|
|
99
99
|
fields: string[];
|
|
100
100
|
type: "best_fields" | "most_fields" | "cross_fields" | "phrase" | "phrase_prefix" | "bool_prefix";
|
|
@@ -19,7 +19,7 @@ export declare class SitesMapsComponent<C extends JSONLD<T>, T extends NodeType>
|
|
|
19
19
|
showNoLocation: boolean;
|
|
20
20
|
constructor(nodeService: HeNodeService);
|
|
21
21
|
ngOnInit(): void;
|
|
22
|
-
ngAfterViewInit():
|
|
22
|
+
ngAfterViewInit(): Promise<void>;
|
|
23
23
|
private loadData;
|
|
24
24
|
private addMarkers;
|
|
25
25
|
private addTermsPolygons;
|
|
@@ -15,7 +15,7 @@ export declare class SitesMeasurementsComponent implements OnChanges {
|
|
|
15
15
|
View: typeof View;
|
|
16
16
|
selectedView: View;
|
|
17
17
|
maxAreaSize: number;
|
|
18
|
-
siteTooBig: ({ area }: ISiteJSONLD) => boolean
|
|
18
|
+
siteTooBig: ({ area }: ISiteJSONLD) => boolean;
|
|
19
19
|
defaultLabel: (node?: any) => any;
|
|
20
20
|
measurementValue: ({ value, depthLower, depthUpper }: import("../../common/utils").IGroupedNode<Measurement>) => number;
|
|
21
21
|
measurements: IGroupedKeys<Measurement>[];
|
package/sites/sites.model.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export interface ISiteJSONLDExtended extends ISiteJSONLD {
|
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
8
|
export declare const maxAreaSize = 5000;
|
|
9
|
-
export declare const siteTooBig: ({ area }: ISiteJSONLD) => boolean
|
|
9
|
+
export declare const siteTooBig: ({ area }: ISiteJSONLD) => boolean;
|
|
10
10
|
export declare const measurementValue: ({ value, depthLower, depthUpper }: IGroupedNode<Measurement>) => number;
|
package/styles.scss
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const defaultOptions: {
|
|
2
|
+
allowDuplicates: boolean;
|
|
3
|
+
caseSensitive: boolean;
|
|
4
|
+
clearSelectionOnTyping: boolean;
|
|
5
|
+
closeDropdownOnItemSelect: boolean;
|
|
6
|
+
delimiter: string;
|
|
7
|
+
freeInput: boolean;
|
|
8
|
+
highlightDuplicate: boolean;
|
|
9
|
+
highlightMatchesString: boolean;
|
|
10
|
+
itemValue: any;
|
|
11
|
+
itemText: any;
|
|
12
|
+
maxTags: any;
|
|
13
|
+
maxChars: any;
|
|
14
|
+
minChars: number;
|
|
15
|
+
noResultsLabel: string;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
removable: boolean;
|
|
18
|
+
searchMinChars: number;
|
|
19
|
+
searchOn: string;
|
|
20
|
+
selectable: boolean;
|
|
21
|
+
source: any;
|
|
22
|
+
tagClass: string;
|
|
23
|
+
trim: boolean;
|
|
24
|
+
};
|
|
25
|
+
export default defaultOptions;
|