@bagelink/vue 0.0.1227 → 0.0.1234

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.
@@ -1 +1 @@
1
- {"version":3,"file":"DayEvent.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/components/week/DayEvent.vue"],"names":[],"mappings":"AAAA,OA2kBO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAA;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAA;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AA6Y5D,iBAAS,cAAc;WA+LT,OAAO,IAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAVf,GAAG;;;;EAerC;AAgDD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;cAQH,QAAQ,CAAC,cAAc,CAAC;;;;cAIxB,QAAQ,CAAC,IAAI,CAAC;;;;cAId,QAAQ,CAAC,eAAe,CAAC;;;;cAIzB,QAAQ,CAAC,OAAO,CAAC;;;;cAIjB,QAAQ,CAAC,QAAQ,CAAC;;;;;sBAznBU,cAAc;sBAAgB,WAAW;;;;;;;;cAymBrE,QAAQ,CAAC,cAAc,CAAC;;;;cAIxB,QAAQ,CAAC,IAAI,CAAC;;;;cAId,QAAQ,CAAC,eAAe,CAAC;;;;cAIzB,QAAQ,CAAC,OAAO,CAAC;;;;cAIjB,QAAQ,CAAC,QAAQ,CAAC;;;;;sBAznBU,cAAc;sBAAgB,WAAW;;;;;;4FA8nBrF,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAA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BAAuB,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":"Image.vue.d.ts","sourceRoot":"","sources":["../../src/components/Image.vue"],"names":[],"mappings":"AA+JA,UAAU,UAAU;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,QAAQ,EAAE,GAAG,CAAA;KACb;CACD;;AAkMD,wBAMG"}
1
+ {"version":3,"file":"Image.vue.d.ts","sourceRoot":"","sources":["../../src/components/Image.vue"],"names":[],"mappings":"AA0JA,UAAU,UAAU;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,QAAQ,EAAE,GAAG,CAAA;KACb;CACD;;AA6LD,wBAMG"}
@@ -1 +1 @@
1
- {"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Spreadsheet/Index.vue"],"names":[],"mappings":"AAy2BA,KAAK,YAAY,GA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,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;YA/qBX,MAAM,GAAG,MAAM;WAIhB,UAAU,GAAG,OAAO;YACnB,MAAM;wFAmrBd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,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":"Lightbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/Lightbox.vue"],"names":[],"mappings":"AAgRA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAUpD,iBAAS,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,QAK5D;AAED,iBAAS,KAAK,SAGb;;;;;AAsjBD,wBAOG"}
1
+ {"version":3,"file":"Lightbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/Lightbox.vue"],"names":[],"mappings":"AAgRA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAUpD,iBAAS,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,QAK5D;AAED,iBAAS,KAAK,SAGb;;;;;AAojBD,wBAOG"}
@@ -1,6 +1,11 @@
1
- export interface LightboxItem {
2
- src?: string;
3
- pathKey?: string;
1
+ export type XORSrcPath = {
2
+ src: string;
3
+ pathKey?: never;
4
+ } | {
5
+ src?: never;
6
+ pathKey: string;
7
+ };
8
+ export type LightboxItem = XORSrcPath & {
4
9
  type: string;
5
10
  name: string;
6
11
  thumbnail?: string;
@@ -8,5 +13,5 @@ export interface LightboxItem {
8
13
  enableZoom?: boolean;
9
14
  openFile?: boolean;
10
15
  download?: boolean;
11
- }
16
+ };
12
17
  //# sourceMappingURL=lightbox.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lightbox.types.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/lightbox.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB"}
1
+ {"version":3,"file":"lightbox.types.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/lightbox.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAE5F,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSchemaField.d.ts","sourceRoot":"","sources":["../../src/composables/useSchemaField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,K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AAC;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;IACzD,YAAY,CAAC,EAAE,OAAO,CAAA;CACtB;AAID,UAAU,SAAS,CAAC,CAAC;IAAI,GAAG,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;CAAE;AAC3D,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,CAAA;AACnD,KAAK,aAAa,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC,CAAA;AAEnE,wBAAgB,cAAc,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC;yBAkCzF,cAAc,CAAC,CAAC,CAAC,UAChB,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,KACtC,KAAK,GAAG,IAAI;0BAjCc,cAAc,CAAC,CAAC,CAAC;EAuM9C"}
package/dist/index.cjs CHANGED
@@ -2814,7 +2814,6 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
2814
2814
  const clientXDragStart = vue.ref(null);
2815
2815
  const changeInQuartersOnDrag = vue.ref(0);
2816
2816
  const changeInDaysOnDrag = vue.ref(0);
2817
- vue.ref(false);
2818
2817
  const timeStartDragStart = vue.ref(props2.eventProp.time.start);
2819
2818
  const timeEndDragStart = vue.ref(props2.eventProp.time.end);
2820
2819
  const dragMoveListenerNameAndCallbacks = [
@@ -3164,7 +3163,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
3164
3163
  };
3165
3164
  }
3166
3165
  });
3167
- const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-d496d603"]]);
3166
+ const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-6b5ab9be"]]);
3168
3167
  const _hoisted_1$W = ["id", "onClick"];
3169
3168
  const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
3170
3169
  __name: "Day",
@@ -35950,8 +35949,6 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
35950
35949
  const emit2 = __emit;
35951
35950
  const bagel = useBagel();
35952
35951
  files.setBaseUrl(bagel.host);
35953
- const fileBaseUrl = vue.computed(() => (props2.baseURL || bagel.fileBaseUrl || "https://files.bagel.design").replace(/\/$/, ""));
35954
- const pathToUrl = (path_key) => `${fileBaseUrl.value}/${path_key}`;
35955
35952
  const fileQueue = vue.ref([]);
35956
35953
  let storageFiles = vue.ref([]);
35957
35954
  const pk = vue.ref([props2.modelValue].flat().filter(Boolean));
@@ -36080,7 +36077,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
36080
36077
  icon: "download",
36081
36078
  flat: "",
36082
36079
  thin: "",
36083
- href: pathToUrl(path_key),
36080
+ href: vue.unref(pathKeyToURL)(path_key),
36084
36081
  download: path_key.split("/").pop()
36085
36082
  }, null, 8, ["href", "download"]),
36086
36083
  vue.createElementVNode("div", _hoisted_5$4, [
@@ -36091,7 +36088,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
36091
36088
  vue.withDirectives((vue.openBlock(), vue.createElementBlock("p", _hoisted_6$4, [
36092
36089
  vue.createTextVNode(vue.toDisplayString(path_key.split("/").pop()), 1)
36093
36090
  ])), [
36094
- [_directive_lightbox, { src: pathToUrl(path_key), download: true }]
36091
+ [_directive_lightbox, { src: vue.unref(pathKeyToURL)(path_key), download: true }]
36095
36092
  ])
36096
36093
  ])
36097
36094
  ])
@@ -36141,7 +36138,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
36141
36138
  onClick: ($event) => removeFile(path_key)
36142
36139
  }, null, 8, ["onClick"])
36143
36140
  ], 2)), [
36144
- [_directive_lightbox, { src: pathToUrl(path_key), download: true }]
36141
+ [_directive_lightbox, { src: vue.unref(pathKeyToURL)(path_key), download: true }]
36145
36142
  ]);
36146
36143
  }), 128)),
