cx 25.7.0 → 25.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/widgets.js CHANGED
@@ -32,8 +32,8 @@ import {
32
32
  enableCultureSensitiveFormatting,
33
33
  Format,
34
34
  ContentResolver,
35
- KeySelection,
36
35
  DataProxy,
36
+ KeySelection,
37
37
  InstanceCache,
38
38
  StaticText,
39
39
  DataAdapter,
@@ -152,7 +152,7 @@ function _extends() {
152
152
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
153
153
  }
154
154
  return n;
155
- }),
155
+ }),
156
156
  _extends.apply(null, arguments)
157
157
  );
158
158
  }
@@ -164,7 +164,7 @@ function _objectWithoutPropertiesLoose(r, e) {
164
164
  var t = {};
165
165
  for (var n in r)
166
166
  if ({}.hasOwnProperty.call(r, n)) {
167
- if (-1 !== e.indexOf(n)) continue;
167
+ if (e.includes(n)) continue;
168
168
  t[n] = r[n];
169
169
  }
170
170
  return t;
@@ -175,7 +175,7 @@ function _setPrototypeOf(t, e) {
175
175
  ? Object.setPrototypeOf.bind()
176
176
  : function (t, e) {
177
177
  return (t.__proto__ = e), t;
178
- }),
178
+ }),
179
179
  _setPrototypeOf(t, e)
180
180
  );
181
181
  }
@@ -269,7 +269,7 @@ var HtmlElement = /*#__PURE__*/ (function (_Container) {
269
269
  if (this.urlAttributes.length == 0) delete this.urlAttributes;
270
270
  (_Container$prototype$ = _Container.prototype.declareData).call.apply(
271
271
  _Container$prototype$,
272
- [this].concat(Array.prototype.slice.call(arguments), [data])
272
+ [this].concat(Array.prototype.slice.call(arguments), [data]),
273
273
  );
274
274
  };
275
275
  _proto.isValidHtmlAttribute = function isValidHtmlAttribute(attrName) {
@@ -360,7 +360,7 @@ var HtmlElement = /*#__PURE__*/ (function (_Container) {
360
360
  key: key,
361
361
  },
362
362
  data.attrs,
363
- events
363
+ events,
364
364
  );
365
365
  if (data.classNames) props.className = data.classNames;
366
366
  if (data.style) props.style = data.style;
@@ -386,7 +386,7 @@ var HtmlElement = /*#__PURE__*/ (function (_Container) {
386
386
  data: data,
387
387
  children: props.children,
388
388
  },
389
- key
389
+ key,
390
390
  );
391
391
  return VDOM.createElement(this.tag, props, props.children);
392
392
  };
@@ -462,7 +462,7 @@ Widget.factory = function (type, config, more) {
462
462
  {
463
463
  tag: type,
464
464
  },
465
- config
465
+ config,
466
466
  );
467
467
  return originalWidgetFactory.call(Widget, type, config, more);
468
468
  };
@@ -480,12 +480,12 @@ function getHtmlElementFactory(tagName) {
480
480
  {
481
481
  tag: tagName,
482
482
  },
483
- flattenProps(config)
483
+ flattenProps(config),
484
484
  );
485
485
  },
486
486
  {
487
487
  tag: tagName,
488
- }
488
+ },
489
489
  ));
490
490
  }
491
491
  function cx(typeName, props) {
@@ -523,7 +523,7 @@ function react(config) {
523
523
  function getMessage(options) {
524
524
  debug(
525
525
  deprecatedFlag,
526
- "Call enableMsgBoxes() on startup to use Cx based message boxes. Message boxes are not auto enabled anymore to reduce the bundle size for apps that do not use them. "
526
+ "Call enableMsgBoxes() on startup to use Cx based message boxes. Message boxes are not auto enabled anymore to reduce the bundle size for apps that do not use them. ",
527
527
  );
528
528
  if (!options) return null;
529
529
  if (isString(options)) return options;
@@ -621,10 +621,10 @@ registerIcon(
621
621
  d: "M3 5h24v24H3z",
622
622
  }),
623
623
  ],
624
- })
624
+ }),
625
625
  );
626
626
  },
627
- true
627
+ true,
628
628
  );
629
629
 
630
630
  var CheckIcon = registerIcon(
@@ -638,10 +638,10 @@ var CheckIcon = registerIcon(
638
638
  d: "M7.136 42.94l20.16 14.784 29.568-40.32-9.72-7.128-22.598 30.816-10.44-7.656z",
639
639
  fill: "currentColor",
640
640
  }),
641
- })
641
+ }),
642
642
  );
643
643
  },
644
- true
644
+ true,
645
645
  );
646
646
 
647
647
  var ClearIcon = registerIcon(
@@ -657,10 +657,10 @@ var ClearIcon = registerIcon(
657
657
  stroke: "currentColor",
658
658
  d: "M16.9 16l4.92-4.92c.24-.24.24-.6 0-.84s-.6-.24-.84 0l-4.92 4.92-5.04-4.98c-.24-.24-.6-.24-.84 0s-.24.6 0 .84L15.16 16l-4.98 4.98c-.24.24-.24.6 0 .84s.6.24.84 0L16 16.84l4.98 4.98c.24.24.6.24.84 0s.24-.6 0-.84L16.9 16z",
659
659
  }),
660
- })
660
+ }),
661
661
  );
662
662
  },
663
- true
663
+ true,
664
664
  );
665
665
 
666
666
  registerIcon(
@@ -676,10 +676,10 @@ registerIcon(
676
676
  stroke: "currentColor",
677
677
  d: "M17.8 16l9.84-9.84c.48-.48.48-1.2 0-1.68s-1.2-.48-1.68 0l-9.84 9.84L6.04 4.36c-.48-.48-1.2-.48-1.68 0s-.48 1.2 0 1.68L14.32 16l-9.96 9.96c-.48.48-.48 1.2 0 1.68s1.2.48 1.68 0L16 17.68l9.96 9.96c.48.48 1.2.48 1.68 0s.48-1.2 0-1.68L17.8 16z",
678
678
  }),
679
- })
679
+ }),
680
680
  );
681
681
  },
682
- true
682
+ true,
683
683
  );
684
684
 
685
685
  var DropdownIcon = registerIcon(
@@ -695,10 +695,10 @@ var DropdownIcon = registerIcon(
695
695
  stroke: "currentColor",
696
696
  d: "M4.516 8.147L10.01 12.5l5.474-4.33-.473-.65-5 3.98-5-4z",
697
697
  }),
698
- })
698
+ }),
699
699
  );
700
700
  },
701
- true
701
+ true,
702
702
  );
703
703
 
704
704
  registerIcon(
@@ -713,10 +713,10 @@ registerIcon(
713
713
  fill: "currentColor",
714
714
  stroke: "none",
715
715
  }),
716
- })
716
+ }),
717
717
  );
718
718
  },
719
- true
719
+ true,
720
720
  );
721
721
 
722
722
  registerIcon(
@@ -738,10 +738,10 @@ registerIcon(
738
738
  stroke: "none",
739
739
  }),
740
740
  ],
741
- })
741
+ }),
742
742
  );
743
743
  },
744
- true
744
+ true,
745
745
  );
746
746
 
747
747
  registerIcon(
@@ -761,10 +761,10 @@ registerIcon(
761
761
  fill: "currentColor",
762
762
  }),
763
763
  ],
764
- })
764
+ }),
765
765
  );
766
766
  },
767
- true
767
+ true,
768
768
  );
769
769
 
770
770
  registerIcon(
@@ -785,10 +785,10 @@ registerIcon(
785
785
  fill: "currentColor",
786
786
  d: "M43.94 25.14c0-10.3-8.37-18.68-18.7-18.68-10.3 0-18.67 8.37-18.67 18.68h4.07c0-8.07 6.54-14.6 14.6-14.6 8.08 0 14.63 6.53 14.63 14.6h4.07z",
787
787
  }),
788
- })
788
+ }),
789
789
  );
790
790
  },
791
- true
791
+ true,
792
792
  );
793
793
 
794
794
  registerIcon(
@@ -802,10 +802,10 @@ registerIcon(
802
802
  fill: "currentColor",
803
803
  d: "M25.595 22.036l-5.26-5.075c.75-1.18 1.206-2.56 1.206-4.05 0-4.32-3.63-7.82-8.103-7.82-4.477 0-8.107 3.503-8.107 7.82 0 4.32 3.63 7.825 8.106 7.825 1.544 0 2.972-.44 4.198-1.162l5.26 5.074c.37.356.98.354 1.35 0l1.352-1.304c.37-.357.37-.947 0-1.304zm-12.16-3.91c-2.985 0-5.405-2.336-5.405-5.216 0-2.88 2.42-5.214 5.405-5.214 2.984 0 5.404 2.335 5.404 5.214 0 2.88-2.42 5.215-5.407 5.215z",
804
804
  }),
805
- })
805
+ }),
806
806
  );
807
807
  },
808
- true
808
+ true,
809
809
  );
810
810
 
811
811
  registerIcon(
@@ -925,10 +925,10 @@ registerIcon(
925
925
  }),
926
926
  ],
927
927
  }),
928
- })
928
+ }),
929
929
  );
930
930
  },
931
- true
931
+ true,
932
932
  );
933
933
 
934
934
  registerIcon(
@@ -950,10 +950,10 @@ registerIcon(
950
950
  stroke: "none",
951
951
  }),
952
952
  ],
953
- })
953
+ }),
954
954
  );
955
955
  },
956
- true
956
+ true,
957
957
  );
958
958
 
959
959
  var Icon = /*#__PURE__*/ (function (_Widget) {
@@ -970,7 +970,7 @@ var Icon = /*#__PURE__*/ (function (_Widget) {
970
970
  {
971
971
  name: undefined,
972
972
  },
973
- ])
973
+ ]),
974
974
  );
975
975
  };
976
976
  _proto.render = function render(context, instance, key) {
@@ -1028,7 +1028,7 @@ var Button = /*#__PURE__*/ (function (_HtmlElement) {
1028
1028
  disabled: undefined,
1029
1029
  enabled: undefined,
1030
1030
  },
1031
- ])
1031
+ ]),
1032
1032
  );
1033
1033
  };
1034
1034
  _proto.prepareData = function prepareData(context, instance) {
@@ -1092,7 +1092,7 @@ var Button = /*#__PURE__*/ (function (_HtmlElement) {
1092
1092
  props.className = this.CSS.expand(
1093
1093
  props.className,
1094
1094
  this.CSS.state("icon"),
1095
- children.length == 0 && this.CSS.state("empty")
1095
+ children.length == 0 && this.CSS.state("empty"),
1096
1096
  );
1097
1097
  if (children.length == 0) {
1098
1098
  props.children.push(
@@ -1102,8 +1102,8 @@ var Button = /*#__PURE__*/ (function (_HtmlElement) {
1102
1102
  className: this.CSS.element(this.baseClass, "baseline"),
1103
1103
  children: "\xA0",
1104
1104
  },
1105
- "baseline"
1106
- )
1105
+ "baseline",
1106
+ ),
1107
1107
  );
1108
1108
  }
1109
1109
  }
@@ -1139,7 +1139,7 @@ var DocumentTitle = /*#__PURE__*/ (function (_Widget) {
1139
1139
  action: undefined,
1140
1140
  separator: undefined,
1141
1141
  },
1142
- ])
1142
+ ]),
1143
1143
  );
1144
1144
  };
1145
1145
  _proto.explore = function explore(context, instance) {
@@ -1207,8 +1207,8 @@ var List = /*#__PURE__*/ (function (_Widget) {
1207
1207
  style: this.itemStyle,
1208
1208
  disabled: this.itemDisabled,
1209
1209
  },
1210
- this.item
1211
- )
1210
+ this.item,
1211
+ ),
1212
1212
  );
1213
1213
  delete this.children;
1214
1214
  this.selection = Selection.create(this.selection, {
@@ -1244,7 +1244,7 @@ var List = /*#__PURE__*/ (function (_Widget) {
1244
1244
  emptyText: undefined,
1245
1245
  tabIndex: undefined,
1246
1246
  },
1247
- ].concat(Array.prototype.slice.call(arguments))
1247
+ ].concat(Array.prototype.slice.call(arguments)),
1248
1248
  );
1249
1249
  };
1250
1250
  _proto.prepareData = function prepareData(context, instance) {
@@ -1322,7 +1322,7 @@ var List = /*#__PURE__*/ (function (_Widget) {
1322
1322
  items: items,
1323
1323
  selectable: !this.selection.isDummy || this.onItemClick,
1324
1324
  },
1325
- key
1325
+ key,
1326
1326
  );
1327
1327
  };
1328
1328
  _proto.groupBy = function groupBy(grouping) {
@@ -1403,7 +1403,7 @@ var ListComponent = /*#__PURE__*/ (function (_VDOM$Component) {
1403
1403
  },
1404
1404
  {
1405
1405
  passive: true,
1406
- }
1406
+ },
1407
1407
  );
1408
1408
  }
1409
1409
  this.componentDidUpdate();
@@ -1499,7 +1499,7 @@ var ListComponent = /*#__PURE__*/ (function (_VDOM$Component) {
1499
1499
  onDoubleClick: onDblClick,
1500
1500
  children: x.content,
1501
1501
  },
1502
- x.key
1502
+ x.key,
1503
1503
  );
1504
1504
  } else {
1505
1505
  return /*#__PURE__*/ jsx(
@@ -1508,7 +1508,7 @@ var ListComponent = /*#__PURE__*/ (function (_VDOM$Component) {
1508
1508
  className: CSS.element(baseClass, x.type),
1509
1509
  children: x.content,
1510
1510
  },
1511
- x.key
1511
+ x.key,
1512
1512
  );
1513
1513
  }
1514
1514
  });
@@ -1526,7 +1526,7 @@ var ListComponent = /*#__PURE__*/ (function (_VDOM$Component) {
1526
1526
  data.classNames,
1527
1527
  CSS.state({
1528
1528
  focused: this.state.focused,
1529
- })
1529
+ }),
1530
1530
  ),
1531
1531
  style: data.style,
1532
1532
  tabIndex: widget.focusable && selectable && items.length > 0 ? data.tabIndex || 0 : null,
@@ -1748,7 +1748,7 @@ var ListItem = /*#__PURE__*/ (function (_Container) {
1748
1748
  {
1749
1749
  disabled: undefined,
1750
1750
  },
1751
- ])
1751
+ ]),
1752
1752
  );
1753
1753
  };
1754
1754
  return ListItem;
@@ -1798,7 +1798,7 @@ var Sandbox = /*#__PURE__*/ (function (_PureContainer) {
1798
1798
  storage: undefined,
1799
1799
  key: undefined,
1800
1800
  },
1801
- ].concat(Array.prototype.slice.call(arguments))
1801
+ ].concat(Array.prototype.slice.call(arguments)),
1802
1802
  );
1803
1803
  };
1804
1804
  _proto.prepareData = function prepareData(context, instance) {
@@ -1884,7 +1884,7 @@ var Heading = /*#__PURE__*/ (function (_HtmlElement) {
1884
1884
  data.stateMods = _extends(
1885
1885
  {},
1886
1886
  data.stateMods,
1887
- ((_extends2 = {}), (_extends2["level-" + this.level] = true), _extends2)
1887
+ ((_extends2 = {}), (_extends2["level-" + this.level] = true), _extends2),
1888
1888
  );
1889
1889
  _HtmlElement.prototype.prepareData.call(this, context, instance);
1890
1890
  };
@@ -2017,9 +2017,9 @@ var Section = /*#__PURE__*/ (function (_Container) {
2017
2017
  }),
2018
2018
  footer,
2019
2019
  ],
2020
- }
2020
+ },
2021
2021
  ),
2022
- key
2022
+ key,
2023
2023
  );
2024
2024
  };
2025
2025
  return Section;
@@ -2063,7 +2063,7 @@ var FlexBox = /*#__PURE__*/ (function (_Container) {
2063
2063
  (_extends2[this.hpad + "-hpad"] = this.hpad),
2064
2064
  (_extends2[this.vpad + "-vpad"] = this.vpad),
2065
2065
  (_extends2.nested = this.nested),
2066
- _extends2)
2066
+ _extends2),
2067
2067
  );
2068
2068
  _Container.prototype.prepareCSS.call(this, context, instance);
2069
2069
  };
@@ -2096,9 +2096,9 @@ var FlexBox = /*#__PURE__*/ (function (_Container) {
2096
2096
  className: CSS.element(baseClass, "flexbox", flexboxMods),
2097
2097
  children: this.renderChildren(context, instance),
2098
2098
  }),
2099
- }
2099
+ },
2100
2100
  ),
2101
- key
2101
+ key,
2102
2102
  );
2103
2103
  };
2104
2104
  return FlexBox;
@@ -2150,7 +2150,7 @@ var ProgressBar = /*#__PURE__*/ (function (_Widget) {
2150
2150
  text: undefined,
2151
2151
  value: undefined,
2152
2152
  },
2153
- ].concat(Array.prototype.slice.call(arguments))
2153
+ ].concat(Array.prototype.slice.call(arguments)),
2154
2154
  );
2155
2155
  };
2156
2156
  _proto.render = function render(context, instance, key) {
@@ -2169,7 +2169,7 @@ var ProgressBar = /*#__PURE__*/ (function (_Widget) {
2169
2169
  data.classNames,
2170
2170
  CSS.state({
2171
2171
  disabled: disabled,
2172
- })
2172
+ }),
2173
2173
  ),
2174
2174
  style: data.style,
2175
2175
  children: [
@@ -2185,7 +2185,7 @@ var ProgressBar = /*#__PURE__*/ (function (_Widget) {
2185
2185
  }),
2186
2186
  ],
2187
2187
  },
2188
- key
2188
+ key,
2189
2189
  );
2190
2190
  };
2191
2191
  return ProgressBar;
@@ -2342,7 +2342,7 @@ var Resizer = /*#__PURE__*/ (function (_Widget) {
2342
2342
  minSize: undefined,
2343
2343
  maxSize: undefined,
2344
2344
  },
2345
- ])
2345
+ ]),
2346
2346
  );
2347
2347
  };
2348
2348
  _proto.render = function render(context, instance, key) {
@@ -2353,7 +2353,7 @@ var Resizer = /*#__PURE__*/ (function (_Widget) {
2353
2353
  instance: instance,
2354
2354
  data: data,
2355
2355
  },
2356
- key
2356
+ key,
2357
2357
  );
2358
2358
  };
2359
2359
  return Resizer;
