@oicl/openbridge-webcomponents-svelte 2.0.0 → 2.1.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/automation/analog-valve/ObcAnalogValve.svelte +2 -2
  2. package/dist/automation/analog-valve/ObcAnalogValve.svelte.d.ts +2 -2
  3. package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte +2 -2
  4. package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte.d.ts +2 -2
  5. package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte +2 -2
  6. package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte.d.ts +2 -2
  7. package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte +2 -2
  8. package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte.d.ts +2 -2
  9. package/dist/automation/automation-button/ObcAutomationButton.svelte +2 -2
  10. package/dist/automation/automation-button/ObcAutomationButton.svelte.d.ts +2 -2
  11. package/dist/automation/automation-tank/ObcAutomationTank.svelte +34 -3
  12. package/dist/automation/automation-tank/ObcAutomationTank.svelte.d.ts +34 -2
  13. package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte +2 -2
  14. package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte.d.ts +2 -2
  15. package/dist/automation/capacitor/ObcCapacitor.svelte +2 -2
  16. package/dist/automation/capacitor/ObcCapacitor.svelte.d.ts +2 -2
  17. package/dist/automation/converter/ObcConverter.svelte +2 -2
  18. package/dist/automation/converter/ObcConverter.svelte.d.ts +2 -2
  19. package/dist/automation/damper/ObcDamper.svelte +2 -2
  20. package/dist/automation/damper/ObcDamper.svelte.d.ts +2 -2
  21. package/dist/automation/digital-valve/ObcDigitalValve.svelte +2 -2
  22. package/dist/automation/digital-valve/ObcDigitalValve.svelte.d.ts +2 -2
  23. package/dist/automation/diodes/ObcDiodes.svelte +2 -2
  24. package/dist/automation/diodes/ObcDiodes.svelte.d.ts +2 -2
  25. package/dist/automation/fan/ObcFan.svelte +2 -2
  26. package/dist/automation/fan/ObcFan.svelte.d.ts +2 -2
  27. package/dist/automation/filter/ObcFilter.svelte +2 -2
  28. package/dist/automation/filter/ObcFilter.svelte.d.ts +2 -2
  29. package/dist/automation/ground/ObcGround.svelte +2 -2
  30. package/dist/automation/ground/ObcGround.svelte.d.ts +2 -2
  31. package/dist/automation/heat-exchanger/ObcHeatExchanger.svelte +10 -4
  32. package/dist/automation/heat-exchanger/ObcHeatExchanger.svelte.d.ts +10 -3
  33. package/dist/automation/heat-pump/ObcHeatPump.svelte +10 -4
  34. package/dist/automation/heat-pump/ObcHeatPump.svelte.d.ts +10 -3
  35. package/dist/automation/hydraulic-separator/ObcHydraulicSeparator.svelte +10 -4
  36. package/dist/automation/hydraulic-separator/ObcHydraulicSeparator.svelte.d.ts +10 -3
  37. package/dist/automation/logic/ObcLogic.svelte +2 -2
  38. package/dist/automation/logic/ObcLogic.svelte.d.ts +2 -2
  39. package/dist/automation/mosfet/ObcMosfet.svelte +2 -2
  40. package/dist/automation/mosfet/ObcMosfet.svelte.d.ts +2 -2
  41. package/dist/automation/motor/ObcMotor.svelte +2 -2
  42. package/dist/automation/motor/ObcMotor.svelte.d.ts +2 -2
  43. package/dist/automation/pump/ObcPump.svelte +2 -2
  44. package/dist/automation/pump/ObcPump.svelte.d.ts +2 -2
  45. package/dist/automation/resistor/ObcResistor.svelte +2 -2
  46. package/dist/automation/resistor/ObcResistor.svelte.d.ts +2 -2
  47. package/dist/automation/router/ObcRouter.svelte +2 -2
  48. package/dist/automation/router/ObcRouter.svelte.d.ts +2 -2
  49. package/dist/automation/source/ObcSource.svelte +2 -2
  50. package/dist/automation/source/ObcSource.svelte.d.ts +2 -2
  51. package/dist/automation/specialty-tank/ObcAbstractSpecialtyTank.svelte +10 -4
  52. package/dist/automation/specialty-tank/ObcAbstractSpecialtyTank.svelte.d.ts +10 -3
  53. package/dist/automation/switch/ObcSwitch.svelte +2 -2
  54. package/dist/automation/switch/ObcSwitch.svelte.d.ts +2 -2
  55. package/dist/automation/transformer/ObcTransformer.svelte +2 -2
  56. package/dist/automation/transformer/ObcTransformer.svelte.d.ts +2 -2
  57. package/dist/automation/transmitter/ObcTransmitter.svelte +58 -3
  58. package/dist/automation/transmitter/ObcTransmitter.svelte.d.ts +46 -1
  59. package/dist/components/accordion-card/ObcAccordionCard.svelte +22 -4
  60. package/dist/components/accordion-card/ObcAccordionCard.svelte.d.ts +21 -2
  61. package/package.json +2 -2
