@bagelink/vue 0.0.1240 → 0.0.1246

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.
Files changed (45) hide show
  1. package/dist/components/Calendar/Index.vue.d.ts +4 -4
  2. package/dist/components/Calendar/components/header/Header.vue.d.ts +2 -2
  3. package/dist/components/Calendar/components/header/Header.vue.d.ts.map +1 -1
  4. package/dist/components/Calendar/components/month/AgendaEventTile.vue.d.ts.map +1 -1
  5. package/dist/components/Calendar/components/month/AgendaEvents.vue.d.ts.map +1 -1
  6. package/dist/components/Calendar/components/month/Day.vue.d.ts.map +1 -1
  7. package/dist/components/Calendar/components/month/Month.vue.d.ts.map +1 -1
  8. package/dist/components/Calendar/components/week/DayEvent.vue.d.ts.map +1 -1
  9. package/dist/components/Calendar/components/week/DayTimeline.vue.d.ts.map +1 -1
  10. package/dist/components/Calendar/language/index.d.ts.map +1 -1
  11. package/dist/components/Calendar/language/keys.d.ts +6 -0
  12. package/dist/components/Calendar/language/keys.d.ts.map +1 -1
  13. package/dist/components/Image.vue.d.ts.map +1 -1
  14. package/dist/components/form/inputs/DatePick.vue.d.ts +1 -1
  15. package/dist/components/form/inputs/DatePick.vue.d.ts.map +1 -1
  16. package/dist/components/index.d.ts +0 -1
  17. package/dist/components/index.d.ts.map +1 -1
  18. package/dist/components/lightbox/index.d.ts.map +1 -1
  19. package/dist/composables/useSchemaField.d.ts.map +1 -1
  20. package/dist/index.cjs +109 -268
  21. package/dist/index.mjs +110 -269
  22. package/dist/style.css +94 -77
  23. package/dist/utils/index.d.ts +1 -1
  24. package/dist/utils/index.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/components/Calendar/components/header/Header.vue +29 -29
  27. package/src/components/Calendar/components/month/AgendaEventTile.vue +35 -28
  28. package/src/components/Calendar/components/month/AgendaEvents.vue +4 -4
  29. package/src/components/Calendar/components/month/Day.vue +9 -6
  30. package/src/components/Calendar/components/month/Month.vue +12 -3
  31. package/src/components/Calendar/components/partials/EventFlyout.vue +5 -5
  32. package/src/components/Calendar/components/week/DayEvent.vue +6 -6
  33. package/src/components/Calendar/components/week/DayTimeline.vue +15 -21
  34. package/src/components/Calendar/components/week/FullDayEvent.vue +1 -1
  35. package/src/components/Calendar/components/week/Week.vue +3 -3
  36. package/src/components/Calendar/language/index.ts +1 -0
  37. package/src/components/Calendar/language/keys.ts +6 -0
  38. package/src/components/Image.vue +1 -2
  39. package/src/components/index.ts +0 -1
  40. package/src/components/lightbox/index.ts +3 -2
  41. package/src/composables/useSchemaField.ts +0 -1
  42. package/src/styles/layout.css +4 -0
  43. package/src/styles/mobilLayout.css +4 -0
  44. package/src/utils/index.ts +3 -1
  45. package/src/components/BglComponent.vue +0 -187
package/dist/index.cjs CHANGED
@@ -47,7 +47,7 @@ const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
47
47
  return uploadField;
48
48
  }
49
49
  }, Symbol.toStringTag, { value: "Module" }));
50
- const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
50
+ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
51
51
  __name: "Accordion",
52
52
  setup(__props) {
53
53
  const state2 = vue.reactive({
@@ -61,10 +61,10 @@ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
61
61
  };
62
62
  }
63
63
  });
64
- const _hoisted_1$1a = ["aria-expanded", "aria-controls"];
64
+ const _hoisted_1$19 = ["aria-expanded", "aria-controls"];
65
65
  const _hoisted_2$R = { class: "accordion-label" };
66
66
  const _hoisted_3$F = ["id", "aria-hidden"];
67
- const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
67
+ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
68
68
  __name: "AccordionItem",
69
69
  props: {
70
70
  label: {},
@@ -138,7 +138,7 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
138
138
  }, [
139
139
  vue.createVNode(vue.unref(_sfc_main$r), { icon: computedIcon.value }, null, 8, ["icon"])
140
140
  ], 2)) : vue.createCommentVNode("", true)
