@yuneta/gobj-ui 7.27.26 → 7.27.28
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 +90 -30
- package/dist/gobj-ui.cjs.js +1662 -971
- package/dist/gobj-ui.es.js +1662 -971
- package/package.json +1 -1
- package/src/c_yui_gclass.css +104 -22
- package/src/c_yui_gclass.js +413 -94
- package/src/c_yui_gobj_tree_js.js +470 -148
- package/src/gclass_traces.wiring.test.js +241 -0
- package/src/gobj_tree_model.js +51 -10
- package/src/gobj_tree_model.test.js +14 -3
- package/src/gobj_tree_remote.wiring.test.js +98 -7
- package/src/yui_gclass_view.js +11 -0
package/package.json
CHANGED
package/src/c_yui_gclass.css
CHANGED
|
@@ -16,6 +16,12 @@
|
|
|
16
16
|
* picked to stay legible on both grounds.
|
|
17
17
|
*/
|
|
18
18
|
.C_YUI_GCLASS {
|
|
19
|
+
/* The layout follows the VIEWER's width, not the screen's: a 720px
|
|
20
|
+
* window on a 1440px screen is a narrow viewer, and a media query
|
|
21
|
+
* gave it two columns of 330px with the attrs table scrolling
|
|
22
|
+
* sideways inside one of them. */
|
|
23
|
+
container-type: inline-size;
|
|
24
|
+
container-name: gclass-viewer;
|
|
19
25
|
--gclass-attrs: #2D4EC8;
|
|
20
26
|
--gclass-cmds: #0E6F63;
|
|
21
27
|
--gclass-fsm: #6B4FA8;
|
|
@@ -75,19 +81,42 @@
|
|
|
75
81
|
}
|
|
76
82
|
|
|
77
83
|
/*
|
|
78
|
-
* The header: the name,
|
|
79
|
-
*
|
|
84
|
+
* The header: the name, how many gobjs of it there are, the instance
|
|
85
|
+
* the reader came from and its state; then the methods.
|
|
80
86
|
*/
|
|
81
87
|
.C_YUI_GCLASS .GCLASS_HEAD {
|
|
82
88
|
display: flex;
|
|
83
|
-
flex-
|
|
84
|
-
|
|
85
|
-
gap: .35rem .6rem;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
gap: .4rem;
|
|
86
91
|
padding-bottom: .6rem;
|
|
87
92
|
margin-bottom: .8rem;
|
|
88
93
|
border-bottom: 1px solid var(--gclass-rule);
|
|
89
94
|
}
|
|
90
95
|
|
|
96
|
+
.C_YUI_GCLASS .GCLASS_HEAD_ROW {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-wrap: wrap;
|
|
99
|
+
align-items: baseline;
|
|
100
|
+
gap: .35rem .6rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.C_YUI_GCLASS .GCLASS_HEAD_LABEL {
|
|
104
|
+
font-size: .64rem;
|
|
105
|
+
font-weight: 700;
|
|
106
|
+
letter-spacing: .12em;
|
|
107
|
+
text-transform: uppercase;
|
|
108
|
+
color: var(--gclass-muted);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.C_YUI_GCLASS .GCLASS_CURRENT_INSTANCE {
|
|
112
|
+
font-family: var(--gclass-mono);
|
|
113
|
+
margin-right: .35rem;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.C_YUI_GCLASS .GCLASS_CURRENT_INSTANCE::after {
|
|
117
|
+
content: ":";
|
|
118
|
+
}
|
|
119
|
+
|
|
91
120
|
.C_YUI_GCLASS .GCLASS_NAME {
|
|
92
121
|
font-family: var(--gclass-mono);
|
|
93
122
|
font-size: 1.05rem;
|
|
@@ -109,38 +138,34 @@
|
|
|
109
138
|
}
|
|
110
139
|
|
|
111
140
|
/*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* the
|
|
141
|
+
* The SHORT zones (the machine, the trace levels) side by side when
|
|
142
|
+
* the viewer has room for two; the long tables (attrs, commands)
|
|
143
|
+
* always across the whole width, where a description fits beside its
|
|
144
|
+
* name. In graph mode the machine takes the width and its pair goes
|
|
145
|
+
* under it.
|
|
116
146
|
*/
|
|
117
|
-
.C_YUI_GCLASS .
|
|
147
|
+
.C_YUI_GCLASS .GCLASS_PAIR {
|
|
118
148
|
display: grid;
|
|
119
149
|
grid-template-columns: minmax(0, 1fr);
|
|
120
150
|
gap: 1.2rem;
|
|
151
|
+
margin-bottom: 1.2rem;
|
|
152
|
+
align-items: start;
|
|
121
153
|
}
|
|
122
154
|
|
|
123
|
-
@
|
|
124
|
-
.C_YUI_GCLASS .
|
|
125
|
-
grid-template-columns: minmax(0,
|
|
155
|
+
@container gclass-viewer (min-width: 70rem) {
|
|
156
|
+
.C_YUI_GCLASS .GCLASS_PAIR {
|
|
157
|
+
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
|
|
126
158
|
}
|
|
127
159
|
|
|
128
|
-
|
|
129
|
-
* what is left stacks in one column. */
|
|
130
|
-
.C_YUI_GCLASS .GCLASS_COLS.is-stacked {
|
|
160
|
+
.C_YUI_GCLASS .GCLASS_PAIR.is-stacked {
|
|
131
161
|
grid-template-columns: minmax(0, 1fr);
|
|
132
162
|
}
|
|
133
163
|
}
|
|
134
164
|
|
|
135
165
|
.C_YUI_GCLASS .GCLASS_FULL {
|
|
136
|
-
margin-bottom: 1.2rem;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.C_YUI_GCLASS .GCLASS_COL {
|
|
140
166
|
display: flex;
|
|
141
167
|
flex-direction: column;
|
|
142
|
-
gap: 1.
|
|
143
|
-
min-width: 0;
|
|
168
|
+
gap: 1.2rem;
|
|
144
169
|
}
|
|
145
170
|
|
|
146
171
|
/*
|
|
@@ -270,6 +295,56 @@
|
|
|
270
295
|
|
|
271
296
|
.C_YUI_GCLASS .GCLASS_CELL_TYPE { white-space: nowrap; }
|
|
272
297
|
|
|
298
|
+
/* The flags of one attr on ONE line: wrapped, each one took a line
|
|
299
|
+
* and every row with two flags was twice as tall as its neighbours. */
|
|
300
|
+
.C_YUI_GCLASS .GCLASS_CELL_FLAGS { white-space: nowrap; }
|
|
301
|
+
|
|
302
|
+
.C_YUI_GCLASS .GCLASS_CELL_BOX {
|
|
303
|
+
width: 1%;
|
|
304
|
+
text-align: center;
|
|
305
|
+
white-space: nowrap;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.C_YUI_GCLASS .GCLASS_TRACE_GROUP td {
|
|
309
|
+
padding-top: .6rem;
|
|
310
|
+
font-size: .64rem;
|
|
311
|
+
font-weight: 700;
|
|
312
|
+
letter-spacing: .12em;
|
|
313
|
+
text-transform: uppercase;
|
|
314
|
+
color: var(--gclass-muted);
|
|
315
|
+
border-bottom: 0;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.C_YUI_GCLASS .GCLASS_TRACE_ORIGIN {
|
|
319
|
+
margin-left: .45rem;
|
|
320
|
+
font-weight: 400;
|
|
321
|
+
color: var(--gclass-muted);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.C_YUI_GCLASS .GCLASS_TRACES_NOTE {
|
|
325
|
+
margin: .45rem 0 .3rem;
|
|
326
|
+
font-size: .76rem;
|
|
327
|
+
color: var(--gclass-muted);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.C_YUI_GCLASS .GCLASS_SHOW_ALL {
|
|
331
|
+
margin-top: .5rem;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.C_YUI_GCLASS .GCLASS_PUBLISHED {
|
|
335
|
+
width: auto;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.C_YUI_GCLASS .GCLASS_PUB_FLAGS .GCLASS_CHIP {
|
|
339
|
+
background: none;
|
|
340
|
+
padding: 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.C_YUI_GCLASS .GCLASS_PUB_FLAGS .GCLASS_CHIP + .GCLASS_CHIP::before {
|
|
344
|
+
content: "· ";
|
|
345
|
+
color: var(--gclass-muted);
|
|
346
|
+
}
|
|
347
|
+
|
|
273
348
|
.C_YUI_GCLASS .GCLASS_CMD_SECTION td {
|
|
274
349
|
padding-top: .7rem;
|
|
275
350
|
font-size: .64rem;
|
|
@@ -475,6 +550,13 @@
|
|
|
475
550
|
width: auto;
|
|
476
551
|
}
|
|
477
552
|
|
|
553
|
+
/* The same mark the matrix draws, in the colour it draws it. */
|
|
554
|
+
.C_YUI_GCLASS .GCLASS_LEGEND_SWATCH.is-unnamed {
|
|
555
|
+
border-color: transparent;
|
|
556
|
+
color: var(--gclass-fsm);
|
|
557
|
+
width: auto;
|
|
558
|
+
}
|
|
559
|
+
|
|
478
560
|
.C_YUI_GCLASS .GCLASS_PUB_EVENT { color: var(--gclass-cmds); }
|
|
479
561
|
|
|
480
562
|
/*
|