@oicl/openbridge-webcomponents 2.0.0-next.110 → 2.0.0-next.111

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 (36) hide show
  1. package/bundle/openbridge-webcomponents.bundle.js +2297 -1506
  2. package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
  3. package/custom-elements.json +562 -0
  4. package/dist/automation/indicator-battery/indicator-battery.css.js +52 -0
  5. package/dist/automation/indicator-battery/indicator-battery.css.js.map +1 -0
  6. package/dist/automation/indicator-battery/indicator-battery.d.ts +65 -0
  7. package/dist/automation/indicator-battery/indicator-battery.d.ts.map +1 -0
  8. package/dist/automation/indicator-battery/indicator-battery.js +119 -0
  9. package/dist/automation/indicator-battery/indicator-battery.js.map +1 -0
  10. package/dist/automation/indicator-engine/indicator-engine.css.js +45 -0
  11. package/dist/automation/indicator-engine/indicator-engine.css.js.map +1 -0
  12. package/dist/automation/indicator-engine/indicator-engine.d.ts +34 -0
  13. package/dist/automation/indicator-engine/indicator-engine.d.ts.map +1 -0
  14. package/dist/automation/indicator-engine/indicator-engine.js +73 -0
  15. package/dist/automation/indicator-engine/indicator-engine.js.map +1 -0
  16. package/dist/automation/indicator-generator/indicator-generator-geometry.d.ts +30 -0
  17. package/dist/automation/indicator-generator/indicator-generator-geometry.d.ts.map +1 -0
  18. package/dist/automation/indicator-generator/indicator-generator-geometry.js +61 -0
  19. package/dist/automation/indicator-generator/indicator-generator-geometry.js.map +1 -0
  20. package/dist/automation/indicator-generator/indicator-generator.css.js +121 -0
  21. package/dist/automation/indicator-generator/indicator-generator.css.js.map +1 -0
  22. package/dist/automation/indicator-generator/indicator-generator.d.ts +57 -0
  23. package/dist/automation/indicator-generator/indicator-generator.d.ts.map +1 -0
  24. package/dist/automation/indicator-generator/indicator-generator.js +136 -0
  25. package/dist/automation/indicator-generator/indicator-generator.js.map +1 -0
  26. package/dist/automation/indicator-shared/linear-indicator.d.ts +46 -0
  27. package/dist/automation/indicator-shared/linear-indicator.d.ts.map +1 -0
  28. package/dist/automation/indicator-shared/linear-indicator.js +175 -0
  29. package/dist/automation/indicator-shared/linear-indicator.js.map +1 -0
  30. package/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.css.js +48 -0
  31. package/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.css.js.map +1 -0
  32. package/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.d.ts +65 -0
  33. package/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.d.ts.map +1 -0
  34. package/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.js +105 -0
  35. package/dist/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.js.map +1 -0
  36. package/package.json +1 -1
@@ -24041,6 +24041,568 @@
24041
24041
  }
24042
24042
  ]
24043
24043
  },