141
- ], 8, _hoisted_1$1a),
141
+ ], 8, _hoisted_1$19),
142
142
  vue.createVNode(vue.Transition, { name: "expand" }, {
143
143
  default: vue.withCtx(() => [
144
144
  vue.unref(isOpen) ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -163,9 +163,9 @@ const _export_sfc = (sfc, props2) => {
163
163
  }
164
164
  return target;
165
165
  };
166
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-3334f637"]]);
167
- const _hoisted_1$19 = { class: "relative" };
168
- const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
166
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-3334f637"]]);
167
+ const _hoisted_1$18 = { class: "relative" };
168
+ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
169
169
  __name: "AddressSearch",
170
170
  emits: ["addressSelected"],
171
171
  setup(__props, { emit: __emit }) {
@@ -187,7 +187,7 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
187
187
  (_a2 = suggestion.value) == null ? void 0 : _a2.show();
188
188
  }
189
189
  return (_ctx, _cache) => {
190
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$19, [
190
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$18, [
191
191
  vue.createVNode(vue.unref(_sfc_main$V), {
192
192
  ref_key: "suggestion",
193
193
  ref: suggestion,
@@ -223,11 +223,11 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
223
223
  };
224
224
  }
225
225
  });
226
- const _hoisted_1$18 = {
226
+ const _hoisted_1$17 = {
227
227
  key: 1,
228
228
  class: "bgl_btn-flex"
229
229
  };
230
- const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
230
+ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
231
231
  __name: "Btn",
232
232
  props: {
233
233
  disabled: { type: Boolean, default: false },
@@ -293,7 +293,7 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
293
293
  key: 0,
294
294
  class: "h-100p",
295
295
  size: "15"
296
- })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$18, [
296
+ })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$17, [
297
297
  _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$r), {
298
298
  key: 0,
299
299
  icon: _ctx.icon,
@@ -317,10 +317,10 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
317
317
  };
318
318
  }
319
319
  });
320
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-bfc435b3"]]);
321
- const _hoisted_1$17 = ["dismissable"];
320
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-bfc435b3"]]);
321
+ const _hoisted_1$16 = ["dismissable"];
322
322
  const _hoisted_2$Q = { class: "m-0" };
323
- const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
323
+ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
324
324
  __name: "Alert",
325
325
  props: {
326
326
  message: {},
@@ -356,13 +356,13 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
356
356
  icon: "close",
357
357
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
358
358
  })
359
- ], 10, _hoisted_1$17)) : vue.createCommentVNode("", true);
359
+ ], 10, _hoisted_1$16)) : vue.createCommentVNode("", true);
360
360
  };
361
361
  }
362
362
  });
363
- const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-064bdd20"]]);
364
- const _hoisted_1$16 = ["src", "alt"];
365
- const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
363
+ const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-064bdd20"]]);
364
+ const _hoisted_1$15 = ["src", "alt"];
365
+ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
366
366
  __name: "Avatar",
367
367
  props: {
368
368
  fallback: {},
@@ -380,7 +380,7 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
380
380
  key: 0,
381
381
  src: _ctx.src,
382
382
  alt: _ctx.name
383
- }, null, 8, _hoisted_1$16)) : (vue.openBlock(), vue.createElementBlock("p", {
383
+ }, null, 8, _hoisted_1$15)) : (vue.openBlock(), vue.createElementBlock("p", {
384
384
  key: 1,
385
385
  style: vue.normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
386
386
  }, vue.toDisplayString((_ctx.fallback || vue.unref(initials)(_ctx.name || "")).toUpperCase()), 5))
@@ -388,8 +388,8 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
388
388
  };
389
389
  }
390
390
  });
391
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-46ad8c25"]]);
392
- const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
391
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-46ad8c25"]]);
392
+ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
393
393
  __name: "Badge",
394
394
  props: {
395
395
  color: {},
@@ -418,164 +418,7 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
418
418
  };
419
419
  }
420
420
  });
