@bagelink/vue 0.0.1224 → 0.0.1227

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { defineComponent, reactive, provide, openBlock, createElementBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, unref, createVNode, createCommentVNode, toDisplayString, Transition, withCtx, isRef, Fragment, renderList, createBlock, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withModifiers, withKeys, createTextVNode, normalizeStyle, resolveComponent, useCssVars, onMounted, Comment, Text, nextTick, onBeforeUnmount, onUnmounted, h as h$2, getCurrentScope, onScopeDispose, toValue, getCurrentInstance, shallowRef, mergeModels, useModel, normalizeProps, vModelCheckbox, pushScopeId, popScopeId, guardReactiveProps, withScopeId, createApp, vModelText, toRef, createSlots, Teleport, render as render$e, onBeforeUpdate, vShow, vModelRadio, TransitionGroup, vModelDynamic, markRaw } from "vue";
4
+ import { defineComponent, reactive, provide, openBlock, createElementBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, unref, createVNode, createCommentVNode, toDisplayString, Transition, withCtx, isRef, Fragment, renderList, createBlock, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withModifiers, withKeys, createTextVNode, normalizeStyle, resolveComponent, useCssVars, onMounted, Comment, Text, nextTick, onBeforeUnmount, onUnmounted, isVNode, h as h$2, getCurrentScope, onScopeDispose, toValue, getCurrentInstance, shallowRef, mergeModels, useModel, normalizeProps, vModelCheckbox, pushScopeId, popScopeId, guardReactiveProps, withScopeId, createApp, vModelText, toRef, createSlots, Teleport, render as render$e, onBeforeUpdate, vShow, vModelRadio, TransitionGroup, vModelDynamic, markRaw } from "vue";
5
5
  import { RouterLink } from "vue-router";
6
6
  const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7
7
  __proto__: null,
@@ -315,7 +315,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
315
315
  };
316
316
  }
317
317
  });
318
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-7b18a02c"]]);
318
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-bfc435b3"]]);
319
319
  const _hoisted_1$17 = ["dismissable"];
320
320
  const _hoisted_2$Q = { class: "m-0" };
