@bagelink/vue 0.0.1165 → 0.0.1169
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/Carousel.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/composables/useEditor.d.ts.map +1 -1
- package/dist/index.cjs +7 -12
- package/dist/index.mjs +7 -12
- package/dist/plugins/modal.d.ts +1 -1
- package/dist/plugins/modal.d.ts.map +1 -1
- package/dist/style.css +58 -58
- package/package.json +1 -1
- package/src/components/Carousel.vue +3 -9
- package/src/components/DataTable/DataTable.vue +2 -3
- package/src/components/ModalForm.vue +3 -3
- package/src/plugins/modal.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Carousel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Carousel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Carousel.vue"],"names":[],"mappings":"AAuyBA,iBAAS,IAAI,SAIZ;AAED,iBAAS,IAAI,SAIZ;AA8YD,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAbrB,GAAG;;;;YACN,GAAG;;;;YACH,GAAG;;;;;;EAgB5B;AAmCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmBnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.vue"],"names":[],"mappings":"AAydA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAW/D,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,eAAe,EAAE,CAAA;yBAEtC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA2U1D,mBAAmB,CAAC;;;;;;;;;;wBArNV,MAAM,EAAE;0CAqNoE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;UAnD0E,GAAG;UAqDjF,uXAAoC;OAG/B,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AArVzE,wBAqV4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/composables/useEditor.ts"],"names":[],"mappings":"AAuBA,wBAAgB,SAAS;;iBAff,MAAM;aACV,QAAQ,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAGX,OAAO;qBACR,OAAO;oBACR,OAAO;iBACV,OAAO;mBACL,MAAM,EAAE;mBACR,MAAM,EAAE;oBACP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/composables/useEditor.ts"],"names":[],"mappings":"AAuBA,wBAAgB,SAAS;;iBAff,MAAM;aACV,QAAQ,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAGX,OAAO;qBACR,OAAO;oBACR,OAAO;iBACV,OAAO;mBACL,MAAM,EAAE;mBACR,MAAM,EAAE;oBACP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA6DR,CAAC;;;oFAG4B,CAAC;;;6BAMvB,CAAA;;;;;;;;;;;gBA4GE,QAAQ;kCAmCU,MAAM,UAAU,MAAM;4BAhK5B,MAAM,GAAG,MAAM;;;;;;;8BAwQjB,MAAM,UAAU,MAAM;0CACV,MAAM;;EAkB/C"}
|
package/dist/index.cjs
CHANGED
|
@@ -774,7 +774,6 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
774
774
|
let translateX2 = vue.ref(0);
|
|
775
775
|
let lastX = vue.ref(0);
|
|
776
776
|
let lastTime = vue.ref(0);
|
|
777
|
-
let swipeVelocity = vue.ref(0);
|
|
778
777
|
let accumulatedDeltaX = vue.ref(0);
|
|
779
778
|
let wheelTimeout;
|
|
780
779
|
let autoPlayInterval;
|
|
@@ -962,7 +961,6 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
962
961
|
lastTime.value = Date.now();
|
|
963
962
|
translateX2.value = getCurrentTransform();
|
|
964
963
|
velocityTracker.value = [{ time: lastTime.value, position: lastX.value }];
|
|
965
|
-
swipeVelocity.value = 0;
|
|
966
964
|
isPressed.value = true;
|
|
967
965
|
hasScrollDirectionLock.value = false;
|
|
968
966
|
if (bglSlider.value) {
|
|
@@ -994,7 +992,6 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
994
992
|
lastX.value = x2;
|
|
995
993
|
const cutoffTime = now - VELOCITY_SAMPLE_DURATION;
|
|
996
994
|
velocityTracker.value = velocityTracker.value.filter((sample) => sample.time >= cutoffTime);
|
|
997
|
-
swipeVelocity.value = getAverageVelocity();
|
|
998
995
|
if (Math.abs(deltaX) > THRESHOLDS.TOUCH) {
|
|
999
996
|
isDragging.value = true;
|
|
1000
997
|
e.preventDefault();
|
|
@@ -1073,7 +1070,6 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
1073
1070
|
if (bglSlider.value) bglSlider.value.style.transition = "none";
|
|
1074
1071
|
}, duration);
|
|
1075
1072
|
velocityTracker.value = [];
|
|
1076
|
-
swipeVelocity.value = 0;
|
|
1077
1073
|
isDragging.value = false;
|
|
1078
1074
|
hasScrollDirectionLock.value = false;
|
|
1079
1075
|
}
|
|
@@ -1176,7 +1172,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
1176
1172
|
};
|
|
1177
1173
|
}
|
|
1178
1174
|
});
|
|
1179
|
-
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-
|
|
1175
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-519e4d32"]]);
|
|
1180
1176
|
function _isPlaceholder(a2) {
|
|
1181
1177
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
1182
1178
|
}
|
|
@@ -8183,7 +8179,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
8183
8179
|
emits: /* @__PURE__ */ vue.mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
8184
8180
|
setup(__props, { emit: __emit }) {
|
|
8185
8181
|
vue.useCssVars((_ctx) => ({
|
|
8186
|
-
"
|
|
8182
|
+
"0c6a620a": vue.unref(computedItemHeight)
|
|
8187
8183
|
}));
|
|
8188
8184
|
const props2 = __props;
|
|
8189
8185
|
const emit2 = __emit;
|
|
@@ -8198,7 +8194,6 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
8198
8194
|
}
|
|
8199
8195
|
);
|
|
8200
8196
|
const data2 = vue.computed(() => props2.data);
|
|
8201
|
-
vue.ref("");
|
|
8202
8197
|
const {
|
|
8203
8198
|
computedSchema,
|
|
8204
8199
|
computedData,
|
|
@@ -8249,7 +8244,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
8249
8244
|
mode: "table",
|
|
8250
8245
|
getRowData: () => row
|
|
8251
8246
|
});
|
|
8252
|
-
return renderField(field, slots);
|
|
8247
|
+
return renderField({ ...field, label: "" }, slots);
|
|
8253
8248
|
}
|
|
8254
8249
|
const computedItemHeight = vue.computed(() => `${itemHeight.value}px`);
|
|
8255
8250
|
vue.watch(
|
|
@@ -8363,7 +8358,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
8363
8358
|
};
|
|
8364
8359
|
}
|
|
8365
8360
|
});
|
|
8366
|
-
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-
|
|
8361
|
+
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-a1cf8002"]]);
|
|
8367
8362
|
function useDraggable(options = {}) {
|
|
8368
8363
|
const isDragging = vue.ref(false);
|
|
8369
8364
|
const dragElement = vue.ref(null);
|
|
@@ -38245,7 +38240,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
38245
38240
|
}
|
|
38246
38241
|
function runDelete() {
|
|
38247
38242
|
var _a2;
|
|
38248
|
-
(_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, formData.value
|
|
38243
|
+
(_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, formData.value);
|
|
38249
38244
|
closeModal();
|
|
38250
38245
|
}
|
|
38251
38246
|
function setFormValues(values3) {
|
|
@@ -38286,7 +38281,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
38286
38281
|
value: _ctx.cancelText || "Cancel",
|
|
38287
38282
|
onClick: closeModal
|
|
38288
38283
|
}, null, 8, ["value"]),
|
|
38289
|
-
_ctx.onDelete
|
|
38284
|
+
_ctx.onDelete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
38290
38285
|
key: 0,
|
|
38291
38286
|
thin: "",
|
|
38292
38287
|
icon: "delete",
|
|
@@ -38319,7 +38314,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
38319
38314
|
};
|
|
38320
38315
|
}
|
|
38321
38316
|
});
|
|
38322
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
38317
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-7a736620"]]);
|
|
38323
38318
|
const _hoisted_1$5 = { class: "full-nav" };
|
|
38324
38319
|
const _hoisted_2$3 = { class: "nav-scroll" };
|
|
38325
38320
|
const _hoisted_3$2 = { class: "nav-links-wrapper" };
|
package/dist/index.mjs
CHANGED
|
@@ -772,7 +772,6 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
772
772
|
let translateX2 = ref(0);
|
|
773
773
|
let lastX = ref(0);
|
|
774
774
|
let lastTime = ref(0);
|
|
775
|
-
let swipeVelocity = ref(0);
|
|
776
775
|
let accumulatedDeltaX = ref(0);
|
|
777
776
|
let wheelTimeout;
|
|
778
777
|
let autoPlayInterval;
|
|
@@ -960,7 +959,6 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
960
959
|
lastTime.value = Date.now();
|
|
961
960
|
translateX2.value = getCurrentTransform();
|
|
962
961
|
velocityTracker.value = [{ time: lastTime.value, position: lastX.value }];
|
|
963
|
-
swipeVelocity.value = 0;
|
|
964
962
|
isPressed.value = true;
|
|
965
963
|
hasScrollDirectionLock.value = false;
|
|
966
964
|
if (bglSlider.value) {
|
|
@@ -992,7 +990,6 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
992
990
|
lastX.value = x2;
|
|
993
991
|
const cutoffTime = now - VELOCITY_SAMPLE_DURATION;
|
|
994
992
|
velocityTracker.value = velocityTracker.value.filter((sample) => sample.time >= cutoffTime);
|
|
995
|
-
swipeVelocity.value = getAverageVelocity();
|
|
996
993
|
if (Math.abs(deltaX) > THRESHOLDS.TOUCH) {
|
|
997
994
|
isDragging.value = true;
|
|
998
995
|
e.preventDefault();
|
|
@@ -1071,7 +1068,6 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
1071
1068
|
if (bglSlider.value) bglSlider.value.style.transition = "none";
|
|
1072
1069
|
}, duration);
|
|
1073
1070
|
velocityTracker.value = [];
|
|
1074
|
-
swipeVelocity.value = 0;
|
|
1075
1071
|
isDragging.value = false;
|
|
1076
1072
|
hasScrollDirectionLock.value = false;
|
|
1077
1073
|
}
|
|
@@ -1174,7 +1170,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
1174
1170
|
};
|
|
1175
1171
|
}
|
|
1176
1172
|
});
|
|
1177
|
-
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-
|
|
1173
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-519e4d32"]]);
|
|
1178
1174
|
function _isPlaceholder(a2) {
|
|
1179
1175
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
1180
1176
|
}
|
|
@@ -8181,7 +8177,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
8181
8177
|
emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
8182
8178
|
setup(__props, { emit: __emit }) {
|
|
8183
8179
|
useCssVars((_ctx) => ({
|
|
8184
|
-
"
|
|
8180
|
+
"0c6a620a": unref(computedItemHeight)
|
|
8185
8181
|
}));
|
|
8186
8182
|
const props2 = __props;
|
|
8187
8183
|
const emit2 = __emit;
|
|
@@ -8196,7 +8192,6 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
8196
8192
|
}
|
|
8197
8193
|
);
|
|
8198
8194
|
const data2 = computed(() => props2.data);
|
|
8199
|
-
ref("");
|
|
8200
8195
|
const {
|
|
8201
8196
|
computedSchema,
|
|
8202
8197
|
computedData,
|
|
@@ -8247,7 +8242,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
8247
8242
|
mode: "table",
|
|
8248
8243
|
getRowData: () => row
|
|
8249
8244
|
});
|
|
8250
|
-
return renderField(field, slots);
|
|
8245
|
+
return renderField({ ...field, label: "" }, slots);
|
|
8251
8246
|
}
|
|
8252
8247
|
const computedItemHeight = computed(() => `${itemHeight.value}px`);
|
|
8253
8248
|
watch(
|
|
@@ -8361,7 +8356,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
8361
8356
|
};
|
|
8362
8357
|
}
|
|
8363
8358
|
});
|
|
8364
|
-
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-
|
|
8359
|
+
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-a1cf8002"]]);
|
|
8365
8360
|
function useDraggable(options = {}) {
|
|
8366
8361
|
const isDragging = ref(false);
|
|
8367
8362
|
const dragElement = ref(null);
|
|
@@ -38243,7 +38238,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
38243
38238
|
}
|
|
38244
38239
|
function runDelete() {
|
|
38245
38240
|
var _a2;
|
|
38246
|
-
(_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, formData.value
|
|
38241
|
+
(_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, formData.value);
|
|
38247
38242
|
closeModal();
|
|
38248
38243
|
}
|
|
38249
38244
|
function setFormValues(values3) {
|
|
@@ -38284,7 +38279,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
38284
38279
|
value: _ctx.cancelText || "Cancel",
|
|
38285
38280
|
onClick: closeModal
|
|
38286
38281
|
}, null, 8, ["value"]),
|
|
38287
|
-
_ctx.onDelete
|
|
38282
|
+
_ctx.onDelete ? (openBlock(), createBlock(unref(Btn), {
|
|
38288
38283
|
key: 0,
|
|
38289
38284
|
thin: "",
|
|
38290
38285
|
icon: "delete",
|
|
@@ -38317,7 +38312,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
38317
38312
|
};
|
|
38318
38313
|
}
|
|
38319
38314
|
});
|
|
38320
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
38315
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-7a736620"]]);
|
|
38321
38316
|
const _hoisted_1$5 = { class: "full-nav" };
|
|
38322
38317
|
const _hoisted_2$3 = { class: "nav-scroll" };
|
|
38323
38318
|
const _hoisted_3$2 = { class: "nav-links-wrapper" };
|
package/dist/plugins/modal.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface ModalFormOptions extends ModalOptions {
|
|
|
16
16
|
'cancelText'?: string;
|
|
17
17
|
'deleteText'?: string;
|
|
18
18
|
'duplicateText'?: string;
|
|
19
|
-
'onDelete'?: (
|
|
19
|
+
'onDelete'?: (formData: any) => Promise<void>;
|
|
20
20
|
'onDuplicate'?: (formData: any) => Promise<void>;
|
|
21
21
|
'onError'?: (err: any) => void;
|
|
22
22
|
'modelValue'?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/plugins/modal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAK/C,MAAM,WAAW,YAAY;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACrD,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAA;IAC/B,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAA;IACnC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,CAAC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/plugins/modal.ts"],"names":[],"mappings":"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"}
|
package/dist/style.css
CHANGED
|
@@ -356,13 +356,13 @@ display: block;
|
|
|
356
356
|
padding: 0;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
.BglCarousel[data-v-
|
|
359
|
+
.BglCarousel[data-v-519e4d32] {
|
|
360
360
|
position: relative;
|
|
361
361
|
width: 100%;
|
|
362
362
|
overflow: hidden;
|
|
363
363
|
touch-action: pan-y pinch-zoom; /* Allow vertical scrolling */
|
|
364
364
|
}
|
|
365
|
-
.bgl-slider[data-v-
|
|
365
|
+
.bgl-slider[data-v-519e4d32] {
|
|
366
366
|
display: flex;
|
|
367
367
|
position: relative;
|
|
368
368
|
width: 100%;
|
|
@@ -375,26 +375,26 @@ display: block;
|
|
|
375
375
|
-webkit-user-select: none;
|
|
376
376
|
user-select: none;
|
|
377
377
|
}
|
|
378
|
-
.bgl-slider[data-v-
|
|
378
|
+
.bgl-slider[data-v-519e4d32] > * {
|
|
379
379
|
flex: 0 0 calc((100% - (var(--item-count) - 1) * 1%) / var(--item-count));
|
|
380
380
|
width: calc((100% - (var(--item-count) - 1) * 1%) / var(--item-count));
|
|
381
381
|
min-width: calc((100% - (var(--item-count) - 1) * 1%) / var(--item-count));
|
|
382
382
|
position: relative;
|
|
383
383
|
overflow: hidden;
|
|
384
384
|
}
|
|
385
|
-
.bgl-slider.slides-1[data-v-
|
|
385
|
+
.bgl-slider.slides-1[data-v-519e4d32] > * {
|
|
386
386
|
flex: 0 0 100%;
|
|
387
387
|
width: 100%;
|
|
388
388
|
min-width: 100%;
|
|
389
389
|
}
|
|
390
|
-
.dragging .bgl-slider[data-v-
|
|
390
|
+
.dragging .bgl-slider[data-v-519e4d32] > * {
|
|
391
391
|
pointer-events: none;
|
|
392
392
|
user-select: none;
|
|
393
393
|
}
|
|
394
|
-
.autoHeight[data-v-
|
|
394
|
+
.autoHeight[data-v-519e4d32] {
|
|
395
395
|
transition: height ease 0.7s;
|
|
396
396
|
}
|
|
397
|
-
.dots[data-v-
|
|
397
|
+
.dots[data-v-519e4d32] {
|
|
398
398
|
display: flex;
|
|
399
399
|
justify-content: center;
|
|
400
400
|
align-items: center;
|
|
@@ -402,7 +402,7 @@ display: block;
|
|
|
402
402
|
margin-top: 1rem;
|
|
403
403
|
gap: 8px;
|
|
404
404
|
}
|
|
405
|
-
.dot[data-v-
|
|
405
|
+
.dot[data-v-519e4d32] {
|
|
406
406
|
height: 10px;
|
|
407
407
|
width: 10px;
|
|
408
408
|
border-radius: 50%;
|
|
@@ -411,10 +411,10 @@ display: block;
|
|
|
411
411
|
transition: opacity 0.3s ease;
|
|
412
412
|
cursor: pointer;
|
|
413
413
|
}
|
|
414
|
-
.dot[data-v-
|
|
414
|
+
.dot[data-v-519e4d32]:hover {
|
|
415
415
|
opacity: 0.6;
|
|
416
416
|
}
|
|
417
|
-
.dot.current[data-v-
|
|
417
|
+
.dot.current[data-v-519e4d32] {
|
|
418
418
|
opacity: 0.8;
|
|
419
419
|
}
|
|
420
420
|
|
|
@@ -472,22 +472,22 @@ display: block;
|
|
|
472
472
|
font-size: 0.95rem;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
-
.table-list-wrap[data-v-
|
|
475
|
+
.table-list-wrap[data-v-a1cf8002] {
|
|
476
476
|
min-height: 150px;
|
|
477
477
|
}
|
|
478
|
-
.selected[data-v-
|
|
478
|
+
.selected[data-v-a1cf8002] {
|
|
479
479
|
background: var(--bgl-primary-tint);
|
|
480
480
|
}
|
|
481
|
-
tbody tr.selected[data-v-
|
|
481
|
+
tbody tr.selected[data-v-a1cf8002]:hover {
|
|
482
482
|
background: var(--bgl-primary-light);
|
|
483
483
|
}
|
|
484
|
-
.loading-table[data-v-
|
|
484
|
+
.loading-table[data-v-a1cf8002] {
|
|
485
485
|
position: relative;
|
|
486
486
|
}
|
|
487
|
-
.inset[data-v-
|
|
487
|
+
.inset[data-v-a1cf8002] {
|
|
488
488
|
inset: 0;
|
|
489
489
|
}
|
|
490
|
-
.loading-table-animation[data-v-
|
|
490
|
+
.loading-table-animation[data-v-a1cf8002] {
|
|
491
491
|
--size: 60px;
|
|
492
492
|
top: 30vh;
|
|
493
493
|
inset-inline-start: calc(50% - var(--size));
|
|
@@ -495,9 +495,9 @@ tbody tr.selected[data-v-18572328]:hover {
|
|
|
495
495
|
border-top: 4px solid var(--bgl-primary);
|
|
496
496
|
width: var(--size);
|
|
497
497
|
height: var(--size);
|
|
498
|
-
animation: loading-table-
|
|
498
|
+
animation: loading-table-a1cf8002 1s linear infinite;
|
|
499
499
|
}
|
|
500
|
-
@keyframes loading-table-
|
|
500
|
+
@keyframes loading-table-a1cf8002 {
|
|
501
501
|
0% {
|
|
502
502
|
transform: translate(-50%, -50%) rotate(0deg);
|
|
503
503
|
}
|
|
@@ -505,51 +505,51 @@ tbody tr.selected[data-v-18572328]:hover {
|
|
|
505
505
|
transform: translate(-50%, -50%) rotate(360deg);
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
.list-arrows[data-v-
|
|
508
|
+
.list-arrows[data-v-a1cf8002] {
|
|
509
509
|
opacity: 0;
|
|
510
510
|
}
|
|
511
|
-
.list-arrows .bgl_icon-font[data-v-
|
|
511
|
+
.list-arrows .bgl_icon-font[data-v-a1cf8002] {
|
|
512
512
|
transition: all ease-in-out 0.2s;
|
|
513
513
|
}
|
|
514
|
-
.list-arrows.sorted[data-v-
|
|
514
|
+
.list-arrows.sorted[data-v-a1cf8002] {
|
|
515
515
|
opacity: 1;
|
|
516
516
|
}
|
|
517
|
-
.col img[data-v-
|
|
517
|
+
.col img[data-v-a1cf8002] {
|
|
518
518
|
height: 35px;
|
|
519
519
|
margin-top: -14px;
|
|
520
520
|
margin-bottom: -14px;
|
|
521
521
|
border-radius: 5px;
|
|
522
522
|
}
|
|
523
|
-
.list-arrows.sorted .desc[data-v-
|
|
523
|
+
.list-arrows.sorted .desc[data-v-a1cf8002] {
|
|
524
524
|
transform: rotate(180deg);
|
|
525
525
|
display: inline-block;
|
|
526
526
|
}
|
|
527
|
-
table[data-v-
|
|
527
|
+
table[data-v-a1cf8002] {
|
|
528
528
|
border-spacing: 0 15px;
|
|
529
529
|
border-collapse: collapse;
|
|
530
530
|
width: 100%;
|
|
531
531
|
}
|
|
532
|
-
th[data-v-
|
|
532
|
+
th[data-v-a1cf8002] {
|
|
533
533
|
font-size: 0.8rem;
|
|
534
534
|
color: var(--bgl-black-tint);
|
|
535
535
|
position: sticky;
|
|
536
536
|
top: 0;
|
|
537
537
|
z-index: 2;
|
|
538
538
|
background: var(--bgl-box-bg);
|
|
539
|
-
height: var(--
|
|
539
|
+
height: var(--0c6a620a);
|
|
540
540
|
vertical-align: bottom;
|
|
541
541
|
font-weight: 400;
|
|
542
542
|
text-align: start;
|
|
543
543
|
}
|
|
544
|
-
.embedded-field[data-v-
|
|
544
|
+
.embedded-field[data-v-a1cf8002] {
|
|
545
545
|
margin-bottom: -0.2rem;
|
|
546
546
|
margin-top: -0.2rem;
|
|
547
547
|
}
|
|
548
|
-
.row[data-v-
|
|
548
|
+
.row[data-v-a1cf8002] {
|
|
549
549
|
border-bottom: 1px solid var(--border-color);
|
|
550
550
|
cursor: pointer;
|
|
551
551
|
}
|
|
552
|
-
.row.first-row[data-v-
|
|
552
|
+
.row.first-row[data-v-a1cf8002] {
|
|
553
553
|
font-size: 0.8rem;
|
|
554
554
|
color: var(--bgl-black-tint);
|
|
555
555
|
position: sticky;
|
|
@@ -558,7 +558,7 @@ th[data-v-18572328] {
|
|
|
558
558
|
background: var(--bgl-box-bg);
|
|
559
559
|
vertical-align: bottom;
|
|
560
560
|
}
|
|
561
|
-
.row.first-row[data-v-
|
|
561
|
+
.row.first-row[data-v-a1cf8002]::after {
|
|
562
562
|
content: '';
|
|
563
563
|
border-bottom: 1px solid var(--border-color);
|
|
564
564
|
position: absolute;
|
|
@@ -566,11 +566,11 @@ th[data-v-18572328] {
|
|
|
566
566
|
right: 0;
|
|
567
567
|
bottom: -1px;
|
|
568
568
|
}
|
|
569
|
-
.first-row .col[data-v-
|
|
569
|
+
.first-row .col[data-v-a1cf8002] {
|
|
570
570
|
cursor: pointer;
|
|
571
571
|
background: var(--bgl-box-bg);
|
|
572
572
|
}
|
|
573
|
-
.col[data-v-
|
|
573
|
+
.col[data-v-a1cf8002] {
|
|
574
574
|
white-space: nowrap;
|
|
575
575
|
padding: 0.75rem 1rem;
|
|
576
576
|
transition: var(--bgl-transition);
|
|
@@ -580,19 +580,19 @@ th[data-v-18572328] {
|
|
|
580
580
|
overflow: hidden;
|
|
581
581
|
max-width: 30vw;
|
|
582
582
|
}
|
|
583
|
-
.col[data-v-
|
|
583
|
+
.col[data-v-a1cf8002]:has(.bagel-input) {
|
|
584
584
|
padding: 0rem 0.25rem;
|
|
585
585
|
}
|
|
586
|
-
.col > div[data-v-
|
|
586
|
+
.col > div[data-v-a1cf8002] {
|
|
587
587
|
display: flex;
|
|
588
588
|
gap: 0.5rem;
|
|
589
589
|
}
|
|
590
|
-
.max-col-width[data-v-
|
|
590
|
+
.max-col-width[data-v-a1cf8002] {
|
|
591
591
|
max-width: 30vw;
|
|
592
592
|
overflow: hidden;
|
|
593
593
|
text-overflow: ellipsis;
|
|
594
594
|
}
|
|
595
|
-
.col.check .bgl_icon-font[data-v-
|
|
595
|
+
.col.check .bgl_icon-font[data-v-a1cf8002] {
|
|
596
596
|
border-radius: 100%;
|
|
597
597
|
background: var(--bgl-blue-20);
|
|
598
598
|
color: var(--bgl-primary);
|
|
@@ -603,35 +603,35 @@ th[data-v-18572328] {
|
|
|
603
603
|
justify-content: center;
|
|
604
604
|
margin-top: -2px;
|
|
605
605
|
}
|
|
606
|
-
.rows[data-v-
|
|
606
|
+
.rows[data-v-a1cf8002] {
|
|
607
607
|
font-size: 0.88em;
|
|
608
608
|
}
|
|
609
|
-
.table-list[data-v-
|
|
609
|
+
.table-list[data-v-a1cf8002] {
|
|
610
610
|
height: 100%;
|
|
611
611
|
position: relative;
|
|
612
612
|
padding-left: 0 !important;
|
|
613
613
|
padding-right: 0 !important;
|
|
614
614
|
overflow: auto;
|
|
615
615
|
}
|
|
616
|
-
.BagelTable .table-list[data-v-
|
|
616
|
+
.BagelTable .table-list[data-v-a1cf8002] {
|
|
617
617
|
overflow: unset;
|
|
618
618
|
}
|
|
619
|
-
.row-item[data-v-
|
|
620
|
-
height: var(--
|
|
619
|
+
.row-item[data-v-a1cf8002] {
|
|
620
|
+
height: var(--0c6a620a);
|
|
621
621
|
transition: all 200ms ease;
|
|
622
622
|
}
|
|
623
|
-
.row-item[data-v-
|
|
623
|
+
.row-item[data-v-a1cf8002]:hover {
|
|
624
624
|
background: var(--bgl-gray-light);
|
|
625
625
|
}
|
|
626
|
-
.row-item input[type='checkbox'][data-v-
|
|
626
|
+
.row-item input[type='checkbox'][data-v-a1cf8002] {
|
|
627
627
|
margin-top: 0.45rem !important;
|
|
628
628
|
accent-color: var(--bgl-accent-color);
|
|
629
629
|
}
|
|
630
|
-
.infinite-wrapper[data-v-
|
|
630
|
+
.infinite-wrapper[data-v-a1cf8002] {
|
|
631
631
|
overflow-y: auto;
|
|
632
632
|
width: 100%;
|
|
633
633
|
}
|
|
634
|
-
input[type='checkbox'][data-v-
|
|
634
|
+
input[type='checkbox'][data-v-a1cf8002] {
|
|
635
635
|
margin-top: 0.3rem !important;
|
|
636
636
|
accent-color: var(--bgl-accent-color);
|
|
637
637
|
transform: scale(1.2);
|
|
@@ -643,7 +643,7 @@ input[type='checkbox'][data-v-18572328] {
|
|
|
643
643
|
height: 0.85rem;
|
|
644
644
|
width: 0.85rem;
|
|
645
645
|
}
|
|
646
|
-
input[type='checkbox'][data-v-
|
|
646
|
+
input[type='checkbox'][data-v-a1cf8002]::before {
|
|
647
647
|
content: '';
|
|
648
648
|
height: 0.85rem;
|
|
649
649
|
width: 0.85rem;
|
|
@@ -656,18 +656,18 @@ input[type='checkbox'][data-v-18572328]::before {
|
|
|
656
656
|
transform: scale(1);
|
|
657
657
|
position: absolute;
|
|
658
658
|
}
|
|
659
|
-
input[type='checkbox'][data-v-
|
|
659
|
+
input[type='checkbox'][data-v-a1cf8002]:hover::before {
|
|
660
660
|
opacity: 0.2;
|
|
661
661
|
transform: scale(2);
|
|
662
662
|
}
|
|
663
|
-
[lang='he'] [dir='ltr'][data-v-
|
|
663
|
+
[lang='he'] [dir='ltr'][data-v-a1cf8002] {
|
|
664
664
|
text-align: right;
|
|
665
665
|
}
|
|
666
|
-
th input[type='checkbox'][data-v-
|
|
666
|
+
th input[type='checkbox'][data-v-a1cf8002] {
|
|
667
667
|
transform: translateY(0.2rem) scale(1.2);
|
|
668
668
|
accent-color: var(--bgl-accent-color);
|
|
669
669
|
}
|
|
670
|
-
th[data-v-
|
|
670
|
+
th[data-v-a1cf8002]::after {
|
|
671
671
|
content: '';
|
|
672
672
|
border-bottom: 1px solid var(--border-color);
|
|
673
673
|
position: absolute;
|
|
@@ -675,24 +675,24 @@ th[data-v-18572328]::after {
|
|
|
675
675
|
right: 0;
|
|
676
676
|
bottom: -1px;
|
|
677
677
|
}
|
|
678
|
-
tr[data-v-
|
|
678
|
+
tr[data-v-a1cf8002] {
|
|
679
679
|
border-bottom: 1px solid var(--border-color);
|
|
680
680
|
cursor: pointer;
|
|
681
681
|
align-items: center;
|
|
682
682
|
}
|
|
683
|
-
td[data-v-
|
|
684
|
-
th[data-v-
|
|
683
|
+
td[data-v-a1cf8002],
|
|
684
|
+
th[data-v-a1cf8002] {
|
|
685
685
|
white-space: nowrap;
|
|
686
686
|
padding: 0.75rem 0.65rem;
|
|
687
687
|
transition: var(--bgl-transition);
|
|
688
688
|
line-height: 1;
|
|
689
689
|
}
|
|
690
|
-
tbody tr[data-v-
|
|
690
|
+
tbody tr[data-v-a1cf8002] {
|
|
691
691
|
font-size: 0.88em;
|
|
692
|
-
height: var(--
|
|
692
|
+
height: var(--0c6a620a);
|
|
693
693
|
transition: all 200ms ease;
|
|
694
694
|
}
|
|
695
|
-
tbody tr[data-v-
|
|
695
|
+
tbody tr[data-v-a1cf8002]:hover {
|
|
696
696
|
background: var(--bgl-gray-light);
|
|
697
697
|
}
|
|
698
698
|
|
|
@@ -3437,11 +3437,11 @@ body:has(.bg-dark.is-active) {
|
|
|
3437
3437
|
border-radius: var(--card-border-radius);
|
|
3438
3438
|
}
|
|
3439
3439
|
|
|
3440
|
-
.modal-title[data-v-
|
|
3440
|
+
.modal-title[data-v-7a736620] {
|
|
3441
3441
|
margin-top: 0.5rem;
|
|
3442
3442
|
}
|
|
3443
3443
|
@media screen and (max-width: 910px) {
|
|
3444
|
-
.modal-title[data-v-
|
|
3444
|
+
.modal-title[data-v-7a736620] {
|
|
3445
3445
|
margin-top: 1rem;
|
|
3446
3446
|
}
|
|
3447
3447
|
}
|
package/package.json
CHANGED
|
@@ -53,12 +53,11 @@ let startY = $ref(0)
|
|
|
53
53
|
let translateX = $ref(0)
|
|
54
54
|
let lastX = $ref(0)
|
|
55
55
|
let lastTime = $ref(0)
|
|
56
|
-
let swipeVelocity = $ref(0)
|
|
57
56
|
let accumulatedDeltaX = $ref(0)
|
|
58
57
|
|
|
59
|
-
let timeout: NodeJS.Timeout
|
|
60
|
-
let wheelTimeout: NodeJS.Timeout
|
|
61
|
-
let autoPlayInterval: NodeJS.Timeout
|
|
58
|
+
let timeout: NodeJS.Timeout | undefined
|
|
59
|
+
let wheelTimeout: NodeJS.Timeout | undefined
|
|
60
|
+
let autoPlayInterval: NodeJS.Timeout | undefined
|
|
62
61
|
|
|
63
62
|
// Add interface for velocity tracking
|
|
64
63
|
interface VelocitySample {
|
|
@@ -319,7 +318,6 @@ function onTouchStart(e: TouchEvent) {
|
|
|
319
318
|
lastTime = Date.now()
|
|
320
319
|
translateX = getCurrentTransform()
|
|
321
320
|
velocityTracker = [{ time: lastTime, position: lastX }]
|
|
322
|
-
swipeVelocity = 0
|
|
323
321
|
isPressed = true
|
|
324
322
|
hasScrollDirectionLock = false
|
|
325
323
|
|
|
@@ -368,9 +366,6 @@ function onTouchMove(e: TouchEvent) {
|
|
|
368
366
|
const cutoffTime = now - VELOCITY_SAMPLE_DURATION
|
|
369
367
|
velocityTracker = velocityTracker.filter((sample: VelocitySample) => sample.time >= cutoffTime)
|
|
370
368
|
|
|
371
|
-
// Calculate instantaneous velocity for immediate feedback
|
|
372
|
-
swipeVelocity = getAverageVelocity()
|
|
373
|
-
|
|
374
369
|
if (Math.abs(deltaX) > THRESHOLDS.TOUCH) {
|
|
375
370
|
isDragging = true
|
|
376
371
|
e.preventDefault() // Only prevent default if we're sure it's a horizontal drag
|
|
@@ -486,7 +481,6 @@ function onTouchEnd() {
|
|
|
486
481
|
}, duration)
|
|
487
482
|
|
|
488
483
|
velocityTracker = []
|
|
489
|
-
swipeVelocity = 0
|
|
490
484
|
isDragging = false
|
|
491
485
|
hasScrollDirectionLock = false
|
|
492
486
|
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
Icon,
|
|
7
7
|
keyToLabel,
|
|
8
8
|
} from '@bagelink/vue'
|
|
9
|
-
import { useSlots, watch, computed
|
|
9
|
+
import { useSlots, watch, computed } from 'vue'
|
|
10
10
|
import { useSchemaField } from '../../composables/useSchemaField'
|
|
11
11
|
import { useTableData } from './useTableData'
|
|
12
12
|
import { useTableSelection } from './useTableSelection'
|
|
@@ -37,7 +37,6 @@ const selectedItems = defineModel<string[]>(
|
|
|
37
37
|
)
|
|
38
38
|
|
|
39
39
|
const data = computed(() => props.data)
|
|
40
|
-
const currentRowId = ref<string>('')
|
|
41
40
|
|
|
42
41
|
const {
|
|
43
42
|
computedSchema,
|
|
@@ -89,7 +88,7 @@ function renderFieldForRow(field: BaseBagelField<T>, row: T) {
|
|
|
89
88
|
mode: 'table',
|
|
90
89
|
getRowData: () => row
|
|
91
90
|
})
|
|
92
|
-
return renderField(field, slots)
|
|
91
|
+
return renderField({ ...field, label: '' }, slots)
|
|
93
92
|
}
|
|
94
93
|
|
|
95
94
|
const computedItemHeight = $computed(() => `${itemHeight.value}px`)
|
|
@@ -16,7 +16,7 @@ const props = defineProps<{
|
|
|
16
16
|
cancelText?: string
|
|
17
17
|
deleteText?: string
|
|
18
18
|
duplicateText?: string
|
|
19
|
-
onDelete?: (
|
|
19
|
+
onDelete?: (formData: any) => void
|
|
20
20
|
visible?: boolean
|
|
21
21
|
onError?: (err: any) => void
|
|
22
22
|
modelValue?: { [key: string]: any }
|
|
@@ -56,7 +56,7 @@ async function runSubmit() {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
function runDelete() {
|
|
59
|
-
props.onDelete?.(formData.value
|
|
59
|
+
props.onDelete?.(formData.value)
|
|
60
60
|
closeModal()
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -88,7 +88,7 @@ defineExpose({ setFormValues })
|
|
|
88
88
|
<div class="flex gap-0">
|
|
89
89
|
<Btn thin flat :value="cancelText || 'Cancel'" @click="closeModal" />
|
|
90
90
|
<Btn
|
|
91
|
-
v-if="onDelete
|
|
91
|
+
v-if="onDelete"
|
|
92
92
|
thin
|
|
93
93
|
icon="delete"
|
|
94
94
|
flat
|
package/src/plugins/modal.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface ModalFormOptions extends ModalOptions {
|
|
|
21
21
|
'cancelText'?: string
|
|
22
22
|
'deleteText'?: string
|
|
23
23
|
'duplicateText'?: string
|
|
24
|
-
'onDelete'?: (
|
|
24
|
+
'onDelete'?: (formData: any) => Promise<void>
|
|
25
25
|
'onDuplicate'?: (formData: any) => Promise<void>
|
|
26
26
|
'onError'?: (err: any) => void
|
|
27
27
|
'modelValue'?: { [key: string]: any }
|