@bagelink/vue 1.2.20 → 1.2.22

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/index.mjs CHANGED
@@ -13742,7 +13742,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
13742
13742
  };
13743
13743
  }
13744
13744
  });
13745
- const BglMultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-4ead8342"]]);
13745
+ const BglMultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-06c34cf2"]]);
13746
13746
  const _hoisted_1$K = {
13747
13747
  key: 0,
13748
13748
  class: "label mb-05"
@@ -15299,7 +15299,7 @@ const _hoisted_11$3 = {
15299
15299
  key: 0,
15300
15300
  class: "progress"
15301
15301
  };
15302
- const _hoisted_12$2 = {
15302
+ const _hoisted_12$3 = {
15303
15303
  key: 1,
15304
15304
  class: "bgl-single-preview"
15305
15305
  };
@@ -15648,7 +15648,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
15648
15648
  ]);
15649
15649
  }), 128))
15650
15650
  ])) : createCommentVNode("", true),
15651
- !_ctx.multiple && (storageFiles.value.length > 0 || fileQueue.value.length > 0) ? (openBlock(), createElementBlock("div", _hoisted_12$2, [
15651
+ !_ctx.multiple && (storageFiles.value.length > 0 || fileQueue.value.length > 0) ? (openBlock(), createElementBlock("div", _hoisted_12$3, [
15652
15652
  (openBlock(true), createElementBlock(Fragment, null, renderList(storageFiles.value, (file) => {
15653
15653
  return openBlock(), createElementBlock("div", {
15654
15654
  key: file.id,
@@ -27092,7 +27092,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
27092
27092
  }, [
27093
27093
  createElementVNode("label", { for: _ctx.id }, [
27094
27094
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
27095
- !_ctx.multiline && !_ctx.autoheight && !_ctx.code ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
27095
+ !_ctx.multiline && !_ctx.autoheight && !_ctx.code && inputRows.value < 2 ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
27096
27096
  key: 0,
27097
27097
  id: _ctx.id,
27098
27098
  ref_key: "input",
@@ -27156,7 +27156,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
27156
27156
  };
27157
27157
  }
27158
27158
  });
27159
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-6dfc73c3"]]);
27159
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-da1189c6"]]);
27160
27160
  const _hoisted_1$n = ["title"];
27161
27161
  const _hoisted_2$d = ["id", "required"];
27162
27162
  const _hoisted_3$b = ["for"];
@@ -27263,7 +27263,7 @@ const _hoisted_11$2 = {
27263
27263
  key: 0,
27264
27264
  class: "progress"
27265
27265
  };
27266
- const _hoisted_12$1 = {
27266
+ const _hoisted_12$2 = {
27267
27267
  key: 1,
27268
27268
  class: "bgl-single-preview"
27269
27269
  };
@@ -27524,7 +27524,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
27524
27524
  ], 6)
27525
27525
  ], 2);
27526
27526
  }), 128))
27527
- ])) : pathKeys.value.length > 0 || fileQueue.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
27527
+ ])) : pathKeys.value.length > 0 || fileQueue.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_12$2, [
27528
27528
  (openBlock(true), createElementBlock(Fragment, null, renderList(pathKeys.value, (path_key) => {
27529
27529
  return openBlock(), createElementBlock("div", {
27530
27530
  key: path_key,
@@ -33550,23 +33550,24 @@ function _sfc_render$2(_ctx, _cache) {
33550
33550
  });
33551
33551
  }
33552
33552
  const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$2]]);
33553
- const _hoisted_1$4 = {
33553
+ const _hoisted_1$4 = { class: "stickyTop" };
33554
+ const _hoisted_2$2 = {
33554
33555
  key: 0,
33555
33556
  class: "row-number-header bg-white"
33556
33557
  };
33557
- const _hoisted_2$2 = { class: "th-content" };
33558
- const _hoisted_3$2 = ["onClick"];
33559
- const _hoisted_4$2 = ["onMousedown"];
33560
- const _hoisted_5$2 = ["onClick"];
33561
- const _hoisted_6$2 = ["tabindex", "onMousedown", "onMouseover", "onFocusin", "onDblclick", "onKeydown"];
33562
- const _hoisted_7$2 = ["value", "onInput"];
33563
- const _hoisted_8$1 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder" };
33564
- const _hoisted_9$1 = {
33558
+ const _hoisted_3$2 = { class: "th-content" };
33559
+ const _hoisted_4$2 = ["onClick"];
33560
+ const _hoisted_5$2 = ["onMousedown"];
33561
+ const _hoisted_6$2 = ["onClick"];
33562
+ const _hoisted_7$2 = ["tabindex", "onMousedown", "onMouseover", "onFocusin", "onDblclick", "onKeydown"];
33563
+ const _hoisted_8$1 = ["value", "onInput"];
33564
+ const _hoisted_9$1 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder" };
33565
+ const _hoisted_10$1 = {
33565
33566
  key: 0,
33566
33567
  class: "h40px w-100p flex align-items-center justify-content-center overflow-hidden"
33567
33568
  };
33568
- const _hoisted_10$1 = ["src", "alt"];
33569
- const _hoisted_11$1 = {
33569
+ const _hoisted_11$1 = ["src", "alt"];
33570
+ const _hoisted_12$1 = {
33570
33571
  key: 2,
33571
33572
  class: "spreadsheet-cell"
33572
33573
  };
@@ -33583,7 +33584,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
33583
33584
  selectionStart: {},
33584
33585
  selectionEnd: {},
33585
33586
  editingCell: {},
33586
- baseColumnIndex: {}
33587
+ baseColumnIndex: {},
33588
+ wrapText: { type: Boolean }
33587
33589
  },
33588
33590
  emits: ["sortColumn", "resizeStart", "selectRow", "cellMouseDown", "cellMouseOver", "cellEditStart", "cellKeyDown", "updateCell", "stopEditing", "setInputRef"],
33589
33591
  setup(__props) {
@@ -33638,18 +33640,18 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
33638
33640
  return openBlock(), createElementBlock("table", {
33639
33641
  class: normalizeClass({ "fixed-columns": _ctx.isFixed, "w-100p": !_ctx.isFixed })
33640
33642
  }, [
33641
- createElementVNode("thead", null, [
33643
+ createElementVNode("thead", _hoisted_1$4, [
33642
33644
  createElementVNode("tr", null, [
33643
- _ctx.showRowNumbers ? (openBlock(), createElementBlock("th", _hoisted_1$4)) : createCommentVNode("", true),
33645
+ _ctx.showRowNumbers ? (openBlock(), createElementBlock("th", _hoisted_2$2)) : createCommentVNode("", true),
33644
33646
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col) => {
33645
33647
  return openBlock(), createElementBlock("th", {
33646
33648
  key: col.key,
33647
33649
  style: normalizeStyle({ width: _ctx.columnWidths.get(col.key) ? `${_ctx.columnWidths.get(col.key)}px` : col.width })
33648
33650
  }, [
33649
- createElementVNode("div", _hoisted_2$2, [
33651
+ createElementVNode("div", _hoisted_3$2, [
33650
33652
  createElementVNode("span", {
33651
33653
  onClick: ($event) => col.sortable && _ctx.$emit("sortColumn", col.key)
33652
- }, toDisplayString(col.label || col.key), 9, _hoisted_3$2),
33654
+ }, toDisplayString(col.label || col.key), 9, _hoisted_4$2),
33653
33655
  _ctx.sortColumn === col.key ? (openBlock(), createBlock(unref(_sfc_main$s), {
33654
33656
  key: 0,
33655
33657
  class: normalizeClass(["line-height-0 transition-400", { "rotate-180": _ctx.sortDirection === "desc" }]),
@@ -33658,7 +33660,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
33658
33660
  createElementVNode("div", {
33659
33661
  class: "resize-handle",
33660
33662
  onMousedown: withModifiers(($event) => _ctx.$emit("resizeStart", $event, col.key), ["stop"])
33661
- }, null, 40, _hoisted_4$2)
33663
+ }, null, 40, _hoisted_5$2)
33662
33664
  ])
33663
33665
  ], 4);
33664
33666
  }), 128))
@@ -33671,13 +33673,14 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
33671
33673
  key: 0,
33672
33674
  class: "row-number txt-center hover user-select-none pointer txt12 regular",
33673
33675
  onClick: ($event) => _ctx.$emit("selectRow", rowIndex)
33674
- }, toDisplayString(rowIndex + 1), 9, _hoisted_5$2)) : createCommentVNode("", true),
33676
+ }, toDisplayString(rowIndex + 1), 9, _hoisted_6$2)) : createCommentVNode("", true),
33675
33677
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col, colIndex) => {
33676
33678
  return openBlock(), createElementBlock("td", {
33677
33679
  key: col.key,
33678
33680
  class: normalizeClass({
33679
- selected: isCellSelected(rowIndex, colIndex),
33680
- locked: !isCellEditable(col.key)
33681
+ "selected": isCellSelected(rowIndex, colIndex),
33682
+ "locked": !isCellEditable(col.key),
33683
+ "wrap-text": _ctx.wrapText
33681
33684
  }),
33682
33685
  style: normalizeStyle({ width: _ctx.columnWidths.get(col.key) ? `${_ctx.columnWidths.get(col.key)}px` : col.width }),
33683
33686
  tabindex: col.hidden ? void 0 : 0,
@@ -33702,15 +33705,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
33702
33705
  ],
33703
33706
  onMousedown: _cache[3] || (_cache[3] = withModifiers(() => {
33704
33707
  }, ["stop"]))
33705
- }, null, 40, _hoisted_7$2),
33706
- createElementVNode("span", _hoisted_8$1, toDisplayString(formatCellValue(row[col.key], col.format)), 1)
33708
+ }, null, 40, _hoisted_8$1),
33709
+ createElementVNode("span", _hoisted_9$1, toDisplayString(formatCellValue(row[col.key], col.format)), 1)
33707
33710
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
33708
- col.format === "image" ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
33711
+ col.format === "image" ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
33709
33712
  createElementVNode("img", {
33710
33713
  class: "w-100p h-100p contain radius-05",
33711
33714
  src: row[col.key],
33712
33715
  alt: col.label || col.key
33713
- }, null, 8, _hoisted_10$1)
33716
+ }, null, 8, _hoisted_11$1)
33714
33717
  ])) : col.format === "boolean" ? (openBlock(), createBlock(unref(CheckInput), {
33715
33718
  key: 1,
33716
33719
  modelValue: !!row[col.key],
@@ -33718,9 +33721,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
33718
33721
  "onUpdate:modelValue": (value) => _ctx.$emit("updateCell", rowIndex, col.key, !!value),
33719
33722
  onMousedown: _cache[4] || (_cache[4] = withModifiers(() => {
33720
33723
  }, ["stop"]))
33721
- }, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])) : (openBlock(), createElementBlock("span", _hoisted_11$1, toDisplayString(formatCellValue(row[col.key], col.format)), 1))
33724
+ }, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])) : (openBlock(), createElementBlock("span", _hoisted_12$1, toDisplayString(formatCellValue(row[col.key], col.format)), 1))
33722
33725
  ], 64))
