flexdesk 0.6.3 → 0.8.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.
package/css/base.css CHANGED
@@ -547,6 +547,18 @@ body.twm-dt-col-resizing {
547
547
  .twm-preview-table.twm-dt-measuring .twm-data-table__filter-row {
548
548
  display: none !important;
549
549
  }
550
+ /* 0.7.0 `filterKinds`: a filter row holding a CONTROL stays in the measure,
551
+ * its text boxes out of it, and each control at its NARROWEST (the widest
552
+ * chip) — so a column is never narrower than one of its chips. */
553
+ .twm-preview-table.twm-dt-measuring .twm-data-table__filter-row.twm-data-table__filter-row--controls {
554
+ display: table-row !important;
555
+ }
556
+ .twm-preview-table.twm-dt-measuring .twm-data-table__filter-row--controls .twm-data-table__filter-wrapper {
557
+ display: none !important;
558
+ }
559
+ .twm-preview-table.twm-dt-measuring th.data-table__filter-cell--control > * {
560
+ width: min-content !important;
561
+ }
550
562
  /* ── C10. The virtual window (`DataTable` with `virtualize`) ─────────────
551
563
  * The column track is a `<colgroup>` (see `_createTable`), so it is the
552
564
  * `<col>` widths the measuring pass has to lift — the same `!important` it
@@ -752,6 +764,145 @@ body.twm-dt-col-resizing {
752
764
  font-size: 16px;
753
765
  line-height: 1;
754
766
  }
767
+ /* ── 0.7.0 DataTable options. Each rule below matches only a class a 0.7.0
768
+ * option sets, so a table that asks for none of them is styled exactly as in
769
+ * 0.6. ─────────────────────────────────────────────────────────────────── */
770
+ /* `rowDetail` — the toggle. Its chevron is drawn by CSS from the icon font
771
+ * (the button carries its class), so the cell's text, its clipped-cell
772
+ * tooltip and a copy stay the cell's own; turned down while open. Negative
773
+ * block margins on a line height of 1: it cannot make its row taller. */
774
+ .twm-preview-table td .twm-dt-detail-toggle {
775
+ display: inline-flex;
776
+ align-items: center;
777
+ justify-content: center;
778
+ width: 18px;
779
+ height: 18px;
780
+ margin: -2px 4px -2px -2px;
781
+ padding: 0;
782
+ border: 0;
783
+ border-radius: 3px;
784
+ background: transparent;
785
+ color: inherit;
786
+ font-size: 16px;
787
+ line-height: 1;
788
+ vertical-align: top;
789
+ cursor: pointer;
790
+ opacity: 0.75;
791
+ }
792
+ .twm-preview-table td .twm-dt-detail-toggle-gap {
793
+ display: inline-block;
794
+ width: 18px;
795
+ margin: 0 4px 0 -2px;
796
+ vertical-align: top;
797
+ }
798
+ .twm-preview-table td .twm-dt-detail-toggle::before {
799
+ content: 'chevron_right';
800
+ transition: transform 0.12s ease;
801
+ }
802
+ .twm-preview-table td .twm-dt-detail-toggle[aria-expanded="true"]::before {
803
+ transform: rotate(90deg);
804
+ }
805
+ .twm-preview-table td .twm-dt-detail-toggle:hover {
806
+ opacity: 1;
807
+ background: rgba(255, 255, 255, 0.08);
808
+ }
809
+ .twm-preview-table td .twm-dt-detail-toggle:focus-visible {
810
+ opacity: 1;
811
+ outline: 1px solid var(--accent-bright, #007acc);
812
+ }
813
+ /* The detail's row: one cell across every column. It is often the body's
814
+ * FIRST cell of its row, so the time column's rules reach it (see the note
815
+ * above the NULL rule) — hence (0,4,3): the wrapper and `tbody` in front. It
816
+ * wraps, it is not clipped, it is not a thing to press (a clickable table's
817
+ * pointer and hover stop at it), and its content does not set the columns'
818
+ * widths (`contain: inline-size`, and it is out of the measuring pass). */
819
+ .twm-data-table-component .twm-preview-table tbody tr.twm-dt-detail-row > td.twm-dt-detail-cell,
820
+ .twm-data-table-component .twm-preview-table tbody tr.twm-dt-detail-row:not(.twm-dt-spacer):not(.data-table__empty-row):hover > td.twm-dt-detail-cell {
821
+ width: auto;
822
+ min-width: 0;
823
+ max-width: none;
824
+ padding: 6px 10px 8px 28px;
825
+ white-space: normal;
826
+ overflow: visible;
827
+ text-overflow: clip;
828
+ font-family: inherit;
829
+ font-weight: normal;
830
+ color: inherit;
831
+ cursor: auto;
832
+ background: var(--twm-dt-detail-bg, rgba(255, 255, 255, 0.025));
833
+ }
834
+ .twm-dt-detail {
835
+ contain: inline-size;
836
+ overflow: auto;
837
+ user-select: text;
838
+ }
839
+ .twm-preview-table.twm-dt-measuring tr.twm-dt-detail-row {
840
+ display: none !important;
841
+ }
842
+ /* `follow` / `refresh()` — a row the last answer did not have, for a moment. */
843
+ @keyframes twm-dt-row-new {
844
+ from { background: var(--twm-dt-new-bg, rgba(0, 122, 204, 0.22)); }
845
+ to { background: transparent; }
846
+ }
847
+ .twm-preview-table tbody tr.twm-dt-row--new > td {
848
+ animation: twm-dt-row-new 1.6s ease-out;
849
+ }
850
+ /* `pagerLabels` — a pager button with its word beside its glyph. */
851
+ .twm-pagination-btn .twm-pagination-btn__label {
852
+ margin-left: 2px;
853
+ font-size: 10px;
854
+ white-space: nowrap;
855
+ }
856
+ /* `filterKinds` — a filter cell holding a control rather than the text box,
857
+ * and the built-in chips. Wraps rather than clipping its control. */
858
+ .twm-preview-table th.data-table__filter-cell--control {
859
+ white-space: normal;
860
+ overflow: visible;
861
+ }
862
+ .twm-dt-filter-chips {
863
+ display: flex;
864
+ flex-wrap: wrap;
865
+ align-items: center;
866
+ gap: 3px;
867
+ }
868
+ .twm-dt-filter-chip {
869
+ display: inline-flex;
870
+ align-items: center;
871
+ gap: 3px;
872
+ height: 20px;
873
+ padding: 0 7px 0 5px;
874
+ border: 1px solid var(--border-default, #3a3a3a);
875
+ border-radius: 10px;
876
+ background: transparent;
877
+ color: #aaa;
878
+ font: inherit;
879
+ font-size: 11px;
880
+ font-weight: normal;
881
+ line-height: 1;
882
+ cursor: pointer;
883
+ }
884
+ .twm-dt-filter-chip:hover {
885
+ background: rgba(255, 255, 255, 0.06);
886
+ }
887
+ .twm-dt-filter-chip:focus-visible {
888
+ outline: 1px solid var(--accent-bright, #007acc);
889
+ }
890
+ .twm-dt-filter-chip.twm-dt-filter-chip--on {
891
+ border-color: var(--accent-bright, #007acc);
892
+ background: rgba(0, 122, 204, 0.18);
893
+ color: #ddd;
894
+ }
895
+ .twm-dt-filter-chip.twm-dt-filter-chip--empty {
896
+ opacity: 0.5;
897
+ }
898
+ .twm-dt-filter-chip .twm-dt-filter-chip__icon {
899
+ font-size: 14px;
900
+ line-height: 1;
901
+ }
902
+ .twm-dt-filter-chip .twm-dt-filter-chip__count {
903
+ color: #888;
904
+ font-variant-numeric: tabular-nums;
905
+ }
755
906
  /* Wizard mode: uniform column widths, no selection */
756
907
  .twm-preview-table-wrap--wizard .twm-preview-table {
757
908
  table-layout: auto;
@@ -4693,6 +4844,81 @@ button.twm-about-dialog__btn--close:focus {
4693
4844
  .twm-window-body { flex: 1 1 auto; min-height: 0; min-width: 0; }
4694
4845
 
4695
4846
 
4847
+ /* ══ C38. THE TABS ARE THE TITLE ═════════════════════════════════════
4848
+ *
4849
+ * `tabLayout: 'header'` mounts the same strip INSIDE the chrome, in place of
4850
+ * the title, on every content tile (`tile_renderer.js`, C38). The renderer
4851
+ * marks such a leaf `twm-leaf--tabs-in-header`; a panel, which has no tabs,
4852
+ * is not marked and keeps its title.
4853
+ *
4854
+ * Every selector here is two classes or more, so none of it depends on
4855
+ * whether this sheet or the one holding `.twm-leaf__chrome` loads first.
4856
+ *
4857
+ * The chrome grows to the editor strip's 26px rather than the strip shrinking
4858
+ * to 22: one 26px row replaces a 22px row plus a 26px one. */
4859
+ .twm-leaf--tabs-in-header > .twm-leaf__chrome {
4860
+ height: 26px;
4861
+ padding-left: 0;
4862
+ gap: var(--space-sm);
4863
+ }
4864
+ .twm-leaf--tabs-in-header > .twm-leaf__chrome > .twm-leaf__title,
4865
+ .twm-leaf--tabs-in-header > .twm-leaf__chrome > .twm-leaf__icon.material-symbols-outlined {
4866
+ display: none;
4867
+ }
4868
+
4869
+ /* The strip takes the room the title had, and the actions keep the right. */
4870
+ .twm-leaf__tabbar.twm-leaf__tabbar--header {
4871
+ flex: 1 1 auto;
4872
+ align-self: stretch;
4873
+ min-width: 0;
4874
+ height: auto;
4875
+ padding: 0;
4876
+ border: none;
4877
+ background: transparent;
4878
+ overflow: hidden;
4879
+ }
4880
+
4881
+ /* `0 1 auto`, not the top strip's `1 1 auto`: the list is only as wide as
4882
+ * its tabs, so the `+` sits right after the last one rather than at the far
4883
+ * end of the chrome. It still shrinks, and scrolls, when the tabs outgrow it. */
4884
+ .twm-leaf__tabbar--header > .tabs.notebook-tabs {
4885
+ flex: 0 1 auto;
4886
+ min-width: 0;
4887
+ background: transparent;
4888
+ }
4889
+
4890
+ /* An inactive tab is the chrome's colour, focused or not, so the active one —
4891
+ * the body's colour — is the only box in the row. */
4892
+ .twm-leaf__tabbar--header .notebook-tabs > .tab:not(.active) { background: transparent; }
4893
+ .twm-leaf__tabbar--header .notebook-tabs > .tab:not(.active):hover {
4894
+ background: var(--state-hover);
4895
+ color: var(--text-primary);
4896
+ }
4897
+
4898
+ .twm-leaf__tabbar--header > .twm-leaf__tab-new {
4899
+ flex: 0 0 auto;
4900
+ display: inline-flex;
4901
+ align-items: center;
4902
+ justify-content: center;
4903
+ width: 24px;
4904
+ padding: 0;
4905
+ background: transparent;
4906
+ border: none;
4907
+ border-radius: 0;
4908
+ color: var(--text-muted);
4909
+ cursor: pointer;
4910
+ }
4911
+ .twm-leaf__tabbar--header > .twm-leaf__tab-new:hover {
4912
+ background: var(--state-hover);
4913
+ color: var(--text-primary);
4914
+ }
4915
+ /* Two classes, for the Material Symbols tie — see `.twm-leaf__icon`. */
4916
+ .twm-leaf__tab-new .material-symbols-outlined {
4917
+ font-size: 16px;
4918
+ line-height: 1;
4919
+ }
4920
+
4921
+
4696
4922
  /* ══ NotebookTabBar ══════════════════════════════════════════════════
4697
4923
  *
4698
4924
  * A CLASS ONE SIDE KNOWS AND THE OTHER HAD NEVER HEARD OF — the fifth in this
@@ -5097,6 +5323,188 @@ button.twm-about-dialog__btn--close:focus {
5097
5323
  }
5098
5324
 
5099
5325
 
5326
+ /* ══ RECORD LIST & FACT SHEET (0.7.0) ══════════════════════════════════
5327
+ * `createRecordList` (src/ui/components/record_list.js) and
5328
+ * `createFactTable` (src/ui/components/fact_table.js). Neither has a height
5329
+ * of its own: each is exactly as tall as its records, in any parent. */
5330
+
5331
+ /* ── the record list ── */
5332
+ .twm-record-list { display: block; min-width: 0; }
5333
+ .twm-record-list__items {
5334
+ list-style: none;
5335
+ margin: 0;
5336
+ padding: 0;
5337
+ display: flex;
5338
+ flex-direction: column;
5339
+ }
5340
+ /* A record is one flex row that WRAPS: on a narrow host the pills and verbs
5341
+ * go under the name rather than squeezing it to nothing. */
5342
+ .twm-record {
5343
+ display: flex;
5344
+ flex-wrap: wrap;
5345
+ align-items: center;
5346
+ gap: 4px 10px;
5347
+ padding: 7px 6px;
5348
+ border-bottom: 1px solid var(--border-subtle, #2a2a2a);
5349
+ min-width: 0;
5350
+ }
5351
+ .twm-record:last-child { border-bottom: none; }
5352
+ .twm-record__main {
5353
+ flex: 1 1 14em;
5354
+ min-width: 0;
5355
+ display: flex;
5356
+ flex-direction: column;
5357
+ gap: 2px;
5358
+ }
5359
+ .twm-record__name {
5360
+ color: var(--text-primary, #e0e0e0);
5361
+ overflow-wrap: anywhere;
5362
+ }
5363
+ .twm-record__name--mono { font-family: var(--font-family-mono, monospace); font-size: 0.95em; }
5364
+ /* The quiet line. It wraps by default; `facts: 'ellipsis'` keeps it to one
5365
+ * line and puts the whole of it on the line's title. */
5366
+ .twm-record__facts {
5367
+ color: var(--text-muted, #888);
5368
+ font-size: var(--ea-font-body, 11px);
5369
+ overflow-wrap: anywhere;
5370
+ }
5371
+ .twm-record-list--clip .twm-record__facts {
5372
+ white-space: nowrap;
5373
+ overflow: hidden;
5374
+ text-overflow: ellipsis;
5375
+ }
5376
+ .twm-record__error {
5377
+ color: var(--color-danger, #c74e4e);
5378
+ font-size: var(--ea-font-body, 11px);
5379
+ overflow-wrap: anywhere;
5380
+ }
5381
+ /* A refused verb's reason, ON the screen — never only on a tooltip. */
5382
+ .twm-record__refusals { display: flex; flex-direction: column; gap: 1px; }
5383
+ .twm-record__refusal {
5384
+ color: var(--color-warning, #ff9800);
5385
+ font-size: var(--ea-font-small, 10px);
5386
+ overflow-wrap: anywhere;
5387
+ }
5388
+ .twm-record__pills,
5389
+ .twm-record__verbs {
5390
+ flex: 0 0 auto;
5391
+ display: flex;
5392
+ flex-wrap: wrap;
5393
+ align-items: center;
5394
+ justify-content: flex-end;
5395
+ gap: 4px 6px;
5396
+ margin-left: auto;
5397
+ }
5398
+ .twm-record__pill {
5399
+ display: inline-block;
5400
+ padding: 1px 7px;
5401
+ border-radius: var(--radius-pill, 999px);
5402
+ background: var(--surface-3, #3c3c3c);
5403
+ color: var(--text-muted, #888);
5404
+ font-size: var(--ea-font-small, 10px);
5405
+ line-height: 16px;
5406
+ white-space: nowrap;
5407
+ }
5408
+ .twm-record__pill--info { background: rgba(33, 150, 243, 0.16); color: var(--color-info, #2196f3); }
5409
+ .twm-record__pill--success { background: rgba(63, 185, 80, 0.16); color: var(--color-success, #3fb950); }
5410
+ .twm-record__pill--warn { background: rgba(255, 152, 0, 0.16); color: var(--color-warning, #ff9800); }
5411
+ .twm-record__pill--danger { background: rgba(199, 78, 78, 0.18); color: var(--color-danger, #c74e4e); }
5412
+ .twm-record__pill--muted { background: transparent; color: var(--text-dim, #666); box-shadow: inset 0 0 0 1px var(--border-strong, #383838); }
5413
+ .twm-record__verb-icon.material-symbols-outlined { font-size: 14px; line-height: 1; }
5414
+ /* States. A paused or switched-off record dims its words and pills and NOT
5415
+ * its verbs: the verb that brings it back has to stay readable. A dead or
5416
+ * failing one carries the danger colour on its left edge. */
5417
+ .twm-record--state-paused > .twm-record__main,
5418
+ .twm-record--state-paused > .twm-record__pills,
5419
+ .twm-record--state-off > .twm-record__main,
5420
+ .twm-record--state-off > .twm-record__pills,
5421
+ .twm-record--state-dead > .twm-record__main,
5422
+ .twm-record--state-dead > .twm-record__pills { opacity: 0.55; }
5423
+ .twm-record--state-dead,
5424
+ .twm-record--state-error { box-shadow: inset 2px 0 0 0 var(--color-danger, #c74e4e); }
5425
+ /* `activeKey` — the record that is OPEN: the accent on the left edge, as
5426
+ * DataTable's `twm-dt-row--active`. It wins over a state's edge. */
5427
+ .twm-record.twm-record--active { box-shadow: inset 2px 0 0 0 var(--accent-bright, #007acc); }
5428
+ .twm-record-list--clickable .twm-record { cursor: pointer; }
5429
+ .twm-record-list--clickable .twm-record:hover { background: var(--state-hover, rgba(255, 255, 255, 0.05)); }
5430
+ .twm-record:focus { outline: none; }
5431
+ .twm-record:focus-visible {
5432
+ outline: 1px solid var(--accent-bright, #007acc);
5433
+ outline-offset: -1px;
5434
+ }
5435
+ .twm-record-list__empty {
5436
+ margin: 0;
5437
+ padding: 12px 6px;
5438
+ color: var(--text-muted, #888);
5439
+ font-size: var(--ea-font-body, 11px);
5440
+ }
5441
+
5442
+ /* ── the fact sheet ── */
5443
+ .twm-facts {
5444
+ width: 100%;
5445
+ border-collapse: collapse;
5446
+ table-layout: auto;
5447
+ font-size: var(--font-size-sm, 12px);
5448
+ }
5449
+ .twm-facts thead th {
5450
+ text-align: left;
5451
+ font-size: var(--ea-font-small, 10px);
5452
+ font-weight: 600;
5453
+ letter-spacing: 0.06em;
5454
+ text-transform: uppercase;
5455
+ color: var(--text-dim, #666);
5456
+ white-space: nowrap;
5457
+ border-bottom: 1px solid var(--border-default, #303030);
5458
+ padding: 0 12px 6px 0;
5459
+ }
5460
+ /* Every value WRAPS and keeps its own line breaks: nothing is cut off. */
5461
+ .twm-facts tbody td,
5462
+ .twm-facts tbody th {
5463
+ text-align: left;
5464
+ font-weight: normal;
5465
+ border-bottom: 1px solid var(--border-subtle, #2a2a2a);
5466
+ padding: 6px 12px 6px 0;
5467
+ color: var(--text-primary, #e0e0e0);
5468
+ vertical-align: top;
5469
+ white-space: pre-wrap;
5470
+ overflow-wrap: anywhere;
5471
+ }
5472
+ .twm-facts tbody tr:last-child > td,
5473
+ .twm-facts tbody tr:last-child > th { border-bottom: 0; }
5474
+ .twm-facts tbody th.twm-facts__label {
5475
+ color: var(--text-muted, #888);
5476
+ white-space: nowrap;
5477
+ }
5478
+ .twm-facts.twm-facts--wrap-labels tbody th.twm-facts__label { white-space: normal; }
5479
+ /* `wrap: 'words'` — a value wraps at spaces only, and a long word stays
5480
+ * whole: the sheet grows wider and a sideways scroller around it scrolls.
5481
+ * `wrap: 'none'` — a value keeps its own line breaks and no others. */
5482
+ .twm-facts.twm-facts--wrap-words tbody td,
5483
+ .twm-facts.twm-facts--wrap-words tbody th { overflow-wrap: normal; word-break: normal; }
5484
+ .twm-facts.twm-facts--wrap-none tbody td,
5485
+ .twm-facts.twm-facts--wrap-none tbody th { white-space: pre; overflow-wrap: normal; word-break: normal; }
5486
+ .twm-facts.twm-facts--mono tbody td.twm-facts__value,
5487
+ .twm-facts tbody td.twm-facts__mono { font-family: var(--font-family-mono, monospace); font-size: 0.95em; }
5488
+ .twm-facts .twm-facts__num { font-variant-numeric: tabular-nums; white-space: nowrap; }
5489
+ .twm-facts tbody td.twm-facts__null,
5490
+ .twm-facts tbody td.twm-facts__missing { color: var(--text-dim, #666); font-style: italic; }
5491
+ .twm-facts tbody td.twm-facts__arrow {
5492
+ color: var(--text-dim, #666);
5493
+ white-space: nowrap;
5494
+ width: 1%;
5495
+ }
5496
+ .twm-facts tbody tr.twm-facts__row--changed > td.twm-facts__before { color: var(--text-muted, #888); }
5497
+ .twm-facts tbody tr.twm-facts__row--changed > td.twm-facts__arrow { color: var(--color-warning, #ff9800); }
5498
+ .twm-facts tbody tr.twm-facts__row--same > td { color: var(--text-muted, #888); }
5499
+ .twm-facts tbody tr.twm-facts__row--added > td.twm-facts__after { color: var(--color-success, #3fb950); }
5500
+ .twm-facts tbody tr.twm-facts__row--removed > td.twm-facts__before { color: var(--color-danger, #c74e4e); }
5501
+ .twm-facts tbody td.twm-facts__empty {
5502
+ padding: 12px 0;
5503
+ color: var(--text-muted, #888);
5504
+ white-space: normal;
5505
+ }
5506
+ /* ══ end RECORD LIST & FACT SHEET ══ */
5507
+
5100
5508
  /* ══ FLOW · KIT ═══════════════════════════════════════════════════════ */
5101
5509
  /* The shared flow-editor kit (36 §3, §3.12): the settings panel and its
5102
5510
  * fields, the generic widgets, reference chips and the chip input, the two