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.
Files changed (47) hide show
  1. package/README.md +5 -1
  2. package/components/Button.vue.js +18 -18
  3. package/components/CategoryManager/CategoryManager.vue.js +1 -1
  4. package/components/Chart/GanttChart.vue.d.ts +67 -0
  5. package/components/Chart/GanttChart.vue.js +7 -0
  6. package/components/Chart/GanttChart.vue2.js +911 -0
  7. package/components/Chart/SpeedometerChart.vue.d.ts +54 -0
  8. package/components/Chart/SpeedometerChart.vue.js +558 -0
  9. package/components/Chart/SpeedometerChart.vue2.js +4 -0
  10. package/components/Chart/index.d.ts +3 -1
  11. package/components/Chart/types.d.ts +106 -0
  12. package/components/ChoiceBox/ChoiceBox.vue.d.ts +46 -1
  13. package/components/ChoiceBox/ChoiceBox.vue.js +274 -91
  14. package/components/ChoiceBox/index.d.ts +1 -1
  15. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  16. package/components/ColorPicker/ColorPicker.vue.js +3 -3
  17. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  18. package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
  19. package/components/DataTable/DataTableHeader.vue.js +33 -30
  20. package/components/ImageComparison/ImageComparison.vue.d.ts +29 -0
  21. package/components/ImageComparison/ImageComparison.vue.js +126 -0
  22. package/components/ImageComparison/ImageComparison.vue2.js +4 -0
  23. package/components/ImageComparison/index.d.ts +1 -0
  24. package/components/ImportData/ImportData.vue.js +1 -1
  25. package/components/NavbarCommandPalette.vue.js +1 -1
  26. package/components/OTPInput/OTPInput.vue.d.ts +18 -0
  27. package/components/OTPInput/OTPInput.vue.js +127 -82
  28. package/components/PricingPlan/PricingPlanItem.vue.js +19 -19
  29. package/components/Radio.vue.d.ts +41 -0
  30. package/components/Radio.vue.js +97 -0
  31. package/components/Radio.vue2.js +4 -0
  32. package/components/RadioGroup.vue.d.ts +38 -0
  33. package/components/RadioGroup.vue.js +37 -0
  34. package/components/RadioGroup.vue2.js +4 -0
  35. package/components/Screen/ScreenFilter.vue.js +1 -1
  36. package/components/SidePanel.vue.js +3 -3
  37. package/components/SidePanel.vue2.js +1 -1
  38. package/components/Slider.vue.d.ts +7 -0
  39. package/components/Slider.vue.js +194 -120
  40. package/components/Timeline/Timeline.vue.d.ts +1 -1
  41. package/components/index.d.ts +1 -1
  42. package/index.d.ts +3 -0
  43. package/index.js +138 -128
  44. package/package.json +1 -1
  45. package/style.css +35 -26
  46. package/types/form.type.d.ts +23 -0
  47. /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
@@ -1,11 +1,11 @@
1
- import { defineComponent as F, computed as o, openBlock as i, createElementBlock as a, normalizeClass as m, createVNode as v, withCtx as h, createTextVNode as b, toDisplayString as l, createCommentVNode as u, createElementVNode as s, Fragment as D, renderList as E, createBlock as y } from "vue";
1
+ import { defineComponent as F, computed as o, openBlock as i, createElementBlock as a, normalizeClass as u, createVNode as v, withCtx as h, createTextVNode as b, toDisplayString as l, createCommentVNode as m, createElementVNode as s, Fragment as j, renderList as D, createBlock as y } from "vue";
2
2
  import _ from "../Icon.vue.js";
3
- import S from "../Button.vue.js";
4
- import j from "../Badge.vue.js";
3
+ import E from "../Button.vue.js";
4
+ import S from "../Badge.vue.js";
5
5
  import { $t as n } from "../../utils/i18n.js";
