@ind-ds/core 0.2.0 → 0.2.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/dist/cjs/ind-ds.cjs.js +1 -1
- package/dist/cjs/ind-valve-control-panel.cjs.entry.js +7 -1
- package/dist/cjs/ind-valve-control-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/atoms/_equipment/equipment.css +0 -74
- package/dist/collection/components/atoms/alarm/alarm.css +0 -87
- package/dist/collection/components/atoms/alarm/alarm.js +0 -122
- package/dist/collection/components/atoms/alarm-count/alarm-count.css +0 -44
- package/dist/collection/components/atoms/alarm-count/alarm-count.js +0 -171
- package/dist/collection/components/atoms/badge/badge.css +0 -42
- package/dist/collection/components/atoms/badge/badge.js +0 -101
- package/dist/collection/components/atoms/breadcrumb-item/breadcrumb-item.css +0 -42
- package/dist/collection/components/atoms/breadcrumb-item/breadcrumb-item.js +0 -116
- package/dist/collection/components/atoms/button/button.css +0 -110
- package/dist/collection/components/atoms/button/button.js +0 -215
- package/dist/collection/components/atoms/canvas-layer/canvas-layer.css +0 -8
- package/dist/collection/components/atoms/canvas-layer/canvas-layer.js +0 -161
- package/dist/collection/components/atoms/checkbox/checkbox.css +0 -92
- package/dist/collection/components/atoms/checkbox/checkbox.js +0 -214
- package/dist/collection/components/atoms/compressor/compressor.css +0 -7
- package/dist/collection/components/atoms/compressor/compressor.js +0 -124
- package/dist/collection/components/atoms/connection-indicator/connection-indicator.css +0 -42
- package/dist/collection/components/atoms/connection-indicator/connection-indicator.js +0 -107
- package/dist/collection/components/atoms/conveyor/conveyor.css +0 -18
- package/dist/collection/components/atoms/conveyor/conveyor.js +0 -152
- package/dist/collection/components/atoms/cooler/cooler.css +0 -15
- package/dist/collection/components/atoms/cooler/cooler.js +0 -124
- package/dist/collection/components/atoms/counter/counter.css +0 -45
- package/dist/collection/components/atoms/counter/counter.js +0 -171
- package/dist/collection/components/atoms/datetime-picker/datetime-picker.css +0 -46
- package/dist/collection/components/atoms/datetime-picker/datetime-picker.js +0 -275
- package/dist/collection/components/atoms/dialog/dialog.css +0 -85
- package/dist/collection/components/atoms/dialog/dialog.js +0 -265
- package/dist/collection/components/atoms/divider/divider.css +0 -16
- package/dist/collection/components/atoms/divider/divider.js +0 -50
- package/dist/collection/components/atoms/estop/estop.css +0 -69
- package/dist/collection/components/atoms/estop/estop.js +0 -166
- package/dist/collection/components/atoms/fan/fan.css +0 -11
- package/dist/collection/components/atoms/fan/fan.js +0 -124
- package/dist/collection/components/atoms/gauge/gauge.css +0 -70
- package/dist/collection/components/atoms/gauge/gauge.js +0 -237
- package/dist/collection/components/atoms/heartbeat/heartbeat.css +0 -58
- package/dist/collection/components/atoms/heartbeat/heartbeat.js +0 -116
- package/dist/collection/components/atoms/heater/heater.css +0 -20
- package/dist/collection/components/atoms/heater/heater.js +0 -124
- package/dist/collection/components/atoms/icon/icon.css +0 -30
- package/dist/collection/components/atoms/icon/icon.js +0 -119
- package/dist/collection/components/atoms/input/input.css +0 -92
- package/dist/collection/components/atoms/knob/knob.css +0 -71
- package/dist/collection/components/atoms/label/label.css +0 -29
- package/dist/collection/components/atoms/led/led.css +0 -91
- package/dist/collection/components/atoms/linear-gauge/linear-gauge.css +0 -65
- package/dist/collection/components/atoms/motor/motor.css +0 -24
- package/dist/collection/components/atoms/pipe/pipe.css +0 -57
- package/dist/collection/components/atoms/process-symbol/process-symbol.css +0 -44
- package/dist/collection/components/atoms/progress/progress.css +0 -69
- package/dist/collection/components/atoms/progress-ring/progress-ring.css +0 -59
- package/dist/collection/components/atoms/pump/pump.css +0 -7
- package/dist/collection/components/atoms/scara-canvas/scara-canvas.css +0 -100
- package/dist/collection/components/atoms/select/select.css +0 -88
- package/dist/collection/components/atoms/selector-switch/selector-switch.css +0 -53
- package/dist/collection/components/atoms/setpoint/setpoint.css +0 -79
- package/dist/collection/components/atoms/shelf-canvas/shelf-canvas.css +0 -67
- package/dist/collection/components/atoms/signal-quality/signal-quality.css +0 -41
- package/dist/collection/components/atoms/silo/silo.css +0 -12
- package/dist/collection/components/atoms/slider/slider.css +0 -87
- package/dist/collection/components/atoms/sparkline/sparkline.css +0 -37
- package/dist/collection/components/atoms/status-dot/status-dot.css +0 -69
- package/dist/collection/components/atoms/tab/tab.css +0 -39
- package/dist/collection/components/atoms/tag-name/tag-name.css +0 -25
- package/dist/collection/components/atoms/tank/tank.css +0 -12
- package/dist/collection/components/atoms/textarea/textarea.css +0 -74
- package/dist/collection/components/atoms/timestamp/timestamp.css +0 -15
- package/dist/collection/components/atoms/toggle/toggle.css +0 -78
- package/dist/collection/components/atoms/tree-node/tree-node.css +0 -65
- package/dist/collection/components/atoms/unit-label/unit-label.css +0 -16
- package/dist/collection/components/atoms/value/value.css +0 -115
- package/dist/collection/components/atoms/valve/valve.css +0 -101
- package/dist/collection/components/atoms/xy-point/xy-point.css +0 -49
- package/dist/collection/components/molecules/_shared/binding.css +0 -41
- package/dist/collection/components/molecules/_shared/card.css +0 -51
- package/dist/collection/components/molecules/_shared/equipment-card.css +0 -20
- package/dist/collection/components/molecules/_shared/row.css +0 -34
- package/dist/collection/components/molecules/alarm-badge-group/alarm-badge-group.css +0 -43
- package/dist/collection/components/molecules/alarm-badge-group/alarm-badge-group.js +0 -168
- package/dist/collection/components/molecules/alarm-row/alarm-row.css +0 -42
- package/dist/collection/components/molecules/alarm-row/alarm-row.js +0 -166
- package/dist/collection/components/molecules/audit-row/audit-row.css +0 -19
- package/dist/collection/components/molecules/audit-row/audit-row.js +0 -111
- package/dist/collection/components/molecules/batch-parameter-row/batch-parameter-row.css +0 -35
- package/dist/collection/components/molecules/batch-parameter-row/batch-parameter-row.js +0 -304
- package/dist/collection/components/molecules/command-group/command-group.css +0 -26
- package/dist/collection/components/molecules/command-group/command-group.js +0 -99
- package/dist/collection/components/molecules/device-connection-card/device-connection-card.css +0 -19
- package/dist/collection/components/molecules/device-connection-card/device-connection-card.js +0 -140
- package/dist/collection/components/molecules/device-info-card/device-info-card.css +0 -27
- package/dist/collection/components/molecules/device-info-card/device-info-card.js +0 -194
- package/dist/collection/components/molecules/energy-card/energy-card.css +0 -12
- package/dist/collection/components/molecules/energy-card/energy-card.js +0 -206
- package/dist/collection/components/molecules/equipment-status-card/equipment-status-card.css +0 -29
- package/dist/collection/components/molecules/equipment-status-card/equipment-status-card.js +0 -150
- package/dist/collection/components/molecules/event-row/event-row.css +0 -3
- package/dist/collection/components/molecules/event-row/event-row.js +0 -118
- package/dist/collection/components/molecules/fill-row/fill-row.css +0 -70
- package/dist/collection/components/molecules/fill-row/fill-row.js +0 -181
- package/dist/collection/components/molecules/health-card/health-card.css +0 -53
- package/dist/collection/components/molecules/health-card/health-card.js +0 -124
- package/dist/collection/components/molecules/historical-value-row/historical-value-row.css +0 -28
- package/dist/collection/components/molecules/historical-value-row/historical-value-row.js +0 -153
- package/dist/collection/components/molecules/kpi-card/kpi-card.css +0 -31
- package/dist/collection/components/molecules/mode-selector/mode-selector.css +0 -4
- package/dist/collection/components/molecules/motor-card/motor-card.css +0 -3
- package/dist/collection/components/molecules/mqtt-tag-binding/mqtt-tag-binding.css +0 -3
- package/dist/collection/components/molecules/nav-item/nav-item.css +0 -82
- package/dist/collection/components/molecules/network-status-card/network-status-card.css +0 -31
- package/dist/collection/components/molecules/opcua-tag-binding/opcua-tag-binding.css +0 -7
- package/dist/collection/components/molecules/pump-card/pump-card.css +0 -3
- package/dist/collection/components/molecules/recipe-selector/recipe-selector.css +0 -13
- package/dist/collection/components/molecules/setpoint-control/setpoint-control.css +0 -3
- package/dist/collection/components/molecules/sidebar-group/sidebar-group.css +0 -61
- package/dist/collection/components/molecules/speed-control/speed-control.css +0 -7
- package/dist/collection/components/molecules/start-stop-control/start-stop-control.css +0 -24
- package/dist/collection/components/molecules/tag-card/tag-card.css +0 -7
- package/dist/collection/components/molecules/tank-level-card/tank-level-card.css +0 -7
- package/dist/collection/components/molecules/temperature-control/temperature-control.css +0 -15
- package/dist/collection/components/molecules/toolbar-action/toolbar-action.css +0 -36
- package/dist/collection/components/molecules/trend-widget/trend-widget.css +0 -15
- package/dist/collection/components/molecules/valve-card/valve-card.css +0 -13
- package/dist/collection/components/organisms/_shared/control-panel.css +0 -15
- package/dist/collection/components/organisms/_shared/panel.css +0 -96
- package/dist/collection/components/organisms/alarm-panel/alarm-panel.css +0 -7
- package/dist/collection/components/organisms/alarm-panel/alarm-panel.js +0 -152
- package/dist/collection/components/organisms/alarm-summary/alarm-summary.css +0 -30
- package/dist/collection/components/organisms/alarm-summary/alarm-summary.js +0 -158
- package/dist/collection/components/organisms/app-header/app-header.css +0 -127
- package/dist/collection/components/organisms/app-header/app-header.js +0 -256
- package/dist/collection/components/organisms/asset-overview/asset-overview.css +0 -34
- package/dist/collection/components/organisms/asset-overview/asset-overview.js +0 -82
- package/dist/collection/components/organisms/batch-control-panel/batch-control-panel.css +0 -45
- package/dist/collection/components/organisms/batch-control-panel/batch-control-panel.js +0 -226
- package/dist/collection/components/organisms/command-center/command-center.css +0 -7
- package/dist/collection/components/organisms/command-center/command-center.js +0 -70
- package/dist/collection/components/organisms/context-toolbar/context-toolbar.css +0 -48
- package/dist/collection/components/organisms/context-toolbar/context-toolbar.js +0 -70
- package/dist/collection/components/organisms/device-diagnostics-panel/device-diagnostics-panel.css +0 -43
- package/dist/collection/components/organisms/device-diagnostics-panel/device-diagnostics-panel.js +0 -222
- package/dist/collection/components/organisms/energy-dashboard/energy-dashboard.css +0 -29
- package/dist/collection/components/organisms/energy-dashboard/energy-dashboard.js +0 -134
- package/dist/collection/components/organisms/equipment-dashboard/equipment-dashboard.css +0 -3
- package/dist/collection/components/organisms/equipment-dashboard/equipment-dashboard.js +0 -71
- package/dist/collection/components/organisms/event-journal/event-journal.css +0 -17
- package/dist/collection/components/organisms/event-journal/event-journal.js +0 -107
- package/dist/collection/components/organisms/firmware-update-panel/firmware-update-panel.css +0 -47
- package/dist/collection/components/organisms/firmware-update-panel/firmware-update-panel.js +0 -208
- package/dist/collection/components/organisms/historian-viewer/historian-viewer.css +0 -17
- package/dist/collection/components/organisms/historian-viewer/historian-viewer.js +0 -144
- package/dist/collection/components/organisms/machine-overview/machine-overview.css +0 -22
- package/dist/collection/components/organisms/maintenance-dashboard/maintenance-dashboard.css +0 -48
- package/dist/collection/components/organisms/motor-control-panel/motor-control-panel.css +0 -3
- package/dist/collection/components/organisms/mqtt-monitor/mqtt-monitor.css +0 -96
- package/dist/collection/components/organisms/oee-dashboard/oee-dashboard.css +0 -30
- package/dist/collection/components/organisms/process-control-panel/process-control-panel.css +0 -13
- package/dist/collection/components/organisms/production-cell/production-cell.css +0 -7
- package/dist/collection/components/organisms/production-dashboard/production-dashboard.css +0 -3
- package/dist/collection/components/organisms/production-line-overview/production-line-overview.css +0 -57
- package/dist/collection/components/organisms/pump-control-panel/pump-control-panel.css +0 -3
- package/dist/collection/components/organisms/recipe-management-panel/recipe-management-panel.css +0 -10
- package/dist/collection/components/organisms/sidebar-nav/sidebar-nav.css +0 -39
- package/dist/collection/components/organisms/status-bar/status-bar.css +0 -34
- package/dist/collection/components/organisms/trend-viewer/trend-viewer.css +0 -45
- package/dist/collection/components/organisms/valve-control-panel/valve-control-panel.css +0 -10
- package/dist/collection/components/organisms/valve-control-panel/valve-control-panel.js +67 -1
- package/dist/collection/components/organisms/valve-control-panel/valve-control-panel.js.map +1 -1
- package/dist/collection/components/organisms/workstation-monitor/workstation-monitor.css +0 -30
- package/dist/components/ind-valve-control-panel.js +1 -1
- package/dist/components/ind-valve-control-panel.js.map +1 -1
- package/dist/docs.json +88 -1
- package/dist/esm/ind-ds.js +1 -1
- package/dist/esm/ind-valve-control-panel.entry.js +7 -1
- package/dist/esm/ind-valve-control-panel.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ind-ds/ind-ds.esm.js +1 -1
- package/dist/ind-ds/{p-eac22c88.entry.js → p-69ac33af.entry.js} +2 -2
- package/dist/ind-ds/p-69ac33af.entry.js.map +1 -0
- package/dist/types/components/organisms/valve-control-panel/valve-control-panel.d.ts +6 -0
- package/dist/types/components.d.ts +33 -0
- package/package.json +2 -2
- package/dist/ind-ds/p-eac22c88.entry.js.map +0 -1
package/dist/collection/components/organisms/device-diagnostics-panel/device-diagnostics-panel.js
CHANGED
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* Device diagnostics panel: nameplate / connection via `<ind-device-info-card>`
|
|
4
|
-
* plus a list of live diagnostic metrics (CPU, memory, temperature, errors).
|
|
5
|
-
*/
|
|
6
|
-
export class IndDeviceDiagnosticsPanel {
|
|
7
|
-
heading = 'Diagnostics';
|
|
8
|
-
name;
|
|
9
|
-
vendor;
|
|
10
|
-
model;
|
|
11
|
-
firmware;
|
|
12
|
-
serial;
|
|
13
|
-
address;
|
|
14
|
-
state = 'disconnected';
|
|
15
|
-
/** Diagnostic metrics. */
|
|
16
|
-
metrics = [];
|
|
17
|
-
render() {
|
|
18
|
-
return (h(Host, { key: '87d13057cbdf0ae8cc50951231be0c72a5970236' }, h("div", { key: '399c23ad7dff5cd8bf8430c2dfe3e7b21d13f807', class: "panel-head" }, h("span", { key: '7b05113457a67d943203ea9c4f3a6896d953cfab', class: "panel-title", part: "heading" }, this.heading)), h("div", { key: '5685e0cffe993b39f956d0081fb0c9ff0b7e88f1', class: "panel-body" }, h("ind-device-info-card", { key: 'fdba4747a89414806cee8c781cc90e7e5bebd063', name: this.name, vendor: this.vendor, model: this.model, firmware: this.firmware, serial: this.serial, address: this.address, state: this.state }), this.metrics.length > 0 && (h("div", { key: '16eeeda3f9919ace04e34b118fe31e08ac1e3d94', class: "metrics", part: "metrics" }, this.metrics.map((m, i) => (h("div", { class: `metric metric-${m.status ?? 'ok'}`, part: "metric", key: i }, h("span", { class: "metric-label" }, m.label), h("span", { class: "metric-value" }, m.value, m.unit ? ` ${m.unit}` : '')))))))));
|
|
19
|
-
}
|
|
20
|
-
static get is() { return "ind-device-diagnostics-panel"; }
|
|
21
|
-
static get encapsulation() { return "shadow"; }
|
|
22
|
-
static get originalStyleUrls() {
|
|
23
|
-
return {
|
|
24
|
-
"$": ["../_shared/panel.css", "../_shared/control-panel.css", "device-diagnostics-panel.css"]
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
static get styleUrls() {
|
|
28
|
-
return {
|
|
29
|
-
"$": ["../_shared/panel.css", "../_shared/control-panel.css", "device-diagnostics-panel.css"]
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
static get properties() {
|
|
33
|
-
return {
|
|
34
|
-
"heading": {
|
|
35
|
-
"type": "string",
|
|
36
|
-
"mutable": false,
|
|
37
|
-
"complexType": {
|
|
38
|
-
"original": "string",
|
|
39
|
-
"resolved": "string",
|
|
40
|
-
"references": {}
|
|
41
|
-
},
|
|
42
|
-
"required": false,
|
|
43
|
-
"optional": false,
|
|
44
|
-
"docs": {
|
|
45
|
-
"tags": [],
|
|
46
|
-
"text": ""
|
|
47
|
-
},
|
|
48
|
-
"getter": false,
|
|
49
|
-
"setter": false,
|
|
50
|
-
"reflect": false,
|
|
51
|
-
"attribute": "heading",
|
|
52
|
-
"defaultValue": "'Diagnostics'"
|
|
53
|
-
},
|
|
54
|
-
"name": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"mutable": false,
|
|
57
|
-
"complexType": {
|
|
58
|
-
"original": "string",
|
|
59
|
-
"resolved": "string",
|
|
60
|
-
"references": {}
|
|
61
|
-
},
|
|
62
|
-
"required": true,
|
|
63
|
-
"optional": false,
|
|
64
|
-
"docs": {
|
|
65
|
-
"tags": [],
|
|
66
|
-
"text": ""
|
|
67
|
-
},
|
|
68
|
-
"getter": false,
|
|
69
|
-
"setter": false,
|
|
70
|
-
"reflect": false,
|
|
71
|
-
"attribute": "name"
|
|
72
|
-
},
|
|
73
|
-
"vendor": {
|
|
74
|
-
"type": "string",
|
|
75
|
-
"mutable": false,
|
|
76
|
-
"complexType": {
|
|
77
|
-
"original": "string",
|
|
78
|
-
"resolved": "string | undefined",
|
|
79
|
-
"references": {}
|
|
80
|
-
},
|
|
81
|
-
"required": false,
|
|
82
|
-
"optional": true,
|
|
83
|
-
"docs": {
|
|
84
|
-
"tags": [],
|
|
85
|
-
"text": ""
|
|
86
|
-
},
|
|
87
|
-
"getter": false,
|
|
88
|
-
"setter": false,
|
|
89
|
-
"reflect": false,
|
|
90
|
-
"attribute": "vendor"
|
|
91
|
-
},
|
|
92
|
-
"model": {
|
|
93
|
-
"type": "string",
|
|
94
|
-
"mutable": false,
|
|
95
|
-
"complexType": {
|
|
96
|
-
"original": "string",
|
|
97
|
-
"resolved": "string | undefined",
|
|
98
|
-
"references": {}
|
|
99
|
-
},
|
|
100
|
-
"required": false,
|
|
101
|
-
"optional": true,
|
|
102
|
-
"docs": {
|
|
103
|
-
"tags": [],
|
|
104
|
-
"text": ""
|
|
105
|
-
},
|
|
106
|
-
"getter": false,
|
|
107
|
-
"setter": false,
|
|
108
|
-
"reflect": false,
|
|
109
|
-
"attribute": "model"
|
|
110
|
-
},
|
|
111
|
-
"firmware": {
|
|
112
|
-
"type": "string",
|
|
113
|
-
"mutable": false,
|
|
114
|
-
"complexType": {
|
|
115
|
-
"original": "string",
|
|
116
|
-
"resolved": "string | undefined",
|
|
117
|
-
"references": {}
|
|
118
|
-
},
|
|
119
|
-
"required": false,
|
|
120
|
-
"optional": true,
|
|
121
|
-
"docs": {
|
|
122
|
-
"tags": [],
|
|
123
|
-
"text": ""
|
|
124
|
-
},
|
|
125
|
-
"getter": false,
|
|
126
|
-
"setter": false,
|
|
127
|
-
"reflect": false,
|
|
128
|
-
"attribute": "firmware"
|
|
129
|
-
},
|
|
130
|
-
"serial": {
|
|
131
|
-
"type": "string",
|
|
132
|
-
"mutable": false,
|
|
133
|
-
"complexType": {
|
|
134
|
-
"original": "string",
|
|
135
|
-
"resolved": "string | undefined",
|
|
136
|
-
"references": {}
|
|
137
|
-
},
|
|
138
|
-
"required": false,
|
|
139
|
-
"optional": true,
|
|
140
|
-
"docs": {
|
|
141
|
-
"tags": [],
|
|
142
|
-
"text": ""
|
|
143
|
-
},
|
|
144
|
-
"getter": false,
|
|
145
|
-
"setter": false,
|
|
146
|
-
"reflect": false,
|
|
147
|
-
"attribute": "serial"
|
|
148
|
-
},
|
|
149
|
-
"address": {
|
|
150
|
-
"type": "string",
|
|
151
|
-
"mutable": false,
|
|
152
|
-
"complexType": {
|
|
153
|
-
"original": "string",
|
|
154
|
-
"resolved": "string | undefined",
|
|
155
|
-
"references": {}
|
|
156
|
-
},
|
|
157
|
-
"required": false,
|
|
158
|
-
"optional": true,
|
|
159
|
-
"docs": {
|
|
160
|
-
"tags": [],
|
|
161
|
-
"text": ""
|
|
162
|
-
},
|
|
163
|
-
"getter": false,
|
|
164
|
-
"setter": false,
|
|
165
|
-
"reflect": false,
|
|
166
|
-
"attribute": "address"
|
|
167
|
-
},
|
|
168
|
-
"state": {
|
|
169
|
-
"type": "string",
|
|
170
|
-
"mutable": false,
|
|
171
|
-
"complexType": {
|
|
172
|
-
"original": "ConnectionState",
|
|
173
|
-
"resolved": "\"connected\" | \"connecting\" | \"disconnected\" | \"error\"",
|
|
174
|
-
"references": {
|
|
175
|
-
"ConnectionState": {
|
|
176
|
-
"location": "import",
|
|
177
|
-
"path": "../../atoms/connection-indicator/connection-indicator",
|
|
178
|
-
"id": "src/components/atoms/connection-indicator/connection-indicator.tsx::ConnectionState",
|
|
179
|
-
"referenceLocation": "ConnectionState"
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
"required": false,
|
|
184
|
-
"optional": false,
|
|
185
|
-
"docs": {
|
|
186
|
-
"tags": [],
|
|
187
|
-
"text": ""
|
|
188
|
-
},
|
|
189
|
-
"getter": false,
|
|
190
|
-
"setter": false,
|
|
191
|
-
"reflect": true,
|
|
192
|
-
"attribute": "state",
|
|
193
|
-
"defaultValue": "'disconnected'"
|
|
194
|
-
},
|
|
195
|
-
"metrics": {
|
|
196
|
-
"type": "unknown",
|
|
197
|
-
"mutable": false,
|
|
198
|
-
"complexType": {
|
|
199
|
-
"original": "DiagnosticMetric[]",
|
|
200
|
-
"resolved": "DiagnosticMetric[]",
|
|
201
|
-
"references": {
|
|
202
|
-
"DiagnosticMetric": {
|
|
203
|
-
"location": "local",
|
|
204
|
-
"path": "/home/runner/work/ind-ds/ind-ds/packages/core/src/components/organisms/device-diagnostics-panel/device-diagnostics-panel.tsx",
|
|
205
|
-
"id": "src/components/organisms/device-diagnostics-panel/device-diagnostics-panel.tsx::DiagnosticMetric"
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
"required": false,
|
|
210
|
-
"optional": false,
|
|
211
|
-
"docs": {
|
|
212
|
-
"tags": [],
|
|
213
|
-
"text": "Diagnostic metrics."
|
|
214
|
-
},
|
|
215
|
-
"getter": false,
|
|
216
|
-
"setter": false,
|
|
217
|
-
"defaultValue": "[]"
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
//# sourceMappingURL=device-diagnostics-panel.js.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
min-width: 480px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.total {
|
|
6
|
-
margin-left: auto;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: baseline;
|
|
9
|
-
gap: var(--ind-spacing-2, 4px);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.total-label {
|
|
13
|
-
font-size: var(--ind-font-size-xs, 10px);
|
|
14
|
-
text-transform: uppercase;
|
|
15
|
-
letter-spacing: 0.06em;
|
|
16
|
-
color: var(--ind-surface-text-muted);
|
|
17
|
-
margin-right: var(--ind-spacing-2, 4px);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.total-value {
|
|
21
|
-
font-family: var(--ind-font-family-mono);
|
|
22
|
-
font-size: var(--ind-font-size-xl, 16px);
|
|
23
|
-
font-weight: var(--ind-font-weight-bold, 700);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.total-unit {
|
|
27
|
-
font-size: var(--ind-font-size-sm, 11px);
|
|
28
|
-
color: var(--ind-surface-text-secondary);
|
|
29
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* Energy dashboard. A headline total in the header and a grid of slotted
|
|
4
|
-
* `<ind-energy-card>` / KPI molecules below.
|
|
5
|
-
*/
|
|
6
|
-
export class IndEnergyDashboard {
|
|
7
|
-
heading = 'Energy';
|
|
8
|
-
/** Headline total label (e.g. "Site total"). */
|
|
9
|
-
totalLabel;
|
|
10
|
-
/** Headline total value. */
|
|
11
|
-
totalValue;
|
|
12
|
-
/** Headline total unit. */
|
|
13
|
-
totalUnit = 'kW';
|
|
14
|
-
/** Number of grid columns. */
|
|
15
|
-
columns = 3;
|
|
16
|
-
render() {
|
|
17
|
-
return (h(Host, { key: 'f12552c4b162b357e4a381a6bdd2cde2e414706f' }, h("div", { key: '361d328f8b2d8bf3e3a0236f29c77b9bceb37885', class: "panel-head" }, h("span", { key: '3310ec4ced60dbde07d62a187ca7676dffa1c478', class: "panel-title", part: "heading" }, this.heading), this.totalValue !== undefined && (h("div", { key: '73df821d7349a80ac2abe9efda65dd823b7d8fc9', class: "total", part: "total" }, this.totalLabel && h("span", { key: '84ee94d7cdf6773e41070b8f949159724837b212', class: "total-label" }, this.totalLabel), h("span", { key: '34fb429b84bde4bbb443f4d54b02db4a67421be1', class: "total-value" }, this.totalValue.toLocaleString()), h("span", { key: '9e473401e54beb65c714bf440b8b6577d650068d', class: "total-unit" }, this.totalUnit)))), h("div", { key: 'e5e5a8d673bdc23d79f59c684d7e08cb00ddb5bb', class: "panel-grid", part: "grid", style: { gridTemplateColumns: `repeat(${this.columns}, minmax(0, 1fr))` } }, h("slot", { key: '4ad364dceb9c131ed639c833ec0ce7b36c754e3b' }))));
|
|
18
|
-
}
|
|
19
|
-
static get is() { return "ind-energy-dashboard"; }
|
|
20
|
-
static get encapsulation() { return "shadow"; }
|
|
21
|
-
static get originalStyleUrls() {
|
|
22
|
-
return {
|
|
23
|
-
"$": ["../_shared/panel.css", "energy-dashboard.css"]
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
static get styleUrls() {
|
|
27
|
-
return {
|
|
28
|
-
"$": ["../_shared/panel.css", "energy-dashboard.css"]
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
static get properties() {
|
|
32
|
-
return {
|
|
33
|
-
"heading": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"mutable": false,
|
|
36
|
-
"complexType": {
|
|
37
|
-
"original": "string",
|
|
38
|
-
"resolved": "string",
|
|
39
|
-
"references": {}
|
|
40
|
-
},
|
|
41
|
-
"required": false,
|
|
42
|
-
"optional": false,
|
|
43
|
-
"docs": {
|
|
44
|
-
"tags": [],
|
|
45
|
-
"text": ""
|
|
46
|
-
},
|
|
47
|
-
"getter": false,
|
|
48
|
-
"setter": false,
|
|
49
|
-
"reflect": false,
|
|
50
|
-
"attribute": "heading",
|
|
51
|
-
"defaultValue": "'Energy'"
|
|
52
|
-
},
|
|
53
|
-
"totalLabel": {
|
|
54
|
-
"type": "string",
|
|
55
|
-
"mutable": false,
|
|
56
|
-
"complexType": {
|
|
57
|
-
"original": "string",
|
|
58
|
-
"resolved": "string | undefined",
|
|
59
|
-
"references": {}
|
|
60
|
-
},
|
|
61
|
-
"required": false,
|
|
62
|
-
"optional": true,
|
|
63
|
-
"docs": {
|
|
64
|
-
"tags": [],
|
|
65
|
-
"text": "Headline total label (e.g. \"Site total\")."
|
|
66
|
-
},
|
|
67
|
-
"getter": false,
|
|
68
|
-
"setter": false,
|
|
69
|
-
"reflect": false,
|
|
70
|
-
"attribute": "total-label"
|
|
71
|
-
},
|
|
72
|
-
"totalValue": {
|
|
73
|
-
"type": "number",
|
|
74
|
-
"mutable": false,
|
|
75
|
-
"complexType": {
|
|
76
|
-
"original": "number",
|
|
77
|
-
"resolved": "number | undefined",
|
|
78
|
-
"references": {}
|
|
79
|
-
},
|
|
80
|
-
"required": false,
|
|
81
|
-
"optional": true,
|
|
82
|
-
"docs": {
|
|
83
|
-
"tags": [],
|
|
84
|
-
"text": "Headline total value."
|
|
85
|
-
},
|
|
86
|
-
"getter": false,
|
|
87
|
-
"setter": false,
|
|
88
|
-
"reflect": false,
|
|
89
|
-
"attribute": "total-value"
|
|
90
|
-
},
|
|
91
|
-
"totalUnit": {
|
|
92
|
-
"type": "string",
|
|
93
|
-
"mutable": false,
|
|
94
|
-
"complexType": {
|
|
95
|
-
"original": "string",
|
|
96
|
-
"resolved": "string",
|
|
97
|
-
"references": {}
|
|
98
|
-
},
|
|
99
|
-
"required": false,
|
|
100
|
-
"optional": false,
|
|
101
|
-
"docs": {
|
|
102
|
-
"tags": [],
|
|
103
|
-
"text": "Headline total unit."
|
|
104
|
-
},
|
|
105
|
-
"getter": false,
|
|
106
|
-
"setter": false,
|
|
107
|
-
"reflect": false,
|
|
108
|
-
"attribute": "total-unit",
|
|
109
|
-
"defaultValue": "'kW'"
|
|
110
|
-
},
|
|
111
|
-
"columns": {
|
|
112
|
-
"type": "number",
|
|
113
|
-
"mutable": false,
|
|
114
|
-
"complexType": {
|
|
115
|
-
"original": "number",
|
|
116
|
-
"resolved": "number",
|
|
117
|
-
"references": {}
|
|
118
|
-
},
|
|
119
|
-
"required": false,
|
|
120
|
-
"optional": false,
|
|
121
|
-
"docs": {
|
|
122
|
-
"tags": [],
|
|
123
|
-
"text": "Number of grid columns."
|
|
124
|
-
},
|
|
125
|
-
"getter": false,
|
|
126
|
-
"setter": false,
|
|
127
|
-
"reflect": false,
|
|
128
|
-
"attribute": "columns",
|
|
129
|
-
"defaultValue": "3"
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
//# sourceMappingURL=energy-dashboard.js.map
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* Responsive grid host for equipment faceplate molecules (motor/pump/valve/
|
|
4
|
-
* tank cards). Slot the cards in; the dashboard supplies the heading and the
|
|
5
|
-
* column layout.
|
|
6
|
-
*/
|
|
7
|
-
export class IndEquipmentDashboard {
|
|
8
|
-
heading = 'Equipment';
|
|
9
|
-
/** Number of grid columns. */
|
|
10
|
-
columns = 3;
|
|
11
|
-
render() {
|
|
12
|
-
return (h(Host, { key: '1b21d41333ef6d4d58235b334a50e90a8aebb415' }, h("div", { key: '56bc5ea686d16eb409529169e475ae1939d60338', class: "panel-head" }, h("span", { key: '15da308f985628e770bea272c7c7ad96c318c528', class: "panel-title", part: "heading" }, this.heading), h("div", { key: '6c437965be2951afff07b65c45553e1157a9941b', class: "panel-actions" }, h("slot", { key: '91a65bf2ca09d8e05e489c0cb4af658da90b4bdb', name: "actions" }))), h("div", { key: '9d6e55b809e3c68e5ab7097c4264a4ad8febee0b', class: "panel-grid", part: "grid", style: { gridTemplateColumns: `repeat(${this.columns}, minmax(0, 1fr))` } }, h("slot", { key: 'c9102cb92c046cd4697bfc33b397b78d0db8740f' }))));
|
|
13
|
-
}
|
|
14
|
-
static get is() { return "ind-equipment-dashboard"; }
|
|
15
|
-
static get encapsulation() { return "shadow"; }
|
|
16
|
-
static get originalStyleUrls() {
|
|
17
|
-
return {
|
|
18
|
-
"$": ["../_shared/panel.css", "equipment-dashboard.css"]
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
static get styleUrls() {
|
|
22
|
-
return {
|
|
23
|
-
"$": ["../_shared/panel.css", "equipment-dashboard.css"]
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
static get properties() {
|
|
27
|
-
return {
|
|
28
|
-
"heading": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"mutable": false,
|
|
31
|
-
"complexType": {
|
|
32
|
-
"original": "string",
|
|
33
|
-
"resolved": "string",
|
|
34
|
-
"references": {}
|
|
35
|
-
},
|
|
36
|
-
"required": false,
|
|
37
|
-
"optional": false,
|
|
38
|
-
"docs": {
|
|
39
|
-
"tags": [],
|
|
40
|
-
"text": ""
|
|
41
|
-
},
|
|
42
|
-
"getter": false,
|
|
43
|
-
"setter": false,
|
|
44
|
-
"reflect": false,
|
|
45
|
-
"attribute": "heading",
|
|
46
|
-
"defaultValue": "'Equipment'"
|
|
47
|
-
},
|
|
48
|
-
"columns": {
|
|
49
|
-
"type": "number",
|
|
50
|
-
"mutable": false,
|
|
51
|
-
"complexType": {
|
|
52
|
-
"original": "number",
|
|
53
|
-
"resolved": "number",
|
|
54
|
-
"references": {}
|
|
55
|
-
},
|
|
56
|
-
"required": false,
|
|
57
|
-
"optional": false,
|
|
58
|
-
"docs": {
|
|
59
|
-
"tags": [],
|
|
60
|
-
"text": "Number of grid columns."
|
|
61
|
-
},
|
|
62
|
-
"getter": false,
|
|
63
|
-
"setter": false,
|
|
64
|
-
"reflect": false,
|
|
65
|
-
"attribute": "columns",
|
|
66
|
-
"defaultValue": "3"
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=equipment-dashboard.js.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
min-width: 420px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.panel-list {
|
|
6
|
-
max-height: 420px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.filter {
|
|
10
|
-
font-family: var(--ind-font-family-sans);
|
|
11
|
-
font-size: var(--ind-font-size-sm, 11px);
|
|
12
|
-
background: var(--ind-surface-sunken);
|
|
13
|
-
color: var(--ind-surface-text-primary);
|
|
14
|
-
border: 1px solid var(--ind-surface-border-default);
|
|
15
|
-
border-radius: var(--ind-radius-sm, 2px);
|
|
16
|
-
padding: 3px 6px;
|
|
17
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* Chronological event / system log built from `<ind-event-row>`s, with a
|
|
4
|
-
* severity filter in the toolbar.
|
|
5
|
-
*/
|
|
6
|
-
export class IndEventJournal {
|
|
7
|
-
heading = 'Event journal';
|
|
8
|
-
/** Events, most-recent first. */
|
|
9
|
-
events = [];
|
|
10
|
-
/** Active severity filter — `all` shows everything. */
|
|
11
|
-
filter = 'all';
|
|
12
|
-
onFilter = (e) => {
|
|
13
|
-
this.filter = e.target.value;
|
|
14
|
-
};
|
|
15
|
-
render() {
|
|
16
|
-
const rows = this.filter === 'all' ? this.events : this.events.filter((e) => e.severity === this.filter);
|
|
17
|
-
return (h(Host, { key: '929ed5552330cf00cd4d19d634d28084f620e45a' }, h("div", { key: 'cda7f696c5979c7d43bb5fe820e91bb906e4056f', class: "panel-head" }, h("span", { key: '5c60680f7f033917b8c39fa2c9735a0587632ead', class: "panel-title", part: "heading" }, this.heading), h("div", { key: 'de0dec2492782802de3b62a7542b34fa47d61a75', class: "panel-actions" }, h("select", { key: '6b9d2b537af2b4e5d8ed50ff0cd1242f29a20c6d', class: "filter", part: "filter", onChange: this.onFilter }, h("option", { key: 'b86227a678a5851e6dd859f2acb38c9a763c8c56', value: "all" }, "All severities"), h("option", { key: '7f2f904e5d13783b45d42a53d4df66ce07064913', value: "error" }, "Error"), h("option", { key: '545575b6488b207f90c2dc392cb6eb323e36dcdc', value: "warning" }, "Warning"), h("option", { key: 'de94ee66b3d5fc73d63ddea1f96e313a67fedbd9', value: "success" }, "Success"), h("option", { key: '25d7721fb074f259851800252eb5c1f5675a6ae5', value: "info" }, "Info")))), h("div", { key: 'e10810c54e731d3b99bf337134ac3775332d8055', class: "panel-list", part: "list" }, rows.length === 0 ? (h("div", { class: "panel-empty" }, "No events")) : (rows.map((e, i) => (h("ind-event-row", { key: i, time: e.time, severity: e.severity, source: e.source, message: e.message })))))));
|
|
18
|
-
}
|
|
19
|
-
static get is() { return "ind-event-journal"; }
|
|
20
|
-
static get encapsulation() { return "shadow"; }
|
|
21
|
-
static get originalStyleUrls() {
|
|
22
|
-
return {
|
|
23
|
-
"$": ["../_shared/panel.css", "event-journal.css"]
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
static get styleUrls() {
|
|
27
|
-
return {
|
|
28
|
-
"$": ["../_shared/panel.css", "event-journal.css"]
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
static get properties() {
|
|
32
|
-
return {
|
|
33
|
-
"heading": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"mutable": false,
|
|
36
|
-
"complexType": {
|
|
37
|
-
"original": "string",
|
|
38
|
-
"resolved": "string",
|
|
39
|
-
"references": {}
|
|
40
|
-
},
|
|
41
|
-
"required": false,
|
|
42
|
-
"optional": false,
|
|
43
|
-
"docs": {
|
|
44
|
-
"tags": [],
|
|
45
|
-
"text": ""
|
|
46
|
-
},
|
|
47
|
-
"getter": false,
|
|
48
|
-
"setter": false,
|
|
49
|
-
"reflect": false,
|
|
50
|
-
"attribute": "heading",
|
|
51
|
-
"defaultValue": "'Event journal'"
|
|
52
|
-
},
|
|
53
|
-
"events": {
|
|
54
|
-
"type": "unknown",
|
|
55
|
-
"mutable": false,
|
|
56
|
-
"complexType": {
|
|
57
|
-
"original": "EventJournalItem[]",
|
|
58
|
-
"resolved": "EventJournalItem[]",
|
|
59
|
-
"references": {
|
|
60
|
-
"EventJournalItem": {
|
|
61
|
-
"location": "local",
|
|
62
|
-
"path": "/home/runner/work/ind-ds/ind-ds/packages/core/src/components/organisms/event-journal/event-journal.tsx",
|
|
63
|
-
"id": "src/components/organisms/event-journal/event-journal.tsx::EventJournalItem"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"required": false,
|
|
68
|
-
"optional": false,
|
|
69
|
-
"docs": {
|
|
70
|
-
"tags": [],
|
|
71
|
-
"text": "Events, most-recent first."
|
|
72
|
-
},
|
|
73
|
-
"getter": false,
|
|
74
|
-
"setter": false,
|
|
75
|
-
"defaultValue": "[]"
|
|
76
|
-
},
|
|
77
|
-
"filter": {
|
|
78
|
-
"type": "string",
|
|
79
|
-
"mutable": true,
|
|
80
|
-
"complexType": {
|
|
81
|
-
"original": "'all' | EventSeverity",
|
|
82
|
-
"resolved": "\"all\" | \"error\" | \"info\" | \"success\" | \"warning\"",
|
|
83
|
-
"references": {
|
|
84
|
-
"EventSeverity": {
|
|
85
|
-
"location": "import",
|
|
86
|
-
"path": "../../molecules/event-row/event-row",
|
|
87
|
-
"id": "src/components/molecules/event-row/event-row.tsx::EventSeverity",
|
|
88
|
-
"referenceLocation": "EventSeverity"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"required": false,
|
|
93
|
-
"optional": false,
|
|
94
|
-
"docs": {
|
|
95
|
-
"tags": [],
|
|
96
|
-
"text": "Active severity filter \u2014 `all` shows everything."
|
|
97
|
-
},
|
|
98
|
-
"getter": false,
|
|
99
|
-
"setter": false,
|
|
100
|
-
"reflect": false,
|
|
101
|
-
"attribute": "filter",
|
|
102
|
-
"defaultValue": "'all'"
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=event-journal.js.map
|
package/dist/collection/components/organisms/firmware-update-panel/firmware-update-panel.css
CHANGED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
min-width: 300px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
ind-progress {
|
|
6
|
-
width: 100%;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.versions {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
gap: var(--ind-spacing-5, 12px);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.ver {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ver-label {
|
|
21
|
-
font-size: var(--ind-font-size-xs, 10px);
|
|
22
|
-
text-transform: uppercase;
|
|
23
|
-
letter-spacing: 0.06em;
|
|
24
|
-
color: var(--ind-surface-text-muted);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.ver-value {
|
|
28
|
-
font-family: var(--ind-font-family-mono);
|
|
29
|
-
font-size: var(--ind-font-size-lg, 14px);
|
|
30
|
-
font-weight: var(--ind-font-weight-semibold, 600);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.arrow {
|
|
34
|
-
color: var(--ind-surface-text-muted);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.state {
|
|
38
|
-
font-size: var(--ind-font-size-sm, 11px);
|
|
39
|
-
font-weight: var(--ind-font-weight-bold, 700);
|
|
40
|
-
padding: 2px 8px;
|
|
41
|
-
border-radius: var(--ind-radius-full, 9999px);
|
|
42
|
-
background: var(--ind-surface-raised);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.state-available { color: var(--ind-state-warning-bg, #f59e0b); }
|
|
46
|
-
.state-up-to-date { color: var(--ind-state-running-bg, #16a34a); }
|
|
47
|
-
.state-error { color: var(--ind-state-fault-bg, #dc2626); }
|