@vtable-guild/vtable-guild 2.9.0-alpha.7 → 2.9.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index.css +15 -0
- package/css/style.css +26 -2
- package/css/tailwind3-utilities.css +11 -2
- package/css/tailwind3.css +15 -0
- package/css/tailwind4.css +15 -0
- package/dist/css/index.css +15 -0
- package/dist/css/style.css +26 -2
- package/dist/css/tailwind3-utilities.css +11 -2
- package/dist/css/tailwind3.css +15 -0
- package/dist/css/tailwind4.css +15 -0
- package/dist/index.full.mjs +608 -599
- package/dist/table/src/components/TableQuery.d.ts.map +1 -1
- package/dist/table/src/components/TableQuery.mjs +60 -58
- package/dist/table/src/controls.d.ts.map +1 -1
- package/dist/table/src/types/controls.d.ts +4 -0
- package/dist/table/src/types/controls.d.ts.map +1 -1
- package/dist/table/src/types/editable.d.ts +4 -3
- package/dist/table/src/types/editable.d.ts.map +1 -1
- package/dist/table/src/types/query-form.d.ts +4 -2
- package/dist/table/src/types/query-form.d.ts.map +1 -1
- package/dist/table/src/types/query-form.typecheck.d.ts +15 -0
- package/dist/table/src/types/query-form.typecheck.d.ts.map +1 -1
- package/dist/theme/src/query.d.ts +61 -33
- package/dist/theme/src/query.d.ts.map +1 -1
- package/dist/theme/src/query.mjs +20 -13
- package/package.json +1 -1
package/dist/theme/src/query.mjs
CHANGED
|
@@ -1,36 +1,43 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
slots: {
|
|
3
3
|
root: "flex min-w-0 flex-wrap items-start gap-x-[var(--vtg-query-column-gap,24px)] gap-y-[var(--vtg-query-row-gap,16px)] rounded-[var(--vtg-query-radius,6px)] bg-[color:var(--color-surface)] p-[var(--vtg-query-padding,24px)] font-[family-name:var(--font-family-base)] text-[length:var(--vtg-table-font-size)] text-[color:var(--color-on-surface)]",
|
|
4
|
-
fields: "
|
|
4
|
+
fields: "",
|
|
5
5
|
field: "flex min-w-0 items-start gap-[var(--vtg-query-label-gap,12px)]",
|
|
6
|
-
label: "flex h-[var(--vtg-query-control-height,32px)]
|
|
7
|
-
control: "min-w-0
|
|
6
|
+
label: "flex h-[var(--vtg-query-control-height,32px)] shrink-0 items-center",
|
|
7
|
+
control: "min-w-0",
|
|
8
8
|
error: "mt-1 text-[color:var(--vtg-cell-error)] text-[length:var(--vtg-query-error-font-size,12px)]",
|
|
9
|
-
actions: "
|
|
9
|
+
actions: "flex min-h-[var(--vtg-query-control-height,32px)] max-w-full flex-wrap items-center gap-[var(--vtg-query-action-gap,8px)]",
|
|
10
10
|
feedback: "w-full text-[color:var(--vtg-cell-error)]",
|
|
11
11
|
collapse: "inline-flex items-center gap-1"
|
|
12
12
|
},
|
|
13
13
|
variants: {
|
|
14
14
|
layout: {
|
|
15
|
-
form: {
|
|
15
|
+
form: {
|
|
16
|
+
fields: "grid min-w-[min(100%,calc(var(--vtg-query-field-min-width,240px)*2_+_var(--vtg-query-column-gap,24px)))] flex-1 gap-x-[var(--vtg-query-column-gap,24px)] gap-y-[var(--vtg-query-row-gap,16px)] [grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--vtg-query-field-min-width,240px)),1fr))]",
|
|
17
|
+
label: "w-[var(--vtg-query-label-width,80px)] justify-end",
|
|
18
|
+
control: "flex-1 [&>*]:w-full",
|
|
19
|
+
actions: "ml-auto justify-end"
|
|
20
|
+
},
|
|
16
21
|
light: {
|
|
17
22
|
root: "p-[var(--vtg-query-light-padding,16px)]",
|
|
18
|
-
fields: "
|
|
19
|
-
field: "w-[var(--vtg-query-light-field-width,
|
|
20
|
-
label: "w-auto justify-start"
|
|
23
|
+
fields: "contents",
|
|
24
|
+
field: "w-[var(--vtg-query-light-field-width,auto)] max-w-full",
|
|
25
|
+
label: "w-auto justify-start",
|
|
26
|
+
control: "flex-initial",
|
|
27
|
+
actions: "ml-0 justify-start"
|
|
21
28
|
}
|
|
22
29
|
}
|
|
23
30
|
},
|
|
24
|
-
defaultVariants: { layout: "
|
|
25
|
-
},
|
|
31
|
+
defaultVariants: { layout: "light" }
|
|
32
|
+
}, r = {
|
|
26
33
|
...e,
|
|
27
34
|
slots: {
|
|
28
35
|
...e.slots,
|
|
29
36
|
root: `${e.slots.root} rounded-[var(--vtg-query-radius,4px)]`
|
|
30
37
|
}
|
|
31
38
|
};
|
|
32
|
-
function a(
|
|
33
|
-
return
|
|
39
|
+
function a(t = "antdv") {
|
|
40
|
+
return t === "element-plus" ? r : e;
|
|
34
41
|
}
|
|
35
42
|
const l = {
|
|
36
43
|
label: "表格查询",
|
|
@@ -48,7 +55,7 @@ const l = {
|
|
|
48
55
|
validationFailed: "Check query conditions"
|
|
49
56
|
};
|
|
50
57
|
export {
|
|
51
|
-
|
|
58
|
+
r as elementPlusQueryTheme,
|
|
52
59
|
o as queryEnUS,
|
|
53
60
|
e as queryTheme,
|
|
54
61
|
l as queryZhCN,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtable-guild/vtable-guild",
|
|
3
|
-
"version": "2.9.0-alpha.
|
|
3
|
+
"version": "2.9.0-alpha.8",
|
|
4
4
|
"description": "Vue 3 table component with built-in virtual scrolling and switchable ant-design-vue / element-plus theme presets, powered by tailwind-variants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|