@oicl/openbridge-webcomponents 2.2.0-next.12 → 2.2.0-next.13
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 +55 -26
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +20 -2
- package/dist/automation/transmitter/transmitter.css.js +26 -13
- package/dist/automation/transmitter/transmitter.css.js.map +1 -1
- package/dist/automation/transmitter/transmitter.d.ts +9 -0
- package/dist/automation/transmitter/transmitter.d.ts.map +1 -1
- package/dist/automation/transmitter/transmitter.js +6 -0
- package/dist/automation/transmitter/transmitter.js.map +1 -1
- package/dist/automation/transmitter-stack/transmitter-stack.css.js +17 -13
- package/dist/automation/transmitter-stack/transmitter-stack.css.js.map +1 -1
- package/dist/automation/transmitter-stack/transmitter-stack.d.ts +8 -0
- package/dist/automation/transmitter-stack/transmitter-stack.d.ts.map +1 -1
- package/dist/automation/transmitter-stack/transmitter-stack.js +6 -0
- package/dist/automation/transmitter-stack/transmitter-stack.js.map +1 -1
- package/package.json +1 -1
|
@@ -67409,7 +67409,7 @@ var transmitter_stack_default = i$7`* {
|
|
|
67409
67409
|
display: block;
|
|
67410
67410
|
}
|
|
67411
67411
|
|
|
67412
|
-
.transmitter {
|
|
67412
|
+
.transmitter:not(.no-line) {
|
|
67413
67413
|
position: relative;
|
|
67414
67414
|
display: flex;
|
|
67415
67415
|
align-items: center;
|
|
@@ -67417,65 +67417,65 @@ var transmitter_stack_default = i$7`* {
|
|
|
67417
67417
|
width: fit-content;
|
|
67418
67418
|
}
|
|
67419
67419
|
|
|
67420
|
-
.transmitter.orientation-bottom {
|
|
67420
|
+
.transmitter.orientation-bottom:not(.no-line) {
|
|
67421
67421
|
padding-top: 8px;
|
|
67422
67422
|
top: calc(1px + var(--offset));
|
|
67423
67423
|
transform: translateX(-50%);
|
|
67424
67424
|
}
|
|
67425
67425
|
|
|
67426
|
-
.transmitter.orientation-top {
|
|
67426
|
+
.transmitter.orientation-top:not(.no-line) {
|
|
67427
67427
|
padding-bottom: 8px;
|
|
67428
67428
|
transform: translate(-50%, calc(-100% - 1px - var(--offset)));
|
|
67429
67429
|
}
|
|
67430
67430
|
|
|
67431
|
-
.transmitter.orientation-left {
|
|
67431
|
+
.transmitter.orientation-left:not(.no-line) {
|
|
67432
67432
|
padding-right: 8px;
|
|
67433
67433
|
transform: translate(calc(-100% - 4px - var(--offset)), -50%);
|
|
67434
67434
|
}
|
|
67435
67435
|
|
|
67436
|
-
.transmitter.orientation-right {
|
|
67436
|
+
.transmitter.orientation-right:not(.no-line) {
|
|
67437
67437
|
padding-left: 8px;
|
|
67438
67438
|
transform: translateY(-50%);
|
|
67439
67439
|
right: calc(-4px - var(--offset));
|
|
67440
67440
|
}
|
|
67441
67441
|
|
|
67442
|
-
.transmitter::before {
|
|
67442
|
+
.transmitter:not(.no-line)::before {
|
|
67443
67443
|
content: "";
|
|
67444
67444
|
display: block;
|
|
67445
67445
|
position: absolute;
|
|
67446
67446
|
border: var(--normal-enabled-border-color) solid 1px;
|
|
67447
67447
|
}
|
|
67448
67448
|
|
|
67449
|
-
.transmitter.orientation-bottom::before,.transmitter.orientation-top::before {
|
|
67449
|
+
.transmitter.orientation-bottom:not(.no-line)::before,.transmitter.orientation-top:not(.no-line)::before {
|
|
67450
67450
|
width: 0;
|
|
67451
67451
|
height: 8px;
|
|
67452
67452
|
}
|
|
67453
67453
|
|
|
67454
|
-
.transmitter.orientation-bottom::before {
|
|
67454
|
+
.transmitter.orientation-bottom:not(.no-line)::before {
|
|
67455
67455
|
top: -1px;
|
|
67456
67456
|
}
|
|
67457
67457
|
|
|
67458
|
-
.transmitter.orientation-top::before {
|
|
67458
|
+
.transmitter.orientation-top:not(.no-line)::before {
|
|
67459
67459
|
bottom: -1px;
|
|
67460
67460
|
}
|
|
67461
67461
|
|
|
67462
|
-
.transmitter.orientation-left::before,.transmitter.orientation-right::before {
|
|
67462
|
+
.transmitter.orientation-left:not(.no-line)::before,.transmitter.orientation-right:not(.no-line)::before {
|
|
67463
67463
|
height: 0;
|
|
67464
67464
|
width: 8px;
|
|
67465
67465
|
}
|
|
67466
67466
|
|
|
67467
|
-
.transmitter.orientation-left::before {
|
|
67467
|
+
.transmitter.orientation-left:not(.no-line)::before {
|
|
67468
67468
|
right: -4px;
|
|
67469
67469
|
}
|
|
67470
67470
|
|
|
67471
|
-
.transmitter.orientation-right::before {
|
|
67471
|
+
.transmitter.orientation-right:not(.no-line)::before {
|
|
67472
67472
|
left: -4px;
|
|
67473
67473
|
}
|
|
67474
67474
|
|
|
67475
67475
|
/* Left/right anchor on the chip row's middle (Figma 25656:45233), so the id
|
|
67476
67476
|
tag hangs below out of flow; its parent must be the containing block. */
|
|
67477
67477
|
|
|
67478
|
-
.transmitter:is(.orientation-left,.orientation-right):not(.has-alert) .id-tag {
|
|
67478
|
+
.transmitter:not(.no-line):is(.orientation-left,.orientation-right):not(.has-alert) .id-tag {
|
|
67479
67479
|
position: absolute;
|
|
67480
67480
|
top: calc(100% + 2px);
|
|
67481
67481
|
left: 50%;
|
|
@@ -67483,6 +67483,10 @@ var transmitter_stack_default = i$7`* {
|
|
|
67483
67483
|
white-space: nowrap;
|
|
67484
67484
|
}
|
|
67485
67485
|
|
|
67486
|
+
.transmitter.no-line {
|
|
67487
|
+
width: fit-content; /* a full-width box would stretch the 1fr segments across the container */
|
|
67488
|
+
}
|
|
67489
|
+
|
|
67486
67490
|
.values {
|
|
67487
67491
|
display: grid;
|
|
67488
67492
|
grid-auto-flow: column;
|
|
@@ -67560,6 +67564,7 @@ var ObcTransmitterStack = class ObcTransmitterStack extends i$4 {
|
|
|
67560
67564
|
super(..._args);
|
|
67561
67565
|
this.orientation = TransmitterOrientation.bottom;
|
|
67562
67566
|
this.lineType = void 0;
|
|
67567
|
+
this.showLine = true;
|
|
67563
67568
|
this.values = [];
|
|
67564
67569
|
}
|
|
67565
67570
|
handleValueClick(index, value) {
|
|
@@ -67604,6 +67609,7 @@ var ObcTransmitterStack = class ObcTransmitterStack extends i$4 {
|
|
|
67604
67609
|
<div
|
|
67605
67610
|
class=${e$3({
|
|
67606
67611
|
transmitter: true,
|
|
67612
|
+
"no-line": !this.showLine,
|
|
67607
67613
|
[`orientation-${this.orientation}`]: true
|
|
67608
67614
|
})}
|
|
67609
67615
|
style="--offset: ${transmitterLeaderOffset(this.lineType)}px;"
|
|
@@ -67620,6 +67626,10 @@ var ObcTransmitterStack = class ObcTransmitterStack extends i$4 {
|
|
|
67620
67626
|
};
|
|
67621
67627
|
__decorate([n$4({ type: String })], ObcTransmitterStack.prototype, "orientation", void 0);
|
|
67622
67628
|
__decorate([n$4({ type: String })], ObcTransmitterStack.prototype, "lineType", void 0);
|
|
67629
|
+
__decorate([n$4({
|
|
67630
|
+
type: Boolean,
|
|
67631
|
+
attribute: false
|
|
67632
|
+
})], ObcTransmitterStack.prototype, "showLine", void 0);
|
|
67623
67633
|
__decorate([n$4({ type: Array })], ObcTransmitterStack.prototype, "values", void 0);
|
|
67624
67634
|
ObcTransmitterStack = __decorate([customElement("obc-transmitter-stack")], ObcTransmitterStack);
|
|
67625
67635
|
//#endregion
|
|
@@ -67636,7 +67646,7 @@ var transmitter_default = i$7`* {
|
|
|
67636
67646
|
display: block;
|
|
67637
67647
|
}
|
|
67638
67648
|
|
|
67639
|
-
.transmitter {
|
|
67649
|
+
.transmitter:not(.no-line) {
|
|
67640
67650
|
position: relative;
|
|
67641
67651
|
display: flex;
|
|
67642
67652
|
align-items: center;
|
|
@@ -67644,65 +67654,65 @@ var transmitter_default = i$7`* {
|
|
|
67644
67654
|
width: fit-content;
|
|
67645
67655
|
}
|
|
67646
67656
|
|
|
67647
|
-
.transmitter.orientation-bottom {
|
|
67657
|
+
.transmitter.orientation-bottom:not(.no-line) {
|
|
67648
67658
|
padding-top: 8px;
|
|
67649
67659
|
top: calc(1px + var(--offset));
|
|
67650
67660
|
transform: translateX(-50%);
|
|
67651
67661
|
}
|
|
67652
67662
|
|
|
67653
|
-
.transmitter.orientation-top {
|
|
67663
|
+
.transmitter.orientation-top:not(.no-line) {
|
|
67654
67664
|
padding-bottom: 8px;
|
|
67655
67665
|
transform: translate(-50%, calc(-100% - 1px - var(--offset)));
|
|
67656
67666
|
}
|
|
67657
67667
|
|
|
67658
|
-
.transmitter.orientation-left {
|
|
67668
|
+
.transmitter.orientation-left:not(.no-line) {
|
|
67659
67669
|
padding-right: 8px;
|
|
67660
67670
|
transform: translate(calc(-100% - 4px - var(--offset)), -50%);
|
|
67661
67671
|
}
|
|
67662
67672
|
|
|
67663
|
-
.transmitter.orientation-right {
|
|
67673
|
+
.transmitter.orientation-right:not(.no-line) {
|
|
67664
67674
|
padding-left: 8px;
|
|
67665
67675
|
transform: translateY(-50%);
|
|
67666
67676
|
right: calc(-4px - var(--offset));
|
|
67667
67677
|
}
|
|
67668
67678
|
|
|
67669
|
-
.transmitter::before {
|
|
67679
|
+
.transmitter:not(.no-line)::before {
|
|
67670
67680
|
content: "";
|
|
67671
67681
|
display: block;
|
|
67672
67682
|
position: absolute;
|
|
67673
67683
|
border: var(--normal-enabled-border-color) solid 1px;
|
|
67674
67684
|
}
|
|
67675
67685
|
|
|
67676
|
-
.transmitter.orientation-bottom::before,.transmitter.orientation-top::before {
|
|
67686
|
+
.transmitter.orientation-bottom:not(.no-line)::before,.transmitter.orientation-top:not(.no-line)::before {
|
|
67677
67687
|
width: 0;
|
|
67678
67688
|
height: 8px;
|
|
67679
67689
|
}
|
|
67680
67690
|
|
|
67681
|
-
.transmitter.orientation-bottom::before {
|
|
67691
|
+
.transmitter.orientation-bottom:not(.no-line)::before {
|
|
67682
67692
|
top: -1px;
|
|
67683
67693
|
}
|
|
67684
67694
|
|
|
67685
|
-
.transmitter.orientation-top::before {
|
|
67695
|
+
.transmitter.orientation-top:not(.no-line)::before {
|
|
67686
67696
|
bottom: -1px;
|
|
67687
67697
|
}
|
|
67688
67698
|
|
|
67689
|
-
.transmitter.orientation-left::before,.transmitter.orientation-right::before {
|
|
67699
|
+
.transmitter.orientation-left:not(.no-line)::before,.transmitter.orientation-right:not(.no-line)::before {
|
|
67690
67700
|
height: 0;
|
|
67691
67701
|
width: 8px;
|
|
67692
67702
|
}
|
|
67693
67703
|
|
|
67694
|
-
.transmitter.orientation-left::before {
|
|
67704
|
+
.transmitter.orientation-left:not(.no-line)::before {
|
|
67695
67705
|
right: -4px;
|
|
67696
67706
|
}
|
|
67697
67707
|
|
|
67698
|
-
.transmitter.orientation-right::before {
|
|
67708
|
+
.transmitter.orientation-right:not(.no-line)::before {
|
|
67699
67709
|
left: -4px;
|
|
67700
67710
|
}
|
|
67701
67711
|
|
|
67702
67712
|
/* Left/right anchor on the chip row's middle (Figma 25656:45233), so the id
|
|
67703
67713
|
tag hangs below out of flow; its parent must be the containing block. */
|
|
67704
67714
|
|
|
67705
|
-
.transmitter:is(.orientation-left,.orientation-right):not(.has-alert) .id-tag {
|
|
67715
|
+
.transmitter:not(.no-line):is(.orientation-left,.orientation-right):not(.has-alert) .id-tag {
|
|
67706
67716
|
position: absolute;
|
|
67707
67717
|
top: calc(100% + 2px);
|
|
67708
67718
|
left: 50%;
|
|
@@ -67710,6 +67720,10 @@ var transmitter_default = i$7`* {
|
|
|
67710
67720
|
white-space: nowrap;
|
|
67711
67721
|
}
|
|
67712
67722
|
|
|
67723
|
+
.transmitter.no-line {
|
|
67724
|
+
width: fit-content; /* a full-width box would centre the chip away from its placement point */
|
|
67725
|
+
}
|
|
67726
|
+
|
|
67713
67727
|
.content {
|
|
67714
67728
|
position: relative; /* containing block for the left/right id tag (transmitter-leader) */
|
|
67715
67729
|
display: flex;
|
|
@@ -67727,6 +67741,15 @@ var transmitter_default = i$7`* {
|
|
|
67727
67741
|
flex-direction: column-reverse;
|
|
67728
67742
|
}
|
|
67729
67743
|
|
|
67744
|
+
/* Without a line, left/right put the id-tag beside the chip on that side. */
|
|
67745
|
+
.no-line.orientation-left .content {
|
|
67746
|
+
flex-direction: row-reverse;
|
|
67747
|
+
}
|
|
67748
|
+
|
|
67749
|
+
.no-line.orientation-right .content {
|
|
67750
|
+
flex-direction: row;
|
|
67751
|
+
}
|
|
67752
|
+
|
|
67730
67753
|
.body {
|
|
67731
67754
|
display: flex;
|
|
67732
67755
|
}
|
|
@@ -71836,6 +71859,7 @@ var ObcTransmitter = class ObcTransmitter extends i$4 {
|
|
|
71836
71859
|
this.orientation = TransmitterOrientation.bottom;
|
|
71837
71860
|
this.type = "value";
|
|
71838
71861
|
this.lineType = void 0;
|
|
71862
|
+
this.showLine = true;
|
|
71839
71863
|
this.unit = "";
|
|
71840
71864
|
this.fractionDigits = 1;
|
|
71841
71865
|
this.maxDigits = 0;
|
|
@@ -71936,6 +71960,7 @@ var ObcTransmitter = class ObcTransmitter extends i$4 {
|
|
|
71936
71960
|
class=${e$3({
|
|
71937
71961
|
transmitter: true,
|
|
71938
71962
|
"has-alert": this.hasAlert,
|
|
71963
|
+
"no-line": !this.showLine,
|
|
71939
71964
|
[`orientation-${this.orientation}`]: true,
|
|
71940
71965
|
[`type-${this.type}`]: true
|
|
71941
71966
|
})}
|
|
@@ -71952,6 +71977,10 @@ var ObcTransmitter = class ObcTransmitter extends i$4 {
|
|
|
71952
71977
|
__decorate([n$4({ type: String })], ObcTransmitter.prototype, "orientation", void 0);
|
|
71953
71978
|
__decorate([n$4({ type: String })], ObcTransmitter.prototype, "type", void 0);
|
|
71954
71979
|
__decorate([n$4({ type: String })], ObcTransmitter.prototype, "lineType", void 0);
|
|
71980
|
+
__decorate([n$4({
|
|
71981
|
+
type: Boolean,
|
|
71982
|
+
attribute: false
|
|
71983
|
+
})], ObcTransmitter.prototype, "showLine", void 0);
|
|
71955
71984
|
__decorate([n$4({ type: Number })], ObcTransmitter.prototype, "value", void 0);
|
|
71956
71985
|
__decorate([n$4({ type: String })], ObcTransmitter.prototype, "unit", void 0);
|
|
71957
71986
|
__decorate([n$4({ type: Number })], ObcTransmitter.prototype, "fractionDigits", void 0);
|