cx 25.6.2 → 25.7.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
- DataProxy,
36
35
  KeySelection,
36
+ DataProxy,
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 (e.includes(n)) continue;
167
+ if (-1 !== e.indexOf(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) {
@@ -1813,6 +1813,7 @@ var Sandbox = /*#__PURE__*/ (function (_PureContainer) {
1813
1813
  key: data.key,
1814
1814
  recordName: this.recordName,
1815
1815
  immutable: this.immutable,
1816
+ sealed: this.sealed,
1816
1817
  });
1817
1818
  instance.clearChildrenCache();
1818
1819
  }
@@ -1822,6 +1823,7 @@ var Sandbox = /*#__PURE__*/ (function (_PureContainer) {
1822
1823
  })(PureContainer);
1823
1824
  Sandbox.prototype.recordName = "$page";
1824
1825
  Sandbox.prototype.immutable = false;
1826
+ Sandbox.prototype.sealed = false;
1825
1827
  Widget.alias("sandbox", Sandbox);
1826
1828
 
1827
1829
  var CxCredit = /*#__PURE__*/ (function (_HtmlElement) {
@@ -1882,7 +1884,7 @@ var Heading = /*#__PURE__*/ (function (_HtmlElement) {
1882
1884
  data.stateMods = _extends(
1883
1885
  {},
1884
1886
  data.stateMods,
1885
- ((_extends2 = {}), (_extends2["level-" + this.level] = true), _extends2),
1887
+ ((_extends2 = {}), (_extends2["level-" + this.level] = true), _extends2)
1886
1888
  );
1887
1889
  _HtmlElement.prototype.prepareData.call(this, context, instance);
1888
1890
  };
@@ -2015,9 +2017,9 @@ var Section = /*#__PURE__*/ (function (_Container) {
2015
2017
  }),
2016
2018
  footer,
2017
2019
  ],
2018
- },
2020
+ }
2019
2021
  ),
2020
- key,
2022
+ key
2021
2023
  );
2022
2024
  };
2023
2025
  return Section;
@@ -2061,7 +2063,7 @@ var FlexBox = /*#__PURE__*/ (function (_Container) {
2061
2063
  (_extends2[this.hpad + "-hpad"] = this.hpad),
2062
2064
  (_extends2[this.vpad + "-vpad"] = this.vpad),
2063
2065
  (_extends2.nested = this.nested),
2064
- _extends2),
2066
+ _extends2)
2065
2067
  );
2066
2068
  _Container.prototype.prepareCSS.call(this, context, instance);
2067
2069
  };
@@ -2094,9 +2096,9 @@ var FlexBox = /*#__PURE__*/ (function (_Container) {
2094
2096
  className: CSS.element(baseClass, "flexbox", flexboxMods),
2095
2097
  children: this.renderChildren(context, instance),
2096
2098
  }),
2097
- },
2099
+ }
2098
2100
  ),
2099
- key,
2101
+ key
2100
2102
  );
2101
2103
  };
2102
2104
  return FlexBox;
@@ -2148,7 +2150,7 @@ var ProgressBar = /*#__PURE__*/ (function (_Widget) {
2148
2150
  text: undefined,
2149
2151
  value: undefined,
2150
2152
  },
2151
- ].concat(Array.prototype.slice.call(arguments)),
2153
+ ].concat(Array.prototype.slice.call(arguments))
2152
2154
  );
2153
2155
  };
2154
2156
  _proto.render = function render(context, instance, key) {
@@ -2167,7 +2169,7 @@ var ProgressBar = /*#__PURE__*/ (function (_Widget) {
2167
2169
  data.classNames,
2168
2170
  CSS.state({
2169
2171
  disabled: disabled,
2170
- }),
2172
+ })
2171
2173
  ),
2172
2174
  style: data.style,
2173
2175
  children: [
@@ -2183,7 +2185,7 @@ var ProgressBar = /*#__PURE__*/ (function (_Widget) {
2183
2185
  }),
2184
2186
  ],
2185
2187
  },
2186
- key,
2188
+ key
2187
2189
  );
2188
2190
  };
2189
2191
  return ProgressBar;
@@ -2340,7 +2342,7 @@ var Resizer = /*#__PURE__*/ (function (_Widget) {
2340
2342
  minSize: undefined,
2341
2343
  maxSize: undefined,
2342
2344
  },
2343
- ]),
2345
+ ])
2344
2346
  );
2345
2347
  };
2346
2348
  _proto.render = function render(context, instance, key) {
@@ -2351,7 +2353,7 @@ var Resizer = /*#__PURE__*/ (function (_Widget) {
2351
2353
  instance: instance,
2352
2354
  data: data,
2353
2355
  },
2354
- key,
2356
+ key
2355
2357
  );
2356
2358
  };
2357
2359
  return Resizer;
@@ -2395,7 +2397,7 @@ var ResizerCmp = /*#__PURE__*/ (function (_VDOM$Component) {
2395
2397
  CSS.state({
2396
2398
  vertical: !widget.horizontal,
2397
2399
  horizontal: widget.horizontal,
2398
- }),
2400
+ })
2399
2401
  ),
2400
2402
  style: data.style,
2401
2403
  onDoubleClick: function onDoubleClick(e) {
@@ -2436,7 +2438,7 @@ var ResizerCmp = /*#__PURE__*/ (function (_VDOM$Component) {
2436
2438
  this.onHandleMove.bind(this),
2437
2439
  this.onDragComplete.bind(this),
2438
2440
  this.state.initialPosition,
2439
- widget.horizontal ? "row-resize" : "col-resize",
2441
+ widget.horizontal ? "row-resize" : "col-resize"
2440
2442
  );
2441
2443
  }
2442
2444
  };
@@ -2508,7 +2510,7 @@ var HighlightedSearchText = /*#__PURE__*/ (function (_Widget) {
2508
2510
  chunks: undefined,
2509
2511
  query: undefined,
2510
2512
  },
2511
- ]),
2513
+ ])
2512
2514
  );
2513
2515
  };
2514
2516
  _proto.render = function render(context, instance, key) {
@@ -2534,7 +2536,7 @@ var HighlightedSearchText = /*#__PURE__*/ (function (_Widget) {
2534
2536
  style: style,
2535
2537
  children: text,
2536
2538
  },
2537
- key + "-" + i,
2539
+ key + "-" + i
2538
2540
  );
2539
2541
  });
2540
2542
  };
@@ -2730,7 +2732,7 @@ function notifyDragMove(e, captureData) {
2730
2732
  var current = vscrollParent.scrollTop;
2731
2733
  var next = Math.min(
2732
2734
  vscrollParent.scrollHeight,
2733
- 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)
2734
2736
  ); //60 FPS
2735
2737
  vscrollParent.scrollTop = next;
2736
2738
  }
@@ -2738,7 +2740,7 @@ function notifyDragMove(e, captureData) {
2738
2740
  var _current = hscrollParent.scrollLeft;
2739
2741
  var _next = Math.min(
2740
2742
  hscrollParent.scrollWidth,
2741
- 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)
2742
2744
  ); //60 FPS
2743
2745
  hscrollParent.scrollLeft = _next;
2744
2746
  }
@@ -2815,11 +2817,11 @@ function isDragHandleEvent(e) {
2815
2817
  var DragDropContext = VDOM.createContext
2816
2818
  ? VDOM.createContext({
2817
2819
  disabled: false,
2818
- })
2820
+ })
2819
2821
  : function (_ref) {
2820
2822
  var children = _ref.children;
2821
2823
  return children;
2822
- };
2824
+ };
2823
2825
  var ContextWrap = /*#__PURE__*/ (function (_Container) {
2824
2826
  function ContextWrap() {
2825
2827
  return _Container.apply(this, arguments) || this;
@@ -2833,7 +2835,7 @@ var ContextWrap = /*#__PURE__*/ (function (_Container) {
2833
2835
  value: this.value,
2834
2836
  children: this.renderChildren(context, instance),
2835
2837
  },
2836
- key,
2838
+ key
2837
2839
  );
2838
2840
  };
2839
2841
  return ContextWrap;
@@ -2862,7 +2864,7 @@ var Overlay = /*#__PURE__*/ (function (_Container) {
2862
2864
  draggable: undefined,
2863
2865
  zIndex: undefined,
2864
2866
  },
2865
- ]),
2867
+ ])
2866
2868
  );
2867
2869
  };
2868
2870
  _proto.prepareData = function prepareData(context, instance) {
@@ -2896,7 +2898,7 @@ var Overlay = /*#__PURE__*/ (function (_Container) {
2896
2898
  "parentOptions",
2897
2899
  _extends({}, context.parentOptions, {
2898
2900
  dismiss: instance.dismiss,
2899
- }),
2901
+ })
2900
2902
  );
2901
2903
  }
2902
2904
  if (instance.cache("dismiss", instance.dismiss)) instance.markShouldUpdate(context);
@@ -2916,7 +2918,7 @@ var Overlay = /*#__PURE__*/ (function (_Container) {
2916
2918
  parentEl: context.options.parentEl,
2917
2919
  children: this.renderContents(context, instance),
2918
2920
  },
2919
- key,
2921
+ key
2920
2922
  );
2921
2923
  };
2922
2924
  _proto.renderContents = function renderContents(context, instance) {
@@ -2978,7 +2980,7 @@ var Overlay = /*#__PURE__*/ (function (_Container) {
2978
2980
  subscribeToBeforeDismiss: function subscribeToBeforeDismiss(cb) {
2979
2981
  beforeDismiss = cb;
2980
2982
  },
2981
- },
2983
+ }
2982
2984
  );
2983
2985
  options.name = options.name || "overlay";
2984
2986
  stop = startAppLoop(el, storeOrInstance, this, options);
@@ -3151,12 +3153,12 @@ var OverlayComponent = /*#__PURE__*/ (function (_VDOM$Component2) {
3151
3153
  className: CSS.element("overlay", "modal-backdrop"),
3152
3154
  onClick: this.onBackdropClick.bind(this),
3153
3155
  },
3154
- "backdrop",
3156
+ "backdrop"
3155
3157
  ),
3156
3158
  content,
3157
3159
  ],
3158
3160
  },
3159
- "shadow",
3161
+ "shadow"
3160
3162
  );
3161
3163
  }
3162
3164
  return result;
@@ -3413,7 +3415,7 @@ var OverlayComponent = /*#__PURE__*/ (function (_VDOM$Component2) {
3413
3415
  },
3414
3416
  {
3415
3417
  passive: false,
3416
- },
3418
+ }
3417
3419
  );
3418
3420
  };
3419
3421
  _proto3.componentWillUnmount = function componentWillUnmount() {
@@ -3483,8 +3485,8 @@ var OverlayComponent = /*#__PURE__*/ (function (_VDOM$Component2) {
3483
3485
  animated: this.state.animated && !this.unmounting && !this.dismissed,
3484
3486
  "animate-enter": this.state.animated && !this.dismissed,
3485
3487
  "animate-leave": widget.animate && this.dismissed,
3486
- }),
3487
- ),
3488
+ })
3489
+ )
3488
3490
  );
3489
3491
  };
3490
3492
  _proto3.overlayDidUpdate = function overlayDidUpdate() {
@@ -3526,7 +3528,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3526
3528
  {
3527
3529
  placement: undefined,
3528
3530
  },
3529
- ]),
3531
+ ])
3530
3532
  );
3531
3533
  };
3532
3534
  _proto.initInstance = function initInstance(context, instance) {
@@ -3564,7 +3566,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3564
3566
  instance.invoke("pipeValidateDropdownPosition", component.updateDropdownPosition, instance);
3565
3567
  if (instance.parentPositionChangeEvent)
3566
3568
  component.offParentPositionChange = instance.parentPositionChangeEvent.subscribe(
3567
- component.updateDropdownPosition,
3569
+ component.updateDropdownPosition
3568
3570
  );
3569
3571
  };
3570
3572
  _proto.overlayDidUpdate = function overlayDidUpdate(instance, component) {
@@ -3655,7 +3657,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3655
3657
  initialScreenPosition: initialScreenPosition,
3656
3658
  },
3657
3659
  instance,
3658
- component,
3660
+ component
3659
3661
  );
3660
3662
  instance.positionChangeSubscribers.notify();
3661
3663
  };
@@ -3665,7 +3667,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3665
3667
  contentSize,
3666
3668
  rel,
3667
3669
  el,
3668
- noAuto,
3670
+ noAuto
3669
3671
  ) {
3670
3672
  var viewport = getViewportRect(this.screenPadding);
3671
3673
  style.position = "fixed";
@@ -3763,7 +3765,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3763
3765
  contentSize,
3764
3766
  rel,
3765
3767
  el,
3766
- noAuto,
3768
+ noAuto
3767
3769
  ) {
3768
3770
  var viewport = getViewportRect(this.screenPadding);
3769
3771
  style.position = "absolute";
@@ -3855,7 +3857,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3855
3857
  contentSize,
3856
3858
  parentBounds,
3857
3859
  el,
3858
- noAuto,
3860
+ noAuto
3859
3861
  ) {
3860
3862
  switch (this.positioning) {
3861
3863
  case "absolute":
@@ -3982,15 +3984,15 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
3982
3984
  {
3983
3985
  className: CSS.element(baseClass, "arrow-border"),
3984
3986
  },
3985
- "arrow-border",
3987
+ "arrow-border"
3986
3988
  ),
3987
3989
  /*#__PURE__*/ jsx(
3988
3990
  "div",
3989
3991
  {
3990
3992
  className: CSS.element(baseClass, "arrow-fill"),
3991
3993
  },
3992
- "arrow-back",
3993
- ),
3994
+ "arrow-back"
3995
+ )
3994
3996
  );
3995
3997
  }
3996
3998
  return result;
@@ -4021,7 +4023,7 @@ var Dropdown = /*#__PURE__*/ (function (_Overlay) {
4021
4023
  });
4022
4024
  },
4023
4025
  },
4024
- key + "-beacon",
4026
+ key + "-beacon"
4025
4027
  );
4026
4028
  }
4027
4029
  return [beacon, instance.relatedElement && _Overlay.prototype.render.call(this, context, instance, key)];
@@ -4085,7 +4087,7 @@ var Tooltip = /*#__PURE__*/ (function (_Dropdown) {
4085
4087
  title: undefined,
4086
4088
  alwaysVisible: undefined,
4087
4089
  },
4088
- ]),
4090
+ ])
4089
4091
  );
4090
4092
  };
4091
4093
  _proto.prepareData = function prepareData(context, instance) {
@@ -4107,7 +4109,7 @@ var Tooltip = /*#__PURE__*/ (function (_Dropdown) {
4107
4109
  className: CSS.element(baseClass, "title"),
4108
4110
  children: data.title,
4109
4111
  },
4110
- "title",
4112
+ "title"
4111
4113
  ),
4112
4114
  data.text,
4113
4115
  ].concat(_Dropdown.prototype.renderContents.call(this, context, instance));
@@ -4243,7 +4245,7 @@ function getTooltipInstance(e, parentInstance, tooltip, options) {
4243
4245
  {
4244
4246
  relatedElement: target,
4245
4247
  },
4246
- config,
4248
+ config
4247
4249
  );
4248
4250
  var store = new ReadOnlyDataView({
4249
4251
  store: parentInstance.store,
@@ -4399,7 +4401,7 @@ var Window = /*#__PURE__*/ (function (_Overlay) {
4399
4401
  structured: true,
4400
4402
  },
4401
4403
  },
4402
- ]),
4404
+ ])
4403
4405
  );
4404
4406
  };
4405
4407
  _proto.initHelpers = function initHelpers() {
@@ -4413,14 +4415,14 @@ var Window = /*#__PURE__*/ (function (_Overlay) {
4413
4415
  type: ContentPlaceholder,
4414
4416
  name: "header",
4415
4417
  scoped: true,
4416
- },
4418
+ }
4417
4419
  ),
4418
4420
  footer: Widget.create(
4419
4421
  this.footer || {
4420
4422
  type: ContentPlaceholder,
4421
4423
  name: "footer",
4422
4424
  scoped: true,
4423
- },
4425
+ }
4424
4426
  ),
4425
4427
  close:
4426
4428
  this.closable &&
@@ -4433,7 +4435,7 @@ var Window = /*#__PURE__*/ (function (_Overlay) {
4433
4435
  onMouseDown: stopPropagation,
4434
4436
  }),
4435
4437
  },
4436
- ]),
4438
+ ])
4437
4439
  );
4438
4440
  };
4439
4441
  _proto.exploreCleanup = function exploreCleanup(context, instance) {
@@ -4470,7 +4472,7 @@ var Window = /*#__PURE__*/ (function (_Overlay) {
4470
4472
  subscribeToBeforeDismiss: context.options.subscribeToBeforeDismiss,
4471
4473
  children: this.renderContents(context, instance),
4472
4474
  },
4473
- key,
4475
+ key
4474
4476
  );
4475
4477
  };
4476
4478
  return Window;
@@ -4515,7 +4517,7 @@ var WindowComponent = /*#__PURE__*/ (function (_OverlayComponent) {
4515
4517
  onTouchMove: this.onHeaderMouseMove.bind(this),
4516
4518
  children: this.props.header,
4517
4519
  },
4518
- "header",
4520
+ "header"
4519
4521
  );
4520
4522
  }
4521
4523
  if (this.props.footer) {
@@ -4529,7 +4531,7 @@ var WindowComponent = /*#__PURE__*/ (function (_OverlayComponent) {
4529
4531
  style: data.footerStyle,
4530
4532
  children: this.props.footer,
4531
4533
  },
4532
- "footer",
4534
+ "footer"
4533
4535
  );
4534
4536
  }
4535
4537
  var body = /*#__PURE__*/ jsx(
@@ -4542,12 +4544,12 @@ var WindowComponent = /*#__PURE__*/ (function (_OverlayComponent) {
4542
4544
  CSS.element(widget.baseClass, "body", {
4543
4545
  pad: widget.pad,
4544
4546
  }),
4545
- data.bodyClass,
4547
+ data.bodyClass
4546
4548
  ),
4547
4549
  style: data.bodyStyle,
4548
4550
  children: this.props.children,
4549
4551
  },
4550
- "body",
4552
+ "body"
4551
4553
  );
