vlite3 1.0.10 → 1.1.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 (113) hide show
  1. package/README.md +4 -1
  2. package/components/AttachmentsList/AttachmentsList.vue.d.ts +1 -16
  3. package/components/AttachmentsList/AttachmentsList.vue.js +191 -167
  4. package/components/AvatarGroup/AvatarGroup.vue.d.ts +24 -0
  5. package/components/AvatarGroup/AvatarGroup.vue.js +91 -0
  6. package/components/AvatarGroup/AvatarGroup.vue2.js +4 -0
  7. package/components/AvatarGroup/index.d.ts +2 -0
  8. package/components/AvatarUploader/AvatarUploader.vue.d.ts +1 -1
  9. package/components/Barcode/Barcode.vue.js +6 -5
  10. package/components/Button.vue.d.ts +1 -1
  11. package/components/Calendar/Calendar.vue.d.ts +229 -0
  12. package/components/Calendar/Calendar.vue.js +7 -0
  13. package/components/Calendar/Calendar.vue2.js +186 -0
  14. package/components/Calendar/CalendarEventItem.vue.d.ts +17 -0
  15. package/components/Calendar/CalendarEventItem.vue.js +111 -0
  16. package/components/Calendar/CalendarEventItem.vue2.js +4 -0
  17. package/components/Calendar/index.d.ts +2 -0
  18. package/components/Carousel/Carousel.vue.d.ts +2 -2
  19. package/components/CategoryManager/CategoryManager.vue.d.ts +2 -1
  20. package/components/CategoryManager/CategoryManager.vue.js +322 -0
  21. package/components/CategoryManager/CategoryManager.vue2.js +4 -0
  22. package/components/CategoryManager/CategoryNode.vue.js +224 -0
  23. package/components/CategoryManager/CategoryNode.vue2.js +4 -0
  24. package/components/CategoryManager/types.d.ts +14 -0
  25. package/components/Chip/Chip.vue.d.ts +2 -2
  26. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  27. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  28. package/components/CommandPalette/CommandPaletteContent.vue.js +1 -1
  29. package/components/CommandPalette/CommandPaletteContent.vue2.js +7 -7
  30. package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
  31. package/components/ConfirmationModal.vue.d.ts +2 -2
  32. package/components/CustomFieldsDisplay/CustomFieldsDisplay.vue.d.ts +48 -0
  33. package/components/CustomFieldsDisplay/CustomFieldsDisplay.vue.js +97 -0
  34. package/components/CustomFieldsDisplay/CustomFieldsDisplay.vue2.js +4 -0
  35. package/components/CustomFieldsDisplay/index.d.ts +2 -0
  36. package/components/CustomFieldsDisplay/types.d.ts +18 -0
  37. package/components/DataTable/DataTable.vue.d.ts +3 -3
  38. package/components/DateTime/DateTime.vue.d.ts +2 -0
  39. package/components/DateTime/DateTime.vue.js +9 -23
  40. package/components/Dropdown/Dropdown.vue.d.ts +3 -3
  41. package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +1 -1
  42. package/components/Dropdown/DropdownMenu.vue.d.ts +2 -2
  43. package/components/Dropdown/DropdownTrigger.vue.d.ts +1 -1
  44. package/components/FilePicker/FilePicker.vue.d.ts +1 -1
  45. package/components/Form/CustomFields.vue.d.ts +1 -1
  46. package/components/Form/Form.vue.js +2 -2
  47. package/components/Form/Form.vue2.js +230 -241
  48. package/components/Form/FormField.vue.d.ts +1 -1
  49. package/components/Form/composables/useForm.d.ts +2 -0
  50. package/components/Form/composables/useForm.js +76 -69
  51. package/components/Form/utils/form.utils.js +66 -66
  52. package/components/ImportData/ImportData.vue.js +48 -48
  53. package/components/ImportData/ImportStep2.vue.js +116 -5
  54. package/components/ImportData/ImportStep2.vue2.js +2 -105
  55. package/components/Input.vue.d.ts +3 -3
  56. package/components/Invoice/Invoice.vue.d.ts +3 -0
  57. package/components/Invoice/Invoice.vue.js +38 -0
  58. package/components/Invoice/Invoice.vue2.js +4 -0
  59. package/components/Invoice/InvoiceVariant1.vue.d.ts +13 -0
  60. package/components/Invoice/InvoiceVariant1.vue.js +360 -0
  61. package/components/Invoice/InvoiceVariant1.vue2.js +4 -0
  62. package/components/Invoice/InvoiceVariant2.vue.d.ts +13 -0
  63. package/components/Invoice/InvoiceVariant2.vue.js +226 -0
  64. package/components/Invoice/InvoiceVariant2.vue2.js +4 -0
  65. package/components/Invoice/InvoiceVariant3.vue.d.ts +13 -0
  66. package/components/Invoice/InvoiceVariant3.vue.js +292 -0
  67. package/components/Invoice/InvoiceVariant3.vue2.js +4 -0
  68. package/components/Invoice/InvoiceVariant4.vue.d.ts +13 -0
  69. package/components/Invoice/InvoiceVariant4.vue.js +343 -0
  70. package/components/Invoice/InvoiceVariant4.vue2.js +4 -0
  71. package/components/Invoice/index.d.ts +2 -0
  72. package/components/Invoice/types.d.ts +97 -0
  73. package/components/List/List.vue.d.ts +1 -9
  74. package/components/List/List.vue.js +166 -165
  75. package/components/List/ListFieldRow.vue.d.ts +10 -2
  76. package/components/List/ListFieldRow.vue.js +80 -78
  77. package/components/List/utils.d.ts +2 -1
  78. package/components/List/utils.js +8 -39
  79. package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
  80. package/components/Navbar/NavbarItem.vue.d.ts +1 -1
  81. package/components/Navbar/NavbarTabs.vue.js +2 -2
  82. package/components/NavbarCommandPalette.vue.js +1 -1
  83. package/components/NumberInput.vue.d.ts +2 -2
  84. package/components/NumberInput.vue.js +2 -2
  85. package/components/NumberInput.vue2.js +38 -38
  86. package/components/OTPInput/OTPInput.vue.d.ts +1 -1
  87. package/components/PricingPlan/PricingPlan.vue.d.ts +1 -1
  88. package/components/Screen/ScreenFilter.vue.js +22 -21
  89. package/components/Screen/components/ScreenQuickFilters.vue.js +6 -5
  90. package/components/SidebarMenu/SidebarMenu.vue.d.ts +1 -1
  91. package/components/Stats/Stats.vue.d.ts +1 -1
  92. package/components/StatusChip/status-map.js +27 -7
  93. package/components/Tabes/Tabes.vue.d.ts +1 -0
  94. package/components/Tabes/Tabes.vue.js +2 -2
  95. package/components/Tabes/Tabes.vue2.js +33 -32
  96. package/components/ThumbnailSelector/ThumbnailSelector.vue.d.ts +2 -2
  97. package/components/ThumbnailSelector/ThumbnailSelector.vue.js +2 -2
  98. package/components/ThumbnailSelector/ThumbnailSelector.vue2.js +141 -115
  99. package/components/Workbook/Workbook.vue.d.ts +3 -3
  100. package/core/config.d.ts +76 -0
  101. package/core/index.js +17 -5
  102. package/index.d.ts +6 -1
  103. package/index.js +271 -256
  104. package/package.json +2 -1
  105. package/style.css +5 -3
  106. package/types/config.type.d.ts +6 -0
  107. package/types/list.type.d.ts +6 -0
  108. package/utils/configUtils.d.ts +9 -0
  109. package/utils/configUtils.js +7 -0
  110. package/utils/index.d.ts +1 -0
  111. package/utils/status.d.ts +5 -0
  112. package/utils/status.js +33 -0
  113. /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