421
- const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-689f051f"]]);
422
- const _hoisted_1$15 = { key: 1 };
423
- const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
424
- __name: "BglComponent",
425
- props: {
426
- field: {},
427
- id: {},
428
- modelValue: {},
429
- parentPath: {}
430
- },
431
- emits: ["update:modelValue"],
432
- setup(__props, { emit: __emit }) {
433
- const props2 = __props;
434
- const emit2 = __emit;
435
- const customAttrs = vue.ref({});
436
- const is4 = vue.computed(() => {
437
- if (props2.field.$el === "text") return TextInput;
438
- if (props2.field.$el === "textarea") {
439
- customAttrs.value.multiline = true;
440
- return TextInput;
441
- }
442
- if (props2.field.$el === "number") return NumberInput;
443
- if (props2.field.$el === "array") return _sfc_main$R;
444
- if (props2.field.$el === "select") return SelectInput;
445
- if (props2.field.$el === "toggle") return ToggleInput;
446
- if (props2.field.$el === "check") return CheckInput;
447
- if (props2.field.$el === "richtext") return RichText;
448
- if (props2.field.$el === "upload") return UploadInput;
449
- if (props2.field.$el === "file") return FileUpload;
450
- if (props2.field.$el === "date") return _sfc_main$M;
451
- if (props2.field.$el === "tabs") return TabsNav;
452
- if (props2.field.$el === "form") return _sfc_main$S;
453
- return props2.field.$el ?? "div";
454
- });
455
- function getFieldData(path) {
456
- if (!path) return "";
457
- const keys4 = path.split(/[.[]/);
458
- let current = props2.modelValue;
459
- for (let i2 = 0; i2 < keys4.length; i2++) {
460
- const key = keys4[i2];
461
- if (!current || typeof current !== "object" || !(key in current)) {
462
- return "";
463
- }
464
- current = current[key];
465
- }
466
- return current ?? "";
467
- }
468
- function safeClone2(obj) {
469
- if (obj === null || typeof obj !== "object") return obj;
470
- const seen = /* @__PURE__ */ new WeakSet();
471
- return JSON.parse(JSON.stringify(obj, (key, value) => {
472
- if (typeof value === "object" && value !== null) {
473
- if (seen.has(value)) {
474
- return void 0;
475
- }
476
- seen.add(value);
477
- }
478
- return value;
479
- }));
480
- }
481
- function updateField(path, value) {
482
- const keys4 = path.split(/[.[]/);
483
- let current = props2.modelValue ?? {};
484
- for (let i2 = 0; i2 < keys4.length - 1; i2++) {
485
- const key = keys4[i2];
486
- if (!(key in current) || typeof current[key] !== "object" || current[key] === null) {
487
- current[key] = {};
488
- }
489
- current = current[key];
490
- }
491
- const safeValue = safeClone2(value);
492
- current[keys4[keys4.length - 1]] = safeValue;
493
- }
494
- const fieldData = vue.computed({
495
- get: () => {
496
- if (!props2.id) return props2.modelValue ?? props2.field.defaultValue ?? (props2.field.$el === "form" ? {} : "");
497
- const value = getFieldData(props2.id);
498
- if (props2.field.$el === "form" && !value) return {};
499
- return value ?? "";
500
- },
501
- set: (val) => {
502
- if (!props2.id) return;
503
- const currentValue = getFieldData(props2.id);
504
- if (JSON.stringify(val) === JSON.stringify(currentValue)) return;
505
- emit2("update:modelValue", val);
506
- if (props2.field.onUpdate) {
507
- props2.field.onUpdate(val, currentValue);
508
- }
509
- updateField(props2.id, val);
510
- }
511
- });
512
- const computedFieldData = vue.computed(
513
- () => {
514
- var _a2, _b;
515
- return ((_b = (_a2 = props2.field).transform) == null ? void 0 : _b.call(_a2, fieldData.value, props2.modelValue)) ?? fieldData.value;
516
- }
517
- );
518
- const vIf = vue.computed(() => {
519
- if (props2.field["v-if"] === void 0 && props2.field.vIf === void 0) return true;
520
- if (typeof props2.field["v-if"] === "boolean" || typeof props2.field.vIf === "boolean") return props2.field["v-if"];
521
- if (typeof props2.field["v-if"] === "string" || typeof props2.field.vIf === "string") return true;
522
- if (typeof props2.field["v-if"] === "function") return props2.field["v-if"](fieldData.value, props2.modelValue);
523
- if (typeof props2.field.vIf === "function") return props2.field.vIf(fieldData.value, props2.modelValue);
524
- return true;
525
- });
526
- const computedOptions = vue.computed(
527
- () => bindAttrs({ options: props2.field.options }, fieldData.value, props2.modelValue).options
528
- );
529
- const computedAttrs = vue.computed(() => {
530
- const attrs = { ...customAttrs.value, ...props2.field.attrs };
531
- const boundAttrs = bindAttrs(attrs, fieldData.value, props2.modelValue);
532
- return Object.fromEntries(
533
- Object.entries(boundAttrs).filter(([_2, value]) => value !== void 0)
534
- );
535
- });
536
- const computedClass = vue.computed(
537
- () => {
538
- var _a2;
539
- return classify(fieldData.value, props2.modelValue, props2.field.class, (_a2 = props2.field.attrs) == null ? void 0 : _a2.class);
540
- }
541
- );
542
- return (_ctx, _cache) => {
543
- var _a2;
544
- const _component_BglComponent = vue.resolveComponent("BglComponent", true);
545
- return vIf.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(is4.value), vue.mergeProps({ key: 0 }, computedAttrs.value, {
546
- id: props2.id,
547
- modelValue: fieldData.value,
548
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fieldData.value = $event),
549
- required: _ctx.field.required,
550
- class: computedClass.value,
551
- label: _ctx.field.label,
552
- placeholder: _ctx.field.placeholder || _ctx.field.label,
553
- defaultValue: _ctx.field.defaultValue,
554
- disabled: _ctx.field.disabled,
555
- options: computedOptions.value,
556
- helptext: _ctx.field.helptext,
557
- schema: ((_a2 = _ctx.field.attrs) == null ? void 0 : _a2.schema) ?? void 0
558
- }), {
559
- default: vue.withCtx(() => [
560
- _ctx.field.$el === "form" ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
561
- vue.createTextVNode(vue.toDisplayString(computedFieldData.value) + " ", 1),
562
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.field.children, (child, ii) => {
563
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: ii }, [
564
- typeof child !== "string" ? (vue.openBlock(), vue.createBlock(_component_BglComponent, {
565
- key: 0,
566
- id: [props2.id, child.id].filter(Boolean).join("."),
567
- field: child,
568
- "parent-path": props2.id
569
- }, null, 8, ["id", "field", "parent-path"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$15, vue.toDisplayString(child), 1))
570
- ], 64);
571
- }), 128))
572
- ], 64))
573
- ]),
574
- _: 3
575
- }, 16, ["id", "modelValue", "required", "class", "label", "placeholder", "defaultValue", "disabled", "options", "helptext", "schema"])) : vue.createCommentVNode("", true);
576
- };
577
- }
578
- });
421
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-689f051f"]]);
579
422
  const _hoisted_1$14 = ["src"];
