vlite3 1.5.5 → 1.5.6
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/README.md +34 -0
- package/VLiteIconsVite.d.ts +36 -0
- package/components/AppShell/AppShell.vue.d.ts +1 -1
- package/components/AppShell/AppShellLayoutDashboard.vue.js +3 -2
- package/components/AppShell/AppShellLayoutDock.vue.js +3 -2
- package/components/AppShell/AppShellLayoutHeaderShell.vue.js +28 -27
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +3 -2
- package/components/AsyncSelect/createAsyncSelect.d.ts +4 -4
- package/components/AsyncSelect/createAsyncSelect.js +3 -2
- package/components/BackButton.vue.d.ts +1 -1
- package/components/CategoryManager/CategoryManager.vue2.js +16 -16
- package/components/CategoryManager/CategoryNode.vue.js +16 -16
- package/components/CategoryMenu/CategoryMenu.vue.js +9 -8
- package/components/Chart/BarChart.vue.d.ts +1 -1
- package/components/Chart/GanttChart.vue.d.ts +1 -1
- package/components/Chart/LineChart.vue.d.ts +1 -1
- package/components/Chart/TimelineChart.vue.d.ts +1 -1
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/ConfirmationModal.vue.d.ts +4 -0
- package/components/ConfirmationModal.vue.js +47 -39
- package/components/DataTable/DataTable.vue.js +319 -294
- package/components/DataTable/DataTableRow.vue.d.ts +2 -0
- package/components/DataTable/DataTableRow.vue.js +2 -2
- package/components/DataTable/DataTableRow.vue2.js +57 -54
- package/components/DataTable/types.d.ts +2 -0
- package/components/DatePicker.vue.js +5 -4
- package/components/Empty/Empty.vue.js +3 -2
- package/components/ExportData/ExportData.vue.d.ts +1 -1
- package/components/Form/Form.vue2.js +44 -43
- package/components/Form/FormField.vue.js +24 -24
- package/components/Heatmap/Heatmap.vue2.js +3 -2
- package/components/Icon.vue.d.ts +3 -2
- package/components/Icon.vue.js +22 -12
- package/components/IconPicker.vue.js +5 -133
- package/components/IconPicker.vue2.js +218 -2
- package/components/ImportData/ImportData.vue.js +3 -2
- package/components/ImportData/ImportStep2.vue.js +3 -2
- package/components/Kanban/KanbanBoard.vue2.js +4 -2
- package/components/List/utils.js +5 -4
- package/components/Masonry/Masonry.vue2.js +14 -13
- package/components/Navbar/Navbar.vue.d.ts +1 -1
- package/components/Price/Price.vue.js +13 -12
- package/components/Rating/Rating.vue.js +2 -2
- package/components/Rating/Rating.vue2.js +41 -41
- package/components/Rating/ReviewSummary.vue.js +20 -20
- 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 +7 -5
- package/components/Screen/components/ScreenExportModal.vue.d.ts +2 -2
- package/components/Stats/StatItem.vue.js +3 -2
- package/components/StatusChip/StatusChip.vue.js +6 -5
- package/components/Workbook/Sheet.vue.js +11 -11
- package/core/config.d.ts +28 -0
- package/core/config.js +23 -21
- package/core/index.js +18 -17
- package/icons/IconRegistry.d.ts +38 -0
- package/icons/IconRegistry.js +166 -0
- package/icons/IconTypes.d.ts +37 -0
- package/index.d.ts +2 -0
- package/index.js +473 -457
- package/package.json +15 -3
- package/style.css +1 -1
- package/types/config.type.d.ts +8 -1
- package/utils/functions.js +44 -43
- package/utils/index.d.ts +1 -0
- package/vite.d.ts +6 -0
- package/vite.js +223 -0
- /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue2.js → RichTextLinkPopover.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue2.js → RichTextToolbar.vue.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, computed as o, markRaw as
|
|
1
|
+
import { defineComponent as C, computed as o, markRaw as m, inject as B, openBlock as u, createElementBlock as D, createBlock as f, unref as E, normalizeClass as h, resolveDynamicComponent as S } from "vue";
|
|
2
2
|
import v from "./CategoryMenuVariant1.vue.js";
|
|
3
3
|
import k from "./CategoryMenuVariant2.vue.js";
|
|
4
4
|
import { CATEGORY_MENU_ROUTE_PREFIX_KEY as R, buildCategoryRoute as A } from "./utils.js";
|
|
@@ -6,6 +6,7 @@ import P from "../SidebarMenu/SidebarMenu.vue.js";
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
import "vue-router";
|
|
8
8
|
import "@iconify/vue";
|
|
9
|
+
import "../../icons/IconRegistry.js";
|
|
9
10
|
import "v-tooltip-lite/style.css";
|
|
10
11
|
import "v-tooltip-lite";
|
|
11
12
|
import "../../core/config.js";
|
|
@@ -21,7 +22,7 @@ const L = {
|
|
|
21
22
|
class: "w-full text-center text-xs text-muted-foreground py-3"
|
|
22
23
|
}, M = {
|
|
23
24
|
name: "CategoryMenu"
|
|
24
|
-
},
|
|
25
|
+
}, te = /* @__PURE__ */ C({
|
|
25
26
|
...M,
|
|
26
27
|
props: {
|
|
27
28
|
items: { default: () => [] },
|
|
@@ -46,11 +47,11 @@ const L = {
|
|
|
46
47
|
const e = w, n = g, i = o(() => e.rawData && e.rawData.length > 0 ? j(e.rawData) : e.items || []), x = o(() => {
|
|
47
48
|
switch (e.variant) {
|
|
48
49
|
case "tabs":
|
|
49
|
-
return
|
|
50
|
+
return m(v);
|
|
50
51
|
case "mega":
|
|
51
|
-
return
|
|
52
|
+
return m(k);
|
|
52
53
|
default:
|
|
53
|
-
return
|
|
54
|
+
return m(v);
|
|
54
55
|
}
|
|
55
56
|
}), l = B(
|
|
56
57
|
R,
|
|
@@ -81,13 +82,13 @@ const L = {
|
|
|
81
82
|
action: () => n("select", { id: "all", title: e.allItemLabel })
|
|
82
83
|
}), r;
|
|
83
84
|
}), I = (a) => n("select", a), b = o(() => !i.value || i.value.length === 0);
|
|
84
|
-
return (a, r) => b.value ? (
|
|
85
|
+
return (a, r) => b.value ? (u(), D("div", L, " No categories to display. ")) : e.variant === "sidebar" ? (u(), f(E(P), {
|
|
85
86
|
key: 1,
|
|
86
87
|
items: y.value,
|
|
87
88
|
"allow-multiple": e.multiExpand,
|
|
88
89
|
"default-expanded": e.activeId ? [String(e.activeId)] : [],
|
|
89
90
|
class: h(e.class)
|
|
90
|
-
}, null, 8, ["items", "allow-multiple", "default-expanded", "class"])) : (
|
|
91
|
+
}, null, 8, ["items", "allow-multiple", "default-expanded", "class"])) : (u(), f(S(x.value), {
|
|
91
92
|
key: 2,
|
|
92
93
|
items: i.value,
|
|
93
94
|
"max-depth": e.maxDepth,
|
|
@@ -107,5 +108,5 @@ const L = {
|
|
|
107
108
|
}
|
|
108
109
|
});
|
|
109
110
|
export {
|
|
110
|
-
|
|
111
|
+
te as default
|
|
111
112
|
};
|
|
@@ -29,8 +29,8 @@ export interface BarChartProps {
|
|
|
29
29
|
yLabelWidth?: number;
|
|
30
30
|
}
|
|
31
31
|
declare const _default: import('vue').DefineComponent<BarChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BarChartProps> & Readonly<{}>, {
|
|
32
|
-
animate: boolean;
|
|
33
32
|
height: number;
|
|
33
|
+
animate: boolean;
|
|
34
34
|
orientation: "vertical" | "horizontal";
|
|
35
35
|
colors: string[];
|
|
36
36
|
showGrid: boolean;
|
|
@@ -136,8 +136,8 @@ declare const _default: import('vue').DefineComponent<GanttChartProps, {
|
|
|
136
136
|
"onZoom-change"?: (payload: GanttZoomState) => any;
|
|
137
137
|
"onSidebar-toggle"?: (collapsed: boolean) => any;
|
|
138
138
|
}>, {
|
|
139
|
-
animate: boolean;
|
|
140
139
|
height: number;
|
|
140
|
+
animate: boolean;
|
|
141
141
|
draggable: boolean;
|
|
142
142
|
showHeader: boolean;
|
|
143
143
|
colors: string[];
|
|
@@ -36,8 +36,8 @@ export interface LineChartProps {
|
|
|
36
36
|
}
|
|
37
37
|
declare const _default: import('vue').DefineComponent<LineChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LineChartProps> & Readonly<{}>, {
|
|
38
38
|
fill: boolean;
|
|
39
|
-
animate: boolean;
|
|
40
39
|
height: number;
|
|
40
|
+
animate: boolean;
|
|
41
41
|
colors: string[];
|
|
42
42
|
smooth: boolean;
|
|
43
43
|
showDots: boolean;
|
|
@@ -11,8 +11,8 @@ export interface TimelineChartProps {
|
|
|
11
11
|
colors?: string[];
|
|
12
12
|
}
|
|
13
13
|
declare const _default: import('vue').DefineComponent<TimelineChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TimelineChartProps> & Readonly<{}>, {
|
|
14
|
-
animate: boolean;
|
|
15
14
|
height: number;
|
|
15
|
+
animate: boolean;
|
|
16
16
|
colors: string[];
|
|
17
17
|
showGrid: boolean;
|
|
18
18
|
showTooltip: boolean;
|
|
@@ -7,8 +7,8 @@ import "../../core/config.js";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import y from "../Button.vue.js";
|
|
10
|
-
import A from "./ColorIro.
|
|
11
|
-
/* empty css
|
|
10
|
+
import A from "./ColorIro.vue2.js";
|
|
11
|
+
/* empty css */
|
|
12
12
|
import { useEyeDropper as T } from "@vueuse/core";
|
|
13
13
|
import { COLOR_PICKER_RESET_VALUE as g } from "./constants.js";
|
|
14
14
|
const F = ["disabled", "aria-label"], G = { class: "min-w-0 flex-1 truncate text-foreground" }, K = { class: "absolute left-2.5 top-1/2 -translate-y-1/2 flex items-center justify-center z-20 pointer-events-none" }, q = {
|
|
@@ -10,12 +10,15 @@ interface Props {
|
|
|
10
10
|
cancelText?: string;
|
|
11
11
|
cancelTextI18n?: string;
|
|
12
12
|
variant?: 'danger' | 'primary' | 'warning' | 'success' | 'info';
|
|
13
|
+
/** When true, the confirm button cannot be clicked. */
|
|
14
|
+
confirmDisabled?: boolean;
|
|
13
15
|
}
|
|
14
16
|
declare function __VLS_template(): {
|
|
15
17
|
attrs: Partial<{}>;
|
|
16
18
|
slots: {
|
|
17
19
|
trigger?(_: {}): any;
|
|
18
20
|
default?(_: {}): any;
|
|
21
|
+
default?(_: {}): any;
|
|
19
22
|
};
|
|
20
23
|
refs: {};
|
|
21
24
|
rootEl: any;
|
|
@@ -31,6 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
31
34
|
variant: "danger" | "primary" | "warning" | "success" | "info";
|
|
32
35
|
loading: boolean;
|
|
33
36
|
show: boolean;
|
|
37
|
+
confirmDisabled: boolean;
|
|
34
38
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
39
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
40
|
export default _default;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { $t as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as b, useSlots as h, computed as a, openBlock as u, createBlock as w, mergeProps as $, createSlots as k, withCtx as d, createElementVNode as l, toDisplayString as p, unref as B, createElementBlock as S, renderSlot as m, createCommentVNode as D, createVNode as x } from "vue";
|
|
2
|
+
import z from "./Modal.vue.js";
|
|
3
|
+
import v from "./Button.vue.js";
|
|
4
|
+
import { $t as o } from "../utils/i18n.js";
|
|
5
|
+
const N = { class: "pb-2 px-[2px]" }, V = { class: "mb-1.5 font-semibold text-lg" }, E = { class: "text-sm text-muted-foreground" }, M = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "mt-3"
|
|
8
|
+
}, j = { class: "flex w-full items-center justify-end space-x-2 px-[2px]" }, F = /* @__PURE__ */ b({
|
|
6
9
|
__name: "ConfirmationModal",
|
|
7
10
|
props: {
|
|
8
11
|
show: { type: Boolean, default: !1 },
|
|
@@ -15,58 +18,63 @@ const k = { class: "pb-2 px-[2px]" }, B = { class: "mb-1.5 font-semibold text-lg
|
|
|
15
18
|
confirmTextI18n: {},
|
|
16
19
|
cancelText: {},
|
|
17
20
|
cancelTextI18n: {},
|
|
18
|
-
variant: { default: "danger" }
|
|
21
|
+
variant: { default: "danger" },
|
|
22
|
+
confirmDisabled: { type: Boolean, default: !1 }
|
|
19
23
|
},
|
|
20
24
|
emits: ["cancel", "confirm"],
|
|
21
|
-
setup(
|
|
22
|
-
const t =
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
() => t.descriptionI18n ?
|
|
26
|
-
),
|
|
27
|
-
if (t.confirmTextI18n) return
|
|
25
|
+
setup(n, { emit: g }) {
|
|
26
|
+
const t = n, f = g, T = h(), s = () => {
|
|
27
|
+
f("cancel");
|
|
28
|
+
}, r = a(() => t.titleI18n ? o(t.titleI18n) : t.title), C = a(
|
|
29
|
+
() => t.descriptionI18n ? o(t.descriptionI18n) : t.description
|
|
30
|
+
), y = a(() => {
|
|
31
|
+
if (t.confirmTextI18n) return o(t.confirmTextI18n);
|
|
28
32
|
if (t.confirmText) return t.confirmText;
|
|
29
|
-
const e =
|
|
33
|
+
const e = o("vlite.confirmation.confirm");
|
|
30
34
|
return e !== "vlite.confirmation.confirm" ? e : "Confirm";
|
|
31
|
-
}),
|
|
32
|
-
if (t.cancelTextI18n) return
|
|
35
|
+
}), I = a(() => {
|
|
36
|
+
if (t.cancelTextI18n) return o(t.cancelTextI18n);
|
|
33
37
|
if (t.cancelText) return t.cancelText;
|
|
34
|
-
const e =
|
|
38
|
+
const e = o("vlite.confirmation.cancel");
|
|
35
39
|
return e !== "vlite.confirmation.cancel" ? e : "Cancel";
|
|
36
40
|
});
|
|
37
|
-
return (e, i) => (
|
|
38
|
-
"data-testid": e.$attrs["data-testid"] || (
|
|
41
|
+
return (e, i) => (u(), w(z, $({ show: n.show }, e.$attrs, {
|
|
42
|
+
"data-testid": e.$attrs["data-testid"] || (r.value ? `confirm-modal-${r.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "confirm-modal"),
|
|
39
43
|
footerClass: "border-t-0! pt-0! pb-3.5!",
|
|
40
44
|
"max-width": "max-w-[400px]",
|
|
41
|
-
onClose:
|
|
42
|
-
"onUpdate:show": i[1] || (i[1] = (c) => !c &&
|
|
43
|
-
}),
|
|
45
|
+
onClose: s,
|
|
46
|
+
"onUpdate:show": i[1] || (i[1] = (c) => !c && s())
|
|
47
|
+
}), k({
|
|
44
48
|
footer: d(({ close: c }) => [
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
l("div", j, [
|
|
50
|
+
x(v, {
|
|
47
51
|
variant: "secondary",
|
|
48
|
-
text:
|
|
49
|
-
disabled:
|
|
52
|
+
text: I.value,
|
|
53
|
+
disabled: n.loading,
|
|
50
54
|
size: "sm2",
|
|
51
55
|
"data-testid": "confirm-modal-cancel",
|
|
52
56
|
onClick: () => {
|
|
53
|
-
c?.(),
|
|
57
|
+
c?.(), s?.();
|
|
54
58
|
}
|
|
55
59
|
}, null, 8, ["text", "disabled", "onClick"]),
|
|
56
|
-
|
|
60
|
+
x(v, {
|
|
57
61
|
size: "sm2",
|
|
58
|
-
variant:
|
|
59
|
-
text:
|
|
60
|
-
loading:
|
|
62
|
+
variant: n.variant,
|
|
63
|
+
text: y.value,
|
|
64
|
+
loading: n.loading,
|
|
65
|
+
disabled: n.confirmDisabled || n.loading,
|
|
61
66
|
"data-testid": "confirm-modal-confirm",
|
|
62
|
-
onClick: i[0] || (i[0] = (
|
|
63
|
-
}, null, 8, ["variant", "text", "loading"])
|
|
67
|
+
onClick: i[0] || (i[0] = (L) => f("confirm"))
|
|
68
|
+
}, null, 8, ["variant", "text", "loading", "disabled"])
|
|
64
69
|
])
|
|
65
70
|
]),
|
|
66
71
|
default: d(() => [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
72
|
+
l("div", N, [
|
|
73
|
+
l("h3", V, p(r.value), 1),
|
|
74
|
+
l("p", E, p(C.value), 1),
|
|
75
|
+
B(T).default ? (u(), S("div", M, [
|
|
76
|
+
m(e.$slots, "default")
|
|
77
|
+
])) : D("", !0)
|
|
70
78
|
])
|
|
71
79
|
]),
|
|
72
80
|
_: 2
|
|
@@ -74,8 +82,8 @@ const k = { class: "pb-2 px-[2px]" }, B = { class: "mb-1.5 font-semibold text-lg
|
|
|
74
82
|
e.$slots?.trigger ? {
|
|
75
83
|
name: "trigger",
|
|
76
84
|
fn: d(() => [
|
|
77
|
-
|
|
78
|
-
|
|
85
|
+
m(e.$slots, "trigger", {}, () => [
|
|
86
|
+
m(e.$slots, "default")
|
|
79
87
|
])
|
|
80
88
|
]),
|
|
81
89
|
key: "0"
|
|
@@ -84,5 +92,5 @@ const k = { class: "pb-2 px-[2px]" }, B = { class: "mb-1.5 font-semibold text-lg
|
|
|
84
92
|
}
|
|
85
93
|
});
|
|
86
94
|
export {
|
|
87
|
-
|
|
95
|
+
F as default
|
|
88
96
|
};
|