@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
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* Energy / power KPI card: a headline reading plus an `<ind-sparkline>` for the
|
|
4
|
-
* recent profile and an optional cumulative figure for the period.
|
|
5
|
-
*/
|
|
6
|
-
export class IndEnergyCard {
|
|
7
|
-
/** Metric name (e.g. "Active power", "Energy today"). */
|
|
8
|
-
label;
|
|
9
|
-
/** Instantaneous value. */
|
|
10
|
-
value;
|
|
11
|
-
/** Unit (default kW). */
|
|
12
|
-
unit = 'kW';
|
|
13
|
-
/** Decimal places. */
|
|
14
|
-
precision = 1;
|
|
15
|
-
/** Recent samples for the sparkline. */
|
|
16
|
-
points = [];
|
|
17
|
-
/** Trend arrow. */
|
|
18
|
-
trend = 'none';
|
|
19
|
-
/** Cumulative value for the period (e.g. kWh today). */
|
|
20
|
-
total;
|
|
21
|
-
/** Cumulative unit (default kWh). */
|
|
22
|
-
totalUnit = 'kWh';
|
|
23
|
-
render() {
|
|
24
|
-
const arrow = this.trend === 'up' ? '▲' : this.trend === 'down' ? '▼' : this.trend === 'flat' ? '▬' : '';
|
|
25
|
-
const valueTrend = this.trend === 'flat' ? 'stable' : this.trend === 'none' ? 'none' : this.trend;
|
|
26
|
-
return (h(Host, { key: '6a1e87d1ba637c85937d672a72e6b04eb2c53bd1', role: "group", "aria-label": `${this.label}: ${this.value.toFixed(this.precision)} ${this.unit}` }, h("div", { key: 'a9b7c35217f479e2fecd7c4b3055bee9c31dc792', class: "card-head" }, h("span", { key: '97d732992573a11bebce1c7eb71637c1c0d4e8ec', class: "card-title", part: "label" }, this.label), arrow && h("span", { key: 'ddfa5633ce99e620fff7f3014c56b854d7609d5e', class: `arrow trend-${this.trend}`, part: "arrow", "aria-hidden": "true" }, arrow)), h("ind-value", { key: 'c9a36ee2223c248354bc03f1ca5713b293906acd', part: "value", value: this.value, unit: this.unit, precision: this.precision, trend: valueTrend, size: "lg" }), this.points.length > 1 && (h("ind-sparkline", { key: 'acb497f4a84df274fc77f07ebd2ae92f511ec41b', class: "spark", part: "spark", points: this.points, variant: "default", area: true })), this.total !== undefined && (h("div", { key: '66afecfb971972446303c9cacb79b5ec7aaa191d', class: "card-detail", part: "total" }, this.total.toLocaleString(), " ", this.totalUnit, " this period"))));
|
|
27
|
-
}
|
|
28
|
-
static get is() { return "ind-energy-card"; }
|
|
29
|
-
static get encapsulation() { return "shadow"; }
|
|
30
|
-
static get originalStyleUrls() {
|
|
31
|
-
return {
|
|
32
|
-
"$": ["../_shared/card.css", "energy-card.css"]
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
static get styleUrls() {
|
|
36
|
-
return {
|
|
37
|
-
"$": ["../_shared/card.css", "energy-card.css"]
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
static get properties() {
|
|
41
|
-
return {
|
|
42
|
-
"label": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"mutable": false,
|
|
45
|
-
"complexType": {
|
|
46
|
-
"original": "string",
|
|
47
|
-
"resolved": "string",
|
|
48
|
-
"references": {}
|
|
49
|
-
},
|
|
50
|
-
"required": true,
|
|
51
|
-
"optional": false,
|
|
52
|
-
"docs": {
|
|
53
|
-
"tags": [],
|
|
54
|
-
"text": "Metric name (e.g. \"Active power\", \"Energy today\")."
|
|
55
|
-
},
|
|
56
|
-
"getter": false,
|
|
57
|
-
"setter": false,
|
|
58
|
-
"reflect": false,
|
|
59
|
-
"attribute": "label"
|
|
60
|
-
},
|
|
61
|
-
"value": {
|
|
62
|
-
"type": "number",
|
|
63
|
-
"mutable": false,
|
|
64
|
-
"complexType": {
|
|
65
|
-
"original": "number",
|
|
66
|
-
"resolved": "number",
|
|
67
|
-
"references": {}
|
|
68
|
-
},
|
|
69
|
-
"required": true,
|
|
70
|
-
"optional": false,
|
|
71
|
-
"docs": {
|
|
72
|
-
"tags": [],
|
|
73
|
-
"text": "Instantaneous value."
|
|
74
|
-
},
|
|
75
|
-
"getter": false,
|
|
76
|
-
"setter": false,
|
|
77
|
-
"reflect": false,
|
|
78
|
-
"attribute": "value"
|
|
79
|
-
},
|
|
80
|
-
"unit": {
|
|
81
|
-
"type": "string",
|
|
82
|
-
"mutable": false,
|
|
83
|
-
"complexType": {
|
|
84
|
-
"original": "string",
|
|
85
|
-
"resolved": "string",
|
|
86
|
-
"references": {}
|
|
87
|
-
},
|
|
88
|
-
"required": false,
|
|
89
|
-
"optional": false,
|
|
90
|
-
"docs": {
|
|
91
|
-
"tags": [],
|
|
92
|
-
"text": "Unit (default kW)."
|
|
93
|
-
},
|
|
94
|
-
"getter": false,
|
|
95
|
-
"setter": false,
|
|
96
|
-
"reflect": false,
|
|
97
|
-
"attribute": "unit",
|
|
98
|
-
"defaultValue": "'kW'"
|
|
99
|
-
},
|
|
100
|
-
"precision": {
|
|
101
|
-
"type": "number",
|
|
102
|
-
"mutable": false,
|
|
103
|
-
"complexType": {
|
|
104
|
-
"original": "number",
|
|
105
|
-
"resolved": "number",
|
|
106
|
-
"references": {}
|
|
107
|
-
},
|
|
108
|
-
"required": false,
|
|
109
|
-
"optional": false,
|
|
110
|
-
"docs": {
|
|
111
|
-
"tags": [],
|
|
112
|
-
"text": "Decimal places."
|
|
113
|
-
},
|
|
114
|
-
"getter": false,
|
|
115
|
-
"setter": false,
|
|
116
|
-
"reflect": false,
|
|
117
|
-
"attribute": "precision",
|
|
118
|
-
"defaultValue": "1"
|
|
119
|
-
},
|
|
120
|
-
"points": {
|
|
121
|
-
"type": "unknown",
|
|
122
|
-
"mutable": false,
|
|
123
|
-
"complexType": {
|
|
124
|
-
"original": "number[]",
|
|
125
|
-
"resolved": "number[]",
|
|
126
|
-
"references": {}
|
|
127
|
-
},
|
|
128
|
-
"required": false,
|
|
129
|
-
"optional": false,
|
|
130
|
-
"docs": {
|
|
131
|
-
"tags": [],
|
|
132
|
-
"text": "Recent samples for the sparkline."
|
|
133
|
-
},
|
|
134
|
-
"getter": false,
|
|
135
|
-
"setter": false,
|
|
136
|
-
"defaultValue": "[]"
|
|
137
|
-
},
|
|
138
|
-
"trend": {
|
|
139
|
-
"type": "string",
|
|
140
|
-
"mutable": false,
|
|
141
|
-
"complexType": {
|
|
142
|
-
"original": "EnergyTrend",
|
|
143
|
-
"resolved": "\"down\" | \"flat\" | \"none\" | \"up\"",
|
|
144
|
-
"references": {
|
|
145
|
-
"EnergyTrend": {
|
|
146
|
-
"location": "local",
|
|
147
|
-
"path": "/home/runner/work/ind-ds/ind-ds/packages/core/src/components/molecules/energy-card/energy-card.tsx",
|
|
148
|
-
"id": "src/components/molecules/energy-card/energy-card.tsx::EnergyTrend"
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"required": false,
|
|
153
|
-
"optional": false,
|
|
154
|
-
"docs": {
|
|
155
|
-
"tags": [],
|
|
156
|
-
"text": "Trend arrow."
|
|
157
|
-
},
|
|
158
|
-
"getter": false,
|
|
159
|
-
"setter": false,
|
|
160
|
-
"reflect": false,
|
|
161
|
-
"attribute": "trend",
|
|
162
|
-
"defaultValue": "'none'"
|
|
163
|
-
},
|
|
164
|
-
"total": {
|
|
165
|
-
"type": "number",
|
|
166
|
-
"mutable": false,
|
|
167
|
-
"complexType": {
|
|
168
|
-
"original": "number",
|
|
169
|
-
"resolved": "number | undefined",
|
|
170
|
-
"references": {}
|
|
171
|
-
},
|
|
172
|
-
"required": false,
|
|
173
|
-
"optional": true,
|
|
174
|
-
"docs": {
|
|
175
|
-
"tags": [],
|
|
176
|
-
"text": "Cumulative value for the period (e.g. kWh today)."
|
|
177
|
-
},
|
|
178
|
-
"getter": false,
|
|
179
|
-
"setter": false,
|
|
180
|
-
"reflect": false,
|
|
181
|
-
"attribute": "total"
|
|
182
|
-
},
|
|
183
|
-
"totalUnit": {
|
|
184
|
-
"type": "string",
|
|
185
|
-
"mutable": false,
|
|
186
|
-
"complexType": {
|
|
187
|
-
"original": "string",
|
|
188
|
-
"resolved": "string",
|
|
189
|
-
"references": {}
|
|
190
|
-
},
|
|
191
|
-
"required": false,
|
|
192
|
-
"optional": false,
|
|
193
|
-
"docs": {
|
|
194
|
-
"tags": [],
|
|
195
|
-
"text": "Cumulative unit (default kWh)."
|
|
196
|
-
},
|
|
197
|
-
"getter": false,
|
|
198
|
-
"setter": false,
|
|
199
|
-
"reflect": false,
|
|
200
|
-
"attribute": "total-unit",
|
|
201
|
-
"defaultValue": "'kWh'"
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
//# sourceMappingURL=energy-card.js.map
|
package/dist/collection/components/molecules/equipment-status-card/equipment-status-card.css
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
.body {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: var(--ind-spacing-5, 12px);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.symbol {
|
|
8
|
-
display: inline-flex;
|
|
9
|
-
flex: 0 0 auto;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.status {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
gap: var(--ind-spacing-3, 6px);
|
|
16
|
-
margin-left: auto;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.state-label {
|
|
20
|
-
font-size: var(--ind-font-size-lg, 14px);
|
|
21
|
-
font-weight: var(--ind-font-weight-semibold, 600);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:host([state="running"]) .state-label { color: var(--ind-state-running-bg, #16a34a); }
|
|
25
|
-
:host([state="fault"]) .state-label { color: var(--ind-state-fault-bg, #dc2626); }
|
|
26
|
-
:host([state="warning"]) .state-label { color: var(--ind-state-warning-bg, #f59e0b); }
|
|
27
|
-
:host([state="maintenance"]) .state-label { color: var(--ind-state-maintenance-bg, #2563eb); }
|
|
28
|
-
:host([state="stopped"]) .state-label { color: var(--ind-surface-text-secondary); }
|
|
29
|
-
:host([state="unknown"]) .state-label { color: var(--ind-surface-text-muted); }
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
const DEFAULT_LABEL = {
|
|
3
|
-
running: 'Running',
|
|
4
|
-
stopped: 'Stopped',
|
|
5
|
-
fault: 'Fault',
|
|
6
|
-
warning: 'Warning',
|
|
7
|
-
maintenance: 'Maintenance',
|
|
8
|
-
unknown: '—',
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Generic equipment status card. Slot a process symbol (`<ind-pump>`,
|
|
12
|
-
* `<ind-motor>`, …) into the default slot; the card supplies the heading,
|
|
13
|
-
* a state badge and an optional detail line.
|
|
14
|
-
*/
|
|
15
|
-
export class IndEquipmentStatusCard {
|
|
16
|
-
/** Equipment name (e.g. "Feed pump"). */
|
|
17
|
-
heading;
|
|
18
|
-
/** Equipment tag (e.g. "P-101"). */
|
|
19
|
-
tag;
|
|
20
|
-
/** Process state — drives the badge color and fault chrome. */
|
|
21
|
-
state = 'unknown';
|
|
22
|
-
/** Override the default state label. */
|
|
23
|
-
stateLabel;
|
|
24
|
-
/** Sub-line for context (runtime, last fault, …). */
|
|
25
|
-
detail;
|
|
26
|
-
render() {
|
|
27
|
-
const label = this.stateLabel ?? DEFAULT_LABEL[this.state];
|
|
28
|
-
const dot = this.state === 'unknown' ? 'neutral' : this.state;
|
|
29
|
-
return (h(Host, { key: '50ef02041e1221b96bb57907725bf22cc5e0d609', role: "group", "aria-label": `${this.heading}: ${label}`, "aria-live": this.state === 'fault' ? 'assertive' : 'polite' }, h("div", { key: 'b173cac3ff0f2f10ff25e461aa1016ffe2952e2d', class: "card-head" }, h("span", { key: '53f425c3d75617add7807f77dd411f0ed1cd1b80', class: "card-title", part: "heading" }, this.heading), this.tag && h("span", { key: '1bcdbdaaaffc476ffb5f99a4d1c248b37f428c9a', class: "card-tag", part: "tag" }, this.tag)), h("div", { key: '75b94da1c391f16ebfa6ed3468f98d9a42b1be8d', class: "body", part: "body" }, h("span", { key: '684412e91904a96e24cce09c8003cf87b3b47fb1', class: "symbol", part: "symbol" }, h("slot", { key: '398342832c19ddd39cd59d3e30b8c057d939d7d1' })), h("div", { key: '6b26f6e32e85949ffa226c522be010693fcfa868', class: "status", part: "status" }, h("ind-status-dot", { key: '0c9e97b62ef0435e8ebe0889fdfde5822506eb4c', state: dot, size: "md" }), h("span", { key: '6a0506b7ab72f4b3f2b28c6bd5210062b77d9594', class: "state-label", part: "state-label" }, label))), this.detail && h("div", { key: 'e7993508dabe25207fc675182bac2034263f775b', class: "card-detail", part: "detail" }, this.detail)));
|
|
30
|
-
}
|
|
31
|
-
static get is() { return "ind-equipment-status-card"; }
|
|
32
|
-
static get encapsulation() { return "shadow"; }
|
|
33
|
-
static get originalStyleUrls() {
|
|
34
|
-
return {
|
|
35
|
-
"$": ["../_shared/card.css", "equipment-status-card.css"]
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
static get styleUrls() {
|
|
39
|
-
return {
|
|
40
|
-
"$": ["../_shared/card.css", "equipment-status-card.css"]
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
static get properties() {
|
|
44
|
-
return {
|
|
45
|
-
"heading": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"mutable": false,
|
|
48
|
-
"complexType": {
|
|
49
|
-
"original": "string",
|
|
50
|
-
"resolved": "string",
|
|
51
|
-
"references": {}
|
|
52
|
-
},
|
|
53
|
-
"required": true,
|
|
54
|
-
"optional": false,
|
|
55
|
-
"docs": {
|
|
56
|
-
"tags": [],
|
|
57
|
-
"text": "Equipment name (e.g. \"Feed pump\")."
|
|
58
|
-
},
|
|
59
|
-
"getter": false,
|
|
60
|
-
"setter": false,
|
|
61
|
-
"reflect": false,
|
|
62
|
-
"attribute": "heading"
|
|
63
|
-
},
|
|
64
|
-
"tag": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"mutable": false,
|
|
67
|
-
"complexType": {
|
|
68
|
-
"original": "string",
|
|
69
|
-
"resolved": "string | undefined",
|
|
70
|
-
"references": {}
|
|
71
|
-
},
|
|
72
|
-
"required": false,
|
|
73
|
-
"optional": true,
|
|
74
|
-
"docs": {
|
|
75
|
-
"tags": [],
|
|
76
|
-
"text": "Equipment tag (e.g. \"P-101\")."
|
|
77
|
-
},
|
|
78
|
-
"getter": false,
|
|
79
|
-
"setter": false,
|
|
80
|
-
"reflect": false,
|
|
81
|
-
"attribute": "tag"
|
|
82
|
-
},
|
|
83
|
-
"state": {
|
|
84
|
-
"type": "string",
|
|
85
|
-
"mutable": false,
|
|
86
|
-
"complexType": {
|
|
87
|
-
"original": "EquipmentCardState",
|
|
88
|
-
"resolved": "\"fault\" | \"maintenance\" | \"running\" | \"stopped\" | \"unknown\" | \"warning\"",
|
|
89
|
-
"references": {
|
|
90
|
-
"EquipmentCardState": {
|
|
91
|
-
"location": "local",
|
|
92
|
-
"path": "/home/runner/work/ind-ds/ind-ds/packages/core/src/components/molecules/equipment-status-card/equipment-status-card.tsx",
|
|
93
|
-
"id": "src/components/molecules/equipment-status-card/equipment-status-card.tsx::EquipmentCardState"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"required": false,
|
|
98
|
-
"optional": false,
|
|
99
|
-
"docs": {
|
|
100
|
-
"tags": [],
|
|
101
|
-
"text": "Process state \u2014 drives the badge color and fault chrome."
|
|
102
|
-
},
|
|
103
|
-
"getter": false,
|
|
104
|
-
"setter": false,
|
|
105
|
-
"reflect": true,
|
|
106
|
-
"attribute": "state",
|
|
107
|
-
"defaultValue": "'unknown'"
|
|
108
|
-
},
|
|
109
|
-
"stateLabel": {
|
|
110
|
-
"type": "string",
|
|
111
|
-
"mutable": false,
|
|
112
|
-
"complexType": {
|
|
113
|
-
"original": "string",
|
|
114
|
-
"resolved": "string | undefined",
|
|
115
|
-
"references": {}
|
|
116
|
-
},
|
|
117
|
-
"required": false,
|
|
118
|
-
"optional": true,
|
|
119
|
-
"docs": {
|
|
120
|
-
"tags": [],
|
|
121
|
-
"text": "Override the default state label."
|
|
122
|
-
},
|
|
123
|
-
"getter": false,
|
|
124
|
-
"setter": false,
|
|
125
|
-
"reflect": false,
|
|
126
|
-
"attribute": "state-label"
|
|
127
|
-
},
|
|
128
|
-
"detail": {
|
|
129
|
-
"type": "string",
|
|
130
|
-
"mutable": false,
|
|
131
|
-
"complexType": {
|
|
132
|
-
"original": "string",
|
|
133
|
-
"resolved": "string | undefined",
|
|
134
|
-
"references": {}
|
|
135
|
-
},
|
|
136
|
-
"required": false,
|
|
137
|
-
"optional": true,
|
|
138
|
-
"docs": {
|
|
139
|
-
"tags": [],
|
|
140
|
-
"text": "Sub-line for context (runtime, last fault, \u2026)."
|
|
141
|
-
},
|
|
142
|
-
"getter": false,
|
|
143
|
-
"setter": false,
|
|
144
|
-
"reflect": false,
|
|
145
|
-
"attribute": "detail"
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
//# sourceMappingURL=equipment-status-card.js.map
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* One line in an event / system log: timestamp, severity dot, source and
|
|
4
|
-
* message. Read-only.
|
|
5
|
-
*/
|
|
6
|
-
export class IndEventRow {
|
|
7
|
-
/** Pre-formatted timestamp. */
|
|
8
|
-
time;
|
|
9
|
-
/** Severity — drives the status dot color. */
|
|
10
|
-
severity = 'info';
|
|
11
|
-
/** Event source (subsystem, device, tag). */
|
|
12
|
-
source;
|
|
13
|
-
/** Event message. */
|
|
14
|
-
message;
|
|
15
|
-
render() {
|
|
16
|
-
return (h(Host, { key: 'f0c8397e9f18441b1720612d4413d7438174f41f', role: "row", "aria-label": `${this.severity} event ${this.message}` }, this.time && h("span", { key: '0abc4554ac569b3c654cb1d56a7892af1770a26e', class: "time", part: "time" }, this.time), h("ind-status-dot", { key: '0c0dd551e50498854cb05a4356581c734bf5b3cd', state: this.severity, size: "sm" }), this.source && h("span", { key: 'fdb8f001ee894c60c114bbb0c750d22057c1aaa0', class: "tag", part: "source" }, this.source), h("span", { key: '61f1b238ffe9bc9d0ac5911145b6b66691747a06', class: "msg", part: "message" }, this.message)));
|
|
17
|
-
}
|
|
18
|
-
static get is() { return "ind-event-row"; }
|
|
19
|
-
static get encapsulation() { return "shadow"; }
|
|
20
|
-
static get originalStyleUrls() {
|
|
21
|
-
return {
|
|
22
|
-
"$": ["../_shared/row.css", "event-row.css"]
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
static get styleUrls() {
|
|
26
|
-
return {
|
|
27
|
-
"$": ["../_shared/row.css", "event-row.css"]
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
static get properties() {
|
|
31
|
-
return {
|
|
32
|
-
"time": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"mutable": false,
|
|
35
|
-
"complexType": {
|
|
36
|
-
"original": "string",
|
|
37
|
-
"resolved": "string | undefined",
|
|
38
|
-
"references": {}
|
|
39
|
-
},
|
|
40
|
-
"required": false,
|
|
41
|
-
"optional": true,
|
|
42
|
-
"docs": {
|
|
43
|
-
"tags": [],
|
|
44
|
-
"text": "Pre-formatted timestamp."
|
|
45
|
-
},
|
|
46
|
-
"getter": false,
|
|
47
|
-
"setter": false,
|
|
48
|
-
"reflect": false,
|
|
49
|
-
"attribute": "time"
|
|
50
|
-
},
|
|
51
|
-
"severity": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"mutable": false,
|
|
54
|
-
"complexType": {
|
|
55
|
-
"original": "EventSeverity",
|
|
56
|
-
"resolved": "\"error\" | \"info\" | \"success\" | \"warning\"",
|
|
57
|
-
"references": {
|
|
58
|
-
"EventSeverity": {
|
|
59
|
-
"location": "local",
|
|
60
|
-
"path": "/home/runner/work/ind-ds/ind-ds/packages/core/src/components/molecules/event-row/event-row.tsx",
|
|
61
|
-
"id": "src/components/molecules/event-row/event-row.tsx::EventSeverity"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"required": false,
|
|
66
|
-
"optional": false,
|
|
67
|
-
"docs": {
|
|
68
|
-
"tags": [],
|
|
69
|
-
"text": "Severity \u2014 drives the status dot color."
|
|
70
|
-
},
|
|
71
|
-
"getter": false,
|
|
72
|
-
"setter": false,
|
|
73
|
-
"reflect": true,
|
|
74
|
-
"attribute": "severity",
|
|
75
|
-
"defaultValue": "'info'"
|
|
76
|
-
},
|
|
77
|
-
"source": {
|
|
78
|
-
"type": "string",
|
|
79
|
-
"mutable": false,
|
|
80
|
-
"complexType": {
|
|
81
|
-
"original": "string",
|
|
82
|
-
"resolved": "string | undefined",
|
|
83
|
-
"references": {}
|
|
84
|
-
},
|
|
85
|
-
"required": false,
|
|
86
|
-
"optional": true,
|
|
87
|
-
"docs": {
|
|
88
|
-
"tags": [],
|
|
89
|
-
"text": "Event source (subsystem, device, tag)."
|
|
90
|
-
},
|
|
91
|
-
"getter": false,
|
|
92
|
-
"setter": false,
|
|
93
|
-
"reflect": false,
|
|
94
|
-
"attribute": "source"
|
|
95
|
-
},
|
|
96
|
-
"message": {
|
|
97
|
-
"type": "string",
|
|
98
|
-
"mutable": false,
|
|
99
|
-
"complexType": {
|
|
100
|
-
"original": "string",
|
|
101
|
-
"resolved": "string",
|
|
102
|
-
"references": {}
|
|
103
|
-
},
|
|
104
|
-
"required": true,
|
|
105
|
-
"optional": false,
|
|
106
|
-
"docs": {
|
|
107
|
-
"tags": [],
|
|
108
|
-
"text": "Event message."
|
|
109
|
-
},
|
|
110
|
-
"getter": false,
|
|
111
|
-
"setter": false,
|
|
112
|
-
"reflect": false,
|
|
113
|
-
"attribute": "message"
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
//# sourceMappingURL=event-row.js.map
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-template-columns: max-content minmax(80px, 1.2fr) minmax(160px, 2fr) max-content max-content auto;
|
|
4
|
-
gap: var(--ind-spacing-4, 8px);
|
|
5
|
-
align-items: center;
|
|
6
|
-
padding: var(--ind-spacing-3, 6px) var(--ind-spacing-5, 12px);
|
|
7
|
-
background: var(--ind-surface-panel);
|
|
8
|
-
border: 1px solid var(--ind-surface-border-default);
|
|
9
|
-
border-radius: var(--ind-radius-md, 3px);
|
|
10
|
-
font-family: var(--ind-font-family-sans);
|
|
11
|
-
color: var(--ind-surface-text-primary, light-dark(#11161c, #eef1f5));
|
|
12
|
-
font-feature-settings: var(--ind-font-feature-tabular, "tnum" 1);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.tag {
|
|
16
|
-
font-family: var(--ind-font-family-mono);
|
|
17
|
-
font-weight: var(--ind-font-weight-semibold, 600);
|
|
18
|
-
font-size: var(--ind-font-size-sm, 11px);
|
|
19
|
-
color: var(--ind-surface-text-secondary, light-dark(#2a3340, #aab5c2));
|
|
20
|
-
letter-spacing: 0.04em;
|
|
21
|
-
min-width: 32px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.label {
|
|
25
|
-
font-size: var(--ind-font-size-base, 12px);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.progress {
|
|
29
|
-
display: block;
|
|
30
|
-
width: 100%;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.value {
|
|
34
|
-
font-family: var(--ind-font-family-mono);
|
|
35
|
-
font-weight: var(--ind-font-weight-semibold, 600);
|
|
36
|
-
font-size: var(--ind-font-size-md, 13px);
|
|
37
|
-
min-width: 52px;
|
|
38
|
-
text-align: right;
|
|
39
|
-
white-space: nowrap;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.severity {
|
|
43
|
-
font-size: var(--ind-font-size-md, 13px);
|
|
44
|
-
width: 16px;
|
|
45
|
-
text-align: center;
|
|
46
|
-
color: var(--ind-feedback-warning-bg, #f59e0b);
|
|
47
|
-
line-height: 1;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
:host([variant="error"]) .severity {
|
|
51
|
-
color: var(--ind-feedback-error-bg, #dc2626);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.actions {
|
|
55
|
-
display: flex;
|
|
56
|
-
gap: var(--ind-spacing-2, 4px);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
::slotted(*) {
|
|
60
|
-
flex-shrink: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@media (max-width: 640px) {
|
|
64
|
-
:host {
|
|
65
|
-
grid-template-columns: max-content 1fr;
|
|
66
|
-
grid-template-rows: auto auto auto;
|
|
67
|
-
}
|
|
68
|
-
.progress { grid-column: 1 / -1; }
|
|
69
|
-
.value, .severity, .actions { grid-column: 1 / -1; }
|
|
70
|
-
}
|