@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
|
@@ -103,6 +103,10 @@ const meta: Meta = {
|
|
|
103
103
|
showGridX: {control: 'boolean'},
|
|
104
104
|
showGridY: {control: 'boolean'},
|
|
105
105
|
showTickMarks: {control: 'boolean'},
|
|
106
|
+
rangeLabels: {
|
|
107
|
+
control: {type: 'radio'},
|
|
108
|
+
options: ['none', 'y', 'x', 'xy'],
|
|
109
|
+
},
|
|
106
110
|
xTicksLimit: {control: {type: 'number'}},
|
|
107
111
|
xStepSize: {control: {type: 'number'}},
|
|
108
112
|
yTicksLimit: {control: {type: 'number'}},
|
|
@@ -134,6 +138,7 @@ const meta: Meta = {
|
|
|
134
138
|
showGridX: true, // Component defaults to false, but stories show grid by default
|
|
135
139
|
showGridY: true, // Component defaults to false, but stories show grid by default
|
|
136
140
|
showTickMarks: true, // Component defaults to false, but stories show tick marks by default
|
|
141
|
+
rangeLabels: 'none',
|
|
137
142
|
xTicksLimit: undefined,
|
|
138
143
|
xStepSize: undefined,
|
|
139
144
|
yTicksLimit: undefined,
|
|
@@ -174,6 +179,7 @@ export const SingleSeries: Story = {
|
|
|
174
179
|
.showGridX=${_args.showGridX}
|
|
175
180
|
.showGridY=${_args.showGridY}
|
|
176
181
|
.showTickMarks=${_args.showTickMarks}
|
|
182
|
+
.rangeLabels=${_args.rangeLabels}
|
|
177
183
|
.xTicksLimit=${_args.xTicksLimit}
|
|
178
184
|
.xStepSize=${_args.xStepSize}
|
|
179
185
|
.yTicksLimit=${_args.yTicksLimit}
|
|
@@ -566,6 +572,24 @@ export const MinHeight: Story = {
|
|
|
566
572
|
},
|
|
567
573
|
};
|
|
568
574
|
|
|
575
|
+
export const MinHeightRangeLabels: Story = {
|
|
576
|
+
name: 'Minimal Height With Range Labels (48px)',
|
|
577
|
+
args: {
|
|
578
|
+
width: 120,
|
|
579
|
+
height: 48,
|
|
580
|
+
rangeLabels: 'xy',
|
|
581
|
+
},
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
export const BelowThresholdRangeLabels: Story = {
|
|
585
|
+
name: 'Below Threshold With Range Labels (191px, Y Only)',
|
|
586
|
+
args: {
|
|
587
|
+
width: 288,
|
|
588
|
+
height: 191,
|
|
589
|
+
rangeLabels: 'y',
|
|
590
|
+
},
|
|
591
|
+
};
|
|
592
|
+
|
|
569
593
|
export const ThresholdHeight: Story = {
|
|
570
594
|
name: 'Threshold Height Line Graph (192px, where labels appear)',
|
|
571
595
|
args: {
|
|
@@ -79,6 +79,10 @@ export {
|
|
|
79
79
|
* Above this width, the scale grows proportionally; below, it shrinks.
|
|
80
80
|
* @availableWhen scaleReferenceSize fixedAspectRatio==true
|
|
81
81
|
* @property hasScale - Show scale tickmarks
|
|
82
|
+
* @property showMainTickmarkLabels - Label the main tickmarks (min / 0 / max) instead of the
|
|
83
|
+
* primary interval ladder, for a scale too short for a ladder. A chart sets it on its
|
|
84
|
+
* slotted scales below its label threshold.
|
|
85
|
+
* @availableWhen showMainTickmarkLabels showLabels==true
|
|
82
86
|
* @property hasBar - Show bar
|
|
83
87
|
* @property scaleBackground - Show background behind the scale tickmarks.
|
|
84
88
|
* @property barContainerStyle - Bar container background style.
|
|
@@ -187,6 +191,7 @@ export class ObcBarHorizontal extends SetpointMixin(LitElement, {
|
|
|
187
191
|
// Bands (thickness)
|
|
188
192
|
@property({type: Boolean, attribute: false}) hasScale = true;
|
|
189
193
|
@property({type: Boolean, attribute: false}) showLabels = true;
|
|
194
|
+
@property({type: Boolean}) showMainTickmarkLabels = false;
|
|
190
195
|
@property({type: Boolean}) hasBar = false;
|
|
191
196
|
@property({type: Boolean})
|
|
192
197
|
scaleBackground = false;
|
|
@@ -267,6 +272,7 @@ export class ObcBarHorizontal extends SetpointMixin(LitElement, {
|
|
|
267
272
|
maxValue: this.maxValue,
|
|
268
273
|
hasScale: this.hasScale,
|
|
269
274
|
labels: this.showLabels,
|
|
275
|
+
mainTickmarkLabels: this.showMainTickmarkLabels,
|
|
270
276
|
hasBar: this.hasBar,
|
|
271
277
|
scaleBackground: this.scaleBackground,
|
|
272
278
|
barContainerStyle: this.barContainerStyle,
|
|
@@ -366,6 +372,7 @@ export class ObcBarHorizontal extends SetpointMixin(LitElement, {
|
|
|
366
372
|
const layoutChanged =
|
|
367
373
|
changed.has('side') ||
|
|
368
374
|
changed.has('showLabels') ||
|
|
375
|
+
changed.has('showMainTickmarkLabels') ||
|
|
369
376
|
changed.has('hasScale') ||
|
|
370
377
|
changed.has('hasBar') ||
|
|
371
378
|
changed.has('barThickness') ||
|
|
@@ -76,6 +76,10 @@ export {
|
|
|
76
76
|
* Above this height, the scale grows proportionally; below, it shrinks.
|
|
77
77
|
* @availableWhen scaleReferenceSize fixedAspectRatio==true
|
|
78
78
|
* @property hasScale - Show scale tickmarks
|
|
79
|
+
* @property showMainTickmarkLabels - Label the main tickmarks (min / 0 / max) instead of the
|
|
80
|
+
* primary interval ladder, for a scale too short for a ladder. A chart sets it on its
|
|
81
|
+
* slotted scales below its label threshold.
|
|
82
|
+
* @availableWhen showMainTickmarkLabels showLabels==true
|
|
79
83
|
* @property hasBar - Show bar
|
|
80
84
|
* @property scaleBackground - Show background behind the scale tickmarks.
|
|
81
85
|
* @property barContainerStyle - Bar container background style.
|
|
@@ -176,6 +180,7 @@ export class ObcBarVertical extends SetpointMixin(LitElement, {
|
|
|
176
180
|
// Bands (thickness)
|
|
177
181
|
@property({type: Boolean, attribute: false}) hasScale = true;
|
|
178
182
|
@property({type: Boolean, attribute: false}) showLabels = true;
|
|
183
|
+
@property({type: Boolean}) showMainTickmarkLabels = false;
|
|
179
184
|
@property({type: Boolean}) hasBar = false;
|
|
180
185
|
@property({type: Boolean})
|
|
181
186
|
scaleBackground = false;
|
|
@@ -256,6 +261,7 @@ export class ObcBarVertical extends SetpointMixin(LitElement, {
|
|
|
256
261
|
maxValue: this.maxValue,
|
|
257
262
|
hasScale: this.hasScale,
|
|
258
263
|
labels: this.showLabels,
|
|
264
|
+
mainTickmarkLabels: this.showMainTickmarkLabels,
|
|
259
265
|
hasBar: this.hasBar,
|
|
260
266
|
scaleBackground: this.scaleBackground,
|
|
261
267
|
barContainerStyle: this.barContainerStyle,
|
|
@@ -355,6 +361,7 @@ export class ObcBarVertical extends SetpointMixin(LitElement, {
|
|
|
355
361
|
const layoutChanged =
|
|
356
362
|
changed.has('side') ||
|
|
357
363
|
changed.has('showLabels') ||
|
|
364
|
+
changed.has('showMainTickmarkLabels') ||
|
|
358
365
|
changed.has('hasScale') ||
|
|
359
366
|
changed.has('hasBar') ||
|
|
360
367
|
changed.has('barThickness') ||
|