carbon-addons-iot-react 4.4.0 → 4.5.1

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.
Files changed (45) hide show
  1. package/README.MD +6 -2
  2. package/es/components/BarChartCard/BarChartCard.js +16 -4
  3. package/es/components/BarChartCard/barChartUtils.js +8 -7
  4. package/es/components/Card/Card.js +8 -5
  5. package/es/components/Card/CardToolbar.js +3 -1
  6. package/es/components/CardEditor/CardEditForm/CardEditFormItems/DataSeriesFormItemModal.js +1 -1
  7. package/es/components/CardEditor/CardEditForm/CommonCardEditFormFields.js +1 -1
  8. package/es/components/DateTimePicker/DateTimePicker.js +29 -10
  9. package/es/components/DateTimePicker/DateTimePickerV2WithTimeSpinner.js +2 -3
  10. package/es/components/DateTimePicker/DateTimePickerV2WithoutTimeSpinner.js +30 -10
  11. package/es/components/DateTimePicker/dateTimePickerUtils.js +34 -29
  12. package/es/components/ImageCard/ImageCard.js +15 -2
  13. package/es/components/ListCard/ListCard.js +7 -2
  14. package/es/components/TableCard/TableCard.js +15 -4
  15. package/es/components/TableCard/tableCardUtils.js +2 -2
  16. package/es/components/TimeSeriesCard/TimeSeriesCard.js +15 -4
  17. package/es/components/TimeSeriesCard/timeSeriesUtils.js +2 -2
  18. package/es/components/ValueCard/Attribute.js +2 -1
  19. package/es/components/ValueCard/ValueCard.js +6 -1
  20. package/es/constants/CardPropTypes.js +2 -0
  21. package/es/utils/cardUtilityFunctions.js +1 -1
  22. package/es/utils/dayjs.js +21 -1
  23. package/lib/components/BarChartCard/BarChartCard.js +16 -4
  24. package/lib/components/BarChartCard/barChartUtils.js +8 -7
  25. package/lib/components/Card/Card.js +7 -4
  26. package/lib/components/Card/CardToolbar.js +3 -1
  27. package/lib/components/CardEditor/CardEditForm/CardEditFormItems/DataSeriesFormItemModal.js +1 -1
  28. package/lib/components/CardEditor/CardEditForm/CommonCardEditFormFields.js +1 -1
  29. package/lib/components/DateTimePicker/DateTimePicker.js +28 -9
  30. package/lib/components/DateTimePicker/DateTimePickerV2WithTimeSpinner.js +2 -3
  31. package/lib/components/DateTimePicker/DateTimePickerV2WithoutTimeSpinner.js +29 -9
  32. package/lib/components/DateTimePicker/dateTimePickerUtils.js +34 -29
  33. package/lib/components/ImageCard/ImageCard.js +15 -2
  34. package/lib/components/ListCard/ListCard.js +7 -2
  35. package/lib/components/TableCard/TableCard.js +15 -4
  36. package/lib/components/TableCard/tableCardUtils.js +2 -2
  37. package/lib/components/TimeSeriesCard/TimeSeriesCard.js +15 -4
  38. package/lib/components/TimeSeriesCard/timeSeriesUtils.js +2 -2
  39. package/lib/components/ValueCard/Attribute.js +2 -1
  40. package/lib/components/ValueCard/ValueCard.js +6 -1
  41. package/lib/constants/CardPropTypes.js +2 -0
  42. package/lib/utils/cardUtilityFunctions.js +1 -1
  43. package/lib/utils/dayjs.js +22 -0
  44. package/package.json +1 -1
  45. package/umd/carbon-addons-iot-react.js +238 -114
@@ -13648,6 +13648,33 @@
13648
13648
  var svgAttributes = ['accentHeight', 'accumulate', 'additive', 'alignmentBaseline', 'allowReorder', 'alphabetic', 'amplitude', 'arabicForm', 'ascent', 'attributeName', 'attributeType', 'autoReverse', 'azimuth', 'baseFrequency', 'baseProfile', 'baselineShift', 'bbox', 'begin', 'bias', 'by', 'calcMode', 'capHeight', 'clip', 'clipPath', 'clipRule', 'clipPathUnits', 'colorInterpolation', 'colorInterpolationFilters', 'colorProfile', 'colorRendering', 'contentScriptType', 'contentStyleType', 'cursor', 'cx', 'cy', 'd', 'decelerate', 'descent', 'diffuseConstant', 'direction', 'display', 'divisor', 'dominantBaseline', 'dur', 'dx', 'dy', 'edgeMode', 'elevation', 'enableBackground', 'end', 'exponent', 'externalResourcesRequired', 'fill', 'fillOpacity', 'fillRule', 'filter', 'filterRes', 'filterUnits', 'floodColor', 'floodOpacity', 'focusable', 'fontFamily', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontWeight', 'format', 'from', 'fx', 'fy', 'g1', 'g2', 'glyphName', 'glyphOrientationHorizontal', 'glyphOrientationVertical', 'glyphRef', 'gradientTransform', 'gradientUnits', 'hanging', 'horizAdvX', 'horizOriginX', 'ideographic', 'imageRendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kernelMatrix', 'kernelUnitLength', 'kerning', 'keyPoints', 'keySplines', 'keyTimes', 'lengthAdjust', 'letterSpacing', 'lightingColor', 'limitingConeAngle', 'local', 'markerEnd', 'markerMid', 'markerStart', 'markerHeight', 'markerUnits', 'markerWidth', 'mask', 'maskContentUnits', 'maskUnits', 'mathematical', 'mode', 'numOctaves', 'offset', 'opacity', 'operator', 'order', 'orient', 'orientation', 'origin', 'overflow', 'overlinePosition', 'overlineThickness', 'paintOrder', 'panose1', 'pathLength', 'patternContentUnits', 'patternTransform', 'patternUnits', 'pointerEvents', 'points', 'pointsAtX', 'pointsAtY', 'pointsAtZ', 'preserveAlpha', 'preserveAspectRatio', 'primitiveUnits', 'r', 'radius', 'refX', 'refY', 'renderingIntent', 'repeatCount', 'repeatDur', 'requiredExtensions', 'requiredFeatures', 'restart', 'result', 'rotate', 'rx', 'ry', 'scale', 'seed', 'shapeRendering', 'slope', 'spacing', 'specularConstant', 'specularExponent', 'speed', 'spreadMethod', 'startOffset', 'stdDeviation', 'stemh', 'stemv', 'stitchTiles', 'stopColor', 'stopOpacity', 'strikethroughPosition', 'strikethroughThickness', 'string', 'stroke', 'strokeDasharray', 'strokeDashoffset', 'strokeLinecap', 'strokeLinejoin', 'strokeMiterlimit', 'strokeOpacity', 'strokeWidth', 'surfaceScale', 'systemLanguage', 'tableValues', 'targetX', 'targetY', 'textAnchor', 'textDecoration', 'textRendering', 'textLength', 'to', 'transform', 'u1', 'u2', 'underlinePosition', 'underlineThickness', 'unicode', 'unicodeBidi', 'unicodeRange', 'unitsPerEm', 'vAlphabetic', 'vHanging', 'vIdeographic', 'vMathematical', 'values', 'vectorEffect', 'version', 'vertAdvY', 'vertOriginX', 'vertOriginY', 'viewBox', 'viewTarget', 'visibility', 'widths', 'wordSpacing', 'writingMode', 'x', 'xHeight', 'x1', 'x2', 'xChannelSelector', 'xlinkActuate', 'xlinkArcrole', 'xlinkHref', 'xlinkRole', 'xlinkShow', 'xlinkTitle', 'xlinkType', 'xmlBase', 'xmlns', 'xmlnsXlink', 'xmlLang', 'xmlSpace', 'y', 'y1', 'y2', 'yChannelSelector', 'z', 'zoomAndPan'];
13649
13649
  var eventHandlers = ['onCopy', 'onCopyCapture', 'onCut', 'onCutCapture', 'onPaste', 'onPasteCapture', 'onCompositionEnd', 'onCompositionEndCapture', 'onCompositionStart', 'onCompositionStartCapture', 'onCompositionUpdate', 'onCompositionUpdateCapture', 'onKeyDown', 'onKeyDownCapture', 'onKeyPress', 'onKeyPressCapture', 'onKeyUp', 'onKeyUpCapture', 'onFocus', 'onFocusCapture', 'onBlur', 'onInvalid', 'onBlurCapture', 'onChange', 'onChangeCapture', 'onInput', 'onInputCapture', 'onSubmit', 'onSubmitCapture', 'onReset', 'onResetCapture', 'onClick', 'onClickCapture', 'onContextMenu', 'onContextMenuCapture', 'onDoubleClick', 'onDoubleClickCapture', 'onDrag', 'onDragCapture', 'onDragEnd', 'onDragEndCapture', 'onDragEnter', 'onDragEnterCapture', 'onDragExit', 'onDragExitCapture', 'onDragLeave', 'onDragLeaveCapture', 'onDragOver', 'onDragOverCapture', 'onDragStart', 'onDragStartCapture', 'onDrop', 'onDropCapture', 'onMouseDown', 'onMouseDownCapture', 'onMouseEnter', 'onMouseEnterCapture', 'onMouseLeave', 'onMouseLeaveCapture', 'onMouseMove', 'onMouseMoveCapture', 'onMouseOut', 'onMouseOutCapture', 'onMouseOver', 'onMouseOverCapture', 'onMouseUp', 'onMouseUpCapture', 'onSelect', 'onSelectCapture', 'onTouchCancel', 'onTouchCancelCapture', 'onTouchEnd', 'onTouchEndCapture', 'onTouchMove', 'onTouchMoveCapture', 'onTouchStart', 'onTouchStartCapture', 'onScroll', 'onScrollCapture', 'onWheel', 'onWheelCapture', 'onAbort', 'onAbortCapture', 'onCanPlay', 'onCanPlayCapture', 'onCanPlayThrough', 'onCanPlayThroughCapture', 'onDurationChange', 'onDurationChangeCapture', 'onEmptied', 'onEmptiedCapture', 'onEncrypted', 'onEncryptedCapture', 'onEnded', 'onEndedCapture', 'onError', 'onErrorCapture', 'onLoadedData', 'onLoadedDataCapture', 'onLoadedMetadata', 'onLoadedMetadataCapture', 'onLoadStart', 'onLoadStartCapture', 'onPause', 'onPauseCapture', 'onPlay', 'onPlayCapture', 'onPlaying', 'onPlayingCapture', 'onProgress', 'onProgressCapture', 'onRateChange', 'onRateChangeCapture', 'onSeeked', 'onSeekedCapture', 'onSeeking', 'onSeekingCapture', 'onStalled', 'onStalledCapture', 'onSuspend', 'onSuspendCapture', 'onTimeUpdate', 'onTimeUpdateCapture', 'onVolumeChange', 'onVolumeChangeCapture', 'onWaiting', 'onWaitingCapture', 'onLoad', 'onLoadCapture', 'onAnimationStart', 'onAnimationStartCapture', 'onAnimationEnd', 'onAnimationEndCapture', 'onAnimationIteration', 'onAnimationIterationCapture', 'onTransitionEnd', 'onTransitionEndCapture', 'onPointerDown', 'onPointerMove', 'onPointerUp', 'onPointerCancel', 'onGotPointerCapture', 'onLostPointerCapture', 'onPointerEnter', 'onPointerLeave', 'onPointerOver', 'onPointerOut'];
13650
13650
 
13651
+ var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
13652
+
13653
+
13654
+
13655
+ var non = '\u200B\u0085\u180E';
13656
+
13657
+ // check that a method works with the correct list
13658
+ // of whitespaces and has a correct name
13659
+ var stringTrimForced = function (METHOD_NAME) {
13660
+ return fails(function () {
13661
+ return !!whitespaces[METHOD_NAME]()
13662
+ || non[METHOD_NAME]() !== non
13663
+ || (PROPER_FUNCTION_NAME$1 && whitespaces[METHOD_NAME].name !== METHOD_NAME);
13664
+ });
13665
+ };
13666
+
13667
+ var $trim = stringTrim$1.trim;
13668
+
13669
+
13670
+ // `String.prototype.trim` method
13671
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
13672
+ _export({ target: 'String', proto: true, forced: stringTrimForced('trim') }, {
13673
+ trim: function trim() {
13674
+ return $trim(this);
13675
+ }
13676
+ });
13677
+
13651
13678
  var dayjs_min = createCommonjsModule(function (module, exports) {
13652
13679
  !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
13653
13680
  });
@@ -13657,12 +13684,14 @@
13657
13684
  var pluralGetSet = require('dayjs/plugin/pluralGetSet');
13658
13685
  var timezone = require('dayjs/plugin/timezone');
13659
13686
  var localeData = require('dayjs/plugin/localeData');
13687
+ var customParseFormat$1 = require('dayjs/plugin/customParseFormat');
13660
13688
  var dayjs = dayjs_min;
13661
13689
  dayjs.extend(localizedFormat); // gives the 'L' formatting ability for .format
13662
13690
  dayjs.extend(utc); // gives .utc() and .local()
13663
13691
  dayjs.extend(pluralGetSet); // gives .hour .minute get/set ability
13664
13692
  dayjs.extend(timezone); // timezone support
13665
13693
  dayjs.extend(localeData); // gives local specific data
13694
+ dayjs.extend(customParseFormat$1);
13666
13695
 
13667
13696
  /* eslint-disable global-require */
13668
13697
  var locales = {
@@ -14092,6 +14121,22 @@
14092
14121
  SECONDS: 'L HH:mm:ss',
14093
14122
  RANGE: 'L HH:mm'
14094
14123
  };
14124
+ var formats = [
14125
+ // ISO Variations (Most common for APIs)
14126
+ 'YYYY-MM-DDTHH:mm:ssZ', 'YYYY-MM-DDTHH:mm:ss.SSSZ', 'YYYY-MM-DDTHH:mm:ss', 'YYYY-MM-DD HH:mm:ss', 'YYYY-MM-DD HH:mm',
14127
+ // US / Common UI Variations
14128
+ 'MM/DD/YYYY HH:mm:ss', 'MM/DD/YYYY HH:mm', 'MM-DD-YYYY HH:mm:ss', 'MM-DD-YYYY HH:mm',
14129
+ // 12-Hour Variations (If users can type AM/PM)
14130
+ 'MM/DD/YYYY hh:mm A', 'YYYY-MM-DD hh:mm A',
14131
+ // Date Only Fallbacks
14132
+ 'YYYY-MM-DD', 'MM/DD/YYYY', 'MM-DD-YYYY', 'L' // Localized format (uses the loaded Day.js locale)
14133
+ ];
14134
+ var detectDateTimeFormat = function detectDateTimeFormat(dateTimeString) {
14135
+ if (!(dateTimeString !== null && dateTimeString !== void 0 && dateTimeString.trim())) return null;
14136
+ return formats.find(function (format) {
14137
+ return dayjs(dateTimeString, format, true).isValid();
14138
+ });
14139
+ };
14095
14140
  var dayjs$1 = dayjs;
14096
14141
 
14097
14142
  function ownKeys$2a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -230144,33 +230189,6 @@ ${formatRule(Codicon.menuSubmenu)}
230144
230189
  }
