@bagelink/vue 0.0.612 → 0.0.616

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 (32) hide show
  1. package/dist/components/Drop.vue.d.ts +34 -0
  2. package/dist/components/Drop.vue.d.ts.map +1 -0
  3. package/dist/components/FileUploader.vue.d.ts +60 -0
  4. package/dist/components/FileUploader.vue.d.ts.map +1 -0
  5. package/dist/components/NavBar.vue.d.ts.map +1 -1
  6. package/dist/components/form/ItemRef.vue.d.ts +1 -0
  7. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  8. package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
  9. package/dist/components/form/inputs/FileUpload.vue.d.ts +11 -11
  10. package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
  11. package/dist/components/form/inputs/SelectField.vue.d.ts +1 -4
  12. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  13. package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
  14. package/dist/components/form/inputs/ToggleInput.vue.d.ts.map +1 -1
  15. package/dist/index.cjs +98 -86
  16. package/dist/index.mjs +98 -86
  17. package/dist/style.css +189 -171
  18. package/package.json +12 -12
  19. package/src/components/DataPreview.vue +4 -1
  20. package/src/components/NavBar.vue +6 -0
  21. package/src/components/form/inputs/CheckInput.vue +5 -0
  22. package/src/components/form/inputs/Checkbox.vue +19 -24
  23. package/src/components/form/inputs/DatePicker.vue +3 -0
  24. package/src/components/form/inputs/FileUpload.vue +6 -4
  25. package/src/components/form/inputs/SignaturePad.vue +4 -2
  26. package/src/components/form/inputs/TextInput.vue +1 -1
  27. package/src/components/form/inputs/ToggleInput.vue +50 -66
  28. package/src/styles/inputs.css +12 -3
  29. package/dist/components/Popover.vue.d.ts +0 -10
  30. package/dist/components/Popover.vue.d.ts.map +0 -1
  31. package/dist/types/materialIcon.d.ts +0 -2
  32. package/dist/types/materialIcon.d.ts.map +0 -1
package/dist/index.mjs CHANGED
@@ -5538,7 +5538,7 @@ const _export_sfc = (sfc, props2) => {
5538
5538
  }
5539
5539
  return target;
5540
5540
  };
5541
- const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-e59fe705"]]);
5541
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-776cab4a"]]);
5542
5542
  const _hoisted_1$I = {
5543
5543
  key: 0,
5544
5544
  class: "loading"
@@ -6727,7 +6727,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
6727
6727
  };
6728
6728
  }
6729
6729
  });
6730
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-0ffde6c7"]]);
6730
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-d3655508"]]);
6731
6731
  const _hoisted_1$z = {
6732
6732
  key: 0,
6733
6733
  class: "card_label"
@@ -17120,7 +17120,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17120
17120
  };
17121
17121
  }
17122
17122
  });
17123
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-e8fcfd5e"]]);
17123
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-1aa7e2a8"]]);
17124
17124
  function toDate(argument) {
17125
17125
  const argStr = Object.prototype.toString.call(argument);
17126
17126
  if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
@@ -28634,10 +28634,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
28634
28634
  placeholder: _ctx.placeholder || _ctx.label,
28635
28635
  disabled: _ctx.disabled,
28636
28636
  required: _ctx.required,
28637
- pattern: _ctx.pattern,
28637
+ pattern: _ctx.pattern
28638
+ }, _ctx.nativeInputAttrs, {
28638
28639
  onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
28639
- (...args) => _ctx.onFocusout && _ctx.onFocusout(...args))
28640
- }, _ctx.nativeInputAttrs, { onInput: updateInputVal }), null, 16, _hoisted_3$d)), [
28640
+ (...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
28641
+ onInput: updateInputVal
28642
+ }), null, 16, _hoisted_3$d)), [
28641
28643
  [vModelDynamic, unref(inputVal)]
28642
28644
  ]) : withDirectives((openBlock(), createElementBlock("textarea", mergeProps({
28643
28645
  key: 1,
@@ -28670,7 +28672,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
28670
28672
  };
28671
28673
  }
28672
28674
  });
28673
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-8e712ba3"]]);
28675
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-5e9a753f"]]);
28674
28676
  const _hoisted_1$n = { class: "primary-checkbox" };
28675
28677
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
28676
28678
  __name: "Checkbox",
@@ -28691,15 +28693,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
28691
28693
  type: "checkbox"
28692
28694
  }, null, 512), [
28693
28695
  [vModelCheckbox, val.value]
28694
- ]),
28695
- createElementVNode("span", null, [
28696
- createVNode(unref(_sfc_main$O), { icon: "check" })
28697
28696
  ])
