@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.151 → 2.0.0-next.152
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/vitest.setup.ts +12 -1
- package/bundle/openbridge-webcomponents.bundle.js +989 -319
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +1514 -77
- package/dist/alert-severity.d.ts +12 -9
- package/dist/alert-severity.d.ts.map +1 -1
- package/dist/alert-severity.js +30 -38
- package/dist/alert-severity.js.map +1 -1
- package/dist/building-blocks/bar-horizontal/bar-horizontal.d.ts +6 -0
- package/dist/building-blocks/bar-horizontal/bar-horizontal.d.ts.map +1 -1
- package/dist/building-blocks/bar-horizontal/bar-horizontal.js +6 -1
- package/dist/building-blocks/bar-horizontal/bar-horizontal.js.map +1 -1
- package/dist/building-blocks/bar-vertical/bar-vertical.d.ts +6 -0
- package/dist/building-blocks/bar-vertical/bar-vertical.d.ts.map +1 -1
- package/dist/building-blocks/bar-vertical/bar-vertical.js +6 -1
- package/dist/building-blocks/bar-vertical/bar-vertical.js.map +1 -1
- package/dist/building-blocks/chart-line/chart-line-base.d.ts +129 -0
- package/dist/building-blocks/chart-line/chart-line-base.d.ts.map +1 -1
- package/dist/building-blocks/chart-line/chart-line-base.js +464 -79
- package/dist/building-blocks/chart-line/chart-line-base.js.map +1 -1
- package/dist/building-blocks/external-scale/external-scale.d.ts +11 -0
- package/dist/building-blocks/external-scale/external-scale.d.ts.map +1 -1
- package/dist/building-blocks/external-scale/external-scale.js +45 -12
- package/dist/building-blocks/external-scale/external-scale.js.map +1 -1
- package/dist/charthelpers/index.d.ts +1 -0
- package/dist/charthelpers/index.d.ts.map +1 -1
- package/dist/charthelpers/index.js +7 -1
- package/dist/charthelpers/index.js.map +1 -1
- package/dist/charthelpers/range-labels.d.ts +55 -0
- package/dist/charthelpers/range-labels.d.ts.map +1 -0
- package/dist/charthelpers/range-labels.js +36 -0
- package/dist/charthelpers/range-labels.js.map +1 -0
- package/dist/components/alert-button/alert-button.css.js +13 -21
- package/dist/components/alert-button/alert-button.css.js.map +1 -1
- package/dist/components/alert-button/alert-button.d.ts +9 -4
- package/dist/components/alert-button/alert-button.d.ts.map +1 -1
- package/dist/components/alert-button/alert-button.js +24 -15
- package/dist/components/alert-button/alert-button.js.map +1 -1
- package/dist/components/alert-frame/alert-frame.css.js +109 -33
- package/dist/components/alert-frame/alert-frame.css.js.map +1 -1
- package/dist/components/alert-frame/alert-frame.d.ts +34 -7
- package/dist/components/alert-frame/alert-frame.d.ts.map +1 -1
- package/dist/components/alert-frame/alert-frame.js +134 -30
- package/dist/components/alert-frame/alert-frame.js.map +1 -1
- package/dist/components/alert-icon/alert-icon.d.ts +10 -7
- package/dist/components/alert-icon/alert-icon.d.ts.map +1 -1
- package/dist/components/alert-icon/alert-icon.js +37 -60
- package/dist/components/alert-icon/alert-icon.js.map +1 -1
- package/dist/components/alert-menu-item/alert-menu-item.css.js +1 -4
- package/dist/components/alert-menu-item/alert-menu-item.css.js.map +1 -1
- package/dist/components/date-item/date-item.css.js +3 -3
- package/dist/components/keyboard-full/keyboard-full.css.js +4 -4
- package/dist/components/message-menu-item/message-menu-item.css.js +2 -6
- package/dist/components/message-menu-item/message-menu-item.css.js.map +1 -1
- package/dist/components/sequence-toolbar/sequence-toolbar.css.js +1 -2
- package/dist/components/sequence-toolbar/sequence-toolbar.css.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/navigation-instruments/gauge-trend/gauge-trend.d.ts +6 -0
- package/dist/navigation-instruments/gauge-trend/gauge-trend.d.ts.map +1 -1
- package/dist/navigation-instruments/gauge-trend/gauge-trend.js +8 -0
- package/dist/navigation-instruments/gauge-trend/gauge-trend.js.map +1 -1
- package/dist/navigation-instruments/instrument-field/instrument-field.css.js +2 -2
- package/dist/navigation-instruments/readout/readout.d.ts.map +1 -1
- package/dist/navigation-instruments/readout/readout.js +2 -1
- package/dist/navigation-instruments/readout/readout.js.map +1 -1
- package/dist/navigation-instruments/readout-list-item/readout-list-item.d.ts.map +1 -1
- package/dist/navigation-instruments/readout-list-item/readout-list-item.js +2 -1
- package/dist/navigation-instruments/readout-list-item/readout-list-item.js.map +1 -1
- package/dist/openbridge.css +19 -4
- package/dist/palettes/blinking.d.ts +14 -4
- package/dist/palettes/blinking.d.ts.map +1 -1
- package/dist/palettes/blinking.js +41 -35
- package/dist/palettes/blinking.js.map +1 -1
- package/dist/palettes/flashing-controller.d.ts +21 -0
- package/dist/palettes/flashing-controller.d.ts.map +1 -0
- package/dist/palettes/flashing-controller.js +45 -0
- package/dist/palettes/flashing-controller.js.map +1 -0
- package/dist/svghelpers/index.d.ts +1 -0
- package/dist/svghelpers/index.d.ts.map +1 -1
- package/dist/svghelpers/index.js +2 -0
- package/dist/svghelpers/index.js.map +1 -1
- package/dist/svghelpers/rounded-rect.d.ts +15 -0
- package/dist/svghelpers/rounded-rect.d.ts.map +1 -0
- package/dist/svghelpers/rounded-rect.js +29 -0
- package/dist/svghelpers/rounded-rect.js.map +1 -0
- package/dist/types.d.ts +14 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/script/check-css-variables.ts +2 -15
- package/src/alert-severity.spec.ts +56 -0
- package/src/alert-severity.ts +45 -43
- package/src/bars-graphs/area-graph/area-graph.stories.ts +235 -1
- package/src/bars-graphs/line-graph/line-graph.stories.ts +24 -0
- package/src/building-blocks/bar-horizontal/bar-horizontal.ts +7 -0
- package/src/building-blocks/bar-vertical/bar-vertical.ts +7 -0
- package/src/building-blocks/chart-line/chart-line-base.spec.ts +767 -0
- package/src/building-blocks/chart-line/chart-line-base.stories.ts +124 -0
- package/src/building-blocks/chart-line/chart-line-base.ts +671 -97
- package/src/building-blocks/chart-line/chart-sizing-battleground.stories.ts +17 -0
- package/src/building-blocks/external-scale/external-scale.spec.ts +154 -0
- package/src/building-blocks/external-scale/external-scale.ts +78 -20
- package/src/charthelpers/index.ts +1 -0
- package/src/charthelpers/range-labels.spec.ts +46 -0
- package/src/charthelpers/range-labels.ts +93 -0
- package/src/components/alert-button/alert-button.css +10 -23
- package/src/components/alert-button/alert-button.spec.ts +56 -15
- package/src/components/alert-button/alert-button.stories.ts +5 -1
- package/src/components/alert-button/alert-button.ts +33 -24
- package/src/components/alert-frame/alert-flash-scenario.stories.ts +669 -0
- package/src/components/alert-frame/alert-frame.css +106 -33
- package/src/components/alert-frame/alert-frame.spec.ts +176 -17
- package/src/components/alert-frame/alert-frame.stories.ts +61 -0
- package/src/components/alert-frame/alert-frame.ts +179 -41
- package/src/components/alert-icon/alert-icon.spec.ts +82 -27
- package/src/components/alert-icon/alert-icon.stories.ts +7 -1
- package/src/components/alert-icon/alert-icon.ts +48 -74
- package/src/components/alert-menu-item/alert-menu-item.css +1 -4
- package/src/components/date-item/date-item.css +3 -3
- package/src/components/keyboard-full/keyboard-full.css +4 -4
- package/src/components/message-menu-item/message-menu-item.css +2 -6
- package/src/components/sequence-toolbar/sequence-toolbar.css +1 -2
- package/src/navigation-instruments/gauge-trend/gauge-trend.stories.ts +29 -0
- package/src/navigation-instruments/gauge-trend/gauge-trend.ts +11 -0
- package/src/navigation-instruments/instrument-field/instrument-field.css +2 -2
- package/src/navigation-instruments/readout/readout.ts +2 -1
- package/src/navigation-instruments/readout-list-item/readout-list-item.ts +2 -1
- package/src/palettes/blinking.spec.ts +83 -0
- package/src/palettes/blinking.ts +47 -35
- package/src/palettes/flashing-controller.ts +62 -0
- package/src/palettes/manual.css +18 -4
- package/src/svghelpers/index.ts +1 -0
- package/src/svghelpers/rounded-rect.spec.ts +47 -0
- package/src/svghelpers/rounded-rect.ts +42 -0
- package/src/types.ts +20 -0
|
@@ -107,6 +107,7 @@ const meta: Meta = {
|
|
|
107
107
|
.showGridX=${_args.showGridX}
|
|
108
108
|
.showGridY=${_args.showGridY}
|
|
109
109
|
.showTickMarks=${_args.showTickMarks}
|
|
110
|
+
.rangeLabels=${_args.rangeLabels}
|
|
110
111
|
.xTicksLimit=${_args.xTicksLimit}
|
|
111
112
|
.xStepSize=${_args.xStepSize}
|
|
112
113
|
.yTicksLimit=${_args.yTicksLimit}
|
|
@@ -155,6 +156,10 @@ const meta: Meta = {
|
|
|
155
156
|
description: 'Show horizontal grid lines (y-axis). Default: true',
|
|
156
157
|
},
|
|
157
158
|
showTickMarks: {control: 'boolean'},
|
|
159
|
+
rangeLabels: {
|
|
160
|
+
control: {type: 'radio'},
|
|
161
|
+
options: ['none', 'y', 'x', 'xy'],
|
|
162
|
+
},
|
|
158
163
|
xTicksLimit: {
|
|
159
164
|
control: {type: 'number'},
|
|
160
165
|
description: 'Max number of x-axis ticks/grid lines (optional)',
|
|
@@ -231,6 +236,7 @@ const meta: Meta = {
|
|
|
231
236
|
showGridX: true, // Component defaults to false, but stories show grid by default
|
|
232
237
|
showGridY: true, // Component defaults to false, but stories show grid by default
|
|
233
238
|
showTickMarks: true, // Component defaults to false, but stories show tick marks by default
|
|
239
|
+
rangeLabels: 'none',
|
|
234
240
|
xTicksLimit: undefined,
|
|
235
241
|
xStepSize: undefined,
|
|
236
242
|
yTicksLimit: undefined,
|
|
@@ -338,6 +344,24 @@ export const MinHeight: Story = {
|
|
|
338
344
|
},
|
|
339
345
|
};
|
|
340
346
|
|
|
347
|
+
export const MinHeightRangeLabels: Story = {
|
|
348
|
+
name: 'Minimal Height With Range Labels (48px)',
|
|
349
|
+
args: {
|
|
350
|
+
width: 120,
|
|
351
|
+
height: 48,
|
|
352
|
+
rangeLabels: 'xy',
|
|
353
|
+
},
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
export const BelowThresholdRangeLabels: Story = {
|
|
357
|
+
name: 'Below Threshold With Range Labels (191px, Y Only)',
|
|
358
|
+
args: {
|
|
359
|
+
width: 288,
|
|
360
|
+
height: 191,
|
|
361
|
+
rangeLabels: 'y',
|
|
362
|
+
},
|
|
363
|
+
};
|
|
364
|
+
|
|
341
365
|
export const ThresholdHeight: Story = {
|
|
342
366
|
name: 'Threshold Height Line Graph (192px, where labels appear)',
|
|
343
367
|
args: {
|
|
@@ -916,6 +940,106 @@ export const ExternalScalesMinimal: Story = {
|
|
|
916
940
|
`,
|
|
917
941
|
};
|
|
918
942
|
|
|
943
|
+
export const ExternalScalesRangeLabels: Story = {
|
|
944
|
+
name: 'External Scales With Range Labels (160×160, Bottom + Right)',
|
|
945
|
+
play: async () => {
|
|
946
|
+
await new Promise((resolve) => setTimeout(resolve, 300));
|
|
947
|
+
},
|
|
948
|
+
argTypes: {
|
|
949
|
+
priority: {
|
|
950
|
+
control: 'select',
|
|
951
|
+
options: Object.values(Priority),
|
|
952
|
+
},
|
|
953
|
+
},
|
|
954
|
+
args: {
|
|
955
|
+
width: 160,
|
|
956
|
+
height: 160,
|
|
957
|
+
rangeLabels: 'xy',
|
|
958
|
+
priority: Priority.enhanced,
|
|
959
|
+
},
|
|
960
|
+
render: (_args) => html`
|
|
961
|
+
<obc-area-graph
|
|
962
|
+
.data=${SAMPLE_DATA}
|
|
963
|
+
.showGrid=${true}
|
|
964
|
+
.showGridX=${true}
|
|
965
|
+
.showGridY=${true}
|
|
966
|
+
.width=${_args.width}
|
|
967
|
+
.height=${_args.height}
|
|
968
|
+
.rangeLabels=${_args.rangeLabels}
|
|
969
|
+
.priority=${_args.priority}
|
|
970
|
+
>
|
|
971
|
+
<obc-bar-vertical
|
|
972
|
+
slot="right-scale"
|
|
973
|
+
.minValue=${0}
|
|
974
|
+
.maxValue=${10}
|
|
975
|
+
.height=${_args.height}
|
|
976
|
+
.side=${'right'}
|
|
977
|
+
.hasBar=${false}
|
|
978
|
+
.primaryTickmarkInterval=${2}
|
|
979
|
+
.secondaryTickmarkInterval=${1}
|
|
980
|
+
.priority=${_args.priority}
|
|
981
|
+
></obc-bar-vertical>
|
|
982
|
+
<obc-bar-horizontal
|
|
983
|
+
slot="bottom-scale"
|
|
984
|
+
.minValue=${0}
|
|
985
|
+
.maxValue=${12}
|
|
986
|
+
.width=${_args.width}
|
|
987
|
+
.side=${'bottom'}
|
|
988
|
+
.hasBar=${false}
|
|
989
|
+
.primaryTickmarkInterval=${2}
|
|
990
|
+
.secondaryTickmarkInterval=${1}
|
|
991
|
+
.priority=${_args.priority}
|
|
992
|
+
></obc-bar-horizontal>
|
|
993
|
+
</obc-area-graph>
|
|
994
|
+
`,
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Below the label threshold the canvas is inset by each slotted scale's
|
|
999
|
+
* reported thickness; `chart-line-base.spec.ts` pins that. No snapshot: canvas
|
|
1000
|
+
* anti-aliasing at the capture scale differs between CI runners.
|
|
1001
|
+
*/
|
|
1002
|
+
export const ExternalScalesBelowThreshold: Story = {
|
|
1003
|
+
name: 'External Scales Below The Threshold (160×160, No Range Labels)',
|
|
1004
|
+
tags: ['!snapshot'],
|
|
1005
|
+
args: {
|
|
1006
|
+
width: 160,
|
|
1007
|
+
height: 160,
|
|
1008
|
+
priority: Priority.enhanced,
|
|
1009
|
+
},
|
|
1010
|
+
render: (_args) => html`
|
|
1011
|
+
<obc-area-graph
|
|
1012
|
+
.data=${SAMPLE_DATA}
|
|
1013
|
+
.width=${_args.width}
|
|
1014
|
+
.height=${_args.height}
|
|
1015
|
+
.priority=${_args.priority}
|
|
1016
|
+
>
|
|
1017
|
+
<obc-bar-vertical
|
|
1018
|
+
slot="right-scale"
|
|
1019
|
+
.minValue=${0}
|
|
1020
|
+
.maxValue=${10}
|
|
1021
|
+
.height=${_args.height}
|
|
1022
|
+
.side=${'right'}
|
|
1023
|
+
.hasBar=${false}
|
|
1024
|
+
.primaryTickmarkInterval=${2}
|
|
1025
|
+
.secondaryTickmarkInterval=${1}
|
|
1026
|
+
.priority=${_args.priority}
|
|
1027
|
+
></obc-bar-vertical>
|
|
1028
|
+
<obc-bar-horizontal
|
|
1029
|
+
slot="bottom-scale"
|
|
1030
|
+
.minValue=${0}
|
|
1031
|
+
.maxValue=${12}
|
|
1032
|
+
.width=${_args.width}
|
|
1033
|
+
.side=${'bottom'}
|
|
1034
|
+
.hasBar=${false}
|
|
1035
|
+
.primaryTickmarkInterval=${2}
|
|
1036
|
+
.secondaryTickmarkInterval=${1}
|
|
1037
|
+
.priority=${_args.priority}
|
|
1038
|
+
></obc-bar-horizontal>
|
|
1039
|
+
</obc-area-graph>
|
|
1040
|
+
`,
|
|
1041
|
+
};
|
|
1042
|
+
|
|
919
1043
|
export const FixedAspectRatioScaling: StoryObj = {
|
|
920
1044
|
name: 'Fixed Aspect Ratio Scaling (responsive)',
|
|
921
1045
|
tags: ['skip-test'],
|