@g1cloud/bluesea 5.0.0-alpha.88 → 5.0.0-alpha.89

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 (20) hide show
  1. package/dist/{BSAlertModal-B5tGkY04.js → BSAlertModal-CSAY6m-x.js} +1 -1
  2. package/dist/{BSGridColumnSettingModal-BUt4caRa.js → BSGridColumnSettingModal-DVdSXdMx.js} +1 -1
  3. package/dist/{BSYesNoModal-DGqh7VUK.js → BSYesNoModal-_AeoEVxn.js} +1 -1
  4. package/dist/{BSYoutubeInputModal-CrUbJbSF.js → BSYoutubeInputModal-DyHwlciu.js} +1 -1
  5. package/dist/{ImageInsertModal-PtjaQ-tL.js → ImageInsertModal-Cy0hU-R3.js} +11 -5
  6. package/dist/{ImageProperties.vue_vue_type_script_setup_true_lang-BPes-zaF.js → ImageProperties.vue_vue_type_script_setup_true_lang-DddzKMfG.js} +21 -11
  7. package/dist/{ImagePropertiesModal-Brh3HoT5.js → ImagePropertiesModal-BMxxJcB7.js} +8 -4
  8. package/dist/{LinkPropertiesModal-CK5YgiK-.js → LinkPropertiesModal-B7x_jnpK.js} +1 -1
  9. package/dist/{TableInsertModal-AfjPyTRn.js → TableInsertModal-dWhd9ZtU.js} +1 -1
  10. package/dist/{YoutubeInsertModal-coMcylhc.js → YoutubeInsertModal-CgS3KPA9.js} +8 -4
  11. package/dist/{YoutubeProperties.vue_vue_type_script_setup_true_lang-BeA4uS9k.js → YoutubeProperties.vue_vue_type_script_setup_true_lang-CJu6r-45.js} +21 -11
  12. package/dist/{YoutubePropertiesModal-Bbm5ASxv.js → YoutubePropertiesModal-D9SE-PLP.js} +10 -5
  13. package/dist/bluesea.js +1 -1
  14. package/dist/bluesea.umd.cjs +117 -38
  15. package/dist/component/richtext/image/ImageProperties.vue.d.ts +2 -0
  16. package/dist/component/richtext/youtube/YoutubeProperties.vue.d.ts +2 -0
  17. package/dist/{index-DHcVe0Gr.js → index-CZ9WU3n0.js} +63 -23
  18. package/dist/style.css +94 -0
  19. package/dist/util/componentUtil.d.ts +13 -1
  20. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createBlock, withCtx, createElementVNode, withDirectives, createVNode, unref } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, v as vFocusOnLoad, i as vT } from "./index-DHcVe0Gr.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, v as vFocusOnLoad, i as vT } from "./index-CZ9WU3n0.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, openBlock, createBlock, withCtx, createVNode, mergeProps, unref, toHandlers, createElementVNode, nextTick } from "vue";