@@ -1,9 +1,10 @@
1
- import { defineComponent as $, ref as p, computed as f, openBlock as t, createElementBlock as a, normalizeClass as i, createElementVNode as c, createBlock as v, createCommentVNode as h, toDisplayString as x, renderSlot as w, resolveDynamicComponent as L, Fragment as m, createVNode as C } from "vue";
1
+ import { defineComponent as M, ref as $, computed as v, openBlock as t, createElementBlock as a, normalizeClass as s, createElementVNode as c, createBlock as f, createCommentVNode as x, toDisplayString as b, renderSlot as w, resolveDynamicComponent as L, Fragment as m, createVNode as p } from "vue";
2
2
  import g from "../Icon.vue.js";
3
3
  import k from "../Price/Price.vue.js";
4
4
  import { $t as j } from "../../utils/i18n.js";
5
5
  import { formatDate as V } from "../../utils/functions.js";
6
- import { getObjectValue as I, formatNumber as N, getStatusColorClass as D } from "./utils.js";
6
+ import { getObjectValue as I, formatNumber as N } from "./utils.js";
7
+ import { getStatusColorClass as D } from "../../utils/status.js";
7
8
  const E = { class: "flex items-center gap-2 min-w-0" }, F = { class: "text-xs font-normal text-muted-foreground leading-snug truncate" }, O = { class: "min-w-0" }, z = {
8
9
  key: 2,
9
10
  class: "flex items-center gap-1.5"
@@ -22,7 +23,7 @@ const E = { class: "flex items-center gap-2 min-w-0" }, F = { class: "text-xs fo
22
23
  key: 1,
23
24
  class: "text-sm text-gray-600 tracking-widest select-none",
24
25
  "aria-hidden": "true"
25
- }, se = ["aria-label"], ie = ["src", "alt"], oe = ["innerHTML"], me = /* @__PURE__ */ $({
26
+ }, ie = ["aria-label"], se = ["src", "alt"], oe = ["innerHTML"], ye = /* @__PURE__ */ M({
26
27
  __name: "ListFieldRow",
27
28
  props: {
28
29
  field: {},
@@ -33,10 +34,11 @@ const E = { class: "flex items-center gap-2 min-w-0" }, F = { class: "text-xs fo
33
34
  showColon: { type: Boolean, default: !0 },
34
35
  index: { default: 0 },
35
36
  stackedColIndex: { default: 0 },
36
- stackedBorderStyle: { default: "none" }
37
+ stackedBorderStyle: { default: "none" },
38
+ autoLineByLineThreshold: { default: 50 }
37
39
  },
38
40
  setup(e) {
39
- const l = e, s = p(!1), o = f(() => I(l.field.key, l.data)), d = f(() => {
41
+ const l = e, i = $(!1), o = v(() => I(l.field.key, l.data)), r = v(() => {
40
42
  const n = o.value;
41
43
  if (l.field.format)
42
44
  return l.field.format(n, l.data);
@@ -54,12 +56,12 @@ const E = { class: "flex items-center gap-2 min-w-0" }, F = { class: "text-xs fo
54
56
  default:
55
57
  return String(n);
56
58
  }
57
- }), y = f(
59
+ }), y = v(
58
60
  () => l.field.titleI18n ? j(l.field.titleI18n) : l.field.title ?? l.field.key
59
- ), r = f(() => {
61
+ ), d = v(() => {
60
62
  const n = [];
61
63
  if (l.field.addStatusColor) {
62
- const u = D(d.value);
64
+ const u = D(r.value);
63
65
  u && n.push(u);
64
66
  }
65
67
  if (l.field.class)
@@ -69,76 +71,76 @@ const E = { class: "flex items-center gap-2 min-w-0" }, F = { class: "text-xs fo
69
71
  } else
70
72
  n.push(l.field.class);
71
73
  return n.join(" ");
72
- }), b = f(() => l.field.type === "image"), B = f(() => l.variant === "striped" && l.index % 2 !== 0), T = f(() => l.variant === "stacked"), H = f(() => !!l.field.lineByLine), M = f(() => l.stackedBorderStyle === "divider" && l.stackedColIndex !== 0 ? "border-l border-border pl-4 pr-3.5 py-2" : "px-3.5 py-2");
73
- return (n, u) => T.value ? (t(), a("div", {
74
+ }), h = v(() => l.field.type === "image"), B = v(() => l.variant === "striped" && l.index % 2 !== 0), C = v(() => l.variant === "stacked"), S = v(() => l.field.lineByLineLayout === "inline" ? !1 : l.field.lineByLineLayout === "block" || l.field.lineByLine ? !0 : l.autoLineByLineThreshold > 0 ? String(r.value ?? "").length > l.autoLineByLineThreshold : !1), H = v(() => l.stackedBorderStyle === "divider" && l.stackedColIndex !== 0 ? "border-l border-border pl-4 pr-3.5 py-2" : "px-3.5 py-2");
75
+ return (n, u) => C.value ? (t(), a("div", {
74
76
  key: 0,
75
- class: i([
77
+ class: s([
76
78
  "list-field-row list-field-row--stacked flex flex-col gap-0.5 min-w-0",
77
- M.value
79
+ H.value
78
80
  ]),
79
81
  role: "row"
80
82
  }, [
81
83
  c("div", E, [
82
- e.field.icon ? (t(), v(g, {
84
+ e.field.icon ? (t(), f(g, {
83
85
  key: 0,
84
86
  icon: e.field.icon,
85
87
  class: "w-3 h-3 text-muted-foreground shrink-0"
86
- }, null, 8, ["icon"])) : h("", !0),
87
- c("span", F, x(y.value), 1)
88
+ }, null, 8, ["icon"])) : x("", !0),
89
+ c("span", F, b(y.value), 1)
88
90
  ]),
89
91
  c("div", O, [
90
92
  n.$slots[e.field.key] ? w(n.$slots, e.field.key, {
91
93
  key: 0,
92
94
  value: o.value,
93
- resolved: d.value,
95
+ resolved: r.value,
94
96
  data: e.data
95
- }) : e.field.component ? (t(), v(L(e.field.component), {
97
+ }) : e.field.component ? (t(), f(L(e.field.component), {
96
98
  key: 1,
97
99
  data: e.data,
98
100
  value: o.value
99
101
  }, null, 8, ["data", "value"])) : e.field.isSensitive ? (t(), a("div", z, [
100
- s.value ? (t(), a(m, { key: 0 }, [
101
- e.field.type === "price" ? (t(), v(k, {
102
+ i.value ? (t(), a(m, { key: 0 }, [
103
+ e.field.type === "price" ? (t(), f(k, {
102
104
  key: 0,
103
105
  value: o.value,
104
- class: i(["text-sm font-semibold text-foreground break-words leading-snug", r.value])
106
+ class: s(["text-sm font-semibold text-foreground wrap-break-word leading-snug", d.value])
105
107
  }, null, 8, ["value", "class"])) : (t(), a("span", {
106
108
  key: 1,
107
- class: i(["text-sm font-semibold text-foreground break-words leading-snug", r.value]),
108
- innerHTML: d.value
109
+ class: s(["text-sm font-semibold text-foreground wrap-break-word leading-snug", d.value]),
110
+ innerHTML: r.value
109
111
  }, null, 10, R))
110
112
  ], 64)) : (t(), a("span", Y, " •••••••• ")),
111
113
  c("button", {
112
114
  type: "button",
113
115
  class: "shrink-0 p-0.5 rounded-full text-muted-foreground hover:text-foreground hover:bg-muted transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary/50",
114
- "aria-label": s.value ? "Hide value" : "Show value",
115
- onClick: u[0] || (u[0] = (S) => s.value = !s.value)
116
+ "aria-label": i.value ? "Hide value" : "Show value",
117
+ onClick: u[0] || (u[0] = (T) => i.value = !i.value)
116
118
  }, [
117
- C(g, {
118
- icon: s.value ? "lucide:eye-off" : "lucide:eye",
119
+ p(g, {
120
+ icon: i.value ? "lucide:eye-off" : "lucide:eye",
119
121
  class: "w-3 h-3"
120
122
  }, null, 8, ["icon"])
121
123
  ], 8, q)
122
- ])) : b.value ? (t(), a("img", {
124
+ ])) : h.value ? (t(), a("img", {
123
125
  key: 3,
124
- src: d.value,
126
+ src: r.value,
125
127
  alt: y.value,
126
128
  class: "w-8 h-8 rounded-full object-cover border border-border mt-0.5"
127
129
  }, null, 8, A)) : (t(), a(m, { key: 4 }, [
128
- e.field.type === "price" ? (t(), v(k, {
130
+ e.field.type === "price" ? (t(), f(k, {
129
131
  key: 0,
130
132
  value: o.value,
131
- class: i(["text-sm font-semibold text-foreground break-words leading-snug", r.value])
133
+ class: s(["text-sm font-semibold text-foreground wrap-break-word leading-snug", d.value])
132
134
  }, null, 8, ["value", "class"])) : (t(), a("span", {
133
135
  key: 1,
134
- class: i(["text-sm font-semibold text-foreground break-words leading-snug", r.value]),
135
- innerHTML: d.value
136
+ class: s(["text-sm font-semibold text-foreground wrap-break-word leading-snug", d.value]),
137
+ innerHTML: r.value
136
138
  }, null, 10, G))
137
139
  ], 64))
138
140
  ])
139
- ], 2)) : H.value ? (t(), a("div", {
141
+ ], 2)) : S.value ? (t(), a("div", {
140
142
  key: 1,
141
- class: i(["list-field-row list-field-row--block flex flex-col gap-y-1 px-3 py-2.5 transition-colors w-full", [
143
+ class: s(["list-field-row list-field-row--block flex flex-col gap-y-1 px-3 py-2.5 transition-colors w-full", [
142
144
  e.showBorderBottom && !e.isLast ? "border-b border-border" : "",
143
145
  B.value ? "bg-muted/40" : "",
144
146
  e.variant === "compact" ? "py-1.5!" : "",
@@ -147,66 +149,66 @@ const E = { class: "flex items-center gap-2 min-w-0" }, F = { class: "text-xs fo
147
149
  role: "row"
148
150
  }, [
149
151
  c("div", J, [
150
- e.field.icon ? (t(), v(g, {
152
+ e.field.icon ? (t(), f(g, {
151
153
  key: 0,
152
154
  icon: e.field.icon,
153
155
  class: "w-3.5 h-3.5 text-gray-800 shrink-0"
154
- }, null, 8, ["icon"])) : h("", !0),
155
- c("span", K, x(y.value) + x(e.showColon ? ":" : ""), 1)
156
+ }, null, 8, ["icon"])) : x("", !0),
157
+ c("span", K, b(y.value) + b(e.showColon ? ":" : ""), 1)
156
158
  ]),
157
159
  c("div", P, [
158
160
  n.$slots[e.field.key] ? w(n.$slots, e.field.key, {
159
161
  key: 0,
160
162
  value: o.value,
161
- resolved: d.value,
163
+ resolved: r.value,
162
164
  data: e.data
163
- }) : e.field.component ? (t(), v(L(e.field.component), {
165
+ }) : e.field.component ? (t(), f(L(e.field.component), {
164
166
  key: 1,
165
167
  data: e.data,
166
168
  value: o.value
167
169
  }, null, 8, ["data", "value"])) : e.field.isSensitive ? (t(), a("div", Q, [
168
- s.value ? (t(), a(m, { key: 0 }, [
169
- e.field.type === "price" ? (t(), v(k, {
170
+ i.value ? (t(), a(m, { key: 0 }, [
171
+ e.field.type === "price" ? (t(), f(k, {
170
172
  key: 0,
171
173
  value: o.value,
172
- class: i(["text-sm text-gray-600 break-words leading-snug", r.value])
174
+ class: s(["text-sm text-gray-600 wrap-break-word leading-snug", d.value])
173
175
  }, null, 8, ["value", "class"])) : (t(), a("span", {
174
176
  key: 1,
175
- class: i(["text-sm text-gray-600 break-words leading-snug", r.value]),
176
- innerHTML: d.value
177
+ class: s(["text-sm text-gray-600 wrap-break-word leading-snug", d.value]),
178
+ innerHTML: r.value
177
179
  }, null, 10, U))
178
180
  ], 64)) : (t(), a("span", W, " •••••••• ")),
179
181
  c("button", {
180
182
  type: "button",
181
183
  class: "shrink-0 p-1 rounded-full text-muted-foreground hover:text-foreground hover:bg-muted transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary/50",
182
- "aria-label": s.value ? "Hide value" : "Show value",
183
- onClick: u[1] || (u[1] = (S) => s.value = !s.value)
184
+ "aria-label": i.value ? "Hide value" : "Show value",
185
+ onClick: u[1] || (u[1] = (T) => i.value = !i.value)
184
186
  }, [
185
- C(g, {
186
- icon: s.value ? "lucide:eye-off" : "lucide:eye",
187
+ p(g, {
188
+ icon: i.value ? "lucide:eye-off" : "lucide:eye",
187
189
  class: "w-3.5 h-3.5"
188
190
  }, null, 8, ["icon"])
189
191
  ], 8, X)
190
- ])) : b.value ? (t(), a("img", {
192
+ ])) : h.value ? (t(), a("img", {
191
193
  key: 3,
192
- src: d.value,
194
+ src: r.value,
193
195
  alt: y.value,
194
196
  class: "w-8 h-8 rounded-full object-cover border border-border"
195
197
  }, null, 8, Z)) : (t(), a(m, { key: 4 }, [
196
- e.field.type === "price" ? (t(), v(k, {
198
+ e.field.type === "price" ? (t(), f(k, {
197
199
  key: 0,
198
200
  value: o.value,
199
- class: i(["text-sm text-gray-900 break-words leading-snug", r.value])
201
+ class: s(["text-sm text-gray-900 wrap-break-word leading-snug", d.value])
200
202
  }, null, 8, ["value", "class"])) : (t(), a("span", {
201
203
  key: 1,
202
- class: i(["text-sm text-gray-900 break-words leading-snug", r.value]),
203
- innerHTML: d.value
204
+ class: s(["text-sm text-gray-900 wrap-break-word leading-snug", d.value]),
205
+ innerHTML: r.value
204
206
  }, null, 10, _))
205
207
  ], 64))
206
208
  ])
207
209
  ], 2)) : (t(), a("div", {
208
210
  key: 2,
209
- class: i(["list-field-row flex justify-between gap-3 px-3 py-2.5 transition-colors", [
211
+ class: s(["list-field-row flex justify-between gap-3 px-3 py-2.5 transition-colors", [
210
212
  e.showBorderBottom && !e.isLast ? "border-b border-border" : "",
211
213
  B.value ? "bg-muted/40" : "",
212
214
  e.variant === "compact" ? "py-1.5!" : "",
@@ -215,60 +217,60 @@ const E = { class: "flex items-center gap-2 min-w-0" }, F = { class: "text-xs fo
215
217
  role: "row"
216
218
  }, [
217
219
  c("div", ee, [
218
- e.field.icon ? (t(), v(g, {
220
+ e.field.icon ? (t(), f(g, {
219
221
  key: 0,
220
222
  icon: e.field.icon,
221
223
  class: "w-3.5 h-3.5 text-gray-800 shrink-0"
222
- }, null, 8, ["icon"])) : h("", !0),
223
- c("span", te, x(y.value) + x(e.showColon ? ":" : ""), 1)
224
+ }, null, 8, ["icon"])) : x("", !0),
225
+ c("span", te, b(y.value) + b(e.showColon ? ":" : ""), 1)
224
226
  ]),
225
227
  c("div", le, [
226
228
  n.$slots[e.field.key] ? w(n.$slots, e.field.key, {
227
229
  key: 0,
228
230
  value: o.value,
229
- resolved: d.value,
231
+ resolved: r.value,
230
232
  data: e.data
231
- }) : e.field.component ? (t(), v(L(e.field.component), {
233
+ }) : e.field.component ? (t(), f(L(e.field.component), {
232
234
  key: 1,
233
235
  data: e.data,
234
236
  value: o.value
235
237
  }, null, 8, ["data", "value"])) : e.field.isSensitive ? (t(), a(m, { key: 2 }, [
236
- s.value ? (t(), a(m, { key: 0 }, [
237
- e.field.type === "price" ? (t(), v(k, {
238
+ i.value ? (t(), a(m, { key: 0 }, [
239
+ e.field.type === "price" ? (t(), f(k, {
238
240
  key: 0,
239
241
  value: o.value,
240
- class: i(["text-sm text-gray-600 text-right break-words", r.value])
242
+ class: s(["text-sm text-gray-600 text-right wrap-break-word", d.value])
241
243
  }, null, 8, ["value", "class"])) : (t(), a("span", {
242
244
  key: 1,
243
- class: i(["text-sm text-gray-600 text-right break-words", r.value]),
244
- innerHTML: d.value
245
+ class: s(["text-sm text-gray-600 text-right wrap-break-word", d.value]),
246
+ innerHTML: r.value
245
247
  }, null, 10, ae))
246
248
  ], 64)) : (t(), a("span", ne, " •••••••• ")),
247
249
  c("button", {
248
250
  type: "button",
249
251
  class: "shrink-0 p-1 rounded-full text-muted-foreground hover:text-foreground hover:bg-muted transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary/50",
250
- "aria-label": s.value ? "Hide value" : "Show value",
251
- onClick: u[2] || (u[2] = (S) => s.value = !s.value)
252
+ "aria-label": i.value ? "Hide value" : "Show value",
253
+ onClick: u[2] || (u[2] = (T) => i.value = !i.value)
252
254
  }, [
253
- C(g, {
254
- icon: s.value ? "lucide:eye-off" : "lucide:eye",
255
+ p(g, {
256
+ icon: i.value ? "lucide:eye-off" : "lucide:eye",
255
257
  class: "w-3.5 h-3.5"
256
258
  }, null, 8, ["icon"])
257
- ], 8, se)
258
- ], 64)) : b.value ? (t(), a("img", {
259
+ ], 8, ie)
260
+ ], 64)) : h.value ? (t(), a("img", {
259
261
  key: 3,
260
- src: d.value,
262
+ src: r.value,
261
263
  alt: y.value,
262
264
  class: "w-8 h-8 rounded-full object-cover border border-border"
263
- }, null, 8, ie)) : (t(), a(m, { key: 4 }, [
264
- e.field.type === "price" ? (t(), v(k, {
265
+ }, null, 8, se)) : (t(), a(m, { key: 4 }, [
266
+ e.field.type === "price" ? (t(), f(k, {
265
267
  key: 0,
266
268
  value: o.value,
267
- class: i(["text-sm text-gray-900 text-right break-words leading-snug", r.value])
269
+ class: s(["text-sm text-gray-900 text-right wrap-break-word leading-snug", d.value])
268
270
  }, null, 8, ["value", "class"])) : (t(), a("span", {
269
271
  key: 1,
270
- class: i(["text-sm text-gray-900 text-right break-words leading-snug", r.value]),
271
- innerHTML: d.value
272
+ class: s(["text-sm text-gray-900 text-right wrap-break-word leading-snug", d.value]),
273
+ innerHTML: r.value
272
274
  }, null, 10, oe))
273
275
  ], 64))
274
276
  ])
@@ -276,5 +278,5 @@ const E = { class: "flex items-center gap-2 min-w-0" }, F = { class: "text-xs fo
276
278
  }
277
279
  });
278
280
  export {
279
- me as default
281
+ ye as default
280
282
  };
@@ -1,7 +1,8 @@
1
+ import { getStatusColorClass } from '../../utils/status';
1
2
  /**
2
3
  * Resolves a dot-notation path from a nested object.
3
4
  * e.g. getObjectValue('location.city', data) => 'New York'
4
5
  */
5
6
  export declare function getObjectValue(path: string, obj: Record<string, any>): any;
6
- export declare function getStatusColorClass(value: any): string;
7
+ export { getStatusColorClass };
7
8
  export declare function formatNumber(value: any): string;
@@ -1,43 +1,12 @@
1
- import { STATUS_MAP as o } from "../StatusChip/status-map.js";
2
- function d(t, e) {
3
- if (!(!t || !e))
4
- return t.includes(".") ? t.split(".").reduce((n, i) => n?.[i], e) : e[t];
1
+ function u(r, e) {
2
+ if (!(!r || !e))
3
+ return r.includes(".") ? r.split(".").reduce((n, t) => n?.[t], e) : e[r];
5
4
  }
6
- const r = {
7
- success: "text-success-dark font-medium",
8
- info: "text-info-dark font-medium",
9
- warning: "text-warning-dark font-medium",
10
- danger: "text-danger-dark font-medium",
11
- secondary: "text-muted-foreground",
12
- teal: "text-teal-subtle-fg font-medium",
13
- indigo: "text-indigo-subtle-fg font-medium",
14
- cyan: "text-cyan-subtle-fg font-medium",
15
- purple: "text-purple-subtle-fg font-medium",
16
- orange: "text-orange-subtle-fg font-medium",
17
- pink: "text-pink-subtle-fg font-medium"
18
- }, u = {
19
- high: "text-danger-dark font-medium",
20
- medium: "text-warning-dark font-medium",
21
- low: "text-muted-foreground",
22
- yes: "text-success-dark font-medium",
23
- no: "text-danger-dark font-medium",
24
- true: "text-success-dark font-medium",
25
- false: "text-danger-dark font-medium"
26
- };
27
- function f(t) {
28
- if (t == null) return "";
29
- const e = String(t).toLowerCase().replace(/[-_\s]/g, "");
30
- if (u[e])
31
- return u[e];
32
- const n = o[e]?.variant;
33
- return n && typeof n == "string" && r[n] ? r[n] : "";
34
- }
35
- function a(t) {
36
- const e = Number(t);
37
- return isNaN(e) ? String(t ?? "--") : new Intl.NumberFormat("en-US").format(e);
5
+ function i(r) {
6
+ const e = Number(r);
7
+ return isNaN(e) ? String(r ?? "--") : new Intl.NumberFormat("en-US").format(e);
38
8
  }
39
9
  export {
40
- a as formatNumber,
41
- d as getObjectValue,
42
- f as getStatusColorClass
10
+ i as formatNumber,
11
+ u as getObjectValue
43
12
  };
@@ -33,8 +33,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
33
33
  variant: "default" | "outline" | "solid" | "floating" | string;
34
34
  size: "sm" | "md" | "lg";
35
35
  rounded: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full" | string;
36
- disabled: boolean;
37
36
  loading: boolean;
37
+ disabled: boolean;
38
38
  modelValue: any[];
39
39
  options: (IDropdownOption | string | number)[];
40
40
  layout: "default" | "grouped";
@@ -27,9 +27,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
27
27
  }>, {
28
28
  class: string;
29
29
  variant: "default" | "pill" | "underline" | "ghost";
30
+ orientation: "horizontal" | "vertical";
30
31
  disabled: boolean;
31
32
  active: boolean;
32
- orientation: "horizontal" | "vertical";
33
33
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
34
34
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
35
  export default _default;
@@ -100,7 +100,7 @@ const Q = {
100
100
  t[4] || (t[4] = l("div", { class: "w-8 h-full bg-gradient-to-r from-background to-transparent" }, null, -1)),
101
101
  l("button", {
102
102
  type: "button",
103
- class: "pointer-events-auto absolute left-0 h-full px-1 flex items-center text-muted-foreground hover:text-foreground transition-colors",
103
+ class: "pointer-events-auto absolute left-0 bg-body h-full px-1 flex items-center text-muted-foreground hover:text-foreground transition-colors",
104
104
  "aria-label": "Scroll tabs left",
105
105
  tabindex: "-1",
106
106
  onClick: t[0] || (t[0] = (e) => R("left"))
@@ -164,7 +164,7 @@ const Q = {
164
164
  t[5] || (t[5] = l("div", { class: "w-8 h-full bg-gradient-to-l from-background to-transparent" }, null, -1)),
165
165
  l("button", {
166
166
  type: "button",
167
- class: "pointer-events-auto absolute right-0 h-full px-1 flex items-center text-muted-foreground hover:text-foreground transition-colors",
167
+ class: "pointer-events-auto absolute right-0 h-full px-1 flex items-center text-muted-foreground hover:text-foreground transition-colors bg-body",
168
168
  "aria-label": "Scroll tabs right",
169
169
  tabindex: "-1",
170
170
  onClick: t[3] || (t[3] = (e) => R("right"))
@@ -3,7 +3,7 @@ import L from "./Icon.vue.js";
3
3
  import v from "./Modal.vue.js";
4
4
  import N from "./CommandPalette/CommandPaletteContent.vue.js";
5
5
  import { $t as U } from "../utils/i18n.js";
6
- /* empty css */
6
+ /* empty css */
7
7
  const V = { class: "block truncate -text-fs-1.5" }, S = { class: "ml-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-medium border border-border/80 bg-background text-muted-foreground ml-1" }, A = /* @__PURE__ */ x({
8
8
  __name: "NavbarCommandPalette",
9
9
  props: {
@@ -15,13 +15,13 @@ export interface NumberInputProps {
15
15
  }
16
16
  declare const _default: import('vue').DefineComponent<NumberInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
17
  blur: (event: FocusEvent) => any;
18
- change: (value: number) => any;
19
18
  focus: (event: FocusEvent) => any;
19
+ change: (value: number) => any;
20
20
  "update:modelValue": (value: number) => any;
21
21
  }, string, import('vue').PublicProps, Readonly<NumberInputProps> & Readonly<{
22
22
  onBlur?: (event: FocusEvent) => any;
23
- onChange?: (value: number) => any;
24
23
  onFocus?: (event: FocusEvent) => any;
24
+ onChange?: (value: number) => any;
25
25
  "onUpdate:modelValue"?: (value: number) => any;
26
26
  }>, {
27
27
  mode: "solid" | "outline" | "ghost";
@@ -1,7 +1,7 @@
1
1
  import o from "./NumberInput.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a98afd3e"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-651a2b21"]]);
5
5
  export {
6
- p as default
6
+ a as default
7
7
  };