vlite3 1.1.2 → 1.1.5
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 +5 -0
- package/components/AttachmentsList/AttachmentsList.vue.d.ts +1 -1
- package/components/AttachmentsList/AttachmentsList.vue.js +237 -163
- package/components/Avatar.vue.js +1 -1
- package/components/AvatarUploader/AvatarUploader.vue.js +40 -37
- package/components/Button.vue.js +30 -28
- package/components/Carousel/Carousel.vue.d.ts +2 -2
- package/components/CategoryManager/CategoryManager.vue.d.ts +10 -2
- package/components/CategoryManager/CategoryManager.vue.js +138 -119
- package/components/CategoryManager/CategoryNode.vue.d.ts +2 -0
- package/components/CategoryManager/CategoryNode.vue.js +93 -88
- package/components/Chart/BarChart.vue.d.ts +48 -0
- package/components/Chart/CircleChart.vue.d.ts +47 -0
- package/components/Chart/LineChart.vue.d.ts +55 -0
- package/components/Chart/PieChart.vue.d.ts +49 -0
- package/components/Chart/index.d.ts +5 -0
- package/components/Chart/types.d.ts +135 -0
- package/components/Chart/utils.d.ts +40 -0
- package/components/Chat/ChatBubble.vue.js +22 -22
- package/components/CheckBox.vue.js +29 -28
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/Comment/CommentEditor.vue.d.ts +41 -0
- package/components/Comment/CommentEditor.vue.js +221 -0
- package/components/Comment/CommentEditor.vue2.js +4 -0
- package/components/Comment/CommentItem.vue.d.ts +70 -0
- package/components/Comment/CommentItem.vue.js +7 -0
- package/components/Comment/CommentItem.vue2.js +322 -0
- package/components/Comment/CommentThread.vue.d.ts +64 -0
- package/components/Comment/CommentThread.vue.js +185 -0
- package/components/Comment/CommentThread.vue2.js +4 -0
- package/components/Comment/index.d.ts +4 -0
- package/components/Comment/types.d.ts +34 -0
- package/components/ConfirmationModal.vue.js +30 -28
- package/components/CopyButton.vue.d.ts +50 -0
- package/components/CopyButton.vue.js +69 -0
- package/components/CopyButton.vue2.js +4 -0
- package/components/DataTable/DataTable.vue.d.ts +2 -4
- package/components/DataTable/DataTable.vue.js +184 -235
- package/components/DataTable/DataTableHeader.vue.d.ts +2 -0
- package/components/DataTable/DataTableHeader.vue.js +24 -23
- package/components/DataTable/DataTableRow.vue.d.ts +2 -0
- package/components/DataTable/DataTableRow.vue.js +32 -31
- package/components/DataTable/types.d.ts +2 -9
- package/components/DatePicker.vue.js +41 -35
- package/components/DateRangePicker.vue.js +18 -17
- package/components/Dropdown/Dropdown.vue.d.ts +5 -0
- package/components/Dropdown/Dropdown.vue.js +141 -137
- package/components/Dropdown/DropdownBooleanItem.vue.js +16 -15
- package/components/Dropdown/DropdownItem.vue.js +21 -20
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Dropdown/DropdownMenu.vue2.js +13 -12
- package/components/Dropdown/DropdownTrigger.vue.d.ts +4 -0
- package/components/Dropdown/DropdownTrigger.vue.js +12 -7
- package/components/Dropdown/composables/useDropdownHydration.d.ts +2 -0
- package/components/Dropdown/composables/useDropdownSelection.d.ts +1 -0
- package/components/Dropdown/composables/useDropdownSelection.js +46 -31
- package/components/Empty/Empty.vue.js +7 -5
- package/components/Empty/index.d.ts +1 -1
- package/components/Empty/variants/Variant12.vue.d.ts +22 -0
- package/components/Empty/variants/Variant12.vue.js +35 -0
- package/components/Empty/variants/Variant12.vue2.js +4 -0
- package/components/FilePicker/FilePicker.vue.js +93 -90
- package/components/Footer/Footer.vue.d.ts +3 -0
- package/components/Footer/Variant1.vue.d.ts +20 -0
- package/components/Footer/Variant2.vue.d.ts +20 -0
- package/components/Footer/Variant3.vue.d.ts +12 -0
- package/components/Footer/index.d.ts +2 -0
- package/components/Footer/types.d.ts +73 -0
- package/components/Form/CustomFields.vue.d.ts +2 -0
- package/components/Form/CustomFields.vue.js +1 -1
- package/components/Form/CustomFields.vue2.js +125 -122
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +68 -64
- package/components/Form/FormField.vue.js +205 -149
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +28 -27
- package/components/Form/types.d.ts +2 -2
- package/components/Form/utils/form.utils.d.ts +3 -3
- package/components/Form/utils/form.utils.js +37 -37
- package/components/Input.vue.js +64 -62
- package/components/Invoice/Invoice.vue.js +9 -7
- package/components/Invoice/InvoiceTotals.vue.d.ts +14 -0
- package/components/Invoice/InvoiceTotals.vue.js +86 -0
- package/components/Invoice/InvoiceTotals.vue2.js +4 -0
- package/components/Invoice/InvoiceVariant1.vue.d.ts +3 -1
- package/components/Invoice/InvoiceVariant1.vue.js +194 -207
- package/components/Invoice/InvoiceVariant2.vue.d.ts +3 -1
- package/components/Invoice/InvoiceVariant2.vue.js +109 -118
- package/components/Invoice/InvoiceVariant3.vue.d.ts +3 -1
- package/components/Invoice/InvoiceVariant3.vue.js +157 -167
- package/components/Invoice/InvoiceVariant4.vue.d.ts +3 -1
- package/components/Invoice/InvoiceVariant4.vue.js +192 -202
- package/components/Invoice/index.d.ts +1 -0
- package/components/Invoice/types.d.ts +22 -0
- package/components/Masonry/Masonry.vue.d.ts +1 -1
- package/components/Modal.vue.js +1 -1
- package/components/Modal.vue2.js +60 -54
- package/components/MultiSelect/MultiSelect.vue.d.ts +2 -0
- package/components/MultiSelect/MultiSelect.vue.js +92 -90
- package/components/MultiSelect/composables/useMultiSelectHydration.d.ts +2 -0
- package/components/NumberInput.vue.js +2 -2
- package/components/NumberInput.vue2.js +127 -121
- package/components/PricingPlan/PricingPlan.vue.d.ts +1 -1
- package/components/RichTextEditor/RichTextLinkPopover.vue.d.ts +26 -0
- package/components/RichTextEditor/RichTextReader.vue.d.ts +7 -0
- package/components/RichTextEditor/RichTextToolbar.vue.d.ts +24 -0
- package/components/RichTextEditor/composables/useRichTextImageUpload.d.ts +14 -0
- package/components/RichTextEditor/composables/useRichTextLinks.d.ts +32 -0
- package/components/RichTextEditor/index.d.ts +2 -0
- package/components/Screen/Screen.vue.js +45 -46
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/SidePanel.vue.js +2 -2
- package/components/SidePanel.vue2.js +58 -52
- package/components/SidebarMenu/SidebarMenu.vue.d.ts +1 -1
- package/components/SidebarMenu/SidebarMenu.vue.js +192 -91
- package/components/SidebarMenu/SidebarMenu.vue3.js +5 -0
- package/components/SidebarMenu/SidebarMenuItem.vue.js +170 -157
- package/components/SidebarMenu/types.d.ts +12 -3
- package/components/{DataTable/DataTableToolbar.vue.d.ts → Splitter/Splitter.vue.d.ts} +18 -15
- package/components/Splitter/Splitter.vue.js +64 -0
- package/components/Splitter/Splitter.vue2.js +4 -0
- package/components/Splitter/index.d.ts +1 -0
- package/components/Stats/StatItem.vue.js +96 -91
- package/components/Stats/types.d.ts +1 -0
- package/components/StatusChip/status-map.js +34 -2
- package/components/Switch.vue.d.ts +6 -1
- package/components/Switch.vue.js +61 -24
- package/components/TagInput/TagInput.vue.d.ts +187 -0
- package/components/TagInput/TagInput.vue.js +113 -0
- package/components/TagInput/TagInput.vue2.js +4 -0
- package/components/TagInput/index.d.ts +1 -0
- package/components/Textarea.vue.js +19 -18
- package/components/ThumbnailSelector/ThumbnailSelector.vue.js +2 -2
- package/components/ThumbnailSelector/ThumbnailSelector.vue2.js +19 -16
- package/components/index.d.ts +4 -0
- package/core/config.d.ts +54 -0
- package/index.d.ts +4 -0
- package/index.js +300 -285
- package/package.json +1 -1
- package/style.css +657 -6
- package/types/button.d.ts +1 -1
- package/types/config.type.d.ts +2 -0
- package/types/styles.d.ts +1 -0
- package/utils/functions.js +9 -9
- package/components/DataTable/DataTableToolbar.vue.js +0 -60
- package/components/DataTable/DataTableToolbar.vue2.js +0 -4
- package/components/SidebarMenu/SidebarMenu.vue2.js +0 -4
- /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as E, ref as k, watch as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as E, ref as k, watch as p, computed as u, onBeforeUnmount as q, openBlock as f, createElementBlock as y, normalizeClass as i, withModifiers as r, createVNode as g, createCommentVNode as P, createElementVNode as h, withKeys as z } from "vue";
|
|
2
|
+
import w from "./Icon.vue.js";
|
|
3
|
+
const L = ["disabled", "data-testid"], M = ["value", "placeholder", "disabled", "readonly", "onKeydown", "data-testid"], U = ["disabled", "data-testid"], W = {
|
|
4
4
|
key: 2,
|
|
5
5
|
class: "flex flex-col justify-center h-full py-[3px] pr-[3px]"
|
|
6
|
-
},
|
|
6
|
+
}, A = { class: "flex flex-col h-full w-6 scale-80" }, D = ["disabled", "data-testid"], G = ["disabled", "data-testid"], O = /* @__PURE__ */ E({
|
|
7
7
|
__name: "NumberInput",
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: { default: void 0 },
|
|
@@ -21,24 +21,24 @@ const M = ["disabled"], U = ["value", "min", "max", "step", "placeholder", "disa
|
|
|
21
21
|
rounded: { default: "md" }
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
24
|
-
setup(
|
|
25
|
-
const n =
|
|
26
|
-
|
|
24
|
+
setup(e, { emit: V }) {
|
|
25
|
+
const n = e, m = V, a = k(n.modelValue ?? "");
|
|
26
|
+
p(
|
|
27
27
|
() => n.modelValue,
|
|
28
|
-
(
|
|
29
|
-
|
|
28
|
+
(d) => {
|
|
29
|
+
d !== void 0 && (a.value = d);
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
|
-
const B = k(null), c =
|
|
33
|
-
const
|
|
32
|
+
const B = k(null), c = u(() => {
|
|
33
|
+
const d = {
|
|
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" },
|
|
36
36
|
md: { h: "h-9", text: "text-sm", px: "px-3", icon: "w-4 h-4" },
|
|
37
37
|
lg: { h: "h-10", text: "text-sm", px: "px-4", icon: "w-5 h-5" },
|
|
38
38
|
xl: { h: "h-12", text: "text-lg", px: "px-5", icon: "w-6 h-6" }
|
|
39
39
|
};
|
|
40
|
-
return
|
|
41
|
-
}),
|
|
40
|
+
return d[n.size] || d.md;
|
|
41
|
+
}), I = u(() => ({
|
|
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"),
|
|
49
|
+
})[n.rounded] || "rounded-md"), j = u(() => ({
|
|
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 = u(() => ({
|
|
58
58
|
none: "rounded-r-none",
|
|
59
59
|
sm: "rounded-r-sm",
|
|
60
60
|
md: "rounded-r-md",
|
|
@@ -62,177 +62,183 @@ 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 = u(() => [
|
|
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" : "",
|
|
69
69
|
n.mode === "outline" ? "border border-input bg-background" : "",
|
|
70
70
|
n.mode === "ghost" ? "bg-transparent" : "",
|
|
71
71
|
c.value.h,
|
|
72
|
-
|
|
73
|
-
]), K =
|
|
72
|
+
I.value
|
|
73
|
+
]), K = u(() => [
|
|
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 =
|
|
80
|
-
const
|
|
79
|
+
]), C = u(() => {
|
|
80
|
+
const d = "flex items-center justify-center transition-colors active:scale-95 shrink-0 select-none", t = 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
|
+
d,
|
|
83
83
|
n.disabled ? "" : "hover:text-primary hover:bg-background/80",
|
|
84
84
|
"bg-background shadow-sm rounded-full mx-1 my-0.5 aspect-square self-center h-[calc(100%-12px)] w-auto max-w-[calc(100%-12px)] flex items-center justify-center"
|
|
85
|
-
] : [
|
|
86
|
-
}), s = (
|
|
85
|
+
] : [d, t, "h-full", "px-2"] : [d, t, "h-1/2 w-8 border-l border-input/50"];
|
|
86
|
+
}), s = (d) => {
|
|
87
87
|
if (n.disabled || n.readonly) return;
|
|
88
|
-
let
|
|
89
|
-
n.min !== void 0 &&
|
|
88
|
+
let t = d;
|
|
89
|
+
n.min !== void 0 && t < n.min && (t = n.min), n.max !== void 0 && t > n.max && (t = n.max), a.value = t, m("update:modelValue", t), m("change", t);
|
|
90
90
|
};
|
|
91
|
-
let
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
if (n.disabled || n.readonly || n.max !== void 0 && Number(
|
|
96
|
-
|
|
91
|
+
let b = null, x = null;
|
|
92
|
+
const l = () => {
|
|
93
|
+
b && clearTimeout(b), x && clearInterval(x), b = null, x = null;
|
|
94
|
+
}, $ = () => {
|
|
95
|
+
if (n.disabled || n.readonly || n.max !== void 0 && Number(a.value) >= n.max) {
|
|
96
|
+
l();
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
|
-
const
|
|
100
|
-
s(
|
|
99
|
+
const d = Number(a.value) || 0;
|
|
100
|
+
s(d + n.step);
|
|
101
101
|
}, N = () => {
|
|
102
|
-
if (n.disabled || n.readonly || n.min !== void 0 && Number(
|
|
103
|
-
|
|
102
|
+
if (n.disabled || n.readonly || n.min !== void 0 && Number(a.value) <= n.min) {
|
|
103
|
+
l();
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
const
|
|
107
|
-
s(
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
106
|
+
const d = Number(a.value) || 0;
|
|
107
|
+
s(d - n.step);
|
|
108
|
+
}, v = (d, t) => {
|
|
109
|
+
t.button !== 0 && t.pointerType === "mouse" || (l(), d === "inc" ? $() : N(), b = setTimeout(() => {
|
|
110
|
+
x = setInterval(() => {
|
|
111
|
+
d === "inc" ? $() : N();
|
|
112
112
|
}, 50);
|
|
113
113
|
}, 400));
|
|
114
|
-
}, R = (
|
|
115
|
-
const
|
|
116
|
-
if (isNaN(
|
|
117
|
-
|
|
114
|
+
}, R = (d) => {
|
|
115
|
+
const t = d.target, o = parseFloat(t.value);
|
|
116
|
+
if (isNaN(o)) {
|
|
117
|
+
a.value = t.value;
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
|
-
s(
|
|
121
|
-
}, T = (
|
|
122
|
-
m("blur",
|
|
123
|
-
const
|
|
124
|
-
isNaN(
|
|
120
|
+
s(o);
|
|
121
|
+
}, T = (d) => {
|
|
122
|
+
m("blur", d);
|
|
123
|
+
const t = parseFloat(String(a.value));
|
|
124
|
+
isNaN(t) ? s(n.min || 0) : s(t);
|
|
125
125
|
};
|
|
126
|
-
return
|
|
127
|
-
|
|
128
|
-
}), (
|
|
129
|
-
class:
|
|
126
|
+
return q(() => {
|
|
127
|
+
l();
|
|
128
|
+
}), (d, t) => (f(), y("div", {
|
|
129
|
+
class: i([F.value, "overflow-hidden"])
|
|
130
130
|
}, [
|
|
131
|
-
|
|
131
|
+
e.variant === "split" && !e.disabled && !e.readonly ? (f(), y("button", {
|
|
132
132
|
key: 0,
|
|
133
133
|
tabindex: "-1",
|
|
134
134
|
type: "button",
|
|
135
|
-
class:
|
|
135
|
+
class: i([
|
|
136
136
|
C.value,
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
e.mode === "outline" ? "border-r border-input" : "",
|
|
138
|
+
e.variant === "split" && e.mode !== "solid" ? j.value : ""
|
|
139
139
|
]),
|
|
140
|
-
disabled:
|
|
141
|
-
onPointerdown:
|
|
142
|
-
onPointerup:
|
|
143
|
-
onPointerleave:
|
|
144
|
-
onPointercancel:
|
|
145
|
-
onContextmenu:
|
|
146
|
-
}, ["prevent"]))
|
|
140
|
+
disabled: e.disabled || e.min !== void 0 && Number(a.value) <= e.min,
|
|
141
|
+
onPointerdown: t[0] || (t[0] = (o) => v("dec", o)),
|
|
142
|
+
onPointerup: l,
|
|
143
|
+
onPointerleave: l,
|
|
144
|
+
onPointercancel: l,
|
|
145
|
+
onContextmenu: t[1] || (t[1] = r(() => {
|
|
146
|
+
}, ["prevent"])),
|
|
147
|
+
"data-testid": d.$attrs["data-testid"] ? `${d.$attrs["data-testid"]}-dec` : e.name ? `number-${e.name}-dec` : e.id ? `number-${e.id}-dec` : "number-input-dec"
|
|
147
148
|
}, [
|
|
148
|
-
|
|
149
|
+
g(w, {
|
|
149
150
|
icon: "lucide:minus",
|
|
150
|
-
class:
|
|
151
|
+
class: i(c.value.icon)
|
|
151
152
|
}, null, 8, ["class"])
|
|
152
|
-
], 42,
|
|
153
|
-
|
|
153
|
+
], 42, L)) : P("", !0),
|
|
154
|
+
h("input", {
|
|
154
155
|
ref_key: "inputRef",
|
|
155
156
|
ref: B,
|
|
156
157
|
type: "number",
|
|
157
|
-
value:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
disabled: t.disabled,
|
|
163
|
-
readonly: t.readonly,
|
|
164
|
-
class: u(K.value),
|
|
158
|
+
value: a.value,
|
|
159
|
+
placeholder: e.placeholder,
|
|
160
|
+
disabled: e.disabled,
|
|
161
|
+
readonly: e.readonly,
|
|
162
|
+
class: i(K.value),
|
|
165
163
|
onInput: R,
|
|
166
|
-
onFocus:
|
|
164
|
+
onFocus: t[2] || (t[2] = (o) => m("focus", o)),
|
|
167
165
|
onBlur: T,
|
|
168
166
|
onKeydown: [
|
|
169
|
-
z(
|
|
170
|
-
z(
|
|
171
|
-
]
|
|
172
|
-
|
|
173
|
-
|
|
167
|
+
z(r($, ["prevent"]), ["up"]),
|
|
168
|
+
z(r(N, ["prevent"]), ["down"])
|
|
169
|
+
],
|
|
170
|
+
onWheel: t[3] || (t[3] = r(() => {
|
|
171
|
+
}, ["prevent"])),
|
|
172
|
+
onInvalid: t[4] || (t[4] = r(() => {
|
|
173
|
+
}, ["prevent"])),
|
|
174
|
+
"data-testid": d.$attrs["data-testid"] || (e.name ? `number-${e.name}` : e.id ? `number-${e.id}` : "number-input")
|
|
175
|
+
}, null, 42, M),
|
|
176
|
+
e.variant === "split" && !e.disabled && !e.readonly ? (f(), y("button", {
|
|
174
177
|
key: 1,
|
|
175
178
|
tabindex: "-1",
|
|
176
179
|
type: "button",
|
|
177
|
-
class:
|
|
180
|
+
class: i([
|
|
178
181
|
C.value,
|
|
179
|
-
|
|
180
|
-
|
|
182
|
+
e.mode === "outline" ? "border-l border-input" : "",
|
|
183
|
+
e.variant === "split" && e.mode !== "solid" ? S.value : ""
|
|
181
184
|
]),
|
|
182
|
-
disabled:
|
|
183
|
-
onPointerdown:
|
|
184
|
-
onPointerup:
|
|
185
|
-
onPointerleave:
|
|
186
|
-
onPointercancel:
|
|
187
|
-
onContextmenu:
|
|
188
|
-
}, ["prevent"]))
|
|
185
|
+
disabled: e.disabled || e.max !== void 0 && Number(a.value) >= e.max,
|
|
186
|
+
onPointerdown: t[5] || (t[5] = (o) => v("inc", o)),
|
|
187
|
+
onPointerup: l,
|
|
188
|
+
onPointerleave: l,
|
|
189
|
+
onPointercancel: l,
|
|
190
|
+
onContextmenu: t[6] || (t[6] = r(() => {
|
|
191
|
+
}, ["prevent"])),
|
|
192
|
+
"data-testid": d.$attrs["data-testid"] ? `${d.$attrs["data-testid"]}-inc` : e.name ? `number-${e.name}-inc` : e.id ? `number-${e.id}-inc` : "number-input-inc"
|
|
189
193
|
}, [
|
|
190
|
-
|
|
194
|
+
g(w, {
|
|
191
195
|
icon: "lucide:plus",
|
|
192
|
-
class:
|
|
196
|
+
class: i(c.value.icon)
|
|
193
197
|
}, null, 8, ["class"])
|
|
194
|
-
], 42,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
+
], 42, U)) : P("", !0),
|
|
199
|
+
e.variant === "stacked" && !e.disabled && !e.readonly ? (f(), y("div", W, [
|
|
200
|
+
h("div", A, [
|
|
201
|
+
h("button", {
|
|
198
202
|
tabindex: "-1",
|
|
199
203
|
type: "button",
|
|
200
204
|
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
|
-
disabled:
|
|
202
|
-
onPointerdown:
|
|
203
|
-
onPointerup:
|
|
204
|
-
onPointerleave:
|
|
205
|
-
onPointercancel:
|
|
206
|
-
onContextmenu:
|
|
207
|
-
}, ["prevent"]))
|
|
205
|
+
disabled: e.disabled || e.max !== void 0 && Number(a.value) >= e.max,
|
|
206
|
+
onPointerdown: t[7] || (t[7] = (o) => v("inc", o)),
|
|
207
|
+
onPointerup: l,
|
|
208
|
+
onPointerleave: l,
|
|
209
|
+
onPointercancel: l,
|
|
210
|
+
onContextmenu: t[8] || (t[8] = r(() => {
|
|
211
|
+
}, ["prevent"])),
|
|
212
|
+
"data-testid": d.$attrs["data-testid"] ? `${d.$attrs["data-testid"]}-inc` : e.name ? `number-${e.name}-inc` : e.id ? `number-${e.id}-inc` : "number-input-inc"
|
|
208
213
|
}, [
|
|
209
|
-
|
|
210
|
-
class:
|
|
214
|
+
g(w, {
|
|
215
|
+
class: i(["text-gray-700/85!", e.size === "xs" || e.size === "sm" ? "w-3 h-3" : "w-3.5 h-3.5"]),
|
|
211
216
|
icon: "mynaui:chevron-up-solid"
|
|
212
217
|
}, null, 8, ["class"])
|
|
213
|
-
], 40,
|
|
214
|
-
|
|
218
|
+
], 40, D),
|
|
219
|
+
h("button", {
|
|
215
220
|
tabindex: "-1",
|
|
216
221
|
type: "button",
|
|
217
222
|
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
|
-
disabled:
|
|
219
|
-
onPointerdown:
|
|
220
|
-
onPointerup:
|
|
221
|
-
onPointerleave:
|
|
222
|
-
onPointercancel:
|
|
223
|
-
onContextmenu:
|
|
224
|
-
}, ["prevent"]))
|
|
223
|
+
disabled: e.disabled || e.min !== void 0 && Number(a.value) <= e.min,
|
|
224
|
+
onPointerdown: t[9] || (t[9] = (o) => v("dec", o)),
|
|
225
|
+
onPointerup: l,
|
|
226
|
+
onPointerleave: l,
|
|
227
|
+
onPointercancel: l,
|
|
228
|
+
onContextmenu: t[10] || (t[10] = r(() => {
|
|
229
|
+
}, ["prevent"])),
|
|
230
|
+
"data-testid": d.$attrs["data-testid"] ? `${d.$attrs["data-testid"]}-dec` : e.name ? `number-${e.name}-dec` : e.id ? `number-${e.id}-dec` : "number-input-dec"
|
|
225
231
|
}, [
|
|
226
|
-
|
|
227
|
-
class:
|
|
232
|
+
g(w, {
|
|
233
|
+
class: i(["text-gray-700/85!", e.size === "xs" || e.size === "sm" ? "w-3 h-3" : "w-3.5 h-3.5"]),
|
|
228
234
|
icon: "mynaui:chevron-down-solid"
|
|
229
235
|
}, null, 8, ["class"])
|
|
230
|
-
], 40,
|
|
236
|
+
], 40, G)
|
|
231
237
|
])
|
|
232
238
|
])) : P("", !0)
|
|
233
239
|
], 2));
|
|
234
240
|
}
|
|
235
241
|
});
|
|
236
242
|
export {
|
|
237
|
-
|
|
243
|
+
O as default
|
|
238
244
|
};
|
|
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
16
16
|
variant: PricingPlanVariant;
|
|
17
17
|
columns: number | string;
|
|
18
18
|
modelValue: string | number | null;
|
|
19
|
-
items: PricingPlanItemSchema[];
|
|
20
19
|
gap: number;
|
|
20
|
+
items: PricingPlanItemSchema[];
|
|
21
21
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
22
|
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
isEditing: boolean;
|
|
4
|
+
url: string;
|
|
5
|
+
popoverStyle?: Record<string, string | number>;
|
|
6
|
+
}
|
|
7
|
+
declare function focusInput(): void;
|
|
8
|
+
declare const _default: import('vue').DefineComponent<Props, {
|
|
9
|
+
focusInput: typeof focusInput;
|
|
10
|
+
el: import('vue').Ref<HTMLInputElement, HTMLInputElement>;
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
apply: () => any;
|
|
13
|
+
close: () => any;
|
|
14
|
+
"update:url": (val: string) => any;
|
|
15
|
+
unlink: () => any;
|
|
16
|
+
openTab: () => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
18
|
+
onApply?: () => any;
|
|
19
|
+
onClose?: () => any;
|
|
20
|
+
"onUpdate:url"?: (val: string) => any;
|
|
21
|
+
onUnlink?: () => any;
|
|
22
|
+
onOpenTab?: () => any;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
|
+
linkInputRef: HTMLInputElement;
|
|
25
|
+
}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
content?: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
5
|
+
content: string;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
toolbarState: Record<string, boolean>;
|
|
3
|
+
activeBlock: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
readonly?: boolean;
|
|
6
|
+
isUploadingImage: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
command: (cmd: string, val?: string) => any;
|
|
11
|
+
setBlock: (tag: string) => any;
|
|
12
|
+
insertCode: () => any;
|
|
13
|
+
triggerImageUpload: () => any;
|
|
14
|
+
openLinkPopover: () => any;
|
|
15
|
+
clearFormat: () => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
17
|
+
onCommand?: (cmd: string, val?: string) => any;
|
|
18
|
+
onSetBlock?: (tag: string) => any;
|
|
19
|
+
onInsertCode?: () => any;
|
|
20
|
+
onTriggerImageUpload?: () => any;
|
|
21
|
+
onOpenLinkPopover?: () => any;
|
|
22
|
+
onClearFormat?: () => any;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function useRichTextImageUpload(editorRef: {
|
|
2
|
+
value: HTMLDivElement | null;
|
|
3
|
+
}, callbacks: {
|
|
4
|
+
saveSelection: () => void;
|
|
5
|
+
restoreSelection: () => void;
|
|
6
|
+
onInput: () => void;
|
|
7
|
+
}): {
|
|
8
|
+
imageInputRef: import('vue').Ref<HTMLInputElement, HTMLInputElement>;
|
|
9
|
+
isUploadingImage: import('vue').ComputedRef<boolean>;
|
|
10
|
+
triggerImageUpload: (disabledOrReadonly: boolean) => void;
|
|
11
|
+
onImageFileChange: (e: Event) => Promise<void>;
|
|
12
|
+
onPaste: (e: ClipboardEvent) => Promise<void>;
|
|
13
|
+
onDrop: (e: DragEvent) => Promise<void>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Ref, ComponentPublicInstance } from 'vue';
|
|
2
|
+
export interface EditorContext {
|
|
3
|
+
editorRef: Ref<HTMLDivElement | null>;
|
|
4
|
+
rootRef: Ref<HTMLDivElement | null>;
|
|
5
|
+
linkPopoverElRef: Ref<HTMLElement | ComponentPublicInstance | null>;
|
|
6
|
+
callbacks: {
|
|
7
|
+
restoreSelection: () => void;
|
|
8
|
+
onInput: () => void;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function useRichTextLinks(ctx: EditorContext): {
|
|
12
|
+
linkPopover: import('vue').ShallowRef<{
|
|
13
|
+
visible: boolean;
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
url: string;
|
|
17
|
+
isEditing: boolean;
|
|
18
|
+
}, {
|
|
19
|
+
visible: boolean;
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
url: string;
|
|
23
|
+
isEditing: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
checkLinkAtCursor: () => void;
|
|
26
|
+
openLinkPopover: () => void;
|
|
27
|
+
applyLink: (urlVal?: string) => void;
|
|
28
|
+
unlinkCurrent: () => void;
|
|
29
|
+
openLinkInTab: (urlVal?: string) => void;
|
|
30
|
+
closeLinkPopover: () => void;
|
|
31
|
+
updateUrl: (url: string) => void;
|
|
32
|
+
};
|