@@ -2397,7 +2397,7 @@ var ResizerCmp = /*#__PURE__*/ (function (_VDOM$Component) {
2397
2397
  CSS.state({
2398
2398
  vertical: !widget.horizontal,
2399
2399
  horizontal: widget.horizontal,
2400
- })
2400
+ }),
2401
2401
  ),
2402
2402
  style: data.style,
2403
2403
  onDoubleClick: function onDoubleClick(e) {
@@ -2438,7 +2438,7 @@ var ResizerCmp = /*#__PURE__*/ (function (_VDOM$Component) {
2438
2438
  this.onHandleMove.bind(this),
2439
2439
  this.onDragComplete.bind(this),
2440
2440
  this.state.initialPosition,
2441
- widget.horizontal ? "row-resize" : "col-resize"
2441
+ widget.horizontal ? "row-resize" : "col-resize",
2442
2442
  );
2443
2443
  }
2444
2444
  };
@@ -2510,7 +2510,7 @@ var HighlightedSearchText = /*#__PURE__*/ (function (_Widget) {
2510
2510
  chunks: undefined,
2511
2511
  query: undefined,
2512
2512
  },
2513
- ])
2513
+ ]),
2514
2514
  );
2515
2515
  };
2516
2516
  _proto.render = function render(context, instance, key) {
@@ -2536,7 +2536,7 @@ var HighlightedSearchText = /*#__PURE__*/ (function (_Widget) {
2536
2536
  style: style,
2537
2537
  children: text,
2538
2538
  },
2539
- key + "-" + i
2539
+ key + "-" + i,
2540
2540
  );
2541
2541
  });
2542
2542
  };
@@ -2732,7 +2732,7 @@ function notifyDragMove(e, captureData) {
2732
2732
  var current = vscrollParent.scrollTop;
2733
2733
  var next = Math.min(
2734
2734
  vscrollParent.scrollHeight,
2735
- Math.max(0, current + (scrollY * 5 * Math.min(200, Math.max(50, event.source.height))) / 60)
2735
+ Math.max(0, current + (scrollY * 5 * Math.min(200, Math.max(50, event.source.height))) / 60),
2736
2736
  ); //60 FPS
2737
2737
  vscrollParent.scrollTop = next;
2738
2738
  }
@@ -2740,7 +2740,7 @@ function notifyDragMove(e, captureData) {
2740
2740
  var _current = hscrollParent.scrollLeft;
2741
2741
  var _next = Math.min(
2742
2742
  hscrollParent.scrollWidth,
2743
- Math.max(0, _current + (scrollX * 5 * Math.min(200, Math.max(50, event.source.width))) / 60)
2743
+ Math.max(0, _current + (scrollX * 5 * Math.min(200, Math.max(50, event.source.width))) / 60),
2744
2744
  ); //60 FPS
2745
2745
  hscrollParent.scrollLeft = _next;
2746
2746
  }
@@ -2817,11 +2817,11 @@ function isDragHandleEvent(e) {
2817
2817
  var DragDropContext = VDOM.createContext
2818
2818
  ? VDOM.createContext({
2819
2819
  disabled: false,
2820
- })
2820
+ })
2821
2821
  : function (_ref) {
2822
2822
  var children = _ref.children;
2823
2823
  return children;
2824
- };
2824
+ };
2825
2825
  var ContextWrap = /*#__PURE__*/ (function (_Container) {
2826
2826
  function ContextWrap() {
2827
2827
  return _Container.apply(this, arguments) || this;
@@ -2835,7 +2835,7 @@ var ContextWrap = /*#__PURE__*/ (function (_Container) {
2835
2835
  value: this.value,
2836
2836
  children: this.renderChildren(context, instance),
2837
2837
  },
2838
- key
2838
+ key,
2839
2839
  );
2840
2840
  };
2841
2841
  return ContextWrap;
@@ -2864,7 +2864,7 @@ var Overlay = /*#__PURE__*/ (function (_Container) {
2864
2864
  draggable: undefined,
2865
2865
  zIndex: undefined,
2866
2866
  },
2867
- ])
2867
+ ]),
2868
2868
  );
2869
2869
  };
2870
2870
  _proto.prepareData = function prepareData(context, instance) {
@@ -2898,7 +2898,7 @@ var Overlay = /*#__PURE__*/ (function (_Container) {
2898
2898
  "parentOptions",
2899
2899
  _extends({}, context.parentOptions, {
2900
2900
  dismiss: instance.dismiss,
2901
- })
2901
+ }),
2902
2902
  );
2903
2903
  }
2904
2904
  if (instance.cache("dismiss", instance.dismiss)) instance.markShouldUpdate(context);
@@ -2918,7 +2918,7 @@ var Overlay = /*#__PURE__*/ (function (_Container) {
2918
2918
  parentEl: context.options.parentEl,
2919
2919
  children: this.renderContents(context, instance),
2920
2920
  },
2921
- key
2921
+ key,
2922
2922
  );
2923
2923
  };
2924
2924
  _proto.renderContents = function renderContents(context, instance) {
@@ -2980,7 +2980,7 @@ var Overlay = /*#__PURE__*/ (function (_Container) {
2980
2980
  subscribeToBeforeDismiss: function subscribeToBeforeDismiss(cb) {
2981
2981
  beforeDismiss = cb;
2982
2982
  },
2983
- }
2983
+ },
2984
2984
  );
2985
2985
  options.name = options.name || "overlay";
2986
2986
  stop = startAppLoop(el, storeOrInstance, this, options);
@@ -3153,12 +3153,12 @@ var OverlayComponent = /*#__PURE__*/ (function (_VDOM$Component2) {
3153
3153
  className: CSS.element("overlay", "modal-backdrop"),
3154
3154
  onClick: this.onBackdropClick.bind(this),
3155
3155
  },
3156
- "backdrop"
3156
+ "backdrop",
3157
3157
  ),
3158
3158
  content,
3159
3159
  ],
3160
3160
  },
3161
- "shadow"
3161
+ "shadow",
3162
3162
  );
3163
3163
  }
3164
3164
  return result;
@@ -3415,7 +3415,7 @@ var OverlayComponent = /*#__PURE__*/ (function (_VDOM$Component2) {
3415
3415
  },
3416
3416
  {
3417
3417
  passive: false,
3418
- }
3418
+ },
3419
3419
  );
3420
3420
  };
3421
3421
  _proto3.componentWillUnmount = function componentWillUnmount() {
@@ -3485,8 +3485,8 @@ var OverlayComponent = /*#__PURE__*/ (function (_VDOM$Component2) {
3485
3485
  animated: this.state.animated && !this.unmounting && !this.dismissed,
3486
3486
  "animate-enter": this.state.animated && !this.dismissed,
3487
3487
  "animate-leave": widget.animate && this.dismissed,
3488
- })
3489
- )
3488
+ }),
3489
+ ),
3490
3490
  );
3491
3491
  };
3492
3492
  _proto3.overlayDidUpdate = function overlayDidUpdate() {
@@ -3528,7 +3528,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3528
3528
  {
3529
3529
  placement: undefined,
3530
3530
  },
3531
- ])
3531
+ ]),
3532
3532
  );
3533
3533
  };
3534
3534
  _proto.initInstance = function initInstance(context, instance) {
@@ -3566,7 +3566,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3566
3566
  instance.invoke("pipeValidateDropdownPosition", component.updateDropdownPosition, instance);
3567
3567
  if (instance.parentPositionChangeEvent)
3568
3568
  component.offParentPositionChange = instance.parentPositionChangeEvent.subscribe(
3569
- component.updateDropdownPosition
3569
+ component.updateDropdownPosition,
3570
3570
  );
3571
3571
  };
3572
3572
  _proto.overlayDidUpdate = function overlayDidUpdate(instance, component) {
@@ -3657,7 +3657,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3657
3657
  initialScreenPosition: initialScreenPosition,
3658
3658
  },
3659
3659
  instance,
3660
- component
3660
+ component,
3661
3661
  );
3662
3662
  instance.positionChangeSubscribers.notify();
3663
3663
  };
@@ -3667,7 +3667,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3667
3667
  contentSize,
3668
3668
  rel,
3669
3669
  el,
3670
- noAuto
3670
+ noAuto,
3671
3671
  ) {
3672
3672
  var viewport = getViewportRect(this.screenPadding);
3673
3673
  style.position = "fixed";
@@ -3765,7 +3765,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3765
3765
  contentSize,
3766
3766
  rel,
3767
3767
  el,
3768
- noAuto
3768
+ noAuto,
3769
3769
  ) {
3770
3770
  var viewport = getViewportRect(this.screenPadding);
3771
3771
  style.position = "absolute";
@@ -3857,7 +3857,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3857
3857
  contentSize,
3858
3858
  parentBounds,
3859
3859
  el,
3860
- noAuto
3860
+ noAuto,
3861
3861
  ) {
3862
3862
  switch (this.positioning) {
3863
3863
  case "absolute":
@@ -3984,15 +3984,15 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3984
3984
  {
3985
3985
  className: CSS.element(baseClass, "arrow-border"),
3986
3986
  },
3987
- "arrow-border"
3987
+ "arrow-border",
3988
3988
  ),
3989
3989
  /*#__PURE__*/ jsx(
3990
3990
  "div",
3991
3991
  {
3992
3992
  className: CSS.element(baseClass, "arrow-fill"),
3993
3993
  },
3994
- "arrow-back"
3995
- )
3994
+ "arrow-back",
3995
+ ),
3996
3996
  );
3997
3997
  }
3998
3998
  return result;
@@ -4023,7 +4023,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
4023
4023
  });
4024
4024
  },
4025
4025
  },
4026
- key + "-beacon"
4026
+ key + "-beacon",
4027
4027
  );
4028
4028
  }
4029
4029
  return [beacon, instance.relatedElement && _Overlay.prototype.render.call(this, context, instance, key)];
@@ -4087,7 +4087,7 @@ var Tooltip = /*#__PURE__*/ (function (_Dropdown) {
4087
4087
  title: undefined,
4088
4088
  alwaysVisible: undefined,
4089
4089
  },
4090
- ])
4090
+ ]),
4091
4091
  );
4092
4092
  };
4093
4093
  _proto.prepareData = function prepareData(context, instance) {
@@ -4109,7 +4109,7 @@ var Tooltip = /*#__PURE__*/ (function (_Dropdown) {
4109
4109
  className: CSS.element(baseClass, "title"),
4110
4110
  children: data.title,
4111
4111
  },
4112
- "title"
4112
+ "title",
4113
4113
  ),
4114
4114
  data.text,
4115
4115
  ].concat(_Dropdown.prototype.renderContents.call(this, context, instance));
@@ -4245,7 +4245,7 @@ function getTooltipInstance(e, parentInstance, tooltip, options) {
4245
4245
  {
4246
4246
  relatedElement: target,
4247
4247
  },
4248
- config
4248
+ config,
4249
4249
  );
4250
4250
  var store = new ReadOnlyDataView({
4251
4251
  store: parentInstance.store,
@@ -4401,7 +4401,7 @@ var Window = /*#__PURE__*/ (function (_Overlay) {
4401
4401
  structured: true,
4402
4402
  },
4403
4403
  },
4404
- ])
4404
+ ]),
4405
4405
  );
4406
4406
  };
4407
4407
  _proto.initHelpers = function initHelpers() {
@@ -4415,14 +4415,14 @@ var Window = /*#__PURE__*/ (function (_Overlay) {
4415
4415
  type: ContentPlaceholder,
4416
4416
  name: "header",
4417
4417
  scoped: true,
4418
- }
4418
+ },
4419
4419
  ),
4420
4420
  footer: Widget.create(
4421
4421
  this.footer || {
4422
4422
  type: ContentPlaceholder,
4423
4423
  name: "footer",
4424
4424
  scoped: true,
4425
- }
4425
+ },
4426
4426
  ),
4427
4427
  close:
4428
4428
  this.closable &&
@@ -4435,7 +4435,7 @@ var Window = /*#__PURE__*/ (function (_Overlay) {
4435
4435
  onMouseDown: stopPropagation,
4436
4436
  }),
4437
4437
  },
4438
- ])
4438
+ ]),
4439
4439
  );
4440
4440
  };
4441
4441
  _proto.exploreCleanup = function exploreCleanup(context, instance) {
@@ -4472,7 +4472,7 @@ var Window = /*#__PURE__*/ (function (_Overlay) {
4472
4472
  subscribeToBeforeDismiss: context.options.subscribeToBeforeDismiss,
4473
4473
  children: this.renderContents(context, instance),
4474
4474
  },
4475
- key
4475
+ key,
4476
4476
  );
4477
4477
  };
4478
4478
  return Window;
@@ -4517,7 +4517,7 @@ var WindowComponent = /*#__PURE__*/ (function (_OverlayComponent) {
4517
4517
  onTouchMove: this.onHeaderMouseMove.bind(this),
4518
4518
  children: this.props.header,
4519
4519
  },
4520
- "header"
4520
+ "header",
4521
4521
  );
4522
4522
  }
4523
4523
  if (this.props.footer) {
@@ -4531,7 +4531,7 @@ var WindowComponent = /*#__PURE__*/ (function (_OverlayComponent) {
4531
4531
  style: data.footerStyle,
4532
4532
  children: this.props.footer,
4533
4533
  },
4534
- "footer"
4534
+ "footer",
4535
4535
  );
4536
4536
  }
4537
4537
  var body = /*#__PURE__*/ jsx(
@@ -4544,12 +4544,12 @@ var WindowComponent = /*#__PURE__*/ (function (_OverlayComponent) {
4544
4544
  CSS.element(widget.baseClass, "body", {
4545
4545
  pad: widget.pad,
4546
4546
  }),
4547
- data.bodyClass
4547
+ data.bodyClass,
4548
4548
  ),
4549
4549
  style: data.bodyStyle,
4550
4550
  children: this.props.children,
4551
4551
  },
4552
- "body"
4552
+ "body",
4553
4553
  );
4554
4554
  return [header, body, footer];
4555
4555
  };
@@ -4769,7 +4769,7 @@ var Toast = /*#__PURE__*/ (function (_Overlay) {
4769
4769
  {
4770
4770
  timeout: undefined,
4771
4771
  },
4772
- ])
4772
+ ]),
4773
4773
  );
4774
4774
  };
4775
4775
  _proto.prepareData = function prepareData(context, instance) {
@@ -4814,7 +4814,7 @@ var Toast = /*#__PURE__*/ (function (_Overlay) {
4814
4814
  toaster.el.className = this.CSS.block(
4815
4815
  "toaster",
4816
4816
  null,
4817
- ((_this$CSS$block = {}), (_this$CSS$block["placement-" + placement] = true), _this$CSS$block)
4817
+ ((_this$CSS$block = {}), (_this$CSS$block["placement-" + placement] = true), _this$CSS$block),
4818
4818
  );
4819
4819
  toaster.el.insertBefore(el, toaster.el.firstChild);
4820
4820
  return el;
@@ -4938,8 +4938,8 @@ function createHotPromiseWindowFactoryWithProps(module, factory) {
4938
4938
  (_options$parent = options == null ? void 0 : options.parent) != null
4939
4939
  ? _options$parent
4940
4940
  : options == null
4941
- ? void 0
4942
- : options.store) != null
4941
+ ? void 0
4942
+ : options.store) != null
4943
4943
  ? _ref
4944
4944
  : new Store();
4945
4945
  var reloading = false;
@@ -4967,7 +4967,7 @@ function createHotPromiseWindowFactoryWithProps(module, factory) {
4967
4967
  rerun();
4968
4968
  reloading = false;
4969
4969
  }, 10);
4970
- });
4970
+ });
4971
4971
  rerun();
4972
4972
  });
4973
4973
  };
@@ -5010,7 +5010,7 @@ var Route = /*#__PURE__*/ (function (_PureContainer) {
5010
5010
  {
5011
5011
  url: undefined,
5012
5012
  },
5013
- ])
5013
+ ]),
5014
5014
  );
5015
5015
  };
5016
5016
  _proto.checkVisible = function checkVisible(context, instance, data) {
@@ -5066,8 +5066,8 @@ var Route = /*#__PURE__*/ (function (_PureContainer) {
5066
5066
  {
5067
5067
  remainder: "",
5068
5068
  },
5069
- data
5070
- )
5069
+ data,
5070
+ ),
5071
5071
  );
5072
5072
  },
5073
5073
  });
@@ -5101,7 +5101,7 @@ var RedirectRoute = /*#__PURE__*/ (function (_Route) {
5101
5101
  {
5102
5102
  redirect: undefined,
5103
5103
  },
5104
- ])
5104
+ ]),
5105
5105
  );
5106
5106
  };
5107
5107
  _proto.prepareData = function prepareData(context, instance) {
@@ -5134,7 +5134,7 @@ var Tab = /*#__PURE__*/ (function (_HtmlElement) {
5134
5134
  disabled: undefined,
5135
5135
  text: undefined,
5136
5136
  },
5137
- ].concat(Array.prototype.slice.call(arguments))
5137
+ ].concat(Array.prototype.slice.call(arguments)),
5138
5138
  );
5139
5139
  };
5140
5140
  _proto.prepareData = function prepareData(context, instance) {
@@ -5220,7 +5220,7 @@ var LinkButton = /*#__PURE__*/ (function (_Button) {
5220
5220
  inactiveClass: undefined,
5221
5221
  inactiveStyle: undefined,
5222
5222
  },
5223
- ].concat(Array.prototype.slice.call(arguments))
5223
+ ].concat(Array.prototype.slice.call(arguments)),
5224
5224
  );
5225
5225
  };
5226
5226
  _proto.prepareData = function prepareData(context, instance) {
@@ -5329,7 +5329,7 @@ var MenuItem = /*#__PURE__*/ (function (_HtmlElement) {
5329
5329
  arrow: undefined,
5330
5330
  confirm: undefined,
5331
5331
  },
5332
- ])
5332
+ ]),
5333
5333
  );
5334
5334
  };
5335
5335
  _proto.explore = function explore(context, instance) {
@@ -5358,10 +5358,10 @@ var MenuItem = /*#__PURE__*/ (function (_HtmlElement) {
5358
5358
  children: instance.data.text
5359
5359
  ? /*#__PURE__*/ jsx("span", {
5360
5360
  children: instance.data.text,
5361
- })
5361
+ })
5362
5362
  : this.renderChildren(context, instance),
5363
5363
  },
5364
- key
5364
+ key,
5365
5365
  );
5366
5366
  };
5367
5367
  _proto.add = function add(element) {
@@ -5445,8 +5445,8 @@ var MenuItemComponent$1 = /*#__PURE__*/ (function (_VDOM$Component) {
5445
5445
  _this2.closeDropdown();
5446
5446
  return false;
5447
5447
  },
5448
- }
5449
- )
5448
+ },
5449
+ ),
5450
5450
  );
