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.
- package/README.md +4 -1
- package/components/AttachmentsList/AttachmentsList.vue.d.ts +1 -16
- package/components/AttachmentsList/AttachmentsList.vue.js +191 -167
- package/components/AvatarGroup/AvatarGroup.vue.d.ts +24 -0
- package/components/AvatarGroup/AvatarGroup.vue.js +91 -0
- package/components/AvatarGroup/AvatarGroup.vue2.js +4 -0
- package/components/AvatarGroup/index.d.ts +2 -0
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +1 -1
- package/components/Barcode/Barcode.vue.js +6 -5
- package/components/Button.vue.d.ts +1 -1
- package/components/Calendar/Calendar.vue.d.ts +229 -0
- package/components/Calendar/Calendar.vue.js +7 -0
- package/components/Calendar/Calendar.vue2.js +186 -0
- package/components/Calendar/CalendarEventItem.vue.d.ts +17 -0
- package/components/Calendar/CalendarEventItem.vue.js +111 -0
- package/components/Calendar/CalendarEventItem.vue2.js +4 -0
- package/components/Calendar/index.d.ts +2 -0
- package/components/Carousel/Carousel.vue.d.ts +2 -2
- package/components/CategoryManager/CategoryManager.vue.d.ts +2 -1
- package/components/CategoryManager/CategoryManager.vue.js +322 -0
- package/components/CategoryManager/CategoryManager.vue2.js +4 -0
- package/components/CategoryManager/CategoryNode.vue.js +224 -0
- package/components/CategoryManager/CategoryNode.vue2.js +4 -0
- package/components/CategoryManager/types.d.ts +14 -0
- package/components/Chip/Chip.vue.d.ts +2 -2
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/CommandPalette/CommandPaletteContent.vue.js +1 -1
- package/components/CommandPalette/CommandPaletteContent.vue2.js +7 -7
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/ConfirmationModal.vue.d.ts +2 -2
- package/components/CustomFieldsDisplay/CustomFieldsDisplay.vue.d.ts +48 -0
- package/components/CustomFieldsDisplay/CustomFieldsDisplay.vue.js +97 -0
- package/components/CustomFieldsDisplay/CustomFieldsDisplay.vue2.js +4 -0
- package/components/CustomFieldsDisplay/index.d.ts +2 -0
- package/components/CustomFieldsDisplay/types.d.ts +18 -0
- package/components/DataTable/DataTable.vue.d.ts +3 -3
- package/components/DateTime/DateTime.vue.d.ts +2 -0
- package/components/DateTime/DateTime.vue.js +9 -23
- package/components/Dropdown/Dropdown.vue.d.ts +3 -3
- package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +1 -1
- package/components/Dropdown/DropdownMenu.vue.d.ts +2 -2
- package/components/Dropdown/DropdownTrigger.vue.d.ts +1 -1
- package/components/FilePicker/FilePicker.vue.d.ts +1 -1
- package/components/Form/CustomFields.vue.d.ts +1 -1
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +230 -241
- package/components/Form/FormField.vue.d.ts +1 -1
- package/components/Form/composables/useForm.d.ts +2 -0
- package/components/Form/composables/useForm.js +76 -69
- package/components/Form/utils/form.utils.js +66 -66
- package/components/ImportData/ImportData.vue.js +48 -48
- package/components/ImportData/ImportStep2.vue.js +116 -5
- package/components/ImportData/ImportStep2.vue2.js +2 -105
- package/components/Input.vue.d.ts +3 -3
- package/components/Invoice/Invoice.vue.d.ts +3 -0
- package/components/Invoice/Invoice.vue.js +38 -0
- package/components/Invoice/Invoice.vue2.js +4 -0
- package/components/Invoice/InvoiceVariant1.vue.d.ts +13 -0
- package/components/Invoice/InvoiceVariant1.vue.js +360 -0
- package/components/Invoice/InvoiceVariant1.vue2.js +4 -0
- package/components/Invoice/InvoiceVariant2.vue.d.ts +13 -0
- package/components/Invoice/InvoiceVariant2.vue.js +226 -0
- package/components/Invoice/InvoiceVariant2.vue2.js +4 -0
- package/components/Invoice/InvoiceVariant3.vue.d.ts +13 -0
- package/components/Invoice/InvoiceVariant3.vue.js +292 -0
- package/components/Invoice/InvoiceVariant3.vue2.js +4 -0
- package/components/Invoice/InvoiceVariant4.vue.d.ts +13 -0
- package/components/Invoice/InvoiceVariant4.vue.js +343 -0
- package/components/Invoice/InvoiceVariant4.vue2.js +4 -0
- package/components/Invoice/index.d.ts +2 -0
- package/components/Invoice/types.d.ts +97 -0
- package/components/List/List.vue.d.ts +1 -9
- package/components/List/List.vue.js +166 -165
- package/components/List/ListFieldRow.vue.d.ts +10 -2
- package/components/List/ListFieldRow.vue.js +80 -78
- package/components/List/utils.d.ts +2 -1
- package/components/List/utils.js +8 -39
- package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
- package/components/Navbar/NavbarItem.vue.d.ts +1 -1
- package/components/Navbar/NavbarTabs.vue.js +2 -2
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/NumberInput.vue.d.ts +2 -2
- package/components/NumberInput.vue.js +2 -2
- package/components/NumberInput.vue2.js +38 -38
- package/components/OTPInput/OTPInput.vue.d.ts +1 -1
- package/components/PricingPlan/PricingPlan.vue.d.ts +1 -1
- package/components/Screen/ScreenFilter.vue.js +22 -21
- package/components/Screen/components/ScreenQuickFilters.vue.js +6 -5
- package/components/SidebarMenu/SidebarMenu.vue.d.ts +1 -1
- package/components/Stats/Stats.vue.d.ts +1 -1
- package/components/StatusChip/status-map.js +27 -7
- package/components/Tabes/Tabes.vue.d.ts +1 -0
- package/components/Tabes/Tabes.vue.js +2 -2
- package/components/Tabes/Tabes.vue2.js +33 -32
- package/components/ThumbnailSelector/ThumbnailSelector.vue.d.ts +2 -2
- package/components/ThumbnailSelector/ThumbnailSelector.vue.js +2 -2
- package/components/ThumbnailSelector/ThumbnailSelector.vue2.js +141 -115
- package/components/Workbook/Workbook.vue.d.ts +3 -3
- package/core/config.d.ts +76 -0
- package/core/index.js +17 -5
- package/index.d.ts +6 -1
- package/index.js +271 -256
- package/package.json +2 -1
- package/style.css +5 -3
- package/types/config.type.d.ts +6 -0
- package/types/list.type.d.ts +6 -0
- package/utils/configUtils.d.ts +9 -0
- package/utils/configUtils.js +7 -0
- package/utils/index.d.ts +1 -0
- package/utils/status.d.ts +5 -0
- package/utils/status.js +33 -0
- /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, ref as k, watch as q, computed as
|
|
1
|
+
import { defineComponent as E, ref as k, watch as q, computed as a, onBeforeUnmount as L, openBlock as v, createElementBlock as y, normalizeClass as u, withModifiers as i, createVNode as h, createCommentVNode as P, createElementVNode as p, withKeys as z } from "vue";
|
|
2
2
|
import g from "./Icon.vue.js";
|
|
3
3
|
const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disabled", "readonly", "onKeydown"], $ = ["disabled"], A = {
|
|
4
4
|
key: 2,
|
|
@@ -29,7 +29,7 @@ const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
29
29
|
l !== void 0 && (d.value = l);
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
|
-
const B = k(null), c =
|
|
32
|
+
const B = k(null), c = a(() => {
|
|
33
33
|
const l = {
|
|
34
34
|
xs: { h: "h-7", text: "text-xs", px: "px-2", icon: "w-3 h-3" },
|
|
35
35
|
sm: { h: "h-8", text: "text-xs", px: "px-2", icon: "w-3.5 h-3.5" },
|
|
@@ -38,7 +38,7 @@ const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
38
38
|
xl: { h: "h-12", text: "text-lg", px: "px-5", icon: "w-6 h-6" }
|
|
39
39
|
};
|
|
40
40
|
return l[n.size] || l.md;
|
|
41
|
-
}), j =
|
|
41
|
+
}), j = a(() => ({
|
|
42
42
|
none: "rounded-none",
|
|
43
43
|
sm: "rounded-sm",
|
|
44
44
|
md: "rounded-md",
|
|
@@ -46,7 +46,7 @@ const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
46
46
|
xl: "rounded-xl",
|
|
47
47
|
"2xl": "rounded-2xl",
|
|
48
48
|
full: "rounded-full"
|
|
49
|
-
})[n.rounded] || "rounded-md"), I =
|
|
49
|
+
})[n.rounded] || "rounded-md"), I = a(() => ({
|
|
50
50
|
none: "rounded-l-none",
|
|
51
51
|
sm: "rounded-l-sm",
|
|
52
52
|
md: "rounded-l-md",
|
|
@@ -54,7 +54,7 @@ const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
54
54
|
xl: "rounded-l-xl",
|
|
55
55
|
"2xl": "rounded-l-2xl",
|
|
56
56
|
full: "rounded-l-full"
|
|
57
|
-
})[n.rounded] || "rounded-l-md"), S =
|
|
57
|
+
})[n.rounded] || "rounded-l-md"), S = a(() => ({
|
|
58
58
|
none: "rounded-r-none",
|
|
59
59
|
sm: "rounded-r-sm",
|
|
60
60
|
md: "rounded-r-md",
|
|
@@ -62,7 +62,7 @@ const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
62
62
|
xl: "rounded-r-xl",
|
|
63
63
|
"2xl": "rounded-r-2xl",
|
|
64
64
|
full: "rounded-r-full"
|
|
65
|
-
})[n.rounded] || "rounded-r-md"), F =
|
|
65
|
+
})[n.rounded] || "rounded-r-md"), F = a(() => [
|
|
66
66
|
"flex items-center w-full relative transition-all duration-200",
|
|
67
67
|
n.disabled ? "opacity-50 cursor-not-allowed" : "",
|
|
68
68
|
n.mode === "solid" ? "bg-muted" : "",
|
|
@@ -70,13 +70,13 @@ const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
70
70
|
n.mode === "ghost" ? "bg-transparent" : "",
|
|
71
71
|
c.value.h,
|
|
72
72
|
j.value
|
|
73
|
-
]), K =
|
|
73
|
+
]), K = a(() => [
|
|
74
74
|
"flex-1 w-full bg-transparent focus:outline-none appearance-none",
|
|
75
75
|
n.variant === "split" ? "text-center" : "text-left pl-3 pr-2",
|
|
76
76
|
"placeholder:text-muted-foreground/50",
|
|
77
77
|
c.value.text,
|
|
78
78
|
n.disabled ? "cursor-not-allowed" : ""
|
|
79
|
-
]), C =
|
|
79
|
+
]), C = a(() => {
|
|
80
80
|
const l = "flex items-center justify-center transition-colors active:scale-95 shrink-0 select-none", e = n.disabled ? "" : "hover:text-primary hover:bg-muted/50";
|
|
81
81
|
return n.size === "xs" || n.size, n.variant === "split" ? n.mode === "solid" ? [
|
|
82
82
|
l,
|
|
@@ -88,9 +88,9 @@ const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
88
88
|
let e = l;
|
|
89
89
|
n.min !== void 0 && e < n.min && (e = n.min), n.max !== void 0 && e > n.max && (e = n.max), d.value = e, m("update:modelValue", e), m("change", e);
|
|
90
90
|
};
|
|
91
|
-
let x = null,
|
|
91
|
+
let x = null, f = null;
|
|
92
92
|
const o = () => {
|
|
93
|
-
x && clearTimeout(x),
|
|
93
|
+
x && clearTimeout(x), f && clearInterval(f), x = null, f = null;
|
|
94
94
|
}, w = () => {
|
|
95
95
|
if (n.disabled || n.readonly || n.max !== void 0 && Number(d.value) >= n.max) {
|
|
96
96
|
o();
|
|
@@ -105,9 +105,9 @@ const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
105
105
|
}
|
|
106
106
|
const l = Number(d.value) || 0;
|
|
107
107
|
s(l - n.step);
|
|
108
|
-
},
|
|
108
|
+
}, b = (l, e) => {
|
|
109
109
|
e.button !== 0 && e.pointerType === "mouse" || (o(), l === "inc" ? w() : N(), x = setTimeout(() => {
|
|
110
|
-
|
|
110
|
+
f = setInterval(() => {
|
|
111
111
|
l === "inc" ? w() : N();
|
|
112
112
|
}, 50);
|
|
113
113
|
}, 400));
|
|
@@ -125,32 +125,32 @@ const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
125
125
|
};
|
|
126
126
|
return L(() => {
|
|
127
127
|
o();
|
|
128
|
-
}), (l, e) => (
|
|
129
|
-
class:
|
|
128
|
+
}), (l, e) => (v(), y("div", {
|
|
129
|
+
class: u([F.value, "overflow-hidden"])
|
|
130
130
|
}, [
|
|
131
|
-
t.variant === "split" ? (
|
|
131
|
+
t.variant === "split" ? (v(), y("button", {
|
|
132
132
|
key: 0,
|
|
133
133
|
tabindex: "-1",
|
|
134
134
|
type: "button",
|
|
135
|
-
class:
|
|
135
|
+
class: u([
|
|
136
136
|
C.value,
|
|
137
137
|
t.mode === "outline" ? "border-r border-input" : "",
|
|
138
138
|
t.variant === "split" && t.mode !== "solid" ? I.value : ""
|
|
139
139
|
]),
|
|
140
140
|
disabled: t.disabled || t.min !== void 0 && Number(d.value) <= t.min,
|
|
141
|
-
onPointerdown: e[0] || (e[0] = (r) =>
|
|
141
|
+
onPointerdown: e[0] || (e[0] = (r) => b("dec", r)),
|
|
142
142
|
onPointerup: o,
|
|
143
143
|
onPointerleave: o,
|
|
144
144
|
onPointercancel: o,
|
|
145
145
|
onContextmenu: e[1] || (e[1] = i(() => {
|
|
146
146
|
}, ["prevent"]))
|
|
147
147
|
}, [
|
|
148
|
-
|
|
148
|
+
h(g, {
|
|
149
149
|
icon: "lucide:minus",
|
|
150
|
-
class:
|
|
150
|
+
class: u(c.value.icon)
|
|
151
151
|
}, null, 8, ["class"])
|
|
152
152
|
], 42, M)) : P("", !0),
|
|
153
|
-
|
|
153
|
+
p("input", {
|
|
154
154
|
ref_key: "inputRef",
|
|
155
155
|
ref: B,
|
|
156
156
|
type: "number",
|
|
@@ -161,7 +161,7 @@ const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
161
161
|
placeholder: t.placeholder,
|
|
162
162
|
disabled: t.disabled,
|
|
163
163
|
readonly: t.readonly,
|
|
164
|
-
class:
|
|
164
|
+
class: u(K.value),
|
|
165
165
|
onInput: R,
|
|
166
166
|
onFocus: e[2] || (e[2] = (r) => m("focus", r)),
|
|
167
167
|
onBlur: T,
|
|
@@ -170,61 +170,61 @@ const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
170
170
|
z(i(N, ["prevent"]), ["down"])
|
|
171
171
|
]
|
|
172
172
|
}, null, 42, U),
|
|
173
|
-
t.variant === "split" ? (
|
|
173
|
+
t.variant === "split" ? (v(), y("button", {
|
|
174
174
|
key: 1,
|
|
175
175
|
tabindex: "-1",
|
|
176
176
|
type: "button",
|
|
177
|
-
class:
|
|
177
|
+
class: u([
|
|
178
178
|
C.value,
|
|
179
179
|
t.mode === "outline" ? "border-l border-input" : "",
|
|
180
180
|
t.variant === "split" && t.mode !== "solid" ? S.value : ""
|
|
181
181
|
]),
|
|
182
182
|
disabled: t.disabled || t.max !== void 0 && Number(d.value) >= t.max,
|
|
183
|
-
onPointerdown: e[3] || (e[3] = (r) =>
|
|
183
|
+
onPointerdown: e[3] || (e[3] = (r) => b("inc", r)),
|
|
184
184
|
onPointerup: o,
|
|
185
185
|
onPointerleave: o,
|
|
186
186
|
onPointercancel: o,
|
|
187
187
|
onContextmenu: e[4] || (e[4] = i(() => {
|
|
188
188
|
}, ["prevent"]))
|
|
189
189
|
}, [
|
|
190
|
-
|
|
190
|
+
h(g, {
|
|
191
191
|
icon: "lucide:plus",
|
|
192
|
-
class:
|
|
192
|
+
class: u(c.value.icon)
|
|
193
193
|
}, null, 8, ["class"])
|
|
194
194
|
], 42, $)) : P("", !0),
|
|
195
|
-
t.variant === "stacked" ? (
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
t.variant === "stacked" ? (v(), y("div", A, [
|
|
196
|
+
p("div", D, [
|
|
197
|
+
p("button", {
|
|
198
198
|
tabindex: "-1",
|
|
199
199
|
type: "button",
|
|
200
|
-
class: "flex-1 flex items-center justify-center bg-gray-100 hover:bg-gray-200 text-muted-foreground hover:text-foreground rounded-t-[3px] border-b border-gray-300 transition-colors disabled:
|
|
200
|
+
class: "flex-1 flex items-center justify-center bg-gray-100 hover:bg-gray-200 text-muted-foreground hover:text-foreground rounded-t-[3px] border-b border-gray-300 transition-colors disabled:cursor-not-allowed",
|
|
201
201
|
disabled: t.disabled || t.max !== void 0 && Number(d.value) >= t.max,
|
|
202
|
-
onPointerdown: e[5] || (e[5] = (r) =>
|
|
202
|
+
onPointerdown: e[5] || (e[5] = (r) => b("inc", r)),
|
|
203
203
|
onPointerup: o,
|
|
204
204
|
onPointerleave: o,
|
|
205
205
|
onPointercancel: o,
|
|
206
206
|
onContextmenu: e[6] || (e[6] = i(() => {
|
|
207
207
|
}, ["prevent"]))
|
|
208
208
|
}, [
|
|
209
|
-
|
|
210
|
-
class:
|
|
209
|
+
h(g, {
|
|
210
|
+
class: u(["text-gray-700/85!", t.size === "xs" || t.size === "sm" ? "w-3 h-3" : "w-3.5 h-3.5"]),
|
|
211
211
|
icon: "mynaui:chevron-up-solid"
|
|
212
212
|
}, null, 8, ["class"])
|
|
213
213
|
], 40, G),
|
|
214
|
-
|
|
214
|
+
p("button", {
|
|
215
215
|
tabindex: "-1",
|
|
216
216
|
type: "button",
|
|
217
|
-
class: "flex-1 flex items-center justify-center bg-gray-100 hover:bg-gray-200 text-muted-foreground hover:text-foreground rounded-b-[3px] transition-colors disabled:
|
|
217
|
+
class: "flex-1 flex items-center justify-center bg-gray-100 hover:bg-gray-200 text-muted-foreground hover:text-foreground rounded-b-[3px] transition-colors disabled:cursor-not-allowed",
|
|
218
218
|
disabled: t.disabled || t.min !== void 0 && Number(d.value) <= t.min,
|
|
219
|
-
onPointerdown: e[7] || (e[7] = (r) =>
|
|
219
|
+
onPointerdown: e[7] || (e[7] = (r) => b("dec", r)),
|
|
220
220
|
onPointerup: o,
|
|
221
221
|
onPointerleave: o,
|
|
222
222
|
onPointercancel: o,
|
|
223
223
|
onContextmenu: e[8] || (e[8] = i(() => {
|
|
224
224
|
}, ["prevent"]))
|
|
225
225
|
}, [
|
|
226
|
-
|
|
227
|
-
class:
|
|
226
|
+
h(g, {
|
|
227
|
+
class: u(["text-gray-700/85!", t.size === "xs" || t.size === "sm" ? "w-3 h-3" : "w-3.5 h-3.5"]),
|
|
228
228
|
icon: "mynaui:chevron-down-solid"
|
|
229
229
|
}, null, 8, ["class"])
|
|
230
230
|
], 40, H)
|
|
@@ -26,9 +26,9 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
26
26
|
mask: boolean;
|
|
27
27
|
variant: "solid" | "outline" | "ghost";
|
|
28
28
|
size: "sm" | "md" | "lg";
|
|
29
|
+
placeholder: string;
|
|
29
30
|
error: boolean;
|
|
30
31
|
disabled: boolean;
|
|
31
|
-
placeholder: string;
|
|
32
32
|
modelValue: string;
|
|
33
33
|
autofocus: boolean;
|
|
34
34
|
attached: boolean;
|
|
@@ -14,8 +14,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
14
14
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
15
15
|
}>, {
|
|
16
16
|
variant: PricingPlanVariant;
|
|
17
|
-
modelValue: string | number | null;
|
|
18
17
|
columns: number | string;
|
|
18
|
+
modelValue: string | number | null;
|
|
19
19
|
items: PricingPlanItemSchema[];
|
|
20
20
|
gap: number;
|
|
21
21
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, ref as M, computed as d, openBlock as
|
|
1
|
+
import { defineComponent as B, ref as M, computed as d, openBlock as i, createBlock as n, withCtx as o, createElementVNode as l, createVNode as a, unref as w, toDisplayString as v, withModifiers as F, setBlockTracking as C, createElementBlock as S } from "vue";
|
|
2
2
|
import f from "../Button.vue.js";
|
|
3
3
|
import j from "../Modal.vue.js";
|
|
4
4
|
import z from "../Dropdown/Dropdown.vue.js";
|
|
@@ -8,22 +8,22 @@ import { $t as y } from "../../utils/i18n.js";
|
|
|
8
8
|
/* empty css */
|
|
9
9
|
import O from "../Form/Form.vue.js";
|
|
10
10
|
/* empty css */
|
|
11
|
+
import "vue-draggable-plus";
|
|
11
12
|
/* empty css */
|
|
12
13
|
import "v-datepicker-lite";
|
|
13
14
|
import "v-datepicker-lite/style.css";
|
|
14
15
|
import "@jaames/iro";
|
|
15
16
|
import "@vueuse/core";
|
|
16
|
-
/* empty css
|
|
17
|
+
/* empty css */
|
|
17
18
|
import "iconify-icon-picker";
|
|
18
19
|
import "iconify-icon-picker/style.css";
|
|
19
|
-
import "vue-draggable-plus";
|
|
20
20
|
/* empty css */
|
|
21
21
|
/* empty css */
|
|
22
22
|
import "../../core/config.js";
|
|
23
23
|
const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }, E = { style: { "will-change": "transform", contain: "layout style" } }, I = {
|
|
24
|
-
class: "
|
|
24
|
+
class: "pt-4 pb-1.5 px-3.5 min-w-[295px]",
|
|
25
25
|
style: { "will-change": "transform", contain: "layout style" }
|
|
26
|
-
},
|
|
26
|
+
}, ie = /* @__PURE__ */ B({
|
|
27
27
|
__name: "ScreenFilter",
|
|
28
28
|
props: {
|
|
29
29
|
schema: {},
|
|
@@ -32,10 +32,10 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["update:modelValue", "change"],
|
|
34
34
|
setup(r, { emit: $ }) {
|
|
35
|
-
const u = r, m = $,
|
|
35
|
+
const u = r, m = $, s = M(!1), p = d(() => u.modelValue ? Object.keys(u.modelValue).filter(
|
|
36
36
|
(e) => u.modelValue[e] !== "" && u.modelValue[e] !== null && u.modelValue[e] !== void 0
|
|
37
37
|
).length : 0), k = (e) => {
|
|
38
|
-
m("update:modelValue", e.values), m("change", e.values),
|
|
38
|
+
m("update:modelValue", e.values), m("change", e.values), s.value = !1;
|
|
39
39
|
}, x = () => {
|
|
40
40
|
m("update:modelValue", {}), m("change", {});
|
|
41
41
|
}, g = d(() => {
|
|
@@ -48,19 +48,19 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
|
|
|
48
48
|
const e = y("vlite.screen.filter");
|
|
49
49
|
return e !== "vlite.screen.filter" ? e : "Filter";
|
|
50
50
|
});
|
|
51
|
-
return (e, t) => r.type === "modal" ? (
|
|
51
|
+
return (e, t) => r.type === "modal" ? (i(), n(j, {
|
|
52
52
|
key: 0,
|
|
53
53
|
title: g.value,
|
|
54
|
-
show:
|
|
55
|
-
"onUpdate:show": t[3] || (t[3] = (c) =>
|
|
54
|
+
show: s.value,
|
|
55
|
+
"onUpdate:show": t[3] || (t[3] = (c) => s.value = c),
|
|
56
56
|
"max-width": "sm:max-w-md"
|
|
57
57
|
}, {
|
|
58
58
|
trigger: o(() => [
|
|
59
|
-
p.value > 0 ? (
|
|
59
|
+
p.value > 0 ? (i(), n(f, {
|
|
60
60
|
key: 0,
|
|
61
61
|
variant: "secondary",
|
|
62
62
|
class: "flex items-center gap-1.5 pl-3 pr-1.5 shrink-0",
|
|
63
|
-
onClick: t[0] || (t[0] = (c) =>
|
|
63
|
+
onClick: t[0] || (t[0] = (c) => s.value = !0)
|
|
64
64
|
}, {
|
|
65
65
|
default: o(() => [
|
|
66
66
|
a(h, {
|
|
@@ -79,10 +79,10 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
|
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
81
81
|
_: 1
|
|
82
|
-
})) : (
|
|
82
|
+
})) : (i(), n(f, {
|
|
83
83
|
key: 1,
|
|
84
84
|
variant: "outline",
|
|
85
|
-
onClick: t[2] || (t[2] = (c) =>
|
|
85
|
+
onClick: t[2] || (t[2] = (c) => s.value = !0),
|
|
86
86
|
title: V.value,
|
|
87
87
|
size: "lg",
|
|
88
88
|
asIcon: "",
|
|
@@ -90,7 +90,7 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
|
|
|
90
90
|
}, {
|
|
91
91
|
default: o(() => [
|
|
92
92
|
l("div", A, [
|
|
93
|
-
t[1] || (C(-1, !0), (t[1] = (
|
|
93
|
+
t[1] || (C(-1, !0), (t[1] = (i(), S("svg", {
|
|
94
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
95
95
|
width: "1.132em",
|
|
96
96
|
height: "1.132em",
|
|
@@ -121,16 +121,16 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
|
|
|
121
121
|
])
|
|
122
122
|
]),
|
|
123
123
|
_: 1
|
|
124
|
-
}, 8, ["title", "show"])) : (
|
|
124
|
+
}, 8, ["title", "show"])) : (i(), n(w(z), {
|
|
125
125
|
key: 1,
|
|
126
|
-
isOpen:
|
|
127
|
-
"onUpdate:isOpen": t[4] || (t[4] = (c) =>
|
|
126
|
+
isOpen: s.value,
|
|
127
|
+
"onUpdate:isOpen": t[4] || (t[4] = (c) => s.value = c),
|
|
128
128
|
"close-on-select": !1,
|
|
129
129
|
position: "bottom-end",
|
|
130
130
|
class: "w-auto"
|
|
131
131
|
}, {
|
|
132
132
|
trigger: o(() => [
|
|
133
|
-
p.value > 0 ? (
|
|
133
|
+
p.value > 0 ? (i(), n(f, {
|
|
134
134
|
key: 0,
|
|
135
135
|
variant: "secondary",
|
|
136
136
|
class: "flex items-center gap-1.5 pl-3 pr-1.5 shrink-0 bg-gray-150! hover:bg-gray-100!",
|
|
@@ -153,7 +153,7 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
|
|
|
153
153
|
])
|
|
154
154
|
]),
|
|
155
155
|
_: 1
|
|
156
|
-
})) : (
|
|
156
|
+
})) : (i(), n(f, {
|
|
157
157
|
key: 1,
|
|
158
158
|
variant: "outline",
|
|
159
159
|
icon: "hugeicons:filter-add",
|
|
@@ -168,6 +168,7 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
|
|
|
168
168
|
schema: r.schema,
|
|
169
169
|
values: r.modelValue,
|
|
170
170
|
"submit-text": b.value,
|
|
171
|
+
"footer-class": "mt-0.5! border-0!",
|
|
171
172
|
"submit-props": {
|
|
172
173
|
size: "sm",
|
|
173
174
|
class: "w-full",
|
|
@@ -182,5 +183,5 @@ const A = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
|
|
|
182
183
|
}
|
|
183
184
|
});
|
|
184
185
|
export {
|
|
185
|
-
|
|
186
|
+
ie as default
|
|
186
187
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as s, computed as i, openBlock as r, createElementBlock as u, createVNode as m, unref as d } from "vue";
|
|
2
2
|
import b from "../../Tabes/Tabes.vue.js";
|
|
3
|
-
const p = { class: "w-max" }, g = /* @__PURE__ */
|
|
3
|
+
const p = { class: "w-max" }, g = /* @__PURE__ */ s({
|
|
4
4
|
__name: "ScreenQuickFilters",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
@@ -8,9 +8,9 @@ const p = { class: "w-max" }, g = /* @__PURE__ */ i({
|
|
|
8
8
|
variant: {}
|
|
9
9
|
},
|
|
10
10
|
emits: ["update:modelValue", "change"],
|
|
11
|
-
setup(a, { emit:
|
|
12
|
-
const
|
|
13
|
-
() =>
|
|
11
|
+
setup(a, { emit: l }) {
|
|
12
|
+
const o = a, n = l, t = i(
|
|
13
|
+
() => o.options.map((e) => ({
|
|
14
14
|
value: e.value,
|
|
15
15
|
icon: e.icon,
|
|
16
16
|
labelI18n: e.labelI18n,
|
|
@@ -25,6 +25,7 @@ const p = { class: "w-max" }, g = /* @__PURE__ */ i({
|
|
|
25
25
|
class: "border-b-0! border-0! pb-0 gap-3!",
|
|
26
26
|
"model-value": a.modelValue,
|
|
27
27
|
options: t.value,
|
|
28
|
+
tabClass: "pb-1.5!",
|
|
28
29
|
variant: a.variant || "line",
|
|
29
30
|
onChange: c
|
|
30
31
|
}, null, 8, ["model-value", "options", "variant"])
|
|
@@ -2,10 +2,10 @@ import { SidebarMenuProps, SidebarMenuItemSchema } from './types';
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<SidebarMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SidebarMenuProps> & Readonly<{}>, {
|
|
3
3
|
variant: "default" | "ghost";
|
|
4
4
|
compact: boolean;
|
|
5
|
+
orientation: "vertical" | "horizontal";
|
|
5
6
|
iconSize: string;
|
|
6
7
|
items: SidebarMenuItemSchema[];
|
|
7
8
|
mobileBreakpoint: "sm" | "md" | "lg" | "xl" | "none";
|
|
8
|
-
orientation: "vertical" | "horizontal";
|
|
9
9
|
allowMultiple: boolean;
|
|
10
10
|
menuOffset: [number, number];
|
|
11
11
|
indentSize: number;
|
|
@@ -2,8 +2,8 @@ import { StatsProps } from './types';
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<StatsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StatsProps> & Readonly<{}>, {
|
|
3
3
|
class: string;
|
|
4
4
|
variant: import('./types').StatsVariant;
|
|
5
|
-
loading: boolean;
|
|
6
5
|
columns: number | string;
|
|
6
|
+
loading: boolean;
|
|
7
7
|
layout: import('./types').StatsLayout;
|
|
8
8
|
attached: boolean;
|
|
9
9
|
iconBoxShape: import('./types').IconBoxShape;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = {
|
|
2
2
|
// ── Active / Positive ──────────────────────────────────────────────────────
|
|
3
3
|
active: { variant: "success", icon: "lucide:check-circle-2" },
|
|
4
4
|
activated: { variant: "success", icon: "lucide:check-circle-2" },
|
|
@@ -24,6 +24,17 @@ const d = {
|
|
|
24
24
|
passed: { variant: "success", icon: "lucide:check-circle-2" },
|
|
25
25
|
instock: { variant: "success", icon: "lucide:package-check" },
|
|
26
26
|
fulfilled: { variant: "success", icon: "lucide:package-check" },
|
|
27
|
+
// ── CRM / Sales / Leads ───────────────────────────────────────────────────
|
|
28
|
+
prospecting: { variant: "indigo", icon: "lucide:search" },
|
|
29
|
+
qualification: { variant: "purple", icon: "lucide:filter" },
|
|
30
|
+
proposal: { variant: "cyan", icon: "lucide:file-text" },
|
|
31
|
+
negotiation: { variant: "orange", icon: "lucide:handshake" },
|
|
32
|
+
won: { variant: "success", icon: "lucide:trophy" },
|
|
33
|
+
closedwon: { variant: "success", icon: "lucide:trophy", label: "Closed Won" },
|
|
34
|
+
lost: { variant: "danger", icon: "lucide:frown" },
|
|
35
|
+
closedlost: { variant: "danger", icon: "lucide:frown", label: "Closed Lost" },
|
|
36
|
+
contacted: { variant: "blue", icon: "lucide:message-square" },
|
|
37
|
+
qualified: { variant: "success", icon: "lucide:user-check" },
|
|
27
38
|
// ── In Progress / Processing / Transit ─────────────────────────────────────
|
|
28
39
|
inprogress: { variant: "info", icon: "lucide:loader-2" },
|
|
29
40
|
processing: { variant: "info", icon: "lucide:loader-2" },
|
|
@@ -55,7 +66,7 @@ const d = {
|
|
|
55
66
|
overdue: { variant: "orange", icon: "lucide:alarm-clock" },
|
|
56
67
|
expiring: { variant: "orange", icon: "lucide:timer" },
|
|
57
68
|
expiringsoon: { variant: "orange", icon: "lucide:timer" },
|
|
58
|
-
low: { variant: "
|
|
69
|
+
low: { variant: "secondary", icon: "lucide:arrow-down" },
|
|
59
70
|
lowstock: { variant: "orange", icon: "lucide:package" },
|
|
60
71
|
warning: { variant: "warning", icon: "lucide:alert-triangle" },
|
|
61
72
|
late: { variant: "orange", icon: "lucide:alarm-clock" },
|
|
@@ -82,12 +93,16 @@ const d = {
|
|
|
82
93
|
void: { variant: "secondary", icon: "lucide:ban" },
|
|
83
94
|
refunded: { variant: "pink", icon: "lucide:corner-up-left" },
|
|
84
95
|
outofstock: { variant: "danger", icon: "lucide:package-x" },
|
|
85
|
-
lost: { variant: "danger", icon: "lucide:x-circle" },
|
|
86
96
|
absent: { variant: "danger", icon: "lucide:user-x" },
|
|
87
97
|
offline: { variant: "secondary", icon: "lucide:wifi-off" },
|
|
88
98
|
danger: { variant: "danger", icon: "lucide:alert-circle" },
|
|
89
99
|
declined: { variant: "danger", icon: "lucide:thumbs-down" },
|
|
90
100
|
laidoff: { variant: "danger", icon: "lucide:user-minus" },
|
|
101
|
+
// ── Communication & Presence ──────────────────────────────────────────────
|
|
102
|
+
incoming: { variant: "blue", icon: "lucide:arrow-down-left" },
|
|
103
|
+
outgoing: { variant: "indigo", icon: "lucide:arrow-up-right" },
|
|
104
|
+
missed: { variant: "danger", icon: "lucide:phone-missed" },
|
|
105
|
+
inperson: { variant: "indigo", icon: "lucide:users", label: "In Person" },
|
|
91
106
|
// ── Priority / Severity ────────────────────────────────────────────────────
|
|
92
107
|
critical: { variant: "danger", icon: "lucide:alert-octagon" },
|
|
93
108
|
high: { variant: "danger", icon: "lucide:arrow-up-circle" },
|
|
@@ -115,6 +130,11 @@ const d = {
|
|
|
115
130
|
unposted: { variant: "secondary", icon: "lucide:file-x" },
|
|
116
131
|
settled: { variant: "success", icon: "lucide:handshake" },
|
|
117
132
|
voided: { variant: "secondary", icon: "lucide:ban" },
|
|
133
|
+
// ── Payment Methods ────────────────────────────────────────────────────────
|
|
134
|
+
cash: { variant: "success", icon: "lucide:banknote" },
|
|
135
|
+
check: { variant: "blue", icon: "lucide:receipt" },
|
|
136
|
+
card: { variant: "purple", icon: "lucide:credit-card" },
|
|
137
|
+
transfer: { variant: "cyan", icon: "lucide:arrow-right-left" },
|
|
118
138
|
// ── HR / Recruiting ────────────────────────────────────────────────────────
|
|
119
139
|
hired: { variant: "success", icon: "lucide:user-check" },
|
|
120
140
|
interviewing: { variant: "indigo", icon: "lucide:users" },
|
|
@@ -142,17 +162,17 @@ const d = {
|
|
|
142
162
|
function n(i) {
|
|
143
163
|
return i.toLowerCase().replace(/[\s_\-]+/g, "");
|
|
144
164
|
}
|
|
145
|
-
function
|
|
165
|
+
function d(i, c) {
|
|
146
166
|
const e = n(i);
|
|
147
167
|
if (c) {
|
|
148
168
|
for (const [a, r] of Object.entries(c))
|
|
149
169
|
if (n(a) === e)
|
|
150
170
|
return r;
|
|
151
171
|
}
|
|
152
|
-
return
|
|
172
|
+
return o[e] ?? { variant: "secondary" };
|
|
153
173
|
}
|
|
154
174
|
export {
|
|
155
|
-
|
|
175
|
+
o as STATUS_MAP,
|
|
156
176
|
n as normalizeStatus,
|
|
157
|
-
|
|
177
|
+
d as resolveStatus
|
|
158
178
|
};
|
|
@@ -11,6 +11,7 @@ interface Props {
|
|
|
11
11
|
* Default: false (horizontal scroll behavior)
|
|
12
12
|
*/
|
|
13
13
|
wrap?: boolean;
|
|
14
|
+
tabClass?: string;
|
|
14
15
|
}
|
|
15
16
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
17
|
change: (value: string | number) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Tabes.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-84e08076"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|