vlite3 1.4.30 → 1.4.32
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/Accordion.vue.js +19 -16
- package/components/Accordion/AccordionContent.vue.js +2 -2
- package/components/Accordion/AccordionItem.vue.js +38 -36
- package/components/CategoryManager/CategoryManager.vue2.js +3 -2
- package/components/Chart/GanttChart.vue.d.ts +13 -1
- package/components/Chart/GanttChart.vue.js +2 -2
- package/components/Chart/GanttChart.vue2.js +1185 -607
- package/components/Chart/GanttChartDateUtils.d.ts +38 -0
- package/components/Chart/GanttChartDateUtils.js +79 -0
- package/components/Chart/GanttChartDependencyUtils.d.ts +92 -0
- package/components/Chart/GanttChartDependencyUtils.js +113 -0
- package/components/Chart/GanttChartResizePreviewUtils.d.ts +52 -0
- package/components/Chart/GanttChartResizePreviewUtils.js +53 -0
- package/components/Chart/GanttChartTooltipUtils.d.ts +41 -0
- package/components/Chart/GanttChartTooltipUtils.js +63 -0
- package/components/Chart/index.d.ts +3 -1
- package/components/Chart/types.d.ts +76 -1
- package/components/Chart/types.js +8 -0
- package/components/FilePicker/FilePickerDropzone.vue.js +1 -1
- package/components/FilePicker/index.vue.js +2 -4
- package/components/Form/AccordionView.vue2.js +5 -2
- package/components/Form/AccordionView.vue3.js +250 -0
- package/components/Form/Form.vue.d.ts +0 -2
- package/components/Form/Form.vue.js +1 -1
- package/components/Form/Form.vue2.js +415 -354
- package/components/Form/FormField.vue.js +175 -196
- package/components/Form/FormFields.vue.js +1 -1
- package/components/Form/FormFields.vue2.js +60 -60
- package/components/Form/FormSkeleton.vue.js +50 -35
- package/components/Form/TableView.vue.js +59 -43
- package/components/Form/composables/useForm.js +159 -148
- package/components/Form/index.vue2.js +8 -8
- package/components/Form/utils/form.utils.d.ts +2 -0
- package/components/Form/utils/form.utils.js +17 -13
- package/components/GoogleMap.vue.d.ts +1 -1
- package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +189 -0
- package/components/PanZoomViewport/PanZoomViewport.vue.js +7 -0
- package/components/PanZoomViewport/PanZoomViewport.vue2.js +536 -0
- package/components/PanZoomViewport/index.d.ts +2 -0
- package/components/PanZoomViewport/types.d.ts +121 -0
- package/components/ScaleGenerator/ScaleGenerator.vue.d.ts +3 -0
- package/components/ScaleGenerator/ScaleGenerator.vue.js +5 -108
- package/components/ScaleGenerator/ScaleGenerator.vue2.js +143 -2
- package/components/ScaleGenerator/types.d.ts +2 -0
- package/components/Screen/ScreenFilter.vue.js +18 -17
- package/components/SeoProvider/SeoProvider.vue.d.ts +4 -1
- package/components/SeoProvider/SeoProvider.vue.js +39 -33
- package/components/SeoProvider/domAdapter.d.ts +1 -4
- package/components/SeoProvider/domAdapter.js +71 -58
- package/components/SeoProvider/index.d.ts +5 -2
- package/components/SeoProvider/normalizeSeo.d.ts +10 -49
- package/components/SeoProvider/normalizeSeo.js +246 -182
- package/components/SeoProvider/plainText.d.ts +8 -0
- package/components/SeoProvider/plainText.js +117 -0
- package/components/SeoProvider/seoUrl.d.ts +13 -0
- package/components/SeoProvider/seoUrl.js +25 -0
- package/components/SeoProvider/structuredData.d.ts +100 -0
- package/components/SeoProvider/structuredData.js +33 -0
- package/components/SeoProvider/types.d.ts +47 -109
- package/components/Tabes/Tabes.vue.d.ts +10 -1
- package/components/Tabes/Tabes.vue.js +1 -1
- package/components/Tabes/Tabes.vue2.js +271 -170
- package/components/Tabes/TabesMarkerGeometry.d.ts +34 -0
- package/components/Tabes/TabesMarkerGeometry.js +21 -0
- package/components/Tabes/tabes.utils.d.ts +14 -0
- package/components/Tabes/tabes.utils.js +26 -0
- package/components/Tabes/types.d.ts +32 -0
- package/components/ThemeProvider/ThemeProvider.vue.d.ts +2 -0
- package/components/ThemeProvider/ThemeProvider.vue.js +29 -23
- package/components/ThemeProvider/index.d.ts +1 -1
- package/components/ThemeProvider/themeVars.d.ts +9 -13
- package/components/ThemeProvider/themeVars.js +173 -125
- package/components/ThemeProvider/types.d.ts +10 -0
- package/components/index.d.ts +2 -1
- package/index.d.ts +1 -0
- package/index.js +415 -387
- package/package.json +3 -2
- package/style.css +1 -1
- package/components/Form/AccordionView.vue.js +0 -222
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./AccordionView.vue3.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bb30cb10"]]);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
m as default
|
|
4
7
|
};
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { defineComponent as q, shallowRef as N, watch as H, openBlock as a, createElementBlock as i, createVNode as v, unref as y, withCtx as b, Fragment as f, renderList as A, isMemoSame as S, createBlock as k, resolveDynamicComponent as j, createTextVNode as K, toDisplayString as g, createCommentVNode as r, createElementVNode as u, normalizeClass as T, withModifiers as G } from "vue";
|
|
2
|
+
import { VueDraggable as J } from "vue-draggable-plus";
|
|
3
|
+
import P from "../Accordion/AccordionItem.vue.js";
|
|
4
|
+
import Q from "./FormField.vue.js";
|
|
5
|
+
import L from "../Label.vue.js";
|
|
6
|
+
import W from "../Button.vue.js";
|
|
7
|
+
import V from "../Icon.vue.js";
|
|
8
|
+
import { renderLabel as C } from "./rowHelpers.js";
|
|
9
|
+
import { resolveI18nText as X } from "../../utils/i18n.js";
|
|
10
|
+
import { fieldRendersOwnErrorMessage as Y } from "./utils/form.utils.js";
|
|
11
|
+
const Z = { class: "custom-fields-accordion min-w-0 w-full" }, p = ["onClick"], I = { class: "flex items-center flex-1 py-3 px-4 min-w-0" }, _ = { class: "font-medium flex-1 text-left truncate mr-4 min-w-0" }, ee = { class: "flex items-center gap-2 flex-none" }, te = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "text-destructive flex items-center justify-center rounded-full bg-destructive/10 w-6 h-6"
|
|
14
|
+
}, le = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "grid gap-4 min-w-0"
|
|
17
|
+
}, se = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "text-destructive ml-0.5"
|
|
20
|
+
}, ae = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "text-destructive ml-0.5"
|
|
23
|
+
}, ne = {
|
|
24
|
+
key: 1,
|
|
25
|
+
class: "mt-1 text-xs text-destructive"
|
|
26
|
+
}, ie = {
|
|
27
|
+
key: 0,
|
|
28
|
+
class: "col-span-1 flex justify-end"
|
|
29
|
+
}, re = {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "flex flex-col items-center justify-center py-6 text-center border border-border rounded bg-muted/5 mt-2"
|
|
32
|
+
}, oe = { class: "text-sm font-medium text-foreground" }, ce = { class: "text-xs text-muted-foreground mt-1" }, Re = /* @__PURE__ */ q({
|
|
33
|
+
__name: "AccordionView",
|
|
34
|
+
props: {
|
|
35
|
+
rows: {},
|
|
36
|
+
schema: {},
|
|
37
|
+
draggable: { type: Boolean },
|
|
38
|
+
disabled: { type: Boolean },
|
|
39
|
+
readonly: { type: Boolean },
|
|
40
|
+
isUpdate: { type: Boolean },
|
|
41
|
+
variant: {},
|
|
42
|
+
size: {},
|
|
43
|
+
rounded: {},
|
|
44
|
+
canRemoveRow: { type: Boolean },
|
|
45
|
+
canAddRow: { type: Boolean },
|
|
46
|
+
helpers: {},
|
|
47
|
+
accordionTitleKey: {},
|
|
48
|
+
itemName: {},
|
|
49
|
+
emptyTitle: {},
|
|
50
|
+
emptyDescription: {},
|
|
51
|
+
onFieldChange: { type: Function },
|
|
52
|
+
onRemoveRow: { type: Function },
|
|
53
|
+
onDragUpdate: { type: Function }
|
|
54
|
+
},
|
|
55
|
+
setup(e) {
|
|
56
|
+
const d = e, o = N([]), m = N([]), M = (s) => {
|
|
57
|
+
o.value.includes(s) ? o.value = o.value.filter((n) => n !== s) : (m.value.includes(s) || (m.value = [...m.value, s]), o.value = [...o.value, s]);
|
|
58
|
+
}, w = (s, c) => d.accordionTitleKey && s[d.accordionTitleKey] ? String(s[d.accordionTitleKey]) : `${d.itemName} #${c + 1}`, h = (s) => s.labelI18n ? X(
|
|
59
|
+
s.labelI18n,
|
|
60
|
+
typeof s.label == "string" ? s.label : void 0
|
|
61
|
+
) ?? s.label : s.label;
|
|
62
|
+
return H(
|
|
63
|
+
() => [d.helpers.errors, d.rows],
|
|
64
|
+
() => {
|
|
65
|
+
const s = d.rows.map((l, x) => d.helpers.hasRowErrors(x) ? l._id : null).filter((l) => l !== null);
|
|
66
|
+
if (s.length === 0) return;
|
|
67
|
+
const c = /* @__PURE__ */ new Set([...o.value, ...s]);
|
|
68
|
+
o.value = Array.from(c);
|
|
69
|
+
const n = /* @__PURE__ */ new Set([...m.value, ...s]);
|
|
70
|
+
m.value = Array.from(n);
|
|
71
|
+
},
|
|
72
|
+
{ deep: !0, immediate: !0 }
|
|
73
|
+
), (s, c) => (a(), i("div", Z, [
|
|
74
|
+
v(y(J), {
|
|
75
|
+
"model-value": e.rows,
|
|
76
|
+
"onUpdate:modelValue": e.onDragUpdate,
|
|
77
|
+
disabled: !e.draggable || e.disabled || e.readonly,
|
|
78
|
+
animation: 150,
|
|
79
|
+
handle: ".drag-handle",
|
|
80
|
+
"ghost-class": "opacity-50",
|
|
81
|
+
class: "space-y-2 min-w-0"
|
|
82
|
+
}, {
|
|
83
|
+
default: b(() => [
|
|
84
|
+
(a(!0), i(f, null, A(e.rows, (n, l, x, R) => {
|
|
85
|
+
const E = [
|
|
86
|
+
n,
|
|
87
|
+
e.schema,
|
|
88
|
+
e.disabled,
|
|
89
|
+
e.readonly,
|
|
90
|
+
e.isUpdate,
|
|
91
|
+
e.draggable,
|
|
92
|
+
l,
|
|
93
|
+
e.helpers.getRowErrorsHash(l),
|
|
94
|
+
e.helpers.hasRowErrors(l),
|
|
95
|
+
o.value.includes(n._id),
|
|
96
|
+
m.value.includes(n._id),
|
|
97
|
+
e.canRemoveRow,
|
|
98
|
+
e.variant,
|
|
99
|
+
e.size,
|
|
100
|
+
e.rounded
|
|
101
|
+
];
|
|
102
|
+
if (R && R.key === n._id && S(R, E)) return R;
|
|
103
|
+
const B = (a(), k(P, {
|
|
104
|
+
key: n._id,
|
|
105
|
+
item: { id: n._id, title: w(n, l) },
|
|
106
|
+
"is-open": o.value.includes(n._id),
|
|
107
|
+
"content-class": "border-t border-border",
|
|
108
|
+
variant: "solid",
|
|
109
|
+
onToggle: M,
|
|
110
|
+
class: "bg-white min-w-0"
|
|
111
|
+
}, {
|
|
112
|
+
trigger: b(({ open: t, toggle: U, triggerClass: D }) => [
|
|
113
|
+
u("div", {
|
|
114
|
+
class: T(["flex items-stretch w-full min-w-0", [D, "!p-0 overflow-hidden"]]),
|
|
115
|
+
onClick: U
|
|
116
|
+
}, [
|
|
117
|
+
e.draggable && !e.disabled && !e.readonly ? (a(), i("div", {
|
|
118
|
+
key: 0,
|
|
119
|
+
class: T([
|
|
120
|
+
"w-12 flex-none flex items-center justify-center border-r border-border bg-muted/5 drag-handle transition-colors",
|
|
121
|
+
e.disabled ? "cursor-not-allowed opacity-50" : "cursor-grab active:cursor-grabbing hover:bg-muted/10 text-muted-foreground hover:text-foreground"
|
|
122
|
+
]),
|
|
123
|
+
onClick: c[0] || (c[0] = G(() => {
|
|
124
|
+
}, ["stop"]))
|
|
125
|
+
}, [
|
|
126
|
+
v(V, {
|
|
127
|
+
icon: "lucide:grip-vertical",
|
|
128
|
+
class: "w-4 h-4"
|
|
129
|
+
})
|
|
130
|
+
], 2)) : r("", !0),
|
|
131
|
+
u("div", I, [
|
|
132
|
+
u("span", _, g(w(n, l)), 1),
|
|
133
|
+
u("div", ee, [
|
|
134
|
+
e.helpers.hasRowErrors(l) ? (a(), i("div", te, [
|
|
135
|
+
v(V, {
|
|
136
|
+
icon: "lucide:alert-circle",
|
|
137
|
+
class: "w-4 h-4"
|
|
138
|
+
})
|
|
139
|
+
])) : r("", !0),
|
|
140
|
+
v(V, {
|
|
141
|
+
icon: "lucide:chevron-down",
|
|
142
|
+
class: T(["w-4 h-4 transition-transform duration-200", { "rotate-180": t }])
|
|
143
|
+
}, null, 8, ["class"])
|
|
144
|
+
])
|
|
145
|
+
])
|
|
146
|
+
], 10, p)
|
|
147
|
+
]),
|
|
148
|
+
content: b(() => [
|
|
149
|
+
m.value.includes(n._id) ? (a(), i("div", le, [
|
|
150
|
+
(a(!0), i(f, null, A(e.schema, (t, U, D, F) => {
|
|
151
|
+
const z = [
|
|
152
|
+
t,
|
|
153
|
+
e.helpers.getFieldValue(l, t.name),
|
|
154
|
+
e.helpers.getFieldError(l, t.name),
|
|
155
|
+
e.helpers.isFieldVisible(l, t),
|
|
156
|
+
e.helpers.isFieldDisabled(l, t),
|
|
157
|
+
e.helpers.isFieldReadonly(l, t),
|
|
158
|
+
e.helpers.getResolvedType(t, l),
|
|
159
|
+
e.disabled,
|
|
160
|
+
e.readonly,
|
|
161
|
+
e.isUpdate,
|
|
162
|
+
e.variant,
|
|
163
|
+
e.size,
|
|
164
|
+
e.rounded,
|
|
165
|
+
n
|
|
166
|
+
];
|
|
167
|
+
if (F && F.key === t.name && S(F, z)) return F;
|
|
168
|
+
const $ = (a(), i("div", {
|
|
169
|
+
key: t.name,
|
|
170
|
+
class: "col-span-1 flex flex-col min-w-0"
|
|
171
|
+
}, [
|
|
172
|
+
e.helpers.isFieldVisible(l, t) ? (a(), i(f, { key: 0 }, [
|
|
173
|
+
(t.label || t.labelI18n) && e.helpers.getResolvedType(t, l) !== "switch" && e.helpers.getResolvedType(t, l) !== "check" && e.helpers.getResolvedType(t, l) !== "customFields" && e.helpers.getResolvedType(t, l) !== "choiceBox" ? (a(), k(L, {
|
|
174
|
+
key: 0,
|
|
175
|
+
class: "mb-2 block text-sm font-medium"
|
|
176
|
+
}, {
|
|
177
|
+
default: b(() => [
|
|
178
|
+
typeof y(C)(h(t)) != "string" ? (a(), k(j(y(C)(h(t))), { key: 0 })) : (a(), i(f, { key: 1 }, [
|
|
179
|
+
K(g(h(t)) + " ", 1),
|
|
180
|
+
t.required ? (a(), i("span", se, "*")) : r("", !0)
|
|
181
|
+
], 64))
|
|
182
|
+
]),
|
|
183
|
+
_: 2
|
|
184
|
+
}, 1024)) : r("", !0),
|
|
185
|
+
u("div", {
|
|
186
|
+
class: T(["relative min-w-0", [
|
|
187
|
+
e.helpers.getResolvedType(t, l) === "check" || e.helpers.getResolvedType(t, l) === "switch" && t.props?.switchVariant === "basic" ? "w-auto flex items-center" : "w-full"
|
|
188
|
+
]])
|
|
189
|
+
}, [
|
|
190
|
+
v(Q, {
|
|
191
|
+
field: { ...t, props: { ...t.props || {} } },
|
|
192
|
+
value: e.helpers.getFieldValue(l, t.name),
|
|
193
|
+
values: n,
|
|
194
|
+
errors: e.helpers.errors,
|
|
195
|
+
error: e.helpers.getFieldError(l, t.name),
|
|
196
|
+
variant: e.variant,
|
|
197
|
+
size: e.size,
|
|
198
|
+
rounded: e.rounded,
|
|
199
|
+
disabled: e.disabled || e.helpers.isFieldDisabled(l, t),
|
|
200
|
+
readonly: e.readonly || e.helpers.isFieldReadonly(l, t),
|
|
201
|
+
isUpdate: e.isUpdate,
|
|
202
|
+
onChange: (O) => e.onFieldChange(l, t.name, O)
|
|
203
|
+
}, null, 8, ["field", "value", "values", "errors", "error", "variant", "size", "rounded", "disabled", "readonly", "isUpdate", "onChange"]),
|
|
204
|
+
e.helpers.getResolvedType(t, l) === "check" || e.helpers.getResolvedType(t, l) === "switch" && t.props?.switchVariant === "basic" ? (a(), k(L, {
|
|
205
|
+
key: 0,
|
|
206
|
+
class: "ml-2 text-sm font-medium cursor-pointer"
|
|
207
|
+
}, {
|
|
208
|
+
default: b(() => [
|
|
209
|
+
typeof y(C)(h(t)) != "string" ? (a(), k(j(y(C)(h(t))), { key: 0 })) : (a(), i(f, { key: 1 }, [
|
|
210
|
+
K(g(h(t)) + " ", 1),
|
|
211
|
+
t.required ? (a(), i("span", ae, "*")) : r("", !0)
|
|
212
|
+
], 64))
|
|
213
|
+
]),
|
|
214
|
+
_: 2
|
|
215
|
+
}, 1024)) : r("", !0)
|
|
216
|
+
], 2),
|
|
217
|
+
e.helpers.getFieldError(l, t.name) && !y(Y)(e.helpers.getResolvedType(t, l)) ? (a(), i("p", ne, g(e.helpers.getFieldError(l, t.name)), 1)) : r("", !0)
|
|
218
|
+
], 64)) : r("", !0)
|
|
219
|
+
]));
|
|
220
|
+
return $.memo = z, $;
|
|
221
|
+
}, c, 1), 128)),
|
|
222
|
+
e.canRemoveRow ? (a(), i("div", ie, [
|
|
223
|
+
v(W, {
|
|
224
|
+
type: "button",
|
|
225
|
+
variant: "secondary",
|
|
226
|
+
size: "xs",
|
|
227
|
+
icon: "lucide:trash-2",
|
|
228
|
+
disabled: e.disabled || e.readonly,
|
|
229
|
+
onClick: (t) => e.onRemoveRow(l)
|
|
230
|
+
}, null, 8, ["disabled", "onClick"])
|
|
231
|
+
])) : r("", !0)
|
|
232
|
+
])) : r("", !0)
|
|
233
|
+
]),
|
|
234
|
+
_: 2
|
|
235
|
+
}, 1032, ["item", "is-open"]));
|
|
236
|
+
return B.memo = E, B;
|
|
237
|
+
}, c, 3), 128))
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
}, 8, ["model-value", "onUpdate:modelValue", "disabled"]),
|
|
241
|
+
e.rows.length === 0 ? (a(), i("div", re, [
|
|
242
|
+
u("p", oe, g(e.emptyTitle), 1),
|
|
243
|
+
u("p", ce, g(e.emptyDescription), 1)
|
|
244
|
+
])) : r("", !0)
|
|
245
|
+
]));
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
export {
|
|
249
|
+
Re as default
|
|
250
|
+
};
|
|
@@ -63,7 +63,6 @@ declare function __VLS_template(): {
|
|
|
63
63
|
}): any;
|
|
64
64
|
};
|
|
65
65
|
refs: {
|
|
66
|
-
sentinelRef: HTMLDivElement;
|
|
67
66
|
footerRef: HTMLDivElement;
|
|
68
67
|
};
|
|
69
68
|
rootEl: HTMLFormElement;
|
|
@@ -123,7 +122,6 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
123
122
|
pageHeaderClass: string;
|
|
124
123
|
backButtonProps: ButtonProps;
|
|
125
124
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
126
|
-
sentinelRef: HTMLDivElement;
|
|
127
125
|
footerRef: HTMLDivElement;
|
|
128
126
|
}, HTMLFormElement>;
|
|
129
127
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Form.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-91b9b05d"]]);
|
|
5
5
|
export {
|
|
6
6
|
_ as default
|
|
7
7
|
};
|