2
- import { d as createInputGridHandler, u as useModalHandle, _ as _sfc_main$1, f as _sfc_main$2, g as _sfc_main$3, h as _sfc_main$4, B as BSButton, n as notNull } from "./index-DHcVe0Gr.js";
2
+ import { d as createInputGridHandler, u as useModalHandle, _ as _sfc_main$1, f as _sfc_main$2, g as _sfc_main$3, h as _sfc_main$4, B as BSButton, n as notNull } from "./index-CZ9WU3n0.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, openBlock, createBlock, withCtx, createElementVNode, createVNode, withDirectives, unref } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, i as vT } from "./index-DHcVe0Gr.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, i as vT } from "./index-CZ9WU3n0.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, openBlock, createBlock, withCtx, createElementVNode, createVNode, unref, createCommentVNode } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, B as BSButton, e as extractYoutubeVideoId } from "./index-DHcVe0Gr.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, B as BSButton, e as extractYoutubeVideoId } from "./index-CZ9WU3n0.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
- import { defineComponent, ref, openBlock, createBlock, withCtx, createVNode, withDirectives, createElementVNode, vShow } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, a as _sfc_main$2, b as _sfc_main$3, c as _sfc_main$4, B as BSButton } from "./index-DHcVe0Gr.js";
3
- import { _ as _sfc_main$5 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-BPes-zaF.js";
1
+ import { defineComponent, computed, ref, openBlock, createBlock, withCtx, createVNode, withDirectives, createElementVNode, vShow } from "vue";
2
+ import { u as useModalHandle, _ as _sfc_main$1, a as _sfc_main$2, b as _sfc_main$3, c as _sfc_main$4, B as BSButton } from "./index-CZ9WU3n0.js";
3
+ import { _ as _sfc_main$5 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-DddzKMfG.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" };
@@ -11,6 +11,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  },
12
12
  emits: ["insertImage"],
13
13
  setup(__props, { emit: __emit }) {
14
+ const props = __props;
15
+ const disabled = computed(() => !props.editor.isEditable);
14
16
  const emit = __emit;
15
17
  const tabs = [
16
18
  // {tabId: 'upload', caption: {key: 'Upload'}},
@@ -59,14 +61,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
61
  createVNode(_sfc_main$4, {
60
62
  modelValue: data.value.src,
61
63
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.value.src = $event),
64
+ disabled: disabled.value,
62
65
  class: "flex-grow-1",
63
66
  name: "url",
64
67
  required: "",
65
68
  width: "100%"
66
- }, null, 8, ["modelValue"])
69
+ }, null, 8, ["modelValue", "disabled"])
67
70
  ])
68
71
  ]),
69
- createVNode(_sfc_main$5, { "image-info": data.value }, null, 8, ["image-info"])
72
+ createVNode(_sfc_main$5, {
73
+ disabled: disabled.value,
74
+ "image-info": data.value
75
+ }, null, 8, ["disabled", "image-info"])
70
76
  ], 512), [
71
77
  [vShow, active]
72
78
  ])
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createElementBlock, Fragment, createElementVNode, createVNode, withDirectives, unref, createTextVNode } from "vue";
2
- import { b as _sfc_main$1, c as _sfc_main$2, i as vT } from "./index-DHcVe0Gr.js";
2
+ import { b as _sfc_main$1, c as _sfc_main$2, i as vT } from "./index-CZ9WU3n0.js";
3
3
  const _hoisted_1 = { class: "title" };
4
4
  const _hoisted_2 = { class: "title" };
5
5
  const _hoisted_3 = { class: "title" };
@@ -8,7 +8,8 @@ const _hoisted_5 = { class: "bs-layout-horizontal gap-2" };
8
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  __name: "ImageProperties",
10
10
  props: {
11
- imageInfo: {}
11
+ imageInfo: {},
12
+ disabled: { type: Boolean }
12
13
  },
13
14
  setup(__props) {
14
15
  return (_ctx, _cache) => {
@@ -21,9 +22,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
22
  createVNode(_sfc_main$2, {
22
23
  modelValue: _ctx.imageInfo.alt,
23
24
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.imageInfo.alt = $event),
25
+ disabled: _ctx.disabled,
24
26
  name: "alt",
25
27
  width: "100%"
26
- }, null, 8, ["modelValue"])
28
+ }, null, 8, ["modelValue", "disabled"])
27
29
  ])
28
30
  ]),
