vlite3 1.4.31 → 1.4.33

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 (102) 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 +4 -3
  5. package/components/CategoryManager/CategoryNode.vue.js +30 -30
  6. package/components/CategoryMenu/CategoryMenu.vue.js +9 -11
  7. package/components/Chart/GanttChart.vue.d.ts +18 -2
  8. package/components/Chart/GanttChart.vue.js +1 -1
  9. package/components/Chart/GanttChart.vue2.js +1347 -604
  10. package/components/Chart/GanttChartConnectorRouting.d.ts +83 -0
  11. package/components/Chart/GanttChartConnectorRouting.js +405 -0
  12. package/components/Chart/GanttChartDateUtils.d.ts +38 -0
  13. package/components/Chart/GanttChartDateUtils.js +79 -0
  14. package/components/Chart/GanttChartDependencyUtils.d.ts +92 -0
  15. package/components/Chart/GanttChartDependencyUtils.js +109 -0
  16. package/components/Chart/GanttChartResizePreviewUtils.d.ts +52 -0
  17. package/components/Chart/GanttChartResizePreviewUtils.js +53 -0
  18. package/components/Chart/GanttChartTooltipUtils.d.ts +41 -0
  19. package/components/Chart/GanttChartTooltipUtils.js +63 -0
  20. package/components/Chart/index.d.ts +3 -1
  21. package/components/Chart/types.d.ts +92 -2
  22. package/components/Chart/types.js +8 -0
  23. package/components/ColorPicker/ColorIro.vue2.js +155 -0
  24. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  25. package/components/ColorPicker/ColorPicker.vue.d.ts +5 -0
  26. package/components/ColorPicker/ColorPicker.vue.js +111 -65
  27. package/components/ColorPicker/constants.d.ts +2 -0
  28. package/components/ColorPicker/constants.js +4 -0
  29. package/components/ColorPicker/index.d.ts +1 -0
  30. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  31. package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
  32. package/components/Dropdown/Dropdown.vue.js +100 -97
  33. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  34. package/components/Form/AccordionView.vue.js +5 -220
  35. package/components/Form/AccordionView.vue3.js +250 -0
  36. package/components/Form/Form.vue.js +2 -2
  37. package/components/Form/Form.vue2.js +309 -280
  38. package/components/Form/FormField.vue.js +177 -197
  39. package/components/Form/FormFields.vue.js +1 -1
  40. package/components/Form/FormFields.vue2.js +60 -60
  41. package/components/Form/FormSkeleton.vue.js +50 -35
  42. package/components/Form/TableView.vue.js +59 -43
  43. package/components/Form/composables/useForm.js +159 -148
  44. package/components/Form/index.vue2.js +7 -7
  45. package/components/Form/utils/form.utils.d.ts +2 -0
  46. package/components/Form/utils/form.utils.js +17 -13
  47. package/components/GoogleMap.vue.d.ts +1 -1
  48. package/components/Kanban/Kanban.vue.d.ts +16 -2
  49. package/components/Kanban/Kanban.vue.js +2 -2
  50. package/components/Kanban/Kanban.vue2.js +150 -86
  51. package/components/Kanban/types.d.ts +37 -0
  52. package/components/NavbarCommandPalette.vue.js +1 -1
  53. package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +189 -0
  54. package/components/PanZoomViewport/PanZoomViewport.vue.js +7 -0
  55. package/components/PanZoomViewport/PanZoomViewport.vue2.js +536 -0
  56. package/components/PanZoomViewport/index.d.ts +2 -0
  57. package/components/PanZoomViewport/types.d.ts +121 -0
  58. package/components/ScaleGenerator/ScaleGenerator.vue.d.ts +3 -0
  59. package/components/ScaleGenerator/ScaleGenerator.vue.js +5 -108
  60. package/components/ScaleGenerator/ScaleGenerator.vue2.js +143 -2
  61. package/components/ScaleGenerator/types.d.ts +2 -0
  62. package/components/Screen/ScreenFilter.vue.js +19 -18
  63. package/components/SeoProvider/SeoProvider.vue.d.ts +4 -1
  64. package/components/SeoProvider/SeoProvider.vue.js +39 -33
  65. package/components/SeoProvider/domAdapter.d.ts +1 -4
  66. package/components/SeoProvider/domAdapter.js +71 -58
  67. package/components/SeoProvider/index.d.ts +5 -2
  68. package/components/SeoProvider/normalizeSeo.d.ts +10 -49
  69. package/components/SeoProvider/normalizeSeo.js +246 -182
  70. package/components/SeoProvider/plainText.d.ts +8 -0
  71. package/components/SeoProvider/plainText.js +117 -0
  72. package/components/SeoProvider/seoUrl.d.ts +13 -0
  73. package/components/SeoProvider/seoUrl.js +25 -0
  74. package/components/SeoProvider/structuredData.d.ts +100 -0
  75. package/components/SeoProvider/structuredData.js +33 -0
  76. package/components/SeoProvider/types.d.ts +47 -109
  77. package/components/Tabes/Tabes.vue.js +1 -1
  78. package/components/Tabes/Tabes.vue2.js +215 -193
  79. package/components/Tabes/TabesMarkerGeometry.d.ts +34 -0
  80. package/components/Tabes/TabesMarkerGeometry.js +21 -0
  81. package/components/ThemeProvider/ThemeProvider.vue.d.ts +2 -0
  82. package/components/ThemeProvider/ThemeProvider.vue.js +29 -23
  83. package/components/ThemeProvider/index.d.ts +1 -1
  84. package/components/ThemeProvider/themeVars.d.ts +9 -13
  85. package/components/ThemeProvider/themeVars.js +173 -125
  86. package/components/ThemeProvider/types.d.ts +10 -0
  87. package/components/ToastNotification.vue.js +1 -1
  88. package/components/ToastNotification.vue2.js +3 -3
  89. package/components/index.d.ts +3 -2
  90. package/composables/useKeyStroke.d.ts +18 -0
  91. package/composables/useKeyStroke.js +103 -77
  92. package/composables/useTheme.js +1 -1
  93. package/index.d.ts +2 -0
  94. package/index.js +380 -350
  95. package/package.json +12 -4
  96. package/style.css +1 -1
  97. package/utils/environment.d.ts +29 -0
  98. package/utils/environment.js +4 -0
  99. package/utils/functions.js +14 -13
  100. package/components/ColorPicker/ColorIro.vue.js +0 -141
  101. package/components/Form/AccordionView.vue2.js +0 -4
  102. /package/components/Dropdown/{DropdownMenu.vue2.js → DropdownMenu.vue3.js} +0 -0
