lib-pajakio-v2 1.0.19 → 1.0.21
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/lib-pajakio-v2.common.js +148 -126
- package/dist/lib-pajakio-v2.common.js.map +1 -1
- package/dist/lib-pajakio-v2.css +1 -1
- package/dist/lib-pajakio-v2.umd.js +148 -126
- package/dist/lib-pajakio-v2.umd.js.map +1 -1
- package/dist/lib-pajakio-v2.umd.min.js +1 -1
- package/dist/lib-pajakio-v2.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DashboardHeader/index.vue +15 -0
- package/src/components/DatePicker/index.vue +20 -1
package/package.json
CHANGED
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
49
|
<div v-if="showNotification" class="notification-dropdown box-shadow">
|
|
50
|
+
<div v-if="hasNotifications" class="notification-header">
|
|
51
|
+
Silakan klik untuk menyelesaikan tugas
|
|
52
|
+
</div>
|
|
50
53
|
<div v-if="hasNotifications" class="notification-list">
|
|
51
54
|
<div
|
|
52
55
|
v-for="item in notificationItems"
|
|
@@ -509,6 +512,13 @@ export default {
|
|
|
509
512
|
gap: 10px;
|
|
510
513
|
}
|
|
511
514
|
|
|
515
|
+
.notification-header {
|
|
516
|
+
font-size: 12px;
|
|
517
|
+
line-height: 1.35;
|
|
518
|
+
color: #748399;
|
|
519
|
+
margin-bottom: 10px;
|
|
520
|
+
}
|
|
521
|
+
|
|
512
522
|
.notification-item {
|
|
513
523
|
display: flex;
|
|
514
524
|
gap: 10px;
|
|
@@ -760,6 +770,11 @@ export default {
|
|
|
760
770
|
gap: 8px;
|
|
761
771
|
}
|
|
762
772
|
|
|
773
|
+
.notification-header {
|
|
774
|
+
font-size: 11px;
|
|
775
|
+
margin-bottom: 8px;
|
|
776
|
+
}
|
|
777
|
+
|
|
763
778
|
.notification-item-title {
|
|
764
779
|
font-size: 14px;
|
|
765
780
|
line-height: 1.35;
|
|
@@ -841,6 +841,10 @@ export default {
|
|
|
841
841
|
}
|
|
842
842
|
},
|
|
843
843
|
selectValue(day) {
|
|
844
|
+
if (!day || day.disabled || (this.pickerType == "day" && !day.label)) {
|
|
845
|
+
return;
|
|
846
|
+
}
|
|
847
|
+
|
|
844
848
|
switch (this.mode) {
|
|
845
849
|
case "single":
|
|
846
850
|
this.dataSelected = day;
|
|
@@ -858,7 +862,12 @@ export default {
|
|
|
858
862
|
// Complete drag selection
|
|
859
863
|
} else {
|
|
860
864
|
this.selectEnd = day
|
|
861
|
-
|
|
865
|
+
// Ensure second click always becomes the range end (don't rely on hover state).
|
|
866
|
+
this.dragRange = {
|
|
867
|
+
...this.dragRange,
|
|
868
|
+
end: day.date,
|
|
869
|
+
};
|
|
870
|
+
const { start, end } = this.normalizeRange(this.dragRange);
|
|
862
871
|
// Clear drag selection
|
|
863
872
|
this.dragRange = null;
|
|
864
873
|
this.$emit("update:modelValue", { start: this.formatDateRange(start, "start"), end: this.formatDateRange(end, "end") });
|
|
@@ -1236,8 +1245,18 @@ export default {
|
|
|
1236
1245
|
} else {
|
|
1237
1246
|
if (this.clearAble) {
|
|
1238
1247
|
this.dataSelected = {};
|
|
1248
|
+
this.selectEnd = null;
|
|
1249
|
+
this.dragRange = null;
|
|
1239
1250
|
this.dataValue = null
|
|
1240
1251
|
this.month = this.todayComps.month
|
|
1252
|
+
this.year = this.todayComps.year
|
|
1253
|
+
if (this.mode == "range") {
|
|
1254
|
+
this.valueMonthStart = this.todayComps.month;
|
|
1255
|
+
this.valueYearStart = this.todayComps.year;
|
|
1256
|
+
const nextMonth = this.nextMonthComps();
|
|
1257
|
+
this.valueMonthEnd = nextMonth.month;
|
|
1258
|
+
this.valueYearEnd = nextMonth.year;
|
|
1259
|
+
}
|
|
1241
1260
|
this.$emit("update:modelValue", null);
|
|
1242
1261
|
}
|
|
1243
1262
|
}
|