@oicl/openbridge-webcomponents 2.0.0-next.94 → 2.0.0-next.96

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.
Files changed (88) hide show
  1. package/bundle/openbridge-webcomponents.bundle.js +15137 -14794
  2. package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
  3. package/custom-elements.json +110 -70
  4. package/dist/alert-severity.d.ts +1 -1
  5. package/dist/alert-severity.d.ts.map +1 -1
  6. package/dist/alert-severity.js +4 -1
  7. package/dist/alert-severity.js.map +1 -1
  8. package/dist/building-blocks/chart-line/chart-line-base.d.ts +95 -33
  9. package/dist/building-blocks/chart-line/chart-line-base.d.ts.map +1 -1
  10. package/dist/building-blocks/chart-line/chart-line-base.js +88 -23
  11. package/dist/building-blocks/chart-line/chart-line-base.js.map +1 -1
  12. package/dist/charthelpers/index.d.ts +1 -0
  13. package/dist/charthelpers/index.d.ts.map +1 -1
  14. package/dist/charthelpers/index.js +4 -0
  15. package/dist/charthelpers/index.js.map +1 -1
  16. package/dist/charthelpers/x-value.d.ts +72 -0
  17. package/dist/charthelpers/x-value.d.ts.map +1 -0
  18. package/dist/charthelpers/x-value.js +60 -0
  19. package/dist/charthelpers/x-value.js.map +1 -0
  20. package/dist/components/alert-button/alert-button.js +1 -1
  21. package/dist/components/alert-button/alert-button.js.map +1 -1
  22. package/dist/components/alert-icon/alert-icon.d.ts +30 -7
  23. package/dist/components/alert-icon/alert-icon.d.ts.map +1 -1
  24. package/dist/components/alert-icon/alert-icon.js +234 -67
  25. package/dist/components/alert-icon/alert-icon.js.map +1 -1
  26. package/dist/components/alert-icon/icons/icon-critical-acknowledged.d.ts +2 -0
  27. package/dist/components/alert-icon/icons/icon-critical-acknowledged.d.ts.map +1 -0
  28. package/dist/components/alert-icon/icons/icon-critical-acknowledged.js +17 -0
  29. package/dist/components/alert-icon/icons/icon-critical-acknowledged.js.map +1 -0
  30. package/dist/components/alert-icon/icons/icon-critical-rectified.d.ts +3 -0
  31. package/dist/components/alert-icon/icons/icon-critical-rectified.d.ts.map +1 -0
  32. package/dist/components/alert-icon/icons/icon-critical-rectified.js +28 -0
  33. package/dist/components/alert-icon/icons/icon-critical-rectified.js.map +1 -0
  34. package/dist/components/alert-icon/icons/icon-critical-silenced.d.ts +3 -0
  35. package/dist/components/alert-icon/icons/icon-critical-silenced.d.ts.map +1 -0
  36. package/dist/components/alert-icon/icons/{icon-warning-silenced.js → icon-critical-silenced.js} +26 -13
  37. package/dist/components/alert-icon/icons/icon-critical-silenced.js.map +1 -0
  38. package/dist/components/alert-icon/icons/icon-critical-unacknowledged.d.ts +3 -0
  39. package/dist/components/alert-icon/icons/icon-critical-unacknowledged.d.ts.map +1 -0
  40. package/dist/components/alert-icon/icons/icon-critical-unacknowledged.js +28 -0
  41. package/dist/components/alert-icon/icons/icon-critical-unacknowledged.js.map +1 -0
  42. package/dist/components/alert-icon/icons/icon-low-acknowledged.d.ts +2 -0
  43. package/dist/components/alert-icon/icons/icon-low-acknowledged.d.ts.map +1 -0
  44. package/dist/components/alert-icon/icons/icon-low-acknowledged.js +11 -0
  45. package/dist/components/alert-icon/icons/icon-low-acknowledged.js.map +1 -0
  46. package/dist/components/alert-icon/icons/icon-low-rectified.d.ts +3 -0
  47. package/dist/components/alert-icon/icons/icon-low-rectified.d.ts.map +1 -0
  48. package/dist/components/alert-icon/icons/icon-low-rectified.js +16 -0
  49. package/dist/components/alert-icon/icons/icon-low-rectified.js.map +1 -0
  50. package/dist/components/alert-icon/icons/icon-low-silenced.d.ts +3 -0
  51. package/dist/components/alert-icon/icons/icon-low-silenced.d.ts.map +1 -0
  52. package/dist/components/alert-icon/icons/icon-low-silenced.js +18 -0
  53. package/dist/components/alert-icon/icons/icon-low-silenced.js.map +1 -0
  54. package/dist/components/alert-icon/icons/icon-low-unacknowledged.d.ts +3 -0
  55. package/dist/components/alert-icon/icons/icon-low-unacknowledged.d.ts.map +1 -0
  56. package/dist/components/alert-icon/icons/icon-low-unacknowledged.js +16 -0
  57. package/dist/components/alert-icon/icons/icon-low-unacknowledged.js.map +1 -0
  58. package/dist/navigation-instruments/gauge-trend/gauge-trend.d.ts +16 -1
  59. package/dist/navigation-instruments/gauge-trend/gauge-trend.d.ts.map +1 -1
  60. package/dist/navigation-instruments/gauge-trend/gauge-trend.js +12 -0
  61. package/dist/navigation-instruments/gauge-trend/gauge-trend.js.map +1 -1
  62. package/dist/pages/alert-detail-page/alert-detail-page.d.ts.map +1 -1
  63. package/dist/pages/alert-detail-page/alert-detail-page.js +1 -2
  64. package/dist/pages/alert-detail-page/alert-detail-page.js.map +1 -1
  65. package/package.json +1 -1
  66. package/dist/components/alert-icon/icons/icon-alarm-rectified.d.ts +0 -3
  67. package/dist/components/alert-icon/icons/icon-alarm-rectified.d.ts.map +0 -1
  68. package/dist/components/alert-icon/icons/icon-alarm-rectified.js +0 -15
  69. package/dist/components/alert-icon/icons/icon-alarm-rectified.js.map +0 -1
  70. package/dist/components/alert-icon/icons/icon-alarm-silenced.d.ts +0 -3
  71. package/dist/components/alert-icon/icons/icon-alarm-silenced.d.ts.map +0 -1
  72. package/dist/components/alert-icon/icons/icon-alarm-silenced.js +0 -17
  73. package/dist/components/alert-icon/icons/icon-alarm-silenced.js.map +0 -1
  74. package/dist/components/alert-icon/icons/icon-alarm-unack.d.ts +0 -3
  75. package/dist/components/alert-icon/icons/icon-alarm-unack.d.ts.map +0 -1
  76. package/dist/components/alert-icon/icons/icon-alarm-unack.js +0 -15
  77. package/dist/components/alert-icon/icons/icon-alarm-unack.js.map +0 -1
  78. package/dist/components/alert-icon/icons/icon-warning-rectified.d.ts +0 -3
  79. package/dist/components/alert-icon/icons/icon-warning-rectified.d.ts.map +0 -1
  80. package/dist/components/alert-icon/icons/icon-warning-rectified.js +0 -15
  81. package/dist/components/alert-icon/icons/icon-warning-rectified.js.map +0 -1
  82. package/dist/components/alert-icon/icons/icon-warning-silenced.d.ts +0 -3
  83. package/dist/components/alert-icon/icons/icon-warning-silenced.d.ts.map +0 -1
  84. package/dist/components/alert-icon/icons/icon-warning-silenced.js.map +0 -1
  85. package/dist/components/alert-icon/icons/icon-warning-unack.d.ts +0 -3
  86. package/dist/components/alert-icon/icons/icon-warning-unack.d.ts.map +0 -1
  87. package/dist/components/alert-icon/icons/icon-warning-unack.js +0 -15
  88. package/dist/components/alert-icon/icons/icon-warning-unack.js.map +0 -1
