vlite3 1.2.5 → 1.2.8

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 (53) hide show
  1. package/README.md +5 -1
  2. package/components/Barcode/Barcode.vue.d.ts +1 -1
  3. package/components/Button.vue.js +18 -18
  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/Chip/Chip.vue.js +10 -9
  13. package/components/Chip/types.d.ts +1 -1
  14. package/components/ChoiceBox/ChoiceBox.vue.d.ts +46 -1
  15. package/components/ChoiceBox/ChoiceBox.vue.js +274 -91
  16. package/components/ChoiceBox/index.d.ts +1 -1
  17. package/components/ColorPicker/ColorPicker.vue.js +1 -1
  18. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  19. package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
  20. package/components/DataTable/DataTableHeader.vue.js +33 -30
  21. package/components/Dropdown/Dropdown.vue.d.ts +2 -0
  22. package/components/Dropdown/Dropdown.vue.js +35 -30
  23. package/components/Form/Form.vue.d.ts +10 -1
  24. package/components/Form/Form.vue.js +1 -1
  25. package/components/Form/Form.vue2.js +146 -132
  26. package/components/ImageComparison/ImageComparison.vue.d.ts +29 -0
  27. package/components/ImageComparison/ImageComparison.vue.js +126 -0
  28. package/components/ImageComparison/ImageComparison.vue2.js +4 -0
  29. package/components/ImageComparison/index.d.ts +1 -0
  30. package/components/ImportData/ImportData.vue.js +1 -1
  31. package/components/NavbarCommandPalette.vue.js +1 -1
  32. package/components/OTPInput/OTPInput.vue.d.ts +18 -0
  33. package/components/OTPInput/OTPInput.vue.js +127 -82
  34. package/components/PricingPlan/PricingPlanItem.vue.js +19 -19
  35. package/components/Radio.vue.d.ts +41 -0
  36. package/components/Radio.vue.js +97 -0
  37. package/components/Radio.vue2.js +4 -0
  38. package/components/RadioGroup.vue.d.ts +38 -0
  39. package/components/RadioGroup.vue.js +37 -0
  40. package/components/RadioGroup.vue2.js +4 -0
  41. package/components/Screen/ScreenFilter.vue.js +25 -25
  42. package/components/SidePanel.vue.js +3 -3
  43. package/components/SidePanel.vue2.js +1 -1
  44. package/components/Slider.vue.d.ts +7 -0
  45. package/components/Slider.vue.js +194 -120
  46. package/components/StatusChip/status-map.js +13 -0
  47. package/components/Timeline/Timeline.vue.d.ts +1 -1
  48. package/components/index.d.ts +1 -1
  49. package/index.d.ts +3 -0
  50. package/index.js +138 -128
  51. package/package.json +1 -1
  52. package/style.css +66 -26
  53. package/types/form.type.d.ts +23 -0
@@ -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
+ };
@@ -1,4 +1,4 @@
1
- import { defineComponent as B, ref as M, computed as d, openBlock as i, createBlock as n, withCtx as o, createElementVNode as l, createVNode as a, unref as w, toDisplayString as v, withModifiers as F, setBlockTracking as C, createElementBlock as S } from "vue";
1
+ import { defineComponent as B, ref as M, computed as d, openBlock as s, createBlock as n, withCtx as o, createElementVNode as l, createVNode as a, unref as w, toDisplayString as v, withModifiers as F, setBlockTracking as C, createElementBlock as S } from "vue";
2
2
  import f from "../Button.vue.js";
3
3
  import j from "../Modal.vue.js";
4
4
  import z from "../Dropdown/Dropdown.vue.js";
@@ -21,9 +21,9 @@ import "iconify-icon-picker/style.css";
21
21
  /* empty css */
22
22
  import "../../core/config.js";
