@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.
- package/dist/components/NavBar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SignaturePad.vue.d.ts +19 -3
- package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
- package/dist/index.cjs +68 -56
- package/dist/index.mjs +68 -56
- package/dist/style.css +83 -70
- package/package.json +11 -11
- package/src/components/NavBar.vue +6 -0
- package/src/components/form/inputs/CheckInput.vue +2 -0
- package/src/components/form/inputs/DatePicker.vue +3 -0
- package/src/components/form/inputs/FileUpload.vue +6 -4
- package/src/components/form/inputs/SignaturePad.vue +11 -5
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-
|
|
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"
|
|
@@ -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-
|
|
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]") {
|
|
@@ -28898,7 +28898,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
28898
28898
|
}
|
|
28899
28899
|
});
|
|
28900
28900
|
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-681173be"]]);
|
|
28901
|
-
const _withScopeId$2 = (n2) => (pushScopeId("data-v-
|
|
28901
|
+
const _withScopeId$2 = (n2) => (pushScopeId("data-v-e848b48d"), n2 = n2(), popScopeId(), n2);
|
|
28902
28902
|
const _hoisted_1$j = { class: "bagel-input" };
|
|
28903
28903
|
const _hoisted_2$e = {
|
|
28904
28904
|
key: 0,
|
|
@@ -29012,9 +29012,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
29012
29012
|
topic: props2.topic
|
|
29013
29013
|
});
|
|
29014
29014
|
storageFiles.value.push(serverFile);
|
|
29015
|
-
const i2 = fileQueue.value.indexOf(file);
|
|
29016
|
-
fileQueue.value.splice(i2, 1);
|
|
29017
29015
|
}
|
|
29016
|
+
fileQueue.value.splice(0, fileQueue.value.length);
|
|
29018
29017
|
updateModelValue();
|
|
29019
29018
|
}
|
|
29020
29019
|
function browse() {
|
|
@@ -29024,12 +29023,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
29024
29023
|
input.onchange = (e) => {
|
|
29025
29024
|
const target = e.target;
|
|
29026
29025
|
if (target.files) {
|
|
29027
|
-
Array.from(target.files)
|
|
29028
|
-
|
|
29029
|
-
|
|
29026
|
+
const files = Array.from(target.files);
|
|
29027
|
+
for (const file of files) {
|
|
29028
|
+
fileQueue.value.push({ name: file.name, file, progress: 0 });
|
|
29029
|
+
}
|
|
29030
29030
|
}
|
|
29031
29031
|
flushQueue();
|
|
29032
29032
|
};
|
|
29033
|
+
console.log(fileQueue.value);
|
|
29033
29034
|
input.click();
|
|
29034
29035
|
}
|
|
29035
29036
|
function dragleave(e) {
|
|
@@ -29142,7 +29143,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
29142
29143
|
};
|
|
29143
29144
|
}
|
|
29144
29145
|
});
|
|
29145
|
-
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
29146
|
+
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-e848b48d"]]);
|
|
29146
29147
|
const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
|
|
29147
29148
|
const _hoisted_1$i = ["title"];
|
|
29148
29149
|
const _hoisted_2$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
@@ -31226,11 +31227,11 @@ function checkAttrs(attrs, values3, type3, name) {
|
|
|
31226
31227
|
attr.validate(values3[name2]);
|
|
31227
31228
|
}
|
|
31228
31229
|
}
|
|
31229
|
-
function initAttrs(attrs) {
|
|
31230
|
+
function initAttrs(typeName, attrs) {
|
|
31230
31231
|
let result2 = /* @__PURE__ */ Object.create(null);
|
|
31231
31232
|
if (attrs)
|
|
31232
31233
|
for (let name in attrs)
|
|
31233
|
-
result2[name] = new Attribute(attrs[name]);
|
|
31234
|
+
result2[name] = new Attribute(typeName, name, attrs[name]);
|
|
31234
31235
|
return result2;
|
|
31235
31236
|
}
|
|
31236
31237
|
let NodeType$1 = class NodeType2 {
|
|
@@ -31243,7 +31244,7 @@ let NodeType$1 = class NodeType2 {
|
|
|
31243
31244
|
this.spec = spec;
|
|
31244
31245
|
this.markSet = null;
|
|
31245
31246
|
this.groups = spec.group ? spec.group.split(" ") : [];
|
|
31246
|
-
this.attrs = initAttrs(spec.attrs);
|
|
31247
|
+
this.attrs = initAttrs(name, spec.attrs);
|
|
31247
31248
|
this.defaultAttrs = defaultAttrs(this.attrs);
|
|
31248
31249
|
this.contentMatch = null;
|
|
31249
31250
|
this.inlineContent = null;
|
|
@@ -31431,19 +31432,19 @@ let NodeType$1 = class NodeType2 {
|
|
|
31431
31432
|
return result2;
|
|
31432
31433
|
}
|
|
31433
31434
|
};
|
|
31434
|
-
function validateType(type3) {
|
|
31435
|
+
function validateType(typeName, attrName, type3) {
|
|
31435
31436
|
let types = type3.split("|");
|
|
31436
31437
|
return (value) => {
|
|
31437
31438
|
let name = value === null ? "null" : typeof value;
|
|
31438
31439
|
if (types.indexOf(name) < 0)
|
|
31439
|
-
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}`);
|
|
31440
31441
|
};
|
|
31441
31442
|
}
|
|
31442
31443
|
class Attribute {
|
|
31443
|
-
constructor(options) {
|
|
31444
|
+
constructor(typeName, attrName, options) {
|
|
31444
31445
|
this.hasDefault = Object.prototype.hasOwnProperty.call(options, "default");
|
|
31445
31446
|
this.default = options.default;
|
|
31446
|
-
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;
|
|
31447
31448
|
}
|
|
31448
31449
|
get isRequired() {
|
|
31449
31450
|
return !this.hasDefault;
|
|
@@ -31458,7 +31459,7 @@ class MarkType {
|
|
|
31458
31459
|
this.rank = rank;
|
|
31459
31460
|
this.schema = schema;
|
|
31460
31461
|
this.spec = spec;
|
|
31461
|
-
this.attrs = initAttrs(spec.attrs);
|
|
31462
|
+
this.attrs = initAttrs(name, spec.attrs);
|
|
31462
31463
|
this.excluded = null;
|
|
31463
31464
|
let defaults2 = defaultAttrs(this.attrs);
|
|
31464
31465
|
this.instance = defaults2 ? new Mark$1(this, defaults2) : null;
|
|
@@ -32422,13 +32423,8 @@ class DOMSerializer {
|
|
|
32422
32423
|
let toDOM = this.marks[mark.type.name];
|
|
32423
32424
|
return toDOM && renderSpec(doc$1(options), toDOM(mark, inline), null, mark.attrs);
|
|
32424
32425
|
}
|
|
32425
|
-
|
|
32426
|
-
|
|
32427
|
-
the spec has a hole (zero) in it, `contentDOM` will point at the
|
|
32428
|
-
node with the hole.
|
|
32429
|
-
*/
|
|
32430
|
-
static renderSpec(doc2, structure, xmlNS = null) {
|
|
32431
|
-
return renderSpec(doc2, structure, xmlNS);
|
|
32426
|
+
static renderSpec(doc2, structure, xmlNS = null, blockArraysIn) {
|
|
32427
|
+
return renderSpec(doc2, structure, xmlNS, blockArraysIn);
|
|
32432
32428
|
}
|
|
32433
32429
|
/**
|
|
32434
32430
|
Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
|
|
@@ -36291,7 +36287,7 @@ class MarkViewDesc extends ViewDesc {
|
|
|
36291
36287
|
let custom2 = view.nodeViews[mark.type.name];
|
|
36292
36288
|
let spec = custom2 && custom2(mark, view, inline);
|
|
36293
36289
|
if (!spec || !spec.dom)
|
|
36294
|
-
spec = DOMSerializer.renderSpec(document, mark.type.spec.toDOM(mark, inline));
|
|
36290
|
+
spec = DOMSerializer.renderSpec(document, mark.type.spec.toDOM(mark, inline), null, mark.attrs);
|
|
36295
36291
|
return new MarkViewDesc(parent, mark, spec.dom, spec.contentDOM || spec.dom);
|
|
36296
36292
|
}
|
|
36297
36293
|
parseRule() {
|
|
@@ -36358,7 +36354,8 @@ class NodeViewDesc extends ViewDesc {
|
|
|
36358
36354
|
else if (dom.nodeType != 3)
|
|
36359
36355
|
throw new RangeError("Text must be rendered as a DOM text node");
|
|
36360
36356
|
} else if (!dom) {
|
|
36361
|
-
|
|
36357
|
+
let spec2 = DOMSerializer.renderSpec(document, node.type.spec.toDOM(node), null, node.attrs);
|
|
36358
|
+
({ dom, contentDOM } = spec2);
|
|
36362
36359
|
}
|
|
36363
36360
|
if (!contentDOM && !node.isText && dom.nodeName != "BR") {
|
|
36364
36361
|
if (!dom.hasAttribute("contenteditable"))
|
|
@@ -38455,7 +38452,8 @@ handlers.dragstart = (view, _event) => {
|
|
|
38455
38452
|
}
|
|
38456
38453
|
let draggedSlice = (node || view.state.selection).content();
|
|
38457
38454
|
let { dom, text, slice: slice4 } = serializeForClipboard(view, draggedSlice);
|
|
38458
|
-
event.dataTransfer.
|
|
38455
|
+
if (!event.dataTransfer.files.length || !chrome || chrome_version > 120)
|
|
38456
|
+
event.dataTransfer.clearData();
|
|
38459
38457
|
event.dataTransfer.setData(brokenClipboardAPI ? "Text" : "text/html", dom.innerHTML);
|
|
38460
38458
|
event.dataTransfer.effectAllowed = "copyMove";
|
|
38461
38459
|
if (!brokenClipboardAPI)
|
|
@@ -43136,7 +43134,7 @@ function isList(name, extensions) {
|
|
|
43136
43134
|
return group.split(" ").includes("list");
|
|
43137
43135
|
}
|
|
43138
43136
|
function isNodeEmpty(node) {
|
|
43139
|
-
const defaultContent = node.type.createAndFill();
|
|
43137
|
+
const defaultContent = node.type.createAndFill(node.attrs);
|
|
43140
43138
|
if (!defaultContent) {
|
|
43141
43139
|
return false;
|
|
43142
43140
|
}
|
|
@@ -43313,29 +43311,29 @@ const splitBlock = ({ keepMarks = true } = {}) => ({ tr: tr2, state: state2, dis
|
|
|
43313
43311
|
if (!$from.parent.isBlock) {
|
|
43314
43312
|
return false;
|
|
43315
43313
|
}
|
|
43316
|
-
|
|
43317
|
-
|
|
43318
|
-
|
|
43319
|
-
|
|
43320
|
-
|
|
43321
|
-
|
|
43322
|
-
|
|
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 ? [
|
|
43323
43326
|
{
|
|
43324
43327
|
type: deflt,
|
|
43325
43328
|
attrs: newAttributes
|
|
43326
43329
|
}
|
|
43327
43330
|
] : void 0;
|
|
43328
|
-
|
|
43329
|
-
|
|
43330
|
-
can = true;
|
|
43331
|
-
types = deflt ? [
|
|
43332
|
-
{
|
|
43333
|
-
type: deflt,
|
|
43334
|
-
attrs: newAttributes
|
|
43335
|
-
}
|
|
43336
|
-
] : void 0;
|
|
43337
|
-
}
|
|
43331
|
+
}
|
|
43332
|
+
if (dispatch) {
|
|
43338
43333
|
if (can) {
|
|
43334
|
+
if (selection instanceof TextSelection) {
|
|
43335
|
+
tr2.deleteSelection();
|
|
43336
|
+
}
|
|
43339
43337
|
tr2.split(tr2.mapping.map($from.pos), 1, types);
|
|
43340
43338
|
if (deflt && !atEnd && !$from.parentOffset && $from.parent.type !== deflt) {
|
|
43341
43339
|
const first2 = tr2.mapping.map($from.before());
|
|
@@ -43350,7 +43348,7 @@ const splitBlock = ({ keepMarks = true } = {}) => ({ tr: tr2, state: state2, dis
|
|
|
43350
43348
|
}
|
|
43351
43349
|
tr2.scrollIntoView();
|
|
43352
43350
|
}
|
|
43353
|
-
return
|
|
43351
|
+
return can;
|
|
43354
43352
|
};
|
|
43355
43353
|
const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, editor }) => {
|
|
43356
43354
|
var _a2;
|
|
@@ -44354,6 +44352,9 @@ let Editor$1 = class Editor2 extends EventEmitter {
|
|
|
44354
44352
|
* Creates all node views.
|
|
44355
44353
|
*/
|
|
44356
44354
|
createNodeViews() {
|
|
44355
|
+
if (this.view.isDestroyed) {
|
|
44356
|
+
return;
|
|
44357
|
+
}
|
|
44357
44358
|
this.view.setProps({
|
|
44358
44359
|
nodeViews: this.extensionManager.nodeViews
|
|
44359
44360
|
});
|
|
@@ -45246,7 +45247,10 @@ const CodeBlock = Node$2.create({
|
|
|
45246
45247
|
}
|
|
45247
45248
|
const nodeAfter = doc2.nodeAt(after);
|
|
45248
45249
|
if (nodeAfter) {
|
|
45249
|
-
return
|
|
45250
|
+
return editor.commands.command(({ tr: tr2 }) => {
|
|
45251
|
+
tr2.setSelection(Selection$1.near(doc2.resolve(after)));
|
|
45252
|
+
return true;
|
|
45253
|
+
});
|
|
45250
45254
|
}
|
|
45251
45255
|
return editor.commands.exitCode();
|
|
45252
45256
|
}
|
|
@@ -51703,7 +51707,14 @@ function columnResizing({
|
|
|
51703
51707
|
key: columnResizingPluginKey,
|
|
51704
51708
|
state: {
|
|
51705
51709
|
init(_2, state2) {
|
|
51706
|
-
|
|
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
|
+
}
|
|
51707
51718
|
return new ResizeState(-1, false);
|
|
51708
51719
|
},
|
|
51709
51720
|
apply(tr2, prev) {
|
|
@@ -51943,10 +51954,10 @@ function handleDecorations(state2, cell) {
|
|
|
51943
51954
|
}
|
|
51944
51955
|
const map4 = TableMap.get(table);
|
|
51945
51956
|
const start2 = $cell.start(-1);
|
|
51946
|
-
const col = map4.colCount($cell.pos - start2) + $cell.nodeAfter.attrs.colspan;
|
|
51957
|
+
const col = map4.colCount($cell.pos - start2) + $cell.nodeAfter.attrs.colspan - 1;
|
|
51947
51958
|
for (let row = 0; row < map4.height; row++) {
|
|
51948
|
-
const index2 = col + row * map4.width
|
|
51949
|
-
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])) {
|
|
51950
51961
|
const cellPos = map4.map[index2];
|
|
51951
51962
|
const pos = start2 + cellPos + table.nodeAt(cellPos).nodeSize - 1;
|
|
51952
51963
|
const dom = document.createElement("div");
|
|
@@ -52724,7 +52735,7 @@ const Table = Node$2.create({
|
|
|
52724
52735
|
const table = [
|
|
52725
52736
|
"table",
|
|
52726
52737
|
mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, {
|
|
52727
|
-
style: tableWidth ? `width: ${tableWidth}` : `
|
|
52738
|
+
style: tableWidth ? `width: ${tableWidth}` : `min-width: ${tableMinWidth}`
|
|
52728
52739
|
}),
|
|
52729
52740
|
colgroup,
|
|
52730
52741
|
["tbody", 0]
|
|
@@ -56242,7 +56253,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
56242
56253
|
waterMark: {},
|
|
56243
56254
|
disabled: { type: Boolean },
|
|
56244
56255
|
defaultUrl: {},
|
|
56245
|
-
format: {}
|
|
56256
|
+
format: {},
|
|
56257
|
+
clearable: { type: Boolean, default: true }
|
|
56246
56258
|
},
|
|
56247
56259
|
setup(__props, { expose: __expose }) {
|
|
56248
56260
|
const props2 = __props;
|
|
@@ -56344,11 +56356,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
56344
56356
|
});
|
|
56345
56357
|
return (_ctx, _cache) => {
|
|
56346
56358
|
return openBlock(), createElementBlock("div", {
|
|
56347
|
-
class: "bgl_input signature-pad relative",
|
|
56359
|
+
class: normalizeClass(["bgl_input signature-pad relative", { "bg-transparent": _ctx.disabled }]),
|
|
56348
56360
|
onTouchmove: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
56349
56361
|
}, ["prevent"]))
|
|
56350
56362
|
}, [
|
|
56351
|
-
!_ctx.disabled ? (openBlock(), createBlock(unref(Btn), {
|
|
56363
|
+
_ctx.clearable && !_ctx.disabled ? (openBlock(), createBlock(unref(Btn), {
|
|
56352
56364
|
key: 0,
|
|
56353
56365
|
flat: "",
|
|
56354
56366
|
thin: "",
|
|
@@ -56362,7 +56374,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
56362
56374
|
class: "canvas",
|
|
56363
56375
|
disabled: _ctx.disabled
|
|
56364
56376
|
}, null, 8, _hoisted_1$f)
|
|
56365
|
-
],
|
|
56377
|
+
], 34);
|
|
56366
56378
|
};
|
|
56367
56379
|
}
|
|
56368
56380
|
});
|