@oicl/openbridge-webcomponents 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/.storybook/main.ts +2 -0
- package/.storybook/preview.ts +11 -0
- package/.vscode/launch.json +16 -0
- package/README.md +8 -0
- package/__snapshots__/alert-icon--primary.png +0 -0
- package/__snapshots__/application-alert-button--notification.png +0 -0
- package/__snapshots__/application-alert-button--running.png +0 -0
- package/__snapshots__/application-notification-message--large-single-message.png +0 -0
- package/__snapshots__/application-notification-message--large.png +0 -0
- package/__snapshots__/application-notification-message--primary.png +0 -0
- package/__snapshots__/button-rich-button--bottom-with-boarder.png +0 -0
- package/__snapshots__/button-rich-button--bottom.png +0 -0
- package/__snapshots__/button-rich-button--center.png +0 -0
- package/__snapshots__/button-rich-button--double-line.png +0 -0
- package/__snapshots__/button-rich-button--multi-line.png +0 -0
- package/__snapshots__/button-rich-button--regular-no-icons.png +0 -0
- package/__snapshots__/button-rich-button--regular.png +0 -0
- package/__snapshots__/button-rich-button--single-line.png +0 -0
- package/__snapshots__/button-rich-button--top-with-boarder.png +0 -0
- package/__snapshots__/button-rich-button--top.png +0 -0
- package/__snapshots__/button-rich-button--with-graphic-border.png +0 -0
- package/__snapshots__/button-rich-button--with-graphic.png +0 -0
- package/__snapshots__/button-rich-button--with-status.png +0 -0
- package/__snapshots__/button-vendor-button--primary.png +0 -0
- package/__snapshots__/icons-icon--list.png +0 -0
- package/__snapshots__/icons-icon--use-font-color.png +0 -0
- package/custom-elements.json +2331 -745
- package/dist/components/alert-button/alert-button.css.js +4 -12
- package/dist/components/alert-button/alert-button.css.js.map +1 -1
- package/dist/components/alert-button/alert-button.d.ts +11 -1
- package/dist/components/alert-button/alert-button.d.ts.map +1 -1
- package/dist/components/alert-button/alert-button.js +21 -1
- package/dist/components/alert-button/alert-button.js.map +1 -1
- package/dist/components/alert-icon/alert-icon.d.ts +36 -0
- package/dist/components/alert-icon/alert-icon.d.ts.map +1 -0
- package/dist/components/alert-icon/alert-icon.js +84 -0
- package/dist/components/alert-icon/alert-icon.js.map +1 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-silenced-a.d.ts +2 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-silenced-a.d.ts.map +1 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-silenced-a.js +13 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-silenced-a.js.map +1 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-silenced-b.d.ts +2 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-silenced-b.d.ts.map +1 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-silenced-b.js +20 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-silenced-b.js.map +1 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-unack-a.d.ts +2 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-unack-a.d.ts.map +1 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-unack-a.js +12 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-unack-a.js.map +1 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-unack-b.d.ts +2 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-unack-b.d.ts.map +1 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-unack-b.js +19 -0
- package/dist/components/alert-icon/icons/icon-14-alarm-unack-b.js.map +1 -0
- package/dist/components/alert-icon/icons/icon-14-warning-unack-a.d.ts +2 -0
- package/dist/components/alert-icon/icons/icon-14-warning-unack-a.d.ts.map +1 -0
- package/dist/components/alert-icon/icons/icon-14-warning-unack-a.js +12 -0
- package/dist/components/alert-icon/icons/icon-14-warning-unack-a.js.map +1 -0
- package/dist/components/alert-icon/icons/icon-14-warning-unack-b.d.ts +2 -0
- package/dist/components/alert-icon/icons/icon-14-warning-unack-b.d.ts.map +1 -0
- package/dist/components/alert-icon/icons/icon-14-warning-unack-b.js +12 -0
- package/dist/components/alert-icon/icons/icon-14-warning-unack-b.js.map +1 -0
- package/dist/components/alert-topbar-element/alert-topbar-element.d.ts +13 -0
- package/dist/components/alert-topbar-element/alert-topbar-element.d.ts.map +1 -1
- package/dist/components/alert-topbar-element/alert-topbar-element.js +10 -0
- package/dist/components/alert-topbar-element/alert-topbar-element.js.map +1 -1
- package/dist/components/rich-button/rich-button.css.js +182 -0
- package/dist/components/rich-button/rich-button.css.js.map +1 -0
- package/dist/components/rich-button/rich-button.d.ts +32 -0
- package/dist/components/rich-button/rich-button.d.ts.map +1 -0
- package/dist/components/rich-button/rich-button.js +113 -0
- package/dist/components/rich-button/rich-button.js.map +1 -0
- package/dist/components/vendor-button/vendor-button.css.js +48 -0
- package/dist/components/vendor-button/vendor-button.css.js.map +1 -0
- package/dist/components/vendor-button/vendor-button.d.ts +13 -0
- package/dist/components/vendor-button/vendor-button.d.ts.map +1 -0
- package/dist/components/vendor-button/vendor-button.js +42 -0
- package/dist/components/vendor-button/vendor-button.js.map +1 -0
- package/dist/icons/{icon-07-target-radar.d.ts → icon-01-content-copy.d.ts} +3 -3
- package/dist/icons/{icon-07-target-radar.d.ts.map → icon-01-content-copy.d.ts.map} +1 -1
- package/dist/icons/{icon-07-target-radar.js → icon-01-content-copy.js} +10 -10
- package/dist/icons/icon-01-content-copy.js.map +1 -0
- package/dist/icons/{icon-07-target-ias-selected.d.ts → icon-01-content-cut.d.ts} +3 -3
- package/dist/icons/icon-01-content-cut.d.ts.map +1 -0
- package/dist/icons/icon-01-content-cut.js +52 -0
- package/dist/icons/icon-01-content-cut.js.map +1 -0
- package/dist/icons/{icon-07-target-radar-selected.d.ts → icon-01-content-paste.d.ts} +3 -3
- package/dist/icons/icon-01-content-paste.d.ts.map +1 -0
- package/dist/icons/icon-01-content-paste.js +52 -0
- package/dist/icons/icon-01-content-paste.js.map +1 -0
- package/dist/icons/icon-02-dock-bottom.d.ts +14 -0
- package/dist/icons/icon-02-dock-bottom.d.ts.map +1 -0
- package/dist/icons/icon-02-dock-bottom.js +52 -0
- package/dist/icons/icon-02-dock-bottom.js.map +1 -0
- package/dist/icons/{icon-07-target-ias.d.ts → icon-02-dock-left.d.ts} +3 -3
- package/dist/icons/icon-02-dock-left.d.ts.map +1 -0
- package/dist/icons/{icon-07-target-ias.js → icon-02-dock-left.js} +10 -24
- package/dist/icons/icon-02-dock-left.js.map +1 -0
- package/dist/icons/icon-02-dock-right.d.ts +14 -0
- package/dist/icons/icon-02-dock-right.d.ts.map +1 -0
- package/dist/icons/icon-02-dock-right.js +52 -0
- package/dist/icons/icon-02-dock-right.js.map +1 -0
- package/dist/icons/icon-03-license.d.ts +14 -0
- package/dist/icons/icon-03-license.d.ts.map +1 -0
- package/dist/icons/icon-03-license.js +52 -0
- package/dist/icons/icon-03-license.js.map +1 -0
- package/dist/icons/icon-03-star-unchecked.js +1 -1
- package/dist/icons/icon-03-star-unchecked.js.map +1 -1
- package/dist/icons/icon-04-colorcalibrated.d.ts.map +1 -1
- package/dist/icons/icon-04-colorcalibrated.js +2 -14
- package/dist/icons/icon-04-colorcalibrated.js.map +1 -1
- package/dist/icons/icon-07-target-associated-ais-camera.d.ts +14 -0
- package/dist/icons/icon-07-target-associated-ais-camera.d.ts.map +1 -0
- package/dist/icons/icon-07-target-associated-ais-camera.js +54 -0
- package/dist/icons/icon-07-target-associated-ais-camera.js.map +1 -0
- package/dist/icons/icon-07-target-associated-camera-radar.d.ts +14 -0
- package/dist/icons/icon-07-target-associated-camera-radar.d.ts.map +1 -0
- package/dist/icons/icon-07-target-associated-camera-radar.js +52 -0
- package/dist/icons/icon-07-target-associated-camera-radar.js.map +1 -0
- package/dist/icons/icon-07-target-associated-radar-camera.d.ts +14 -0
- package/dist/icons/icon-07-target-associated-radar-camera.d.ts.map +1 -0
- package/dist/icons/icon-07-target-associated-radar-camera.js +54 -0
- package/dist/icons/icon-07-target-associated-radar-camera.js.map +1 -0
- package/dist/icons/icon-07-target-camera.d.ts +14 -0
- package/dist/icons/icon-07-target-camera.d.ts.map +1 -0
- package/dist/icons/icon-07-target-camera.js +52 -0
- package/dist/icons/icon-07-target-camera.js.map +1 -0
- package/dist/icons/icon-08-backward-fast.js +1 -1
- package/dist/icons/icon-08-backward-fast.js.map +1 -1
- package/dist/icons/icon-08-backward-stopped.js +1 -1
- package/dist/icons/icon-08-backward-stopped.js.map +1 -1
- package/dist/icons/icon-08-forward-fast.js +1 -1
- package/dist/icons/icon-08-forward-fast.js.map +1 -1
- package/dist/icons/icon-08-forward-stopped.js +1 -1
- package/dist/icons/icon-08-forward-stopped.js.map +1 -1
- package/dist/icons/icon-08-motor-off-horisontal.js +1 -1
- package/dist/icons/icon-08-motor-off-horisontal.js.map +1 -1
- package/dist/icons/icon-09-switch-horizontal-off-large.js +1 -1
- package/dist/icons/icon-09-switch-horizontal-off-large.js.map +1 -1
- package/dist/icons/icon-09-switch-horizontal-off.js +1 -1
- package/dist/icons/icon-09-switch-horizontal-off.js.map +1 -1
- package/dist/icons/icon-10-autonomous.js +3 -3
- package/dist/icons/icon-10-autonomous.js.map +1 -1
- package/dist/icons/icon-14-alert-rectified.js +1 -1
- package/dist/icons/icon-14-alert-rectified.js.map +1 -1
- package/dist/icons/icon-14-alertheader-aggregated-large.d.ts +14 -0
- package/dist/icons/icon-14-alertheader-aggregated-large.d.ts.map +1 -0
- package/dist/icons/icon-14-alertheader-aggregated-large.js +52 -0
- package/dist/icons/icon-14-alertheader-aggregated-large.js.map +1 -0
- package/dist/icons/icon-14-alertheader-group-large.d.ts +14 -0
- package/dist/icons/icon-14-alertheader-group-large.d.ts.map +1 -0
- package/dist/icons/icon-14-alertheader-group-large.js +54 -0
- package/dist/icons/icon-14-alertheader-group-large.js.map +1 -0
- package/dist/icons/icon-14-exclamationmark.js +4 -4
- package/dist/icons/icon-14-exclamationmark.js.map +1 -1
- package/dist/icons/icon-14-rectified.js +1 -1
- package/dist/icons/icon-14-rectified.js.map +1 -1
- package/dist/icons/icon-18-ais-anchored.js +4 -4
- package/dist/icons/icon-18-ais-anchored.js.map +1 -1
- package/dist/icons/icon-18-ais-notunderway.js +1 -1
- package/dist/icons/icon-18-ais-notunderway.js.map +1 -1
- package/dist/icons/icon-iec-02-ais-target-activated-selected.d.ts +14 -0
- package/dist/icons/icon-iec-02-ais-target-activated-selected.d.ts.map +1 -0
- package/dist/icons/icon-iec-02-ais-target-activated-selected.js +52 -0
- package/dist/icons/icon-iec-02-ais-target-activated-selected.js.map +1 -0
- package/dist/icons/icon-iec-02-ais-target-activated.d.ts +14 -0
- package/dist/icons/icon-iec-02-ais-target-activated.d.ts.map +1 -0
- package/dist/icons/icon-iec-02-ais-target-activated.js +52 -0
- package/dist/icons/icon-iec-02-ais-target-activated.js.map +1 -0
- package/dist/icons/icon-iec-02-associated-target-ais.d.ts +14 -0
- package/dist/icons/icon-iec-02-associated-target-ais.d.ts.map +1 -0
- package/dist/icons/icon-iec-02-associated-target-ais.js +52 -0
- package/dist/icons/icon-iec-02-associated-target-ais.js.map +1 -0
- package/dist/icons/icon-iec-02-associated-target-radar.d.ts +14 -0
- package/dist/icons/icon-iec-02-associated-target-radar.d.ts.map +1 -0
- package/dist/icons/icon-iec-02-associated-target-radar.js +52 -0
- package/dist/icons/icon-iec-02-associated-target-radar.js.map +1 -0
- package/dist/icons/icon-iec-02-radar-target-tracked-selected.d.ts +14 -0
- package/dist/icons/icon-iec-02-radar-target-tracked-selected.d.ts.map +1 -0
- package/dist/icons/icon-iec-02-radar-target-tracked-selected.js +60 -0
- package/dist/icons/icon-iec-02-radar-target-tracked-selected.js.map +1 -0
- package/dist/icons/icon-iec-02-radar-target-tracked.d.ts +14 -0
- package/dist/icons/icon-iec-02-radar-target-tracked.d.ts.map +1 -0
- package/dist/icons/icon-iec-02-radar-target-tracked.js +52 -0
- package/dist/icons/icon-iec-02-radar-target-tracked.js.map +1 -0
- package/dist/icons/index.d.ts +19 -4
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +19 -4
- package/dist/icons/index.js.map +1 -1
- package/dist/icons/names.d.ts.map +1 -1
- package/dist/icons/names.js +19 -4
- package/dist/icons/names.js.map +1 -1
- package/dist/navigation-instruments/thruster/thruster.d.ts +2 -1
- package/dist/navigation-instruments/thruster/thruster.d.ts.map +1 -1
- package/dist/navigation-instruments/thruster/thruster.js +45 -25
- package/dist/navigation-instruments/thruster/thruster.js.map +1 -1
- package/fix-generated.cjs +3 -0
- package/new-component.ts +7 -8
- package/package.json +5 -1
- package/script/convert-icons.ts +177 -0
- package/script/download-alert-icons.ts +180 -0
- package/script/download-icons.ts +7 -141
- package/src/components/alert-button/alert-button.css +1 -12
- package/src/components/alert-button/alert-button.stories.ts +2 -0
- package/src/components/alert-button/alert-button.ts +29 -4
- package/src/components/alert-icon/alert-icon.stories.ts +35 -0
- package/src/components/alert-icon/alert-icon.ts +75 -0
- package/src/components/alert-icon/icons/icon-14-alarm-silenced-a.ts +9 -0
- package/src/components/alert-icon/icons/icon-14-alarm-silenced-b.ts +16 -0
- package/src/components/alert-icon/icons/icon-14-alarm-unack-a.ts +8 -0
- package/src/components/alert-icon/icons/icon-14-alarm-unack-b.ts +15 -0
- package/src/components/alert-icon/icons/icon-14-warning-unack-a.ts +8 -0
- package/src/components/alert-icon/icons/icon-14-warning-unack-b.ts +8 -0
- package/src/components/alert-topbar-element/alert-topbar-element.stories.ts +4 -0
- package/src/components/alert-topbar-element/alert-topbar-element.ts +17 -0
- package/src/components/notification-message/notification-message.stories.ts +26 -10
- package/src/components/rich-button/rich-button.css +118 -0
- package/src/components/rich-button/rich-button.stories.ts +196 -0
- package/src/components/rich-button/rich-button.ts +95 -0
- package/src/components/vendor-button/vendor-button.css +10 -0
- package/src/components/vendor-button/vendor-button.stories.ts +19 -0
- package/src/components/vendor-button/vendor-button.ts +25 -0
- package/src/icons/icon-01-content-copy.ts +40 -0
- package/src/icons/icon-01-content-cut.ts +40 -0
- package/src/icons/icon-01-content-paste.ts +40 -0
- package/src/icons/icon-02-dock-bottom.ts +40 -0
- package/src/icons/icon-02-dock-left.ts +40 -0
- package/src/icons/icon-02-dock-right.ts +40 -0
- package/src/icons/icon-03-license.ts +40 -0
- package/src/icons/icon-03-star-unchecked.ts +1 -1
- package/src/icons/icon-04-colorcalibrated.ts +2 -14
- package/src/icons/icon-07-target-associated-ais-camera.ts +42 -0
- package/src/icons/icon-07-target-associated-camera-radar.ts +40 -0
- package/src/icons/icon-07-target-associated-radar-camera.ts +42 -0
- package/src/icons/icon-07-target-camera.ts +40 -0
- package/src/icons/icon-08-backward-fast.ts +1 -1
- package/src/icons/icon-08-backward-stopped.ts +1 -1
- package/src/icons/icon-08-forward-fast.ts +1 -1
- package/src/icons/icon-08-forward-stopped.ts +1 -1
- package/src/icons/icon-08-motor-off-horisontal.ts +1 -1
- package/src/icons/icon-09-switch-horizontal-off-large.ts +1 -1
- package/src/icons/icon-09-switch-horizontal-off.ts +1 -1
- package/src/icons/icon-10-autonomous.ts +3 -3
- package/src/icons/icon-14-alert-rectified.ts +1 -1
- package/src/icons/icon-14-alertheader-aggregated-large.ts +40 -0
- package/src/icons/icon-14-alertheader-group-large.ts +42 -0
- package/src/icons/icon-14-exclamationmark.ts +4 -4
- package/src/icons/icon-14-rectified.ts +1 -1
- package/src/icons/icon-18-ais-anchored.ts +4 -4
- package/src/icons/icon-18-ais-notunderway.ts +1 -1
- package/src/icons/icon-iec-02-ais-target-activated-selected.ts +40 -0
- package/src/icons/icon-iec-02-ais-target-activated.ts +40 -0
- package/src/icons/icon-iec-02-associated-target-ais.ts +40 -0
- package/src/icons/icon-iec-02-associated-target-radar.ts +40 -0
- package/src/icons/icon-iec-02-radar-target-tracked-selected.ts +48 -0
- package/src/icons/icon-iec-02-radar-target-tracked.ts +40 -0
- package/src/icons/index.ts +19 -4
- package/src/icons/names.ts +19 -4
- package/src/icons.stories.ts +78 -0
- package/src/navigation-instruments/thruster/thruster.stories.ts +18 -1
- package/src/navigation-instruments/thruster/thruster.ts +43 -27
- package/dist/icons/icon-07-target-ias-selected.d.ts.map +0 -1
- package/dist/icons/icon-07-target-ias-selected.js +0 -60
- package/dist/icons/icon-07-target-ias-selected.js.map +0 -1
- package/dist/icons/icon-07-target-ias.d.ts.map +0 -1
- package/dist/icons/icon-07-target-ias.js.map +0 -1
- package/dist/icons/icon-07-target-radar-selected.d.ts.map +0 -1
- package/dist/icons/icon-07-target-radar-selected.js +0 -60
- package/dist/icons/icon-07-target-radar-selected.js.map +0 -1
- package/dist/icons/icon-07-target-radar.js.map +0 -1
- package/src/icons/icon-07-target-ias-selected.ts +0 -48
- package/src/icons/icon-07-target-ias.ts +0 -54
- package/src/icons/icon-07-target-radar-selected.ts +0 -48
- package/src/icons/icon-07-target-radar.ts +0 -40
@@ -44,10 +44,6 @@ const compentStyle = css`* {
|
|
44
44
|
padding-right: 8px;
|
45
45
|
}
|
46
46
|
|
47
|
-
.wrapper .badge {
|
48
|
-
color: var(--on-normal-active-color, #1A1A1A);
|
49
|
-
}
|
50
|
-
|
51
47
|
.wrapper .icon {
|
52
48
|
height: 24px;
|
53
49
|
width: 24px;
|
@@ -71,6 +67,10 @@ const compentStyle = css`* {
|
|
71
67
|
border-radius: 0 6px 6px 0;
|
72
68
|
}
|
73
69
|
|
70
|
+
.wrapper.type-alarm {
|
71
|
+
color: var(--on-alarm-active-color);
|
72
|
+
}
|
73
|
+
|
74
74
|
.wrapper.type-alarm {
|
75
75
|
cursor: pointer;
|
76
76
|
}
|
@@ -115,14 +115,6 @@ const compentStyle = css`* {
|
|
115
115
|
color: var(--on-alarm-disabled-color);
|
116
116
|
}
|
117
117
|
|
118
|
-
.wrapper.type-alarm .visible-wrapper {
|
119
|
-
color: var(--on-alarm-active-color, #FFF);
|
120
|
-
}
|
121
|
-
|
122
|
-
.wrapper.type-alarm .visible-wrapper .badge {
|
123
|
-
color: var(--on-alarm-active-color, #FFF);
|
124
|
-
}
|
125
|
-
|
126
118
|
.wrapper.type-warning {
|
127
119
|
cursor: pointer;
|
128
120
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"alert-button.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"alert-button.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -2,7 +2,15 @@ import { LitElement } from 'lit';
|
|
2
2
|
import '../../icons/icon-14-alerts';
|
3
3
|
import { AlertType } from '../../types';
|
4
4
|
/**
|
5
|
-
*
|
5
|
+
* Button used for alerts and notification
|
6
|
+
*
|
7
|
+
* @prop {number} nAlerts - Number of alerts.
|
8
|
+
* @prop {AlertType} alertType - Type of alert.
|
9
|
+
* @prop {boolean} standalone - If the button is standalone and not used together with an notification-message.
|
10
|
+
* @prop {boolean} counter - If the button should display a counter.
|
11
|
+
* @prop {boolean} blinkAlarmValue - This value should alternate between true and false to make the icon blink.
|
12
|
+
* It should be synchronized with the blinkValue of other alarms.
|
13
|
+
* @prop {boolean} blinkWarningValue - This value should alternate between true and false to make the icon blink.
|
6
14
|
*
|
7
15
|
* @fires click - Fires when the button is clicked.
|
8
16
|
*/
|
@@ -11,6 +19,8 @@ export declare class ObcAlertButton extends LitElement {
|
|
11
19
|
alertType: AlertType;
|
12
20
|
standalone: boolean;
|
13
21
|
counter: boolean;
|
22
|
+
blinkAlarmValue: boolean;
|
23
|
+
blinkWarningValue: boolean;
|
14
24
|
render(): import("lit-html").TemplateResult<1>;
|
15
25
|
static styles: import("lit").CSSResult;
|
16
26
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"alert-button.d.ts","sourceRoot":"","sources":["../../../src/components/alert-button/alert-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGhD,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"alert-button.d.ts","sourceRoot":"","sources":["../../../src/components/alert-button/alert-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGhD,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAGtC;;;;;;;;;;;;GAYG;AACH,qBACa,cAAe,SAAQ,UAAU;IACK,OAAO,SAAK;IACV,SAAS,YAAkB;IACnD,UAAU,UAAS;IACnB,OAAO,UAAS;IACgB,eAAe,UAClE;IAER,iBAAiB,UAAS;IAEjB,MAAM;IA6Bf,OAAgB,MAAM,0BAA2B;CAClD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,cAAc,CAAC;KACpC;CACF"}
|
@@ -3,6 +3,7 @@ import { property, customElement } from "lit/decorators.js";
|
|
3
3
|
import compentStyle from "./alert-button.css.js";
|
4
4
|
import "../../icons/icon-14-alerts.js";
|
5
5
|
import { AlertType } from "../../types.js";
|
6
|
+
import { classMap } from "lit/directives/class-map.js";
|
6
7
|
var __defProp = Object.defineProperty;
|
7
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
8
9
|
var __decorateClass = (decorators, target, key, kind) => {
|
@@ -21,11 +22,24 @@ let ObcAlertButton = class extends LitElement {
|
|
21
22
|
this.alertType = AlertType.None;
|
22
23
|
this.standalone = false;
|
23
24
|
this.counter = false;
|
25
|
+
this.blinkAlarmValue = false;
|
26
|
+
this.blinkWarningValue = false;
|
24
27
|
}
|
25
28
|
render() {
|
29
|
+
let alertType = this.alertType;
|
30
|
+
if (this.alertType === AlertType.Alarm && !this.blinkAlarmValue) {
|
31
|
+
alertType = AlertType.None;
|
32
|
+
} else if (this.alertType === AlertType.Warning && !this.blinkWarningValue) {
|
33
|
+
alertType = AlertType.None;
|
34
|
+
}
|
26
35
|
return html`
|
27
36
|
<button
|
28
|
-
class
|
37
|
+
class=${classMap({
|
38
|
+
wrapper: true,
|
39
|
+
[`type-${alertType}`]: true,
|
40
|
+
counter: this.counter,
|
41
|
+
standalone: this.standalone
|
42
|
+
})}
|
29
43
|
>
|
30
44
|
<div class="visible-wrapper">
|
31
45
|
<obi-14-alerts class="icon"></obi-14-alerts>
|
@@ -48,6 +62,12 @@ __decorateClass([
|
|
48
62
|
__decorateClass([
|
49
63
|
property({ type: Boolean })
|
50
64
|
], ObcAlertButton.prototype, "counter", 2);
|
65
|
+
__decorateClass([
|
66
|
+
property({ type: Boolean, attribute: "blink-alarm-value" })
|
67
|
+
], ObcAlertButton.prototype, "blinkAlarmValue", 2);
|
68
|
+
__decorateClass([
|
69
|
+
property({ type: Boolean, attribute: "blink-warning-value" })
|
70
|
+
], ObcAlertButton.prototype, "blinkWarningValue", 2);
|
51
71
|
ObcAlertButton = __decorateClass([
|
52
72
|
customElement("obc-alert-button")
|
53
73
|
], ObcAlertButton);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"alert-button.js","sources":["../../../src/components/alert-button/alert-button.ts"],"sourcesContent":["import {LitElement, html, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport compentStyle from './alert-button.css?inline';\nimport '../../icons/icon-14-alerts';\nimport {AlertType} from '../../types';\n\n/**\n *
|
1
|
+
{"version":3,"file":"alert-button.js","sources":["../../../src/components/alert-button/alert-button.ts"],"sourcesContent":["import {LitElement, html, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport compentStyle from './alert-button.css?inline';\nimport '../../icons/icon-14-alerts';\nimport {AlertType} from '../../types';\nimport {classMap} from 'lit/directives/class-map.js';\n\n/**\n * Button used for alerts and notification\n *\n * @prop {number} nAlerts - Number of alerts.\n * @prop {AlertType} alertType - Type of alert.\n * @prop {boolean} standalone - If the button is standalone and not used together with an notification-message.\n * @prop {boolean} counter - If the button should display a counter.\n * @prop {boolean} blinkAlarmValue - This value should alternate between true and false to make the icon blink.\n * It should be synchronized with the blinkValue of other alarms.\n * @prop {boolean} blinkWarningValue - This value should alternate between true and false to make the icon blink.\n *\n * @fires click - Fires when the button is clicked.\n */\n@customElement('obc-alert-button')\nexport class ObcAlertButton extends LitElement {\n @property({type: Number, attribute: 'n-alerts'}) nAlerts = 0;\n @property({type: String, attribute: 'alert-type'}) alertType = AlertType.None;\n @property({type: Boolean}) standalone = false;\n @property({type: Boolean}) counter = false;\n @property({type: Boolean, attribute: 'blink-alarm-value'}) blinkAlarmValue =\n false;\n @property({type: Boolean, attribute: 'blink-warning-value'})\n blinkWarningValue = false;\n\n override render() {\n let alertType = this.alertType;\n if (this.alertType === AlertType.Alarm && !this.blinkAlarmValue) {\n alertType = AlertType.None;\n } else if (\n this.alertType === AlertType.Warning &&\n !this.blinkWarningValue\n ) {\n alertType = AlertType.None;\n }\n return html`\n <button\n class=${classMap({\n wrapper: true,\n [`type-${alertType}`]: true,\n counter: this.counter,\n standalone: this.standalone,\n })}\n >\n <div class=\"visible-wrapper\">\n <obi-14-alerts class=\"icon\"></obi-14-alerts>\n ${this.counter\n ? html`<div class=\"badge\">${this.nAlerts}</div>`\n : null}\n </div>\n </button>\n `;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-alert-button': ObcAlertButton;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAqBa,IAAA,iBAAN,cAA6B,WAAW;AAAA,EAAxC,cAAA;AAAA,UAAA,GAAA,SAAA;AACsD,SAAA,UAAA;AACR,SAAA,YAAY,UAAU;AACjC,SAAA,aAAA;AACH,SAAA,UAAA;AAEnC,SAAA,kBAAA;AAEkB,SAAA,oBAAA;AAAA,EAAA;AAAA,EAEX,SAAS;AAChB,QAAI,YAAY,KAAK;AACrB,QAAI,KAAK,cAAc,UAAU,SAAS,CAAC,KAAK,iBAAiB;AAC/D,kBAAY,UAAU;AAAA,IAAA,WAEtB,KAAK,cAAc,UAAU,WAC7B,CAAC,KAAK,mBACN;AACA,kBAAY,UAAU;AAAA,IACxB;AACO,WAAA;AAAA;AAAA,gBAEK,SAAS;AAAA,MACf,SAAS;AAAA,MACT,CAAC,QAAQ,SAAS,EAAE,GAAG;AAAA,MACvB,SAAS,KAAK;AAAA,MACd,YAAY,KAAK;AAAA,IAAA,CAClB,CAAC;AAAA;AAAA;AAAA;AAAA,YAIE,KAAK,UACH,0BAA0B,KAAK,OAAO,WACtC,IAAI;AAAA;AAAA;AAAA;AAAA,EAIhB;AAGF;AAxCa,eAuCK,SAAS,UAAU,YAAY;AAtCE,gBAAA;AAAA,EAAhD,SAAS,EAAC,MAAM,QAAQ,WAAW,YAAW;AAAA,GADpC,eACsC,WAAA,WAAA,CAAA;AACE,gBAAA;AAAA,EAAlD,SAAS,EAAC,MAAM,QAAQ,WAAW,cAAa;AAAA,GAFtC,eAEwC,WAAA,aAAA,CAAA;AACxB,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,SAAQ;AAAA,GAHd,eAGgB,WAAA,cAAA,CAAA;AACA,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,SAAQ;AAAA,GAJd,eAIgB,WAAA,WAAA,CAAA;AACgC,gBAAA;AAAA,EAA1D,SAAS,EAAC,MAAM,SAAS,WAAW,qBAAoB;AAAA,GAL9C,eAKgD,WAAA,mBAAA,CAAA;AAG3D,gBAAA;AAAA,EADC,SAAS,EAAC,MAAM,SAAS,WAAW,uBAAsB;AAAA,GAPhD,eAQX,WAAA,qBAAA,CAAA;AARW,iBAAN,gBAAA;AAAA,EADN,cAAc,kBAAkB;AAAA,GACpB,cAAA;"}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
declare const mapping: {
|
3
|
+
'alarm-silenced': {
|
4
|
+
a: import("lit-html").TemplateResult<2>;
|
5
|
+
b: import("lit-html").TemplateResult<2>;
|
6
|
+
};
|
7
|
+
'alarm-unack': {
|
8
|
+
a: import("lit-html").TemplateResult<2>;
|
9
|
+
b: import("lit-html").TemplateResult<2>;
|
10
|
+
};
|
11
|
+
'warning-unack': {
|
12
|
+
a: import("lit-html").TemplateResult<2>;
|
13
|
+
b: import("lit-html").TemplateResult<2>;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
export declare const AlertIconNames: ("alarm-silenced" | "alarm-unack" | "warning-unack")[];
|
17
|
+
export type AlertIconName = keyof typeof mapping;
|
18
|
+
/**
|
19
|
+
* Icon used for alerts and notification with blinking effect
|
20
|
+
*
|
21
|
+
* @prop {boolean} blinkValue - This value should alternate between true and false to make the icon blink.
|
22
|
+
* @prop {AlertIconName} name - Name of the icon.
|
23
|
+
*/
|
24
|
+
export declare class ObcAlertIcon extends LitElement {
|
25
|
+
blinkValue: boolean;
|
26
|
+
name: AlertIconName;
|
27
|
+
render(): import("lit-html").TemplateResult<1>;
|
28
|
+
static styles: import("lit").CSSResult;
|
29
|
+
}
|
30
|
+
declare global {
|
31
|
+
interface HTMLElementTagNameMap {
|
32
|
+
'obc-alert-icon': ObcAlertIcon;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
export {};
|
36
|
+
//# sourceMappingURL=alert-icon.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"alert-icon.d.ts","sourceRoot":"","sources":["../../../src/components/alert-icon/alert-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAY,MAAM,KAAK,CAAC;AAU1C,QAAA,MAAM,OAAO;;;;;;;;;;;;;CAIZ,CAAC;AAEF,eAAO,MAAM,cAAc,wDAA0C,CAAC;AACtE,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,OAAO,CAAC;AAEjD;;;;;GAKG;AACH,qBACa,YAAa,SAAQ,UAAU;IACW,UAAU,UAAS;IAC9C,IAAI,EAAE,aAAa,CAAiB;IAErD,MAAM;IAgBf,OAAgB,MAAM,0BAqBpB;CACH;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import { css, LitElement, html } from "lit";
|
2
|
+
import { property, customElement } from "lit/decorators.js";
|
3
|
+
import { classMap } from "lit/directives/class-map.js";
|
4
|
+
import { svg14AlarmSilencedA } from "./icons/icon-14-alarm-silenced-a.js";
|
5
|
+
import { svg14AlarmSilencedB } from "./icons/icon-14-alarm-silenced-b.js";
|
6
|
+
import { svg14AlarmUnackA } from "./icons/icon-14-alarm-unack-a.js";
|
7
|
+
import { svg14AlarmUnackB } from "./icons/icon-14-alarm-unack-b.js";
|
8
|
+
import { svg14WarningUnackA } from "./icons/icon-14-warning-unack-a.js";
|
9
|
+
import { svg14WarningUnackB } from "./icons/icon-14-warning-unack-b.js";
|
10
|
+
var __defProp = Object.defineProperty;
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
12
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
13
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
14
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
15
|
+
if (decorator = decorators[i])
|
16
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
17
|
+
if (kind && result)
|
18
|
+
__defProp(target, key, result);
|
19
|
+
return result;
|
20
|
+
};
|
21
|
+
const mapping = {
|
22
|
+
"alarm-silenced": { a: svg14AlarmSilencedA, b: svg14AlarmSilencedB },
|
23
|
+
"alarm-unack": { a: svg14AlarmUnackA, b: svg14AlarmUnackB },
|
24
|
+
"warning-unack": { a: svg14WarningUnackA, b: svg14WarningUnackB }
|
25
|
+
};
|
26
|
+
const AlertIconNames = Object.keys(mapping);
|
27
|
+
let ObcAlertIcon = class extends LitElement {
|
28
|
+
constructor() {
|
29
|
+
super(...arguments);
|
30
|
+
this.blinkValue = false;
|
31
|
+
this.name = "alarm-unack";
|
32
|
+
}
|
33
|
+
render() {
|
34
|
+
const icons = mapping[this.name];
|
35
|
+
return html`
|
36
|
+
<div
|
37
|
+
class=${classMap({
|
38
|
+
wrapper: true,
|
39
|
+
"show-a": this.blinkValue,
|
40
|
+
"show-b": !this.blinkValue
|
41
|
+
})}
|
42
|
+
>
|
43
|
+
<span class="a">${icons.a}</span>
|
44
|
+
<span class="b">${icons.b}</span>
|
45
|
+
</div>
|
46
|
+
`;
|
47
|
+
}
|
48
|
+
};
|
49
|
+
ObcAlertIcon.styles = css`
|
50
|
+
.wrapper {
|
51
|
+
height: 100%;
|
52
|
+
width: 100%;
|
53
|
+
}
|
54
|
+
.wrapper * {
|
55
|
+
height: 100%;
|
56
|
+
width: 100%;
|
57
|
+
}
|
58
|
+
.a,
|
59
|
+
.b {
|
60
|
+
display: none;
|
61
|
+
}
|
62
|
+
|
63
|
+
.show-a .a {
|
64
|
+
display: revert;
|
65
|
+
}
|
66
|
+
|
67
|
+
.show-b .b {
|
68
|
+
display: revert;
|
69
|
+
}
|
70
|
+
`;
|
71
|
+
__decorateClass([
|
72
|
+
property({ type: Boolean, attribute: "blink-value" })
|
73
|
+
], ObcAlertIcon.prototype, "blinkValue", 2);
|
74
|
+
__decorateClass([
|
75
|
+
property({ type: String })
|
76
|
+
], ObcAlertIcon.prototype, "name", 2);
|
77
|
+
ObcAlertIcon = __decorateClass([
|
78
|
+
customElement("obc-alert-icon")
|
79
|
+
], ObcAlertIcon);
|
80
|
+
export {
|
81
|
+
AlertIconNames,
|
82
|
+
ObcAlertIcon
|
83
|
+
};
|
84
|
+
//# sourceMappingURL=alert-icon.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"alert-icon.js","sources":["../../../src/components/alert-icon/alert-icon.ts"],"sourcesContent":["import {LitElement, html, css} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {svg14AlarmSilencedA} from './icons/icon-14-alarm-silenced-a';\nimport {svg14AlarmSilencedB} from './icons/icon-14-alarm-silenced-b';\nimport {svg14AlarmUnackA} from './icons/icon-14-alarm-unack-a';\nimport {svg14AlarmUnackB} from './icons/icon-14-alarm-unack-b';\nimport {svg14WarningUnackA} from './icons/icon-14-warning-unack-a';\nimport {svg14WarningUnackB} from './icons/icon-14-warning-unack-b';\n\nconst mapping = {\n 'alarm-silenced': {a: svg14AlarmSilencedA, b: svg14AlarmSilencedB},\n 'alarm-unack': {a: svg14AlarmUnackA, b: svg14AlarmUnackB},\n 'warning-unack': {a: svg14WarningUnackA, b: svg14WarningUnackB},\n};\n\nexport const AlertIconNames = Object.keys(mapping) as AlertIconName[];\nexport type AlertIconName = keyof typeof mapping;\n\n/**\n * Icon used for alerts and notification with blinking effect\n *\n * @prop {boolean} blinkValue - This value should alternate between true and false to make the icon blink.\n * @prop {AlertIconName} name - Name of the icon.\n */\n@customElement('obc-alert-icon')\nexport class ObcAlertIcon extends LitElement {\n @property({type: Boolean, attribute: 'blink-value'}) blinkValue = false;\n @property({type: String}) name: AlertIconName = 'alarm-unack';\n\n override render() {\n const icons = mapping[this.name];\n return html`\n <div\n class=${classMap({\n wrapper: true,\n 'show-a': this.blinkValue,\n 'show-b': !this.blinkValue,\n })}\n >\n <span class=\"a\">${icons.a}</span>\n <span class=\"b\">${icons.b}</span>\n </div>\n `;\n }\n\n static override styles = css`\n .wrapper {\n height: 100%;\n width: 100%;\n }\n .wrapper * {\n height: 100%;\n width: 100%;\n }\n .a,\n .b {\n display: none;\n }\n\n .show-a .a {\n display: revert;\n }\n\n .show-b .b {\n display: revert;\n }\n `;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-alert-icon': ObcAlertIcon;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAUA,MAAM,UAAU;AAAA,EACd,kBAAkB,EAAC,GAAG,qBAAqB,GAAG,oBAAmB;AAAA,EACjE,eAAe,EAAC,GAAG,kBAAkB,GAAG,iBAAgB;AAAA,EACxD,iBAAiB,EAAC,GAAG,oBAAoB,GAAG,mBAAkB;AAChE;AAEa,MAAA,iBAAiB,OAAO,KAAK,OAAO;AAUpC,IAAA,eAAN,cAA2B,WAAW;AAAA,EAAtC,cAAA;AAAA,UAAA,GAAA,SAAA;AAC6D,SAAA,aAAA;AAClB,SAAA,OAAA;AAAA,EAAA;AAAA,EAEvC,SAAS;AACV,UAAA,QAAQ,QAAQ,KAAK,IAAI;AACxB,WAAA;AAAA;AAAA,gBAEK,SAAS;AAAA,MACf,SAAS;AAAA,MACT,UAAU,KAAK;AAAA,MACf,UAAU,CAAC,KAAK;AAAA,IAAA,CACjB,CAAC;AAAA;AAAA,0BAEgB,MAAM,CAAC;AAAA,0BACP,MAAM,CAAC;AAAA;AAAA;AAAA,EAG/B;AAwBF;AA1Ca,aAoBK,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAnB4B,gBAAA;AAAA,EAApD,SAAS,EAAC,MAAM,SAAS,WAAW,eAAc;AAAA,GADxC,aAC0C,WAAA,cAAA,CAAA;AAC3B,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,QAAO;AAAA,GAFb,aAEe,WAAA,QAAA,CAAA;AAFf,eAAN,gBAAA;AAAA,EADN,cAAc,gBAAgB;AAAA,GAClB,YAAA;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-14-alarm-silenced-a.d.ts","sourceRoot":"","sources":["../../../../src/components/alert-icon/icons/icon-14-alarm-silenced-a.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,sCAO/B,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { svg } from "lit";
|
2
|
+
const svg14AlarmSilencedA = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<path d="M11.1409 1.51681C11.5032 0.82773 12.4968 0.827732 12.8591 1.51681L22.8888 20.5936C23.2254 21.2338 22.7573 22 22.0297 22H1.97033C1.24266 22 0.774615 21.2338 1.11121 20.5936L11.1409 1.51681Z" fill="var(--alarm-enabled-background-color)"/>
|
4
|
+
<path d="M6.99848 10.8967L7.88021 10.015L17.3 19.2682L16.4183 20.1499L15.1363 18.868C14.4859 19.387 13.7168 19.7747 12.8788 19.9623V18.6741C13.3791 18.5303 13.8356 18.2864 14.2421 17.98L11.6281 15.366V19.487L8.50138 16.3603H6V12.6082H8.50138L8.68273 12.4206L6.99848 10.8967Z" style="fill: var(--on-alarm-active-color)"/>
|
5
|
+
<path d="M15.7491 15.9476C15.9117 15.4911 16.0055 14.9971 16.0055 14.4843C16.0055 12.5019 14.6861 10.826 12.8788 10.2882V9C15.3864 9.56906 17.2562 11.8078 17.2562 14.4843C17.2562 15.3535 17.0561 16.1727 16.7059 16.9044L15.7491 15.9476Z" style="fill: var(--on-alarm-active-color)"/>
|
6
|
+
<path d="M12.8788 11.9641C13.8043 12.4269 14.4422 13.3774 14.4422 14.4843C14.4422 14.5343 14.4359 14.5843 14.4297 14.6344L12.8788 13.0835V11.9641Z" style="fill: var(--on-alarm-active-color)"/>
|
7
|
+
<path d="M10.4525 10.6572L11.6281 9.48152V11.8328L10.4525 10.6572Z" style="fill: var(--on-alarm-active-color)"/>
|
8
|
+
</svg>
|
9
|
+
`;
|
10
|
+
export {
|
11
|
+
svg14AlarmSilencedA
|
12
|
+
};
|
13
|
+
//# sourceMappingURL=icon-14-alarm-silenced-a.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-14-alarm-silenced-a.js","sources":["../../../../src/components/alert-icon/icons/icon-14-alarm-silenced-a.ts"],"sourcesContent":["import {svg} from 'lit';\nexport const svg14AlarmSilencedA = svg`<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M11.1409 1.51681C11.5032 0.82773 12.4968 0.827732 12.8591 1.51681L22.8888 20.5936C23.2254 21.2338 22.7573 22 22.0297 22H1.97033C1.24266 22 0.774615 21.2338 1.11121 20.5936L11.1409 1.51681Z\" fill=\"var(--alarm-enabled-background-color)\"/>\n<path d=\"M6.99848 10.8967L7.88021 10.015L17.3 19.2682L16.4183 20.1499L15.1363 18.868C14.4859 19.387 13.7168 19.7747 12.8788 19.9623V18.6741C13.3791 18.5303 13.8356 18.2864 14.2421 17.98L11.6281 15.366V19.487L8.50138 16.3603H6V12.6082H8.50138L8.68273 12.4206L6.99848 10.8967Z\" style=\"fill: var(--on-alarm-active-color)\"/>\n<path d=\"M15.7491 15.9476C15.9117 15.4911 16.0055 14.9971 16.0055 14.4843C16.0055 12.5019 14.6861 10.826 12.8788 10.2882V9C15.3864 9.56906 17.2562 11.8078 17.2562 14.4843C17.2562 15.3535 17.0561 16.1727 16.7059 16.9044L15.7491 15.9476Z\" style=\"fill: var(--on-alarm-active-color)\"/>\n<path d=\"M12.8788 11.9641C13.8043 12.4269 14.4422 13.3774 14.4422 14.4843C14.4422 14.5343 14.4359 14.5843 14.4297 14.6344L12.8788 13.0835V11.9641Z\" style=\"fill: var(--on-alarm-active-color)\"/>\n<path d=\"M10.4525 10.6572L11.6281 9.48152V11.8328L10.4525 10.6572Z\" style=\"fill: var(--on-alarm-active-color)\"/>\n</svg>\n`;\n"],"names":[],"mappings":";AACO,MAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-14-alarm-silenced-b.d.ts","sourceRoot":"","sources":["../../../../src/components/alert-icon/icons/icon-14-alarm-silenced-b.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,sCAc/B,CAAC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { svg } from "lit";
|
2
|
+
const svg14AlarmSilencedB = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<g clip-path="url(#clip0_850_47505)">
|
4
|
+
<path d="M13.3017 1.28413L12.8591 1.51681L13.3017 1.28413C12.752 0.238626 11.248 0.238621 10.6983 1.28413L11.1314 1.51182L10.6983 1.28413L0.668648 20.3609C0.154023 21.3397 0.872928 22.5 1.97033 22.5H22.0297C23.1271 22.5 23.846 21.3397 23.3314 20.3609L13.3017 1.28413Z" style="stroke: var(--element-neutral-color)" />
|
5
|
+
<path d="M6.99848 10.8967L7.88021 10.015L17.3 19.2682L16.4183 20.1499L15.1363 18.868C14.4859 19.387 13.7168 19.7747 12.8788 19.9623V18.6741C13.3791 18.5303 13.8356 18.2864 14.2421 17.98L11.6281 15.366V19.487L8.50138 16.3603H6V12.6082H8.50138L8.68273 12.4206L6.99848 10.8967Z" style="fill: var(--element-neutral-color)" />
|
6
|
+
<path d="M15.7491 15.9476C15.9117 15.4911 16.0055 14.9971 16.0055 14.4843C16.0055 12.5019 14.6861 10.826 12.8788 10.2882V9C15.3864 9.56906 17.2562 11.8078 17.2562 14.4843C17.2562 15.3535 17.0561 16.1727 16.7059 16.9044L15.7491 15.9476Z" style="fill: var(--element-neutral-color)" />
|
7
|
+
<path d="M12.8788 11.9641C13.8043 12.4269 14.4422 13.3774 14.4422 14.4843C14.4422 14.5343 14.4359 14.5843 14.4297 14.6344L12.8788 13.0835V11.9641Z" style="fill: var(--element-neutral-color)" />
|
8
|
+
<path d="M10.4525 10.6572L11.6281 9.48152V11.8328L10.4525 10.6572Z" style="fill: var(--element-neutral-color)" />
|
9
|
+
</g>
|
10
|
+
<defs>
|
11
|
+
<clipPath id="clip0_850_47505">
|
12
|
+
<rect width="24" height="24" fill="none"/>
|
13
|
+
</clipPath>
|
14
|
+
</defs>
|
15
|
+
</svg>
|
16
|
+
`;
|
17
|
+
export {
|
18
|
+
svg14AlarmSilencedB
|
19
|
+
};
|
20
|
+
//# sourceMappingURL=icon-14-alarm-silenced-b.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-14-alarm-silenced-b.js","sources":["../../../../src/components/alert-icon/icons/icon-14-alarm-silenced-b.ts"],"sourcesContent":["import {svg} from 'lit';\nexport const svg14AlarmSilencedB = svg`<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_850_47505)\">\n<path d=\"M13.3017 1.28413L12.8591 1.51681L13.3017 1.28413C12.752 0.238626 11.248 0.238621 10.6983 1.28413L11.1314 1.51182L10.6983 1.28413L0.668648 20.3609C0.154023 21.3397 0.872928 22.5 1.97033 22.5H22.0297C23.1271 22.5 23.846 21.3397 23.3314 20.3609L13.3017 1.28413Z\" style=\"stroke: var(--element-neutral-color)\" />\n<path d=\"M6.99848 10.8967L7.88021 10.015L17.3 19.2682L16.4183 20.1499L15.1363 18.868C14.4859 19.387 13.7168 19.7747 12.8788 19.9623V18.6741C13.3791 18.5303 13.8356 18.2864 14.2421 17.98L11.6281 15.366V19.487L8.50138 16.3603H6V12.6082H8.50138L8.68273 12.4206L6.99848 10.8967Z\" style=\"fill: var(--element-neutral-color)\" />\n<path d=\"M15.7491 15.9476C15.9117 15.4911 16.0055 14.9971 16.0055 14.4843C16.0055 12.5019 14.6861 10.826 12.8788 10.2882V9C15.3864 9.56906 17.2562 11.8078 17.2562 14.4843C17.2562 15.3535 17.0561 16.1727 16.7059 16.9044L15.7491 15.9476Z\" style=\"fill: var(--element-neutral-color)\" />\n<path d=\"M12.8788 11.9641C13.8043 12.4269 14.4422 13.3774 14.4422 14.4843C14.4422 14.5343 14.4359 14.5843 14.4297 14.6344L12.8788 13.0835V11.9641Z\" style=\"fill: var(--element-neutral-color)\" />\n<path d=\"M10.4525 10.6572L11.6281 9.48152V11.8328L10.4525 10.6572Z\" style=\"fill: var(--element-neutral-color)\" />\n</g>\n<defs>\n<clipPath id=\"clip0_850_47505\">\n<rect width=\"24\" height=\"24\" fill=\"none\"/>\n</clipPath>\n</defs>\n</svg>\n`;\n"],"names":[],"mappings":";AACO,MAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-14-alarm-unack-a.d.ts","sourceRoot":"","sources":["../../../../src/components/alert-icon/icons/icon-14-alarm-unack-a.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,sCAM5B,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { svg } from "lit";
|
2
|
+
const svg14AlarmUnackA = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<path d="M11.1409 1.51681C11.5032 0.82773 12.4968 0.827732 12.8591 1.51681L22.8888 20.5936C23.2254 21.2338 22.7573 22 22.0297 22H1.97033C1.24266 22 0.774615 21.2338 1.11121 20.5936L11.1409 1.51681Z" fill="var(--alarm-enabled-background-color)"/>
|
4
|
+
<path d="M8.50855 16.3814L11.6442 19.5171V9.4829L8.50855 12.6186H6V16.3814H8.50855Z" style="fill: var(--on-alarm-active-color)"/>
|
5
|
+
<path d="M14.4664 14.5C14.4664 13.39 13.8267 12.4367 12.8985 11.9726V17.0211C13.8267 16.5633 14.4664 15.61 14.4664 14.5Z" style="fill: var(--on-alarm-active-color)"/>
|
6
|
+
<path d="M12.8985 10.2919C14.7109 10.8312 16.0342 12.512 16.0342 14.5C16.0342 16.488 14.7109 18.1688 12.8985 18.7081V20C15.4133 19.4293 17.2885 17.1842 17.2885 14.5C17.2885 11.8159 15.4133 9.5707 12.8985 9V10.2919Z" style="fill: var(--on-alarm-active-color)"/>
|
7
|
+
</svg>
|
8
|
+
`;
|
9
|
+
export {
|
10
|
+
svg14AlarmUnackA
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=icon-14-alarm-unack-a.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-14-alarm-unack-a.js","sources":["../../../../src/components/alert-icon/icons/icon-14-alarm-unack-a.ts"],"sourcesContent":["import {svg} from 'lit';\nexport const svg14AlarmUnackA = svg`<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M11.1409 1.51681C11.5032 0.82773 12.4968 0.827732 12.8591 1.51681L22.8888 20.5936C23.2254 21.2338 22.7573 22 22.0297 22H1.97033C1.24266 22 0.774615 21.2338 1.11121 20.5936L11.1409 1.51681Z\" fill=\"var(--alarm-enabled-background-color)\"/>\n<path d=\"M8.50855 16.3814L11.6442 19.5171V9.4829L8.50855 12.6186H6V16.3814H8.50855Z\" style=\"fill: var(--on-alarm-active-color)\"/>\n<path d=\"M14.4664 14.5C14.4664 13.39 13.8267 12.4367 12.8985 11.9726V17.0211C13.8267 16.5633 14.4664 15.61 14.4664 14.5Z\" style=\"fill: var(--on-alarm-active-color)\"/>\n<path d=\"M12.8985 10.2919C14.7109 10.8312 16.0342 12.512 16.0342 14.5C16.0342 16.488 14.7109 18.1688 12.8985 18.7081V20C15.4133 19.4293 17.2885 17.1842 17.2885 14.5C17.2885 11.8159 15.4133 9.5707 12.8985 9V10.2919Z\" style=\"fill: var(--on-alarm-active-color)\"/>\n</svg>\n`;\n"],"names":[],"mappings":";AACO,MAAM,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-14-alarm-unack-b.d.ts","sourceRoot":"","sources":["../../../../src/components/alert-icon/icons/icon-14-alarm-unack-b.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,sCAa5B,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { svg } from "lit";
|
2
|
+
const svg14AlarmUnackB = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<g clip-path="url(#clip0_850_47508)">
|
4
|
+
<path d="M13.3017 1.28413L12.8591 1.51681L13.3017 1.28413C12.752 0.238626 11.248 0.238621 10.6983 1.28413L11.1314 1.51182L10.6983 1.28413L0.668648 20.3609C0.154023 21.3397 0.872928 22.5 1.97033 22.5H22.0297C23.1271 22.5 23.846 21.3397 23.3314 20.3609L13.3017 1.28413Z" style="stroke: var(--element-neutral-color)" />
|
5
|
+
<path d="M8.50855 16.3814L11.6442 19.5171V9.4829L8.50855 12.6186H6V16.3814H8.50855Z" style="fill: var(--element-neutral-color)" />
|
6
|
+
<path d="M14.4664 14.5C14.4664 13.39 13.8267 12.4367 12.8985 11.9726V17.0211C13.8267 16.5633 14.4664 15.61 14.4664 14.5Z" style="fill: var(--element-neutral-color)" />
|
7
|
+
<path d="M12.8985 10.2919C14.7109 10.8312 16.0342 12.512 16.0342 14.5C16.0342 16.488 14.7109 18.1688 12.8985 18.7081V20C15.4133 19.4293 17.2885 17.1842 17.2885 14.5C17.2885 11.8159 15.4133 9.5707 12.8985 9V10.2919Z" style="fill: var(--element-neutral-color)" />
|
8
|
+
</g>
|
9
|
+
<defs>
|
10
|
+
<clipPath id="clip0_850_47508">
|
11
|
+
<rect width="24" height="24" fill="none"/>
|
12
|
+
</clipPath>
|
13
|
+
</defs>
|
14
|
+
</svg>
|
15
|
+
`;
|
16
|
+
export {
|
17
|
+
svg14AlarmUnackB
|
18
|
+
};
|
19
|
+
//# sourceMappingURL=icon-14-alarm-unack-b.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-14-alarm-unack-b.js","sources":["../../../../src/components/alert-icon/icons/icon-14-alarm-unack-b.ts"],"sourcesContent":["import {svg} from 'lit';\nexport const svg14AlarmUnackB = svg`<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_850_47508)\">\n<path d=\"M13.3017 1.28413L12.8591 1.51681L13.3017 1.28413C12.752 0.238626 11.248 0.238621 10.6983 1.28413L11.1314 1.51182L10.6983 1.28413L0.668648 20.3609C0.154023 21.3397 0.872928 22.5 1.97033 22.5H22.0297C23.1271 22.5 23.846 21.3397 23.3314 20.3609L13.3017 1.28413Z\" style=\"stroke: var(--element-neutral-color)\" />\n<path d=\"M8.50855 16.3814L11.6442 19.5171V9.4829L8.50855 12.6186H6V16.3814H8.50855Z\" style=\"fill: var(--element-neutral-color)\" />\n<path d=\"M14.4664 14.5C14.4664 13.39 13.8267 12.4367 12.8985 11.9726V17.0211C13.8267 16.5633 14.4664 15.61 14.4664 14.5Z\" style=\"fill: var(--element-neutral-color)\" />\n<path d=\"M12.8985 10.2919C14.7109 10.8312 16.0342 12.512 16.0342 14.5C16.0342 16.488 14.7109 18.1688 12.8985 18.7081V20C15.4133 19.4293 17.2885 17.1842 17.2885 14.5C17.2885 11.8159 15.4133 9.5707 12.8985 9V10.2919Z\" style=\"fill: var(--element-neutral-color)\" />\n</g>\n<defs>\n<clipPath id=\"clip0_850_47508\">\n<rect width=\"24\" height=\"24\" fill=\"none\"/>\n</clipPath>\n</defs>\n</svg>\n`;\n"],"names":[],"mappings":";AACO,MAAM,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-14-warning-unack-a.d.ts","sourceRoot":"","sources":["../../../../src/components/alert-icon/icons/icon-14-warning-unack-a.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,sCAM9B,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { svg } from "lit";
|
2
|
+
const svg14WarningUnackA = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<circle cx="12" cy="12" r="10.5" style="fill: var(--warning-enabled-background-color)" style="stroke: var(--element-active-color)"/>
|
4
|
+
<path d="M8.50855 13.8814L11.6442 17.0171V6.9829L8.50855 10.1186H6V13.8814H8.50855Z" style="fill: var(--on-warning-active-color)" />
|
5
|
+
<path d="M14.4664 12C14.4664 10.89 13.8267 9.93672 12.8985 9.47263V14.5211C13.8267 14.0633 14.4664 13.11 14.4664 12Z" style="fill: var(--on-warning-active-color)" />
|
6
|
+
<path d="M12.8985 7.7919C14.7109 8.33124 16.0342 10.012 16.0342 12C16.0342 13.988 14.7109 15.6688 12.8985 16.2081V17.5C15.4133 16.9293 17.2885 14.6842 17.2885 12C17.2885 9.31585 15.4133 7.0707 12.8985 6.5V7.7919Z" style="fill: var(--on-warning-active-color)" />
|
7
|
+
</svg>
|
8
|
+
`;
|
9
|
+
export {
|
10
|
+
svg14WarningUnackA
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=icon-14-warning-unack-a.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-14-warning-unack-a.js","sources":["../../../../src/components/alert-icon/icons/icon-14-warning-unack-a.ts"],"sourcesContent":["import {svg} from 'lit';\nexport const svg14WarningUnackA = svg`<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<circle cx=\"12\" cy=\"12\" r=\"10.5\" style=\"fill: var(--warning-enabled-background-color)\" style=\"stroke: var(--element-active-color)\"/>\n<path d=\"M8.50855 13.8814L11.6442 17.0171V6.9829L8.50855 10.1186H6V13.8814H8.50855Z\" style=\"fill: var(--on-warning-active-color)\" />\n<path d=\"M14.4664 12C14.4664 10.89 13.8267 9.93672 12.8985 9.47263V14.5211C13.8267 14.0633 14.4664 13.11 14.4664 12Z\" style=\"fill: var(--on-warning-active-color)\" />\n<path d=\"M12.8985 7.7919C14.7109 8.33124 16.0342 10.012 16.0342 12C16.0342 13.988 14.7109 15.6688 12.8985 16.2081V17.5C15.4133 16.9293 17.2885 14.6842 17.2885 12C17.2885 9.31585 15.4133 7.0707 12.8985 6.5V7.7919Z\" style=\"fill: var(--on-warning-active-color)\" />\n</svg>\n`;\n"],"names":[],"mappings":";AACO,MAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-14-warning-unack-b.d.ts","sourceRoot":"","sources":["../../../../src/components/alert-icon/icons/icon-14-warning-unack-b.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,sCAM9B,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { svg } from "lit";
|
2
|
+
const svg14WarningUnackB = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<circle cx="12" cy="12" r="10.5" style="stroke: var(--element-neutral-color)" />
|
4
|
+
<path d="M8.50855 13.8814L11.6442 17.0171V6.9829L8.50855 10.1186H6V13.8814H8.50855Z" style="fill: var(--element-neutral-color)" />
|
5
|
+
<path d="M14.4664 12C14.4664 10.89 13.8267 9.93672 12.8985 9.47263V14.5211C13.8267 14.0633 14.4664 13.11 14.4664 12Z" style="fill: var(--element-neutral-color)" />
|
6
|
+
<path d="M12.8985 7.7919C14.7109 8.33124 16.0342 10.012 16.0342 12C16.0342 13.988 14.7109 15.6688 12.8985 16.2081V17.5C15.4133 16.9293 17.2885 14.6842 17.2885 12C17.2885 9.31585 15.4133 7.0707 12.8985 6.5V7.7919Z" style="fill: var(--element-neutral-color)" />
|
7
|
+
</svg>
|
8
|
+
`;
|
9
|
+
export {
|
10
|
+
svg14WarningUnackB
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=icon-14-warning-unack-b.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-14-warning-unack-b.js","sources":["../../../../src/components/alert-icon/icons/icon-14-warning-unack-b.ts"],"sourcesContent":["import {svg} from 'lit';\nexport const svg14WarningUnackB = svg`<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<circle cx=\"12\" cy=\"12\" r=\"10.5\" style=\"stroke: var(--element-neutral-color)\" />\n<path d=\"M8.50855 13.8814L11.6442 17.0171V6.9829L8.50855 10.1186H6V13.8814H8.50855Z\" style=\"fill: var(--element-neutral-color)\" />\n<path d=\"M14.4664 12C14.4664 10.89 13.8267 9.93672 12.8985 9.47263V14.5211C13.8267 14.0633 14.4664 13.11 14.4664 12Z\" style=\"fill: var(--element-neutral-color)\" />\n<path d=\"M12.8985 7.7919C14.7109 8.33124 16.0342 10.012 16.0342 12C16.0342 13.988 14.7109 15.6688 12.8985 16.2081V17.5C15.4133 16.9293 17.2885 14.6842 17.2885 12C17.2885 9.31585 15.4133 7.0707 12.8985 6.5V7.7919Z\" style=\"fill: var(--element-neutral-color)\" />\n</svg>\n`;\n"],"names":[],"mappings":";AACO,MAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
@@ -8,16 +8,29 @@ import { AlertType } from '../../types';
|
|
8
8
|
* Element that displays the alert in topbar
|
9
9
|
* Use the element in the alerts slot in topbar
|
10
10
|
*
|
11
|
+
* @prop {number} nAlerts - Number of alerts.
|
12
|
+
* @prop {AlertType} alertType - Type of alert.
|
13
|
+
* @prop {boolean} blinkAlarmValue - This value should alternate between true and false to make the icon blink.
|
14
|
+
* It should be synchronized with the blinkValue of other alarms.
|
15
|
+
* @prop {boolean} blinkWarningValue - This value should alternate between true and false to make the icon blink.
|
16
|
+
* @prop {boolean} showAck - If the ack button should be shown.
|
17
|
+
* @prop {boolean} alertMuted - If the alert is muted.
|
18
|
+
* @prop {boolean} minimized - If the alert is minimized.
|
19
|
+
* @prop {number} maxWidth - The maximum width of the alert.
|
20
|
+
*
|
11
21
|
* @fires muteclick - Fired when the mute button is clicked
|
12
22
|
* @fires ackclick - Fired when the ack button is clicked
|
13
23
|
* @fires alertclick - Fired when the alert button is clicked
|
14
24
|
* @fires messageclick - Fired when the message is clicked
|
15
25
|
*
|
16
26
|
* @slot - The message to display in the alert element of type `obc-notification-message-item`
|
27
|
+
* @slot empty - The message to display when there are no alerts
|
17
28
|
*/
|
18
29
|
export declare class ObcAlertTopbarElement extends LitElement {
|
19
30
|
nAlerts: number;
|
20
31
|
alertType: AlertType;
|
32
|
+
blinkAlarmValue: boolean;
|
33
|
+
blinkWarningValue: boolean;
|
21
34
|
showAck: boolean;
|
22
35
|
alertMuted: boolean;
|
23
36
|
minimized: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"alert-topbar-element.d.ts","sourceRoot":"","sources":["../../../src/components/alert-topbar-element/alert-topbar-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGhD,OAAO,8BAA8B,CAAC;AACtC,OAAO,4CAA4C,CAAC;AACpD,OAAO,8CAA8C,CAAC;AAEtD,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAGtC
|
1
|
+
{"version":3,"file":"alert-topbar-element.d.ts","sourceRoot":"","sources":["../../../src/components/alert-topbar-element/alert-topbar-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGhD,OAAO,8BAA8B,CAAC;AACtC,OAAO,4CAA4C,CAAC;AACpD,OAAO,8CAA8C,CAAC;AAEtD,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAGtC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBACa,qBAAsB,SAAQ,UAAU;IACF,OAAO,SAAK;IACV,SAAS,EAAE,SAAS,CACtD;IAC0C,eAAe,UAClE;IAER,iBAAiB,UAAS;IACwB,OAAO,UAAS;IACb,UAAU,UAAS;IAC7C,SAAS,UAAS;IACK,QAAQ,SAAO;IAExD,MAAM;IAsEf,OAAgB,MAAM,0BAA2B;CAClD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,yBAAyB,EAAE,qBAAqB,CAAC;KAClD;CACF"}
|
@@ -23,6 +23,8 @@ let ObcAlertTopbarElement = class extends LitElement {
|
|
23
23
|
super(...arguments);
|
24
24
|
this.nAlerts = 0;
|
25
25
|
this.alertType = AlertType.None;
|
26
|
+
this.blinkAlarmValue = false;
|
27
|
+
this.blinkWarningValue = false;
|
26
28
|
this.showAck = false;
|
27
29
|
this.alertMuted = false;
|
28
30
|
this.minimized = false;
|
@@ -83,6 +85,8 @@ let ObcAlertTopbarElement = class extends LitElement {
|
|
83
85
|
alert-type=${this.alertType}
|
84
86
|
n-alerts=${this.nAlerts}
|
85
87
|
?counter=${!empty}
|
88
|
+
?blink-alarm-value=${this.blinkAlarmValue}
|
89
|
+
?blink-warning-value=${this.blinkWarningValue}
|
86
90
|
@click=${() => this.dispatchEvent(new CustomEvent("alertclick"))}
|
87
91
|
></obc-alert-button>
|
88
92
|
</div>
|
@@ -96,6 +100,12 @@ __decorateClass([
|
|
96
100
|
__decorateClass([
|
97
101
|
property({ type: String, attribute: "alert-type" })
|
98
102
|
], ObcAlertTopbarElement.prototype, "alertType", 2);
|
103
|
+
__decorateClass([
|
104
|
+
property({ type: Boolean, attribute: "blink-alarm-value" })
|
105
|
+
], ObcAlertTopbarElement.prototype, "blinkAlarmValue", 2);
|
106
|
+
__decorateClass([
|
107
|
+
property({ type: Boolean, attribute: "blink-warning-value" })
|
108
|
+
], ObcAlertTopbarElement.prototype, "blinkWarningValue", 2);
|
99
109
|
__decorateClass([
|
100
110
|
property({ type: Boolean, attribute: "show-ack" })
|
101
111
|
], ObcAlertTopbarElement.prototype, "showAck", 2);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"alert-topbar-element.js","sources":["../../../src/components/alert-topbar-element/alert-topbar-element.ts"],"sourcesContent":["import {LitElement, html, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport compentStyle from './alert-topbar-element.css?inline';\nimport '../alert-button/alert-button';\nimport '../notification-button/notification-button';\nimport '../notification-message/notification-message';\n\nimport '../../icons/icon-14-mute';\nimport {AlertType} from '../../types';\nimport {classMap} from 'lit/directives/class-map.js';\n\n/**\n * Element that displays the alert in topbar\n * Use the element in the alerts slot in topbar\n *\n * @fires muteclick - Fired when the mute button is clicked\n * @fires ackclick - Fired when the ack button is clicked\n * @fires alertclick - Fired when the alert button is clicked\n * @fires messageclick - Fired when the message is clicked\n *\n * @slot - The message to display in the alert element of type `obc-notification-message-item`\n */\n@customElement('obc-alert-topbar-element')\nexport class ObcAlertTopbarElement extends LitElement {\n @property({type: Number, attribute: 'n-alerts'}) nAlerts = 0;\n @property({type: String, attribute: 'alert-type'}) alertType: AlertType =\n AlertType.None;\n @property({type: Boolean, attribute: 'show-ack'}) showAck = false;\n @property({type: Boolean, attribute: 'alert-muted'}) alertMuted = false;\n @property({type: Boolean}) minimized = false;\n @property({type: Number, attribute: 'max-width'}) maxWidth = 480;\n\n override render() {\n const empty = this.nAlerts === 0;\n const disabledMute =\n this.alertMuted ||\n empty ||\n this.alertType === AlertType.None ||\n this.alertType === AlertType.Running ||\n this.alertType === AlertType.Caution;\n let firstPart;\n if (this.minimized) {\n firstPart = html`<obc-notification-button\n icon\n open-right\n corner-left\n @click=${() => this.dispatchEvent(new CustomEvent('muteclick'))}\n >\n <obi-14-mute></obi-14-mute>\n </obc-notification-button>`;\n } else {\n firstPart = html`<obc-notification-message\n class=\"notification-message\"\n ?empty=${empty}\n @click=${() => this.dispatchEvent(new CustomEvent('messageclick'))}\n >\n <slot></slot>\n <div slot=\"empty\">No active alerts</div>\n </obc-notification-message>\n ${this.showAck\n ? html`<obc-notification-button\n open-right\n @click=${() => this.dispatchEvent(new CustomEvent('ackclick'))}\n >ACK</obc-notification-button\n >`\n : html``}\n <obc-notification-button\n icon\n open-right\n ?indent=${empty}\n ?disabled=${disabledMute}\n @click=${() => this.dispatchEvent(new CustomEvent('muteclick'))}\n >\n <obi-14-mute></obi-14-mute>\n </obc-notification-button>`;\n }\n return html`\n <style>\n :host {\n max-width: ${this.maxWidth}px;\n }\n </style>\n <div\n class=${classMap({\n wrapper: true,\n minimized: this.minimized,\n })}\n style=${`max-width: ${this.maxWidth - 8}px;`}\n >\n ${firstPart}\n <obc-alert-button\n alert-type=${this.alertType}\n n-alerts=${this.nAlerts}\n ?counter=${!empty}\n @click=${() => this.dispatchEvent(new CustomEvent('alertclick'))}\n ></obc-alert-button>\n </div>\n `;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'ob-alert-topbar-element': ObcAlertTopbarElement;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"alert-topbar-element.js","sources":["../../../src/components/alert-topbar-element/alert-topbar-element.ts"],"sourcesContent":["import {LitElement, html, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport compentStyle from './alert-topbar-element.css?inline';\nimport '../alert-button/alert-button';\nimport '../notification-button/notification-button';\nimport '../notification-message/notification-message';\n\nimport '../../icons/icon-14-mute';\nimport {AlertType} from '../../types';\nimport {classMap} from 'lit/directives/class-map.js';\n\n/**\n * Element that displays the alert in topbar\n * Use the element in the alerts slot in topbar\n *\n * @prop {number} nAlerts - Number of alerts.\n * @prop {AlertType} alertType - Type of alert.\n * @prop {boolean} blinkAlarmValue - This value should alternate between true and false to make the icon blink.\n * It should be synchronized with the blinkValue of other alarms.\n * @prop {boolean} blinkWarningValue - This value should alternate between true and false to make the icon blink.\n * @prop {boolean} showAck - If the ack button should be shown.\n * @prop {boolean} alertMuted - If the alert is muted.\n * @prop {boolean} minimized - If the alert is minimized.\n * @prop {number} maxWidth - The maximum width of the alert.\n *\n * @fires muteclick - Fired when the mute button is clicked\n * @fires ackclick - Fired when the ack button is clicked\n * @fires alertclick - Fired when the alert button is clicked\n * @fires messageclick - Fired when the message is clicked\n *\n * @slot - The message to display in the alert element of type `obc-notification-message-item`\n * @slot empty - The message to display when there are no alerts\n */\n@customElement('obc-alert-topbar-element')\nexport class ObcAlertTopbarElement extends LitElement {\n @property({type: Number, attribute: 'n-alerts'}) nAlerts = 0;\n @property({type: String, attribute: 'alert-type'}) alertType: AlertType =\n AlertType.None;\n @property({type: Boolean, attribute: 'blink-alarm-value'}) blinkAlarmValue =\n false;\n @property({type: Boolean, attribute: 'blink-warning-value'})\n blinkWarningValue = false;\n @property({type: Boolean, attribute: 'show-ack'}) showAck = false;\n @property({type: Boolean, attribute: 'alert-muted'}) alertMuted = false;\n @property({type: Boolean}) minimized = false;\n @property({type: Number, attribute: 'max-width'}) maxWidth = 480;\n\n override render() {\n const empty = this.nAlerts === 0;\n const disabledMute =\n this.alertMuted ||\n empty ||\n this.alertType === AlertType.None ||\n this.alertType === AlertType.Running ||\n this.alertType === AlertType.Caution;\n let firstPart;\n if (this.minimized) {\n firstPart = html`<obc-notification-button\n icon\n open-right\n corner-left\n @click=${() => this.dispatchEvent(new CustomEvent('muteclick'))}\n >\n <obi-14-mute></obi-14-mute>\n </obc-notification-button>`;\n } else {\n firstPart = html`<obc-notification-message\n class=\"notification-message\"\n ?empty=${empty}\n @click=${() => this.dispatchEvent(new CustomEvent('messageclick'))}\n >\n <slot></slot>\n <div slot=\"empty\">No active alerts</div>\n </obc-notification-message>\n ${this.showAck\n ? html`<obc-notification-button\n open-right\n @click=${() => this.dispatchEvent(new CustomEvent('ackclick'))}\n >ACK</obc-notification-button\n >`\n : html``}\n <obc-notification-button\n icon\n open-right\n ?indent=${empty}\n ?disabled=${disabledMute}\n @click=${() => this.dispatchEvent(new CustomEvent('muteclick'))}\n >\n <obi-14-mute></obi-14-mute>\n </obc-notification-button>`;\n }\n return html`\n <style>\n :host {\n max-width: ${this.maxWidth}px;\n }\n </style>\n <div\n class=${classMap({\n wrapper: true,\n minimized: this.minimized,\n })}\n style=${`max-width: ${this.maxWidth - 8}px;`}\n >\n ${firstPart}\n <obc-alert-button\n alert-type=${this.alertType}\n n-alerts=${this.nAlerts}\n ?counter=${!empty}\n ?blink-alarm-value=${this.blinkAlarmValue}\n ?blink-warning-value=${this.blinkWarningValue}\n @click=${() => this.dispatchEvent(new CustomEvent('alertclick'))}\n ></obc-alert-button>\n </div>\n `;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'ob-alert-topbar-element': ObcAlertTopbarElement;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAkCa,IAAA,wBAAN,cAAoC,WAAW;AAAA,EAA/C,cAAA;AAAA,UAAA,GAAA,SAAA;AACsD,SAAA,UAAA;AACR,SAAA,YACjD,UAAU;AAEV,SAAA,kBAAA;AAEkB,SAAA,oBAAA;AACwC,SAAA,UAAA;AACM,SAAA,aAAA;AAC3B,SAAA,YAAA;AACsB,SAAA,WAAA;AAAA,EAAA;AAAA,EAEpD,SAAS;AACV,UAAA,QAAQ,KAAK,YAAY;AAC/B,UAAM,eACJ,KAAK,cACL,SACA,KAAK,cAAc,UAAU,QAC7B,KAAK,cAAc,UAAU,WAC7B,KAAK,cAAc,UAAU;AAC3B,QAAA;AACJ,QAAI,KAAK,WAAW;AACN,kBAAA;AAAA;AAAA;AAAA;AAAA,iBAID,MAAM,KAAK,cAAc,IAAI,YAAY,WAAW,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA,IAAA,OAI5D;AACO,kBAAA;AAAA;AAAA,mBAEC,KAAK;AAAA,mBACL,MAAM,KAAK,cAAc,IAAI,YAAY,cAAc,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,UAKlE,KAAK,UACH;AAAA;AAAA,uBAEW,MAAM,KAAK,cAAc,IAAI,YAAY,UAAU,CAAC,CAAC;AAAA;AAAA,iBAGhE,MAAM;AAAA;AAAA;AAAA;AAAA,oBAIE,KAAK;AAAA,sBACH,YAAY;AAAA,mBACf,MAAM,KAAK,cAAc,IAAI,YAAY,WAAW,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA,IAIrE;AACO,WAAA;AAAA;AAAA;AAAA,uBAGY,KAAK,QAAQ;AAAA;AAAA;AAAA;AAAA,gBAIpB,SAAS;AAAA,MACf,SAAS;AAAA,MACT,WAAW,KAAK;AAAA,IAAA,CACjB,CAAC;AAAA,gBACM,cAAc,KAAK,WAAW,CAAC,KAAK;AAAA;AAAA,UAE1C,SAAS;AAAA;AAAA,uBAEI,KAAK,SAAS;AAAA,qBAChB,KAAK,OAAO;AAAA,qBACZ,CAAC,KAAK;AAAA,+BACI,KAAK,eAAe;AAAA,iCAClB,KAAK,iBAAiB;AAAA,mBACpC,MAAM,KAAK,cAAc,IAAI,YAAY,YAAY,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA,EAIxE;AAGF;AApFa,sBAmFK,SAAS,UAAU,YAAY;AAlFE,gBAAA;AAAA,EAAhD,SAAS,EAAC,MAAM,QAAQ,WAAW,YAAW;AAAA,GADpC,sBACsC,WAAA,WAAA,CAAA;AACE,gBAAA;AAAA,EAAlD,SAAS,EAAC,MAAM,QAAQ,WAAW,cAAa;AAAA,GAFtC,sBAEwC,WAAA,aAAA,CAAA;AAEQ,gBAAA;AAAA,EAA1D,SAAS,EAAC,MAAM,SAAS,WAAW,qBAAoB;AAAA,GAJ9C,sBAIgD,WAAA,mBAAA,CAAA;AAG3D,gBAAA;AAAA,EADC,SAAS,EAAC,MAAM,SAAS,WAAW,uBAAsB;AAAA,GANhD,sBAOX,WAAA,qBAAA,CAAA;AACkD,gBAAA;AAAA,EAAjD,SAAS,EAAC,MAAM,SAAS,WAAW,YAAW;AAAA,GARrC,sBAQuC,WAAA,WAAA,CAAA;AACG,gBAAA;AAAA,EAApD,SAAS,EAAC,MAAM,SAAS,WAAW,eAAc;AAAA,GATxC,sBAS0C,WAAA,cAAA,CAAA;AAC1B,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,SAAQ;AAAA,GAVd,sBAUgB,WAAA,aAAA,CAAA;AACuB,gBAAA;AAAA,EAAjD,SAAS,EAAC,MAAM,QAAQ,WAAW,aAAY;AAAA,GAXrC,sBAWuC,WAAA,YAAA,CAAA;AAXvC,wBAAN,gBAAA;AAAA,EADN,cAAc,0BAA0B;AAAA,GAC5B,qBAAA;"}
|