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
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] **MultiSelect**
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**
@@ -12,10 +12,10 @@ declare const _default: import('vue').DefineComponent<BarcodeProps, {}, {}, {},
12
12
  width: number;
13
13
  height: number;
14
14
  format: string;
15
+ background: string;
15
16
  displayValue: boolean;
16
17
  margin: number;
17
18
  lineColor: string;
18
- background: string;
19
19
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
20
20
  barcodeRef: SVGSVGElement;
21
21
  }, HTMLDivElement>;
@@ -1,8 +1,8 @@
1
- import { defineComponent as z, computed as l, useSlots as k, withDirectives as $, openBlock as o, createElementBlock as g, 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 u from "./Icon.vue.js";
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__ */ z({
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), v = k(), i = l(
26
- () => t?.asIcon || t.icon && !r.value && !v.default
27
- ), x = l(() => {
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/20",
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-destructive text-destructive-foreground hover:bg-destructive/90",
33
- "danger-light": "bg-destructive/10 text-destructive hover:bg-destructive/20",
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/20",
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/20",
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(), g("button", {
100
+ return (n, a) => $((o(), u("button", {
101
101
  type: e.type,
102
- class: s([x.value, "cursor-pointer"]),
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(u, {
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(u, {
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(), g("span", {
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(u, {
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;
@@ -0,0 +1,7 @@
1
+ import t from "./GanttChart.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-91cc2885"]]);
5
+ export {
6
+ m as default
7
+ };