intable 0.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.
Files changed (74) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +22 -0
  3. package/dist/chevron-right.js +8 -0
  4. package/dist/components/Columns.d.ts +3 -0
  5. package/dist/components/Columns.js +105 -0
  6. package/dist/components/DocTree.d.ts +4 -0
  7. package/dist/components/DocTree.js +40 -0
  8. package/dist/components/Menu.d.ts +1 -0
  9. package/dist/components/Menu.js +131 -0
  10. package/dist/components/Popover.d.ts +14 -0
  11. package/dist/components/Popover.js +49 -0
  12. package/dist/components/Render.d.ts +4 -0
  13. package/dist/components/Render.js +21 -0
  14. package/dist/components/Split.d.ts +15 -0
  15. package/dist/components/Split.js +88 -0
  16. package/dist/components/Tree.d.ts +37 -0
  17. package/dist/components/Tree.js +101 -0
  18. package/dist/components/utils.d.ts +3 -0
  19. package/dist/components/utils.js +10 -0
  20. package/dist/demo.d.ts +2 -0
  21. package/dist/demo.js +64 -0
  22. package/dist/hooks/index.d.ts +38 -0
  23. package/dist/hooks/index.js +182 -0
  24. package/dist/hooks/useDir.d.ts +11 -0
  25. package/dist/hooks/useDir.js +59 -0
  26. package/dist/hooks/useVirtualizer.d.ts +25 -0
  27. package/dist/hooks/useVirtualizer.js +92 -0
  28. package/dist/index.d.ts +116 -0
  29. package/dist/index.js +348 -0
  30. package/dist/intable.css +277 -0
  31. package/dist/loading.js +8 -0
  32. package/dist/plugins/CellChangeHighlightPlugin.d.ts +2 -0
  33. package/dist/plugins/CellChangeHighlightPlugin.js +4 -0
  34. package/dist/plugins/CellSelectionPlugin.d.ts +15 -0
  35. package/dist/plugins/CellSelectionPlugin.js +150 -0
  36. package/dist/plugins/CommandPlugin.d.ts +14 -0
  37. package/dist/plugins/CommandPlugin.js +9 -0
  38. package/dist/plugins/CopyPastePlugin.d.ts +14 -0
  39. package/dist/plugins/CopyPastePlugin.js +54 -0
  40. package/dist/plugins/DiffPlugin.d.ts +23 -0
  41. package/dist/plugins/DiffPlugin.js +68 -0
  42. package/dist/plugins/DragColumnPlugin.d.ts +2 -0
  43. package/dist/plugins/DragColumnPlugin.js +4 -0
  44. package/dist/plugins/EditablePlugin.d.ts +49 -0
  45. package/dist/plugins/EditablePlugin.js +191 -0
  46. package/dist/plugins/ExpandPlugin.d.ts +20 -0
  47. package/dist/plugins/ExpandPlugin.js +56 -0
  48. package/dist/plugins/HistoryPlugin.d.ts +10 -0
  49. package/dist/plugins/HistoryPlugin.js +35 -0
  50. package/dist/plugins/MenuPlugin.d.ts +18 -0
  51. package/dist/plugins/MenuPlugin.js +131 -0
  52. package/dist/plugins/RenderPlugin/components.d.ts +5 -0
  53. package/dist/plugins/RenderPlugin/components.js +105 -0
  54. package/dist/plugins/RenderPlugin/index.d.ts +30 -0
  55. package/dist/plugins/RenderPlugin/index.js +61 -0
  56. package/dist/plugins/ResizePlugin.d.ts +27 -0
  57. package/dist/plugins/ResizePlugin.js +103 -0
  58. package/dist/plugins/RowGroupPlugin.d.ts +17 -0
  59. package/dist/plugins/RowGroupPlugin.js +99 -0
  60. package/dist/plugins/RowSelectionPlugin.d.ts +32 -0
  61. package/dist/plugins/RowSelectionPlugin.js +69 -0
  62. package/dist/plugins/VirtualScrollPlugin.d.ts +15 -0
  63. package/dist/plugins/VirtualScrollPlugin.js +121 -0
  64. package/dist/plus.js +8 -0
  65. package/dist/types/auto-imports.d.js +0 -0
  66. package/dist/utils.d.ts +29 -0
  67. package/dist/utils.js +88 -0
  68. package/dist/vite.svg +1 -0
  69. package/dist/wc.d.ts +1 -0
  70. package/dist/wc.js +24 -0
  71. package/dist/web-component.d.ts +1 -0
  72. package/dist/web-component.js +2 -0
  73. package/dist/x.js +8 -0
  74. package/package.json +71 -0
