@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,68 @@
|
|
|
1
|
+
# `<obc-poi-aton>`
|
|
2
|
+
|
|
3
|
+
AtoN marker variant with layout positioning and layer integration.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ar-poi-poi-aton--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/ar/poi/poi-aton.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-poi-aton>` - AtoN marker variant with layout positioning and layer integration.
|
|
8
|
+
|
|
9
|
+
Extends `PoiBase` to provide the "aton" variant of the POI system.
|
|
10
|
+
Renders `<obc-poi>` with a slotted `<obc-poi-button-aton>`.
|
|
11
|
+
See the "Coordinate Model" section in `PoiBase` (poi-base.ts) for how `x`, `y`, and `buttonY` position the marker.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
| Property | Attribute | Type | Default | Description |
|
|
16
|
+
| --- | --- | --- | --- | --- |
|
|
17
|
+
| atonType | aton-type | `ObcPoiObjectAtonType` | | |
|
|
18
|
+
| atonStyle | aton-style | `ObcPoiObjectAtonStyle` | | |
|
|
19
|
+
| atonState | aton-state | `ObcPoiObjectState \| null` | `null` | |
|
|
20
|
+
| atonInteractive | aton-interactive | `boolean` | `false` | |
|
|
21
|
+
| type | type | `ObcPoiType` | | |
|
|
22
|
+
| value | value | `ObcPoiValue` | | |
|
|
23
|
+
| state | state | `ObcPoiState` | | |
|
|
24
|
+
| selected | selected | `boolean` | `false` | |
|
|
25
|
+
| buttonType | button-type | | | |
|
|
26
|
+
| overlapOpaque | overlap-opaque | `boolean` | `false` | |
|
|
27
|
+
| data | | `ObcPoiButtonDataItem[]` | `[]` | |
|
|
28
|
+
| hasHeader | has-header | `boolean` | `false` | |
|
|
29
|
+
| headerContent | header-content | `string` | `''` | |
|
|
30
|
+
| hasPointer | hasPointer | `boolean` | `false` | |
|
|
31
|
+
| pointerType | pointer-type | `ObcPoiPointerType \| null` | `null` | |
|
|
32
|
+
| pointerState | pointer-state | `ObcPoiPointerState \| null` | `null` | |
|
|
33
|
+
| relativeDirection | relativeDirection | `number` | `0` | |
|
|
34
|
+
| x | x | `number` | `0` | |
|
|
35
|
+
| y | y | | `DEFAULT_LINE_LENGTH_PX` | |
|
|
36
|
+
| buttonY | button-y | `number \| null` | `0` | |
|
|
37
|
+
| xFilterCutoffHz | x-filter-cutoff-hz | `number` | `16` | Cutoff frequency (Hz) of the built-in low-pass filter applied to `x`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `x` is applied directly. |
|
|
38
|
+
| yFilterCutoffHz | y-filter-cutoff-hz | `number` | `16` | Cutoff frequency (Hz) of the built-in low-pass filter applied to `y`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `y` is applied directly. |
|
|
39
|
+
| fixedTarget | fixed-target | `boolean` | `false` | |
|
|
40
|
+
| boxWidth | box-width | `number \| null` | `null` | |
|
|
41
|
+
| boxHeight | box-height | `number \| null` | `null` | |
|
|
42
|
+
| outsideAngle | outside-angle | `number` | `315` | |
|
|
43
|
+
| animatePosition | animate-position | `boolean` | `false` | |
|
|
44
|
+
| buttonOffsetX | button-offset-x | `number` | | |
|
|
45
|
+
| targetOffsetX | target-offset-x | `number` | | |
|
|
46
|
+
|
|
47
|
+
## Events
|
|
48
|
+
|
|
49
|
+
| Event | Type | Description |
|
|
50
|
+
| --- | --- | --- |
|
|
51
|
+
| obc-poi-data-layout-change | `CustomEvent<void>` | Fired when layout-driving properties change. |
|
|
52
|
+
|
|
53
|
+
## Slots
|
|
54
|
+
|
|
55
|
+
| Slot | Description |
|
|
56
|
+
| --- | --- |
|
|
57
|
+
| (default) | Icon content forwarded to the inner aton diamond. |
|
|
58
|
+
| header | Optional header content forwarded to the poi button. |
|
|
59
|
+
|
|
60
|
+
## Stories
|
|
61
|
+
|
|
62
|
+
- [Preview](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-poi-aton--preview)
|
|
63
|
+
- [POI Variants](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-poi-aton--poi-variants)
|
|
64
|
+
- [POI Values And Content](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-poi-aton--poi-values-and-content)
|
|
65
|
+
|
|
66
|
+
## See also
|
|
67
|
+
|
|
68
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# `<obc-poi-button-aton>`
|
|
2
|
+
|
|
3
|
+
A poi-button variant that renders an AtoN diamond instead of the default round `obc-poi-object`.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ar-poi-button-poi-button-aton--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/ar/poi-button/poi-button-aton.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-poi-button-aton>` - A poi-button variant that renders an AtoN diamond
|
|
8
|
+
instead of the default round `obc-poi-object`.
|
|
9
|
+
|
|
10
|
+
Inherits all selection frame, header, data, and alert behavior from
|
|
11
|
+
`obc-poi-button`.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
| Property | Attribute | Type | Default | Description |
|
|
16
|
+
| --- | --- | --- | --- | --- |
|
|
17
|
+
| atonType | aton-type | `ObcPoiObjectAtonType` | | |
|
|
18
|
+
| atonStyle | aton-style | `ObcPoiObjectAtonStyle` | | |
|
|
19
|
+
| atonState | aton-state | `ObcPoiObjectState \| null` | `null` | |
|
|
20
|
+
| atonInteractive | aton-interactive | `boolean` | `false` | Available when `atonState!=overlapped && (atonState!=null \|\| value!=overlapped)`. |
|
|
21
|
+
| relativeDirection | relativeDirection | `number` | `0` | |
|
|
22
|
+
| selected | selected | `boolean` | `false` | |
|
|
23
|
+
| layout | layout | `ObcPoiButtonLayout` | | |
|
|
24
|
+
| hasHeader | hasHeader | `boolean` | `false` | |
|
|
25
|
+
| state | state | `ObcPoiButtonState` | | |
|
|
26
|
+
| value | value | `PoiButtonVisualState` | | |
|
|
27
|
+
| overlapOpaque | overlapOpaque | `boolean` | `false` | |
|
|
28
|
+
| type | type | | | |
|
|
29
|
+
| inExpandedGroup | inExpandedGroup | `boolean` | `false` | Expanded-group presentation state, applied by the owning group composition while the button is shown inside an expanded `obc-poi-group` and during its collapse animations. Consumers should not set it directly. |
|
|
30
|
+
| data | | `ObcPoiButtonDataItem[]` | `[]` | |
|
|
31
|
+
| hasRelation | hasRelation | `boolean` | `false` | |
|
|
32
|
+
| headerContent | header-content | `string` | `''` | |
|
|
33
|
+
| hasData | | `boolean` | | |
|
|
34
|
+
|
|
35
|
+
## Events
|
|
36
|
+
|
|
37
|
+
| Event | Type | Description |
|
|
38
|
+
| --- | --- | --- |
|
|
39
|
+
| click | | Fired when the marker is clicked. |
|
|
40
|
+
|
|
41
|
+
## Slots
|
|
42
|
+
|
|
43
|
+
| Slot | Description |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| (default) | Icon content forwarded to the inner aton diamond. |
|
|
46
|
+
| header | Optional header content. |
|
|
47
|
+
| relation | Optional relation icon/content in data mode. |
|
|
48
|
+
|
|
49
|
+
## Stories
|
|
50
|
+
|
|
51
|
+
- [Default](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button-aton--default)
|
|
52
|
+
- [All Values](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button-aton--all-values)
|
|
53
|
+
- [All Aton Styles](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button-aton--all-aton-styles)
|
|
54
|
+
- [All Data](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button-aton--all-data)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# `<obc-poi-button-data>`
|
|
2
|
+
|
|
3
|
+
Data variant of the POI marker button.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ar-poi-button-poi-button-data--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/ar/poi-button/poi-button-data.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-poi-button-data>` - Data variant of the POI marker button.
|
|
8
|
+
|
|
9
|
+
Renders `<obc-poi-object-data>` as its marker object, exposing `dataStyle`,
|
|
10
|
+
`dataState`, and `dataInteractive` to control its appearance.
|
|
11
|
+
Inherits all selection frame, header, and data-row behavior from `obc-poi-button`.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
| Property | Attribute | Type | Default | Description |
|
|
16
|
+
| --- | --- | --- | --- | --- |
|
|
17
|
+
| dataStyle | data-style | `ObcPoiObjectStyle` | | |
|
|
18
|
+
| dataState | data-state | `ObcPoiObjectState \| null` | `null` | |
|
|
19
|
+
| dataInteractive | data-interactive | `boolean` | `false` | Available when `dataState!=overlapped && (dataState!=null \|\| value!=overlapped)`. |
|
|
20
|
+
| relativeDirection | relativeDirection | `number` | `0` | |
|
|
21
|
+
| selected | selected | `boolean` | `false` | |
|
|
22
|
+
| layout | layout | `ObcPoiButtonLayout` | | |
|
|
23
|
+
| hasHeader | hasHeader | `boolean` | `false` | |
|
|
24
|
+
| state | state | `ObcPoiButtonState` | | |
|
|
25
|
+
| value | value | `PoiButtonVisualState` | | |
|
|
26
|
+
| overlapOpaque | overlapOpaque | `boolean` | `false` | |
|
|
27
|
+
| type | type | | | |
|
|
28
|
+
| inExpandedGroup | inExpandedGroup | `boolean` | `false` | Expanded-group presentation state, applied by the owning group composition while the button is shown inside an expanded `obc-poi-group` and during its collapse animations. Consumers should not set it directly. |
|
|
29
|
+
| data | | `ObcPoiButtonDataItem[]` | `[]` | |
|
|
30
|
+
| hasRelation | hasRelation | `boolean` | `false` | |
|
|
31
|
+
| headerContent | header-content | `string` | `''` | |
|
|
32
|
+
| hasData | | `boolean` | | |
|
|
33
|
+
|
|
34
|
+
## Events
|
|
35
|
+
|
|
36
|
+
| Event | Type | Description |
|
|
37
|
+
| --- | --- | --- |
|
|
38
|
+
| click | | Fired when the marker is clicked. |
|
|
39
|
+
|
|
40
|
+
## Slots
|
|
41
|
+
|
|
42
|
+
| Slot | Description |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| (default) | Icon content forwarded to the inner POI object. |
|
|
45
|
+
| header | Optional header content. |
|
|
46
|
+
| relation | Optional relation icon/content in data mode. |
|
|
47
|
+
|
|
48
|
+
## Stories
|
|
49
|
+
|
|
50
|
+
- [Button](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button-data--button)
|
|
51
|
+
- [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button-data--enhanced)
|
|
52
|
+
- [With Header](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button-data--with-header)
|
|
53
|
+
- [With Values](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button-data--with-values)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# `<obc-poi-button-vessel>`
|
|
2
|
+
|
|
3
|
+
A poi-button variant that renders a vessel object instead of the default round `obc-poi-object`.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ar-poi-button-poi-button-vessel--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/ar/poi-button/poi-button-vessel.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-poi-button-vessel>` - A poi-button variant that renders a vessel object
|
|
8
|
+
instead of the default round `obc-poi-object`.
|
|
9
|
+
|
|
10
|
+
Inherits all selection frame, header, data, and alert behavior from
|
|
11
|
+
`obc-poi-button`.
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
| Property | Attribute | Type | Default | Description |
|
|
16
|
+
| --- | --- | --- | --- | --- |
|
|
17
|
+
| vesselType | vessel-type | `ObcPoiObjectVesselType` | | |
|
|
18
|
+
| vesselStyle | vessel-style | `ObcPoiObjectVesselStyle` | | |
|
|
19
|
+
| vesselState | vessel-state | `ObcPoiObjectVesselState \| null` | `null` | |
|
|
20
|
+
| vesselInteractive | vessel-interactive | `boolean` | `false` | Available when `vesselState!=overlapped && (vesselState!=null \|\| value!=overlapped)`. |
|
|
21
|
+
| relativeDirection | relativeDirection | `number` | `0` | |
|
|
22
|
+
| selected | selected | `boolean` | `false` | |
|
|
23
|
+
| layout | layout | `ObcPoiButtonLayout` | | |
|
|
24
|
+
| hasHeader | hasHeader | `boolean` | `false` | |
|
|
25
|
+
| state | state | `ObcPoiButtonState` | | |
|
|
26
|
+
| value | value | `PoiButtonVisualState` | | |
|
|
27
|
+
| overlapOpaque | overlapOpaque | `boolean` | `false` | |
|
|
28
|
+
| type | type | | | |
|
|
29
|
+
| inExpandedGroup | inExpandedGroup | `boolean` | `false` | Expanded-group presentation state, applied by the owning group composition while the button is shown inside an expanded `obc-poi-group` and during its collapse animations. Consumers should not set it directly. |
|
|
30
|
+
| data | | `ObcPoiButtonDataItem[]` | `[]` | |
|
|
31
|
+
| hasRelation | hasRelation | `boolean` | `false` | |
|
|
32
|
+
| headerContent | header-content | `string` | `''` | |
|
|
33
|
+
| hasData | | `boolean` | | |
|
|
34
|
+
|
|
35
|
+
## Events
|
|
36
|
+
|
|
37
|
+
| Event | Type | Description |
|
|
38
|
+
| --- | --- | --- |
|
|
39
|
+
| click | | Fired when the marker is clicked. |
|
|
40
|
+
|
|
41
|
+
## Slots
|
|
42
|
+
|
|
43
|
+
| Slot | Description |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| (default) | Icon content forwarded to the inner vessel object. |
|
|
46
|
+
| turn-indicator | Optional turn indicator content for speed-rot type. |
|
|
47
|
+
| speed-indicator | Optional speed indicator content for speed-rot type. |
|
|
48
|
+
| header | Optional header content. |
|
|
49
|
+
| relation | Optional relation icon/content in data mode. |
|
|
50
|
+
|
|
51
|
+
## Stories
|
|
52
|
+
|
|
53
|
+
- [Default](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button-vessel--default)
|
|
54
|
+
- [All Values](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button-vessel--all-values)
|
|
55
|
+
- [All Data](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button-vessel--all-data)
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# `<obc-poi-button>`
|
|
2
|
+
|
|
3
|
+
Marker button component that renders an icon target with optional header and data rows.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ar-poi-button-poi-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/ar/poi-button/poi-button.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-poi-button>` - Marker button component that renders an icon target with optional header and data rows.
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Use this component when you need a button-style marker that can show stateful framing and optional metric rows.
|
|
11
|
+
Keywords/synonyms: marker button, target button, icon target, POI button.
|
|
12
|
+
|
|
13
|
+
## Features/Variants
|
|
14
|
+
- `type` (default `button`): `button` or `enhanced` size.
|
|
15
|
+
- `layout` (default `anchored`): `anchored` or `inline`.
|
|
16
|
+
- `value` (default `unchecked`): `unchecked`, `checked`, `activated`, `overlapped`.
|
|
17
|
+
- `overlapOpaque` (default `false`): controls overlapped opacity mode (`false` = translucent, `true` = opaque).
|
|
18
|
+
- `state` (default `enabled`): `enabled`, `caution`, `warning`, `alarm`, `level-critical`, `level-high`, `level-medium`, `level-low`, `level-diagnostic`.
|
|
19
|
+
- `selected` (default `false`): shows selection frame in anchored layout.
|
|
20
|
+
- `relativeDirection` (default `0`): rotates default-slot icon content in degrees.
|
|
21
|
+
- `data` (default `[]`): when non-empty, renders value/label/unit rows.
|
|
22
|
+
- `hasHeader` + `header` slot: renders a header area and syncs slotted `obc-poi-header` state.
|
|
23
|
+
- `hasRelation` (default `false`): enables optional relation content in data mode.
|
|
24
|
+
- `inExpandedGroup` (default `false`): expanded-group presentation state, applied by the owning group composition during expand/collapse orchestration; consumers should not set it directly.
|
|
25
|
+
|
|
26
|
+
## Usage Guidelines
|
|
27
|
+
- Use `layout="anchored"` for standalone marker buttons.
|
|
28
|
+
- Use `layout="inline"` when this component is embedded in a larger marker composition.
|
|
29
|
+
- Provide `data` for metric display variants.
|
|
30
|
+
- Enable `hasRelation` only when relation slot content is provided.
|
|
31
|
+
|
|
32
|
+
## Slots/Content
|
|
33
|
+
- Default slot: Icon/content rendered inside `obc-poi-object`.
|
|
34
|
+
- `header`: Optional header content rendered above the marker body.
|
|
35
|
+
- `relation`: Optional relation icon/content rendered when `hasRelation` is true in data mode.
|
|
36
|
+
|
|
37
|
+
## Events
|
|
38
|
+
This component emits no custom events. A standard `click` bubbles from the
|
|
39
|
+
internal `<button>` (`onClick` in the framework wrappers).
|
|
40
|
+
|
|
41
|
+
## Best Practices
|
|
42
|
+
- Keep `value`, `state`, and `selected` synchronized to avoid conflicting visual states.
|
|
43
|
+
- Prefer enum values for `type`, `layout`, `state`, and `value`.
|
|
44
|
+
|
|
45
|
+
## Example
|
|
46
|
+
```html
|
|
47
|
+
<obc-poi-button type="button" layout="anchored" value="checked" selected>
|
|
48
|
+
<obi-placeholder></obi-placeholder>
|
|
49
|
+
<obc-poi-header slot="header" content="1"></obc-poi-header>
|
|
50
|
+
</obc-poi-button>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Properties
|
|
54
|
+
|
|
55
|
+
| Property | Attribute | Type | Default | Description |
|
|
56
|
+
| --- | --- | --- | --- | --- |
|
|
57
|
+
| relativeDirection | relativeDirection | `number` | `0` | |
|
|
58
|
+
| selected | selected | `boolean` | `false` | |
|
|
59
|
+
| layout | layout | `ObcPoiButtonLayout` | | |
|
|
60
|
+
| hasHeader | hasHeader | `boolean` | `false` | |
|
|
61
|
+
| state | state | `ObcPoiButtonState` | | |
|
|
62
|
+
| value | value | `PoiButtonVisualState` | | |
|
|
63
|
+
| overlapOpaque | overlapOpaque | `boolean` | `false` | |
|
|
64
|
+
| type | type | | | |
|
|
65
|
+
| inExpandedGroup | inExpandedGroup | `boolean` | `false` | Expanded-group presentation state, applied by the owning group composition while the button is shown inside an expanded `obc-poi-group` and during its collapse animations. Consumers should not set it directly. |
|
|
66
|
+
| data | | `ObcPoiButtonDataItem[]` | `[]` | |
|
|
67
|
+
| hasRelation | hasRelation | `boolean` | `false` | |
|
|
68
|
+
| headerContent | header-content | `string` | `''` | |
|
|
69
|
+
| hasData | | `boolean` | | |
|
|
70
|
+
|
|
71
|
+
## Events
|
|
72
|
+
|
|
73
|
+
| Event | Type | Description |
|
|
74
|
+
| --- | --- | --- |
|
|
75
|
+
| click | | Fired when the marker is clicked. |
|
|
76
|
+
|
|
77
|
+
## Slots
|
|
78
|
+
|
|
79
|
+
| Slot | Description |
|
|
80
|
+
| --- | --- |
|
|
81
|
+
| (default) | Icon/content rendered inside `obc-poi-object`. |
|
|
82
|
+
| header | Optional header content rendered above the marker body. |
|
|
83
|
+
| relation | Optional relation icon/content in data mode when `hasRelation` is true. |
|
|
84
|
+
|
|
85
|
+
## Stories
|
|
86
|
+
|
|
87
|
+
- [Default](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button--default)
|
|
88
|
+
- [With Header](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button--with-header)
|
|
89
|
+
- [All Types](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button--all-types)
|
|
90
|
+
- [All Alerts](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button--all-alerts)
|
|
91
|
+
- [All Overlapped](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button--all-overlapped)
|
|
92
|
+
- [All Data](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button--all-data)
|
|
93
|
+
- [Overlapped Animated](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button--overlapped-animated): Loops between normal and overlapped visual states for both Button and Enhanced types.
|
|
94
|
+
- [Overlapped Animated With Data](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-button-poi-button--overlapped-animated-with-data): Loops between normal and overlapped visual states for data variants.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# `<obc-poi-card-header>`
|
|
2
|
+
|
|
3
|
+
Header block for `obc-poi-card` with tag, condensed, regular, and detailed layouts.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ar-poi-card-header--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/ar/poi-card-header/poi-card-header.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-poi-card-header>` - Header block for `obc-poi-card` with tag, condensed, regular, and detailed layouts.
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Use this component to render card identity metadata such as index, title, source, and optional detail rows.
|
|
11
|
+
Keywords/synonyms: card header, title bar, metadata header, marker header.
|
|
12
|
+
|
|
13
|
+
## Features/Variants
|
|
14
|
+
- `variant` (default `regular`):
|
|
15
|
+
- `tag`: index badge only.
|
|
16
|
+
- `condensed`: index + title + optional source.
|
|
17
|
+
- `regular`: condensed layout with optional `leading-icon` slot.
|
|
18
|
+
- `detailed`: POI icon, title, description, source, timestamp, and optional close button.
|
|
19
|
+
- `index` (default `"1"`): badge text.
|
|
20
|
+
- `cardTitle`, `description`, `source`, `timestamp`: textual metadata fields.
|
|
21
|
+
- `hasLeadingIcon` (default `false`): enables icon region for regular variant.
|
|
22
|
+
- `hasCloseButton` (default `false`): renders close action in detailed variant.
|
|
23
|
+
|
|
24
|
+
## Usage Guidelines
|
|
25
|
+
- Choose the variant based on available space and metadata density.
|
|
26
|
+
- Use `hasCloseButton` only when a parent can handle dismiss behavior.
|
|
27
|
+
- Keep `source` and `timestamp` short to avoid header crowding.
|
|
28
|
+
|
|
29
|
+
## Slots/Content
|
|
30
|
+
- `leading-icon`: Optional icon for the regular variant.
|
|
31
|
+
- `poi-icon`: Optional icon for the detailed variant POI target.
|
|
32
|
+
|
|
33
|
+
## Events
|
|
34
|
+
- `close-click`: Fired when the close button is pressed.
|
|
35
|
+
|
|
36
|
+
## Best Practices
|
|
37
|
+
- Keep `index` stable and human-readable.
|
|
38
|
+
- Use `tag` or `condensed` when the header is used in dense lists.
|
|
39
|
+
|
|
40
|
+
## Example
|
|
41
|
+
```html
|
|
42
|
+
<obc-poi-card-header
|
|
43
|
+
variant="detailed"
|
|
44
|
+
index="1"
|
|
45
|
+
cardTitle="Target"
|
|
46
|
+
description="Tracked object"
|
|
47
|
+
source="AIS"
|
|
48
|
+
timestamp="2 min ago"
|
|
49
|
+
hasCloseButton
|
|
50
|
+
>
|
|
51
|
+
<obi-placeholder slot="poi-icon"></obi-placeholder>
|
|
52
|
+
</obc-poi-card-header>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Properties
|
|
56
|
+
|
|
57
|
+
| Property | Attribute | Type | Default | Description |
|
|
58
|
+
| --- | --- | --- | --- | --- |
|
|
59
|
+
| variant | variant | `ObcPoiCardHeaderVariant` | | |
|
|
60
|
+
| index | index | `string` | `'1'` | |
|
|
61
|
+
| cardTitle | cardTitle | `string` | `''` | Available when `variant in [Condensed, Regular, Detailed]`. |
|
|
62
|
+
| description | description | `string` | `''` | Shown only in detailed variant. Available when `variant==detailed`. |
|
|
63
|
+
| source | source | `string` | `''` | Source badge text (e.g., "AIS", "RADAR"). Hidden when empty. Available when `variant in [Condensed, Regular, Detailed]`. |
|
|
64
|
+
| timestamp | timestamp | `string` | `''` | Shown only in detailed variant. Available when `variant==detailed`. |
|
|
65
|
+
| hasLeadingIcon | hasLeadingIcon | `boolean` | `false` | Enables the leading-icon slot (regular variant only). Available when `variant==regular`. |
|
|
66
|
+
| hasCloseButton | hasCloseButton | `boolean` | `false` | Enables the close button (detailed variant only). Available when `variant==detailed`. |
|
|
67
|
+
|
|
68
|
+
## Events
|
|
69
|
+
|
|
70
|
+
| Event | Type | Description |
|
|
71
|
+
| --- | --- | --- |
|
|
72
|
+
| close-click | `CustomEvent<void>` | Fired when the close button is pressed. |
|
|
73
|
+
|
|
74
|
+
## Slots
|
|
75
|
+
|
|
76
|
+
| Slot | Description |
|
|
77
|
+
| --- | --- |
|
|
78
|
+
| leading-icon | Optional icon for the regular variant. |
|
|
79
|
+
| poi-icon | Optional icon for the detailed variant POI target. |
|
|
80
|
+
|
|
81
|
+
## Stories
|
|
82
|
+
|
|
83
|
+
- [Tag](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card-header--tag)
|
|
84
|
+
- [Condensed](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card-header--condensed)
|
|
85
|
+
- [Condensed No Source](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card-header--condensed-no-source)
|
|
86
|
+
- [Regular](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card-header--regular)
|
|
87
|
+
- [Regular No Icon](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card-header--regular-no-icon)
|
|
88
|
+
- [Detailed](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card-header--detailed)
|
|
89
|
+
- [Detailed No Close Button](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card-header--detailed-no-close-button)
|
|
90
|
+
- [Detailed No Source](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card-header--detailed-no-source)
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# `<obc-poi-card>`
|
|
2
|
+
|
|
3
|
+
Content card container with optional pointer arrow, header variants, and interactive click handling.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ar-poi-card--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/ar/poi-card/poi-card.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-poi-card>` - Content card container with optional pointer arrow, header variants, and interactive click handling.
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Use this component to wrap contextual marker details in a card with optional directional anchoring.
|
|
11
|
+
Keywords/synonyms: detail card, marker card, anchored card, popover card.
|
|
12
|
+
|
|
13
|
+
## Features/Variants
|
|
14
|
+
- `pointerDirection` (default `none`): `none`, `top`, `bottom`, `left`, `right`.
|
|
15
|
+
- `fixedSize` (default `false`): toggles fixed `256x256` sizing instead of content-based sizing.
|
|
16
|
+
- Header options:
|
|
17
|
+
- `showHeader` controls whether the header area is visible.
|
|
18
|
+
- `headerVariant` controls header layout (`tag`, `condensed`, `regular`, `detailed`).
|
|
19
|
+
- `index`, `cardTitle`, `description`, `source`, `timestamp` are forwarded to `obc-poi-card-header`.
|
|
20
|
+
- `hasLeadingIcon` and `hasCloseButton` gate header affordances.
|
|
21
|
+
- `interactive` (default `false`): enables keyboard activation and `card-click` dispatch.
|
|
22
|
+
- `hasAlert` (default `false`): shows alert ring layer when `interactive` is enabled.
|
|
23
|
+
|
|
24
|
+
## Usage Guidelines
|
|
25
|
+
- Use `pointerDirection` when the card should visually point to an anchor target.
|
|
26
|
+
- Keep `interactive` off for read-only cards.
|
|
27
|
+
- Use the header slots only when the selected `headerVariant` renders them.
|
|
28
|
+
|
|
29
|
+
## Slots/Content
|
|
30
|
+
- Default slot: Main card body content.
|
|
31
|
+
- `leading-icon`: Optional icon used by the regular header variant.
|
|
32
|
+
- `poi-icon`: Optional icon used by the detailed header variant.
|
|
33
|
+
|
|
34
|
+
## Events
|
|
35
|
+
- `card-click`: Fired when the card surface is activated in interactive mode.
|
|
36
|
+
- `close-click`: Fired when the header close button is pressed (`hasCloseButton` with the detailed header variant).
|
|
37
|
+
|
|
38
|
+
## CSS Parts
|
|
39
|
+
- `wrapper`: Outer layout wrapper holding the pointer arrows and the card surface.
|
|
40
|
+
- `content-box`: Card surface with background, border, and rounded corners.
|
|
41
|
+
- `header`: The `obc-poi-card-header` element, rendered when `showHeader` is true.
|
|
42
|
+
- `content`: Body area wrapping the default slot.
|
|
43
|
+
|
|
44
|
+
## Best Practices
|
|
45
|
+
- Keep `index` stable so event payloads remain predictable.
|
|
46
|
+
- Pair `hasAlert` with meaningful alert state in surrounding UI logic.
|
|
47
|
+
|
|
48
|
+
## Example
|
|
49
|
+
```html
|
|
50
|
+
<obc-poi-card pointerDirection="bottom" index="1" cardTitle="Target" interactive>
|
|
51
|
+
<obi-placeholder slot="leading-icon"></obi-placeholder>
|
|
52
|
+
<div>Custom card content</div>
|
|
53
|
+
</obc-poi-card>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Properties
|
|
57
|
+
|
|
58
|
+
| Property | Attribute | Type | Default | Description |
|
|
59
|
+
| --- | --- | --- | --- | --- |
|
|
60
|
+
| pointerDirection | pointerDirection | `PointerDirection` | | |
|
|
61
|
+
| fixedSize | fixedSize | `boolean` | `false` | When true, uses fixed 256x256px size; otherwise sizes to content. |
|
|
62
|
+
| showHeader | | `boolean` | `true` | |
|
|
63
|
+
| headerVariant | headerVariant | `ObcPoiCardHeaderVariant` | | Available when `showHeader==true`. |
|
|
64
|
+
| index | index | `string` | `'1'` | |
|
|
65
|
+
| cardTitle | cardTitle | `string` | `''` | Available when `showHeader==true && headerVariant!=tag`. |
|
|
66
|
+
| description | description | `string` | `''` | Passed to header (detailed variant only). Available when `showHeader==true && headerVariant==detailed`. |
|
|
67
|
+
| source | source | `string` | `''` | Source badge text (e.g., "AIS", "RADAR"). Hidden when empty. Available when `showHeader==true && headerVariant!=tag`. |
|
|
68
|
+
| timestamp | timestamp | `string` | `''` | Passed to header (detailed variant only). Available when `showHeader==true && headerVariant==detailed`. |
|
|
69
|
+
| hasLeadingIcon | hasLeadingIcon | `boolean` | `false` | Enables the leading-icon slot (regular header variant only). Available when `showHeader==true && headerVariant==regular`. |
|
|
70
|
+
| hasCloseButton | hasCloseButton | `boolean` | `false` | Enables the close button (detailed header variant only). Available when `showHeader==true && headerVariant==detailed`. |
|
|
71
|
+
| interactive | interactive | `boolean` | `false` | Enables click events, keyboard focus, and alert border support. |
|
|
72
|
+
| hasAlert | hasAlert | `boolean` | `false` | Shows alert/caution border rings. Requires `interactive` to be true. Available when `interactive==true`. |
|
|
73
|
+
|
|
74
|
+
## Events
|
|
75
|
+
|
|
76
|
+
| Event | Type | Description |
|
|
77
|
+
| --- | --- | --- |
|
|
78
|
+
| card-click | `CustomEvent<PoiCardClickDetail>` | Fired when the card is activated in interactive mode. |
|
|
79
|
+
| close-click | `CustomEvent<void>` | Passed on from the header when its close button is pressed (`hasCloseButton` with the detailed header variant). |
|
|
80
|
+
|
|
81
|
+
## Slots
|
|
82
|
+
|
|
83
|
+
| Slot | Description |
|
|
84
|
+
| --- | --- |
|
|
85
|
+
| (default) | Main card body content. |
|
|
86
|
+
| leading-icon | Optional icon used by the regular header variant. |
|
|
87
|
+
| poi-icon | Optional icon used by the detailed header variant. |
|
|
88
|
+
|
|
89
|
+
## CSS parts
|
|
90
|
+
|
|
91
|
+
| Part | Description |
|
|
92
|
+
| --- | --- |
|
|
93
|
+
| wrapper | Outer layout wrapper holding the pointer arrows and the card surface. |
|
|
94
|
+
| content-box | Card surface with background, border, and rounded corners. |
|
|
95
|
+
| header | The `obc-poi-card-header` element, rendered when `showHeader` is true. |
|
|
96
|
+
| content | Body area wrapping the default slot. |
|
|
97
|
+
|
|
98
|
+
## Stories
|
|
99
|
+
|
|
100
|
+
- [Default](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card--default)
|
|
101
|
+
- [No Header](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card--no-header)
|
|
102
|
+
- [Fixed Size](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card--fixed-size)
|
|
103
|
+
- [With Top Pointer](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card--with-top-pointer)
|
|
104
|
+
- [Header Tag Variant](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card--header-tag-variant)
|
|
105
|
+
- [Header Condensed Variant](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card--header-condensed-variant)
|
|
106
|
+
- [Header Regular Variant](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card--header-regular-variant)
|
|
107
|
+
- [Header Detailed Variant](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card--header-detailed-variant)
|
|
108
|
+
- [Interactive](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card--interactive)
|
|
109
|
+
- [With Alert](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card--with-alert)
|
|
110
|
+
- [Full Featured](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-card--full-featured)
|