321
321
  const _sfc_main$1j = /* @__PURE__ */ defineComponent({
@@ -10761,6 +10761,11 @@ function useSchemaField(options) {
10761
10761
  }
10762
10762
  return typeof field.$el === "object" ? field.$el : componentMap[field.$el] ?? field.$el ?? "div";
10763
10763
  }
10764
+ function renderChild(child, slots) {
10765
+ if (typeof child === "string") return child;
10766
+ if (isVNode(child)) return child;
10767
+ return renderField(child, slots);
10768
+ }
10764
10769
  function renderField(field, slots) {
10765
10770
  const Component = getComponent(field);
10766
10771
  if (!Component) return null;
@@ -10840,17 +10845,24 @@ function useSchemaField(options) {
10840
10845
  props2.class = classify(currentValue, rowData, fieldClass, props2.class);
10841
10846
  const componentSlots = {};
10842
10847
  if (children2 == null ? void 0 : children2.length) {
10843
- componentSlots.default = () => children2.map((child) => {
10844
- if (typeof child === "string") return child;
10845
- return renderField(child, slots);
10846
- }).filter(Boolean);
10848
+ componentSlots.default = () => children2.map((child) => renderChild(child, slots)).filter(Boolean);
10847
10849
  }
10848
10850
  if (isSlotValueComponent && transformedValue !== void 0) {
10849
10851
  componentSlots.default = () => (transformedValue == null ? void 0 : transformedValue.toString()) || "";
10850
10852
  }
10851
10853
  if (fieldSlots) {
10852
10854
  Object.entries(fieldSlots).forEach(([name, slot]) => {
10853
- componentSlots[name] = typeof slot === "function" ? () => slot(currentValue, rowData) : () => slot;
10855
+ componentSlots[name] = () => {
10856
+ if (Array.isArray(slot)) {
10857
+ return slot.map((schemaField) => renderField(schemaField, slots));
10858
+ } else if (isVNode(slot)) {
10859
+ return slot;
10860
+ } else if (typeof slot === "function") {
10861
+ const slotFn = slot;
10862
+ return slotFn({ row: rowData, field });
10863
+ }
10864
+ return slot;
10865
+ };
10854
10866
  });
10855
10867
  }
10856
10868
  const slotContent = field.id && (slots == null ? void 0 : slots[field.id]) ? slots[field.id]({ row: rowData, field }) : void 0;
@@ -15105,9 +15117,12 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
15105
15117
  async function handleSubmit() {
15106
15118
  var _a2;
15107
15119
  try {
15120
+ if (formState.value === "submitting") return;
15121
+ formState.value = "submitting";
15108
15122
  await ((_a2 = props2.onSubmit) == null ? void 0 : _a2.call(props2, formData.value));
15109
15123
  initialFormData.value = structuredClone(formData.value);
15110
15124
  formState.value = "success";
15125
+ window.parent.postMessage({ type: "BAGEL_FORM_SUCCESS", data: formData.value }, "*");
15111
15126
  } catch (error) {
15112
15127
  formState.value = "error";
15113
15128
  }
@@ -15145,7 +15160,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
15145
15160
  renderSlot(_ctx.$slots, "submit", {
15146
15161
  submit: handleSubmit,
15147
15162
  isDirty: isDirty.value,
15148
- validateForm
15163
+ validateForm,
15164
+ formState: formState.value
15149
15165
  }),
15150
15166
  formState.value === "success" ? renderSlot(_ctx.$slots, "success", { key: 2 }) : createCommentVNode("", true),
15151
15167
  formState.value === "error" ? renderSlot(_ctx.$slots, "error", { key: 3 }) : createCommentVNode("", true)
@@ -42144,7 +42160,7 @@ const _hoisted_5$1 = {
42144
42160
  };
42145
42161
  const _hoisted_6$1 = ["onClick"];
42146
42162
  const _hoisted_7$1 = ["onClick"];
42147
- const _hoisted_8$1 = ["onMousedown", "onMouseover", "onFocusin", "onDblclick", "onKeydown"];
42163
+ const _hoisted_8$1 = ["tabindex", "onMousedown", "onMouseover", "onFocusin", "onDblclick", "onKeydown"];
42148
42164
  const _hoisted_9$1 = ["value", "onInput"];
42149
42165
  const _hoisted_10$1 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder" };
42150
42166
  const _hoisted_11$1 = {
@@ -42164,7 +42180,7 @@ const _hoisted_16 = {
42164
42180
  };
42165
42181
  const _hoisted_17 = ["onClick"];
42166
42182
  const _hoisted_18 = ["onClick"];
42167
- const _hoisted_19 = ["onMousedown", "onMouseover", "onFocusin", "onDblclick", "onKeydown"];
42183
+ const _hoisted_19 = ["tabindex", "onMousedown", "onMouseover", "onFocusin", "onDblclick", "onKeydown"];
42168
42184
  const _hoisted_20 = ["value", "onInput"];
42169
42185
  const _hoisted_21 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder" };
42170
42186
  const _hoisted_22 = {
@@ -42248,7 +42264,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42248
42264
  format: (configuredColumn == null ? void 0 : configuredColumn.format) ?? "text",
42249
42265
  width: configuredColumn == null ? void 0 : configuredColumn.width,
42250
42266
  fixed: (configuredColumn == null ? void 0 : configuredColumn.fixed) ?? false,
42251
- hidden: (configuredColumn == null ? void 0 : configuredColumn.hidden) ?? false
42267
+ hidden: (configuredColumn == null ? void 0 : configuredColumn.hidden) ?? false,
42268
+ defaultValue: configuredColumn == null ? void 0 : configuredColumn.defaultValue
42252
42269
  };
42253
42270
  });
42254
42271
  });
@@ -42418,7 +42435,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42418
42435
  if (column == null ? void 0 : column.locked) return;
42419
42436
  saveState("cell");
42420
42437
  const parsedValue = parseValueForFormat(newValue, column == null ? void 0 : column.format);
42421
- localRows.value[rowIndex][key] = parsedValue;
42438
+ localRows.value[rowIndex][key] = parsedValue ?? (column == null ? void 0 : column.defaultValue) ?? ((column == null ? void 0 : column.format) === "boolean" ? false : "");
42422
42439
  emitUpdate();
42423
42440
  }
42424
42441
  const fixedColumns = computed(() => {
@@ -42430,7 +42447,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42430
42447
  function createEmptyRow() {
42431
42448
  const newRow = {};
42432
42449
  columns.value.forEach((col) => {
42433
- newRow[col.key] = col.format === "boolean" ? false : "";
42450
+ if (col.defaultValue !== void 0) {
42451
+ newRow[col.key] = col.defaultValue;
42452
+ } else {
42453
+ newRow[col.key] = col.format === "boolean" ? false : "";
42454
+ }
42434
42455
  });
42435
42456
  return newRow;
42436
42457
  }
@@ -42510,6 +42531,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42510
42531
  const input = editInputRef.value.get(inputKey);
42511
42532
  if (input) {
42512
42533
  input.focus();
42534
+ if (initialKey !== void 0) {
42535
+ input.value = initialKey;
42536
+ }
42513
42537
  }
42514
42538
  });
42515
42539
  }
@@ -42524,7 +42548,17 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42524
42548
  }
42525
42549
  editingCell.value = null;
42526
42550
  editingOriginalValue.value = null;
42527
- console.log(editingCell.value);
42551
+ }
42552
+ function handleStopEditingAndBlur(cancelled = false) {
42553
+ nextTick(() => {
42554
+ stopEditing(cancelled);
42555
+ nextTick(() => {
42556
+ const spreadsheet = document.querySelector(".spreadsheet");
42557
+ if (spreadsheet) {
42558
+ spreadsheet.focus();
42559
+ }
42560
+ });
42561
+ });
42528
42562
  }