@@ -6,4 +6,5 @@ export * from './canvas-layout.js';
6
6
  export * from './rectangular-chart-layout.js';
7
7
  export * from './tooltip.js';
8
8
  export * from './legend.js';
9
+ export * from './x-value.js';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/charthelpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/charthelpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
@@ -6,6 +6,7 @@ import { calculateChartPaddingAndLabels, calculateFixedHeightChartLayout, format
6
6
  import { calculateRectangularChartLayout } from "./rectangular-chart-layout.js";
7
7
  import { getChartTooltipOptions } from "./tooltip.js";
8
8
  import { generateLegendHTML } from "./legend.js";
9
+ import { XValueMode, formatXValue, normalizeXValue } from "./x-value.js";
9
10
  export {
10
11
  CENTER_READOUT_CONFIG,
11
12
  CHART_AREA_BACKGROUND_COLOR_VAR,
@@ -17,6 +18,7 @@ export {
17
18
  OUTER_LABEL_CONFIG,
18
19
  RECTANGULAR_CHART_DIMENSIONS,
19
20
  TOOLTIP_CONFIG,
21
+ XValueMode,
20
22
  applyAlphaToColor,
21
23
  calculateChartPaddingAndLabels,
22
24
  calculateFixedHeightChartLayout,
@@ -25,10 +27,12 @@ export {
25
27
  createArcOuterLabelPlugin,
26
28
  formatNumericValue,
27
29
  formatSingleLabel,
30
+ formatXValue,
28
31
  generateLegendHTML,
29
32
  getChartColorsOrDefault,
30
33
  getChartTooltipOptions,
31
34
  getCssVariableValue,
35
+ normalizeXValue,
32
36
  observeThemeChanges
33
37
  };
34
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * X-value normalization and formatting for line/area charts.
3
+ *
4
+ * Charts accept x-values as epoch milliseconds, ISO-8601 strings, `Date`
5
+ * instances, or Temporal objects (`Instant`, `ZonedDateTime`,
6
+ * `PlainDateTime`, `PlainDate`). All are normalized to a single number
7
+ * (epoch milliseconds in `'time'` mode, the plain value in `'number'` mode)
8
+ * so the Chart.js linear scale positions points proportionally.
9
+ *
10
+ * Temporal support is structural (duck-typed): there is no dependency on the
11
+ * Temporal API or a polyfill, and cross-realm/polyfilled objects work.
12
+ * Plain* types (which carry no time zone) are interpreted in the system
13
+ * time zone.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * normalizeXValue('2026-07-06T10:00:00Z', XValueMode.time); // epoch ms
18
+ * normalizeXValue(new Date(0), XValueMode.time); // 0
19
+ * normalizeXValue({epochMilliseconds: 42}, XValueMode.time); // 42 (Temporal)
20
+ * normalizeXValue('2.5', XValueMode.number); // 2.5
21
+ *
22
+ * formatXValue(ms, XValueMode.time, referenceMs); // '5min' (relative)
23
+ * formatXValue(ms, XValueMode.time); // locale date string
24
+ * formatXValue(2.5, XValueMode.number); // '2.5'
25
+ * ```
26
+ */
27
+ type TemporalEpochLike = {
28
+ epochMilliseconds: number;
29
+ };
30
+ type TemporalPlainLike = {
31
+ year: number;
32
+ month: number;
33
+ day: number;
34
+ hour?: number;
35
+ minute?: number;
36
+ second?: number;
37
+ millisecond?: number;
38
+ };
39
+ /** Structural type covering the supported Temporal object shapes. */
40
+ export type TemporalLike = TemporalEpochLike | TemporalPlainLike;
41
+ /** Every value accepted as a chart x-coordinate. */
42
+ export type ChartXValue = number | string | Date | TemporalLike;
43
+ /** X-axis interpretation used for normalization and formatting. */
44
+ export declare enum XValueMode {
45
+ time = "time",
46
+ number = "number"
47
+ }
48
+ /**
49
+ * Normalize an x-value to a finite number, or NaN when unusable.
50
+ *
51
+ * Rules, in order:
52
+ * 1. `number` → as-is (epoch ms in time mode, plain value in number mode)
53
+ * 2. `Date` → `getTime()`
54
+ * 3. `{epochMilliseconds}` (Temporal Instant / ZonedDateTime) → epoch ms
55
+ * 4. `{year, month, day, …}` (Temporal PlainDateTime / PlainDate) →
56
+ * epoch ms in the system time zone
57
+ * 5. `string` → time mode: `Date.parse()` first, `Number()` fallback;
58
+ * number mode: `Number()` only
59
+ */
60
+ export declare function normalizeXValue(v: ChartXValue, mode: XValueMode): number;
61
+ /**
62
+ * Format a normalized x-value for axis tick labels and tooltips.
63
+ *
64
+ * Mirrors the historical chart-line tick formatting exactly: with a finite
65
+ * `relativeToMs` (time mode) renders `<n>min` relative to it; without one
66
+ * renders `toLocaleDateString()`. Number mode renders the plain value.
67
+ * Callers express the `TimeDisplay` choice by passing or omitting
68
+ * `relativeToMs`.
69
+ */
70
+ export declare function formatXValue(value: number, mode: XValueMode, relativeToMs?: number): string;
71
+ export {};
72
+ //# sourceMappingURL=x-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-value.d.ts","sourceRoot":"","sources":["../../src/charthelpers/x-value.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,KAAK,iBAAiB,GAAG;IACvB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,qEAAqE;AACrE,MAAM,MAAM,YAAY,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;AAEjE,oDAAoD;AACpD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,YAAY,CAAC;AAEhE,mEAAmE;AACnE,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAeD;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,GAAG,MAAM,CAgCxE;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,UAAU,EAChB,YAAY,CAAC,EAAE,MAAM,GACpB,MAAM,CAQR"}
@@ -0,0 +1,60 @@
1
+ var XValueMode = /* @__PURE__ */ ((XValueMode2) => {
2
+ XValueMode2["time"] = "time";
3
+ XValueMode2["number"] = "number";
4
+ return XValueMode2;
5
+ })(XValueMode || {});
6
+ function isTemporalEpochLike(v) {
7
+ return typeof v.epochMilliseconds === "number";
8
+ }
9
+ function isTemporalPlainLike(v) {
10
+ const t = v;
11
+ return typeof t.year === "number" && typeof t.month === "number" && typeof t.day === "number";
12
+ }
13
+ function normalizeXValue(v, mode) {
14
+ if (typeof v === "number") {
15
+ return Number.isFinite(v) ? v : NaN;
16
+ }
17
+ if (v instanceof Date) {
18
+ return v.getTime();
19
+ }
20
+ if (typeof v === "object" && v !== null) {
21
+ if (isTemporalEpochLike(v)) return v.epochMilliseconds;
22
+ if (isTemporalPlainLike(v)) {
23
+ return new Date(
24
+ v.year,
25
+ v.month - 1,
26
+ v.day,
27
+ v.hour ?? 0,
28
+ v.minute ?? 0,
29
+ v.second ?? 0,
30
+ v.millisecond ?? 0
31
+ ).getTime();
32
+ }
33
+ return NaN;
34
+ }
35
+ if (typeof v === "string") {
36
+ if (v.trim() === "") return NaN;
37
+ if (mode === "time") {
38
+ const parsed = Date.parse(v);
39
+ if (Number.isFinite(parsed)) return parsed;
40
+ }
41
+ const numeric = Number(v);
42
+ return Number.isFinite(numeric) ? numeric : NaN;
43
+ }
44
+ return NaN;
45
+ }
46
+ function formatXValue(value, mode, relativeToMs) {
47
+ if (!Number.isFinite(value)) return "";
48
+ if (mode === "number") return String(value);
49
+ if (relativeToMs !== void 0 && Number.isFinite(relativeToMs)) {
50
+ const minutes = Math.round((value - relativeToMs) / 6e4);
51
+ return `${minutes}min`;
52
+ }
53
+ return new Date(value).toLocaleDateString();
54
+ }
55
+ export {
56
+ XValueMode,
57
+ formatXValue,
58
+ normalizeXValue
59
+ };
60
+ //# sourceMappingURL=x-value.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-value.js","sources":["../../src/charthelpers/x-value.ts"],"sourcesContent":["/**\n * X-value normalization and formatting for line/area charts.\n *\n * Charts accept x-values as epoch milliseconds, ISO-8601 strings, `Date`\n * instances, or Temporal objects (`Instant`, `ZonedDateTime`,\n * `PlainDateTime`, `PlainDate`). All are normalized to a single number\n * (epoch milliseconds in `'time'` mode, the plain value in `'number'` mode)\n * so the Chart.js linear scale positions points proportionally.\n *\n * Temporal support is structural (duck-typed): there is no dependency on the\n * Temporal API or a polyfill, and cross-realm/polyfilled objects work.\n * Plain* types (which carry no time zone) are interpreted in the system\n * time zone.\n *\n * @example\n * ```ts\n * normalizeXValue('2026-07-06T10:00:00Z', XValueMode.time); // epoch ms\n * normalizeXValue(new Date(0), XValueMode.time); // 0\n * normalizeXValue({epochMilliseconds: 42}, XValueMode.time); // 42 (Temporal)\n * normalizeXValue('2.5', XValueMode.number); // 2.5\n *\n * formatXValue(ms, XValueMode.time, referenceMs); // '5min' (relative)\n * formatXValue(ms, XValueMode.time); // locale date string\n * formatXValue(2.5, XValueMode.number); // '2.5'\n * ```\n */\n\ntype TemporalEpochLike = {\n epochMilliseconds: number;\n};\n\ntype TemporalPlainLike = {\n year: number;\n month: number;\n day: number;\n hour?: number;\n minute?: number;\n second?: number;\n millisecond?: number;\n};\n\n/** Structural type covering the supported Temporal object shapes. */\nexport type TemporalLike = TemporalEpochLike | TemporalPlainLike;\n\n/** Every value accepted as a chart x-coordinate. */\nexport type ChartXValue = number | string | Date | TemporalLike;\n\n/** X-axis interpretation used for normalization and formatting. */\nexport enum XValueMode {\n time = 'time',\n number = 'number',\n}\n\nfunction isTemporalEpochLike(v: object): v is TemporalEpochLike {\n return typeof (v as TemporalEpochLike).epochMilliseconds === 'number';\n}\n\nfunction isTemporalPlainLike(v: object): v is TemporalPlainLike {\n const t = v as TemporalPlainLike;\n return (\n typeof t.year === 'number' &&\n typeof t.month === 'number' &&\n typeof t.day === 'number'\n );\n}\n\n/**\n * Normalize an x-value to a finite number, or NaN when unusable.\n *\n * Rules, in order:\n * 1. `number` → as-is (epoch ms in time mode, plain value in number mode)\n * 2. `Date` → `getTime()`\n * 3. `{epochMilliseconds}` (Temporal Instant / ZonedDateTime) → epoch ms\n * 4. `{year, month, day, …}` (Temporal PlainDateTime / PlainDate) →\n * epoch ms in the system time zone\n * 5. `string` → time mode: `Date.parse()` first, `Number()` fallback;\n * number mode: `Number()` only\n */\nexport function normalizeXValue(v: ChartXValue, mode: XValueMode): number {\n if (typeof v === 'number') {\n return Number.isFinite(v) ? v : NaN;\n }\n if (v instanceof Date) {\n return v.getTime();\n }\n if (typeof v === 'object' && v !== null) {\n if (isTemporalEpochLike(v)) return v.epochMilliseconds;\n if (isTemporalPlainLike(v)) {\n return new Date(\n v.year,\n v.month - 1,\n v.day,\n v.hour ?? 0,\n v.minute ?? 0,\n v.second ?? 0,\n v.millisecond ?? 0\n ).getTime();\n }\n return NaN;\n }\n if (typeof v === 'string') {\n if (v.trim() === '') return NaN;\n if (mode === XValueMode.time) {\n const parsed = Date.parse(v);\n if (Number.isFinite(parsed)) return parsed;\n }\n const numeric = Number(v);\n return Number.isFinite(numeric) ? numeric : NaN;\n }\n return NaN;\n}\n\n/**\n * Format a normalized x-value for axis tick labels and tooltips.\n *\n * Mirrors the historical chart-line tick formatting exactly: with a finite\n * `relativeToMs` (time mode) renders `<n>min` relative to it; without one\n * renders `toLocaleDateString()`. Number mode renders the plain value.\n * Callers express the `TimeDisplay` choice by passing or omitting\n * `relativeToMs`.\n */\nexport function formatXValue(\n value: number,\n mode: XValueMode,\n relativeToMs?: number\n): string {\n if (!Number.isFinite(value)) return '';\n if (mode === XValueMode.number) return String(value);\n if (relativeToMs !== undefined && Number.isFinite(relativeToMs)) {\n const minutes = Math.round((value - relativeToMs) / 60000);\n return `${minutes}min`;\n }\n return new Date(value).toLocaleDateString();\n}\n"],"names":["XValueMode"],"mappings":"AAgDO,IAAK,+BAAAA,gBAAL;AACLA,cAAA,MAAA,IAAO;AACPA,cAAA,QAAA,IAAS;AAFC,SAAAA;AAAA,GAAA,cAAA,CAAA,CAAA;AAKZ,SAAS,oBAAoB,GAAmC;AAC9D,SAAO,OAAQ,EAAwB,sBAAsB;AAC/D;AAEA,SAAS,oBAAoB,GAAmC;AAC9D,QAAM,IAAI;AACV,SACE,OAAO,EAAE,SAAS,YAClB,OAAO,EAAE,UAAU,YACnB,OAAO,EAAE,QAAQ;AAErB;AAcO,SAAS,gBAAgB,GAAgB,MAA0B;AACxE,MAAI,OAAO,MAAM,UAAU;AACzB,WAAO,OAAO,SAAS,CAAC,IAAI,IAAI;AAAA,EAClC;AACA,MAAI,aAAa,MAAM;AACrB,WAAO,EAAE,QAAA;AAAA,EACX;AACA,MAAI,OAAO,MAAM,YAAY,MAAM,MAAM;AACvC,QAAI,oBAAoB,CAAC,EAAG,QAAO,EAAE;AACrC,QAAI,oBAAoB,CAAC,GAAG;AAC1B,aAAO,IAAI;AAAA,QACT,EAAE;AAAA,QACF,EAAE,QAAQ;AAAA,QACV,EAAE;AAAA,QACF,EAAE,QAAQ;AAAA,QACV,EAAE,UAAU;AAAA,QACZ,EAAE,UAAU;AAAA,QACZ,EAAE,eAAe;AAAA,MAAA,EACjB,QAAA;AAAA,IACJ;AACA,WAAO;AAAA,EACT;AACA,MAAI,OAAO,MAAM,UAAU;AACzB,QAAI,EAAE,WAAW,GAAI,QAAO;AAC5B,QAAI,SAAS,QAAiB;AAC5B,YAAM,SAAS,KAAK,MAAM,CAAC;AAC3B,UAAI,OAAO,SAAS,MAAM,EAAG,QAAO;AAAA,IACtC;AACA,UAAM,UAAU,OAAO,CAAC;AACxB,WAAO,OAAO,SAAS,OAAO,IAAI,UAAU;AAAA,EAC9C;AACA,SAAO;AACT;AAWO,SAAS,aACd,OACA,MACA,cACQ;AACR,MAAI,CAAC,OAAO,SAAS,KAAK,EAAG,QAAO;AACpC,MAAI,SAAS,SAAmB,QAAO,OAAO,KAAK;AACnD,MAAI,iBAAiB,UAAa,OAAO,SAAS,YAAY,GAAG;AAC/D,UAAM,UAAU,KAAK,OAAO,QAAQ,gBAAgB,GAAK;AACzD,WAAO,GAAG,OAAO;AAAA,EACnB;AACA,SAAO,IAAI,KAAK,KAAK,EAAE,mBAAA;AACzB;"}
@@ -118,7 +118,7 @@ let ObcAlertButton = class extends LitElement {
118
118
  render() {
119
119
  const hasAlerts = this.nAlerts > 0;
120
120
  const showCounter = this.counter && hasAlerts && this.activeType !== "flat";
121
- const showBlinking = this.blinking && hasAlerts && this.alertType !== void 0 && supportsBlinking(this.alertType);
121
+ const showBlinking = this.blinking && hasAlerts && this.alertType !== void 0 && supportsBlinking(this.alertType, false);
122
122
  return html`
123
123
  <div
124
124
  class=${classMap({
@@ -1 +1 @@
1
- {"version":3,"file":"alert-button.js","sources":["../../../src/components/alert-button/alert-button.ts"],"sourcesContent":["import {LitElement, html, nothing, unsafeCSS} from 'lit';\nimport {property, state} from 'lit/decorators.js';\nimport compentStyle from './alert-button.css?inline';\nimport '../../icons/icon-alerts.js';\nimport '../../icons/icon-alerts-active.js';\nimport '../../icons/icon-notification.js';\nimport '../../icons/icon-notification-advice.js';\nimport '../../icons/icon-notification-advice-active.js';\nimport '../../icons/icon-silence-iec.js';\nimport '../../icons/icon-alerts-alarm-twotone.js';\nimport '../../icons/icon-alerts-warning-twotone.js';\nimport '../../icons/icon-alerts-caution-twotone.js';\nimport '../../manual-icon/icon-alerts-critical-twotone.js';\nimport '../../manual-icon/icon-alerts-diagnostic-twotone.js';\nimport {AlertType} from '../../types.js';\nimport {\n getAlertTwotoneComponent,\n AlertTwotoneComponent,\n supportsBlinking,\n} from '../../alert-severity.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {customElement} from '../../decorator.js';\n\n/**\n * `ObcAlertButtonType` – Enum for alert button visual and behavioral variants.\n *\n * - `flat`: Minimal, icon-only button for compact spaces.\n * - `normal`: Standard button with icon and optional counter.\n * - `enhanced`: Emphasized button with additional styling for high-priority alerts.\n */\nexport enum ObcAlertButtonType {\n Flat = 'flat',\n Normal = 'normal',\n Enhanced = 'enhanced',\n}\n\n/**\n * `<obc-alert-button>` – A compact, icon-based button for displaying alert or notification status and count.\n *\n * This component provides a visual indicator for active alerts or notifications, supporting different alert types (such as alarm, warning, or caution) and an optional counter badge. It can also include a secondary \"silence\" action button for muting alerts, adapting its layout responsively for different screen widths.\n *\n * Appears in toolbars or notification areas to give users a quick overview of alert status and provide direct access to alert-related actions.\n *\n * ## Features\n *\n * - **Variants:**\n * - **Flat:** Minimal, icon-only button for space-constrained layouts.\n * - **Normal:** Standard button with icon and optional alert counter.\n * - **Enhanced:** Visually prominent button for high-priority alerts, with accent styling.\n * - **Alert Types:** Supports `alarm`, `warning`, `caution`, or no alert (idle). Icon and color adapt to the alert type.\n * - **Alert Counter:** Optional badge displays the number of active alerts (except in flat mode).\n * - **Silence Button:** Optional secondary button to mute or silence alerts, shown when enabled and at sufficient width.\n * - **Blinking Animation:** Can animate (blink) to draw attention to active alerts (except for caution type).\n * - **Responsive Layout:** Automatically switches to flat mode below a configurable width, and hides the silence button below another configurable width.\n * - **Large Size Option:** Increases button height and padding for touch-friendly or prominent use.\n *\n * ## Usage Guidelines\n *\n * Use `<obc-alert-button>` to provide a persistent, easily accessible indicator of alert or notification status. Ideal for toolbars, headers, or notification panels where users need to be aware of active alerts and may need to silence them quickly.\n *\n * - Use the counter to show the number of active alerts when relevant.\n * - Use the silence button to provide a quick mute action, but only when space allows.\n * - Choose the variant (`flat`, `normal`, `enhanced`) based on available space and the importance of the alert.\n * - The blinking feature should be reserved for urgent or high-priority alerts to avoid unnecessary distraction.\n *\n * **TODO(designer):** Confirm if there are recommended default behaviors for auto-blinking, and if there are any design constraints for when to use each variant.\n *\n * ## Properties\n *\n * - `nAlerts` (number): Number of active alerts to display in the counter badge.\n * - `alertType` (`AlertType`): Type of alert (`alarm`, `warning`, `caution`, or undefined for idle).\n * - `type` (`ObcAlertButtonType`): Visual variant of the button (`flat`, `normal`, `enhanced`). Default is `normal`.\n * - `counter` (boolean): Whether to show the alert counter badge (not available in flat mode).\n * - `showSilenceButton` (boolean): Whether to display the silence button (hidden in flat mode or below min breakpoint).\n * - `silenceButtonDisabled` (boolean): Disables the silence button when true.\n * - `flatMaxBreakpointPx` (number): Maximum width (in px) for normal/enhanced mode; below this, switches to flat mode.\n * - `silenceButtonMinBreakpointPx` (number): Minimum width (in px) to show the silence button; below this, it is hidden.\n * - `blinking` (boolean): Enables blinking animation for active alerts (not for caution type).\n * - `large` (boolean): Increases button size for prominent or touch-friendly use.\n *\n * ## Events\n *\n * - `click-alert` – Fired when the main alert button is clicked.\n * - `click-silence` – Fired when the silence button is clicked.\n *\n * ## Best Practices & Constraints\n *\n * - Only show the counter when there are active alerts and the button is not in flat mode.\n * - The silence button is only visible if enabled, the width is above the minimum breakpoint, and the button is not flat.\n * - Blinking should be used sparingly to avoid overwhelming the user.\n * - Use the large variant for touch interfaces or when the button needs to stand out.\n *\n * ## Example\n *\n * ```html\n * <obc-alert-button\n * nAlerts=\"3\"\n * alertType=\"alarm\"\n * type=\"enhanced\"\n * counter\n * showSilenceButton\n * blinking\n * large\n * flatMaxBreakpointPx=\"600\"\n * silenceButtonMinBreakpointPx=\"600\"\n * ></obc-alert-button>\n * ```\n *\n * In this example, the button shows an alarm icon, a counter badge with \"3\", is styled as enhanced, blinks to indicate urgency, and includes a silence button if the width allows.\n *\n * @slot - No content slots. All content is provided via properties.\n * @fires click-alert {CustomEvent<void>} Fired when the main alert button is clicked.\n * @fires click-silence {CustomEvent<void>} Fired when the silence button is clicked.\n * @stable\n */\n@customElement('obc-alert-button')\nexport class ObcAlertButton extends LitElement {\n /**\n * Number of active alerts to display in the counter badge.\n *\n * If set to 0, the button appears in the idle state.\n */\n @property({type: Number}) nAlerts = 0;\n\n /**\n * Type of alert to display.\n *\n * Determines the icon and color scheme. Can be `alarm`, `warning`, `caution`, or undefined for idle state.\n */\n @property({type: String}) alertType?: AlertType;\n\n /**\n * Visual variant of the button.\n *\n * - `flat`: Minimal, icon-only button for compact layouts.\n * - `normal`: Standard button with icon and optional counter (default).\n * - `enhanced`: Emphasized button for high-priority alerts.\n */\n @property({type: String}) type = ObcAlertButtonType.Normal;\n\n /**\n * Increases button size for touch-friendly or prominent use.\n *\n * Adds extra height and padding.\n */\n @property({type: Boolean}) large = false;\n\n /**\n * Whether to display the silence button.\n *\n * The silence button is only shown if this is true, the width is above `silenceButtonMinBreakpointPx`, and the button is not in flat mode.\n */\n @property({type: Boolean}) showSilenceButton = false;\n\n /**\n * Disables the silence button when true.\n *\n * @availableWhen showSilenceButton==true\n */\n @property({type: Boolean}) silenceButtonDisabled = false;\n\n /**\n * Whether to show the alert counter badge.\n *\n * Only shown when there are active alerts and the button is not in flat mode.\n */\n @property({type: Boolean}) counter = false;\n\n /**\n * Enables blinking animation for active alerts.\n *\n * Blinking is only shown for alarm and warning types, not for caution.\n */\n @property({type: Boolean}) blinking = false;\n\n /**\n * Maximum width (in px) for normal/enhanced mode.\n *\n * If the available width is less than this value, the button switches to flat mode.\n * Only applies when `type` is set to `normal` or `enhanced`.\n *\n * @availableWhen type!=flat\n */\n @property({type: Number}) flatMaxBreakpointPx = 0;\n\n /**\n * Minimum width (in px) to show the silence button.\n *\n * If the available width is less than this value, the silence button is hidden.\n * Only applies when `showSilenceButton` is true.\n *\n * @availableWhen showSilenceButton==true\n */\n @property({type: Number}) silenceButtonMinBreakpointPx = 0;\n\n @state() private width = window.innerWidth;\n\n private resizeListener = () => {\n this.width = window.innerWidth;\n };\n\n override connectedCallback() {\n super.connectedCallback();\n window.addEventListener('resize', this.resizeListener);\n }\n\n override disconnectedCallback() {\n window.removeEventListener('resize', this.resizeListener);\n super.disconnectedCallback();\n }\n\n private renderAlertTwotoneIcon() {\n const twotone = this.alertType\n ? getAlertTwotoneComponent(this.alertType)\n : AlertTwotoneComponent.Caution;\n switch (twotone) {\n case AlertTwotoneComponent.Critical:\n return html`<obi-alerts-critical-twotone\n useCssColor\n class=\"icon\"\n ></obi-alerts-critical-twotone>`;\n case AlertTwotoneComponent.Diagnostic:\n return html`<obi-alerts-diagnostic-twotone\n useCssColor\n class=\"icon\"\n ></obi-alerts-diagnostic-twotone>`;\n case AlertTwotoneComponent.Warning:\n return html`<obi-alerts-warning-twotone\n useCssColor\n class=\"icon\"\n ></obi-alerts-warning-twotone>`;\n case AlertTwotoneComponent.Caution:\n return html`<obi-alerts-caution-twotone\n useCssColor\n class=\"icon\"\n ></obi-alerts-caution-twotone>`;\n default:\n return html`<obi-alerts-alarm-twotone\n useCssColor\n class=\"icon\"\n ></obi-alerts-alarm-twotone>`;\n }\n }\n\n private alertIcon() {\n const isIdle = this.nAlerts === 0;\n if (isIdle) {\n return html`<obi-alerts class=\"icon\"></obi-alerts>`;\n }\n if (this.type === ObcAlertButtonType.Enhanced) {\n return html`<obi-alerts-active class=\"icon\"></obi-alerts-active>`;\n }\n return this.renderAlertTwotoneIcon();\n }\n\n private alertIconNegative() {\n const useIdle =\n this.nAlerts === 0 || this.type !== ObcAlertButtonType.Enhanced;\n if (useIdle) {\n return html`<obi-alerts class=\"icon\"></obi-alerts>`;\n }\n return this.renderAlertTwotoneIcon();\n }\n\n private get activeType(): ObcAlertButtonType {\n if (this.type === ObcAlertButtonType.Flat) {\n return ObcAlertButtonType.Flat;\n }\n if (this.width < this.flatMaxBreakpointPx) {\n return ObcAlertButtonType.Flat;\n }\n return this.type;\n }\n\n private get showSilenceButtonDynamic(): boolean {\n return (\n this.showSilenceButton &&\n this.width >= this.silenceButtonMinBreakpointPx &&\n this.activeType !== ObcAlertButtonType.Flat\n );\n }\n\n override render() {\n const hasAlerts = this.nAlerts > 0;\n const showCounter =\n this.counter && hasAlerts && this.activeType !== ObcAlertButtonType.Flat;\n const showBlinking =\n this.blinking &&\n hasAlerts &&\n this.alertType !== undefined &&\n supportsBlinking(this.alertType);\n return html`\n <div\n class=${classMap({\n wrapper: true,\n [`alert-type-${this.alertType ?? 'none'}`]: true,\n counter: showCounter,\n 'has-silence': this.showSilenceButtonDynamic,\n [`type-${this.activeType}`]: true,\n blinking: showBlinking,\n large: this.large,\n })}\n >\n <button\n class=\"alert-button\"\n @click=${() => this.dispatchEvent(new CustomEvent('click-alert'))}\n >\n ${showBlinking\n ? html` <div class=\"blink\">\n ${this.alertIconNegative()}\n ${showCounter\n ? html`<div class=\"badge\">${this.nAlerts}</div>`\n : null}\n </div>`\n : nothing}\n <div class=\"visible-wrapper\">\n ${this.alertIcon()}\n ${showCounter\n ? html`<div class=\"badge\">${this.nAlerts}</div>`\n : nothing}\n </div>\n </button>\n\n ${this.showSilenceButtonDynamic\n ? html`\n <button\n class=\"silence-button\"\n @click=${() =>\n this.dispatchEvent(new CustomEvent('click-silence'))}\n ?disabled=${this.silenceButtonDisabled}\n >\n <div class=\"visible-wrapper\">\n <obi-silence-iec class=\"icon\"></obi-silence-iec>\n </div>\n </button>\n `\n : null}\n </div>\n `;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-alert-button': ObcAlertButton;\n }\n}\n"],"names":["ObcAlertButtonType"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BO,IAAK,uCAAAA,wBAAL;AACLA,sBAAA,MAAA,IAAO;AACPA,sBAAA,QAAA,IAAS;AACTA,sBAAA,UAAA,IAAW;AAHD,SAAAA;AAAA,GAAA,sBAAA,CAAA,CAAA;AAsFL,IAAM,iBAAN,cAA6B,WAAW;AAAA,EAAxC,cAAA;AAAA,UAAA,GAAA,SAAA;AAMqB,SAAA,UAAU;AAgBV,SAAA,OAAO;AAON,SAAA,QAAQ;AAOR,SAAA,oBAAoB;AAOpB,SAAA,wBAAwB;AAOxB,SAAA,UAAU;AAOV,SAAA,WAAW;AAUZ,SAAA,sBAAsB;AAUtB,SAAA,+BAA+B;AAEhD,SAAQ,QAAQ,OAAO;AAEhC,SAAQ,iBAAiB,MAAM;AAC7B,WAAK,QAAQ,OAAO;AAAA,IACtB;AAAA,EAAA;AAAA,EAES,oBAAoB;AAC3B,UAAM,kBAAA;AACN,WAAO,iBAAiB,UAAU,KAAK,cAAc;AAAA,EACvD;AAAA,EAES,uBAAuB;AAC9B,WAAO,oBAAoB,UAAU,KAAK,cAAc;AACxD,UAAM,qBAAA;AAAA,EACR;AAAA,EAEQ,yBAAyB;AAC/B,UAAM,UAAU,KAAK,YACjB,yBAAyB,KAAK,SAAS,IACvC,sBAAsB;AAC1B,YAAQ,SAAA;AAAA,MACN,KAAK,sBAAsB;AACzB,eAAO;AAAA;AAAA;AAAA;AAAA,M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A,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GAzDd,eAyDgB,WAAA,YAAA,CAAA;AAUD,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAnEb,eAmEe,WAAA,uBAAA,CAAA;AAUA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GA7Eb,eA6Ee,WAAA,gCAAA,CAAA;AAET,gBAAA;AAAA,EAAhB,MAAA;AAAM,GA/EI,eA+EM,WAAA,SAAA,CAAA;AA/EN,iBAAN,gBAAA;AAAA,EADN,cAAc,kBAAkB;AAAA,GACpB,cAAA;"}
1
+ {"version":3,"file":"alert-button.js","sources":["../../../src/components/alert-button/alert-button.ts"],"sourcesContent":["import {LitElement, html, nothing, unsafeCSS} from 'lit';\nimport {property, state} from 'lit/decorators.js';\nimport compentStyle from './alert-button.css?inline';\nimport '../../icons/icon-alerts.js';\nimport '../../icons/icon-alerts-active.js';\nimport '../../icons/icon-notification.js';\nimport '../../icons/icon-notification-advice.js';\nimport '../../icons/icon-notification-advice-active.js';\nimport '../../icons/icon-silence-iec.js';\nimport '../../icons/icon-alerts-alarm-twotone.js';\nimport '../../icons/icon-alerts-warning-twotone.js';\nimport '../../icons/icon-alerts-caution-twotone.js';\nimport '../../manual-icon/icon-alerts-critical-twotone.js';\nimport '../../manual-icon/icon-alerts-diagnostic-twotone.js';\nimport {AlertType} from '../../types.js';\nimport {\n getAlertTwotoneComponent,\n AlertTwotoneComponent,\n supportsBlinking,\n} from '../../alert-severity.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {customElement} from '../../decorator.js';\n\n/**\n * `ObcAlertButtonType` – Enum for alert button visual and behavioral variants.\n *\n * - `flat`: Minimal, icon-only button for compact spaces.\n * - `normal`: Standard button with icon and optional counter.\n * - `enhanced`: Emphasized button with additional styling for high-priority alerts.\n */\nexport enum ObcAlertButtonType {\n Flat = 'flat',\n Normal = 'normal',\n Enhanced = 'enhanced',\n}\n\n/**\n * `<obc-alert-button>` – A compact, icon-based button for displaying alert or notification status and count.\n *\n * This component provides a visual indicator for active alerts or notifications, supporting different alert types (such as alarm, warning, or caution) and an optional counter badge. It can also include a secondary \"silence\" action button for muting alerts, adapting its layout responsively for different screen widths.\n *\n * Appears in toolbars or notification areas to give users a quick overview of alert status and provide direct access to alert-related actions.\n *\n * ## Features\n *\n * - **Variants:**\n * - **Flat:** Minimal, icon-only button for space-constrained layouts.\n * - **Normal:** Standard button with icon and optional alert counter.\n * - **Enhanced:** Visually prominent button for high-priority alerts, with accent styling.\n * - **Alert Types:** Supports `alarm`, `warning`, `caution`, or no alert (idle). Icon and color adapt to the alert type.\n * - **Alert Counter:** Optional badge displays the number of active alerts (except in flat mode).\n * - **Silence Button:** Optional secondary button to mute or silence alerts, shown when enabled and at sufficient width.\n * - **Blinking Animation:** Can animate (blink) to draw attention to active alerts (except for caution type).\n * - **Responsive Layout:** Automatically switches to flat mode below a configurable width, and hides the silence button below another configurable width.\n * - **Large Size Option:** Increases button height and padding for touch-friendly or prominent use.\n *\n * ## Usage Guidelines\n *\n * Use `<obc-alert-button>` to provide a persistent, easily accessible indicator of alert or notification status. Ideal for toolbars, headers, or notification panels where users need to be aware of active alerts and may need to silence them quickly.\n *\n * - Use the counter to show the number of active alerts when relevant.\n * - Use the silence button to provide a quick mute action, but only when space allows.\n * - Choose the variant (`flat`, `normal`, `enhanced`) based on available space and the importance of the alert.\n * - The blinking feature should be reserved for urgent or high-priority alerts to avoid unnecessary distraction.\n *\n * **TODO(designer):** Confirm if there are recommended default behaviors for auto-blinking, and if there are any design constraints for when to use each variant.\n *\n * ## Properties\n *\n * - `nAlerts` (number): Number of active alerts to display in the counter badge.\n * - `alertType` (`AlertType`): Type of alert (`alarm`, `warning`, `caution`, or undefined for idle).\n * - `type` (`ObcAlertButtonType`): Visual variant of the button (`flat`, `normal`, `enhanced`). Default is `normal`.\n * - `counter` (boolean): Whether to show the alert counter badge (not available in flat mode).\n * - `showSilenceButton` (boolean): Whether to display the silence button (hidden in flat mode or below min breakpoint).\n * - `silenceButtonDisabled` (boolean): Disables the silence button when true.\n * - `flatMaxBreakpointPx` (number): Maximum width (in px) for normal/enhanced mode; below this, switches to flat mode.\n * - `silenceButtonMinBreakpointPx` (number): Minimum width (in px) to show the silence button; below this, it is hidden.\n * - `blinking` (boolean): Enables blinking animation for active alerts (not for caution type).\n * - `large` (boolean): Increases button size for prominent or touch-friendly use.\n *\n * ## Events\n *\n * - `click-alert` – Fired when the main alert button is clicked.\n * - `click-silence` – Fired when the silence button is clicked.\n *\n * ## Best Practices & Constraints\n *\n * - Only show the counter when there are active alerts and the button is not in flat mode.\n * - The silence button is only visible if enabled, the width is above the minimum breakpoint, and the button is not flat.\n * - Blinking should be used sparingly to avoid overwhelming the user.\n * - Use the large variant for touch interfaces or when the button needs to stand out.\n *\n * ## Example\n *\n * ```html\n * <obc-alert-button\n * nAlerts=\"3\"\n * alertType=\"alarm\"\n * type=\"enhanced\"\n * counter\n * showSilenceButton\n * blinking\n * large\n * flatMaxBreakpointPx=\"600\"\n * silenceButtonMinBreakpointPx=\"600\"\n * ></obc-alert-button>\n * ```\n *\n * In this example, the button shows an alarm icon, a counter badge with \"3\", is styled as enhanced, blinks to indicate urgency, and includes a silence button if the width allows.\n *\n * @slot - No content slots. All content is provided via properties.\n * @fires click-alert {CustomEvent<void>} Fired when the main alert button is clicked.\n * @fires click-silence {CustomEvent<void>} Fired when the silence button is clicked.\n * @stable\n */\n@customElement('obc-alert-button')\nexport class ObcAlertButton extends LitElement {\n /**\n * Number of active alerts to display in the counter badge.\n *\n * If set to 0, the button appears in the idle state.\n */\n @property({type: Number}) nAlerts = 0;\n\n /**\n * Type of alert to display.\n *\n * Determines the icon and color scheme. Can be `alarm`, `warning`, `caution`, or undefined for idle state.\n */\n @property({type: String}) alertType?: AlertType;\n\n /**\n * Visual variant of the button.\n *\n * - `flat`: Minimal, icon-only button for compact layouts.\n * - `normal`: Standard button with icon and optional counter (default).\n * - `enhanced`: Emphasized button for high-priority alerts.\n */\n @property({type: String}) type = ObcAlertButtonType.Normal;\n\n /**\n * Increases button size for touch-friendly or prominent use.\n *\n * Adds extra height and padding.\n */\n @property({type: Boolean}) large = false;\n\n /**\n * Whether to display the silence button.\n *\n * The silence button is only shown if this is true, the width is above `silenceButtonMinBreakpointPx`, and the button is not in flat mode.\n */\n @property({type: Boolean}) showSilenceButton = false;\n\n /**\n * Disables the silence button when true.\n *\n * @availableWhen showSilenceButton==true\n */\n @property({type: Boolean}) silenceButtonDisabled = false;\n\n /**\n * Whether to show the alert counter badge.\n *\n * Only shown when there are active alerts and the button is not in flat mode.\n */\n @property({type: Boolean}) counter = false;\n\n /**\n * Enables blinking animation for active alerts.\n *\n * Blinking is only shown for alarm and warning types, not for caution.\n */\n @property({type: Boolean}) blinking = false;\n\n /**\n * Maximum width (in px) for normal/enhanced mode.\n *\n * If the available width is less than this value, the button switches to flat mode.\n * Only applies when `type` is set to `normal` or `enhanced`.\n *\n * @availableWhen type!=flat\n */\n @property({type: Number}) flatMaxBreakpointPx = 0;\n\n /**\n * Minimum width (in px) to show the silence button.\n *\n * If the available width is less than this value, the silence button is hidden.\n * Only applies when `showSilenceButton` is true.\n *\n * @availableWhen showSilenceButton==true\n */\n @property({type: Number}) silenceButtonMinBreakpointPx = 0;\n\n @state() private width = window.innerWidth;\n\n private resizeListener = () => {\n this.width = window.innerWidth;\n };\n\n override connectedCallback() {\n super.connectedCallback();\n window.addEventListener('resize', this.resizeListener);\n }\n\n override disconnectedCallback() {\n window.removeEventListener('resize', this.resizeListener);\n super.disconnectedCallback();\n }\n\n private renderAlertTwotoneIcon() {\n const twotone = this.alertType\n ? getAlertTwotoneComponent(this.alertType)\n : AlertTwotoneComponent.Caution;\n switch (twotone) {\n case AlertTwotoneComponent.Critical:\n return html`<obi-alerts-critical-twotone\n useCssColor\n class=\"icon\"\n ></obi-alerts-critical-twotone>`;\n case AlertTwotoneComponent.Diagnostic:\n return html`<obi-alerts-diagnostic-twotone\n useCssColor\n class=\"icon\"\n ></obi-alerts-diagnostic-twotone>`;\n case AlertTwotoneComponent.Warning:\n return html`<obi-alerts-warning-twotone\n useCssColor\n class=\"icon\"\n ></obi-alerts-warning-twotone>`;\n case AlertTwotoneComponent.Caution:\n return html`<obi-alerts-caution-twotone\n useCssColor\n class=\"icon\"\n ></obi-alerts-caution-twotone>`;\n default:\n return html`<obi-alerts-alarm-twotone\n useCssColor\n class=\"icon\"\n ></obi-alerts-alarm-twotone>`;\n }\n }\n\n private alertIcon() {\n const isIdle = this.nAlerts === 0;\n if (isIdle) {\n return html`<obi-alerts class=\"icon\"></obi-alerts>`;\n }\n if (this.type === ObcAlertButtonType.Enhanced) {\n return html`<obi-alerts-active class=\"icon\"></obi-alerts-active>`;\n }\n return this.renderAlertTwotoneIcon();\n }\n\n private alertIconNegative() {\n const useIdle =\n this.nAlerts === 0 || this.type !== ObcAlertButtonType.Enhanced;\n if (useIdle) {\n return html`<obi-alerts class=\"icon\"></obi-alerts>`;\n }\n return this.renderAlertTwotoneIcon();\n }\n\n private get activeType(): ObcAlertButtonType {\n if (this.type === ObcAlertButtonType.Flat) {\n return ObcAlertButtonType.Flat;\n }\n if (this.width < this.flatMaxBreakpointPx) {\n return ObcAlertButtonType.Flat;\n }\n return this.type;\n }\n\n private get showSilenceButtonDynamic(): boolean {\n return (\n this.showSilenceButton &&\n this.width >= this.silenceButtonMinBreakpointPx &&\n this.activeType !== ObcAlertButtonType.Flat\n );\n }\n\n override render() {\n const hasAlerts = this.nAlerts > 0;\n const showCounter =\n this.counter && hasAlerts && this.activeType !== ObcAlertButtonType.Flat;\n const showBlinking =\n this.blinking &&\n hasAlerts &&\n this.alertType !== undefined &&\n supportsBlinking(this.alertType, false);\n return html`\n <div\n class=${classMap({\n wrapper: true,\n [`alert-type-${this.alertType ?? 'none'}`]: true,\n counter: showCounter,\n 'has-silence': this.showSilenceButtonDynamic,\n [`type-${this.activeType}`]: true,\n blinking: showBlinking,\n large: this.large,\n })}\n >\n <button\n class=\"alert-button\"\n @click=${() => this.dispatchEvent(new CustomEvent('click-alert'))}\n >\n ${showBlinking\n ? html` <div class=\"blink\">\n ${this.alertIconNegative()}\n ${showCounter\n ? html`<div class=\"badge\">${this.nAlerts}</div>`\n : null}\n </div>`\n : nothing}\n <div class=\"visible-wrapper\">\n ${this.alertIcon()}\n ${showCounter\n ? html`<div class=\"badge\">${this.nAlerts}</div>`\n : nothing}\n </div>\n </button>\n\n ${this.showSilenceButtonDynamic\n ? html`\n <button\n class=\"silence-button\"\n @click=${() =>\n this.dispatchEvent(new CustomEvent('click-silence'))}\n ?disabled=${this.silenceButtonDisabled}\n >\n <div class=\"visible-wrapper\">\n <obi-silence-iec class=\"icon\"></obi-silence-iec>\n </div>\n </button>\n `\n : null}\n </div>\n `;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-alert-button': ObcAlertButton;\n }\n}\n"],"names":["ObcAlertButtonType"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BO,IAAK,uCAAAA,wBAAL;AACLA,sBAAA,MAAA,IAAO;AACPA,sBAAA,QAAA,IAAS;AACTA,sBAAA,UAAA,IAAW;AAHD,SAAAA;AAAA,GAAA,sBAAA,CAAA,CAAA;AAsFL,IAAM,iBAAN,cAA6B,WAAW;AAAA,EAAxC,cAAA;AAAA,UAAA,GAAA,SAAA;AAMqB,SAAA,UAAU;AAgBV,SAAA,OAAO;AAON,SAAA,QAAQ;AAOR,SAAA,oBAAoB;AAOpB,SAAA,wBAAwB;AAOxB,SAAA,UAAU;AAOV,SAAA,WAAW;AAUZ,SAAA,sBAAsB;AAUtB,SAAA,+BAA+B;AAEhD,SAAQ,QAAQ,OAAO;AAEhC,SAAQ,iBAAiB,MAAM;AAC7B,WAAK,QAAQ,OAAO;AAAA,IACtB;AAAA,EAAA;AAAA,EAES,oBAAoB;AAC3B,UAAM,k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BgB,WAAA,SAAA,CAAA;AAOA,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GApCd,eAoCgB,WAAA,qBAAA,CAAA;AAOA,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GA3Cd,eA2CgB,WAAA,yBAAA,CAAA;AAOA,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GAlDd,eAkDgB,WAAA,WAAA,CAAA;AAOA,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,QAAA,CAAQ;AAAA,GAzDd,eAyDgB,WAAA,YAAA,CAAA;AAUD,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GAnEb,eAmEe,WAAA,uBAAA,CAAA;AAUA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAA,CAAO;AAAA,GA7Eb,eA6Ee,WAAA,gCAAA,CAAA;AAET,gBAAA;AAAA,EAAhB,MAAA;AAAM,GA/EI,eA+EM,WAAA,SAAA,CAAA;AA/EN,iBAAN,gBAAA;AAAA,EADN,cAAc,kBAAkB;AAAA,GACpB,cAAA;"}
@@ -4,6 +4,20 @@ import '../../icons/icon-caution-color-iec.js';
4
4
  import '../../icons/icon-alarm-badge-outline.js';
5
5
  import '../../icons/icon-warning-badge-outline.js';
6
6
  import '../../icons/icon-caution-badge-outline.js';
7
+ import '../../icons/icon-alarm-acknowledged-iec.js';
8
+ import '../../icons/icon-warning-acknowledged-iec.js';
9
+ import '../../icons/icon-alarm-rectified-iec.js';
10
+ import '../../icons/icon-warning-rectified-iec.js';
11
+ import '../../icons/icon-alarm-rectified-outlined.js';
12
+ import '../../icons/icon-warning-rectified-outlined.js';
13
+ import '../../icons/icon-alarm-silenced-iec.js';
14
+ import '../../icons/icon-alarm-silenced-outlined.js';
15
+ import '../../icons/icon-warning-silenced-iec.js';
16
+ import '../../icons/icon-warning-silenced-outlined.js';
17
+ import '../../icons/icon-alarm-unacknowledged-iec.js';
18
+ import '../../icons/icon-alarm-acknowledged-outlined.js';
19
+ import '../../icons/icon-warning-unacknowledged-iec.js';
20
+ import '../../icons/icon-warning-unacknowledged-outlined.js';
7
21
  import '../alert-frame/critical-badge.js';
8
22
  import '../alert-frame/diagnostic-badge.js';
9
23
  /**
@@ -41,18 +55,27 @@ import '../alert-frame/diagnostic-badge.js';
41
55
  * @stable
42
56
  */
43
57
  export declare class ObcAlertIcon extends LitElement {
44
- type: AlertType;
45
- /** @availableWhen outline==false && type in [Alarm, Warning, LevelHigh, LevelMedium] */
46
- acknowledged: boolean;
47
- /** @availableWhen outline==false && type in [Alarm, Warning, LevelHigh, LevelMedium] */
48
- active: boolean;
49
- outline: boolean;
58
+ alertType: AlertType;
59
+ type?: AlertType;
60
+ /**
61
+ * @availableWhen type in [Alarm, Warning, LevelHigh, LevelMedium, LevelLow]
62
+ */
63
+ acknowledged?: boolean;
64
+ /**
65
+ * @availableWhen type in [Alarm, Warning, LevelHigh, LevelMedium, LevelLow]
66
+ */
67
+ active?: boolean;
68
+ silenced?: boolean;
69
+ private get _effectiveType();
50
70
  private get bamType();
71
+ private get _effectiveState();
51
72
  get icon(): {
73
+ a: TemplateResult<1>;
74
+ b: TemplateResult<1>;
75
+ } | {
52
76
  a: TemplateResult<2>;
53
77
  b: TemplateResult<2>;
54
78
  } | null;
55
- private renderOutlineIcon;
56
79
  private renderStaticIcon;
57
80
  render(): TemplateResult<1>;
58
81
  static styles: import('lit').CSSResult;
@@ -1 +1 @@
1
- {"version":3,"file":"alert-icon.d.ts","sourceRoot":"","sources":["../../../src/components/alert-icon/alert-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAa,cAAc,EAAU,MAAM,KAAK,CAAC;AAYnE,OAAO,uCAAuC,CAAC;AAE/C,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAQzC,OAAO,yCAAyC,CAAC;AACjD,OAAO,2CAA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