winui-svelte 0.0.1 → 0.0.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.
Files changed (184) hide show
  1. package/API.md +2 -0
  2. package/README.md +5 -1
  3. package/dist/bindings/.dynwinrt-js-types +1333 -51
  4. package/dist/bindings/.dynwinrt-managed +1 -1
  5. package/dist/bindings/index.d.ts +95 -1
  6. package/dist/bindings/index.js +146 -2
  7. package/dist/bindings/index.mjs +4437 -4293
  8. package/dist/bindings/index.proxy.js +73 -1
  9. package/dist/components/generated/controls/AnimatedVisualPlayer.svelte.d.ts +2 -0
  10. package/dist/components/generated/controls/AnimatedVisualPlayer.svelte.d.ts.map +1 -1
  11. package/dist/components/generated/controls/AnimatedVisualPlayer.svelte.js.map +1 -1
  12. package/dist/components/generated/controls/Block.svelte.d.ts +6 -0
  13. package/dist/components/generated/controls/Block.svelte.d.ts.map +1 -1
  14. package/dist/components/generated/controls/Block.svelte.js.map +1 -1
  15. package/dist/components/generated/controls/Border.svelte.d.ts +6 -0
  16. package/dist/components/generated/controls/Border.svelte.d.ts.map +1 -1
  17. package/dist/components/generated/controls/Border.svelte.js.map +1 -1
  18. package/dist/components/generated/controls/ContentPresenter.svelte.d.ts +19 -1
  19. package/dist/components/generated/controls/ContentPresenter.svelte.d.ts.map +1 -1
  20. package/dist/components/generated/controls/ContentPresenter.svelte.js.map +1 -1
  21. package/dist/components/generated/controls/Control.svelte.d.ts +12 -0
  22. package/dist/components/generated/controls/Control.svelte.d.ts.map +1 -1
  23. package/dist/components/generated/controls/Control.svelte.js.map +1 -1
  24. package/dist/components/generated/controls/EllipseGeometry.svelte.d.ts +4 -0
  25. package/dist/components/generated/controls/EllipseGeometry.svelte.d.ts.map +1 -1
  26. package/dist/components/generated/controls/EllipseGeometry.svelte.js.map +1 -1
  27. package/dist/components/generated/controls/FrameworkElement.svelte.d.ts +10 -0
  28. package/dist/components/generated/controls/FrameworkElement.svelte.d.ts.map +1 -1
  29. package/dist/components/generated/controls/FrameworkElement.svelte.js.map +1 -1
  30. package/dist/components/generated/controls/Glyphs.svelte.d.ts +2 -0
  31. package/dist/components/generated/controls/Glyphs.svelte.d.ts.map +1 -1
  32. package/dist/components/generated/controls/Glyphs.svelte.js.map +1 -1
  33. package/dist/components/generated/controls/Grid.svelte.d.ts +6 -0
  34. package/dist/components/generated/controls/Grid.svelte.d.ts.map +1 -1
  35. package/dist/components/generated/controls/Grid.svelte.js.map +1 -1
  36. package/dist/components/generated/controls/Hyperlink.svelte.d.ts +2 -0
  37. package/dist/components/generated/controls/Hyperlink.svelte.d.ts.map +1 -1
  38. package/dist/components/generated/controls/Hyperlink.svelte.js.map +1 -1
  39. package/dist/components/generated/controls/Image.svelte.d.ts +2 -0
  40. package/dist/components/generated/controls/Image.svelte.d.ts.map +1 -1
  41. package/dist/components/generated/controls/Image.svelte.js.map +1 -1
  42. package/dist/components/generated/controls/ItemsPresenter.svelte.d.ts +2 -0
  43. package/dist/components/generated/controls/ItemsPresenter.svelte.d.ts.map +1 -1
  44. package/dist/components/generated/controls/ItemsPresenter.svelte.js.map +1 -1
  45. package/dist/components/generated/controls/LinedFlowLayout.svelte.d.ts +2 -0
  46. package/dist/components/generated/controls/LinedFlowLayout.svelte.d.ts.map +1 -1
  47. package/dist/components/generated/controls/LinedFlowLayout.svelte.js.map +1 -1
  48. package/dist/components/generated/controls/MediaPlayerElement.svelte.d.ts +2 -0
  49. package/dist/components/generated/controls/MediaPlayerElement.svelte.d.ts.map +1 -1
  50. package/dist/components/generated/controls/MediaPlayerElement.svelte.js.map +1 -1
  51. package/dist/components/generated/controls/MediaPlayerPresenter.svelte.d.ts +2 -0
  52. package/dist/components/generated/controls/MediaPlayerPresenter.svelte.d.ts.map +1 -1
  53. package/dist/components/generated/controls/MediaPlayerPresenter.svelte.js.map +1 -1
  54. package/dist/components/generated/controls/RadialGradientBrush.svelte.d.ts +4 -0
  55. package/dist/components/generated/controls/RadialGradientBrush.svelte.d.ts.map +1 -1
  56. package/dist/components/generated/controls/RadialGradientBrush.svelte.js.map +1 -1
  57. package/dist/components/generated/controls/Rectangle.svelte.d.ts +4 -0
  58. package/dist/components/generated/controls/Rectangle.svelte.d.ts.map +1 -1
  59. package/dist/components/generated/controls/Rectangle.svelte.js.map +1 -1
  60. package/dist/components/generated/controls/RelativePanel.svelte.d.ts +6 -0
  61. package/dist/components/generated/controls/RelativePanel.svelte.d.ts.map +1 -1
  62. package/dist/components/generated/controls/RelativePanel.svelte.js.map +1 -1
  63. package/dist/components/generated/controls/RichEditBox.svelte.d.ts +1 -1
  64. package/dist/components/generated/controls/RichTextBlock.svelte.d.ts +14 -2
  65. package/dist/components/generated/controls/RichTextBlock.svelte.d.ts.map +1 -1
  66. package/dist/components/generated/controls/RichTextBlock.svelte.js.map +1 -1
  67. package/dist/components/generated/controls/RichTextBlockOverflow.svelte.d.ts +4 -0
  68. package/dist/components/generated/controls/RichTextBlockOverflow.svelte.d.ts.map +1 -1
  69. package/dist/components/generated/controls/RichTextBlockOverflow.svelte.js.map +1 -1
  70. package/dist/components/generated/controls/ScrollView.svelte.d.ts +4 -0
  71. package/dist/components/generated/controls/ScrollView.svelte.d.ts.map +1 -1
  72. package/dist/components/generated/controls/ScrollView.svelte.js.map +1 -1
  73. package/dist/components/generated/controls/ScrollViewer.svelte.d.ts +4 -0
  74. package/dist/components/generated/controls/ScrollViewer.svelte.d.ts.map +1 -1
  75. package/dist/components/generated/controls/ScrollViewer.svelte.js.map +1 -1
  76. package/dist/components/generated/controls/Shape.svelte.d.ts +10 -0
  77. package/dist/components/generated/controls/Shape.svelte.d.ts.map +1 -1
  78. package/dist/components/generated/controls/Shape.svelte.js.map +1 -1
  79. package/dist/components/generated/controls/StackPanel.svelte.d.ts +6 -0
  80. package/dist/components/generated/controls/StackPanel.svelte.d.ts.map +1 -1
  81. package/dist/components/generated/controls/StackPanel.svelte.js.map +1 -1
  82. package/dist/components/generated/controls/TextBlock.svelte.d.ts +14 -2
  83. package/dist/components/generated/controls/TextBlock.svelte.d.ts.map +1 -1
  84. package/dist/components/generated/controls/TextBlock.svelte.js.map +1 -1
  85. package/dist/components/generated/controls/TextBox.svelte.d.ts +1 -1
  86. package/dist/components/generated/controls/TextElement.svelte.d.ts +3 -1
  87. package/dist/components/generated/controls/TextElement.svelte.d.ts.map +1 -1
  88. package/dist/components/generated/controls/TextElement.svelte.js.map +1 -1
  89. package/dist/components/generated/controls/TickBar.svelte.d.ts +2 -0
  90. package/dist/components/generated/controls/TickBar.svelte.d.ts.map +1 -1
  91. package/dist/components/generated/controls/TickBar.svelte.js.map +1 -1
  92. package/dist/components/generated/controls/TileBrush.svelte.d.ts +2 -0
  93. package/dist/components/generated/controls/TileBrush.svelte.d.ts.map +1 -1
  94. package/dist/components/generated/controls/TileBrush.svelte.js.map +1 -1
  95. package/dist/components/generated/controls/UIElement.svelte.d.ts +7 -1
  96. package/dist/components/generated/controls/UIElement.svelte.d.ts.map +1 -1
  97. package/dist/components/generated/controls/UIElement.svelte.js.map +1 -1
  98. package/dist/components/generated/controls/Viewbox.svelte.d.ts +2 -0
  99. package/dist/components/generated/controls/Viewbox.svelte.d.ts.map +1 -1
  100. package/dist/components/generated/controls/Viewbox.svelte.js.map +1 -1
  101. package/dist/components/index.d.ts +1 -1
  102. package/dist/components/index.d.ts.map +1 -1
  103. package/dist/components/index.js.map +1 -1
  104. package/dist/css/control.d.ts +2 -0
  105. package/dist/css/control.d.ts.map +1 -0
  106. package/dist/css/control.js +5 -0
  107. package/dist/css/control.js.map +1 -0
  108. package/dist/css/shape.d.ts +2 -0
  109. package/dist/css/shape.d.ts.map +1 -0
  110. package/dist/css/shape.js +5 -0
  111. package/dist/css/shape.js.map +1 -0
  112. package/dist/css/translate/lazy-groups.d.ts.map +1 -1
  113. package/dist/css/translate/lazy-groups.js +14 -0
  114. package/dist/css/translate/lazy-groups.js.map +1 -1
  115. package/dist/css/translate/shape-properties.d.ts +24 -0
  116. package/dist/css/translate/shape-properties.d.ts.map +1 -0
  117. package/dist/css/translate/shape-properties.js +207 -0
  118. package/dist/css/translate/shape-properties.js.map +1 -0
  119. package/dist/css/translate/text-control-properties.d.ts +21 -0
  120. package/dist/css/translate/text-control-properties.d.ts.map +1 -0
  121. package/dist/css/translate/text-control-properties.js +120 -0
  122. package/dist/css/translate/text-control-properties.js.map +1 -0
  123. package/dist/css/translate/unsupported-properties.d.ts.map +1 -1
  124. package/dist/css/translate/unsupported-properties.js +2 -0
  125. package/dist/css/translate/unsupported-properties.js.map +1 -1
  126. package/dist/css/validate/vscode-css-data.json +370 -0
  127. package/dist/css/validate/vscode-data.d.ts +2 -1
  128. package/dist/css/validate/vscode-data.d.ts.map +1 -1
  129. package/dist/css/validate/vscode-data.js +31 -1
  130. package/dist/css/validate/vscode-data.js.map +1 -1
  131. package/dist/media/media-player.d.ts +8 -0
  132. package/dist/media/media-player.d.ts.map +1 -1
  133. package/dist/media/media-player.js +15 -0
  134. package/dist/media/media-player.js.map +1 -1
  135. package/dist/window/window-host.svelte.d.ts.map +1 -1
  136. package/dist/window/window-host.svelte.js +40 -9
  137. package/dist/window/window-host.svelte.js.map +1 -1
  138. package/package.json +9 -1
  139. package/src/components/generated/controls/AnimatedVisualPlayer.svelte.ts +2 -0
  140. package/src/components/generated/controls/Block.svelte.ts +6 -0
  141. package/src/components/generated/controls/Border.svelte.ts +6 -0
  142. package/src/components/generated/controls/ContentPresenter.svelte.ts +19 -1
  143. package/src/components/generated/controls/Control.svelte.ts +12 -0
  144. package/src/components/generated/controls/EllipseGeometry.svelte.ts +4 -0
  145. package/src/components/generated/controls/FrameworkElement.svelte.ts +10 -0
  146. package/src/components/generated/controls/Glyphs.svelte.ts +2 -0
  147. package/src/components/generated/controls/Grid.svelte.ts +6 -0
  148. package/src/components/generated/controls/Hyperlink.svelte.ts +2 -0
  149. package/src/components/generated/controls/Image.svelte.ts +2 -0
  150. package/src/components/generated/controls/ItemsPresenter.svelte.ts +2 -0
  151. package/src/components/generated/controls/LinedFlowLayout.svelte.ts +2 -0
  152. package/src/components/generated/controls/MediaPlayerElement.svelte.ts +2 -0
  153. package/src/components/generated/controls/MediaPlayerPresenter.svelte.ts +2 -0
  154. package/src/components/generated/controls/RadialGradientBrush.svelte.ts +4 -0
  155. package/src/components/generated/controls/Rectangle.svelte.ts +4 -0
  156. package/src/components/generated/controls/RelativePanel.svelte.ts +6 -0
  157. package/src/components/generated/controls/RichEditBox.svelte.ts +1 -1
  158. package/src/components/generated/controls/RichTextBlock.svelte.ts +14 -2
  159. package/src/components/generated/controls/RichTextBlockOverflow.svelte.ts +4 -0
  160. package/src/components/generated/controls/ScrollView.svelte.ts +4 -0
  161. package/src/components/generated/controls/ScrollViewer.svelte.ts +4 -0
  162. package/src/components/generated/controls/Shape.svelte.ts +10 -0
  163. package/src/components/generated/controls/StackPanel.svelte.ts +6 -0
  164. package/src/components/generated/controls/TextBlock.svelte.ts +14 -2
  165. package/src/components/generated/controls/TextBox.svelte.ts +1 -1
  166. package/src/components/generated/controls/TextElement.svelte.ts +3 -1
  167. package/src/components/generated/controls/TickBar.svelte.ts +2 -0
  168. package/src/components/generated/controls/TileBrush.svelte.ts +2 -0
  169. package/src/components/generated/controls/UIElement.svelte.ts +7 -1
  170. package/src/components/generated/controls/Viewbox.svelte.ts +2 -0
  171. package/src/components/index.ts +10 -1
  172. package/src/css/API.md +32 -0
  173. package/src/css/control.ts +5 -0
  174. package/src/css/shape.ts +5 -0
  175. package/src/css/translate/lazy-groups.ts +14 -0
  176. package/src/css/translate/shape-properties.ts +250 -0
  177. package/src/css/translate/text-control-properties.ts +135 -0
  178. package/src/css/translate/unsupported-properties.ts +2 -0
  179. package/src/css/validate/vscode-data.ts +38 -1
  180. package/src/media/media-player.ts +17 -0
  181. package/src/window/window-host.svelte.ts +46 -9
  182. package/web-types.json +460 -90
  183. package/dist/bindings/microsoft/ui/xaml/controls/SwapChainBackgroundPanel.d.ts +0 -731
  184. package/dist/bindings/microsoft/ui/xaml/controls/SwapChainBackgroundPanel.js +0 -2806
