@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.63 → 2.0.0-next.65
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 +392 -381
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +57 -199
- 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/components/navigation-item/navigation-item.d.ts +7 -7
- package/dist/components/navigation-item/navigation-item.d.ts.map +1 -1
- package/dist/components/navigation-item/navigation-item.js +3 -15
- package/dist/components/navigation-item/navigation-item.js.map +1 -1
- package/dist/components/navigation-item-group/navigation-item-group.d.ts +8 -7
- package/dist/components/navigation-item-group/navigation-item-group.d.ts.map +1 -1
- package/dist/components/navigation-item-group/navigation-item-group.js +3 -15
- package/dist/components/navigation-item-group/navigation-item-group.js.map +1 -1
- package/dist/components/navigation-menu/navigation-menu.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/tree-navigation-group/tree-navigation-group.d.ts +10 -10
- package/dist/components/tree-navigation-group/tree-navigation-group.d.ts.map +1 -1
- package/dist/components/tree-navigation-group/tree-navigation-group.js +3 -15
- package/dist/components/tree-navigation-group/tree-navigation-group.js.map +1 -1
- package/dist/components/tree-navigation-item/tree-navigation-item.css.js +13 -0
- package/dist/components/tree-navigation-item/tree-navigation-item.css.js.map +1 -1
- package/dist/components/tree-navigation-item/tree-navigation-item.d.ts +59 -8
- package/dist/components/tree-navigation-item/tree-navigation-item.d.ts.map +1 -1
- package/dist/components/tree-navigation-item/tree-navigation-item.js +46 -17
- package/dist/components/tree-navigation-item/tree-navigation-item.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/components/navigation-item/navigation-item.ts +8 -12
- package/src/components/navigation-item-group/navigation-item-group.ts +9 -12
- package/src/components/navigation-menu/navigation-menu.stories.ts +34 -6
- package/src/components/navigation-menu/navigation-menu.ts +2 -2
- package/src/components/tree-navigation/tree-navigation.stories.ts +154 -9
- package/src/components/tree-navigation-group/tree-navigation-group.ts +11 -15
- package/src/components/tree-navigation-item/tree-navigation-item.css +12 -0
- package/src/components/tree-navigation-item/tree-navigation-item.stories.ts +38 -15
- package/src/components/tree-navigation-item/tree-navigation-item.ts +98 -17
- 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
|
@@ -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
|
}
|
|
@@ -208,44 +208,44 @@ export const EnhancedCaution: Story = {
|
|
|
208
208
|
},
|
|
209
209
|
};
|
|
210
210
|
|
|
211
|
-
export const
|
|
211
|
+
export const EnhancedLevelCritical: Story = {
|
|
212
212
|
args: {
|
|
213
|
-
alertType: AlertType.
|
|
213
|
+
alertType: AlertType.LevelCritical,
|
|
214
214
|
type: ObcAlertButtonType.Enhanced,
|
|
215
215
|
nAlerts: 3,
|
|
216
216
|
blinking: true,
|
|
217
217
|
},
|
|
218
218
|
};
|
|
219
219
|
|
|
220
|
-
export const
|
|
220
|
+
export const NormalLevelHigh: Story = {
|
|
221
221
|
args: {
|
|
222
|
-
alertType: AlertType.
|
|
222
|
+
alertType: AlertType.LevelHigh,
|
|
223
223
|
type: ObcAlertButtonType.Normal,
|
|
224
224
|
nAlerts: 2,
|
|
225
225
|
blinking: true,
|
|
226
226
|
},
|
|
227
227
|
};
|
|
228
228
|
|
|
229
|
-
export const
|
|
229
|
+
export const NormalLevelMedium: Story = {
|
|
230
230
|
args: {
|
|
231
|
-
alertType: AlertType.
|
|
231
|
+
alertType: AlertType.LevelMedium,
|
|
232
232
|
type: ObcAlertButtonType.Normal,
|
|
233
233
|
nAlerts: 1,
|
|
234
234
|
blinking: true,
|
|
235
235
|
},
|
|
236
236
|
};
|
|
237
237
|
|
|
238
|
-
export const
|
|
238
|
+
export const FlatLevelLow: Story = {
|
|
239
239
|
args: {
|
|
240
|
-
alertType: AlertType.
|
|
240
|
+
alertType: AlertType.LevelLow,
|
|
241
241
|
type: ObcAlertButtonType.Flat,
|
|
242
242
|
nAlerts: 1,
|
|
243
243
|
},
|
|
244
244
|
};
|
|
245
245
|
|
|
246
|
-
export const
|
|
246
|
+
export const NormalLevelDiagnostic: Story = {
|
|
247
247
|
args: {
|
|
248
|
-
alertType: AlertType.
|
|
248
|
+
alertType: AlertType.LevelDiagnostic,
|
|
249
249
|
type: ObcAlertButtonType.Normal,
|
|
250
250
|
nAlerts: 1,
|
|
251
251
|
},
|
|
@@ -44,35 +44,35 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
&.alarm,
|
|
47
|
-
&.
|
|
47
|
+
&.level-high {
|
|
48
48
|
--bg-color: var(--alert-alarm-color);
|
|
49
49
|
color: var(--on-alarm-active-color);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
&.warning,
|
|
53
|
-
&.
|
|
53
|
+
&.level-medium {
|
|
54
54
|
--bg-color: var(--alert-warning-color);
|
|
55
55
|
--blink-on: var(--warning-blink-on);
|
|
56
56
|
color: var(--on-warning-active-color);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&.caution,
|
|
60
|
-
&.
|
|
60
|
+
&.level-low {
|
|
61
61
|
--bg-color: var(--alert-caution-color);
|
|
62
62
|
--blink-on: 1;
|
|
63
63
|
color: var(--on-caution-active-color);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
&.
|
|
66
|
+
&.level-low {
|
|
67
67
|
--blink-on: var(--low-blink-on);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
&.
|
|
70
|
+
&.level-critical {
|
|
71
71
|
--bg-color: var(--critical-enabled-background-color);
|
|
72
72
|
color: var(--on-critical-active-color);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
&.
|
|
75
|
+
&.level-diagnostic {
|
|
76
76
|
--bg-color: var(--notification-enabled-background-color);
|
|
77
77
|
color: var(--on-notification-active-color);
|
|
78
78
|
}
|
|
@@ -220,33 +220,33 @@ export const AlarmThickTopFlipNoIcons: Story = {
|
|
|
220
220
|
render: AlarmThickTopFlip.render,
|
|
221
221
|
};
|
|
222
222
|
|
|
223
|
-
export const
|
|
223
|
+
export const LevelCritical: Story = {
|
|
224
224
|
args: {
|
|
225
|
-
status: ObcAlertFrameStatus.
|
|
225
|
+
status: ObcAlertFrameStatus.LevelCritical,
|
|
226
226
|
},
|
|
227
227
|
};
|
|
228
228
|
|
|
229
|
-
export const
|
|
229
|
+
export const LevelHigh: Story = {
|
|
230
230
|
args: {
|
|
231
|
-
status: ObcAlertFrameStatus.
|
|
231
|
+
status: ObcAlertFrameStatus.LevelHigh,
|
|
232
232
|
},
|
|
233
233
|
};
|
|
234
234
|
|
|
235
|
-
export const
|
|
235
|
+
export const LevelMedium: Story = {
|
|
236
236
|
args: {
|
|
237
|
-
status: ObcAlertFrameStatus.
|
|
237
|
+
status: ObcAlertFrameStatus.LevelMedium,
|
|
238
238
|
},
|
|
239
239
|
};
|
|
240
240
|
|
|
241
|
-
export const
|
|
241
|
+
export const LevelLow: Story = {
|
|
242
242
|
args: {
|
|
243
|
-
status: ObcAlertFrameStatus.
|
|
243
|
+
status: ObcAlertFrameStatus.LevelLow,
|
|
244
244
|
},
|
|
245
245
|
};
|
|
246
246
|
|
|
247
|
-
export const
|
|
247
|
+
export const LevelDiagnostic: Story = {
|
|
248
248
|
args: {
|
|
249
|
-
status: ObcAlertFrameStatus.
|
|
249
|
+
status: ObcAlertFrameStatus.LevelDiagnostic,
|
|
250
250
|
},
|
|
251
251
|
};
|
|
252
252
|
|
|
@@ -87,7 +87,7 @@ export interface AlertFrameConfig {
|
|
|
87
87
|
* - `large-side-flip`: Adds a larger, vertical side flap with a status icon and optional custom icon.
|
|
88
88
|
* - `bottom-flip`: Adds a bottom flap with a status icon, label, and timer slots.
|
|
89
89
|
* - **Thickness options:** Choose between `small` (thin border) and `large` (thick border) for visual emphasis.
|
|
90
|
-
* - **Status indication:** Displays different color schemes and icons for the legacy statuses (`alarm`, `warning`, `caution`) and the
|
|
90
|
+
* - **Status indication:** Displays different color schemes and icons for the legacy statuses (`alarm`, `warning`, `caution`) and the level statuses (`level-critical`, `level-high`, `level-medium`, `level-low`, `level-diagnostic`).
|
|
91
91
|
* - **Acknowledgement mode:** The `mode` property reflects the alert lifecycle state — `acked-active` (default), `unacked-active`, and `unacked-rectified` — driving the blinking/animation treatment of the frame.
|
|
92
92
|
* - **Content wrapping:** When `wrapContent` is true, the frame wraps and sizes itself to its slotted content rather than overlaying a fixed region.
|
|
93
93
|
* - **Customizable corners:** Each corner can be set to a sharp (non-rounded) edge for integration with other UI elements.
|
|
@@ -105,7 +105,7 @@ export interface AlertFrameConfig {
|
|
|
105
105
|
* - `large-side-flip`: Large vertical right-side flap with status icon and optional custom icon.
|
|
106
106
|
* - `bottom-flip`: Bottom flap with status icon, label, and timer.
|
|
107
107
|
* - **Thickness:** `small` (default) or `large` for border width.
|
|
108
|
-
* - **Status:** `alarm`, `warning`, `caution`, or the
|
|
108
|
+
* - **Status:** `alarm`, `warning`, `caution`, or the level severities (`level-critical`, `level-high`, `level-medium`, `level-low`, `level-diagnostic`)—affects color and icon.
|
|
109
109
|
* - **Mode:** `acked-active` (default), `unacked-active`, or `unacked-rectified`—affects blinking/animation.
|
|
110
110
|
* - **Corner Customization:** Each corner can be made sharp (not rounded) via boolean properties.
|
|
111
111
|
*
|
|
@@ -121,7 +121,7 @@ export interface AlertFrameConfig {
|
|
|
121
121
|
* ### Properties and Attributes
|
|
122
122
|
* - `type`: Selects the visual variant/flap style. Default is `small-side-flip`.
|
|
123
123
|
* - `thickness`: Controls border thickness (`small` or `large`). Default is `small`.
|
|
124
|
-
* - `status`: Sets the alert status and color/icon (`alarm`, `warning`, `caution`, or the `
|
|
124
|
+
* - `status`: Sets the alert status and color/icon (`alarm`, `warning`, `caution`, or the `level-*` severities). Default is `alarm`.
|
|
125
125
|
* - `mode`: Acknowledgement lifecycle state (`acked-active`, `unacked-active`, `unacked-rectified`) controlling blinking/animation. Default is `acked-active`.
|
|
126
126
|
* - `wrapContent`: When true, the frame wraps and sizes to its slotted content instead of overlaying a fixed region. Default is `false`.
|
|
127
127
|
* - `sharpEdgeTopLeft`, `sharpEdgeTopRight`, `sharpEdgeBottomLeft`, `sharpEdgeBottomRight`: Boolean flags to make each corner sharp instead of rounded.
|
|
@@ -179,7 +179,7 @@ export class ObcAlertFrame extends LitElement {
|
|
|
179
179
|
* - `alarm`: Highest severity (default).
|
|
180
180
|
* - `warning`: Medium severity.
|
|
181
181
|
* - `caution`: Lower severity.
|
|
182
|
-
* - `
|
|
182
|
+
* - `level-critical`, `level-high`, `level-medium`, `level-low`, `level-diagnostic`: level severity levels, styled to match their legacy equivalents.
|
|
183
183
|
*/
|
|
184
184
|
@property({type: String}) status: AlertType = AlertType.Alarm;
|
|
185
185
|
|
|
@@ -98,42 +98,42 @@ export const AlarmOutline: Story = {
|
|
|
98
98
|
},
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
export const
|
|
101
|
+
export const LevelCritical: Story = {
|
|
102
102
|
args: {
|
|
103
|
-
type: AlertType.
|
|
103
|
+
type: AlertType.LevelCritical,
|
|
104
104
|
acknowledged: false,
|
|
105
105
|
active: true,
|
|
106
106
|
outline: true,
|
|
107
107
|
},
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
export const
|
|
110
|
+
export const LevelHigh: Story = {
|
|
111
111
|
args: {
|
|
112
|
-
type: AlertType.
|
|
112
|
+
type: AlertType.LevelHigh,
|
|
113
113
|
acknowledged: false,
|
|
114
114
|
active: true,
|
|
115
115
|
},
|
|
116
116
|
};
|
|
117
117
|
|
|
118
|
-
export const
|
|
118
|
+
export const LevelMedium: Story = {
|
|
119
119
|
args: {
|
|
120
|
-
type: AlertType.
|
|
120
|
+
type: AlertType.LevelMedium,
|
|
121
121
|
acknowledged: false,
|
|
122
122
|
active: true,
|
|
123
123
|
},
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
export const
|
|
126
|
+
export const LevelLow: Story = {
|
|
127
127
|
args: {
|
|
128
|
-
type: AlertType.
|
|
128
|
+
type: AlertType.LevelLow,
|
|
129
129
|
acknowledged: false,
|
|
130
130
|
active: true,
|
|
131
131
|
},
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
-
export const
|
|
134
|
+
export const LevelDiagnostic: Story = {
|
|
135
135
|
args: {
|
|
136
|
-
type: AlertType.
|
|
136
|
+
type: AlertType.LevelDiagnostic,
|
|
137
137
|
acknowledged: false,
|
|
138
138
|
active: true,
|
|
139
139
|
},
|
|
@@ -112,7 +112,7 @@ export class ObcAlertIcon extends LitElement {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
get icon() {
|
|
115
|
-
if (this.type === AlertType.
|
|
115
|
+
if (this.type === AlertType.LevelCritical) {
|
|
116
116
|
return mapping[AlertIconName.Critical];
|
|
117
117
|
} else if (this.bamType === AlertType.Alarm) {
|
|
118
118
|
if (this.active === false) {
|
|
@@ -153,10 +153,10 @@ export class ObcAlertIcon extends LitElement {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
private renderStaticIcon(): TemplateResult | typeof nothing {
|
|
156
|
-
if (this.type === AlertType.Caution || this.type === AlertType.
|
|
156
|
+
if (this.type === AlertType.Caution || this.type === AlertType.LevelLow) {
|
|
157
157
|
return html`<obi-caution-color-iec usecsscolor></obi-caution-color-iec>`;
|
|
158
158
|
}
|
|
159
|
-
if (this.type === AlertType.
|
|
159
|
+
if (this.type === AlertType.LevelDiagnostic) {
|
|
160
160
|
return html`<obi-diagnostic-badge
|
|
161
161
|
style="color: var(--alert-diagnostic-color);"
|
|
162
162
|
></obi-diagnostic-badge>`;
|
|
@@ -171,7 +171,7 @@ export class ObcAlertIcon extends LitElement {
|
|
|
171
171
|
if (this.outline) {
|
|
172
172
|
return html`<div class="wrapper">${this.renderOutlineIcon()}</div>`;
|
|
173
173
|
}
|
|
174
|
-
if (supportsBlinking(this.type) && !(this.type === AlertType.
|
|
174
|
+
if (supportsBlinking(this.type) && !(this.type === AlertType.LevelLow)) {
|
|
175
175
|
const icons = this.icon;
|
|
176
176
|
if (!icons) {
|
|
177
177
|
throw new Error('No icon found');
|