42529
42563
  window.addEventListener("mouseup", handleMouseUp);
42530
42564
  function selectEntireRow(rowIndex) {
@@ -42677,7 +42711,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42677
42711
  locked: !isCellEditable(col.key)
42678
42712
  }),
42679
42713
  style: normalizeStyle({ width: col.width }),
42680
- tabindex: "0",
42714
+ tabindex: col.hidden ? void 0 : 0,
42681
42715
  onMousedown: ($event) => handleMouseDown(rowIndex, fixedColumns.value.indexOf(col)),
42682
42716
  onMouseover: ($event) => handleMouseOver(rowIndex, fixedColumns.value.indexOf(col)),
42683
42717
  onFocusin: ($event) => handleMouseOver(rowIndex, fixedColumns.value.indexOf(col)),
@@ -42691,12 +42725,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42691
42725
  value: row[col.key],
42692
42726
  type: "text",
42693
42727
  class: "spreadsheet-input",
42694
- autofocus: "",
42695
42728
  onInput: (e) => updateCell(rowIndex, col.key, e.target.value),
42696
- onBlur: _cache[1] || (_cache[1] = ($event) => stopEditing(false)),
42729
+ onBlur: _cache[1] || (_cache[1] = ($event) => handleStopEditingAndBlur(false)),
42697
42730
  onKeydown: [
42698
- _cache[2] || (_cache[2] = withKeys(withModifiers(($event) => stopEditing(true), ["prevent"]), ["esc"])),
42699
- _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => stopEditing(false), ["prevent"]), ["enter"]))
42731
+ _cache[2] || (_cache[2] = withKeys(withModifiers(($event) => handleStopEditingAndBlur(false), ["prevent"]), ["enter"])),
42732
+ _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => handleStopEditingAndBlur(true), ["prevent"]), ["esc"]))
42700
42733
  ],
42701
42734
  onMousedown: _cache[4] || (_cache[4] = withModifiers(() => {
42702
42735
  }, ["stop"]))
@@ -42761,7 +42794,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42761
42794
  locked: !isCellEditable(col.key)
42762
42795
  }),
42763
42796
  style: normalizeStyle({ width: col.width }),
42764
- tabindex: "0",
42797
+ tabindex: col.hidden ? void 0 : 0,
42765
42798
  onMousedown: ($event) => handleMouseDown(rowIndex, fixedColumns.value.length + colIndex),
42766
42799
  onMouseover: ($event) => handleMouseOver(rowIndex, fixedColumns.value.length + colIndex),
42767
42800
  onFocusin: ($event) => handleMouseOver(rowIndex, fixedColumns.value.length + colIndex),
@@ -42775,12 +42808,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42775
42808
  value: row[col.key],
42776
42809
  type: "text",
42777
42810
  class: "spreadsheet-input",
42778
- autofocus: "",
42779
42811
  onInput: (e) => updateCell(rowIndex, col.key, e.target.value),
42780
- onBlur: _cache[6] || (_cache[6] = ($event) => stopEditing(false)),
42812
+ onBlur: _cache[6] || (_cache[6] = ($event) => handleStopEditingAndBlur(false)),
42781
42813
  onKeydown: [
42782
- _cache[7] || (_cache[7] = withKeys(withModifiers(($event) => stopEditing(true), ["prevent"]), ["esc"])),
42783
- _cache[8] || (_cache[8] = withKeys(withModifiers(($event) => stopEditing(false), ["prevent"]), ["enter"]))
42814
+ _cache[7] || (_cache[7] = withKeys(withModifiers(($event) => handleStopEditingAndBlur(false), ["prevent"]), ["enter"])),
42815
+ _cache[8] || (_cache[8] = withKeys(withModifiers(($event) => handleStopEditingAndBlur(true), ["prevent"]), ["esc"]))
42784
42816
  ],
42785
42817
  onMousedown: _cache[9] || (_cache[9] = withModifiers(() => {
42786
42818
  }, ["stop"]))
@@ -42827,7 +42859,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42827
42859
  };
42828
42860
  }
42829
42861
  });
42830
- const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-c988b157"]]);
42862
+ const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-784daa05"]]);
42831
42863
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
42832
42864
  __name: "Title",
