@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.
Files changed (188) hide show
  1. package/dist/cjs/ind-ds.cjs.js +1 -1
  2. package/dist/cjs/ind-valve-control-panel.cjs.entry.js +7 -1
  3. package/dist/cjs/ind-valve-control-panel.cjs.entry.js.map +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/components/atoms/_equipment/equipment.css +0 -74
  6. package/dist/collection/components/atoms/alarm/alarm.css +0 -87
  7. package/dist/collection/components/atoms/alarm/alarm.js +0 -122
  8. package/dist/collection/components/atoms/alarm-count/alarm-count.css +0 -44
  9. package/dist/collection/components/atoms/alarm-count/alarm-count.js +0 -171
  10. package/dist/collection/components/atoms/badge/badge.css +0 -42
  11. package/dist/collection/components/atoms/badge/badge.js +0 -101
  12. package/dist/collection/components/atoms/breadcrumb-item/breadcrumb-item.css +0 -42
  13. package/dist/collection/components/atoms/breadcrumb-item/breadcrumb-item.js +0 -116
  14. package/dist/collection/components/atoms/button/button.css +0 -110
  15. package/dist/collection/components/atoms/button/button.js +0 -215
  16. package/dist/collection/components/atoms/canvas-layer/canvas-layer.css +0 -8
  17. package/dist/collection/components/atoms/canvas-layer/canvas-layer.js +0 -161
  18. package/dist/collection/components/atoms/checkbox/checkbox.css +0 -92
  19. package/dist/collection/components/atoms/checkbox/checkbox.js +0 -214
  20. package/dist/collection/components/atoms/compressor/compressor.css +0 -7
  21. package/dist/collection/components/atoms/compressor/compressor.js +0 -124
  22. package/dist/collection/components/atoms/connection-indicator/connection-indicator.css +0 -42
  23. package/dist/collection/components/atoms/connection-indicator/connection-indicator.js +0 -107
  24. package/dist/collection/components/atoms/conveyor/conveyor.css +0 -18
  25. package/dist/collection/components/atoms/conveyor/conveyor.js +0 -152
  26. package/dist/collection/components/atoms/cooler/cooler.css +0 -15
  27. package/dist/collection/components/atoms/cooler/cooler.js +0 -124
  28. package/dist/collection/components/atoms/counter/counter.css +0 -45
  29. package/dist/collection/components/atoms/counter/counter.js +0 -171
  30. package/dist/collection/components/atoms/datetime-picker/datetime-picker.css +0 -46
  31. package/dist/collection/components/atoms/datetime-picker/datetime-picker.js +0 -275
  32. package/dist/collection/components/atoms/dialog/dialog.css +0 -85
  33. package/dist/collection/components/atoms/dialog/dialog.js +0 -265
  34. package/dist/collection/components/atoms/divider/divider.css +0 -16
  35. package/dist/collection/components/atoms/divider/divider.js +0 -50
  36. package/dist/collection/components/atoms/estop/estop.css +0 -69
  37. package/dist/collection/components/atoms/estop/estop.js +0 -166
  38. package/dist/collection/components/atoms/fan/fan.css +0 -11
  39. package/dist/collection/components/atoms/fan/fan.js +0 -124
  40. package/dist/collection/components/atoms/gauge/gauge.css +0 -70
  41. package/dist/collection/components/atoms/gauge/gauge.js +0 -237
  42. package/dist/collection/components/atoms/heartbeat/heartbeat.css +0 -58
  43. package/dist/collection/components/atoms/heartbeat/heartbeat.js +0 -116
  44. package/dist/collection/components/atoms/heater/heater.css +0 -20
  45. package/dist/collection/components/atoms/heater/heater.js +0 -124
  46. package/dist/collection/components/atoms/icon/icon.css +0 -30
  47. package/dist/collection/components/atoms/icon/icon.js +0 -119
  48. package/dist/collection/components/atoms/input/input.css +0 -92
  49. package/dist/collection/components/atoms/knob/knob.css +0 -71
  50. package/dist/collection/components/atoms/label/label.css +0 -29
  51. package/dist/collection/components/atoms/led/led.css +0 -91
  52. package/dist/collection/components/atoms/linear-gauge/linear-gauge.css +0 -65
  53. package/dist/collection/components/atoms/motor/motor.css +0 -24
  54. package/dist/collection/components/atoms/pipe/pipe.css +0 -57
  55. package/dist/collection/components/atoms/process-symbol/process-symbol.css +0 -44
  56. package/dist/collection/components/atoms/progress/progress.css +0 -69
  57. package/dist/collection/components/atoms/progress-ring/progress-ring.css +0 -59
  58. package/dist/collection/components/atoms/pump/pump.css +0 -7
  59. package/dist/collection/components/atoms/scara-canvas/scara-canvas.css +0 -100
  60. package/dist/collection/components/atoms/select/select.css +0 -88
  61. package/dist/collection/components/atoms/selector-switch/selector-switch.css +0 -53
  62. package/dist/collection/components/atoms/setpoint/setpoint.css +0 -79
  63. package/dist/collection/components/atoms/shelf-canvas/shelf-canvas.css +0 -67
  64. package/dist/collection/components/atoms/signal-quality/signal-quality.css +0 -41
  65. package/dist/collection/components/atoms/silo/silo.css +0 -12
  66. package/dist/collection/components/atoms/slider/slider.css +0 -87
  67. package/dist/collection/components/atoms/sparkline/sparkline.css +0 -37
  68. package/dist/collection/components/atoms/status-dot/status-dot.css +0 -69
  69. package/dist/collection/components/atoms/tab/tab.css +0 -39
  70. package/dist/collection/components/atoms/tag-name/tag-name.css +0 -25
  71. package/dist/collection/components/atoms/tank/tank.css +0 -12
  72. package/dist/collection/components/atoms/textarea/textarea.css +0 -74
  73. package/dist/collection/components/atoms/timestamp/timestamp.css +0 -15
  74. package/dist/collection/components/atoms/toggle/toggle.css +0 -78
  75. package/dist/collection/components/atoms/tree-node/tree-node.css +0 -65
  76. package/dist/collection/components/atoms/unit-label/unit-label.css +0 -16
  77. package/dist/collection/components/atoms/value/value.css +0 -115
  78. package/dist/collection/components/atoms/valve/valve.css +0 -101
  79. package/dist/collection/components/atoms/xy-point/xy-point.css +0 -49
  80. package/dist/collection/components/molecules/_shared/binding.css +0 -41
  81. package/dist/collection/components/molecules/_shared/card.css +0 -51
  82. package/dist/collection/components/molecules/_shared/equipment-card.css +0 -20
  83. package/dist/collection/components/molecules/_shared/row.css +0 -34
  84. package/dist/collection/components/molecules/alarm-badge-group/alarm-badge-group.css +0 -43
  85. package/dist/collection/components/molecules/alarm-badge-group/alarm-badge-group.js +0 -168
  86. package/dist/collection/components/molecules/alarm-row/alarm-row.css +0 -42
  87. package/dist/collection/components/molecules/alarm-row/alarm-row.js +0 -166
  88. package/dist/collection/components/molecules/audit-row/audit-row.css +0 -19
  89. package/dist/collection/components/molecules/audit-row/audit-row.js +0 -111
  90. package/dist/collection/components/molecules/batch-parameter-row/batch-parameter-row.css +0 -35
  91. package/dist/collection/components/molecules/batch-parameter-row/batch-parameter-row.js +0 -304
  92. package/dist/collection/components/molecules/command-group/command-group.css +0 -26
  93. package/dist/collection/components/molecules/command-group/command-group.js +0 -99
  94. package/dist/collection/components/molecules/device-connection-card/device-connection-card.css +0 -19
  95. package/dist/collection/components/molecules/device-connection-card/device-connection-card.js +0 -140
  96. package/dist/collection/components/molecules/device-info-card/device-info-card.css +0 -27
  97. package/dist/collection/components/molecules/device-info-card/device-info-card.js +0 -194
  98. package/dist/collection/components/molecules/energy-card/energy-card.css +0 -12
  99. package/dist/collection/components/molecules/energy-card/energy-card.js +0 -206
  100. package/dist/collection/components/molecules/equipment-status-card/equipment-status-card.css +0 -29
  101. package/dist/collection/components/molecules/equipment-status-card/equipment-status-card.js +0 -150
  102. package/dist/collection/components/molecules/event-row/event-row.css +0 -3
  103. package/dist/collection/components/molecules/event-row/event-row.js +0 -118
  104. package/dist/collection/components/molecules/fill-row/fill-row.css +0 -70
  105. package/dist/collection/components/molecules/fill-row/fill-row.js +0 -181
  106. package/dist/collection/components/molecules/health-card/health-card.css +0 -53
  107. package/dist/collection/components/molecules/health-card/health-card.js +0 -124
  108. package/dist/collection/components/molecules/historical-value-row/historical-value-row.css +0 -28
  109. package/dist/collection/components/molecules/historical-value-row/historical-value-row.js +0 -153
  110. package/dist/collection/components/molecules/kpi-card/kpi-card.css +0 -31
  111. package/dist/collection/components/molecules/mode-selector/mode-selector.css +0 -4
  112. package/dist/collection/components/molecules/motor-card/motor-card.css +0 -3
  113. package/dist/collection/components/molecules/mqtt-tag-binding/mqtt-tag-binding.css +0 -3
  114. package/dist/collection/components/molecules/nav-item/nav-item.css +0 -82
  115. package/dist/collection/components/molecules/network-status-card/network-status-card.css +0 -31
  116. package/dist/collection/components/molecules/opcua-tag-binding/opcua-tag-binding.css +0 -7
  117. package/dist/collection/components/molecules/pump-card/pump-card.css +0 -3
  118. package/dist/collection/components/molecules/recipe-selector/recipe-selector.css +0 -13
  119. package/dist/collection/components/molecules/setpoint-control/setpoint-control.css +0 -3
  120. package/dist/collection/components/molecules/sidebar-group/sidebar-group.css +0 -61
  121. package/dist/collection/components/molecules/speed-control/speed-control.css +0 -7
  122. package/dist/collection/components/molecules/start-stop-control/start-stop-control.css +0 -24
  123. package/dist/collection/components/molecules/tag-card/tag-card.css +0 -7
  124. package/dist/collection/components/molecules/tank-level-card/tank-level-card.css +0 -7
  125. package/dist/collection/components/molecules/temperature-control/temperature-control.css +0 -15
  126. package/dist/collection/components/molecules/toolbar-action/toolbar-action.css +0 -36
  127. package/dist/collection/components/molecules/trend-widget/trend-widget.css +0 -15
  128. package/dist/collection/components/molecules/valve-card/valve-card.css +0 -13
  129. package/dist/collection/components/organisms/_shared/control-panel.css +0 -15
  130. package/dist/collection/components/organisms/_shared/panel.css +0 -96
  131. package/dist/collection/components/organisms/alarm-panel/alarm-panel.css +0 -7
  132. package/dist/collection/components/organisms/alarm-panel/alarm-panel.js +0 -152
  133. package/dist/collection/components/organisms/alarm-summary/alarm-summary.css +0 -30
  134. package/dist/collection/components/organisms/alarm-summary/alarm-summary.js +0 -158
  135. package/dist/collection/components/organisms/app-header/app-header.css +0 -127
  136. package/dist/collection/components/organisms/app-header/app-header.js +0 -256
  137. package/dist/collection/components/organisms/asset-overview/asset-overview.css +0 -34
  138. package/dist/collection/components/organisms/asset-overview/asset-overview.js +0 -82
  139. package/dist/collection/components/organisms/batch-control-panel/batch-control-panel.css +0 -45
  140. package/dist/collection/components/organisms/batch-control-panel/batch-control-panel.js +0 -226
  141. package/dist/collection/components/organisms/command-center/command-center.css +0 -7
  142. package/dist/collection/components/organisms/command-center/command-center.js +0 -70
  143. package/dist/collection/components/organisms/context-toolbar/context-toolbar.css +0 -48
  144. package/dist/collection/components/organisms/context-toolbar/context-toolbar.js +0 -70
  145. package/dist/collection/components/organisms/device-diagnostics-panel/device-diagnostics-panel.css +0 -43
  146. package/dist/collection/components/organisms/device-diagnostics-panel/device-diagnostics-panel.js +0 -222
  147. package/dist/collection/components/organisms/energy-dashboard/energy-dashboard.css +0 -29
  148. package/dist/collection/components/organisms/energy-dashboard/energy-dashboard.js +0 -134
  149. package/dist/collection/components/organisms/equipment-dashboard/equipment-dashboard.css +0 -3
  150. package/dist/collection/components/organisms/equipment-dashboard/equipment-dashboard.js +0 -71
  151. package/dist/collection/components/organisms/event-journal/event-journal.css +0 -17
  152. package/dist/collection/components/organisms/event-journal/event-journal.js +0 -107
  153. package/dist/collection/components/organisms/firmware-update-panel/firmware-update-panel.css +0 -47
  154. package/dist/collection/components/organisms/firmware-update-panel/firmware-update-panel.js +0 -208
  155. package/dist/collection/components/organisms/historian-viewer/historian-viewer.css +0 -17
  156. package/dist/collection/components/organisms/historian-viewer/historian-viewer.js +0 -144
  157. package/dist/collection/components/organisms/machine-overview/machine-overview.css +0 -22
  158. package/dist/collection/components/organisms/maintenance-dashboard/maintenance-dashboard.css +0 -48
  159. package/dist/collection/components/organisms/motor-control-panel/motor-control-panel.css +0 -3
  160. package/dist/collection/components/organisms/mqtt-monitor/mqtt-monitor.css +0 -96
  161. package/dist/collection/components/organisms/oee-dashboard/oee-dashboard.css +0 -30
  162. package/dist/collection/components/organisms/process-control-panel/process-control-panel.css +0 -13
  163. package/dist/collection/components/organisms/production-cell/production-cell.css +0 -7
  164. package/dist/collection/components/organisms/production-dashboard/production-dashboard.css +0 -3
  165. package/dist/collection/components/organisms/production-line-overview/production-line-overview.css +0 -57
  166. package/dist/collection/components/organisms/pump-control-panel/pump-control-panel.css +0 -3
  167. package/dist/collection/components/organisms/recipe-management-panel/recipe-management-panel.css +0 -10
  168. package/dist/collection/components/organisms/sidebar-nav/sidebar-nav.css +0 -39
  169. package/dist/collection/components/organisms/status-bar/status-bar.css +0 -34
  170. package/dist/collection/components/organisms/trend-viewer/trend-viewer.css +0 -45
  171. package/dist/collection/components/organisms/valve-control-panel/valve-control-panel.css +0 -10
  172. package/dist/collection/components/organisms/valve-control-panel/valve-control-panel.js +67 -1
  173. package/dist/collection/components/organisms/valve-control-panel/valve-control-panel.js.map +1 -1
  174. package/dist/collection/components/organisms/workstation-monitor/workstation-monitor.css +0 -30
  175. package/dist/components/ind-valve-control-panel.js +1 -1
  176. package/dist/components/ind-valve-control-panel.js.map +1 -1
  177. package/dist/docs.json +88 -1
  178. package/dist/esm/ind-ds.js +1 -1
  179. package/dist/esm/ind-valve-control-panel.entry.js +7 -1
  180. package/dist/esm/ind-valve-control-panel.entry.js.map +1 -1
  181. package/dist/esm/loader.js +1 -1
  182. package/dist/ind-ds/ind-ds.esm.js +1 -1
  183. package/dist/ind-ds/{p-eac22c88.entry.js → p-69ac33af.entry.js} +2 -2
  184. package/dist/ind-ds/p-69ac33af.entry.js.map +1 -0
  185. package/dist/types/components/organisms/valve-control-panel/valve-control-panel.d.ts +6 -0
  186. package/dist/types/components.d.ts +33 -0
  187. package/package.json +2 -2
  188. package/dist/ind-ds/p-eac22c88.entry.js.map +0 -1
