@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.117 → 2.0.0-next.119
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/.storybook/manager.ts +18 -16
- package/bundle/openbridge-webcomponents.bundle.js +37 -33
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +30 -24
- package/dist/ar/poi/poi-base.d.ts +6 -0
- package/dist/ar/poi/poi-base.d.ts.map +1 -1
- package/dist/ar/poi/poi-base.js.map +1 -1
- package/dist/ar/poi-button/poi-button.d.ts +2 -2
- package/dist/ar/poi-button/poi-button.js.map +1 -1
- package/dist/automation/vertical-line/vertical-line.d.ts +6 -0
- package/dist/automation/vertical-line/vertical-line.d.ts.map +1 -1
- package/dist/automation/vertical-line/vertical-line.js.map +1 -1
- package/dist/components/accordion-card/accordion-card.d.ts.map +1 -1
- package/dist/components/accordion-card/accordion-card.js.map +1 -1
- package/dist/components/advice-message-item/advice-message-item.d.ts +4 -2
- package/dist/components/advice-message-item/advice-message-item.d.ts.map +1 -1
- package/dist/components/advice-message-item/advice-message-item.js +4 -2
- package/dist/components/advice-message-item/advice-message-item.js.map +1 -1
- package/dist/components/app-menu/app-menu.d.ts +1 -1
- package/dist/components/app-menu/app-menu.js +1 -1
- package/dist/components/app-menu/app-menu.js.map +1 -1
- package/dist/components/brilliance-menu/brilliance-menu.d.ts +8 -4
- package/dist/components/brilliance-menu/brilliance-menu.d.ts.map +1 -1
- package/dist/components/brilliance-menu/brilliance-menu.js +8 -4
- package/dist/components/brilliance-menu/brilliance-menu.js.map +1 -1
- package/dist/components/check-button/check-button.js.map +1 -1
- package/dist/components/checkbox/checkbox.d.ts +2 -2
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/command-menu/command-menu.d.ts +1 -1
- package/dist/components/command-menu/command-menu.js +1 -1
- package/dist/components/command-menu/command-menu.js.map +1 -1
- package/dist/components/dropdown-button/dropdown-button.d.ts +2 -2
- package/dist/components/dropdown-button/dropdown-button.js +2 -2
- package/dist/components/dropdown-button/dropdown-button.js.map +1 -1
- package/dist/components/menu-button/menu-button.d.ts.map +1 -1
- package/dist/components/menu-button/menu-button.js.map +1 -1
- package/dist/components/navigation-item/navigation-item.d.ts +1 -5
- package/dist/components/navigation-item/navigation-item.d.ts.map +1 -1
- package/dist/components/navigation-item/navigation-item.js +0 -8
- package/dist/components/navigation-item/navigation-item.js.map +1 -1
- package/dist/components/navigation-item-group/navigation-item-group.d.ts +2 -1
- package/dist/components/navigation-item-group/navigation-item-group.d.ts.map +1 -1
- package/dist/components/navigation-item-group/navigation-item-group.js +2 -1
- package/dist/components/navigation-item-group/navigation-item-group.js.map +1 -1
- package/dist/components/notification-button/notification-button.d.ts +1 -1
- package/dist/components/notification-button/notification-button.js +1 -1
- package/dist/components/notification-button/notification-button.js.map +1 -1
- package/dist/components/notification-message-item/notification-message-item.d.ts +4 -2
- package/dist/components/notification-message-item/notification-message-item.d.ts.map +1 -1
- package/dist/components/notification-message-item/notification-message-item.js +4 -2
- package/dist/components/notification-message-item/notification-message-item.js.map +1 -1
- package/dist/components/pivot-item/pivot-item.d.ts +1 -1
- package/dist/components/pivot-item/pivot-item.js +1 -1
- package/dist/components/pivot-item/pivot-item.js.map +1 -1
- package/dist/components/pivot-item-group/pivot-item-group.d.ts +1 -0
- package/dist/components/pivot-item-group/pivot-item-group.d.ts.map +1 -1
- package/dist/components/pivot-item-group/pivot-item-group.js.map +1 -1
- package/dist/components/slide-button/slide-button.d.ts.map +1 -1
- package/dist/components/slide-button/slide-button.js.map +1 -1
- package/dist/components/slider/slider.d.ts +2 -2
- package/dist/components/slider/slider.js +2 -2
- package/dist/components/slider/slider.js.map +1 -1
- package/dist/components/slider-double/slider-double.d.ts +2 -2
- package/dist/components/slider-double/slider-double.js +2 -2
- package/dist/components/slider-double/slider-double.js.map +1 -1
- package/dist/components/stepper-box/stepper-box.d.ts +4 -2
- package/dist/components/stepper-box/stepper-box.d.ts.map +1 -1
- package/dist/components/stepper-box/stepper-box.js +4 -2
- package/dist/components/stepper-box/stepper-box.js.map +1 -1
- package/dist/components/system-button/system-button.d.ts +1 -1
- package/dist/components/system-button/system-button.js +1 -1
- package/dist/components/system-button/system-button.js.map +1 -1
- package/dist/components/tabbed-card/tabbed-card.d.ts.map +1 -1
- package/dist/components/tabbed-card/tabbed-card.js.map +1 -1
- package/dist/components/toggle-button-option/toggle-button-option.d.ts +2 -1
- package/dist/components/toggle-button-option/toggle-button-option.d.ts.map +1 -1
- package/dist/components/toggle-button-option/toggle-button-option.js +2 -1
- package/dist/components/toggle-button-option/toggle-button-option.js.map +1 -1
- package/dist/components/toggle-button-vertical-group/toggle-button-vertical-group.js.map +1 -1
- package/dist/components/toggle-switch/toggle-switch.d.ts +1 -1
- package/dist/components/toggle-switch/toggle-switch.js +1 -1
- package/dist/components/toggle-switch/toggle-switch.js.map +1 -1
- package/dist/components/top-bar/top-bar.d.ts.map +1 -1
- package/dist/components/top-bar/top-bar.js.map +1 -1
- package/dist/components/topbar-message-item/topbar-message-item.js.map +1 -1
- package/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.d.ts +1 -1
- package/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.js +1 -1
- package/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.js.map +1 -1
- package/eslint.config.mjs +355 -0
- package/package.json +3 -1
- package/script/check-slot-event-docs.ts +36 -3
- package/script/eslint-rules.test.ts +230 -0
- package/src/ar/building-blocks/poi-graphic-line/poi-graphic-line.stories.ts +1 -1
- package/src/ar/building-blocks/poi-header/poi-header.stories.ts +1 -1
- package/src/ar/building-blocks/poi-line/poi-line.stories.ts +1 -1
- package/src/ar/building-blocks/poi-pointer/poi-pointer.stories.ts +1 -1
- package/src/ar/building-blocks/poi-selection-frame/poi-selection-frame.stories.ts +1 -1
- package/src/ar/building-blocks/ruler-pointer/ruler-pointer.stories.ts +1 -1
- package/src/ar/chart-object-vessel-button/chart-object-vessel-button.stories.ts +1 -1
- package/src/ar/poi/poi-aton.stories.ts +1 -1
- package/src/ar/poi/poi-base.ts +6 -0
- package/src/ar/poi/poi-data.stories.ts +1 -1
- package/src/ar/poi/poi-vessel.stories.ts +1 -1
- package/src/ar/poi/poi.stories.ts +1 -1
- package/src/ar/poi-button/poi-button-aton.stories.ts +1 -1
- package/src/ar/poi-button/poi-button-data.stories.ts +1 -1
- package/src/ar/poi-button/poi-button-vessel.stories.ts +1 -1
- package/src/ar/poi-button/poi-button.stories.ts +1 -1
- package/src/ar/poi-button/poi-button.ts +2 -2
- package/src/ar/poi-card/poi-card.stories.ts +1 -1
- package/src/ar/poi-card-header/poi-card-header.stories.ts +1 -1
- package/src/ar/poi-controller/poi-controller.stories.ts +1 -1
- package/src/ar/poi-group/poi-group.stories.ts +1 -1
- package/src/ar/poi-layer/poi-layer.stories.ts +1 -1
- package/src/ar/poi-layer-stack/poi-layer-stack.stories.ts +1 -1
- package/src/ar/poi-object/poi-object-aton.stories.ts +1 -1
- package/src/ar/poi-object/poi-object-data.stories.ts +1 -1
- package/src/ar/poi-object/poi-object-vessel.stories.ts +1 -1
- package/src/ar/poi-object/poi-object.stories.ts +1 -1
- package/src/automation/automation-input-modal/automation-input-modal.stories.ts +1 -1
- package/src/automation/automation-readout/automation-readout.stories.ts +1 -1
- package/src/automation/automation-tank/automation-tank.stories.ts +1 -1
- package/src/automation/bus/bus.stories.ts +1 -1
- package/src/automation/corner-line/corner-line.stories.ts +1 -1
- package/src/automation/direction-line/direction-line.stories.ts +1 -1
- package/src/automation/end-point-line/end-point-line.stories.ts +1 -1
- package/src/automation/horizontal-line/horizontal-line.stories.ts +1 -1
- package/src/automation/line-cross/line-cross.stories.ts +1 -1
- package/src/automation/line-overlap/line-overlap.stories.ts +1 -1
- package/src/automation/three-way-line/three-way-line.stories.ts +1 -1
- package/src/automation/vertical-line/vertical-line.stories.ts +1 -1
- package/src/automation/vertical-line/vertical-line.ts +2 -1
- package/src/bars-graphs/area-graph/area-graph.stories.ts +1 -1
- package/src/bars-graphs/donut-chart/donut-chart.stories.ts +1 -1
- package/src/bars-graphs/line-graph/line-graph.stories.ts +1 -1
- package/src/bars-graphs/pie-chart/pie-chart.stories.ts +1 -1
- package/src/bars-graphs/polar-chart/polar-chart.stories.ts +1 -1
- package/src/bars-graphs/radial-bar-chart/radial-bar-chart.stories.ts +1 -1
- package/src/building-blocks/bar-horizontal/bar-horizontal.stories.ts +1 -1
- package/src/building-blocks/bar-vertical/bar-vertical.stories.ts +1 -1
- package/src/building-blocks/chart-line/chart-line-base.stories.ts +1 -1
- package/src/building-blocks/instrument-radial/instrument-radial.stories.ts +1 -1
- package/src/building-blocks/readout-block/readout-block.stories.ts +1 -1
- package/src/components/accordion-card/accordion-card.ts +2 -1
- package/src/components/advice-floating-item/advice-floating-item.stories.ts +1 -1
- package/src/components/advice-menu-item/advice-menu-item.stories.ts +1 -1
- package/src/components/advice-message-item/advice-message-item.stories.ts +1 -1
- package/src/components/advice-message-item/advice-message-item.ts +4 -2
- package/src/components/alert-frame/alert-frame.stories.ts +1 -1
- package/src/components/app-menu/app-menu.ts +1 -1
- package/src/components/attachment-list-item/attachment-list-item.stories.ts +1 -1
- package/src/components/audio-output/audio-output.stories.ts +1 -1
- package/src/components/audio-recording-item/audio-recording-item.stories.ts +1 -1
- package/src/components/automation-button-readout-stack/automation-button-readout-stack.stories.ts +1 -1
- package/src/components/badge/badge.stories.ts +1 -1
- package/src/components/brilliance-menu/brilliance-menu.ts +8 -4
- package/src/components/calendar/calendar.stories.ts +1 -1
- package/src/components/check-button/check-button.ts +1 -1
- package/src/components/checkbox/checkbox.ts +2 -2
- package/src/components/command-button/command-button.stories.ts +1 -1
- package/src/components/command-menu/command-menu.stories.ts +1 -1
- package/src/components/command-menu/command-menu.ts +1 -1
- package/src/components/communication-table/communication-table.stories.ts +1 -1
- package/src/components/context-menu-input/context-menu-input.stories.ts +1 -1
- package/src/components/date-item/date-item.stories.ts +1 -1
- package/src/components/dropdown-button/dropdown-button.ts +2 -2
- package/src/components/event-item/event-item.stories.ts +1 -1
- package/src/components/event-list/event-list.stories.ts +1 -1
- package/src/components/form-container/form-container.stories.ts +1 -0
- package/src/components/form-footer-container/form-footer-container.stories.ts +1 -0
- package/src/components/form-group/form-group.stories.ts +1 -0
- package/src/components/form-item/form-item.stories.ts +1 -1
- package/src/components/keyboard-full/keyboard-full.stories.ts +1 -1
- package/src/components/keyboard-numeric/keyboard-numeric.stories.ts +1 -1
- package/src/components/menu-button/menu-button.stories.ts +1 -1
- package/src/components/menu-button/menu-button.ts +8 -4
- package/src/components/message-menu-item/message-menu-item.stories.ts +1 -1
- package/src/components/navigation-item/navigation-item.ts +1 -10
- package/src/components/navigation-item-group/navigation-item-group.ts +2 -1
- package/src/components/notification-badge-button/notification-badge-button.stories.ts +1 -1
- package/src/components/notification-button/notification-button.ts +1 -1
- package/src/components/notification-floating-item/notification-floating-item.stories.ts +1 -1
- package/src/components/notification-menu-item/notification-menu-item.stories.ts +1 -1
- package/src/components/notification-message-item/notification-message-item.stories.ts +1 -1
- package/src/components/notification-message-item/notification-message-item.ts +4 -2
- package/src/components/pivot-item/pivot-item.ts +1 -1
- package/src/components/pivot-item-group/pivot-item-group.ts +1 -0
- package/src/components/rich-button/rich-button.stories.ts +1 -1
- package/src/components/sequence-card/sequence-card.stories.ts +1 -1
- package/src/components/sequence-connector/sequence-connector.stories.ts +1 -1
- package/src/components/sequence-item/sequence-item.stories.ts +1 -0
- package/src/components/sequence-loading-spinner/sequence-loading-spinner.stories.ts +1 -1
- package/src/components/sequence-modal/sequence-modal.stories.ts +1 -1
- package/src/components/sequence-step/sequence-step.stories.ts +1 -0
- package/src/components/sequence-toolbar/sequence-toolbar.stories.ts +1 -0
- package/src/components/slide-button/slide-button.stories.ts +1 -1
- package/src/components/slide-button/slide-button.ts +2 -1
- package/src/components/slider/slider.ts +2 -2
- package/src/components/slider-double/slider-double.ts +2 -2
- package/src/components/split-button/split-button.stories.ts +1 -1
- package/src/components/status-indicator/status-indicator.stories.ts +1 -1
- package/src/components/stepper-box/stepper-box.ts +4 -2
- package/src/components/system-button/system-button.ts +5 -5
- package/src/components/tabbed-card/tabbed-card.ts +2 -1
- package/src/components/table/table.stories.ts +1 -1
- package/src/components/table-header-item/table-header-item.stories.ts +1 -1
- package/src/components/textbox/textbox.stories.ts +1 -1
- package/src/components/title-container/title-container.stories.ts +1 -1
- package/src/components/toggle-button-option/toggle-button-option.ts +2 -1
- package/src/components/toggle-button-three-state/toggle-button-three-state.stories.ts +1 -1
- package/src/components/toggle-button-vertical-group/toggle-button-vertical-group.ts +2 -2
- package/src/components/toggle-switch/toggle-switch.ts +1 -1
- package/src/components/toggletip/toggletip.stories.ts +1 -1
- package/src/components/top-bar/top-bar.ts +8 -4
- package/src/components/topbar-message-item/topbar-message-item.ts +2 -2
- package/src/components/tree-navigation/tree-navigation.stories.ts +1 -1
- package/src/components/tree-navigation-item/tree-navigation-item.stories.ts +1 -1
- package/src/integration-systems/integration-app-bar/integration-app-bar.stories.ts +1 -1
- package/src/integration-systems/integration-bar/integration-bar.stories.ts +1 -1
- package/src/integration-systems/integration-bar-dropdown/integration-bar-dropdown.stories.ts +1 -1
- package/src/integration-systems/integration-button/integration-button.stories.ts +1 -1
- package/src/integration-systems/integration-dropdown-button/integration-dropdown-button.stories.ts +1 -1
- package/src/integration-systems/integration-dropdown-button/integration-dropdown-button.ts +1 -1
- package/src/integration-systems/integration-fleet-button/integration-fleet-button.stories.ts +1 -1
- package/src/integration-systems/integration-tabs/integration-tabs.stories.ts +1 -1
- package/src/integration-systems/integration-vessel-menu/integration-vessel-menu.stories.ts +1 -1
- package/src/integration-systems/integration-vessel-selector/integration-vessel-selector.stories.ts +1 -1
- package/src/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.stories.ts +1 -1
- package/src/navigation-instruments/current/current.stories.ts +1 -1
- package/src/navigation-instruments/draft-trim/draft-trim.stories.ts +1 -1
- package/src/navigation-instruments/gauge-radial-proportional/gauge-radial-proportional.stories.ts +1 -1
- package/src/navigation-instruments/graph-mini/graph-mini.stories.ts +1 -1
- package/src/navigation-instruments/indicator-graph/indicator-graph.stories.ts +1 -1
- package/src/navigation-instruments/instrument-field/instrument-field.stories.ts +1 -1
- package/src/navigation-instruments/pitch-roll-heave/pitch-roll-heave.stories.ts +1 -1
- package/src/navigation-instruments/pitch-roll-yaw/pitch-roll-yaw.stories.ts +1 -1
- package/src/navigation-instruments/position-deviation/position-deviation.stories.ts +1 -1
- package/src/navigation-instruments/readout/readout.stories.ts +1 -1
- package/src/navigation-instruments/readout-list/readout-list.stories.ts +1 -1
- package/src/navigation-instruments/readout-list-item/readout-list-item.stories.ts +1 -1
- package/src/navigation-instruments/speed-arrows/speed-arrows.stories.ts +1 -1
- package/src/navigation-instruments/speed-directions/speed-directions.stories.ts +1 -1
- package/src/navigation-instruments/top-view-propulsion/top-view-propulsion.stories.ts +1 -1
- package/src/navigation-instruments/velocity-projection-plot/velocity-projection-plot.stories.ts +1 -1
- package/src/navigation-instruments/watch/watch.stories.ts +1 -1
- package/src/navigation-instruments/watch-flat/watch-flat.stories.ts +1 -1
- package/src/navigation-instruments/wind-propulsion/wind-propulsion.stories.ts +1 -1
- package/src/pages/alert-detail-page/alert-detail-page.stories.ts +1 -1
- package/src/pages/alert-list-page-small/alert-list-page-small.stories.ts +1 -1
- package/vitest.browser.config.ts +4 -2
- package/vitest.config.ts +10 -0
|
@@ -77,7 +77,7 @@ const SAMPLE_MULTI_DATASETS = [
|
|
|
77
77
|
const meta: Meta = {
|
|
78
78
|
title: 'Bars and Graphs/Area Graph',
|
|
79
79
|
component: 'obc-area-graph',
|
|
80
|
-
tags: ['autodocs', '6.0'],
|
|
80
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
81
81
|
render: (_args) => html`
|
|
82
82
|
<obc-area-graph
|
|
83
83
|
.data=${_args.data}
|
|
@@ -15,7 +15,7 @@ const SAMPLE_DATA = [
|
|
|
15
15
|
const meta: Meta = {
|
|
16
16
|
title: 'Bars and Graphs/Donut Chart',
|
|
17
17
|
component: 'obc-donut-chart',
|
|
18
|
-
tags: ['autodocs', '6.0'],
|
|
18
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
19
19
|
argTypes: {
|
|
20
20
|
fixedHeight: {
|
|
21
21
|
control: {type: 'range', min: 48, max: 512},
|
|
@@ -43,7 +43,7 @@ const SUNBURST_DATA = [
|
|
|
43
43
|
const meta: Meta = {
|
|
44
44
|
title: 'Bars and Graphs/Pie Chart',
|
|
45
45
|
component: 'obc-pie-chart',
|
|
46
|
-
tags: ['autodocs', '6.0'],
|
|
46
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
47
47
|
argTypes: {
|
|
48
48
|
fixedHeight: {
|
|
49
49
|
control: {type: 'range', min: 48, max: 512},
|
|
@@ -23,7 +23,7 @@ const SAMPLE_DATA = [
|
|
|
23
23
|
const meta: Meta = {
|
|
24
24
|
title: 'Bars and Graphs/Polar Chart',
|
|
25
25
|
component: 'obc-polar-chart',
|
|
26
|
-
tags: ['autodocs', '6.0'],
|
|
26
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
27
27
|
argTypes: {
|
|
28
28
|
fixedHeight: {
|
|
29
29
|
control: {type: 'range', min: 48, max: 512, step: 8},
|
|
@@ -10,7 +10,7 @@ const SAMPLE_DATA = [70, 50, 30];
|
|
|
10
10
|
const meta: Meta = {
|
|
11
11
|
title: 'Bars and Graphs/Radial Bar Chart',
|
|
12
12
|
component: 'obc-radial-bar-chart',
|
|
13
|
-
tags: ['autodocs', '6.0'],
|
|
13
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
14
14
|
argTypes: {
|
|
15
15
|
fixedHeight: {
|
|
16
16
|
control: {type: 'range', min: 48, max: 512, step: 8},
|
|
@@ -31,7 +31,7 @@ const SAMPLE_DATA = [
|
|
|
31
31
|
|
|
32
32
|
const meta: Meta = {
|
|
33
33
|
title: 'Bars and Graphs/Bar Horizontal',
|
|
34
|
-
tags: ['autodocs', '6.0'],
|
|
34
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
35
35
|
component: 'obc-bar-horizontal',
|
|
36
36
|
argTypes: {
|
|
37
37
|
minValue: {control: {type: 'range', min: -100, max: 100}},
|
|
@@ -32,7 +32,7 @@ const SAMPLE_DATA = [
|
|
|
32
32
|
|
|
33
33
|
const meta: Meta = {
|
|
34
34
|
title: 'Bars and Graphs/Bar Vertical',
|
|
35
|
-
tags: ['autodocs', '6.0'],
|
|
35
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
36
36
|
component: 'obc-bar-vertical',
|
|
37
37
|
argTypes: {
|
|
38
38
|
minValue: {control: {type: 'range', min: -100, max: 100}},
|
|
@@ -23,7 +23,7 @@ type InstrumentRadialStoryArgs = Partial<ObcInstrumentRadial> & {
|
|
|
23
23
|
|
|
24
24
|
const meta: Meta<InstrumentRadialStoryArgs> = {
|
|
25
25
|
title: 'Building Blocks/Instrument Radial',
|
|
26
|
-
tags: ['6.0'],
|
|
26
|
+
tags: ['6.0', 'experimental'],
|
|
27
27
|
component: 'obc-instrument-radial',
|
|
28
28
|
decorators: [widthDecorator],
|
|
29
29
|
args: {
|
|
@@ -120,7 +120,7 @@ function renderShowcase(cards: ShowcaseCard[]) {
|
|
|
120
120
|
|
|
121
121
|
const meta = {
|
|
122
122
|
title: 'Building Blocks/Readout Block',
|
|
123
|
-
tags: ['autodocs', '6.0', '
|
|
123
|
+
tags: ['autodocs', '6.0', 'experimental'],
|
|
124
124
|
component: 'obc-readout-block',
|
|
125
125
|
decorators: [themedDecorator],
|
|
126
126
|
parameters: {
|
|
@@ -210,7 +210,8 @@ export class ObcAccordionCard extends LitElement {
|
|
|
210
210
|
this.expanded = !this.expanded;
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
|
-
*
|
|
213
|
+
* Fired when the accordion is expanded or collapsed.
|
|
214
|
+
* @fires accordion-toggle
|
|
214
215
|
*/
|
|
215
216
|
this.dispatchEvent(
|
|
216
217
|
new CustomEvent('accordion-toggle', {
|
|
@@ -13,7 +13,7 @@ import '../../icons/icon-ship.js';
|
|
|
13
13
|
const meta: Meta<ObcAdviceFloatingItem> = {
|
|
14
14
|
title: 'Application Components/Notifications/Advice Floating Item',
|
|
15
15
|
component: 'obc-advice-floating-item',
|
|
16
|
-
tags: ['6.0'],
|
|
16
|
+
tags: ['6.0', 'beta'],
|
|
17
17
|
argTypes: {
|
|
18
18
|
type: {
|
|
19
19
|
control: 'select',
|
|
@@ -6,7 +6,7 @@ import {ObcMessageMenuItemSize} from '../message-menu-item/message-menu-item.js'
|
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof ObcAdviceMenuItem> = {
|
|
8
8
|
title: 'Application Components/Notifications/Advice Menu Item',
|
|
9
|
-
tags: ['autodocs', '6.0'],
|
|
9
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
10
10
|
component: 'obc-advice-menu-item',
|
|
11
11
|
args: {
|
|
12
12
|
title: 'Advice title',
|
|
@@ -6,7 +6,7 @@ import {html} from 'lit';
|
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof ObcAdviceMessageItem> = {
|
|
8
8
|
title: 'Application Components/Notifications/Advice Message Item',
|
|
9
|
-
tags: ['6.0'],
|
|
9
|
+
tags: ['6.0', 'beta'],
|
|
10
10
|
component: 'obc-advice-message-item',
|
|
11
11
|
args: {
|
|
12
12
|
title: 'Advice title',
|
|
@@ -223,14 +223,16 @@ export class ObcAdviceMessageItem extends LitElement {
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
/**
|
|
226
|
-
*
|
|
226
|
+
* Fired when the main message area is clicked.
|
|
227
|
+
* @fires message-click
|
|
227
228
|
*/
|
|
228
229
|
private handleMessageClick() {
|
|
229
230
|
this.dispatchEvent(new CustomEvent('message-click'));
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
/**
|
|
233
|
-
*
|
|
234
|
+
* Fired when the action button (text or icon) is clicked.
|
|
235
|
+
* @fires action-click
|
|
234
236
|
*/
|
|
235
237
|
private handleActionClick() {
|
|
236
238
|
this.dispatchEvent(new CustomEvent('action-click'));
|
|
@@ -13,7 +13,7 @@ import {html} from 'lit';
|
|
|
13
13
|
|
|
14
14
|
const meta: Meta<typeof ObcAlertFrame> = {
|
|
15
15
|
title: 'UI Components/Message and Alerts/Alert Frame',
|
|
16
|
-
tags: ['autodocs', '6.0'],
|
|
16
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
17
17
|
component: 'obc-alert-frame',
|
|
18
18
|
args: {
|
|
19
19
|
type: ObcAlertFrameType.SmallSideFlip,
|
|
@@ -56,7 +56,7 @@ export class ObcAppMenu extends LitElement {
|
|
|
56
56
|
* Handles input events from the search field and emits a `search` event with the current value.
|
|
57
57
|
*
|
|
58
58
|
* @param e - The input event from the search field.
|
|
59
|
-
* @fires
|
|
59
|
+
* @fires search
|
|
60
60
|
*/
|
|
61
61
|
onSearchInput(e: Event) {
|
|
62
62
|
this.dispatchEvent(
|
|
@@ -8,7 +8,7 @@ import {html} from 'lit';
|
|
|
8
8
|
|
|
9
9
|
const meta: Meta<ObcAttachmentListItem> = {
|
|
10
10
|
title: 'UI Components/Tables and Lists/Attachment List Item',
|
|
11
|
-
tags: ['autodocs', '6.1'],
|
|
11
|
+
tags: ['autodocs', '6.1', 'beta'],
|
|
12
12
|
component: 'obc-attachment-list-item',
|
|
13
13
|
args: {
|
|
14
14
|
label: 'Document.pdf',
|
|
@@ -212,7 +212,8 @@ export class ObcBrillianceMenu extends LitElement {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
215
|
+
* Handles palette selection changes and emits `palette-changed`.
|
|
216
|
+
* @fires palette-changed
|
|
216
217
|
* @param {CustomEvent} event
|
|
217
218
|
*/
|
|
218
219
|
onPaletteChanged(event: CustomEvent) {
|
|
@@ -225,7 +226,8 @@ export class ObcBrillianceMenu extends LitElement {
|
|
|
225
226
|
}
|
|
226
227
|
|
|
227
228
|
/**
|
|
228
|
-
*
|
|
229
|
+
* Handles brightness slider changes and emits `brightness-changed`.
|
|
230
|
+
* @fires brightness-changed
|
|
229
231
|
* @param {CustomEvent} event
|
|
230
232
|
*/
|
|
231
233
|
handleBrightnessChanged(event: CustomEvent) {
|
|
@@ -258,7 +260,8 @@ export class ObcBrillianceMenu extends LitElement {
|
|
|
258
260
|
}
|
|
259
261
|
|
|
260
262
|
/**
|
|
261
|
-
*
|
|
263
|
+
* Handles link palette changes and emits `link-palette-changed`.
|
|
264
|
+
* @fires link-palette-changed
|
|
262
265
|
* @param {CustomEvent} event
|
|
263
266
|
*/
|
|
264
267
|
onLinkPaletteChanged(event: CustomEvent) {
|
|
@@ -270,7 +273,8 @@ export class ObcBrillianceMenu extends LitElement {
|
|
|
270
273
|
}
|
|
271
274
|
|
|
272
275
|
/**
|
|
273
|
-
*
|
|
276
|
+
* Handles link brightness changes and emits `link-brightness-changed`.
|
|
277
|
+
* @fires link-brightness-changed
|
|
274
278
|
* @param {CustomEvent} event
|
|
275
279
|
*/
|
|
276
280
|
onLinkBrightnessChanged(event: CustomEvent) {
|
|
@@ -338,7 +338,7 @@ function renderCalendar(args: CalendarStoryArgs) {
|
|
|
338
338
|
|
|
339
339
|
const meta: Meta<CalendarStoryArgs> = {
|
|
340
340
|
title: 'Application Components/Calendar/Calendar',
|
|
341
|
-
tags: ['autodocs', '6.0'],
|
|
341
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
342
342
|
component: 'obc-calendar',
|
|
343
343
|
render: renderCalendar,
|
|
344
344
|
argTypes: {
|
|
@@ -197,7 +197,7 @@ export class ObcCheckButton extends LitElement {
|
|
|
197
197
|
* Fired after the user toggles the check button.
|
|
198
198
|
* The event detail includes the new checked state and the type of the button.
|
|
199
199
|
*
|
|
200
|
-
* @fires
|
|
200
|
+
* @fires check-button-click
|
|
201
201
|
*/
|
|
202
202
|
this.dispatchEvent(
|
|
203
203
|
new CustomEvent('check-button-click', {
|
|
@@ -96,8 +96,8 @@ export type ObcCheckboxChangeEvent = CustomEvent<{
|
|
|
96
96
|
* ```
|
|
97
97
|
*
|
|
98
98
|
* @slot - No named slots.
|
|
99
|
-
* @fires {ObcCheckboxChangeEvent} change -
|
|
100
|
-
* @fires {ObcCheckboxChangeEvent} disabled -
|
|
99
|
+
* @fires {ObcCheckboxChangeEvent} change - Emitted when the status changes.
|
|
100
|
+
* @fires {ObcCheckboxChangeEvent} disabled - Emitted when the disabled state changes.
|
|
101
101
|
* @stable
|
|
102
102
|
*/
|
|
103
103
|
@customElement('obc-checkbox')
|
|
@@ -72,7 +72,7 @@ customElements.define('command-menu-story-wrapper', CommandMenuStoryWrapper);
|
|
|
72
72
|
|
|
73
73
|
const meta: Meta<typeof ObcCommandMenu> = {
|
|
74
74
|
title: 'Application Components/Menus/Command Menu',
|
|
75
|
-
tags: ['6.0'],
|
|
75
|
+
tags: ['6.0', 'beta'],
|
|
76
76
|
component: 'obc-command-menu',
|
|
77
77
|
args: {
|
|
78
78
|
showLocation: true,
|
|
@@ -177,7 +177,7 @@ export class ObcCommandMenu extends LitElement {
|
|
|
177
177
|
/**
|
|
178
178
|
* Handles the toggle change event from the start-stop switch and emits a `change` event with the new command state.
|
|
179
179
|
*
|
|
180
|
-
* @fires
|
|
180
|
+
* @fires change
|
|
181
181
|
*/
|
|
182
182
|
private onChange(event: ObcStartStopSwitchChangeEvent) {
|
|
183
183
|
// Stop the start-stop-switch's composed event from leaking through
|
|
@@ -6,7 +6,7 @@ import '../../icons/icon-placeholder.js';
|
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof ObcContextMenuInput> = {
|
|
8
8
|
title: 'UI Components/Menus and Navigation/Context Menu Input',
|
|
9
|
-
tags: ['6.0'],
|
|
9
|
+
tags: ['6.0', 'beta'],
|
|
10
10
|
component: 'obc-context-menu-input',
|
|
11
11
|
argTypes: {
|
|
12
12
|
type: {
|
|
@@ -10,7 +10,7 @@ interface DateItemStoryArgs extends Partial<ObcDateItem> {
|
|
|
10
10
|
|
|
11
11
|
const meta: Meta<DateItemStoryArgs> = {
|
|
12
12
|
title: 'Application Components/Calendar/Date Item',
|
|
13
|
-
tags: ['6.0'],
|
|
13
|
+
tags: ['6.0', 'beta'],
|
|
14
14
|
component: 'obc-date-item',
|
|
15
15
|
argTypes: {
|
|
16
16
|
width: {
|
|
@@ -224,8 +224,8 @@ export class ObcDropdownButton extends LitElement {
|
|
|
224
224
|
/**
|
|
225
225
|
* Handles the dropdown-change and change event when a new option is selected. Updates the selected value and label, and dispatches a `dropdown-change` and 'change' event with the new selection.
|
|
226
226
|
*
|
|
227
|
-
* @fires
|
|
228
|
-
* @fires
|
|
227
|
+
* @fires dropdown-change
|
|
228
|
+
* @fires change
|
|
229
229
|
*/
|
|
230
230
|
private changeHandler(event: Event) {
|
|
231
231
|
const target = event.target as HTMLSelectElement;
|
|
@@ -9,7 +9,7 @@ interface EventItemStoryArgs extends Partial<ObcEventItem> {
|
|
|
9
9
|
|
|
10
10
|
const meta: Meta<EventItemStoryArgs> = {
|
|
11
11
|
title: 'Application Components/Calendar/Event Item',
|
|
12
|
-
tags: ['6.0'],
|
|
12
|
+
tags: ['6.0', 'beta'],
|
|
13
13
|
component: 'obc-event-item',
|
|
14
14
|
decorators: [widthDecorator],
|
|
15
15
|
argTypes: {
|
|
@@ -28,7 +28,7 @@ const sampleEvents: DateItemEvent[] = [
|
|
|
28
28
|
|
|
29
29
|
const meta: Meta<EventListStoryArgs> = {
|
|
30
30
|
title: 'Application Components/Calendar/Event List',
|
|
31
|
-
tags: ['6.0'],
|
|
31
|
+
tags: ['6.0', 'beta'],
|
|
32
32
|
component: 'obc-event-list',
|
|
33
33
|
decorators: [widthDecorator],
|
|
34
34
|
argTypes: {
|
|
@@ -50,7 +50,7 @@ const renderIconOnly = (args: StoryObj<ObcMenuButton>['args']) => html`
|
|
|
50
50
|
|
|
51
51
|
const meta: Meta<ObcMenuButton> = {
|
|
52
52
|
title: 'UI Components/Buttons/Menu Button',
|
|
53
|
-
tags: ['autodocs', '6.0'],
|
|
53
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
54
54
|
component: 'obc-menu-button',
|
|
55
55
|
argTypes: {
|
|
56
56
|
label: {control: 'text', description: 'Constant label on the button'},
|
|
@@ -266,7 +266,8 @@ export class ObcMenuButton extends LitElement {
|
|
|
266
266
|
if (e.newState === 'open') {
|
|
267
267
|
void this.focusMenuAfterOpen();
|
|
268
268
|
/**
|
|
269
|
-
*
|
|
269
|
+
* Fired when the menu is opened.
|
|
270
|
+
* @event open
|
|
270
271
|
* @type {CustomEvent<void>}
|
|
271
272
|
*/
|
|
272
273
|
this.dispatchEvent(new CustomEvent('open'));
|
|
@@ -277,7 +278,8 @@ export class ObcMenuButton extends LitElement {
|
|
|
277
278
|
this.triggerButton?.focus();
|
|
278
279
|
}
|
|
279
280
|
/**
|
|
280
|
-
*
|
|
281
|
+
* Fired when the menu is closed.
|
|
282
|
+
* @event close
|
|
281
283
|
* @type {CustomEvent<void>}
|
|
282
284
|
*/
|
|
283
285
|
this.dispatchEvent(new CustomEvent('close'));
|
|
@@ -337,7 +339,8 @@ export class ObcMenuButton extends LitElement {
|
|
|
337
339
|
this.selectedValues = e.detail.selectedValues;
|
|
338
340
|
|
|
339
341
|
/**
|
|
340
|
-
*
|
|
342
|
+
* Fired when the menu selection changes.
|
|
343
|
+
* @event change
|
|
341
344
|
* @type {CustomEvent<{selectedValues: string[], selectedOptions: Array<ContextMenuOption>}>}
|
|
342
345
|
*/
|
|
343
346
|
this.dispatchEvent(new CustomEvent('change', {detail: e.detail}));
|
|
@@ -350,7 +353,8 @@ export class ObcMenuButton extends LitElement {
|
|
|
350
353
|
e: CustomEvent<{value: string; option: ContextMenuOption}>
|
|
351
354
|
) {
|
|
352
355
|
/**
|
|
353
|
-
*
|
|
356
|
+
* Fired when a menu item is clicked.
|
|
357
|
+
* @event item-click
|
|
354
358
|
* @type {CustomEvent<{value: string, option: ContextMenuOption}>}
|
|
355
359
|
*/
|
|
356
360
|
this.dispatchEvent(new CustomEvent('item-click', {detail: e.detail}));
|
|
@@ -9,7 +9,7 @@ import '../../icons/icon-placeholder.js';
|
|
|
9
9
|
|
|
10
10
|
const meta: Meta<ObcMessageMenuItem> = {
|
|
11
11
|
title: 'UI Components/Message and Alerts/Message Menu Item',
|
|
12
|
-
tags: ['autodocs', '6.0'],
|
|
12
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
13
13
|
component: 'obc-message-menu-item',
|
|
14
14
|
argTypes: {
|
|
15
15
|
// Layout
|
|
@@ -98,7 +98,7 @@ enum NavigationItemRole {
|
|
|
98
98
|
*
|
|
99
99
|
* @slot icon - Leading icon slot (optional, shown if provided). Set `hasIcon` to `true` to show the icon.
|
|
100
100
|
* @slot trailing-icon - Trailing icon slot (optional, shown if provided). Set `hasTrailingIcon` to `true` to show.
|
|
101
|
-
* @fires
|
|
101
|
+
* @fires click - Fired when the navigation item is clicked, either as a link or as a button.
|
|
102
102
|
* @stable
|
|
103
103
|
*/
|
|
104
104
|
|
|
@@ -176,13 +176,6 @@ export class ObcNavigationItem extends LitElement {
|
|
|
176
176
|
// In tree mode the row renders an `obc-tree-navigation-item` instead of an `<a>`.
|
|
177
177
|
@query('obc-tree-navigation-item') private treeItemElement?: HTMLElement;
|
|
178
178
|
|
|
179
|
-
/**
|
|
180
|
-
* @fires {CustomEvent<void>} click - Fired when the navigation item is clicked (either as a link or button).
|
|
181
|
-
*/
|
|
182
|
-
onClick() {
|
|
183
|
-
dispatchEvent(new CustomEvent('click'));
|
|
184
|
-
}
|
|
185
|
-
|
|
186
179
|
private handleKeydown(event: KeyboardEvent) {
|
|
187
180
|
const isMenuItem =
|
|
188
181
|
this.getAttribute('role') === NavigationItemRole.MenuItem;
|
|
@@ -233,7 +226,6 @@ export class ObcNavigationItem extends LitElement {
|
|
|
233
226
|
.href=${this.href}
|
|
234
227
|
.terminalType=${this.terminalType}
|
|
235
228
|
.alerts=${this.alerts}
|
|
236
|
-
@click=${this.onClick}
|
|
237
229
|
>
|
|
238
230
|
${this.hasIcon
|
|
239
231
|
? html`<slot name="icon" slot="icon"></slot>`
|
|
@@ -256,7 +248,6 @@ export class ObcNavigationItem extends LitElement {
|
|
|
256
248
|
[this.variant]: true,
|
|
257
249
|
})}"
|
|
258
250
|
href=${ifDefined(this.href)}
|
|
259
|
-
@click=${this.onClick}
|
|
260
251
|
@keydown=${this.handleKeydown}
|
|
261
252
|
tabindex=${ifDefined(this.getItemTabIndex())}
|
|
262
253
|
role=${ifDefined(this.getItemRole())}
|
|
@@ -146,7 +146,8 @@ export class ObcNavigationItemGroup extends LitElement {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
149
|
+
* Opens the flyout panel and emits the `open` event.
|
|
150
|
+
* @fires open
|
|
150
151
|
*/
|
|
151
152
|
open() {
|
|
152
153
|
this.openContainer = true;
|
|
@@ -6,7 +6,7 @@ import {html} from 'lit';
|
|
|
6
6
|
// More on how to set up stories at: https://storybook.js.org/docs/web-components/writing-stories/introduction
|
|
7
7
|
const meta: Meta<typeof ObcNotificationBadgeButton> = {
|
|
8
8
|
title: 'UI Components/Buttons/Notification Badge Button',
|
|
9
|
-
tags: ['autodocs', '6.0'],
|
|
9
|
+
tags: ['autodocs', '6.0', 'deprecated'],
|
|
10
10
|
component: 'obc-notification-badge-button',
|
|
11
11
|
} satisfies Meta<ObcNotificationBadgeButton>;
|
|
12
12
|
|
|
@@ -207,7 +207,7 @@ export class ObcNotificationButton extends LitElement {
|
|
|
207
207
|
/**
|
|
208
208
|
* Handles click events on the button and dispatches the `obc-click` custom event.
|
|
209
209
|
*
|
|
210
|
-
* @fires
|
|
210
|
+
* @fires obc-click
|
|
211
211
|
*/
|
|
212
212
|
private handleClick() {
|
|
213
213
|
const event = new CustomEvent<NotificationButtonClickEvent>('obc-click', {
|
|
@@ -13,7 +13,7 @@ import '../../icons/icon-ship.js';
|
|
|
13
13
|
const meta: Meta<ObcNotificationFloatingItem> = {
|
|
14
14
|
title: 'Application Components/Notifications/Notification Floating Item',
|
|
15
15
|
component: 'obc-notification-floating-item',
|
|
16
|
-
tags: ['6.0'],
|
|
16
|
+
tags: ['6.0', 'beta'],
|
|
17
17
|
argTypes: {
|
|
18
18
|
type: {
|
|
19
19
|
control: 'select',
|
|
@@ -6,7 +6,7 @@ import {ObcMessageMenuItemSize} from '../message-menu-item/message-menu-item.js'
|
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof ObcNotificationMenuItem> = {
|
|
8
8
|
title: 'Application Components/Notifications/Notification Menu Item',
|
|
9
|
-
tags: ['autodocs', '6.0'],
|
|
9
|
+
tags: ['autodocs', '6.0', 'beta'],
|
|
10
10
|
component: 'obc-notification-menu-item',
|
|
11
11
|
args: {
|
|
12
12
|
title: 'Notification title',
|
|
@@ -6,7 +6,7 @@ import {html} from 'lit';
|
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof ObcNotificationMessageItem> = {
|
|
8
8
|
title: 'Application Components/Notifications/Notification Message Item',
|
|
9
|
-
tags: ['6.0'],
|
|
9
|
+
tags: ['6.0', 'beta'],
|
|
10
10
|
component: 'obc-notification-message-item',
|
|
11
11
|
args: {
|
|
12
12
|
title: 'Notification title',
|