@oicl/openbridge-webcomponents-svelte 2.0.0-next.55 → 2.0.0-next.56

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.
@@ -135,9 +135,18 @@ badgeControl?: AutomationButtonBadgeControl;
135
135
 
136
136
  }
137
137
  export interface Slots {
138
- children?: Snippet
138
+ badges?: Snippet;
139
+ tagSnippet?: Snippet;
140
+ readoutSnippet?: Snippet;
141
+ maxValue?: Snippet;
142
+ unit?: Snippet;
143
+ currentValue?: Snippet;
144
+ rich?: Snippet;
145
+ alertIcon?: Snippet;
146
+ alertLabel?: Snippet;
147
+ alertTimer?: Snippet
139
148
  }
140
- const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
149
+ const { class: className, style, badges, tagSnippet, readoutSnippet, maxValue, unit, currentValue, rich, alertIcon, alertLabel, alertTimer, ...props} = $props<Props & Events & Slots>();
141
150
 
142
151
  </script>
143
152
  <obc-automation-tank
@@ -146,7 +155,63 @@ badgeControl?: AutomationButtonBadgeControl;
146
155
  style={style}
147
156
  >
148
157
 
149
- {#if children}
150
- {@render children()}
151
- {/if}
158
+ {#if badges}
159
+ <div slot="badges">
160
+ {@render badges()}
161
+ </div>
162
+ {/if}
163
+
164
+ {#if tagSnippet}
165
+ <div slot="tag">
166
+ {@render tagSnippet()}
167
+ </div>
168
+ {/if}
169
+
170
+ {#if readoutSnippet}
171
+ <div slot="readout">
172
+ {@render readoutSnippet()}
173
+ </div>
174
+ {/if}
175
+
176
+ {#if maxValue}
177
+ <div slot="max-value">
178
+ {@render maxValue()}
179
+ </div>
180
+ {/if}
181
+
182
+ {#if unit}
183
+ <div slot="unit">
184
+ {@render unit()}
185
+ </div>
186
+ {/if}
187
+
188
+ {#if currentValue}
189
+ <div slot="current-value">
190
+ {@render currentValue()}
191
+ </div>
192
+ {/if}
193
+
194
+ {#if rich}
195
+ <div slot="rich">
196
+ {@render rich()}
197
+ </div>
198
+ {/if}
199
+
200
+ {#if alertIcon}
201
+ <div slot="alert-icon">
202
+ {@render alertIcon()}
203
+ </div>
204
+ {/if}
205
+
206
+ {#if alertLabel}
207
+ <div slot="alert-label">
208
+ {@render alertLabel()}
209
+ </div>
210
+ {/if}
211
+
212
+ {#if alertTimer}
213
+ <div slot="alert-timer">
214
+ {@render alertTimer()}
215
+ </div>
216
+ {/if}
152
217
  </obc-automation-tank>
@@ -123,7 +123,16 @@ matching the positional convention used by `ObcAbstractAutomationButton`
123
123
  export interface Events {
124
124
  }
125
125
  export interface Slots {
126
- children?: Snippet;
126
+ badges?: Snippet;
127
+ tagSnippet?: Snippet;
128
+ readoutSnippet?: Snippet;
129
+ maxValue?: Snippet;
130
+ unit?: Snippet;
131
+ currentValue?: Snippet;
132
+ rich?: Snippet;
133
+ alertIcon?: Snippet;
134
+ alertLabel?: Snippet;
135
+ alertTimer?: Snippet;
127
136
  }
128
137
  type $$ComponentProps = Props & Events & Slots;
129
138
  declare const ObcAutomationTank: import("svelte").Component<$$ComponentProps, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.55",
3
+ "version": "2.0.0-next.56",
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.54"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.55"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"