28698
28697
  ]);
28699
28698
  };
28700
28699
  }
28701
28700
  });
28702
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-2f03e6ec"]]);
28701
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-0878583e"]]);
28703
28702
  const _hoisted_1$m = ["title"];
28704
28703
  const _hoisted_2$h = ["id", "placeholder", "required"];
28705
28704
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
@@ -28899,7 +28898,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
28899
28898
  }
28900
28899
  });
28901
28900
  const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-681173be"]]);
28902
- const _withScopeId$2 = (n2) => (pushScopeId("data-v-6716fd45"), n2 = n2(), popScopeId(), n2);
28901
+ const _withScopeId$2 = (n2) => (pushScopeId("data-v-e848b48d"), n2 = n2(), popScopeId(), n2);
28903
28902
  const _hoisted_1$j = { class: "bagel-input" };
28904
28903
  const _hoisted_2$e = {
28905
28904
  key: 0,
@@ -29013,9 +29012,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
29013
29012
  topic: props2.topic
29014
29013
  });
29015
29014
  storageFiles.value.push(serverFile);
29016
- const i2 = fileQueue.value.indexOf(file);
29017
- fileQueue.value.splice(i2, 1);
29018
29015
  }
29016
+ fileQueue.value.splice(0, fileQueue.value.length);
29019
29017
  updateModelValue();
29020
29018
  }
29021
29019
  function browse() {
@@ -29025,12 +29023,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
29025
29023
  input.onchange = (e) => {
29026
29024
  const target = e.target;
29027
29025
  if (target.files) {
29028
- Array.from(target.files).forEach(
29029
- (file) => fileQueue.value.push({ name: file.name, file, progress: 0 })
29030
- );
29026
+ const files = Array.from(target.files);
29027
+ for (const file of files) {
29028
+ fileQueue.value.push({ name: file.name, file, progress: 0 });
29029
+ }
29031
29030
  }
29032
29031
  flushQueue();
29033
29032
  };
29033
+ console.log(fileQueue.value);
29034
29034
  input.click();
29035
29035
  }
29036
29036
  function dragleave(e) {
@@ -29143,8 +29143,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
29143
29143
  };
29144
29144
  }
29145
29145
  });
29146
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-6716fd45"]]);
29147
- const _withScopeId$1 = (n2) => (pushScopeId("data-v-dbc06a4f"), n2 = n2(), popScopeId(), n2);
29146
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-e848b48d"]]);
29147
+ const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
29148
29148
  const _hoisted_1$i = ["title"];
29149
29149
  const _hoisted_2$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
29150
29150
  const _hoisted_3$9 = [
@@ -29175,9 +29175,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
29175
29175
  });
29176
29176
  return (_ctx, _cache) => {
29177
29177
  return openBlock(), createElementBlock("div", {
29178
- class: normalizeClass(["bagel-input bgl-checkbox gap-1 align-items-center", { small: _ctx.small }]),
29179
- title: _ctx.title,
29180
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => checked.value = !checked.value, ["prevent"]))
29178
+ class: normalizeClass(["bagel-input bgl-toggle", { small: _ctx.small }]),
29179
+ title: _ctx.title
29181
29180
  }, [
29182
29181
  createElementVNode("div", {
29183
29182
  class: normalizeClass(["switch", { checked: checked.value }])
@@ -29199,7 +29198,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
29199
29198
  };
29200
29199
  }
29201
29200
  });
29202
- const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dbc06a4f"]]);
29201
+ const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-06b95183"]]);
29203
29202
  function OrderedMap(content) {
29204
29203
  this.content = content;
29205
29204
  }
@@ -31228,11 +31227,11 @@ function checkAttrs(attrs, values3, type3, name) {
31228
31227
  attr.validate(values3[name2]);
31229
31228
  }
31230
31229
  }