23
23
  const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }, E = { style: { "will-change": "transform", contain: "layout style" } }, I = {
24
- class: "pt-4 pb-1.5 px-3.5 min-w-[295px]",
24
+ class: "pt-3 px-2 min-w-[295px]",
25
25
  style: { "will-change": "transform", contain: "layout style" }
26
- }, ie = /* @__PURE__ */ B({
26
+ }, se = /* @__PURE__ */ B({
27
27
  __name: "ScreenFilter",
28
28
  props: {
29
29
  schema: {},
@@ -31,11 +31,11 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
31
31
  type: { default: "modal" }
32
32
  },
33
33
  emits: ["update:modelValue", "change"],
34
- setup(r, { emit: $ }) {
35
- const u = r, m = $, s = M(!1), p = d(() => u.modelValue ? Object.keys(u.modelValue).filter(
34
+ setup(i, { emit: $ }) {
35
+ const u = i, m = $, r = M(!1), p = d(() => u.modelValue ? Object.keys(u.modelValue).filter(
36
36
  (e) => u.modelValue[e] !== "" && u.modelValue[e] !== null && u.modelValue[e] !== void 0
37
37
  ).length : 0), k = (e) => {
38
- m("update:modelValue", e.values), m("change", e.values), s.value = !1;
38
+ m("update:modelValue", e.values), m("change", e.values), r.value = !1;
39
39
  }, x = () => {
40
40
  m("update:modelValue", {}), m("change", {});
41
41
  }, g = d(() => {
@@ -48,19 +48,19 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
48
48
  const e = y("vlite.screen.filter");
49
49
  return e !== "vlite.screen.filter" ? e : "Filter";
50
50
  });
51
- return (e, t) => r.type === "modal" ? (i(), n(j, {
51
+ return (e, t) => i.type === "modal" ? (s(), n(j, {
52
52
  key: 0,
53
53
  title: g.value,
54
- show: s.value,
55
- "onUpdate:show": t[3] || (t[3] = (c) => s.value = c),
54
+ show: r.value,
55
+ "onUpdate:show": t[3] || (t[3] = (c) => r.value = c),
56
56
  "max-width": "sm:max-w-md"
57
57
  }, {
58
58
  trigger: o(() => [
59
- p.value > 0 ? (i(), n(f, {
59
+ p.value > 0 ? (s(), n(f, {
60
60
  key: 0,
61
61
  variant: "secondary",
62
62
  class: "flex items-center gap-1.5 pl-3 pr-1.5 shrink-0",
63
- onClick: t[0] || (t[0] = (c) => s.value = !0)
63
+ onClick: t[0] || (t[0] = (c) => r.value = !0)
64
64
  }, {
65
65
  default: o(() => [
66
66
  a(h, {
@@ -79,10 +79,10 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
79
79
  ])
80
80
  ]),
81
81
  _: 1
82
- })) : (i(), n(f, {
82
+ })) : (s(), n(f, {
83
83
  key: 1,
84
84
  variant: "outline",
85
- onClick: t[2] || (t[2] = (c) => s.value = !0),
85
+ onClick: t[2] || (t[2] = (c) => r.value = !0),
86
86
  title: V.value,
87
87
  size: "lg",
88
88
  asIcon: "",
@@ -90,7 +90,7 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
90
90
  }, {
91
91
  default: o(() => [
92
92
  l("div", A, [
93
- t[1] || (C(-1, !0), (t[1] = (i(), S("svg", {
93
+ t[1] || (C(-1, !0), (t[1] = (s(), S("svg", {
94
94
  xmlns: "http://www.w3.org/2000/svg",
95
95
  width: "1.132em",
96
96
  height: "1.132em",
@@ -113,24 +113,24 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
113
113
  default: o(() => [
114
114
  l("div", E, [
115
115
  a(w(O), {
116
- schema: r.schema,
117
- values: r.modelValue,
116
+ schema: i.schema,
117
+ values: i.modelValue,
118
118
  "submit-text": b.value,
119
119
  onOnSubmit: k
120
120
  }, null, 8, ["schema", "values", "submit-text"])
121
121
  ])
122
122
  ]),
123
123
  _: 1
124
- }, 8, ["title", "show"])) : (i(), n(w(z), {
124
+ }, 8, ["title", "show"])) : (s(), n(w(z), {
125
125
  key: 1,
126
- isOpen: s.value,
127
- "onUpdate:isOpen": t[4] || (t[4] = (c) => s.value = c),
126
+ isOpen: r.value,
127
+ "onUpdate:isOpen": t[4] || (t[4] = (c) => r.value = c),
128
128
  "close-on-select": !1,
129
129
  position: "bottom-end",
130
130
  class: "w-auto"
131
131
  }, {
132
132
  trigger: o(() => [
133
- p.value > 0 ? (i(), n(f, {
133
+ p.value > 0 ? (s(), n(f, {
134
134
  key: 0,
135
135
  variant: "secondary",
136
136
  class: "flex items-center gap-1.5 pl-3 pr-1.5 shrink-0 bg-gray-150! hover:bg-gray-100!",
@@ -153,7 +153,7 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
153
153
  ])
154
154
  ]),
155
155
  _: 1
156
- })) : (i(), n(f, {
156
+ })) : (s(), n(f, {
157
157
  key: 1,
158
158
  variant: "outline",
159
159
  icon: "hugeicons:filter-add",
@@ -165,10 +165,10 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
165
165
  default: o(() => [
166
166
  l("div", I, [
167
167
  a(w(O), {
168
- schema: r.schema,
169
- values: r.modelValue,
168
+ schema: i.schema,
169
+ values: i.modelValue,
170
170
  "submit-text": b.value,
171
- "footer-class": "mt-0.5! border-0!",
171
+ "footer-class": "mt-0.5! border-0! border-transparent! rounded-none! bg-transparent!",
172
172
  "submit-props": {
173
173
  size: "sm",
174
174
  class: "w-full",
@@ -183,5 +183,5 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
183
183
  }
184
184
  });
185
185
  export {
186
- ie as default
186
+ se as default
187
187
  };
@@ -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;