@hivegpt/hiveai-angular 0.0.516 → 0.0.517
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/bundles/hivegpt-hiveai-angular.umd.js +44 -2
- package/bundles/hivegpt-hiveai-angular.umd.js.map +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js.map +1 -1
- package/esm2015/lib/components/chat-drawer/chat-drawer.component.js +45 -3
- package/fesm2015/hivegpt-hiveai-angular.js +44 -2
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/hivegpt-hiveai-angular.metadata.json +1 -1
- package/lib/components/chat-drawer/chat-drawer.component.d.ts +7 -2
- package/lib/components/chat-drawer/chat-drawer.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1946,14 +1946,21 @@ class ChatDrawerComponent {
|
|
|
1946
1946
|
}
|
|
1947
1947
|
}
|
|
1948
1948
|
/**
|
|
1949
|
-
* Get timezone abbreviation (e.g. IST,
|
|
1950
|
-
* Uses map
|
|
1949
|
+
* Get timezone abbreviation (e.g. IST, BRT, SAST) for display after the time.
|
|
1950
|
+
* Uses IANA map and Windows-style map so we show "BRT" / "IST" instead of "((UTC-03:00) Brasilia)".
|
|
1951
|
+
* Only consults Windows map when input looks like "(UTC...)" so existing IANA/Intl behavior is unchanged.
|
|
1951
1952
|
*/
|
|
1952
1953
|
getTimezoneAbbreviation(tz) {
|
|
1953
1954
|
var _a;
|
|
1954
1955
|
if (!tz || !String(tz).trim())
|
|
1955
1956
|
return '';
|
|
1956
1957
|
const tzId = String(tz).trim();
|
|
1958
|
+
if (tzId.startsWith('(UTC') || tzId.startsWith('(utc')) {
|
|
1959
|
+
const winMap = this.constructor.WINDOWS_TZ_ABBR_MAP;
|
|
1960
|
+
const winKey = Object.keys(winMap).find((k) => k.toLowerCase() === tzId.toLowerCase());
|
|
1961
|
+
if (winKey)
|
|
1962
|
+
return winMap[winKey];
|
|
1963
|
+
}
|
|
1957
1964
|
const map = this.constructor.TZ_ABBR_MAP;
|
|
1958
1965
|
let mapped = map[tzId];
|
|
1959
1966
|
if (!mapped) {
|
|
@@ -4193,6 +4200,41 @@ ChatDrawerComponent.TZ_ABBR_MAP = {
|
|
|
4193
4200
|
'Etc/GMT+11': 'UTC-11',
|
|
4194
4201
|
'Etc/GMT+12': 'BIT',
|
|
4195
4202
|
};
|
|
4203
|
+
/**
|
|
4204
|
+
* Windows-style "(UTC±HH:MM) Place" -> short name (IST, BRT, etc.) so we show "IST" not "((UTC+05:30) India)".
|
|
4205
|
+
*/
|
|
4206
|
+
ChatDrawerComponent.WINDOWS_TZ_ABBR_MAP = {
|
|
4207
|
+
'(UTC-03:00) Brasilia': 'BRT',
|
|
4208
|
+
'(UTC-03:00) Buenos Aires': 'ART',
|
|
4209
|
+
'(UTC+05:30) India': 'IST',
|
|
4210
|
+
'(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi': 'IST',
|
|
4211
|
+
'(UTC+00:00) Dublin, Edinburgh, London': 'GMT',
|
|
4212
|
+
'(UTC+00:00) Monrovia, Reykjavik': 'GMT',
|
|
4213
|
+
'(UTC+01:00) Amsterdam, Berlin, Rome, Stockholm': 'CET',
|
|
4214
|
+
'(UTC+01:00) Brussels, Copenhagen, Madrid, Paris': 'CET',
|
|
4215
|
+
'(UTC+02:00) Athens, Istanbul, Minsk': 'EET',
|
|
4216
|
+
'(UTC+02:00) Cairo': 'EET',
|
|
4217
|
+
'(UTC+02:00) Jerusalem': 'IST',
|
|
4218
|
+
'(UTC+03:00) Moscow, St. Petersburg': 'MSK',
|
|
4219
|
+
'(UTC+03:00) Nairobi': 'EAT',
|
|
4220
|
+
'(UTC+04:00) Dubai': 'GST',
|
|
4221
|
+
'(UTC+05:00) Islamabad, Karachi': 'PKT',
|
|
4222
|
+
'(UTC+05:45) Kathmandu': 'NPT',
|
|
4223
|
+
'(UTC+06:00) Dhaka': 'BST',
|
|
4224
|
+
'(UTC+06:30) Yangon (Rangoon)': 'MMT',
|
|
4225
|
+
'(UTC+07:00) Bangkok, Hanoi, Jakarta': 'ICT',
|
|
4226
|
+
'(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi': 'CST',
|
|
4227
|
+
'(UTC+08:00) Kuala Lumpur, Singapore': 'SGT',
|
|
4228
|
+
'(UTC+09:00) Osaka, Sapporo, Tokyo': 'JST',
|
|
4229
|
+
'(UTC+09:30) Adelaide': 'ACST',
|
|
4230
|
+
'(UTC+10:00) Brisbane': 'AEST',
|
|
4231
|
+
'(UTC+10:00) Canberra, Melbourne, Sydney': 'AEST',
|
|
4232
|
+
'(UTC+12:00) Auckland, Wellington': 'NZST',
|
|
4233
|
+
'(UTC-05:00) Eastern Time (US & Canada)': 'ET',
|
|
4234
|
+
'(UTC-06:00) Central Time (US & Canada)': 'CT',
|
|
4235
|
+
'(UTC-07:00) Mountain Time (US & Canada)': 'MT',
|
|
4236
|
+
'(UTC-08:00) Pacific Time (US & Canada)': 'PT',
|
|
4237
|
+
};
|
|
4196
4238
|
ChatDrawerComponent.decorators = [
|
|
4197
4239
|
{ type: Component, args: [{
|
|
4198
4240
|
selector: 'hivegpt-chat-drawer-package',
|