@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.63 → 2.0.0-next.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/openbridge-webcomponents.bundle.js +326 -323
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +12 -12
- package/dist/alert-severity.d.ts.map +1 -1
- package/dist/alert-severity.js +37 -35
- package/dist/alert-severity.js.map +1 -1
- package/dist/ar/building-blocks/poi-header/poi-header.css.js +15 -15
- package/dist/ar/building-blocks/poi-header/poi-header.d.ts +6 -6
- package/dist/ar/building-blocks/poi-header/poi-header.d.ts.map +1 -1
- package/dist/ar/building-blocks/poi-header/poi-header.js +5 -5
- package/dist/ar/building-blocks/poi-header/poi-header.js.map +1 -1
- package/dist/ar/poi-button/poi-button.css.js +31 -30
- package/dist/ar/poi-button/poi-button.css.js.map +1 -1
- package/dist/ar/poi-button/poi-button.d.ts +6 -6
- package/dist/ar/poi-button/poi-button.d.ts.map +1 -1
- package/dist/ar/poi-button/poi-button.js +15 -15
- package/dist/ar/poi-button/poi-button.js.map +1 -1
- package/dist/ar/types.d.ts +5 -5
- package/dist/ar/types.d.ts.map +1 -1
- package/dist/ar/types.js +5 -5
- package/dist/ar/types.js.map +1 -1
- package/dist/automation/automation-badge/automation-badge.d.ts +7 -7
- package/dist/automation/automation-badge/automation-badge.d.ts.map +1 -1
- package/dist/automation/automation-badge/automation-badge.js +29 -29
- package/dist/automation/automation-badge/automation-badge.js.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button.d.ts +5 -5
- package/dist/automation/automation-button/abstract-automation-button.d.ts.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button.js +15 -15
- package/dist/automation/automation-button/abstract-automation-button.js.map +1 -1
- package/dist/automation/automation-tank/automation-tank.js +10 -10
- package/dist/automation/automation-tank/automation-tank.js.map +1 -1
- package/dist/components/accordion-card/accordion-card.css.js +5 -5
- package/dist/components/alert-button/alert-button.css.js +128 -128
- package/dist/components/alert-frame/alert-frame.css.js +6 -6
- package/dist/components/alert-frame/alert-frame.d.ts +4 -4
- package/dist/components/alert-frame/alert-frame.js.map +1 -1
- package/dist/components/alert-icon/alert-icon.js +4 -4
- package/dist/components/alert-icon/alert-icon.js.map +1 -1
- package/dist/components/badge/badge.css.js +10 -10
- package/dist/components/badge/badge.d.ts +13 -13
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.js +10 -10
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/manual-icon/icon-alerts-critical-twotone.d.ts +1 -1
- package/dist/manual-icon/icon-alerts-critical-twotone.js.map +1 -1
- package/dist/manual-icon/icon-alerts-diagnostic-twotone.d.ts +1 -1
- package/dist/manual-icon/icon-alerts-diagnostic-twotone.js.map +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +11 -11
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/src/alert-severity.ts +43 -41
- package/src/ar/building-blocks/poi-header/poi-header.css +15 -15
- package/src/ar/building-blocks/poi-header/poi-header.ts +6 -6
- package/src/ar/poi-button/poi-button.css +31 -30
- package/src/ar/poi-button/poi-button.ts +16 -16
- package/src/ar/types.ts +5 -5
- package/src/automation/automation-badge/automation-badge.ts +22 -22
- package/src/automation/automation-button/abstract-automation-button.ts +15 -15
- package/src/automation/automation-tank/automation-tank.stories.ts +6 -6
- package/src/automation/automation-tank/automation-tank.ts +10 -10
- package/src/components/accordion-card/accordion-card.css +5 -5
- package/src/components/alert-button/alert-button.css +14 -14
- package/src/components/alert-button/alert-button.stories.ts +10 -10
- package/src/components/alert-frame/alert-frame.css +6 -6
- package/src/components/alert-frame/alert-frame.stories.ts +10 -10
- package/src/components/alert-frame/alert-frame.ts +4 -4
- package/src/components/alert-icon/alert-icon.stories.ts +10 -10
- package/src/components/alert-icon/alert-icon.ts +4 -4
- package/src/components/alert-list-details/alert-list-details.stories.ts +11 -11
- package/src/components/badge/badge.css +10 -10
- package/src/components/badge/badge.stories.ts +10 -10
- package/src/components/badge/badge.ts +18 -18
- package/src/manual-icon/icon-alerts-critical-twotone.ts +1 -1
- package/src/manual-icon/icon-alerts-diagnostic-twotone.ts +1 -1
- package/src/navigation-instruments/readout/readout.stories.ts +2 -2
- package/src/navigation-instruments/readout-list-item/readout-list-item.stories.ts +4 -4
- package/src/types.ts +10 -10
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
&.alert-alarm,
|
|
123
|
-
&.alert-
|
|
123
|
+
&.alert-level-high {
|
|
124
124
|
.alert-ring {
|
|
125
125
|
background: var(--alert-alarm-color);
|
|
126
126
|
border-color: var(--alert-alarm-outline-color);
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
&.alert-
|
|
131
|
+
&.alert-level-critical {
|
|
132
132
|
.alert-ring {
|
|
133
133
|
background: var(--critical-enabled-background-color);
|
|
134
134
|
border-color: var(--critical-enabled-border-color);
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
&.alert-warning,
|
|
140
|
-
&.alert-
|
|
140
|
+
&.alert-level-medium {
|
|
141
141
|
.alert-ring {
|
|
142
142
|
background: var(--alert-warning-color);
|
|
143
143
|
border-color: var(--alert-warning-outline-color);
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
&.alert-caution,
|
|
149
|
-
&.alert-
|
|
149
|
+
&.alert-level-low {
|
|
150
150
|
.alert-ring {
|
|
151
151
|
background: var(--alert-caution-color);
|
|
152
152
|
border-color: var(--alert-caution-outline-color);
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
&.alert-
|
|
157
|
+
&.alert-level-diagnostic {
|
|
158
158
|
.alert-ring {
|
|
159
159
|
background: var(--notification-enabled-background-color);
|
|
160
160
|
border-color: var(--notification-enabled-border-color);
|
|
@@ -265,25 +265,25 @@
|
|
|
265
265
|
/* Overlap alert color styles */
|
|
266
266
|
.wrapper.value-overlapped {
|
|
267
267
|
&.alert-alarm,
|
|
268
|
-
&.alert-
|
|
268
|
+
&.alert-level-high {
|
|
269
269
|
--overlay-container-background-color: var(--alert-alarm-color, #e30019);
|
|
270
270
|
--overlay-border-outline-color: var(--alert-alarm-outline-color);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
&.alert-alarm .poi-object,
|
|
274
|
-
&.alert-
|
|
274
|
+
&.alert-level-high .poi-object {
|
|
275
275
|
--overlay-container-background-color: var(--alert-alarm-color, #e30019);
|
|
276
276
|
--overlay-border-outline-color: var(--alert-alarm-outline-color);
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
&.alert-
|
|
279
|
+
&.alert-level-critical {
|
|
280
280
|
--overlay-container-background-color: var(
|
|
281
281
|
--critical-enabled-background-color
|
|
282
282
|
);
|
|
283
283
|
--overlay-border-outline-color: var(--critical-enabled-border-color);
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
&.alert-
|
|
286
|
+
&.alert-level-critical .poi-object {
|
|
287
287
|
--overlay-container-background-color: var(
|
|
288
288
|
--critical-enabled-background-color
|
|
289
289
|
);
|
|
@@ -291,37 +291,37 @@
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
&.alert-warning,
|
|
294
|
-
&.alert-
|
|
294
|
+
&.alert-level-medium {
|
|
295
295
|
--overlay-container-background-color: var(--alert-warning-color, #fe9413);
|
|
296
296
|
--overlay-border-outline-color: var(--alert-warning-outline-color);
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
&.alert-warning .poi-object,
|
|
300
|
-
&.alert-
|
|
300
|
+
&.alert-level-medium .poi-object {
|
|
301
301
|
--overlay-container-background-color: var(--alert-warning-color, #fe9413);
|
|
302
302
|
--overlay-border-outline-color: var(--alert-warning-outline-color);
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
&.alert-caution,
|
|
306
|
-
&.alert-
|
|
306
|
+
&.alert-level-low {
|
|
307
307
|
--overlay-container-background-color: var(--alert-caution-color, #ffdb42);
|
|
308
308
|
--overlay-border-outline-color: var(--alert-caution-outline-color);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
&.alert-caution .poi-object,
|
|
312
|
-
&.alert-
|
|
312
|
+
&.alert-level-low .poi-object {
|
|
313
313
|
--overlay-container-background-color: var(--alert-caution-color, #ffdb42);
|
|
314
314
|
--overlay-border-outline-color: var(--alert-caution-outline-color);
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
&.alert-
|
|
317
|
+
&.alert-level-diagnostic {
|
|
318
318
|
--overlay-container-background-color: var(
|
|
319
319
|
--notification-enabled-background-color
|
|
320
320
|
);
|
|
321
321
|
--overlay-border-outline-color: var(--notification-enabled-border-color);
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
&.alert-
|
|
324
|
+
&.alert-level-diagnostic .poi-object {
|
|
325
325
|
--overlay-container-background-color: var(
|
|
326
326
|
--notification-enabled-background-color
|
|
327
327
|
);
|
|
@@ -330,30 +330,31 @@
|
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
.wrapper.value-overlapped.alert-caution .poi-object::part(background-frame),
|
|
333
|
-
.wrapper.value-overlapped.alert-
|
|
333
|
+
.wrapper.value-overlapped.alert-level-low .poi-object::part(background-frame) {
|
|
334
334
|
background-color: var(--alert-caution-color, #ffdb42);
|
|
335
335
|
border-color: var(--alert-caution-outline-color);
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
.wrapper.value-overlapped.alert-warning .poi-object::part(background-frame),
|
|
339
|
-
.wrapper.value-overlapped.alert-
|
|
339
|
+
.wrapper.value-overlapped.alert-level-medium
|
|
340
|
+
.poi-object::part(background-frame) {
|
|
340
341
|
background-color: var(--alert-warning-color, #fe9413);
|
|
341
342
|
border-color: var(--alert-warning-outline-color);
|
|
342
343
|
}
|
|
343
344
|
|
|
344
345
|
.wrapper.value-overlapped.alert-alarm .poi-object::part(background-frame),
|
|
345
|
-
.wrapper.value-overlapped.alert-
|
|
346
|
+
.wrapper.value-overlapped.alert-level-high .poi-object::part(background-frame) {
|
|
346
347
|
background-color: var(--alert-alarm-color, #e30019);
|
|
347
348
|
border-color: var(--alert-alarm-outline-color);
|
|
348
349
|
}
|
|
349
350
|
|
|
350
|
-
.wrapper.value-overlapped.alert-
|
|
351
|
+
.wrapper.value-overlapped.alert-level-critical
|
|
351
352
|
.poi-object::part(background-frame) {
|
|
352
353
|
background-color: var(--critical-enabled-background-color);
|
|
353
354
|
border-color: var(--critical-enabled-border-color);
|
|
354
355
|
}
|
|
355
356
|
|
|
356
|
-
.wrapper.value-overlapped.alert-
|
|
357
|
+
.wrapper.value-overlapped.alert-level-diagnostic
|
|
357
358
|
.poi-object::part(background-frame) {
|
|
358
359
|
background-color: var(--notification-enabled-background-color);
|
|
359
360
|
border-color: var(--notification-enabled-border-color);
|
|
@@ -386,29 +387,29 @@
|
|
|
386
387
|
}
|
|
387
388
|
|
|
388
389
|
.alert-caution &,
|
|
389
|
-
.alert-
|
|
390
|
+
.alert-level-low & {
|
|
390
391
|
border-color: var(--alert-caution-outline-color);
|
|
391
392
|
outline-color: var(--alert-caution-color);
|
|
392
393
|
}
|
|
393
394
|
|
|
394
395
|
.alert-warning &,
|
|
395
|
-
.alert-
|
|
396
|
+
.alert-level-medium & {
|
|
396
397
|
border-color: var(--alert-warning-outline-color);
|
|
397
398
|
outline-color: var(--alert-warning-color);
|
|
398
399
|
}
|
|
399
400
|
|
|
400
401
|
.alert-alarm &,
|
|
401
|
-
.alert-
|
|
402
|
+
.alert-level-high & {
|
|
402
403
|
border-color: var(--alert-alarm-outline-color);
|
|
403
404
|
outline-color: var(--alert-alarm-color);
|
|
404
405
|
}
|
|
405
406
|
|
|
406
|
-
.alert-
|
|
407
|
+
.alert-level-critical & {
|
|
407
408
|
border-color: var(--critical-enabled-border-color);
|
|
408
409
|
outline-color: var(--critical-enabled-background-color);
|
|
409
410
|
}
|
|
410
411
|
|
|
411
|
-
.alert-
|
|
412
|
+
.alert-level-diagnostic & {
|
|
412
413
|
border-color: var(--notification-enabled-border-color);
|
|
413
414
|
outline-color: var(--notification-enabled-background-color);
|
|
414
415
|
}
|
|
@@ -487,29 +488,29 @@
|
|
|
487
488
|
}
|
|
488
489
|
|
|
489
490
|
.wrapper.value-overlapped.has-data.alert-caution,
|
|
490
|
-
.wrapper.value-overlapped.has-data.alert-
|
|
491
|
+
.wrapper.value-overlapped.has-data.alert-level-low {
|
|
491
492
|
background: var(--alert-caution-color, #ffdb42);
|
|
492
493
|
border-color: var(--alert-caution-outline-color);
|
|
493
494
|
}
|
|
494
495
|
|
|
495
496
|
.wrapper.value-overlapped.has-data.alert-warning,
|
|
496
|
-
.wrapper.value-overlapped.has-data.alert-
|
|
497
|
+
.wrapper.value-overlapped.has-data.alert-level-medium {
|
|
497
498
|
background: var(--alert-warning-color, #fe9413);
|
|
498
499
|
border-color: var(--alert-warning-outline-color);
|
|
499
500
|
}
|
|
500
501
|
|
|
501
502
|
.wrapper.value-overlapped.has-data.alert-alarm,
|
|
502
|
-
.wrapper.value-overlapped.has-data.alert-
|
|
503
|
+
.wrapper.value-overlapped.has-data.alert-level-high {
|
|
503
504
|
background: var(--alert-alarm-color, #e30019);
|
|
504
505
|
border-color: var(--alert-alarm-outline-color);
|
|
505
506
|
}
|
|
506
507
|
|
|
507
|
-
.wrapper.value-overlapped.has-data.alert-
|
|
508
|
+
.wrapper.value-overlapped.has-data.alert-level-critical {
|
|
508
509
|
background: var(--critical-enabled-background-color);
|
|
509
510
|
border-color: var(--critical-enabled-border-color);
|
|
510
511
|
}
|
|
511
512
|
|
|
512
|
-
.wrapper.value-overlapped.has-data.alert-
|
|
513
|
+
.wrapper.value-overlapped.has-data.alert-level-diagnostic {
|
|
513
514
|
background: var(--notification-enabled-background-color);
|
|
514
515
|
border-color: var(--notification-enabled-border-color);
|
|
515
516
|
}
|
|
@@ -34,11 +34,11 @@ export enum ObcPoiButtonState {
|
|
|
34
34
|
Caution = 'caution',
|
|
35
35
|
Warning = 'warning',
|
|
36
36
|
Alarm = 'alarm',
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
LevelCritical = 'level-critical',
|
|
38
|
+
LevelHigh = 'level-high',
|
|
39
|
+
LevelMedium = 'level-medium',
|
|
40
|
+
LevelLow = 'level-low',
|
|
41
|
+
LevelDiagnostic = 'level-diagnostic',
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export enum PoiButtonVisualState {
|
|
@@ -95,7 +95,7 @@ export interface ObcPoiButtonDataItem {
|
|
|
95
95
|
* - `layout` (default `anchored`): `anchored` or `inline`.
|
|
96
96
|
* - `value` (default `unchecked`): `unchecked`, `checked`, `activated`, `overlapped`.
|
|
97
97
|
* - `overlapOpaque` (default `false`): controls overlapped opacity mode (`false` = translucent, `true` = opaque).
|
|
98
|
-
* - `state` (default `enabled`): `enabled`, `caution`, `warning`, `alarm`, `
|
|
98
|
+
* - `state` (default `enabled`): `enabled`, `caution`, `warning`, `alarm`, `level-critical`, `level-high`, `level-medium`, `level-low`, `level-diagnostic`.
|
|
99
99
|
* - `selected` (default `false`): shows selection frame in anchored layout.
|
|
100
100
|
* - `relativeDirection` (default `0`): rotates default-slot icon content in degrees.
|
|
101
101
|
* - `data` (default `[]`): when non-empty, renders value/label/unit rows.
|
|
@@ -212,16 +212,16 @@ export class ObcPoiButton extends LitElement {
|
|
|
212
212
|
return ObcPoiHeaderState.Warning;
|
|
213
213
|
case ObcPoiButtonState.Alarm:
|
|
214
214
|
return ObcPoiHeaderState.Alarm;
|
|
215
|
-
case ObcPoiButtonState.
|
|
216
|
-
return ObcPoiHeaderState.
|
|
217
|
-
case ObcPoiButtonState.
|
|
218
|
-
return ObcPoiHeaderState.
|
|
219
|
-
case ObcPoiButtonState.
|
|
220
|
-
return ObcPoiHeaderState.
|
|
221
|
-
case ObcPoiButtonState.
|
|
222
|
-
return ObcPoiHeaderState.
|
|
223
|
-
case ObcPoiButtonState.
|
|
224
|
-
return ObcPoiHeaderState.
|
|
215
|
+
case ObcPoiButtonState.LevelCritical:
|
|
216
|
+
return ObcPoiHeaderState.LevelCritical;
|
|
217
|
+
case ObcPoiButtonState.LevelHigh:
|
|
218
|
+
return ObcPoiHeaderState.LevelHigh;
|
|
219
|
+
case ObcPoiButtonState.LevelMedium:
|
|
220
|
+
return ObcPoiHeaderState.LevelMedium;
|
|
221
|
+
case ObcPoiButtonState.LevelLow:
|
|
222
|
+
return ObcPoiHeaderState.LevelLow;
|
|
223
|
+
case ObcPoiButtonState.LevelDiagnostic:
|
|
224
|
+
return ObcPoiHeaderState.LevelDiagnostic;
|
|
225
225
|
case ObcPoiButtonState.Enabled:
|
|
226
226
|
default:
|
|
227
227
|
return ObcPoiHeaderState.Selected;
|
package/src/ar/types.ts
CHANGED
|
@@ -3,9 +3,9 @@ export enum ObcArAlertType {
|
|
|
3
3
|
Caution = 'caution',
|
|
4
4
|
Warning = 'warning',
|
|
5
5
|
Alarm = 'alarm',
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
LevelCritical = 'level-critical',
|
|
7
|
+
LevelHigh = 'level-high',
|
|
8
|
+
LevelMedium = 'level-medium',
|
|
9
|
+
LevelLow = 'level-low',
|
|
10
|
+
LevelDiagnostic = 'level-diagnostic',
|
|
11
11
|
}
|
|
@@ -32,22 +32,22 @@ export enum ObcAutomationBadgeType {
|
|
|
32
32
|
Caution = 'caution',
|
|
33
33
|
Warning = 'warning',
|
|
34
34
|
Alarm = 'alarm',
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
LevelCritical = 'level-critical',
|
|
36
|
+
LevelHigh = 'level-high',
|
|
37
|
+
LevelMedium = 'level-medium',
|
|
38
|
+
LevelLow = 'level-low',
|
|
39
|
+
LevelDiagnostic = 'level-diagnostic',
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
const ALERT_BADGE_TYPES: ObcAutomationBadgeType[] = [
|
|
43
43
|
ObcAutomationBadgeType.Caution,
|
|
44
44
|
ObcAutomationBadgeType.Warning,
|
|
45
45
|
ObcAutomationBadgeType.Alarm,
|
|
46
|
-
ObcAutomationBadgeType.
|
|
47
|
-
ObcAutomationBadgeType.
|
|
48
|
-
ObcAutomationBadgeType.
|
|
49
|
-
ObcAutomationBadgeType.
|
|
50
|
-
ObcAutomationBadgeType.
|
|
46
|
+
ObcAutomationBadgeType.LevelCritical,
|
|
47
|
+
ObcAutomationBadgeType.LevelHigh,
|
|
48
|
+
ObcAutomationBadgeType.LevelMedium,
|
|
49
|
+
ObcAutomationBadgeType.LevelLow,
|
|
50
|
+
ObcAutomationBadgeType.LevelDiagnostic,
|
|
51
51
|
];
|
|
52
52
|
|
|
53
53
|
@customElement('obc-automation-badge')
|
|
@@ -69,7 +69,7 @@ export class ObcAutomationBadge extends LitElement {
|
|
|
69
69
|
return !!this.type && types.includes(this.type);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
private
|
|
72
|
+
private renderLevelCriticalIcon(flat: boolean) {
|
|
73
73
|
if (flat) {
|
|
74
74
|
return html`<svg
|
|
75
75
|
width="16"
|
|
@@ -118,7 +118,7 @@ export class ObcAutomationBadge extends LitElement {
|
|
|
118
118
|
</svg>`;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
private
|
|
121
|
+
private renderLevelDiagnosticIcon() {
|
|
122
122
|
return html`<svg
|
|
123
123
|
width="16"
|
|
124
124
|
height="16"
|
|
@@ -166,16 +166,16 @@ export class ObcAutomationBadge extends LitElement {
|
|
|
166
166
|
class="icon siluette"
|
|
167
167
|
></obi-alert-off-filled
|
|
168
168
|
><obi-alert-off-filled class="icon"></obi-alert-off-filled>`;
|
|
169
|
-
} else if (this.type === ObcAutomationBadgeType.
|
|
170
|
-
return this.
|
|
169
|
+
} else if (this.type === ObcAutomationBadgeType.LevelCritical) {
|
|
170
|
+
return this.renderLevelCriticalIcon(
|
|
171
171
|
this.effectiveMode === ObcAutomationBadgeMode.Flat
|
|
172
172
|
);
|
|
173
|
-
} else if (this.type === ObcAutomationBadgeType.
|
|
174
|
-
return this.
|
|
173
|
+
} else if (this.type === ObcAutomationBadgeType.LevelDiagnostic) {
|
|
174
|
+
return this.renderLevelDiagnosticIcon();
|
|
175
175
|
} else if (
|
|
176
176
|
this.isAlertType(
|
|
177
177
|
ObcAutomationBadgeType.Caution,
|
|
178
|
-
ObcAutomationBadgeType.
|
|
178
|
+
ObcAutomationBadgeType.LevelLow
|
|
179
179
|
) &&
|
|
180
180
|
this.effectiveMode === ObcAutomationBadgeMode.Flat
|
|
181
181
|
) {
|
|
@@ -227,7 +227,7 @@ export class ObcAutomationBadge extends LitElement {
|
|
|
227
227
|
} else if (
|
|
228
228
|
this.isAlertType(
|
|
229
229
|
ObcAutomationBadgeType.Caution,
|
|
230
|
-
ObcAutomationBadgeType.
|
|
230
|
+
ObcAutomationBadgeType.LevelLow
|
|
231
231
|
)
|
|
232
232
|
) {
|
|
233
233
|
return html`<svg
|
|
@@ -253,7 +253,7 @@ export class ObcAutomationBadge extends LitElement {
|
|
|
253
253
|
} else if (
|
|
254
254
|
this.isAlertType(
|
|
255
255
|
ObcAutomationBadgeType.Warning,
|
|
256
|
-
ObcAutomationBadgeType.
|
|
256
|
+
ObcAutomationBadgeType.LevelMedium
|
|
257
257
|
) &&
|
|
258
258
|
this.effectiveMode === ObcAutomationBadgeMode.Flat
|
|
259
259
|
) {
|
|
@@ -315,7 +315,7 @@ export class ObcAutomationBadge extends LitElement {
|
|
|
315
315
|
} else if (
|
|
316
316
|
this.isAlertType(
|
|
317
317
|
ObcAutomationBadgeType.Warning,
|
|
318
|
-
ObcAutomationBadgeType.
|
|
318
|
+
ObcAutomationBadgeType.LevelMedium
|
|
319
319
|
)
|
|
320
320
|
) {
|
|
321
321
|
return html`<svg
|
|
@@ -338,7 +338,7 @@ export class ObcAutomationBadge extends LitElement {
|
|
|
338
338
|
} else if (
|
|
339
339
|
this.isAlertType(
|
|
340
340
|
ObcAutomationBadgeType.Alarm,
|
|
341
|
-
ObcAutomationBadgeType.
|
|
341
|
+
ObcAutomationBadgeType.LevelHigh
|
|
342
342
|
) &&
|
|
343
343
|
this.effectiveMode === ObcAutomationBadgeMode.Flat
|
|
344
344
|
) {
|
|
@@ -390,7 +390,7 @@ export class ObcAutomationBadge extends LitElement {
|
|
|
390
390
|
} else if (
|
|
391
391
|
this.isAlertType(
|
|
392
392
|
ObcAutomationBadgeType.Alarm,
|
|
393
|
-
ObcAutomationBadgeType.
|
|
393
|
+
ObcAutomationBadgeType.LevelHigh
|
|
394
394
|
)
|
|
395
395
|
) {
|
|
396
396
|
return html`
|
|
@@ -28,11 +28,11 @@ export enum AutomationButtonBadgeAlert {
|
|
|
28
28
|
Caution = 'caution',
|
|
29
29
|
Warning = 'warning',
|
|
30
30
|
Alarm = 'alarm',
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
LevelCritical = 'level-critical',
|
|
32
|
+
LevelHigh = 'level-high',
|
|
33
|
+
LevelMedium = 'level-medium',
|
|
34
|
+
LevelLow = 'level-low',
|
|
35
|
+
LevelDiagnostic = 'level-diagnostic',
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export enum AutomationButtonBadgeInterlock {
|
|
@@ -158,16 +158,16 @@ export class ObcAbstractAutomationButton extends LitElement {
|
|
|
158
158
|
return ObcAutomationBadgeType.Warning;
|
|
159
159
|
} else if (this.badgeAlert === AutomationButtonBadgeAlert.Alarm) {
|
|
160
160
|
return ObcAutomationBadgeType.Alarm;
|
|
161
|
-
} else if (this.badgeAlert === AutomationButtonBadgeAlert.
|
|
162
|
-
return ObcAutomationBadgeType.
|
|
163
|
-
} else if (this.badgeAlert === AutomationButtonBadgeAlert.
|
|
164
|
-
return ObcAutomationBadgeType.
|
|
165
|
-
} else if (this.badgeAlert === AutomationButtonBadgeAlert.
|
|
166
|
-
return ObcAutomationBadgeType.
|
|
167
|
-
} else if (this.badgeAlert === AutomationButtonBadgeAlert.
|
|
168
|
-
return ObcAutomationBadgeType.
|
|
169
|
-
} else if (this.badgeAlert === AutomationButtonBadgeAlert.
|
|
170
|
-
return ObcAutomationBadgeType.
|
|
161
|
+
} else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelCritical) {
|
|
162
|
+
return ObcAutomationBadgeType.LevelCritical;
|
|
163
|
+
} else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelHigh) {
|
|
164
|
+
return ObcAutomationBadgeType.LevelHigh;
|
|
165
|
+
} else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelMedium) {
|
|
166
|
+
return ObcAutomationBadgeType.LevelMedium;
|
|
167
|
+
} else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelLow) {
|
|
168
|
+
return ObcAutomationBadgeType.LevelLow;
|
|
169
|
+
} else if (this.badgeAlert === AutomationButtonBadgeAlert.LevelDiagnostic) {
|
|
170
|
+
return ObcAutomationBadgeType.LevelDiagnostic;
|
|
171
171
|
}
|
|
172
172
|
return null;
|
|
173
173
|
}
|
|
@@ -516,25 +516,25 @@ export const WithAlertCautionCompact: Story = {
|
|
|
516
516
|
},
|
|
517
517
|
};
|
|
518
518
|
|
|
519
|
-
export const
|
|
519
|
+
export const WithAlertLevelCritical: Story = {
|
|
520
520
|
...WithAlertAlarm,
|
|
521
521
|
args: {
|
|
522
522
|
type: TankType.atmospheric,
|
|
523
523
|
alert: true,
|
|
524
|
-
alertFrameStatus: ObcAlertFrameStatus.
|
|
524
|
+
alertFrameStatus: ObcAlertFrameStatus.LevelCritical,
|
|
525
525
|
alertFrameType: ObcAlertFrameType.SmallSideFlip,
|
|
526
|
-
badgeAlert: AutomationButtonBadgeAlert.
|
|
526
|
+
badgeAlert: AutomationButtonBadgeAlert.LevelCritical,
|
|
527
527
|
},
|
|
528
528
|
};
|
|
529
529
|
|
|
530
|
-
export const
|
|
530
|
+
export const WithAlertLevelDiagnostic: Story = {
|
|
531
531
|
...WithAlertAlarm,
|
|
532
532
|
args: {
|
|
533
533
|
type: TankType.atmospheric,
|
|
534
534
|
alert: true,
|
|
535
|
-
alertFrameStatus: ObcAlertFrameStatus.
|
|
535
|
+
alertFrameStatus: ObcAlertFrameStatus.LevelDiagnostic,
|
|
536
536
|
alertFrameType: ObcAlertFrameType.Regular,
|
|
537
|
-
badgeAlert: AutomationButtonBadgeAlert.
|
|
537
|
+
badgeAlert: AutomationButtonBadgeAlert.LevelDiagnostic,
|
|
538
538
|
},
|
|
539
539
|
};
|
|
540
540
|
|
|
@@ -311,16 +311,16 @@ export class ObcAutomationTank extends LitElement {
|
|
|
311
311
|
return ObcAutomationBadgeType.Warning;
|
|
312
312
|
case AutomationButtonBadgeAlert.Alarm:
|
|
313
313
|
return ObcAutomationBadgeType.Alarm;
|
|
314
|
-
case AutomationButtonBadgeAlert.
|
|
315
|
-
return ObcAutomationBadgeType.
|
|
316
|
-
case AutomationButtonBadgeAlert.
|
|
317
|
-
return ObcAutomationBadgeType.
|
|
318
|
-
case AutomationButtonBadgeAlert.
|
|
319
|
-
return ObcAutomationBadgeType.
|
|
320
|
-
case AutomationButtonBadgeAlert.
|
|
321
|
-
return ObcAutomationBadgeType.
|
|
322
|
-
case AutomationButtonBadgeAlert.
|
|
323
|
-
return ObcAutomationBadgeType.
|
|
314
|
+
case AutomationButtonBadgeAlert.LevelCritical:
|
|
315
|
+
return ObcAutomationBadgeType.LevelCritical;
|
|
316
|
+
case AutomationButtonBadgeAlert.LevelHigh:
|
|
317
|
+
return ObcAutomationBadgeType.LevelHigh;
|
|
318
|
+
case AutomationButtonBadgeAlert.LevelMedium:
|
|
319
|
+
return ObcAutomationBadgeType.LevelMedium;
|
|
320
|
+
case AutomationButtonBadgeAlert.LevelLow:
|
|
321
|
+
return ObcAutomationBadgeType.LevelLow;
|
|
322
|
+
case AutomationButtonBadgeAlert.LevelDiagnostic:
|
|
323
|
+
return ObcAutomationBadgeType.LevelDiagnostic;
|
|
324
324
|
default:
|
|
325
325
|
return null;
|
|
326
326
|
}
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
pointer-events: none;
|
|
208
208
|
|
|
209
209
|
/* z-index follows ALERT_SEVERITY_PRIORITY: more severe statuses stack on top. */
|
|
210
|
-
&.alert-
|
|
210
|
+
&.alert-level-critical {
|
|
211
211
|
z-index: 8;
|
|
212
212
|
}
|
|
213
213
|
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
z-index: 7;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
&.alert-
|
|
218
|
+
&.alert-level-high {
|
|
219
219
|
z-index: 6;
|
|
220
220
|
}
|
|
221
221
|
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
z-index: 5;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
&.alert-
|
|
226
|
+
&.alert-level-medium {
|
|
227
227
|
z-index: 4;
|
|
228
228
|
}
|
|
229
229
|
|
|
@@ -231,11 +231,11 @@
|
|
|
231
231
|
z-index: 3;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
&.alert-
|
|
234
|
+
&.alert-level-low {
|
|
235
235
|
z-index: 2;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
&.alert-
|
|
238
|
+
&.alert-level-diagnostic {
|
|
239
239
|
z-index: 1;
|
|
240
240
|
}
|
|
241
241
|
}
|
|
@@ -89,7 +89,7 @@ button {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.type-enhanced.alert-type-
|
|
92
|
+
.type-enhanced.alert-type-level-critical & {
|
|
93
93
|
@mixin style style=normal visibleWrapperClass=.blink;
|
|
94
94
|
@mixin style style=critical visibleWrapperClass=.visible-wrapper;
|
|
95
95
|
& .visible-wrapper {
|
|
@@ -97,7 +97,7 @@ button {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.type-enhanced.alert-type-
|
|
100
|
+
.type-enhanced.alert-type-level-high & {
|
|
101
101
|
@mixin style style=normal visibleWrapperClass=.blink;
|
|
102
102
|
@mixin style style=alarm visibleWrapperClass=.visible-wrapper;
|
|
103
103
|
& .visible-wrapper {
|
|
@@ -105,7 +105,7 @@ button {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
.type-enhanced.alert-type-
|
|
108
|
+
.type-enhanced.alert-type-level-medium & {
|
|
109
109
|
@mixin style style=normal visibleWrapperClass=.blink;
|
|
110
110
|
@mixin style style=warning visibleWrapperClass=.visible-wrapper;
|
|
111
111
|
& .visible-wrapper {
|
|
@@ -113,7 +113,7 @@ button {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.type-enhanced.alert-type-
|
|
116
|
+
.type-enhanced.alert-type-level-low & {
|
|
117
117
|
@mixin style style=normal visibleWrapperClass=.blink;
|
|
118
118
|
@mixin style style=caution visibleWrapperClass=.visible-wrapper;
|
|
119
119
|
& .visible-wrapper {
|
|
@@ -121,7 +121,7 @@ button {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
.type-enhanced.alert-type-
|
|
124
|
+
.type-enhanced.alert-type-level-diagnostic & {
|
|
125
125
|
@mixin style style=normal visibleWrapperClass=.blink;
|
|
126
126
|
@mixin style style=notification visibleWrapperClass=.visible-wrapper;
|
|
127
127
|
& .visible-wrapper {
|
|
@@ -168,7 +168,7 @@ button {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.blinking.alert-type-warning .alert-button,
|
|
171
|
-
.blinking.alert-type-
|
|
171
|
+
.blinking.alert-type-level-medium .alert-button {
|
|
172
172
|
.visible-wrapper {
|
|
173
173
|
opacity: var(--warning-blink-on);
|
|
174
174
|
}
|
|
@@ -178,7 +178,7 @@ button {
|
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
.blinking.alert-type-
|
|
181
|
+
.blinking.alert-type-level-critical .alert-button {
|
|
182
182
|
.visible-wrapper {
|
|
183
183
|
opacity: var(--critical-blink-on);
|
|
184
184
|
}
|
|
@@ -189,7 +189,7 @@ button {
|
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
.blinking.alert-type-alarm .alert-button,
|
|
192
|
-
.blinking.alert-type-
|
|
192
|
+
.blinking.alert-type-level-high .alert-button {
|
|
193
193
|
.visible-wrapper {
|
|
194
194
|
opacity: var(--alarm-blink-on);
|
|
195
195
|
}
|
|
@@ -200,7 +200,7 @@ button {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
.blinking.alert-type-caution .alert-button,
|
|
203
|
-
.blinking.alert-type-
|
|
203
|
+
.blinking.alert-type-level-low .alert-button {
|
|
204
204
|
.visible-wrapper {
|
|
205
205
|
opacity: var(--low-blink-on);
|
|
206
206
|
}
|
|
@@ -227,27 +227,27 @@ button {
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.alert-type-caution,
|
|
230
|
-
.alert-type-
|
|
230
|
+
.alert-type-level-low {
|
|
231
231
|
--icon-fill: var(--caution-enabled-background-color);
|
|
232
232
|
--icon-stroke: var(--caution-pressed-border-color);
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
.alert-type-
|
|
235
|
+
.alert-type-level-critical {
|
|
236
236
|
--icon-fill: var(--alert-critical-color);
|
|
237
237
|
--icon-stroke: var(--alert-critical-outline-color);
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
.alert-type-
|
|
240
|
+
.alert-type-level-high {
|
|
241
241
|
--icon-fill: var(--alarm-enabled-background-color);
|
|
242
242
|
--icon-stroke: var(--alarm-pressed-border-color);
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
.alert-type-
|
|
245
|
+
.alert-type-level-medium {
|
|
246
246
|
--icon-fill: var(--warning-enabled-background-color);
|
|
247
247
|
--icon-stroke: var(--warning-pressed-border-color);
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
.alert-type-
|
|
250
|
+
.alert-type-level-diagnostic {
|
|
251
251
|
--icon-fill: var(--alert-diagnostic-color);
|
|
252
252
|
--icon-stroke: var(--alert-diagnostic-outline-color);
|
|
253
253
|
}
|