580
423
  const _hoisted_2$P = ["autoplay", "muted", "loop", "controls", "playsinline"];
581
424
  const _hoisted_3$E = ["src", "type"];
@@ -694,7 +537,8 @@ const languageKeys = {
694
537
  "es-ES": "Semana",
695
538
  "ja-JP": "週",
696
539
  "pl-PL": "Tydzień",
697
- "hu-HU": "Hét"
540
+ "hu-HU": "Hét",
541
+ "he-IL": "שבוע"
698
542
  },
699
543
  month: {
700
544
  "it-IT": "Mese",
@@ -711,7 +555,8 @@ const languageKeys = {
711
555
  "es-ES": "Mes",
712
556
  "ja-JP": "月",
713
557
  "pl-PL": "Miesiąc",
714
- "hu-HU": "Hónap"
558
+ "hu-HU": "Hónap",
559
+ "he-IL": "חודש"
715
560
  },
716
561
  day: {
717
562
  "it-IT": "Giorno",
@@ -728,10 +573,12 @@ const languageKeys = {
728
573
  "es-ES": "Día",
729
574
  "ja-JP": "日",
730
575
  "pl-PL": "Dzień",
731
- "hu-HU": "Nap"
576
+ "hu-HU": "Nap",
577
+ "he-IL": "יום"
732
578
  },
733
579
  agenda: {
734
- "en-US": "Agenda"
580
+ "en-US": "Agenda",
581
+ "he-IL": "סדר יום"
735
582
  },
736
583
  /** Other keys */
737
584
  moreEvents: {
@@ -749,7 +596,8 @@ const languageKeys = {
749
596
  "es-ES": "más eventos",
750
597
  "ja-JP": "その他イベント",
751
598
  "pl-PL": "+ więcej wydarzeń",
752
- "hu-HU": "További események"
599
+ "hu-HU": "További események",
600
+ "he-IL": "+ עוד אירועים"
753
601
  },
754
602
  noEvent: {
755
603
  "it-IT": "Nessun evento",
@@ -766,7 +614,8 @@ const languageKeys = {
766
614
  "es-ES": "No hay eventos",
767
615
  "ja-JP": "イベントなし",
768
616
  "pl-PL": "Brak wydarzeń",
769
- "hu-HU": "Nincs esemény"
617
+ "hu-HU": "Nincs esemény",
618
+ "he-IL": "אין אירועים"
770
619
  }
771
620
  };
772
621
  const localeMap = /* @__PURE__ */ new Map([
@@ -784,7 +633,8 @@ const localeMap = /* @__PURE__ */ new Map([
784
633
  ["es", "es-ES"],
785
634
  ["ja", "ja-JP"],
786
635
  ["pl", "pl-PL"],
787
- ["hu", "hu-HU"]
636
+ ["hu", "hu-HU"],
637
+ ["he", "he-IL"]
788
638
  ]);
789
639
  function overrideShortLocaleWithLongLocale(locale2) {
790
640
  if (localeMap.has(locale2)) {
@@ -833,23 +683,6 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
833
683
  const periodSelect = vue.ref();
834
684
  const currentPeriod = vue.ref(props2.period);
835
685
  const modeOptions = vue.ref(["month", "week", "day", "agenda"]);
836
- vue.computed(() => {
837
- if (props2.mode === "week") {
838
- const startMonth = props2.time.getLocalizedNameOfMonth(
839
- currentPeriod.value.start,
840
- "short"
841
- );
842
- const endMonth = props2.time.getLocalizedNameOfMonth(
843
- currentPeriod.value.end,
844
- "short"
845
- );
846
- return startMonth === endMonth ? startMonth : `${startMonth} - ${endMonth}`;
847
- }
848
- return `${props2.time.getLocalizedNameOfMonth(
849
- currentPeriod.value.selectedDate,
850
- "short"
851
- )} ${currentPeriod.value.selectedDate.getFullYear()}`;
852
- });
853
686
  const modeLocal = vue.ref(props2.mode);
854
687
  const onlyDayModeIsEnabled = vue.computed(() => {
855
688
  var _a2, _b;
@@ -949,18 +782,19 @@ const EVENT_COLORS = {
949
782
  const DATE_TIME_STRING_PATTERN = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/;
950
783
  const DATE_TIME_STRING_FULL_DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
951
784
  const _hoisted_1$12 = ["id"];
952
- const _hoisted_2$N = {
785
+ const _hoisted_2$N = { class: "flex txt14 flex column align-items-start gap-025 opacity-6" };
786
+ const _hoisted_3$D = {
953
787
  key: 0,
954
- class: "agenda__event-time"
788
+ class: "agenda__event-time flex gap-025"
955
789
  };
956
- const _hoisted_3$D = { class: "agenda__event-title" };
957
790
  const _hoisted_4$r = {
958
791
  key: 1,
959
- class: "agenda__event-with"
792
+ class: "agenda__event-location flex gap-025"
960
793
  };
961
- const _hoisted_5$n = {
962
- key: 2,
963
- class: "agenda__event-location"
794
+ const _hoisted_5$n = { class: "agenda__event-title" };
795
+ const _hoisted_6$j = {
796
+ key: 0,
797
+ class: "agenda__event-with txt14 opacity-6"
964
798
  };
965
799
  const eventIdPrefix$1 = "agenda__event-";
966
800
  const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
@@ -982,8 +816,7 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
982
816
  emits: ["eventWasClicked"],
983
817
  setup(__props, { emit: __emit }) {
984
818
  vue.useCssVars((_ctx) => ({
985
- "2331113a": eventBackgroundColor.value,
986
- "13d56971": eventColor.value
819
+ "2e2f2739": eventBackgroundColor.value
987
820
  }));
988
821
  const props2 = __props;
989
822
  const emit2 = __emit;
@@ -1035,38 +868,44 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
1035
868
  return (_ctx, _cache) => {
1036
869
  return vue.openBlock(), vue.createElementBlock("div", {
1037
870
  id: elementId.value,
1038
- class: "agenda__event is-event rounded mb-05 pointer user-select-none p-1 flex column align-items-start",
871
+ class: "agenda__event is-event rounded mb-05 pointer user-select-none p-1 grid gap-1",
1039
872
  onClick: vue.withModifiers(handleClickOnEvent, ["prevent"])
1040
873
  }, [
1041
- eventTime.value && !__props.calendarEvent.originalEvent ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$N, [
1042
- vue.createVNode(vue.unref(_sfc_main$r), {
1043
- icon: icons.clock
1044
- }, null, 8, ["icon"]),
1045
- vue.createTextVNode(" " + vue.toDisplayString(eventTime.value), 1)
1046
- ])) : vue.createCommentVNode("", true),
1047
- vue.createElementVNode("span", _hoisted_3$D, vue.toDisplayString(__props.calendarEvent.title), 1),
1048
- __props.calendarEvent.with ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$r, [
1049
- vue.createVNode(vue.unref(_sfc_main$r), {
1050
- icon: icons.user
1051
- }, null, 8, ["icon"]),
1052
- vue.createTextVNode(" " + vue.toDisplayString(__props.calendarEvent.with), 1)
1053
- ])) : vue.createCommentVNode("", true),
1054
- __props.calendarEvent.location ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$n, [
1055
- vue.createVNode(vue.unref(_sfc_main$r), {
1056
- icon: icons.location
1057
- }, null, 8, ["icon"]),
1058
- vue.createTextVNode(" " + vue.toDisplayString(__props.calendarEvent.location), 1)
1059
- ])) : vue.createCommentVNode("", true)
874
+ vue.createElementVNode("div", _hoisted_2$N, [
875
+ eventTime.value && !__props.calendarEvent.originalEvent ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$D, [
876
+ vue.createVNode(vue.unref(_sfc_main$r), {
877
+ icon: icons.clock,
878
+ size: 0.8
879
+ }, null, 8, ["icon"]),
880
+ vue.createTextVNode(" " + vue.toDisplayString(eventTime.value), 1)
881
+ ])) : vue.createCommentVNode("", true),
882
+ __props.calendarEvent.location ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$r, [
883
+ vue.createVNode(vue.unref(_sfc_main$r), {
884
+ icon: icons.location,
885
+ size: 1
886
+ }, null, 8, ["icon"]),
887
+ vue.createTextVNode(" " + vue.toDisplayString(__props.calendarEvent.location), 1)
888
+ ])) : vue.createCommentVNode("", true)
889
+ ]),
890
+ vue.createElementVNode("div", null, [
891
+ vue.createElementVNode("div", _hoisted_5$n, vue.toDisplayString(__props.calendarEvent.title), 1),
892
+ __props.calendarEvent.with ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$j, [
893
+ vue.createVNode(vue.unref(_sfc_main$r), {
894
+ icon: icons.user
895
+ }, null, 8, ["icon"]),
896
+ vue.createTextVNode(" " + vue.toDisplayString(__props.calendarEvent.with), 1)
897
+ ])) : vue.createCommentVNode("", true)
898
+ ])
1060
899
  ], 8, _hoisted_1$12);
1061
900
  };
1062
901
  }