230145
230190
  });
230146
230191
 
230147
- var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
230148
-
230149
-
230150
-
230151
- var non = '\u200B\u0085\u180E';
230152
-
230153
- // check that a method works with the correct list
230154
- // of whitespaces and has a correct name
230155
- var stringTrimForced = function (METHOD_NAME) {
230156
- return fails(function () {
230157
- return !!whitespaces[METHOD_NAME]()
230158
- || non[METHOD_NAME]() !== non
230159
- || (PROPER_FUNCTION_NAME$1 && whitespaces[METHOD_NAME].name !== METHOD_NAME);
230160
- });
230161
- };
230162
-
230163
- var $trim = stringTrim$1.trim;
230164
-
230165
-
230166
- // `String.prototype.trim` method
230167
- // https://tc39.es/ecma262/#sec-string.prototype.trim
230168
- _export({ target: 'String', proto: true, forced: stringTrimForced('trim') }, {
230169
- trim: function trim() {
230170
- return $trim(this);
230171
- }
230172
- });
230173
-
230174
230192
  var keyboardKeys = {
230175
230193
  BACKSPACE: 'Backspace',
230176
230194
  CONTROL: 'Control',
@@ -278591,7 +278609,7 @@ React keys must be passed directly to JSX without using spread:
278591
278609
  * @param {Object} value - the absolute time selection
278592
278610
  * @returns {Object} a human readable value and a furtherly augmented value object
278593
278611
  */
278594
- var parseValue = function parseValue(timeRange, dateTimeMask, toLabel, hasTimeInput) {
278612
+ var parseValue = function parseValue(timeRange, dateTimeMask, toLabel, hasTimeInput, timeZone) {
278595
278613
  var _timeRange$kind, _timeRange$relative, _timeRange$absolute, _timeRange$single, _timeRange$preset;
278596
278614
  var readableValue = '';
278597
278615
  if (!timeRange) {
@@ -278611,9 +278629,9 @@ React keys must be passed directly to JSX without using spread:
278611
278629
  switch (kind) {
278612
278630
  case PICKER_KINDS$1.RELATIVE:
278613
278631
  {
278614
- var endDate = dayjs$1();
278632
+ var endDate = dayjs$1.tz();
278615
278633
  if (value.relativeToWhen !== '') {
278616
- endDate = value.relativeToWhen === RELATIVE_VALUES$1.YESTERDAY ? dayjs$1().add(-1, INTERVAL_VALUES$1.DAYS) : dayjs$1();
278634
+ endDate = value.relativeToWhen === RELATIVE_VALUES$1.YESTERDAY ? dayjs$1.tz().subtract(1, INTERVAL_VALUES$1.DAYS) : dayjs$1.tz();
278617
278635
  // wait to parse it until fully typed
278618
278636
  if (value.relativeToTime.length === 5) {
278619
278637
  endDate = endDate.hour(Number(value.relativeToTime.split(':')[0]));
@@ -278625,37 +278643,42 @@ React keys must be passed directly to JSX without using spread:
278625
278643
  }
278626
278644
  returnValue.relative.start = new Date(startDate.valueOf());
278627
278645
  returnValue.relative.end = new Date(endDate.valueOf());
278628
- readableValue = "".concat(dayjs$1(startDate).format(dateTimeMask), " ").concat(toLabel, " ").concat(dayjs$1(endDate).format(dateTimeMask));
278646
+ readableValue = "".concat(startDate.format(dateTimeMask), " ").concat(toLabel, " ").concat(endDate.format(dateTimeMask));
278629
278647
  }
278630
278648
  break;
278631
278649
  }
278632
278650
  case PICKER_KINDS$1.ABSOLUTE:
278633
278651
  {
278634
- var _value$start, _value$end;
278635
- var _startDate = dayjs$1((_value$start = value.start) !== null && _value$start !== void 0 ? _value$start : value.startDate);
278636
- if (value.startTime) {
278637
- var formatedStartTime = is24hours(dateTimeMask) ? value.startTime : format12hourTo24hour(value.startTime);
278638
- _startDate = _startDate.hours(formatedStartTime.split(':')[0]);
278639
- _startDate = _startDate.minutes(formatedStartTime.split(':')[1]);
278640
- }
278641
- if (!returnValue.absolute) {
278642
- returnValue.absolute = {};
278643
- }
278644
- returnValue.absolute.start = new Date(_startDate.valueOf());
278645
- var startTimeValue = value.startTime ? "".concat(dayjs$1(_startDate).format(dateTimeMask)) : "".concat(dayjs$1(_startDate).format(dateTimeMask)).split(' ')[0];
278646
- if ((_value$end = value.end) !== null && _value$end !== void 0 ? _value$end : value.endDate) {
278647
- var _value$end2;
278648
- var _endDate = dayjs$1((_value$end2 = value.end) !== null && _value$end2 !== void 0 ? _value$end2 : value.endDate);
278649
- if (value.endTime) {
278650
- var formatedEndTime = is24hours(dateTimeMask) ? value.endTime : format12hourTo24hour(value.endTime);
278651
- _endDate = _endDate.hours(formatedEndTime.split(':')[0]);
278652
- _endDate = _endDate.minutes(formatedEndTime.split(':')[1]);
278652
+ var _value$start;
278653
+ if ((_value$start = value.start) !== null && _value$start !== void 0 ? _value$start : value.startDate) {
278654
+ var _value$end;
278655
+ var _startDate = value.start instanceof Date ? dayjs$1(value.start).tz(timeZone, true) // Date from picker - preserve local time
278656
+ : value.start ? dayjs$1.tz(value.start) // Timestamp - convert from UTC
278657
+ : dayjs$1.tz(value.startDate, 'MM/DD/YYYY', timeZone); // String - parse with format
278658
+
278659
+ if (value.startTime && value.startTime.includes(':')) {
278660
+ var formatedStartTime = is24hours(dateTimeMask) ? value.startTime : format12hourTo24hour(value.startTime);
278661
+ _startDate = _startDate.hours(formatedStartTime.split(':')[0]);
278662
+ _startDate = _startDate.minutes(formatedStartTime.split(':')[1]);
278663
+ }
278664
+ if (!returnValue.absolute) {
278665
+ returnValue.absolute = {};
278666
+ }
278667
+ returnValue.absolute.start = _startDate.valueOf();
278668
+ var startTimeValue = value.startTime ? "".concat(_startDate.format(dateTimeMask)) : "".concat(_startDate.format(dateTimeMask)).split(' ')[0];
278669
+ if ((_value$end = value.end) !== null && _value$end !== void 0 ? _value$end : value.endDate) {
278670
+ var _endDate = value.end instanceof Date ? dayjs$1(value.end).tz(timeZone, true) : value.end ? dayjs$1(value.end).tz(timeZone) : dayjs$1.tz(value.endDate, 'MM/DD/YYYY', timeZone);
278671
+ if (value.endTime && value.endTime.includes(':')) {
278672
+ var formatedEndTime = is24hours(dateTimeMask) ? value.endTime : format12hourTo24hour(value.endTime);
278673
+ _endDate = _endDate.hours(formatedEndTime.split(':')[0]);
278674
+ _endDate = _endDate.minutes(formatedEndTime.split(':')[1]);
278675
+ }
278676
+ var endTimeValue = value.endTime ? "".concat(_endDate.format(dateTimeMask)) : "".concat(_endDate.format(dateTimeMask)).split(' ')[0];
278677
+ returnValue.absolute.end = _endDate.valueOf();
278678
+ readableValue = "".concat(startTimeValue, " ").concat(toLabel, " ").concat(endTimeValue);
278679
+ } else {
278680
+ readableValue = "".concat(startTimeValue, " ").concat(toLabel, " ").concat(startTimeValue);
278653
278681
  }
278654
- var endTimeValue = value.endTime ? "".concat(dayjs$1(_endDate).format(dateTimeMask)) : "".concat(dayjs$1(_endDate).format(dateTimeMask)).split(' ')[0];
278655
- returnValue.absolute.end = new Date(_endDate.valueOf());
278656
- readableValue = "".concat(startTimeValue, " ").concat(toLabel, " ").concat(endTimeValue);
278657
- } else {
278658
- readableValue = "".concat(startTimeValue, " ").concat(toLabel, " ").concat(startTimeValue);
278659
278682
  }
278660
278683
  break;
278661
278684
  }
@@ -279086,7 +279109,7 @@ React keys must be passed directly to JSX without using spread:
279086
279109
  humanValue = _ref7.humanValue;
279087
279110
  if (currentValue) {
279088
279111
  if (currentValue.kind === PICKER_KINDS$1.PRESET) {
279089
- return "".concat(dayjs$1().subtract(currentValue.preset.offset, 'minutes').format(dateTimeMask), " ").concat(mergedI18n.toNowLabel);
279112
+ return "".concat(dayjs$1.tz().subtract(currentValue.preset.offset, 'minutes').format(dateTimeMask), " ").concat(mergedI18n.toNowLabel);
279090
279113
  }
279091
279114
  return humanValue;
279092
279115
  }
@@ -279305,7 +279328,7 @@ React keys must be passed directly to JSX without using spread:
279305
279328
  return [offTop, offBottom, inputTop, inputBottom, customHeight, maxHeight, invalidDateWarningHeight, invalidTimeWarningHeight, timeInputHeight];
279306
279329
  };
279307
279330
 
279308
- var _excluded$G = ["testId", "defaultValue", "dateTimeMask", "presets", "intervals", "relatives", "expanded", "disabled", "invalid", "showRelativeOption", "showCustomRangeLink", "hasTimeInput", "renderPresetTooltipText", "onCancel", "onApply", "i18n", "light", "locale", "hasIconOnly", "menuOffset", "renderInPortal", "useAutoPositioning", "style", "buttonProps"];
279331
+ var _excluded$G = ["testId", "defaultValue", "dateTimeMask", "presets", "intervals", "relatives", "expanded", "disabled", "invalid", "showRelativeOption", "showCustomRangeLink", "hasTimeInput", "renderPresetTooltipText", "onCancel", "onApply", "i18n", "light", "locale", "timeZone", "hasIconOnly", "menuOffset", "renderInPortal", "useAutoPositioning", "style", "buttonProps"];
279309
279332
  function ownKeys$1u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
279310
279333
  function _objectSpread$1s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1u(Object(t), !0).forEach(function (r) { _defineProperty$c(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
279311
279334
  var iotPrefix$1p = settings.iotPrefix,
@@ -279415,6 +279438,8 @@ React keys must be passed directly to JSX without using spread:
279415
279438
  light: PropTypes.bool,
279416
279439
  /** The language locale used to format the days of the week, months, and numbers. */
279417
279440
  locale: PropTypes.string,
279441
+ /** IANA timezone string to set as default timezone for dayjs */
279442
+ timeZone: PropTypes.string,
279418
279443
  /** Unique id of the component */
279419
279444
  id: PropTypes.string,
279420
279445
  /** Optionally renders only an icon rather than displaying the current selected time */
@@ -279505,6 +279530,7 @@ React keys must be passed directly to JSX without using spread:
279505
279530
  },
279506
279531
  light: false,
279507
279532
  locale: 'en',
279533
+ timeZone: undefined,
279508
279534
  id: undefined,
279509
279535
  hasIconOnly: false,
279510
279536
  menuOffset: undefined,
@@ -279533,6 +279559,7 @@ React keys must be passed directly to JSX without using spread:
279533
279559
  i18n = _ref.i18n,
279534
279560
  light = _ref.light,
279535
279561
  locale = _ref.locale,
279562
+ timeZone = _ref.timeZone,
279536
279563
  hasIconOnly = _ref.hasIconOnly,
279537
279564
  menuOffset = _ref.menuOffset,
279538
279565
  renderInPortal = _ref.renderInPortal,
@@ -279540,6 +279567,9 @@ React keys must be passed directly to JSX without using spread:
279540
279567
  style = _ref.style,
279541
279568
  buttonProps = _ref.buttonProps,
279542
279569
  others = _objectWithoutProperties$3(_ref, _excluded$G);
279570
+ var effectiveTimezone = timeZone || dayjs$1.tz.guess();
279571
+ dayjs$1.tz.setDefault(effectiveTimezone);
279572
+ dayjs$1.locale(locale);
279543
279573
  var id = React$1.useRef(others.id || v4()).current;
279544
279574
  React$1.useEffect(function () {
279545
279575
  {
@@ -279679,7 +279709,7 @@ React keys must be passed directly to JSX without using spread:
279679
279709
  value.kind = PICKER_KINDS$1.PRESET;
279680
279710
  }
279681
279711
  setCurrentValue(value);
279682
- var parsedValue = parseValue(value, dateTimeMask, mergedI18n.toLabel);
279712
+ var parsedValue = parseValue(value, dateTimeMask, mergedI18n.toLabel, hasTimeInput, effectiveTimezone);
279683
279713
  setHumanValue(parsedValue.readableValue);
279684
279714
  return _objectSpread$1s(_objectSpread$1s({}, value), parsedValue);
279685
279715
  };
@@ -279734,15 +279764,17 @@ React keys must be passed directly to JSX without using spread:
279734
279764
  setIsCustomRange(true);
279735
279765
  setCustomRangeKind(PICKER_KINDS$1.ABSOLUTE);
279736
279766
  if (!absolute.hasOwnProperty('start')) {
279737
- absolute.start = dayjs$1("".concat(absolute.startDate, " ").concat(absolute.startTime)).valueOf();
279767
+ var startDateTime = "".concat(absolute.startDate, " ").concat(absolute.startTime);
279768
+ absolute.start = dayjs$1.tz(startDateTime, detectDateTimeFormat(startDateTime), effectiveTimezone).valueOf();
279738
279769
  }
279739
279770
  if (!absolute.hasOwnProperty('end')) {
279740
- absolute.end = dayjs$1("".concat(absolute.endDate, " ").concat(absolute.endTime)).valueOf();
279771
+ var endDateTime = "".concat(absolute.endDate, " ").concat(absolute.endTime);
279772
+ absolute.end = dayjs$1.tz(endDateTime, detectDateTimeFormat(endDateTime), effectiveTimezone).valueOf();
279741
279773
  }
279742
- absolute.startDate = dayjs$1(absolute.start).format('MM/DD/YYYY');
279743
- absolute.startTime = dayjs$1(absolute.start).format('HH:mm');
279744
- absolute.endDate = dayjs$1(absolute.end).format('MM/DD/YYYY');
279745
- absolute.endTime = dayjs$1(absolute.end).format('HH:mm');
279774
+ absolute.startDate = dayjs$1.tz(absolute.start).format('MM/DD/YYYY');
279775
+ absolute.startTime = dayjs$1.tz(absolute.start).format('HH:mm');
279776
+ absolute.endDate = dayjs$1.tz(absolute.end).format('MM/DD/YYYY');
279777
+ absolute.endTime = dayjs$1.tz(absolute.end).format('HH:mm');
279746
279778
  setAbsoluteValue(absolute);
279747
279779
  }
279748
279780
  } else {
@@ -279789,7 +279821,7 @@ React keys must be passed directly to JSX without using spread:
279789
279821
  humanValue: humanValue
279790
279822
  });
279791
279823
  var disableRelativeApply = isCustomRange && customRangeKind === PICKER_KINDS$1.RELATIVE && (relativeLastNumberInvalid || relativeToTimeInvalid);
279792
- var disableAbsoluteApply = isCustomRange && customRangeKind === PICKER_KINDS$1.ABSOLUTE && (absoluteStartTimeInvalid || absoluteEndTimeInvalid || absoluteValue.startDate === '' && absoluteValue.endDate === '' || (hasTimeInput ? !absoluteValue.startTime || !absoluteValue.endTime : false));
279824
+ var disableAbsoluteApply = isCustomRange && customRangeKind === PICKER_KINDS$1.ABSOLUTE && (absoluteStartTimeInvalid || absoluteEndTimeInvalid || !absoluteValue.startDate || !absoluteValue.endDate || (hasTimeInput ? !absoluteValue.startTime || !absoluteValue.endTime : false));
279793
279825
  var disableApply = disableRelativeApply || disableAbsoluteApply;
279794
279826
  React$1.useEffect(function () {
279795
279827
  return setInvalidState(invalid || disableApply);
@@ -280483,6 +280515,17 @@ React keys must be passed directly to JSX without using spread:
280483
280515
  },
280484
280516
  "required": false
280485
280517
  },
280518
+ "timeZone": {
280519
+ "defaultValue": {
280520
+ "value": "undefined",
280521
+ "computed": true
280522
+ },
280523
+ "description": "IANA timezone string to set as default timezone for dayjs",
280524
+ "type": {
280525
+ "name": "string"
280526
+ },
280527
+ "required": false
280528
+ },
280486
280529
  "id": {
280487
280530
  "defaultValue": {
280488
280531
  "value": "undefined",
@@ -281387,6 +281430,8 @@ React keys must be passed directly to JSX without using spread:
281387
281430
  testId: PropTypes.string,
281388
281431
  /** the locale of the card, needed for number and date formatting */
281389
281432
  locale: PropTypes.string,
281433
+ /** IANA timezone string to set as default timezone for dayjs */
281434
+ timeZone: PropTypes.string,
281390
281435
  /** a way to pass down dashboard grid resize handles, only used by other card types */
281391
281436
  resizeHandles: PropTypes.array,
281392
281437
  /** Optional callback function that is passed an onChange function and the original cardConfig object.
@@ -284117,7 +284162,7 @@ React keys must be passed directly to JSX without using spread:
284117
284162
  : dataOrHoveredElement;
284118
284163
  var timeStamp = Array.isArray(data) ? (_data$ = data[0]) === null || _data$ === void 0 || (_data$ = _data$.date) === null || _data$ === void 0 ? void 0 : _data$.getTime() : data === null || data === void 0 || (_data$date = data.date) === null || _data$date === void 0 ? void 0 : _data$date.getTime();
284119
284164
  var dateLabel = timeStamp ? "<li class='datapoint-tooltip'>\n <p class='label'>".concat((showTimeInGMT // show timestamp in gmt or local time
284120
- ? dayjs$1.utc(timeStamp) : dayjs$1(timeStamp)).format(tooltipDateFormatPattern), "</p>\n </li>") : '';
284165
+ ? dayjs$1.utc(timeStamp) : dayjs$1.tz(timeStamp)).format(tooltipDateFormatPattern), "</p>\n </li>") : '';
284121
284166
  var matchingAlertRanges = findMatchingAlertRange(alertRanges, data);
284122
284167
  var matchingAlertLabels = Array.isArray(matchingAlertRanges) ? matchingAlertRanges.map(function (matchingAlertRange) {
284123
284168
  return "<li class='datapoint-tooltip'><a style=\"background-color:".concat(matchingAlertRange.color, "\" class=\"tooltip-color\"></a><p class='label'>").concat(alertDetected, " ").concat(matchingAlertRange.details, "</p></li>");
@@ -284856,7 +284901,8 @@ React keys must be passed directly to JSX without using spread:
284856
284901
  dateTimeMask = _ref.dateTimeMask,
284857
284902
  extraActions = _ref.extraActions,
284858
284903
  renderDateDropdownInPortal = _ref.renderDateDropdownInPortal,
284859
- id = _ref.id;
284904
+ id = _ref.id,
284905
+ timeZone = _ref.timeZone;
284860
284906
  var mergedI18n = _objectSpread$1o(_objectSpread$1o({}, defaultProps$1J.i18n), i18n);
284861
284907
  var langDir = useLangDirection();
284862
284908
  var overflowMenuPosition = React$1.useMemo(function () {
@@ -284960,6 +285006,7 @@ React keys must be passed directly to JSX without using spread:
284960
285006
  i18n: mergedI18n,
284961
285007
  dateTimeMask: dateTimeMask,
284962
285008
  locale: locale,
285009
+ timeZone: timeZone,
284963
285010
  hasIconOnly: true,
284964
285011
  presets: Object.entries(timeRangeOptions).reduce(function (acc, _ref2) {
284965
285012
  var _ref3 = _slicedToArray$9(_ref2, 2),
@@ -285470,7 +285517,7 @@ React keys must be passed directly to JSX without using spread:
285470
285517
  };
285471
285518
 
285472
285519
  var _excluded$F = ["isSelected", "children", "dimensions", "id", "style", "className", "onScroll", "onMouseDown", "onMouseUp", "onTouchEnd", "onTouchStart", "onFocus", "onBlur", "tabIndex", "testID", "testId"],
285473
- _excluded2$4 = ["size", "children", "title", "subtitle", "hasTitleWrap", "layout", "isLoading", "isEmpty", "isEditable", "isExpanded", "isLazyLoading", "isResizable", "resizeHandles", "error", "hideHeader", "id", "tooltip", "titleTextTooltip", "timeRange", "timeRangeOptions", "onCardAction", "availableActions", "renderExpandIcon", "renderDateDropdownInPortal", "breakpoint", "i18n", "style", "className", "values", "testID", "testId", "contentClassName", "footerContent", "dateTimeMask", "extraActions", "padding", "overrides", "type", "data", "content", "shouldUseTranslatedLabels"];
285520
+ _excluded2$4 = ["size", "children", "title", "subtitle", "hasTitleWrap", "layout", "isLoading", "isEmpty", "isEditable", "isExpanded", "isLazyLoading", "isResizable", "resizeHandles", "error", "hideHeader", "id", "tooltip", "titleTextTooltip", "timeRange", "timeRangeOptions", "onCardAction", "availableActions", "renderExpandIcon", "renderDateDropdownInPortal", "breakpoint", "i18n", "style", "className", "values", "testID", "testId", "contentClassName", "footerContent", "dateTimeMask", "extraActions", "padding", "overrides", "type", "data", "content", "timeZone", "shouldUseTranslatedLabels"];
285474
285521
  function ownKeys$1p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
285475
285522
  function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1p(Object(t), !0).forEach(function (r) { _defineProperty$c(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
285476
285523
  var prefix$l = settings.prefix,
@@ -285733,9 +285780,11 @@ React keys must be passed directly to JSX without using spread:
285733
285780
  type = props.type,
285734
285781
  data = props.data,
285735
285782
  content = props.content,
285783
+ timeZone = props.timeZone,
285736
285784
  shouldUseTranslatedLabels = props.shouldUseTranslatedLabels,
285737
285785
  others = _objectWithoutProperties$3(props, _excluded2$4);
285738
-
285786
+ var effectiveTimezone = timeZone || dayjs$1.tz.guess();
285787
+ dayjs$1.tz.setDefault(effectiveTimezone);
285739
285788
  // Get translated title if shouldUseTranslatedLabels is true
285740
285789
  var title = getTranslatedLabel(titleProp, shouldUseTranslatedLabels, i18n);
285741
285790
  var tooltip = getTranslatedLabel(tooltipProp, shouldUseTranslatedLabels, i18n);
@@ -285773,12 +285822,12 @@ React keys must be passed directly to JSX without using spread:
285773
285822
  return subtitleProp;
285774
285823
  }
285775
285824
  if (mergedAvailableActions.range === 'full' || mergedAvailableActions.range === 'iconOnly') {
285776
- var _parseValue = parseValue(timeRange, dateTimeMask, strings.toLabel),
285825
+ var _parseValue = parseValue(timeRange, dateTimeMask, strings.toLabel, true, effectiveTimezone),
285777
285826
  readableValue = _parseValue.readableValue;
285778
285827
  return readableValue;
285779
285828
  }
285780
285829
  return undefined;
285781
- }, [dateTimeMask, mergedAvailableActions.range, strings.toLabel, subtitleProp, timeRange]);
285830
+ }, [dateTimeMask, mergedAvailableActions.range, strings.toLabel, subtitleProp, timeRange, effectiveTimezone]);
285782
285831
  var _useState = React$1.useState(getTheSubtitle),
285783
285832
  _useState2 = _slicedToArray$9(_useState, 2),
285784
285833
  subtitle = _useState2[0],
@@ -285836,6 +285885,7 @@ React keys must be passed directly to JSX without using spread:
285836
285885
  isExpanded: isExpanded,
285837
285886
  timeRange: timeRange,
285838
285887
  locale: others.locale,
285888
+ timeZone: effectiveTimezone,
285839
285889
  timeRangeOptions: timeRangeOptions,
285840
285890
  onCardAction: cachedOnCardAction
285841
285891
  // TODO: remove deprecated testID prop in v3
@@ -286621,7 +286671,7 @@ React keys must be passed directly to JSX without using spread:
286621
286671
  var previousTickTimestamp = arguments.length > 5 ? arguments[5] : undefined;
286622
286672
  var shouldDisplayGMT = arguments.length > 6 ? arguments[6] : undefined;
286623
286673
  dayjs$1.locale(locale);
286624
- var currentTimestamp = shouldDisplayGMT ? dayjs$1.utc(timestamp) : dayjs$1(timestamp);
286674
+ var currentTimestamp = shouldDisplayGMT ? dayjs$1.utc(timestamp) : dayjs$1.tz(timestamp);
286625
286675
  var sameDay = dayjs$1(previousTickTimestamp).isSame(currentTimestamp, 'day');
286626
286676
  var sameMonth = dayjs$1(previousTickTimestamp).isSame(currentTimestamp, 'month');
286627
286677
  var sameYear = dayjs$1(previousTickTimestamp).isSame(currentTimestamp, 'year');
@@ -286715,7 +286765,7 @@ React keys must be passed directly to JSX without using spread:
286715
286765
  // Check to see if the data Item actually exists in this timestamp before adding to data (to support sparse data in the values)
286716
286766
  if (!isNil(dataItem[dataSourceId])) {
286717
286767
  data.push({
286718
- date: dataItem[timeDataSourceId] instanceof Date ? dataItem[timeDataSourceId] : new Date(dataItem[timeDataSourceId]),
286768
+ date: dayjs$1.tz(dataItem[timeDataSourceId]).toDate(),
286719
286769
  value: dataItem[dataSourceId],
286720
286770
  group: label,
286721
286771
  dataSourceId: dataSourceId
@@ -287204,8 +287254,7 @@ React keys must be passed directly to JSX without using spread:
287204
287254
  // bar this data belongs to
287205
287255
  value: value[dataset.dataSourceId]
287206
287256
  }, timeDataSourceId && type !== BAR_CHART_TYPES.GROUPED ? {
287207
- date: new Date(value[timeDataSourceId]),
287208
- // timestamp
287257
+ date: dayjs$1.tz(value[timeDataSourceId]).toDate(),
287209
287258
  key: value[timeDataSourceId]
287210
287259
  } : {
287211
287260
  key: value[categoryDataSourceId]
@@ -287250,14 +287299,13 @@ React keys must be passed directly to JSX without using spread:
287250
287299
  dataset.forEach(function (value) {
287251
287300
  // if value is null, don't add it to the formatted chartData
287252
287301
  if (!isNil(value[series[0].dataSourceId])) {
287253
- var dataDate = new Date(value[timeDataSourceId]);
287254
287302
  data.push({
287255
287303
  // Use the label if one exists
287256
287304
  group: series[0].label ? series[0].label : series[0].dataSourceId,
287257
287305
  // bar this data belongs to
287258
287306
  value: value[series[0].dataSourceId],
287259
287307
  // there should only be one series here because its a simple bar
287260
- date: dataDate // timestamp
287308
+ date: dayjs$1.tz(value[timeDataSourceId]).toDate()
287261
287309
  });
287262
287310
  }
287263
287311
  });
@@ -287378,10 +287426,12 @@ React keys must be passed directly to JSX without using spread:
287378
287426
  * @param {string} timeDatasourceId time-based attribute
287379
287427
  * @param {bool} showTimeInGMT
287380
287428
  * @param {string} tooltipDataFormatPattern
287429
+ * @param {string} timezone
287381
287430
  */
287382
287431
  var handleTooltip = function handleTooltip(dataOrHoveredElement, defaultTooltip, _datum, timeDataSourceId, showTimeInGMT) {
287383
287432
  var tooltipDateFormatPattern = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : DAYJS_INPUT_FORMATS.SECONDS;
287384
287433
  var locale = arguments.length > 6 ? arguments[6] : undefined;
287434
+ var timezone = arguments.length > 7 ? arguments[7] : undefined;
287385
287435
  dayjs$1.locale(locale);
287386
287436
  var data = dataOrHoveredElement.__data__ // eslint-disable-line no-underscore-dangle
287387
287437
  ? dataOrHoveredElement.__data__ // eslint-disable-line no-underscore-dangle
@@ -287395,8 +287445,7 @@ React keys must be passed directly to JSX without using spread:
287395
287445
  if (timeDataSourceId) {
287396
287446
  // generate the formatted label
287397
287447
  var timestamp = typedData === null || typedData === void 0 ? void 0 : typedData.date;
287398
- var dateLabel = timestamp ? "<li class='datapoint-tooltip'>\n <p class='label'>\n ".concat((showTimeInGMT // show timestamp in gmt or local time
287399
- ? dayjs$1.utc(timestamp) : dayjs$1(timestamp)).format(tooltipDateFormatPattern), "</p>\n </li>") : '';
287448
+ var dateLabel = timestamp ? "<li class='datapoint-tooltip'>\n <p class='label'>\n ".concat((showTimeInGMT ? dayjs$1.utc(timestamp) : dayjs$1(timestamp).tz(timezone)).format(tooltipDateFormatPattern), "</p>\n </li>") : '';
287400
287449
  var _convertStringsToDOME3 = convertStringsToDOMElement([dateLabel]),
287401
287450
  _convertStringsToDOME4 = _slicedToArray$9(_convertStringsToDOME3, 1),
287402
287451
  parsedDateLabel = _convertStringsToDOME4[0];
@@ -287462,6 +287511,8 @@ React keys must be passed directly to JSX without using spread:
287462
287511
  * @param {string} type of chart i.e. simple, grouped, stacked
287463
287512
  * @param {Array<Object>} values values before they are formatted for charting
287464
287513
  * @param {Array<Object>} chartData values after they are formatted for charting
287514
+ * @param {string} defaultDateFormatPattern date format pattern
287515
+ * @param {string} timezone timezone to use for formatting dates
287465
287516
  */
287466
287517
  var formatTableData = function formatTableData(timeDataSourceId, categoryDataSourceId, type, values, chartData) {
287467
287518
  var defaultDateFormatPattern = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : DAYJS_INPUT_FORMATS.SECONDS;
@@ -287486,7 +287537,7 @@ React keys must be passed directly to JSX without using spread:
287486
287537
  });
287487
287538
  tableData.push({
287488
287539
  id: "dataindex-".concat(index),
287489
- values: _objectSpread$1l(_objectSpread$1l({}, barTimeValue), {}, _defineProperty$c({}, timeDataSourceId, dayjs$1(timestamp).format(defaultDateFormatPattern))),
287540
+ values: _objectSpread$1l(_objectSpread$1l({}, barTimeValue), {}, _defineProperty$c({}, timeDataSourceId, dayjs$1.tz(timestamp).format(defaultDateFormatPattern))),
287490
287541
  isSelectable: false
287491
287542
  });
287492
287543
  });
@@ -287545,7 +287596,7 @@ React keys must be passed directly to JSX without using spread:
287545
287596
  }
287546
287597
  };
287547
287598
 
287548
- var _excluded$E = ["title", "content", "children", "size", "values", "availableDimensions", "locale", "i18n", "isExpanded", "isLazyLoading", "isEditable", "isDashboardPreview", "isLoading", "isResizable", "interval", "className", "domainRange", "timeRange", "showTimeInGMT", "tooltipDateFormatPattern", "testID", "testId", "defaultDateFormatPattern"];
287599
+ var _excluded$E = ["title", "content", "children", "size", "values", "availableDimensions", "locale", "timeZone", "i18n", "isExpanded", "isLazyLoading", "isEditable", "isDashboardPreview", "isLoading", "isResizable", "interval", "className", "domainRange", "timeRange", "showTimeInGMT", "tooltipDateFormatPattern", "testID", "testId", "defaultDateFormatPattern"];
287549
287600
  function ownKeys$1m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
287550
287601
  function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1m(Object(t), !0).forEach(function (r) { _defineProperty$c(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
287551
287602
  var iotPrefix$1j = settings.iotPrefix;
@@ -287570,6 +287621,7 @@ React keys must be passed directly to JSX without using spread:
287570
287621
  series: []
287571
287622
  },
287572
287623
  locale: 'en',
287624
+ timeZone: undefined,
287573
287625
  showTimeInGMT: false,
287574
287626
  tooltipDateFormatPattern: DAYJS_INPUT_FORMATS.SECONDS,
287575
287627
  values: null,
@@ -287583,6 +287635,7 @@ React keys must be passed directly to JSX without using spread:
287583
287635
  initialValues = _ref.values,
287584
287636
  availableDimensions = _ref.availableDimensions,
287585
287637
  locale = _ref.locale,
287638
+ timeZone = _ref.timeZone,
287586
287639
  i18n = _ref.i18n,
287587
287640
  isExpanded = _ref.isExpanded,
287588
287641
  isLazyLoading = _ref.isLazyLoading,
@@ -287600,6 +287653,8 @@ React keys must be passed directly to JSX without using spread:
287600
287653
  testId = _ref.testId,
287601
287654
  defaultDateFormatPattern = _ref.defaultDateFormatPattern,
287602
287655
  others = _objectWithoutProperties$3(_ref, _excluded$E);
287656
+ var effectiveTimezone = timeZone || dayjs$1.tz.guess();
287657
+ dayjs$1.tz.setDefault(effectiveTimezone);
287603
287658
  // need to deep merge the nested content default props as default props only uses a shallow merge natively
287604
287659
  var contentWithDefaults = React$1.useMemo(function () {
287605
287660
  return _defaultsDeep({}, content, defaultProps$1G.content);
@@ -287760,7 +287815,7 @@ React keys must be passed directly to JSX without using spread:
287760
287815
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
287761
287816
  args[_key] = arguments[_key];
287762
287817
  }
287763
- return handleTooltip.apply(void 0, args.concat([timeDataSourceId, showTimeInGMT, tooltipDateFormatPattern, locale]));
287818
+ return handleTooltip.apply(void 0, args.concat([timeDataSourceId, showTimeInGMT, tooltipDateFormatPattern, locale, effectiveTimezone]));
287764
287819
  },
287765
287820
  groupLabel: mergedI18n.tooltipGroupLabel,
287766
287821
  totalLabel: mergedI18n.tooltipTotalLabel
@@ -287779,7 +287834,7 @@ React keys must be passed directly to JSX without using spread:
287779
287834
  enabled: false
287780
287835
  }
287781
287836
  });
287782
- }, [xLabel, layout, unit, scaleType, type, timeDataSourceId, axes.bottomAxesMapsTo, axes.leftAxesMapsTo, domainRange, decimalPrecision, maxTicksPerSize, formatTick, yLabel, legendPosition, chartData.length, isEditable, truncation, colors, mergedI18n.tooltipGroupLabel, mergedI18n.tooltipTotalLabel, zoomBar, size, isExpanded, locale, showTimeInGMT, tooltipDateFormatPattern]);
287837
+ }, [xLabel, layout, unit, scaleType, type, timeDataSourceId, axes.bottomAxesMapsTo, axes.leftAxesMapsTo, domainRange, decimalPrecision, maxTicksPerSize, formatTick, yLabel, legendPosition, chartData.length, isEditable, truncation, colors, mergedI18n.tooltipGroupLabel, mergedI18n.tooltipTotalLabel, zoomBar, size, isExpanded, locale, showTimeInGMT, tooltipDateFormatPattern, effectiveTimezone]);
287783
287838
  return /*#__PURE__*/React$1.createElement(Card$1, _extends$4({
287784
287839
  title: title,
287785
287840
  className: classnames(className, "".concat(iotPrefix$1j, "--bar-chart-card")),
@@ -287793,7 +287848,8 @@ React keys must be passed directly to JSX without using spread:
287793
287848
  isResizable: isResizable,
287794
287849
  resizeHandles: resizeHandles,
287795
287850
  timeRange: timeRange,
287796
- locale: locale
287851
+ locale: locale,
287852
+ timeZone: effectiveTimezone
287797
287853
  // TODO: remove deprecated testID in v3.
287798
287854
  ,
287799
287855
  testId: testID || testId
@@ -287889,6 +287945,13 @@ React keys must be passed directly to JSX without using spread:
287889
287945
  },
287890
287946
  "required": false
287891
287947
  },
287948
+ "timeZone": {
287949
+ "defaultValue": {
287950
+ "value": "undefined",
287951
+ "computed": true
287952
+ },
287953
+ "required": false
287954
+ },
287892
287955
  "showTimeInGMT": {
287893
287956
  "defaultValue": {
287894
287957
  "value": "false",
@@ -290142,7 +290205,7 @@ React keys must be passed directly to JSX without using spread:
290142
290205
  }
290143
290206
  };
290144
290207
 
290145
- var _excluded$D = ["testId", "defaultValue", "dateTimeMask", "presets", "intervals", "relatives", "expanded", "disabled", "invalid", "showRelativeOption", "showCustomRangeLink", "hasTimeInput", "renderPresetTooltipText", "onCancel", "onApply", "i18n", "light", "locale", "style"];
290208
+ var _excluded$D = ["testId", "defaultValue", "dateTimeMask", "presets", "intervals", "relatives", "expanded", "disabled", "invalid", "showRelativeOption", "showCustomRangeLink", "hasTimeInput", "renderPresetTooltipText", "onCancel", "onApply", "i18n", "light", "locale", "timeZone", "style"];
290146
290209
  function ownKeys$1k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
290147
290210
  function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1k(Object(t), !0).forEach(function (r) { _defineProperty$c(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
290148
290211
  var iotPrefix$1f = settings.iotPrefix,
@@ -290289,6 +290352,8 @@ React keys must be passed directly to JSX without using spread:
290289
290352
  light: PropTypes.bool,
290290
290353
  /** The language locale used to format the days of the week, months, and numbers. */
290291
290354
  locale: PropTypes.string,
290355
+ /** IANA timezone string to interpret datetime values in (e.g., 'America/New_York') */
290356
+ timeZone: PropTypes.string,
290292
290357
  /** Unique id of the component */
290293
290358
  id: PropTypes.string,
290294
290359
  style: PropTypes.objectOf(PropTypes.string)
@@ -290364,6 +290429,7 @@ React keys must be passed directly to JSX without using spread:
290364
290429
  },
290365
290430
  light: false,
290366
290431
  locale: 'en',
290432
+ timeZone: undefined,
290367
290433
  id: undefined,
290368
290434
  style: {}
290369
290435
  };
@@ -290386,10 +290452,13 @@ React keys must be passed directly to JSX without using spread:
290386
290452
  i18n = _ref.i18n,
290387
290453
  light = _ref.light,
290388
290454
  locale = _ref.locale,
290455
+ timeZone = _ref.timeZone,
290389
290456
  style = _ref.style,
290390
290457
  others = _objectWithoutProperties$3(_ref, _excluded$D);
290391
290458
  var id = React$1.useRef(others.id || v4()).current;
290392
290459
  var mergedI18n = _objectSpread$1i(_objectSpread$1i({}, defaultProps$1B.i18n), i18n);
290460
+ var effectiveTimezone = timeZone || dayjs$1.tz.guess();
290461
+ dayjs$1.tz.setDefault(effectiveTimezone);
290393
290462
  dayjs$1.locale(locale);
290394
290463
 
290395
290464
  // State
@@ -290516,7 +290585,7 @@ React keys must be passed directly to JSX without using spread:
290516
290585
  value.kind = PICKER_KINDS.PRESET;
290517
290586
  }
290518
290587
  setCurrentValue(value);
290519
- var parsedValue = parseValue(value, dateTimeMask, mergedI18n.toLabel);
290588
+ var parsedValue = parseValue(value, dateTimeMask, mergedI18n.toLabel, hasTimeInput, effectiveTimezone);
290520
290589
  setHumanValue(parsedValue.readableValue);
290521
290590
  return _objectSpread$1i(_objectSpread$1i({}, value), parsedValue);
290522
290591
  };