4552
4554
  return [header, body, footer];
4553
4555
  };
@@ -4767,7 +4769,7 @@ var Toast = /*#__PURE__*/ (function (_Overlay) {
4767
4769
  {
4768
4770
  timeout: undefined,
4769
4771
  },
4770
- ]),
4772
+ ])
4771
4773
  );
4772
4774
  };
4773
4775
  _proto.prepareData = function prepareData(context, instance) {
@@ -4812,7 +4814,7 @@ var Toast = /*#__PURE__*/ (function (_Overlay) {
4812
4814
  toaster.el.className = this.CSS.block(
4813
4815
  "toaster",
4814
4816
  null,
4815
- ((_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)
4816
4818
  );
4817
4819
  toaster.el.insertBefore(el, toaster.el.firstChild);
4818
4820
  return el;
@@ -4936,8 +4938,8 @@ function createHotPromiseWindowFactoryWithProps(module, factory) {
4936
4938
  (_options$parent = options == null ? void 0 : options.parent) != null
4937
4939
  ? _options$parent
4938
4940
  : options == null
4939
- ? void 0
4940
- : options.store) != null
4941
+ ? void 0
4942
+ : options.store) != null
4941
4943
  ? _ref
4942
4944
  : new Store();
4943
4945
  var reloading = false;
@@ -4965,7 +4967,7 @@ function createHotPromiseWindowFactoryWithProps(module, factory) {
4965
4967
  rerun();
4966
4968
  reloading = false;
4967
4969
  }, 10);
4968
- });
4970
+ });
4969
4971
  rerun();
4970
4972
  });
4971
4973
  };
@@ -5008,7 +5010,7 @@ var Route = /*#__PURE__*/ (function (_PureContainer) {
5008
5010
  {
5009
5011
  url: undefined,
5010
5012
  },
5011
- ]),
5013
+ ])
5012
5014
  );
5013
5015
  };
5014
5016
  _proto.checkVisible = function checkVisible(context, instance, data) {
@@ -5064,8 +5066,8 @@ var Route = /*#__PURE__*/ (function (_PureContainer) {
5064
5066
  {
5065
5067
  remainder: "",
5066
5068
  },
5067
- data,
5068
- ),
5069
+ data
5070
+ )
5069
5071
  );
5070
5072
  },
5071
5073
  });
@@ -5099,7 +5101,7 @@ var RedirectRoute = /*#__PURE__*/ (function (_Route) {
5099
5101
  {
5100
5102
  redirect: undefined,
5101
5103
  },
5102
- ]),
5104
+ ])
5103
5105
  );
5104
5106
  };
5105
5107
  _proto.prepareData = function prepareData(context, instance) {
@@ -5132,7 +5134,7 @@ var Tab = /*#__PURE__*/ (function (_HtmlElement) {
5132
5134
  disabled: undefined,
5133
5135
  text: undefined,
5134
5136
  },
5135
- ].concat(Array.prototype.slice.call(arguments)),
5137
+ ].concat(Array.prototype.slice.call(arguments))
5136
5138
  );
5137
5139
  };
5138
5140
  _proto.prepareData = function prepareData(context, instance) {
@@ -5218,7 +5220,7 @@ var LinkButton = /*#__PURE__*/ (function (_Button) {
5218
5220
  inactiveClass: undefined,
5219
5221
  inactiveStyle: undefined,
5220
5222
  },
5221
- ].concat(Array.prototype.slice.call(arguments)),
5223
+ ].concat(Array.prototype.slice.call(arguments))
5222
5224
  );
5223
5225
  };
5224
5226
  _proto.prepareData = function prepareData(context, instance) {
@@ -5327,7 +5329,7 @@ var MenuItem = /*#__PURE__*/ (function (_HtmlElement) {
5327
5329
  arrow: undefined,
5328
5330
  confirm: undefined,
5329
5331
  },
5330
- ]),
5332
+ ])
5331
5333
  );
5332
5334
  };
5333
5335
  _proto.explore = function explore(context, instance) {
@@ -5356,10 +5358,10 @@ var MenuItem = /*#__PURE__*/ (function (_HtmlElement) {
5356
5358
  children: instance.data.text
5357
5359
  ? /*#__PURE__*/ jsx("span", {
5358
5360
  children: instance.data.text,
5359
- })
5361
+ })
5360
5362
  : this.renderChildren(context, instance),
5361
5363
  },
5362
- key,
5364
+ key
5363
5365
  );
5364
5366
  };
5365
5367
  _proto.add = function add(element) {
@@ -5443,8 +5445,8 @@ var MenuItemComponent$1 = /*#__PURE__*/ (function (_VDOM$Component) {
5443
5445
  _this2.closeDropdown();
5444
5446
  return false;
5445
5447
  },
5446
- },
5447
- ),
5448
+ }
5449
+ )
5448
5450
  );
5449
5451
  }
5450
5452
  return this.dropdown;
@@ -5509,8 +5511,8 @@ var MenuItemComponent$1 = /*#__PURE__*/ (function (_VDOM$Component) {
5509
5511
  (_CSS$state.icon = !!icon || instance.icons),
5510
5512
  (_CSS$state.disabled = data.disabled),
5511
5513
  (_CSS$state.empty = empty),
5512
- _CSS$state),
5513
- ),
5514
+ _CSS$state)
5515
+ )
5514
5516
  );
5515
5517
  if (empty)
5516
5518
  children = /*#__PURE__*/ jsx("span", {
@@ -5658,7 +5660,7 @@ var MenuItemComponent$1 = /*#__PURE__*/ (function (_VDOM$Component) {
5658
5660
  {
5659
5661
  dropdownOpen: true,
5660
5662
  },
5661
- callback,
5663
+ callback
5662
5664
  );
5663
5665
 
5664
5666
  //hide tooltip if dropdown is open
@@ -5767,7 +5769,7 @@ var Menu = /*#__PURE__*/ (function (_HtmlElement) {
5767
5769
  showOnlyOverflowItems: true,
5768
5770
  },
5769
5771
  ],
5770
- }),
5772
+ })
5771
5773
  );
5772
5774
  }
5773
5775
  };
@@ -5783,7 +5785,7 @@ var Menu = /*#__PURE__*/ (function (_HtmlElement) {
5783
5785
  overflow: this.overflow,
5784
5786
  }),
5785
5787
  (_extends2[this.itemPadding + "-item-padding"] = this.itemPadding),
5786
- _extends2),
5788
+ _extends2)
5787
5789
  );
5788
5790
  _HtmlElement.prototype.prepareData.call(this, context, instance);
5789
5791
  };
@@ -5801,7 +5803,7 @@ var Menu = /*#__PURE__*/ (function (_HtmlElement) {
5801
5803
  instance: instance,
5802
5804
  children: this.renderChildren(context, instance),
5803
5805
  },
5804
- key,
5806
+ key
5805
5807
  );
5806
5808
  };
5807
5809
  _proto.add = function add(item) {
@@ -5870,7 +5872,7 @@ var MenuComponent = /*#__PURE__*/ (function (_VDOM$Component) {
5870
5872
  data.classNames,
5871
5873
  CSS.state({
5872
5874
  pack: this.state.nonOverflownItemCount < children.length - 1,
5873
- }),
5875
+ })
5874
5876
  ),
5875
5877
  style: data.style,
5876
5878
  onBlur: FocusManager.nudge(),
@@ -5885,7 +5887,7 @@ var MenuComponent = /*#__PURE__*/ (function (_VDOM$Component) {
5885
5887
  {
5886
5888
  className: CSS.element(baseClass, "spacer"),
5887
5889
  },
5888
- key,
5890
+ key
5889
5891
  )
5890
5892
  );
5891
5893
  }
@@ -5903,7 +5905,7 @@ var MenuComponent = /*#__PURE__*/ (function (_VDOM$Component) {
5903
5905
  moveCursor: _this2.moveCursor.bind(_this2),
5904
5906
  children: content,
5905
5907
  },
5906
- key,
5908
+ key
5907
5909
  );
5908
5910
  }),
5909
5911
  });
@@ -6024,7 +6026,7 @@ var MenuComponent = /*#__PURE__*/ (function (_VDOM$Component) {
6024
6026
  },
6025
6027
  function () {
6026
6028
  _this4.isMeasureOverflowDisabled = false;
6027
- },
6029
+ }
6028
6030
  );
6029
6031
  }
6030
6032
  };
@@ -6166,7 +6168,7 @@ var Scroller = /*#__PURE__*/ (function (_Container) {
6166
6168
  {
6167
6169
  scrollIntoViewSelector: undefined,
6168
6170
  },
6169
- ]),
6171
+ ])
6170
6172
  );
6171
6173
  };
6172
6174
  _proto.render = function render(context, instance, key) {
@@ -6178,7 +6180,7 @@ var Scroller = /*#__PURE__*/ (function (_Container) {
6178
6180
  data: instance.data,
6179
6181
  children: this.renderChildren(context, instance),
6180
6182
  },
6181
- key,
6183
+ key
6182
6184
  );
6183
6185
  };
6184
6186
  return Scroller;
@@ -6226,7 +6228,7 @@ var HScrollerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
6226
6228
  scrollable: this.state.scrollable,
6227
6229
  horizontal: widget.horizontal,
6228
6230
  vertical: widget.vertical,
6229
- }),
6231
+ })
6230
6232
  ),
6231
6233
  style: data.style,
6232
6234
  ref: function ref(el) {
@@ -6419,7 +6421,7 @@ var ValidationError = /*#__PURE__*/ (function (_Widget) {
6419
6421
  style: data.style,
6420
6422
  children: data.errorMessage,
6421
6423
  },
6422
- key,
6424
+ key
6423
6425
  );
6424
6426
  };
6425
6427
  return ValidationError;
@@ -6456,7 +6458,7 @@ var Label = /*#__PURE__*/ (function (_HtmlElement) {
6456
6458
  htmlFor: undefined,
6457
6459
  asterisk: undefined,
6458
6460
  },
6459
- ]),
6461
+ ])
6460
6462
  );
6461
6463
  };
6462
6464
  _proto.prepareData = function prepareData(context, instance) {
@@ -6473,7 +6475,7 @@ var Label = /*#__PURE__*/ (function (_HtmlElement) {
6473
6475
  data.disabled = data.stateMods.disabled = coalesce(
6474
6476
  context.parentStrict ? context.parentDisabled : null,
6475
6477
  data._disabled,
6476
- context.parentDisabled,
6478
+ context.parentDisabled
6477
6479
  );
6478
6480
  data.asterisk = context.parentAsterisk || data.asterisk;
6479
6481
  if (instance.cache("disabled", data.disabled) || instance.cache("asterisk", data.asterisk)) {
@@ -6513,8 +6515,8 @@ var Label = /*#__PURE__*/ (function (_HtmlElement) {
6513
6515
  className: this.CSS.element(this.baseClass, "asterisk"),
6514
6516
  children: "*",
6515
6517
  },
6516
- "asterisk",
6517
- ),
6518
+ "asterisk"
6519
+ )
6518
6520
  );
6519
6521
  }
6520
6522
  };
@@ -6541,7 +6543,7 @@ var FieldIcon = /*#__PURE__*/ (function (_Widget) {
6541
6543
  {
6542
6544
  name: undefined,
6543
6545
  },
6544
- ]),
6546
+ ])
6545
6547
  );
6546
6548
  };
6547
6549
  _proto.render = function render(context, instance, key) {
@@ -6610,7 +6612,7 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6610
6612
  structured: true,
6611
6613
  },
6612
6614
  },
6613
- ].concat(Array.prototype.slice.call(arguments)),
6615
+ ].concat(Array.prototype.slice.call(arguments))
6614
6616
  );
6615
6617
  };
6616
6618
  _proto.init = function init() {
@@ -6627,7 +6629,7 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6627
6629
  },
6628
6630
  mod: "error",
6629
6631
  },
6630
- this.errorTooltip,
6632
+ this.errorTooltip
6631
6633
  );
6632
6634
  }
6633
6635
  if (isUndefined(this.help)) {
@@ -6681,7 +6683,7 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6681
6683
  help: this.help,
6682
6684
  icon: this.icon,
6683
6685
  },
6684
- ]),
6686
+ ])
6685
6687
  );
6686
6688
  };
6687
6689
  _proto.initState = function initState(context, instance) {
@@ -6721,22 +6723,22 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6721
6723
  data.disabled = coalesce(
6722
6724
  context.parentStrict ? context.parentDisabled : null,
6723
6725
  data._disabled,
6724
- context.parentDisabled,
6726
+ context.parentDisabled
6725
6727
  );
6726
6728
  data.readOnly = coalesce(
6727
6729
  context.parentStrict ? context.parentReadOnly : null,
6728
6730
  data._readOnly,
6729
- context.parentReadOnly,
6731
+ context.parentReadOnly
6730
6732
  );
6731
6733
  data.viewMode = coalesce(
6732
6734
  context.parentStrict ? context.parentViewMode : null,
6733
6735
  data._viewMode,
6734
- context.parentViewMode,
6736
+ context.parentViewMode
6735
6737
  );
6736
6738
  data.tabOnEnterKey = coalesce(
6737
6739
  context.parentStrict ? context.parentTabOnEnterKey : null,
6738
6740
  data._tabOnEnterKey,
6739
- context.parentTabOnEnterKey,
6741
+ context.parentTabOnEnterKey
6740
6742
  );
6741
6743
  data.visited = coalesce(context.parentStrict ? context.parentVisited : null, data.visited, context.parentVisited);
6742
6744
  if (!data.error && !data.disabled && !data.viewMode) this.validate(context, instance);
@@ -6892,7 +6894,7 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6892
6894
  },
6893
6895
  children: text,
6894
6896
  },
6895
- key,
6897
+ key
6896
6898
  );
6897
6899
  }
6898
6900
  };
@@ -6912,7 +6914,7 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6912
6914
  onTouchStart: interactive ? stopPropagation : null,
6913
6915
  children: [content, this.labelPlacement && this.renderLabel(context, instance, "label")],
6914
6916
  },
6915
- key,
6917
+ key
6916
6918
  );
6917
6919
  };
6918
6920
  _proto.renderEmptyText = function renderEmptyText(context, _ref2, key) {
@@ -6927,7 +6929,7 @@ var Field = /*#__PURE__*/ (function (_PureContainer) {
6927
6929
  children: "\xA0",
6928
6930
  }),
6929
6931
  },
6930
- key,
6932
+ key
6931
6933
  );
6932
6934
  };
6933
6935
  _proto.render = function render(context, instance, key) {
@@ -7020,7 +7022,7 @@ var TextField = /*#__PURE__*/ (function (_Field) {
7020
7022
  icon: undefined,
7021
7023
  trim: undefined,
7022
7024
  },
7023
- ].concat(Array.prototype.slice.call(arguments)),
7025
+ ].concat(Array.prototype.slice.call(arguments))
7024
7026
  );
7025
7027
  };
7026
7028
  _proto.renderInput = function renderInput(context, instance, key) {
@@ -7033,7 +7035,7 @@ var TextField = /*#__PURE__*/ (function (_Field) {
7033
7035
  help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
7034
7036
  icon: this.renderIcon(context, instance, "icon"),
7035
7037
  },
7036
- key,
7038
+ key
7037
7039
  );
7038
7040
  };
7039
7041
  _proto.validate = function validate(context, instance) {
@@ -7129,7 +7131,7 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
7129
7131
  clear: insideButton != null,
7130
7132
  empty: empty && !data.placeholder,
7131
7133
  error: data.error && (state.visited || !suppressErrorsUntilVisited || !empty),
7132
- }),
7134
+ })
7133
7135
  ),
7134
7136
  style: data.style,
7135
7137
  onMouseDown: stopPropagation,
@@ -7166,8 +7168,8 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
7166
7168
  onFocus: this.onFocus.bind(this),
7167
7169
  onBlur: this.onBlur.bind(this),
7168
7170
  onClick: stopPropagation,
7169
- },
7170
- ),
7171
+ }
7172
+ )
7171
7173
  ),
7172
7174
  insideButton,
7173
7175
  icon,
@@ -7299,10 +7301,10 @@ var SquareIcon = registerIcon(
7299
7301
  height: "40",
7300
7302
  fill: "currentColor",
7301
7303
  }),
7302
- }),
7304
+ })
7303
7305
  );
7304
7306
  },
7305
- true,
7307
+ true
7306
7308
  );
7307
7309
 
7308
7310
  var Checkbox = /*#__PURE__*/ (function (_Field) {
@@ -7330,7 +7332,7 @@ var Checkbox = /*#__PURE__*/ (function (_Field) {
7330
7332
  required: undefined,
7331
7333
  viewText: undefined,
7332
7334
  },
7333
- ].concat(Array.prototype.slice.call(arguments)),
7335
+ ].concat(Array.prototype.slice.call(arguments))
7334
7336
  );
7335
7337
  };
7336
7338
  _proto.renderWrap = function renderWrap(context, instance, key, content) {
@@ -7356,7 +7358,7 @@ var Checkbox = /*#__PURE__*/ (function (_Field) {
7356
7358
  style: data.style,
7357
7359
  children: [content, this.labelPlacement && getContent(this.renderLabel(context, instance, "label"))],
7358
7360
  },
7359
- key,
7361
+ key
7360
7362
  );
7361
7363
  };
7362
7364
  _proto.validateRequired = function validateRequired(context, instance) {
@@ -7384,9 +7386,9 @@ var Checkbox = /*#__PURE__*/ (function (_Field) {
7384
7386
  onChange: function onChange(e) {
7385
7387
  _this2.handleChange(e, instance);
7386
7388
  },
7387
- },
7389
+ }
7388
7390
  ),
7389
- "input",
7391
+ "input"
7390
7392
  );
7391
7393
  };
