@bagelink/vue 0.0.614 → 0.0.618

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.
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/NavBar.vue"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAmC3D,iBAAS,cAAc;;;QAoRE,GAAG;mBACA,GAAG;EAG9B;AAgBD,QAAA,MAAM,eAAe;kBAML,OAAO,EAAE;YACf,OAAO,EAAE;eACN,aAAa;gBACZ,MAAM;aACT,MAAM;;;;;;;;kBAJD,OAAO,EAAE;YACf,OAAO,EAAE;eACN,aAAa;gBACZ,MAAM;aACT,MAAM;;;;;;;;iBAJD,OAAO,EAAE;WACf,OAAO,EAAE;cACN,aAAa;eACZ,MAAM;YACT,MAAM;MAEf,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI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AA;AAkGzC,iBAAS,MAAM,SAgBd;AA2BD,iBAAS,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;sBArJZ,MAAM;wBACJ,OAAO;mBACZ,MAAM;uBACF,OAAO;;QAwcS,GAAG;;;QACG,GAAG;EAGpC;AA4BD,QAAA,MAAM,eAAe;YAMZ,MAAM;eACH,OAAO;YACV,WAAW,GAAG,WAAW,EAAE;cACzB,MAAM;iBACH,OAAO;YACZ,MAAM;YACN,MAAM;;;;YANN,MAAM;eACH,OAAO;YACV,WAAW,GAAG,WAAW,EAAE;cACzB,MAAM;iBACH,OAAO;YACZ,MAAM;YACN,MAAM;;;UAGb,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -15,7 +15,7 @@ type FormatType = 'image/png' | 'image/jpeg' | 'image/svg+xml';
15
15
  declare function save(format?: FormatType): string | undefined;
16
16
  declare function undo(): void;
17
17
  declare function addWaterMark(data: WaterMark): void;
18
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
18
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
19
  sigOption?: SignaturePadOptions;
20
20
  width?: string;
21
21
  height?: string;
@@ -25,6 +25,9 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimePr
25
25
  disabled?: boolean;
26
26
  defaultUrl?: string;
27
27
  format?: FormatType;
28
+ clearable?: boolean;
29
+ }>, {
30
+ clearable: boolean;
28
31
  }>, {
29
32
  save: typeof save;
30
33
  clear: () => void | undefined;
@@ -32,7 +35,7 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimePr
32
35
  undo: typeof undo;
33
36
  addWaterMark: typeof addWaterMark;
34
37
  fromDataURL: (url: string) => Promise<void> | undefined;
35
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
38
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
36
39
  sigOption?: SignaturePadOptions;
37
40
  width?: string;
38
41
  height?: string;
@@ -42,7 +45,12 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimePr
42
45
  disabled?: boolean;
43
46
  defaultUrl?: string;
44
47
  format?: FormatType;
45
- }>>>, {}, {}>;
48
+ clearable?: boolean;
49
+ }>, {
50
+ clearable: boolean;
51
+ }>>>, {
52
+ clearable: boolean;
53
+ }, {}>;
46
54
  export default _default;
47
55
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
48
56
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -53,4 +61,12 @@ type __VLS_TypePropsToRuntimeProps<T> = {
53
61
  required: true;
54
62
  };
55
63
  };
64
+ type __VLS_WithDefaults<P, D> = {
65
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
66
+ default: D[K];
67
+ }> : P[K];
68
+ };
69
+ type __VLS_Prettify<T> = {
70
+ [K in keyof T]: T[K];
71
+ } & {};
56
72
  //# sourceMappingURL=SignaturePad.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignaturePad.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SignaturePad.vue"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAMnE,UAAU,SAAS;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACb;AAED,KAAK,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,CAAA;AAoB9D,iBAAS,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,sBAGhC;AAKD,iBAAS,IAAI,SAMZ;AAgBD,iBAAS,YAAY,CAAC,IAAI,EAAE,SAAS,QA0BpC;;gBAwIY,mBAAmB;YACvB,MAAM;aACL,MAAM;YACP,MAAM;oBACE,OAAO;gBACX,SAAS;eACV,OAAO;iBACL,MAAM;aACV,UAAU;;;;;;;uBAnMM,MAAM;;gBA2LnB,mBAAmB;YACvB,MAAM;aACL,MAAM;YACP,MAAM;oBACE,OAAO;gBACX,SAAS;eACV,OAAO;iBACL,MAAM;aACV,UAAU;;AAfpB,wBAiBG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,K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B;YACvB,MAAM;aACL,MAAM;YACP,MAAM;oBACE,OAAO;gBACX,SAAS;eACV,OAAO;iBACL,MAAM;aACV,UAAU;gBACP,OAAO;;;;eAAP,OAAO;;AAhBpB,wBAkBG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