5451
5451
  }
5452
5452
  return this.dropdown;
@@ -5511,8 +5511,8 @@ var MenuItemComponent$1 = /*#__PURE__*/ (function (_VDOM$Component) {
5511
5511
  (_CSS$state.icon = !!icon || instance.icons),
5512
5512
  (_CSS$state.disabled = data.disabled),
5513
5513
  (_CSS$state.empty = empty),
5514
- _CSS$state)
5515
- )
5514
+ _CSS$state),
5515
+ ),
5516
5516
  );
5517
5517
  if (empty)
5518
5518
  children = /*#__PURE__*/ jsx("span", {
@@ -5660,7 +5660,7 @@ var MenuItemComponent$1 = /*#__PURE__*/ (function (_VDOM$Component) {
5660
5660
  {
5661
5661
  dropdownOpen: true,
5662
5662
  },
5663
- callback
5663
+ callback,
5664
5664
  );
5665
5665
 
5666
5666
  //hide tooltip if dropdown is open
@@ -5769,7 +5769,7 @@ var Menu = /*#__PURE__*/ (function (_HtmlElement) {
5769
5769
  showOnlyOverflowItems: true,
5770
5770
  },
5771
5771
  ],
5772
- })
5772
+ }),
5773
5773
  );
5774
5774
  }
5775
5775
  };
@@ -5785,7 +5785,7 @@ var Menu = /*#__PURE__*/ (function (_HtmlElement) {
5785
5785
  overflow: this.overflow,
5786
5786
  }),
5787
5787
  (_extends2[this.itemPadding + "-item-padding"] = this.itemPadding),
5788
- _extends2)
5788
+ _extends2),
5789
5789
  );
5790
5790
  _HtmlElement.prototype.prepareData.call(this, context, instance);
5791
5791
  };
@@ -5803,7 +5803,7 @@ var Menu = /*#__PURE__*/ (function (_HtmlElement) {
5803
5803
  instance: instance,
5804
5804
  children: this.renderChildren(context, instance),
5805
5805
  },
5806
- key
5806
+ key,
5807
5807
  );
5808
5808
  };
5809
5809
  _proto.add = function add(item) {
@@ -5872,7 +5872,7 @@ var MenuComponent = /*#__PURE__*/ (function (_VDOM$Component) {
5872
5872
  data.classNames,
5873
5873
  CSS.state({
5874
5874
  pack: this.state.nonOverflownItemCount < children.length - 1,
5875
- })
5875
+ }),
5876
5876
  ),
5877
5877
  style: data.style,
5878
5878
  onBlur: FocusManager.nudge(),
@@ -5887,7 +5887,7 @@ var MenuComponent = /*#__PURE__*/ (function (_VDOM$Component) {
5887
5887
  {
5888
5888
  className: CSS.element(baseClass, "spacer"),
5889
5889
  },
5890
- key
5890
+ key,
5891
5891
  )
5892
5892
  );
5893
5893
  }
@@ -5905,7 +5905,7 @@ var MenuComponent = /*#__PURE__*/ (function (_VDOM$Component) {
5905
5905
  moveCursor: _this2.moveCursor.bind(_this2),
5906
5906
  children: content,
5907
5907
  },
5908
- key
5908
+ key,
5909
5909
  );
5910
5910
  }),
5911
5911
  });
@@ -6026,7 +6026,7 @@ var MenuComponent = /*#__PURE__*/ (function (_VDOM$Component) {
6026
6026
  },
6027
6027
  function () {
6028
6028
  _this4.isMeasureOverflowDisabled = false;
6029
- }
6029
+ },
6030
6030
  );
6031
6031
  }
6032
6032
  };
@@ -6168,7 +6168,7 @@ var Scroller = /*#__PURE__*/ (function (_Container) {
6168
6168
  {
6169
6169
  scrollIntoViewSelector: undefined,
6170
6170
  },
6171
- ])
6171
+ ]),
6172
6172
  );
6173
6173
  };
6174
6174
  _proto.render = function render(context, instance, key) {
@@ -6180,7 +6180,7 @@ var Scroller = /*#__PURE__*/ (function (_Container) {
6180
6180
  data: instance.data,
6181
6181
  children: this.renderChildren(context, instance),
6182
6182
  },
6183
- key
6183
+ key,
6184
6184
  );
6185
6185
  };
6186
6186
  return Scroller;
@@ -6228,7 +6228,7 @@ var HScrollerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
6228
6228
  scrollable: this.state.scrollable,
6229
6229
  horizontal: widget.horizontal,
6230
6230
  vertical: widget.vertical,
6231
- })
6231
+ }),
6232
6232
  ),
6233
6233
  style: data.style,
6234
6234
  ref: function ref(el) {
@@ -6421,7 +6421,7 @@ var ValidationError = /*#__PURE__*/ (function (_Widget) {
6421
6421
  style: data.style,
6422
6422
  children: data.errorMessage,
6423
6423
  },
6424
- key
6424
+ key,
6425
6425
  );
6426
6426
  };
6427
6427
  return ValidationError;
@@ -6458,7 +6458,7 @@ var Label = /*#__PURE__*/ (function (_HtmlElement) {
6458
6458
  htmlFor: undefined,
6459
6459
  asterisk: undefined,
6460
6460
  },
6461
- ])
6461
+ ]),
6462
6462
  );
6463
6463
  };
6464
6464
  _proto.prepareData = function prepareData(context, instance) {
@@ -6475,7 +6475,7 @@ var Label = /*#__PURE__*/ (function (_HtmlElement) {
6475
6475
  data.disabled = data.stateMods.disabled = coalesce(
6476
6476
  context.parentStrict ? context.parentDisabled : null,
6477
6477
  data._disabled,
6478
- context.parentDisabled
6478
+ context.parentDisabled,
6479
6479
  );
6480
6480
  data.asterisk = context.parentAsterisk || data.asterisk;
6481
6481
  if (instance.cache("disabled", data.disabled) || instance.cache("asterisk", data.asterisk)) {
@@ -6515,8 +6515,8 @@ var Label = /*#__PURE__*/ (function (_HtmlElement) {
6515
6515
  className: this.CSS.element(this.baseClass, "asterisk"),
6516
6516
  children: "*",
6517
6517
  },
6518
- "asterisk"
6519
- )
6518
+ "asterisk",
6519
+ ),
6520
6520
  );
6521
6521
  }
6522
6522
  };
@@ -6543,7 +6543,7 @@ var FieldIcon = /*#__PURE__*/ (function (_Widget) {
6543
6543
  {
6544
6544
  name: undefined,
6545
6545
  },
6546
- ])
6546
+ ]),
6547
6547
  );
6548
6548
  };
6549
6549
  _proto.render = function render(context, instance, key) {
@@ -6612,7 +6612,7 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6612
6612
  structured: true,
6613
6613
  },
6614
6614
  },
6615
- ].concat(Array.prototype.slice.call(arguments))
6615
+ ].concat(Array.prototype.slice.call(arguments)),
6616
6616
  );
6617
6617
  };
6618
6618
  _proto.init = function init() {
@@ -6629,7 +6629,7 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6629
6629
  },
6630
6630
  mod: "error",
6631
6631
  },
6632
- this.errorTooltip
6632
+ this.errorTooltip,
6633
6633
  );
6634
6634
  }
6635
6635
  if (isUndefined(this.help)) {
@@ -6683,7 +6683,7 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6683
6683
  help: this.help,
6684
6684
  icon: this.icon,
6685
6685
  },
6686
- ])
6686
+ ]),
6687
6687
  );
6688
6688
  };
6689
6689
  _proto.initState = function initState(context, instance) {
@@ -6723,22 +6723,22 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6723
6723
  data.disabled = coalesce(
6724
6724
  context.parentStrict ? context.parentDisabled : null,
6725
6725
  data._disabled,
6726
- context.parentDisabled
6726
+ context.parentDisabled,
6727
6727
  );
6728
6728
  data.readOnly = coalesce(
6729
6729
  context.parentStrict ? context.parentReadOnly : null,
6730
6730
  data._readOnly,
6731
- context.parentReadOnly
6731
+ context.parentReadOnly,
6732
6732
  );
6733
6733
  data.viewMode = coalesce(
6734
6734
  context.parentStrict ? context.parentViewMode : null,
6735
6735
  data._viewMode,
6736
- context.parentViewMode
6736
+ context.parentViewMode,
6737
6737
  );
6738
6738
  data.tabOnEnterKey = coalesce(
6739
6739
  context.parentStrict ? context.parentTabOnEnterKey : null,
6740
6740
  data._tabOnEnterKey,
6741
- context.parentTabOnEnterKey
6741
+ context.parentTabOnEnterKey,
6742
6742
  );
6743
6743
  data.visited = coalesce(context.parentStrict ? context.parentVisited : null, data.visited, context.parentVisited);
6744
6744
  if (!data.error && !data.disabled && !data.viewMode) this.validate(context, instance);
@@ -6894,7 +6894,7 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6894
6894
  },
6895
6895
  children: text,
6896
6896
  },
6897
- key
6897
+ key,
6898
6898
  );
6899
6899
  }
6900
6900
  };
@@ -6914,7 +6914,7 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6914
6914
  onTouchStart: interactive ? stopPropagation : null,
6915
6915
  children: [content, this.labelPlacement && this.renderLabel(context, instance, "label")],
6916
6916
  },
6917
- key
6917
+ key,
6918
6918
  );
6919
6919
  };
6920
6920
  _proto.renderEmptyText = function renderEmptyText(context, _ref2, key) {
@@ -6929,7 +6929,7 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6929
6929
  children: "\xA0",
6930
6930
  }),
6931
6931
  },
6932
- key
6932
+ key,
6933
6933
  );
6934
6934
  };
6935
6935
  _proto.render = function render(context, instance, key) {
@@ -7022,7 +7022,7 @@ var TextField = /*#__PURE__*/ (function (_Field) {
7022
7022
  icon: undefined,
7023
7023
  trim: undefined,
7024
7024
  },
7025
- ].concat(Array.prototype.slice.call(arguments))
7025
+ ].concat(Array.prototype.slice.call(arguments)),
7026
7026
  );
7027
7027
  };
7028
7028
  _proto.renderInput = function renderInput(context, instance, key) {
@@ -7035,7 +7035,7 @@ var TextField = /*#__PURE__*/ (function (_Field) {
7035
7035
  help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
7036
7036
  icon: this.renderIcon(context, instance, "icon"),
7037
7037
  },
7038
- key
7038
+ key,
7039
7039
  );
7040
7040
  };
7041
7041
  _proto.validate = function validate(context, instance) {
@@ -7131,7 +7131,7 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
7131
7131
  clear: insideButton != null,
7132
7132
  empty: empty && !data.placeholder,
7133
7133
  error: data.error && (state.visited || !suppressErrorsUntilVisited || !empty),
7134
- })
7134
+ }),
7135
7135
  ),
7136
7136
  style: data.style,
7137
7137
  onMouseDown: stopPropagation,
@@ -7168,8 +7168,8 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
7168
7168
  onFocus: this.onFocus.bind(this),
7169
7169
  onBlur: this.onBlur.bind(this),
7170
7170
  onClick: stopPropagation,
7171
- }
7172
- )
7171
+ },
7172
+ ),
7173
7173
  ),
7174
7174
  insideButton,
7175
7175
  icon,
@@ -7301,10 +7301,10 @@ var SquareIcon = registerIcon(
7301
7301
  height: "40",
7302
7302
  fill: "currentColor",
7303
7303
  }),
7304
- })
7304
+ }),
7305
7305
  );
7306
7306
  },
7307
- true
7307
+ true,
7308
7308
  );
7309
7309
 
7310
7310
  var Checkbox = /*#__PURE__*/ (function (_Field) {
@@ -7332,7 +7332,7 @@ var Checkbox = /*#__PURE__*/ (function (_Field) {
7332
7332
  required: undefined,
7333
7333
  viewText: undefined,
7334
7334
  },
7335
- ].concat(Array.prototype.slice.call(arguments))
7335
+ ].concat(Array.prototype.slice.call(arguments)),
7336
7336
  );
7337
7337
  };
7338
7338
  _proto.renderWrap = function renderWrap(context, instance, key, content) {
@@ -7358,7 +7358,7 @@ var Checkbox = /*#__PURE__*/ (function (_Field) {
7358
7358
  style: data.style,
7359
7359
  children: [content, this.labelPlacement && getContent(this.renderLabel(context, instance, "label"))],
7360
7360
  },
7361
- key
7361
+ key,
7362
7362
  );
7363
7363
  };
7364
7364
  _proto.validateRequired = function validateRequired(context, instance) {
@@ -7386,9 +7386,9 @@ var Checkbox = /*#__PURE__*/ (function (_Field) {
7386
7386
  onChange: function onChange(e) {
7387
7387
  _this2.handleChange(e, instance);
7388
7388
  },
7389
- }
7389
+ },
7390
7390
  ),
7391
- "input"
7391
+ "input",
7392
7392
  );
7393
7393
  };
7394
7394
  _proto.renderCheck = function renderCheck(context, instance) {
@@ -7398,7 +7398,7 @@ var Checkbox = /*#__PURE__*/ (function (_Field) {
7398
7398
  instance: instance,
7399
7399
  data: instance.data,
7400
7400
  },
7401
- "check"
7401
+ "check",
7402
7402
  );
7403
7403
  };
7404
7404
  _proto.renderInput = function renderInput(context, instance, key) {
@@ -7415,16 +7415,16 @@ var Checkbox = /*#__PURE__*/ (function (_Field) {
7415
7415
  className: CSS.element(baseClass, "text"),
7416
7416
  children: text,
7417
7417
  },
7418
- "text"
7419
- )
7418
+ "text",
7419
+ )
7420
7420
  : /*#__PURE__*/ jsx(
7421
7421
  "span",
7422
7422
  {
7423
7423
  className: CSS.element(baseClass, "baseline"),
7424
7424
  children: "\xA0",
7425
7425
  },
7426
- "baseline"
7427
- ),
7426
+ "baseline",
7427
+ ),
7428
7428
  ]);
7429
7429
  };
7430
7430
  _proto.renderValue = function renderValue(context, _ref) {
@@ -7511,7 +7511,7 @@ var CheckboxCmp = /*#__PURE__*/ (function (_VDOM$Component) {
7511
7511
  }),
7512
7512
  ],
7513
7513
  },
7514
- "check"
7514
+ "check",
7515
7515
  );
7516
7516
  };
7517
7517
  _proto2.onClick = function onClick(e) {
@@ -7562,7 +7562,7 @@ var Radio = /*#__PURE__*/ (function (_Field) {
7562
7562
  required: undefined,
7563
7563
  text: undefined,
7564
7564
  },
7565
- ].concat(Array.prototype.slice.call(arguments))
7565
+ ].concat(Array.prototype.slice.call(arguments)),
7566
7566
  );
7567
7567
  };
7568
7568
  _proto.init = function init() {
@@ -7606,7 +7606,7 @@ var Radio = /*#__PURE__*/ (function (_Field) {
7606
7606
  htmlFor: data.id,
7607
7607
  children: [content, this.labelPlacement && getContent(this.renderLabel(context, instance, "label"))],
7608
7608
  },
7609
- key
7609
+ key,
7610
7610
  );
7611
7611
  };
7612
7612
  _proto.renderNativeCheck = function renderNativeCheck(context, instance) {
@@ -7630,9 +7630,9 @@ var Radio = /*#__PURE__*/ (function (_Field) {
7630
7630
  onChange: function onChange(e) {
7631
7631
  _this2.handleChange(e, instance);
7632
7632
  },
7633
- }
7633
+ },
7634
7634
  ),
7635
- "input"
7635
+ "input",
7636
7636
  );
7637
7637
  };
7638
7638
  _proto.renderCheck = function renderCheck(context, instance) {
@@ -7642,7 +7642,7 @@ var Radio = /*#__PURE__*/ (function (_Field) {
7642
7642
  instance: instance,
7643
7643
  data: instance.data,
7644
7644
  },
7645
- "check"
7645
+ "check",
7646
7646
  );
7647
7647
  };
7648
7648
  _proto.renderInput = function renderInput(context, instance, key) {
@@ -7659,16 +7659,16 @@ var Radio = /*#__PURE__*/ (function (_Field) {
7659
7659
  className: CSS.element(baseClass, "text"),
7660
7660
  children: text,
7661
7661
  },
7662
- "text"
7663
- )
7662
+ "text",
7663
+ )
7664
7664
  : /*#__PURE__*/ jsx(
7665
7665
  "span",
7666
7666
  {
7667
7667
  className: CSS.element(baseClass, "baseline"),
7668
7668
  children: "\xA0",
7669
7669
  },
7670
- "baseline"
7671
- ),
7670
+ "baseline",
7671
+ ),
7672
7672
  ]);
7673
7673
  };
7674
7674
  _proto.handleClick = function handleClick(e, instance) {
@@ -7726,7 +7726,7 @@ var RadioCmp = /*#__PURE__*/ (function (_VDOM$Component) {
7726
7726
  onClick: this.onClick.bind(this),
7727
7727
  onKeyDown: this.onKeyDown.bind(this),
7728
7728
  },
7729
- "check"
7729
+ "check",
7730
7730
  );
7731
7731
  };
7732
7732
  _proto2.onClick = function onClick(e) {
@@ -7772,7 +7772,7 @@ var Select = /*#__PURE__*/ (function (_Field) {
7772
7772
  placeholder: undefined,
7773
7773
  icon: undefined,
7774
7774
  },
7775
- ].concat(Array.prototype.slice.call(arguments))
7775
+ ].concat(Array.prototype.slice.call(arguments)),
7776
7776
  );
7777
7777
  };
7778
7778
  _proto.init = function init() {
@@ -7795,7 +7795,7 @@ var Select = /*#__PURE__*/ (function (_Field) {
7795
7795
  icon: this.renderIcon(context, instance, "icon"),
7796
7796
  children: this.renderChildren(context, instance),
7797
7797
  },
7798
- key
7798
+ key,
7799
7799
  );
7800
7800
  };
7801
7801
  _proto.convert = function convert(value) {
@@ -7904,7 +7904,7 @@ var SelectComponent = /*#__PURE__*/ (function (_VDOM$Component) {
7904
7904
  focus: this.state.focus,
7905
7905
  error: state.visited && data.error,
7906
7906
  empty: data.empty && !data.placeholder,
7907
- })
7907
+ }),
7908
7908
  ),
7909
7909
  style: data.style,
7910
7910
  onMouseDown: stopPropagation,