29
31
  createElementVNode("div", null, [
@@ -34,10 +36,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
36
  withDirectives(createVNode(_sfc_main$2, {
35
37
  modelValue: _ctx.imageInfo.width,
36
38
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.imageInfo.width = $event),
39
+ disabled: _ctx.disabled,
37
40
  name: "width",
38
41
  prefix: "W",
39
42
  width: "100px"
40
- }, null, 8, ["modelValue"]), [
43
+ }, null, 8, ["modelValue", "disabled"]), [
41
44
  [
42
45
  unref(vT),
43
46
  { key: "bs.width" },
@@ -49,10 +52,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
52
  withDirectives(createVNode(_sfc_main$2, {
50
53
  modelValue: _ctx.imageInfo.height,
51
54
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.imageInfo.height = $event),
55
+ disabled: _ctx.disabled,
52
56
  name: "height",
53
57
  prefix: "H",
54
58
  width: "100px"
55
- }, null, 8, ["modelValue"]), [
59
+ }, null, 8, ["modelValue", "disabled"]), [
56
60
  [
57
61
  unref(vT),
58
62
  { key: "bs.height" },
@@ -70,10 +74,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
70
74
  withDirectives(createVNode(_sfc_main$2, {
71
75
  modelValue: _ctx.imageInfo.maxWidth,
72
76
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.imageInfo.maxWidth = $event),
77
+ disabled: _ctx.disabled,
73
78
  name: "maxWidth",
74
79
  prefix: "W",
75
80
  width: "100px"
76
- }, null, 8, ["modelValue"]), [
81
+ }, null, 8, ["modelValue", "disabled"]), [
77
82
  [
78
83
  unref(vT),
79
84
  { key: "bs.maxWidth" },
@@ -85,10 +90,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
85
90
  withDirectives(createVNode(_sfc_main$2, {
86
91
  modelValue: _ctx.imageInfo.maxHeight,
87
92
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.imageInfo.maxHeight = $event),
93
+ disabled: _ctx.disabled,
88
94
  name: "maxHeight",
89
95
  prefix: "H",
90
96
  width: "100px"
91
- }, null, 8, ["modelValue"]), [
97
+ }, null, 8, ["modelValue", "disabled"]), [
92
98
  [
93
99
  unref(vT),
94
100
  { key: "bs.maxHeight" },
@@ -106,10 +112,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
112
  withDirectives(createVNode(_sfc_main$2, {
107
113
  modelValue: _ctx.imageInfo.marginLeft,
108
114
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.imageInfo.marginLeft = $event),
115
+ disabled: _ctx.disabled,
109
116
  prefix: { type: "font-icon", value: "keyboard_arrow_left" },
110
117
  name: "marginLeft",
111
118
  width: "80px"
112
- }, null, 8, ["modelValue"]), [
119
+ }, null, 8, ["modelValue", "disabled"]), [
113
120
  [
114
121
  unref(vT),
115
122
  { key: "bs.left" },
@@ -120,10 +127,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
120
127
  withDirectives(createVNode(_sfc_main$2, {
121
128
  modelValue: _ctx.imageInfo.marginTop,
122
129
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.imageInfo.marginTop = $event),
130
+ disabled: _ctx.disabled,
123
131
  prefix: { type: "font-icon", value: "keyboard_arrow_up" },
124
132
  name: "marginTop",
125
133
  width: "80px"
126
- }, null, 8, ["modelValue"]), [
134
+ }, null, 8, ["modelValue", "disabled"]), [
127
135
  [
128
136
  unref(vT),
129
137
  { key: "bs.top" },
@@ -134,10 +142,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
134
142
  withDirectives(createVNode(_sfc_main$2, {
135
143
  modelValue: _ctx.imageInfo.marginBottom,
136
144
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.imageInfo.marginBottom = $event),
145
+ disabled: _ctx.disabled,
137
146
  prefix: { type: "font-icon", value: "keyboard_arrow_down" },
138
147
  name: "marginBottom",
139
148
  width: "80px"
140
- }, null, 8, ["modelValue"]), [
149
+ }, null, 8, ["modelValue", "disabled"]), [
141
150
  [
142
151
  unref(vT),
143
152
  { key: "bs.bottom" },
@@ -148,10 +157,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
148
157
  withDirectives(createVNode(_sfc_main$2, {
149
158
  modelValue: _ctx.imageInfo.marginRight,
150
159
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => _ctx.imageInfo.marginRight = $event),
160
+ disabled: _ctx.disabled,
151
161
  prefix: { type: "font-icon", value: "keyboard_arrow_right" },
152
162
  name: "marginRight",
153
163
  width: "80px"
154
- }, null, 8, ["modelValue"]), [
164
+ }, null, 8, ["modelValue", "disabled"]), [
155
165
  [
156
166
  unref(vT),
157
167
  { key: "bs.right" },
@@ -1,6 +1,6 @@
1
- import { defineComponent, ref, onMounted, useTemplateRef, openBlock, createBlock, withCtx, createElementBlock, createElementVNode, createVNode, createCommentVNode } from "vue";
2
- import { j as findImageNode, u as useModalHandle, _ as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, B as BSButton, k as imageInfoNumberToPixel, l as formValidator } from "./index-DHcVe0Gr.js";
3
- import { _ as _sfc_main$4 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-BPes-zaF.js";
1
+ import { defineComponent, computed, ref, onMounted, useTemplateRef, openBlock, createBlock, withCtx, createElementBlock, createElementVNode, createVNode, createCommentVNode } from "vue";
2
+ import { j as findImageNode, u as useModalHandle, _ as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, B as BSButton, k as imageInfoNumberToPixel, l as formValidator } from "./index-CZ9WU3n0.js";
3
+ import { _ as _sfc_main$4 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-DddzKMfG.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({
@@ -10,6 +10,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  },
11
11
  setup(__props) {
12
12
  const props = __props;
13
+ const disabled = computed(() => !props.editor.isEditable);
13
14
  const data = ref();
14
15
  onMounted(() => {
15
16
  const selection = props.editor.state.selection;
@@ -66,7 +67,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
67
  }, null, 8, ["modelValue"])
67
68
  ])
68
69
  ]),
69
- createVNode(_sfc_main$4, { "image-info": data.value }, null, 8, ["image-info"])
70
+ createVNode(_sfc_main$4, {
71
+ disabled: disabled.value,
72
+ "image-info": data.value
73
+ }, null, 8, ["disabled", "image-info"])
70
74
  ], 512)) : createCommentVNode("", true)
71
75
  ]),
72
76
  buttons: withCtx(() => [
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onMounted, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, withModifiers } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, B as BSButton } from "./index-DHcVe0Gr.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, B as BSButton } from "./index-CZ9WU3n0.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, openBlock, createBlock, withCtx, createElementVNode, createVNode } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, b as _sfc_main$2, h as _sfc_main$3, B as BSButton } from "./index-DHcVe0Gr.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, b as _sfc_main$2, h as _sfc_main$3, B as BSButton } from "./index-CZ9WU3n0.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" };
@@ -1,6 +1,6 @@
1
- import { defineComponent, ref, openBlock, createBlock, withCtx, createElementVNode, createVNode } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, B as BSButton, y as youtubeInfoNumberToPixel } from "./index-DHcVe0Gr.js";
3
- import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-BeA4uS9k.js";
1
+ import { defineComponent, computed, ref, openBlock, createBlock, withCtx, createElementVNode, createVNode } from "vue";
2
+ import { u as useModalHandle, _ as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, B as BSButton, y as youtubeInfoNumberToPixel } from "./index-CZ9WU3n0.js";
3
+ import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-CJu6r-45.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" };
@@ -11,6 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  },
12
12
  setup(__props) {
13
13
  const props = __props;
14
+ const disabled = computed(() => !props.editor.isEditable);
14
15
  const data = ref({ src: "", aspectRatio: "16/9" });
15
16
  const modalHandle = useModalHandle();
16
17
  const insert = () => {
@@ -52,7 +53,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
53
  }, null, 8, ["modelValue"])
53
54
  ])
