intable 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +2 -1
- package/dist/__uno.css +1 -1
- package/dist/chevron-right.js +3 -5
- package/dist/components/Columns.js +50 -84
- package/dist/components/DocTree.js +21 -29
- package/dist/components/Menu.js +81 -105
- package/dist/components/Popover.js +23 -31
- package/dist/components/Render.js +10 -11
- package/dist/components/Split.js +34 -46
- package/dist/components/Tree.js +38 -57
- package/dist/components/utils.js +4 -6
- package/dist/hooks/index.d.ts +3 -2
- package/dist/hooks/index.js +93 -128
- package/dist/hooks/useDir.js +22 -39
- package/dist/hooks/useSort.d.ts +18 -0
- package/dist/hooks/useSort.js +83 -0
- package/dist/hooks/useVirtualizer.js +43 -68
- package/dist/index.d.ts +8 -2
- package/dist/index.js +175 -213
- package/dist/loading.js +3 -5
- package/dist/plugins/CellMergePlugin.d.ts +12 -0
- package/dist/plugins/CellMergePlugin.js +2 -0
- package/dist/plugins/CellSelectionPlugin.js +89 -125
- package/dist/plugins/CommandPlugin.js +3 -6
- package/dist/plugins/CopyPastePlugin.js +24 -37
- package/dist/plugins/DiffPlugin.js +33 -45
- package/dist/plugins/DragPlugin.d.ts +14 -0
- package/dist/plugins/DragPlugin.js +47 -0
- package/dist/plugins/EditablePlugin.js +88 -139
- package/dist/plugins/ExpandPlugin.js +26 -30
- package/dist/plugins/HistoryPlugin.js +16 -21
- package/dist/plugins/MenuPlugin.js +51 -76
- package/dist/plugins/RenderPlugin/components.js +45 -63
- package/dist/plugins/RenderPlugin/index.js +29 -42
- package/dist/plugins/ResizePlugin.d.ts +2 -2
- package/dist/plugins/ResizePlugin.js +71 -94
- package/dist/plugins/RowGroupPlugin.js +57 -73
- package/dist/plugins/RowSelectionPlugin.js +31 -42
- package/dist/plugins/VirtualScrollPlugin.js +54 -79
- package/dist/plus.js +3 -5
- package/dist/style.css +2 -184
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +46 -64
- package/dist/wc.js +11 -11
- package/dist/x.js +3 -5
- package/package.json +3 -2
- package/dist/plugins/DragColumnPlugin.d.ts +0 -2
- package/dist/plugins/DragColumnPlugin.js +0 -4
|
@@ -5,65 +5,54 @@ import { createMemo, createRenderEffect, mergeProps as mergeProps$1, on } from "
|
|
|
5
5
|
import { createMutable, reconcile } from "solid-js/store";
|
|
6
6
|
import { keyBy } from "es-toolkit";
|
|
7
7
|
import { defaultsDeep } from "es-toolkit/compat";
|
|
8
|
-
var _tmpl$ = /* @__PURE__ */ template(
|
|
8
|
+
var _tmpl$ = /* @__PURE__ */ template("<label>");
|
|
9
9
|
const RowSelectionPlugin = {
|
|
10
|
-
store: (
|
|
11
|
-
[
|
|
10
|
+
store: (d) => ({ rowSelectionCol: {
|
|
11
|
+
[d.internal]: 1,
|
|
12
12
|
id: Symbol("row-selection"),
|
|
13
13
|
fixed: "left",
|
|
14
14
|
class: "row-selection",
|
|
15
15
|
width: 45,
|
|
16
|
-
resizable:
|
|
17
|
-
render: solidComponent((
|
|
18
|
-
var
|
|
19
|
-
insert(
|
|
16
|
+
resizable: !1,
|
|
17
|
+
render: solidComponent((c) => (() => {
|
|
18
|
+
var f = _tmpl$();
|
|
19
|
+
return insert(f, createComponent(Checkbox, {
|
|
20
20
|
style: "position: absolute",
|
|
21
21
|
get value() {
|
|
22
|
-
return
|
|
22
|
+
return d.commands.rowSelector.isSelected(c.data);
|
|
23
23
|
},
|
|
24
|
-
onChange: (
|
|
24
|
+
onChange: (e) => d.commands.rowSelector.select(c.data, e),
|
|
25
25
|
get disabled() {
|
|
26
|
-
return !
|
|
26
|
+
return !d.props?.rowSelection?.selectable?.(c.data);
|
|
27
27
|
}
|
|
28
|
-
}));
|
|
29
|
-
return _el$;
|
|
28
|
+
})), f;
|
|
30
29
|
})())
|
|
31
30
|
} }),
|
|
32
|
-
commands: (
|
|
33
|
-
rowKey:
|
|
34
|
-
...
|
|
31
|
+
commands: (e) => ({ rowSelector: useSelector(mergeProps$1(() => ({
|
|
32
|
+
rowKey: e.props?.rowKey,
|
|
33
|
+
...e.props?.rowSelection
|
|
35
34
|
}))) }),
|
|
36
35
|
rewriteProps: {
|
|
37
|
-
rowSelection: ({ rowSelection }) => defaultsDeep(
|
|
38
|
-
enable:
|
|
39
|
-
multiple:
|
|
40
|
-
selectable: () =>
|
|
36
|
+
rowSelection: ({ rowSelection: e }) => defaultsDeep(e, {
|
|
37
|
+
enable: !1,
|
|
38
|
+
multiple: !1,
|
|
39
|
+
selectable: () => !0
|
|
41
40
|
}),
|
|
42
|
-
columns: ({ columns }, { store }) =>
|
|
41
|
+
columns: ({ columns: e }, { store: c }) => c.props?.rowSelection?.enable ? [c.rowSelectionCol, ...e] : e
|
|
43
42
|
}
|
|
44
43
|
};
|
|
45
|
-
function useSelector(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const id = (data) => data[opt.rowKey];
|
|
58
|
-
createRenderEffect(on(selected, () => {
|
|
59
|
-
const keyed = keyBy(selected(), id);
|
|
60
|
-
reconcile(keyed)(map);
|
|
61
|
-
}));
|
|
62
|
-
return {
|
|
63
|
-
isSelected,
|
|
64
|
-
select,
|
|
65
|
-
clear,
|
|
66
|
-
set
|
|
44
|
+
function useSelector(e) {
|
|
45
|
+
let c = createMutable({}), l = createMemo(() => [...e.value || []]), u = (e) => !!c[h(e)], d = (l, u = !0) => {
|
|
46
|
+
e.selectable(l) && (e.multiple ? c[h(l)] = u ? l : void 0 : reconcile({ [h(l)]: u ? l : void 0 })(c), m(Object.values(c)));
|
|
47
|
+
}, p = () => e.onChange?.([]), m = (c = []) => e.onChange?.(c), h = (c) => c[e.rowKey];
|
|
48
|
+
return createRenderEffect(on(l, () => {
|
|
49
|
+
let e = keyBy(l(), h);
|
|
50
|
+
reconcile(e)(c);
|
|
51
|
+
})), {
|
|
52
|
+
isSelected: u,
|
|
53
|
+
select: d,
|
|
54
|
+
clear: p,
|
|
55
|
+
set: m
|
|
67
56
|
};
|
|
68
57
|
}
|
|
69
58
|
export { RowSelectionPlugin };
|
|
@@ -7,7 +7,7 @@ import { defaultsDeep } from "es-toolkit/compat";
|
|
|
7
7
|
import { defaultRangeExtractor } from "@tanstack/solid-virtual";
|
|
8
8
|
var $ML = Symbol();
|
|
9
9
|
const VirtualScrollPlugin = { rewriteProps: {
|
|
10
|
-
virtual: ({ virtual }) => defaultsDeep(
|
|
10
|
+
virtual: ({ virtual: e }) => defaultsDeep(e, {
|
|
11
11
|
x: {
|
|
12
12
|
batch: 3,
|
|
13
13
|
overscan: 2
|
|
@@ -17,104 +17,79 @@ const VirtualScrollPlugin = { rewriteProps: {
|
|
|
17
17
|
overscan: 5
|
|
18
18
|
}
|
|
19
19
|
}),
|
|
20
|
-
Table: ({ Table }, { store }) => (
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
const virtualizerY = useVirtualizer(mergeProps$1(() => props.virtual?.y, {
|
|
24
|
-
getScrollElement: () => el,
|
|
20
|
+
Table: ({ Table: s }, { store: d }) => (f) => {
|
|
21
|
+
let p, { props: m } = useContext(Ctx), h = useVirtualizer(mergeProps$1(() => m.virtual?.y, {
|
|
22
|
+
getScrollElement: () => p,
|
|
25
23
|
get count() {
|
|
26
|
-
return
|
|
24
|
+
return m.data?.length || 0;
|
|
27
25
|
},
|
|
28
26
|
estimateSize: () => 32,
|
|
29
27
|
indexAttribute: "y"
|
|
30
|
-
}))
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
getScrollElement: () => el,
|
|
28
|
+
})), g = useVirtualizer(mergeProps$1(() => m.virtual?.x, {
|
|
29
|
+
horizontal: !0,
|
|
30
|
+
getScrollElement: () => p,
|
|
34
31
|
get count() {
|
|
35
|
-
return
|
|
32
|
+
return m.columns?.length || 0;
|
|
36
33
|
},
|
|
37
|
-
estimateSize: (
|
|
34
|
+
estimateSize: (e) => m.columns?.[e].width ?? 40,
|
|
38
35
|
indexAttribute: "x",
|
|
39
|
-
rangeExtractor(
|
|
40
|
-
return [...new Set([...
|
|
36
|
+
rangeExtractor(e) {
|
|
37
|
+
return [...new Set([...m.columns?.map((e, a) => e.fixed ? a : void 0).filter((e) => e != null) || [], ...defaultRangeExtractor(e)])];
|
|
41
38
|
},
|
|
42
|
-
extras: () =>
|
|
39
|
+
extras: () => m.columns?.map((e, a) => e.fixed ? a : void 0).filter((e) => e != null) || []
|
|
43
40
|
}));
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
item,
|
|
53
|
-
offset: item.start - prev.end
|
|
54
|
-
};
|
|
41
|
+
return d.virtualizerY = h, d.virtualizerX = g, d[$ML] = createMemo(() => {
|
|
42
|
+
let e = d.virtualizerX.getVirtualItems(), a = {};
|
|
43
|
+
for (let o = 1; o < e.length; o++) {
|
|
44
|
+
let s = e[o], c = e[o - 1];
|
|
45
|
+
s.index - c.index > 1 && (a[s.index] = {
|
|
46
|
+
item: s,
|
|
47
|
+
offset: s.start - c.end
|
|
48
|
+
});
|
|
55
49
|
}
|
|
56
|
-
return
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
ref: (e) => el = e,
|
|
50
|
+
return a;
|
|
51
|
+
}), f = combineProps({
|
|
52
|
+
ref: (e) => p = e,
|
|
60
53
|
class: "virtual"
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
table.style.height = store.virtualizerY.getTotalSize() + (store.thead?.offsetHeight || 0) + "px";
|
|
66
|
-
});
|
|
67
|
-
return createComponent(Table, o);
|
|
68
|
-
},
|
|
69
|
-
Thead: ({ Thead }, { store }) => (o) => {
|
|
70
|
-
o = combineProps({ get style() {
|
|
71
|
-
return `transform: translate(${store.virtualizerX.getVirtualItems()[0]?.start}px, 0px);`;
|
|
72
|
-
} }, o);
|
|
73
|
-
return createComponent(Thead, o);
|
|
74
|
-
},
|
|
75
|
-
Tbody: ({ Tbody }, { store }) => (o) => {
|
|
76
|
-
o = combineProps({ get style() {
|
|
77
|
-
return `transform: translate(${store.virtualizerX.getVirtualItems()[0]?.start}px, ${store.virtualizerY.getVirtualItems()[0]?.start}px)`;
|
|
78
|
-
} }, o);
|
|
79
|
-
return createComponent(Tbody, o);
|
|
54
|
+
}, f), createEffect(() => {
|
|
55
|
+
let { table: e, tbody: a } = d;
|
|
56
|
+
e.style.width = d.virtualizerX.getTotalSize() + "px", e.style.height = d.virtualizerY.getTotalSize() + (d.thead?.offsetHeight || 0) + "px";
|
|
57
|
+
}), createComponent(s, f);
|
|
80
58
|
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
59
|
+
Thead: ({ Thead: e }, { store: a }) => (s) => (s = combineProps({ get style() {
|
|
60
|
+
return `transform: translate(${a.virtualizerX.getVirtualItems()[0]?.start}px, 0px);`;
|
|
61
|
+
} }, s), createComponent(e, s)),
|
|
62
|
+
Tbody: ({ Tbody: e }, { store: a }) => (s) => (s = combineProps({ get style() {
|
|
63
|
+
return `transform: translate(${a.virtualizerX.getVirtualItems()[0]?.start}px, ${a.virtualizerY.getVirtualItems()[0]?.start}px)`;
|
|
64
|
+
} }, s), createComponent(e, s)),
|
|
65
|
+
Tr: ({ Tr: e }, { store: a }) => (s) => (createEffect(() => a.trSizes[s.y] && a.virtualizerY.resizeItem(s.y, a.trSizes[s.y].height)), createComponent(e, s)),
|
|
66
|
+
Td: ({ Td: e }, { store: a }) => (s) => {
|
|
67
|
+
let c = createMemo(() => a[$ML]()[s.x]), l = combineProps({ get style() {
|
|
68
|
+
return `width: ${s.col.width || 80}px; margin-left: ${c()?.offset ?? 0}px`;
|
|
69
|
+
} }, s);
|
|
70
|
+
return createComponent(e, l);
|
|
84
71
|
},
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
} }, o);
|
|
90
|
-
return createComponent(Td, mo);
|
|
72
|
+
Th: ({ Th: e }, { store: a }) => (s) => {
|
|
73
|
+
createEffect(() => a.thSizes[s.x] && a.virtualizerX.resizeItem(s.x, a.thSizes[s.x].width));
|
|
74
|
+
let l = createMemo(() => a[$ML]?.()[s.x]), u = combineProps(() => ({ style: `width: ${s.col.width || 80}px; margin-left: ${l()?.offset ?? 0}px` }), s);
|
|
75
|
+
return createComponent(e, u);
|
|
91
76
|
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const mo = combineProps(() => ({ style: `width: ${o.col.width || 80}px; margin-left: ${ml()?.offset ?? 0}px` }), o);
|
|
96
|
-
return createComponent(Th, mo);
|
|
97
|
-
},
|
|
98
|
-
EachRows: ({ EachRows }, { store }) => (o) => {
|
|
99
|
-
const list = createMemo(() => store.virtualizerY.getVirtualItems().map((e) => o.each[e.index]));
|
|
100
|
-
return createComponent(EachRows, mergeProps(o, {
|
|
77
|
+
EachRows: ({ EachRows: e }, { store: a }) => (c) => {
|
|
78
|
+
let l = createMemo(() => a.virtualizerY.getVirtualItems().map((e) => c.each[e.index]));
|
|
79
|
+
return createComponent(e, mergeProps(c, {
|
|
101
80
|
get each() {
|
|
102
|
-
return
|
|
81
|
+
return l();
|
|
103
82
|
},
|
|
104
|
-
children: (e,
|
|
105
|
-
return o.children(e, createMemo(() => store.virtualizerY.getVirtualItems()[i()]?.index));
|
|
106
|
-
}
|
|
83
|
+
children: (e, o) => c.children(e, createMemo(() => a.virtualizerY.getVirtualItems()[o()]?.index))
|
|
107
84
|
}));
|
|
108
85
|
},
|
|
109
|
-
EachCells: ({ EachCells }, { store }) => (
|
|
110
|
-
|
|
111
|
-
return createComponent(
|
|
86
|
+
EachCells: ({ EachCells: e }, { store: a }) => (c) => {
|
|
87
|
+
let l = createMemo(() => a.virtualizerX.getVirtualItems().map((e) => c.each[e.index]));
|
|
88
|
+
return createComponent(e, mergeProps(c, {
|
|
112
89
|
get each() {
|
|
113
|
-
return
|
|
90
|
+
return l();
|
|
114
91
|
},
|
|
115
|
-
children: (e,
|
|
116
|
-
return o.children(e, createMemo(() => store.virtualizerX.getVirtualItems()[i()]?.index));
|
|
117
|
-
}
|
|
92
|
+
children: (e, o) => c.children(e, createMemo(() => a.virtualizerX.getVirtualItems()[o()]?.index))
|
|
118
93
|
}));
|
|
119
94
|
}
|
|
120
95
|
} };
|
package/dist/plus.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { spread, template } from "solid-js/web";
|
|
2
|
-
var _tmpl$ = /* @__PURE__ */ template(
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
spread(_el$, props, true, true);
|
|
6
|
-
return _el$;
|
|
2
|
+
var _tmpl$ = /* @__PURE__ */ template("<svg viewBox=\"0 0 24 24\"width=1.2em height=1.2em><path fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 d=\"M5 12h14m-7-7v14\">"), plus_default = (n = {}) => (() => {
|
|
3
|
+
var r = _tmpl$();
|
|
4
|
+
return spread(r, n, !0, !0), r;
|
|
7
5
|
})();
|
|
8
6
|
export { plus_default as default };
|
package/dist/style.css
CHANGED
|
@@ -1,185 +1,3 @@
|
|
|
1
|
-
@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-content:"";--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-text-opacity:100%;--un-border-opacity:100%;--un-space-y-reverse:initial;--un-space-x-reverse:initial;--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;}.m9{margin:calc(var(--spacing) * 9);}.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);}.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-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-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;}.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;}.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) */;}}
|
|
2
|
-
@charset "UTF-8";
|
|
3
|
-
:root {
|
|
4
|
-
--c-primary: #51a2ff;
|
|
5
|
-
--select-area-bg: #5292f71a;
|
|
6
|
-
--menu-bg: #fff;
|
|
7
|
-
}
|
|
1
|
+
@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-content:"";--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-text-opacity:100%;--un-border-opacity:100%;--un-space-y-reverse:initial;--un-space-x-reverse:initial;--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%}@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}:root,:host{--spacing:.25rem;--colors-gray-DEFAULT:#99a1af;--text-sm-fontSize:.875rem;--text-sm-lineHeight:1.25rem;--radius-sm:.25rem;--colors-blue-DEFAULT:#54a2ff;--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)}@supports (color:lab(0% 0 0)){:root,:host{--colors-gray-DEFAULT:lab(65.9269% -.832707 -8.17474);--colors-blue-DEFAULT:lab(65.0361% -1.42062 -56.9803)}}*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;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");font-feature-settings:var(--default-font-featureSettings,normal);font-variation-settings:var(--default-font-variationSettings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-monoFont-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-monoFont-featureSettings,normal);font-variation-settings:var(--default-monoFont-variationSettings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[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:.875rem}.lh-\[1\]{--un-leading:1;line-height:1}.m9{margin:36px}.mx-1{margin-inline:4px}.mx-3\!{margin-inline:12px!important}.my-1{margin-block:4px}.ml{margin-left:16px}.ml-\.5{margin-left:2px}.ml-1{margin-left:4px}.mr--1{margin-right:-4px}.mr-1{margin-right:4px}.mr-2{margin-right:8px}.mr-2\.5{margin-right:10px}.p-1{padding:4px}.px,.px-4{padding-inline:16px}.px-2{padding-inline:8px}.py-1{padding-block:4px}.py-2{padding-block:8px}.pl-1{padding-left:4px}.pr-4{padding-right:16px}.ps{padding-inline-start:16px}.outline-0{outline-style:var(--un-outline-style);outline-width:0}.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)}.b{border-width:1px}.rd-2{border-radius:.5rem}.rd-sm{border-radius:var(--radius-sm)}.bg-\#dafaea{background-color:color-mix(in oklab,#dafaea var(--un-bg-opacity),transparent)}.bg-\#ffe8e8{background-color:color-mix(in oklab,#ffe8e8 var(--un-bg-opacity),transparent)}.bg-\#fff{background-color:color-mix(in oklab,#fff var(--un-bg-opacity),transparent)}.bg-gray\/20{background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)20%,transparent)}.op-75{opacity:.75}.op40{opacity:.4}.flex{display:flex}.flex-shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.gap-2{gap:8px}.size-4\!{width:16px!important;height:16px!important}.size-full{width:100%;height:100%}.h-1\!{height:4px!important}.h-a\!{height:auto!important}.h-full{height:100%}.max-h-100{max-height:400px}.min-h-40{min-height:160px}.min-h-a\!{min-height:auto!important}.w-10px\!{width:10px!important}.after\:h-1:after{height:4px}.after\:w-1:after{width:4px}.inline{display:inline}.block{display:block}.cursor-s-resize{cursor:s-resize}.cursor-w-resize{cursor:w-resize}.resize-none{resize:none}.select-none{-webkit-user-select:none;user-select:none}.translate-x-1\/2{--un-translate-x:50%;translate:var(--un-translate-x)var(--un-translate-y)}.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}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.justify-end\!{justify-content:flex-end!important}.justify-center{justify-content:center}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.z-1{z-index:1}.z-9{z-index:9}.overflow-auto{overflow:auto}.table{display:table}.table-cell{display:table-cell}@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)}.bg-gray\/20{background-color:color-mix(in oklab,var(--colors-gray-DEFAULT)20%,transparent)}}
|
|
8
2
|
|
|
9
|
-
.data-table {
|
|
10
|
-
--table-b: 1px solid var(--table-b-c);
|
|
11
|
-
--table-b-c: #ebeef5;
|
|
12
|
-
--table-c: #606266;
|
|
13
|
-
--table-bg: #fff;
|
|
14
|
-
--table-header-c: #909399;
|
|
15
|
-
--table-header-bg: var(--table-bg);
|
|
16
|
-
--table-row-hover-bg: #f5f7fa;
|
|
17
|
-
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;
|
|
18
|
-
}@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
19
|
-
.data-table--table {
|
|
20
|
-
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;
|
|
21
|
-
border-collapse: separate;
|
|
22
|
-
border-spacing: 0;
|
|
23
|
-
}@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}
|
|
24
|
-
.data-table thead {
|
|
25
|
-
color:color-mix(in oklab, var(--table-header-c) var(--un-text-opacity), transparent) /* var(--table-header-c) */;
|
|
26
|
-
}@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
27
|
-
.data-table tr:hover > td {
|
|
28
|
-
background-color:color-mix(in oklab, var(--table-row-hover-bg) var(--un-bg-opacity), transparent) /* var(--table-row-hover-bg) */;
|
|
29
|
-
}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
30
|
-
.data-table th {
|
|
31
|
-
background-color:color-mix(in oklab, var(--table-header-bg) var(--un-bg-opacity), transparent) /* var(--table-header-bg) */;
|
|
32
|
-
}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
33
|
-
.data-table td {
|
|
34
|
-
background-color:color-mix(in oklab, var(--table-bg) var(--un-bg-opacity), transparent) /* var(--table-bg) */;
|
|
35
|
-
}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
36
|
-
.data-table td, .data-table th {
|
|
37
|
-
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;
|
|
38
|
-
text-align: inherit;
|
|
39
|
-
background-image: linear-gradient(var(--table-b-c), var(--table-b-c));
|
|
40
|
-
background-repeat: no-repeat;
|
|
41
|
-
background-size: 100% 1px, 1px 100%;
|
|
42
|
-
background-position: 100% 100%, 100% 0;
|
|
43
|
-
}@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
44
|
-
.data-table td:empty::after {
|
|
45
|
-
content: "ㅤ" !important;
|
|
46
|
-
}
|
|
47
|
-
.data-table--border {
|
|
48
|
-
border-width:1px;
|
|
49
|
-
}
|
|
50
|
-
.data-table--border th, .data-table--border td {
|
|
51
|
-
background-image: linear-gradient(var(--table-b-c), var(--table-b-c)), linear-gradient(var(--table-b-c), var(--table-b-c));
|
|
52
|
-
}
|
|
53
|
-
.data-table--scroll-view {
|
|
54
|
-
overflow:auto;
|
|
55
|
-
}
|
|
56
|
-
.data-table__layers {
|
|
57
|
-
pointer-events:none;left:calc(var(--spacing) * 0);top:calc(var(--spacing) * 0);position:absolute;z-index:1;
|
|
58
|
-
}.data-table__layers>*{position:absolute;}
|
|
59
|
-
|
|
60
|
-
.range-selected {
|
|
61
|
-
position:relative;
|
|
62
|
-
}
|
|
63
|
-
.range-selected > .area {
|
|
64
|
-
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;
|
|
65
|
-
}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
66
|
-
.range-selected-l > .area {
|
|
67
|
-
border-left-width:2px;
|
|
68
|
-
}
|
|
69
|
-
.range-selected-r > .area {
|
|
70
|
-
border-right-width:2px;
|
|
71
|
-
}
|
|
72
|
-
.range-selected-t > .area {
|
|
73
|
-
border-top-width:2px;
|
|
74
|
-
}
|
|
75
|
-
.range-selected-b > .area {
|
|
76
|
-
border-bottom-width:2px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.row-range-highlight, .col-range-highlight {
|
|
80
|
-
position:relative;
|
|
81
|
-
}
|
|
82
|
-
.row-range-highlight > .area, .col-range-highlight > .area {
|
|
83
|
-
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;
|
|
84
|
-
}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
85
|
-
|
|
86
|
-
.row-range-highlight > .area {
|
|
87
|
-
border-right-width:1px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.col-range-highlight > .area {
|
|
91
|
-
border-bottom-width:1px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.sticky-header {
|
|
95
|
-
background-color:color-mix(in oklab, #fff var(--un-bg-opacity), transparent) /* #fff */;top:calc(var(--spacing) * 0);position:sticky;z-index:9;
|
|
96
|
-
}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
97
|
-
.sticky-header::after {
|
|
98
|
-
width:100%;height:10px;pointer-events:none;--un-content:'';content:var(--un-content);top:100%;position:absolute;
|
|
99
|
-
box-shadow: inset 0 10px 10px -10px rgba(0, 0, 0, 0.15);
|
|
100
|
-
}@property --un-content{syntax:"*";inherits:false;initial-value:"";}
|
|
101
|
-
|
|
102
|
-
.fixed-left, .fixed-right {
|
|
103
|
-
background-color:color-mix(in oklab, #fff var(--un-bg-opacity), transparent) /* #fff */;position:sticky !important;z-index:1;
|
|
104
|
-
}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
|
|
105
|
-
.fixed-left::after, .fixed-right::after {
|
|
106
|
-
width:10px;height:100%;pointer-events:none;--un-content:'';content:var(--un-content);top:calc(var(--spacing) * 0);position:absolute;
|
|
107
|
-
}@property --un-content{syntax:"*";inherits:false;initial-value:"";}
|
|
108
|
-
|
|
109
|
-
.is-scroll-right .fixed-left::after, .is-scroll-mid .fixed-left::after {
|
|
110
|
-
left:100%;
|
|
111
|
-
box-shadow: inset 10px 0 10px -10px rgba(0, 0, 0, 0.15);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.is-scroll-left .fixed-right::after, .is-scroll-mid .fixed-right::after {
|
|
115
|
-
right:100%;
|
|
116
|
-
box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.15);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.copied .range-selected::before {
|
|
120
|
-
border-style: dashed;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.data-table.virtual {
|
|
124
|
-
width:fit-content;display:block;overflow:auto;
|
|
125
|
-
}
|
|
126
|
-
.data-table.virtual thead {
|
|
127
|
-
width:fit-content;display:block;
|
|
128
|
-
}.data-table.virtual thead>tr{display:flex;}.data-table.virtual thead>tr>th{flex:0 0 auto;display:block;}
|
|
129
|
-
.data-table.virtual tbody {
|
|
130
|
-
width:fit-content;display:block;
|
|
131
|
-
}.data-table.virtual tbody>tr{display:flex;}.data-table.virtual tbody>tr>td{flex:0 0 auto;display:block;}
|
|
132
|
-
|
|
133
|
-
.row-selection {
|
|
134
|
-
width:calc(var(--spacing) * 10);
|
|
135
|
-
}
|
|
136
|
-
.row-selection > label {
|
|
137
|
-
display:flex;width:100%;height:100%;align-items:center;inset:calc(var(--spacing) * 0);justify-content:center;position:absolute;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.icon-clickable {
|
|
141
|
-
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;
|
|
142
|
-
}.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%;}
|
|
143
|
-
|
|
144
|
-
input[type=checkbox].you-checkbox {
|
|
145
|
-
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;
|
|
146
|
-
}@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;}
|
|
147
|
-
input[type=checkbox].you-checkbox.checked::after {
|
|
148
|
-
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;
|
|
149
|
-
}@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;}
|
|
150
|
-
|
|
151
|
-
.in-cell-edit-wrapper {
|
|
152
|
-
inset:calc(var(--spacing) * 0);position:absolute;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.in-cell__resize-handle {
|
|
156
|
-
width:100%;height:100%;
|
|
157
|
-
}.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) */;}
|
|
158
|
-
.in-cell__resize-handle::after {
|
|
159
|
-
--un-content:'';content:var(--un-content);
|
|
160
|
-
}@property --un-content{syntax:"*";inherits:false;initial-value:"";}
|
|
161
|
-
|
|
162
|
-
.li {
|
|
163
|
-
cursor:pointer;position:relative;
|
|
164
|
-
}
|
|
165
|
-
.li:hover, .li.hover {
|
|
166
|
-
background-color:color-mix(in srgb, var(--colors-gray-DEFAULT) 20%, transparent) /* oklch(70.7% 0.022 261.325) */;
|
|
167
|
-
}@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) */;}}
|
|
168
|
-
.li:active::before, .li.selected::before, .li.active::before {
|
|
169
|
-
content: "";
|
|
170
|
-
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;
|
|
171
|
-
}@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) */;}}
|
|
172
|
-
.li.disabled, .li[disabled] {
|
|
173
|
-
opacity: 0.4;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.tt-menu {
|
|
177
|
-
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);
|
|
178
|
-
}@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;}
|
|
179
|
-
|
|
180
|
-
.tt-menu-x {
|
|
181
|
-
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);
|
|
182
|
-
}@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;}
|
|
183
|
-
.tt-menu-x > .hr {
|
|
184
|
-
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;
|
|
185
|
-
}@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) */;}}
|
|
3
|
+
:root{--c-primary:#51a2ff;--select-area-bg:#5292f71a;--menu-bg:#fff}.data-table{--table-b:1px solid var(--table-b-c);--table-b-c:#ebeef5;--table-c:#606266;--table-bg:#fff;--table-header-c:#909399;--table-header-bg:var(--table-bg);--table-row-hover-bg:#f5f7fa;color:color-mix(in oklab,var(--table-c)var(--un-text-opacity),transparent);border-color:color-mix(in oklab,var(--table-b-c)var(--un-border-opacity),transparent);font-size:14px;position:relative}@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}.data-table--table{color:color-mix(in oklab,var(--table-c)var(--un-text-opacity),transparent);outline-style:var(--un-outline-style);border-collapse:collapse;table-layout:fixed;border-collapse:separate;border-spacing:0;border-width:0;outline-width:0;width:max-content}@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid}.data-table thead{color:color-mix(in oklab,var(--table-header-c)var(--un-text-opacity),transparent)}.data-table tr:hover>td{background-color:color-mix(in oklab,var(--table-row-hover-bg)var(--un-bg-opacity),transparent)}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}.data-table th{background-color:color-mix(in oklab,var(--table-header-bg)var(--un-bg-opacity),transparent)}.data-table td{background-color:color-mix(in oklab,var(--table-bg)var(--un-bg-opacity),transparent)}.data-table td,.data-table th{vertical-align:middle;outline-style:var(--un-outline-style);border-width:0;border-color:color-mix(in oklab,var(--table-b-c)var(--un-border-opacity),transparent);--un-border-style:solid;box-sizing:border-box;text-align:inherit;background-image:linear-gradient(var(--table-b-c),var(--table-b-c));background-position:100% 100%,100% 0;background-repeat:no-repeat;background-size:100% 1px,1px 100%;border-style:solid;outline-width:0;padding-block:2px;padding-inline:8px}.data-table td:empty:after{content:"ㅤ"!important}.data-table--border{border-width:1px}.data-table--border th,.data-table--border td{background-image:linear-gradient(var(--table-b-c),var(--table-b-c)),linear-gradient(var(--table-b-c),var(--table-b-c))}.data-table--scroll-view{overflow:auto}.data-table__layers{pointer-events:none;z-index:1;position:absolute;top:0;left:0}.data-table__layers>*{position:absolute}.range-selected{position:relative}.range-selected>.area{border-width:0;border-color:color-mix(in oklab,var(--c-primary)var(--un-border-opacity),transparent);--un-border-style:solid;background-color:color-mix(in oklab,var(--select-area-bg)var(--un-bg-opacity),transparent);pointer-events:none;border-style:solid;position:absolute;inset:0}.range-selected-l>.area{border-left-width:2px}.range-selected-r>.area{border-right-width:2px}.range-selected-t>.area{border-top-width:2px}.range-selected-b>.area{border-bottom-width:2px}.row-range-highlight,.col-range-highlight{position:relative}.row-range-highlight>.area,.col-range-highlight>.area{border-width:0;border-color:color-mix(in oklab,var(--c-primary)var(--un-border-opacity),transparent);--un-border-style:solid;background-color:color-mix(in oklab,var(--c-primary)10%,transparent);pointer-events:none;border-style:solid;position:absolute;inset:0}.row-range-highlight>.area{border-right-width:1px}.col-range-highlight>.area{border-bottom-width:1px}.sticky-header{background-color:color-mix(in oklab,#fff var(--un-bg-opacity),transparent);z-index:9;position:sticky;top:0}.sticky-header:after{pointer-events:none;--un-content:"";content:var(--un-content);width:100%;height:10px;position:absolute;top:100%;box-shadow:inset 0 10px 10px -10px #00000026}@property --un-content{syntax:"*";inherits:false;initial-value:""}.fixed-left,.fixed-right{background-color:color-mix(in oklab,#fff var(--un-bg-opacity),transparent);z-index:1;position:sticky!important}.fixed-left:after,.fixed-right:after{pointer-events:none;--un-content:"";content:var(--un-content);width:10px;height:100%;position:absolute;top:0}.is-scroll-right .fixed-left:after,.is-scroll-mid .fixed-left:after{left:100%;box-shadow:inset 10px 0 10px -10px #00000026}.is-scroll-left .fixed-right:after,.is-scroll-mid .fixed-right:after{right:100%;box-shadow:inset -10px 0 10px -10px #00000026}.copied .range-selected:before{border-style:dashed}.data-table.virtual{width:fit-content;display:block;overflow:auto}.data-table.virtual thead{width:fit-content;display:block}.data-table.virtual thead>tr{display:flex}.data-table.virtual thead>tr>th{flex:none;display:block}.data-table.virtual tbody{width:fit-content;display:block}.data-table.virtual tbody>tr{display:flex}.data-table.virtual tbody>tr>td{flex:none;display:block}.row-selection{width:40px}.row-selection>label{justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;inset:0}.icon-clickable{box-sizing:border-box;border-radius:.25rem;justify-content:center;align-items:center;width:20px;height:20px;padding:2px;display:flex}.icon-clickable:hover{background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)30%,transparent)}@supports (color:color-mix(in lab, red, red)){.icon-clickable:hover{background-color:color-mix(in oklab,var(--colors-gray-DEFAULT)30%,transparent)}}.icon-clickable>svg{width:100%;height:100%}input[type=checkbox].you-checkbox{color:color-mix(in oklab,#2196f3 var(--un-text-opacity),transparent);appearance:none;outline-offset:0px;--un-border-style:solid;border:2px solid;border-radius:.25rem;width:16px;height:16px;margin:4px;position:relative}input[type=checkbox].you-checkbox:focus{outline-style:var(--un-outline-style);--un-outline-style:solid;outline:4px solid oklab(65.8156% -.0610626 -.157539/.4)}@property --un-outline-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}input[type=checkbox].you-checkbox:checked{background-color:currentColor}input[type=checkbox].you-checkbox.checked:after{color:color-mix(in oklab,#fff var(--un-text-opacity),transparent);--un-content:"✓";content:var(--un-content);--un-translate-x:-50%;--un-translate-y:-50%;translate:var(--un-translate-x)var(--un-translate-y);z-index:1;font-size:.75rem;position:absolute;top:50%;left:50%}@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}.in-cell-edit-wrapper{z-index:1;position:absolute;inset:0;box-shadow:0 0 16px -4px #00000040}.in-cell__resize-handle{width:100%;height:100%;position:absolute}.in-cell__resize-handle:hover:after{background-color:color-mix(in oklab,var(--c-primary)40%,transparent)}.in-cell__resize-handle:active:after{background-color:color-mix(in oklab,var(--c-primary)var(--un-bg-opacity),transparent)}.in-cell__resize-handle:after{--un-content:"";content:var(--un-content)}.li{cursor:pointer;position:relative}.li:hover,.li.hover{background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)20%,transparent)}@supports (color:color-mix(in lab, red, red)){.li:hover,.li.hover{background-color:color-mix(in oklab,var(--colors-gray-DEFAULT)20%,transparent)}}.li:active:before,.li.selected:before,.li.active:before{content:"";border-radius:inherit;background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)15%,transparent);position:absolute;inset:0}@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)}}.li.disabled,.li[disabled]{opacity:.4}.tt-menu{font-size:var(--text-sm-fontSize);line-height:var(--un-leading,var(--text-sm-lineHeight));border-width:1px;border-color:color-mix(in srgb,var(--colors-gray-DEFAULT)30%,transparent);--un-border-style:solid;background-color:color-mix(in oklab,var(--menu-bg)var(--un-bg-opacity),transparent);cursor:default;--un-shadow:0 10px 15px -3px var(--un-shadow-color,#0000001a),0 4px 6px -4px var(--un-shadow-color,#0000001a);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);border-style:solid;border-radius:.5rem;padding-block:4px}@supports (color:color-mix(in lab, red, red)){.tt-menu{border-color:color-mix(in oklab,var(--colors-gray-DEFAULT)30%,transparent)}}@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:0}@property --un-ring-offset-color{syntax:"*";inherits:false}@property --un-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}:where(.tt-menu>:not(:last-child)){--un-space-y-reverse:0;margin-block-start:calc(calc(4px*.5)*var(--un-space-y-reverse));margin-block-end:calc(calc(4px*.5)*calc(1 - var(--un-space-y-reverse)))}@property --un-space-y-reverse{syntax:"*";inherits:false;initial-value:0}.tt-menu-x{font-size:var(--text-sm-fontSize);line-height:var(--un-leading,var(--text-sm-lineHeight));border-width:1px;border-color:color-mix(in srgb,var(--colors-gray-DEFAULT)30%,transparent);--un-border-style:solid;background-color:color-mix(in oklab,var(--menu-bg)var(--un-bg-opacity),transparent);cursor:default;--un-shadow:0 10px 15px -3px var(--un-shadow-color,#0000001a),0 4px 6px -4px var(--un-shadow-color,#0000001a);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);border-style:solid;border-radius:.5rem;padding-inline:4px}@supports (color:color-mix(in lab, red, red)){.tt-menu-x{border-color:color-mix(in oklab,var(--colors-gray-DEFAULT)30%,transparent)}}:where(.tt-menu-x>:not(:last-child)){--un-space-x-reverse:0;margin-inline-start:calc(calc(4px*.5)*var(--un-space-x-reverse));margin-inline-end:calc(calc(4px*.5)*calc(1 - var(--un-space-x-reverse)))}@property --un-space-x-reverse{syntax:"*";inherits:false;initial-value:0}.tt-menu-x>.hr{background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)30%,transparent);width:1px;margin-block:6px}@supports (color:color-mix(in lab, red, red)){.tt-menu-x>.hr{background-color:color-mix(in oklab,var(--colors-gray-DEFAULT)30%,transparent)}}.col__guide-line,.row__guide-line{background-color:color-mix(in oklab,var(--c-primary)var(--un-bg-opacity),transparent);pointer-events:none;z-index:9;position:fixed;top:0;left:0}th[draggable=true],td[draggable=true]{cursor:move}
|
package/dist/utils.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const log: (...args: any[]) => any;
|
|
|
16
16
|
export declare const parseStyle: (s: any) => any;
|
|
17
17
|
export declare function findret<T, R>(arr: readonly T[], cb: (e: T, i: number) => R): R | undefined;
|
|
18
18
|
export declare function emptyObject(o: any): any;
|
|
19
|
+
export declare function findAsync<T>(arr: T[], cb: (e: T, i: number) => Promise<boolean> | boolean): Promise<T>;
|
|
19
20
|
type Fnable<T> = T | (() => T);
|
|
20
21
|
type Awatable<T> = T | Promise<T>;
|
|
21
22
|
type BaseType = string | number | boolean | null;
|