@@ -7943,8 +7943,8 @@ var SelectComponent = /*#__PURE__*/ (function (_VDOM$Component) {
7943
7943
  return tooltipMouseLeave$1.apply(void 0, [e].concat(getFieldTooltip(instance)));
7944
7944
  },
7945
7945
  children: [placeholder, this.props.children],
7946
- }
7947
- )
7946
+ },
7947
+ ),
7948
7948
  ),
7949
7949
  insideButton,
7950
7950
  icon,
@@ -8019,7 +8019,7 @@ var Option = /*#__PURE__*/ (function (_HtmlElement) {
8019
8019
  selected: undefined,
8020
8020
  text: undefined,
8021
8021
  },
8022
- ].concat(Array.prototype.slice.call(arguments))
8022
+ ].concat(Array.prototype.slice.call(arguments)),
8023
8023
  );
8024
8024
  };
8025
8025
  _proto3.prepareData = function prepareData(context, _ref) {
@@ -8035,7 +8035,7 @@ var Option = /*#__PURE__*/ (function (_HtmlElement) {
8035
8035
  value: data.value,
8036
8036
  children: data.text || this.renderChildren(context, instance),
8037
8037
  },
8038
- key
8038
+ key,
8039
8039
  );
8040
8040
  };
8041
8041
  return Option;
@@ -8063,10 +8063,10 @@ var ForwardIcon = registerIcon(
8063
8063
  d: "M6.15 15.5L10.5 10 6.17 4.53 5.52 5l3.98 5-4 5z",
8064
8064
  }),
8065
8065
  ],
8066
- })
8066
+ }),
8067
8067
  );
8068
8068
  },
8069
- true
8069
+ true,
8070
8070
  );
8071
8071
 
8072
8072
  var Calendar = /*#__PURE__*/ (function (_Field) {
@@ -8093,7 +8093,7 @@ var Calendar = /*#__PURE__*/ (function (_Field) {
8093
8093
  focusable: undefined,
8094
8094
  dayData: undefined,
8095
8095
  },
8096
- ].concat(Array.prototype.slice.call(arguments))
8096
+ ].concat(Array.prototype.slice.call(arguments)),
8097
8097
  );
8098
8098
  };
8099
8099
  _proto.init = function init() {
@@ -8154,7 +8154,7 @@ var Calendar = /*#__PURE__*/ (function (_Field) {
8154
8154
  return _this.handleSelect(e, instance, date);
8155
8155
  },
8156
8156
  },
8157
- key
8157
+ key,
8158
8158
  );
8159
8159
  };
8160
8160
  _proto.handleSelect = function handleSelect(e, instance, date) {
@@ -8216,7 +8216,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8216
8216
  cursor: zeroTime(data.date || refDate),
8217
8217
  activeView: "calendar",
8218
8218
  },
8219
- _this2.getPage(refDate)
8219
+ _this2.getPage(refDate),
8220
8220
  );
8221
8221
  _this2.handleMouseMove = _this2.handleMouseMove.bind(_this2);
8222
8222
  _this2.handleMouseDown = _this2.handleMouseDown.bind(_this2);
@@ -8255,7 +8255,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8255
8255
  this.setState(
8256
8256
  _extends({}, this.getPage(refDate), {
8257
8257
  cursor: date,
8258
- })
8258
+ }),
8259
8259
  );
8260
8260
  };
8261
8261
  _proto2.move = function move(e, period, delta) {
@@ -8397,7 +8397,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8397
8397
  this.setState(
8398
8398
  _extends({}, this.getPage(data.date), {
8399
8399
  value: data.date,
8400
- })
8400
+ }),
8401
8401
  );
8402
8402
  tooltipParentWillReceiveProps$1.apply(void 0, [this.el].concat(getFieldTooltip(props.instance)));
8403
8403
  };
@@ -8420,7 +8420,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8420
8420
  _extends({}, this.getPage(refDate), {
8421
8421
  refDate: refDate,
8422
8422
  activeView: "calendar",
8423
- })
8423
+ }),
8424
8424
  );
8425
8425
  };
8426
8426
  _proto2.renderYearPicker = function renderYearPicker() {
@@ -8482,11 +8482,11 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8482
8482
  },
8483
8483
  children: year,
8484
8484
  },
8485
- year
8485
+ year,
8486
8486
  );
8487
8487
  }),
8488
8488
  },
8489
- rowIndex
8489
+ rowIndex,
8490
8490
  );
8491
8491
  }),
8492
8492
  }),
@@ -8526,7 +8526,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8526
8526
  today: widget.highlightToday && sameDate(date, today),
8527
8527
  }),
8528
8528
  dayInfo.className,
8529
- CSS.mod(dayInfo.mod)
8529
+ CSS.mod(dayInfo.mod),
8530
8530
  );
8531
8531
  var dateInst = new Date(date);
8532
8532
  days.push(
@@ -8542,8 +8542,8 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8542
8542
  onMouseDown: unselectable ? null : this.handleMouseDown,
8543
8543
  children: date.getDate(),
8544
8544
  },
8545
- i
8546
- )
8545
+ i,
8546
+ ),
8547
8547
  );
8548
8548
  date.setDate(date.getDate() + 1);
8549
8549
  }
@@ -8554,8 +8554,8 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8554
8554
  className: CSS.element(baseClass, "week"),
8555
8555
  children: [/*#__PURE__*/ jsx("td", {}), days, /*#__PURE__*/ jsx("td", {})],
8556
8556
  },
8557
- weeks.length
8558
- )
8557
+ weeks.length,
8558
+ ),
8559
8559
  );
8560
8560
  }
8561
8561
  var culture = Culture.getDateTimeCulture();
@@ -8641,7 +8641,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8641
8641
  }),
8642
8642
  /*#__PURE__*/ jsx("td", {
8643
8643
  onClick: function onClick(e) {
8644
- return _this5.move(e, "m", 1);
8644
+ return _this5.move(e, "m", +1);
8645
8645
  },
8646
8646
  children: /*#__PURE__*/ jsx(DropdownIcon, {
8647
8647
  className: CSS.element(baseClass, "icon-next-month"),
@@ -8649,7 +8649,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8649
8649
  }),
8650
8650
  /*#__PURE__*/ jsx("td", {
8651
8651
  onClick: function onClick(e) {
8652
- return _this5.move(e, "y", 1);
8652
+ return _this5.move(e, "y", +1);
8653
8653
  },
8654
8654
  children: /*#__PURE__*/ jsx(ForwardIcon, {
8655
8655
  className: CSS.element(baseClass, "icon-next-year"),
@@ -8658,7 +8658,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8658
8658
  /*#__PURE__*/ jsx("td", {}),
8659
8659
  ],
8660
8660
  },
8661
- "h"
8661
+ "h",
8662
8662
  ),
8663
8663
  /*#__PURE__*/ jsxs(
8664
8664
  "tr",
@@ -8672,13 +8672,13 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8672
8672
  {
8673
8673
  children: name,
8674
8674
  },
8675
- i
8675
+ i,
8676
8676
  );
8677
8677
  }),
8678
8678
  /*#__PURE__*/ jsx("td", {}),
8679
8679
  ],
8680
8680
  },
8681
- "d"
8681
+ "d",
8682
8682
  ),
8683
8683
  ],
8684
8684
  }),
@@ -8725,11 +8725,11 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
8725
8725
  ? {
8726
8726
  values: undefined,
8727
8727
  records: undefined,
8728
- }
8728
+ }
8729
8729
  : {
8730
8730
  value: undefined,
8731
8731
  text: undefined,
8732
- };
8732
+ };
8733
8733
  (_Field$prototype$decl = _Field.prototype.declareData).call.apply(
8734
8734
  _Field$prototype$decl,
8735
8735
  [
@@ -8748,7 +8748,7 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
8748
8748
  },
8749
8749
  },
8750
8750
  additionalAttributes,
8751
- ].concat(Array.prototype.slice.call(arguments))
8751
+ ].concat(Array.prototype.slice.call(arguments)),
8752
8752
  );
8753
8753
  };
8754
8754
  _proto.init = function init() {
@@ -8853,14 +8853,14 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
8853
8853
  $value: $value,
8854
8854
  });
8855
8855
  });
8856
- })
8856
+ }),
8857
8857
  );
8858
8858
  } else {
8859
8859
  var dataViewData = store.getData();
8860
8860
  data.selectedKeys.push(
8861
8861
  this.keyBindings.map(function (b) {
8862
8862
  return Binding.get(b.local).value(dataViewData);
8863
- })
8863
+ }),
8864
8864
  );
8865
8865
  if (!this.text && isArray(data.options)) {
8866
8866
  var option = data.options.find(function ($option) {
@@ -8868,7 +8868,7 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
8868
8868
  getOptionKey(_this.keyBindings, {
8869
8869
  $option: $option,
8870
8870
  }),
8871
- data.selectedKeys[0]
8871
+ data.selectedKeys[0],
8872
8872
  );
8873
8873
  });
8874
8874
  data.text = (option && option[this.optionTextField]) || "";
@@ -8891,7 +8891,7 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
8891
8891
  forceUpdate: context.forceUpdate,
8892
8892
  icon: this.renderIcon(context, instance, "icon"),
8893
8893
  },
8894
- key
8894
+ key,
8895
8895
  );
8896
8896
  };
8897
8897
  _proto.filterOptions = function filterOptions(instance, options, query) {
@@ -8925,7 +8925,7 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
8925
8925
  ? _this$onGetRecordDisp
8926
8926
  : function (record) {
8927
8927
  return record[_this3.valueTextField] || record[_this3.valueIdField];
8928
- };
8928
+ };
8929
8929
  return records.map(function (record) {
8930
8930
  return valueTextFormatter(record, instance);
8931
8931
  });
@@ -9109,7 +9109,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9109
9109
  x,
9110
9110
  _this7.getOptionKey({
9111
9111
  $option: data,
9112
- })
9112
+ }),
9113
9113
  );
9114
9114
  }) != null
9115
9115
  );
@@ -9168,7 +9168,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9168
9168
  _this7.closeDropdown(null, true);
9169
9169
  return false;
9170
9170
  },
9171
- }
9171
+ },
9172
9172
  );
9173
9173
  return (this.dropdown = Widget.create(dropdown));
9174
9174
  };
@@ -9191,7 +9191,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9191
9191
  className: CSS.element(baseClass, "message", "loading"),
9192
9192
  children: widget.loadingText,
9193
9193
  },
9194
- "msg"
9194
+ "msg",
9195
9195
  );
9196
9196
  } else if (this.state.status == "error") {
9197
9197
  content = /*#__PURE__*/ jsx(
@@ -9200,7 +9200,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9200
9200
  className: CSS.element(baseClass, "message", "error"),
9201
9201
  children: widget.queryErrorText,
9202
9202
  },
9203
- "msg"
9203
+ "msg",
9204
9204
  );
9205
9205
  } else if (this.state.status == "info") {
9206
9206
  content = /*#__PURE__*/ jsx(
@@ -9209,7 +9209,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9209
9209
  className: CSS.element(baseClass, "message", "info"),
9210
9210
  children: this.state.message,
9211
9211
  },
9212
- "msg"
9212
+ "msg",
9213
9213
  );
9214
9214
  } else if (this.state.options.length == 0) {
9215
9215
  content = /*#__PURE__*/ jsx(
@@ -9218,7 +9218,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9218
9218
  className: CSS.element(baseClass, "message", "no-results"),
9219
9219
  children: widget.noResultsText,
9220
9220
  },
9221
- "msg"
9221
+ "msg",
9222
9222
  );
9223
9223
  } else {
9224
9224
  content = /*#__PURE__*/ jsx(
@@ -9238,7 +9238,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9238
9238
  },
9239
9239
  }),
9240
9240
  },
9241
- "msg"
9241
+ "msg",
9242
9242
  );
9243
9243
  }
9244
9244
  return /*#__PURE__*/ jsxs(
@@ -9276,12 +9276,12 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9276
9276
  return _this8.onQueryBlur(e);
9277
9277
  },
9278
9278
  },
9279
- "query"
9279
+ "query",
9280
9280
  ),
9281
9281
  content,
9282
9282
  ],
9283
9283
  },
9284
- "dropdown"
9284
+ "dropdown",
9285
9285
  );
9286
9286
  };
9287
9287
  _proto3.onListWheel = function onListWheel(e) {
@@ -9345,7 +9345,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9345
9345
  },
9346
9346
  children: iconVDOM,
9347
9347
  },
9348
- "icon"
9348
+ "icon",
9349
9349
  );
9350
9350
  var dropdown;
9351
9351
  if (this.state.dropdownOpen) {
@@ -9382,7 +9382,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9382
9382
  className: CSS.element(baseClass, "icon"),
9383
9383
  }),
9384
9384
  },
9385
- "ib"
9385
+ "ib",
9386
9386
  );
9387
9387
  } else {
9388
9388
  insideButton = /*#__PURE__*/ jsx(
@@ -9399,7 +9399,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9399
9399
  className: CSS.element(baseClass, "icon"),
9400
9400
  }),
9401
9401
  },
9402
- "ib"
9402
+ "ib",
9403
9403
  );
9404
9404
  }
9405
9405
  }
@@ -9413,7 +9413,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9413
9413
  ? _widget$onGetRecordDi
9414
9414
  : function (record) {
9415
9415
  return record[widget.valueTextField];
9416
- };
9416
+ };
9417
9417
  text = data.records.map(function (v, i) {
9418
9418
  return /*#__PURE__*/ jsxs(
9419
9419
  "div",
@@ -9442,7 +9442,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9442
9442
  }),
9443
9443
  ],
9444
9444
  },
9445
- i
9445
+ i,
9446
9446
  );
9447
9447
  });
9448
9448
  } else {
@@ -9534,7 +9534,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9534
9534
  if (e.keyCode != KeyCode.tab) e.preventDefault();
9535
9535
  };
9536
9536
  _proto3.onClearClick = function onClearClick(e, value) {
9537
- var _this0 = this;
9537
+ var _this10 = this;
9538
9538
  var instance = this.props.instance;
9539
9539
  var data = instance.data,
9540
9540
  store = instance.store,
@@ -9549,16 +9549,16 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9549
9549
  });
