@oicl/openbridge-webcomponents-full-bundle 2.2.0-next.22 → 2.2.0-next.23
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/custom-elements-manifest.config.mjs +2 -1
- package/custom-elements.json +312 -17
- package/llms/components/obc-accordion-card.md +141 -0
- package/llms/components/obc-accordion-item.md +90 -0
- package/llms/components/obc-advice-button.md +87 -0
- package/llms/components/obc-advice-floating-item.md +113 -0
- package/llms/components/obc-advice-menu-item.md +87 -0
- package/llms/components/obc-advice-message-item.md +138 -0
- package/llms/components/obc-alert-button-item.md +117 -0
- package/llms/components/obc-alert-button.md +134 -0
- package/llms/components/obc-alert-counter-item.md +74 -0
- package/llms/components/obc-alert-detail-page.md +45 -0
- package/llms/components/obc-alert-floating-item.md +53 -0
- package/llms/components/obc-alert-frame.md +142 -0
- package/llms/components/obc-alert-icon.md +79 -0
- package/llms/components/obc-alert-list-details-experimental.md +89 -0
- package/llms/components/obc-alert-list-details.md +38 -0
- package/llms/components/obc-alert-list-page-small.md +39 -0
- package/llms/components/obc-alert-list.md +37 -0
- package/llms/components/obc-alert-menu-item.md +128 -0
- package/llms/components/obc-alert-menu.md +115 -0
- package/llms/components/obc-alert-subsystem-button.md +88 -0
- package/llms/components/obc-alert-subsystem-counter.md +110 -0
- package/llms/components/obc-analog-threeway-valve.md +106 -0
- package/llms/components/obc-analog-valve.md +74 -0
- package/llms/components/obc-app-button.md +83 -0
- package/llms/components/obc-app-menu.md +69 -0
- package/llms/components/obc-area-graph.md +333 -0
- package/llms/components/obc-attachment-list-item.md +49 -0
- package/llms/components/obc-audio-output.md +59 -0
- package/llms/components/obc-audio-recording-item.md +91 -0
- package/llms/components/obc-automation-badge.md +66 -0
- package/llms/components/obc-automation-button-readout-stack.md +71 -0
- package/llms/components/obc-automation-button.md +86 -0
- package/llms/components/obc-automation-input-modal.md +48 -0
- package/llms/components/obc-automation-readout.md +32 -0
- package/llms/components/obc-automation-tank.md +156 -0
- package/llms/components/obc-azimuth-thruster-labeled.md +56 -0
- package/llms/components/obc-azimuth-thruster.md +80 -0
- package/llms/components/obc-badge-command.md +26 -0
- package/llms/components/obc-badge.md +151 -0
- package/llms/components/obc-bar-horizontal.md +123 -0
- package/llms/components/obc-bar-vertical.md +125 -0
- package/llms/components/obc-battery-icon.md +38 -0
- package/llms/components/obc-bearing-indicator.md +27 -0
- package/llms/components/obc-bipolar-transistor.md +64 -0
- package/llms/components/obc-breadcrumb.md +58 -0
- package/llms/components/obc-brilliance-menu.md +115 -0
- package/llms/components/obc-bus.md +64 -0
- package/llms/components/obc-button.md +110 -0
- package/llms/components/obc-calendar.md +91 -0
- package/llms/components/obc-capacitor.md +64 -0
- package/llms/components/obc-card.md +103 -0
- package/llms/components/obc-chart-object-vessel-button.md +103 -0
- package/llms/components/obc-chat-message.md +35 -0
- package/llms/components/obc-check-button.md +104 -0
- package/llms/components/obc-checkbox-item.md +95 -0
- package/llms/components/obc-checkbox-list.md +73 -0
- package/llms/components/obc-checkbox.md +97 -0
- package/llms/components/obc-circular-progress.md +36 -0
- package/llms/components/obc-clock.md +86 -0
- package/llms/components/obc-command-button.md +56 -0
- package/llms/components/obc-command-menu.md +135 -0
- package/llms/components/obc-communication-table.md +31 -0
- package/llms/components/obc-compass-flat.md +79 -0
- package/llms/components/obc-compass-indicator.md +61 -0
- package/llms/components/obc-compass-sector.md +110 -0
- package/llms/components/obc-compass.md +157 -0
- package/llms/components/obc-context-menu-input.md +191 -0
- package/llms/components/obc-converter.md +64 -0
- package/llms/components/obc-corner-line.md +29 -0
- package/llms/components/obc-current.md +79 -0
- package/llms/components/obc-damper.md +62 -0
- package/llms/components/obc-date-item.md +66 -0
- package/llms/components/obc-depth-actual.md +69 -0
- package/llms/components/obc-depth-indicator.md +31 -0
- package/llms/components/obc-depth-top-band.md +43 -0
- package/llms/components/obc-depth.md +94 -0
- package/llms/components/obc-diagnostic-button.md +71 -0
- package/llms/components/obc-diagnostic-menu.md +88 -0
- package/llms/components/obc-digital-threeway-valve.md +112 -0
- package/llms/components/obc-digital-valve.md +78 -0
- package/llms/components/obc-diodes.md +64 -0
- package/llms/components/obc-direction-line.md +28 -0
- package/llms/components/obc-divider.md +44 -0
- package/llms/components/obc-donut-chart.md +116 -0
- package/llms/components/obc-draft-trim.md +67 -0
- package/llms/components/obc-dropdown-button.md +99 -0
- package/llms/components/obc-electricity-battery.md +83 -0
- package/llms/components/obc-elevated-card-radio-group.md +103 -0
- package/llms/components/obc-elevated-card-radio.md +104 -0
- package/llms/components/obc-elevated-card.md +146 -0
- package/llms/components/obc-end-point-line.md +29 -0
- package/llms/components/obc-event-item.md +47 -0
- package/llms/components/obc-event-list.md +37 -0
- package/llms/components/obc-fan.md +68 -0
- package/llms/components/obc-filter-chip.md +91 -0
- package/llms/components/obc-filter.md +64 -0
- package/llms/components/obc-floating-item.md +125 -0
- package/llms/components/obc-form-container.md +45 -0
- package/llms/components/obc-form-footer-container.md +34 -0
- package/llms/components/obc-form-group.md +80 -0
- package/llms/components/obc-form-item.md +95 -0
- package/llms/components/obc-gauge-bar-indicator.md +46 -0
- package/llms/components/obc-gauge-generator.md +102 -0
- package/llms/components/obc-gauge-horizontal.md +169 -0
- package/llms/components/obc-gauge-motors-and-pumps.md +110 -0
- package/llms/components/obc-gauge-proportional.md +134 -0
- package/llms/components/obc-gauge-radial-indicator.md +76 -0
- package/llms/components/obc-gauge-radial.md +163 -0
- package/llms/components/obc-gauge-trend-indicator.md +53 -0
- package/llms/components/obc-gauge-trend.md +271 -0
- package/llms/components/obc-gauge-valve.md +114 -0
- package/llms/components/obc-gauge-vertical.md +169 -0
- package/llms/components/obc-gnss-skyplot.md +80 -0
- package/llms/components/obc-graph-mini.md +28 -0
- package/llms/components/obc-ground.md +64 -0
- package/llms/components/obc-heading-indicator.md +42 -0
- package/llms/components/obc-heading.md +106 -0
- package/llms/components/obc-heat-exchanger.md +80 -0
- package/llms/components/obc-heat-pump.md +79 -0
- package/llms/components/obc-heave-indicator.md +38 -0
- package/llms/components/obc-heave.md +60 -0
- package/llms/components/obc-horizontal-line.md +29 -0
- package/llms/components/obc-hydraulic-check-valve.md +36 -0
- package/llms/components/obc-hydraulic-separator.md +80 -0
- package/llms/components/obc-hydraulic-valve-4-3.md +71 -0
- package/llms/components/obc-hydraulic-valve-x-2.md +68 -0
- package/llms/components/obc-icon-button.md +117 -0
- package/llms/components/obc-icon-check-button.md +85 -0
- package/llms/components/obc-indicator-battery.md +69 -0
- package/llms/components/obc-indicator-engine.md +39 -0
- package/llms/components/obc-indicator-generator.md +59 -0
- package/llms/components/obc-indicator-graph.md +33 -0
- package/llms/components/obc-indicator-tank-atmospheric.md +69 -0
- package/llms/components/obc-input-chip.md +96 -0
- package/llms/components/obc-instrument-field.md +172 -0
- package/llms/components/obc-instrument-radial.md +77 -0
- package/llms/components/obc-integration-app-bar.md +41 -0
- package/llms/components/obc-integration-bar-dropdown.md +71 -0
- package/llms/components/obc-integration-bar.md +72 -0
- package/llms/components/obc-integration-button.md +62 -0
- package/llms/components/obc-integration-dropdown-button.md +75 -0
- package/llms/components/obc-integration-fleet-button.md +41 -0
- package/llms/components/obc-integration-tabs.md +28 -0
- package/llms/components/obc-integration-vessel-menu.md +58 -0
- package/llms/components/obc-integration-vessel-selector.md +32 -0
- package/llms/components/obc-keyboard-full.md +175 -0
- package/llms/components/obc-keyboard-numeric.md +77 -0
- package/llms/components/obc-line-cross.md +28 -0
- package/llms/components/obc-line-graph.md +164 -0
- package/llms/components/obc-line-overlap.md +28 -0
- package/llms/components/obc-logic.md +64 -0
- package/llms/components/obc-main-engine-indicator.md +55 -0
- package/llms/components/obc-main-engine.md +54 -0
- package/llms/components/obc-menu-button.md +158 -0
- package/llms/components/obc-message-menu-item.md +165 -0
- package/llms/components/obc-modal-window.md +139 -0
- package/llms/components/obc-mosfet.md +64 -0
- package/llms/components/obc-motor.md +73 -0
- package/llms/components/obc-navigation-item-group.md +82 -0
- package/llms/components/obc-navigation-item.md +138 -0
- package/llms/components/obc-navigation-menu.md +135 -0
- package/llms/components/obc-non-return-valve.md +79 -0
- package/llms/components/obc-notification-badge-button.md +87 -0
- package/llms/components/obc-notification-button.md +92 -0
- package/llms/components/obc-notification-floating-item.md +121 -0
- package/llms/components/obc-notification-menu-item.md +87 -0
- package/llms/components/obc-notification-message-item.md +127 -0
- package/llms/components/obc-number-input-field.md +97 -0
- package/llms/components/obc-pagination.md +95 -0
- package/llms/components/obc-pie-chart.md +120 -0
- package/llms/components/obc-pitch-indicator.md +39 -0
- package/llms/components/obc-pitch-roll-heave.md +86 -0
- package/llms/components/obc-pitch-roll-yaw.md +72 -0
- package/llms/components/obc-pitch-roll.md +63 -0
- package/llms/components/obc-pitch.md +81 -0
- package/llms/components/obc-pivot-item-group.md +79 -0
- package/llms/components/obc-pivot-item.md +75 -0
- package/llms/components/obc-poi-aton.md +68 -0
- package/llms/components/obc-poi-button-aton.md +54 -0
- package/llms/components/obc-poi-button-data.md +53 -0
- package/llms/components/obc-poi-button-vessel.md +55 -0
- package/llms/components/obc-poi-button.md +94 -0
- package/llms/components/obc-poi-card-header.md +90 -0
- package/llms/components/obc-poi-card.md +110 -0
- package/llms/components/obc-poi-controller.md +151 -0
- package/llms/components/obc-poi-data.md +72 -0
- package/llms/components/obc-poi-graphic-line.md +70 -0
- package/llms/components/obc-poi-group.md +85 -0
- package/llms/components/obc-poi-header.md +71 -0
- package/llms/components/obc-poi-layer-stack.md +85 -0
- package/llms/components/obc-poi-layer.md +110 -0
- package/llms/components/obc-poi-line.md +70 -0
- package/llms/components/obc-poi-object-aton.md +45 -0
- package/llms/components/obc-poi-object-data.md +48 -0
- package/llms/components/obc-poi-object-vessel.md +95 -0
- package/llms/components/obc-poi-object.md +82 -0
- package/llms/components/obc-poi-pointer.md +70 -0
- package/llms/components/obc-poi-selection-frame.md +66 -0
- package/llms/components/obc-poi-vessel.md +70 -0
- package/llms/components/obc-poi.md +140 -0
- package/llms/components/obc-polar-chart.md +126 -0
- package/llms/components/obc-position-deviation.md +84 -0
- package/llms/components/obc-pressure-reduction-valve.md +88 -0
- package/llms/components/obc-pressure-sustain-valve.md +85 -0
- package/llms/components/obc-progress-bar.md +102 -0
- package/llms/components/obc-progress-button.md +111 -0
- package/llms/components/obc-progress-indicator-dots.md +57 -0
- package/llms/components/obc-propulsion-azimuth-indicator.md +48 -0
- package/llms/components/obc-pump.md +76 -0
- package/llms/components/obc-radial-bar-chart.md +103 -0
- package/llms/components/obc-radio.md +82 -0
- package/llms/components/obc-rate-of-turn.md +95 -0
- package/llms/components/obc-readout-block.md +137 -0
- package/llms/components/obc-readout-list-item.md +142 -0
- package/llms/components/obc-readout-list.md +85 -0
- package/llms/components/obc-readout.md +169 -0
- package/llms/components/obc-resistor.md +64 -0
- package/llms/components/obc-rich-button.md +92 -0
- package/llms/components/obc-roll-indicator.md +38 -0
- package/llms/components/obc-roll.md +56 -0
- package/llms/components/obc-rot-indicator.md +32 -0
- package/llms/components/obc-rot-linear.md +68 -0
- package/llms/components/obc-rot-sector.md +125 -0
- package/llms/components/obc-router.md +64 -0
- package/llms/components/obc-rudder-indicator.md +54 -0
- package/llms/components/obc-rudder.md +112 -0
- package/llms/components/obc-ruler-pointer.md +57 -0
- package/llms/components/obc-scrollbar.md +57 -0
- package/llms/components/obc-sequence-card.md +119 -0
- package/llms/components/obc-sequence-connector.md +70 -0
- package/llms/components/obc-sequence-item.md +64 -0
- package/llms/components/obc-sequence-loading-spinner.md +70 -0
- package/llms/components/obc-sequence-modal.md +89 -0
- package/llms/components/obc-sequence-step.md +48 -0
- package/llms/components/obc-sequence-toolbar.md +108 -0
- package/llms/components/obc-slide-button.md +111 -0
- package/llms/components/obc-slider-double.md +137 -0
- package/llms/components/obc-slider.md +143 -0
- package/llms/components/obc-source.md +64 -0
- package/llms/components/obc-speed-arrows.md +39 -0
- package/llms/components/obc-speed-directions.md +66 -0
- package/llms/components/obc-speed-gauge.md +124 -0
- package/llms/components/obc-speed-indicator.md +37 -0
- package/llms/components/obc-split-button.md +144 -0
- package/llms/components/obc-start-stop-switch.md +126 -0
- package/llms/components/obc-status-indicator.md +30 -0
- package/llms/components/obc-stepper-box.md +90 -0
- package/llms/components/obc-surge-sway-yaw.md +95 -0
- package/llms/components/obc-switch.md +69 -0
- package/llms/components/obc-system-button.md +112 -0
- package/llms/components/obc-system-menu.md +67 -0
- package/llms/components/obc-tab-item.md +161 -0
- package/llms/components/obc-tab-row.md +151 -0
- package/llms/components/obc-tabbed-card.md +148 -0
- package/llms/components/obc-table-header-item.md +42 -0
- package/llms/components/obc-table.md +124 -0
- package/llms/components/obc-tag.md +41 -0
- package/llms/components/obc-text-input-field.md +94 -0
- package/llms/components/obc-textarea-field.md +186 -0
- package/llms/components/obc-textbox.md +80 -0
- package/llms/components/obc-three-way-line.md +29 -0
- package/llms/components/obc-thruster.md +64 -0
- package/llms/components/obc-title-container.md +81 -0
- package/llms/components/obc-toggle-button-group.md +184 -0
- package/llms/components/obc-toggle-button-option.md +126 -0
- package/llms/components/obc-toggle-button-three-state.md +38 -0
- package/llms/components/obc-toggle-button-vertical-group.md +142 -0
- package/llms/components/obc-toggle-button-vertical-option.md +110 -0
- package/llms/components/obc-toggle-switch.md +126 -0
- package/llms/components/obc-toggletip.md +135 -0
- package/llms/components/obc-tooltip.md +106 -0
- package/llms/components/obc-top-bar.md +194 -0
- package/llms/components/obc-top-view-propulsion.md +84 -0
- package/llms/components/obc-topbar-message-item.md +150 -0
- package/llms/components/obc-transformer.md +64 -0
- package/llms/components/obc-transmitter-button.md +101 -0
- package/llms/components/obc-transmitter-stack.md +79 -0
- package/llms/components/obc-transmitter.md +114 -0
- package/llms/components/obc-tree-navigation-group.md +69 -0
- package/llms/components/obc-tree-navigation-item.md +110 -0
- package/llms/components/obc-tree-navigation.md +73 -0
- package/llms/components/obc-tunnel-thruster.md +59 -0
- package/llms/components/obc-user-button.md +107 -0
- package/llms/components/obc-user-menu.md +154 -0
- package/llms/components/obc-valve-analog-three-way-icon.md +69 -0
- package/llms/components/obc-valve-analog-two-way-icon.md +39 -0
- package/llms/components/obc-velocity-projection-plot.md +34 -0
- package/llms/components/obc-vendor-button.md +63 -0
- package/llms/components/obc-vertical-line.md +33 -0
- package/llms/components/obc-watch-flat.md +54 -0
- package/llms/components/obc-watch.md +206 -0
- package/llms/components/obc-wind-indicator.md +52 -0
- package/llms/components/obc-wind-propulsion.md +92 -0
- package/llms/components/obc-wind.md +46 -0
- package/llms/docs/ar-poi-projection.md +36 -0
- package/llms/docs/automation-sequence-step-diagram-playground.md +13 -0
- package/llms/docs/building-blocks-advice.md +31 -0
- package/llms/docs/building-blocks-external-scale.md +138 -0
- package/llms/docs/building-blocks-setpoint.md +119 -0
- package/llms/docs/introduction-advice-system.md +161 -0
- package/llms/docs/introduction-getting-started.md +94 -0
- package/llms/docs/introduction-introduction.md +27 -0
- package/llms/docs/introduction-join-the-project.md +11 -0
- package/llms/docs/introduction-migration-guide-2-0-to-2-1.md +126 -0
- package/llms/docs/introduction-migration-guide-2-1-to-2-2.md +106 -0
- package/llms/docs/introduction-migration-guide.md +1063 -0
- package/llms/docs/palettes-categorical-colour.md +9 -0
- package/llms/llms-full.txt +28380 -0
- package/llms/llms.txt +368 -0
- package/package.json +12 -2
- package/script/cem-plugins/lifecycle.d.mts +6 -0
- package/script/cem-plugins/lifecycle.mjs +48 -0
- package/script/cem-plugins.test.ts +52 -1
- package/script/generate-llms-txt.ts +34 -0
- package/script/llms/channel.test.ts +69 -0
- package/script/llms/channel.ts +63 -0
- package/script/llms/generate.test.ts +143 -0
- package/script/llms/generate.ts +229 -0
- package/script/llms/manifest.test.ts +160 -0
- package/script/llms/manifest.ts +109 -0
- package/script/llms/markdown.test.ts +22 -0
- package/script/llms/markdown.ts +37 -0
- package/script/llms/mdx.test.ts +172 -0
- package/script/llms/mdx.ts +171 -0
- package/script/llms/render-component.test.ts +290 -0
- package/script/llms/render-component.ts +208 -0
- package/script/llms/render-guides.test.ts +105 -0
- package/script/llms/render-guides.ts +51 -0
- package/script/llms/render-llms-txt.test.ts +222 -0
- package/script/llms/render-llms-txt.ts +185 -0
- package/script/llms/sources.test.ts +118 -0
- package/script/llms/sources.ts +89 -0
- package/script/llms/stories.test.ts +193 -0
- package/script/llms/stories.ts +256 -0
- package/script/llms/types.ts +95 -0
- package/script/prepare-full-bundle.ts +1 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# `<obc-digital-valve>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-digital-valve--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/digital-valve/digital-valve.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| open | open | `boolean` | `false` | |
|
|
12
|
+
| vertical | vertical | `boolean` | `false` | Draw the valve for a vertical pipe; used only while `flowDirection` is unset. |
|
|
13
|
+
| flowDirection | flowDirection | `Direction \| undefined` | `undefined` | Direction the medium flows through the valve; the symbol turns with it. When unset, `vertical` picks `down`, otherwise `right`. |
|
|
14
|
+
| handle | handle | `ObcValveHandle` | | The handle or actuator drawn on the valve. It sits on top when the flow is to the right and turns with the flow. |
|
|
15
|
+
| invertHandlePosition | invertHandlePosition | `boolean` | `false` | Put the handle on the other side of the valve. Available when `handle!=none`. |
|
|
16
|
+
| handleSize | handleSize | `AutomationButtonHandleSize` | | Size of the handle: `small` draws it from the symbol's centre, for symbols without a button around them. Available when `handle!=none`. |
|
|
17
|
+
| variant | variant | `DigitalValveVariant` | | |
|
|
18
|
+
| extraReadouts | | `AutomationButtonReadoutStack[]` | | |
|
|
19
|
+
| icon | | `TemplateResult` | | |
|
|
20
|
+
| showReadoutStack | | `boolean` | `true` | |
|
|
21
|
+
| static | static | `boolean` | `false` | Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. |
|
|
22
|
+
| readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
|
|
23
|
+
| showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
|
|
24
|
+
| showStatusIcon | | `boolean` | `false` | |
|
|
25
|
+
| readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
|
|
26
|
+
| tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
|
|
27
|
+
| positioning | positioning | `AutomationButtonPositioning` | | |
|
|
28
|
+
| activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
|
|
29
|
+
| alert | alert | `boolean` | `false` | |
|
|
30
|
+
| alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
|
|
31
|
+
| alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
|
|
32
|
+
| alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
|
|
33
|
+
| alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
|
|
34
|
+
| showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
35
|
+
| showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
36
|
+
| progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
|
|
37
|
+
| progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
|
|
38
|
+
| progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
|
|
39
|
+
| badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
|
|
40
|
+
| badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
|
|
41
|
+
| badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
|
|
42
|
+
| badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
|
|
43
|
+
| badgeLayout | | `AutomationButtonBadgeLayout \| undefined` | `undefined` | Which badge kind each corner shows, on top of the app-wide layout set with `setAutomationBadgeLayout()`. A corner left out keeps the app-wide badge, `null` leaves it empty, and a badge moved here leaves the corner it came from. |
|
|
44
|
+
| badgeSymbolOverride | | `AutomationBadgeSymbolOverride \| undefined` | `undefined` | Letters that replace badge symbols on this device, per badge property and value, on top of the app-wide ones set with `setAutomationBadgeSymbolOverride()`; for example `{commandLocked: {simulation: 's'}}`. `null` brings the symbol back. |
|
|
45
|
+
| badgeTopRight | | `HTMLElement[]` | | |
|
|
46
|
+
| badgeTopLeft | | `HTMLElement[]` | | |
|
|
47
|
+
| badgeBottomLeft | | `HTMLElement[]` | | |
|
|
48
|
+
| badgeBottomRight | | `HTMLElement[]` | | |
|
|
49
|
+
|
|
50
|
+
## Events
|
|
51
|
+
|
|
52
|
+
None.
|
|
53
|
+
|
|
54
|
+
## Slots
|
|
55
|
+
|
|
56
|
+
None.
|
|
57
|
+
|
|
58
|
+
## Stories
|
|
59
|
+
|
|
60
|
+
- [Open](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--open)
|
|
61
|
+
- [Closed](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--closed)
|
|
62
|
+
- [Manual](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--manual)
|
|
63
|
+
- [Manual Flat](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--manual-flat)
|
|
64
|
+
- [Manual Down](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--manual-down)
|
|
65
|
+
- [Manual Left](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--manual-left)
|
|
66
|
+
- [Manual Symbol](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--manual-symbol)
|
|
67
|
+
- [Manual Symbol Up](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--manual-symbol-up)
|
|
68
|
+
- [All Handles](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--all-handles)
|
|
69
|
+
- [Letter Handles On Every Side](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--letter-handles-on-every-side)
|
|
70
|
+
- [Static Open](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--static-open)
|
|
71
|
+
- [Static Closed](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--static-closed)
|
|
72
|
+
- [Handle Colors](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--handle-colors)
|
|
73
|
+
- [Small Handles](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--small-handles)
|
|
74
|
+
- [Letter Handles In Size Classes](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-digital-valve--letter-handles-in-size-classes)
|
|
75
|
+
|
|
76
|
+
## See also
|
|
77
|
+
|
|
78
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# `<obc-diodes>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-diodes--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/diodes/diodes.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| alternativeIcon | alternativeIcon | `DiodesAlternativeIcon` | | |
|
|
12
|
+
| icon | | `TemplateResult` | | |
|
|
13
|
+
| turnedOn | turnedOn | `boolean` | `false` | Whether the device is on. Selects the on icon and the `On` state row instead of `Off`. Not named `on`, which Svelte binds as an event listener in markup (#1090). |
|
|
14
|
+
| on | on | `boolean \| undefined` | | Alias of `turnedOn` for 1.x markup: setting it sets `turnedOn`. |
|
|
15
|
+
| variant | variant | `SquaredVariant` | | |
|
|
16
|
+
| orientation | orientation | `AutomationButtonOrientation` | | |
|
|
17
|
+
| extraReadouts | | `AutomationButtonReadoutStack[]` | | |
|
|
18
|
+
| showReadoutStack | | `boolean` | `true` | |
|
|
19
|
+
| static | static | `boolean` | `false` | Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. |
|
|
20
|
+
| readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
|
|
21
|
+
| showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
|
|
22
|
+
| showStatusIcon | | `boolean` | `false` | |
|
|
23
|
+
| readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
|
|
24
|
+
| tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
|
|
25
|
+
| positioning | positioning | `AutomationButtonPositioning` | | |
|
|
26
|
+
| activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
|
|
27
|
+
| alert | alert | `boolean` | `false` | |
|
|
28
|
+
| alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
|
|
29
|
+
| alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
|
|
30
|
+
| alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
|
|
31
|
+
| alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
|
|
32
|
+
| showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
33
|
+
| showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
34
|
+
| progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
|
|
35
|
+
| progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
|
|
36
|
+
| progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
|
|
37
|
+
| badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
|
|
38
|
+
| badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
|
|
39
|
+
| badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
|
|
40
|
+
| badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
|
|
41
|
+
| badgeLayout | | `AutomationButtonBadgeLayout \| undefined` | `undefined` | Which badge kind each corner shows, on top of the app-wide layout set with `setAutomationBadgeLayout()`. A corner left out keeps the app-wide badge, `null` leaves it empty, and a badge moved here leaves the corner it came from. |
|
|
42
|
+
| badgeSymbolOverride | | `AutomationBadgeSymbolOverride \| undefined` | `undefined` | Letters that replace badge symbols on this device, per badge property and value, on top of the app-wide ones set with `setAutomationBadgeSymbolOverride()`; for example `{commandLocked: {simulation: 's'}}`. `null` brings the symbol back. |
|
|
43
|
+
| badgeTopRight | | `HTMLElement[]` | | |
|
|
44
|
+
| badgeTopLeft | | `HTMLElement[]` | | |
|
|
45
|
+
| badgeBottomLeft | | `HTMLElement[]` | | |
|
|
46
|
+
| badgeBottomRight | | `HTMLElement[]` | | |
|
|
47
|
+
|
|
48
|
+
## Events
|
|
49
|
+
|
|
50
|
+
None.
|
|
51
|
+
|
|
52
|
+
## Slots
|
|
53
|
+
|
|
54
|
+
None.
|
|
55
|
+
|
|
56
|
+
## Stories
|
|
57
|
+
|
|
58
|
+
- [On](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-diodes--on)
|
|
59
|
+
- [Off](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-diodes--off)
|
|
60
|
+
- [Static](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-diodes--static)
|
|
61
|
+
|
|
62
|
+
## See also
|
|
63
|
+
|
|
64
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# `<obc-direction-line>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: deprecated. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-line-direction--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/direction-line/direction-line.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| medium | medium | `LineMedium` | | |
|
|
12
|
+
| lineType | lineType | `LineType` | | |
|
|
13
|
+
|
|
14
|
+
## Events
|
|
15
|
+
|
|
16
|
+
None.
|
|
17
|
+
|
|
18
|
+
## Slots
|
|
19
|
+
|
|
20
|
+
None.
|
|
21
|
+
|
|
22
|
+
## Stories
|
|
23
|
+
|
|
24
|
+
- [Primary](https://openbridge-next-storybook.web.app/?path=/story/automation-line-direction--primary)
|
|
25
|
+
|
|
26
|
+
## See also
|
|
27
|
+
|
|
28
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# `<obc-divider>`
|
|
2
|
+
|
|
3
|
+
A visual separator component for dividing content areas or UI elements.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/divider/divider.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-divider>` – A visual separator component for dividing content areas or UI elements.
|
|
8
|
+
|
|
9
|
+
The divider provides a subtle, vertical line to visually separate items within a layout, such as between buttons in a toolbar or sections in a card. It helps organize content and improve readability without drawing excessive attention.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
- **Vertical orientation:** Renders as a vertical line by default, suitable for separating horizontally arranged elements.
|
|
13
|
+
- **Compact size:** Designed to be unobtrusive, with a slim width and moderate height to fit within toolbars, menus, or cards.
|
|
14
|
+
- **Customizable color:** Uses a CSS variable (`--border-divider-color`) for easy theming and adaptation to different UI palettes.
|
|
15
|
+
- **Rounded edges:** Features a slight border-radius for a modern, polished appearance.
|
|
16
|
+
|
|
17
|
+
## Usage Guidelines
|
|
18
|
+
Use `obc-divider` to create clear visual separation between related UI elements, such as:
|
|
19
|
+
- Dividing buttons or controls in a horizontal toolbar.
|
|
20
|
+
- Separating grouped content within a card or panel.
|
|
21
|
+
- Breaking up sections in a menu or navigation bar.
|
|
22
|
+
|
|
23
|
+
Avoid overusing dividers, as excessive separation can create visual clutter. For horizontal separation, use a horizontal rule or a dedicated horizontal divider component if available.
|
|
24
|
+
|
|
25
|
+
**TODO(designer):** Confirm if a horizontal variant or orientation property is planned, and clarify any additional recommended use cases or constraints.
|
|
26
|
+
|
|
27
|
+
## Best Practices
|
|
28
|
+
- Place the divider between elements with appropriate spacing on either side for optimal visual balance.
|
|
29
|
+
- Use sparingly to maintain a clean and organized interface.
|
|
30
|
+
- The divider is purely decorative and should not be used as a focusable or interactive element.
|
|
31
|
+
|
|
32
|
+
## Properties
|
|
33
|
+
|
|
34
|
+
None.
|
|
35
|
+
|
|
36
|
+
## Events
|
|
37
|
+
|
|
38
|
+
None.
|
|
39
|
+
|
|
40
|
+
## Slots
|
|
41
|
+
|
|
42
|
+
| Slot | Description |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| (default) | (none; this component does not use slots) |
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# `<obc-donut-chart>`
|
|
2
|
+
|
|
3
|
+
A customizable donut chart component for visualizing proportional data with a center total readout.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/bars-and-graphs-donut-chart--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/bars-graphs/donut-chart/donut-chart.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-donut-chart>` – A customizable donut chart component for visualizing proportional data with a center total readout.
|
|
8
|
+
|
|
9
|
+
This component renders an interactive donut chart powered by Chart.js, displaying data segments as arcs with optional outer labels and a centered total value. It supports both full-circle (360°) and half-circle (180°) layouts, making it versatile for dashboards, analytics, and data visualization interfaces.
|
|
10
|
+
|
|
11
|
+
The chart automatically calculates percentages, handles remaining/unfilled capacity, and adapts its layout based on available space. Labels and center readouts are hidden when the chart is too small (`fixedHeight` < 192px; the same threshold applies to half circles, whose arc is just as large as a full circle's at the same `fixedHeight`), ensuring visual clarity at all sizes.
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
- **Fixed Height ⇒ Fixed Circumference:** The chart's circumference is determined by the `fixedHeight` property (default: 320px). This ensures the donut's circumference remains consistent and matches other radial instruments, regardless of the available browser or container width. The chart does not scale to fill the width; instead, it always uses the specified fixed height to define its size and circumference.
|
|
15
|
+
- **Layout Modes:**
|
|
16
|
+
- `Full Circle` (default): Complete 360° donut chart.
|
|
17
|
+
- `Half Circle`: Semicircular 180° layout, useful for gauges or space-constrained displays.
|
|
18
|
+
- **Center Readout:**
|
|
19
|
+
- Displays the sum total of all data values with a customizable label (e.g., "Total", "Power", "Usage").
|
|
20
|
+
- **Outer Labels:**
|
|
21
|
+
- Optional labels positioned outside the chart showing segment names and values.
|
|
22
|
+
- Supports percentage or custom units (e.g., "kW", "kg", "MB").
|
|
23
|
+
- Configurable decimal places and maximum label length (with trimming).
|
|
24
|
+
- **Capacity Visualization:**
|
|
25
|
+
- Optionally show remaining/unfilled capacity when `max` is set higher than the total.
|
|
26
|
+
- Remaining sector uses a distinct color to indicate available space.
|
|
27
|
+
- **Customization:**
|
|
28
|
+
- Custom segment colors (with automatic fallback to theme palette).
|
|
29
|
+
- Adjustable ring thickness (default 24px).
|
|
30
|
+
- **Color Priority:** Set `priority` to `Priority.enhanced` to use the blue/enhanced
|
|
31
|
+
color palette instead of the default gray/regular palette (default: `Priority.regular`).
|
|
32
|
+
- **Responsive Behavior:**
|
|
33
|
+
- Automatically hides labels and center readout when `fixedHeight` < 192px
|
|
34
|
+
(same threshold for full and half circle mode).
|
|
35
|
+
- Maintains aspect ratio and adjusts padding for optimal label positioning.
|
|
36
|
+
- **Theme Integration:**
|
|
37
|
+
- Colors update automatically when the `data-obc-theme` attribute changes on the `<html>` element.
|
|
38
|
+
- Example:
|
|
39
|
+
```
|
|
40
|
+
<html lang="en" data-obc-theme="day"></html>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Example
|
|
44
|
+
|
|
45
|
+
**Basic Usage (Half Circle)**
|
|
46
|
+
```html
|
|
47
|
+
<obc-donut-chart
|
|
48
|
+
half
|
|
49
|
+
></obc-donut-chart>
|
|
50
|
+
<script>
|
|
51
|
+
document.querySelector('obc-donut-chart').data = [
|
|
52
|
+
{label: 'Engine', value: 75.5},
|
|
53
|
+
{label: 'HVAC', value: 42.3},
|
|
54
|
+
{label: 'Lights', value: 12.8}
|
|
55
|
+
];
|
|
56
|
+
</script>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Custom Colors**
|
|
60
|
+
```html
|
|
61
|
+
<obc-donut-chart></obc-donut-chart>
|
|
62
|
+
<script>
|
|
63
|
+
const chart = document.querySelector('obc-donut-chart');
|
|
64
|
+
chart.data = [
|
|
65
|
+
{label: 'Critical', value: 20},
|
|
66
|
+
{label: 'Warning', value: 35},
|
|
67
|
+
{label: 'Normal', value: 45}
|
|
68
|
+
];
|
|
69
|
+
chart.colors = ['#e74c3c', '#f39c12', '#2ecc71'];
|
|
70
|
+
</script>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Properties
|
|
74
|
+
|
|
75
|
+
| Property | Attribute | Type | Default | Description |
|
|
76
|
+
| --- | --- | --- | --- | --- |
|
|
77
|
+
| data | | `DonutChartDataItem[]` | `[]` | Chart data segments (set via JavaScript) |
|
|
78
|
+
| colors | | `string[]` | `[]` | Custom segment colors (set via JavaScript) with fallback to theme palette |
|
|
79
|
+
| priority | priority | `Priority` | | |
|
|
80
|
+
| half | half | `boolean` | `false` | Whether to display as half-circle (180°) or full circle (360°), default: false |
|
|
81
|
+
| showOuterLabels | showOuterLabels | `boolean` | `false` | Show outer labels, default: false |
|
|
82
|
+
| showUnit | showUnit | `boolean` | `false` | Whether to show unit in labels, default: false |
|
|
83
|
+
| outerLabelUnit | outerLabelUnit | `string` | `'%'` | Unit string to append to outer labels, default: "%" |
|
|
84
|
+
| outerLabelMaxLength | outerLabelMaxLength | `number` | `0` | Maximum character length for labels before trim (0 = no limit), default: 0 Available when `showOuterLabels==true`. |
|
|
85
|
+
| outerLabelDecimalPlaces | outerLabelDecimalPlaces | `number` | `0` | Number of decimal places in labels, default: 0 |
|
|
86
|
+
| centerReadoutLabel | centerReadoutLabel | `string` | `'Total'` | Text label shown below the center total value, default: "Total" |
|
|
87
|
+
| centerReadoutUnit | centerReadoutUnit | `string` | `'%'` | Unit string shown inline after the label in the center readout, default: "%" |
|
|
88
|
+
| max | max | `number` | `100` | Maximum value for calculating remaining empty sector, default: 100 |
|
|
89
|
+
| thickness | thickness | `number` | `24` | Donut ring thickness in pixels, default: 24 |
|
|
90
|
+
| legend | legend | `boolean` | `false` | Whether to display the legend below the chart, default: false |
|
|
91
|
+
| showDebugOverlay | showDebugOverlay | `boolean` | `false` | Show debug overlay for development, default: false |
|
|
92
|
+
| fixedHeight | fixedHeight | `number` | `320` | Fixed height of the chart in pixels (determines chart circumference), default: 320. The chart's circumference is always based on this fixed height to match other radial instruments. |
|
|
93
|
+
|
|
94
|
+
## Events
|
|
95
|
+
|
|
96
|
+
None.
|
|
97
|
+
|
|
98
|
+
## Slots
|
|
99
|
+
|
|
100
|
+
None.
|
|
101
|
+
|
|
102
|
+
## Stories
|
|
103
|
+
|
|
104
|
+
- [Full Donut](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--full-donut)
|
|
105
|
+
- [Half Donut](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--half-donut)
|
|
106
|
+
- [Half Donut Without Remaining Segment](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--half-donut-without-remaining)
|
|
107
|
+
- [Long Label Unit Donut](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--long-unit)
|
|
108
|
+
- [Trim Label Length Donut](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--trim-labels)
|
|
109
|
+
- [Decimal Places Donut](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--with-decimals)
|
|
110
|
+
- [Minimal Height Donut (48px)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--min-height)
|
|
111
|
+
- [Threshold Height Donut (192px, where labels appear)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--threshold-height)
|
|
112
|
+
- [Threshold Height Half Donut (192px, where labels appear)](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--half-donut-threshold-height)
|
|
113
|
+
- [With Legend Donut](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--with-legend)
|
|
114
|
+
- [Half Donut With Legend](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--half-donut-with-legend)
|
|
115
|
+
- [Custom Colors](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--custom-colors)
|
|
116
|
+
- [Realtime](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-donut-chart--realtime)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# `<obc-draft-trim>`
|
|
2
|
+
|
|
3
|
+
Fore and aft draught indicator.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-draft-trim--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/draft-trim/draft-trim.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-draft-trim>` — Fore and aft draught indicator.
|
|
8
|
+
|
|
9
|
+
Shows the draught at the bow and the stern on two vertical scales either
|
|
10
|
+
side of a vessel side view, each filled from the waterline down to its
|
|
11
|
+
measured value. The difference between the two is the vessel's trim.
|
|
12
|
+
|
|
13
|
+
Features:
|
|
14
|
+
- Two independent scales, `draftFore` on the right and `draftAft` on the
|
|
15
|
+
left, the left one mirrored so its tick lane faces outward.
|
|
16
|
+
- Each scale spans `±instrumentRange` around the waterline, so the lower
|
|
17
|
+
half reads as draught and the upper half as freeboard.
|
|
18
|
+
- Optional `advices`, shared by both scales and triggered
|
|
19
|
+
independently by each draught.
|
|
20
|
+
- `regular` / `enhanced` palette via `priority`, and a selectable
|
|
21
|
+
`vesselImage`.
|
|
22
|
+
|
|
23
|
+
Usage guidelines:
|
|
24
|
+
- Values are given in the unit the scale is labelled in, positive below the
|
|
25
|
+
waterline; a negative value therefore reads above it.
|
|
26
|
+
- The centre panel is a static reference. The vessel sits at the waterline
|
|
27
|
+
and does not pitch with the trim — the trim is read by comparing the two
|
|
28
|
+
scales, not from the silhouette.
|
|
29
|
+
- Use `obc-heave` instead when a single scale against a moving vessel is
|
|
30
|
+
wanted; this component reuses the same scale for both of its columns.
|
|
31
|
+
|
|
32
|
+
## Properties
|
|
33
|
+
|
|
34
|
+
| Property | Attribute | Type | Default | Description |
|
|
35
|
+
| --- | --- | --- | --- | --- |
|
|
36
|
+
| draftFore | draftFore | `number` | `0` | Draught at the bow, positive below the waterline. |
|
|
37
|
+
| draftAft | draftAft | `number` | `0` | Draught at the stern, positive below the waterline. |
|
|
38
|
+
| instrumentRange | instrumentRange | `number` | `10` | Half-extent of both scales. Each spans `±instrumentRange` around the waterline, so the upper half reads as freeboard. |
|
|
39
|
+
| advice | advice | `AdviceInput[] \| undefined` | | Advice zones, in the same positive-below-the-waterline units as the draughts. Applied to both scales; each is triggered by its own draught. |
|
|
40
|
+
| vesselImage | vesselImage | `VesselImage` | | |
|
|
41
|
+
| vesselImageSrc | | `VesselImageSrc \| undefined` | | Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). |
|
|
42
|
+
| priority | priority | `Priority` | | |
|
|
43
|
+
| advices | advices | `AdviceInput[]` | `[]` | Advice ranges and points in the instrument's unit; see `svghelpers/advice.ts`. |
|
|
44
|
+
| adviceTrigger | adviceTrigger | `AdviceTrigger` | | Which readings trigger an advice: the value, the setpoint, or either. Available when `adviceTrigger advices!=[]`. |
|
|
45
|
+
| adviceEmphasis | adviceEmphasis | `boolean` | `false` | The design's go-to / no-go emphasis rules. Available when `adviceEmphasis advices!=[]`. |
|
|
46
|
+
|
|
47
|
+
## Events
|
|
48
|
+
|
|
49
|
+
None.
|
|
50
|
+
|
|
51
|
+
## Slots
|
|
52
|
+
|
|
53
|
+
None.
|
|
54
|
+
|
|
55
|
+
## Stories
|
|
56
|
+
|
|
57
|
+
- [Default](https://openbridge-next-storybook.web.app/?path=/story/instruments-draft-trim--default)
|
|
58
|
+
- [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-draft-trim--enhanced)
|
|
59
|
+
- [Even Keel](https://openbridge-next-storybook.web.app/?path=/story/instruments-draft-trim--even-keel)
|
|
60
|
+
- [Trim By Bow](https://openbridge-next-storybook.web.app/?path=/story/instruments-draft-trim--trim-by-bow)
|
|
61
|
+
- [Advice](https://openbridge-next-storybook.web.app/?path=/story/instruments-draft-trim--advice)
|
|
62
|
+
- [With Custom Vessel Image](https://openbridge-next-storybook.web.app/?path=/story/instruments-draft-trim--with-custom-vessel-image)
|
|
63
|
+
|
|
64
|
+
## See also
|
|
65
|
+
|
|
66
|
+
- [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
|
|
67
|
+
- [Migration Guide 2.1 to 2.2](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-1-to-2-2.md)
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# `<obc-dropdown-button>`
|
|
2
|
+
|
|
3
|
+
A dropdown select component for choosing a single option from a list.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-buttons-dropdown-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/dropdown-button/dropdown-button.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-dropdown-button>` – A dropdown select component for choosing a single option from a list.
|
|
8
|
+
|
|
9
|
+
Presents a styled dropdown menu with a visible label and icon, allowing users to select one value from a set of options. The component displays the currently selected label and provides a native select element for accessibility and keyboard navigation.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
- **Single selection:** Allows users to pick one option from a provided list.
|
|
13
|
+
- **Customizable options:** Accepts an array of `{value, label, level?}` objects for flexible option content and optional indentation (via `level`).
|
|
14
|
+
- **Visual label and icon:** Shows the selected label and a dropdown arrow icon (`<obi-drop-down-google>`).
|
|
15
|
+
- **Full width mode:** Can expand to fill the width of its container using the `fullWidth` property.
|
|
16
|
+
- **Accessible:** Uses a native `<select>` element under the hood for keyboard and screen reader support.
|
|
17
|
+
- **Focus styling:** Highlights the visible wrapper when the select is focused.
|
|
18
|
+
|
|
19
|
+
## Variants
|
|
20
|
+
- **Default:** Renders at intrinsic width, sized to content.
|
|
21
|
+
- **Full Width:** When `fullWidth` is true, stretches to fill the parent container.
|
|
22
|
+
|
|
23
|
+
## Usage Guidelines
|
|
24
|
+
Use `<obc-dropdown-button>` when you need a compact, accessible dropdown for single-choice selection. Ideal for forms, filters, and settings where users must pick one value from a list. Options can be grouped visually by providing a `level` property for indentation.
|
|
25
|
+
|
|
26
|
+
**TODO(designer):** Confirm if there are recommended use cases or constraints for the `level` property (e.g., maximum nesting, visual grouping intent).
|
|
27
|
+
|
|
28
|
+
## Properties
|
|
29
|
+
- `options` (Array): List of selectable options, each with a `value` (string), `label` (string), and optional `level` (number) for indentation.
|
|
30
|
+
- `value` (string): The currently selected option's value. If not set, defaults to the first option.
|
|
31
|
+
- `fullWidth` (boolean): Expands the component to fill its container when true. Default is false.
|
|
32
|
+
- `allowEmptySelection` (boolean): When true, a `value` that does not match any option leaves the button with no option selected, showing `placeholder` instead of defaulting to the first option. Default is false.
|
|
33
|
+
- `placeholder` (string): Text shown when nothing is selected and `allowEmptySelection` is true. Default is an empty string.
|
|
34
|
+
|
|
35
|
+
## Events
|
|
36
|
+
- `dropdown-change` – Fired when the user selects a different option. The event detail includes `{ value, label }` of the selected option.
|
|
37
|
+
- `change` – Fired when the user selects a different option. The event detail includes `{ value, label }` of the selected option.
|
|
38
|
+
|
|
39
|
+
## Best Practices
|
|
40
|
+
- Always provide a non-empty `options` array; if empty, the select will show no label or options.
|
|
41
|
+
- Use unique `value` strings for each option to ensure correct selection and event detail.
|
|
42
|
+
- For grouped or indented options, set the `level` property (e.g., `level: 2` for sub-options).
|
|
43
|
+
- Avoid using for multi-select scenarios; use a dedicated multi-select component if multiple selections are needed.
|
|
44
|
+
|
|
45
|
+
## Example:
|
|
46
|
+
```html
|
|
47
|
+
<obc-dropdown-button
|
|
48
|
+
.options=${[
|
|
49
|
+
{ value: 'volvo', label: 'Volvo' },
|
|
50
|
+
{ value: 'xc90', label: 'XC 90', level: 2 },
|
|
51
|
+
{ value: 'mercedes', label: 'Mercedes' },
|
|
52
|
+
{ value: 'audi', label: 'Audi' }
|
|
53
|
+
]}
|
|
54
|
+
value="volvo"
|
|
55
|
+
></obc-dropdown-button>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Properties
|
|
59
|
+
|
|
60
|
+
| Property | Attribute | Type | Default | Description |
|
|
61
|
+
| --- | --- | --- | --- | --- |
|
|
62
|
+
| options | options | `DropdownButtonOption[]` | `[]` | Selectable options, each with a `value`, a `label` and an optional `level` that indents it under the preceding option — `{value: 'xc90', label: 'XC 90', level: 2}` renders as a child row. |
|
|
63
|
+
| value | value | `string \| undefined` | | The value of the currently selected option. If not set, defaults to the first option in the list unless `allowEmptySelection` is true. |
|
|
64
|
+
| disabled | disabled | `boolean` | `false` | |
|
|
65
|
+
| fullWidth | fullWidth | `boolean` | `false` | If true, the select expands to fill the width of its container. Default is false. |
|
|
66
|
+
| allowEmptySelection | allowEmptySelection | `boolean` | `false` | If true, a `value` that does not match any option leaves the button with no option selected, showing `placeholder` instead of defaulting to the first option. Default is false. |
|
|
67
|
+
| placeholder | placeholder | `string` | `''` | Text shown when nothing is selected and `allowEmptySelection` is true. Default is an empty string. |
|
|
68
|
+
| type | type | `DropdownButtonType` | | Display type: `label` (default) is text only, `icon` is the icon alone, `label-icon` puts the icon before the label. |
|
|
69
|
+
| openTop | openTop | `boolean` | `false` | If true, the dropdown menu opens above the button. |
|
|
70
|
+
| integration | integration | `boolean` | `false` | If true, the select is integration style. Default is false, only for integration bar. |
|
|
71
|
+
| flat | flat | `boolean` | `false` | |
|
|
72
|
+
|
|
73
|
+
## Events
|
|
74
|
+
|
|
75
|
+
| Event | Type | Description |
|
|
76
|
+
| --- | --- | --- |
|
|
77
|
+
| dropdown-change | `ObcDropdownButtonChangeEvent` | Fires when the value of the select changes |
|
|
78
|
+
| change | `ObcDropdownButtonChangeEvent` | Fires when the value of the select changes |
|
|
79
|
+
|
|
80
|
+
## Slots
|
|
81
|
+
|
|
82
|
+
| Slot | Description |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| (default) | (No named slots; all content is provided via properties) |
|
|
85
|
+
| icon | Icon displayed at the start of the button when `type` is `icon` or `label-icon`. |
|
|
86
|
+
|
|
87
|
+
## Stories
|
|
88
|
+
|
|
89
|
+
- [Label](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-dropdown-button--label)
|
|
90
|
+
- [Label Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-dropdown-button--label-icon)
|
|
91
|
+
- [Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-dropdown-button--icon)
|
|
92
|
+
- [Full Width](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-dropdown-button--full-width)
|
|
93
|
+
- [Full Width With Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-dropdown-button--full-width-with-icon)
|
|
94
|
+
- [Open Top](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-dropdown-button--open-top)
|
|
95
|
+
- [Open Top With Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-dropdown-button--open-top-with-icon)
|
|
96
|
+
- [Pre Selected](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-dropdown-button--pre-selected)
|
|
97
|
+
- [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-dropdown-button--disabled)
|
|
98
|
+
- [Disabled With Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-dropdown-button--disabled-with-icon)
|
|
99
|
+
- [Empty Selection](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-dropdown-button--empty-selection)
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# `<obc-electricity-battery>`
|
|
2
|
+
|
|
3
|
+
Battery symbol for electrical automation diagrams.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-electricity-battery--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/electricity-battery/electricity-battery.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-electricity-battery>` – Battery symbol for electrical automation diagrams.
|
|
8
|
+
|
|
9
|
+
Shows the battery as an on/off device with the readout stack, badges and
|
|
10
|
+
alert frame of the other two-state devices.
|
|
11
|
+
|
|
12
|
+
## Usage Guidelines
|
|
13
|
+
|
|
14
|
+
Use it to place a battery on an electrical one-line diagram. For a battery's
|
|
15
|
+
charge level, use `obc-indicator-battery`; for a battery tank with a fill
|
|
16
|
+
level, use `obc-automation-tank`.
|
|
17
|
+
|
|
18
|
+
**TODO(designer):** the icons file has no static battery symbol, so a
|
|
19
|
+
`static` battery keeps its on or off icon.
|
|
20
|
+
|
|
21
|
+
Without a visible tag the button is named `Battery`, followed by the state
|
|
22
|
+
(`Battery On`) when the state row is shown.
|
|
23
|
+
|
|
24
|
+
## Properties
|
|
25
|
+
|
|
26
|
+
| Property | Attribute | Type | Default | Description |
|
|
27
|
+
| --- | --- | --- | --- | --- |
|
|
28
|
+
| icon | | `TemplateResult` | | |
|
|
29
|
+
| turnedOn | turnedOn | `boolean` | `false` | Whether the device is on. Selects the on icon and the `On` state row instead of `Off`. Not named `on`, which Svelte binds as an event listener in markup (#1090). |
|
|
30
|
+
| on | on | `boolean \| undefined` | | Alias of `turnedOn` for 1.x markup: setting it sets `turnedOn`. |
|
|
31
|
+
| variant | variant | `SquaredVariant` | | |
|
|
32
|
+
| orientation | orientation | `AutomationButtonOrientation` | | |
|
|
33
|
+
| extraReadouts | | `AutomationButtonReadoutStack[]` | | |
|
|
34
|
+
| showReadoutStack | | `boolean` | `true` | |
|
|
35
|
+
| static | static | `boolean` | `false` | Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. |
|
|
36
|
+
| readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
|
|
37
|
+
| showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
|
|
38
|
+
| showStatusIcon | | `boolean` | `false` | |
|
|
39
|
+
| readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
|
|
40
|
+
| tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
|
|
41
|
+
| positioning | positioning | `AutomationButtonPositioning` | | |
|
|
42
|
+
| activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
|
|
43
|
+
| alert | alert | `boolean` | `false` | |
|
|
44
|
+
| alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
|
|
45
|
+
| alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
|
|
46
|
+
| alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
|
|
47
|
+
| alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
|
|
48
|
+
| showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
49
|
+
| showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
50
|
+
| progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
|
|
51
|
+
| progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
|
|
52
|
+
| progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
|
|
53
|
+
| badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
|
|
54
|
+
| badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
|
|
55
|
+
| badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
|
|
56
|
+
| badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
|
|
57
|
+
| badgeLayout | | `AutomationButtonBadgeLayout \| undefined` | `undefined` | Which badge kind each corner shows, on top of the app-wide layout set with `setAutomationBadgeLayout()`. A corner left out keeps the app-wide badge, `null` leaves it empty, and a badge moved here leaves the corner it came from. |
|
|
58
|
+
| badgeSymbolOverride | | `AutomationBadgeSymbolOverride \| undefined` | `undefined` | Letters that replace badge symbols on this device, per badge property and value, on top of the app-wide ones set with `setAutomationBadgeSymbolOverride()`; for example `{commandLocked: {simulation: 's'}}`. `null` brings the symbol back. |
|
|
59
|
+
| badgeTopRight | | `HTMLElement[]` | | |
|
|
60
|
+
| badgeTopLeft | | `HTMLElement[]` | | |
|
|
61
|
+
| badgeBottomLeft | | `HTMLElement[]` | | |
|
|
62
|
+
| badgeBottomRight | | `HTMLElement[]` | | |
|
|
63
|
+
|
|
64
|
+
## Events
|
|
65
|
+
|
|
66
|
+
| Event | Type | Description |
|
|
67
|
+
| --- | --- | --- |
|
|
68
|
+
| click | | Fired when the battery is clicked. |
|
|
69
|
+
|
|
70
|
+
## Slots
|
|
71
|
+
|
|
72
|
+
| Slot | Description |
|
|
73
|
+
| --- | --- |
|
|
74
|
+
| badge-top-right | Content projected into the top-right badge position; overrides the badge `badgeLayout` puts in that corner. |
|
|
75
|
+
| badge-top-left | Content projected into the top-left badge position; overrides the badge `badgeLayout` puts in that corner. |
|
|
76
|
+
| badge-bottom-left | Content projected into the bottom-left badge position; overrides the badge `badgeLayout` puts in that corner. |
|
|
77
|
+
| badge-bottom-right | Content projected into the bottom-right badge position; overrides the badge `badgeLayout` puts in that corner. |
|
|
78
|
+
|
|
79
|
+
## Stories
|
|
80
|
+
|
|
81
|
+
- [On](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-electricity-battery--on)
|
|
82
|
+
- [Off](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-electricity-battery--off)
|
|
83
|
+
- [Static](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-electricity-battery--static)
|