@idds/js 1.0.41 → 1.0.43
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.iife.js +2 -4
- package/dist/index.js +2 -4
- package/package.json +1 -1
package/dist/index.iife.js
CHANGED
|
@@ -179,9 +179,9 @@ var InaUI = (() => {
|
|
|
179
179
|
function formatDate(date) {
|
|
180
180
|
if (!date) return "";
|
|
181
181
|
const day = date.getDate().toString().padStart(2, "0");
|
|
182
|
-
const
|
|
182
|
+
const month = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
183
183
|
const year = date.getFullYear();
|
|
184
|
-
return `${day}
|
|
184
|
+
return `${day}/${month}/${year}`;
|
|
185
185
|
}
|
|
186
186
|
function updateTrigger() {
|
|
187
187
|
if (mode === "single") {
|
|
@@ -499,7 +499,6 @@ var InaUI = (() => {
|
|
|
499
499
|
btn.onclick = (e) => {
|
|
500
500
|
if (mode === "single") {
|
|
501
501
|
selectedDate = date;
|
|
502
|
-
close();
|
|
503
502
|
} else if (mode === "multiple") {
|
|
504
503
|
const existsIdx = selectedDates.findIndex(
|
|
505
504
|
(d) => d.toDateString() === date.toDateString()
|
|
@@ -517,7 +516,6 @@ var InaUI = (() => {
|
|
|
517
516
|
} else {
|
|
518
517
|
rangeDate = [start, date];
|
|
519
518
|
}
|
|
520
|
-
close();
|
|
521
519
|
}
|
|
522
520
|
render();
|
|
523
521
|
}
|
package/dist/index.js
CHANGED
|
@@ -167,9 +167,9 @@ function initDatepicker() {
|
|
|
167
167
|
function formatDate(date) {
|
|
168
168
|
if (!date) return "";
|
|
169
169
|
const day = date.getDate().toString().padStart(2, "0");
|
|
170
|
-
const
|
|
170
|
+
const month = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
171
171
|
const year = date.getFullYear();
|
|
172
|
-
return `${day}
|
|
172
|
+
return `${day}/${month}/${year}`;
|
|
173
173
|
}
|
|
174
174
|
function updateTrigger() {
|
|
175
175
|
if (mode === "single") {
|
|
@@ -487,7 +487,6 @@ function initDatepicker() {
|
|
|
487
487
|
btn.onclick = (e) => {
|
|
488
488
|
if (mode === "single") {
|
|
489
489
|
selectedDate = date;
|
|
490
|
-
close();
|
|
491
490
|
} else if (mode === "multiple") {
|
|
492
491
|
const existsIdx = selectedDates.findIndex(
|
|
493
492
|
(d) => d.toDateString() === date.toDateString()
|
|
@@ -505,7 +504,6 @@ function initDatepicker() {
|
|
|
505
504
|
} else {
|
|
506
505
|
rangeDate = [start, date];
|
|
507
506
|
}
|
|
508
|
-
close();
|
|
509
507
|
}
|
|
510
508
|
render();
|
|
511
509
|
}
|