vlite3 1.4.32 → 1.4.33
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/CategoryManager/CategoryManager.vue2.js +1 -1
- package/components/CategoryManager/CategoryNode.vue.js +30 -30
- package/components/CategoryMenu/CategoryMenu.vue.js +9 -11
- package/components/Chart/GanttChart.vue.d.ts +5 -1
- package/components/Chart/GanttChart.vue.js +2 -2
- package/components/Chart/GanttChart.vue2.js +977 -812
- package/components/Chart/GanttChartConnectorRouting.d.ts +83 -0
- package/components/Chart/GanttChartConnectorRouting.js +405 -0
- package/components/Chart/GanttChartDependencyUtils.js +43 -47
- package/components/Chart/types.d.ts +16 -1
- package/components/ColorPicker/ColorIro.vue2.js +78 -64
- package/components/ColorPicker/ColorPicker.vue.d.ts +5 -0
- package/components/ColorPicker/ColorPicker.vue.js +110 -64
- package/components/ColorPicker/constants.d.ts +2 -0
- package/components/ColorPicker/constants.js +4 -0
- package/components/ColorPicker/index.d.ts +1 -0
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/Dropdown/Dropdown.vue.js +100 -97
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Form/{AccordionView.vue2.js → AccordionView.vue.js} +1 -1
- package/components/Form/FormField.vue.js +9 -8
- package/components/Form/index.vue2.js +1 -1
- package/components/Kanban/Kanban.vue.d.ts +16 -2
- package/components/Kanban/Kanban.vue.js +2 -2
- package/components/Kanban/Kanban.vue2.js +150 -86
- package/components/Kanban/types.d.ts +37 -0
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/ToastNotification.vue.js +1 -1
- package/components/ToastNotification.vue2.js +3 -3
- package/components/index.d.ts +1 -1
- package/composables/useKeyStroke.d.ts +18 -0
- package/composables/useKeyStroke.js +103 -77
- package/composables/useTheme.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +235 -233
- package/package.json +10 -3
- package/style.css +1 -1
- package/utils/environment.d.ts +29 -0
- package/utils/environment.js +4 -0
- package/utils/functions.js +14 -13
- /package/components/Dropdown/{DropdownMenu.vue2.js → DropdownMenu.vue3.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as re, ref as a, computed as u, inject as de, onMounted as ue, onUnmounted as ce, watch as x, provide as L, reactive as fe, toRefs as me, openBlock as N, createElementBlock as ve, normalizeStyle as ye, createVNode as R, unref as c, withCtx as m, createBlock as j, normalizeClass as he, createSlots as ge, renderSlot as v, normalizeProps as z, guardReactiveProps as U, createCommentVNode as q, createElementVNode as be } from "vue";
|
|
2
|
+
import Ce from "v-tooltip-lite";
|
|
3
3
|
import "v-tooltip-lite/style.css";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useDropdownIds as
|
|
8
|
-
import { useDropdownSelection as
|
|
9
|
-
import { useDropdownHydration as
|
|
10
|
-
const
|
|
4
|
+
import pe from "./DropdownMenu.vue.js";
|
|
5
|
+
import Se from "./DropdownTrigger.vue.js";
|
|
6
|
+
import we from "../ConfirmationModal.vue.js";
|
|
7
|
+
import { useDropdownIds as Oe } from "./composables/useDropdownIds.js";
|
|
8
|
+
import { useDropdownSelection as $e } from "./composables/useDropdownSelection.js";
|
|
9
|
+
import { useDropdownHydration as Ie } from "./composables/useDropdownHydration.js";
|
|
10
|
+
const Ve = /* @__PURE__ */ re({
|
|
11
11
|
__name: "Dropdown",
|
|
12
12
|
props: {
|
|
13
13
|
selected: {},
|
|
@@ -54,63 +54,65 @@ const He = /* @__PURE__ */ ae({
|
|
|
54
54
|
trigger: { default: "click" }
|
|
55
55
|
},
|
|
56
56
|
emits: ["onSelect", "update:modelValue", "onOpen", "onClose", "update:isOpen", "load-more", "search"],
|
|
57
|
-
setup(t, { emit:
|
|
58
|
-
const
|
|
57
|
+
setup(t, { emit: F }) {
|
|
58
|
+
const n = t, y = F, h = a(!1), g = a(null), G = u(() => n.doubleConfirmation || h.value ? !0 : (n.options ?? []).some(
|
|
59
|
+
(e) => typeof e == "object" && e !== null && !!e.confirmation
|
|
60
|
+
)), r = a({
|
|
59
61
|
title: "Confirm Selection",
|
|
60
62
|
description: "Are you sure you want to select this option?",
|
|
61
63
|
confirmText: "Confirm",
|
|
62
64
|
cancelText: "Cancel",
|
|
63
65
|
variant: "primary"
|
|
64
|
-
}),
|
|
66
|
+
}), J = u(() => n.position ? n.position : n.direction === "rtl" ? "bottom-end" : "bottom-start"), K = u(() => n.nestedPosition ? n.nestedPosition : n.direction === "rtl" ? "left-start" : "right-start"), C = a(n.isOpen || !1), p = a(0), Q = a(null), O = a(null), $ = () => {
|
|
65
67
|
O.value && setTimeout(() => {
|
|
66
68
|
O.value?.focus({ preventScroll: !0 });
|
|
67
69
|
}, 10);
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
70
|
+
}, X = `dropdown-${Math.random().toString(36).substring(2, 9)}`, I = u(() => n.menuId || X), b = a([]), s = de("dropdown-context", null), Y = (e) => {
|
|
71
|
+
b.value.includes(e) || b.value.push(e), s?.registerChildId?.(e);
|
|
72
|
+
}, Z = (e) => {
|
|
73
|
+
b.value = b.value.filter((o) => o !== e), s?.unregisterChildId?.(e);
|
|
72
74
|
};
|
|
73
|
-
|
|
75
|
+
ue(() => {
|
|
74
76
|
s?.registerChildId && s.registerChildId(`#${I.value}`);
|
|
75
|
-
}),
|
|
77
|
+
}), ce(() => {
|
|
76
78
|
s?.unregisterChildId && s.unregisterChildId(`#${I.value}`);
|
|
77
79
|
}), x(
|
|
78
|
-
() =>
|
|
80
|
+
() => n.isOpen,
|
|
79
81
|
(e) => {
|
|
80
82
|
if (e !== void 0) {
|
|
81
|
-
if ((
|
|
83
|
+
if ((n.disabled || n.readonly) && e) return;
|
|
82
84
|
C.value = e;
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
);
|
|
86
88
|
const A = (e) => {
|
|
87
|
-
if (
|
|
88
|
-
C.value = !1,
|
|
89
|
+
if (n.disabled || n.readonly) {
|
|
90
|
+
C.value = !1, y("update:isOpen", !1);
|
|
89
91
|
return;
|
|
90
92
|
}
|
|
91
|
-
C.value = e,
|
|
93
|
+
C.value = e, y("update:isOpen", e), y(e ? "onOpen" : "onClose"), s?.onChildToggle?.(e);
|
|
92
94
|
}, S = () => {
|
|
93
95
|
A(!1);
|
|
94
|
-
},
|
|
96
|
+
}, _ = (e) => {
|
|
95
97
|
e ? p.value++ : p.value = Math.max(0, p.value - 1);
|
|
96
98
|
};
|
|
97
99
|
L("dropdown-context", {
|
|
98
100
|
close: S,
|
|
99
101
|
onChildToggle: (e) => {
|
|
100
|
-
|
|
102
|
+
_(e), s?.onChildToggle?.(e);
|
|
101
103
|
},
|
|
102
|
-
registerChildId:
|
|
103
|
-
unregisterChildId:
|
|
104
|
+
registerChildId: Y,
|
|
105
|
+
unregisterChildId: Z
|
|
104
106
|
}), L("modal-context", null);
|
|
105
|
-
const k =
|
|
107
|
+
const k = u(() => n.options ? n.options.map((e) => typeof e == "string" || typeof e == "number" ? { label: String(e), value: String(e) } : e) : []), w = a([]), E = a(!1), T = a(!1);
|
|
106
108
|
x(
|
|
107
109
|
k,
|
|
108
110
|
(e) => {
|
|
109
111
|
if (e) {
|
|
110
|
-
if (
|
|
112
|
+
if (n.remote) {
|
|
111
113
|
const o = [...w.value];
|
|
112
|
-
e.forEach((
|
|
113
|
-
o.some((i) => i.value !== void 0 &&
|
|
114
|
+
e.forEach((l) => {
|
|
115
|
+
o.some((i) => i.value !== void 0 && l.value !== void 0 ? typeof i.value == "object" && i.key && l.key ? i.key === l.key && i.value[i.key] === l.value[l.key] : i.value === l.value : i.label === l.label) || o.push(l);
|
|
114
116
|
}), w.value = o;
|
|
115
117
|
} else
|
|
116
118
|
w.value = e;
|
|
@@ -121,24 +123,24 @@ const He = /* @__PURE__ */ ae({
|
|
|
121
123
|
},
|
|
122
124
|
{ immediate: !0 }
|
|
123
125
|
);
|
|
124
|
-
const
|
|
125
|
-
const e = [...w.value], o = new Set(e.map((
|
|
126
|
-
return B.value.forEach((
|
|
127
|
-
o.has(d) || (e.unshift(
|
|
126
|
+
const f = u(() => {
|
|
127
|
+
const e = [...w.value], o = new Set(e.map((l) => l.value ?? l.label));
|
|
128
|
+
return B.value.forEach((l, d) => {
|
|
129
|
+
o.has(d) || (e.unshift(l), o.add(d));
|
|
128
130
|
}), e;
|
|
129
|
-
}), { selectedBuffer: B, isHydrating:
|
|
130
|
-
fetchSelected:
|
|
131
|
-
getAvailableOptions: () =>
|
|
131
|
+
}), { selectedBuffer: B, isHydrating: ee, hydrateSelected: H } = Ie({
|
|
132
|
+
fetchSelected: n.fetchSelected,
|
|
133
|
+
getAvailableOptions: () => f.value,
|
|
132
134
|
isReady: () => T.value
|
|
133
|
-
}), { getAllRecursiveIds:
|
|
134
|
-
...
|
|
135
|
-
options:
|
|
136
|
-
}), { currentValue: M, selectedLabel: V, selectedIcon: W, selectOption:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
),
|
|
140
|
-
const e =
|
|
141
|
-
return [.../* @__PURE__ */ new Set([...e, ...o, ...
|
|
135
|
+
}), { getAllRecursiveIds: te } = Oe(), ne = fe({
|
|
136
|
+
...me(n),
|
|
137
|
+
options: f
|
|
138
|
+
}), { currentValue: M, selectedLabel: V, selectedIcon: W, selectOption: le } = $e(
|
|
139
|
+
ne,
|
|
140
|
+
y
|
|
141
|
+
), oe = u(() => {
|
|
142
|
+
const e = n.ignoreClickOutside || [], o = te(f.value);
|
|
143
|
+
return [.../* @__PURE__ */ new Set([...e, ...o, ...b.value])];
|
|
142
144
|
});
|
|
143
145
|
x(
|
|
144
146
|
() => M.value,
|
|
@@ -147,9 +149,9 @@ const He = /* @__PURE__ */ ae({
|
|
|
147
149
|
},
|
|
148
150
|
{ deep: !0 }
|
|
149
151
|
);
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
152
|
-
|
|
152
|
+
const ae = (e) => {
|
|
153
|
+
if (n.disabled || n.readonly || e.disabled) return;
|
|
154
|
+
n.doubleConfirmation || !!e.confirmation ? (g.value = e, typeof e.confirmation == "object" ? r.value = {
|
|
153
155
|
title: e.confirmation.title || "Confirm Selection",
|
|
154
156
|
description: e.confirmation.description || "Are you sure you want to select this option?",
|
|
155
157
|
confirmText: e.confirmation.confirmText || "Confirm",
|
|
@@ -161,50 +163,50 @@ const He = /* @__PURE__ */ ae({
|
|
|
161
163
|
confirmText: "Confirm",
|
|
162
164
|
cancelText: "Cancel",
|
|
163
165
|
variant: "primary"
|
|
164
|
-
},
|
|
166
|
+
}, h.value = !0, S()) : (D(e), n.closeOnSelect && (S(), $()));
|
|
165
167
|
}, D = (e) => {
|
|
166
|
-
if (
|
|
168
|
+
if (n.disabled || n.readonly || e.disabled) return;
|
|
167
169
|
const o = e.value ?? e.label;
|
|
168
170
|
B.value.has(o) || B.value.set(o, e);
|
|
169
|
-
const
|
|
170
|
-
if (!
|
|
171
|
+
const l = le(e);
|
|
172
|
+
if (!n.isNested) {
|
|
171
173
|
const d = e._originalOption || e, i = d.value ?? d.label;
|
|
172
174
|
(e._path || [d]).forEach((P) => {
|
|
173
175
|
typeof P.onSelect == "function" && P.onSelect({
|
|
174
176
|
value: i,
|
|
175
177
|
option: P,
|
|
176
|
-
data:
|
|
177
|
-
values:
|
|
178
|
+
data: f.value || [],
|
|
179
|
+
values: l
|
|
178
180
|
});
|
|
179
181
|
});
|
|
180
182
|
}
|
|
181
|
-
},
|
|
182
|
-
|
|
183
|
-
},
|
|
184
|
-
|
|
183
|
+
}, ie = () => {
|
|
184
|
+
g.value && (D(g.value), g.value = null, h.value = !1, $());
|
|
185
|
+
}, se = () => {
|
|
186
|
+
g.value = null, h.value = !1, $();
|
|
185
187
|
};
|
|
186
|
-
return (e, o) => (
|
|
188
|
+
return (e, o) => (N(), ve("div", {
|
|
187
189
|
class: "relative inline-block text-left",
|
|
188
|
-
style:
|
|
190
|
+
style: ye({ direction: t.direction }),
|
|
189
191
|
ref_key: "dropdownWrapper",
|
|
190
|
-
ref:
|
|
192
|
+
ref: Q
|
|
191
193
|
}, [
|
|
192
|
-
|
|
194
|
+
R(c(Ce), {
|
|
193
195
|
content: "",
|
|
194
196
|
trigger: t.trigger,
|
|
195
197
|
arrow: !1,
|
|
196
198
|
disabled: t.disabled || t.readonly,
|
|
197
199
|
teleport: t.teleport,
|
|
198
200
|
offset: t.offset,
|
|
199
|
-
placement:
|
|
201
|
+
placement: J.value,
|
|
200
202
|
isOpen: C.value,
|
|
201
203
|
keepAlive: p.value > 0,
|
|
202
204
|
menuId: I.value,
|
|
203
|
-
ignoreClickOutside:
|
|
205
|
+
ignoreClickOutside: oe.value,
|
|
204
206
|
class: "w-full flex!",
|
|
205
207
|
className: "dropdown " + (t.className || "") + (t.variant === "transparent" ? " unstyled-dropdown" : "") + (t.variant === "secondary" ? " dropdown-secondary" : ""),
|
|
206
|
-
onOnShow: o[2] || (o[2] = (
|
|
207
|
-
onOnHide: o[3] || (o[3] = (
|
|
208
|
+
onOnShow: o[2] || (o[2] = (l) => e.$emit("onOpen")),
|
|
209
|
+
onOnHide: o[3] || (o[3] = (l) => e.$emit("onClose")),
|
|
208
210
|
"onUpdate:isOpen": A,
|
|
209
211
|
triggerClass: "w-full flex items-center",
|
|
210
212
|
styles: {
|
|
@@ -215,16 +217,16 @@ const He = /* @__PURE__ */ ae({
|
|
|
215
217
|
...t.variant === "transparent" ? { background: "transparent", border: "none", boxShadow: "none" } : {}
|
|
216
218
|
}
|
|
217
219
|
}, {
|
|
218
|
-
trigger: m(({ isOpen:
|
|
219
|
-
v(e.$slots, "trigger", z(
|
|
220
|
-
selectedLabel:
|
|
221
|
-
selectedIcon: t.showSelectedIcon ?
|
|
222
|
-
isOpen:
|
|
220
|
+
trigger: m(({ isOpen: l }) => [
|
|
221
|
+
v(e.$slots, "trigger", z(U({
|
|
222
|
+
selectedLabel: c(V),
|
|
223
|
+
selectedIcon: t.showSelectedIcon ? c(W) : void 0,
|
|
224
|
+
isOpen: l
|
|
223
225
|
})), () => [
|
|
224
|
-
|
|
225
|
-
"selected-label":
|
|
226
|
-
"selected-icon": t.showSelectedIcon ?
|
|
227
|
-
"is-open":
|
|
226
|
+
R(Se, {
|
|
227
|
+
"selected-label": c(V),
|
|
228
|
+
"selected-icon": t.showSelectedIcon ? c(W) : void 0,
|
|
229
|
+
"is-open": l,
|
|
228
230
|
direction: t.direction,
|
|
229
231
|
disabled: t.disabled,
|
|
230
232
|
readonly: t.readonly,
|
|
@@ -234,34 +236,34 @@ const He = /* @__PURE__ */ ae({
|
|
|
234
236
|
])
|
|
235
237
|
]),
|
|
236
238
|
default: m(() => [
|
|
237
|
-
!(t.disabled || t.readonly) && (k.value.length ||
|
|
239
|
+
!(t.disabled || t.readonly) && (k.value.length || f.value.length || e.$slots.menu || e.$slots.item || e.$slots.default || t.remote || t.searchable) ? (N(), j(pe, {
|
|
238
240
|
key: 0,
|
|
239
241
|
options: k.value,
|
|
240
|
-
cachedOptions:
|
|
241
|
-
class:
|
|
242
|
+
cachedOptions: f.value,
|
|
243
|
+
class: he(t.className),
|
|
242
244
|
emptyMessage: t.emptyMessage,
|
|
243
245
|
searchEmptyMessage: t.searchEmptyMessage,
|
|
244
|
-
selected:
|
|
246
|
+
selected: c(M),
|
|
245
247
|
selectedIndex: t.selectedIndex,
|
|
246
248
|
maxHeight: t.maxHeight,
|
|
247
|
-
nestedPosition:
|
|
249
|
+
nestedPosition: K.value,
|
|
248
250
|
nestedOffset: t.nestedOffset,
|
|
249
251
|
selectable: t.selectable,
|
|
250
252
|
direction: t.direction,
|
|
251
253
|
isCustomSlotMenu: !!e.$slots?.default || !!e.$slots?.menu,
|
|
252
254
|
layout: t.layout,
|
|
253
255
|
columns: t.columns,
|
|
254
|
-
loading: t.loading ||
|
|
256
|
+
loading: t.loading || c(ee),
|
|
255
257
|
hasMore: t.hasMore,
|
|
256
258
|
searchable: t.searchable,
|
|
257
259
|
remote: t.remote,
|
|
258
260
|
debounceTime: t.debounceTime,
|
|
259
261
|
trigger: t.trigger,
|
|
260
|
-
onSelect:
|
|
262
|
+
onSelect: ae,
|
|
261
263
|
onClose: S,
|
|
262
|
-
onLoadMore: o[0] || (o[0] = (
|
|
263
|
-
onSearch: o[1] || (o[1] = (
|
|
264
|
-
},
|
|
264
|
+
onLoadMore: o[0] || (o[0] = (l) => e.$emit("load-more")),
|
|
265
|
+
onSearch: o[1] || (o[1] = (l) => e.$emit("search", l))
|
|
266
|
+
}, ge({ _: 2 }, [
|
|
265
267
|
e.$slots.menu || e.$slots?.default ? {
|
|
266
268
|
name: "menu",
|
|
267
269
|
fn: m(() => [
|
|
@@ -272,8 +274,8 @@ const He = /* @__PURE__ */ ae({
|
|
|
272
274
|
} : void 0,
|
|
273
275
|
e.$slots.item ? {
|
|
274
276
|
name: "item",
|
|
275
|
-
fn: m((
|
|
276
|
-
v(e.$slots, "item", z(
|
|
277
|
+
fn: m((l) => [
|
|
278
|
+
v(e.$slots, "item", z(U(l)))
|
|
277
279
|
]),
|
|
278
280
|
key: "1"
|
|
279
281
|
} : void 0,
|
|
@@ -291,21 +293,22 @@ const He = /* @__PURE__ */ ae({
|
|
|
291
293
|
]),
|
|
292
294
|
key: "3"
|
|
293
295
|
} : void 0
|
|
294
|
-
]), 1032, ["options", "cachedOptions", "class", "emptyMessage", "searchEmptyMessage", "selected", "selectedIndex", "maxHeight", "nestedPosition", "nestedOffset", "selectable", "direction", "isCustomSlotMenu", "layout", "columns", "loading", "hasMore", "searchable", "remote", "debounceTime", "trigger"])) :
|
|
296
|
+
]), 1032, ["options", "cachedOptions", "class", "emptyMessage", "searchEmptyMessage", "selected", "selectedIndex", "maxHeight", "nestedPosition", "nestedOffset", "selectable", "direction", "isCustomSlotMenu", "layout", "columns", "loading", "hasMore", "searchable", "remote", "debounceTime", "trigger"])) : q("", !0)
|
|
295
297
|
]),
|
|
296
298
|
_: 3
|
|
297
299
|
}, 8, ["trigger", "disabled", "teleport", "offset", "placement", "isOpen", "keepAlive", "menuId", "ignoreClickOutside", "className", "styles"]),
|
|
298
|
-
N(
|
|
299
|
-
|
|
300
|
+
G.value ? (N(), j(we, {
|
|
301
|
+
key: 0,
|
|
302
|
+
show: h.value,
|
|
300
303
|
title: r.value.title,
|
|
301
304
|
description: r.value.description,
|
|
302
305
|
"confirm-text": r.value.confirmText,
|
|
303
306
|
"cancel-text": r.value.cancelText,
|
|
304
307
|
variant: r.value.variant,
|
|
305
|
-
onConfirm:
|
|
306
|
-
onCancel:
|
|
307
|
-
}, null, 8, ["show", "title", "description", "confirm-text", "cancel-text", "variant"]),
|
|
308
|
-
|
|
308
|
+
onConfirm: ie,
|
|
309
|
+
onCancel: se
|
|
310
|
+
}, null, 8, ["show", "title", "description", "confirm-text", "cancel-text", "variant"])) : q("", !0),
|
|
311
|
+
be("span", {
|
|
309
312
|
ref_key: "focusTrapAfter",
|
|
310
313
|
ref: O,
|
|
311
314
|
tabindex: "-1",
|
|
@@ -316,5 +319,5 @@ const He = /* @__PURE__ */ ae({
|
|
|
316
319
|
}
|
|
317
320
|
});
|
|
318
321
|
export {
|
|
319
|
-
|
|
322
|
+
Ve as default
|
|
320
323
|
};
|
|
@@ -69,7 +69,7 @@ const Be = /* @__PURE__ */ q({
|
|
|
69
69
|
richTextEditor: t(se)
|
|
70
70
|
}, P = t(s), e = d, h = j, o = (a, l) => {
|
|
71
71
|
h("change", { value: a, data: l });
|
|
72
|
-
},
|
|
72
|
+
}, R = (a) => {
|
|
73
73
|
h("change", { value: a });
|
|
74
74
|
}, u = c(() => K(e.field, {
|
|
75
75
|
values: e.values,
|
|
@@ -92,7 +92,7 @@ const Be = /* @__PURE__ */ q({
|
|
|
92
92
|
}, y = X(
|
|
93
93
|
e.field.placeholderI18n,
|
|
94
94
|
e.field.placeholder
|
|
95
|
-
),
|
|
95
|
+
), k = e.variant === "floating" && e.label && !e.floatingActive, f = k ? "" : y;
|
|
96
96
|
if (a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || a === "textarea" || !a)
|
|
97
97
|
return {
|
|
98
98
|
...i,
|
|
@@ -185,7 +185,7 @@ const Be = /* @__PURE__ */ q({
|
|
|
185
185
|
triggerProps: {
|
|
186
186
|
variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline",
|
|
187
187
|
size: e.size,
|
|
188
|
-
...
|
|
188
|
+
...k ? { text: "" } : {}
|
|
189
189
|
}
|
|
190
190
|
};
|
|
191
191
|
if (a === "multiSelect")
|
|
@@ -233,7 +233,7 @@ const Be = /* @__PURE__ */ q({
|
|
|
233
233
|
variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline",
|
|
234
234
|
size: e.size,
|
|
235
235
|
class: "px-3!",
|
|
236
|
-
...
|
|
236
|
+
...k ? { text: "" } : {}
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
239
|
if (a === "dateRangePicker")
|
|
@@ -298,7 +298,8 @@ const Be = /* @__PURE__ */ q({
|
|
|
298
298
|
modelValue: e.value || "#000000",
|
|
299
299
|
variant: e.variant,
|
|
300
300
|
size: e.size,
|
|
301
|
-
rounded: e.rounded
|
|
301
|
+
rounded: e.rounded,
|
|
302
|
+
allowReset: e.field.props?.allowReset ?? !1
|
|
302
303
|
};
|
|
303
304
|
if (a === "iconPicker")
|
|
304
305
|
return {
|
|
@@ -342,14 +343,14 @@ const Be = /* @__PURE__ */ q({
|
|
|
342
343
|
}), N = c(() => {
|
|
343
344
|
const a = u.value;
|
|
344
345
|
return a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || a === "textarea" || a === "switch" || a === "check" || !a ? {
|
|
345
|
-
"update:modelValue":
|
|
346
|
+
"update:modelValue": R
|
|
346
347
|
} : a === "number" && x.value ? {
|
|
347
348
|
"update:modelValue": (l) => {
|
|
348
349
|
const n = l === "" ? void 0 : Number(l);
|
|
349
350
|
h("change", { value: isNaN(n) ? void 0 : n });
|
|
350
351
|
}
|
|
351
352
|
} : a === "number" ? {
|
|
352
|
-
"update:modelValue":
|
|
353
|
+
"update:modelValue": R
|
|
353
354
|
} : a === "select" ? {
|
|
354
355
|
onSelect: (l) => {
|
|
355
356
|
o(l.value, l.data);
|
|
@@ -381,7 +382,7 @@ const Be = /* @__PURE__ */ q({
|
|
|
381
382
|
o(l);
|
|
382
383
|
}
|
|
383
384
|
} : a === "tags" ? {
|
|
384
|
-
"update:modelValue":
|
|
385
|
+
"update:modelValue": R,
|
|
385
386
|
change: (l) => o(l)
|
|
386
387
|
} : a === "richTextEditor" ? {
|
|
387
388
|
"update:modelValue": (l) => o(l)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as b, computed as d, openBlock as n, createElementBlock as g, createElementVNode as R, createBlock as r, withCtx as x, createTextVNode as k, toDisplayString as I, createCommentVNode as v, unref as l } from "vue";
|
|
2
2
|
import B from "./TableView.vue.js";
|
|
3
|
-
import C from "./AccordionView.
|
|
3
|
+
import C from "./AccordionView.vue.js";
|
|
4
4
|
import U from "../Label.vue.js";
|
|
5
5
|
import N from "../Button.vue.js";
|
|
6
6
|
import { useCustomFieldRows as V } from "./composables/useCustomFieldRows.js";
|
|
@@ -32,12 +32,26 @@ declare const __VLS_component: import('vue').DefineComponent<KanbanProps, {}, {}
|
|
|
32
32
|
change: (payload: KanbanChangeEvent) => any;
|
|
33
33
|
move: (payload: KanbanMoveEvent) => any;
|
|
34
34
|
"update:data": (val: Record<string | number, any[]>) => any;
|
|
35
|
-
"item-
|
|
35
|
+
"item-move-failed": (payload: {
|
|
36
|
+
itemId: string | number;
|
|
37
|
+
toColumnId: string | number;
|
|
38
|
+
fromColumnId: string | number;
|
|
39
|
+
newPosition: number;
|
|
40
|
+
item: any;
|
|
41
|
+
error: unknown;
|
|
42
|
+
}) => any;
|
|
36
43
|
}, string, import('vue').PublicProps, Readonly<KanbanProps> & Readonly<{
|
|
37
44
|
onChange?: (payload: KanbanChangeEvent) => any;
|
|
38
45
|
onMove?: (payload: KanbanMoveEvent) => any;
|
|
39
46
|
"onUpdate:data"?: (val: Record<string | number, any[]>) => any;
|
|
40
|
-
"onItem-
|
|
47
|
+
"onItem-move-failed"?: (payload: {
|
|
48
|
+
itemId: string | number;
|
|
49
|
+
toColumnId: string | number;
|
|
50
|
+
fromColumnId: string | number;
|
|
51
|
+
newPosition: number;
|
|
52
|
+
item: any;
|
|
53
|
+
error: unknown;
|
|
54
|
+
}) => any;
|
|
41
55
|
}>, {
|
|
42
56
|
class: string;
|
|
43
57
|
group: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Kanban.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2dd0633e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|