vlite3 1.5.1 → 1.5.2

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 (35) hide show
  1. package/components/CategoryManager/CategoryManager.vue2.js +3 -3
  2. package/components/Chart/GanttChart.vue.d.ts +92 -2
  3. package/components/Chart/GanttChart.vue.js +2 -2
  4. package/components/Chart/GanttChart.vue2.js +1028 -878
  5. package/components/Chart/GanttChartDateUtils.js +28 -24
  6. package/components/Chart/index.d.ts +1 -1
  7. package/components/Chart/types.d.ts +88 -1
  8. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  9. package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
  10. package/components/DataTable/DataTable.vue.js +1 -1
  11. package/components/Form/{AccordionView.vue.js → AccordionView.vue2.js} +1 -1
  12. package/components/Form/index.vue2.js +1 -1
  13. package/components/Kanban/Kanban.vue.d.ts +6 -5
  14. package/components/Kanban/Kanban.vue.js +1 -1
  15. package/components/Kanban/Kanban.vue2.js +139 -118
  16. package/components/Kanban/groupKanbanData.d.ts +36 -0
  17. package/components/Kanban/groupKanbanData.js +72 -0
  18. package/components/Kanban/index.d.ts +1 -0
  19. package/components/Kanban/types.d.ts +17 -0
  20. package/components/NavbarCommandPalette.vue.js +1 -1
  21. package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +1 -1
  22. package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
  23. package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
  24. package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
  25. package/components/Screen/Screen.vue.js +80 -82
  26. package/components/Screen/ScreenFilter.vue.js +3 -3
  27. package/components/Screen/components/ScreenAddAction.vue.js +31 -31
  28. package/components/Screen/components/ScreenHeaderTitle.vue.js +1 -1
  29. package/components/Screen/components/ScreenToolbar.vue.d.ts +9 -0
  30. package/components/Screen/components/ScreenToolbar.vue.js +85 -52
  31. package/index.js +426 -421
  32. package/package.json +1 -1
  33. package/style.css +1 -1
  34. /package/components/RichTextEditor/{RichTextLinkPopover.vue2.js → RichTextLinkPopover.vue.js} +0 -0
  35. /package/components/RichTextEditor/{RichTextToolbar.vue2.js → RichTextToolbar.vue.js} +0 -0
@@ -1,8 +1,8 @@
1
- import { defineComponent as x, computed as m, markRaw as s, resolveComponent as N, openBlock as d, createBlock as o, resolveDynamicComponent as P, createElementBlock as f, Fragment as y, mergeProps as e, withCtx as n, createVNode as B, createTextVNode as i, toDisplayString as r, createCommentVNode as k } from "vue";
1
+ import { defineComponent as A, computed as m, markRaw as y, resolveComponent as N, openBlock as n, createBlock as o, resolveDynamicComponent as P, createElementBlock as f, Fragment as k, mergeProps as e, withCtx as d, createVNode as B, createTextVNode as i, toDisplayString as r, createCommentVNode as s } from "vue";
2
2
  import c from "../../Button.vue.js";
3
3
  import V from "../../Modal.vue.js";
4
4
  import { $t as g } from "../../../utils/i18n.js";
