cx 24.0.3 → 24.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts.js +61 -63
- package/dist/data.js +50 -70
- package/dist/manifest.js +719 -713
- package/dist/svg.js +70 -71
- package/dist/ui.js +104 -112
- package/dist/util.js +94 -13
- package/dist/widgets.js +273 -257
- package/package.json +1 -1
- package/src/charts/ColorMap.js +4 -6
- package/src/charts/axis/Axis.d.ts +96 -96
- package/src/charts/axis/Axis.js +252 -252
- package/src/charts/axis/TimeAxis.js +7 -6
- package/src/data/Expression.js +212 -212
- package/src/data/Expression.spec.js +174 -174
- package/src/data/StringTemplate.spec.js +105 -105
- package/src/ui/Controller.d.ts +182 -182
- package/src/ui/FocusManager.js +171 -171
- package/src/ui/Format.js +88 -87
- package/src/ui/Instance.d.ts +72 -72
- package/src/ui/keyboardShortcuts.js +4 -5
- package/src/ui/selection/KeySelection.d.ts +1 -1
- package/src/ui/selection/PropertySelection.d.ts +1 -1
- package/src/ui/selection/PropertySelection.js +2 -4
- package/src/ui/selection/Selection.d.ts +1 -1
- package/src/util/Format.js +73 -86
- package/src/util/date/index.d.ts +10 -9
- package/src/util/date/index.js +10 -9
- package/src/util/date/parseDateInvariant.d.ts +3 -0
- package/src/util/date/parseDateInvariant.js +20 -0
- package/src/widgets/form/Calendar.js +27 -26
- package/src/widgets/form/ColorField.js +14 -9
- package/src/widgets/form/ColorPicker.scss +275 -275
- package/src/widgets/form/ColorPicker.variables.scss +22 -22
- package/src/widgets/form/DateTimeField.js +18 -11
- package/src/widgets/form/DateTimePicker.js +9 -8
- package/src/widgets/form/Label.js +88 -88
- package/src/widgets/form/LookupField.d.ts +8 -9
- package/src/widgets/form/MonthField.js +17 -13
- package/src/widgets/form/MonthPicker.js +17 -16
- package/src/widgets/form/NumberField.js +8 -4
- package/src/widgets/form/TextArea.js +10 -6
- package/src/widgets/form/TextField.js +11 -9
- package/src/widgets/form/UploadButton.d.ts +34 -34
- package/src/widgets/form/index.js +1 -2
- package/src/widgets/grid/Grid.d.ts +11 -8
- package/src/widgets/grid/Grid.js +3277 -3277
package/dist/widgets.js
CHANGED
|
@@ -62,10 +62,10 @@ export {
|
|
|
62
62
|
import {
|
|
63
63
|
isTouchEvent,
|
|
64
64
|
debug,
|
|
65
|
-
isUndefined,
|
|
66
65
|
isString,
|
|
67
66
|
isDefined,
|
|
68
67
|
isArray,
|
|
68
|
+
isUndefined,
|
|
69
69
|
isFunction,
|
|
70
70
|
isNumber,
|
|
71
71
|
isComponentFactory,
|
|
@@ -107,6 +107,7 @@ import {
|
|
|
107
107
|
monthStart,
|
|
108
108
|
zeroTime,
|
|
109
109
|
sameDate,
|
|
110
|
+
parseDateInvariant,
|
|
110
111
|
dateDiff,
|
|
111
112
|
upperBoundCheck,
|
|
112
113
|
lowerBoundCheck,
|
|
@@ -141,52 +142,41 @@ import { HtmlElement as HtmlElement$1 } from "cx/widgets";
|
|
|
141
142
|
import { parseStyle as parseStyle$1 } from "cx/src/util/parseStyle";
|
|
142
143
|
|
|
143
144
|
function _extends() {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
var
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
target[key] = source[key];
|
|
152
|
-
}
|
|
145
|
+
return (
|
|
146
|
+
(_extends = Object.assign
|
|
147
|
+
? Object.assign.bind()
|
|
148
|
+
: function (n) {
|
|
149
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
150
|
+
var t = arguments[e];
|
|
151
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
153
152
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
function _inheritsLoose(subClass, superClass) {
|
|
160
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
161
|
-
subClass.prototype.constructor = subClass;
|
|
162
|
-
_setPrototypeOf(subClass, superClass);
|
|
153
|
+
return n;
|
|
154
|
+
}),
|
|
155
|
+
_extends.apply(null, arguments)
|
|
156
|
+
);
|
|
163
157
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
166
|
-
? Object.setPrototypeOf.bind()
|
|
167
|
-
: function _setPrototypeOf(o, p) {
|
|
168
|
-
o.__proto__ = p;
|
|
169
|
-
return o;
|
|
170
|
-
};
|
|
171
|
-
return _setPrototypeOf(o, p);
|
|
158
|
+
function _inheritsLoose(t, o) {
|
|
159
|
+
(t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o);
|
|
172
160
|
}
|
|
173
|
-
function _objectWithoutPropertiesLoose(
|
|
174
|
-
if (
|
|
175
|
-
var
|
|
176
|
-
var
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
return target;
|
|
161
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
162
|
+
if (null == r) return {};
|
|
163
|
+
var t = {};
|
|
164
|
+
for (var n in r)
|
|
165
|
+
if ({}.hasOwnProperty.call(r, n)) {
|
|
166
|
+
if (e.includes(n)) continue;
|
|
167
|
+
t[n] = r[n];
|
|
168
|
+
}
|
|
169
|
+
return t;
|
|
184
170
|
}
|
|
185
|
-
function
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
171
|
+
function _setPrototypeOf(t, e) {
|
|
172
|
+
return (
|
|
173
|
+
(_setPrototypeOf = Object.setPrototypeOf
|
|
174
|
+
? Object.setPrototypeOf.bind()
|
|
175
|
+
: function (t, e) {
|
|
176
|
+
return (t.__proto__ = e), t;
|
|
177
|
+
}),
|
|
178
|
+
_setPrototypeOf(t, e)
|
|
179
|
+
);
|
|
190
180
|
}
|
|
191
181
|
|
|
192
182
|
var impl$1 = false;
|
|
@@ -228,14 +218,14 @@ var urlAttributes = {
|
|
|
228
218
|
"iframe.src": true,
|
|
229
219
|
};
|
|
230
220
|
var HtmlElement = /*#__PURE__*/ (function (_Container) {
|
|
231
|
-
_inheritsLoose(HtmlElement, _Container);
|
|
232
221
|
function HtmlElement(config) {
|
|
233
222
|
var _this;
|
|
234
223
|
_this = _Container.call(this, config) || this;
|
|
235
224
|
if (isUndefined(_this.jsxAttributes) && config)
|
|
236
|
-
_this.jsxAttributes = Object.keys(config).filter(_this.isValidHtmlAttribute.bind(
|
|
225
|
+
_this.jsxAttributes = Object.keys(config).filter(_this.isValidHtmlAttribute.bind(_this));
|
|
237
226
|
return _this;
|
|
238
227
|
}
|
|
228
|
+
_inheritsLoose(HtmlElement, _Container);
|
|
239
229
|
var _proto = HtmlElement.prototype;
|
|
240
230
|
_proto.declareData = function declareData() {
|
|
241
231
|
var _this2 = this,
|
|
@@ -401,7 +391,6 @@ var HtmlElement = /*#__PURE__*/ (function (_Container) {
|
|
|
401
391
|
HtmlElement.prototype.tag = "div";
|
|
402
392
|
HtmlElement.prototype.styled = true;
|
|
403
393
|
var ContainerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
404
|
-
_inheritsLoose(ContainerComponent, _VDOM$Component);
|
|
405
394
|
function ContainerComponent(props) {
|
|
406
395
|
var _this3;
|
|
407
396
|
_this3 = _VDOM$Component.call(this, props) || this;
|
|
@@ -414,6 +403,7 @@ var ContainerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
414
403
|
};
|
|
415
404
|
return _this3;
|
|
416
405
|
}
|
|
406
|
+
_inheritsLoose(ContainerComponent, _VDOM$Component);
|
|
417
407
|
var _proto2 = ContainerComponent.prototype;
|
|
418
408
|
_proto2.render = function render() {
|
|
419
409
|
var _this$props = this.props,
|
|
@@ -962,10 +952,10 @@ registerIcon(
|
|
|
962
952
|
);
|
|
963
953
|
|
|
964
954
|
var Icon = /*#__PURE__*/ (function (_Widget) {
|
|
965
|
-
_inheritsLoose(Icon, _Widget);
|
|
966
955
|
function Icon() {
|
|
967
956
|
return _Widget.apply(this, arguments) || this;
|
|
968
957
|
}
|
|
958
|
+
_inheritsLoose(Icon, _Widget);
|
|
969
959
|
var _proto = Icon.prototype;
|
|
970
960
|
_proto.declareData = function declareData() {
|
|
971
961
|
var _Widget$prototype$dec;
|
|
@@ -1014,10 +1004,10 @@ Icon.prototype.styled = true;
|
|
|
1014
1004
|
Widget.alias("icon", Icon);
|
|
1015
1005
|
|
|
1016
1006
|
var Button = /*#__PURE__*/ (function (_HtmlElement) {
|
|
1017
|
-
_inheritsLoose(Button, _HtmlElement);
|
|
1018
1007
|
function Button() {
|
|
1019
1008
|
return _HtmlElement.apply(this, arguments) || this;
|
|
1020
1009
|
}
|
|
1010
|
+
_inheritsLoose(Button, _HtmlElement);
|
|
1021
1011
|
var _proto = Button.prototype;
|
|
1022
1012
|
_proto.declareData = function declareData() {
|
|
1023
1013
|
var _HtmlElement$prototyp;
|
|
@@ -1123,10 +1113,10 @@ Button.prototype.submit = false;
|
|
|
1123
1113
|
Widget.alias("button", Button);
|
|
1124
1114
|
|
|
1125
1115
|
var DocumentTitle = /*#__PURE__*/ (function (_Widget) {
|
|
1126
|
-
_inheritsLoose(DocumentTitle, _Widget);
|
|
1127
1116
|
function DocumentTitle() {
|
|
1128
1117
|
return _Widget.apply(this, arguments) || this;
|
|
1129
1118
|
}
|
|
1119
|
+
_inheritsLoose(DocumentTitle, _Widget);
|
|
1130
1120
|
var _proto = DocumentTitle.prototype;
|
|
1131
1121
|
_proto.init = function init() {
|
|
1132
1122
|
if (this.value) this.text = this.value;
|
|
@@ -1185,10 +1175,10 @@ DocumentTitle.prototype.separator = "";
|
|
|
1185
1175
|
Widget.alias("document-title", DocumentTitle);
|
|
1186
1176
|
|
|
1187
1177
|
var List = /*#__PURE__*/ (function (_Widget) {
|
|
1188
|
-
_inheritsLoose(List, _Widget);
|
|
1189
1178
|
function List() {
|
|
1190
1179
|
return _Widget.apply(this, arguments) || this;
|
|
1191
1180
|
}
|
|
1181
|
+
_inheritsLoose(List, _Widget);
|
|
1192
1182
|
var _proto = List.prototype;
|
|
1193
1183
|
_proto.init = function init() {
|
|
1194
1184
|
if (this.recordAlias) this.recordName = this.recordAlias;
|
|
@@ -1366,7 +1356,6 @@ List.prototype.selectMode = false;
|
|
|
1366
1356
|
List.prototype.selectOnTab = false;
|
|
1367
1357
|
Widget.alias("list", List);
|
|
1368
1358
|
var ListComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
1369
|
-
_inheritsLoose(ListComponent, _VDOM$Component);
|
|
1370
1359
|
function ListComponent(props) {
|
|
1371
1360
|
var _this4;
|
|
1372
1361
|
_this4 = _VDOM$Component.call(this, props) || this;
|
|
@@ -1376,11 +1365,12 @@ var ListComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
1376
1365
|
cursor: focused && props.selectable ? 0 : -1,
|
|
1377
1366
|
focused: focused,
|
|
1378
1367
|
};
|
|
1379
|
-
_this4.handleItemMouseDown = _this4.handleItemMouseDown.bind(
|
|
1380
|
-
_this4.handleItemDoubleClick = _this4.handleItemDoubleClick.bind(
|
|
1381
|
-
_this4.handleItemClick = _this4.handleItemClick.bind(
|
|
1368
|
+
_this4.handleItemMouseDown = _this4.handleItemMouseDown.bind(_this4);
|
|
1369
|
+
_this4.handleItemDoubleClick = _this4.handleItemDoubleClick.bind(_this4);
|
|
1370
|
+
_this4.handleItemClick = _this4.handleItemClick.bind(_this4);
|
|
1382
1371
|
return _this4;
|
|
1383
1372
|
}
|
|
1373
|
+
_inheritsLoose(ListComponent, _VDOM$Component);
|
|
1384
1374
|
var _proto2 = ListComponent.prototype;
|
|
1385
1375
|
_proto2.shouldComponentUpdate = function shouldComponentUpdate(props, state) {
|
|
1386
1376
|
return props.instance.shouldUpdate || state != this.state;
|
|
@@ -1731,10 +1721,10 @@ var ListComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
1731
1721
|
return ListComponent;
|
|
1732
1722
|
})(VDOM.Component);
|
|
1733
1723
|
var ListItem = /*#__PURE__*/ (function (_Container) {
|
|
1734
|
-
_inheritsLoose(ListItem, _Container);
|
|
1735
1724
|
function ListItem() {
|
|
1736
1725
|
return _Container.apply(this, arguments) || this;
|
|
1737
1726
|
}
|
|
1727
|
+
_inheritsLoose(ListItem, _Container);
|
|
1738
1728
|
var _proto3 = ListItem.prototype;
|
|
1739
1729
|
_proto3.declareData = function declareData() {
|
|
1740
1730
|
var _Container$prototype$;
|
|
@@ -1763,10 +1753,10 @@ function isItemDisabled(item) {
|
|
|
1763
1753
|
}
|
|
1764
1754
|
|
|
1765
1755
|
var Sandbox = /*#__PURE__*/ (function (_PureContainer) {
|
|
1766
|
-
_inheritsLoose(Sandbox, _PureContainer);
|
|
1767
1756
|
function Sandbox() {
|
|
1768
1757
|
return _PureContainer.apply(this, arguments) || this;
|
|
1769
1758
|
}
|
|
1759
|
+
_inheritsLoose(Sandbox, _PureContainer);
|
|
1770
1760
|
var _proto = Sandbox.prototype;
|
|
1771
1761
|
_proto.init = function init() {
|
|
1772
1762
|
if (this.recordAlias) this.recordName = this.recordAlias;
|
|
@@ -1824,10 +1814,10 @@ Sandbox.prototype.immutable = false;
|
|
|
1824
1814
|
Widget.alias("sandbox", Sandbox);
|
|
1825
1815
|
|
|
1826
1816
|
var CxCredit = /*#__PURE__*/ (function (_HtmlElement) {
|
|
1827
|
-
_inheritsLoose(CxCredit, _HtmlElement);
|
|
1828
1817
|
function CxCredit() {
|
|
1829
1818
|
return _HtmlElement.apply(this, arguments) || this;
|
|
1830
1819
|
}
|
|
1820
|
+
_inheritsLoose(CxCredit, _HtmlElement);
|
|
1831
1821
|
var _proto = CxCredit.prototype;
|
|
1832
1822
|
_proto.init = function init() {
|
|
1833
1823
|
this.tooltip = {
|
|
@@ -1866,10 +1856,10 @@ CxCredit.prototype.tag = "div";
|
|
|
1866
1856
|
Widget.alias("cx-credit", CxCredit);
|
|
1867
1857
|
|
|
1868
1858
|
var Heading = /*#__PURE__*/ (function (_HtmlElement) {
|
|
1869
|
-
_inheritsLoose(Heading, _HtmlElement);
|
|
1870
1859
|
function Heading() {
|
|
1871
1860
|
return _HtmlElement.apply(this, arguments) || this;
|
|
1872
1861
|
}
|
|
1862
|
+
_inheritsLoose(Heading, _HtmlElement);
|
|
1873
1863
|
var _proto = Heading.prototype;
|
|
1874
1864
|
_proto.init = function init() {
|
|
1875
1865
|
this.tag = "h" + this.level;
|
|
@@ -1899,10 +1889,10 @@ Heading.prototype.level = 3;
|
|
|
1899
1889
|
Heading.prototype.baseClass = "heading";
|
|
1900
1890
|
|
|
1901
1891
|
var Section = /*#__PURE__*/ (function (_Container) {
|
|
1902
|
-
_inheritsLoose(Section, _Container);
|
|
1903
1892
|
function Section() {
|
|
1904
1893
|
return _Container.apply(this, arguments) || this;
|
|
1905
1894
|
}
|
|
1895
|
+
_inheritsLoose(Section, _Container);
|
|
1906
1896
|
var _proto = Section.prototype;
|
|
1907
1897
|
_proto.init = function init() {
|
|
1908
1898
|
if (isString(this.headerStyle)) this.headerStyle = parseStyle(this.headerStyle);
|
|
@@ -2027,10 +2017,10 @@ Section.prototype.baseClass = "section";
|
|
|
2027
2017
|
Section.prototype.hLevel = 3;
|
|
2028
2018
|
|
|
2029
2019
|
var FlexBox = /*#__PURE__*/ (function (_Container) {
|
|
2030
|
-
_inheritsLoose(FlexBox, _Container);
|
|
2031
2020
|
function FlexBox() {
|
|
2032
2021
|
return _Container.apply(this, arguments) || this;
|
|
2033
2022
|
}
|
|
2023
|
+
_inheritsLoose(FlexBox, _Container);
|
|
2034
2024
|
var _proto = FlexBox.prototype;
|
|
2035
2025
|
_proto.init = function init() {
|
|
2036
2026
|
if (this.padding) this.pad = this.padding;
|
|
@@ -2115,26 +2105,26 @@ FlexBox.prototype.justify = false;
|
|
|
2115
2105
|
FlexBox.prototype.target = "any";
|
|
2116
2106
|
FlexBox.prototype.nested = false;
|
|
2117
2107
|
var FlexRow = /*#__PURE__*/ (function (_FlexBox) {
|
|
2118
|
-
_inheritsLoose(FlexRow, _FlexBox);
|
|
2119
2108
|
function FlexRow() {
|
|
2120
2109
|
return _FlexBox.apply(this, arguments) || this;
|
|
2121
2110
|
}
|
|
2111
|
+
_inheritsLoose(FlexRow, _FlexBox);
|
|
2122
2112
|
return FlexRow;
|
|
2123
2113
|
})(FlexBox);
|
|
2124
2114
|
var FlexCol = /*#__PURE__*/ (function (_FlexBox2) {
|
|
2125
|
-
_inheritsLoose(FlexCol, _FlexBox2);
|
|
2126
2115
|
function FlexCol() {
|
|
2127
2116
|
return _FlexBox2.apply(this, arguments) || this;
|
|
2128
2117
|
}
|
|
2118
|
+
_inheritsLoose(FlexCol, _FlexBox2);
|
|
2129
2119
|
return FlexCol;
|
|
2130
2120
|
})(FlexBox);
|
|
2131
2121
|
FlexCol.prototype.direction = "column";
|
|
2132
2122
|
|
|
2133
2123
|
var ProgressBar = /*#__PURE__*/ (function (_Widget) {
|
|
2134
|
-
_inheritsLoose(ProgressBar, _Widget);
|
|
2135
2124
|
function ProgressBar() {
|
|
2136
2125
|
return _Widget.apply(this, arguments) || this;
|
|
2137
2126
|
}
|
|
2127
|
+
_inheritsLoose(ProgressBar, _Widget);
|
|
2138
2128
|
var _proto = ProgressBar.prototype;
|
|
2139
2129
|
_proto.declareData = function declareData() {
|
|
2140
2130
|
var _Widget$prototype$dec;
|
|
@@ -2267,16 +2257,16 @@ function captureMouseOrTouch2(e, _ref2) {
|
|
|
2267
2257
|
e.preventDefault();
|
|
2268
2258
|
});
|
|
2269
2259
|
};
|
|
2270
|
-
var
|
|
2260
|
+
var _end = function end(e) {
|
|
2271
2261
|
batchUpdates(function () {
|
|
2272
2262
|
el.removeEventListener("touchmove", move);
|
|
2273
|
-
el.removeEventListener("touchend",
|
|
2263
|
+
el.removeEventListener("touchend", _end);
|
|
2274
2264
|
if (onMouseUp) onMouseUp(e);
|
|
2275
2265
|
e.preventDefault();
|
|
2276
2266
|
});
|
|
2277
2267
|
};
|
|
2278
2268
|
el.addEventListener("touchmove", move);
|
|
2279
|
-
el.addEventListener("touchend",
|
|
2269
|
+
el.addEventListener("touchend", _end);
|
|
2280
2270
|
e.stopPropagation();
|
|
2281
2271
|
} else
|
|
2282
2272
|
captureMouse2(e, {
|
|
@@ -2313,10 +2303,10 @@ function getCursorPos(e) {
|
|
|
2313
2303
|
}
|
|
2314
2304
|
|
|
2315
2305
|
var Resizer = /*#__PURE__*/ (function (_Widget) {
|
|
2316
|
-
_inheritsLoose(Resizer, _Widget);
|
|
2317
2306
|
function Resizer() {
|
|
2318
2307
|
return _Widget.apply(this, arguments) || this;
|
|
2319
2308
|
}
|
|
2309
|
+
_inheritsLoose(Resizer, _Widget);
|
|
2320
2310
|
var _proto = Resizer.prototype;
|
|
2321
2311
|
_proto.declareData = function declareData() {
|
|
2322
2312
|
var _Widget$prototype$dec;
|
|
@@ -2356,7 +2346,6 @@ Resizer.prototype.defaultSize = null;
|
|
|
2356
2346
|
Resizer.prototype.minSize = 0;
|
|
2357
2347
|
Resizer.prototype.maxSize = 1e6;
|
|
2358
2348
|
var ResizerCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
2359
|
-
_inheritsLoose(ResizerCmp, _VDOM$Component);
|
|
2360
2349
|
function ResizerCmp(props) {
|
|
2361
2350
|
var _this;
|
|
2362
2351
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -2366,6 +2355,7 @@ var ResizerCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
2366
2355
|
};
|
|
2367
2356
|
return _this;
|
|
2368
2357
|
}
|
|
2358
|
+
_inheritsLoose(ResizerCmp, _VDOM$Component);
|
|
2369
2359
|
var _proto2 = ResizerCmp.prototype;
|
|
2370
2360
|
_proto2.shouldComponentUpdate = function shouldComponentUpdate(props, state) {
|
|
2371
2361
|
return state != this.state;
|
|
@@ -2482,10 +2472,10 @@ var ResizerCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
2482
2472
|
})(VDOM.Component);
|
|
2483
2473
|
|
|
2484
2474
|
var HighlightedSearchText = /*#__PURE__*/ (function (_Widget) {
|
|
2485
|
-
_inheritsLoose(HighlightedSearchText, _Widget);
|
|
2486
2475
|
function HighlightedSearchText() {
|
|
2487
2476
|
return _Widget.apply(this, arguments) || this;
|
|
2488
2477
|
}
|
|
2478
|
+
_inheritsLoose(HighlightedSearchText, _Widget);
|
|
2489
2479
|
var _proto = HighlightedSearchText.prototype;
|
|
2490
2480
|
_proto.declareData = function declareData() {
|
|
2491
2481
|
var _Widget$prototype$dec;
|
|
@@ -2717,7 +2707,7 @@ function notifyDragMove(e, captureData) {
|
|
|
2717
2707
|
}
|
|
2718
2708
|
if (scrollY || scrollX) {
|
|
2719
2709
|
if (!scrollTimer) {
|
|
2720
|
-
var
|
|
2710
|
+
var _cb = function cb() {
|
|
2721
2711
|
if (scrollY) {
|
|
2722
2712
|
var current = vscrollParent.scrollTop;
|
|
2723
2713
|
var next = Math.min(
|
|
@@ -2734,9 +2724,9 @@ function notifyDragMove(e, captureData) {
|
|
|
2734
2724
|
); //60 FPS
|
|
2735
2725
|
hscrollParent.scrollLeft = _next;
|
|
2736
2726
|
}
|
|
2737
|
-
scrollTimer = requestAnimationFrame(
|
|
2727
|
+
scrollTimer = requestAnimationFrame(_cb);
|
|
2738
2728
|
};
|
|
2739
|
-
scrollTimer = requestAnimationFrame(
|
|
2729
|
+
scrollTimer = requestAnimationFrame(_cb);
|
|
2740
2730
|
}
|
|
2741
2731
|
} else {
|
|
2742
2732
|
clearScrollTimer();
|
|
@@ -2813,10 +2803,10 @@ var DragDropContext = VDOM.createContext
|
|
|
2813
2803
|
return children;
|
|
2814
2804
|
};
|
|
2815
2805
|
var ContextWrap = /*#__PURE__*/ (function (_Container) {
|
|
2816
|
-
_inheritsLoose(ContextWrap, _Container);
|
|
2817
2806
|
function ContextWrap() {
|
|
2818
2807
|
return _Container.apply(this, arguments) || this;
|
|
2819
2808
|
}
|
|
2809
|
+
_inheritsLoose(ContextWrap, _Container);
|
|
2820
2810
|
var _proto = ContextWrap.prototype;
|
|
2821
2811
|
_proto.render = function render(context, instance, key) {
|
|
2822
2812
|
return /*#__PURE__*/ jsx(
|
|
@@ -2832,10 +2822,10 @@ var ContextWrap = /*#__PURE__*/ (function (_Container) {
|
|
|
2832
2822
|
})(Container);
|
|
2833
2823
|
|
|
2834
2824
|
var Overlay = /*#__PURE__*/ (function (_Container) {
|
|
2835
|
-
_inheritsLoose(Overlay, _Container);
|
|
2836
2825
|
function Overlay() {
|
|
2837
2826
|
return _Container.apply(this, arguments) || this;
|
|
2838
2827
|
}
|
|
2828
|
+
_inheritsLoose(Overlay, _Container);
|
|
2839
2829
|
var _proto = Overlay.prototype;
|
|
2840
2830
|
_proto.init = function init() {
|
|
2841
2831
|
if (this.center) this.centerX = this.centerY = this.center;
|
|
@@ -3032,10 +3022,10 @@ Widget.alias("overlay", Overlay);
|
|
|
3032
3022
|
|
|
3033
3023
|
//TODO: all el related logic should be moved here
|
|
3034
3024
|
var OverlayContent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
3035
|
-
_inheritsLoose(OverlayContent, _VDOM$Component);
|
|
3036
3025
|
function OverlayContent() {
|
|
3037
3026
|
return _VDOM$Component.apply(this, arguments) || this;
|
|
3038
3027
|
}
|
|
3028
|
+
_inheritsLoose(OverlayContent, _VDOM$Component);
|
|
3039
3029
|
var _proto2 = OverlayContent.prototype;
|
|
3040
3030
|
_proto2.render = function render() {
|
|
3041
3031
|
return /*#__PURE__*/ jsx("div", {
|
|
@@ -3065,7 +3055,6 @@ var OverlayContent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
3065
3055
|
return OverlayContent;
|
|
3066
3056
|
})(VDOM.Component); //TODO: This should be called OverlayPortal
|
|
3067
3057
|
var OverlayComponent = /*#__PURE__*/ (function (_VDOM$Component2) {
|
|
3068
|
-
_inheritsLoose(OverlayComponent, _VDOM$Component2);
|
|
3069
3058
|
function OverlayComponent(props) {
|
|
3070
3059
|
var _this3;
|
|
3071
3060
|
_this3 = _VDOM$Component2.call(this, props) || this;
|
|
@@ -3073,6 +3062,7 @@ var OverlayComponent = /*#__PURE__*/ (function (_VDOM$Component2) {
|
|
|
3073
3062
|
_this3.customStyle = {};
|
|
3074
3063
|
return _this3;
|
|
3075
3064
|
}
|
|
3065
|
+
_inheritsLoose(OverlayComponent, _VDOM$Component2);
|
|
3076
3066
|
var _proto3 = OverlayComponent.prototype;
|
|
3077
3067
|
_proto3.render = function render() {
|
|
3078
3068
|
var _this$props = this.props,
|
|
@@ -3497,10 +3487,10 @@ var OverlayComponent = /*#__PURE__*/ (function (_VDOM$Component2) {
|
|
|
3497
3487
|
})(VDOM.Component);
|
|
3498
3488
|
|
|
3499
3489
|
var Dropdown = /*#__PURE__*/ (function (_Overlay) {
|
|
3500
|
-
_inheritsLoose(Dropdown, _Overlay);
|
|
3501
3490
|
function Dropdown() {
|
|
3502
3491
|
return _Overlay.apply(this, arguments) || this;
|
|
3503
3492
|
}
|
|
3493
|
+
_inheritsLoose(Dropdown, _Overlay);
|
|
3504
3494
|
var _proto = Dropdown.prototype;
|
|
3505
3495
|
_proto.init = function init() {
|
|
3506
3496
|
if (this.trackMouse) {
|
|
@@ -4062,10 +4052,10 @@ function getViewportRect(padding) {
|
|
|
4062
4052
|
}
|
|
4063
4053
|
|
|
4064
4054
|
var Tooltip = /*#__PURE__*/ (function (_Dropdown) {
|
|
4065
|
-
_inheritsLoose(Tooltip, _Dropdown);
|
|
4066
4055
|
function Tooltip() {
|
|
4067
4056
|
return _Dropdown.apply(this, arguments) || this;
|
|
4068
4057
|
}
|
|
4058
|
+
_inheritsLoose(Tooltip, _Dropdown);
|
|
4069
4059
|
var _proto = Tooltip.prototype;
|
|
4070
4060
|
_proto.declareData = function declareData() {
|
|
4071
4061
|
var _Dropdown$prototype$d;
|
|
@@ -4331,10 +4321,10 @@ function enableTooltips() {
|
|
|
4331
4321
|
}
|
|
4332
4322
|
|
|
4333
4323
|
var Window = /*#__PURE__*/ (function (_Overlay) {
|
|
4334
|
-
_inheritsLoose(Window, _Overlay);
|
|
4335
4324
|
function Window() {
|
|
4336
4325
|
return _Overlay.apply(this, arguments) || this;
|
|
4337
4326
|
}
|
|
4327
|
+
_inheritsLoose(Window, _Overlay);
|
|
4338
4328
|
var _proto = Window.prototype;
|
|
4339
4329
|
_proto.init = function init() {
|
|
4340
4330
|
if (isDefined(this.closeable)) this.closable = this.closeable;
|
|
@@ -4448,10 +4438,10 @@ Window.prototype.focusable = true;
|
|
|
4448
4438
|
Widget.alias("window", Window);
|
|
4449
4439
|
Localization.registerPrototype("cx/widgets/Window", Window);
|
|
4450
4440
|
var WindowComponent = /*#__PURE__*/ (function (_OverlayComponent) {
|
|
4451
|
-
_inheritsLoose(WindowComponent, _OverlayComponent);
|
|
4452
4441
|
function WindowComponent() {
|
|
4453
4442
|
return _OverlayComponent.apply(this, arguments) || this;
|
|
4454
4443
|
}
|
|
4444
|
+
_inheritsLoose(WindowComponent, _OverlayComponent);
|
|
4455
4445
|
var _proto2 = WindowComponent.prototype;
|
|
4456
4446
|
_proto2.renderOverlayBody = function renderOverlayBody() {
|
|
4457
4447
|
var _this = this;
|
|
@@ -4704,10 +4694,10 @@ function enableMsgBoxAlerts() {
|
|
|
4704
4694
|
}
|
|
4705
4695
|
|
|
4706
4696
|
var Toast = /*#__PURE__*/ (function (_Overlay) {
|
|
4707
|
-
_inheritsLoose(Toast, _Overlay);
|
|
4708
4697
|
function Toast() {
|
|
4709
4698
|
return _Overlay.apply(this, arguments) || this;
|
|
4710
4699
|
}
|
|
4700
|
+
_inheritsLoose(Toast, _Overlay);
|
|
4711
4701
|
var _proto = Toast.prototype;
|
|
4712
4702
|
_proto.init = function init() {
|
|
4713
4703
|
if (this.message)
|
|
@@ -4797,10 +4787,10 @@ Toast.prototype.placement = "top";
|
|
|
4797
4787
|
Toast.prototype.destroyDelay = 300;
|
|
4798
4788
|
|
|
4799
4789
|
var ContextMenu = /*#__PURE__*/ (function (_Dropdown) {
|
|
4800
|
-
_inheritsLoose(ContextMenu, _Dropdown);
|
|
4801
4790
|
function ContextMenu() {
|
|
4802
4791
|
return _Dropdown.apply(this, arguments) || this;
|
|
4803
4792
|
}
|
|
4793
|
+
_inheritsLoose(ContextMenu, _Dropdown);
|
|
4804
4794
|
return ContextMenu;
|
|
4805
4795
|
})(Dropdown);
|
|
4806
4796
|
ContextMenu.prototype.trackMouse = true;
|
|
@@ -4829,10 +4819,10 @@ var openContextMenu = function openContextMenu(e, content, storeOrInstance, opti
|
|
|
4829
4819
|
};
|
|
4830
4820
|
|
|
4831
4821
|
var FlyweightTooltipTracker = /*#__PURE__*/ (function (_Widget) {
|
|
4832
|
-
_inheritsLoose(FlyweightTooltipTracker, _Widget);
|
|
4833
4822
|
function FlyweightTooltipTracker() {
|
|
4834
4823
|
return _Widget.apply(this, arguments) || this;
|
|
4835
4824
|
}
|
|
4825
|
+
_inheritsLoose(FlyweightTooltipTracker, _Widget);
|
|
4836
4826
|
var _proto = FlyweightTooltipTracker.prototype;
|
|
4837
4827
|
_proto.initInstance = function initInstance(context, instance) {
|
|
4838
4828
|
var _this = this;
|
|
@@ -4868,10 +4858,10 @@ var FlyweightTooltipTracker = /*#__PURE__*/ (function (_Widget) {
|
|
|
4868
4858
|
})(Widget);
|
|
4869
4859
|
|
|
4870
4860
|
var Route = /*#__PURE__*/ (function (_PureContainer) {
|
|
4871
|
-
_inheritsLoose(Route, _PureContainer);
|
|
4872
4861
|
function Route() {
|
|
4873
4862
|
return _PureContainer.apply(this, arguments) || this;
|
|
4874
4863
|
}
|
|
4864
|
+
_inheritsLoose(Route, _PureContainer);
|
|
4875
4865
|
var _proto = Route.prototype;
|
|
4876
4866
|
_proto.init = function init() {
|
|
4877
4867
|
if (this.path) this.route = this.path;
|
|
@@ -4969,10 +4959,10 @@ Route.prototype.prefix = false;
|
|
|
4969
4959
|
Widget.alias("route", Route);
|
|
4970
4960
|
|
|
4971
4961
|
var RedirectRoute = /*#__PURE__*/ (function (_Route) {
|
|
4972
|
-
_inheritsLoose(RedirectRoute, _Route);
|
|
4973
4962
|
function RedirectRoute() {
|
|
4974
4963
|
return _Route.apply(this, arguments) || this;
|
|
4975
4964
|
}
|
|
4965
|
+
_inheritsLoose(RedirectRoute, _Route);
|
|
4976
4966
|
var _proto = RedirectRoute.prototype;
|
|
4977
4967
|
_proto.checkVisible = function checkVisible(context, instance, data) {
|
|
4978
4968
|
if (!data.visible) return false;
|
|
@@ -5003,10 +4993,10 @@ var RedirectRoute = /*#__PURE__*/ (function (_Route) {
|
|
|
5003
4993
|
Widget.alias("redirect-route", RedirectRoute);
|
|
5004
4994
|
|
|
5005
4995
|
var Tab = /*#__PURE__*/ (function (_HtmlElement) {
|
|
5006
|
-
_inheritsLoose(Tab, _HtmlElement);
|
|
5007
4996
|
function Tab() {
|
|
5008
4997
|
return _HtmlElement.apply(this, arguments) || this;
|
|
5009
4998
|
}
|
|
4999
|
+
_inheritsLoose(Tab, _HtmlElement);
|
|
5010
5000
|
var _proto = Tab.prototype;
|
|
5011
5001
|
_proto.declareData = function declareData() {
|
|
5012
5002
|
var _HtmlElement$prototyp;
|
|
@@ -5080,10 +5070,10 @@ Tab.prototype["default"] = false;
|
|
|
5080
5070
|
Widget.alias("tab", Tab);
|
|
5081
5071
|
|
|
5082
5072
|
var LinkButton = /*#__PURE__*/ (function (_Button) {
|
|
5083
|
-
_inheritsLoose(LinkButton, _Button);
|
|
5084
5073
|
function LinkButton() {
|
|
5085
5074
|
return _Button.apply(this, arguments) || this;
|
|
5086
5075
|
}
|
|
5076
|
+
_inheritsLoose(LinkButton, _Button);
|
|
5087
5077
|
var _proto = LinkButton.prototype;
|
|
5088
5078
|
_proto.init = function init() {
|
|
5089
5079
|
this.activeStyle = parseStyle(this.activeStyle);
|
|
@@ -5183,20 +5173,20 @@ LinkButton.prototype.tag = "a";
|
|
|
5183
5173
|
Widget.alias("link-button", LinkButton);
|
|
5184
5174
|
|
|
5185
5175
|
var Link = /*#__PURE__*/ (function (_LinkButton) {
|
|
5186
|
-
_inheritsLoose(Link, _LinkButton);
|
|
5187
5176
|
function Link() {
|
|
5188
5177
|
return _LinkButton.apply(this, arguments) || this;
|
|
5189
5178
|
}
|
|
5179
|
+
_inheritsLoose(Link, _LinkButton);
|
|
5190
5180
|
return Link;
|
|
5191
5181
|
})(LinkButton);
|
|
5192
5182
|
Link.prototype.baseClass = "link";
|
|
5193
5183
|
Widget.alias("link", Link);
|
|
5194
5184
|
|
|
5195
5185
|
var MenuItem = /*#__PURE__*/ (function (_HtmlElement) {
|
|
5196
|
-
_inheritsLoose(MenuItem, _HtmlElement);
|
|
5197
5186
|
function MenuItem() {
|
|
5198
5187
|
return _HtmlElement.apply(this, arguments) || this;
|
|
5199
5188
|
}
|
|
5189
|
+
_inheritsLoose(MenuItem, _HtmlElement);
|
|
5200
5190
|
var _proto = MenuItem.prototype;
|
|
5201
5191
|
_proto.init = function init() {
|
|
5202
5192
|
if (this.hideCursor) this.showCursor = false;
|
|
@@ -5283,7 +5273,6 @@ MenuItem.prototype.openOnFocus = true;
|
|
|
5283
5273
|
Widget.alias("submenu", MenuItem);
|
|
5284
5274
|
Localization.registerPrototype("cx/widgets/MenuItem", MenuItem);
|
|
5285
5275
|
var MenuItemComponent$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
5286
|
-
_inheritsLoose(MenuItemComponent, _VDOM$Component);
|
|
5287
5276
|
function MenuItemComponent(props) {
|
|
5288
5277
|
var _this;
|
|
5289
5278
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -5292,6 +5281,7 @@ var MenuItemComponent$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
5292
5281
|
};
|
|
5293
5282
|
return _this;
|
|
5294
5283
|
}
|
|
5284
|
+
_inheritsLoose(MenuItemComponent, _VDOM$Component);
|
|
5295
5285
|
var _proto2 = MenuItemComponent.prototype;
|
|
5296
5286
|
_proto2.getDefaultPlacementOrder = function getDefaultPlacementOrder(horizontal) {
|
|
5297
5287
|
return horizontal
|
|
@@ -5613,10 +5603,10 @@ var MenuItemComponent$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
5613
5603
|
})(VDOM.Component);
|
|
5614
5604
|
|
|
5615
5605
|
var MenuSpacer = /*#__PURE__*/ (function (_Widget) {
|
|
5616
|
-
_inheritsLoose(MenuSpacer, _Widget);
|
|
5617
5606
|
function MenuSpacer() {
|
|
5618
5607
|
return _Widget.apply(this, arguments) || this;
|
|
5619
5608
|
}
|
|
5609
|
+
_inheritsLoose(MenuSpacer, _Widget);
|
|
5620
5610
|
var _proto = MenuSpacer.prototype;
|
|
5621
5611
|
_proto.render = function render(context, instance, key) {
|
|
5622
5612
|
return {
|
|
@@ -5630,10 +5620,10 @@ var MenuSpacer = /*#__PURE__*/ (function (_Widget) {
|
|
|
5630
5620
|
MenuSpacer.prototype.isMenuSpacer = true;
|
|
5631
5621
|
|
|
5632
5622
|
var Menu = /*#__PURE__*/ (function (_HtmlElement) {
|
|
5633
|
-
_inheritsLoose(Menu, _HtmlElement);
|
|
5634
5623
|
function Menu() {
|
|
5635
5624
|
return _HtmlElement.apply(this, arguments) || this;
|
|
5636
5625
|
}
|
|
5626
|
+
_inheritsLoose(Menu, _HtmlElement);
|
|
5637
5627
|
var _proto = Menu.prototype;
|
|
5638
5628
|
_proto.init = function init() {
|
|
5639
5629
|
if (this.itemPadding === true) this.itemPadding = "medium";
|
|
@@ -5714,7 +5704,6 @@ Menu.prototype.overflowIcon = "drop-down";
|
|
|
5714
5704
|
Menu.Item = MenuItem;
|
|
5715
5705
|
Menu.Spacer = MenuSpacer;
|
|
5716
5706
|
var MenuComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
5717
|
-
_inheritsLoose(MenuComponent, _VDOM$Component);
|
|
5718
5707
|
function MenuComponent(props) {
|
|
5719
5708
|
var _this;
|
|
5720
5709
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -5727,6 +5716,7 @@ var MenuComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
5727
5716
|
};
|
|
5728
5717
|
return _this;
|
|
5729
5718
|
}
|
|
5719
|
+
_inheritsLoose(MenuComponent, _VDOM$Component);
|
|
5730
5720
|
var _proto2 = MenuComponent.prototype;
|
|
5731
5721
|
_proto2.render = function render() {
|
|
5732
5722
|
var _this2 = this;
|
|
@@ -5925,7 +5915,6 @@ Menu.prototype.baseClass = "menu";
|
|
|
5925
5915
|
Menu.prototype.tag = "ul";
|
|
5926
5916
|
Widget.alias("menu", Menu);
|
|
5927
5917
|
var MenuItemComponent = /*#__PURE__*/ (function (_VDOM$Component2) {
|
|
5928
|
-
_inheritsLoose(MenuItemComponent, _VDOM$Component2);
|
|
5929
5918
|
function MenuItemComponent(props) {
|
|
5930
5919
|
var _this5;
|
|
5931
5920
|
_this5 = _VDOM$Component2.call(this, props) || this;
|
|
@@ -5934,6 +5923,7 @@ var MenuItemComponent = /*#__PURE__*/ (function (_VDOM$Component2) {
|
|
|
5934
5923
|
};
|
|
5935
5924
|
return _this5;
|
|
5936
5925
|
}
|
|
5926
|
+
_inheritsLoose(MenuItemComponent, _VDOM$Component2);
|
|
5937
5927
|
var _proto3 = MenuItemComponent.prototype;
|
|
5938
5928
|
_proto3.render = function render() {
|
|
5939
5929
|
var _this6 = this;
|
|
@@ -6024,18 +6014,18 @@ var MenuItemComponent = /*#__PURE__*/ (function (_VDOM$Component2) {
|
|
|
6024
6014
|
})(VDOM.Component);
|
|
6025
6015
|
|
|
6026
6016
|
var Submenu = /*#__PURE__*/ (function (_MenuItem) {
|
|
6027
|
-
_inheritsLoose(Submenu, _MenuItem);
|
|
6028
6017
|
function Submenu() {
|
|
6029
6018
|
return _MenuItem.apply(this, arguments) || this;
|
|
6030
6019
|
}
|
|
6020
|
+
_inheritsLoose(Submenu, _MenuItem);
|
|
6031
6021
|
return Submenu;
|
|
6032
6022
|
})(MenuItem);
|
|
6033
6023
|
|
|
6034
6024
|
var Scroller = /*#__PURE__*/ (function (_Container) {
|
|
6035
|
-
_inheritsLoose(Scroller, _Container);
|
|
6036
6025
|
function Scroller() {
|
|
6037
6026
|
return _Container.apply(this, arguments) || this;
|
|
6038
6027
|
}
|
|
6028
|
+
_inheritsLoose(Scroller, _Container);
|
|
6039
6029
|
var _proto = Scroller.prototype;
|
|
6040
6030
|
_proto.init = function init() {
|
|
6041
6031
|
if (!this.vertical) this.horizontal = true; //default
|
|
@@ -6073,7 +6063,6 @@ var Scroller = /*#__PURE__*/ (function (_Container) {
|
|
|
6073
6063
|
Scroller.prototype.styled = true;
|
|
6074
6064
|
Scroller.prototype.baseClass = "scroller";
|
|
6075
6065
|
var HScrollerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
6076
|
-
_inheritsLoose(HScrollerComponent, _VDOM$Component);
|
|
6077
6066
|
function HScrollerComponent(props) {
|
|
6078
6067
|
var _this;
|
|
6079
6068
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -6097,6 +6086,7 @@ var HScrollerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
6097
6086
|
};
|
|
6098
6087
|
return _this;
|
|
6099
6088
|
}
|
|
6089
|
+
_inheritsLoose(HScrollerComponent, _VDOM$Component);
|
|
6100
6090
|
var _proto2 = HScrollerComponent.prototype;
|
|
6101
6091
|
_proto2.render = function render() {
|
|
6102
6092
|
var _this2 = this;
|
|
@@ -6249,27 +6239,27 @@ var HScrollerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
6249
6239
|
return HScrollerComponent;
|
|
6250
6240
|
})(VDOM.Component);
|
|
6251
6241
|
var HScroller = /*#__PURE__*/ (function (_Scroller) {
|
|
6252
|
-
_inheritsLoose(HScroller, _Scroller);
|
|
6253
6242
|
function HScroller() {
|
|
6254
6243
|
return _Scroller.apply(this, arguments) || this;
|
|
6255
6244
|
}
|
|
6245
|
+
_inheritsLoose(HScroller, _Scroller);
|
|
6256
6246
|
return HScroller;
|
|
6257
6247
|
})(Scroller);
|
|
6258
6248
|
HScroller.prototype.horizontal = true;
|
|
6259
6249
|
var VScroller = /*#__PURE__*/ (function (_Scroller2) {
|
|
6260
|
-
_inheritsLoose(VScroller, _Scroller2);
|
|
6261
6250
|
function VScroller() {
|
|
6262
6251
|
return _Scroller2.apply(this, arguments) || this;
|
|
6263
6252
|
}
|
|
6253
|
+
_inheritsLoose(VScroller, _Scroller2);
|
|
6264
6254
|
return VScroller;
|
|
6265
6255
|
})(Scroller);
|
|
6266
6256
|
VScroller.prototype.vertical = true;
|
|
6267
6257
|
|
|
6268
6258
|
var ValidationError = /*#__PURE__*/ (function (_Widget) {
|
|
6269
|
-
_inheritsLoose(ValidationError, _Widget);
|
|
6270
6259
|
function ValidationError() {
|
|
6271
6260
|
return _Widget.apply(this, arguments) || this;
|
|
6272
6261
|
}
|
|
6262
|
+
_inheritsLoose(ValidationError, _Widget);
|
|
6273
6263
|
var _proto = ValidationError.prototype;
|
|
6274
6264
|
_proto.checkVisible = function checkVisible(context, instance, data) {
|
|
6275
6265
|
if (
|
|
@@ -6316,10 +6306,10 @@ ValidationError.prototype.styled = true;
|
|
|
6316
6306
|
Widget.alias("validation-error", ValidationError);
|
|
6317
6307
|
|
|
6318
6308
|
var HelpText = /*#__PURE__*/ (function (_HtmlElement) {
|
|
6319
|
-
_inheritsLoose(HelpText, _HtmlElement);
|
|
6320
6309
|
function HelpText() {
|
|
6321
6310
|
return _HtmlElement.apply(this, arguments) || this;
|
|
6322
6311
|
}
|
|
6312
|
+
_inheritsLoose(HelpText, _HtmlElement);
|
|
6323
6313
|
return HelpText;
|
|
6324
6314
|
})(HtmlElement);
|
|
6325
6315
|
HelpText.prototype.tag = "span";
|
|
@@ -6327,10 +6317,10 @@ HelpText.prototype.baseClass = "helptext";
|
|
|
6327
6317
|
Widget.alias("help-text", HelpText);
|
|
6328
6318
|
|
|
6329
6319
|
var Label = /*#__PURE__*/ (function (_HtmlElement) {
|
|
6330
|
-
_inheritsLoose(Label, _HtmlElement);
|
|
6331
6320
|
function Label() {
|
|
6332
6321
|
return _HtmlElement.apply(this, arguments) || this;
|
|
6333
6322
|
}
|
|
6323
|
+
_inheritsLoose(Label, _HtmlElement);
|
|
6334
6324
|
var _proto = Label.prototype;
|
|
6335
6325
|
_proto.declareData = function declareData() {
|
|
6336
6326
|
var _HtmlElement$prototyp;
|
|
@@ -6411,10 +6401,10 @@ Label.prototype.tag = "label";
|
|
|
6411
6401
|
Label.prototype.asterisk = false;
|
|
6412
6402
|
|
|
6413
6403
|
var FieldIcon = /*#__PURE__*/ (function (_Widget) {
|
|
6414
|
-
_inheritsLoose(FieldIcon, _Widget);
|
|
6415
6404
|
function FieldIcon() {
|
|
6416
6405
|
return _Widget.apply(this, arguments) || this;
|
|
6417
6406
|
}
|
|
6407
|
+
_inheritsLoose(FieldIcon, _Widget);
|
|
6418
6408
|
var _proto = FieldIcon.prototype;
|
|
6419
6409
|
_proto.declareData = function declareData() {
|
|
6420
6410
|
var _Widget$prototype$dec;
|
|
@@ -6460,10 +6450,10 @@ var FieldIcon = /*#__PURE__*/ (function (_Widget) {
|
|
|
6460
6450
|
FieldIcon.prototype.styled = true;
|
|
6461
6451
|
|
|
6462
6452
|
var Field = /*#__PURE__*/ (function (_PureContainer) {
|
|
6463
|
-
_inheritsLoose(Field, _PureContainer);
|
|
6464
6453
|
function Field() {
|
|
6465
6454
|
return _PureContainer.apply(this, arguments) || this;
|
|
6466
6455
|
}
|
|
6456
|
+
_inheritsLoose(Field, _PureContainer);
|
|
6467
6457
|
var _proto = Field.prototype;
|
|
6468
6458
|
_proto.declareData = function declareData() {
|
|
6469
6459
|
var _PureContainer$protot;
|
|
@@ -6873,10 +6863,10 @@ function getFieldTooltip(instance) {
|
|
|
6873
6863
|
}
|
|
6874
6864
|
|
|
6875
6865
|
var TextField = /*#__PURE__*/ (function (_Field) {
|
|
6876
|
-
_inheritsLoose(TextField, _Field);
|
|
6877
6866
|
function TextField() {
|
|
6878
6867
|
return _Field.apply(this, arguments) || this;
|
|
6879
6868
|
}
|
|
6869
|
+
_inheritsLoose(TextField, _Field);
|
|
6880
6870
|
var _proto = TextField.prototype;
|
|
6881
6871
|
_proto.init = function init() {
|
|
6882
6872
|
if (typeof this.hideClear !== "undefined") this.showClear = !this.hideClear;
|
|
@@ -6945,7 +6935,6 @@ TextField.prototype.keyboardShortcut = false;
|
|
|
6945
6935
|
TextField.prototype.trim = false;
|
|
6946
6936
|
Localization.registerPrototype("cx/widgets/TextField", TextField);
|
|
6947
6937
|
var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
6948
|
-
_inheritsLoose(Input, _VDOM$Component);
|
|
6949
6938
|
function Input(props) {
|
|
6950
6939
|
var _this;
|
|
6951
6940
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -6954,6 +6943,7 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
6954
6943
|
};
|
|
6955
6944
|
return _this;
|
|
6956
6945
|
}
|
|
6946
|
+
_inheritsLoose(Input, _VDOM$Component);
|
|
6957
6947
|
var _proto2 = Input.prototype;
|
|
6958
6948
|
_proto2.render = function render() {
|
|
6959
6949
|
var _this2 = this;
|
|
@@ -6974,7 +6964,7 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
6974
6964
|
className: CSS.element(baseClass, "left-icon"),
|
|
6975
6965
|
onMouseDown: preventDefault,
|
|
6976
6966
|
onClick: function onClick(e) {
|
|
6977
|
-
return _this2.onChange(e, "enter");
|
|
6967
|
+
return _this2.onChange(e.target.value, "enter");
|
|
6978
6968
|
},
|
|
6979
6969
|
children: iconVDOM,
|
|
6980
6970
|
});
|
|
@@ -7038,10 +7028,10 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7038
7028
|
onMouseMove: this.onMouseMove.bind(this),
|
|
7039
7029
|
onMouseLeave: this.onMouseLeave.bind(this),
|
|
7040
7030
|
onInput: function onInput(e) {
|
|
7041
|
-
return _this2.onChange(e, "input");
|
|
7031
|
+
return _this2.onChange(e.target.value, "input");
|
|
7042
7032
|
},
|
|
7043
7033
|
onChange: function onChange(e) {
|
|
7044
|
-
return _this2.onChange(e, "change");
|
|
7034
|
+
return _this2.onChange(e.target.value, "change");
|
|
7045
7035
|
},
|
|
7046
7036
|
onKeyDown: this.onKeyDown.bind(this),
|
|
7047
7037
|
onFocus: this.onFocus.bind(this),
|
|
@@ -7080,7 +7070,7 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7080
7070
|
});
|
|
7081
7071
|
this.props.instance.set("focused", false);
|
|
7082
7072
|
}
|
|
7083
|
-
this.onChange(e, "blur");
|
|
7073
|
+
this.onChange(e.target.value, "blur");
|
|
7084
7074
|
};
|
|
7085
7075
|
_proto2.onClearClick = function onClearClick(e) {
|
|
7086
7076
|
this.props.instance.set("value", this.props.instance.widget.emptyValue, {
|
|
@@ -7101,6 +7091,7 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7101
7091
|
autoFocus(this.input, this);
|
|
7102
7092
|
};
|
|
7103
7093
|
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
7094
|
+
if (this.input == getActiveElement()) this.onChange(this.input.value, "blur");
|
|
7104
7095
|
tooltipParentWillUnmount$1(this.props.instance);
|
|
7105
7096
|
};
|
|
7106
7097
|
_proto2.onKeyDown = function onKeyDown(e) {
|
|
@@ -7108,7 +7099,7 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7108
7099
|
if (instance.widget.handleKeyDown(e, instance) === false) return;
|
|
7109
7100
|
switch (e.keyCode) {
|
|
7110
7101
|
case KeyCode.enter:
|
|
7111
|
-
this.onChange(e, "enter");
|
|
7102
|
+
this.onChange(e.target.value, "enter");
|
|
7112
7103
|
break;
|
|
7113
7104
|
case KeyCode.left:
|
|
7114
7105
|
case KeyCode.right:
|
|
@@ -7118,12 +7109,12 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7118
7109
|
};
|
|
7119
7110
|
_proto2.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
|
|
7120
7111
|
var data = props.data;
|
|
7121
|
-
//
|
|
7122
|
-
//and update may be caused by some other property, i.e. visited
|
|
7112
|
+
// The second check is required for debouncing, sometimes the value in the store lags after the input
|
|
7113
|
+
// and update may be caused by some other property, i.e. visited
|
|
7123
7114
|
if (data.value != this.input.value && data.value != this.props.data.value) this.input.value = data.value || "";
|
|
7124
7115
|
tooltipParentWillReceiveProps$1.apply(void 0, [this.input].concat(getFieldTooltip(props.instance)));
|
|
7125
7116
|
};
|
|
7126
|
-
_proto2.onChange = function onChange(
|
|
7117
|
+
_proto2.onChange = function onChange(textValue, change) {
|
|
7127
7118
|
var _this$props3 = this.props,
|
|
7128
7119
|
instance = _this$props3.instance,
|
|
7129
7120
|
data = _this$props3.data;
|
|
@@ -7135,7 +7126,7 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7135
7126
|
}
|
|
7136
7127
|
var widget = instance.widget;
|
|
7137
7128
|
if (widget.reactOn.indexOf(change) != -1) {
|
|
7138
|
-
var text = this.trimmed(
|
|
7129
|
+
var text = this.trimmed(textValue);
|
|
7139
7130
|
if (data.maxLength != null && text.length > data.maxLength) {
|
|
7140
7131
|
text = text.substring(0, data.maxLength);
|
|
7141
7132
|
this.input.value = text;
|
|
@@ -7184,10 +7175,10 @@ var SquareIcon = registerIcon(
|
|
|
7184
7175
|
);
|
|
7185
7176
|
|
|
7186
7177
|
var Checkbox = /*#__PURE__*/ (function (_Field) {
|
|
7187
|
-
_inheritsLoose(Checkbox, _Field);
|
|
7188
7178
|
function Checkbox() {
|
|
7189
7179
|
return _Field.apply(this, arguments) || this;
|
|
7190
7180
|
}
|
|
7181
|
+
_inheritsLoose(Checkbox, _Field);
|
|
7191
7182
|
var _proto = Checkbox.prototype;
|
|
7192
7183
|
_proto.init = function init() {
|
|
7193
7184
|
if (this.checked) this.value = this.checked;
|
|
@@ -7337,7 +7328,6 @@ Checkbox.prototype.indeterminate = false;
|
|
|
7337
7328
|
Checkbox.prototype.unfocusable = false;
|
|
7338
7329
|
Widget.alias("checkbox", Checkbox);
|
|
7339
7330
|
var CheckboxCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
7340
|
-
_inheritsLoose(CheckboxCmp, _VDOM$Component);
|
|
7341
7331
|
function CheckboxCmp(props) {
|
|
7342
7332
|
var _this3;
|
|
7343
7333
|
_this3 = _VDOM$Component.call(this, props) || this;
|
|
@@ -7346,6 +7336,7 @@ var CheckboxCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7346
7336
|
};
|
|
7347
7337
|
return _this3;
|
|
7348
7338
|
}
|
|
7339
|
+
_inheritsLoose(CheckboxCmp, _VDOM$Component);
|
|
7349
7340
|
var _proto2 = CheckboxCmp.prototype;
|
|
7350
7341
|
_proto2.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
|
|
7351
7342
|
this.setState({
|
|
@@ -7414,10 +7405,10 @@ var CheckboxCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7414
7405
|
})(VDOM.Component);
|
|
7415
7406
|
|
|
7416
7407
|
var Radio = /*#__PURE__*/ (function (_Field) {
|
|
7417
|
-
_inheritsLoose(Radio, _Field);
|
|
7418
7408
|
function Radio() {
|
|
7419
7409
|
return _Field.apply(this, arguments) || this;
|
|
7420
7410
|
}
|
|
7411
|
+
_inheritsLoose(Radio, _Field);
|
|
7421
7412
|
var _proto = Radio.prototype;
|
|
7422
7413
|
_proto.declareData = function declareData() {
|
|
7423
7414
|
var _Field$prototype$decl;
|
|
@@ -7565,7 +7556,6 @@ Radio.prototype["native"] = false;
|
|
|
7565
7556
|
Radio.prototype["default"] = false;
|
|
7566
7557
|
Widget.alias("radio", Radio);
|
|
7567
7558
|
var RadioCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
7568
|
-
_inheritsLoose(RadioCmp, _VDOM$Component);
|
|
7569
7559
|
function RadioCmp(props) {
|
|
7570
7560
|
var _this3;
|
|
7571
7561
|
_this3 = _VDOM$Component.call(this, props) || this;
|
|
@@ -7574,6 +7564,7 @@ var RadioCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7574
7564
|
};
|
|
7575
7565
|
return _this3;
|
|
7576
7566
|
}
|
|
7567
|
+
_inheritsLoose(RadioCmp, _VDOM$Component);
|
|
7577
7568
|
var _proto2 = RadioCmp.prototype;
|
|
7578
7569
|
_proto2.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
|
|
7579
7570
|
this.setState({
|
|
@@ -7626,10 +7617,10 @@ var RadioCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7626
7617
|
})(VDOM.Component);
|
|
7627
7618
|
|
|
7628
7619
|
var Select = /*#__PURE__*/ (function (_Field) {
|
|
7629
|
-
_inheritsLoose(Select, _Field);
|
|
7630
7620
|
function Select() {
|
|
7631
7621
|
return _Field.apply(this, arguments) || this;
|
|
7632
7622
|
}
|
|
7623
|
+
_inheritsLoose(Select, _Field);
|
|
7633
7624
|
var _proto = Select.prototype;
|
|
7634
7625
|
_proto.declareData = function declareData() {
|
|
7635
7626
|
var _Field$prototype$decl;
|
|
@@ -7699,7 +7690,6 @@ Select.prototype.icon = null;
|
|
|
7699
7690
|
Widget.alias("select", Select);
|
|
7700
7691
|
Localization.registerPrototype("cx/widgets/Select", Select);
|
|
7701
7692
|
var SelectComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
7702
|
-
_inheritsLoose(SelectComponent, _VDOM$Component);
|
|
7703
7693
|
function SelectComponent(props) {
|
|
7704
7694
|
var _this2;
|
|
7705
7695
|
_this2 = _VDOM$Component.call(this, props) || this;
|
|
@@ -7709,6 +7699,7 @@ var SelectComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7709
7699
|
};
|
|
7710
7700
|
return _this2;
|
|
7711
7701
|
}
|
|
7702
|
+
_inheritsLoose(SelectComponent, _VDOM$Component);
|
|
7712
7703
|
var _proto2 = SelectComponent.prototype;
|
|
7713
7704
|
_proto2.render = function render() {
|
|
7714
7705
|
var _this3 = this;
|
|
@@ -7874,10 +7865,10 @@ var SelectComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7874
7865
|
return SelectComponent;
|
|
7875
7866
|
})(VDOM.Component);
|
|
7876
7867
|
var Option = /*#__PURE__*/ (function (_HtmlElement) {
|
|
7877
|
-
_inheritsLoose(Option, _HtmlElement);
|
|
7878
7868
|
function Option() {
|
|
7879
7869
|
return _HtmlElement.apply(this, arguments) || this;
|
|
7880
7870
|
}
|
|
7871
|
+
_inheritsLoose(Option, _HtmlElement);
|
|
7881
7872
|
var _proto3 = Option.prototype;
|
|
7882
7873
|
_proto3.declareData = function declareData() {
|
|
7883
7874
|
var _HtmlElement$prototyp;
|
|
@@ -7943,10 +7934,10 @@ var ForwardIcon = registerIcon(
|
|
|
7943
7934
|
);
|
|
7944
7935
|
|
|
7945
7936
|
var Calendar = /*#__PURE__*/ (function (_Field) {
|
|
7946
|
-
_inheritsLoose(Calendar, _Field);
|
|
7947
7937
|
function Calendar() {
|
|
7948
7938
|
return _Field.apply(this, arguments) || this;
|
|
7949
7939
|
}
|
|
7940
|
+
_inheritsLoose(Calendar, _Field);
|
|
7950
7941
|
var _proto = Calendar.prototype;
|
|
7951
7942
|
_proto.declareData = function declareData() {
|
|
7952
7943
|
var _Field$prototype$decl;
|
|
@@ -7979,14 +7970,14 @@ var Calendar = /*#__PURE__*/ (function (_Field) {
|
|
|
7979
7970
|
disabled: data.disabled,
|
|
7980
7971
|
};
|
|
7981
7972
|
if (data.value) {
|
|
7982
|
-
var d =
|
|
7973
|
+
var d = parseDateInvariant(data.value);
|
|
7983
7974
|
if (!isNaN(d.getTime())) {
|
|
7984
7975
|
data.date = zeroTime(d);
|
|
7985
7976
|
}
|
|
7986
7977
|
}
|
|
7987
|
-
if (data.refDate) data.refDate = zeroTime(
|
|
7988
|
-
if (data.maxValue) data.maxValue = zeroTime(
|
|
7989
|
-
if (data.minValue) data.minValue = zeroTime(
|
|
7978
|
+
if (data.refDate) data.refDate = zeroTime(parseDateInvariant(data.refDate));
|
|
7979
|
+
if (data.maxValue) data.maxValue = zeroTime(parseDateInvariant(data.maxValue));
|
|
7980
|
+
if (data.minValue) data.minValue = zeroTime(parseDateInvariant(data.minValue));
|
|
7990
7981
|
_Field.prototype.prepareData.apply(this, arguments);
|
|
7991
7982
|
};
|
|
7992
7983
|
_proto.validate = function validate(context, instance) {
|
|
@@ -8011,7 +8002,7 @@ var Calendar = /*#__PURE__*/ (function (_Field) {
|
|
|
8011
8002
|
if (widget.disabledDaysOfWeek.includes(data.date.getDay())) data.error = this.disabledDaysOfWeekErrorText;
|
|
8012
8003
|
}
|
|
8013
8004
|
if (data.dayData) {
|
|
8014
|
-
var date =
|
|
8005
|
+
var date = parseDateInvariant(data.value);
|
|
8015
8006
|
var info = data.dayData[date.toDateString()];
|
|
8016
8007
|
if (info && info.disabled) data.error = this.disabledDaysOfWeekErrorText;
|
|
8017
8008
|
}
|
|
@@ -8039,7 +8030,7 @@ var Calendar = /*#__PURE__*/ (function (_Field) {
|
|
|
8039
8030
|
if (!validationCheck$1(date, data)) return;
|
|
8040
8031
|
if (this.onBeforeSelect && instance.invoke("onBeforeSelect", e, instance, date) === false) return;
|
|
8041
8032
|
if (widget.partial) {
|
|
8042
|
-
var mixed =
|
|
8033
|
+
var mixed = parseDateInvariant(data.value);
|
|
8043
8034
|
if (data.value && !isNaN(mixed)) {
|
|
8044
8035
|
mixed.setFullYear(date.getFullYear());
|
|
8045
8036
|
mixed.setMonth(date.getMonth());
|
|
@@ -8077,7 +8068,6 @@ var validationCheck$1 = function validationCheck(date, data, disabledDaysOfWeek)
|
|
|
8077
8068
|
return true;
|
|
8078
8069
|
};
|
|
8079
8070
|
var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
8080
|
-
_inheritsLoose(CalendarCmp, _VDOM$Component);
|
|
8081
8071
|
function CalendarCmp(props) {
|
|
8082
8072
|
var _this2;
|
|
8083
8073
|
_this2 = _VDOM$Component.call(this, props) || this;
|
|
@@ -8091,10 +8081,11 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
8091
8081
|
},
|
|
8092
8082
|
_this2.getPage(refDate),
|
|
8093
8083
|
);
|
|
8094
|
-
_this2.handleMouseMove = _this2.handleMouseMove.bind(
|
|
8095
|
-
_this2.handleMouseDown = _this2.handleMouseDown.bind(
|
|
8084
|
+
_this2.handleMouseMove = _this2.handleMouseMove.bind(_this2);
|
|
8085
|
+
_this2.handleMouseDown = _this2.handleMouseDown.bind(_this2);
|
|
8096
8086
|
return _this2;
|
|
8097
8087
|
}
|
|
8088
|
+
_inheritsLoose(CalendarCmp, _VDOM$Component);
|
|
8098
8089
|
var _proto2 = CalendarCmp.prototype;
|
|
8099
8090
|
_proto2.getPage = function getPage(refDate) {
|
|
8100
8091
|
refDate = monthStart(refDate); //make a copy
|
|
@@ -8483,10 +8474,10 @@ var readDate = function readDate(ds) {
|
|
|
8483
8474
|
Widget.alias("calendar", Calendar);
|
|
8484
8475
|
|
|
8485
8476
|
var LookupField = /*#__PURE__*/ (function (_Field) {
|
|
8486
|
-
_inheritsLoose(LookupField, _Field);
|
|
8487
8477
|
function LookupField() {
|
|
8488
8478
|
return _Field.apply(this, arguments) || this;
|
|
8489
8479
|
}
|
|
8480
|
+
_inheritsLoose(LookupField, _Field);
|
|
8490
8481
|
var _proto = LookupField.prototype;
|
|
8491
8482
|
_proto.declareData = function declareData() {
|
|
8492
8483
|
var _Field$prototype$decl;
|
|
@@ -8769,7 +8760,6 @@ function convertOption(bindings, data) {
|
|
|
8769
8760
|
return result.$value;
|
|
8770
8761
|
}
|
|
8771
8762
|
var SelectionDelegate = /*#__PURE__*/ (function (_Selection) {
|
|
8772
|
-
_inheritsLoose(SelectionDelegate, _Selection);
|
|
8773
8763
|
function SelectionDelegate(_ref) {
|
|
8774
8764
|
var _this4;
|
|
8775
8765
|
var delegate = _ref.delegate;
|
|
@@ -8777,6 +8767,7 @@ var SelectionDelegate = /*#__PURE__*/ (function (_Selection) {
|
|
|
8777
8767
|
_this4.delegate = delegate;
|
|
8778
8768
|
return _this4;
|
|
8779
8769
|
}
|
|
8770
|
+
_inheritsLoose(SelectionDelegate, _Selection);
|
|
8780
8771
|
var _proto2 = SelectionDelegate.prototype;
|
|
8781
8772
|
_proto2.getIsSelectedDelegate = function getIsSelectedDelegate(store) {
|
|
8782
8773
|
var _this5 = this;
|
|
@@ -8790,7 +8781,6 @@ var SelectionDelegate = /*#__PURE__*/ (function (_Selection) {
|
|
|
8790
8781
|
return SelectionDelegate;
|
|
8791
8782
|
})(Selection);
|
|
8792
8783
|
var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
8793
|
-
_inheritsLoose(LookupComponent, _VDOM$Component);
|
|
8794
8784
|
function LookupComponent(props) {
|
|
8795
8785
|
var _this6;
|
|
8796
8786
|
_this6 = _VDOM$Component.call(this, props) || this;
|
|
@@ -8810,6 +8800,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
8810
8800
|
});
|
|
8811
8801
|
return _this6;
|
|
8812
8802
|
}
|
|
8803
|
+
_inheritsLoose(LookupComponent, _VDOM$Component);
|
|
8813
8804
|
var _proto3 = LookupComponent.prototype;
|
|
8814
8805
|
_proto3.getOptionKey = function getOptionKey(data) {
|
|
8815
8806
|
return this.props.bindings
|
|
@@ -9753,10 +9744,10 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
9753
9744
|
|
|
9754
9745
|
enableCultureSensitiveFormatting();
|
|
9755
9746
|
var NumberField = /*#__PURE__*/ (function (_Field) {
|
|
9756
|
-
_inheritsLoose(NumberField, _Field);
|
|
9757
9747
|
function NumberField() {
|
|
9758
9748
|
return _Field.apply(this, arguments) || this;
|
|
9759
9749
|
}
|
|
9750
|
+
_inheritsLoose(NumberField, _Field);
|
|
9760
9751
|
var _proto = NumberField.prototype;
|
|
9761
9752
|
_proto.declareData = function declareData() {
|
|
9762
9753
|
var _Field$prototype$decl;
|
|
@@ -9867,7 +9858,6 @@ NumberField.prototype.alwaysShowClear = false;
|
|
|
9867
9858
|
Widget.alias("numberfield", NumberField);
|
|
9868
9859
|
Localization.registerPrototype("cx/widgets/NumberField", NumberField);
|
|
9869
9860
|
var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
9870
|
-
_inheritsLoose(Input, _VDOM$Component);
|
|
9871
9861
|
function Input(props) {
|
|
9872
9862
|
var _this;
|
|
9873
9863
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -9876,6 +9866,7 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
9876
9866
|
};
|
|
9877
9867
|
return _this;
|
|
9878
9868
|
}
|
|
9869
|
+
_inheritsLoose(Input, _VDOM$Component);
|
|
9879
9870
|
var _proto2 = Input.prototype;
|
|
9880
9871
|
_proto2.render = function render() {
|
|
9881
9872
|
var _this2 = this;
|
|
@@ -10000,6 +9991,16 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10000
9991
|
autoFocus(this.input, this);
|
|
10001
9992
|
};
|
|
10002
9993
|
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
9994
|
+
if (this.input == getActiveElement()) {
|
|
9995
|
+
this.onChange(
|
|
9996
|
+
{
|
|
9997
|
+
target: {
|
|
9998
|
+
value: this.input.value,
|
|
9999
|
+
},
|
|
10000
|
+
},
|
|
10001
|
+
"blur",
|
|
10002
|
+
);
|
|
10003
|
+
}
|
|
10003
10004
|
tooltipParentWillUnmount$1(this.props.instance);
|
|
10004
10005
|
};
|
|
10005
10006
|
_proto2.getPreCursorDigits = function getPreCursorDigits(text, cursor, decimalSeparator) {
|
|
@@ -10143,12 +10144,12 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10143
10144
|
var fmt = data.format;
|
|
10144
10145
|
var decimalSeparator = this.getDecimalSeparator(fmt) || Format.value(1.1, "n;1")[1];
|
|
10145
10146
|
var formatted = Format.value(value, fmt);
|
|
10146
|
-
//
|
|
10147
|
+
// Re-parse to avoid differences between formatted value and value in the store
|
|
10147
10148
|
|
|
10148
10149
|
value = widget.parseValue(formatted, instance) * data.scale + data.offset;
|
|
10149
10150
|
|
|
10150
|
-
//
|
|
10151
|
-
//
|
|
10151
|
+
// Allow users to type numbers like 100.0003 or -0.05 without interruptions
|
|
10152
|
+
// If the last typed character is zero or dot (decimal separator), skip processing it
|
|
10152
10153
|
if (
|
|
10153
10154
|
change == "change" &&
|
|
10154
10155
|
this.input.selectionStart == this.input.selectionEnd &&
|
|
@@ -10159,7 +10160,7 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10159
10160
|
)
|
|
10160
10161
|
return;
|
|
10161
10162
|
if (change != "blur") {
|
|
10162
|
-
//
|
|
10163
|
+
// Format, but keep the correct cursor position
|
|
10163
10164
|
var preCursorText = this.getPreCursorDigits(this.input.value, this.input.selectionStart, decimalSeparator);
|
|
10164
10165
|
this.input.value = formatted;
|
|
10165
10166
|
this.updateCursorPosition(preCursorText);
|
|
@@ -10188,10 +10189,10 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10188
10189
|
})(VDOM.Component);
|
|
10189
10190
|
|
|
10190
10191
|
var TextArea = /*#__PURE__*/ (function (_TextField) {
|
|
10191
|
-
_inheritsLoose(TextArea, _TextField);
|
|
10192
10192
|
function TextArea() {
|
|
10193
10193
|
return _TextField.apply(this, arguments) || this;
|
|
10194
10194
|
}
|
|
10195
|
+
_inheritsLoose(TextArea, _TextField);
|
|
10195
10196
|
var _proto = TextArea.prototype;
|
|
10196
10197
|
_proto.declareData = function declareData() {
|
|
10197
10198
|
var _TextField$prototype$;
|
|
@@ -10233,7 +10234,6 @@ TextArea.prototype.baseClass = "textarea";
|
|
|
10233
10234
|
TextArea.prototype.reactOn = "blur";
|
|
10234
10235
|
TextArea.prototype.suppressErrorsUntilVisited = true;
|
|
10235
10236
|
var Input = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
10236
|
-
_inheritsLoose(Input, _VDOM$Component);
|
|
10237
10237
|
function Input(props) {
|
|
10238
10238
|
var _this;
|
|
10239
10239
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -10242,6 +10242,7 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10242
10242
|
};
|
|
10243
10243
|
return _this;
|
|
10244
10244
|
}
|
|
10245
|
+
_inheritsLoose(Input, _VDOM$Component);
|
|
10245
10246
|
var _proto2 = Input.prototype;
|
|
10246
10247
|
_proto2.render = function render() {
|
|
10247
10248
|
var _this2 = this;
|
|
@@ -10290,13 +10291,13 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10290
10291
|
data.inputAttrs,
|
|
10291
10292
|
{
|
|
10292
10293
|
onInput: function onInput(e) {
|
|
10293
|
-
return _this2.onChange(e, "input");
|
|
10294
|
+
return _this2.onChange(e.target.value, "input");
|
|
10294
10295
|
},
|
|
10295
10296
|
onChange: function onChange(e) {
|
|
10296
|
-
return _this2.onChange(e, "change");
|
|
10297
|
+
return _this2.onChange(e.target.value, "change");
|
|
10297
10298
|
},
|
|
10298
10299
|
onBlur: function onBlur(e) {
|
|
10299
|
-
_this2.onChange(e, "blur");
|
|
10300
|
+
_this2.onChange(e.target.value, "blur");
|
|
10300
10301
|
},
|
|
10301
10302
|
onFocus: function onFocus(e) {
|
|
10302
10303
|
return _this2.onFocus();
|
|
@@ -10320,6 +10321,9 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10320
10321
|
});
|
|
10321
10322
|
};
|
|
10322
10323
|
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
10324
|
+
if (this.input == getActiveElement()) {
|
|
10325
|
+
this.onChange(this.input.value, "blur");
|
|
10326
|
+
}
|
|
10323
10327
|
tooltipParentWillUnmount$1(this.props.instance);
|
|
10324
10328
|
};
|
|
10325
10329
|
_proto2.componentDidMount = function componentDidMount() {
|
|
@@ -10349,7 +10353,7 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10349
10353
|
}
|
|
10350
10354
|
tooltipParentWillReceiveProps$1.apply(void 0, [this.input].concat(getFieldTooltip(instance)));
|
|
10351
10355
|
};
|
|
10352
|
-
_proto2.onChange = function onChange(
|
|
10356
|
+
_proto2.onChange = function onChange(inputValue, change) {
|
|
10353
10357
|
var _this$props2 = this.props,
|
|
10354
10358
|
instance = _this$props2.instance,
|
|
10355
10359
|
data = _this$props2.data;
|
|
@@ -10365,11 +10369,11 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10365
10369
|
}
|
|
10366
10370
|
if (data.required) {
|
|
10367
10371
|
instance.setState({
|
|
10368
|
-
empty: !
|
|
10372
|
+
empty: !inputValue,
|
|
10369
10373
|
});
|
|
10370
10374
|
}
|
|
10371
10375
|
if (instance.widget.reactOn.indexOf(change) != -1) {
|
|
10372
|
-
var value =
|
|
10376
|
+
var value = inputValue || widget.emptyValue;
|
|
10373
10377
|
instance.set("value", value);
|
|
10374
10378
|
}
|
|
10375
10379
|
};
|
|
@@ -10387,10 +10391,10 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10387
10391
|
Widget.alias("textarea", TextArea);
|
|
10388
10392
|
|
|
10389
10393
|
var ValidationGroup = /*#__PURE__*/ (function (_PureContainer) {
|
|
10390
|
-
_inheritsLoose(ValidationGroup, _PureContainer);
|
|
10391
10394
|
function ValidationGroup() {
|
|
10392
10395
|
return _PureContainer.apply(this, arguments) || this;
|
|
10393
10396
|
}
|
|
10397
|
+
_inheritsLoose(ValidationGroup, _PureContainer);
|
|
10394
10398
|
var _proto = ValidationGroup.prototype;
|
|
10395
10399
|
_proto.declareData = function declareData() {
|
|
10396
10400
|
var _PureContainer$protot;
|
|
@@ -10453,19 +10457,19 @@ ValidationGroup.prototype.isolated = false;
|
|
|
10453
10457
|
Widget.alias("validation-group", ValidationGroup);
|
|
10454
10458
|
|
|
10455
10459
|
var FieldGroup = /*#__PURE__*/ (function (_ValidationGroup) {
|
|
10456
|
-
_inheritsLoose(FieldGroup, _ValidationGroup);
|
|
10457
10460
|
function FieldGroup() {
|
|
10458
10461
|
return _ValidationGroup.apply(this, arguments) || this;
|
|
10459
10462
|
}
|
|
10463
|
+
_inheritsLoose(FieldGroup, _ValidationGroup);
|
|
10460
10464
|
return FieldGroup;
|
|
10461
10465
|
})(ValidationGroup);
|
|
10462
10466
|
Widget.alias("field-group", FieldGroup);
|
|
10463
10467
|
|
|
10464
10468
|
var LabeledContainer = /*#__PURE__*/ (function (_FieldGroup) {
|
|
10465
|
-
_inheritsLoose(LabeledContainer, _FieldGroup);
|
|
10466
10469
|
function LabeledContainer() {
|
|
10467
10470
|
return _FieldGroup.apply(this, arguments) || this;
|
|
10468
10471
|
}
|
|
10472
|
+
_inheritsLoose(LabeledContainer, _FieldGroup);
|
|
10469
10473
|
var _proto = LabeledContainer.prototype;
|
|
10470
10474
|
_proto.declareData = function declareData() {
|
|
10471
10475
|
var _FieldGroup$prototype;
|
|
@@ -10522,10 +10526,10 @@ Widget.alias("labeled-container", LabeledContainer);
|
|
|
10522
10526
|
|
|
10523
10527
|
enableCultureSensitiveFormatting();
|
|
10524
10528
|
var MonthPicker = /*#__PURE__*/ (function (_Field) {
|
|
10525
|
-
_inheritsLoose(MonthPicker, _Field);
|
|
10526
10529
|
function MonthPicker() {
|
|
10527
10530
|
return _Field.apply(this, arguments) || this;
|
|
10528
10531
|
}
|
|
10532
|
+
_inheritsLoose(MonthPicker, _Field);
|
|
10529
10533
|
var _proto = MonthPicker.prototype;
|
|
10530
10534
|
_proto.declareData = function declareData() {
|
|
10531
10535
|
var _Field$prototype$decl;
|
|
@@ -10569,14 +10573,14 @@ var MonthPicker = /*#__PURE__*/ (function (_Field) {
|
|
|
10569
10573
|
data.stateMods = {
|
|
10570
10574
|
disabled: data.disabled,
|
|
10571
10575
|
};
|
|
10572
|
-
if (!this.range && data.value) data.date = monthStart(
|
|
10576
|
+
if (!this.range && data.value) data.date = monthStart(parseDateInvariant(data.value));
|
|
10573
10577
|
if (this.range) {
|
|
10574
|
-
if (data.from) data.from = monthStart(
|
|
10575
|
-
if (data.to) data.to = monthStart(
|
|
10578
|
+
if (data.from) data.from = monthStart(parseDateInvariant(data.from));
|
|
10579
|
+
if (data.to) data.to = monthStart(parseDateInvariant(data.to));
|
|
10576
10580
|
}
|
|
10577
|
-
if (data.refDate) data.refDate = monthStart(
|
|
10578
|
-
if (data.maxValue) data.maxValue = monthStart(
|
|
10579
|
-
if (data.minValue) data.minValue = monthStart(
|
|
10581
|
+
if (data.refDate) data.refDate = monthStart(parseDateInvariant(data.refDate));
|
|
10582
|
+
if (data.maxValue) data.maxValue = monthStart(parseDateInvariant(data.maxValue));
|
|
10583
|
+
if (data.minValue) data.minValue = monthStart(parseDateInvariant(data.minValue));
|
|
10580
10584
|
_Field.prototype.prepareData.apply(this, arguments);
|
|
10581
10585
|
};
|
|
10582
10586
|
_proto.validate = function validate(context, instance) {
|
|
@@ -10648,7 +10652,6 @@ var monthNumber = function monthNumber(date) {
|
|
|
10648
10652
|
return date.getFullYear() * 12 + date.getMonth();
|
|
10649
10653
|
};
|
|
10650
10654
|
var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
10651
|
-
_inheritsLoose(MonthPickerComponent, _VDOM$Component);
|
|
10652
10655
|
function MonthPickerComponent(props) {
|
|
10653
10656
|
var _this;
|
|
10654
10657
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -10665,14 +10668,15 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10665
10668
|
start: widget.startYear,
|
|
10666
10669
|
end: widget.startYear + widget.bufferSize,
|
|
10667
10670
|
};
|
|
10668
|
-
_this.handleMouseDown = _this.handleMouseDown.bind(
|
|
10669
|
-
_this.handleMouseUp = _this.handleMouseUp.bind(
|
|
10670
|
-
_this.handleMouseEnter = _this.handleMouseEnter.bind(
|
|
10671
|
-
_this.handleKeyPress = _this.handleKeyPress.bind(
|
|
10672
|
-
_this.handleTouchMove = _this.handleTouchMove.bind(
|
|
10673
|
-
_this.handleTouchEnd = _this.handleTouchEnd.bind(
|
|
10671
|
+
_this.handleMouseDown = _this.handleMouseDown.bind(_this);
|
|
10672
|
+
_this.handleMouseUp = _this.handleMouseUp.bind(_this);
|
|
10673
|
+
_this.handleMouseEnter = _this.handleMouseEnter.bind(_this);
|
|
10674
|
+
_this.handleKeyPress = _this.handleKeyPress.bind(_this);
|
|
10675
|
+
_this.handleTouchMove = _this.handleTouchMove.bind(_this);
|
|
10676
|
+
_this.handleTouchEnd = _this.handleTouchEnd.bind(_this);
|
|
10674
10677
|
return _this;
|
|
10675
10678
|
}
|
|
10679
|
+
_inheritsLoose(MonthPickerComponent, _VDOM$Component);
|
|
10676
10680
|
var _proto2 = MonthPickerComponent.prototype;
|
|
10677
10681
|
_proto2.extractCursorInfo = function extractCursorInfo(el) {
|
|
10678
10682
|
if (!el.attributes["data-point"].value) return false;
|
|
@@ -11236,10 +11240,10 @@ var PixelPickerIcon = registerIcon(
|
|
|
11236
11240
|
);
|
|
11237
11241
|
|
|
11238
11242
|
var ColorPicker = /*#__PURE__*/ (function (_Field) {
|
|
11239
|
-
_inheritsLoose(ColorPicker, _Field);
|
|
11240
11243
|
function ColorPicker() {
|
|
11241
11244
|
return _Field.apply(this, arguments) || this;
|
|
11242
11245
|
}
|
|
11246
|
+
_inheritsLoose(ColorPicker, _Field);
|
|
11243
11247
|
var _proto = ColorPicker.prototype;
|
|
11244
11248
|
_proto.declareData = function declareData() {
|
|
11245
11249
|
var _Field$prototype$decl;
|
|
@@ -11307,7 +11311,6 @@ ColorPicker.prototype.reportOn = "blur change";
|
|
|
11307
11311
|
ColorPicker.prototype.format = "rgba";
|
|
11308
11312
|
Widget.alias("color-picker", ColorPicker);
|
|
11309
11313
|
var ColorPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
11310
|
-
_inheritsLoose(ColorPickerComponent, _VDOM$Component);
|
|
11311
11314
|
function ColorPickerComponent(props) {
|
|
11312
11315
|
var _this;
|
|
11313
11316
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -11320,6 +11323,7 @@ var ColorPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
11320
11323
|
}
|
|
11321
11324
|
return _this;
|
|
11322
11325
|
}
|
|
11326
|
+
_inheritsLoose(ColorPickerComponent, _VDOM$Component);
|
|
11323
11327
|
var _proto2 = ColorPickerComponent.prototype;
|
|
11324
11328
|
_proto2.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
|
|
11325
11329
|
var data = props.instance.data;
|
|
@@ -11793,10 +11797,10 @@ var ColorPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
11793
11797
|
})(VDOM.Component);
|
|
11794
11798
|
|
|
11795
11799
|
var MonthField = /*#__PURE__*/ (function (_Field) {
|
|
11796
|
-
_inheritsLoose(MonthField, _Field);
|
|
11797
11800
|
function MonthField() {
|
|
11798
11801
|
return _Field.apply(this, arguments) || this;
|
|
11799
11802
|
}
|
|
11803
|
+
_inheritsLoose(MonthField, _Field);
|
|
11800
11804
|
var _proto = MonthField.prototype;
|
|
11801
11805
|
_proto.declareData = function declareData() {
|
|
11802
11806
|
var _Field$prototype$decl;
|
|
@@ -11853,20 +11857,20 @@ var MonthField = /*#__PURE__*/ (function (_Field) {
|
|
|
11853
11857
|
month: "short",
|
|
11854
11858
|
};
|
|
11855
11859
|
if (!this.range && data.value) {
|
|
11856
|
-
data.date =
|
|
11860
|
+
data.date = parseDateInvariant(data.value);
|
|
11857
11861
|
data.formatted = this.culture.format(data.date, formatOptions);
|
|
11858
11862
|
} else if (this.range && data.from && data.to) {
|
|
11859
|
-
data.from =
|
|
11860
|
-
data.to =
|
|
11863
|
+
data.from = parseDateInvariant(data.from);
|
|
11864
|
+
data.to = parseDateInvariant(data.to);
|
|
11861
11865
|
data.to.setDate(data.to.getDate() - 1);
|
|
11862
11866
|
var fromStr = this.culture.format(data.from, formatOptions);
|
|
11863
11867
|
var toStr = this.culture.format(data.to, formatOptions);
|
|
11864
11868
|
if (fromStr != toStr) data.formatted = fromStr + " - " + toStr;
|
|
11865
11869
|
else data.formatted = fromStr;
|
|
11866
11870
|
}
|
|
11867
|
-
if (data.refDate) data.refDate = monthStart(
|
|
11868
|
-
if (data.maxValue) data.maxValue = monthStart(
|
|
11869
|
-
if (data.minValue) data.minValue = monthStart(
|
|
11871
|
+
if (data.refDate) data.refDate = monthStart(parseDateInvariant(data.refDate));
|
|
11872
|
+
if (data.maxValue) data.maxValue = monthStart(parseDateInvariant(data.maxValue));
|
|
11873
|
+
if (data.minValue) data.minValue = monthStart(parseDateInvariant(data.minValue));
|
|
11870
11874
|
instance.lastDropdown = context.lastDropdown;
|
|
11871
11875
|
};
|
|
11872
11876
|
_proto.validateRequired = function validateRequired(context, instance) {
|
|
@@ -11966,17 +11970,17 @@ MonthField.prototype.reactOn = "enter blur";
|
|
|
11966
11970
|
Localization.registerPrototype("cx/widgets/MonthField", MonthField);
|
|
11967
11971
|
Widget.alias("monthfield", MonthField);
|
|
11968
11972
|
var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
11969
|
-
_inheritsLoose(MonthInput, _VDOM$Component);
|
|
11970
11973
|
function MonthInput(props) {
|
|
11971
11974
|
var _this;
|
|
11972
11975
|
_this = _VDOM$Component.call(this, props) || this;
|
|
11973
|
-
_this.props.instance.component =
|
|
11976
|
+
_this.props.instance.component = _this;
|
|
11974
11977
|
_this.state = {
|
|
11975
11978
|
dropdownOpen: false,
|
|
11976
11979
|
focus: false,
|
|
11977
11980
|
};
|
|
11978
11981
|
return _this;
|
|
11979
11982
|
}
|
|
11983
|
+
_inheritsLoose(MonthInput, _VDOM$Component);
|
|
11980
11984
|
var _proto2 = MonthInput.prototype;
|
|
11981
11985
|
_proto2.getDropdown = function getDropdown() {
|
|
11982
11986
|
var _this2 = this;
|
|
@@ -12111,10 +12115,10 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12111
12115
|
tabIndex: data.tabIndex,
|
|
12112
12116
|
placeholder: data.placeholder,
|
|
12113
12117
|
onInput: function onInput(e) {
|
|
12114
|
-
return _this3.onChange(e, "input");
|
|
12118
|
+
return _this3.onChange(e.target.value, "input");
|
|
12115
12119
|
},
|
|
12116
12120
|
onChange: function onChange(e) {
|
|
12117
|
-
return _this3.onChange(e, "change");
|
|
12121
|
+
return _this3.onChange(e.target.value, "change");
|
|
12118
12122
|
},
|
|
12119
12123
|
onKeyDown: function onKeyDown(e) {
|
|
12120
12124
|
return _this3.onKeyDown(e);
|
|
@@ -12171,7 +12175,7 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12171
12175
|
switch (e.keyCode) {
|
|
12172
12176
|
case KeyCode.enter:
|
|
12173
12177
|
e.stopPropagation();
|
|
12174
|
-
this.onChange(e, "enter");
|
|
12178
|
+
this.onChange(e.target.value, "enter");
|
|
12175
12179
|
break;
|
|
12176
12180
|
case KeyCode.esc:
|
|
12177
12181
|
if (this.state.dropdownOpen) {
|
|
@@ -12201,7 +12205,7 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12201
12205
|
this.setState({
|
|
12202
12206
|
focus: false,
|
|
12203
12207
|
});
|
|
12204
|
-
this.onChange(e, "blur");
|
|
12208
|
+
this.onChange(e.target.value, "blur");
|
|
12205
12209
|
};
|
|
12206
12210
|
_proto2.closeDropdown = function closeDropdown(e, callback) {
|
|
12207
12211
|
var _this5 = this;
|
|
@@ -12257,13 +12261,16 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12257
12261
|
autoFocus(this.input, this);
|
|
12258
12262
|
};
|
|
12259
12263
|
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
12264
|
+
if (this.input == getActiveElement()) {
|
|
12265
|
+
this.onChange(this.input.value, "blur");
|
|
12266
|
+
}
|
|
12260
12267
|
tooltipParentWillUnmount$1(this.props.instance);
|
|
12261
12268
|
};
|
|
12262
|
-
_proto2.onChange = function onChange(
|
|
12269
|
+
_proto2.onChange = function onChange(inputValue, eventType) {
|
|
12263
12270
|
var instance = this.props.instance;
|
|
12264
12271
|
var widget = instance.widget;
|
|
12265
12272
|
if (widget.reactOn.indexOf(eventType) == -1) return;
|
|
12266
|
-
var parts =
|
|
12273
|
+
var parts = inputValue.split("-");
|
|
12267
12274
|
var date1 = widget.parseDate(parts[0]);
|
|
12268
12275
|
var date2 = widget.parseDate(parts[1]) || date1;
|
|
12269
12276
|
if ((date1 != null && isNaN(date1)) || (date2 != null && isNaN(date2))) {
|
|
@@ -12282,10 +12289,10 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12282
12289
|
})(VDOM.Component);
|
|
12283
12290
|
|
|
12284
12291
|
var ColorField = /*#__PURE__*/ (function (_Field) {
|
|
12285
|
-
_inheritsLoose(ColorField, _Field);
|
|
12286
12292
|
function ColorField() {
|
|
12287
12293
|
return _Field.apply(this, arguments) || this;
|
|
12288
12294
|
}
|
|
12295
|
+
_inheritsLoose(ColorField, _Field);
|
|
12289
12296
|
var _proto = ColorField.prototype;
|
|
12290
12297
|
_proto.declareData = function declareData() {
|
|
12291
12298
|
var _Field$prototype$decl;
|
|
@@ -12347,7 +12354,6 @@ ColorField.prototype.alwaysShowClear = false;
|
|
|
12347
12354
|
Widget.alias("color-field", ColorField);
|
|
12348
12355
|
Localization.registerPrototype("cx/widgets/ColorField", ColorField);
|
|
12349
12356
|
var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
12350
|
-
_inheritsLoose(ColorInput, _VDOM$Component);
|
|
12351
12357
|
function ColorInput(props) {
|
|
12352
12358
|
var _this;
|
|
12353
12359
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -12359,6 +12365,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12359
12365
|
};
|
|
12360
12366
|
return _this;
|
|
12361
12367
|
}
|
|
12368
|
+
_inheritsLoose(ColorInput, _VDOM$Component);
|
|
12362
12369
|
var _proto2 = ColorInput.prototype;
|
|
12363
12370
|
_proto2.getDropdown = function getDropdown() {
|
|
12364
12371
|
var _this2 = this;
|
|
@@ -12503,10 +12510,10 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12503
12510
|
data.inputAttrs,
|
|
12504
12511
|
{
|
|
12505
12512
|
onInput: function onInput(e) {
|
|
12506
|
-
return _this3.onChange(e, "input");
|
|
12513
|
+
return _this3.onChange(e.target.value, "input");
|
|
12507
12514
|
},
|
|
12508
12515
|
onChange: function onChange(e) {
|
|
12509
|
-
return _this3.onChange(e, "change");
|
|
12516
|
+
return _this3.onChange(e.target.value, "change");
|
|
12510
12517
|
},
|
|
12511
12518
|
onKeyDown: function onKeyDown(e) {
|
|
12512
12519
|
return _this3.onKeyDown(e);
|
|
@@ -12565,7 +12572,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12565
12572
|
switch (e.keyCode) {
|
|
12566
12573
|
case KeyCode.enter:
|
|
12567
12574
|
e.stopPropagation();
|
|
12568
|
-
this.onChange(e, "enter");
|
|
12575
|
+
this.onChange(e.target.value, "enter");
|
|
12569
12576
|
break;
|
|
12570
12577
|
case KeyCode.esc:
|
|
12571
12578
|
if (this.state.dropdownOpen) {
|
|
@@ -12591,7 +12598,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12591
12598
|
this.setState({
|
|
12592
12599
|
focus: false,
|
|
12593
12600
|
});
|
|
12594
|
-
this.onChange(e, "blur");
|
|
12601
|
+
this.onChange(e.target.value, "blur");
|
|
12595
12602
|
};
|
|
12596
12603
|
_proto2.closeDropdown = function closeDropdown(e, callback) {
|
|
12597
12604
|
var _this5 = this;
|
|
@@ -12639,6 +12646,9 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12639
12646
|
if (this.props.instance.widget.autoFocus && !isTouchDevice()) this.input.focus();
|
|
12640
12647
|
};
|
|
12641
12648
|
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
12649
|
+
if (this.input == getActiveElement()) {
|
|
12650
|
+
this.onChange(this.input.value, "blur");
|
|
12651
|
+
}
|
|
12642
12652
|
tooltipParentWillUnmount$1(this.props.instance);
|
|
12643
12653
|
};
|
|
12644
12654
|
_proto2.onClearClick = function onClearClick(e) {
|
|
@@ -12650,25 +12660,25 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12650
12660
|
e.stopPropagation();
|
|
12651
12661
|
e.preventDefault();
|
|
12652
12662
|
};
|
|
12653
|
-
_proto2.onChange = function onChange(
|
|
12663
|
+
_proto2.onChange = function onChange(inputValue, eventType) {
|
|
12654
12664
|
var _this$props2 = this.props,
|
|
12655
12665
|
instance = _this$props2.instance,
|
|
12656
12666
|
data = _this$props2.data;
|
|
12657
12667
|
var widget = instance.widget;
|
|
12658
|
-
if (eventType == "blur")
|
|
12668
|
+
if (eventType == "blur") {
|
|
12659
12669
|
instance.setState({
|
|
12660
12670
|
visited: true,
|
|
12661
12671
|
});
|
|
12662
|
-
|
|
12672
|
+
}
|
|
12663
12673
|
var isValid;
|
|
12664
12674
|
try {
|
|
12665
|
-
parseColor(
|
|
12675
|
+
parseColor(inputValue);
|
|
12666
12676
|
isValid = true;
|
|
12667
12677
|
} catch (e) {
|
|
12668
12678
|
isValid = false;
|
|
12669
12679
|
}
|
|
12670
12680
|
if (eventType == "blur" || eventType == "enter") {
|
|
12671
|
-
var value =
|
|
12681
|
+
var value = inputValue || widget.emptyValue;
|
|
12672
12682
|
if (isValid && value !== data.value) instance.set("value", value);
|
|
12673
12683
|
instance.setState({
|
|
12674
12684
|
inputError: !isValid && "Invalid color entered.",
|
|
@@ -12679,10 +12689,10 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12679
12689
|
})(VDOM.Component);
|
|
12680
12690
|
|
|
12681
12691
|
var UploadButton = /*#__PURE__*/ (function (_Field) {
|
|
12682
|
-
_inheritsLoose(UploadButton, _Field);
|
|
12683
12692
|
function UploadButton() {
|
|
12684
12693
|
return _Field.apply(this, arguments) || this;
|
|
12685
12694
|
}
|
|
12695
|
+
_inheritsLoose(UploadButton, _Field);
|
|
12686
12696
|
var _proto = UploadButton.prototype;
|
|
12687
12697
|
_proto.declareData = function declareData() {
|
|
12688
12698
|
var _Field$prototype$decl;
|
|
@@ -12721,7 +12731,6 @@ UploadButton.prototype.abortOnDestroy = false;
|
|
|
12721
12731
|
UploadButton.prototype.uploadInProgressText = "Upload is in progress.";
|
|
12722
12732
|
Localization.registerPrototype("cx/widgets/UploadButton", UploadButton);
|
|
12723
12733
|
var UploadButtonComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
12724
|
-
_inheritsLoose(UploadButtonComponent, _VDOM$Component);
|
|
12725
12734
|
function UploadButtonComponent(props) {
|
|
12726
12735
|
var _this;
|
|
12727
12736
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -12732,6 +12741,7 @@ var UploadButtonComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12732
12741
|
};
|
|
12733
12742
|
return _this;
|
|
12734
12743
|
}
|
|
12744
|
+
_inheritsLoose(UploadButtonComponent, _VDOM$Component);
|
|
12735
12745
|
var _proto2 = UploadButtonComponent.prototype;
|
|
12736
12746
|
_proto2.render = function render() {
|
|
12737
12747
|
var _this2 = this;
|
|
@@ -12887,10 +12897,10 @@ var UploadButtonComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12887
12897
|
Widget.alias("upload-button", UploadButton);
|
|
12888
12898
|
|
|
12889
12899
|
var Slider = /*#__PURE__*/ (function (_Field) {
|
|
12890
|
-
_inheritsLoose(Slider, _Field);
|
|
12891
12900
|
function Slider() {
|
|
12892
12901
|
return _Field.apply(this, arguments) || this;
|
|
12893
12902
|
}
|
|
12903
|
+
_inheritsLoose(Slider, _Field);
|
|
12894
12904
|
var _proto = Slider.prototype;
|
|
12895
12905
|
_proto.declareData = function declareData() {
|
|
12896
12906
|
var _Field$prototype$decl;
|
|
@@ -12963,7 +12973,6 @@ Slider.prototype.wheel = false;
|
|
|
12963
12973
|
Slider.prototype.invert = false;
|
|
12964
12974
|
Widget.alias("slider", Slider);
|
|
12965
12975
|
var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
12966
|
-
_inheritsLoose(SliderComponent, _VDOM$Component);
|
|
12967
12976
|
function SliderComponent(props) {
|
|
12968
12977
|
var _this;
|
|
12969
12978
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -12975,6 +12984,7 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12975
12984
|
};
|
|
12976
12985
|
return _this;
|
|
12977
12986
|
}
|
|
12987
|
+
_inheritsLoose(SliderComponent, _VDOM$Component);
|
|
12978
12988
|
var _proto2 = SliderComponent.prototype;
|
|
12979
12989
|
_proto2.render = function render() {
|
|
12980
12990
|
var _extends2,
|
|
@@ -13329,10 +13339,10 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13329
13339
|
})(VDOM.Component);
|
|
13330
13340
|
|
|
13331
13341
|
var Switch = /*#__PURE__*/ (function (_Field) {
|
|
13332
|
-
_inheritsLoose(Switch, _Field);
|
|
13333
13342
|
function Switch() {
|
|
13334
13343
|
return _Field.apply(this, arguments) || this;
|
|
13335
13344
|
}
|
|
13345
|
+
_inheritsLoose(Switch, _Field);
|
|
13336
13346
|
var _proto = Switch.prototype;
|
|
13337
13347
|
_proto.declareData = function declareData() {
|
|
13338
13348
|
var _Field$prototype$decl;
|
|
@@ -13460,10 +13470,10 @@ Switch.prototype.focusOnMouseDown = false;
|
|
|
13460
13470
|
Widget.alias("switch", Switch);
|
|
13461
13471
|
|
|
13462
13472
|
var Wheel = /*#__PURE__*/ (function (_PureContainer) {
|
|
13463
|
-
_inheritsLoose(Wheel, _PureContainer);
|
|
13464
13473
|
function Wheel() {
|
|
13465
13474
|
return _PureContainer.apply(this, arguments) || this;
|
|
13466
13475
|
}
|
|
13476
|
+
_inheritsLoose(Wheel, _PureContainer);
|
|
13467
13477
|
var _proto = Wheel.prototype;
|
|
13468
13478
|
_proto.declareData = function declareData() {
|
|
13469
13479
|
var _PureContainer$protot;
|
|
@@ -13518,7 +13528,6 @@ Wheel.prototype.baseClass = "wheel";
|
|
|
13518
13528
|
Wheel.prototype.size = 3;
|
|
13519
13529
|
Wheel.prototype.styled = true;
|
|
13520
13530
|
var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
13521
|
-
_inheritsLoose(WheelComponent, _VDOM$Component);
|
|
13522
13531
|
function WheelComponent(props) {
|
|
13523
13532
|
var _this;
|
|
13524
13533
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -13530,10 +13539,11 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13530
13539
|
_this.scrollRef = function (el) {
|
|
13531
13540
|
_this.scrollEl = el;
|
|
13532
13541
|
};
|
|
13533
|
-
_this.onWheel = _this.onWheel.bind(
|
|
13534
|
-
_this.onKeyDown = _this.onKeyDown.bind(
|
|
13542
|
+
_this.onWheel = _this.onWheel.bind(_this);
|
|
13543
|
+
_this.onKeyDown = _this.onKeyDown.bind(_this);
|
|
13535
13544
|
return _this;
|
|
13536
13545
|
}
|
|
13546
|
+
_inheritsLoose(WheelComponent, _VDOM$Component);
|
|
13537
13547
|
var _proto2 = WheelComponent.prototype;
|
|
13538
13548
|
_proto2.render = function render() {
|
|
13539
13549
|
var _this2 = this;
|
|
@@ -13725,7 +13735,7 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13725
13735
|
_proto2.scrollTo = function scrollTo() {
|
|
13726
13736
|
var _this4 = this;
|
|
13727
13737
|
var size = this.props.size;
|
|
13728
|
-
var
|
|
13738
|
+
var _callback = function callback() {
|
|
13729
13739
|
if (!_this4.scrolling) return;
|
|
13730
13740
|
var x = (_this4.index * _this4.state.wheelHeight) / size;
|
|
13731
13741
|
var delta = Math.round(x - _this4.scrollEl.scrollTop);
|
|
@@ -13737,11 +13747,11 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13737
13747
|
delta = Math.abs(delta) / 10;
|
|
13738
13748
|
if (delta < 1) delta = 1;
|
|
13739
13749
|
_this4.scrollEl.scrollTop += sign * delta;
|
|
13740
|
-
requestAnimationFrame(
|
|
13750
|
+
requestAnimationFrame(_callback);
|
|
13741
13751
|
};
|
|
13742
13752
|
if (!this.scrolling) {
|
|
13743
13753
|
this.scrolling = true;
|
|
13744
|
-
requestAnimationFrame(
|
|
13754
|
+
requestAnimationFrame(_callback);
|
|
13745
13755
|
}
|
|
13746
13756
|
};
|
|
13747
13757
|
return WheelComponent;
|
|
@@ -13749,10 +13759,10 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13749
13759
|
|
|
13750
13760
|
enableCultureSensitiveFormatting();
|
|
13751
13761
|
var DateTimePicker = /*#__PURE__*/ (function (_Widget) {
|
|
13752
|
-
_inheritsLoose(DateTimePicker, _Widget);
|
|
13753
13762
|
function DateTimePicker() {
|
|
13754
13763
|
return _Widget.apply(this, arguments) || this;
|
|
13755
13764
|
}
|
|
13765
|
+
_inheritsLoose(DateTimePicker, _Widget);
|
|
13756
13766
|
var _proto = DateTimePicker.prototype;
|
|
13757
13767
|
_proto.declareData = function declareData() {
|
|
13758
13768
|
var _Widget$prototype$dec;
|
|
@@ -13786,21 +13796,20 @@ DateTimePicker.prototype.autoFocus = false;
|
|
|
13786
13796
|
DateTimePicker.prototype.segment = "datetime";
|
|
13787
13797
|
DateTimePicker.prototype.showSeconds = false;
|
|
13788
13798
|
var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
13789
|
-
_inheritsLoose(DateTimePickerComponent, _VDOM$Component);
|
|
13790
13799
|
function DateTimePickerComponent(props) {
|
|
13791
13800
|
var _this;
|
|
13792
13801
|
_this = _VDOM$Component.call(this, props) || this;
|
|
13793
|
-
var date = props.data.value ?
|
|
13802
|
+
var date = props.data.value ? parseDateInvariant(props.data.value) : new Date();
|
|
13794
13803
|
if (isNaN(date.getTime())) date = new Date();
|
|
13795
13804
|
_this.state = {
|
|
13796
13805
|
date: date,
|
|
13797
13806
|
activeWheel: null,
|
|
13798
13807
|
};
|
|
13799
13808
|
var widget = props.instance.widget;
|
|
13800
|
-
_this.handleChange = _this.handleChange.bind(
|
|
13801
|
-
_this.onFocus = _this.onFocus.bind(
|
|
13802
|
-
_this.onBlur = _this.onBlur.bind(
|
|
13803
|
-
_this.onKeyDown = _this.onKeyDown.bind(
|
|
13809
|
+
_this.handleChange = _this.handleChange.bind(_this);
|
|
13810
|
+
_this.onFocus = _this.onFocus.bind(_this);
|
|
13811
|
+
_this.onBlur = _this.onBlur.bind(_this);
|
|
13812
|
+
_this.onKeyDown = _this.onKeyDown.bind(_this);
|
|
13804
13813
|
var showDate = props.segment.indexOf("date") !== -1;
|
|
13805
13814
|
var showTime = props.segment.indexOf("time") !== -1;
|
|
13806
13815
|
_this.wheels = {
|
|
@@ -13814,9 +13823,10 @@ var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13814
13823
|
_this.keyDownPipes = {};
|
|
13815
13824
|
return _this;
|
|
13816
13825
|
}
|
|
13826
|
+
_inheritsLoose(DateTimePickerComponent, _VDOM$Component);
|
|
13817
13827
|
var _proto2 = DateTimePickerComponent.prototype;
|
|
13818
13828
|
_proto2.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
|
|
13819
|
-
var date = props.data.value ?
|
|
13829
|
+
var date = props.data.value ? parseDateInvariant(props.data.value) : new Date();
|
|
13820
13830
|
if (isNaN(date.getTime())) date = new Date();
|
|
13821
13831
|
this.setState({
|
|
13822
13832
|
date: date,
|
|
@@ -14290,10 +14300,10 @@ var TimeList = createFunctionalComponent(function (_ref) {
|
|
|
14290
14300
|
});
|
|
14291
14301
|
|
|
14292
14302
|
var DateTimeField = /*#__PURE__*/ (function (_Field) {
|
|
14293
|
-
_inheritsLoose(DateTimeField, _Field);
|
|
14294
14303
|
function DateTimeField() {
|
|
14295
14304
|
return _Field.apply(this, arguments) || this;
|
|
14296
14305
|
}
|
|
14306
|
+
_inheritsLoose(DateTimeField, _Field);
|
|
14297
14307
|
var _proto = DateTimeField.prototype;
|
|
14298
14308
|
_proto.declareData = function declareData() {
|
|
14299
14309
|
var _Field$prototype$decl;
|
|
@@ -14340,7 +14350,9 @@ var DateTimeField = /*#__PURE__*/ (function (_Field) {
|
|
|
14340
14350
|
_proto.prepareData = function prepareData(context, instance) {
|
|
14341
14351
|
var data = instance.data;
|
|
14342
14352
|
if (data.value) {
|
|
14343
|
-
var date =
|
|
14353
|
+
var date = parseDateInvariant(data.value);
|
|
14354
|
+
// let date = new Date(data.value);
|
|
14355
|
+
|
|
14344
14356
|
if (isNaN(date.getTime())) data.formatted = String(data.value);
|
|
14345
14357
|
else {
|
|
14346
14358
|
// handle utc edge cases
|
|
@@ -14349,9 +14361,9 @@ var DateTimeField = /*#__PURE__*/ (function (_Field) {
|
|
|
14349
14361
|
}
|
|
14350
14362
|
data.date = date;
|
|
14351
14363
|
} else data.formatted = "";
|
|
14352
|
-
if (data.refDate) data.refDate = zeroTime(
|
|
14353
|
-
if (data.maxValue) data.maxValue =
|
|
14354
|
-
if (data.minValue) data.minValue =
|
|
14364
|
+
if (data.refDate) data.refDate = zeroTime(parseDateInvariant(data.refDate));
|
|
14365
|
+
if (data.maxValue) data.maxValue = parseDateInvariant(data.maxValue);
|
|
14366
|
+
if (data.minValue) data.minValue = parseDateInvariant(data.minValue);
|
|
14355
14367
|
if (this.segment == "date") {
|
|
14356
14368
|
if (data.minValue) data.minValue = zeroTime(data.minValue);
|
|
14357
14369
|
if (data.maxValue) data.maxValue = zeroTime(data.maxValue);
|
|
@@ -14446,17 +14458,17 @@ DateTimeField.prototype.focusInputFirst = false;
|
|
|
14446
14458
|
Widget.alias("datetimefield", DateTimeField);
|
|
14447
14459
|
Localization.registerPrototype("cx/widgets/DateTimeField", DateTimeField);
|
|
14448
14460
|
var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
14449
|
-
_inheritsLoose(DateTimeInput, _VDOM$Component);
|
|
14450
14461
|
function DateTimeInput(props) {
|
|
14451
14462
|
var _this;
|
|
14452
14463
|
_this = _VDOM$Component.call(this, props) || this;
|
|
14453
|
-
props.instance.component =
|
|
14464
|
+
props.instance.component = _this;
|
|
14454
14465
|
_this.state = {
|
|
14455
14466
|
dropdownOpen: false,
|
|
14456
14467
|
focus: false,
|
|
14457
14468
|
};
|
|
14458
14469
|
return _this;
|
|
14459
14470
|
}
|
|
14471
|
+
_inheritsLoose(DateTimeInput, _VDOM$Component);
|
|
14460
14472
|
var _proto2 = DateTimeInput.prototype;
|
|
14461
14473
|
_proto2.getDropdown = function getDropdown() {
|
|
14462
14474
|
var _this2 = this;
|
|
@@ -14631,10 +14643,10 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
14631
14643
|
data.inputAttrs,
|
|
14632
14644
|
{
|
|
14633
14645
|
onInput: function onInput(e) {
|
|
14634
|
-
return _this3.onChange(e, "input");
|
|
14646
|
+
return _this3.onChange(e.target.value, "input");
|
|
14635
14647
|
},
|
|
14636
14648
|
onChange: function onChange(e) {
|
|
14637
|
-
return _this3.onChange(e, "change");
|
|
14649
|
+
return _this3.onChange(e.target.value, "change");
|
|
14638
14650
|
},
|
|
14639
14651
|
onKeyDown: function onKeyDown(e) {
|
|
14640
14652
|
return _this3.onKeyDown(e);
|
|
@@ -14696,7 +14708,7 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
14696
14708
|
if (instance.widget.handleKeyDown(e, instance) === false) return;
|
|
14697
14709
|
switch (e.keyCode) {
|
|
14698
14710
|
case KeyCode.enter:
|
|
14699
|
-
this.onChange(e, "enter");
|
|
14711
|
+
this.onChange(e.target.value, "enter");
|
|
14700
14712
|
break;
|
|
14701
14713
|
case KeyCode.esc:
|
|
14702
14714
|
if (this.state.dropdownOpen) {
|
|
@@ -14727,7 +14739,7 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
14727
14739
|
this.setState({
|
|
14728
14740
|
focus: false,
|
|
14729
14741
|
});
|
|
14730
|
-
this.onChange(e, "blur");
|
|
14742
|
+
this.onChange(e.target.value, "blur");
|
|
14731
14743
|
};
|
|
14732
14744
|
_proto2.closeDropdown = function closeDropdown(e, callback) {
|
|
14733
14745
|
var _this5 = this;
|
|
@@ -14783,9 +14795,12 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
14783
14795
|
autoFocus(this.input, this);
|
|
14784
14796
|
};
|
|
14785
14797
|
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
14798
|
+
if (this.input == getActiveElement()) {
|
|
14799
|
+
this.onChange(this.input.value, "blur");
|
|
14800
|
+
}
|
|
14786
14801
|
tooltipParentWillUnmount$1(this.props.instance);
|
|
14787
14802
|
};
|
|
14788
|
-
_proto2.onChange = function onChange(
|
|
14803
|
+
_proto2.onChange = function onChange(inputValue, eventType) {
|
|
14789
14804
|
var _this$props2 = this.props,
|
|
14790
14805
|
instance = _this$props2.instance,
|
|
14791
14806
|
data = _this$props2.data;
|
|
@@ -14796,7 +14811,7 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
14796
14811
|
instance.setState({
|
|
14797
14812
|
visited: true,
|
|
14798
14813
|
});
|
|
14799
|
-
this.setValue(
|
|
14814
|
+
this.setValue(inputValue, data.value);
|
|
14800
14815
|
};
|
|
14801
14816
|
_proto2.setValue = function setValue(text, baseValue) {
|
|
14802
14817
|
var _this$props3 = this.props,
|
|
@@ -14808,7 +14823,7 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
14808
14823
|
inputError: isNaN(date) && widget.inputErrorText,
|
|
14809
14824
|
});
|
|
14810
14825
|
if (!isNaN(date)) {
|
|
14811
|
-
var mixed =
|
|
14826
|
+
var mixed = parseDateInvariant(baseValue);
|
|
14812
14827
|
if (date && baseValue && !isNaN(mixed) && widget.partial) {
|
|
14813
14828
|
switch (widget.segment) {
|
|
14814
14829
|
case "date":
|
|
@@ -14836,10 +14851,10 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
14836
14851
|
})(VDOM.Component);
|
|
14837
14852
|
|
|
14838
14853
|
var DateField = /*#__PURE__*/ (function (_DateTimeField) {
|
|
14839
|
-
_inheritsLoose(DateField, _DateTimeField);
|
|
14840
14854
|
function DateField() {
|
|
14841
14855
|
return _DateTimeField.apply(this, arguments) || this;
|
|
14842
14856
|
}
|
|
14857
|
+
_inheritsLoose(DateField, _DateTimeField);
|
|
14843
14858
|
return DateField;
|
|
14844
14859
|
})(DateTimeField);
|
|
14845
14860
|
DateField.prototype.picker = "calendar";
|
|
@@ -14848,10 +14863,10 @@ Widget.alias("datefield", DateField);
|
|
|
14848
14863
|
Localization.registerPrototype("cx/widgets/DateField", DateField);
|
|
14849
14864
|
|
|
14850
14865
|
var TimeField = /*#__PURE__*/ (function (_DateTimeField) {
|
|
14851
|
-
_inheritsLoose(TimeField, _DateTimeField);
|
|
14852
14866
|
function TimeField() {
|
|
14853
14867
|
return _DateTimeField.apply(this, arguments) || this;
|
|
14854
14868
|
}
|
|
14869
|
+
_inheritsLoose(TimeField, _DateTimeField);
|
|
14855
14870
|
return TimeField;
|
|
14856
14871
|
})(DateTimeField);
|
|
14857
14872
|
TimeField.prototype.segment = "time";
|
|
@@ -14859,10 +14874,10 @@ Widget.alias("timefield", TimeField);
|
|
|
14859
14874
|
Localization.registerPrototype("cx/widgets/TimeField", TimeField);
|
|
14860
14875
|
|
|
14861
14876
|
var Validator = /*#__PURE__*/ (function (_Field) {
|
|
14862
|
-
_inheritsLoose(Validator, _Field);
|
|
14863
14877
|
function Validator() {
|
|
14864
14878
|
return _Field.apply(this, arguments) || this;
|
|
14865
14879
|
}
|
|
14880
|
+
_inheritsLoose(Validator, _Field);
|
|
14866
14881
|
var _proto = Validator.prototype;
|
|
14867
14882
|
_proto.declareData = function declareData() {
|
|
14868
14883
|
var _Field$prototype$decl;
|
|
@@ -14906,10 +14921,10 @@ var DropDownIcon = registerIcon(
|
|
|
14906
14921
|
);
|
|
14907
14922
|
|
|
14908
14923
|
var GridCell = /*#__PURE__*/ (function (_PureContainer) {
|
|
14909
|
-
_inheritsLoose(GridCell, _PureContainer);
|
|
14910
14924
|
function GridCell() {
|
|
14911
14925
|
return _PureContainer.apply(this, arguments) || this;
|
|
14912
14926
|
}
|
|
14927
|
+
_inheritsLoose(GridCell, _PureContainer);
|
|
14913
14928
|
var _proto = GridCell.prototype;
|
|
14914
14929
|
_proto.declareData = function declareData() {
|
|
14915
14930
|
var _PureContainer$protot;
|
|
@@ -14979,10 +14994,10 @@ GridCell.prototype.styled = true;
|
|
|
14979
14994
|
GridCell.prototype.fixed = false;
|
|
14980
14995
|
|
|
14981
14996
|
var GridRowLine = /*#__PURE__*/ (function (_Container) {
|
|
14982
|
-
_inheritsLoose(GridRowLine, _Container);
|
|
14983
14997
|
function GridRowLine() {
|
|
14984
14998
|
return _Container.apply(this, arguments) || this;
|
|
14985
14999
|
}
|
|
15000
|
+
_inheritsLoose(GridRowLine, _Container);
|
|
14986
15001
|
var _proto = GridRowLine.prototype;
|
|
14987
15002
|
_proto.init = function init() {
|
|
14988
15003
|
this.items = Widget.create(GridCell, this.columns || [], {
|
|
@@ -15004,10 +15019,10 @@ var GridRowLine = /*#__PURE__*/ (function (_Container) {
|
|
|
15004
15019
|
GridRowLine.prototype.styled = true;
|
|
15005
15020
|
|
|
15006
15021
|
var GridRow = /*#__PURE__*/ (function (_ValidationGroup) {
|
|
15007
|
-
_inheritsLoose(GridRow, _ValidationGroup);
|
|
15008
15022
|
function GridRow() {
|
|
15009
15023
|
return _ValidationGroup.apply(this, arguments) || this;
|
|
15010
15024
|
}
|
|
15025
|
+
_inheritsLoose(GridRow, _ValidationGroup);
|
|
15011
15026
|
var _proto = GridRow.prototype;
|
|
15012
15027
|
_proto.declareData = function declareData() {
|
|
15013
15028
|
var _ValidationGroup$prot;
|
|
@@ -15048,15 +15063,14 @@ var GridRow = /*#__PURE__*/ (function (_ValidationGroup) {
|
|
|
15048
15063
|
GridRow.prototype.styled = true; //styles used on the wrapper component
|
|
15049
15064
|
|
|
15050
15065
|
var GridRowComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
15051
|
-
_inheritsLoose(GridRowComponent, _VDOM$Component);
|
|
15052
15066
|
function GridRowComponent(props) {
|
|
15053
15067
|
var _this;
|
|
15054
15068
|
_this = _VDOM$Component.call(this, props) || this;
|
|
15055
|
-
_this.onMouseMove = _this.onMouseMove.bind(
|
|
15056
|
-
_this.onMouseDown = _this.onMouseDown.bind(
|
|
15057
|
-
_this.onMouseLeave = _this.onMouseLeave.bind(
|
|
15058
|
-
_this.onClick = _this.onClick.bind(
|
|
15059
|
-
_this.onKeyDown = _this.onKeyDown.bind(
|
|
15069
|
+
_this.onMouseMove = _this.onMouseMove.bind(_this);
|
|
15070
|
+
_this.onMouseDown = _this.onMouseDown.bind(_this);
|
|
15071
|
+
_this.onMouseLeave = _this.onMouseLeave.bind(_this);
|
|
15072
|
+
_this.onClick = _this.onClick.bind(_this);
|
|
15073
|
+
_this.onKeyDown = _this.onKeyDown.bind(_this);
|
|
15060
15074
|
var grid = props.grid,
|
|
15061
15075
|
instance = props.instance;
|
|
15062
15076
|
if (grid.widget.onRowDoubleClick)
|
|
@@ -15076,6 +15090,7 @@ var GridRowComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
15076
15090
|
};
|
|
15077
15091
|
return _this;
|
|
15078
15092
|
}
|
|
15093
|
+
_inheritsLoose(GridRowComponent, _VDOM$Component);
|
|
15079
15094
|
var _proto2 = GridRowComponent.prototype;
|
|
15080
15095
|
_proto2.render = function render() {
|
|
15081
15096
|
var _this$props = this.props,
|
|
@@ -15239,10 +15254,10 @@ var GridRowComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
15239
15254
|
})(VDOM.Component);
|
|
15240
15255
|
|
|
15241
15256
|
var GridCellEditor = /*#__PURE__*/ (function (_Container) {
|
|
15242
|
-
_inheritsLoose(GridCellEditor, _Container);
|
|
15243
15257
|
function GridCellEditor() {
|
|
15244
15258
|
return _Container.apply(this, arguments) || this;
|
|
15245
15259
|
}
|
|
15260
|
+
_inheritsLoose(GridCellEditor, _Container);
|
|
15246
15261
|
var _proto = GridCellEditor.prototype;
|
|
15247
15262
|
_proto.render = function render(context, instance, key) {
|
|
15248
15263
|
var data = instance.data;
|
|
@@ -15260,10 +15275,10 @@ var GridCellEditor = /*#__PURE__*/ (function (_Container) {
|
|
|
15260
15275
|
})(Container);
|
|
15261
15276
|
GridCellEditor.prototype.styled = true;
|
|
15262
15277
|
var GridCellEditorCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
15263
|
-
_inheritsLoose(GridCellEditorCmp, _VDOM$Component);
|
|
15264
15278
|
function GridCellEditorCmp() {
|
|
15265
15279
|
return _VDOM$Component.apply(this, arguments) || this;
|
|
15266
15280
|
}
|
|
15281
|
+
_inheritsLoose(GridCellEditorCmp, _VDOM$Component);
|
|
15267
15282
|
var _proto2 = GridCellEditorCmp.prototype;
|
|
15268
15283
|
_proto2.render = function render() {
|
|
15269
15284
|
var _this = this;
|
|
@@ -15290,10 +15305,10 @@ var GridCellEditorCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
15290
15305
|
})(VDOM.Component);
|
|
15291
15306
|
|
|
15292
15307
|
var Grid = /*#__PURE__*/ (function (_Container) {
|
|
15293
|
-
_inheritsLoose(Grid, _Container);
|
|
15294
15308
|
function Grid() {
|
|
15295
15309
|
return _Container.apply(this, arguments) || this;
|
|
15296
15310
|
}
|
|
15311
|
+
_inheritsLoose(Grid, _Container);
|
|
15297
15312
|
var _proto = Grid.prototype;
|
|
15298
15313
|
_proto.declareData = function declareData() {
|
|
15299
15314
|
var _Container$prototype$;
|
|
@@ -16483,7 +16498,6 @@ Grid.prototype.allowsFileDrops = false;
|
|
|
16483
16498
|
Widget.alias("grid", Grid);
|
|
16484
16499
|
Localization.registerPrototype("cx/widgets/Grid", Grid);
|
|
16485
16500
|
var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
16486
|
-
_inheritsLoose(GridComponent, _VDOM$Component);
|
|
16487
16501
|
function GridComponent(props) {
|
|
16488
16502
|
var _this4;
|
|
16489
16503
|
_this4 = _VDOM$Component.call(this, props) || this;
|
|
@@ -16516,6 +16530,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
16516
16530
|
};
|
|
16517
16531
|
return _this4;
|
|
16518
16532
|
}
|
|
16533
|
+
_inheritsLoose(GridComponent, _VDOM$Component);
|
|
16519
16534
|
var _proto2 = GridComponent.prototype;
|
|
16520
16535
|
_proto2.getBufferStartEnd = function getBufferStartEnd() {
|
|
16521
16536
|
//{start, end};
|
|
@@ -18235,10 +18250,10 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
18235
18250
|
return GridComponent;
|
|
18236
18251
|
})(VDOM.Component);
|
|
18237
18252
|
var GridColumnHeaderLine = /*#__PURE__*/ (function (_PureContainer) {
|
|
18238
|
-
_inheritsLoose(GridColumnHeaderLine, _PureContainer);
|
|
18239
18253
|
function GridColumnHeaderLine() {
|
|
18240
18254
|
return _PureContainer.apply(this, arguments) || this;
|
|
18241
18255
|
}
|
|
18256
|
+
_inheritsLoose(GridColumnHeaderLine, _PureContainer);
|
|
18242
18257
|
var _proto3 = GridColumnHeaderLine.prototype;
|
|
18243
18258
|
_proto3.declareData = function declareData() {
|
|
18244
18259
|
var _PureContainer$protot;
|
|
@@ -18278,10 +18293,10 @@ GridColumnHeaderLine.prototype.styled = true;
|
|
|
18278
18293
|
GridColumnHeaderLine.prototype.showHeader = true;
|
|
18279
18294
|
GridColumnHeaderLine.autoInit = true;
|
|
18280
18295
|
var GridColumnHeader = /*#__PURE__*/ (function (_Widget) {
|
|
18281
|
-
_inheritsLoose(GridColumnHeader, _Widget);
|
|
18282
18296
|
function GridColumnHeader() {
|
|
18283
18297
|
return _Widget.apply(this, arguments) || this;
|
|
18284
18298
|
}
|
|
18299
|
+
_inheritsLoose(GridColumnHeader, _Widget);
|
|
18285
18300
|
var _proto4 = GridColumnHeader.prototype;
|
|
18286
18301
|
_proto4.declareData = function declareData() {
|
|
18287
18302
|
var _Widget$prototype$dec;
|
|
@@ -18363,10 +18378,10 @@ var GridColumnHeader = /*#__PURE__*/ (function (_Widget) {
|
|
|
18363
18378
|
})(Widget);
|
|
18364
18379
|
GridColumnHeader.autoInit = true;
|
|
18365
18380
|
var GridColumnHeaderCell = /*#__PURE__*/ (function (_PureContainer2) {
|
|
18366
|
-
_inheritsLoose(GridColumnHeaderCell, _PureContainer2);
|
|
18367
18381
|
function GridColumnHeaderCell() {
|
|
18368
18382
|
return _PureContainer2.apply(this, arguments) || this;
|
|
18369
18383
|
}
|
|
18384
|
+
_inheritsLoose(GridColumnHeaderCell, _PureContainer2);
|
|
18370
18385
|
var _proto5 = GridColumnHeaderCell.prototype;
|
|
18371
18386
|
_proto5.declareData = function declareData() {
|
|
18372
18387
|
var _PureContainer2$proto;
|
|
@@ -18546,10 +18561,10 @@ function getDragDropEvent(ev) {
|
|
|
18546
18561
|
}
|
|
18547
18562
|
|
|
18548
18563
|
var TreeNode = /*#__PURE__*/ (function (_Container) {
|
|
18549
|
-
_inheritsLoose(TreeNode, _Container);
|
|
18550
18564
|
function TreeNode() {
|
|
18551
18565
|
return _Container.apply(this, arguments) || this;
|
|
18552
18566
|
}
|
|
18567
|
+
_inheritsLoose(TreeNode, _Container);
|
|
18553
18568
|
var _proto = TreeNode.prototype;
|
|
18554
18569
|
_proto.init = function init() {
|
|
18555
18570
|
if (this.itemIcon) this.leafIcon = this.itemIcon;
|
|
@@ -18656,10 +18671,10 @@ TreeNode.prototype.hideIcon = false;
|
|
|
18656
18671
|
Widget.alias("treenode", TreeNode);
|
|
18657
18672
|
|
|
18658
18673
|
var Pagination = /*#__PURE__*/ (function (_Widget) {
|
|
18659
|
-
_inheritsLoose(Pagination, _Widget);
|
|
18660
18674
|
function Pagination() {
|
|
18661
18675
|
return _Widget.apply(this, arguments) || this;
|
|
18662
18676
|
}
|
|
18677
|
+
_inheritsLoose(Pagination, _Widget);
|
|
18663
18678
|
var _proto = Pagination.prototype;
|
|
18664
18679
|
_proto.declareData = function declareData() {
|
|
18665
18680
|
var _Widget$prototype$dec;
|
|
@@ -18764,10 +18779,10 @@ Pagination.prototype.styled = true;
|
|
|
18764
18779
|
Widget.alias("pagination", Pagination);
|
|
18765
18780
|
|
|
18766
18781
|
var DragSource = /*#__PURE__*/ (function (_Container) {
|
|
18767
|
-
_inheritsLoose(DragSource, _Container);
|
|
18768
18782
|
function DragSource() {
|
|
18769
18783
|
return _Container.apply(this, arguments) || this;
|
|
18770
18784
|
}
|
|
18785
|
+
_inheritsLoose(DragSource, _Container);
|
|
18771
18786
|
var _proto = DragSource.prototype;
|
|
18772
18787
|
_proto.init = function init() {
|
|
18773
18788
|
this.cloneStyle = parseStyle(this.cloneStyle);
|
|
@@ -18826,21 +18841,21 @@ DragSource.prototype.hideOnDrag = false;
|
|
|
18826
18841
|
DragSource.prototype.handled = false;
|
|
18827
18842
|
Widget.alias("dragsource", DragSource);
|
|
18828
18843
|
var DragSourceComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
18829
|
-
_inheritsLoose(DragSourceComponent, _VDOM$Component);
|
|
18830
18844
|
function DragSourceComponent(props) {
|
|
18831
18845
|
var _this;
|
|
18832
18846
|
_this = _VDOM$Component.call(this, props) || this;
|
|
18833
18847
|
_this.state = {
|
|
18834
18848
|
dragged: false,
|
|
18835
18849
|
};
|
|
18836
|
-
_this.beginDragDrop = _this.beginDragDrop.bind(
|
|
18837
|
-
_this.onMouseMove = _this.onMouseMove.bind(
|
|
18838
|
-
_this.onMouseDown = _this.onMouseDown.bind(
|
|
18850
|
+
_this.beginDragDrop = _this.beginDragDrop.bind(_this);
|
|
18851
|
+
_this.onMouseMove = _this.onMouseMove.bind(_this);
|
|
18852
|
+
_this.onMouseDown = _this.onMouseDown.bind(_this);
|
|
18839
18853
|
_this.setRef = function (el) {
|
|
18840
18854
|
_this.el = el;
|
|
18841
18855
|
};
|
|
18842
18856
|
return _this;
|
|
18843
18857
|
}
|
|
18858
|
+
_inheritsLoose(DragSourceComponent, _VDOM$Component);
|
|
18844
18859
|
var _proto2 = DragSourceComponent.prototype;
|
|
18845
18860
|
_proto2.render = function render() {
|
|
18846
18861
|
var _this$props = this.props,
|
|
@@ -18943,10 +18958,10 @@ var DragSourceComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
18943
18958
|
})(VDOM.Component);
|
|
18944
18959
|
|
|
18945
18960
|
var DragHandle = /*#__PURE__*/ (function (_Container) {
|
|
18946
|
-
_inheritsLoose(DragHandle, _Container);
|
|
18947
18961
|
function DragHandle() {
|
|
18948
18962
|
return _Container.apply(this, arguments) || this;
|
|
18949
18963
|
}
|
|
18964
|
+
_inheritsLoose(DragHandle, _Container);
|
|
18950
18965
|
var _proto = DragHandle.prototype;
|
|
18951
18966
|
_proto.explore = function explore(context, instance) {
|
|
18952
18967
|
if (isArray(context.dragHandles)) context.dragHandles.push(instance);
|
|
@@ -18977,10 +18992,10 @@ DragHandle.prototype.baseClass = "draghandle";
|
|
|
18977
18992
|
Widget.alias("draghandle", DragHandle);
|
|
18978
18993
|
|
|
18979
18994
|
var DropZone = /*#__PURE__*/ (function (_Container) {
|
|
18980
|
-
_inheritsLoose(DropZone, _Container);
|
|
18981
18995
|
function DropZone() {
|
|
18982
18996
|
return _Container.apply(this, arguments) || this;
|
|
18983
18997
|
}
|
|
18998
|
+
_inheritsLoose(DropZone, _Container);
|
|
18984
18999
|
var _proto = DropZone.prototype;
|
|
18985
19000
|
_proto.init = function init() {
|
|
18986
19001
|
this.overStyle = parseStyle(this.overStyle);
|
|
@@ -19042,7 +19057,6 @@ DropZone.prototype.vinflate = 0;
|
|
|
19042
19057
|
DropZone.prototype.baseClass = "dropzone";
|
|
19043
19058
|
Widget.alias("dropzone", DropZone);
|
|
19044
19059
|
var DropZoneComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
19045
|
-
_inheritsLoose(DropZoneComponent, _VDOM$Component);
|
|
19046
19060
|
function DropZoneComponent(props) {
|
|
19047
19061
|
var _this;
|
|
19048
19062
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -19051,6 +19065,7 @@ var DropZoneComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
19051
19065
|
};
|
|
19052
19066
|
return _this;
|
|
19053
19067
|
}
|
|
19068
|
+
_inheritsLoose(DropZoneComponent, _VDOM$Component);
|
|
19054
19069
|
var _proto2 = DropZoneComponent.prototype;
|
|
19055
19070
|
_proto2.render = function render() {
|
|
19056
19071
|
var _this2 = this;
|
|
@@ -19218,6 +19233,7 @@ export {
|
|
|
19218
19233
|
HighlightedSearchText,
|
|
19219
19234
|
HtmlElement,
|
|
19220
19235
|
Icon,
|
|
19236
|
+
Label,
|
|
19221
19237
|
LabeledContainer,
|
|
19222
19238
|
Link,
|
|
19223
19239
|
LinkButton,
|