@enos5/enos-vue-default 1.6.3 → 1.6.4
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/dist/components/InputGroup.vue.d.ts +9 -0
- package/dist/components/TinyEditor.vue.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/index.node.js +1 -1
- package/dist/{plugin-N46eeXWN.js → plugin-C0ANDjrt.js} +74 -58
- package/dist/plugin-C0ANDjrt.js.map +1 -0
- package/dist/styles.css +118 -5613
- package/package.json +1 -1
- package/dist/plugin-N46eeXWN.js.map +0 -1
|
@@ -149,6 +149,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
149
149
|
type: StringConstructor;
|
|
150
150
|
default: string;
|
|
151
151
|
};
|
|
152
|
+
darkMode: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
152
156
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
153
157
|
"update:modelValue": (...args: any[]) => void;
|
|
154
158
|
blur: (...args: any[]) => void;
|
|
@@ -297,6 +301,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
297
301
|
type: StringConstructor;
|
|
298
302
|
default: string;
|
|
299
303
|
};
|
|
304
|
+
darkMode: {
|
|
305
|
+
type: BooleanConstructor;
|
|
306
|
+
default: boolean;
|
|
307
|
+
};
|
|
300
308
|
}>> & Readonly<{
|
|
301
309
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
302
310
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
@@ -336,6 +344,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
336
344
|
init: Record<string, any>;
|
|
337
345
|
licenseKey: string;
|
|
338
346
|
outputFormat: string;
|
|
347
|
+
darkMode: boolean;
|
|
339
348
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
340
349
|
type __VLS_Slots = {
|
|
341
350
|
'unsupported-type'?: ((props: {
|
|
@@ -37,6 +37,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
37
37
|
type: StringConstructor;
|
|
38
38
|
default: string;
|
|
39
39
|
};
|
|
40
|
+
darkMode: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
40
44
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
45
|
"update:modelValue": (...args: any[]) => void;
|
|
42
46
|
blur: (...args: any[]) => void;
|
|
@@ -77,6 +81,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
77
81
|
type: StringConstructor;
|
|
78
82
|
default: string;
|
|
79
83
|
};
|
|
84
|
+
darkMode: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
80
88
|
}>> & Readonly<{
|
|
81
89
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
82
90
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
@@ -89,5 +97,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
89
97
|
init: Record<string, any>;
|
|
90
98
|
licenseKey: string;
|
|
91
99
|
outputFormat: string;
|
|
100
|
+
darkMode: boolean;
|
|
92
101
|
readonly: boolean;
|
|
93
102
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './styles.css';
|
|
2
|
-
import { _, a, b, c, d, e, f, g, h, i, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, S, B, C, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1 } from "./plugin-
|
|
2
|
+
import { _, a, b, c, d, e, f, g, h, i, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, S, B, C, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1 } from "./plugin-C0ANDjrt.js";
|
|
3
3
|
export {
|
|
4
4
|
_ as ActionCard,
|
|
5
5
|
a as ActionMessage,
|
package/dist/index.node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _, a, b, c, d, e, f, g, h, i, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, S, B, C, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1 } from "./plugin-
|
|
1
|
+
import { _, a, b, c, d, e, f, g, h, i, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, S, B, C, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1 } from "./plugin-C0ANDjrt.js";
|
|
2
2
|
export {
|
|
3
3
|
_ as ActionCard,
|
|
4
4
|
a as ActionMessage,
|
|
@@ -2,7 +2,7 @@ import { ref, computed, watch, openBlock, createElementBlock, createElementVNode
|
|
|
2
2
|
import { LockClosedIcon, ChevronDownIcon, PhotoIcon, ExclamationCircleIcon, ExclamationTriangleIcon, ChevronUpIcon, MagnifyingGlassIcon, CheckIcon, PencilSquareIcon } from "@heroicons/vue/24/outline";
|
|
3
3
|
import Editor from "@tinymce/tinymce-vue";
|
|
4
4
|
import { Link } from "@inertiajs/vue3";
|
|
5
|
-
const _hoisted_1$
|
|
5
|
+
const _hoisted_1$B = { class: "border-b border-neutral-200 bg-neutral-50/80 p-2 dark:border-neutral-800 dark:bg-neutral-900/80" };
|
|
6
6
|
const _hoisted_2$m = {
|
|
7
7
|
role: "tablist",
|
|
8
8
|
class: "flex overflow-hidden rounded-lg bg-white shadow-sm ring-1 ring-neutral-200 dark:bg-neutral-950 dark:ring-neutral-800"
|
|
@@ -77,7 +77,7 @@ const _sfc_main$R = {
|
|
|
77
77
|
focusTabAtIndex(targetIndex);
|
|
78
78
|
};
|
|
79
79
|
return (_ctx, _cache) => {
|
|
80
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
80
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
81
81
|
createElementVNode("div", _hoisted_2$m, [
|
|
82
82
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabs, (tab, index) => {
|
|
83
83
|
return openBlock(), createElementBlock("button", {
|
|
@@ -105,7 +105,7 @@ const _sfc_main$R = {
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
|
-
const _hoisted_1$
|
|
108
|
+
const _hoisted_1$A = {
|
|
109
109
|
key: 0,
|
|
110
110
|
class: "mb-4"
|
|
111
111
|
};
|
|
@@ -184,7 +184,7 @@ const _sfc_main$Q = {
|
|
|
184
184
|
createElementVNode("div", {
|
|
185
185
|
class: normalizeClass(__props.paddingClass)
|
|
186
186
|
}, [
|
|
187
|
-
_ctx.$slots.customTitle ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
187
|
+
_ctx.$slots.customTitle ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
188
188
|
renderSlot(_ctx.$slots, "customTitle")
|
|
189
189
|
])) : __props.title ? (openBlock(), createElementBlock("h3", _hoisted_2$l, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
190
190
|
createElementVNode("div", {
|
|
@@ -267,7 +267,7 @@ const _sfc_main$O = {
|
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
|
-
const _hoisted_1$
|
|
270
|
+
const _hoisted_1$z = { class: "text-sm text-gray-600" };
|
|
271
271
|
const _sfc_main$N = {
|
|
272
272
|
__name: "ActionMessage",
|
|
273
273
|
props: {
|
|
@@ -282,7 +282,7 @@ const _sfc_main$N = {
|
|
|
282
282
|
"leave-to-class": "opacity-0"
|
|
283
283
|
}, {
|
|
284
284
|
default: withCtx(() => [
|
|
285
|
-
withDirectives(createElementVNode("div", _hoisted_1$
|
|
285
|
+
withDirectives(createElementVNode("div", _hoisted_1$z, [
|
|
286
286
|
renderSlot(_ctx.$slots, "default")
|
|
287
287
|
], 512), [
|
|
288
288
|
[vShow, __props.on]
|
|
@@ -302,13 +302,13 @@ const _export_sfc = (sfc, props) => {
|
|
|
302
302
|
return target;
|
|
303
303
|
};
|
|
304
304
|
const _sfc_main$M = {};
|
|
305
|
-
const _hoisted_1$
|
|
305
|
+
const _hoisted_1$y = { class: "md:col-span-1 flex justify-between" };
|
|
306
306
|
const _hoisted_2$k = { class: "px-4 sm:px-0" };
|
|
307
307
|
const _hoisted_3$e = { class: "text-xl font-semibold tracking-tight text-neutral-950 dark:text-neutral-50" };
|
|
308
308
|
const _hoisted_4$9 = { class: "mt-1 max-w-2xl text-sm text-neutral-600 dark:text-neutral-200" };
|
|
309
309
|
const _hoisted_5$7 = { class: "px-4 sm:px-0" };
|
|
310
310
|
function _sfc_render(_ctx, _cache) {
|
|
311
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
311
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
312
312
|
createElementVNode("div", _hoisted_2$k, [
|
|
313
313
|
createElementVNode("h3", _hoisted_3$e, [
|
|
314
314
|
renderSlot(_ctx.$slots, "title")
|
|
@@ -323,14 +323,14 @@ function _sfc_render(_ctx, _cache) {
|
|
|
323
323
|
]);
|
|
324
324
|
}
|
|
325
325
|
const SectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render]]);
|
|
326
|
-
const _hoisted_1$
|
|
326
|
+
const _hoisted_1$x = { class: "md:grid md:grid-cols-3 md:gap-6" };
|
|
327
327
|
const _hoisted_2$j = { class: "mt-5 md:mt-0 md:col-span-2" };
|
|
328
328
|
const _hoisted_3$d = { class: "rounded-lg border border-neutral-200 bg-white px-4 py-5 shadow-sm dark:border-neutral-800 dark:bg-neutral-950 sm:p-6" };
|
|
329
329
|
const _sfc_main$L = {
|
|
330
330
|
__name: "ActionSection",
|
|
331
331
|
setup(__props) {
|
|
332
332
|
return (_ctx, _cache) => {
|
|
333
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
333
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
334
334
|
createVNode(SectionTitle, null, {
|
|
335
335
|
title: withCtx(() => [
|
|
336
336
|
renderSlot(_ctx.$slots, "title")
|
|
@@ -349,7 +349,7 @@ const _sfc_main$L = {
|
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
|
-
const _hoisted_1$
|
|
352
|
+
const _hoisted_1$w = { class: "sr-only" };
|
|
353
353
|
const _sfc_main$K = {
|
|
354
354
|
__name: "Badge",
|
|
355
355
|
props: {
|
|
@@ -415,7 +415,7 @@ const _sfc_main$K = {
|
|
|
415
415
|
createElementVNode("span", {
|
|
416
416
|
class: normalizeClass(["w-2 h-2 rounded-full", colorClasses[__props.color].dot])
|
|
417
417
|
}, null, 2),
|
|
418
|
-
createElementVNode("span", _hoisted_1$
|
|
418
|
+
createElementVNode("span", _hoisted_1$w, [
|
|
419
419
|
renderSlot(_ctx.$slots, "default")
|
|
420
420
|
])
|
|
421
421
|
], 2)) : (openBlock(), createElementBlock("span", {
|
|
@@ -432,7 +432,7 @@ const _sfc_main$K = {
|
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
|
-
const _hoisted_1$
|
|
435
|
+
const _hoisted_1$v = ["type", "disabled"];
|
|
436
436
|
const _sfc_main$J = /* @__PURE__ */ Object.assign({
|
|
437
437
|
inheritAttrs: false
|
|
438
438
|
}, {
|
|
@@ -500,11 +500,11 @@ const _sfc_main$J = /* @__PURE__ */ Object.assign({
|
|
|
500
500
|
class: buttonClasses.value
|
|
501
501
|
}), [
|
|
502
502
|
renderSlot(_ctx.$slots, "default")
|
|
503
|
-
], 16, _hoisted_1$
|
|
503
|
+
], 16, _hoisted_1$v);
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
|
-
const _hoisted_1$
|
|
507
|
+
const _hoisted_1$u = ["value"];
|
|
508
508
|
const _sfc_main$I = {
|
|
509
509
|
__name: "Checkbox",
|
|
510
510
|
props: {
|
|
@@ -535,13 +535,13 @@ const _sfc_main$I = {
|
|
|
535
535
|
type: "checkbox",
|
|
536
536
|
value: __props.value,
|
|
537
537
|
class: "rounded border-neutral-300 text-neutral-900 shadow-sm focus:ring-neutral-900 dark:border-neutral-700 dark:bg-neutral-950 dark:text-neutral-100 dark:focus:ring-neutral-100"
|
|
538
|
-
}, null, 8, _hoisted_1$
|
|
538
|
+
}, null, 8, _hoisted_1$u)), [
|
|
539
539
|
[vModelCheckbox, proxyChecked.value]
|
|
540
540
|
]);
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
543
|
};
|
|
544
|
-
const _hoisted_1$
|
|
544
|
+
const _hoisted_1$t = ["name", "checked", "disabled"];
|
|
545
545
|
const _sfc_main$H = {
|
|
546
546
|
__name: "CheckboxInput",
|
|
547
547
|
props: {
|
|
@@ -602,7 +602,7 @@ const _sfc_main$H = {
|
|
|
602
602
|
onChange,
|
|
603
603
|
onFocus: handleFocus,
|
|
604
604
|
onBlur: handleBlur
|
|
605
|
-
}, null, 40, _hoisted_1$
|
|
605
|
+
}, null, 40, _hoisted_1$t),
|
|
606
606
|
createElementVNode("span", {
|
|
607
607
|
class: normalizeClass(["inline-flex h-4 w-4 items-center justify-center border text-[10px] font-bold leading-none", [
|
|
608
608
|
isChecked.value ? "border-current bg-white/15 text-current dark:bg-neutral-900/15" : "border-current/70 text-transparent",
|
|
@@ -614,7 +614,7 @@ const _sfc_main$H = {
|
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
616
|
};
|
|
617
|
-
const _hoisted_1$
|
|
617
|
+
const _hoisted_1$s = { class: "relative flex items-center" };
|
|
618
618
|
const _hoisted_2$i = {
|
|
619
619
|
key: 0,
|
|
620
620
|
class: "absolute inset-y-0 left-0 flex items-center pointer-events-none pl-3"
|
|
@@ -695,7 +695,7 @@ const _sfc_main$G = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
695
695
|
});
|
|
696
696
|
__expose({ focus: () => input.value?.focus() });
|
|
697
697
|
return (_ctx, _cache) => {
|
|
698
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
698
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
699
699
|
isPasswordField.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
|
|
700
700
|
createVNode(unref(LockClosedIcon), { class: "h-5 w-5 text-neutral-400 dark:text-neutral-200" })
|
|
701
701
|
])) : createCommentVNode("", true),
|
|
@@ -744,7 +744,7 @@ const _sfc_main$G = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
746
|
});
|
|
747
|
-
const _hoisted_1$
|
|
747
|
+
const _hoisted_1$r = ["value", "disabled"];
|
|
748
748
|
const DEFAULT_MAX_LENGTH = 1e3;
|
|
749
749
|
const _sfc_main$F = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
750
750
|
__name: "TextArea",
|
|
@@ -816,12 +816,12 @@ const _sfc_main$F = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
816
816
|
value: props.modelValue,
|
|
817
817
|
disabled: props.disabled,
|
|
818
818
|
onInput: updateValue
|
|
819
|
-
}), null, 16, _hoisted_1$
|
|
819
|
+
}), null, 16, _hoisted_1$r)
|
|
820
820
|
]);
|
|
821
821
|
};
|
|
822
822
|
}
|
|
823
823
|
});
|
|
824
|
-
const _hoisted_1$
|
|
824
|
+
const _hoisted_1$q = ["onClick"];
|
|
825
825
|
const _hoisted_2$h = {
|
|
826
826
|
key: 0,
|
|
827
827
|
class: "flex items-center gap-3"
|
|
@@ -1203,7 +1203,7 @@ const _sfc_main$E = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1203
1203
|
key: 1,
|
|
1204
1204
|
style: normalizeStyle(darkTextStyle.value)
|
|
1205
1205
|
}, toDisplayString(optionText(option)), 5))
|
|
1206
|
-
], 10, _hoisted_1$
|
|
1206
|
+
], 10, _hoisted_1$q);
|
|
1207
1207
|
}), 128))
|
|
1208
1208
|
], 2)
|
|
1209
1209
|
], 6)) : createCommentVNode("", true)
|
|
@@ -1334,7 +1334,7 @@ const _sfc_main$D = {
|
|
|
1334
1334
|
};
|
|
1335
1335
|
}
|
|
1336
1336
|
};
|
|
1337
|
-
const _hoisted_1$
|
|
1337
|
+
const _hoisted_1$p = ["type", "max", "value", "disabled"];
|
|
1338
1338
|
const _sfc_main$C = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
1339
1339
|
__name: "DateInput",
|
|
1340
1340
|
props: {
|
|
@@ -1415,12 +1415,12 @@ const _sfc_main$C = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1415
1415
|
disabled: props.disabled,
|
|
1416
1416
|
onInput: handleDateInput,
|
|
1417
1417
|
onChange: handleDateInput
|
|
1418
|
-
}), null, 16, _hoisted_1$
|
|
1418
|
+
}), null, 16, _hoisted_1$p);
|
|
1419
1419
|
};
|
|
1420
1420
|
}
|
|
1421
1421
|
});
|
|
1422
1422
|
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-35dd480a"]]);
|
|
1423
|
-
const _hoisted_1$
|
|
1423
|
+
const _hoisted_1$o = { class: "relative" };
|
|
1424
1424
|
const _hoisted_2$g = { class: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none" };
|
|
1425
1425
|
const _hoisted_3$a = ["accept"];
|
|
1426
1426
|
const _hoisted_4$7 = {
|
|
@@ -1465,7 +1465,7 @@ const _sfc_main$B = {
|
|
|
1465
1465
|
};
|
|
1466
1466
|
return (_ctx, _cache) => {
|
|
1467
1467
|
return openBlock(), createElementBlock("div", null, [
|
|
1468
|
-
createElementVNode("div", _hoisted_1$
|
|
1468
|
+
createElementVNode("div", _hoisted_1$o, [
|
|
1469
1469
|
createElementVNode("div", _hoisted_2$g, [
|
|
1470
1470
|
createVNode(unref(PhotoIcon), { class: "size-5 text-neutral-400 dark:text-neutral-200" })
|
|
1471
1471
|
]),
|
|
@@ -1493,7 +1493,7 @@ const _sfc_main$B = {
|
|
|
1493
1493
|
};
|
|
1494
1494
|
}
|
|
1495
1495
|
};
|
|
1496
|
-
const _hoisted_1$
|
|
1496
|
+
const _hoisted_1$n = { class: "flex h-12 overflow-hidden rounded-lg border border-neutral-200 bg-white text-sm dark:border-neutral-800 dark:bg-neutral-950" };
|
|
1497
1497
|
const _hoisted_2$f = ["disabled", "onClick"];
|
|
1498
1498
|
const _sfc_main$A = {
|
|
1499
1499
|
__name: "NotationInput",
|
|
@@ -1521,7 +1521,7 @@ const _sfc_main$A = {
|
|
|
1521
1521
|
const isSelected = (option) => String(option) === String(props.modelValue ?? "");
|
|
1522
1522
|
const selectOption = (option) => emit("update:modelValue", option);
|
|
1523
1523
|
return (_ctx, _cache) => {
|
|
1524
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1524
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
1525
1525
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalizedOptions.value, (option, idx) => {
|
|
1526
1526
|
return openBlock(), createElementBlock("button", {
|
|
1527
1527
|
key: `notation-${idx}-${option}`,
|
|
@@ -1540,7 +1540,7 @@ const _sfc_main$A = {
|
|
|
1540
1540
|
};
|
|
1541
1541
|
}
|
|
1542
1542
|
};
|
|
1543
|
-
const _hoisted_1$
|
|
1543
|
+
const _hoisted_1$m = ["name", "value", "checked", "disabled"];
|
|
1544
1544
|
const _sfc_main$z = {
|
|
1545
1545
|
__name: "RadioInput",
|
|
1546
1546
|
props: {
|
|
@@ -1596,13 +1596,13 @@ const _sfc_main$z = {
|
|
|
1596
1596
|
onChange,
|
|
1597
1597
|
onFocus: handleFocus,
|
|
1598
1598
|
onBlur: handleBlur
|
|
1599
|
-
}, null, 40, _hoisted_1$
|
|
1599
|
+
}, null, 40, _hoisted_1$m),
|
|
1600
1600
|
createElementVNode("span", null, toDisplayString(isChecked.value ? "✓" : "○") + " " + toDisplayString(__props.label), 1)
|
|
1601
1601
|
], 2);
|
|
1602
1602
|
};
|
|
1603
1603
|
}
|
|
1604
1604
|
};
|
|
1605
|
-
const _hoisted_1$
|
|
1605
|
+
const _hoisted_1$l = ["name", "checked", "disabled"];
|
|
1606
1606
|
const _hoisted_2$e = {
|
|
1607
1607
|
key: 0,
|
|
1608
1608
|
class: "text-sm text-neutral-700 dark:text-neutral-200"
|
|
@@ -1670,7 +1670,7 @@ const _sfc_main$y = {
|
|
|
1670
1670
|
onChange,
|
|
1671
1671
|
onFocus: handleFocus,
|
|
1672
1672
|
onBlur: handleBlur
|
|
1673
|
-
}, null, 40, _hoisted_1$
|
|
1673
|
+
}, null, 40, _hoisted_1$l),
|
|
1674
1674
|
createElementVNode("span", {
|
|
1675
1675
|
"aria-hidden": "true",
|
|
1676
1676
|
class: normalizeClass(["relative inline-flex h-6 w-11 items-center rounded-full border transition-colors duration-200", [
|
|
@@ -1686,7 +1686,7 @@ const _sfc_main$y = {
|
|
|
1686
1686
|
};
|
|
1687
1687
|
}
|
|
1688
1688
|
};
|
|
1689
|
-
const _hoisted_1$
|
|
1689
|
+
const _hoisted_1$k = { class: "flex flex-wrap gap-3" };
|
|
1690
1690
|
const _sfc_main$x = {
|
|
1691
1691
|
__name: "RadioMultipleInput",
|
|
1692
1692
|
props: {
|
|
@@ -1716,7 +1716,7 @@ const _sfc_main$x = {
|
|
|
1716
1716
|
});
|
|
1717
1717
|
const selectOption = (option) => emit("update:modelValue", option);
|
|
1718
1718
|
return (_ctx, _cache) => {
|
|
1719
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1719
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
1720
1720
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalizedOptions.value, (option) => {
|
|
1721
1721
|
return openBlock(), createBlock(_sfc_main$v, {
|
|
1722
1722
|
key: `radio-${__props.name ?? "group"}-${option}`,
|
|
@@ -1733,10 +1733,6 @@ const _sfc_main$x = {
|
|
|
1733
1733
|
};
|
|
1734
1734
|
}
|
|
1735
1735
|
};
|
|
1736
|
-
const _hoisted_1$k = {
|
|
1737
|
-
key: 0,
|
|
1738
|
-
class: "min-h-[12rem] w-full rounded-lg border border-slate-300 bg-slate-50"
|
|
1739
|
-
};
|
|
1740
1736
|
const _sfc_main$w = {
|
|
1741
1737
|
__name: "TinyEditor",
|
|
1742
1738
|
props: {
|
|
@@ -1775,6 +1771,10 @@ const _sfc_main$w = {
|
|
|
1775
1771
|
outputFormat: {
|
|
1776
1772
|
type: String,
|
|
1777
1773
|
default: "html"
|
|
1774
|
+
},
|
|
1775
|
+
darkMode: {
|
|
1776
|
+
type: Boolean,
|
|
1777
|
+
default: false
|
|
1778
1778
|
}
|
|
1779
1779
|
},
|
|
1780
1780
|
emits: ["update:modelValue", "blur"],
|
|
@@ -1818,17 +1818,21 @@ const _sfc_main$w = {
|
|
|
1818
1818
|
const editorKey = computed(() => {
|
|
1819
1819
|
const mode = props.readonly ? "tiny-editor-readonly" : "tiny-editor-editable";
|
|
1820
1820
|
const menubarKey = props.menubar === void 0 ? "menubar-undefined" : `menubar-${String(props.menubar)}`;
|
|
1821
|
-
|
|
1821
|
+
const darkModeKey = props.darkMode ? "dark" : "light";
|
|
1822
|
+
return `${mode}-${menubarKey}-${darkModeKey}-${editorRevision.value}`;
|
|
1823
|
+
});
|
|
1824
|
+
const editorInit = computed(() => {
|
|
1825
|
+
return {
|
|
1826
|
+
height: props.height,
|
|
1827
|
+
menubar: props.menubar,
|
|
1828
|
+
plugins: normalizedPlugins.value,
|
|
1829
|
+
toolbar: normalizedToolbar.value,
|
|
1830
|
+
skin: false,
|
|
1831
|
+
content_css: false,
|
|
1832
|
+
content_style: props.darkMode ? "body { background-color: #1a1a1a; color: #e0e0e0; }" : "body { background-color: #ffffff; color: #000000; }",
|
|
1833
|
+
...props.init
|
|
1834
|
+
};
|
|
1822
1835
|
});
|
|
1823
|
-
const editorInit = computed(() => ({
|
|
1824
|
-
height: props.height,
|
|
1825
|
-
menubar: props.menubar,
|
|
1826
|
-
plugins: normalizedPlugins.value,
|
|
1827
|
-
toolbar: normalizedToolbar.value,
|
|
1828
|
-
skin: false,
|
|
1829
|
-
content_css: false,
|
|
1830
|
-
...props.init
|
|
1831
|
-
}));
|
|
1832
1836
|
onMounted(() => {
|
|
1833
1837
|
void loadTinyMce();
|
|
1834
1838
|
});
|
|
@@ -1841,8 +1845,14 @@ const _sfc_main$w = {
|
|
|
1841
1845
|
emit("blur", editor.getContent({ format: props.outputFormat }));
|
|
1842
1846
|
};
|
|
1843
1847
|
return (_ctx, _cache) => {
|
|
1844
|
-
return openBlock(), createElementBlock("div", {
|
|
1845
|
-
|
|
1848
|
+
return openBlock(), createElementBlock("div", {
|
|
1849
|
+
key: editorKey.value,
|
|
1850
|
+
class: normalizeClass({ "tiny-editor-dark": __props.darkMode })
|
|
1851
|
+
}, [
|
|
1852
|
+
!isEditorReady.value ? (openBlock(), createElementBlock("div", {
|
|
1853
|
+
key: 0,
|
|
1854
|
+
class: normalizeClass(["min-h-[12rem] w-full rounded-lg border", __props.darkMode ? "border-slate-700 bg-slate-900" : "border-slate-300 bg-slate-50"])
|
|
1855
|
+
}, null, 2)) : (openBlock(), createBlock(unref(Editor), {
|
|
1846
1856
|
key: 1,
|
|
1847
1857
|
"initial-value": content.value,
|
|
1848
1858
|
"license-key": __props.licenseKey,
|
|
@@ -1852,10 +1862,11 @@ const _sfc_main$w = {
|
|
|
1852
1862
|
onInput: handleEditorInput,
|
|
1853
1863
|
onBlur: handleEditorBlur
|
|
1854
1864
|
}, null, 8, ["initial-value", "license-key", "readonly", "output-format", "init"]))
|
|
1855
|
-
]);
|
|
1865
|
+
], 2);
|
|
1856
1866
|
};
|
|
1857
1867
|
}
|
|
1858
1868
|
};
|
|
1869
|
+
const TinyEditor = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-4b2cf9ef"]]);
|
|
1859
1870
|
const _hoisted_1$j = ["for"];
|
|
1860
1871
|
const _hoisted_2$d = {
|
|
1861
1872
|
key: 1,
|
|
@@ -2012,6 +2023,10 @@ const _sfc_main$v = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
2012
2023
|
outputFormat: {
|
|
2013
2024
|
type: String,
|
|
2014
2025
|
default: "html"
|
|
2026
|
+
},
|
|
2027
|
+
darkMode: {
|
|
2028
|
+
type: Boolean,
|
|
2029
|
+
default: false
|
|
2015
2030
|
}
|
|
2016
2031
|
},
|
|
2017
2032
|
emits: ["update:modelValue", "blur"],
|
|
@@ -2174,7 +2189,8 @@ const _sfc_main$v = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
2174
2189
|
height: props.height,
|
|
2175
2190
|
menubar: props.menubar,
|
|
2176
2191
|
licenseKey: props.licenseKey,
|
|
2177
|
-
outputFormat: props.outputFormat
|
|
2192
|
+
outputFormat: props.outputFormat,
|
|
2193
|
+
darkMode: props.darkMode
|
|
2178
2194
|
};
|
|
2179
2195
|
if (props.toolbar !== void 0) inputProps.toolbar = props.toolbar;
|
|
2180
2196
|
if (props.plugins !== void 0) inputProps.plugins = props.plugins;
|
|
@@ -2192,7 +2208,7 @@ const _sfc_main$v = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
2192
2208
|
isTextareaType.value ? (openBlock(), createBlock(_sfc_main$F, mergeProps({ key: 2 }, textAreaBindings.value, {
|
|
2193
2209
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event)),
|
|
2194
2210
|
onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur", $event))
|
|
2195
|
-
}), null, 16)) : isTinyEditorType.value ? (openBlock(), createBlock(
|
|
2211
|
+
}), null, 16)) : isTinyEditorType.value ? (openBlock(), createBlock(TinyEditor, mergeProps({ key: 3 }, tinyEditorBindings.value, {
|
|
2196
2212
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => emit("update:modelValue", $event)),
|
|
2197
2213
|
onBlur: _cache[3] || (_cache[3] = ($event) => emit("blur", $event))
|
|
2198
2214
|
}), null, 16)) : isSelectType.value ? (openBlock(), createBlock(_sfc_main$D, mergeProps({ key: 4 }, selectBindings.value, {
|
|
@@ -4807,7 +4823,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
4807
4823
|
TextArea: _sfc_main$F,
|
|
4808
4824
|
TextInput: _sfc_main$G,
|
|
4809
4825
|
ThSortable: _sfc_main$5,
|
|
4810
|
-
TinyEditor
|
|
4826
|
+
TinyEditor,
|
|
4811
4827
|
Toast: _sfc_main$1,
|
|
4812
4828
|
ToastContainer: _sfc_main,
|
|
4813
4829
|
ToggleInput: _sfc_main$y,
|
|
@@ -4846,7 +4862,7 @@ export {
|
|
|
4846
4862
|
_sfc_main$F as V,
|
|
4847
4863
|
_sfc_main$G as W,
|
|
4848
4864
|
_sfc_main$5 as X,
|
|
4849
|
-
|
|
4865
|
+
TinyEditor as Y,
|
|
4850
4866
|
_sfc_main$1 as Z,
|
|
4851
4867
|
_sfc_main$O as _,
|
|
4852
4868
|
_sfc_main$N as a,
|
|
@@ -4878,4 +4894,4 @@ export {
|
|
|
4878
4894
|
_sfc_main$z as y,
|
|
4879
4895
|
_sfc_main$x as z
|
|
4880
4896
|
};
|
|
4881
|
-
//# sourceMappingURL=plugin-
|
|
4897
|
+
//# sourceMappingURL=plugin-C0ANDjrt.js.map
|