@gjsify/adwaita-web 0.59.1 → 0.61.0

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 (55) hide show
  1. package/README.md +11 -0
  2. package/dist/adwaita-web.css +4 -0
  3. package/dist/adwaita-web.css.map +1 -1
  4. package/lib/types/elements/gtk-button.d.ts +13 -0
  5. package/lib/types/elements/gtk-drop-down.d.ts +4 -0
  6. package/lib/types/elements/gtk-label.d.ts +4 -0
  7. package/lib/types/elements/gtk-text-view.d.ts +15 -0
  8. package/lib/types/file-chooser-host.d.ts +55 -0
  9. package/lib/types/file-chooser.spec.d.ts +1 -0
  10. package/lib/types/gtk-platform.spec.d.ts +1 -0
  11. package/lib/types/namespace/adw.d.ts +1 -0
  12. package/lib/types/namespace/gdk.d.ts +2 -0
  13. package/lib/types/namespace/gio.d.ts +3 -0
  14. package/lib/types/namespace/glib.d.ts +1 -0
  15. package/lib/types/namespace/gtk-enums.d.ts +22 -0
  16. package/lib/types/namespace/gtk-platform.d.ts +13 -0
  17. package/lib/types/namespace/gtk.d.ts +4 -1
  18. package/lib/types/platform-host.d.ts +2 -0
  19. package/lib/types/registered-styles.d.ts +2 -0
  20. package/lib/types/style-manager.d.ts +7 -0
  21. package/lib/types/styles.generated.d.ts +1 -1
  22. package/lib/types/template-classes.d.ts +2 -0
  23. package/lib/types/widget-members.spec.d.ts +1 -0
  24. package/package.json +23 -10
  25. package/scss/_viewport.scss +9 -0
  26. package/src/capabilities.mjs +1 -4
  27. package/src/construct-vectors.spec.ts +10 -1
  28. package/src/elements/gtk-button.ts +34 -0
  29. package/src/elements/gtk-drop-down.ts +10 -0
  30. package/src/elements/gtk-label.ts +10 -0
  31. package/src/elements/gtk-text-view.ts +40 -0
  32. package/src/file-chooser-host.ts +421 -0
  33. package/src/file-chooser.spec.ts +376 -0
  34. package/src/gobject-door.ts +15 -2
  35. package/src/gobject-elements.ts +4 -0
  36. package/src/gtk-drop-down.spec.ts +11 -0
  37. package/src/gtk-label.spec.ts +12 -0
  38. package/src/gtk-platform.spec.ts +19 -0
  39. package/src/gtk-text-view.spec.ts +22 -0
  40. package/src/namespace/adw.ts +1 -0
  41. package/src/namespace/gdk.ts +18 -1
  42. package/src/namespace/gio.ts +20 -2
  43. package/src/namespace/glib.ts +6 -1
  44. package/src/namespace/gtk-enums.ts +7 -2
  45. package/src/namespace/gtk-platform.ts +16 -0
  46. package/src/namespace/gtk.ts +12 -1
  47. package/src/platform-host.ts +88 -0
  48. package/src/registered-styles.ts +73 -0
  49. package/src/shared-tree-builder.ts +46 -2
  50. package/src/shared-trees.spec.ts +36 -0
  51. package/src/style-manager.ts +10 -1
  52. package/src/styles.generated.ts +1 -1
  53. package/src/template-classes.ts +6 -0
  54. package/src/test.browser.mts +6 -0
  55. package/src/widget-members.spec.ts +147 -0
package/README.md CHANGED
@@ -185,6 +185,17 @@ Chromium 149 to `rgb(0, 117, 255)`: both blue, neither the desktop's accent. A p
185
185
  cannot tell such a default from a real accent, which is why the server handoff ranks
186
186
  above it.
187
187
 
188
+ ## Platform members
189
+
190
+ `Gtk.CssProvider`, `Gtk.StyleContext`, `Gtk.Settings`, `Gtk.IconTheme`, `Gtk.EventControllerKey`,
191
+ `Gtk.show_uri`, `Gdk.KEY_*`, `Adw.ColorScheme` and the web `Gtk.License` are ONE behaviour in
192
+ `adwaita-core/src/gtk-platform.ts`. Each port only supplies a `PlatformHost` (`src/platform-host.ts`):
193
+ a `<style>` element, `window.open` and a keydown listener on the web; `Application.addCss`, an Intent
194
+ and an `OnKeyListener` on NativeScript, where iOS never delivers keys.
195
+
196
+ `Gio.Settings` is `@gjsify/app-settings` (ADR 0099), an OPTIONAL peer of both ports (Tier 3, ADR 0003
197
+ rule 1).
198
+
188
199
  ## Icons, and the ones the stylesheet does not ship
189
200
 
190
201
  A `<gtk-image icon-name="go-next">` is a CSS mask: the box takes its colour from
@@ -7199,6 +7199,10 @@ gtk-viewport::-webkit-scrollbar {
7199
7199
  gtk-viewport > * {
7200
7200
  flex: none;
7201
7201
  }
7202
+ gtk-viewport > gtk-source-view {
7203
+ flex: 1 1 auto;
7204
+ align-self: stretch;
7205
+ }
7202
7206
 
7203
7207
  gtk-scrolled-window {
7204
7208
  position: relative;