package/dist/index.cjs CHANGED
@@ -5540,7 +5540,7 @@ const _export_sfc = (sfc, props2) => {
5540
5540
  }
5541
5541
  return target;
5542
5542
  };
5543
- const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-e59fe705"]]);
5543
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-776cab4a"]]);
5544
5544
  const _hoisted_1$I = {
5545
5545
  key: 0,
5546
5546
  class: "loading"
@@ -17122,7 +17122,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
17122
17122
  };
17123
17123
  }
17124
17124
  });
17125
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-6bc5ed15"]]);
17125
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-1aa7e2a8"]]);
17126
17126
  function toDate(argument) {
17127
17127
  const argStr = Object.prototype.toString.call(argument);
17128
17128
  if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
@@ -28900,7 +28900,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
28900
28900
  }
28901
28901
  });
28902
28902
  const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-681173be"]]);
28903
- const _withScopeId$2 = (n2) => (vue.pushScopeId("data-v-6716fd45"), n2 = n2(), vue.popScopeId(), n2);
28903
+ const _withScopeId$2 = (n2) => (vue.pushScopeId("data-v-e848b48d"), n2 = n2(), vue.popScopeId(), n2);
28904
28904
  const _hoisted_1$j = { class: "bagel-input" };
28905
28905
  const _hoisted_2$e = {
28906
28906
  key: 0,
@@ -29014,9 +29014,8 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
29014
29014
  topic: props2.topic
29015
29015
  });
29016
29016
  storageFiles.value.push(serverFile);
29017
- const i2 = fileQueue.value.indexOf(file);
29018
- fileQueue.value.splice(i2, 1);
29019
29017
  }
29018
+ fileQueue.value.splice(0, fileQueue.value.length);
29020
29019
  updateModelValue();
29021
29020
  }
29022
29021
  function browse() {
@@ -29026,12 +29025,14 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
29026
29025
  input.onchange = (e) => {
29027
29026
  const target = e.target;
29028
29027
  if (target.files) {
29029
- Array.from(target.files).forEach(
29030
- (file) => fileQueue.value.push({ name: file.name, file, progress: 0 })
29031
- );
29028
+ const files = Array.from(target.files);
29029
+ for (const file of files) {
29030
+ fileQueue.value.push({ name: file.name, file, progress: 0 });
29031
+ }
29032
29032
  }
29033
29033
  flushQueue();
29034
29034
  };
29035
+ console.log(fileQueue.value);
29035
29036
  input.click();
29036
29037
  }
29037
29038
  function dragleave(e) {
@@ -29144,7 +29145,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
29144
29145
  };
29145
29146
  }
29146
29147
  });
29147
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-6716fd45"]]);
29148
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-e848b48d"]]);
29148
29149
  const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-06b95183"), n2 = n2(), vue.popScopeId(), n2);
29149
29150
  const _hoisted_1$i = ["title"];
29150
29151
  const _hoisted_2$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
@@ -31228,11 +31229,11 @@ function checkAttrs(attrs, values3, type3, name) {
31228
31229
  attr.validate(values3[name2]);
31229
31230
  }
31230
31231
  }