7392
7394
  _proto.renderCheck = function renderCheck(context, instance) {
@@ -7396,7 +7398,7 @@ var Checkbox = /*#__PURE__*/ (function (_Field) {
7396
7398
  instance: instance,
7397
7399
  data: instance.data,
7398
7400
  },
7399
- "check",
7401
+ "check"
7400
7402
  );
7401
7403
  };
7402
7404
  _proto.renderInput = function renderInput(context, instance, key) {
@@ -7413,16 +7415,16 @@ var Checkbox = /*#__PURE__*/ (function (_Field) {
7413
7415
  className: CSS.element(baseClass, "text"),
7414
7416
  children: text,
7415
7417
  },
7416
- "text",
7417
- )
7418
+ "text"
7419
+ )
7418
7420
  : /*#__PURE__*/ jsx(
7419
7421
  "span",
7420
7422
  {
7421
7423
  className: CSS.element(baseClass, "baseline"),
7422
7424
  children: "\xA0",
7423
7425
  },
7424
- "baseline",
7425
- ),
7426
+ "baseline"
7427
+ ),
7426
7428
  ]);
7427
7429
  };
7428
7430
  _proto.renderValue = function renderValue(context, _ref) {
@@ -7509,7 +7511,7 @@ var CheckboxCmp = /*#__PURE__*/ (function (_VDOM$Component) {
7509
7511
  }),
7510
7512
  ],
7511
7513
  },
7512
- "check",
7514
+ "check"
7513
7515
  );
7514
7516
  };
7515
7517
  _proto2.onClick = function onClick(e) {
@@ -7560,7 +7562,7 @@ var Radio = /*#__PURE__*/ (function (_Field) {
7560
7562
  required: undefined,
7561
7563
  text: undefined,
7562
7564
  },
7563
- ].concat(Array.prototype.slice.call(arguments)),
7565
+ ].concat(Array.prototype.slice.call(arguments))
7564
7566
  );
7565
7567
  };
7566
7568
  _proto.init = function init() {
@@ -7604,7 +7606,7 @@ var Radio = /*#__PURE__*/ (function (_Field) {
7604
7606
  htmlFor: data.id,
7605
7607
  children: [content, this.labelPlacement && getContent(this.renderLabel(context, instance, "label"))],
7606
7608
  },
7607
- key,
7609
+ key
7608
7610
  );
7609
7611
  };
7610
7612
  _proto.renderNativeCheck = function renderNativeCheck(context, instance) {
@@ -7628,9 +7630,9 @@ var Radio = /*#__PURE__*/ (function (_Field) {
7628
7630
  onChange: function onChange(e) {
7629
7631
  _this2.handleChange(e, instance);
7630
7632
  },
7631
- },
7633
+ }
7632
7634
  ),
7633
- "input",
7635
+ "input"
7634
7636
  );
7635
7637
  };
7636
7638
  _proto.renderCheck = function renderCheck(context, instance) {
@@ -7640,7 +7642,7 @@ var Radio = /*#__PURE__*/ (function (_Field) {
7640
7642
  instance: instance,
7641
7643
  data: instance.data,
7642
7644
  },
7643
- "check",
7645
+ "check"
7644
7646
  );
7645
7647
  };
7646
7648
  _proto.renderInput = function renderInput(context, instance, key) {
@@ -7657,16 +7659,16 @@ var Radio = /*#__PURE__*/ (function (_Field) {
7657
7659
  className: CSS.element(baseClass, "text"),
7658
7660
  children: text,
7659
7661
  },
7660
- "text",
7661
- )
7662
+ "text"
7663
+ )
7662
7664
  : /*#__PURE__*/ jsx(
7663
7665
  "span",
7664
7666
  {
7665
7667
  className: CSS.element(baseClass, "baseline"),
7666
7668
  children: "\xA0",
7667
7669
  },
7668
- "baseline",
7669
- ),
7670
+ "baseline"
7671
+ ),
7670
7672
  ]);
7671
7673
  };
7672
7674
  _proto.handleClick = function handleClick(e, instance) {
@@ -7724,7 +7726,7 @@ var RadioCmp = /*#__PURE__*/ (function (_VDOM$Component) {
7724
7726
  onClick: this.onClick.bind(this),
7725
7727
  onKeyDown: this.onKeyDown.bind(this),
7726
7728
  },
7727
- "check",
7729
+ "check"
7728
7730
  );
7729
7731
  };
7730
7732
  _proto2.onClick = function onClick(e) {
@@ -7770,7 +7772,7 @@ var Select = /*#__PURE__*/ (function (_Field) {
7770
7772
  placeholder: undefined,
7771
7773
  icon: undefined,
7772
7774
  },
7773
- ].concat(Array.prototype.slice.call(arguments)),
7775
+ ].concat(Array.prototype.slice.call(arguments))
7774
7776
  );
7775
7777
  };
7776
7778
  _proto.init = function init() {
@@ -7793,7 +7795,7 @@ var Select = /*#__PURE__*/ (function (_Field) {
7793
7795
  icon: this.renderIcon(context, instance, "icon"),
7794
7796
  children: this.renderChildren(context, instance),
7795
7797
  },
7796
- key,
7798
+ key
7797
7799
  );
7798
7800
  };
7799
7801
  _proto.convert = function convert(value) {
@@ -7902,7 +7904,7 @@ var SelectComponent = /*#__PURE__*/ (function (_VDOM$Component) {
7902
7904
  focus: this.state.focus,
7903
7905
  error: state.visited && data.error,
7904
7906
  empty: data.empty && !data.placeholder,
7905
- }),
7907
+ })
7906
7908
  ),
7907
7909
  style: data.style,
7908
7910
  onMouseDown: stopPropagation,
@@ -7941,8 +7943,8 @@ var SelectComponent = /*#__PURE__*/ (function (_VDOM$Component) {
7941
7943
  return tooltipMouseLeave$1.apply(void 0, [e].concat(getFieldTooltip(instance)));
7942
7944
  },
7943
7945
  children: [placeholder, this.props.children],
7944
- },
7945
- ),
7946
+ }
7947
+ )
7946
7948
  ),
7947
7949
  insideButton,
7948
7950
  icon,
@@ -8017,7 +8019,7 @@ var Option = /*#__PURE__*/ (function (_HtmlElement) {
8017
8019
  selected: undefined,
8018
8020
  text: undefined,
8019
8021
  },
8020
- ].concat(Array.prototype.slice.call(arguments)),
8022
+ ].concat(Array.prototype.slice.call(arguments))
8021
8023
  );
8022
8024
  };
8023
8025
  _proto3.prepareData = function prepareData(context, _ref) {
@@ -8033,7 +8035,7 @@ var Option = /*#__PURE__*/ (function (_HtmlElement) {
8033
8035
  value: data.value,
8034
8036
  children: data.text || this.renderChildren(context, instance),
8035
8037
  },
8036
- key,
8038
+ key
8037
8039
  );
8038
8040
  };
8039
8041
  return Option;
@@ -8061,10 +8063,10 @@ var ForwardIcon = registerIcon(
8061
8063
  d: "M6.15 15.5L10.5 10 6.17 4.53 5.52 5l3.98 5-4 5z",
8062
8064
  }),
8063
8065
  ],
8064
- }),
8066
+ })
8065
8067
  );
8066
8068
  },
8067
- true,
8069
+ true
8068
8070
  );
8069
8071
 
8070
8072
  var Calendar = /*#__PURE__*/ (function (_Field) {
@@ -8091,7 +8093,7 @@ var Calendar = /*#__PURE__*/ (function (_Field) {
8091
8093
  focusable: undefined,
8092
8094
  dayData: undefined,
8093
8095
  },
8094
- ].concat(Array.prototype.slice.call(arguments)),
8096
+ ].concat(Array.prototype.slice.call(arguments))
8095
8097
  );
8096
8098
  };
8097
8099
  _proto.init = function init() {
@@ -8152,7 +8154,7 @@ var Calendar = /*#__PURE__*/ (function (_Field) {
8152
8154
  return _this.handleSelect(e, instance, date);
8153
8155
  },
8154
8156
  },
8155
- key,
8157
+ key
8156
8158
  );
8157
8159
  };
8158
8160
  _proto.handleSelect = function handleSelect(e, instance, date) {
@@ -8161,7 +8163,7 @@ var Calendar = /*#__PURE__*/ (function (_Field) {
8161
8163
  widget = instance.widget;
8162
8164
  e.stopPropagation();
8163
8165
  if (data.disabled) return;
8164
- if (!validationCheck$1(date, data)) return;
8166
+ if (!validationCheck(date, data)) return;
8165
8167
  if (this.onBeforeSelect && instance.invoke("onBeforeSelect", e, instance, date) === false) return;
8166
8168
  if (widget.partial) {
8167
8169
  var mixed = parseDateInvariant(data.value);
@@ -8191,7 +8193,7 @@ Calendar.prototype.todayButtonText = "Today";
8191
8193
  Calendar.prototype.startWithMonday = false;
8192
8194
  Calendar.prototype.focusable = true;
8193
8195
  Localization.registerPrototype("cx/widgets/Calendar", Calendar);
8194
- var validationCheck$1 = function validationCheck(date, data, disabledDaysOfWeek) {
8196
+ var validationCheck = function validationCheck(date, data, disabledDaysOfWeek) {
8195
8197
  if (data.maxValue && !upperBoundCheck(date, data.maxValue, data.maxExclusive)) return false;
8196
8198
  if (data.minValue && !lowerBoundCheck(date, data.minValue, data.minExclusive)) return false;
8197
8199
  if (disabledDaysOfWeek && disabledDaysOfWeek.includes(date.getDay())) return false;
@@ -8214,7 +8216,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8214
8216
  cursor: zeroTime(data.date || refDate),
8215
8217
  activeView: "calendar",
8216
8218
  },
8217
- _this2.getPage(refDate),
8219
+ _this2.getPage(refDate)
8218
8220
  );
8219
8221
  _this2.handleMouseMove = _this2.handleMouseMove.bind(_this2);
8220
8222
  _this2.handleMouseDown = _this2.handleMouseDown.bind(_this2);
@@ -8253,7 +8255,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8253
8255
  this.setState(
8254
8256
  _extends({}, this.getPage(refDate), {
8255
8257
  cursor: date,
8256
- }),
8258
+ })
8257
8259
  );
8258
8260
  };
8259
8261
  _proto2.move = function move(e, period, delta) {
@@ -8395,7 +8397,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8395
8397
  this.setState(
8396
8398
  _extends({}, this.getPage(data.date), {
8397
8399
  value: data.date,
8398
- }),
8400
+ })
8399
8401
  );
8400
8402
  tooltipParentWillReceiveProps$1.apply(void 0, [this.el].concat(getFieldTooltip(props.instance)));
8401
8403
  };
@@ -8418,7 +8420,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8418
8420
  _extends({}, this.getPage(refDate), {
8419
8421
  refDate: refDate,
8420
8422
  activeView: "calendar",
8421
- }),
8423
+ })
8422
8424
  );
8423
8425
  };
8424
8426
  _proto2.renderYearPicker = function renderYearPicker() {
@@ -8480,11 +8482,11 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8480
8482
  },
8481
8483
  children: year,
8482
8484
  },
8483
- year,
8485
+ year
8484
8486
  );
8485
8487
  }),
8486
8488
  },
8487
- rowIndex,
8489
+ rowIndex
8488
8490
  );
8489
8491
  }),
8490
8492
  }),
@@ -8514,7 +8516,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8514
8516
  var days = [];
8515
8517
  for (var i = 0; i < 7; i++) {
8516
8518
  var dayInfo = (data.dayData && data.dayData[date.toDateString()]) || empty;
8517
- var unselectable = !validationCheck$1(date, data, disabledDaysOfWeek);
8519
+ var unselectable = !validationCheck(date, data, disabledDaysOfWeek);
8518
8520
  var classNames = CSS.expand(
8519
8521
  CSS.element(baseClass, "day", {
8520
8522
  outside: month != date.getMonth(),
@@ -8524,7 +8526,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8524
8526
  today: widget.highlightToday && sameDate(date, today),
8525
8527
  }),
8526
8528
  dayInfo.className,
8527
- CSS.mod(dayInfo.mod),
8529
+ CSS.mod(dayInfo.mod)
8528
8530
  );
8529
8531
  var dateInst = new Date(date);
8530
8532
  days.push(
@@ -8540,8 +8542,8 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8540
8542
  onMouseDown: unselectable ? null : this.handleMouseDown,
8541
8543
  children: date.getDate(),
8542
8544
  },
8543
- i,
8544
- ),
8545
+ i
8546
+ )
8545
8547
  );
8546
8548
  date.setDate(date.getDate() + 1);
8547
8549
  }
@@ -8552,8 +8554,8 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8552
8554
  className: CSS.element(baseClass, "week"),
8553
8555
  children: [/*#__PURE__*/ jsx("td", {}), days, /*#__PURE__*/ jsx("td", {})],
8554
8556
  },
8555
- weeks.length,
8556
- ),
8557
+ weeks.length
8558
+ )
8557
8559
  );
8558
8560
  }
8559
8561
  var culture = Culture.getDateTimeCulture();
@@ -8639,7 +8641,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8639
8641
  }),
8640
8642
  /*#__PURE__*/ jsx("td", {
8641
8643
  onClick: function onClick(e) {
8642
- return _this5.move(e, "m", +1);
8644
+ return _this5.move(e, "m", 1);
8643
8645
  },
8644
8646
  children: /*#__PURE__*/ jsx(DropdownIcon, {
8645
8647
  className: CSS.element(baseClass, "icon-next-month"),
@@ -8647,7 +8649,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8647
8649
  }),
8648
8650
  /*#__PURE__*/ jsx("td", {
8649
8651
  onClick: function onClick(e) {
8650
- return _this5.move(e, "y", +1);
8652
+ return _this5.move(e, "y", 1);
8651
8653
  },
8652
8654
  children: /*#__PURE__*/ jsx(ForwardIcon, {
8653
8655
  className: CSS.element(baseClass, "icon-next-year"),
@@ -8656,7 +8658,7 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8656
8658
  /*#__PURE__*/ jsx("td", {}),
8657
8659
  ],
8658
8660
  },
8659
- "h",
8661
+ "h"
8660
8662
  ),
8661
8663
  /*#__PURE__*/ jsxs(
8662
8664
  "tr",
@@ -8670,13 +8672,13 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
8670
8672
  {
8671
8673
  children: name,
8672
8674
  },
8673
- i,
8675
+ i
8674
8676
  );
8675
8677
  }),
8676
8678
  /*#__PURE__*/ jsx("td", {}),
8677
8679
  ],
8678
8680
  },
8679
- "d",
8681
+ "d"
8680
8682
  ),
8681
8683
  ],
8682
8684
  }),
@@ -8723,11 +8725,11 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
8723
8725
  ? {
8724
8726
  values: undefined,
8725
8727
  records: undefined,
8726
- }
8728
+ }
8727
8729
  : {
8728
8730
  value: undefined,
8729
8731
  text: undefined,
8730
- };
8732
+ };
8731
8733
  (_Field$prototype$decl = _Field.prototype.declareData).call.apply(
8732
8734
  _Field$prototype$decl,
8733
8735
  [
@@ -8746,7 +8748,7 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
8746
8748
  },
8747
8749
  },
8748
8750
  additionalAttributes,
8749
- ].concat(Array.prototype.slice.call(arguments)),
8751
+ ].concat(Array.prototype.slice.call(arguments))
8750
8752
  );
8751
8753
  };
8752
8754
  _proto.init = function init() {
@@ -8851,14 +8853,14 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
8851
8853
  $value: $value,
8852
8854
  });
8853
8855
  });
8854
- }),
8856
+ })
8855
8857
  );
8856
8858
  } else {
8857
8859
  var dataViewData = store.getData();
8858
8860
  data.selectedKeys.push(
8859
8861
  this.keyBindings.map(function (b) {
8860
8862
  return Binding.get(b.local).value(dataViewData);
8861
- }),
8863
+ })
8862
8864
  );
8863
8865
  if (!this.text && isArray(data.options)) {
8864
8866
  var option = data.options.find(function ($option) {
@@ -8866,7 +8868,7 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
8866
8868
  getOptionKey(_this.keyBindings, {
8867
8869
  $option: $option,
8868
8870
  }),
8869
- data.selectedKeys[0],
8871
+ data.selectedKeys[0]
8870
8872
  );
8871
8873
  });
8872
8874
  data.text = (option && option[this.optionTextField]) || "";
@@ -8889,7 +8891,7 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
8889
8891
  forceUpdate: context.forceUpdate,
8890
8892
  icon: this.renderIcon(context, instance, "icon"),
8891
8893
  },
8892
- key,
8894
+ key
8893
8895
  );
8894
8896
  };
8895
8897
  _proto.filterOptions = function filterOptions(instance, options, query) {
@@ -8923,7 +8925,7 @@ var LookupField = /*#__PURE__*/ (function (_Field) {
8923
8925
  ? _this$onGetRecordDisp
8924
8926
  : function (record) {
8925
8927
  return record[_this3.valueTextField] || record[_this3.valueIdField];
8926
- };
8928
+ };
8927
8929
  return records.map(function (record) {
8928
8930
  return valueTextFormatter(record, instance);
8929
8931
  });
@@ -9107,7 +9109,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9107
9109
  x,
9108
9110
  _this7.getOptionKey({
9109
9111
  $option: data,
9110
- }),
9112
+ })
9111
9113
  );
9112
9114
  }) != null
9113
9115
  );
@@ -9166,7 +9168,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9166
9168
  _this7.closeDropdown(null, true);
9167
9169
  return false;
9168
9170
  },
9169
- },
9171
+ }
9170
9172
  );
9171
9173
  return (this.dropdown = Widget.create(dropdown));
9172
9174
  };
@@ -9189,7 +9191,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9189
9191
  className: CSS.element(baseClass, "message", "loading"),
9190
9192
  children: widget.loadingText,
9191
9193
  },
