@oicl/openbridge-webcomponents-full-bundle 2.2.0-next.3 → 2.2.0-next.4

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.
@@ -3861,7 +3861,7 @@
3861
3861
  {
3862
3862
  "kind": "variable",
3863
3863
  "name": "ObcAlertCounterItem",
3864
- "default": "class ObcAlertCounterItem extends LitElement { constructor(..._args) { super(..._args); this.type = \"badges\"; this.counts = {}; this.shelvedCount = 0; } render() { const ranked = rankAlertCounts(this.counts); if (ranked.length === 0 && this.shelvedCount <= 0) return nothing; const alertLevel = this.type === \"alert-level\"; const variant = alertLevel ? BadgeVariant.flat : BadgeVariant.default; return html` <div class=\"row\" role=\"img\" aria-label=${alertCountsLabel(this.counts, this.shelvedCount)} > ${repeat(ranked, (entry) => entry.type, (entry) => html`<obc-badge size=${BadgeSize.large} type=${entry.type} .variant=${variant} .showIcon=${alertLevel} .number=${entry.count} ></obc-badge>`)} ${this.shelvedCount > 0 ? html`<obc-badge size=${BadgeSize.large} type=${BadgeType.regular} .variant=${variant} showIcon .number=${this.shelvedCount} > <obi-alerts-shelf slot=\"badge-icon\"></obi-alerts-shelf> </obc-badge>` : nothing} </div> `; } static { this.styles = unsafeCSS(alert_counter_item_default); } }"
3864
+ "default": "class ObcAlertCounterItem extends LitElement { constructor(..._args) { super(..._args); this.type = \"badges\"; this.counts = {}; this.shelvedCount = 0; } render() { const ranked = rankAlertCounts(this.counts); if (ranked.length === 0 && this.shelvedCount <= 0) return nothing; const alertLevel = this.type === \"alert-level\"; const variant = alertLevel ? BadgeVariant.flat : BadgeVariant.default; return html` <div class=\"row\" role=\"img\" aria-label=${alertCountsLabel(this.counts, this.shelvedCount)} > ${repeat(ranked, (entry) => entry.type, (entry) => html`<obc-badge size=${BadgeSize.large} type=${entry.type} .variant=${variant} .showIcon=${alertLevel} .number=${entry.count} ></obc-badge>`)} ${this.shelvedCount > 0 ? html`<obc-badge size=${BadgeSize.large} type=${BadgeType.regular} .variant=${variant} showIcon .number=${this.shelvedCount} > <obi-timer-2 slot=\"badge-icon\"></obi-timer-2> </obc-badge>` : nothing} </div> `; } static { this.styles = unsafeCSS(alert_counter_item_default); } }"
3865
3865
  }
3866
3866
  ],
