@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,92 @@
|
|
|
1
|
+
# `<obc-rich-button>`
|
|
2
|
+
|
|
3
|
+
A configurable button component supporting label, description, and optional icons.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-buttons-rich-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/rich-button/rich-button.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-rich-button>` – A configurable button component supporting label, description, and optional icons.
|
|
8
|
+
|
|
9
|
+
The rich button presents a primary action with a prominent label, optional supporting description, and can display leading and/or trailing icons. It is designed for scenarios where a standard button is not descriptive enough, providing additional context or visual cues to the user.
|
|
10
|
+
|
|
11
|
+
Appears as a single interactive button with flexible layout (vertical or horizontal) and supports both enabled and disabled states. Ideal for use in toolbars, cards, or anywhere a visually rich, descriptive action is needed.
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
- **Label and Description:** Displays a main label (single line) and an optional description (up to two lines, truncated if too long).
|
|
15
|
+
- **Icon Support:** Can show a leading icon (before the label) and/or a trailing icon (after the description), supplied via slots.
|
|
16
|
+
- **Layout Variants:**
|
|
17
|
+
- **Vertical:** Icons and text are stacked vertically (default).
|
|
18
|
+
- **Horizontal:** Icons and text are arranged side by side.
|
|
19
|
+
- **Disabled State:** Supports a disabled mode, preventing interaction and visually indicating inactivity.
|
|
20
|
+
- **Customizable Width:** Width adapts based on layout direction and content.
|
|
21
|
+
|
|
22
|
+
## Usage Guidelines
|
|
23
|
+
Use `obc-rich-button` when you need an action button that conveys more information than a standard button, such as a short explanation or a visual icon. Suitable for actions that benefit from additional context, like "Download Report" with a file icon and a description of the file type.
|
|
24
|
+
|
|
25
|
+
- For simple actions with only a label, consider using a standard button component.
|
|
26
|
+
- Avoid overloading the button with excessive text; keep descriptions concise.
|
|
27
|
+
- Use icons to reinforce the action or provide quick visual recognition.
|
|
28
|
+
- The button is not intended for use as a menu or dropdown trigger.
|
|
29
|
+
- **TODO(designer):** Confirm if there are recommended maximum character limits for label/description, and if there are specific use cases where only one icon should be used.
|
|
30
|
+
|
|
31
|
+
## Slots
|
|
32
|
+
| Slot Name | Renders When... | Purpose |
|
|
33
|
+
| -------------- | ------------------------ | ------------------------------------------ |
|
|
34
|
+
| leading-icon | `hasLeadingIcon` is true | Icon displayed before the label |
|
|
35
|
+
| trailing-icon | `hasTrailingIcon` is true| Icon displayed after the description |
|
|
36
|
+
|
|
37
|
+
## Events
|
|
38
|
+
- `rich-button-click` – Fired when the button is clicked (if not disabled). Event detail includes the current label and description.
|
|
39
|
+
|
|
40
|
+
## Example:
|
|
41
|
+
```
|
|
42
|
+
<obc-rich-button
|
|
43
|
+
label="Download"
|
|
44
|
+
description="PDF, 2 MB"
|
|
45
|
+
direction="horizontal"
|
|
46
|
+
hasLeadingIcon
|
|
47
|
+
hasTrailingIcon
|
|
48
|
+
>
|
|
49
|
+
<obi-placeholder slot="leading-icon"></obi-placeholder>
|
|
50
|
+
<obi-arrow slot="trailing-icon"></obi-arrow>
|
|
51
|
+
</obc-rich-button>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Properties
|
|
55
|
+
|
|
56
|
+
| Property | Attribute | Type | Default | Description |
|
|
57
|
+
| --- | --- | --- | --- | --- |
|
|
58
|
+
| label | label | `string \| HTMLTemplateResult` | `''` | The main label text displayed on the button (single line, truncated if too long). |
|
|
59
|
+
| description | description | `string` | `''` | Optional supporting description text (up to two lines, truncated if too long). |
|
|
60
|
+
| direction | direction | `RichButtonDirection` | | Layout direction for the button content: `vertical` (default) stacks icons and text, `horizontal` puts them side by side. |
|
|
61
|
+
| hasLeadingIcon | hasLeadingIcon | `boolean` | `false` | If true, displays the leading icon slot before the label. |
|
|
62
|
+
| hasTrailingIcon | hasTrailingIcon | `boolean` | `false` | If true, displays the trailing icon slot after the description. |
|
|
63
|
+
| disabled | disabled | `boolean` | `false` | If true, the button is disabled and cannot be interacted with. |
|
|
64
|
+
| fullWidth | fullWidth | `boolean` | `false` | |
|
|
65
|
+
| fullHeight | fullHeight | `boolean` | `false` | |
|
|
66
|
+
|
|
67
|
+
## Events
|
|
68
|
+
|
|
69
|
+
| Event | Type | Description |
|
|
70
|
+
| --- | --- | --- |
|
|
71
|
+
| rich-button-click | `CustomEvent<{label: string, description: string}>` | When the button is clicked and not disabled |
|
|
72
|
+
|
|
73
|
+
## Slots
|
|
74
|
+
|
|
75
|
+
| Slot | Description |
|
|
76
|
+
| --- | --- |
|
|
77
|
+
| leading-icon | Icon displayed before the label (shown when `hasLeadingIcon` is true) |
|
|
78
|
+
| trailing-icon | Icon displayed after the description (shown when `hasTrailingIcon` is true) |
|
|
79
|
+
|
|
80
|
+
## Stories
|
|
81
|
+
|
|
82
|
+
- [Primary](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-rich-button--primary)
|
|
83
|
+
- [Vertical](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-rich-button--vertical)
|
|
84
|
+
- [Horizontal](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-rich-button--horizontal)
|
|
85
|
+
- [Without Description](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-rich-button--without-description)
|
|
86
|
+
- [Without Icons](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-rich-button--without-icons)
|
|
87
|
+
- [Leading Icon Only](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-rich-button--leading-icon-only)
|
|
88
|
+
- [Trailing Icon Only](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-rich-button--trailing-icon-only)
|
|
89
|
+
- [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-rich-button--disabled)
|
|
90
|
+
- [Long Text](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-rich-button--long-text)
|
|
91
|
+
- [Long Text Vertical](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-rich-button--long-text-vertical)
|
|
92
|
+
- [Full Width](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-rich-button--full-width)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# `<obc-roll-indicator>`
|
|
2
|
+
|
|
3
|
+
A compact roll indicator with a 48×48 layout and a 36×36 SVG graphic.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/indicators-roll-indicator--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/roll-indicator/roll-indicator.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-roll-indicator>` – A compact roll indicator with a 48×48 layout and a 36×36 SVG graphic.
|
|
8
|
+
|
|
9
|
+
This component visualizes a single instantaneous normalized value using a compact graphic layout (arc, track, pointer, vessel).
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- **Normalized value:** `value` in `[-1, 1]` maps directly to the track angle.
|
|
14
|
+
- **Variants:** `enhanced` and `regular` change the accent color.
|
|
15
|
+
|
|
16
|
+
## Usage Guidelines
|
|
17
|
+
|
|
18
|
+
Use when you need a small roll cue next to other compact indicators.
|
|
19
|
+
|
|
20
|
+
## Properties
|
|
21
|
+
|
|
22
|
+
| Property | Attribute | Type | Default | Description |
|
|
23
|
+
| --- | --- | --- | --- | --- |
|
|
24
|
+
| type | type | `RollIndicatorType` | | |
|
|
25
|
+
| value | value | `number` | `0` | |
|
|
26
|
+
|
|
27
|
+
## Events
|
|
28
|
+
|
|
29
|
+
None.
|
|
30
|
+
|
|
31
|
+
## Slots
|
|
32
|
+
|
|
33
|
+
None.
|
|
34
|
+
|
|
35
|
+
## Stories
|
|
36
|
+
|
|
37
|
+
- [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/indicators-roll-indicator--enhanced)
|
|
38
|
+
- [Regular](https://openbridge-next-storybook.web.app/?path=/story/indicators-roll-indicator--regular)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# `<obc-roll>`
|
|
2
|
+
|
|
3
|
+
Roll (heel) indicator with a bottom arc scale.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-roll--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/roll/roll.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-roll>` — Roll (heel) indicator with a bottom arc scale.
|
|
8
|
+
|
|
9
|
+
Shows `roll` against a watch arc centred at the bottom, with an average-roll
|
|
10
|
+
band and a rotating indicator. Supports an optional top scale (`dual-scale`),
|
|
11
|
+
a centre readout (`hasReadout`), and a `regular`/`enhanced` palette. See the
|
|
12
|
+
individual properties for details.
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
| Property | Attribute | Type | Default | Description |
|
|
17
|
+
| --- | --- | --- | --- | --- |
|
|
18
|
+
| roll | roll | `number` | `0` | |
|
|
19
|
+
| minAvgRoll | minAvgRoll | `number` | `0` | |
|
|
20
|
+
| maxAvgRoll | maxAvgRoll | `number` | `0` | |
|
|
21
|
+
| vesselImageFore | vesselImageFore | `VesselImage` | | |
|
|
22
|
+
| vesselImageForeSrc | | `VesselImageSrc \| undefined` | | Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImageFore` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). |
|
|
23
|
+
| scaleForeImage | scaleForeImage | `number` | `1` | |
|
|
24
|
+
| maxRollAdvice | maxRollAdvice | `number \| undefined` | `undefined` | |
|
|
25
|
+
| triggerRollAdvice | triggerRollAdvice | `boolean` | `false` | |
|
|
26
|
+
| label | label | `string` | `'Roll'` | Readout label. Default `Roll`. |
|
|
27
|
+
| unit | unit | `string` | `'DEG'` | Readout unit. Default `DEG`. |
|
|
28
|
+
| fractionDigits | fractionDigits | `number` | `0` | Number of fraction digits shown in the readout. Default `0`. |
|
|
29
|
+
| type | type | `ObcRollType` | | `single-scale` shows one arc at the bottom (default); `dual-scale` also shows the scale on the top arc (the indicator's opposite end). |
|
|
30
|
+
| zoomToFitArc | zoomToFitArc | `boolean` | `false` | |
|
|
31
|
+
| hasReadout | hasReadout | `boolean` | `false` | When `true`, the centre shows an `<obc-readout>` with the value instead of the horizon line, rotating indicator and vessel. Default `false`. |
|
|
32
|
+
| priority | priority | `Priority` | | Colour palette for the scale fill / indicator and the readout value: `regular` (default) or `enhanced`. |
|
|
33
|
+
| arcAngle | arcAngle | `number` | `45` | Half-extent of the watch arc in degrees: the arc spans `centre ± arcAngle` and values sit at their true position within it, so `45` gives the historical 90°-wide arc. With `zoomToFitArc`, a narrower arc is enlarged on its own layer while the vessel image and the indicator line keep their natural size on a separate central layer — the two layers are deliberately disconnected. |
|
|
34
|
+
|
|
35
|
+
## Events
|
|
36
|
+
|
|
37
|
+
None.
|
|
38
|
+
|
|
39
|
+
## Slots
|
|
40
|
+
|
|
41
|
+
None.
|
|
42
|
+
|
|
43
|
+
## Stories
|
|
44
|
+
|
|
45
|
+
- [Primary](https://openbridge-next-storybook.web.app/?path=/story/instruments-roll--primary)
|
|
46
|
+
- [Rov](https://openbridge-next-storybook.web.app/?path=/story/instruments-roll--rov)
|
|
47
|
+
- [Zoomed In](https://openbridge-next-storybook.web.app/?path=/story/instruments-roll--zoomed-in)
|
|
48
|
+
- [Zoomed In Narrow](https://openbridge-next-storybook.web.app/?path=/story/instruments-roll--zoomed-in-narrow)
|
|
49
|
+
- [With Readout](https://openbridge-next-storybook.web.app/?path=/story/instruments-roll--with-readout)
|
|
50
|
+
- [Dual Scale](https://openbridge-next-storybook.web.app/?path=/story/instruments-roll--dual-scale)
|
|
51
|
+
- [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-roll--enhanced)
|
|
52
|
+
- [Fish Cage](https://openbridge-next-storybook.web.app/?path=/story/instruments-roll--fish-cage): The fish cage seen from above, the way Figma 47546:222683 shows it on the roll instrument.
|
|
53
|
+
|
|
54
|
+
## See also
|
|
55
|
+
|
|
56
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# `<obc-rot-indicator>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/indicators-rate-of-turn-indicator--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/rot-indicator/rot-indicator.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| type | type | `RotIndicatorType` | | |
|
|
12
|
+
| rateOfTurnDegreesPerMinute | rateOfTurnDegreesPerMinute | `number \| undefined` | | Measured rate of turn in degrees per minute (positive = clockwise). Drives the spinner animation via `(rateOfTurnDegreesPerMinute / 360) * rotDotAnimationFactor` rotations per minute. When `undefined` the legacy `rotationsPerMinute` value is used instead. |
|
|
13
|
+
| rotDotAnimationFactor | rotDotAnimationFactor | `number` | `18` | Visual amplification applied to the spinning dot animation. Default `18` keeps the legacy visual feel (≈1 rpm at 20°/min). Has no effect when the legacy `rotationsPerMinute` API is used. |
|
|
14
|
+
| rotationsPerMinute | rotationsPerMinute | `number` | `0` | Legacy visual input, read only while `rateOfTurnDegreesPerMinute` is unset: the dot ring's spin in rotations per minute, and the linear dot's offset, full scale at ±3. A measured rate of turn goes in `rateOfTurnDegreesPerMinute`. |
|
|
15
|
+
|
|
16
|
+
## Events
|
|
17
|
+
|
|
18
|
+
None.
|
|
19
|
+
|
|
20
|
+
## Slots
|
|
21
|
+
|
|
22
|
+
None.
|
|
23
|
+
|
|
24
|
+
## Stories
|
|
25
|
+
|
|
26
|
+
- [Radial](https://openbridge-next-storybook.web.app/?path=/story/indicators-rate-of-turn-indicator--radial)
|
|
27
|
+
- [Linear](https://openbridge-next-storybook.web.app/?path=/story/indicators-rate-of-turn-indicator--linear)
|
|
28
|
+
- [Rate Of Turn Degrees Per Minute](https://openbridge-next-storybook.web.app/?path=/story/indicators-rate-of-turn-indicator--rate-of-turn-degrees-per-minute)
|
|
29
|
+
|
|
30
|
+
## See also
|
|
31
|
+
|
|
32
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# `<obc-rot-linear>`
|
|
2
|
+
|
|
3
|
+
Horizontal rate-of-turn strip with a bar growing from the center of the track band.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-rot-linear--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/rot-linear/rot-linear.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-rot-linear>` — Horizontal rate-of-turn strip with a bar growing from
|
|
8
|
+
the center of the track band.
|
|
9
|
+
|
|
10
|
+
The linear counterpart of the `<obc-rate-of-turn>` track bar and the
|
|
11
|
+
rate-of-turn sibling of `<obc-compass-flat>`: a static (non-scrolling)
|
|
12
|
+
strip with a numeric scale on top and a track band in which a filled bar
|
|
13
|
+
grows from the center (zero) to the measured rate of turn, ending in a
|
|
14
|
+
needle marker.
|
|
15
|
+
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
- **Track bar**: A bar from the band center to the measured value with a
|
|
19
|
+
needle marker at its end; the value is clamped to ±`rotMaxValue`.
|
|
20
|
+
- **Numeric scale**: Labels at zero, ±half range and ±full range, with
|
|
21
|
+
tickmarks every `tickInterval` units.
|
|
22
|
+
- **Readout** (`hasReadout`): A centered readout below the strip (label
|
|
23
|
+
`ROT`, unit `DEG/min` by default); shows a dash while
|
|
24
|
+
`rateOfTurnDegreesPerMinute` is unset.
|
|
25
|
+
- **Coloring**: `rotPortStarboard` colors the bar and needle by turn
|
|
26
|
+
direction; otherwise `priority` selects the regular or enhanced palette.
|
|
27
|
+
|
|
28
|
+
## Usage Guidelines
|
|
29
|
+
|
|
30
|
+
- Set `rateOfTurnDegreesPerMinute` to the measured value in degrees per
|
|
31
|
+
minute (positive = starboard).
|
|
32
|
+
- Use `<obc-rate-of-turn>` for the circular presentation of the same
|
|
33
|
+
indication.
|
|
34
|
+
|
|
35
|
+
## Properties
|
|
36
|
+
|
|
37
|
+
| Property | Attribute | Type | Default | Description |
|
|
38
|
+
| --- | --- | --- | --- | --- |
|
|
39
|
+
| rateOfTurnDegreesPerMinute | rateOfTurnDegreesPerMinute | `number \| undefined` | | Measured rate of turn in degrees per minute (positive = starboard). When unset, no bar is shown and the readout shows a dash. |
|
|
40
|
+
| rotMaxValue | rotMaxValue | `number` | `90` | Scale range in **degrees per minute** per direction. Default `90`. |
|
|
41
|
+
| tickInterval | tickInterval | `number` | `5` | Interval for tickmarks in scale units. Default `5`. |
|
|
42
|
+
| rotPortStarboard | rotPortStarboard | `boolean` | `false` | Colors the bar and needle by turn direction (starboard/port palette). |
|
|
43
|
+
| priority | priority | `Priority` | | |
|
|
44
|
+
| hasReadout | hasReadout | `boolean` | `false` | When `true`, shows a centered `<obc-readout>` below the strip with the measured rate of turn. |
|
|
45
|
+
| label | label | `string` | `'ROT'` | Readout label. Default `ROT`. Available when `hasReadout==true`. |
|
|
46
|
+
| unit | unit | `string` | `'DEG/min'` | Readout unit. Default `DEG/min`. Available when `hasReadout==true`. |
|
|
47
|
+
| fractionDigits | fractionDigits | `number` | `0` | Number of fraction digits shown in the readout. Default `0`. Available when `hasReadout==true`. |
|
|
48
|
+
|
|
49
|
+
## Events
|
|
50
|
+
|
|
51
|
+
None.
|
|
52
|
+
|
|
53
|
+
## Slots
|
|
54
|
+
|
|
55
|
+
None.
|
|
56
|
+
|
|
57
|
+
## Stories
|
|
58
|
+
|
|
59
|
+
- [Default](https://openbridge-next-storybook.web.app/?path=/story/instruments-rot-linear--default)
|
|
60
|
+
- [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-rot-linear--enhanced)
|
|
61
|
+
- [Port Starboard](https://openbridge-next-storybook.web.app/?path=/story/instruments-rot-linear--port-starboard)
|
|
62
|
+
- [Port Starboard Port](https://openbridge-next-storybook.web.app/?path=/story/instruments-rot-linear--port-starboard-port)
|
|
63
|
+
- [With Readout](https://openbridge-next-storybook.web.app/?path=/story/instruments-rot-linear--with-readout)
|
|
64
|
+
- [With Readout Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-rot-linear--with-readout-enhanced)
|
|
65
|
+
|
|
66
|
+
## See also
|
|
67
|
+
|
|
68
|
+
- [Migration Guide 2.0 to 2.1](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-0-to-2-1.md)
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# `<obc-rot-sector>`
|
|
2
|
+
|
|
3
|
+
Rate-of-turn sector gauge for rotational velocity.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-rate-of-turn-sector--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/rot-sector/rot-sector.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-rot-sector>` — Rate-of-turn sector gauge for rotational velocity.
|
|
8
|
+
|
|
9
|
+
`ObcRotSector` is a thin wrapper around `<obc-instrument-radial>` that
|
|
10
|
+
displays a bipolar sector gauge showing rate of turn. The arc extent is
|
|
11
|
+
configurable via `rotArcExtent` (default 60°), mapping the value range
|
|
12
|
+
(−maxValue to +maxValue) to ±rotArcExtent degrees. The bottom 50% of the
|
|
13
|
+
circle is clipped, producing a compact sector arc. When `zoomToFitArc`
|
|
14
|
+
is enabled, clipping is bypassed and the arc is enlarged to fill the
|
|
15
|
+
available space. It inherits
|
|
16
|
+
a full setpoint property bundle from SetpointMixin, including
|
|
17
|
+
auto at-setpoint detection, dual-marker adjustment preview, and deadband
|
|
18
|
+
tuning.
|
|
19
|
+
|
|
20
|
+
## Features
|
|
21
|
+
|
|
22
|
+
- **Bipolar sector**: Value range is symmetric around zero (−maxValue to
|
|
23
|
+
+maxValue), mapped to a ±`rotArcExtent`° arc (default 60°).
|
|
24
|
+
- **Port/starboard coloring**: When `portStarboard` is true, positive
|
|
25
|
+
values render in starboard (green) and negative in port (red).
|
|
26
|
+
- **Bar display**: Always renders as a `bar` type — no needle or filled
|
|
27
|
+
variants.
|
|
28
|
+
- **Setpoint via mixin**: `setpoint`, `newSetpoint`, `touching`,
|
|
29
|
+
`autoAtSetpointDeadband`, `setpointOverride`, and all other setpoint
|
|
30
|
+
properties are provided by `SetpointMixin` and forwarded to the inner
|
|
31
|
+
`<obc-instrument-radial>`.
|
|
32
|
+
- **Advice zones**: Pass an array of GaugeRadialAdvice objects to
|
|
33
|
+
render caution/alert arcs on the gauge.
|
|
34
|
+
|
|
35
|
+
## Usage Guidelines
|
|
36
|
+
|
|
37
|
+
- Set `maxValue` to define the symmetric ± range.
|
|
38
|
+
- Use `priority` to switch between regular and enhanced color palettes.
|
|
39
|
+
- Enable `portStarboard` to show directional coloring.
|
|
40
|
+
- Provide `primaryTickmarkInterval` and `secondaryTickmarkInterval` to
|
|
41
|
+
control tickmark density.
|
|
42
|
+
- Enable `showLabels` to show numeric labels at primary tickmarks.
|
|
43
|
+
|
|
44
|
+
## Best Practices
|
|
45
|
+
|
|
46
|
+
- Prefer `SetpointMixin` properties (`setpoint`, `touching`, etc.) over
|
|
47
|
+
any legacy aliases — the mixin is the single source of truth.
|
|
48
|
+
- The sector is always bottom-clipped at 50%; do not change `clipBottom`
|
|
49
|
+
externally.
|
|
50
|
+
|
|
51
|
+
## Example
|
|
52
|
+
|
|
53
|
+
```html
|
|
54
|
+
<obc-rot-sector
|
|
55
|
+
value="15"
|
|
56
|
+
maxValue="60"
|
|
57
|
+
enhanced
|
|
58
|
+
portStarboard
|
|
59
|
+
showLabels
|
|
60
|
+
primaryTickmarkInterval="20"
|
|
61
|
+
secondaryTickmarkInterval="10"
|
|
62
|
+
setpoint="30"
|
|
63
|
+
></obc-rot-sector>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Properties
|
|
67
|
+
|
|
68
|
+
| Property | Attribute | Type | Default | Description |
|
|
69
|
+
| --- | --- | --- | --- | --- |
|
|
70
|
+
| value | value | `number` | `0` | |
|
|
71
|
+
| maxValue | maxValue | `number` | `100` | |
|
|
72
|
+
| rateOfTurn | rateOfTurn | `number` | | Measured rate of turn in degrees per minute (positive = starboard). Alias for `value` provided for cross-component consistency with `obc-compass`, `obc-compass-sector`, `obc-compass-flat`, and `obc-rate-of-turn`. Setting this updates `value`. |
|
|
73
|
+
| rateOfTurnMax | rateOfTurnMax | `number` | | Maximum measured rate of turn in degrees per minute. Alias for `maxValue` provided for cross-component consistency. Setting this updates `maxValue`. |
|
|
74
|
+
| showLabels | showLabels | `boolean` | `false` | |
|
|
75
|
+
| tickmarksInside | tickmarksInside | `boolean` | `false` | Whether to render tickmarks inside the ring. |
|
|
76
|
+
| primaryTickmarkInterval | primaryTickmarkInterval | `number \| undefined` | `50` | Interval for primary tickmarks in value units. When undefined or <= 0, no primary tickmarks are shown. |
|
|
77
|
+
| secondaryTickmarkInterval | secondaryTickmarkInterval | `number \| undefined` | `10` | Interval for secondary tickmarks in value units. When undefined or <= 0, no secondary tickmarks are shown. |
|
|
78
|
+
| tertiaryTickmarkInterval | tertiaryTickmarkInterval | `number \| undefined` | `undefined` | Interval for tertiary tickmarks in value units. When undefined or <= 0, no tertiary tickmarks are shown. |
|
|
79
|
+
| priority | priority | `Priority` | | |
|
|
80
|
+
| portStarboard | portStarboard | `boolean` | `false` | |
|
|
81
|
+
| tickmarkStyle | tickmarkStyle | `TickmarkStyle` | | |
|
|
82
|
+
| zoomToFitArc | zoomToFitArc | `boolean` | `false` | |
|
|
83
|
+
| rotArcExtent | rotArcExtent | `number` | `60` | |
|
|
84
|
+
| hasReadout | hasReadout | `boolean` | `false` | When `true`, shows a centered `<obc-readout>` (label `ROT`, unit `DEG/min`) under the arc with the current rate-of-turn value. Default `false`. |
|
|
85
|
+
| label | label | `string` | `'ROT'` | Readout label. Default `ROT`. |
|
|
86
|
+
| unit | unit | `string` | `'DEG/min'` | Readout unit. Default `DEG/min`. |
|
|
87
|
+
| fractionDigits | fractionDigits | `number` | `0` | Number of fraction digits shown in the readout. Default `0`. |
|
|
88
|
+
| getAngle | | | | |
|
|
89
|
+
| advices | advices | `AdviceInput[]` | `[]` | Advice ranges and points in the instrument's unit; see `svghelpers/advice.ts`. |
|
|
90
|
+
| adviceTrigger | adviceTrigger | `AdviceTrigger` | | Which readings trigger an advice: the value, the setpoint, or either. Available when `adviceTrigger advices!=[]`. |
|
|
91
|
+
| adviceEmphasis | adviceEmphasis | `boolean` | `false` | The design's go-to / no-go emphasis rules. Available when `adviceEmphasis advices!=[]`. |
|
|
92
|
+
| setpoint | setpoint | `number \| undefined` | | Target setpoint value. `undefined` = no setpoint marker shown. |
|
|
93
|
+
| newSetpoint | newSetpoint | `number \| undefined` | | Adjustment preview for 2-step interface. When defined, two markers are shown: original (dimmed) + new (focus). Available when `setpoint!=undefined`. |
|
|
94
|
+
| atSetpoint | | `boolean` | `false` | Manual at-setpoint override (used when `autoAtSetpoint` is false). Available when `setpoint!=undefined && autoAtSetpoint==false`. |
|
|
95
|
+
| touching | touching | `boolean` | `false` | User is physically interacting with the control. Suppresses at-setpoint calculation and triggers focus visual. Available when `setpoint!=undefined`. |
|
|
96
|
+
| autoAtSetpoint | | `boolean` | `true` | When false, uses manual `atSetpoint` boolean instead of auto-calculation. Available when `setpoint!=undefined`. |
|
|
97
|
+
| autoAtSetpointDeadband | autoAtSetpointDeadband | `number` | `defaultDeadband` | Tolerance for auto at-setpoint detection. Available when `setpoint!=undefined && autoAtSetpoint==true`. |
|
|
98
|
+
| setpointAtZeroDeadband | setpointAtZeroDeadband | `number` | `defaultZeroDeadband` | Tolerance for zero-snap visual state. Available when `setpoint!=undefined`. |
|
|
99
|
+
| setpointOverride | setpointOverride | `boolean` | `false` | Override to derive the setpoint color from the instrument's `priority` regardless of instrument state. Available when `setpoint!=undefined`. |
|
|
100
|
+
| animateSetpoint | animateSetpoint | `boolean` | `false` | Enable CSS-animated confirm transition. Available when `setpoint!=undefined`. |
|
|
101
|
+
| departingNewSetpoint | | `number \| undefined` | | Public getter for renderers/wrappers to access the departing value. |
|
|
102
|
+
|
|
103
|
+
## Events
|
|
104
|
+
|
|
105
|
+
None.
|
|
106
|
+
|
|
107
|
+
## Slots
|
|
108
|
+
|
|
109
|
+
None.
|
|
110
|
+
|
|
111
|
+
## Stories
|
|
112
|
+
|
|
113
|
+
- [Regular](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn-sector--regular)
|
|
114
|
+
- [With Readout](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn-sector--with-readout)
|
|
115
|
+
- [Enhanced With Readout](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn-sector--enhanced-with-readout)
|
|
116
|
+
- [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn-sector--enhanced)
|
|
117
|
+
- [Enhanced Port Starboard](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn-sector--enhanced-port-starboard)
|
|
118
|
+
- [With Labels](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn-sector--with-labels)
|
|
119
|
+
- [With Advices](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn-sector--with-advices)
|
|
120
|
+
- [Zoomed In](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn-sector--zoomed-in)
|
|
121
|
+
- [Zoomed In Narrow](https://openbridge-next-storybook.web.app/?path=/story/instruments-rate-of-turn-sector--zoomed-in-narrow)
|
|
122
|
+
|
|
123
|
+
## See also
|
|
124
|
+
|
|
125
|
+
- [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# `<obc-router>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-router--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/router/router.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| alternativeIcon | alternativeIcon | `RouterAlternativeIcon` | | |
|
|
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-router--on)
|
|
59
|
+
- [Off](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-router--off)
|
|
60
|
+
- [Static](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-router--static)
|
|
61
|
+
|
|
62
|
+
## See also
|
|
63
|
+
|
|
64
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# `<obc-rudder-indicator>`
|
|
2
|
+
|
|
3
|
+
Compact rudder status indicator with current angle and setpoint.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/indicators-rudder-indicator--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/rudder-indicator/rudder-indicator.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-rudder-indicator>` – Compact rudder status indicator with current angle and setpoint.
|
|
8
|
+
|
|
9
|
+
Renders a fixed **48×48** rudder cue with a framed half-bowl, a current rudder
|
|
10
|
+
marker, and a setpoint input marker. The component is intended as a compact
|
|
11
|
+
status indicator derived from the larger `obc-rudder` presentation.
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- **Inputs:** `angle` and `setpoint` are clamped to **-90…90**; `angle` drives the
|
|
16
|
+
teardrop needle on the arc.
|
|
17
|
+
- **States:** `in-command`, `not-in-command`, and `off` control the color and
|
|
18
|
+
visibility of the active layers.
|
|
19
|
+
- **Optional silhouette:** `hasSilhouette` adds a silhouette stroke behind the
|
|
20
|
+
frame.
|
|
21
|
+
|
|
22
|
+
## Usage Guidelines
|
|
23
|
+
|
|
24
|
+
Use when the UI needs a compact rudder cue next to readouts or controls. Use
|
|
25
|
+
`obc-rudder` when the full semicircular scale, labels, and watch-based
|
|
26
|
+
setpoint treatment are required.
|
|
27
|
+
|
|
28
|
+
## Properties
|
|
29
|
+
|
|
30
|
+
| Property | Attribute | Type | Default | Description |
|
|
31
|
+
| --- | --- | --- | --- | --- |
|
|
32
|
+
| angle | angle | `number` | `0` | |
|
|
33
|
+
| setpoint | setpoint | `number` | `0` | |
|
|
34
|
+
| state | state | `RudderIndicatorState` | | |
|
|
35
|
+
| hasSilhouette | hasSilhouette | `boolean` | `false` | |
|
|
36
|
+
|
|
37
|
+
## Events
|
|
38
|
+
|
|
39
|
+
None.
|
|
40
|
+
|
|
41
|
+
## Slots
|
|
42
|
+
|
|
43
|
+
None.
|
|
44
|
+
|
|
45
|
+
## Stories
|
|
46
|
+
|
|
47
|
+
- [In Command](https://openbridge-next-storybook.web.app/?path=/story/indicators-rudder-indicator--in-command)
|
|
48
|
+
- [Not In Command](https://openbridge-next-storybook.web.app/?path=/story/indicators-rudder-indicator--not-in-command)
|
|
49
|
+
- [Off](https://openbridge-next-storybook.web.app/?path=/story/indicators-rudder-indicator--off)
|
|
50
|
+
- [Angle -90](https://openbridge-next-storybook.web.app/?path=/story/indicators-rudder-indicator--angle-minus-90)
|
|
51
|
+
- [Angle 0](https://openbridge-next-storybook.web.app/?path=/story/indicators-rudder-indicator--angle-zero)
|
|
52
|
+
- [Angle 90](https://openbridge-next-storybook.web.app/?path=/story/indicators-rudder-indicator--angle-90)
|
|
53
|
+
- [Not in command + Silhouette](https://openbridge-next-storybook.web.app/?path=/story/indicators-rudder-indicator--not-in-command-with-silhouette)
|
|
54
|
+
- [Off + Silhouette (Should Not Render)](https://openbridge-next-storybook.web.app/?path=/story/indicators-rudder-indicator--off-with-silhouette)
|