@oicl/openbridge-webcomponents-svelte 2.2.0-next.3 → 2.2.0-next.5
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.
|
@@ -15,7 +15,7 @@ import type {AlertCounts} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
|
15
15
|
type?: ObcAlertCounterItemType;
|
|
16
16
|
/** Alert count per severity (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts); counts of zero or less are not shown. */
|
|
17
17
|
counts?: AlertCounts;
|
|
18
|
-
/** Number of shelved alerts, shown as a neutral badge with the
|
|
18
|
+
/** Number of shelved alerts, shown as a neutral badge with the timer icon after the severities; hidden at zero. */
|
|
19
19
|
shelvedCount?: number
|
|
20
20
|
}
|
|
21
21
|
export interface Events {
|
|
@@ -9,7 +9,7 @@ export interface Props {
|
|
|
9
9
|
type?: ObcAlertCounterItemType;
|
|
10
10
|
/** Alert count per severity (`countAlarm`, `countWarning`, `countCaution` and the `level-*` counts); counts of zero or less are not shown. */
|
|
11
11
|
counts?: AlertCounts;
|
|
12
|
-
/** Number of shelved alerts, shown as a neutral badge with the
|
|
12
|
+
/** Number of shelved alerts, shown as a neutral badge with the timer icon after the severities; hidden at zero. */
|
|
13
13
|
shelvedCount?: number;
|
|
14
14
|
}
|
|
15
15
|
export interface Events {
|
|
@@ -116,10 +116,11 @@ import type {ObcTopBarMenuButtonIcon} from '@oicl/openbridge-webcomponents/dist/
|
|
|
116
116
|
export interface Slots {
|
|
117
117
|
appIcon?: Snippet;
|
|
118
118
|
commandButton?: Snippet;
|
|
119
|
+
assetPicker?: Snippet;
|
|
119
120
|
alerts?: Snippet;
|
|
120
121
|
clock?: Snippet
|
|
121
122
|
}
|
|
122
|
-
const {onMenuButtonClicked, onDimmingButtonClicked, onAppsButtonClicked, onMoreButtonClicked, onLeftMoreButtonClicked, onUserButtonClicked, onClose, onBack, onEmergencyBrightnessStart, onEmergencyBrightnessStop, onBreadcrumbClick, class: className, style, appIcon, commandButton, alerts, clock, ...props} = $props<Props & Events & Slots>();
|
|
123
|
+
const {onMenuButtonClicked, onDimmingButtonClicked, onAppsButtonClicked, onMoreButtonClicked, onLeftMoreButtonClicked, onUserButtonClicked, onClose, onBack, onEmergencyBrightnessStart, onEmergencyBrightnessStop, onBreadcrumbClick, class: className, style, appIcon, commandButton, assetPicker, alerts, clock, ...props} = $props<Props & Events & Slots>();
|
|
123
124
|
|
|
124
125
|
|
|
125
126
|
</script>
|
|
@@ -138,6 +139,10 @@ import type {ObcTopBarMenuButtonIcon} from '@oicl/openbridge-webcomponents/dist/
|
|
|
138
139
|
<NamedSlot name="command-button" content={commandButton} />
|
|
139
140
|
{/if}
|
|
140
141
|
|
|
142
|
+
{#if assetPicker}
|
|
143
|
+
<NamedSlot name="asset-picker" content={assetPicker} />
|
|
144
|
+
{/if}
|
|
145
|
+
|
|
141
146
|
{#if alerts}
|
|
142
147
|
<NamedSlot name="alerts" content={alerts} />
|
|
143
148
|
{/if}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents-svelte",
|
|
3
|
-
"version": "2.2.0-next.
|
|
3
|
+
"version": "2.2.0-next.5",
|
|
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.2.0-next.
|
|
37
|
+
"@oicl/openbridge-webcomponents": "^2.2.0-next.5"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"svelte": "^5.0.0"
|