@oicl/openbridge-webcomponents-svelte 2.0.0-next.97 → 2.0.0-next.98
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {LineMedium} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
|
|
4
|
-
export type {TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode
|
|
4
|
+
export type {TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
|
|
5
5
|
export type {ChartLineDataItem} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
6
6
|
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
7
7
|
export type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
@@ -11,7 +11,7 @@ export type {AutomationButtonBadgeControl, AutomationButtonBadgeAlert, Automatio
|
|
|
11
11
|
import '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
|
|
12
12
|
import { setProperties } from "../../util.js";
|
|
13
13
|
import type {LineMedium} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
|
|
14
|
-
import type {TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode
|
|
14
|
+
import type {TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
|
|
15
15
|
import type {ChartLineDataItem} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
16
16
|
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
17
17
|
import type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
@@ -108,18 +108,6 @@ rather than percent, so this property has no effect there — pass a
|
|
|
108
108
|
pre-formatted value through the `max-value` slot if fractional
|
|
109
109
|
precision is needed (see the `WithFractionDigits` story). */
|
|
110
110
|
percentFractionDigits?: number;
|
|
111
|
-
/** Rich detail rows shown below the main percent/value block in the regular
|
|
112
|
-
(non-compact, non-static) layout, separated by a divider. When empty (the
|
|
113
|
-
default), nothing is rendered — neither the divider nor the list. In
|
|
114
|
-
vertical orientation the chart cell shrinks to make room; in horizontal
|
|
115
|
-
orientation the readout column already has reserved whitespace so the
|
|
116
|
-
chart is unaffected.
|
|
117
|
-
|
|
118
|
-
Values are formatted using `percentFractionDigits`. Consumers that need
|
|
119
|
-
full control over the markup can replace the entire fallback by slotting
|
|
120
|
-
arbitrary content into `slot="rich"` (note: this is a different name from
|
|
121
|
-
the existing `slot="readout"` which replaces the whole readout block). */
|
|
122
|
-
readout?: TankReadoutItem[];
|
|
123
111
|
/** Enum-driven badges rendered inside the `badges` cell. Mirrors the API
|
|
124
112
|
introduced for `ObcAbstractAutomationButton` in PR #839 (#829). When set
|
|
125
113
|
to a non-`None` value, an `<obc-automation-badge>` of the corresponding
|
|
@@ -141,7 +129,7 @@ badgeControl?: AutomationButtonBadgeControl;
|
|
|
141
129
|
export interface Slots {
|
|
142
130
|
badges?: Snippet;
|
|
143
131
|
tagSnippet?: Snippet;
|
|
144
|
-
|
|
132
|
+
readout?: Snippet;
|
|
145
133
|
maxValue?: Snippet;
|
|
146
134
|
unit?: Snippet;
|
|
147
135
|
currentValue?: Snippet;
|
|
@@ -150,7 +138,7 @@ badgeControl?: AutomationButtonBadgeControl;
|
|
|
150
138
|
alertLabel?: Snippet;
|
|
151
139
|
alertTimer?: Snippet
|
|
152
140
|
}
|
|
153
|
-
const { class: className, style, badges, tagSnippet,
|
|
141
|
+
const { class: className, style, badges, tagSnippet, readout, maxValue, unit, currentValue, rich, alertIcon, alertLabel, alertTimer, ...props} = $props<Props & Events & Slots>();
|
|
154
142
|
|
|
155
143
|
</script>
|
|
156
144
|
<obc-automation-tank
|
|
@@ -171,9 +159,9 @@ badgeControl?: AutomationButtonBadgeControl;
|
|
|
171
159
|
</div>
|
|
172
160
|
{/if}
|
|
173
161
|
|
|
174
|
-
{#if
|
|
162
|
+
{#if readout}
|
|
175
163
|
<div slot="readout">
|
|
176
|
-
{@render
|
|
164
|
+
{@render readout()}
|
|
177
165
|
</div>
|
|
178
166
|
{/if}
|
|
179
167
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
|
|
2
2
|
import type { LineMedium } from '@oicl/openbridge-webcomponents/dist/automation/index.js';
|
|
3
|
-
import type { TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode
|
|
3
|
+
import type { TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode } from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
|
|
4
4
|
import type { ChartLineDataItem } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
5
5
|
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
6
6
|
import type { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
@@ -96,18 +96,6 @@ rather than percent, so this property has no effect there — pass a
|
|
|
96
96
|
pre-formatted value through the `max-value` slot if fractional
|
|
97
97
|
precision is needed (see the `WithFractionDigits` story). */
|
|
98
98
|
percentFractionDigits?: number;
|
|
99
|
-
/** Rich detail rows shown below the main percent/value block in the regular
|
|
100
|
-
(non-compact, non-static) layout, separated by a divider. When empty (the
|
|
101
|
-
default), nothing is rendered — neither the divider nor the list. In
|
|
102
|
-
vertical orientation the chart cell shrinks to make room; in horizontal
|
|
103
|
-
orientation the readout column already has reserved whitespace so the
|
|
104
|
-
chart is unaffected.
|
|
105
|
-
|
|
106
|
-
Values are formatted using `percentFractionDigits`. Consumers that need
|
|
107
|
-
full control over the markup can replace the entire fallback by slotting
|
|
108
|
-
arbitrary content into `slot="rich"` (note: this is a different name from
|
|
109
|
-
the existing `slot="readout"` which replaces the whole readout block). */
|
|
110
|
-
readout?: TankReadoutItem[];
|
|
111
99
|
/** Enum-driven badges rendered inside the `badges` cell. Mirrors the API
|
|
112
100
|
introduced for `ObcAbstractAutomationButton` in PR #839 (#829). When set
|
|
113
101
|
to a non-`None` value, an `<obc-automation-badge>` of the corresponding
|
|
@@ -128,7 +116,7 @@ export interface Events {
|
|
|
128
116
|
export interface Slots {
|
|
129
117
|
badges?: Snippet;
|
|
130
118
|
tagSnippet?: Snippet;
|
|
131
|
-
|
|
119
|
+
readout?: Snippet;
|
|
132
120
|
maxValue?: Snippet;
|
|
133
121
|
unit?: Snippet;
|
|
134
122
|
currentValue?: Snippet;
|
|
@@ -145,7 +133,6 @@ declare const ObcAutomationTank: import("svelte").Component<$$ComponentProps, {
|
|
|
145
133
|
TankOrientation: typeof TankOrientation;
|
|
146
134
|
TankPositioning: typeof TankPositioning;
|
|
147
135
|
TankChartMode: typeof TankChartMode;
|
|
148
|
-
TankReadoutItem: typeof TankReadoutItem;
|
|
149
136
|
ChartLineDataItem: typeof ChartLineDataItem;
|
|
150
137
|
Priority: typeof Priority;
|
|
151
138
|
LinearAdvice: typeof LinearAdvice;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents-svelte",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.98",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run prepack",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@oicl/openbridge-webcomponents": "^2.0.0-next.
|
|
34
|
+
"@oicl/openbridge-webcomponents": "^2.0.0-next.97"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|