@astrake/lumora-ui 0.2.1 → 0.7.2
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/CHANGELOG.md +230 -141
- package/README.md +23 -21
- package/dist/LuAccordion.vue_vue_type_script_setup_true_lang-CwG5Ml8t.js +5032 -0
- package/dist/{LuEmbeddedStatusBar.vue_vue_type_script_setup_true_lang-CIksvebU.js → LuEmbeddedStatusBar.vue_vue_type_script_setup_true_lang-D4rqklgo.js} +1 -1
- package/dist/LuOverlay.vue_vue_type_script_setup_true_lang-C5jhqCgy.js +221 -0
- package/dist/__mocks__/empty.d.ts +4 -0
- package/dist/components/LuAccordion.vue.d.ts +23 -0
- package/dist/components/LuBarChart.vue.d.ts +22 -0
- package/dist/components/LuBottomSheet.vue.d.ts +27 -0
- package/dist/components/LuCalendar.vue.d.ts +34 -0
- package/dist/components/LuCard.vue.d.ts +0 -3
- package/dist/components/LuCheckbox.vue.d.ts +19 -5
- package/dist/components/LuChip.vue.d.ts +35 -0
- package/dist/components/LuChipGroup.vue.d.ts +23 -0
- package/dist/components/LuCodeBlock.vue.d.ts +11 -14
- package/dist/components/LuCollapsible.vue.d.ts +7 -4
- package/dist/components/LuCommandPalette.vue.d.ts +25 -0
- package/dist/components/LuDataGrid.types.d.ts +39 -0
- package/dist/components/LuDataGrid.vue.d.ts +84 -0
- package/dist/components/LuDateRangePicker.vue.d.ts +29 -0
- package/dist/components/LuDoughnutChart.vue.d.ts +17 -0
- package/dist/components/LuDrawer.vue.d.ts +33 -0
- package/dist/components/LuFileUpload.vue.d.ts +38 -0
- package/dist/components/LuForm.vue.d.ts +2 -2
- package/dist/components/LuFormField.vue.d.ts +21 -0
- package/dist/components/LuFormWizard.types.d.ts +7 -0
- package/dist/components/LuFormWizard.vue.d.ts +33 -0
- package/dist/components/LuGaugeChart.vue.d.ts +16 -0
- package/dist/components/LuKanban.types.d.ts +24 -0
- package/dist/components/LuKanban.vue.d.ts +30 -0
- package/dist/components/LuLineChart.vue.d.ts +19 -0
- package/dist/components/LuList.vue.d.ts +18 -0
- package/dist/components/LuListDivider.vue.d.ts +5 -0
- package/dist/components/LuListItem.vue.d.ts +32 -0
- package/dist/components/LuListSubheader.vue.d.ts +16 -0
- package/dist/components/LuMediaGallery.vue.d.ts +25 -0
- package/dist/components/LuMenu.vue.d.ts +2 -2
- package/dist/components/LuModal.vue.d.ts +5 -5
- package/dist/components/LuPagination.vue.d.ts +2 -2
- package/dist/components/LuPlanner.types.d.ts +14 -0
- package/dist/components/LuPlanner.vue.d.ts +23 -0
- package/dist/components/LuPopover.vue.d.ts +24 -0
- package/dist/components/LuRadioGroup.types.d.ts +1 -0
- package/dist/components/LuRadioGroup.vue.d.ts +2 -2
- package/dist/components/LuRichTextEditor.vue.d.ts +27 -0
- package/dist/components/LuSelect.vue.d.ts +35 -2
- package/dist/components/{LuPageHeader.vue.d.ts → LuSparkline.vue.d.ts} +9 -5
- package/dist/components/LuSwitch.vue.d.ts +19 -5
- package/dist/components/LuTimeline.vue.d.ts +17 -0
- package/dist/components/LuTimelineItem.vue.d.ts +24 -0
- package/dist/components/LuToast.vue.d.ts +5 -0
- package/dist/components/LuTree.types.d.ts +9 -0
- package/dist/components/LuTree.vue.d.ts +25 -0
- package/dist/components/LuTreeNode.vue.d.ts +37 -0
- package/dist/components/__tests__/LuAccordion.test.d.ts +1 -0
- package/dist/components/__tests__/LuBarChart.test.d.ts +1 -0
- package/dist/components/__tests__/LuBottomSheet.test.d.ts +1 -0
- package/dist/components/__tests__/LuCalendar.test.d.ts +1 -0
- package/dist/components/__tests__/LuCheckbox.test.d.ts +1 -0
- package/dist/components/__tests__/LuChip.test.d.ts +1 -0
- package/dist/components/__tests__/LuCommandPalette.test.d.ts +1 -0
- package/dist/components/__tests__/LuDataGrid.test.d.ts +1 -0
- package/dist/components/__tests__/LuDateRangePicker.test.d.ts +1 -0
- package/dist/components/__tests__/LuDoughnutChart.test.d.ts +1 -0
- package/dist/components/__tests__/LuDrawer.test.d.ts +1 -0
- package/dist/components/__tests__/LuFileUpload.test.d.ts +1 -0
- package/dist/components/__tests__/LuFormWizard.test.d.ts +1 -0
- package/dist/components/__tests__/LuGaugeChart.test.d.ts +1 -0
- package/dist/components/__tests__/LuKanban.test.d.ts +1 -0
- package/dist/components/__tests__/LuLineChart.test.d.ts +1 -0
- package/dist/components/__tests__/LuList.test.d.ts +1 -0
- package/dist/components/__tests__/LuMediaGallery.test.d.ts +1 -0
- package/dist/components/__tests__/LuPlanner.test.d.ts +1 -0
- package/dist/components/__tests__/LuPopover.test.d.ts +1 -0
- package/dist/components/__tests__/LuRadio.test.d.ts +1 -0
- package/dist/components/__tests__/LuRichTextEditor.test.d.ts +1 -0
- package/dist/components/__tests__/LuSelect.test.d.ts +1 -0
- package/dist/components/__tests__/LuSparkline.test.d.ts +1 -0
- package/dist/components/__tests__/LuSwitch.test.d.ts +1 -0
- package/dist/components/__tests__/LuTimeline.test.d.ts +1 -0
- package/dist/components/__tests__/LuToast.test.d.ts +1 -0
- package/dist/components/__tests__/LuTree.test.d.ts +1 -0
- package/dist/components/_all.d.ts +3 -0
- package/dist/components/index.d.ts +42 -3
- package/dist/components/index.js +73 -44
- package/dist/composables/index.d.ts +3 -0
- package/dist/composables/index.js +34 -14
- package/dist/composables/lazyVChart.d.ts +10 -0
- package/dist/composables/useChartTheme.d.ts +65 -0
- package/dist/composables/useDataGrid.d.ts +52 -0
- package/dist/composables/useFloating.d.ts +12 -0
- package/dist/composables/useLuToast.d.ts +14 -0
- package/dist/composables/useShiki.d.ts +2 -0
- package/dist/context-CGS7Ou_x.js +36 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +217 -81
- package/dist/layout/LuFill.vue.d.ts +0 -3
- package/dist/layout/LuFixed.vue.d.ts +0 -3
- package/dist/layout/LuGrid.vue.d.ts +0 -4
- package/dist/layout/LuStack.vue.d.ts +5 -3
- package/dist/layout/index.js +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/skins/components.d.ts +2 -0
- package/dist/skins/index.js +1053 -219
- package/dist/skins/layout.d.ts +2 -0
- package/dist/skins/shell/desktop.d.ts +2 -0
- package/dist/skins/shell/embedded.d.ts +2 -0
- package/dist/skins/shell/mobile.d.ts +2 -0
- package/dist/useLuToast-D5d7Wrcr.js +1029 -0
- package/dist/utils.d.ts +0 -11
- package/package.json +95 -94
- package/src/lumora.css +259 -16
- package/dist/LuCodeBlock.vue_vue_type_script_setup_true_lang-BjwcjuXF.js +0 -1623
- package/dist/LuOverlay.vue_vue_type_script_setup_true_lang-DZch4Vrw.js +0 -226
- package/dist/components/LuThemeSelect.vue.d.ts +0 -2
- package/dist/components/LuThemeSwitch.vue.d.ts +0 -2
- package/dist/context-0gENwESP.js +0 -62
- package/dist/useTheme-Cd4wVaLs.js +0 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, computed as n, openBlock as u, createElementBlock as v, mergeProps as p, renderSlot as a, createElementVNode as L, normalizeClass as S, ref as _, createCommentVNode as h, useSlots as D, Fragment as B } from "vue";
|
|
2
|
-
import { u as d } from "./context-
|
|
2
|
+
import { u as d } from "./context-CGS7Ou_x.js";
|
|
3
3
|
const y = /* @__PURE__ */ c({
|
|
4
4
|
__name: "LuDesktopShell",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { defineComponent as u, computed as c, openBlock as v, createBlock as $, resolveDynamicComponent as g, mergeProps as p, withCtx as k, renderSlot as f, h, Fragment as x, Comment as b, createElementBlock as _, provide as B, readonly as D, inject as C, ref as F, unref as j } from "vue";
|
|
2
|
+
import { u as d } from "./context-CGS7Ou_x.js";
|
|
3
|
+
const P = /* @__PURE__ */ u({
|
|
4
|
+
__name: "LuStack",
|
|
5
|
+
props: {
|
|
6
|
+
direction: {},
|
|
7
|
+
variant: {},
|
|
8
|
+
as: { default: "div" },
|
|
9
|
+
gap: {},
|
|
10
|
+
align: {},
|
|
11
|
+
justify: {}
|
|
12
|
+
},
|
|
13
|
+
setup(t) {
|
|
14
|
+
const e = t, { resolveSkin: o } = d(), r = {
|
|
15
|
+
center: "items-center",
|
|
16
|
+
start: "items-start",
|
|
17
|
+
end: "items-end",
|
|
18
|
+
stretch: "items-stretch",
|
|
19
|
+
baseline: "items-baseline"
|
|
20
|
+
}, s = {
|
|
21
|
+
center: "justify-center",
|
|
22
|
+
start: "justify-start",
|
|
23
|
+
end: "justify-end",
|
|
24
|
+
between: "justify-between",
|
|
25
|
+
around: "justify-around",
|
|
26
|
+
evenly: "justify-evenly"
|
|
27
|
+
}, l = c(() => {
|
|
28
|
+
const a = o("LuStack", e.direction ?? e.variant), n = e.gap !== void 0 ? `gap-${e.gap}` : "", i = e.align ? r[e.align] ?? "" : "", m = e.justify ? s[e.justify] ?? "" : "";
|
|
29
|
+
return [a, n, i, m].filter(Boolean).join(" ");
|
|
30
|
+
});
|
|
31
|
+
return (a, n) => (v(), $(g(t.as), p(a.$attrs, { class: l.value }), {
|
|
32
|
+
default: k(() => [
|
|
33
|
+
f(a.$slots, "default")
|
|
34
|
+
]),
|
|
35
|
+
_: 3
|
|
36
|
+
}, 16, ["class"]));
|
|
37
|
+
}
|
|
38
|
+
}), O = /* @__PURE__ */ u({
|
|
39
|
+
__name: "LuGrid",
|
|
40
|
+
props: {
|
|
41
|
+
cols: {},
|
|
42
|
+
smCols: {},
|
|
43
|
+
mdCols: {},
|
|
44
|
+
lgCols: {},
|
|
45
|
+
variant: {},
|
|
46
|
+
as: { default: "div" }
|
|
47
|
+
},
|
|
48
|
+
setup(t) {
|
|
49
|
+
const e = t, o = c(() => {
|
|
50
|
+
const a = { 1: "grid-cols-1", 2: "grid-cols-2", 3: "grid-cols-3", 4: "grid-cols-4", 5: "grid-cols-5", 6: "grid-cols-6", 12: "grid-cols-12" }, n = e.smCols && a[e.smCols] ? `sm:${a[e.smCols]}` : "", i = e.mdCols && a[e.mdCols] ? `md:${a[e.mdCols]}` : "", m = e.lgCols && a[e.lgCols] ? `lg:${a[e.lgCols]}` : "";
|
|
51
|
+
return [n, i, m].filter(Boolean).join(" ");
|
|
52
|
+
}), { resolveSkin: r } = d(), s = c(() => [
|
|
53
|
+
r("LuGrid", e.variant),
|
|
54
|
+
o.value
|
|
55
|
+
].filter(Boolean).join(" ")), l = c(
|
|
56
|
+
() => e.cols ? { gridTemplateColumns: `repeat(${e.cols}, minmax(0, 1fr))` } : {}
|
|
57
|
+
);
|
|
58
|
+
return (a, n) => (v(), $(g(t.as), p(a.$attrs, {
|
|
59
|
+
class: s.value,
|
|
60
|
+
style: l.value
|
|
61
|
+
}), {
|
|
62
|
+
default: k(() => [
|
|
63
|
+
f(a.$slots, "default")
|
|
64
|
+
]),
|
|
65
|
+
_: 3
|
|
66
|
+
}, 16, ["class", "style"]));
|
|
67
|
+
}
|
|
68
|
+
}), R = u({
|
|
69
|
+
name: "LuDock",
|
|
70
|
+
props: {
|
|
71
|
+
variant: String
|
|
72
|
+
},
|
|
73
|
+
setup(t, { slots: e, attrs: o }) {
|
|
74
|
+
const { resolveSkin: r } = d(), s = c(() => r("LuDock", t.variant));
|
|
75
|
+
function l(a) {
|
|
76
|
+
let n = [];
|
|
77
|
+
for (const i of a)
|
|
78
|
+
Array.isArray(i) ? n.push(...l(i)) : i.type === x ? n.push(...l(i.children)) : i && i.type && i.type !== b && n.push(i);
|
|
79
|
+
return n;
|
|
80
|
+
}
|
|
81
|
+
return () => {
|
|
82
|
+
var m;
|
|
83
|
+
const a = e.default ? e.default() : [], n = l(a);
|
|
84
|
+
if (n.length === 0)
|
|
85
|
+
return h("div", { ...o, class: s.value });
|
|
86
|
+
let i = h("div", { class: "flex flex-col flex-1 min-h-0 min-w-0 overflow-hidden" }, [n[n.length - 1]]);
|
|
87
|
+
for (let y = n.length - 2; y >= 0; y--) {
|
|
88
|
+
const L = n[y], S = ((m = L.props) == null ? void 0 : m.dock) || "left", z = S === "top" || S === "bottom" ? "flex-col" : "flex-row", w = S === "top" || S === "left" ? [L, i] : [i, L];
|
|
89
|
+
i = h("div", { class: `flex ${z} flex-1 min-h-0 min-w-0 overflow-hidden` }, w);
|
|
90
|
+
}
|
|
91
|
+
return h("div", { ...o, class: s.value }, [i]);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}), T = /* @__PURE__ */ u({
|
|
95
|
+
__name: "LuDockItem",
|
|
96
|
+
props: {
|
|
97
|
+
dock: {},
|
|
98
|
+
variant: {}
|
|
99
|
+
},
|
|
100
|
+
setup(t) {
|
|
101
|
+
const e = t, { resolveSkin: o } = d(), r = c(() => [
|
|
102
|
+
o("LuDockItem", e.dock ?? e.variant)
|
|
103
|
+
]);
|
|
104
|
+
return (s, l) => (v(), _("div", p(s.$attrs, { class: r.value }), [
|
|
105
|
+
f(s.$slots, "default")
|
|
106
|
+
], 16));
|
|
107
|
+
}
|
|
108
|
+
}), V = /* @__PURE__ */ u({
|
|
109
|
+
__name: "LuSplit",
|
|
110
|
+
props: {
|
|
111
|
+
direction: {},
|
|
112
|
+
variant: {}
|
|
113
|
+
},
|
|
114
|
+
setup(t) {
|
|
115
|
+
const e = t, o = c(() => e.direction ?? "horizontal");
|
|
116
|
+
B("lu-split-direction", D(o));
|
|
117
|
+
const { resolveSkin: r } = d(), s = c(() => r("LuSplit", e.direction ?? e.variant));
|
|
118
|
+
return (l, a) => (v(), _("div", p(l.$attrs, { class: s.value }), [
|
|
119
|
+
f(l.$slots, "default")
|
|
120
|
+
], 16));
|
|
121
|
+
}
|
|
122
|
+
}), E = /* @__PURE__ */ u({
|
|
123
|
+
__name: "LuSplitPane",
|
|
124
|
+
props: {
|
|
125
|
+
minSize: {},
|
|
126
|
+
maxSize: {},
|
|
127
|
+
defaultSize: {},
|
|
128
|
+
variant: {}
|
|
129
|
+
},
|
|
130
|
+
setup(t) {
|
|
131
|
+
const e = t, o = C("lu-split-direction", "horizontal"), r = F(e.defaultSize), s = c(() => {
|
|
132
|
+
if (r.value === void 0) return { flex: "1 1 0%" };
|
|
133
|
+
const n = `${r.value}px`;
|
|
134
|
+
return j(o) === "horizontal" ? { width: n, flex: `0 0 ${n}` } : { height: n, flex: `0 0 ${n}` };
|
|
135
|
+
}), { resolveSkin: l } = d(), a = c(() => l("LuSplitPane", e.variant));
|
|
136
|
+
return (n, i) => (v(), _("div", p(n.$attrs, {
|
|
137
|
+
class: a.value,
|
|
138
|
+
style: s.value
|
|
139
|
+
}), [
|
|
140
|
+
f(n.$slots, "default")
|
|
141
|
+
], 16));
|
|
142
|
+
}
|
|
143
|
+
}), J = /* @__PURE__ */ u({
|
|
144
|
+
__name: "LuSplitResizer",
|
|
145
|
+
props: {
|
|
146
|
+
variant: {}
|
|
147
|
+
},
|
|
148
|
+
setup(t) {
|
|
149
|
+
const e = C("lu-split-direction", "horizontal"), { resolveSkin: o } = d(), r = c(() => [
|
|
150
|
+
o("LuSplitResizer", j(e) === "horizontal" ? "horizontal" : "vertical")
|
|
151
|
+
]);
|
|
152
|
+
return (s, l) => (v(), _("div", p(s.$attrs, { class: r.value }), null, 16));
|
|
153
|
+
}
|
|
154
|
+
}), N = /* @__PURE__ */ u({
|
|
155
|
+
__name: "LuScroll",
|
|
156
|
+
props: {
|
|
157
|
+
variant: {}
|
|
158
|
+
},
|
|
159
|
+
setup(t) {
|
|
160
|
+
const e = t, { resolveSkin: o } = d(), r = c(() => [
|
|
161
|
+
o("LuScroll", e.variant)
|
|
162
|
+
]);
|
|
163
|
+
return (s, l) => (v(), _("div", p(s.$attrs, { class: r.value }), [
|
|
164
|
+
f(s.$slots, "default")
|
|
165
|
+
], 16));
|
|
166
|
+
}
|
|
167
|
+
}), U = /* @__PURE__ */ u({
|
|
168
|
+
__name: "LuFill",
|
|
169
|
+
props: {
|
|
170
|
+
variant: {},
|
|
171
|
+
as: { default: "div" }
|
|
172
|
+
},
|
|
173
|
+
setup(t) {
|
|
174
|
+
const e = t, { resolveSkin: o } = d(), r = c(() => o("LuFill", e.variant));
|
|
175
|
+
return (s, l) => (v(), $(g(t.as), p(s.$attrs, { class: r.value }), {
|
|
176
|
+
default: k(() => [
|
|
177
|
+
f(s.$slots, "default")
|
|
178
|
+
]),
|
|
179
|
+
_: 3
|
|
180
|
+
}, 16, ["class"]));
|
|
181
|
+
}
|
|
182
|
+
}), Y = /* @__PURE__ */ u({
|
|
183
|
+
__name: "LuFixed",
|
|
184
|
+
props: {
|
|
185
|
+
variant: {},
|
|
186
|
+
as: { default: "div" }
|
|
187
|
+
},
|
|
188
|
+
setup(t) {
|
|
189
|
+
const e = t, { resolveSkin: o } = d(), r = c(() => o("LuFixed", e.variant));
|
|
190
|
+
return (s, l) => (v(), $(g(t.as), p(s.$attrs, { class: r.value }), {
|
|
191
|
+
default: k(() => [
|
|
192
|
+
f(s.$slots, "default")
|
|
193
|
+
]),
|
|
194
|
+
_: 3
|
|
195
|
+
}, 16, ["class"]));
|
|
196
|
+
}
|
|
197
|
+
}), q = /* @__PURE__ */ u({
|
|
198
|
+
__name: "LuOverlay",
|
|
199
|
+
props: {
|
|
200
|
+
variant: {}
|
|
201
|
+
},
|
|
202
|
+
setup(t) {
|
|
203
|
+
const e = t, { resolveSkin: o } = d(), r = c(() => o("LuOverlay", e.variant));
|
|
204
|
+
return (s, l) => (v(), _("div", p(s.$attrs, { class: r.value }), [
|
|
205
|
+
f(s.$slots, "default")
|
|
206
|
+
], 16));
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
export {
|
|
210
|
+
R as _,
|
|
211
|
+
T as a,
|
|
212
|
+
U as b,
|
|
213
|
+
Y as c,
|
|
214
|
+
O as d,
|
|
215
|
+
q as e,
|
|
216
|
+
N as f,
|
|
217
|
+
V as g,
|
|
218
|
+
E as h,
|
|
219
|
+
J as i,
|
|
220
|
+
P as j
|
|
221
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string | string[];
|
|
3
|
+
multiple?: boolean;
|
|
4
|
+
variant?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
"update:modelValue": (value: string | string[]) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
multiple: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface BarDataset {
|
|
2
|
+
label: string;
|
|
3
|
+
data: number[];
|
|
4
|
+
color?: string;
|
|
5
|
+
stack?: string;
|
|
6
|
+
}
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
labels: string[];
|
|
9
|
+
datasets: BarDataset[];
|
|
10
|
+
height?: number;
|
|
11
|
+
showLegend?: boolean;
|
|
12
|
+
horizontal?: boolean;
|
|
13
|
+
stacked?: boolean;
|
|
14
|
+
formatValue?: (v: number) => string;
|
|
15
|
+
};
|
|
16
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
horizontal: boolean;
|
|
18
|
+
height: number;
|
|
19
|
+
showLegend: boolean;
|
|
20
|
+
stacked: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
draggable?: boolean;
|
|
4
|
+
variant?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_13: {}, __VLS_15: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
handle?: (props: typeof __VLS_13) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_15) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
|
+
"update:modelValue": (value: boolean) => any;
|
|
14
|
+
close: () => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
|
+
onClose?: (() => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
draggable: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface CalendarEvent {
|
|
2
|
+
id: string;
|
|
3
|
+
date: string;
|
|
4
|
+
label: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
modelValue?: string;
|
|
9
|
+
events?: CalendarEvent[];
|
|
10
|
+
rangeStart?: string;
|
|
11
|
+
rangeEnd?: string;
|
|
12
|
+
disabledDates?: string[];
|
|
13
|
+
minDate?: string;
|
|
14
|
+
maxDate?: string;
|
|
15
|
+
firstDayOfWeek?: 0 | 1;
|
|
16
|
+
size?: "default" | "mini";
|
|
17
|
+
showEventLabels?: boolean;
|
|
18
|
+
};
|
|
19
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
|
+
"update:modelValue": (date: string) => any;
|
|
21
|
+
"month-change": (year: number, month: number) => any;
|
|
22
|
+
"event-click": (event: CalendarEvent) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((date: string) => any) | undefined;
|
|
25
|
+
"onMonth-change"?: ((year: number, month: number) => any) | undefined;
|
|
26
|
+
"onEvent-click"?: ((event: CalendarEvent) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
size: "default" | "mini";
|
|
29
|
+
events: CalendarEvent[];
|
|
30
|
+
disabledDates: string[];
|
|
31
|
+
firstDayOfWeek: 0 | 1;
|
|
32
|
+
showEventLabels: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
export default _default;
|
|
@@ -1,23 +1,37 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
modelValue?: boolean;
|
|
3
|
+
indeterminate?: boolean;
|
|
3
4
|
variant?: string;
|
|
4
5
|
name?: string;
|
|
5
6
|
label?: string;
|
|
6
7
|
error?: string | null;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
value?: string | number;
|
|
7
10
|
};
|
|
8
|
-
declare var __VLS_1: {
|
|
11
|
+
declare var __VLS_1: {
|
|
12
|
+
checked: boolean;
|
|
13
|
+
indeterminate: boolean;
|
|
14
|
+
}, __VLS_3: {};
|
|
9
15
|
type __VLS_Slots = {} & {
|
|
10
|
-
|
|
16
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
17
|
+
} & {
|
|
18
|
+
default?: (props: typeof __VLS_3) => any;
|
|
11
19
|
};
|
|
12
20
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
21
|
blur: () => any;
|
|
14
|
-
change: (value: boolean) => any;
|
|
15
22
|
"update:modelValue": (value: boolean) => any;
|
|
23
|
+
change: (value: boolean) => any;
|
|
24
|
+
"update:indeterminate": (value: boolean) => any;
|
|
16
25
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
26
|
onBlur?: (() => any) | undefined;
|
|
18
|
-
onChange?: ((value: boolean) => any) | undefined;
|
|
19
27
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
20
|
-
|
|
28
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
29
|
+
"onUpdate:indeterminate"?: ((value: boolean) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
indeterminate: boolean;
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
modelValue: boolean;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
35
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
36
|
export default _default;
|
|
23
37
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type ComputedRef } from "vue";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label?: string;
|
|
4
|
+
value?: any;
|
|
5
|
+
closable?: boolean;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
variant?: string;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
leading?: (props: typeof __VLS_1) => any;
|
|
13
|
+
} & {
|
|
14
|
+
default?: (props: typeof __VLS_3) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
17
|
+
isChipSelected: ComputedRef<boolean>;
|
|
18
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
|
+
click: (event: Event) => any;
|
|
20
|
+
close: (event: Event) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
onClick?: ((event: Event) => any) | undefined;
|
|
23
|
+
onClose?: ((event: Event) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
selected: boolean;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
closable: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: any;
|
|
3
|
+
multiple?: boolean;
|
|
4
|
+
variant?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
"update:modelValue": (value: any) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
multiple: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
2
|
code: string;
|
|
3
3
|
lang?: string;
|
|
4
4
|
variant?: "default" | "preview";
|
|
5
5
|
layout?: "tabbed" | "split";
|
|
6
6
|
title?: string;
|
|
7
7
|
description?: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}> & Readonly<{}>, {
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_19: {}, __VLS_31: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
preview?: (props: typeof __VLS_19) => any;
|
|
12
|
+
} & {
|
|
13
|
+
preview?: (props: typeof __VLS_31) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
16
|
variant: "default" | "preview";
|
|
17
17
|
lang: string;
|
|
18
18
|
layout: "tabbed" | "split";
|
|
19
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
20
|
-
|
|
21
|
-
} & {
|
|
22
|
-
preview?: (props: {}) => any;
|
|
23
|
-
}>;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
24
21
|
export default _default;
|
|
25
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
26
23
|
new (): {
|
|
@@ -2,16 +2,19 @@ type __VLS_Props = {
|
|
|
2
2
|
variant?: string;
|
|
3
3
|
modelValue?: boolean;
|
|
4
4
|
defaultOpen?: boolean;
|
|
5
|
+
value?: string;
|
|
5
6
|
};
|
|
6
7
|
declare var __VLS_1: {
|
|
7
|
-
isOpen:
|
|
8
|
-
},
|
|
8
|
+
isOpen: any;
|
|
9
|
+
}, __VLS_7: {};
|
|
9
10
|
type __VLS_Slots = {} & {
|
|
10
11
|
trigger?: (props: typeof __VLS_1) => any;
|
|
11
12
|
} & {
|
|
12
|
-
content?: (props: typeof
|
|
13
|
+
content?: (props: typeof __VLS_7) => any;
|
|
13
14
|
};
|
|
14
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
16
|
+
isOpen: import("vue").Ref<any, any>;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
18
|
"update:modelValue": (val: boolean) => any;
|
|
16
19
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
20
|
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface CommandItem {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
group?: string;
|
|
7
|
+
shortcut?: string[];
|
|
8
|
+
action: () => void;
|
|
9
|
+
}
|
|
10
|
+
type __VLS_Props = {
|
|
11
|
+
items: CommandItem[];
|
|
12
|
+
open?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
16
|
+
select: (item: CommandItem) => any;
|
|
17
|
+
"update:open": (val: boolean) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onSelect?: ((item: CommandItem) => any) | undefined;
|
|
20
|
+
"onUpdate:open"?: ((val: boolean) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
open: boolean;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface ColumnDef {
|
|
2
|
+
key: string;
|
|
3
|
+
label: string;
|
|
4
|
+
sortable?: boolean;
|
|
5
|
+
frozen?: boolean;
|
|
6
|
+
width?: string | number;
|
|
7
|
+
editable?: boolean;
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
align?: "left" | "center" | "right";
|
|
10
|
+
/** Custom render function returning a string or VNode label */
|
|
11
|
+
renderHeader?: () => string;
|
|
12
|
+
/** Enable per-column filter input in the filter row */
|
|
13
|
+
filterable?: boolean;
|
|
14
|
+
/** Type of inline filter control */
|
|
15
|
+
filterType?: "text" | "select" | "number-range";
|
|
16
|
+
/** Options for select-type filter */
|
|
17
|
+
filterOptions?: {
|
|
18
|
+
value: string;
|
|
19
|
+
label: string;
|
|
20
|
+
}[];
|
|
21
|
+
}
|
|
22
|
+
export type Row = Record<string, unknown>;
|
|
23
|
+
export interface DataGridSortState {
|
|
24
|
+
key: string;
|
|
25
|
+
direction: "asc" | "desc";
|
|
26
|
+
}
|
|
27
|
+
export interface DataGridCellEditPayload {
|
|
28
|
+
rowId: string;
|
|
29
|
+
columnKey: string;
|
|
30
|
+
value: unknown;
|
|
31
|
+
}
|
|
32
|
+
export interface DataGridPageChangePayload {
|
|
33
|
+
page: number;
|
|
34
|
+
pageSize: number;
|
|
35
|
+
}
|
|
36
|
+
export type DataGridFilterState = Record<string, string | number | [number, number] | undefined>;
|
|
37
|
+
export interface DataGridSearchPayload {
|
|
38
|
+
query: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { ColumnDef, Row, DataGridSortState, DataGridCellEditPayload, DataGridPageChangePayload, DataGridFilterState, DataGridSearchPayload } from "./LuDataGrid.types";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
columns: ColumnDef[];
|
|
4
|
+
data: Row[];
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
total?: number;
|
|
7
|
+
page?: number;
|
|
8
|
+
pageSize?: number;
|
|
9
|
+
sortable?: boolean;
|
|
10
|
+
localSort?: boolean;
|
|
11
|
+
groupBy?: string;
|
|
12
|
+
selectable?: boolean;
|
|
13
|
+
freezeColumns?: number;
|
|
14
|
+
inlineEdit?: boolean;
|
|
15
|
+
idKey?: string;
|
|
16
|
+
emptyText?: string;
|
|
17
|
+
/** Show a search input in the toolbar */
|
|
18
|
+
searchable?: boolean;
|
|
19
|
+
/** 'local' filters data client-side; 'remote' emits a search event */
|
|
20
|
+
searchMode?: "local" | "remote";
|
|
21
|
+
/** Debounce ms for remote search emit */
|
|
22
|
+
searchDebounce?: number;
|
|
23
|
+
searchPlaceholder?: string;
|
|
24
|
+
};
|
|
25
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_37: {
|
|
26
|
+
label: string;
|
|
27
|
+
}, __VLS_50: `cell-${string}`, __VLS_51: {
|
|
28
|
+
row: Row;
|
|
29
|
+
value: unknown;
|
|
30
|
+
}, __VLS_56: {};
|
|
31
|
+
type __VLS_Slots = {} & {
|
|
32
|
+
[K in NonNullable<typeof __VLS_50>]?: (props: typeof __VLS_51) => any;
|
|
33
|
+
} & {
|
|
34
|
+
'toolbar-start'?: (props: typeof __VLS_1) => any;
|
|
35
|
+
} & {
|
|
36
|
+
'toolbar-end'?: (props: typeof __VLS_3) => any;
|
|
37
|
+
} & {
|
|
38
|
+
'group-row'?: (props: typeof __VLS_37) => any;
|
|
39
|
+
} & {
|
|
40
|
+
empty?: (props: typeof __VLS_56) => any;
|
|
41
|
+
};
|
|
42
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
43
|
+
sort: (state: DataGridSortState | null) => any;
|
|
44
|
+
search: (payload: DataGridSearchPayload) => any;
|
|
45
|
+
"page-change": (payload: DataGridPageChangePayload) => any;
|
|
46
|
+
"selection-change": (selectedIds: string[]) => any;
|
|
47
|
+
"cell-edit": (payload: DataGridCellEditPayload) => any;
|
|
48
|
+
export: (payload: {
|
|
49
|
+
format: "csv" | "excel";
|
|
50
|
+
}) => any;
|
|
51
|
+
"filter-change": (payload: DataGridFilterState) => any;
|
|
52
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
53
|
+
onSort?: ((state: DataGridSortState | null) => any) | undefined;
|
|
54
|
+
onSearch?: ((payload: DataGridSearchPayload) => any) | undefined;
|
|
55
|
+
"onPage-change"?: ((payload: DataGridPageChangePayload) => any) | undefined;
|
|
56
|
+
"onSelection-change"?: ((selectedIds: string[]) => any) | undefined;
|
|
57
|
+
"onCell-edit"?: ((payload: DataGridCellEditPayload) => any) | undefined;
|
|
58
|
+
onExport?: ((payload: {
|
|
59
|
+
format: "csv" | "excel";
|
|
60
|
+
}) => any) | undefined;
|
|
61
|
+
"onFilter-change"?: ((payload: DataGridFilterState) => any) | undefined;
|
|
62
|
+
}>, {
|
|
63
|
+
sortable: boolean;
|
|
64
|
+
searchable: boolean;
|
|
65
|
+
page: number;
|
|
66
|
+
pageSize: number;
|
|
67
|
+
loading: boolean;
|
|
68
|
+
localSort: boolean;
|
|
69
|
+
selectable: boolean;
|
|
70
|
+
freezeColumns: number;
|
|
71
|
+
inlineEdit: boolean;
|
|
72
|
+
idKey: string;
|
|
73
|
+
emptyText: string;
|
|
74
|
+
searchMode: "local" | "remote";
|
|
75
|
+
searchDebounce: number;
|
|
76
|
+
searchPlaceholder: string;
|
|
77
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
78
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
79
|
+
export default _default;
|
|
80
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
81
|
+
new (): {
|
|
82
|
+
$slots: S;
|
|
83
|
+
};
|
|
84
|
+
};
|