@akiojin/gwt 9.0.3 → 9.1.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 (66) hide show
  1. package/README.ja.md +106 -146
  2. package/README.md +103 -143
  3. package/bin/{gwt.js → gwt.cjs} +1 -1
  4. package/package.json +6 -6
  5. package/scripts/check-release-flow.sh +2 -8
  6. package/scripts/postinstall.js +17 -7
  7. package/scripts/run-local-backend-tests-on-commit.sh +6 -12
  8. package/scripts/test-all.sh +1 -5
  9. package/scripts/check-e2e-coverage-threshold.mjs +0 -238
  10. package/scripts/run-local-e2e-coverage-on-commit.sh +0 -69
  11. package/scripts/run-local-e2e-on-commit.sh +0 -60
  12. package/scripts/verify-ci-node-toolchain.sh +0 -76
  13. package/scripts/voice-eval.sh +0 -48
  14. package/vendor/ratatui-core/src/backend/test.rs +0 -1077
  15. package/vendor/ratatui-core/src/backend.rs +0 -405
  16. package/vendor/ratatui-core/src/buffer/assert.rs +0 -71
  17. package/vendor/ratatui-core/src/buffer/buffer.rs +0 -1388
  18. package/vendor/ratatui-core/src/buffer/cell.rs +0 -377
  19. package/vendor/ratatui-core/src/buffer.rs +0 -9
  20. package/vendor/ratatui-core/src/layout/alignment.rs +0 -89
  21. package/vendor/ratatui-core/src/layout/constraint.rs +0 -526
  22. package/vendor/ratatui-core/src/layout/direction.rs +0 -63
  23. package/vendor/ratatui-core/src/layout/flex.rs +0 -212
  24. package/vendor/ratatui-core/src/layout/layout.rs +0 -2838
  25. package/vendor/ratatui-core/src/layout/margin.rs +0 -79
  26. package/vendor/ratatui-core/src/layout/offset.rs +0 -66
  27. package/vendor/ratatui-core/src/layout/position.rs +0 -253
  28. package/vendor/ratatui-core/src/layout/rect/iter.rs +0 -356
  29. package/vendor/ratatui-core/src/layout/rect/ops.rs +0 -136
  30. package/vendor/ratatui-core/src/layout/rect.rs +0 -1114
  31. package/vendor/ratatui-core/src/layout/size.rs +0 -147
  32. package/vendor/ratatui-core/src/layout.rs +0 -333
  33. package/vendor/ratatui-core/src/lib.rs +0 -82
  34. package/vendor/ratatui-core/src/style/anstyle.rs +0 -348
  35. package/vendor/ratatui-core/src/style/color.rs +0 -788
  36. package/vendor/ratatui-core/src/style/palette/material.rs +0 -608
  37. package/vendor/ratatui-core/src/style/palette/tailwind.rs +0 -653
  38. package/vendor/ratatui-core/src/style/palette.rs +0 -6
  39. package/vendor/ratatui-core/src/style/palette_conversion.rs +0 -82
  40. package/vendor/ratatui-core/src/style/stylize.rs +0 -668
  41. package/vendor/ratatui-core/src/style.rs +0 -1069
  42. package/vendor/ratatui-core/src/symbols/bar.rs +0 -51
  43. package/vendor/ratatui-core/src/symbols/block.rs +0 -51
  44. package/vendor/ratatui-core/src/symbols/border.rs +0 -709
  45. package/vendor/ratatui-core/src/symbols/braille.rs +0 -21
  46. package/vendor/ratatui-core/src/symbols/half_block.rs +0 -3
  47. package/vendor/ratatui-core/src/symbols/line.rs +0 -259
  48. package/vendor/ratatui-core/src/symbols/marker.rs +0 -82
  49. package/vendor/ratatui-core/src/symbols/merge.rs +0 -748
  50. package/vendor/ratatui-core/src/symbols/pixel.rs +0 -30
  51. package/vendor/ratatui-core/src/symbols/scrollbar.rs +0 -46
  52. package/vendor/ratatui-core/src/symbols/shade.rs +0 -5
  53. package/vendor/ratatui-core/src/symbols.rs +0 -15
  54. package/vendor/ratatui-core/src/terminal/frame.rs +0 -192
  55. package/vendor/ratatui-core/src/terminal/terminal.rs +0 -926
  56. package/vendor/ratatui-core/src/terminal/viewport.rs +0 -58
  57. package/vendor/ratatui-core/src/terminal.rs +0 -40
  58. package/vendor/ratatui-core/src/text/grapheme.rs +0 -84
  59. package/vendor/ratatui-core/src/text/line.rs +0 -1678
  60. package/vendor/ratatui-core/src/text/masked.rs +0 -149
  61. package/vendor/ratatui-core/src/text/span.rs +0 -904
  62. package/vendor/ratatui-core/src/text/text.rs +0 -1434
  63. package/vendor/ratatui-core/src/text.rs +0 -64
  64. package/vendor/ratatui-core/src/widgets/stateful_widget.rs +0 -193
  65. package/vendor/ratatui-core/src/widgets/widget.rs +0 -174
  66. package/vendor/ratatui-core/src/widgets.rs +0 -9