@@ -116,6 +116,376 @@
116
116
  }
117
117
  ]
118
118
  },
119
+ {
120
+ "name": "word-break",
121
+ "description": "WinUI: sets TextWrapping; only these keywords are accepted.",
122
+ "values": [
123
+ {
124
+ "name": "normal",
125
+ "description": "TextWrapping: WrapWholeWords"
126
+ },
127
+ {
128
+ "name": "keep-all",
129
+ "description": "TextWrapping: WrapWholeWords"
130
+ },
131
+ {
132
+ "name": "break-all",
133
+ "description": "TextWrapping: Wrap"
134
+ },
135
+ {
136
+ "name": "break-word",
137
+ "description": "TextWrapping: Wrap"
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ "name": "object-fit",
143
+ "description": "WinUI: sets Stretch; only these keywords are accepted.",
144
+ "values": [
145
+ {
146
+ "name": "fill",
147
+ "description": "Stretch: Fill"
148
+ },
149
+ {
150
+ "name": "contain",
151
+ "description": "Stretch: Uniform"
152
+ },
153
+ {
154
+ "name": "cover",
155
+ "description": "Stretch: UniformToFill"
156
+ },
157
+ {
158
+ "name": "none",
159
+ "description": "Stretch: None"
160
+ }
161
+ ]
162
+ },
163
+ {
164
+ "name": "user-select",
165
+ "description": "WinUI: sets IsTextSelectionEnabled; only these keywords are accepted.",
166
+ "values": [
167
+ {
168
+ "name": "auto",
169
+ "description": "IsTextSelectionEnabled: True"
170
+ },
171
+ {
172
+ "name": "text",
173
+ "description": "IsTextSelectionEnabled: True"
174
+ },
175
+ {
176
+ "name": "all",
177
+ "description": "IsTextSelectionEnabled: True"
178
+ },
179
+ {
180
+ "name": "contain",
181
+ "description": "IsTextSelectionEnabled: True"
182
+ },
183
+ {
184
+ "name": "none",
185
+ "description": "IsTextSelectionEnabled: False"
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "name": "font-style",
191
+ "description": "WinUI: sets FontStyle; only these keywords are accepted.",
192
+ "values": [
193
+ {
194
+ "name": "normal",
195
+ "description": "FontStyle: Normal"
196
+ },
197
+ {
198
+ "name": "italic",
199
+ "description": "FontStyle: Italic"
200
+ },
201
+ {
202
+ "name": "oblique",
203
+ "description": "FontStyle: Oblique"
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "name": "text-align",
209
+ "description": "WinUI: sets TextAlignment; only these keywords are accepted.",
210
+ "values": [
211
+ {
212
+ "name": "left",
213
+ "description": "TextAlignment: Left"
214
+ },
215
+ {
216
+ "name": "start",
217
+ "description": "TextAlignment: Left"
218
+ },
219
+ {
220
+ "name": "center",
221
+ "description": "TextAlignment: Center"
222
+ },
223
+ {
224
+ "name": "right",
225
+ "description": "TextAlignment: Right"
226
+ },
227
+ {
228
+ "name": "end",
229
+ "description": "TextAlignment: Right"
230
+ },
231
+ {
232
+ "name": "justify",
233
+ "description": "TextAlignment: Justify"
234
+ }
235
+ ]
236
+ },
237
+ {
238
+ "name": "text-wrap",
239
+ "description": "WinUI: sets TextWrapping; only these keywords are accepted.",
240
+ "values": [
241
+ {
242
+ "name": "wrap",
243
+ "description": "TextWrapping: Wrap"
244
+ },
245
+ {
246
+ "name": "nowrap",
247
+ "description": "TextWrapping: NoWrap"
248
+ }
249
+ ]
250
+ },
251
+ {
252
+ "name": "white-space",
253
+ "description": "WinUI: sets TextWrapping; only these keywords are accepted.",
254
+ "values": [
255
+ {
256
+ "name": "normal",
257
+ "description": "TextWrapping: Wrap"
258
+ },
259
+ {
260
+ "name": "nowrap",
261
+ "description": "TextWrapping: NoWrap"
262
+ }
263
+ ]
264
+ },
265
+ {
266
+ "name": "text-overflow",
267
+ "description": "WinUI: sets TextTrimming; only these keywords are accepted.",
268
+ "values": [
269
+ {
270
+ "name": "ellipsis",
271
+ "description": "TextTrimming: CharacterEllipsis"
272
+ },
273
+ {
274
+ "name": "clip",
275
+ "description": "TextTrimming: Clip"
276
+ }
277
+ ]
278
+ },
279
+ {
280
+ "name": "text-decoration",
281
+ "description": "WinUI: sets TextDecorations; only these keywords are accepted.",
282
+ "values": [
283
+ {
284
+ "name": "none",
285
+ "description": "TextDecorations: None"
286
+ },
287
+ {
288
+ "name": "underline",
289
+ "description": "TextDecorations: Underline"
290
+ },
291
+ {
292
+ "name": "line-through",
293
+ "description": "TextDecorations: Strikethrough"
294
+ }
295
+ ]
296
+ },
297
+ {
298
+ "name": "text-decoration-line",
299
+ "description": "WinUI: sets TextDecorations; only these keywords are accepted.",
300
+ "values": [
301
+ {
302
+ "name": "none",
303
+ "description": "TextDecorations: None"
304
+ },
305
+ {
306
+ "name": "underline",
307
+ "description": "TextDecorations: Underline"
308
+ },
309
+ {
310
+ "name": "line-through",
311
+ "description": "TextDecorations: Strikethrough"
312
+ }
313
+ ]
314
+ },
315
+ {
316
+ "name": "flex-direction",
317
+ "description": "WinUI: sets Orientation; only these keywords are accepted.",
318
+ "values": [
319
+ {
320
+ "name": "row",
321
+ "description": "Orientation: Horizontal"
322
+ },
323
+ {
324
+ "name": "column",
325
+ "description": "Orientation: Vertical"
326
+ }
327
+ ]
328
+ },
329
+ {
330
+ "name": "visibility",
331
+ "description": "WinUI: sets Visibility; only these keywords are accepted.",
332
+ "values": [
333
+ {
334
+ "name": "visible",
335
+ "description": "Visibility: Visible"
336
+ },
337
+ {
338
+ "name": "hidden",
339
+ "description": "Visibility: Collapsed"
340
+ },
341
+ {
342
+ "name": "collapse",
343
+ "description": "Visibility: Collapsed"
344
+ }
345
+ ]
346
+ },
347
+ {
348
+ "name": "pointer-events",
349
+ "description": "WinUI: sets IsHitTestVisible; only these keywords are accepted.",
350
+ "values": [
351
+ {
352
+ "name": "none",
353
+ "description": "IsHitTestVisible: False"
354
+ },
355
+ {
356
+ "name": "auto",
357
+ "description": "IsHitTestVisible: True"
358
+ },
359
+ {
360
+ "name": "all",
361
+ "description": "IsHitTestVisible: True"
362
+ }
363
+ ]
364
+ },
365
+ {
366
+ "name": "color-scheme",
367
+ "description": "WinUI: sets RequestedTheme; only these keywords are accepted.",
368
+ "values": [
369
+ {
370
+ "name": "normal",
371
+ "description": "RequestedTheme: Default"
372
+ },
373
+ {
374
+ "name": "light",
375
+ "description": "RequestedTheme: Light"
376
+ },
377
+ {
378
+ "name": "dark",
379
+ "description": "RequestedTheme: Dark"
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "name": "display",
385
+ "description": "WinUI: sets Visibility; only these keywords are accepted.",
386
+ "values": [
387
+ {
388
+ "name": "none",
389
+ "description": "Visibility: Collapsed"
390
+ },
391
+ {
392
+ "name": "block",
393
+ "description": "Visibility: Visible"
394
+ },
395
+ {
396
+ "name": "inline",
397
+ "description": "Visibility: Visible"
398
+ },
399
+ {
400
+ "name": "inline-block",
401
+ "description": "Visibility: Visible"
402
+ },
403
+ {
404
+ "name": "flex",
405
+ "description": "Visibility: Visible"
406
+ },
407
+ {
408
+ "name": "inline-flex",
409
+ "description": "Visibility: Visible"
410
+ },
411
+ {
412
+ "name": "grid",
413
+ "description": "Visibility: Visible"
414
+ },
415
+ {
416
+ "name": "inline-grid",
417
+ "description": "Visibility: Visible"
418
+ },
419
+ {
420
+ "name": "contents",
421
+ "description": "Visibility: Visible"
422
+ }
423
+ ]
424
+ },
425
+ {
426
+ "name": "font-stretch",
427
+ "description": "WinUI: sets FontStretch; only these keywords are accepted.",
428
+ "values": [
429
+ {
430
+ "name": "ultra-condensed",
431
+ "description": "FontStretch: UltraCondensed"
432
+ },
433
+ {
434
+ "name": "extra-condensed",
435
+ "description": "FontStretch: ExtraCondensed"
436
+ },
437
+ {
438
+ "name": "condensed",
439
+ "description": "FontStretch: Condensed"
440
+ },
441
+ {
442
+ "name": "semi-condensed",
443
+ "description": "FontStretch: SemiCondensed"
444
+ },
445
+ {
446
+ "name": "normal",
447
+ "description": "FontStretch: Normal"
448
+ },
449
+ {
450
+ "name": "semi-expanded",
451
+ "description": "FontStretch: SemiExpanded"
452
+ },
453
+ {
454
+ "name": "expanded",
455
+ "description": "FontStretch: Expanded"
456
+ },
457
+ {
458
+ "name": "extra-expanded",
459
+ "description": "FontStretch: ExtraExpanded"
460
+ },
461
+ {
462
+ "name": "ultra-expanded",
463
+ "description": "FontStretch: UltraExpanded"
464
+ }
465
+ ]
466
+ },
467
+ {
468
+ "name": "direction",
469
+ "description": "WinUI: sets FlowDirection; only these keywords are accepted.",
470
+ "values": [
471
+ {
472
+ "name": "ltr",
473
+ "description": "FlowDirection: LeftToRight"
474
+ },
475
+ {
476
+ "name": "rtl",
477
+ "description": "FlowDirection: RightToLeft"
478
+ }
479
+ ]
480
+ },
481
+ {
482
+ "name": "align-items",
483
+ "description": "WinUI: on a stack panel or grid the build lowers it into the children (each child's align-self or justify-self, or spacer tracks), so it applies to a container written in the component, outside an @media."
484
+ },
485
+ {
486
+ "name": "justify-content",
487
+ "description": "WinUI: on a stack panel or grid the build lowers it into the children (each child's align-self or justify-self, or spacer tracks), so it applies to a container written in the component, outside an @media."
488
+ },
119
489
  {
120
490
  "name": "grid-template-columns",
121
491
  "description": "WinUI: a track is auto, a length or an fr size, and they mix freely; repeat(N, ...) is expanded when building. No WinUI equivalent: repeat(auto-fill|auto-fit, ...), subgrid, masonry, named lines and % tracks (the editor's diagnostics say what to write instead)."
@@ -2,7 +2,8 @@
2
2
  * The VS Code custom data (`css.customData`) for WinUI's CSS dialect, built
3
3
  * from the same tables the translation and the validator read: the `-winui-*`
4
4
  * properties an editor's own CSS checker does not know, and what WinUI allows
5
- * for the properties it limits (grid tracks, units). Written to
5
+ * for the properties it limits (grid tracks, units, the keywords of a property
6
+ * that takes a fixed set). Written to
6
7
  * `vscode-css-data.json` by `scripts/css/export-vscode-css-data.ts`.
7
8
  */
8
9
  export declare function vscodeCssData(): {
@@ -1 +1 @@
1
- {"version":3,"file":"vscode-data.d.ts","sourceRoot":"","sources":["../../../src/css/validate/vscode-data.ts"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH,wBAAgB,aAAa;;;;;;;;;;;;EA0B5B"}
1
+ {"version":3,"file":"vscode-data.d.ts","sourceRoot":"","sources":["../../../src/css/validate/vscode-data.ts"],"names":[],"mappings":"AAoCA;;;;;;;GAOG;AACH,wBAAgB,aAAa;;;;;;;;;;;;EAuC5B"}
@@ -1,17 +1,34 @@
1
1
  import { FONT_FAMILY_NAMES } from "../../components/font-family-name.js";
2
2
  import { LENGTH_UNITS, LengthUnitKind } from "../parse/units.js";
3
+ import { DISCRETE_MEMBERS, discretePropertyOf, discreteValueOf, discreteWordsOf } from "../translate/discrete-properties.js";
3
4
  import { GRID_TRACK_PROPERTIES } from "../translate/grid-track-verdicts.js";
5
+ import { CONTROL_KEYWORDS } from "../translate/text-control-properties.js";
4
6
  import { WINUI_ONLY_PROPERTIES } from "../translate/winui-only-properties.js";
5
7
  const CUSTOM_DATA_VERSION = 1.1;
6
8
  function unitsOf(kind) {
7
9
  return [...LENGTH_UNITS].filter(([, unit]) => unit.kind === kind).map(([name]) => name);
8
10
  }
9
11
  const TRACK_DESCRIPTION = "WinUI: a track is auto, a length or an fr size, and they mix freely; repeat(N, ...) is expanded when building. No WinUI equivalent: repeat(auto-fill|auto-fit, ...), subgrid, masonry, named lines and % tracks (the editor's diagnostics say what to write instead).";
12
+ const LAYOUT_ALIGNMENT_DESCRIPTION = "WinUI: on a stack panel or grid the build lowers it into the children (each child's align-self or justify-self, or spacer tracks), so it applies to a container written in the component, outside an @media.";
13
+ function discreteProperty(member) {
14
+ return {
15
+ name: member,
16
+ description: `WinUI: sets ${discretePropertyOf(member)}; only these keywords are accepted.`,
17
+ values: discreteWordsOf(member).map(word => ({
18
+ name: word,
19
+ description: `${discretePropertyOf(member)}: ${discreteValueOf({
20
+ member,
21
+ word
22
+ })}`
23
+ }))
24
+ };
25
+ }
10
26
  /**
11
27
  * The VS Code custom data (`css.customData`) for WinUI's CSS dialect, built
12
28
  * from the same tables the translation and the validator read: the `-winui-*`
13
29
  * properties an editor's own CSS checker does not know, and what WinUI allows
14
- * for the properties it limits (grid tracks, units). Written to
30
+ * for the properties it limits (grid tracks, units, the keywords of a property
31
+ * that takes a fixed set). Written to
15
32
  * `vscode-css-data.json` by `scripts/css/export-vscode-css-data.ts`.
16
33
  */
17
34
  export function vscodeCssData() {
@@ -34,6 +51,19 @@ export function vscodeCssData() {
34
51
  name: `"${name}"`
35
52
  }))
36
53
  },
54
+ ...DISCRETE_MEMBERS.map(discreteProperty),
55
+ ...[...CONTROL_KEYWORDS].map(([member, spec]) => ({
56
+ name: member,
57
+ description: `WinUI: sets ${spec.property}; only these keywords are accepted.`,
58
+ values: [...spec.choices].map(([word, value]) => ({
59
+ name: word,
60
+ description: `${spec.property}: ${value}`
61
+ }))
62
+ })),
63
+ ...["align-items", "justify-content"].map(name => ({
64
+ name,
65
+ description: LAYOUT_ALIGNMENT_DESCRIPTION
66
+ })),
37
67
  ...[...GRID_TRACK_PROPERTIES].map(name => ({
38
68
  name,
39
69
  description: TRACK_DESCRIPTION
@@ -1 +1 @@
1
- {"version":3,"file":"vscode-data.js","sourceRoot":"","sources":["../../../src/css/validate/vscode-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEhC,SAAS,OAAO,CAAC,IAAoB;IACnC,OAAO,CAAC,GAAG,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;AAC1F,CAAC;AAED,MAAM,iBAAiB,GAAG,uQAAuQ,CAAC;AAElS;;;;;;GAMG;AACH,MAAM,UAAU,aAAa;IAC3B,MAAM,KAAK,GAAG;QACZ,uBAAuB,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAA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IAAI;gBACJ,WAAW,EAAE,iBAAiB;aAC/B,CAAC,CAAC;SACJ;KACF,CAAC;AACJ,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { MediaPlaybackSourceInput } from "../components/convert.js";
2
+ import type { MediaPlayerElement } from "#winui/microsoft/ui/xaml/controls/MediaPlayerElement";
2
3
  import { IMediaPlaybackSource } from "#winui/windows/media/playback/IMediaPlaybackSource";
3
4
  import { MediaPlayer } from "#winui/windows/media/playback/MediaPlayer";
4
5
  declare const PLAYER_EVENTS: readonly ["onBufferingEnded", "onBufferingStarted", "onCurrentStateChanged", "onIsMutedChanged", "onMediaEnded", "onMediaFailed", "onMediaOpened", "onMediaPlayerRateChanged", "onPlaybackMediaMarkerReached", "onSeekCompleted", "onSourceChanged", "onVolumeChanged"];
@@ -27,10 +28,17 @@ export interface MediaPlayerOptions extends PlayerHandlers {
27
28
  * not deliver an event raised there: the handlers in `options` run only
28
29
  * where WinUI raises on the UI thread, so rely on `state` and not on them.
29
30
  * Call it on the UI thread, and `dispose` when the player is no longer wanted.
31
+ * Show it in a MediaPlayerElement with `attachTo(element)`, not with the
32
+ * element's own `setMediaPlayer`: `dispose` then lets the element go first. A
33
+ * closed player still held by an element in a window makes WinUI abort
34
+ * `Window.Close` (E_ABORT), which ends the host when a hot update re-creates
35
+ * the window.
30
36
  */
31
37
  export declare function createMediaPlayer(options?: MediaPlayerOptions): {
32
38
  player: MediaPlayer;
33
39
  state: import("./playback-state.svelte.js").PlaybackState;
40
+ /** Shows the player in `element`, until `dispose`. */
41
+ attachTo(element: MediaPlayerElement): void;
34
42
  dispose(): void;
35
43
  };
36
44
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"media-player.d.ts","sourceRoot":"","sources":["../../src/media/media-player.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAK3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAA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AC;AAGhD,KAAK,cAAc,GAAG;KACnB,IAAI,IAAI,WAAW,CAAC,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;CACzD,CAAC;AAEF,0GAA0G;AAC1G,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,mFAAmF;IACnF,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAElC,wDAAwD;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAKD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,kBAAuB;;;IAuC9D,sDAAsD;sBACpC,kBAAkB;;EAiBvC;AAmBD;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE;IAC/D,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,iCAIA"}
@@ -35,6 +35,11 @@ const PLAIN_KEYS = ["autoPlay", "isLoopingEnabled", "isMuted", "volume", "playba
35
35
  * not deliver an event raised there: the handlers in `options` run only
36
36
  * where WinUI raises on the UI thread, so rely on `state` and not on them.
37
37
  * Call it on the UI thread, and `dispose` when the player is no longer wanted.
38
+ * Show it in a MediaPlayerElement with `attachTo(element)`, not with the
39
+ * element's own `setMediaPlayer`: `dispose` then lets the element go first. A
40
+ * closed player still held by an element in a window makes WinUI abort
41
+ * `Window.Close` (E_ABORT), which ends the host when a hot update re-creates
42
+ * the window.
38
43
  */
39
44
  export function createMediaPlayer(options = {}) {
40
45
  const player = new MediaPlayer();
@@ -66,13 +71,23 @@ export function createMediaPlayer(options = {}) {
66
71
  if (hasSource) {
67
72
  player.source = mediaPlaybackSourceOf(source);
68
73
  }
74
+ const elements = new Set();
69
75
  return {
70
76
  player,
71
77
  state,
78
+ /** Shows the player in `element`, until `dispose`. */
79
+ attachTo(element) {
80
+ element.setMediaPlayer(player);
81
+ elements.add(element);
82
+ },
72
83
  dispose() {
73
84
  for (const unsubscribe of unsubscriptions) {
74
85
  unsubscribe();
75
86
  }
87
+ for (const element of elements) {
88
+ call(element, "setMediaPlayer", null);
89
+ }
90
+ elements.clear();
76
91
  player.close();
77
92
  }
78
93
  };
@@ -1 +1 @@
1
- {"version":3,"file":"media-player.js","sourceRoot":"","sources":["../../src/media/media-player.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAExE,kFAAkF;AAClF,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAC9B,MAAM,aAAa,GAAG,MAAM,CAAC;AAE7B,MAAM,aAAa,GAAG;IACpB,kBAAkB;IAClB,oBAAoB;IACpB,uBAAuB;IACvB,kBAAkB;IAClB,cAAc;IACd,eAAe;IACf,eAAe;IACf,0BAA0B;IAC1B,8BAA8B;IAC9B,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;CACT,CAAC;AAwBX,kFAAkF;AAClF,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,kBAA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AAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,0DAA0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,MAAM,gBAAgB,GAAG,IAAI,CAAC;IAExC,2FAA2F;IAC3F,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CAC/B;AA+nBD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,aAAa;;;EAWlD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,aAAa;;;EAc5D"}
@@ -16,6 +16,10 @@ function round({ value, scale }) {
16
16
  function isGiven(value) {
17
17
  return value !== undefined;
18
18
  }
19
+ // Windows whose component is gone while the application goes on, waiting one
20
+ // tick for the component that replaces it (a hot update re-creates it) to take
21
+ // the same window over; a window nobody takes is closed.
22
+ const orphans = [];
19
23
  class WindowHost {
20
24
  handle;
21
25
  props;
@@ -36,9 +40,10 @@ class WindowHost {
36
40
  isClipApplied = false;
37
41
  isTopApplied = false;
38
42
  hasShown = false;
43
+ isTakenOver;
39
44
  openSize;
40
45
  appliedSize;
41
- constructor({ content, props, titleBar, size }) {
46
+ constructor({ content, props, titleBar, size }, orphan) {
42
47
  this.props = props;
43
48
  this.openSize = size;
44
49
  this.content = content;
@@ -51,9 +56,11 @@ class WindowHost {
51
56
  if (isGiven(appUserModelId)) {
52
57
  joinAppUserModel(appUserModelId);
53
58
  }
54
- const window = new Window();
59
+ const window = orphan ?? new Window();
60
+ this.isTakenOver = orphan !== undefined;
55
61
  this.handle = new WindowHandle(window);
56
- if (isBackgroundRun()) {
62
+ const isNewBackgroundWindow = isBackgroundRun() && !this.isTakenOver;
63
+ if (isNewBackgroundWindow) {
57
64
  keepInBackground(this.handle.appWindow.id.value);
58
65
  }
59
66
  this.handle.guardClose(() => this.isCloseRefused());
@@ -68,7 +75,9 @@ class WindowHost {
68
75
  this.keepInLine(() => this.syncLimits());
69
76
  this.keepInLine(() => this.syncFrame());
70
77
  this.keepInLine(() => this.syncShape());
71
- this.placeFirst();
78
+ if (!this.isTakenOver) {
79
+ this.placeFirst();
80
+ }
72
81
  $effect(() => this.syncSize());
73
82
  this.syncOwner();
74
83
  this.listen();
@@ -76,15 +85,36 @@ class WindowHost {
76
85
  this.show();
77
86
  $effect(() => this.syncVisibility());
78
87
  }
79
- dispose() {
88
+ /**
89
+ * Ends the host. `isClosedLater`: its component is going while the
90
+ * application goes on (a hot update re-creates it). The window is not closed
91
+ * but offered for one tick to the component that replaces it, which takes it
92
+ * over (no relaunch), and closed if nobody does. Closing it during the
93
+ * component's teardown is no option: WinUI aborts Window.Close (E_ABORT).
94
+ */
95
+ dispose(isClosedLater) {
80
96
  this.releaseBackdrop?.();
81
97
  this.releaseBackdrop = null;
82
98
  for (const unsubscribe of this.unsubscribe.splice(0)) {
83
99
  unsubscribe();
84
100
  }
85
101
  this.handle.guardClose(() => false);
102
+ if (isClosedLater) {
103
+ const { window } = this.handle;
104
+ orphans.push(window);
105
+ setTimeout(() => this.closeIfOrphan(window), 0);
106
+ return;
107
+ }
86
108
  this.handle.close();
87
109
  }
110
+ closeIfOrphan(window) {
111
+ const index = orphans.indexOf(window);
112
+ const isOrphan = index !== -1;
113
+ if (isOrphan) {
114
+ orphans.splice(index, 1);
115
+ this.handle.close();
116
+ }
117
+ }
88
118
  // Applied now, so the window opens as it is meant to, and again whenever
89
119
  // what `sync` reads changes.
90
120
  keepInLine(sync) {
@@ -510,7 +540,8 @@ class WindowHost {
510
540
  // them (to reopen where the window was) needs them before the user moves it.
511
541
  show() {
512
542
  const isHidden = this.props.isHidden === true;
513
- if (!isHidden) {
543
+ const isToShow = !isHidden && !this.isTakenOver;
544
+ if (isToShow) {
514
545
  this.showWindow();
515
546
  }
516
547
  this.hasShown = true;
@@ -534,14 +565,14 @@ class WindowHost {
534
565
  * where an effect can be created (a component, or an effect root).
535
566
  */
536
567
  export function attachWindow(options) {
537
- const host = new WindowHost(options);
538
- const forget = onTeardown(() => host.dispose());
568
+ const host = new WindowHost(options, orphans.shift());
569
+ const forget = onTeardown(() => host.dispose(false));
539
570
  host.handle.window.onClosed(forget);
540
571
  return {
541
572
  handle: host.handle,
542
573
  dispose() {
543
574
  forget();
544
- host.dispose();
575
+ host.dispose(true);
545
576
  }
546
577
  };
547
578
  }