genus-ui 2.62.62 → 2.62.64
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 +21 -12
- package/dist/index.umd.js +52 -44
- 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);
|
|
@@ -1891,20 +1892,28 @@ const Hp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1891
1892
|
return Oe;
|
|
1892
1893
|
}
|
|
1893
1894
|
}, Symbol.toStringTag, { value: "Module" })), Qo = M`
|
|
1894
|
-
::slotted(.hide-content)
|
|
1895
|
-
{
|
|
1896
|
-
visibility: hidden;
|
|
1897
|
-
opacity: 0;
|
|
1898
|
-
transform: translate3d(0, 1rem, 0);
|
|
1899
|
-
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1900
|
-
}
|
|
1895
|
+
::slotted(.hide-content) { display: none; }
|
|
1901
1896
|
|
|
1902
1897
|
::slotted(.show-content)
|
|
1903
1898
|
{
|
|
1904
|
-
|
|
1905
|
-
transform: translate3d(0, 0, 0);
|
|
1906
|
-
opacity: 1;
|
|
1899
|
+
display: block;
|
|
1907
1900
|
z-index: 1;
|
|
1901
|
+
animation: FadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
@keyframes FadeIn
|
|
1905
|
+
{
|
|
1906
|
+
from
|
|
1907
|
+
{
|
|
1908
|
+
opacity: 0;
|
|
1909
|
+
transform: translate3d(0, 1rem, 0);
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
to
|
|
1913
|
+
{
|
|
1914
|
+
opacity: 1;
|
|
1915
|
+
transform: translate3d(0, 0, 0);
|
|
1916
|
+
}
|
|
1908
1917
|
}
|
|
1909
1918
|
|
|
1910
1919
|
.step-icon { pointer-events: none; }
|