smoothly 1.0.0-alpha.117 → 1.0.0-alpha.119
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/cjs/{getLanguage-f547104a.js → getLanguage-09187b0a.js} +23 -4
- package/dist/cjs/getLanguage-09187b0a.js.map +1 -0
- package/dist/cjs/{index-6ae370b4.js → index-43af753b.js} +1 -4
- package/dist/cjs/index-43af753b.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/smoothly-accordion_67.cjs.entry.js +392 -19090
- package/dist/cjs/smoothly-accordion_67.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-address-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-address.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-addresses.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-country.cjs.entry.js +9 -9
- package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-display-date-time.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js +4 -4
- package/dist/cjs/smoothly-reorder.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
- package/dist/cjs/smoothly.cjs.js +2 -2
- package/dist/collection/components/display/index.js +22 -1
- package/dist/collection/components/display/index.js.map +1 -1
- package/dist/collection/components/display-demo/index.js +1 -1
- package/dist/collection/components/display-demo/index.js.map +1 -1
- package/dist/collection/components/input/demo/index.js +2 -0
- package/dist/collection/components/input/demo/index.js.map +1 -1
- package/dist/collection/components/input/index.js +29 -3
- package/dist/collection/components/input/index.js.map +1 -1
- package/dist/custom-elements/index.js +527 -19206
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{getLanguage-70d29a7b.js → getLanguage-09ad210c.js} +23 -4
- package/dist/esm/getLanguage-09ad210c.js.map +1 -0
- package/dist/esm/{index-c196715a.js → index-258984d3.js} +2 -4
- package/dist/esm/index-258984d3.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/smoothly-accordion_67.entry.js +392 -19090
- package/dist/esm/smoothly-accordion_67.entry.js.map +1 -1
- package/dist/esm/smoothly-address-display.entry.js +1 -1
- package/dist/esm/smoothly-address.entry.js +1 -1
- package/dist/esm/smoothly-addresses.entry.js +1 -1
- package/dist/esm/smoothly-color.entry.js +1 -1
- package/dist/esm/smoothly-country.entry.js +9 -9
- package/dist/esm/smoothly-country.entry.js.map +1 -1
- package/dist/esm/smoothly-display-date-time.entry.js +1 -1
- package/dist/esm/smoothly-google-font.entry.js +1 -1
- package/dist/esm/smoothly-radio-group.entry.js +1 -1
- package/dist/esm/smoothly-reorder.entry.js +2 -2
- package/dist/esm/smoothly-reorder.entry.js.map +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/esm/smoothly.js +3 -3
- package/dist/smoothly/{p-663ccbd0.entry.js → p-12182a73.entry.js} +2 -2
- package/dist/smoothly/p-24f65fcc.entry.js +2 -0
- package/dist/smoothly/p-24f65fcc.entry.js.map +1 -0
- package/dist/smoothly/{p-9992c8c4.entry.js → p-47151a53.entry.js} +2 -2
- package/dist/smoothly/{p-5edb65c6.entry.js → p-4c1bb81e.entry.js} +2 -2
- package/dist/smoothly/{p-d0b8061e.js → p-5e387578.js} +3 -3
- package/dist/smoothly/p-5e387578.js.map +1 -0
- package/dist/smoothly/{p-1efa3261.entry.js → p-66e9a8b1.entry.js} +2 -2
- package/dist/smoothly/{p-dbd1afa9.entry.js → p-6aebb818.entry.js} +2 -2
- package/dist/smoothly/{p-73442332.entry.js → p-6fad95bf.entry.js} +2 -2
- package/dist/smoothly/p-758d93c4.js +2 -0
- package/dist/smoothly/p-758d93c4.js.map +1 -0
- package/dist/smoothly/{p-4d743f07.entry.js → p-7bf147bf.entry.js} +2 -2
- package/dist/smoothly/p-b3eac6af.entry.js +2 -0
- package/dist/smoothly/{p-4ff439dd.entry.js.map → p-b3eac6af.entry.js.map} +1 -1
- package/dist/smoothly/{p-f96e41aa.entry.js → p-cb493516.entry.js} +2 -2
- package/dist/smoothly/p-ce7ec4f0.entry.js +2 -0
- package/dist/smoothly/p-ce7ec4f0.entry.js.map +1 -0
- package/dist/smoothly/{p-ce4e6f44.entry.js → p-eef1c80b.entry.js} +2 -2
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -1
- package/dist/types/components/display/index.d.ts +1 -0
- package/dist/types/components/input/index.d.ts +3 -2
- package/dist/types/components.d.ts +6 -2
- package/package.json +2 -6
- package/dist/cjs/getLanguage-f547104a.js.map +0 -1
- package/dist/cjs/index-6ae370b4.js.map +0 -1
- package/dist/esm/getLanguage-70d29a7b.js.map +0 -1
- package/dist/esm/index-c196715a.js.map +0 -1
- package/dist/smoothly/p-4ff439dd.entry.js +0 -2
- package/dist/smoothly/p-7d43f36c.entry.js +0 -2
- package/dist/smoothly/p-7d43f36c.entry.js.map +0 -1
- package/dist/smoothly/p-ab0db505.entry.js +0 -2
- package/dist/smoothly/p-ab0db505.entry.js.map +0 -1
- package/dist/smoothly/p-d0b8061e.js.map +0 -1
- package/dist/smoothly/p-f4f6164e.js +0 -2
- package/dist/smoothly/p-f4f6164e.js.map +0 -1
- /package/dist/smoothly/{p-663ccbd0.entry.js.map → p-12182a73.entry.js.map} +0 -0
- /package/dist/smoothly/{p-9992c8c4.entry.js.map → p-47151a53.entry.js.map} +0 -0
- /package/dist/smoothly/{p-5edb65c6.entry.js.map → p-4c1bb81e.entry.js.map} +0 -0
- /package/dist/smoothly/{p-1efa3261.entry.js.map → p-66e9a8b1.entry.js.map} +0 -0
- /package/dist/smoothly/{p-dbd1afa9.entry.js.map → p-6aebb818.entry.js.map} +0 -0
- /package/dist/smoothly/{p-73442332.entry.js.map → p-6fad95bf.entry.js.map} +0 -0
- /package/dist/smoothly/{p-4d743f07.entry.js.map → p-7bf147bf.entry.js.map} +0 -0
- /package/dist/smoothly/{p-f96e41aa.entry.js.map → p-cb493516.entry.js.map} +0 -0
- /package/dist/smoothly/{p-ce4e6f44.entry.js.map → p-eef1c80b.entry.js.map} +0 -0
|
@@ -3649,12 +3649,23 @@ exports.Date = void 0;
|
|
|
3649
3649
|
return Number.parseInt(date.substring(5, 7));
|
|
3650
3650
|
}
|
|
3651
3651
|
Date.getMonth = getMonth;
|
|
3652
|
+
function getWeek(date) {
|
|
3653
|
+
const parsed = new globalThis.Date(date);
|
|
3654
|
+
parsed.setHours(0, 0, 0, 0);
|
|
3655
|
+
parsed.setDate(parsed.getDate() + 3 - ((parsed.getDay() + 6) % 7));
|
|
3656
|
+
const week1 = new globalThis.Date(parsed.getFullYear(), 0, 4);
|
|
3657
|
+
return 1 + Math.round(((parsed.getTime() - week1.getTime()) / 86400000 - 3 + ((week1.getDay() + 6) % 7)) / 7);
|
|
3658
|
+
}
|
|
3659
|
+
Date.getWeek = getWeek;
|
|
3652
3660
|
function getDay(date) {
|
|
3653
3661
|
return Number.parseInt(date.substring(8, 10));
|
|
3654
3662
|
}
|
|
3655
3663
|
Date.getDay = getDay;
|
|
3656
|
-
function getWeekDay(date) {
|
|
3657
|
-
|
|
3664
|
+
function getWeekDay(date, locale, options) {
|
|
3665
|
+
const format = options?.format ?? "long";
|
|
3666
|
+
return locale
|
|
3667
|
+
? new globalThis.Date(date).toLocaleDateString(locale, { weekday: format })
|
|
3668
|
+
: new globalThis.Date(date).getDay();
|
|
3658
3669
|
}
|
|
3659
3670
|
Date.getWeekDay = getWeekDay;
|
|
3660
3671
|
function nextWeekday(date, days = 1, holidays = []) {
|
|
@@ -3849,9 +3860,17 @@ exports.DateTime = void 0;
|
|
|
3849
3860
|
}
|
|
3850
3861
|
value = new globalThis.Date(value);
|
|
3851
3862
|
}
|
|
3852
|
-
return value.toISOString();
|
|
3863
|
+
return fixIncorrect(value.toISOString());
|
|
3853
3864
|
}
|
|
3854
3865
|
DateTime.create = create;
|
|
3866
|
+
function fixIncorrect(value) {
|
|
3867
|
+
if (value.length == 22 && value.match(/\.\dZ$/))
|
|
3868
|
+
value = value.substring(0, 21) + "00Z";
|
|
3869
|
+
else if (value.length == 23 && value.match(/\.\d\dZ$/))
|
|
3870
|
+
value = value.substring(0, 22) + "0Z";
|
|
3871
|
+
return value;
|
|
3872
|
+
}
|
|
3873
|
+
DateTime.fixIncorrect = fixIncorrect;
|
|
3855
3874
|
/**
|
|
3856
3875
|
* Return local time with offset.
|
|
3857
3876
|
* Note: During DST-change, this might be wrong.
|
|
@@ -12131,4 +12150,4 @@ function convert(language) {
|
|
|
12131
12150
|
|
|
12132
12151
|
exports.getLanguage = getLanguage;
|
|
12133
12152
|
|
|
12134
|
-
//# sourceMappingURL=getLanguage-
|
|
12153
|
+
//# sourceMappingURL=getLanguage-09187b0a.js.map
|