@g1cloud/bluesea 5.0.0-beta.2 → 5.0.0-beta.20

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.
Files changed (77) hide show
  1. package/css/bluesea.css +171 -35
  2. package/dist/{BSAlertModal-BixCrZDD.js → BSAlertModal-bXdRoQ4g.js} +1 -1
  3. package/dist/{BSGridColumnSettingModal-CVVenSnr.js → BSGridColumnSettingModal-CnqefrIo.js} +1 -1
  4. package/dist/{BSRichTextMaximizedModal-BqzE5__U.js → BSRichTextMaximizedModal-Dc9sFpvh.js} +1 -1
  5. package/dist/{BSYesNoModal-B5lERw_k.js → BSYesNoModal-nTiw15vA.js} +1 -1
  6. package/dist/{BSYoutubeInputModal-eRBqHjeW.js → BSYoutubeInputModal-DN55K-10.js} +1 -1
  7. package/dist/{ImageInsertModal-DvKLXL1n.js → ImageInsertModal-999e_ass.js} +2 -2
  8. package/dist/{ImageProperties.vue_vue_type_script_setup_true_lang-DVUZuLfG.js → ImageProperties.vue_vue_type_script_setup_true_lang-Dk8Skxl0.js} +1 -1
  9. package/dist/{ImagePropertiesModal-Dsg6BS63.js → ImagePropertiesModal-D6g2ZYpb.js} +2 -2
  10. package/dist/{LinkPropertiesModal-Ct0ykD4j.js → LinkPropertiesModal-DUAsPJ5g.js} +1 -1
  11. package/dist/{TableInsertModal-BhyzkcTU.js → TableInsertModal-DuK1nGxQ.js} +1 -1
  12. package/dist/TablePropertiesModal-Dn_ozHTt.js +353 -0
  13. package/dist/{VideoInsertModal-BAwRYBzU.js → VideoInsertModal-CjB8Vfny.js} +2 -2
  14. package/dist/{VideoProperties.vue_vue_type_script_setup_true_lang-BfwBHyER.js → VideoProperties.vue_vue_type_script_setup_true_lang-C41jIi69.js} +1 -1
  15. package/dist/{VideoPropertiesModal-B2FeEw4W.js → VideoPropertiesModal-CZyluT1C.js} +2 -2
  16. package/dist/{YoutubeInsertModal-EU6G-021.js → YoutubeInsertModal-C3VKZ3MM.js} +3 -3
  17. package/dist/{YoutubeProperties.vue_vue_type_script_setup_true_lang-Ci3ndkZR.js → YoutubeProperties.vue_vue_type_script_setup_true_lang-D5zcnp25.js} +1 -1
  18. package/dist/{YoutubePropertiesModal-CRy6zJwZ.js → YoutubePropertiesModal-VGbyMXuR.js} +2 -2
  19. package/dist/bluesea.css +143 -32
  20. package/dist/bluesea.js +211 -204
  21. package/dist/bluesea.umd.cjs +2281 -1273
  22. package/dist/component/grid/BSGrid.vue.d.ts +3 -3
  23. package/dist/component/grid/BSGridLookup.vue.d.ts +3 -1
  24. package/dist/component/grid/DateFilterModel.d.ts +15 -0
  25. package/dist/component/grid/GridLib.d.ts +2 -1
  26. package/dist/component/grid/GridModel.d.ts +8 -0
  27. package/dist/component/input/BSCheckboxGroup.vue.d.ts +3 -0
  28. package/dist/component/input/BSColorInput.vue.d.ts +2 -0
  29. package/dist/component/input/BSDateInput.vue.d.ts +2 -0
  30. package/dist/component/input/BSDateRange.vue.d.ts +2 -0
  31. package/dist/component/input/BSDateRangePresets.vue.d.ts +2 -2
  32. package/dist/component/input/BSFileUpload.vue.d.ts +76 -0
  33. package/dist/component/input/BSImageUpload.vue.d.ts +2 -0
  34. package/dist/component/input/BSMultiSelect.vue.d.ts +12 -6
  35. package/dist/component/input/BSNumberInput.vue.d.ts +7 -0
  36. package/dist/component/input/BSPercentInput.vue.d.ts +166 -0
  37. package/dist/component/input/BSPopupSelect.vue.d.ts +3 -3
  38. package/dist/component/input/BSPriceInput.vue.d.ts +7 -0
  39. package/dist/component/input/BSRadioButton.vue.d.ts +3 -3
  40. package/dist/component/input/BSRadioButtonGroup.vue.d.ts +3 -0
  41. package/dist/component/input/BSSelect.vue.d.ts +15 -6
  42. package/dist/component/input/BSSelectPopup.vue.d.ts +6 -6
  43. package/dist/component/input/BSTextArea.vue.d.ts +2 -0
  44. package/dist/component/input/BSTextInput.vue.d.ts +2 -0
  45. package/dist/component/input/BSTreeMultiSelect.vue.d.ts +12 -6
  46. package/dist/component/input/BSTreeSelect.vue.d.ts +12 -6
  47. package/dist/component/input/BSYesNoGroup.vue.d.ts +4 -0
  48. package/dist/component/input/BSYesNoSelect.vue.d.ts +4 -0
  49. package/dist/component/input/DateRangePresetModel.d.ts +2 -0
  50. package/dist/component/layout/BSCardLayout.vue.d.ts +6 -10
  51. package/dist/component/layout/BSListLayout.vue.d.ts +3 -0
  52. package/dist/component/layout/BSListLayoutItem.vue.d.ts +3 -0
  53. package/dist/component/multilang/BSMultiLangTextArea.vue.d.ts +2 -0
  54. package/dist/component/multilang/BSMultiLangTextInput.vue.d.ts +2 -0
  55. package/dist/component/richtext/RichTextModel.d.ts +1 -0
  56. package/dist/component/richtext/richTextUtil.d.ts +1 -1
  57. package/dist/component/richtext/table/RichTextTableCell.d.ts +1 -0
  58. package/dist/component/richtext/table/RichTextTableLib.d.ts +7 -1
  59. package/dist/component/tree/BSTree.vue.d.ts +9 -3
  60. package/dist/component/tree/BSTreeRow.vue.d.ts +9 -6
  61. package/dist/component/tree/TreeLib.d.ts +20 -0
  62. package/dist/component/tree/TreeModel.d.ts +33 -1
  63. package/dist/config/config.d.ts +14 -6
  64. package/dist/directive/vT.d.ts +6 -0
  65. package/dist/frame/default/DefaultFrameModel.d.ts +2 -0
  66. package/dist/{index-CDwzpZX0.js → index-uI4FYMrx.js} +2167 -1328
  67. package/dist/index.d.ts +4 -1
  68. package/dist/model/CommonTypes.d.ts +1 -1
  69. package/dist/util/formatUtil.d.ts +4 -4
  70. package/dist/validator/FormValidator.d.ts +5 -0
  71. package/package.json +3 -3
  72. package/text/bluesea_text_en.json +20 -0
  73. package/text/bluesea_text_fr.json +20 -0
  74. package/text/bluesea_text_ja.json +20 -0
  75. package/text/bluesea_text_ko.json +20 -0
  76. package/text/bluesea_text_zh.json +20 -0
  77. package/dist/TablePropertiesModal-BAxcByTD.js +0 -184
@@ -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-uI4FYMrx.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-CDwzpZX0.js";
3
- import { _ as _sfc_main$5 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-BfwBHyER.js";
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-uI4FYMrx.js";
3
+ import { _ as _sfc_main$5 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-C41jIi69.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-CDwzpZX0.js";
2
+ import { i as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, v as vT } from "./index-uI4FYMrx.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 { r as findVideoNode, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, l as formValidator, s as videoInfoNumberToPixel } from "./index-CDwzpZX0.js";
3
- import { _ as _sfc_main$4 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-BfwBHyER.js";
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-uI4FYMrx.js";
3
+ import { _ as _sfc_main$4 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-C41jIi69.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-CDwzpZX0.js";
3
- import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-Ci3ndkZR.js";
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-uI4FYMrx.js";
3
+ import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-D5zcnp25.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-CDwzpZX0.js";
2
+ import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-uI4FYMrx.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 { p as findYoutubeNode, q 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-CDwzpZX0.js";
3
- import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-Ci3ndkZR.js";
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-uI4FYMrx.js";
3
+ import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-D5zcnp25.js";
4
4
  const _hoisted_1 = {
5
5
  key: 0,
6
6
  class: "bs-layout-form"