24044
+ {
24045
+ "kind": "javascript-module",
24046
+ "path": "src/automation/indicator-battery/indicator-battery.ts",
24047
+ "declarations": [
24048
+ {
24049
+ "kind": "class",
24050
+ "description": "Compact 48×48 battery charge indicator.\n\n## Features / Variants\n- `variant`: `bar` (bottom-up percentage fill) or `trend` (history graph\n with a current-value micro-bar)\n- `direction`: `vertical` or `horizontal` battery shell\n- `value`: color scheme — `regular`, `enhanced` or `categorical`\n- `level`: current charge 0–100 (%), drives the fill and micro-bar\n- `data`: history samples 0–100 (%) drawn as the trend graph\n- `hasIcon`: centered icon overlay (bar variant only)\n\n## Usage Guidelines\nUse as an at-a-glance charge indicator in dashboards and lists. For a\nfull-featured tank/battery cell with readouts, badges and setpoints, use\n`obc-automation-tank` (type `battery`) instead.\n\n## Best Practices / Constraints\n- `level` and `data` values are clamped to 0–100; values outside that\n range are pinned to the nearest bound.\n- The `trend` variant needs at least two `data` samples to draw a line;\n with fewer it shows only the current-value micro-bar.\n- The `icon` slot renders only in the `bar` variant; it is ignored in\n `trend`.\n- Display-only: the root SVG is `aria-hidden`; convey battery state to\n assistive tech through adjacent text if it is not otherwise available.\n\n## Slots\n| Slot | Condition | Purpose |\n| ------ | ----------------------------- | ------------------------------ |\n| `icon` | `hasIcon` and `variant='bar'` | Icon overlay (`obi-*` element) |",
24051
+ "name": "ObcIndicatorBattery",
24052
+ "slots": [
24053
+ {
24054
+ "description": "Centered icon overlay, defaults to `obi-energy-battery`",
24055
+ "name": "icon"
24056
+ }
24057
+ ],
24058
+ "members": [
24059
+ {
24060
+ "kind": "field",
24061
+ "name": "direction",
24062
+ "type": {
24063
+ "text": "IndicatorDirection"
24064
+ },
24065
+ "attribute": "direction",
24066
+ "reflects": true
24067
+ },
24068
+ {
24069
+ "kind": "field",
24070
+ "name": "variant",
24071
+ "type": {
24072
+ "text": "IndicatorBatteryVariant"
24073
+ },
24074
+ "attribute": "variant",
24075
+ "reflects": true
24076
+ },
24077
+ {
24078
+ "kind": "field",
24079
+ "name": "value",
24080
+ "type": {
24081
+ "text": "IndicatorBatteryValue"
24082
+ },
24083
+ "attribute": "value",
24084
+ "reflects": true
24085
+ },
24086
+ {
24087
+ "kind": "field",
24088
+ "name": "level",
24089
+ "type": {
24090
+ "text": "number"
24091
+ },
24092
+ "default": "0",
24093
+ "description": "Current charge, 0-100 (%)",
24094
+ "attribute": "level"
24095
+ },
24096
+ {
24097
+ "kind": "field",
24098
+ "name": "data",
24099
+ "type": {
24100
+ "text": "number[]"
24101
+ },
24102
+ "default": "[]",
24103
+ "description": "History samples, 0-100 (%) each, oldest first",
24104
+ "attribute": "data"
24105
+ },
24106
+ {
24107
+ "kind": "field",
24108
+ "name": "hasIcon",
24109
+ "type": {
24110
+ "text": "boolean"
24111
+ },
24112
+ "default": "false",
24113
+ "attribute": "hasIcon"
24114
+ },
24115
+ {
24116
+ "kind": "field",
24117
+ "name": "scheme",
24118
+ "type": {
24119
+ "text": "LinearIndicatorScheme"
24120
+ },
24121
+ "privacy": "private",
24122
+ "readonly": true
24123
+ }
24124
+ ],
24125
+ "attributes": [
24126
+ {
24127
+ "name": "direction",
24128
+ "type": {
24129
+ "text": "IndicatorDirection"
24130
+ },
24131
+ "fieldName": "direction"
24132
+ },
24133
+ {
24134
+ "name": "variant",
24135
+ "type": {
24136
+ "text": "IndicatorBatteryVariant"
24137
+ },
24138
+ "fieldName": "variant"
24139
+ },
24140
+ {
24141
+ "name": "value",
24142
+ "type": {
24143
+ "text": "IndicatorBatteryValue"
24144
+ },
24145
+ "fieldName": "value"
24146
+ },
24147
+ {
24148
+ "name": "level",
24149
+ "type": {
24150
+ "text": "number"
24151
+ },
24152
+ "default": "0",
24153
+ "description": "Current charge, 0-100 (%)",
24154
+ "fieldName": "level"
24155
+ },
24156
+ {
24157
+ "name": "data",
24158
+ "type": {
24159
+ "text": "number[]"
24160
+ },
24161
+ "default": "[]",
24162
+ "description": "History samples, 0-100 (%) each, oldest first",
24163
+ "fieldName": "data"
24164
+ },
24165
+ {
24166
+ "name": "hasIcon",
24167
+ "type": {
24168
+ "text": "boolean"
24169
+ },
24170
+ "default": "false",
24171
+ "fieldName": "hasIcon"
24172
+ }
24173
+ ],
24174
+ "superclass": {
24175
+ "name": "LitElement",
24176
+ "package": "lit"
24177
+ },
24178
+ "tagName": "obc-indicator-battery",
24179
+ "customElement": true
24180
+ }
24181
+ ],
24182
+ "exports": [
24183
+ {
24184
+ "kind": "js",
24185
+ "name": "ObcIndicatorBattery",
24186
+ "declaration": {
24187
+ "name": "ObcIndicatorBattery",
24188
+ "module": "src/automation/indicator-battery/indicator-battery.ts"
24189
+ }
24190
+ },
24191
+ {
24192
+ "kind": "custom-element-definition",
24193
+ "name": "obc-indicator-battery",
24194
+ "declaration": {
24195
+ "name": "ObcIndicatorBattery",
24196
+ "module": "src/automation/indicator-battery/indicator-battery.ts"
24197
+ }
24198
+ }
24199
+ ]
24200
+ },
24201
+ {
24202
+ "kind": "javascript-module",
24203
+ "path": "src/automation/indicator-engine/indicator-engine.ts",
24204
+ "declarations": [
24205
+ {
24206
+ "kind": "class",
24207
+ "description": "Compact 48×48 engine indicator glyph.\n\n## Features / Variants\n- `direction`: `vertical` (upright block with side rails) or `horizontal`\n (lying block on a base rail)\n- `value`: cylinder color — `static`, `regular` or `enhanced`\n\n## Usage Guidelines\nUse as a static engine presence/state glyph in dashboards and lists.\nIt carries no numeric value; pair it with readouts or other indicators\nwhen quantities must be shown.",
24208
+ "name": "ObcIndicatorEngine",
24209
+ "members": [
24210
+ {
24211
+ "kind": "field",
24212
+ "name": "value",
24213
+ "type": {
24214
+ "text": "IndicatorEngineValue"
24215
+ },
24216
+ "attribute": "value",
24217
+ "reflects": true
24218
+ },
24219
+ {
24220
+ "kind": "field",
24221
+ "name": "direction",
24222
+ "type": {
24223
+ "text": "IndicatorDirection"
24224
+ },
24225
+ "attribute": "direction",
24226
+ "reflects": true
24227
+ },
24228
+ {
24229
+ "kind": "method",
24230
+ "name": "renderHorizontal",
24231
+ "privacy": "private"
24232
+ },
24233
+ {
24234
+ "kind": "method",
24235
+ "name": "renderVertical",
24236
+ "privacy": "private"
24237
+ }
24238
+ ],
24239
+ "attributes": [
24240
+ {
24241
+ "name": "value",
24242
+ "type": {
24243
+ "text": "IndicatorEngineValue"
24244
+ },
24245
+ "fieldName": "value"
24246
+ },
24247
+ {
24248
+ "name": "direction",
24249
+ "type": {
24250
+ "text": "IndicatorDirection"
24251
+ },
24252
+ "fieldName": "direction"
24253
+ }
24254
+ ],
24255
+ "superclass": {
24256
+ "name": "LitElement",
24257
+ "package": "lit"
24258
+ },
24259
+ "tagName": "obc-indicator-engine",
24260
+ "customElement": true
24261
+ }
24262
+ ],
24263
+ "exports": [
24264
+ {
24265
+ "kind": "js",
24266
+ "name": "ObcIndicatorEngine",
24267
+ "declaration": {
24268
+ "name": "ObcIndicatorEngine",
24269
+ "module": "src/automation/indicator-engine/indicator-engine.ts"
24270
+ }
24271
+ },
24272
+ {
24273
+ "kind": "custom-element-definition",
24274
+ "name": "obc-indicator-engine",
24275
+ "declaration": {
24276
+ "name": "ObcIndicatorEngine",
24277
+ "module": "src/automation/indicator-engine/indicator-engine.ts"
24278
+ }
24279
+ }
24280
+ ]
24281
+ },
24282
+ {
24283
+ "kind": "javascript-module",
24284
+ "path": "src/automation/indicator-generator/indicator-generator.ts",
24285
+ "declarations": [
24286
+ {
24287
+ "kind": "class",
24288
+ "description": "Compact generator status indicator (48×48; 56×56 as double-bar).\n\n## Features / Variants\n- `variant`: `button` (plain disc), `bar` (disc with a circular progress\n ring) or `double-bar` (disc with two concentric progress rings)\n- `value`: visual scheme — `off`, `regular`, `filled`, `enhanced` or\n `categorical`; `off` hides the progress rings\n- `level`: 0–100 (%), sweep of the (outer) progress ring, clockwise from\n 12 o'clock\n- `secondaryLevel`: 0–100 (%), sweep of the inner ring (double-bar only)\n\n## Usage Guidelines\nUse as an at-a-glance generator load indicator in dashboards and lists.\nFor schematic (P&ID) placement with button behavior, use the electric\ngenerator automation devices instead.\n\n## Slots\n| Slot | Condition | Purpose |\n| ------ | --------- | ------------------------------------------------ |\n| `icon` | always | Center icon, defaults to the generator G~ glyph |",
24289
+ "name": "ObcIndicatorGenerator",
24290
+ "slots": [
24291
+ {
24292
+ "description": "Center icon, defaults to the generator G~ glyph",
24293
+ "name": "icon"
24294
+ }
24295
+ ],
24296
+ "members": [
24297
+ {
24298
+ "kind": "field",
24299
+ "name": "variant",
24300
+ "type": {
24301
+ "text": "IndicatorGeneratorVariant"
24302
+ },
24303
+ "attribute": "variant",
24304
+ "reflects": true
24305
+ },
24306
+ {
24307
+ "kind": "field",
24308
+ "name": "value",
24309
+ "type": {
24310
+ "text": "IndicatorGeneratorValue"
24311
+ },
24312
+ "attribute": "value",
24313
+ "reflects": true
24314
+ },
24315
+ {
24316
+ "kind": "field",
24317
+ "name": "level",
24318
+ "type": {
24319
+ "text": "number"
24320
+ },
24321
+ "default": "0",
24322
+ "description": "Outer progress ring sweep, 0-100 (%)",
24323
+ "attribute": "level"
24324
+ },
24325
+ {
24326
+ "kind": "field",
24327
+ "name": "secondaryLevel",
24328
+ "type": {
24329
+ "text": "number"
24330
+ },
24331
+ "default": "0",
24332
+ "description": "Inner progress ring sweep, 0-100 (%), double-bar only",
24333
+ "attribute": "secondaryLevel"
24334
+ },
24335
+ {
24336
+ "kind": "field",
24337
+ "name": "center",
24338
+ "type": {
24339
+ "text": "number"
24340
+ },
24341
+ "privacy": "private",
24342
+ "readonly": true
24343
+ },
24344
+ {
24345
+ "kind": "field",
24346
+ "name": "discRadius",
24347
+ "type": {
24348
+ "text": "number"
24349
+ },
24350
+ "privacy": "private",
24351
+ "readonly": true
24352
+ },
24353
+ {
24354
+ "kind": "field",
24355
+ "name": "showOutline",
24356
+ "type": {
24357
+ "text": "boolean"
24358
+ },
24359
+ "privacy": "private",
24360
+ "readonly": true
24361
+ },
24362
+ {
24363
+ "kind": "method",
24364
+ "name": "renderRing",
24365
+ "privacy": "private",
24366
+ "parameters": [
24367
+ {
24368
+ "name": "radius",
24369
+ "type": {
24370
+ "text": "number"
24371
+ }
24372
+ },
24373
+ {
24374
+ "name": "strokeWidth",
24375
+ "type": {
24376
+ "text": "number"
24377
+ }
24378
+ },
24379
+ {
24380
+ "name": "level",
24381
+ "type": {
24382
+ "text": "number"
24383
+ }
24384
+ }
24385
+ ]
24386
+ }
24387
+ ],
24388
+ "attributes": [
24389
+ {
24390
+ "name": "variant",
24391
+ "type": {
24392
+ "text": "IndicatorGeneratorVariant"
24393
+ },
24394
+ "fieldName": "variant"
24395
+ },
24396
+ {
24397
+ "name": "value",
24398
+ "type": {
24399
+ "text": "IndicatorGeneratorValue"
24400
+ },
24401
+ "fieldName": "value"
24402
+ },
24403
+ {
24404
+ "name": "level",
24405
+ "type": {
24406
+ "text": "number"
24407
+ },
24408
+ "default": "0",
24409
+ "description": "Outer progress ring sweep, 0-100 (%)",
24410
+ "fieldName": "level"
24411
+ },
24412
+ {
24413
+ "name": "secondaryLevel",
24414
+ "type": {
24415
+ "text": "number"
24416
+ },
24417
+ "default": "0",
24418
+ "description": "Inner progress ring sweep, 0-100 (%), double-bar only",
24419
+ "fieldName": "secondaryLevel"
24420
+ }
24421
+ ],
24422
+ "superclass": {
24423
+ "name": "LitElement",
24424
+ "package": "lit"
24425
+ },
24426
+ "tagName": "obc-indicator-generator",
24427
+ "customElement": true
24428
+ }
24429
+ ],
24430
+ "exports": [
24431
+ {
24432
+ "kind": "js",
24433
+ "name": "ObcIndicatorGenerator",
24434
+ "declaration": {
24435
+ "name": "ObcIndicatorGenerator",
24436
+ "module": "src/automation/indicator-generator/indicator-generator.ts"
24437
+ }
24438
+ },
24439
+ {
24440
+ "kind": "custom-element-definition",
24441
+ "name": "obc-indicator-generator",
24442
+ "declaration": {
24443
+ "name": "ObcIndicatorGenerator",
24444
+ "module": "src/automation/indicator-generator/indicator-generator.ts"
24445
+ }
24446
+ }
24447
+ ]
24448
+ },
24449
+ {
24450
+ "kind": "javascript-module",
24451
+ "path": "src/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.ts",
24452
+ "declarations": [
24453
+ {
24454
+ "kind": "class",
24455
+ "description": "Compact 48×48 atmospheric tank level indicator.\n\n## Features / Variants\n- `variant`: `bar` (bottom-up percentage fill) or `trend` (history graph\n with a current-value micro-bar)\n- `direction`: `vertical` or `horizontal` tank outline\n- `value`: color scheme — `regular`, `enhanced` or `medium`\n- `level`: current tank level 0–100 (%), drives the fill and micro-bar\n- `data`: history samples 0–100 (%) drawn as the trend graph\n- `hasIcon`: centered icon overlay (bar variant only)\n\n## Usage Guidelines\nUse as an at-a-glance level indicator in dashboards and lists. For a\nfull-featured tank cell with readouts, badges and setpoints, use\n`obc-automation-tank` instead.\n\n## Best Practices / Constraints\n- `level` and `data` values are clamped to 0–100; values outside that\n range are pinned to the nearest bound.\n- The `trend` variant needs at least two `data` samples to draw a line;\n with fewer it shows only the current-value micro-bar.\n- The `icon` slot renders only in the `bar` variant; it is ignored in\n `trend`.\n- Display-only: the root SVG is `aria-hidden`; convey tank level to\n assistive tech through adjacent text if it is not otherwise available.\n\n## Slots\n| Slot | Condition | Purpose |\n| ------ | ----------------------------- | ------------------------------ |\n| `icon` | `hasIcon` and `variant='bar'` | Icon overlay (`obi-*` element) |",
24456
+ "name": "ObcIndicatorTankAtmospheric",
24457
+ "slots": [
24458
+ {
24459
+ "description": "Centered icon overlay, defaults to `obi-tank`",
24460
+ "name": "icon"
24461
+ }
24462
+ ],
24463
+ "members": [
24464
+ {
24465
+ "kind": "field",
24466
+ "name": "direction",
24467
+ "type": {
24468
+ "text": "IndicatorDirection"
24469
+ },
24470
+ "attribute": "direction",
24471
+ "reflects": true
24472
+ },
24473
+ {
24474
+ "kind": "field",
24475
+ "name": "variant",
24476
+ "type": {
24477
+ "text": "IndicatorTankAtmosphericVariant"
24478
+ },
24479
+ "attribute": "variant",
24480
+ "reflects": true
24481
+ },
24482
+ {
24483
+ "kind": "field",
24484
+ "name": "value",
24485
+ "type": {
24486
+ "text": "IndicatorTankAtmosphericValue"
24487
+ },
24488
+ "attribute": "value",
24489
+ "reflects": true
24490
+ },
24491
+ {
24492
+ "kind": "field",
24493
+ "name": "level",
24494
+ "type": {
24495
+ "text": "number"
24496
+ },
24497
+ "default": "0",
24498
+ "description": "Current level, 0-100 (%)",
24499
+ "attribute": "level"
24500
+ },
24501
+ {
24502
+ "kind": "field",
24503
+ "name": "data",
24504
+ "type": {
24505
+ "text": "number[]"
24506
+ },
24507
+ "default": "[]",
24508
+ "description": "History samples, 0-100 (%) each, oldest first",
24509
+ "attribute": "data"
24510
+ },
24511
+ {
24512
+ "kind": "field",
24513
+ "name": "hasIcon",
24514
+ "type": {
24515
+ "text": "boolean"
24516
+ },
24517
+ "default": "false",
24518
+ "attribute": "hasIcon"
24519
+ },
24520
+ {
24521
+ "kind": "field",
24522
+ "name": "scheme",
24523
+ "type": {
24524
+ "text": "LinearIndicatorScheme"
24525
+ },
24526
+ "privacy": "private",
24527
+ "readonly": true
24528
+ }
24529
+ ],
24530
+ "attributes": [
24531
+ {
24532
+ "name": "direction",
24533
+ "type": {
24534
+ "text": "IndicatorDirection"
24535
+ },
24536
+ "fieldName": "direction"
24537
+ },
24538
+ {
24539
+ "name": "variant",
24540
+ "type": {
24541
+ "text": "IndicatorTankAtmosphericVariant"
24542
+ },
24543
+ "fieldName": "variant"
24544
+ },
24545
+ {
24546
+ "name": "value",
24547
+ "type": {
24548
+ "text": "IndicatorTankAtmosphericValue"
24549
+ },
24550
+ "fieldName": "value"
24551
+ },
24552
+ {
24553
+ "name": "level",
24554
+ "type": {
24555
+ "text": "number"
24556
+ },
24557
+ "default": "0",
24558
+ "description": "Current level, 0-100 (%)",
24559
+ "fieldName": "level"
24560
+ },
24561
+ {
24562
+ "name": "data",
24563
+ "type": {
24564
+ "text": "number[]"
24565
+ },
24566
+ "default": "[]",
24567
+ "description": "History samples, 0-100 (%) each, oldest first",
24568
+ "fieldName": "data"
24569
+ },
24570
+ {
24571
+ "name": "hasIcon",
24572
+ "type": {
24573
+ "text": "boolean"
24574
+ },
24575
+ "default": "false",
24576
+ "fieldName": "hasIcon"
24577
+ }
24578
+ ],
24579
+ "superclass": {
24580
+ "name": "LitElement",
24581
+ "package": "lit"
24582
+ },
24583
+ "tagName": "obc-indicator-tank-atmospheric",
24584
+ "customElement": true
24585
+ }
24586
+ ],
24587
+ "exports": [
24588
+ {
24589
+ "kind": "js",
24590
+ "name": "ObcIndicatorTankAtmospheric",
24591
+ "declaration": {
24592
+ "name": "ObcIndicatorTankAtmospheric",
24593
+ "module": "src/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.ts"
24594
+ }
24595
+ },
24596
+ {
24597
+ "kind": "custom-element-definition",
24598
+ "name": "obc-indicator-tank-atmospheric",
24599
+ "declaration": {
24600
+ "name": "ObcIndicatorTankAtmospheric",
24601
+ "module": "src/automation/indicator-tank-atmospheric/indicator-tank-atmospheric.ts"
24602
+ }
24603
+ }
24604
+ ]
24605
+ },
24044
24606
  {
24045
24607
  "kind": "javascript-module",
24046
24608
  "path": "src/automation/line-cross/line-cross.ts",
@@ -0,0 +1,52 @@
1
+ import { css } from "lit";
2
+ const componentStyle = css`* {
3
+ -webkit-tap-highlight-color: transparent;
4
+ }
5
+
6
+ :host {
7
+ display: block;
8
+ position: relative;
9
+ width: 48px;
10
+ height: 48px;
11
+ }
12
+
13
+ svg {
14
+ display: block;
15
+ width: 100%;
16
+ height: 100%;
17
+ }
18
+
19
+ .shell {
20
+ fill: var(--instrument-frame-primary-color);
21
+ stroke: var(--instrument-frame-tertiary-color);
22
+ }
23
+
24
+ .tip {
25
+ fill: var(--instrument-frame-tertiary-color);
26
+ }
27
+
28
+ .icon-wrapper {
29
+ position: absolute;
30
+ inset: 12px;
31
+ color: var(--element-neutral-color);
32
+ }
33
+
34
+ :host([value="enhanced"]) .icon-wrapper {
35
+ color: var(--element-neutral-enhanced-color);
36
+ }
37
+
38
+ :host([value="categorical"]) .icon-wrapper {
39
+ color: var(--base-teal-500);
40
+ }
41
+
42
+ .icon-wrapper ::slotted(*),
43
+ .icon-wrapper obi-energy-battery {
44
+ display: block;
45
+ width: 100%;
46
+ height: 100%;
47
+ }
48
+ `;
49
+ export {
50
+ componentStyle as default
51
+ };
52
+ //# sourceMappingURL=indicator-battery.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicator-battery.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,65 @@
1
+ import { LitElement } from 'lit';
2
+ import { IndicatorDirection } from '../indicator-shared/linear-indicator.js';
3
+ import '../../icons/icon-energy-battery.js';
4
+ export declare enum IndicatorBatteryVariant {
5
+ bar = "bar",
6
+ trend = "trend"
7
+ }
8
+ export declare enum IndicatorBatteryValue {
9
+ regular = "regular",
10
+ enhanced = "enhanced",
11
+ categorical = "categorical"
12
+ }
13
+ /**
14
+ * Compact 48×48 battery charge indicator.
15
+ *
16
+ * ## Features / Variants
17
+ * - `variant`: `bar` (bottom-up percentage fill) or `trend` (history graph
18
+ * with a current-value micro-bar)
19
+ * - `direction`: `vertical` or `horizontal` battery shell
20
+ * - `value`: color scheme — `regular`, `enhanced` or `categorical`
21
+ * - `level`: current charge 0–100 (%), drives the fill and micro-bar
22
+ * - `data`: history samples 0–100 (%) drawn as the trend graph
23
+ * - `hasIcon`: centered icon overlay (bar variant only)
24
+ *
25
+ * ## Usage Guidelines
26
+ * Use as an at-a-glance charge indicator in dashboards and lists. For a
27
+ * full-featured tank/battery cell with readouts, badges and setpoints, use
28
+ * `obc-automation-tank` (type `battery`) instead.
29
+ *
30
+ * ## Best Practices / Constraints
31
+ * - `level` and `data` values are clamped to 0–100; values outside that
32
+ * range are pinned to the nearest bound.
33
+ * - The `trend` variant needs at least two `data` samples to draw a line;
34
+ * with fewer it shows only the current-value micro-bar.
35
+ * - The `icon` slot renders only in the `bar` variant; it is ignored in
36
+ * `trend`.
37
+ * - Display-only: the root SVG is `aria-hidden`; convey battery state to
38
+ * assistive tech through adjacent text if it is not otherwise available.
39
+ *
40
+ * ## Slots
41
+ * | Slot | Condition | Purpose |
42
+ * | ------ | ----------------------------- | ------------------------------ |
43
+ * | `icon` | `hasIcon` and `variant='bar'` | Icon overlay (`obi-*` element) |
44
+ *
45
+ * @slot icon - Centered icon overlay, defaults to `obi-energy-battery`
46
+ */
47
+ export declare class ObcIndicatorBattery extends LitElement {
48
+ direction: IndicatorDirection;
49
+ variant: IndicatorBatteryVariant;
50
+ value: IndicatorBatteryValue;
51
+ /** Current charge, 0-100 (%) */
52
+ level: number;
53
+ /** History samples, 0-100 (%) each, oldest first */
54
+ data: number[];
55
+ hasIcon: boolean;
56
+ private get scheme();
57
+ render(): import('lit-html').TemplateResult<1>;
58
+ static styles: import('lit').CSSResult;
59
+ }
60
+ declare global {
61
+ interface HTMLElementTagNameMap {
62
+ 'obc-indicator-battery': ObcIndicatorBattery;
63
+ }
64
+ }
65
+ //# sourceMappingURL=indicator-battery.d.ts.map