33723
- ], 46, _hoisted_6$2);
33726
+ ], 46, _hoisted_7$2);
33724
33727
  }), 128))
33725
33728
  ]);
33726
33729
  }), 128))
@@ -33729,7 +33732,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
33729
33732
  };
33730
33733
  }
33731
33734
  });
33732
- const SpreadsheetTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-ad70b6cd"]]);
33735
+ const SpreadsheetTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-857ccb8b"]]);
33733
33736
  const _hoisted_1$3 = { class: "flex gap-05 py-05 justify-content-end m_flex-wrap" };
33734
33737
  const _hoisted_2$1 = {
33735
33738
  key: 0,
@@ -33739,7 +33742,7 @@ const _hoisted_3$1 = { class: "flex gap-075" };
33739
33742
  const _hoisted_4$1 = { class: "p-05" };
33740
33743
  const _hoisted_5$1 = { class: "flex space-between" };
33741
33744
  const _hoisted_6$1 = { class: "flex w-100p relative" };
33742
- const _hoisted_7$1 = { class: "flex-shrink flex-grow overflow-x" };
33745
+ const _hoisted_7$1 = { class: "flex-shrink flex-grow" };
33743
33746
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
33744
33747
  __name: "Index",
33745
33748
  props: {
@@ -33893,6 +33896,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
33893
33896
  const isSelecting = ref(false);
33894
33897
  const selectionStart = ref(null);
33895
33898
  const selectionEnd = ref(null);
33899
+ const wrapText = localRef("wrapText", false);
33896
33900
  const editingCell = ref(null);
33897
33901
  const editInputRef = ref(/* @__PURE__ */ new Map());
33898
33902
  function setInputRef(el, key) {
@@ -34208,16 +34212,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
34208
34212
  return columns.value.filter((col) => !col.hidden);
34209
34213
  });
34210
34214
  return (_ctx, _cache) => {
34211
- const _directive_tooltip = resolveDirective("tooltip");
34212
34215
  return openBlock(), createElementBlock("div", {
34213
- class: "w-100p overflow-hidden",
34216
+ class: "w-100p",
34214
34217
  tabindex: "-1",
34215
34218
  onKeydown: handleSpreadsheetKeyDown
34216
34219
  }, [
34217
34220
  createElementVNode("div", _hoisted_1$3, [
34218
34221
  _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$1, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
34219
34222
  createElementVNode("div", _hoisted_3$1, [
34220
- createVNode(_sfc_main$W, {
34223
+ createVNode(unref(_sfc_main$W), {
34221
34224
  flat: "",
34222
34225
  thin: "",
34223
34226
  icon: "view_column"
@@ -34265,44 +34268,42 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
34265
34268
  placeholder: "Search",
34266
34269
  class: "m-0 max-w200px"
34267
34270
  }, null, 8, ["modelValue"]),
34268
- withDirectives(createVNode(unref(Btn), {
34269
- flat: "",
34270
- thin: "",
34271
- round: "",
34272
- icon: "paste",
34273
- onClick: pasteSelection
34274
- }, null, 512), [
34275
- [_directive_tooltip, "Paste"]
34276
- ]),
34277
- withDirectives(createVNode(unref(Btn), {
34278
- flat: "",
34279
- thin: "",
34280
- round: "",
34281
- icon: "copy",
34282
- onClick: copySelection
34283
- }, null, 512), [
34284
- [_directive_tooltip, "copy"]
34285
- ]),
34286
- withDirectives(createVNode(unref(Btn), {
34287
- flat: "",
34288
- thin: "",
34289
- round: "",
34290
- icon: "undo",
34291
- disabled: !canUndo.value,
34292
- onClick: undo
34293
- }, null, 8, ["disabled"]), [
34294
- [_directive_tooltip, "Undo"]
34295
- ]),
34296
- withDirectives(createVNode(unref(Btn), {
34271
+ createVNode(unref(_sfc_main$W), {
34297
34272
  flat: "",
34298
34273
  thin: "",
34299
- round: "",
34300
- icon: "redo",
34301
- disabled: !canRedo.value,
34302
- onClick: redo
34303
- }, null, 8, ["disabled"]), [
34304
- [_directive_tooltip, "Redo"]
34305
- ])
34274
+ icon: "more_vert"
34275
+ }, {
34276
+ default: withCtx(() => [
34277
+ createVNode(unref(_sfc_main$h), {
34278
+ title: "Paste",
34279
+ icon: "paste",
34280
+ onClick: pasteSelection
34281
+ }),
34282
+ createVNode(unref(_sfc_main$h), {
34283
+ title: "copy",
34284
+ icon: "copy",
34285
+ onClick: copySelection
34286
+ }),
34287
+ createVNode(unref(_sfc_main$h), {
34288
+ title: "Undo",
34289
+ icon: "undo",
34290
+ disabled: !canUndo.value,
34291
+ onClick: undo
34292
+ }, null, 8, ["disabled"]),
34293
+ createVNode(unref(_sfc_main$h), {
34294
+ title: "Redo",
34295
+ icon: "redo",
34296
+ disabled: !canRedo.value,
34297
+ onClick: redo
34298
+ }, null, 8, ["disabled"]),
34299
+ createVNode(unref(ToggleInput), {
34300
+ modelValue: unref(wrapText),
34301
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(wrapText) ? wrapText.value = $event : null),
34302
+ label: "Wrap Text"
34303
+ }, null, 8, ["modelValue"])
34304
+ ]),
34305
+ _: 1
34306
+ })
34306
34307
  ])
34307
34308
  ]),
34308
34309
  createElementVNode("div", {
@@ -34323,6 +34324,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
34323
34324
  "selection-end": selectionEnd.value,
34324
34325
  "editing-cell": editingCell.value,
34325
34326
  "base-column-index": 0,
34327
+ "wrap-text": unref(wrapText),
34326
34328
  class: "sticky z-2 start-0 bg-white",
34327
34329
  onSortColumn: sortByColumn,
34328
34330
  onResizeStart: handleResizeStart,
@@ -34334,7 +34336,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
34334
34336
  onUpdateCell: updateCell,
34335
34337
  onStopEditing: handleStopEditingAndBlur,
34336
34338
  onSetInputRef: setInputRef
34337
- }, null, 8, ["columns", "rows", "column-widths", "sort-column", "sort-direction", "selection-start", "selection-end", "editing-cell"])) : createCommentVNode("", true),
34339
+ }, null, 8, ["columns", "rows", "column-widths", "sort-column", "sort-direction", "selection-start", "selection-end", "editing-cell", "wrap-text"])) : createCommentVNode("", true),
34338
34340
  createElementVNode("div", _hoisted_7$1, [
34339
34341
  createVNode(SpreadsheetTable, {
34340
34342
  columns: scrollableColumns.value,
@@ -34348,6 +34350,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
34348
34350
  "selection-end": selectionEnd.value,
34349
34351
  "editing-cell": editingCell.value,
34350
34352
  "base-column-index": fixedColumns.value.length,
34353
+ "wrap-text": unref(wrapText),
34351
34354
  onSortColumn: sortByColumn,
34352
34355
  onResizeStart: handleResizeStart,
34353
34356
  onSelectRow: selectEntireRow,
@@ -34358,7 +34361,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
34358
34361
  onUpdateCell: updateCell,
34359
34362
  onStopEditing: handleStopEditingAndBlur,
34360
34363
  onSetInputRef: setInputRef
34361
- }, null, 8, ["columns", "rows", "show-row-numbers", "column-widths", "sort-column", "sort-direction", "selection-start", "selection-end", "editing-cell", "base-column-index"])
34364
+ }, null, 8, ["columns", "rows", "show-row-numbers", "column-widths", "sort-column", "sort-direction", "selection-start", "selection-end", "editing-cell", "base-column-index", "wrap-text"])
34362
34365
  ])
34363
34366
  ]),
34364
34367
  _ctx.allowAddRow ? (openBlock(), createBlock(unref(Btn), {
@@ -34376,7 +34379,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
34376
34379
  };
34377
34380
  }
34378
34381
  });
34379
- const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-1e744d43"]]);
34382
+ const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a7d01d6e"]]);
34380
34383
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
34381
34384
  __name: "Title",
34382
34385
  props: {