sprintify-ui 0.10.51 → 0.10.53
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.
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as f, computed as i, createBlock as c, openBlock as I, unref as r } from "vue";
|
|
2
|
-
import { ClassicEditor as B, BalloonEditor as k, InlineEditor as y, Essentials as z, Paragraph as v, Bold as C, Italic as T, Underline as V, Code as h, CodeBlock as w, List as
|
|
3
|
-
import { Ckeditor as
|
|
4
|
-
const
|
|
2
|
+
import { ClassicEditor as B, BalloonEditor as k, InlineEditor as y, Essentials as z, SourceEditing as E, Paragraph as v, Bold as C, Italic as T, Underline as V, Code as h, CodeBlock as w, List as F, Link as L, Autoformat as R, Heading as S, Image as A, AutoImage as D, ImageStyle as P, ImageResize as U, ImageToolbar as G, ImageInsert as O, Base64UploadAdapter as q, Table as x, TableToolbar as H, MediaEmbed as K, PasteFromOffice as M, BlockToolbar as N, Font as W, FindAndReplace as j, RemoveFormat as J } from "ckeditor5";
|
|
3
|
+
import { Ckeditor as Q } from "@ckeditor/ckeditor5-vue";
|
|
4
|
+
const $ = /* @__PURE__ */ f({
|
|
5
5
|
__name: "BaseCkeditor",
|
|
6
6
|
props: {
|
|
7
7
|
modelValue: {},
|
|
8
8
|
editor: { default: "classic" },
|
|
9
9
|
size: { default: "md" },
|
|
10
10
|
toolbar: { default() {
|
|
11
|
-
return ["undo", "redo", "|", "heading", "bold", "italic", "underline", "|", "link", "insertImage", "|", "numberedList", "bulletedList", "|", "code", "codeblock", "|", "insertTable"];
|
|
11
|
+
return ["undo", "redo", "|", "sourceEditing", "heading", "bold", "italic", "underline", "|", "link", "insertImage", "|", "numberedList", "bulletedList", "|", "code", "codeblock", "|", "insertTable"];
|
|
12
12
|
} },
|
|
13
13
|
placeholder: { default: "" },
|
|
14
14
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -22,7 +22,7 @@ const Z = /* @__PURE__ */ f({
|
|
|
22
22
|
function s(t) {
|
|
23
23
|
n = t, o("ready", t);
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const g = i(() => {
|
|
26
26
|
switch (a.editor) {
|
|
27
27
|
case "inline":
|
|
28
28
|
return y;
|
|
@@ -31,22 +31,22 @@ const Z = /* @__PURE__ */ f({
|
|
|
31
31
|
default:
|
|
32
32
|
return B;
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), p = i(() => a.modelValue === null ? "" : a.modelValue), b = i(() => ({
|
|
35
35
|
licenseKey: "GPL",
|
|
36
36
|
plugins: [
|
|
37
37
|
z,
|
|
38
|
+
E,
|
|
38
39
|
v,
|
|
39
40
|
C,
|
|
40
41
|
T,
|
|
41
42
|
V,
|
|
42
43
|
h,
|
|
43
44
|
w,
|
|
44
|
-
E,
|
|
45
45
|
F,
|
|
46
46
|
L,
|
|
47
47
|
R,
|
|
48
|
-
A,
|
|
49
48
|
S,
|
|
49
|
+
A,
|
|
50
50
|
D,
|
|
51
51
|
P,
|
|
52
52
|
U,
|
|
@@ -59,7 +59,8 @@ const Z = /* @__PURE__ */ f({
|
|
|
59
59
|
M,
|
|
60
60
|
N,
|
|
61
61
|
W,
|
|
62
|
-
j
|
|
62
|
+
j,
|
|
63
|
+
J
|
|
63
64
|
],
|
|
64
65
|
toolbar: {
|
|
65
66
|
items: a.toolbar,
|
|
@@ -104,9 +105,9 @@ const Z = /* @__PURE__ */ f({
|
|
|
104
105
|
getEditorData() {
|
|
105
106
|
return (n == null ? void 0 : n.getData()) || "";
|
|
106
107
|
}
|
|
107
|
-
}), (t, e) => (I(), c(r(
|
|
108
|
-
"model-value": r(
|
|
109
|
-
editor: r(
|
|
108
|
+
}), (t, e) => (I(), c(r(Q), {
|
|
109
|
+
"model-value": r(p),
|
|
110
|
+
editor: r(g),
|
|
110
111
|
config: r(b),
|
|
111
112
|
disabled: t.disabled,
|
|
112
113
|
name: t.name,
|
|
@@ -119,5 +120,5 @@ const Z = /* @__PURE__ */ f({
|
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
122
|
export {
|
|
122
|
-
|
|
123
|
+
$ as default
|
|
123
124
|
};
|
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -16848,7 +16848,7 @@ const Pr = /* @__PURE__ */ te({
|
|
|
16848
16848
|
itemKey: { default: "id" },
|
|
16849
16849
|
handle: { default: ".handle" },
|
|
16850
16850
|
disabled: { type: Boolean, default: !1 },
|
|
16851
|
-
|
|
16851
|
+
as: { default: "div" }
|
|
16852
16852
|
},
|
|
16853
16853
|
emits: ["update:modelValue"],
|
|
16854
16854
|
setup(t, { emit: n }) {
|
|
@@ -16886,7 +16886,7 @@ const Pr = /* @__PURE__ */ te({
|
|
|
16886
16886
|
(u) => {
|
|
16887
16887
|
l == null || l.option("disabled", u);
|
|
16888
16888
|
}
|
|
16889
|
-
), (u, d) => (b(), ee(sn(u.
|
|
16889
|
+
), (u, d) => (b(), ee(sn(u.as), {
|
|
16890
16890
|
ref_key: "elementsRef",
|
|
16891
16891
|
ref: r
|
|
16892
16892
|
}, {
|
|
@@ -26191,7 +26191,7 @@ const dk = /* @__PURE__ */ Yo(ak, [["render", ck]]), fk = { class: "space-y-3" }
|
|
|
26191
26191
|
},
|
|
26192
26192
|
emits: ["update:modelValue", "focus", "blur", "input"],
|
|
26193
26193
|
setup(t, { emit: n }) {
|
|
26194
|
-
const e = Wd(() => import("./BaseCkeditor-
|
|
26194
|
+
const e = Wd(() => import("./BaseCkeditor-B4PbYw6a.js")), o = t, r = n, { nameInternal: a, requiredInternal: l, hasErrorInternal: s, emitUpdate: u, sizeInternal: d, addBeforeSubmitListener: p } = Qt({
|
|
26195
26195
|
name: w(() => o.name),
|
|
26196
26196
|
required: w(() => o.required),
|
|
26197
26197
|
size: w(() => o.size),
|
|
@@ -3,7 +3,7 @@ type __VLS_Props = {
|
|
|
3
3
|
itemKey: string;
|
|
4
4
|
handle?: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
-
|
|
6
|
+
as?: string;
|
|
7
7
|
};
|
|
8
8
|
declare const elementsRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
9
9
|
declare function getKey(element: any): any;
|
|
@@ -25,7 +25,7 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
|
25
25
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
disabled: boolean;
|
|
28
|
-
|
|
28
|
+
as: string;
|
|
29
29
|
itemKey: string;
|
|
30
30
|
handle: string;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -35,7 +35,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
35
35
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
disabled: boolean;
|
|
38
|
-
|
|
38
|
+
as: string;
|
|
39
39
|
itemKey: string;
|
|
40
40
|
handle: string;
|
|
41
41
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<script lang="ts" setup>
|
|
17
|
-
import { ClassicEditor, InlineEditor, BalloonEditor, Essentials, MediaEmbed, Paragraph, Bold, Italic, List, Link, Autoformat, Heading, Underline, Code, CodeBlock, Table, TableToolbar, Image, ImageResize, ImageStyle, ImageToolbar, ImageInsert, AutoImage, Base64UploadAdapter, PasteFromOffice, BlockToolbar, Font, FindAndReplace, RemoveFormat } from 'ckeditor5';
|
|
17
|
+
import { ClassicEditor, InlineEditor, BalloonEditor, Essentials, SourceEditing, MediaEmbed, Paragraph, Bold, Italic, List, Link, Autoformat, Heading, Underline, Code, CodeBlock, Table, TableToolbar, Image, ImageResize, ImageStyle, ImageToolbar, ImageInsert, AutoImage, Base64UploadAdapter, PasteFromOffice, BlockToolbar, Font, FindAndReplace, RemoveFormat } from 'ckeditor5';
|
|
18
18
|
import { Ckeditor } from '@ckeditor/ckeditor5-vue';
|
|
19
19
|
|
|
20
20
|
import { Size } from '@/utils/sizes';
|
|
@@ -33,7 +33,7 @@ const props = withDefaults(defineProps<{
|
|
|
33
33
|
editor: 'classic',
|
|
34
34
|
size: 'md',
|
|
35
35
|
toolbar() {
|
|
36
|
-
return ['undo', 'redo', '|', 'heading', 'bold', 'italic', 'underline', '|', 'link', 'insertImage', '|', 'numberedList', 'bulletedList', '|', 'code', 'codeblock', '|', 'insertTable'] as ToolbarOption[];
|
|
36
|
+
return ['undo', 'redo', '|', 'sourceEditing', 'heading', 'bold', 'italic', 'underline', '|', 'link', 'insertImage', '|', 'numberedList', 'bulletedList', '|', 'code', 'codeblock', '|', 'insertTable'] as ToolbarOption[];
|
|
37
37
|
},
|
|
38
38
|
placeholder: '',
|
|
39
39
|
disabled: false,
|
|
@@ -77,6 +77,7 @@ const config = computed(() => {
|
|
|
77
77
|
licenseKey: 'GPL',
|
|
78
78
|
plugins: [
|
|
79
79
|
Essentials,
|
|
80
|
+
SourceEditing,
|
|
80
81
|
Paragraph,
|
|
81
82
|
Bold,
|
|
82
83
|
Italic,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
|
-
:is="
|
|
3
|
+
:is="as"
|
|
4
4
|
ref="elementsRef"
|
|
5
5
|
>
|
|
6
6
|
<slot
|
|
@@ -22,12 +22,12 @@ const props = withDefaults(defineProps<{
|
|
|
22
22
|
itemKey: string;
|
|
23
23
|
handle?: string;
|
|
24
24
|
disabled?: boolean;
|
|
25
|
-
|
|
25
|
+
as?: string
|
|
26
26
|
}>(), {
|
|
27
27
|
itemKey: 'id',
|
|
28
28
|
handle: '.handle',
|
|
29
29
|
disabled: false,
|
|
30
|
-
|
|
30
|
+
as: 'div', // Default to a div if not specified
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
const emit = defineEmits(['update:modelValue']);
|