9192
- "msg",
9194
+ "msg"
9193
9195
  );
9194
9196
  } else if (this.state.status == "error") {
9195
9197
  content = /*#__PURE__*/ jsx(
@@ -9198,7 +9200,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9198
9200
  className: CSS.element(baseClass, "message", "error"),
9199
9201
  children: widget.queryErrorText,
9200
9202
  },
9201
- "msg",
9203
+ "msg"
9202
9204
  );
9203
9205
  } else if (this.state.status == "info") {
9204
9206
  content = /*#__PURE__*/ jsx(
@@ -9207,7 +9209,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9207
9209
  className: CSS.element(baseClass, "message", "info"),
9208
9210
  children: this.state.message,
9209
9211
  },
9210
- "msg",
9212
+ "msg"
9211
9213
  );
9212
9214
  } else if (this.state.options.length == 0) {
9213
9215
  content = /*#__PURE__*/ jsx(
@@ -9216,7 +9218,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9216
9218
  className: CSS.element(baseClass, "message", "no-results"),
9217
9219
  children: widget.noResultsText,
9218
9220
  },
9219
- "msg",
9221
+ "msg"
9220
9222
  );
9221
9223
  } else {
9222
9224
  content = /*#__PURE__*/ jsx(
@@ -9236,7 +9238,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9236
9238
  },
9237
9239
  }),
9238
9240
  },
9239
- "msg",
9241
+ "msg"
9240
9242
  );
9241
9243
  }
9242
9244
  return /*#__PURE__*/ jsxs(
@@ -9274,12 +9276,12 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9274
9276
  return _this8.onQueryBlur(e);
9275
9277
  },
9276
9278
  },
9277
- "query",
9279
+ "query"
9278
9280
  ),
9279
9281
  content,
9280
9282
  ],
9281
9283
  },
9282
- "dropdown",
9284
+ "dropdown"
9283
9285
  );
9284
9286
  };
9285
9287
  _proto3.onListWheel = function onListWheel(e) {
@@ -9343,7 +9345,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9343
9345
  },
9344
9346
  children: iconVDOM,
9345
9347
  },
9346
- "icon",
9348
+ "icon"
9347
9349
  );
9348
9350
  var dropdown;
9349
9351
  if (this.state.dropdownOpen) {
@@ -9380,7 +9382,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9380
9382
  className: CSS.element(baseClass, "icon"),
9381
9383
  }),
9382
9384
  },
9383
- "ib",
9385
+ "ib"
9384
9386
  );
9385
9387
  } else {
9386
9388
  insideButton = /*#__PURE__*/ jsx(
@@ -9397,7 +9399,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9397
9399
  className: CSS.element(baseClass, "icon"),
9398
9400
  }),
9399
9401
  },
9400
- "ib",
9402
+ "ib"
9401
9403
  );
9402
9404
  }
9403
9405
  }
@@ -9411,7 +9413,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9411
9413
  ? _widget$onGetRecordDi
9412
9414
  : function (record) {
9413
9415
  return record[widget.valueTextField];
9414
- };
9416
+ };
9415
9417
  text = data.records.map(function (v, i) {
9416
9418
  return /*#__PURE__*/ jsxs(
9417
9419
  "div",
@@ -9440,7 +9442,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9440
9442
  }),
9441
9443
  ],
9442
9444
  },
9443
- i,
9445
+ i
9444
9446
  );
9445
9447
  });
9446
9448
  } else {
@@ -9532,7 +9534,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9532
9534
  if (e.keyCode != KeyCode.tab) e.preventDefault();
9533
9535
  };
9534
9536
  _proto3.onClearClick = function onClearClick(e, value) {
9535
- var _this10 = this;
9537
+ var _this0 = this;
9536
9538
  var instance = this.props.instance;
9537
9539
  var data = instance.data,
9538
9540
  store = instance.store,
@@ -9547,16 +9549,16 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9547
9549
  });
9548
9550
  var newRecords = data.records.filter(function (v) {
9549
9551
  return !areKeysEqual(
9550
- _this10.getLocalKey({
9552
+ _this0.getLocalKey({
9551
9553
  $value: v,
9552
9554
  }),
9553
- itemKey,
9555
+ itemKey
9554
9556
  );
9555
9557
  });
9556
9558
  instance.set("records", newRecords);
9557
9559
  var newValues = newRecords
9558
9560
  .map(function (rec) {
9559
- return _this10.getLocalKey({
9561
+ return _this0.getLocalKey({
9560
9562
  $value: rec,
9561
9563
  });
9562
9564
  })
@@ -9578,7 +9580,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9578
9580
  instance.set("values", []);
9579
9581
  };
9580
9582
  _proto3.select = function select(e, itemsData, reset) {
9581
- var _this11 = this;
9583
+ var _this1 = this;
9582
9584
  var instance = this.props.instance;
9583
9585
  var store = instance.store,
9584
9586
  data = instance.data,
@@ -9603,9 +9605,9 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9603
9605
  newRecords = records.filter(function (v) {
9604
9606
  return !areKeysEqual(
9605
9607
  optionKey,
9606
- _this11.getLocalKey({
9608
+ _this1.getLocalKey({
9607
9609
  $value: v,
9608
- }),
9610
+ })
9609
9611
  );
9610
9612
  });
9611
9613
  } else {
@@ -9622,7 +9624,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9622
9624
  instance.set("records", newRecords);
9623
9625
  var newValues = newRecords
9624
9626
  .map(function (rec) {
9625
- return _this11.getLocalKey({
9627
+ return _this1.getLocalKey({
9626
9628
  $value: rec,
9627
9629
  });
9628
9630
  })
@@ -9749,15 +9751,15 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9749
9751
  else this.openDropdown(e);
9750
9752
  };
9751
9753
  _proto3.closeDropdown = function closeDropdown(e, keepFocus) {
9752
- var _this12 = this;
9754
+ var _this10 = this;
9753
9755
  if (this.state.dropdownOpen) {
9754
9756
  this.setState(
9755
9757
  {
9756
9758
  dropdownOpen: false,
9757
9759
  },
9758
9760
  function () {
9759
- return keepFocus && _this12.dom.input.focus();
9760
- },
9761
+ return keepFocus && _this10.dom.input.focus();
9762
+ }
9761
9763
  );
9762
9764
  this.props.instance.setState({
9763
9765
  visited: true,
@@ -9768,7 +9770,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9768
9770
  delete this.tmpCachedResult;
9769
9771
  };
9770
9772
  _proto3.openDropdown = function openDropdown(e) {
9771
- var _this13 = this;
9773
+ var _this11 = this;
9772
9774
  var instance = this.props.instance;
9773
9775
  var data = instance.data;
9774
9776
  if (!this.state.dropdownOpen && !data.disabled && !data.readOnly) {
@@ -9778,13 +9780,13 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9778
9780
  dropdownOpen: true,
9779
9781
  },
9780
9782
  function () {
9781
- if (_this13.dom.dropdown) _this13.dom.dropdown.focus();
9782
- },
9783
+ if (_this11.dom.dropdown) _this11.dom.dropdown.focus();
9784
+ }
9783
9785
  );
9784
9786
  }
9785
9787
  };
9786
9788
  _proto3.query = function query(q) {
9787
- var _this14 = this;
9789
+ var _this12 = this;
9788
9790
  /*
9789
9791
  In fetchAll mode onQuery should fetch all data and after
9790
9792
  that everything is done filtering is done client-side.
@@ -9826,8 +9828,8 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9826
9828
  });
9827
9829
  }
9828
9830
  this.queryTimeoutId = setTimeout(function () {
9829
- delete _this14.queryTimeoutId;
9830
- var result = _this14.tmpCachedResult || _this14.cachedResult;
9831
+ delete _this12.queryTimeoutId;
9832
+ var result = _this12.tmpCachedResult || _this12.cachedResult;
9831
9833
  var query = fetchAll ? "" : q;
9832
9834
  var params = !widget.infinite
9833
9835
  ? query
@@ -9835,20 +9837,20 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9835
9837
  query: query,
9836
9838
  page: 1,
9837
9839
  pageSize: pageSize,
9838
- };
9840
+ };
9839
9841
  if (!result) result = instance.invoke("onQuery", params, instance);
9840
- var queryId = (_this14.lastQueryId = Date.now());
9842
+ var queryId = (_this12.lastQueryId = Date.now());
9841
9843
  Promise.resolve(result)
9842
9844
  .then(function (results) {
9843
9845
  //discard results which do not belong to the last query
9844
- if (queryId !== _this14.lastQueryId) return;
9846
+ if (queryId !== _this12.lastQueryId) return;
9845
9847
  if (!isArray(results)) results = [];
9846
9848
  if (fetchAll) {
9847
- if (cacheAll) _this14.cachedResult = results;
9848
- else _this14.tmpCachedResult = results;
9849
- results = widget.filterOptions(_this14.props.instance, results, _this14.lastQuery);
9849
+ if (cacheAll) _this12.cachedResult = results;
9850
+ else _this12.tmpCachedResult = results;
9851
+ results = widget.filterOptions(_this12.props.instance, results, _this12.lastQuery);
9850
9852
  }
9851
- _this14.setState(
9853
+ _this12.setState(
9852
9854
  {
9853
9855
  page: 1,
9854
9856
  query: query,
@@ -9856,12 +9858,12 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9856
9858
  status: "loaded",
9857
9859
  },
9858
9860
  function () {
9859
- if (widget.infinite) _this14.onListScroll();
9860
- },
9861
+ if (widget.infinite) _this12.onListScroll();
9862
+ }
9861
9863
  );
9862
9864
  })
9863
9865
  ["catch"](function (err) {
9864
- _this14.setState({
9866
+ _this12.setState({
9865
9867
  status: "error",
9866
9868
  });
9867
9869
  debug("Lookup query error:", err);
@@ -9870,7 +9872,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9870
9872
  }
9871
9873
  };
9872
9874
  _proto3.loadAdditionalOptionPages = function loadAdditionalOptionPages() {
9873
- var _this15 = this;
9875
+ var _this13 = this;
9874
9876
  var instance = this.props.instance;
9875
9877
  var widget = instance.widget;
9876
9878
  if (!widget.infinite) return;
@@ -9894,24 +9896,24 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9894
9896
  Promise.resolve(result)
9895
9897
  .then(function (results) {
9896
9898
  //discard results which do not belong to the last query
9897
- if (_this15.extraPageLoadingBlocker !== blockerKey) return;
9898
- _this15.extraPageLoadingBlocker = false;
9899
+ if (_this13.extraPageLoadingBlocker !== blockerKey) return;
9900
+ _this13.extraPageLoadingBlocker = false;
9899
9901
  if (!isArray(results)) return;
9900
- _this15.setState(
9902
+ _this13.setState(
9901
9903
  {
9902
9904
  page: params.page,
9903
9905
  query: query,
9904
9906
  options: [].concat(options, results),
9905
9907
  },
9906
9908
  function () {
9907
- _this15.onListScroll();
9908
- },
9909
+ _this13.onListScroll();
9910
+ }
9909
9911
  );
9910
9912
  })
9911
9913
  ["catch"](function (err) {
9912
- if (_this15.extraPageLoadingBlocker !== blockerKey) return;
9913
- _this15.extraPageLoadingBlocker = false;
9914
- _this15.setState({
9914
+ if (_this13.extraPageLoadingBlocker !== blockerKey) return;
9915
+ _this13.extraPageLoadingBlocker = false;
9916
+ _this13.setState({
9915
9917
  status: "error",
9916
9918
  });
9917
9919
  debug("Lookup query error:", err);
@@ -9934,7 +9936,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9934
9936
  this.subscribeListOnWheel(null);
9935
9937
  };
9936
9938
  _proto3.subscribeListOnWheel = function subscribeListOnWheel(list) {
9937
- var _this16 = this;
9939
+ var _this14 = this;
9938
9940
  if (this.unsubscribeListOnWheel) {
9939
9941
  this.unsubscribeListOnWheel();
9940
9942
  this.unsubscribeListOnWheel = null;
@@ -9944,16 +9946,16 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9944
9946
  list,
9945
9947
  "wheel",
9946
9948
  function (e) {
9947
- return _this16.onListWheel(e);
9949
+ return _this14.onListWheel(e);
9948
9950
  },
9949
9951
  {
9950
9952
  passive: false,
9951
- },
9953
+ }
9952
9954
  );
9953
9955
  }
9954
9956
  };
9955
9957
  _proto3.subscribeListOnScroll = function subscribeListOnScroll(list) {
9956
- var _this17 = this;
9958
+ var _this15 = this;
9957
9959
  if (this.unsubscribeListOnScroll) {
9958
9960
  this.unsubscribeListOnScroll();
9959
9961
  this.unsubscribeListOnScroll = null;
@@ -9963,11 +9965,11 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
9963
9965
  list,
9964
9966
  "scroll",
9965
9967
  function (e) {
9966
- return _this17.onListScroll(e);
9968
+ return _this15.onListScroll(e);
9967
9969
  },
9968
9970
  {
9969
9971
  passive: false,
9970
- },
9972
+ }
9971
9973
  );
9972
9974
  }
9973
9975
  };
@@ -10017,7 +10019,7 @@ var NumberField = /*#__PURE__*/ (function (_Field) {
10017
10019
  scale: undefined,
10018
10020
  offset: undefined,
10019
10021
  },
10020
- ].concat(Array.prototype.slice.call(arguments)),
10022
+ ].concat(Array.prototype.slice.call(arguments))
10021
10023
  );
10022
10024
  };
10023
10025
  _proto.init = function init() {
@@ -10073,7 +10075,7 @@ var NumberField = /*#__PURE__*/ (function (_Field) {
10073
10075
  help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
10074
10076
  icon: this.renderIcon(context, instance, "icon"),
10075
10077
  },
10076
- key,
10078
+ key
10077
10079
  );
10078
10080
  };
10079
10081
  _proto.validateRequired = function validateRequired(context, instance) {
@@ -10159,7 +10161,7 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
10159
10161
  icon: !!icon,
10160
10162
  empty: empty && !data.placeholder,
10161
10163
  error: data.error && (state.visited || !suppressErrorsUntilVisited || !empty),
10162
- }),
10164
+ })
10163
10165
  ),
10164
10166
  style: data.style,
10165
10167
  onMouseDown: stopPropagation,
@@ -10204,8 +10206,8 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
10204
10206
  _this2.onChange(e, "wheel");
10205
10207
  },
10206
10208
  onClick: stopPropagation,
10207
- },
10208
- ),
10209
+ }
10210
+ )
10209
10211
  ),
10210
10212
  insideButton,
10211
10213
  icon,
@@ -10241,7 +10243,7 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
10241
10243
  value: this.input.value,
10242
10244
  },
10243
10245
  },
10244
- "blur",
10246
+ "blur"
10245
10247
  );
10246
10248
  }
10247
10249
  tooltipParentWillUnmount$1(this.props.instance);
@@ -10446,7 +10448,7 @@ var TextArea = /*#__PURE__*/ (function (_TextField) {
10446
10448
  {
10447
10449
  rows: undefined,
10448
10450
  },
10449
- ].concat(Array.prototype.slice.call(arguments)),
10451
+ ].concat(Array.prototype.slice.call(arguments))
10450
10452
  );
10451
10453
  };
10452
10454
  _proto.prepareData = function prepareData(context, instance) {
@@ -10465,7 +10467,7 @@ var TextArea = /*#__PURE__*/ (function (_TextField) {
10465
10467
  label: this.labelPlacement && getContent(this.renderLabel(context, instance, "label")),
10466
10468
  help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
10467
10469
  },
10468
- key,
10470
+ key
10469
10471
  );
10470
10472
  };
10471
10473
  _proto.validateRequired = function validateRequired(context, instance) {
@@ -10508,7 +10510,7 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
10508
10510
  focus: this.state.focus,
10509
10511
  empty: empty && !data.placeholder,
10510
10512
  error: data.error && (state.visited || !suppressErrorsUntilVisited || !empty),
10511
- }),
10513
+ })
10512
10514
  ),
10513
10515
  style: data.style,
10514
10516
  onMouseDown: stopPropagation,
@@ -10555,8 +10557,8 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
10555
10557
  onMouseLeave: function onMouseLeave(e) {
10556
10558
  return tooltipMouseLeave$1.apply(void 0, [e].concat(getFieldTooltip(instance)));
10557
10559
  },
10558
- },
10559
- ),
10560
+ }
10561
+ )
10560
10562
  ),
10561
10563
  label,
10562
10564
  help,
@@ -10658,7 +10660,7 @@ var ValidationGroup = /*#__PURE__*/ (function (_PureContainer) {
10658
10660
  strict: undefined,
10659
10661
  asterisk: undefined,
10660
10662
  },
10661
- ]),
10663
+ ])
10662
10664
  );
10663
10665
  };
10664
10666
  _proto.explore = function explore(context, instance) {
@@ -10723,7 +10725,7 @@ var LabeledContainer = /*#__PURE__*/ (function (_FieldGroup) {
10723
10725
  {
10724
10726
  label: undefined,
10725
10727
  },
10726
- ].concat(Array.prototype.slice.call(arguments)),
10728
+ ].concat(Array.prototype.slice.call(arguments))
10727
10729
  );
10728
10730
  };
10729
10731
  _proto.init = function init() {
@@ -10750,7 +10752,7 @@ var LabeledContainer = /*#__PURE__*/ (function (_FieldGroup) {
10750
10752
  {
10751
10753
  label: this.label,
10752
10754
  },
10753
- ]),
10755
+ ])
10754
10756
  );
10755
10757
  };
10756
10758
  _proto.renderLabel = function renderLabel(context, instance, key) {
@@ -10805,14 +10807,14 @@ var MonthPicker = /*#__PURE__*/ (function (_Field) {
10805
10807
  maxValue: undefined,
10806
10808
  maxExclusive: undefined,
10807
10809
  },
10808
- ].concat(Array.prototype.slice.call(arguments)),
10810
+ ].concat(Array.prototype.slice.call(arguments))
10809
10811
  );
