@hestia-earth/ui-components 0.0.34 → 0.1.2

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 (55) hide show
  1. package/bundles/hestia-earth-ui-components.umd.js +481 -303
  2. package/bundles/hestia-earth-ui-components.umd.js.map +1 -1
  3. package/common/common.light.module.d.ts +15 -14
  4. package/common/common.module.d.ts +23 -22
  5. package/common/data-table/data-table.component.d.ts +21 -0
  6. package/common/index.d.ts +2 -0
  7. package/common/issue-confirm/issue-confirm.component.d.ts +14 -0
  8. package/common/utils.d.ts +11 -0
  9. package/cycles/cycles-emissions-chart/cycles-emissions-chart.component.d.ts +4 -1
  10. package/cycles/cycles-result/cycles-result.component.d.ts +3 -1
  11. package/esm2015/bibliographies/bibliographies-search-confirm/bibliographies-search-confirm.component.js +5 -4
  12. package/esm2015/common/blank-node-state/blank-node-state.component.js +5 -4
  13. package/esm2015/common/blank-node-state-notice/blank-node-state-notice.component.js +5 -4
  14. package/esm2015/common/blank-node-value-delta/blank-node-value-delta.component.js +5 -4
  15. package/esm2015/common/common.light.module.js +7 -3
  16. package/esm2015/common/common.module.js +28 -24
  17. package/esm2015/common/data-table/data-table.component.js +70 -0
  18. package/esm2015/common/index.js +3 -1
  19. package/esm2015/common/issue-confirm/issue-confirm.component.js +38 -0
  20. package/esm2015/common/link-key-value/link-key-value.component.js +5 -4
  21. package/esm2015/common/schema-version-link/schema-version-link.component.js +5 -4
  22. package/esm2015/common/social-tags/social-tags.component.js +5 -4
  23. package/esm2015/common/unit-converter/unit-converter.component.js +5 -4
  24. package/esm2015/common/utils.js +14 -1
  25. package/esm2015/cycles/cycles-activity/cycles-activity.component.js +15 -14
  26. package/esm2015/cycles/cycles-completeness/cycles-completeness.component.js +10 -8
  27. package/esm2015/cycles/cycles-emissions/cycles-emissions.component.js +16 -15
  28. package/esm2015/cycles/cycles-emissions-chart/cycles-emissions-chart.component.js +9 -5
  29. package/esm2015/cycles/cycles-functional-unit-measure/cycles-functional-unit-measure.component.js +5 -4
  30. package/esm2015/cycles/cycles-practices/cycles-practices.component.js +15 -14
  31. package/esm2015/cycles/cycles-result/cycles-result.component.js +10 -8
  32. package/esm2015/engine/engine-orchestrator-edit/engine-orchestrator-edit.component.js +4 -5
  33. package/esm2015/engine/engine-requirements-form/engine-requirements-form.component.js +5 -4
  34. package/esm2015/impact-assessments/impact-assessments-indicator-breakdown-chart/impact-assessments-indicator-breakdown-chart.component.js +9 -5
  35. package/esm2015/impact-assessments/impact-assessments-indicators-chart/impact-assessments-indicators-chart.component.js +9 -5
  36. package/esm2015/impact-assessments/impact-assessments-products/impact-assessments-products.component.js +18 -17
  37. package/esm2015/node/node-csv-export-confirm/node-csv-export-confirm.component.js +5 -4
  38. package/esm2015/node/node-csv-select-headers/node-csv-select-headers.component.js +5 -4
  39. package/esm2015/node/node-diffs/node-diffs.component.js +5 -4
  40. package/esm2015/node/node-icon/node-icon.component.js +5 -4
  41. package/esm2015/node/node-link/node-link.component.js +5 -4
  42. package/esm2015/node/node-logs-file/node-logs-file.component.js +5 -4
  43. package/esm2015/node/node-logs-models/node-logs-models.component.js +17 -14
  44. package/esm2015/node/node-missing-lookup-factors/node-missing-lookup-factors.component.js +5 -4
  45. package/esm2015/node/node-value-details/node-value-details.component.js +5 -4
  46. package/esm2015/search/search.model.js +3 -3
  47. package/esm2015/sites/sites-maps/sites-maps.component.js +5 -4
  48. package/esm2015/sites/sites-measurements/sites-measurements.component.js +14 -13
  49. package/fesm2015/hestia-earth-ui-components.js +397 -242
  50. package/fesm2015/hestia-earth-ui-components.js.map +1 -1
  51. package/impact-assessments/impact-assessments-indicator-breakdown-chart/impact-assessments-indicator-breakdown-chart.component.d.ts +4 -2
  52. package/impact-assessments/impact-assessments-indicators-chart/impact-assessments-indicators-chart.component.d.ts +4 -1
  53. package/node/node-logs-models/node-logs-models.component.d.ts +1 -0
  54. package/package.json +6 -6
  55. package/styles.scss +0 -83