@@ -290571,15 +290640,17 @@ React keys must be passed directly to JSX without using spread:
290571
290640
  setIsCustomRange(true);
290572
290641
  setCustomRangeKind(PICKER_KINDS.ABSOLUTE);
290573
290642
  if (!absolute.hasOwnProperty('start')) {
290574
- absolute.start = dayjs$1("".concat(absolute.startDate, " ").concat(absolute.startTime)).valueOf();
290643
+ var startDateTime = "".concat(absolute.startDate, " ").concat(absolute.startTime);
290644
+ absolute.start = dayjs$1.tz(startDateTime, detectDateTimeFormat(startDateTime), effectiveTimezone).valueOf();
290575
290645
  }
290576
290646
  if (!absolute.hasOwnProperty('end')) {
290577
- absolute.end = dayjs$1("".concat(absolute.endDate, " ").concat(absolute.endTime)).valueOf();
290647
+ var endDateTime = "".concat(absolute.endDate, " ").concat(absolute.endTime);
290648
+ absolute.end = dayjs$1.tz(endDateTime, detectDateTimeFormat(endDateTime), effectiveTimezone).valueOf();
290578
290649
  }
290579
- absolute.startDate = dayjs$1(absolute.start).format('MM/DD/YYYY');
290580
- absolute.startTime = dayjs$1(absolute.start).format('HH:mm');
290581
- absolute.endDate = dayjs$1(absolute.end).format('MM/DD/YYYY');
290582
- absolute.endTime = dayjs$1(absolute.end).format('HH:mm');
290650
+ absolute.startDate = dayjs$1.tz(absolute.start).format('MM/DD/YYYY');
290651
+ absolute.startTime = dayjs$1.tz(absolute.start).format('HH:mm');
290652
+ absolute.endDate = dayjs$1.tz(absolute.end).format('MM/DD/YYYY');
290653
+ absolute.endTime = dayjs$1.tz(absolute.end).format('HH:mm');
290583
290654
  setAbsoluteValue(absolute);