36147
36144
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(fileQueue.value, (file) => {
@@ -36199,7 +36196,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
36199
36196
  color: "gray",
36200
36197
  thin: "",
36201
36198
  icon: "download",
36202
- href: pathToUrl(path_key),
36199
+ href: vue.unref(pathKeyToURL)(path_key),
36203
36200
  download: path_key.split("/").pop()
36204
36201
  }, null, 8, ["href", "download"]), [
36205
36202
  [_directive_tooltip, "Download"]
@@ -36211,7 +36208,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
36211
36208
  pathKey: path_key,
36212
36209
  alt: ""
36213
36210
  }, null, 8, ["pathKey"]), [
36214
- [_directive_lightbox, { src: pathToUrl(path_key), download: true }]
36211
+ [_directive_lightbox, { src: vue.unref(pathKeyToURL)(path_key), download: true }]
36215
36212
  ])
36216
36213
  ])) : vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$r), {
36217
36214
  key: 1,
@@ -36220,7 +36217,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
36220
36217
  icon: "description",
36221
36218
  class: "color-primary w-100"
36222
36219
  }, null, 512)), [
36223
- [_directive_lightbox, { src: pathToUrl(path_key), download: true }]
36220
+ [_directive_lightbox, { src: vue.unref(pathKeyToURL)(path_key), download: true }]
36224
36221
  ])
36225
36222
  ], 2);
36226
36223
  }), 128)),
@@ -36267,7 +36264,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
36267
36264
  };
36268
36265
  }
36269
36266
  });
36270
- const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-d65d0a87"]]);
36267
+ const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-fcdea419"]]);
36271
36268
  const FONT_AWESOME_ICONS = [
36272
36269
  "trash-can",
36273
36270
  "message",
@@ -40805,15 +40802,10 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
40805
40802
  const props2 = __props;
40806
40803
  let imageSrc = vue.ref(null);
40807
40804
  let loadingError = vue.ref(false);
40808
- const fileBaseUrl = vue.computed(() => "https://files.bagel.design");
40809
40805
  function getImageUrl() {
40810
- var _a2;
40811
40806
  if (!props2.src && !props2.pathKey) return null;
40812
40807
  if (props2.src) return props2.src;
40813
- if ((_a2 = props2.pathKey) == null ? void 0 : _a2.startsWith("static/")) {
40814
- return `${void 0}/${props2.pathKey}`;
40815
- }
40816
- return `${fileBaseUrl.value}/${props2.pathKey}`;
40808
+ return pathKeyToURL(props2.pathKey);
40817
40809
  }
40818
40810
  async function getCachedImage(url) {
40819
40811
  if (!("caches" in window)) return null;
@@ -40912,7 +40904,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
40912
40904
  };
40913
40905
  }
40914
40906
  });
40915
- const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-6f277b5b"]]);
40907
+ const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-1cec7fb3"]]);
40916
40908
  const _hoisted_1$i = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
40917
40909
  const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
40918
40910
  __name: "BottomMenu",
@@ -42342,7 +42334,6 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
42342
42334
  const isSelecting = vue.ref(false);
42343
42335
  const selectionStart = vue.ref(null);
42344
42336
  const selectionEnd = vue.ref(null);
42345
- vue.ref([]);
42346
42337
  const editingCell = vue.ref(null);
42347
42338
  const editInputRef = vue.ref(/* @__PURE__ */ new Map());
42348
42339
  function setInputRef(el, key) {
@@ -42861,7 +42852,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
42861
42852
  };
42862
42853
  }
42863
42854
  });
42864
- const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-784daa05"]]);
42855
+ const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-ea9bc123"]]);
42865
42856
  const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
42866
42857
  __name: "Title",
42867
42858
  props: {
@@ -43551,14 +43542,14 @@ class BagelAuth {
43551
43542
  }
43552
43543
  }
43553
43544
  class Bagel {
43554
- constructor({ host, fileBaseUrl, onError }) {
43545
+ constructor({ host, fileBaseUrl: fileBaseUrl2, onError }) {
43555
43546
  __publicField(this, "host");
43556
43547
  __publicField(this, "fileBaseUrl");
43557
43548
  __publicField(this, "onError");
43558
43549
  __publicField(this, "read_table");
43559
43550
  __publicField(this, "auth", new BagelAuth(this));
43560
43551
  this.host = host == null ? void 0 : host.replace(/\/$/, "");
43561
- this.fileBaseUrl = fileBaseUrl == null ? void 0 : fileBaseUrl.replace(/\/$/, "");
43552
+ this.fileBaseUrl = fileBaseUrl2 == null ? void 0 : fileBaseUrl2.replace(/\/$/, "");
43562
43553
  if (!this.host) {
43563
43554
  return this;
43564
43555
  }
@@ -43837,10 +43828,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
43837
43828
  vue.createVNode(vue.unref(Image$1), {
43838
43829
  draggable: false,
43839
43830
  src: item == null ? void 0 : item.src,
43840
- pathKey: item == null ? void 0 : item.pathKey,
43841
43831
  alt: "Preview",
43842
43832
  class: "vw90 lightbox-image"
43843
- }, null, 8, ["src", "pathKey"])
43833
+ }, null, 8, ["src"])
43844
43834
  ]),
43845
43835
  _: 2
43846
43836
  }, 1032, ["zoom", "disabled"])) : (item == null ? void 0 : item.type) === "video" && (item == null ? void 0 : item.src) ? (vue.openBlock(), vue.createBlock(vue.unref(BglVideo), {
@@ -43921,7 +43911,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
43921
43911
  };
43922
43912
  }
43923
43913
  });
43924
- const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-194584ac"]]);
43914
+ const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a5e1d29b"]]);
43925
43915
  const groups = {};
43926
43916
  let clickHandler = (_e2) => void 0;