package/dist/index.js ADDED
@@ -0,0 +1,348 @@
1
+ import { unFn } from "./utils.js";
2
+ import { toReactive, useMemo } from "./hooks/index.js";
3
+ /* empty css */
4
+ import { CellSelectionPlugin } from "./plugins/CellSelectionPlugin.js";
5
+ import { ClipboardPlugin } from "./plugins/CopyPastePlugin.js";
6
+ import { EditablePlugin } from "./plugins/EditablePlugin.js";
7
+ import { solidComponent } from "./components/utils.js";
8
+ import { RenderPlugin } from "./plugins/RenderPlugin/index.js";
9
+ import { CommandPlugin } from "./plugins/CommandPlugin.js";
10
+ import { RowSelectionPlugin } from "./plugins/RowSelectionPlugin.js";
11
+ import { createComponent, insert, mergeProps, spread, template, use } from "solid-js/web";
12
+ import { For, createComputed, createContext, createEffect, createMemo, createSignal, getOwner, mapArray, mergeProps as mergeProps$1, on, onCleanup, runWithOwner, useContext } from "solid-js";
13
+ import { createMutable, reconcile } from "solid-js/store";
14
+ import { difference, mapValues, sumBy } from "es-toolkit";
15
+ import { combineProps } from "@solid-primitives/props";
16
+ import { createElementSize } from "@solid-primitives/resize-observer";
17
+ import { createScrollPosition } from "@solid-primitives/scroll";
18
+ var _tmpl$ = /* @__PURE__ */ template(`<table>`), _tmpl$2 = /* @__PURE__ */ template(`<thead>`), _tmpl$3 = /* @__PURE__ */ template(`<tbody>`), _tmpl$4 = /* @__PURE__ */ template(`<tr>`), _tmpl$5 = /* @__PURE__ */ template(`<th>`), _tmpl$6 = /* @__PURE__ */ template(`<td>`), _tmpl$7 = /* @__PURE__ */ template(`<div><div class=data-table__layers></div><table class=data-table--table>`);
19
+ const Ctx = createContext({ props: {} });
20
+ const Table = (props) => {
21
+ props = mergeProps$1({ rowKey: "id" }, props);
22
+ const plugins = createMemo(() => [
23
+ ...defaultsPlugins,
24
+ ...props.plugins || [],
25
+ RenderPlugin
26
+ ].sort((a, b) => (b.priority || 0) - (a.priority || 0)));
27
+ const store = createMutable({
28
+ get rawProps() {
29
+ return props;
30
+ },
31
+ get plugins() {
32
+ return plugins();
33
+ }
34
+ });
35
+ const owner = getOwner();
36
+ createComputed((old) => {
37
+ const added = difference(plugins(), old);
38
+ runWithOwner(owner, () => {
39
+ added.forEach((e) => Object.assign(store, e.store?.(store)));
40
+ });
41
+ return plugins();
42
+ }, []);
43
+ const pluginsProps = mapArray(plugins, () => createSignal({}));
44
+ createComputed(mapArray(plugins, (e, i) => {
45
+ const prev = () => pluginsProps()[i() - 1]?.[0]() || props;
46
+ const ret = mergeProps$1(prev, toReactive(mapValues(e.rewriteProps || {}, (v) => useMemo(() => v(prev(), { store })))));
47
+ pluginsProps()[i()][1](ret);
48
+ }));
49
+ const mProps = toReactive(() => pluginsProps()[pluginsProps().length - 1][0]());
50
+ store.props = mProps;
51
+ const ctx = createMutable({ props: mProps });
52
+ window.store = store;
53
+ window.ctx = ctx;
54
+ return createComponent(Ctx.Provider, {
55
+ value: ctx,
56
+ get children() {
57
+ return createComponent(ctx.props.Table, { get children() {
58
+ return [createComponent(THead, {}), createComponent(TBody, {})];
59
+ } });
60
+ }
61
+ });
62
+ };
63
+ var THead = () => {
64
+ const { props } = useContext(Ctx);
65
+ return createComponent(props.Thead, { get children() {
66
+ return createComponent(props.Tr, { get children() {
67
+ return createComponent(props.EachCells, {
68
+ get each() {
69
+ return props.columns || [];
70
+ },
71
+ children: (col, colIndex) => createComponent(props.Th, {
72
+ col,
73
+ get x() {
74
+ return colIndex();
75
+ },
76
+ get children() {
77
+ return col.name;
78
+ }
79
+ })
80
+ });
81
+ } });
82
+ } });
83
+ };
84
+ var TBody = () => {
85
+ const { props } = useContext(Ctx);
86
+ return createComponent(props.Tbody, { get children() {
87
+ return createComponent(props.EachRows, {
88
+ get each() {
89
+ return props.data;
90
+ },
91
+ children: (row, rowIndex) => createComponent(props.Tr, {
92
+ get y() {
93
+ return rowIndex();
94
+ },
95
+ data: row,
96
+ get children() {
97
+ return createComponent(props.EachCells, {
98
+ get each() {
99
+ return props.columns;
100
+ },
101
+ children: (col, colIndex) => createComponent(props.Td, {
102
+ col,
103
+ get x() {
104
+ return colIndex();
105
+ },
106
+ get y() {
107
+ return rowIndex();
108
+ },
109
+ data: row,
110
+ get children() {
111
+ return row[col.id];
112
+ }
113
+ })
114
+ });
115
+ }
116
+ })
117
+ });
118
+ } });
119
+ };
120
+ function BasePlugin() {
121
+ const omits = {
122
+ col: null,
123
+ data: null
124
+ };
125
+ const table = (o) => (() => {
126
+ var _el$ = _tmpl$();
127
+ spread(_el$, o, false, false);
128
+ return _el$;
129
+ })();
130
+ const thead = (o) => (() => {
131
+ var _el$2 = _tmpl$2();
132
+ spread(_el$2, o, false, false);
133
+ return _el$2;
134
+ })();
135
+ const tbody = (o) => (() => {
136
+ var _el$3 = _tmpl$3();
137
+ spread(_el$3, o, false, false);
138
+ return _el$3;
139
+ })();
140
+ const tr = (o) => (() => {
141
+ var _el$4 = _tmpl$4();
142
+ spread(_el$4, mergeProps(o, omits), false, false);
143
+ return _el$4;
144
+ })();
145
+ const th = (o) => (() => {
146
+ var _el$5 = _tmpl$5();
147
+ spread(_el$5, mergeProps(o, omits), false, false);
148
+ return _el$5;
149
+ })();
150
+ const td = (o) => (() => {
151
+ var _el$6 = _tmpl$6();
152
+ spread(_el$6, mergeProps(o, omits), false, false);
153
+ return _el$6;
154
+ })();
155
+ return {
156
+ priority: Infinity,
157
+ store: (store) => ({
158
+ ths: [],
159
+ thSizes: [],
160
+ trs: [],
161
+ trSizes: [],
162
+ internal: Symbol("internal")
163
+ }),
164
+ rewriteProps: {
165
+ data: ({ data = [] }) => data,
166
+ columns: ({ columns = [] }) => columns,
167
+ newRow: ({ newRow = () => ({}) }) => newRow,
168
+ Table: ({ Table: Table$1 = table }, { store }) => (o) => {
169
+ const [el, setEl] = createSignal();
170
+ const { props } = useContext(Ctx);
171
+ o = combineProps({
172
+ ref: setEl,
173
+ get class() {
174
+ return `data-table ${props.class} ${props.border && "data-table--border"} data-table--${props.size}`;
175
+ },
176
+ get style() {
177
+ return props.style;
178
+ }
179
+ }, o);
180
+ return createComponent(Table$1, o);
181
+ },
182
+ Thead: ({ Thead = thead }, { store }) => (o) => {
183
+ o = combineProps({ ref: (el) => store.thead = el }, o);
184
+ return createComponent(Thead, o);
185
+ },
186
+ Tbody: ({ Tbody = tbody }, { store }) => (o) => {
187
+ o = combineProps({ ref: (el) => store.tbody = el }, o);
188
+ return createComponent(Tbody, o);
189
+ },
190
+ Tr: ({ Tr = tr }, { store }) => (o) => {
191
+ const [el, setEl] = createSignal();
192
+ o = combineProps({ ref: setEl }, o);
193
+ createEffect(() => {
194
+ const { y } = o;
195
+ store.trs[y] = el();
196
+ store.trSizes[y] = createElementSize(el());
197
+ onCleanup(() => store.trSizes[y] = store.trs[y] = void 0);
198
+ });
199
+ return createComponent(Tr, o);
200
+ },
201
+ Th: ({ Th = th }, { store }) => (o) => {
202
+ const [el, setEl] = createSignal();
203
+ const { props } = useContext(Ctx);
204
+ const mProps = combineProps(o, { ref: setEl }, {
205
+ get class() {
206
+ return unFn(props.cellClass, o);
207
+ },
208
+ get style() {
209
+ return unFn(props.cellStyle, o);
210
+ }
211
+ }, {
212
+ get class() {
213
+ return o.col.class;
214
+ },
215
+ get style() {
216
+ return o.col.style;
217
+ }
218
+ }, { get style() {
219
+ return o.col.width ? `width: ${o.col.width}px` : "";
220
+ } });
221
+ createEffect(() => {
222
+ const { x } = o;
223
+ store.ths[x] = el();
224
+ store.thSizes[x] = createElementSize(el());
225
+ onCleanup(() => store.thSizes[x] = store.ths[x] = void 0);
226
+ });
227
+ return createComponent(Th, mergeProps(mProps, { get children() {
228
+ return o.children;
229
+ } }));
230
+ },
231
+ Td: ({ Td = td }, { store }) => (o) => {
232
+ const { props } = useContext(Ctx);
233
+ const mProps = combineProps(o, {
234
+ get class() {
235
+ return unFn(props.cellClass, o);
236
+ },
237
+ get style() {
238
+ return unFn(props.cellStyle, o);
239
+ }
240
+ }, {
241
+ get class() {
242
+ return o.col.class;
243
+ },
244
+ get style() {
245
+ return o.col.style;
246
+ }
247
+ }, { get style() {
248
+ return o.col.width ? `width: ${o.col.width}px` : "";
249
+ } });
250
+ return createComponent(Td, mergeProps(mProps, { get children() {
251
+ return o.children;
252
+ } }));
253
+ },
254
+ EachRows: ({ EachRows }) => EachRows || For,
255
+ EachCells: ({ EachCells }) => EachCells || For,
256
+ renderer: ({ renderer = (a) => a }) => renderer
257
+ }
258
+ };
259
+ }
260
+ var IndexPlugin = {
261
+ store: (store) => ({ $index: {
262
+ name: "",
263
+ id: Symbol("index"),
264
+ fixed: "left",
265
+ [store.internal]: 1,
266
+ width: 40,
267
+ style: "text-align: center",
268
+ class: "index",
269
+ render: solidComponent((o) => o.y + 1)
270
+ } }),
271
+ rewriteProps: { columns: (props, { store }) => store.props?.index ? [store.$index, ...props.columns || []] : props.columns }
272
+ };
273
+ var StickyHeaderPlugin = { rewriteProps: { Thead: ({ Thead }) => (o) => {
274
+ const { props } = useContext(Ctx);
275
+ o = combineProps({ get class() {
276
+ return props.stickyHeader ? "sticky-header" : "";
277
+ } }, o);
278
+ return createComponent(Thead, o);
279
+ } } };
280
+ var FixedColumnPlugin = { rewriteProps: {
281
+ columns: ({ columns }) => [
282
+ ...columns?.filter((e) => e.fixed == "left") || [],
283
+ ...columns?.filter((e) => !e.fixed) || [],
284
+ ...columns?.filter((e) => e.fixed == "right") || []
285
+ ],
286
+ cellClass: ({ cellClass }) => (o) => (unFn(cellClass, o) || "") + (o.col.fixed ? ` fixed-${o.col.fixed}` : ""),
287
+ cellStyle: ({ cellStyle }, { store }) => (o) => (unFn(cellStyle, o) || "") + (o.col.fixed ? `; ${o.col.fixed}: ${sumBy(store.thSizes.slice(o.col.fixed == "left" ? 0 : o.x + 1, o.col.fixed == "left" ? o.x : Infinity), (size) => size?.width || 0)}px` : "")
288
+ } };
289
+ var FitColWidthPlugin = { rewriteProps: {
290
+ Table: (prev, { store }) => (o) => {
291
+ const size1 = createElementSize(() => store.scroll_el);
292
+ createEffect(on(() => [size1.width, prev.columns], async () => {
293
+ const w = store.scroll_el.clientWidth;
294
+ store._fit_col_width__cols_temp = null;
295
+ await Promise.resolve();
296
+ const gap = (w - store.table.offsetWidth) / store.props.columns.filter((e) => !e.width).length;
297
+ store._fit_col_width__cols_temp = prev.columns.map((e, i) => ({ width: e.width ?? Math.max((store.thSizes[i]?.width || 0) + gap, 80) }));
298
+ }));
299
+ return createComponent(prev.Table, o);
300
+ },
301
+ columns: ({ columns }, { store }) => reconcile(columns.map((e, i) => ({
302
+ ...e,
303
+ ...store._fit_col_width__cols_temp?.[i]
304
+ })))(store._fit_col_width__cols ??= [])
305
+ } };
306
+ const ScrollPlugin = {
307
+ priority: Infinity,
308
+ rewriteProps: { Table: (prev, { store }) => (o) => {
309
+ const pos = createScrollPosition(() => store.scroll_el);
310
+ const size = createElementSize(() => store.scroll_el);
311
+ const clazz = createMemo(() => {
312
+ const el = store.scroll_el;
313
+ if (!el) return;
314
+ const isleft = pos.x == 0;
315
+ const isright = pos.x >= el.scrollWidth - (size.width || 0);
316
+ return isleft && isright ? "" : !isleft && !isright ? "is-scroll-mid" : isleft ? "is-scroll-left" : isright ? "is-scroll-right" : "";
317
+ });
318
+ o = combineProps(o, {
319
+ ref: (el) => store.scroll_el = el,
320
+ class: "data-table--scroll-view"
321
+ }, { get class() {
322
+ return clazz();
323
+ } });
324
+ const layers = mapArray(() => store.plugins.flatMap((e) => e.layers ?? []), (Layer) => createComponent(Layer, store));
325
+ return (() => {
326
+ var _el$7 = _tmpl$7(), _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling;
327
+ spread(_el$7, o, false, true);
328
+ insert(_el$8, layers);
329
+ use((el) => store.table = el, _el$9);
330
+ insert(_el$9, () => o.children);
331
+ return _el$7;
332
+ })();
333
+ } }
334
+ };
335
+ const defaultsPlugins = [
336
+ ScrollPlugin,
337
+ BasePlugin(),
338
+ CommandPlugin,
339
+ CellSelectionPlugin,
340
+ RowSelectionPlugin,
341
+ IndexPlugin,
342
+ StickyHeaderPlugin,
343
+ FixedColumnPlugin,
344
+ ClipboardPlugin,
345
+ EditablePlugin,
346
+ FitColWidthPlugin
347
+ ];
348
+ export { Ctx, ScrollPlugin, Table, defaultsPlugins };
@@ -0,0 +1,277 @@
1
+ @charset "UTF-8";@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-bg-opacity:100%;--un-space-y-reverse:initial;--un-border-opacity:100%;--un-space-x-reverse:initial;--un-content:"";--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-text-opacity:100%;--un-outline-style:solid;--un-outline-opacity:100%;--un-leading:initial;}}@property --un-leading{syntax:"*";inherits:false;}@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}@property --un-outline-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}:root, :host {--spacing: 0.25rem;--colors-gray-DEFAULT: oklch(70.7% 0.022 261.325);--text-sm-fontSize: 0.875rem;--text-sm-lineHeight: 1.25rem;--radius-sm: 0.25rem;--colors-blue-DEFAULT: oklch(70.7% 0.165 254.624);--font-sans: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--default-font-family: var(--font-sans);--default-monoFont-family: var(--font-mono);}/* 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 2. Remove default margins and padding 3. Reset all borders.*/*,::after,::before,::backdrop,::file-selector-button { box-sizing: border-box; /* 1 */ margin: 0; /* 2 */ padding: 0; /* 2 */ border: 0 solid; /* 3 */}/* 1. Use a consistent sensible line-height in all browsers. 2. Prevent adjustments of font size after orientation changes in iOS. 3. Use a more readable tab size. 4. Use the user's configured `sans` font-family by default. 5. Use the user's configured `sans` font-feature-settings by default. 6. Use the user's configured `sans` font-variation-settings by default. 7. Disable tap highlights on iOS.*/html,:host { line-height: 1.5; /* 1 */ -webkit-text-size-adjust: 100%; /* 2 */ tab-size: 4; /* 3 */ font-family: var( --default-font-family, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' ); /* 4 */ font-feature-settings: var(--default-font-featureSettings, normal); /* 5 */ font-variation-settings: var(--default-font-variationSettings, normal); /* 6 */ -webkit-tap-highlight-color: transparent; /* 7 */}/* 1. Add the correct height in Firefox. 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) 3. Reset the default border style to a 1px solid border.*/hr { height: 0; /* 1 */ color: inherit; /* 2 */ border-top-width: 1px; /* 3 */}/* Add the correct text decoration in Chrome, Edge, and Safari.*/abbr:where([title]) { -webkit-text-decoration: underline dotted; text-decoration: underline dotted;}/* Remove the default font size and weight for headings.*/h1,h2,h3,h4,h5,h6 { font-size: inherit; font-weight: inherit;}/* Reset links to optimize for opt-in styling instead of opt-out.*/a { color: inherit; -webkit-text-decoration: inherit; text-decoration: inherit;}/* Add the correct font weight in Edge and Safari.*/b,strong { font-weight: bolder;}/* 1. Use the user's configured `mono` font-family by default. 2. Use the user's configured `mono` font-feature-settings by default. 3. Use the user's configured `mono` font-variation-settings by default. 4. Correct the odd `em` font sizing in all browsers.*/code,kbd,samp,pre { font-family: var( --default-monoFont-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace ); /* 1 */ font-feature-settings: var(--default-monoFont-featureSettings, normal); /* 2 */ font-variation-settings: var(--default-monoFont-variationSettings, normal); /* 3 */ font-size: 1em; /* 4 */}/* Add the correct font size in all browsers.*/small { font-size: 80%;}/* Prevent `sub` and `sup` elements from affecting the line height in all browsers.*/sub,sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline;}sub { bottom: -0.25em;}sup { top: -0.5em;}/* 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) 3. Remove gaps between table borders by default.*/table { text-indent: 0; /* 1 */ border-color: inherit; /* 2 */ border-collapse: collapse; /* 3 */}/* Use the modern Firefox focus style for all focusable elements.*/:-moz-focusring { outline: auto;}/* Add the correct vertical alignment in Chrome and Firefox.*/progress { vertical-align: baseline;}/* Add the correct display in Chrome and Safari.*/summary { display: list-item;}/* Make lists unstyled by default.*/ol,ul,menu { list-style: none;}/* 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14) 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210) This can trigger a poorly considered lint error in some tools but is included by design.*/img,svg,video,canvas,audio,iframe,embed,object { display: block; /* 1 */ vertical-align: middle; /* 2 */}/* Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)*/img,video { max-width: 100%; height: auto;}/* 1. Inherit font styles in all browsers. 2. Remove border radius in all browsers. 3. Remove background color in all browsers. 4. Ensure consistent opacity for disabled states in all browsers.*/button,input,select,optgroup,textarea,::file-selector-button { font: inherit; /* 1 */ font-feature-settings: inherit; /* 1 */ font-variation-settings: inherit; /* 1 */ letter-spacing: inherit; /* 1 */ color: inherit; /* 1 */ border-radius: 0; /* 2 */ background-color: transparent; /* 3 */ opacity: 1; /* 4 */}/* Restore default font weight.*/:where(select:is([multiple], [size])) optgroup { font-weight: bolder;}/* Restore indentation.*/:where(select:is([multiple], [size])) optgroup option { padding-inline-start: 20px;}/* Restore space after button.*/::file-selector-button { margin-inline-end: 4px;}/* Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)*/::placeholder { opacity: 1;}/* Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)*/@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or (contain-intrinsic-size: 1px) /* Safari 17+ */ { ::placeholder { color: color-mix(in oklab, currentcolor 50%, transparent); }}/* Prevent resizing textareas horizontally by default.*/textarea { resize: vertical;}/* Remove the inner padding in Chrome and Safari on macOS.*/::-webkit-search-decoration { -webkit-appearance: none;}/* 1. Ensure date/time inputs have the same height when empty in iOS Safari. 2. Ensure text alignment can be changed on date/time inputs in iOS Safari.*/::-webkit-date-and-time-value { min-height: 1lh; /* 1 */ text-align: inherit; /* 2 */}/* Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.*/::-webkit-datetime-edit { display: inline-flex;}/* Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.*/::-webkit-datetime-edit-fields-wrapper { padding: 0;}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field { padding-block: 0;}/* Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)*/::-webkit-calendar-picker-indicator { line-height: 1;}/* Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)*/:-moz-ui-invalid { box-shadow: none;}/* Correct the inability to style the border radius in iOS Safari.*/button,input:where([type='button'], [type='reset'], [type='submit']),::file-selector-button { appearance: button;}/* Correct the cursor style of increment and decrement buttons in Safari.*/::-webkit-inner-spin-button,::-webkit-outer-spin-button { height: auto;}/* Make elements with the HTML hidden attribute stay hidden by default.*/[hidden]:where(:not([hidden~='until-found'])) { display: none !important;}.container{width:100%;}.aic{align-items:center;}@media (min-width: 40rem){.container{max-width:40rem;}}@media (min-width: 48rem){.container{max-width:48rem;}}@media (min-width: 64rem){.container{max-width:64rem;}}@media (min-width: 80rem){.container{max-width:80rem;}}@media (min-width: 96rem){.container{max-width:96rem;}}.text-3\.5{font-size:0.875rem;}.lh-\[1\]{--un-leading:1;line-height:1;}.mx-1{margin-inline:calc(var(--spacing) * 1);}.mx-3\!{margin-inline:calc(var(--spacing) * 3) !important;}.my-1{margin-block:calc(var(--spacing) * 1);}.ml{margin-left:calc(var(--spacing) * 4);}.ml-\.5{margin-left:calc(var(--spacing) * 0.5);}.ml-1{margin-left:calc(var(--spacing) * 1);}.mr--1{margin-right:calc(var(--spacing) * -1);}.mr-1{margin-right:calc(var(--spacing) * 1);}.mr-2{margin-right:calc(var(--spacing) * 2);}.mr-2\.5{margin-right:calc(var(--spacing) * 2.5);}.ms{margin-inline-start:calc(var(--spacing) * 4);}.p-1{padding:calc(var(--spacing) * 1);}.px,.px-4{padding-inline:calc(var(--spacing) * 4);}.px-2{padding-inline:calc(var(--spacing) * 2);}.py-1{padding-block:calc(var(--spacing) * 1);}.py-2{padding-block:calc(var(--spacing) * 2);}.pl-1{padding-left:calc(var(--spacing) * 1);}.pr-4{padding-right:calc(var(--spacing) * 4);}.ps{padding-inline-start:calc(var(--spacing) * 4);}.outline-0{outline-style:var(--un-outline-style);outline-width:0px;}.outline-2{outline-style:var(--un-outline-style);outline-width:2px;}.outline-blue{outline-color:color-mix(in srgb, var(--colors-blue-DEFAULT) var(--un-outline-opacity), transparent) /* oklch(70.7% 0.165 254.624) */;}.b,.border{border-width:1px;}.rd-2{border-radius:0.5rem;}.rd-sm{border-radius:var(--radius-sm);}.bg-\#dafaea{background-color:color-mix(in oklab, #dafaea var(--un-bg-opacity), transparent) /* #dafaea */;}.bg-\#ffe8e8{background-color:color-mix(in oklab, #ffe8e8 var(--un-bg-opacity), transparent) /* #ffe8e8 */;}.bg-\#fff{background-color:color-mix(in oklab, #fff var(--un-bg-opacity), transparent) /* #fff */;}.bg-gray\/20{background-color:color-mix(in srgb, var(--colors-gray-DEFAULT) 20%, transparent) /* oklch(70.7% 0.022 261.325) */;}.op-75{opacity:75%;}.op40{opacity:40%;}.flex{display:flex;}.flex-shrink-0{flex-shrink:0;}.flex-row{flex-direction:row;}.flex-wrap{flex-wrap:wrap;}.gap-2{gap:calc(var(--spacing) * 2);}.size-4\!{width:calc(var(--spacing) * 4) !important;height:calc(var(--spacing) * 4) !important;}.size-full{width:100%;height:100%;}.h-40vh{height:40vh;}.h-a\!{height:auto !important;}.h-full{height:100%;}.max-h-100{max-height:calc(var(--spacing) * 100);}.min-h-40{min-height:calc(var(--spacing) * 40);}.min-h-a\!{min-height:auto !important;}.w-50vw\!{width:50vw !important;}.after\:h-1::after{height:calc(var(--spacing) * 1);}.after\:w-1::after{width:calc(var(--spacing) * 1);}.block{display:block;}.cursor-s-resize{cursor:s-resize;}.cursor-w-resize{cursor:w-resize;}.resize-none{resize:none;}.transform{transform:var(--un-rotate-x) var(--un-rotate-y) var(--un-rotate-z) var(--un-skew-x) var(--un-skew-y);}.items-center{align-items:center;}.box-border{box-sizing:border-box;}.justify-center{justify-content:center;}.absolute{position:absolute;}.fixed{position:fixed;}.relative{position:relative;}.z-1{z-index:1;}.z-9{z-index:9;}.of-auto,.overflow-auto{overflow:auto;}.table{display:table;}@supports (color: color-mix(in lab, red, red)){.outline-blue{outline-color:color-mix(in oklab, var(--colors-blue-DEFAULT) var(--un-outline-opacity), transparent) /* oklch(70.7% 0.165 254.624) */;}.bg-gray\/20{background-color:color-mix(in oklab, var(--colors-gray-DEFAULT) 20%, transparent) /* oklch(70.7% 0.022 261.325) */;}}:root {
2
+ color-scheme: light;
3
+ --bg: #fff;
4
+ --menu-bg: #fff;
5
+ --header-bg: #f6f6f7;
6
+ }
7
+
8
+ .dark {
9
+ color-scheme: dark;
10
+ --bg: #121212;
11
+ --menu-bg: #121212;
12
+ --header-bg: #161618;
13
+ }
14
+
15
+ body {
16
+ margin:calc(var(--spacing) * 0);background-color:color-mix(in oklab, var(--bg) var(--un-bg-opacity), transparent) /* var(--bg) */;
17
+ }@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
18
+
19
+ button {
20
+ border-radius: 8px;
21
+ border: 1px solid transparent;
22
+ font-size: 1em;
23
+ cursor: pointer;
24
+ transition: border-color 0.25s;
25
+ }
26
+
27
+ button:hover {
28
+ border-color: #646cff;
29
+ }
30
+
31
+ button:focus,
32
+ button:focus-visible {
33
+ outline: 4px auto -webkit-focus-ring-color;
34
+ }
35
+
36
+ mark {
37
+ padding: 0.1rem 0.3rem;
38
+ }
39
+
40
+ .col-hand {
41
+ --w: 4px;
42
+ position: absolute;
43
+ top: 0;
44
+ left: 100%;
45
+ height: 100%;
46
+ width: var(--gap);
47
+ cursor: w-resize;
48
+ display: flex;
49
+ justify-content: center;
50
+ opacity: 0;
51
+ transition: opacity 100ms linear;
52
+ }
53
+ .col-hand:hover, .col-hand:active {
54
+ opacity: 1;
55
+ }
56
+ .col-hand::after {
57
+ content: "";
58
+ display: block;
59
+ flex-shrink: 0;
60
+ width: 4px;
61
+ height: 100%;
62
+ background: rgba(128, 128, 128, 0.5);
63
+ }
64
+ .col-hand > .dot {
65
+ --w: 20px;
66
+ position: absolute;
67
+ top: 0;
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ transform: translateY(-50%);
72
+ width: calc(var(--w) * 1);
73
+ height: calc(var(--w) * 1);
74
+ }
75
+ .col-hand > .dot:hover::after {
76
+ content: "+";
77
+ display: flex;
78
+ align-items: center;
79
+ justify-content: center;
80
+ width: calc(var(--w) * 1);
81
+ height: calc(var(--w) * 1);
82
+ background-color: rgba(0, 0, 255, 0.75);
83
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
84
+ }
85
+ .col-hand > .dot::after {
86
+ content: "";
87
+ display: block;
88
+ width: 8px;
89
+ height: 8px;
90
+ color: #fff;
91
+ background-color: rgba(0, 0, 255, 0.5);
92
+ border-radius: 50%;
93
+ transition: all 100ms;
94
+ cursor: pointer;
95
+ }
96
+
97
+ .li {
98
+ cursor:pointer;position:relative;
99
+ }
100
+ .li:hover, .li.hover {
101
+ background-color:color-mix(in srgb, var(--colors-gray-DEFAULT) 20%, transparent) /* oklch(70.7% 0.022 261.325) */;
102
+ }@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.li:hover,.li.hover{background-color:color-mix(in oklab, var(--colors-gray-DEFAULT) 20%, transparent) /* oklch(70.7% 0.022 261.325) */;}}
103
+ .li:active::before, .li.selected::before, .li.active::before {
104
+ content: "";
105
+ border-radius:inherit;background-color:color-mix(in srgb, var(--colors-gray-DEFAULT) 15%, transparent) /* oklch(70.7% 0.022 261.325) */;inset:calc(var(--spacing) * 0);position:absolute;
106
+ }@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.li:active::before,.li.selected::before,.li.active::before{background-color:color-mix(in oklab, var(--colors-gray-DEFAULT) 15%, transparent) /* oklch(70.7% 0.022 261.325) */;}}
107
+ .li.disabled, .li[disabled] {
108
+ opacity: 0.4;
109
+ }
110
+
111
+ .tt-menu {
112
+ font-size:var(--text-sm-fontSize);line-height:var(--un-leading, var(--text-sm-lineHeight));padding-block:calc(var(--spacing) * 1);border-width:1px;border-color:color-mix(in srgb, var(--colors-gray-DEFAULT) 30%, transparent) /* oklch(70.7% 0.022 261.325) */;border-radius:0.5rem;--un-border-style:solid;border-style:solid;background-color:color-mix(in oklab, var(--menu-bg) var(--un-bg-opacity), transparent) /* var(--menu-bg) */;cursor:default;--un-shadow:0 10px 15px -3px var(--un-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--un-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);
113
+ }@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.tt-menu{border-color:color-mix(in oklab, var(--colors-gray-DEFAULT) 30%, transparent) /* oklch(70.7% 0.022 261.325) */;}}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --un-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --un-shadow-color{syntax:"*";inherits:false;}@property --un-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --un-inset-shadow-color{syntax:"*";inherits:false;}@property --un-ring-color{syntax:"*";inherits:false;}@property --un-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --un-inset-ring-color{syntax:"*";inherits:false;}@property --un-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --un-ring-inset{syntax:"*";inherits:false;}@property --un-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0px;}@property --un-ring-offset-color{syntax:"*";inherits:false;}@property --un-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}.tt-menu{:where(&>:not(:last-child)){--un-space-y-reverse:0;margin-block-start: calc(calc(var(--spacing) * 0.5) * var(--un-space-y-reverse));margin-block-end: calc(calc(var(--spacing) * 0.5) * calc(1 - var(--un-space-y-reverse)));}}@property --un-space-y-reverse{syntax:"*";inherits:false;initial-value:0;}
114
+
115
+ .tt-menu-x {
116
+ font-size:var(--text-sm-fontSize);line-height:var(--un-leading, var(--text-sm-lineHeight));padding-inline:calc(var(--spacing) * 1);border-width:1px;border-color:color-mix(in srgb, var(--colors-gray-DEFAULT) 30%, transparent) /* oklch(70.7% 0.022 261.325) */;border-radius:0.5rem;--un-border-style:solid;border-style:solid;background-color:color-mix(in oklab, var(--menu-bg) var(--un-bg-opacity), transparent) /* var(--menu-bg) */;cursor:default;--un-shadow:0 10px 15px -3px var(--un-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--un-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);
117
+ }@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.tt-menu-x{border-color:color-mix(in oklab, var(--colors-gray-DEFAULT) 30%, transparent) /* oklch(70.7% 0.022 261.325) */;}}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --un-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --un-shadow-color{syntax:"*";inherits:false;}@property --un-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --un-inset-shadow-color{syntax:"*";inherits:false;}@property --un-ring-color{syntax:"*";inherits:false;}@property --un-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --un-inset-ring-color{syntax:"*";inherits:false;}@property --un-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --un-ring-inset{syntax:"*";inherits:false;}@property --un-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0px;}@property --un-ring-offset-color{syntax:"*";inherits:false;}@property --un-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}.tt-menu-x{:where(&>:not(:last-child)){--un-space-x-reverse:0;margin-inline-start: calc(calc(var(--spacing) * 0.5) * var(--un-space-x-reverse));margin-inline-end: calc(calc(var(--spacing) * 0.5) * calc(1 - var(--un-space-x-reverse)));}}@property --un-space-x-reverse{syntax:"*";inherits:false;initial-value:0;}
118
+ .tt-menu-x > .hr {
119
+ margin-block:calc(var(--spacing) * 1.5);background-color:color-mix(in srgb, var(--colors-gray-DEFAULT) 30%, transparent) /* oklch(70.7% 0.022 261.325) */;width:1px;
120
+ }@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.tt-menu-x > .hr{background-color:color-mix(in oklab, var(--colors-gray-DEFAULT) 30%, transparent) /* oklch(70.7% 0.022 261.325) */;}}
121
+ :root {
122
+ --c-primary: #51a2ff;
123
+ --select-area-bg: #5292f71a;
124
+ }
125
+
126
+ .data-table {
127
+ --table-b: 1px solid var(--table-b-c);
128
+ --table-b-c: #ebeef5;
129
+ --table-c: #606266;
130
+ --table-bg: #fff;
131
+ --table-header-c: #909399;
132
+ --table-header-bg: var(--table-bg);
133
+ --table-row-hover-bg: #f5f7fa;
134
+ font-size:14px;color:color-mix(in oklab, var(--table-c) var(--un-text-opacity), transparent) /* var(--table-c) */;border-color:color-mix(in oklab, var(--table-b-c) var(--un-border-opacity), transparent) /* var(--table-b-c) */;position:relative;
135
+ }@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
136
+ .data-table--table {
137
+ color:color-mix(in oklab, var(--table-c) var(--un-text-opacity), transparent) /* var(--table-c) */;outline-style:var(--un-outline-style);outline-width:0px;border-width:0px;width:max-content;border-collapse:collapse;table-layout:fixed;
138
+ border-collapse: separate;
139
+ border-spacing: 0;
140
+ }@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}
141
+ .data-table thead {
142
+ color:color-mix(in oklab, var(--table-header-c) var(--un-text-opacity), transparent) /* var(--table-header-c) */;
143
+ }@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
144
+ .data-table tr:hover > td {
145
+ background-color:color-mix(in oklab, var(--table-row-hover-bg) var(--un-bg-opacity), transparent) /* var(--table-row-hover-bg) */;
146
+ }@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
147
+ .data-table th {
148
+ background-color:color-mix(in oklab, var(--table-header-bg) var(--un-bg-opacity), transparent) /* var(--table-header-bg) */;
149
+ }@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
150
+ .data-table td {
151
+ background-color:color-mix(in oklab, var(--table-bg) var(--un-bg-opacity), transparent) /* var(--table-bg) */;
152
+ }@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
153
+ .data-table td, .data-table th {
154
+ padding-inline:calc(var(--spacing) * 2);padding-block:calc(var(--spacing) * 0.5);vertical-align:middle;outline-style:var(--un-outline-style);outline-width:0px;border-width:0px;border-bottom-width:0px;border-color:color-mix(in oklab, var(--table-b-c) var(--un-border-opacity), transparent) /* var(--table-b-c) */;--un-border-style:solid;border-style:solid;box-sizing:border-box;
155
+ text-align: inherit;
156
+ background-image: linear-gradient(var(--table-b-c), var(--table-b-c));
157
+ background-repeat: no-repeat;
158
+ background-size: 100% 1px, 1px 100%;
159
+ background-position: 100% 100%, 100% 0;
160
+ }@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
161
+ .data-table td:empty::after {
162
+ content: "ㅤ" !important;
163
+ }
164
+ .data-table--border {
165
+ border-width:1px;
166
+ }
167
+ .data-table--border th, .data-table--border td {
168
+ background-image: linear-gradient(var(--table-b-c), var(--table-b-c)), linear-gradient(var(--table-b-c), var(--table-b-c));
169
+ }
170
+ .data-table--scroll-view {
171
+ overflow:auto;
172
+ }
173
+ .data-table__layers {
174
+ pointer-events:none;left:calc(var(--spacing) * 0);top:calc(var(--spacing) * 0);position:absolute;z-index:1;
175
+ }.data-table__layers>*{position:absolute;}
176
+
177
+ .range-selected {
178
+ position:relative;
179
+ }
180
+ .range-selected > .area {
181
+ border-width:0px;border-color:color-mix(in oklab, var(--c-primary) var(--un-border-opacity), transparent) /* var(--c-primary) */;--un-border-style:solid;border-style:solid;background-color:color-mix(in oklab, var(--select-area-bg) var(--un-bg-opacity), transparent) /* var(--select-area-bg) */;pointer-events:none;inset:calc(var(--spacing) * 0);position:absolute;
182
+ }@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
183
+ .range-selected-l > .area {
184
+ border-left-width:2px;
185
+ }
186
+ .range-selected-r > .area {
187
+ border-right-width:2px;
188
+ }
189
+ .range-selected-t > .area {
190
+ border-top-width:2px;
191
+ }
192
+ .range-selected-b > .area {
193
+ border-bottom-width:2px;
194
+ }
195
+
196
+ .row-range-highlight, .col-range-highlight {
197
+ position:relative;
198
+ }
199
+ .row-range-highlight > .area, .col-range-highlight > .area {
200
+ border-width:0px;border-color:color-mix(in oklab, var(--c-primary) var(--un-border-opacity), transparent) /* var(--c-primary) */;--un-border-style:solid;border-style:solid;background-color:color-mix(in oklab, var(--c-primary) 10%, transparent) /* var(--c-primary) */;pointer-events:none;inset:calc(var(--spacing) * 0);position:absolute;
201
+ }@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
202
+
203
+ .row-range-highlight > .area {
204
+ border-right-width:1px;
205
+ }
206
+
207
+ .col-range-highlight > .area {
208
+ border-bottom-width:1px;
209
+ }
210
+
211
+ .sticky-header {
212
+ background-color:color-mix(in oklab, #fff var(--un-bg-opacity), transparent) /* #fff */;top:calc(var(--spacing) * 0);position:sticky;z-index:9;
213
+ }@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
214
+ .sticky-header::after {
215
+ width:100%;height:10px;pointer-events:none;--un-content:'';content:var(--un-content);top:100%;position:absolute;
216
+ box-shadow: inset 0 10px 10px -10px rgba(0, 0, 0, 0.15);
217
+ }@property --un-content{syntax:"*";inherits:false;initial-value:"";}
218
+
219
+ .fixed-left, .fixed-right {
220
+ background-color:color-mix(in oklab, #fff var(--un-bg-opacity), transparent) /* #fff */;position:sticky !important;z-index:1;
221
+ }@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
222
+ .fixed-left::after, .fixed-right::after {
223
+ width:10px;height:100%;pointer-events:none;--un-content:'';content:var(--un-content);top:calc(var(--spacing) * 0);position:absolute;
224
+ }@property --un-content{syntax:"*";inherits:false;initial-value:"";}
225
+
226
+ .is-scroll-right .fixed-left::after, .is-scroll-mid .fixed-left::after {
227
+ left:100%;
228
+ box-shadow: inset 10px 0 10px -10px rgba(0, 0, 0, 0.15);
229
+ }
230
+
231
+ .is-scroll-left .fixed-right::after, .is-scroll-mid .fixed-right::after {
232
+ right:100%;
233
+ box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.15);
234
+ }
235
+
236
+ .copied .range-selected::before {
237
+ border-style: dashed;
238
+ }
239
+
240
+ .data-table.virtual {
241
+ width:fit-content;display:block;overflow:auto;
242
+ }
243
+ .data-table.virtual thead {
244
+ width:fit-content;display:block;
245
+ }.data-table.virtual thead>tr{display:flex;}.data-table.virtual thead>tr>th{flex:0 0 auto;display:block;}
246
+ .data-table.virtual tbody {
247
+ width:fit-content;display:block;
248
+ }.data-table.virtual tbody>tr{display:flex;}.data-table.virtual tbody>tr>td{flex:0 0 auto;display:block;}
249
+
250
+ .row-selection {
251
+ width:calc(var(--spacing) * 10);
252
+ }
253
+ .row-selection > label {
254
+ display:flex;width:100%;height:100%;align-items:center;inset:calc(var(--spacing) * 0);justify-content:center;position:absolute;
255
+ }
256
+
257
+ .icon-clickable {
258
+ padding:calc(var(--spacing) * 0.5);border-radius:0.25rem;display:flex;width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5);align-items:center;box-sizing:border-box;justify-content:center;
259
+ }.icon-clickable:hover{background-color:color-mix(in srgb, var(--colors-gray-DEFAULT) 30%, transparent) /* oklch(70.7% 0.022 261.325) */;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@supports (color: color-mix(in lab, red, red)){.icon-clickable:hover{background-color:color-mix(in oklab, var(--colors-gray-DEFAULT) 30%, transparent) /* oklch(70.7% 0.022 261.325) */;}}.icon-clickable>svg{width:100%;height:100%;}
260
+
261
+ input[type=checkbox].you-checkbox {
262
+ color:color-mix(in oklab, #2196f3 var(--un-text-opacity), transparent) /* #2196f3 */;margin:calc(var(--spacing) * 1);-webkit-appearance:none;appearance:none;outline-offset:0px;border-width:2px;border-color:currentColor;border-radius:0.25rem;--un-border-style:solid;border-style:solid;width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4);position:relative;
263
+ }@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}input[type=checkbox].you-checkbox:focus{outline-style:var(--un-outline-style);outline-width:4px;outline-color:color-mix(in oklab, #2196f3 40%, transparent) /* #2196f3 */;--un-outline-style:solid;outline-style:solid;}@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}@property --un-outline-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}input[type=checkbox].you-checkbox:checked{background-color:currentColor;}
264
+ input[type=checkbox].you-checkbox.checked::after {
265
+ font-size:0.75rem;color:color-mix(in oklab, #fff var(--un-text-opacity), transparent) /* #fff */;--un-content:"✓";content:var(--un-content);--un-translate-x:-50%;--un-translate-y:-50%;translate:var(--un-translate-x) var(--un-translate-y);top:50%;left:50%;position:absolute;z-index:1;
266
+ }@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --un-content{syntax:"*";inherits:false;initial-value:"";}@property --un-translate-x{syntax:"*";inherits:false;initial-value:0;}@property --un-translate-y{syntax:"*";inherits:false;initial-value:0;}@property --un-translate-z{syntax:"*";inherits:false;initial-value:0;}
267
+
268
+ .in-cell-edit-wrapper {
269
+ inset:calc(var(--spacing) * 0);position:absolute;
270
+ }
271
+
272
+ .in-cell__resize-handle {
273
+ width:100%;height:100%;
274
+ }.in-cell__resize-handle:hover::after{background-color:color-mix(in oklab, var(--c-primary) 40%, transparent) /* var(--c-primary) */;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;syntax:"<percentage>";inherits:false;initial-value:100%;}.in-cell__resize-handle:active::after{background-color:color-mix(in oklab, var(--c-primary) var(--un-bg-opacity), transparent) /* var(--c-primary) */;}
275
+ .in-cell__resize-handle::after {
276
+ --un-content:'';content:var(--un-content);
277
+ }@property --un-content{syntax:"*";inherits:false;initial-value:"";}/*$vite$:1*/
@@ -0,0 +1,8 @@
1
+ import { spread, template } from "solid-js/web";
2
+ var _tmpl$ = /* @__PURE__ */ template(`<svg width=1.2em height=1.2em xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><g><rect width=2 height=5 x=11 y=1 fill=currentColor opacity=.14></rect><rect width=2 height=5 x=11 y=1 fill=currentColor opacity=.29 transform="rotate(30 12 12)"></rect><rect width=2 height=5 x=11 y=1 fill=currentColor opacity=.43 transform="rotate(60 12 12)"></rect><rect width=2 height=5 x=11 y=1 fill=currentColor opacity=.57 transform="rotate(90 12 12)"></rect><rect width=2 height=5 x=11 y=1 fill=currentColor opacity=.71 transform="rotate(120 12 12)"></rect><rect width=2 height=5 x=11 y=1 fill=currentColor opacity=.86 transform="rotate(150 12 12)"></rect><rect width=2 height=5 x=11 y=1 fill=currentColor transform="rotate(180 12 12)"></rect><animateTransform attributeName=transform calcMode=discrete dur=0.75s repeatCount=indefinite type=rotate values="0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12;360 12 12">`);
3
+ var loading_default = (props = {}) => (() => {
4
+ var _el$ = _tmpl$();
5
+ spread(_el$, props, true, true);
6
+ return _el$;
7
+ })();
8
+ export { loading_default as default };
@@ -0,0 +1,2 @@
1
+ import type { Plugin } from '..';
2
+ export declare function CellChangeHighlightPlugin(): Plugin;
@@ -0,0 +1,4 @@
1
+ function CellChangeHighlightPlugin() {
2
+ return {};
3
+ }
4
+ export { CellChangeHighlightPlugin };