@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.
@@ -2591,14 +2591,21 @@
2591
2591
  }
2592
2592
  };
2593
2593
  /**
2594
- * Get timezone abbreviation (e.g. IST, SAST, SAWST, ESAST, EEDT) for display after the time.
2595
- * Uses map aligned with parent app session-layouts; falls back to Intl when not in map.
2594
+ * Get timezone abbreviation (e.g. IST, BRT, SAST) for display after the time.
2595
+ * Uses IANA map and Windows-style map so we show "BRT" / "IST" instead of "((UTC-03:00) Brasilia)".
2596
+ * Only consults Windows map when input looks like "(UTC...)" so existing IANA/Intl behavior is unchanged.
2596
2597
  */
2597
2598
  ChatDrawerComponent.prototype.getTimezoneAbbreviation = function (tz) {
2598
2599
  var _a;
2599
2600
  if (!tz || !String(tz).trim())
2600
2601
  return '';
2601
2602
  var tzId = String(tz).trim();
2603
+ if (tzId.startsWith('(UTC') || tzId.startsWith('(utc')) {
2604
+ var winMap = this.constructor.WINDOWS_TZ_ABBR_MAP;
2605
+ var winKey = Object.keys(winMap).find(function (k) { return k.toLowerCase() === tzId.toLowerCase(); });
2606
+ if (winKey)
2607
+ return winMap[winKey];
2608
+ }
2602
2609
  var map = this.constructor.TZ_ABBR_MAP;
2603
2610
  var mapped = map[tzId];
2604
2611
  if (!mapped) {
@@ -4905,6 +4912,41 @@
4905
4912
  'Etc/GMT+11': 'UTC-11',
4906
4913
  'Etc/GMT+12': 'BIT',
4907
4914
  };
4915
+ /**
4916
+ * Windows-style "(UTC±HH:MM) Place" -> short name (IST, BRT, etc.) so we show "IST" not "((UTC+05:30) India)".
4917
+ */
4918
+ ChatDrawerComponent.WINDOWS_TZ_ABBR_MAP = {
4919
+ '(UTC-03:00) Brasilia': 'BRT',
4920
+ '(UTC-03:00) Buenos Aires': 'ART',
4921
+ '(UTC+05:30) India': 'IST',
4922
+ '(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi': 'IST',
4923
+ '(UTC+00:00) Dublin, Edinburgh, London': 'GMT',
4924
+ '(UTC+00:00) Monrovia, Reykjavik': 'GMT',
4925
+ '(UTC+01:00) Amsterdam, Berlin, Rome, Stockholm': 'CET',
4926
+ '(UTC+01:00) Brussels, Copenhagen, Madrid, Paris': 'CET',
4927
+ '(UTC+02:00) Athens, Istanbul, Minsk': 'EET',
4928
+ '(UTC+02:00) Cairo': 'EET',
4929
+ '(UTC+02:00) Jerusalem': 'IST',
4930
+ '(UTC+03:00) Moscow, St. Petersburg': 'MSK',
4931
+ '(UTC+03:00) Nairobi': 'EAT',
4932
+ '(UTC+04:00) Dubai': 'GST',
4933
+ '(UTC+05:00) Islamabad, Karachi': 'PKT',
4934
+ '(UTC+05:45) Kathmandu': 'NPT',
4935
+ '(UTC+06:00) Dhaka': 'BST',
4936
+ '(UTC+06:30) Yangon (Rangoon)': 'MMT',
4937
+ '(UTC+07:00) Bangkok, Hanoi, Jakarta': 'ICT',
4938
+ '(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi': 'CST',
4939
+ '(UTC+08:00) Kuala Lumpur, Singapore': 'SGT',
4940
+ '(UTC+09:00) Osaka, Sapporo, Tokyo': 'JST',
4941
+ '(UTC+09:30) Adelaide': 'ACST',
4942
+ '(UTC+10:00) Brisbane': 'AEST',
4943
+ '(UTC+10:00) Canberra, Melbourne, Sydney': 'AEST',
4944
+ '(UTC+12:00) Auckland, Wellington': 'NZST',
4945
+ '(UTC-05:00) Eastern Time (US & Canada)': 'ET',
4946
+ '(UTC-06:00) Central Time (US & Canada)': 'CT',
4947
+ '(UTC-07:00) Mountain Time (US & Canada)': 'MT',
4948
+ '(UTC-08:00) Pacific Time (US & Canada)': 'PT',
4949
+ };
4908
4950
  ChatDrawerComponent.decorators = [
4909
4951
  { type: i0.Component, args: [{
4910
4952
  selector: 'hivegpt-chat-drawer-package',