vlite3 1.5.6 → 1.5.7
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/components/ButtonGroup.vue.js +2 -2
- package/components/CategoryManager/CategoryManager.vue2.js +3 -3
- package/components/Chip/Chip.vue.d.ts +1 -0
- package/components/Chip/Chip.vue.js +67 -36
- package/components/Chip/types.d.ts +5 -1
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/DataTable/DataTable.vue.d.ts +12 -3
- package/components/DataTable/DataTable.vue.js +5 -586
- package/components/DataTable/DataTable.vue2.js +711 -2
- package/components/DataTable/DataTableHeader.vue.d.ts +22 -0
- package/components/DataTable/DataTableHeader.vue.js +5 -58
- package/components/DataTable/DataTableHeader.vue2.js +106 -2
- package/components/DataTable/DataTableRow.vue.d.ts +13 -0
- package/components/DataTable/DataTableRow.vue.js +2 -2
- package/components/DataTable/DataTableRow.vue2.js +133 -123
- package/components/DataTable/dataTableColumnWidths.d.ts +91 -0
- package/components/DataTable/dataTableColumnWidths.js +82 -0
- package/components/DataTable/types.d.ts +48 -0
- package/components/DataTable/useDataTableColumnResize.d.ts +52 -0
- package/components/DataTable/useDataTableColumnResize.js +328 -0
- package/components/Form/{AccordionView.vue.js → AccordionView.vue2.js} +1 -1
- package/components/Form/index.vue2.js +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +1 -1
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
- package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
- package/components/Screen/ScreenFilter.vue.js +3 -3
- package/components/StatusChip/StatusChip.vue.d.ts +6 -0
- package/components/StatusChip/StatusChip.vue.js +12 -10
- package/components/Tabes/Tabes.vue.js +3 -3
- package/components/Tabes/Tabes.vue2.js +241 -220
- package/components/Tabes/types.d.ts +3 -1
- package/package.json +1 -1
- package/style.css +17 -3
- package/utils/usePersistentState.d.ts +4 -1
- package/utils/usePersistentState.js +4 -3
- /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar.vue2.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ButtonGroup.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b0780f61"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -22,11 +22,11 @@ import "@vueuse/core";
|
|
|
22
22
|
/* empty css */
|
|
23
23
|
import qe from "../IconPicker.vue.js";
|
|
24
24
|
/* empty css */
|
|
25
|
-
/* empty css
|
|
25
|
+
/* empty css */
|
|
26
26
|
/* empty css */
|
|
27
27
|
/* empty css */
|
|
28
|
-
/* empty css
|
|
29
|
-
/* empty css
|
|
28
|
+
/* empty css */
|
|
29
|
+
/* empty css */
|
|
30
30
|
import "../../core/config.js";
|
|
31
31
|
/* empty css */
|
|
32
32
|
/* empty css */
|
|
@@ -24,6 +24,7 @@ declare const __VLS_component: import('vue').DefineComponent<ExtendedProps, {},
|
|
|
24
24
|
variant: ChipVariant | string;
|
|
25
25
|
size: import('./types').ChipSize;
|
|
26
26
|
disabled: boolean;
|
|
27
|
+
appearance: import('./types').ChipAppearance;
|
|
27
28
|
clickable: boolean;
|
|
28
29
|
deletable: boolean;
|
|
29
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { $t as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as B, computed as n, openBlock as o, createElementBlock as p, normalizeClass as u, renderSlot as g, createBlock as f, createCommentVNode as c, createTextVNode as D, toDisplayString as I, withCtx as S, createVNode as V } from "vue";
|
|
2
|
+
import v from "../Icon.vue.js";
|
|
3
|
+
import N from "../Button.vue.js";
|
|
4
|
+
import { $t as T } from "../../utils/i18n.js";
|
|
5
|
+
const j = ["role", "tabindex"], E = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "whitespace-nowrap"
|
|
8
|
-
},
|
|
8
|
+
}, K = "chip scrollbar-hide inline-flex w-max max-w-none shrink-0 items-center justify-center overflow-x-auto overflow-y-hidden font-medium rounded-full transition-all duration-200 border box-border whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary", F = /* @__PURE__ */ B({
|
|
9
9
|
__name: "Chip",
|
|
10
10
|
props: {
|
|
11
11
|
variant: { default: "subtle" },
|
|
12
12
|
text: { default: "" },
|
|
13
13
|
textI18n: {},
|
|
14
14
|
icon: {},
|
|
15
|
+
appearance: { default: "filled" },
|
|
15
16
|
size: { default: "medium" },
|
|
16
17
|
disabled: { type: Boolean, default: !1 },
|
|
17
18
|
clickable: { type: Boolean, default: !1 },
|
|
@@ -19,15 +20,17 @@ const V = ["role", "tabindex"], j = {
|
|
|
19
20
|
class: { default: "" }
|
|
20
21
|
},
|
|
21
22
|
emits: ["click", "delete"],
|
|
22
|
-
setup(a, { emit:
|
|
23
|
-
const e = a,
|
|
24
|
-
e.disabled || e.clickable &&
|
|
23
|
+
setup(a, { emit: x }) {
|
|
24
|
+
const e = a, s = x, l = n(() => e.textI18n ? T(e.textI18n) : e.text), r = n(() => e.clickable && !e.disabled), m = (t) => {
|
|
25
|
+
e.disabled || e.clickable && s("click", t);
|
|
25
26
|
}, h = (t) => {
|
|
26
|
-
e.disabled || (t.stopPropagation(),
|
|
27
|
-
},
|
|
28
|
-
e.disabled || !e.clickable && !e.deletable || ((t.key === "Enter" || t.key === " ") && (t.preventDefault(), e.clickable &&
|
|
29
|
-
},
|
|
27
|
+
e.disabled || (t.stopPropagation(), s("delete", t));
|
|
28
|
+
}, y = (t) => {
|
|
29
|
+
e.disabled || !e.clickable && !e.deletable || ((t.key === "Enter" || t.key === " ") && (t.preventDefault(), e.clickable && s("click", t)), (t.key === "Backspace" || t.key === "Delete") && e.deletable && (t.preventDefault(), s("delete", t)));
|
|
30
|
+
}, k = n(() => {
|
|
30
31
|
switch (e.size) {
|
|
32
|
+
case "xsmall":
|
|
33
|
+
return "h-4.5 text-[10px] px-2 gap-0.5";
|
|
31
34
|
case "small":
|
|
32
35
|
return "h-5.5 text-[11px] px-2.5 gap-1";
|
|
33
36
|
case "large":
|
|
@@ -35,10 +38,34 @@ const V = ["role", "tabindex"], j = {
|
|
|
35
38
|
default:
|
|
36
39
|
return "h-6 text-xs px-2.5 gap-1.5";
|
|
37
40
|
}
|
|
38
|
-
}),
|
|
41
|
+
}), i = n(() => e.appearance === "transparent"), w = n(() => {
|
|
39
42
|
if (e.disabled)
|
|
40
|
-
return "bg-muted text-muted-foreground border-transparent opacity-50 cursor-not-allowed";
|
|
41
|
-
const t = r.value ? "cursor-pointer hover:shadow-sm active:scale-[0.98]" : "cursor-default"
|
|
43
|
+
return i.value ? "bg-transparent text-muted-foreground border-transparent opacity-50 cursor-not-allowed" : "bg-muted text-muted-foreground border-transparent opacity-50 cursor-not-allowed";
|
|
44
|
+
const t = r.value ? i.value ? "cursor-pointer hover:opacity-80 active:scale-[0.98]" : "cursor-pointer hover:shadow-sm active:scale-[0.98]" : "cursor-default";
|
|
45
|
+
if (i.value) {
|
|
46
|
+
const d = {
|
|
47
|
+
solid: "bg-transparent text-primary border-transparent",
|
|
48
|
+
outline: "bg-transparent text-foreground border-transparent",
|
|
49
|
+
ghost: "bg-transparent text-muted-foreground border-transparent",
|
|
50
|
+
subtle: "bg-transparent text-foreground border-transparent",
|
|
51
|
+
/* Base Semantics — foreground only */
|
|
52
|
+
secondary: "bg-transparent text-secondary-subtle-fg border-transparent",
|
|
53
|
+
success: "bg-transparent text-success-subtle-fg border-transparent",
|
|
54
|
+
warning: "bg-transparent text-warning-subtle-fg border-transparent",
|
|
55
|
+
danger: "bg-transparent text-danger-subtle-fg border-transparent",
|
|
56
|
+
info: "bg-transparent text-info-subtle-fg border-transparent",
|
|
57
|
+
/* Extended Semantics — foreground only */
|
|
58
|
+
purple: "bg-transparent text-purple-subtle-fg border-transparent",
|
|
59
|
+
teal: "bg-transparent text-teal-subtle-fg border-transparent",
|
|
60
|
+
indigo: "bg-transparent text-indigo-subtle-fg border-transparent",
|
|
61
|
+
orange: "bg-transparent text-orange-subtle-fg border-transparent",
|
|
62
|
+
pink: "bg-transparent text-pink-subtle-fg border-transparent",
|
|
63
|
+
cyan: "bg-transparent text-cyan-subtle-fg border-transparent",
|
|
64
|
+
blue: "bg-transparent text-blue-600 dark:text-blue-700 border-transparent"
|
|
65
|
+
};
|
|
66
|
+
return `${d[e.variant] || d.subtle} ${t}`;
|
|
67
|
+
}
|
|
68
|
+
const b = {
|
|
42
69
|
solid: `bg-primary text-primary-fg border-transparent ${r.value ? "hover:bg-primary/90" : ""}`,
|
|
43
70
|
outline: `bg-transparent border-input text-foreground ${r.value ? "hover:bg-accent hover:text-accent-foreground" : ""}`,
|
|
44
71
|
ghost: `bg-transparent border-transparent text-muted-foreground ${r.value ? "hover:bg-accent hover:text-accent-foreground" : ""}`,
|
|
@@ -58,9 +85,11 @@ const V = ["role", "tabindex"], j = {
|
|
|
58
85
|
cyan: `bg-cyan-subtle text-cyan-subtle-fg border-cyan-subtle-border ${r.value ? "hover:opacity-80" : ""}`,
|
|
59
86
|
blue: `bg-blue-200/40 text-blue-600 dark:text-blue-700 border-blue-200 ${r.value ? "hover:opacity-80" : ""}`
|
|
60
87
|
};
|
|
61
|
-
return `${
|
|
62
|
-
}),
|
|
88
|
+
return `${b[e.variant] || b.subtle} ${t}`;
|
|
89
|
+
}), $ = n(() => [K, k.value, w.value, e.class].join(" ")), C = n(() => {
|
|
63
90
|
switch (e.size) {
|
|
91
|
+
case "xsmall":
|
|
92
|
+
return "h-2.5 w-2.5";
|
|
64
93
|
case "small":
|
|
65
94
|
return "h-3 w-3";
|
|
66
95
|
case "large":
|
|
@@ -68,8 +97,10 @@ const V = ["role", "tabindex"], j = {
|
|
|
68
97
|
default:
|
|
69
98
|
return "h-3.5 w-3.5";
|
|
70
99
|
}
|
|
71
|
-
}),
|
|
100
|
+
}), z = n(() => {
|
|
72
101
|
switch (e.size) {
|
|
102
|
+
case "xsmall":
|
|
103
|
+
return "h-2 w-2";
|
|
73
104
|
case "small":
|
|
74
105
|
return "h-2.5 w-2.5";
|
|
75
106
|
case "large":
|
|
@@ -78,45 +109,45 @@ const V = ["role", "tabindex"], j = {
|
|
|
78
109
|
return "h-3 w-3";
|
|
79
110
|
}
|
|
80
111
|
});
|
|
81
|
-
return (t,
|
|
82
|
-
class:
|
|
112
|
+
return (t, b) => (o(), p("div", {
|
|
113
|
+
class: u($.value),
|
|
83
114
|
role: a.clickable ? "button" : "status",
|
|
84
115
|
tabindex: r.value || a.deletable ? 0 : void 0,
|
|
85
|
-
onClick:
|
|
86
|
-
onKeydown:
|
|
116
|
+
onClick: m,
|
|
117
|
+
onKeydown: y
|
|
87
118
|
}, [
|
|
88
|
-
|
|
89
|
-
a.icon ? (
|
|
119
|
+
g(t.$slots, "icon", {}, () => [
|
|
120
|
+
a.icon ? (o(), f(v, {
|
|
90
121
|
key: 0,
|
|
91
122
|
icon: a.icon,
|
|
92
|
-
class:
|
|
123
|
+
class: u([C.value, "shrink-0", l.value ? "-ml-0.5" : ""])
|
|
93
124
|
}, null, 8, ["icon", "class"])) : c("", !0)
|
|
94
125
|
]),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
126
|
+
l.value || t.$slots.default ? (o(), p("span", E, [
|
|
127
|
+
g(t.$slots, "default", {}, () => [
|
|
128
|
+
D(I(l.value), 1)
|
|
98
129
|
])
|
|
99
130
|
])) : c("", !0),
|
|
100
|
-
a.deletable ? (
|
|
131
|
+
a.deletable ? (o(), f(N, {
|
|
101
132
|
key: 1,
|
|
102
133
|
variant: "ghost",
|
|
103
134
|
size: "xs",
|
|
104
135
|
rounded: "full",
|
|
105
136
|
disabled: a.disabled,
|
|
106
|
-
class:
|
|
137
|
+
class: u(["ml-auto p-0.5! h-auto! w-auto! hover:bg-[#8282823c]", [l.value ? a.size === "xsmall" || a.size === "small" ? "-mr-0.5" : "-mr-1" : ""]]),
|
|
107
138
|
onClick: h
|
|
108
139
|
}, {
|
|
109
|
-
default:
|
|
110
|
-
|
|
140
|
+
default: S(() => [
|
|
141
|
+
V(v, {
|
|
111
142
|
icon: "lucide:x",
|
|
112
|
-
class:
|
|
143
|
+
class: u(z.value)
|
|
113
144
|
}, null, 8, ["class"])
|
|
114
145
|
]),
|
|
115
146
|
_: 1
|
|
116
147
|
}, 8, ["disabled", "class"])) : c("", !0)
|
|
117
|
-
], 42,
|
|
148
|
+
], 42, j));
|
|
118
149
|
}
|
|
119
150
|
});
|
|
120
151
|
export {
|
|
121
|
-
|
|
152
|
+
F as default
|
|
122
153
|
};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export type ChipVariant = 'solid' | 'outline' | 'subtle' | 'ghost' | 'secondary' | 'success' | 'warning' | 'danger' | 'blue' | 'info';
|
|
2
|
-
export type ChipSize = 'small' | 'medium' | 'large';
|
|
2
|
+
export type ChipSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
3
|
+
/** Visual treatment of the chip surface. `filled` is the default (background + border). */
|
|
4
|
+
export type ChipAppearance = 'filled' | 'transparent';
|
|
3
5
|
export interface ChipProps {
|
|
4
6
|
text?: string;
|
|
5
7
|
textI18n?: string;
|
|
6
8
|
icon?: string;
|
|
7
9
|
variant?: ChipVariant;
|
|
10
|
+
/** Surface style. `transparent` keeps semantic text/icon color with no background or border. */
|
|
11
|
+
appearance?: ChipAppearance;
|
|
8
12
|
size?: ChipSize;
|
|
9
13
|
disabled?: boolean;
|
|
10
14
|
clickable?: boolean;
|
|
@@ -4,7 +4,7 @@ import k from "../Icon.vue.js";
|
|
|
4
4
|
import { $t as E } from "../../utils/i18n.js";
|
|
5
5
|
import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
|
|
6
6
|
import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
|
|
7
|
-
import ee from "./CommandPaletteItem.
|
|
7
|
+
import ee from "./CommandPaletteItem.vue.js";
|
|
8
8
|
const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/80 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTableProps, SelectionState, RowClickPayload, TableState, TableHeader, ExpandPayload } from './types';
|
|
1
|
+
import { DataTableProps, SelectionState, RowClickPayload, TableState, TableHeader, ExpandPayload, ColumnResizePayload } from './types';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
4
|
slots: Partial<Record<string, (_: {
|
|
@@ -17,7 +17,10 @@ declare function __VLS_template(): {
|
|
|
17
17
|
'empty-action'?(_: {}): any;
|
|
18
18
|
'empty-action'?(_: {}): any;
|
|
19
19
|
};
|
|
20
|
-
refs: {
|
|
20
|
+
refs: {
|
|
21
|
+
tableViewportRef: HTMLDivElement;
|
|
22
|
+
tableRef: HTMLTableElement;
|
|
23
|
+
};
|
|
21
24
|
rootEl: HTMLDivElement;
|
|
22
25
|
};
|
|
23
26
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -29,6 +32,7 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
|
|
|
29
32
|
expand: (payload: ExpandPayload) => any;
|
|
30
33
|
rowClick: (payload: RowClickPayload) => any;
|
|
31
34
|
"update:selectedRows": (value: any[]) => any;
|
|
35
|
+
columnResize: (payload: ColumnResizePayload) => any;
|
|
32
36
|
}, string, import('vue').PublicProps, Readonly<DataTableProps> & Readonly<{
|
|
33
37
|
onSelect?: (state: SelectionState) => any;
|
|
34
38
|
onDelete?: (rows: any[]) => any;
|
|
@@ -37,6 +41,7 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
|
|
|
37
41
|
onExpand?: (payload: ExpandPayload) => any;
|
|
38
42
|
onRowClick?: (payload: RowClickPayload) => any;
|
|
39
43
|
"onUpdate:selectedRows"?: (value: any[]) => any;
|
|
44
|
+
onColumnResize?: (payload: ColumnResizePayload) => any;
|
|
40
45
|
}>, {
|
|
41
46
|
variant: "default" | "raised";
|
|
42
47
|
size: "xs" | "sm" | "md" | "lg";
|
|
@@ -55,11 +60,15 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
|
|
|
55
60
|
bordered: boolean;
|
|
56
61
|
showPagination: boolean;
|
|
57
62
|
cellBordered: boolean;
|
|
63
|
+
resizable: boolean;
|
|
58
64
|
keyField: string;
|
|
59
65
|
hoverable: boolean;
|
|
60
66
|
treeIndent: number;
|
|
61
67
|
headerVariant: "default" | "minimal";
|
|
62
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
68
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
69
|
+
tableViewportRef: HTMLDivElement;
|
|
70
|
+
tableRef: HTMLTableElement;
|
|
71
|
+
}, HTMLDivElement>;
|
|
63
72
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
64
73
|
export default _default;
|
|
65
74
|
type __VLS_WithTemplateSlots<T, S> = T & {
|