@bagelink/vue 0.0.1240 → 0.0.1244
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/components/header/Header.vue.d.ts.map +1 -1
- package/dist/components/Calendar/components/month/AgendaEvents.vue.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 +4 -19
- package/dist/index.mjs +4 -19
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/src/components/Calendar/components/header/Header.vue +29 -29
- package/src/components/Calendar/components/month/AgendaEvents.vue +1 -1
- package/src/components/lightbox/index.ts +2 -1
- package/src/composables/useSchemaField.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/components/header/Header.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/components/header/Header.vue"],"names":[],"mappings":"AA2JA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAA;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;;;cA4SjC,QAAQ,CAAC,eAAe,CAAC;;;;cAIzB,QAAQ,CAAC,QAAQ,CAAC;;;;cAIlB,QAAQ,CAAC,IAAI,CAAC;;;;cAId,QAAQ,CAAC,eAAe,CAAC;;;;;;;;;;;;cAZzB,QAAQ,CAAC,eAAe,CAAC;;;;cAIzB,QAAQ,CAAC,QAAQ,CAAC;;;;cAIlB,QAAQ,CAAC,IAAI,CAAC;;;;cAId,QAAQ,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AApB3C,wBA8BG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgendaEvents.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/components/month/AgendaEvents.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgendaEvents.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/components/month/AgendaEvents.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAA;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;;;cA+IxD,QAAQ,CAAC,eAAe,CAAC;;;;cAIzB,QAAQ,CAAC,IAAI,CAAC;;;;cAId,QAAQ,CAAC,YAAY,CAAC;;;;;;;cARtB,QAAQ,CAAC,eAAe,CAAC;;;;cAIzB,QAAQ,CAAC,IAAI,CAAC;;;;cAId,QAAQ,CAAC,YAAY,CAAC;;;;;;AAhBxC,wBAqBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAA+B,MAAM,KAAK,CAAA;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAA+B,MAAM,KAAK,CAAA;;iBAyF7C,GAAG;;AADjB,wBAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSchemaField.d.ts","sourceRoot":"","sources":["../../src/composables/useSchemaField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"useSchemaField.d.ts","sourceRoot":"","sources":["../../src/composables/useSchemaField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAuBxE,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;IACzD,YAAY,CAAC,EAAE,OAAO,CAAA;CACtB;AAID,UAAU,SAAS,CAAC,CAAC;IAAI,GAAG,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;CAAE;AAC3D,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,CAAA;AACnD,KAAK,aAAa,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC,CAAA;AAEnE,wBAAgB,cAAc,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC;yBAkCzF,cAAc,CAAC,CAAC,CAAC,UAChB,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,KACtC,KAAK,GAAG,IAAI;0BAjCc,cAAc,CAAC,CAAC,CAAC;EAuM9C"}
|
package/dist/index.cjs
CHANGED
|
@@ -833,23 +833,6 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
|
|
|
833
833
|
const periodSelect = vue.ref();
|
|
834
834
|
const currentPeriod = vue.ref(props2.period);
|
|
835
835
|
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
836
|
const modeLocal = vue.ref(props2.mode);
|
|
854
837
|
const onlyDayModeIsEnabled = vue.computed(() => {
|
|
855
838
|
var _a2, _b;
|
|
@@ -1118,7 +1101,7 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
|
1118
1101
|
};
|
|
1119
1102
|
}
|
|
1120
1103
|
});
|
|
1121
|
-
const AgendaEvents = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-
|
|
1104
|
+
const AgendaEvents = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-8084d3c8"]]);
|
|
1122
1105
|
class EDate extends Date {
|
|
1123
1106
|
get fullYear() {
|
|
1124
1107
|
return this.getFullYear();
|
|
@@ -43971,9 +43954,11 @@ function urlToName(url) {
|
|
|
43971
43954
|
return name.replace(/\.[^/.]+$/, "");
|
|
43972
43955
|
}
|
|
43973
43956
|
function determineFileType(url) {
|
|
43957
|
+
var _a2;
|
|
43974
43958
|
if (!url) return "unknown";
|
|
43975
43959
|
const extension = (url.split(".").pop() || "").toLowerCase();
|
|
43976
|
-
|
|
43960
|
+
const altExtension = ((_a2 = url.split("?")[0].split(".").pop()) == null ? void 0 : _a2.toLowerCase()) || "";
|
|
43961
|
+
if (IMAGE_FORMATS_REGEXP.test(extension) || IMAGE_FORMATS_REGEXP.test(altExtension)) return "image";
|
|
43977
43962
|
if (VIDEO_FORMATS_REGEXP.test(extension) || youtubeRegex.test(url) || vimeoRegex.test(url)) return "video";
|
|
43978
43963
|
if (["pdf"].includes(extension)) return "pdf";
|
|
43979
43964
|
return extension ?? "unknown";
|
package/dist/index.mjs
CHANGED
|
@@ -831,23 +831,6 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
831
831
|
const periodSelect = ref();
|
|
832
832
|
const currentPeriod = ref(props2.period);
|
|
833
833
|
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
834
|
const modeLocal = ref(props2.mode);
|
|
852
835
|
const onlyDayModeIsEnabled = computed(() => {
|
|
853
836
|
var _a2, _b;
|
|
@@ -1116,7 +1099,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1116
1099
|
};
|
|
1117
1100
|
}
|
|
1118
1101
|
});
|
|
1119
|
-
const AgendaEvents = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-
|
|
1102
|
+
const AgendaEvents = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-8084d3c8"]]);
|
|
1120
1103
|
class EDate extends Date {
|
|
1121
1104
|
get fullYear() {
|
|
1122
1105
|
return this.getFullYear();
|
|
@@ -43969,9 +43952,11 @@ function urlToName(url) {
|
|
|
43969
43952
|
return name.replace(/\.[^/.]+$/, "");
|
|
43970
43953
|
}
|
|
43971
43954
|
function determineFileType(url) {
|
|
43955
|
+
var _a2;
|
|
43972
43956
|
if (!url) return "unknown";
|
|
43973
43957
|
const extension = (url.split(".").pop() || "").toLowerCase();
|
|
43974
|
-
|
|
43958
|
+
const altExtension = ((_a2 = url.split("?")[0].split(".").pop()) == null ? void 0 : _a2.toLowerCase()) || "";
|
|
43959
|
+
if (IMAGE_FORMATS_REGEXP.test(extension) || IMAGE_FORMATS_REGEXP.test(altExtension)) return "image";
|
|
43975
43960
|
if (VIDEO_FORMATS_REGEXP.test(extension) || youtubeRegex.test(url) || vimeoRegex.test(url)) return "video";
|
|
43976
43961
|
if (["pdf"].includes(extension)) return "pdf";
|
|
43977
43962
|
return extension ?? "unknown";
|
package/dist/style.css
CHANGED
|
@@ -325,11 +325,11 @@ display: block;
|
|
|
325
325
|
color: var(--13d56971);
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
.agenda__wrapper[data-v-
|
|
328
|
+
.agenda__wrapper[data-v-8084d3c8] {
|
|
329
329
|
grid-template-columns: 100px 1fr;
|
|
330
330
|
}
|
|
331
331
|
@media screen and (max-width: 910px) {
|
|
332
|
-
.agenda__wrapper[data-v-
|
|
332
|
+
.agenda__wrapper[data-v-8084d3c8] {
|
|
333
333
|
grid-template-columns: 40px 1fr;
|
|
334
334
|
}
|
|
335
335
|
}
|
package/package.json
CHANGED
|
@@ -5,9 +5,9 @@ import type { ConfigInterface } from '../../typings/config.interface'
|
|
|
5
5
|
import type { PeriodInterface } from '../../typings/interfaces/period.interface'
|
|
6
6
|
import type { modeType } from '../../typings/types'
|
|
7
7
|
|
|
8
|
-
import { DatePick,
|
|
8
|
+
import { DatePick, TabsNav, Btn } from '@bagelink/vue'
|
|
9
9
|
import { ref, computed, watch } from 'vue'
|
|
10
|
-
import { translate
|
|
10
|
+
import { translate } from '../../language'
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
13
13
|
config: {
|
|
@@ -41,33 +41,33 @@ const periodSelect = ref<InstanceType<typeof DatePick>>()
|
|
|
41
41
|
const currentPeriod = ref(props.period)
|
|
42
42
|
const modeOptions = ref<modeType[]>(['month', 'week', 'day', 'agenda'])
|
|
43
43
|
|
|
44
|
-
const icons = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const periodName = computed(() => {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
})
|
|
44
|
+
// const icons = {
|
|
45
|
+
// chevronLeft: 'chevron_left',
|
|
46
|
+
// chevronRight: 'chevron_right',
|
|
47
|
+
// }
|
|
48
|
+
|
|
49
|
+
// const periodName = computed(() => {
|
|
50
|
+
// if (props.mode === 'week') {
|
|
51
|
+
// const startMonth = props.time.getLocalizedNameOfMonth(
|
|
52
|
+
// currentPeriod.value.start,
|
|
53
|
+
// 'short'
|
|
54
|
+
// )
|
|
55
|
+
// const endMonth = props.time.getLocalizedNameOfMonth(
|
|
56
|
+
// currentPeriod.value.end,
|
|
57
|
+
// 'short'
|
|
58
|
+
// )
|
|
59
|
+
|
|
60
|
+
// return startMonth === endMonth
|
|
61
|
+
// ? startMonth
|
|
62
|
+
// : `${startMonth} - ${endMonth}`
|
|
63
|
+
// }
|
|
64
|
+
|
|
65
|
+
// // day
|
|
66
|
+
// return `${props.time.getLocalizedNameOfMonth(
|
|
67
|
+
// currentPeriod.value.selectedDate,
|
|
68
|
+
// 'short'
|
|
69
|
+
// )} ${currentPeriod.value.selectedDate.getFullYear()}`
|
|
70
|
+
// })
|
|
71
71
|
|
|
72
72
|
const modeLocal = ref(props.mode)
|
|
73
73
|
|
|
@@ -6,7 +6,7 @@ import type { DayInterface } from '../../typings/interfaces/day.interface'
|
|
|
6
6
|
import { getLanguage, languageKeys } from '../../language'
|
|
7
7
|
import AgendaEventTile from './AgendaEventTile.vue'
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
defineProps({
|
|
10
10
|
config: {
|
|
11
11
|
type: Object as PropType<ConfigInterface>,
|
|
12
12
|
required: true,
|
|
@@ -67,7 +67,8 @@ function urlToName(url: string): string {
|
|
|
67
67
|
function determineFileType(url: string): string {
|
|
68
68
|
if (!url) return 'unknown'
|
|
69
69
|
const extension = (url.split('.').pop() || '').toLowerCase()
|
|
70
|
-
|
|
70
|
+
const altExtension = url.split('?')[0].split('.').pop()?.toLowerCase() || ''
|
|
71
|
+
if (IMAGE_FORMATS_REGEXP.test(extension) || IMAGE_FORMATS_REGEXP.test(altExtension)) return 'image'
|
|
71
72
|
if (VIDEO_FORMATS_REGEXP.test(extension) || youtubeRegex.test(url) || vimeoRegex.test(url)) return 'video'
|
|
72
73
|
if (['pdf'].includes(extension)) return 'pdf'
|
|
73
74
|
return extension ?? 'unknown'
|