@stsdti/funky-ui-kit 1.8.0 → 1.8.1
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/funky-ui-kit.esm.js +15 -0
- package/dist/funky-ui-kit.esm.js.map +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
package/dist/funky-ui-kit.esm.js
CHANGED
|
@@ -31034,6 +31034,7 @@ var DateUtils = class DateUtils {
|
|
|
31034
31034
|
* @deprecated since version 2.0
|
|
31035
31035
|
*/
|
|
31036
31036
|
static englishToRomanianDateHour(dateString) {
|
|
31037
|
+
console.warn("Warning! Depricated function from 01.03.2023 called!");
|
|
31037
31038
|
return this.stringFromTo(dateString, "yyyy-MM-dd HH:00", "dd-MM-yyyy HH");
|
|
31038
31039
|
}
|
|
31039
31040
|
/**
|
|
@@ -31070,6 +31071,20 @@ var DateUtils = class DateUtils {
|
|
|
31070
31071
|
static isOlderThan = (timestamp, minutes) => {
|
|
31071
31072
|
return Date.now() - timestamp > minutes * 60 * 1e3;
|
|
31072
31073
|
};
|
|
31074
|
+
static nextMonth({ month, year }) {
|
|
31075
|
+
const d = new Date(+year, +month);
|
|
31076
|
+
return {
|
|
31077
|
+
month: String(d.getMonth() + 1),
|
|
31078
|
+
year: String(d.getFullYear())
|
|
31079
|
+
};
|
|
31080
|
+
}
|
|
31081
|
+
static previousMonth({ month, year }) {
|
|
31082
|
+
const d = new Date(+year, +month - 2);
|
|
31083
|
+
return {
|
|
31084
|
+
month: String(d.getMonth() + 1),
|
|
31085
|
+
year: String(d.getFullYear())
|
|
31086
|
+
};
|
|
31087
|
+
}
|
|
31073
31088
|
};
|
|
31074
31089
|
//#endregion
|
|
31075
31090
|
//#region src/components/small/app-date-time-picker/AppDateTimePicker.vue
|