@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,112 @@
|
|
|
1
|
+
# `<obc-rudder>`
|
|
2
|
+
|
|
3
|
+
Half-circle rudder angle indicator.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-rudder--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/rudder/rudder.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-rudder>` — Half-circle rudder angle indicator.
|
|
8
|
+
|
|
9
|
+
`ObcRudder` renders a semicircular gauge (40% top-clipped) that displays
|
|
10
|
+
the current rudder angle with a configurable bar or needle variant. The
|
|
11
|
+
gauge maps rudder angles to the lower arc of an `<obc-watch>` and overlays
|
|
12
|
+
a domain-specific needle when the `needle` variant is selected. It inherits
|
|
13
|
+
a full setpoint property bundle from SetpointMixin, including
|
|
14
|
+
auto at-setpoint detection, dual-marker adjustment preview, and deadband
|
|
15
|
+
tuning.
|
|
16
|
+
|
|
17
|
+
## Features
|
|
18
|
+
|
|
19
|
+
- **Two display variants**: `bar` (filled arc from zero, default) and
|
|
20
|
+
`needle` (rotating pointer with silhouette stroke) via the `variant`
|
|
21
|
+
property.
|
|
22
|
+
- **Symmetric range**: The gauge spans ±`maxAngle` around the 180° center
|
|
23
|
+
(zero position at bottom).
|
|
24
|
+
- **State-aware colors**: Bar and needle colors adapt to the current
|
|
25
|
+
`InstrumentState` (active, loading, off) and `Priority` (enhanced, regular).
|
|
26
|
+
- **Setpoint via mixin**: `setpoint`, `newSetpoint`, `touching`,
|
|
27
|
+
`autoAtSetpointDeadband`, `setpointOverride`, and all other setpoint
|
|
28
|
+
properties are provided by `SetpointMixin` and forwarded to `<obc-watch>`.
|
|
29
|
+
- **Advice zones**: Pass an array of `AngleAdvice` objects to render
|
|
30
|
+
caution/alert arcs; triggered state is derived from whether the setpoint
|
|
31
|
+
falls inside the advice range.
|
|
32
|
+
|
|
33
|
+
## Usage Guidelines
|
|
34
|
+
|
|
35
|
+
- Set `maxAngle` to define the symmetric ± range (default: 90°).
|
|
36
|
+
- Use `priority` to switch between regular and enhanced color palettes
|
|
37
|
+
(default: `Priority.regular`).
|
|
38
|
+
- Use `state` to control the instrument color palette.
|
|
39
|
+
- Enable `showLabels` to show numeric angle labels at tickmarks.
|
|
40
|
+
- Enable `tickmarksInside` to render tickmarks inside the ring.
|
|
41
|
+
- Choose `variant` to switch between bar and needle display.
|
|
42
|
+
|
|
43
|
+
## Best Practices
|
|
44
|
+
|
|
45
|
+
- Prefer `SetpointMixin` properties (`setpoint`, `touching`, etc.) over
|
|
46
|
+
any legacy aliases — the mixin is the single source of truth.
|
|
47
|
+
- The top 40% is always clipped; overlay SVGs use the matching clipped
|
|
48
|
+
viewBox (`-224 -44.8 448 268.8`) for layer alignment.
|
|
49
|
+
|
|
50
|
+
## Example
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<obc-rudder
|
|
54
|
+
angle="12"
|
|
55
|
+
maxAngle="45"
|
|
56
|
+
variant="needle"
|
|
57
|
+
state="in-command"
|
|
58
|
+
showLabels
|
|
59
|
+
setpoint="15"
|
|
60
|
+
></obc-rudder>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Properties
|
|
64
|
+
|
|
65
|
+
| Property | Attribute | Type | Default | Description |
|
|
66
|
+
| --- | --- | --- | --- | --- |
|
|
67
|
+
| angle | angle | `number` | `0` | |
|
|
68
|
+
| variant | variant | `ObcRudderVariant` | | |
|
|
69
|
+
| maxAngle | maxAngle | `number` | `90` | |
|
|
70
|
+
| showLabels | showLabels | `boolean` | `false` | |
|
|
71
|
+
| tickmarksInside | tickmarksInside | `boolean` | `false` | Whether to render tickmarks inside the ring. |
|
|
72
|
+
| state | state | `InstrumentState` | | |
|
|
73
|
+
| priority | priority | `Priority` | | |
|
|
74
|
+
| tickmarkStyle | tickmarkStyle | `TickmarkStyle` | | |
|
|
75
|
+
| zoomToFitArc | zoomToFitArc | `boolean` | `false` | |
|
|
76
|
+
| faceDiameter | face-diameter | `number \| undefined` | | Outer-ring diameter in CSS pixels. When set, the instrument renders at a fixed intrinsic size derived from the ring, arc shape and label reserve — so instruments sharing the same value have identical ring circumference regardless of label width or arc extent (like obc-donut-chart's fixedHeight). When unset (default), the instrument fills its container. |
|
|
77
|
+
| barColor | | | | |
|
|
78
|
+
| advices | advices | `AdviceInput[]` | `[]` | Advice ranges and points in the instrument's unit; see `svghelpers/advice.ts`. |
|
|
79
|
+
| adviceTrigger | adviceTrigger | `AdviceTrigger` | | Which readings trigger an advice: the value, the setpoint, or either. Available when `adviceTrigger advices!=[]`. |
|
|
80
|
+
| adviceEmphasis | adviceEmphasis | `boolean` | `false` | The design's go-to / no-go emphasis rules. Available when `adviceEmphasis advices!=[]`. |
|
|
81
|
+
| setpoint | setpoint | `number \| undefined` | | Target setpoint value. `undefined` = no setpoint marker shown. |
|
|
82
|
+
| newSetpoint | newSetpoint | `number \| undefined` | | Adjustment preview for 2-step interface. When defined, two markers are shown: original (dimmed) + new (focus). Available when `setpoint!=undefined`. |
|
|
83
|
+
| atSetpoint | | `boolean` | `false` | Manual at-setpoint override (used when `autoAtSetpoint` is false). Available when `setpoint!=undefined && autoAtSetpoint==false`. |
|
|
84
|
+
| touching | touching | `boolean` | `false` | User is physically interacting with the control. Suppresses at-setpoint calculation and triggers focus visual. Available when `setpoint!=undefined`. |
|
|
85
|
+
| autoAtSetpoint | | `boolean` | `true` | When false, uses manual `atSetpoint` boolean instead of auto-calculation. Available when `setpoint!=undefined`. |
|
|
86
|
+
| autoAtSetpointDeadband | autoAtSetpointDeadband | `number` | `defaultDeadband` | Tolerance for auto at-setpoint detection. Available when `setpoint!=undefined && autoAtSetpoint==true`. |
|
|
87
|
+
| setpointAtZeroDeadband | setpointAtZeroDeadband | `number` | `defaultZeroDeadband` | Tolerance for zero-snap visual state. Available when `setpoint!=undefined`. |
|
|
88
|
+
| setpointOverride | setpointOverride | `boolean` | `false` | Override to derive the setpoint color from the instrument's `priority` regardless of instrument state. Available when `setpoint!=undefined`. |
|
|
89
|
+
| animateSetpoint | animateSetpoint | `boolean` | `false` | Enable CSS-animated confirm transition. Available when `setpoint!=undefined`. |
|
|
90
|
+
| departingNewSetpoint | | `number \| undefined` | | Public getter for renderers/wrappers to access the departing value. |
|
|
91
|
+
|
|
92
|
+
## Events
|
|
93
|
+
|
|
94
|
+
None.
|
|
95
|
+
|
|
96
|
+
## Slots
|
|
97
|
+
|
|
98
|
+
None.
|
|
99
|
+
|
|
100
|
+
## Stories
|
|
101
|
+
|
|
102
|
+
- [Primary](https://openbridge-next-storybook.web.app/?path=/story/instruments-rudder--primary)
|
|
103
|
+
- [Needle](https://openbridge-next-storybook.web.app/?path=/story/instruments-rudder--needle)
|
|
104
|
+
- [Zoomed In](https://openbridge-next-storybook.web.app/?path=/story/instruments-rudder--zoomed-in)
|
|
105
|
+
- [Zoomed In Needle](https://openbridge-next-storybook.web.app/?path=/story/instruments-rudder--zoomed-in-needle)
|
|
106
|
+
- [Zoomed In Narrow](https://openbridge-next-storybook.web.app/?path=/story/instruments-rudder--zoomed-in-narrow)
|
|
107
|
+
- [Sizing Playground — FaceDiameter + Resizable (Manual)](https://openbridge-next-storybook.web.app/?path=/story/instruments-rudder--sizing-playground): Interactive sizing playground: drag the dashed box's bottom-right corner to resize it. The first rudder is pinned to a fixed intrinsic size by the `faceDiameter` control (its box is wider than tall, matching the 40% top clip), the second adapts to the remaining flex space, and the third is a zoomed narrow arc (`zoomToFitArc`) showing that the reserve composes with zoom (issue #1021). Enable `lockFaceDiameter` to pin all three to the same circumference. Related: *Sizing Playground* stories under Building Blocks/Watch, Building Blocks/Instrument Radial and Instruments/Gauge Radial.
|
|
108
|
+
|
|
109
|
+
## See also
|
|
110
|
+
|
|
111
|
+
- [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
|
|
112
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# `<obc-ruler-pointer>`
|
|
2
|
+
|
|
3
|
+
Endpoint marker component for ruler handles and measurement anchors.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ar-building-blocks-ruler-pointer--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/ar/building-blocks/ruler-pointer/ruler-pointer.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-ruler-pointer>` - Endpoint marker component for ruler handles and measurement anchors.
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Use this component when you need a compact pointer dot for a ruler endpoint.
|
|
11
|
+
Keywords/synonyms: ruler marker, endpoint dot, anchor marker, measurement pointer.
|
|
12
|
+
|
|
13
|
+
## Features/Variants
|
|
14
|
+
- `type="default"`: 4px active dot.
|
|
15
|
+
- `type="regular"`: 10px outer active circle with a 6px inner dot.
|
|
16
|
+
- `type="selected"`: 10px outer active circle for selected emphasis.
|
|
17
|
+
|
|
18
|
+
## Usage Guidelines
|
|
19
|
+
- Use `default` for subtle, always-visible ruler anchors.
|
|
20
|
+
- Use `regular` for the baseline interactive endpoint style.
|
|
21
|
+
- Use `selected` when the ruler endpoint is actively focused or selected.
|
|
22
|
+
- Pair with ruler line and measurement label components for complete ruler visuals.
|
|
23
|
+
|
|
24
|
+
## Slots/Content
|
|
25
|
+
This component has no slots.
|
|
26
|
+
|
|
27
|
+
## Events
|
|
28
|
+
This component does not emit custom events.
|
|
29
|
+
|
|
30
|
+
## Best Practices
|
|
31
|
+
- Prefer `regular` as the default interactive state for consistency.
|
|
32
|
+
- Reserve `selected` for active focus only to keep state changes legible.
|
|
33
|
+
- Keep pointer state controlled by parent interaction logic.
|
|
34
|
+
|
|
35
|
+
## Example
|
|
36
|
+
```html
|
|
37
|
+
<obc-ruler-pointer type="regular"></obc-ruler-pointer>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Properties
|
|
41
|
+
|
|
42
|
+
| Property | Attribute | Type | Default | Description |
|
|
43
|
+
| --- | --- | --- | --- | --- |
|
|
44
|
+
| type | type | `ObcRulerPointerType` | | |
|
|
45
|
+
|
|
46
|
+
## Events
|
|
47
|
+
|
|
48
|
+
None.
|
|
49
|
+
|
|
50
|
+
## Slots
|
|
51
|
+
|
|
52
|
+
None.
|
|
53
|
+
|
|
54
|
+
## Stories
|
|
55
|
+
|
|
56
|
+
- [Primary](https://openbridge-next-storybook.web.app/?path=/story/ar-building-blocks-ruler-pointer--primary)
|
|
57
|
+
- [Variant Matrix](https://openbridge-next-storybook.web.app/?path=/story/ar-building-blocks-ruler-pointer--variant-matrix)
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# `<obc-scrollbar>`
|
|
2
|
+
|
|
3
|
+
A customizable scrollable container with styled scrollbars.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-menus-and-navigation-scrollbar--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/scrollbar/scrollbar.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-scrollbar>` – A customizable scrollable container with styled scrollbars.
|
|
8
|
+
|
|
9
|
+
Provides a scrollable area with visually enhanced, themeable scrollbars that support different thickness options. Designed to replace the browser’s default scrollbar with a consistent, accessible appearance and improved touch target sizing.
|
|
10
|
+
|
|
11
|
+
Appears as a wrapper around content that may overflow vertically or horizontally, ensuring a uniform scrollbar experience across platforms.
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
- **Scrollbar thickness variants:** Supports `wide`, `normal`, and `thin` types to adapt to different UI density or accessibility needs.
|
|
15
|
+
- **Touch target optimization:** Ensures scrollbar handles are large enough for comfortable interaction, especially on touch devices where gloves are worn or for low sensitivity touch screens
|
|
16
|
+
- **Slot content:** Wraps any child content, making it flexible for lists, tables, or custom layouts.
|
|
17
|
+
- **Responsive:** Adapts to the container’s height and width, supporting both vertical and horizontal scrolling.
|
|
18
|
+
|
|
19
|
+
## Usage Guidelines
|
|
20
|
+
|
|
21
|
+
Choose the `type` (obc-wide-scrollbar, obc-normal-scrollbar, obc-thin-scrollbar) based on the context — it is a CSS class, not a property of the component.
|
|
22
|
+
- **obc-wide-scrollbar:** Recommended for touch interfaces where gloves are worn or for low sensitivity touch screens.
|
|
23
|
+
- **obc-normal-scrollbar:** Suitable for touch interfaces where a scrollbar is used to navigate.
|
|
24
|
+
- **obc-thin-scrollbar:** Suitable for desktop use or for touch interfaces where swipe gestures are used to navigate.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
```html
|
|
29
|
+
<obc-scrollbar style="height: 500px" class="obc-wide-scrollbar">
|
|
30
|
+
<div style="height: 1000px; width: 100%; background: linear-gradient(blue, red);"></div>
|
|
31
|
+
</obc-scrollbar>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Best Practices
|
|
35
|
+
- Use only one scrollbar per scrollable region to avoid nested scrollbars, which can confuse users.
|
|
36
|
+
|
|
37
|
+
## Properties
|
|
38
|
+
|
|
39
|
+
| Property | Attribute | Type | Default | Description |
|
|
40
|
+
| --- | --- | --- | --- | --- |
|
|
41
|
+
| transparentTrack | transparent-track | `boolean` | `false` | |
|
|
42
|
+
|
|
43
|
+
## Events
|
|
44
|
+
|
|
45
|
+
None.
|
|
46
|
+
|
|
47
|
+
## Slots
|
|
48
|
+
|
|
49
|
+
| Slot | Description |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| (default) | Default slot for scrollable content (renders all children inside the scrollable area) |
|
|
52
|
+
|
|
53
|
+
## Stories
|
|
54
|
+
|
|
55
|
+
- [Wide](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-scrollbar--wide)
|
|
56
|
+
- [Normal](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-scrollbar--normal)
|
|
57
|
+
- [Thin](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-scrollbar--thin)
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# `<obc-sequence-card>`
|
|
2
|
+
|
|
3
|
+
Timeline-style card with header, content, and progress indicator.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-sections-sequence-card--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/sequence-card/sequence-card.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-sequence-card>` - Timeline-style card with header, content, and progress indicator.
|
|
8
|
+
|
|
9
|
+
Overview:
|
|
10
|
+
- Combines a step indicator, header metadata, and optional content/actions.
|
|
11
|
+
- Supports vertical and horizontal layouts with centered or left-side progress.
|
|
12
|
+
- Use for timelines, process steps, and time-stamped events.
|
|
13
|
+
|
|
14
|
+
Features and Variants:
|
|
15
|
+
- Sizes: `regular`, `small`.
|
|
16
|
+
- Progress layouts: `centered`, `left-side`.
|
|
17
|
+
- Optional progress connector (`showConnector=false` to hide).
|
|
18
|
+
- States: `active`, `flat`, `enhanced`.
|
|
19
|
+
- Layouts: vertical, horizontal, or both.
|
|
20
|
+
- Optional leading icon, timestamps, content, and actions.
|
|
21
|
+
- Full width/height layout toggles.
|
|
22
|
+
- Horizontal and vertical (default) layouts are supported.
|
|
23
|
+
|
|
24
|
+
Usage Guidelines:
|
|
25
|
+
- Keep titles short; use `subtitle` for secondary text.
|
|
26
|
+
- Provide custom content via the default slot when `hasContent` is true.
|
|
27
|
+
- Provide actions via the `actions` slot when `hasActions` is true.
|
|
28
|
+
- Disable connectors for modal-style layouts that should not show continuation.
|
|
29
|
+
|
|
30
|
+
Slots:
|
|
31
|
+
- `leading-icon`: Icon before the title (shown when `hasLeadingIcon` is true).
|
|
32
|
+
- `title`: Title text (fallbacks to `cardTitle`).
|
|
33
|
+
- `subtitle`: Subtitle/description (fallbacks to `subtitle`).
|
|
34
|
+
- `time-stamp`: Header timestamp (fallbacks to `timeLabel` + `time`).
|
|
35
|
+
- `header-actions`: Optional header actions (e.g., close button).
|
|
36
|
+
- `left-time-stamp`: Left rail timestamp (fallbacks to `leftTime`).
|
|
37
|
+
- `actions`: Actions row content (shown when `hasActions` is true).
|
|
38
|
+
- Default slot: Main content area (shown when `hasContent` is true).
|
|
39
|
+
|
|
40
|
+
Notes:
|
|
41
|
+
- `fullWidth` and `fullHeight` stretch the card to fill its container.
|
|
42
|
+
- `indicatorTypeOverride`/`indicatorStyleOverride` force the step indicator
|
|
43
|
+
size/style when special layouts are needed.
|
|
44
|
+
|
|
45
|
+
Events:
|
|
46
|
+
- None. Consumers define actions in slots and handle events on slotted elements.
|
|
47
|
+
|
|
48
|
+
Best Practices:
|
|
49
|
+
- Pair `left-side` progress with vertical layout for rail-based timelines.
|
|
50
|
+
- Avoid mixing long text with dense action rows; use content slot instead.
|
|
51
|
+
|
|
52
|
+
Example:
|
|
53
|
+
```html
|
|
54
|
+
<obc-sequence-card
|
|
55
|
+
size="regular"
|
|
56
|
+
progressType="left-side"
|
|
57
|
+
state="active"
|
|
58
|
+
hasActions
|
|
59
|
+
>
|
|
60
|
+
<span slot="title">Title</span>
|
|
61
|
+
<span slot="subtitle">Subtitle</span>
|
|
62
|
+
<div slot="actions">...</div>
|
|
63
|
+
<!-- default slot: your content -->
|
|
64
|
+
</obc-sequence-card>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Keywords: timeline, step, progress, sequence, card, event, status.
|
|
68
|
+
|
|
69
|
+
## Properties
|
|
70
|
+
|
|
71
|
+
| Property | Attribute | Type | Default | Description |
|
|
72
|
+
| --- | --- | --- | --- | --- |
|
|
73
|
+
| size | size | `ObcSequenceCardSize` | | |
|
|
74
|
+
| titleType | titleType | `ObcSequenceCardTitleType` | | |
|
|
75
|
+
| progressType | progressType | `ObcSequenceCardProgressType` | | |
|
|
76
|
+
| state | state | `ObcSequenceCardState` | | |
|
|
77
|
+
| fullWidth | fullWidth | `boolean` | `false` | |
|
|
78
|
+
| fullHeight | fullHeight | `boolean` | `false` | |
|
|
79
|
+
| horizontal | horizontal | `boolean` | `false` | |
|
|
80
|
+
| showConnector | showConnector | `boolean` | `true` | |
|
|
81
|
+
| hasLeadingIcon | hasLeadingIcon | `boolean` | `false` | |
|
|
82
|
+
| cardTitle | cardTitle | `string` | `'Title'` | |
|
|
83
|
+
| subtitle | subtitle | `string` | `'Subtitle'` | Available when `titleType!=Single`. |
|
|
84
|
+
| hasTimeStamp | hasTimeStamp | `boolean` | `false` | |
|
|
85
|
+
| timeLabel | timeLabel | `string` | `'TWOL'` | Available when `hasTimeStamp==true`. |
|
|
86
|
+
| time | time | `string` | `'00:00:00'` | Available when `hasTimeStamp==true`. |
|
|
87
|
+
| hasContent | hasContent | `boolean` | `false` | |
|
|
88
|
+
| hasActions | hasActions | `boolean` | `false` | |
|
|
89
|
+
| progressLabel | progressLabel | `string` | `'1'` | Available when `progressType==Centered && (titleType!=Single \|\| indicatorTypeOverride!=undefined)`. |
|
|
90
|
+
| progressValue | progressValue | `SequenceValue` | | Available when `(showConnector==true && progressType==Centered && horizontal==false) \|\| (showConnector==true && horizontal==true && progressType!=LeftSide)`. |
|
|
91
|
+
| leftTime | leftTime | `string` | `'00:00'` | Available when `progressType==LeftSide && horizontal==false && hasTimeStamp==true`. |
|
|
92
|
+
| indicatorTypeOverride | indicatorTypeOverride | `SequenceType \| undefined` | | Available when `progressType==Centered`. |
|
|
93
|
+
| indicatorStyleOverride | indicatorStyleOverride | `SequenceStyle \| undefined` | | Available when `progressType==Centered`. |
|
|
94
|
+
|
|
95
|
+
## Events
|
|
96
|
+
|
|
97
|
+
None.
|
|
98
|
+
|
|
99
|
+
## Slots
|
|
100
|
+
|
|
101
|
+
| Slot | Description |
|
|
102
|
+
| --- | --- |
|
|
103
|
+
| leading-icon | Icon before the title (shown when `hasLeadingIcon` is true). |
|
|
104
|
+
| title | Title text (falls back to `cardTitle`). |
|
|
105
|
+
| subtitle | Subtitle/description (falls back to `subtitle`). |
|
|
106
|
+
| time-stamp | Header timestamp (falls back to `timeLabel` + `time`). |
|
|
107
|
+
| header-actions | Optional header actions (e.g., close button). |
|
|
108
|
+
| left-time-stamp | Left rail timestamp (falls back to `leftTime`). |
|
|
109
|
+
| actions | Actions row content (shown when `hasActions` is true). |
|
|
110
|
+
| (default) | Main content area (shown when `hasContent` is true). |
|
|
111
|
+
|
|
112
|
+
## Stories
|
|
113
|
+
|
|
114
|
+
- [Playground](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-sequence-card--playground)
|
|
115
|
+
- [With Actions](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-sequence-card--with-actions)
|
|
116
|
+
- [Regular Centered](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-sequence-card--regular-centered)
|
|
117
|
+
- [Regular Left Side](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-sequence-card--regular-left-side)
|
|
118
|
+
- [Small Centered](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-sequence-card--small-centered)
|
|
119
|
+
- [Small Left Side](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-sequence-card--small-left-side)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# `<obc-sequence-connector>`
|
|
2
|
+
|
|
3
|
+
renders the connecting line.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-sequence-connector--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/sequence-connector/sequence-connector.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-sequence-connector>` — renders the connecting line.
|
|
8
|
+
|
|
9
|
+
Overview:
|
|
10
|
+
A lightweight connector used to visually link items in horizontal or
|
|
11
|
+
vertical layouts.
|
|
12
|
+
|
|
13
|
+
Features / Variants:
|
|
14
|
+
- `type`: `small | medium | large` (matches the adjacent step size).
|
|
15
|
+
- `state`: `not-started | loading | completed | steps-between`.
|
|
16
|
+
- `direction`: `horizontal | vertical`.
|
|
17
|
+
- `loading-bar-percent`: number `0–100` (used when `state="loading"`).
|
|
18
|
+
|
|
19
|
+
Usage Guidelines:
|
|
20
|
+
- Use the same `type` as the adjacent step for consistent thickness.
|
|
21
|
+
- Use `state="steps-between"` for dotted/segmented connectors.
|
|
22
|
+
|
|
23
|
+
Slots / Content:
|
|
24
|
+
- None.
|
|
25
|
+
|
|
26
|
+
Events:
|
|
27
|
+
- None.
|
|
28
|
+
|
|
29
|
+
Best Practices:
|
|
30
|
+
- Keep `loading-bar-percent` within `0–100` for predictable rendering.
|
|
31
|
+
- Prefer explicit `direction` rather than relying on defaults in complex layouts.
|
|
32
|
+
|
|
33
|
+
Example:
|
|
34
|
+
```html
|
|
35
|
+
<obc-sequence-connector
|
|
36
|
+
type="medium"
|
|
37
|
+
state="loading"
|
|
38
|
+
direction="horizontal"
|
|
39
|
+
loading-bar-percent="66"
|
|
40
|
+
></obc-sequence-connector>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Keywords: sequence, connector, progress, timeline, stepper, loading, horizontal, vertical.
|
|
44
|
+
|
|
45
|
+
## Properties
|
|
46
|
+
|
|
47
|
+
| Property | Attribute | Type | Default | Description |
|
|
48
|
+
| --- | --- | --- | --- | --- |
|
|
49
|
+
| type | type | `SequenceConnectorType` | | |
|
|
50
|
+
| state | state | `SequenceConnectorState` | | |
|
|
51
|
+
| direction | direction | `SequenceConnectorDirection` | | |
|
|
52
|
+
| loadingBarPercent | loading-bar-percent | `number` | `66` | |
|
|
53
|
+
|
|
54
|
+
## Events
|
|
55
|
+
|
|
56
|
+
None.
|
|
57
|
+
|
|
58
|
+
## Slots
|
|
59
|
+
|
|
60
|
+
None.
|
|
61
|
+
|
|
62
|
+
## Stories
|
|
63
|
+
|
|
64
|
+
- [Playground](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-connector--playground)
|
|
65
|
+
- [State • Not Started](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-connector--not-started)
|
|
66
|
+
- [State • Loading](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-connector--loading)
|
|
67
|
+
- [State • Completed](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-connector--completed)
|
|
68
|
+
- [State • Steps Between](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-connector--steps-between)
|
|
69
|
+
- [Type/State • Horizontal](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-connector--type-states-horizontal)
|
|
70
|
+
- [Type/State • Vertical](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-connector--type-states-vertical)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# `<obc-sequence-item>`
|
|
2
|
+
|
|
3
|
+
renders the textual part of a sequence flow while composing `<obc-sequence-step>` for the visual indicator.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-sequence-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/sequence-item/sequence-item.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-sequence-item>` renders the textual part of a sequence flow while
|
|
8
|
+
composing `<obc-sequence-step>` for the visual indicator. Consumers can either
|
|
9
|
+
configure the built-in step via `step*` props or supply a custom step through
|
|
10
|
+
the `step` slot.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
| Property | Attribute | Type | Default | Description |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| orientation | orientation | `SequenceItemOrientation` | | |
|
|
17
|
+
| labelType | labelType | `SequenceItemLabelType` | | |
|
|
18
|
+
| state | state | `SequenceItemState` | | |
|
|
19
|
+
| title | title | `string` | `''` | |
|
|
20
|
+
| hasSubtitle | hasSubtitle | `boolean` | `false` | |
|
|
21
|
+
| subtitle | subtitle | `string` | `''` | Available when `hasSubtitle==true`. |
|
|
22
|
+
| hasDescription | hasDescription | `boolean` | `false` | |
|
|
23
|
+
| description | description | `string` | `''` | Available when `hasDescription==true`. |
|
|
24
|
+
| hasStamp | hasStamp | `boolean` | `false` | Enables the meta stamp container. Without this, timestamp/distance values are ignored even if their booleans are true. |
|
|
25
|
+
| hasTimeStamp | hasTimeStamp | `boolean` | `false` | Shows a timestamp inside the stamp container when `hasStamp` is true. Available when `hasStamp==true`. |
|
|
26
|
+
| timeStamp | timeStamp | `string` | `''` | Available when `hasStamp==true && hasTimeStamp==true`. |
|
|
27
|
+
| hasDistanceStamp | hasDistanceStamp | `boolean` | `false` | Shows a distance stamp alongside the timestamp. Requires `hasStamp` to be true. Available when `hasStamp==true`. |
|
|
28
|
+
| distanceStamp | distanceStamp | `string` | `''` | Available when `hasStamp==true && hasDistanceStamp==true`. |
|
|
29
|
+
| stepLabel | stepLabel | `string` | `''` | Optional text used inside the auto-generated step. Defaults to `title` when not provided. |
|
|
30
|
+
| stepType | stepType | `SequenceType` | | |
|
|
31
|
+
| stepStyle | stepStyle | `SequenceStyle` | | |
|
|
32
|
+
| stepValue | stepValue | `SequenceValue \| undefined` | | |
|
|
33
|
+
| showStepInputConnector | | `boolean` | `true` | |
|
|
34
|
+
| showStepOutputConnector | | `boolean` | `true` | |
|
|
35
|
+
| stepHasIcon | stepHasIcon | `boolean` | `false` | |
|
|
36
|
+
|
|
37
|
+
## Events
|
|
38
|
+
|
|
39
|
+
None.
|
|
40
|
+
|
|
41
|
+
## Slots
|
|
42
|
+
|
|
43
|
+
| Slot | Description |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| title | Title/subtitle block (falls back to the built-in `title`/`subtitle`/inline description). |
|
|
46
|
+
| description | Description text (rendered when `hasDescription` is true and not inlined). |
|
|
47
|
+
| meta | Meta row with timestamp/distance stamps (rendered when `hasMeta` is true — i.e. `hasStamp` with a timestamp or distance stamp enabled). |
|
|
48
|
+
| step | Custom step indicator (falls back to the built-in `<obc-sequence-step>`). |
|
|
49
|
+
|
|
50
|
+
## Stories
|
|
51
|
+
|
|
52
|
+
- [📌 Playground](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-item--playground)
|
|
53
|
+
- [Enabled](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-item--enabled)
|
|
54
|
+
- [Active](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-item--active)
|
|
55
|
+
- [Horizontal Orientation](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-item--horizontal-orientation)
|
|
56
|
+
- [Vertical Orientation](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-item--vertical-orientation)
|
|
57
|
+
- [Label: Multi-Line](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-item--multi-line-label)
|
|
58
|
+
- [Label: Small](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-item--small-label)
|
|
59
|
+
- [Label: Regular](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-item--regular-label)
|
|
60
|
+
- [With Description and Stamps](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-item--with-details)
|
|
61
|
+
|
|
62
|
+
## See also
|
|
63
|
+
|
|
64
|
+
- [Automation/Sequence Step/Diagram Playground](https://openbridge-next-storybook.web.app/docs/automation-sequence-step-diagram-playground.md)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# `<obc-sequence-loading-spinner>`
|
|
2
|
+
|
|
3
|
+
circular loading indicator for sequence UI.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/building-blocks-sequence-loading-spinner--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/sequence-loading-spinner/sequence-loading-spinner.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-sequence-loading-spinner>` — circular loading indicator for sequence UI.
|
|
8
|
+
|
|
9
|
+
Overview:
|
|
10
|
+
A compact spinner used alongside sequence steps, tags, or buttons.
|
|
11
|
+
|
|
12
|
+
Features / Variants:
|
|
13
|
+
- `type`: `indicator | indicator-point | tag | tag-point | button | button-point`.
|
|
14
|
+
- `progression`: `determinate | scanning`.
|
|
15
|
+
- `progress-percent`: number `0–100` (used when `progression="determinate"`).
|
|
16
|
+
- Determinate progression uses a built-in fill animation from the current arc toward full completion.
|
|
17
|
+
- `rotation-duration-ms`: number in ms (controls spin speed).
|
|
18
|
+
|
|
19
|
+
Usage Guidelines:
|
|
20
|
+
- Use `type` to match the surrounding element size.
|
|
21
|
+
- With `progression="determinate"`, the arc starts at 12 o'clock on the ring and grows clockwise.
|
|
22
|
+
- `progress-percent` is used as the starting offset for the determinate fill. After a short delay, the arc animates smoothly from that start value toward full completion.
|
|
23
|
+
- Changing `progress-percent` during determinate progression restarts the fill from the new start value.
|
|
24
|
+
|
|
25
|
+
Slots / Content:
|
|
26
|
+
- None.
|
|
27
|
+
|
|
28
|
+
Events:
|
|
29
|
+
- None.
|
|
30
|
+
|
|
31
|
+
Best Practices:
|
|
32
|
+
- Keep `progress-percent` within `0–100` for predictable rendering.
|
|
33
|
+
- Prefer `scanning` for indefinite loading states.
|
|
34
|
+
|
|
35
|
+
Example:
|
|
36
|
+
```html
|
|
37
|
+
<obc-sequence-loading-spinner
|
|
38
|
+
type="button"
|
|
39
|
+
progression="determinate"
|
|
40
|
+
progress-percent="25"
|
|
41
|
+
></obc-sequence-loading-spinner>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Properties
|
|
45
|
+
|
|
46
|
+
| Property | Attribute | Type | Default | Description |
|
|
47
|
+
| --- | --- | --- | --- | --- |
|
|
48
|
+
| type | type | `SequenceLoadingSpinnerType` | | |
|
|
49
|
+
| progression | progression | `SequenceLoadingSpinnerProgressionType` | | |
|
|
50
|
+
| rotationDurationMs | rotation-duration-ms | `number` | `1000` | |
|
|
51
|
+
| progressPercent | progress-percent | `number` | `0` | |
|
|
52
|
+
|
|
53
|
+
## Events
|
|
54
|
+
|
|
55
|
+
None.
|
|
56
|
+
|
|
57
|
+
## Slots
|
|
58
|
+
|
|
59
|
+
None.
|
|
60
|
+
|
|
61
|
+
## Stories
|
|
62
|
+
|
|
63
|
+
- [Playground](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-sequence-loading-spinner--playground)
|
|
64
|
+
- [Determinate](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-sequence-loading-spinner--determinate)
|
|
65
|
+
- [Scanning](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-sequence-loading-spinner--scanning)
|
|
66
|
+
- [Types](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-sequence-loading-spinner--types)
|
|
67
|
+
|
|
68
|
+
## See also
|
|
69
|
+
|
|
70
|
+
- [Automation/Sequence Step/Diagram Playground](https://openbridge-next-storybook.web.app/docs/automation-sequence-step-diagram-playground.md)
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# `<obc-sequence-modal>`
|
|
2
|
+
|
|
3
|
+
Modal card with step indicator, title, content, and actions.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-sections-sequence-modal--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/sequence-modal/sequence-modal.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-sequence-modal>` - Modal card with step indicator, title, content, and actions.
|
|
8
|
+
|
|
9
|
+
Overview:
|
|
10
|
+
- Presents a sequence step in a modal-style card with header metadata.
|
|
11
|
+
- Supports regular and two-line title layouts.
|
|
12
|
+
- Use for focused step/task dialogs with optional actions.
|
|
13
|
+
|
|
14
|
+
Features and Variants:
|
|
15
|
+
- Types: `regular`, `two-line`.
|
|
16
|
+
- Optional timestamp and actions area.
|
|
17
|
+
|
|
18
|
+
Usage Guidelines:
|
|
19
|
+
- Use the `actions` slot for custom buttons.
|
|
20
|
+
- Provide content via the default slot (no built-in placeholders).
|
|
21
|
+
|
|
22
|
+
Slots:
|
|
23
|
+
- `actions`: Actions row content (shown when `hasActions` is true).
|
|
24
|
+
- Default slot: Main content area.
|
|
25
|
+
|
|
26
|
+
Events:
|
|
27
|
+
- `close-click`: Fired when the close icon is clicked or `Escape` is pressed.
|
|
28
|
+
|
|
29
|
+
Keyboard:
|
|
30
|
+
- APG modal dialog (https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/):
|
|
31
|
+
the card has no open state, so rendering it opens it and removing it
|
|
32
|
+
closes it. Focus lands on the dialog on connect, `Tab` and `Shift+Tab`
|
|
33
|
+
cycle inside it, `Escape` fires `close-click`, and focus returns to the
|
|
34
|
+
opener on disconnect. The dialog is named by `modalTitle`, and unnamed
|
|
35
|
+
while that is empty.
|
|
36
|
+
|
|
37
|
+
Left out: a description (`aria-describedby`).
|
|
38
|
+
|
|
39
|
+
Best Practices:
|
|
40
|
+
- Keep titles short; use `subtitle` for additional context.
|
|
41
|
+
- Prefer a single row of actions for compact layouts.
|
|
42
|
+
|
|
43
|
+
Example:
|
|
44
|
+
```html
|
|
45
|
+
<obc-sequence-modal type="regular" hasActions>
|
|
46
|
+
<div slot="actions">...</div>
|
|
47
|
+
<!-- default slot: your content -->
|
|
48
|
+
</obc-sequence-modal>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Keywords: modal, sequence, step, dialog, progress, actions.
|
|
52
|
+
|
|
53
|
+
## Properties
|
|
54
|
+
|
|
55
|
+
| Property | Attribute | Type | Default | Description |
|
|
56
|
+
| --- | --- | --- | --- | --- |
|
|
57
|
+
| type | type | `ObcSequenceModalType` | | |
|
|
58
|
+
| stepLabel | stepLabel | `string` | `''` | |
|
|
59
|
+
| stepValue | stepValue | `SequenceValue` | | |
|
|
60
|
+
| modalTitle | modalTitle | `string` | `''` | |
|
|
61
|
+
| subtitle | subtitle | `string` | `''` | |
|
|
62
|
+
| hasTimeStamp | hasTimeStamp | `boolean` | `false` | |
|
|
63
|
+
| timeValue | timeValue | `string` | `''` | |
|
|
64
|
+
| timeLabel | timeLabel | `string` | `''` | |
|
|
65
|
+
| hasActions | hasActions | `boolean` | `false` | |
|
|
66
|
+
| closeLabel | closeLabel | `string` | `'Close'` | |
|
|
67
|
+
|
|
68
|
+
## Events
|
|
69
|
+
|
|
70
|
+
| Event | Type | Description |
|
|
71
|
+
| --- | --- | --- |
|
|
72
|
+
| close-click | `CustomEvent<void>` | Fired when the close icon is clicked or `Escape` is pressed. |
|
|
73
|
+
|
|
74
|
+
## Slots
|
|
75
|
+
|
|
76
|
+
| Slot | Description |
|
|
77
|
+
| --- | --- |
|
|
78
|
+
| actions | Actions row content (shown when `hasActions` is true). |
|
|
79
|
+
| (default) | Main content area. |
|
|
80
|
+
|
|
81
|
+
## Stories
|
|
82
|
+
|
|
83
|
+
- [Playground](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-sequence-modal--playground)
|
|
84
|
+
- [Regular](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-sequence-modal--regular)
|
|
85
|
+
- [Two Line](https://openbridge-next-storybook.web.app/?path=/story/ui-components-sections-sequence-modal--two-line)
|
|
86
|
+
|
|
87
|
+
## See also
|
|
88
|
+
|
|
89
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|