@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.
- 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/header/Header.vue.d.ts.map +1 -1
- package/dist/components/Calendar/components/month/AgendaEventTile.vue.d.ts.map +1 -1
- package/dist/components/Calendar/components/month/AgendaEvents.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/components/lightbox/index.d.ts.map +1 -1
- package/dist/composables/useSchemaField.d.ts.map +1 -1
- package/dist/index.cjs +109 -268
- package/dist/index.mjs +110 -269
- 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/header/Header.vue +29 -29
- package/src/components/Calendar/components/month/AgendaEventTile.vue +35 -28
- package/src/components/Calendar/components/month/AgendaEvents.vue +4 -4
- 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 +3 -2
- package/src/composables/useSchemaField.ts +0 -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)) {
|
|
@@ -831,23 +681,6 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
831
681
|
const periodSelect = ref();
|
|
832
682
|
const currentPeriod = ref(props2.period);
|
|
833
683
|
const modeOptions = ref(["month", "week", "day", "agenda"]);
|
|
834
|
-
computed(() => {
|
|
835
|
-
if (props2.mode === "week") {
|
|
836
|
-
const startMonth = props2.time.getLocalizedNameOfMonth(
|
|
837
|
-
currentPeriod.value.start,
|
|
838
|
-
"short"
|
|
839
|
-
);
|
|
840
|
-
const endMonth = props2.time.getLocalizedNameOfMonth(
|
|
841
|
-
currentPeriod.value.end,
|
|
842
|
-
"short"
|
|
843
|
-
);
|
|
844
|
-
return startMonth === endMonth ? startMonth : `${startMonth} - ${endMonth}`;
|
|
845
|
-
}
|
|
846
|
-
return `${props2.time.getLocalizedNameOfMonth(
|
|
847
|
-
currentPeriod.value.selectedDate,
|
|
848
|
-
"short"
|
|
849
|
-
)} ${currentPeriod.value.selectedDate.getFullYear()}`;
|
|
850
|
-
});
|
|
851
684
|
const modeLocal = ref(props2.mode);
|
|
852
685
|
const onlyDayModeIsEnabled = computed(() => {
|
|
853
686
|
var _a2, _b;
|
|
@@ -947,18 +780,19 @@ const EVENT_COLORS = {
|
|
|
947
780
|
const DATE_TIME_STRING_PATTERN = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/;
|
|
948
781
|
const DATE_TIME_STRING_FULL_DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
|
|
949
782
|
const _hoisted_1$12 = ["id"];
|
|
950
|
-
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 = {
|
|
951
785
|
key: 0,
|
|
952
|
-
class: "agenda__event-time"
|
|
786
|
+
class: "agenda__event-time flex gap-025"
|
|
953
787
|
};
|
|
954
|
-
const _hoisted_3$D = { class: "agenda__event-title" };
|
|
955
788
|
const _hoisted_4$r = {
|
|
956
789
|
key: 1,
|
|
957
|
-
class: "agenda__event-
|
|
790
|
+
class: "agenda__event-location flex gap-025"
|
|
958
791
|
};
|
|
959
|
-
const _hoisted_5$n = {
|
|
960
|
-
|
|
961
|
-
|
|
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"
|
|
962
796
|
};
|
|
963
797
|
const eventIdPrefix$1 = "agenda__event-";
|
|
964
798
|
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
@@ -980,8 +814,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
980
814
|
emits: ["eventWasClicked"],
|
|
981
815
|
setup(__props, { emit: __emit }) {
|
|
982
816
|
useCssVars((_ctx) => ({
|
|
983
|
-
"
|
|
984
|
-
"13d56971": eventColor.value
|
|
817
|
+
"2e2f2739": eventBackgroundColor.value
|
|
985
818
|
}));
|
|
986
819
|
const props2 = __props;
|
|
987
820
|
const emit2 = __emit;
|
|
@@ -1033,38 +866,44 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
1033
866
|
return (_ctx, _cache) => {
|
|
1034
867
|
return openBlock(), createElementBlock("div", {
|
|
1035
868
|
id: elementId.value,
|
|
1036
|
-
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",
|
|
1037
870
|
onClick: withModifiers(handleClickOnEvent, ["prevent"])
|
|
1038
871
|
}, [
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
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
|
+
])
|
|
1058
897
|
], 8, _hoisted_1$12);
|
|
1059
898
|
};
|
|
1060
899
|
}
|
|
1061
900
|
});
|
|
1062
|
-
const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-
|
|
901
|
+
const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-5740437b"]]);
|
|
1063
902
|
const _hoisted_1$11 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
|
|
1064
|
-
const _hoisted_2$M = { class: "" };
|
|
903
|
+
const _hoisted_2$M = { class: "m_sticky" };
|
|
1065
904
|
const _hoisted_3$C = { class: "agenda__header-day-name txt-center" };
|
|
1066
905
|
const _hoisted_4$q = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
|
|
1067
|
-
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" };
|
|
1068
907
|
const _hoisted_6$i = {
|
|
1069
908
|
key: 0,
|
|
1070
909
|
class: "align-items-center flex justify-content-center h-100p opacity-6"
|
|
@@ -1095,7 +934,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1095
934
|
return (_ctx, _cache) => {
|
|
1096
935
|
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
1097
936
|
createElementVNode("header", _hoisted_2$M, [
|
|
1098
|
-
createElementVNode("div", _hoisted_3$C, toDisplayString(__props.day.dayName), 1),
|
|
937
|
+
createElementVNode("div", _hoisted_3$C, toDisplayString(__props.day.dayName.slice(0, 3)), 1),
|
|
1099
938
|
createElementVNode("div", _hoisted_4$q, toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
|
|
1100
939
|
]),
|
|
1101
940
|
createElementVNode("div", _hoisted_5$m, [
|
|
@@ -1116,7 +955,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1116
955
|
};
|
|
1117
956
|
}
|
|
1118
957
|
});
|
|
1119
|
-
const AgendaEvents = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-
|
|
958
|
+
const AgendaEvents = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-746fe0c6"]]);
|
|
1120
959
|
class EDate extends Date {
|
|
1121
960
|
get fullYear() {
|
|
1122
961
|
return this.getFullYear();
|
|
@@ -1857,14 +1696,14 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1857
1696
|
emits: ["hide", "editEvent", "deleteEvent"],
|
|
1858
1697
|
setup(__props, { emit: __emit }) {
|
|
1859
1698
|
useCssVars((_ctx) => ({
|
|
1860
|
-
"
|
|
1699
|
+
"82e0d6e0": flyoutWidth
|
|
1861
1700
|
}));
|
|
1862
1701
|
const props2 = __props;
|
|
1863
1702
|
const emit2 = __emit;
|
|
1864
1703
|
const eventFlyoutPositionHelper = new EventFlyoutPosition();
|
|
1865
1704
|
const isVisible = ref(false);
|
|
1866
1705
|
const top2 = ref(0);
|
|
1867
|
-
const
|
|
1706
|
+
const insetInlineEnd = ref(0);
|
|
1868
1707
|
const calendarEvent = ref(props2.calendarEventProp);
|
|
1869
1708
|
const flyoutWidth = `${EVENT_FLYOUT_WIDTH}px`;
|
|
1870
1709
|
const colors = EVENT_COLORS;
|
|
@@ -1904,7 +1743,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1904
1743
|
return `${dateString} ⋅ ${timeString}`;
|
|
1905
1744
|
});
|
|
1906
1745
|
const eventFlyoutInlineStyles = computed(() => {
|
|
1907
|
-
if (typeof top2.value === "number" && !
|
|
1746
|
+
if (typeof top2.value === "number" && !insetInlineEnd.value) {
|
|
1908
1747
|
return {
|
|
1909
1748
|
top: `${top2.value}px`,
|
|
1910
1749
|
left: "50%",
|
|
@@ -1914,7 +1753,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1914
1753
|
}
|
|
1915
1754
|
return {
|
|
1916
1755
|
top: `${top2.value}px`,
|
|
1917
|
-
|
|
1756
|
+
insetInlineEnd: `${insetInlineEnd.value}px`,
|
|
1918
1757
|
position: "fixed"
|
|
1919
1758
|
};
|
|
1920
1759
|
});
|
|
@@ -1943,7 +1782,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1943
1782
|
calendar ? calendar.getBoundingClientRect() : null
|
|
1944
1783
|
);
|
|
1945
1784
|
top2.value = typeof (flyoutPosition == null ? void 0 : flyoutPosition.top) === "number" ? flyoutPosition.top : null;
|
|
1946
|
-
|
|
1785
|
+
insetInlineEnd.value = typeof (flyoutPosition == null ? void 0 : flyoutPosition.left) === "number" ? flyoutPosition.left : null;
|
|
1947
1786
|
}
|
|
1948
1787
|
function editEvent() {
|
|
1949
1788
|
var _a2;
|
|
@@ -2336,7 +2175,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2336
2175
|
};
|
|
2337
2176
|
}
|
|
2338
2177
|
});
|
|
2339
|
-
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"]]);
|
|
2340
2179
|
const _hoisted_1$Z = { class: "txt12 normal block color-black pb-025" };
|
|
2341
2180
|
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
2342
2181
|
__name: "WeekDay",
|
|
@@ -2354,7 +2193,7 @@ const _hoisted_2$I = { class: "flex space-between" };
|
|
|
2354
2193
|
const _hoisted_3$y = { class: "calendar-month__weeks h-100p flex-grow flex flex-stretch column space-between" };
|
|
2355
2194
|
const _hoisted_4$m = {
|
|
2356
2195
|
key: 0,
|
|
2357
|
-
class: "calendar-month__day_events w-100p pt-1"
|
|
2196
|
+
class: "calendar-month__day_events w-100p pt-1 m_pb-1"
|
|
2358
2197
|
};
|
|
2359
2198
|
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
2360
2199
|
__name: "Month",
|
|
@@ -2858,12 +2697,12 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
2858
2697
|
return !!(props2.eventProp.disableResize && props2.eventProp.disableResize.includes(props2.mode));
|
|
2859
2698
|
});
|
|
2860
2699
|
const requiredStyles = computed(() => ({
|
|
2861
|
-
top: getPositionInDay(event.value.time.start),
|
|
2862
|
-
height: getLengthOfEvent(event.value.time.start, event.value.time.end),
|
|
2863
|
-
|
|
2864
|
-
width: `${getWidthRule.value}%`,
|
|
2865
|
-
transform: eventTransformValue.value,
|
|
2866
|
-
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
|
|
2867
2706
|
}));
|
|
2868
2707
|
function getPositionInDay(dateTimeString) {
|
|
2869
2708
|
return `${props2.time.getPercentageOfDayFromDateTimeString(dateTimeString, props2.time.DAY_START, props2.time.DAY_END).toString()}%`;
|
|
@@ -3162,7 +3001,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
3162
3001
|
};
|
|
3163
3002
|
}
|
|
3164
3003
|
});
|
|
3165
|
-
const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-
|
|
3004
|
+
const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-9fd5622b"]]);
|
|
3166
3005
|
const _hoisted_1$W = ["id", "onClick"];
|
|
3167
3006
|
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
3168
3007
|
__name: "Day",
|
|
@@ -3308,8 +3147,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
3308
3147
|
}
|
|
3309
3148
|
});
|
|
3310
3149
|
const Day = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-87669cec"]]);
|
|
3311
|
-
const _hoisted_1$V = { class: "day-timeline" };
|
|
3312
|
-
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" };
|
|
3313
3152
|
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
3314
3153
|
__name: "DayTimeline",
|
|
3315
3154
|
props: {
|
|
@@ -3324,7 +3163,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3324
3163
|
},
|
|
3325
3164
|
setup(__props) {
|
|
3326
3165
|
useCssVars((_ctx) => ({
|
|
3327
|
-
"
|
|
3166
|
+
"399901d6": __props.weekHeight
|
|
3328
3167
|
}));
|
|
3329
3168
|
const props2 = __props;
|
|
3330
3169
|
const timelineHours = ref([]);
|
|
@@ -3340,7 +3179,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3340
3179
|
(openBlock(true), createElementBlock(Fragment, null, renderList(timelineHours.value, (hour) => {
|
|
3341
3180
|
return openBlock(), createElementBlock("div", {
|
|
3342
3181
|
key: hour,
|
|
3343
|
-
class: "day-timeline__hour"
|
|
3182
|
+
class: "day-timeline__hour display-flex column ustify-content-start h-100p ps-05"
|
|
3344
3183
|
}, [
|
|
3345
3184
|
createElementVNode("span", _hoisted_2$G, toDisplayString(getLocaleTimeString(hour)), 1)
|
|
3346
3185
|
]);
|
|
@@ -3349,7 +3188,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3349
3188
|
};
|
|
3350
3189
|
}
|
|
3351
3190
|
});
|
|
3352
|
-
const DayTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-
|
|
3191
|
+
const DayTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-0b3de5c5"]]);
|
|
3353
3192
|
const _hoisted_1$U = ["id"];
|
|
3354
3193
|
const _hoisted_2$F = {
|
|
3355
3194
|
key: 1,
|
|
@@ -3426,7 +3265,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3426
3265
|
};
|
|
3427
3266
|
}
|
|
3428
3267
|
});
|
|
3429
|
-
const FullDayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-
|
|
3268
|
+
const FullDayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-8bd51337"]]);
|
|
3430
3269
|
const _hoisted_1$T = {
|
|
3431
3270
|
class: "week-timeline flex space-between border-bottom ms-3-5",
|
|
3432
3271
|
style: { "margin-inline-end": "0.5em" }
|
|
@@ -3529,7 +3368,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3529
3368
|
],
|
|
3530
3369
|
setup(__props, { emit: __emit }) {
|
|
3531
3370
|
useCssVars((_ctx) => ({
|
|
3532
|
-
"
|
|
3371
|
+
"65a2ac84": weekHeight.value
|
|
3533
3372
|
}));
|
|
3534
3373
|
const props2 = __props;
|
|
3535
3374
|
const emit2 = __emit;
|
|
@@ -3791,7 +3630,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3791
3630
|
};
|
|
3792
3631
|
}
|
|
3793
3632
|
});
|
|
3794
|
-
const Week = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-
|
|
3633
|
+
const Week = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-f1a405b2"]]);
|
|
3795
3634
|
const _Errors = class _Errors {
|
|
3796
3635
|
static checkEventProperties(event) {
|
|
3797
3636
|
var _a2, _b, _c, _d;
|
|
@@ -40806,8 +40645,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
40806
40645
|
let loadingError = ref(false);
|
|
40807
40646
|
function getImageUrl() {
|
|
40808
40647
|
if (!props2.src && !props2.pathKey) return null;
|
|
40809
|
-
|
|
40810
|
-
return pathKeyToURL(props2.pathKey);
|
|
40648
|
+
return pathKeyToURL(props2.src || props2.pathKey);
|
|
40811
40649
|
}
|
|
40812
40650
|
async function getCachedImage(url) {
|
|
40813
40651
|
if (!("caches" in window)) return null;
|
|
@@ -40906,7 +40744,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
40906
40744
|
};
|
|
40907
40745
|
}
|
|
40908
40746
|
});
|
|
40909
|
-
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"]]);
|
|
40910
40748
|
const _hoisted_1$i = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
|
|
40911
40749
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
40912
40750
|
__name: "BottomMenu",
|
|
@@ -43956,7 +43794,7 @@ function openClickHandler(e, el, binding) {
|
|
|
43956
43794
|
}
|
|
43957
43795
|
function bindingToItem(binding, el) {
|
|
43958
43796
|
let { group, src, type: type3, name, thumbnail, enableZoom, openFile, download, pathKey } = binding.value || {};
|
|
43959
|
-
src = src ||
|
|
43797
|
+
src = pathKeyToURL(src || pathKey) || binding.value || el.getAttribute("src") || "";
|
|
43960
43798
|
type3 = type3 || determineFileType(src);
|
|
43961
43799
|
name = name || urlToName(src) || el.getAttribute("alt") || "";
|
|
43962
43800
|
return { src, type: type3, name, thumbnail, group, enableZoom, openFile, download };
|
|
@@ -43969,9 +43807,11 @@ function urlToName(url) {
|
|
|
43969
43807
|
return name.replace(/\.[^/.]+$/, "");
|
|
43970
43808
|
}
|
|
43971
43809
|
function determineFileType(url) {
|
|
43810
|
+
var _a2;
|
|
43972
43811
|
if (!url) return "unknown";
|
|
43973
43812
|
const extension = (url.split(".").pop() || "").toLowerCase();
|
|
43974
|
-
|
|
43813
|
+
const altExtension = ((_a2 = url.split("?")[0].split(".").pop()) == null ? void 0 : _a2.toLowerCase()) || "";
|
|
43814
|
+
if (IMAGE_FORMATS_REGEXP.test(extension) || IMAGE_FORMATS_REGEXP.test(altExtension)) return "image";
|
|
43975
43815
|
if (VIDEO_FORMATS_REGEXP.test(extension) || youtubeRegex.test(url) || vimeoRegex.test(url)) return "video";
|
|
43976
43816
|
if (["pdf"].includes(extension)) return "pdf";
|
|
43977
43817
|
return extension ?? "unknown";
|
|
@@ -44506,7 +44346,9 @@ function normalizeDimension(value, defaultMetric = "px") {
|
|
|
44506
44346
|
const fileBaseUrl = "https://files.bagel.design".replace(/\/$/, "");
|
|
44507
44347
|
const bagelBaseUrl = void 0;
|
|
44508
44348
|
function pathKeyToURL(pathKey) {
|
|
44509
|
-
|
|
44349
|
+
const urlRE = /^https?:\/\/|^\/\//;
|
|
44350
|
+
if (!pathKey || urlRE.test(pathKey)) return pathKey;
|
|
44351
|
+
if (pathKey.startsWith("static/")) {
|
|
44510
44352
|
return `${bagelBaseUrl}/${pathKey}`;
|
|
44511
44353
|
}
|
|
44512
44354
|
return `${fileBaseUrl}/${pathKey}`;
|
|
@@ -45038,15 +44880,14 @@ function timeAgo(date2, lang = "en") {
|
|
|
45038
44880
|
return selectedLang.justNow;
|
|
45039
44881
|
}
|
|
45040
44882
|
export {
|
|
45041
|
-
_sfc_main$
|
|
44883
|
+
_sfc_main$1m as Accordion,
|
|
45042
44884
|
AccordionItem,
|
|
45043
|
-
_sfc_main$
|
|
44885
|
+
_sfc_main$1k as AddressSearch,
|
|
45044
44886
|
Alert,
|
|
45045
44887
|
Avatar,
|
|
45046
44888
|
Badge,
|
|
45047
44889
|
_sfc_main$S as BagelForm,
|
|
45048
44890
|
BagelVue,
|
|
45049
|
-
_sfc_main$1g as BglComponent,
|
|
45050
44891
|
_sfc_main$S as BglForm,
|
|
45051
44892
|
BglVideo,
|
|
45052
44893
|
BottomMenu,
|