@bagelink/vue 0.0.1244 → 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.
- package/dist/components/Calendar/Index.vue.d.ts +4 -4
- package/dist/components/Calendar/components/header/Header.vue.d.ts +2 -2
- package/dist/components/Calendar/components/month/AgendaEventTile.vue.d.ts.map +1 -1
- package/dist/components/Calendar/components/month/Day.vue.d.ts.map +1 -1
- package/dist/components/Calendar/components/month/Month.vue.d.ts.map +1 -1
- package/dist/components/Calendar/components/week/DayEvent.vue.d.ts.map +1 -1
- package/dist/components/Calendar/components/week/DayTimeline.vue.d.ts.map +1 -1
- package/dist/components/Calendar/language/index.d.ts.map +1 -1
- package/dist/components/Calendar/language/keys.d.ts +6 -0
- package/dist/components/Calendar/language/keys.d.ts.map +1 -1
- package/dist/components/Image.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePick.vue.d.ts +1 -1
- package/dist/components/form/inputs/DatePick.vue.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +106 -250
- package/dist/index.mjs +107 -251
- package/dist/style.css +94 -77
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Calendar/components/month/AgendaEventTile.vue +35 -28
- package/src/components/Calendar/components/month/AgendaEvents.vue +3 -3
- package/src/components/Calendar/components/month/Day.vue +9 -6
- package/src/components/Calendar/components/month/Month.vue +12 -3
- package/src/components/Calendar/components/partials/EventFlyout.vue +5 -5
- package/src/components/Calendar/components/week/DayEvent.vue +6 -6
- package/src/components/Calendar/components/week/DayTimeline.vue +15 -21
- package/src/components/Calendar/components/week/FullDayEvent.vue +1 -1
- package/src/components/Calendar/components/week/Week.vue +3 -3
- package/src/components/Calendar/language/index.ts +1 -0
- package/src/components/Calendar/language/keys.ts +6 -0
- package/src/components/Image.vue +1 -2
- package/src/components/index.ts +0 -1
- package/src/components/lightbox/index.ts +1 -1
- package/src/styles/layout.css +4 -0
- package/src/styles/mobilLayout.css +4 -0
- package/src/utils/index.ts +3 -1
- package/src/components/BglComponent.vue +0 -187
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,
|
|
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, useCssVars, onMounted, Comment, Text, nextTick, onBeforeUnmount, onUnmounted, resolveComponent, 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,
|
|
@@ -45,7 +45,7 @@ const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
45
45
|
return uploadField;
|
|
46
46
|
}
|
|
47
47
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
48
|
-
const _sfc_main$
|
|
48
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
49
49
|
__name: "Accordion",
|
|
50
50
|
setup(__props) {
|
|
51
51
|
const state2 = reactive({
|
|
@@ -59,10 +59,10 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
const _hoisted_1$
|
|
62
|
+
const _hoisted_1$19 = ["aria-expanded", "aria-controls"];
|
|
63
63
|
const _hoisted_2$R = { class: "accordion-label" };
|
|
64
64
|
const _hoisted_3$F = ["id", "aria-hidden"];
|
|
65
|
-
const _sfc_main$
|
|
65
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
66
66
|
__name: "AccordionItem",
|
|
67
67
|
props: {
|
|
68
68
|
label: {},
|
|
@@ -136,7 +136,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
136
136
|
}, [
|
|
137
137
|
createVNode(unref(_sfc_main$r), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
138
138
|
], 2)) : createCommentVNode("", true)
|
|
139
|
-
], 8, _hoisted_1$
|
|
139
|
+
], 8, _hoisted_1$19),
|
|
140
140
|
createVNode(Transition, { name: "expand" }, {
|
|
141
141
|
default: withCtx(() => [
|
|
142
142
|
unref(isOpen) ? (openBlock(), createElementBlock("div", {
|
|
@@ -161,9 +161,9 @@ const _export_sfc = (sfc, props2) => {
|
|
|
161
161
|
}
|
|
162
162
|
return target;
|
|
163
163
|
};
|
|
164
|
-
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
165
|
-
const _hoisted_1$
|
|
166
|
-
const _sfc_main$
|
|
164
|
+
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-3334f637"]]);
|
|
165
|
+
const _hoisted_1$18 = { class: "relative" };
|
|
166
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
167
167
|
__name: "AddressSearch",
|
|
168
168
|
emits: ["addressSelected"],
|
|
169
169
|
setup(__props, { emit: __emit }) {
|
|
@@ -185,7 +185,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
185
185
|
(_a2 = suggestion.value) == null ? void 0 : _a2.show();
|
|
186
186
|
}
|
|
187
187
|
return (_ctx, _cache) => {
|
|
188
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
188
|
+
return openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
189
189
|
createVNode(unref(_sfc_main$V), {
|
|
190
190
|
ref_key: "suggestion",
|
|
191
191
|
ref: suggestion,
|
|
@@ -221,11 +221,11 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
|
-
const _hoisted_1$
|
|
224
|
+
const _hoisted_1$17 = {
|
|
225
225
|
key: 1,
|
|
226
226
|
class: "bgl_btn-flex"
|
|
227
227
|
};
|
|
228
|
-
const _sfc_main$
|
|
228
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
229
229
|
__name: "Btn",
|
|
230
230
|
props: {
|
|
231
231
|
disabled: { type: Boolean, default: false },
|
|
@@ -291,7 +291,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
291
291
|
key: 0,
|
|
292
292
|
class: "h-100p",
|
|
293
293
|
size: "15"
|
|
294
|
-
})) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
294
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
295
295
|
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$r), {
|
|
296
296
|
key: 0,
|
|
297
297
|
icon: _ctx.icon,
|
|
@@ -315,10 +315,10 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
});
|
|
318
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
319
|
-
const _hoisted_1$
|
|
318
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-bfc435b3"]]);
|
|
319
|
+
const _hoisted_1$16 = ["dismissable"];
|
|
320
320
|
const _hoisted_2$Q = { class: "m-0" };
|
|
321
|
-
const _sfc_main$
|
|
321
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
322
322
|
__name: "Alert",
|
|
323
323
|
props: {
|
|
324
324
|
message: {},
|
|
@@ -354,13 +354,13 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
354
354
|
icon: "close",
|
|
355
355
|
onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
|
|
356
356
|
})
|
|
357
|
-
], 10, _hoisted_1$
|
|
357
|
+
], 10, _hoisted_1$16)) : createCommentVNode("", true);
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
});
|
|
361
|
-
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
362
|
-
const _hoisted_1$
|
|
363
|
-
const _sfc_main$
|
|
361
|
+
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-064bdd20"]]);
|
|
362
|
+
const _hoisted_1$15 = ["src", "alt"];
|
|
363
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
364
364
|
__name: "Avatar",
|
|
365
365
|
props: {
|
|
366
366
|
fallback: {},
|
|
@@ -378,7 +378,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
378
378
|
key: 0,
|
|
379
379
|
src: _ctx.src,
|
|
380
380
|
alt: _ctx.name
|
|
381
|
-
}, null, 8, _hoisted_1$
|
|
381
|
+
}, null, 8, _hoisted_1$15)) : (openBlock(), createElementBlock("p", {
|
|
382
382
|
key: 1,
|
|
383
383
|
style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
|
|
384
384
|
}, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
|
|
@@ -386,8 +386,8 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
|
-
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
390
|
-
const _sfc_main$
|
|
389
|
+
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-46ad8c25"]]);
|
|
390
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
391
391
|
__name: "Badge",
|
|
392
392
|
props: {
|
|
393
393
|
color: {},
|
|
@@ -416,164 +416,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
|
-
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
420
|
-
const _hoisted_1$15 = { key: 1 };
|
|
421
|
-
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
422
|
-
__name: "BglComponent",
|
|
423
|
-
props: {
|
|
424
|
-
field: {},
|
|
425
|
-
id: {},
|
|
426
|
-
modelValue: {},
|
|
427
|
-
parentPath: {}
|
|
428
|
-
},
|
|
429
|
-
emits: ["update:modelValue"],
|
|
430
|
-
setup(__props, { emit: __emit }) {
|
|
431
|
-
const props2 = __props;
|
|
432
|
-
const emit2 = __emit;
|
|
433
|
-
const customAttrs = ref({});
|
|
434
|
-
const is4 = computed(() => {
|
|
435
|
-
if (props2.field.$el === "text") return TextInput;
|
|
436
|
-
if (props2.field.$el === "textarea") {
|
|
437
|
-
customAttrs.value.multiline = true;
|
|
438
|
-
return TextInput;
|
|
439
|
-
}
|
|
440
|
-
if (props2.field.$el === "number") return NumberInput;
|
|
441
|
-
if (props2.field.$el === "array") return _sfc_main$R;
|
|
442
|
-
if (props2.field.$el === "select") return SelectInput;
|
|
443
|
-
if (props2.field.$el === "toggle") return ToggleInput;
|
|
444
|
-
if (props2.field.$el === "check") return CheckInput;
|
|
445
|
-
if (props2.field.$el === "richtext") return RichText;
|
|
446
|
-
if (props2.field.$el === "upload") return UploadInput;
|
|
447
|
-
if (props2.field.$el === "file") return FileUpload;
|
|
448
|
-
if (props2.field.$el === "date") return _sfc_main$M;
|
|
449
|
-
if (props2.field.$el === "tabs") return TabsNav;
|
|
450
|
-
if (props2.field.$el === "form") return _sfc_main$S;
|
|
451
|
-
return props2.field.$el ?? "div";
|
|
452
|
-
});
|
|
453
|
-
function getFieldData(path) {
|
|
454
|
-
if (!path) return "";
|
|
455
|
-
const keys4 = path.split(/[.[]/);
|
|
456
|
-
let current = props2.modelValue;
|
|
457
|
-
for (let i2 = 0; i2 < keys4.length; i2++) {
|
|
458
|
-
const key = keys4[i2];
|
|
459
|
-
if (!current || typeof current !== "object" || !(key in current)) {
|
|
460
|
-
return "";
|
|
461
|
-
}
|
|
462
|
-
current = current[key];
|
|
463
|
-
}
|
|
464
|
-
return current ?? "";
|
|
465
|
-
}
|
|
466
|
-
function safeClone2(obj) {
|
|
467
|
-
if (obj === null || typeof obj !== "object") return obj;
|
|
468
|
-
const seen = /* @__PURE__ */ new WeakSet();
|
|
469
|
-
return JSON.parse(JSON.stringify(obj, (key, value) => {
|
|
470
|
-
if (typeof value === "object" && value !== null) {
|
|
471
|
-
if (seen.has(value)) {
|
|
472
|
-
return void 0;
|
|
473
|
-
}
|
|
474
|
-
seen.add(value);
|
|
475
|
-
}
|
|
476
|
-
return value;
|
|
477
|
-
}));
|
|
478
|
-
}
|
|
479
|
-
function updateField(path, value) {
|
|
480
|
-
const keys4 = path.split(/[.[]/);
|
|
481
|
-
let current = props2.modelValue ?? {};
|
|
482
|
-
for (let i2 = 0; i2 < keys4.length - 1; i2++) {
|
|
483
|
-
const key = keys4[i2];
|
|
484
|
-
if (!(key in current) || typeof current[key] !== "object" || current[key] === null) {
|
|
485
|
-
current[key] = {};
|
|
486
|
-
}
|
|
487
|
-
current = current[key];
|
|
488
|
-
}
|
|
489
|
-
const safeValue = safeClone2(value);
|
|
490
|
-
current[keys4[keys4.length - 1]] = safeValue;
|
|
491
|
-
}
|
|
492
|
-
const fieldData = computed({
|
|
493
|
-
get: () => {
|
|
494
|
-
if (!props2.id) return props2.modelValue ?? props2.field.defaultValue ?? (props2.field.$el === "form" ? {} : "");
|
|
495
|
-
const value = getFieldData(props2.id);
|
|
496
|
-
if (props2.field.$el === "form" && !value) return {};
|
|
497
|
-
return value ?? "";
|
|
498
|
-
},
|
|
499
|
-
set: (val) => {
|
|
500
|
-
if (!props2.id) return;
|
|
501
|
-
const currentValue = getFieldData(props2.id);
|
|
502
|
-
if (JSON.stringify(val) === JSON.stringify(currentValue)) return;
|
|
503
|
-
emit2("update:modelValue", val);
|
|
504
|
-
if (props2.field.onUpdate) {
|
|
505
|
-
props2.field.onUpdate(val, currentValue);
|
|
506
|
-
}
|
|
507
|
-
updateField(props2.id, val);
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
const computedFieldData = computed(
|
|
511
|
-
() => {
|
|
512
|
-
var _a2, _b;
|
|
513
|
-
return ((_b = (_a2 = props2.field).transform) == null ? void 0 : _b.call(_a2, fieldData.value, props2.modelValue)) ?? fieldData.value;
|
|
514
|
-
}
|
|
515
|
-
);
|
|
516
|
-
const vIf = computed(() => {
|
|
517
|
-
if (props2.field["v-if"] === void 0 && props2.field.vIf === void 0) return true;
|
|
518
|
-
if (typeof props2.field["v-if"] === "boolean" || typeof props2.field.vIf === "boolean") return props2.field["v-if"];
|
|
519
|
-
if (typeof props2.field["v-if"] === "string" || typeof props2.field.vIf === "string") return true;
|
|
520
|
-
if (typeof props2.field["v-if"] === "function") return props2.field["v-if"](fieldData.value, props2.modelValue);
|
|
521
|
-
if (typeof props2.field.vIf === "function") return props2.field.vIf(fieldData.value, props2.modelValue);
|
|
522
|
-
return true;
|
|
523
|
-
});
|
|
524
|
-
const computedOptions = computed(
|
|
525
|
-
() => bindAttrs({ options: props2.field.options }, fieldData.value, props2.modelValue).options
|
|
526
|
-
);
|
|
527
|
-
const computedAttrs = computed(() => {
|
|
528
|
-
const attrs = { ...customAttrs.value, ...props2.field.attrs };
|
|
529
|
-
const boundAttrs = bindAttrs(attrs, fieldData.value, props2.modelValue);
|
|
530
|
-
return Object.fromEntries(
|
|
531
|
-
Object.entries(boundAttrs).filter(([_2, value]) => value !== void 0)
|
|
532
|
-
);
|
|
533
|
-
});
|
|
534
|
-
const computedClass = computed(
|
|
535
|
-
() => {
|
|
536
|
-
var _a2;
|
|
537
|
-
return classify(fieldData.value, props2.modelValue, props2.field.class, (_a2 = props2.field.attrs) == null ? void 0 : _a2.class);
|
|
538
|
-
}
|
|
539
|
-
);
|
|
540
|
-
return (_ctx, _cache) => {
|
|
541
|
-
var _a2;
|
|
542
|
-
const _component_BglComponent = resolveComponent("BglComponent", true);
|
|
543
|
-
return vIf.value ? (openBlock(), createBlock(resolveDynamicComponent(is4.value), mergeProps({ key: 0 }, computedAttrs.value, {
|
|
544
|
-
id: props2.id,
|
|
545
|
-
modelValue: fieldData.value,
|
|
546
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fieldData.value = $event),
|
|
547
|
-
required: _ctx.field.required,
|
|
548
|
-
class: computedClass.value,
|
|
549
|
-
label: _ctx.field.label,
|
|
550
|
-
placeholder: _ctx.field.placeholder || _ctx.field.label,
|
|
551
|
-
defaultValue: _ctx.field.defaultValue,
|
|
552
|
-
disabled: _ctx.field.disabled,
|
|
553
|
-
options: computedOptions.value,
|
|
554
|
-
helptext: _ctx.field.helptext,
|
|
555
|
-
schema: ((_a2 = _ctx.field.attrs) == null ? void 0 : _a2.schema) ?? void 0
|
|
556
|
-
}), {
|
|
557
|
-
default: withCtx(() => [
|
|
558
|
-
_ctx.field.$el === "form" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
559
|
-
createTextVNode(toDisplayString(computedFieldData.value) + " ", 1),
|
|
560
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.field.children, (child, ii) => {
|
|
561
|
-
return openBlock(), createElementBlock(Fragment, { key: ii }, [
|
|
562
|
-
typeof child !== "string" ? (openBlock(), createBlock(_component_BglComponent, {
|
|
563
|
-
key: 0,
|
|
564
|
-
id: [props2.id, child.id].filter(Boolean).join("."),
|
|
565
|
-
field: child,
|
|
566
|
-
"parent-path": props2.id
|
|
567
|
-
}, null, 8, ["id", "field", "parent-path"])) : (openBlock(), createElementBlock("span", _hoisted_1$15, toDisplayString(child), 1))
|
|
568
|
-
], 64);
|
|
569
|
-
}), 128))
|
|
570
|
-
], 64))
|
|
571
|
-
]),
|
|
572
|
-
_: 3
|
|
573
|
-
}, 16, ["id", "modelValue", "required", "class", "label", "placeholder", "defaultValue", "disabled", "options", "helptext", "schema"])) : createCommentVNode("", true);
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
});
|
|
419
|
+
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-689f051f"]]);
|
|
577
420
|
const _hoisted_1$14 = ["src"];
|
|
578
421
|
const _hoisted_2$P = ["autoplay", "muted", "loop", "controls", "playsinline"];
|
|
579
422
|
const _hoisted_3$E = ["src", "type"];
|
|
@@ -692,7 +535,8 @@ const languageKeys = {
|
|
|
692
535
|
"es-ES": "Semana",
|
|
693
536
|
"ja-JP": "週",
|
|
694
537
|
"pl-PL": "Tydzień",
|
|
695
|
-
"hu-HU": "Hét"
|
|
538
|
+
"hu-HU": "Hét",
|
|
539
|
+
"he-IL": "שבוע"
|
|
696
540
|
},
|
|
697
541
|
month: {
|
|
698
542
|
"it-IT": "Mese",
|
|
@@ -709,7 +553,8 @@ const languageKeys = {
|
|
|
709
553
|
"es-ES": "Mes",
|
|
710
554
|
"ja-JP": "月",
|
|
711
555
|
"pl-PL": "Miesiąc",
|
|
712
|
-
"hu-HU": "Hónap"
|
|
556
|
+
"hu-HU": "Hónap",
|
|
557
|
+
"he-IL": "חודש"
|
|
713
558
|
},
|
|
714
559
|
day: {
|
|
715
560
|
"it-IT": "Giorno",
|
|
@@ -726,10 +571,12 @@ const languageKeys = {
|
|
|
726
571
|
"es-ES": "Día",
|
|
727
572
|
"ja-JP": "日",
|
|
728
573
|
"pl-PL": "Dzień",
|
|
729
|
-
"hu-HU": "Nap"
|
|
574
|
+
"hu-HU": "Nap",
|
|
575
|
+
"he-IL": "יום"
|
|
730
576
|
},
|
|
731
577
|
agenda: {
|
|
732
|
-
"en-US": "Agenda"
|
|
578
|
+
"en-US": "Agenda",
|
|
579
|
+
"he-IL": "סדר יום"
|
|
733
580
|
},
|
|
734
581
|
/** Other keys */
|
|
735
582
|
moreEvents: {
|
|
@@ -747,7 +594,8 @@ const languageKeys = {
|
|
|
747
594
|
"es-ES": "más eventos",
|
|
748
595
|
"ja-JP": "その他イベント",
|
|
749
596
|
"pl-PL": "+ więcej wydarzeń",
|
|
750
|
-
"hu-HU": "További események"
|
|
597
|
+
"hu-HU": "További események",
|
|
598
|
+
"he-IL": "+ עוד אירועים"
|
|
751
599
|
},
|
|
752
600
|
noEvent: {
|
|
753
601
|
"it-IT": "Nessun evento",
|
|
@@ -764,7 +612,8 @@ const languageKeys = {
|
|
|
764
612
|
"es-ES": "No hay eventos",
|
|
765
613
|
"ja-JP": "イベントなし",
|
|
766
614
|
"pl-PL": "Brak wydarzeń",
|
|
767
|
-
"hu-HU": "Nincs esemény"
|
|
615
|
+
"hu-HU": "Nincs esemény",
|
|
616
|
+
"he-IL": "אין אירועים"
|
|
768
617
|
}
|
|
769
618
|
};
|
|
770
619
|
const localeMap = /* @__PURE__ */ new Map([
|
|
@@ -782,7 +631,8 @@ const localeMap = /* @__PURE__ */ new Map([
|
|
|
782
631
|
["es", "es-ES"],
|
|
783
632
|
["ja", "ja-JP"],
|
|
784
633
|
["pl", "pl-PL"],
|
|
785
|
-
["hu", "hu-HU"]
|
|
634
|
+
["hu", "hu-HU"],
|
|
635
|
+
["he", "he-IL"]
|
|
786
636
|
]);
|
|
787
637
|
function overrideShortLocaleWithLongLocale(locale2) {
|
|
788
638
|
if (localeMap.has(locale2)) {
|
|
@@ -930,18 +780,19 @@ const EVENT_COLORS = {
|
|
|
930
780
|
const DATE_TIME_STRING_PATTERN = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/;
|
|
931
781
|
const DATE_TIME_STRING_FULL_DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
|
|
932
782
|
const _hoisted_1$12 = ["id"];
|
|
933
|
-
const _hoisted_2$N = {
|
|
783
|
+
const _hoisted_2$N = { class: "flex txt14 flex column align-items-start gap-025 opacity-6" };
|
|
784
|
+
const _hoisted_3$D = {
|
|
934
785
|
key: 0,
|
|
935
|
-
class: "agenda__event-time"
|
|
786
|
+
class: "agenda__event-time flex gap-025"
|
|
936
787
|
};
|
|
937
|
-
const _hoisted_3$D = { class: "agenda__event-title" };
|
|
938
788
|
const _hoisted_4$r = {
|
|
939
789
|
key: 1,
|
|
940
|
-
class: "agenda__event-
|
|
790
|
+
class: "agenda__event-location flex gap-025"
|
|
941
791
|
};
|
|
942
|
-
const _hoisted_5$n = {
|
|
943
|
-
|
|
944
|
-
|
|
792
|
+
const _hoisted_5$n = { class: "agenda__event-title" };
|
|
793
|
+
const _hoisted_6$j = {
|
|
794
|
+
key: 0,
|
|
795
|
+
class: "agenda__event-with txt14 opacity-6"
|
|
945
796
|
};
|
|
946
797
|
const eventIdPrefix$1 = "agenda__event-";
|
|
947
798
|
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
@@ -963,8 +814,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
963
814
|
emits: ["eventWasClicked"],
|
|
964
815
|
setup(__props, { emit: __emit }) {
|
|
965
816
|
useCssVars((_ctx) => ({
|
|
966
|
-
"
|
|
967
|
-
"13d56971": eventColor.value
|
|
817
|
+
"2e2f2739": eventBackgroundColor.value
|
|
968
818
|
}));
|
|
969
819
|
const props2 = __props;
|
|
970
820
|
const emit2 = __emit;
|
|
@@ -1016,38 +866,44 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
1016
866
|
return (_ctx, _cache) => {
|
|
1017
867
|
return openBlock(), createElementBlock("div", {
|
|
1018
868
|
id: elementId.value,
|
|
1019
|
-
class: "agenda__event is-event rounded mb-05 pointer user-select-none p-1
|
|
869
|
+
class: "agenda__event is-event rounded mb-05 pointer user-select-none p-1 grid gap-1",
|
|
1020
870
|
onClick: withModifiers(handleClickOnEvent, ["prevent"])
|
|
1021
871
|
}, [
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
872
|
+
createElementVNode("div", _hoisted_2$N, [
|
|
873
|
+
eventTime.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_3$D, [
|
|
874
|
+
createVNode(unref(_sfc_main$r), {
|
|
875
|
+
icon: icons.clock,
|
|
876
|
+
size: 0.8
|
|
877
|
+
}, null, 8, ["icon"]),
|
|
878
|
+
createTextVNode(" " + toDisplayString(eventTime.value), 1)
|
|
879
|
+
])) : createCommentVNode("", true),
|
|
880
|
+
__props.calendarEvent.location ? (openBlock(), createElementBlock("span", _hoisted_4$r, [
|
|
881
|
+
createVNode(unref(_sfc_main$r), {
|
|
882
|
+
icon: icons.location,
|
|
883
|
+
size: 1
|
|
884
|
+
}, null, 8, ["icon"]),
|
|
885
|
+
createTextVNode(" " + toDisplayString(__props.calendarEvent.location), 1)
|
|
886
|
+
])) : createCommentVNode("", true)
|
|
887
|
+
]),
|
|
888
|
+
createElementVNode("div", null, [
|
|
889
|
+
createElementVNode("div", _hoisted_5$n, toDisplayString(__props.calendarEvent.title), 1),
|
|
890
|
+
__props.calendarEvent.with ? (openBlock(), createElementBlock("div", _hoisted_6$j, [
|
|
891
|
+
createVNode(unref(_sfc_main$r), {
|
|
892
|
+
icon: icons.user
|
|
893
|
+
}, null, 8, ["icon"]),
|
|
894
|
+
createTextVNode(" " + toDisplayString(__props.calendarEvent.with), 1)
|
|
895
|
+
])) : createCommentVNode("", true)
|
|
896
|
+
])
|
|
1041
897
|
], 8, _hoisted_1$12);
|
|
1042
898
|
};
|
|
1043
899
|
}
|
|
1044
900
|
});
|
|
1045
|
-
const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-
|
|
901
|
+
const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-5740437b"]]);
|
|
1046
902
|
const _hoisted_1$11 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
|
|
1047
|
-
const _hoisted_2$M = { class: "" };
|
|
903
|
+
const _hoisted_2$M = { class: "m_sticky" };
|
|
1048
904
|
const _hoisted_3$C = { class: "agenda__header-day-name txt-center" };
|
|
1049
905
|
const _hoisted_4$q = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
|
|
1050
|
-
const _hoisted_5$m = { class: "agenda__content flex column w-100p h-100p min-h-100px pt-05 border-start ps-1" };
|
|
906
|
+
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" };
|
|
1051
907
|
const _hoisted_6$i = {
|
|
1052
908
|
key: 0,
|
|
1053
909
|
class: "align-items-center flex justify-content-center h-100p opacity-6"
|
|
@@ -1078,7 +934,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1078
934
|
return (_ctx, _cache) => {
|
|
1079
935
|
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
1080
936
|
createElementVNode("header", _hoisted_2$M, [
|
|
1081
|
-
createElementVNode("div", _hoisted_3$C, toDisplayString(__props.day.dayName), 1),
|
|
937
|
+
createElementVNode("div", _hoisted_3$C, toDisplayString(__props.day.dayName.slice(0, 3)), 1),
|
|
1082
938
|
createElementVNode("div", _hoisted_4$q, toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
|
|
1083
939
|
]),
|
|
1084
940
|
createElementVNode("div", _hoisted_5$m, [
|
|
@@ -1099,7 +955,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1099
955
|
};
|
|
1100
956
|
}
|
|
1101
957
|
});
|
|
1102
|
-
const AgendaEvents = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-
|
|
958
|
+
const AgendaEvents = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-746fe0c6"]]);
|
|
1103
959
|
class EDate extends Date {
|
|
1104
960
|
get fullYear() {
|
|
1105
961
|
return this.getFullYear();
|
|
@@ -1840,14 +1696,14 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1840
1696
|
emits: ["hide", "editEvent", "deleteEvent"],
|
|
1841
1697
|
setup(__props, { emit: __emit }) {
|
|
1842
1698
|
useCssVars((_ctx) => ({
|
|
1843
|
-
"
|
|
1699
|
+
"82e0d6e0": flyoutWidth
|
|
1844
1700
|
}));
|
|
1845
1701
|
const props2 = __props;
|
|
1846
1702
|
const emit2 = __emit;
|
|
1847
1703
|
const eventFlyoutPositionHelper = new EventFlyoutPosition();
|
|
1848
1704
|
const isVisible = ref(false);
|
|
1849
1705
|
const top2 = ref(0);
|
|
1850
|
-
const
|
|
1706
|
+
const insetInlineEnd = ref(0);
|
|
1851
1707
|
const calendarEvent = ref(props2.calendarEventProp);
|
|
1852
1708
|
const flyoutWidth = `${EVENT_FLYOUT_WIDTH}px`;
|
|
1853
1709
|
const colors = EVENT_COLORS;
|
|
@@ -1887,7 +1743,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1887
1743
|
return `${dateString} ⋅ ${timeString}`;
|
|
1888
1744
|
});
|
|
1889
1745
|
const eventFlyoutInlineStyles = computed(() => {
|
|
1890
|
-
if (typeof top2.value === "number" && !
|
|
1746
|
+
if (typeof top2.value === "number" && !insetInlineEnd.value) {
|
|
1891
1747
|
return {
|
|
1892
1748
|
top: `${top2.value}px`,
|
|
1893
1749
|
left: "50%",
|
|
@@ -1897,7 +1753,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1897
1753
|
}
|
|
1898
1754
|
return {
|
|
1899
1755
|
top: `${top2.value}px`,
|
|
1900
|
-
|
|
1756
|
+
insetInlineEnd: `${insetInlineEnd.value}px`,
|
|
1901
1757
|
position: "fixed"
|
|
1902
1758
|
};
|
|
1903
1759
|
});
|
|
@@ -1926,7 +1782,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1926
1782
|
calendar ? calendar.getBoundingClientRect() : null
|
|
1927
1783
|
);
|
|
1928
1784
|
top2.value = typeof (flyoutPosition == null ? void 0 : flyoutPosition.top) === "number" ? flyoutPosition.top : null;
|
|
1929
|
-
|
|
1785
|
+
insetInlineEnd.value = typeof (flyoutPosition == null ? void 0 : flyoutPosition.left) === "number" ? flyoutPosition.left : null;
|
|
1930
1786
|
}
|
|
1931
1787
|
function editEvent() {
|
|
1932
1788
|
var _a2;
|
|
@@ -2319,7 +2175,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2319
2175
|
};
|
|
2320
2176
|
}
|
|
2321
2177
|
});
|
|
2322
|
-
const Day$1 = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-
|
|
2178
|
+
const Day$1 = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-c1dfa100"]]);
|
|
2323
2179
|
const _hoisted_1$Z = { class: "txt12 normal block color-black pb-025" };
|
|
2324
2180
|
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
2325
2181
|
__name: "WeekDay",
|
|
@@ -2337,7 +2193,7 @@ const _hoisted_2$I = { class: "flex space-between" };
|
|
|
2337
2193
|
const _hoisted_3$y = { class: "calendar-month__weeks h-100p flex-grow flex flex-stretch column space-between" };
|
|
2338
2194
|
const _hoisted_4$m = {
|
|
2339
2195
|
key: 0,
|
|
2340
|
-
class: "calendar-month__day_events w-100p pt-1"
|
|
2196
|
+
class: "calendar-month__day_events w-100p pt-1 m_pb-1"
|
|
2341
2197
|
};
|
|
2342
2198
|
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
2343
2199
|
__name: "Month",
|
|
@@ -2841,12 +2697,12 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
2841
2697
|
return !!(props2.eventProp.disableResize && props2.eventProp.disableResize.includes(props2.mode));
|
|
2842
2698
|
});
|
|
2843
2699
|
const requiredStyles = computed(() => ({
|
|
2844
|
-
top: getPositionInDay(event.value.time.start),
|
|
2845
|
-
height: getLengthOfEvent(event.value.time.start, event.value.time.end),
|
|
2846
|
-
|
|
2847
|
-
width: `${getWidthRule.value}%`,
|
|
2848
|
-
transform: eventTransformValue.value,
|
|
2849
|
-
zIndex: eventZIndexValue.value
|
|
2700
|
+
"top": getPositionInDay(event.value.time.start),
|
|
2701
|
+
"height": getLengthOfEvent(event.value.time.start, event.value.time.end),
|
|
2702
|
+
"inset-inline-start": `${getInlineStartRule.value}%`,
|
|
2703
|
+
"width": `${getWidthRule.value}%`,
|
|
2704
|
+
"transform": eventTransformValue.value,
|
|
2705
|
+
"zIndex": eventZIndexValue.value
|
|
2850
2706
|
}));
|
|
2851
2707
|
function getPositionInDay(dateTimeString) {
|
|
2852
2708
|
return `${props2.time.getPercentageOfDayFromDateTimeString(dateTimeString, props2.time.DAY_START, props2.time.DAY_END).toString()}%`;
|
|
@@ -3145,7 +3001,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
3145
3001
|
};
|
|
3146
3002
|
}
|
|
3147
3003
|
});
|
|
3148
|
-
const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-
|
|
3004
|
+
const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-9fd5622b"]]);
|
|
3149
3005
|
const _hoisted_1$W = ["id", "onClick"];
|
|
3150
3006
|
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
3151
3007
|
__name: "Day",
|
|
@@ -3291,8 +3147,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
3291
3147
|
}
|
|
3292
3148
|
});
|
|
3293
3149
|
const Day = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-87669cec"]]);
|
|
3294
|
-
const _hoisted_1$V = { class: "day-timeline" };
|
|
3295
|
-
const _hoisted_2$G = { class: "day-timeline__hour-text" };
|
|
3150
|
+
const _hoisted_1$V = { class: "day-timeline absolute top-0 start-0 space-evenly column display-flex" };
|
|
3151
|
+
const _hoisted_2$G = { class: "day-timeline__hour-text line-height-0" };
|
|
3296
3152
|
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
3297
3153
|
__name: "DayTimeline",
|
|
3298
3154
|
props: {
|
|
@@ -3307,7 +3163,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3307
3163
|
},
|
|
3308
3164
|
setup(__props) {
|
|
3309
3165
|
useCssVars((_ctx) => ({
|
|
3310
|
-
"
|
|
3166
|
+
"399901d6": __props.weekHeight
|
|
3311
3167
|
}));
|
|
3312
3168
|
const props2 = __props;
|
|
3313
3169
|
const timelineHours = ref([]);
|
|
@@ -3323,7 +3179,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3323
3179
|
(openBlock(true), createElementBlock(Fragment, null, renderList(timelineHours.value, (hour) => {
|
|
3324
3180
|
return openBlock(), createElementBlock("div", {
|
|
3325
3181
|
key: hour,
|
|
3326
|
-
class: "day-timeline__hour"
|
|
3182
|
+
class: "day-timeline__hour display-flex column ustify-content-start h-100p ps-05"
|
|
3327
3183
|
}, [
|
|
3328
3184
|
createElementVNode("span", _hoisted_2$G, toDisplayString(getLocaleTimeString(hour)), 1)
|
|
3329
3185
|
]);
|
|
@@ -3332,7 +3188,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3332
3188
|
};
|
|
3333
3189
|
}
|
|
3334
3190
|
});
|
|
3335
|
-
const DayTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-
|
|
3191
|
+
const DayTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-0b3de5c5"]]);
|
|
3336
3192
|
const _hoisted_1$U = ["id"];
|
|
3337
3193
|
const _hoisted_2$F = {
|
|
3338
3194
|
key: 1,
|
|
@@ -3409,7 +3265,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3409
3265
|
};
|
|
3410
3266
|
}
|
|
3411
3267
|
});
|
|
3412
|
-
const FullDayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-
|
|
3268
|
+
const FullDayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-8bd51337"]]);
|
|
3413
3269
|
const _hoisted_1$T = {
|
|
3414
3270
|
class: "week-timeline flex space-between border-bottom ms-3-5",
|
|
3415
3271
|
style: { "margin-inline-end": "0.5em" }
|
|
@@ -3512,7 +3368,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3512
3368
|
],
|
|
3513
3369
|
setup(__props, { emit: __emit }) {
|
|
3514
3370
|
useCssVars((_ctx) => ({
|
|
3515
|
-
"
|
|
3371
|
+
"65a2ac84": weekHeight.value
|
|
3516
3372
|
}));
|
|
3517
3373
|
const props2 = __props;
|
|
3518
3374
|
const emit2 = __emit;
|
|
@@ -3774,7 +3630,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3774
3630
|
};
|
|
3775
3631
|
}
|
|
3776
3632
|
});
|
|
3777
|
-
const Week = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-
|
|
3633
|
+
const Week = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-f1a405b2"]]);
|
|
3778
3634
|
const _Errors = class _Errors {
|
|
3779
3635
|
static checkEventProperties(event) {
|
|
3780
3636
|
var _a2, _b, _c, _d;
|
|
@@ -40789,8 +40645,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
40789
40645
|
let loadingError = ref(false);
|
|
40790
40646
|
function getImageUrl() {
|
|
40791
40647
|
if (!props2.src && !props2.pathKey) return null;
|
|
40792
|
-
|
|
40793
|
-
return pathKeyToURL(props2.pathKey);
|
|
40648
|
+
return pathKeyToURL(props2.src || props2.pathKey);
|
|
40794
40649
|
}
|
|
40795
40650
|
async function getCachedImage(url) {
|
|
40796
40651
|
if (!("caches" in window)) return null;
|
|
@@ -40889,7 +40744,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
40889
40744
|
};
|
|
40890
40745
|
}
|
|
40891
40746
|
});
|
|
40892
|
-
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-
|
|
40747
|
+
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-367220b6"]]);
|
|
40893
40748
|
const _hoisted_1$i = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
|
|
40894
40749
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
40895
40750
|
__name: "BottomMenu",
|
|
@@ -43939,7 +43794,7 @@ function openClickHandler(e, el, binding) {
|
|
|
43939
43794
|
}
|
|
43940
43795
|
function bindingToItem(binding, el) {
|
|
43941
43796
|
let { group, src, type: type3, name, thumbnail, enableZoom, openFile, download, pathKey } = binding.value || {};
|
|
43942
|
-
src = src ||
|
|
43797
|
+
src = pathKeyToURL(src || pathKey) || binding.value || el.getAttribute("src") || "";
|
|
43943
43798
|
type3 = type3 || determineFileType(src);
|
|
43944
43799
|
name = name || urlToName(src) || el.getAttribute("alt") || "";
|
|
43945
43800
|
return { src, type: type3, name, thumbnail, group, enableZoom, openFile, download };
|
|
@@ -44491,7 +44346,9 @@ function normalizeDimension(value, defaultMetric = "px") {
|
|
|
44491
44346
|
const fileBaseUrl = "https://files.bagel.design".replace(/\/$/, "");
|
|
44492
44347
|
const bagelBaseUrl = void 0;
|
|
44493
44348
|
function pathKeyToURL(pathKey) {
|
|
44494
|
-
|
|
44349
|
+
const urlRE = /^https?:\/\/|^\/\//;
|
|
44350
|
+
if (!pathKey || urlRE.test(pathKey)) return pathKey;
|
|
44351
|
+
if (pathKey.startsWith("static/")) {
|
|
44495
44352
|
return `${bagelBaseUrl}/${pathKey}`;
|
|
44496
44353
|
}
|
|
44497
44354
|
return `${fileBaseUrl}/${pathKey}`;
|
|
@@ -45023,15 +44880,14 @@ function timeAgo(date2, lang = "en") {
|
|
|
45023
44880
|
return selectedLang.justNow;
|
|
45024
44881
|
}
|
|
45025
44882
|
export {
|
|
45026
|
-
_sfc_main$
|
|
44883
|
+
_sfc_main$1m as Accordion,
|
|
45027
44884
|
AccordionItem,
|
|
45028
|
-
_sfc_main$
|
|
44885
|
+
_sfc_main$1k as AddressSearch,
|
|
45029
44886
|
Alert,
|
|
45030
44887
|
Avatar,
|
|
45031
44888
|
Badge,
|
|
45032
44889
|
_sfc_main$S as BagelForm,
|
|
45033
44890
|
BagelVue,
|
|
45034
|
-
_sfc_main$1g as BglComponent,
|
|
45035
44891
|
_sfc_main$S as BglForm,
|
|
45036
44892
|
BglVideo,
|
|
45037
44893
|
BottomMenu,
|