@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/components/Spreadsheet/Index.vue.d.ts.map +1 -1
- package/dist/components/Spreadsheet/SpreadsheetTable.vue.d.ts +1 -0
- package/dist/components/Spreadsheet/SpreadsheetTable.vue.d.ts.map +1 -1
- package/dist/components/form/BglMultiStepForm.vue.d.ts.map +1 -1
- package/dist/index.cjs +80 -77
- package/dist/index.mjs +80 -77
- package/dist/style.css +92 -59
- package/package.json +1 -1
- package/src/components/Spreadsheet/Index.vue +13 -8
- package/src/components/Spreadsheet/SpreadsheetTable.vue +19 -3
- package/src/components/form/BglMultiStepForm.vue +1 -0
- package/src/components/form/inputs/TextInput.vue +1 -1
- package/src/styles/layout.css +13 -1
- package/src/styles/mobilLayout.css +11 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Spreadsheet/Index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Spreadsheet/Index.vue"],"names":[],"mappings":"AA4xBA,KAAK,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,CAAA;AAEhG,UAAU,YAAY;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,GAAG,CAAA;CAClB;AAGD,UAAU,KAAK;IACd,UAAU,EAAE,KAAK,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,CAAA;IACzC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwpCD,wBASG"}
|
|
@@ -27,6 +27,7 @@ interface Props {
|
|
|
27
27
|
selectionEnd: CellPosition | null;
|
|
28
28
|
editingCell: CellPosition | null;
|
|
29
29
|
baseColumnIndex: number;
|
|
30
|
+
wrapText?: boolean;
|
|
30
31
|
}
|
|
31
32
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
33
|
[x: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpreadsheetTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Spreadsheet/SpreadsheetTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SpreadsheetTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Spreadsheet/SpreadsheetTable.vue"],"names":[],"mappings":"AAiVA,UAAU,YAAY;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACX;AAED,UAAU,YAAY;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,CAAA;IACrF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,GAAG,CAAA;CAClB;AAED,UAAU,KAAK;IACd,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,IAAI,EAAE,KAAK,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,CAAA;IACnC,OAAO,EAAE,OAAO,CAAA;IAChB,cAAc,EAAE,OAAO,CAAA;IACvB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,aAAa,EAAE,KAAK,GAAG,MAAM,CAAA;IAC7B,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,YAAY,EAAE,YAAY,GAAG,IAAI,CAAA;IACjC,WAAW,EAAE,YAAY,GAAG,IAAI,CAAA;IAChC,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB;;;;;;;;AAwSD,wBAQG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BglMultiStepForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BglMultiStepForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BglMultiStepForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BglMultiStepForm.vue"],"names":[],"mappings":"AA2bA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,OAAO,KAAK,EAAoB,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAClF,OAAO,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAA;yBAG3C,CAAC,SAAS;IAAC,CAAC,GAAG,EAAC,MAAM,GAAE,GAAG,CAAA;CAAC,EAAE,CAAC,EAC/C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAwgBO,mBAAmB,CAAC;;;;;oBA/Qd,CAAC;;yBAvPI,IAAI,CACpB,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EACtC,CACA,QAAQ,GAAG,GAAG,MAAM,YAAY,GAAG,MAAM,MAAM,EAAE,GAAG,UAAU,MAAM,EAAE,GAAG,UAAU,CAClF,CACD;gBACO,gBAAgB,CAAC,CAAC,CAAC;uBACZ,OAAO;cAChB,OAAO;qBACA,MAAM,EAAE;8BACC,OAAO;0BACX,OAAO;QACzB,+EAA+E;oBACnE,MAAM,GAAG,MAAM,GAAG,OAAO;oBAyfuD,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;;;;;8BAvWlB,MAAM;;;;;MAuWkC,GAAG,IAAI;WACpE,GAAG;;;;;kCAxWkB,MAAM;;;yCAbgB,MAAM;YAgU3B,GAAG;yBACH,GAAG;uBACL,GAAG;;;;;;;;YACA,GAAG;;UAoD3B,2GAAqC;EAExC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAnhBzE,wBAmhB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -13744,7 +13744,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
13744
13744
|
};
|
|
13745
13745
|
}
|
|
13746
13746
|
});
|
|
13747
|
-
const BglMultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-
|
|
13747
|
+
const BglMultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-06c34cf2"]]);
|
|
13748
13748
|
const _hoisted_1$K = {
|
|
13749
13749
|
key: 0,
|
|
13750
13750
|
class: "label mb-05"
|
|
@@ -15301,7 +15301,7 @@ const _hoisted_11$3 = {
|
|
|
15301
15301
|
key: 0,
|
|
15302
15302
|
class: "progress"
|
|
15303
15303
|
};
|
|
15304
|
-
const _hoisted_12$
|
|
15304
|
+
const _hoisted_12$3 = {
|
|
15305
15305
|
key: 1,
|
|
15306
15306
|
class: "bgl-single-preview"
|
|
15307
15307
|
};
|
|
@@ -15650,7 +15650,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
15650
15650
|
]);
|
|
15651
15651
|
}), 128))
|
|
15652
15652
|
])) : vue.createCommentVNode("", true),
|
|
15653
|
-
!_ctx.multiple && (storageFiles.value.length > 0 || fileQueue.value.length > 0) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$
|
|
15653
|
+
!_ctx.multiple && (storageFiles.value.length > 0 || fileQueue.value.length > 0) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$3, [
|
|
15654
15654
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(storageFiles.value, (file) => {
|
|
15655
15655
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
15656
15656
|
key: file.id,
|
|
@@ -27094,7 +27094,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
27094
27094
|
}, [
|
|
27095
27095
|
vue.createElementVNode("label", { for: _ctx.id }, [
|
|
27096
27096
|
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
27097
|
-
!_ctx.multiline && !_ctx.autoheight && !_ctx.code ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
|
|
27097
|
+
!_ctx.multiline && !_ctx.autoheight && !_ctx.code && inputRows.value < 2 ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
|
|
27098
27098
|
key: 0,
|
|
27099
27099
|
id: _ctx.id,
|
|
27100
27100
|
ref_key: "input",
|
|
@@ -27158,7 +27158,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
27158
27158
|
};
|
|
27159
27159
|
}
|
|
27160
27160
|
});
|
|
27161
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
27161
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-da1189c6"]]);
|
|
27162
27162
|
const _hoisted_1$n = ["title"];
|
|
27163
27163
|
const _hoisted_2$d = ["id", "required"];
|
|
27164
27164
|
const _hoisted_3$b = ["for"];
|
|
@@ -27265,7 +27265,7 @@ const _hoisted_11$2 = {
|
|
|
27265
27265
|
key: 0,
|
|
27266
27266
|
class: "progress"
|
|
27267
27267
|
};
|
|
27268
|
-
const _hoisted_12$
|
|
27268
|
+
const _hoisted_12$2 = {
|
|
27269
27269
|
key: 1,
|
|
27270
27270
|
class: "bgl-single-preview"
|
|
27271
27271
|
};
|
|
@@ -27526,7 +27526,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
27526
27526
|
], 6)
|
|
27527
27527
|
], 2);
|
|
27528
27528
|
}), 128))
|
|
27529
|
-
])) : pathKeys.value.length > 0 || fileQueue.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$
|
|
27529
|
+
])) : pathKeys.value.length > 0 || fileQueue.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$2, [
|
|
27530
27530
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pathKeys.value, (path_key) => {
|
|
27531
27531
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
27532
27532
|
key: path_key,
|
|
@@ -33552,23 +33552,24 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
33552
33552
|
});
|
|
33553
33553
|
}
|
|
33554
33554
|
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$2]]);
|
|
33555
|
-
const _hoisted_1$4 = {
|
|
33555
|
+
const _hoisted_1$4 = { class: "stickyTop" };
|
|
33556
|
+
const _hoisted_2$2 = {
|
|
33556
33557
|
key: 0,
|
|
33557
33558
|
class: "row-number-header bg-white"
|
|
33558
33559
|
};
|
|
33559
|
-
const
|
|
33560
|
-
const
|
|
33561
|
-
const
|
|
33562
|
-
const
|
|
33563
|
-
const
|
|
33564
|
-
const
|
|
33565
|
-
const
|
|
33566
|
-
const
|
|
33560
|
+
const _hoisted_3$2 = { class: "th-content" };
|
|
33561
|
+
const _hoisted_4$2 = ["onClick"];
|
|
33562
|
+
const _hoisted_5$2 = ["onMousedown"];
|
|
33563
|
+
const _hoisted_6$2 = ["onClick"];
|
|
33564
|
+
const _hoisted_7$2 = ["tabindex", "onMousedown", "onMouseover", "onFocusin", "onDblclick", "onKeydown"];
|
|
33565
|
+
const _hoisted_8$1 = ["value", "onInput"];
|
|
33566
|
+
const _hoisted_9$1 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder" };
|
|
33567
|
+
const _hoisted_10$1 = {
|
|
33567
33568
|
key: 0,
|
|
33568
33569
|
class: "h40px w-100p flex align-items-center justify-content-center overflow-hidden"
|
|
33569
33570
|
};
|
|
33570
|
-
const
|
|
33571
|
-
const
|
|
33571
|
+
const _hoisted_11$1 = ["src", "alt"];
|
|
33572
|
+
const _hoisted_12$1 = {
|
|
33572
33573
|
key: 2,
|
|
33573
33574
|
class: "spreadsheet-cell"
|
|
33574
33575
|
};
|
|
@@ -33585,7 +33586,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
33585
33586
|
selectionStart: {},
|
|
33586
33587
|
selectionEnd: {},
|
|
33587
33588
|
editingCell: {},
|
|
33588
|
-
baseColumnIndex: {}
|
|
33589
|
+
baseColumnIndex: {},
|
|
33590
|
+
wrapText: { type: Boolean }
|
|
33589
33591
|
},
|
|
33590
33592
|
emits: ["sortColumn", "resizeStart", "selectRow", "cellMouseDown", "cellMouseOver", "cellEditStart", "cellKeyDown", "updateCell", "stopEditing", "setInputRef"],
|
|
33591
33593
|
setup(__props) {
|
|
@@ -33640,18 +33642,18 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
33640
33642
|
return vue.openBlock(), vue.createElementBlock("table", {
|
|
33641
33643
|
class: vue.normalizeClass({ "fixed-columns": _ctx.isFixed, "w-100p": !_ctx.isFixed })
|
|
33642
33644
|
}, [
|
|
33643
|
-
vue.createElementVNode("thead",
|
|
33645
|
+
vue.createElementVNode("thead", _hoisted_1$4, [
|
|
33644
33646
|
vue.createElementVNode("tr", null, [
|
|
33645
|
-
_ctx.showRowNumbers ? (vue.openBlock(), vue.createElementBlock("th",
|
|
33647
|
+
_ctx.showRowNumbers ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_2$2)) : vue.createCommentVNode("", true),
|
|
33646
33648
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columns, (col) => {
|
|
33647
33649
|
return vue.openBlock(), vue.createElementBlock("th", {
|
|
33648
33650
|
key: col.key,
|
|
33649
33651
|
style: vue.normalizeStyle({ width: _ctx.columnWidths.get(col.key) ? `${_ctx.columnWidths.get(col.key)}px` : col.width })
|
|
33650
33652
|
}, [
|
|
33651
|
-
vue.createElementVNode("div",
|
|
33653
|
+
vue.createElementVNode("div", _hoisted_3$2, [
|
|
33652
33654
|
vue.createElementVNode("span", {
|
|
33653
33655
|
onClick: ($event) => col.sortable && _ctx.$emit("sortColumn", col.key)
|
|
33654
|
-
}, vue.toDisplayString(col.label || col.key), 9,
|
|
33656
|
+
}, vue.toDisplayString(col.label || col.key), 9, _hoisted_4$2),
|
|
33655
33657
|
_ctx.sortColumn === col.key ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
|
|
33656
33658
|
key: 0,
|
|
33657
33659
|
class: vue.normalizeClass(["line-height-0 transition-400", { "rotate-180": _ctx.sortDirection === "desc" }]),
|
|
@@ -33660,7 +33662,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
33660
33662
|
vue.createElementVNode("div", {
|
|
33661
33663
|
class: "resize-handle",
|
|
33662
33664
|
onMousedown: vue.withModifiers(($event) => _ctx.$emit("resizeStart", $event, col.key), ["stop"])
|
|
33663
|
-
}, null, 40,
|
|
33665
|
+
}, null, 40, _hoisted_5$2)
|
|
33664
33666
|
])
|
|
33665
33667
|
], 4);
|
|
33666
33668
|
}), 128))
|
|
@@ -33673,13 +33675,14 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
33673
33675
|
key: 0,
|
|
33674
33676
|
class: "row-number txt-center hover user-select-none pointer txt12 regular",
|
|
33675
33677
|
onClick: ($event) => _ctx.$emit("selectRow", rowIndex)
|
|
33676
|
-
}, vue.toDisplayString(rowIndex + 1), 9,
|
|
33678
|
+
}, vue.toDisplayString(rowIndex + 1), 9, _hoisted_6$2)) : vue.createCommentVNode("", true),
|
|
33677
33679
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columns, (col, colIndex) => {
|
|
33678
33680
|
return vue.openBlock(), vue.createElementBlock("td", {
|
|
33679
33681
|
key: col.key,
|
|
33680
33682
|
class: vue.normalizeClass({
|
|
33681
|
-
selected: isCellSelected(rowIndex, colIndex),
|
|
33682
|
-
locked: !isCellEditable(col.key)
|
|
33683
|
+
"selected": isCellSelected(rowIndex, colIndex),
|
|
33684
|
+
"locked": !isCellEditable(col.key),
|
|
33685
|
+
"wrap-text": _ctx.wrapText
|
|
33683
33686
|
}),
|
|
33684
33687
|
style: vue.normalizeStyle({ width: _ctx.columnWidths.get(col.key) ? `${_ctx.columnWidths.get(col.key)}px` : col.width }),
|
|
33685
33688
|
tabindex: col.hidden ? void 0 : 0,
|
|
@@ -33704,15 +33707,15 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
33704
33707
|
],
|
|
33705
33708
|
onMousedown: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
33706
33709
|
}, ["stop"]))
|
|
33707
|
-
}, null, 40,
|
|
33708
|
-
vue.createElementVNode("span",
|
|
33710
|
+
}, null, 40, _hoisted_8$1),
|
|
33711
|
+
vue.createElementVNode("span", _hoisted_9$1, vue.toDisplayString(formatCellValue(row[col.key], col.format)), 1)
|
|
33709
33712
|
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
33710
|
-
col.format === "image" ? (vue.openBlock(), vue.createElementBlock("div",
|
|
33713
|
+
col.format === "image" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$1, [
|
|
33711
33714
|
vue.createElementVNode("img", {
|
|
33712
33715
|
class: "w-100p h-100p contain radius-05",
|
|
33713
33716
|
src: row[col.key],
|
|
33714
33717
|
alt: col.label || col.key
|
|
33715
|
-
}, null, 8,
|
|
33718
|
+
}, null, 8, _hoisted_11$1)
|
|
33716
33719
|
])) : col.format === "boolean" ? (vue.openBlock(), vue.createBlock(vue.unref(CheckInput), {
|
|
33717
33720
|
key: 1,
|
|
33718
33721
|
modelValue: !!row[col.key],
|
|
@@ -33720,9 +33723,9 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
33720
33723
|
"onUpdate:modelValue": (value) => _ctx.$emit("updateCell", rowIndex, col.key, !!value),
|
|
33721
33724
|
onMousedown: _cache[4] || (_cache[4] = vue.withModifiers(() => {
|
|
33722
33725
|
}, ["stop"]))
|
|
33723
|
-
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])) : (vue.openBlock(), vue.createElementBlock("span",
|
|
33726
|
+
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_12$1, vue.toDisplayString(formatCellValue(row[col.key], col.format)), 1))
|
|
33724
33727
|
], 64))
|
|
33725
|
-
], 46,
|
|
33728
|
+
], 46, _hoisted_7$2);
|
|
33726
33729
|
}), 128))
|
|
33727
33730
|
]);
|
|
33728
33731
|
}), 128))
|
|
@@ -33731,7 +33734,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
33731
33734
|
};
|
|
33732
33735
|
}
|
|
33733
33736
|
});
|
|
33734
|
-
const SpreadsheetTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
33737
|
+
const SpreadsheetTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-857ccb8b"]]);
|
|
33735
33738
|
const _hoisted_1$3 = { class: "flex gap-05 py-05 justify-content-end m_flex-wrap" };
|
|
33736
33739
|
const _hoisted_2$1 = {
|
|
33737
33740
|
key: 0,
|
|
@@ -33741,7 +33744,7 @@ const _hoisted_3$1 = { class: "flex gap-075" };
|
|
|
33741
33744
|
const _hoisted_4$1 = { class: "p-05" };
|
|
33742
33745
|
const _hoisted_5$1 = { class: "flex space-between" };
|
|
33743
33746
|
const _hoisted_6$1 = { class: "flex w-100p relative" };
|
|
33744
|
-
const _hoisted_7$1 = { class: "flex-shrink flex-grow
|
|
33747
|
+
const _hoisted_7$1 = { class: "flex-shrink flex-grow" };
|
|
33745
33748
|
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
33746
33749
|
__name: "Index",
|
|
33747
33750
|
props: {
|
|
@@ -33895,6 +33898,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
33895
33898
|
const isSelecting = vue.ref(false);
|
|
33896
33899
|
const selectionStart = vue.ref(null);
|
|
33897
33900
|
const selectionEnd = vue.ref(null);
|
|
33901
|
+
const wrapText = localRef("wrapText", false);
|
|
33898
33902
|
const editingCell = vue.ref(null);
|
|
33899
33903
|
const editInputRef = vue.ref(/* @__PURE__ */ new Map());
|
|
33900
33904
|
function setInputRef(el, key) {
|
|
@@ -34210,16 +34214,15 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
34210
34214
|
return columns.value.filter((col) => !col.hidden);
|
|
34211
34215
|
});
|
|
34212
34216
|
return (_ctx, _cache) => {
|
|
34213
|
-
const _directive_tooltip = vue.resolveDirective("tooltip");
|
|
34214
34217
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
34215
|
-
class: "w-100p
|
|
34218
|
+
class: "w-100p",
|
|
34216
34219
|
tabindex: "-1",
|
|
34217
34220
|
onKeydown: handleSpreadsheetKeyDown
|
|
34218
34221
|
}, [
|
|
34219
34222
|
vue.createElementVNode("div", _hoisted_1$3, [
|
|
34220
34223
|
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$1, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
|
|
34221
34224
|
vue.createElementVNode("div", _hoisted_3$1, [
|
|
34222
|
-
vue.createVNode(_sfc_main$W, {
|
|
34225
|
+
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
34223
34226
|
flat: "",
|
|
34224
34227
|
thin: "",
|
|
34225
34228
|
icon: "view_column"
|
|
@@ -34267,44 +34270,42 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
34267
34270
|
placeholder: "Search",
|
|
34268
34271
|
class: "m-0 max-w200px"
|
|
34269
34272
|
}, null, 8, ["modelValue"]),
|
|
34270
|
-
vue.
|
|
34271
|
-
flat: "",
|
|
34272
|
-
thin: "",
|
|
34273
|
-
round: "",
|
|
34274
|
-
icon: "paste",
|
|
34275
|
-
onClick: pasteSelection
|
|
34276
|
-
}, null, 512), [
|
|
34277
|
-
[_directive_tooltip, "Paste"]
|
|
34278
|
-
]),
|
|
34279
|
-
vue.withDirectives(vue.createVNode(vue.unref(Btn), {
|
|
34280
|
-
flat: "",
|
|
34281
|
-
thin: "",
|
|
34282
|
-
round: "",
|
|
34283
|
-
icon: "copy",
|
|
34284
|
-
onClick: copySelection
|
|
34285
|
-
}, null, 512), [
|
|
34286
|
-
[_directive_tooltip, "copy"]
|
|
34287
|
-
]),
|
|
34288
|
-
vue.withDirectives(vue.createVNode(vue.unref(Btn), {
|
|
34289
|
-
flat: "",
|
|
34290
|
-
thin: "",
|
|
34291
|
-
round: "",
|
|
34292
|
-
icon: "undo",
|
|
34293
|
-
disabled: !canUndo.value,
|
|
34294
|
-
onClick: undo
|
|
34295
|
-
}, null, 8, ["disabled"]), [
|
|
34296
|
-
[_directive_tooltip, "Undo"]
|
|
34297
|
-
]),
|
|
34298
|
-
vue.withDirectives(vue.createVNode(vue.unref(Btn), {
|
|
34273
|
+
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
34299
34274
|
flat: "",
|
|
34300
34275
|
thin: "",
|
|
34301
|
-
|
|
34302
|
-
|
|
34303
|
-
|
|
34304
|
-
|
|
34305
|
-
|
|
34306
|
-
|
|
34307
|
-
|
|
34276
|
+
icon: "more_vert"
|
|
34277
|
+
}, {
|
|
34278
|
+
default: vue.withCtx(() => [
|
|
34279
|
+
vue.createVNode(vue.unref(_sfc_main$h), {
|
|
34280
|
+
title: "Paste",
|
|
34281
|
+
icon: "paste",
|
|
34282
|
+
onClick: pasteSelection
|
|
34283
|
+
}),
|
|
34284
|
+
vue.createVNode(vue.unref(_sfc_main$h), {
|
|
34285
|
+
title: "copy",
|
|
34286
|
+
icon: "copy",
|
|
34287
|
+
onClick: copySelection
|
|
34288
|
+
}),
|
|
34289
|
+
vue.createVNode(vue.unref(_sfc_main$h), {
|
|
34290
|
+
title: "Undo",
|
|
34291
|
+
icon: "undo",
|
|
34292
|
+
disabled: !canUndo.value,
|
|
34293
|
+
onClick: undo
|
|
34294
|
+
}, null, 8, ["disabled"]),
|
|
34295
|
+
vue.createVNode(vue.unref(_sfc_main$h), {
|
|
34296
|
+
title: "Redo",
|
|
34297
|
+
icon: "redo",
|
|
34298
|
+
disabled: !canRedo.value,
|
|
34299
|
+
onClick: redo
|
|
34300
|
+
}, null, 8, ["disabled"]),
|
|
34301
|
+
vue.createVNode(vue.unref(ToggleInput), {
|
|
34302
|
+
modelValue: vue.unref(wrapText),
|
|
34303
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.isRef(wrapText) ? wrapText.value = $event : null),
|
|
34304
|
+
label: "Wrap Text"
|
|
34305
|
+
}, null, 8, ["modelValue"])
|
|
34306
|
+
]),
|
|
34307
|
+
_: 1
|
|
34308
|
+
})
|
|
34308
34309
|
])
|
|
34309
34310
|
]),
|
|
34310
34311
|
vue.createElementVNode("div", {
|
|
@@ -34325,6 +34326,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
34325
34326
|
"selection-end": selectionEnd.value,
|
|
34326
34327
|
"editing-cell": editingCell.value,
|
|
34327
34328
|
"base-column-index": 0,
|
|
34329
|
+
"wrap-text": vue.unref(wrapText),
|
|
34328
34330
|
class: "sticky z-2 start-0 bg-white",
|
|
34329
34331
|
onSortColumn: sortByColumn,
|
|
34330
34332
|
onResizeStart: handleResizeStart,
|
|
@@ -34336,7 +34338,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
34336
34338
|
onUpdateCell: updateCell,
|
|
34337
34339
|
onStopEditing: handleStopEditingAndBlur,
|
|
34338
34340
|
onSetInputRef: setInputRef
|
|
34339
|
-
}, null, 8, ["columns", "rows", "column-widths", "sort-column", "sort-direction", "selection-start", "selection-end", "editing-cell"])) : vue.createCommentVNode("", true),
|
|
34341
|
+
}, null, 8, ["columns", "rows", "column-widths", "sort-column", "sort-direction", "selection-start", "selection-end", "editing-cell", "wrap-text"])) : vue.createCommentVNode("", true),
|
|
34340
34342
|
vue.createElementVNode("div", _hoisted_7$1, [
|
|
34341
34343
|
vue.createVNode(SpreadsheetTable, {
|
|
34342
34344
|
columns: scrollableColumns.value,
|
|
@@ -34350,6 +34352,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
34350
34352
|
"selection-end": selectionEnd.value,
|
|
34351
34353
|
"editing-cell": editingCell.value,
|
|
34352
34354
|
"base-column-index": fixedColumns.value.length,
|
|
34355
|
+
"wrap-text": vue.unref(wrapText),
|
|
34353
34356
|
onSortColumn: sortByColumn,
|
|
34354
34357
|
onResizeStart: handleResizeStart,
|
|
34355
34358
|
onSelectRow: selectEntireRow,
|
|
@@ -34360,7 +34363,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
34360
34363
|
onUpdateCell: updateCell,
|
|
34361
34364
|
onStopEditing: handleStopEditingAndBlur,
|
|
34362
34365
|
onSetInputRef: setInputRef
|
|
34363
|
-
}, null, 8, ["columns", "rows", "show-row-numbers", "column-widths", "sort-column", "sort-direction", "selection-start", "selection-end", "editing-cell", "base-column-index"])
|
|
34366
|
+
}, null, 8, ["columns", "rows", "show-row-numbers", "column-widths", "sort-column", "sort-direction", "selection-start", "selection-end", "editing-cell", "base-column-index", "wrap-text"])
|
|
34364
34367
|
])
|
|
34365
34368
|
]),
|
|
34366
34369
|
_ctx.allowAddRow ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
@@ -34378,7 +34381,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
34378
34381
|
};
|
|
34379
34382
|
}
|
|
34380
34383
|
});
|
|
34381
|
-
const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
34384
|
+
const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a7d01d6e"]]);
|
|
34382
34385
|
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
34383
34386
|
__name: "Title",
|
|
34384
34387
|
props: {
|