@oicl/openbridge-webcomponents-svelte 2.1.0-next.1 → 2.1.0-next.3
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/valve-analoge-two-way-icon/ObcValveAnalogTwoWayIcon.svelte +7 -1
- package/dist/automation/valve-analoge-two-way-icon/ObcValveAnalogTwoWayIcon.svelte.d.ts +7 -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/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
|
@@ -9,9 +9,15 @@
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Opening in percent (0–100).
|
|
14
|
+
*
|
|
15
|
+
* Available when `closed==false`.
|
|
16
|
+
*/
|
|
13
17
|
value?: number;
|
|
18
|
+
/** Shows the closed symbol. */
|
|
14
19
|
closed?: boolean;
|
|
20
|
+
/** Turns the symbol 90° for a vertical pipe. */
|
|
15
21
|
vertical?: boolean
|
|
16
22
|
}
|
|
17
23
|
export interface Events {
|
|
@@ -3,9 +3,15 @@ import type { Snippet } from 'svelte';
|
|
|
3
3
|
export interface Props {
|
|
4
4
|
class?: string;
|
|
5
5
|
style?: string;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Opening in percent (0–100).
|
|
8
|
+
*
|
|
9
|
+
* Available when `closed==false`.
|
|
10
|
+
*/
|
|
7
11
|
value?: number;
|
|
12
|
+
/** Shows the closed symbol. */
|
|
8
13
|
closed?: boolean;
|
|
14
|
+
/** Turns the symbol 90° for a vertical pipe. */
|
|
9
15
|
vertical?: boolean;
|
|
10
16
|
}
|
|
11
17
|
export interface Events {
|
|
@@ -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;
|
|
@@ -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.1.0-next.
|
|
3
|
+
"version": "2.1.0-next.3",
|
|
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.1.0-next.
|
|
37
|
+
"@oicl/openbridge-webcomponents": "^2.1.0-next.3"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"svelte": "^5.0.0"
|