@bagelink/vue 1.2.48 → 1.2.52
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/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/style.css +13 -24
- package/dist/types/BagelForm.d.ts +3 -3
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/package.json +3 -1
- package/src/components/calendar/views/WeekView.vue +5 -5
- package/src/components/form/inputs/DateInput.vue +0 -11
- package/src/types/BagelForm.ts +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/DateInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/DateInput.vue"],"names":[],"mappings":"AA6MA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAI/D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAG7D,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;AAuIH,KAAK,iBAAiB,GAAG;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,GAAG,WAAW,CAAC;;;;;;WAvJN,OAAO;UASR,QAAQ;YAGN,MAAM;cAbJ,OAAO;gBAML,OAAO;oBAMH,cAAc;;;;;AA2TjC,wBAUG"}
|
package/dist/index.cjs
CHANGED
|
@@ -1036,7 +1036,7 @@ const _hoisted_3$z = ["onMousedown"];
|
|
|
1036
1036
|
const _hoisted_4$n = ["onClick"];
|
|
1037
1037
|
const _hoisted_5$l = { class: "overflow-hidden color-white p-025 txt12 h-100p" };
|
|
1038
1038
|
const _hoisted_6$i = { class: "white-space ellipsis-1" };
|
|
1039
|
-
const _hoisted_7$e = { class: "txt10 opacity-8" };
|
|
1039
|
+
const _hoisted_7$e = { class: "txt10 opacity-8 user-select-none" };
|
|
1040
1040
|
const _hoisted_8$7 = { class: "color-primary txt-12 p-025" };
|
|
1041
1041
|
const slotHeight = 60;
|
|
1042
1042
|
const slotDuration = 60;
|
|
@@ -1129,7 +1129,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1129
1129
|
});
|
|
1130
1130
|
Object.values(overlappingGroups).forEach((group) => {
|
|
1131
1131
|
if (group.length > 1) {
|
|
1132
|
-
const groupWidth =
|
|
1132
|
+
const groupWidth = 100 / group.length;
|
|
1133
1133
|
group.forEach((event, index2) => {
|
|
1134
1134
|
event.overlappingEvents = group.length;
|
|
1135
1135
|
event.position = index2;
|
|
@@ -1353,7 +1353,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1353
1353
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(processedEvents.value.filter((e) => new Date(e.start_time).toDateString() === day.toDateString()), (event) => {
|
|
1354
1354
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
1355
1355
|
key: event.id,
|
|
1356
|
-
class: "event absolute radius-05 overflow-hidden pointer transition z-1",
|
|
1356
|
+
class: "event absolute radius-05 overflow-hidden pointer transition z-1 opacity-8 border",
|
|
1357
1357
|
style: vue.normalizeStyle({
|
|
1358
1358
|
top: `${event.top}px`,
|
|
1359
1359
|
height: `${event.height}px`,
|
|
@@ -1392,7 +1392,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1392
1392
|
};
|
|
1393
1393
|
}
|
|
1394
1394
|
});
|
|
1395
|
-
const WeekView = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-
|
|
1395
|
+
const WeekView = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-2d5bca17"]]);
|
|
1396
1396
|
const _hoisted_1$T = { class: "calendar" };
|
|
1397
1397
|
const _hoisted_2$E = { class: "flex m_block m_pb-1" };
|
|
1398
1398
|
const _hoisted_3$y = { class: "txt-light my-0" };
|
package/dist/index.mjs
CHANGED
|
@@ -1034,7 +1034,7 @@ const _hoisted_3$z = ["onMousedown"];
|
|
|
1034
1034
|
const _hoisted_4$n = ["onClick"];
|
|
1035
1035
|
const _hoisted_5$l = { class: "overflow-hidden color-white p-025 txt12 h-100p" };
|
|
1036
1036
|
const _hoisted_6$i = { class: "white-space ellipsis-1" };
|
|
1037
|
-
const _hoisted_7$e = { class: "txt10 opacity-8" };
|
|
1037
|
+
const _hoisted_7$e = { class: "txt10 opacity-8 user-select-none" };
|
|
1038
1038
|
const _hoisted_8$7 = { class: "color-primary txt-12 p-025" };
|
|
1039
1039
|
const slotHeight = 60;
|
|
1040
1040
|
const slotDuration = 60;
|
|
@@ -1127,7 +1127,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
1127
1127
|
});
|
|
1128
1128
|
Object.values(overlappingGroups).forEach((group) => {
|
|
1129
1129
|
if (group.length > 1) {
|
|
1130
|
-
const groupWidth =
|
|
1130
|
+
const groupWidth = 100 / group.length;
|
|
1131
1131
|
group.forEach((event, index2) => {
|
|
1132
1132
|
event.overlappingEvents = group.length;
|
|
1133
1133
|
event.position = index2;
|
|
@@ -1351,7 +1351,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
1351
1351
|
(openBlock(true), createElementBlock(Fragment, null, renderList(processedEvents.value.filter((e) => new Date(e.start_time).toDateString() === day.toDateString()), (event) => {
|
|
1352
1352
|
return openBlock(), createElementBlock("div", {
|
|
1353
1353
|
key: event.id,
|
|
1354
|
-
class: "event absolute radius-05 overflow-hidden pointer transition z-1",
|
|
1354
|
+
class: "event absolute radius-05 overflow-hidden pointer transition z-1 opacity-8 border",
|
|
1355
1355
|
style: normalizeStyle({
|
|
1356
1356
|
top: `${event.top}px`,
|
|
1357
1357
|
height: `${event.height}px`,
|
|
@@ -1390,7 +1390,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
1390
1390
|
};
|
|
1391
1391
|
}
|
|
1392
1392
|
});
|
|
1393
|
-
const WeekView = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-
|
|
1393
|
+
const WeekView = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-2d5bca17"]]);
|
|
1394
1394
|
const _hoisted_1$T = { class: "calendar" };
|
|
1395
1395
|
const _hoisted_2$E = { class: "flex m_block m_pb-1" };
|
|
1396
1396
|
const _hoisted_3$y = { class: "txt-light my-0" };
|
package/dist/style.css
CHANGED
|
@@ -601,61 +601,61 @@ to {
|
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
|
|
604
|
-
.weekGrid[data-v-
|
|
604
|
+
.weekGrid[data-v-2d5bca17] {
|
|
605
605
|
display: grid;
|
|
606
606
|
grid-template-columns: 5rem repeat(7, 1fr);
|
|
607
607
|
}
|
|
608
|
-
.days-column[data-v-
|
|
608
|
+
.days-column[data-v-2d5bca17] {
|
|
609
609
|
flex-grow: 1;
|
|
610
610
|
display: flex;
|
|
611
611
|
}
|
|
612
|
-
.day-column[data-v-
|
|
612
|
+
.day-column[data-v-2d5bca17] {
|
|
613
613
|
flex: 1;
|
|
614
614
|
position: relative; /* Ensure absolute positioning works properly */
|
|
615
615
|
min-height: 100%; /* Ensure column fills the full height */
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
/* Add consistent styling for the time slots */
|
|
619
|
-
.txt-light[data-v-
|
|
619
|
+
.txt-light[data-v-2d5bca17] {
|
|
620
620
|
padding: 0.5rem 0;
|
|
621
621
|
box-sizing: border-box;
|
|
622
622
|
display: flex;
|
|
623
623
|
align-items: flex-start;
|
|
624
624
|
justify-content: center;
|
|
625
625
|
}
|
|
626
|
-
.event[data-v-
|
|
626
|
+
.event[data-v-2d5bca17] {
|
|
627
627
|
margin-right: 2px;
|
|
628
628
|
box-sizing: border-box;
|
|
629
629
|
}
|
|
630
|
-
.event[data-v-
|
|
630
|
+
.event[data-v-2d5bca17]:hover {
|
|
631
631
|
z-index: 2;
|
|
632
632
|
}
|
|
633
|
-
.drag-preview[data-v-
|
|
633
|
+
.drag-preview[data-v-2d5bca17] {
|
|
634
634
|
border: 1px solid var(--bgl-primary);
|
|
635
635
|
background-color: rgba(var(--bgl-primary-rgb), 0.1);
|
|
636
636
|
box-sizing: border-box; /* Ensure consistent sizing */
|
|
637
637
|
}
|
|
638
|
-
.current-time-line[data-v-
|
|
638
|
+
.current-time-line[data-v-2d5bca17] {
|
|
639
639
|
height: 2px;
|
|
640
640
|
background-color: var(--bgl-primary);
|
|
641
641
|
}
|
|
642
|
-
.current-time-dot[data-v-
|
|
642
|
+
.current-time-dot[data-v-2d5bca17] {
|
|
643
643
|
background-color: var(--bgl-primary);
|
|
644
644
|
margin-right: -5px; /* Adjust dot position */
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
/* This ensures all grid content aligns properly */
|
|
648
|
-
.overflow[data-v-
|
|
648
|
+
.overflow[data-v-2d5bca17] {
|
|
649
649
|
position: relative;
|
|
650
650
|
}
|
|
651
651
|
|
|
652
652
|
/* Time column headers should be aligned with their content */
|
|
653
|
-
.day-header[data-v-
|
|
654
|
-
box-sizing: border-box;
|
|
653
|
+
.day-header[data-v-2d5bca17] {
|
|
654
|
+
/* box-sizing: border-box;
|
|
655
655
|
height: 100%;
|
|
656
656
|
display: flex;
|
|
657
657
|
flex-direction: column;
|
|
658
|
-
justify-content: center;
|
|
658
|
+
justify-content: center; */
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
.calendar[data-v-840b6594] {
|
|
@@ -1486,17 +1486,6 @@ pre code.hljs{
|
|
|
1486
1486
|
.date-picker-container {
|
|
1487
1487
|
width: 100%;
|
|
1488
1488
|
}
|
|
1489
|
-
.date-picker-container .date-input{
|
|
1490
|
-
--input-bg: transparent;
|
|
1491
|
-
--input-font-size: 12px;
|
|
1492
|
-
opacity: 0.6;
|
|
1493
|
-
--input-height: 20px;
|
|
1494
|
-
width: 75px;
|
|
1495
|
-
}
|
|
1496
|
-
.date-picker-container .txtInputIconStart input{
|
|
1497
|
-
padding: 0 !important;
|
|
1498
|
-
padding-inline-start: 1.25rem !important;
|
|
1499
|
-
}
|
|
1500
1489
|
|
|
1501
1490
|
.fileUploadWrap[data-v-50fd0597] {
|
|
1502
1491
|
outline: 1px solid var(--border-color);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SelectInput, TextInput } from '..';
|
|
2
|
-
import { Paths, Get, IterableElement } from 'type-fest';
|
|
3
|
-
import { ToString } from 'type-fest/source/internal';
|
|
4
|
-
import { LiteralStringUnion } from 'type-fest/source/literal-union';
|
|
2
|
+
import { Paths, Get, IterableElement, LiteralUnion } from 'type-fest';
|
|
5
3
|
import { VNode } from 'vue';
|
|
6
4
|
import { ComponentExposed } from 'vue-component-type-helpers';
|
|
5
|
+
export type ToString<T> = T extends string | number ? `${T}` : never;
|
|
6
|
+
export type LiteralStringUnion<T> = LiteralUnion<T, string>;
|
|
7
7
|
export type AttributeValue = string | number | boolean | undefined | {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BagelForm.d.ts","sourceRoot":"","sources":["../../src/types/BagelForm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"BagelForm.d.ts","sourceRoot":"","sources":["../../src/types/BagelForm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAElE,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC,EAAE,GAAG,KAAK,CAAA;AACpE,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,CAAA;AAE3D,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAA;AAE3F,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,IAAI,CAC/C,KAAK,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,EACrB,GAAG,CAAC,EAAE,CAAC,KACH,cAAc,CAAA;AAEnB,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC;IAC/C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,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;AAE/E,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,EAAE,YAAY,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,EAAE,MAAM,CAAC,CAAA;IAC3D,WAAW,CAAC,EAAE,MAAM,GAAG,CAAA;CACvB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bagelink/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.52",
|
|
5
5
|
"description": "Bagel core sdk packages",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Neveh Allon",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"./vite.config.ts"
|
|
52
52
|
],
|
|
53
53
|
"devDependencies": {
|
|
54
|
+
"type-fest": "^4.39.1",
|
|
54
55
|
"@types/leaflet": "^1.9.17",
|
|
55
56
|
"@types/signature_pad": "^4.0.0",
|
|
56
57
|
"@vue-macros/reactivity-transform": "^1.1.6",
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
},
|
|
60
61
|
"peerDependencies": {
|
|
61
62
|
"@bagelink/sdk": "*",
|
|
63
|
+
"type-fest": "^4.39.1",
|
|
62
64
|
"@vuepic/vue-datepicker": "^8.8.1",
|
|
63
65
|
"vue": "*",
|
|
64
66
|
"vue-draggable-next": "^2.2.1",
|
|
@@ -136,7 +136,7 @@ const processedEvents = computed(() => {
|
|
|
136
136
|
// Adjust overlapping events
|
|
137
137
|
Object.values(overlappingGroups).forEach((group) => {
|
|
138
138
|
if (group.length > 1) {
|
|
139
|
-
const groupWidth =
|
|
139
|
+
const groupWidth = 100 / group.length
|
|
140
140
|
group.forEach((event, index) => {
|
|
141
141
|
event.overlappingEvents = group.length
|
|
142
142
|
event.position = index
|
|
@@ -414,7 +414,7 @@ onUnmounted(() => {
|
|
|
414
414
|
:key="event.id"
|
|
415
415
|
>
|
|
416
416
|
<div
|
|
417
|
-
class="event absolute radius-05 overflow-hidden pointer transition z-1"
|
|
417
|
+
class="event absolute radius-05 overflow-hidden pointer transition z-1 opacity-8 border"
|
|
418
418
|
:style="{
|
|
419
419
|
top: `${event.top}px`,
|
|
420
420
|
height: `${event.height}px`,
|
|
@@ -429,7 +429,7 @@ onUnmounted(() => {
|
|
|
429
429
|
<div class="white-space ellipsis-1">
|
|
430
430
|
{{ event.title }}
|
|
431
431
|
</div>
|
|
432
|
-
<div class="txt10 opacity-8">
|
|
432
|
+
<div class="txt10 opacity-8 user-select-none">
|
|
433
433
|
{{ formatDate(event.start_time, { fmt: 'HH:mm' }) }} - {{ formatDate(event.end_time, { fmt: 'HH:mm' }) }}
|
|
434
434
|
</div>
|
|
435
435
|
</div>
|
|
@@ -516,10 +516,10 @@ onUnmounted(() => {
|
|
|
516
516
|
|
|
517
517
|
/* Time column headers should be aligned with their content */
|
|
518
518
|
.day-header {
|
|
519
|
-
box-sizing: border-box;
|
|
519
|
+
/* box-sizing: border-box;
|
|
520
520
|
height: 100%;
|
|
521
521
|
display: flex;
|
|
522
522
|
flex-direction: column;
|
|
523
|
-
justify-content: center;
|
|
523
|
+
justify-content: center; */
|
|
524
524
|
}
|
|
525
525
|
</style>
|
|
@@ -200,15 +200,4 @@ onMounted(() => {
|
|
|
200
200
|
.date-picker-container {
|
|
201
201
|
width: 100%;
|
|
202
202
|
}
|
|
203
|
-
.date-picker-container .date-input{
|
|
204
|
-
--input-bg: transparent;
|
|
205
|
-
--input-font-size: 12px;
|
|
206
|
-
opacity: 0.6;
|
|
207
|
-
--input-height: 20px;
|
|
208
|
-
width: 75px;
|
|
209
|
-
}
|
|
210
|
-
.date-picker-container .txtInputIconStart input{
|
|
211
|
-
padding: 0 !important;
|
|
212
|
-
padding-inline-start: 1.25rem !important;
|
|
213
|
-
}
|
|
214
203
|
</style>
|
package/src/types/BagelForm.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { SelectInput, TextInput } from '@bagelink/vue'
|
|
2
|
-
import type { Paths, Get, IterableElement } from 'type-fest'
|
|
3
|
-
import type { ToString } from 'type-fest/source/internal'
|
|
4
|
-
import type { LiteralStringUnion } from 'type-fest/source/literal-union'
|
|
2
|
+
import type { Paths, Get, IterableElement, LiteralUnion } from 'type-fest'
|
|
5
3
|
import type { VNode } from 'vue'
|
|
6
4
|
import type { ComponentExposed } from 'vue-component-type-helpers'
|
|
7
5
|
|
|
6
|
+
export type ToString<T> = T extends string | number ? `${T}` : never
|
|
7
|
+
export type LiteralStringUnion<T> = LiteralUnion<T, string>
|
|
8
|
+
|
|
8
9
|
export type AttributeValue = string | number | boolean | undefined | { [key: string]: any }
|
|
9
10
|
|
|
10
11
|
export type AttributeFn<T, P extends Path<T>> = (
|