1063
902
  });
1064
- const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-7667cd3d"]]);
903
+ const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-5740437b"]]);
1065
904
  const _hoisted_1$11 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
1066
- const _hoisted_2$M = { class: "" };
905
+ const _hoisted_2$M = { class: "m_sticky" };
1067
906
  const _hoisted_3$C = { class: "agenda__header-day-name txt-center" };
1068
907
  const _hoisted_4$q = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
1069
- const _hoisted_5$m = { class: "agenda__content flex column w-100p h-100p min-h-100px pt-05 border-start ps-1" };
908
+ const _hoisted_5$m = { class: "agenda__content flex column w-100p h-100p min-h-100px pt-05 border-start ps-1 m_pt-0 min-h-50px" };
1070
909
  const _hoisted_6$i = {
1071
910
  key: 0,
1072
911
  class: "align-items-center flex justify-content-center h-100p opacity-6"
@@ -1097,7 +936,7 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
1097
936
  return (_ctx, _cache) => {
1098
937
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11, [
1099
938
  vue.createElementVNode("header", _hoisted_2$M, [
1100
- vue.createElementVNode("div", _hoisted_3$C, vue.toDisplayString(__props.day.dayName), 1),
939
+ vue.createElementVNode("div", _hoisted_3$C, vue.toDisplayString(__props.day.dayName.slice(0, 3)), 1),
1101
940
  vue.createElementVNode("div", _hoisted_4$q, vue.toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
1102
941
  ]),
1103
942
  vue.createElementVNode("div", _hoisted_5$m, [
@@ -1118,7 +957,7 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
1118
957
  };
1119
958
  }
1120
959
  });
1121
- const AgendaEvents = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-01274c4e"]]);
960
+ const AgendaEvents = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-746fe0c6"]]);
1122
961
  class EDate extends Date {
1123
962
  get fullYear() {
1124
963
  return this.getFullYear();
@@ -1859,14 +1698,14 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
1859
1698
  emits: ["hide", "editEvent", "deleteEvent"],
1860
1699
  setup(__props, { emit: __emit }) {
1861
1700
  vue.useCssVars((_ctx) => ({
1862
- "34f9e9aa": flyoutWidth
1701
+ "82e0d6e0": flyoutWidth
1863
1702
  }));
1864
1703
  const props2 = __props;
1865
1704
  const emit2 = __emit;
1866
1705
  const eventFlyoutPositionHelper = new EventFlyoutPosition();
1867
1706
  const isVisible = vue.ref(false);
1868
1707
  const top2 = vue.ref(0);
1869
- const left2 = vue.ref(0);
1708
+ const insetInlineEnd = vue.ref(0);
1870
1709
  const calendarEvent = vue.ref(props2.calendarEventProp);
1871
1710
  const flyoutWidth = `${EVENT_FLYOUT_WIDTH}px`;
1872
1711
  const colors = EVENT_COLORS;
@@ -1906,7 +1745,7 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
1906
1745
  return `${dateString} ⋅ ${timeString}`;
1907
1746
  });
1908
1747
  const eventFlyoutInlineStyles = vue.computed(() => {
1909
- if (typeof top2.value === "number" && !left2.value) {
1748
+ if (typeof top2.value === "number" && !insetInlineEnd.value) {
1910
1749
  return {
1911
1750
  top: `${top2.value}px`,
1912
1751
  left: "50%",
@@ -1916,7 +1755,7 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
1916
1755
  }
1917
1756
  return {
1918
1757
  top: `${top2.value}px`,
1919
- left: `${left2.value}px`,
1758
+ insetInlineEnd: `${insetInlineEnd.value}px`,
1920
1759
  position: "fixed"
1921
1760
  };
1922
1761
  });
@@ -1945,7 +1784,7 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
1945
1784
  calendar ? calendar.getBoundingClientRect() : null
1946
1785
  );
1947
1786
  top2.value = typeof (flyoutPosition == null ? void 0 : flyoutPosition.top) === "number" ? flyoutPosition.top : null;
1948
- left2.value = typeof (flyoutPosition == null ? void 0 : flyoutPosition.left) === "number" ? flyoutPosition.left : null;
1787
+ insetInlineEnd.value = typeof (flyoutPosition == null ? void 0 : flyoutPosition.left) === "number" ? flyoutPosition.left : null;
1949
1788
  }
1950
1789
  function editEvent() {
1951
1790
  var _a2;
@@ -2338,7 +2177,7 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
2338
2177
  };
2339
2178
  }
2340
2179
  });