42833
42865
  props: {
@@ -43695,7 +43727,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43695
43727
  return (_ctx, _cache) => {
43696
43728
  return openBlock(), createBlock(Transition, { name: "fade" }, {
43697
43729
  default: withCtx(() => {
43698
- var _a2, _b, _c, _d, _e2, _f, _g, _h;
43730
+ var _a2, _b, _c, _d, _e2, _f, _g, _h, _i, _j;
43699
43731
  return [
43700
43732
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
43701
43733
  key: 0,
@@ -43756,7 +43788,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43756
43788
  onClick: _cache[2] || (_cache[2] = ($event) => zoom.value++)
43757
43789
  }, null, 8, ["disabled"])
43758
43790
  ])) : createCommentVNode("", true),
43759
- ((_c = unref(currentItem)) == null ? void 0 : _c.openFile) ? (openBlock(), createBlock(unref(Btn), {
43791
+ ((_c = unref(currentItem)) == null ? void 0 : _c.openFile) && ((_d = unref(currentItem)) == null ? void 0 : _d.src) ? (openBlock(), createBlock(unref(Btn), {
43760
43792
  key: 1,
43761
43793
  class: "color-white",
43762
43794
  round: "",
@@ -43764,10 +43796,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43764
43796
  flat: "",
43765
43797
  iconEnd: "arrow_outward",
43766
43798
  value: "Open File",
43767
- href: (_d = unref(currentItem)) == null ? void 0 : _d.src,
43799
+ href: (_e2 = unref(currentItem)) == null ? void 0 : _e2.src,
43768
43800
  target: "_blank"
43769
43801
  }, null, 8, ["href"])) : createCommentVNode("", true),
43770
- ((_e2 = unref(currentItem)) == null ? void 0 : _e2.download) ? (openBlock(), createBlock(unref(Btn), {
43802
+ ((_f = unref(currentItem)) == null ? void 0 : _f.download) && ((_g = unref(currentItem)) == null ? void 0 : _g.src) ? (openBlock(), createBlock(unref(Btn), {
43771
43803
  key: 2,
43772
43804
  class: "color-white",
43773
43805
  round: "",
@@ -43775,10 +43807,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43775
43807
  flat: "",
43776
43808
  icon: "download",
43777
43809
  value: "Download File",
43778
- href: upgradeHeaders((_f = unref(currentItem)) == null ? void 0 : _f.src),
43810
+ href: upgradeHeaders((_h = unref(currentItem)) == null ? void 0 : _h.src),
43779
43811
  download: ""
43780
43812
  }, null, 8, ["href"])) : createCommentVNode("", true),
43781
- !((_g = unref(currentItem)) == null ? void 0 : _g.openFile) && !((_h = unref(currentItem)) == null ? void 0 : _h.download) ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true)
43813
+ !((_i = unref(currentItem)) == null ? void 0 : _i.openFile) && !((_j = unref(currentItem)) == null ? void 0 : _j.download) ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true)
43782
43814
  ]),
43783
43815
  createVNode(unref(Carousel), {
43784
43816
  index: unref(currentIndex),
@@ -43803,18 +43835,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43803
43835
  createVNode(unref(Image$1), {
43804
43836
  draggable: false,
43805
43837
  src: item == null ? void 0 : item.src,
43838
+ pathKey: item == null ? void 0 : item.pathKey,
43806
43839
  alt: "Preview",
43807
43840
  class: "vw90 lightbox-image"
43808
- }, null, 8, ["src"])
43841
+ }, null, 8, ["src", "pathKey"])
43809
43842
  ]),
43810
43843
  _: 2
43811
- }, 1032, ["zoom", "disabled"])) : (item == null ? void 0 : item.type) === "video" ? (openBlock(), createBlock(unref(BglVideo), {
43844
+ }, 1032, ["zoom", "disabled"])) : (item == null ? void 0 : item.type) === "video" && (item == null ? void 0 : item.src) ? (openBlock(), createBlock(unref(BglVideo), {
43812
43845
  key: 1,
43813
43846
  src: item == null ? void 0 : item.src,
43814
43847
  autoplay: "",
43815
43848
  controls: "",
43816
43849
  class: "vw90"
43817
- }, null, 8, ["src"])) : (item == null ? void 0 : item.type) === "pdf" ? (openBlock(), createElementBlock("embed", {
43850
+ }, null, 8, ["src"])) : (item == null ? void 0 : item.type) === "pdf" && (item == null ? void 0 : item.src) ? (openBlock(), createElementBlock("embed", {
43818
43851
  key: 2,
43819
43852
  src: unref(normalizeURL)(item == null ? void 0 : item.src),
43820
43853
  type: "application/pdf",
@@ -43886,7 +43919,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43886
43919
  };
43887
43920
  }
43888
43921
  });
43889
- const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f833758f"]]);
43922
+ const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-194584ac"]]);
43890
43923
  const groups = {};
43891
43924
  let clickHandler = (_e2) => void 0;