54
55
  ]),
55
- createVNode(_sfc_main$4, { "youtube-info": data.value }, null, 8, ["youtube-info"])
56
+ createVNode(_sfc_main$4, {
57
+ disabled: disabled.value,
58
+ "youtube-info": data.value
59
+ }, null, 8, ["disabled", "youtube-info"])
56
60
  ])
57
61
  ]),
58
62
  buttons: withCtx(() => [
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createElementBlock, Fragment, createElementVNode, createVNode, withDirectives, unref, createTextVNode } from "vue";
2
- import { b as _sfc_main$1, c as _sfc_main$2, i as vT } from "./index-DHcVe0Gr.js";
2
+ import { b as _sfc_main$1, c as _sfc_main$2, i as vT } from "./index-CZ9WU3n0.js";
3
3
  const _hoisted_1 = { class: "title" };
4
4
  const _hoisted_2 = { class: "title" };
5
5
  const _hoisted_3 = { class: "title" };
@@ -8,7 +8,8 @@ const _hoisted_5 = { class: "bs-layout-horizontal gap-2" };
8
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  __name: "YoutubeProperties",
10
10
  props: {
11
- youtubeInfo: {}
11
+ youtubeInfo: {},
12
+ disabled: { type: Boolean }
12
13
  },
13
14
  setup(__props) {
14
15
  return (_ctx, _cache) => {
@@ -21,10 +22,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
22
  createVNode(_sfc_main$2, {
22
23
  modelValue: _ctx.youtubeInfo.aspectRatio,
23
24
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.youtubeInfo.aspectRatio = $event),
25
+ disabled: _ctx.disabled,
24
26
  name: "aspectRatio",
25
27
  placeholder: "16/9",
26
28
  width: "100px"
27
- }, null, 8, ["modelValue"])
29
+ }, null, 8, ["modelValue", "disabled"])
28
30
  ])
