@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,86 @@
|
|
|
1
|
+
# `<obc-clock>`
|
|
2
|
+
|
|
3
|
+
A digital clock component for displaying the current time, with optional date display and responsive blink-only mode.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-top-elements-clock--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/clock/clock.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-clock>` – A digital clock component for displaying the current time, with optional date display and responsive blink-only mode.
|
|
8
|
+
|
|
9
|
+
Renders a digital clock showing hours and minutes in a prominent style. Optionally, the current date can be shown below the time. The component supports a "blink-only" mode for responsive layouts, where only the blinking colon (:) is shown at certain breakpoints to save space.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
- **Digital Time Display:** Shows the current time in HH:MM format with a blinking colon separator.
|
|
15
|
+
- **Optional Date:** Can display the current date (day and abbreviated month) below the time.
|
|
16
|
+
- **Responsive Blink-Only Mode:** At or below a configurable pixel width, the full time is hidden and only the blinking colon is shown.
|
|
17
|
+
- **Customizable Breakpoint:** The `blinkOnlyBreakpointPx` property allows developers to set the screen width at which the component switches to blink-only mode.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Usage Guidelines
|
|
22
|
+
Use `obc-clock` to display the current time (and optionally the date) in a compact, visually prominent format. It is suitable for dashboards, toolbars, or any UI where a live clock is needed. The blink-only mode is ideal for conserving space on smaller screens or in minimized layouts.
|
|
23
|
+
|
|
24
|
+
**TODO(designer):** Confirm if the clock should update live (tick every minute), or if it is intended for static display of a given time string only.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Properties
|
|
29
|
+
- `date` (string): The ISO date/time string to display. Defaults to `'2021-01-01T11:11:11.111Z'`. Controls both the time and date shown.
|
|
30
|
+
- `showDate` (boolean): If true, displays the date below the time. Defaults to `false`.
|
|
31
|
+
- `blinkOnlyBreakpointPx` (number): The pixel width at which the component switches to blink-only mode. Defaults to `0` (never switches).
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Example
|
|
36
|
+
```html
|
|
37
|
+
<obc-clock date="2024-06-01T14:32:00Z" showDate></obc-clock>
|
|
38
|
+
```
|
|
39
|
+
This example displays the time "14:32" and the date "1. Jun".
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Properties
|
|
44
|
+
|
|
45
|
+
| Property | Attribute | Type | Default | Description |
|
|
46
|
+
| --- | --- | --- | --- | --- |
|
|
47
|
+
| date | date | `string` | | The ISO date/time string to display in the clock. Controls both the time (HH:MM) and the date (if `showDate` is true). |
|
|
48
|
+
| showSeconds | showSeconds | `boolean` | `false` | |
|
|
49
|
+
| showDate | showDate | `boolean` | `false` | If true, displays the date (day and abbreviated month) after the time. Defaults to `false`. |
|
|
50
|
+
| showTimezone | showTimezone | `boolean` | `false` | If true, displays the timezone after the time. Defaults to `false`. |
|
|
51
|
+
| timeZoneOffsetHours | timeZoneOffsetHours | `number` | `0` | Timezone offset in hours, from UTC. Defaults to `0`. |
|
|
52
|
+
| isClickable | | `boolean` | `true` | |
|
|
53
|
+
| showYear | showYear | `boolean` | `false` | Available when `showDate==true`. |
|
|
54
|
+
| showWeekday | showWeekday | `boolean` | `false` | Available when `showDate==true`. |
|
|
55
|
+
| locale | locale | `string` | `'en-GB'` | Available when `showDate==true`. |
|
|
56
|
+
| hour12 | hour12 | `boolean` | `false` | |
|
|
57
|
+
| selected | selected | `boolean` | `false` | |
|
|
58
|
+
| double | double | `boolean` | `false` | |
|
|
59
|
+
| activated | activated | `boolean` | `false` | If true, the clock as a button is activated. For example, when the calendar is open, the clock is activated. |
|
|
60
|
+
| integrationBarMode | integrationBarMode | `boolean` | `false` | |
|
|
61
|
+
| blinkOnlyBreakpointPx | blinkOnlyBreakpointPx | `number` | `0` | The pixel width at which the component switches to blink-only mode. When the viewport width is less than or equal to this value, only the blinking colon is shown. Defaults to `0` (never switches to blink-only). |
|
|
62
|
+
|
|
63
|
+
## Events
|
|
64
|
+
|
|
65
|
+
None.
|
|
66
|
+
|
|
67
|
+
## Slots
|
|
68
|
+
|
|
69
|
+
| Slot | Description |
|
|
70
|
+
| --- | --- |
|
|
71
|
+
| (default) | (No named slots) – All content is rendered by the component; no slots are used. |
|
|
72
|
+
|
|
73
|
+
## Stories
|
|
74
|
+
|
|
75
|
+
- [Normal](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-clock--normal)
|
|
76
|
+
- [No Click](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-clock--no-click)
|
|
77
|
+
- [With Timezone](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-clock--with-timezone)
|
|
78
|
+
- [Full Date](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-clock--full-date)
|
|
79
|
+
- [Double](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-clock--double)
|
|
80
|
+
- [Selected](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-clock--selected)
|
|
81
|
+
- [Activated](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-clock--activated)
|
|
82
|
+
- [US Date](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-clock--us-date)
|
|
83
|
+
- [Norwegian Date](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-clock--norwegian-date)
|
|
84
|
+
- [Live Clock](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-clock--live-clock)
|
|
85
|
+
- [Blink Only](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-clock--blink-only)
|
|
86
|
+
- [Blink Only Responsive](https://openbridge-next-storybook.web.app/?path=/story/application-components-top-elements-clock--blink-only-responsive)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# `<obc-command-button>`
|
|
2
|
+
|
|
3
|
+
A toggleable icon button representing command activation state.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-menus-command-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/command-button/command-button.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-command-button>` – A toggleable icon button representing command activation state.
|
|
8
|
+
|
|
9
|
+
This component displays an icon button that visually indicates whether a command is currently active or inactive. The icon changes based on the `inCommand` property, providing immediate feedback about the command state.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
- **Stateful Icon:** Shows a distinct icon for active (`inCommand = true`) and inactive (`inCommand = false`) states.
|
|
13
|
+
- **Visual Feedback:** Button styling updates to reflect the current state, aiding quick recognition.
|
|
14
|
+
- **Accessible Touch Target:** Ensures minimum touch area for usability.
|
|
15
|
+
|
|
16
|
+
## Usage Guidelines
|
|
17
|
+
Use `obc-command-button` to represent a command or mode that can be toggled on or off, such as activating a tool, switching a mode, or indicating a system state. The button is ideal for toolbars, command menus, or control panels where a clear visual cue for active/inactive status is important.
|
|
18
|
+
|
|
19
|
+
**TODO(designer):** Confirm if this button is intended to be used standalone or always as part of a command menu. Should it emit a custom event on click, or is it purely visual?
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
```html
|
|
23
|
+
<!-- Active command -->
|
|
24
|
+
<obc-command-button inCommand></obc-command-button>
|
|
25
|
+
|
|
26
|
+
<!-- Inactive command -->
|
|
27
|
+
<obc-command-button></obc-command-button>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Best Practices
|
|
31
|
+
- Use only for binary command states (active/inactive).
|
|
32
|
+
- Place in a consistent location within toolbars or menus for predictable user experience.
|
|
33
|
+
- Pair with a tooltip or label if the icon meaning is not self-evident.
|
|
34
|
+
|
|
35
|
+
## Properties
|
|
36
|
+
|
|
37
|
+
| Property | Attribute | Type | Default | Description |
|
|
38
|
+
| --- | --- | --- | --- | --- |
|
|
39
|
+
| inCommand | inCommand | `boolean` | `false` | Whether the command is currently active. When `true`, the button displays the "in command" icon and uses active styling. When `false`, the button displays the "no command" icon and uses default styling. |
|
|
40
|
+
|
|
41
|
+
## Events
|
|
42
|
+
|
|
43
|
+
| Event | Type | Description |
|
|
44
|
+
| --- | --- | --- |
|
|
45
|
+
| click | | Fired when the button is clicked. |
|
|
46
|
+
|
|
47
|
+
## Slots
|
|
48
|
+
|
|
49
|
+
| Slot | Description |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| (default) | (none; icon is determined by state, no external slot) |
|
|
52
|
+
|
|
53
|
+
## Stories
|
|
54
|
+
|
|
55
|
+
- [In Command](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-command-button--in-command)
|
|
56
|
+
- [No Command](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-command-button--no-command)
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# `<obc-command-menu>`
|
|
2
|
+
|
|
3
|
+
A toggleable command status menu for switching between "in command" and "no command" states.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/application-components-menus-command-menu--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/command-menu/command-menu.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-command-menu>` – A toggleable command status menu for switching between "in command" and "no command" states.
|
|
8
|
+
|
|
9
|
+
Displays the current command status, description, and (optionally) location, along with a prominent toggle control for taking or releasing command. The component is designed for scenarios where a user needs to view and change the active command state for a system or station.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
- **Command State Toggle:** Switch between "in command" and "no command" states using an integrated toggle (based on `obc-start-stop-switch`).
|
|
15
|
+
- **Status Display:** Shows a customizable status label, description, and optional location for the current command.
|
|
16
|
+
- **Icon Support:** Accepts custom icons for command state via slots.
|
|
17
|
+
- **Customizable Labels:** All action and state labels for the toggle can be customized via slots.
|
|
18
|
+
- **Visual Feedback:** The component visually distinguishes between "in command" and "no command" states, including color and icon changes.
|
|
19
|
+
- **Location Support:** Optionally displays the location of the command if `showLocation` is true.
|
|
20
|
+
- **Action Description:** A caption under the toggle, shown when `hasActionDescription` is true.
|
|
21
|
+
- **Disabled State:** `disabled` greys out the toggle and stops it from being used, for a menu with nothing to take or release, for example while a request is pending.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Usage Guidelines
|
|
26
|
+
Use `<obc-command-menu>` to present and manage the active command state for a system, device, or station. It is ideal when users need to clearly see the current command status and quickly toggle control. The component is suitable for dashboards, control panels, or any interface where command handover is required.
|
|
27
|
+
|
|
28
|
+
**TODO(designer):** Confirm if there are recommended icons, color schemes, or text length limits for status/description. Clarify if there are any constraints on when to use this component versus other status/toggle components.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Slots
|
|
33
|
+
| Slot Name | Renders When... | Purpose |
|
|
34
|
+
|---------------------------------------|-------------------------------|-----------------------------------------------------------------|
|
|
35
|
+
| `command-icon` | Always | Main icon representing the current command state. |
|
|
36
|
+
| `command-status` | Always | Status label (e.g., "Joystick", "NO CMD"). |
|
|
37
|
+
| `command-description` | Always | Description of the command state (e.g., "DP", "CMD at DP"). |
|
|
38
|
+
| `command-location` | `showLocation` is true | Location label for the command (e.g., "Aft Bridge"). |
|
|
39
|
+
| `toggle-action-to-in-command-label` | Always | Label for the action to take command (toggle to "in command"). |
|
|
40
|
+
| `toggle-action-to-no-command-label` | Always | Label for the action to release command (toggle to "no command").|
|
|
41
|
+
| `toggle-state-in-command-label` | Always | Status label when in "in command" state. |
|
|
42
|
+
| `toggle-state-no-command-label` | Always | Status label when in "no command" state. |
|
|
43
|
+
| `toggle-state-in-command-icon` | Always | Icon for the "in command" state (defaults to `<obi-command-in>`).|
|
|
44
|
+
|
|
45
|
+
The misspelled `toogle-…` names of these five slots are deprecated aliases: each is read only while its `toggle-…` slot is empty, and goes in the next major release (#1370).
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Properties and Attributes
|
|
50
|
+
- **`inCommand`** (`boolean`): Whether the menu is in the "in command" state. Controls the toggle and visual state. (Default: `false`)
|
|
51
|
+
- **`showLocation`** (`boolean`): Whether to display the location slot. If `false`, the location is omitted. (Default: `true`)
|
|
52
|
+
- **`disabled`** (`boolean`): Disables the toggle. (Default: `false`)
|
|
53
|
+
- **`hasActionDescription`** (`boolean`): Shows `actionDescription` under the toggle. (Default: `false`)
|
|
54
|
+
- **`actionDescription`** (`string`): Caption under the toggle. (Default: `'Action description'`)
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Events
|
|
59
|
+
- **`change`** – Fired when the command state is toggled. The event detail contains `{inCommand: boolean}` indicating the new state.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Best Practices & Constraints
|
|
64
|
+
- Use clear, concise labels for status and actions to ensure quick recognition.
|
|
65
|
+
- Only display the location if it is relevant to the command context.
|
|
66
|
+
- Keep only one command menu active per system at a time, so the states cannot conflict.
|
|
67
|
+
- For accessibility, provide meaningful icons and text in all slots.
|
|
68
|
+
- **TODO(designer):** Specify if there are any timing, animation, or accessibility requirements for the toggle interaction.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Example
|
|
73
|
+
```html
|
|
74
|
+
<obc-command-menu .inCommand=${true}>
|
|
75
|
+
<div slot="command-icon"><obi-joystick></obi-joystick></div>
|
|
76
|
+
<div slot="command-status">Joystick</div>
|
|
77
|
+
<div slot="command-description">DP</div>
|
|
78
|
+
<div slot="command-location">Aft Bridge</div>
|
|
79
|
+
<div slot="toggle-action-to-in-command-label">Take</div>
|
|
80
|
+
<div slot="toggle-action-to-no-command-label">Release</div>
|
|
81
|
+
<div slot="toggle-state-in-command-label">In CMD</div>
|
|
82
|
+
<div slot="toggle-state-no-command-label">DP Aft Bridge</div>
|
|
83
|
+
</obc-command-menu>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Properties
|
|
87
|
+
|
|
88
|
+
| Property | Attribute | Type | Default | Description |
|
|
89
|
+
| --- | --- | --- | --- | --- |
|
|
90
|
+
| softDismiss | softDismiss | `boolean` | `false` | Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. |
|
|
91
|
+
| open | open | `boolean` | `false` | Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`. Available when `softDismiss==true`. |
|
|
92
|
+
| inCommand | inCommand | `boolean` | `false` | Whether the menu is in the "in command" state. Controls the toggle and visual state. |
|
|
93
|
+
| showLocation | | `boolean` | `true` | Whether to display the location slot. If false, the location is omitted from the menu. |
|
|
94
|
+
| disabled | disabled | `boolean` | `false` | Disables the toggle, for a menu with nothing to offer: no user signed in, a request already pending, or a user who holds the command and may not release it. The toggle then hides its thumb and shows only the current side's state label. |
|
|
95
|
+
| hasActionDescription | hasActionDescription | `boolean` | `false` | Shows `actionDescription` as a caption under the toggle. |
|
|
96
|
+
| actionDescription | actionDescription | `string` | `'Action description'` | Caption under the toggle that says what taking or releasing the command does. Available when `hasActionDescription==true`. |
|
|
97
|
+
|
|
98
|
+
## Events
|
|
99
|
+
|
|
100
|
+
| Event | Type | Description |
|
|
101
|
+
| --- | --- | --- |
|
|
102
|
+
| change | `CustomEvent<{inCommand: boolean}>` | Fired when the command state is toggled. |
|
|
103
|
+
| close | `CustomEvent<void>` | Fired when the menu closed on its own, from a click outside, `Escape`, or another menu opening. `open` is already `false` by the time it arrives; reset the flag you bind to `open` here, or the next click on the button finds it still set and asks a closed menu to close. |
|
|
104
|
+
|
|
105
|
+
## Slots
|
|
106
|
+
|
|
107
|
+
| Slot | Description |
|
|
108
|
+
| --- | --- |
|
|
109
|
+
| command-icon | Main icon representing the current command state. |
|
|
110
|
+
| command-status | Status label (e.g., "Joystick", "NO CMD"). |
|
|
111
|
+
| command-description | Description of the command state. |
|
|
112
|
+
| command-location | Location label for the command (shown if `showLocation` is true). |
|
|
113
|
+
| toggle-action-to-in-command-label | Label for the action to take command. |
|
|
114
|
+
| toggle-action-to-no-command-label | Label for the action to release command. |
|
|
115
|
+
| toggle-state-in-command-label | Status label when in "in command" state. |
|
|
116
|
+
| toggle-state-no-command-label | Status label when in "no command" state. |
|
|
117
|
+
| toggle-state-in-command-icon | Icon for the "in command" state (defaults to `<obi-command-in>`). |
|
|
118
|
+
| toogle-action-to-in-command-label | Deprecated: use `toggle-action-to-in-command-label`. Read only while that slot is empty. |
|
|
119
|
+
| toogle-action-to-no-command-label | Deprecated: use `toggle-action-to-no-command-label`. Read only while that slot is empty. |
|
|
120
|
+
| toogle-state-in-command-label | Deprecated: use `toggle-state-in-command-label`. Read only while that slot is empty. |
|
|
121
|
+
| toogle-state-no-command-label | Deprecated: use `toggle-state-no-command-label`. Read only while that slot is empty. |
|
|
122
|
+
| toogle-state-in-command-icon | Deprecated: use `toggle-state-in-command-icon`. Read only while that slot is empty. |
|
|
123
|
+
|
|
124
|
+
## Stories
|
|
125
|
+
|
|
126
|
+
- [In Command](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-command-menu--in-command)
|
|
127
|
+
- [No Command](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-command-menu--no-command)
|
|
128
|
+
- [With Action Description](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-command-menu--with-action-description)
|
|
129
|
+
- [Disabled](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-command-menu--disabled)
|
|
130
|
+
- [Disabled In Command](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-command-menu--disabled-in-command)
|
|
131
|
+
- [Keyboard Toggle](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-command-menu--keyboard-toggle)
|
|
132
|
+
|
|
133
|
+
## See also
|
|
134
|
+
|
|
135
|
+
- [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,31 @@
|
|
|
1
|
+
# `<obc-communication-table>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-communication-communication-table--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/communication-table/communication-table.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| data | data | `ObcCommunicationTableRow[]` | `[]` | |
|
|
12
|
+
| showLeadingIcon | | `boolean` | `true` | |
|
|
13
|
+
| showLabel | | `boolean` | `true` | |
|
|
14
|
+
| showActionIcon | | `boolean` | `true` | |
|
|
15
|
+
| largeLeadingIcon | largeLeadingIcon | `boolean` | `false` | |
|
|
16
|
+
|
|
17
|
+
## Events
|
|
18
|
+
|
|
19
|
+
| Event | Type | Description |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| row-click | `ObcCommunicationTableRowClickEvent` | When a row is clicked. |
|
|
22
|
+
|
|
23
|
+
## Slots
|
|
24
|
+
|
|
25
|
+
None.
|
|
26
|
+
|
|
27
|
+
## Stories
|
|
28
|
+
|
|
29
|
+
- [Primary](https://openbridge-next-storybook.web.app/?path=/story/ui-components-communication-communication-table--primary)
|
|
30
|
+
- [No Description Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-communication-communication-table--no-description-icon)
|
|
31
|
+
- [User Buttons](https://openbridge-next-storybook.web.app/?path=/story/ui-components-communication-communication-table--user-buttons)
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# `<obc-compass-flat>`
|
|
2
|
+
|
|
3
|
+
Horizontal strip compass with HDG/COG arrows and optional rate-of-turn indicator.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-compass-flat--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/compass-flat/compass-flat.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-compass-flat>` — Horizontal strip compass with HDG/COG arrows and optional rate-of-turn indicator.
|
|
8
|
+
|
|
9
|
+
Renders a flat (non-circular) compass strip that scrolls horizontally to
|
|
10
|
+
display the current heading. A filled HDG arrow sits at the center while a
|
|
11
|
+
hollow COG arrow is positioned at the angular difference. The strip
|
|
12
|
+
auto-scales its field of view so both arrows remain visible. Cardinal
|
|
13
|
+
labels (N, S, E, W) and tickmarks are generated at densities responsive to
|
|
14
|
+
the strip width.
|
|
15
|
+
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
- **Auto-scaling FOV**: The visible compass range widens to keep both HDG
|
|
19
|
+
and COG arrows in view, bounded by `minFOV` / `maxFOV`.
|
|
20
|
+
- **HDG / COG arrows**: Filled (HDG) and hollow (COG) arrow SVGs positioned
|
|
21
|
+
along the strip.
|
|
22
|
+
- **FOV indicator**: Optional numeric labels showing the port/starboard
|
|
23
|
+
bearing range and current heading.
|
|
24
|
+
- **Rate of turn**: Animated linear ROT indicator (spinning dots or
|
|
25
|
+
horizontal bar) via `rotType`. When enabled, a bottom bar is added to
|
|
26
|
+
the strip to house the indicator.
|
|
27
|
+
- **Readout**: `hasReadout` shows a centered heading readout below the
|
|
28
|
+
strip (label `HDG`, unit `DEG` by default).
|
|
29
|
+
- **Color priority**: Per-element priority for HDG, COG, and ROT via
|
|
30
|
+
`priorityElements`.
|
|
31
|
+
|
|
32
|
+
## Properties
|
|
33
|
+
|
|
34
|
+
| Property | Attribute | Type | Default | Description |
|
|
35
|
+
| --- | --- | --- | --- | --- |
|
|
36
|
+
| FOVIndicator | FOVIndicator | `boolean` | `false` | |
|
|
37
|
+
| heading | heading | `number` | `0` | Current heading in degrees. |
|
|
38
|
+
| courseOverGround | courseOverGround | `number` | `0` | Current COG in degrees. |
|
|
39
|
+
| tickInterval | tickInterval | `number` | `5` | |
|
|
40
|
+
| FOV | FOV | `number` | `45` | |
|
|
41
|
+
| minFOV | minFOV | `number` | `45` | |
|
|
42
|
+
| maxFOV | maxFOV | `number` | `180` | |
|
|
43
|
+
| priority | priority | `Priority` | | |
|
|
44
|
+
| priorityElements | | `CompassFlatPriorityElement[]` | `[ CompassFlatPriorityElement.hdg, ]` | |
|
|
45
|
+
| rotType | rotType | `RotType \| undefined` | | ROT display mode: `'dots'`, `'bar'`, or `undefined` (hidden). |
|
|
46
|
+
| rateOfTurnDegreesPerMinute | rateOfTurnDegreesPerMinute | `number \| undefined` | | Measured rate of turn in degrees per minute (positive = starboard). When `undefined`, falls back to the deprecated `rotationsPerMinute`. Available when `rotType!=undefined`. |
|
|
47
|
+
| rotDotAnimationFactor | rotDotAnimationFactor | `number` | `18` | Visual amplification applied only to the spinning dot animation. Available when `rotType!=undefined`. |
|
|
48
|
+
| rotationsPerMinute | rotationsPerMinute | `number` | `0` | **Deprecated.** Use `rateOfTurnDegreesPerMinute` instead. Available when `rotType!=undefined`. |
|
|
49
|
+
| rotMaxValue | rotMaxValue | `number` | `60` | Bar-extent reference value in **degrees per minute**. Default `60` per ES-TRIN 2025/1 Art. 3.02. Available when `rotType!=undefined`. |
|
|
50
|
+
| rotArcExtent | rotArcExtent | `number` | `60` | Degrees of bar arc per max-value ROT (default 60). Available when `rotType!=undefined`. |
|
|
51
|
+
| rotPortStarboard | rotPortStarboard | `boolean` | `false` | Available when `rotType!=undefined`. |
|
|
52
|
+
| rotAtZeroDeadband | rotAtZeroDeadband | `number` | `ROT_ZERO_DEADBAND_DEG` | Available when `rotType!=undefined`. |
|
|
53
|
+
| hasReadout | hasReadout | `boolean` | `false` | When `true`, shows a centered `<obc-readout>` below the strip displaying the heading (label `HDG`, unit `DEG`). The value color follows the HDG entry in `priorityElements`. |
|
|
54
|
+
| label | label | `string` | `'HDG'` | Readout label. Default `HDG`. Available when `hasReadout==true`. |
|
|
55
|
+
| unit | unit | `string` | `'DEG'` | Readout unit. Default `DEG`. Available when `hasReadout==true`. |
|
|
56
|
+
| fractionDigits | fractionDigits | `number` | `0` | Number of fraction digits shown in the readout. Default `0`. Available when `hasReadout==true`. |
|
|
57
|
+
|
|
58
|
+
## Events
|
|
59
|
+
|
|
60
|
+
None.
|
|
61
|
+
|
|
62
|
+
## Slots
|
|
63
|
+
|
|
64
|
+
None.
|
|
65
|
+
|
|
66
|
+
## Stories
|
|
67
|
+
|
|
68
|
+
- [Primary](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-flat--primary)
|
|
69
|
+
- [With Readout](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-flat--with-readout)
|
|
70
|
+
- [With FOV Indicator](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-flat--with-fov-indicator)
|
|
71
|
+
- [ROT Dots](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-flat--with-rot-dots)
|
|
72
|
+
- [ROT Bar](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-flat--with-rot-bar)
|
|
73
|
+
- [ROT Bar + FOV Indicator](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-flat--with-rot-bar-fov)
|
|
74
|
+
- [ROT Bar Wide FOV](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-flat--with-rot-bar-wide-fov)
|
|
75
|
+
- [Rate of Turn Degrees Per Minute](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-flat--with-rate-of-turn-degrees-per-minute)
|
|
76
|
+
|
|
77
|
+
## See also
|
|
78
|
+
|
|
79
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# `<obc-compass-indicator>`
|
|
2
|
+
|
|
3
|
+
A compact compass direction indicator with heading, course, and north variants.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/indicators-compass-indicator--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/compass-indicator/compass-indicator.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-compass-indicator>` – A compact compass direction indicator with heading, course, and north variants.
|
|
8
|
+
|
|
9
|
+
Renders a 48 x 48 directional indicator that can switch between a circular
|
|
10
|
+
compass face and labeled compact readouts. Use it when you need a small
|
|
11
|
+
directional cue next to a numeric readout or inside dense instrument layouts.
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- **Types**: `regular` shows the circular compass indicator; `labeled` shows a framed indicator with a single cardinal label.
|
|
16
|
+
- **Directions**: `heading`, `course`, and `north` each use their own visual symbol.
|
|
17
|
+
- **Angle-driven output**: `angle` rotates the active symbol and drives the derived label in labeled mode.
|
|
18
|
+
- **Orientation**: `northUp` keeps the compass face fixed north-up and rotates the arrow; when `false` the face rotates and the arrow stays pointing up (heading-up / course-up).
|
|
19
|
+
|
|
20
|
+
## Usage Guidelines
|
|
21
|
+
|
|
22
|
+
- Use `direction="heading"` for the filled heading arrow variant.
|
|
23
|
+
- Use `direction="course"` for the outlined course arrow variant.
|
|
24
|
+
- Use `direction="north"` for the north marker / bearing-style indicator.
|
|
25
|
+
- Switch `type` to `labeled` when the indicator should also communicate the
|
|
26
|
+
nearest cardinal direction as text.
|
|
27
|
+
- Set `northUp` to `false` to render a heading-up / course-up presentation
|
|
28
|
+
where the arrow stays vertical and the compass face rotates instead.
|
|
29
|
+
|
|
30
|
+
## Properties
|
|
31
|
+
|
|
32
|
+
| Property | Attribute | Type | Default | Description |
|
|
33
|
+
| --- | --- | --- | --- | --- |
|
|
34
|
+
| angle | angle | `number` | `0` | |
|
|
35
|
+
| type | type | `CompassIndicatorType` | | |
|
|
36
|
+
| direction | direction | `CompassIndicatorDirection` | | |
|
|
37
|
+
| northUp | | `boolean` | `true` | When `true` (default) the compass face stays north-up and the arrow rotates by `angle`; when `false` the arrow stays pointing up and the face rotates instead, the heading-up presentation. |
|
|
38
|
+
|
|
39
|
+
## Events
|
|
40
|
+
|
|
41
|
+
None.
|
|
42
|
+
|
|
43
|
+
## Slots
|
|
44
|
+
|
|
45
|
+
None.
|
|
46
|
+
|
|
47
|
+
## Stories
|
|
48
|
+
|
|
49
|
+
- [Default](https://openbridge-next-storybook.web.app/?path=/story/indicators-compass-indicator--default)
|
|
50
|
+
- [Regular Heading](https://openbridge-next-storybook.web.app/?path=/story/indicators-compass-indicator--regular-heading)
|
|
51
|
+
- [Regular Course](https://openbridge-next-storybook.web.app/?path=/story/indicators-compass-indicator--regular-course)
|
|
52
|
+
- [Regular North](https://openbridge-next-storybook.web.app/?path=/story/indicators-compass-indicator--regular-north)
|
|
53
|
+
- [Labeled Heading](https://openbridge-next-storybook.web.app/?path=/story/indicators-compass-indicator--labeled-heading)
|
|
54
|
+
- [Labeled Course](https://openbridge-next-storybook.web.app/?path=/story/indicators-compass-indicator--labeled-course)
|
|
55
|
+
- [Labeled North](https://openbridge-next-storybook.web.app/?path=/story/indicators-compass-indicator--labeled-north)
|
|
56
|
+
- [Regular Heading Heading Up](https://openbridge-next-storybook.web.app/?path=/story/indicators-compass-indicator--regular-heading-heading-up)
|
|
57
|
+
- [Regular Course Course Up](https://openbridge-next-storybook.web.app/?path=/story/indicators-compass-indicator--regular-course-course-up)
|
|
58
|
+
|
|
59
|
+
## See also
|
|
60
|
+
|
|
61
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# `<obc-compass-sector>`
|
|
2
|
+
|
|
3
|
+
Curved compass strip that auto‑scales to keep HDG and COG visible.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-compass-sector--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/compass-sector/compass-sector.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-compass-sector>` — Curved compass strip that auto‑scales to keep HDG and COG visible.
|
|
8
|
+
|
|
9
|
+
Renders a fixed 120° arc of a triple‑ring compass face. The visible
|
|
10
|
+
compass range (field of view) adjusts automatically so that both the
|
|
11
|
+
heading (HDG) and course‑over‑ground (COG) arrows are always in view.
|
|
12
|
+
This is the radial equivalent of `<obc-compass-flat>`: the arc shape
|
|
13
|
+
never changes — only the scale (compass‑degrees per arc‑degree) changes.
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- **Fixed 120° arc**: The watch face is always a 120° sector (±60° from
|
|
18
|
+
center), identical in shape to `<obc-rot-sector>`.
|
|
19
|
+
- **FOV auto‑scaling**: The field of view widens when the HDG–COG
|
|
20
|
+
angular difference grows, compressing more compass degrees into the
|
|
21
|
+
fixed arc. Tickmark density adjusts automatically.
|
|
22
|
+
- **HDG / COG arrows**: Solid (HDG) arrow is always at the arc center.
|
|
23
|
+
Hollow (COG) arrow is positioned proportionally within the arc.
|
|
24
|
+
- **North arrow**: A gray triangle in the outer scale band indicates
|
|
25
|
+
north when it falls within the visible FOV.
|
|
26
|
+
- **Heading setpoint**: Optional setpoint marker with auto at‑setpoint
|
|
27
|
+
detection and confirm animation, positioned at the mapped arc angle.
|
|
28
|
+
- **Advice zones**: Pass `headingAdvices` (or the shared `advices`) to render caution/alert arcs,
|
|
29
|
+
mapped into the scaled arc.
|
|
30
|
+
- **Rate of turn**: Animated ROT indicator (dots or bar) spanning from
|
|
31
|
+
HDG to the mapped COG position, clipped to the arc.
|
|
32
|
+
- **Zoom to fit**: When `zoomToFitArc` is `true`, the fixed 120° arc is
|
|
33
|
+
enlarged to fill the available space.
|
|
34
|
+
|
|
35
|
+
## Usage Guidelines
|
|
36
|
+
|
|
37
|
+
- Set `heading` and `courseOverGround` to sensor values in degrees.
|
|
38
|
+
- Adjust `minFOV` to control the minimum zoom level (default 30°).
|
|
39
|
+
- Enable `zoomToFitArc` to enlarge the arc to fill the viewport.
|
|
40
|
+
- For a full‑circle compass, use `<obc-compass>` instead.
|
|
41
|
+
|
|
42
|
+
## Properties
|
|
43
|
+
|
|
44
|
+
| Property | Attribute | Type | Default | Description |
|
|
45
|
+
| --- | --- | --- | --- | --- |
|
|
46
|
+
| heading | heading | `number` | `0` | |
|
|
47
|
+
| courseOverGround | courseOverGround | `number` | `0` | |
|
|
48
|
+
| headingSetpoint | headingSetpoint | `number \| null` | `null` | |
|
|
49
|
+
| newHeadingSetpoint | newHeadingSetpoint | `number \| undefined` | | Available when `headingSetpoint!=null`. |
|
|
50
|
+
| atHeadingSetpoint | atHeadingSetpoint | `boolean` | `false` | Available when `headingSetpoint!=null && autoAtHeadingSetpoint==false`. |
|
|
51
|
+
| headingSetpointAtZeroDeadband | headingSetpointAtZeroDeadband | `number` | `0.5` | Available when `headingSetpoint!=null`. |
|
|
52
|
+
| headingSetpointOverride | headingSetpointOverride | `boolean` | `false` | Available when `headingSetpoint!=null`. |
|
|
53
|
+
| autoAtHeadingSetpoint | | `boolean` | `true` | Available when `headingSetpoint!=null`. |
|
|
54
|
+
| autoAtHeadingSetpointDeadband | autoAtHeadingSetpointDeadband | `number` | `2` | Available when `headingSetpoint!=null && autoAtHeadingSetpoint==true`. |
|
|
55
|
+
| animateSetpoint | animateSetpoint | `boolean` | `false` | Available when `headingSetpoint!=null`. |
|
|
56
|
+
| touching | touching | `boolean` | `false` | Available when `headingSetpoint!=null`. |
|
|
57
|
+
| headingAdvices | | `AdviceInput[] \| undefined` | | Heading advices: ranges and points in degrees, resolved against `heading` and `headingSetpoint`. The same list as `advices`, the name every instrument shares. |
|
|
58
|
+
| minFOV | minFOV | `number` | `30` | |
|
|
59
|
+
| rotType | rotType | `RotType \| undefined` | | |
|
|
60
|
+
| rotPosition | rotPosition | `RotPosition` | | Available when `rotType!=undefined`. |
|
|
61
|
+
| rateOfTurnDegreesPerMinute | rateOfTurnDegreesPerMinute | `number \| undefined` | | Measured rate of turn in degrees per minute (positive = starboard). Drives both the bar extent and (after multiplication by `rotDotAnimationFactor`) the spinning dot animation. When `undefined`, falls back to the deprecated `rotationsPerMinute`. Available when `rotType!=undefined`. |
|
|
62
|
+
| rotDotAnimationFactor | rotDotAnimationFactor | `number` | `18` | Visual amplification applied only to the spinning dot animation (not to the bar extent). Default `18` keeps the legacy visual feel (≈1 rpm at 20°/min). Available when `rotType!=undefined`. |
|
|
63
|
+
| rotationsPerMinute | rotationsPerMinute | `number` | `0` | Legacy visual input, read only while `rateOfTurnDegreesPerMinute` is unset: the dot ring's spin in rotations per minute, and the bar's extent read unconverted against `rotMaxValue`. A measured rate of turn goes in `rateOfTurnDegreesPerMinute`. Available when `rotType!=undefined && rateOfTurnDegreesPerMinute==undefined`. |
|
|
64
|
+
| rotMaxValue | rotMaxValue | `number` | `60` | Bar-extent reference value in degrees per minute: the bar fills the full ±`ARC_HALF_EXTENT` arc when the measured rate of turn reaches ±`rotMaxValue`. The default `60` aligns with ES-TRIN 2025/1 Art. 3.02. Available when `rotType==bar`. |
|
|
65
|
+
| rotPortStarboard | rotPortStarboard | `boolean` | `false` | Available when `rotType!=undefined`. |
|
|
66
|
+
| rotAtZeroDeadband | rotAtZeroDeadband | `number` | `ROT_ZERO_DEADBAND_DEG` | Available when `rotType==bar`. |
|
|
67
|
+
| state | state | `InstrumentState` | | |
|
|
68
|
+
| priority | priority | `Priority` | | |
|
|
69
|
+
| priorityElements | | `CompassSectorPriorityElement[]` | `[ CompassSectorPriorityElement.hdg, ]` | Available when `priority==enhanced`. |
|
|
70
|
+
| tickmarksInside | tickmarksInside | `boolean` | `false` | |
|
|
71
|
+
| zoomToFitArc | zoomToFitArc | `boolean` | `false` | |
|
|
72
|
+
| hasReadout | hasReadout | `boolean` | `false` | When `true`, shows a centered `<obc-readout>` under the arc displaying the heading (label `HDG`, unit `DEG`). The value color follows the HDG entry in `priorityElements`, matching the HDG arrow. |
|
|
73
|
+
| label | label | `string` | `'HDG'` | Readout label. Default `HDG`. Available when `hasReadout==true`. |
|
|
74
|
+
| unit | unit | `string` | `'DEG'` | Readout unit. Default `DEG`. Available when `hasReadout==true`. |
|
|
75
|
+
| fractionDigits | fractionDigits | `number` | `0` | Number of fraction digits shown in the readout. Default `0`. Available when `hasReadout==true`. |
|
|
76
|
+
| advices | advices | `AdviceInput[]` | `[]` | Advice ranges and points in the instrument's unit; see `svghelpers/advice.ts`. |
|
|
77
|
+
| adviceTrigger | adviceTrigger | `AdviceTrigger` | | Which readings trigger an advice: the value, the setpoint, or either. Available when `adviceTrigger advices!=[]`. |
|
|
78
|
+
| adviceEmphasis | adviceEmphasis | `boolean` | `false` | The design's go-to / no-go emphasis rules. Available when `adviceEmphasis advices!=[]`. |
|
|
79
|
+
|
|
80
|
+
## Events
|
|
81
|
+
|
|
82
|
+
None.
|
|
83
|
+
|
|
84
|
+
## Slots
|
|
85
|
+
|
|
86
|
+
None.
|
|
87
|
+
|
|
88
|
+
## Stories
|
|
89
|
+
|
|
90
|
+
- [Default](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--default)
|
|
91
|
+
- [Wide Angle](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--wide-angle)
|
|
92
|
+
- [Narrow Angle](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--narrow-angle)
|
|
93
|
+
- [With Rot Bar](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--with-rot-bar)
|
|
94
|
+
- [With Rot Dots](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--with-rot-dots)
|
|
95
|
+
- [With Advices](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--with-advices)
|
|
96
|
+
- [With Setpoint](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--with-setpoint)
|
|
97
|
+
- [With Readout](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--with-readout)
|
|
98
|
+
- [Tickmarks Inside](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--tickmarks-inside)
|
|
99
|
+
- [Not Zoomed](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--not-zoomed)
|
|
100
|
+
- [Zoomed In With Rot Bar](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--zoomed-in-with-rot-bar)
|
|
101
|
+
- [With Rot Bar Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--with-rot-bar-enhanced)
|
|
102
|
+
- [Short Wide Container](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--short-wide-container)
|
|
103
|
+
- [Small Width](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--small-width)
|
|
104
|
+
- [Narrow Fov Zoomed](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--narrow-fov-zoomed)
|
|
105
|
+
- [With Rate Of Turn Degrees Per Minute](https://openbridge-next-storybook.web.app/?path=/story/instruments-compass-sector--with-rate-of-turn-degrees-per-minute)
|
|
106
|
+
|
|
107
|
+
## See also
|
|
108
|
+
|
|
109
|
+
- [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
|
|
110
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|