vlite3 1.2.5 → 1.2.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/README.md +5 -1
- package/components/Button.vue.js +18 -18
- package/components/CategoryManager/CategoryManager.vue.js +1 -1
- package/components/Chart/GanttChart.vue.d.ts +67 -0
- package/components/Chart/GanttChart.vue.js +7 -0
- package/components/Chart/GanttChart.vue2.js +911 -0
- package/components/Chart/SpeedometerChart.vue.d.ts +54 -0
- package/components/Chart/SpeedometerChart.vue.js +558 -0
- package/components/Chart/SpeedometerChart.vue2.js +4 -0
- package/components/Chart/index.d.ts +3 -1
- package/components/Chart/types.d.ts +106 -0
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +46 -1
- package/components/ChoiceBox/ChoiceBox.vue.js +274 -91
- package/components/ChoiceBox/index.d.ts +1 -1
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +3 -3
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/DataTable/DataTableHeader.vue.js +33 -30
- package/components/ImageComparison/ImageComparison.vue.d.ts +29 -0
- package/components/ImageComparison/ImageComparison.vue.js +126 -0
- package/components/ImageComparison/ImageComparison.vue2.js +4 -0
- package/components/ImageComparison/index.d.ts +1 -0
- package/components/ImportData/ImportData.vue.js +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/OTPInput/OTPInput.vue.d.ts +18 -0
- package/components/OTPInput/OTPInput.vue.js +127 -82
- package/components/PricingPlan/PricingPlanItem.vue.js +19 -19
- package/components/Radio.vue.d.ts +41 -0
- package/components/Radio.vue.js +97 -0
- package/components/Radio.vue2.js +4 -0
- package/components/RadioGroup.vue.d.ts +38 -0
- package/components/RadioGroup.vue.js +37 -0
- package/components/RadioGroup.vue2.js +4 -0
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/SidePanel.vue.js +3 -3
- package/components/SidePanel.vue2.js +1 -1
- package/components/Slider.vue.d.ts +7 -0
- package/components/Slider.vue.js +194 -120
- package/components/Timeline/Timeline.vue.d.ts +1 -1
- package/components/index.d.ts +1 -1
- package/index.d.ts +3 -0
- package/index.js +138 -128
- package/package.json +1 -1
- package/style.css +35 -26
- package/types/form.type.d.ts +23 -0
- /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
package/README.md
CHANGED
|
@@ -430,7 +430,7 @@ Follow these rules strictly to ensure visual consistency and predictable styling
|
|
|
430
430
|
- [x] **AvatarUploader**
|
|
431
431
|
- [x] **ThumbnailSelector**
|
|
432
432
|
- [x] **IconPicker**
|
|
433
|
-
- [x] **
|
|
433
|
+
- [x] **RadioGroup**
|
|
434
434
|
- [x] **Forms**
|
|
435
435
|
- [x] **CustomFields**
|
|
436
436
|
- [x] **GoogleLogin**
|
|
@@ -461,6 +461,8 @@ Follow these rules strictly to ensure visual consistency and predictable styling
|
|
|
461
461
|
- [x] **Invoice**
|
|
462
462
|
- [x] **Footer**
|
|
463
463
|
- [x] **Charts**
|
|
464
|
+
- [x] **GanttChart**
|
|
465
|
+
- [x] **ImageComparison**
|
|
464
466
|
|
|
465
467
|
### Feedback & Overlays
|
|
466
468
|
|
|
@@ -472,6 +474,8 @@ Follow these rules strictly to ensure visual consistency and predictable styling
|
|
|
472
474
|
- [x] **ToastNotification**
|
|
473
475
|
- [x] **Tooltip**
|
|
474
476
|
- [x] **Dropdown**
|
|
477
|
+
- [x] **MultiSelect**
|
|
478
|
+
- [x] **AsyncSelect**
|
|
475
479
|
- [x] **ProgressBar**
|
|
476
480
|
- [x] **Spinner**
|
|
477
481
|
- [x] **CommandPalette**
|
package/components/Button.vue.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as k, computed as l, useSlots as z, withDirectives as $, openBlock as o, createElementBlock as u, normalizeClass as s, createBlock as d, createCommentVNode as h, renderSlot as m, createTextVNode as b, toDisplayString as f, unref as B } from "vue";
|
|
2
|
+
import g from "./Icon.vue.js";
|
|
3
3
|
import { vRipple as I } from "../directives/vRipple.js";
|
|
4
4
|
import { $t as R } from "../utils/i18n.js";
|
|
5
|
-
const S = ["type", "disabled", "data-testid"], T = /* @__PURE__ */
|
|
5
|
+
const S = ["type", "disabled", "data-testid"], T = /* @__PURE__ */ k({
|
|
6
6
|
__name: "Button",
|
|
7
7
|
props: {
|
|
8
8
|
variant: { default: "primary" },
|
|
@@ -22,21 +22,21 @@ const S = ["type", "disabled", "data-testid"], T = /* @__PURE__ */ z({
|
|
|
22
22
|
asIcon: { type: Boolean }
|
|
23
23
|
},
|
|
24
24
|
setup(e) {
|
|
25
|
-
const t = e, r = l(() => t.textI18n ? R(t.textI18n) : t.text),
|
|
26
|
-
() => t?.asIcon || t.icon && !r.value && !
|
|
27
|
-
),
|
|
25
|
+
const t = e, r = l(() => t.textI18n ? R(t.textI18n) : t.text), x = z(), i = l(
|
|
26
|
+
() => t?.asIcon || t.icon && !r.value && !x.default
|
|
27
|
+
), v = l(() => {
|
|
28
28
|
const n = `inline-flex items-center justify-center whitespace-nowrap text-sm font-medium disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98] cursor-pointer gap-2 ${i.value ? "icon-only shrink-0" : ""}`, a = {
|
|
29
29
|
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
30
|
-
"primary-light": "bg-primary-light text-primary-fg-light hover:bg-primary/
|
|
30
|
+
"primary-light": "bg-primary-light text-primary-fg-light hover:bg-primary/15",
|
|
31
31
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
32
|
-
danger: "bg-
|
|
33
|
-
"danger-light": "bg-
|
|
32
|
+
danger: "bg-danger text-danger-fg hover:bg-danger/90",
|
|
33
|
+
"danger-light": "bg-danger-light text-destructive hover:bg-danger/20 dark:hover:bg-danger/40",
|
|
34
34
|
warning: "bg-warning text-warning-fg hover:bg-warning/80",
|
|
35
|
-
"warning-light": "bg-warning-light text-warning-fg-light hover:bg-warning/
|
|
35
|
+
"warning-light": "bg-warning-light text-warning-fg-light hover:bg-warning/25",
|
|
36
36
|
info: "bg-info text-info-fg hover:bg-info/80",
|
|
37
|
-
"info-light": "bg-info-light text-info-fg-light hover:bg-info/
|
|
37
|
+
"info-light": "bg-info-light text-info-fg-light hover:bg-info/30",
|
|
38
38
|
success: "bg-success text-success-fg hover:bg-success/80",
|
|
39
|
-
"success-light": "bg-success-light text-success-fg-light hover:bg-success/20",
|
|
39
|
+
"success-light": "bg-success-light text-success-fg-light hover:bg-success/20 dark:hover:bg-success/35",
|
|
40
40
|
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground text-foreground",
|
|
41
41
|
"outline-floating": "border px-3.5! border-input bg-transparent hover:bg-transparent text-foreground border-input active:scale-100!",
|
|
42
42
|
"outline-primary": "border border-primary text-primary hover:bg-primary/10",
|
|
@@ -97,22 +97,22 @@ const S = ["type", "disabled", "data-testid"], T = /* @__PURE__ */ z({
|
|
|
97
97
|
};
|
|
98
98
|
return i.value ? a[t.size] : n[t.size];
|
|
99
99
|
});
|
|
100
|
-
return (n, a) => $((o(),
|
|
100
|
+
return (n, a) => $((o(), u("button", {
|
|
101
101
|
type: e.type,
|
|
102
|
-
class: s([
|
|
102
|
+
class: s([v.value, "cursor-pointer"]),
|
|
103
103
|
disabled: e.disabled || e.loading,
|
|
104
104
|
"data-testid": n.$attrs["data-testid"] || (r.value ? `btn-${r.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : e.icon ? `btn-${e.icon.replace(/[^a-zA-Z0-9]+/g, "-")}` : "button")
|
|
105
105
|
}, [
|
|
106
|
-
e.loading ? (o(), d(
|
|
106
|
+
e.loading ? (o(), d(g, {
|
|
107
107
|
key: 0,
|
|
108
108
|
icon: "lucide:loader-2",
|
|
109
109
|
class: s(["animate-spin pointer-events-none", c.value])
|
|
110
|
-
}, null, 8, ["class"])) : e.icon ? (o(), d(
|
|
110
|
+
}, null, 8, ["class"])) : e.icon ? (o(), d(g, {
|
|
111
111
|
key: 1,
|
|
112
112
|
icon: e.icon,
|
|
113
113
|
class: s(["pointer-events-none", [e.iconClass, c.value, i.value ? "mx-auto" : ""]])
|
|
114
114
|
}, null, 8, ["icon", "class"])) : h("", !0),
|
|
115
|
-
e.textClass ? (o(),
|
|
115
|
+
e.textClass ? (o(), u("span", {
|
|
116
116
|
key: 2,
|
|
117
117
|
class: s(e.textClass)
|
|
118
118
|
}, [
|
|
@@ -122,7 +122,7 @@ const S = ["type", "disabled", "data-testid"], T = /* @__PURE__ */ z({
|
|
|
122
122
|
], 2)) : m(n.$slots, "default", { key: 3 }, () => [
|
|
123
123
|
b(f(r.value), 1)
|
|
124
124
|
]),
|
|
125
|
-
e.iconRight && !e.loading ? (o(), d(
|
|
125
|
+
e.iconRight && !e.loading ? (o(), d(g, {
|
|
126
126
|
key: 4,
|
|
127
127
|
icon: e.iconRight,
|
|
128
128
|
class: s([[e.iconRightClass, c.value], "h-4 w-4 pointer-events-none"])
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { GanttTask, GanttViewMode } from './types';
|
|
2
|
+
export interface GanttChartProps {
|
|
3
|
+
tasks: GanttTask[];
|
|
4
|
+
viewMode?: GanttViewMode;
|
|
5
|
+
height?: number;
|
|
6
|
+
rowHeight?: number;
|
|
7
|
+
barRadius?: number;
|
|
8
|
+
barHeight?: number;
|
|
9
|
+
sidebarWidth?: number;
|
|
10
|
+
showGrid?: boolean;
|
|
11
|
+
showTooltip?: boolean;
|
|
12
|
+
showLabels?: boolean;
|
|
13
|
+
showProgress?: boolean;
|
|
14
|
+
showDependencies?: boolean;
|
|
15
|
+
showTodayLine?: boolean;
|
|
16
|
+
showHeader?: boolean;
|
|
17
|
+
animate?: boolean;
|
|
18
|
+
colors?: string[];
|
|
19
|
+
todayColor?: string;
|
|
20
|
+
locale?: string;
|
|
21
|
+
draggable?: boolean;
|
|
22
|
+
/** When moving a task, also shift all tasks that depend on it (recursively) */
|
|
23
|
+
cascadeDependencies?: boolean;
|
|
24
|
+
zoom?: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: import('vue').DefineComponent<GanttChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
27
|
+
"task-click": (task: GanttTask) => any;
|
|
28
|
+
"task-hover": (task: GanttTask) => any;
|
|
29
|
+
"task-update": (task: GanttTask, changes: {
|
|
30
|
+
start: Date;
|
|
31
|
+
end: Date;
|
|
32
|
+
}) => any;
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<GanttChartProps> & Readonly<{
|
|
34
|
+
"onTask-click"?: (task: GanttTask) => any;
|
|
35
|
+
"onTask-hover"?: (task: GanttTask) => any;
|
|
36
|
+
"onTask-update"?: (task: GanttTask, changes: {
|
|
37
|
+
start: Date;
|
|
38
|
+
end: Date;
|
|
39
|
+
}) => any;
|
|
40
|
+
}>, {
|
|
41
|
+
animate: boolean;
|
|
42
|
+
height: number;
|
|
43
|
+
draggable: boolean;
|
|
44
|
+
showHeader: boolean;
|
|
45
|
+
colors: string[];
|
|
46
|
+
showLabels: boolean;
|
|
47
|
+
showTooltip: boolean;
|
|
48
|
+
showGrid: boolean;
|
|
49
|
+
barRadius: number;
|
|
50
|
+
rowHeight: number;
|
|
51
|
+
barHeight: number;
|
|
52
|
+
viewMode: GanttViewMode;
|
|
53
|
+
sidebarWidth: number;
|
|
54
|
+
showProgress: boolean;
|
|
55
|
+
showDependencies: boolean;
|
|
56
|
+
showTodayLine: boolean;
|
|
57
|
+
todayColor: string;
|
|
58
|
+
locale: string;
|
|
59
|
+
cascadeDependencies: boolean;
|
|
60
|
+
zoom: boolean;
|
|
61
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
62
|
+
containerRef: HTMLDivElement;
|
|
63
|
+
sidebarRef: HTMLDivElement;
|
|
64
|
+
timelineRef: HTMLDivElement;
|
|
65
|
+
dragLabelRef: SVGGElement;
|
|
66
|
+
}, HTMLDivElement>;
|
|
67
|
+
export default _default;
|