@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,39 @@
|
|
|
1
|
+
# `<obc-speed-arrows>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-speed-arrows--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/speed-arrows/speed-arrows.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| speedKnots | speedKnots | `number` | `0` | Available when `readout==true`. |
|
|
12
|
+
| readout | readout | `boolean` | `false` | |
|
|
13
|
+
| maxDigits | maxDigits | `number` | `2` | Available when `readout==true`. |
|
|
14
|
+
| fractionDigits | fractionDigits | `number` | `0` | Available when `readout==true`. |
|
|
15
|
+
| nActiveArrows | nActiveArrows | `number` | `0` | |
|
|
16
|
+
| direction | direction | | | |
|
|
17
|
+
| activeColor | activeColor | | | |
|
|
18
|
+
| tintedArrows | tintedArrows | `boolean` | `false` | |
|
|
19
|
+
|
|
20
|
+
## Events
|
|
21
|
+
|
|
22
|
+
None.
|
|
23
|
+
|
|
24
|
+
## Slots
|
|
25
|
+
|
|
26
|
+
None.
|
|
27
|
+
|
|
28
|
+
## Stories
|
|
29
|
+
|
|
30
|
+
- [Forward](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-arrows--forward)
|
|
31
|
+
- [Backward](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-arrows--backward)
|
|
32
|
+
- [Left](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-arrows--left)
|
|
33
|
+
- [Right](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-arrows--right)
|
|
34
|
+
- [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-arrows--enhanced)
|
|
35
|
+
- [Port](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-arrows--port)
|
|
36
|
+
- [Starboard](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-arrows--starboard)
|
|
37
|
+
- [Forward Direction](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-arrows--forward-direction)
|
|
38
|
+
- [Backward Direction](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-arrows--backward-direction)
|
|
39
|
+
- [No Tint](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-arrows--no-tint)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# `<obc-speed-directions>`
|
|
2
|
+
|
|
3
|
+
Speed Directions - all-in-one directional speed instrument showing a vessel top view with speed indicators along the vessel axes.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-speed-directions--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/speed-directions/speed-directions.ts)
|
|
6
|
+
|
|
7
|
+
Speed Directions - all-in-one directional speed instrument showing a vessel
|
|
8
|
+
top view with speed indicators along the vessel axes.
|
|
9
|
+
|
|
10
|
+
## Features / Variants
|
|
11
|
+
- Three indicator types: stepped chevron arrows on three axes
|
|
12
|
+
(`alongAthwartArrows`), proportional bars with chevron tips
|
|
13
|
+
(`alongAthwartBars`), and two-axis chevrons (`longLatArrows`).
|
|
14
|
+
- Three frame styles: `standalone`, `framed` (rounded square with center
|
|
15
|
+
cross lines), `compass` (watch face with main tickmarks and north arrow).
|
|
16
|
+
- Value-driven: signed speeds in knots; an indicator renders only when its
|
|
17
|
+
speed property is defined.
|
|
18
|
+
- Configurable vessel image in every frame style via `vesselImage`.
|
|
19
|
+
|
|
20
|
+
## Usage Guidelines
|
|
21
|
+
Use for docking/maneuvering speed overviews. For a single stepped-arrow
|
|
22
|
+
readout, use `obc-speed-arrows` instead.
|
|
23
|
+
|
|
24
|
+
## Properties
|
|
25
|
+
|
|
26
|
+
| Property | Attribute | Type | Default | Description |
|
|
27
|
+
| --- | --- | --- | --- | --- |
|
|
28
|
+
| type | type | `SpeedDirectionsType` | | |
|
|
29
|
+
| frameStyle | frameStyle | `SpeedDirectionsFrameStyle` | | |
|
|
30
|
+
| speedAlongKnots | speedAlongKnots | `number \| undefined` | `undefined` | Signed speed along the vessel axis: positive fore, negative aft. |
|
|
31
|
+
| speedAthwartBowKnots | speedAthwartBowKnots | `number \| undefined` | `undefined` | Signed athwart speed at the bow: positive starboard, negative port. Available when `type!=longLatArrows`. |
|
|
32
|
+
| speedAthwartSternKnots | speedAthwartSternKnots | `number \| undefined` | `undefined` | Signed athwart speed at the stern: positive starboard, negative port. Available when `type!=longLatArrows`. |
|
|
33
|
+
| speedAthwartKnots | speedAthwartKnots | `number \| undefined` | `undefined` | Signed athwart speed at midship: positive starboard, negative port. Available when `type==longLatArrows`. |
|
|
34
|
+
| alongSpeedStepKnots | alongSpeedStepKnots | `number` | `3` | Knots per chevron step on the along axis. |
|
|
35
|
+
| athwartSpeedStepKnots | athwartSpeedStepKnots | `number` | `1` | Knots per chevron step on the athwart axes. |
|
|
36
|
+
| alongMaxSpeedKnots | alongMaxSpeedKnots | `number` | `9` | Along speed mapped to the full bar length. Available when `type==alongAthwartBars`. |
|
|
37
|
+
| athwartMaxSpeedKnots | athwartMaxSpeedKnots | `number` | `3` | Athwart speed mapped to the full bar length. Available when `type==alongAthwartBars`. |
|
|
38
|
+
| tintedArrows | tintedArrows | `boolean` | `false` | Render inactive chevron bands as a tinted track. Available when `type!=alongAthwartBars`. |
|
|
39
|
+
| vesselImage | vesselImage | `VesselImage` | | Vessel image drawn at the center of the instrument. The standalone style draws it at twice the size for the chevron types, as in the design. |
|
|
40
|
+
| vesselImageSrc | | `VesselImageSrc \| undefined` | | Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). |
|
|
41
|
+
|
|
42
|
+
## Events
|
|
43
|
+
|
|
44
|
+
None.
|
|
45
|
+
|
|
46
|
+
## Slots
|
|
47
|
+
|
|
48
|
+
None.
|
|
49
|
+
|
|
50
|
+
## Stories
|
|
51
|
+
|
|
52
|
+
- [Along Athwart Arrows Standalone](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--along-athwart-arrows-standalone)
|
|
53
|
+
- [Standalone Custom Vessel](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--standalone-custom-vessel)
|
|
54
|
+
- [Long Lat Arrows Standalone](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--long-lat-arrows-standalone)
|
|
55
|
+
- [Along Athwart Bars Standalone](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--along-athwart-bars-standalone)
|
|
56
|
+
- [Along Athwart Arrows Framed](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--along-athwart-arrows-framed)
|
|
57
|
+
- [Long Lat Arrows Framed](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--long-lat-arrows-framed)
|
|
58
|
+
- [Along Athwart Bars Framed](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--along-athwart-bars-framed)
|
|
59
|
+
- [Along Athwart Arrows Compass](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--along-athwart-arrows-compass)
|
|
60
|
+
- [Long Lat Arrows Compass](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--long-lat-arrows-compass)
|
|
61
|
+
- [Along Athwart Bars Compass](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--along-athwart-bars-compass)
|
|
62
|
+
- [Zero Speed Tinted](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--zero-speed-tinted)
|
|
63
|
+
- [Negative Speeds](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--negative-speeds)
|
|
64
|
+
- [Partial Axes (Undefined Hidden)](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--partial-axes)
|
|
65
|
+
- [Bars Max Clamped](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--bars-max-clamped)
|
|
66
|
+
- [With Custom Vessel Image](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-directions--with-custom-vessel-image)
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# `<obc-speed-gauge>`
|
|
2
|
+
|
|
3
|
+
Radial speed gauge with needle and optional readout.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-speed-gauge--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/speed-gauge/speed-gauge.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-speed-gauge>` — Radial speed gauge with needle and optional readout.
|
|
8
|
+
|
|
9
|
+
`ObcSpeedGauge` renders a 225° arc gauge (−90° to +135°) that displays
|
|
10
|
+
the current speed with a configurable full-length or bar needle. It layers
|
|
11
|
+
an `<obc-watch>` base with a needle SVG overlay and an optional numeric
|
|
12
|
+
readout field. It inherits a full setpoint property bundle from
|
|
13
|
+
SetpointMixin, including auto at-setpoint detection, dual-marker
|
|
14
|
+
adjustment preview, and deadband tuning.
|
|
15
|
+
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
- **Two needle types**: `full` (pointer with center dot) and `bar`
|
|
19
|
+
(short indicator bar) via `needleType`.
|
|
20
|
+
- **Bipolar range support**: When `minSpeed < 0`, negative tickmarks are
|
|
21
|
+
rendered with `main` tick style.
|
|
22
|
+
- **Optional readout**: Enable `hasReadout` to display an
|
|
23
|
+
`<obc-readout>` with the current speed, unit (KN), and label (STW).
|
|
24
|
+
- **Setpoint via mixin**: `setpoint`, `newSetpoint`, `touching`,
|
|
25
|
+
`autoAtSetpointDeadband`, `setpointOverride`, and all other setpoint
|
|
26
|
+
properties are provided by `SetpointMixin`; the setpoint angle and
|
|
27
|
+
at-setpoint state are computed and forwarded to `<obc-watch>`.
|
|
28
|
+
- **Speed advice zones**: Pass an array of SpeedAdvice objects to
|
|
29
|
+
render caution/alert arcs; triggered state is derived from whether the
|
|
30
|
+
current speed falls inside the advice range.
|
|
31
|
+
|
|
32
|
+
## Usage Guidelines
|
|
33
|
+
|
|
34
|
+
- Set `maxSpeed` (and optionally `minSpeed`) to define the gauge range.
|
|
35
|
+
- Use `priority` to switch between regular and enhanced color palettes
|
|
36
|
+
(default: `Priority.regular`).
|
|
37
|
+
- Provide `tickmarkInterval` to control tickmark spacing.
|
|
38
|
+
- Enable `showLabels` to show numeric labels at primary tickmarks.
|
|
39
|
+
- Enable `tickmarksInside` to render tickmarks inside the ring.
|
|
40
|
+
- Enable `hasReadout` to display the numeric value below the gauge.
|
|
41
|
+
|
|
42
|
+
## Best Practices
|
|
43
|
+
|
|
44
|
+
- Prefer `SetpointMixin` properties (`setpoint`, `touching`, etc.) over
|
|
45
|
+
any legacy aliases — the mixin is the single source of truth.
|
|
46
|
+
- The needle overlay SVG uses viewBox `−224 −224 448 448` to align with
|
|
47
|
+
the `<obc-watch>` layer.
|
|
48
|
+
|
|
49
|
+
## Example
|
|
50
|
+
|
|
51
|
+
```html
|
|
52
|
+
<obc-speed-gauge
|
|
53
|
+
speed="12.5"
|
|
54
|
+
maxSpeed="25"
|
|
55
|
+
needleType="full"
|
|
56
|
+
enhanced
|
|
57
|
+
showLabels
|
|
58
|
+
hasReadout
|
|
59
|
+
tickmarkInterval="5"
|
|
60
|
+
setpoint="15"
|
|
61
|
+
></obc-speed-gauge>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Properties
|
|
65
|
+
|
|
66
|
+
| Property | Attribute | Type | Default | Description |
|
|
67
|
+
| --- | --- | --- | --- | --- |
|
|
68
|
+
| speed | speed | `number` | `0` | |
|
|
69
|
+
| maxSpeed | maxSpeed | `number` | `100` | |
|
|
70
|
+
| minSpeed | minSpeed | `number` | `0` | |
|
|
71
|
+
| showLabels | showLabels | `boolean` | `false` | |
|
|
72
|
+
| tickmarksInside | tickmarksInside | `boolean` | `false` | Whether to render tickmarks inside the ring. |
|
|
73
|
+
| tickmarkInterval | tickmarkInterval | `number \| undefined` | `20` | Interval for tickmarks in speed units. When undefined or <= 0, no tickmarks are shown (only the zero mark). |
|
|
74
|
+
| priority | priority | `Priority` | | |
|
|
75
|
+
| needleType | needleType | `ObcSpeedGaugeNeedleType` | | |
|
|
76
|
+
| speedAdvices | | `AdviceInput[] \| undefined` | | Alias of `advices`: ranges and points in the gauge's speed unit. |
|
|
77
|
+
| tickmarkStyle | tickmarkStyle | `TickmarkStyle` | | |
|
|
78
|
+
| hasReadout | hasReadout | `boolean` | `false` | When `true`, shows a centered `<obc-readout>` (label `STW`, unit `KN`) below the gauge with the current speed. Default `false`. |
|
|
79
|
+
| label | label | `string` | `'STW'` | Readout label. Default `STW`. |
|
|
80
|
+
| unit | unit | `string` | `'KN'` | Readout unit. Default `KN`. |
|
|
81
|
+
| fractionDigits | fractionDigits | `number` | `1` | Number of fraction digits shown in the readout. Default `1`. |
|
|
82
|
+
| 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. |
|
|
83
|
+
| minAngle | | `number` | | |
|
|
84
|
+
| maxAngle | | | | |
|
|
85
|
+
| needle | | | | |
|
|
86
|
+
| tickmarks | | `Tickmark[]` | | |
|
|
87
|
+
| advices | advices | `AdviceInput[]` | `[]` | Advice ranges and points in the instrument's unit; see `svghelpers/advice.ts`. |
|
|
88
|
+
| adviceTrigger | adviceTrigger | `AdviceTrigger` | | Which readings trigger an advice: the value, the setpoint, or either. Available when `adviceTrigger advices!=[]`. |
|
|
89
|
+
| adviceEmphasis | adviceEmphasis | `boolean` | `false` | The design's go-to / no-go emphasis rules. Available when `adviceEmphasis advices!=[]`. |
|
|
90
|
+
| setpoint | setpoint | `number \| undefined` | | Target setpoint value. `undefined` = no setpoint marker shown. |
|
|
91
|
+
| newSetpoint | newSetpoint | `number \| undefined` | | Adjustment preview for 2-step interface. When defined, two markers are shown: original (dimmed) + new (focus). Available when `setpoint!=undefined`. |
|
|
92
|
+
| atSetpoint | | `boolean` | `false` | Manual at-setpoint override (used when `autoAtSetpoint` is false). Available when `setpoint!=undefined && autoAtSetpoint==false`. |
|
|
93
|
+
| touching | touching | `boolean` | `false` | User is physically interacting with the control. Suppresses at-setpoint calculation and triggers focus visual. Available when `setpoint!=undefined`. |
|
|
94
|
+
| autoAtSetpoint | | `boolean` | `true` | When false, uses manual `atSetpoint` boolean instead of auto-calculation. Available when `setpoint!=undefined`. |
|
|
95
|
+
| autoAtSetpointDeadband | autoAtSetpointDeadband | `number` | `defaultDeadband` | Tolerance for auto at-setpoint detection. Available when `setpoint!=undefined && autoAtSetpoint==true`. |
|
|
96
|
+
| setpointAtZeroDeadband | setpointAtZeroDeadband | `number` | `defaultZeroDeadband` | Tolerance for zero-snap visual state. Available when `setpoint!=undefined`. |
|
|
97
|
+
| setpointOverride | setpointOverride | `boolean` | `false` | Override to derive the setpoint color from the instrument's `priority` regardless of instrument state. Available when `setpoint!=undefined`. |
|
|
98
|
+
| animateSetpoint | animateSetpoint | `boolean` | `false` | Enable CSS-animated confirm transition. Available when `setpoint!=undefined`. |
|
|
99
|
+
| departingNewSetpoint | | `number \| undefined` | | Public getter for renderers/wrappers to access the departing value. |
|
|
100
|
+
|
|
101
|
+
## Events
|
|
102
|
+
|
|
103
|
+
None.
|
|
104
|
+
|
|
105
|
+
## Slots
|
|
106
|
+
|
|
107
|
+
None.
|
|
108
|
+
|
|
109
|
+
## Stories
|
|
110
|
+
|
|
111
|
+
- [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-gauge--enhanced)
|
|
112
|
+
- [Regular](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-gauge--regular)
|
|
113
|
+
- [Labels](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-gauge--labels)
|
|
114
|
+
- [Needle Bar](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-gauge--needle-bar)
|
|
115
|
+
- [Advices](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-gauge--advices)
|
|
116
|
+
- [Readout](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-gauge--readout)
|
|
117
|
+
- [Label Room — 4-Digit Scale in A Short Cell (#1021)](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-gauge--label-room-high-speed)
|
|
118
|
+
- [Sizing Playground — FaceDiameter + Resizable (Manual)](https://openbridge-next-storybook.web.app/?path=/story/instruments-speed-gauge--sizing-playground): Interactive sizing playground: drag the dashed box's bottom-right corner to resize it. The first gauge is pinned to a fixed intrinsic size by the `faceDiameter` control, while the second adapts to the remaining flex space, reserving room for its 4-digit labels adaptively (issue #1021). Enable `lockFaceDiameter` to pin both to the same circumference regardless of their label widths. Related: *Sizing Playground* stories under Building Blocks/Watch, Building Blocks/Instrument Radial and Instruments/Gauge Radial.
|
|
119
|
+
|
|
120
|
+
## See also
|
|
121
|
+
|
|
122
|
+
- [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
|
|
123
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
124
|
+
- [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,37 @@
|
|
|
1
|
+
# `<obc-speed-indicator>`
|
|
2
|
+
|
|
3
|
+
A compact speed indicator with two display variants.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/indicators-speed-indicator--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/speed-indicator/speed-indicator.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-speed-indicator>` – A compact speed indicator with two display variants.
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- **Needle**: Shows a dial with a filled sector and a rotating needle driven by `speed` and `maxSpeed`.
|
|
12
|
+
- **LongLat**: Shows an own-ship marker with directional chevrons. `longLatLevels` is a 6-item list
|
|
13
|
+
of per-slot levels (0–3), where `0` hides the chevrons for that slot.
|
|
14
|
+
|
|
15
|
+
This component is display-only; callers are expected to derive the LongLat slot values from upstream data.
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
| Property | Attribute | Type | Default | Description |
|
|
20
|
+
| --- | --- | --- | --- | --- |
|
|
21
|
+
| type | type | `SpeedIndicatorType` | | |
|
|
22
|
+
| speed | speed | `number` | `0` | |
|
|
23
|
+
| maxSpeed | maxSpeed | `number` | `100` | |
|
|
24
|
+
| longLatLevels | | `number[] \| undefined` | | |
|
|
25
|
+
|
|
26
|
+
## Events
|
|
27
|
+
|
|
28
|
+
None.
|
|
29
|
+
|
|
30
|
+
## Slots
|
|
31
|
+
|
|
32
|
+
None.
|
|
33
|
+
|
|
34
|
+
## Stories
|
|
35
|
+
|
|
36
|
+
- [Needle](https://openbridge-next-storybook.web.app/?path=/story/indicators-speed-indicator--needle)
|
|
37
|
+
- [Long Lat](https://openbridge-next-storybook.web.app/?path=/story/indicators-speed-indicator--long-lat)
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# `<obc-split-button>`
|
|
2
|
+
|
|
3
|
+
A composite button component combining a primary action and a dropdown menu for additional actions or selections.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-buttons-split-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/split-button/split-button.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-split-button>` – A composite button component combining a primary action and a dropdown menu for additional actions or selections. Also known as a split button, segmented button, or action menu button.
|
|
8
|
+
|
|
9
|
+
Provides a main button for a default/primary action and a secondary dropdown button that reveals a context menu with configurable options. This pattern allows users to quickly trigger a common action or select from a list of related actions or filters, improving workflow efficiency and reducing UI clutter.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
- **Dual-action layout:** Combines a primary button (for the main action) and a dropdown button (for menu access) in a single horizontal control.
|
|
13
|
+
- **Configurable dropdown menu:** Supports multiple menu types via `menuType` (regular, checkboxes, flyout, multi-column, etc.) for different selection and grouping needs.
|
|
14
|
+
- **Multi-select and group selection:** Allows single or multiple selections in the dropdown, with optional grouping and per-group selection logic.
|
|
15
|
+
- **Customizable menu content:** Accepts an array of options or column groups, supports icons, subtitles, and multi-column layouts for complex menus.
|
|
16
|
+
- **Optional icon in primary button:** Add a leading icon to the main button using the `hasIcon` property and `icon` slot.
|
|
17
|
+
- **Replaceable dropdown icon:** The dropdown button shows a chevron; fill the `dropdown-icon` slot to show another symbol, for example one that says what the menu holds.
|
|
18
|
+
- **Title bar and menu title:** Optionally display a title bar with close button and custom title text in the dropdown.
|
|
19
|
+
- **Full width mode:** Can stretch to fill its container using the `fullWidth` property.
|
|
20
|
+
- **Disabled state:** `disabled` disables both halves; `primaryDisabled` and `dropdownDisabled` disable one half each, so the primary action can be unavailable while the menu stays in use.
|
|
21
|
+
- **Dropdown positioning:** The menu opens below the button and extends to the right. `openTop` opens it above and `openLeft` extends it to the left, for a button near the bottom or the right edge of its container.
|
|
22
|
+
- **Selection persistence:** Optionally keeps the selected state visually persistent in the menu.
|
|
23
|
+
- **Keyboard and pointer accessibility:** Follows standard button and menu accessibility patterns.
|
|
24
|
+
|
|
25
|
+
## Variants (Menu Types)
|
|
26
|
+
- **Regular:** Standard single-selection dropdown menu.
|
|
27
|
+
- **Checkboxes:** Menu with checkboxes for multi-selection.
|
|
28
|
+
- **Flyout:** Hierarchical/flyout menu for nested actions.
|
|
29
|
+
- **Multi:** Multi-column menu for large sets of options.
|
|
30
|
+
- **MultiWithSubtitles:** Multi-column menu with grouped options and subtitles.
|
|
31
|
+
- See `ContextMenuType` enum for all supported menu types.
|
|
32
|
+
|
|
33
|
+
## Usage Guidelines
|
|
34
|
+
Use `obc-split-button` when you want to provide a primary action alongside a set of related secondary actions or filters, without overwhelming the main UI. Ideal for toolbars, filter bars, or any context where a default action is common but alternatives should be easily accessible. For example, use it for "Save" (primary) with "Save As..." and "Export" (dropdown), or for filter controls with quick presets.
|
|
35
|
+
|
|
36
|
+
- Prefer this component over a standalone dropdown when a default action is expected to be used frequently.
|
|
37
|
+
- For menus with many options, use multi-column or grouped variants for better organization.
|
|
38
|
+
- If only a single action is needed, use a standard `<obc-button>` instead.
|
|
39
|
+
- For persistent or always-visible lists of actions, consider a toolbar or action list.
|
|
40
|
+
- **TODO(designer):** Confirm best practices for when to use multi-select vs. single-select, and any recommended limits on number of options or columns.
|
|
41
|
+
|
|
42
|
+
## Slots
|
|
43
|
+
| Slot Name | Renders When... | Purpose |
|
|
44
|
+
|-----------------|---------------------|-----------------------------------------------------|
|
|
45
|
+
| `icon` | `hasIcon` is true | Leading icon in the primary button (e.g., `<obi-placeholder></obi-placeholder>`) |
|
|
46
|
+
| `dropdown-icon` | Always | Icon of the dropdown button; the chevron when empty |
|
|
47
|
+
|
|
48
|
+
## Events
|
|
49
|
+
- `click` – Fired when either the primary or dropdown button is clicked. The event detail includes `{action: 'primary' | 'dropdown'}` to distinguish which part was activated.
|
|
50
|
+
- `change` – Fired when the menu selection changes. The event detail includes `{selectedValues, selectedOptions}`.
|
|
51
|
+
|
|
52
|
+
## Keyboard
|
|
53
|
+
The primary half is a plain button. The dropdown half follows the
|
|
54
|
+
[APG Menu Button](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/):
|
|
55
|
+
`Enter` and `Space` open the menu, `ArrowDown` and `Home` open it on the
|
|
56
|
+
first item, `ArrowUp` and `End` on the last, and `Escape` closes it and
|
|
57
|
+
returns focus to the dropdown half. The menu is `obc-context-menu-input`.
|
|
58
|
+
|
|
59
|
+
Left out: `Enter` and `Space` land on the selected item rather than the
|
|
60
|
+
first, so a reopened selection menu starts where the user left it.
|
|
61
|
+
|
|
62
|
+
## Best Practices & Constraints
|
|
63
|
+
- Only use multi-select when the menu type and use case require it; otherwise, prefer single selection for clarity.
|
|
64
|
+
- Keep the primary action clear and distinct from dropdown actions.
|
|
65
|
+
- For accessibility, ensure all menu options have clear labels and, if using icons, provide appropriate alt text or aria-labels.
|
|
66
|
+
- Avoid overloading the dropdown with too many options; group or paginate if necessary.
|
|
67
|
+
- The dropdown menu closes automatically when an option is selected (unless it is a group/flyout parent).
|
|
68
|
+
- The component manages focus and pointer events to ensure proper menu closing when clicking outside.
|
|
69
|
+
- **TODO(designer):** Specify recommended icon usage, menu title conventions, and any animation/timing guidelines for menu opening/closing.
|
|
70
|
+
|
|
71
|
+
## Example:
|
|
72
|
+
```html
|
|
73
|
+
<obc-split-button
|
|
74
|
+
label="Save"
|
|
75
|
+
.options=${[
|
|
76
|
+
{value: 'save-as', label: 'Save As...'},
|
|
77
|
+
{value: 'export', label: 'Export'},
|
|
78
|
+
]}
|
|
79
|
+
hasIcon
|
|
80
|
+
>
|
|
81
|
+
<obi-placeholder slot="icon"></obi-placeholder>
|
|
82
|
+
</obc-split-button>
|
|
83
|
+
```
|
|
84
|
+
In this example, the split button shows a "Save" action with a leading icon, and a dropdown menu with "Save As..." and "Export" options.
|
|
85
|
+
|
|
86
|
+
## Properties
|
|
87
|
+
|
|
88
|
+
| Property | Attribute | Type | Default | Description |
|
|
89
|
+
| --- | --- | --- | --- | --- |
|
|
90
|
+
| label | label | `string` | `'Split Button'` | The label displayed on the main (primary) button. |
|
|
91
|
+
| hasIcon | hasIcon | `boolean` | `false` | Whether the main button should show a leading icon slot. When true, content in the `icon` slot is rendered before the label. |
|
|
92
|
+
| options | options | `ContextMenuOption[]` | `[]` | Array of menu options for the dropdown. Each option should be a `ContextMenuOption` object. For grouped or multi-column menus, use `columnGroups` instead. |
|
|
93
|
+
| selectedValues | selectedValues | `string[]` | `[]` | Array of currently selected option values in the dropdown. Used to control the checked/selected state of menu items. |
|
|
94
|
+
| menuType | menuType | `ContextMenuType` | | The variant type of context menu to display in the dropdown. Accepts values from the `ContextMenuType` enum (e.g., 'regular', 'checkboxes', 'flyout', 'multi', 'multiWithSubtitles'). |
|
|
95
|
+
| multiSelect | multiSelect | `boolean \| undefined` | | Whether multiple selections are allowed in the dropdown. If true, users can select more than one option (e.g., for checkboxes or multi-column). |
|
|
96
|
+
| selectPerGroup | selectPerGroup | `boolean \| undefined` | | Allows single selection per group/column (matches context-menu-input). When true, only one option can be selected per group/column. |
|
|
97
|
+
| itemsPerColumn | itemsPerColumn | `number` | `5` | Number of items per column in multi-column layouts. Used when `menuType` is 'multi' or 'multiWithSubtitles'. Available when `menuType in [Multi, MultiWithSubtitles]`. |
|
|
98
|
+
| hasTitleBar | hasTitleBar | `boolean` | `false` | Whether to show a title bar with close button in the dropdown. When true, a title bar appears at the top of the menu. |
|
|
99
|
+
| menuTitle | menuTitle | `string` | `''` | Title text for the dropdown menu. Displayed in the title bar when `hasTitleBar` is true. Available when `hasTitleBar==true`. |
|
|
100
|
+
| dropdownLabel | dropdownLabel | `string` | `'More options'` | Accessible name of the dropdown button; the chevron carries none. |
|
|
101
|
+
| fullWidth | fullWidth | `boolean` | `false` | Whether the split button should fill the full width of its container. When true, the component stretches horizontally. |
|
|
102
|
+
| disabled | disabled | `boolean` | `false` | Whether both parts of the button are disabled. When true, disables both the primary and dropdown buttons. |
|
|
103
|
+
| primaryDisabled | primaryDisabled | `boolean` | `false` | Disables the primary button alone, for an action the user cannot take right now while the menu stays in use, for example to ask for the access the action needs. Available when `disabled==false`. |
|
|
104
|
+
| dropdownDisabled | dropdownDisabled | `boolean` | `false` | Disables the dropdown button alone, leaving the primary action. Available when `disabled==false`. |
|
|
105
|
+
| openTop | openTop | `boolean` | `false` | Open context menu dropdown above (`true`) or below (`false`) the button. Useful for placement near the bottom of the viewport. |
|
|
106
|
+
| openLeft | openLeft | `boolean` | `false` | Extend the menu to the left of the dropdown button (`true`), its right edge on the button's right edge, instead of to the right. For a button near the right edge of its container; combines with `openTop`. |
|
|
107
|
+
| columnGroups | columnGroups | `ColumnGroup[]` | `[]` | Array of column group definitions for multi-column/grouped menus. Use instead of `options` for grouped or subtitle layouts. Available when `menuType==MultiWithSubtitles`. |
|
|
108
|
+
|
|
109
|
+
## Events
|
|
110
|
+
|
|
111
|
+
| Event | Type | Description |
|
|
112
|
+
| --- | --- | --- |
|
|
113
|
+
| change | `ObcSplitButtonChangeEvent` | Fired when the dropdown menu selection changes. |
|
|
114
|
+
| click | `ObcSplitButtonClickEvent` | Fired when the primary or dropdown button is clicked. |
|
|
115
|
+
|
|
116
|
+
## Slots
|
|
117
|
+
|
|
118
|
+
| Slot | Description |
|
|
119
|
+
| --- | --- |
|
|
120
|
+
| icon | Leading icon for the primary button (shown when `hasIcon` is true) |
|
|
121
|
+
| dropdown-icon | Icon of the dropdown button; the chevron when empty. |
|
|
122
|
+
|
|
123
|
+
## Stories
|
|
124
|
+
|
|
125
|
+
- [Basic](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--basic): Basic split button with primary action and dropdown menu.
|
|
126
|
+
- [Open Top](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--open-top): Split button that opens the dropdown above the button.
|
|
127
|
+
- [With Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--with-icon): Split button with an icon in the primary button.
|
|
128
|
+
- [Multi Select](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--multi-select): Multi-select dropdown with checkboxes.
|
|
129
|
+
- [Full Width](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--full-width): Full width split button.
|
|
130
|
+
- [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--disabled): Disabled split button.
|
|
131
|
+
- [Primary Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--primary-disabled): Only the primary action is disabled; the menu stays in use.
|
|
132
|
+
- [Dropdown Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--dropdown-disabled): Only the dropdown is disabled; the primary action stays in use.
|
|
133
|
+
- [Dropdown Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--dropdown-icon): A slotted icon replaces the chevron on the dropdown button.
|
|
134
|
+
- [Open Left](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--open-left): The menu extends to the left, ending on the button's right edge, so a button at the right edge of its container keeps the whole menu on screen.
|
|
135
|
+
- [Command Access](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--command-access): Access control at the end of a toolbar: the action is disabled while the user lacks the access it needs, and the dropdown, with its own icon, offers the ways to request it (#1381).
|
|
136
|
+
- [Flyout Menu](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--flyout-menu): Complex flyout menu example.
|
|
137
|
+
- [Multi Column](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--multi-column): Multi-column menu (multi select)
|
|
138
|
+
- [Multi Column With Subtitles](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--multi-column-with-subtitles): Multi-column with subtitles/groups, multi select
|
|
139
|
+
- [Multi Column Group Selection](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--multi-column-group-selection): Multi-column menu (single per column selection)
|
|
140
|
+
- [Multi Column With Subtitles Group Selection](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-split-button--multi-column-with-subtitles-group-selection)
|
|
141
|
+
|
|
142
|
+
## See also
|
|
143
|
+
|
|
144
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# `<obc-start-stop-switch>`
|
|
2
|
+
|
|
3
|
+
A two-state draggable toggle switch for significant binary actions like start/stop or enable/disable.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-selection-controls-and-switches-start-stop-switch--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/start-stop-switch/start-stop-switch.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-start-stop-switch>` – A two-state draggable toggle switch for significant binary actions like start/stop or enable/disable.
|
|
8
|
+
|
|
9
|
+
This switch provides a visually distinct, draggable toggle for binary actions where both states need to be explicitly labeled and reinforced. Unlike a simple on/off toggle, it displays both the current state label and an action label on the draggable thumb, making it ideal for consequential actions where user awareness is critical.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
- **Drag-to-toggle interaction:** Users must drag the thumb across the track to change state (90% threshold required). This deliberate interaction prevents accidental toggles.
|
|
13
|
+
- **Dual state labels:** Displays both a state label (e.g., "Running", "Stopped") and an action label on the thumb (e.g., "Start", "Stop").
|
|
14
|
+
- **Visual variants:**
|
|
15
|
+
- `normal`: Standard blue appearance when checked (default)
|
|
16
|
+
- `running`: Green appearance indicating an active process (e.g., motor running)
|
|
17
|
+
- `loading`: Light blue appearance indicating a pending/transitional state
|
|
18
|
+
- **Size options:** `regular` (32px track height) or `large` (48px track height, matching touch target).
|
|
19
|
+
- **Alert frame:** Optional red border to indicate alarm or critical state.
|
|
20
|
+
- **Description text:** Optional text below the switch for additional context.
|
|
21
|
+
- **Animated transitions:** Smooth CSS transitions for thumb movement and state changes.
|
|
22
|
+
- **Keyboard accessible:** The switch is focusable and follows the ARIA switch pattern — `Enter` or `Space` toggles the state and fires the same `change` event as a completed drag.
|
|
23
|
+
|
|
24
|
+
## Usage Guidelines
|
|
25
|
+
Use `<obc-start-stop-switch>` when you need a prominent control for toggling between two mutually exclusive states where:
|
|
26
|
+
- Both states should be explicitly labeled (not just "on/off")
|
|
27
|
+
- The action has significant consequences (starting a motor, enabling a system)
|
|
28
|
+
- Accidental activation should be prevented through deliberate drag interaction
|
|
29
|
+
|
|
30
|
+
Avoid using this component for simple preferences or settings where a standard `<obc-switch>` or checkbox would suffice. This component is best suited for operational controls where the user must be aware of both the current state and the action they're about to take.
|
|
31
|
+
|
|
32
|
+
**Related components:** For simple binary toggles without labels, use `<obc-switch>`. For grouped selections, use `<obc-radio>` or `<obc-checkbox>`.
|
|
33
|
+
|
|
34
|
+
## Slots
|
|
35
|
+
| Slot Name | Renders When... | Purpose |
|
|
36
|
+
|---------------------------|----------------------|------------------------------------------------------------|
|
|
37
|
+
| checked-state-icon | Always (if provided) | Icon displayed in the checked state area. |
|
|
38
|
+
| unchecked-state-icon | Always (if provided) | Icon displayed in the unchecked state area. |
|
|
39
|
+
| checked-state-label | Always | Label shown when switch is in checked position. |
|
|
40
|
+
| unchecked-state-label | Always | Label shown when switch is in unchecked position. |
|
|
41
|
+
| to-checked-action-label | When unchecked | Action label on thumb prompting user to activate. |
|
|
42
|
+
| to-unchecked-action-label | When checked | Action label on thumb prompting user to deactivate. |
|
|
43
|
+
|
|
44
|
+
## Events
|
|
45
|
+
- `change` – Fired when the switch state changes after a successful drag. The event detail contains `{checked: boolean}` indicating the new state.
|
|
46
|
+
|
|
47
|
+
## Best Practices
|
|
48
|
+
- Keep labels concise (1-2 words) to fit within the track width.
|
|
49
|
+
- Use meaningful action verbs: "Start/Stop", "Enable/Disable", "Request/Release".
|
|
50
|
+
- Use the `running` variant to indicate an actively running process.
|
|
51
|
+
- Use the `loading` variant during async operations before transitioning to `running` or `normal`.
|
|
52
|
+
- Consider using `hasAlert` when the switch controls a critical system in alarm state.
|
|
53
|
+
- The accessible name is computed from the slotted labels; provide `aria-label` on the host when those labels alone are not descriptive (`aria-labelledby` is not supported — ID references cannot cross the shadow boundary).
|
|
54
|
+
|
|
55
|
+
## Example
|
|
56
|
+
```html
|
|
57
|
+
<obc-start-stop-switch checked variant="running">
|
|
58
|
+
<div slot="checked-state-icon"><obi-placeholder></obi-placeholder></div>
|
|
59
|
+
<div slot="checked-state-label">Running</div>
|
|
60
|
+
<div slot="unchecked-state-label">Stopped</div>
|
|
61
|
+
<div slot="to-checked-action-label">Start</div>
|
|
62
|
+
<div slot="to-unchecked-action-label">Stop</div>
|
|
63
|
+
</obc-start-stop-switch>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Keyboard
|
|
67
|
+
[APG Switch](https://www.w3.org/WAI/ARIA/apg/patterns/switch/): `Space` and
|
|
68
|
+
`Enter` toggle it. The knob inside is a drag handle for pointers, not a
|
|
69
|
+
control of its own: a switch announces its content as one name, so nothing
|
|
70
|
+
inside it may take focus. The description, when shown, describes the switch.
|
|
71
|
+
|
|
72
|
+
Left out: nothing.
|
|
73
|
+
|
|
74
|
+
## Properties
|
|
75
|
+
|
|
76
|
+
| Property | Attribute | Type | Default | Description |
|
|
77
|
+
| --- | --- | --- | --- | --- |
|
|
78
|
+
| checked | checked | `boolean` | `false` | Whether the switch is in the checked (active) state. When checked, the thumb is on the right side. When unchecked, the thumb is on the left side. Defaults to `false`. |
|
|
79
|
+
| variant | variant | `StartStopSwitchVariant` | | Visual style of the checked side: `normal` (default) is blue, `running` green for the running state and `loading` light blue for a pending one. It does not move the thumb. |
|
|
80
|
+
| size | size | `StartStopSwitchSize` | | Switch size: `regular` (default) has a 32px track height, `large` a 48px one. |
|
|
81
|
+
| disabled | disabled | `boolean` | `false` | Whether the switch is disabled. When disabled, the switch cannot be interacted with and displays a muted appearance. In the disabled state, the thumb is hidden and only the state label is shown. Defaults to `false`. |
|
|
82
|
+
| hasAlert | hasAlert | `boolean` | `false` | Whether to show an alert frame around the switch. When true, displays a red alert border around the switch to indicate an alarm or critical state. Defaults to `false`. |
|
|
83
|
+
| hasDescription | hasDescription | `boolean` | `false` | Whether to show the description below the switch. When true, displays the description text below the switch track. The component's minimum height is maintained at the touch target size. Defaults to `false`. |
|
|
84
|
+
| description | description | `string` | `'Action description'` | Description text displayed below the switch when `hasDescription` is true. Use this to provide additional context about the switch's purpose or current state. Defaults to `'Action description'`. Available when `hasDescription==true`. |
|
|
85
|
+
|
|
86
|
+
## Events
|
|
87
|
+
|
|
88
|
+
| Event | Type | Description |
|
|
89
|
+
| --- | --- | --- |
|
|
90
|
+
| change | `ObcStartStopSwitchChangeEvent` | Emitted when the switch is toggled via drag interaction. |
|
|
91
|
+
|
|
92
|
+
## Slots
|
|
93
|
+
|
|
94
|
+
| Slot | Description |
|
|
95
|
+
| --- | --- |
|
|
96
|
+
| checked-state-icon | Icon displayed in the checked (active) state area. |
|
|
97
|
+
| unchecked-state-icon | Icon displayed in the unchecked (inactive) state area. |
|
|
98
|
+
| checked-state-label | Label for the checked state (e.g., "Running", "Enabled"). |
|
|
99
|
+
| unchecked-state-label | Label for the unchecked state (e.g., "Stopped", "Disabled"). |
|
|
100
|
+
| to-checked-action-label | Action label on thumb when unchecked (e.g., "Start", "Enable"). |
|
|
101
|
+
| to-unchecked-action-label | Action label on thumb when checked (e.g., "Stop", "Disable"). |
|
|
102
|
+
|
|
103
|
+
## Stories
|
|
104
|
+
|
|
105
|
+
- [Unchecked](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--unchecked)
|
|
106
|
+
- [Checked](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--checked)
|
|
107
|
+
- [Loading](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--loading)
|
|
108
|
+
- [Running](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--running)
|
|
109
|
+
- [Size Large](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--size-large)
|
|
110
|
+
- [Size Large Checked](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--size-large-checked)
|
|
111
|
+
- [Size Large Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--size-large-disabled)
|
|
112
|
+
- [Size Large Disabled Checked](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--size-large-disabled-checked)
|
|
113
|
+
- [Disabled Loading](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--disabled-loading)
|
|
114
|
+
- [Disabled Running](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--disabled-running)
|
|
115
|
+
- [All Disabled Variants](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--all-disabled-variants)
|
|
116
|
+
- [With Alert](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--with-alert)
|
|
117
|
+
- [With Description](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--with-description)
|
|
118
|
+
- [All Variants](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--all-variants)
|
|
119
|
+
- [Cmd Example](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--cmd-example)
|
|
120
|
+
- [Loading To Running](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--loading-to-running)
|
|
121
|
+
- [Keyboard Toggle](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--keyboard-toggle)
|
|
122
|
+
- [Keyboard Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-selection-controls-and-switches-start-stop-switch--keyboard-disabled)
|
|
123
|
+
|
|
124
|
+
## See also
|
|
125
|
+
|
|
126
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# `<obc-status-indicator>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-message-and-alerts-status-indicator--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/status-indicator/status-indicator.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| status | status | | | |
|
|
12
|
+
|
|
13
|
+
## Events
|
|
14
|
+
|
|
15
|
+
None.
|
|
16
|
+
|
|
17
|
+
## Slots
|
|
18
|
+
|
|
19
|
+
| Slot | Description |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| (default) | Label content shown next to the status indicator. |
|
|
22
|
+
|
|
23
|
+
## Stories
|
|
24
|
+
|
|
25
|
+
- [Active](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-status-indicator--active)
|
|
26
|
+
- [Inactive](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-status-indicator--inactive)
|
|
27
|
+
- [Caution](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-status-indicator--caution)
|
|
28
|
+
- [Warning](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-status-indicator--warning)
|
|
29
|
+
- [Alarm](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-status-indicator--alarm)
|
|
30
|
+
- [Running](https://openbridge-next-storybook.web.app/?path=/story/ui-components-message-and-alerts-status-indicator--running)
|