@hestia-earth/ui-components 0.1.0 → 0.1.3

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 (39) hide show
  1. package/bundles/hestia-earth-ui-components.umd.js +476 -312
  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-activity-logs/cycles-activity-logs.component.d.ts +2 -1
  10. package/cycles/cycles-emissions/cycles-emissions.component.d.ts +1 -0
  11. package/cycles/cycles.model.d.ts +8 -0
  12. package/cycles/cycles.module.d.ts +1 -1
  13. package/esm2015/common/common.light.module.js +7 -3
  14. package/esm2015/common/common.module.js +28 -24
  15. package/esm2015/common/data-table/data-table.component.js +70 -0
  16. package/esm2015/common/index.js +3 -1
  17. package/esm2015/common/issue-confirm/issue-confirm.component.js +38 -0
  18. package/esm2015/common/utils.js +18 -4
  19. package/esm2015/cycles/cycles-activity/cycles-activity.component.js +15 -14
  20. package/esm2015/cycles/cycles-activity-logs/cycles-activity-logs.component.js +9 -5
  21. package/esm2015/cycles/cycles-completeness/cycles-completeness.component.js +7 -6
  22. package/esm2015/cycles/cycles-emissions/cycles-emissions.component.js +22 -15
  23. package/esm2015/cycles/cycles-emissions-logs/cycles-emissions-logs.component.js +5 -3
  24. package/esm2015/cycles/cycles-practices/cycles-practices.component.js +15 -14
  25. package/esm2015/cycles/cycles-practices-logs/cycles-practices-logs.component.js +5 -3
  26. package/esm2015/cycles/cycles.model.js +10 -1
  27. package/esm2015/cycles/cycles.module.js +5 -5
  28. package/esm2015/engine/engine-orchestrator-edit/engine-orchestrator-edit.component.js +6 -8
  29. package/esm2015/files/files-form/files-form.component.js +4 -5
  30. package/esm2015/fontawesome/fontawesome.module.js +3 -3
  31. package/esm2015/impact-assessments/impact-assessments-products/impact-assessments-products.component.js +18 -17
  32. package/esm2015/node/node-logs-models/node-logs-models.component.js +42 -36
  33. package/esm2015/sites/sites-maps/sites-maps.component.js +3 -4
  34. package/esm2015/sites/sites-measurements/sites-measurements.component.js +14 -13
  35. package/fesm2015/hestia-earth-ui-components.js +385 -245
  36. package/fesm2015/hestia-earth-ui-components.js.map +1 -1
  37. package/node/node-logs-models/node-logs-models.component.d.ts +5 -4
  38. package/package.json +4 -4
  39. package/styles.scss +0 -83
@@ -36,7 +36,7 @@ declare enum LogStatus {
36
36
  error = "failed",
37
37
  skipHierarchy = "not run (model higher up hierarchy run instead)",
38
38
  dataProvided = "not run (user provided data retained)",
39
- notRequired = "not run (not required to run)"
39
+ notRequired = "not relevant"
40
40
  }
41
41
  export declare class NodeLogsModelsComponent implements OnInit {
42
42
  private searchService;
@@ -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;
@@ -70,14 +71,14 @@ export declare class NodeLogsModelsComponent implements OnInit {
70
71
  failed: string | string[];
71
72
  "not run (model higher up hierarchy run instead)": string | string[];
72
73
  "not run (user provided data retained)": string | string[];
73
- "not run (not required to run)": string | string[];
74
+ "not relevant": string | string[];
74
75
  };
75
76
  logColor: {
76
77
  successful: string;
77
78
  failed: string;
78
79
  "not run (model higher up hierarchy run instead)": string;
79
80
  "not run (user provided data retained)": string;
80
- "not run (not required to run)": string;
81
+ "not relevant": string;
81
82
  };
82
83
  term?: string;
83
84
  suggestTerm: (text$: Observable<string>) => Observable<string[]>;
@@ -93,7 +94,7 @@ export declare class NodeLogsModelsComponent implements OnInit {
93
94
  private getSubvalueLogs;
94
95
  getLogs(node: IBlankNodeLog, methodId: string, subValue?: IBlankNodeLogSubValue): any;
95
96
  private isBackground;
96
- private isRequired;
97
+ private isRunOrchestrator;
97
98
  private isUserProvided;
98
99
  validSubValue(node: IBlankNodeLog, index: number, subValue?: IBlankNodeLogSubValue): boolean;
99
100
  getMethodIdAt(node: IBlankNodeLog, index: number, subValue?: IBlankNodeLogSubValue): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/ui-components",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "Hestia reusable components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,9 +24,9 @@
24
24
  "@google/markerclustererplus": "^5.1.3",
25
25
  "@hestia-earth/api": ">=0.10.0",
26
26
  "@hestia-earth/glossary": "^0.3.0",
27
- "@hestia-earth/json-schema": "^8.0.0",
28
- "@hestia-earth/schema": "^8.0.0",
29
- "@hestia-earth/schema-convert": "^8.0.0",
27
+ "@hestia-earth/json-schema": "^8.1.0",
28
+ "@hestia-earth/schema": "^8.1.0",
29
+ "@hestia-earth/schema-convert": "^8.1.0",
30
30
  "@hestia-earth/ui-framework": "^1.11.0",
31
31
  "@hestia-earth/utils": "^0.10.20",
32
32
  "@ng-bootstrap/ng-bootstrap": ">=8.0.4",
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;