10810
10812
  };
10811
10813
  _proto.init = function init() {
10812
10814
  _Field.prototype.init.call(this);
10813
10815
  };
10814
- _proto.prepareData = function prepareData(context, _ref) {
10815
- var data = _ref.data;
10816
+ _proto.prepareData = function prepareData(context, instance) {
10817
+ var data = instance.data;
10816
10818
  data.stateMods = {
10817
10819
  disabled: data.disabled,
10818
10820
  };
@@ -10828,6 +10830,13 @@ var MonthPicker = /*#__PURE__*/ (function (_Field) {
10828
10830
  if (data.refDate) data.refDate = monthStart(parseDateInvariant(data.refDate));
10829
10831
  if (data.maxValue) data.maxValue = monthStart(parseDateInvariant(data.maxValue));
10830
10832
  if (data.minValue) data.minValue = monthStart(parseDateInvariant(data.minValue));
10833
+ if (this.onCreateIsMonthDateSelectable) {
10834
+ instance.isMonthDateSelectable = instance.invoke(
10835
+ "onCreateIsMonthDateSelectable",
10836
+ data.validationParams,
10837
+ instance
10838
+ );
10839
+ }
10831
10840
  _Field.prototype.prepareData.apply(this, arguments);
10832
10841
  };
10833
10842
  _proto.validate = function validate(context, instance) {
@@ -10859,15 +10868,17 @@ var MonthPicker = /*#__PURE__*/ (function (_Field) {
10859
10868
  onKeyDown: this.onKeyDown,
10860
10869
  autoFocus: this.autoFocus,
10861
10870
  },
10862
- key,
10871
+ key
10863
10872
  );
10864
10873
  };
10865
10874
  _proto.handleSelect = function handleSelect(e, instance, date1, date2) {
10866
10875
  var data = instance.data,
10867
- widget = instance.widget;
10876
+ widget = instance.widget,
10877
+ isMonthDateSelectable = instance.isMonthDateSelectable;
10868
10878
  var encode = widget.encoding || Culture.getDefaultDateEncoding();
10869
10879
  if (data.disabled) return;
10870
- if (!validationCheck(date1, data)) return;
10880
+ if (isMonthDateSelectable && !isMonthDateSelectable(date1)) return;
10881
+ if (!dateSelectableCheck(date1, data)) return;
10871
10882
  if (this.onBeforeSelect && instance.invoke("onBeforeSelect", e, instance, date1, date2) === false) return;
10872
10883
  if (this.range) {
10873
10884
  instance.set("from", encode(date1));
@@ -10894,7 +10905,7 @@ MonthPicker.prototype.minExclusiveErrorText = "Select a date after {0:d}.";
10894
10905
  MonthPicker.prototype.inclusiveTo = false;
10895
10906
  Localization.registerPrototype("cx/widgets/MonthPicker", MonthPicker);
10896
10907
  Widget.alias("month-picker", MonthPicker);
10897
- var validationCheck = function validationCheck(date, data) {
10908
+ var dateSelectableCheck = function dateSelectableCheck(date, data) {
10898
10909
  if (data.maxValue && !upperBoundCheck(date, data.maxValue, data.maxExclusive)) return false;
10899
10910
  if (data.minValue && !lowerBoundCheck(date, data.minValue, data.minExclusive)) return false;
10900
10911
  return true;
@@ -11040,7 +11051,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11040
11051
  },
11041
11052
  {
11042
11053
  ensureVisible: true,
11043
- },
11054
+ }
11044
11055
  );
11045
11056
  else if (column == "Q")
11046
11057
  this.moveCursor(
@@ -11051,7 +11062,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11051
11062
  },
11052
11063
  {
11053
11064
  ensureVisible: true,
11054
- },
11065
+ }
11055
11066
  );
11056
11067
  else if (column == "M")
11057
11068
  if (cursorMonth > 3)
@@ -11062,7 +11073,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11062
11073
  },
11063
11074
  {
11064
11075
  ensureVisible: true,
11065
- },
11076
+ }
11066
11077
  );
11067
11078
  else
11068
11079
  this.moveCursor(
@@ -11073,7 +11084,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11073
11084
  },
11074
11085
  {
11075
11086
  ensureVisible: true,
11076
- },
11087
+ }
11077
11088
  );
11078
11089
  break;
11079
11090
  case KeyCode.down:
@@ -11085,7 +11096,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11085
11096
  },
11086
11097
  {
11087
11098
  ensureVisible: true,
11088
- },
11099
+ }
11089
11100
  );
11090
11101
  else if (column == "Q")
11091
11102
  this.moveCursor(
@@ -11096,7 +11107,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11096
11107
  },
11097
11108
  {
11098
11109
  ensureVisible: true,
11099
- },
11110
+ }
11100
11111
  );
11101
11112
  else if (column == "M")
11102
11113
  if (cursorMonth < 10)
@@ -11107,7 +11118,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11107
11118
  },
11108
11119
  {
11109
11120
  ensureVisible: true,
11110
- },
11121
+ }
11111
11122
  );
11112
11123
  else
11113
11124
  this.moveCursor(
@@ -11118,7 +11129,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11118
11129
  },
11119
11130
  {
11120
11131
  ensureVisible: true,
11121
- },
11132
+ }
11122
11133
  );
11123
11134
  break;
11124
11135
  case KeyCode.pageUp:
@@ -11153,11 +11164,11 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11153
11164
  if (this.props.onFocusOut) this.props.onFocusOut();
11154
11165
  };
11155
11166
  _proto2.getCursorDates = function getCursorDates(cursor) {
11156
- var _ref2 = cursor || this.state,
11157
- cursorMonth = _ref2.cursorMonth,
11158
- cursorYear = _ref2.cursorYear,
11159
- cursorQuarter = _ref2.cursorQuarter,
11160
- column = _ref2.column;
11167
+ var _ref = cursor || this.state,
11168
+ cursorMonth = _ref.cursorMonth,
11169
+ cursorYear = _ref.cursorYear,
11170
+ cursorQuarter = _ref.cursorQuarter,
11171
+ column = _ref.column;
11161
11172
  switch (column) {
11162
11173
  case "M":
11163
11174
  return [new Date(cursorYear, cursorMonth - 1, 1), new Date(cursorYear, cursorMonth, 1)];
@@ -11202,8 +11213,8 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11202
11213
  {
11203
11214
  state: "drag",
11204
11215
  },
11205
- cursor,
11206
- ),
11216
+ cursor
11217
+ )
11207
11218
  );
11208
11219
  }
11209
11220
  };
@@ -11240,7 +11251,8 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11240
11251
  var _this3 = this;
11241
11252
  var instance = this.props.instance;
11242
11253
  var data = instance.data,
11243
- widget = instance.widget;
11254
+ widget = instance.widget,
11255
+ isMonthDateSelectable = instance.isMonthDateSelectable;
11244
11256
  var CSS = widget.CSS,
11245
11257
  baseClass = widget.baseClass,
11246
11258
  startYear = widget.startYear,
@@ -11279,30 +11291,50 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11279
11291
  var monthNames = Culture.getDateTimeCulture().getMonthNames("short");
11280
11292
  var showCursor = this.state.hover || this.state.focused;
11281
11293
  for (var y = start; y <= end; y++) {
11294
+ var selectableMonths = 4095;
11295
+ // Loop through the months in a year to check if all months are unselectable
11296
+ for (var i = 0; i < 12; i++) {
11297
+ if (
11298
+ (isMonthDateSelectable && !isMonthDateSelectable(new Date(y, i, 1))) ||
11299
+ !dateSelectableCheck(new Date(y, i, 1), data)
11300
+ ) {
11301
+ // Set month as unselectable at specified bit
11302
+ selectableMonths &= ~(1 << i);
11303
+ }
11304
+ }
11305
+
11306
+ // All bits are 0 - all months are unselectable
11307
+ var unselectableYear = selectableMonths === 0;
11282
11308
  var rows = [];
11283
11309
  for (var q = 0; q < 4; q++) {
11284
11310
  var row = [];
11285
- if (q == 0)
11311
+ if (q == 0) {
11286
11312
  row.push(
11287
11313
  /*#__PURE__*/ jsx(
11288
11314
  "th",
11289
11315
  {
11290
11316
  rowSpan: 4,
11291
11317
  "data-point": "Y-" + y,
11292
- className: CSS.element(baseClass, "year", {
11293
- cursor: showCursor && this.state.column == "Y" && y == this.state.cursorYear,
11294
- }),
11295
- onMouseEnter: this.handleMouseEnter,
11296
- onMouseDown: this.handleMouseDown,
11297
- onMouseUp: this.handleMouseUp,
11318
+ className: CSS.expand(
11319
+ CSS.element(baseClass, "year", {
11320
+ cursor: showCursor && this.state.column == "Y" && y == this.state.cursorYear,
11321
+ }),
11322
+ CSS.state({
11323
+ unselectable: unselectableYear,
11324
+ })
11325
+ ),
11326
+ onMouseEnter: unselectableYear ? null : this.handleMouseEnter,
11327
+ onMouseDown: unselectableYear ? null : this.handleMouseDown,
11328
+ onMouseUp: unselectableYear ? null : this.handleMouseUp,
11298
11329
  children: y,
11299
11330
  },
11300
- "year",
11301
- ),
11331
+ "year"
11332
+ )
11302
11333
  );
11303
- for (var i = 0; i < 3; i++) {
11304
- var m = q * 3 + i + 1;
11305
- var unselectable = !validationCheck(new Date(y, m - 1, 1), data);
11334
+ }
11335
+ for (var _i = 0; _i < 3; _i++) {
11336
+ var m = q * 3 + _i + 1;
11337
+ var unselectableMonth = (selectableMonths & (1 << (m - 1))) === 0;
11306
11338
  var mno = y * 12 + m - 1;
11307
11339
  var handle = true; //isTouchDevice(); //mno === from || mno === to - 1;
11308
11340
  row.push(
@@ -11314,22 +11346,31 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11314
11346
  showCursor && this.state.column == "M" && y == this.state.cursorYear && m == this.state.cursorMonth,
11315
11347
  handle: handle,
11316
11348
  selected: mno >= from && mno < to,
11317
- unselectable: unselectable,
11349
+ unselectable: unselectableMonth,
11318
11350
  }),
11319
11351
  "data-point": "Y-" + y + "-M-" + m,
11320
- onMouseEnter: unselectable ? null : this.handleMouseEnter,
11321
- onMouseDown: unselectable ? null : this.handleMouseDown,
11322
- onMouseUp: unselectable ? null : this.handleMouseUp,
11323
- onTouchStart: unselectable ? null : this.handleMouseDown,
11324
- onTouchMove: unselectable ? null : this.handleTouchMove,
11352
+ onMouseEnter: unselectableMonth ? null : this.handleMouseEnter,
11353
+ onMouseDown: unselectableMonth ? null : this.handleMouseDown,
11354
+ onMouseUp: unselectableMonth ? null : this.handleMouseUp,
11355
+ onTouchStart: unselectableMonth ? null : this.handleMouseDown,
11356
+ onTouchMove: unselectableMonth ? null : this.handleTouchMove,
11325
11357
  onTouchEnd: this.handleMouseUp,
11326
11358
  children: monthNames[m - 1].substr(0, 3),
11327
11359
  },
11328
- "M" + m,
11329
- ),
11360
+ "M" + m
11361
+ )
11330
11362
  );
11331
11363
  }
11332
- if (!hideQuarters)
11364
+ if (!hideQuarters) {
11365
+ var unselectableQuarter = true;
11366
+ var _start = q * 3;
11367
+ for (var _i2 = _start; _i2 < _start + 3; _i2++) {
11368
+ if ((selectableMonths & (1 << _i2)) !== 0) {
11369
+ // found a selectable month in a quarter
11370
+ unselectableQuarter = false;
11371
+ break;
11372
+ }
11373
+ }
11333
11374
  row.push(
11334
11375
  /*#__PURE__*/ jsx(
11335
11376
  "th",
@@ -11340,16 +11381,18 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11340
11381
  this.state.column == "Q" &&
11341
11382
  y == this.state.cursorYear &&
11342
11383
  q == this.state.cursorQuarter,
11384
+ unselectable: unselectableQuarter,
11343
11385
  }),
11344
11386
  "data-point": "Y-" + y + "-Q-" + q,
11345
- onMouseEnter: this.handleMouseEnter,
11346
- onMouseDown: this.handleMouseDown,
11347
- onMouseUp: this.handleMouseUp,
11387
+ onMouseEnter: unselectableQuarter ? null : this.handleMouseEnter,
11388
+ onMouseDown: unselectableQuarter ? null : this.handleMouseDown,
11389
+ onMouseUp: unselectableQuarter ? null : this.handleMouseUp,
11348
11390
  children: "Q" + (q + 1),
11349
11391
  },
11350
- "q" + q,
11351
- ),
11392
+ "q" + q
11393
+ )
11352
11394
  );
11395
+ }
11353
11396
  rows.push(row);
11354
11397
  }
11355
11398
  years.push(rows);
@@ -11393,11 +11436,11 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11393
11436
  {
11394
11437
  children: cells,
11395
11438
  },
11396
- i,
11439
+ i
11397
11440
  );
11398
11441
  }),
11399
11442
  },
11400
- start + y,
11443
+ start + y
11401
11444
  );
11402
11445
  }),
11403
11446
  }),
@@ -11418,7 +11461,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11418
11461
  var visibleItems = ceil5(Math.ceil(this.dom.el.offsetHeight / this.state.yearHeight));
11419
11462
  var start = Math.max(
11420
11463
  startYear,
11421
- startYear + floor5(Math.floor(this.dom.el.scrollTop / this.state.yearHeight)) - visibleItems,
11464
+ startYear + floor5(Math.floor(this.dom.el.scrollTop / this.state.yearHeight)) - visibleItems
11422
11465
  );
11423
11466
  if (start != this.state.start && start + bufferSize <= endYear) {
11424
11467
  this.setState({
@@ -11456,7 +11499,7 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
11456
11499
  _this4.dom.el.scrollTop =
11457
11500
  (_this4.state.cursorYear - startYear + yearCount / 2) * _this4.state.yearHeight -
11458
11501
  _this4.dom.el.offsetHeight / 2;
11459
- },
11502
+ }
11460
11503
  );
11461
11504
  };
11462
11505
  _proto2.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
@@ -11489,10 +11532,10 @@ var PixelPickerIcon = registerIcon(
11489
11532
  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",
11490
11533
  fill: "currentColor",
11491
11534
  }),
11492
- }),
11535
+ })
11493
11536
  );
11494
11537
  },
11495
- true,
11538
+ true
11496
11539
  );
11497
11540
 
11498
11541
  var ColorPicker = /*#__PURE__*/ (function (_Field) {
@@ -11511,7 +11554,7 @@ var ColorPicker = /*#__PURE__*/ (function (_Field) {
11511
11554
  value: this.emptyValue,
11512
11555
  format: undefined,
11513
11556
  },
11514
- ].concat(Array.prototype.slice.call(arguments)),
11557
+ ].concat(Array.prototype.slice.call(arguments))
11515
11558
  );
11516
11559
  };
11517
11560
  _proto.renderInput = function renderInput(context, instance, key) {
@@ -11520,7 +11563,7 @@ var ColorPicker = /*#__PURE__*/ (function (_Field) {
11520
11563
  {
11521
11564
  instance: instance,
11522
11565
  },
11523
- key,
11566
+ key
11524
11567
  );
11525
11568
  };
11526
11569
  _proto.handleEvent = function handleEvent(eventType, instance, color) {
@@ -12098,7 +12141,7 @@ var MonthField = /*#__PURE__*/ (function (_Field) {
12098
12141
  maxExclusive: undefined,
12099
12142
  icon: undefined,
12100
12143
  },
12101
- ].concat(Array.prototype.slice.call(arguments)),
12144
+ ].concat(Array.prototype.slice.call(arguments))
12102
12145
  );
12103
12146
  };
12104
12147
  _proto.isEmpty = function isEmpty(data) {
@@ -12183,7 +12226,7 @@ var MonthField = /*#__PURE__*/ (function (_Field) {
12183
12226
  help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
12184
12227
  icon: this.renderIcon(context, instance, "icon"),
12185
12228
  },
12186
- key,
12229
+ key
12187
12230
  );
12188
12231
  };
12189
12232
  _proto.formatValue = function formatValue(context, _ref) {
@@ -12288,11 +12331,11 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
12288
12331
  if (!touch) _this2.input.focus();
12289
12332
  });
12290
12333
  },
12291
- },
12334
+ }
12292
12335
  ),
12293
12336
  constrain: true,
12294
12337
  firstChildDefinesWidth: true,
12295
- },
12338
+ }
12296
12339
  );
12297
12340
  return (this.dropdown = Widget.create(dropdown));
12298
12341
  };
@@ -12362,7 +12405,7 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
12362
12405
  icon: !!icon,
12363
12406
  empty: empty && !data.placeholder,
12364
12407
  error: data.error && (state.visited || !suppressErrorsUntilVisited || !empty),
12365
- }),
12408
+ })
12366
12409
  ),
12367
12410
  style: data.style,
12368
12411
  onMouseDown: this.onMouseDown.bind(this),
@@ -12489,7 +12532,7 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
12489
12532
  {
12490
12533
  dropdownOpen: false,
12491
12534
  },
12492
- callback,
12535
+ callback
12493
12536
  );
12494
12537
  } else if (callback) callback();
12495
12538
  };
@@ -12577,7 +12620,7 @@ var ColorField = /*#__PURE__*/ (function (_Field) {
12577
12620
  required: undefined,
12578
12621
  format: undefined,
12579
12622
  },
12580
- ].concat(Array.prototype.slice.call(arguments)),
12623
+ ].concat(Array.prototype.slice.call(arguments))
12581
12624
  );
12582
12625
  };
