vlite3 1.1.11 → 1.2.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 (52) hide show
  1. package/components/AppShell/AppShell.vue.js +76 -0
  2. package/components/AppShell/AppShell.vue2.js +4 -0
  3. package/components/AppShell/AppShellLayoutClassic.vue.js +279 -0
  4. package/components/AppShell/AppShellLayoutClassic.vue2.js +4 -0
  5. package/components/AppShell/AppShellLayoutDashboard.vue.js +171 -0
  6. package/components/AppShell/AppShellLayoutDashboard.vue2.js +4 -0
  7. package/components/AppShell/AppShellLayoutDock.vue.js +165 -0
  8. package/components/AppShell/AppShellLayoutDock.vue2.js +4 -0
  9. package/components/AppShell/AppShellLayoutHeaderShell.vue.js +173 -0
  10. package/components/AppShell/AppShellLayoutHeaderShell.vue2.js +4 -0
  11. package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +166 -0
  12. package/components/AppShell/AppShellLayoutSidebarFirst.vue2.js +4 -0
  13. package/components/AppShell/useAppShell.js +134 -0
  14. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  15. package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
  16. package/components/DataTable/DataTable.vue.d.ts +3 -3
  17. package/components/DataTable/DataTableRow.vue.d.ts +1 -1
  18. package/components/Dropdown/Dropdown.vue.js +11 -11
  19. package/components/Form/CustomFields.vue.js +2 -2
  20. package/components/Form/CustomFields.vue2.js +15 -2
  21. package/components/Invoice/InvoiceVariant1.vue.js +225 -176
  22. package/components/Invoice/InvoiceVariant2.vue.js +174 -125
  23. package/components/Invoice/InvoiceVariant3.vue.js +186 -157
  24. package/components/Invoice/InvoiceVariant4.vue.js +200 -156
  25. package/components/Invoice/types.d.ts +10 -1
  26. package/components/List/ListFieldRow.vue.js +16 -16
  27. package/components/List/utils.d.ts +2 -2
  28. package/components/List/utils.js +6 -9
  29. package/components/NavbarCommandPalette.vue.js +2 -2
  30. package/components/Price/Price.vue.d.ts +2 -0
  31. package/components/Price/Price.vue.js +15 -12
  32. package/components/Screen/Screen.vue.d.ts +36 -10
  33. package/components/Screen/Screen.vue.js +398 -304
  34. package/components/Screen/components/ScreenToolbar.vue.d.ts +62 -0
  35. package/components/Screen/components/ScreenToolbar.vue.js +116 -0
  36. package/components/Screen/components/ScreenToolbar.vue2.js +4 -0
  37. package/components/Screen/types.d.ts +9 -0
  38. package/components/Stats/StatItem.vue.js +88 -87
  39. package/components/Stats/Stats.vue.js +20 -20
  40. package/components/Stats/types.d.ts +3 -1
  41. package/composables/useBreadcrumb.js +27 -0
  42. package/core/config.d.ts +10 -0
  43. package/core/config.js +11 -9
  44. package/index.d.ts +1 -0
  45. package/index.js +215 -213
  46. package/package.json +1 -1
  47. package/style.css +1 -1
  48. package/types/appshell.type.d.ts +1 -1
  49. package/types/config.type.d.ts +2 -0
  50. package/types/list.type.d.ts +4 -0
  51. package/utils/functions.d.ts +9 -10
  52. package/utils/functions.js +78 -63
@@ -31,15 +31,15 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
31
31
  }>, {
32
32
  variant: "default" | "raised";
33
33
  size: "xs" | "sm" | "md" | "lg";
34
+ compact: boolean;
34
35
  loading: boolean;
35
36
  striped: boolean;
36
- compact: boolean;
37
37
  rows: any[];
38
38
  headers: TableHeader[];
39
39
  emptyIcon: string;
40
- paginationProps: import('./types').DataTablePaginationProps;
41
- hideSelectable: boolean;
42
40
  selectedRows: any[];
41
+ hideSelectable: boolean;
42
+ paginationProps: import('./types').DataTablePaginationProps;
43
43
  showPagination: boolean;
44
44
  cellBordered: boolean;
45
45
  keyField: string;
@@ -38,8 +38,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
38
38
  }) => any;
