genus-ui 2.62.62 → 2.62.63
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.es.js +3 -2
- package/dist/index.umd.js +34 -34
- package/package.json +1 -1
- package/types/genus-date-picker/index.d.ts +3 -1
package/dist/index.es.js
CHANGED
|
@@ -1382,7 +1382,7 @@ var kr = Object.defineProperty, Qr = Object.getOwnPropertyDescriptor, it = (i, t
|
|
|
1382
1382
|
};
|
|
1383
1383
|
let q = class extends R {
|
|
1384
1384
|
constructor() {
|
|
1385
|
-
super(
|
|
1385
|
+
super(), this.labelText = "", this.inputValue = "", this.inputName = "", this.inputIcon = "", this.leftArrowIcon = "", this.rightArrowIcon = "", this.placeholderText = "", this.withoutLabel = !1, this.displayPosition = "bottom", this.enableRange = !1, this.disablePastDates = !1, this.dropDownIcon = "", this._monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], this._currentMonth = (/* @__PURE__ */ new Date()).getMonth(), this._currentYear = (/* @__PURE__ */ new Date()).getFullYear(), this._showCalenderCssClass = "", this._rangeStartDate = null, this._rangeEndDate = null, this.isLeapYear = (i) => i % 4 === 0 && i % 100 !== 0 && i % 400 !== 0 || i % 100 === 0 && i % 400 === 0, this.getFebDays = (i) => this.isLeapYear(i) ? 29 : 28, this.toggleCalendar = () => {
|
|
1386
1386
|
this._showCalenderCssClass = this._showCalenderCssClass ? "" : `calendar-${this.displayPosition}--show`;
|
|
1387
1387
|
}, this.isDateDisabled = (i, t, e) => {
|
|
1388
1388
|
if (!this.disablePastDates) return !1;
|
|
@@ -1432,7 +1432,7 @@ let q = class extends R {
|
|
|
1432
1432
|
this._currentMonth === 0 ? (this._currentMonth = 11, this._currentYear--) : this._currentMonth--;
|
|
1433
1433
|
}, this.nextMonth = () => {
|
|
1434
1434
|
this._currentMonth === 11 ? (this._currentMonth = 0, this._currentYear++) : this._currentMonth++;
|
|
1435
|
-
};
|
|
1435
|
+
}, this._internals = this.attachInternals();
|
|
1436
1436
|
}
|
|
1437
1437
|
isSameDate(i, t) {
|
|
1438
1438
|
return !i || !t ? !1 : i.getFullYear() === t.getFullYear() && i.getMonth() === t.getMonth() && i.getDate() === t.getDate();
|
|
@@ -1515,6 +1515,7 @@ let q = class extends R {
|
|
|
1515
1515
|
}
|
|
1516
1516
|
};
|
|
1517
1517
|
q.styles = [_, mr, fr, wr, dr, ur, gr, pr];
|
|
1518
|
+
q.formAssociated = !0;
|
|
1518
1519
|
it([
|
|
1519
1520
|
m({ attribute: "label-text" })
|
|
1520
1521
|
], q.prototype, "labelText", 2);
|