12583
12626
  _proto.init = function init() {
@@ -12609,7 +12652,7 @@ var ColorField = /*#__PURE__*/ (function (_Field) {
12609
12652
  label: this.labelPlacement && getContent(this.renderLabel(context, instance, "label")),
12610
12653
  help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
12611
12654
  },
12612
- key,
12655
+ key
12613
12656
  );
12614
12657
  };
12615
12658
  return ColorField;
@@ -12670,7 +12713,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
12670
12713
  if (!touch) _this2.input.focus();
12671
12714
  });
12672
12715
  },
12673
- },
12716
+ }
12674
12717
  ),
12675
12718
  onFocusOut: function onFocusOut() {
12676
12719
  _this2.closeDropdown();
@@ -12680,7 +12723,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
12680
12723
  },
12681
12724
  firstChildDefinesHeight: true,
12682
12725
  firstChildDefinesWidth: true,
12683
- },
12726
+ }
12684
12727
  );
12685
12728
  return (this.dropdown = Widget.create(dropdown));
12686
12729
  };
@@ -12751,7 +12794,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
12751
12794
  icon: true,
12752
12795
  empty: empty && !data.placeholder,
12753
12796
  error: data.error && (state.visited || !suppressErrorsUntilVisited || !empty),
12754
- }),
12797
+ })
12755
12798
  ),
12756
12799
  style: data.style,
12757
12800
  onMouseDown: this.onMouseDown.bind(this),
@@ -12798,8 +12841,8 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
12798
12841
  onMouseLeave: function onMouseLeave(e) {
12799
12842
  return tooltipMouseLeave$1.apply(void 0, [e].concat(getFieldTooltip(instance)));
12800
12843
  },
12801
- },
12802
- ),
12844
+ }
12845
+ )
12803
12846
  ),
12804
12847
  well,
12805
12848
  insideButton,
@@ -12879,7 +12922,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
12879
12922
  {
12880
12923
  dropdownOpen: false,
12881
12924
  },
12882
- callback,
12925
+ callback
12883
12926
  );
12884
12927
  } else if (callback) callback();
12885
12928
  };
@@ -12976,7 +13019,7 @@ var UploadButton = /*#__PURE__*/ (function (_Field) {
12976
13019
  icon: undefined,
12977
13020
  accept: undefined,
12978
13021
  },
12979
- ].concat(Array.prototype.slice.call(arguments)),
13022
+ ].concat(Array.prototype.slice.call(arguments))
12980
13023
  );
12981
13024
  };
12982
13025
  _proto.renderInput = function renderInput(context, instance, key) {
@@ -12987,7 +13030,7 @@ var UploadButton = /*#__PURE__*/ (function (_Field) {
12987
13030
  instance: instance,
12988
13031
  children: data.text || this.renderChildren(context, instance),
12989
13032
  },
12990
- key,
13033
+ key
12991
13034
  );
12992
13035
  };
12993
13036
  return UploadButton;
@@ -13045,7 +13088,7 @@ var UploadButtonComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13045
13088
  width: this.state.progress + "%",
13046
13089
  },
13047
13090
  },
13048
- "progress",
13091
+ "progress"
13049
13092
  ),
13050
13093
  icon,
13051
13094
  children,
@@ -13061,7 +13104,7 @@ var UploadButtonComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13061
13104
  tabIndex: data.tabIndex,
13062
13105
  onChange: this.onFileSelected.bind(this),
13063
13106
  },
13064
- this.state.uploadKey,
13107
+ this.state.uploadKey
13065
13108
  ),
13066
13109
  ],
13067
13110
  });
@@ -13196,7 +13239,7 @@ var Slider = /*#__PURE__*/ (function (_Field) {
13196
13239
  },
13197
13240
  invert: false,
13198
13241
  },
13199
- ].concat(Array.prototype.slice.call(arguments)),
13242
+ ].concat(Array.prototype.slice.call(arguments))
13200
13243
  );
13201
13244
  };
13202
13245
  _proto.init = function init() {
@@ -13227,7 +13270,7 @@ var Slider = /*#__PURE__*/ (function (_Field) {
13227
13270
  data: instance.data,
13228
13271
  label: this.labelPlacement && getContent(this.renderLabel(context, instance, "label")),
13229
13272
  },
13230
- key,
13273
+ key
13231
13274
  );
13232
13275
  };
13233
13276
  return Slider;
@@ -13280,12 +13323,12 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13280
13323
  var fromHandleStyle = _extends(
13281
13324
  {},
13282
13325
  handleStyle,
13283
- ((_extends2 = {}), (_extends2[anchor] = (100 * (from - minValue)) / (maxValue - minValue) + "%"), _extends2),
13326
+ ((_extends2 = {}), (_extends2[anchor] = (100 * (from - minValue)) / (maxValue - minValue) + "%"), _extends2)
13284
13327
  );
13285
13328
  var toHandleStyle = _extends(
13286
13329
  {},
13287
13330
  handleStyle,
13288
- ((_extends3 = {}), (_extends3[anchor] = (100 * (to - minValue)) / (maxValue - minValue) + "%"), _extends3),
13331
+ ((_extends3 = {}), (_extends3[anchor] = (100 * (to - minValue)) / (maxValue - minValue) + "%"), _extends3)
13289
13332
  );
13290
13333
  var rangeStyle = _extends(
13291
13334
  {},
@@ -13293,7 +13336,7 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13293
13336
  ((_extends4 = {}),
13294
13337
  (_extends4[anchor] = (100 * rangeStart) / (maxValue - minValue) + "%"),
13295
13338
  (_extends4[widget.vertical ? "height" : "width"] = (100 * rangeSize) / (maxValue - minValue) + "%"),
13296
- _extends4),
13339
+ _extends4)
13297
13340
  );
13298
13341
  return /*#__PURE__*/ jsxs("div", {
13299
13342
  className: data.classNames,
@@ -13324,7 +13367,7 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13324
13367
  className: CSS.element(baseClass, "range"),
13325
13368
  style: rangeStyle,
13326
13369
  },
13327
- "range",
13370
+ "range"
13328
13371
  ),
13329
13372
  /*#__PURE__*/ jsxs(
13330
13373
  "div",
@@ -13359,7 +13402,7 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13359
13402
  return (_this2.dom.from = c);
13360
13403
  },
13361
13404
  },
13362
- "from",
13405
+ "from"
13363
13406
  ),
13364
13407
  widget.showTo &&
13365
13408
  /*#__PURE__*/ jsx(
@@ -13386,11 +13429,11 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13386
13429
  return (_this2.dom.to = c);
13387
13430
  },
13388
13431
  },
13389
- "to",
13432
+ "to"
13390
13433
  ),
13391
13434
  ],
13392
13435
  },
13393
- "space",
13436
+ "space"
13394
13437
  ),
13395
13438
  ],
13396
13439
  }),
@@ -13433,7 +13476,7 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13433
13476
  },
13434
13477
  {
13435
13478
  passive: false,
13436
- },
13479
+ }
13437
13480
  );
13438
13481
  };
13439
13482
  _proto2.onHandleMouseLeave = function onHandleMouseLeave(e, handle) {
@@ -13508,7 +13551,7 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13508
13551
  tooltipName: tooltipName,
13509
13552
  target: handleEl,
13510
13553
  });
13511
- },
13554
+ }
13512
13555
  );
13513
13556
  };
13514
13557
  _proto2.getValues = function getValues(e, d) {
@@ -13633,7 +13676,7 @@ var Switch = /*#__PURE__*/ (function (_Field) {
13633
13676
  structured: true,
13634
13677
  },
13635
13678
  },
13636
- ].concat(Array.prototype.slice.call(arguments)),
13679
+ ].concat(Array.prototype.slice.call(arguments))
13637
13680
  );
13638
13681
  };
13639
13682
  _proto.isEmpty = function isEmpty() {
@@ -13716,11 +13759,11 @@ var Switch = /*#__PURE__*/ (function (_Field) {
13716
13759
  className: CSS.element(this.baseClass, "text"),
13717
13760
  children: text,
13718
13761
  },
13719
- "text",
13762
+ "text"
13720
13763
  ),
13721
13764
  ],
13722
13765
  },
13723
- key,
13766
+ key
13724
13767
  );
13725
13768
  };
13726
13769
  _proto.toggle = function toggle(e, instance) {
@@ -13752,7 +13795,7 @@ var Wheel = /*#__PURE__*/ (function (_PureContainer) {
13752
13795
  value: undefined,
13753
13796
  options: undefined,
13754
13797
  },
13755
- ]),
13798
+ ])
13756
13799
  );
13757
13800
  };
13758
13801
  _proto.render = function render(context, instance, key) {
@@ -13783,11 +13826,11 @@ var Wheel = /*#__PURE__*/ (function (_PureContainer) {
13783
13826
  {
13784
13827
  children: o.text,
13785
13828
  },
13786
- 0,
13829
+ 0
13787
13830
  );
13788
13831
  }),
13789
13832
  },
13790
- key,
13833
+ key
13791
13834
  );
13792
13835
  };
13793
13836
  return Wheel;
@@ -13851,7 +13894,7 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13851
13894
  cls: optionClass,
13852
13895
  };
13853
13896
  }),
13854
- bpad,
13897
+ bpad
13855
13898
  );
13856
13899
  if (!this.state.wheelHeight) displayedOptions = displayedOptions.slice(this.index, this.index + size);
13857
13900
  return /*#__PURE__*/ jsxs("div", {
@@ -13889,7 +13932,7 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13889
13932
  className: opt.cls,
13890
13933
  children: opt.child,
13891
13934
  },
13892
- opt.key,
13935
+ opt.key
13893
13936
  );
13894
13937
  }),
13895
13938
  }),
@@ -13952,7 +13995,7 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
13952
13995
  },
13953
13996
  function () {
13954
13997
  _this3.scrollEl.scrollTop = (_this3.index * _this3.state.wheelHeight) / _this3.props.size;
13955
- },
13998
+ }
13956
13999
  );
13957
14000
  if (this.props.onPipeKeyDown) this.props.onPipeKeyDown(this.onKeyDown);
13958
14001
  };
@@ -14040,7 +14083,7 @@ var DateTimePicker = /*#__PURE__*/ (function (_Widget) {
14040
14083
  {
14041
14084
  value: undefined,
14042
14085
  },
14043
- ]),
14086
+ ])
14044
14087
  );
14045
14088
  };
14046
14089
  _proto.render = function render(context, instance, key) {
@@ -14052,7 +14095,7 @@ var DateTimePicker = /*#__PURE__*/ (function (_Widget) {
14052
14095
  size: this.size,
14053
14096
  segment: this.segment,
14054
14097
  },
14055
- key,
14098
+ key
14056
14099
  );
14057
14100
  };
14058
14101
  return DateTimePicker;
@@ -14148,8 +14191,8 @@ var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
14148
14191
  {
14149
14192
  children: y,
14150
14193
  },
14151
- y,
14152
- ),
14194
+ y
14195
+ )
14153
14196
  );
14154
14197
  var days = [];
14155
14198
  var start = new Date(date.getFullYear(), date.getMonth(), 1);
@@ -14161,8 +14204,8 @@ var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
14161
14204
  {
14162
14205
  children: day < 10 ? "0" + day : day,
14163
14206
  },
14164
- day,
14165
- ),
14207
+ day
14208
+ )
14166
14209
  );
14167
14210
  start.setDate(start.getDate() + 1);
14168
14211
  }
@@ -14174,8 +14217,8 @@ var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
14174
14217
  {
14175
14218
  children: h < 10 ? "0" + h : h,
14176
14219
  },
14177
- h,
14178
- ),
14220
+ h
14221
+ )
14179
14222
  );
14180
14223
  }
14181
14224
  var minutes = [];
@@ -14186,8 +14229,8 @@ var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
14186
14229
  {
14187
14230
  children: m < 10 ? "0" + m : m,
14188
14231
  },
14189
- m,
14190
- ),
14232
+ m
14233
+ )
14191
14234
  );
14192
14235
  }
14193
14236
  return /*#__PURE__*/ jsxs("div", {
@@ -14257,7 +14300,7 @@ var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
14257
14300
  {
14258
14301
  children: m,
14259
14302
  },
14260
- i,
14303
+ i
14261
14304
  );
14262
14305
  }),
14263
14306
  }),
@@ -14594,7 +14637,7 @@ var DateTimeField = /*#__PURE__*/ (function (_Field) {
14594
14637
  icon: undefined,
14595
14638
  autoOpen: undefined,
14596
14639
  },
14597
- ].concat(Array.prototype.slice.call(arguments)),
14640
+ ].concat(Array.prototype.slice.call(arguments))
14598
14641
  );
14599
14642
  };
14600
14643
  _proto.init = function init() {
@@ -14686,7 +14729,7 @@ var DateTimeField = /*#__PURE__*/ (function (_Field) {
14686
14729
  help: this.helpPlacement && getContent(this.renderHelp(context, instance, "help")),
14687
14730
  icon: getContent(this.renderIcon(context, instance, "icon")),
14688
14731
  },
14689
- key,
14732
+ key
14690
14733
  );
14691
14734
  };
14692
14735
  _proto.formatValue = function formatValue(context, _ref) {
@@ -14815,7 +14858,7 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
14815
14858
  });
14816
14859
  },
14817
14860
  }),
14818
- },
14861
+ }
14819
14862
  );
14820
14863
  return (this.dropdown = Widget.create(dropdown));
14821
14864
  };
@@ -14885,7 +14928,7 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
14885
14928
  icon: !!icon,
14886
14929
  empty: empty && !data.placeholder,
14887
14930
  error: data.error && (state.visited || !suppressErrorsUntilVisited || !empty),
14888
- }),
14931
+ })
14889
14932
  ),
14890
14933
  style: data.style,
14891
14934
  onMouseDown: this.onMouseDown.bind(this),
@@ -14931,8 +14974,8 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
14931
14974
  onMouseLeave: function onMouseLeave(e) {
14932
14975
  return tooltipMouseLeave$1.apply(void 0, [e].concat(getFieldTooltip(_this3.props.instance)));
14933
14976
  },
14934
- },
14935
- ),
14977
+ }
14978
+ )
14936
14979
  ),
14937
14980
  icon,
14938
14981
  insideButton,
@@ -15020,7 +15063,7 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
15020
15063
  {
15021
15064
  dropdownOpen: false,
15022
15065
  },
15023
- callback,
15066
+ callback
15024
15067
  );
15025
15068
  this.props.instance.setState({
15026
15069
  visited: true,
@@ -15158,7 +15201,7 @@ var Validator = /*#__PURE__*/ (function (_Field) {
15158
15201
  },
15159
15202
  disabled: undefined,
15160
15203
  },
15161
- ]),
15204
+ ])
15162
15205
  );
15163
15206
  };
15164
15207
  _proto.isEmpty = function isEmpty(data) {
@@ -15182,10 +15225,10 @@ var DropDownIcon = registerIcon(
15182
15225
  fill: "currentColor",
15183
15226
  d: "M10.5 5.8l-3-3-3 3 .707.708L7 4.688v8.312h1V4.69l1.793 1.817z",
15184
15227
  }),
15185
- }),
15228
+ })
15186
15229
  );
15187
15230
  },
15188
- true,
15231
+ true
15189
15232
  );
15190
15233
 
15191
15234
  var GridCell = /*#__PURE__*/ (function (_PureContainer) {
@@ -15211,7 +15254,7 @@ var GridCell = /*#__PURE__*/ (function (_PureContainer) {
15211
15254
  fixed: undefined,
15212
15255
  mergeCells: undefined,
15213
15256
  },
15214
- ]),
15257
+ ])
15215
15258
  );
15216
15259
  };
15217
15260
  _proto.init = function init() {
@@ -15235,8 +15278,8 @@ var GridCell = /*#__PURE__*/ (function (_PureContainer) {
15235
15278
  }),
15236
15279
  (_this$CSS$state["aligned-" + this.align] = this.align),
15237
15280
  (_this$CSS$state.mergable = data.merged),
15238
- _this$CSS$state),
15239
- ),
15281
+ _this$CSS$state)
15282
+ )
15240
15283
  );
15241
15284
  data.style = this.CSS.parseStyle(data.style);
15242
15285
  };
@@ -15306,7 +15349,7 @@ var GridRow = /*#__PURE__*/ (function (_ValidationGroup) {
15306
15349
  {
15307
15350
  hoverId: undefined,
15308
15351
  },
15309
- ]),
15352
+ ])
15310
15353
  );
15311
15354
  };
15312
15355
  _proto.init = function init() {
@@ -15316,7 +15359,7 @@ var GridRow = /*#__PURE__*/ (function (_ValidationGroup) {
15316
15359
  this.items.push(
15317
15360
  GridRowLine.create(this["line" + i], {
15318
15361
  recordName: this.recordName,
15319
- }),
15362
+ })
15320
15363
  );
15321
15364
  }
15322
15365
  _ValidationGroup.prototype.init.call(this);
@@ -15401,7 +15444,7 @@ var GridRowComponent = /*#__PURE__*/ (function (_VDOM$Component) {
15401
15444
  onContextMenu: this.onRowContextMenu,
15402
15445
  "data-record-key": record.key,
15403
15446
  },
15404
- children,
15447
+ children
15405
15448
  );
15406
15449
  };
15407
15450
  _proto2.onMouseDown = function onMouseDown(e) {
@@ -15544,7 +15587,7 @@ var GridCellEditor = /*#__PURE__*/ (function (_Container) {
15544
15587
  style: data.style,
15545
15588
  children: this.renderChildren(context, instance),
15546
15589
  },
15547
- key,
15590
+ key
15548
15591
  );
15549
15592
  };
15550
15593
  return GridCellEditor;
@@ -15626,7 +15669,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15626
15669
  },
15627
15670
  },
15628
15671
  selection,
15629
- ]),
15672
+ ])
15630
15673
  );
15631
15674
  };
15632
15675
  _proto.init = function init() {
@@ -15650,6 +15693,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15650
15693
  colWidth: {},
15651
15694
  lockedColWidth: {},
15652
15695
  dimensionsVersion: 0,
15696
+ disableDefaultSort: false,
15653
15697
  };
