flexdesk 0.4.2 → 0.4.4
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 +24 -0
- package/dist/charts.js +2 -2
- package/dist/{chunk-XKDTIT4Q.js → chunk-4RGQSRMC.js} +2 -2
- package/dist/{chunk-QIU5S2RU.js → chunk-P4AALM3A.js} +2 -2
- package/dist/{chunk-QIU5S2RU.js.map → chunk-P4AALM3A.js.map} +2 -2
- package/dist/tiles.js +2 -2
- package/dist/widgets.js +100 -1
- package/dist/widgets.js.map +4 -4
- package/dist/wm.js +206 -165
- package/dist/wm.js.map +3 -3
- package/package.json +1 -1
- package/src/tiling/tile_breadcrumb.js +9 -8
- package/src/tiling/wm.js +222 -175
- package/src/ui/components/column_fit.js +170 -0
- package/src/ui/components/data_table.js +5 -1
- /package/dist/{chunk-XKDTIT4Q.js.map → chunk-4RGQSRMC.js.map} +0 -0
package/README.md
CHANGED
|
@@ -145,12 +145,36 @@ views of one pane. The float button, Alt+F and the tile menu take only the tab
|
|
|
145
145
|
on screen and leave its siblings in the tile, so the window holds one tab and
|
|
146
146
|
draws no strip. Without it the whole pane floats, strip and all.
|
|
147
147
|
|
|
148
|
+
**Back and the breadcrumb are one rule.** `wm.navigateBack()` (Backspace) and
|
|
149
|
+
`wm.navigateUp(kind, props, { ctx })` (every breadcrumb crumb) share it. With
|
|
150
|
+
`backToOpenList`, a record whose section has a list open closes onto that list;
|
|
151
|
+
otherwise Back walks the taxonomy up and a crumb navigates to its level, in
|
|
152
|
+
place. A crumb naming an entity, such as an epic above a story, opens that
|
|
153
|
+
entity. `navigate` stays the verb for going to exactly a target; use
|
|
154
|
+
`navigateUp` for anything that means "up to this level".
|
|
155
|
+
|
|
156
|
+
A filter or other props passed to `openInPrimary` for a list that is already
|
|
157
|
+
showing are applied to it. A bare open, such as a top-nav click, keeps the tab
|
|
158
|
+
as you left it.
|
|
159
|
+
|
|
148
160
|
**Back in a floating window** always acts on that window, whichever option is
|
|
149
161
|
set. The last click decides: inside a window, Backspace walks that window up;
|
|
150
162
|
anywhere else, it walks the focused tile as before. With `backToOpenList`, a
|
|
151
163
|
record in a window closes onto an open list of its section, first among the
|
|
152
164
|
window's own tabs and then in any tile of its desktop.
|
|
153
165
|
|
|
166
|
+
### Column sizing
|
|
167
|
+
|
|
168
|
+
`fitColumns(columns, avail)` (from `@flexdesk/widgets`) turns per-column
|
|
169
|
+
measurements into widths. Pass each column's widest cell (`natural`), the width
|
|
170
|
+
most cells fit (`typical`), the header label (`header`) and any user-dragged
|
|
171
|
+
width (`pinned`). Short columns such as ids, dates and statuses keep their full
|
|
172
|
+
values, and free-text columns (`text`, or anything 240px and wider) take the
|
|
173
|
+
rest. When space runs short, short columns lose their rare outliers first,
|
|
174
|
+
then text shrinks to a floor. The widths are fractional and add up to `avail`
|
|
175
|
+
exactly whenever the floors fit. `DataTable` does not use it yet; an embedder
|
|
176
|
+
that measures its own columns can.
|
|
177
|
+
|
|
154
178
|
## The host port
|
|
155
179
|
|
|
156
180
|
FlexDesk never touches `pywebview`, `fetch`, `localStorage` or the filesystem. It
|
package/dist/charts.js
CHANGED
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
setPlotlySource,
|
|
40
40
|
uid,
|
|
41
41
|
updateChart
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-4RGQSRMC.js";
|
|
43
43
|
import {
|
|
44
44
|
createRafResizeObserver
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-P4AALM3A.js";
|
|
46
46
|
import {
|
|
47
47
|
ManagedWindow
|
|
48
48
|
} from "./chunk-LH5TSOZW.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DataTable,
|
|
3
3
|
createRafResizeObserver
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P4AALM3A.js";
|
|
5
5
|
import {
|
|
6
6
|
ManagedWindow
|
|
7
7
|
} from "./chunk-LH5TSOZW.js";
|
|
@@ -2370,4 +2370,4 @@ export {
|
|
|
2370
2370
|
openPlotPopoutWindow,
|
|
2371
2371
|
openRawTracesWindow
|
|
2372
2372
|
};
|
|
2373
|
-
//# sourceMappingURL=chunk-
|
|
2373
|
+
//# sourceMappingURL=chunk-4RGQSRMC.js.map
|
|
@@ -1133,7 +1133,7 @@ var DataTable = class {
|
|
|
1133
1133
|
const isServerSide = typeof onPageChange === "function";
|
|
1134
1134
|
const processedRows = isServerSide ? rows : this._getProcessedRows();
|
|
1135
1135
|
const offset = isServerSide ? configOffset || 0 : this._state.offset;
|
|
1136
|
-
const pageRows = isServerSide ? processedRows : processedRows.slice(offset, offset + pageSize);
|
|
1136
|
+
const pageRows = isServerSide || !this.config.pagination ? processedRows : processedRows.slice(offset, offset + pageSize);
|
|
1137
1137
|
const table = document.createElement("table");
|
|
1138
1138
|
table.className = readonly ? "twm-preview-table twm-preview-table--readonly" : "twm-preview-table";
|
|
1139
1139
|
table.tabIndex = 0;
|
|
@@ -2065,4 +2065,4 @@ export {
|
|
|
2065
2065
|
createRafResizeObserver,
|
|
2066
2066
|
DataTable
|
|
2067
2067
|
};
|
|
2068
|
-
//# sourceMappingURL=chunk-
|
|
2068
|
+
//# sourceMappingURL=chunk-P4AALM3A.js.map
|