2341
- const Day$1 = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-de994cfd"]]);
2180
+ const Day$1 = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-c1dfa100"]]);
2342
2181
  const _hoisted_1$Z = { class: "txt12 normal block color-black pb-025" };
2343
2182
  const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
2344
2183
  __name: "WeekDay",
@@ -2356,7 +2195,7 @@ const _hoisted_2$I = { class: "flex space-between" };
2356
2195
  const _hoisted_3$y = { class: "calendar-month__weeks h-100p flex-grow flex flex-stretch column space-between" };
2357
2196
  const _hoisted_4$m = {
2358
2197
  key: 0,
2359
- class: "calendar-month__day_events w-100p pt-1"
2198
+ class: "calendar-month__day_events w-100p pt-1 m_pb-1"
2360
2199
  };
2361
2200
  const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
2362
2201
  __name: "Month",
@@ -2860,12 +2699,12 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
2860
2699
  return !!(props2.eventProp.disableResize && props2.eventProp.disableResize.includes(props2.mode));
2861
2700
  });
2862
2701
  const requiredStyles = vue.computed(() => ({
2863
- top: getPositionInDay(event.value.time.start),
2864
- height: getLengthOfEvent(event.value.time.start, event.value.time.end),
2865
- left: `${getLeftRule.value}%`,
2866
- width: `${getWidthRule.value}%`,
2867
- transform: eventTransformValue.value,
2868
- zIndex: eventZIndexValue.value
2702
+ "top": getPositionInDay(event.value.time.start),
2703
+ "height": getLengthOfEvent(event.value.time.start, event.value.time.end),
2704
+ "inset-inline-start": `${getInlineStartRule.value}%`,
2705
+ "width": `${getWidthRule.value}%`,
2706
+ "transform": eventTransformValue.value,
2707
+ "zIndex": eventZIndexValue.value
2869
2708
  }));