43927
43917
  const lightboxDirective = {
@@ -43963,8 +43953,8 @@ function openClickHandler(e, el, binding) {
43963
43953
  open(item, group);
43964
43954
  }
43965
43955
  function bindingToItem(binding, el) {
43966
- let { group, src, type: type3, name, thumbnail, enableZoom, openFile, download } = binding.value || {};
43967
- src = src || binding.value || el.getAttribute("src") || "";
43956
+ let { group, src, type: type3, name, thumbnail, enableZoom, openFile, download, pathKey } = binding.value || {};
43957
+ src = src || pathKeyToURL(pathKey) || binding.value || el.getAttribute("src") || "";
43968
43958
  type3 = type3 || determineFileType(src);
43969
43959
  name = name || urlToName(src) || el.getAttribute("alt") || "";
43970
43960
  return { src, type: type3, name, thumbnail, group, enableZoom, openFile, download };
@@ -44511,6 +44501,14 @@ function normalizeDimension(value, defaultMetric = "px") {
44511
44501
  if (typeof value === "number") return `${value}${defaultMetric}`;
44512
44502
  return value;
44513
44503
  }
44504
+ const fileBaseUrl = "https://files.bagel.design".replace(/\/$/, "");
44505
+ const bagelBaseUrl = void 0;
44506
+ function pathKeyToURL(pathKey) {
44507
+ if (pathKey.startsWith("static/")) {
44508
+ return `${bagelBaseUrl}/${pathKey}`;
44509
+ }
44510
+ return `${fileBaseUrl}/${pathKey}`;
44511
+ }
44514
44512
  const clickOutside = {
44515
44513
  beforeMount(el, binding) {
44516
44514
  el.clickOutsideEvent = (event) => {
@@ -45137,6 +45135,7 @@ exports.keyToLabel = keyToLabel;
45137
45135
  exports.localRef = localRef;
45138
45136
  exports.normalizeDimension = normalizeDimension;
45139
45137
  exports.normalizeURL = normalizeURL;
45138
+ exports.pathKeyToURL = pathKeyToURL;
45140
45139
  exports.provideBagelFormState = provideBagelFormState;
45141
45140
  exports.sleep = sleep;
45142
45141
  exports.slugify = slugify;
package/dist/index.mjs CHANGED
@@ -2812,7 +2812,6 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
2812
2812
  const clientXDragStart = ref(null);
2813
2813
  const changeInQuartersOnDrag = ref(0);
2814
2814
  const changeInDaysOnDrag = ref(0);
2815
- ref(false);
2816
2815
  const timeStartDragStart = ref(props2.eventProp.time.start);
2817
2816
  const timeEndDragStart = ref(props2.eventProp.time.end);
2818
2817
  const dragMoveListenerNameAndCallbacks = [
@@ -3162,7 +3161,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
3162
3161
  };
3163
3162
  }
3164
3163
  });
3165
- const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-d496d603"]]);
3164
+ const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-6b5ab9be"]]);
3166
3165
  const _hoisted_1$W = ["id", "onClick"];
3167
3166
  const _sfc_main$15 = /* @__PURE__ */ defineComponent({
3168
3167
  __name: "Day",
@@ -35948,8 +35947,6 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
35948
35947
  const emit2 = __emit;
35949
35948
  const bagel = useBagel();
35950
35949
  files.setBaseUrl(bagel.host);
35951
- const fileBaseUrl = computed(() => (props2.baseURL || bagel.fileBaseUrl || "https://files.bagel.design").replace(/\/$/, ""));
35952
- const pathToUrl = (path_key) => `${fileBaseUrl.value}/${path_key}`;
35953
35950
  const fileQueue = ref([]);
35954
35951
  let storageFiles = ref([]);
35955
35952
  const pk = ref([props2.modelValue].flat().filter(Boolean));
@@ -36078,7 +36075,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
36078
36075
  icon: "download",
36079
36076
  flat: "",
36080
36077
  thin: "",
36081
- href: pathToUrl(path_key),
36078
+ href: unref(pathKeyToURL)(path_key),
36082
36079
  download: path_key.split("/").pop()
36083
36080
  }, null, 8, ["href", "download"]),
36084
36081
  createElementVNode("div", _hoisted_5$4, [
@@ -36089,7 +36086,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
36089
36086
  withDirectives((openBlock(), createElementBlock("p", _hoisted_6$4, [
36090
36087
  createTextVNode(toDisplayString(path_key.split("/").pop()), 1)
36091
36088
  ])), [
36092
- [_directive_lightbox, { src: pathToUrl(path_key), download: true }]
36089
+ [_directive_lightbox, { src: unref(pathKeyToURL)(path_key), download: true }]
36093
36090
  ])
36094
36091
  ])
36095
36092
  ])
@@ -36139,7 +36136,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
36139
36136
  onClick: ($event) => removeFile(path_key)
36140
36137
  }, null, 8, ["onClick"])
36141
36138
  ], 2)), [
36142
- [_directive_lightbox, { src: pathToUrl(path_key), download: true }]
36139
+ [_directive_lightbox, { src: unref(pathKeyToURL)(path_key), download: true }]
36143
36140
  ]);
36144
36141
  }), 128)),
36145
36142
  (openBlock(true), createElementBlock(Fragment, null, renderList(fileQueue.value, (file) => {
@@ -36197,7 +36194,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
36197
36194
  color: "gray",
36198
36195
  thin: "",
36199
36196
  icon: "download",
36200
- href: pathToUrl(path_key),
36197
+ href: unref(pathKeyToURL)(path_key),
36201
36198
  download: path_key.split("/").pop()
36202
36199
  }, null, 8, ["href", "download"]), [
36203
36200
  [_directive_tooltip, "Download"]
@@ -36209,7 +36206,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
36209
36206
  pathKey: path_key,
36210
36207
  alt: ""
36211
36208
  }, null, 8, ["pathKey"]), [
36212
- [_directive_lightbox, { src: pathToUrl(path_key), download: true }]
36209
+ [_directive_lightbox, { src: unref(pathKeyToURL)(path_key), download: true }]
36213
36210
  ])
36214
36211
  ])) : withDirectives((openBlock(), createBlock(unref(_sfc_main$r), {
36215
36212
  key: 1,
@@ -36218,7 +36215,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
36218
36215
  icon: "description",
36219
36216
  class: "color-primary w-100"
36220
36217
  }, null, 512)), [
36221
- [_directive_lightbox, { src: pathToUrl(path_key), download: true }]
36218
+ [_directive_lightbox, { src: unref(pathKeyToURL)(path_key), download: true }]
36222
36219
  ])
36223
36220
  ], 2);
36224
36221
  }), 128)),
@@ -36265,7 +36262,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
36265
36262
  };
36266
36263
  }
36267
36264
  });
36268
- const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-d65d0a87"]]);
36265
+ const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-fcdea419"]]);
36269
36266
  const FONT_AWESOME_ICONS = [
36270
36267
  "trash-can",
36271
36268
  "message",
@@ -40803,15 +40800,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
40803
40800
  const props2 = __props;
40804
40801
  let imageSrc = ref(null);
40805
40802
  let loadingError = ref(false);
40806
- const fileBaseUrl = computed(() => "https://files.bagel.design");
40807
40803
  function getImageUrl() {
40808
- var _a2;
40809
40804
  if (!props2.src && !props2.pathKey) return null;
40810
40805
  if (props2.src) return props2.src;
40811
- if ((_a2 = props2.pathKey) == null ? void 0 : _a2.startsWith("static/")) {
40812
- return `${void 0}/${props2.pathKey}`;
40813
- }
40814
- return `${fileBaseUrl.value}/${props2.pathKey}`;
40806
+ return pathKeyToURL(props2.pathKey);
40815
40807
  }
40816
40808
  async function getCachedImage(url) {
40817
40809
  if (!("caches" in window)) return null;
@@ -40910,7 +40902,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
40910
40902
  };
40911
40903
  }
40912
40904
  });
40913
- const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-6f277b5b"]]);
40905
+ const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-1cec7fb3"]]);
40914
40906
  const _hoisted_1$i = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
40915
40907
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
40916
40908
  __name: "BottomMenu",
@@ -42340,7 +42332,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42340
42332
  const isSelecting = ref(false);
42341
42333
  const selectionStart = ref(null);
42342
42334
  const selectionEnd = ref(null);
42343
- ref([]);
42344
42335
  const editingCell = ref(null);
42345
42336
  const editInputRef = ref(/* @__PURE__ */ new Map());
42346
42337
  function setInputRef(el, key) {
@@ -42859,7 +42850,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42859
42850
  };
42860
42851
  }
42861
42852
  });
42862
- const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-784daa05"]]);
42853
+ const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-ea9bc123"]]);
42863
42854
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
42864
42855
  __name: "Title",
42865
42856
  props: {
@@ -43549,14 +43540,14 @@ class BagelAuth {
43549
43540
  }
43550
43541
  }
43551
43542
  class Bagel {
43552
- constructor({ host, fileBaseUrl, onError }) {
43543
+ constructor({ host, fileBaseUrl: fileBaseUrl2, onError }) {
43553
43544
  __publicField(this, "host");
43554
43545
  __publicField(this, "fileBaseUrl");
43555
43546
  __publicField(this, "onError");
43556
43547
  __publicField(this, "read_table");
43557
43548
  __publicField(this, "auth", new BagelAuth(this));
43558
43549
  this.host = host == null ? void 0 : host.replace(/\/$/, "");
43559
- this.fileBaseUrl = fileBaseUrl == null ? void 0 : fileBaseUrl.replace(/\/$/, "");
43550
+ this.fileBaseUrl = fileBaseUrl2 == null ? void 0 : fileBaseUrl2.replace(/\/$/, "");
43560
43551
  if (!this.host) {
43561
43552
  return this;
43562
43553
  }
@@ -43835,10 +43826,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43835
43826
  createVNode(unref(Image$1), {
43836
43827
  draggable: false,
43837
43828
  src: item == null ? void 0 : item.src,
43838
- pathKey: item == null ? void 0 : item.pathKey,
43839
43829
  alt: "Preview",
43840
43830
  class: "vw90 lightbox-image"
43841
- }, null, 8, ["src", "pathKey"])
43831
+ }, null, 8, ["src"])
43842
43832
  ]),
