@oicl/openbridge-webcomponents 2.0.0 → 2.1.0-next.1
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/bundle/openbridge-webcomponents.bundle.js +64 -17
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +499 -356
- package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.d.ts +135 -136
- package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.d.ts.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.js +2 -18
- package/dist/automation/automation-button/abstract-automation-button-storybook-helpers.js.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button.d.ts +4 -4
- package/dist/automation/automation-button/abstract-automation-button.js +2 -2
- package/dist/automation/automation-button/abstract-automation-button.js.map +1 -1
- package/dist/automation/automation-button/automation-button.d.ts +4 -4
- package/dist/automation/automation-button/automation-button.js.map +1 -1
- package/dist/automation/automation-tank/automation-tank.d.ts +47 -3
- package/dist/automation/automation-tank/automation-tank.d.ts.map +1 -1
- package/dist/automation/automation-tank/automation-tank.js +4 -1
- package/dist/automation/automation-tank/automation-tank.js.map +1 -1
- package/dist/automation/heat-exchanger/heat-exchanger.d.ts +1 -1
- package/dist/automation/heat-exchanger/heat-exchanger.js.map +1 -1
- package/dist/automation/heat-pump/heat-pump.d.ts +1 -1
- package/dist/automation/heat-pump/heat-pump.js.map +1 -1
- package/dist/automation/hydraulic-separator/hydraulic-separator.d.ts +1 -1
- package/dist/automation/hydraulic-separator/hydraulic-separator.js.map +1 -1
- package/dist/automation/specialty-tank/abstract-specialty-tank.d.ts +14 -5
- package/dist/automation/specialty-tank/abstract-specialty-tank.d.ts.map +1 -1
- package/dist/automation/specialty-tank/abstract-specialty-tank.js +9 -3
- package/dist/automation/specialty-tank/abstract-specialty-tank.js.map +1 -1
- package/dist/automation/specialty-tank/specialty-tank-story-meta.d.ts.map +1 -1
- package/dist/automation/specialty-tank/specialty-tank-story-meta.js +5 -13
- package/dist/automation/specialty-tank/specialty-tank-story-meta.js.map +1 -1
- package/dist/automation/transmitter/transmitter.d.ts +77 -8
- package/dist/automation/transmitter/transmitter.d.ts.map +1 -1
- package/dist/automation/transmitter/transmitter.js +37 -10
- package/dist/automation/transmitter/transmitter.js.map +1 -1
- package/dist/components/accordion-card/accordion-card.d.ts +31 -6
- package/dist/components/accordion-card/accordion-card.d.ts.map +1 -1
- package/dist/components/accordion-card/accordion-card.js +13 -1
- package/dist/components/accordion-card/accordion-card.js.map +1 -1
- package/dist/components/alert-frame/alert-frame-storybook-helpers.d.ts +33 -0
- package/dist/components/alert-frame/alert-frame-storybook-helpers.d.ts.map +1 -0
- package/dist/components/alert-frame/alert-frame-storybook-helpers.js +30 -0
- package/dist/components/alert-frame/alert-frame-storybook-helpers.js.map +1 -0
- package/dist/navigation-instruments/readout/readout.d.ts.map +1 -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.map +1 -1
- package/package.json +1 -1
|
@@ -19512,8 +19512,8 @@ var AutomationButtonBadgeCommandLocked = /* @__PURE__ */ function(AutomationButt
|
|
|
19512
19512
|
* @availableWhen alertFrameThickness alert==true
|
|
19513
19513
|
* @availableWhen alertFrameStatus alert==true
|
|
19514
19514
|
* @availableWhen alertFrameMode alert==true
|
|
19515
|
-
* @availableWhen showAlertCategoryIcon alert==true
|
|
19516
|
-
* @availableWhen showAlertIcon alert==true
|
|
19515
|
+
* @availableWhen showAlertCategoryIcon alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]
|
|
19516
|
+
* @availableWhen showAlertIcon alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]
|
|
19517
19517
|
* @property progress - Shows a progress indicator, used to indicate that an user action is in progress
|
|
19518
19518
|
* @availableWhen progressMode progress==true
|
|
19519
19519
|
* @availableWhen progressValue progress==true && progressMode in [determinate, progressiveIndeterminate]
|
|
@@ -19917,10 +19917,6 @@ var argTypesAbstractAutomationButton = {
|
|
|
19917
19917
|
options: Object.values(ObcAlertFrameType),
|
|
19918
19918
|
control: { type: "radio" }
|
|
19919
19919
|
},
|
|
19920
|
-
alertFrameMode: {
|
|
19921
|
-
options: Object.values(ObcAlertFrameMode),
|
|
19922
|
-
control: { type: "radio" }
|
|
19923
|
-
},
|
|
19924
19920
|
alertFrameThickness: {
|
|
19925
19921
|
options: Object.values(ObcAlertFrameThickness),
|
|
19926
19922
|
control: { type: "radio" }
|
|
@@ -19929,6 +19925,10 @@ var argTypesAbstractAutomationButton = {
|
|
|
19929
19925
|
options: Object.values(AlertType),
|
|
19930
19926
|
control: { type: "radio" }
|
|
19931
19927
|
},
|
|
19928
|
+
alertFrameMode: {
|
|
19929
|
+
options: Object.values(ObcAlertFrameMode),
|
|
19930
|
+
control: { type: "radio" }
|
|
19931
|
+
},
|
|
19932
19932
|
positioning: {
|
|
19933
19933
|
options: Object.values(AutomationButtonPositioning),
|
|
19934
19934
|
control: { type: "select" }
|
|
@@ -38314,6 +38314,7 @@ var ObcAutomationTank = class ObcAutomationTank extends SetpointMixin(i$4) {
|
|
|
38314
38314
|
this.alertFrameType = ObcAlertFrameType.SmallSideFlip;
|
|
38315
38315
|
this.alertFrameThickness = ObcAlertFrameThickness.Small;
|
|
38316
38316
|
this.alertFrameStatus = AlertType.Alarm;
|
|
38317
|
+
this.alertFrameMode = ObcAlertFrameMode.ackedActive;
|
|
38317
38318
|
this.showAlertCategoryIcon = true;
|
|
38318
38319
|
this.showAlertIcon = false;
|
|
38319
38320
|
this.showTrendSymbol = true;
|
|
@@ -38669,6 +38670,7 @@ var ObcAutomationTank = class ObcAutomationTank extends SetpointMixin(i$4) {
|
|
|
38669
38670
|
.type=${this.alertFrameType}
|
|
38670
38671
|
.thickness=${this.alertFrameThickness}
|
|
38671
38672
|
.status=${this.alertFrameStatus}
|
|
38673
|
+
.mode=${this.alertFrameMode}
|
|
38672
38674
|
.showAlertCategoryIcon=${this.showAlertCategoryIcon}
|
|
38673
38675
|
.showIcon=${this.showAlertIcon}
|
|
38674
38676
|
>
|
|
@@ -38870,6 +38872,7 @@ __decorate([n$4({ type: Boolean })], ObcAutomationTank.prototype, "alert", void
|
|
|
38870
38872
|
__decorate([n$4({ type: String })], ObcAutomationTank.prototype, "alertFrameType", void 0);
|
|
38871
38873
|
__decorate([n$4({ type: String })], ObcAutomationTank.prototype, "alertFrameThickness", void 0);
|
|
38872
38874
|
__decorate([n$4({ type: String })], ObcAutomationTank.prototype, "alertFrameStatus", void 0);
|
|
38875
|
+
__decorate([n$4({ type: String })], ObcAutomationTank.prototype, "alertFrameMode", void 0);
|
|
38873
38876
|
__decorate([n$4({
|
|
38874
38877
|
type: Boolean,
|
|
38875
38878
|
attribute: false
|
|
@@ -55831,10 +55834,13 @@ var SpecialtyTankFrame = /* @__PURE__ */ function(SpecialtyTankFrame) {
|
|
|
55831
55834
|
* @availableWhen alertFrameThickness alert==true
|
|
55832
55835
|
* @property alertFrameStatus - Alert status the frame is coloured for.
|
|
55833
55836
|
* @availableWhen alertFrameStatus alert==true
|
|
55837
|
+
* @property alertFrameMode - Acknowledgement state of the alert: `acked-active` (default) is steady,
|
|
55838
|
+
* `unacked-active` flashes, `unacked-rectified` flashes a dashed frame.
|
|
55839
|
+
* @availableWhen alertFrameMode alert==true
|
|
55834
55840
|
* @property showAlertCategoryIcon - Shows the alert category icon inside the frame.
|
|
55835
|
-
* @availableWhen showAlertCategoryIcon alert==true
|
|
55841
|
+
* @availableWhen showAlertCategoryIcon alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]
|
|
55836
55842
|
* @property showAlertIcon - Shows the slotted alert icon inside the frame.
|
|
55837
|
-
* @availableWhen showAlertIcon alert==true
|
|
55843
|
+
* @availableWhen showAlertIcon alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]
|
|
55838
55844
|
*/
|
|
55839
55845
|
var ObcAbstractSpecialtyTank = class extends i$4 {
|
|
55840
55846
|
constructor(..._args) {
|
|
@@ -55854,6 +55860,7 @@ var ObcAbstractSpecialtyTank = class extends i$4 {
|
|
|
55854
55860
|
this.alertFrameType = ObcAlertFrameType.SmallSideFlip;
|
|
55855
55861
|
this.alertFrameThickness = ObcAlertFrameThickness.Small;
|
|
55856
55862
|
this.alertFrameStatus = AlertType.Alarm;
|
|
55863
|
+
this.alertFrameMode = ObcAlertFrameMode.ackedActive;
|
|
55857
55864
|
this.showAlertCategoryIcon = true;
|
|
55858
55865
|
this.showAlertIcon = false;
|
|
55859
55866
|
this._hasBadges = false;
|
|
@@ -56013,6 +56020,7 @@ var ObcAbstractSpecialtyTank = class extends i$4 {
|
|
|
56013
56020
|
.type=${this.alertFrameType}
|
|
56014
56021
|
.thickness=${this.alertFrameThickness}
|
|
56015
56022
|
.status=${this.alertFrameStatus}
|
|
56023
|
+
.mode=${this.alertFrameMode}
|
|
56016
56024
|
.showAlertCategoryIcon=${this.showAlertCategoryIcon}
|
|
56017
56025
|
.showIcon=${this.showAlertIcon}
|
|
56018
56026
|
>
|
|
@@ -56086,6 +56094,7 @@ __decorate([n$4({ type: Boolean })], ObcAbstractSpecialtyTank.prototype, "alert"
|
|
|
56086
56094
|
__decorate([n$4({ type: String })], ObcAbstractSpecialtyTank.prototype, "alertFrameType", void 0);
|
|
56087
56095
|
__decorate([n$4({ type: String })], ObcAbstractSpecialtyTank.prototype, "alertFrameThickness", void 0);
|
|
56088
56096
|
__decorate([n$4({ type: String })], ObcAbstractSpecialtyTank.prototype, "alertFrameStatus", void 0);
|
|
56097
|
+
__decorate([n$4({ type: String })], ObcAbstractSpecialtyTank.prototype, "alertFrameMode", void 0);
|
|
56089
56098
|
__decorate([n$4({
|
|
56090
56099
|
type: Boolean,
|
|
56091
56100
|
attribute: false
|
|
@@ -66993,6 +67002,12 @@ var ObcTransmitter = class ObcTransmitter extends i$4 {
|
|
|
66993
67002
|
this.hasIcon = false;
|
|
66994
67003
|
this.hasAdvice = false;
|
|
66995
67004
|
this.hasAlert = false;
|
|
67005
|
+
this.alertFrameStatus = AlertType.Alarm;
|
|
67006
|
+
this.alertFrameType = ObcAlertFrameType.Regular;
|
|
67007
|
+
this.alertFrameThickness = ObcAlertFrameThickness.Small;
|
|
67008
|
+
this.alertFrameMode = ObcAlertFrameMode.ackedActive;
|
|
67009
|
+
this.showAlertCategoryIcon = true;
|
|
67010
|
+
this.showAlertIcon = false;
|
|
66996
67011
|
this.hasSetPoint = false;
|
|
66997
67012
|
this.tag = "";
|
|
66998
67013
|
this.idTag = "";
|
|
@@ -67049,18 +67064,29 @@ var ObcTransmitter = class ObcTransmitter extends i$4 {
|
|
|
67049
67064
|
<div class="body">${this.renderButton()} ${this.renderGraph()}</div>
|
|
67050
67065
|
${this.renderLabel()}
|
|
67051
67066
|
</div>
|
|
67067
|
+
`;
|
|
67068
|
+
}
|
|
67069
|
+
renderAlertFrame(content) {
|
|
67070
|
+
return b`
|
|
67071
|
+
<obc-alert-frame
|
|
67072
|
+
class="alert-frame"
|
|
67073
|
+
.type=${this.alertFrameType}
|
|
67074
|
+
.thickness=${this.alertFrameThickness}
|
|
67075
|
+
.status=${this.alertFrameStatus}
|
|
67076
|
+
.mode=${this.alertFrameMode}
|
|
67077
|
+
.showAlertCategoryIcon=${this.showAlertCategoryIcon}
|
|
67078
|
+
.showIcon=${this.showAlertIcon}
|
|
67079
|
+
.wrapContent=${true}
|
|
67080
|
+
>
|
|
67081
|
+
${content}
|
|
67082
|
+
<span slot="icon"><slot name="alert-icon"></slot></span>
|
|
67083
|
+
<span slot="label"><slot name="alert-label"></slot></span>
|
|
67084
|
+
<span slot="timer"><slot name="alert-timer"></slot></span>
|
|
67085
|
+
</obc-alert-frame>
|
|
67052
67086
|
`;
|
|
67053
67087
|
}
|
|
67054
67088
|
render() {
|
|
67055
|
-
const content = this.hasAlert ?
|
|
67056
|
-
<obc-alert-frame
|
|
67057
|
-
class="alert-frame"
|
|
67058
|
-
.type=${ObcAlertFrameType.Regular}
|
|
67059
|
-
.wrapContent=${true}
|
|
67060
|
-
>
|
|
67061
|
-
${this.renderContent()}
|
|
67062
|
-
</obc-alert-frame>
|
|
67063
|
-
` : this.renderContent();
|
|
67089
|
+
const content = this.hasAlert ? this.renderAlertFrame(this.renderContent()) : this.renderContent();
|
|
67064
67090
|
return b`
|
|
67065
67091
|
<div
|
|
67066
67092
|
class=${e$2({
|
|
@@ -67093,6 +67119,15 @@ __decorate([n$4({ type: String })], ObcTransmitter.prototype, "size", void 0);
|
|
|
67093
67119
|
__decorate([n$4({ type: Boolean })], ObcTransmitter.prototype, "hasIcon", void 0);
|
|
67094
67120
|
__decorate([n$4({ type: Boolean })], ObcTransmitter.prototype, "hasAdvice", void 0);
|
|
67095
67121
|
__decorate([n$4({ type: Boolean })], ObcTransmitter.prototype, "hasAlert", void 0);
|
|
67122
|
+
__decorate([n$4({ type: String })], ObcTransmitter.prototype, "alertFrameStatus", void 0);
|
|
67123
|
+
__decorate([n$4({ type: String })], ObcTransmitter.prototype, "alertFrameType", void 0);
|
|
67124
|
+
__decorate([n$4({ type: String })], ObcTransmitter.prototype, "alertFrameThickness", void 0);
|
|
67125
|
+
__decorate([n$4({ type: String })], ObcTransmitter.prototype, "alertFrameMode", void 0);
|
|
67126
|
+
__decorate([n$4({
|
|
67127
|
+
type: Boolean,
|
|
67128
|
+
attribute: false
|
|
67129
|
+
})], ObcTransmitter.prototype, "showAlertCategoryIcon", void 0);
|
|
67130
|
+
__decorate([n$4({ type: Boolean })], ObcTransmitter.prototype, "showAlertIcon", void 0);
|
|
67096
67131
|
__decorate([n$4({ type: Number })], ObcTransmitter.prototype, "adviceValue", void 0);
|
|
67097
67132
|
__decorate([n$4({ type: Boolean })], ObcTransmitter.prototype, "hasSetPoint", void 0);
|
|
67098
67133
|
__decorate([n$4({ type: Number })], ObcTransmitter.prototype, "setpointValue", void 0);
|
|
@@ -71070,6 +71105,9 @@ var ObcAccordionCard = class ObcAccordionCard extends i$4 {
|
|
|
71070
71105
|
this.alertFrameType = ObcAlertFrameType.Regular;
|
|
71071
71106
|
this.alertFrameThickness = ObcAlertFrameThickness.Small;
|
|
71072
71107
|
this.alertFrameStatus = AlertType.Alarm;
|
|
71108
|
+
this.alertFrameMode = ObcAlertFrameMode.ackedActive;
|
|
71109
|
+
this.showAlertCategoryIcon = true;
|
|
71110
|
+
this.showAlertIcon = false;
|
|
71073
71111
|
}
|
|
71074
71112
|
get shouldShowDescription() {
|
|
71075
71113
|
return this.size === "large" && this.hasDescription && this.description.trim() !== "";
|
|
@@ -71185,6 +71223,9 @@ var ObcAccordionCard = class ObcAccordionCard extends i$4 {
|
|
|
71185
71223
|
.type=${this.alertFrameType}
|
|
71186
71224
|
.thickness=${this.alertFrameThickness}
|
|
71187
71225
|
.status=${this.alertFrameStatus}
|
|
71226
|
+
.mode=${this.alertFrameMode}
|
|
71227
|
+
.showAlertCategoryIcon=${this.showAlertCategoryIcon}
|
|
71228
|
+
.showIcon=${this.showAlertIcon}
|
|
71188
71229
|
>
|
|
71189
71230
|
<slot name="alert-icon" slot="icon"></slot>
|
|
71190
71231
|
<slot name="alert-label" slot="label"></slot>
|
|
@@ -71212,6 +71253,12 @@ __decorate([n$4({ type: String })], ObcAccordionCard.prototype, "size", void 0);
|
|
|
71212
71253
|
__decorate([n$4({ type: String })], ObcAccordionCard.prototype, "alertFrameType", void 0);
|
|
71213
71254
|
__decorate([n$4({ type: String })], ObcAccordionCard.prototype, "alertFrameThickness", void 0);
|
|
71214
71255
|
__decorate([n$4({ type: String })], ObcAccordionCard.prototype, "alertFrameStatus", void 0);
|
|
71256
|
+
__decorate([n$4({ type: String })], ObcAccordionCard.prototype, "alertFrameMode", void 0);
|
|
71257
|
+
__decorate([n$4({
|
|
71258
|
+
type: Boolean,
|
|
71259
|
+
attribute: false
|
|
71260
|
+
})], ObcAccordionCard.prototype, "showAlertCategoryIcon", void 0);
|
|
71261
|
+
__decorate([n$4({ type: Boolean })], ObcAccordionCard.prototype, "showAlertIcon", void 0);
|
|
71215
71262
|
ObcAccordionCard = __decorate([customElement("obc-accordion-card")], ObcAccordionCard);
|
|
71216
71263
|
//#endregion
|
|
71217
71264
|
//#region src/components/accordion-item/accordion-item.css?inline
|