2870
2709
  function getPositionInDay(dateTimeString) {
2871
2710
  return `${props2.time.getPercentageOfDayFromDateTimeString(dateTimeString, props2.time.DAY_START, props2.time.DAY_END).toString()}%`;
@@ -3164,7 +3003,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
3164
3003
  };
3165
3004
  }
3166
3005
  });
3167
- const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-6b5ab9be"]]);
3006
+ const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-9fd5622b"]]);
3168
3007
  const _hoisted_1$W = ["id", "onClick"];
3169
3008
  const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
3170
3009
  __name: "Day",
@@ -3310,8 +3149,8 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
3310
3149
  }
3311
3150
  });
3312
3151
  const Day = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-87669cec"]]);
3313
- const _hoisted_1$V = { class: "day-timeline" };
3314
- const _hoisted_2$G = { class: "day-timeline__hour-text" };
3152
+ const _hoisted_1$V = { class: "day-timeline absolute top-0 start-0 space-evenly column display-flex" };
3153
+ const _hoisted_2$G = { class: "day-timeline__hour-text line-height-0" };
3315
3154
  const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
3316
3155
  __name: "DayTimeline",
3317
3156
  props: {
@@ -3326,7 +3165,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
3326
3165
  },
3327
3166
  setup(__props) {
3328
3167
  vue.useCssVars((_ctx) => ({
3329
- "73f3c772": __props.weekHeight
3168
+ "399901d6": __props.weekHeight
3330
3169
  }));
3331
3170
  const props2 = __props;
3332
3171
  const timelineHours = vue.ref([]);
@@ -3342,7 +3181,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
3342
3181
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(timelineHours.value, (hour) => {
3343
3182
  return vue.openBlock(), vue.createElementBlock("div", {
3344
3183
  key: hour,
3345
- class: "day-timeline__hour"
3184
+ class: "day-timeline__hour display-flex column ustify-content-start h-100p ps-05"
3346
3185
  }, [
3347
3186
  vue.createElementVNode("span", _hoisted_2$G, vue.toDisplayString(getLocaleTimeString(hour)), 1)
3348
3187
  ]);
@@ -3351,7 +3190,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
3351
3190
  };
3352
3191
  }
3353
3192
  });
3354
- const DayTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-a4d8d28d"]]);
3193
+ const DayTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-0b3de5c5"]]);
3355
3194
  const _hoisted_1$U = ["id"];
3356
3195
  const _hoisted_2$F = {
3357
3196
  key: 1,
@@ -3428,7 +3267,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
3428
3267
  };
3429
3268
  }
3430
3269
  });
3431
- const FullDayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-489753e0"]]);
3270
+ const FullDayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-8bd51337"]]);
3432
3271
  const _hoisted_1$T = {
3433
3272
  class: "week-timeline flex space-between border-bottom ms-3-5",
3434
3273
  style: { "margin-inline-end": "0.5em" }
@@ -3531,7 +3370,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
3531
3370
  ],
3532
3371
  setup(__props, { emit: __emit }) {
3533
3372
  vue.useCssVars((_ctx) => ({
3534
- "7ccd10f4": weekHeight.value
3373
+ "65a2ac84": weekHeight.value
3535
3374
  }));
3536
3375
  const props2 = __props;
3537
3376
  const emit2 = __emit;
@@ -3793,7 +3632,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
3793
3632
  };
