@yuneta/gobj-ui 5.0.0 → 5.0.1
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.
- package/README.md +19 -9
- package/package.json +1 -1
- package/src/tabulator.css +53 -4
package/README.md
CHANGED
|
@@ -65,17 +65,23 @@ consumers. They are independent snapshots (no shared git ancestry):
|
|
|
65
65
|
|
|
66
66
|
| Line | Branch | Tag | Layout | Consumed by | How | Status |
|
|
67
67
|
|------|--------|-----|--------|-------------|-----|--------|
|
|
68
|
-
| **v2** | `main` | `2.0.0`+ | `src/` subdir | **
|
|
68
|
+
| **v2** | `main` | `2.0.0`+ | `src/` subdir | **gui_agent**, **gui_treedb** | local `file:` dep on the yunetas submodule | active development |
|
|
69
|
+
| **v2** | `main` | `2.0.0`+ | `src/` subdir | **wattyzer** | published npm `@yuneta/gobj-ui@^5.0.0` (dist-tag `latest`) | active development |
|
|
69
70
|
| **v1** | `v1` | `1.0.1` | `src/` subdir | **estadodelaire**, **hidraulia** | published npm `@yuneta/gobj-ui@^1.0.1` (dist-tag `legacy`) | frozen, maintenance-only |
|
|
70
71
|
|
|
71
72
|
- **v2 / `main`** is the active development line: the declarative shell
|
|
72
73
|
(legacy-stack-free since `3.0.0`). It is embedded as a git submodule in **yunetas** at
|
|
73
|
-
`kernel/js/gobj-ui`, and
|
|
74
|
+
`kernel/js/gobj-ui`, and the in-repo JS yunos
|
|
74
75
|
(**`yunos/js/gui_agent`**, **`yunos/js/gui_treedb`**) consume that checkout as a
|
|
75
|
-
`file:` dependency (`@yuneta/gobj-ui` → `../../../kernel/js/gobj-ui`
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
`file:` dependency (`@yuneta/gobj-ui` → `../../../kernel/js/gobj-ui`), importing
|
|
77
|
+
by package specifier (`@yuneta/gobj-ui/src/*.js`, exports map `"./src/*"`; the
|
|
78
|
+
`index.js` barrel and the vite plugin stay at the package root).
|
|
79
|
+
**wattyzer takes the same line from the registry** (since 2026-07-25): the
|
|
80
|
+
published tarball ships `src/`, `index.js` and the vite plugin, so the import
|
|
81
|
+
specifiers are identical — but library work only reaches it after a
|
|
82
|
+
`npm publish` and a range bump on its side. Two consequences worth knowing:
|
|
83
|
+
a fix cannot be validated in wattyzer before it is released, and wattyzer is
|
|
84
|
+
the consumer that proves the **tarball** is complete, not just the checkout.
|
|
79
85
|
- **v1 / `v1`** is the frozen legacy-only stack (the declarative shell is not on
|
|
80
86
|
this line). It is **published to npm**; estadodelaire and hidraulia depend on
|
|
81
87
|
`@yuneta/gobj-ui@^1.0.0` from the registry. Land only maintenance fixes here,
|
|
@@ -86,10 +92,13 @@ All new feature work lands on `main`/v2.
|
|
|
86
92
|
## Usage
|
|
87
93
|
|
|
88
94
|
```bash
|
|
89
|
-
# v2 (active): clone yunetas with submodules;
|
|
95
|
+
# v2 (active): clone yunetas with submodules; the in-repo yunos pick it up via file:
|
|
90
96
|
git clone --recurse-submodules <yunetas>
|
|
91
97
|
git submodule update --init kernel/js/gobj-ui # yunetas tracks main/v2
|
|
92
98
|
|
|
99
|
+
# v2 from the registry (wattyzer, and any out-of-tree consumer)
|
|
100
|
+
npm install @yuneta/gobj-ui@^5.0.0
|
|
101
|
+
|
|
93
102
|
# v1 (frozen): consumers just install the published package
|
|
94
103
|
npm install @yuneta/gobj-ui@^1.0.0
|
|
95
104
|
```
|
|
@@ -107,8 +116,9 @@ npm test # vitest (v2/main only; v1 has no test target)
|
|
|
107
116
|
```
|
|
108
117
|
|
|
109
118
|
`dist/` is gitignored. v1 consumers get `dist/` from the **published** npm
|
|
110
|
-
tarball; v2
|
|
111
|
-
|
|
119
|
+
tarball; v2 consumers import source files by specifier, whether they resolve
|
|
120
|
+
them from the checkout or from the tarball's `src/`. Rebuild `dist/` to
|
|
121
|
+
validate and before publishing a release.
|
|
112
122
|
|
|
113
123
|
## Components
|
|
114
124
|
|
package/package.json
CHANGED
package/src/tabulator.css
CHANGED
|
@@ -176,6 +176,34 @@
|
|
|
176
176
|
color: var(--bulma-text) !important;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
/* ====================================================================
|
|
180
|
+
* The CELL EDITOR — typography and box, in EVERY theme.
|
|
181
|
+
*
|
|
182
|
+
* Tabulator hands the editor a bare <input>, and a bare form control does
|
|
183
|
+
* not inherit typography: the browser gives it its own default (13.33px
|
|
184
|
+
* Arial), so the value visibly SHRINKS and changes face the moment the cell
|
|
185
|
+
* enters edit mode. The theme also drops the editing cell's padding
|
|
186
|
+
* (`.tabulator-editing {padding: 0}`) and the control brings its own, so
|
|
187
|
+
* the text jumps sideways too. Inherit the font and restore the cell's 4px
|
|
188
|
+
* so entering edit mode changes nothing but the caret.
|
|
189
|
+
* ==================================================================== */
|
|
190
|
+
.tabulator-row .tabulator-cell.tabulator-editing input,
|
|
191
|
+
.tabulator-row .tabulator-cell.tabulator-editing select,
|
|
192
|
+
.tabulator-row .tabulator-cell.tabulator-editing textarea,
|
|
193
|
+
.tabulator .tabulator-header .tabulator-header-filter input,
|
|
194
|
+
.tabulator .tabulator-header .tabulator-header-filter select {
|
|
195
|
+
font-family: inherit;
|
|
196
|
+
font-size: inherit;
|
|
197
|
+
box-sizing: border-box;
|
|
198
|
+
width: 100%;
|
|
199
|
+
padding: 0 4px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.tabulator-row .tabulator-cell.tabulator-editing input,
|
|
203
|
+
.tabulator-row .tabulator-cell.tabulator-editing select {
|
|
204
|
+
height: 100%;
|
|
205
|
+
}
|
|
206
|
+
|
|
179
207
|
/*
|
|
180
208
|
* The CELL EDITOR in dark theme.
|
|
181
209
|
*
|
|
@@ -183,16 +211,22 @@
|
|
|
183
211
|
* browser default: BLACK text on the dark cell — the value disappears the
|
|
184
212
|
* moment you click into it, and comes back when the field loses focus. Same
|
|
185
213
|
* for a header-filter input and for a <select>.
|
|
214
|
+
*
|
|
215
|
+
* `--bulma-body-color` is the DIMMED body text; on the near-black editor
|
|
216
|
+
* wash it reads washed out just when the eye needs it most (you are typing
|
|
217
|
+
* into it). The editing state gets `--bulma-text-strong` plus a wash one
|
|
218
|
+
* step lighter than the row and a link-coloured border, so the open field
|
|
219
|
+
* is the brightest thing in the table.
|
|
186
220
|
*/
|
|
187
221
|
[data-theme=dark] .tabulator-row .tabulator-cell.tabulator-editing input,
|
|
188
222
|
[data-theme=dark] .tabulator-row .tabulator-cell.tabulator-editing select,
|
|
189
223
|
[data-theme=dark] .tabulator-row .tabulator-cell.tabulator-editing textarea,
|
|
190
224
|
[data-theme=dark] .tabulator .tabulator-header .tabulator-header-filter input,
|
|
191
225
|
[data-theme=dark] .tabulator .tabulator-header .tabulator-header-filter select {
|
|
192
|
-
background-color: var(--bulma-
|
|
193
|
-
color: var(--bulma-
|
|
194
|
-
caret-color: var(--bulma-
|
|
195
|
-
border-color: var(--bulma-
|
|
226
|
+
background-color: var(--bulma-grey-darker, #2b2f38);
|
|
227
|
+
color: var(--bulma-text-strong, #f5f6f7) !important;
|
|
228
|
+
caret-color: var(--bulma-text-strong, #f5f6f7);
|
|
229
|
+
border-color: var(--bulma-link, #4a9eff);
|
|
196
230
|
}
|
|
197
231
|
|
|
198
232
|
[data-theme=dark] .tabulator-row .tabulator-cell.tabulator-editing input::placeholder,
|
|
@@ -276,6 +310,21 @@
|
|
|
276
310
|
background-color: var(--bulma-background) !important;
|
|
277
311
|
color: var(--bulma-body-color) !important;
|
|
278
312
|
}
|
|
313
|
+
/* same editor fix as [data-theme=dark] above */
|
|
314
|
+
[data-theme=system] .tabulator-row .tabulator-cell.tabulator-editing input,
|
|
315
|
+
[data-theme=system] .tabulator-row .tabulator-cell.tabulator-editing select,
|
|
316
|
+
[data-theme=system] .tabulator-row .tabulator-cell.tabulator-editing textarea,
|
|
317
|
+
[data-theme=system] .tabulator .tabulator-header .tabulator-header-filter input,
|
|
318
|
+
[data-theme=system] .tabulator .tabulator-header .tabulator-header-filter select {
|
|
319
|
+
background-color: var(--bulma-grey-darker, #2b2f38);
|
|
320
|
+
color: var(--bulma-text-strong, #f5f6f7) !important;
|
|
321
|
+
caret-color: var(--bulma-text-strong, #f5f6f7);
|
|
322
|
+
border-color: var(--bulma-link, #4a9eff);
|
|
323
|
+
}
|
|
324
|
+
[data-theme=system] .tabulator-row .tabulator-cell.tabulator-editing input::placeholder,
|
|
325
|
+
[data-theme=system] .tabulator .tabulator-header .tabulator-header-filter input::placeholder {
|
|
326
|
+
color: var(--bulma-text-weak, #8a8f98);
|
|
327
|
+
}
|
|
279
328
|
[data-theme=system] .tabulator-row.tabulator-selected {
|
|
280
329
|
background-color: var(--bulma-link) !important;
|
|
281
330
|
color: var(--bulma-link-invert) !important;
|