starfish-form-custom 1.0.33 → 1.0.35
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/{formAction-cfa5fd87.mjs → formAction-5d0e6e20.mjs} +1 -2
- package/dist/{index-b6de786a.mjs → index-2fe91869.mjs} +2 -3
- package/dist/{index-cdc52674.mjs → index-4dabe1d8.mjs} +1 -2
- package/dist/{index-89d6b690.mjs → index-a1e32b9f.mjs} +26 -7
- package/dist/{main-8dad66de.mjs → main-b0acaeb8.mjs} +115 -93
- package/dist/{starfish-form-4c2ab774.mjs → starfish-form-54bcfdaa.mjs} +1 -2
- package/dist/starfish-form.mjs +1 -2
- package/dist/style.css +81 -12
- package/dist/types/form/src/components/RichText/MenuItem.vue.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/RichText/MenuItem.vue +40 -16
- package/src/components/RichText/index.vue +94 -3
- package/stats.html +1 -1
|
@@ -11,7 +11,7 @@ import 'element-plus/es/components/button/style/css';
|
|
|
11
11
|
import 'element-plus/es/components/tooltip/style/css';
|
|
12
12
|
import { defineComponent, inject, ref, getCurrentInstance, reactive, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, createBlock, withCtx, createVNode, Fragment, renderList, withModifiers, createTextVNode } from 'vue';
|
|
13
13
|
import { Codemirror } from 'vue-codemirror';
|
|
14
|
-
import { _ as _export_sfc } from './main-
|
|
14
|
+
import { _ as _export_sfc } from './main-b0acaeb8.mjs';
|
|
15
15
|
import 'element-plus/es/components/icon/style/css';
|
|
16
16
|
import 'element-plus/es/components/checkbox/style/css';
|
|
17
17
|
import '@element-plus/icons-vue';
|
|
@@ -32,7 +32,6 @@ import 'element-plus/es/components/checkbox-group/style/css';
|
|
|
32
32
|
import 'element-plus/es/components/color-picker/style/css';
|
|
33
33
|
import 'element-plus/es/components/date-picker/style/css';
|
|
34
34
|
import 'element-plus/es/components/radio/style/css';
|
|
35
|
-
import 'remixicon/fonts/remixicon.symbol.svg';
|
|
36
35
|
import 'element-plus/es/components/slider/style/css';
|
|
37
36
|
import 'element-plus/es/components/switch/style/css';
|
|
38
37
|
import 'element-plus/es/components/time-select/style/css';
|
|
@@ -13,9 +13,9 @@ import 'element-plus/es/components/dropdown-item/style/css';
|
|
|
13
13
|
import 'element-plus/es/components/button/style/css';
|
|
14
14
|
import 'element-plus/es/components/tooltip/style/css';
|
|
15
15
|
import { defineComponent, getCurrentInstance, inject, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, createVNode, Fragment, renderList, createTextVNode } from 'vue';
|
|
16
|
-
import { _ as _export_sfc, b as _, f as fieldProps, r as ruleList, c as ruleJsonData } from './main-
|
|
16
|
+
import { _ as _export_sfc, b as _, f as fieldProps, r as ruleList, c as ruleJsonData } from './main-b0acaeb8.mjs';
|
|
17
17
|
import { Delete } from '@element-plus/icons-vue';
|
|
18
|
-
import Dynamicform from './starfish-form-
|
|
18
|
+
import Dynamicform from './starfish-form-54bcfdaa.mjs';
|
|
19
19
|
import { Codemirror } from 'vue-codemirror';
|
|
20
20
|
import 'element-plus/es/components/input/style/css';
|
|
21
21
|
import 'element-plus/es/components/checkbox/style/css';
|
|
@@ -31,7 +31,6 @@ import 'element-plus/es/components/checkbox-group/style/css';
|
|
|
31
31
|
import 'element-plus/es/components/color-picker/style/css';
|
|
32
32
|
import 'element-plus/es/components/date-picker/style/css';
|
|
33
33
|
import 'element-plus/es/components/radio/style/css';
|
|
34
|
-
import 'remixicon/fonts/remixicon.symbol.svg';
|
|
35
34
|
import 'element-plus/es/components/slider/style/css';
|
|
36
35
|
import 'element-plus/es/components/switch/style/css';
|
|
37
36
|
import 'element-plus/es/components/time-select/style/css';
|
|
@@ -6,7 +6,7 @@ import 'element-plus/es/components/button/style/css';
|
|
|
6
6
|
import 'element-plus/es/components/main/style/css';
|
|
7
7
|
import 'element-plus/es/components/tooltip/style/css';
|
|
8
8
|
import { defineComponent, ref, onMounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, createVNode, createTextVNode } from 'vue';
|
|
9
|
-
import { _ as _export_sfc, b as _, g as getFormConfig, f as fieldProps, u as useWatch } from './main-
|
|
9
|
+
import { _ as _export_sfc, b as _, g as getFormConfig, f as fieldProps, u as useWatch } from './main-b0acaeb8.mjs';
|
|
10
10
|
import JSONEditor from 'jsoneditor';
|
|
11
11
|
import 'element-plus/es/components/icon/style/css';
|
|
12
12
|
import 'element-plus/es/components/input/style/css';
|
|
@@ -29,7 +29,6 @@ import 'element-plus/es/components/checkbox-group/style/css';
|
|
|
29
29
|
import 'element-plus/es/components/color-picker/style/css';
|
|
30
30
|
import 'element-plus/es/components/date-picker/style/css';
|
|
31
31
|
import 'element-plus/es/components/radio/style/css';
|
|
32
|
-
import 'remixicon/fonts/remixicon.symbol.svg';
|
|
33
32
|
import 'element-plus/es/components/slider/style/css';
|
|
34
33
|
import 'element-plus/es/components/switch/style/css';
|
|
35
34
|
import 'element-plus/es/components/time-select/style/css';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _export_sfc, g as getFormConfig, f as fieldProps, a as __unplugin_components_1, u as useWatch } from './main-
|
|
1
|
+
import { _ as _export_sfc, g as getFormConfig, f as fieldProps, a as __unplugin_components_1, u as useWatch } from './main-b0acaeb8.mjs';
|
|
2
2
|
import { ElTooltip } from 'element-plus/es';
|
|
3
3
|
import 'element-plus/es/components/base/style/css';
|
|
4
4
|
import 'element-plus/es/components/tooltip/style/css';
|
|
@@ -8,6 +8,7 @@ import StarterKit from '@tiptap/starter-kit';
|
|
|
8
8
|
import Code from '@tiptap/extension-code';
|
|
9
9
|
import Blockquote from '@tiptap/extension-blockquote';
|
|
10
10
|
import HorizontalRule from '@tiptap/extension-horizontal-rule';
|
|
11
|
+
import CodeBlock from '@tiptap/extension-code-block';
|
|
11
12
|
import 'element-plus/es/components/icon/style/css';
|
|
12
13
|
import 'element-plus/es/components/input/style/css';
|
|
13
14
|
import 'element-plus/es/components/checkbox/style/css';
|
|
@@ -30,7 +31,6 @@ import 'element-plus/es/components/checkbox-group/style/css';
|
|
|
30
31
|
import 'element-plus/es/components/color-picker/style/css';
|
|
31
32
|
import 'element-plus/es/components/date-picker/style/css';
|
|
32
33
|
import 'element-plus/es/components/radio/style/css';
|
|
33
|
-
import 'remixicon/fonts/remixicon.symbol.svg';
|
|
34
34
|
import 'element-plus/es/components/slider/style/css';
|
|
35
35
|
import 'element-plus/es/components/switch/style/css';
|
|
36
36
|
import 'element-plus/es/components/time-select/style/css';
|
|
@@ -59,9 +59,28 @@ const _sfc_main = defineComponent({
|
|
|
59
59
|
const editor = useEditor({
|
|
60
60
|
content: props.data[props.item.data.fieldName] || props.item.data.defaultValue || "",
|
|
61
61
|
extensions: [
|
|
62
|
-
StarterKit
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
StarterKit.configure({
|
|
63
|
+
codeBlock: {
|
|
64
|
+
HTMLAttributes: {
|
|
65
|
+
class: "code-block"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}),
|
|
69
|
+
Code.configure({
|
|
70
|
+
HTMLAttributes: {
|
|
71
|
+
class: "inline-code"
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
CodeBlock.configure({
|
|
75
|
+
HTMLAttributes: {
|
|
76
|
+
class: "code-block"
|
|
77
|
+
}
|
|
78
|
+
}),
|
|
79
|
+
Blockquote.configure({
|
|
80
|
+
HTMLAttributes: {
|
|
81
|
+
class: "blockquote"
|
|
82
|
+
}
|
|
83
|
+
}),
|
|
65
84
|
HorizontalRule
|
|
66
85
|
],
|
|
67
86
|
editable: !props.readonly,
|
|
@@ -101,7 +120,7 @@ const _sfc_main = defineComponent({
|
|
|
101
120
|
};
|
|
102
121
|
}
|
|
103
122
|
});
|
|
104
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
123
|
+
const _withScopeId = (n) => (pushScopeId("data-v-544977e4"), n = n(), popScopeId(), n);
|
|
105
124
|
const _hoisted_1 = {
|
|
106
125
|
key: 0,
|
|
107
126
|
class: "item_require"
|
|
@@ -151,6 +170,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
151
170
|
], 4)
|
|
152
171
|
], 2);
|
|
153
172
|
}
|
|
154
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
173
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-544977e4"]]);
|
|
155
174
|
|
|
156
175
|
export { index as default };
|