3867
3867
  "exports": [
@@ -52115,7 +52115,7 @@
52115
52115
  "declarations": [
52116
52116
  {
52117
52117
  "kind": "class",
52118
- "description": "`<obc-alert-counter-item>` – A row of alert counts, one badge per severity.\n\nRenders a large `obc-badge` for every severity with a count above zero, most\nsevere first, followed by an optional shelved count. Nothing renders when\nnothing is counted.\n\n---\n\n### Features\n- **Two types:** `badges` draws filled badges in the severity colour;\n `alert-level` draws flat badges with the severity glyph.\n- **Every severity:** `counts` takes the whole `AlertType` vocabulary,\n including the `level-*` family, ordered by `ALERT_SEVERITY_PRIORITY`.\n- **Shelved count:** `shelvedCount` adds a neutral badge with the shelf icon\n at the end.\n- **Accessible summary:** the row is announced as one image labelled with\n the counts, e.g. \"2 Alarm, 4 Warning, 6 Caution\".\n\n---\n\n### Usage Guidelines\n- Show how many alerts are outstanding per severity in a compact space;\n `obc-alert-button-item` nests the counter for its global counter.\n- Pass the counts as one object: `.counts=${{countAlarm: 2, countWarning: 4}}`.\n- The counter is display-only: it renders no button and fires no events.\n- For a framed per-subsystem summary with a label, see\n `obc-alert-subsystem-counter`.\n- **TODO(designer):** the Figma component also has an Unacked counter type;\n how its icons map to counts is not defined yet.\n- **TODO(designer):** the Figma component draws alarm, warning and caution;\n critical and diagnostic use the `level-critical` and `level-diagnostic`\n badges of `obc-badge` (#1389).\n\n---\n\n### Example\n\n```html\n<obc-alert-counter-item\n .counts=${{countAlarm: 2, countWarning: 4, countCaution: 6}}\n shelvedCount=\"9\"\n></obc-alert-counter-item>\n```",
52118
+ "description": "`<obc-alert-counter-item>` – A row of alert counts, one badge per severity.\n\nRenders a large `obc-badge` for every severity with a count above zero, most\nsevere first, followed by an optional shelved count. Nothing renders when\nnothing is counted.\n\n---\n\n### Features\n- **Two types:** `badges` draws filled badges in the severity colour;\n `alert-level` draws flat badges with the severity glyph.\n- **Every severity:** `counts` takes the whole `AlertType` vocabulary,\n including the `level-*` family, ordered by `ALERT_SEVERITY_PRIORITY`.\n- **Shelved count:** `shelvedCount` adds a neutral badge with the timer icon\n at the end, the icon the Figma counter swaps into its shelved badge.\n- **Accessible summary:** the row is announced as one image labelled with\n the counts, e.g. \"2 Alarm, 4 Warning, 6 Caution\".\n\n---\n\n### Usage Guidelines\n- Show how many alerts are outstanding per severity in a compact space;\n `obc-alert-button-item` nests the counter for its global counter.\n- Pass the counts as one object: `.counts=${{countAlarm: 2, countWarning: 4}}`.\n- The counter is display-only: it renders no button and fires no events.\n- For a framed per-subsystem summary with a label, see\n `obc-alert-subsystem-counter`.\n- **TODO(designer):** the Figma component also has an Unacked counter type;\n how its icons map to counts is not defined yet.\n- **TODO(designer):** the Figma component draws alarm, warning and caution;\n critical and diagnostic use the `level-critical` and `level-diagnostic`\n badges of `obc-badge` (#1389).\n\n---\n\n### Example\n\n```html\n<obc-alert-counter-item\n .counts=${{countAlarm: 2, countWarning: 4, countCaution: 6}}\n shelvedCount=\"9\"\n></obc-alert-counter-item>\n```",
52119
52119
  "name": "ObcAlertCounterItem",
52120
52120
  "members": [
52121
52121
  {
@@ -52142,7 +52142,7 @@
52142
52142
  "text": "number"
52143
52143
  },
52144
52144
  "default": "0",
52145
- "description": "Number of shelved alerts, shown as a neutral badge with the shelf icon after the severities; hidden at zero."
52145
+ "description": "Number of shelved alerts, shown as a neutral badge with the timer icon after the severities; hidden at zero."
52146
52146
  },
52147
52147
  {
52148
52148
  "kind": "method",
@@ -14,7 +14,7 @@ var alert_counter_item_default = css`* {
14
14
  gap: var(--app-components-alert-counter-item-badge-spacing);
15
15
  }
16
16
 
17
- obi-alerts-shelf {
17
+ obi-timer-2 {
18
18
  display: block; /* fills the badge icon box that sizes the badge-icon slot */
19
19
  width: 100%;
20
20
  height: 100%;
@@ -1 +1 @@
1
- {"version":3,"file":"alert-counter-item.css.js","names":[],"sources":["../../../src/components/alert-counter-item/alert-counter-item.css?inline"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n.row {\n display: flex;\n align-items: center;\n gap: var(--app-components-alert-counter-item-badge-spacing);\n}\n\nobi-alerts-shelf {\n display: block; /* fills the badge icon box that sizes the badge-icon slot */\n width: 100%;\n height: 100%;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"alert-counter-item.css.js","names":[],"sources":["../../../src/components/alert-counter-item/alert-counter-item.css?inline"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n.row {\n display: flex;\n align-items: center;\n gap: var(--app-components-alert-counter-item-badge-spacing);\n}\n\nobi-timer-2 {\n display: block; /* fills the badge icon box that sizes the badge-icon slot */\n width: 100%;\n height: 100%;\n}\n"],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  import { LitElement, nothing } from 'lit';
2
2
  import { AlertCounts } from '../../types.js';
3
3
  import '../badge/badge.js';
4
- import '../../icons/icon-alerts-shelf.js';
4
+ import '../../icons/icon-timer-2.js';
5
5
  /**
6
6
  * `ObcAlertCounterItemType` – How each count is drawn (Figma `Type`).
7
7
  *
@@ -26,8 +26,8 @@ export declare enum ObcAlertCounterItemType {
26
26
  * `alert-level` draws flat badges with the severity glyph.
27
27
  * - **Every severity:** `counts` takes the whole `AlertType` vocabulary,
28
28
  * including the `level-*` family, ordered by `ALERT_SEVERITY_PRIORITY`.
29
- * - **Shelved count:** `shelvedCount` adds a neutral badge with the shelf icon
30
- * at the end.
29
+ * - **Shelved count:** `shelvedCount` adds a neutral badge with the timer icon
30
+ * at the end, the icon the Figma counter swaps into its shelved badge.
31
31
  * - **Accessible summary:** the row is announced as one image labelled with
32
32
  * the counts, e.g. "2 Alarm, 4 Warning, 6 Caution".
33
33
  *
@@ -59,7 +59,7 @@ export declare enum ObcAlertCounterItemType {
59
59
  *
60
60
  * @property type - How each count is drawn: `badges` (filled severity badges, default) or `alert-level` (flat badges with the severity glyph).
61
61
  * @property counts - Alert count per severity (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts); counts of zero or less are not shown.
62
- * @property shelvedCount - Number of shelved alerts, shown as a neutral badge with the shelf icon after the severities; hidden at zero.
62
+ * @property shelvedCount - Number of shelved alerts, shown as a neutral badge with the timer icon after the severities; hidden at zero.
63
63
  * @experimental
64
64
  */
65
65
  export declare class ObcAlertCounterItem extends LitElement {
@@ -67,7 +67,7 @@ export declare class ObcAlertCounterItem extends LitElement {
67
67
  type: ObcAlertCounterItemType;
68
68
  /** Alert count per severity (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts); counts of zero or less are not shown. */
69
69
  counts: AlertCounts;
70
- /** Number of shelved alerts, shown as a neutral badge with the shelf icon after the severities; hidden at zero. */
70
+ /** Number of shelved alerts, shown as a neutral badge with the timer icon after the severities; hidden at zero. */
71
71
  shelvedCount: number;
72
72
  render(): import('lit-html').TemplateResult<1> | typeof nothing;
73
73
  static styles: import('lit').CSSResult;
@@ -1 +1 @@
1
- {"version":3,"file":"alert-counter-item.d.ts","sourceRoot":"","sources":["../../../src/components/alert-counter-item/alert-counter-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAQ,OAAO,EAAY,MAAM,KAAK,CAAC;AAMzD,OAAO,mBAAmB,CAAC;AAE3B,OAAO,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAGhD;;;;;GAKG;AACH,oBAAY,uBAAuB;IACjC,MAAM,WAAW;IACjB,UAAU,gBAAgB;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,qBAEa,mBAAoB,SAAQ,UAAU;IACvB,IAAI,EAAE,uBAAuB,CACtB;IACW,MAAM,EAAE,WAAW,CAAM;IAC3C,YAAY,SAAK;IAElC,MAAM;IA0Cf,OAAgB,MAAM,0BAA6B;CACpD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,wBAAwB,EAAE,mBAAmB,CAAC;KAC/C;CACF"}
1
+ {"version":3,"file":"alert-counter-item.d.ts","sourceRoot":"","sources":["../../../src/components/alert-counter-item/alert-counter-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAQ,OAAO,EAAY,MAAM,KAAK,CAAC;AAMzD,OAAO,mBAAmB,CAAC;AAE3B,OAAO,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAGhD;;;;;GAKG;AACH,oBAAY,uBAAuB;IACjC,MAAM,WAAW;IACjB,UAAU,gBAAgB;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,qBAEa,mBAAoB,SAAQ,UAAU;IACvB,IAAI,EAAE,uBAAuB,CACtB;IACW,MAAM,EAAE,WAAW,CAAM;IAC3C,YAAY,SAAK;IAElC,MAAM;IA0Cf,OAAgB,MAAM,0BAA6B;CACpD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,wBAAwB,EAAE,mBAAmB,CAAC;KAC/C;CACF"}
@@ -1,7 +1,7 @@
1
1
  import { alertCountsLabel, rankAlertCounts } from "../../alert-severity.js";
2
2
  import { customElement } from "../../decorator.js";
3
3
  import __decorate from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/decorate.js";
4
- import "../../icons/icon-alerts-shelf.js";
4
+ import "../../icons/icon-timer-2.js";
5
5
  import { BadgeSize, BadgeType, BadgeVariant } from "../badge/badge.js";
6
6
  import alert_counter_item_default from "./alert-counter-item.css.js";
7
7
  import { localized } from "@lit/localize";
@@ -52,7 +52,7 @@ var ObcAlertCounterItem = class ObcAlertCounterItem extends LitElement {
52
52
  showIcon
53
53
  .number=${this.shelvedCount}
54
54
  >
55
- <obi-alerts-shelf slot="badge-icon"></obi-alerts-shelf>
55
+ <obi-timer-2 slot="badge-icon"></obi-timer-2>
56
56
  </obc-badge>` : nothing}
57
57
  </div>
58
58
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"alert-counter-item.js","names":[],"sources":["../../../src/components/alert-counter-item/alert-counter-item.ts"],"sourcesContent":["import {LitElement, html, nothing, unsafeCSS} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport {repeat} from 'lit/directives/repeat.js';\nimport {localized} from '@lit/localize';\nimport componentStyle from './alert-counter-item.css?inline';\nimport {customElement} from '../../decorator.js';\nimport '../badge/badge.js';\nimport {BadgeSize, BadgeType, BadgeVariant} from '../badge/badge.js';\nimport '../../icons/icon-alerts-shelf.js';\nimport type {AlertCounts} from '../../types.js';\nimport {alertCountsLabel, rankAlertCounts} from '../../alert-severity.js';\n\n/**\n * `ObcAlertCounterItemType` – How each count is drawn (Figma `Type`).\n *\n * - `badges`: filled badges in the severity colour (Figma Badges counter).\n * - `alert-level`: flat badges with the severity glyph (Figma Alert level counter).\n */\nexport enum ObcAlertCounterItemType {\n Badges = 'badges',\n AlertLevel = 'alert-level',\n}\n\n/**\n * `<obc-alert-counter-item>` – A row of alert counts, one badge per severity.\n *\n * Renders a large `obc-badge` for every severity with a count above zero, most\n * severe first, followed by an optional shelved count. Nothing renders when\n * nothing is counted.\n *\n * ---\n *\n * ### Features\n * - **Two types:** `badges` draws filled badges in the severity colour;\n * `alert-level` draws flat badges with the severity glyph.\n * - **Every severity:** `counts` takes the whole `AlertType` vocabulary,\n * including the `level-*` family, ordered by `ALERT_SEVERITY_PRIORITY`.\n * - **Shelved count:** `shelvedCount` adds a neutral badge with the shelf icon\n * at the end.\n * - **Accessible summary:** the row is announced as one image labelled with\n * the counts, e.g. \"2 Alarm, 4 Warning, 6 Caution\".\n *\n * ---\n *\n * ### Usage Guidelines\n * - Show how many alerts are outstanding per severity in a compact space;\n * `obc-alert-button-item` nests the counter for its global counter.\n * - Pass the counts as one object: `.counts=${{countAlarm: 2, countWarning: 4}}`.\n * - The counter is display-only: it renders no button and fires no events.\n * - For a framed per-subsystem summary with a label, see\n * `obc-alert-subsystem-counter`.\n * - **TODO(designer):** the Figma component also has an Unacked counter type;\n * how its icons map to counts is not defined yet.\n * - **TODO(designer):** the Figma component draws alarm, warning and caution;\n * critical and diagnostic use the `level-critical` and `level-diagnostic`\n * badges of `obc-badge` (#1389).\n *\n * ---\n *\n * ### Example\n *\n * ```html\n * <obc-alert-counter-item\n * .counts=${{countAlarm: 2, countWarning: 4, countCaution: 6}}\n * shelvedCount=\"9\"\n * ></obc-alert-counter-item>\n * ```\n *\n * @property type - How each count is drawn: `badges` (filled severity badges, default) or `alert-level` (flat badges with the severity glyph).\n * @property counts - Alert count per severity (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts); counts of zero or less are not shown.\n * @property shelvedCount - Number of shelved alerts, shown as a neutral badge with the shelf icon after the severities; hidden at zero.\n * @experimental\n */\n@customElement('obc-alert-counter-item')\n@localized()\nexport class ObcAlertCounterItem extends LitElement {\n @property({type: String}) type: ObcAlertCounterItemType =\n ObcAlertCounterItemType.Badges;\n @property({type: Object, attribute: false}) counts: AlertCounts = {};\n @property({type: Number}) shelvedCount = 0;\n\n override render() {\n const ranked = rankAlertCounts(this.counts);\n if (ranked.length === 0 && this.shelvedCount <= 0) {\n return nothing;\n }\n const alertLevel = this.type === ObcAlertCounterItemType.AlertLevel;\n const variant = alertLevel ? BadgeVariant.flat : BadgeVariant.default;\n return html`\n <div\n class=\"row\"\n role=\"img\"\n aria-label=${alertCountsLabel(this.counts, this.shelvedCount)}\n >\n ${repeat(\n ranked,\n (entry) => entry.type,\n (entry) =>\n html`<obc-badge\n size=${BadgeSize.large}\n type=${entry.type}\n .variant=${variant}\n .showIcon=${alertLevel}\n .number=${entry.count}\n ></obc-badge>`\n )}\n ${\n this.shelvedCount > 0\n ? html`<obc-badge\n size=${BadgeSize.large}\n type=${BadgeType.regular}\n .variant=${variant}\n showIcon\n .number=${this.shelvedCount}\n >\n <obi-alerts-shelf slot=\"badge-icon\"></obi-alerts-shelf>\n </obc-badge>`\n : nothing\n }\n </div>\n `;\n }\n\n static override styles = unsafeCSS(componentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-alert-counter-item': ObcAlertCounterItem;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,IAAY,0BAAL,yBAAA,yBAAA;CACL,wBAAA,YAAA;CACA,wBAAA,gBAAA;;AACF,EAAA,CAAA,CAAA;AAsDO,IAAM,sBAAN,MAAM,4BAA4B,WAAW;;;;EAGgB,KAAA,SAAA,CAAC;EAC1B,KAAA,eAAA;;CAEzC,SAAkB;EAChB,MAAM,SAAS,gBAAgB,KAAK,MAAM;EAC1C,IAAI,OAAO,WAAW,KAAK,KAAK,gBAAgB,GAC9C,OAAO;EAET,MAAM,aAAa,KAAK,SAAA;EACxB,MAAM,UAAU,aAAa,aAAa,OAAO,aAAa;EAC9D,OAAO,IAAI;;;;qBAIM,iBAAiB,KAAK,QAAQ,KAAK,YAAY,EAAE;;UAE5D,OACA,SACC,UAAU,MAAM,OAChB,UACC,IAAI;qBACK,UAAU,MAAM;qBAChB,MAAM,KAAK;yBACP,QAAQ;0BACP,WAAW;wBACb,MAAM,MAAM;0BAE5B,EAAE;UAEA,KAAK,eAAe,IAChB,IAAI;uBACK,UAAU,MAAM;uBAChB,UAAU,QAAQ;2BACd,QAAQ;;0BAET,KAAK,aAAa;;;8BAI9B,QACL;;;CAGP;;EAEyB,KAAA,SAAA,UAAU,0BAAc;;AACnD;AAhDG,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,oBAAA,WAAA,QAAA,KAAA,CAAA;AAEvB,WAAA,CAAA,SAAS;CAAC,MAAM;CAAQ,WAAW;AAAK,CAAC,CAAA,GAAA,oBAAA,WAAA,UAAA,KAAA,CAAA;AACzC,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,oBAAA,WAAA,gBAAA,KAAA,CAAA;AANzB,sBAAA,WAAA,CAAA,cAAc,wBAAwB,GACtC,UAAU,CAAA,GAAA,mBAAA"}
1
+ {"version":3,"file":"alert-counter-item.js","names":[],"sources":["../../../src/components/alert-counter-item/alert-counter-item.ts"],"sourcesContent":["import {LitElement, html, nothing, unsafeCSS} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport {repeat} from 'lit/directives/repeat.js';\nimport {localized} from '@lit/localize';\nimport componentStyle from './alert-counter-item.css?inline';\nimport {customElement} from '../../decorator.js';\nimport '../badge/badge.js';\nimport {BadgeSize, BadgeType, BadgeVariant} from '../badge/badge.js';\nimport '../../icons/icon-timer-2.js';\nimport type {AlertCounts} from '../../types.js';\nimport {alertCountsLabel, rankAlertCounts} from '../../alert-severity.js';\n\n/**\n * `ObcAlertCounterItemType` – How each count is drawn (Figma `Type`).\n *\n * - `badges`: filled badges in the severity colour (Figma Badges counter).\n * - `alert-level`: flat badges with the severity glyph (Figma Alert level counter).\n */\nexport enum ObcAlertCounterItemType {\n Badges = 'badges',\n AlertLevel = 'alert-level',\n}\n\n/**\n * `<obc-alert-counter-item>` – A row of alert counts, one badge per severity.\n *\n * Renders a large `obc-badge` for every severity with a count above zero, most\n * severe first, followed by an optional shelved count. Nothing renders when\n * nothing is counted.\n *\n * ---\n *\n * ### Features\n * - **Two types:** `badges` draws filled badges in the severity colour;\n * `alert-level` draws flat badges with the severity glyph.\n * - **Every severity:** `counts` takes the whole `AlertType` vocabulary,\n * including the `level-*` family, ordered by `ALERT_SEVERITY_PRIORITY`.\n * - **Shelved count:** `shelvedCount` adds a neutral badge with the timer icon\n * at the end, the icon the Figma counter swaps into its shelved badge.\n * - **Accessible summary:** the row is announced as one image labelled with\n * the counts, e.g. \"2 Alarm, 4 Warning, 6 Caution\".\n *\n * ---\n *\n * ### Usage Guidelines\n * - Show how many alerts are outstanding per severity in a compact space;\n * `obc-alert-button-item` nests the counter for its global counter.\n * - Pass the counts as one object: `.counts=${{countAlarm: 2, countWarning: 4}}`.\n * - The counter is display-only: it renders no button and fires no events.\n * - For a framed per-subsystem summary with a label, see\n * `obc-alert-subsystem-counter`.\n * - **TODO(designer):** the Figma component also has an Unacked counter type;\n * how its icons map to counts is not defined yet.\n * - **TODO(designer):** the Figma component draws alarm, warning and caution;\n * critical and diagnostic use the `level-critical` and `level-diagnostic`\n * badges of `obc-badge` (#1389).\n *\n * ---\n *\n * ### Example\n *\n * ```html\n * <obc-alert-counter-item\n * .counts=${{countAlarm: 2, countWarning: 4, countCaution: 6}}\n * shelvedCount=\"9\"\n * ></obc-alert-counter-item>\n * ```\n *\n * @property type - How each count is drawn: `badges` (filled severity badges, default) or `alert-level` (flat badges with the severity glyph).\n * @property counts - Alert count per severity (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts); counts of zero or less are not shown.\n * @property shelvedCount - Number of shelved alerts, shown as a neutral badge with the timer icon after the severities; hidden at zero.\n * @experimental\n */\n@customElement('obc-alert-counter-item')\n@localized()\nexport class ObcAlertCounterItem extends LitElement {\n @property({type: String}) type: ObcAlertCounterItemType =\n ObcAlertCounterItemType.Badges;\n @property({type: Object, attribute: false}) counts: AlertCounts = {};\n @property({type: Number}) shelvedCount = 0;\n\n override render() {\n const ranked = rankAlertCounts(this.counts);\n if (ranked.length === 0 && this.shelvedCount <= 0) {\n return nothing;\n }\n const alertLevel = this.type === ObcAlertCounterItemType.AlertLevel;\n const variant = alertLevel ? BadgeVariant.flat : BadgeVariant.default;\n return html`\n <div\n class=\"row\"\n role=\"img\"\n aria-label=${alertCountsLabel(this.counts, this.shelvedCount)}\n >\n ${repeat(\n ranked,\n (entry) => entry.type,\n (entry) =>\n html`<obc-badge\n size=${BadgeSize.large}\n type=${entry.type}\n .variant=${variant}\n .showIcon=${alertLevel}\n .number=${entry.count}\n ></obc-badge>`\n )}\n ${\n this.shelvedCount > 0\n ? html`<obc-badge\n size=${BadgeSize.large}\n type=${BadgeType.regular}\n .variant=${variant}\n showIcon\n .number=${this.shelvedCount}\n >\n <obi-timer-2 slot=\"badge-icon\"></obi-timer-2>\n </obc-badge>`\n : nothing\n }\n </div>\n `;\n }\n\n static override styles = unsafeCSS(componentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-alert-counter-item': ObcAlertCounterItem;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,IAAY,0BAAL,yBAAA,yBAAA;CACL,wBAAA,YAAA;CACA,wBAAA,gBAAA;;AACF,EAAA,CAAA,CAAA;AAsDO,IAAM,sBAAN,MAAM,4BAA4B,WAAW;;;;EAGgB,KAAA,SAAA,CAAC;EAC1B,KAAA,eAAA;;CAEzC,SAAkB;EAChB,MAAM,SAAS,gBAAgB,KAAK,MAAM;EAC1C,IAAI,OAAO,WAAW,KAAK,KAAK,gBAAgB,GAC9C,OAAO;EAET,MAAM,aAAa,KAAK,SAAA;EACxB,MAAM,UAAU,aAAa,aAAa,OAAO,aAAa;EAC9D,OAAO,IAAI;;;;qBAIM,iBAAiB,KAAK,QAAQ,KAAK,YAAY,EAAE;;UAE5D,OACA,SACC,UAAU,MAAM,OAChB,UACC,IAAI;qBACK,UAAU,MAAM;qBAChB,MAAM,KAAK;yBACP,QAAQ;0BACP,WAAW;wBACb,MAAM,MAAM;0BAE5B,EAAE;UAEA,KAAK,eAAe,IAChB,IAAI;uBACK,UAAU,MAAM;uBAChB,UAAU,QAAQ;2BACd,QAAQ;;0BAET,KAAK,aAAa;;;8BAI9B,QACL;;;CAGP;;EAEyB,KAAA,SAAA,UAAU,0BAAc;;AACnD;AAhDG,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,oBAAA,WAAA,QAAA,KAAA,CAAA;AAEvB,WAAA,CAAA,SAAS;CAAC,MAAM;CAAQ,WAAW;AAAK,CAAC,CAAA,GAAA,oBAAA,WAAA,UAAA,KAAA,CAAA;AACzC,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,oBAAA,WAAA,gBAAA,KAAA,CAAA;AANzB,sBAAA,WAAA,CAAA,cAAc,wBAAwB,GACtC,UAAU,CAAA,GAAA,mBAAA"}
@@ -4,6 +4,10 @@ var badge_default = css`* {
4
4
  -webkit-tap-highlight-color: transparent;
5
5
  }
6
6
 
7
+ :host {
8
+ line-height: 0; /* in a flex row, the host's text line adds the font's descent under an icon-first badge */
9
+ }
10
+
7
11
  .wrapper {
8
12
  user-select: none;
9
13
  display: flex;
@@ -1 +1 @@
1
- {"version":3,"file":"badge.css.js","names":[],"sources":["../../../src/components/badge/badge.css?inline"],"sourcesContent":[".wrapper {\n user-select: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-style: solid;\n border-radius: var(--ui-components-badge-border-radius);\n padding: calc(var(--ui-components-badge-padding) - 1px);\n border: 1px solid var(--alert-alarm-outline-color);\n background: var(--alert-alarm-color);\n width: fit-content;\n height: 16px;\n box-sizing: border-box;\n\n .badge-icon {\n width: 100%;\n height: 100%;\n }\n\n .icon {\n width: var(--ui-components-badge-icon-size);\n height: var(--ui-components-badge-icon-size);\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n }\n\n & .number {\n @mixin font-label-active;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 0 var(--ui-components-badge-label-spacing) 1px\n var(--ui-components-badge-label-spacing);\n height: var(--ui-components-badge-icon-size);\n min-width: var(--ui-components-badge-icon-size);\n }\n\n &.size-large {\n display: inline-flex;\n width: fit-content;\n height: 24px;\n min-width: var(--ui-components-badge-min-size-large);\n min-height: var(--ui-components-badge-min-size-large);\n\n padding: calc(var(--ui-components-badge-padding) - 1px);\n justify-content: center;\n align-items: center;\n background: var(--alert-alarm-color);\n\n & .number {\n padding-bottom: 0;\n }\n\n & .number-text {\n @mixin font-body-active;\n }\n\n & .icon {\n width: var(--ui-components-badge-icon-size-large);\n height: var(--ui-components-badge-icon-size-large);\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n &.type-empty {\n min-width: 38px;\n height: 24px;\n }\n }\n\n &.type-regular {\n color: var(--on-normal-neutral-color);\n background-color: var(--normal-enabled-background-color);\n border-color: var(--normal-enabled-border-color);\n }\n\n &.type-alarm {\n background-color: var(--alert-alarm-color);\n border-color: var(--alert-alarm-outline-color);\n color: var(--on-alarm-color);\n }\n\n &.type-warning {\n background-color: var(--alert-warning-color);\n border-color: var(--alert-warning-outline-color);\n color: var(--on-warning-color);\n }\n\n &.type-caution,\n &.type-level-low {\n background-color: var(--alert-caution-color);\n border-color: var(--alert-caution-outline-color);\n color: var(--on-caution-color);\n }\n\n &.type-level-critical {\n background-color: var(--critical-enabled-background-color);\n border-color: var(--critical-enabled-border-color);\n color: var(--on-critical-color);\n }\n\n &.type-level-high {\n background-color: var(--alert-alarm-color);\n border-color: var(--alert-alarm-outline-color);\n color: var(--on-alarm-color);\n }\n\n &.type-level-medium {\n background-color: var(--alert-warning-color);\n border-color: var(--alert-warning-outline-color);\n color: var(--on-warning-color);\n }\n\n &.type-level-diagnostic {\n background-color: var(--notification-enabled-background-color);\n border-color: var(--notification-enabled-border-color);\n color: var(--on-notification-active-color);\n }\n\n &.type-running {\n background-color: var(--alert-running-color);\n border-color: var(--alert-running-color);\n color: var(--on-running-color);\n }\n\n &.type-notification {\n background-color: var(--instrument-enhanced-primary-color);\n border-color: var(--instrument-enhanced-primary-color);\n color: var(--on-selected-active-color);\n }\n\n &.type-enhance {\n background-color: var(--instrument-enhanced-secondary-color);\n border-color: var(--instrument-enhanced-secondary-color);\n color: var(--on-selected-active-color);\n }\n\n &.type-empty {\n background-color: var(--flat-enabled-background-color);\n border-color: var(--normal-enabled-border-color);\n min-width: 28px;\n }\n\n &.type-automation {\n background-color: var(--container-background-color);\n border-color: var(--container-background-color);\n color: var(--on-flat-neutral-color);\n }\n\n &.variant-flat {\n background-color: var(--flat-enabled-background-color);\n border-color: var(--flat-enabled-background-color);\n\n .icon {\n min-width: var(--ui-components-badge-icon-size);\n min-height: var(--ui-components-badge-icon-size);\n }\n\n /* Figma binds the flat large icon frame to the badge height, not icon-size-large */\n &.size-large .icon {\n width: var(--ui-components-badge-min-size-large);\n height: var(--ui-components-badge-min-size-large);\n }\n\n .icon.type-alarm {\n color: unset;\n border-color: var(--alert-alarm-outline-color);\n background: none;\n }\n\n .icon.type-warning {\n color: unset;\n border-color: var(--alert-warning-outline-color);\n background: none;\n }\n .icon.type-caution,\n .icon.type-level-low {\n color: unset;\n border-color: var(--alert-caution-outline-color);\n background: none;\n }\n\n .icon.type-level-critical {\n color: unset;\n border-color: var(--critical-enabled-border-color);\n background: none;\n }\n\n .icon.type-level-high {\n color: unset;\n border-color: var(--alert-alarm-outline-color);\n background: none;\n }\n\n .icon.type-level-medium {\n color: unset;\n border-color: var(--alert-warning-outline-color);\n background: none;\n }\n\n .icon.type-level-diagnostic {\n color: unset;\n border-color: var(--notification-enabled-border-color);\n background: none;\n }\n\n .icon.type-regular {\n color: unset;\n border-color: var(--normal-enabled-border-color);\n background: none;\n }\n\n .icon.type-notification {\n color: var(--instrument-enhanced-primary-color);\n border-color: var(\n --instrument-enhanced-primary-outline-color,\n transparent\n );\n background: none;\n }\n\n .icon.type-enhance {\n color: var(--instrument-enhanced-secondary-color);\n background: none;\n }\n\n .icon.type-regular {\n color: var(--on-normal-neutral-color);\n }\n\n .number {\n color: var(--element-active-color);\n }\n\n .icon.type-automation {\n color: unset;\n background: none;\n }\n\n & .icon.type-outline {\n width: var(--ui-components-badge-icon-size-flat);\n height: var(--ui-components-badge-icon-size-flat);\n }\n\n .icon.type-outline + .number {\n color: var(--on-normal-neutral-color);\n }\n }\n}\n\n.icon.type-alarm path {\n stroke: var(--alert-alarm-outline-color);\n}\n.icon.type-warning circle {\n stroke: var(--alert-warning-outline-color);\n}\n.icon.type-caution path {\n stroke: var(--alert-caution-outline-color);\n}\n.icon.type-running path {\n stroke: none;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"badge.css.js","names":[],"sources":["../../../src/components/badge/badge.css?inline"],"sourcesContent":[":host {\n line-height: 0; /* in a flex row, the host's text line adds the font's descent under an icon-first badge */\n}\n\n.wrapper {\n user-select: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-style: solid;\n border-radius: var(--ui-components-badge-border-radius);\n padding: calc(var(--ui-components-badge-padding) - 1px);\n border: 1px solid var(--alert-alarm-outline-color);\n background: var(--alert-alarm-color);\n width: fit-content;\n height: 16px;\n box-sizing: border-box;\n\n .badge-icon {\n width: 100%;\n height: 100%;\n }\n\n .icon {\n width: var(--ui-components-badge-icon-size);\n height: var(--ui-components-badge-icon-size);\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n }\n\n & .number {\n @mixin font-label-active;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 0 var(--ui-components-badge-label-spacing) 1px\n var(--ui-components-badge-label-spacing);\n height: var(--ui-components-badge-icon-size);\n min-width: var(--ui-components-badge-icon-size);\n }\n\n &.size-large {\n display: inline-flex;\n width: fit-content;\n height: 24px;\n min-width: var(--ui-components-badge-min-size-large);\n min-height: var(--ui-components-badge-min-size-large);\n\n padding: calc(var(--ui-components-badge-padding) - 1px);\n justify-content: center;\n align-items: center;\n background: var(--alert-alarm-color);\n\n & .number {\n padding-bottom: 0;\n }\n\n & .number-text {\n @mixin font-body-active;\n }\n\n & .icon {\n width: var(--ui-components-badge-icon-size-large);\n height: var(--ui-components-badge-icon-size-large);\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n &.type-empty {\n min-width: 38px;\n height: 24px;\n }\n }\n\n &.type-regular {\n color: var(--on-normal-neutral-color);\n background-color: var(--normal-enabled-background-color);\n border-color: var(--normal-enabled-border-color);\n }\n\n &.type-alarm {\n background-color: var(--alert-alarm-color);\n border-color: var(--alert-alarm-outline-color);\n color: var(--on-alarm-color);\n }\n\n &.type-warning {\n background-color: var(--alert-warning-color);\n border-color: var(--alert-warning-outline-color);\n color: var(--on-warning-color);\n }\n\n &.type-caution,\n &.type-level-low {\n background-color: var(--alert-caution-color);\n border-color: var(--alert-caution-outline-color);\n color: var(--on-caution-color);\n }\n\n &.type-level-critical {\n background-color: var(--critical-enabled-background-color);\n border-color: var(--critical-enabled-border-color);\n color: var(--on-critical-color);\n }\n\n &.type-level-high {\n background-color: var(--alert-alarm-color);\n border-color: var(--alert-alarm-outline-color);\n color: var(--on-alarm-color);\n }\n\n &.type-level-medium {\n background-color: var(--alert-warning-color);\n border-color: var(--alert-warning-outline-color);\n color: var(--on-warning-color);\n }\n\n &.type-level-diagnostic {\n background-color: var(--notification-enabled-background-color);\n border-color: var(--notification-enabled-border-color);\n color: var(--on-notification-active-color);\n }\n\n &.type-running {\n background-color: var(--alert-running-color);\n border-color: var(--alert-running-color);\n color: var(--on-running-color);\n }\n\n &.type-notification {\n background-color: var(--instrument-enhanced-primary-color);\n border-color: var(--instrument-enhanced-primary-color);\n color: var(--on-selected-active-color);\n }\n\n &.type-enhance {\n background-color: var(--instrument-enhanced-secondary-color);\n border-color: var(--instrument-enhanced-secondary-color);\n color: var(--on-selected-active-color);\n }\n\n &.type-empty {\n background-color: var(--flat-enabled-background-color);\n border-color: var(--normal-enabled-border-color);\n min-width: 28px;\n }\n\n &.type-automation {\n background-color: var(--container-background-color);\n border-color: var(--container-background-color);\n color: var(--on-flat-neutral-color);\n }\n\n &.variant-flat {\n background-color: var(--flat-enabled-background-color);\n border-color: var(--flat-enabled-background-color);\n\n .icon {\n min-width: var(--ui-components-badge-icon-size);\n min-height: var(--ui-components-badge-icon-size);\n }\n\n /* Figma binds the flat large icon frame to the badge height, not icon-size-large */\n &.size-large .icon {\n width: var(--ui-components-badge-min-size-large);\n height: var(--ui-components-badge-min-size-large);\n }\n\n .icon.type-alarm {\n color: unset;\n border-color: var(--alert-alarm-outline-color);\n background: none;\n }\n\n .icon.type-warning {\n color: unset;\n border-color: var(--alert-warning-outline-color);\n background: none;\n }\n .icon.type-caution,\n .icon.type-level-low {\n color: unset;\n border-color: var(--alert-caution-outline-color);\n background: none;\n }\n\n .icon.type-level-critical {\n color: unset;\n border-color: var(--critical-enabled-border-color);\n background: none;\n }\n\n .icon.type-level-high {\n color: unset;\n border-color: var(--alert-alarm-outline-color);\n background: none;\n }\n\n .icon.type-level-medium {\n color: unset;\n border-color: var(--alert-warning-outline-color);\n background: none;\n }\n\n .icon.type-level-diagnostic {\n color: unset;\n border-color: var(--notification-enabled-border-color);\n background: none;\n }\n\n .icon.type-regular {\n color: unset;\n border-color: var(--normal-enabled-border-color);\n background: none;\n }\n\n .icon.type-notification {\n color: var(--instrument-enhanced-primary-color);\n border-color: var(\n --instrument-enhanced-primary-outline-color,\n transparent\n );\n background: none;\n }\n\n .icon.type-enhance {\n color: var(--instrument-enhanced-secondary-color);\n background: none;\n }\n\n .icon.type-regular {\n color: var(--on-normal-neutral-color);\n }\n\n .number {\n color: var(--element-active-color);\n }\n\n .icon.type-automation {\n color: unset;\n background: none;\n }\n\n & .icon.type-outline {\n width: var(--ui-components-badge-icon-size-flat);\n height: var(--ui-components-badge-icon-size-flat);\n }\n\n .icon.type-outline + .number {\n color: var(--on-normal-neutral-color);\n }\n }\n}\n\n.icon.type-alarm path {\n stroke: var(--alert-alarm-outline-color);\n}\n.icon.type-warning circle {\n stroke: var(--alert-warning-outline-color);\n}\n.icon.type-caution path {\n stroke: var(--alert-caution-outline-color);\n}\n.icon.type-running path {\n stroke: none;\n}\n"],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-full-bundle",
3
- "version": "2.2.0-next.3",
3
+ "version": "2.2.0-next.4",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,7 +8,7 @@
8
8
  gap: var(--app-components-alert-counter-item-badge-spacing);
9
9
  }
10
10
 
11
- obi-alerts-shelf {
11
+ obi-timer-2 {
12
12
  display: block; /* fills the badge icon box that sizes the badge-icon slot */
13
13
  width: 100%;
14
14
  height: 100%;
@@ -1,6 +1,7 @@
1
1
  import {describe, expect, it} from 'vitest';
2
2
  import {render} from 'vitest-browser-lit';
3
3
  import {html} from 'lit';
4
+ import '../../main.css';
4
5
  import './alert-counter-item.js';
5
6
  import {
6
7
  ObcAlertCounterItem,
@@ -36,6 +37,15 @@ function lastBadge(el: ObcAlertCounterItem): ObcBadge {
36
37
  return all[all.length - 1];
37
38
  }
38
39
 
40
+ /** Top and bottom edge of each drawn badge box, in CSS px. */
41
+ function badgeEdges(el: ObcAlertCounterItem): [number, number][] {
42
+ return badges(el).map((badge) => {
43
+ const box = badge.shadowRoot!.querySelector('.wrapper')!;
44
+ const {top, bottom} = box.getBoundingClientRect();
45
+ return [top, bottom];
46
+ });
47
+ }
48
+
39
49
  describe('obc-alert-counter-item', () => {
40
50
  it('renders one filled badge per positive count, most severe first', async () => {
41
51
  const el = await setup({countCaution: 6, countAlarm: 2, countWarning: 0});
@@ -59,20 +69,34 @@ describe('obc-alert-counter-item', () => {
59
69
  ]);
60
70
  });
61
71
 
62
- it('adds the shelved count last, with the shelf icon in both types', async () => {
72
+ it('adds the shelved count last, with the timer icon in both types', async () => {
63
73
  const filled = await setup({countAlarm: 2}, {shelvedCount: 9});
64
74
  expect([
65
75
  lastBadge(filled).type,
66
76
  lastBadge(filled).number,
67
77
  lastBadge(filled).showIcon,
68
78
  ]).toEqual(['regular', 9, true]);
69
- expect(lastBadge(filled).querySelector('obi-alerts-shelf')).not.toBeNull();
79
+ expect(lastBadge(filled).querySelector('obi-timer-2')).not.toBeNull();
70
80
 
71
81
  const level = await setup(
72
82
  {countAlarm: 2},
73
83
  {type: ObcAlertCounterItemType.AlertLevel, shelvedCount: 9}
74
84
  );
75
- expect(lastBadge(level).querySelector('obi-alerts-shelf')).not.toBeNull();
85
+ expect(lastBadge(level).querySelector('obi-timer-2')).not.toBeNull();
86
+ });
87
+
88
+ it('draws every badge box on the same top and bottom edge', async () => {
89
+ for (const type of Object.values(ObcAlertCounterItemType)) {
90
+ const el = await setup(
91
+ {countAlarm: 2, countWarning: 4, countCaution: 6},
92
+ {type, shelvedCount: 9}
93
+ );
94
+ const [first, ...rest] = badgeEdges(el);
95
+
96
+ for (const edges of rest) {
97
+ expect(edges, type).toEqual(first);
98
+ }
99
+ }
76
100
  });
77
101
 
78
102
  it('renders nothing when nothing is counted', async () => {
@@ -6,7 +6,7 @@ import componentStyle from './alert-counter-item.css?inline';
6
6
  import {customElement} from '../../decorator.js';
7
7
  import '../badge/badge.js';
8
8
  import {BadgeSize, BadgeType, BadgeVariant} from '../badge/badge.js';
9
- import '../../icons/icon-alerts-shelf.js';
9
+ import '../../icons/icon-timer-2.js';
10
10
  import type {AlertCounts} from '../../types.js';
11
11
  import {alertCountsLabel, rankAlertCounts} from '../../alert-severity.js';
12
12
 
@@ -35,8 +35,8 @@ export enum ObcAlertCounterItemType {
35
35
  * `alert-level` draws flat badges with the severity glyph.
36
36
  * - **Every severity:** `counts` takes the whole `AlertType` vocabulary,
37
37
  * including the `level-*` family, ordered by `ALERT_SEVERITY_PRIORITY`.
38
- * - **Shelved count:** `shelvedCount` adds a neutral badge with the shelf icon
39
- * at the end.
38
+ * - **Shelved count:** `shelvedCount` adds a neutral badge with the timer icon
39
+ * at the end, the icon the Figma counter swaps into its shelved badge.
40
40
  * - **Accessible summary:** the row is announced as one image labelled with
41
41
  * the counts, e.g. "2 Alarm, 4 Warning, 6 Caution".
42
42
  *
@@ -68,7 +68,7 @@ export enum ObcAlertCounterItemType {
68
68
  *
69
69
  * @property type - How each count is drawn: `badges` (filled severity badges, default) or `alert-level` (flat badges with the severity glyph).
70
70
  * @property counts - Alert count per severity (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts); counts of zero or less are not shown.
71
- * @property shelvedCount - Number of shelved alerts, shown as a neutral badge with the shelf icon after the severities; hidden at zero.
71
+ * @property shelvedCount - Number of shelved alerts, shown as a neutral badge with the timer icon after the severities; hidden at zero.
72
72
  * @experimental
73
73
  */
74
74
  @customElement('obc-alert-counter-item')
@@ -113,7 +113,7 @@ export class ObcAlertCounterItem extends LitElement {
113
113
  showIcon
114
114
  .number=${this.shelvedCount}
115
115
  >
116
- <obi-alerts-shelf slot="badge-icon"></obi-alerts-shelf>
116
+ <obi-timer-2 slot="badge-icon"></obi-timer-2>
117
117
  </obc-badge>`
118
118
  : nothing
119
119
  }
@@ -1,3 +1,7 @@
1
+ :host {
2
+ line-height: 0; /* in a flex row, the host's text line adds the font's descent under an icon-first badge */
3
+ }
4
+
1
5
  .wrapper {
2
6
  user-select: none;
3
7
  display: flex;