@g1cloud/bluesea 5.0.0-beta.2 → 5.0.0-beta.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/{BSAlertModal-BixCrZDD.js → BSAlertModal-BsYimMJ_.js} +1 -1
- package/dist/{BSGridColumnSettingModal-CVVenSnr.js → BSGridColumnSettingModal-BEB2-Ux4.js} +1 -1
- package/dist/{BSRichTextMaximizedModal-BqzE5__U.js → BSRichTextMaximizedModal-LB8VUZme.js} +1 -1
- package/dist/{BSYesNoModal-B5lERw_k.js → BSYesNoModal-Cc1Nki9Z.js} +1 -1
- package/dist/{BSYoutubeInputModal-eRBqHjeW.js → BSYoutubeInputModal-BJ1snN1M.js} +1 -1
- package/dist/{ImageInsertModal-DvKLXL1n.js → ImageInsertModal-CO6NeKVX.js} +2 -2
- package/dist/{ImageProperties.vue_vue_type_script_setup_true_lang-DVUZuLfG.js → ImageProperties.vue_vue_type_script_setup_true_lang-DUkL-qju.js} +1 -1
- package/dist/{ImagePropertiesModal-Dsg6BS63.js → ImagePropertiesModal-NMjlJ5hA.js} +2 -2
- package/dist/{LinkPropertiesModal-Ct0ykD4j.js → LinkPropertiesModal-CFQucomV.js} +1 -1
- package/dist/{TableInsertModal-BhyzkcTU.js → TableInsertModal-D0cHwmgl.js} +1 -1
- package/dist/TablePropertiesModal-H8Ohz-Xv.js +353 -0
- package/dist/{VideoInsertModal-BAwRYBzU.js → VideoInsertModal-DR06SKIA.js} +2 -2
- package/dist/{VideoProperties.vue_vue_type_script_setup_true_lang-BfwBHyER.js → VideoProperties.vue_vue_type_script_setup_true_lang-BOCeOQVe.js} +1 -1
- package/dist/{VideoPropertiesModal-B2FeEw4W.js → VideoPropertiesModal-BvwmSEP-.js} +2 -2
- package/dist/{YoutubeInsertModal-EU6G-021.js → YoutubeInsertModal-CL4QiU4m.js} +3 -3
- package/dist/{YoutubeProperties.vue_vue_type_script_setup_true_lang-Ci3ndkZR.js → YoutubeProperties.vue_vue_type_script_setup_true_lang-BpRF2WTd.js} +1 -1
- package/dist/{YoutubePropertiesModal-CRy6zJwZ.js → YoutubePropertiesModal-DaHvv9Df.js} +2 -2
- package/dist/bluesea.js +21 -21
- package/dist/bluesea.umd.cjs +526 -257
- package/dist/component/input/BSMultiSelect.vue.d.ts +6 -6
- package/dist/component/input/BSSelect.vue.d.ts +6 -6
- package/dist/component/input/BSSelectPopup.vue.d.ts +6 -6
- package/dist/component/input/BSTreeMultiSelect.vue.d.ts +6 -6
- package/dist/component/input/BSTreeSelect.vue.d.ts +6 -6
- package/dist/component/richtext/RichTextModel.d.ts +1 -0
- package/dist/component/richtext/richTextUtil.d.ts +1 -1
- package/dist/component/richtext/table/RichTextTableCell.d.ts +1 -0
- package/dist/component/richtext/table/RichTextTableLib.d.ts +7 -1
- package/dist/component/tree/BSTree.vue.d.ts +6 -3
- package/dist/component/tree/BSTreeRow.vue.d.ts +3 -3
- package/dist/directive/vT.d.ts +1 -0
- package/dist/{index-CDwzpZX0.js → index-Bx4oDJu3.js} +254 -154
- package/dist/model/CommonTypes.d.ts +1 -1
- package/package.json +3 -3
- package/text/bluesea_text_en.json +12 -0
- package/text/bluesea_text_fr.json +12 -0
- package/text/bluesea_text_ja.json +12 -0
- package/text/bluesea_text_ko.json +12 -0
- package/text/bluesea_text_zh.json +12 -0
- package/dist/TablePropertiesModal-BAxcByTD.js +0 -184
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createBlock, openBlock, withCtx, withDirectives, createElementVNode, unref, createVNode } from "vue";
|
|
2
|
-
import { u as useModalHandle, _ as _sfc_main$1, v as vT, B as BSButton, j as vFocusOnLoad } from "./index-
|
|
2
|
+
import { u as useModalHandle, _ as _sfc_main$1, v as vT, B as BSButton, j as vFocusOnLoad } from "./index-Bx4oDJu3.js";
|
|
3
3
|
const _hoisted_1 = { class: "text-right" };
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "BSAlertModal",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, createBlock, openBlock, withCtx, createElementVNode, createVNode, mergeProps, unref, toHandlers, nextTick } from "vue";
|
|
2
|
-
import { f as createInputGridHandler, u as useModalHandle, _ as _sfc_main$1, B as BSButton, g as _sfc_main$2, h as _sfc_main$3, i as _sfc_main$4, n as notNull } from "./index-
|
|
2
|
+
import { f as createInputGridHandler, u as useModalHandle, _ as _sfc_main$1, B as BSButton, g as _sfc_main$2, h as _sfc_main$3, i as _sfc_main$4, n as notNull } from "./index-Bx4oDJu3.js";
|
|
3
3
|
const _hoisted_1 = { class: "text-center" };
|
|
4
4
|
const _hoisted_2 = { class: "text-center" };
|
|
5
5
|
const _hoisted_3 = { class: "bs-layout-horizontal" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, mergeModels, useModel, useTemplateRef, createBlock, openBlock } from "vue";
|
|
2
|
-
import { u as useModalHandle, d as _sfc_main$1 } from "./index-
|
|
2
|
+
import { u as useModalHandle, d as _sfc_main$1 } from "./index-Bx4oDJu3.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "BSRichTextMaximizedModal",
|
|
5
5
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createBlock, openBlock, withCtx, withDirectives, createElementVNode, unref, createVNode } from "vue";
|
|
2
|
-
import { u as useModalHandle, _ as _sfc_main$1, v as vT, B as BSButton } from "./index-
|
|
2
|
+
import { u as useModalHandle, _ as _sfc_main$1, v as vT, B as BSButton } from "./index-Bx4oDJu3.js";
|
|
3
3
|
const _hoisted_1 = { class: "text-right" };
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "BSYesNoModal",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, useModel, ref, createBlock, openBlock, withCtx, createElementVNode, createVNode, createCommentVNode, unref } from "vue";
|
|
2
|
-
import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, e as extractYoutubeVideoId } from "./index-
|
|
2
|
+
import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, e as extractYoutubeVideoId } from "./index-Bx4oDJu3.js";
|
|
3
3
|
import YouTube from "vue3-youtube";
|
|
4
4
|
const _hoisted_1 = { class: "bs-layout-vertical gap-16" };
|
|
5
5
|
const _hoisted_2 = { class: "bs-layout-horizontal align-items-center" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, createBlock, openBlock, withCtx, createElementVNode, createVNode, withDirectives, vShow } from "vue";
|
|
2
|
-
import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, a as _sfc_main$2, b as _sfc_main$3, c as _sfc_main$4 } from "./index-
|
|
3
|
-
import { _ as _sfc_main$5 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, a as _sfc_main$2, b as _sfc_main$3, c as _sfc_main$4 } from "./index-Bx4oDJu3.js";
|
|
3
|
+
import { _ as _sfc_main$5 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-DUkL-qju.js";
|
|
4
4
|
const _hoisted_1 = { class: "bs-layout-form title-w-8" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = { class: "bs-layout-horizontal justify-content-end gap-8" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, withDirectives, createTextVNode, unref } from "vue";
|
|
2
|
-
import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-
|
|
2
|
+
import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-Bx4oDJu3.js";
|
|
3
3
|
const _hoisted_1 = { class: "title" };
|
|
4
4
|
const _hoisted_2 = { class: "title" };
|
|
5
5
|
const _hoisted_3 = { class: "title" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, onMounted, useTemplateRef, createBlock, openBlock, withCtx, createElementVNode, createVNode, createElementBlock, createCommentVNode } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as _sfc_main$4 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { o as findImageNode, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, m as formValidator, p as imageInfoNumberToPixel } from "./index-Bx4oDJu3.js";
|
|
3
|
+
import { _ as _sfc_main$4 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-DUkL-qju.js";
|
|
4
4
|
const _hoisted_1 = { class: "title" };
|
|
5
5
|
const _hoisted_2 = { class: "bs-layout-horizontal justify-content-end gap-8" };
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, createBlock, openBlock, withCtx, createElementVNode, createVNode, createTextVNode, withModifiers } from "vue";
|
|
2
|
-
import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3 } from "./index-
|
|
2
|
+
import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3 } from "./index-Bx4oDJu3.js";
|
|
3
3
|
const _hoisted_1 = { class: "bs-layout-form title-w-8" };
|
|
4
4
|
const _hoisted_2 = { class: "title" };
|
|
5
5
|
const _hoisted_3 = { class: "title" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, createBlock, openBlock, withCtx, createElementVNode, createVNode } from "vue";
|
|
2
|
-
import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, h as _sfc_main$3 } from "./index-
|
|
2
|
+
import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, h as _sfc_main$3 } from "./index-Bx4oDJu3.js";
|
|
3
3
|
const _hoisted_1 = { class: "bs-layout-form" };
|
|
4
4
|
const _hoisted_2 = { class: "bs-form-label" };
|
|
5
5
|
const _hoisted_3 = { class: "bs-form-label" };
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, onMounted, useTemplateRef, createBlock, openBlock, withCtx, createElementVNode, createVNode, createElementBlock, createCommentVNode, withDirectives, createTextVNode, unref, Fragment, renderList, toDisplayString } from "vue";
|
|
2
|
+
import { k as componentUtil, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, v as vT, l as _sfc_main$4, m as formValidator } from "./index-Bx4oDJu3.js";
|
|
3
|
+
const findTableNode = (selection, type) => {
|
|
4
|
+
const head = selection.$head;
|
|
5
|
+
let depth = head.depth;
|
|
6
|
+
let node = head.node(depth);
|
|
7
|
+
while (depth > 0 && node && node.type.name !== type) {
|
|
8
|
+
node = head.node(--depth);
|
|
9
|
+
}
|
|
10
|
+
if (node && node.type.name === type) {
|
|
11
|
+
const nodePos = head.start(depth);
|
|
12
|
+
return { node, nodePos };
|
|
13
|
+
} else {
|
|
14
|
+
return {};
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const tableInfoNumberToPixel = (data) => {
|
|
18
|
+
return {
|
|
19
|
+
...data,
|
|
20
|
+
width: componentUtil.numberToPixel(data.width),
|
|
21
|
+
height: componentUtil.numberToPixel(data.height),
|
|
22
|
+
maxWidth: componentUtil.numberToPixel(data.maxWidth),
|
|
23
|
+
maxHeight: componentUtil.numberToPixel(data.maxHeight),
|
|
24
|
+
marginLeft: componentUtil.numberToPixel(data.marginLeft),
|
|
25
|
+
marginTop: componentUtil.numberToPixel(data.marginTop),
|
|
26
|
+
marginRight: componentUtil.numberToPixel(data.marginRight),
|
|
27
|
+
marginBottom: componentUtil.numberToPixel(data.marginBottom)
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
const setTableColumnWidth = (node, tablePos, colIndex, width, tr) => {
|
|
31
|
+
node.forEach((row, rowOffset) => {
|
|
32
|
+
let col = 0;
|
|
33
|
+
row.forEach((cell, cellOffset) => {
|
|
34
|
+
const colspan = cell.attrs.colspan || 1;
|
|
35
|
+
if (col <= colIndex && col + colspan > colIndex) {
|
|
36
|
+
tr.setNodeMarkup(
|
|
37
|
+
tablePos + 1 + rowOffset + cellOffset,
|
|
38
|
+
void 0,
|
|
39
|
+
{
|
|
40
|
+
...cell.attrs,
|
|
41
|
+
width
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
col += colspan;
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
const _hoisted_1 = { class: "title" };
|
|
50
|
+
const _hoisted_2 = { class: "title" };
|
|
51
|
+
const _hoisted_3 = { class: "title" };
|
|
52
|
+
const _hoisted_4 = { class: "bs-layout-horizontal gap-2" };
|
|
53
|
+
const _hoisted_5 = { class: "title" };
|
|
54
|
+
const _hoisted_6 = { class: "title" };
|
|
55
|
+
const _hoisted_7 = { class: "py-2 pr-8" };
|
|
56
|
+
const _hoisted_8 = { class: "pt-4" };
|
|
57
|
+
const _hoisted_9 = { class: "bs-layout-horizontal justify-content-end gap-8" };
|
|
58
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
59
|
+
__name: "TablePropertiesModal",
|
|
60
|
+
props: {
|
|
61
|
+
editor: {}
|
|
62
|
+
},
|
|
63
|
+
setup(__props) {
|
|
64
|
+
const props = __props;
|
|
65
|
+
const disabled = computed(() => !props.editor.isEditable);
|
|
66
|
+
const data = ref();
|
|
67
|
+
const columns = ref([]);
|
|
68
|
+
onMounted(() => {
|
|
69
|
+
const selection = props.editor.state.selection;
|
|
70
|
+
const { node } = findTableNode(selection, "table");
|
|
71
|
+
if (node) {
|
|
72
|
+
data.value = {
|
|
73
|
+
...node.attrs
|
|
74
|
+
};
|
|
75
|
+
if (node.firstChild && (node.firstChild.children.length || 0) > 0) {
|
|
76
|
+
columns.value = node.firstChild.children.map((col) => ({
|
|
77
|
+
width: col.attrs.width || void 0
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
const resetAllColumns = () => {
|
|
83
|
+
var _a;
|
|
84
|
+
(_a = columns.value) == null ? void 0 : _a.forEach((col) => {
|
|
85
|
+
col.width = void 0;
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
const alignItems = [
|
|
89
|
+
{ value: "", caption: "", icon: "format_align_justify" },
|
|
90
|
+
{ value: "start", caption: "", icon: "format_align_left", tooltip: { key: "bs.richtext.alignLeft" } },
|
|
91
|
+
{ value: "center", caption: "", icon: "format_align_center", tooltip: { key: "bs.richtext.alignCenter" } },
|
|
92
|
+
{ value: "end", caption: "", icon: "format_align_right", tooltip: { key: "bs.richtext.alignRight" } }
|
|
93
|
+
];
|
|
94
|
+
const modalHandle = useModalHandle();
|
|
95
|
+
const form = useTemplateRef("form");
|
|
96
|
+
const validator = formValidator({ element: form });
|
|
97
|
+
const save = async () => {
|
|
98
|
+
await validator.validate();
|
|
99
|
+
props.editor.chain().focus().command(({ tr }) => {
|
|
100
|
+
var _a;
|
|
101
|
+
const { node, nodePos } = findTableNode(tr.selection, "table");
|
|
102
|
+
if (node && nodePos && data.value) {
|
|
103
|
+
tr.setNodeMarkup(nodePos - 1, null, {
|
|
104
|
+
...node.attrs,
|
|
105
|
+
...tableInfoNumberToPixel(data.value)
|
|
106
|
+
});
|
|
107
|
+
(_a = columns.value) == null ? void 0 : _a.forEach((column, index) => {
|
|
108
|
+
setTableColumnWidth(node, nodePos, index, column.width, tr);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}).run();
|
|
113
|
+
modalHandle.close();
|
|
114
|
+
};
|
|
115
|
+
const close = () => {
|
|
116
|
+
modalHandle.close();
|
|
117
|
+
};
|
|
118
|
+
modalHandle.setDefaultStyle({
|
|
119
|
+
width: "500px",
|
|
120
|
+
maxHeight: "80%"
|
|
121
|
+
});
|
|
122
|
+
return (_ctx, _cache) => {
|
|
123
|
+
return openBlock(), createBlock(_sfc_main$1, { title: { key: "bs.richtext.table" } }, {
|
|
124
|
+
default: withCtx(() => [
|
|
125
|
+
data.value ? (openBlock(), createElementBlock("div", {
|
|
126
|
+
key: 0,
|
|
127
|
+
ref_key: "form",
|
|
128
|
+
ref: form,
|
|
129
|
+
class: "bs-layout-form title-w-8"
|
|
130
|
+
}, [
|
|
131
|
+
createElementVNode("div", null, [
|
|
132
|
+
createElementVNode("div", _hoisted_1, [
|
|
133
|
+
createVNode(_sfc_main$2, { label: { key: "bs.size" } })
|
|
134
|
+
]),
|
|
135
|
+
createElementVNode("div", null, [
|
|
136
|
+
withDirectives(createVNode(_sfc_main$3, {
|
|
137
|
+
modelValue: data.value.width,
|
|
138
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.value.width = $event),
|
|
139
|
+
disabled: disabled.value,
|
|
140
|
+
name: "width",
|
|
141
|
+
prefix: "W",
|
|
142
|
+
width: "120px"
|
|
143
|
+
}, null, 8, ["modelValue", "disabled"]), [
|
|
144
|
+
[
|
|
145
|
+
unref(vT),
|
|
146
|
+
{ key: "bs.width" },
|
|
147
|
+
void 0,
|
|
148
|
+
{ title: true }
|
|
149
|
+
]
|
|
150
|
+
]),
|
|
151
|
+
_cache[9] || (_cache[9] = createTextVNode(" x ")),
|
|
152
|
+
withDirectives(createVNode(_sfc_main$3, {
|
|
153
|
+
modelValue: data.value.height,
|
|
154
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data.value.height = $event),
|
|
155
|
+
disabled: disabled.value,
|
|
156
|
+
name: "height",
|
|
157
|
+
prefix: "H",
|
|
158
|
+
width: "120px"
|
|
159
|
+
}, null, 8, ["modelValue", "disabled"]), [
|
|
160
|
+
[
|
|
161
|
+
unref(vT),
|
|
162
|
+
{ key: "bs.height" },
|
|
163
|
+
void 0,
|
|
164
|
+
{ title: true }
|
|
165
|
+
]
|
|
166
|
+
])
|
|
167
|
+
])
|
|
168
|
+
]),
|
|
169
|
+
createElementVNode("div", null, [
|
|
170
|
+
createElementVNode("div", _hoisted_2, [
|
|
171
|
+
createVNode(_sfc_main$2, { label: { key: "bs.maxSize" } })
|
|
172
|
+
]),
|
|
173
|
+
createElementVNode("div", null, [
|
|
174
|
+
withDirectives(createVNode(_sfc_main$3, {
|
|
175
|
+
modelValue: data.value.maxWidth,
|
|
176
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => data.value.maxWidth = $event),
|
|
177
|
+
disabled: disabled.value,
|
|
178
|
+
name: "maxWidth",
|
|
179
|
+
prefix: "W",
|
|
180
|
+
width: "120px"
|
|
181
|
+
}, null, 8, ["modelValue", "disabled"]), [
|
|
182
|
+
[
|
|
183
|
+
unref(vT),
|
|
184
|
+
{ key: "bs.maxWidth" },
|
|
185
|
+
void 0,
|
|
186
|
+
{ title: true }
|
|
187
|
+
]
|
|
188
|
+
]),
|
|
189
|
+
_cache[10] || (_cache[10] = createTextVNode(" x ")),
|
|
190
|
+
withDirectives(createVNode(_sfc_main$3, {
|
|
191
|
+
modelValue: data.value.maxHeight,
|
|
192
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => data.value.maxHeight = $event),
|
|
193
|
+
disabled: disabled.value,
|
|
194
|
+
name: "maxHeight",
|
|
195
|
+
prefix: "H",
|
|
196
|
+
width: "120px"
|
|
197
|
+
}, null, 8, ["modelValue", "disabled"]), [
|
|
198
|
+
[
|
|
199
|
+
unref(vT),
|
|
200
|
+
{ key: "bs.maxHeight" },
|
|
201
|
+
void 0,
|
|
202
|
+
{ title: true }
|
|
203
|
+
]
|
|
204
|
+
])
|
|
205
|
+
])
|
|
206
|
+
]),
|
|
207
|
+
createElementVNode("div", null, [
|
|
208
|
+
createElementVNode("div", _hoisted_3, [
|
|
209
|
+
createVNode(_sfc_main$2, { label: { key: "bs.margin" } })
|
|
210
|
+
]),
|
|
211
|
+
createElementVNode("div", _hoisted_4, [
|
|
212
|
+
withDirectives(createVNode(_sfc_main$3, {
|
|
213
|
+
modelValue: data.value.marginLeft,
|
|
214
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => data.value.marginLeft = $event),
|
|
215
|
+
disabled: disabled.value,
|
|
216
|
+
prefix: { type: "font-icon", value: "keyboard_arrow_left" },
|
|
217
|
+
name: "marginLeft",
|
|
218
|
+
width: "80px"
|
|
219
|
+
}, null, 8, ["modelValue", "disabled"]), [
|
|
220
|
+
[
|
|
221
|
+
unref(vT),
|
|
222
|
+
{ key: "bs.left" },
|
|
223
|
+
void 0,
|
|
224
|
+
{ title: true }
|
|
225
|
+
]
|
|
226
|
+
]),
|
|
227
|
+
withDirectives(createVNode(_sfc_main$3, {
|
|
228
|
+
modelValue: data.value.marginTop,
|
|
229
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => data.value.marginTop = $event),
|
|
230
|
+
disabled: disabled.value,
|
|
231
|
+
prefix: { type: "font-icon", value: "keyboard_arrow_up" },
|
|
232
|
+
name: "marginTop",
|
|
233
|
+
width: "80px"
|
|
234
|
+
}, null, 8, ["modelValue", "disabled"]), [
|
|
235
|
+
[
|
|
236
|
+
unref(vT),
|
|
237
|
+
{ key: "bs.top" },
|
|
238
|
+
void 0,
|
|
239
|
+
{ title: true }
|
|
240
|
+
]
|
|
241
|
+
]),
|
|
242
|
+
withDirectives(createVNode(_sfc_main$3, {
|
|
243
|
+
modelValue: data.value.marginBottom,
|
|
244
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => data.value.marginBottom = $event),
|
|
245
|
+
disabled: disabled.value,
|
|
246
|
+
prefix: { type: "font-icon", value: "keyboard_arrow_down" },
|
|
247
|
+
name: "marginBottom",
|
|
248
|
+
width: "80px"
|
|
249
|
+
}, null, 8, ["modelValue", "disabled"]), [
|
|
250
|
+
[
|
|
251
|
+
unref(vT),
|
|
252
|
+
{ key: "bs.bottom" },
|
|
253
|
+
void 0,
|
|
254
|
+
{ title: true }
|
|
255
|
+
]
|
|
256
|
+
]),
|
|
257
|
+
withDirectives(createVNode(_sfc_main$3, {
|
|
258
|
+
modelValue: data.value.marginRight,
|
|
259
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => data.value.marginRight = $event),
|
|
260
|
+
disabled: disabled.value,
|
|
261
|
+
prefix: { type: "font-icon", value: "keyboard_arrow_right" },
|
|
262
|
+
name: "marginRight",
|
|
263
|
+
width: "80px"
|
|
264
|
+
}, null, 8, ["modelValue", "disabled"]), [
|
|
265
|
+
[
|
|
266
|
+
unref(vT),
|
|
267
|
+
{ key: "bs.right" },
|
|
268
|
+
void 0,
|
|
269
|
+
{ title: true }
|
|
270
|
+
]
|
|
271
|
+
])
|
|
272
|
+
])
|
|
273
|
+
]),
|
|
274
|
+
createElementVNode("div", null, [
|
|
275
|
+
createElementVNode("div", _hoisted_5, [
|
|
276
|
+
createVNode(_sfc_main$2, { label: { key: "bs.align" } })
|
|
277
|
+
]),
|
|
278
|
+
createElementVNode("div", null, [
|
|
279
|
+
createVNode(_sfc_main$4, {
|
|
280
|
+
modelValue: data.value.tableAlign,
|
|
281
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => data.value.tableAlign = $event),
|
|
282
|
+
disabled: disabled.value,
|
|
283
|
+
"icon-provider": (item) => item.icon,
|
|
284
|
+
items: alignItems,
|
|
285
|
+
"label-provider": (item) => item.caption,
|
|
286
|
+
"tooltip-provider": (item) => item.tooltip,
|
|
287
|
+
"value-provider": (item) => item.value,
|
|
288
|
+
class: "button-group-style",
|
|
289
|
+
name: "tableAlign"
|
|
290
|
+
}, null, 8, ["modelValue", "disabled", "icon-provider", "label-provider", "tooltip-provider", "value-provider"])
|
|
291
|
+
])
|
|
292
|
+
]),
|
|
293
|
+
createElementVNode("div", null, [
|
|
294
|
+
createElementVNode("div", _hoisted_6, [
|
|
295
|
+
createVNode(_sfc_main$2, { label: { key: "bs.richtext.tableColumnInfo" } })
|
|
296
|
+
]),
|
|
297
|
+
createElementVNode("div", null, [
|
|
298
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(columns.value, (column, index) => {
|
|
299
|
+
return openBlock(), createElementBlock("div", {
|
|
300
|
+
key: index,
|
|
301
|
+
class: "mb-4"
|
|
302
|
+
}, [
|
|
303
|
+
createElementVNode("span", _hoisted_7, toDisplayString(index + 1) + ":", 1),
|
|
304
|
+
withDirectives(createVNode(_sfc_main$3, {
|
|
305
|
+
modelValue: column.width,
|
|
306
|
+
"onUpdate:modelValue": ($event) => column.width = $event,
|
|
307
|
+
disabled: disabled.value,
|
|
308
|
+
name: `columnWidth_${index}`,
|
|
309
|
+
prefix: "W",
|
|
310
|
+
width: "120px"
|
|
311
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "name"]), [
|
|
312
|
+
[
|
|
313
|
+
unref(vT),
|
|
314
|
+
{ key: "bs.width" },
|
|
315
|
+
void 0,
|
|
316
|
+
{ title: true }
|
|
317
|
+
]
|
|
318
|
+
])
|
|
319
|
+
]);
|
|
320
|
+
}), 128)),
|
|
321
|
+
createElementVNode("div", _hoisted_8, [
|
|
322
|
+
createVNode(BSButton, {
|
|
323
|
+
caption: { key: "bs.clearAll" },
|
|
324
|
+
onClick: resetAllColumns
|
|
325
|
+
})
|
|
326
|
+
])
|
|
327
|
+
])
|
|
328
|
+
])
|
|
329
|
+
], 512)) : createCommentVNode("", true)
|
|
330
|
+
]),
|
|
331
|
+
buttons: withCtx(() => [
|
|
332
|
+
createElementVNode("div", _hoisted_9, [
|
|
333
|
+
createVNode(BSButton, {
|
|
334
|
+
caption: { key: "bs.ok" },
|
|
335
|
+
"button-color": "blue",
|
|
336
|
+
"data-id": "okBtn",
|
|
337
|
+
onClick: save
|
|
338
|
+
}),
|
|
339
|
+
createVNode(BSButton, {
|
|
340
|
+
caption: { key: "bs.cancel" },
|
|
341
|
+
"data-id": "cancelBtn",
|
|
342
|
+
onClick: close
|
|
343
|
+
})
|
|
344
|
+
])
|
|
345
|
+
]),
|
|
346
|
+
_: 1
|
|
347
|
+
});
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
export {
|
|
352
|
+
_sfc_main as default
|
|
353
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, createBlock, openBlock, withCtx, createElementVNode, createVNode, withDirectives, vShow } from "vue";
|
|
2
|
-
import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, a as _sfc_main$2, b as _sfc_main$3, c as _sfc_main$4 } from "./index-
|
|
3
|
-
import { _ as _sfc_main$5 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, a as _sfc_main$2, b as _sfc_main$3, c as _sfc_main$4 } from "./index-Bx4oDJu3.js";
|
|
3
|
+
import { _ as _sfc_main$5 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-BOCeOQVe.js";
|
|
4
4
|
const _hoisted_1 = { class: "bs-layout-form title-w-8" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = { class: "bs-layout-horizontal justify-content-end gap-8" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, withDirectives, createTextVNode, unref } from "vue";
|
|
2
|
-
import { i as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, v as vT } from "./index-
|
|
2
|
+
import { i as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, v as vT } from "./index-Bx4oDJu3.js";
|
|
3
3
|
const _hoisted_1 = { class: "bs-layout-horizontal gap-8" };
|
|
4
4
|
const _hoisted_2 = { class: "title" };
|
|
5
5
|
const _hoisted_3 = { class: "title" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, onMounted, useTemplateRef, createBlock, openBlock, withCtx, createElementVNode, createVNode, createElementBlock, createCommentVNode } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as _sfc_main$4 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { s as findVideoNode, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, m as formValidator, t as videoInfoNumberToPixel } from "./index-Bx4oDJu3.js";
|
|
3
|
+
import { _ as _sfc_main$4 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-BOCeOQVe.js";
|
|
4
4
|
const _hoisted_1 = { class: "title" };
|
|
5
5
|
const _hoisted_2 = { class: "bs-layout-horizontal justify-content-end gap-8" };
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, createBlock, openBlock, withCtx, createElementVNode, createVNode } from "vue";
|
|
2
|
-
import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, y as youtubeInfoNumberToPixel } from "./index-
|
|
3
|
-
import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, y as youtubeInfoNumberToPixel } from "./index-Bx4oDJu3.js";
|
|
3
|
+
import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-BpRF2WTd.js";
|
|
4
4
|
const _hoisted_1 = { class: "bs-layout-form" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = { class: "bs-layout-horizontal justify-content-end gap-8" };
|
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
setup(__props) {
|
|
13
13
|
const props = __props;
|
|
14
14
|
const disabled = computed(() => !props.editor.isEditable);
|
|
15
|
-
const data = ref({ src: "", aspectRatio: "16/9" });
|
|
15
|
+
const data = ref({ src: "", aspectRatio: "16/9", width: "480px" });
|
|
16
16
|
const modalHandle = useModalHandle();
|
|
17
17
|
const insert = () => {
|
|
18
18
|
if (data.value.src) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, withDirectives, createTextVNode, unref } from "vue";
|
|
2
|
-
import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-
|
|
2
|
+
import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-Bx4oDJu3.js";
|
|
3
3
|
const _hoisted_1 = { class: "title" };
|
|
4
4
|
const _hoisted_2 = { class: "title" };
|
|
5
5
|
const _hoisted_3 = { class: "title" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, onMounted, createBlock, openBlock, withCtx, createElementVNode, createVNode, createElementBlock, createCommentVNode } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { q as findYoutubeNode, r as normalizeYoutubeInfoData, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, y as youtubeInfoNumberToPixel } from "./index-Bx4oDJu3.js";
|
|
3
|
+
import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-BpRF2WTd.js";
|
|
4
4
|
const _hoisted_1 = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "bs-layout-form"
|
package/dist/bluesea.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { aI, aJ, bD, bE,
|
|
1
|
+
import { aI, aJ, bD, bE, w, al, av, B, H, I, a5, i, O, an, K, D, aw, ck, F, L, ar, M, a3, a4, as, N, b, g, a1, a0, a8, ao, am, Y, A, a7, a6, E, ai, c2, at, _, Z, af, ah, ag, ae, ad, ac, S, aj, au, h, G, ap, z, V, $, J, C, P, l, d, R, aq, a, ak, W, a2, c, aa, ab, U, T, a9, Q, x, bL, bK, aS, ay, cp, ax, aZ, aX, aU, X, bJ, a$, a_, cu, bB, bH, aY, bN, bM, bI, co, b0, aR, aF, aG, aE, aH, bG, bF, aW, bC, bs, bZ, ct, b7, be, bY, cD, c8, bO, bV, bU, aO, bv, ca, aP, cj, cn, cq, f, c5, aV, ba, cH, aK, bb, aL, aN, aM, b3, bT, bp, bq, br, bm, bo, bn, e, bl, bi, m, cw, aQ, b2, ch, cd, cv, bR, aA, cE, cB, cF, bw, cC, bx, bX, bW, ce, bf, bS, bh, bd, cG, b1, c1, c0, aT, bQ, n, c6, bP, cA, cr, b_, c4, bt, b4, b8, bA, by, bz, c9, cg, cf, c7, cc, bg, bc, cb, cz, cl, cm, cs, b$, c3, u, bu, b5, b6, b9, az, aC, aD, j, v, aB, bj, bk, cy, cx, ci } from "./index-Bx4oDJu3.js";
|
|
2
2
|
export {
|
|
3
3
|
aI as ADDRESS_COUNTRY_CONFIGS,
|
|
4
4
|
aJ as ADDRESS_COUNTRY_CONFIG_DEFAULT,
|
|
5
5
|
bD as AbstractFilter,
|
|
6
6
|
bE as AndFilter,
|
|
7
|
-
|
|
7
|
+
w as BLUESEA_VERSION,
|
|
8
8
|
al as BSAddressInput,
|
|
9
9
|
av as BSAlarmFrame,
|
|
10
10
|
B as BSButton,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
H as BSCalendar,
|
|
12
|
+
I as BSCalendarRange,
|
|
13
13
|
a5 as BSCardLayout,
|
|
14
14
|
i as BSCheckbox,
|
|
15
|
-
|
|
15
|
+
O as BSCheckboxGroup,
|
|
16
16
|
an as BSCodeEditor,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
K as BSColorInput,
|
|
18
|
+
D as BSConsole,
|
|
19
19
|
aw as BSContextMenuContainer,
|
|
20
20
|
ck as BSContextMenuPlugin,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
F as BSDate,
|
|
22
|
+
L as BSDateInput,
|
|
23
23
|
ar as BSDateInputPopup,
|
|
24
|
-
|
|
24
|
+
M as BSDateRange,
|
|
25
25
|
a3 as BSDateRangeFilter,
|
|
26
26
|
a4 as BSDateRangeFilters,
|
|
27
27
|
as as BSDateRangeInputPopup,
|
|
28
|
-
|
|
28
|
+
N as BSDateRangePresets,
|
|
29
29
|
b as BSFormLabel,
|
|
30
30
|
g as BSGrid,
|
|
31
31
|
a1 as BSGridControl,
|
|
@@ -34,10 +34,10 @@ export {
|
|
|
34
34
|
ao as BSHtmlEditor,
|
|
35
35
|
am as BSImage,
|
|
36
36
|
Y as BSImageUpload,
|
|
37
|
-
|
|
37
|
+
A as BSLink,
|
|
38
38
|
a7 as BSListControl,
|
|
39
39
|
a6 as BSListLayout,
|
|
40
|
-
|
|
40
|
+
E as BSLoadingIcon,
|
|
41
41
|
ai as BSLocaleSelect,
|
|
42
42
|
c2 as BSModal,
|
|
43
43
|
at as BSModalContainer,
|
|
@@ -53,15 +53,15 @@ export {
|
|
|
53
53
|
aj as BSNameInput,
|
|
54
54
|
au as BSNotificationContainer,
|
|
55
55
|
h as BSNumberInput,
|
|
56
|
-
|
|
56
|
+
G as BSPageNavigation,
|
|
57
57
|
ap as BSPopup,
|
|
58
|
-
|
|
58
|
+
z as BSPopupButton,
|
|
59
59
|
V as BSPopupSelect,
|
|
60
60
|
$ as BSPositionedImageUpload,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
J as BSPriceInput,
|
|
62
|
+
C as BSProgressBar,
|
|
63
|
+
P as BSRadioButton,
|
|
64
|
+
l as BSRadioButtonGroup,
|
|
65
65
|
d as BSRichText,
|
|
66
66
|
R as BSSelect,
|
|
67
67
|
aq as BSSelectPopup,
|
|
@@ -76,7 +76,7 @@ export {
|
|
|
76
76
|
T as BSTreeSelect,
|
|
77
77
|
a9 as BSVerticalLayoutResizer,
|
|
78
78
|
Q as BSYesNoGroup,
|
|
79
|
-
|
|
79
|
+
x as BSYesNoSelect,
|
|
80
80
|
bL as BetweenDateFilter,
|
|
81
81
|
bK as BetweenFilter,
|
|
82
82
|
aS as DEFAULT_GRID_COLUMN_WIDTH,
|
|
@@ -147,7 +147,7 @@ export {
|
|
|
147
147
|
e as extractYoutubeVideoId,
|
|
148
148
|
bl as fieldValidator,
|
|
149
149
|
bi as findFieldValidatorElements,
|
|
150
|
-
|
|
150
|
+
m as formValidator,
|
|
151
151
|
cw as formatUtil,
|
|
152
152
|
aQ as getMediaType,
|
|
153
153
|
b2 as gridExcelDownloadExtension,
|