43892
43925
  const lightboxDirective = {
@@ -44285,7 +44318,8 @@ function findBglFieldById(id, _schema) {
44285
44318
  for (const field of _schema) {
44286
44319
  if (field.id === id) return field;
44287
44320
  if (field.children && Number(field.children.length) > 0) {
44288
- const child = findBglFieldById(id, field.children.filter((c2) => typeof c2 !== "string"));
44321
+ const fieldChildren = field.children.filter((c2) => typeof c2 === "object" && "$el" in c2);
44322
+ const child = findBglFieldById(id, fieldChildren);
44289
44323
  if (child) return child;
44290
44324
  }
44291
44325
  }
package/dist/style.css CHANGED
@@ -55,62 +55,62 @@
55
55
  max-height: 300px;
56
56
  }
57
57
 
58
- .bgl_btn[data-v-7b18a02c] {
58
+ .bgl_btn[data-v-bfc435b3] {
59
59
  --btn-bg: var(--bgl-primary);
60
60
  --btn-color: var(--bgl-light-text);
61
61
  --btn-flat-color: var(--bgl-text-color);
62
62
  }
63
- .bgl_btn-green[data-v-7b18a02c] {
63
+ .bgl_btn-green[data-v-bfc435b3] {
64
64
  --btn-bg: var(--bgl-green);
65
65
  --btn-color: var(--bgl-light-text);
66
66
  --btn-flat-color: var(--bgl-green);
67
67
  }
68
- .bgl_btn-yellow[data-v-7b18a02c] {
68
+ .bgl_btn-yellow[data-v-bfc435b3] {
69
69
  --btn-bg: var(--bgl-yellow);
70
70
  --btn-color: var(--bgl-black);
71
71
  --btn-flat-color: var(--bgl-yellow);
72
72
  }
73
- .bgl_btn-blue[data-v-7b18a02c] {
73
+ .bgl_btn-blue[data-v-bfc435b3] {
74
74
  --btn-bg: var(--bgl-blue);
75
75
  --btn-color: var(--bgl-light-text);
76
76
  --btn-flat-color: var(--bgl-blue);
77
77
  }
78
- .bgl_btn-primary[data-v-7b18a02c] {
78
+ .bgl_btn-primary[data-v-bfc435b3] {
79
79
  --btn-bg: var(--bgl-primary);
80
80
  --btn-color: var(--bgl-light-text);
81
81
  --btn-flat-color: var(--bgl-primary);
82
82
  }
83
- .bgl_btn-red[data-v-7b18a02c] {
83
+ .bgl_btn-red[data-v-bfc435b3] {
84
84
  --btn-bg: var(--bgl-red);
85
85
  --btn-color: var(--bgl-light-text);
86
86
  --btn-flat-color: var(--bgl-red);
87
87
  }
88
- .bgl_btn-white[data-v-7b18a02c] {
88
+ .bgl_btn-white[data-v-bfc435b3] {
89
89
  --btn-bg: var(--bgl-white);
90
90
  --btn-color: var(--bgl-black);
91
91
  --btn-flat-color: var(--bgl-white);
92
92
  }
93
- .bgl_btn-black[data-v-7b18a02c] {
93
+ .bgl_btn-black[data-v-bfc435b3] {
94
94
  --btn-bg: var(--bgl-black);
95
95
  --btn-color: var(--bgl-light-text);
96
96
  --btn-flat-color: var(--bgl-black);
97
97
  }
98
- .bgl_btn-gray[data-v-7b18a02c] {
98
+ .bgl_btn-gray[data-v-bfc435b3] {
99
99
  --btn-bg: var(--bgl-gray-light);
100
100
  --btn-color: var(--bgl-black);
101
101
  --btn-flat-color: var(--bgl-gray);
102
102
  }
103
- .bgl_btn-light[data-v-7b18a02c] {
103
+ .bgl_btn-light[data-v-bfc435b3] {
104
104
  --btn-bg: var(--bgl-primary-light);
105
105
  --btn-color: var(--bgl-primary);
106
106
  --btn-flat-color: var(--bgl-primary-light);
107
107
  }
108
- .bgl_btn-gray-light[data-v-7b18a02c] {
108
+ .bgl_btn-gray-light[data-v-bfc435b3] {
109
109
  --btn-bg: var(--bgl-gray-light);
110
110
  --btn-color: var(--bgl-gray);
111
111
  --btn-flat-color: var(--bgl-gray-light);
112
112
  }
113
- .bgl_btn[data-v-7b18a02c] {
113
+ .bgl_btn[data-v-bfc435b3] {
114
114
  padding-left: var(--btn-padding);
115
115
  padding-right: var(--btn-padding);
116
116
  transition: var(--bgl-transition);
@@ -118,7 +118,7 @@
118
118
  color: var(--btn-color);
119
119
  text-decoration: none;
120
120
  }
121
- .bgl_btn.bgl_btn-icon[data-v-7b18a02c] {
121
+ .bgl_btn.bgl_btn-icon[data-v-bfc435b3] {
122
122
  padding-left: 0;
123
123
  padding-right: 0;
124
124
  height: var(--btn-height);
@@ -127,69 +127,72 @@
127
127
  font-size: 1rem;
128
128
  flex-shrink: 0;
129
129
  }
130
- a[data-v-7b18a02c] {
130
+ a[data-v-bfc435b3] {
131
131
  text-decoration: none;
132
132
  }
133
- .bgl_btn-flex[data-v-7b18a02c] {
133
+ .bgl_btn-flex[data-v-bfc435b3] {
134
134
  display: flex;
135
135
  align-items: center;
136
136
  gap: 0.5rem;
137
137
  justify-content: center;
138
138
  height: 100%;
139
139
  }
140
- .bgl_btn .bgl_btn-icon[data-v-7b18a02c]{
140
+ .bgl_btn .bgl_btn-icon[data-v-bfc435b3]{
141
141
  font-size: calc(var(--input-font-size) * 1.3);
142
142
  }
143
- .bgl_btn[data-v-7b18a02c]:hover,
144
- .bgl_btn-icon[data-v-7b18a02c]:hover {
143
+ .bgl_btn[data-v-bfc435b3]:hover,
144
+ .bgl_btn-icon[data-v-bfc435b3]:hover {
145
145
  filter: var(--bgl-hover-filter);
146
146
  }
147
- .bgl_btn[data-v-7b18a02c]:active:not(:disabled),
148
- .bgl_btn-icon[data-v-7b18a02c]:active:not(:disabled) {
147
+ .bgl_btn[data-v-bfc435b3]:active:not(:disabled),
148
+ .bgl_btn-icon[data-v-bfc435b3]:active:not(:disabled) {
149
149
  filter: var(--bgl-active-filter);
150
150
  }
151
- .bgl_btn.bgl_btn_flat[data-v-7b18a02c] {
151
+ .bgl_btn.bgl_btn_flat[data-v-bfc435b3] {
152
152
  background: transparent;
153
153
  color: var(--btn-flat-color);
154
154
  }
155
- .bgl_btn_flat[data-v-7b18a02c]:hover:not(:disabled),
156
- .bgl_btn-icon.bgl_btn_flat[data-v-7b18a02c]:hover:not(:disabled) {
155
+ .bgl_btn_flat[data-v-bfc435b3]:hover:not(:disabled),
156
+ .bgl_btn-icon.bgl_btn_flat[data-v-bfc435b3]:hover:not(:disabled) {
157
157
  background: var(--bgl-gray-20);
158
158
  }
159
- .bgl_btn.bgl_btn_flat[data-v-7b18a02c]:active:not(:disabled),
160
- .bgl_btn-icon.bgl_btn_flat[data-v-7b18a02c]:active:not(:disabled) {
159
+ .bgl_btn.bgl_btn_flat[data-v-bfc435b3]:active:not(:disabled),
160
+ .bgl_btn-icon.bgl_btn_flat[data-v-bfc435b3]:active:not(:disabled) {
161
161
  background: var(--bgl-gray-40);
162
162
  }
163
- .bgl_btn.thin[data-v-7b18a02c] {
163
+ .bgl_btn.thin[data-v-bfc435b3] {
164
164
  padding-inline: calc(var(--btn-padding) / 3);
165
165
  border-radius: calc(var(--btn-border-radius) / 1.5);
166
166
  }
167
- .bgl_btn.round[data-v-7b18a02c] {
167
+ .bgl_btn.round[data-v-bfc435b3] {
168
168
  border-radius: 1000px;
169
169
  }
170
- .bgl_btn-icon.thin[data-v-7b18a02c] {
170
+ .bgl_btn-icon.thin[data-v-bfc435b3] {
171
171
  height: calc(var(--btn-height) / 1.5);
172
172
  width: calc(var(--btn-height) / 1.5);
173
173
  line-height: normal;
174
174
  }
175
- .bgl_btn-icon.thin .bgl_btn-flex[data-v-7b18a02c] {
175
+ .bgl_btn-icon.thin .bgl_btn-flex[data-v-bfc435b3] {
176
176
  height: 100%;
177
177
  }
178
- [dir="rtl"] .bgl_btn-icon[data-v-7b18a02c]{
178
+ [dir="rtl"] .bgl_btn-icon[data-v-bfc435b3]{
179
179
  transform: rotateY(180deg);
180
180
  }
181
- .bgl_btn-border[data-v-7b18a02c], .bgl_btn-icon.bgl_btn_flat.bgl_btn-border[data-v-7b18a02c] {
181
+ [dir="rtl"] .ltr .bgl_btn-icon[data-v-bfc435b3]{
182
+ transform: rotateY(0deg);
183
+ }
184
+ .bgl_btn-border[data-v-bfc435b3], .bgl_btn-icon.bgl_btn_flat.bgl_btn-border[data-v-bfc435b3] {
182
185
  border: 1px solid var(--btn-flat-color);
183
186
  background: transparent;
184
187
  color: var(--btn-flat-color);
185
188
  }
186
- .bgl_btn-border[data-v-7b18a02c]:hover {
189
+ .bgl_btn-border[data-v-bfc435b3]:hover {
187
190
  color: var(--btn-flat-color);
188
191
  }
189
- .bgl_btn-border[data-v-7b18a02c]:active:not(:disabled) {
192
+ .bgl_btn-border[data-v-bfc435b3]:active:not(:disabled) {
190
193
  filter: brightness(80%);
191
194
  }
192
- .bgl_btn[data-v-7b18a02c]:disabled {
195
+ .bgl_btn[data-v-bfc435b3]:disabled {
193
196
  opacity: 0.6;
194
197
  filter: grayscale(0.3);
195
198
  cursor: not-allowed;
@@ -4305,20 +4308,20 @@ body:has(.bg-dark.is-active) {
4305
4308
  background: transparent;
4306
4309
  }
4307
4310
 
4308
- .fixed-columns[data-v-c988b157] {
4311
+ .fixed-columns[data-v-784daa05] {
4309
4312
  border-right: 2px solid var(--border-color);
4310
4313
  }
4311
- .spreadsheet table[data-v-c988b157] {
4314
+ .spreadsheet table[data-v-784daa05] {
4312
4315
  border-collapse: collapse;
4313
4316
  }
4314
- .spreadsheet th[data-v-c988b157], .spreadsheet td[data-v-c988b157] {
4317
+ .spreadsheet th[data-v-784daa05], .spreadsheet td[data-v-784daa05] {
4315
4318
  border: 1px solid var(--border-color);
4316
4319
  padding: 0.1rem 0.5rem;
4317
4320
  min-width: 80px;
4318
4321
  background: var(--bgl-white);
4319
4322
  user-select: none;
4320
4323
  }
4321
- .spreadsheet th[data-v-c988b157] {
4324
+ .spreadsheet th[data-v-784daa05] {
4322
4325
  background: var(--input-bg);
4323
4326
  white-space: nowrap;
4324
4327
  position: relative;
@@ -4326,27 +4329,27 @@ body:has(.bg-dark.is-active) {
4326
4329
  font-weight: 500;
4327
4330
  text-align: start;
4328
4331
  }
4329
- .spreadsheet th .bgl_icon-font[data-v-c988b157]{
4332
+ .spreadsheet th .bgl_icon-font[data-v-784daa05]{
4330
4333
  vertical-align: middle;
4331
4334
  }
4332
- .spreadsheet td.selected[data-v-c988b157] {
4335
+ .spreadsheet td.selected[data-v-784daa05] {
4333
4336
  background: var(--bgl-primary-light);
4334
4337
  }
4335
- .spreadsheet td.locked[data-v-c988b157] {
4338
+ .spreadsheet td.locked[data-v-784daa05] {
4336
4339
  background: var(--bgl-gray-light);
4337
4340
  cursor: default;
4338
4341
  }
4339
- .spreadsheet td.locked.selected[data-v-c988b157] {
4342
+ .spreadsheet td.locked.selected[data-v-784daa05] {
4340
4343
  background: var(--bgl-primary-light);
4341
4344
  }
4342
- .spreadsheet td[data-v-c988b157] {
4345
+ .spreadsheet td[data-v-784daa05] {
4343
4346
  height: 40px;
4344
4347
  vertical-align: middle;
4345
4348
  }
4346
- .spreadsheet td[data-v-c988b157]:has(img){
4349
+ .spreadsheet td[data-v-784daa05]:has(img){
4347
4350
  padding: 0;
4348
4351
  }
4349
- .spreadsheet td span[data-v-c988b157]{
4352
+ .spreadsheet td span[data-v-784daa05]{
4350
4353
  display: block;
4351
4354
  display: -webkit-box;
4352
4355
  max-width: 100%;
@@ -4356,7 +4359,7 @@ body:has(.bg-dark.is-active) {
4356
4359
  -webkit-line-clamp: 1;
4357
4360
  word-break: break-all;
4358
4361
  }
4359
- .spreadsheet input[data-v-c988b157] {
4362
+ .spreadsheet input[data-v-784daa05] {
4360
4363
  width: 100%;
4361
4364
  border: none;
4362
4365
  background: transparent;
@@ -4365,31 +4368,31 @@ body:has(.bg-dark.is-active) {
4365
4368
  min-height: 0;
4366
4369
  min-width: 0;
4367
4370
  }
4368
- .spreadsheet input[data-v-c988b157]:focus {
4371
+ .spreadsheet input[data-v-784daa05]:focus {
4369
4372
  outline: 2px solid var(--bgl-primary);
4370
4373
  outline-offset: 6px;
4371
4374
  }
4372
- .spreadsheet th.sortable[data-v-c988b157] {
4375
+ .spreadsheet th.sortable[data-v-784daa05] {
4373
4376
  cursor: pointer;
4374
4377
  }
4375
- .row-number-header[data-v-c988b157], .row-number[data-v-c988b157] {
4378
+ .row-number-header[data-v-784daa05], .row-number[data-v-784daa05] {
4376
4379
  width: fit-content;
4377
4380
  min-width: fit-content !important;
4378
4381
  padding: 0.1rem 0.7rem !important;
4379
4382
  }
4380
- .spreadsheet td .bgl-checkbox[data-v-c988b157]{
4383
+ .spreadsheet td .bgl-checkbox[data-v-784daa05]{
4381
4384
  margin: 0;
4382
4385
  text-align: center;
4383
4386
  justify-content: center;
4384
4387
  }
4385
- .spreadsheet td[data-v-c988b157]:has(.bgl-checkbox){
4388
+ .spreadsheet td[data-v-784daa05]:has(.bgl-checkbox){
4386
4389
  text-align: center;
4387
4390
  background: var(--input-bg);
4388
4391
  }
4389
- .spreadsheet td[data-v-c988b157]:has(:checked){
4392
+ .spreadsheet td[data-v-784daa05]:has(:checked){
4390
4393
  background: var(--bgl-primary-light);
4391
4394
  }
4392
- .spreadsheetCellPlaceHolder[data-v-c988b157]{
4395
+ .spreadsheetCellPlaceHolder[data-v-784daa05]{
4393
4396
  height: 0px;
4394
4397
  overflow: hidden;
4395
4398
  opactiy: 0;
@@ -4427,19 +4430,19 @@ body:has(.bg-dark.is-active) {
4427
4430
  -moz-user-drag: none;
4428
4431
  }
4429
4432
 
4430
- .lightbox-image[data-v-f833758f]{
4433
+ .lightbox-image[data-v-194584ac]{
4431
4434
  object-fit: contain;
4432
4435
  }
4433
- .bgl-lightbox-overlay[data-v-f833758f] {
4436
+ .bgl-lightbox-overlay[data-v-194584ac] {
4434
4437
  background: rgba(0, 0, 0, 0.8);
4435
4438
  }
4436
- .bgl-lightbox[data-v-f833758f] {
4439
+ .bgl-lightbox[data-v-194584ac] {
4437
4440
  max-height: 90%;
4438
4441
  }
4439
- .bgl-lightbox-item[data-v-f833758f]{
4440
- animation: 500ms ease bgl-lightbox-load-f833758f;
4442
+ .bgl-lightbox-item[data-v-194584ac]{
4443
+ animation: 500ms ease bgl-lightbox-load-194584ac;
4441
4444
  }
4442
- @keyframes bgl-lightbox-load-f833758f {
4445
+ @keyframes bgl-lightbox-load-194584ac {
4443
4446
  from {
4444
4447
  scale:0.7;
4445
4448
  }
@@ -4447,44 +4450,44 @@ to {
4447
4450
  scale:1;
4448
4451
  }
4449
4452
  }
4450
- .bgl-lightbox-item[data-v-f833758f] * {
4453
+ .bgl-lightbox-item[data-v-194584ac] * {
4451
4454
  max-height: calc(80vh - 90px);
4452
4455
  border-radius: 3px;
4453
4456
  margin: auto;
4454
- animation: 200ms ease bgl-lightbox-load-f833758f;
4457
+ animation: 200ms ease bgl-lightbox-load-194584ac;
4455
4458
  transition: max-height 200ms ease;
4456
4459
  }
4457
- .bgl-lightbox-item.zoomed[data-v-f833758f] * {
4460
+ .bgl-lightbox-item.zoomed[data-v-194584ac] * {
4458
4461
  max-height: calc(100vh - 90px);
4459
4462
  height: calc(100vh - 90px);
4460
4463
  }
4461
- .navigation[data-v-f833758f] {
4464
+ .navigation[data-v-194584ac] {
4462
4465
  top: 50%;
4463
4466
  transform: translateY(-50%);
4464
4467
  }
4465
- .thumbnail[data-v-f833758f] {
4468
+ .thumbnail[data-v-194584ac] {
4466
4469
  height: 50px;
4467
4470
  width: 50px;
4468
4471
  }
4469
- .thumbnail[data-v-f833758f]:hover {
4472
+ .thumbnail[data-v-194584ac]:hover {
4470
4473
  opacity: 1;
4471
4474
  }
4472
- .thumbnail[data-v-f833758f]:active {
4475
+ .thumbnail[data-v-194584ac]:active {
4473
4476
  opacity: 0.8;
4474
4477
  }
4475
- .thumbnail.active[data-v-f833758f] {
4478
+ .thumbnail.active[data-v-194584ac] {
4476
4479
  opacity: 1;
4477
4480
  outline: 2px solid white;
4478
4481
  }
4479
- .file-info[data-v-f833758f]{
4482
+ .file-info[data-v-194584ac]{
4480
4483
  max-width: 420px
4481
4484
  }
4482
4485
  @media screen and (max-width: 910px) {
4483
- .file-info[data-v-f833758f]{
4486
+ .file-info[data-v-194584ac]{
4484
4487
  max-width: 220px;
4485
4488
  text-align: center !important;
4486
4489
  }
4487
- .file-info[data-v-f833758f] *{
4490
+ .file-info[data-v-194584ac] *{
4488
4491
  text-align: center !important;
4489
4492
  margin-inline: 0 !important;;
4490
4493
  max-width: 100% !important;