39
39
  }>, {
40
40
  size: "xs" | "sm" | "md" | "lg";
41
- striped: boolean;
42
41
  compact: boolean;
42
+ striped: boolean;
43
43
  selectable: boolean;
44
44
  isSelected: boolean;
45
45
  keyField: string;
@@ -57,15 +57,15 @@ const Ne = /* @__PURE__ */ le({
57
57
  confirmText: "Confirm",
58
58
  cancelText: "Cancel",
59
59
  variant: "primary"
60
- }), U = f(() => l.position ? l.position : l.direction === "rtl" ? "bottom-end" : "bottom-start"), q = f(() => l.nestedPosition ? l.nestedPosition : l.direction === "rtl" ? "left-start" : "right-start"), C = i(l.isOpen || !1), b = i(0), F = `dropdown-${Math.random().toString(36).substring(2, 9)}`, w = f(() => l.menuId || F), g = i([]), s = ne("dropdown-context", null), G = (e) => {
60
+ }), U = f(() => l.position ? l.position : l.direction === "rtl" ? "bottom-end" : "bottom-start"), q = f(() => l.nestedPosition ? l.nestedPosition : l.direction === "rtl" ? "left-start" : "right-start"), C = i(l.isOpen || !1), b = i(0), F = `dropdown-${Math.random().toString(36).substring(2, 9)}`, $ = f(() => l.menuId || F), g = i([]), s = ne("dropdown-context", null), G = (e) => {
61
61
  g.value.includes(e) || g.value.push(e), s?.registerChildId?.(e);
62
62
  }, J = (e) => {
63
63
  g.value = g.value.filter((o) => o !== e), s?.unregisterChildId?.(e);
64
64
  };
