@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,99 +0,0 @@
1
- import { h, Host } from "@stencil/core";
2
- /**
3
- * Groups related command buttons into a single segmented bar with a shared
4
- * border. Slot `<ind-button>`s into the default slot. Purely presentational —
5
- * each button keeps its own `indActivate` event.
6
- */
7
- export class IndCommandGroup {
8
- /** Accessible label for the toolbar group. */
9
- label;
10
- /** Layout direction. */
11
- orientation = 'horizontal';
12
- /** Render attached (shared borders, no gap) instead of spaced. */
13
- attached = false;
14
- render() {
15
- return (h(Host, { key: '9b4a75ffd5999eb7ffec1e428b66f00bce939ae3', role: "group", "aria-label": this.label }, h("slot", { key: 'a433f837349fe52f09a2de8dc51e51024d947d0f' })));
16
- }
17
- static get is() { return "ind-command-group"; }
18
- static get encapsulation() { return "shadow"; }
19
- static get originalStyleUrls() {
20
- return {
21
- "$": ["command-group.css"]
22
- };
23
- }
24
- static get styleUrls() {
25
- return {
26
- "$": ["command-group.css"]
27
- };
28
- }
29
- static get properties() {
30
- return {
31
- "label": {
32
- "type": "string",
33
- "mutable": false,
34
- "complexType": {
35
- "original": "string",
36
- "resolved": "string | undefined",
37
- "references": {}
38
- },
39
- "required": false,
40
- "optional": true,
41
- "docs": {
42
- "tags": [],
43
- "text": "Accessible label for the toolbar group."
44
- },
45
- "getter": false,
46
- "setter": false,
47
- "reflect": false,
48
- "attribute": "label"
49
- },
50
- "orientation": {
51
- "type": "string",
52
- "mutable": false,
53
- "complexType": {
54
- "original": "CommandGroupOrientation",
55
- "resolved": "\"horizontal\" | \"vertical\"",
56
- "references": {
57
- "CommandGroupOrientation": {
58
- "location": "local",
59
- "path": "/home/runner/work/ind-ds/ind-ds/packages/core/src/components/molecules/command-group/command-group.tsx",
60
- "id": "src/components/molecules/command-group/command-group.tsx::CommandGroupOrientation"
61
- }
62
- }
63
- },
64
- "required": false,
65
- "optional": false,
66
- "docs": {
67
- "tags": [],
68
- "text": "Layout direction."
69
- },
70
- "getter": false,
71
- "setter": false,
72
- "reflect": true,
73
- "attribute": "orientation",
74
- "defaultValue": "'horizontal'"
75
- },
76
- "attached": {
77
- "type": "boolean",
78
- "mutable": false,
79
- "complexType": {
80
- "original": "boolean",
81
- "resolved": "boolean",
82
- "references": {}
83
- },
84
- "required": false,
85
- "optional": false,
86
- "docs": {
87
- "tags": [],
88
- "text": "Render attached (shared borders, no gap) instead of spaced."
89
- },
90
- "getter": false,
91
- "setter": false,
92
- "reflect": true,
93
- "attribute": "attached",
94
- "defaultValue": "false"
95
- }
96
- };
97
- }
98
- }
99
- //# sourceMappingURL=command-group.js.map
@@ -1,19 +0,0 @@
1
- :host {
2
- min-width: 210px;
3
- }
4
-
5
- /* The connection card uses its own state vocabulary, so map error→fault chrome. */
6
- :host([state="error"]) {
7
- border-color: var(--ind-state-fault-bg, #dc2626);
8
- box-shadow: 0 0 0 1px color-mix(in srgb, var(--ind-state-fault-bg, #dc2626) 30%, transparent);
9
- }
10
-
11
- .endpoint {
12
- font-family: var(--ind-font-family-mono);
13
- font-size: var(--ind-font-size-sm, 11px);
14
- color: var(--ind-surface-text-secondary);
15
- background: var(--ind-surface-sunken);
16
- padding: 3px 6px;
17
- border-radius: var(--ind-radius-sm, 2px);
18
- word-break: break-all;
19
- }
@@ -1,140 +0,0 @@
1
- import { h, Host } from "@stencil/core";
2
- /**
3
- * Connection summary for a field device / driver: protocol, endpoint, live
4
- * connection state and round-trip latency.
5
- */
6
- export class IndDeviceConnectionCard {
7
- /** Device / driver name. */
8
- name;
9
- /** Protocol (e.g. "Modbus TCP", "EtherNet/IP"). */
10
- protocol;
11
- /** Endpoint (host:port / URL). */
12
- endpoint;
13
- /** Connection state — drives the indicator and fault chrome. */
14
- state = 'disconnected';
15
- /** Round-trip latency in ms. */
16
- latency;
17
- render() {
18
- return (h(Host, { key: 'd4650fd63a64a9dd3bc58fae077ea5a6f1cf71fb', role: "group", "aria-label": `${this.name} connection ${this.state}` }, h("div", { key: '0e4f0b7d8beeb28c51449a56a9bebea4ab0580ca', class: "card-head" }, h("span", { key: 'dec224a80ed7880f33e0c1bb6d2c5c28feeb8435', class: "card-title", part: "name" }, this.name), this.protocol && h("span", { key: '3e446e59f250e22556a8c6476363d6ad37395626', class: "card-tag", part: "protocol" }, this.protocol)), h("ind-connection-indicator", { key: '7c41a2d6f998360827fbf299ff40197d98eb02a9', state: this.state, size: "md" }), this.endpoint && h("code", { key: '26982889839026079a9fda011d3276efd99e26cc', class: "endpoint", part: "endpoint" }, this.endpoint), this.latency !== undefined && (h("div", { key: '8eed12b7cee83a545d01efbc6fb98c24e5241b49', class: "card-detail", part: "latency" }, "Latency ", Math.round(this.latency), " ms"))));
19
- }
20
- static get is() { return "ind-device-connection-card"; }
21
- static get encapsulation() { return "shadow"; }
22
- static get originalStyleUrls() {
23
- return {
24
- "$": ["../_shared/card.css", "device-connection-card.css"]
25
- };
26
- }
27
- static get styleUrls() {
28
- return {
29
- "$": ["../_shared/card.css", "device-connection-card.css"]
30
- };
31
- }
32
- static get properties() {
33
- return {
34
- "name": {
35
- "type": "string",
36
- "mutable": false,
37
- "complexType": {
38
- "original": "string",
39
- "resolved": "string",
40
- "references": {}
41
- },
42
- "required": true,
43
- "optional": false,
44
- "docs": {
45
- "tags": [],
46
- "text": "Device / driver name."
47
- },
48
- "getter": false,
49
- "setter": false,
50
- "reflect": false,
51
- "attribute": "name"
52
- },
53
- "protocol": {
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": "Protocol (e.g. \"Modbus TCP\", \"EtherNet/IP\")."
66
- },
67
- "getter": false,
68
- "setter": false,
69
- "reflect": false,
70
- "attribute": "protocol"
71
- },
72
- "endpoint": {
73
- "type": "string",
74
- "mutable": false,
75
- "complexType": {
76
- "original": "string",
77
- "resolved": "string | undefined",
78
- "references": {}
79
- },
80
- "required": false,
81
- "optional": true,
82
- "docs": {
83
- "tags": [],
84
- "text": "Endpoint (host:port / URL)."
85
- },
86
- "getter": false,
87
- "setter": false,
88
- "reflect": false,
89
- "attribute": "endpoint"
90
- },
91
- "state": {
92
- "type": "string",
93
- "mutable": false,
94
- "complexType": {
95
- "original": "ConnectionState",
96
- "resolved": "\"connected\" | \"connecting\" | \"disconnected\" | \"error\"",
97
- "references": {
98
- "ConnectionState": {
99
- "location": "import",
100
- "path": "../../atoms/connection-indicator/connection-indicator",
101
- "id": "src/components/atoms/connection-indicator/connection-indicator.tsx::ConnectionState",
102
- "referenceLocation": "ConnectionState"
103
- }
104
- }
105
- },
106
- "required": false,
107
- "optional": false,
108
- "docs": {
109
- "tags": [],
110
- "text": "Connection state \u2014 drives the indicator and fault chrome."
111
- },
112
- "getter": false,
113
- "setter": false,
114
- "reflect": true,
115
- "attribute": "state",
116
- "defaultValue": "'disconnected'"
117
- },
118
- "latency": {
119
- "type": "number",
120
- "mutable": false,
121
- "complexType": {
122
- "original": "number",
123
- "resolved": "number | undefined",
124
- "references": {}
125
- },
126
- "required": false,
127
- "optional": true,
128
- "docs": {
129
- "tags": [],
130
- "text": "Round-trip latency in ms."
131
- },
132
- "getter": false,
133
- "setter": false,
134
- "reflect": false,
135
- "attribute": "latency"
136
- }
137
- };
138
- }
139
- }
140
- //# sourceMappingURL=device-connection-card.js.map
@@ -1,27 +0,0 @@
1
- :host {
2
- min-width: 220px;
3
- }
4
-
5
- .card-head {
6
- align-items: center;
7
- }
8
-
9
- .meta {
10
- display: grid;
11
- grid-template-columns: auto 1fr;
12
- gap: var(--ind-spacing-2, 4px) var(--ind-spacing-5, 12px);
13
- margin: 0;
14
- }
15
-
16
- .dt {
17
- font-size: var(--ind-font-size-sm, 11px);
18
- color: var(--ind-surface-text-muted, light-dark(#5a6776, #8390a0));
19
- }
20
-
21
- .dd {
22
- margin: 0;
23
- font-family: var(--ind-font-family-mono);
24
- font-size: var(--ind-font-size-sm, 11px);
25
- color: var(--ind-surface-text-primary);
26
- text-align: right;
27
- }
@@ -1,194 +0,0 @@
1
- import { h, Host } from "@stencil/core";
2
- /**
3
- * Device nameplate card: identity metadata (vendor, model, firmware, serial,
4
- * address) plus a live connection indicator. For a device detail panel.
5
- */
6
- export class IndDeviceInfoCard {
7
- /** Device name (e.g. "Line 2 PLC"). */
8
- name;
9
- /** Manufacturer. */
10
- vendor;
11
- /** Model number. */
12
- model;
13
- /** Firmware / software version. */
14
- firmware;
15
- /** Serial number. */
16
- serial;
17
- /** Network address (IP / endpoint). */
18
- address;
19
- /** Connection state. */
20
- state = 'disconnected';
21
- rows() {
22
- return [
23
- { label: 'Vendor', value: this.vendor },
24
- { label: 'Model', value: this.model },
25
- { label: 'Firmware', value: this.firmware },
26
- { label: 'Serial', value: this.serial },
27
- { label: 'Address', value: this.address },
28
- ].filter((r) => r.value !== undefined && r.value !== '');
29
- }
30
- render() {
31
- return (h(Host, { key: '6096626ff4cca480a4783b9d3cd949775c184887', role: "group", "aria-label": `${this.name} device information` }, h("div", { key: '19399fee7f1391f85a21f737221ef3acfb1ba87e', class: "card-head" }, h("span", { key: '424553a7603eb96e57892b5ac7d80ba000c29f1e', class: "card-title", part: "name" }, this.name), h("ind-connection-indicator", { key: 'ae732aa0de850d5e0b29ffd3c43e7503cc871a1d', state: this.state, size: "sm" })), h("dl", { key: '516b28c08e1cfef117dc5ce314c8372e61b873cd', class: "meta", part: "meta" }, this.rows().map((r) => [
32
- h("dt", { class: "dt", part: "dt" }, r.label),
33
- h("dd", { class: "dd", part: "dd" }, r.value),
34
- ]))));
35
- }
36
- static get is() { return "ind-device-info-card"; }
37
- static get encapsulation() { return "shadow"; }
38
- static get originalStyleUrls() {
39
- return {
40
- "$": ["../_shared/card.css", "device-info-card.css"]
41
- };
42
- }
43
- static get styleUrls() {
44
- return {
45
- "$": ["../_shared/card.css", "device-info-card.css"]
46
- };
47
- }
48
- static get properties() {
49
- return {
50
- "name": {
51
- "type": "string",
52
- "mutable": false,
53
- "complexType": {
54
- "original": "string",
55
- "resolved": "string",
56
- "references": {}
57
- },
58
- "required": true,
59
- "optional": false,
60
- "docs": {
61
- "tags": [],
62
- "text": "Device name (e.g. \"Line 2 PLC\")."
63
- },
64
- "getter": false,
65
- "setter": false,
66
- "reflect": false,
67
- "attribute": "name"
68
- },
69
- "vendor": {
70
- "type": "string",
71
- "mutable": false,
72
- "complexType": {
73
- "original": "string",
74
- "resolved": "string | undefined",
75
- "references": {}
76
- },
77
- "required": false,
78
- "optional": true,
79
- "docs": {
80
- "tags": [],
81
- "text": "Manufacturer."
82
- },
83
- "getter": false,
84
- "setter": false,
85
- "reflect": false,
86
- "attribute": "vendor"
87
- },
88
- "model": {
89
- "type": "string",
90
- "mutable": false,
91
- "complexType": {
92
- "original": "string",
93
- "resolved": "string | undefined",
94
- "references": {}
95
- },
96
- "required": false,
97
- "optional": true,
98
- "docs": {
99
- "tags": [],
100
- "text": "Model number."
101
- },
102
- "getter": false,
103
- "setter": false,
104
- "reflect": false,
105
- "attribute": "model"
106
- },
107
- "firmware": {
108
- "type": "string",
109
- "mutable": false,
110
- "complexType": {
111
- "original": "string",
112
- "resolved": "string | undefined",
113
- "references": {}
114
- },
115
- "required": false,
116
- "optional": true,
117
- "docs": {
118
- "tags": [],
119
- "text": "Firmware / software version."
120
- },
121
- "getter": false,
122
- "setter": false,
123
- "reflect": false,
124
- "attribute": "firmware"
125
- },
126
- "serial": {
127
- "type": "string",
128
- "mutable": false,
129
- "complexType": {
130
- "original": "string",
131
- "resolved": "string | undefined",
132
- "references": {}
133
- },
134
- "required": false,
135
- "optional": true,
136
- "docs": {
137
- "tags": [],
138
- "text": "Serial number."
139
- },
140
- "getter": false,
141
- "setter": false,
142
- "reflect": false,
143
- "attribute": "serial"
144
- },
145
- "address": {
146
- "type": "string",
147
- "mutable": false,
148
- "complexType": {
149
- "original": "string",
150
- "resolved": "string | undefined",
151
- "references": {}
152
- },
153
- "required": false,
154
- "optional": true,
155
- "docs": {
156
- "tags": [],
157
- "text": "Network address (IP / endpoint)."
158
- },
159
- "getter": false,
160
- "setter": false,
161
- "reflect": false,
162
- "attribute": "address"
163
- },
164
- "state": {
165
- "type": "string",
166
- "mutable": false,
167
- "complexType": {
168
- "original": "ConnectionState",
169
- "resolved": "\"connected\" | \"connecting\" | \"disconnected\" | \"error\"",
170
- "references": {
171
- "ConnectionState": {
172
- "location": "import",
173
- "path": "../../atoms/connection-indicator/connection-indicator",
174
- "id": "src/components/atoms/connection-indicator/connection-indicator.tsx::ConnectionState",
175
- "referenceLocation": "ConnectionState"
176
- }
177
- }
178
- },
179
- "required": false,
180
- "optional": false,
181
- "docs": {
182
- "tags": [],
183
- "text": "Connection state."
184
- },
185
- "getter": false,
186
- "setter": false,
187
- "reflect": true,
188
- "attribute": "state",
189
- "defaultValue": "'disconnected'"
190
- }
191
- };
192
- }
193
- }
194
- //# sourceMappingURL=device-info-card.js.map
@@ -1,12 +0,0 @@
1
- :host {
2
- min-width: 180px;
3
- }
4
-
5
- .arrow.trend-up { color: var(--ind-state-fault-bg, #dc2626); }
6
- .arrow.trend-down { color: var(--ind-state-running-bg, #16a34a); }
7
- .arrow.trend-flat { color: var(--ind-surface-text-muted); }
8
-
9
- .spark {
10
- width: 100%;
11
- height: 36px;
12
- }