@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.
Files changed (207) hide show
  1. package/README.md +24 -0
  2. package/auth/auth.service.d.ts +10 -0
  3. package/auth/public-api.d.ts +1 -0
  4. package/bibliographies/bibliographies-search-confirm/bibliographies-search-confirm.component.d.ts +40 -0
  5. package/bibliographies/bibliographies.module.d.ts +10 -0
  6. package/bibliographies/public-api.d.ts +2 -0
  7. package/bundles/hestia-earth-ui-components.umd.js +7570 -0
  8. package/bundles/hestia-earth-ui-components.umd.js.map +1 -0
  9. package/common/bind-once.directive.d.ts +10 -0
  10. package/common/blank-node-diffs/blank-node-diffs.component.d.ts +18 -0
  11. package/common/blank-node-state/blank-node-state.component.d.ts +36 -0
  12. package/common/blank-node-state-notice/blank-node-state-notice.component.d.ts +9 -0
  13. package/common/blank-node-value-delta/blank-node-value-delta.component.d.ts +13 -0
  14. package/common/click-outside.directive.d.ts +10 -0
  15. package/common/clipboard/clipboard.component.d.ts +16 -0
  16. package/common/common.module.d.ts +37 -0
  17. package/common/common.service.d.ts +11 -0
  18. package/common/default.pipe.d.ts +7 -0
  19. package/common/ellipsis.pipe.d.ts +7 -0
  20. package/common/get.pipe.d.ts +7 -0
  21. package/common/key-to-label.pipe.d.ts +7 -0
  22. package/common/keys.pipe.d.ts +7 -0
  23. package/common/link-key-value/link-key-value.component.d.ts +16 -0
  24. package/common/logs-utils.d.ts +17 -0
  25. package/common/maps-drawing-confirm/maps-drawing-confirm.component.d.ts +28 -0
  26. package/common/maps-utils.d.ts +70 -0
  27. package/common/pluralize.pipe.d.ts +7 -0
  28. package/common/popover/popover.component.d.ts +16 -0
  29. package/common/popover-confirm/popover-confirm.component.d.ts +15 -0
  30. package/common/precision.pipe.d.ts +7 -0
  31. package/common/public-api.d.ts +30 -0
  32. package/common/schema-version-link/schema-version-link.component.d.ts +10 -0
  33. package/common/skeleton-text/skeleton-text.component.d.ts +11 -0
  34. package/common/social-tags/social-tags.component.d.ts +12 -0
  35. package/common/tags-input.directive.d.ts +20 -0
  36. package/common/times.pipe.d.ts +7 -0
  37. package/common/toast/toast.component.d.ts +19 -0
  38. package/common/toast.service.d.ts +16 -0
  39. package/common/unit-converter/unit-converter.component.d.ts +25 -0
  40. package/common/utils.d.ts +88 -0
  41. package/cycles/cycles-activity/cycles-activity.component.d.ts +31 -0
  42. package/cycles/cycles-activity-logs/cycles-activity-logs.component.d.ts +25 -0
  43. package/cycles/cycles-completeness/cycles-completeness.component.d.ts +14 -0
  44. package/cycles/cycles-emissions/cycles-emissions.component.d.ts +40 -0
  45. package/cycles/cycles-emissions-chart/cycles-emissions-chart.component.d.ts +18 -0
  46. package/cycles/cycles-emissions-logs/cycles-emissions-logs.component.d.ts +23 -0
  47. package/cycles/cycles-functional-unit-measure/cycles-functional-unit-measure.component.d.ts +8 -0
  48. package/cycles/cycles-result/cycles-result.component.d.ts +13 -0
  49. package/cycles/cycles-suggest-form/cycles-suggest-form.component.d.ts +24 -0
  50. package/cycles/cycles.model.d.ts +7 -0
  51. package/cycles/cycles.module.d.ts +19 -0
  52. package/cycles/public-api.d.ts +10 -0
  53. package/engine/aggregation-engine.service.d.ts +71 -0
  54. package/engine/engine.service.d.ts +61 -0
  55. package/engine/public-api.d.ts +2 -0
  56. package/esm2015/auth/auth.service.js +19 -0
  57. package/esm2015/auth/public-api.js +2 -0
  58. package/esm2015/bibliographies/bibliographies-search-confirm/bibliographies-search-confirm.component.js +100 -0
  59. package/esm2015/bibliographies/bibliographies.module.js +30 -0
  60. package/esm2015/bibliographies/public-api.js +3 -0
  61. package/esm2015/common/bind-once.directive.js +23 -0
  62. package/esm2015/common/blank-node-diffs/blank-node-diffs.component.js +47 -0
  63. package/esm2015/common/blank-node-state/blank-node-state.component.js +90 -0
  64. package/esm2015/common/blank-node-state-notice/blank-node-state-notice.component.js +27 -0
  65. package/esm2015/common/blank-node-value-delta/blank-node-value-delta.component.js +41 -0
  66. package/esm2015/common/click-outside.directive.js +28 -0
  67. package/esm2015/common/clipboard/clipboard.component.js +69 -0
  68. package/esm2015/common/common.module.js +144 -0
  69. package/esm2015/common/common.service.js +29 -0
  70. package/esm2015/common/default.pipe.js +23 -0
  71. package/esm2015/common/ellipsis.pipe.js +17 -0
  72. package/esm2015/common/get.pipe.js +17 -0
  73. package/esm2015/common/key-to-label.pipe.js +18 -0
  74. package/esm2015/common/keys.pipe.js +20 -0
  75. package/esm2015/common/link-key-value/link-key-value.component.js +55 -0
  76. package/esm2015/common/logs-utils.js +49 -0
  77. package/esm2015/common/maps-drawing-confirm/maps-drawing-confirm.component.js +89 -0
  78. package/esm2015/common/maps-utils.js +101 -0
  79. package/esm2015/common/pluralize.pipe.js +17 -0
  80. package/esm2015/common/popover/popover.component.js +37 -0
  81. package/esm2015/common/popover-confirm/popover-confirm.component.js +38 -0
  82. package/esm2015/common/precision.pipe.js +20 -0
  83. package/esm2015/common/public-api.js +31 -0
  84. package/esm2015/common/schema-version-link/schema-version-link.component.js +39 -0
  85. package/esm2015/common/skeleton-text/skeleton-text.component.js +44 -0
  86. package/esm2015/common/social-tags/social-tags.component.js +37 -0
  87. package/esm2015/common/tags-input.directive.js +74 -0
  88. package/esm2015/common/times.pipe.js +16 -0
  89. package/esm2015/common/toast/toast.component.js +37 -0
  90. package/esm2015/common/toast.service.js +36 -0
  91. package/esm2015/common/unit-converter/unit-converter.component.js +73 -0
  92. package/esm2015/common/utils.js +245 -0
  93. package/esm2015/cycles/cycles-activity/cycles-activity.component.js +92 -0
  94. package/esm2015/cycles/cycles-activity-logs/cycles-activity-logs.component.js +48 -0
  95. package/esm2015/cycles/cycles-completeness/cycles-completeness.component.js +41 -0
  96. package/esm2015/cycles/cycles-emissions/cycles-emissions.component.js +121 -0
  97. package/esm2015/cycles/cycles-emissions-chart/cycles-emissions-chart.component.js +93 -0
  98. package/esm2015/cycles/cycles-emissions-logs/cycles-emissions-logs.component.js +63 -0
  99. package/esm2015/cycles/cycles-functional-unit-measure/cycles-functional-unit-measure.component.js +22 -0
  100. package/esm2015/cycles/cycles-result/cycles-result.component.js +92 -0
  101. package/esm2015/cycles/cycles-suggest-form/cycles-suggest-form.component.js +83 -0
  102. package/esm2015/cycles/cycles.model.js +2 -0
  103. package/esm2015/cycles/cycles.module.js +66 -0
  104. package/esm2015/cycles/public-api.js +11 -0
  105. package/esm2015/engine/aggregation-engine.service.js +126 -0
  106. package/esm2015/engine/engine.service.js +78 -0
  107. package/esm2015/engine/public-api.js +3 -0
  108. package/esm2015/files/files-error.model.js +180 -0
  109. package/esm2015/files/files-form/files-form.component.js +439 -0
  110. package/esm2015/files/files-form.model.js +548 -0
  111. package/esm2015/files/files.module.js +42 -0
  112. package/esm2015/files/public-api.js +3 -0
  113. package/esm2015/fontawesome/fontawesome.module.js +36 -0
  114. package/esm2015/fontawesome/public-api.js +2 -0
  115. package/esm2015/hestia-earth-ui-components.js +5 -0
  116. package/esm2015/impact-assessments/impact-assessments-indicator-breakdown-chart/impact-assessments-indicator-breakdown-chart.component.js +161 -0
  117. package/esm2015/impact-assessments/impact-assessments-indicators-chart/impact-assessments-indicators-chart.component.js +142 -0
  118. package/esm2015/impact-assessments/impact-assessments-products/impact-assessments-products.component.js +252 -0
  119. package/esm2015/impact-assessments/impact-assessments-products-logs/impact-assessments-products-logs.component.js +68 -0
  120. package/esm2015/impact-assessments/impact-assessments.model.js +2 -0
  121. package/esm2015/impact-assessments/impact-assessments.module.js +47 -0
  122. package/esm2015/impact-assessments/public-api.js +7 -0
  123. package/esm2015/mendeley/mendeley.service.js +35 -0
  124. package/esm2015/mendeley/public-api.js +2 -0
  125. package/esm2015/node/node-csv-export-confirm/node-csv-export-confirm.component.js +65 -0
  126. package/esm2015/node/node-csv-select-headers/node-csv-select-headers.component.js +119 -0
  127. package/esm2015/node/node-csv.service.js +24 -0
  128. package/esm2015/node/node-diffs/node-diffs.component.js +67 -0
  129. package/esm2015/node/node-diffs/node-diffs.model.js +6 -0
  130. package/esm2015/node/node-icon/node-icon.component.js +37 -0
  131. package/esm2015/node/node-link/node-link.component.js +33 -0
  132. package/esm2015/node/node-logs-file/node-logs-file.component.js +63 -0
  133. package/esm2015/node/node-logs-models/node-logs-models.component.js +188 -0
  134. package/esm2015/node/node-missing-lookup-factors/node-missing-lookup-factors.component.js +34 -0
  135. package/esm2015/node/node-value-details/node-value-details.component.js +46 -0
  136. package/esm2015/node/node.module.js +67 -0
  137. package/esm2015/node/node.service.js +113 -0
  138. package/esm2015/node/public-api.js +13 -0
  139. package/esm2015/public-api.js +16 -0
  140. package/esm2015/schema/public-api.js +2 -0
  141. package/esm2015/schema/schema.service.js +167 -0
  142. package/esm2015/search/public-api.js +4 -0
  143. package/esm2015/search/search.model.js +204 -0
  144. package/esm2015/search/search.module.js +13 -0
  145. package/esm2015/search/search.service.js +99 -0
  146. package/esm2015/sites/public-api.js +6 -0
  147. package/esm2015/sites/sites-maps/sites-maps.component.js +162 -0
  148. package/esm2015/sites/sites-measurements/sites-measurements.component.js +78 -0
  149. package/esm2015/sites/sites-measurements-logs/sites-measurements-logs.component.js +63 -0
  150. package/esm2015/sites/sites.model.js +10 -0
  151. package/esm2015/sites/sites.module.js +42 -0
  152. package/esm2015/terms/public-api.js +2 -0
  153. package/esm2015/terms/terms.model.js +184 -0
  154. package/esm2015/users/public-api.js +2 -0
  155. package/esm2015/users/users.service.js +17 -0
  156. package/fesm2015/hestia-earth-ui-components.js +5920 -0
  157. package/fesm2015/hestia-earth-ui-components.js.map +1 -0
  158. package/files/files-error.model.d.ts +40 -0
  159. package/files/files-form/files-form.component.d.ts +94 -0
  160. package/files/files-form.model.d.ts +113 -0
  161. package/files/files.module.d.ts +13 -0
  162. package/files/public-api.d.ts +2 -0
  163. package/fontawesome/fontawesome.module.d.ts +10 -0
  164. package/fontawesome/public-api.d.ts +1 -0
  165. package/hestia-earth-ui-components.d.ts +5 -0
  166. package/impact-assessments/impact-assessments-indicator-breakdown-chart/impact-assessments-indicator-breakdown-chart.component.d.ts +28 -0
  167. package/impact-assessments/impact-assessments-indicators-chart/impact-assessments-indicators-chart.component.d.ts +25 -0
  168. package/impact-assessments/impact-assessments-products/impact-assessments-products.component.d.ts +77 -0
  169. package/impact-assessments/impact-assessments-products-logs/impact-assessments-products-logs.component.d.ts +25 -0
  170. package/impact-assessments/impact-assessments.model.d.ts +6 -0
  171. package/impact-assessments/impact-assessments.module.d.ts +15 -0
  172. package/impact-assessments/public-api.d.ts +6 -0
  173. package/mendeley/mendeley.service.d.ts +25 -0
  174. package/mendeley/public-api.d.ts +1 -0
  175. package/node/node-csv-export-confirm/node-csv-export-confirm.component.d.ts +32 -0
  176. package/node/node-csv-select-headers/node-csv-select-headers.component.d.ts +42 -0
  177. package/node/node-csv.service.d.ts +9 -0
  178. package/node/node-diffs/node-diffs.component.d.ts +23 -0
  179. package/node/node-diffs/node-diffs.model.d.ts +4 -0
  180. package/node/node-icon/node-icon.component.d.ts +8 -0
  181. package/node/node-link/node-link.component.d.ts +11 -0
  182. package/node/node-logs-file/node-logs-file.component.d.ts +31 -0
  183. package/node/node-logs-models/node-logs-models.component.d.ts +72 -0
  184. package/node/node-missing-lookup-factors/node-missing-lookup-factors.component.d.ts +14 -0
  185. package/node/node-value-details/node-value-details.component.d.ts +17 -0
  186. package/node/node.module.d.ts +20 -0
  187. package/node/node.service.d.ts +70 -0
  188. package/node/public-api.d.ts +12 -0
  189. package/package.json +53 -0
  190. package/public-api.d.ts +15 -0
  191. package/schema/public-api.d.ts +1 -0
  192. package/schema/schema.service.d.ts +51 -0
  193. package/search/public-api.d.ts +3 -0
  194. package/search/search.model.d.ts +243 -0
  195. package/search/search.module.d.ts +7 -0
  196. package/search/search.service.d.ts +129 -0
  197. package/sites/public-api.d.ts +5 -0
  198. package/sites/sites-maps/sites-maps.component.d.ts +35 -0
  199. package/sites/sites-measurements/sites-measurements.component.d.ts +31 -0
  200. package/sites/sites-measurements-logs/sites-measurements-logs.component.d.ts +23 -0
  201. package/sites/sites.model.d.ts +10 -0
  202. package/sites/sites.module.d.ts +13 -0
  203. package/styles.scss +197 -0
  204. package/terms/public-api.d.ts +1 -0
  205. package/terms/terms.model.d.ts +21 -0
  206. package/users/public-api.d.ts +1 -0
  207. package/users/users.service.d.ts +7 -0