290584
290655
  }
290585
290656
  } else {
@@ -290668,7 +290739,7 @@ React keys must be passed directly to JSX without using spread:
290668
290739
  humanValue: humanValue
290669
290740
  });
290670
290741
  var disableRelativeApply = isCustomRange && customRangeKind === PICKER_KINDS.RELATIVE && (relativeLastNumberInvalid || relativeToTimeInvalid);
290671
- var disableAbsoluteApply = isCustomRange && customRangeKind === PICKER_KINDS.ABSOLUTE && (absoluteStartTimeInvalid || absoluteEndTimeInvalid || absoluteValue.startDate === '' && absoluteValue.endDate === '' || (hasTimeInput ? !absoluteValue.startTime || !absoluteValue.endTime : false));
290742
+ var disableAbsoluteApply = isCustomRange && customRangeKind === PICKER_KINDS.ABSOLUTE && (absoluteStartTimeInvalid || absoluteEndTimeInvalid || !absoluteValue.startDate || !absoluteValue.endDate || (hasTimeInput ? !absoluteValue.startTime || !absoluteValue.endTime : false));
290672
290743
  var disableApply = disableRelativeApply || disableAbsoluteApply;
290673
290744
  React$1.useEffect(function () {
290674
290745
  return setInvalidState(invalid || disableApply);
@@ -291382,6 +291453,17 @@ React keys must be passed directly to JSX without using spread:
291382
291453
  },
291383
291454
  "required": false
291384
291455
  },