3794
3633
  }
3795
3634
  });
3796
- const Week = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-f1208dd2"]]);
3635
+ const Week = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-f1a405b2"]]);
3797
3636
  const _Errors = class _Errors {
3798
3637
  static checkEventProperties(event) {
3799
3638
  var _a2, _b, _c, _d;
@@ -40808,8 +40647,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
40808
40647
  let loadingError = vue.ref(false);
40809
40648
  function getImageUrl() {
40810
40649
  if (!props2.src && !props2.pathKey) return null;
40811
- if (props2.src) return props2.src;
40812
- return pathKeyToURL(props2.pathKey);
40650
+ return pathKeyToURL(props2.src || props2.pathKey);
40813
40651
  }
40814
40652
  async function getCachedImage(url) {
40815
40653
  if (!("caches" in window)) return null;
@@ -40908,7 +40746,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
40908
40746
  };
40909
40747
  }
40910
40748
  });
40911
- const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-1cec7fb3"]]);
40749
+ const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-367220b6"]]);
40912
40750
  const _hoisted_1$i = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
40913
40751
  const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
40914
40752
  __name: "BottomMenu",
@@ -43958,7 +43796,7 @@ function openClickHandler(e, el, binding) {
43958
43796
  }
43959
43797
  function bindingToItem(binding, el) {
43960
43798
  let { group, src, type: type3, name, thumbnail, enableZoom, openFile, download, pathKey } = binding.value || {};
43961
- src = src || pathKeyToURL(pathKey) || binding.value || el.getAttribute("src") || "";
43799
+ src = pathKeyToURL(src || pathKey) || binding.value || el.getAttribute("src") || "";
43962
43800
  type3 = type3 || determineFileType(src);
43963
43801
  name = name || urlToName(src) || el.getAttribute("alt") || "";
43964
43802
  return { src, type: type3, name, thumbnail, group, enableZoom, openFile, download };
@@ -43971,9 +43809,11 @@ function urlToName(url) {
43971
43809
  return name.replace(/\.[^/.]+$/, "");
43972
43810
  }
43973
43811
  function determineFileType(url) {
43812
+ var _a2;
43974
43813
  if (!url) return "unknown";
43975
43814
  const extension = (url.split(".").pop() || "").toLowerCase();
43976
- if (IMAGE_FORMATS_REGEXP.test(extension)) return "image";
43815
+ const altExtension = ((_a2 = url.split("?")[0].split(".").pop()) == null ? void 0 : _a2.toLowerCase()) || "";
43816
+ if (IMAGE_FORMATS_REGEXP.test(extension) || IMAGE_FORMATS_REGEXP.test(altExtension)) return "image";
43977
43817
  if (VIDEO_FORMATS_REGEXP.test(extension) || youtubeRegex.test(url) || vimeoRegex.test(url)) return "video";
43978
43818
  if (["pdf"].includes(extension)) return "pdf";
43979
43819
  return extension ?? "unknown";
@@ -44508,7 +44348,9 @@ function normalizeDimension(value, defaultMetric = "px") {
44508
44348
  const fileBaseUrl = "https://files.bagel.design".replace(/\/$/, "");
44509
44349
  const bagelBaseUrl = void 0;
44510
44350
  function pathKeyToURL(pathKey) {
44511
- if (pathKey == null ? void 0 : pathKey.startsWith("static/")) {
44351
+ const urlRE = /^https?:\/\/|^\/\//;
44352
+ if (!pathKey || urlRE.test(pathKey)) return pathKey;
44353
+ if (pathKey.startsWith("static/")) {
44512
44354
  return `${bagelBaseUrl}/${pathKey}`;
44513
44355
  }
44514
44356
  return `${fileBaseUrl}/${pathKey}`;
@@ -45039,15 +44881,14 @@ function timeAgo(date2, lang = "en") {
45039
44881
  }
45040
44882
  return selectedLang.justNow;
45041
44883
  }
45042
- exports.Accordion = _sfc_main$1n;
44884
+ exports.Accordion = _sfc_main$1m;
45043
44885
  exports.AccordionItem = AccordionItem;
45044
- exports.AddressSearch = _sfc_main$1l;
44886
+ exports.AddressSearch = _sfc_main$1k;
45045
44887
  exports.Alert = Alert;
45046
44888
  exports.Avatar = Avatar;
45047
44889
  exports.Badge = Badge;
45048
44890
  exports.BagelForm = _sfc_main$S;
45049
44891
  exports.BagelVue = BagelVue;
45050
- exports.BglComponent = _sfc_main$1g;
45051
44892
  exports.BglForm = _sfc_main$S;
45052
44893
  exports.BglVideo = BglVideo;
45053
44894
  exports.BottomMenu = BottomMenu;