9550
9550
  var newRecords = data.records.filter(function (v) {
9551
9551
  return !areKeysEqual(
9552
- _this0.getLocalKey({
9552
+ _this10.getLocalKey({
9553
9553
  $value: v,
9554
9554
  }),
9555
- itemKey
9555
+ itemKey,
9556
9556
  );
9557
9557
  });
9558
9558
  instance.set("records", newRecords);
9559
9559
  var newValues = newRecords
9560
9560
  .map(function (rec) {
9561
- return _this0.getLocalKey({
9561
+ return _this10.getLocalKey({
9562
9562
  $value: rec,
9563
9563
  });
9564
9564
  })
@@ -9580,7 +9580,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9580
9580
  instance.set("values", []);
9581
9581
  };
9582
9582
  _proto3.select = function select(e, itemsData, reset) {
9583
- var _this1 = this;
9583
+ var _this11 = this;
9584
9584
  var instance = this.props.instance;
9585
9585
  var store = instance.store,
9586
9586
  data = instance.data,
@@ -9605,9 +9605,9 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9605
9605
  newRecords = records.filter(function (v) {
9606
9606
  return !areKeysEqual(
9607
9607
  optionKey,
9608
- _this1.getLocalKey({
9608
+ _this11.getLocalKey({
9609
9609
  $value: v,
9610
- })
9610
+ }),
9611
9611
  );
9612
9612
  });
9613
9613
  } else {
@@ -9624,7 +9624,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9624
9624
  instance.set("records", newRecords);
9625
9625
  var newValues = newRecords
9626
9626
  .map(function (rec) {
9627
- return _this1.getLocalKey({
9627
+ return _this11.getLocalKey({
9628
9628
  $value: rec,
9629
9629
  });
9630
9630
  })
@@ -9751,15 +9751,15 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9751
9751
  else this.openDropdown(e);
9752
9752
  };
9753
9753
  _proto3.closeDropdown = function closeDropdown(e, keepFocus) {
9754
- var _this10 = this;
9754
+ var _this12 = this;
9755
9755
  if (this.state.dropdownOpen) {
9756
9756
  this.setState(
9757
9757
  {
9758
9758
  dropdownOpen: false,
9759
9759
  },
9760
9760
  function () {
9761
- return keepFocus && _this10.dom.input.focus();
9762
- }
9761
+ return keepFocus && _this12.dom.input.focus();
9762
+ },
9763
9763
  );
9764
9764
  this.props.instance.setState({
9765
9765
  visited: true,
@@ -9770,7 +9770,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9770
9770
  delete this.tmpCachedResult;
9771
9771
  };
9772
9772
  _proto3.openDropdown = function openDropdown(e) {
9773
- var _this11 = this;
9773
+ var _this13 = this;
9774
9774
  var instance = this.props.instance;
9775
9775
  var data = instance.data;
9776
9776
  if (!this.state.dropdownOpen && !data.disabled && !data.readOnly) {
@@ -9780,13 +9780,13 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9780
9780
  dropdownOpen: true,
9781
9781
  },
9782
9782
  function () {
9783
- if (_this11.dom.dropdown) _this11.dom.dropdown.focus();
9784
- }
9783
+ if (_this13.dom.dropdown) _this13.dom.dropdown.focus();
9784
+ },
9785
9785
  );
9786
9786
  }
9787
9787
  };
9788
9788
  _proto3.query = function query(q) {
9789
- var _this12 = this;
9789
+ var _this14 = this;
9790
9790
  /*
9791
9791
  In fetchAll mode onQuery should fetch all data and after
9792
9792
  that everything is done filtering is done client-side.
@@ -9828,8 +9828,8 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9828
9828
  });
9829
9829
  }
9830
9830
  this.queryTimeoutId = setTimeout(function () {
9831
- delete _this12.queryTimeoutId;
9832
- var result = _this12.tmpCachedResult || _this12.cachedResult;
9831
+ delete _this14.queryTimeoutId;
9832
+ var result = _this14.tmpCachedResult || _this14.cachedResult;
9833
9833
  var query = fetchAll ? "" : q;
9834
9834
  var params = !widget.infinite
9835
9835
  ? query
@@ -9837,20 +9837,20 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9837
9837
  query: query,
9838
9838
  page: 1,
9839
9839
  pageSize: pageSize,
9840
- };
9840
+ };
9841
9841
  if (!result) result = instance.invoke("onQuery", params, instance);
9842
- var queryId = (_this12.lastQueryId = Date.now());
9842
+ var queryId = (_this14.lastQueryId = Date.now());
9843
9843
  Promise.resolve(result)
9844
9844
  .then(function (results) {
9845
9845
  //discard results which do not belong to the last query
9846
- if (queryId !== _this12.lastQueryId) return;
9846
+ if (queryId !== _this14.lastQueryId) return;
9847
9847
  if (!isArray(results)) results = [];
9848
9848
  if (fetchAll) {
9849
- if (cacheAll) _this12.cachedResult = results;
9850
- else _this12.tmpCachedResult = results;
9851
- results = widget.filterOptions(_this12.props.instance, results, _this12.lastQuery);
9849
+ if (cacheAll) _this14.cachedResult = results;
9850
+ else _this14.tmpCachedResult = results;
9851
+ results = widget.filterOptions(_this14.props.instance, results, _this14.lastQuery);
9852
9852
  }
9853
- _this12.setState(
9853
+ _this14.setState(
9854
9854
  {
9855
9855
  page: 1,
9856
9856
  query: query,
@@ -9858,12 +9858,12 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9858
9858
  status: "loaded",
9859
9859
  },
9860
9860
  function () {
9861
- if (widget.infinite) _this12.onListScroll();
9862
- }
9861
+ if (widget.infinite) _this14.onListScroll();
9862
+ },
9863
9863
  );
9864
9864
  })
9865
9865
  ["catch"](function (err) {
9866
- _this12.setState({
9866
+ _this14.setState({
9867
9867
  status: "error",
9868
9868
  });
9869
9869
  debug("Lookup query error:", err);
@@ -9872,7 +9872,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9872
9872
  }
9873
9873
  };
9874
9874
  _proto3.loadAdditionalOptionPages = function loadAdditionalOptionPages() {
9875
- var _this13 = this;
9875
+ var _this15 = this;
9876
9876
  var instance = this.props.instance;
9877
9877
  var widget = instance.widget;
9878
9878
  if (!widget.infinite) return;
@@ -9896,24 +9896,24 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9896
9896
  Promise.resolve(result)
9897
9897
  .then(function (results) {
9898
9898
  //discard results which do not belong to the last query
9899
- if (_this13.extraPageLoadingBlocker !== blockerKey) return;
9900
- _this13.extraPageLoadingBlocker = false;
9899
+ if (_this15.extraPageLoadingBlocker !== blockerKey) return;
9900
+ _this15.extraPageLoadingBlocker = false;
9901
9901
  if (!isArray(results)) return;
9902
- _this13.setState(
9902
+ _this15.setState(
9903
9903
  {
9904
9904
  page: params.page,
9905
9905
  query: query,
9906
9906
  options: [].concat(options, results),
9907
9907
  },
9908
9908
  function () {
9909
- _this13.onListScroll();
9910
- }
9909
+ _this15.onListScroll();
9910
+ },
9911
9911
  );
9912
9912
  })
9913
9913
  ["catch"](function (err) {
9914
- if (_this13.extraPageLoadingBlocker !== blockerKey) return;
9915
- _this13.extraPageLoadingBlocker = false;
9916
- _this13.setState({
9914
+ if (_this15.extraPageLoadingBlocker !== blockerKey) return;
9915
+ _this15.extraPageLoadingBlocker = false;
9916
+ _this15.setState({
9917
9917
  status: "error",
9918
9918
  });
9919
9919
  debug("Lookup query error:", err);
@@ -9936,7 +9936,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9936
9936
  this.subscribeListOnWheel(null);
9937
9937
  };
9938
9938
  _proto3.subscribeListOnWheel = function subscribeListOnWheel(list) {
9939
- var _this14 = this;
9939
+ var _this16 = this;
9940
9940
  if (this.unsubscribeListOnWheel) {
9941
9941
  this.unsubscribeListOnWheel();
9942
9942
  this.unsubscribeListOnWheel = null;
@@ -9946,16 +9946,16 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9946
9946
  list,
9947
9947
  "wheel",
9948
9948
  function (e) {
9949
- return _this14.onListWheel(e);
9949
+ return _this16.onListWheel(e);
9950
9950
  },
9951
9951
  {
9952
9952
  passive: false,
9953
- }
9953
+ },
9954
9954
  );
9955
9955
  }
9956
9956
  };
9957
9957
  _proto3.subscribeListOnScroll = function subscribeListOnScroll(list) {
9958
- var _this15 = this;
9958
+ var _this17 = this;
9959
9959
  if (this.unsubscribeListOnScroll) {
9960
9960
  this.unsubscribeListOnScroll();
9961
9961
  this.unsubscribeListOnScroll = null;
@@ -9965,11 +9965,11 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9965
9965
  list,
9966
9966
  "scroll",
9967
9967
  function (e) {
9968
- return _this15.onListScroll(e);
9968
+ return _this17.onListScroll(e);
9969
9969
  },
9970
9970
  {
9971
9971
  passive: false,
9972
- }
9972
+ },
9973
9973
  );
9974
9974
  }
9975
9975
  };
@@ -10019,7 +10019,7 @@ var NumberField = /*#__PURE__*/ (function (_Field) {
10019
10019
  scale: undefined,
10020
10020
  offset: undefined,
10021
10021
  },
10022
- ].concat(Array.prototype.slice.call(arguments))
10022
+ ].concat(Array.prototype.slice.call(arguments)),
10023
10023
  );
10024
10024
  };
10025
10025
  _proto.init = function init() {
@@ -10075,7 +10075,7 @@ var NumberField = /*#__PURE__*/ (function (_Field) {
10075
10075
  help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
10076
10076
  icon: this.renderIcon(context, instance, "icon"),
10077
10077
  },
10078
- key
10078
+ key,
10079
10079
  );
10080
10080
  };
10081
10081
  _proto.validateRequired = function validateRequired(context, instance) {
@@ -10161,7 +10161,7 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
10161
10161
  icon: !!icon,
10162
10162
  empty: empty && !data.placeholder,
10163
10163
  error: data.error && (state.visited || !suppressErrorsUntilVisited || !empty),
10164
- })
10164
+ }),
10165
10165
  ),
10166
10166
  style: data.style,
10167
10167
  onMouseDown: stopPropagation,
@@ -10206,8 +10206,8 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
10206
10206
  _this2.onChange(e, "wheel");
10207
10207
  },
10208
10208
  onClick: stopPropagation,
10209
- }
10210
- )
10209
+ },
10210
+ ),
10211
10211
  ),
10212
10212
  insideButton,
10213
10213
  icon,
@@ -10243,7 +10243,7 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
10243
10243
  value: this.input.value,
10244
10244
  },
10245
10245
  },
10246
- "blur"
10246
+ "blur",
10247
10247
  );
10248
10248
  }
10249
10249
  tooltipParentWillUnmount$1(this.props.instance);
@@ -10448,7 +10448,7 @@ var TextArea = /*#__PURE__*/ (function (_TextField) {
10448
10448
  {
10449
10449
  rows: undefined,
10450
10450
  },
10451
- ].concat(Array.prototype.slice.call(arguments))
10451
+ ].concat(Array.prototype.slice.call(arguments)),
10452
10452
  );
10453
10453
  };
10454
10454
  _proto.prepareData = function prepareData(context, instance) {
@@ -10467,7 +10467,7 @@ var TextArea = /*#__PURE__*/ (function (_TextField) {
10467
10467
  label: this.labelPlacement && getContent(this.renderLabel(context, instance, "label")),
10468
10468
  help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
10469
10469
  },
10470
- key
10470
+ key,
10471
10471
  );
10472
10472
  };
10473
10473
  _proto.validateRequired = function validateRequired(context, instance) {
@@ -10510,7 +10510,7 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
10510
10510
  focus: this.state.focus,
10511
10511
  empty: empty && !data.placeholder,
10512
10512
  error: data.error && (state.visited || !suppressErrorsUntilVisited || !empty),
10513
- })
10513
+ }),
10514
10514
  ),
10515
10515
  style: data.style,
10516
10516
  onMouseDown: stopPropagation,
@@ -10542,7 +10542,7 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
10542
10542
  return _this2.onChange(e.target.value, "change");
10543
10543
  },
10544
10544
  onBlur: function onBlur(e) {
10545
- _this2.onChange(e.target.value, "blur");
10545
+ return _this2.onBlur(e);
10546
10546
  },
10547
10547
  onFocus: function onFocus(e) {
10548
10548
  return _this2.onFocus();
@@ -10557,8 +10557,8 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
10557
10557
  onMouseLeave: function onMouseLeave(e) {
10558
10558
  return tooltipMouseLeave$1.apply(void 0, [e].concat(getFieldTooltip(instance)));
10559
10559
  },
10560
- }
10561
- )
10560
+ },
10561
+ ),
10562
10562
  ),
10563
10563
  label,
10564
10564
  help,
@@ -10629,8 +10629,16 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
10629
10629
  this.setState({
10630
10630
  focus: true,
10631
10631
  });
10632
+ instance.set("focused", true);
10632
10633
  }
10633
10634
  };
10635
+ _proto2.onBlur = function onBlur(e) {
10636
+ var instance = this.props.instance;
10637
+ if (instance.widget.trackFocus) {
10638
+ instance.set("focused", false);
10639
+ }
10640
+ this.onChange(e.target.value, "blur");
10641
+ };
10634
10642
  return Input;
10635
10643
  })(VDOM.Component);
10636
10644
  Widget.alias("textarea", TextArea);
@@ -10660,7 +10668,7 @@ var ValidationGroup = /*#__PURE__*/ (function (_PureContainer) {
10660
10668
  strict: undefined,
10661
10669
  asterisk: undefined,
10662
10670
  },
10663
- ])
10671
+ ]),
10664
10672
  );
10665
10673
  };
10666
10674
  _proto.explore = function explore(context, instance) {
@@ -10725,7 +10733,7 @@ var LabeledContainer = /*#__PURE__*/ (function (_FieldGroup) {
10725
10733
  {
10726
10734
  label: undefined,
10727
10735
  },
10728
- ].concat(Array.prototype.slice.call(arguments))
10736
+ ].concat(Array.prototype.slice.call(arguments)),
10729
10737
  );
10730
10738
  };
10731
10739
  _proto.init = function init() {
@@ -10752,7 +10760,7 @@ var LabeledContainer = /*#__PURE__*/ (function (_FieldGroup) {
10752
10760
  {
10753
10761
  label: this.label,
10754
10762
  },
10755
- ])
10763
+ ]),
10756
10764
  );
10757
10765
  };
10758
10766
  _proto.renderLabel = function renderLabel(context, instance, key) {
@@ -10807,7 +10815,7 @@ var MonthPicker = /*#__PURE__*/ (function (_Field) {
10807
10815
  maxValue: undefined,
10808
10816
  maxExclusive: undefined,
10809
10817
  },
10810
- ].concat(Array.prototype.slice.call(arguments))
10818
+ ].concat(Array.prototype.slice.call(arguments)),
10811
10819
  );
10812
10820
  };
10813
10821
  _proto.init = function init() {
@@ -10834,7 +10842,7 @@ var MonthPicker = /*#__PURE__*/ (function (_Field) {
10834
10842
  instance.isMonthDateSelectable = instance.invoke(
10835
10843
  "onCreateIsMonthDateSelectable",
10836
10844
  data.validationParams,
10837
- instance
10845
+ instance,
10838
10846
  );
10839
10847
  }
10840
10848
  _Field.prototype.prepareData.apply(this, arguments);
@@ -10868,7 +10876,7 @@ var MonthPicker = /*#__PURE__*/ (function (_Field) {
10868
10876
  onKeyDown: this.onKeyDown,
10869
10877
  autoFocus: this.autoFocus,
10870
10878
  },
10871
- key
10879
+ key,
10872
10880
  );
10873
10881
  };
10874
10882
  _proto.handleSelect = function handleSelect(e, instance, date1, date2) {
@@ -11051,7 +11059,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11051
11059
  },
11052
11060
  {
11053
11061
  ensureVisible: true,
11054
- }
11062
+ },
11055
11063
  );
11056
11064
  else if (column == "Q")
11057
11065
  this.moveCursor(
@@ -11062,7 +11070,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11062
11070
  },
11063
11071
  {
11064
11072
  ensureVisible: true,
11065
- }
11073
+ },
11066
11074
  );
11067
11075
  else if (column == "M")
11068
11076
  if (cursorMonth > 3)
@@ -11073,7 +11081,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11073
11081
  },
11074
11082
  {
11075
11083
  ensureVisible: true,
11076
- }
11084
+ },
11077
11085
  );
11078
11086
  else
11079
11087
  this.moveCursor(
@@ -11084,7 +11092,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11084
11092
  },
11085
11093
  {
11086
11094
  ensureVisible: true,
11087
- }
11095
+ },
11088
11096
  );
11089
11097
  break;
11090
11098
  case KeyCode.down:
@@ -11096,7 +11104,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11096
11104
  },
11097
11105
  {
11098
11106
  ensureVisible: true,
11099
- }
11107
+ },
11100
11108
  );
11101
11109
  else if (column == "Q")
11102
11110
  this.moveCursor(
@@ -11107,7 +11115,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11107
11115
  },
11108
11116
  {
11109
11117
  ensureVisible: true,
11110
- }
11118
+ },
11111
11119
  );
11112
11120
  else if (column == "M")
11113
11121
  if (cursorMonth < 10)
@@ -11118,7 +11126,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11118
11126
  },
11119
11127
  {
11120
11128
  ensureVisible: true,
11121
- }
11129
+ },
11122
11130
  );
11123
11131
  else
11124
11132
  this.moveCursor(
@@ -11129,7 +11137,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11129
11137
  },
11130
11138
  {
11131
11139
  ensureVisible: true,
11132
- }
11140
+ },
11133
11141
  );
11134
11142
  break;
11135
11143
  case KeyCode.pageUp:
@@ -11213,8 +11221,8 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11213
11221
  {
11214
11222
  state: "drag",
11215
11223
  },
11216
- cursor
11217
- )
11224
+ cursor,
11225
+ ),
11218
11226
  );
11219
11227
  }
11220
11228
  };
@@ -11321,15 +11329,15 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11321
11329
  }),
11322
11330
  CSS.state({
11323
11331
  unselectable: unselectableYear,
11324
- })
11332
+ }),
11325
11333
  ),
11326
11334
  onMouseEnter: unselectableYear ? null : this.handleMouseEnter,
11327
11335
  onMouseDown: unselectableYear ? null : this.handleMouseDown,
11328
11336
  onMouseUp: unselectableYear ? null : this.handleMouseUp,
11329
11337
  children: y,
11330
11338
  },
11331
- "year"
11332
- )
11339
+ "year",
11340
+ ),
11333
11341
  );
11334
11342
  }
11335
11343
  for (var _i = 0; _i < 3; _i++) {
@@ -11357,8 +11365,8 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11357
11365
  onTouchEnd: this.handleMouseUp,
11358
11366
  children: monthNames[m - 1].substr(0, 3),
11359
11367
  },
11360
- "M" + m
11361
- )
11368
+ "M" + m,
11369
+ ),
11362
11370
  );
11363
11371
  }
11364
11372
  if (!hideQuarters) {
@@ -11389,8 +11397,8 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11389
11397
  onMouseUp: unselectableQuarter ? null : this.handleMouseUp,
11390
11398
  children: "Q" + (q + 1),
11391
11399
  },
11392
- "q" + q
11393
- )
11400
+ "q" + q,
11401
+ ),
11394
11402
  );
11395
11403
  }
11396
11404
  rows.push(row);
@@ -11436,11 +11444,11 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11436
11444
  {
11437
11445
  children: cells,
11438
11446
  },
11439
- i
11447
+ i,
11440
11448
  );
11441
11449
  }),
11442
11450
  },
11443
- start + y
11451
+ start + y,
11444
11452
  );
11445
11453
  }),
11446
11454
  }),
@@ -11461,7 +11469,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11461
11469
  var visibleItems = ceil5(Math.ceil(this.dom.el.offsetHeight / this.state.yearHeight));
11462
11470
  var start = Math.max(
11463
11471
  startYear,
11464
- startYear + floor5(Math.floor(this.dom.el.scrollTop / this.state.yearHeight)) - visibleItems
11472
+ startYear + floor5(Math.floor(this.dom.el.scrollTop / this.state.yearHeight)) - visibleItems,
11465
11473
  );
11466
11474
  if (start != this.state.start && start + bufferSize <= endYear) {
11467
11475
  this.setState({
@@ -11499,7 +11507,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11499
11507
  _this4.dom.el.scrollTop =
11500
11508
  (_this4.state.cursorYear - startYear + yearCount / 2) * _this4.state.yearHeight -
11501
11509
  _this4.dom.el.offsetHeight / 2;
11502
- }
11510
+ },
11503
11511
  );
11504
11512
  };
11505
11513
  _proto2.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
@@ -11532,10 +11540,10 @@ var PixelPickerIcon = registerIcon(
11532
11540
  d: "M27.7,3.3c-1.5-1.5-3.9-1.5-5.4,0L17,8.6l-1.3-1.3c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l1.3,1.3L5,20.6 c-0.6,0.6-1,1.4-1.1,2.3C3.3,23.4,3,24.2,3,25c0,1.7,1.3,3,3,3c0.8,0,1.6-0.3,2.2-0.9C9,27,9.8,26.6,10.4,26L21,15.4l1.3,1.3 c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L22.4,14l5.3-5.3C29.2,7.2,29.2,4.8,27.7,3.3z M9,24.6 c-0.4,0.4-0.8,0.6-1.3,0.5c-0.4,0-0.7,0.2-0.9,0.5C6.7,25.8,6.3,26,6,26c-0.6,0-1-0.4-1-1c0-0.3,0.2-0.7,0.5-0.8 c0.3-0.2,0.5-0.5,0.5-0.9c0-0.5,0.2-1,0.5-1.3L17,11.4l2.6,2.6L9,24.6z",
11533
11541
  fill: "currentColor",
11534
11542
  }),
11535
- })
11543
+ }),
11536
11544
  );
11537
11545
  },
11538
- true
11546
+ true,
11539
11547
  );
11540
11548
 
11541
11549
  var ColorPicker = /*#__PURE__*/ (function (_Field) {
@@ -11554,7 +11562,7 @@ var ColorPicker = /*#__PURE__*/ (function (_Field) {
11554
11562
  value: this.emptyValue,
11555
11563
  format: undefined,
11556
11564
  },
11557
- ].concat(Array.prototype.slice.call(arguments))
11565
+ ].concat(Array.prototype.slice.call(arguments)),
11558
11566
  );
11559
11567
  };