@@ -0,0 +1,129 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { JSONLD, NodeType, ICycleJSONLD, ISourceJSONLD, ITermJSONLD, Source, IImpactAssessmentJSONLD } from '@hestia-earth/schema';
3
+ import { HeCommonService } from '../common/common.service';
4
+ import { searchableType } from './search.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare type searchResult = ICycleJSONLD | ISourceJSONLD | IImpactAssessmentJSONLD | ITermJSONLD;
7
+ export declare type sortOrders = 'asc' | 'desc';
8
+ interface ISearchParamSort {
9
+ [key: string]: sortOrders;
10
+ }
11
+ interface ISearchScript {
12
+ _script: {
13
+ type?: string;
14
+ order?: sortOrders;
15
+ script: string;
16
+ };
17
+ }
18
+ export interface ISearchParams {
19
+ limit?: number;
20
+ offset?: number;
21
+ fields?: string[];
22
+ sort?: ISearchParamSort[] | ISearchScript;
23
+ query?: any;
24
+ }
25
+ export interface ISearchResultExtended {
26
+ _score: number;
27
+ createdAt: string;
28
+ location?: {
29
+ lat: number;
30
+ lon: number;
31
+ };
32
+ properties?: string[];
33
+ expanded?: boolean;
34
+ extended?: boolean;
35
+ pinned?: boolean;
36
+ loading?: boolean;
37
+ selected?: boolean;
38
+ inputsCount?: number;
39
+ emissionsCount?: number;
40
+ productsCount?: number;
41
+ }
42
+ export interface ISearchResults<C extends JSONLD<T>, T extends NodeType = searchableType> {
43
+ /**
44
+ * Amount of time the query took
45
+ */
46
+ time: number;
47
+ /**
48
+ * Numnber of results
49
+ */
50
+ count: number;
51
+ results: (C & ISearchResultExtended)[];
52
+ }
53
+ export declare const MAX_RESULTS = 10000;
54
+ export declare const suggestMatchQuery: (query: string) => (Readonly<{
55
+ match: {
56
+ [x: string]: {
57
+ boost?: number | undefined;
58
+ query: any;
59
+ };
60
+ };
61
+ }> | Readonly<{
62
+ multi_match: {
63
+ analyzer?: "standard" | undefined;
64
+ boost?: number | undefined;
65
+ query: string;
66
+ fields: string[];
67
+ type: "best_fields" | "most_fields" | "cross_fields" | "phrase" | "phrase_prefix" | "bool_prefix";
68
+ };
69
+ }> | Readonly<{
70
+ match_phrase_prefix: {
71
+ nameSearchAsYouType: {
72
+ query: string;
73
+ boost: number;
74
+ };
75
+ };
76
+ }>)[];
77
+ export declare const suggestQuery: <T extends NodeType = searchableType>(query: string, type?: T | undefined, extraQueries?: any[]) => {
78
+ bool: {
79
+ must: any[];
80
+ should: {
81
+ bool: {
82
+ must: Readonly<{
83
+ match: {
84
+ '@type': string;
85
+ };
86
+ }>[];
87
+ should: (Readonly<{
88
+ match: {
89
+ [x: string]: {
90
+ boost?: number | undefined;
91
+ query: any;
92
+ };
93
+ };
94
+ }> | Readonly<{
95
+ multi_match: {
96
+ analyzer?: "standard" | undefined;
97
+ boost?: number | undefined;
98
+ query: string;
99
+ fields: string[];
100
+ type: "best_fields" | "most_fields" | "cross_fields" | "phrase" | "phrase_prefix" | "bool_prefix";
101
+ };
102
+ }> | Readonly<{
103
+ match_phrase_prefix: {
104
+ nameSearchAsYouType: {
105
+ query: string;
106
+ boost: number;
107
+ };
108
+ };
109
+ }>)[];
110
+ minimum_should_match: number;
111
+ };
112
+ }[];
113
+ minimum_should_match: number;
114
+ };
115
+ };
116
+ export declare class HeSearchService {
117
+ private http;
118
+ private commonService;
119
+ constructor(http: HttpClient, commonService: HeCommonService);
120
+ search<C extends JSONLD<T>, T extends NodeType = searchableType>(params: ISearchParams): Promise<ISearchResults<C, T>>;
121
+ count(params?: {}): Promise<number>;
122
+ get$<C extends JSONLD<T>, T extends NodeType>(type: T, id: string): import("rxjs").Observable<C & ISearchResultExtended>;
123
+ get<C extends JSONLD<T>, T extends NodeType>(type: T, id: string): Promise<C & ISearchResultExtended>;
124
+ suggest<C extends JSONLD<T>, T extends NodeType = searchableType>(term: string, type?: T, extraQueries?: any[], fullQuery?: any, limit?: number, includes?: string[]): import("rxjs").Observable<Omit<C & ISearchResultExtended, "_score">[]>;
125
+ suggestSource(term: string, limit?: number, fields?: string[], includes?: string[]): import("rxjs").Observable<Partial<Source>[]>;
126
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeSearchService, never>;
127
+ static ɵprov: i0.ɵɵInjectableDeclaration<HeSearchService>;
128
+ }
129
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from './sites.model';
2
+ export * from './sites.module';
3
+ export { SitesMapsComponent } from './sites-maps/sites-maps.component';
4
+ export { SitesMeasurementsComponent } from './sites-measurements/sites-measurements.component';
5
+ export { SitesMeasurementsLogsComponent } from './sites-measurements-logs/sites-measurements-logs.component';
@@ -0,0 +1,35 @@
1
+ import { AfterViewInit, OnInit } from '@angular/core';
2
+ import { JSONLD, NodeType } from '@hestia-earth/schema';
3
+ import { HeNodeService } from '../../node/node.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SitesMapsComponent<C extends JSONLD<T>, T extends NodeType> implements OnInit, AfterViewInit {
6
+ private nodeService;
7
+ loaded: boolean;
8
+ private map?;
9
+ private loadPolygons;
10
+ private sites;
11
+ private nodes;
12
+ center: {
13
+ lat: number;
14
+ lng: number;
15
+ };
16
+ zoom: number;
17
+ showNotice: boolean;
18
+ googleLoaded: boolean;
19
+ showNoLocation: boolean;
20
+ constructor(nodeService: HeNodeService);
21
+ ngOnInit(): void;
22
+ ngAfterViewInit(): false | Promise<void | null>;
23
+ private loadData;
24
+ private addMarkers;
25
+ private addTermsPolygons;
26
+ private centerMarker;
27
+ private centerPolygons;
28
+ private addSiteMarkers;
29
+ private loadSite;
30
+ private siteData;
31
+ private getSites;
32
+ private termPolygons;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<SitesMapsComponent<any, any>, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<SitesMapsComponent<any, any>, "he-sites-maps", never, { "loadPolygons": "loadPolygons"; "sites": "sites"; "nodes": "nodes"; "center": "center"; "zoom": "zoom"; "showNotice": "showNotice"; }, {}, never, never>;
35
+ }
@@ -0,0 +1,31 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { DataState } from '@hestia-earth/api';
3
+ import { ISiteJSONLD, Measurement } from '@hestia-earth/schema';
4
+ import { IGroupedKeys } from '../../common/utils';
5
+ import * as i0 from "@angular/core";
6
+ declare enum View {
7
+ table = "table",
8
+ logs = "logs"
9
+ }
10
+ export declare class SitesMeasurementsComponent implements OnChanges {
11
+ originalValues: ISiteJSONLD[];
12
+ sites: ISiteJSONLD[];
13
+ dataState?: DataState;
14
+ showDownload: boolean;
15
+ View: typeof View;
16
+ selectedView: View;
17
+ maxAreaSize: number;
18
+ siteTooBig: ({ area }: ISiteJSONLD) => boolean | 0 | undefined;
19
+ defaultLabel: (node?: any) => any;
20
+ measurementValue: ({ value, depthLower, depthUpper }: import("../../common/utils").IGroupedNode<Measurement>) => number;
21
+ measurements: IGroupedKeys<Measurement>[];
22
+ ngOnChanges(changes: SimpleChanges): void;
23
+ trackById(_index: number, item: ISiteJSONLD): string;
24
+ get isOriginal(): boolean;
25
+ private update;
26
+ togglePopover(popover: any, context: any): any;
27
+ get showAreaTooBig(): boolean;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<SitesMeasurementsComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<SitesMeasurementsComponent, "he-sites-measurements", never, { "originalValues": "originalValues"; "sites": "sites"; "dataState": "dataState"; }, {}, never, never>;
30
+ }
31
+ export {};
@@ -0,0 +1,23 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ISiteJSONLD, ITermJSONLD, Measurement, NodeType } from '@hestia-earth/schema';
3
+ import { HeSearchService } from '../../search/search.service';
4
+ import { HeNodeService } from '../../node/node.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class SitesMeasurementsLogsComponent implements OnInit {
7
+ private searchService;
8
+ private nodeService;
9
+ site?: ISiteJSONLD;
10
+ originalValues: Measurement[];
11
+ recalculatedValues: Measurement[];
12
+ loading: boolean;
13
+ NodeType: typeof NodeType;
14
+ logsUrl?: string;
15
+ logs: any;
16
+ models: ITermJSONLD[];
17
+ measurements: ITermJSONLD[];
18
+ constructor(searchService: HeSearchService, nodeService: HeNodeService);
19
+ ngOnInit(): Promise<void>;
20
+ private get node();
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<SitesMeasurementsLogsComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<SitesMeasurementsLogsComponent, "he-sites-measurements-logs", never, { "site": "site"; "originalValues": "originalValues"; "recalculatedValues": "recalculatedValues"; }, {}, never, never>;
23
+ }
@@ -0,0 +1,10 @@
1
+ import { NodeType, ISiteJSONLD, Measurement } from '@hestia-earth/schema';
2
+ import { IGroupedNode } from '../common/utils';
3
+ export interface ISiteJSONLDExtended extends ISiteJSONLD {
4
+ related: {
5
+ [type in NodeType]?: string[];
6
+ };
7
+ }
8
+ export declare const maxAreaSize = 5000;
9
+ export declare const siteTooBig: ({ area }: ISiteJSONLD) => boolean | 0 | undefined;
10
+ export declare const measurementValue: ({ value, depthLower, depthUpper }: IGroupedNode<Measurement>) => number;
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./sites-maps/sites-maps.component";
3
+ import * as i2 from "./sites-measurements/sites-measurements.component";
4
+ import * as i3 from "./sites-measurements-logs/sites-measurements-logs.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/forms";
7
+ import * as i6 from "../common/common.module";
8
+ import * as i7 from "../node/node.module";
9
+ export declare class HeSitesModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeSitesModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HeSitesModule, [typeof i1.SitesMapsComponent, typeof i2.SitesMeasurementsComponent, typeof i3.SitesMeasurementsLogsComponent], [typeof i4.CommonModule, typeof i5.ReactiveFormsModule, typeof i6.HeCommonModule, typeof i7.HeNodeModule], [typeof i1.SitesMapsComponent, typeof i2.SitesMeasurementsComponent, typeof i3.SitesMeasurementsLogsComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<HeSitesModule>;
13
+ }
package/styles.scss ADDED
@@ -0,0 +1,197 @@
1
+ @import '~@hestia-earth/ui-framework/src/styles';
2
+
3
+ // JSON Diff Patch
4
+ @import '~jsondiffpatch/dist/formatters-styles/html.css';
5
+
6
+ .jsondiffpatch-delta {
7
+ max-width: 100%;
8
+ }
9
+
10
+ // --- Bootstrap
11
+
12
+ ngb-typeahead-window.dropdown-menu {
13
+ background-color: $dropdown-content-background-color;
14
+ border-radius: $dropdown-content-radius;
15
+ box-shadow: $dropdown-content-shadow;
16
+ margin-top: 2px;
17
+ max-height: 360px;
18
+ min-width: 300px;
19
+ overflow-y: auto;
20
+ padding-bottom: $dropdown-content-padding-bottom;
21
+ padding-top: $dropdown-content-padding-top;
22
+ width: 100%;
23
+
24
+ .dropdown-item {
25
+ border: 0;
26
+ cursor: pointer;
27
+
28
+ &:hover {
29
+ background-color: $dropdown-item-hover-background-color;
30
+ color: $dropdown-item-hover-color;
31
+ }
32
+
33
+ &.active {
34
+ background-color: $dropdown-item-active-background-color;
35
+ color: $dropdown-item-active-color;
36
+ }
37
+
38
+ > * {
39
+ display: inline-block;
40
+ vertical-align: middle;
41
+ }
42
+ }
43
+ }
44
+
45
+ ngb-highlight {
46
+ display: inline-block;
47
+ overflow: hidden;
48
+ text-align: left;
49
+ text-overflow: ellipsis;
50
+ width: 100%;
51
+ white-space: nowrap;
52
+ }
53
+
54
+ ngb-tooltip-window {
55
+ background-color: $black;
56
+ border-radius: $tag-radius;
57
+ color: $white;
58
+ font-size: .75rem;
59
+ padding: .25rem;
60
+ z-index: 1050;
61
+ }
62
+
63
+ ngb-popover-window {
64
+ font-size: .75rem;
65
+ max-width: 50vw;
66
+ z-index: 1060;
67
+
68
+ .arrow {
69
+ margin: 0 !important;
70
+ }
71
+
72
+ .popover-header {
73
+ background-color: $light;
74
+ border-bottom: 1px solid #ebebeb;
75
+ border-top-left-radius: $tag-radius;
76
+ border-top-right-radius: $tag-radius;
77
+ font-size: 1rem;
78
+ margin-bottom: 0;
79
+ padding: .5rem .75rem;
80
+
81
+ + .popover-body {
82
+ border-top-left-radius: 0;
83
+ border-top-right-radius: 0;
84
+ }
85
+ }
86
+
87
+ .popover-body {
88
+ background-color: $black;
89
+ border-radius: $tag-radius;
90
+ color: $white;
91
+ padding: .5rem .75rem;
92
+ }
93
+ }
94
+
95
+ // Hestia
96
+
97
+ .data-table-container {
98
+ max-height: 320px;
99
+ overflow-y: auto;
100
+ }
101
+
102
+ table.data-table {
103
+ min-width: 100%;
104
+
105
+ th {
106
+ word-break: break-word;
107
+ }
108
+
109
+ td,
110
+ th {
111
+ font-size: 12px;
112
+ max-width: 100px;
113
+ min-width: 80px;
114
+
115
+ span:first-child {
116
+ display: inline-block;
117
+ max-width: 100%;
118
+ }
119
+
120
+ &:nth-child(1) {
121
+ min-width: 200px;
122
+ width: 200px;
123
+ }
124
+
125
+ &.width-auto {
126
+ max-width: auto !important;
127
+ }
128
+
129
+ &:not(.width-auto) {
130
+ text-align: center;
131
+ }
132
+ }
133
+
134
+ &.has-children-1 {
135
+ td,
136
+ th {
137
+ &:nth-child(n+2) {
138
+ max-width: auto;
139
+ }
140
+ }
141
+ }
142
+
143
+ &.has-children-2 {
144
+ td,
145
+ th {
146
+ &:nth-child(n+2) {
147
+ max-width: 50%;
148
+ }
149
+ }
150
+ }
151
+
152
+ &.has-children-3 {
153
+ td,
154
+ th {
155
+ &:nth-child(n+2) {
156
+ max-width: 40%;
157
+ }
158
+ }
159
+ }
160
+
161
+ &.has-children-4 {
162
+ td,
163
+ th {
164
+ &:nth-child(n+2) {
165
+ max-width: 30%;
166
+ }
167
+ }
168
+ }
169
+
170
+ &.has-children-5 {
171
+ td,
172
+ th {
173
+ &:nth-child(n+2) {
174
+ max-width: 20%;
175
+ }
176
+ }
177
+ }
178
+ }
179
+
180
+ .copy-clipboard {
181
+ position: absolute;
182
+ right: 4px;
183
+ top: 4px;
184
+ }
185
+
186
+ .trigger-popover {
187
+ > span:first-child {
188
+ cursor: help !important;
189
+ text-decoration-style: dotted;
190
+ text-decoration-line: underline;
191
+ text-decoration-thickness: from-font;
192
+ }
193
+ }
194
+
195
+ .is-normal {
196
+ white-space: normal;
197
+ }
@@ -0,0 +1 @@
1
+ export * from './terms.model';
@@ -0,0 +1,21 @@
1
+ import { Term, ITermJSONLD, TermTermType } from '@hestia-earth/schema';
2
+ export declare const termProperties: (term: Term | ITermJSONLD) => string[];
3
+ export declare const findPropertyById: ({ defaultProperties }: Term | ITermJSONLD, key: keyof ITermJSONLD) => import("@hestia-earth/schema").Property | undefined;
4
+ export declare const termLocationName: ({ gadmFullName }: Term | ITermJSONLD) => {
5
+ name: string;
6
+ };
7
+ export declare const termLocation: ({ latitude, longitude }: Term | ITermJSONLD) => {
8
+ lat: number;
9
+ lng: number;
10
+ };
11
+ export declare const termTypeLabel: (type?: TermTermType | string) => string;
12
+ export interface ITermTypeElem {
13
+ label?: string;
14
+ termType: TermTermType | string;
15
+ children?: ITermTypeElem[];
16
+ visible?: boolean;
17
+ count?: number;
18
+ }
19
+ export declare const termTypeGroups: ITermTypeElem[];
20
+ export declare const termChildToParent: (termType: string) => ITermTypeElem;
21
+ export declare const sortOrder: TermTermType[];
@@ -0,0 +1 @@
1
+ export * from './users.service';
@@ -0,0 +1,7 @@
1
+ import { User } from '@hestia-earth/api';
2
+ import * as i0 from "@angular/core";
3
+ export declare class HeUsersService {
4
+ get loggedInUser(): Promise<User>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeUsersService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<HeUsersService>;
7
+ }