@bagelink/vue 1.2.18 → 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/calendar/views/DayView.vue.d.ts.map +1 -1
- package/dist/components/calendar/views/WeekView.vue.d.ts.map +1 -1
- package/dist/components/form/BglMultiStepForm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
- package/dist/index.cjs +226 -169
- package/dist/index.mjs +226 -169
- package/dist/style.css +145 -154
- package/package.json +1 -1
- package/src/components/Spreadsheet/Index.vue +13 -8
- package/src/components/Spreadsheet/SpreadsheetTable.vue +19 -3
- package/src/components/calendar/views/DayView.vue +53 -97
- package/src/components/calendar/views/WeekView.vue +1 -2
- package/src/components/form/BglMultiStepForm.vue +64 -2
- package/src/components/form/inputs/DatePicker.vue +33 -28
- package/src/components/form/inputs/TextInput.vue +1 -1
- package/src/styles/layout.css +13 -1
- package/src/styles/mobilLayout.css +11 -0
package/dist/index.mjs
CHANGED
|
@@ -631,16 +631,15 @@ function closePopover(state2) {
|
|
|
631
631
|
state2.showPopover.value = false;
|
|
632
632
|
state2.activeEvent.value = null;
|
|
633
633
|
}
|
|
634
|
-
const _hoisted_1$W = { class: "
|
|
635
|
-
const _hoisted_2$H = { class: "
|
|
636
|
-
const _hoisted_3$B = { class: "
|
|
637
|
-
const _hoisted_4$o = { class: "
|
|
638
|
-
const _hoisted_5$n = { class: "
|
|
639
|
-
const _hoisted_6$k =
|
|
640
|
-
const _hoisted_7$g =
|
|
641
|
-
const _hoisted_8$8 = { class: "
|
|
642
|
-
const _hoisted_9$7 = { class: "event-
|
|
643
|
-
const _hoisted_10$6 = { class: "event-time" };
|
|
634
|
+
const _hoisted_1$W = { class: "w-100p overflow-hidden m_overflow h-100p grid" };
|
|
635
|
+
const _hoisted_2$H = { class: "border-bottom me-1 txt-center p-05 dayGrid" };
|
|
636
|
+
const _hoisted_3$B = { class: "overflow h-100p pe-05" };
|
|
637
|
+
const _hoisted_4$o = { class: "time-column" };
|
|
638
|
+
const _hoisted_5$n = { class: "events-column" };
|
|
639
|
+
const _hoisted_6$k = ["onClick"];
|
|
640
|
+
const _hoisted_7$g = { class: "event-content" };
|
|
641
|
+
const _hoisted_8$8 = { class: "white-space ellipsis-1" };
|
|
642
|
+
const _hoisted_9$7 = { class: "event-time opacity-8" };
|
|
644
643
|
const slotHeight$1 = 60;
|
|
645
644
|
const slotDuration$1 = 60;
|
|
646
645
|
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
@@ -782,62 +781,60 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
782
781
|
const _directive_click_outside = resolveDirective("click-outside");
|
|
783
782
|
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
784
783
|
createElementVNode("div", _hoisted_2$H, [
|
|
785
|
-
_cache[0] || (_cache[0] = createElementVNode("div",
|
|
786
|
-
|
|
787
|
-
], -1)),
|
|
788
|
-
createElementVNode("div", _hoisted_3$B, [
|
|
789
|
-
createElementVNode("div", _hoisted_4$o, toDisplayString(unref(formatDate)(_ctx.startDate)), 1)
|
|
790
|
-
])
|
|
784
|
+
_cache[0] || (_cache[0] = createElementVNode("div", null, null, -1)),
|
|
785
|
+
createElementVNode("div", null, toDisplayString(unref(formatDate)(_ctx.startDate)), 1)
|
|
791
786
|
]),
|
|
792
|
-
createElementVNode("div",
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
(
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
787
|
+
createElementVNode("div", _hoisted_3$B, [
|
|
788
|
+
createElementVNode("div", {
|
|
789
|
+
class: "time-slots dayGrid border-end relative",
|
|
790
|
+
onMousedown: handleMouseDown
|
|
791
|
+
}, [
|
|
792
|
+
createElementVNode("div", _hoisted_4$o, [
|
|
793
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(timeSlots.value, (slot) => {
|
|
794
|
+
return openBlock(), createElementBlock("div", {
|
|
795
|
+
key: slot.time,
|
|
796
|
+
class: "time-slot txt-light txt-12 color-gray bg-gray-light border-start",
|
|
797
|
+
style: normalizeStyle({ height: `${slotHeight$1}px` })
|
|
798
|
+
}, toDisplayString(slot.time), 5);
|
|
799
|
+
}), 128))
|
|
800
|
+
]),
|
|
801
|
+
createElementVNode("div", _hoisted_5$n, [
|
|
802
|
+
isToday.value ? (openBlock(), createElementBlock("div", {
|
|
803
|
+
key: 0,
|
|
804
|
+
class: "absolute end w-100p z-2 flex pointer-events-none",
|
|
805
|
+
style: normalizeStyle({ top: `${currentTimeTop.value}px` })
|
|
806
|
+
}, _cache[1] || (_cache[1] = [
|
|
807
|
+
createElementVNode("div", { class: "current-time-dot h-10px aspect-ratio-1 round bg-primary" }, null, -1),
|
|
808
|
+
createElementVNode("div", { class: "current-time-line w-100p bg-primary" }, null, -1)
|
|
809
|
+
]), 4)) : createCommentVNode("", true),
|
|
810
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(processedEvents.value, (event) => {
|
|
811
|
+
return openBlock(), createElementBlock("div", {
|
|
812
|
+
key: event.id,
|
|
813
|
+
class: "event absolute radius-05 overflow-hidden pointer transition z-1",
|
|
814
|
+
style: normalizeStyle({
|
|
815
|
+
top: `${event.top}px`,
|
|
816
|
+
height: `${event.height}px`,
|
|
817
|
+
backgroundColor: event.color || "var(--bgl-primary)"
|
|
818
|
+
}),
|
|
819
|
+
onClick: withModifiers(($event) => unref(slots).eventContent ? openPopover$1(event, $event) : emit2("eventClick", event), ["stop"])
|
|
820
|
+
}, [
|
|
821
|
+
createElementVNode("div", _hoisted_7$g, [
|
|
822
|
+
createElementVNode("div", _hoisted_8$8, toDisplayString(event.title), 1),
|
|
823
|
+
createElementVNode("div", _hoisted_9$7, toDisplayString(unref(formatDate)(new Date(event.start_time))), 1)
|
|
824
|
+
])
|
|
825
|
+
], 12, _hoisted_6$k);
|
|
826
|
+
}), 128))
|
|
827
|
+
]),
|
|
828
|
+
dragState.value.isDragging && dragState.value.start && dragState.value.end ? (openBlock(), createElementBlock("div", {
|
|
807
829
|
key: 0,
|
|
808
|
-
class: "
|
|
809
|
-
style: normalizeStyle({
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
key: event.id,
|
|
817
|
-
class: "event",
|
|
818
|
-
style: normalizeStyle({
|
|
819
|
-
top: `${event.top}px`,
|
|
820
|
-
height: `${event.height}px`,
|
|
821
|
-
backgroundColor: event.color || "var(--bgl-primary)"
|
|
822
|
-
}),
|
|
823
|
-
onClick: withModifiers(($event) => unref(slots).eventContent ? openPopover$1(event, $event) : emit2("eventClick", event), ["stop"])
|
|
824
|
-
}, [
|
|
825
|
-
createElementVNode("div", _hoisted_8$8, [
|
|
826
|
-
createElementVNode("div", _hoisted_9$7, toDisplayString(event.title), 1),
|
|
827
|
-
createElementVNode("div", _hoisted_10$6, toDisplayString(unref(formatDate)(new Date(event.start_time))), 1)
|
|
828
|
-
])
|
|
829
|
-
], 12, _hoisted_7$g);
|
|
830
|
-
}), 128))
|
|
831
|
-
]),
|
|
832
|
-
dragState.value.isDragging && dragState.value.start && dragState.value.end ? (openBlock(), createElementBlock("div", {
|
|
833
|
-
key: 0,
|
|
834
|
-
class: "drag-preview",
|
|
835
|
-
style: normalizeStyle({
|
|
836
|
-
top: `${Math.min(dragState.value.start.y, dragState.value.end.y)}px`,
|
|
837
|
-
height: `${Math.abs(dragState.value.end.y - dragState.value.start.y)}px`
|
|
838
|
-
})
|
|
839
|
-
}, null, 4)) : createCommentVNode("", true)
|
|
840
|
-
], 32),
|
|
830
|
+
class: "drag-preview absolute bg-primary pointer-events-none",
|
|
831
|
+
style: normalizeStyle({
|
|
832
|
+
top: `${Math.min(dragState.value.start.y, dragState.value.end.y)}px`,
|
|
833
|
+
height: `${Math.abs(dragState.value.end.y - dragState.value.start.y)}px`
|
|
834
|
+
})
|
|
835
|
+
}, null, 4)) : createCommentVNode("", true)
|
|
836
|
+
], 32)
|
|
837
|
+
]),
|
|
841
838
|
showPopover.value && activeEvent.value ? withDirectives((openBlock(), createElementBlock("div", {
|
|
842
839
|
key: 0,
|
|
843
840
|
ref_key: "popoverRef",
|
|
@@ -852,12 +849,13 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
852
849
|
renderSlot(_ctx.$slots, "eventContent", { event: activeEvent.value }, void 0, true)
|
|
853
850
|
], 4)), [
|
|
854
851
|
[_directive_click_outside, closePopover$1]
|
|
855
|
-
]) : createCommentVNode("", true)
|
|
852
|
+
]) : createCommentVNode("", true),
|
|
853
|
+
_cache[2] || (_cache[2] = createElementVNode("div", { class: "border-bottom me-1" }, null, -1))
|
|
856
854
|
]);
|
|
857
855
|
};
|
|
858
856
|
}
|
|
859
857
|
});
|
|
860
|
-
const DayView = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-
|
|
858
|
+
const DayView = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-8aa8e541"]]);
|
|
861
859
|
const _hoisted_1$V = { class: "month-view" };
|
|
862
860
|
const _hoisted_2$G = { class: "month-header" };
|
|
863
861
|
const _hoisted_3$A = { class: "month-grid" };
|
|
@@ -1229,7 +1227,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
1229
1227
|
(openBlock(true), createElementBlock(Fragment, null, renderList(timeSlots.value, (slot) => {
|
|
1230
1228
|
return openBlock(), createElementBlock("div", {
|
|
1231
1229
|
key: slot.time,
|
|
1232
|
-
class: "txt-light txt-12 color-gray flex justify-content-center",
|
|
1230
|
+
class: "txt-light txt-12 color-gray flex justify-content-center bg-gray-light border-start",
|
|
1233
1231
|
style: normalizeStyle({ height: `${slotHeight}px` })
|
|
1234
1232
|
}, toDisplayString(slot.time), 5);
|
|
1235
1233
|
}), 128))
|
|
@@ -1304,7 +1302,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
1304
1302
|
};
|
|
1305
1303
|
}
|
|
1306
1304
|
});
|
|
1307
|
-
const WeekView = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-
|
|
1305
|
+
const WeekView = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-f774fc40"]]);
|
|
1308
1306
|
const _hoisted_1$T = { class: "calendar" };
|
|
1309
1307
|
const _hoisted_2$E = { class: "flex m_block m_pb-1" };
|
|
1310
1308
|
const _hoisted_3$y = { class: "txt-light my-0" };
|
|
@@ -13527,8 +13525,49 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
13527
13525
|
const computedSchema = computed(
|
|
13528
13526
|
() => useBglSchema({ schema: props2.schema })
|
|
13529
13527
|
);
|
|
13530
|
-
const
|
|
13531
|
-
|
|
13528
|
+
const filteredSchema = computed(() => {
|
|
13529
|
+
const schema = computedSchema.value;
|
|
13530
|
+
return schema.filter((step, index2) => {
|
|
13531
|
+
if (step.vIf !== void 0 || step["v-if"] !== void 0) {
|
|
13532
|
+
const condition = step.vIf ?? step["v-if"];
|
|
13533
|
+
if (typeof condition === "function") {
|
|
13534
|
+
return condition(void 0, formData.value);
|
|
13535
|
+
}
|
|
13536
|
+
if (typeof condition === "boolean") {
|
|
13537
|
+
return condition;
|
|
13538
|
+
}
|
|
13539
|
+
if (typeof condition === "string") {
|
|
13540
|
+
return !!condition;
|
|
13541
|
+
}
|
|
13542
|
+
}
|
|
13543
|
+
return true;
|
|
13544
|
+
});
|
|
13545
|
+
});
|
|
13546
|
+
const numberOfSteps = computed(() => filteredSchema.value.length);
|
|
13547
|
+
const schemaIndexMap = computed(() => {
|
|
13548
|
+
const map3 = [];
|
|
13549
|
+
computedSchema.value.forEach((step, index2) => {
|
|
13550
|
+
const vIfCondition = step.vIf ?? step["v-if"];
|
|
13551
|
+
let shouldInclude = true;
|
|
13552
|
+
if (vIfCondition !== void 0) {
|
|
13553
|
+
if (typeof vIfCondition === "function") {
|
|
13554
|
+
shouldInclude = vIfCondition(void 0, formData.value);
|
|
13555
|
+
} else if (typeof vIfCondition === "boolean") {
|
|
13556
|
+
shouldInclude = vIfCondition;
|
|
13557
|
+
} else if (typeof vIfCondition === "string") {
|
|
13558
|
+
shouldInclude = !!vIfCondition;
|
|
13559
|
+
}
|
|
13560
|
+
}
|
|
13561
|
+
if (shouldInclude) {
|
|
13562
|
+
map3.push(index2);
|
|
13563
|
+
}
|
|
13564
|
+
});
|
|
13565
|
+
return map3;
|
|
13566
|
+
});
|
|
13567
|
+
const currentStepSchema = computed(() => {
|
|
13568
|
+
const actualIndex = schemaIndexMap.value[currentStep.value];
|
|
13569
|
+
return [computedSchema.value[actualIndex]];
|
|
13570
|
+
});
|
|
13532
13571
|
const isStepping = ref(false);
|
|
13533
13572
|
let isSteppingTO;
|
|
13534
13573
|
const slideDirection = ref(props2.rtl ? "right" : "left");
|
|
@@ -13584,6 +13623,11 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
13584
13623
|
validatedSteps.value = [];
|
|
13585
13624
|
currentStep.value = 0;
|
|
13586
13625
|
}
|
|
13626
|
+
watch(() => formData.value, () => {
|
|
13627
|
+
if (currentStep.value >= numberOfSteps.value && numberOfSteps.value > 0) {
|
|
13628
|
+
currentStep.value = 0;
|
|
13629
|
+
}
|
|
13630
|
+
}, { deep: true });
|
|
13587
13631
|
__expose({
|
|
13588
13632
|
submit: handleSubmit,
|
|
13589
13633
|
validateForm: reportValidity,
|
|
@@ -13698,7 +13742,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
13698
13742
|
};
|
|
13699
13743
|
}
|
|
13700
13744
|
});
|
|
13701
|
-
const BglMultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-
|
|
13745
|
+
const BglMultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-06c34cf2"]]);
|
|
13702
13746
|
const _hoisted_1$K = {
|
|
13703
13747
|
key: 0,
|
|
13704
13748
|
class: "label mb-05"
|
|
@@ -14693,17 +14737,15 @@ const _hoisted_8$5 = {
|
|
|
14693
14737
|
key: 1,
|
|
14694
14738
|
class: "month-grid grid gap-05 p-05"
|
|
14695
14739
|
};
|
|
14696
|
-
const _hoisted_9$4 =
|
|
14697
|
-
const _hoisted_10$4 = {
|
|
14740
|
+
const _hoisted_9$4 = {
|
|
14698
14741
|
key: 2,
|
|
14699
14742
|
class: "year-grid grid gap-05 p-0"
|
|
14700
14743
|
};
|
|
14701
|
-
const
|
|
14702
|
-
const _hoisted_12$3 = {
|
|
14744
|
+
const _hoisted_10$4 = {
|
|
14703
14745
|
key: 0,
|
|
14704
14746
|
class: "time-picker border-start flex column gap-1 w-120px px-025"
|
|
14705
14747
|
};
|
|
14706
|
-
const
|
|
14748
|
+
const _hoisted_11$4 = { class: "flex gap-025" };
|
|
14707
14749
|
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
14708
14750
|
__name: "DatePicker",
|
|
14709
14751
|
props: {
|
|
@@ -14762,7 +14804,15 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14762
14804
|
const currentMonthDays2 = computed(() => {
|
|
14763
14805
|
const year = currentMonth.value.getFullYear();
|
|
14764
14806
|
const month = currentMonth.value.getMonth();
|
|
14765
|
-
|
|
14807
|
+
const weeksInMonth = time.getCalendarMonthSplitInWeeks(year, month);
|
|
14808
|
+
while (weeksInMonth.length < 6) {
|
|
14809
|
+
const lastWeek = weeksInMonth[weeksInMonth.length - 1];
|
|
14810
|
+
const lastDay = lastWeek[lastWeek.length - 1];
|
|
14811
|
+
const nextDay = new Date(lastDay.getFullYear(), lastDay.getMonth(), lastDay.getDate() + 1);
|
|
14812
|
+
const nextWeek = time.getCalendarWeekDateObjects(nextDay);
|
|
14813
|
+
weeksInMonth.push(nextWeek);
|
|
14814
|
+
}
|
|
14815
|
+
return weeksInMonth.flat();
|
|
14766
14816
|
});
|
|
14767
14817
|
const currentMonthValue2 = computed(() => ({
|
|
14768
14818
|
month: currentMonth.value.getMonth(),
|
|
@@ -14912,12 +14962,14 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14912
14962
|
currentView.value === "days" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
14913
14963
|
createVNode(unref(Btn), {
|
|
14914
14964
|
flat: "",
|
|
14965
|
+
thin: "",
|
|
14915
14966
|
icon: "chevron_left",
|
|
14916
14967
|
onClick: unref(previousMonth)
|
|
14917
14968
|
}, null, 8, ["onClick"]),
|
|
14918
14969
|
createElementVNode("div", _hoisted_4$f, [
|
|
14919
14970
|
createVNode(unref(Btn), {
|
|
14920
14971
|
flat: "",
|
|
14972
|
+
thin: "",
|
|
14921
14973
|
class: "month-btn",
|
|
14922
14974
|
onClick: _cache[0] || (_cache[0] = ($event) => currentView.value = "months")
|
|
14923
14975
|
}, {
|
|
@@ -14928,6 +14980,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14928
14980
|
}),
|
|
14929
14981
|
createVNode(unref(Btn), {
|
|
14930
14982
|
flat: "",
|
|
14983
|
+
thin: "",
|
|
14931
14984
|
class: "year-btn",
|
|
14932
14985
|
onClick: _cache[1] || (_cache[1] = ($event) => currentView.value = "years")
|
|
14933
14986
|
}, {
|
|
@@ -14939,18 +14992,21 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14939
14992
|
]),
|
|
14940
14993
|
createVNode(unref(Btn), {
|
|
14941
14994
|
flat: "",
|
|
14995
|
+
thin: "",
|
|
14942
14996
|
icon: "chevron_right",
|
|
14943
14997
|
onClick: unref(nextMonth)
|
|
14944
14998
|
}, null, 8, ["onClick"])
|
|
14945
14999
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
14946
15000
|
createVNode(unref(Btn), {
|
|
14947
15001
|
flat: "",
|
|
15002
|
+
thin: "",
|
|
14948
15003
|
icon: "chevron_left",
|
|
14949
15004
|
onClick: unref(previousYear)
|
|
14950
15005
|
}, null, 8, ["onClick"]),
|
|
14951
15006
|
createElementVNode("span", _hoisted_5$f, toDisplayString(unref(currentMonthValue).formatted.year), 1),
|
|
14952
15007
|
createVNode(unref(Btn), {
|
|
14953
15008
|
flat: "",
|
|
15009
|
+
thin: "",
|
|
14954
15010
|
icon: "chevron_right",
|
|
14955
15011
|
onClick: unref(nextYear)
|
|
14956
15012
|
}, null, 8, ["onClick"])
|
|
@@ -14979,32 +15035,30 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14979
15035
|
}), 128))
|
|
14980
15036
|
])) : currentView.value === "months" ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
14981
15037
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(months), (month) => {
|
|
14982
|
-
return openBlock(),
|
|
15038
|
+
return openBlock(), createBlock(unref(Btn), {
|
|
14983
15039
|
key: month.value,
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
disabled: month.disabled
|
|
14987
|
-
}]),
|
|
15040
|
+
thin: "",
|
|
15041
|
+
flat: month.value !== unref(currentMonthValue).month,
|
|
14988
15042
|
disabled: month.disabled,
|
|
15043
|
+
value: month.name,
|
|
14989
15044
|
onClick: ($event) => unref(selectMonth)(month.value)
|
|
14990
|
-
},
|
|
15045
|
+
}, null, 8, ["flat", "disabled", "value", "onClick"]);
|
|
14991
15046
|
}), 128))
|
|
14992
|
-
])) : (openBlock(), createElementBlock("div",
|
|
15047
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_9$4, [
|
|
14993
15048
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(years), (year) => {
|
|
14994
|
-
return openBlock(),
|
|
15049
|
+
return openBlock(), createBlock(unref(Btn), {
|
|
14995
15050
|
key: year.value,
|
|
14996
|
-
|
|
14997
|
-
|
|
14998
|
-
disabled: year.disabled
|
|
14999
|
-
}]),
|
|
15051
|
+
thin: "",
|
|
15052
|
+
flat: year.value !== unref(currentMonthValue).year,
|
|
15000
15053
|
disabled: year.disabled,
|
|
15054
|
+
value: year.value.toString(),
|
|
15001
15055
|
onClick: ($event) => unref(selectYear)(year.value)
|
|
15002
|
-
},
|
|
15056
|
+
}, null, 8, ["flat", "disabled", "value", "onClick"]);
|
|
15003
15057
|
}), 128))
|
|
15004
15058
|
]))
|
|
15005
15059
|
]),
|
|
15006
|
-
_ctx.enableTime && currentView.value === "days" ? (openBlock(), createElementBlock("div",
|
|
15007
|
-
createElementVNode("div",
|
|
15060
|
+
_ctx.enableTime && currentView.value === "days" ? (openBlock(), createElementBlock("div", _hoisted_10$4, [
|
|
15061
|
+
createElementVNode("div", _hoisted_11$4, [
|
|
15008
15062
|
createVNode(unref(NumberInput), {
|
|
15009
15063
|
center: "",
|
|
15010
15064
|
modelValue: unref(hours),
|
|
@@ -15032,7 +15086,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
15032
15086
|
};
|
|
15033
15087
|
}
|
|
15034
15088
|
});
|
|
15035
|
-
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-
|
|
15089
|
+
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-9c8816c6"]]);
|
|
15036
15090
|
const _hoisted_1$E = ["title"];
|
|
15037
15091
|
const _hoisted_2$s = { key: 0 };
|
|
15038
15092
|
const _hoisted_3$o = {
|
|
@@ -15245,7 +15299,7 @@ const _hoisted_11$3 = {
|
|
|
15245
15299
|
key: 0,
|
|
15246
15300
|
class: "progress"
|
|
15247
15301
|
};
|
|
15248
|
-
const _hoisted_12$
|
|
15302
|
+
const _hoisted_12$3 = {
|
|
15249
15303
|
key: 1,
|
|
15250
15304
|
class: "bgl-single-preview"
|
|
15251
15305
|
};
|
|
@@ -15594,7 +15648,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15594
15648
|
]);
|
|
15595
15649
|
}), 128))
|
|
15596
15650
|
])) : createCommentVNode("", true),
|
|
15597
|
-
!_ctx.multiple && (storageFiles.value.length > 0 || fileQueue.value.length > 0) ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
15651
|
+
!_ctx.multiple && (storageFiles.value.length > 0 || fileQueue.value.length > 0) ? (openBlock(), createElementBlock("div", _hoisted_12$3, [
|
|
15598
15652
|
(openBlock(true), createElementBlock(Fragment, null, renderList(storageFiles.value, (file) => {
|
|
15599
15653
|
return openBlock(), createElementBlock("div", {
|
|
15600
15654
|
key: file.id,
|
|
@@ -27038,7 +27092,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
27038
27092
|
}, [
|
|
27039
27093
|
createElementVNode("label", { for: _ctx.id }, [
|
|
27040
27094
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
27041
|
-
!_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({
|
|
27042
27096
|
key: 0,
|
|
27043
27097
|
id: _ctx.id,
|
|
27044
27098
|
ref_key: "input",
|
|
@@ -27102,7 +27156,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
27102
27156
|
};
|
|
27103
27157
|
}
|
|
27104
27158
|
});
|
|
27105
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
27159
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-da1189c6"]]);
|
|
27106
27160
|
const _hoisted_1$n = ["title"];
|
|
27107
27161
|
const _hoisted_2$d = ["id", "required"];
|
|
27108
27162
|
const _hoisted_3$b = ["for"];
|
|
@@ -27209,7 +27263,7 @@ const _hoisted_11$2 = {
|
|
|
27209
27263
|
key: 0,
|
|
27210
27264
|
class: "progress"
|
|
27211
27265
|
};
|
|
27212
|
-
const _hoisted_12$
|
|
27266
|
+
const _hoisted_12$2 = {
|
|
27213
27267
|
key: 1,
|
|
27214
27268
|
class: "bgl-single-preview"
|
|
27215
27269
|
};
|
|
@@ -27470,7 +27524,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
27470
27524
|
], 6)
|
|
27471
27525
|
], 2);
|
|
27472
27526
|
}), 128))
|
|
27473
|
-
])) : pathKeys.value.length > 0 || fileQueue.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
27527
|
+
])) : pathKeys.value.length > 0 || fileQueue.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_12$2, [
|
|
27474
27528
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pathKeys.value, (path_key) => {
|
|
27475
27529
|
return openBlock(), createElementBlock("div", {
|
|
27476
27530
|
key: path_key,
|
|
@@ -33496,23 +33550,24 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
33496
33550
|
});
|
|
33497
33551
|
}
|
|
33498
33552
|
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$2]]);
|
|
33499
|
-
const _hoisted_1$4 = {
|
|
33553
|
+
const _hoisted_1$4 = { class: "stickyTop" };
|
|
33554
|
+
const _hoisted_2$2 = {
|
|
33500
33555
|
key: 0,
|
|
33501
33556
|
class: "row-number-header bg-white"
|
|
33502
33557
|
};
|
|
33503
|
-
const
|
|
33504
|
-
const
|
|
33505
|
-
const
|
|
33506
|
-
const
|
|
33507
|
-
const
|
|
33508
|
-
const
|
|
33509
|
-
const
|
|
33510
|
-
const
|
|
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 = {
|
|
33511
33566
|
key: 0,
|
|
33512
33567
|
class: "h40px w-100p flex align-items-center justify-content-center overflow-hidden"
|
|
33513
33568
|
};
|
|
33514
|
-
const
|
|
33515
|
-
const
|
|
33569
|
+
const _hoisted_11$1 = ["src", "alt"];
|
|
33570
|
+
const _hoisted_12$1 = {
|
|
33516
33571
|
key: 2,
|
|
33517
33572
|
class: "spreadsheet-cell"
|
|
33518
33573
|
};
|
|
@@ -33529,7 +33584,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
33529
33584
|
selectionStart: {},
|
|
33530
33585
|
selectionEnd: {},
|
|
33531
33586
|
editingCell: {},
|
|
33532
|
-
baseColumnIndex: {}
|
|
33587
|
+
baseColumnIndex: {},
|
|
33588
|
+
wrapText: { type: Boolean }
|
|
33533
33589
|
},
|
|
33534
33590
|
emits: ["sortColumn", "resizeStart", "selectRow", "cellMouseDown", "cellMouseOver", "cellEditStart", "cellKeyDown", "updateCell", "stopEditing", "setInputRef"],
|
|
33535
33591
|
setup(__props) {
|
|
@@ -33584,18 +33640,18 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
33584
33640
|
return openBlock(), createElementBlock("table", {
|
|
33585
33641
|
class: normalizeClass({ "fixed-columns": _ctx.isFixed, "w-100p": !_ctx.isFixed })
|
|
33586
33642
|
}, [
|
|
33587
|
-
createElementVNode("thead",
|
|
33643
|
+
createElementVNode("thead", _hoisted_1$4, [
|
|
33588
33644
|
createElementVNode("tr", null, [
|
|
33589
|
-
_ctx.showRowNumbers ? (openBlock(), createElementBlock("th",
|
|
33645
|
+
_ctx.showRowNumbers ? (openBlock(), createElementBlock("th", _hoisted_2$2)) : createCommentVNode("", true),
|
|
33590
33646
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col) => {
|
|
33591
33647
|
return openBlock(), createElementBlock("th", {
|
|
33592
33648
|
key: col.key,
|
|
33593
33649
|
style: normalizeStyle({ width: _ctx.columnWidths.get(col.key) ? `${_ctx.columnWidths.get(col.key)}px` : col.width })
|
|
33594
33650
|
}, [
|
|
33595
|
-
createElementVNode("div",
|
|
33651
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
33596
33652
|
createElementVNode("span", {
|
|
33597
33653
|
onClick: ($event) => col.sortable && _ctx.$emit("sortColumn", col.key)
|
|
33598
|
-
}, toDisplayString(col.label || col.key), 9,
|
|
33654
|
+
}, toDisplayString(col.label || col.key), 9, _hoisted_4$2),
|
|
33599
33655
|
_ctx.sortColumn === col.key ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
33600
33656
|
key: 0,
|
|
33601
33657
|
class: normalizeClass(["line-height-0 transition-400", { "rotate-180": _ctx.sortDirection === "desc" }]),
|
|
@@ -33604,7 +33660,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
33604
33660
|
createElementVNode("div", {
|
|
33605
33661
|
class: "resize-handle",
|
|
33606
33662
|
onMousedown: withModifiers(($event) => _ctx.$emit("resizeStart", $event, col.key), ["stop"])
|
|
33607
|
-
}, null, 40,
|
|
33663
|
+
}, null, 40, _hoisted_5$2)
|
|
33608
33664
|
])
|
|
33609
33665
|
], 4);
|
|
33610
33666
|
}), 128))
|
|
@@ -33617,13 +33673,14 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
33617
33673
|
key: 0,
|
|
33618
33674
|
class: "row-number txt-center hover user-select-none pointer txt12 regular",
|
|
33619
33675
|
onClick: ($event) => _ctx.$emit("selectRow", rowIndex)
|
|
33620
|
-
}, toDisplayString(rowIndex + 1), 9,
|
|
33676
|
+
}, toDisplayString(rowIndex + 1), 9, _hoisted_6$2)) : createCommentVNode("", true),
|
|
33621
33677
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col, colIndex) => {
|
|
33622
33678
|
return openBlock(), createElementBlock("td", {
|
|
33623
33679
|
key: col.key,
|
|
33624
33680
|
class: normalizeClass({
|
|
33625
|
-
selected: isCellSelected(rowIndex, colIndex),
|
|
33626
|
-
locked: !isCellEditable(col.key)
|
|
33681
|
+
"selected": isCellSelected(rowIndex, colIndex),
|
|
33682
|
+
"locked": !isCellEditable(col.key),
|
|
33683
|
+
"wrap-text": _ctx.wrapText
|
|
33627
33684
|
}),
|
|
33628
33685
|
style: normalizeStyle({ width: _ctx.columnWidths.get(col.key) ? `${_ctx.columnWidths.get(col.key)}px` : col.width }),
|
|
33629
33686
|
tabindex: col.hidden ? void 0 : 0,
|
|
@@ -33648,15 +33705,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
33648
33705
|
],
|
|
33649
33706
|
onMousedown: _cache[3] || (_cache[3] = withModifiers(() => {
|
|
33650
33707
|
}, ["stop"]))
|
|
33651
|
-
}, null, 40,
|
|
33652
|
-
createElementVNode("span",
|
|
33708
|
+
}, null, 40, _hoisted_8$1),
|
|
33709
|
+
createElementVNode("span", _hoisted_9$1, toDisplayString(formatCellValue(row[col.key], col.format)), 1)
|
|
33653
33710
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
33654
|
-
col.format === "image" ? (openBlock(), createElementBlock("div",
|
|
33711
|
+
col.format === "image" ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
33655
33712
|
createElementVNode("img", {
|
|
33656
33713
|
class: "w-100p h-100p contain radius-05",
|
|
33657
33714
|
src: row[col.key],
|
|
33658
33715
|
alt: col.label || col.key
|
|
33659
|
-
}, null, 8,
|
|
33716
|
+
}, null, 8, _hoisted_11$1)
|
|
33660
33717
|
])) : col.format === "boolean" ? (openBlock(), createBlock(unref(CheckInput), {
|
|
33661
33718
|
key: 1,
|
|
33662
33719
|
modelValue: !!row[col.key],
|
|
@@ -33664,9 +33721,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
33664
33721
|
"onUpdate:modelValue": (value) => _ctx.$emit("updateCell", rowIndex, col.key, !!value),
|
|
33665
33722
|
onMousedown: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
33666
33723
|
}, ["stop"]))
|
|
33667
|
-
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])) : (openBlock(), createElementBlock("span",
|
|
33724
|
+
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])) : (openBlock(), createElementBlock("span", _hoisted_12$1, toDisplayString(formatCellValue(row[col.key], col.format)), 1))
|
|
33668
33725
|
], 64))
|
|
33669
|
-
], 46,
|
|
33726
|
+
], 46, _hoisted_7$2);
|
|
33670
33727
|
}), 128))
|
|
33671
33728
|
]);
|
|
33672
33729
|
}), 128))
|
|
@@ -33675,7 +33732,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
33675
33732
|
};
|
|
33676
33733
|
}
|
|
33677
33734
|
});
|
|
33678
|
-
const SpreadsheetTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
33735
|
+
const SpreadsheetTable = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-857ccb8b"]]);
|
|
33679
33736
|
const _hoisted_1$3 = { class: "flex gap-05 py-05 justify-content-end m_flex-wrap" };
|
|
33680
33737
|
const _hoisted_2$1 = {
|
|
33681
33738
|
key: 0,
|
|
@@ -33685,7 +33742,7 @@ const _hoisted_3$1 = { class: "flex gap-075" };
|
|
|
33685
33742
|
const _hoisted_4$1 = { class: "p-05" };
|
|
33686
33743
|
const _hoisted_5$1 = { class: "flex space-between" };
|
|
33687
33744
|
const _hoisted_6$1 = { class: "flex w-100p relative" };
|
|
33688
|
-
const _hoisted_7$1 = { class: "flex-shrink flex-grow
|
|
33745
|
+
const _hoisted_7$1 = { class: "flex-shrink flex-grow" };
|
|
33689
33746
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
33690
33747
|
__name: "Index",
|
|
33691
33748
|
props: {
|
|
@@ -33839,6 +33896,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
33839
33896
|
const isSelecting = ref(false);
|
|
33840
33897
|
const selectionStart = ref(null);
|
|
33841
33898
|
const selectionEnd = ref(null);
|
|
33899
|
+
const wrapText = localRef("wrapText", false);
|
|
33842
33900
|
const editingCell = ref(null);
|
|
33843
33901
|
const editInputRef = ref(/* @__PURE__ */ new Map());
|
|
33844
33902
|
function setInputRef(el, key) {
|
|
@@ -34154,16 +34212,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
34154
34212
|
return columns.value.filter((col) => !col.hidden);
|
|
34155
34213
|
});
|
|
34156
34214
|
return (_ctx, _cache) => {
|
|
34157
|
-
const _directive_tooltip = resolveDirective("tooltip");
|
|
34158
34215
|
return openBlock(), createElementBlock("div", {
|
|
34159
|
-
class: "w-100p
|
|
34216
|
+
class: "w-100p",
|
|
34160
34217
|
tabindex: "-1",
|
|
34161
34218
|
onKeydown: handleSpreadsheetKeyDown
|
|
34162
34219
|
}, [
|
|
34163
34220
|
createElementVNode("div", _hoisted_1$3, [
|
|
34164
34221
|
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$1, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
34165
34222
|
createElementVNode("div", _hoisted_3$1, [
|
|
34166
|
-
createVNode(_sfc_main$W, {
|
|
34223
|
+
createVNode(unref(_sfc_main$W), {
|
|
34167
34224
|
flat: "",
|
|
34168
34225
|
thin: "",
|
|
34169
34226
|
icon: "view_column"
|
|
@@ -34211,44 +34268,42 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
34211
34268
|
placeholder: "Search",
|
|
34212
34269
|
class: "m-0 max-w200px"
|
|
34213
34270
|
}, null, 8, ["modelValue"]),
|
|
34214
|
-
|
|
34215
|
-
flat: "",
|
|
34216
|
-
thin: "",
|
|
34217
|
-
round: "",
|
|
34218
|
-
icon: "paste",
|
|
34219
|
-
onClick: pasteSelection
|
|
34220
|
-
}, null, 512), [
|
|
34221
|
-
[_directive_tooltip, "Paste"]
|
|
34222
|
-
]),
|
|
34223
|
-
withDirectives(createVNode(unref(Btn), {
|
|
34224
|
-
flat: "",
|
|
34225
|
-
thin: "",
|
|
34226
|
-
round: "",
|
|
34227
|
-
icon: "copy",
|
|
34228
|
-
onClick: copySelection
|
|
34229
|
-
}, null, 512), [
|
|
34230
|
-
[_directive_tooltip, "copy"]
|
|
34231
|
-
]),
|
|
34232
|
-
withDirectives(createVNode(unref(Btn), {
|
|
34233
|
-
flat: "",
|
|
34234
|
-
thin: "",
|
|
34235
|
-
round: "",
|
|
34236
|
-
icon: "undo",
|
|
34237
|
-
disabled: !canUndo.value,
|
|
34238
|
-
onClick: undo
|
|
34239
|
-
}, null, 8, ["disabled"]), [
|
|
34240
|
-
[_directive_tooltip, "Undo"]
|
|
34241
|
-
]),
|
|
34242
|
-
withDirectives(createVNode(unref(Btn), {
|
|
34271
|
+
createVNode(unref(_sfc_main$W), {
|
|
34243
34272
|
flat: "",
|
|
34244
34273
|
thin: "",
|
|
34245
|
-
|
|
34246
|
-
|
|
34247
|
-
|
|
34248
|
-
|
|
34249
|
-
|
|
34250
|
-
|
|
34251
|
-
|
|
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
|
+
})
|
|
34252
34307
|
])
|
|
34253
34308
|
]),
|
|
34254
34309
|
createElementVNode("div", {
|
|
@@ -34269,6 +34324,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
34269
34324
|
"selection-end": selectionEnd.value,
|
|
34270
34325
|
"editing-cell": editingCell.value,
|
|
34271
34326
|
"base-column-index": 0,
|
|
34327
|
+
"wrap-text": unref(wrapText),
|
|
34272
34328
|
class: "sticky z-2 start-0 bg-white",
|
|
34273
34329
|
onSortColumn: sortByColumn,
|
|
34274
34330
|
onResizeStart: handleResizeStart,
|
|
@@ -34280,7 +34336,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
34280
34336
|
onUpdateCell: updateCell,
|
|
34281
34337
|
onStopEditing: handleStopEditingAndBlur,
|
|
34282
34338
|
onSetInputRef: setInputRef
|
|
34283
|
-
}, 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),
|
|
34284
34340
|
createElementVNode("div", _hoisted_7$1, [
|
|
34285
34341
|
createVNode(SpreadsheetTable, {
|
|
34286
34342
|
columns: scrollableColumns.value,
|
|
@@ -34294,6 +34350,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
34294
34350
|
"selection-end": selectionEnd.value,
|
|
34295
34351
|
"editing-cell": editingCell.value,
|
|
34296
34352
|
"base-column-index": fixedColumns.value.length,
|
|
34353
|
+
"wrap-text": unref(wrapText),
|
|
34297
34354
|
onSortColumn: sortByColumn,
|
|
34298
34355
|
onResizeStart: handleResizeStart,
|
|
34299
34356
|
onSelectRow: selectEntireRow,
|
|
@@ -34304,7 +34361,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
34304
34361
|
onUpdateCell: updateCell,
|
|
34305
34362
|
onStopEditing: handleStopEditingAndBlur,
|
|
34306
34363
|
onSetInputRef: setInputRef
|
|
34307
|
-
}, 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"])
|
|
34308
34365
|
])
|
|
34309
34366
|
]),
|
|
34310
34367
|
_ctx.allowAddRow ? (openBlock(), createBlock(unref(Btn), {
|
|
@@ -34322,7 +34379,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
34322
34379
|
};
|
|
34323
34380
|
}
|
|
34324
34381
|
});
|
|
34325
|
-
const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
34382
|
+
const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a7d01d6e"]]);
|
|
34326
34383
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
34327
34384
|
__name: "Title",
|
|
34328
34385
|
props: {
|