@capillarytech/blaze-ui 4.33.10 → 4.33.11
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/CapCollapsibleNavbar/index.js +26 -0
- package/dist/CapCollapsibleNavbar/index.js.map +1 -1
- package/dist/CapCondition/index.js +26 -0
- package/dist/CapCondition/index.js.map +1 -1
- package/dist/CapDatePicker/index.js +26 -0
- package/dist/CapDatePicker/index.js.map +1 -1
- package/dist/CapDateTimePicker/index.js +26 -0
- package/dist/CapDateTimePicker/index.js.map +1 -1
- package/dist/CapDateTimeRangePicker/index.js +26 -0
- package/dist/CapDateTimeRangePicker/index.js.map +1 -1
- package/dist/CapEventCalendar/index.js +26 -0
- package/dist/CapEventCalendar/index.js.map +1 -1
- package/dist/CapLanguageProvider/index.js +26 -0
- package/dist/CapLanguageProvider/index.js.map +1 -1
- package/dist/CapNotificationDropdown/index.js +26 -0
- package/dist/CapNotificationDropdown/index.js.map +1 -1
- package/dist/CapTimePicker/index.js +26 -0
- package/dist/CapTimePicker/index.js.map +1 -1
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/dayjs.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3874,6 +3874,32 @@ _dayjs.default.extend(_utc.default);
|
|
|
3874
3874
|
_dayjs.default.extend(_dayjsTimezoneIanaPlugin.default);
|
|
3875
3875
|
_dayjs.default.extend(_dayjsAbbrTimezone.default);
|
|
3876
3876
|
|
|
3877
|
+
// dayjs-timezone-iana-plugin only provides instance method dayjs().tz(), not static dayjs.tz()
|
|
3878
|
+
// Add a static wrapper function to match the API used throughout the codebase
|
|
3879
|
+
// Check if dayjs.tz is callable as a function (it might be an object with setDefault)
|
|
3880
|
+
const tzIsCallable = typeof _dayjs.default.tz === 'function';
|
|
3881
|
+
if (!tzIsCallable) {
|
|
3882
|
+
// Preserve existing properties (like setDefault) if they exist
|
|
3883
|
+
const existingTz = _dayjs.default.tz;
|
|
3884
|
+
const existingSetDefault = existingTz && typeof existingTz.setDefault === 'function' ? existingTz.setDefault : null;
|
|
3885
|
+
|
|
3886
|
+
// Create a static tz function that wraps the instance method
|
|
3887
|
+
_dayjs.default.tz = function (date, tzName) {
|
|
3888
|
+
if (!date) {
|
|
3889
|
+
return (0, _dayjs.default)().tz(tzName);
|
|
3890
|
+
}
|
|
3891
|
+
if (_dayjs.default.isDayjs(date)) {
|
|
3892
|
+
return date.tz(tzName);
|
|
3893
|
+
}
|
|
3894
|
+
return (0, _dayjs.default)(date).tz(tzName);
|
|
3895
|
+
};
|
|
3896
|
+
|
|
3897
|
+
// Restore setDefault if it existed
|
|
3898
|
+
if (existingSetDefault) {
|
|
3899
|
+
_dayjs.default.tz.setDefault = existingSetDefault;
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3902
|
+
|
|
3877
3903
|
// Core functionality plugins
|
|
3878
3904
|
_dayjs.default.extend(_relativeTime.default);
|
|
3879
3905
|
_dayjs.default.extend(_customParseFormat.default);
|