11560
11568
  _proto.renderInput = function renderInput(context, instance, key) {
@@ -11563,7 +11571,7 @@ var ColorPicker = /*#__PURE__*/ (function (_Field) {
11563
11571
  {
11564
11572
  instance: instance,
11565
11573
  },
11566
- key
11574
+ key,
11567
11575
  );
11568
11576
  };
11569
11577
  _proto.handleEvent = function handleEvent(eventType, instance, color) {
@@ -12141,7 +12149,7 @@ var MonthField = /*#__PURE__*/ (function (_Field) {
12141
12149
  maxExclusive: undefined,
12142
12150
  icon: undefined,
12143
12151
  },
12144
- ].concat(Array.prototype.slice.call(arguments))
12152
+ ].concat(Array.prototype.slice.call(arguments)),
12145
12153
  );
12146
12154
  };
12147
12155
  _proto.isEmpty = function isEmpty(data) {
@@ -12226,7 +12234,7 @@ var MonthField = /*#__PURE__*/ (function (_Field) {
12226
12234
  help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
12227
12235
  icon: this.renderIcon(context, instance, "icon"),
12228
12236
  },
12229
- key
12237
+ key,
12230
12238
  );
12231
12239
  };
12232
12240
  _proto.formatValue = function formatValue(context, _ref) {
@@ -12331,11 +12339,11 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
12331
12339
  if (!touch) _this2.input.focus();
12332
12340
  });
12333
12341
  },
12334
- }
12342
+ },
12335
12343
  ),
12336
12344
  constrain: true,
12337
12345
  firstChildDefinesWidth: true,
12338
- }
12346
+ },
12339
12347
  );
12340
12348
  return (this.dropdown = Widget.create(dropdown));
12341
12349
  };
@@ -12405,7 +12413,7 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
12405
12413
  icon: !!icon,
12406
12414
  empty: empty && !data.placeholder,
12407
12415
  error: data.error && (state.visited || !suppressErrorsUntilVisited || !empty),
12408
- })
12416
+ }),
12409
12417
  ),
12410
12418
  style: data.style,
12411
12419
  onMouseDown: this.onMouseDown.bind(this),
@@ -12532,7 +12540,7 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
12532
12540
  {
12533
12541
  dropdownOpen: false,
12534
12542
  },
12535
- callback
12543
+ callback,
12536
12544
  );
12537
12545
  } else if (callback) callback();
12538
12546
  };
@@ -12620,7 +12628,7 @@ var ColorField = /*#__PURE__*/ (function (_Field) {
12620
12628
  required: undefined,
12621
12629
  format: undefined,
12622
12630
  },
12623
- ].concat(Array.prototype.slice.call(arguments))
12631
+ ].concat(Array.prototype.slice.call(arguments)),
12624
12632
  );
12625
12633
  };
12626
12634
  _proto.init = function init() {
@@ -12652,7 +12660,7 @@ var ColorField = /*#__PURE__*/ (function (_Field) {
12652
12660
  label: this.labelPlacement && getContent(this.renderLabel(context, instance, "label")),
12653
12661
  help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
12654
12662
  },
12655
- key
12663
+ key,
12656
12664
  );
12657
12665
  };
12658
12666
  return ColorField;
@@ -12713,7 +12721,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
12713
12721
  if (!touch) _this2.input.focus();
12714
12722
  });
12715
12723
  },
12716
- }
12724
+ },
12717
12725
  ),
12718
12726
  onFocusOut: function onFocusOut() {
12719
12727
  _this2.closeDropdown();
@@ -12723,7 +12731,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
12723
12731
  },
12724
12732
  firstChildDefinesHeight: true,
12725
12733
  firstChildDefinesWidth: true,
12726
- }
12734
+ },
12727
12735
  );
12728
12736
  return (this.dropdown = Widget.create(dropdown));
12729
12737
  };
@@ -12794,7 +12802,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
12794
12802
  icon: true,
12795
12803
  empty: empty && !data.placeholder,
12796
12804
  error: data.error && (state.visited || !suppressErrorsUntilVisited || !empty),
12797
- })
12805
+ }),
12798
12806
  ),
12799
12807
  style: data.style,
12800
12808
  onMouseDown: this.onMouseDown.bind(this),
@@ -12841,8 +12849,8 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
12841
12849
  onMouseLeave: function onMouseLeave(e) {
12842
12850
  return tooltipMouseLeave$1.apply(void 0, [e].concat(getFieldTooltip(instance)));
12843
12851
  },
12844
- }
12845
- )
12852
+ },
12853
+ ),
12846
12854
  ),
12847
12855
  well,
12848
12856
  insideButton,
@@ -12922,7 +12930,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
12922
12930
  {
12923
12931
  dropdownOpen: false,
12924
12932
  },
12925
- callback
12933
+ callback,
12926
12934
  );
12927
12935
  } else if (callback) callback();
12928
12936
  };
@@ -13019,7 +13027,7 @@ var UploadButton = /*#__PURE__*/ (function (_Field) {
13019
13027
  icon: undefined,
13020
13028
  accept: undefined,
13021
13029
  },
13022
- ].concat(Array.prototype.slice.call(arguments))
13030
+ ].concat(Array.prototype.slice.call(arguments)),
13023
13031
  );
13024
13032
  };
13025
13033
  _proto.renderInput = function renderInput(context, instance, key) {
@@ -13030,7 +13038,7 @@ var UploadButton = /*#__PURE__*/ (function (_Field) {
13030
13038
  instance: instance,
13031
13039
  children: data.text || this.renderChildren(context, instance),
13032
13040
  },
13033
- key
13041
+ key,
13034
13042
  );
13035
13043
  };
13036
13044
  return UploadButton;
@@ -13088,7 +13096,7 @@ var UploadButtonComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13088
13096
  width: this.state.progress + "%",
13089
13097
  },
13090
13098
  },
13091
- "progress"
13099
+ "progress",
13092
13100
  ),
13093
13101
  icon,
13094
13102
  children,
@@ -13104,7 +13112,7 @@ var UploadButtonComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13104
13112
  tabIndex: data.tabIndex,
13105
13113
  onChange: this.onFileSelected.bind(this),
13106
13114
  },
13107
- this.state.uploadKey
13115
+ this.state.uploadKey,
13108
13116
  ),
13109
13117
  ],
13110
13118
  });
@@ -13239,7 +13247,7 @@ var Slider = /*#__PURE__*/ (function (_Field) {
13239
13247
  },
13240
13248
  invert: false,
13241
13249
  },
13242
- ].concat(Array.prototype.slice.call(arguments))
13250
+ ].concat(Array.prototype.slice.call(arguments)),
13243
13251
  );
13244
13252
  };
13245
13253
  _proto.init = function init() {
@@ -13270,7 +13278,7 @@ var Slider = /*#__PURE__*/ (function (_Field) {
13270
13278
  data: instance.data,
13271
13279
  label: this.labelPlacement && getContent(this.renderLabel(context, instance, "label")),
13272
13280
  },
13273
- key
13281
+ key,
13274
13282
  );
13275
13283
  };
13276
13284
  return Slider;
@@ -13323,12 +13331,12 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13323
13331
  var fromHandleStyle = _extends(
13324
13332
  {},
13325
13333
  handleStyle,
13326
- ((_extends2 = {}), (_extends2[anchor] = (100 * (from - minValue)) / (maxValue - minValue) + "%"), _extends2)
13334
+ ((_extends2 = {}), (_extends2[anchor] = (100 * (from - minValue)) / (maxValue - minValue) + "%"), _extends2),
13327
13335
  );
13328
13336
  var toHandleStyle = _extends(
13329
13337
  {},
13330
13338
  handleStyle,
13331
- ((_extends3 = {}), (_extends3[anchor] = (100 * (to - minValue)) / (maxValue - minValue) + "%"), _extends3)
13339
+ ((_extends3 = {}), (_extends3[anchor] = (100 * (to - minValue)) / (maxValue - minValue) + "%"), _extends3),
13332
13340
  );
13333
13341
  var rangeStyle = _extends(
13334
13342
  {},
@@ -13336,7 +13344,7 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13336
13344
  ((_extends4 = {}),
13337
13345
  (_extends4[anchor] = (100 * rangeStart) / (maxValue - minValue) + "%"),
13338
13346
  (_extends4[widget.vertical ? "height" : "width"] = (100 * rangeSize) / (maxValue - minValue) + "%"),
13339
- _extends4)
13347
+ _extends4),
13340
13348
  );
13341
13349
  return /*#__PURE__*/ jsxs("div", {
13342
13350
  className: data.classNames,
@@ -13367,7 +13375,7 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13367
13375
  className: CSS.element(baseClass, "range"),
13368
13376
  style: rangeStyle,
13369
13377
  },
13370
- "range"
13378
+ "range",
13371
13379
  ),
13372
13380
  /*#__PURE__*/ jsxs(
13373
13381
  "div",
@@ -13402,7 +13410,7 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13402
13410
  return (_this2.dom.from = c);
13403
13411
  },
13404
13412
  },
13405
- "from"
13413
+ "from",
13406
13414
  ),
13407
13415
  widget.showTo &&
13408
13416
  /*#__PURE__*/ jsx(
@@ -13429,11 +13437,11 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13429
13437
  return (_this2.dom.to = c);
13430
13438
  },
13431
13439
  },
13432
- "to"
13440
+ "to",
13433
13441
  ),
13434
13442
  ],
13435
13443
  },
13436
- "space"
13444
+ "space",
13437
13445
  ),
13438
13446
  ],
13439
13447
  }),
@@ -13476,7 +13484,7 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13476
13484
  },
13477
13485
  {
13478
13486
  passive: false,
13479
- }
13487
+ },
13480
13488
  );
13481
13489
  };
13482
13490
  _proto2.onHandleMouseLeave = function onHandleMouseLeave(e, handle) {
@@ -13551,7 +13559,7 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13551
13559
  tooltipName: tooltipName,
13552
13560
  target: handleEl,
13553
13561
  });
13554
- }
13562
+ },
13555
13563
  );
13556
13564
  };
13557
13565
  _proto2.getValues = function getValues(e, d) {
@@ -13676,7 +13684,7 @@ var Switch = /*#__PURE__*/ (function (_Field) {
13676
13684
  structured: true,
13677
13685
  },
13678
13686
  },
13679
- ].concat(Array.prototype.slice.call(arguments))
13687
+ ].concat(Array.prototype.slice.call(arguments)),
13680
13688
  );
13681
13689
  };
13682
13690
  _proto.isEmpty = function isEmpty() {
@@ -13759,11 +13767,11 @@ var Switch = /*#__PURE__*/ (function (_Field) {
13759
13767
  className: CSS.element(this.baseClass, "text"),
13760
13768
  children: text,
13761
13769
  },
13762
- "text"
13770
+ "text",
13763
13771
  ),
13764
13772
  ],
13765
13773
  },
13766
- key
13774
+ key,
13767
13775
  );
13768
13776
  };
13769
13777
  _proto.toggle = function toggle(e, instance) {
@@ -13795,7 +13803,7 @@ var Wheel = /*#__PURE__*/ (function (_PureContainer) {
13795
13803
  value: undefined,
13796
13804
  options: undefined,
13797
13805
  },
13798
- ])
13806
+ ]),
13799
13807
  );
13800
13808
  };
13801
13809
  _proto.render = function render(context, instance, key) {
@@ -13826,11 +13834,11 @@ var Wheel = /*#__PURE__*/ (function (_PureContainer) {
13826
13834
  {
13827
13835
  children: o.text,
13828
13836
  },
13829
- 0
13837
+ 0,
13830
13838
  );
13831
13839
  }),
13832
13840
  },
13833
- key
13841
+ key,
13834
13842
  );
13835
13843
  };
13836
13844
  return Wheel;
@@ -13894,7 +13902,7 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13894
13902
  cls: optionClass,
13895
13903
  };
13896
13904
  }),
13897
- bpad
13905
+ bpad,
13898
13906
  );
13899
13907
  if (!this.state.wheelHeight) displayedOptions = displayedOptions.slice(this.index, this.index + size);
13900
13908
  return /*#__PURE__*/ jsxs("div", {
@@ -13932,7 +13940,7 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13932
13940
  className: opt.cls,
13933
13941
  children: opt.child,
13934
13942
  },
13935
- opt.key
13943
+ opt.key,
13936
13944
  );
13937
13945
  }),
13938
13946
  }),
@@ -13995,7 +14003,7 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13995
14003
  },
13996
14004
  function () {
13997
14005
  _this3.scrollEl.scrollTop = (_this3.index * _this3.state.wheelHeight) / _this3.props.size;
13998
- }
14006
+ },
13999
14007
  );
14000
14008
  if (this.props.onPipeKeyDown) this.props.onPipeKeyDown(this.onKeyDown);
14001
14009
  };
@@ -14083,7 +14091,7 @@ var DateTimePicker = /*#__PURE__*/ (function (_Widget) {
14083
14091
  {
14084
14092
  value: undefined,
14085
14093
  },
14086
- ])
14094
+ ]),
14087
14095
  );
14088
14096
  };
14089
14097
  _proto.render = function render(context, instance, key) {
@@ -14095,7 +14103,7 @@ var DateTimePicker = /*#__PURE__*/ (function (_Widget) {
14095
14103
  size: this.size,
14096
14104
  segment: this.segment,
14097
14105
  },
14098
- key
14106
+ key,
14099
14107
  );
14100
14108
  };
14101
14109
  return DateTimePicker;
@@ -14191,8 +14199,8 @@ var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
14191
14199
  {
14192
14200
  children: y,
14193
14201
  },
14194
- y
14195
- )
14202
+ y,
14203
+ ),
14196
14204
  );
14197
14205
  var days = [];
14198
14206
  var start = new Date(date.getFullYear(), date.getMonth(), 1);
@@ -14204,8 +14212,8 @@ var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
14204
14212
  {
14205
14213
  children: day < 10 ? "0" + day : day,
14206
14214
  },
14207
- day
14208
- )
14215
+ day,
14216
+ ),
14209
14217
  );
14210
14218
  start.setDate(start.getDate() + 1);
14211
14219
  }
@@ -14217,8 +14225,8 @@ var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
14217
14225
  {
14218
14226
  children: h < 10 ? "0" + h : h,
14219
14227
  },
14220
- h
14221
- )
14228
+ h,
14229
+ ),
14222
14230
  );
14223
14231
  }
14224
14232
  var minutes = [];
@@ -14229,8 +14237,8 @@ var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
14229
14237
  {
14230
14238
  children: m < 10 ? "0" + m : m,
14231
14239
  },
14232
- m
14233
- )
14240
+ m,
14241
+ ),
14234
14242
  );
14235
14243
  }
14236
14244
  return /*#__PURE__*/ jsxs("div", {
@@ -14300,7 +14308,7 @@ var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
14300
14308
  {
14301
14309
  children: m,
14302
14310
  },
14303
- i
14311
+ i,
14304
14312
  );
14305
14313
  }),
14306
14314
  }),
@@ -14637,7 +14645,7 @@ var DateTimeField = /*#__PURE__*/ (function (_Field) {
14637
14645
  icon: undefined,
14638
14646
  autoOpen: undefined,
14639
14647
  },
14640
- ].concat(Array.prototype.slice.call(arguments))
14648
+ ].concat(Array.prototype.slice.call(arguments)),
14641
14649
  );
14642
14650
  };
14643
14651
  _proto.init = function init() {
@@ -14729,7 +14737,7 @@ var DateTimeField = /*#__PURE__*/ (function (_Field) {
14729
14737
  help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
14730
14738
  icon: getContent(this.renderIcon(context, instance, "icon")),
14731
14739
  },
14732
- key
14740
+ key,
14733
14741
  );
14734
14742
  };
14735
14743
  _proto.formatValue = function formatValue(context, _ref) {
@@ -14858,7 +14866,7 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
14858
14866
  });
14859
14867
  },
14860
14868
  }),
14861
- }
14869
+ },
14862
14870
  );
14863
14871
  return (this.dropdown = Widget.create(dropdown));
14864
14872
  };
@@ -14928,7 +14936,7 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
14928
14936
  icon: !!icon,
14929
14937
  empty: empty && !data.placeholder,
14930
14938
  error: data.error && (state.visited || !suppressErrorsUntilVisited || !empty),
14931
- })
14939
+ }),
14932
14940
  ),
14933
14941
  style: data.style,
14934
14942
  onMouseDown: this.onMouseDown.bind(this),
@@ -14974,8 +14982,8 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
14974
14982
  onMouseLeave: function onMouseLeave(e) {
14975
14983
  return tooltipMouseLeave$1.apply(void 0, [e].concat(getFieldTooltip(_this3.props.instance)));
14976
14984
  },
14977
- }
14978
- )
14985
+ },
14986
+ ),
14979
14987
  ),
14980
14988
  icon,
14981
14989
  insideButton,
@@ -15063,7 +15071,7 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
15063
15071
  {
15064
15072
  dropdownOpen: false,
15065
15073
  },
15066
- callback
15074
+ callback,
15067
15075
  );
15068
15076
  this.props.instance.setState({
15069
15077
  visited: true,
@@ -15201,7 +15209,7 @@ var Validator = /*#__PURE__*/ (function (_Field) {
15201
15209
  },
15202
15210
  disabled: undefined,
15203
15211
  },
15204
- ])
15212
+ ]),
15205
15213
  );
15206
15214
  };
15207
15215
  _proto.isEmpty = function isEmpty(data) {
@@ -15225,10 +15233,10 @@ var DropDownIcon = registerIcon(
15225
15233
  fill: "currentColor",
15226
15234
  d: "M10.5 5.8l-3-3-3 3 .707.708L7 4.688v8.312h1V4.69l1.793 1.817z",
15227
15235
  }),
15228
- })
15236
+ }),
15229
15237
  );
15230
15238
  },
15231
- true
15239
+ true,
15232
15240
  );
15233
15241
 
15234
15242
  var GridCell = /*#__PURE__*/ (function (_PureContainer) {
@@ -15254,7 +15262,7 @@ var GridCell = /*#__PURE__*/ (function (_PureContainer) {
15254
15262
  fixed: undefined,
15255
15263
  mergeCells: undefined,
15256
15264
  },
15257
- ])
15265
+ ]),
15258
15266
  );
15259
15267
  };
15260
15268
  _proto.init = function init() {
@@ -15278,8 +15286,8 @@ var GridCell = /*#__PURE__*/ (function (_PureContainer) {
15278
15286
  }),
15279
15287
  (_this$CSS$state["aligned-" + this.align] = this.align),
15280
15288
  (_this$CSS$state.mergable = data.merged),
15281
- _this$CSS$state)
15282
- )
15289
+ _this$CSS$state),
15290
+ ),
15283
15291
  );
15284
15292
  data.style = this.CSS.parseStyle(data.style);