@@ -3,6 +3,8 @@ import type { TransmitterOrientation } from '@oicl/openbridge-webcomponents/dist
3
3
  import type { TransmitterType } from '@oicl/openbridge-webcomponents/dist/automation/transmitter/transmitter.js';
4
4
  import type { LineType } from '@oicl/openbridge-webcomponents/dist/automation/index.js';
5
5
  import type { TransmitterButtonSize } from '@oicl/openbridge-webcomponents/dist/automation/transmitter-button/transmitter-button.js';
6
+ import type { AlertType } from '@oicl/openbridge-webcomponents/dist/types.js';
7
+ import type { ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
6
8
  import type { Snippet } from 'svelte';
7
9
  export interface Props {
8
10
  class?: string;
@@ -23,8 +25,44 @@ export interface Props {
23
25
  size?: TransmitterButtonSize;
24
26
  hasIcon?: boolean;
25
27
  hasAdvice?: boolean;
26
- /** Wrap the transmitter in an `<obc-alert-frame>` (alarm) when true. */
28
+ /** Wrap the transmitter in an `<obc-alert-frame>` when true. */
27
29
  hasAlert?: boolean;
30
+ /**
31
+ * Severity of the alert frame, which picks its colour and flap badge: `alarm` (default), `warning`, `caution` or one of the `level-*` severities.
32
+ *
33
+ * Available when `hasAlert==true`.
34
+ */
35
+ alertFrameStatus?: AlertType;
36
+ /**
37
+ * Flap of the alert frame: `regular` (default) draws the outline alone, `small-side-flip`, `large-side-flip`, `bottom-flip` and `top-flip` add a flap with the status badge.
38
+ *
39
+ * Available when `hasAlert==true`.
40
+ */
41
+ alertFrameType?: ObcAlertFrameType;
42
+ /**
43
+ * Border of the alert frame: `small` (default) or `large`.
44
+ *
45
+ * Available when `hasAlert==true`.
46
+ */
47
+ alertFrameThickness?: ObcAlertFrameThickness;
48
+ /**
49
+ * Acknowledgement state of the alert: `acked-active` (default) is steady, `unacked-active` flashes, `unacked-rectified` flashes a dashed frame.
50
+ *
51
+ * Available when `hasAlert==true`.
52
+ */
53
+ alertFrameMode?: ObcAlertFrameMode;
54
+ /**
55
+ * Show the status badge in the flap; a small side flap without it is not drawn.
56
+ *
57
+ * Available when `hasAlert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`.
58
+ */
59
+ showAlertCategoryIcon?: boolean;
60
+ /**
61
+ * Show the `alert-icon` slot in a large side, bottom or top flap.
62
+ *
63
+ * Available when `hasAlert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`.
64
+ */
65
+ showAlertIcon?: boolean;
28
66
  /** Advisory value shown in the leading advice segment when `hasAdvice`. */
29
67
  adviceValue?: number | null | undefined;
30
68
  hasSetPoint?: boolean;
@@ -41,6 +79,9 @@ export interface Events {
41
79
  }
42
80
  export interface Slots {
43
81
  icon?: Snippet;
82
+ alertIcon?: Snippet;
83
+ alertLabel?: Snippet;
84
+ alertTimer?: Snippet;
44
85
  }
45
86
  type $$ComponentProps = Props & Events & Slots;
46
87
  declare const ObcTransmitter: import("svelte").Component<$$ComponentProps, {
@@ -48,6 +89,10 @@ declare const ObcTransmitter: import("svelte").Component<$$ComponentProps, {
48
89
  TransmitterType: typeof TransmitterType;
49
90
  LineType: typeof LineType;
50
91
  TransmitterButtonSize: typeof TransmitterButtonSize;
92
+ AlertType: typeof AlertType;
93
+ ObcAlertFrameType: typeof ObcAlertFrameType;
94
+ ObcAlertFrameThickness: typeof ObcAlertFrameThickness;
95
+ ObcAlertFrameMode: typeof ObcAlertFrameMode;
51
96
  }, "">;
52
97
  type ObcTransmitter = ReturnType<typeof ObcTransmitter>;
53
98
  export default ObcTransmitter;
@@ -1,13 +1,13 @@
1
1
 
2
2
  <script lang="ts">
3
3
  export type {Position, AccordionSize} from '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
4
- export type {ObcAlertFrameType, ObcAlertFrameThickness} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
4
+ export type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
5
5
  export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
6
6
  import '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
7
7
  import { setProperties, forwardEvents } from "../../util.js";
8
8
  import NamedSlot from "../../NamedSlot.svelte";
9
9
  import type {Position, AccordionSize} from '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
10
- import type {ObcAlertFrameType, ObcAlertFrameThickness} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
10
+ import type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
11
11
  import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
12
12
  import type { Snippet } from 'svelte';
13
13
 
@@ -32,7 +32,7 @@ import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
32
32
  expanded?: boolean;
33
33
  /** Disables the accordion card, preventing user interaction and dimming its appearance. */
34
34
  disabled?: boolean;
35
- /** Shows an alert overlay above the card when true. Configure appearance with `alertFrameType`, `alertFrameThickness`, and `alertFrameStatus`. */
35
+ /** Shows an alert overlay above the card when true. Configure appearance with `alertFrameType`, `alertFrameThickness`, `alertFrameStatus` and `alertFrameMode`. */
36
36
  hasAlert?: boolean;
37
37
  /** Enables the description text in the header (only in large size). */
38
38
  hasDescription?: boolean;
@@ -61,7 +61,25 @@ import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
61
61
  *
62
62
  * Available when `hasAlert==true`.
63
63
  */
64
- alertFrameStatus?: AlertType
64
+ alertFrameStatus?: AlertType;
65
+ /**
66
+ * Acknowledgement state of the alert: `acked-active` (default) is steady, `unacked-active` flashes, `unacked-rectified` flashes a dashed frame.
67
+ *
68
+ * Available when `hasAlert==true`.
69
+ */
70
+ alertFrameMode?: ObcAlertFrameMode;
71
+ /**
72
+ * Shows the alert category icon in the flap; a small side flap without it is not drawn.
73
+ *
74
+ * Available when `hasAlert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`.
75
+ */
76
+ showAlertCategoryIcon?: boolean;
77
+ /**
78
+ * Shows the `alert-icon` slot in a large side, bottom or top flap.
79
+ *
80
+ * Available when `hasAlert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`.
81
+ */
82
+ showAlertIcon?: boolean
65
83
  }
66
84
  export interface Events {
67
85
  onAccordionToggle?: (event: CustomEvent<{expanded: boolean, cardTitle: string}>) => void
@@ -1,6 +1,6 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
2
2
  import type { Position, AccordionSize } from '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
3
- import type { ObcAlertFrameType, ObcAlertFrameThickness } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
3
+ import type { ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
4
4
  import type { AlertType } from '@oicl/openbridge-webcomponents/dist/types.js';
5
5
  import type { Snippet } from 'svelte';
6
6
  export interface Props {
@@ -24,7 +24,7 @@ export interface Props {
24
24
  expanded?: boolean;
25
25
  /** Disables the accordion card, preventing user interaction and dimming its appearance. */
26
26
  disabled?: boolean;
27
- /** Shows an alert overlay above the card when true. Configure appearance with `alertFrameType`, `alertFrameThickness`, and `alertFrameStatus`. */
27
+ /** Shows an alert overlay above the card when true. Configure appearance with `alertFrameType`, `alertFrameThickness`, `alertFrameStatus` and `alertFrameMode`. */
28
28
  hasAlert?: boolean;
29
29
  /** Enables the description text in the header (only in large size). */
30
30
  hasDescription?: boolean;
@@ -54,6 +54,24 @@ export interface Props {
54
54
  * Available when `hasAlert==true`.
55
55
  */
56
56
  alertFrameStatus?: AlertType;
57
+ /**
58
+ * Acknowledgement state of the alert: `acked-active` (default) is steady, `unacked-active` flashes, `unacked-rectified` flashes a dashed frame.
59
+ *
60
+ * Available when `hasAlert==true`.
61
+ */
62
+ alertFrameMode?: ObcAlertFrameMode;
63
+ /**
64
+ * Shows the alert category icon in the flap; a small side flap without it is not drawn.
65
+ *
66
+ * Available when `hasAlert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`.
67
+ */
68
+ showAlertCategoryIcon?: boolean;
69
+ /**
70
+ * Shows the `alert-icon` slot in a large side, bottom or top flap.
71
+ *
72
+ * Available when `hasAlert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`.
73
+ */
74
+ showAlertIcon?: boolean;
57
75
  }
58
76
  export interface Events {
59
77
  onAccordionToggle?: (event: CustomEvent<{
@@ -74,6 +92,7 @@ declare const ObcAccordionCard: import("svelte").Component<$$ComponentProps, {
74
92
  AccordionSize: typeof AccordionSize;
75
93
  ObcAlertFrameType: typeof ObcAlertFrameType;
76
94
  ObcAlertFrameThickness: typeof ObcAlertFrameThickness;
95
+ ObcAlertFrameMode: typeof ObcAlertFrameMode;
77
96
  AlertType: typeof AlertType;
78
97
  }, "">;
79
98
  type ObcAccordionCard = ReturnType<typeof ObcAccordionCard>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0",
3
+ "version": "2.1.0-next.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",
@@ -34,7 +34,7 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@oicl/openbridge-webcomponents": "^2.0.0"
37
+ "@oicl/openbridge-webcomponents": "^2.1.0-next.1"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "svelte": "^5.0.0"