43843
43833
  _: 2
43844
43834
  }, 1032, ["zoom", "disabled"])) : (item == null ? void 0 : item.type) === "video" && (item == null ? void 0 : item.src) ? (openBlock(), createBlock(unref(BglVideo), {
@@ -43919,7 +43909,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43919
43909
  };
43920
43910
  }
43921
43911
  });
43922
- const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-194584ac"]]);
43912
+ const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a5e1d29b"]]);
43923
43913
  const groups = {};
43924
43914
  let clickHandler = (_e2) => void 0;
43925
43915
  const lightboxDirective = {
@@ -43961,8 +43951,8 @@ function openClickHandler(e, el, binding) {
43961
43951
  open(item, group);
43962
43952
  }
43963
43953
  function bindingToItem(binding, el) {
43964
- let { group, src, type: type3, name, thumbnail, enableZoom, openFile, download } = binding.value || {};
43965
- src = src || binding.value || el.getAttribute("src") || "";
43954
+ let { group, src, type: type3, name, thumbnail, enableZoom, openFile, download, pathKey } = binding.value || {};
43955
+ src = src || pathKeyToURL(pathKey) || binding.value || el.getAttribute("src") || "";
43966
43956
  type3 = type3 || determineFileType(src);
43967
43957
  name = name || urlToName(src) || el.getAttribute("alt") || "";
43968
43958
  return { src, type: type3, name, thumbnail, group, enableZoom, openFile, download };
@@ -44509,6 +44499,14 @@ function normalizeDimension(value, defaultMetric = "px") {
44509
44499
  if (typeof value === "number") return `${value}${defaultMetric}`;
44510
44500
  return value;
44511
44501
  }
44502
+ const fileBaseUrl = "https://files.bagel.design".replace(/\/$/, "");
44503
+ const bagelBaseUrl = void 0;
44504
+ function pathKeyToURL(pathKey) {
44505
+ if (pathKey.startsWith("static/")) {
44506
+ return `${bagelBaseUrl}/${pathKey}`;
44507
+ }
44508
+ return `${fileBaseUrl}/${pathKey}`;
44509
+ }
44512
44510
  const clickOutside = {
44513
44511
  beforeMount(el, binding) {
44514
44512
  el.clickOutsideEvent = (event) => {
@@ -45136,6 +45134,7 @@ export {
45136
45134
  localRef,
45137
45135
  normalizeDimension,
45138
45136
  normalizeURL,
45137
+ pathKeyToURL,
45139
45138
  provideBagelFormState,
45140
45139
  sleep,
45141
45140
  slugify,
package/dist/style.css CHANGED
@@ -513,7 +513,7 @@ display: block;
513
513
  border-top: var(--qalendar-border-gray-thin);
514
514
  }
515
515
 
516
- .calendar-week__event[data-v-d496d603] {
516
+ .calendar-week__event[data-v-6b5ab9be] {
517
517
  position: absolute;
518
518
  width: 100%;
519
519
  border-radius: 4px;
@@ -522,22 +522,22 @@ display: block;
522
522
  user-select: none;
523
523
  overflow: hidden;
524
524
  }
525
- .calendar-week__event.is-editable[data-v-d496d603] {
525
+ .calendar-week__event.is-editable[data-v-6b5ab9be] {
526
526
  cursor: grab;
527
527
  }
528
- .calendar-week__event.has-disabled-dnd[data-v-d496d603] {
528
+ .calendar-week__event.has-disabled-dnd[data-v-6b5ab9be] {
529
529
  cursor: initial;
530
530
  }
531
- .calendar-week__event .calendar-week__event-row[data-v-d496d603] {
531
+ .calendar-week__event .calendar-week__event-row[data-v-6b5ab9be] {
532
532
  display: flex;
533
533
  align-items: flex-start;
534
534
  margin-bottom: 0.25em;
535
535
  }
536
- .calendar-week__event .calendar-week__event-row p[data-v-d496d603] {
536
+ .calendar-week__event .calendar-week__event-row p[data-v-6b5ab9be] {
537
537
  margin: 0;
538
538
  padding: 0;
539
539
  }
540
- .calendar-week__event .calendar-week__event-info-wrapper[data-v-d496d603] {
540
+ .calendar-week__event .calendar-week__event-info-wrapper[data-v-6b5ab9be] {
541
541
  position: relative;
542
542
  padding: var(--qalendar-spacing-half);
543
543
  font-size: var(--qalendar-font-xs);
@@ -545,27 +545,27 @@ display: block;
545
545
  box-sizing: border-box;
546
546
  user-select: none;
547
547
  }
548
- .calendar-week__event .calendar-week__event-blend-out[data-v-d496d603] {
548
+ .calendar-week__event .calendar-week__event-blend-out[data-v-6b5ab9be] {
549
549
  position: absolute;
550
550
  bottom: 0;
551
551
  height: 20px;
552
552
  width: 100%;
553
553
  transform: translateX(calc(var(--qalendar-spacing-half) * -1));
554
554
  }
555
- .calendar-week__event .calendar-week__event-icon[data-v-d496d603] {
555
+ .calendar-week__event .calendar-week__event-icon[data-v-6b5ab9be] {
556
556
  margin: 2px 4px 0 0;
557
557
  font-size: var(--qalendar-font-xs);
558
558
  }
559
- .calendar-week__event .calendar-week__event-resize[data-v-d496d603] {
559
+ .calendar-week__event .calendar-week__event-resize[data-v-6b5ab9be] {
560
560
  position: absolute;
561
561
  width: 100%;
562
562
  cursor: ns-resize;
563
563
  height: 5px;
564
564
  }
565
- .calendar-week__event .calendar-week__event-resize-up[data-v-d496d603] {
565
+ .calendar-week__event .calendar-week__event-resize-up[data-v-6b5ab9be] {
566
566
  top: 0;
567
567
  }
568
- .calendar-week__event .calendar-week__event-resize-down[data-v-d496d603] {
568
+ .calendar-week__event .calendar-week__event-resize-down[data-v-6b5ab9be] {
569
569
  bottom: 0;
570
570
  }
571
571
 
@@ -2454,7 +2454,7 @@ line-height: 1.65;
2454
2454
  .bgl-toggle input:checked + label[data-v-ebe691ee] {
2455
2455
  color: var(--bgl-primary) !important;
2456
2456
  }
2457
- .fileUploadWrap[data-v-d65d0a87] {
2457
+ .fileUploadWrap[data-v-fcdea419] {
2458
2458
  outline: 1px solid var(--border-color);
2459
2459
  border-radius: var(--input-border-radius);
2460
2460
  text-align: center;
@@ -2466,7 +2466,7 @@ line-height: 1.65;
2466
2466
  background: var(--input-bg);
2467
2467
  height: 215px;
2468
2468
  }
2469
- .bagel-input .fileUploadWrap.fileDropZone[data-v-d65d0a87] {
2469
+ .bagel-input .fileUploadWrap.fileDropZone[data-v-fcdea419] {
2470
2470
  background: var(--input-bg);
2471
2471
  display: flex;
2472
2472
  align-items: center;
@@ -2474,14 +2474,14 @@ line-height: 1.65;
2474
2474
  color: var(--bgl-gray);
2475
2475
  flex-direction: column;
2476
2476
  }
2477
- .fileUploadWrap.dragover[data-v-d65d0a87],
2478
- .fileUploadWrap[data-v-d65d0a87]:hover {
2477
+ .fileUploadWrap.dragover[data-v-fcdea419],
2478
+ .fileUploadWrap[data-v-fcdea419]:hover {
2479
2479
  box-shadow: inset 0 0 10px #00000012;
2480
2480
  }
2481
- .fileUploadWrap[style*='height: auto;'][data-v-d65d0a87] {
2481
+ .fileUploadWrap[style*='height: auto;'][data-v-fcdea419] {
2482
2482
  min-height: 215px;
2483
2483
  }
2484
- .multi-image-item-preview[data-v-d65d0a87] {
2484
+ .multi-image-item-preview[data-v-fcdea419] {
2485
2485
  border: 1px solid var(--border-color) !important;
2486
2486
  border-radius: var(--input-border-radius);
2487
2487
  margin: 0.5rem !important;
@@ -2495,12 +2495,12 @@ line-height: 1.65;
2495
2495
  gap: 1rem;
2496
2496
  align-items: center;
2497
2497
  }
2498
- .multi-image-item-preview p[data-v-d65d0a87] {
2498
+ .multi-image-item-preview p[data-v-fcdea419] {
2499
2499
  overflow: hidden;
2500
2500
  text-overflow: ellipsis;
2501
2501
  white-space: nowrap;
2502
2502
  }
2503
- .multi-preview[data-v-d65d0a87] {
2503
+ .multi-preview[data-v-fcdea419] {
2504
2504
  width: 40px;
2505
2505
  height: 40px;
2506
2506
  border-radius: var(--input-border-radius);
@@ -2511,17 +2511,17 @@ line-height: 1.65;
2511
2511
  align-items: center;
2512
2512
  display: flex;
2513
2513
  }
2514
- .bgl-single-preview[data-v-d65d0a87] {
2514
+ .bgl-single-preview[data-v-fcdea419] {
2515
2515
  height: 100%;
2516
2516
  position: relative;
2517
2517
  }
2518
- .bgl-single-preview + .fileUploadPlaceHolder[data-v-d65d0a87] {
2518
+ .bgl-single-preview + .fileUploadPlaceHolder[data-v-fcdea419] {
2519
2519
  position: absolute;
2520
2520
  inset: 0;
2521
2521
  margin: auto;
2522
2522
  top: calc(50% - 2rem);
2523
2523
  }
2524
- .single-image-item-preview[data-v-d65d0a87] {
2524
+ .single-image-item-preview[data-v-fcdea419] {
2525
2525
  height: 100%;
2526
2526
  min-height: 100%;
2527
2527
  position: relative;
@@ -2529,13 +2529,13 @@ line-height: 1.65;
2529
2529
  align-items: center;
2530
2530
  justify-content: center;
2531
2531
  }
2532
- .fileUploadWrap[style*='height: auto'] .single-image-item-preview[data-v-d65d0a87] {
2532
+ .fileUploadWrap[style*='height: auto'] .single-image-item-preview[data-v-fcdea419] {
2533
2533
  min-height: 215px;
2534
2534
  }
2535
- .fileUploadWrap[style*='height: auto'] .single-preview[data-v-d65d0a87] {
2535
+ .fileUploadWrap[style*='height: auto'] .single-preview[data-v-fcdea419] {
2536
2536
  margin: 0rem !important;
2537
2537
  }
2538
- .single-preview[data-v-d65d0a87] {
2538
+ .single-preview[data-v-fcdea419] {
2539
2539
  border-radius: var(--input-border-radius);
2540
2540
  margin: 1rem;
2541
2541
  padding: 0px;
@@ -2545,7 +2545,7 @@ line-height: 1.65;
2545
2545
  background: var(--bgl-gray-light);
2546
2546
  width: 90%;
2547
2547
  }
2548
- .single-image-item-preview[data-v-d65d0a87]:hover::after {
2548
+ .single-image-item-preview[data-v-fcdea419]:hover::after {
2549
2549
  content: 'zoom_in';
2550
2550
  font-size: 32px;
2551
2551
  font-family: 'Material Symbols Outlined', serif;
@@ -2555,20 +2555,20 @@ line-height: 1.65;
2555
2555
  z-index: 9;
2556
2556
  pointer-events: none;
2557
2557
  }
2558
- .single-image-item-preview:hover img[data-v-d65d0a87] {
2558
+ .single-image-item-preview:hover img[data-v-fcdea419] {
2559
2559
  filter: brightness(70%);
2560
2560
  }
2561
- .bgl_fill-image.single-image-item-preview[data-v-d65d0a87] {
2561
+ .bgl_fill-image.single-image-item-preview[data-v-fcdea419] {
2562
2562
  height: 100%;
2563
2563
  }
2564
- .bgl_fill-image.single-image-item-preview .single-preview[data-v-d65d0a87] {
2564
+ .bgl_fill-image.single-image-item-preview .single-preview[data-v-fcdea419] {
2565
2565
  border-radius: unset;
2566
2566
  object-fit: cover;
2567
2567
  box-shadow: unset;
2568
2568
  width: 100%;
2569
2569
  height: auto;
2570
2570
  }
2571
- .single-image-item-preview .pie[data-v-d65d0a87] {
2571
+ .single-image-item-preview .pie[data-v-fcdea419] {
2572
2572
  transform-origin: top;
2573
2573
  transform: scale(1.4);
2574
2574
  position: absolute;
@@ -2582,31 +2582,31 @@ line-height: 1.65;
2582
2582
  border: none !important;
2583
2583
  padding: 0 !important;
2584
2584
  }
2585
- .bgl_oval-upload[data-v-d65d0a87] {
2585
+ .bgl_oval-upload[data-v-fcdea419] {
2586
2586
  border-radius: 100% !important;
2587
2587
  overflow: hidden;
2588
2588
  }
2589
- .bgl_oval-upload p[data-v-d65d0a87] {
2589
+ .bgl_oval-upload p[data-v-fcdea419] {
2590
2590
  padding: 0.75rem !important;
2591
2591
  font-size: 12px;
2592
2592
  }
2593
- .bgl_oval-upload .fileUploadPlaceHolder[data-v-d65d0a87] {
2593
+ .bgl_oval-upload .fileUploadPlaceHolder[data-v-fcdea419] {
2594
2594
  top: 0;
2595
2595
  }
2596
- .bgl_oval-upload .pie[data-v-d65d0a87] {
2596
+ .bgl_oval-upload .pie[data-v-fcdea419] {
2597
2597
  transform: scale(1);
2598
2598
  }
2599
- .bgl_oval-upload span.bgl_icon-font.color-primary[data-v-d65d0a87] {
2599
+ .bgl_oval-upload span.bgl_icon-font.color-primary[data-v-fcdea419] {
2600
2600
  transform: scale(0.4) !important;
2601
2601
  }
2602
- .bgl_oval-upload .single-image-item-preview[data-v-d65d0a87] {
2602
+ .bgl_oval-upload .single-image-item-preview[data-v-fcdea419] {
2603
2603
  height: 100%;
2604
2604
  }
2605
- .bgl_oval-upload .single-preview[data-v-d65d0a87] {
2605
+ .bgl_oval-upload .single-preview[data-v-fcdea419] {
2606
2606
  margin: 0;
2607
2607
  height: 100% !important;
2608
2608
  }
2609
- .pie[data-v-d65d0a87] {
2609
+ .pie[data-v-fcdea419] {
2610
2610
  width: 30px;
2611
2611
  height: 30px;
2612
2612
  position: relative;
@@ -2614,7 +2614,7 @@ line-height: 1.65;
2614
2614
  align-items: center;
2615
2615
  justify-content: center;
2616
2616
  }
2617
- .pie[data-v-d65d0a87]:before {
2617
+ .pie[data-v-fcdea419]:before {
2618
2618
  content: '';
2619
2619
  position: absolute;
2620
2620
  border-radius: 50%;
@@ -2632,26 +2632,26 @@ line-height: 1.65;
2632
2632
  #000 calc(100% - var(--b))
2633
2633
  );
2634
2634
  }
2635
- .pie .success[data-v-d65d0a87] {
2635
+ .pie .success[data-v-fcdea419] {
2636
2636
  transform: scale(0);
2637
2637
  opacity: 0;
2638
2638
  transition: all 0.3s ease-in-out;
2639
2639
  }
2640
- .pie .progress[data-v-d65d0a87] {
2640
+ .pie .progress[data-v-fcdea419] {
2641
2641
  position: absolute;
2642
2642
  font-size: 10px;
2643
2643
  }
2644
- .pie.complete .progress[data-v-d65d0a87] {
2644
+ .pie.complete .progress[data-v-fcdea419] {
2645
2645
  display: none;
2646
2646
  }
2647
- .pie.complete .success[data-v-d65d0a87] {
2647
+ .pie.complete .success[data-v-fcdea419] {
2648
2648
  transform: scale(1.3);
2649
2649
  opacity: 1;
2650
2650
  }
2651
- .pie.complete[data-v-d65d0a87]:before {
2651
+ .pie.complete[data-v-fcdea419]:before {
2652
2652
  background: conic-gradient(var(--bgl-green) calc(var(--p) * 1%), #0000 0);
2653
2653
  }
2654
- .pie.complete[data-v-d65d0a87] {
2654
+ .pie.complete[data-v-fcdea419] {
2655
2655
  color: var(--bgl-green);
2656
2656
  }
2657
2657
 
@@ -2663,13 +2663,13 @@ line-height: 1.65;
2663
2663
  transform: rotateY(180deg) !important;
2664
2664
  }
2665
2665
 
2666
- .img-web-kit[data-v-6f277b5b] {
2666
+ .img-web-kit[data-v-1cec7fb3] {
2667
2667
  max-width: 100%;
2668
2668
  vertical-align: middle;
2669
2669
  border: 0;
2670
2670
  width: 100%;
2671
2671
  }
2672
- .error-image[data-v-6f277b5b] {
2672
+ .error-image[data-v-1cec7fb3] {
2673
2673
  background-color: var(--skeleton-bg);
2674
2674
  }
2675
2675
 
@@ -4308,20 +4308,20 @@ body:has(.bg-dark.is-active) {
4308
4308
  background: transparent;
4309
4309
  }
4310
4310
 
4311
- .fixed-columns[data-v-784daa05] {
4311
+ .fixed-columns[data-v-ea9bc123] {
4312
4312
  border-right: 2px solid var(--border-color);
4313
4313
  }
4314
- .spreadsheet table[data-v-784daa05] {
4314
+ .spreadsheet table[data-v-ea9bc123] {
4315
4315
  border-collapse: collapse;
4316
4316
  }
4317
- .spreadsheet th[data-v-784daa05], .spreadsheet td[data-v-784daa05] {
4317
+ .spreadsheet th[data-v-ea9bc123], .spreadsheet td[data-v-ea9bc123] {
4318
4318
  border: 1px solid var(--border-color);
4319
4319
  padding: 0.1rem 0.5rem;
4320
4320
  min-width: 80px;
4321
4321
  background: var(--bgl-white);
4322
4322
  user-select: none;
4323
4323
  }
4324
- .spreadsheet th[data-v-784daa05] {
4324
+ .spreadsheet th[data-v-ea9bc123] {
4325
4325
  background: var(--input-bg);
4326
4326
  white-space: nowrap;
4327
4327
  position: relative;
@@ -4329,27 +4329,27 @@ body:has(.bg-dark.is-active) {
4329
4329
  font-weight: 500;
4330
4330
  text-align: start;
4331
4331
  }
4332
- .spreadsheet th .bgl_icon-font[data-v-784daa05]{
4332
+ .spreadsheet th .bgl_icon-font[data-v-ea9bc123]{
4333
4333
  vertical-align: middle;
4334
4334
  }
4335
- .spreadsheet td.selected[data-v-784daa05] {
4335
+ .spreadsheet td.selected[data-v-ea9bc123] {
4336
4336
  background: var(--bgl-primary-light);
4337
4337
  }
4338
- .spreadsheet td.locked[data-v-784daa05] {
4338
+ .spreadsheet td.locked[data-v-ea9bc123] {
4339
4339
  background: var(--bgl-gray-light);
4340
4340
  cursor: default;
4341
4341
  }
4342
- .spreadsheet td.locked.selected[data-v-784daa05] {
4342
+ .spreadsheet td.locked.selected[data-v-ea9bc123] {
4343
4343
  background: var(--bgl-primary-light);
4344
4344
  }
4345
- .spreadsheet td[data-v-784daa05] {
4345
+ .spreadsheet td[data-v-ea9bc123] {
4346
4346
  height: 40px;
4347
4347
  vertical-align: middle;
4348
4348
  }
4349
- .spreadsheet td[data-v-784daa05]:has(img){
4349
+ .spreadsheet td[data-v-ea9bc123]:has(img){
4350
4350
  padding: 0;
4351
4351
  }
4352
- .spreadsheet td span[data-v-784daa05]{
4352
+ .spreadsheet td span[data-v-ea9bc123]{
4353
4353
  display: block;
4354
4354
  display: -webkit-box;
4355
4355
  max-width: 100%;
@@ -4359,7 +4359,7 @@ body:has(.bg-dark.is-active) {
4359
4359
  -webkit-line-clamp: 1;
4360
4360
  word-break: break-all;
4361
4361
  }
4362
- .spreadsheet input[data-v-784daa05] {
4362
+ .spreadsheet input[data-v-ea9bc123] {
4363
4363
  width: 100%;
4364
4364
  border: none;
4365
4365
  background: transparent;
@@ -4368,31 +4368,31 @@ body:has(.bg-dark.is-active) {
4368
4368
  min-height: 0;
4369
4369
  min-width: 0;
4370
4370
  }
4371
- .spreadsheet input[data-v-784daa05]:focus {
4371
+ .spreadsheet input[data-v-ea9bc123]:focus {
4372
4372
  outline: 2px solid var(--bgl-primary);
4373
4373
  outline-offset: 6px;
4374
4374
  }
4375
- .spreadsheet th.sortable[data-v-784daa05] {
4375
+ .spreadsheet th.sortable[data-v-ea9bc123] {
4376
4376
  cursor: pointer;
4377
4377
  }
4378
- .row-number-header[data-v-784daa05], .row-number[data-v-784daa05] {
4378
+ .row-number-header[data-v-ea9bc123], .row-number[data-v-ea9bc123] {
4379
4379
  width: fit-content;
4380
4380
  min-width: fit-content !important;
4381
4381
  padding: 0.1rem 0.7rem !important;
4382
4382
  }
4383
- .spreadsheet td .bgl-checkbox[data-v-784daa05]{
4383
+ .spreadsheet td .bgl-checkbox[data-v-ea9bc123]{
4384
4384
  margin: 0;
4385
4385
  text-align: center;
4386
4386
  justify-content: center;
4387
4387
  }
4388
- .spreadsheet td[data-v-784daa05]:has(.bgl-checkbox){
4388
+ .spreadsheet td[data-v-ea9bc123]:has(.bgl-checkbox){
4389
4389
  text-align: center;
4390
4390
  background: var(--input-bg);
4391
4391
  }
4392
- .spreadsheet td[data-v-784daa05]:has(:checked){
4392
+ .spreadsheet td[data-v-ea9bc123]:has(:checked){
4393
4393
  background: var(--bgl-primary-light);
4394
4394
  }
4395
- .spreadsheetCellPlaceHolder[data-v-784daa05]{
4395
+ .spreadsheetCellPlaceHolder[data-v-ea9bc123]{
4396
4396
  height: 0px;
4397
4397
  overflow: hidden;
4398
4398
  opactiy: 0;
@@ -4430,19 +4430,19 @@ body:has(.bg-dark.is-active) {
4430
4430
  -moz-user-drag: none;
4431
4431
  }
4432
4432
 
4433
- .lightbox-image[data-v-194584ac]{
4433
+ .lightbox-image[data-v-a5e1d29b]{
4434
4434
  object-fit: contain;
4435
4435
  }
4436
- .bgl-lightbox-overlay[data-v-194584ac] {
4436
+ .bgl-lightbox-overlay[data-v-a5e1d29b] {
4437
4437
  background: rgba(0, 0, 0, 0.8);
4438
4438
  }
4439
- .bgl-lightbox[data-v-194584ac] {
4439
+ .bgl-lightbox[data-v-a5e1d29b] {
4440
4440
  max-height: 90%;
4441
4441
  }
4442
- .bgl-lightbox-item[data-v-194584ac]{
4443
- animation: 500ms ease bgl-lightbox-load-194584ac;
4442
+ .bgl-lightbox-item[data-v-a5e1d29b]{
4443
+ animation: 500ms ease bgl-lightbox-load-a5e1d29b;
4444
4444
  }
4445
- @keyframes bgl-lightbox-load-194584ac {
4445
+ @keyframes bgl-lightbox-load-a5e1d29b {
4446
4446
  from {
4447
4447
  scale:0.7;
4448
4448
  }
@@ -4450,44 +4450,44 @@ to {
4450
4450
  scale:1;
4451
4451
  }
4452
4452
  }
4453
- .bgl-lightbox-item[data-v-194584ac] * {
4453
+ .bgl-lightbox-item[data-v-a5e1d29b] * {
4454
4454
  max-height: calc(80vh - 90px);
4455
4455
  border-radius: 3px;
4456
4456
  margin: auto;
4457
- animation: 200ms ease bgl-lightbox-load-194584ac;
4457
+ animation: 200ms ease bgl-lightbox-load-a5e1d29b;
4458
4458
  transition: max-height 200ms ease;
4459
4459
  }
4460
- .bgl-lightbox-item.zoomed[data-v-194584ac] * {
4460
+ .bgl-lightbox-item.zoomed[data-v-a5e1d29b] * {
4461
4461
  max-height: calc(100vh - 90px);
4462
4462
  height: calc(100vh - 90px);
4463
4463
  }
4464
- .navigation[data-v-194584ac] {
4464
+ .navigation[data-v-a5e1d29b] {
4465
4465
  top: 50%;
4466
4466
  transform: translateY(-50%);
4467
4467
  }
4468
- .thumbnail[data-v-194584ac] {
4468
+ .thumbnail[data-v-a5e1d29b] {
4469
4469
  height: 50px;
4470
4470
  width: 50px;
4471
4471
  }
4472
- .thumbnail[data-v-194584ac]:hover {
4472
+ .thumbnail[data-v-a5e1d29b]:hover {
4473
4473
  opacity: 1;
4474
4474
  }
4475
- .thumbnail[data-v-194584ac]:active {
4475
+ .thumbnail[data-v-a5e1d29b]:active {
4476
4476
  opacity: 0.8;
4477
4477
  }
4478
- .thumbnail.active[data-v-194584ac] {
4478
+ .thumbnail.active[data-v-a5e1d29b] {
4479
4479
  opacity: 1;
4480
4480
  outline: 2px solid white;
4481
4481
  }
4482
- .file-info[data-v-194584ac]{
4482
+ .file-info[data-v-a5e1d29b]{
4483
4483
  max-width: 420px
4484
4484
  }
4485
4485
  @media screen and (max-width: 910px) {
4486
- .file-info[data-v-194584ac]{
4486
+ .file-info[data-v-a5e1d29b]{
4487
4487
  max-width: 220px;
4488
4488
  text-align: center !important;
4489
4489
  }
4490
- .file-info[data-v-194584ac] *{
4490
+ .file-info[data-v-a5e1d29b] *{
4491
4491
  text-align: center !important;
4492
4492
  margin-inline: 0 !important;;
4493
4493
  max-width: 100% !important;
@@ -26,4 +26,5 @@ export * as bagelFormUtils from './BagelFormUtils';
26
26
  export { useLang } from './lang';
27
27
  export { formatString } from './strings';
28
28
  export { useDebounceFn } from '@vueuse/core';
29
+ export declare function pathKeyToURL(pathKey: string): string;
29
30
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAI/D,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,IAAI,EAAE,IAAI,GAAE,MAAY,QAO1D;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,UAMlC;AAED,wBAAgB,UAAU,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQ3D;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,iBAGtE;AAED,wBAAgB,QAAQ,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,UAG3C;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,IAAI,QAIrE;AAED,wBAAgB,QAAQ,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,UAOpE;AAED,wBAAgB,SAAS,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EACnD,KAAK,CAAC,EAAE,UAAU,EAClB,QAAQ,CAAC,EAAE,GAAG,EACd,GAAG,CAAC,EAAE,CAAC,OAcP;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,OAO9C;AAED,wBAAgB,SAAS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AAI,CAAC,CAoBlF;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAatD;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,UAIvC;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAAE,aAAa,SAAO,GAAG,MAAM,GAAG,SAAS,CAG/G;AAED,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAA;AAElD,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAK5C,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,UAK3C"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.1227",
4
+ "version": "0.0.1234",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -76,7 +76,6 @@ const clientYDragStart = ref<null | number>(null)
76
76
  const clientXDragStart = ref<null | number>(null)
77
77
  const changeInQuartersOnDrag = ref(0)
78
78
  const changeInDaysOnDrag = ref(0)
79
- const isDragging = ref(false)
80
79
  const timeStartDragStart = ref(props.eventProp.time.start)
81
80
  const timeEndDragStart = ref(props.eventProp.time.end)
82
81
 
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { Skeleton, normalizeDimension, appendScript, normalizeURL, Icon } from '@bagelink/vue'
3
- import { watch, computed } from 'vue'
2
+ import { Skeleton, normalizeDimension, appendScript, normalizeURL, Icon, pathKeyToURL } from '@bagelink/vue'
3
+ import { watch } from 'vue'
4
4
 
5
5
  interface ImageProps {
6
6
  src?: string
@@ -22,15 +22,10 @@ const props = defineProps<ImageProps>()
22
22
  let imageSrc = $ref<string | null>(null)
23
23
  let loadingError = $ref(false)
24
24
 
25
- const fileBaseUrl = computed(() => 'https://files.bagel.design')
26
-
27
25
  function getImageUrl(): string | null {
28
26
  if (!props.src && !props.pathKey) return null
29
27
  if (props.src) return props.src
30
- if (props.pathKey?.startsWith('static/')) {
31
- return `${import.meta.env.VITE_BAGEL_BASE_URL}/${props.pathKey}`
32
- }
33
- return `${fileBaseUrl.value}/${props.pathKey}`
28
+ return pathKeyToURL(props.pathKey)
34
29
  }
35
30
 
36
31
  async function getCachedImage(url: string): Promise<string | null> {
@@ -215,9 +215,6 @@ const isSelecting = ref(false)
215
215
  const selectionStart = ref<CellPosition | null>(null)
216
216
  const selectionEnd = ref<CellPosition | null>(null)
217
217
 
218
- // Variable to hold copied cell data
219
- const copiedData = ref<string[][]>([])
220
-
221
218
  // Reactive variable to track the currently editing cell
222
219
  const editingCell = ref<CellPosition | null>(null)
223
220
 
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import type { BglFile, QueueFile } from './upload.types'
3
- import { Btn, IMAGE_FORMATS_REGEXP, Icon, useBagel, Card, Image } from '@bagelink/vue'
3
+ import { Btn, IMAGE_FORMATS_REGEXP, Icon, useBagel, Card, Image, pathKeyToURL } from '@bagelink/vue'
4
4
  import { watch } from 'vue'
5
5
  import { files } from './upload'
6
6
 
@@ -33,8 +33,6 @@ const bagel = useBagel()
33
33
 
34
34
  files.setBaseUrl(bagel.host)
35
35
 
36
- const fileBaseUrl = $computed(() => (props.baseURL || bagel.fileBaseUrl || 'https://files.bagel.design').replace(/\/$/, ''))
37
- const pathToUrl = (path_key: string) => `${fileBaseUrl}/${path_key}`
38
36
  const fileQueue = $ref<QueueFile[]>([])
39
37
  let storageFiles = $ref<BglFile[]>([])
40
38
  const pk = $ref<string[]>([props.modelValue].flat().filter(Boolean) as string[])
@@ -184,13 +182,13 @@ watch(() => props.dirPath, () => {
184
182
  icon="download"
185
183
  flat
186
184
  thin
187
- :href="pathToUrl(path_key)"
185
+ :href="pathKeyToURL(path_key)"
188
186
  :download="path_key.split('/').pop()"
189
187
  />
190
188
  <div class="flex gap-025 rounded pe-1 ps-05 py-025 bg-gray-80 -my-1 ">
191
189
  <Icon icon="draft" :size="1.5" />
192
190
  <p
193
- v-lightbox="{ src: pathToUrl(path_key), download: true }"
191
+ v-lightbox="{ src: pathKeyToURL(path_key), download: true }"
194
192
  class="ellipsis-1 word-break-all h-20 m-0 color-black txt16"
195
193
  >
196
194
  {{ path_key.split('/').pop() }}
@@ -227,7 +225,7 @@ watch(() => props.dirPath, () => {
227
225
  <div
228
226
  v-for="path_key in pathKeys"
229
227
  :key="path_key"
230
- v-lightbox="{ src: pathToUrl(path_key), download: true }"
228
+ v-lightbox="{ src: pathKeyToURL(path_key), download: true }"
231
229
  class="multi-image-item-preview"
232
230
  :class="{ 'bgl_fill-image': fill }"
233
231
  >
@@ -308,13 +306,13 @@ watch(() => props.dirPath, () => {
308
306
  color="gray"
309
307
  thin
310
308
  icon="download"
311
- :href="pathToUrl(path_key)"
309
+ :href="pathKeyToURL(path_key)"
312
310
  :download="path_key.split('/').pop()"
313
311
  />
314
312
  </div>
315
313
  <div v-if="isImage(path_key)" class="h-100">
316
314
  <Image
317
- v-lightbox="{ src: pathToUrl(path_key), download: true }"
315
+ v-lightbox="{ src: pathKeyToURL(path_key), download: true }"
318
316
 
319
317
  class="single-preview"
320
318
  :pathKey="path_key"
@@ -323,7 +321,7 @@ watch(() => props.dirPath, () => {
323
321
  </div>
324
322
  <Icon
325
323
  v-else
326
- v-lightbox="{ src: pathToUrl(path_key), download: true }"
324
+ v-lightbox="{ src: pathKeyToURL(path_key), download: true }"
327
325
  :size="4"
328
326
  weight="2"
329
327
  icon="description"
@@ -117,7 +117,7 @@ defineExpose({ open, close })
117
117
  <Carousel v-model:index="currentIndex" :items="1" class="bgl-lightbox-item" :class="{ zoomed: zoom > 1 }" :freeDrag="zoom === 1">
118
118
  <template v-for="item in group" :key="item.src">
119
119
  <Zoomer v-if="item.type === 'image'" v-model:zoom="zoom" :disabled="!item?.enableZoom" :mouse-wheel-to-zoom="false">
120
- <Image :draggable="false" :src="item?.src" :pathKey="item?.pathKey" alt="Preview" class="vw90 lightbox-image" />
120
+ <Image :draggable="false" :src="item?.src" alt="Preview" class="vw90 lightbox-image" />
121
121
  </Zoomer>
122
122
 
123
123
  <BglVideo
@@ -1,6 +1,6 @@
1
1
  import type { App, Directive, DirectiveBinding } from 'vue'
2
2
  import type { LightboxItem } from './lightbox.types'
3
- import { IMAGE_FORMATS_REGEXP, VIDEO_FORMATS_REGEXP } from '@bagelink/vue'
3
+ import { IMAGE_FORMATS_REGEXP, pathKeyToURL, VIDEO_FORMATS_REGEXP } from '@bagelink/vue'
4
4
  import { createApp } from 'vue'
5
5
  import Lightbox from './Lightbox.vue'
6
6
 
@@ -48,8 +48,8 @@ function openClickHandler(e: MouseEvent, el: HTMLElement, binding: DirectiveBind
48
48
  }
49
49
 
50
50
  function bindingToItem(binding: DirectiveBinding, el: HTMLElement): LightboxItem {
51
- let { group, src, type, name, thumbnail, enableZoom, openFile, download } = binding.value || {}
52
- src = src || binding.value || el.getAttribute('src') || ''
51
+ let { group, src, type, name, thumbnail, enableZoom, openFile, download, pathKey } = binding.value || {}
52
+ src = src || pathKeyToURL(pathKey) || binding.value || el.getAttribute('src') || ''
53
53
  type = type || determineFileType(src)
54
54
  name = name || urlToName(src) || el.getAttribute('alt') || ''
55
55
  return { src, type, name, thumbnail, group, enableZoom, openFile, download }
@@ -1,6 +1,6 @@
1
- export interface LightboxItem {
2
- src?: string
3
- pathKey?: string
1
+ export type XORSrcPath = { src: string, pathKey?: never } | { src?: never, pathKey: string }
2
+
3
+ export type LightboxItem = XORSrcPath & {
4
4
  type: string
5
5
  name: string
6
6
  thumbnail?: string
@@ -63,10 +63,6 @@ export function useSchemaField<T extends { [key: string]: any }>(options: UseSch
63
63
  return typeof field.$el === 'object' ? field.$el : componentMap[field.$el as keyof typeof componentMap] ?? field.$el ?? 'div'
64
64
  }
65
65
 
66
- function isSlotFunction<T>(slot: unknown): slot is SlotFunction<T> {
67
- return typeof slot === 'function'
68
- }
69
-
70
66
  function renderChild(child: SupportedChild<T>, slots?: Record<string, SupportedSlot<T>>): any {
71
67
  if (typeof child === 'string') return child
72
68
  if (isVNode(child)) return child
@@ -168,3 +168,13 @@ export { useLang } from './lang'
168
168
 
169
169
  export { formatString } from './strings'
170
170
  export { useDebounceFn } from '@vueuse/core'
171
+
172
+ const fileBaseUrl = (import.meta.env.VITE_FILE_BASE_URL || 'https://files.bagel.design').replace(/\/$/, '')
173
+ const bagelBaseUrl = import.meta.env.VITE_BAGEL_BASE_URL
174
+
175
+ export function pathKeyToURL(pathKey: string) {
176
+ if (pathKey.startsWith('static/')) {
177
+ return `${bagelBaseUrl}/${pathKey}`
178
+ }
179
+ return `${fileBaseUrl}/${pathKey}`
180
+ }