65
65
  oe(() => {
66
- s?.registerChildId && s.registerChildId(`#${w.value}`);
66
+ s?.registerChildId && s.registerChildId(`#${$.value}`);
67
67
  }), ae(() => {
68
- s?.unregisterChildId && s.unregisterChildId(`#${w.value}`);
68
+ s?.unregisterChildId && s.unregisterChildId(`#${$.value}`);
69
69
  }), M(
70
70
  () => l.isOpen,
71
71
  (e) => {
@@ -94,9 +94,9 @@ const Ne = /* @__PURE__ */ le({
94
94
  registerChildId: G,
95
95
  unregisterChildId: J
96
96
  }), L("modal-context", null);
97
- const I = f(() => l.options ? l.options.map((e) => typeof e == "string" || typeof e == "number" ? { label: String(e), value: String(e) } : e) : []), S = i([]), x = i(!1), $ = i(!1);
97
+ const w = f(() => l.options ? l.options.map((e) => typeof e == "string" || typeof e == "number" ? { label: String(e), value: String(e) } : e) : []), S = i([]), x = i(!1), I = i(!1);
98
98
  M(
99
- I,
99
+ w,
100
100
  (e) => {
101
101
  if (e) {
102
102
  if (l.remote) {
@@ -107,7 +107,7 @@ const Ne = /* @__PURE__ */ le({
107
107
  } else
108
108
  S.value = e;
109
109
  !x.value && e.length > 0 && (x.value = !0, setTimeout(() => {
110
- $.value = !0, E(B.value);
110
+ I.value = !0, E(B.value);
111
111
  }, 10));
112
112
  }
113
113
  },
@@ -121,7 +121,7 @@ const Ne = /* @__PURE__ */ le({
121
121
  }), { selectedBuffer: k, isHydrating: Q, hydrateSelected: E } = be({
122
122
  fetchSelected: l.fetchSelected,
123
123
  getAvailableOptions: () => c.value,
124
- isReady: () => $.value
124
+ isReady: () => I.value
125
125
  }), { getAllRecursiveIds: W } = pe(), X = ie({
126
126
  ...se(l),
127
127
  options: c
@@ -135,7 +135,7 @@ const Ne = /* @__PURE__ */ le({
135
135
  M(
136
136
  () => B.value,
137
137
  (e) => {
138
- $.value && E(e);
138
+ I.value && E(e);
139
139
  },
140
140
  { deep: !0 }
141
141
  );
@@ -188,7 +188,7 @@ const Ne = /* @__PURE__ */ le({
188
188
  placement: U.value,
189
189
  isOpen: C.value,
190
190
  keepAlive: b.value > 0,
191
- menuId: w.value,
191
+ menuId: $.value,
192
192
  ignoreClickOutside: Z.value,
193
193
  class: "w-full",
194
194
  className: "dropdown " + (t.className || ""),
@@ -217,9 +217,9 @@ const Ne = /* @__PURE__ */ le({
217
217
  ])
218
218
  ]),
219
219
  default: m(() => [
220
- !(t.disabled || t.readonly) && (I.value.length || c.value.length || e.$slots.menu || e.$slots.item || t.remote || t.searchable) ? (V(), ue(ye, {
220
+ !(t.disabled || t.readonly) && (w.value.length || c.value.length || e.$slots.menu || e.$slots.item || e.$slots.default || t.remote || t.searchable) ? (V(), ue(ye, {
221
221
  key: 0,
222
- options: I.value,
222
+ options: w.value,
223
223
  cachedOptions: c.value,
224
224
  class: ce(t.className),
225
225
  emptyMessage: t.emptyMessage,
@@ -1,7 +1,7 @@
1
1
  import o from "./CustomFields.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-69b1b4ef"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-30cab34f"]]);
5
5
  export {
6
- r as default
6
+ s as default
7
7
  };
@@ -175,7 +175,17 @@ const ie = { class: "custom-fields-wrapper" }, ce = { class: "flex justify-betwe
175
175
  }, {
176
176
  default: N(() => [
177
177
  (n(!0), d(V, null, C(s.value, (o, l, h, c) => {
178
- const b = [o, r.disabled, r.readonly, r.isUpdate, r.showRowNumbers, x.value, r.draggable, l, Y(l)];
178
+ const b = [
179
+ o,
180
+ r.disabled,
181
+ r.readonly,
182
+ r.isUpdate,
183
+ r.showRowNumbers,
184
+ x.value,
185
+ r.draggable,
186
+ l,
187
+ Y(l)
188
+ ];
179
189
  if (c && c.key === o._id && re(c, b)) return c;
180
190
  const f = (n(), d("div", {
181
191
  key: o._id,
@@ -183,7 +193,10 @@ const ie = { class: "custom-fields-wrapper" }, ce = { class: "flex justify-betwe
183
193
  }, [
184
194
  r.draggable && !r.disabled && !r.readonly ? (n(), d("div", {
185
195
  key: 0,
186
- class: F(["w-10 flex-none flex items-center justify-center border-r border-border bg-muted/5 drag-handle transition-colors", r.disabled ? "cursor-not-allowed opacity-50" : "cursor-grab active:cursor-grabbing hover:bg-muted/10 text-muted-foreground hover:text-foreground"])
196
+ class: F([
197
+ "w-10 flex-none flex items-center justify-center border-r border-border bg-muted/5 drag-handle transition-colors",
198
+ r.disabled ? "cursor-not-allowed opacity-50" : "cursor-grab active:cursor-grabbing hover:bg-muted/10 text-muted-foreground hover:text-foreground"
199
+ ])
187
200
  }, [
188
201
  $(de, {
189
202
  icon: "lucide:grip-vertical",