cx 24.2.0 → 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 +43 -52
- package/dist/manifest.js +781 -775
- package/dist/svg.js +70 -71
- package/dist/ui.js +103 -111
- package/dist/util.js +94 -13
- package/dist/widgets.js +209 -217
- package/package.json +1 -1
- package/src/charts/axis/TimeAxis.js +7 -6
- package/src/ui/Format.js +4 -3
- 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/DateTimeField.js +8 -5
- package/src/widgets/form/DateTimePicker.js +9 -8
- package/src/widgets/form/MonthField.js +7 -7
- package/src/widgets/form/MonthPicker.js +17 -16
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
|
-
|
|
153
|
+
return n;
|
|
154
|
+
}),
|
|
155
|
+
_extends.apply(null, arguments)
|
|
156
|
+
);
|
|
158
157
|
}
|
|
159
|
-
function _inheritsLoose(
|
|
160
|
-
|
|
161
|
-
subClass.prototype.constructor = subClass;
|
|
162
|
-
_setPrototypeOf(subClass, superClass);
|
|
158
|
+
function _inheritsLoose(t, o) {
|
|
159
|
+
(t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o);
|
|
163
160
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
174
|
-
if (source == null) return {};
|
|
175
|
-
var target = {};
|
|
176
|
-
var sourceKeys = Object.keys(source);
|
|
177
|
-
var key, i;
|
|
178
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
179
|
-
key = sourceKeys[i];
|
|
180
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
181
|
-
target[key] = source[key];
|
|
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;
|
|
@@ -7185,10 +7175,10 @@ var SquareIcon = registerIcon(
|
|
|
7185
7175
|
);
|
|
7186
7176
|
|
|
7187
7177
|
var Checkbox = /*#__PURE__*/ (function (_Field) {
|
|
7188
|
-
_inheritsLoose(Checkbox, _Field);
|
|
7189
7178
|
function Checkbox() {
|
|
7190
7179
|
return _Field.apply(this, arguments) || this;
|
|
7191
7180
|
}
|
|
7181
|
+
_inheritsLoose(Checkbox, _Field);
|
|
7192
7182
|
var _proto = Checkbox.prototype;
|
|
7193
7183
|
_proto.init = function init() {
|
|
7194
7184
|
if (this.checked) this.value = this.checked;
|
|
@@ -7338,7 +7328,6 @@ Checkbox.prototype.indeterminate = false;
|
|
|
7338
7328
|
Checkbox.prototype.unfocusable = false;
|
|
7339
7329
|
Widget.alias("checkbox", Checkbox);
|
|
7340
7330
|
var CheckboxCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
7341
|
-
_inheritsLoose(CheckboxCmp, _VDOM$Component);
|
|
7342
7331
|
function CheckboxCmp(props) {
|
|
7343
7332
|
var _this3;
|
|
7344
7333
|
_this3 = _VDOM$Component.call(this, props) || this;
|
|
@@ -7347,6 +7336,7 @@ var CheckboxCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7347
7336
|
};
|
|
7348
7337
|
return _this3;
|
|
7349
7338
|
}
|
|
7339
|
+
_inheritsLoose(CheckboxCmp, _VDOM$Component);
|
|
7350
7340
|
var _proto2 = CheckboxCmp.prototype;
|
|
7351
7341
|
_proto2.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
|
|
7352
7342
|
this.setState({
|
|
@@ -7415,10 +7405,10 @@ var CheckboxCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7415
7405
|
})(VDOM.Component);
|
|
7416
7406
|
|
|
7417
7407
|
var Radio = /*#__PURE__*/ (function (_Field) {
|
|
7418
|
-
_inheritsLoose(Radio, _Field);
|
|
7419
7408
|
function Radio() {
|
|
7420
7409
|
return _Field.apply(this, arguments) || this;
|
|
7421
7410
|
}
|
|
7411
|
+
_inheritsLoose(Radio, _Field);
|
|
7422
7412
|
var _proto = Radio.prototype;
|
|
7423
7413
|
_proto.declareData = function declareData() {
|
|
7424
7414
|
var _Field$prototype$decl;
|
|
@@ -7566,7 +7556,6 @@ Radio.prototype["native"] = false;
|
|
|
7566
7556
|
Radio.prototype["default"] = false;
|
|
7567
7557
|
Widget.alias("radio", Radio);
|
|
7568
7558
|
var RadioCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
7569
|
-
_inheritsLoose(RadioCmp, _VDOM$Component);
|
|
7570
7559
|
function RadioCmp(props) {
|
|
7571
7560
|
var _this3;
|
|
7572
7561
|
_this3 = _VDOM$Component.call(this, props) || this;
|
|
@@ -7575,6 +7564,7 @@ var RadioCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7575
7564
|
};
|
|
7576
7565
|
return _this3;
|
|
7577
7566
|
}
|
|
7567
|
+
_inheritsLoose(RadioCmp, _VDOM$Component);
|
|
7578
7568
|
var _proto2 = RadioCmp.prototype;
|
|
7579
7569
|
_proto2.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
|
|
7580
7570
|
this.setState({
|
|
@@ -7627,10 +7617,10 @@ var RadioCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7627
7617
|
})(VDOM.Component);
|
|
7628
7618
|
|
|
7629
7619
|
var Select = /*#__PURE__*/ (function (_Field) {
|
|
7630
|
-
_inheritsLoose(Select, _Field);
|
|
7631
7620
|
function Select() {
|
|
7632
7621
|
return _Field.apply(this, arguments) || this;
|
|
7633
7622
|
}
|
|
7623
|
+
_inheritsLoose(Select, _Field);
|
|
7634
7624
|
var _proto = Select.prototype;
|
|
7635
7625
|
_proto.declareData = function declareData() {
|
|
7636
7626
|
var _Field$prototype$decl;
|
|
@@ -7700,7 +7690,6 @@ Select.prototype.icon = null;
|
|
|
7700
7690
|
Widget.alias("select", Select);
|
|
7701
7691
|
Localization.registerPrototype("cx/widgets/Select", Select);
|
|
7702
7692
|
var SelectComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
7703
|
-
_inheritsLoose(SelectComponent, _VDOM$Component);
|
|
7704
7693
|
function SelectComponent(props) {
|
|
7705
7694
|
var _this2;
|
|
7706
7695
|
_this2 = _VDOM$Component.call(this, props) || this;
|
|
@@ -7710,6 +7699,7 @@ var SelectComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7710
7699
|
};
|
|
7711
7700
|
return _this2;
|
|
7712
7701
|
}
|
|
7702
|
+
_inheritsLoose(SelectComponent, _VDOM$Component);
|
|
7713
7703
|
var _proto2 = SelectComponent.prototype;
|
|
7714
7704
|
_proto2.render = function render() {
|
|
7715
7705
|
var _this3 = this;
|
|
@@ -7875,10 +7865,10 @@ var SelectComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7875
7865
|
return SelectComponent;
|
|
7876
7866
|
})(VDOM.Component);
|
|
7877
7867
|
var Option = /*#__PURE__*/ (function (_HtmlElement) {
|
|
7878
|
-
_inheritsLoose(Option, _HtmlElement);
|
|
7879
7868
|
function Option() {
|
|
7880
7869
|
return _HtmlElement.apply(this, arguments) || this;
|
|
7881
7870
|
}
|
|
7871
|
+
_inheritsLoose(Option, _HtmlElement);
|
|
7882
7872
|
var _proto3 = Option.prototype;
|
|
7883
7873
|
_proto3.declareData = function declareData() {
|
|
7884
7874
|
var _HtmlElement$prototyp;
|
|
@@ -7944,10 +7934,10 @@ var ForwardIcon = registerIcon(
|
|
|
7944
7934
|
);
|
|
7945
7935
|
|
|
7946
7936
|
var Calendar = /*#__PURE__*/ (function (_Field) {
|
|
7947
|
-
_inheritsLoose(Calendar, _Field);
|
|
7948
7937
|
function Calendar() {
|
|
7949
7938
|
return _Field.apply(this, arguments) || this;
|
|
7950
7939
|
}
|
|
7940
|
+
_inheritsLoose(Calendar, _Field);
|
|
7951
7941
|
var _proto = Calendar.prototype;
|
|
7952
7942
|
_proto.declareData = function declareData() {
|
|
7953
7943
|
var _Field$prototype$decl;
|
|
@@ -7980,14 +7970,14 @@ var Calendar = /*#__PURE__*/ (function (_Field) {
|
|
|
7980
7970
|
disabled: data.disabled,
|
|
7981
7971
|
};
|
|
7982
7972
|
if (data.value) {
|
|
7983
|
-
var d =
|
|
7973
|
+
var d = parseDateInvariant(data.value);
|
|
7984
7974
|
if (!isNaN(d.getTime())) {
|
|
7985
7975
|
data.date = zeroTime(d);
|
|
7986
7976
|
}
|
|
7987
7977
|
}
|
|
7988
|
-
if (data.refDate) data.refDate = zeroTime(
|
|
7989
|
-
if (data.maxValue) data.maxValue = zeroTime(
|
|
7990
|
-
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));
|
|
7991
7981
|
_Field.prototype.prepareData.apply(this, arguments);
|
|
7992
7982
|
};
|
|
7993
7983
|
_proto.validate = function validate(context, instance) {
|
|
@@ -8012,7 +8002,7 @@ var Calendar = /*#__PURE__*/ (function (_Field) {
|
|
|
8012
8002
|
if (widget.disabledDaysOfWeek.includes(data.date.getDay())) data.error = this.disabledDaysOfWeekErrorText;
|
|
8013
8003
|
}
|
|
8014
8004
|
if (data.dayData) {
|
|
8015
|
-
var date =
|
|
8005
|
+
var date = parseDateInvariant(data.value);
|
|
8016
8006
|
var info = data.dayData[date.toDateString()];
|
|
8017
8007
|
if (info && info.disabled) data.error = this.disabledDaysOfWeekErrorText;
|
|
8018
8008
|
}
|
|
@@ -8040,7 +8030,7 @@ var Calendar = /*#__PURE__*/ (function (_Field) {
|
|
|
8040
8030
|
if (!validationCheck$1(date, data)) return;
|
|
8041
8031
|
if (this.onBeforeSelect && instance.invoke("onBeforeSelect", e, instance, date) === false) return;
|
|
8042
8032
|
if (widget.partial) {
|
|
8043
|
-
var mixed =
|
|
8033
|
+
var mixed = parseDateInvariant(data.value);
|
|
8044
8034
|
if (data.value && !isNaN(mixed)) {
|
|
8045
8035
|
mixed.setFullYear(date.getFullYear());
|
|
8046
8036
|
mixed.setMonth(date.getMonth());
|
|
@@ -8078,7 +8068,6 @@ var validationCheck$1 = function validationCheck(date, data, disabledDaysOfWeek)
|
|
|
8078
8068
|
return true;
|
|
8079
8069
|
};
|
|
8080
8070
|
var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
8081
|
-
_inheritsLoose(CalendarCmp, _VDOM$Component);
|
|
8082
8071
|
function CalendarCmp(props) {
|
|
8083
8072
|
var _this2;
|
|
8084
8073
|
_this2 = _VDOM$Component.call(this, props) || this;
|
|
@@ -8092,10 +8081,11 @@ var CalendarCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
8092
8081
|
},
|
|
8093
8082
|
_this2.getPage(refDate),
|
|
8094
8083
|
);
|
|
8095
|
-
_this2.handleMouseMove = _this2.handleMouseMove.bind(
|
|
8096
|
-
_this2.handleMouseDown = _this2.handleMouseDown.bind(
|
|
8084
|
+
_this2.handleMouseMove = _this2.handleMouseMove.bind(_this2);
|
|
8085
|
+
_this2.handleMouseDown = _this2.handleMouseDown.bind(_this2);
|
|
8097
8086
|
return _this2;
|
|
8098
8087
|
}
|
|
8088
|
+
_inheritsLoose(CalendarCmp, _VDOM$Component);
|
|
8099
8089
|
var _proto2 = CalendarCmp.prototype;
|
|
8100
8090
|
_proto2.getPage = function getPage(refDate) {
|
|
8101
8091
|
refDate = monthStart(refDate); //make a copy
|
|
@@ -8484,10 +8474,10 @@ var readDate = function readDate(ds) {
|
|
|
8484
8474
|
Widget.alias("calendar", Calendar);
|
|
8485
8475
|
|
|
8486
8476
|
var LookupField = /*#__PURE__*/ (function (_Field) {
|
|
8487
|
-
_inheritsLoose(LookupField, _Field);
|
|
8488
8477
|
function LookupField() {
|
|
8489
8478
|
return _Field.apply(this, arguments) || this;
|
|
8490
8479
|
}
|
|
8480
|
+
_inheritsLoose(LookupField, _Field);
|
|
8491
8481
|
var _proto = LookupField.prototype;
|
|
8492
8482
|
_proto.declareData = function declareData() {
|
|
8493
8483
|
var _Field$prototype$decl;
|
|
@@ -8770,7 +8760,6 @@ function convertOption(bindings, data) {
|
|
|
8770
8760
|
return result.$value;
|
|
8771
8761
|
}
|
|
8772
8762
|
var SelectionDelegate = /*#__PURE__*/ (function (_Selection) {
|
|
8773
|
-
_inheritsLoose(SelectionDelegate, _Selection);
|
|
8774
8763
|
function SelectionDelegate(_ref) {
|
|
8775
8764
|
var _this4;
|
|
8776
8765
|
var delegate = _ref.delegate;
|
|
@@ -8778,6 +8767,7 @@ var SelectionDelegate = /*#__PURE__*/ (function (_Selection) {
|
|
|
8778
8767
|
_this4.delegate = delegate;
|
|
8779
8768
|
return _this4;
|
|
8780
8769
|
}
|
|
8770
|
+
_inheritsLoose(SelectionDelegate, _Selection);
|
|
8781
8771
|
var _proto2 = SelectionDelegate.prototype;
|
|
8782
8772
|
_proto2.getIsSelectedDelegate = function getIsSelectedDelegate(store) {
|
|
8783
8773
|
var _this5 = this;
|
|
@@ -8791,7 +8781,6 @@ var SelectionDelegate = /*#__PURE__*/ (function (_Selection) {
|
|
|
8791
8781
|
return SelectionDelegate;
|
|
8792
8782
|
})(Selection);
|
|
8793
8783
|
var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
8794
|
-
_inheritsLoose(LookupComponent, _VDOM$Component);
|
|
8795
8784
|
function LookupComponent(props) {
|
|
8796
8785
|
var _this6;
|
|
8797
8786
|
_this6 = _VDOM$Component.call(this, props) || this;
|
|
@@ -8811,6 +8800,7 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
8811
8800
|
});
|
|
8812
8801
|
return _this6;
|
|
8813
8802
|
}
|
|
8803
|
+
_inheritsLoose(LookupComponent, _VDOM$Component);
|
|
8814
8804
|
var _proto3 = LookupComponent.prototype;
|
|
8815
8805
|
_proto3.getOptionKey = function getOptionKey(data) {
|
|
8816
8806
|
return this.props.bindings
|
|
@@ -9754,10 +9744,10 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
9754
9744
|
|
|
9755
9745
|
enableCultureSensitiveFormatting();
|
|
9756
9746
|
var NumberField = /*#__PURE__*/ (function (_Field) {
|
|
9757
|
-
_inheritsLoose(NumberField, _Field);
|
|
9758
9747
|
function NumberField() {
|
|
9759
9748
|
return _Field.apply(this, arguments) || this;
|
|
9760
9749
|
}
|
|
9750
|
+
_inheritsLoose(NumberField, _Field);
|
|
9761
9751
|
var _proto = NumberField.prototype;
|
|
9762
9752
|
_proto.declareData = function declareData() {
|
|
9763
9753
|
var _Field$prototype$decl;
|
|
@@ -9868,7 +9858,6 @@ NumberField.prototype.alwaysShowClear = false;
|
|
|
9868
9858
|
Widget.alias("numberfield", NumberField);
|
|
9869
9859
|
Localization.registerPrototype("cx/widgets/NumberField", NumberField);
|
|
9870
9860
|
var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
9871
|
-
_inheritsLoose(Input, _VDOM$Component);
|
|
9872
9861
|
function Input(props) {
|
|
9873
9862
|
var _this;
|
|
9874
9863
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -9877,6 +9866,7 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
9877
9866
|
};
|
|
9878
9867
|
return _this;
|
|
9879
9868
|
}
|
|
9869
|
+
_inheritsLoose(Input, _VDOM$Component);
|
|
9880
9870
|
var _proto2 = Input.prototype;
|
|
9881
9871
|
_proto2.render = function render() {
|
|
9882
9872
|
var _this2 = this;
|
|
@@ -10199,10 +10189,10 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10199
10189
|
})(VDOM.Component);
|
|
10200
10190
|
|
|
10201
10191
|
var TextArea = /*#__PURE__*/ (function (_TextField) {
|
|
10202
|
-
_inheritsLoose(TextArea, _TextField);
|
|
10203
10192
|
function TextArea() {
|
|
10204
10193
|
return _TextField.apply(this, arguments) || this;
|
|
10205
10194
|
}
|
|
10195
|
+
_inheritsLoose(TextArea, _TextField);
|
|
10206
10196
|
var _proto = TextArea.prototype;
|
|
10207
10197
|
_proto.declareData = function declareData() {
|
|
10208
10198
|
var _TextField$prototype$;
|
|
@@ -10244,7 +10234,6 @@ TextArea.prototype.baseClass = "textarea";
|
|
|
10244
10234
|
TextArea.prototype.reactOn = "blur";
|
|
10245
10235
|
TextArea.prototype.suppressErrorsUntilVisited = true;
|
|
10246
10236
|
var Input = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
10247
|
-
_inheritsLoose(Input, _VDOM$Component);
|
|
10248
10237
|
function Input(props) {
|
|
10249
10238
|
var _this;
|
|
10250
10239
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -10253,6 +10242,7 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10253
10242
|
};
|
|
10254
10243
|
return _this;
|
|
10255
10244
|
}
|
|
10245
|
+
_inheritsLoose(Input, _VDOM$Component);
|
|
10256
10246
|
var _proto2 = Input.prototype;
|
|
10257
10247
|
_proto2.render = function render() {
|
|
10258
10248
|
var _this2 = this;
|
|
@@ -10401,10 +10391,10 @@ var Input = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10401
10391
|
Widget.alias("textarea", TextArea);
|
|
10402
10392
|
|
|
10403
10393
|
var ValidationGroup = /*#__PURE__*/ (function (_PureContainer) {
|
|
10404
|
-
_inheritsLoose(ValidationGroup, _PureContainer);
|
|
10405
10394
|
function ValidationGroup() {
|
|
10406
10395
|
return _PureContainer.apply(this, arguments) || this;
|
|
10407
10396
|
}
|
|
10397
|
+
_inheritsLoose(ValidationGroup, _PureContainer);
|
|
10408
10398
|
var _proto = ValidationGroup.prototype;
|
|
10409
10399
|
_proto.declareData = function declareData() {
|
|
10410
10400
|
var _PureContainer$protot;
|
|
@@ -10467,19 +10457,19 @@ ValidationGroup.prototype.isolated = false;
|
|
|
10467
10457
|
Widget.alias("validation-group", ValidationGroup);
|
|
10468
10458
|
|
|
10469
10459
|
var FieldGroup = /*#__PURE__*/ (function (_ValidationGroup) {
|
|
10470
|
-
_inheritsLoose(FieldGroup, _ValidationGroup);
|
|
10471
10460
|
function FieldGroup() {
|
|
10472
10461
|
return _ValidationGroup.apply(this, arguments) || this;
|
|
10473
10462
|
}
|
|
10463
|
+
_inheritsLoose(FieldGroup, _ValidationGroup);
|
|
10474
10464
|
return FieldGroup;
|
|
10475
10465
|
})(ValidationGroup);
|
|
10476
10466
|
Widget.alias("field-group", FieldGroup);
|
|
10477
10467
|
|
|
10478
10468
|
var LabeledContainer = /*#__PURE__*/ (function (_FieldGroup) {
|
|
10479
|
-
_inheritsLoose(LabeledContainer, _FieldGroup);
|
|
10480
10469
|
function LabeledContainer() {
|
|
10481
10470
|
return _FieldGroup.apply(this, arguments) || this;
|
|
10482
10471
|
}
|
|
10472
|
+
_inheritsLoose(LabeledContainer, _FieldGroup);
|
|
10483
10473
|
var _proto = LabeledContainer.prototype;
|
|
10484
10474
|
_proto.declareData = function declareData() {
|
|
10485
10475
|
var _FieldGroup$prototype;
|
|
@@ -10536,10 +10526,10 @@ Widget.alias("labeled-container", LabeledContainer);
|
|
|
10536
10526
|
|
|
10537
10527
|
enableCultureSensitiveFormatting();
|
|
10538
10528
|
var MonthPicker = /*#__PURE__*/ (function (_Field) {
|
|
10539
|
-
_inheritsLoose(MonthPicker, _Field);
|
|
10540
10529
|
function MonthPicker() {
|
|
10541
10530
|
return _Field.apply(this, arguments) || this;
|
|
10542
10531
|
}
|
|
10532
|
+
_inheritsLoose(MonthPicker, _Field);
|
|
10543
10533
|
var _proto = MonthPicker.prototype;
|
|
10544
10534
|
_proto.declareData = function declareData() {
|
|
10545
10535
|
var _Field$prototype$decl;
|
|
@@ -10583,14 +10573,14 @@ var MonthPicker = /*#__PURE__*/ (function (_Field) {
|
|
|
10583
10573
|
data.stateMods = {
|
|
10584
10574
|
disabled: data.disabled,
|
|
10585
10575
|
};
|
|
10586
|
-
if (!this.range && data.value) data.date = monthStart(
|
|
10576
|
+
if (!this.range && data.value) data.date = monthStart(parseDateInvariant(data.value));
|
|
10587
10577
|
if (this.range) {
|
|
10588
|
-
if (data.from) data.from = monthStart(
|
|
10589
|
-
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));
|
|
10590
10580
|
}
|
|
10591
|
-
if (data.refDate) data.refDate = monthStart(
|
|
10592
|
-
if (data.maxValue) data.maxValue = monthStart(
|
|
10593
|
-
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));
|
|
10594
10584
|
_Field.prototype.prepareData.apply(this, arguments);
|
|
10595
10585
|
};
|
|
10596
10586
|
_proto.validate = function validate(context, instance) {
|
|
@@ -10662,7 +10652,6 @@ var monthNumber = function monthNumber(date) {
|
|
|
10662
10652
|
return date.getFullYear() * 12 + date.getMonth();
|
|
10663
10653
|
};
|
|
10664
10654
|
var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
10665
|
-
_inheritsLoose(MonthPickerComponent, _VDOM$Component);
|
|
10666
10655
|
function MonthPickerComponent(props) {
|
|
10667
10656
|
var _this;
|
|
10668
10657
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -10679,14 +10668,15 @@ var MonthPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10679
10668
|
start: widget.startYear,
|
|
10680
10669
|
end: widget.startYear + widget.bufferSize,
|
|
10681
10670
|
};
|
|
10682
|
-
_this.handleMouseDown = _this.handleMouseDown.bind(
|
|
10683
|
-
_this.handleMouseUp = _this.handleMouseUp.bind(
|
|
10684
|
-
_this.handleMouseEnter = _this.handleMouseEnter.bind(
|
|
10685
|
-
_this.handleKeyPress = _this.handleKeyPress.bind(
|
|
10686
|
-
_this.handleTouchMove = _this.handleTouchMove.bind(
|
|
10687
|
-
_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);
|
|
10688
10677
|
return _this;
|
|
10689
10678
|
}
|
|
10679
|
+
_inheritsLoose(MonthPickerComponent, _VDOM$Component);
|
|
10690
10680
|
var _proto2 = MonthPickerComponent.prototype;
|
|
10691
10681
|
_proto2.extractCursorInfo = function extractCursorInfo(el) {
|
|
10692
10682
|
if (!el.attributes["data-point"].value) return false;
|
|
@@ -11250,10 +11240,10 @@ var PixelPickerIcon = registerIcon(
|
|
|
11250
11240
|
);
|
|
11251
11241
|
|
|
11252
11242
|
var ColorPicker = /*#__PURE__*/ (function (_Field) {
|
|
11253
|
-
_inheritsLoose(ColorPicker, _Field);
|
|
11254
11243
|
function ColorPicker() {
|
|
11255
11244
|
return _Field.apply(this, arguments) || this;
|
|
11256
11245
|
}
|
|
11246
|
+
_inheritsLoose(ColorPicker, _Field);
|
|
11257
11247
|
var _proto = ColorPicker.prototype;
|
|
11258
11248
|
_proto.declareData = function declareData() {
|
|
11259
11249
|
var _Field$prototype$decl;
|
|
@@ -11321,7 +11311,6 @@ ColorPicker.prototype.reportOn = "blur change";
|
|
|
11321
11311
|
ColorPicker.prototype.format = "rgba";
|
|
11322
11312
|
Widget.alias("color-picker", ColorPicker);
|
|
11323
11313
|
var ColorPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
11324
|
-
_inheritsLoose(ColorPickerComponent, _VDOM$Component);
|
|
11325
11314
|
function ColorPickerComponent(props) {
|
|
11326
11315
|
var _this;
|
|
11327
11316
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -11334,6 +11323,7 @@ var ColorPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
11334
11323
|
}
|
|
11335
11324
|
return _this;
|
|
11336
11325
|
}
|
|
11326
|
+
_inheritsLoose(ColorPickerComponent, _VDOM$Component);
|
|
11337
11327
|
var _proto2 = ColorPickerComponent.prototype;
|
|
11338
11328
|
_proto2.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
|
|
11339
11329
|
var data = props.instance.data;
|
|
@@ -11807,10 +11797,10 @@ var ColorPickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
11807
11797
|
})(VDOM.Component);
|
|
11808
11798
|
|
|
11809
11799
|
var MonthField = /*#__PURE__*/ (function (_Field) {
|
|
11810
|
-
_inheritsLoose(MonthField, _Field);
|
|
11811
11800
|
function MonthField() {
|
|
11812
11801
|
return _Field.apply(this, arguments) || this;
|
|
11813
11802
|
}
|
|
11803
|
+
_inheritsLoose(MonthField, _Field);
|
|
11814
11804
|
var _proto = MonthField.prototype;
|
|
11815
11805
|
_proto.declareData = function declareData() {
|
|
11816
11806
|
var _Field$prototype$decl;
|
|
@@ -11867,20 +11857,20 @@ var MonthField = /*#__PURE__*/ (function (_Field) {
|
|
|
11867
11857
|
month: "short",
|
|
11868
11858
|
};
|
|
11869
11859
|
if (!this.range && data.value) {
|
|
11870
|
-
data.date =
|
|
11860
|
+
data.date = parseDateInvariant(data.value);
|
|
11871
11861
|
data.formatted = this.culture.format(data.date, formatOptions);
|
|
11872
11862
|
} else if (this.range && data.from && data.to) {
|
|
11873
|
-
data.from =
|
|
11874
|
-
data.to =
|
|
11863
|
+
data.from = parseDateInvariant(data.from);
|
|
11864
|
+
data.to = parseDateInvariant(data.to);
|
|
11875
11865
|
data.to.setDate(data.to.getDate() - 1);
|
|
11876
11866
|
var fromStr = this.culture.format(data.from, formatOptions);
|
|
11877
11867
|
var toStr = this.culture.format(data.to, formatOptions);
|
|
11878
11868
|
if (fromStr != toStr) data.formatted = fromStr + " - " + toStr;
|
|
11879
11869
|
else data.formatted = fromStr;
|
|
11880
11870
|
}
|
|
11881
|
-
if (data.refDate) data.refDate = monthStart(
|
|
11882
|
-
if (data.maxValue) data.maxValue = monthStart(
|
|
11883
|
-
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));
|
|
11884
11874
|
instance.lastDropdown = context.lastDropdown;
|
|
11885
11875
|
};
|
|
11886
11876
|
_proto.validateRequired = function validateRequired(context, instance) {
|
|
@@ -11980,17 +11970,17 @@ MonthField.prototype.reactOn = "enter blur";
|
|
|
11980
11970
|
Localization.registerPrototype("cx/widgets/MonthField", MonthField);
|
|
11981
11971
|
Widget.alias("monthfield", MonthField);
|
|
11982
11972
|
var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
11983
|
-
_inheritsLoose(MonthInput, _VDOM$Component);
|
|
11984
11973
|
function MonthInput(props) {
|
|
11985
11974
|
var _this;
|
|
11986
11975
|
_this = _VDOM$Component.call(this, props) || this;
|
|
11987
|
-
_this.props.instance.component =
|
|
11976
|
+
_this.props.instance.component = _this;
|
|
11988
11977
|
_this.state = {
|
|
11989
11978
|
dropdownOpen: false,
|
|
11990
11979
|
focus: false,
|
|
11991
11980
|
};
|
|
11992
11981
|
return _this;
|
|
11993
11982
|
}
|
|
11983
|
+
_inheritsLoose(MonthInput, _VDOM$Component);
|
|
11994
11984
|
var _proto2 = MonthInput.prototype;
|
|
11995
11985
|
_proto2.getDropdown = function getDropdown() {
|
|
11996
11986
|
var _this2 = this;
|
|
@@ -12299,10 +12289,10 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12299
12289
|
})(VDOM.Component);
|
|
12300
12290
|
|
|
12301
12291
|
var ColorField = /*#__PURE__*/ (function (_Field) {
|
|
12302
|
-
_inheritsLoose(ColorField, _Field);
|
|
12303
12292
|
function ColorField() {
|
|
12304
12293
|
return _Field.apply(this, arguments) || this;
|
|
12305
12294
|
}
|
|
12295
|
+
_inheritsLoose(ColorField, _Field);
|
|
12306
12296
|
var _proto = ColorField.prototype;
|
|
12307
12297
|
_proto.declareData = function declareData() {
|
|
12308
12298
|
var _Field$prototype$decl;
|
|
@@ -12364,7 +12354,6 @@ ColorField.prototype.alwaysShowClear = false;
|
|
|
12364
12354
|
Widget.alias("color-field", ColorField);
|
|
12365
12355
|
Localization.registerPrototype("cx/widgets/ColorField", ColorField);
|
|
12366
12356
|
var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
12367
|
-
_inheritsLoose(ColorInput, _VDOM$Component);
|
|
12368
12357
|
function ColorInput(props) {
|
|
12369
12358
|
var _this;
|
|
12370
12359
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -12376,6 +12365,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12376
12365
|
};
|
|
12377
12366
|
return _this;
|
|
12378
12367
|
}
|
|
12368
|
+
_inheritsLoose(ColorInput, _VDOM$Component);
|
|
12379
12369
|
var _proto2 = ColorInput.prototype;
|
|
12380
12370
|
_proto2.getDropdown = function getDropdown() {
|
|
12381
12371
|
var _this2 = this;
|
|
@@ -12699,10 +12689,10 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12699
12689
|
})(VDOM.Component);
|
|
12700
12690
|
|
|
12701
12691
|
var UploadButton = /*#__PURE__*/ (function (_Field) {
|
|
12702
|
-
_inheritsLoose(UploadButton, _Field);
|
|
12703
12692
|
function UploadButton() {
|
|
12704
12693
|
return _Field.apply(this, arguments) || this;
|
|
12705
12694
|
}
|
|
12695
|
+
_inheritsLoose(UploadButton, _Field);
|
|
12706
12696
|
var _proto = UploadButton.prototype;
|
|
12707
12697
|
_proto.declareData = function declareData() {
|
|
12708
12698
|
var _Field$prototype$decl;
|
|
@@ -12741,7 +12731,6 @@ UploadButton.prototype.abortOnDestroy = false;
|
|
|
12741
12731
|
UploadButton.prototype.uploadInProgressText = "Upload is in progress.";
|
|
12742
12732
|
Localization.registerPrototype("cx/widgets/UploadButton", UploadButton);
|
|
12743
12733
|
var UploadButtonComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
12744
|
-
_inheritsLoose(UploadButtonComponent, _VDOM$Component);
|
|
12745
12734
|
function UploadButtonComponent(props) {
|
|
12746
12735
|
var _this;
|
|
12747
12736
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -12752,6 +12741,7 @@ var UploadButtonComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12752
12741
|
};
|
|
12753
12742
|
return _this;
|
|
12754
12743
|
}
|
|
12744
|
+
_inheritsLoose(UploadButtonComponent, _VDOM$Component);
|
|
12755
12745
|
var _proto2 = UploadButtonComponent.prototype;
|
|
12756
12746
|
_proto2.render = function render() {
|
|
12757
12747
|
var _this2 = this;
|
|
@@ -12907,10 +12897,10 @@ var UploadButtonComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12907
12897
|
Widget.alias("upload-button", UploadButton);
|
|
12908
12898
|
|
|
12909
12899
|
var Slider = /*#__PURE__*/ (function (_Field) {
|
|
12910
|
-
_inheritsLoose(Slider, _Field);
|
|
12911
12900
|
function Slider() {
|
|
12912
12901
|
return _Field.apply(this, arguments) || this;
|
|
12913
12902
|
}
|
|
12903
|
+
_inheritsLoose(Slider, _Field);
|
|
12914
12904
|
var _proto = Slider.prototype;
|
|
12915
12905
|
_proto.declareData = function declareData() {
|
|
12916
12906
|
var _Field$prototype$decl;
|
|
@@ -12983,7 +12973,6 @@ Slider.prototype.wheel = false;
|
|
|
12983
12973
|
Slider.prototype.invert = false;
|
|
12984
12974
|
Widget.alias("slider", Slider);
|
|
12985
12975
|
var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
12986
|
-
_inheritsLoose(SliderComponent, _VDOM$Component);
|
|
12987
12976
|
function SliderComponent(props) {
|
|
12988
12977
|
var _this;
|
|
12989
12978
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -12995,6 +12984,7 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12995
12984
|
};
|
|
12996
12985
|
return _this;
|
|
12997
12986
|
}
|
|
12987
|
+
_inheritsLoose(SliderComponent, _VDOM$Component);
|
|
12998
12988
|
var _proto2 = SliderComponent.prototype;
|
|
12999
12989
|
_proto2.render = function render() {
|
|
13000
12990
|
var _extends2,
|
|
@@ -13349,10 +13339,10 @@ var SliderComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13349
13339
|
})(VDOM.Component);
|
|
13350
13340
|
|
|
13351
13341
|
var Switch = /*#__PURE__*/ (function (_Field) {
|
|
13352
|
-
_inheritsLoose(Switch, _Field);
|
|
13353
13342
|
function Switch() {
|
|
13354
13343
|
return _Field.apply(this, arguments) || this;
|
|
13355
13344
|
}
|
|
13345
|
+
_inheritsLoose(Switch, _Field);
|
|
13356
13346
|
var _proto = Switch.prototype;
|
|
13357
13347
|
_proto.declareData = function declareData() {
|
|
13358
13348
|
var _Field$prototype$decl;
|
|
@@ -13480,10 +13470,10 @@ Switch.prototype.focusOnMouseDown = false;
|
|
|
13480
13470
|
Widget.alias("switch", Switch);
|
|
13481
13471
|
|
|
13482
13472
|
var Wheel = /*#__PURE__*/ (function (_PureContainer) {
|
|
13483
|
-
_inheritsLoose(Wheel, _PureContainer);
|
|
13484
13473
|
function Wheel() {
|
|
13485
13474
|
return _PureContainer.apply(this, arguments) || this;
|
|
13486
13475
|
}
|
|
13476
|
+
_inheritsLoose(Wheel, _PureContainer);
|
|
13487
13477
|
var _proto = Wheel.prototype;
|
|
13488
13478
|
_proto.declareData = function declareData() {
|
|
13489
13479
|
var _PureContainer$protot;
|
|
@@ -13538,7 +13528,6 @@ Wheel.prototype.baseClass = "wheel";
|
|
|
13538
13528
|
Wheel.prototype.size = 3;
|
|
13539
13529
|
Wheel.prototype.styled = true;
|
|
13540
13530
|
var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
13541
|
-
_inheritsLoose(WheelComponent, _VDOM$Component);
|
|
13542
13531
|
function WheelComponent(props) {
|
|
13543
13532
|
var _this;
|
|
13544
13533
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -13550,10 +13539,11 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13550
13539
|
_this.scrollRef = function (el) {
|
|
13551
13540
|
_this.scrollEl = el;
|
|
13552
13541
|
};
|
|
13553
|
-
_this.onWheel = _this.onWheel.bind(
|
|
13554
|
-
_this.onKeyDown = _this.onKeyDown.bind(
|
|
13542
|
+
_this.onWheel = _this.onWheel.bind(_this);
|
|
13543
|
+
_this.onKeyDown = _this.onKeyDown.bind(_this);
|
|
13555
13544
|
return _this;
|
|
13556
13545
|
}
|
|
13546
|
+
_inheritsLoose(WheelComponent, _VDOM$Component);
|
|
13557
13547
|
var _proto2 = WheelComponent.prototype;
|
|
13558
13548
|
_proto2.render = function render() {
|
|
13559
13549
|
var _this2 = this;
|
|
@@ -13745,7 +13735,7 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13745
13735
|
_proto2.scrollTo = function scrollTo() {
|
|
13746
13736
|
var _this4 = this;
|
|
13747
13737
|
var size = this.props.size;
|
|
13748
|
-
var
|
|
13738
|
+
var _callback = function callback() {
|
|
13749
13739
|
if (!_this4.scrolling) return;
|
|
13750
13740
|
var x = (_this4.index * _this4.state.wheelHeight) / size;
|
|
13751
13741
|
var delta = Math.round(x - _this4.scrollEl.scrollTop);
|
|
@@ -13757,11 +13747,11 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13757
13747
|
delta = Math.abs(delta) / 10;
|
|
13758
13748
|
if (delta < 1) delta = 1;
|
|
13759
13749
|
_this4.scrollEl.scrollTop += sign * delta;
|
|
13760
|
-
requestAnimationFrame(
|
|
13750
|
+
requestAnimationFrame(_callback);
|
|
13761
13751
|
};
|
|
13762
13752
|
if (!this.scrolling) {
|
|
13763
13753
|
this.scrolling = true;
|
|
13764
|
-
requestAnimationFrame(
|
|
13754
|
+
requestAnimationFrame(_callback);
|
|
13765
13755
|
}
|
|
13766
13756
|
};
|
|
13767
13757
|
return WheelComponent;
|
|
@@ -13769,10 +13759,10 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13769
13759
|
|
|
13770
13760
|
enableCultureSensitiveFormatting();
|
|
13771
13761
|
var DateTimePicker = /*#__PURE__*/ (function (_Widget) {
|
|
13772
|
-
_inheritsLoose(DateTimePicker, _Widget);
|
|
13773
13762
|
function DateTimePicker() {
|
|
13774
13763
|
return _Widget.apply(this, arguments) || this;
|
|
13775
13764
|
}
|
|
13765
|
+
_inheritsLoose(DateTimePicker, _Widget);
|
|
13776
13766
|
var _proto = DateTimePicker.prototype;
|
|
13777
13767
|
_proto.declareData = function declareData() {
|
|
13778
13768
|
var _Widget$prototype$dec;
|
|
@@ -13806,21 +13796,20 @@ DateTimePicker.prototype.autoFocus = false;
|
|
|
13806
13796
|
DateTimePicker.prototype.segment = "datetime";
|
|
13807
13797
|
DateTimePicker.prototype.showSeconds = false;
|
|
13808
13798
|
var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
13809
|
-
_inheritsLoose(DateTimePickerComponent, _VDOM$Component);
|
|
13810
13799
|
function DateTimePickerComponent(props) {
|
|
13811
13800
|
var _this;
|
|
13812
13801
|
_this = _VDOM$Component.call(this, props) || this;
|
|
13813
|
-
var date = props.data.value ?
|
|
13802
|
+
var date = props.data.value ? parseDateInvariant(props.data.value) : new Date();
|
|
13814
13803
|
if (isNaN(date.getTime())) date = new Date();
|
|
13815
13804
|
_this.state = {
|
|
13816
13805
|
date: date,
|
|
13817
13806
|
activeWheel: null,
|
|
13818
13807
|
};
|
|
13819
13808
|
var widget = props.instance.widget;
|
|
13820
|
-
_this.handleChange = _this.handleChange.bind(
|
|
13821
|
-
_this.onFocus = _this.onFocus.bind(
|
|
13822
|
-
_this.onBlur = _this.onBlur.bind(
|
|
13823
|
-
_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);
|
|
13824
13813
|
var showDate = props.segment.indexOf("date") !== -1;
|
|
13825
13814
|
var showTime = props.segment.indexOf("time") !== -1;
|
|
13826
13815
|
_this.wheels = {
|
|
@@ -13834,9 +13823,10 @@ var DateTimePickerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13834
13823
|
_this.keyDownPipes = {};
|
|
13835
13824
|
return _this;
|
|
13836
13825
|
}
|
|
13826
|
+
_inheritsLoose(DateTimePickerComponent, _VDOM$Component);
|
|
13837
13827
|
var _proto2 = DateTimePickerComponent.prototype;
|
|
13838
13828
|
_proto2.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(props) {
|
|
13839
|
-
var date = props.data.value ?
|
|
13829
|
+
var date = props.data.value ? parseDateInvariant(props.data.value) : new Date();
|
|
13840
13830
|
if (isNaN(date.getTime())) date = new Date();
|
|
13841
13831
|
this.setState({
|
|
13842
13832
|
date: date,
|
|
@@ -14310,10 +14300,10 @@ var TimeList = createFunctionalComponent(function (_ref) {
|
|
|
14310
14300
|
});
|
|
14311
14301
|
|
|
14312
14302
|
var DateTimeField = /*#__PURE__*/ (function (_Field) {
|
|
14313
|
-
_inheritsLoose(DateTimeField, _Field);
|
|
14314
14303
|
function DateTimeField() {
|
|
14315
14304
|
return _Field.apply(this, arguments) || this;
|
|
14316
14305
|
}
|
|
14306
|
+
_inheritsLoose(DateTimeField, _Field);
|
|
14317
14307
|
var _proto = DateTimeField.prototype;
|
|
14318
14308
|
_proto.declareData = function declareData() {
|
|
14319
14309
|
var _Field$prototype$decl;
|
|
@@ -14360,7 +14350,9 @@ var DateTimeField = /*#__PURE__*/ (function (_Field) {
|
|
|
14360
14350
|
_proto.prepareData = function prepareData(context, instance) {
|
|
14361
14351
|
var data = instance.data;
|
|
14362
14352
|
if (data.value) {
|
|
14363
|
-
var date =
|
|
14353
|
+
var date = parseDateInvariant(data.value);
|
|
14354
|
+
// let date = new Date(data.value);
|
|
14355
|
+
|
|
14364
14356
|
if (isNaN(date.getTime())) data.formatted = String(data.value);
|
|
14365
14357
|
else {
|
|
14366
14358
|
// handle utc edge cases
|
|
@@ -14369,9 +14361,9 @@ var DateTimeField = /*#__PURE__*/ (function (_Field) {
|
|
|
14369
14361
|
}
|
|
14370
14362
|
data.date = date;
|
|
14371
14363
|
} else data.formatted = "";
|
|
14372
|
-
if (data.refDate) data.refDate = zeroTime(
|
|
14373
|
-
if (data.maxValue) data.maxValue =
|
|
14374
|
-
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);
|
|
14375
14367
|
if (this.segment == "date") {
|
|
14376
14368
|
if (data.minValue) data.minValue = zeroTime(data.minValue);
|
|
14377
14369
|
if (data.maxValue) data.maxValue = zeroTime(data.maxValue);
|
|
@@ -14466,17 +14458,17 @@ DateTimeField.prototype.focusInputFirst = false;
|
|
|
14466
14458
|
Widget.alias("datetimefield", DateTimeField);
|
|
14467
14459
|
Localization.registerPrototype("cx/widgets/DateTimeField", DateTimeField);
|
|
14468
14460
|
var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
14469
|
-
_inheritsLoose(DateTimeInput, _VDOM$Component);
|
|
14470
14461
|
function DateTimeInput(props) {
|
|
14471
14462
|
var _this;
|
|
14472
14463
|
_this = _VDOM$Component.call(this, props) || this;
|
|
14473
|
-
props.instance.component =
|
|
14464
|
+
props.instance.component = _this;
|
|
14474
14465
|
_this.state = {
|
|
14475
14466
|
dropdownOpen: false,
|
|
14476
14467
|
focus: false,
|
|
14477
14468
|
};
|
|
14478
14469
|
return _this;
|
|
14479
14470
|
}
|
|
14471
|
+
_inheritsLoose(DateTimeInput, _VDOM$Component);
|
|
14480
14472
|
var _proto2 = DateTimeInput.prototype;
|
|
14481
14473
|
_proto2.getDropdown = function getDropdown() {
|
|
14482
14474
|
var _this2 = this;
|
|
@@ -14831,7 +14823,7 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
14831
14823
|
inputError: isNaN(date) && widget.inputErrorText,
|
|
14832
14824
|
});
|
|
14833
14825
|
if (!isNaN(date)) {
|
|
14834
|
-
var mixed =
|
|
14826
|
+
var mixed = parseDateInvariant(baseValue);
|
|
14835
14827
|
if (date && baseValue && !isNaN(mixed) && widget.partial) {
|
|
14836
14828
|
switch (widget.segment) {
|
|
14837
14829
|
case "date":
|
|
@@ -14859,10 +14851,10 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
14859
14851
|
})(VDOM.Component);
|
|
14860
14852
|
|
|
14861
14853
|
var DateField = /*#__PURE__*/ (function (_DateTimeField) {
|
|
14862
|
-
_inheritsLoose(DateField, _DateTimeField);
|
|
14863
14854
|
function DateField() {
|
|
14864
14855
|
return _DateTimeField.apply(this, arguments) || this;
|
|
14865
14856
|
}
|
|
14857
|
+
_inheritsLoose(DateField, _DateTimeField);
|
|
14866
14858
|
return DateField;
|
|
14867
14859
|
})(DateTimeField);
|
|
14868
14860
|
DateField.prototype.picker = "calendar";
|
|
@@ -14871,10 +14863,10 @@ Widget.alias("datefield", DateField);
|
|
|
14871
14863
|
Localization.registerPrototype("cx/widgets/DateField", DateField);
|
|
14872
14864
|
|
|
14873
14865
|
var TimeField = /*#__PURE__*/ (function (_DateTimeField) {
|
|
14874
|
-
_inheritsLoose(TimeField, _DateTimeField);
|
|
14875
14866
|
function TimeField() {
|
|
14876
14867
|
return _DateTimeField.apply(this, arguments) || this;
|
|
14877
14868
|
}
|
|
14869
|
+
_inheritsLoose(TimeField, _DateTimeField);
|
|
14878
14870
|
return TimeField;
|
|
14879
14871
|
})(DateTimeField);
|
|
14880
14872
|
TimeField.prototype.segment = "time";
|
|
@@ -14882,10 +14874,10 @@ Widget.alias("timefield", TimeField);
|
|
|
14882
14874
|
Localization.registerPrototype("cx/widgets/TimeField", TimeField);
|
|
14883
14875
|
|
|
14884
14876
|
var Validator = /*#__PURE__*/ (function (_Field) {
|
|
14885
|
-
_inheritsLoose(Validator, _Field);
|
|
14886
14877
|
function Validator() {
|
|
14887
14878
|
return _Field.apply(this, arguments) || this;
|
|
14888
14879
|
}
|
|
14880
|
+
_inheritsLoose(Validator, _Field);
|
|
14889
14881
|
var _proto = Validator.prototype;
|
|
14890
14882
|
_proto.declareData = function declareData() {
|
|
14891
14883
|
var _Field$prototype$decl;
|
|
@@ -14929,10 +14921,10 @@ var DropDownIcon = registerIcon(
|
|
|
14929
14921
|
);
|
|
14930
14922
|
|
|
14931
14923
|
var GridCell = /*#__PURE__*/ (function (_PureContainer) {
|
|
14932
|
-
_inheritsLoose(GridCell, _PureContainer);
|
|
14933
14924
|
function GridCell() {
|
|
14934
14925
|
return _PureContainer.apply(this, arguments) || this;
|
|
14935
14926
|
}
|
|
14927
|
+
_inheritsLoose(GridCell, _PureContainer);
|
|
14936
14928
|
var _proto = GridCell.prototype;
|
|
14937
14929
|
_proto.declareData = function declareData() {
|
|
14938
14930
|
var _PureContainer$protot;
|
|
@@ -15002,10 +14994,10 @@ GridCell.prototype.styled = true;
|
|
|
15002
14994
|
GridCell.prototype.fixed = false;
|
|
15003
14995
|
|
|
15004
14996
|
var GridRowLine = /*#__PURE__*/ (function (_Container) {
|
|
15005
|
-
_inheritsLoose(GridRowLine, _Container);
|
|
15006
14997
|
function GridRowLine() {
|
|
15007
14998
|
return _Container.apply(this, arguments) || this;
|
|
15008
14999
|
}
|
|
15000
|
+
_inheritsLoose(GridRowLine, _Container);
|
|
15009
15001
|
var _proto = GridRowLine.prototype;
|
|
15010
15002
|
_proto.init = function init() {
|
|
15011
15003
|
this.items = Widget.create(GridCell, this.columns || [], {
|
|
@@ -15027,10 +15019,10 @@ var GridRowLine = /*#__PURE__*/ (function (_Container) {
|
|
|
15027
15019
|
GridRowLine.prototype.styled = true;
|
|
15028
15020
|
|
|
15029
15021
|
var GridRow = /*#__PURE__*/ (function (_ValidationGroup) {
|
|
15030
|
-
_inheritsLoose(GridRow, _ValidationGroup);
|
|
15031
15022
|
function GridRow() {
|
|
15032
15023
|
return _ValidationGroup.apply(this, arguments) || this;
|
|
15033
15024
|
}
|
|
15025
|
+
_inheritsLoose(GridRow, _ValidationGroup);
|
|
15034
15026
|
var _proto = GridRow.prototype;
|
|
15035
15027
|
_proto.declareData = function declareData() {
|
|
15036
15028
|
var _ValidationGroup$prot;
|
|
@@ -15071,15 +15063,14 @@ var GridRow = /*#__PURE__*/ (function (_ValidationGroup) {
|
|
|
15071
15063
|
GridRow.prototype.styled = true; //styles used on the wrapper component
|
|
15072
15064
|
|
|
15073
15065
|
var GridRowComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
15074
|
-
_inheritsLoose(GridRowComponent, _VDOM$Component);
|
|
15075
15066
|
function GridRowComponent(props) {
|
|
15076
15067
|
var _this;
|
|
15077
15068
|
_this = _VDOM$Component.call(this, props) || this;
|
|
15078
|
-
_this.onMouseMove = _this.onMouseMove.bind(
|
|
15079
|
-
_this.onMouseDown = _this.onMouseDown.bind(
|
|
15080
|
-
_this.onMouseLeave = _this.onMouseLeave.bind(
|
|
15081
|
-
_this.onClick = _this.onClick.bind(
|
|
15082
|
-
_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);
|
|
15083
15074
|
var grid = props.grid,
|
|
15084
15075
|
instance = props.instance;
|
|
15085
15076
|
if (grid.widget.onRowDoubleClick)
|
|
@@ -15099,6 +15090,7 @@ var GridRowComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
15099
15090
|
};
|
|
15100
15091
|
return _this;
|
|
15101
15092
|
}
|
|
15093
|
+
_inheritsLoose(GridRowComponent, _VDOM$Component);
|
|
15102
15094
|
var _proto2 = GridRowComponent.prototype;
|
|
15103
15095
|
_proto2.render = function render() {
|
|
15104
15096
|
var _this$props = this.props,
|
|
@@ -15262,10 +15254,10 @@ var GridRowComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
15262
15254
|
})(VDOM.Component);
|
|
15263
15255
|
|
|
15264
15256
|
var GridCellEditor = /*#__PURE__*/ (function (_Container) {
|
|
15265
|
-
_inheritsLoose(GridCellEditor, _Container);
|
|
15266
15257
|
function GridCellEditor() {
|
|
15267
15258
|
return _Container.apply(this, arguments) || this;
|
|
15268
15259
|
}
|
|
15260
|
+
_inheritsLoose(GridCellEditor, _Container);
|
|
15269
15261
|
var _proto = GridCellEditor.prototype;
|
|
15270
15262
|
_proto.render = function render(context, instance, key) {
|
|
15271
15263
|
var data = instance.data;
|
|
@@ -15283,10 +15275,10 @@ var GridCellEditor = /*#__PURE__*/ (function (_Container) {
|
|
|
15283
15275
|
})(Container);
|
|
15284
15276
|
GridCellEditor.prototype.styled = true;
|
|
15285
15277
|
var GridCellEditorCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
15286
|
-
_inheritsLoose(GridCellEditorCmp, _VDOM$Component);
|
|
15287
15278
|
function GridCellEditorCmp() {
|
|
15288
15279
|
return _VDOM$Component.apply(this, arguments) || this;
|
|
15289
15280
|
}
|
|
15281
|
+
_inheritsLoose(GridCellEditorCmp, _VDOM$Component);
|
|
15290
15282
|
var _proto2 = GridCellEditorCmp.prototype;
|
|
15291
15283
|
_proto2.render = function render() {
|
|
15292
15284
|
var _this = this;
|
|
@@ -15313,10 +15305,10 @@ var GridCellEditorCmp = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
15313
15305
|
})(VDOM.Component);
|
|
15314
15306
|
|
|
15315
15307
|
var Grid = /*#__PURE__*/ (function (_Container) {
|
|
15316
|
-
_inheritsLoose(Grid, _Container);
|
|
15317
15308
|
function Grid() {
|
|
15318
15309
|
return _Container.apply(this, arguments) || this;
|
|
15319
15310
|
}
|
|
15311
|
+
_inheritsLoose(Grid, _Container);
|
|
15320
15312
|
var _proto = Grid.prototype;
|
|
15321
15313
|
_proto.declareData = function declareData() {
|
|
15322
15314
|
var _Container$prototype$;
|
|
@@ -16506,7 +16498,6 @@ Grid.prototype.allowsFileDrops = false;
|
|
|
16506
16498
|
Widget.alias("grid", Grid);
|
|
16507
16499
|
Localization.registerPrototype("cx/widgets/Grid", Grid);
|
|
16508
16500
|
var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
16509
|
-
_inheritsLoose(GridComponent, _VDOM$Component);
|
|
16510
16501
|
function GridComponent(props) {
|
|
16511
16502
|
var _this4;
|
|
16512
16503
|
_this4 = _VDOM$Component.call(this, props) || this;
|
|
@@ -16539,6 +16530,7 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
16539
16530
|
};
|
|
16540
16531
|
return _this4;
|
|
16541
16532
|
}
|
|
16533
|
+
_inheritsLoose(GridComponent, _VDOM$Component);
|
|
16542
16534
|
var _proto2 = GridComponent.prototype;
|
|
16543
16535
|
_proto2.getBufferStartEnd = function getBufferStartEnd() {
|
|
16544
16536
|
//{start, end};
|
|
@@ -18258,10 +18250,10 @@ var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
18258
18250
|
return GridComponent;
|
|
18259
18251
|
})(VDOM.Component);
|
|
18260
18252
|
var GridColumnHeaderLine = /*#__PURE__*/ (function (_PureContainer) {
|
|
18261
|
-
_inheritsLoose(GridColumnHeaderLine, _PureContainer);
|
|
18262
18253
|
function GridColumnHeaderLine() {
|
|
18263
18254
|
return _PureContainer.apply(this, arguments) || this;
|
|
18264
18255
|
}
|
|
18256
|
+
_inheritsLoose(GridColumnHeaderLine, _PureContainer);
|
|
18265
18257
|
var _proto3 = GridColumnHeaderLine.prototype;
|
|
18266
18258
|
_proto3.declareData = function declareData() {
|
|
18267
18259
|
var _PureContainer$protot;
|
|
@@ -18301,10 +18293,10 @@ GridColumnHeaderLine.prototype.styled = true;
|
|
|
18301
18293
|
GridColumnHeaderLine.prototype.showHeader = true;
|
|
18302
18294
|
GridColumnHeaderLine.autoInit = true;
|
|
18303
18295
|
var GridColumnHeader = /*#__PURE__*/ (function (_Widget) {
|
|
18304
|
-
_inheritsLoose(GridColumnHeader, _Widget);
|
|
18305
18296
|
function GridColumnHeader() {
|
|
18306
18297
|
return _Widget.apply(this, arguments) || this;
|
|
18307
18298
|
}
|
|
18299
|
+
_inheritsLoose(GridColumnHeader, _Widget);
|
|
18308
18300
|
var _proto4 = GridColumnHeader.prototype;
|
|
18309
18301
|
_proto4.declareData = function declareData() {
|
|
18310
18302
|
var _Widget$prototype$dec;
|
|
@@ -18386,10 +18378,10 @@ var GridColumnHeader = /*#__PURE__*/ (function (_Widget) {
|
|
|
18386
18378
|
})(Widget);
|
|
18387
18379
|
GridColumnHeader.autoInit = true;
|
|
18388
18380
|
var GridColumnHeaderCell = /*#__PURE__*/ (function (_PureContainer2) {
|
|
18389
|
-
_inheritsLoose(GridColumnHeaderCell, _PureContainer2);
|
|
18390
18381
|
function GridColumnHeaderCell() {
|
|
18391
18382
|
return _PureContainer2.apply(this, arguments) || this;
|
|
18392
18383
|
}
|
|
18384
|
+
_inheritsLoose(GridColumnHeaderCell, _PureContainer2);
|
|
18393
18385
|
var _proto5 = GridColumnHeaderCell.prototype;
|
|
18394
18386
|
_proto5.declareData = function declareData() {
|
|
18395
18387
|
var _PureContainer2$proto;
|
|
@@ -18569,10 +18561,10 @@ function getDragDropEvent(ev) {
|
|
|
18569
18561
|
}
|
|
18570
18562
|
|
|
18571
18563
|
var TreeNode = /*#__PURE__*/ (function (_Container) {
|
|
18572
|
-
_inheritsLoose(TreeNode, _Container);
|
|
18573
18564
|
function TreeNode() {
|
|
18574
18565
|
return _Container.apply(this, arguments) || this;
|
|
18575
18566
|
}
|
|
18567
|
+
_inheritsLoose(TreeNode, _Container);
|
|
18576
18568
|
var _proto = TreeNode.prototype;
|
|
18577
18569
|
_proto.init = function init() {
|
|
18578
18570
|
if (this.itemIcon) this.leafIcon = this.itemIcon;
|
|
@@ -18679,10 +18671,10 @@ TreeNode.prototype.hideIcon = false;
|
|
|
18679
18671
|
Widget.alias("treenode", TreeNode);
|
|
18680
18672
|
|
|
18681
18673
|
var Pagination = /*#__PURE__*/ (function (_Widget) {
|
|
18682
|
-
_inheritsLoose(Pagination, _Widget);
|
|
18683
18674
|
function Pagination() {
|
|
18684
18675
|
return _Widget.apply(this, arguments) || this;
|
|
18685
18676
|
}
|
|
18677
|
+
_inheritsLoose(Pagination, _Widget);
|
|
18686
18678
|
var _proto = Pagination.prototype;
|
|
18687
18679
|
_proto.declareData = function declareData() {
|
|
18688
18680
|
var _Widget$prototype$dec;
|
|
@@ -18787,10 +18779,10 @@ Pagination.prototype.styled = true;
|
|
|
18787
18779
|
Widget.alias("pagination", Pagination);
|
|
18788
18780
|
|
|
18789
18781
|
var DragSource = /*#__PURE__*/ (function (_Container) {
|
|
18790
|
-
_inheritsLoose(DragSource, _Container);
|
|
18791
18782
|
function DragSource() {
|
|
18792
18783
|
return _Container.apply(this, arguments) || this;
|
|
18793
18784
|
}
|
|
18785
|
+
_inheritsLoose(DragSource, _Container);
|
|
18794
18786
|
var _proto = DragSource.prototype;
|
|
18795
18787
|
_proto.init = function init() {
|
|
18796
18788
|
this.cloneStyle = parseStyle(this.cloneStyle);
|
|
@@ -18849,21 +18841,21 @@ DragSource.prototype.hideOnDrag = false;
|
|
|
18849
18841
|
DragSource.prototype.handled = false;
|
|
18850
18842
|
Widget.alias("dragsource", DragSource);
|
|
18851
18843
|
var DragSourceComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
18852
|
-
_inheritsLoose(DragSourceComponent, _VDOM$Component);
|
|
18853
18844
|
function DragSourceComponent(props) {
|
|
18854
18845
|
var _this;
|
|
18855
18846
|
_this = _VDOM$Component.call(this, props) || this;
|
|
18856
18847
|
_this.state = {
|
|
18857
18848
|
dragged: false,
|
|
18858
18849
|
};
|
|
18859
|
-
_this.beginDragDrop = _this.beginDragDrop.bind(
|
|
18860
|
-
_this.onMouseMove = _this.onMouseMove.bind(
|
|
18861
|
-
_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);
|
|
18862
18853
|
_this.setRef = function (el) {
|
|
18863
18854
|
_this.el = el;
|
|
18864
18855
|
};
|
|
18865
18856
|
return _this;
|
|
18866
18857
|
}
|
|
18858
|
+
_inheritsLoose(DragSourceComponent, _VDOM$Component);
|
|
18867
18859
|
var _proto2 = DragSourceComponent.prototype;
|
|
18868
18860
|
_proto2.render = function render() {
|
|
18869
18861
|
var _this$props = this.props,
|
|
@@ -18966,10 +18958,10 @@ var DragSourceComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
18966
18958
|
})(VDOM.Component);
|
|
18967
18959
|
|
|
18968
18960
|
var DragHandle = /*#__PURE__*/ (function (_Container) {
|
|
18969
|
-
_inheritsLoose(DragHandle, _Container);
|
|
18970
18961
|
function DragHandle() {
|
|
18971
18962
|
return _Container.apply(this, arguments) || this;
|
|
18972
18963
|
}
|
|
18964
|
+
_inheritsLoose(DragHandle, _Container);
|
|
18973
18965
|
var _proto = DragHandle.prototype;
|
|
18974
18966
|
_proto.explore = function explore(context, instance) {
|
|
18975
18967
|
if (isArray(context.dragHandles)) context.dragHandles.push(instance);
|
|
@@ -19000,10 +18992,10 @@ DragHandle.prototype.baseClass = "draghandle";
|
|
|
19000
18992
|
Widget.alias("draghandle", DragHandle);
|
|
19001
18993
|
|
|
19002
18994
|
var DropZone = /*#__PURE__*/ (function (_Container) {
|
|
19003
|
-
_inheritsLoose(DropZone, _Container);
|
|
19004
18995
|
function DropZone() {
|
|
19005
18996
|
return _Container.apply(this, arguments) || this;
|
|
19006
18997
|
}
|
|
18998
|
+
_inheritsLoose(DropZone, _Container);
|
|
19007
18999
|
var _proto = DropZone.prototype;
|
|
19008
19000
|
_proto.init = function init() {
|
|
19009
19001
|
this.overStyle = parseStyle(this.overStyle);
|
|
@@ -19065,7 +19057,6 @@ DropZone.prototype.vinflate = 0;
|
|
|
19065
19057
|
DropZone.prototype.baseClass = "dropzone";
|
|
19066
19058
|
Widget.alias("dropzone", DropZone);
|
|
19067
19059
|
var DropZoneComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
19068
|
-
_inheritsLoose(DropZoneComponent, _VDOM$Component);
|
|
19069
19060
|
function DropZoneComponent(props) {
|
|
19070
19061
|
var _this;
|
|
19071
19062
|
_this = _VDOM$Component.call(this, props) || this;
|
|
@@ -19074,6 +19065,7 @@ var DropZoneComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
19074
19065
|
};
|
|
19075
19066
|
return _this;
|
|
19076
19067
|
}
|
|
19068
|
+
_inheritsLoose(DropZoneComponent, _VDOM$Component);
|
|
19077
19069
|
var _proto2 = DropZoneComponent.prototype;
|
|
19078
19070
|
_proto2.render = function render() {
|
|
19079
19071
|
var _this2 = this;
|