@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,73 @@
|
|
|
1
|
+
# `<obc-motor>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-motor--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/motor/motor.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| vertical | vertical | `boolean` | `false` | |
|
|
12
|
+
| icon | | `TemplateResult` | | |
|
|
13
|
+
| turnedOn | turnedOn | `boolean` | `false` | Whether the device is running. Selects the running icon and the speed readout instead of the `Off` state. 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
|
+
| speedInPercent | speedInPercent | `number` | `0` | Speed in percent, read only while `speed` is unset. |
|
|
16
|
+
| speed | speed | `number \| undefined` | | |
|
|
17
|
+
| speedUnit | speedUnit | `string` | `'%'` | |
|
|
18
|
+
| speedMaxDigits | speedMaxDigits | `number` | `3` | |
|
|
19
|
+
| labelDirection | labelDirection | `AutomationButtonLabelDirection` | | |
|
|
20
|
+
| variant | variant | `MotorizedVariant` | | |
|
|
21
|
+
| direction | direction | `AutomationButtonDirection` | | Available when `variant in [double, forward, flatForward]`. |
|
|
22
|
+
| extraReadouts | | `AutomationButtonReadoutStack[]` | | |
|
|
23
|
+
| showReadoutStack | | `boolean` | `true` | |
|
|
24
|
+
| 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. |
|
|
25
|
+
| readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
|
|
26
|
+
| showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
|
|
27
|
+
| showStatusIcon | | `boolean` | `false` | |
|
|
28
|
+
| readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
|
|
29
|
+
| tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
|
|
30
|
+
| positioning | positioning | `AutomationButtonPositioning` | | |
|
|
31
|
+
| activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
|
|
32
|
+
| alert | alert | `boolean` | `false` | |
|
|
33
|
+
| alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
|
|
34
|
+
| alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
|
|
35
|
+
| alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
|
|
36
|
+
| alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
|
|
37
|
+
| showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
38
|
+
| showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
39
|
+
| progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
|
|
40
|
+
| progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
|
|
41
|
+
| progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
|
|
42
|
+
| badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
|
|
43
|
+
| badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
|
|
44
|
+
| badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
|
|
45
|
+
| badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
|
|
46
|
+
| 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. |
|
|
47
|
+
| 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. |
|
|
48
|
+
| badgeTopRight | | `HTMLElement[]` | | |
|
|
49
|
+
| badgeTopLeft | | `HTMLElement[]` | | |
|
|
50
|
+
| badgeBottomLeft | | `HTMLElement[]` | | |
|
|
51
|
+
| badgeBottomRight | | `HTMLElement[]` | | |
|
|
52
|
+
|
|
53
|
+
## Events
|
|
54
|
+
|
|
55
|
+
None.
|
|
56
|
+
|
|
57
|
+
## Slots
|
|
58
|
+
|
|
59
|
+
None.
|
|
60
|
+
|
|
61
|
+
## Stories
|
|
62
|
+
|
|
63
|
+
- [On Vertical](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-motor--on-vertical)
|
|
64
|
+
- [On Horizontal](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-motor--on-horizontal)
|
|
65
|
+
- [Off Vertical](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-motor--off-vertical)
|
|
66
|
+
- [Off Horizontal](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-motor--off-horizontal)
|
|
67
|
+
- [On Vertical Rpm](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-motor--on-vertical-rpm)
|
|
68
|
+
- [Id Only](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-motor--id-only)
|
|
69
|
+
- [Variant Double Size Large](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-motor--variant-double-size-large)
|
|
70
|
+
|
|
71
|
+
## See also
|
|
72
|
+
|
|
73
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# `<obc-navigation-item-group>`
|
|
2
|
+
|
|
3
|
+
A collapsible navigation group component for organizing related navigation items under a single expandable label.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/navigation-item-group/navigation-item-group.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-navigation-item-group>` – A collapsible navigation group component for organizing related navigation items under a single expandable label.
|
|
8
|
+
|
|
9
|
+
Appears as a navigation item that, when clicked, reveals a flyout panel containing additional navigation content. Used to group related links or actions in a navigation menu, improving organization and reducing clutter in complex navigation structures.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
- **Expandable Group:** Clicking the group label toggles a flyout panel containing child navigation items or custom content.
|
|
13
|
+
- **Custom Icon Support:** Accepts a custom icon via the `icon` slot, displayed next to the group label.
|
|
14
|
+
- **Variants:** Supports multiple visual styles via the `variant` property (see `ObcNavigationMenuVariant`), such as full or compact menu modes.
|
|
15
|
+
- **Checked State:** The group can be marked as checked/selected for highlighting the current section.
|
|
16
|
+
- **Hug Mode:** When `hug` is true, the flyout panel appears anchored closely to the group label, with compact styling.
|
|
17
|
+
- **Flyout Panel:** The flyout is positioned adjacent to the group label and adapts its layout based on the `hug` and `variant` settings.
|
|
18
|
+
- **Keyboard and Mouse Interaction:** The group can be opened or closed by clicking the label; emits an `open` event when expanded.
|
|
19
|
+
|
|
20
|
+
## Usage Guidelines
|
|
21
|
+
Use `obc-navigation-item-group` to organize related navigation links or actions under a single expandable section within a navigation menu. Ideal for menus with many items or hierarchical structures, where grouping improves clarity and reduces visual noise. Place `obc-navigation-item` or other navigation-related components inside the group to form the flyout content.
|
|
22
|
+
|
|
23
|
+
- Use the `icon` slot to visually distinguish the group.
|
|
24
|
+
- Use the `checked` property to indicate the currently active or selected group.
|
|
25
|
+
- Use the `hug` property for context menus or compact flyouts that should appear tightly anchored to the group label.
|
|
26
|
+
- Avoid nesting too many groups for better usability.
|
|
27
|
+
|
|
28
|
+
**TODO(designer):** Clarify if there are recommended maximum numbers of items per group, and if keyboard navigation/focus management has specific requirements.
|
|
29
|
+
|
|
30
|
+
## Slots
|
|
31
|
+
| Slot Name | Renders When... | Purpose |
|
|
32
|
+
|-----------|-----------------|---------|
|
|
33
|
+
| icon | Always (optional) | Custom icon displayed next to the group label. |
|
|
34
|
+
| (default) | Always | Content of the flyout panel (typically navigation items or custom content). |
|
|
35
|
+
|
|
36
|
+
## Events
|
|
37
|
+
- `open` – Fired when the group is expanded and the flyout panel is shown.
|
|
38
|
+
|
|
39
|
+
## Best Practices and Constraints
|
|
40
|
+
- Only one navigation group should be open at a time in a given navigation menu for clarity.
|
|
41
|
+
- Place only navigation-related items in the flyout for consistency.
|
|
42
|
+
- For accessibility, ensure the group label clearly describes the grouped content.
|
|
43
|
+
|
|
44
|
+
## Example:
|
|
45
|
+
```html
|
|
46
|
+
<obc-navigation-item-group label="Settings">
|
|
47
|
+
<obi-settings slot="icon"></obi-settings>
|
|
48
|
+
<obc-navigation-item label="Profile"></obc-navigation-item>
|
|
49
|
+
<obc-navigation-item label="Security"></obc-navigation-item>
|
|
50
|
+
</obc-navigation-item-group>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Properties
|
|
54
|
+
|
|
55
|
+
| Property | Attribute | Type | Default | Description |
|
|
56
|
+
| --- | --- | --- | --- | --- |
|
|
57
|
+
| label | label | `string` | `'Label'` | The label text displayed for the navigation group. |
|
|
58
|
+
| href | href | `string \| undefined` | | Optional URL to navigate to when the group label is clicked. If set, clicking the group label will navigate to this URL. |
|
|
59
|
+
| checked | checked | `boolean` | `false` | Whether the group is currently checked/selected. Use to highlight the group as active. |
|
|
60
|
+
| variant | variant | `ObcNavigationMenuVariant` | | Visual variant of the navigation group. Accepts values from `ObcNavigationMenuVariant` (e.g., 'full', 'compact'). Controls the styling and layout of the group and its flyout. |
|
|
61
|
+
| hug | hug | `boolean` | `false` | If true, the flyout panel appears tightly anchored to the group label with compact styling. |
|
|
62
|
+
| hasIcon | hasIcon | `boolean` | `false` | |
|
|
63
|
+
| treeMode | treeMode | `boolean` | `false` | Set by `obc-navigation-menu` in its Tree variant — renders the group as a tree row. |
|
|
64
|
+
| treeBranches | treeBranches | `TreeBranchType[]` | `[]` | Indentation columns for tree mode, assigned by `obc-navigation-menu`. |
|
|
65
|
+
| terminalType | terminalType | `string` | | Terminal type for the group header in the Tree variant — one of `regular` (default), `aggregated-header`, or `group-header`. No effect in flat variants. |
|
|
66
|
+
| alerts | alerts | `TreeNavigationItemAlerts \| undefined` | | Per-severity alert counts shown as trailing badges on the group header, in the Tree variant only and only while the group is collapsed — an expanded group shows its rows' own badges instead. A header usually sets `combine` so it totals the rows beneath it. |
|
|
67
|
+
| defaultOpen | defaultOpen | `boolean` | `false` | Whether the group starts expanded. Useful for trees that open by default. |
|
|
68
|
+
| focusable | | `boolean` | `true` | Whether the group header is in the tab order. A menu that owns a roving tabindex, such as `obc-context-menu-input`, manages this (one item focusable at a time); a standalone group stays tabbable. |
|
|
69
|
+
| expanded | | `boolean` | | Whether the group is currently open (its children are disclosed). |
|
|
70
|
+
|
|
71
|
+
## Events
|
|
72
|
+
|
|
73
|
+
| Event | Type | Description |
|
|
74
|
+
| --- | --- | --- |
|
|
75
|
+
| open | `CustomEvent<void>` | When the group is expanded and the flyout is shown. |
|
|
76
|
+
|
|
77
|
+
## Slots
|
|
78
|
+
|
|
79
|
+
| Slot | Description |
|
|
80
|
+
| --- | --- |
|
|
81
|
+
| icon | Custom icon displayed next to the group label. |
|
|
82
|
+
| (default) | Default slot for flyout content (typically navigation items). |
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# `<obc-navigation-item>`
|
|
2
|
+
|
|
3
|
+
A navigation menu item component for use in navigation bars, side menus, or toolbars.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-menus-and-navigation-navigation-item--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/navigation-item/navigation-item.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-navigation-item>` – A navigation menu item component for use in navigation bars, side menus, or toolbars.
|
|
8
|
+
|
|
9
|
+
Displays a selectable navigation option, optionally with an icon and support for different visual variants. Can be used as a link or as a button within navigation menus, supporting both single items and grouped menu structures.
|
|
10
|
+
|
|
11
|
+
Appears as a horizontal or vertical item, with optional icon, label, and flyout indicator for nested or grouped navigation. Designed for use in navigation menus, toolbars, or any UI requiring a consistent, interactive navigation element.
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
- **Variants:**
|
|
15
|
+
- `Full` (default): Standard navigation item with icon (optional), label, and optional flyout indicator for groups.
|
|
16
|
+
- `IconOnly`: Displays only the icon, suitable for compact or icon-based navigation menus.
|
|
17
|
+
- `IconOnlyLarge`: Larger icon-only variant for prominent navigation actions.
|
|
18
|
+
- `Compact`: Smaller, vertically-stacked layout with icon and label, optimized for space-constrained menus.
|
|
19
|
+
- **Icon Support:**
|
|
20
|
+
- Leading icon can be provided via the `icon` slot.
|
|
21
|
+
- Icon presence is automatically detected and styled.
|
|
22
|
+
- **Label:**
|
|
23
|
+
- Text label shown unless in icon-only variants.
|
|
24
|
+
- **Checked State:**
|
|
25
|
+
- Indicates the currently selected or active navigation item.
|
|
26
|
+
- **Group Mode:**
|
|
27
|
+
- When `group` is true, displays a flyout indicator (arrow) and supports group selection highlighting.
|
|
28
|
+
- **Link Support:**
|
|
29
|
+
- Can be rendered as a link via the `href` property, or as a button if `href` is not set.
|
|
30
|
+
- **Accessibility:**
|
|
31
|
+
- Uses semantic anchor element for navigation.
|
|
32
|
+
|
|
33
|
+
## Usage Guidelines
|
|
34
|
+
Use `obc-navigation-item` for interactive navigation options within menus, toolbars, or navigation drawers.
|
|
35
|
+
- Ideal for main or secondary navigation, especially where visual consistency and flexible layout are needed.
|
|
36
|
+
- Use the `Full` variant for standard navigation lists with both icon and label.
|
|
37
|
+
- Use `IconOnly` or `IconOnlyLarge` for toolbars or sidebars where space is limited or icon-only navigation is preferred.
|
|
38
|
+
- Use `Compact` for dense menus or when vertical stacking of icon and label is desired.
|
|
39
|
+
- Set `checked` to highlight the currently active or selected item.
|
|
40
|
+
- Use `group` and `groupSelected` to indicate grouped navigation and selection within groups.
|
|
41
|
+
- Provide an icon via the `icon` slot for visual context (e.g., `<obi-placeholder slot="icon"></obi-placeholder>).
|
|
42
|
+
- Use `href` to make the item a link; omit for button-like behavior.
|
|
43
|
+
- Use `::part(label)` CSS pseudo-element to style the label.
|
|
44
|
+
|
|
45
|
+
**TODO(designer):** Clarify if there are recommended icon choices or label length constraints for each variant.
|
|
46
|
+
|
|
47
|
+
## Slots
|
|
48
|
+
|
|
49
|
+
| Slot Name | Renders When... | Purpose |
|
|
50
|
+
|-----------|-----------------|---------|
|
|
51
|
+
| icon | Always (optional) | Leading icon for the navigation item. Place an icon such as `<obi-placeholder slot="icon"></obi-placeholder>`. |
|
|
52
|
+
|
|
53
|
+
## Properties and Attributes
|
|
54
|
+
- `label` (string): The text label for the navigation item. Hidden in icon-only variants.
|
|
55
|
+
- `href` (string, optional): If set, the item is rendered as a link. If undefined, acts as a button.
|
|
56
|
+
- `checked` (boolean): Marks the item as selected/active.
|
|
57
|
+
- `variant` (string): Controls the visual style. One of `Full`, `IconOnly`, `IconOnlyLarge`, or `Compact`.
|
|
58
|
+
- `group` (boolean): Enables group mode, showing a flyout indicator and supporting group selection.
|
|
59
|
+
- `groupSelected` (boolean): Highlights the item as selected within a group.
|
|
60
|
+
- `hasIcon` (boolean): Whether the item has a leading icon.
|
|
61
|
+
|
|
62
|
+
## Events
|
|
63
|
+
- `click` – Fired when the navigation item is clicked (either as a link or button).
|
|
64
|
+
|
|
65
|
+
## Best Practices and Constraints
|
|
66
|
+
- Only use one navigation item as `checked` at a time within a menu to indicate the current location.
|
|
67
|
+
- For icon-only variants, ensure the icon clearly represents the navigation action.
|
|
68
|
+
- Use `group` for items that open submenus or represent grouped navigation.
|
|
69
|
+
- Avoid long labels in compact or icon-only variants to maintain layout integrity.
|
|
70
|
+
- For accessibility, provide meaningful labels and icons.
|
|
71
|
+
|
|
72
|
+
## Example:
|
|
73
|
+
```
|
|
74
|
+
<obc-navigation-item
|
|
75
|
+
label="Dashboard"
|
|
76
|
+
href="/dashboard"
|
|
77
|
+
checked
|
|
78
|
+
variant="Full"
|
|
79
|
+
>
|
|
80
|
+
<obi-placeholder slot="icon"></obi-placeholder>
|
|
81
|
+
</obc-navigation-item>
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Keyboard
|
|
85
|
+
One item of the [APG Menu](https://www.w3.org/WAI/ARIA/apg/patterns/menu/)
|
|
86
|
+
pattern when `itemRole`, or the host's `role`, makes it a `menuitem` or a
|
|
87
|
+
`menuitemradio` with `aria-checked` mirroring `checked`: `Enter` and
|
|
88
|
+
`Space` activate it, and the arrow keys, `Home` and `End` belong to the
|
|
89
|
+
menu that owns it. Without a role it is a plain button or link.
|
|
90
|
+
|
|
91
|
+
Left out: nothing the item itself owns; the menu lists what it leaves out.
|
|
92
|
+
|
|
93
|
+
## Properties
|
|
94
|
+
|
|
95
|
+
| Property | Attribute | Type | Default | Description |
|
|
96
|
+
| --- | --- | --- | --- | --- |
|
|
97
|
+
| label | label | `string` | `'Label'` | The text label displayed for the navigation item. Available when `variant in [Full, Compact]`. |
|
|
98
|
+
| focusable | | `boolean` | `true` | Whether the item is in the tab order. A menu that owns a roving tabindex, such as `obc-context-menu-input`, manages this (one item focusable at a time); a standalone item stays tabbable. Hidden in icon-only variants. |
|
|
99
|
+
| itemRole | | `NavigationItemRole \| undefined` | | Role of the item's control inside a composite widget, set by the parent: `menuitem`, or `menuitemradio` with `aria-checked` mirroring `checked`. The role belongs on the control, not on the host: a role on the host wraps a focusable control in another one. |
|
|
100
|
+
| href | href | `string \| undefined` | | The URL to navigate to when the item is clicked. If set, the item is rendered as a link (`<a href="..." />`). If undefined, acts as a button. |
|
|
101
|
+
| checked | checked | `boolean` | `false` | Whether the navigation item is currently selected/active. Use to indicate the current location or selection. |
|
|
102
|
+
| variant | variant | | | Visual variant of the navigation item. One of `Full` (default), `IconOnly`, `IconOnlyLarge`, or `Compact`. Controls layout and visibility of icon/label. |
|
|
103
|
+
| group | group | `boolean` | `false` | Enables group mode for the item, displaying a flyout indicator and supporting group selection. Use for items that open submenus or represent grouped navigation. |
|
|
104
|
+
| groupSelected | groupSelected | `boolean` | `false` | Highlights the item as selected within a group. Only relevant when `group` is true. Available when `group==true`. |
|
|
105
|
+
| hasIcon | hasIcon | `boolean` | `false` | Whether the item has a leading icon. |
|
|
106
|
+
| hasTrailingIcon | hasTrailingIcon | `boolean` | `false` | Available when `group==false \|\| variant==IconOnly`. |
|
|
107
|
+
| treeMode | treeMode | `boolean` | `false` | Set by `obc-navigation-menu` in its Tree variant — renders the row as a tree item. |
|
|
108
|
+
| treeBranches | treeBranches | `TreeBranchType[]` | `[]` | Indentation columns for tree mode, assigned by `obc-navigation-menu`. |
|
|
109
|
+
| terminalType | terminalType | `string` | | Terminal type for the row in the Tree variant — one of `regular` (default), `aggregated-header`, or `group-header`. Has no effect in the flat variants. |
|
|
110
|
+
| alerts | alerts | `TreeNavigationItemAlerts \| undefined` | | Per-severity alert counts shown as trailing badges, in the Tree variant only. Forwarded to the underlying `obc-tree-navigation-item`. |
|
|
111
|
+
|
|
112
|
+
## Events
|
|
113
|
+
|
|
114
|
+
| Event | Type | Description |
|
|
115
|
+
| --- | --- | --- |
|
|
116
|
+
| click | | Fired when the navigation item is clicked, either as a link or as a button. |
|
|
117
|
+
|
|
118
|
+
## Slots
|
|
119
|
+
|
|
120
|
+
| Slot | Description |
|
|
121
|
+
| --- | --- |
|
|
122
|
+
| icon | Leading icon slot (optional, shown if provided). Set `hasIcon` to `true` to show the icon. |
|
|
123
|
+
| trailing-icon | Trailing icon slot (optional, shown if provided). Set `hasTrailingIcon` to `true` to show. |
|
|
124
|
+
|
|
125
|
+
## Stories
|
|
126
|
+
|
|
127
|
+
- [Primary](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-navigation-item--primary)
|
|
128
|
+
- [Checked](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-navigation-item--checked)
|
|
129
|
+
- [Icon Only](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-navigation-item--icon-only)
|
|
130
|
+
- [Icon Only Large](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-navigation-item--icon-only-large)
|
|
131
|
+
- [Compact](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-navigation-item--compact)
|
|
132
|
+
- [Group](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-navigation-item--group)
|
|
133
|
+
- [Group Icon Only Large](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-navigation-item--group-icon-only-large)
|
|
134
|
+
- [Group Compact](https://openbridge-next-storybook.web.app/?path=/story/ui-components-menus-and-navigation-navigation-item--group-compact)
|
|
135
|
+
|
|
136
|
+
## See also
|
|
137
|
+
|
|
138
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# `<obc-navigation-menu>`
|
|
2
|
+
|
|
3
|
+
A flexible, slot-based navigation menu component for organizing primary and secondary navigation items.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-navigation-menu--full) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/navigation-menu/navigation-menu.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-navigation-menu>` – A flexible, slot-based navigation menu component for organizing primary and secondary navigation items.
|
|
8
|
+
|
|
9
|
+
This component provides a vertical navigation structure supporting groups, flyouts, and footer sections. It adapts to various layouts and device sizes via its `variant` and `smallScreen` properties. Items and groups are provided via slots, allowing for icons, labels, and nested navigation hierarchies.
|
|
10
|
+
|
|
11
|
+
Appears as a sidebar or persistent navigation panel, supporting both icon-only and full-label modes. Designed for use as the main navigation in applications, dashboards, or any interface requiring structured navigation.
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- **Variants:**
|
|
16
|
+
- **Full:** Displays both icons and labels for all navigation items (default).
|
|
17
|
+
- **IconOnly:** Shows only icons for a compact appearance. *Should only be used when no navigation items have sub-items or flyouts.*
|
|
18
|
+
- **IconOnlyLarge:** Icon-only mode that supports flyouts/submenus. Use when navigation contains groups or nested items.
|
|
19
|
+
- **Compact:** Reduces padding and overall width for a space-saving layout.
|
|
20
|
+
- **Tree:** Renders the same `obc-navigation-item` / `obc-navigation-item-group`
|
|
21
|
+
markup as a hierarchical tree. Groups expand inline (instead of as flyouts),
|
|
22
|
+
rows are indented by depth, multiple branches can stay open at once, and the
|
|
23
|
+
tree-row presentation (alert badges, terminal marker) is available via the
|
|
24
|
+
items' `alerts`/`terminalType` properties.
|
|
25
|
+
- **Responsive Layout:**
|
|
26
|
+
- `smallScreen` property adapts the footer and logo layout for smaller viewports.
|
|
27
|
+
- **Slot-based Content:**
|
|
28
|
+
- `main` slot for primary navigation items and groups.
|
|
29
|
+
- `footer` slot for secondary actions or links.
|
|
30
|
+
- `logo` slot for branding or logo placement (position adapts based on variant and screen size).
|
|
31
|
+
- **Nested Navigation:**
|
|
32
|
+
- Supports nested groups and flyouts via `<obc-navigation-item-group>`.
|
|
33
|
+
- **Automatic Variant Propagation:**
|
|
34
|
+
- Child items and groups automatically receive the correct variant for consistent appearance.
|
|
35
|
+
- **Dynamic Content Handling:**
|
|
36
|
+
- Reacts to dynamic addition/removal of items and groups, updating layout and variants as needed.
|
|
37
|
+
- **Interaction:**
|
|
38
|
+
- Clicking a navigation item closes all open groups/flyouts for streamlined navigation.
|
|
39
|
+
|
|
40
|
+
## Usage Guidelines
|
|
41
|
+
|
|
42
|
+
Use `<obc-navigation-menu>` as the main navigation container in your application layout. Place navigation items and groups in the `main` slot for primary navigation, and use the `footer` slot for secondary actions (such as settings or help). The `logo` slot is intended for branding and is positioned according to the selected variant and screen size.
|
|
43
|
+
|
|
44
|
+
- Use the `Full` variant for standard navigation with both icons and labels.
|
|
45
|
+
- Use `IconOnly` only when there are no nested groups or flyouts; otherwise, use `IconOnlyLarge` for icon-only navigation with flyout support.
|
|
46
|
+
- The `Compact` variant is suitable for layouts with limited space or when a minimal navigation appearance is desired.
|
|
47
|
+
- Use the `Tree` variant for hierarchical navigation (file trees, nested
|
|
48
|
+
sections). The existing item/group markup is reused unchanged — only the
|
|
49
|
+
`variant` changes. Footer and logo slots remain flat. Mark a group with
|
|
50
|
+
`defaultOpen` to have it start expanded.
|
|
51
|
+
- Set `smallScreen` to `true` to optimize the layout for smaller devices or responsive breakpoints.
|
|
52
|
+
|
|
53
|
+
**TODO(designer):** Provide additional guidance on when to use each variant and recommended slot content for best usability.
|
|
54
|
+
|
|
55
|
+
## Slots
|
|
56
|
+
|
|
57
|
+
| Slot Name | Renders When... | Purpose |
|
|
58
|
+
|-----------|----------------|---------|
|
|
59
|
+
| main | Always | Primary navigation items and groups. |
|
|
60
|
+
| footer | Always | Secondary navigation items (e.g., settings, help). |
|
|
61
|
+
| logo | Always | Branding/logo area (position varies by variant and screen size). |
|
|
62
|
+
|
|
63
|
+
Place `<obc-navigation-item>`, `<obc-navigation-item-group>`, or other suitable elements in these slots. For icons, use `<obi-placeholder>`, `<obi-applications>`, or other OpenBridge icon components in the `icon` slot of each navigation item.
|
|
64
|
+
|
|
65
|
+
## Properties
|
|
66
|
+
|
|
67
|
+
- `variant` (`ObcNavigationMenuVariant`): Controls the visual style and layout of the menu. Default is `Full`.
|
|
68
|
+
- `smallScreen` (`boolean`): When `true`, adapts the layout for small screens (e.g., moves logo into the footer area).
|
|
69
|
+
|
|
70
|
+
## Best Practices and Constraints
|
|
71
|
+
|
|
72
|
+
- Only use the `IconOnly` variant when there are no navigation items with sub-items or flyouts. Use `IconOnlyLarge` if your navigation includes groups or nested items.
|
|
73
|
+
- Place only navigation-related components in the `main` and `footer` slots for clarity and accessibility.
|
|
74
|
+
- For best accessibility, ensure each navigation item has a clear label and, if using icons, a suitable `aria-label` or accessible name.
|
|
75
|
+
- Avoid placing interactive elements other than navigation items/groups in the `main` or `footer` slots.
|
|
76
|
+
|
|
77
|
+
## Example
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<obc-navigation-menu variant="full">
|
|
81
|
+
<obc-navigation-item-group slot="main" label="Apps">
|
|
82
|
+
<obi-applications slot="icon"></obi-applications>
|
|
83
|
+
<obc-navigation-item label="Sub item 1" hasIcon href="#">
|
|
84
|
+
<obi-placeholder slot="icon"></obi-placeholder>
|
|
85
|
+
</obc-navigation-item>
|
|
86
|
+
</obc-navigation-item-group>
|
|
87
|
+
<obc-navigation-item slot="footer" label="Settings" hasIcon href="#">
|
|
88
|
+
<obi-settings-iec slot="icon"></obi-settings-iec>
|
|
89
|
+
</obc-navigation-item>
|
|
90
|
+
<obc-vendor-button imageSrc="/companylogo-day.png" alt="logo" slot="logo"></obc-vendor-button>
|
|
91
|
+
</obc-navigation-menu>
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
In this example, the menu displays a group with sub-items in the main navigation, several footer actions, and a logo.
|
|
95
|
+
|
|
96
|
+
## Properties
|
|
97
|
+
|
|
98
|
+
| Property | Attribute | Type | Default | Description |
|
|
99
|
+
| --- | --- | --- | --- | --- |
|
|
100
|
+
| softDismiss | softDismiss | `boolean` | `false` | Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. |
|
|
101
|
+
| open | open | `boolean` | `false` | Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`. Available when `softDismiss==true`. |
|
|
102
|
+
| variant | variant | `ObcNavigationMenuVariant` | | Visual style and layout: `full` (default) shows icons and labels, `icon-only` is the compact icon-only menu and takes no flyouts or groups, `icon-only-large` is the icon-only menu that does, `compact` is the space-saving menu, and `tree` expands groups inline and indents rows by depth. |
|
|
103
|
+
| flyoutVariant | flyoutVariant | `ObcNavigationMenuFlyoutVariant` | | Visual variant of the flyout. One of `Full` (default) or `Compact`. Available when `variant==Full`. |
|
|
104
|
+
| smallScreen | smallScreen | `boolean` | `false` | When `true`, adapts the layout for small screens (e.g., moves logo into the footer area and adjusts item layout). |
|
|
105
|
+
|
|
106
|
+
## Events
|
|
107
|
+
|
|
108
|
+
| Event | Type | Description |
|
|
109
|
+
| --- | --- | --- |
|
|
110
|
+
| close | `CustomEvent<void>` | Fired when the menu closed on its own, from a click outside, `Escape`, or another menu opening. `open` is already `false` by the time it arrives; reset the flag you bind to `open` here, or the next click on the button finds it still set and asks a closed menu to close. |
|
|
111
|
+
|
|
112
|
+
## Slots
|
|
113
|
+
|
|
114
|
+
| Slot | Description |
|
|
115
|
+
| --- | --- |
|
|
116
|
+
| main | Slot for primary navigation items and groups. |
|
|
117
|
+
| footer | Slot for secondary navigation items (e.g., settings, help). |
|
|
118
|
+
| logo | Slot for branding/logo area. |
|
|
119
|
+
|
|
120
|
+
## Stories
|
|
121
|
+
|
|
122
|
+
- [Full](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-navigation-menu--full)
|
|
123
|
+
- [Icon Only](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-navigation-menu--icon-only): Icon only should not be used when there are items with sub items. Use IconOnlyLarge instead.
|
|
124
|
+
- [Icon Only Large](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-navigation-menu--icon-only-large)
|
|
125
|
+
- [Compact](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-navigation-menu--compact)
|
|
126
|
+
- [Compact Flyout](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-navigation-menu--compact-flyout)
|
|
127
|
+
- [Small Screen](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-navigation-menu--small-screen)
|
|
128
|
+
- [Empty Footer](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-navigation-menu--empty-footer)
|
|
129
|
+
- [Test Dynamic Elements](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-navigation-menu--test-dynamic-elements)
|
|
130
|
+
- [Test Dynamic Elements In Span](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-navigation-menu--test-dynamic-elements-in-span)
|
|
131
|
+
- [Tree](https://openbridge-next-storybook.web.app/?path=/story/application-components-menus-navigation-menu--tree)
|
|
132
|
+
|
|
133
|
+
## See also
|
|
134
|
+
|
|
135
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# `<obc-non-return-valve>`
|
|
2
|
+
|
|
3
|
+
valve that lets the medium through in one direction only, for process diagrams.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-non-return-valve--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/non-return-valve/non-return-valve.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-non-return-valve>` – valve that lets the medium through in one
|
|
8
|
+
direction only, for process diagrams.
|
|
9
|
+
|
|
10
|
+
## Features
|
|
11
|
+
|
|
12
|
+
- **Flow direction:** `flowDirection` (`up`, `down`, `left`, `right`) is the
|
|
13
|
+
direction the valve lets through; the symbol turns with it.
|
|
14
|
+
- **Variant:** `regular` draws the round button, `flat` only the symbol.
|
|
15
|
+
- Badges, alert frame, progress and readout placement come from the shared
|
|
16
|
+
automation button base.
|
|
17
|
+
|
|
18
|
+
## Usage Guidelines
|
|
19
|
+
|
|
20
|
+
Use where a pipe must not flow backwards. The valve has no actuator and no
|
|
21
|
+
self-actuation line; for a valve that holds a pressure use
|
|
22
|
+
`obc-pressure-reduction-valve` or `obc-pressure-sustain-valve`.
|
|
23
|
+
|
|
24
|
+
## Properties
|
|
25
|
+
|
|
26
|
+
| Property | Attribute | Type | Default | Description |
|
|
27
|
+
| --- | --- | --- | --- | --- |
|
|
28
|
+
| icon | | `TemplateResult` | | |
|
|
29
|
+
| flowDirection | flowDirection | `Direction` | | The direction the valve lets the medium through; the symbol turns with it. |
|
|
30
|
+
| variant | variant | `DirectionValveVariant` | | `regular` draws the round button, `flat` only the symbol. |
|
|
31
|
+
| extraReadouts | | `AutomationButtonReadoutStack[]` | | The valve acts on its own, so the system has no open or closed state to show. |
|
|
32
|
+
| showReadoutStack | | `boolean` | `true` | |
|
|
33
|
+
| 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. |
|
|
34
|
+
| readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
|
|
35
|
+
| showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
|
|
36
|
+
| showStatusIcon | | `boolean` | `false` | |
|
|
37
|
+
| readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
|
|
38
|
+
| tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
|
|
39
|
+
| positioning | positioning | `AutomationButtonPositioning` | | |
|
|
40
|
+
| activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
|
|
41
|
+
| alert | alert | `boolean` | `false` | |
|
|
42
|
+
| alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
|
|
43
|
+
| alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
|
|
44
|
+
| alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
|
|
45
|
+
| alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
|
|
46
|
+
| showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
47
|
+
| showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
48
|
+
| progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
|
|
49
|
+
| progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
|
|
50
|
+
| progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
|
|
51
|
+
| badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
|
|
52
|
+
| badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
|
|
53
|
+
| badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
|
|
54
|
+
| badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
|
|
55
|
+
| 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. |
|
|
56
|
+
| 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. |
|
|
57
|
+
| badgeTopRight | | `HTMLElement[]` | | |
|
|
58
|
+
| badgeTopLeft | | `HTMLElement[]` | | |
|
|
59
|
+
| badgeBottomLeft | | `HTMLElement[]` | | |
|
|
60
|
+
| badgeBottomRight | | `HTMLElement[]` | | |
|
|
61
|
+
|
|
62
|
+
## Events
|
|
63
|
+
|
|
64
|
+
None.
|
|
65
|
+
|
|
66
|
+
## Slots
|
|
67
|
+
|
|
68
|
+
None.
|
|
69
|
+
|
|
70
|
+
## Stories
|
|
71
|
+
|
|
72
|
+
- [Flow Right](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-non-return-valve--flow-right)
|
|
73
|
+
- [Flow Left](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-non-return-valve--flow-left)
|
|
74
|
+
- [Flow Up](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-non-return-valve--flow-up)
|
|
75
|
+
- [Flow Down](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-non-return-valve--flow-down)
|
|
76
|
+
- [Flat Flow Right](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-non-return-valve--flat-flow-right)
|
|
77
|
+
- [Flat Flow Left](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-non-return-valve--flat-flow-left)
|
|
78
|
+
- [Flat Flow Up](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-non-return-valve--flat-flow-up)
|
|
79
|
+
- [Flat Flow Down](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-non-return-valve--flat-flow-down)
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# `<obc-notification-badge-button>`
|
|
2
|
+
|
|
3
|
+
A compact action button for notification-related commands or acknowledgments.
|
|
4
|
+
|
|
5
|
+
Lifecycle: deprecated. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-buttons-notification-badge-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/notification-badge-button/notification-badge-button.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-notification-badge-button>` – A compact action button for notification-related commands or acknowledgments.
|
|
8
|
+
|
|
9
|
+
This component provides a visually distinct button, often used for quick actions such as acknowledging alerts, muting notifications, or similar context-specific responses. It supports both text and icon content, and can be styled to fit into notification bars, toolbars, or grouped button sets.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
- **Icon or Text Content:** Supports either a text label (e.g., "ACK") or an icon via the default slot.
|
|
13
|
+
- **Visual Variants:**
|
|
14
|
+
- **icon:** Applies icon-specific styling for icon-only buttons.
|
|
15
|
+
- **openRight / openLeft:** Removes the border on the right or left, allowing the button to visually connect with adjacent elements (e.g., for grouped buttons).
|
|
16
|
+
- **cornerLeft / cornerRight:** Rounds the left or right corners for placement at the start or end of a button group.
|
|
17
|
+
- **indent:** Applies an indented background style for emphasis or grouping.
|
|
18
|
+
- **Disabled State:** Prevents interaction and applies a muted visual style.
|
|
19
|
+
- **Customizable Width:** Fixed width (64px) ensures consistency in toolbars or notification rows.
|
|
20
|
+
|
|
21
|
+
## Usage Guidelines
|
|
22
|
+
Use `obc-notification-badge-button` for actions directly related to notifications, alerts, or quick status changes. It is ideal for scenarios where space is limited and a compact, easily recognizable action is needed—such as in notification trays, alert banners, or grouped with other quick-action buttons.
|
|
23
|
+
|
|
24
|
+
- For icon-only actions (like mute), set the `icon` property and supply an icon in the slot.
|
|
25
|
+
- For text actions (like "ACK"), provide the label as slot content.
|
|
26
|
+
- Use `openRight`/`openLeft` and `cornerLeft`/`cornerRight` to visually group multiple buttons or align them to the edges of a container.
|
|
27
|
+
- Use the `disabled` property to indicate unavailable actions.
|
|
28
|
+
|
|
29
|
+
**TODO(designer):** Clarify if there are recommended icon choices or color guidelines for specific notification types, and if there are accessibility requirements (e.g., minimum contrast, focus ring).
|
|
30
|
+
|
|
31
|
+
## Slots
|
|
32
|
+
|
|
33
|
+
| Slot Name | Renders When... | Purpose |
|
|
34
|
+
|-----------|-----------------|---------|
|
|
35
|
+
| (default) | Always | Main content of the button (icon or text label). |
|
|
36
|
+
|
|
37
|
+
## Best Practices
|
|
38
|
+
- Keep button content concise—use a single icon or a short label.
|
|
39
|
+
- When grouping multiple notification buttons, use the `openRight`/`openLeft` and `cornerLeft`/`cornerRight` properties so the borders meet.
|
|
40
|
+
- For accessibility, give icon-only buttons an `aria-label` or accessible text.
|
|
41
|
+
|
|
42
|
+
## Example:
|
|
43
|
+
```
|
|
44
|
+
<obc-notification-badge-button icon>
|
|
45
|
+
<obi-sound-muted-fill></obi-sound-muted-fill>
|
|
46
|
+
</obc-notification-badge-button>
|
|
47
|
+
|
|
48
|
+
<obc-notification-badge-button>ACK</obc-notification-badge-button>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Properties
|
|
52
|
+
|
|
53
|
+
| Property | Attribute | Type | Default | Description |
|
|
54
|
+
| --- | --- | --- | --- | --- |
|
|
55
|
+
| openRight | openRight | `boolean` | `false` | Removes the right border so the button sits flush against the next one. Use when this button is not the last in a horizontal group. |
|
|
56
|
+
| openLeft | openLeft | `boolean` | `false` | Removes the left border so the button sits flush against the previous one. Use when this button is not the first in a horizontal group. |
|
|
57
|
+
| cornerLeft | cornerLeft | `boolean` | `false` | Applies rounded corners to the left side of the button. Use for the first button in a group or when aligning to a container's left edge. |
|
|
58
|
+
| cornerRight | cornerRight | `boolean` | `false` | Applies rounded corners to the right side of the button. Use for the last button in a group or when aligning to a container's right edge. |
|
|
59
|
+
| icon | icon | `boolean` | `false` | Applies icon-specific styling for icon-only buttons. When true, supply an icon in the default slot. |
|
|
60
|
+
| disabled | disabled | `boolean` | `false` | Disables the button, preventing user interaction and applying a muted style. |
|
|
61
|
+
| indent | indent | `boolean` | `false` | Applies an indented background style for emphasis or grouping. Useful for visually separating the button from others or indicating a secondary action. |
|
|
62
|
+
|
|
63
|
+
## Events
|
|
64
|
+
|
|
65
|
+
| Event | Type | Description |
|
|
66
|
+
| --- | --- | --- |
|
|
67
|
+
| click | | Fired when the button is clicked (if not disabled). |
|
|
68
|
+
|
|
69
|
+
## Slots
|
|
70
|
+
|
|
71
|
+
| Slot | Description |
|
|
72
|
+
| --- | --- |
|
|
73
|
+
| (default) | Main content slot for icon or text label. |
|
|
74
|
+
|
|
75
|
+
## Stories
|
|
76
|
+
|
|
77
|
+
- [Ack](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-notification-badge-button--ack)
|
|
78
|
+
- [Mute](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-notification-badge-button--mute)
|
|
79
|
+
- [Mute Disabled](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-notification-badge-button--mute-disabled)
|
|
80
|
+
- [Mute Indent](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-notification-badge-button--mute-indent)
|
|
81
|
+
- [Mute Open Right](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-notification-badge-button--mute-open-right)
|
|
82
|
+
- [Corner Left](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-notification-badge-button--corner-left)
|
|
83
|
+
- [Corner Right](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-notification-badge-button--corner-right)
|
|
84
|
+
|
|
85
|
+
## See also
|
|
86
|
+
|
|
87
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|