@zohodesk/components 1.0.0-temp-160 → 1.0.0-temp-161

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.
@@ -154,8 +154,7 @@ export default class DateTime extends React.PureComponent {
154
154
  timeZone,
155
155
  isDateTimeField,
156
156
  dateFormat,
157
- is24Hour,
158
- customDateFormat
157
+ is24Hour
159
158
  } = this.props;
160
159
  let {
161
160
  year,
@@ -180,13 +179,10 @@ export default class DateTime extends React.PureComponent {
180
179
  selectedInMillis,
181
180
  selectedValue = '',
182
181
  formattedValue;
183
- let currentDate = new Date();
184
- let sec = currentDate.getSeconds();
185
- let milliSec = currentDate.getMilliseconds();
186
- if (isDateTimeField || customDateFormat) {
187
- selectedInMillis = datetime.tz.tzToUtc(Date.UTC(year, month, date, hours, mins, sec, milliSec), timeZone);
182
+ if (isDateTimeField) {
183
+ selectedInMillis = datetime.tz.tzToUtc(Date.UTC(year, month, date, hours, mins), timeZone);
188
184
  selectedValue = datetime.ISO(selectedInMillis);
189
- formattedValue = formatDate(new Date(year, month, date, hours, mins, sec, milliSec), customDateFormat == null ? is24Hour ? `${dateFormat} HH:mm:ss` : `${dateFormat} hh:mm:ss A` : `${customDateFormat}`);
185
+ formattedValue = formatDate(new Date(year, month, date, hours, mins), is24Hour ? `${dateFormat} HH:mm` : `${dateFormat} hh:mm A`);
190
186
  } else {
191
187
  selectedInMillis = Date.UTC(year, month, date);
192
188
  selectedValue = formatDate(new Date(year, month, date), 'YYYY-MM-DD');
@@ -19,8 +19,7 @@ export const DateTime_defaultProps = {
19
19
  isPadding: false,
20
20
  i18nKeys: {},
21
21
  is24Hour: false,
22
- isDefaultPosition: false,
23
- customDateFormat: null
22
+ isDefaultPosition: false
24
23
  };
25
24
  export const DateWidget_defaultProps = {
26
25
  borderColor: 'default',
@@ -12,8 +12,21 @@ export default class ResizeComponent extends React.Component {
12
12
  this.noSpaceForChildren = false;
13
13
  this.childrenCurrentList = [];
14
14
  this.widthCheck = debounce(this.widthCheck.bind(this), 10);
15
- // this.widthCheck = this.widthCheck.bind(this);
16
- this.onResize = this.onResize.bind(this);
15
+ const debounce = function (cb) {
16
+ let timer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
17
+ let timeoutId = null;
18
+ return () => {
19
+ if (timeoutId) {
20
+ clearTimeout(timeoutId);
21
+ }
22
+ timeoutId = setTimeout(() => {
23
+ cb();
24
+ }, timer);
25
+ };
26
+ };
27
+ this.widthCheck = debounce(this.widthCheck.bind(this), 500); // this.widthCheck = this.widthCheck.bind(this);
28
+
29
+ this.onResize = debounce(this.onResize.bind(this), 500);
17
30
  this.onResizeMutation = this.onResizeMutation.bind(this);
18
31
  this.tabsObserver = new ResizeObserver(this.onResize);
19
32
  this.tabObserver = new MutationObserver(this.onResizeMutation);
package/es/Tab/Tabs.js CHANGED
@@ -32,7 +32,19 @@ class Tabs extends React.Component {
32
32
  tabKeys: []
33
33
  };
34
34
  bind.apply(this, ['moreTabSelect', 'onResize', 'onTabResize', 'getHighlightRef', 'getTabsRef', 'getTabRef', 'getHighlightDim', 'onSizeChange', 'onScroll', 'togglePopup', 'setMaxDim']);
35
- this.tabsObserver = new ResizeObserver(this.onResize);
35
+ const debounce = function (cb) {
36
+ let timer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
37
+ let timeoutId = null;
38
+ return () => {
39
+ if (timeoutId) {
40
+ clearTimeout(timeoutId);
41
+ }
42
+ timeoutId = setTimeout(() => {
43
+ cb();
44
+ }, timer);
45
+ };
46
+ };
47
+ this.tabsObserver = new ResizeObserver(debounce(this.onResize));
36
48
  this.tabObserver = {};
37
49
  }
38
50
  onTabResize(size, target) {
@@ -215,15 +227,16 @@ class Tabs extends React.Component {
215
227
  isResponsive
216
228
  } = this.props;
217
229
  if (this.tabsEle && isResponsive) {
218
- if (!timer) {
219
- this.onSizeChange();
220
- } else {
221
- setTimeout(() => {
222
- this.onSizeChange();
223
- }, timer);
224
- }
230
+ // if (!timer) {
231
+ // this.onSizeChange();
232
+ // } else {
233
+ // setTimeout(() => {
234
+ this.onSizeChange();
235
+ // }, timer);
236
+ // }
225
237
  }
226
238
  }
239
+
227
240
  getTotalDimension() {
228
241
  let {
229
242
  align
@@ -1,4 +1,3 @@
1
- import { offsetMap } from './GMTZones.js';
2
1
  let dateFormat = {
3
2
  dayNames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
4
3
  monthNames: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
@@ -11,15 +10,8 @@ export function pad(n) {
11
10
  n = `${n}`;
12
11
  return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
13
12
  }
14
- export function getTimeOffset() {
15
- const GMT = new Date();
16
- const matchingOffset = Object.keys(offsetMap).find(offset => GMT.getTimezoneOffset() === Number(offset));
17
- return matchingOffset ? offsetMap[matchingOffset].toString().split(' ') : ['', ''];
18
- }
19
13
  export function formatDate(dateMill, mask) {
20
14
  let date = new Date(dateMill);
21
- let O = getTimeOffset()[0];
22
- let Z = getTimeOffset()[1];
23
15
  let d = date.getDate();
24
16
  let D = date.getDay();
25
17
  let m = date.getMonth();
@@ -30,7 +22,6 @@ export function formatDate(dateMill, mask) {
30
22
  let L = date.getMilliseconds();
31
23
  let flags = {
32
24
  d: d,
33
- O: O,
34
25
  dd: pad(d, 2),
35
26
  ddd: dateFormat.dayNames[D],
36
27
  dddd: dateFormat.dayNames[D + 7],
@@ -58,13 +49,9 @@ export function formatDate(dateMill, mask) {
58
49
  L: pad(Math.round(L / 10)),
59
50
  t: H < 12 ? dateFormat.timeNames[0] : dateFormat.timeNames[1],
60
51
  A: H < 12 ? dateFormat.timeNames[6] : dateFormat.timeNames[7],
61
- a: H < 12 ? dateFormat.timeNames[6] : dateFormat.timeNames[7],
62
- T: H < 12 ? dateFormat.timeNames[4] : dateFormat.timeNames[5],
63
- Z: Z,
64
- VV: Z,
65
- SSS: pad(L, 3)
52
+ T: H < 12 ? dateFormat.timeNames[4] : dateFormat.timeNames[5]
66
53
  };
67
- let token = /D{1,4}|d{1,4}|M{1,4}|YYYY|yyyy|YY|O|Z|VV|SSS|yy?|([HhmsAa])\1?|[LloSZWN]|\[[^\]]*\]|'[^']*'/g;
54
+ let token = /D{1,4}|d{1,4}|M{1,4}|YYYY|yyyy|YY|yy?|([HhmsA])\1?|[LloSZWN]|\[[^\]]*\]|'[^']*'/g;
68
55
  let dat = mask.replace(token, match => {
69
56
  if (match in flags) {
70
57
  return flags[match];
@@ -194,8 +194,7 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
194
194
  timeZone = _this$props2.timeZone,
195
195
  isDateTimeField = _this$props2.isDateTimeField,
196
196
  dateFormat = _this$props2.dateFormat,
197
- is24Hour = _this$props2.is24Hour,
198
- customDateFormat = _this$props2.customDateFormat;
197
+ is24Hour = _this$props2.is24Hour;
199
198
  var year = selectedInfo.year,
200
199
  month = selectedInfo.month,
201
200
  date = selectedInfo.date,
@@ -217,13 +216,10 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
217
216
  selectedInMillis,
218
217
  selectedValue = '',
219
218
  formattedValue;
220
- var currentDate = new Date();
221
- var sec = currentDate.getSeconds();
222
- var milliSec = currentDate.getMilliseconds();
223
- if (isDateTimeField || customDateFormat) {
224
- selectedInMillis = _datetimejs["default"].tz.tzToUtc(Date.UTC(year, month, date, hours, mins, sec, milliSec), timeZone);
219
+ if (isDateTimeField) {
220
+ selectedInMillis = _datetimejs["default"].tz.tzToUtc(Date.UTC(year, month, date, hours, mins), timeZone);
225
221
  selectedValue = _datetimejs["default"].ISO(selectedInMillis);
226
- formattedValue = (0, _common.formatDate)(new Date(year, month, date, hours, mins, sec, milliSec), customDateFormat == null ? is24Hour ? "".concat(dateFormat, " HH:mm:ss") : "".concat(dateFormat, " hh:mm:ss A") : "".concat(customDateFormat));
222
+ formattedValue = (0, _common.formatDate)(new Date(year, month, date, hours, mins), is24Hour ? "".concat(dateFormat, " HH:mm") : "".concat(dateFormat, " hh:mm A"));
227
223
  } else {
228
224
  selectedInMillis = Date.UTC(year, month, date);
229
225
  selectedValue = (0, _common.formatDate)(new Date(year, month, date), 'YYYY-MM-DD');
@@ -27,8 +27,7 @@ var DateTime_defaultProps = {
27
27
  isPadding: false,
28
28
  i18nKeys: {},
29
29
  is24Hour: false,
30
- isDefaultPosition: false,
31
- customDateFormat: null
30
+ isDefaultPosition: false
32
31
  };
33
32
  exports.DateTime_defaultProps = DateTime_defaultProps;
34
33
  var DateWidget_defaultProps = {
@@ -34,9 +34,22 @@ var ResizeComponent = /*#__PURE__*/function (_React$Component) {
34
34
  _this = _super.call(this, props);
35
35
  _this.noSpaceForChildren = false;
36
36
  _this.childrenCurrentList = [];
37
- _this.widthCheck = (0, _Common.debounce)(_this.widthCheck.bind(_assertThisInitialized(_this)), 10);
38
- // this.widthCheck = this.widthCheck.bind(this);
39
- _this.onResize = _this.onResize.bind(_assertThisInitialized(_this));
37
+ _this.widthCheck = debounce(_this.widthCheck.bind(_assertThisInitialized(_this)), 10);
38
+ var debounce = function debounce(cb) {
39
+ var timer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
40
+ var timeoutId = null;
41
+ return function () {
42
+ if (timeoutId) {
43
+ clearTimeout(timeoutId);
44
+ }
45
+ timeoutId = setTimeout(function () {
46
+ cb();
47
+ }, timer);
48
+ };
49
+ };
50
+ _this.widthCheck = debounce(_this.widthCheck.bind(_assertThisInitialized(_this)), 500); // this.widthCheck = this.widthCheck.bind(this);
51
+
52
+ _this.onResize = debounce(_this.onResize.bind(_assertThisInitialized(_this)), 500);
40
53
  _this.onResizeMutation = _this.onResizeMutation.bind(_assertThisInitialized(_this));
41
54
  _this.tabsObserver = new _ResizeObserver["default"](_this.onResize);
42
55
  _this.tabObserver = new MutationObserver(_this.onResizeMutation);
package/lib/Tab/Tabs.js CHANGED
@@ -51,7 +51,19 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
51
51
  tabKeys: []
52
52
  };
53
53
  _Common.bind.apply(_assertThisInitialized(_this), ['moreTabSelect', 'onResize', 'onTabResize', 'getHighlightRef', 'getTabsRef', 'getTabRef', 'getHighlightDim', 'onSizeChange', 'onScroll', 'togglePopup', 'setMaxDim']);
54
- _this.tabsObserver = new _ResizeObserver["default"](_this.onResize);
54
+ var debounce = function debounce(cb) {
55
+ var timer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
56
+ var timeoutId = null;
57
+ return function () {
58
+ if (timeoutId) {
59
+ clearTimeout(timeoutId);
60
+ }
61
+ timeoutId = setTimeout(function () {
62
+ cb();
63
+ }, timer);
64
+ };
65
+ };
66
+ _this.tabsObserver = new _ResizeObserver["default"](debounce(_this.onResize));
55
67
  _this.tabObserver = {};
56
68
  return _this;
57
69
  }
@@ -243,16 +255,15 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
243
255
  }, {
244
256
  key: "onResize",
245
257
  value: function onResize(timer) {
246
- var _this6 = this;
247
258
  var isResponsive = this.props.isResponsive;
248
259
  if (this.tabsEle && isResponsive) {
249
- if (!timer) {
250
- this.onSizeChange();
251
- } else {
252
- setTimeout(function () {
253
- _this6.onSizeChange();
254
- }, timer);
255
- }
260
+ // if (!timer) {
261
+ // this.onSizeChange();
262
+ // } else {
263
+ // setTimeout(() => {
264
+ this.onSizeChange();
265
+ // }, timer);
266
+ // }
256
267
  }
257
268
  }
258
269
  }, {
@@ -265,14 +276,14 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
265
276
  }, {
266
277
  key: "getTabDimensions",
267
278
  value: function getTabDimensions() {
268
- var _this7 = this;
279
+ var _this6 = this;
269
280
  var _this$props4 = this.props,
270
281
  children = _this$props4.children,
271
282
  align = _this$props4.align,
272
283
  childType = _this$props4.childType;
273
284
  var tabDimensions = {};
274
285
  _react["default"].Children.forEach(children, function (child) {
275
- return /*#__PURE__*/_react["default"].isValidElement(child) && child.type === childType && _this7[child.props.id] && Object.assign(tabDimensions, _defineProperty({}, child.props.id, _this7[child.props.id] && (0, _Common.getTotalDimension)(_this7[child.props.id], align)));
286
+ return /*#__PURE__*/_react["default"].isValidElement(child) && child.type === childType && _this6[child.props.id] && Object.assign(tabDimensions, _defineProperty({}, child.props.id, _this6[child.props.id] && (0, _Common.getTotalDimension)(_this6[child.props.id], align)));
276
287
  });
277
288
  return tabDimensions;
278
289
  }
@@ -406,7 +417,7 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
406
417
  }, {
407
418
  key: "renderTabs",
408
419
  value: function renderTabs(mainTabs, moreTabs, isVirtual) {
409
- var _this8 = this;
420
+ var _this7 = this;
410
421
  var _this$props8 = this.props,
411
422
  selectedTab = _this$props8.selectedTab,
412
423
  moreButtonClass = _this$props8.moreButtonClass,
@@ -454,9 +465,9 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
454
465
  }
455
466
  return /*#__PURE__*/_react["default"].isValidElement(child) && /*#__PURE__*/_react["default"].createElement(MainTab, _extends({}, child.props, {
456
467
  key: child.props.id,
457
- getTabRef: _this8.getTabRef,
468
+ getTabRef: _this7.getTabRef,
458
469
  onSelect: onSelect,
459
- recalculateDimension: _this8.recalculateDimension,
470
+ recalculateDimension: _this7.recalculateDimension,
460
471
  isActive: child.props.id === selectedTab,
461
472
  type: type,
462
473
  isAnimate: isAnimate,
@@ -500,13 +511,13 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
500
511
  }, DropBoxProps, {
501
512
  isResponsivePadding: true,
502
513
  needFocusScope: true,
503
- onClose: _this8.togglePopup
504
- }), getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(_this8.props), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
514
+ onClose: _this7.togglePopup
515
+ }), getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(_this7.props), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
505
516
  flexible: true,
506
517
  shrink: true,
507
518
  scroll: "vertical",
508
519
  className: "".concat(tabletMode ? '' : _TabsModule["default"].menuBox, " ").concat(moreBoxClass),
509
- onScroll: _this8.onScroll
520
+ onScroll: _this7.onScroll
510
521
  }, _react["default"].Children.map(moreTabs, function (child) {
511
522
  if (!child) {
512
523
  return null;
@@ -523,7 +534,7 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
523
534
  return /*#__PURE__*/_react["default"].isValidElement(child) && /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
524
535
  key: id,
525
536
  value: value,
526
- onClick: _this8.moreTabSelect,
537
+ onClick: _this7.moreTabSelect,
527
538
  id: id,
528
539
  title: title || text,
529
540
  isLink: isLink,
@@ -8,7 +8,6 @@ exports.getDiffObj = getDiffObj;
8
8
  exports.getI18NInfo = getI18NInfo;
9
9
  exports.getI18NValue = getI18NValue;
10
10
  exports.getMonthEnd = getMonthEnd;
11
- exports.getTimeOffset = getTimeOffset;
12
11
  exports.getValues = getValues;
13
12
  exports.isToday = isToday;
14
13
  exports.isTomorrow = isTomorrow;
@@ -18,7 +17,6 @@ exports.isYesterday = isYesterday;
18
17
  exports.pad = pad;
19
18
  exports.replaceI18NValuesWithRegex = replaceI18NValuesWithRegex;
20
19
  exports.unescapeUnicode = unescapeUnicode;
21
- var _GMTZones = require("./GMTZones.js");
22
20
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
23
21
  var dateFormat = {
24
22
  dayNames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
@@ -32,17 +30,8 @@ function pad(n) {
32
30
  n = "".concat(n);
33
31
  return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
34
32
  }
35
- function getTimeOffset() {
36
- var GMT = new Date();
37
- var matchingOffset = Object.keys(_GMTZones.offsetMap).find(function (offset) {
38
- return GMT.getTimezoneOffset() === Number(offset);
39
- });
40
- return matchingOffset ? _GMTZones.offsetMap[matchingOffset].toString().split(' ') : ['', ''];
41
- }
42
33
  function formatDate(dateMill, mask) {
43
34
  var date = new Date(dateMill);
44
- var O = getTimeOffset()[0];
45
- var Z = getTimeOffset()[1];
46
35
  var d = date.getDate();
47
36
  var D = date.getDay();
48
37
  var m = date.getMonth();
@@ -53,7 +42,6 @@ function formatDate(dateMill, mask) {
53
42
  var L = date.getMilliseconds();
54
43
  var flags = {
55
44
  d: d,
56
- O: O,
57
45
  dd: pad(d, 2),
58
46
  ddd: dateFormat.dayNames[D],
59
47
  dddd: dateFormat.dayNames[D + 7],
@@ -81,13 +69,9 @@ function formatDate(dateMill, mask) {
81
69
  L: pad(Math.round(L / 10)),
82
70
  t: H < 12 ? dateFormat.timeNames[0] : dateFormat.timeNames[1],
83
71
  A: H < 12 ? dateFormat.timeNames[6] : dateFormat.timeNames[7],
84
- a: H < 12 ? dateFormat.timeNames[6] : dateFormat.timeNames[7],
85
- T: H < 12 ? dateFormat.timeNames[4] : dateFormat.timeNames[5],
86
- Z: Z,
87
- VV: Z,
88
- SSS: pad(L, 3)
72
+ T: H < 12 ? dateFormat.timeNames[4] : dateFormat.timeNames[5]
89
73
  };
90
- var token = /D{1,4}|d{1,4}|M{1,4}|YYYY|yyyy|YY|O|Z|VV|SSS|yy?|([HhmsAa])\1?|[LloSZWN]|\[[^\]]*\]|'[^']*'/g;
74
+ var token = /D{1,4}|d{1,4}|M{1,4}|YYYY|yyyy|YY|yy?|([HhmsA])\1?|[LloSZWN]|\[[^\]]*\]|'[^']*'/g;
91
75
  var dat = mask.replace(token, function (match) {
92
76
  if (match in flags) {
93
77
  return flags[match];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.0.0-temp-160",
3
+ "version": "1.0.0-temp-161",
4
4
  "main": "es/index.js",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -1,48 +0,0 @@
1
- export const offsetMap = {
2
- 0: 'GMT+00:00 Africa/Abidjan',
3
- 44: 'GMT+00:00 Africa/Monrovia',
4
- 60: 'GMT+01:00 Africa/Bangui',
5
- 120: 'GMT+02:00 Africa/Blantyre',
6
- 180: 'GMT+03:00 Africa/Addis_Ababa',
7
- 210: 'GMT+04:30 Asia/Tehran',
8
- 240: 'GMT+03:00 Asia/Bahrain',
9
- 270: 'GMT+04:30 Asia/Kabul',
10
- 300: 'GMT+05:00 Asia/Aqtau',
11
- '-330': 'GMT+05:30 Asia/Kolkata',
12
- 360: 'GMT+06:00 Asia/Dacca',
13
- 390: 'GMT+06:30 Indian/Cocos',
14
- 420: 'GMT+07:00 Asia/Bangkok',
15
- 450: 'GMT+08:00 Asia/Singapore',
16
- 480: 'GMT+08:00 Asia/Hong_Kong',
17
- 510: 'GMT+08:00 Asia/Harbin',
18
- 525: 'GMT+08:45 Australia/Eucla',
19
- 540: 'GMT+09:00 Asia/Chita',
20
- 570: 'GMT+09:30 Australia/Adelaide',
21
- 600: 'GMT+10:00 Antarctica/DumontDUrville',
22
- 660: 'GMT+11:00 Asia/Magadan',
23
- 690: 'GMT+11:00 Pacific/Norfolk',
24
- 720: 'GMT+12:00 Asia/Kamchatka',
25
- 765: 'GMT+12:45 Pacific/Chatham',
26
- 780: 'GMT+12:00 Asia/Anadyr',
27
- 840: 'GMT+14:00 Etc/GMT-14',
28
- '-60': 'GMT-01:00 Etc/GMT+1',
29
- '-660': 'GMT-11:00 US/Samoa',
30
- '-600': 'GMT-04:00 America/Anguilla',
31
- '-240': 'GMT-04:00 America/Antigua',
32
- '-180': 'GMT-03:00 America/Araguaina',
33
- '-300': 'GMT-05:00 America/Atikokan',
34
- '-480': 'GMT-05:00 America/Bahia_Banderas',
35
- '-360': 'GMT-06:00 America/Belize',
36
- '-420': 'GMT-06:00 America/Boise',
37
- '-540': 'GMT-07:00 America/Dawson',
38
- '-135': 'GMT-04:00 America/Guyana',
39
- '-120': 'GMT-02:00 Etc/GMT+2',
40
- '-150': 'GMT-03:00 America/Paramaribo',
41
- '-210': 'GMT-04:00 America/Santo_Domingo',
42
- '-720': 'GMT+12:00 Pacific/Kwajalein',
43
- '-560': 'GMT+14:00 Pacific/Kiritimati',
44
- '-510': 'GMT-09:30 Pacific/Marquesas',
45
- '-630': 'GMT-11:00 Pacific/Niue',
46
- '-450': 'GMT-08:00 Pacific/Pitcairn',
47
- '-570': 'GMT-10:00 Pacific/Rarotonga'
48
- };
@@ -1,55 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.offsetMap = void 0;
7
- var offsetMap = {
8
- 0: 'GMT+00:00 Africa/Abidjan',
9
- 44: 'GMT+00:00 Africa/Monrovia',
10
- 60: 'GMT+01:00 Africa/Bangui',
11
- 120: 'GMT+02:00 Africa/Blantyre',
12
- 180: 'GMT+03:00 Africa/Addis_Ababa',
13
- 210: 'GMT+04:30 Asia/Tehran',
14
- 240: 'GMT+03:00 Asia/Bahrain',
15
- 270: 'GMT+04:30 Asia/Kabul',
16
- 300: 'GMT+05:00 Asia/Aqtau',
17
- '-330': 'GMT+05:30 Asia/Kolkata',
18
- 360: 'GMT+06:00 Asia/Dacca',
19
- 390: 'GMT+06:30 Indian/Cocos',
20
- 420: 'GMT+07:00 Asia/Bangkok',
21
- 450: 'GMT+08:00 Asia/Singapore',
22
- 480: 'GMT+08:00 Asia/Hong_Kong',
23
- 510: 'GMT+08:00 Asia/Harbin',
24
- 525: 'GMT+08:45 Australia/Eucla',
25
- 540: 'GMT+09:00 Asia/Chita',
26
- 570: 'GMT+09:30 Australia/Adelaide',
27
- 600: 'GMT+10:00 Antarctica/DumontDUrville',
28
- 660: 'GMT+11:00 Asia/Magadan',
29
- 690: 'GMT+11:00 Pacific/Norfolk',
30
- 720: 'GMT+12:00 Asia/Kamchatka',
31
- 765: 'GMT+12:45 Pacific/Chatham',
32
- 780: 'GMT+12:00 Asia/Anadyr',
33
- 840: 'GMT+14:00 Etc/GMT-14',
34
- '-60': 'GMT-01:00 Etc/GMT+1',
35
- '-660': 'GMT-11:00 US/Samoa',
36
- '-600': 'GMT-04:00 America/Anguilla',
37
- '-240': 'GMT-04:00 America/Antigua',
38
- '-180': 'GMT-03:00 America/Araguaina',
39
- '-300': 'GMT-05:00 America/Atikokan',
40
- '-480': 'GMT-05:00 America/Bahia_Banderas',
41
- '-360': 'GMT-06:00 America/Belize',
42
- '-420': 'GMT-06:00 America/Boise',
43
- '-540': 'GMT-07:00 America/Dawson',
44
- '-135': 'GMT-04:00 America/Guyana',
45
- '-120': 'GMT-02:00 Etc/GMT+2',
46
- '-150': 'GMT-03:00 America/Paramaribo',
47
- '-210': 'GMT-04:00 America/Santo_Domingo',
48
- '-720': 'GMT+12:00 Pacific/Kwajalein',
49
- '-560': 'GMT+14:00 Pacific/Kiritimati',
50
- '-510': 'GMT-09:30 Pacific/Marquesas',
51
- '-630': 'GMT-11:00 Pacific/Niue',
52
- '-450': 'GMT-08:00 Pacific/Pitcairn',
53
- '-570': 'GMT-10:00 Pacific/Rarotonga'
54
- };
55
- exports.offsetMap = offsetMap;