15654
15698
  instance.v = 0;
15655
15699
  if (this.infinite)
@@ -15725,18 +15769,18 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15725
15769
  value: isDefined(c.aggregateValue)
15726
15770
  ? c.aggregateValue
15727
15771
  : isDefined(c.value)
15728
- ? c.value
15729
- : c.aggregateField
15730
- ? {
15731
- bind: _this.recordName + "." + c.aggregateField,
15732
- }
15733
- : null,
15772
+ ? c.value
15773
+ : c.aggregateField
15774
+ ? {
15775
+ bind: _this.recordName + "." + c.aggregateField,
15776
+ }
15777
+ : null,
15734
15778
  weight:
15735
15779
  c.weight != null
15736
15780
  ? c.weight
15737
15781
  : c.weightField && {
15738
15782
  bind: _this.recordName + "." + c.weightField,
15739
- },
15783
+ },
15740
15784
  type: c.aggregate,
15741
15785
  };
15742
15786
  } else if (c.footer && !showFooter) {
@@ -15761,7 +15805,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15761
15805
  grouping[0].showFooter = true;
15762
15806
  if (grouping[0].key && Object.keys(grouping[0].key).length > 0)
15763
15807
  Console.warn(
15764
- "First grouping level in grids with a fixed footer must group all data. The key field should be omitted.",
15808
+ "First grouping level in grids with a fixed footer must group all data. The key field should be omitted."
15765
15809
  );
15766
15810
  }
15767
15811
  instance.dataAdapter = DataAdapter.create(
@@ -15775,7 +15819,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15775
15819
  sortOptions: this.sortOptions,
15776
15820
  groupings: grouping,
15777
15821
  },
15778
- this.dataAdapter,
15822
+ this.dataAdapter
15779
15823
  );
15780
15824
  instance.dataAdapter.initInstance(context, instance);
15781
15825
  return Widget.create(
@@ -15788,8 +15832,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15788
15832
  recordName: this.recordName,
15789
15833
  hoverId: this.rowHoverId,
15790
15834
  },
15791
- row,
15792
- ),
15835
+ row
15836
+ )
15793
15837
  );
15794
15838
  };
15795
15839
  _proto.prepareData = function prepareData(context, instance) {
@@ -15830,7 +15874,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15830
15874
  sortField = data.sortField;
15831
15875
  data.sorters = [sorter];
15832
15876
  }
15833
- if (!isNonEmptyArray(data.sorters) && this.defaultSortField) {
15877
+ var skipDefaultSorting = this.clearableSort && instance.state.disableDefaultSort;
15878
+ if (!skipDefaultSorting && !isNonEmptyArray(data.sorters) && this.defaultSortField) {
15834
15879
  var _sorter = {
15835
15880
  field: this.defaultSortField,
15836
15881
  direction: this.defaultSortDirection || "ASC",
@@ -16034,7 +16079,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16034
16079
  fixedColumnsFixedFooter: instance.fixedColumnsFixedFooterVDOM,
16035
16080
  children: this.renderChildren(context, instance),
16036
16081
  },
16037
- key,
16082
+ key
16038
16083
  );
16039
16084
  };
16040
16085
  _proto.renderResizer = function renderResizer(instance, hdinst, header, colIndex, forPreviousColumn) {
@@ -16087,7 +16132,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16087
16132
  width: width,
16088
16133
  column: hdwidget,
16089
16134
  },
16090
- hdinst,
16135
+ hdinst
16091
16136
  );
16092
16137
  header.set("width", width);
16093
16138
  instance.setState({
@@ -16095,7 +16140,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16095
16140
  colWidth: _extends(
16096
16141
  {},
16097
16142
  instance.state.colWidth,
16098
- ((_extends2 = {}), (_extends2[hdwidget.uniqueColumnId] = width), _extends2),
16143
+ ((_extends2 = {}), (_extends2[hdwidget.uniqueColumnId] = width), _extends2)
16099
16144
  ),
16100
16145
  });
16101
16146
  },
@@ -16131,7 +16176,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16131
16176
  colWidth: _extends(
16132
16177
  {},
16133
16178
  instance.state.colWidth,
16134
- ((_extends3 = {}), (_extends3[hdwidget.uniqueColumnId] = width), _extends3),
16179
+ ((_extends3 = {}), (_extends3[hdwidget.uniqueColumnId] = width), _extends3)
16135
16180
  ),
16136
16181
  });
16137
16182
  },
@@ -16268,8 +16313,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16268
16313
  "data-unique-col-id": colSpan > 1 ? null : hdwidget.uniqueColumnId,
16269
16314
  children: [getContent(content), sortIcon, tool, prevColumnResizer, resizer],
16270
16315
  },
16271
- colIndex,
16272
- ),
16316
+ colIndex
16317
+ )
16273
16318
  );
16274
16319
  },
16275
16320
  _ret;
@@ -16291,8 +16336,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16291
16336
  rowSpan: result.length,
16292
16337
  className: CSS.element(baseClass, "col-header"),
16293
16338
  },
16294
- "dummy",
16295
- ),
16339
+ "dummy"
16340
+ )
16296
16341
  );
16297
16342
  }
16298
16343
  headerRows.push.apply(
@@ -16303,9 +16348,9 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16303
16348
  {
16304
16349
  children: h,
16305
16350
  },
16306
- lineIndex + "-" + i,
16351
+ lineIndex + "-" + i
16307
16352
  );
16308
- }),
16353
+ })
16309
16354
  );
16310
16355
  }
16311
16356
  });
@@ -16316,7 +16361,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16316
16361
  className: CSS.element(baseClass, "header"),
16317
16362
  children: headerRows,
16318
16363
  },
16319
- "h" + key,
16364
+ "h" + key
16320
16365
  );
16321
16366
  };
16322
16367
  _proto.onHeaderMouseMove = function onHeaderMouseMove(e, column, columnInstance, gridInstance, headerLine) {
@@ -16358,7 +16403,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16358
16403
  },
16359
16404
  },
16360
16405
  },
16361
- function () {},
16406
+ function () {}
16362
16407
  );
16363
16408
  }
16364
16409
  };
@@ -16389,7 +16434,10 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16389
16434
  ) {
16390
16435
  if (data.sorters[0].direction == "ASC" && (!this.clearableSort || direction == "ASC")) direction = "DESC";
16391
16436
  else if (data.sorters[0].direction == "DESC" && (!this.clearableSort || direction == "DESC")) direction = "ASC";
16392
- else direction = null;
16437
+ else {
16438
+ direction = null;
16439
+ instance.state.disableDefaultSort = true;
16440
+ }
16393
16441
  }
16394
16442
  var sorters = direction
16395
16443
  ? [
@@ -16400,7 +16448,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16400
16448
  comparer: comparer,
16401
16449
  sortOptions: sortOptions,
16402
16450
  },
16403
- ]
16451
+ ]
16404
16452
  : null;
16405
16453
  if (sorters == null) field = null;
16406
16454
  instance.set("sorters", sorters);
@@ -16431,7 +16479,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16431
16479
  }),
16432
16480
  }),
16433
16481
  },
16434
- "g-" + level + "-" + group.$key,
16482
+ "g-" + level + "-" + group.$key
16435
16483
  );
16436
16484
  } else if (g.showCaption) {
16437
16485
  var skip = 0;
@@ -16494,7 +16542,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16494
16542
  style: style,
16495
16543
  children: v,
16496
16544
  },
16497
- i,
16545
+ i
16498
16546
  );
16499
16547
  });
16500
16548
  if (empty) return;
@@ -16504,8 +16552,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16504
16552
  {
16505
16553
  children: cells,
16506
16554
  },
16507
- lineIndex,
16508
- ),
16555
+ lineIndex
16556
+ )
16509
16557
  );
16510
16558
  });
16511
16559
  if (lines.length == 0) return null;
@@ -16517,7 +16565,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16517
16565
  "data-group-element": "group-caption-" + level,
16518
16566
  children: lines,
16519
16567
  },
16520
- "c" + group.$key,
16568
+ "c" + group.$key
16521
16569
  );
16522
16570
  }
16523
16571
  };
@@ -16530,7 +16578,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16530
16578
  i,
16531
16579
  store,
16532
16580
  fixed,
16533
- fixedColumns,
16581
+ fixedColumns
16534
16582
  ) {
16535
16583
  var CSS = this.CSS,
16536
16584
  baseClass = this.baseClass;
@@ -16595,7 +16643,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16595
16643
  style: style,
16596
16644
  children: v,
16597
16645
  },
16598
- i,
16646
+ i
16599
16647
  );
16600
16648
  });
16601
16649
  if (empty) return;
@@ -16606,8 +16654,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16606
16654
  {
16607
16655
  className: CSS.element(baseClass, "fixed-footer-corner"),
16608
16656
  },
16609
- "dummy",
16610
- ),
16657
+ "dummy"
16658
+ )
16611
16659
  );
16612
16660
  lines.push(
16613
16661
  /*#__PURE__*/ jsx(
@@ -16615,8 +16663,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16615
16663
  {
16616
16664
  children: cells,
16617
16665
  },
16618
- lineIndex,
16619
- ),
16666
+ lineIndex
16667
+ )
16620
16668
  );
16621
16669
  });
16622
16670
  if (lines.length == 0) return null;
@@ -16629,7 +16677,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16629
16677
  "data-group-element": "group-footer-" + level,
16630
16678
  children: lines,
16631
16679
  },
16632
- "f" + i,
16680
+ "f" + i
16633
16681
  );
16634
16682
  };
16635
16683
  _proto.renderRows = function renderRows(context, instance) {
@@ -16654,8 +16702,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16654
16702
  record.group,
16655
16703
  record.key + "-caption",
16656
16704
  record.store,
16657
- false,
16658
- ),
16705
+ false
16706
+ )
16659
16707
  );
16660
16708
  if (hasFixedColumns)
16661
16709
  record.fixedVdom.push(
@@ -16667,8 +16715,8 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16667
16715
  record.group,
16668
16716
  record.key + "-caption",
16669
16717
  record.store,
16670
- true,
16671
- ),
16718
+ true
16719
+ )
16672
16720
  );
16673
16721
  if (g.showHeader) {
16674
16722
  record.vdom.push(this.renderHeader(context, instance, record.key + "-header", false, false));
@@ -16688,7 +16736,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16688
16736
  record.key + "-footer",
16689
16737
  record.store,
16690
16738
  false,
16691
- false,
16739
+ false
16692
16740
  );
16693
16741
  if (hasFixedColumns)
16694
16742
  record.fixedVdom = this.renderGroupFooter(
@@ -16700,7 +16748,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16700
16748
  record.key + "-footer",
16701
16749
  record.store,
16702
16750
  false,
16703
- true,
16751
+ true
16704
16752
  );
16705
16753
  }
16706
16754
  }
@@ -16730,7 +16778,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16730
16778
  record.key + "-footer",
16731
16779
  record.store,
16732
16780
  true,
16733
- false,
16781
+ false
16734
16782
  );
16735
16783
  if (hasFixedColumns)
16736
16784
  instance.fixedColumnsFixedFooterVDOM = this.renderGroupFooter(
@@ -16744,7 +16792,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
16744
16792
  record.key + "-footer",
16745
16793
  record.store,
16746
16794
  true,
16747
- true,
16795
+ true
16748
16796
  );
16749
16797
  };
16750
16798
  _proto.mapRecords = function mapRecords(context, instance) {
@@ -16864,7 +16912,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
16864
16912
  this.rowHeight > 0
16865
16913
  ? {
16866
16914
  height: this.rowHeight + 1,
16867
- }
16915
+ }
16868
16916
  : null,
16869
16917
  jsxAttributes: ["className", "style"],
16870
16918
  children: [
@@ -16888,7 +16936,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
16888
16936
  ],
16889
16937
  }),
16890
16938
  },
16891
- key,
16939
+ key
16892
16940
  );
16893
16941
  };
16894
16942
  _proto2.createRowRenderer = function createRowRenderer(cellWrap) {
@@ -17012,7 +17060,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17012
17060
  rowSpan: mergeRowSpan != null ? mergeRowSpan : data.rowSpan,
17013
17061
  children: content,
17014
17062
  },
17015
- key,
17063
+ key
17016
17064
  );
17017
17065
  });
17018
17066
  if (hasMergedCells) return cells;
@@ -17023,11 +17071,11 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17023
17071
  style: data.style,
17024
17072
  children: cells,
17025
17073
  },
17026
- key,
17074
+ key
17027
17075
  );
17028
17076
  }),
17029
17077
  },
17030
- key,
17078
+ key
17031
17079
  );
17032
17080
  };
17033
17081
  if (!standalone) return wrap(record.vdom);
@@ -17042,7 +17090,6 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17042
17090
  contentFactory: function contentFactory(x) {
17043
17091
  return wrap({
17044
17092
  content: Array.isArray(x.children) ? x.children : x.children != null ? [x.children] : [],
17045
- data: {},
17046
17093
  });
17047
17094
  },
17048
17095
  params: _extends({}, mod, {
@@ -17053,7 +17100,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17053
17100
  cellEdit: index == cursor && cursorCellIndex != null && cellEdit,
17054
17101
  }),
17055
17102
  },
17056
- key,
17103
+ key
17057
17104
  );
17058
17105
  };
17059
17106
  };
@@ -17128,7 +17175,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17128
17175
  ],
17129
17176
  },
17130
17177
  },
17131
- start + i,
17178
+ start + i
17132
17179
  );
17133
17180
  } else {
17134
17181
  var record = instance.records
@@ -17152,8 +17199,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17152
17199
  record.group,
17153
17200
  record.key + "-caption",
17154
17201
  record.store,
17155
- false,
17156
- ),
17202
+ false
17203
+ )
17157
17204
  );
17158
17205
  if (hasFixedColumns)
17159
17206
  fixedChildren.push(
@@ -17165,8 +17212,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17165
17212
  record.group,
17166
17213
  record.key + "-caption",
17167
17214
  record.store,
17168
- true,
17169
- ),
17215
+ true
17216
+ )
17170
17217
  );
17171
17218
  }
17172
17219
  } else if (record.type == "group-footer") {
@@ -17182,8 +17229,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17182
17229
  record.key + "-footer",
17183
17230
  record.store,
17184
17231
  false,
17185
- false,
17186
- ),
17232
+ false
17233
+ )
17187
17234
  );
17188
17235
  if (hasFixedColumns)
17189
17236
  fixedChildren.push(
@@ -17196,8 +17243,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17196
17243
  record.key + "-footer",
17197
17244
  record.store,
17198
17245
  false,
17199
- true,
17200
- ),
17246
+ true
17247
+ )
17201
17248
  );
17202
17249
  }
17203
17250
  }
@@ -17276,7 +17323,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17276
17323
  }),
17277
17324
  }),
17278
17325
  },
17279
- "dropzone",
17326
+ "dropzone"
17280
17327
  );
17281
17328
  var dataRecordClass = CSS.element(baseClass, "data");
17282
17329
  var isDataRecord = widget.buffered
@@ -17290,13 +17337,13 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17290
17337
  ? void 0
17291
17338
  : _item$props["class"]) == dataRecordClass
17292
17339
  );
17293
- }
17340
+ }
17294
17341
  : function (item) {
17295
17342
  var _item$props2;
17296
17343
  return item == null || (_item$props2 = item.props) == null || (_item$props2 = _item$props2.record) == null
17297
17344
  ? void 0
17298
17345
  : _item$props2.type;
17299
- };
17346
+ };
17300
17347
  var _index = 0;
17301
17348
  while (_index < children.length && !isDataRecord(children[_index])) _index++;
17302
17349
  var count = 0;
@@ -17329,7 +17376,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17329
17376
  }),
17330
17377
  }),
17331
17378
  },
17332
- "empty",
17379
+ "empty"
17333
17380
  ),
17334
17381
  ];
17335
17382
  } else if (widget.fixedFooter && (widget.buffered || !instance.fixedFooterIsGroupFooter)) {
@@ -17360,8 +17407,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17360
17407
  }),
17361
17408
  }),
17362
17409
  },
17363
- "fixedscroller",
17364
- ),
17410
+ "fixedscroller"
17411
+ )
17365
17412
  );
17366
17413
  }
17367
17414
  content.push(
@@ -17386,8 +17433,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17386
17433
  }),
17387
17434
  }),
17388
17435
  },
17389
- "scroller",
17390
- ),
17436
+ "scroller"
17437
+ )
17391
17438
  );
17392
17439
  if (this.props.fixedHeader)
17393
17440
  content.push(
@@ -17405,8 +17452,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17405
17452
  children: this.props.fixedHeader,
17406
17453
  }),
17407
17454
  },
17408
- "fh",
17409
- ),
17455
+ "fh"
17456
+ )
17410
17457
  );
17411
17458
  if (this.props.fixedColumnsFixedHeader)
17412
17459
  fixedColumnsContent.push(
@@ -17424,8 +17471,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17424
17471
  children: this.props.fixedColumnsFixedHeader,
17425
17472
  }),
17426
17473
  },
17427
- "fcfh",
17428
- ),
17474
+ "fcfh"
17475
+ )
17429
17476
  );
17430
17477
  if (shouldRenderFixedFooter) {
17431
17478
  content.push(
@@ -17440,8 +17487,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17440
17487
  children: fixedFooter,
17441
17488
  }),
17442
17489
  },
17443
- "ff",
17444
- ),
17490
+ "ff"
17491
+ )
17445
17492
  );
17446
17493
  if (hasFixedColumns)
17447
17494
  fixedColumnsContent.push(
@@ -17456,8 +17503,8 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17456
17503
  children: fixedColumnsFixedFooter,
17457
17504
  }),
17458
17505
  },
17459
- "fcff",
17460
- ),
17506
+ "fcff"
17507
+ )
17461
17508
  );
17462
17509
  }
17463
17510
  var columnInsertionMarker = null;
@@ -17540,7 +17587,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17540
17587
  filterParams: data.filterParams,
