@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.61 → 2.0.0-next.63
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 +182 -167
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +14 -66
- package/dist/automation/automation-tank/automation-tank.d.ts +3 -7
- package/dist/automation/automation-tank/automation-tank.d.ts.map +1 -1
- package/dist/automation/automation-tank/automation-tank.js +1 -1
- package/dist/automation/automation-tank/automation-tank.js.map +1 -1
- package/dist/icons/icon-03-tidal-stream.js +2 -2
- package/dist/icons/icon-03-tidal-stream.js.map +1 -1
- package/dist/icons/icon-add-row-above.js +1 -1
- package/dist/icons/icon-add-row-above.js.map +1 -1
- package/dist/icons/icon-alarm-acknowledged-iec.js +1 -1
- package/dist/icons/icon-alarm-acknowledged-iec.js.map +1 -1
- package/dist/icons/icon-alarm-emergency-iec.js +2 -2
- package/dist/icons/icon-alarm-emergency-iec.js.map +1 -1
- package/dist/icons/icon-alarm-rectified-iec.js +1 -1
- package/dist/icons/icon-alarm-rectified-iec.js.map +1 -1
- package/dist/icons/icon-alarm-silenced-iec.js +2 -2
- package/dist/icons/icon-alarm-silenced-iec.js.map +1 -1
- package/dist/icons/icon-alarm-unacknowledged-iec.js +2 -2
- package/dist/icons/icon-alarm-unacknowledged-iec.js.map +1 -1
- package/dist/icons/icon-alert-empty.js +1 -1
- package/dist/icons/icon-alert-empty.js.map +1 -1
- package/dist/icons/icon-caution-color-iec.js +1 -1
- package/dist/icons/icon-caution-color-iec.js.map +1 -1
- package/dist/icons/icon-caution-empty.js +1 -1
- package/dist/icons/icon-caution-empty.js.map +1 -1
- package/dist/icons/icon-connector-corner.js +1 -1
- package/dist/icons/icon-connector-corner.js.map +1 -1
- package/dist/icons/icon-connector-straight.js +1 -1
- package/dist/icons/icon-connector-straight.js.map +1 -1
- package/dist/icons/icon-connector-threeway.js +1 -1
- package/dist/icons/icon-connector-threeway.js.map +1 -1
- package/dist/icons/icon-light-rain-showers-night-colour.js +2 -2
- package/dist/icons/icon-light-rain-showers-night-colour.js.map +1 -1
- package/dist/icons/icon-rain-showers-night.js +2 -2
- package/dist/icons/icon-rain-showers-night.js.map +1 -1
- package/dist/icons/icon-simplified-buoy-default.js +2 -2
- package/dist/icons/icon-simplified-buoy-default.js.map +1 -1
- package/dist/icons/icon-simplified-buoy-safe-water.js +2 -2
- package/dist/icons/icon-simplified-buoy-safe-water.js.map +1 -1
- package/dist/icons/icon-simplified-buoy-special-purpose.js +2 -2
- package/dist/icons/icon-simplified-buoy-special-purpose.js.map +1 -1
- package/dist/icons/icon-switch-03-off.js +2 -2
- package/dist/icons/icon-switch-03-off.js.map +1 -1
- package/dist/icons/icon-switch-horizontal-off-large.js +2 -2
- package/dist/icons/icon-switch-horizontal-off-large.js.map +1 -1
- package/dist/icons/icon-switch-horizontal-off.js +2 -2
- package/dist/icons/icon-switch-horizontal-off.js.map +1 -1
- package/dist/icons/icon-vessel-generic-anchored-colour.js +3 -3
- package/dist/icons/icon-vessel-generic-anchored-colour.js.map +1 -1
- package/dist/icons/icon-vessel-generic-default-colour.js +2 -2
- package/dist/icons/icon-vessel-generic-default-colour.js.map +1 -1
- package/dist/icons/icon-vessel-generic-fast-colour.js +5 -5
- package/dist/icons/icon-vessel-generic-fast-colour.js.map +1 -1
- package/dist/icons/icon-vessel-generic-medium-colour.js +4 -4
- package/dist/icons/icon-vessel-generic-medium-colour.js.map +1 -1
- package/dist/icons/icon-vessel-generic-slow-colour.js +3 -3
- package/dist/icons/icon-vessel-generic-slow-colour.js.map +1 -1
- package/dist/icons/icon-vessel-generic-stopped-colour.js +4 -4
- package/dist/icons/icon-vessel-generic-stopped-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-barge-colour.js +4 -4
- package/dist/icons/icon-vessel-type-barge-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-cargo-colour.js +5 -5
- package/dist/icons/icon-vessel-type-cargo-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-cruise-colour.js +3 -3
- package/dist/icons/icon-vessel-type-cruise-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-fishing-colour.js +4 -4
- package/dist/icons/icon-vessel-type-fishing-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-fishing-filled.js +2 -2
- package/dist/icons/icon-vessel-type-fishing-filled.js.map +1 -1
- package/dist/icons/icon-vessel-type-generic-colour.js +3 -3
- package/dist/icons/icon-vessel-type-generic-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-lifeboat-colour.js +4 -4
- package/dist/icons/icon-vessel-type-lifeboat-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-military-colour.js +3 -3
- package/dist/icons/icon-vessel-type-military-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-motor-boat-colour.js +2 -2
- package/dist/icons/icon-vessel-type-motor-boat-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-passenger-colour.js +10 -10
- package/dist/icons/icon-vessel-type-passenger-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-pilot-colour.js +5 -5
- package/dist/icons/icon-vessel-type-pilot-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-psv-colour.js +5 -5
- package/dist/icons/icon-vessel-type-psv-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-sailing-colour.js +2 -2
- package/dist/icons/icon-vessel-type-sailing-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-sar-colour.js +3 -3
- package/dist/icons/icon-vessel-type-sar-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-smallcraft-colour.js +2 -2
- package/dist/icons/icon-vessel-type-smallcraft-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-speed-craft-colour.js +2 -2
- package/dist/icons/icon-vessel-type-speed-craft-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-tanker-colour.js +5 -5
- package/dist/icons/icon-vessel-type-tanker-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-tug-colour.js +4 -4
- package/dist/icons/icon-vessel-type-tug-colour.js.map +1 -1
- package/dist/icons/icon-vessel-type-unknown-colour.js +3 -3
- package/dist/icons/icon-vessel-type-unknown-colour.js.map +1 -1
- package/dist/icons/icon-warning-acknowledged-iec.js +1 -1
- package/dist/icons/icon-warning-acknowledged-iec.js.map +1 -1
- package/dist/icons/icon-warning-empty.js +1 -1
- package/dist/icons/icon-warning-empty.js.map +1 -1
- package/dist/icons/icon-warning-noack-iec.js +2 -2
- package/dist/icons/icon-warning-noack-iec.js.map +1 -1
- package/dist/icons/icon-warning-rectified-iec.js +1 -1
- package/dist/icons/icon-warning-rectified-iec.js.map +1 -1
- package/dist/icons/icon-warning-silenced-iec.js +1 -1
- package/dist/icons/icon-warning-silenced-iec.js.map +1 -1
- package/dist/icons/icon-warning-transferred-iec.js +1 -1
- package/dist/icons/icon-warning-transferred-iec.js.map +1 -1
- package/dist/icons/icon-warning-unacknowledged-iec.js +1 -1
- package/dist/icons/icon-warning-unacknowledged-iec.js.map +1 -1
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.css.js +34 -9
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.css.js.map +1 -1
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.d.ts +3 -16
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.d.ts.map +1 -1
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.js +14 -24
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.js.map +1 -1
- package/dist/openbridge.css +237 -65
- package/package.json +3 -2
- package/script/check-css-variables.ts +1 -8
- package/script/check-icon-hex-leaks.ts +70 -0
- package/script/convert-icons.ts +79 -8
- package/script/download-alert-icons.ts +13 -0
- package/script/download-icons.ts +53 -14
- package/script/figmavariables.json +18 -1
- package/src/automation/automation-tank/automation-tank.ts +4 -8
- package/src/icons/icon-03-tidal-stream.ts +2 -2
- package/src/icons/icon-add-row-above.ts +1 -1
- package/src/icons/icon-alarm-acknowledged-iec.ts +1 -1
- package/src/icons/icon-alarm-emergency-iec.ts +2 -2
- package/src/icons/icon-alarm-rectified-iec.ts +1 -1
- package/src/icons/icon-alarm-silenced-iec.ts +2 -2
- package/src/icons/icon-alarm-unacknowledged-iec.ts +2 -2
- package/src/icons/icon-alert-empty.ts +1 -1
- package/src/icons/icon-caution-color-iec.ts +1 -1
- package/src/icons/icon-caution-empty.ts +1 -1
- package/src/icons/icon-connector-corner.ts +1 -1
- package/src/icons/icon-connector-straight.ts +1 -1
- package/src/icons/icon-connector-threeway.ts +1 -1
- package/src/icons/icon-light-rain-showers-night-colour.ts +2 -2
- package/src/icons/icon-rain-showers-night.ts +2 -2
- package/src/icons/icon-simplified-buoy-default.ts +2 -2
- package/src/icons/icon-simplified-buoy-safe-water.ts +2 -2
- package/src/icons/icon-simplified-buoy-special-purpose.ts +2 -2
- package/src/icons/icon-switch-03-off.ts +2 -2
- package/src/icons/icon-switch-horizontal-off-large.ts +2 -2
- package/src/icons/icon-switch-horizontal-off.ts +2 -2
- package/src/icons/icon-vessel-generic-anchored-colour.ts +3 -3
- package/src/icons/icon-vessel-generic-default-colour.ts +2 -2
- package/src/icons/icon-vessel-generic-fast-colour.ts +5 -5
- package/src/icons/icon-vessel-generic-medium-colour.ts +4 -4
- package/src/icons/icon-vessel-generic-slow-colour.ts +3 -3
- package/src/icons/icon-vessel-generic-stopped-colour.ts +4 -4
- package/src/icons/icon-vessel-type-barge-colour.ts +4 -4
- package/src/icons/icon-vessel-type-cargo-colour.ts +5 -5
- package/src/icons/icon-vessel-type-cruise-colour.ts +3 -3
- package/src/icons/icon-vessel-type-fishing-colour.ts +4 -4
- package/src/icons/icon-vessel-type-fishing-filled.ts +2 -2
- package/src/icons/icon-vessel-type-generic-colour.ts +3 -3
- package/src/icons/icon-vessel-type-lifeboat-colour.ts +4 -4
- package/src/icons/icon-vessel-type-military-colour.ts +3 -3
- package/src/icons/icon-vessel-type-motor-boat-colour.ts +2 -2
- package/src/icons/icon-vessel-type-passenger-colour.ts +10 -10
- package/src/icons/icon-vessel-type-pilot-colour.ts +5 -5
- package/src/icons/icon-vessel-type-psv-colour.ts +5 -5
- package/src/icons/icon-vessel-type-sailing-colour.ts +2 -2
- package/src/icons/icon-vessel-type-sar-colour.ts +3 -3
- package/src/icons/icon-vessel-type-smallcraft-colour.ts +2 -2
- package/src/icons/icon-vessel-type-speed-craft-colour.ts +2 -2
- package/src/icons/icon-vessel-type-tanker-colour.ts +5 -5
- package/src/icons/icon-vessel-type-tug-colour.ts +4 -4
- package/src/icons/icon-vessel-type-unknown-colour.ts +3 -3
- package/src/icons/icon-warning-acknowledged-iec.ts +1 -1
- package/src/icons/icon-warning-empty.ts +1 -1
- package/src/icons/icon-warning-noack-iec.ts +2 -2
- package/src/icons/icon-warning-rectified-iec.ts +1 -1
- package/src/icons/icon-warning-silenced-iec.ts +1 -1
- package/src/icons/icon-warning-transferred-iec.ts +1 -1
- package/src/icons/icon-warning-unacknowledged-iec.ts +1 -1
- package/src/integration-systems/integration-bar/integration-bar.stories.ts +69 -40
- package/src/integration-systems/integration-vessel-menu/integration-vessel-menu.css +33 -9
- package/src/integration-systems/integration-vessel-menu/integration-vessel-menu.stories.ts +54 -25
- package/src/integration-systems/integration-vessel-menu/integration-vessel-menu.ts +14 -38
- package/src/palettes/variables.css +237 -65
|
@@ -15,10 +15,10 @@ export class ObiVesselTypeTugColour extends LitElement {
|
|
|
15
15
|
`;
|
|
16
16
|
|
|
17
17
|
private iconCss = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
18
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7V17C18 20.3137 15.3137 23 12 23C8.68629 23 6 20.3137 6 17V7ZM16.5 7V17C16.5 19.4853 14.4853 21.5 12 21.5C9.51472 21.5 7.5 19.4853 7.5 17V7C7.5 4.51472 9.51472 2.5 12 2.5C14.4853 2.5 16.5 4.51472 16.5 7Z"
|
|
19
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.5 17V7C16.5 4.51472 14.4853 2.5 12 2.5C9.51472 2.5 7.5 4.51472 7.5 7V17C7.5 19.4853 9.51472 21.5 12 21.5C14.4853 21.5 16.5 19.4853 16.5 17Z"
|
|
20
|
-
<path d="M12 5L9 8V11H11.25V13.3542C10.975 13.4322 10.7124 13.553 10.4722 13.7135C10.0199 14.0156 9.66747 14.4451 9.45933 14.9476C9.25119 15.4501 9.19673 16.0031 9.30284 16.5365C9.40895 17.0699 9.67086 17.5599 10.0555 17.9445C10.4401 18.3291 10.9301 18.591 11.4635 18.6972C11.997 18.8033 12.5499 18.7488 13.0524 18.5407C13.5549 18.3325 13.9844 17.9801 14.2865 17.5278C14.5887 17.0756 14.75 16.5439 14.75 16H13.25C13.25 16.2472 13.1767 16.4889 13.0393 16.6945C12.902 16.9 12.7068 17.0602 12.4784 17.1549C12.2499 17.2495 11.9986 17.2742 11.7561 17.226C11.5137 17.1777 11.2909 17.0587 11.1161 16.8839C10.9413 16.7091 10.8223 16.4863 10.774 16.2439C10.7258 16.0014 10.7505 15.7501 10.8452 15.5216C10.9398 15.2932 11.1 15.098 11.3055 14.9607C11.5111 14.8233 11.7528 14.75 12 14.75H12.75V11H15V8L12 5Z"
|
|
21
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7V17C18 20.3137 15.3137 23 12 23C8.68629 23 6 20.3137 6 17V7ZM16.5 7V17C16.5 19.4853 14.4853 21.5 12 21.5C9.51472 21.5 7.5 19.4853 7.5 17V7C7.5 4.51472 9.51472 2.5 12 2.5C14.4853 2.5 16.5 4.51472 16.5 7Z"
|
|
18
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7V17C18 20.3137 15.3137 23 12 23C8.68629 23 6 20.3137 6 17V7ZM16.5 7V17C16.5 19.4853 14.4853 21.5 12 21.5C9.51472 21.5 7.5 19.4853 7.5 17V7C7.5 4.51472 9.51472 2.5 12 2.5C14.4853 2.5 16.5 4.51472 16.5 7Z" style="fill: var(--base-categorical-100)"/>
|
|
19
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.5 17V7C16.5 4.51472 14.4853 2.5 12 2.5C9.51472 2.5 7.5 4.51472 7.5 7V17C7.5 19.4853 9.51472 21.5 12 21.5C14.4853 21.5 16.5 19.4853 16.5 17Z" style="fill: var(--base-categorical-100)"/>
|
|
20
|
+
<path d="M12 5L9 8V11H11.25V13.3542C10.975 13.4322 10.7124 13.553 10.4722 13.7135C10.0199 14.0156 9.66747 14.4451 9.45933 14.9476C9.25119 15.4501 9.19673 16.0031 9.30284 16.5365C9.40895 17.0699 9.67086 17.5599 10.0555 17.9445C10.4401 18.3291 10.9301 18.591 11.4635 18.6972C11.997 18.8033 12.5499 18.7488 13.0524 18.5407C13.5549 18.3325 13.9844 17.9801 14.2865 17.5278C14.5887 17.0756 14.75 16.5439 14.75 16H13.25C13.25 16.2472 13.1767 16.4889 13.0393 16.6945C12.902 16.9 12.7068 17.0602 12.4784 17.1549C12.2499 17.2495 11.9986 17.2742 11.7561 17.226C11.5137 17.1777 11.2909 17.0587 11.1161 16.8839C10.9413 16.7091 10.8223 16.4863 10.774 16.2439C10.7258 16.0014 10.7505 15.7501 10.8452 15.5216C10.9398 15.2932 11.1 15.098 11.3055 14.9607C11.5111 14.8233 11.7528 14.75 12 14.75H12.75V11H15V8L12 5Z" style="fill: var(--base-categorical-600)"/>
|
|
21
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7V17C18 20.3137 15.3137 23 12 23C8.68629 23 6 20.3137 6 17V7ZM16.5 7V17C16.5 19.4853 14.4853 21.5 12 21.5C9.51472 21.5 7.5 19.4853 7.5 17V7C7.5 4.51472 9.51472 2.5 12 2.5C14.4853 2.5 16.5 4.51472 16.5 7Z" style="fill: var(--base-categorical-600)"/>
|
|
22
22
|
</svg>
|
|
23
23
|
`;
|
|
24
24
|
|
|
@@ -14,9 +14,9 @@ export class ObiVesselTypeUnknownColour extends LitElement {
|
|
|
14
14
|
`;
|
|
15
15
|
|
|
16
16
|
private iconCss = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
17
|
-
<path d="M12.376 1.35059C15.5589 3.19189 17.7124 6.62132 17.75 10.5576V22.7109H6.25V10.5576L6.25977 10.1904C6.42329 6.40859 8.54116 3.13428 11.625 1.35059L12 1.13379L12.376 1.35059Z"
|
|
18
|
-
<path d="M7.75 21.1465V22.7109H6.25V21.1465H7.75ZM11.0479 21.2109V22.7109H9.61914V21.2109H11.0479ZM14.3809 21.2109V22.7109H12.9521V21.2109H14.3809ZM17.75 21.1465V22.7109H16.25V21.1465H17.75ZM7.75 17.3486V18.9766H6.25V17.3486H7.75ZM17.75 17.3477V18.9756H16.25V17.3477H17.75ZM7.75 13.5498V15.1777H6.25V13.5498H7.75ZM17.75 13.5498V15.1777H16.25V13.5498H17.75ZM7.03418 9.82422L7.78125 9.88672C7.76249 10.1129 7.75221 10.3415 7.75 10.5723V11.3789H6.25V10.5576L6.26074 10.1582C6.26687 10.0257 6.27622 9.89392 6.28711 9.7627L7.03418 9.82422ZM17.7129 9.7627C17.7347 10.0252 17.7474 10.2903 17.75 10.5576V11.3789H16.25V10.5723L16.2402 10.2275C16.235 10.1133 16.2271 9.99974 16.2178 9.88672L16.9658 9.82422L17.7129 9.7627ZM7.90625 6.49512L8.58789 6.80859C8.39863 7.22094 8.23898 7.6496 8.11133 8.0918L6.66992 7.67578C6.81849 7.16115 7.00443 6.6623 7.22461 6.18262L7.90625 6.49512ZM16.7754 6.18262C16.9955 6.66225 17.1815 7.1612 17.3301 7.67578L15.8887 8.0918C15.761 7.64966 15.6013 7.2209 15.4121 6.80859L16.0938 6.49512L16.7754 6.18262ZM10.3945 4.18652C10.0748 4.51263 9.77873 4.86212 9.50977 5.23242L8.2959 4.35156C8.60847 3.92121 8.95275 3.51453 9.32422 3.13574L10.3945 4.18652ZM14.6758 3.13574C15.0472 3.51453 15.3916 3.92122 15.7041 4.35156L14.4902 5.23242C14.2213 4.86211 13.9252 4.51264 13.6055 4.18652L14.6758 3.13574ZM12.376 1.35059C12.6063 1.4838 12.8308 1.62603 13.0498 1.77539L12.627 2.39453L12.2051 3.01465L12 3L11.7949 3.01465L11.373 2.39453L10.9502 1.77539C11.1693 1.626 11.3946 1.48382 11.625 1.35059L12 1.13379L12.376 1.35059Z"
|
|
19
|
-
<path d="M10.9865 14.5685C10.9865 14.2999 11.0165 14.0597 11.0766 13.848C11.1441 13.6282 11.253 13.4247 11.4032 13.2374C11.5608 13.0502 11.7673 12.8548 12.0225 12.6513C12.2553 12.464 12.4392 12.3012 12.5743 12.1628C12.717 12.0163 12.8183 11.8738 12.8784 11.7354C12.9459 11.5889 12.9797 11.4261 12.9797 11.2469C12.9797 10.9701 12.8896 10.7626 12.7095 10.6242C12.5293 10.4776 12.274 10.4043 11.9437 10.4043C11.6209 10.4043 11.3056 10.4573 10.9977 10.5631C10.6974 10.6689 10.3896 10.8073 10.0743 10.9783L9.5 9.7327C9.86036 9.51289 10.2508 9.33786 10.6712 9.2076C11.0916 9.0692 11.5533 9 12.0563 9C12.8296 9 13.4302 9.20353 13.8581 9.61058C14.286 10.0095 14.5 10.5265 14.5 11.1615C14.5 11.4953 14.4512 11.7883 14.3536 12.0407C14.256 12.2849 14.1059 12.5129 13.9032 12.7246C13.708 12.9281 13.4677 13.1479 13.1824 13.384C12.9572 13.5631 12.7845 13.7178 12.6644 13.848C12.5443 13.9701 12.4617 14.0923 12.4167 14.2144C12.3791 14.3365 12.3604 14.483 12.3604 14.654V14.9959H10.9865V14.5685ZM10.795 17.0109C10.795 16.6445 10.8851 16.3881 11.0653 16.2415C11.2455 16.095 11.467 16.0217 11.7297 16.0217C11.985 16.0217 12.2027 16.095 12.3829 16.2415C12.5631 16.3881 12.6532 16.6445 12.6532 17.0109C12.6532 17.3609 12.5631 17.6133 12.3829 17.768C12.2027 17.9227 11.985 18 11.7297 18C11.467 18 11.2455 17.9227 11.0653 17.768C10.8851 17.6133 10.795 17.3609 10.795 17.0109Z"
|
|
17
|
+
<path d="M12.376 1.35059C15.5589 3.19189 17.7124 6.62132 17.75 10.5576V22.7109H6.25V10.5576L6.25977 10.1904C6.42329 6.40859 8.54116 3.13428 11.625 1.35059L12 1.13379L12.376 1.35059Z" style="fill: var(--base-categorical-100)"/>
|
|
18
|
+
<path d="M7.75 21.1465V22.7109H6.25V21.1465H7.75ZM11.0479 21.2109V22.7109H9.61914V21.2109H11.0479ZM14.3809 21.2109V22.7109H12.9521V21.2109H14.3809ZM17.75 21.1465V22.7109H16.25V21.1465H17.75ZM7.75 17.3486V18.9766H6.25V17.3486H7.75ZM17.75 17.3477V18.9756H16.25V17.3477H17.75ZM7.75 13.5498V15.1777H6.25V13.5498H7.75ZM17.75 13.5498V15.1777H16.25V13.5498H17.75ZM7.03418 9.82422L7.78125 9.88672C7.76249 10.1129 7.75221 10.3415 7.75 10.5723V11.3789H6.25V10.5576L6.26074 10.1582C6.26687 10.0257 6.27622 9.89392 6.28711 9.7627L7.03418 9.82422ZM17.7129 9.7627C17.7347 10.0252 17.7474 10.2903 17.75 10.5576V11.3789H16.25V10.5723L16.2402 10.2275C16.235 10.1133 16.2271 9.99974 16.2178 9.88672L16.9658 9.82422L17.7129 9.7627ZM7.90625 6.49512L8.58789 6.80859C8.39863 7.22094 8.23898 7.6496 8.11133 8.0918L6.66992 7.67578C6.81849 7.16115 7.00443 6.6623 7.22461 6.18262L7.90625 6.49512ZM16.7754 6.18262C16.9955 6.66225 17.1815 7.1612 17.3301 7.67578L15.8887 8.0918C15.761 7.64966 15.6013 7.2209 15.4121 6.80859L16.0938 6.49512L16.7754 6.18262ZM10.3945 4.18652C10.0748 4.51263 9.77873 4.86212 9.50977 5.23242L8.2959 4.35156C8.60847 3.92121 8.95275 3.51453 9.32422 3.13574L10.3945 4.18652ZM14.6758 3.13574C15.0472 3.51453 15.3916 3.92122 15.7041 4.35156L14.4902 5.23242C14.2213 4.86211 13.9252 4.51264 13.6055 4.18652L14.6758 3.13574ZM12.376 1.35059C12.6063 1.4838 12.8308 1.62603 13.0498 1.77539L12.627 2.39453L12.2051 3.01465L12 3L11.7949 3.01465L11.373 2.39453L10.9502 1.77539C11.1693 1.626 11.3946 1.48382 11.625 1.35059L12 1.13379L12.376 1.35059Z" style="fill: var(--base-categorical-600)"/>
|
|
19
|
+
<path d="M10.9865 14.5685C10.9865 14.2999 11.0165 14.0597 11.0766 13.848C11.1441 13.6282 11.253 13.4247 11.4032 13.2374C11.5608 13.0502 11.7673 12.8548 12.0225 12.6513C12.2553 12.464 12.4392 12.3012 12.5743 12.1628C12.717 12.0163 12.8183 11.8738 12.8784 11.7354C12.9459 11.5889 12.9797 11.4261 12.9797 11.2469C12.9797 10.9701 12.8896 10.7626 12.7095 10.6242C12.5293 10.4776 12.274 10.4043 11.9437 10.4043C11.6209 10.4043 11.3056 10.4573 10.9977 10.5631C10.6974 10.6689 10.3896 10.8073 10.0743 10.9783L9.5 9.7327C9.86036 9.51289 10.2508 9.33786 10.6712 9.2076C11.0916 9.0692 11.5533 9 12.0563 9C12.8296 9 13.4302 9.20353 13.8581 9.61058C14.286 10.0095 14.5 10.5265 14.5 11.1615C14.5 11.4953 14.4512 11.7883 14.3536 12.0407C14.256 12.2849 14.1059 12.5129 13.9032 12.7246C13.708 12.9281 13.4677 13.1479 13.1824 13.384C12.9572 13.5631 12.7845 13.7178 12.6644 13.848C12.5443 13.9701 12.4617 14.0923 12.4167 14.2144C12.3791 14.3365 12.3604 14.483 12.3604 14.654V14.9959H10.9865V14.5685ZM10.795 17.0109C10.795 16.6445 10.8851 16.3881 11.0653 16.2415C11.2455 16.095 11.467 16.0217 11.7297 16.0217C11.985 16.0217 12.2027 16.095 12.3829 16.2415C12.5631 16.3881 12.6532 16.6445 12.6532 17.0109C12.6532 17.3609 12.5631 17.6133 12.3829 17.768C12.2027 17.9227 11.985 18 11.7297 18C11.467 18 11.2455 17.9227 11.0653 17.768C10.8851 17.6133 10.795 17.3609 10.795 17.0109Z" style="fill: var(--base-categorical-600)"/>
|
|
20
20
|
</svg>
|
|
21
21
|
`;
|
|
22
22
|
|
|
@@ -8,7 +8,7 @@ export class ObiWarningAcknowledgedIec extends LitElement {
|
|
|
8
8
|
|
|
9
9
|
private icon = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
10
10
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" fill="currentColor"/>
|
|
11
|
-
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" stroke="
|
|
11
|
+
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" stroke="currentColor"/>
|
|
12
12
|
<path d="M13 13V7H11V13H13Z" fill="currentColor"/>
|
|
13
13
|
<path d="M13 17V15H11V17H13Z" fill="currentColor"/>
|
|
14
14
|
</svg>
|
|
@@ -8,7 +8,7 @@ export class ObiWarningEmpty extends LitElement {
|
|
|
8
8
|
|
|
9
9
|
private icon = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
10
10
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" fill="currentColor" />
|
|
11
|
-
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" stroke="
|
|
11
|
+
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" stroke="currentColor" />
|
|
12
12
|
</svg>
|
|
13
13
|
`;
|
|
14
14
|
|
|
@@ -7,13 +7,13 @@ export class ObiWarningNoackIec extends LitElement {
|
|
|
7
7
|
@property({type: Boolean}) useCssColor = false;
|
|
8
8
|
|
|
9
9
|
private icon = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
-
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" fill="currentColor" stroke="
|
|
10
|
+
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" fill="currentColor" stroke="currentColor"/>
|
|
11
11
|
<path d="M19.743 5.67138L13.4143 12.0001L19.743 18.3288C19.3198 18.8459 18.8459 19.3198 18.3288 19.743L12.0001 13.4143L5.67138 19.743C5.15426 19.3199 4.68032 18.8459 4.25715 18.3288L10.5859 12.0001L4.25708 5.67129C4.68024 5.15419 5.15419 4.68024 5.67129 4.25708L12.0001 10.5859L18.3288 4.25715C18.8459 4.68032 19.3199 5.15426 19.743 5.67138Z" fill="currentColor"/>
|
|
12
12
|
</svg>
|
|
13
13
|
`;
|
|
14
14
|
|
|
15
15
|
private iconCss = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
16
|
-
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" style="fill: var(--alert-warning-color)
|
|
16
|
+
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" style="fill: var(--alert-warning-color); stroke: var(--alert-warning-outline-color)"/>
|
|
17
17
|
<path d="M19.743 5.67138L13.4143 12.0001L19.743 18.3288C19.3198 18.8459 18.8459 19.3198 18.3288 19.743L12.0001 13.4143L5.67138 19.743C5.15426 19.3199 4.68032 18.8459 4.25715 18.3288L10.5859 12.0001L4.25708 5.67129C4.68024 5.15419 5.15419 4.68024 5.67129 4.25708L12.0001 10.5859L18.3288 4.25715C18.8459 4.68032 19.3199 5.15426 19.743 5.67138Z" style="fill: var(--on-warning-active-color)"/>
|
|
18
18
|
</svg>
|
|
19
19
|
`;
|
|
@@ -8,7 +8,7 @@ export class ObiWarningRectifiedIec extends LitElement {
|
|
|
8
8
|
|
|
9
9
|
private icon = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
10
10
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" fill="currentColor"/>
|
|
11
|
-
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" stroke="
|
|
11
|
+
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" stroke="currentColor"/>
|
|
12
12
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.2071 9.20706L10.5 16.9142L5.79291 12.2071L7.20712 10.7928L10.5 14.0857L16.7929 7.79285L18.2071 9.20706Z" fill="currentColor"/>
|
|
13
13
|
</svg>
|
|
14
14
|
`;
|
|
@@ -8,7 +8,7 @@ export class ObiWarningSilencedIec extends LitElement {
|
|
|
8
8
|
|
|
9
9
|
private icon = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
10
10
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" fill="currentColor"/>
|
|
11
|
-
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" stroke="
|
|
11
|
+
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" stroke="currentColor"/>
|
|
12
12
|
<path d="M8.876 6.68796L7.81255 5.62451L6.75189 6.68517L10.0666 9.99993H8.29999C8.01997 9.99993 7.87995 9.99993 7.773 10.0544C7.67892 10.1024 7.60243 10.1789 7.55449 10.2729C7.49999 10.3799 7.49999 10.5199 7.49999 10.7999V13.1999C7.49999 13.48 7.49999 13.62 7.55449 13.7269C7.60243 13.821 7.67892 13.8975 7.773 13.9454C7.87995 13.9999 8.01997 13.9999 8.29999 13.9999H10.6686C10.7909 13.9999 10.8521 13.9999 10.9096 14.0137C10.9606 14.026 11.0094 14.0462 11.0541 14.0736C11.1046 14.1045 11.1478 14.1478 11.2343 14.2342L13.6343 16.6342C14.0627 17.0626 14.2769 17.2768 14.4608 17.2913C14.6203 17.3038 14.7762 17.2393 14.8802 17.1175C15 16.9773 15 16.6744 15 16.0686V14.9333L17.3585 17.2918L18.4192 16.2311L18.0684 15.8803L18.067 15.8817L8.87464 6.68932L8.876 6.68796Z" fill="currentColor"/>
|
|
13
13
|
<path d="M15 10.6933V7.9313C15 7.32548 15 7.02257 14.8802 6.88231C14.7762 6.7606 14.6203 6.69602 14.4608 6.70858C14.2769 6.72305 14.0627 6.93724 13.6343 7.36561L12.6533 8.34664L15 10.6933Z" fill="currentColor"/>
|
|
14
14
|
</svg>
|
|
@@ -8,7 +8,7 @@ export class ObiWarningTransferredIec extends LitElement {
|
|
|
8
8
|
|
|
9
9
|
private icon = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
10
10
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" fill="currentColor"/>
|
|
11
|
-
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" stroke="
|
|
11
|
+
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" stroke="currentColor"/>
|
|
12
12
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.2071 6.79297L18.4142 12.0001L13.2071 17.2072L11.7929 15.793L14.5858 13.0001H6V11.0001H14.5858L11.7929 8.20718L13.2071 6.79297Z" fill="currentColor"/>
|
|
13
13
|
</svg>
|
|
14
14
|
`;
|
|
@@ -8,7 +8,7 @@ export class ObiWarningUnacknowledgedIec extends LitElement {
|
|
|
8
8
|
|
|
9
9
|
private icon = svg`<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
10
10
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" fill="currentColor"/>
|
|
11
|
-
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" stroke="
|
|
11
|
+
<path d="M12 2.5C17.2467 2.5 21.5 6.75329 21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5Z" stroke="currentColor"/>
|
|
12
12
|
<path d="M7.5 13.1999V10.7999C7.5 10.5199 7.5 10.3799 7.5545 10.2729C7.60243 10.1789 7.67892 10.1024 7.773 10.0544C7.87996 9.99993 8.01997 9.99993 8.3 9.99993H10.6686C10.7909 9.99993 10.8521 9.99993 10.9096 9.98611C10.9606 9.97386 11.0094 9.95366 11.0541 9.92625C11.1046 9.89533 11.1478 9.85209 11.2343 9.76561L13.6343 7.36561C14.0627 6.93724 14.2769 6.72305 14.4608 6.70858C14.6203 6.69602 14.7763 6.76061 14.8802 6.88231C15 7.02257 15 7.32548 15 7.9313V16.0686C15 16.6744 15 16.9773 14.8802 17.1175C14.7763 17.2392 14.6203 17.3038 14.4608 17.2913C14.2769 17.2768 14.0627 17.0626 13.6343 16.6342L11.2343 14.2342C11.1478 14.1478 11.1046 14.1045 11.0541 14.0736C11.0094 14.0462 10.9606 14.026 10.9096 14.0137C10.8521 13.9999 10.7909 13.9999 10.6686 13.9999H8.3C8.01997 13.9999 7.87996 13.9999 7.773 13.9454C7.67892 13.8975 7.60243 13.821 7.5545 13.7269C7.5 13.62 7.5 13.48 7.5 13.1999Z" fill="currentColor"/>
|
|
13
13
|
</svg>
|
|
14
14
|
`;
|
|
@@ -3,6 +3,7 @@ import {ObcIntegrationBar} from './integration-bar.js';
|
|
|
3
3
|
import './integration-bar.js';
|
|
4
4
|
import {html, nothing} from 'lit';
|
|
5
5
|
import '../../components/dropdown-button/dropdown-button.js';
|
|
6
|
+
import '../../components/button/button.js';
|
|
6
7
|
import '../../components/clock/clock.js';
|
|
7
8
|
import '../integration-vessel-menu/integration-vessel-menu.js';
|
|
8
9
|
import {
|
|
@@ -104,16 +105,23 @@ function renderIntegrationButtons({
|
|
|
104
105
|
<div slot="info-status">Info Status</div>
|
|
105
106
|
<div slot="status">Status</div>
|
|
106
107
|
${showIntegrationMenu
|
|
107
|
-
? html`<obc-integration-vessel-menu
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<
|
|
108
|
+
? html`<obc-integration-vessel-menu slot="integration-vessel-menu"
|
|
109
|
+
><obc-button
|
|
110
|
+
slot="buttons"
|
|
111
|
+
?fullWidth=${true}
|
|
112
|
+
?showLeadingIcon=${true}
|
|
113
|
+
@click=${() => console.log('Boat Button 1 clicked')}
|
|
114
|
+
><obi-placeholder slot="leading-icon"></obi-placeholder
|
|
115
|
+
>Select</obc-button
|
|
116
|
+
>
|
|
117
|
+
<obc-button
|
|
118
|
+
slot="buttons"
|
|
119
|
+
?fullWidth=${true}
|
|
120
|
+
?showLeadingIcon=${true}
|
|
121
|
+
@click=${() => console.log('Boat Button 2 clicked')}
|
|
122
|
+
><obi-placeholder slot="leading-icon"></obi-placeholder
|
|
123
|
+
>Dismiss</obc-button
|
|
124
|
+
>
|
|
117
125
|
<div slot="content" style="padding: 24px;">
|
|
118
126
|
<p>Boat is working just fine.</p>
|
|
119
127
|
</div></obc-integration-vessel-menu
|
|
@@ -141,16 +149,23 @@ function renderIntegrationButtons({
|
|
|
141
149
|
<div slot="info-status">Info Status</div>
|
|
142
150
|
<div slot="status">Status</div>
|
|
143
151
|
${showIntegrationMenu
|
|
144
|
-
? html`<obc-integration-vessel-menu
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
<
|
|
152
|
+
? html`<obc-integration-vessel-menu slot="integration-vessel-menu"
|
|
153
|
+
><obc-button
|
|
154
|
+
slot="buttons"
|
|
155
|
+
?fullWidth=${true}
|
|
156
|
+
?showLeadingIcon=${true}
|
|
157
|
+
@click=${() => console.log('Space Ship Button 1 clicked')}
|
|
158
|
+
><obi-placeholder slot="leading-icon"></obi-placeholder
|
|
159
|
+
>Select</obc-button
|
|
160
|
+
>
|
|
161
|
+
<obc-button
|
|
162
|
+
slot="buttons"
|
|
163
|
+
?fullWidth=${true}
|
|
164
|
+
?showLeadingIcon=${true}
|
|
165
|
+
@click=${() => console.log('Space Ship Button 2 clicked')}
|
|
166
|
+
><obi-placeholder slot="leading-icon"></obi-placeholder
|
|
167
|
+
>Dismiss</obc-button
|
|
168
|
+
>
|
|
154
169
|
<div slot="content" style="padding: 24px;">
|
|
155
170
|
<p>Space Ship is working just fine.</p>
|
|
156
171
|
</div></obc-integration-vessel-menu
|
|
@@ -178,16 +193,23 @@ function renderIntegrationButtons({
|
|
|
178
193
|
<div slot="info-status">Info Status</div>
|
|
179
194
|
<div slot="status">Status</div>
|
|
180
195
|
${showIntegrationMenu
|
|
181
|
-
? html`<obc-integration-vessel-menu
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
<
|
|
196
|
+
? html`<obc-integration-vessel-menu slot="integration-vessel-menu"
|
|
197
|
+
><obc-button
|
|
198
|
+
slot="buttons"
|
|
199
|
+
?fullWidth=${true}
|
|
200
|
+
?showLeadingIcon=${true}
|
|
201
|
+
@click=${() => console.log('Vessel Button 1 clicked')}
|
|
202
|
+
><obi-placeholder slot="leading-icon"></obi-placeholder
|
|
203
|
+
>Select</obc-button
|
|
204
|
+
>
|
|
205
|
+
<obc-button
|
|
206
|
+
slot="buttons"
|
|
207
|
+
?fullWidth=${true}
|
|
208
|
+
?showLeadingIcon=${true}
|
|
209
|
+
@click=${() => console.log('Vessel Button 2 clicked')}
|
|
210
|
+
><obi-placeholder slot="leading-icon"></obi-placeholder
|
|
211
|
+
>Dismiss</obc-button
|
|
212
|
+
>
|
|
191
213
|
<div slot="content" style="padding: 24px;">
|
|
192
214
|
<p>Vessel is working just fine.</p>
|
|
193
215
|
</div></obc-integration-vessel-menu
|
|
@@ -215,16 +237,23 @@ function renderIntegrationButtons({
|
|
|
215
237
|
<div slot="info-status">Info Status</div>
|
|
216
238
|
<div slot="status">Status</div>
|
|
217
239
|
${showIntegrationMenu
|
|
218
|
-
? html`<obc-integration-vessel-menu
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
<
|
|
240
|
+
? html`<obc-integration-vessel-menu slot="integration-vessel-menu"
|
|
241
|
+
><obc-button
|
|
242
|
+
slot="buttons"
|
|
243
|
+
?fullWidth=${true}
|
|
244
|
+
?showLeadingIcon=${true}
|
|
245
|
+
@click=${() => console.log('Last Button 1 clicked')}
|
|
246
|
+
><obi-placeholder slot="leading-icon"></obi-placeholder
|
|
247
|
+
>Select</obc-button
|
|
248
|
+
>
|
|
249
|
+
<obc-button
|
|
250
|
+
slot="buttons"
|
|
251
|
+
?fullWidth=${true}
|
|
252
|
+
?showLeadingIcon=${true}
|
|
253
|
+
@click=${() => console.log('Last Button 2 clicked')}
|
|
254
|
+
><obi-placeholder slot="leading-icon"></obi-placeholder
|
|
255
|
+
>Dismiss</obc-button
|
|
256
|
+
>
|
|
228
257
|
<div slot="content" style="padding: 24px;">
|
|
229
258
|
<p>Last is working just fine.</p>
|
|
230
259
|
</div></obc-integration-vessel-menu
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
@mixin style style=integration-normal noClick=true;
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
|
-
height: 100%;
|
|
10
|
-
min-width: 788px;
|
|
11
9
|
align-items: center;
|
|
12
10
|
background: var(--container-global-color);
|
|
13
11
|
border-radius: var(
|
|
@@ -22,31 +20,57 @@
|
|
|
22
20
|
.footer-container {
|
|
23
21
|
width: 100%;
|
|
24
22
|
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
align-self: stretch;
|
|
25
25
|
height: var(
|
|
26
26
|
--app-components-integration-system-dropdown-menu-action-container-height
|
|
27
27
|
);
|
|
28
|
-
padding:
|
|
29
|
-
var(--app-components-integration-system-
|
|
30
|
-
gap: var(--app-components-
|
|
28
|
+
padding: var(--app-components-integration-system-menu-padding-vertical)
|
|
29
|
+
var(--app-components-integration-system-menu-padding-horizontal);
|
|
30
|
+
gap: var(--app-components-integration-system-menu-action-spacing);
|
|
31
31
|
border-top: 1px solid var(--border-divider-color);
|
|
32
32
|
background: var(--container-global-color);
|
|
33
|
+
border-radius: 12px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.content-area {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
align-items: flex-start;
|
|
40
|
+
gap: 8px;
|
|
41
|
+
align-self: stretch;
|
|
42
|
+
border-radius: 8px;
|
|
33
43
|
}
|
|
34
44
|
|
|
35
|
-
.footer-container obc-button {
|
|
36
|
-
|
|
45
|
+
.footer-container slot[name="buttons"]::slotted(:not(obc-button)) {
|
|
46
|
+
display: contents;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.footer-container slot[name="buttons"]::slotted(*) {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex: 1 1 0px;
|
|
52
|
+
width: 100%;
|
|
37
53
|
white-space: nowrap;
|
|
38
54
|
}
|
|
39
55
|
|
|
56
|
+
.buttons-slot {
|
|
57
|
+
display: contents;
|
|
58
|
+
}
|
|
59
|
+
|
|
40
60
|
.content-container {
|
|
41
61
|
display: flex;
|
|
42
62
|
justify-content: center;
|
|
43
|
-
align-items:
|
|
63
|
+
align-items: flex-start;
|
|
44
64
|
align-self: stretch;
|
|
45
65
|
min-height: 0;
|
|
46
66
|
flex: 1;
|
|
67
|
+
border-radius: 8px;
|
|
68
|
+
&.hidealarmlist {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
47
71
|
}
|
|
48
72
|
|
|
49
|
-
.
|
|
73
|
+
.alertlist {
|
|
50
74
|
width: 100%;
|
|
51
75
|
}
|
|
52
76
|
|
|
@@ -106,13 +106,10 @@ const meta: Meta<ObcIntegrationVesselMenu> = {
|
|
|
106
106
|
title: 'Integration Systems/Integration Vessel Menu',
|
|
107
107
|
component: 'obc-integration-vessel-menu',
|
|
108
108
|
tags: ['alpha'],
|
|
109
|
-
args: {
|
|
109
|
+
args: {hideAlarmList: false},
|
|
110
110
|
argTypes: {
|
|
111
|
-
|
|
112
|
-
control: '
|
|
113
|
-
min: 0,
|
|
114
|
-
max: 3,
|
|
115
|
-
step: 1,
|
|
111
|
+
hideAlarmList: {
|
|
112
|
+
control: 'boolean',
|
|
116
113
|
},
|
|
117
114
|
},
|
|
118
115
|
parameters: {
|
|
@@ -129,7 +126,7 @@ export default meta;
|
|
|
129
126
|
type Story = StoryObj<ObcIntegrationVesselMenu>;
|
|
130
127
|
|
|
131
128
|
interface IntegrationVesselMenuArgs {
|
|
132
|
-
|
|
129
|
+
hideAlarmList: boolean;
|
|
133
130
|
}
|
|
134
131
|
|
|
135
132
|
type IntegrationVesselMenuTemplate = (
|
|
@@ -137,34 +134,61 @@ type IntegrationVesselMenuTemplate = (
|
|
|
137
134
|
) => ReturnType<typeof html>;
|
|
138
135
|
|
|
139
136
|
const template: IntegrationVesselMenuTemplate = (args) => html`
|
|
140
|
-
<obc-integration-vessel-menu
|
|
141
|
-
.numberOfButtons=${args.numberOfButtons}
|
|
142
|
-
@button-1-click=${() => console.log('Button 1 clicked')}
|
|
143
|
-
@button-2-click=${() => console.log('Button 2 clicked')}
|
|
144
|
-
@button-3-click=${() => console.log('Button 3 clicked')}
|
|
145
|
-
>
|
|
137
|
+
<obc-integration-vessel-menu .hideAlarmList=${args.hideAlarmList}>
|
|
146
138
|
<div slot="content" style="padding: 24px;">
|
|
147
139
|
<div style="width: 496px; height: 256;">
|
|
148
140
|
<p>Content area</p>
|
|
149
141
|
</div>
|
|
150
142
|
</div>
|
|
151
|
-
<
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
143
|
+
<obc-button
|
|
144
|
+
slot="buttons"
|
|
145
|
+
@click=${() => console.log('Button 1 clicked')}
|
|
146
|
+
?fullWidth=${true}
|
|
147
|
+
>
|
|
148
|
+
<div>Action 1</div>
|
|
149
|
+
</obc-button>
|
|
150
|
+
<obc-button
|
|
151
|
+
slot="buttons"
|
|
152
|
+
@click=${() => console.log('Button 2 clicked')}
|
|
153
|
+
?fullWidth=${true}
|
|
154
|
+
>
|
|
155
|
+
Ac. 2
|
|
156
|
+
</obc-button>
|
|
157
|
+
<obc-button
|
|
158
|
+
slot="buttons"
|
|
159
|
+
@click=${() => console.log('Button 3 clicked')}
|
|
160
|
+
?fullWidth=${true}
|
|
161
|
+
>
|
|
162
|
+
Action number 3
|
|
163
|
+
</obc-button>
|
|
164
|
+
|
|
157
165
|
${renderAlarms()}
|
|
158
166
|
</obc-integration-vessel-menu>
|
|
159
167
|
`;
|
|
160
168
|
|
|
161
169
|
const templateWithoutAlarms: IntegrationVesselMenuTemplate = (args) => html`
|
|
162
|
-
<obc-integration-vessel-menu
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
170
|
+
<obc-integration-vessel-menu .hideAlarmList=${args.hideAlarmList}>
|
|
171
|
+
<obc-button
|
|
172
|
+
slot="buttons"
|
|
173
|
+
@click=${() => console.log('Button 1 clicked')}
|
|
174
|
+
?fullWidth=${true}
|
|
175
|
+
>
|
|
176
|
+
Action 1
|
|
177
|
+
</obc-button>
|
|
178
|
+
<obc-button
|
|
179
|
+
slot="buttons"
|
|
180
|
+
@click=${() => console.log('Button 2 clicked')}
|
|
181
|
+
?fullWidth=${true}
|
|
182
|
+
>
|
|
183
|
+
Ac. 2
|
|
184
|
+
</obc-button>
|
|
185
|
+
<obc-button
|
|
186
|
+
slot="buttons"
|
|
187
|
+
@click=${() => console.log('Button 3 clicked')}
|
|
188
|
+
?fullWidth=${true}
|
|
189
|
+
>
|
|
190
|
+
Action number 3
|
|
191
|
+
</obc-button>
|
|
168
192
|
<div slot="content" style="padding: 24px;">
|
|
169
193
|
<p>Add content here</p>
|
|
170
194
|
</div>
|
|
@@ -178,3 +202,8 @@ export const Default: Story = {
|
|
|
178
202
|
export const WithoutAlarms: Story = {
|
|
179
203
|
render: templateWithoutAlarms,
|
|
180
204
|
};
|
|
205
|
+
|
|
206
|
+
export const WithoutAlarmsHideEmptyAlarmList: Story = {
|
|
207
|
+
render: templateWithoutAlarms,
|
|
208
|
+
args: {hideAlarmList: true},
|
|
209
|
+
};
|
|
@@ -12,46 +12,15 @@ import '../../building-blocks/alert-list/alert-list.js';
|
|
|
12
12
|
/**
|
|
13
13
|
* `<obc-integration-vessel-menu>` – A menu to be shown when selecting a obc-integration-button from a obc-integration-bar.
|
|
14
14
|
*
|
|
15
|
-
* @slot
|
|
16
|
-
* @slot title - Header title text.
|
|
17
|
-
* @slot button-1-leading-icon - Leading icon for the first button.
|
|
18
|
-
* @slot button-1-label - Label for the first button.
|
|
19
|
-
* @slot button-2-leading-icon - Leading icon for the second button.
|
|
20
|
-
* @slot button-2-label - Label for the second button.
|
|
21
|
-
* @slot button-3-leading-icon - Leading icon for the third button.
|
|
22
|
-
* @slot button-3-label - Label for the third button.
|
|
15
|
+
* @slot buttons - Buttons shown in the footer.
|
|
23
16
|
* @slot content - Main content shown in the content area.
|
|
24
17
|
* @slot alarms - Alarm items rendered inside the alert list.
|
|
25
|
-
*
|
|
26
|
-
* @property {number} numberOfButtons - Number of buttons to render (up to 3).
|
|
27
|
-
*
|
|
28
|
-
* @fires button1-click - Fired when the first button is clicked.
|
|
29
|
-
* @fires button2-click - Fired when the second button is clicked.
|
|
30
|
-
* @fires button3-click - Fired when the third button is clicked.
|
|
31
18
|
*/
|
|
32
19
|
|
|
33
20
|
@customElement('obc-integration-vessel-menu')
|
|
34
21
|
export class ObcIntegrationVesselMenu extends LitElement {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
private renderButtons() {
|
|
38
|
-
return html`${Array.from({length: this.numberOfButtons}, (_, i) => {
|
|
39
|
-
const buttonNum = i + 1;
|
|
40
|
-
return html`<obc-button
|
|
41
|
-
@click=${() =>
|
|
42
|
-
this.dispatchEvent(new CustomEvent(`button${buttonNum}-click`))}
|
|
43
|
-
?showLeadingIcon=${true}
|
|
44
|
-
?fullWidth=${true}
|
|
45
|
-
class="button"
|
|
46
|
-
>
|
|
47
|
-
<slot
|
|
48
|
-
name="button-${buttonNum}-leading-icon"
|
|
49
|
-
slot="leading-icon"
|
|
50
|
-
></slot>
|
|
51
|
-
<slot name="button-${buttonNum}-label"></slot>
|
|
52
|
-
</obc-button>`;
|
|
53
|
-
})}`;
|
|
54
|
-
}
|
|
22
|
+
/** Hide the alarm list, ensuring it doesn't take space (display: none). */
|
|
23
|
+
@property({type: Boolean}) hideAlarmList = false;
|
|
55
24
|
|
|
56
25
|
protected override render() {
|
|
57
26
|
return html`
|
|
@@ -60,13 +29,20 @@ export class ObcIntegrationVesselMenu extends LitElement {
|
|
|
60
29
|
wrapper: true,
|
|
61
30
|
})}
|
|
62
31
|
>
|
|
63
|
-
<div class="footer-container"
|
|
32
|
+
<div class="footer-container">
|
|
33
|
+
<slot name="buttons" class="buttons-slot"></slot>
|
|
34
|
+
</div>
|
|
64
35
|
<div class="content-area">
|
|
65
36
|
<slot name="content"></slot>
|
|
66
37
|
</div>
|
|
67
|
-
<div
|
|
68
|
-
|
|
69
|
-
|
|
38
|
+
<div
|
|
39
|
+
class=${classMap({
|
|
40
|
+
'content-container': true,
|
|
41
|
+
hidealarmlist: this.hideAlarmList,
|
|
42
|
+
})}
|
|
43
|
+
>
|
|
44
|
+
<obc-alert-list class="alertlist"
|
|
45
|
+
><slot name="alarms"></slot>
|
|
70
46
|
</obc-alert-list>
|
|
71
47
|
</div>
|
|
72
48
|
</div>
|