@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.119 → 2.0.0-next.121
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 +118 -14
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +45 -1
- package/dist/components/alert-button/alert-button.d.ts +3 -0
- package/dist/components/alert-button/alert-button.d.ts.map +1 -1
- package/dist/components/alert-button/alert-button.js +12 -0
- package/dist/components/alert-button/alert-button.js.map +1 -1
- package/dist/components/alert-frame/alert-frame.css.js +1 -0
- package/dist/components/alert-frame/alert-frame.css.js.map +1 -1
- package/dist/components/alert-frame/alert-frame.d.ts +5 -0
- package/dist/components/alert-frame/alert-frame.d.ts.map +1 -1
- package/dist/components/alert-frame/alert-frame.js +24 -0
- package/dist/components/alert-frame/alert-frame.js.map +1 -1
- package/dist/components/alert-icon/alert-icon.d.ts +5 -0
- package/dist/components/alert-icon/alert-icon.d.ts.map +1 -1
- package/dist/components/alert-icon/alert-icon.js +26 -0
- package/dist/components/alert-icon/alert-icon.js.map +1 -1
- package/dist/integration-systems/integration-button/integration-button.css.js +20 -13
- package/dist/integration-systems/integration-button/integration-button.css.js.map +1 -1
- package/dist/integration-systems/integration-button/integration-button.d.ts +1 -1
- package/dist/integration-systems/integration-button/integration-button.js +1 -1
- package/dist/integration-systems/integration-button/integration-button.js.map +1 -1
- package/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.css.js +1 -0
- package/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.css.js.map +1 -1
- package/dist/openbridge.css +0 -73
- package/dist/palettes/blinking.d.ts +6 -0
- package/dist/palettes/blinking.d.ts.map +1 -0
- package/dist/palettes/blinking.js +44 -0
- package/dist/palettes/blinking.js.map +1 -0
- package/package.json +4 -2
- package/script/agent-docs/emitters.ts +189 -0
- package/script/agent-docs/frontmatter.ts +118 -0
- package/script/check-slot-event-docs.ts +2 -2
- package/script/sync-agent-docs.test.ts +298 -0
- package/script/sync-agent-docs.ts +156 -0
- package/src/components/alert-button/alert-button.spec.ts +58 -0
- package/src/components/alert-button/alert-button.ts +16 -0
- package/src/components/alert-frame/alert-frame.css +1 -0
- package/src/components/alert-frame/alert-frame.spec.ts +122 -0
- package/src/components/alert-frame/alert-frame.stories.ts +12 -0
- package/src/components/alert-frame/alert-frame.ts +37 -0
- package/src/components/alert-icon/alert-icon.spec.ts +76 -0
- package/src/components/alert-icon/alert-icon.ts +38 -0
- package/src/icons/AGENTS.md +6 -0
- package/src/integration-systems/integration-button/integration-button.css +20 -13
- package/src/integration-systems/integration-button/integration-button.stories.ts +70 -44
- package/src/integration-systems/integration-button/integration-button.ts +2 -2
- package/src/integration-systems/integration-dropdown-button/integration-dropdown-button.css +1 -0
- package/src/palettes/blinking.ts +46 -0
- package/src/palettes/manual.css +0 -42
- package/src/palettes/variables.css +0 -36
|
@@ -14597,6 +14597,7 @@ const compentStyle$1e = i$7`* {
|
|
|
14597
14597
|
|
|
14598
14598
|
.wrapper.level-critical {
|
|
14599
14599
|
--bg-color: var(--critical-enabled-background-color);
|
|
14600
|
+
--blink-on: var(--critical-blink-on);
|
|
14600
14601
|
color: var(--on-critical-active-color);
|
|
14601
14602
|
}
|
|
14602
14603
|
|
|
@@ -15220,6 +15221,42 @@ function usesAlarmNoAckIcon(type) {
|
|
|
15220
15221
|
AlertType.LevelHigh
|
|
15221
15222
|
].includes(type);
|
|
15222
15223
|
}
|
|
15224
|
+
const CRITICAL_PERIOD = 1e3;
|
|
15225
|
+
const ALARM_PERIOD = 2e3;
|
|
15226
|
+
const WARNING_PERIOD = 4e3;
|
|
15227
|
+
const LOW_PERIOD = 8e3;
|
|
15228
|
+
function blinkingInstall(el, period, label) {
|
|
15229
|
+
const anim = el.animate(
|
|
15230
|
+
[
|
|
15231
|
+
{ [label + "-on"]: 1, [label + "-off"]: 0 },
|
|
15232
|
+
{ [label + "-on"]: 0, [label + "-off"]: 1 }
|
|
15233
|
+
],
|
|
15234
|
+
{ duration: period, iterations: Infinity, easing: "steps(2, jump-none)" }
|
|
15235
|
+
);
|
|
15236
|
+
anim.startTime = 0;
|
|
15237
|
+
return () => anim.cancel();
|
|
15238
|
+
}
|
|
15239
|
+
function blinkingCritical(el) {
|
|
15240
|
+
return blinkingInstall(el, CRITICAL_PERIOD, "--critical-blink");
|
|
15241
|
+
}
|
|
15242
|
+
function blinkingAlarm(el) {
|
|
15243
|
+
return blinkingInstall(el, ALARM_PERIOD, "--alarm-blink");
|
|
15244
|
+
}
|
|
15245
|
+
function blinkingWarning(el) {
|
|
15246
|
+
return blinkingInstall(el, WARNING_PERIOD, "--warning-blink");
|
|
15247
|
+
}
|
|
15248
|
+
function blinkingLow(el) {
|
|
15249
|
+
return blinkingInstall(el, LOW_PERIOD, "--low-blink");
|
|
15250
|
+
}
|
|
15251
|
+
function blinkingAll(el) {
|
|
15252
|
+
const animes = [
|
|
15253
|
+
blinkingCritical(el),
|
|
15254
|
+
blinkingAlarm(el),
|
|
15255
|
+
blinkingWarning(el),
|
|
15256
|
+
blinkingLow(el)
|
|
15257
|
+
];
|
|
15258
|
+
return () => animes.forEach((anim) => anim());
|
|
15259
|
+
}
|
|
15223
15260
|
var __defProp$zL = Object.defineProperty;
|
|
15224
15261
|
var __getOwnPropDesc$zN = Object.getOwnPropertyDescriptor;
|
|
15225
15262
|
var __decorateClass$zT = (decorators, target, key, kind) => {
|
|
@@ -15289,6 +15326,29 @@ let ObcAlertFrame = class extends i$4 {
|
|
|
15289
15326
|
</div>
|
|
15290
15327
|
`;
|
|
15291
15328
|
}
|
|
15329
|
+
syncBlinking() {
|
|
15330
|
+
if (this.mode !== "unacked-active" && this._blinkAnimationCancel) {
|
|
15331
|
+
this._blinkAnimationCancel();
|
|
15332
|
+
this._blinkAnimationCancel = void 0;
|
|
15333
|
+
}
|
|
15334
|
+
if (this.mode === "unacked-active" && !this._blinkAnimationCancel) {
|
|
15335
|
+
this._blinkAnimationCancel = blinkingAll(this);
|
|
15336
|
+
}
|
|
15337
|
+
}
|
|
15338
|
+
connectedCallback() {
|
|
15339
|
+
super.connectedCallback();
|
|
15340
|
+
if (this.hasUpdated) {
|
|
15341
|
+
this.syncBlinking();
|
|
15342
|
+
}
|
|
15343
|
+
}
|
|
15344
|
+
updated() {
|
|
15345
|
+
this.syncBlinking();
|
|
15346
|
+
}
|
|
15347
|
+
disconnectedCallback() {
|
|
15348
|
+
super.disconnectedCallback();
|
|
15349
|
+
this._blinkAnimationCancel?.();
|
|
15350
|
+
this._blinkAnimationCancel = void 0;
|
|
15351
|
+
}
|
|
15292
15352
|
flap() {
|
|
15293
15353
|
if (this.type === "regular") {
|
|
15294
15354
|
return A;
|
|
@@ -70698,9 +70758,13 @@ let ObcAlertButton = class extends i$4 {
|
|
|
70698
70758
|
connectedCallback() {
|
|
70699
70759
|
super.connectedCallback();
|
|
70700
70760
|
window.addEventListener("resize", this.resizeListener);
|
|
70761
|
+
if (this.hasUpdated) {
|
|
70762
|
+
this.installBlinking();
|
|
70763
|
+
}
|
|
70701
70764
|
}
|
|
70702
70765
|
disconnectedCallback() {
|
|
70703
70766
|
window.removeEventListener("resize", this.resizeListener);
|
|
70767
|
+
this._blinkAnimationCancel?.();
|
|
70704
70768
|
super.disconnectedCallback();
|
|
70705
70769
|
}
|
|
70706
70770
|
renderAlertTwotoneIcon() {
|
|
@@ -70762,6 +70826,13 @@ let ObcAlertButton = class extends i$4 {
|
|
|
70762
70826
|
get showSilenceButtonDynamic() {
|
|
70763
70827
|
return this.showSilenceButton && this.width >= this.silenceButtonMinBreakpointPx && this.activeType !== "flat";
|
|
70764
70828
|
}
|
|
70829
|
+
installBlinking() {
|
|
70830
|
+
this._blinkAnimationCancel?.();
|
|
70831
|
+
this._blinkAnimationCancel = blinkingAll(this);
|
|
70832
|
+
}
|
|
70833
|
+
updated() {
|
|
70834
|
+
this.installBlinking();
|
|
70835
|
+
}
|
|
70765
70836
|
render() {
|
|
70766
70837
|
const hasAlerts = this.nAlerts > 0;
|
|
70767
70838
|
const showCounter = this.counter && hasAlerts && this.activeType !== "flat";
|
|
@@ -72272,6 +72343,31 @@ let ObcAlertIcon = class extends i$4 {
|
|
|
72272
72343
|
}
|
|
72273
72344
|
return b`<div class="wrapper">${this.renderStaticIcon()}</div>`;
|
|
72274
72345
|
}
|
|
72346
|
+
syncBlinking() {
|
|
72347
|
+
if (this._blinkAnimationCancel && !supportsBlinking(this._effectiveType, this.acknowledged ?? false)) {
|
|
72348
|
+
this._blinkAnimationCancel();
|
|
72349
|
+
this._blinkAnimationCancel = void 0;
|
|
72350
|
+
}
|
|
72351
|
+
if (!this._blinkAnimationCancel && supportsBlinking(this._effectiveType, this.acknowledged ?? false)) {
|
|
72352
|
+
this._blinkAnimationCancel = blinkingAll(this);
|
|
72353
|
+
}
|
|
72354
|
+
}
|
|
72355
|
+
connectedCallback() {
|
|
72356
|
+
super.connectedCallback();
|
|
72357
|
+
if (this.hasUpdated) {
|
|
72358
|
+
this.syncBlinking();
|
|
72359
|
+
}
|
|
72360
|
+
}
|
|
72361
|
+
updated() {
|
|
72362
|
+
this.syncBlinking();
|
|
72363
|
+
}
|
|
72364
|
+
disconnectedCallback() {
|
|
72365
|
+
super.disconnectedCallback();
|
|
72366
|
+
if (this._blinkAnimationCancel) {
|
|
72367
|
+
this._blinkAnimationCancel();
|
|
72368
|
+
this._blinkAnimationCancel = void 0;
|
|
72369
|
+
}
|
|
72370
|
+
}
|
|
72275
72371
|
};
|
|
72276
72372
|
ObcAlertIcon.styles = i$7`
|
|
72277
72373
|
.wrapper {
|
|
@@ -206631,9 +206727,13 @@ const compentStyle$g = i$7`* {
|
|
|
206631
206727
|
"liga" off,
|
|
206632
206728
|
"clig" off,
|
|
206633
206729
|
"ss04" on;
|
|
206730
|
+
--leading-icon-size: var(
|
|
206731
|
+
--app-components-integration-system-navigation-item-horizontal-icon-size
|
|
206732
|
+
);
|
|
206634
206733
|
anchor-name: --touch-target;
|
|
206635
206734
|
display: flex;
|
|
206636
206735
|
align-items: center;
|
|
206736
|
+
text-align: left;
|
|
206637
206737
|
gap: 4px;
|
|
206638
206738
|
flex: 1;
|
|
206639
206739
|
min-height: var(
|
|
@@ -206788,22 +206888,25 @@ const compentStyle$g = i$7`* {
|
|
|
206788
206888
|
color: var(--integration-on-normal-neutral-color);
|
|
206789
206889
|
}
|
|
206790
206890
|
|
|
206791
|
-
.touch-target
|
|
206792
|
-
|
|
206793
|
-
--app-components-integration-system-navigation-item-horizontal-icon-size
|
|
206794
|
-
);
|
|
206795
|
-
height: var(
|
|
206796
|
-
--app-components-integration-system-navigation-item-horizontal-icon-size
|
|
206891
|
+
.touch-target.has-status {
|
|
206892
|
+
--leading-icon-size: var(
|
|
206893
|
+
--app-components-integration-system-navigation-item-horizontal-icon-size-large
|
|
206797
206894
|
);
|
|
206798
|
-
min-width: var(
|
|
206799
|
-
--app-components-integration-system-navigation-item-horizontal-icon-size
|
|
206800
|
-
);
|
|
206801
|
-
flex: 0 0
|
|
206802
|
-
var(
|
|
206803
|
-
--app-components-integration-system-navigation-item-horizontal-icon-size
|
|
206804
|
-
);
|
|
206805
206895
|
}
|
|
206806
206896
|
|
|
206897
|
+
.touch-target .icon.leading {
|
|
206898
|
+
width: var(--leading-icon-size);
|
|
206899
|
+
height: var(--leading-icon-size);
|
|
206900
|
+
min-width: var(--leading-icon-size);
|
|
206901
|
+
flex: 0 0 var(--leading-icon-size);
|
|
206902
|
+
}
|
|
206903
|
+
|
|
206904
|
+
:is(.touch-target .icon.leading) ::slotted(*) {
|
|
206905
|
+
display: block;
|
|
206906
|
+
width: 100%;
|
|
206907
|
+
height: 100%;
|
|
206908
|
+
}
|
|
206909
|
+
|
|
206807
206910
|
.touch-target .icon.trailing {
|
|
206808
206911
|
width: 28px;
|
|
206809
206912
|
height: 24px;
|
|
@@ -207252,7 +207355,7 @@ let ObcIntegrationButton = class extends i$4 {
|
|
|
207252
207355
|
selected: this.selected,
|
|
207253
207356
|
activated: this.activated,
|
|
207254
207357
|
disabled: this.disabled,
|
|
207255
|
-
"has-
|
|
207358
|
+
"has-status": this.hasStatus,
|
|
207256
207359
|
["variant-" + this.variant]: true,
|
|
207257
207360
|
["type-" + this.type]: true
|
|
207258
207361
|
};
|
|
@@ -208001,6 +208104,7 @@ const compentStyle$f = i$7`* {
|
|
|
208001
208104
|
flex-direction: column;
|
|
208002
208105
|
align-items: flex-start;
|
|
208003
208106
|
flex-grow: 1;
|
|
208107
|
+
text-align: left;
|
|
208004
208108
|
}
|
|
208005
208109
|
|
|
208006
208110
|
:is(.wrapper option:not(.fleet-option)) .text-container .label {
|