31231
- function initAttrs(attrs) {
31230
+ function initAttrs(typeName, attrs) {
31232
31231
  let result2 = /* @__PURE__ */ Object.create(null);
31233
31232
  if (attrs)
31234
31233
  for (let name in attrs)
31235
- result2[name] = new Attribute(attrs[name]);
31234
+ result2[name] = new Attribute(typeName, name, attrs[name]);
31236
31235
  return result2;
31237
31236
  }
31238
31237
  let NodeType$1 = class NodeType2 {
@@ -31245,7 +31244,7 @@ let NodeType$1 = class NodeType2 {
31245
31244
  this.spec = spec;
31246
31245
  this.markSet = null;
31247
31246
  this.groups = spec.group ? spec.group.split(" ") : [];
31248
- this.attrs = initAttrs(spec.attrs);
31247
+ this.attrs = initAttrs(name, spec.attrs);
31249
31248
  this.defaultAttrs = defaultAttrs(this.attrs);
31250
31249
  this.contentMatch = null;
31251
31250
  this.inlineContent = null;
@@ -31433,19 +31432,19 @@ let NodeType$1 = class NodeType2 {
31433
31432
  return result2;
31434
31433
  }
31435
31434
  };
31436
- function validateType(type3) {
31435
+ function validateType(typeName, attrName, type3) {
31437
31436
  let types = type3.split("|");
31438
31437
  return (value) => {
31439
31438
  let name = value === null ? "null" : typeof value;
31440
31439
  if (types.indexOf(name) < 0)
31441
- throw new RangeError(`Expected value of type ${types}, got ${name}`);
31440
+ throw new RangeError(`Expected value of type ${types} for attribute ${attrName} on type ${typeName}, got ${name}`);
31442
31441
  };
31443
31442
  }
31444
31443
  class Attribute {
31445
- constructor(options) {
31444
+ constructor(typeName, attrName, options) {
31446
31445
  this.hasDefault = Object.prototype.hasOwnProperty.call(options, "default");
31447
31446
  this.default = options.default;
31448
- this.validate = typeof options.validate == "string" ? validateType(options.validate) : options.validate;
31447
+ this.validate = typeof options.validate == "string" ? validateType(typeName, attrName, options.validate) : options.validate;
31449
31448
  }
31450
31449
  get isRequired() {
31451
31450
  return !this.hasDefault;
@@ -31460,7 +31459,7 @@ class MarkType {
31460
31459
  this.rank = rank;
31461
31460
  this.schema = schema;
31462
31461
  this.spec = spec;
31463
- this.attrs = initAttrs(spec.attrs);
31462
+ this.attrs = initAttrs(name, spec.attrs);
31464
31463
  this.excluded = null;
31465
31464
  let defaults2 = defaultAttrs(this.attrs);
31466
31465
  this.instance = defaults2 ? new Mark$1(this, defaults2) : null;
@@ -32424,13 +32423,8 @@ class DOMSerializer {
32424
32423
  let toDOM = this.marks[mark.type.name];
32425
32424
  return toDOM && renderSpec(doc$1(options), toDOM(mark, inline), null, mark.attrs);
32426
32425
  }
32427
- /**
32428
- Render an [output spec](https://prosemirror.net/docs/ref/#model.DOMOutputSpec) to a DOM node. If
32429
- the spec has a hole (zero) in it, `contentDOM` will point at the
32430
- node with the hole.
32431
- */
32432
- static renderSpec(doc2, structure, xmlNS = null) {
32433
- return renderSpec(doc2, structure, xmlNS);
32426
+ static renderSpec(doc2, structure, xmlNS = null, blockArraysIn) {
32427
+ return renderSpec(doc2, structure, xmlNS, blockArraysIn);
32434
32428
  }
32435
32429
  /**
32436
32430
  Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
@@ -36293,7 +36287,7 @@ class MarkViewDesc extends ViewDesc {
36293
36287
  let custom2 = view.nodeViews[mark.type.name];
36294
36288
  let spec = custom2 && custom2(mark, view, inline);
36295
36289
  if (!spec || !spec.dom)
36296
- spec = DOMSerializer.renderSpec(document, mark.type.spec.toDOM(mark, inline));
36290
+ spec = DOMSerializer.renderSpec(document, mark.type.spec.toDOM(mark, inline), null, mark.attrs);
36297
36291
  return new MarkViewDesc(parent, mark, spec.dom, spec.contentDOM || spec.dom);
36298
36292
  }
36299
36293
  parseRule() {
@@ -36360,7 +36354,8 @@ class NodeViewDesc extends ViewDesc {
36360
36354
  else if (dom.nodeType != 3)
36361
36355
  throw new RangeError("Text must be rendered as a DOM text node");
36362
36356
  } else if (!dom) {
36363
- ({ dom, contentDOM } = DOMSerializer.renderSpec(document, node.type.spec.toDOM(node)));
36357
+ let spec2 = DOMSerializer.renderSpec(document, node.type.spec.toDOM(node), null, node.attrs);
36358
+ ({ dom, contentDOM } = spec2);
36364
36359
  }
36365
36360
  if (!contentDOM && !node.isText && dom.nodeName != "BR") {
36366
36361
  if (!dom.hasAttribute("contenteditable"))
@@ -38457,7 +38452,8 @@ handlers.dragstart = (view, _event) => {
38457
38452
  }
38458
38453
  let draggedSlice = (node || view.state.selection).content();
38459
38454
  let { dom, text, slice: slice4 } = serializeForClipboard(view, draggedSlice);
38460
- event.dataTransfer.clearData();
38455
+ if (!event.dataTransfer.files.length || !chrome || chrome_version > 120)
38456
+ event.dataTransfer.clearData();
38461
38457
  event.dataTransfer.setData(brokenClipboardAPI ? "Text" : "text/html", dom.innerHTML);
38462
38458
  event.dataTransfer.effectAllowed = "copyMove";
38463
38459
  if (!brokenClipboardAPI)
@@ -41488,7 +41484,7 @@ const getTextContentFromNodes = ($from, maxMatch = 500) => {
41488
41484
  parent,
41489
41485
  index: index2
41490
41486
  })) || node.textContent || "%leaf%";
41491
- textBefore += chunk.slice(0, Math.max(0, sliceEndPos - pos));
41487
+ textBefore += node.isAtom ? chunk : chunk.slice(0, Math.max(0, sliceEndPos - pos));
41492
41488
  });
41493
41489
  return textBefore;
41494
41490
  };
@@ -43138,7 +43134,7 @@ function isList(name, extensions) {
43138
43134
  return group.split(" ").includes("list");
43139
43135
  }
43140
43136
  function isNodeEmpty(node) {
43141
- const defaultContent = node.type.createAndFill();
43137
+ const defaultContent = node.type.createAndFill(node.attrs);
43142
43138
  if (!defaultContent) {
43143
43139
  return false;
43144
43140
  }
@@ -43315,29 +43311,29 @@ const splitBlock = ({ keepMarks = true } = {}) => ({ tr: tr2, state: state2, dis
43315
43311
  if (!$from.parent.isBlock) {
43316
43312
  return false;
43317
43313
  }
43318
- if (dispatch) {
43319
- const atEnd = $to.parentOffset === $to.parent.content.size;
43320
- if (selection instanceof TextSelection) {
43321
- tr2.deleteSelection();
43322
- }
43323
- const deflt = $from.depth === 0 ? void 0 : defaultBlockAt($from.node(-1).contentMatchAt($from.indexAfter(-1)));
43324
- let types = atEnd && deflt ? [
43314
+ const atEnd = $to.parentOffset === $to.parent.content.size;
43315
+ const deflt = $from.depth === 0 ? void 0 : defaultBlockAt($from.node(-1).contentMatchAt($from.indexAfter(-1)));
43316
+ let types = atEnd && deflt ? [
43317
+ {
43318
+ type: deflt,
43319
+ attrs: newAttributes
43320
+ }
43321
+ ] : void 0;
43322
+ let can = canSplit(tr2.doc, tr2.mapping.map($from.pos), 1, types);
43323
+ if (!types && !can && canSplit(tr2.doc, tr2.mapping.map($from.pos), 1, deflt ? [{ type: deflt }] : void 0)) {
43324
+ can = true;
43325
+ types = deflt ? [
43325
43326
  {
43326
43327
  type: deflt,
43327
43328
  attrs: newAttributes
43328
43329
  }
43329
43330
  ] : void 0;
43330
- let can = canSplit(tr2.doc, tr2.mapping.map($from.pos), 1, types);
43331
- if (!types && !can && canSplit(tr2.doc, tr2.mapping.map($from.pos), 1, deflt ? [{ type: deflt }] : void 0)) {
43332
- can = true;
43333
- types = deflt ? [
43334
- {
43335
- type: deflt,
43336
- attrs: newAttributes
43337
- }
43338
- ] : void 0;
43339
- }
43331
+ }
43332
+ if (dispatch) {
43340
43333
  if (can) {
43334
+ if (selection instanceof TextSelection) {
43335
+ tr2.deleteSelection();
43336
+ }
43341
43337
  tr2.split(tr2.mapping.map($from.pos), 1, types);
43342
43338
  if (deflt && !atEnd && !$from.parentOffset && $from.parent.type !== deflt) {
43343
43339
  const first2 = tr2.mapping.map($from.before());
@@ -43352,7 +43348,7 @@ const splitBlock = ({ keepMarks = true } = {}) => ({ tr: tr2, state: state2, dis
43352
43348
  }
43353
43349
  tr2.scrollIntoView();
43354
43350
  }
43355
- return true;
43351
+ return can;
43356
43352
  };
43357
43353
  const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, editor }) => {
43358
43354
  var _a2;
@@ -44356,6 +44352,9 @@ let Editor$1 = class Editor2 extends EventEmitter {
44356
44352
  * Creates all node views.
44357
44353
  */
44358
44354
  createNodeViews() {
44355
+ if (this.view.isDestroyed) {
44356
+ return;
44357
+ }
44359
44358
  this.view.setProps({
44360
44359
  nodeViews: this.extensionManager.nodeViews
44361
44360
  });
@@ -44396,6 +44395,11 @@ let Editor$1 = class Editor2 extends EventEmitter {
44396
44395
  }
44397
44396
  const state2 = this.state.apply(transaction);
44398
44397
  const selectionHasChanged = !this.state.selection.eq(state2.selection);
44398
+ this.emit("beforeTransaction", {
44399
+ editor: this,
44400
+ transaction,
44401
+ nextState: state2
44402
+ });
44399
44403
  this.view.updateState(state2);
44400
44404
  this.emit("transaction", {
44401
44405
  editor: this,
@@ -45243,7 +45247,10 @@ const CodeBlock = Node$2.create({
45243
45247
  }
45244
45248
  const nodeAfter = doc2.nodeAt(after);
45245
45249
  if (nodeAfter) {
45246
- return false;
45250
+ return editor.commands.command(({ tr: tr2 }) => {
45251
+ tr2.setSelection(Selection$1.near(doc2.resolve(after)));
45252
+ return true;
45253
+ });
45247
45254
  }
45248
45255
  return editor.commands.exitCode();
45249
45256
  }
@@ -49857,12 +49864,12 @@ function useDebouncedRef(value) {
49857
49864
  class Editor extends Editor$1 {
49858
49865
  constructor(options = {}) {
49859
49866
  super(options);
49860
- this.vueRenderers = reactive(/* @__PURE__ */ new Map());
49861
49867
  this.contentComponent = null;
49868
+ this.appContext = null;
49862
49869
  this.reactiveState = useDebouncedRef(this.view.state);
49863
49870
  this.reactiveExtensionStorage = useDebouncedRef(this.extensionStorage);
49864
- this.on("transaction", () => {
49865
- this.reactiveState.value = this.view.state;
49871
+ this.on("beforeTransaction", ({ nextState }) => {
49872
+ this.reactiveState.value = nextState;
49866
49873
  this.reactiveExtensionStorage.value = this.extensionStorage;
49867
49874
  });
49868
49875
  return markRaw(this);
@@ -49909,6 +49916,16 @@ const EditorContent = defineComponent({
49909
49916
  const element = unref(rootEl2.value);
49910
49917
  rootEl2.value.append(...editor.options.element.childNodes);
49911
49918
  editor.contentComponent = instance.ctx._;
49919
+ if (instance) {
49920
+ editor.appContext = {
49921
+ ...instance.appContext,
49922
+ provides: {
49923
+ // @ts-ignore
49924
+ ...instance.provides,
49925
+ ...instance.appContext.provides
49926
+ }
49927
+ };
49928
+ }
49912
49929
  editor.setOptions({
49913
49930
  element
49914
49931
  });
@@ -49927,6 +49944,7 @@ const EditorContent = defineComponent({
49927
49944
  });
49928
49945
  }
49929
49946
  editor.contentComponent = null;
49947
+ editor.appContext = null;
49930
49948
  if (!editor.options.element.firstChild) {
49931
49949
  return;
49932
49950
  }
@@ -49939,24 +49957,11 @@ const EditorContent = defineComponent({
49939
49957
  return { rootEl: rootEl2 };
49940
49958
  },
49941
49959
  render() {
49942
- const vueRenderers = [];
49943
- if (this.editor) {
49944
- this.editor.vueRenderers.forEach((vueRenderer) => {
49945
- const node = h$2(Teleport, {
49946
- to: vueRenderer.teleportElement,
49947
- key: vueRenderer.id
49948
- }, h$2(vueRenderer.component, {
49949
- ref: vueRenderer.id,
49950
- ...vueRenderer.props
49951
- }));
49952
- vueRenderers.push(node);
49953
- });
49954
- }
49955
49960
  return h$2("div", {
49956
49961
  ref: (el) => {
49957
49962
  this.rootEl = el;
49958
49963
  }
49959
- }, ...vueRenderers);
49964
+ });
49960
49965
  }
49961
49966
  });
49962
49967
  defineComponent({
@@ -51702,7 +51707,14 @@ function columnResizing({
51702
51707
  key: columnResizingPluginKey,
51703
51708
  state: {
51704
51709
  init(_2, state2) {
51705
- plugin.spec.props.nodeViews[tableNodeTypes(state2.schema).table.name] = (node, view) => new View(node, cellMinWidth, view);
51710
+ var _a2, _b;
51711
+ const nodeViews = (_b = (_a2 = plugin.spec) == null ? void 0 : _a2.props) == null ? void 0 : _b.nodeViews;
51712
+ const tableName = tableNodeTypes(state2.schema).table.name;
51713
+ if (View && nodeViews) {
51714
+ nodeViews[tableName] = (node, view) => {
51715
+ return new View(node, cellMinWidth, view);
51716
+ };
51717
+ }
51706
51718
  return new ResizeState(-1, false);
51707
51719
  },
51708
51720
  apply(tr2, prev) {
@@ -51942,10 +51954,10 @@ function handleDecorations(state2, cell) {
51942
51954
  }
51943
51955
  const map4 = TableMap.get(table);
51944
51956
  const start2 = $cell.start(-1);
51945
- const col = map4.colCount($cell.pos - start2) + $cell.nodeAfter.attrs.colspan;
51957
+ const col = map4.colCount($cell.pos - start2) + $cell.nodeAfter.attrs.colspan - 1;
51946
51958
  for (let row = 0; row < map4.height; row++) {
51947
- const index2 = col + row * map4.width - 1;
51948
- if ((col == map4.width || map4.map[index2] != map4.map[index2 + 1]) && (row == 0 || map4.map[index2] != map4.map[index2 - map4.width])) {
51959
+ const index2 = col + row * map4.width;
51960
+ if ((col == map4.width - 1 || map4.map[index2] != map4.map[index2 + 1]) && (row == 0 || map4.map[index2] != map4.map[index2 - map4.width])) {
51949
51961
  const cellPos = map4.map[index2];
51950
51962
  const pos = start2 + cellPos + table.nodeAt(cellPos).nodeSize - 1;
51951
51963
  const dom = document.createElement("div");
@@ -52723,7 +52735,7 @@ const Table = Node$2.create({
52723
52735
  const table = [
52724
52736
  "table",
52725
52737
  mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, {
52726
- style: tableWidth ? `width: ${tableWidth}` : `minWidth: ${tableMinWidth}`
52738
+ style: tableWidth ? `width: ${tableWidth}` : `min-width: ${tableMinWidth}`
52727
52739
  }),
52728
52740
  colgroup,
52729
52741
  ["tbody", 0]
@@ -56343,7 +56355,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
56343
56355
  });
56344
56356
  return (_ctx, _cache) => {
56345
56357
  return openBlock(), createElementBlock("div", {
56346
- class: "bgl_input signature-pad relative",
56358
+ class: normalizeClass(["bgl_input signature-pad relative", { "bg-transparent": _ctx.disabled }]),
56347
56359
  onTouchmove: _cache[0] || (_cache[0] = withModifiers(() => {
56348
56360
  }, ["prevent"]))
56349
56361
  }, [
@@ -56361,7 +56373,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
56361
56373
  class: "canvas",
56362
56374
  disabled: _ctx.disabled
56363
56375
  }, null, 8, _hoisted_1$f)
56364
- ], 32);
56376
+ ], 34);
56365
56377
  };
56366
56378
  }
56367
56379
  });