@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,48 @@
|
|
|
1
|
+
# `<obc-sequence-step>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-sequence-step--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/sequence-step/sequence-step.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| orientation | orientation | `SequenceOrientation` | | |
|
|
12
|
+
| type | type | `SequenceType` | | |
|
|
13
|
+
| styleType | styleType | `SequenceStyle` | | |
|
|
14
|
+
| value | value | `SequenceValue` | | |
|
|
15
|
+
| variant | variant | `SequenceVariant \| undefined` | | |
|
|
16
|
+
| hasIcon | hasIcon | `boolean` | `false` | Displays the built-in state icon for medium/large regular steps. Available when `styleType==regular && type in [medium, large]`. |
|
|
17
|
+
| showStepInputConnector | | `boolean` | `true` | |
|
|
18
|
+
| showStepOutputConnector | | `boolean` | `true` | |
|
|
19
|
+
| inputConnectorExtended | inputConnectorExtended | `boolean` | `false` | Extends the input connector to match the height/width of multi-line content. Applies only when `hasInputConnector` is true. Available when `showStepInputConnector==true`. |
|
|
20
|
+
|
|
21
|
+
## Events
|
|
22
|
+
|
|
23
|
+
| Event | Type | Description |
|
|
24
|
+
| --- | --- | --- |
|
|
25
|
+
| click | | Fired when the step is activated. Only fired when the step renders as a button, i.e. `type="large"` with the `regular` or `point` style; other combinations render a non-interactive wrapper. |
|
|
26
|
+
|
|
27
|
+
## Slots
|
|
28
|
+
|
|
29
|
+
None.
|
|
30
|
+
|
|
31
|
+
## Stories
|
|
32
|
+
|
|
33
|
+
- [Playground](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step--playground)
|
|
34
|
+
- [Type Overview](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step--type-overview)
|
|
35
|
+
- [Small • Regular States](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step--small-regular-states)
|
|
36
|
+
- [Small • Point States](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step--small-point-states)
|
|
37
|
+
- [Medium • Regular States](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step--medium-regular-states)
|
|
38
|
+
- [Medium • Point States](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step--medium-point-states)
|
|
39
|
+
- [Large • Regular States](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step--large-button-states)
|
|
40
|
+
- [Large • Point States](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step--large-point-states)
|
|
41
|
+
- [Connector Style States](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step--connector-styles)
|
|
42
|
+
- [Connector Style States • Vertical](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step--connector-styles-vertical)
|
|
43
|
+
- [Connector Flags](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step--connector-flags)
|
|
44
|
+
- [Orientation Showcase](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step--orientation-showcase)
|
|
45
|
+
|
|
46
|
+
## See also
|
|
47
|
+
|
|
48
|
+
- [Automation/Sequence Step/Diagram Playground](https://openbridge-next-storybook.web.app/docs/automation-sequence-step-diagram-playground.md)
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# `<obc-sequence-toolbar>`
|
|
2
|
+
|
|
3
|
+
Layout wrapper for sequence navigation steps.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-sequence-toolbar--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/sequence-toolbar/sequence-toolbar.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-sequence-toolbar>` – Layout wrapper for sequence navigation steps.
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
A compact container for sequence navigation (stepper, wizard bar, progress
|
|
11
|
+
step bar) that arranges `obc-sequence-step` items with built-in start/end
|
|
12
|
+
controls and an optional add button.
|
|
13
|
+
|
|
14
|
+
## Features / Variants
|
|
15
|
+
- **Unordered:** Start/end controls with a free-form center list.
|
|
16
|
+
- **Sequential:** Start/end controls with sequential step items.
|
|
17
|
+
- **Condensed:** Icon controls with current/total labels.
|
|
18
|
+
- **Optional Add:** `hasAdd` shows an add button (not shown in sequential).
|
|
19
|
+
|
|
20
|
+
## Usage Guidelines
|
|
21
|
+
- Use for step navigation, progress through a flow, or quick step access.
|
|
22
|
+
- Provide your steps in the default slot (`obc-sequence-step` items).
|
|
23
|
+
- Override start/end text via the `start`/`end` slots when needed.
|
|
24
|
+
|
|
25
|
+
## Slots / Content
|
|
26
|
+
- Default slot: step items rendered in the toolbar center.
|
|
27
|
+
- `start`/`end` slots: **text/content only** for the built-in controls.
|
|
28
|
+
- `condensed-current`/`condensed-total`: labels for condensed mode.
|
|
29
|
+
|
|
30
|
+
## Events
|
|
31
|
+
- `prev-click`: Fired when the built-in Previous control is clicked.
|
|
32
|
+
- `next-click`: Fired when the built-in Next control is clicked.
|
|
33
|
+
- `add-click`: Fired when the built-in Add control is clicked.
|
|
34
|
+
|
|
35
|
+
## Best Practices & Constraints
|
|
36
|
+
- The start/end controls are built-in; you can only change their content.
|
|
37
|
+
- Condensed mode does not accept start/end slots (only current/total).
|
|
38
|
+
- `hasAdd` is ignored when `type="sequential"`.
|
|
39
|
+
- Keep step labels short for compact layouts.
|
|
40
|
+
- Use `condensed` when space is limited.
|
|
41
|
+
- Do not try to replace the start/end controls with custom components.
|
|
42
|
+
- Do not rely on `hasAdd` in sequential mode.
|
|
43
|
+
|
|
44
|
+
## Example
|
|
45
|
+
```html
|
|
46
|
+
<obc-sequence-toolbar type="sequential">
|
|
47
|
+
<obc-sequence-step value="completed">1</obc-sequence-step>
|
|
48
|
+
<obc-sequence-step value="completed">2</obc-sequence-step>
|
|
49
|
+
<obc-sequence-step value="active">3</obc-sequence-step>
|
|
50
|
+
<obc-sequence-step value="not-started">4</obc-sequence-step>
|
|
51
|
+
</obc-sequence-toolbar>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Sequence toolbar arranges sequence step items with optional start/end controls and a condensed mode.
|
|
55
|
+
|
|
56
|
+
## Slots
|
|
57
|
+
- `start` / `end`: content for the built-in Previous/Next (or Intro/Summary).
|
|
58
|
+
- Default slot: sequence steps in the center.
|
|
59
|
+
- `condensed-current` / `condensed-total`: labels for condensed mode.
|
|
60
|
+
|
|
61
|
+
## Events
|
|
62
|
+
- `prev-click`, `next-click`, `add-click` are fired by the default controls
|
|
63
|
+
(all types for prev/next, add when `hasAdd`).
|
|
64
|
+
|
|
65
|
+
## Example
|
|
66
|
+
~~~html
|
|
67
|
+
<obc-sequence-toolbar type="sequential">
|
|
68
|
+
<obc-sequence-step value="completed">1</obc-sequence-step>
|
|
69
|
+
<obc-sequence-step value="completed">2</obc-sequence-step>
|
|
70
|
+
<obc-sequence-step value="active">3</obc-sequence-step>
|
|
71
|
+
<obc-sequence-step value="not-started">4</obc-sequence-step>
|
|
72
|
+
</obc-sequence-toolbar>
|
|
73
|
+
~~~
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## Properties
|
|
77
|
+
|
|
78
|
+
| Property | Attribute | Type | Default | Description |
|
|
79
|
+
| --- | --- | --- | --- | --- |
|
|
80
|
+
| type | type | `SequenceToolbarType` | | |
|
|
81
|
+
| hasAdd | hasAdd | `boolean` | `false` | Available when `type!=sequential`. |
|
|
82
|
+
|
|
83
|
+
## Events
|
|
84
|
+
|
|
85
|
+
| Event | Type | Description |
|
|
86
|
+
| --- | --- | --- |
|
|
87
|
+
| prev-click | `CustomEvent<void>` | Fired when the built-in Previous control is clicked. |
|
|
88
|
+
| next-click | `CustomEvent<void>` | Fired when the built-in Next control is clicked. |
|
|
89
|
+
| add-click | `CustomEvent<void>` | Fired when the built-in Add control is clicked. |
|
|
90
|
+
|
|
91
|
+
## Slots
|
|
92
|
+
|
|
93
|
+
| Slot | Description |
|
|
94
|
+
| --- | --- |
|
|
95
|
+
| (default) | Step items rendered in the toolbar center. |
|
|
96
|
+
| start | Content for the built-in start control label. |
|
|
97
|
+
| end | Content for the built-in end control label. |
|
|
98
|
+
| condensed-current | Current step label for condensed mode. |
|
|
99
|
+
| condensed-total | Total steps label for condensed mode. |
|
|
100
|
+
|
|
101
|
+
## Stories
|
|
102
|
+
|
|
103
|
+
- [📌 Playground](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-toolbar--playground)
|
|
104
|
+
- [Unordered](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-toolbar--unordered)
|
|
105
|
+
- [Unordered + Add](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-toolbar--unordered-with-add)
|
|
106
|
+
- [Condensed](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-toolbar--condensed)
|
|
107
|
+
- [Condensed + Add](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-toolbar--condensed-with-add)
|
|
108
|
+
- [Sequential](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-toolbar--sequential)
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# `<obc-slide-button>`
|
|
2
|
+
|
|
3
|
+
A slide-to-confirm button that requires users to drag the button to the end of a track to trigger an action.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-buttons-slide-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/slide-button/slide-button.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-slide-button>` – A slide-to-confirm button that requires users to drag the button to the end of a track to trigger an action.
|
|
8
|
+
|
|
9
|
+
Appears as a horizontal button with a draggable handle. The user must slide the handle to the right to complete the action, helping prevent accidental activations. Commonly used for critical or irreversible actions where explicit user intent is required (e.g., "Delete", "Confirm", "Unlock").
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
- **Slide-to-activate interaction:** Requires a deliberate sliding gesture to trigger the action, reducing accidental clicks.
|
|
15
|
+
- **Disabled state:** Can be disabled to prevent interaction (`disabled` property).
|
|
16
|
+
- **Leading icon (optional):** Supports a leading icon via the `leading-icon` slot, controlled by the `hasLeadingIcon` property.
|
|
17
|
+
- **Custom label:** Label text is provided via the `label` slot.
|
|
18
|
+
- **Auto-disable option:** When `autoDisable` is true, the button disables itself after a successful slide, preventing repeated actions.
|
|
19
|
+
- **Hug content:** The `hugContent` property allows the button to shrink to fit its content, rather than stretching to full width.
|
|
20
|
+
- **Visual feedback:** Provides animated feedback when sliding and snapping back if not completed.
|
|
21
|
+
- **Trailing icon:** Always displays a trailing double-chevron icon to indicate sliding direction.
|
|
22
|
+
- **Keyboard accessible:** The handle is focusable; `Enter` or `Space` triggers the action (with the same `slide` event and `autoDisable` behavior as a completed drag).
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Usage Guidelines
|
|
27
|
+
Use `obc-slide-button` for actions that require extra confirmation or where accidental activation could have significant consequences. Typical scenarios include confirming deletions, submitting irreversible forms, or unlocking sensitive features. Avoid using for routine or low-risk actions where a standard button suffices.
|
|
28
|
+
|
|
29
|
+
- The sliding gesture provides a clear affordance for intentional actions.
|
|
30
|
+
- If you want the button to automatically disable after use (e.g., to prevent double submissions), set `autoDisable` to true.
|
|
31
|
+
- For best usability, keep the label concise and action-oriented (e.g., "Slide to confirm", "Slide to delete").
|
|
32
|
+
- The leading icon is optional and can be omitted for a simpler appearance.
|
|
33
|
+
- The button will snap back if the slide is not completed past the threshold.
|
|
34
|
+
- Only one slide button should be used for a given action to avoid confusion.
|
|
35
|
+
- Keyboard users activate with `Enter`/`Space` (single press — Tab + activation is considered deliberate). Provide `aria-label` on the host if the slotted label is not descriptive on its own (`aria-labelledby` is not supported — ID references cannot cross the shadow boundary).
|
|
36
|
+
|
|
37
|
+
**TODO(designer):** Confirm if there are recommended minimum/maximum label lengths or if there are accessibility guidelines for color contrast and drag affordance.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Slots
|
|
42
|
+
|
|
43
|
+
| Slot Name | Renders When... | Purpose |
|
|
44
|
+
| -------------- | --------------------- | --------------------------------------------- |
|
|
45
|
+
| leading-icon | `hasLeadingIcon` true | Icon at the start of the button (optional) |
|
|
46
|
+
| label | Always | Main label text for the button |
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Properties and Attributes
|
|
51
|
+
- `disabled` (boolean): Disables the button and prevents interaction. When true, the button is visually muted and cannot be slid.
|
|
52
|
+
- `hasLeadingIcon` (boolean): Controls whether the leading icon slot is shown. Set to false to hide the icon area.
|
|
53
|
+
- `hugContent` (boolean): If true, the button shrinks to fit its content instead of stretching to full width.
|
|
54
|
+
- `autoDisable` (boolean): When true, the button automatically disables itself after a successful slide action.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Events
|
|
59
|
+
- `slide` – Fired when the slide action is completed (i.e., the handle is dragged past the threshold). The event detail contains `{completed: true}`.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Example
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<obc-slide-button autoDisable>
|
|
67
|
+
<obi-placeholder slot="leading-icon"></obi-placeholder>
|
|
68
|
+
<span slot="label">Slide to confirm</span>
|
|
69
|
+
</obc-slide-button>
|
|
70
|
+
```
|
|
71
|
+
In this example, the button displays a leading icon and a label. After sliding to the end, it disables itself automatically.
|
|
72
|
+
|
|
73
|
+
## Properties
|
|
74
|
+
|
|
75
|
+
| Property | Attribute | Type | Default | Description |
|
|
76
|
+
| --- | --- | --- | --- | --- |
|
|
77
|
+
| disabled | disabled | `boolean` | `false` | Whether the slide button is disabled. When true, the button cannot be interacted with and appears visually muted. |
|
|
78
|
+
| hasLeadingIcon | hasLeadingIcon | `boolean` | `false` | Whether to show the leading icon slot. Set to true to show the icon area at the start of the button. |
|
|
79
|
+
| hugContent | hugContent | `boolean` | `false` | Whether the button should hug its content. When true, the button width shrinks to fit its content instead of stretching to fill the container. |
|
|
80
|
+
| autoDisable | autoDisable | `boolean` | `false` | Whether to automatically disable the button after a successful slide. When true, the button disables itself after the slide action completes. |
|
|
81
|
+
|
|
82
|
+
## Events
|
|
83
|
+
|
|
84
|
+
| Event | Type | Description |
|
|
85
|
+
| --- | --- | --- |
|
|
86
|
+
| slide | `ObcSlideButtonSlideEvent` | Emitted when the slide action is completed. |
|
|
87
|
+
|
|
88
|
+
## Slots
|
|
89
|
+
|
|
90
|
+
| Slot | Description |
|
|
91
|
+
| --- | --- |
|
|
92
|
+
| leading-icon | The icon to display at the start of the button content (shown when `hasLeadingIcon` is true). |
|
|
93
|
+
| label | The label text to display in the button. |
|
|
94
|
+
|
|
95
|
+
## Stories
|
|
96
|
+
|
|
97
|
+
- [Default](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-slide-button--default)
|
|
98
|
+
- [Without Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-slide-button--without-icon)
|
|
99
|
+
- [Hug Content With Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-slide-button--hug-content-with-icon)
|
|
100
|
+
- [Hug Content Without Icon](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-slide-button--hug-content-without-icon)
|
|
101
|
+
- [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-slide-button--disabled)
|
|
102
|
+
- [Custom Labels](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-slide-button--custom-labels)
|
|
103
|
+
- [Interactive Demo](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-slide-button--interactive-demo)
|
|
104
|
+
- [Auto Disable Demo](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-slide-button--auto-disable-demo)
|
|
105
|
+
- [Keyboard Activation](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-slide-button--keyboard-activation)
|
|
106
|
+
- [Keyboard Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-slide-button--keyboard-disabled)
|
|
107
|
+
- [Keyboard Auto Disable](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-slide-button--keyboard-auto-disable)
|
|
108
|
+
|
|
109
|
+
## See also
|
|
110
|
+
|
|
111
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# `<obc-slider-double>`
|
|
2
|
+
|
|
3
|
+
A dual-thumb range slider for selecting a value interval within a defined range.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-input-controls-slider-double--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/slider-double/slider-double.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-slider-double>` – A dual-thumb range slider for selecting a value interval within a defined range.
|
|
8
|
+
|
|
9
|
+
This component allows users to select a minimum and maximum value by dragging two thumbs along a horizontal track. It is commonly used for filtering or specifying ranges (such as price, speed, or time intervals) in forms and dashboards. The slider supports both interactive and read-only display modes, as well as visual variants for different UI needs.
|
|
10
|
+
|
|
11
|
+
Appears with two draggable handles (thumbs) and labels showing the current low and high values. The low and high readout labels can be customized via slots.
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
- **Dual-thumb range selection:** Users can adjust both the lower and upper bounds of a numeric interval.
|
|
15
|
+
- **Variants:**
|
|
16
|
+
- **Normal:** Standard slider with compact styling.
|
|
17
|
+
- **Enhanced:** Larger track and thumb for increased prominence or touch accessibility.
|
|
18
|
+
- **NoInput:** Read-only mode; disables all user interaction and presents the current range as static.
|
|
19
|
+
- **Configurable range:** Set minimum (`min`), maximum (`max`), and step size (`step`) for precise control.
|
|
20
|
+
- **Step click adjustment:** Use `stepClick` to define increment/decrement amount for keyboard or button-based changes.
|
|
21
|
+
- **Seeking mode:** Enable `allowSeeking` to let users jump to a value by clicking on the track, with smooth animated transitions controlled by `seekingSpeed`.
|
|
22
|
+
- **Custom labels:** Display formatted value labels with unit (`labelUnit`), decimal precision (`labelDecimals`), and adjustable label width (`labelWidth`).
|
|
23
|
+
- **Hug container option:** Remove spacing between slider and container edges with the `hugcontainer` attribute, so the slider sits flush.
|
|
24
|
+
- **Custom readouts:** Replace the low/high value labels with custom content using the `left-readout` and `right-readout` slots.
|
|
25
|
+
|
|
26
|
+
## Usage Guidelines
|
|
27
|
+
Use `obc-slider-double` when you need users to specify a numeric range, such as filtering results by minimum and maximum values. Ideal for scenarios like:
|
|
28
|
+
- Filtering items by price, speed, or other continuous values.
|
|
29
|
+
- Selecting a time interval or threshold range.
|
|
30
|
+
- Any UI where a bounded numeric interval is required.
|
|
31
|
+
|
|
32
|
+
For single-value selection, use a standard slider component instead. In read-only or summary views, use the `no-input` variant to display the selected range without allowing changes.
|
|
33
|
+
|
|
34
|
+
**TODO(designer):** Confirm if there are recommended minimum thumb separation or constraints for usability, and if there are best practices for using the enhanced variant.
|
|
35
|
+
|
|
36
|
+
## Slots
|
|
37
|
+
|
|
38
|
+
| Slot Name | Renders When... | Purpose |
|
|
39
|
+
|---------------|-------------------------------|------------------------------------------------------------------------------------------------------------------|
|
|
40
|
+
| left-readout | `showLeftReadout` is true | Custom content for the left (low) readout label. Falls back to the formatted `low` value. |
|
|
41
|
+
| right-readout | `showRightReadout` is true | Custom content for the right (high) readout label. Falls back to the formatted `high` value. |
|
|
42
|
+
|
|
43
|
+
## Properties and Attributes
|
|
44
|
+
- `low` (number): The current lower bound of the selected range.
|
|
45
|
+
- `high` (number): The current upper bound of the selected range.
|
|
46
|
+
- `min` (number): The minimum allowed value (default: 0).
|
|
47
|
+
- `max` (number): The maximum allowed value (default: 100).
|
|
48
|
+
- `step` (number): The increment for value changes (default: 1).
|
|
49
|
+
- `stepClick` (number): Step size for keyboard or button-based changes (default: 10).
|
|
50
|
+
- `variant` (`normal` | `enhanced` | `no-input`): Visual and interaction style (default: `normal`).
|
|
51
|
+
- `allowSeeking` (boolean): If true, clicking the track animates the thumb to the clicked position.
|
|
52
|
+
- `seekingSpeed` (number): Animation speed for seeking (default: 1/3, i.e., full range in 3 seconds).
|
|
53
|
+
- `labelUnit` (string): Unit label appended to value labels (e.g., `"%"`, `"kn"`).
|
|
54
|
+
- `labelDecimals` (number): Number of decimal places for value labels.
|
|
55
|
+
- `labelWidth` (string): CSS width for value labels (e.g., `"5ch"`, `"60px"`).
|
|
56
|
+
- `showLeftReadout` (boolean, property only): Show the left (low) readout label. Default `true`.
|
|
57
|
+
- `showRightReadout` (boolean, property only): Show the right (high) readout label. Default `true`.
|
|
58
|
+
- `hugcontainer` (attribute): If present, removes spacing between slider and container edges.
|
|
59
|
+
|
|
60
|
+
## Events
|
|
61
|
+
- `value` – Fired continuously whenever the low or high value changes during user interaction. Event detail contains `{low, high}`.
|
|
62
|
+
- `change` – Fired only after user interaction completes (mouse release). Event detail contains `{low, high}`.
|
|
63
|
+
|
|
64
|
+
## Best Practices and Constraints
|
|
65
|
+
- Ensure `low` is always less than or equal to `high`; the component enforces this automatically.
|
|
66
|
+
- For accessibility, provide clear labels and units so users understand the meaning of the range.
|
|
67
|
+
- Use the `no-input` variant for summary or review screens where editing is not allowed.
|
|
68
|
+
- When using `allowSeeking`, set an appropriate `seekingSpeed` for smooth but responsive thumb movement.
|
|
69
|
+
- Avoid setting `step` too small for large ranges, as this may make precise selection difficult.
|
|
70
|
+
|
|
71
|
+
## Example
|
|
72
|
+
|
|
73
|
+
```html
|
|
74
|
+
<obc-slider-double
|
|
75
|
+
min="0"
|
|
76
|
+
max="100"
|
|
77
|
+
low="20"
|
|
78
|
+
high="80"
|
|
79
|
+
step="5"
|
|
80
|
+
label-unit="%"
|
|
81
|
+
label-decimals="0"
|
|
82
|
+
variant="enhanced"
|
|
83
|
+
allowSeeking
|
|
84
|
+
>
|
|
85
|
+
<span slot="left-readout">Min</span>
|
|
86
|
+
<span slot="right-readout">Max</span>
|
|
87
|
+
</obc-slider-double>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
In this example, the slider allows selection of a percentage range from 0 to 100, with 5% increments, enhanced styling, and seeking enabled.
|
|
91
|
+
|
|
92
|
+
## Properties
|
|
93
|
+
|
|
94
|
+
| Property | Attribute | Type | Default | Description |
|
|
95
|
+
| --- | --- | --- | --- | --- |
|
|
96
|
+
| low | low | `number` | `0` | The current lower bound of the selected range. Must be greater than or equal to `min` and less than or equal to `high`. |
|
|
97
|
+
| high | high | `number` | `100` | The current upper bound of the selected range. Must be less than or equal to `max` and greater than or equal to `low`. |
|
|
98
|
+
| min | min | `number` | `0` | The minimum allowed value for the slider. Default is 0. |
|
|
99
|
+
| max | max | `number` | `100` | The maximum allowed value for the slider. Default is 100. |
|
|
100
|
+
| step | step | `number \| undefined` | | The increment for value changes. If not set, defaults to 1. |
|
|
101
|
+
| stepClick | stepClick | `number` | `10` | Step size for keyboard or button-based changes. Default is 10. |
|
|
102
|
+
| variant | variant | `ObcSliderDoubleVariant` | | Visual and interaction style: `normal` (default) is the standard appearance, `enhanced` has a larger track and thumb, and `no-input` is read-only. |
|
|
103
|
+
| allowSeeking | allowSeeking | `boolean` | `false` | If true, clicking the slider track animates the thumb to the clicked position. Enables seeking mode for rapid value changes. |
|
|
104
|
+
| disabled | disabled | `boolean` | `false` | |
|
|
105
|
+
| seekingSpeed | seekingSpeed | | | Animation speed for seeking, in inverse seconds. The value will go from min to max in 1 / seekingSpeed seconds. Default is 1/3 (i.e., 3 seconds for full range). |
|
|
106
|
+
| labelUnit | labelUnit | `string` | `''` | Unit label appended to value labels (e.g., "%", "kn"). |
|
|
107
|
+
| labelDecimals | labelDecimals | `number` | `0` | Number of decimal places to display in value labels. |
|
|
108
|
+
| labelWidth | labelWidth | `string` | `'60px'` | CSS width for value labels (e.g., "5ch", "60px"). |
|
|
109
|
+
| showLeftReadout | | `boolean` | `true` | Whether to show the left (low) readout label. When false, the left readout is hidden entirely. When true, the readout renders the formatted `low` value or the content slotted into `left-readout`. Default is true. Set via JavaScript property (no HTML attribute). |
|
|
110
|
+
| showRightReadout | | `boolean` | `true` | Whether to show the right (high) readout label. When false, the right readout is hidden entirely. When true, the readout renders the formatted `high` value or the content slotted into `right-readout`. Default is true. Set via JavaScript property (no HTML attribute). |
|
|
111
|
+
| hugContainer | hugcontainer | `boolean` | `false` | Removes spacing between the slider and its container edges so the slider sits flush. Reflected to the `hugcontainer` HTML attribute. |
|
|
112
|
+
|
|
113
|
+
## Events
|
|
114
|
+
|
|
115
|
+
| Event | Type | Description |
|
|
116
|
+
| --- | --- | --- |
|
|
117
|
+
| value | `ObcSliderDoubleValueEvent` | Fires when the value is changed |
|
|
118
|
+
| change | `ObcSliderDoubleChangeEvent` | Fires when user interaction completes |
|
|
119
|
+
|
|
120
|
+
## Slots
|
|
121
|
+
|
|
122
|
+
| Slot | Description |
|
|
123
|
+
| --- | --- |
|
|
124
|
+
| left-readout | Custom content for the left (low) readout label (rendered when `showLeftReadout` is true) |
|
|
125
|
+
| right-readout | Custom content for the right (high) readout label (rendered when `showRightReadout` is true) |
|
|
126
|
+
|
|
127
|
+
## Stories
|
|
128
|
+
|
|
129
|
+
- [Primary](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider-double--primary)
|
|
130
|
+
- [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider-double--enhanced)
|
|
131
|
+
- [Hug Container](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider-double--hug-container)
|
|
132
|
+
- [No Value](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider-double--no-value)
|
|
133
|
+
- [Step](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider-double--step)
|
|
134
|
+
- [Allow Seeking](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider-double--allow-seeking)
|
|
135
|
+
- [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider-double--disabled)
|
|
136
|
+
- [No Readouts](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider-double--no-readouts)
|
|
137
|
+
- [Slotted Readouts](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider-double--slotted-readouts)
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# `<obc-slider>`
|
|
2
|
+
|
|
3
|
+
A horizontal slider component for selecting a numeric value within a defined range.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-input-controls-slider--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/slider/slider.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-slider>` – A horizontal slider component for selecting a numeric value within a defined range.
|
|
8
|
+
|
|
9
|
+
Provides a visual and interactive way for users to adjust values such as volume, brightness, or other continuous settings. The slider supports optional step increments, left/right icon buttons for quick adjustments, and can be configured for read-only display or enhanced visual prominence.
|
|
10
|
+
|
|
11
|
+
Appears as a horizontal track with a draggable thumb, and may include optional icon buttons on either side for increment/decrement actions. The component can be used for both direct manipulation (dragging the thumb) and discrete changes (via buttons).
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
- **Variants:**
|
|
17
|
+
- **Normal:** Standard slider with a slim track and thumb.
|
|
18
|
+
- **Enhanced:** Larger track and thumb for improved accessibility and visual emphasis.
|
|
19
|
+
- **No Input:** Read-only mode; disables all user interaction and presents the current value visually.
|
|
20
|
+
- **Value Range:** Supports configurable `min`, `max`, and `step` properties for precise control over allowed values.
|
|
21
|
+
- **Step Buttons:** Optional left and right icon buttons allow users to increment or decrement the value by a defined step (`stepClick`).
|
|
22
|
+
- **Icons:** Custom icons can be slotted into the left and right button positions for contextual meaning (e.g., `<obi-arrow></obi-arrow>, <obi-placeholder></obi-placeholder>`).
|
|
23
|
+
- **Seeking:** When `allowSeeking` is enabled, users can click or drag along the track to set the value, with smooth animated transitions based on `seekingSpeed`.
|
|
24
|
+
- **Hug Container:** The `hugcontainer` attribute removes spacing between the slider and its icon buttons, allowing for a compact layout.
|
|
25
|
+
- **Accessibility:** Underlying input is a native `<input type="range">` for keyboard and screen reader support.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Usage Guidelines
|
|
30
|
+
Use `obc-slider` when you need users to select or adjust a value within a continuous or stepped range, such as for volume, brightness, or similar controls. The enhanced variant is suitable for scenarios where the slider is a primary control or needs to be more visually prominent. The no-input variant is ideal for displaying a value without allowing user changes.
|
|
31
|
+
|
|
32
|
+
- For discrete, step-based changes, provide `step` and/or `stepClick` values.
|
|
33
|
+
- Use left/right icons to clarify the meaning of the adjustment (e.g., low/high, decrease/increase).
|
|
34
|
+
- Enable `allowSeeking` for scenarios where users should be able to jump to a specific value by clicking the track.
|
|
35
|
+
- Use `hugcontainer` when the slider should visually connect tightly with its icon buttons.
|
|
36
|
+
|
|
37
|
+
**TODO(designer):** Clarify recommended use cases for each variant and when to use `allowSeeking` vs. standard interaction.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Slots
|
|
42
|
+
|
|
43
|
+
| Slot Name | Renders When... | Purpose |
|
|
44
|
+
|-------------|---------------------------|--------------------------------------------|
|
|
45
|
+
| icon-left | `hasLeftIcon` is true | Icon/button for decrement action |
|
|
46
|
+
| icon-right | `hasRightIcon` is true | Icon/button for increment action |
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Properties and Attributes
|
|
51
|
+
- `value` (number): Current slider value. Updates as the user interacts.
|
|
52
|
+
- `min` (number): Minimum allowed value (default: 0).
|
|
53
|
+
- `max` (number): Maximum allowed value (default: 100).
|
|
54
|
+
- `step` (number): Step granularity for value changes (optional).
|
|
55
|
+
- `stepClick` (number): Amount to increment/decrement when clicking icon buttons (default: 10).
|
|
56
|
+
- `variant` (ObcSliderVariant): Visual/interaction style (`normal`, `enhanced`, `no-input`). Default: `normal`.
|
|
57
|
+
- `hasLeftIcon`/`hasRightIcon` (boolean): Show icon button on left/right.
|
|
58
|
+
- `allowSeeking` (boolean): Enables animated seeking to clicked value on the track.
|
|
59
|
+
- `seekingSpeed` (number): Animation speed for seeking (default: 1/3; higher is faster).
|
|
60
|
+
- `hugcontainer` (attribute): Removes spacing between slider and icon buttons for a compact layout.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Events
|
|
65
|
+
- `value` – Fired continuously when the slider value changes during user interaction or programmatically. The event detail contains the new value as a number.
|
|
66
|
+
- `change` – Fired only after user interaction completes (mouse/touch release or button click). The event detail contains the new value as a number.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Best Practices & Constraints
|
|
71
|
+
- Only use `no-input` variant for read-only display; interactive controls should use `normal` or `enhanced`.
|
|
72
|
+
- For accessibility, ensure the slider has a visible label or context.
|
|
73
|
+
- Use step values that make sense for the range (e.g., avoid step=0.01 for a 0–10 range unless fine granularity is needed).
|
|
74
|
+
- When using icon buttons, provide icons that clearly indicate their function.
|
|
75
|
+
- The slider is horizontal only; for vertical sliders, use a different component.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Example
|
|
80
|
+
|
|
81
|
+
```html
|
|
82
|
+
<obc-slider
|
|
83
|
+
value="40"
|
|
84
|
+
min="0"
|
|
85
|
+
max="100"
|
|
86
|
+
step="10"
|
|
87
|
+
haslefticon
|
|
88
|
+
hasrighticon
|
|
89
|
+
variant="enhanced"
|
|
90
|
+
>
|
|
91
|
+
<obi-arrow slot="icon-left"></obi-arrow>
|
|
92
|
+
<obi-arrow slot="icon-right"></obi-arrow>
|
|
93
|
+
</obc-slider>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
In this example, the slider allows selection from 0 to 100 in steps of 10, with left/right arrow icons for quick adjustments.
|
|
97
|
+
|
|
98
|
+
## Properties
|
|
99
|
+
|
|
100
|
+
| Property | Attribute | Type | Default | Description |
|
|
101
|
+
| --- | --- | --- | --- | --- |
|
|
102
|
+
| value | value | `number` | `50` | The current value of the slider. Updates as the user drags the thumb, clicks the track (if `allowSeeking`), or uses the increment/decrement buttons. |
|
|
103
|
+
| min | min | `number` | `0` | The minimum allowed value for the slider. Default is 0. |
|
|
104
|
+
| max | max | `number` | `100` | The maximum allowed value for the slider. Default is 100. |
|
|
105
|
+
| step | step | `number \| undefined` | | The step granularity for slider value changes. If set, the slider will snap to multiples of this value between min and max. Optional; if not set, the slider is continuous. |
|
|
106
|
+
| stepClick | stepClick | `number` | `10` | The amount to increment or decrement the value when clicking the left/right icon buttons. Default is 10. Available when `hasLeftIcon==true \|\| hasRightIcon==true`. |
|
|
107
|
+
| variant | variant | `ObcSliderVariant` | | Visual and interaction style: `normal` (default) is the standard appearance, `enhanced` has a larger track and thumb for emphasis, and `no-input` is read-only. |
|
|
108
|
+
| hasLeftIcon | hasLeftIcon | `boolean` | `false` | Whether to display a left icon button for decrementing the value. When true, the `icon-left` slot is rendered as a button. |
|
|
109
|
+
| hasRightIcon | hasRightIcon | `boolean` | `false` | Whether to display a right icon button for incrementing the value. When true, the `icon-right` slot is rendered as a button. |
|
|
110
|
+
| decrementLabel | decrementLabel | `string` | `'Decrease'` | Accessible name of the left step button; the slotted icon carries none. |
|
|
111
|
+
| incrementLabel | incrementLabel | `string` | `'Increase'` | Accessible name of the right step button; the slotted icon carries none. |
|
|
112
|
+
| allowSeeking | allowSeeking | `boolean` | `false` | Moves the value straight to the position clicked or dragged to. Left off, the value animates there instead, at `seekingSpeed`. Default is false. Available when `variant!=no-input && disabled==false`. |
|
|
113
|
+
| seekingSpeed | seekingSpeed | | | The speed of the smooth animation that moves the value to the clicked position (used when `allowSeeking` is false). Expressed as the inverse of seconds to go from min to max (e.g., 1/3 means 3 seconds for full range). Default is 1/3. Available when `allowSeeking==false && variant!=no-input && disabled==false`. |
|
|
114
|
+
| disabled | disabled | `boolean` | `false` | |
|
|
115
|
+
|
|
116
|
+
## Events
|
|
117
|
+
|
|
118
|
+
| Event | Type | Description |
|
|
119
|
+
| --- | --- | --- |
|
|
120
|
+
| value | `ObcSliderValueEvent` | Fired when the value is changed |
|
|
121
|
+
| change | `ObcSliderChangeEvent` | Fired when user interaction completes; dispatched on release even if the value did not change |
|
|
122
|
+
|
|
123
|
+
## Slots
|
|
124
|
+
|
|
125
|
+
| Slot | Description |
|
|
126
|
+
| --- | --- |
|
|
127
|
+
| icon-left | Slot for the left icon button (shown when `hasLeftIcon` is true) |
|
|
128
|
+
| icon-right | Slot for the right icon button (shown when `hasRightIcon` is true) |
|
|
129
|
+
|
|
130
|
+
## Stories
|
|
131
|
+
|
|
132
|
+
- [Primary](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider--primary)
|
|
133
|
+
- [No Icons](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider--no-icons)
|
|
134
|
+
- [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider--enhanced)
|
|
135
|
+
- [Hug Container](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider--hug-container)
|
|
136
|
+
- [No Value](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider--no-value)
|
|
137
|
+
- [Step](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider--step)
|
|
138
|
+
- [Allow Seeking](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider--allow-seeking)
|
|
139
|
+
- [Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-input-controls-slider--disabled)
|
|
140
|
+
|
|
141
|
+
## See also
|
|
142
|
+
|
|
143
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# `<obc-source>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-source--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/source/source.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| alternativeIcon | alternativeIcon | `SourceAlternativeIcon` | | |
|
|
12
|
+
| icon | | `TemplateResult` | | |
|
|
13
|
+
| turnedOn | turnedOn | `boolean` | `false` | Whether the device is on. Selects the on icon and the `On` state row instead of `Off`. Not named `on`, which Svelte binds as an event listener in markup (#1090). |
|
|
14
|
+
| on | on | `boolean \| undefined` | | Alias of `turnedOn` for 1.x markup: setting it sets `turnedOn`. |
|
|
15
|
+
| variant | variant | `SquaredVariant` | | |
|
|
16
|
+
| orientation | orientation | `AutomationButtonOrientation` | | |
|
|
17
|
+
| extraReadouts | | `AutomationButtonReadoutStack[]` | | |
|
|
18
|
+
| showReadoutStack | | `boolean` | `true` | |
|
|
19
|
+
| static | static | `boolean` | `false` | Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. |
|
|
20
|
+
| readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
|
|
21
|
+
| showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
|
|
22
|
+
| showStatusIcon | | `boolean` | `false` | |
|
|
23
|
+
| readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
|
|
24
|
+
| tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
|
|
25
|
+
| positioning | positioning | `AutomationButtonPositioning` | | |
|
|
26
|
+
| activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
|
|
27
|
+
| alert | alert | `boolean` | `false` | |
|
|
28
|
+
| alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
|
|
29
|
+
| alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
|
|
30
|
+
| alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
|
|
31
|
+
| alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
|
|
32
|
+
| showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
33
|
+
| showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
34
|
+
| progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
|
|
35
|
+
| progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
|
|
36
|
+
| progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
|
|
37
|
+
| badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
|
|
38
|
+
| badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
|
|
39
|
+
| badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
|
|
40
|
+
| badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
|
|
41
|
+
| badgeLayout | | `AutomationButtonBadgeLayout \| undefined` | `undefined` | Which badge kind each corner shows, on top of the app-wide layout set with `setAutomationBadgeLayout()`. A corner left out keeps the app-wide badge, `null` leaves it empty, and a badge moved here leaves the corner it came from. |
|
|
42
|
+
| badgeSymbolOverride | | `AutomationBadgeSymbolOverride \| undefined` | `undefined` | Letters that replace badge symbols on this device, per badge property and value, on top of the app-wide ones set with `setAutomationBadgeSymbolOverride()`; for example `{commandLocked: {simulation: 's'}}`. `null` brings the symbol back. |
|
|
43
|
+
| badgeTopRight | | `HTMLElement[]` | | |
|
|
44
|
+
| badgeTopLeft | | `HTMLElement[]` | | |
|
|
45
|
+
| badgeBottomLeft | | `HTMLElement[]` | | |
|
|
46
|
+
| badgeBottomRight | | `HTMLElement[]` | | |
|
|
47
|
+
|
|
48
|
+
## Events
|
|
49
|
+
|
|
50
|
+
None.
|
|
51
|
+
|
|
52
|
+
## Slots
|
|
53
|
+
|
|
54
|
+
None.
|
|
55
|
+
|
|
56
|
+
## Stories
|
|
57
|
+
|
|
58
|
+
- [On](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-source--on)
|
|
59
|
+
- [Off](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-source--off)
|
|
60
|
+
- [Static](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-source--static)
|
|
61
|
+
|
|
62
|
+
## See also
|
|
63
|
+
|
|
64
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|