@@ -1,158 +0,0 @@
1
- import { h, Host } from "@stencil/core";
2
- /**
3
- * Compact alarm KPI block: total + unacknowledged headline figures and the
4
- * ISA-18.2 priority breakdown via `<ind-alarm-badge-group>`. For a dashboard
5
- * tile or the top of an alarm page.
6
- */
7
- export class IndAlarmSummary {
8
- heading = 'Alarm summary';
9
- highHigh = 0;
10
- high = 0;
11
- low = 0;
12
- lowLow = 0;
13
- /** Number still requiring acknowledgement. */
14
- unacknowledged = 0;
15
- get total() {
16
- return this.highHigh + this.high + this.low + this.lowLow;
17
- }
18
- render() {
19
- return (h(Host, { key: 'c5992c482be7f6a3ba7a60895206a99b66b0b170' }, h("div", { key: '99469823afd889f6f1a80df3cf08130fccc00147', class: "panel-head" }, h("span", { key: 'b2e722e717ce05485f7dbf295295e183f7b2303f', class: "panel-title", part: "heading" }, this.heading)), h("div", { key: 'c247452858019863759a9de52c0ba64eadb19e0e', class: "panel-body" }, h("div", { key: '03aee42078dd1ff605a427f81b25f54801af740c', class: "figures", part: "figures" }, h("div", { key: '4d432a006fc1ff02eb5a9fef06a4699f2e4ac354', class: "figure" }, h("span", { key: 'd44e91c6aedd0ffb1753786ea14d913e63dff493', class: "figure-value", part: "total" }, this.total), h("span", { key: 'bba93e5f7341eff4432a092647b2ded64ec9d0d8', class: "figure-label" }, "Active")), h("div", { key: '0ba8ec3802ce0a710b7af437e7520bff89f3dce9', class: `figure ${this.unacknowledged > 0 ? 'figure-alert' : ''}` }, h("span", { key: '18e126c37406b250b87c598f83bccaaf8c443034', class: "figure-value", part: "unacked" }, this.unacknowledged), h("span", { key: '6bcb83b6a06add5d0905411cc308d17e200944a3', class: "figure-label" }, "Unacked"))), h("ind-alarm-badge-group", { key: 'aaad73d149fcf1e861fa95a6199806b8046cd897', part: "badges", highHigh: this.highHigh, high: this.high, low: this.low, lowLow: this.lowLow }))));
20
- }
21
- static get is() { return "ind-alarm-summary"; }
22
- static get encapsulation() { return "shadow"; }
23
- static get originalStyleUrls() {
24
- return {
25
- "$": ["../_shared/panel.css", "alarm-summary.css"]
26
- };
27
- }
28
- static get styleUrls() {
29
- return {
30
- "$": ["../_shared/panel.css", "alarm-summary.css"]
31
- };
32
- }
33
- static get properties() {
34
- return {
35
- "heading": {
36
- "type": "string",
37
- "mutable": false,
38
- "complexType": {
39
- "original": "string",
40
- "resolved": "string",
41
- "references": {}
42
- },
43
- "required": false,
44
- "optional": false,
45
- "docs": {
46
- "tags": [],
47
- "text": ""
48
- },
49
- "getter": false,
50
- "setter": false,
51
- "reflect": false,
52
- "attribute": "heading",
53
- "defaultValue": "'Alarm summary'"
54
- },
55
- "highHigh": {
56
- "type": "number",
57
- "mutable": false,
58
- "complexType": {
59
- "original": "number",
60
- "resolved": "number",
61
- "references": {}
62
- },
63
- "required": false,
64
- "optional": false,
65
- "docs": {
66
- "tags": [],
67
- "text": ""
68
- },
69
- "getter": false,
70
- "setter": false,
71
- "reflect": false,
72
- "attribute": "high-high",
73
- "defaultValue": "0"
74
- },
75
- "high": {
76
- "type": "number",
77
- "mutable": false,
78
- "complexType": {
79
- "original": "number",
80
- "resolved": "number",
81
- "references": {}
82
- },
83
- "required": false,
84
- "optional": false,
85
- "docs": {
86
- "tags": [],
87
- "text": ""
88
- },
89
- "getter": false,
90
- "setter": false,
91
- "reflect": false,
92
- "attribute": "high",
93
- "defaultValue": "0"
94
- },
95
- "low": {
96
- "type": "number",
97
- "mutable": false,
98
- "complexType": {
99
- "original": "number",
100
- "resolved": "number",
101
- "references": {}
102
- },
103
- "required": false,
104
- "optional": false,
105
- "docs": {
106
- "tags": [],
107
- "text": ""
108
- },
109
- "getter": false,
110
- "setter": false,
111
- "reflect": false,
112
- "attribute": "low",
113
- "defaultValue": "0"
114
- },
115
- "lowLow": {
116
- "type": "number",
117
- "mutable": false,
118
- "complexType": {
119
- "original": "number",
120
- "resolved": "number",
121
- "references": {}
122
- },
123
- "required": false,
124
- "optional": false,
125
- "docs": {
126
- "tags": [],
127
- "text": ""
128
- },
129
- "getter": false,
130
- "setter": false,
131
- "reflect": false,
132
- "attribute": "low-low",
133
- "defaultValue": "0"
134
- },
135
- "unacknowledged": {
136
- "type": "number",
137
- "mutable": false,
138
- "complexType": {
139
- "original": "number",
140
- "resolved": "number",
141
- "references": {}
142
- },
143
- "required": false,
144
- "optional": false,
145
- "docs": {
146
- "tags": [],
147
- "text": "Number still requiring acknowledgement."
148
- },
149
- "getter": false,
150
- "setter": false,
151
- "reflect": false,
152
- "attribute": "unacknowledged",
153
- "defaultValue": "0"
154
- }
155
- };
156
- }
157
- }
158
- //# sourceMappingURL=alarm-summary.js.map
@@ -1,127 +0,0 @@
1
- :host {
2
- display: flex;
3
- align-items: center;
4
- gap: var(--ind-spacing-6, 16px);
5
- padding: var(--ind-spacing-3, 6px) var(--ind-spacing-6, 16px);
6
- background: var(--ind-surface-panel);
7
- border-bottom: 1px solid var(--ind-surface-border-default);
8
- color: var(--ind-surface-text-primary, light-dark(#11161c, #eef1f5));
9
- font-family: var(--ind-font-family-sans);
10
- min-height: 56px;
11
- font-feature-settings: var(--ind-font-feature-tabular, "tnum" 1);
12
- }
13
-
14
- .brand {
15
- display: flex;
16
- align-items: center;
17
- gap: var(--ind-spacing-3, 6px);
18
- }
19
-
20
- .brand-logo {
21
- font-size: 26px;
22
- line-height: 1;
23
- color: var(--ind-button-primary-bg);
24
- }
25
-
26
- .brand-text {
27
- display: flex;
28
- flex-direction: column;
29
- line-height: 1.1;
30
- }
31
-
32
- .brand-name {
33
- font-size: var(--ind-font-size-lg, 14px);
34
- font-weight: var(--ind-font-weight-bold, 700);
35
- letter-spacing: 0.05em;
36
- text-transform: uppercase;
37
- }
38
-
39
- .brand-sub {
40
- font-size: var(--ind-font-size-xs, 10px);
41
- color: var(--ind-surface-text-muted, light-dark(#5a6776, #8390a0));
42
- text-transform: uppercase;
43
- letter-spacing: 0.08em;
44
- }
45
-
46
- .machine {
47
- display: flex;
48
- flex-direction: column;
49
- line-height: 1.1;
50
- padding-left: var(--ind-spacing-5, 12px);
51
- border-left: 1px solid var(--ind-surface-border-subtle);
52
- }
53
-
54
- .machine-label {
55
- font-size: var(--ind-font-size-xs, 10px);
56
- color: var(--ind-surface-text-muted, light-dark(#5a6776, #8390a0));
57
- text-transform: uppercase;
58
- letter-spacing: 0.08em;
59
- }
60
-
61
- .machine-id {
62
- font-family: var(--ind-font-family-mono);
63
- font-size: var(--ind-font-size-md, 13px);
64
- font-weight: var(--ind-font-weight-semibold, 600);
65
- }
66
-
67
- .mqtt {
68
- display: flex;
69
- align-items: center;
70
- gap: var(--ind-spacing-3, 6px);
71
- }
72
-
73
- .mqtt-label {
74
- font-size: var(--ind-font-size-sm, 11px);
75
- color: var(--ind-surface-text-secondary, light-dark(#2a3340, #aab5c2));
76
- }
77
-
78
- .spacer { flex: 1; }
79
-
80
- .meta {
81
- display: flex;
82
- align-items: center;
83
- gap: var(--ind-spacing-4, 8px);
84
- font-size: var(--ind-font-size-sm, 11px);
85
- }
86
-
87
- .version {
88
- font-family: var(--ind-font-family-mono);
89
- color: var(--ind-surface-text-muted, light-dark(#5a6776, #8390a0));
90
- }
91
-
92
- .docs {
93
- color: var(--ind-feedback-info-bg);
94
- text-decoration: underline;
95
- text-underline-offset: 2px;
96
- }
97
- .docs:hover { text-decoration-thickness: 2px; }
98
-
99
- .actions {
100
- display: flex;
101
- gap: var(--ind-spacing-3, 6px);
102
- }
103
-
104
- .action {
105
- height: var(--ind-size-button-sm, 26px);
106
- padding: 0 var(--ind-spacing-4, 8px);
107
- background: var(--ind-button-default-bg);
108
- color: var(--ind-button-default-fg);
109
- border: 1px solid var(--ind-button-default-border);
110
- border-radius: var(--ind-radius-md, 3px);
111
- font-family: inherit;
112
- font-size: var(--ind-font-size-sm, 11px);
113
- font-weight: var(--ind-font-weight-semibold, 600);
114
- cursor: pointer;
115
- transition: background var(--ind-motion-duration-fast, 120ms);
116
- }
117
- .action:hover { background: var(--ind-button-default-bg-hover); }
118
-
119
- .action--danger {
120
- background: transparent;
121
- color: var(--ind-feedback-error-bg);
122
- border-color: var(--ind-feedback-error-border);
123
- }
124
- .action--danger:hover {
125
- background: var(--ind-feedback-error-bg);
126
- color: var(--ind-feedback-error-fg);
127
- }
@@ -1,256 +0,0 @@
1
- import { h, Host } from "@stencil/core";
2
- export class IndAppHeader {
3
- /** Brand name (uppercase by convention). */
4
- brand;
5
- /** Sub-brand line (e.g. "Maintenance Console"). */
6
- subBrand;
7
- /** Machine identifier shown next to the brand. */
8
- machineId;
9
- /** Broker / realtime connection state — drives the dot. */
10
- mqttState = 'neutral';
11
- /** Label rendered next to the dot (e.g. "Connected"). */
12
- mqttLabel;
13
- /** App version (e.g. "v1.4.2"). */
14
- version;
15
- /** Documentation URL. */
16
- docsUrl;
17
- /** Hide the built-in "Change machine" button. */
18
- hideChangeMachine = false;
19
- /** Hide the built-in "Disconnect" button. */
20
- hideDisconnect = false;
21
- indChangeMachine;
22
- indDisconnect;
23
- render() {
24
- return (h(Host, { key: '33a1b8dac7bd4feab37a77bf79032897b0bbe4a1', role: "banner" }, h("div", { key: 'e21411d4c6f29102909f56322e6a58b59c2ad248', class: "brand", part: "brand" }, h("slot", { key: '44c3459a36950ad2a3694a2d29d27975c1de8e7f', name: "logo" }, h("span", { key: 'bb0939402521c478da8f0ecd551b7db3ccf765ec', class: "brand-logo", "aria-hidden": "true" }, "\u2B22")), h("div", { key: '85b3c26d915ea4e0e572edfc0893e9c79bb2c4ee', class: "brand-text" }, h("span", { key: '016479b1ce9a6337112f88bd0058641874f41d39', class: "brand-name" }, this.brand), this.subBrand && h("span", { key: 'ece4c7a28e13aaa10a78f9ce4b44487eeaf7cd42', class: "brand-sub" }, this.subBrand))), this.machineId && (h("div", { key: 'f9d16ec7b7b753ea6c5e61b960cf541234bf6004', class: "machine", part: "machine" }, h("span", { key: '43585929ef3a8b0354f5dbac37337d0eff783a47', class: "machine-label" }, "Machine"), h("span", { key: 'cc0643c35bf18d6b5f94cb54e0ef1581c5c1c40e', class: "machine-id" }, this.machineId))), h("div", { key: '05c18fe1c2156e319e6b0dfc84a6f81195a39f43', class: "mqtt", part: "mqtt" }, h("ind-status-dot", { key: 'a996efe70d20d6b4e959bd561ea0b630041ea1d5', state: this.mqttState, size: "md" }), this.mqttLabel && h("span", { key: '581bbb1e39b55a6dd62ba5934889c9081f315933', class: "mqtt-label" }, this.mqttLabel)), h("span", { key: '0d1b3d6cae7d50d0a53d7faa7c355b9ae448a4c6', class: "spacer" }), h("div", { key: 'd07097da54bb7c4131794b7968fe2dc636a33155', class: "meta", part: "meta" }, this.version && h("span", { key: '54b37c493d4560788c3b21f6b9578f8e4fb07060', class: "version" }, this.version), this.docsUrl && (h("a", { key: 'b910f3b11e15f53c88476220cef17570c252c98a', class: "docs", href: this.docsUrl, target: "_blank", rel: "noopener noreferrer" }, "Documentation"))), h("div", { key: 'b014dfd65ae0b40838b2f8ca028121f6a5def777', class: "actions", part: "actions" }, h("slot", { key: '692d5aaeff691d0b4e276d725514b9ae77b421a6', name: "actions" }, !this.hideChangeMachine && (h("button", { key: 'f814337835093319db4fd627f91b24eac116e1cc', type: "button", class: "action", onClick: () => this.indChangeMachine.emit() }, "Change machine")), !this.hideDisconnect && (h("button", { key: 'f6a03e8bd9f1972f65e805e92a8259ff6a61217c', type: "button", class: "action action--danger", onClick: () => this.indDisconnect.emit() }, "Disconnect"))))));
25
- }
26
- static get is() { return "ind-app-header"; }
27
- static get encapsulation() { return "shadow"; }
28
- static get originalStyleUrls() {
29
- return {
30
- "$": ["app-header.css"]
31
- };
32
- }
33
- static get styleUrls() {
34
- return {
35
- "$": ["app-header.css"]
36
- };
37
- }
38
- static get properties() {
39
- return {
40
- "brand": {
41
- "type": "string",
42
- "mutable": false,
43
- "complexType": {
44
- "original": "string",
45
- "resolved": "string",
46
- "references": {}
47
- },
48
- "required": true,
49
- "optional": false,
50
- "docs": {
51
- "tags": [],
52
- "text": "Brand name (uppercase by convention)."
53
- },
54
- "getter": false,
55
- "setter": false,
56
- "reflect": false,
57
- "attribute": "brand"
58
- },
59
- "subBrand": {
60
- "type": "string",
61
- "mutable": false,
62
- "complexType": {
63
- "original": "string",
64
- "resolved": "string | undefined",
65
- "references": {}
66
- },
67
- "required": false,
68
- "optional": true,
69
- "docs": {
70
- "tags": [],
71
- "text": "Sub-brand line (e.g. \"Maintenance Console\")."
72
- },
73
- "getter": false,
74
- "setter": false,
75
- "reflect": false,
76
- "attribute": "sub-brand"
77
- },
78
- "machineId": {
79
- "type": "string",
80
- "mutable": false,
81
- "complexType": {
82
- "original": "string",
83
- "resolved": "string | undefined",
84
- "references": {}
85
- },
86
- "required": false,
87
- "optional": true,
88
- "docs": {
89
- "tags": [],
90
- "text": "Machine identifier shown next to the brand."
91
- },
92
- "getter": false,
93
- "setter": false,
94
- "reflect": false,
95
- "attribute": "machine-id"
96
- },
97
- "mqttState": {
98
- "type": "string",
99
- "mutable": false,
100
- "complexType": {
101
- "original": "AppHeaderConnectionState",
102
- "resolved": "\"fault\" | \"maintenance\" | \"neutral\" | \"running\" | \"stopped\" | \"warning\"",
103
- "references": {
104
- "AppHeaderConnectionState": {
105
- "location": "local",
106
- "path": "/home/runner/work/ind-ds/ind-ds/packages/core/src/components/organisms/app-header/app-header.tsx",
107
- "id": "src/components/organisms/app-header/app-header.tsx::AppHeaderConnectionState"
108
- }
109
- }
110
- },
111
- "required": false,
112
- "optional": false,
113
- "docs": {
114
- "tags": [],
115
- "text": "Broker / realtime connection state \u2014 drives the dot."
116
- },
117
- "getter": false,
118
- "setter": false,
119
- "reflect": false,
120
- "attribute": "mqtt-state",
121
- "defaultValue": "'neutral'"
122
- },
123
- "mqttLabel": {
124
- "type": "string",
125
- "mutable": false,
126
- "complexType": {
127
- "original": "string",
128
- "resolved": "string | undefined",
129
- "references": {}
130
- },
131
- "required": false,
132
- "optional": true,
133
- "docs": {
134
- "tags": [],
135
- "text": "Label rendered next to the dot (e.g. \"Connected\")."
136
- },
137
- "getter": false,
138
- "setter": false,
139
- "reflect": false,
140
- "attribute": "mqtt-label"
141
- },
142
- "version": {
143
- "type": "string",
144
- "mutable": false,
145
- "complexType": {
146
- "original": "string",
147
- "resolved": "string | undefined",
148
- "references": {}
149
- },
150
- "required": false,
151
- "optional": true,
152
- "docs": {
153
- "tags": [],
154
- "text": "App version (e.g. \"v1.4.2\")."
155
- },
156
- "getter": false,
157
- "setter": false,
158
- "reflect": false,
159
- "attribute": "version"
160
- },
161
- "docsUrl": {
162
- "type": "string",
163
- "mutable": false,
164
- "complexType": {
165
- "original": "string",
166
- "resolved": "string | undefined",
167
- "references": {}
168
- },
169
- "required": false,
170
- "optional": true,
171
- "docs": {
172
- "tags": [],
173
- "text": "Documentation URL."
174
- },
175
- "getter": false,
176
- "setter": false,
177
- "reflect": false,
178
- "attribute": "docs-url"
179
- },
180
- "hideChangeMachine": {
181
- "type": "boolean",
182
- "mutable": false,
183
- "complexType": {
184
- "original": "boolean",
185
- "resolved": "boolean",
186
- "references": {}
187
- },
188
- "required": false,
189
- "optional": false,
190
- "docs": {
191
- "tags": [],
192
- "text": "Hide the built-in \"Change machine\" button."
193
- },
194
- "getter": false,
195
- "setter": false,
196
- "reflect": false,
197
- "attribute": "hide-change-machine",
198
- "defaultValue": "false"
199
- },
200
- "hideDisconnect": {
201
- "type": "boolean",
202
- "mutable": false,
203
- "complexType": {
204
- "original": "boolean",
205
- "resolved": "boolean",
206
- "references": {}
207
- },
208
- "required": false,
209
- "optional": false,
210
- "docs": {
211
- "tags": [],
212
- "text": "Hide the built-in \"Disconnect\" button."
213
- },
214
- "getter": false,
215
- "setter": false,
216
- "reflect": false,
217
- "attribute": "hide-disconnect",
218
- "defaultValue": "false"
219
- }
220
- };
221
- }
222
- static get events() {
223
- return [{
224
- "method": "indChangeMachine",
225
- "name": "indChangeMachine",
226
- "bubbles": true,
227
- "cancelable": true,
228
- "composed": true,
229
- "docs": {
230
- "tags": [],
231
- "text": ""
232
- },
233
- "complexType": {
234
- "original": "void",
235
- "resolved": "void",
236
- "references": {}
237
- }
238
- }, {
239
- "method": "indDisconnect",
240
- "name": "indDisconnect",
241
- "bubbles": true,
242
- "cancelable": true,
243
- "composed": true,
244
- "docs": {
245
- "tags": [],
246
- "text": ""
247
- },
248
- "complexType": {
249
- "original": "void",
250
- "resolved": "void",
251
- "references": {}
252
- }
253
- }];
254
- }
255
- }
256
- //# sourceMappingURL=app-header.js.map
@@ -1,34 +0,0 @@
1
- :host {
2
- min-width: 480px;
3
- }
4
-
5
- .panel-list {
6
- max-height: 440px;
7
- }
8
-
9
- .row {
10
- display: grid;
11
- grid-template-columns: 12px 88px 1fr 120px auto;
12
- align-items: center;
13
- gap: var(--ind-spacing-4, 8px);
14
- padding: var(--ind-spacing-3, 6px) var(--ind-spacing-5, 12px);
15
- border-bottom: 1px solid var(--ind-surface-border-subtle);
16
- font-size: var(--ind-font-size-base, 12px);
17
- }
18
-
19
- .tag {
20
- font-family: var(--ind-font-family-mono);
21
- color: var(--ind-surface-text-secondary);
22
- }
23
-
24
- .name {
25
- overflow: hidden;
26
- text-overflow: ellipsis;
27
- white-space: nowrap;
28
- }
29
-
30
- .detail {
31
- font-size: var(--ind-font-size-sm, 11px);
32
- color: var(--ind-surface-text-muted);
33
- white-space: nowrap;
34
- }
@@ -1,82 +0,0 @@
1
- import { h, Host } from "@stencil/core";
2
- /**
3
- * Tabular overview of plant assets with state dot, health bar and detail.
4
- * Suits an asset register or a fleet health page.
5
- */
6
- export class IndAssetOverview {
7
- heading = 'Assets';
8
- assets = [];
9
- healthVariant(h) {
10
- if (h === undefined)
11
- return 'default';
12
- if (h < 40)
13
- return 'error';
14
- if (h < 70)
15
- return 'warning';
16
- return 'success';
17
- }
18
- render() {
19
- return (h(Host, { key: '2940434a68bef715cfc3629eb509ff9509d3fbf5' }, h("div", { key: '0eb751f4a281626ed4f7a8eab06f8069f39508a1', class: "panel-head" }, h("span", { key: '275ae9a642cc9f8dee88fa7fdcf8919b59e0641d', class: "panel-title", part: "heading" }, this.heading), h("span", { key: 'b359e1e0f2213d4c80f53d856cdb49ccc4bbba9e', class: "panel-subtitle" }, this.assets.length, " assets")), h("div", { key: 'caa13830b3c719859aa59631303a9a0e31685d8b', class: "panel-list", part: "list" }, this.assets.length === 0 ? (h("div", { class: "panel-empty" }, "No assets")) : (this.assets.map((a) => (h("div", { class: "row", part: "row", key: a.tag }, h("ind-status-dot", { state: (a.state === 'unknown' ? 'neutral' : a.state), size: "sm" }), h("span", { class: "tag", part: "tag" }, a.tag), h("span", { class: "name", part: "name" }, a.name), a.health !== undefined && (h("ind-progress", { class: "health", value: a.health, max: 100, variant: this.healthVariant(a.health), size: "sm" })), a.detail && h("span", { class: "detail", part: "detail" }, a.detail))))))));
20
- }
21
- static get is() { return "ind-asset-overview"; }
22
- static get encapsulation() { return "shadow"; }
23
- static get originalStyleUrls() {
24
- return {
25
- "$": ["../_shared/panel.css", "asset-overview.css"]
26
- };
27
- }
28
- static get styleUrls() {
29
- return {
30
- "$": ["../_shared/panel.css", "asset-overview.css"]
31
- };
32
- }
33
- static get properties() {
34
- return {
35
- "heading": {
36
- "type": "string",
37
- "mutable": false,
38
- "complexType": {
39
- "original": "string",
40
- "resolved": "string",
41
- "references": {}
42
- },
43
- "required": false,
44
- "optional": false,
45
- "docs": {
46
- "tags": [],
47
- "text": ""
48
- },
49
- "getter": false,
50
- "setter": false,
51
- "reflect": false,
52
- "attribute": "heading",
53
- "defaultValue": "'Assets'"
54
- },
55
- "assets": {
56
- "type": "unknown",
57
- "mutable": false,
58
- "complexType": {
59
- "original": "AssetItem[]",
60
- "resolved": "AssetItem[]",
61
- "references": {
62
- "AssetItem": {
63
- "location": "local",
64
- "path": "/home/runner/work/ind-ds/ind-ds/packages/core/src/components/organisms/asset-overview/asset-overview.tsx",
65
- "id": "src/components/organisms/asset-overview/asset-overview.tsx::AssetItem"
66
- }
67
- }
68
- },
69
- "required": false,
70
- "optional": false,
71
- "docs": {
72
- "tags": [],
73
- "text": ""
74
- },
75
- "getter": false,
76
- "setter": false,
77
- "defaultValue": "[]"
78
- }
79
- };
80
- }
81
- }
82
- //# sourceMappingURL=asset-overview.js.map