@@ -1,10 +1,11 @@
1
- import { OnInit } from '@angular/core';
1
+ import { NgZone, OnInit } from '@angular/core';
2
2
  import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
3
3
  import { IImpactAssessmentJSONLD, Indicator, Term } from '@hestia-earth/schema';
4
4
  import { HeSearchService } from '../../search/search.service';
5
5
  import { HeNodeService } from '../../node/node.service';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ImpactAssessmentsIndicatorBreakdownChartComponent implements OnInit {
8
+ private ngZone;
8
9
  private domSanitizer;
9
10
  private searchService;
10
11
  private nodeService;
@@ -19,9 +20,10 @@ export declare class ImpactAssessmentsIndicatorBreakdownChartComponent implement
19
20
  selectedTerm?: Term;
20
21
  noData: boolean;
21
22
  csvContent?: SafeResourceUrl;
22
- constructor(domSanitizer: DomSanitizer, searchService: HeSearchService, nodeService: HeNodeService);
23
+ constructor(ngZone: NgZone, domSanitizer: DomSanitizer, searchService: HeSearchService, nodeService: HeNodeService);
23
24
  ngOnInit(): Promise<void>;
24
25
  get id(): any;
26
+ private initChart;
25
27
  updateChart(): void;
26
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ImpactAssessmentsIndicatorBreakdownChartComponent, never>;
27
29
  static ɵcmp: i0.ɵɵComponentDeclaration<ImpactAssessmentsIndicatorBreakdownChartComponent, "he-impact-assessments-indicator-breakdown-chart", never, { "impactAssessment": "impactAssessment"; "indicators": "indicators"; }, {}, never, never>;
@@ -1,8 +1,9 @@
1
- import { AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, OnChanges, SimpleChanges, NgZone } from '@angular/core';
2
2
  import { Indicator, Term, TermTermType } from '@hestia-earth/schema';
3
3
  import { IGroupedNodes } from '../../common/node-utils';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ImpactAssessmentsIndicatorsChartComponent implements AfterViewInit, OnChanges {
6
+ private ngZone;
6
7
  private chartRef?;
7
8
  private chart;
8
9
  private impactAssessments;
@@ -12,10 +13,12 @@ export declare class ImpactAssessmentsIndicatorsChartComponent implements AfterV
12
13
  indicatorPerImpactAssessment: IGroupedNodes<Indicator>;
13
14
  terms: Term[];
14
15
  selectedTerm?: Term;
16
+ constructor(ngZone: NgZone);
15
17
  ngAfterViewInit(): void;
16
18
  ngOnChanges(changes: SimpleChanges): void;
17
19
  private termAllowed;
18
20
  private init;
21
+ private initChart;
19
22
  updateChart(): void;
20
23
  static ɵfac: i0.ɵɵFactoryDeclaration<ImpactAssessmentsIndicatorsChartComponent, never>;
21
24
  static ɵcmp: i0.ɵɵComponentDeclaration<ImpactAssessmentsIndicatorsChartComponent, "he-impact-assessments-indicators-chart", never, { "impactAssessments": "impactAssessments"; "selected": "selected"; "key": "key"; "filterTermTypes": "filterTermTypes"; }, {}, never, never>;
@@ -61,6 +61,7 @@ export declare class NodeLogsModelsComponent implements OnInit {
61
61
  loading: boolean;
62
62
  blankNodes: IBlankNodeLog[];
63
63
  methodModelsCount: number;
64
+ rowsCount: number;
64
65
  methodsById?: any;
65
66
  onlyWithData: boolean;
66
67
  showLegend: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/ui-components",
3
- "version": "0.0.34",
3
+ "version": "0.1.2",
4
4
  "description": "Hestia reusable components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,13 +22,13 @@
22
22
  "@fortawesome/free-regular-svg-icons": "^5.15.4",
23
23
  "@fortawesome/free-solid-svg-icons": "^5.15.4",
24
24
  "@google/markerclustererplus": "^5.1.3",
25
- "@hestia-earth/api": ">=0.9.0",
25
+ "@hestia-earth/api": ">=0.10.0",
26
26
  "@hestia-earth/glossary": "^0.3.0",
27
- "@hestia-earth/json-schema": "^7.9.0",
28
- "@hestia-earth/schema": "^7.9.0",
29
- "@hestia-earth/schema-convert": "^7.9.0",
27
+ "@hestia-earth/json-schema": "^8.0.0",
28
+ "@hestia-earth/schema": "^8.0.0",
29
+ "@hestia-earth/schema-convert": "^8.0.0",
30
30
  "@hestia-earth/ui-framework": "^1.11.0",
31
- "@hestia-earth/utils": "^0.10.19",
31
+ "@hestia-earth/utils": "^0.10.20",
32
32
  "@ng-bootstrap/ng-bootstrap": ">=8.0.4",
33
33
  "chart.js": "^2.9.4",
34
34
  "chartjs-plugin-datalabels": "^1.0.0",
package/styles.scss CHANGED
@@ -95,89 +95,6 @@ ngb-popover-window {
95
95
 
96
96
  // Hestia
97
97
 
98
- .data-table-container {
99
- max-height: 320px;
100
- overflow-y: auto;
101
- }
102
-
103
- table.data-table {
104
- min-width: 100%;
105
-
106
- th {
107
- word-break: break-word;
108
- }
109
-
110
- td,
111
- th {
112
- font-size: 12px;
113
- max-width: 100px;
114
- min-width: 80px;
115
-
116
- span:first-child {
117
- display: inline-block;
118
- max-width: 100%;
119
- }
120
-
121
- &:nth-child(1) {
122
- min-width: 200px;
123
- width: 200px;
124
- }
125
-
126
- &.width-auto {
127
- max-width: auto !important;
128
- }
129
-
130
- &:not(.width-auto) {
131
- text-align: center;
132
- }
133
- }
134
-
135
- &.has-children-1 {
136
- td,
137
- th {
138
- &:nth-child(n+2) {
139
- max-width: auto;
140
- }
141
- }
142
- }
143
-
144
- &.has-children-2 {
145
- td,
146
- th {
147
- &:nth-child(n+2) {
148
- max-width: 50%;
149
- }
150
- }
151
- }
152
-
153
- &.has-children-3 {
154
- td,
155
- th {
156
- &:nth-child(n+2) {
157
- max-width: 40%;
158
- }
159
- }
160
- }
161
-
162
- &.has-children-4 {
163
- td,
164
- th {
165
- &:nth-child(n+2) {
166
- max-width: 30%;
167
- }
168
- }
169
- }
170
-
171
- &.has-children-5 {
172
- td,
173
- th {
174
- &:nth-child(n+2) {
175
- max-width: 20%;
176
- }
177
- }
178
- }
179
- }
180
-
181
98
  .copy-clipboard {
182
99
  position: absolute;
183
100
  right: 4px;