5
- const D = ["href", "target"], F = /* @__PURE__ */ x({
5
+ const D = ["href", "target"], F = /* @__PURE__ */ A({
6
6
  __name: "ScreenAddAction",
7
7
  props: {
8
8
  canAdd: { type: Boolean },
@@ -13,11 +13,11 @@ const D = ["href", "target"], F = /* @__PURE__ */ x({
13
13
  refetch: {}
14
14
  },
15
15
  emits: ["add"],
16
- setup(t, { emit: C }) {
17
- const a = t, b = C, v = m(
18
- () => a.addComponent ? s(a.addComponent) : void 0
19
- ), h = m(
20
- () => a.addBtn?.modal ? s(a.addBtn.modal) : void 0
16
+ setup(t, { emit: x }) {
17
+ const a = t, C = x, v = m(
18
+ () => a.addComponent ? y(a.addComponent) : void 0
19
+ ), b = m(
20
+ () => a.addBtn?.modal ? y(a.addBtn.modal) : void 0
21
21
  ), l = m(() => {
22
22
  if (a.addBtn?.labelI18n) return g(a.addBtn.labelI18n);
23
23
  if (a.addBtn?.label) return a.addBtn.label;
@@ -25,80 +25,80 @@ const D = ["href", "target"], F = /* @__PURE__ */ x({
25
25
  return u !== "vlite.screen.addNew" ? u : "Add New";
26
26
  });
27
27
  return (u, w) => {
28
- const A = N("router-link");
29
- return v.value ? (d(), o(P(v.value), { key: 0 })) : t.canAdd ? (d(), f(y, { key: 1 }, [
30
- t.addBtn ? (d(), f(y, { key: 0 }, [
31
- t.addBtn.modal ? (d(), o(V, e({
28
+ const h = N("router-link");
29
+ return v.value ? (n(), o(P(v.value), { key: 0 })) : t.canAdd ? (n(), f(k, { key: 1 }, [
30
+ t.addBtn ? (n(), f(k, { key: 0 }, [
31
+ t.addBtn.modal ? (n(), o(V, e({
32
32
  key: 0,
33
- body: h.value
33
+ body: b.value
34
34
  }, t.addBtn.modalProps, {
35
35
  refetch: t.refetch,
36
36
  data: t.data,
37
- class: "w-full md:w-auto!",
37
+ class: "w-full min-[900px]:w-auto!",
38
38
  loading: t.loading
39
39
  }), {
40
- trigger: n(() => [
40
+ trigger: d(() => [
41
41
  B(c, e({
42
- class: "w-full md:w-auto!",
42
+ class: "w-full min-[900px]:w-auto!",
43
43
  icon: t.addBtn.icon || "fluent:add-16-filled",
44
44
  variant: t.addBtn.variant || "primary"
45
45
  }, t.addBtn.buttonProps), {
46
- default: n(() => [
46
+ default: d(() => [
47
47
  i(r(l.value), 1)
48
48
  ]),
49
49
  _: 1
50
50
  }, 16, ["icon", "variant"])
51
51
  ]),
52
52
  _: 1
53
- }, 16, ["body", "refetch", "data", "loading"])) : t.addBtn.to ? (d(), o(A, {
53
+ }, 16, ["body", "refetch", "data", "loading"])) : t.addBtn.to ? (n(), o(h, {
54
54
  key: 1,
55
55
  to: t.addBtn.to,
56
- class: "inline-flex w-full sm:w-auto"
56
+ class: "inline-flex w-full min-[900px]:w-auto"
57
57
  }, {
58
- default: n(() => [
58
+ default: d(() => [
59
59
  B(c, e({
60
- class: "w-full md:w-auto!",
60
+ class: "w-full min-[900px]:w-auto!",
61
61
  icon: t.addBtn.icon || "fluent:add-16-filled",
62
62
  variant: t.addBtn.variant || "primary"
63
63
  }, t.addBtn.buttonProps), {
64
- default: n(() => [
64
+ default: d(() => [
65
65
  i(r(l.value), 1)
66
66
  ]),
67
67
  _: 1
68
68
  }, 16, ["icon", "variant"])
69
69
  ]),
70
70
  _: 1
71
- }, 8, ["to"])) : t.addBtn.href ? (d(), f("a", {
71
+ }, 8, ["to"])) : t.addBtn.href ? (n(), f("a", {
72
72
  key: 2,
73
73
  href: t.addBtn.href,
74
74
  target: t.addBtn.target,
75
- class: "inline-flex w-full sm:w-auto"
75
+ class: "inline-flex w-full min-[900px]:w-auto"
76
76
  }, [
77
77
  B(c, e({
78
- class: "w-full md:w-auto!",
78
+ class: "w-full min-[900px]:w-auto!",
79
79
  icon: t.addBtn.icon || "fluent:add-16-filled",
80
80
  variant: t.addBtn.variant || "primary"
81
81
  }, t.addBtn.buttonProps), {
82
- default: n(() => [
82
+ default: d(() => [
83
83
  i(r(l.value), 1)
84
84
  ]),
85
85
  _: 1
86
86
  }, 16, ["icon", "variant"])
87
- ], 8, D)) : (d(), o(c, e({
87
+ ], 8, D)) : (n(), o(c, e({
88
88
  key: 3,
89
- class: "w-full md:w-auto!",
89
+ class: "w-full min-[900px]:w-auto!",
90
90
  icon: t.addBtn.icon || "fluent:add-16-filled",
91
91
  variant: t.addBtn.variant || "primary"
92
92
  }, t.addBtn.buttonProps, {
93
- onClick: w[0] || (w[0] = (I) => t.addBtn.onClick ? t.addBtn.onClick() : b("add"))
93
+ onClick: w[0] || (w[0] = (I) => t.addBtn.onClick ? t.addBtn.onClick() : C("add"))
94
94
  }), {
95
- default: n(() => [
95
+ default: d(() => [
96
96
  i(r(l.value), 1)
97
97
  ]),
98
98
  _: 1
99
99
  }, 16, ["icon", "variant"]))
100
- ], 64)) : k("", !0)
101
- ], 64)) : k("", !0);
100
+ ], 64)) : s("", !0)
101
+ ], 64)) : s("", !0);
102
102
  };
103
103
  }
104
104
  });
@@ -2,7 +2,7 @@ import { defineComponent as p, computed as c, openBlock as n, createElementBlock
2
2
  import C from "../../Icon.vue.js";
3
3
  import g from "../../Tooltip.vue.js";
4
4
  import { $t as f } from "../../../utils/i18n.js";
5
- const v = { class: "flex flex-col" }, y = {
5
+ const v = { class: "flex flex-col min-w-0" }, y = {
6
6
  key: 0,
7
7
  class: "flex items-center! gap-2"
8
8
  }, S = /* @__PURE__ */ p({
@@ -24,6 +24,15 @@ type __VLS_Props = {
24
24
  exportProps?: any;
25
25
  importProps?: any;
26
26
  screenState: any;
27
+ /**
28
+ * Layout mode.
29
+ * - `false` (default): "header" mode — the two logical groups are emitted as
30
+ * sibling flex items (via a `display:contents` wrapper) so the parent header
31
+ * grid can reflow them across breakpoints (see Screen.vue variant one).
32
+ * - `true`: "inline" mode — the groups render inside a self-contained flex row,
33
+ * used by variant two where the toolbar sits next to the quick-filters.
34
+ */
35
+ inline?: boolean;
27
36
  };
28
37
  declare function __VLS_template(): {
29
38
  attrs: Partial<{}>;
@@ -1,15 +1,12 @@
1
- import { defineComponent as h, openBlock as o, createElementBlock as m, createElementVNode as u, createBlock as i, createCommentVNode as d, renderSlot as n, normalizeProps as r, guardReactiveProps as s, createVNode as c } from "vue";
2
- import f from "../../Button.vue.js";
3
- import v from "../../Input.vue.js";
1
+ import { defineComponent as b, useSlots as R, computed as i, openBlock as o, createElementBlock as m, normalizeClass as s, createBlock as d, createCommentVNode as r, renderSlot as c, normalizeProps as f, guardReactiveProps as h, createVNode as w, createElementVNode as P } from "vue";
2
+ import y from "../../Button.vue.js";
3
+ import A from "../../Input.vue.js";
4
4
  /* empty css */
5
- import w from "./ScreenViewToggle.vue.js";
6
- import y from "../ScreenFilter.vue.js";
7
- import S from "./ScreenAddAction.vue.js";
8
- import $ from "./ScreenOptionsDropdown.vue.js";
9
- const g = { class: "flex items-center gap-2 w-full sm:w-auto flex-1 md:flex-none justify-start sm:justify-end" }, B = {
10
- key: 4,
11
- class: "w-full md:w-60! max-sm:order-last"
12
- }, k = { class: "flex items-center gap-3 max-sm:w-full sm:w-auto max-sm:order-last" }, E = /* @__PURE__ */ h({
5
+ import D from "./ScreenViewToggle.vue.js";
6
+ import E from "../ScreenFilter.vue.js";
7
+ import F from "./ScreenAddAction.vue.js";
8
+ import z from "./ScreenOptionsDropdown.vue.js";
9
+ const W = /* @__PURE__ */ b({
13
10
  __name: "ScreenToolbar",
14
11
  props: {
15
12
  selectedRows: {},
@@ -36,28 +33,53 @@ const g = { class: "flex items-center gap-2 w-full sm:w-auto flex-1 md:flex-none
36
33
  hasExportOrImport: { type: Boolean },
37
34
  exportProps: {},
38
35
  importProps: {},
39
- screenState: {}
36
+ screenState: {},
37
+ inline: { type: Boolean }
40
38
  },
41
39
  emits: ["update:activeView", "update:activeFilters", "update:searchQuery", "delete", "refresh", "add", "select-dropdown"],
42
40
  setup(e) {
43
- return (l, t) => (o(), m("div", null, [
44
- u("div", g, [
45
- e.selectedRows.length > 0 && !e.hideSelectable && !e.hideDeleteBtn ? (o(), i(f, {
41
+ const t = e, u = R(), p = i(
42
+ () => t.selectedRows.length > 0 && !t.hideSelectable && !t.hideDeleteBtn
43
+ ), v = i(() => !!t.filterSchema && t.filterSchema.length > 0), x = i(
44
+ () => p.value || t.hasMultipleViews || !!u["before-search"] || !!t.showRefresh || v.value || !!t.canSearch
45
+ ), S = i(
46
+ () => !!u.actions || !!t.addComponent || !!t.canAdd && !!t.addBtn
47
+ ), g = i(
48
+ () => S.value || !!t.hasExportOrImport || !!u["after-add"]
49
+ ), k = i(
50
+ () => t.inline ? "flex flex-col sm:flex-row items-stretch sm:items-center gap-2.5 w-full lg:w-auto justify-end" : "contents"
51
+ ), $ = i(
52
+ () => t.inline ? "flex items-center gap-2.5 w-full sm:w-auto min-w-0" : "order-2 min-[900px]:order-3 min-[1250px]:order-2 min-[900px]:col-span-2 min-[1250px]:col-span-1 flex items-center gap-2.5 min-w-0"
53
+ ), B = i(
54
+ () => t.inline ? "flex items-center gap-3 shrink-0 w-full sm:w-auto justify-end" : "order-3 min-[900px]:order-2 min-[1250px]:order-3 flex items-center gap-3 shrink-0 justify-end"
55
+ ), V = i(
56
+ () => t.inline ? "flex-1 sm:flex-none sm:w-56 lg:w-60 min-w-0" : "flex-1 min-w-0 min-[1250px]:flex-none min-[1250px]:w-60"
57
+ ), C = i(
58
+ () => t.inline ? "w-full sm:w-auto" : "flex-1 min-[900px]:flex-none min-w-0"
59
+ );
60
+ return (a, l) => (o(), m("div", {
61
+ class: s(k.value)
62
+ }, [
63
+ x.value ? (o(), m("div", {
64
+ key: 0,
65
+ class: s($.value)
66
+ }, [
67
+ p.value ? (o(), d(y, {
46
68
  key: 0,
47
69
  variant: "outline",
48
70
  class: "hover:bg-destructive/10 shrink-0 h-9! w-9!",
49
71
  icon: "lucide:trash-2",
50
72
  title: e.txtDeleteSelected,
51
- onClick: t[0] || (t[0] = (a) => l.$emit("delete", e.selectedRows))
52
- }, null, 8, ["title"])) : d("", !0),
53
- e.hasMultipleViews ? (o(), i(w, {
73
+ onClick: l[0] || (l[0] = (n) => a.$emit("delete", e.selectedRows))
74
+ }, null, 8, ["title"])) : r("", !0),
75
+ e.hasMultipleViews ? (o(), d(D, {
54
76
  key: 1,
55
77
  "model-value": e.activeView,
56
- "onUpdate:modelValue": t[1] || (t[1] = (a) => l.$emit("update:activeView", a)),
78
+ "onUpdate:modelValue": l[1] || (l[1] = (n) => a.$emit("update:activeView", n)),
57
79
  views: e.resolvedViews
58
- }, null, 8, ["model-value", "views"])) : d("", !0),
59
- n(l.$slots, "before-search", r(s(e.screenState))),
60
- e.showRefresh ? (o(), i(f, {
80
+ }, null, 8, ["model-value", "views"])) : r("", !0),
81
+ c(a.$slots, "before-search", f(h(e.screenState))),
82
+ e.showRefresh ? (o(), d(y, {
61
83
  key: 2,
62
84
  variant: "outline",
63
85
  icon: "lucide:refresh-cw",
@@ -65,52 +87,63 @@ const g = { class: "flex items-center gap-2 w-full sm:w-auto flex-1 md:flex-none
65
87
  class: "shrink-0 h-9! w-9!",
66
88
  title: e.txtRefresh,
67
89
  disabled: e.loading,
68
- onClick: t[2] || (t[2] = (a) => l.$emit("refresh"))
69
- }, null, 8, ["title", "disabled"])) : d("", !0),
70
- e.filterSchema && e.filterSchema.length > 0 ? (o(), i(y, {
90
+ onClick: l[2] || (l[2] = (n) => a.$emit("refresh"))
91
+ }, null, 8, ["title", "disabled"])) : r("", !0),
92
+ v.value ? (o(), d(E, {
71
93
  key: 3,
72
94
  schema: e.filterSchema,
73
95
  type: e.filterType,
74
96
  "model-value": e.activeFilters,
75
- "onUpdate:modelValue": t[3] || (t[3] = (a) => l.$emit("update:activeFilters", a)),
76
- onChange: t[4] || (t[4] = (a) => l.$emit("refresh"))
77
- }, null, 8, ["schema", "type", "model-value"])) : d("", !0),
78
- e.canSearch ? (o(), m("div", B, [
79
- c(v, {
97
+ "onUpdate:modelValue": l[3] || (l[3] = (n) => a.$emit("update:activeFilters", n)),
98
+ onChange: l[4] || (l[4] = (n) => a.$emit("refresh"))
99
+ }, null, 8, ["schema", "type", "model-value"])) : r("", !0),
100
+ e.canSearch ? (o(), m("div", {
101
+ key: 4,
102
+ class: s(V.value)
103
+ }, [
104
+ w(A, {
80
105
  lazy: "",
81
106
  "model-value": e.searchQuery,
82
- "onUpdate:modelValue": t[5] || (t[5] = (a) => l.$emit("update:searchQuery", String(a))),
107
+ "onUpdate:modelValue": l[5] || (l[5] = (n) => a.$emit("update:searchQuery", String(n))),
83
108
  icon: "lucide:search",
84
109
  placeholder: e.txtSearch,
85
110
  variant: "outline",
86
111
  class: "bg-background w-full",
87
112
  "show-clear-button": !0
88
113
  }, null, 8, ["model-value", "placeholder"])
89
- ])) : d("", !0)
90
- ]),
91
- u("div", k, [
92
- n(l.$slots, "actions", r(s(e.screenState)), () => [
93
- c(S, {
94
- "can-add": e.canAdd,
95
- "add-component": e.addComponent,
96
- "add-btn": e.addBtn,
97
- loading: e.loading,
98
- data: e.data,
99
- refetch: e.refetch,
100
- onAdd: t[6] || (t[6] = (a) => l.$emit("add"))
101
- }, null, 8, ["can-add", "add-component", "add-btn", "loading", "data", "refetch"])
102
- ]),
103
- e.hasExportOrImport ? (o(), i($, {
114
+ ], 2)) : r("", !0)
115
+ ], 2)) : r("", !0),
116
+ g.value ? (o(), m("div", {
117
+ key: 1,
118
+ class: s(B.value)
119
+ }, [
120
+ P("div", {
121
+ class: s(C.value)
122
+ }, [
123
+ c(a.$slots, "actions", f(h(e.screenState)), () => [
124
+ w(F, {
125
+ "can-add": e.canAdd,
126
+ "add-component": e.addComponent,
127
+ "add-btn": e.addBtn,
128
+ loading: e.loading,
129
+ data: e.data,
130
+ refetch: e.refetch,
131
+ onAdd: l[6] || (l[6] = (n) => a.$emit("add"))
132
+ }, null, 8, ["can-add", "add-component", "add-btn", "loading", "data", "refetch"])
133
+ ])
134
+ ], 2),
135
+ e.hasExportOrImport ? (o(), d(z, {
104
136
  key: 0,
137
+ class: "shrink-0",
105
138
  "export-props": e.exportProps,
106
139
  "import-props": e.importProps,
107
- onSelect: t[7] || (t[7] = (a) => l.$emit("select-dropdown", a))
108
- }, null, 8, ["export-props", "import-props"])) : d("", !0),
109
- n(l.$slots, "after-add", r(s(e.screenState)))
110
- ])
111
- ]));
140
+ onSelect: l[7] || (l[7] = (n) => a.$emit("select-dropdown", n))
141
+ }, null, 8, ["export-props", "import-props"])) : r("", !0),
142
+ c(a.$slots, "after-add", f(h(e.screenState)))
143
+ ], 2)) : r("", !0)
144
+ ], 2));
112
145
  }
113
146
  });
114
147
  export {
115
- E as default
148
+ W as default
116
149
  };