vlite3 1.4.30 → 1.4.32

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 (79) hide show
  1. package/components/Accordion/Accordion.vue.js +19 -16
  2. package/components/Accordion/AccordionContent.vue.js +2 -2
  3. package/components/Accordion/AccordionItem.vue.js +38 -36
  4. package/components/CategoryManager/CategoryManager.vue2.js +3 -2
  5. package/components/Chart/GanttChart.vue.d.ts +13 -1
  6. package/components/Chart/GanttChart.vue.js +2 -2
  7. package/components/Chart/GanttChart.vue2.js +1185 -607
  8. package/components/Chart/GanttChartDateUtils.d.ts +38 -0
  9. package/components/Chart/GanttChartDateUtils.js +79 -0
  10. package/components/Chart/GanttChartDependencyUtils.d.ts +92 -0
  11. package/components/Chart/GanttChartDependencyUtils.js +113 -0
  12. package/components/Chart/GanttChartResizePreviewUtils.d.ts +52 -0
  13. package/components/Chart/GanttChartResizePreviewUtils.js +53 -0
  14. package/components/Chart/GanttChartTooltipUtils.d.ts +41 -0
  15. package/components/Chart/GanttChartTooltipUtils.js +63 -0
  16. package/components/Chart/index.d.ts +3 -1
  17. package/components/Chart/types.d.ts +76 -1
  18. package/components/Chart/types.js +8 -0
  19. package/components/FilePicker/FilePickerDropzone.vue.js +1 -1
  20. package/components/FilePicker/index.vue.js +2 -4
  21. package/components/Form/AccordionView.vue2.js +5 -2
  22. package/components/Form/AccordionView.vue3.js +250 -0
  23. package/components/Form/Form.vue.d.ts +0 -2
  24. package/components/Form/Form.vue.js +1 -1
  25. package/components/Form/Form.vue2.js +415 -354
  26. package/components/Form/FormField.vue.js +175 -196
  27. package/components/Form/FormFields.vue.js +1 -1
  28. package/components/Form/FormFields.vue2.js +60 -60
  29. package/components/Form/FormSkeleton.vue.js +50 -35
  30. package/components/Form/TableView.vue.js +59 -43
  31. package/components/Form/composables/useForm.js +159 -148
  32. package/components/Form/index.vue2.js +8 -8
  33. package/components/Form/utils/form.utils.d.ts +2 -0
  34. package/components/Form/utils/form.utils.js +17 -13
  35. package/components/GoogleMap.vue.d.ts +1 -1
  36. package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +189 -0
  37. package/components/PanZoomViewport/PanZoomViewport.vue.js +7 -0
  38. package/components/PanZoomViewport/PanZoomViewport.vue2.js +536 -0
  39. package/components/PanZoomViewport/index.d.ts +2 -0
  40. package/components/PanZoomViewport/types.d.ts +121 -0
  41. package/components/ScaleGenerator/ScaleGenerator.vue.d.ts +3 -0
  42. package/components/ScaleGenerator/ScaleGenerator.vue.js +5 -108
  43. package/components/ScaleGenerator/ScaleGenerator.vue2.js +143 -2
  44. package/components/ScaleGenerator/types.d.ts +2 -0
  45. package/components/Screen/ScreenFilter.vue.js +18 -17
  46. package/components/SeoProvider/SeoProvider.vue.d.ts +4 -1
  47. package/components/SeoProvider/SeoProvider.vue.js +39 -33
  48. package/components/SeoProvider/domAdapter.d.ts +1 -4
  49. package/components/SeoProvider/domAdapter.js +71 -58
  50. package/components/SeoProvider/index.d.ts +5 -2
  51. package/components/SeoProvider/normalizeSeo.d.ts +10 -49
  52. package/components/SeoProvider/normalizeSeo.js +246 -182
  53. package/components/SeoProvider/plainText.d.ts +8 -0
  54. package/components/SeoProvider/plainText.js +117 -0
  55. package/components/SeoProvider/seoUrl.d.ts +13 -0
  56. package/components/SeoProvider/seoUrl.js +25 -0
  57. package/components/SeoProvider/structuredData.d.ts +100 -0
  58. package/components/SeoProvider/structuredData.js +33 -0
  59. package/components/SeoProvider/types.d.ts +47 -109
  60. package/components/Tabes/Tabes.vue.d.ts +10 -1
  61. package/components/Tabes/Tabes.vue.js +1 -1
  62. package/components/Tabes/Tabes.vue2.js +271 -170
  63. package/components/Tabes/TabesMarkerGeometry.d.ts +34 -0
  64. package/components/Tabes/TabesMarkerGeometry.js +21 -0
  65. package/components/Tabes/tabes.utils.d.ts +14 -0
  66. package/components/Tabes/tabes.utils.js +26 -0
  67. package/components/Tabes/types.d.ts +32 -0
  68. package/components/ThemeProvider/ThemeProvider.vue.d.ts +2 -0
  69. package/components/ThemeProvider/ThemeProvider.vue.js +29 -23
  70. package/components/ThemeProvider/index.d.ts +1 -1
  71. package/components/ThemeProvider/themeVars.d.ts +9 -13
  72. package/components/ThemeProvider/themeVars.js +173 -125
  73. package/components/ThemeProvider/types.d.ts +10 -0
  74. package/components/index.d.ts +2 -1
  75. package/index.d.ts +1 -0
  76. package/index.js +415 -387
  77. package/package.json +3 -2
  78. package/style.css +1 -1
  79. package/components/Form/AccordionView.vue.js +0 -222
