@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
package/dist/index.js
CHANGED
|
@@ -20112,23 +20112,6 @@ _dayjs.default.extend(_utc.default);
|
|
|
20112
20112
|
_dayjs.default.extend(_dayjsTimezoneIanaPlugin.default);
|
|
20113
20113
|
_dayjs.default.extend(_dayjsAbbrTimezone.default);
|
|
20114
20114
|
|
|
20115
|
-
// Verify timezone plugin was properly extended immediately after extending
|
|
20116
|
-
// This ensures we catch issues early and helps with webpack bundling
|
|
20117
|
-
const testInstance = (0, _dayjs.default)();
|
|
20118
|
-
if (typeof testInstance.tz !== 'function') {
|
|
20119
|
-
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.');
|
|
20120
|
-
// Try to re-extend as a fallback (shouldn't be necessary, but helps with bundling issues)
|
|
20121
|
-
try {
|
|
20122
|
-
_dayjs.default.extend(_dayjsTimezoneIanaPlugin.default);
|
|
20123
|
-
const retestInstance = (0, _dayjs.default)();
|
|
20124
|
-
if (typeof retestInstance.tz === 'function') {
|
|
20125
|
-
console.warn('[dayjs-timezone-iana-plugin] Plugin extension succeeded on retry.');
|
|
20126
|
-
}
|
|
20127
|
-
} catch (error) {
|
|
20128
|
-
console.error('[dayjs-timezone-iana-plugin] Failed to extend plugin:', error);
|
|
20129
|
-
}
|
|
20130
|
-
}
|
|
20131
|
-
|
|
20132
20115
|
// dayjs-timezone-iana-plugin only provides instance method dayjs().tz(), not static dayjs.tz()
|
|
20133
20116
|
// Add a static wrapper function to match the API used throughout the codebase
|
|
20134
20117
|
// Check if dayjs.tz is callable as a function (it might be an object with setDefault)
|
|
@@ -20139,14 +20122,14 @@ if (!tzIsCallable) {
|
|
|
20139
20122
|
const existingSetDefault = existingTz && typeof existingTz.setDefault === 'function' ? existingTz.setDefault : null;
|
|
20140
20123
|
|
|
20141
20124
|
// Create a static tz function that wraps the instance method
|
|
20142
|
-
// This wrapper ensures dayjs.tz() works even if the instance method is available
|
|
20143
20125
|
_dayjs.default.tz = function (date, tzName) {
|
|
20144
|
-
|
|
20145
|
-
|
|
20146
|
-
|
|
20147
|
-
|
|
20126
|
+
if (!date) {
|
|
20127
|
+
return (0, _dayjs.default)().tz(tzName);
|
|
20128
|
+
}
|
|
20129
|
+
if (_dayjs.default.isDayjs(date)) {
|
|
20130
|
+
return date.tz(tzName);
|
|
20148
20131
|
}
|
|
20149
|
-
return
|
|
20132
|
+
return (0, _dayjs.default)(date).tz(tzName);
|
|
20150
20133
|
};
|
|
20151
20134
|
|
|
20152
20135
|
// Restore setDefault if it existed
|