@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
|
@@ -3822,6 +3822,32 @@ _dayjs.default.extend(_utc.default);
|
|
|
3822
3822
|
_dayjs.default.extend(_dayjsTimezoneIanaPlugin.default);
|
|
3823
3823
|
_dayjs.default.extend(_dayjsAbbrTimezone.default);
|
|
3824
3824
|
|
|
3825
|
+
// dayjs-timezone-iana-plugin only provides instance method dayjs().tz(), not static dayjs.tz()
|
|
3826
|
+
// Add a static wrapper function to match the API used throughout the codebase
|
|
3827
|
+
// Check if dayjs.tz is callable as a function (it might be an object with setDefault)
|
|
3828
|
+
const tzIsCallable = typeof _dayjs.default.tz === 'function';
|
|
3829
|
+
if (!tzIsCallable) {
|
|
3830
|
+
// Preserve existing properties (like setDefault) if they exist
|
|
3831
|
+
const existingTz = _dayjs.default.tz;
|
|
3832
|
+
const existingSetDefault = existingTz && typeof existingTz.setDefault === 'function' ? existingTz.setDefault : null;
|
|
3833
|
+
|
|
3834
|
+
// Create a static tz function that wraps the instance method
|
|
3835
|
+
_dayjs.default.tz = function (date, tzName) {
|
|
3836
|
+
if (!date) {
|
|
3837
|
+
return (0, _dayjs.default)().tz(tzName);
|
|
3838
|
+
}
|
|
3839
|
+
if (_dayjs.default.isDayjs(date)) {
|
|
3840
|
+
return date.tz(tzName);
|
|
3841
|
+
}
|
|
3842
|
+
return (0, _dayjs.default)(date).tz(tzName);
|
|
3843
|
+
};
|
|
3844
|
+
|
|
3845
|
+
// Restore setDefault if it existed
|
|
3846
|
+
if (existingSetDefault) {
|
|
3847
|
+
_dayjs.default.tz.setDefault = existingSetDefault;
|
|
3848
|
+
}
|
|
3849
|
+
}
|
|
3850
|
+
|
|
3825
3851
|
// Core functionality plugins
|
|
3826
3852
|
_dayjs.default.extend(_relativeTime.default);
|
|
3827
3853
|
_dayjs.default.extend(_customParseFormat.default);
|