@capillarytech/blaze-ui 4.33.9 → 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 +6 -23
- package/dist/CapCollapsibleNavbar/index.js.map +1 -1
- package/dist/CapCondition/index.js +6 -23
- package/dist/CapCondition/index.js.map +1 -1
- package/dist/CapDatePicker/index.js +6 -23
- package/dist/CapDatePicker/index.js.map +1 -1
- package/dist/CapDateTimePicker/index.js +6 -23
- package/dist/CapDateTimePicker/index.js.map +1 -1
- package/dist/CapDateTimeRangePicker/index.js +6 -23
- package/dist/CapDateTimeRangePicker/index.js.map +1 -1
- package/dist/CapEventCalendar/index.js +6 -23
- package/dist/CapEventCalendar/index.js.map +1 -1
- package/dist/CapLanguageProvider/index.js +6 -23
- package/dist/CapLanguageProvider/index.js.map +1 -1
- package/dist/CapNotificationDropdown/index.js +6 -23
- package/dist/CapNotificationDropdown/index.js.map +1 -1
- package/dist/CapTimePicker/index.js +6 -23
- package/dist/CapTimePicker/index.js.map +1 -1
- package/dist/index.js +6 -23
- package/dist/index.js.map +1 -1
- package/dist/utils/dayjs.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4502,23 +4502,6 @@ _dayjs.default.extend(_utc.default);
|
|
|
4502
4502
|
_dayjs.default.extend(_dayjsTimezoneIanaPlugin.default);
|
|
4503
4503
|
_dayjs.default.extend(_dayjsAbbrTimezone.default);
|
|
4504
4504
|
|
|
4505
|
-
// Verify timezone plugin was properly extended immediately after extending
|
|
4506
|
-
// This ensures we catch issues early and helps with webpack bundling
|
|
4507
|
-
const testInstance = (0, _dayjs.default)();
|
|
4508
|
-
if (typeof testInstance.tz !== 'function') {
|
|
4509
|
-
console.error('[dayjs-timezone-iana-plugin] CRITICAL: Plugin not properly extended!', 'dayjs().tz type:', typeof testInstance.tz, 'This indicates the plugin extension failed. Check plugin import and order.');
|
|
4510
|
-
// Try to re-extend as a fallback (shouldn't be necessary, but helps with bundling issues)
|
|
4511
|
-
try {
|
|
4512
|
-
_dayjs.default.extend(_dayjsTimezoneIanaPlugin.default);
|
|
4513
|
-
const retestInstance = (0, _dayjs.default)();
|
|
4514
|
-
if (typeof retestInstance.tz === 'function') {
|
|
4515
|
-
console.warn('[dayjs-timezone-iana-plugin] Plugin extension succeeded on retry.');
|
|
4516
|
-
}
|
|
4517
|
-
} catch (error) {
|
|
4518
|
-
console.error('[dayjs-timezone-iana-plugin] Failed to extend plugin:', error);
|
|
4519
|
-
}
|
|
4520
|
-
}
|
|
4521
|
-
|
|
4522
4505
|
// dayjs-timezone-iana-plugin only provides instance method dayjs().tz(), not static dayjs.tz()
|
|
4523
4506
|
// Add a static wrapper function to match the API used throughout the codebase
|
|
4524
4507
|
// Check if dayjs.tz is callable as a function (it might be an object with setDefault)
|
|
@@ -4529,14 +4512,14 @@ if (!tzIsCallable) {
|
|
|
4529
4512
|
const existingSetDefault = existingTz && typeof existingTz.setDefault === 'function' ? existingTz.setDefault : null;
|
|
4530
4513
|
|
|
4531
4514
|
// Create a static tz function that wraps the instance method
|
|
4532
|
-
// This wrapper ensures dayjs.tz() works even if the instance method is available
|
|
4533
4515
|
_dayjs.default.tz = function (date, tzName) {
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4516
|
+
if (!date) {
|
|
4517
|
+
return (0, _dayjs.default)().tz(tzName);
|
|
4518
|
+
}
|
|
4519
|
+
if (_dayjs.default.isDayjs(date)) {
|
|
4520
|
+
return date.tz(tzName);
|
|
4538
4521
|
}
|
|
4539
|
-
return
|
|
4522
|
+
return (0, _dayjs.default)(date).tz(tzName);
|
|
4540
4523
|
};
|
|
4541
4524
|
|
|
4542
4525
|
// Restore setDefault if it existed
|