vlite3 0.4.6 → 0.4.8
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/components/Accordion/AccordionItem.vue.js +33 -32
- package/components/Accordion/types.d.ts +2 -0
- package/components/Alert.vue.d.ts +2 -0
- package/components/Alert.vue.js +38 -36
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +1 -1
- package/components/AvatarUploader/AvatarUploader.vue.js +25 -24
- package/components/Button.vue.d.ts +1 -1
- package/components/Button.vue.js +37 -35
- package/components/CheckBox.vue.d.ts +1 -0
- package/components/CheckBox.vue.js +40 -40
- package/components/Chip/Chip.vue.js +55 -55
- package/components/Chip/types.d.ts +1 -0
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +5 -0
- package/components/ChoiceBox/ChoiceBox.vue.js +61 -58
- package/components/ColorPicker/ColorPicker.vue.js +3 -2
- package/components/ConfirmationModal.vue.d.ts +4 -2
- package/components/ConfirmationModal.vue.js +48 -33
- package/components/DataList/DataList.vue.d.ts +0 -2
- package/components/DataList/DataList.vue.js +39 -35
- package/components/DataList/types.d.ts +2 -0
- package/components/DataTable/DataTable.vue.d.ts +0 -5
- package/components/DataTable/DataTable.vue.js +177 -158
- package/components/DataTable/DataTableHeader.vue.js +15 -14
- package/components/DataTable/DataTableToolbar.vue.d.ts +1 -1
- package/components/DataTable/DataTableToolbar.vue.js +30 -23
- package/components/DataTable/types.d.ts +4 -0
- package/components/DatePicker.vue.d.ts +1 -0
- package/components/DatePicker.vue.js +32 -25
- package/components/Dropdown/DropdownBooleanItem.vue.js +18 -17
- package/components/Dropdown/DropdownGroupedLayout.vue.js +28 -27
- package/components/Dropdown/DropdownItem.vue.js +24 -23
- package/components/Dropdown/DropdownMenu.vue.js +100 -91
- package/components/Dropdown/composables/useDropdownNavigation.js +24 -23
- package/components/Dropdown/composables/useDropdownSelection.js +19 -17
- package/components/Empty/Empty.vue.d.ts +2 -2
- package/components/Empty/Empty.vue.js +32 -18
- package/components/FilePicker/FilePicker.vue.d.ts +3 -1
- package/components/FilePicker/FilePicker.vue.js +140 -127
- package/components/FileTree/FileTree.vue.js +68 -58
- package/components/FileTree/FileTreeNode.vue.js +35 -34
- package/components/FileTree/types.d.ts +3 -0
- package/components/Form/CustomFields.vue.d.ts +3 -1
- package/components/Form/CustomFields.vue.js +2 -2
- package/components/Form/CustomFields.vue2.js +92 -80
- package/components/Form/Form.vue.d.ts +1 -1
- package/components/Form/FormField.vue.d.ts +1 -1
- package/components/Form/FormField.vue.js +60 -59
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +58 -57
- package/components/Form/composables/useForm.js +102 -90
- package/components/Form/types.d.ts +4 -0
- package/components/GoogleLogin.vue.d.ts +1 -1
- package/components/GoogleLogin.vue.js +39 -32
- package/components/Heatmap/Heatmap.vue2.js +3 -2
- package/components/IconPicker.vue.d.ts +2 -0
- package/components/IconPicker.vue.js +37 -29
- package/components/Input.vue.d.ts +1 -1
- package/components/Input.vue.js +96 -98
- package/components/Kanban/KanbanBoard.vue.js +1 -1
- package/components/Kanban/KanbanBoard.vue2.js +55 -54
- package/components/Kanban/types.d.ts +1 -0
- package/components/Masonry/Masonry.vue2.js +3 -2
- package/components/Modal.vue.d.ts +2 -0
- package/components/Modal.vue.js +62 -57
- package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
- package/components/MultiSelect/MultiSelect.vue.js +61 -54
- package/components/Navbar/Navbar.vue.js +46 -46
- package/components/Pagination/Pagination.vue.js +116 -97
- package/components/PricingPlan/PricingPlanItem.vue.js +60 -47
- package/components/PricingPlan/types.d.ts +5 -0
- package/components/Screen/Screen.vue.d.ts +0 -4
- package/components/Screen/Screen.vue.js +231 -189
- package/components/Screen/ScreenFilter.vue.js +73 -63
- package/components/Screen/types.d.ts +5 -0
- package/components/SidePanel.vue.d.ts +2 -0
- package/components/SidePanel.vue.js +140 -5
- package/components/SidePanel.vue2.js +2 -135
- package/components/SidebarMenu/SidebarMenuItem.vue.js +131 -130
- package/components/SidebarMenu/types.d.ts +1 -0
- package/components/Slider.vue.d.ts +1 -0
- package/components/Slider.vue.js +71 -69
- package/components/Switch.vue.d.ts +1 -0
- package/components/Switch.vue.js +23 -18
- package/components/Tabes/Tabes.vue.js +20 -19
- package/components/Tabes/types.d.ts +1 -0
- package/components/Textarea.vue.d.ts +1 -0
- package/components/Textarea.vue.js +18 -16
- package/components/ThemeToggle.vue.js +24 -14
- package/components/Timeline.vue.js +68 -82
- package/components/ToastNotification.vue.js +2 -2
- package/components/Tooltip.vue.d.ts +4 -3
- package/components/Tooltip.vue.js +17 -15
- package/components/Workbook/Sheet.vue.js +80 -71
- package/components/Workbook/WorkbookAddButton.vue.js +14 -10
- package/components/Workbook/types.d.ts +1 -0
- package/core/config.d.ts +2 -0
- package/index.d.ts +1 -0
- package/index.js +28 -26
- package/package.json +1 -1
- package/style.css +1 -2
- package/types/button.d.ts +1 -0
- package/types/config.type.d.ts +10 -0
- package/types/form.type.d.ts +2 -0
- package/types/styles.d.ts +3 -0
- package/types/timeline.type.d.ts +2 -0
- package/utils/i18n.d.ts +8 -0
- package/utils/i18n.js +5 -0
- package/utils/index.d.ts +1 -0
|
@@ -1,153 +1,165 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { initializeFormValues as B, deepClone as
|
|
1
|
+
import { ref as y, computed as J, watch as K } from "vue";
|
|
2
|
+
import { initializeFormValues as B, deepClone as F, cleanSubmitValues as Q, getNestedValue as M, evaluateConditional as j, setNestedValue as V, collectFileFields as W, filterNullCustomFields as X } from "../utils/form.utils.js";
|
|
3
3
|
import { useFileUpload as Y } from "./useFileUpload.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { $t as Z } from "../../../utils/i18n.js";
|
|
5
|
+
function ne(S) {
|
|
6
|
+
const { schema: f, values: x, isUpdate: b = !1, folderId: U, onSubmit: E } = S, { handleUploadFile: C } = Y(), i = y(B(f, x)), d = y({}), A = y(!1), v = y(!1), z = y(F(i.value)), h = J(() => f ? Array.isArray(f[0]) ? f.flat() : f : []);
|
|
7
|
+
K(
|
|
8
|
+
() => x,
|
|
8
9
|
(e) => {
|
|
9
|
-
e && (
|
|
10
|
+
e && (i.value = B(f, e), z.value = F(i.value), v.value = !1);
|
|
10
11
|
},
|
|
11
12
|
{ deep: !0 }
|
|
12
13
|
);
|
|
13
|
-
const
|
|
14
|
-
values:
|
|
15
|
-
isUpdate:
|
|
16
|
-
}),
|
|
17
|
-
l ?
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
}, O = (e) => e.when ?
|
|
21
|
-
const l =
|
|
14
|
+
const w = () => ({
|
|
15
|
+
values: i.value,
|
|
16
|
+
isUpdate: b
|
|
17
|
+
}), I = (e) => M(i.value, e), T = (e) => d.value[e] || "", N = (e, l) => {
|
|
18
|
+
l ? d.value[e] = l : delete d.value[e];
|
|
19
|
+
}, g = () => {
|
|
20
|
+
d.value = {};
|
|
21
|
+
}, O = (e) => e.when ? j(e.when, w()) : !0, $ = (e) => j(e.disabled, w()), L = (e) => j(e.readonly, w()), D = (e) => {
|
|
22
|
+
const l = I(e.name);
|
|
22
23
|
let a = "";
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
const o = e.labelI18n ? Z(e.labelI18n) : typeof e.label == "string" ? e.label : e.name;
|
|
25
|
+
if (e.required && (l == null || l === "" || Array.isArray(l) && l.length === 0) && (a = `${o} is required`), !a && e.maxFileSize) {
|
|
26
|
+
const n = e.maxFileSize * 1024 * 1024;
|
|
25
27
|
if (l != null && l !== "") {
|
|
26
|
-
const
|
|
27
|
-
for (const
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
a = `${
|
|
28
|
+
const t = Array.isArray(l) ? l : [l];
|
|
29
|
+
for (const r of t) {
|
|
30
|
+
const s = r instanceof File ? r.size : r?.fileSize || r?.file?.size || r?.size;
|
|
31
|
+
if (s !== void 0 && s > n) {
|
|
32
|
+
a = `${o} size must be less than ${e.maxFileSize}MB`;
|
|
31
33
|
break;
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
if (!a && (e.type === "file" || e.type === "fileUploader") && (e.props?.multiple || e.maxFiles)) {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
+
const n = e.maxFiles || e.props?.maxFiles;
|
|
40
|
+
n && Array.isArray(l) && l.length > n && (a = `Maximum ${n} files allowed`);
|
|
39
41
|
}
|
|
40
42
|
return !a && e.validation && (a = e.validation({
|
|
41
43
|
value: l,
|
|
42
|
-
values:
|
|
43
|
-
isUpdate:
|
|
44
|
-
})), a ?
|
|
45
|
-
},
|
|
46
|
-
|
|
44
|
+
values: i.value,
|
|
45
|
+
isUpdate: b
|
|
46
|
+
})), a ? d.value[e.name] = a : delete d.value[e.name], a;
|
|
47
|
+
}, P = () => {
|
|
48
|
+
g();
|
|
47
49
|
let e = !0;
|
|
48
|
-
for (const l of
|
|
49
|
-
if (!O(l) ||
|
|
50
|
-
|
|
50
|
+
for (const l of h.value) {
|
|
51
|
+
if (!O(l) || $(l)) continue;
|
|
52
|
+
D(l) && (e = !1);
|
|
51
53
|
}
|
|
52
54
|
return e;
|
|
53
55
|
}, R = (e, l, a) => {
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
57
|
-
const n =
|
|
58
|
-
values:
|
|
56
|
+
i.value = V(i.value, e, l), v.value = !0, delete d.value[e];
|
|
57
|
+
const o = h.value.find((n) => n.name === e);
|
|
58
|
+
if (o?.updateValues) {
|
|
59
|
+
const n = o.updateValues({
|
|
60
|
+
values: i.value,
|
|
59
61
|
data: a,
|
|
60
|
-
isUpdate:
|
|
62
|
+
isUpdate: b,
|
|
61
63
|
updateError: N
|
|
62
64
|
});
|
|
63
|
-
n && typeof n == "object" && (
|
|
65
|
+
n && typeof n == "object" && (i.value = { ...i.value, ...n });
|
|
64
66
|
}
|
|
65
67
|
}, G = async () => {
|
|
66
|
-
const e =
|
|
67
|
-
let
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
const e = F(i.value), l = W(f, e), a = (t, r) => {
|
|
69
|
+
let s = null;
|
|
70
|
+
t instanceof File ? s = t : t && typeof t == "object" && t.file instanceof File && (s = t.file);
|
|
71
|
+
const m = {
|
|
72
|
+
...typeof t == "object" ? t : {},
|
|
73
|
+
fileName: t?.fileName || s?.name || r.split("/").pop() || "unknown",
|
|
74
|
+
fileUrl: r,
|
|
75
|
+
fileType: t?.fileType || s?.type || "application/octet-stream",
|
|
76
|
+
fileSize: t?.fileSize || s?.size || 0
|
|
73
77
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
return delete m.file, delete m.base64, m;
|
|
79
|
+
}, o = l.map(async (t) => {
|
|
80
|
+
const { name: r, value: s, field: m } = t, k = m.returnFileObject === !0;
|
|
81
|
+
if (Array.isArray(s)) {
|
|
82
|
+
const q = s.map(async (u) => {
|
|
83
|
+
if (u instanceof File || u && typeof u == "object" && u.file instanceof File) {
|
|
84
|
+
const p = await C(u, U);
|
|
85
|
+
return p ? k ? a(u, p) : p : null;
|
|
81
86
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
87
|
+
if (u && typeof u == "object") {
|
|
88
|
+
const p = { ...u };
|
|
89
|
+
return delete p.file, delete p.base64, p;
|
|
90
|
+
}
|
|
91
|
+
return u;
|
|
92
|
+
}), c = await Promise.all(q);
|
|
93
|
+
return { name: r, value: c };
|
|
85
94
|
} else {
|
|
86
|
-
if (
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
return { name:
|
|
95
|
+
if (s instanceof File || s && typeof s == "object" && s.file instanceof File) {
|
|
96
|
+
const c = await C(s, U);
|
|
97
|
+
if (c)
|
|
98
|
+
return { name: r, value: k ? a(s, c) : c };
|
|
99
|
+
} else if (s && typeof s == "object") {
|
|
100
|
+
const c = { ...s };
|
|
101
|
+
return delete c.file, delete c.base64, { name: r, value: c };
|
|
90
102
|
}
|
|
91
103
|
return null;
|
|
92
104
|
}
|
|
93
105
|
});
|
|
94
|
-
return (await Promise.all(
|
|
95
|
-
|
|
106
|
+
return (await Promise.all(o)).forEach((t) => {
|
|
107
|
+
t && (Object.assign(e, V(e, t.name, t.value)), i.value = V(i.value, t.name, t.value));
|
|
96
108
|
}), e;
|
|
97
109
|
}, H = (e) => {
|
|
98
110
|
const l = { ...e };
|
|
99
|
-
for (const a of
|
|
111
|
+
for (const a of h.value)
|
|
100
112
|
if (a.type === "customFields" && a.props?.schema) {
|
|
101
|
-
const
|
|
102
|
-
if (Array.isArray(
|
|
103
|
-
const n = X(
|
|
104
|
-
Object.assign(l,
|
|
113
|
+
const o = M(l, a.name);
|
|
114
|
+
if (Array.isArray(o)) {
|
|
115
|
+
const n = X(o, a.props.schema);
|
|
116
|
+
Object.assign(l, V(l, a.name, n));
|
|
105
117
|
}
|
|
106
118
|
}
|
|
107
119
|
return l;
|
|
108
120
|
};
|
|
109
121
|
return {
|
|
110
|
-
formValues:
|
|
111
|
-
errors:
|
|
112
|
-
isSubmitting:
|
|
113
|
-
isDirty:
|
|
122
|
+
formValues: i,
|
|
123
|
+
errors: d,
|
|
124
|
+
isSubmitting: A,
|
|
125
|
+
isDirty: v,
|
|
114
126
|
handleFieldChange: R,
|
|
115
|
-
validateField:
|
|
116
|
-
validateAll:
|
|
127
|
+
validateField: D,
|
|
128
|
+
validateAll: P,
|
|
117
129
|
isFieldVisible: O,
|
|
118
|
-
isFieldDisabled:
|
|
119
|
-
isFieldReadonly:
|
|
120
|
-
getFieldValue:
|
|
130
|
+
isFieldDisabled: $,
|
|
131
|
+
isFieldReadonly: L,
|
|
132
|
+
getFieldValue: I,
|
|
121
133
|
getFieldError: T,
|
|
122
134
|
setFieldError: N,
|
|
123
|
-
clearErrors:
|
|
135
|
+
clearErrors: g,
|
|
124
136
|
resetForm: () => {
|
|
125
|
-
|
|
137
|
+
i.value = F(z.value), g(), v.value = !1;
|
|
126
138
|
},
|
|
127
139
|
handleSubmit: async () => {
|
|
128
|
-
if (
|
|
129
|
-
|
|
140
|
+
if (P()) {
|
|
141
|
+
A.value = !0;
|
|
130
142
|
try {
|
|
131
143
|
let l = await G();
|
|
132
144
|
l = H(l), l = Q(
|
|
133
145
|
l,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
),
|
|
146
|
+
f,
|
|
147
|
+
S.emitFields,
|
|
148
|
+
S.emitFields
|
|
149
|
+
), E && await E({
|
|
138
150
|
values: l,
|
|
139
|
-
isUpdate:
|
|
140
|
-
}),
|
|
151
|
+
isUpdate: b
|
|
152
|
+
}), v.value = !1, z.value = F(l);
|
|
141
153
|
} catch (l) {
|
|
142
154
|
throw console.error("[useForm] Submit error:", l), l;
|
|
143
155
|
} finally {
|
|
144
|
-
|
|
156
|
+
A.value = !1;
|
|
145
157
|
}
|
|
146
158
|
}
|
|
147
159
|
},
|
|
148
|
-
flatSchema:
|
|
160
|
+
flatSchema: h
|
|
149
161
|
};
|
|
150
162
|
}
|
|
151
163
|
export {
|
|
152
|
-
|
|
164
|
+
ne as useForm
|
|
153
165
|
};
|
|
@@ -85,8 +85,12 @@ export interface IForm {
|
|
|
85
85
|
transform?: (value: any, formValues: Record<string, any>) => any;
|
|
86
86
|
/** Field label - can be string or Vue component */
|
|
87
87
|
label?: string | Component;
|
|
88
|
+
/** I18n translation key for the label */
|
|
89
|
+
labelI18n?: string;
|
|
88
90
|
/** Placeholder text */
|
|
89
91
|
placeholder?: string;
|
|
92
|
+
/** I18n translation key for the placeholder */
|
|
93
|
+
placeholderI18n?: string;
|
|
90
94
|
/** Field type - determines which component renders */
|
|
91
95
|
type?: IFormFieldType;
|
|
92
96
|
/** Initial/default value - can be static or function */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface GoogleLoginProps {
|
|
2
2
|
buttonText?: string;
|
|
3
|
+
buttonTextI18n?: string;
|
|
3
4
|
btnClass?: string;
|
|
4
5
|
variant?: any;
|
|
5
6
|
size?: any;
|
|
@@ -30,7 +31,6 @@ declare const __VLS_component: import('vue').DefineComponent<GoogleLoginProps, {
|
|
|
30
31
|
size: any;
|
|
31
32
|
variant: any;
|
|
32
33
|
rounded: any;
|
|
33
|
-
buttonText: string;
|
|
34
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
35
35
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
36
|
export default _default;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, ref as f, computed as g, openBlock as m, createElementBlock as b, renderSlot as v, createVNode as x, normalizeClass as T, unref as p, withCtx as C, createElementVNode as h, toDisplayString as k } from "vue";
|
|
2
2
|
import { useTokenClient as w } from "vue3-google-signin";
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import y from "./Button.vue.js";
|
|
4
|
+
import { $t as i } from "../utils/i18n.js";
|
|
5
|
+
const z = { class: "google-login-wrapper inline-block w-full" }, L = { class: "font-medium" }, G = /* @__PURE__ */ c({
|
|
5
6
|
__name: "GoogleLogin",
|
|
6
7
|
props: {
|
|
7
|
-
buttonText: {
|
|
8
|
+
buttonText: {},
|
|
9
|
+
buttonTextI18n: {},
|
|
8
10
|
btnClass: {},
|
|
9
11
|
variant: { default: "outline" },
|
|
10
12
|
size: { default: "md" },
|
|
@@ -12,42 +14,47 @@ const x = { class: "google-login-wrapper inline-block w-full" }, y = { class: "f
|
|
|
12
14
|
disabled: { type: Boolean, default: !1 }
|
|
13
15
|
},
|
|
14
16
|
emits: ["success", "error"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
onSuccess: (
|
|
18
|
-
|
|
17
|
+
setup(o, { emit: s }) {
|
|
18
|
+
const n = o, l = s, t = f(!1), { login: r, isReady: u } = w({
|
|
19
|
+
onSuccess: (e) => {
|
|
20
|
+
t.value = !1, l("success", e);
|
|
19
21
|
},
|
|
20
|
-
onError: (
|
|
21
|
-
|
|
22
|
+
onError: (e) => {
|
|
23
|
+
t.value = !1, l("error", e);
|
|
22
24
|
}
|
|
23
|
-
}),
|
|
24
|
-
if (!(
|
|
25
|
-
|
|
25
|
+
}), a = () => {
|
|
26
|
+
if (!(n.disabled || t.value)) {
|
|
27
|
+
t.value = !0;
|
|
26
28
|
try {
|
|
27
|
-
|
|
28
|
-
} catch (
|
|
29
|
-
|
|
29
|
+
r();
|
|
30
|
+
} catch (e) {
|
|
31
|
+
t.value = !1, l("error", e);
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
}, d = g(() => {
|
|
35
|
+
if (n.buttonTextI18n) return i(n.buttonTextI18n);
|
|
36
|
+
if (n.buttonText) return n.buttonText;
|
|
37
|
+
const e = i("vlite.googleLogin.buttonText");
|
|
38
|
+
return e !== "vlite.googleLogin.buttonText" ? e : "Sign in with Google";
|
|
39
|
+
});
|
|
40
|
+
return (e, B) => (m(), b("div", z, [
|
|
41
|
+
v(e.$slots, "default", {
|
|
42
|
+
login: a,
|
|
43
|
+
loading: t.value,
|
|
44
|
+
disabled: o.disabled
|
|
38
45
|
}, () => [
|
|
39
|
-
|
|
40
|
-
variant:
|
|
41
|
-
size:
|
|
42
|
-
rounded:
|
|
43
|
-
disabled: !
|
|
44
|
-
loading:
|
|
45
|
-
class:
|
|
46
|
+
x(y, {
|
|
47
|
+
variant: o.variant,
|
|
48
|
+
size: o.size,
|
|
49
|
+
rounded: o.rounded,
|
|
50
|
+
disabled: !p(u) || o.disabled || t.value,
|
|
51
|
+
loading: t.value,
|
|
52
|
+
class: T([o.btnClass, "w-full"]),
|
|
46
53
|
icon: "flat-color-icons:google",
|
|
47
|
-
onClick:
|
|
54
|
+
onClick: a
|
|
48
55
|
}, {
|
|
49
56
|
default: C(() => [
|
|
50
|
-
h("span",
|
|
57
|
+
h("span", L, k(d.value), 1)
|
|
51
58
|
]),
|
|
52
59
|
_: 1
|
|
53
60
|
}, 8, ["variant", "size", "rounded", "disabled", "loading", "class"])
|
|
@@ -56,5 +63,5 @@ const x = { class: "google-login-wrapper inline-block w-full" }, y = { class: "f
|
|
|
56
63
|
}
|
|
57
64
|
});
|
|
58
65
|
export {
|
|
59
|
-
|
|
66
|
+
G as default
|
|
60
67
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent as te, ref as p, computed as c, onMounted as ae, nextTick as U, onUnmounted as le, watch as oe, openBlock as d, createElementBlock as m, normalizeClass as z, createElementVNode as b, normalizeStyle as k, Fragment as E, renderList as W, createBlock as ne, withCtx as se, toDisplayString as j, createCommentVNode as I } from "vue";
|
|
2
2
|
import ie from "../Tooltip.vue.js";
|
|
3
3
|
import { debounce as re } from "../../utils/functions.js";
|
|
4
|
+
import "../../core/config.js";
|
|
4
5
|
const ue = ["onClick", "onMouseenter"], ce = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "heatmap-cell-label"
|
|
@@ -10,7 +11,7 @@ const ue = ["onClick", "onMouseenter"], ce = {
|
|
|
10
11
|
}, ve = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "heatmap-legend"
|
|
13
|
-
}, me = { class: "heatmap-legend-colors" }, ge = ["title"],
|
|
14
|
+
}, me = { class: "heatmap-legend-colors" }, ge = ["title"], xe = /* @__PURE__ */ te({
|
|
14
15
|
__name: "Heatmap",
|
|
15
16
|
props: {
|
|
16
17
|
data: {},
|
|
@@ -322,5 +323,5 @@ const ue = ["onClick", "onMouseenter"], ce = {
|
|
|
322
323
|
}
|
|
323
324
|
});
|
|
324
325
|
export {
|
|
325
|
-
|
|
326
|
+
xe as default
|
|
326
327
|
};
|
|
@@ -1,23 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as g, ref as v, computed as w, openBlock as k, createBlock as y, unref as a, withCtx as n, renderSlot as c, createVNode as s, mergeProps as P } from "vue";
|
|
2
|
+
import $ from "./Dropdown/Dropdown.vue.js";
|
|
3
3
|
import "@iconify/vue";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { $t as d } from "../utils/i18n.js";
|
|
5
|
+
import C from "./Button.vue.js";
|
|
6
|
+
import I from "iconify-icon-picker";
|
|
6
7
|
import "iconify-icon-picker/style.css";
|
|
7
|
-
const
|
|
8
|
+
const z = /* @__PURE__ */ g({
|
|
8
9
|
__name: "IconPicker",
|
|
9
10
|
props: {
|
|
10
11
|
btnProps: {},
|
|
11
12
|
value: { default: "tabler:icons-filled" },
|
|
12
|
-
position: { default: "bottom" }
|
|
13
|
+
position: { default: "bottom" },
|
|
14
|
+
placeholder: {},
|
|
15
|
+
placeholderI18n: {}
|
|
13
16
|
},
|
|
14
17
|
emits: ["onSelect", "onTrigger", "onClose"],
|
|
15
|
-
setup(
|
|
16
|
-
const t =
|
|
18
|
+
setup(o, { emit: u }) {
|
|
19
|
+
const t = o, i = u, m = v(!1), l = () => {
|
|
17
20
|
m.value = !1;
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
+
}, h = (e, r) => {
|
|
22
|
+
i("onSelect", e, r), l();
|
|
23
|
+
}, p = w(() => {
|
|
24
|
+
if (t.placeholderI18n) return d(t.placeholderI18n);
|
|
25
|
+
if (t.placeholder) return t.placeholder;
|
|
26
|
+
const e = d("vlite.iconPicker.search");
|
|
27
|
+
return e !== "vlite.iconPicker.search" ? e : "Search 1000+ icons...";
|
|
28
|
+
}), f = [
|
|
21
29
|
"ri:alert-line",
|
|
22
30
|
"heroicons:arrow-right",
|
|
23
31
|
"lucide:arrow-left",
|
|
@@ -87,38 +95,38 @@ const O = /* @__PURE__ */ p({
|
|
|
87
95
|
"tabler:ruler-2",
|
|
88
96
|
"material-symbols:download-rounded"
|
|
89
97
|
];
|
|
90
|
-
return (
|
|
98
|
+
return (e, r) => (k(), y(a($), {
|
|
91
99
|
className: "max-h-[392px]! min-w-[250px]",
|
|
92
|
-
onOnClose:
|
|
93
|
-
position:
|
|
100
|
+
onOnClose: r[1] || (r[1] = (b) => i("onClose")),
|
|
101
|
+
position: o.position
|
|
94
102
|
}, {
|
|
95
|
-
trigger:
|
|
96
|
-
|
|
97
|
-
s(
|
|
98
|
-
icon:
|
|
103
|
+
trigger: n(() => [
|
|
104
|
+
c(e.$slots, "default", {}, () => [
|
|
105
|
+
s(C, P({
|
|
106
|
+
icon: o.value,
|
|
99
107
|
rounded: "md",
|
|
100
108
|
variant: "outline",
|
|
101
|
-
...
|
|
109
|
+
...o.btnProps || {}
|
|
102
110
|
}, {
|
|
103
|
-
onClick:
|
|
111
|
+
onClick: r[0] || (r[0] = (b) => i("onTrigger"))
|
|
104
112
|
}), null, 16)
|
|
105
113
|
])
|
|
106
114
|
]),
|
|
107
|
-
menu:
|
|
108
|
-
|
|
109
|
-
s(
|
|
115
|
+
menu: n(() => [
|
|
116
|
+
c(e.$slots, "menu-top", { close: l }),
|
|
117
|
+
s(a(I), {
|
|
110
118
|
id: "icon-picker",
|
|
111
|
-
placeholder:
|
|
119
|
+
placeholder: p.value,
|
|
112
120
|
"items-per-page": 35,
|
|
113
|
-
value:
|
|
114
|
-
onOnSelect:
|
|
115
|
-
defaultIcons:
|
|
116
|
-
}, null, 8, ["value"])
|
|
121
|
+
value: o.value,
|
|
122
|
+
onOnSelect: h,
|
|
123
|
+
defaultIcons: f
|
|
124
|
+
}, null, 8, ["placeholder", "value"])
|
|
117
125
|
]),
|
|
118
126
|
_: 3
|
|
119
127
|
}, 8, ["position"]));
|
|
120
128
|
}
|
|
121
129
|
});
|
|
122
130
|
export {
|
|
123
|
-
|
|
131
|
+
z as default
|
|
124
132
|
};
|
|
@@ -32,8 +32,8 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {}, {},
|
|
|
32
32
|
size: InputSize;
|
|
33
33
|
variant: InputVariant;
|
|
34
34
|
modelValue: string | number;
|
|
35
|
-
loading: boolean;
|
|
36
35
|
rounded: InputRounded;
|
|
36
|
+
loading: boolean;
|
|
37
37
|
rows: number;
|
|
38
38
|
showClearButton: boolean;
|
|
39
39
|
autofocus: boolean;
|