@bagelink/vue 1.1.7-beta.1 → 1.1.8-beta.2
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/index.cjs +6 -6
- package/dist/index.mjs +6 -6
- package/dist/style.css +21 -21
- package/package.json +1 -2
- package/src/components/form/inputs/DateInput.vue +5 -5
- package/tsconfig.json +0 -59
package/dist/index.cjs
CHANGED
|
@@ -16449,7 +16449,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
16449
16449
|
}
|
|
16450
16450
|
function emitDateValue(date2) {
|
|
16451
16451
|
if (props2.enableTime) {
|
|
16452
|
-
emit2("update:modelValue", formatDate(date2, "YYYY-MM-DD HH:
|
|
16452
|
+
emit2("update:modelValue", formatDate(date2, "YYYY-MM-DD HH:mm"));
|
|
16453
16453
|
} else {
|
|
16454
16454
|
emit2("update:modelValue", formatDate(date2, "YYYY-MM-DD"));
|
|
16455
16455
|
}
|
|
@@ -16688,25 +16688,25 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
16688
16688
|
vue.createElementVNode("div", _hoisted_15$3, [
|
|
16689
16689
|
vue.createVNode(vue.unref(NumberInput), {
|
|
16690
16690
|
center: "",
|
|
16691
|
-
|
|
16691
|
+
modelValue: vue.unref(hours),
|
|
16692
16692
|
disabled: !vue.unref(selectedDate),
|
|
16693
16693
|
min: 0,
|
|
16694
16694
|
max: 23,
|
|
16695
16695
|
layout: "vertical",
|
|
16696
16696
|
padZero: 2,
|
|
16697
16697
|
"onUpdate:modelValue": vue.unref(handleHourInput)
|
|
16698
|
-
}, null, 8, ["
|
|
16698
|
+
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"]),
|
|
16699
16699
|
_cache[7] || (_cache[7] = vue.createElementVNode("p", { class: "pb-075" }, " : ", -1)),
|
|
16700
16700
|
vue.createVNode(vue.unref(NumberInput), {
|
|
16701
16701
|
center: "",
|
|
16702
|
-
|
|
16702
|
+
modelValue: vue.unref(minutes),
|
|
16703
16703
|
disabled: !vue.unref(selectedDate),
|
|
16704
16704
|
min: 0,
|
|
16705
16705
|
max: 59,
|
|
16706
16706
|
padZero: 2,
|
|
16707
16707
|
layout: "vertical",
|
|
16708
16708
|
"onUpdate:modelValue": vue.unref(handleMinuteInput)
|
|
16709
|
-
}, null, 8, ["
|
|
16709
|
+
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
|
|
16710
16710
|
]),
|
|
16711
16711
|
vue.unref(selectedDate) ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
16712
16712
|
key: 0,
|
|
@@ -16727,7 +16727,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
16727
16727
|
};
|
|
16728
16728
|
}
|
|
16729
16729
|
});
|
|
16730
|
-
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-
|
|
16730
|
+
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-2adea311"]]);
|
|
16731
16731
|
const _hoisted_1$F = ["title"];
|
|
16732
16732
|
const _hoisted_2$t = { key: 0 };
|
|
16733
16733
|
const _hoisted_3$o = {
|
package/dist/index.mjs
CHANGED
|
@@ -16447,7 +16447,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
16447
16447
|
}
|
|
16448
16448
|
function emitDateValue(date2) {
|
|
16449
16449
|
if (props2.enableTime) {
|
|
16450
|
-
emit2("update:modelValue", formatDate(date2, "YYYY-MM-DD HH:
|
|
16450
|
+
emit2("update:modelValue", formatDate(date2, "YYYY-MM-DD HH:mm"));
|
|
16451
16451
|
} else {
|
|
16452
16452
|
emit2("update:modelValue", formatDate(date2, "YYYY-MM-DD"));
|
|
16453
16453
|
}
|
|
@@ -16686,25 +16686,25 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
16686
16686
|
createElementVNode("div", _hoisted_15$3, [
|
|
16687
16687
|
createVNode(unref(NumberInput), {
|
|
16688
16688
|
center: "",
|
|
16689
|
-
|
|
16689
|
+
modelValue: unref(hours),
|
|
16690
16690
|
disabled: !unref(selectedDate),
|
|
16691
16691
|
min: 0,
|
|
16692
16692
|
max: 23,
|
|
16693
16693
|
layout: "vertical",
|
|
16694
16694
|
padZero: 2,
|
|
16695
16695
|
"onUpdate:modelValue": unref(handleHourInput)
|
|
16696
|
-
}, null, 8, ["
|
|
16696
|
+
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"]),
|
|
16697
16697
|
_cache[7] || (_cache[7] = createElementVNode("p", { class: "pb-075" }, " : ", -1)),
|
|
16698
16698
|
createVNode(unref(NumberInput), {
|
|
16699
16699
|
center: "",
|
|
16700
|
-
|
|
16700
|
+
modelValue: unref(minutes),
|
|
16701
16701
|
disabled: !unref(selectedDate),
|
|
16702
16702
|
min: 0,
|
|
16703
16703
|
max: 59,
|
|
16704
16704
|
padZero: 2,
|
|
16705
16705
|
layout: "vertical",
|
|
16706
16706
|
"onUpdate:modelValue": unref(handleMinuteInput)
|
|
16707
|
-
}, null, 8, ["
|
|
16707
|
+
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
|
|
16708
16708
|
]),
|
|
16709
16709
|
unref(selectedDate) ? (openBlock(), createBlock(unref(Btn), {
|
|
16710
16710
|
key: 0,
|
|
@@ -16725,7 +16725,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
16725
16725
|
};
|
|
16726
16726
|
}
|
|
16727
16727
|
});
|
|
16728
|
-
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-
|
|
16728
|
+
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-2adea311"]]);
|
|
16729
16729
|
const _hoisted_1$F = ["title"];
|
|
16730
16730
|
const _hoisted_2$t = { key: 0 };
|
|
16731
16731
|
const _hoisted_3$o = {
|
package/dist/style.css
CHANGED
|
@@ -1433,69 +1433,69 @@ pre code.hljs{
|
|
|
1433
1433
|
outline-color: var(--input-bg);
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
|
-
.calendar-container[data-v-
|
|
1436
|
+
.calendar-container[data-v-2adea311] {
|
|
1437
1437
|
max-width: 90vw;
|
|
1438
1438
|
}
|
|
1439
|
-
.calendar-section[data-v-
|
|
1439
|
+
.calendar-section[data-v-2adea311] {
|
|
1440
1440
|
min-width: 280px;
|
|
1441
1441
|
}
|
|
1442
|
-
.calendar-grid[data-v-
|
|
1442
|
+
.calendar-grid[data-v-2adea311] {
|
|
1443
1443
|
grid-template-columns: repeat(7, 1fr);
|
|
1444
1444
|
}
|
|
1445
|
-
.month-grid[data-v-
|
|
1445
|
+
.month-grid[data-v-2adea311] {
|
|
1446
1446
|
grid-template-columns: repeat(3, 1fr);
|
|
1447
1447
|
grid-template-rows: repeat(4, 1fr);
|
|
1448
1448
|
}
|
|
1449
|
-
.year-grid[data-v-
|
|
1449
|
+
.year-grid[data-v-2adea311] {
|
|
1450
1450
|
grid-template-columns: repeat(3, 1fr);
|
|
1451
1451
|
grid-template-rows: repeat(7, 1fr);
|
|
1452
1452
|
}
|
|
1453
|
-
.month-item[data-v-
|
|
1454
|
-
.year-item[data-v-
|
|
1453
|
+
.month-item[data-v-2adea311],
|
|
1454
|
+
.year-item[data-v-2adea311] {
|
|
1455
1455
|
background: none;
|
|
1456
1456
|
color: var(--bgl-text-color);
|
|
1457
1457
|
}
|
|
1458
|
-
.month-item[data-v-
|
|
1459
|
-
.year-item[data-v-
|
|
1458
|
+
.month-item[data-v-2adea311]:hover:not(.disabled),
|
|
1459
|
+
.year-item[data-v-2adea311]:hover:not(.disabled) {
|
|
1460
1460
|
background: var(--bgl-box-bg);
|
|
1461
1461
|
filter: var(--bgl-hover-filter);
|
|
1462
1462
|
}
|
|
1463
|
-
.month-item[data-v-
|
|
1464
|
-
.year-item[data-v-
|
|
1463
|
+
.month-item[data-v-2adea311]:active:not(.disabled),
|
|
1464
|
+
.year-item[data-v-2adea311]:active:not(.disabled) {
|
|
1465
1465
|
background: var(--bgl-box-bg);
|
|
1466
1466
|
filter: var(--bgl-active-filter);
|
|
1467
1467
|
}
|
|
1468
|
-
.month-item.selected[data-v-
|
|
1469
|
-
.year-item.selected[data-v-
|
|
1468
|
+
.month-item.selected[data-v-2adea311],
|
|
1469
|
+
.year-item.selected[data-v-2adea311] {
|
|
1470
1470
|
background-color: var(--bgl-primary);
|
|
1471
1471
|
color: white;
|
|
1472
1472
|
}
|
|
1473
|
-
.month-item.disabled[data-v-
|
|
1474
|
-
.year-item.disabled[data-v-
|
|
1473
|
+
.month-item.disabled[data-v-2adea311],
|
|
1474
|
+
.year-item.disabled[data-v-2adea311] {
|
|
1475
1475
|
opacity: 0.6;
|
|
1476
1476
|
filter: grayscale(0.3);
|
|
1477
1477
|
}
|
|
1478
|
-
.day[data-v-
|
|
1478
|
+
.day[data-v-2adea311] {
|
|
1479
1479
|
border: none;
|
|
1480
1480
|
background: none;
|
|
1481
1481
|
color: var(--bgl-text-color);
|
|
1482
1482
|
}
|
|
1483
|
-
.day[data-v-
|
|
1483
|
+
.day[data-v-2adea311]:hover:not(.disabled) {
|
|
1484
1484
|
background-color: var(--input-bg);
|
|
1485
1485
|
}
|
|
1486
|
-
.day.selected[data-v-
|
|
1486
|
+
.day.selected[data-v-2adea311] {
|
|
1487
1487
|
background-color: var(--bgl-primary);
|
|
1488
1488
|
color: var(--bgl-white);
|
|
1489
1489
|
}
|
|
1490
|
-
.day.today[data-v-
|
|
1490
|
+
.day.today[data-v-2adea311]:not(.selected) {
|
|
1491
1491
|
border: 1px solid var(--bgl-primary);
|
|
1492
1492
|
}
|
|
1493
|
-
.day.disabled[data-v-
|
|
1493
|
+
.day.disabled[data-v-2adea311] {
|
|
1494
1494
|
opacity: 0.6;
|
|
1495
1495
|
filter: grayscale(0.3);
|
|
1496
1496
|
cursor: not-allowed;
|
|
1497
1497
|
}
|
|
1498
|
-
.day.not-in-month[data-v-
|
|
1498
|
+
.day.not-in-month[data-v-2adea311] {
|
|
1499
1499
|
opacity: 0.4;
|
|
1500
1500
|
}
|
|
1501
1501
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bagelink/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.8-beta.2",
|
|
5
5
|
"description": "Bagel core sdk packages",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Neveh Allon",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"files": [
|
|
49
49
|
"dist",
|
|
50
50
|
"src",
|
|
51
|
-
"./tsconfig.json",
|
|
52
51
|
"./vite.config.ts"
|
|
53
52
|
],
|
|
54
53
|
"devDependencies": {
|
|
@@ -281,7 +281,7 @@ function useTimeHandling() {
|
|
|
281
281
|
function emitDateValue(date: Date) {
|
|
282
282
|
if (props.enableTime) {
|
|
283
283
|
// For dates with time, emit the date object directly
|
|
284
|
-
emit('update:modelValue', formatDate(date, 'YYYY-MM-DD HH:
|
|
284
|
+
emit('update:modelValue', formatDate(date, 'YYYY-MM-DD HH:mm'))
|
|
285
285
|
} else {
|
|
286
286
|
// For date-only, emit a date with time set to midnight
|
|
287
287
|
emit('update:modelValue', formatDate(date, 'YYYY-MM-DD'))
|
|
@@ -511,26 +511,26 @@ onMounted(() => {
|
|
|
511
511
|
<div class="flex gap-025">
|
|
512
512
|
<NumberInput
|
|
513
513
|
center
|
|
514
|
-
:
|
|
514
|
+
:modelValue="hours"
|
|
515
515
|
:disabled="!selectedDate"
|
|
516
516
|
:min="0"
|
|
517
517
|
:max="23"
|
|
518
518
|
layout="vertical"
|
|
519
519
|
:padZero="2"
|
|
520
|
-
@update:
|
|
520
|
+
@update:modelValue="handleHourInput"
|
|
521
521
|
/>
|
|
522
522
|
<p class="pb-075">
|
|
523
523
|
:
|
|
524
524
|
</p>
|
|
525
525
|
<NumberInput
|
|
526
526
|
center
|
|
527
|
-
:
|
|
527
|
+
:modelValue="minutes"
|
|
528
528
|
:disabled="!selectedDate"
|
|
529
529
|
:min="0"
|
|
530
530
|
:max="59"
|
|
531
531
|
:padZero="2"
|
|
532
532
|
layout="vertical"
|
|
533
|
-
@update:
|
|
533
|
+
@update:modelValue="handleMinuteInput"
|
|
534
534
|
/>
|
|
535
535
|
</div>
|
|
536
536
|
<Btn v-if="selectedDate" flat @click="isOpen = false">
|
package/tsconfig.json
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "ESNext",
|
|
5
|
-
"baseUrl": ".",
|
|
6
|
-
"rootDir": "..",
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"strict": true,
|
|
9
|
-
"jsx": "preserve",
|
|
10
|
-
"strictFunctionTypes": true,
|
|
11
|
-
"strictNullChecks": true,
|
|
12
|
-
"moduleResolution": "Bundler",
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"isolatedModules": true,
|
|
15
|
-
"esModuleInterop": true,
|
|
16
|
-
"noUnusedLocals": true,
|
|
17
|
-
"skipDefaultLibCheck": true,
|
|
18
|
-
"skipLibCheck": true,
|
|
19
|
-
"sourceMap": true,
|
|
20
|
-
"declaration": true,
|
|
21
|
-
"declarationMap": true,
|
|
22
|
-
"useDefineForClassFields": true,
|
|
23
|
-
"allowSyntheticDefaultImports": true,
|
|
24
|
-
"forceConsistentCasingInFileNames": true,
|
|
25
|
-
"lib": [
|
|
26
|
-
"ESNext",
|
|
27
|
-
"DOM"
|
|
28
|
-
],
|
|
29
|
-
"types": [
|
|
30
|
-
"vite/client",
|
|
31
|
-
"vitest/globals",
|
|
32
|
-
"@vue-macros/reactivity-transform/macros-global"
|
|
33
|
-
],
|
|
34
|
-
"paths": {
|
|
35
|
-
"@bagelink/sdk": [
|
|
36
|
-
"../sdk/src/index.ts"
|
|
37
|
-
],
|
|
38
|
-
"@bagelink/vue": [
|
|
39
|
-
"./src/index.ts"
|
|
40
|
-
],
|
|
41
|
-
"@bagelink/vue/*": [
|
|
42
|
-
"./vue/src/*"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"include": [
|
|
47
|
-
"env.d.ts",
|
|
48
|
-
"**/**/*.ts",
|
|
49
|
-
"**/**/*.vue",
|
|
50
|
-
"**/**/*.d.ts",
|
|
51
|
-
"./vite.config.ts",
|
|
52
|
-
"src/directives/pattern",
|
|
53
|
-
],
|
|
54
|
-
"exclude": [
|
|
55
|
-
"./tests",
|
|
56
|
-
"./vite.config.ts",
|
|
57
|
-
"./vitest.config.ts"
|
|
58
|
-
]
|
|
59
|
-
}
|