@oicl/openbridge-webcomponents-svelte 2.0.0 → 2.1.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automation/analog-valve/ObcAnalogValve.svelte +2 -2
- package/dist/automation/analog-valve/ObcAnalogValve.svelte.d.ts +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte.d.ts +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte.d.ts +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte.d.ts +2 -2
- package/dist/automation/automation-button/ObcAutomationButton.svelte +2 -2
- package/dist/automation/automation-button/ObcAutomationButton.svelte.d.ts +2 -2
- package/dist/automation/automation-tank/ObcAutomationTank.svelte +34 -3
- package/dist/automation/automation-tank/ObcAutomationTank.svelte.d.ts +34 -2
- package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte +2 -2
- package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte.d.ts +2 -2
- package/dist/automation/capacitor/ObcCapacitor.svelte +2 -2
- package/dist/automation/capacitor/ObcCapacitor.svelte.d.ts +2 -2
- package/dist/automation/converter/ObcConverter.svelte +2 -2
- package/dist/automation/converter/ObcConverter.svelte.d.ts +2 -2
- package/dist/automation/damper/ObcDamper.svelte +2 -2
- package/dist/automation/damper/ObcDamper.svelte.d.ts +2 -2
- package/dist/automation/digital-valve/ObcDigitalValve.svelte +2 -2
- package/dist/automation/digital-valve/ObcDigitalValve.svelte.d.ts +2 -2
- package/dist/automation/diodes/ObcDiodes.svelte +2 -2
- package/dist/automation/diodes/ObcDiodes.svelte.d.ts +2 -2
- package/dist/automation/fan/ObcFan.svelte +2 -2
- package/dist/automation/fan/ObcFan.svelte.d.ts +2 -2
- package/dist/automation/filter/ObcFilter.svelte +2 -2
- package/dist/automation/filter/ObcFilter.svelte.d.ts +2 -2
- package/dist/automation/ground/ObcGround.svelte +2 -2
- package/dist/automation/ground/ObcGround.svelte.d.ts +2 -2
- package/dist/automation/heat-exchanger/ObcHeatExchanger.svelte +10 -4
- package/dist/automation/heat-exchanger/ObcHeatExchanger.svelte.d.ts +10 -3
- package/dist/automation/heat-pump/ObcHeatPump.svelte +10 -4
- package/dist/automation/heat-pump/ObcHeatPump.svelte.d.ts +10 -3
- package/dist/automation/hydraulic-separator/ObcHydraulicSeparator.svelte +10 -4
- package/dist/automation/hydraulic-separator/ObcHydraulicSeparator.svelte.d.ts +10 -3
- package/dist/automation/logic/ObcLogic.svelte +2 -2
- package/dist/automation/logic/ObcLogic.svelte.d.ts +2 -2
- package/dist/automation/mosfet/ObcMosfet.svelte +2 -2
- package/dist/automation/mosfet/ObcMosfet.svelte.d.ts +2 -2
- package/dist/automation/motor/ObcMotor.svelte +2 -2
- package/dist/automation/motor/ObcMotor.svelte.d.ts +2 -2
- package/dist/automation/pump/ObcPump.svelte +2 -2
- package/dist/automation/pump/ObcPump.svelte.d.ts +2 -2
- package/dist/automation/resistor/ObcResistor.svelte +2 -2
- package/dist/automation/resistor/ObcResistor.svelte.d.ts +2 -2
- package/dist/automation/router/ObcRouter.svelte +2 -2
- package/dist/automation/router/ObcRouter.svelte.d.ts +2 -2
- package/dist/automation/source/ObcSource.svelte +2 -2
- package/dist/automation/source/ObcSource.svelte.d.ts +2 -2
- package/dist/automation/specialty-tank/ObcAbstractSpecialtyTank.svelte +10 -4
- package/dist/automation/specialty-tank/ObcAbstractSpecialtyTank.svelte.d.ts +10 -3
- package/dist/automation/switch/ObcSwitch.svelte +2 -2
- package/dist/automation/switch/ObcSwitch.svelte.d.ts +2 -2
- package/dist/automation/transformer/ObcTransformer.svelte +2 -2
- package/dist/automation/transformer/ObcTransformer.svelte.d.ts +2 -2
- package/dist/automation/transmitter/ObcTransmitter.svelte +58 -3
- package/dist/automation/transmitter/ObcTransmitter.svelte.d.ts +46 -1
- package/dist/building-blocks/alert-list/ObcAlertList.svelte +1 -0
- package/dist/building-blocks/alert-list/ObcAlertList.svelte.d.ts +1 -0
- package/dist/building-blocks/alert-list/ObcAlertListBase.svelte +34 -0
- package/dist/building-blocks/alert-list/ObcAlertListBase.svelte.d.ts +15 -0
- package/dist/components/accordion-card/ObcAccordionCard.svelte +22 -4
- package/dist/components/accordion-card/ObcAccordionCard.svelte.d.ts +21 -2
- package/dist/components/alert-menu-item/ObcAlertMenuItem.svelte +3 -1
- package/dist/components/alert-menu-item/ObcAlertMenuItem.svelte.d.ts +3 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte +11 -3
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte.d.ts +10 -2
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmallBase.svelte +43 -0
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmallBase.svelte.d.ts +25 -0
- 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>`
|
|
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;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/building-blocks/alert-list/alert-list-base.js';
|
|
5
|
+
import { setProperties } from "../../util.js";
|
|
6
|
+
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
export interface Events {
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
export interface Slots {
|
|
18
|
+
children?: Snippet
|
|
19
|
+
}
|
|
20
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
</script>
|
|
24
|
+
<undefined
|
|
25
|
+
use:setProperties={props}
|
|
26
|
+
|
|
27
|
+
class={className}
|
|
28
|
+
style={style}
|
|
29
|
+
>
|
|
30
|
+
|
|
31
|
+
{#if children}
|
|
32
|
+
{@render children()}
|
|
33
|
+
{/if}
|
|
34
|
+
</undefined>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/building-blocks/alert-list/alert-list-base.js';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
export interface Props {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Events {
|
|
8
|
+
}
|
|
9
|
+
export interface Slots {
|
|
10
|
+
children?: Snippet;
|
|
11
|
+
}
|
|
12
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
13
|
+
declare const ObcAlertListBase: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
14
|
+
type ObcAlertListBase = ReturnType<typeof ObcAlertListBase>;
|
|
15
|
+
export default ObcAlertListBase;
|
|
@@ -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 `
|
|
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 `
|
|
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>;
|
|
@@ -16,6 +16,8 @@ import type {ObcMessageMenuItemSize} from '@oicl/openbridge-webcomponents/dist/c
|
|
|
16
16
|
hasIcon?: boolean;
|
|
17
17
|
/** Indicates if the alert is shelved (temporarily deferred). When true, a tertiary icon is shown to represent the shelved state. */
|
|
18
18
|
shelved?: boolean;
|
|
19
|
+
/** Indicates that another system has blocked the alert as not relevant here. For menus that list blocked alerts apart; the item itself shows no marker for it yet. */
|
|
20
|
+
blocked?: boolean;
|
|
19
21
|
/** The title of the alert. */
|
|
20
22
|
title?: string;
|
|
21
23
|
/** The description of the alert. */
|
|
@@ -24,7 +26,7 @@ import type {ObcMessageMenuItemSize} from '@oicl/openbridge-webcomponents/dist/c
|
|
|
24
26
|
day?: string;
|
|
25
27
|
/** The time label for the alert (e.g., "14:30"). */
|
|
26
28
|
time?: string;
|
|
27
|
-
/** The current status of the alert item. Determines visual style, icon, and action button visibility. Possible values: 'unacknowledged', 'caution', 'acknowledged', 'no-ack-alarm', 'no-ack-warning', 'rectified'. Default is 'unacknowledged'. */
|
|
29
|
+
/** The current status of the alert item. Determines visual style, icon, and action button visibility. Possible values: 'unacknowledged', 'caution', 'acknowledged', 'no-ack-alarm', 'no-ack-warning', 'rectified', 'rectified-unacknowledged'. 'unacknowledged' and 'rectified-unacknowledged' show the ACK action; the other values show a trailing icon instead. Default is 'unacknowledged'. */
|
|
28
30
|
status?: ObcAlertMenuItemStatus;
|
|
29
31
|
/** Whether the item is expanded/open to show additional details. Toggled by clicking the item. */
|
|
30
32
|
open?: boolean;
|
|
@@ -9,6 +9,8 @@ export interface Props {
|
|
|
9
9
|
hasIcon?: boolean;
|
|
10
10
|
/** Indicates if the alert is shelved (temporarily deferred). When true, a tertiary icon is shown to represent the shelved state. */
|
|
11
11
|
shelved?: boolean;
|
|
12
|
+
/** Indicates that another system has blocked the alert as not relevant here. For menus that list blocked alerts apart; the item itself shows no marker for it yet. */
|
|
13
|
+
blocked?: boolean;
|
|
12
14
|
/** The title of the alert. */
|
|
13
15
|
title?: string;
|
|
14
16
|
/** The description of the alert. */
|
|
@@ -17,7 +19,7 @@ export interface Props {
|
|
|
17
19
|
day?: string;
|
|
18
20
|
/** The time label for the alert (e.g., "14:30"). */
|
|
19
21
|
time?: string;
|
|
20
|
-
/** The current status of the alert item. Determines visual style, icon, and action button visibility. Possible values: 'unacknowledged', 'caution', 'acknowledged', 'no-ack-alarm', 'no-ack-warning', 'rectified'. Default is 'unacknowledged'. */
|
|
22
|
+
/** The current status of the alert item. Determines visual style, icon, and action button visibility. Possible values: 'unacknowledged', 'caution', 'acknowledged', 'no-ack-alarm', 'no-ack-warning', 'rectified', 'rectified-unacknowledged'. 'unacknowledged' and 'rectified-unacknowledged' show the ACK action; the other values show a trailing icon instead. Default is 'unacknowledged'. */
|
|
21
23
|
status?: ObcAlertMenuItemStatus;
|
|
22
24
|
/** Whether the item is expanded/open to show additional details. Toggled by clicking the item. */
|
|
23
25
|
open?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export { default as ObcLineGraph } from './bars-graphs/line-graph/ObcLineGraph.s
|
|
|
87
87
|
export { default as ObcPieChart } from './bars-graphs/pie-chart/ObcPieChart.svelte';
|
|
88
88
|
export { default as ObcPolarChart } from './bars-graphs/polar-chart/ObcPolarChart.svelte';
|
|
89
89
|
export { default as ObcRadialBarChart } from './bars-graphs/radial-bar-chart/ObcRadialBarChart.svelte';
|
|
90
|
+
export { default as ObcAlertListBase } from './building-blocks/alert-list/ObcAlertListBase.svelte';
|
|
90
91
|
export { default as ObcAlertList } from './building-blocks/alert-list/ObcAlertList.svelte';
|
|
91
92
|
export { default as ObcBarHorizontal } from './building-blocks/bar-horizontal/ObcBarHorizontal.svelte';
|
|
92
93
|
export { default as ObcBarVertical } from './building-blocks/bar-vertical/ObcBarVertical.svelte';
|
|
@@ -2396,4 +2397,5 @@ export { default as ObcWind } from './navigation-instruments/wind/ObcWind.svelte
|
|
|
2396
2397
|
export { default as ObcWindIndicator } from './navigation-instruments/wind-indicator/ObcWindIndicator.svelte';
|
|
2397
2398
|
export { default as ObcWindPropulsion } from './navigation-instruments/wind-propulsion/ObcWindPropulsion.svelte';
|
|
2398
2399
|
export { default as ObcAlertDetailPage } from './pages/alert-detail-page/ObcAlertDetailPage.svelte';
|
|
2400
|
+
export { default as ObcAlertListPageSmallBase } from './pages/alert-list-page-small/ObcAlertListPageSmallBase.svelte';
|
|
2399
2401
|
export { default as ObcAlertListPageSmall } from './pages/alert-list-page-small/ObcAlertListPageSmall.svelte';
|
package/dist/index.js
CHANGED
|
@@ -87,6 +87,7 @@ export { default as ObcLineGraph } from './bars-graphs/line-graph/ObcLineGraph.s
|
|
|
87
87
|
export { default as ObcPieChart } from './bars-graphs/pie-chart/ObcPieChart.svelte';
|
|
88
88
|
export { default as ObcPolarChart } from './bars-graphs/polar-chart/ObcPolarChart.svelte';
|
|
89
89
|
export { default as ObcRadialBarChart } from './bars-graphs/radial-bar-chart/ObcRadialBarChart.svelte';
|
|
90
|
+
export { default as ObcAlertListBase } from './building-blocks/alert-list/ObcAlertListBase.svelte';
|
|
90
91
|
export { default as ObcAlertList } from './building-blocks/alert-list/ObcAlertList.svelte';
|
|
91
92
|
export { default as ObcBarHorizontal } from './building-blocks/bar-horizontal/ObcBarHorizontal.svelte';
|
|
92
93
|
export { default as ObcBarVertical } from './building-blocks/bar-vertical/ObcBarVertical.svelte';
|
|
@@ -2396,4 +2397,5 @@ export { default as ObcWind } from './navigation-instruments/wind/ObcWind.svelte
|
|
|
2396
2397
|
export { default as ObcWindIndicator } from './navigation-instruments/wind-indicator/ObcWindIndicator.svelte';
|
|
2397
2398
|
export { default as ObcWindPropulsion } from './navigation-instruments/wind-propulsion/ObcWindPropulsion.svelte';
|
|
2398
2399
|
export { default as ObcAlertDetailPage } from './pages/alert-detail-page/ObcAlertDetailPage.svelte';
|
|
2400
|
+
export { default as ObcAlertListPageSmallBase } from './pages/alert-list-page-small/ObcAlertListPageSmallBase.svelte';
|
|
2399
2401
|
export { default as ObcAlertListPageSmall } from './pages/alert-list-page-small/ObcAlertListPageSmall.svelte';
|
|
@@ -11,11 +11,19 @@ import type {Alert} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
|
11
11
|
export interface Props {
|
|
12
12
|
class?: string;
|
|
13
13
|
style?: string;
|
|
14
|
+
/** Whether the dropdown offers the shelved alerts. */
|
|
14
15
|
hasShelved?: boolean;
|
|
15
|
-
|
|
16
|
-
alerts?: Alert[];
|
|
16
|
+
/** Whether the list shows when each alert was raised. */
|
|
17
17
|
showTime?: boolean;
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Formats the time the list shows.
|
|
20
|
+
*
|
|
21
|
+
* Available when `showTime==true`.
|
|
22
|
+
*/
|
|
23
|
+
timeFormatter?: (time: Date) => string;
|
|
24
|
+
/** Alerts to list. */
|
|
25
|
+
alerts?: Alert[];
|
|
26
|
+
selectedMode?: AlertListMode
|
|
19
27
|
}
|
|
20
28
|
export interface Events {
|
|
21
29
|
onAckAllVisibleClick?: (event: ObcAlertListPageAckAllClickEvent) => void;
|
|
@@ -5,11 +5,19 @@ import type { Snippet } from 'svelte';
|
|
|
5
5
|
export interface Props {
|
|
6
6
|
class?: string;
|
|
7
7
|
style?: string;
|
|
8
|
+
/** Whether the dropdown offers the shelved alerts. */
|
|
8
9
|
hasShelved?: boolean;
|
|
9
|
-
|
|
10
|
-
alerts?: Alert[];
|
|
10
|
+
/** Whether the list shows when each alert was raised. */
|
|
11
11
|
showTime?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Formats the time the list shows.
|
|
14
|
+
*
|
|
15
|
+
* Available when `showTime==true`.
|
|
16
|
+
*/
|
|
12
17
|
timeFormatter?: (time: Date) => string;
|
|
18
|
+
/** Alerts to list. */
|
|
19
|
+
alerts?: Alert[];
|
|
20
|
+
selectedMode?: AlertListMode;
|
|
13
21
|
}
|
|
14
22
|
export interface Events {
|
|
15
23
|
onAckAllVisibleClick?: (event: ObcAlertListPageAckAllClickEvent) => void;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/pages/alert-list-page-small/alert-list-page-small-base.js';
|
|
5
|
+
import { setProperties } from "../../util.js";
|
|
6
|
+
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
/** Whether the dropdown offers the shelved alerts. */
|
|
13
|
+
hasShelved?: boolean;
|
|
14
|
+
/** Whether the list shows when each alert was raised. */
|
|
15
|
+
showTime?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Formats the time the list shows.
|
|
18
|
+
*
|
|
19
|
+
* Available when `showTime==true`.
|
|
20
|
+
*/
|
|
21
|
+
timeFormatter?: (time: Date) => string
|
|
22
|
+
}
|
|
23
|
+
export interface Events {
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
export interface Slots {
|
|
27
|
+
children?: Snippet
|
|
28
|
+
}
|
|
29
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</script>
|
|
33
|
+
<undefined
|
|
34
|
+
use:setProperties={props}
|
|
35
|
+
|
|
36
|
+
class={className}
|
|
37
|
+
style={style}
|
|
38
|
+
>
|
|
39
|
+
|
|
40
|
+
{#if children}
|
|
41
|
+
{@render children()}
|
|
42
|
+
{/if}
|
|
43
|
+
</undefined>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/pages/alert-list-page-small/alert-list-page-small-base.js';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
export interface Props {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
/** Whether the dropdown offers the shelved alerts. */
|
|
7
|
+
hasShelved?: boolean;
|
|
8
|
+
/** Whether the list shows when each alert was raised. */
|
|
9
|
+
showTime?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Formats the time the list shows.
|
|
12
|
+
*
|
|
13
|
+
* Available when `showTime==true`.
|
|
14
|
+
*/
|
|
15
|
+
timeFormatter?: (time: Date) => string;
|
|
16
|
+
}
|
|
17
|
+
export interface Events {
|
|
18
|
+
}
|
|
19
|
+
export interface Slots {
|
|
20
|
+
children?: Snippet;
|
|
21
|
+
}
|
|
22
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
23
|
+
declare const ObcAlertListPageSmallBase: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
24
|
+
type ObcAlertListPageSmallBase = ReturnType<typeof ObcAlertListPageSmallBase>;
|
|
25
|
+
export default ObcAlertListPageSmallBase;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents-svelte",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.1.0-next.2",
|
|
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.
|
|
37
|
+
"@oicl/openbridge-webcomponents": "^2.1.0-next.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"svelte": "^5.0.0"
|