31231
- function initAttrs(attrs) {
31232
+ function initAttrs(typeName, attrs) {
31232
31233
  let result2 = /* @__PURE__ */ Object.create(null);
31233
31234
  if (attrs)
31234
31235
  for (let name in attrs)
31235
- result2[name] = new Attribute(attrs[name]);
31236
+ result2[name] = new Attribute(typeName, name, attrs[name]);
31236
31237
  return result2;
31237
31238
  }
31238
31239
  let NodeType$1 = class NodeType2 {
@@ -31245,7 +31246,7 @@ let NodeType$1 = class NodeType2 {
31245
31246
  this.spec = spec;
31246
31247
  this.markSet = null;
31247
31248
  this.groups = spec.group ? spec.group.split(" ") : [];
31248
- this.attrs = initAttrs(spec.attrs);
31249
+ this.attrs = initAttrs(name, spec.attrs);
31249
31250
  this.defaultAttrs = defaultAttrs(this.attrs);
31250
31251
  this.contentMatch = null;
31251
31252
  this.inlineContent = null;
@@ -31433,19 +31434,19 @@ let NodeType$1 = class NodeType2 {
31433
31434
  return result2;
31434
31435
  }
31435
31436
  };
31436
- function validateType(type3) {
31437
+ function validateType(typeName, attrName, type3) {
31437
31438
  let types = type3.split("|");
31438
31439
  return (value) => {
31439
31440
  let name = value === null ? "null" : typeof value;
31440
31441
  if (types.indexOf(name) < 0)
31441
- throw new RangeError(`Expected value of type ${types}, got ${name}`);
31442
+ throw new RangeError(`Expected value of type ${types} for attribute ${attrName} on type ${typeName}, got ${name}`);
31442
31443
  };
31443
31444
  }
31444
31445
  class Attribute {
31445
- constructor(options) {
31446
+ constructor(typeName, attrName, options) {
31446
31447
  this.hasDefault = Object.prototype.hasOwnProperty.call(options, "default");
31447
31448
  this.default = options.default;
31448
- this.validate = typeof options.validate == "string" ? validateType(options.validate) : options.validate;
31449
+ this.validate = typeof options.validate == "string" ? validateType(typeName, attrName, options.validate) : options.validate;
31449
31450
  }
31450
31451
  get isRequired() {
31451
31452
  return !this.hasDefault;
@@ -31460,7 +31461,7 @@ class MarkType {
31460
31461
  this.rank = rank;
31461
31462
  this.schema = schema;
31462
31463
  this.spec = spec;
31463
- this.attrs = initAttrs(spec.attrs);
31464
+ this.attrs = initAttrs(name, spec.attrs);
31464
31465
  this.excluded = null;
31465
31466
  let defaults2 = defaultAttrs(this.attrs);
31466
31467
  this.instance = defaults2 ? new Mark$1(this, defaults2) : null;
@@ -32424,13 +32425,8 @@ class DOMSerializer {
32424
32425
  let toDOM = this.marks[mark.type.name];
32425
32426
  return toDOM && renderSpec(doc$1(options), toDOM(mark, inline), null, mark.attrs);
32426
32427
  }
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);
32428
+ static renderSpec(doc2, structure, xmlNS = null, blockArraysIn) {
32429
+ return renderSpec(doc2, structure, xmlNS, blockArraysIn);
32434
32430
  }
32435
32431
  /**
32436
32432
  Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
@@ -36293,7 +36289,7 @@ class MarkViewDesc extends ViewDesc {
36293
36289
  let custom2 = view.nodeViews[mark.type.name];
36294
36290
  let spec = custom2 && custom2(mark, view, inline);
36295
36291
  if (!spec || !spec.dom)
36296
- spec = DOMSerializer.renderSpec(document, mark.type.spec.toDOM(mark, inline));
36292
+ spec = DOMSerializer.renderSpec(document, mark.type.spec.toDOM(mark, inline), null, mark.attrs);
36297
36293
  return new MarkViewDesc(parent, mark, spec.dom, spec.contentDOM || spec.dom);
36298
36294
  }
36299
36295
  parseRule() {
@@ -36360,7 +36356,8 @@ class NodeViewDesc extends ViewDesc {
36360
36356
  else if (dom.nodeType != 3)
36361
36357
  throw new RangeError("Text must be rendered as a DOM text node");
36362
36358
  } else if (!dom) {
36363
- ({ dom, contentDOM } = DOMSerializer.renderSpec(document, node.type.spec.toDOM(node)));
36359
+ let spec2 = DOMSerializer.renderSpec(document, node.type.spec.toDOM(node), null, node.attrs);
36360
+ ({ dom, contentDOM } = spec2);
36364
36361
  }
36365
36362
  if (!contentDOM && !node.isText && dom.nodeName != "BR") {
36366
36363
  if (!dom.hasAttribute("contenteditable"))
@@ -38457,7 +38454,8 @@ handlers.dragstart = (view, _event) => {
38457
38454
  }
38458
38455
  let draggedSlice = (node || view.state.selection).content();
38459
38456
  let { dom, text, slice: slice4 } = serializeForClipboard(view, draggedSlice);
38460
- event.dataTransfer.clearData();
38457
+ if (!event.dataTransfer.files.length || !chrome || chrome_version > 120)
38458
+ event.dataTransfer.clearData();
38461
38459
  event.dataTransfer.setData(brokenClipboardAPI ? "Text" : "text/html", dom.innerHTML);
38462
38460
  event.dataTransfer.effectAllowed = "copyMove";
38463
38461
  if (!brokenClipboardAPI)
@@ -43138,7 +43136,7 @@ function isList(name, extensions) {
43138
43136
  return group.split(" ").includes("list");
43139
43137
  }
43140
43138
  function isNodeEmpty(node) {
43141
- const defaultContent = node.type.createAndFill();
43139
+ const defaultContent = node.type.createAndFill(node.attrs);
43142
43140
  if (!defaultContent) {
43143
43141
  return false;
43144
43142
  }
@@ -43315,29 +43313,29 @@ const splitBlock = ({ keepMarks = true } = {}) => ({ tr: tr2, state: state2, dis
43315
43313
  if (!$from.parent.isBlock) {
43316
43314
  return false;
43317
43315
  }
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 ? [
43316
+ const atEnd = $to.parentOffset === $to.parent.content.size;
43317
+ const deflt = $from.depth === 0 ? void 0 : defaultBlockAt($from.node(-1).contentMatchAt($from.indexAfter(-1)));
43318
+ let types = atEnd && deflt ? [
43319
+ {
43320
+ type: deflt,
43321
+ attrs: newAttributes
43322
+ }
43323
+ ] : void 0;
43324
+ let can = canSplit(tr2.doc, tr2.mapping.map($from.pos), 1, types);
43325
+ if (!types && !can && canSplit(tr2.doc, tr2.mapping.map($from.pos), 1, deflt ? [{ type: deflt }] : void 0)) {
43326
+ can = true;
43327
+ types = deflt ? [
43325
43328
  {
43326
43329
  type: deflt,
43327
43330
  attrs: newAttributes
43328
43331
  }
43329
43332
  ] : 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
- }
43333
+ }
43334
+ if (dispatch) {
43340
43335
  if (can) {
43336
+ if (selection instanceof TextSelection) {
43337
+ tr2.deleteSelection();
43338
+ }
43341
43339
  tr2.split(tr2.mapping.map($from.pos), 1, types);
43342
43340
  if (deflt && !atEnd && !$from.parentOffset && $from.parent.type !== deflt) {
43343
43341
  const first2 = tr2.mapping.map($from.before());
@@ -43352,7 +43350,7 @@ const splitBlock = ({ keepMarks = true } = {}) => ({ tr: tr2, state: state2, dis
43352
43350
  }
43353
43351
  tr2.scrollIntoView();
43354
43352
  }
43355
- return true;
43353
+ return can;
43356
43354
  };
43357
43355
  const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, editor }) => {
43358
43356
  var _a2;
@@ -44356,6 +44354,9 @@ let Editor$1 = class Editor2 extends EventEmitter {
44356
44354
  * Creates all node views.
44357
44355
  */
44358
44356
  createNodeViews() {
44357
+ if (this.view.isDestroyed) {
44358
+ return;
44359
+ }
44359
44360
  this.view.setProps({
44360
44361
  nodeViews: this.extensionManager.nodeViews
44361
44362
  });
@@ -45248,7 +45249,10 @@ const CodeBlock = Node$2.create({
45248
45249
  }
45249
45250
  const nodeAfter = doc2.nodeAt(after);
45250
45251
  if (nodeAfter) {
45251
- return false;
45252
+ return editor.commands.command(({ tr: tr2 }) => {
45253
+ tr2.setSelection(Selection$1.near(doc2.resolve(after)));
45254
+ return true;
45255
+ });
45252
45256
  }
45253
45257
  return editor.commands.exitCode();
45254
45258
  }
@@ -51705,7 +51709,14 @@ function columnResizing({
51705
51709
  key: columnResizingPluginKey,
51706
51710
  state: {
51707
51711
  init(_2, state2) {
51708
- plugin.spec.props.nodeViews[tableNodeTypes(state2.schema).table.name] = (node, view) => new View(node, cellMinWidth, view);
51712
+ var _a2, _b;
51713
+ const nodeViews = (_b = (_a2 = plugin.spec) == null ? void 0 : _a2.props) == null ? void 0 : _b.nodeViews;
51714
+ const tableName = tableNodeTypes(state2.schema).table.name;
51715
+ if (View && nodeViews) {
51716
+ nodeViews[tableName] = (node, view) => {
51717
+ return new View(node, cellMinWidth, view);
51718
+ };
51719
+ }
51709
51720
  return new ResizeState(-1, false);
51710
51721
  },
51711
51722
  apply(tr2, prev) {
@@ -51945,10 +51956,10 @@ function handleDecorations(state2, cell) {
51945
51956
  }
51946
51957
  const map4 = TableMap.get(table);
51947
51958
  const start2 = $cell.start(-1);
51948
- const col = map4.colCount($cell.pos - start2) + $cell.nodeAfter.attrs.colspan;
51959
+ const col = map4.colCount($cell.pos - start2) + $cell.nodeAfter.attrs.colspan - 1;
51949
51960
  for (let row = 0; row < map4.height; row++) {
51950
- const index2 = col + row * map4.width - 1;
51951
- if ((col == map4.width || map4.map[index2] != map4.map[index2 + 1]) && (row == 0 || map4.map[index2] != map4.map[index2 - map4.width])) {
51961
+ const index2 = col + row * map4.width;
51962
+ if ((col == map4.width - 1 || map4.map[index2] != map4.map[index2 + 1]) && (row == 0 || map4.map[index2] != map4.map[index2 - map4.width])) {
51952
51963
  const cellPos = map4.map[index2];
51953
51964
  const pos = start2 + cellPos + table.nodeAt(cellPos).nodeSize - 1;
51954
51965
  const dom = document.createElement("div");
@@ -52726,7 +52737,7 @@ const Table = Node$2.create({
52726
52737
  const table = [
52727
52738
  "table",
52728
52739
  mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, {
52729
- style: tableWidth ? `width: ${tableWidth}` : `minWidth: ${tableMinWidth}`
52740
+ style: tableWidth ? `width: ${tableWidth}` : `min-width: ${tableMinWidth}`
52730
52741
  }),
52731
52742
  colgroup,
52732
52743
  ["tbody", 0]
@@ -56244,7 +56255,8 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
56244
56255
  waterMark: {},
56245
56256
  disabled: { type: Boolean },
56246
56257
  defaultUrl: {},
56247
- format: {}
56258
+ format: {},
56259
+ clearable: { type: Boolean, default: true }
56248
56260
  },
56249
56261
  setup(__props, { expose: __expose }) {
56250
56262
  const props2 = __props;
@@ -56346,11 +56358,11 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
56346
56358
  });
56347
56359
  return (_ctx, _cache) => {
56348
56360
  return vue.openBlock(), vue.createElementBlock("div", {
56349
- class: "bgl_input signature-pad relative",
56361
+ class: vue.normalizeClass(["bgl_input signature-pad relative", { "bg-transparent": _ctx.disabled }]),
56350
56362
  onTouchmove: _cache[0] || (_cache[0] = vue.withModifiers(() => {
56351
56363
  }, ["prevent"]))
56352
56364
  }, [
56353
- !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
56365
+ _ctx.clearable && !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
56354
56366
  key: 0,
56355
56367
  flat: "",
56356
56368
  thin: "",
@@ -56364,7 +56376,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
56364
56376
  class: "canvas",
56365
56377
  disabled: _ctx.disabled
56366
56378
  }, null, 8, _hoisted_1$f)
56367
- ], 32);
56379
+ ], 34);
56368
56380
  };
56369
56381
  }
56370
56382
  });