29
31
  ]),
30
32
  createElementVNode("div", null, [
@@ -35,10 +37,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
37
  withDirectives(createVNode(_sfc_main$2, {
36
38
  modelValue: _ctx.youtubeInfo.width,
37
39
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.youtubeInfo.width = $event),
40
+ disabled: _ctx.disabled,
38
41
  name: "width",
39
42
  prefix: "W",
40
43
  width: "100px"
41
- }, null, 8, ["modelValue"]), [
44
+ }, null, 8, ["modelValue", "disabled"]), [
42
45
  [
43
46
  unref(vT),
44
47
  { key: "bs.width" },
@@ -50,10 +53,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
53
  withDirectives(createVNode(_sfc_main$2, {
51
54
  modelValue: _ctx.youtubeInfo.height,
52
55
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.youtubeInfo.height = $event),
56
+ disabled: _ctx.disabled,
53
57
  name: "height",
54
58
  prefix: "H",
55
59
  width: "100px"
56
- }, null, 8, ["modelValue"]), [
60
+ }, null, 8, ["modelValue", "disabled"]), [
57
61
  [
58
62
  unref(vT),
59
63
  { key: "bs.height" },
@@ -71,10 +75,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
71
75
  withDirectives(createVNode(_sfc_main$2, {
72
76
  modelValue: _ctx.youtubeInfo.maxWidth,
73
77
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.youtubeInfo.maxWidth = $event),
78
+ disabled: _ctx.disabled,
74
79
  name: "maxWidth",
75
80
  prefix: "W",
76
81
  width: "100px"
77
- }, null, 8, ["modelValue"]), [
82
+ }, null, 8, ["modelValue", "disabled"]), [
78
83
  [
79
84
  unref(vT),
80
85
  { key: "bs.maxWidth" },
@@ -86,10 +91,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
91
  withDirectives(createVNode(_sfc_main$2, {
87
92
  modelValue: _ctx.youtubeInfo.maxHeight,
88
93
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.youtubeInfo.maxHeight = $event),
94
+ disabled: _ctx.disabled,
89
95
  name: "maxHeight",
90
96
  prefix: "H",
91
97
  width: "100px"
92
- }, null, 8, ["modelValue"]), [
98
+ }, null, 8, ["modelValue", "disabled"]), [
93
99
  [
94
100
  unref(vT),
95
101
  { key: "bs.maxHeight" },
@@ -107,10 +113,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
107
113
  withDirectives(createVNode(_sfc_main$2, {
108
114
  modelValue: _ctx.youtubeInfo.marginLeft,
109
115
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.youtubeInfo.marginLeft = $event),
116
+ disabled: _ctx.disabled,
110
117
  prefix: { type: "font-icon", value: "keyboard_arrow_left" },
111
118
  name: "marginLeft",
112
119
  width: "80px"
113
- }, null, 8, ["modelValue"]), [
120
+ }, null, 8, ["modelValue", "disabled"]), [
114
121
  [
115
122
  unref(vT),
116
123
  { key: "bs.left" },
@@ -121,10 +128,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
121
128
  withDirectives(createVNode(_sfc_main$2, {
122
129
  modelValue: _ctx.youtubeInfo.marginTop,
123
130
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.youtubeInfo.marginTop = $event),
131
+ disabled: _ctx.disabled,
124
132
  prefix: { type: "font-icon", value: "keyboard_arrow_up" },
125
133
  name: "marginTop",
126
134
  width: "80px"
127
- }, null, 8, ["modelValue"]), [
135
+ }, null, 8, ["modelValue", "disabled"]), [
128
136
  [
129
137
  unref(vT),
130
138
  { key: "bs.top" },
@@ -135,10 +143,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
135
143
  withDirectives(createVNode(_sfc_main$2, {
136
144
  modelValue: _ctx.youtubeInfo.marginBottom,
137
145
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.youtubeInfo.marginBottom = $event),
146
+ disabled: _ctx.disabled,
138
147
  prefix: { type: "font-icon", value: "keyboard_arrow_down" },
139
148
  name: "marginBottom",
140
149
  width: "80px"
141
- }, null, 8, ["modelValue"]), [
150
+ }, null, 8, ["modelValue", "disabled"]), [
142
151
  [
143
152
  unref(vT),
144
153
  { key: "bs.bottom" },
@@ -149,10 +158,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
149
158
  withDirectives(createVNode(_sfc_main$2, {
150
159
  modelValue: _ctx.youtubeInfo.marginRight,
151
160
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => _ctx.youtubeInfo.marginRight = $event),
161
+ disabled: _ctx.disabled,
152
162
  prefix: { type: "font-icon", value: "keyboard_arrow_right" },
153
163
  name: "marginRight",
154
164
  width: "80px"
155
- }, null, 8, ["modelValue"]), [
165
+ }, null, 8, ["modelValue", "disabled"]), [
156
166
  [
157
167
  unref(vT),
158
168
  { key: "bs.right" },
@@ -1,6 +1,6 @@
1
- import { defineComponent, ref, onMounted, openBlock, createBlock, withCtx, createElementBlock, createElementVNode, createVNode, createCommentVNode } from "vue";
2
- import { m as findYoutubeNode, o as normalizeYoutubeInfoData, u as useModalHandle, _ as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, B as BSButton, y as youtubeInfoNumberToPixel } from "./index-DHcVe0Gr.js";
3
- import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-BeA4uS9k.js";
1
+ import { defineComponent, computed, ref, onMounted, openBlock, createBlock, withCtx, createElementBlock, createElementVNode, createVNode, createCommentVNode } from "vue";
2
+ import { m as findYoutubeNode, o as normalizeYoutubeInfoData, u as useModalHandle, _ as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, B as BSButton, y as youtubeInfoNumberToPixel } from "./index-CZ9WU3n0.js";
3
+ import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-CJu6r-45.js";
4
4
  const _hoisted_1 = {
5
5
  key: 0,
6
6
  class: "bs-layout-form"
@@ -14,6 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  },
15
15
  setup(__props) {
16
16
  const props = __props;
17
+ const disabled = computed(() => !props.editor.isEditable);
17
18
  const data = ref();
18
19
  onMounted(() => {
19
20
  const selection = props.editor.state.selection;
@@ -62,14 +63,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
63
  createVNode(_sfc_main$3, {
63
64
  modelValue: data.value.src,
64
65
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data.value.src = $event),
66
+ disabled: disabled.value,
65
67
  name: "youtubeUrl",
66
68
  placeholder: "https://www.youtube.com/watch?v=...",
67
69
  required: "",
68
70
  width: "100%"
69
- }, null, 8, ["modelValue"])
71
+ }, null, 8, ["modelValue", "disabled"])
70
72
  ])
71
73
  ]),
72
- createVNode(_sfc_main$4, { "youtube-info": data.value }, null, 8, ["youtube-info"])
74
+ createVNode(_sfc_main$4, {
75
+ disabled: disabled.value,
76
+ "youtube-info": data.value
77
+ }, null, 8, ["disabled", "youtube-info"])
73
78
  ])) : createCommentVNode("", true)
74
79
  ]),
75
80
  buttons: withCtx(() => [
package/dist/bluesea.js CHANGED
@@ -1,4 +1,4 @@
1
- import { au, av, bo, bp, p, af, ak, B, C, D, a2, g, J, ah, F, w, al, bZ, z, G, H, a0, a1, I, b, f, Z, Y, ag, V, s, a4, a3, x, ac, bJ, ai, _, W, aa, ab, a9, a8, a7, O, ad, aj, h, A, r, R, X, E, t, K, L, T, N, a, ae, S, $, c, a5, a6, Q, P, M, q, bw, bv, aD, an, c1, am, aK, aI, aF, U, bu, aM, aL, c5, aA, bm, bs, aJ, bt, aN, ar, as, aq, at, br, bq, aH, bn, bc, bG, aT, aB, a_, bF, ce, bP, bx, bE, bD, ay, bf, bR, az, c0, c2, d, bM, aG, aW, aw, aX, ax, aP, bC, b9, ba, bb, b6, b8, b7, e, b5, b2, l, c7, aC, aO, bX, bU, c6, bA, ap, cf, cc, cg, bg, cd, bi, a$, bB, b1, aZ, ch, aE, bz, n, bN, by, cb, c3, bH, bL, bd, aQ, aU, bl, bh, bj, bk, bQ, bW, bV, bO, bT, b0, aY, bS, ca, b_, b$, c4, bI, bK, u, be, aR, aS, aV, ao, i, b3, b4, c9, c8, bY } from "./index-DHcVe0Gr.js";
1
+ import { au, av, bo, bp, p, af, ak, B, C, D, a2, g, J, ah, F, w, al, bZ, z, G, H, a0, a1, I, b, f, Z, Y, ag, V, s, a4, a3, x, ac, bJ, ai, _, W, aa, ab, a9, a8, a7, O, ad, aj, h, A, r, R, X, E, t, K, L, T, N, a, ae, S, $, c, a5, a6, Q, P, M, q, bw, bv, aD, an, c1, am, aK, aI, aF, U, bu, aM, aL, c5, aA, bm, bs, aJ, bt, aN, ar, as, aq, at, br, bq, aH, bn, bc, bG, aT, aB, a_, bF, ce, bP, bx, bE, bD, ay, bf, bR, az, c0, c2, d, bM, aG, aW, aw, aX, ax, aP, bC, b9, ba, bb, b6, b8, b7, e, b5, b2, l, c7, aC, aO, bX, bU, c6, bA, ap, cf, cc, cg, bg, cd, bi, a$, bB, b1, aZ, ch, aE, bz, n, bN, by, cb, c3, bH, bL, bd, aQ, aU, bl, bh, bj, bk, bQ, bW, bV, bO, bT, b0, aY, bS, ca, b_, b$, c4, bI, bK, u, be, aR, aS, aV, ao, i, b3, b4, c9, c8, bY } from "./index-CZ9WU3n0.js";
2
2
  export {
3
3
  au as ADDRESS_COUNTRY_CONFIGS,
4
4
  av as ADDRESS_COUNTRY_CONFIG_DEFAULT,