291456
+ "timeZone": {
291457
+ "defaultValue": {
291458
+ "value": "undefined",
291459
+ "computed": true
291460
+ },
291461
+ "description": "IANA timezone string to interpret datetime values in (e.g., 'America/New_York')",
291462
+ "type": {
291463
+ "name": "string"
291464
+ },
291465
+ "required": false
291466
+ },
291385
291467
  "id": {
291386
291468
  "defaultValue": {
291387
291469
  "value": "undefined",
@@ -292313,7 +292395,6 @@ React keys must be passed directly to JSX without using spread:
292313
292395
  return setInvalidState(invalid);
292314
292396
  }, [invalid]);
292315
292397
  var onApplyClick = function onApplyClick() {
292316
- var _value$absolute$start, _value$absolute$end;
292317
292398
  var value = renderValue();
292318
292399
  var returnValue = {
292319
292400
  timeRangeKind: value.kind,
@@ -292328,8 +292409,8 @@ React keys must be passed directly to JSX without using spread:
292328
292409
  returnValue.timeRangeValue = _objectSpread$1h(_objectSpread$1h({}, value.absolute), {}, {
292329
292410
  humanValue: humanValue,
292330
292411
  tooltipValue: tooltipValue,
292331
- ISOStart: (_value$absolute$start = value.absolute.start) === null || _value$absolute$start === void 0 ? void 0 : _value$absolute$start.toISOString(),
292332
- ISOEnd: (_value$absolute$end = value.absolute.end) === null || _value$absolute$end === void 0 ? void 0 : _value$absolute$end.toISOString()
292412
+ ISOStart: value.absolute.start ? new Date(value.absolute.start).toISOString() : undefined,
292413
+ ISOEnd: value.absolute.end ? new Date(value.absolute.end).toISOString() : undefined
292333
292414
  });
292334
292415
  break;
292335
292416
  case PICKER_KINDS$1.SINGLE:
@@ -313030,6 +313111,7 @@ React keys must be passed directly to JSX without using spread:
313030
313111
 
313031
313112
  // Get translated label if shouldUseTranslatedLabels is true
313032
313113
  var displayLabel = getTranslatedLabel(label, shouldUseTranslatedLabels, i18n);
313114
+ var displayUnitLabel = getTranslatedLabel(unit, shouldUseTranslatedLabels, i18n);
313033
313115
  return /*#__PURE__*/React$1.createElement("div", {
313034
313116
  className: classnames("".concat(BEM_BASE, "-wrapper"), _defineProperty$c(_defineProperty$c({}, "".concat(BEM_BASE, "-wrapper--vertical"), layout === CARD_LAYOUTS.VERTICAL), "".concat(BEM_BASE, "-wrapper--horizontal"), layout === CARD_LAYOUTS.HORIZONTAL)),
313035
313117
  style: {
@@ -313068,7 +313150,7 @@ React keys must be passed directly to JSX without using spread:
313068
313150
  measurementUnitLabel: measurementUnitLabel,
313069
313151
  onClick: onValueClick
313070
313152
  }), /*#__PURE__*/React$1.createElement(UnitRenderer$1, {
313071
- unit: unit,
313153
+ unit: displayUnitLabel,
313072
313154
  testId: "".concat(testId, "-unit")
313073
313155
  })), !isNil(secondaryValue) ? /*#__PURE__*/React$1.createElement("div", {
313074
313156
  "data-testid": "".concat(testId, "-secondary-value"),
@@ -313597,7 +313679,7 @@ React keys must be passed directly to JSX without using spread:
313597
313679
  };
313598
313680
  var ValueContent$1 = ValueContent;
313599
313681
 
313600
- var _excluded$p = ["title", "content", "size", "values", "isEditable", "isResizable", "i18n", "dataState", "id", "locale", "customFormatter", "children", "fontSize", "isNumberValueCompact", "testID", "testId", "onAttributeClick", "className", "shouldUseTranslatedLabels"];
313682
+ var _excluded$p = ["title", "content", "size", "values", "isEditable", "isResizable", "i18n", "dataState", "id", "locale", "timeZone", "customFormatter", "children", "fontSize", "isNumberValueCompact", "testID", "testId", "onAttributeClick", "className", "shouldUseTranslatedLabels"];
313601
313683
  function ownKeys$Z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
313602
313684
  function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Z(Object(t), !0).forEach(function (r) { _defineProperty$c(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
313603
313685
 
@@ -313618,6 +313700,7 @@ React keys must be passed directly to JSX without using spread:
313618
313700
  dataState = _ref.dataState,
313619
313701
  id = _ref.id,
313620
313702
  locale = _ref.locale,
313703
+ timeZone = _ref.timeZone,
313621
313704
  customFormatter = _ref.customFormatter,
313622
313705
  children = _ref.children,
313623
313706
  fontSize = _ref.fontSize,
@@ -313628,6 +313711,8 @@ React keys must be passed directly to JSX without using spread:
313628
313711
  className = _ref.className,
313629
313712
  shouldUseTranslatedLabels = _ref.shouldUseTranslatedLabels,
313630
313713
  others = _objectWithoutProperties$3(_ref, _excluded$p);
313714
+ var effectiveTimezone = timeZone || dayjs$1.tz.guess();
313715
+ dayjs$1.tz.setDefault(effectiveTimezone);
313631
313716
  var availableActions = _objectSpread$X({
313632
313717
  expand: false
313633
313718
  }, others.availableActions);
@@ -313653,6 +313738,7 @@ React keys must be passed directly to JSX without using spread:
313653
313738
  i18n: i18n,
313654
313739
  shouldUseTranslatedLabels: shouldUseTranslatedLabels,
313655
313740
  locale: locale,
313741
+ timeZone: effectiveTimezone,
313656
313742
  id: id,
313657
313743
  className: classnames(className, _defineProperty$c(_defineProperty$c({}, "".concat(BASE_CLASS_NAME$2, "__horizontal"), layout === CARD_LAYOUTS.HORIZONTAL), "".concat(BASE_CLASS_NAME$2, "__vertical"), layout === CARD_LAYOUTS.VERTICAL))
313658
313744
  // TODO: remove deprecated 'testID' in v3.
@@ -321120,7 +321206,7 @@ React keys must be passed directly to JSX without using spread:
321120
321206
  };
321121
321207
  var ImageUploader$1 = ImageUploader;
321122
321208
 
321123
- var _excluded$m = ["title", "content", "children", "values", "size", "onCardAction", "availableActions", "isEditable", "isExpanded", "isResizable", "error", "isLoading", "maxFileSizeInBytes", "i18n", "i18n", "renderIconByName", "locale", "onUpload", "validateUploadedImage", "onBrowseClick", "testID", "testId"];
321209
+ var _excluded$m = ["title", "content", "children", "values", "size", "onCardAction", "availableActions", "isEditable", "isExpanded", "isResizable", "error", "isLoading", "maxFileSizeInBytes", "i18n", "i18n", "renderIconByName", "locale", "onUpload", "validateUploadedImage", "onBrowseClick", "testID", "testId", "timeZone"];
321124
321210
  function ownKeys$S(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
321125
321211
  function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$S(Object(t), !0).forEach(function (r) { _defineProperty$c(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
321126
321212
  var iotPrefix$W = settings.iotPrefix;
@@ -321142,6 +321228,7 @@ React keys must be passed directly to JSX without using spread:
321142
321228
  }
321143
321229
  },
321144
321230
  locale: 'en',
321231
+ timeZone: undefined,
321145
321232
  content: {},
321146
321233
  maxFileSizeInBytes: 1048576,
321147
321234
  accept: null,
@@ -321201,7 +321288,10 @@ React keys must be passed directly to JSX without using spread:
321201
321288
  onBrowseClick = _ref.onBrowseClick,
321202
321289
  testID = _ref.testID,
321203
321290
  testId = _ref.testId,
321291
+ timeZone = _ref.timeZone,
321204
321292
  others = _objectWithoutProperties$3(_ref, _excluded$m);
321293
+ var effectiveTimezone = timeZone || dayjs$1.tz.guess();
321294
+ dayjs$1.tz.setDefault(effectiveTimezone);
321205
321295
  var _useState = React$1.useState(content),
321206
321296
  _useState2 = _slicedToArray$9(_useState, 2),
321207
321297
  imgContent = _useState2[0],
@@ -321260,7 +321350,8 @@ React keys must be passed directly to JSX without using spread:
321260
321350
  // TODO: remove deprecated testID prop in v3.
321261
321351
  ,
321262
321352
  testId: testID || testId,
321263
- locale: locale
321353
+ locale: locale,
321354
+ timeZone: effectiveTimezone
321264
321355
  }, others, {
321265
321356
  error: error,
321266
321357
  i18n: mergedI18n
@@ -321336,6 +321427,13 @@ React keys must be passed directly to JSX without using spread:
321336
321427
  },
321337
321428
  "required": false
321338
321429
  },
321430
+ "timeZone": {
321431
+ "defaultValue": {
321432
+ "value": "undefined",
321433
+ "computed": true
321434
+ },
321435
+ "required": false
321436
+ },
321339
321437
  "content": {
321340
321438
  "defaultValue": {
321341
321439
  "value": "{}",
@@ -321441,7 +321539,7 @@ React keys must be passed directly to JSX without using spread:
321441
321539
  });
321442
321540
  var variableValue =
321443
321541
  // format the TIMESTAMP type columns
321444
- (matchingColumn === null || matchingColumn === void 0 ? void 0 : matchingColumn.type) === 'TIMESTAMP' ? dayjs$1(row[variable]).format(defaultDateFormatPattern) : row[variable];
321542
+ (matchingColumn === null || matchingColumn === void 0 ? void 0 : matchingColumn.type) === 'TIMESTAMP' ? dayjs$1.tz(row[variable]).format(defaultDateFormatPattern) : row[variable];
321445
321543
  // encode value so the URL can be valid
321446
321544
  var encodedValue = typeof variableValue === 'string' && variableValue !== null && variableValue !== void 0 && variableValue.includes('https') ? variableValue : encodeURIComponent(variableValue);
321447
321545
  variableLink = variableLink.replace("{".concat(variable, "}"), encodedValue);
@@ -321509,7 +321607,7 @@ React keys must be passed directly to JSX without using spread:
321509
321607
  var defaultDateFormatPattern = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DAYJS_INPUT_FORMATS.SECONDS;
321510
321608
  return _objectSpread$R(_objectSpread$R({}, column.type === 'TIMESTAMP' ? {
321511
321609
  filterFunction: function filterFunction(cellValue, filterValue) {
321512
- var dateString = dayjs$1(cellValue).format(defaultDateFormatPattern);
321610
+ var dateString = dayjs$1.tz(cellValue).format(defaultDateFormatPattern);
321513
321611
  return dateString.includes(filterValue);
321514
321612
  }
321515
321613
  } : {}), {}, {
@@ -321735,13 +321833,14 @@ React keys must be passed directly to JSX without using spread:
321735
321833
  };
321736
321834
  var ThresholdIcon$1 = ThresholdIcon;
321737
321835
 
321738
- var _excluded$l = ["id", "title", "isExpanded", "content", "children", "size", "onCardAction", "values", "filters", "isEditable", "isResizable", "i18n", "tooltip", "locale", "timeRange", "timeRangeOptions", "availableActions", "isLoading", "testID", "testId", "className", "renderDateDropdownInPortal", "withToolbarTooltips", "defaultDateFormatPattern", "extraActions"];
321836
+ var _excluded$l = ["id", "title", "isExpanded", "content", "children", "size", "onCardAction", "values", "filters", "isEditable", "isResizable", "i18n", "tooltip", "locale", "timeZone", "timeRange", "timeRangeOptions", "availableActions", "isLoading", "testID", "testId", "className", "renderDateDropdownInPortal", "withToolbarTooltips", "defaultDateFormatPattern", "extraActions"];
321739
321837
  function ownKeys$Q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
321740
321838
  function _objectSpread$Q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Q(Object(t), !0).forEach(function (r) { _defineProperty$c(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
321741
321839
  var iotPrefix$U = settings.iotPrefix;
321742
321840
  var defaultProps$$ = {
321743
321841
  size: CARD_SIZES.LARGE,
321744
321842
  locale: 'en',
321843
+ timeZone: undefined,
321745
321844
  values: [],
321746
321845
  filters: [],
321747
321846
  i18n: {
@@ -321795,6 +321894,7 @@ React keys must be passed directly to JSX without using spread:
321795
321894
  i18n = _ref.i18n,
321796
321895
  tooltip = _ref.tooltip,
321797
321896
  locale = _ref.locale,
321897
+ timeZone = _ref.timeZone,
321798
321898
  timeRange = _ref.timeRange,
321799
321899
  timeRangeOptions = _ref.timeRangeOptions,
321800
321900
  availableActions = _ref.availableActions,
@@ -321808,8 +321908,8 @@ React keys must be passed directly to JSX without using spread:
321808
321908
  extraActions = _ref.extraActions,
321809
321909
  others = _objectWithoutProperties$3(_ref, _excluded$l);
321810
321910
  var mergedI18n = _objectSpread$Q(_objectSpread$Q({}, defaultProps$$.i18n), i18n);
321811
-
321812
- // Set the locale
321911
+ var effectiveTimezone = timeZone || dayjs$1.tz.guess();
321912
+ dayjs$1.tz.setDefault(effectiveTimezone);
321813
321913
  dayjs$1.locale(locale);
321814
321914
  /** Searches for variables and updates the card if it is passed the cardVariables prop */
321815
321915
  // Need to skip the linkTemplate variable for now because we will handle it at render time per row
@@ -321992,7 +322092,7 @@ React keys must be passed directly to JSX without using spread:
321992
322092
  var values = _objectSpread$Q({}, row.values);
321993
322093
  Object.keys(values).forEach(function (column) {
321994
322094
  if (!isEditable && filteredTimestampColumns.includes(column)) {
321995
- values[column] = values[column] ? dayjs$1(values[column]).format(defaultDateFormatPattern) : '';
322095
+ values[column] = values[column] ? dayjs$1.tz(values[column]).format(defaultDateFormatPattern) : '';
321996
322096
  }
321997
322097
  });
321998
322098
  return _objectSpread$Q(_objectSpread$Q({}, row), {}, {
@@ -322170,6 +322270,7 @@ React keys must be passed directly to JSX without using spread:
322170
322270
  timeRangeOptions: timeRangeOptions,
322171
322271
  renderDateDropdownInPortal: renderDateDropdownInPortal,
322172
322272
  locale: locale,
322273
+ timeZone: effectiveTimezone,
322173
322274
  id: id,
322174
322275
  extraActions: extraActions
322175
322276
  });
@@ -322187,6 +322288,7 @@ React keys must be passed directly to JSX without using spread:
322187
322288
  isExpanded: isExpanded,
322188
322289
  i18n: mergedI18n,
322189
322290
  locale: locale,
322291
+ timeZone: effectiveTimezone,
322190
322292
  resizeHandles: resizeHandles,
322191
322293
  hideHeader: true,
322192
322294
  className: classnames("".concat(iotPrefix$U, "--table-card"), className, _defineProperty$c({}, "".concat(iotPrefix$U, "--table-card--with-tooltips"), withToolbarTooltips))
@@ -322294,6 +322396,13 @@ React keys must be passed directly to JSX without using spread:
322294
322396
  },
322295
322397
  "required": false
322296
322398
  },
322399
+ "timeZone": {
322400
+ "defaultValue": {
322401
+ "value": "undefined",
322402
+ "computed": true
322403
+ },
322404
+ "required": false
322405
+ },
322297
322406
  "values": {
322298
322407
  "defaultValue": {
322299
322408
  "value": "[]",
@@ -322345,7 +322454,7 @@ React keys must be passed directly to JSX without using spread:
322345
322454
  };
322346
322455
  var TableCard$1 = TableCard;
322347
322456
 
322348
- var _excluded$k = ["title", "content", "children", "size", "interval", "isEditable", "isResizable", "values", "locale", "i18n", "isExpanded", "timeRange", "isLazyLoading", "isLoading", "domainRange", "tooltipDateFormatPattern", "tooltipShowTotals", "showTimeInGMT", "testID", "testId", "defaultDateFormatPattern"];
322457
+ var _excluded$k = ["title", "content", "children", "size", "interval", "isEditable", "isResizable", "values", "locale", "timeZone", "i18n", "isExpanded", "timeRange", "isLazyLoading", "isLoading", "domainRange", "tooltipDateFormatPattern", "tooltipShowTotals", "showTimeInGMT", "testID", "testId", "defaultDateFormatPattern"];
322349
322458
  function ownKeys$P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
322350
322459
  function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty$c(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
322351
322460
  var iotPrefix$T = settings.iotPrefix;
@@ -322462,6 +322571,7 @@ React keys must be passed directly to JSX without using spread:
322462
322571
  },
322463
322572
  chartType: TIME_SERIES_TYPES.LINE,
322464
322573
  locale: 'en',
322574
+ timeZone: undefined,
322465
322575
  content: {
322466
322576
  series: [],
322467
322577
  timeDataSourceId: 'timestamp',
@@ -322492,6 +322602,7 @@ React keys must be passed directly to JSX without using spread:
322492
322602
  isResizable = _ref.isResizable,
322493
322603
  initialValues = _ref.values,
322494
322604
  locale = _ref.locale,
322605
+ timeZone = _ref.timeZone,
322495
322606
  i18n = _ref.i18n,
322496
322607
  isExpanded = _ref.isExpanded,
322497
322608
  timeRange = _ref.timeRange,
@@ -322505,6 +322616,9 @@ React keys must be passed directly to JSX without using spread:
322505
322616
  testId = _ref.testId,
322506
322617
  defaultDateFormatPattern = _ref.defaultDateFormatPattern,
322507
322618
  others = _objectWithoutProperties$3(_ref, _excluded$k);
322619
+ var effectiveTimezone = timeZone || dayjs$1.tz.guess();
322620
+ dayjs$1.tz.setDefault(effectiveTimezone);
322621
+ dayjs$1.locale(locale);
322508
322622
  // need to deep merge the nested content default props as default props only uses a shallow merge natively
322509
322623
  var contentWithDefaults = React$1.useMemo(function () {
322510
322624
  return _defaultsDeep({}, content, defaultProps$_.content);
@@ -322534,8 +322648,6 @@ React keys must be passed directly to JSX without using spread:
322534
322648
  valuesProp = _handleCardVariables.values;
322535
322649
  var chartRef = React$1.useRef(null);
322536
322650
  var previousTick = React$1.useRef();
322537
- dayjs$1.locale(locale);
322538
-
322539
322651
  // Workaround since downstream consumers might keep regenerating the series object and useMemo does a direct in-memory comparison for the object
322540
322652
  var objectAgnosticSeries = JSON.stringify(series);
322541
322653
  var objectAgnosticThresholds = JSON.stringify(thresholds);
@@ -322615,7 +322727,7 @@ React keys must be passed directly to JSX without using spread:
322615
322727
  });
322616
322728
  return {
322617
322729
  id: "dataindex-".concat(index),
322618
- values: _objectSpread$P(_objectSpread$P({}, _omit(value, timeDataSourceId)), {}, _defineProperty$c({}, timeDataSourceId, dayjs$1(value[timeDataSourceId]).format(defaultDateFormatPattern))),
322730
+ values: _objectSpread$P(_objectSpread$P({}, _omit(value, timeDataSourceId)), {}, _defineProperty$c({}, timeDataSourceId, dayjs$1.tz(value[timeDataSourceId]).format(defaultDateFormatPattern))),
322619
322731
  isSelectable: false
322620
322732
  };
322621
322733
  });
@@ -322769,6 +322881,7 @@ React keys must be passed directly to JSX without using spread:
322769
322881
  timeRange: timeRange
322770
322882
  }, others, {
322771
322883
  locale: locale,
322884
+ timeZone: effectiveTimezone,
322772
322885
  isExpanded: isExpanded,
322773
322886
  isEditable: isEditable,
322774
322887
  isEmpty: isChartDataEmpty,
@@ -322919,6 +323032,13 @@ React keys must be passed directly to JSX without using spread:
322919
323032
  },
322920
323033
  "required": false
322921
323034
  },
323035
+ "timeZone": {
323036
+ "defaultValue": {
323037
+ "value": "undefined",
323038
+ "computed": true
323039
+ },
323040
+ "required": false
323041
+ },
322922
323042
  "content": {
322923
323043
  "defaultValue": {
322924
323044
  "value": "{\n series: [],\n timeDataSourceId: 'timestamp',\n includeZeroOnXaxis: false,\n includeZeroOnYaxis: false,\n showLegend: true,\n legendPosition: 'bottom',\n truncation: {\n type: 'end_line',\n threshold: 20,\n numCharacter: 20,\n },\n}",
@@ -323218,7 +323338,7 @@ React keys must be passed directly to JSX without using spread:
323218
323338
  }
323219
323339
  });
323220
323340
 
323221
- var _excluded$j = ["id", "title", "size", "data", "isLoading", "isResizable", "loadData", "hasMoreData", "layout", "className", "children", "testID", "testId"];
323341
+ var _excluded$j = ["id", "title", "size", "data", "isLoading", "isResizable", "loadData", "hasMoreData", "layout", "className", "children", "testID", "testId", "timeZone"];
323222
323342
  function ownKeys$O(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
323223
323343
  function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$O(Object(t), !0).forEach(function (r) { _defineProperty$c(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
323224
323344
  var ListCard = function ListCard(_ref) {
@@ -323235,7 +323355,10 @@ React keys must be passed directly to JSX without using spread:
323235
323355
  children = _ref.children,
323236
323356
  testID = _ref.testID,
323237
323357
  testId = _ref.testId,
323358
+ timeZone = _ref.timeZone,
323238
323359
  others = _objectWithoutProperties$3(_ref, _excluded$j);
323360
+ var effectiveTimezone = timeZone || dayjs$1.tz.guess();
323361
+ dayjs$1.tz.setDefault(effectiveTimezone);
323239
323362
  var handleScroll = function handleScroll(e) {
323240
323363
  var element = e.target;
323241
323364
  // height of the elements content - height element’s content is scrolled vertically === height of the scrollable part of the element
@@ -323253,7 +323376,8 @@ React keys must be passed directly to JSX without using spread:
323253
323376
  resizeHandles: resizeHandles
323254
323377
  // TODO: remove deprecated 'testID' in v3.
323255
323378
  ,
323256
- testId: testID || testId
323379
+ testId: testID || testId,
323380
+ timeZone: effectiveTimezone
323257
323381
  }, others), /*#__PURE__*/React$1.createElement("div", {
323258
323382
  className: classnames('list-card', className),
323259
323383
  style: {
@@ -326904,7 +327028,7 @@ React keys must be passed directly to JSX without using spread:
326904
327028
  description: evt.target.value
326905
327029
  }));
326906
327030
  },
326907
- value: description
327031
+ value: getTranslatedLabel(description, shouldUseTranslatedLabels, mergedI18n)
326908
327032
  })), /*#__PURE__*/React$1.createElement("div", {
326909
327033
  className: "".concat(baseClassName, "--input")
326910
327034
  }, /*#__PURE__*/React$1.createElement(react.Dropdown, {
@@ -328808,7 +328932,7 @@ React keys must be passed directly to JSX without using spread:
328808
328932
  unit: evt.target.value
328809
328933
  }));
328810
328934
  },
328811
- value: editDataItem.unit
328935
+ value: getTranslatedLabel(editDataItem.unit, shouldUseTranslatedLabels, i18n)
328812
328936
  })), /*#__PURE__*/React$1.createElement("div", {
328813
328937
  className: "".concat(baseClassName, "--input-group--item")
328814
328938
  }, hasDecimalPlacesDropdown && /*#__PURE__*/React$1.createElement(react.Dropdown, {