@@ -1,212 +0,0 @@
1
- use strum::{Display, EnumIs, EnumString};
2
-
3
- #[expect(unused_imports)]
4
- use crate::layout::Constraint;
5
-
6
- /// Defines the options for layout flex justify content in a container.
7
- ///
8
- /// This enumeration controls the distribution of space when layout constraints are met and there
9
- /// is excess space available. The `Flex` option is used with [`Layout`](crate::layout::Layout) to
10
- /// control how extra space is distributed among layout segments, which is particularly useful for
11
- /// creating responsive layouts that adapt to different terminal sizes.
12
- ///
13
- /// Available options:
14
- ///
15
- /// - `Legacy`: Fills the available space within the container, putting excess space into the last
16
- /// element.
17
- /// - `Start`: Aligns items to the start of the container.
18
- /// - `End`: Aligns items to the end of the container.
19
- /// - `Center`: Centers items within the container.
20
- /// - `SpaceBetween`: Adds excess space between each element.
21
- /// - `SpaceAround`: Adds excess space around each element.
22
- ///
23
- /// For comprehensive layout documentation and examples, see the [`layout`](crate::layout) module.
24
- #[derive(Copy, Debug, Default, Display, EnumString, Clone, Eq, PartialEq, Hash, EnumIs)]
25
- #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
26
- pub enum Flex {
27
- /// Fills the available space within the container, putting excess space into the last
28
- /// constraint of the lowest priority. This matches the default behavior of ratatui and tui
29
- /// applications without [`Flex`]
30
- ///
31
- /// The following examples illustrate the allocation of excess in various combinations of
32
- /// constraints. As a refresher, the priorities of constraints are as follows:
33
- ///
34
- /// 1. [`Constraint::Min`]
35
- /// 2. [`Constraint::Max`]
36
- /// 3. [`Constraint::Length`]
37
- /// 4. [`Constraint::Percentage`]
38
- /// 5. [`Constraint::Ratio`]
39
- /// 6. [`Constraint::Fill`]
40
- ///
41
- /// When every constraint is `Length`, the last element gets the excess.
42
- ///
43
- /// ```plain
44
- /// <----------------------------------- 80 px ------------------------------------>
45
- /// ┌──────20 px───────┐┌──────20 px───────┐┌────────────────40 px─────────────────┐
46
- /// │ Length(20) ││ Length(20) ││ Length(20) │
47
- /// └──────────────────┘└──────────────────┘└──────────────────────────────────────┘
48
- /// ^^^^^^^^^^^^^^^^ EXCESS ^^^^^^^^^^^^^^^^
49
- /// ```
50
- ///
51
- /// Fill constraints have the lowest priority amongst all the constraints and hence
52
- /// will always take up any excess space available.
53
- ///
54
- /// ```plain
55
- /// <----------------------------------- 80 px ------------------------------------>
56
- /// ┌──────20 px───────┐┌──────20 px───────┐┌──────20 px───────┐┌──────20 px───────┐
57
- /// │ Fill(0) ││ Max(20) ││ Length(20) ││ Length(20) │
58
- /// └──────────────────┘└──────────────────┘└──────────────────┘└──────────────────┘
59
- /// ^^^^^^ EXCESS ^^^^^^
60
- /// ```
61
- ///
62
- /// # Examples
63
- ///
64
- /// ```plain
65
- /// <------------------------------------80 px------------------------------------->
66
- /// ┌──────────────────────────60 px───────────────────────────┐┌──────20 px───────┐
67
- /// │ Min(20) ││ Max(20) │
68
- /// └──────────────────────────────────────────────────────────┘└──────────────────┘
69
- ///
70
- /// <------------------------------------80 px------------------------------------->
71
- /// ┌────────────────────────────────────80 px─────────────────────────────────────┐
72
- /// │ Max(20) │
73
- /// └──────────────────────────────────────────────────────────────────────────────┘
74
- /// ```
75
- Legacy,
76
-
77
- /// Aligns items to the start of the container.
78
- ///
79
- /// # Examples
80
- ///
81
- /// ```plain
82
- /// <------------------------------------80 px------------------------------------->
83
- /// ┌────16 px─────┐┌──────20 px───────┐┌──────20 px───────┐
84
- /// │Percentage(20)││ Length(20) ││ Fixed(20) │
85
- /// └──────────────┘└──────────────────┘└──────────────────┘
86
- ///
87
- /// <------------------------------------80 px------------------------------------->
88
- /// ┌──────20 px───────┐┌──────20 px───────┐
89
- /// │ Max(20) ││ Max(20) │
90
- /// └──────────────────┘└──────────────────┘
91
- ///
92
- /// <------------------------------------80 px------------------------------------->
93
- /// ┌──────20 px───────┐
94
- /// │ Max(20) │
95
- /// └──────────────────┘
96
- /// ```
97
- #[default]
98
- Start,
99
-
100
- /// Aligns items to the end of the container.
101
- ///
102
- /// # Examples
103
- ///
104
- /// ```plain
105
- /// <------------------------------------80 px------------------------------------->
106
- /// ┌────16 px─────┐┌──────20 px───────┐┌──────20 px───────┐
107
- /// │Percentage(20)││ Length(20) ││ Length(20) │
108
- /// └──────────────┘└──────────────────┘└──────────────────┘
109
- ///
110
- /// <------------------------------------80 px------------------------------------->
111
- /// ┌──────20 px───────┐┌──────20 px───────┐
112
- /// │ Max(20) ││ Max(20) │
113
- /// └──────────────────┘└──────────────────┘
114
- ///
115
- /// <------------------------------------80 px------------------------------------->
116
- /// ┌──────20 px───────┐
117
- /// │ Max(20) │
118
- /// └──────────────────┘
119
- /// ```
120
- End,
121
-
122
- /// Centers items within the container.
123
- ///
124
- /// # Examples
125
- ///
126
- /// ```plain
127
- /// <------------------------------------80 px------------------------------------->
128
- /// ┌────16 px─────┐┌──────20 px───────┐┌──────20 px───────┐
129
- /// │Percentage(20)││ Length(20) ││ Length(20) │
130
- /// └──────────────┘└──────────────────┘└──────────────────┘
131
- ///
132
- /// <------------------------------------80 px------------------------------------->
133
- /// ┌──────20 px───────┐┌──────20 px───────┐
134
- /// │ Max(20) ││ Max(20) │
135
- /// └──────────────────┘└──────────────────┘
136
- ///
137
- /// <------------------------------------80 px------------------------------------->
138
- /// ┌──────20 px───────┐
139
- /// │ Max(20) │
140
- /// └──────────────────┘
141
- /// ```
142
- Center,
143
-
144
- /// Adds excess space between each element.
145
- ///
146
- /// # Examples
147
- ///
148
- /// ```plain
149
- /// <------------------------------------80 px------------------------------------->
150
- /// ┌────16 px─────┐ ┌──────20 px───────┐ ┌──────20 px───────┐
151
- /// │Percentage(20)│ │ Length(20) │ │ Length(20) │
152
- /// └──────────────┘ └──────────────────┘ └──────────────────┘
153
- ///
154
- /// <------------------------------------80 px------------------------------------->
155
- /// ┌──────20 px───────┐ ┌──────20 px───────┐
156
- /// │ Max(20) │ │ Max(20) │
157
- /// └──────────────────┘ └──────────────────┘
158
- ///
159
- /// <------------------------------------80 px------------------------------------->
160
- /// ┌────────────────────────────────────80 px─────────────────────────────────────┐
161
- /// │ Max(20) │
162
- /// └──────────────────────────────────────────────────────────────────────────────┘
163
- /// ```
164
- SpaceBetween,
165
-
166
- /// Evenly distributes excess space between all elements, including before the first and after
167
- /// the last.
168
- ///
169
- /// # Examples
170
- ///
171
- /// ```plain
172
- /// <------------------------------------80 px------------------------------------->
173
- /// ┌────16 px─────┐ ┌──────20 px───────┐ ┌──────20 px───────┐
174
- /// │Percentage(20)│ │ Length(20) │ │ Length(20) │
175
- /// └──────────────┘ └──────────────────┘ └──────────────────┘
176
- ///
177
- /// <------------------------------------80 px------------------------------------->
178
- /// ┌──────20 px───────┐ ┌──────20 px───────┐
179
- /// │ Max(20) │ │ Max(20) │
180
- /// └──────────────────┘ └──────────────────┘
181
- ///
182
- /// <------------------------------------80 px------------------------------------->
183
- /// ┌──────20 px───────┐
184
- /// │ Max(20) │
185
- /// └──────────────────┘
186
- /// ```
187
- SpaceEvenly,
188
-
189
- /// Adds excess space around each element.
190
- ///
191
- /// # Examples
192
- ///
193
- /// ```plain
194
- /// <------------------------------------80 px------------------------------------->
195
- /// ┌────16 px─────┐ ┌──────20 px───────┐ ┌──────20 px───────┐
196
- /// │Percentage(20)│ │ Length(20) │ │ Length(20) │
197
- /// └──────────────┘ └──────────────────┘ └──────────────────┘
198
- ///
199
- /// <------------------------------------80 px------------------------------------->
200
- /// ┌──────20 px───────┐ ┌──────20 px───────┐
201
- /// │ Max(20) │ │ Max(20) │
202
- /// └──────────────────┘ └──────────────────┘
203
- ///
204
- /// <------------------------------------80 px------------------------------------->
205
- /// ┌──────20 px───────┐
206
- /// │ Max(20) │
207
- /// └──────────────────┘
208
- /// ```
209
- SpaceAround,
210
- }
211
- #[cfg(test)]
212
- mod tests {}