vlite3 1.4.6 → 1.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/README.md +1 -0
- package/components/AppShell/AppShellLayoutStorefront.vue.js +18 -18
- package/components/CategoryManager/CategoryManager.vue2.js +3 -3
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Dropdown/DropdownMenu.vue2.js +0 -1
- package/components/ImageMagnifier.vue.d.ts +18 -0
- package/components/ImageMagnifier.vue.js +73 -0
- package/components/ImageMagnifier.vue2.js +4 -0
- package/components/Input.vue.js +33 -25
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
- package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
- package/components/Screen/ScreenFilter.vue.js +3 -3
- package/components/Timeline/Timeline.vue.js +17 -17
- package/components/Timeline/TimelineItem.vue.js +13 -13
- package/components/index.d.ts +1 -0
- package/index.d.ts +1 -0
- package/index.js +105 -103
- package/package.json +1 -1
- package/style.css +1 -1
- /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue2.js → RichTextLinkPopover.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue2.js → RichTextToolbar.vue.js} +0 -0
package/README.md
CHANGED
|
@@ -10,10 +10,10 @@ import { normalizeRoutePrefix as B } from "../CategoryMenu/utils.js";
|
|
|
10
10
|
const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body text-foreground overflow-hidden" }, L = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "shrink-0 w-full"
|
|
13
|
-
}, M = { class: "w-full mx-auto
|
|
13
|
+
}, M = { class: "w-full mx-auto px-3 sm:px-4 md:px-6 lg:px-8" }, O = ["aria-label"], A = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "flex items-center justify-center min-w-0 flex-1 px-2"
|
|
16
|
-
}, U = { class: "w-full min-w-0
|
|
16
|
+
}, U = { class: "w-full min-w-0 mx-auto overflow-hidden" }, Y = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "shrink-0 w-full"
|
|
19
19
|
}, D = {
|
|
@@ -35,12 +35,12 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
|
|
|
35
35
|
toggleSidebar: G,
|
|
36
36
|
pageTitle: J,
|
|
37
37
|
breadcrumbData: p,
|
|
38
|
-
breakpointClasses:
|
|
38
|
+
breakpointClasses: m,
|
|
39
39
|
nestedTabsItems: g,
|
|
40
40
|
activeNestedTab: c,
|
|
41
|
-
handleNestedTabClick:
|
|
42
|
-
mainScrollRef:
|
|
43
|
-
layoutMainRef:
|
|
41
|
+
handleNestedTabClick: $,
|
|
42
|
+
mainScrollRef: C,
|
|
43
|
+
layoutMainRef: x
|
|
44
44
|
} = k, S = v(() => [
|
|
45
45
|
"w-full shrink-0 bg-background transition-shadow duration-200",
|
|
46
46
|
{
|
|
@@ -54,7 +54,7 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
|
|
|
54
54
|
s.floating ? "m-3 rounded-lg border border-border shadow-sm overflow-hidden" : "",
|
|
55
55
|
s.class
|
|
56
56
|
].filter(Boolean).join(" ")), h = v(() => B(s.categoryRoutePrefix));
|
|
57
|
-
return (o,
|
|
57
|
+
return (o, u) => (t(), i("div", E, [
|
|
58
58
|
o.$slots.announcement ? (t(), i("div", L, [
|
|
59
59
|
l(o.$slots, "announcement")
|
|
60
60
|
])) : d("", !0),
|
|
@@ -74,9 +74,9 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
|
|
|
74
74
|
}, () => [
|
|
75
75
|
a("button", {
|
|
76
76
|
type: "button",
|
|
77
|
-
class: n(["inline-flex items-center justify-center w-9 h-9 rounded-md text-muted-foreground hover:text-foreground hover:bg-accent", [e(
|
|
77
|
+
class: n(["inline-flex items-center justify-center w-9 h-9 rounded-md text-muted-foreground hover:text-foreground hover:bg-accent", [e(m).mobileTrigger, e(s).mobileTriggerClass]]),
|
|
78
78
|
"aria-label": e(r) ? "Close menu" : "Open menu",
|
|
79
|
-
onClick:
|
|
79
|
+
onClick: u[0] || (u[0] = (b) => r.value = !e(r))
|
|
80
80
|
}, [
|
|
81
81
|
f(R, {
|
|
82
82
|
icon: e(r) ? "lucide:x" : "lucide:menu",
|
|
@@ -97,14 +97,14 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
|
|
|
97
97
|
], 2),
|
|
98
98
|
o.$slots["mobile-bottom"] ? (t(), i("div", {
|
|
99
99
|
key: 0,
|
|
100
|
-
class: n(["pb-3 w-full", e(
|
|
100
|
+
class: n(["pb-3 w-full", e(m).mobileTrigger])
|
|
101
101
|
}, [
|
|
102
102
|
l(o.$slots, "mobile-bottom")
|
|
103
103
|
], 2)) : d("", !0)
|
|
104
104
|
]),
|
|
105
105
|
o.$slots.categories ? (t(), i("div", {
|
|
106
106
|
key: 0,
|
|
107
|
-
class: n(["w-full min-w-0 overflow-hidden border-t border-border bg-background", [e(
|
|
107
|
+
class: n(["w-full min-w-0 overflow-hidden border-t border-border bg-background", [e(m).desktopContent, e(s).menuClass]])
|
|
108
108
|
}, [
|
|
109
109
|
a("div", U, [
|
|
110
110
|
l(o.$slots, "categories", { categoryRoutePrefix: h.value })
|
|
@@ -114,14 +114,14 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
|
|
|
114
114
|
o.$slots.main ? (t(), i("main", {
|
|
115
115
|
key: 1,
|
|
116
116
|
ref_key: "layoutMainRef",
|
|
117
|
-
ref:
|
|
117
|
+
ref: x,
|
|
118
118
|
class: "flex-1 overflow-hidden w-full relative flex flex-col min-h-0"
|
|
119
119
|
}, [
|
|
120
120
|
e(s).renderNestedTabs && e(g).length > 0 ? (t(), i("div", Y, [
|
|
121
121
|
f(V, {
|
|
122
122
|
modelValue: e(c),
|
|
123
|
-
"onUpdate:modelValue":
|
|
124
|
-
onChange: e(
|
|
123
|
+
"onUpdate:modelValue": u[1] || (u[1] = (b) => y(c) ? c.value = b : null),
|
|
124
|
+
onChange: e($),
|
|
125
125
|
items: e(g)
|
|
126
126
|
}, null, 8, ["modelValue", "onChange", "items"])
|
|
127
127
|
])) : d("", !0),
|
|
@@ -138,7 +138,7 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
|
|
|
138
138
|
], 2)) : d("", !0),
|
|
139
139
|
a("div", {
|
|
140
140
|
ref_key: "mainScrollRef",
|
|
141
|
-
ref:
|
|
141
|
+
ref: C,
|
|
142
142
|
style: { "will-change": "transform", contain: "layout style" },
|
|
143
143
|
class: n(["flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable", e(s).contentClass])
|
|
144
144
|
}, [
|
|
@@ -150,11 +150,11 @@ const E = { class: "vlite-app-layout flex flex-col w-full h-full min-h-0 bg-body
|
|
|
150
150
|
])) : d("", !0),
|
|
151
151
|
f(P, {
|
|
152
152
|
show: e(r),
|
|
153
|
-
"onUpdate:show":
|
|
153
|
+
"onUpdate:show": u[2] || (u[2] = (b) => y(r) ? r.value = b : null),
|
|
154
154
|
position: "left",
|
|
155
155
|
size: "sm",
|
|
156
|
-
triggerClass: e(
|
|
157
|
-
class: n(["z-60", e(
|
|
156
|
+
triggerClass: e(m).mobileTrigger,
|
|
157
|
+
class: n(["z-60", e(m).mobileTrigger]),
|
|
158
158
|
headerClass: "pl-3! pr-4.5! py-3!",
|
|
159
159
|
bodyClass: "p-0!"
|
|
160
160
|
}, _({
|
|
@@ -17,13 +17,13 @@ import "v-datepicker-lite";
|
|
|
17
17
|
import "v-datepicker-lite/style.css";
|
|
18
18
|
import "@jaames/iro";
|
|
19
19
|
import "@vueuse/core";
|
|
20
|
-
/* empty css
|
|
20
|
+
/* empty css */
|
|
21
21
|
import qe from "../IconPicker.vue.js";
|
|
22
22
|
/* empty css */
|
|
23
23
|
/* empty css */
|
|
24
24
|
/* empty css */
|
|
25
|
-
/* empty css
|
|
26
|
-
/* empty css
|
|
25
|
+
/* empty css */
|
|
26
|
+
/* empty css */
|
|
27
27
|
import "../../core/config.js";
|
|
28
28
|
/* empty css */
|
|
29
29
|
/* empty css */
|
|
@@ -7,8 +7,8 @@ import "../../core/config.js";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import E from "../Button.vue.js";
|
|
10
|
-
import _ from "./ColorIro.
|
|
11
|
-
/* empty css
|
|
10
|
+
import _ from "./ColorIro.vue.js";
|
|
11
|
+
/* empty css */
|
|
12
12
|
import { useEyeDropper as I } from "@vueuse/core";
|
|
13
13
|
const N = { class: "absolute left-2.5 top-1/2 -translate-y-1/2 flex items-center justify-center z-20 pointer-events-none" }, j = {
|
|
14
14
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DropdownMenu.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-173c7a02"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ImageMagnifierProps {
|
|
2
|
+
src: string;
|
|
3
|
+
alt?: string;
|
|
4
|
+
zoom?: number;
|
|
5
|
+
magnifierSize?: number;
|
|
6
|
+
glass?: boolean;
|
|
7
|
+
class?: any;
|
|
8
|
+
imageClass?: any;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import('vue').DefineComponent<ImageMagnifierProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ImageMagnifierProps> & Readonly<{}>, {
|
|
11
|
+
glass: boolean;
|
|
12
|
+
zoom: number;
|
|
13
|
+
magnifierSize: number;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
|
+
containerRef: HTMLDivElement;
|
|
16
|
+
imageRef: HTMLImageElement;
|
|
17
|
+
}, HTMLDivElement>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineComponent as k, ref as a, openBlock as S, createElementBlock as R, withModifiers as m, normalizeClass as f, createElementVNode as x, withDirectives as C, normalizeStyle as _, vShow as B } from "vue";
|
|
2
|
+
const T = ["src", "alt"], E = /* @__PURE__ */ k({
|
|
3
|
+
__name: "ImageMagnifier",
|
|
4
|
+
props: {
|
|
5
|
+
src: {},
|
|
6
|
+
alt: {},
|
|
7
|
+
zoom: { default: 2 },
|
|
8
|
+
magnifierSize: { default: 120 },
|
|
9
|
+
glass: { type: Boolean, default: !0 },
|
|
10
|
+
class: {},
|
|
11
|
+
imageClass: {}
|
|
12
|
+
},
|
|
13
|
+
setup(b) {
|
|
14
|
+
const e = b, r = a(null), v = a(null), t = a(!1), u = a({ x: 0, y: 0 }), c = a({ x: 0, y: 0 }), g = a({ width: 0, height: 0 }), d = (n) => {
|
|
15
|
+
if (!r.value || !v.value) return;
|
|
16
|
+
const { left: o, top: i, width: p, height: h } = r.value.getBoundingClientRect();
|
|
17
|
+
let l = n.clientX - o, s = n.clientY - i;
|
|
18
|
+
l = Math.max(0, Math.min(l, p)), s = Math.max(0, Math.min(s, h)), u.value = {
|
|
19
|
+
x: l - e.magnifierSize / 2,
|
|
20
|
+
y: s - e.magnifierSize / 2
|
|
21
|
+
};
|
|
22
|
+
const w = p * e.zoom, y = h * e.zoom;
|
|
23
|
+
g.value = { width: w, height: y };
|
|
24
|
+
const M = e.magnifierSize / 2 - l * e.zoom, $ = e.magnifierSize / 2 - s * e.zoom;
|
|
25
|
+
c.value = { x: M, y: $ };
|
|
26
|
+
}, z = (n) => {
|
|
27
|
+
n.touches.length > 0 && d(n.touches[0]);
|
|
28
|
+
};
|
|
29
|
+
return (n, o) => (S(), R("div", {
|
|
30
|
+
ref_key: "containerRef",
|
|
31
|
+
ref: r,
|
|
32
|
+
class: f(["relative inline-block w-full max-w-max cursor-crosshair select-none touch-none group", e.class]),
|
|
33
|
+
onMouseenter: o[0] || (o[0] = (i) => t.value = !0),
|
|
34
|
+
onMouseleave: o[1] || (o[1] = (i) => t.value = !1),
|
|
35
|
+
onMousemove: d,
|
|
36
|
+
onTouchstart: o[2] || (o[2] = m((i) => t.value = !0, ["prevent"])),
|
|
37
|
+
onTouchend: o[3] || (o[3] = m((i) => t.value = !1, ["prevent"])),
|
|
38
|
+
onTouchmove: m(z, ["prevent"])
|
|
39
|
+
}, [
|
|
40
|
+
x("img", {
|
|
41
|
+
ref_key: "imageRef",
|
|
42
|
+
ref: v,
|
|
43
|
+
src: e.src,
|
|
44
|
+
alt: e.alt || "Magnifiable Image",
|
|
45
|
+
class: f(["block w-full h-auto object-cover rounded-lg", e.imageClass])
|
|
46
|
+
}, null, 10, T),
|
|
47
|
+
C(x("div", {
|
|
48
|
+
class: f(["absolute pointer-events-none border border-border/50 shadow-[0_8px_30px_rgb(0,0,0,0.12)] z-10 will-change-transform", [
|
|
49
|
+
e.glass ? "backdrop-blur-sm bg-background/5" : "bg-white",
|
|
50
|
+
"rounded-full",
|
|
51
|
+
t.value ? "opacity-100 scale-100" : "opacity-0 scale-95"
|
|
52
|
+
]]),
|
|
53
|
+
style: _({
|
|
54
|
+
width: `${e.magnifierSize}px`,
|
|
55
|
+
height: `${e.magnifierSize}px`,
|
|
56
|
+
transform: `translate(${u.value.x}px, ${u.value.y}px)`,
|
|
57
|
+
top: "0",
|
|
58
|
+
left: "0",
|
|
59
|
+
backgroundImage: `url(${e.src})`,
|
|
60
|
+
backgroundRepeat: "no-repeat",
|
|
61
|
+
backgroundSize: `${g.value.width}px ${g.value.height}px`,
|
|
62
|
+
backgroundPosition: `${c.value.x}px ${c.value.y}px`,
|
|
63
|
+
transition: "opacity 0.2s ease, transform 0.05s linear"
|
|
64
|
+
})
|
|
65
|
+
}, null, 6), [
|
|
66
|
+
[B, t.value]
|
|
67
|
+
])
|
|
68
|
+
], 34));
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
E as default
|
|
73
|
+
};
|
package/components/Input.vue.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Z, computed as d, useSlots as _, ref as v, onMounted as ee, nextTick as B, openBlock as r, createElementBlock as s, normalizeClass as u, createBlock as j, withCtx as te, createTextVNode as R, toDisplayString as w, createCommentVNode as i, createElementVNode as A, renderSlot as M, createVNode as C } from "vue";
|
|
2
2
|
import g from "./Icon.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import le from "./Label.vue.js";
|
|
4
|
+
import ne from "./Textarea.vue.js";
|
|
5
5
|
import { $t as E } from "../utils/i18n.js";
|
|
6
|
-
const
|
|
6
|
+
const oe = ["for"], ae = ["type", "value", "placeholder", "disabled", "readonly", "min", "max", "data-testid"], de = { class: "absolute right-3 top-1/2 -translate-y-1/2 flex items-center justify-center gap-2 z-20" }, me = /* @__PURE__ */ Z({
|
|
7
7
|
__name: "Input",
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: { default: "" },
|
|
@@ -39,16 +39,16 @@ const ne = ["for"], oe = ["type", "value", "placeholder", "disabled", "readonly"
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["update:modelValue", "focus", "blur", "change", "click:icon", "click:icon-right"],
|
|
41
41
|
setup(t, { emit: D }) {
|
|
42
|
-
const e = t, c = D, a = d(() => e.labelI18n ? E(e.labelI18n) : e.label),
|
|
42
|
+
const e = t, c = D, a = d(() => e.labelI18n ? E(e.labelI18n) : e.label), L = d(
|
|
43
43
|
() => e.placeholderI18n ? E(e.placeholderI18n) : e.placeholder
|
|
44
|
-
), x =
|
|
44
|
+
), x = _(), m = v(null), y = v(!1), p = v(!1), H = d(() => e.type === "password" && y.value ? "text" : e.type), k = d(() => e.modelValue !== "" && e.modelValue !== null && e.modelValue !== void 0), $ = d(() => b.value || k.value || p.value), h = d(() => !!e.addonLeft || !!x["addon-left"]), V = d(() => !!e.addonRight || !!x["addon-right"]), U = d(() => [
|
|
45
45
|
"relative w-full",
|
|
46
46
|
e.class,
|
|
47
47
|
e.labelPosition === "left" ? "flex items-center gap-4" : "",
|
|
48
48
|
e.labelPosition === "right" ? "flex flex-row-reverse items-center gap-4" : "space-y-2"
|
|
49
49
|
].join(" ")), W = d(() => ["relative flex w-full items-stretch", e.labelPosition !== "top" ? "flex-1" : ""].join(
|
|
50
50
|
" "
|
|
51
|
-
)),
|
|
51
|
+
)), S = d(() => {
|
|
52
52
|
const l = "block w-full bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground/70 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none relative focus:z-10", n = {
|
|
53
53
|
solid: "bg-muted border-transparent focus-visible:border-black",
|
|
54
54
|
outline: "border border-input focus-visible:border-black",
|
|
@@ -69,15 +69,23 @@ const ne = ["for"], oe = ["type", "value", "placeholder", "disabled", "readonly"
|
|
|
69
69
|
"2xl": "rounded-2xl",
|
|
70
70
|
full: "rounded-full"
|
|
71
71
|
}[e.rounded];
|
|
72
|
-
|
|
72
|
+
h.value && (e.rounded === "md" ? o = "rounded-r-md rounded-l-none" : e.rounded === "sm" ? o = "rounded-r-sm rounded-l-none" : e.rounded === "lg" ? o = "rounded-r-lg rounded-l-none" : e.rounded === "full" ? o = "rounded-r-full rounded-l-none" : e.rounded !== "none" && (o = o.replace("rounded-", "rounded-r-").replace("rounded-l-", ""))), V.value && (h.value ? o = "rounded-none" : e.rounded === "md" ? o = "rounded-l-md rounded-r-none" : e.rounded === "sm" ? o = "rounded-l-sm rounded-r-none" : e.rounded === "lg" ? o = "rounded-l-lg rounded-r-none" : e.rounded === "full" ? o = "rounded-l-full rounded-r-none" : e.rounded !== "none" && (o = o.replace("rounded-", "rounded-l-").replace("rounded-r-", ""))), e.variant === "outline-b" && (o = "rounded-none");
|
|
73
73
|
const T = e.variant === "outline-b" || e.variant === "transparent";
|
|
74
|
-
|
|
74
|
+
e.variant;
|
|
75
|
+
const Y = {
|
|
76
|
+
xs: "pl-6",
|
|
77
|
+
sm: "pl-8",
|
|
78
|
+
md: "pl-9",
|
|
79
|
+
lg: "pl-9",
|
|
80
|
+
xl: "pl-9"
|
|
81
|
+
};
|
|
82
|
+
return [
|
|
75
83
|
l,
|
|
76
84
|
n[e.variant],
|
|
77
85
|
e.type === "textarea" ? "" : f[e.size],
|
|
78
86
|
o,
|
|
79
87
|
e.error ? "border-destructive focus-visible:ring-destructive" : "",
|
|
80
|
-
e.icon ?
|
|
88
|
+
e.icon ? Y[e?.size] : T && !h.value ? "pl-0" : "",
|
|
81
89
|
e.showClearButton && k.value || e.type === "password" || e.loading || e.iconRight ? "pr-9" : T && !V.value ? "pr-0" : "",
|
|
82
90
|
// Keyframe name used to detect browser autofill via animationstart event
|
|
83
91
|
e.variant === "floating" ? "autofill-detect" : "",
|
|
@@ -147,26 +155,26 @@ const ne = ["for"], oe = ["type", "value", "placeholder", "disabled", "readonly"
|
|
|
147
155
|
}, N = (l) => {
|
|
148
156
|
b.value = !1, c("blur", l);
|
|
149
157
|
}, X = (l) => {
|
|
150
|
-
l.animationName === "onAutoFillStart" ?
|
|
158
|
+
l.animationName === "onAutoFillStart" ? p.value = !0 : l.animationName === "onAutoFillCancel" && (p.value = !1);
|
|
151
159
|
};
|
|
152
|
-
return
|
|
160
|
+
return ee(() => {
|
|
153
161
|
e.autofocus && B(() => {
|
|
154
162
|
setTimeout(() => {
|
|
155
163
|
m.value?.focus(), b.value = !0;
|
|
156
164
|
}, 100);
|
|
157
165
|
}), B(() => {
|
|
158
|
-
m.value && m.value.value && !e.modelValue && (
|
|
166
|
+
m.value && m.value.value && !e.modelValue && (p.value = !0);
|
|
159
167
|
});
|
|
160
168
|
}), (l, n) => (r(), s("div", {
|
|
161
169
|
class: u(U.value)
|
|
162
170
|
}, [
|
|
163
|
-
a.value && t.variant !== "floating" ? (r(), j(
|
|
171
|
+
a.value && t.variant !== "floating" ? (r(), j(le, {
|
|
164
172
|
key: 0,
|
|
165
173
|
size: "xs",
|
|
166
174
|
for: a.value,
|
|
167
175
|
class: u(["mb-1.5", t.labelPosition !== "top" ? "mb-0" : ""].join(" "))
|
|
168
176
|
}, {
|
|
169
|
-
default:
|
|
177
|
+
default: te(() => [
|
|
170
178
|
R(w(a.value), 1)
|
|
171
179
|
]),
|
|
172
180
|
_: 1
|
|
@@ -174,7 +182,7 @@ const ne = ["for"], oe = ["type", "value", "placeholder", "disabled", "readonly"
|
|
|
174
182
|
A("div", {
|
|
175
183
|
class: u(W.value)
|
|
176
184
|
}, [
|
|
177
|
-
|
|
185
|
+
h.value ? (r(), s("div", {
|
|
178
186
|
key: 0,
|
|
179
187
|
class: u(q.value)
|
|
180
188
|
}, [
|
|
@@ -194,15 +202,15 @@ const ne = ["for"], oe = ["type", "value", "placeholder", "disabled", "readonly"
|
|
|
194
202
|
"absolute transition-all duration-200 ease-in-out pointer-events-none z-20",
|
|
195
203
|
$.value ? "-top-2.5 left-3 text-xs bg-background px-1 text-black shadow-[0_4px_4px_-4px_bg-background] translate-y-0" : t.type === "textarea" ? `top-2 text-sm text-muted-foreground/70 ${t.icon ? "left-9" : "left-3"} translate-y-0` : `top-1/2 -translate-y-1/2 text-sm text-muted-foreground/70 ${t.icon ? "left-9" : "left-3"}`
|
|
196
204
|
])
|
|
197
|
-
}, w(a.value), 11,
|
|
198
|
-
t.type === "textarea" ? (r(), j(
|
|
205
|
+
}, w(a.value), 11, oe)) : i("", !0),
|
|
206
|
+
t.type === "textarea" ? (r(), j(ne, {
|
|
199
207
|
key: 1,
|
|
200
208
|
"model-value": String(t.modelValue),
|
|
201
|
-
placeholder: t.variant === "floating" && a.value && !$.value ? "" :
|
|
209
|
+
placeholder: t.variant === "floating" && a.value && !$.value ? "" : L.value,
|
|
202
210
|
disabled: t.disabled,
|
|
203
211
|
readonly: t.readonly,
|
|
204
212
|
rows: t.rows,
|
|
205
|
-
class: u(
|
|
213
|
+
class: u(S.value),
|
|
206
214
|
"onUpdate:modelValue": n[0] || (n[0] = (f) => c("update:modelValue", f)),
|
|
207
215
|
onBlur: N,
|
|
208
216
|
onFocus: F,
|
|
@@ -213,19 +221,19 @@ const ne = ["for"], oe = ["type", "value", "placeholder", "disabled", "readonly"
|
|
|
213
221
|
ref: m,
|
|
214
222
|
type: H.value,
|
|
215
223
|
value: t.modelValue,
|
|
216
|
-
placeholder: t.variant === "floating" && a.value && !$.value ? "" :
|
|
224
|
+
placeholder: t.variant === "floating" && a.value && !$.value ? "" : L.value,
|
|
217
225
|
disabled: t.disabled,
|
|
218
226
|
readonly: t.readonly,
|
|
219
227
|
min: t.min,
|
|
220
228
|
max: t.max,
|
|
221
|
-
class: u(
|
|
229
|
+
class: u(S.value),
|
|
222
230
|
onInput: J,
|
|
223
231
|
onChange: K,
|
|
224
232
|
onBlur: N,
|
|
225
233
|
onFocus: F,
|
|
226
234
|
onAnimationstart: X,
|
|
227
235
|
"data-testid": l.$attrs["data-testid"] || (l.$attrs.name ? `input-${l.$attrs.name}` : a.value ? `input-${a.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "input")
|
|
228
|
-
}, null, 42,
|
|
236
|
+
}, null, 42, ae)),
|
|
229
237
|
t.icon ? (r(), s("div", {
|
|
230
238
|
key: 3,
|
|
231
239
|
tabindex: "-1",
|
|
@@ -239,7 +247,7 @@ const ne = ["for"], oe = ["type", "value", "placeholder", "disabled", "readonly"
|
|
|
239
247
|
class: u(["h-4 w-4", t.iconClass])
|
|
240
248
|
}, null, 8, ["icon", "class"])
|
|
241
249
|
], 2)) : i("", !0),
|
|
242
|
-
A("div",
|
|
250
|
+
A("div", de, [
|
|
243
251
|
t.loading ? (r(), j(g, {
|
|
244
252
|
key: 0,
|
|
245
253
|
icon: "lucide:loader-2",
|
|
@@ -297,5 +305,5 @@ const ne = ["for"], oe = ["type", "value", "placeholder", "disabled", "readonly"
|
|
|
297
305
|
}
|
|
298
306
|
});
|
|
299
307
|
export {
|
|
300
|
-
|
|
308
|
+
me as default
|
|
301
309
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as te, ref as v, shallowRef as ne, watch as oe, computed as h, onMounted as le, onUnmounted as ae, openBlock as C, createElementBlock as L, normalizeClass as re, toDisplayString as I, createCommentVNode as U, createElementVNode as w, createVNode as q, unref as a, normalizeStyle as ie } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import se from "./RichTextToolbar.
|
|
4
|
-
/* empty css
|
|
5
|
-
import de from "./RichTextLinkPopover.
|
|
6
|
-
/* empty css
|
|
3
|
+
import se from "./RichTextToolbar.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import de from "./RichTextLinkPopover.vue.js";
|
|
6
|
+
/* empty css */
|
|
7
7
|
import { useRichTextImageUpload as ue } from "./composables/useRichTextImageUpload.js";
|
|
8
8
|
import { useRichTextLinks as ce } from "./composables/useRichTextLinks.js";
|
|
9
9
|
const fe = ["aria-labelledby", "aria-describedby"], me = ["id", "for"], ve = { class: "rte-wrapper" }, ye = { class: "rte-body-wrap" }, ge = ["id", "contenteditable", "aria-label", "aria-readonly", "aria-disabled", "aria-invalid"], be = ["id"], Se = /* @__PURE__ */ te({
|
|
@@ -15,14 +15,14 @@ import "v-datepicker-lite";
|
|
|
15
15
|
import "v-datepicker-lite/style.css";
|
|
16
16
|
import "@jaames/iro";
|
|
17
17
|
import "@vueuse/core";
|
|
18
|
-
/* empty css
|
|
18
|
+
/* empty css */
|
|
19
19
|
import "iconify-icon-picker";
|
|
20
20
|
import "iconify-icon-picker/style.css";
|
|
21
21
|
/* empty css */
|
|
22
22
|
/* empty css */
|
|
23
23
|
/* empty css */
|
|
24
|
-
/* empty css
|
|
25
|
-
/* empty css
|
|
24
|
+
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
26
|
import "../../core/config.js";
|
|
27
27
|
/* empty css */
|
|
28
28
|
/* empty css */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as p, computed as g, openBlock as r, createElementBlock as d, normalizeClass as k, createElementVNode as b, normalizeStyle as S, createCommentVNode as
|
|
1
|
+
import { defineComponent as p, computed as g, openBlock as r, createElementBlock as d, normalizeClass as k, createElementVNode as b, normalizeStyle as S, createCommentVNode as x, Fragment as C, renderList as B, isMemoSame as T, createBlock as z, withCtx as o, renderSlot as s, mergeProps as n } from "vue";
|
|
2
2
|
import V from "./TimelineItem.vue.js";
|
|
3
|
-
const
|
|
3
|
+
const j = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "absolute top-4 left-4 right-4 h-0.5 bg-border",
|
|
6
6
|
"aria-hidden": "true"
|
|
7
|
-
},
|
|
7
|
+
}, E = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "absolute top-4 left-4 right-4 h-0.5 bg-border block sm:hidden",
|
|
10
10
|
"aria-hidden": "true"
|
|
@@ -22,8 +22,8 @@ const E = {
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["step-click"],
|
|
24
24
|
setup(e, { emit: w }) {
|
|
25
|
-
const l = e,
|
|
26
|
-
|
|
25
|
+
const l = e, P = w, a = g(() => l.direction === "vertical"), y = g(() => l.steps.length <= 1 ? 0 : Math.min(l.activeStep, l.steps.length - 1) / (l.steps.length - 1) * 100), $ = (i, f) => {
|
|
26
|
+
P("step-click", i, f);
|
|
27
27
|
};
|
|
28
28
|
return (i, f) => (r(), d("nav", {
|
|
29
29
|
"aria-label": "Progress",
|
|
@@ -35,22 +35,22 @@ const E = {
|
|
|
35
35
|
"relative flex",
|
|
36
36
|
a.value ? "flex-col space-y-0" : "",
|
|
37
37
|
!a.value && e.textPosition === "bottom" ? "flex-row w-full justify-between items-center" : "",
|
|
38
|
-
!a.value && e.textPosition === "right" ? "flex-row w-full" : ""
|
|
38
|
+
!a.value && e.textPosition === "right" ? "flex-row w-full max-sm:justify-between max-sm:items-center" : ""
|
|
39
39
|
])
|
|
40
40
|
}, [
|
|
41
|
-
!a.value && e.textPosition === "bottom" ? (r(), d("div",
|
|
41
|
+
!a.value && e.textPosition === "bottom" ? (r(), d("div", j, [
|
|
42
42
|
b("div", {
|
|
43
43
|
class: "h-full bg-primary transition-all duration-300 ease-in-out",
|
|
44
44
|
style: S({ width: `${y.value}%` })
|
|
45
45
|
}, null, 4)
|
|
46
|
-
])) :
|
|
47
|
-
!a.value && e.textPosition === "right" ? (r(), d("div",
|
|
46
|
+
])) : x("", !0),
|
|
47
|
+
!a.value && e.textPosition === "right" ? (r(), d("div", E, [
|
|
48
48
|
b("div", {
|
|
49
49
|
class: "h-full bg-primary transition-all duration-300 ease-in-out",
|
|
50
50
|
style: S({ width: `${y.value}%` })
|
|
51
51
|
}, null, 4)
|
|
52
|
-
])) :
|
|
53
|
-
(r(!0), d(C, null, B(e.steps, (c, m,
|
|
52
|
+
])) : x("", !0),
|
|
53
|
+
(r(!0), d(C, null, B(e.steps, (c, m, M, u) => {
|
|
54
54
|
const v = [
|
|
55
55
|
c,
|
|
56
56
|
m,
|
|
@@ -77,22 +77,22 @@ const E = {
|
|
|
77
77
|
onStepClick: $
|
|
78
78
|
}, {
|
|
79
79
|
indicator: o((t) => [
|
|
80
|
-
|
|
80
|
+
s(i.$slots, "indicator", n({ ref_for: !0 }, t))
|
|
81
81
|
]),
|
|
82
82
|
title: o((t) => [
|
|
83
|
-
|
|
83
|
+
s(i.$slots, "title", n({ ref_for: !0 }, t))
|
|
84
84
|
]),
|
|
85
85
|
subtitle: o((t) => [
|
|
86
|
-
|
|
86
|
+
s(i.$slots, "subtitle", n({ ref_for: !0 }, t))
|
|
87
87
|
]),
|
|
88
88
|
status: o((t) => [
|
|
89
|
-
|
|
89
|
+
s(i.$slots, "status", n({ ref_for: !0 }, t))
|
|
90
90
|
]),
|
|
91
91
|
content: o((t) => [
|
|
92
|
-
|
|
92
|
+
s(i.$slots, "content", n({ ref_for: !0 }, t))
|
|
93
93
|
]),
|
|
94
94
|
body: o((t) => [
|
|
95
|
-
|
|
95
|
+
s(i.$slots, "body", n({ ref_for: !0 }, t))
|
|
96
96
|
]),
|
|
97
97
|
_: 3
|
|
98
98
|
}, 8, ["step", "index", "is-last", "active-step", "direction", "text-position", "line-style", "indicator-type", "clickable"]));
|