15285
15293
  };
@@ -15349,7 +15357,7 @@ var GridRow = /*#__PURE__*/ (function (_ValidationGroup) {
15349
15357
  {
15350
15358
  hoverId: undefined,
15351
15359
  },
15352
- ])
15360
+ ]),
15353
15361
  );
15354
15362
  };
15355
15363
  _proto.init = function init() {
@@ -15359,7 +15367,7 @@ var GridRow = /*#__PURE__*/ (function (_ValidationGroup) {
15359
15367
  this.items.push(
15360
15368
  GridRowLine.create(this["line" + i], {
15361
15369
  recordName: this.recordName,
15362
- })
15370
+ }),
15363
15371
  );
15364
15372
  }
15365
15373
  _ValidationGroup.prototype.init.call(this);
@@ -15444,7 +15452,7 @@ var GridRowComponent = /*#__PURE__*/ (function (_VDOM$Component) {
15444
15452
  onContextMenu: this.onRowContextMenu,
15445
15453
  "data-record-key": record.key,
15446
15454
  },
15447
- children
15455
+ children,
15448
15456
  );
15449
15457
  };
15450
15458
  _proto2.onMouseDown = function onMouseDown(e) {
@@ -15587,7 +15595,7 @@ var GridCellEditor = /*#__PURE__*/ (function (_Container) {
15587
15595
  style: data.style,
15588
15596
  children: this.renderChildren(context, instance),
15589
15597
  },
15590
- key
15598
+ key,
15591
15599
  );
15592
15600
  };
15593
15601
  return GridCellEditor;
@@ -15669,7 +15677,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15669
15677
  },
15670
15678
  },
15671
15679
  selection,
15672
- ])
15680
+ ]),
15673
15681
  );
15674
15682
  };
15675
15683
  _proto.init = function init() {
@@ -15769,18 +15777,18 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15769
15777
  value: isDefined(c.aggregateValue)
15770
15778
  ? c.aggregateValue
15771
15779
  : isDefined(c.value)
15772
- ? c.value
15773
- : c.aggregateField
15774
- ? {
15775
- bind: _this.recordName + "." + c.aggregateField,
15776
- }
15777
- : null,
15780
+ ? c.value
15781
+ : c.aggregateField
15782
+ ? {
15783
+ bind: _this.recordName + "." + c.aggregateField,
15784
+ }
15785
+ : null,
15778
15786
  weight:
15779
15787
  c.weight != null
15780
15788
  ? c.weight
15781
15789
  : c.weightField && {
15782
15790
  bind: _this.recordName + "." + c.weightField,
15783
- },
15791
+ },
15784
15792
  type: c.aggregate,
15785
15793
  };
15786
15794
  } else if (c.footer && !showFooter) {
@@ -15805,7 +15813,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15805
15813
  grouping[0].showFooter = true;
15806
15814
  if (grouping[0].key && Object.keys(grouping[0].key).length > 0)
15807
15815
  Console.warn(
15808
- "First grouping level in grids with a fixed footer must group all data. The key field should be omitted."
15816
+ "First grouping level in grids with a fixed footer must group all data. The key field should be omitted.",
15809
15817
  );
15810
15818
  }
15811
15819
  instance.dataAdapter = DataAdapter.create(
@@ -15819,7 +15827,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15819
15827
  sortOptions: this.sortOptions,
15820
15828
  groupings: grouping,
15821
15829
  },
15822
- this.dataAdapter
15830
+ this.dataAdapter,
15823
15831
  );
15824
15832
  instance.dataAdapter.initInstance(context, instance);
15825
15833
  return Widget.create(
@@ -15832,8 +15840,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15832
15840
  recordName: this.recordName,
15833
15841
  hoverId: this.rowHoverId,
15834
15842
  },
15835
- row
15836
- )
15843
+ row,
15844
+ ),
15837
15845
  );
15838
15846
  };
15839
15847
  _proto.prepareData = function prepareData(context, instance) {
@@ -16079,7 +16087,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16079
16087
  fixedColumnsFixedFooter: instance.fixedColumnsFixedFooterVDOM,
16080
16088
  children: this.renderChildren(context, instance),
16081
16089
  },
16082
- key
16090
+ key,
16083
16091
  );
16084
16092
  };
16085
16093
  _proto.renderResizer = function renderResizer(instance, hdinst, header, colIndex, forPreviousColumn) {
@@ -16132,7 +16140,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16132
16140
  width: width,
16133
16141
  column: hdwidget,
16134
16142
  },
16135
- hdinst
16143
+ hdinst,
16136
16144
  );
16137
16145
  header.set("width", width);
16138
16146
  instance.setState({
@@ -16140,7 +16148,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16140
16148
  colWidth: _extends(
16141
16149
  {},
16142
16150
  instance.state.colWidth,
16143
- ((_extends2 = {}), (_extends2[hdwidget.uniqueColumnId] = width), _extends2)
16151
+ ((_extends2 = {}), (_extends2[hdwidget.uniqueColumnId] = width), _extends2),
16144
16152
  ),
16145
16153
  });
16146
16154
  },
@@ -16176,7 +16184,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16176
16184
  colWidth: _extends(
16177
16185
  {},
16178
16186
  instance.state.colWidth,
16179
- ((_extends3 = {}), (_extends3[hdwidget.uniqueColumnId] = width), _extends3)
16187
+ ((_extends3 = {}), (_extends3[hdwidget.uniqueColumnId] = width), _extends3),
16180
16188
  ),
16181
16189
  });
16182
16190
  },
@@ -16313,8 +16321,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16313
16321
  "data-unique-col-id": colSpan > 1 ? null : hdwidget.uniqueColumnId,
16314
16322
  children: [getContent(content), sortIcon, tool, prevColumnResizer, resizer],
16315
16323
  },
16316
- colIndex
16317
- )
16324
+ colIndex,
16325
+ ),
16318
16326
  );
16319
16327
  },
16320
16328
  _ret;
@@ -16336,8 +16344,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16336
16344
  rowSpan: result.length,
16337
16345
  className: CSS.element(baseClass, "col-header"),
16338
16346
  },
16339
- "dummy"
16340
- )
16347
+ "dummy",
16348
+ ),
16341
16349
  );
16342
16350
  }
16343
16351
  headerRows.push.apply(
@@ -16348,9 +16356,9 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16348
16356
  {
16349
16357
  children: h,
16350
16358
  },
16351
- lineIndex + "-" + i
16359
+ lineIndex + "-" + i,
16352
16360
  );
16353
- })
16361
+ }),
16354
16362
  );
16355
16363
  }
16356
16364
  });
@@ -16361,7 +16369,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16361
16369
  className: CSS.element(baseClass, "header"),
16362
16370
  children: headerRows,
16363
16371
  },
16364
- "h" + key
16372
+ "h" + key,
16365
16373
  );
16366
16374
  };
16367
16375
  _proto.onHeaderMouseMove = function onHeaderMouseMove(e, column, columnInstance, gridInstance, headerLine) {
@@ -16403,7 +16411,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16403
16411
  },
16404
16412
  },
16405
16413
  },
16406
- function () {}
16414
+ function () {},
16407
16415
  );
16408
16416
  }
16409
16417
  };
@@ -16448,7 +16456,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16448
16456
  comparer: comparer,
16449
16457
  sortOptions: sortOptions,
16450
16458
  },
16451
- ]
16459
+ ]
16452
16460
  : null;
16453
16461
  if (sorters == null) field = null;
16454
16462
  instance.set("sorters", sorters);
@@ -16479,7 +16487,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16479
16487
  }),
16480
16488
  }),
16481
16489
  },
16482
- "g-" + level + "-" + group.$key
16490
+ "g-" + level + "-" + group.$key,
16483
16491
  );
16484
16492
  } else if (g.showCaption) {
16485
16493
  var skip = 0;
@@ -16542,7 +16550,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16542
16550
  style: style,
16543
16551
  children: v,
16544
16552
  },
16545
- i
16553
+ i,
16546
16554
  );
16547
16555
  });
16548
16556
  if (empty) return;
@@ -16552,8 +16560,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16552
16560
  {
16553
16561
  children: cells,
16554
16562
  },
16555
- lineIndex
16556
- )
16563
+ lineIndex,
16564
+ ),
16557
16565
  );
16558
16566
  });
16559
16567
  if (lines.length == 0) return null;
@@ -16565,7 +16573,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16565
16573
  "data-group-element": "group-caption-" + level,
16566
16574
  children: lines,
16567
16575
  },
16568
- "c" + group.$key
16576
+ "c" + group.$key,
16569
16577
  );
16570
16578
  }
16571
16579
  };
@@ -16578,7 +16586,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16578
16586
  i,
16579
16587
  store,
16580
16588
  fixed,
16581
- fixedColumns
16589
+ fixedColumns,
16582
16590
  ) {
16583
16591
  var CSS = this.CSS,
16584
16592
  baseClass = this.baseClass;
@@ -16643,7 +16651,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16643
16651
  style: style,
16644
16652
  children: v,
16645
16653
  },
16646
- i
16654
+ i,
16647
16655
  );
16648
16656
  });
16649
16657
  if (empty) return;
@@ -16654,8 +16662,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16654
16662
  {
16655
16663
  className: CSS.element(baseClass, "fixed-footer-corner"),
16656
16664
  },
16657
- "dummy"
16658
- )
16665
+ "dummy",
16666
+ ),
16659
16667
  );
16660
16668
  lines.push(
16661
16669
  /*#__PURE__*/ jsx(
@@ -16663,8 +16671,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16663
16671
  {
16664
16672
  children: cells,
16665
16673
  },
16666
- lineIndex
16667
- )
16674
+ lineIndex,
16675
+ ),
16668
16676
  );
16669
16677
  });
16670
16678
  if (lines.length == 0) return null;
@@ -16677,7 +16685,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16677
16685
  "data-group-element": "group-footer-" + level,
16678
16686
  children: lines,
16679
16687
  },
16680
- "f" + i
16688
+ "f" + i,
16681
16689
  );
16682
16690
  };
16683
16691
  _proto.renderRows = function renderRows(context, instance) {
@@ -16702,8 +16710,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16702
16710
  record.group,
16703
16711
  record.key + "-caption",
16704
16712
  record.store,
16705
- false
16706
- )
16713
+ false,
16714
+ ),
16707
16715
  );
16708
16716
  if (hasFixedColumns)
16709
16717
  record.fixedVdom.push(
@@ -16715,8 +16723,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16715
16723
  record.group,
16716
16724
  record.key + "-caption",
16717
16725
  record.store,
16718
- true
16719
- )
16726
+ true,
16727
+ ),
16720
16728
  );
16721
16729
  if (g.showHeader) {
16722
16730
  record.vdom.push(this.renderHeader(context, instance, record.key + "-header", false, false));
@@ -16736,7 +16744,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16736
16744
  record.key + "-footer",
16737
16745
  record.store,
16738
16746
  false,
16739
- false
16747
+ false,
16740
16748
  );
16741
16749
  if (hasFixedColumns)
16742
16750
  record.fixedVdom = this.renderGroupFooter(
@@ -16748,7 +16756,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16748
16756
  record.key + "-footer",
16749
16757
  record.store,
16750
16758
  false,
16751
- true
16759
+ true,
16752
16760
  );
16753
16761
  }
16754
16762
  }
@@ -16778,7 +16786,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16778
16786
  record.key + "-footer",
16779
16787
  record.store,
16780
16788
  true,
16781
- false
16789
+ false,
16782
16790
  );
16783
16791
  if (hasFixedColumns)
16784
16792
  instance.fixedColumnsFixedFooterVDOM = this.renderGroupFooter(
@@ -16792,7 +16800,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16792
16800
  record.key + "-footer",
16793
16801
  record.store,
16794
16802
  true,
16795
- true
16803
+ true,
16796
16804
  );
16797
16805
  };
16798
16806
  _proto.mapRecords = function mapRecords(context, instance) {
@@ -16912,7 +16920,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
16912
16920
  this.rowHeight > 0
16913
16921
  ? {
16914
16922
  height: this.rowHeight + 1,
16915
- }
16923
+ }
16916
16924
  : null,
16917
16925
  jsxAttributes: ["className", "style"],
16918
16926
  children: [
@@ -16936,7 +16944,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
16936
16944
  ],
16937
16945
  }),
16938
16946
  },
16939
- key
16947
+ key,
16940
16948
  );
16941
16949
  };
16942
16950
  _proto2.createRowRenderer = function createRowRenderer(cellWrap) {
@@ -17060,7 +17068,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17060
17068
  rowSpan: mergeRowSpan != null ? mergeRowSpan : data.rowSpan,
17061
17069
  children: content,
17062
17070
  },
17063
- key
17071
+ key,
17064
17072
  );
17065
17073
  });
17066
17074
  if (hasMergedCells) return cells;
@@ -17071,11 +17079,11 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17071
17079
  style: data.style,
17072
17080
  children: cells,
17073
17081
  },
17074
- key
17082
+ key,
17075
17083
  );
17076
17084
  }),
17077
17085
  },
17078
- key
17086
+ key,
17079
17087
  );
17080
17088
  };
17081
17089
  if (!standalone) return wrap(record.vdom);
@@ -17090,6 +17098,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17090
17098
  contentFactory: function contentFactory(x) {
17091
17099
  return wrap({
17092
17100
  content: Array.isArray(x.children) ? x.children : x.children != null ? [x.children] : [],
17101
+ data: {},
17093
17102
  });
17094
17103
  },
17095
17104
  params: _extends({}, mod, {
@@ -17100,7 +17109,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17100
17109
  cellEdit: index == cursor && cursorCellIndex != null && cellEdit,
17101
17110
  }),
17102
17111
  },
17103
- key
17112
+ key,
17104
17113
  );
17105
17114
  };
17106
17115
  };
@@ -17175,7 +17184,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17175
17184
  ],
17176
17185
  },
17177
17186
  },
17178
- start + i
17187
+ start + i,
17179
17188
  );
17180
17189
  } else {
17181
17190
  var record = instance.records
@@ -17199,8 +17208,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17199
17208
  record.group,
17200
17209
  record.key + "-caption",
17201
17210
  record.store,
17202
- false
17203
- )
17211
+ false,
17212
+ ),
17204
17213
  );
17205
17214
  if (hasFixedColumns)
17206
17215
  fixedChildren.push(
@@ -17212,8 +17221,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17212
17221
  record.group,
17213
17222
  record.key + "-caption",
17214
17223
  record.store,
17215
- true
17216
- )
17224
+ true,
17225
+ ),
17217
17226
  );
17218
17227
  }
17219
17228
  } else if (record.type == "group-footer") {
@@ -17229,8 +17238,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17229
17238
  record.key + "-footer",
17230
17239
  record.store,
17231
17240
  false,
17232
- false
17233
- )
17241
+ false,
17242
+ ),
17234
17243
  );
17235
17244
  if (hasFixedColumns)
17236
17245
  fixedChildren.push(
@@ -17243,8 +17252,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17243
17252
  record.key + "-footer",
17244
17253
  record.store,
17245
17254
  false,
17246
- true
17247
- )
17255
+ true,
17256
+ ),
17248
17257
  );
17249
17258
  }
17250
17259
  }
@@ -17323,7 +17332,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17323
17332
  }),
17324
17333
  }),
17325
17334
  },
17326
- "dropzone"
17335
+ "dropzone",
17327
17336
  );
17328
17337
  var dataRecordClass = CSS.element(baseClass, "data");
17329
17338
  var isDataRecord = widget.buffered
@@ -17337,13 +17346,13 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17337
17346
  ? void 0
17338
17347
  : _item$props["class"]) == dataRecordClass
17339
17348
  );
17340
- }
17349
+ }
17341
17350
  : function (item) {
17342
17351
  var _item$props2;
17343
17352
  return item == null || (_item$props2 = item.props) == null || (_item$props2 = _item$props2.record) == null
17344
17353
  ? void 0
17345
17354
  : _item$props2.type;
17346
- };
17355
+ };
17347
17356
  var _index = 0;
17348
17357
  while (_index < children.length && !isDataRecord(children[_index])) _index++;
17349
17358
  var count = 0;
@@ -17376,7 +17385,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17376
17385
  }),
17377
17386
  }),
17378
17387
  },
17379
- "empty"
17388
+ "empty",
17380
17389
  ),
17381
17390
  ];
17382
17391
  } else if (widget.fixedFooter && (widget.buffered || !instance.fixedFooterIsGroupFooter)) {
@@ -17407,8 +17416,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17407
17416
  }),
17408
17417
  }),
17409
17418
  },
17410
- "fixedscroller"
17411
- )
17419
+ "fixedscroller",
17420
+ ),
17412
17421
  );
17413
17422
  }
17414
17423
  content.push(
@@ -17433,8 +17442,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17433
17442
  }),
17434
17443
  }),
17435
17444
  },
17436
- "scroller"
17437
- )
17445
+ "scroller",
17446
+ ),
17438
17447
  );
17439
17448
  if (this.props.fixedHeader)
17440
17449
  content.push(
@@ -17452,8 +17461,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17452
17461
  children: this.props.fixedHeader,
17453
17462
  }),
17454
17463
  },
17455
- "fh"
17456
- )
17464
+ "fh",
17465
+ ),
17457
17466
  );
17458
17467
  if (this.props.fixedColumnsFixedHeader)
17459
17468
  fixedColumnsContent.push(
@@ -17471,8 +17480,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17471
17480
  children: this.props.fixedColumnsFixedHeader,
17472
17481
  }),
17473
17482
  },
17474
- "fcfh"
17475
- )
17483
+ "fcfh",
17484
+ ),
17476
17485
  );
17477
17486
  if (shouldRenderFixedFooter) {
17478
17487
  content.push(
@@ -17487,8 +17496,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17487
17496
  children: fixedFooter,
17488
17497
  }),
17489
17498
  },
17490
- "ff"
17491
- )
17499
+ "ff",
17500
+ ),
17492
17501
  );
17493
17502
  if (hasFixedColumns)
17494
17503
  fixedColumnsContent.push(
@@ -17503,8 +17512,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17503
17512
  children: fixedColumnsFixedFooter,
17504
17513
  }),
17505
17514
  },
17506
- "fcff"
17507
- )
17515
+ "fcff",
17516
+ ),
17508
17517
  );
17509
17518
  }
17510
17519
  var columnInsertionMarker = null;
@@ -17587,7 +17596,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17587
17596
  filterParams: data.filterParams,
17588
17597
  state: _this8.prevFetchRecordsState,
17589
17598
  },
17590
- instance
17599
+ instance,
17591
17600
  );
17592
17601
  promises.push(Promise.resolve(result));