17541
17588
  state: _this8.prevFetchRecordsState,
17542
17589
  },
17543
- instance,
17590
+ instance
17544
17591
  );
17545
17592
  promises.push(Promise.resolve(result));
17546
17593
  }
@@ -17558,7 +17605,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17558
17605
  } else {
17559
17606
  if (!Array.isArray(page.records))
17560
17607
  throw new Error(
17561
- "onFetchRecords should return an array of records or an object with results inside records property.",
17608
+ "onFetchRecords should return an array of records or an object with results inside records property."
17562
17609
  );
17563
17610
  totalRecordCount = page.totalRecordCount;
17564
17611
  lastPage = page.lastPage;
@@ -17643,7 +17690,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17643
17690
  },
17644
17691
  function () {
17645
17692
  _this9.pending = false;
17646
- },
17693
+ }
17647
17694
  );
17648
17695
  }
17649
17696
  }
@@ -17656,7 +17703,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17656
17703
  return props.shouldUpdate !== false || state !== this.state;
17657
17704
  };
17658
17705
  _proto2.componentDidMount = function componentDidMount() {
17659
- var _this10 = this;
17706
+ var _this0 = this;
17660
17707
  this.componentDidUpdate();
17661
17708
  var instance = this.props.instance;
17662
17709
  var widget = instance.widget;
@@ -17664,10 +17711,10 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
17664
17711
  //update fixed header/footer on resize
17665
17712
  this.offResize = ResizeManager.trackElement(this.dom.scroller, function () {
17666
17713
  requestAnimationFrame(function () {
17667
- var _this10$dom$scroller;
17714
+ var _this0$dom$scroller;
17668
17715
  //ignore changes if the element is not visible on the page
17669
- if (!((_this10$dom$scroller = _this10.dom.scroller) != null && _this10$dom$scroller.offsetWidth)) return;
17670
- _this10.componentDidUpdate();
17716
+ if (!((_this0$dom$scroller = _this0.dom.scroller) != null && _this0$dom$scroller.offsetWidth)) return;
17717
+ _this0.componentDidUpdate();
17671
17718
  instance.setState({
17672
17719
  dimensionsVersion: instance.state.dimensionsVersion + 1,
17673
17720
  lockedColWidth: {},
@@ -18164,6 +18211,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18164
18211
  instance.buffer.totalRecordCount = 0;
18165
18212
  instance.buffer.page = 1;
18166
18213
  this.prevFetchRecordsState = null;
18214
+ this.loading = false;
18167
18215
  }
18168
18216
  }
18169
18217
  if (widget.scrollSelectionIntoView && !widget.buffered) {
@@ -18181,7 +18229,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18181
18229
  }
18182
18230
  };
18183
18231
  _proto2.moveCursor = function moveCursor(index, _temp) {
18184
- var _this11 = this;
18232
+ var _this1 = this;
18185
18233
  var _ref6 = _temp === void 0 ? {} : _temp,
18186
18234
  focused = _ref6.focused;
18187
18235
  _ref6.hover;
@@ -18220,72 +18268,72 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18220
18268
  }
18221
18269
  batchUpdates(function () {
18222
18270
  if (select) {
18223
- var start = selectRange && _this11.state.selectionStart >= 0 ? _this11.state.selectionStart : index;
18271
+ var start = selectRange && _this1.state.selectionStart >= 0 ? _this1.state.selectionStart : index;
18224
18272
  if (start < 0) start = index;
18225
- _this11.selectRange(start, index, selectOptions);
18273
+ _this1.selectRange(start, index, selectOptions);
18226
18274
  if (!selectRange) newState.selectionStart = index;
18227
18275
  }
18228
18276
  if (Object.keys(newState).length > 0) {
18229
- var prevState = _this11.state;
18277
+ var prevState = _this1.state;
18230
18278
  var wasCellEditing = prevState.focused && prevState.cellEdit;
18231
- var futureState = _extends({}, _this11.state, newState);
18279
+ var futureState = _extends({}, _this1.state, newState);
18232
18280
  if (!futureState.cellEdit && wasCellEditing) {
18233
18281
  // If cell editing is in progress, moving the cursor may cause that the cell editor to unmount before
18234
18282
  // the blur event which may cause data loss for components which do not have reactOn=change set, e.g. NumberField.
18235
18283
  unfocusElement(null, false);
18236
- var record = _this11.getRecordAt(prevState.cursor);
18237
- if ((!_this11.cellEditorValid || cancelEdit) && _this11.cellEditUndoData)
18238
- record.store.set(widget.recordName, _this11.cellEditUndoData);
18284
+ var record = _this1.getRecordAt(prevState.cursor);
18285
+ if ((!_this1.cellEditorValid || cancelEdit) && _this1.cellEditUndoData)
18286
+ record.store.set(widget.recordName, _this1.cellEditUndoData);
18239
18287
  else {
18240
18288
  var newData = record.store.get(widget.recordName); //record.data might be stale at this point
18241
- if (widget.onCellEdited && newData != _this11.cellEditUndoData) {
18242
- _this11.props.instance.invoke(
18289
+ if (widget.onCellEdited && newData != _this1.cellEditUndoData) {
18290
+ _this1.props.instance.invoke(
18243
18291
  "onCellEdited",
18244
18292
  {
18245
18293
  column: visibleColumns[prevState.cursorCellIndex],
18246
18294
  newData: newData,
18247
- oldData: _this11.cellEditUndoData,
18295
+ oldData: _this1.cellEditUndoData,
18248
18296
  field: visibleColumns[prevState.cursorCellIndex].field,
18249
18297
  },
18250
- record,
18298
+ record
18251
18299
  );
18252
- _this11.cellEditUndoData = newData;
18300
+ _this1.cellEditUndoData = newData;
18253
18301
  }
18254
18302
  }
18255
18303
  }
18256
18304
  if (futureState.cellEdit && !wasCellEditing) {
18257
- var _record = _this11.getRecordAt(futureState.cursor);
18305
+ var _record = _this1.getRecordAt(futureState.cursor);
18258
18306
  var cellEditUndoData = _record.data;
18259
18307
  if (
18260
18308
  widget.onBeforeCellEdit &&
18261
- _this11.props.instance.invoke(
18309
+ _this1.props.instance.invoke(
18262
18310
  "onBeforeCellEdit",
18263
18311
  {
18264
18312
  column: visibleColumns[futureState.cursorCellIndex],
18265
18313
  data: cellEditUndoData,
18266
18314
  field: visibleColumns[futureState.cursorCellIndex].field,
18267
18315
  },
18268
- _record,
18316
+ _record
18269
18317
  ) === false
18270
18318
  )
18271
18319
  return;
18272
- _this11.cellEditUndoData = cellEditUndoData;
18320
+ _this1.cellEditUndoData = cellEditUndoData;
18273
18321
  }
18274
- _this11.setState(newState, function () {
18275
- if (_this11.state.focused && !_this11.state.cellEdit && wasCellEditing) FocusManager.focus(_this11.dom.el);
18322
+ _this1.setState(newState, function () {
18323
+ if (_this1.state.focused && !_this1.state.cellEdit && wasCellEditing) FocusManager.focus(_this1.dom.el);
18276
18324
  if (scrollIntoView) {
18277
- var _record2 = _this11.getRecordAt(index);
18278
- var item = _record2 && _this11.dom.table.querySelector('tbody[data-record-key="' + _record2.key + '"]');
18325
+ var _record2 = _this1.getRecordAt(index);
18326
+ var item = _record2 && _this1.dom.table.querySelector('tbody[data-record-key="' + _record2.key + '"]');
18279
18327
  var hscroll = false;
18280
18328
  if (item) {
18281
18329
  if (widget.cellEditable)
18282
- if (_this11.state.cursorCellIndex >= _this11.props.instance.fixedColumnCount) {
18330
+ if (_this1.state.cursorCellIndex >= _this1.props.instance.fixedColumnCount) {
18283
18331
  hscroll = true;
18284
18332
  item =
18285
- item.firstChild.children[_this11.state.cursorCellIndex - _this11.props.instance.fixedColumnCount];
18333
+ item.firstChild.children[_this1.state.cursorCellIndex - _this1.props.instance.fixedColumnCount];
18286
18334
  } else {
18287
- var fixedItem = _this11.dom.fixedTable.querySelector('tbody[data-record-key="' + _record2.key + '"]');
18288
- var cell = fixedItem && fixedItem.firstChild.children[_this11.state.cursorCellIndex];
18335
+ var fixedItem = _this1.dom.fixedTable.querySelector('tbody[data-record-key="' + _record2.key + '"]');
18336
+ var cell = fixedItem && fixedItem.firstChild.children[_this1.state.cursorCellIndex];
18289
18337
  if (cell) scrollElementIntoView(cell, false, true, 10);
18290
18338
  }
18291
18339
  scrollElementIntoView(item, true, hscroll, widget.cellEditable ? 10 : 0);
@@ -18318,7 +18366,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18318
18366
  });
18319
18367
  };
18320
18368
  _proto2.onFocus = function onFocus() {
18321
- var _this12 = this;
18369
+ var _this10 = this;
18322
18370
  FocusManager.nudge();
18323
18371
 
18324
18372
  //focus moved within the grid
@@ -18333,13 +18381,13 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18333
18381
 
18334
18382
  //the cursor will be set if focus in originating from a mouse event
18335
18383
  setTimeout(function () {
18336
- _this12.showCursor(true);
18384
+ _this10.showCursor(true);
18337
18385
  }, 0);
18338
18386
  if (!widget.focused) {
18339
18387
  if (this.dom.el) {
18340
18388
  //if an inner element is focused first (autoFocus), this.dom.el might be undefined
18341
18389
  oneFocusOut(this, this.dom.el, function () {
18342
- _this12.moveCursor(-1, {
18390
+ _this10.moveCursor(-1, {
18343
18391
  focused: false,
18344
18392
  });
18345
18393
  });
@@ -18461,7 +18509,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18461
18509
  if (widget.cellEditable) {
18462
18510
  e.stopPropagation();
18463
18511
  e.preventDefault();
18464
- var direction = e.shiftKey ? -1 : +1;
18512
+ var direction = e.shiftKey ? -1 : 1;
18465
18513
  var cursor = this.state.cursor;
18466
18514
  var cellIndex = (this.state.cursorCellIndex + direction) % instance.row.line1.columns.length;
18467
18515
  if (cellIndex == -1) {
@@ -18550,7 +18598,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18550
18598
  }
18551
18599
  };
18552
18600
  _proto2.beginDragDrop = function beginDragDrop(e, record) {
18553
- var _this13 = this;
18601
+ var _this11 = this;
18554
18602
  var _this$props9 = this.props,
18555
18603
  instance = _this$props9.instance,
18556
18604
  data = _this$props9.data;
@@ -18568,7 +18616,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18568
18616
  var row = (mappedRecord.row = instance.getDetachedChild(
18569
18617
  instance.row,
18570
18618
  "DD:" + mappedRecord.key,
18571
- mappedRecord.store,
18619
+ mappedRecord.store
18572
18620
  ));
18573
18621
  row.selected = true;
18574
18622
  selected.push(mappedRecord);
@@ -18625,10 +18673,10 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
18625
18673
  },
18626
18674
  },
18627
18675
  function () {
18628
- _this13.setState({
18676
+ _this11.setState({
18629
18677
  dragged: false,
18630
18678
  });
18631
- },
18679
+ }
18632
18680
  );
18633
18681
  this.setState({
18634
18682
  dragged: record,
@@ -18696,7 +18744,7 @@ var GridColumnHeaderLine = /*#__PURE__*/ (function (_PureContainer) {
18696
18744
  {
18697
18745
  showHeader: undefined,
18698
18746
  },
18699
- ]),
18747
+ ])
18700
18748
  );
18701
18749
  };
18702
18750
  _proto3.init = function init() {
@@ -18716,7 +18764,7 @@ var GridColumnHeaderLine = /*#__PURE__*/ (function (_PureContainer) {
18716
18764
  style: data.style,
18717
18765
  children: this.renderChildren(context, instance),
18718
18766
  },
18719
- key,
18767
+ key
18720
18768
  );
18721
18769
  };
18722
18770
  return GridColumnHeaderLine;
@@ -18742,7 +18790,7 @@ var GridColumnHeader = /*#__PURE__*/ (function (_Widget) {
18742
18790
  defaultWidth: undefined,
18743
18791
  fixed: undefined,
18744
18792
  },
18745
- ]),
18793
+ ])
18746
18794
  );
18747
18795
  };
18748
18796
  _proto4.init = function init() {
@@ -18837,7 +18885,7 @@ var GridColumnHeaderCell = /*#__PURE__*/ (function (_PureContainer2) {
18837
18885
  fixed: undefined,
18838
18886
  draggable: undefined,
18839
18887
  },
18840
- ]),
18888
+ ])
18841
18889
  );
18842
18890
  };
18843
18891
  _proto5.initComponents = function initComponents() {
@@ -18848,7 +18896,7 @@ var GridColumnHeaderCell = /*#__PURE__*/ (function (_PureContainer2) {
18848
18896
  {
18849
18897
  tool: this.tool && Widget.create(this.tool),
18850
18898
  },
18851
- ]),
18899
+ ])
18852
18900
  );
18853
18901
  };
18854
18902
  _proto5.render = function render(context, instance, key) {
@@ -19027,7 +19075,7 @@ var TreeNode = /*#__PURE__*/ (function (_Container) {
19027
19075
  folderIcon: undefined,
19028
19076
  hideArrow: undefined,
19029
19077
  },
19030
- ].concat(Array.prototype.slice.call(arguments)),
19078
+ ].concat(Array.prototype.slice.call(arguments))
19031
19079
  );
19032
19080
  };
19033
19081
  _proto.prepareData = function prepareData(context, instance) {
@@ -19088,7 +19136,7 @@ var TreeNode = /*#__PURE__*/ (function (_Container) {
19088
19136
  }),
19089
19137
  ],
19090
19138
  },
19091
- key,
19139
+ key
19092
19140
  );
19093
19141
  };
19094
19142
  _proto.toggle = function toggle(e, instance) {
@@ -19126,7 +19174,7 @@ var Pagination = /*#__PURE__*/ (function (_Widget) {
19126
19174
  length: undefined,
19127
19175
  pageCount: undefined,
19128
19176
  },
19129
- ].concat(Array.prototype.slice.call(arguments)),
19177
+ ].concat(Array.prototype.slice.call(arguments))
19130
19178
  );
19131
19179
  };
19132
19180
  _proto.render = function render(context, instance, key) {
@@ -19171,8 +19219,8 @@ var Pagination = /*#__PURE__*/ (function (_Widget) {
19171
19219
  },
19172
19220
  children: p < minPage ? prevPageIcon : p > maxPage ? nextPageIcon : p,
19173
19221
  },
19174
- p < minPage ? "-1" : p > maxPage ? "-2" : p,
19175
- ),
19222
+ p < minPage ? "-1" : p > maxPage ? "-2" : p
19223
+ )
19176
19224
  );
19177
19225
  };
19178
19226
  for (var p = minPage - 1; p <= maxPage + 1; p++) {
@@ -19189,7 +19237,7 @@ var Pagination = /*#__PURE__*/ (function (_Widget) {
19189
19237
  },
19190
19238
  children: pageBtns,
19191
19239
  },
19192
- key,
19240
+ key
19193
19241
  );
19194
19242
  };
19195
19243
  _proto.onKeyDown = function onKeyDown(e, instance) {
@@ -19251,7 +19299,7 @@ var DragSource = /*#__PURE__*/ (function (_Container) {
19251
19299
  structured: true,
19252
19300
  },
19253
19301
  },
19254
- ]),
19302
+ ])
19255
19303
  );
19256
19304
  };
19257
19305
  _proto.explore = function explore(context, instance) {
@@ -19269,7 +19317,7 @@ var DragSource = /*#__PURE__*/ (function (_Container) {
19269
19317
  handled: this.handled || instance.dragHandles.length > 0,
19270
19318
  children: this.renderChildren(context, instance),
19271
19319
  },
19272
- key,
19320
+ key
19273
19321
  );
19274
19322
  };
19275
19323
  return DragSource;
@@ -19339,8 +19387,8 @@ var DragSourceComponent = /*#__PURE__*/ (function (_VDOM$Component) {
19339
19387
  eventHandlers,
19340
19388
  {
19341
19389
  children: children,
19342
- },
19343
- ),
19390
+ }
19391
+ )
19344
19392
  );
19345
19393
  };
19346
19394
  _proto2.onMouseDown = function onMouseDown(e) {
@@ -19387,7 +19435,7 @@ var DragSourceComponent = /*#__PURE__*/ (function (_VDOM$Component) {
19387
19435
  dragged: false,
19388
19436
  });
19389
19437
  if (widget.onDragEnd) instance.invoke("onDragEnd", e, instance);
19390
- },
19438
+ }
19391
19439
  );
19392
19440
  this.setState({
19393
19441
  dragged: true,
@@ -19421,7 +19469,7 @@ var DragHandle = /*#__PURE__*/ (function (_Container) {
19421
19469
  onMouseUp: ddHandle,
19422
19470
  children: this.renderChildren(context, instance),
19423
19471
  },
19424
- key,
19472
+ key
19425
19473
  );
19426
19474
  };
19427
19475
  return DragHandle;
@@ -19474,7 +19522,7 @@ var DropZone = /*#__PURE__*/ (function (_Container) {
19474
19522
  structured: true,
19475
19523
  },
19476
19524
  },
19477
- ]),
19525
+ ])
19478
19526
  );
19479
19527
  };
19480
19528
  _proto.render = function render(context, instance, key) {
@@ -19484,7 +19532,7 @@ var DropZone = /*#__PURE__*/ (function (_Container) {
19484
19532
  instance: instance,
19485
19533
  children: this.renderChildren(context, instance),
19486
19534
  },
19487
- key,
19535
+ key
19488
19536
  );
19489
19537
  };
19490
19538
  return DropZone;