@@ -1,22 +1,26 @@
1
- import { defineComponent as B, ref as v, watch as u, openBlock as t, createBlock as c, unref as g, withCtx as m, createElementBlock as i, createVNode as f, createCommentVNode as p, createElementVNode as n, renderSlot as O, mergeProps as E, normalizeStyle as h, toDisplayString as P, normalizeClass as S } from "vue";
2
- import D from "../Dropdown/Dropdown.vue.js";
3
- import "@iconify/vue";
4
- import y from "../Input.vue.js";
1
+ import { defineComponent as S, ref as k, computed as w, watch as v, openBlock as o, createBlock as c, unref as V, withCtx as h, createElementBlock as s, createVNode as u, createCommentVNode as n, renderSlot as j, mergeProps as D, createElementVNode as m, normalizeStyle as C, toDisplayString as L, normalizeClass as N } from "vue";
2
+ import U from "../Dropdown/Dropdown.vue.js";
3
+ import z from "../Icon.vue.js";
4
+ import R from "../Input.vue.js";
5
5
  /* empty css */
6
6
  import "../../core/config.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
- import k from "../Button.vue.js";
10
- import N from "./ColorIro.vue.js";
11
- /* empty css */
12
- import { useEyeDropper as j } from "@vueuse/core";
13
- const I = ["disabled", "aria-label"], U = { class: "min-w-0 truncate text-foreground" }, A = { class: "absolute left-2.5 top-1/2 -translate-y-1/2 flex items-center justify-center z-20 pointer-events-none" }, F = {
9
+ import y from "../Button.vue.js";
10
+ import A from "./ColorIro.vue2.js";
11
+ /* empty css */
12
+ import { useEyeDropper as T } from "@vueuse/core";
13
+ import { COLOR_PICKER_RESET_VALUE as g } from "./constants.js";
14
+ const F = ["disabled", "aria-label"], G = { class: "min-w-0 flex-1 truncate text-foreground" }, K = { class: "absolute left-2.5 top-1/2 -translate-y-1/2 flex items-center justify-center z-20 pointer-events-none" }, q = {
14
15
  key: 0,
15
16
  class: "p-1 w-max flex flex-col justify-center"
16
- }, G = {
17
+ }, J = {
17
18
  key: 0,
18
19
  class: "flex items-center gap-1.5 w-full"
19
- }, R = { class: "flex-1 w-0 min-w-0" }, _ = /* @__PURE__ */ B({
20
+ }, M = {
21
+ key: 1,
22
+ class: "flex-1 w-0 min-w-0"
23
+ }, ne = /* @__PURE__ */ S({
20
24
  __name: "ColorPicker",
21
25
  props: {
22
26
  modelValue: { default: "#000000" },
@@ -27,45 +31,51 @@ const I = ["disabled", "aria-label"], U = { class: "min-w-0 truncate text-foregr
27
31
  position: { default: "bottom" },
28
32
  btnProps: {},
29
33
  showInput: { type: Boolean, default: !0 },
30
- trigger: { default: "input" }
34
+ trigger: { default: "input" },
35
+ allowReset: { type: Boolean, default: !1 }
31
36
  },
32
- emits: ["update:modelValue", "change"],
33
- setup(e, { emit: x }) {
34
- const r = e, b = x, d = v(!1), l = v(r.modelValue || "#000000"), { isSupported: w, open: V, sRGBHex: z } = j();
35
- u(z, (o) => {
36
- o && (l.value = o);
37
+ emits: ["update:modelValue", "change", "reset"],
38
+ setup(e, { emit: $ }) {
39
+ const l = e, f = $, p = k(!1), a = k(l.modelValue || "#000000"), x = w(() => {
40
+ const t = (l.modelValue || "").toLowerCase();
41
+ return !t || t === g;
42
+ }), d = w(() => l.allowReset && !l.disabled && !x.value), { isSupported: E, open: O, sRGBHex: B } = T();
43
+ v(B, (t) => {
44
+ t && (a.value = t);
37
45
  });
38
- const C = async () => {
46
+ const P = async () => {
39
47
  try {
40
- await V();
41
- } catch (o) {
42
- console.error("Error opening eyedropper:", o);
48
+ await O();
49
+ } catch (t) {
50
+ console.error("Error opening eyedropper:", t);
43
51
  }
44
52
  };
45
- u(
46
- () => r.modelValue,
47
- (o) => {
48
- o && o !== l.value && (l.value = o);
53
+ v(
54
+ () => l.modelValue,
55
+ (t) => {
56
+ t && t !== a.value && (a.value = t);
49
57
  }
50
- ), u(l, (o) => {
51
- /^#([0-9A-F]{3,8})$/i.test(o) && o !== r.modelValue && (b("update:modelValue", o), b("change", o));
58
+ ), v(a, (t) => {
59
+ /^#([0-9A-F]{3,8})$/i.test(t) && t !== l.modelValue && (f("update:modelValue", t), f("change", t));
52
60
  });
53
- const $ = (o) => {
54
- l.value = o;
61
+ const I = (t) => {
62
+ a.value = t;
63
+ }, b = (t) => {
64
+ t?.stopPropagation(), t?.preventDefault(), !(!l.allowReset || l.disabled) && (x.value || (a.value = g, f("reset", g)));
55
65
  };
56
- return (o, a) => (t(), c(g(D), {
66
+ return (t, r) => (o(), c(V(U), {
57
67
  disabled: e.disabled,
58
68
  class: "w-full",
59
69
  position: e.position,
60
70
  offset: [0, 8],
61
71
  searchable: !1,
62
72
  "close-on-select": !1,
63
- onOnOpen: a[1] || (a[1] = (s) => d.value = !0),
64
- onOnClose: a[2] || (a[2] = (s) => d.value = !1)
73
+ onOnOpen: r[1] || (r[1] = (i) => p.value = !0),
74
+ onOnClose: r[2] || (r[2] = (i) => p.value = !1)
65
75
  }, {
66
- trigger: m(({ isOpen: s }) => [
67
- O(o.$slots, "trigger", { isOpen: s }, () => [
68
- e.trigger === "button" ? (t(), c(k, E({
76
+ trigger: h(({ isOpen: i }) => [
77
+ j(t.$slots, "trigger", { isOpen: i }, () => [
78
+ e.trigger === "button" ? (o(), c(y, D({
69
79
  key: 0,
70
80
  style: { backgroundColor: e.modelValue }
71
81
  }, {
@@ -74,24 +84,37 @@ const I = ["disabled", "aria-label"], U = { class: "min-w-0 truncate text-foregr
74
84
  icon: " ",
75
85
  variant: "outline",
76
86
  ...e.btnProps || {}
77
- }), null, 16, ["style"])) : e.trigger === "swatch" ? (t(), i("button", {
87
+ }), null, 16, ["style"])) : e.trigger === "swatch" ? (o(), s("button", {
78
88
  key: 1,
79
89
  type: "button",
80
90
  disabled: e.disabled,
81
91
  "aria-label": `Choose color ${e.modelValue}`,
82
92
  class: "flex min-h-10 w-full items-center gap-2.5 px-3 text-left font-mono text-xs uppercase transition-colors hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50"
83
93
  }, [
84
- n("span", {
94
+ m("span", {
85
95
  "aria-hidden": "true",
86
96
  class: "h-5 w-5 shrink-0 rounded-full border border-black/10 shadow-sm dark:border-white/15",
87
- style: h({ backgroundColor: e.modelValue })
97
+ style: C({ backgroundColor: e.modelValue })
88
98
  }, null, 4),
89
- n("span", U, P(e.modelValue), 1)
90
- ], 8, I)) : (t(), i("div", {
99
+ m("span", G, L(e.modelValue), 1),
100
+ d.value ? (o(), s("span", {
101
+ key: 0,
102
+ role: "button",
103
+ tabindex: "-1",
104
+ "aria-label": "Reset color",
105
+ class: "shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground focus:outline-none",
106
+ onClick: b
107
+ }, [
108
+ u(z, {
109
+ icon: "lucide:x-circle",
110
+ class: "h-4 w-4"
111
+ })
112
+ ])) : n("", !0)
113
+ ], 8, F)) : (o(), s("div", {
91
114
  key: 2,
92
- class: S(["w-full relative cursor-pointer", [e.disabled ? "opacity-50 pointer-events-none" : ""]])
115
+ class: N(["w-full relative cursor-pointer", [e.disabled ? "opacity-50 pointer-events-none" : ""]])
93
116
  }, [
94
- f(y, {
117
+ u(R, {
95
118
  "model-value": e.modelValue,
96
119
  readonly: "",
97
120
  disabled: e.disabled,
@@ -99,56 +122,79 @@ const I = ["disabled", "aria-label"], U = { class: "min-w-0 truncate text-foregr
99
122
  variant: e.variant,
100
123
  rounded: e.rounded,
101
124
  class: "pointer-events-none",
102
- "input-class": "pl-9 font-mono uppercase cursor-pointer"
103
- }, null, 8, ["model-value", "disabled", "size", "variant", "rounded"]),
104
- n("div", A, [
105
- n("div", {
125
+ "input-class": d.value ? "pl-9 pr-9 font-mono uppercase cursor-pointer" : "pl-9 font-mono uppercase cursor-pointer"
126
+ }, null, 8, ["model-value", "disabled", "size", "variant", "rounded", "input-class"]),
127
+ m("div", K, [
128
+ m("div", {
106
129
  class: "w-4 h-4 rounded-full shadow-[inset_0_0_0_1px_rgba(0,0,0,0.1)] dark:shadow-[inset_0_0_0_1px_rgba(255,255,255,0.1)]",
107
- style: h({ backgroundColor: e.modelValue })
130
+ style: C({ backgroundColor: e.modelValue })
108
131
  }, null, 4)
109
- ])
132
+ ]),
133
+ d.value ? (o(), s("button", {
134
+ key: 0,
135
+ type: "button",
136
+ tabindex: "-1",
137
+ "aria-label": "Reset color",
138
+ class: "absolute right-2.5 top-1/2 -translate-y-1/2 z-20 flex items-center justify-center text-muted-foreground hover:text-foreground focus:outline-none pointer-events-auto",
139
+ onClick: b
140
+ }, [
141
+ u(z, {
142
+ icon: "lucide:x-circle",
143
+ class: "h-4 w-4"
144
+ })
145
+ ])) : n("", !0)
110
146
  ], 2))
111
147
  ])
112
148
  ]),
113
- default: m(() => [
114
- d.value ? (t(), i("div", F, [
115
- f(N, {
149
+ default: h(() => [
150
+ p.value ? (o(), s("div", q, [
151
+ u(A, {
116
152
  color: e.modelValue,
117
153
  "show-header": !1,
118
154
  size: e.size,
119
- "onUpdate:color": $
155
+ "onUpdate:color": I
120
156
  }, {
121
- bottom: m(() => [
122
- e.showInput ? (t(), i("div", G, [
123
- g(w) ? (t(), c(k, {
157
+ bottom: h(() => [
158
+ e.showInput || e.allowReset ? (o(), s("div", J, [
159
+ e.showInput && V(E) ? (o(), c(y, {
124
160
  key: 0,
125
- onClick: C,
161
+ onClick: P,
126
162
  icon: "pepicons-pop:color-picker",
127
163
  variant: "outline",
128
164
  size: "sm",
129
165
  class: "px-2 shrink-0"
130
- })) : p("", !0),
131
- n("div", R, [
132
- f(y, {
133
- modelValue: l.value,
134
- "onUpdate:modelValue": a[0] || (a[0] = (s) => l.value = s),
166
+ })) : n("", !0),
167
+ e.showInput ? (o(), s("div", M, [
168
+ u(R, {
169
+ modelValue: a.value,
170
+ "onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i),
135
171
  size: "sm",
136
172
  "show-clear-button": !1,
137
173
  placeholder: "#000000",
138
174
  class: "w-full",
139
175
  "input-class": "font-mono text-xs uppercase "
140
176
  }, null, 8, ["modelValue"])
141
- ])
142
- ])) : p("", !0)
177
+ ])) : n("", !0),
178
+ d.value ? (o(), c(y, {
179
+ key: 2,
180
+ onClick: b,
181
+ icon: "lucide:rotate-ccw",
182
+ variant: "outline",
183
+ size: "sm",
184
+ class: "px-2 shrink-0",
185
+ "aria-label": "Reset color",
186
+ title: "Reset to transparent"
187
+ })) : n("", !0)
188
+ ])) : n("", !0)
143
189
  ]),
144
190
  _: 1
145
191
  }, 8, ["color", "size"])
146
- ])) : p("", !0)
192
+ ])) : n("", !0)
147
193
  ]),
148
194
  _: 3
149
195
  }, 8, ["disabled", "position"]));
150
196
  }
151
197
  });
152
198
  export {
153
- _ as default
199
+ ne as default
154
200
  };
@@ -0,0 +1,2 @@
1
+ /** Transparent hex written on reset (`#RGBA` with zero alpha). */
2
+ export declare const COLOR_PICKER_RESET_VALUE = "#0000";
@@ -0,0 +1,4 @@
1
+ const E = "#0000";
2
+ export {
3
+ E as COLOR_PICKER_RESET_VALUE
4
+ };
@@ -1 +1,2 @@
1
1
  export { default as ColorPicker } from './ColorPicker.vue';
2
+ export { COLOR_PICKER_RESET_VALUE } from './constants';
@@ -4,7 +4,7 @@ import k from "../Icon.vue.js";
4
4
  import { $t as E } from "../../utils/i18n.js";
5
5
  import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
6
6
  import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
7
- import ee from "./CommandPaletteItem.vue.js";
7
+ import ee from "./CommandPaletteItem.vue2.js";
8
8
  const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/80 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
9
9
  key: 0,
10
10
  class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
@@ -1,5 +1,5 @@
1
1
  import t from "./CommandPaletteItem.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-66b1ae06"]]);
5
5
  export {