17593
17602
  }
@@ -17605,7 +17614,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17605
17614
  } else {
17606
17615
  if (!Array.isArray(page.records))
17607
17616
  throw new Error(
17608
- "onFetchRecords should return an array of records or an object with results inside records property."
17617
+ "onFetchRecords should return an array of records or an object with results inside records property.",
17609
17618
  );
17610
17619
  totalRecordCount = page.totalRecordCount;
17611
17620
  lastPage = page.lastPage;
@@ -17690,7 +17699,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17690
17699
  },
17691
17700
  function () {
17692
17701
  _this9.pending = false;
17693
- }
17702
+ },
17694
17703
  );
17695
17704
  }
17696
17705
  }
@@ -17703,7 +17712,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17703
17712
  return props.shouldUpdate !== false || state !== this.state;
17704
17713
  };
17705
17714
  _proto2.componentDidMount = function componentDidMount() {
17706
- var _this0 = this;
17715
+ var _this10 = this;
17707
17716
  this.componentDidUpdate();
17708
17717
  var instance = this.props.instance;
17709
17718
  var widget = instance.widget;
@@ -17711,10 +17720,10 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17711
17720
  //update fixed header/footer on resize
17712
17721
  this.offResize = ResizeManager.trackElement(this.dom.scroller, function () {
17713
17722
  requestAnimationFrame(function () {
17714
- var _this0$dom$scroller;
17723
+ var _this10$dom$scroller;
17715
17724
  //ignore changes if the element is not visible on the page
17716
- if (!((_this0$dom$scroller = _this0.dom.scroller) != null && _this0$dom$scroller.offsetWidth)) return;
17717
- _this0.componentDidUpdate();
17725
+ if (!((_this10$dom$scroller = _this10.dom.scroller) != null && _this10$dom$scroller.offsetWidth)) return;
17726
+ _this10.componentDidUpdate();
17718
17727
  instance.setState({
17719
17728
  dimensionsVersion: instance.state.dimensionsVersion + 1,
17720
17729
  lockedColWidth: {},
@@ -18088,6 +18097,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18088
18097
  headerHeight = this.dom.fixedHeader.offsetHeight;
18089
18098
  this.dom.scroller.style.marginTop = headerHeight + "px";
18090
18099
  if (this.dom.fixedScroller) this.dom.fixedScroller.style.marginTop = headerHeight + "px";
18100
+ else if (this.dom.fixedHeader.style.left != null) this.dom.fixedHeader.style.left = null;
18091
18101
  } else {
18092
18102
  this.dom.scroller.style.marginTop = 0;
18093
18103
  if (this.dom.fixedScroller) this.dom.fixedScroller.style.marginTop = 0;
@@ -18128,6 +18138,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18128
18138
  footerHeight = this.dom.fixedFooter.offsetHeight;
18129
18139
  }
18130
18140
  if (this.dom.fixedScroller) this.dom.fixedFooter.style.left = this.dom.fixedScroller.offsetWidth + "px";
18141
+ else if (this.dom.fixedFooter.style.left != null) this.dom.fixedFooter.style.left = null;
18131
18142
  }
18132
18143
  this.dom.scroller.style.marginBottom = footerHeight + "px";
18133
18144
  if (this.dom.fixedScroller) this.dom.fixedScroller.style.marginBottom = footerHeight + "px";
@@ -18229,7 +18240,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18229
18240
  }
18230
18241
  };
18231
18242
  _proto2.moveCursor = function moveCursor(index, _temp) {
18232
- var _this1 = this;
18243
+ var _this11 = this;
18233
18244
  var _ref6 = _temp === void 0 ? {} : _temp,
18234
18245
  focused = _ref6.focused;
18235
18246
  _ref6.hover;
@@ -18268,72 +18279,72 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18268
18279
  }
18269
18280
  batchUpdates(function () {
18270
18281
  if (select) {
18271
- var start = selectRange && _this1.state.selectionStart >= 0 ? _this1.state.selectionStart : index;
18282
+ var start = selectRange && _this11.state.selectionStart >= 0 ? _this11.state.selectionStart : index;
18272
18283
  if (start < 0) start = index;
18273
- _this1.selectRange(start, index, selectOptions);
18284
+ _this11.selectRange(start, index, selectOptions);
18274
18285
  if (!selectRange) newState.selectionStart = index;
18275
18286
  }
18276
18287
  if (Object.keys(newState).length > 0) {
18277
- var prevState = _this1.state;
18288
+ var prevState = _this11.state;
18278
18289
  var wasCellEditing = prevState.focused && prevState.cellEdit;
18279
- var futureState = _extends({}, _this1.state, newState);
18290
+ var futureState = _extends({}, _this11.state, newState);
18280
18291
  if (!futureState.cellEdit && wasCellEditing) {
18281
18292
  // If cell editing is in progress, moving the cursor may cause that the cell editor to unmount before
18282
18293
  // the blur event which may cause data loss for components which do not have reactOn=change set, e.g. NumberField.
18283
18294
  unfocusElement(null, false);
18284
- var record = _this1.getRecordAt(prevState.cursor);
18285
- if ((!_this1.cellEditorValid || cancelEdit) && _this1.cellEditUndoData)
18286
- record.store.set(widget.recordName, _this1.cellEditUndoData);
18295
+ var record = _this11.getRecordAt(prevState.cursor);
18296
+ if ((!_this11.cellEditorValid || cancelEdit) && _this11.cellEditUndoData)
18297
+ record.store.set(widget.recordName, _this11.cellEditUndoData);
18287
18298
  else {
18288
18299
  var newData = record.store.get(widget.recordName); //record.data might be stale at this point
18289
- if (widget.onCellEdited && newData != _this1.cellEditUndoData) {
18290
- _this1.props.instance.invoke(
18300
+ if (widget.onCellEdited && newData != _this11.cellEditUndoData) {
18301
+ _this11.props.instance.invoke(
18291
18302
  "onCellEdited",
18292
18303
  {
18293
18304
  column: visibleColumns[prevState.cursorCellIndex],
18294
18305
  newData: newData,
18295
- oldData: _this1.cellEditUndoData,
18306
+ oldData: _this11.cellEditUndoData,
18296
18307
  field: visibleColumns[prevState.cursorCellIndex].field,
18297
18308
  },
18298
- record
18309
+ record,
18299
18310
  );
18300
- _this1.cellEditUndoData = newData;
18311
+ _this11.cellEditUndoData = newData;
18301
18312
  }
18302
18313
  }
18303
18314
  }
18304
18315
  if (futureState.cellEdit && !wasCellEditing) {
18305
- var _record = _this1.getRecordAt(futureState.cursor);
18316
+ var _record = _this11.getRecordAt(futureState.cursor);
18306
18317
  var cellEditUndoData = _record.data;
18307
18318
  if (
18308
18319
  widget.onBeforeCellEdit &&
18309
- _this1.props.instance.invoke(
18320
+ _this11.props.instance.invoke(
18310
18321
  "onBeforeCellEdit",
18311
18322
  {
18312
18323
  column: visibleColumns[futureState.cursorCellIndex],
18313
18324
  data: cellEditUndoData,
18314
18325
  field: visibleColumns[futureState.cursorCellIndex].field,
18315
18326
  },
18316
- _record
18327
+ _record,
18317
18328
  ) === false
18318
18329
  )
18319
18330
  return;
18320
- _this1.cellEditUndoData = cellEditUndoData;
18331
+ _this11.cellEditUndoData = cellEditUndoData;
18321
18332
  }
18322
- _this1.setState(newState, function () {
18323
- if (_this1.state.focused && !_this1.state.cellEdit && wasCellEditing) FocusManager.focus(_this1.dom.el);
18333
+ _this11.setState(newState, function () {
18334
+ if (_this11.state.focused && !_this11.state.cellEdit && wasCellEditing) FocusManager.focus(_this11.dom.el);
18324
18335
  if (scrollIntoView) {
18325
- var _record2 = _this1.getRecordAt(index);
18326
- var item = _record2 && _this1.dom.table.querySelector('tbody[data-record-key="' + _record2.key + '"]');
18336
+ var _record2 = _this11.getRecordAt(index);
18337
+ var item = _record2 && _this11.dom.table.querySelector('tbody[data-record-key="' + _record2.key + '"]');
18327
18338
  var hscroll = false;
18328
18339
  if (item) {
18329
18340
  if (widget.cellEditable)
18330
- if (_this1.state.cursorCellIndex >= _this1.props.instance.fixedColumnCount) {
18341
+ if (_this11.state.cursorCellIndex >= _this11.props.instance.fixedColumnCount) {
18331
18342
  hscroll = true;
18332
18343
  item =
18333
- item.firstChild.children[_this1.state.cursorCellIndex - _this1.props.instance.fixedColumnCount];
18344
+ item.firstChild.children[_this11.state.cursorCellIndex - _this11.props.instance.fixedColumnCount];
18334
18345
  } else {
18335
- var fixedItem = _this1.dom.fixedTable.querySelector('tbody[data-record-key="' + _record2.key + '"]');
18336
- var cell = fixedItem && fixedItem.firstChild.children[_this1.state.cursorCellIndex];
18346
+ var fixedItem = _this11.dom.fixedTable.querySelector('tbody[data-record-key="' + _record2.key + '"]');
18347
+ var cell = fixedItem && fixedItem.firstChild.children[_this11.state.cursorCellIndex];
18337
18348
  if (cell) scrollElementIntoView(cell, false, true, 10);
18338
18349
  }
18339
18350
  scrollElementIntoView(item, true, hscroll, widget.cellEditable ? 10 : 0);
@@ -18366,7 +18377,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18366
18377
  });
18367
18378
  };
18368
18379
  _proto2.onFocus = function onFocus() {
18369
- var _this10 = this;
18380
+ var _this12 = this;
18370
18381
  FocusManager.nudge();
18371
18382
 
18372
18383
  //focus moved within the grid
@@ -18381,13 +18392,13 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18381
18392
 
18382
18393
  //the cursor will be set if focus in originating from a mouse event
18383
18394
  setTimeout(function () {
18384
- _this10.showCursor(true);
18395
+ _this12.showCursor(true);
18385
18396
  }, 0);
18386
18397
  if (!widget.focused) {
18387
18398
  if (this.dom.el) {
18388
18399
  //if an inner element is focused first (autoFocus), this.dom.el might be undefined
18389
18400
  oneFocusOut(this, this.dom.el, function () {
18390
- _this10.moveCursor(-1, {
18401
+ _this12.moveCursor(-1, {
18391
18402
  focused: false,
18392
18403
  });
18393
18404
  });
@@ -18509,7 +18520,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18509
18520
  if (widget.cellEditable) {
18510
18521
  e.stopPropagation();
18511
18522
  e.preventDefault();
18512
- var direction = e.shiftKey ? -1 : 1;
18523
+ var direction = e.shiftKey ? -1 : +1;
18513
18524
  var cursor = this.state.cursor;
18514
18525
  var cellIndex = (this.state.cursorCellIndex + direction) % instance.row.line1.columns.length;
18515
18526
  if (cellIndex == -1) {
@@ -18598,7 +18609,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18598
18609
  }
18599
18610
  };
18600
18611
  _proto2.beginDragDrop = function beginDragDrop(e, record) {
18601
- var _this11 = this;
18612
+ var _this13 = this;
18602
18613
  var _this$props9 = this.props,
18603
18614
  instance = _this$props9.instance,
18604
18615
  data = _this$props9.data;
@@ -18616,7 +18627,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18616
18627
  var row = (mappedRecord.row = instance.getDetachedChild(
18617
18628
  instance.row,
18618
18629
  "DD:" + mappedRecord.key,
18619
- mappedRecord.store
18630
+ mappedRecord.store,
18620
18631
  ));
18621
18632
  row.selected = true;
18622
18633
  selected.push(mappedRecord);
@@ -18673,10 +18684,10 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18673
18684
  },
18674
18685
  },
18675
18686
  function () {
18676
- _this11.setState({
18687
+ _this13.setState({
18677
18688
  dragged: false,
18678
18689
  });
18679
- }
18690
+ },
18680
18691
  );
18681
18692
  this.setState({
18682
18693
  dragged: record,
@@ -18744,7 +18755,7 @@ var GridColumnHeaderLine = /*#__PURE__*/ (function (_PureContainer) {
18744
18755
  {
18745
18756
  showHeader: undefined,
18746
18757
  },
18747
- ])
18758
+ ]),
18748
18759
  );
18749
18760
  };
18750
18761
  _proto3.init = function init() {
@@ -18764,7 +18775,7 @@ var GridColumnHeaderLine = /*#__PURE__*/ (function (_PureContainer) {
18764
18775
  style: data.style,
18765
18776
  children: this.renderChildren(context, instance),
18766
18777
  },
18767
- key
18778
+ key,
18768
18779
  );
18769
18780
  };
18770
18781
  return GridColumnHeaderLine;
@@ -18790,7 +18801,7 @@ var GridColumnHeader = /*#__PURE__*/ (function (_Widget) {
18790
18801
  defaultWidth: undefined,
18791
18802
  fixed: undefined,
18792
18803
  },
18793
- ])
18804
+ ]),
18794
18805
  );
18795
18806
  };
18796
18807
  _proto4.init = function init() {
@@ -18885,7 +18896,7 @@ var GridColumnHeaderCell = /*#__PURE__*/ (function (_PureContainer2) {
18885
18896
  fixed: undefined,
18886
18897
  draggable: undefined,
18887
18898
  },
18888
- ])
18899
+ ]),
18889
18900
  );
18890
18901
  };
18891
18902
  _proto5.initComponents = function initComponents() {
@@ -18896,7 +18907,7 @@ var GridColumnHeaderCell = /*#__PURE__*/ (function (_PureContainer2) {
18896
18907
  {
18897
18908
  tool: this.tool && Widget.create(this.tool),
18898
18909
  },
18899
- ])
18910
+ ]),
18900
18911
  );
18901
18912
  };
18902
18913
  _proto5.render = function render(context, instance, key) {
@@ -19075,7 +19086,7 @@ var TreeNode = /*#__PURE__*/ (function (_Container) {
19075
19086
  folderIcon: undefined,
19076
19087
  hideArrow: undefined,
19077
19088
  },
19078
- ].concat(Array.prototype.slice.call(arguments))
19089
+ ].concat(Array.prototype.slice.call(arguments)),
19079
19090
  );
19080
19091
  };
19081
19092
  _proto.prepareData = function prepareData(context, instance) {
@@ -19136,7 +19147,7 @@ var TreeNode = /*#__PURE__*/ (function (_Container) {
19136
19147
  }),
19137
19148
  ],
19138
19149
  },
19139
- key
19150
+ key,
19140
19151
  );
19141
19152
  };
19142
19153
  _proto.toggle = function toggle(e, instance) {
@@ -19174,7 +19185,7 @@ var Pagination = /*#__PURE__*/ (function (_Widget) {
19174
19185
  length: undefined,
19175
19186
  pageCount: undefined,
19176
19187
  },
19177
- ].concat(Array.prototype.slice.call(arguments))
19188
+ ].concat(Array.prototype.slice.call(arguments)),
19178
19189
  );
19179
19190
  };
19180
19191
  _proto.render = function render(context, instance, key) {
@@ -19219,8 +19230,8 @@ var Pagination = /*#__PURE__*/ (function (_Widget) {
19219
19230
  },
19220
19231
  children: p < minPage ? prevPageIcon : p > maxPage ? nextPageIcon : p,
19221
19232
  },
19222
- p < minPage ? "-1" : p > maxPage ? "-2" : p
19223
- )
19233
+ p < minPage ? "-1" : p > maxPage ? "-2" : p,
19234
+ ),
19224
19235
  );
19225
19236
  };
19226
19237
  for (var p = minPage - 1; p <= maxPage + 1; p++) {
@@ -19237,7 +19248,7 @@ var Pagination = /*#__PURE__*/ (function (_Widget) {
19237
19248
  },
19238
19249
  children: pageBtns,
19239
19250
  },
19240
- key
19251
+ key,
19241
19252
  );
19242
19253
  };
19243
19254
  _proto.onKeyDown = function onKeyDown(e, instance) {
@@ -19299,7 +19310,7 @@ var DragSource = /*#__PURE__*/ (function (_Container) {
19299
19310
  structured: true,
19300
19311
  },
19301
19312
  },
19302
- ])
19313
+ ]),
19303
19314
  );
19304
19315
  };
19305
19316
  _proto.explore = function explore(context, instance) {
@@ -19317,7 +19328,7 @@ var DragSource = /*#__PURE__*/ (function (_Container) {
19317
19328
  handled: this.handled || instance.dragHandles.length > 0,
19318
19329
  children: this.renderChildren(context, instance),
19319
19330
  },
19320
- key
19331
+ key,
19321
19332
  );
19322
19333
  };
19323
19334
  return DragSource;
@@ -19387,8 +19398,8 @@ var DragSourceComponent = /*#__PURE__*/ (function (_VDOM$Component) {
19387
19398
  eventHandlers,
19388
19399
  {
19389
19400
  children: children,
19390
- }
19391
- )
19401
+ },
19402
+ ),
19392
19403
  );
19393
19404
  };
19394
19405
  _proto2.onMouseDown = function onMouseDown(e) {
@@ -19435,7 +19446,7 @@ var DragSourceComponent = /*#__PURE__*/ (function (_VDOM$Component) {
19435
19446
  dragged: false,
19436
19447
  });
19437
19448
  if (widget.onDragEnd) instance.invoke("onDragEnd", e, instance);
19438
- }
19449
+ },
19439
19450
  );
19440
19451
  this.setState({
19441
19452
  dragged: true,
@@ -19469,7 +19480,7 @@ var DragHandle = /*#__PURE__*/ (function (_Container) {
19469
19480
  onMouseUp: ddHandle,
19470
19481
  children: this.renderChildren(context, instance),
19471
19482
  },
19472
- key
19483
+ key,
19473
19484
  );
19474
19485
  };
19475
19486
  return DragHandle;
@@ -19522,7 +19533,7 @@ var DropZone = /*#__PURE__*/ (function (_Container) {
19522
19533
  structured: true,
19523
19534
  },
19524
19535
  },
19525
- ])
19536
+ ]),
19526
19537
  );
19527
19538
  };
19528
19539
  _proto.render = function render(context, instance, key) {
@@ -19532,7 +19543,7 @@ var DropZone = /*#__PURE__*/ (function (_Container) {
19532
19543
  instance: instance,
19533
19544
  children: this.renderChildren(context, instance),
19534
19545
  },
19535
- key
19546
+ key,
19536
19547
  );
19537
19548
  };
19538
19549
  return DropZone;