6
6
  const L = {
7
7
  key: 0,
8
- class: "absolute -top-3 left-1/2 -translate-x-1/2 z-20"
8
+ class: "absolute -top-3 left-1/2 -translate-x-1/2 z-20 flex w-full max-w-[90%] justify-center"
9
9
  }, M = { class: "mb-3 text-center" }, R = { class: "text-xl font-bold text-foreground tracking-tight" }, q = {
10
10
  key: 0,
11
11
  class: "text-sm text-muted-foreground mt-2 min-h-[40px] leading-relaxed"
@@ -22,9 +22,9 @@ const L = {
22
22
  },
23
23
  emits: ["select"],
24
24
  setup(c, { emit: P }) {
25
- const e = c, k = P, I = () => {
25
+ const e = c, k = P, w = () => {
26
26
  e.selectable && k("select", e.item);
27
- }, T = o(() => e.item.titleI18n ? n(e.item.titleI18n) : e.item.title), p = o(() => e.item.descriptionI18n ? n(e.item.descriptionI18n) : e.item.description), f = o(() => e.item.periodI18n ? n(e.item.periodI18n) : e.item.period), w = o(() => {
27
+ }, I = o(() => e.item.titleI18n ? n(e.item.titleI18n) : e.item.title), p = o(() => e.item.descriptionI18n ? n(e.item.descriptionI18n) : e.item.description), f = o(() => e.item.periodI18n ? n(e.item.periodI18n) : e.item.period), T = o(() => {
28
28
  if (e.item.buttonTextI18n) return n(e.item.buttonTextI18n);
29
29
  if (e.item.buttonText) return e.item.buttonText;
30
30
  const t = n("vlite.pricingPlan.selected") !== "vlite.pricingPlan.selected" ? n("vlite.pricingPlan.selected") : "Selected", r = n("vlite.pricingPlan.choosePlan") !== "vlite.pricingPlan.choosePlan" ? n("vlite.pricingPlan.choosePlan") : "Choose Plan";
@@ -42,30 +42,30 @@ const L = {
42
42
  return t !== "vlite.pricingPlan.mostPopular" ? t : "Most Popular";
43
43
  });
44
44
  return (t, r) => (i(), a("div", {
45
- class: m(C.value),
46
- onClick: I
45
+ class: u(C.value),
46
+ onClick: w
47
47
  }, [
48
48
  x.value ? (i(), a("div", L, [
49
- v(j, {
49
+ v(S, {
50
50
  variant: B.value,
51
- class: "shadow-sm px-4 py-1 text-xs uppercase tracking-wider font-bold"
51
+ class: "shadow-sm px-4 py-1 text-xs uppercase tracking-wider font-bold truncate max-w-full"
52
52
  }, {
53
53
  default: h(() => [
54
54
  b(l(z.value), 1)
55
55
  ]),
56
56
  _: 1
57
57
  }, 8, ["variant"])
58
- ])) : u("", !0),
58
+ ])) : m("", !0),
59
59
  s("div", M, [
60
- s("h3", R, l(T.value), 1),
61
- p.value ? (i(), a("p", q, l(p.value), 1)) : u("", !0)
60
+ s("h3", R, l(I.value), 1),
61
+ p.value ? (i(), a("p", q, l(p.value), 1)) : m("", !0)
62
62
  ]),
63
63
  s("div", A, [
64
64
  s("span", G, l(c.item.price), 1),
65
- f.value ? (i(), a("span", H, l(f.value), 1)) : u("", !0)
65
+ f.value ? (i(), a("span", H, l(f.value), 1)) : m("", !0)
66
66
  ]),
67
67
  s("ul", J, [
68
- (i(!0), a(D, null, E(c.item.features, (d, N) => (i(), a("li", {
68
+ (i(!0), a(j, null, D(c.item.features, (d, N) => (i(), a("li", {
69
69
  key: N,
70
70
  class: "flex items-start gap-3 text-sm group/feature"
71
71
  }, [
@@ -81,20 +81,20 @@ const L = {
81
81
  }))
82
82
  ]),
83
83
  s("span", {
84
- class: m(
84
+ class: u(
85
85
  g(d) ? "text-foreground/90 font-medium" : "text-muted-foreground/60 decoration-slate-300/50"
86
86
  )
87
87
  }, l($(d)), 3)
88
88
  ]))), 128))
89
89
  ]),
90
90
  s("div", O, [
91
- v(S, {
91
+ v(E, {
92
92
  variant: V.value,
93
- class: m(["w-full font-semibold shadow-sm rounded-lg", { "ring-2 ring-primary ring-offset-2": c.selected }]),
93
+ class: u(["w-full font-semibold shadow-sm rounded-lg", { "ring-2 ring-primary ring-offset-2": c.selected }]),
94
94
  size: "lg"
95
95
  }, {
96
96
  default: h(() => [
97
- b(l(w.value), 1)
97
+ b(l(T.value), 1)
98
98
  ]),
99
99
  _: 1
100
100
  }, 8, ["variant", "class"])
@@ -0,0 +1,41 @@
1
+ import { RadioSize, RadioColor } from '../types';
2
+ interface Props {
3
+ modelValue?: any;
4
+ value?: any;
5
+ disabled?: boolean;
6
+ label?: string;
7
+ labelI18n?: string;
8
+ id?: string;
9
+ class?: string;
10
+ size?: RadioSize;
11
+ color?: RadioColor;
12
+ name?: string;
13
+ }
14
+ declare function __VLS_template(): {
15
+ attrs: Partial<{}>;
16
+ slots: {
17
+ default?(_: {}): any;
18
+ };
19
+ refs: {};
20
+ rootEl: HTMLDivElement;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
24
+ "update:modelValue": (value: any) => any;
25
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
26
+ "onUpdate:modelValue"?: (value: any) => any;
27
+ }>, {
28
+ value: any;
29
+ class: string;
30
+ color: RadioColor;
31
+ size: RadioSize;
32
+ disabled: boolean;
33
+ modelValue: any;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,97 @@
1
+ import { defineComponent as x, inject as V, computed as o, unref as s, openBlock as m, createElementBlock as z, createElementVNode as g, withModifiers as $, normalizeClass as f, createBlock as S, withCtx as j, renderSlot as B, createTextVNode as N, toDisplayString as D, createCommentVNode as I } from "vue";
2
+ import M from "./Label.vue.js";
3
+ import { $t as E } from "../utils/i18n.js";
4
+ const G = { class: "flex items-center space-x-2" }, L = ["aria-checked", "data-state", "disabled", "id", "name", "data-testid"], A = /* @__PURE__ */ x({
5
+ __name: "Radio",
6
+ props: {
7
+ modelValue: { default: void 0 },
8
+ value: { default: void 0 },
9
+ disabled: { type: Boolean, default: !1 },
10
+ label: {},
11
+ labelI18n: {},
12
+ id: {},
13
+ class: { default: "" },
14
+ size: { default: void 0 },
15
+ color: { default: void 0 },
16
+ name: {}
17
+ },
18
+ emits: ["update:modelValue"],
19
+ setup(i, { emit: v }) {
20
+ const e = i, p = v, r = V("radioGroup", null), n = o(() => r ? s(r.modelValue) === e.value : e.modelValue === e.value), d = o(() => s(r?.disabled) || e.disabled), u = o(() => e.size || s(r?.size) || "md"), c = o(() => e.color || s(r?.color) || "primary"), h = o(() => s(r?.name) || e.name || `radio-${Math.random().toString(36).substring(2, 9)}`), t = o(() => e.labelI18n ? E(e.labelI18n) : e.label), b = () => {
21
+ d.value || (r ? r.updateValue(e.value) : p("update:modelValue", e.value));
22
+ }, y = {
23
+ xs: "h-3.5 w-3.5",
24
+ sm: "h-4 w-4",
25
+ md: "h-4.5 w-4.5",
26
+ lg: "h-5 w-5",
27
+ xl: "h-5.5 w-5.5"
28
+ }, w = {
29
+ xs: "h-1.5 w-1.5",
30
+ sm: "h-2 w-2",
31
+ md: "h-2.5 w-2.5",
32
+ lg: "h-3 w-3",
33
+ xl: "h-3.5 w-3.5"
34
+ }, l = {
35
+ primary: { border: "border-primary!", bg: "bg-primary", ring: "focus-visible:ring-primary" },
36
+ secondary: { border: "border-secondary!", bg: "bg-secondary", ring: "focus-visible:ring-secondary" },
37
+ success: { border: "border-success!", bg: "bg-success", ring: "focus-visible:ring-success" },
38
+ warning: { border: "border-warning!", bg: "bg-warning", ring: "focus-visible:ring-warning" },
39
+ danger: { border: "border-danger!", bg: "bg-danger", ring: "focus-visible:ring-danger" },
40
+ info: { border: "border-info!", bg: "bg-info", ring: "focus-visible:ring-info" }
41
+ }, C = o(() => {
42
+ const a = l[c.value] || l.primary;
43
+ return [
44
+ "peer shrink-0 rounded-full border transition-all duration-200 ease-in-out",
45
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
46
+ "disabled:cursor-not-allowed disabled:opacity-50",
47
+ "cursor-pointer bg-transparent flex items-center justify-center",
48
+ y[u.value],
49
+ n.value ? a.border : "border-gray-400!",
50
+ a.ring,
51
+ e.class
52
+ ].join(" ");
53
+ }), k = o(() => {
54
+ const a = l[c.value] || l.primary;
55
+ return [
56
+ "rounded-full transition-transform duration-200",
57
+ n.value ? "scale-100" : "scale-0",
58
+ w[u.value],
59
+ a.bg
60
+ ].join(" ");
61
+ });
62
+ return (a, _) => (m(), z("div", G, [
63
+ g("button", {
64
+ type: "button",
65
+ role: "radio",
66
+ "aria-checked": n.value,
67
+ "data-state": n.value ? "checked" : "unchecked",
68
+ disabled: d.value,
69
+ class: f(C.value),
70
+ id: i.id,
71
+ name: h.value,
72
+ "data-testid": a.$attrs["data-testid"] || (i.id ? `radio-${i.id}` : t.value ? `radio-${t.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "radio"),
73
+ onClick: $(b, ["prevent"])
74
+ }, [
75
+ g("div", {
76
+ class: f(k.value)
77
+ }, null, 2)
78
+ ], 10, L),
79
+ t.value || a.$slots.default ? (m(), S(M, {
80
+ key: 0,
81
+ for: i.id,
82
+ class: "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer",
83
+ onClick: b
84
+ }, {
85
+ default: j(() => [
86
+ B(a.$slots, "default", {}, () => [
87
+ N(D(t.value), 1)
88
+ ])
89
+ ]),
90
+ _: 3
91
+ }, 8, ["for"])) : I("", !0)
92
+ ]));
93
+ }
94
+ });
95
+ export {
96
+ A as default
97
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Radio.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,38 @@
1
+ import { RadioSize, RadioColor } from '../types';
2
+ interface Props {
3
+ modelValue?: any;
4
+ name?: string;
5
+ disabled?: boolean;
6
+ direction?: 'row' | 'column';
7
+ size?: RadioSize;
8
+ color?: RadioColor;
9
+ class?: string;
10
+ }
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: HTMLDivElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
+ "update:modelValue": (value: any) => any;
22
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
23
+ "onUpdate:modelValue"?: (value: any) => any;
24
+ }>, {
25
+ class: string;
26
+ color: RadioColor;
27
+ size: RadioSize;
28
+ disabled: boolean;
29
+ modelValue: any;
30
+ direction: "row" | "column";
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
+ export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as n, computed as o, provide as i, openBlock as c, createElementBlock as m, normalizeClass as p, renderSlot as f } from "vue";
2
+ const v = /* @__PURE__ */ n({
3
+ __name: "RadioGroup",
4
+ props: {
5
+ modelValue: { default: void 0 },
6
+ name: {},
7
+ disabled: { type: Boolean, default: !1 },
8
+ direction: { default: "column" },
9
+ size: { default: "md" },
10
+ color: { default: "primary" },
11
+ class: { default: "" }
12
+ },
13
+ emits: ["update:modelValue"],
14
+ setup(l, { emit: t }) {
15
+ const e = l, r = t, d = (a) => {
16
+ r("update:modelValue", a);
17
+ }, s = o(() => e.name || `radio-group-${Math.random().toString(36).substring(2, 9)}`);
18
+ i("radioGroup", {
19
+ modelValue: o(() => e.modelValue),
20
+ updateValue: d,
21
+ name: s.value,
22
+ disabled: o(() => e.disabled),
23
+ size: o(() => e.size),
24
+ color: o(() => e.color)
25
+ });
26
+ const u = o(() => e.direction === "row" ? "flex-row space-x-4" : "flex-col space-y-2");
27
+ return (a, V) => (c(), m("div", {
28
+ class: p(["flex", u.value, e.class]),
29
+ role: "radiogroup"
30
+ }, [
31
+ f(a.$slots, "default")
32
+ ], 2));
33
+ }
34
+ });
35
+ export {
36
+ v as default
37
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./RadioGroup.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -14,7 +14,7 @@ import "v-datepicker-lite";
14
14
  import "v-datepicker-lite/style.css";
15
15
  import "@jaames/iro";
16
16
  import "@vueuse/core";
17
- /* empty css */
17
+ /* empty css */
18
18
  import "iconify-icon-picker";
19
19
  import "iconify-icon-picker/style.css";
20
20
  /* empty css */
@@ -1,7 +1,7 @@
1
1
  import o from "./SidePanel.vue2.js";
2
2
  /* empty css */
3
- import a from "../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-d7a169fa"]]);
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-99967d3b"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -4,7 +4,7 @@ import { useKeyStroke as H } from "../composables/useKeyStroke.js";
4
4
  import { $t as k } from "../utils/i18n.js";
5
5
  const J = ["data-testid"], Q = ["data-testid"], W = { class: "text-lg font-bold text-foreground" }, X = {
6
6
  key: 0,
7
- class: "mt-1 text-sm text-muted-foreground"
7
+ class: "-text-fs-2 text-muted-foreground"
8
8
  }, te = /* @__PURE__ */ E({
9
9
  inheritAttrs: !1,
10
10
  __name: "SidePanel",
@@ -9,8 +9,12 @@ type __VLS_Props = {
9
9
  showValue?: boolean;
10
10
  modelValue?: number;
11
11
  labelClass?: string;
12
+ valueClass?: string;
12
13
  centerOrigin?: boolean;
13
14
  size?: 'xs' | 'sm' | 'md' | 'lg';
15
+ orientation?: 'horizontal' | 'vertical';
16
+ variant?: 'one' | 'two';
17
+ thumbVariant?: 'default' | 'solid';
14
18
  };
15
19
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
20
  change: (value: number) => any;
@@ -21,12 +25,15 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
21
25
  "onUpdate:modelValue"?: (value: number) => any;
22
26
  onIconClick?: () => any;
23
27
  }>, {
28
+ variant: "one" | "two";
24
29
  size: "xs" | "sm" | "md" | "lg";
30
+ orientation: "horizontal" | "vertical";
25
31
  modelValue: number;
26
32
  min: number;
27
33
  max: number;
28
34
  step: number;
29
35
  showValue: boolean;
30
36
  centerOrigin: boolean;
37
+ thumbVariant: "default" | "solid";
31
38
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
32
39
  export default _default;