@8sheets/data-grid 0.0.0-stage → 1.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/LICENSE.md +36 -0
- package/README.md +52 -2
- package/a11y/cell-alt-text.js +1 -0
- package/api/overlay.js +1 -0
- package/api/serialize.js +1 -0
- package/api/skins.js +1 -0
- package/api/style-refs.js +1 -0
- package/api/watermark-xml.js +2 -0
- package/calc/adjust.js +1 -0
- package/calc/cell-set.js +1 -0
- package/calc/compile.js +1 -0
- package/calc/engine.js +1 -0
- package/calc/fill-shape.js +2 -0
- package/calc/functions/array.js +1 -0
- package/calc/functions/database.js +1 -0
- package/calc/functions/date.js +1 -0
- package/calc/functions/engineering.js +1 -0
- package/calc/functions/financial.js +1 -0
- package/calc/functions/helpers.js +1 -0
- package/calc/functions/index.js +1 -0
- package/calc/functions/info.js +1 -0
- package/calc/functions/logical.js +1 -0
- package/calc/functions/lookup.js +1 -0
- package/calc/functions/math.js +1 -0
- package/calc/functions/registry.js +1 -0
- package/calc/functions/stat.js +1 -0
- package/calc/functions/text.js +1 -0
- package/calc/parser.js +3 -0
- package/calc/values.js +1 -0
- package/calcx/ai/client.js +1 -0
- package/calcx/ai/functions.js +15 -0
- package/calcx/ai/settings.js +1 -0
- package/calcx/async.js +1 -0
- package/calcx/culture/format-locale.js +1 -0
- package/calcx/culture/lcid.js +1 -0
- package/calcx/external-read.js +1 -0
- package/calcx/external-write.js +3 -0
- package/calcx/external.js +1 -0
- package/calcx/functions/dynamic.js +1 -0
- package/calcx/functions/ets.js +1 -0
- package/calcx/functions/index.js +1 -0
- package/calcx/functions/misc.js +1 -0
- package/calcx/functions/text.js +1 -0
- package/calcx/functions/xml.js +1 -0
- package/calcx/refresh.js +1 -0
- package/cells/auto-merge.js +1 -0
- package/cells/axis-limits.js +1 -0
- package/cells/axis-ops.js +1 -0
- package/cells/background-xml.js +1 -0
- package/cells/background.js +1 -0
- package/cells/book-css.js +206 -0
- package/cells/book-read.js +1 -0
- package/cells/book-view.js +1 -0
- package/cells/cell-defaults.js +1 -0
- package/cells/cell-extras.js +1 -0
- package/cells/cell-options-ui.js +1 -0
- package/cells/cell-styles-xml.js +1 -0
- package/cells/cf-engine.js +1 -0
- package/cells/cf-file.js +1 -0
- package/cells/cf-paint.js +1 -0
- package/cells/consolidate-links.js +1 -0
- package/cells/docprops-xml.js +2 -0
- package/cells/filter-file.js +1 -0
- package/cells/find-engine.js +2 -0
- package/cells/find.js +1 -0
- package/cells/format-code.js +1 -0
- package/cells/format-panes.js +3 -0
- package/cells/format-tabs.js +102 -0
- package/cells/goto.js +1 -0
- package/cells/header-colors.js +1 -0
- package/cells/mask.js +1 -0
- package/cells/menu-extras.js +1 -0
- package/cells/name-box.js +1 -0
- package/cells/note-xml.js +1 -0
- package/cells/options.js +1 -0
- package/cells/outline-column.js +1 -0
- package/cells/paint.js +1 -0
- package/cells/panes.js +1 -0
- package/cells/rich-data-xml.js +2 -0
- package/cells/rich-data.js +1 -0
- package/cells/rich-runs.js +2 -0
- package/cells/rich-values.js +1 -0
- package/cells/rich-xml.js +1 -0
- package/cells/rounded.js +1 -0
- package/cells/sections.js +2 -0
- package/cells/selection-modes.js +1 -0
- package/cells/style-xml.js +1 -0
- package/cells/text-layout.js +8 -0
- package/cells/undo-group.js +1 -0
- package/cells/validation-alert.js +2 -0
- package/cells/view-options.js +1 -0
- package/cells/view-xml.js +1 -0
- package/celltypes/barcode-tables.js +31 -0
- package/celltypes/barcode.js +2 -0
- package/celltypes/base.js +1 -0
- package/celltypes/cell-buttons.js +1 -0
- package/celltypes/cell-types.js +2 -0
- package/celltypes/data-object.js +1 -0
- package/celltypes/diagonal.js +1 -0
- package/celltypes/dropdowns-more.js +13 -0
- package/celltypes/dropdowns.js +42 -0
- package/celltypes/file-cell.js +2 -0
- package/celltypes/glyphs.js +1 -0
- package/celltypes/persist.js +2 -0
- package/celltypes/range-template.js +2 -0
- package/charts/chartex.js +3 -0
- package/charts/geo/geo-xml.js +1 -0
- package/charts/geo/map-state.js +1 -0
- package/charts/patterns.js +1 -0
- package/core/address.js +1 -0
- package/core/axis.js +1 -0
- package/core/base64.js +1 -0
- package/core/changes.js +1 -0
- package/core/color.js +1 -0
- package/core/cond-format.js +1 -0
- package/core/custom-views.js +1 -0
- package/core/default-names.js +1 -0
- package/core/formula-refs.js +1 -0
- package/core/formula-store.js +1 -0
- package/core/input.js +1 -0
- package/core/math.js +1 -0
- package/core/numfmt.js +1 -0
- package/core/online.js +1 -0
- package/core/protection.js +1 -0
- package/core/regexp.js +1 -0
- package/core/sheet-group.js +1 -0
- package/core/sheet.js +1 -0
- package/core/sparklines.js +1 -0
- package/core/sparse.js +1 -0
- package/core/strings.js +1 -0
- package/core/styles.js +1 -0
- package/core/table-presets.js +7 -0
- package/core/tables.js +2 -0
- package/core/tsv.js +4 -0
- package/core/whatif.js +1 -0
- package/core/workbook.js +1 -0
- package/datasheets/bind.js +1 -0
- package/datasheets/calendar.js +1 -0
- package/datasheets/cross.js +1 -0
- package/datasheets/data-core.js +1 -0
- package/datasheets/data.js +1 -0
- package/datasheets/formula.js +1 -0
- package/datasheets/gantt-paint.js +1 -0
- package/datasheets/gantt-resources.js +1 -0
- package/datasheets/gantt-shapes.js +1 -0
- package/datasheets/gantt.js +1 -0
- package/datasheets/manager.js +1 -0
- package/datasheets/path-binding.js +2 -0
- package/datasheets/persist-writer.js +2 -0
- package/datasheets/persist.js +1 -0
- package/datasheets/query-function.js +1 -0
- package/datasheets/remote.js +3 -0
- package/datasheets/report-entry.js +1 -0
- package/datasheets/report.js +1 -0
- package/datasheets/rules.js +1 -0
- package/datasheets/sort.js +1 -0
- package/datasheets/table-sheet.js +1 -0
- package/datasheets/view.js +3 -0
- package/datasheets/virtual-sheet.js +1 -0
- package/datasheets/window.js +1 -0
- package/extras/getdata/persist.js +2 -0
- package/extras/getdata/rows.js +1 -0
- package/extras/getdata/steps.js +1 -0
- package/i18n/dom.js +1 -0
- package/i18n/en/a11y.js +1 -0
- package/i18n/en/cells.js +1 -0
- package/i18n/en/charts.js +1 -0
- package/i18n/en/common.js +1 -0
- package/i18n/en/datasheets.js +1 -0
- package/i18n/en/format.js +1 -0
- package/i18n/en/misc.js +1 -0
- package/i18n/en/pivot.js +1 -0
- package/i18n/en/proofing.js +1 -0
- package/i18n/en/ribbon.js +1 -0
- package/i18n/en/shapes.js +1 -0
- package/i18n/en/shell.js +1 -0
- package/i18n/en/touch.js +1 -0
- package/i18n/en.js +1 -0
- package/i18n/index.js +1 -0
- package/i18n/key-text.js +1 -0
- package/i18n/languages.js +1 -0
- package/i18n/pl/a11y.js +1 -0
- package/i18n/pl/cells.js +1 -0
- package/i18n/pl/charts.js +1 -0
- package/i18n/pl/common.js +1 -0
- package/i18n/pl/datasheets.js +1 -0
- package/i18n/pl/format.js +1 -0
- package/i18n/pl/misc.js +1 -0
- package/i18n/pl/pivot.js +1 -0
- package/i18n/pl/proofing.js +1 -0
- package/i18n/pl/ribbon.js +1 -0
- package/i18n/pl/shapes.js +1 -0
- package/i18n/pl/shell.js +1 -0
- package/i18n/pl/touch.js +1 -0
- package/i18n/pl.js +1 -0
- package/io/client.js +1 -0
- package/io/crc32.js +1 -0
- package/io/crypto/aes.js +1 -0
- package/io/crypto/agile.js +2 -0
- package/io/crypto/cfb-read.js +1 -0
- package/io/crypto/cfb-write.js +1 -0
- package/io/crypto/dataspaces.js +1 -0
- package/io/crypto/errors.js +1 -0
- package/io/crypto/hash.js +1 -0
- package/io/crypto/index.js +1 -0
- package/io/crypto/package-read.js +1 -0
- package/io/crypto/package-write.js +1 -0
- package/io/crypto/spool.js +1 -0
- package/io/crypto/standard.js +1 -0
- package/io/csv.js +8 -0
- package/io/export-blocks.js +1 -0
- package/io/foreign-parts.js +1 -0
- package/io/foreign-sheets.js +2 -0
- package/io/io.worker.js +1 -0
- package/io/package-paths.js +1 -0
- package/io/plan.js +1 -0
- package/io/text-split.js +3 -0
- package/io/xlsx-read.js +1 -0
- package/io/xlsx-styles.js +2 -0
- package/io/xlsx-tail.js +1 -0
- package/io/xlsx-write.js +2 -0
- package/io/xml-escape.js +1 -0
- package/io/xml-scan.js +1 -0
- package/io/zip-reader.js +1 -0
- package/io/zip-writer.js +1 -0
- package/objects/chart-model.js +1 -0
- package/objects/dml.js +5 -0
- package/objects/drawing-xml.js +1 -0
- package/objects/picture-url.js +1 -0
- package/package.json +57 -4
- package/pivot/engine.js +1 -0
- package/pivot/xml.js +2 -0
- package/print/page-setup.js +1 -0
- package/print/paginate.js +1 -0
- package/print/pdf.js +35 -0
- package/print/render-page.js +3 -0
- package/render/patterns.js +1 -0
- package/shapes/form-xml.js +1 -0
- package/shapes/watermark.js +1 -0
- package/slicers/custom-styles.js +1 -0
- package/slicers/date-filters.js +1 -0
- package/slicers/format.js +2 -0
- package/slicers/pivot-file.js +1 -0
- package/slicers/structured.js +1 -0
- package/slicers/table-file.js +1 -0
- package/slicers/write.js +1 -0
- package/sparklines/colors.js +1 -0
- package/sparklines/data.js +1 -0
- package/sparklines/descriptor.js +1 -0
- package/sparklines/excel-paint.js +1 -0
- package/sparklines/functions.js +1 -0
- package/sparklines/paint-core.js +1 -0
- package/sparklines/paint-measure.js +1 -0
- package/sparklines/paint-other.js +2 -0
- package/sparklines/paint-series.js +1 -0
- package/sparklines/paint.js +1 -0
- package/sparklines/print.js +1 -0
- package/sparklines/rule.js +1 -0
- package/table-view/api.js +1 -0
- package/table-view/cell-editor.js +1 -0
- package/table-view/cell-format.js +1 -0
- package/table-view/chrome.js +1 -0
- package/table-view/client.js +1 -0
- package/table-view/column-drag.js +1 -0
- package/table-view/column-input.js +1 -0
- package/table-view/column-window.js +1 -0
- package/table-view/events.js +1 -0
- package/table-view/files.js +1 -0
- package/table-view/grid-keys.js +2 -0
- package/table-view/index.d.ts +4 -0
- package/table-view/index.js +1 -0
- package/table-view/labels.js +1 -0
- package/table-view/model.js +1 -0
- package/table-view/mount.js +1 -0
- package/table-view/panel.js +1 -0
- package/table-view/pivot.js +1 -0
- package/table-view/public.d.ts +841 -0
- package/table-view/quick-filter.js +1 -0
- package/table-view/reader.worker.js +1 -0
- package/table-view/remote.js +1 -0
- package/table-view/row-cache.js +1 -0
- package/table-view/row-selection.js +1 -0
- package/table-view/table-css.js +1207 -0
- package/table-view/totals.js +1 -0
- package/table-view/version.js +1 -0
- package/table-view/worksheet-table.js +1 -0
- package/ui/dialogs.js +3 -0
- package/ui/dom.js +1 -0
- package/ui/icons.js +1 -0
- package/ui/menu-base.js +1 -0
- package/ui/protection-ui.js +1 -0
- package/ui/ui-scale.js +1 -0
|
@@ -0,0 +1,1207 @@
|
|
|
1
|
+
var n=`.tv-root {
|
|
2
|
+
--tv-bg: light-dark(#ffffff, #2c2c2c);
|
|
3
|
+
--tv-base: light-dark(#f5f5f4, #1f1f1f);
|
|
4
|
+
--tv-ink: light-dark(#242424, #f0f0f0);
|
|
5
|
+
--tv-muted: light-dark(#5c5c5c, #bdbdbd);
|
|
6
|
+
--tv-line: light-dark(#dcdcdc, #454545);
|
|
7
|
+
--tv-accent: light-dark(#393939, #dddddd);
|
|
8
|
+
--tv-on-accent: light-dark(#ffffff, #202020);
|
|
9
|
+
--tv-tint: light-dark(#efefee, #383838);
|
|
10
|
+
--tv-field: var(--tv-bg);
|
|
11
|
+
--tv-danger: light-dark(#b42318, #ff8a80);
|
|
12
|
+
--tv-shadow: 0 8px 28px light-dark(#1a1a1a24, #00000066), 0 1px 3px light-dark(#1a1a1a14, #00000040);
|
|
13
|
+
/* A mid grey reads on both light and dark fields, so the chevron needs no per-theme copy. */
|
|
14
|
+
--tv-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23888' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
|
|
15
|
+
color-scheme: light dark;
|
|
16
|
+
accent-color: var(--tv-accent);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
position: relative;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
height: 100%;
|
|
22
|
+
min-height: 0;
|
|
23
|
+
background: var(--tv-bg);
|
|
24
|
+
color: var(--tv-ink);
|
|
25
|
+
font:
|
|
26
|
+
14px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
27
|
+
system-ui,
|
|
28
|
+
sans-serif;
|
|
29
|
+
}
|
|
30
|
+
.tv-root *,
|
|
31
|
+
.tv-root *::before,
|
|
32
|
+
.tv-root *::after {
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
}
|
|
35
|
+
.tv-root [hidden] {
|
|
36
|
+
display: none !important;
|
|
37
|
+
}
|
|
38
|
+
.tv-root button,
|
|
39
|
+
.tv-root input,
|
|
40
|
+
.tv-root select,
|
|
41
|
+
.tv-root textarea {
|
|
42
|
+
font: inherit;
|
|
43
|
+
color: inherit;
|
|
44
|
+
margin: 0;
|
|
45
|
+
}
|
|
46
|
+
.tv-root button,
|
|
47
|
+
.tv-root select,
|
|
48
|
+
.tv-root input:not([type='checkbox'], [type='radio']),
|
|
49
|
+
.tv-root textarea {
|
|
50
|
+
border: 1px solid var(--tv-line);
|
|
51
|
+
background: var(--tv-field);
|
|
52
|
+
border-radius: 6px;
|
|
53
|
+
padding: 5px 10px;
|
|
54
|
+
min-height: 32px;
|
|
55
|
+
}
|
|
56
|
+
.tv-root input:not([type='checkbox'], [type='radio']):hover,
|
|
57
|
+
.tv-root select:hover,
|
|
58
|
+
.tv-root textarea:hover {
|
|
59
|
+
border-color: var(--tv-muted);
|
|
60
|
+
}
|
|
61
|
+
.tv-root select {
|
|
62
|
+
appearance: none;
|
|
63
|
+
-webkit-appearance: none;
|
|
64
|
+
padding-inline-end: 28px;
|
|
65
|
+
background-image: var(--tv-chevron);
|
|
66
|
+
background-repeat: no-repeat;
|
|
67
|
+
background-position: right 10px center;
|
|
68
|
+
background-size: 10px 6px;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
text-overflow: ellipsis;
|
|
71
|
+
}
|
|
72
|
+
.tv-root select:dir(rtl) {
|
|
73
|
+
background-position: left 10px center;
|
|
74
|
+
}
|
|
75
|
+
.tv-root input[type='search']::-webkit-search-decoration {
|
|
76
|
+
-webkit-appearance: none;
|
|
77
|
+
}
|
|
78
|
+
.tv-root input[type='checkbox'] {
|
|
79
|
+
width: 16px;
|
|
80
|
+
height: 16px;
|
|
81
|
+
margin: 0;
|
|
82
|
+
flex: none;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
.tv-root button {
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
font-weight: 550;
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
gap: 6px;
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
transition: background-color 0.12s, border-color 0.12s;
|
|
94
|
+
}
|
|
95
|
+
.tv-root button:hover {
|
|
96
|
+
background: var(--tv-tint);
|
|
97
|
+
}
|
|
98
|
+
.tv-root button:disabled {
|
|
99
|
+
opacity: 0.45;
|
|
100
|
+
cursor: default;
|
|
101
|
+
}
|
|
102
|
+
.tv-root button:disabled:hover {
|
|
103
|
+
background: var(--tv-field);
|
|
104
|
+
}
|
|
105
|
+
.tv-root :focus-visible {
|
|
106
|
+
outline: 2px solid var(--tv-accent);
|
|
107
|
+
outline-offset: 1px;
|
|
108
|
+
}
|
|
109
|
+
.tv-root button.tv-primary {
|
|
110
|
+
background: var(--tv-accent);
|
|
111
|
+
color: var(--tv-on-accent);
|
|
112
|
+
border-color: var(--tv-accent);
|
|
113
|
+
}
|
|
114
|
+
.tv-root button.tv-primary:hover {
|
|
115
|
+
background: color-mix(in srgb, var(--tv-accent) 86%, var(--tv-bg));
|
|
116
|
+
}
|
|
117
|
+
.tv-root button.tv-danger {
|
|
118
|
+
color: var(--tv-danger);
|
|
119
|
+
}
|
|
120
|
+
.tv-root button.tv-link {
|
|
121
|
+
border-color: transparent;
|
|
122
|
+
background: transparent;
|
|
123
|
+
color: var(--tv-ink);
|
|
124
|
+
text-decoration: underline;
|
|
125
|
+
text-underline-offset: 3px;
|
|
126
|
+
font-weight: 500;
|
|
127
|
+
padding-inline: 6px;
|
|
128
|
+
}
|
|
129
|
+
.tv-root button.tv-link:hover {
|
|
130
|
+
background: var(--tv-tint);
|
|
131
|
+
}
|
|
132
|
+
.tv-icon {
|
|
133
|
+
width: 16px;
|
|
134
|
+
height: 16px;
|
|
135
|
+
flex: none;
|
|
136
|
+
fill: none;
|
|
137
|
+
stroke: currentColor;
|
|
138
|
+
stroke-width: 1.5;
|
|
139
|
+
stroke-linecap: round;
|
|
140
|
+
stroke-linejoin: round;
|
|
141
|
+
}
|
|
142
|
+
.tv-root button.tv-icon-btn {
|
|
143
|
+
padding: 0;
|
|
144
|
+
width: 32px;
|
|
145
|
+
min-height: 32px;
|
|
146
|
+
border-color: transparent;
|
|
147
|
+
background: transparent;
|
|
148
|
+
color: var(--tv-muted);
|
|
149
|
+
}
|
|
150
|
+
.tv-root button.tv-icon-btn:hover {
|
|
151
|
+
background: var(--tv-tint);
|
|
152
|
+
color: var(--tv-ink);
|
|
153
|
+
}
|
|
154
|
+
.tv-sr {
|
|
155
|
+
position: absolute;
|
|
156
|
+
width: 1px;
|
|
157
|
+
height: 1px;
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
clip-path: inset(50%);
|
|
160
|
+
white-space: nowrap;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Header, toolbar, active-state chips and footer. */
|
|
164
|
+
.tv-head,
|
|
165
|
+
.tv-tools,
|
|
166
|
+
.tv-foot,
|
|
167
|
+
.tv-chips {
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
gap: 8px;
|
|
171
|
+
flex-wrap: wrap;
|
|
172
|
+
padding: 10px 20px;
|
|
173
|
+
border-bottom: 1px solid var(--tv-line);
|
|
174
|
+
}
|
|
175
|
+
.tv-head {
|
|
176
|
+
justify-content: space-between;
|
|
177
|
+
padding-block: 12px;
|
|
178
|
+
}
|
|
179
|
+
.tv-identity,
|
|
180
|
+
.tv-actions {
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
gap: 8px;
|
|
184
|
+
}
|
|
185
|
+
.tv-identity {
|
|
186
|
+
min-width: 0;
|
|
187
|
+
}
|
|
188
|
+
.tv-actions {
|
|
189
|
+
flex-wrap: wrap;
|
|
190
|
+
}
|
|
191
|
+
.tv-identity h1 {
|
|
192
|
+
font-size: 19px;
|
|
193
|
+
line-height: 1.2;
|
|
194
|
+
margin: 0;
|
|
195
|
+
overflow-wrap: anywhere;
|
|
196
|
+
}
|
|
197
|
+
.tv-mark {
|
|
198
|
+
display: grid;
|
|
199
|
+
place-items: center;
|
|
200
|
+
flex: none;
|
|
201
|
+
width: 28px;
|
|
202
|
+
height: 28px;
|
|
203
|
+
border-radius: 7px;
|
|
204
|
+
background: var(--tv-accent);
|
|
205
|
+
color: var(--tv-on-accent);
|
|
206
|
+
font-size: 18px;
|
|
207
|
+
font-weight: 700;
|
|
208
|
+
}
|
|
209
|
+
.tv-head select {
|
|
210
|
+
color: var(--tv-muted);
|
|
211
|
+
}
|
|
212
|
+
.tv-tools,
|
|
213
|
+
.tv-foot {
|
|
214
|
+
background: var(--tv-base);
|
|
215
|
+
}
|
|
216
|
+
.tv-tools:empty,
|
|
217
|
+
.tv-chips:empty,
|
|
218
|
+
.tv-status:empty,
|
|
219
|
+
.tv-foot:empty {
|
|
220
|
+
display: none;
|
|
221
|
+
}
|
|
222
|
+
.tv-tools input[type='search'] {
|
|
223
|
+
min-width: 12em;
|
|
224
|
+
flex: 1;
|
|
225
|
+
max-width: 28em;
|
|
226
|
+
padding-inline-start: 32px;
|
|
227
|
+
background: var(--tv-field)
|
|
228
|
+
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='M9.5 9.5L13 13'/%3E%3C/svg%3E")
|
|
229
|
+
no-repeat 11px center;
|
|
230
|
+
}
|
|
231
|
+
.tv-chips {
|
|
232
|
+
padding-block: 7px;
|
|
233
|
+
gap: 6px;
|
|
234
|
+
}
|
|
235
|
+
.tv-chip {
|
|
236
|
+
display: inline-flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
gap: 6px;
|
|
239
|
+
max-width: 100%;
|
|
240
|
+
padding: 2px 2px 2px 10px;
|
|
241
|
+
border: 1px solid var(--tv-line);
|
|
242
|
+
border-radius: 999px;
|
|
243
|
+
background: var(--tv-base);
|
|
244
|
+
font-size: 12.5px;
|
|
245
|
+
line-height: 1.3;
|
|
246
|
+
}
|
|
247
|
+
.tv-chip > span:nth-child(2) {
|
|
248
|
+
overflow: hidden;
|
|
249
|
+
text-overflow: ellipsis;
|
|
250
|
+
white-space: nowrap;
|
|
251
|
+
}
|
|
252
|
+
.tv-chip-kind {
|
|
253
|
+
color: var(--tv-muted);
|
|
254
|
+
font-weight: 600;
|
|
255
|
+
}
|
|
256
|
+
.tv-root .tv-chip button.tv-icon-btn {
|
|
257
|
+
width: 24px;
|
|
258
|
+
min-height: 24px;
|
|
259
|
+
border-radius: 999px;
|
|
260
|
+
}
|
|
261
|
+
.tv-root .tv-chip .tv-icon {
|
|
262
|
+
width: 12px;
|
|
263
|
+
height: 12px;
|
|
264
|
+
}
|
|
265
|
+
.tv-root .tv-chips > button {
|
|
266
|
+
min-height: 26px;
|
|
267
|
+
font-size: 12.5px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* Records. */
|
|
271
|
+
.tv-data {
|
|
272
|
+
position: relative;
|
|
273
|
+
overflow: auto;
|
|
274
|
+
overflow-anchor: none;
|
|
275
|
+
flex: 1;
|
|
276
|
+
min-height: 0;
|
|
277
|
+
isolation: isolate;
|
|
278
|
+
}
|
|
279
|
+
.tv-data table {
|
|
280
|
+
border-spacing: 0;
|
|
281
|
+
width: max-content;
|
|
282
|
+
min-width: 100%;
|
|
283
|
+
font-variant-numeric: tabular-nums;
|
|
284
|
+
}
|
|
285
|
+
.tv-data th,
|
|
286
|
+
.tv-data td {
|
|
287
|
+
padding: 6px 12px;
|
|
288
|
+
border-bottom: 1px solid var(--tv-line);
|
|
289
|
+
text-align: start;
|
|
290
|
+
max-width: 36em;
|
|
291
|
+
white-space: nowrap;
|
|
292
|
+
overflow: hidden;
|
|
293
|
+
text-overflow: ellipsis;
|
|
294
|
+
}
|
|
295
|
+
.tv-data th {
|
|
296
|
+
position: sticky;
|
|
297
|
+
top: 0;
|
|
298
|
+
background: var(--tv-base);
|
|
299
|
+
z-index: 2;
|
|
300
|
+
color: var(--tv-muted);
|
|
301
|
+
font-weight: 600;
|
|
302
|
+
font-size: 13px;
|
|
303
|
+
padding-block: 4px;
|
|
304
|
+
padding-inline-end: 4px;
|
|
305
|
+
}
|
|
306
|
+
.tv-root .tv-data th button {
|
|
307
|
+
border: 0;
|
|
308
|
+
background: transparent;
|
|
309
|
+
min-height: 28px;
|
|
310
|
+
color: inherit;
|
|
311
|
+
font-weight: inherit;
|
|
312
|
+
}
|
|
313
|
+
.tv-root .tv-data th .tv-sort {
|
|
314
|
+
padding: 2px 6px;
|
|
315
|
+
margin-inline-start: -6px;
|
|
316
|
+
gap: 4px;
|
|
317
|
+
}
|
|
318
|
+
.tv-root .tv-data th .tv-sort:hover {
|
|
319
|
+
background: var(--tv-tint);
|
|
320
|
+
color: var(--tv-ink);
|
|
321
|
+
}
|
|
322
|
+
.tv-data th.tv-sorted {
|
|
323
|
+
color: var(--tv-ink);
|
|
324
|
+
}
|
|
325
|
+
.tv-sort .tv-icon {
|
|
326
|
+
width: 13px;
|
|
327
|
+
height: 13px;
|
|
328
|
+
}
|
|
329
|
+
.tv-sort-order {
|
|
330
|
+
font-size: 10px;
|
|
331
|
+
line-height: 1;
|
|
332
|
+
}
|
|
333
|
+
.tv-root .tv-data th .tv-field-menu {
|
|
334
|
+
width: 24px;
|
|
335
|
+
min-height: 24px;
|
|
336
|
+
vertical-align: middle;
|
|
337
|
+
}
|
|
338
|
+
.tv-data th .tv-field-menu .tv-icon {
|
|
339
|
+
width: 14px;
|
|
340
|
+
height: 14px;
|
|
341
|
+
}
|
|
342
|
+
@media (hover: hover) {
|
|
343
|
+
.tv-data th .tv-field-menu {
|
|
344
|
+
opacity: 0.55;
|
|
345
|
+
}
|
|
346
|
+
.tv-data th:hover .tv-field-menu,
|
|
347
|
+
.tv-data th .tv-field-menu:focus-visible,
|
|
348
|
+
.tv-data th .tv-field-menu[aria-expanded='true'] {
|
|
349
|
+
opacity: 1;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
.tv-data .tv-row-action {
|
|
353
|
+
width: 1%;
|
|
354
|
+
padding-inline: 6px;
|
|
355
|
+
}
|
|
356
|
+
.tv-root .tv-data td.tv-row-action button,
|
|
357
|
+
.tv-root .tv-data td:first-child > button.tv-icon-btn {
|
|
358
|
+
width: 26px;
|
|
359
|
+
min-height: 26px;
|
|
360
|
+
}
|
|
361
|
+
.tv-data td:first-child .tv-icon-btn .tv-icon {
|
|
362
|
+
width: 14px;
|
|
363
|
+
height: 14px;
|
|
364
|
+
}
|
|
365
|
+
.tv-data tbody tr:not(.tv-group):hover td {
|
|
366
|
+
background: var(--tv-tint);
|
|
367
|
+
}
|
|
368
|
+
.tv-data .tv-number {
|
|
369
|
+
text-align: end;
|
|
370
|
+
}
|
|
371
|
+
.tv-data .tv-pinned {
|
|
372
|
+
position: sticky;
|
|
373
|
+
background: var(--tv-bg);
|
|
374
|
+
z-index: 1;
|
|
375
|
+
}
|
|
376
|
+
.tv-data th.tv-pinned {
|
|
377
|
+
background: var(--tv-base);
|
|
378
|
+
z-index: 3;
|
|
379
|
+
}
|
|
380
|
+
/* Cells select as a range (click, Shift-click, drag) and the grid's copy handler writes that range.
|
|
381
|
+
The page's text selection still has to exist for the copy event to reach the table, so it is only hidden. */
|
|
382
|
+
.tv-data tbody td::selection {
|
|
383
|
+
background: transparent;
|
|
384
|
+
}
|
|
385
|
+
.tv-data td.tv-selected {
|
|
386
|
+
background: var(--tv-tint);
|
|
387
|
+
box-shadow: inset 0 0 0 1px var(--tv-muted);
|
|
388
|
+
}
|
|
389
|
+
.tv-group td {
|
|
390
|
+
background: var(--tv-base);
|
|
391
|
+
font-weight: 600;
|
|
392
|
+
}
|
|
393
|
+
.tv-root .tv-group .tv-group-toggle {
|
|
394
|
+
border: 0;
|
|
395
|
+
background: transparent;
|
|
396
|
+
min-height: 26px;
|
|
397
|
+
padding: 2px 6px 2px 2px;
|
|
398
|
+
font-weight: 600;
|
|
399
|
+
justify-content: flex-start;
|
|
400
|
+
}
|
|
401
|
+
.tv-root .tv-group .tv-group-toggle:hover {
|
|
402
|
+
background: var(--tv-tint);
|
|
403
|
+
}
|
|
404
|
+
.tv-group-toggle .tv-icon {
|
|
405
|
+
color: var(--tv-muted);
|
|
406
|
+
width: 14px;
|
|
407
|
+
height: 14px;
|
|
408
|
+
}
|
|
409
|
+
.tv-group strong.tv-group-total {
|
|
410
|
+
margin-inline-start: 16px;
|
|
411
|
+
}
|
|
412
|
+
.tv-data .tv-virtual tbody tr:not(.tv-spacer) {
|
|
413
|
+
height: 34px;
|
|
414
|
+
}
|
|
415
|
+
.tv-data .tv-virtual td {
|
|
416
|
+
padding-block: 0;
|
|
417
|
+
}
|
|
418
|
+
.tv-data .tv-spacer td {
|
|
419
|
+
border: 0;
|
|
420
|
+
padding: 0;
|
|
421
|
+
pointer-events: none;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.tv-foot {
|
|
425
|
+
border-top: 1px solid var(--tv-line);
|
|
426
|
+
border-bottom: 0;
|
|
427
|
+
font-size: 13px;
|
|
428
|
+
color: var(--tv-muted);
|
|
429
|
+
}
|
|
430
|
+
.tv-foot strong {
|
|
431
|
+
color: var(--tv-ink);
|
|
432
|
+
}
|
|
433
|
+
.tv-foot .tv-actions {
|
|
434
|
+
margin-inline-start: auto;
|
|
435
|
+
}
|
|
436
|
+
.tv-foot button {
|
|
437
|
+
min-height: 28px;
|
|
438
|
+
padding-block: 2px;
|
|
439
|
+
font-size: 13px;
|
|
440
|
+
}
|
|
441
|
+
.tv-status:not(:empty) {
|
|
442
|
+
padding: 8px 20px;
|
|
443
|
+
background: var(--tv-tint);
|
|
444
|
+
}
|
|
445
|
+
.tv-empty {
|
|
446
|
+
margin: clamp(20px, 10vh, 100px) auto;
|
|
447
|
+
width: fit-content;
|
|
448
|
+
max-width: 90%;
|
|
449
|
+
padding: 24px;
|
|
450
|
+
text-align: center;
|
|
451
|
+
}
|
|
452
|
+
.tv-empty h2 {
|
|
453
|
+
font-size: 24px;
|
|
454
|
+
margin: 0;
|
|
455
|
+
}
|
|
456
|
+
.tv-empty p {
|
|
457
|
+
color: var(--tv-muted);
|
|
458
|
+
}
|
|
459
|
+
.tv-empty button {
|
|
460
|
+
margin: 6px 4px 0;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/* Column menu: anchored to its header button, above the records. */
|
|
464
|
+
.tv-menu {
|
|
465
|
+
position: absolute;
|
|
466
|
+
z-index: 20;
|
|
467
|
+
min-width: 200px;
|
|
468
|
+
max-width: calc(100% - 16px);
|
|
469
|
+
padding: 5px;
|
|
470
|
+
border: 1px solid var(--tv-line);
|
|
471
|
+
border-radius: 9px;
|
|
472
|
+
background: var(--tv-bg);
|
|
473
|
+
box-shadow: var(--tv-shadow);
|
|
474
|
+
}
|
|
475
|
+
.tv-root .tv-menu-item {
|
|
476
|
+
display: flex;
|
|
477
|
+
width: 100%;
|
|
478
|
+
justify-content: flex-start;
|
|
479
|
+
gap: 10px;
|
|
480
|
+
min-height: 32px;
|
|
481
|
+
padding: 5px 10px;
|
|
482
|
+
border: 0;
|
|
483
|
+
border-radius: 5px;
|
|
484
|
+
background: transparent;
|
|
485
|
+
font-weight: 450;
|
|
486
|
+
text-align: start;
|
|
487
|
+
}
|
|
488
|
+
.tv-menu-item .tv-icon {
|
|
489
|
+
color: var(--tv-muted);
|
|
490
|
+
}
|
|
491
|
+
.tv-root .tv-menu-item:hover,
|
|
492
|
+
.tv-root .tv-menu-item:focus-visible {
|
|
493
|
+
background: var(--tv-tint);
|
|
494
|
+
outline: none;
|
|
495
|
+
}
|
|
496
|
+
.tv-menu-item[aria-checked='true'] {
|
|
497
|
+
font-weight: 650;
|
|
498
|
+
}
|
|
499
|
+
.tv-menu-item[aria-checked='true'] .tv-icon {
|
|
500
|
+
color: var(--tv-ink);
|
|
501
|
+
}
|
|
502
|
+
.tv-menu-sep {
|
|
503
|
+
height: 1px;
|
|
504
|
+
margin: 4px 6px;
|
|
505
|
+
background: var(--tv-line);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/* Dialogs. */
|
|
509
|
+
.tv-dialog {
|
|
510
|
+
color: var(--tv-ink);
|
|
511
|
+
background: var(--tv-bg);
|
|
512
|
+
border: 1px solid var(--tv-line);
|
|
513
|
+
border-radius: 12px;
|
|
514
|
+
padding: 0;
|
|
515
|
+
width: min(460px, calc(100vw - 24px));
|
|
516
|
+
max-height: 85dvh;
|
|
517
|
+
overflow: auto;
|
|
518
|
+
box-shadow: var(--tv-shadow);
|
|
519
|
+
}
|
|
520
|
+
.tv-dialog::backdrop {
|
|
521
|
+
background: #1414144d;
|
|
522
|
+
}
|
|
523
|
+
.tv-dialog header {
|
|
524
|
+
position: sticky;
|
|
525
|
+
top: 0;
|
|
526
|
+
z-index: 1;
|
|
527
|
+
display: flex;
|
|
528
|
+
align-items: center;
|
|
529
|
+
justify-content: space-between;
|
|
530
|
+
gap: 12px;
|
|
531
|
+
padding: 14px 14px 10px 20px;
|
|
532
|
+
background: var(--tv-bg);
|
|
533
|
+
}
|
|
534
|
+
.tv-dialog h2 {
|
|
535
|
+
margin: 0;
|
|
536
|
+
font-size: 17px;
|
|
537
|
+
overflow-wrap: anywhere;
|
|
538
|
+
}
|
|
539
|
+
.tv-form {
|
|
540
|
+
display: grid;
|
|
541
|
+
gap: 14px;
|
|
542
|
+
padding: 4px 20px 16px;
|
|
543
|
+
}
|
|
544
|
+
.tv-form label {
|
|
545
|
+
display: grid;
|
|
546
|
+
gap: 5px;
|
|
547
|
+
}
|
|
548
|
+
.tv-form label > span {
|
|
549
|
+
color: var(--tv-muted);
|
|
550
|
+
font-size: 13px;
|
|
551
|
+
font-weight: 550;
|
|
552
|
+
}
|
|
553
|
+
.tv-form label.tv-check {
|
|
554
|
+
display: flex;
|
|
555
|
+
align-items: center;
|
|
556
|
+
gap: 8px;
|
|
557
|
+
}
|
|
558
|
+
.tv-form label.tv-check > span {
|
|
559
|
+
order: 2;
|
|
560
|
+
color: var(--tv-ink);
|
|
561
|
+
font-size: 14px;
|
|
562
|
+
font-weight: 400;
|
|
563
|
+
}
|
|
564
|
+
.tv-form input:not([type='checkbox']),
|
|
565
|
+
.tv-form select,
|
|
566
|
+
.tv-form textarea {
|
|
567
|
+
width: 100%;
|
|
568
|
+
}
|
|
569
|
+
.tv-form > button.tv-link {
|
|
570
|
+
justify-self: start;
|
|
571
|
+
margin-top: -6px;
|
|
572
|
+
}
|
|
573
|
+
.tv-form output {
|
|
574
|
+
white-space: pre-wrap;
|
|
575
|
+
overflow-wrap: anywhere;
|
|
576
|
+
padding: 5px 0 7px;
|
|
577
|
+
border-bottom: 1px solid var(--tv-line);
|
|
578
|
+
}
|
|
579
|
+
.tv-dialog-actions {
|
|
580
|
+
position: sticky;
|
|
581
|
+
bottom: 0;
|
|
582
|
+
display: flex;
|
|
583
|
+
flex-wrap: wrap;
|
|
584
|
+
justify-content: flex-end;
|
|
585
|
+
gap: 8px;
|
|
586
|
+
padding: 12px 20px;
|
|
587
|
+
border-top: 1px solid var(--tv-line);
|
|
588
|
+
background: var(--tv-base);
|
|
589
|
+
}
|
|
590
|
+
.tv-dialog-actions .tv-danger {
|
|
591
|
+
margin-inline-end: auto;
|
|
592
|
+
}
|
|
593
|
+
.tv-error:empty {
|
|
594
|
+
display: none;
|
|
595
|
+
}
|
|
596
|
+
.tv-error {
|
|
597
|
+
color: var(--tv-danger);
|
|
598
|
+
margin: 0 20px 12px;
|
|
599
|
+
}
|
|
600
|
+
.tv-column {
|
|
601
|
+
display: flex;
|
|
602
|
+
align-items: center;
|
|
603
|
+
gap: 8px;
|
|
604
|
+
border-bottom: 1px solid var(--tv-line);
|
|
605
|
+
padding: 6px 0;
|
|
606
|
+
}
|
|
607
|
+
.tv-column > *:first-child {
|
|
608
|
+
flex: 1;
|
|
609
|
+
min-width: 0;
|
|
610
|
+
}
|
|
611
|
+
.tv-form .tv-column label {
|
|
612
|
+
display: flex;
|
|
613
|
+
align-items: center;
|
|
614
|
+
gap: 6px;
|
|
615
|
+
}
|
|
616
|
+
.tv-form .tv-column label > span {
|
|
617
|
+
order: 2;
|
|
618
|
+
font-size: 13px;
|
|
619
|
+
}
|
|
620
|
+
.tv-form .tv-column > label:first-child > span {
|
|
621
|
+
color: var(--tv-ink);
|
|
622
|
+
font-size: 14px;
|
|
623
|
+
overflow: hidden;
|
|
624
|
+
text-overflow: ellipsis;
|
|
625
|
+
white-space: nowrap;
|
|
626
|
+
}
|
|
627
|
+
.tv-form .tv-column input:not([type='checkbox']) {
|
|
628
|
+
width: 5.5em;
|
|
629
|
+
min-width: 0;
|
|
630
|
+
}
|
|
631
|
+
.tv-form .tv-column input:not([type='checkbox']):last-of-type {
|
|
632
|
+
width: 7em;
|
|
633
|
+
}
|
|
634
|
+
.tv-column button {
|
|
635
|
+
padding-inline: 8px;
|
|
636
|
+
}
|
|
637
|
+
.tv-values {
|
|
638
|
+
max-height: 45vh;
|
|
639
|
+
overflow: auto;
|
|
640
|
+
border: 1px solid var(--tv-line);
|
|
641
|
+
border-radius: 6px;
|
|
642
|
+
padding: 4px;
|
|
643
|
+
}
|
|
644
|
+
.tv-form .tv-values label {
|
|
645
|
+
padding: 5px 6px;
|
|
646
|
+
border-radius: 4px;
|
|
647
|
+
}
|
|
648
|
+
.tv-form .tv-values label > span {
|
|
649
|
+
color: var(--tv-ink);
|
|
650
|
+
font-size: 14px;
|
|
651
|
+
font-weight: 400;
|
|
652
|
+
}
|
|
653
|
+
.tv-values label:hover {
|
|
654
|
+
background: var(--tv-tint);
|
|
655
|
+
}
|
|
656
|
+
.tv-chart {
|
|
657
|
+
display: grid;
|
|
658
|
+
grid-template-columns: auto 1fr auto;
|
|
659
|
+
gap: 6px 10px;
|
|
660
|
+
align-items: center;
|
|
661
|
+
margin: 8px 0;
|
|
662
|
+
}
|
|
663
|
+
.tv-chart figcaption {
|
|
664
|
+
grid-column: 1/-1;
|
|
665
|
+
font-weight: 600;
|
|
666
|
+
}
|
|
667
|
+
.tv-chart-track span {
|
|
668
|
+
display: block;
|
|
669
|
+
height: 10px;
|
|
670
|
+
border-radius: 2px;
|
|
671
|
+
background: var(--tv-accent);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
@media (max-width: 600px) {
|
|
675
|
+
.tv-head,
|
|
676
|
+
.tv-tools,
|
|
677
|
+
.tv-chips,
|
|
678
|
+
.tv-foot {
|
|
679
|
+
padding: 7px 10px;
|
|
680
|
+
gap: 6px;
|
|
681
|
+
}
|
|
682
|
+
.tv-tools input[type='search'] {
|
|
683
|
+
max-width: none;
|
|
684
|
+
flex-basis: 100%;
|
|
685
|
+
}
|
|
686
|
+
/* Commands stay on one line that scrolls sideways, so the records keep most of the screen. */
|
|
687
|
+
.tv-head {
|
|
688
|
+
flex-wrap: wrap;
|
|
689
|
+
gap: 6px;
|
|
690
|
+
}
|
|
691
|
+
.tv-head .tv-actions {
|
|
692
|
+
flex-wrap: nowrap;
|
|
693
|
+
overflow-x: auto;
|
|
694
|
+
scrollbar-width: none;
|
|
695
|
+
}
|
|
696
|
+
.tv-head .tv-actions {
|
|
697
|
+
width: 100%;
|
|
698
|
+
}
|
|
699
|
+
.tv-head .tv-actions > * {
|
|
700
|
+
flex: none;
|
|
701
|
+
}
|
|
702
|
+
.tv-root button,
|
|
703
|
+
.tv-root select,
|
|
704
|
+
.tv-root input:not([type='checkbox'], [type='radio']) {
|
|
705
|
+
min-height: 36px;
|
|
706
|
+
}
|
|
707
|
+
.tv-foot .tv-actions {
|
|
708
|
+
margin-inline-start: 0;
|
|
709
|
+
}
|
|
710
|
+
.tv-dialog {
|
|
711
|
+
width: calc(100vw - 16px);
|
|
712
|
+
max-height: 92dvh;
|
|
713
|
+
}
|
|
714
|
+
.tv-data td,
|
|
715
|
+
.tv-data th {
|
|
716
|
+
padding-inline: 9px;
|
|
717
|
+
}
|
|
718
|
+
.tv-column {
|
|
719
|
+
flex-wrap: wrap;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
@media (prefers-reduced-motion: reduce) {
|
|
723
|
+
.tv-root button {
|
|
724
|
+
transition: none;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/* Remote rows that are still loading keep their height and show a quiet placeholder. */
|
|
729
|
+
.tv-data tr.tv-loading td {
|
|
730
|
+
height: 34px;
|
|
731
|
+
}
|
|
732
|
+
.tv-skeleton {
|
|
733
|
+
display: block;
|
|
734
|
+
height: 10px;
|
|
735
|
+
width: 70%;
|
|
736
|
+
min-width: 2em;
|
|
737
|
+
border-radius: 5px;
|
|
738
|
+
background: linear-gradient(90deg, var(--tv-tint) 0%, var(--tv-line) 50%, var(--tv-tint) 100%) 0 0 / 200% 100%;
|
|
739
|
+
animation: tv-shimmer 1.2s linear infinite;
|
|
740
|
+
}
|
|
741
|
+
.tv-number .tv-skeleton,
|
|
742
|
+
td:nth-child(3n) .tv-skeleton {
|
|
743
|
+
width: 45%;
|
|
744
|
+
}
|
|
745
|
+
@keyframes tv-shimmer {
|
|
746
|
+
to {
|
|
747
|
+
background-position: -200% 0;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
@media (prefers-reduced-motion: reduce) {
|
|
751
|
+
.tv-skeleton {
|
|
752
|
+
animation: none;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/* A one-line explanation above the toolbar, as the standalone examples show. */
|
|
757
|
+
.tv-hint {
|
|
758
|
+
display: flex;
|
|
759
|
+
align-items: center;
|
|
760
|
+
gap: 8px;
|
|
761
|
+
padding: 6px 12px 6px 20px;
|
|
762
|
+
border-bottom: 1px solid var(--tv-line);
|
|
763
|
+
background: var(--tv-tint);
|
|
764
|
+
font-size: 13px;
|
|
765
|
+
}
|
|
766
|
+
.tv-hint > span {
|
|
767
|
+
flex: 1;
|
|
768
|
+
min-width: 0;
|
|
769
|
+
}
|
|
770
|
+
.tv-root .tv-hint button.tv-icon-btn {
|
|
771
|
+
width: 28px;
|
|
772
|
+
min-height: 28px;
|
|
773
|
+
}
|
|
774
|
+
@media (max-width: 600px) {
|
|
775
|
+
.tv-hint {
|
|
776
|
+
padding-inline-start: 10px;
|
|
777
|
+
font-size: 12.5px;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/* Column edges resize; headings drag to a new place. */
|
|
782
|
+
.tv-resize {
|
|
783
|
+
position: absolute;
|
|
784
|
+
top: 0;
|
|
785
|
+
bottom: 0;
|
|
786
|
+
inset-inline-end: 0;
|
|
787
|
+
width: 7px;
|
|
788
|
+
cursor: col-resize;
|
|
789
|
+
touch-action: none;
|
|
790
|
+
z-index: 1;
|
|
791
|
+
}
|
|
792
|
+
.tv-resize::after {
|
|
793
|
+
content: '';
|
|
794
|
+
position: absolute;
|
|
795
|
+
top: 25%;
|
|
796
|
+
bottom: 25%;
|
|
797
|
+
inset-inline-end: 0;
|
|
798
|
+
width: 2px;
|
|
799
|
+
border-radius: 1px;
|
|
800
|
+
background: transparent;
|
|
801
|
+
}
|
|
802
|
+
.tv-data th:hover .tv-resize::after {
|
|
803
|
+
background: var(--tv-line);
|
|
804
|
+
}
|
|
805
|
+
.tv-data th .tv-resize:hover::after,
|
|
806
|
+
.tv-resizing .tv-resize::after {
|
|
807
|
+
background: var(--tv-accent);
|
|
808
|
+
}
|
|
809
|
+
.tv-resizing,
|
|
810
|
+
.tv-resizing * {
|
|
811
|
+
cursor: col-resize !important;
|
|
812
|
+
user-select: none;
|
|
813
|
+
}
|
|
814
|
+
.tv-moving,
|
|
815
|
+
.tv-moving * {
|
|
816
|
+
cursor: grabbing !important;
|
|
817
|
+
user-select: none;
|
|
818
|
+
}
|
|
819
|
+
.tv-drag-ghost {
|
|
820
|
+
position: absolute;
|
|
821
|
+
z-index: 30;
|
|
822
|
+
pointer-events: none;
|
|
823
|
+
padding: 4px 10px;
|
|
824
|
+
border: 1px solid var(--tv-line);
|
|
825
|
+
border-radius: 6px;
|
|
826
|
+
background: var(--tv-bg);
|
|
827
|
+
box-shadow: var(--tv-shadow);
|
|
828
|
+
font-size: 13px;
|
|
829
|
+
font-weight: 600;
|
|
830
|
+
}
|
|
831
|
+
.tv-drop-marker {
|
|
832
|
+
position: absolute;
|
|
833
|
+
z-index: 29;
|
|
834
|
+
width: 2px;
|
|
835
|
+
pointer-events: none;
|
|
836
|
+
background: var(--tv-accent);
|
|
837
|
+
}
|
|
838
|
+
@media (hover: none) {
|
|
839
|
+
.tv-resize {
|
|
840
|
+
width: 14px;
|
|
841
|
+
}
|
|
842
|
+
.tv-resize::after {
|
|
843
|
+
background: var(--tv-line);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
/* Row selection. */
|
|
848
|
+
.tv-data td.tv-row-action,
|
|
849
|
+
.tv-data th.tv-row-action {
|
|
850
|
+
white-space: nowrap;
|
|
851
|
+
}
|
|
852
|
+
.tv-data .tv-row-action input[type='checkbox'] {
|
|
853
|
+
vertical-align: middle;
|
|
854
|
+
margin-inline: 4px 2px;
|
|
855
|
+
}
|
|
856
|
+
.tv-data .tv-row-action > * + button {
|
|
857
|
+
vertical-align: middle;
|
|
858
|
+
}
|
|
859
|
+
.tv-data tbody tr.tv-row-selected td {
|
|
860
|
+
background: color-mix(in srgb, var(--tv-accent) 9%, var(--tv-bg));
|
|
861
|
+
}
|
|
862
|
+
.tv-data tbody tr.tv-row-selected:hover td {
|
|
863
|
+
background: color-mix(in srgb, var(--tv-accent) 14%, var(--tv-bg));
|
|
864
|
+
}
|
|
865
|
+
.tv-selection-status {
|
|
866
|
+
display: inline-flex;
|
|
867
|
+
align-items: center;
|
|
868
|
+
gap: 4px;
|
|
869
|
+
color: var(--tv-ink);
|
|
870
|
+
}
|
|
871
|
+
.tv-selection-status:empty {
|
|
872
|
+
display: none;
|
|
873
|
+
}
|
|
874
|
+
.tv-root .tv-selection-status button.tv-link {
|
|
875
|
+
min-height: 24px;
|
|
876
|
+
padding-block: 0;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
/* Totals row: pinned to the bottom of the records. */
|
|
880
|
+
.tv-data tfoot td,
|
|
881
|
+
.tv-data tfoot th {
|
|
882
|
+
position: sticky;
|
|
883
|
+
bottom: 0;
|
|
884
|
+
z-index: 2;
|
|
885
|
+
background: var(--tv-base);
|
|
886
|
+
border-top: 1px solid var(--tv-line);
|
|
887
|
+
border-bottom: 0;
|
|
888
|
+
padding-block: 2px;
|
|
889
|
+
font-weight: 600;
|
|
890
|
+
}
|
|
891
|
+
.tv-data tfoot .tv-pinned {
|
|
892
|
+
z-index: 3;
|
|
893
|
+
}
|
|
894
|
+
.tv-data tfoot th .tv-icon {
|
|
895
|
+
color: var(--tv-muted);
|
|
896
|
+
vertical-align: middle;
|
|
897
|
+
margin-inline-start: 6px;
|
|
898
|
+
}
|
|
899
|
+
.tv-root .tv-data button.tv-total {
|
|
900
|
+
width: 100%;
|
|
901
|
+
min-height: 28px;
|
|
902
|
+
justify-content: flex-start;
|
|
903
|
+
gap: 6px;
|
|
904
|
+
padding: 2px 4px;
|
|
905
|
+
border: 0;
|
|
906
|
+
background: transparent;
|
|
907
|
+
font-weight: 600;
|
|
908
|
+
color: var(--tv-ink);
|
|
909
|
+
}
|
|
910
|
+
.tv-root .tv-data .tv-number button.tv-total {
|
|
911
|
+
justify-content: flex-end;
|
|
912
|
+
}
|
|
913
|
+
.tv-root .tv-data button.tv-total:hover {
|
|
914
|
+
background: var(--tv-tint);
|
|
915
|
+
}
|
|
916
|
+
.tv-total-kind {
|
|
917
|
+
color: var(--tv-muted);
|
|
918
|
+
font-size: 11.5px;
|
|
919
|
+
font-weight: 500;
|
|
920
|
+
}
|
|
921
|
+
.tv-total-value {
|
|
922
|
+
overflow: hidden;
|
|
923
|
+
text-overflow: ellipsis;
|
|
924
|
+
}
|
|
925
|
+
.tv-root button[aria-pressed='true'] {
|
|
926
|
+
background: var(--tv-tint);
|
|
927
|
+
border-color: var(--tv-muted);
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/* Conditional formatting colours: soft fills that keep the text readable in both themes. */
|
|
931
|
+
.tv-root {
|
|
932
|
+
--tv-cf-good-bg: light-dark(#d9f2e1, #1d4a2c);
|
|
933
|
+
--tv-cf-good-ink: light-dark(#14532d, #bff0cd);
|
|
934
|
+
--tv-cf-bad-bg: light-dark(#fde0dd, #5c2420);
|
|
935
|
+
--tv-cf-bad-ink: light-dark(#8a1c12, #ffc9c3);
|
|
936
|
+
--tv-cf-warn-bg: light-dark(#fcefc9, #4f3d12);
|
|
937
|
+
--tv-cf-warn-ink: light-dark(#6b4a00, #ffe3a3);
|
|
938
|
+
--tv-cf-info-bg: light-dark(#dde9fb, #1d3558);
|
|
939
|
+
--tv-cf-info-ink: light-dark(#163d7a, #c8dcfc);
|
|
940
|
+
--tv-cf-bar: light-dark(#a9c7ef, #35609c);
|
|
941
|
+
--tv-cf-bar-negative: light-dark(#f2b3ad, #8c3f38);
|
|
942
|
+
--tv-cf-low: light-dark(#f7c6c0, #6a2d27);
|
|
943
|
+
--tv-cf-mid: light-dark(#fbe8b8, #594818);
|
|
944
|
+
--tv-cf-high: light-dark(#c3e6cc, #22513a);
|
|
945
|
+
}
|
|
946
|
+
.tv-data td.tv-cf-bar {
|
|
947
|
+
background-repeat: no-repeat;
|
|
948
|
+
background-size: 100% 62%;
|
|
949
|
+
background-position: center;
|
|
950
|
+
}
|
|
951
|
+
.tv-swatch {
|
|
952
|
+
flex: none;
|
|
953
|
+
width: 28px;
|
|
954
|
+
height: 18px;
|
|
955
|
+
border-radius: 4px;
|
|
956
|
+
border: 1px solid var(--tv-line);
|
|
957
|
+
background-repeat: no-repeat;
|
|
958
|
+
}
|
|
959
|
+
.tv-rule-list {
|
|
960
|
+
display: grid;
|
|
961
|
+
}
|
|
962
|
+
.tv-rule-list .tv-column > span:nth-child(2) {
|
|
963
|
+
flex: 1;
|
|
964
|
+
min-width: 0;
|
|
965
|
+
overflow: hidden;
|
|
966
|
+
text-overflow: ellipsis;
|
|
967
|
+
white-space: nowrap;
|
|
968
|
+
}
|
|
969
|
+
.tv-muted {
|
|
970
|
+
color: var(--tv-muted);
|
|
971
|
+
margin: 0;
|
|
972
|
+
}
|
|
973
|
+
.tv-form > button.tv-add-rule {
|
|
974
|
+
justify-self: start;
|
|
975
|
+
}
|
|
976
|
+
.tv-rule-list .tv-swatch {
|
|
977
|
+
flex: none;
|
|
978
|
+
}
|
|
979
|
+
.tv-data tfoot .tv-pinned {
|
|
980
|
+
background: var(--tv-base);
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
/* Master/detail: one record's panel under its row. */
|
|
984
|
+
.tv-data tr.tv-detail > td {
|
|
985
|
+
padding: 0;
|
|
986
|
+
background: var(--tv-base);
|
|
987
|
+
max-width: none;
|
|
988
|
+
white-space: normal;
|
|
989
|
+
overflow: visible;
|
|
990
|
+
}
|
|
991
|
+
.tv-detail-panel {
|
|
992
|
+
position: sticky;
|
|
993
|
+
inset-inline-start: 0;
|
|
994
|
+
max-height: 360px;
|
|
995
|
+
overflow: auto;
|
|
996
|
+
padding: 12px 16px 14px 44px;
|
|
997
|
+
box-shadow: inset 0 6px 8px -8px light-dark(#0000002e, #00000080);
|
|
998
|
+
}
|
|
999
|
+
.tv-data tbody tr.tv-detail:hover td {
|
|
1000
|
+
background: var(--tv-base);
|
|
1001
|
+
}
|
|
1002
|
+
.tv-root .tv-data td button.tv-expand {
|
|
1003
|
+
width: 26px;
|
|
1004
|
+
min-height: 26px;
|
|
1005
|
+
}
|
|
1006
|
+
.tv-expand[aria-expanded='true'] {
|
|
1007
|
+
color: var(--tv-ink);
|
|
1008
|
+
}
|
|
1009
|
+
@media (max-width: 600px) {
|
|
1010
|
+
.tv-detail-panel {
|
|
1011
|
+
padding-inline-start: 12px;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
/* The panel is as wide as the visible records and stays in view while they scroll sideways. */
|
|
1015
|
+
.tv-data {
|
|
1016
|
+
container-type: inline-size;
|
|
1017
|
+
}
|
|
1018
|
+
.tv-detail-panel {
|
|
1019
|
+
width: calc(100cqw - 2px);
|
|
1020
|
+
}
|
|
1021
|
+
.tv-data td.tv-row-action > * {
|
|
1022
|
+
vertical-align: middle;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
/* Filter row: one input per column under the headings. */
|
|
1026
|
+
.tv-data .tv-filter-row th {
|
|
1027
|
+
padding: 3px 6px 5px;
|
|
1028
|
+
background: var(--tv-base);
|
|
1029
|
+
}
|
|
1030
|
+
.tv-root .tv-data .tv-filter-row input {
|
|
1031
|
+
width: 100%;
|
|
1032
|
+
min-width: 4em;
|
|
1033
|
+
min-height: 26px;
|
|
1034
|
+
padding: 2px 7px;
|
|
1035
|
+
font-size: 12.5px;
|
|
1036
|
+
font-weight: 400;
|
|
1037
|
+
color: var(--tv-ink);
|
|
1038
|
+
}
|
|
1039
|
+
.tv-data .tv-filter-row th.tv-number input {
|
|
1040
|
+
text-align: end;
|
|
1041
|
+
}
|
|
1042
|
+
.tv-data .tv-filter-row input::placeholder {
|
|
1043
|
+
color: var(--tv-muted);
|
|
1044
|
+
opacity: 0.7;
|
|
1045
|
+
}
|
|
1046
|
+
.tv-root .tv-data .tv-filter-row .tv-row-action button {
|
|
1047
|
+
width: 26px;
|
|
1048
|
+
min-height: 26px;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
/* In-cell editor. */
|
|
1052
|
+
.tv-data td.tv-editing {
|
|
1053
|
+
padding: 0;
|
|
1054
|
+
overflow: visible;
|
|
1055
|
+
}
|
|
1056
|
+
.tv-root .tv-data input.tv-cell-editor {
|
|
1057
|
+
width: 100%;
|
|
1058
|
+
min-width: 6em;
|
|
1059
|
+
min-height: 33px;
|
|
1060
|
+
height: 100%;
|
|
1061
|
+
border-radius: 0;
|
|
1062
|
+
border: 2px solid var(--tv-accent);
|
|
1063
|
+
padding: 2px 10px;
|
|
1064
|
+
background: var(--tv-bg);
|
|
1065
|
+
text-align: inherit;
|
|
1066
|
+
}
|
|
1067
|
+
.tv-root .tv-data input.tv-cell-editor[aria-invalid='true'] {
|
|
1068
|
+
border-color: var(--tv-danger);
|
|
1069
|
+
}
|
|
1070
|
+
.tv-root button.tv-toggle .tv-icon {
|
|
1071
|
+
color: var(--tv-muted);
|
|
1072
|
+
}
|
|
1073
|
+
.tv-root button.tv-toggle[aria-pressed='true'] .tv-icon {
|
|
1074
|
+
color: var(--tv-ink);
|
|
1075
|
+
}
|
|
1076
|
+
@media (max-width: 600px) {
|
|
1077
|
+
.tv-root button.tv-toggle {
|
|
1078
|
+
padding-inline: 9px;
|
|
1079
|
+
}
|
|
1080
|
+
.tv-toggle .tv-label {
|
|
1081
|
+
position: absolute;
|
|
1082
|
+
width: 1px;
|
|
1083
|
+
height: 1px;
|
|
1084
|
+
overflow: hidden;
|
|
1085
|
+
clip-path: inset(50%);
|
|
1086
|
+
white-space: nowrap;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/* Gap cells stand in for columns that aren't drawn. */
|
|
1091
|
+
.tv-data .tv-gap {
|
|
1092
|
+
padding: 0;
|
|
1093
|
+
}
|
|
1094
|
+
.tv-sort-space {
|
|
1095
|
+
display: inline-block;
|
|
1096
|
+
width: 13px;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
/* Cheaper row layout: an explicit alignment and a CSS icon for the per-row details button. */
|
|
1100
|
+
.tv-data td {
|
|
1101
|
+
vertical-align: middle;
|
|
1102
|
+
}
|
|
1103
|
+
.tv-open-btn::before {
|
|
1104
|
+
content: '';
|
|
1105
|
+
width: 14px;
|
|
1106
|
+
height: 14px;
|
|
1107
|
+
background: currentColor;
|
|
1108
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h4v4M13 3L7.5 8.5M11 9.5V13H3V5h3.5'/%3E%3C/svg%3E")
|
|
1109
|
+
center / contain no-repeat;
|
|
1110
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h4v4M13 3L7.5 8.5M11 9.5V13H3V5h3.5'/%3E%3C/svg%3E")
|
|
1111
|
+
center / contain no-repeat;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
/* The loading panel: it covers the records area while a slow load runs, over the rows it replaces. */
|
|
1115
|
+
.tv-loader {
|
|
1116
|
+
position: absolute;
|
|
1117
|
+
inset-inline: 0;
|
|
1118
|
+
z-index: 6;
|
|
1119
|
+
display: grid;
|
|
1120
|
+
place-items: center;
|
|
1121
|
+
padding: 16px;
|
|
1122
|
+
background: color-mix(in srgb, var(--tv-bg) 72%, transparent);
|
|
1123
|
+
backdrop-filter: blur(1.5px);
|
|
1124
|
+
}
|
|
1125
|
+
.tv-loader-panel {
|
|
1126
|
+
display: grid;
|
|
1127
|
+
justify-items: center;
|
|
1128
|
+
gap: 10px;
|
|
1129
|
+
width: min(360px, 100%);
|
|
1130
|
+
padding: 22px 22px 18px;
|
|
1131
|
+
border: 1px solid var(--tv-line);
|
|
1132
|
+
border-radius: 12px;
|
|
1133
|
+
background: var(--tv-bg);
|
|
1134
|
+
box-shadow: var(--tv-shadow);
|
|
1135
|
+
text-align: center;
|
|
1136
|
+
}
|
|
1137
|
+
.tv-loader-title {
|
|
1138
|
+
margin: 0;
|
|
1139
|
+
max-width: 100%;
|
|
1140
|
+
font-weight: 600;
|
|
1141
|
+
overflow-wrap: anywhere;
|
|
1142
|
+
}
|
|
1143
|
+
.tv-loader-detail {
|
|
1144
|
+
margin: 0;
|
|
1145
|
+
min-height: 1.45em;
|
|
1146
|
+
color: var(--tv-muted);
|
|
1147
|
+
font-size: 13px;
|
|
1148
|
+
font-variant-numeric: tabular-nums;
|
|
1149
|
+
}
|
|
1150
|
+
.tv-spinner {
|
|
1151
|
+
width: 28px;
|
|
1152
|
+
height: 28px;
|
|
1153
|
+
border: 3px solid var(--tv-line);
|
|
1154
|
+
border-top-color: var(--tv-accent);
|
|
1155
|
+
border-radius: 50%;
|
|
1156
|
+
animation: tv-spin 0.8s linear infinite;
|
|
1157
|
+
}
|
|
1158
|
+
.tv-loader-bar {
|
|
1159
|
+
position: relative;
|
|
1160
|
+
width: 100%;
|
|
1161
|
+
height: 6px;
|
|
1162
|
+
border-radius: 3px;
|
|
1163
|
+
overflow: hidden;
|
|
1164
|
+
background: var(--tv-tint);
|
|
1165
|
+
}
|
|
1166
|
+
.tv-loader-bar > span {
|
|
1167
|
+
position: absolute;
|
|
1168
|
+
inset-block: 0;
|
|
1169
|
+
inset-inline-start: 0;
|
|
1170
|
+
width: 0;
|
|
1171
|
+
border-radius: inherit;
|
|
1172
|
+
background: var(--tv-accent);
|
|
1173
|
+
transition: width 0.15s linear;
|
|
1174
|
+
}
|
|
1175
|
+
/* An unknown total: a band slides along the bar. */
|
|
1176
|
+
.tv-loader-bar.tv-indeterminate > span {
|
|
1177
|
+
width: 35%;
|
|
1178
|
+
transition: none;
|
|
1179
|
+
animation: tv-slide 1.3s ease-in-out infinite;
|
|
1180
|
+
}
|
|
1181
|
+
.tv-loader-cancel {
|
|
1182
|
+
margin-top: 2px;
|
|
1183
|
+
}
|
|
1184
|
+
@keyframes tv-spin {
|
|
1185
|
+
to {
|
|
1186
|
+
transform: rotate(1turn);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
@keyframes tv-slide {
|
|
1190
|
+
from {
|
|
1191
|
+
transform: translateX(-100%);
|
|
1192
|
+
}
|
|
1193
|
+
to {
|
|
1194
|
+
transform: translateX(290%);
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1198
|
+
.tv-spinner {
|
|
1199
|
+
animation-duration: 2.4s;
|
|
1200
|
+
}
|
|
1201
|
+
.tv-loader-bar.tv-indeterminate > span {
|
|
1202
|
+
animation: none;
|
|
1203
|
+
width: 100%;
|
|
1204
|
+
opacity: 0.35;
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
`;export{n as default};
|