@@ -1,6 +1,6 @@
1
- import { defineComponent as C, shallowRef as y, watch as u, computed as b, openBlock as f, createElementBlock as m, normalizeClass as z, renderSlot as s, Fragment as B, renderList as $, withMemo as k, createVNode as x, createSlots as M, withCtx as v, mergeProps as g } from "vue";
1
+ import { defineComponent as I, shallowRef as y, watch as r, computed as b, openBlock as f, createElementBlock as m, normalizeClass as z, renderSlot as o, Fragment as B, renderList as $, withMemo as k, createVNode as x, createSlots as M, withCtx as v, mergeProps as g } from "vue";
2
2
  import A from "./AccordionItem.vue.js";
3
- const E = /* @__PURE__ */ C({
3
+ const E = /* @__PURE__ */ I({
4
4
  __name: "Accordion",
5
5
  props: {
6
6
  modelValue: {},
@@ -24,35 +24,35 @@ const E = /* @__PURE__ */ C({
24
24
  emits: ["update:modelValue", "change"],
25
25
  setup(a, { emit: h }) {
26
26
  const l = a, c = h, t = y([]), d = (e) => Array.isArray(e) ? e : typeof e == "string" && e ? [e] : [];
27
- u(
27
+ r(
28
28
  () => l.modelValue,
29
29
  (e) => {
30
30
  t.value = d(e);
31
31
  },
32
32
  { immediate: !0 }
33
- ), u(
33
+ ), r(
34
34
  () => l.defaultValue,
35
35
  (e) => {
36
36
  !l.modelValue && e && (t.value = d(e));
37
37
  },
38
38
  { immediate: !0 }
39
39
  );
40
- const r = (e) => {
40
+ const u = (e) => {
41
41
  if (l.disabled) return;
42
42
  const i = t.value.includes(e);
43
43
  l.allowMultiple ? i ? t.value = t.value.filter((n) => n !== e) : t.value = [...t.value, e] : i ? t.value = [] : t.value = [e], V();
44
44
  }, V = () => {
45
45
  const e = l.allowMultiple ? t.value : t.value[0] || "";
46
46
  c("update:modelValue", e), c("change", e);
47
- }, w = b(() => {
47
+ }, C = b(() => {
48
48
  const e = ["w-full", l.class];
49
49
  return l.attached && (e.push("rounded-lg overflow-hidden"), (l.variant === "outline" || l.variant === "default" || l.variant === "solid") && e.push("border")), e.join(" ");
50
50
  });
51
51
  return (e, i) => (f(), m("div", {
52
- class: z(w.value)
52
+ class: z(C.value)
53
53
  }, [
54
- s(e.$slots, "default", {}, () => [
55
- (f(!0), m(B, null, $(a.items, (n, I) => k([
54
+ o(e.$slots, "default", {}, () => [
55
+ (f(!0), m(B, null, $(a.items, (n, w) => k([
56
56
  n,
57
57
  t.value.includes(n.id),
58
58
  a.variant,
@@ -63,7 +63,10 @@ const E = /* @__PURE__ */ C({
63
63
  a.openIcon,
64
64
  a.closeIcon,
65
65
  a.iconVariant,
66
- a.activeIconVariant
66
+ a.activeIconVariant,
67
+ a.triggerClass,
68
+ a.contentClass,
69
+ a.itemClass
67
70
  ], () => x(A, {
68
71
  item: n,
69
72
  "is-open": t.value.includes(n.id),
@@ -71,7 +74,7 @@ const E = /* @__PURE__ */ C({
71
74
  size: a.size,
72
75
  attached: a.attached,
73
76
  disabled: a.disabled,
74
- index: I + 1,
77
+ index: w + 1,
75
78
  "show-index": a.showIndex,
76
79
  "open-icon": a.openIcon,
77
80
  "close-icon": a.closeIcon,
@@ -80,19 +83,19 @@ const E = /* @__PURE__ */ C({
80
83
  "trigger-class": a.triggerClass,
81
84
  "content-class": a.contentClass,
82
85
  "item-class": a.itemClass,
83
- onToggle: r
86
+ onToggle: u
84
87
  }, M({ _: 2 }, [
85
88
  e.$slots.trigger ? {
86
89
  name: "trigger",
87
- fn: v((o) => [
88
- s(e.$slots, "trigger", g({ ref_for: !0 }, o))
90
+ fn: v((s) => [
91
+ o(e.$slots, "trigger", g({ ref_for: !0 }, s))
89
92
  ]),
90
93
  key: "0"
91
94
  } : void 0,
92
95
  e.$slots.content ? {
93
96
  name: "content",
94
- fn: v((o) => [
95
- s(e.$slots, "content", g({ ref_for: !0 }, o, { close: r }))
97
+ fn: v((s) => [
98
+ o(e.$slots, "content", g({ ref_for: !0 }, s, { close: u }))
96
99
  ]),
97
100
  key: "1"
98
101
  } : void 0
@@ -1,7 +1,7 @@
1
1
  import o from "./AccordionContent.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0075dffb"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d1f2e7f8"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as B, computed as r, openBlock as c, createElementBlock as m, normalizeClass as u, renderSlot as f, createVNode as p, withCtx as x, createElementVNode as V, toDisplayString as v, createCommentVNode as $, withDirectives as O, createBlock as T, resolveDynamicComponent as A, vShow as D } from "vue";
2
- import P from "./AccordionTrigger.vue.js";
3
- import N from "./AccordionContent.vue.js";
4
- import { $t as h } from "../../utils/i18n.js";
5
- const S = { class: "font-medium" }, E = {
1
+ import { defineComponent as V, computed as d, markRaw as O, openBlock as c, createElementBlock as m, normalizeClass as u, renderSlot as p, createVNode as v, withCtx as x, createElementVNode as T, toDisplayString as $, createCommentVNode as h, withDirectives as A, createBlock as D, resolveDynamicComponent as P, vShow as N } from "vue";
2
+ import S from "./AccordionTrigger.vue.js";
3
+ import E from "./AccordionContent.vue.js";
4
+ import { $t as C } from "../../utils/i18n.js";
5
+ const H = { class: "font-medium" }, L = {
6
6
  key: 0,
7
7
  class: "ml-2 text-sm text-muted-foreground font-normal"
8
- }, H = ["innerHTML"], G = /* @__PURE__ */ B({
8
+ }, M = ["innerHTML"], J = /* @__PURE__ */ V({
9
9
  __name: "AccordionItem",
10
10
  props: {
11
11
  item: {},
@@ -26,49 +26,51 @@ const S = { class: "font-medium" }, E = {
26
26
  class: { default: "" }
27
27
  },
28
28
  emits: ["toggle"],
29
- setup(e, { emit: C }) {
30
- const n = e, y = C, l = () => {
31
- n.item.disabled || n.disabled || y("toggle", n.item.id);
32
- }, I = r(() => {
33
- const { variant: t, attached: a } = n;
34
- return a ? "transition-all first:rounded-t-lg last:rounded-b-lg border-b last:border-0" : t === "solid" ? "mb-2 border rounded-lg overflow-hidden transition-all duration-200" : t === "outline" ? "border mb-2 rounded-lg overflow-hidden" : t === "separated" ? "border mb-4 rounded-lg overflow-hidden" : t === "ghost" ? "border-none bg-transparent mb-1 rounded-lg overflow-hidden" : "border-b";
35
- }), g = r(() => {
36
- const { variant: t, size: a, isOpen: d } = n, i = n.triggerClass || "", o = "transition-all duration-200 ease-in-out", s = {
29
+ setup(e, { emit: y }) {
30
+ const t = e, w = y, l = () => {
31
+ t.item.disabled || t.disabled || w("toggle", t.item.id);
32
+ }, I = d(() => {
33
+ const { variant: n, attached: a } = t;
34
+ return a ? "transition-all first:rounded-t-lg last:rounded-b-lg border-b last:border-0" : n === "solid" ? "mb-2 border rounded-lg overflow-hidden transition-all duration-200" : n === "outline" ? "border mb-2 rounded-lg overflow-hidden" : n === "separated" ? "border mb-4 rounded-lg overflow-hidden" : n === "ghost" ? "border-none bg-transparent mb-1 rounded-lg overflow-hidden" : "border-b";
35
+ }), g = d(() => {
36
+ const { variant: n, size: a, isOpen: r } = t, o = t.triggerClass || "", i = "transition-all duration-200 ease-in-out", s = {
37
37
  sm: "px-3.5 py-2.5 text-sm",
38
38
  md: "px-4 py-3 text-base",
39
39
  lg: "px-5 py-4 text-lg"
40
40
  }[a];
41
- return t === "solid" ? `${i} ${s} bg-card ${o}` : t === "ghost" ? d ? `${i} ${s} bg-muted font-medium ${o}` : `${i} ${s} hover:bg-muted/20 bg-transparent ${o}` : t === "outline" || t === "separated" ? d ? `${i} ${s} bg-muted/5 border-b border-border ${o}` : `${i} ${s} hover:bg-muted/5 bg-transparent ${o}` : !n.attached && t === "default" ? `${i} ${{
41
+ return n === "solid" ? `${o} ${s} bg-card ${i}` : n === "ghost" ? r ? `${o} ${s} bg-muted font-medium ${i}` : `${o} ${s} hover:bg-muted/20 bg-transparent ${i}` : n === "outline" || n === "separated" ? r ? `${o} ${s} bg-muted/5 border-b border-border ${i}` : `${o} ${s} hover:bg-muted/5 bg-transparent ${i}` : !t.attached && n === "default" ? `${o} ${{
42
42
  sm: "py-2 text-base",
43
43
  md: "py-3 text-base",
44
44
  lg: "py-4 text-lg"
45
- }[a]} px-0 hover:no-underline ${o}` : `${i} ${s} hover:bg-muted/5 ${o}`;
46
- }), w = r(() => {
47
- const { variant: t, size: a, attached: d } = n, i = n.contentClass || "", o = {
45
+ }[a]} px-0 hover:no-underline ${i}` : `${o} ${s} hover:bg-muted/5 ${i}`;
46
+ }), k = d(() => {
47
+ const { variant: n, size: a, attached: r } = t, o = t.contentClass || "", i = {
48
48
  sm: "px-3.5 pb-3.5 pt-2.5 text-sm",
49
49
  md: "px-4 pb-4 pt-4 text-sm",
50
50
  lg: "px-5 pb-5 pt-5 text-base"
51
51
  };
52
- return t === "solid" || t === "outline" || t === "separated" || t === "ghost" || d ? `${i} ${o[a]}` : `${i} ${{
52
+ return n === "solid" || n === "outline" || n === "separated" || n === "ghost" || r ? `${o} ${i[a]}` : `${o} ${{
53
53
  sm: "pb-3.5 pt-2.5 text-sm",
54
54
  md: "pb-4 pt-4 text-sm",
55
55
  lg: "pb-5 pt-5 text-base"
56
56
  }[a]} px-0`;
57
- }), k = r(
58
- () => n.item.titleI18n ? h(n.item.titleI18n) : n.item.title
59
- ), b = r(
60
- () => n.item.descriptionI18n ? h(n.item.descriptionI18n) : n.item.description
57
+ }), B = d(
58
+ () => t.item.titleI18n ? C(t.item.titleI18n) : t.item.title
59
+ ), b = d(
60
+ () => t.item.descriptionI18n ? C(t.item.descriptionI18n) : t.item.description
61
+ ), f = d(
62
+ () => t.item.bodyComponent ? O(t.item.bodyComponent) : null
61
63
  );
62
- return (t, a) => (c(), m("div", {
63
- class: u([I.value, n.class, n.itemClass])
64
+ return (n, a) => (c(), m("div", {
65
+ class: u([I.value, t.class, t.itemClass])
64
66
  }, [
65
- f(t.$slots, "trigger", {
67
+ p(n.$slots, "trigger", {
66
68
  item: e.item,
67
69
  open: e.isOpen,
68
70
  toggle: l,
69
71
  triggerClass: g.value
70
72
  }, () => [
71
- p(P, {
73
+ v(S, {
72
74
  open: e.isOpen,
73
75
  size: e.size,
74
76
  disabled: e.item.disabled || e.disabled,
@@ -83,21 +85,21 @@ const S = { class: "font-medium" }, E = {
83
85
  onClick: l
84
86
  }, {
85
87
  default: x(() => [
86
- V("span", S, v(k.value), 1),
87
- b.value ? (c(), m("span", E, v(b.value), 1)) : $("", !0)
88
+ T("span", H, $(B.value), 1),
89
+ b.value ? (c(), m("span", L, $(b.value), 1)) : h("", !0)
88
90
  ]),
89
91
  _: 1
90
92
  }, 8, ["open", "size", "disabled", "icon", "index", "show-index", "open-icon", "close-icon", "icon-variant", "active-icon-variant", "class"])
91
93
  ]),
92
- O(p(N, {
93
- class: u(w.value)
94
+ A(v(E, {
95
+ class: u(k.value)
94
96
  }, {
95
97
  default: x(() => [
96
- f(t.$slots, "content", {
98
+ p(n.$slots, "content", {
97
99
  item: e.item,
98
100
  close: l
99
101
  }, () => [
100
- e.item.bodyComponent ? (c(), T(A(e.item.bodyComponent), {
102
+ f.value ? (c(), D(P(f.value), {
101
103
  key: 0,
102
104
  item: e.item,
103
105
  close: l
@@ -105,16 +107,16 @@ const S = { class: "font-medium" }, E = {
105
107
  key: 1,
106
108
  class: "text-muted-foreground leading-relaxed",
107
109
  innerHTML: e.item.content
108
- }, null, 8, H)) : $("", !0)
110
+ }, null, 8, M)) : h("", !0)
109
111
  ])
110
112
  ]),
111
113
  _: 3
112
114
  }, 8, ["class"]), [
113
- [D, e.isOpen]
115
+ [N, e.isOpen]
114
116
  ])
115
117
  ], 2));
116
118
  }
117
119
  });
118
120
  export {
119
- G as default
121
+ J as default
120
122
  };
@@ -21,6 +21,7 @@ import "@vueuse/core";
21
21
  /* empty css */
22
22
  import qe from "../IconPicker.vue.js";
23
23
  /* empty css */
24
+ /* empty css */
24
25
  /* empty css */
25
26
  /* empty css */
26
27
  /* empty css */
@@ -46,7 +47,7 @@ const Ue = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
46
47
  }, Le = {
47
48
  key: 0,
48
49
  class: "absolute inset-0 z-10 flex items-center justify-center rounded-xl bg-background/60 backdrop-blur-[1px] transition-opacity"
49
- }, We = { class: "flex items-center gap-2 text-sm text-muted-foreground" }, kt = /* @__PURE__ */ Me({
50
+ }, We = { class: "flex items-center gap-2 text-sm text-muted-foreground" }, Pt = /* @__PURE__ */ Me({
50
51
  __name: "CategoryManager",
51
52
  props: {
52
53
  modelValue: { default: () => [] },
@@ -495,5 +496,5 @@ const Ue = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
495
496
  }
496
497
  });
497
498
  export {
498
- kt as default
499
+ Pt as default
499
500
  };
@@ -1,4 +1,4 @@
1
- import { GanttTask, GanttViewMode } from './types';
1
+ import { GanttDependencyCreatePayload, GanttDependencyDeletePayload, GanttTask, GanttViewMode } from './types';
2
2
  export interface GanttChartProps {
3
3
  tasks: GanttTask[];
4
4
  viewMode?: GanttViewMode;
@@ -19,6 +19,12 @@ export interface GanttChartProps {
19
19
  todayColor?: string;
20
20
  locale?: string;
21
21
  draggable?: boolean;
22
+ /**
23
+ * Opt-in dependency editing. When true, hovered/focused tasks show a `+`
24
+ * connector that can be dragged (or operated via keyboard) to request a
25
+ * new dependency. Independent of `showDependencies`.
26
+ */
27
+ editableDependencies?: boolean;
22
28
  /** When moving a task, also shift all tasks that depend on it (recursively) */
23
29
  cascadeDependencies?: boolean;
24
30
  zoom?: boolean;
@@ -30,6 +36,8 @@ declare const _default: import('vue').DefineComponent<GanttChartProps, {}, {}, {
30
36
  start: Date;
31
37
  end: Date;
32
38
  }) => any;
39
+ "dependency-create": (payload: GanttDependencyCreatePayload) => any;
40
+ "dependency-delete": (payload: GanttDependencyDeletePayload) => any;
33
41
  }, string, import('vue').PublicProps, Readonly<GanttChartProps> & Readonly<{
34
42
  "onTask-click"?: (task: GanttTask) => any;
35
43
  "onTask-hover"?: (task: GanttTask) => any;
@@ -37,6 +45,8 @@ declare const _default: import('vue').DefineComponent<GanttChartProps, {}, {}, {
37
45
  start: Date;
38
46
  end: Date;
39
47
  }) => any;
48
+ "onDependency-create"?: (payload: GanttDependencyCreatePayload) => any;
49
+ "onDependency-delete"?: (payload: GanttDependencyDeletePayload) => any;
40
50
  }>, {
41
51
  animate: boolean;
42
52
  height: number;
@@ -56,12 +66,14 @@ declare const _default: import('vue').DefineComponent<GanttChartProps, {}, {}, {
56
66
  showTodayLine: boolean;
57
67
  todayColor: string;
58
68
  locale: string;
69
+ editableDependencies: boolean;
59
70
  cascadeDependencies: boolean;
60
71
  zoom: boolean;
61
72
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
62
73
  containerRef: HTMLDivElement;
63
74
  sidebarRef: HTMLDivElement;
64
75
  timelineRef: HTMLDivElement;
76
+ timelineSvgRef: SVGSVGElement;
65
77
  dragLabelRef: SVGGElement;
66
78
  }, HTMLDivElement>;
67
79
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import t from "./GanttChart.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ebb84e3d"]]);
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-d83427d6"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };