cx 24.9.1 → 24.9.2
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 +22 -25
- package/dist/data.js +26 -29
- package/dist/manifest.js +775 -775
- package/dist/svg.js +59 -56
- package/dist/ui.js +51 -52
- package/dist/widgets.js +46 -49
- package/package.json +32 -32
- package/src/charts/Legend.js +151 -151
- package/src/charts/PieLabel.js +71 -71
- package/src/charts/axis/NumericAxis.js +347 -347
- package/src/charts/axis/Stack.js +55 -55
- package/src/charts/helpers/PointReducer.js +43 -43
- package/src/charts/helpers/SnapPointFinder.js +69 -69
- package/src/data/Binding.spec.js +69 -69
- package/src/data/StringTemplate.spec.js +105 -105
- package/src/data/getAccessor.spec.js +11 -11
- package/src/index.scss +6 -6
- package/src/svg/Text.d.ts +40 -40
- package/src/ui/Culture.d.ts +55 -55
- package/src/ui/Culture.js +139 -139
- package/src/ui/FocusManager.js +171 -171
- package/src/ui/Instance.d.ts +72 -72
- package/src/ui/VDOM.d.ts +12 -12
- package/src/ui/app/startAppLoop.js +58 -58
- package/src/ui/index.d.ts +42 -42
- package/src/ui/layout/LabelsTopLayout.js +134 -134
- package/src/util/Console.d.ts +4 -4
- package/src/util/scss/add-rules.scss +38 -38
- package/src/widgets/CxCredit.scss +37 -37
- package/src/widgets/List.scss +91 -91
- package/src/widgets/drag-drop/DropZone.js +214 -214
- package/src/widgets/form/Calendar.scss +196 -196
- package/src/widgets/form/ColorField.js +397 -397
- package/src/widgets/form/ColorPicker.scss +283 -283
- package/src/widgets/form/DateTimeField.js +573 -573
- package/src/widgets/form/MonthField.js +516 -516
- package/src/widgets/form/MonthPicker.scss +118 -118
- package/src/widgets/form/NumberField.js +459 -459
- package/src/widgets/form/NumberField.scss +61 -61
- package/src/widgets/form/Select.scss +99 -99
- package/src/widgets/form/Slider.scss +118 -118
- package/src/widgets/form/Switch.scss +140 -140
- package/src/widgets/form/TextArea.scss +43 -43
- package/src/widgets/form/TextField.js +290 -289
- package/src/widgets/form/TextField.scss +55 -55
- package/src/widgets/form/UploadButton.d.ts +34 -34
- package/src/widgets/grid/TreeNode.scss +88 -88
- package/src/widgets/grid/variables.scss +88 -88
- package/src/widgets/nav/Menu.scss +74 -74
- package/src/widgets/overlay/Dropdown.js +612 -612
- package/src/widgets/overlay/FlyweightTooltipTracker.js +39 -39
- package/src/widgets/overlay/Tooltip.js +300 -300
- package/src/widgets/overlay/Window.js +196 -196
- package/src/widgets/overlay/captureMouse.js +124 -124
- package/src/widgets/overlay/variables.scss +83 -83
package/dist/svg.js
CHANGED
|
@@ -91,70 +91,73 @@ Rect.prototype.r = 0; //right
|
|
|
91
91
|
Rect.prototype.t = 0; //top
|
|
92
92
|
Rect.prototype.b = 0; //bottom
|
|
93
93
|
|
|
94
|
-
function
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
99
|
-
var source = arguments[i];
|
|
100
|
-
for (var key in source) {
|
|
101
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
102
|
-
target[key] = source[key];
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return target;
|
|
107
|
-
};
|
|
108
|
-
return _extends.apply(this, arguments);
|
|
109
|
-
}
|
|
110
|
-
function _inheritsLoose(subClass, superClass) {
|
|
111
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
112
|
-
subClass.prototype.constructor = subClass;
|
|
113
|
-
_setPrototypeOf(subClass, superClass);
|
|
94
|
+
function _arrayLikeToArray(r, a) {
|
|
95
|
+
(null == a || a > r.length) && (a = r.length);
|
|
96
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
97
|
+
return n;
|
|
114
98
|
}
|
|
115
|
-
function
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
};
|
|
122
|
-
return _setPrototypeOf(o, p);
|
|
123
|
-
}
|
|
124
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
125
|
-
if (!o) return;
|
|
126
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
127
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
128
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
129
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
130
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
131
|
-
}
|
|
132
|
-
function _arrayLikeToArray(arr, len) {
|
|
133
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
134
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
135
|
-
return arr2;
|
|
136
|
-
}
|
|
137
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
138
|
-
var it = (typeof Symbol !== "undefined" && o[Symbol.iterator]) || o["@@iterator"];
|
|
139
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
140
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) {
|
|
141
|
-
if (it) o = it;
|
|
142
|
-
var i = 0;
|
|
99
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
100
|
+
var t = ("undefined" != typeof Symbol && r[Symbol.iterator]) || r["@@iterator"];
|
|
101
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
102
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
|
|
103
|
+
t && (r = t);
|
|
104
|
+
var o = 0;
|
|
143
105
|
return function () {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
106
|
+
return o >= r.length
|
|
107
|
+
? {
|
|
108
|
+
done: !0,
|
|
109
|
+
}
|
|
110
|
+
: {
|
|
111
|
+
done: !1,
|
|
112
|
+
value: r[o++],
|
|
113
|
+
};
|
|
152
114
|
};
|
|
153
115
|
}
|
|
154
116
|
throw new TypeError(
|
|
155
117
|
"Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",
|
|
156
118
|
);
|
|
157
119
|
}
|
|
120
|
+
function _extends() {
|
|
121
|
+
return (
|
|
122
|
+
(_extends = Object.assign
|
|
123
|
+
? Object.assign.bind()
|
|
124
|
+
: function (n) {
|
|
125
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
126
|
+
var t = arguments[e];
|
|
127
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
128
|
+
}
|
|
129
|
+
return n;
|
|
130
|
+
}),
|
|
131
|
+
_extends.apply(null, arguments)
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
function _inheritsLoose(t, o) {
|
|
135
|
+
(t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o);
|
|
136
|
+
}
|
|
137
|
+
function _setPrototypeOf(t, e) {
|
|
138
|
+
return (
|
|
139
|
+
(_setPrototypeOf = Object.setPrototypeOf
|
|
140
|
+
? Object.setPrototypeOf.bind()
|
|
141
|
+
: function (t, e) {
|
|
142
|
+
return (t.__proto__ = e), t;
|
|
143
|
+
}),
|
|
144
|
+
_setPrototypeOf(t, e)
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
function _unsupportedIterableToArray(r, a) {
|
|
148
|
+
if (r) {
|
|
149
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
150
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
151
|
+
return (
|
|
152
|
+
"Object" === t && r.constructor && (t = r.constructor.name),
|
|
153
|
+
"Map" === t || "Set" === t
|
|
154
|
+
? Array.from(r)
|
|
155
|
+
: "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)
|
|
156
|
+
? _arrayLikeToArray(r, a)
|
|
157
|
+
: void 0
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
158
161
|
|
|
159
162
|
var BoundedObject = /*#__PURE__*/ (function (_PureContainer) {
|
|
160
163
|
function BoundedObject() {
|
package/dist/ui.js
CHANGED
|
@@ -71,6 +71,51 @@ import { VDOM as VDOM$2 } from "cx-react";
|
|
|
71
71
|
import { NumberCulture, DateTimeCulture } from "intl-io";
|
|
72
72
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
73
73
|
|
|
74
|
+
function _defineProperties(e, r) {
|
|
75
|
+
for (var t = 0; t < r.length; t++) {
|
|
76
|
+
var o = r[t];
|
|
77
|
+
(o.enumerable = o.enumerable || !1),
|
|
78
|
+
(o.configurable = !0),
|
|
79
|
+
"value" in o && (o.writable = !0),
|
|
80
|
+
Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function _createClass(e, r, t) {
|
|
84
|
+
return (
|
|
85
|
+
t && _defineProperties(e, t),
|
|
86
|
+
Object.defineProperty(e, "prototype", {
|
|
87
|
+
writable: !1,
|
|
88
|
+
}),
|
|
89
|
+
e
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
function _extends() {
|
|
93
|
+
return (
|
|
94
|
+
(_extends = Object.assign
|
|
95
|
+
? Object.assign.bind()
|
|
96
|
+
: function (n) {
|
|
97
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
98
|
+
var t = arguments[e];
|
|
99
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
100
|
+
}
|
|
101
|
+
return n;
|
|
102
|
+
}),
|
|
103
|
+
_extends.apply(null, arguments)
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
function _inheritsLoose(t, o) {
|
|
107
|
+
(t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o);
|
|
108
|
+
}
|
|
109
|
+
function _setPrototypeOf(t, e) {
|
|
110
|
+
return (
|
|
111
|
+
(_setPrototypeOf = Object.setPrototypeOf
|
|
112
|
+
? Object.setPrototypeOf.bind()
|
|
113
|
+
: function (t, e) {
|
|
114
|
+
return (t.__proto__ = e), t;
|
|
115
|
+
}),
|
|
116
|
+
_setPrototypeOf(t, e)
|
|
117
|
+
);
|
|
118
|
+
}
|
|
74
119
|
function _toPrimitive(t, r) {
|
|
75
120
|
if ("object" != typeof t || !t) return t;
|
|
76
121
|
var e = t[Symbol.toPrimitive];
|
|
@@ -85,52 +130,6 @@ function _toPropertyKey(t) {
|
|
|
85
130
|
var i = _toPrimitive(t, "string");
|
|
86
131
|
return "symbol" == typeof i ? i : i + "";
|
|
87
132
|
}
|
|
88
|
-
function _defineProperties(target, props) {
|
|
89
|
-
for (var i = 0; i < props.length; i++) {
|
|
90
|
-
var descriptor = props[i];
|
|
91
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
92
|
-
descriptor.configurable = true;
|
|
93
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
94
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
98
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
99
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
100
|
-
writable: false,
|
|
101
|
-
});
|
|
102
|
-
return Constructor;
|
|
103
|
-
}
|
|
104
|
-
function _extends() {
|
|
105
|
-
_extends = Object.assign
|
|
106
|
-
? Object.assign.bind()
|
|
107
|
-
: function (target) {
|
|
108
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
109
|
-
var source = arguments[i];
|
|
110
|
-
for (var key in source) {
|
|
111
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
112
|
-
target[key] = source[key];
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return target;
|
|
117
|
-
};
|
|
118
|
-
return _extends.apply(this, arguments);
|
|
119
|
-
}
|
|
120
|
-
function _inheritsLoose(subClass, superClass) {
|
|
121
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
122
|
-
subClass.prototype.constructor = subClass;
|
|
123
|
-
_setPrototypeOf(subClass, superClass);
|
|
124
|
-
}
|
|
125
|
-
function _setPrototypeOf(o, p) {
|
|
126
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
127
|
-
? Object.setPrototypeOf.bind()
|
|
128
|
-
: function _setPrototypeOf(o, p) {
|
|
129
|
-
o.__proto__ = p;
|
|
130
|
-
return o;
|
|
131
|
-
};
|
|
132
|
-
return _setPrototypeOf(o, p);
|
|
133
|
-
}
|
|
134
133
|
|
|
135
134
|
var computablePrefix = "computable-";
|
|
136
135
|
var triggerPrefix = "trigger-";
|
|
@@ -3654,11 +3653,11 @@ var LabelsLeftLayout = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
3654
3653
|
var CSS = this.CSS,
|
|
3655
3654
|
baseClass = this.baseClass;
|
|
3656
3655
|
var labelClass = CSS.expand(CSS.element(baseClass, "label"), data.labelClass);
|
|
3657
|
-
var
|
|
3656
|
+
var _addItem = function addItem(r, key) {
|
|
3658
3657
|
if (!r) return;
|
|
3659
3658
|
if (r.useParentLayout && isArray(r.content))
|
|
3660
3659
|
r.content.forEach(function (x, i) {
|
|
3661
|
-
return
|
|
3660
|
+
return _addItem(x, key + "-" + i);
|
|
3662
3661
|
});
|
|
3663
3662
|
else {
|
|
3664
3663
|
result.push(
|
|
@@ -3683,7 +3682,7 @@ var LabelsLeftLayout = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
3683
3682
|
}
|
|
3684
3683
|
};
|
|
3685
3684
|
children.forEach(function (c) {
|
|
3686
|
-
|
|
3685
|
+
_addItem(c.vdom, c.key);
|
|
3687
3686
|
});
|
|
3688
3687
|
return /*#__PURE__*/ jsx(
|
|
3689
3688
|
"table",
|
|
@@ -3728,18 +3727,18 @@ var LabelsTopLayout = /*#__PURE__*/ (function (_Container) {
|
|
|
3728
3727
|
fieldCells: [],
|
|
3729
3728
|
rowCapacities: [this.columns],
|
|
3730
3729
|
};
|
|
3731
|
-
var
|
|
3730
|
+
var _processContent = function processContent(r) {
|
|
3732
3731
|
if (!r) return;
|
|
3733
3732
|
if (isArray(r.content) && r.useParentLayout)
|
|
3734
3733
|
r.content.forEach(function (x) {
|
|
3735
|
-
return
|
|
3734
|
+
return _processContent(x);
|
|
3736
3735
|
});
|
|
3737
3736
|
else if (r.atomic && r.type == "layout-cell")
|
|
3738
3737
|
_this.addItem(state, isArray(r.content) && r.content.length == 1 ? r.content[0] : r.content, r.data);
|
|
3739
3738
|
else _this.addItem(state, r, {});
|
|
3740
3739
|
};
|
|
3741
3740
|
children.forEach(function (item) {
|
|
3742
|
-
return
|
|
3741
|
+
return _processContent(item.vdom);
|
|
3743
3742
|
});
|
|
3744
3743
|
this.addRow(state);
|
|
3745
3744
|
return /*#__PURE__*/ jsx(
|
package/dist/widgets.js
CHANGED
|
@@ -141,45 +141,41 @@ import { HtmlElement as HtmlElement$1 } from "cx/widgets";
|
|
|
141
141
|
import { parseStyle as parseStyle$1 } from "cx/src/util/parseStyle";
|
|
142
142
|
|
|
143
143
|
function _extends() {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
var
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
target[key] = source[key];
|
|
152
|
-
}
|
|
144
|
+
return (
|
|
145
|
+
(_extends = Object.assign
|
|
146
|
+
? Object.assign.bind()
|
|
147
|
+
: function (n) {
|
|
148
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
149
|
+
var t = arguments[e];
|
|
150
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
153
151
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
function _inheritsLoose(subClass, superClass) {
|
|
160
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
161
|
-
subClass.prototype.constructor = subClass;
|
|
162
|
-
_setPrototypeOf(subClass, superClass);
|
|
152
|
+
return n;
|
|
153
|
+
}),
|
|
154
|
+
_extends.apply(null, arguments)
|
|
155
|
+
);
|
|
163
156
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
166
|
-
? Object.setPrototypeOf.bind()
|
|
167
|
-
: function _setPrototypeOf(o, p) {
|
|
168
|
-
o.__proto__ = p;
|
|
169
|
-
return o;
|
|
170
|
-
};
|
|
171
|
-
return _setPrototypeOf(o, p);
|
|
157
|
+
function _inheritsLoose(t, o) {
|
|
158
|
+
(t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o);
|
|
172
159
|
}
|
|
173
|
-
function _objectWithoutPropertiesLoose(
|
|
174
|
-
if (
|
|
175
|
-
var
|
|
176
|
-
for (var
|
|
177
|
-
if (
|
|
178
|
-
if (
|
|
179
|
-
|
|
160
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
161
|
+
if (null == r) return {};
|
|
162
|
+
var t = {};
|
|
163
|
+
for (var n in r)
|
|
164
|
+
if ({}.hasOwnProperty.call(r, n)) {
|
|
165
|
+
if (e.includes(n)) continue;
|
|
166
|
+
t[n] = r[n];
|
|
180
167
|
}
|
|
181
|
-
|
|
182
|
-
|
|
168
|
+
return t;
|
|
169
|
+
}
|
|
170
|
+
function _setPrototypeOf(t, e) {
|
|
171
|
+
return (
|
|
172
|
+
(_setPrototypeOf = Object.setPrototypeOf
|
|
173
|
+
? Object.setPrototypeOf.bind()
|
|
174
|
+
: function (t, e) {
|
|
175
|
+
return (t.__proto__ = e), t;
|
|
176
|
+
}),
|
|
177
|
+
_setPrototypeOf(t, e)
|
|
178
|
+
);
|
|
183
179
|
}
|
|
184
180
|
|
|
185
181
|
var impl$1 = false;
|
|
@@ -2271,16 +2267,16 @@ function captureMouseOrTouch2(e, _ref2) {
|
|
|
2271
2267
|
e.preventDefault();
|
|
2272
2268
|
});
|
|
2273
2269
|
};
|
|
2274
|
-
var
|
|
2270
|
+
var _end = function end(e) {
|
|
2275
2271
|
batchUpdates(function () {
|
|
2276
2272
|
el.removeEventListener("touchmove", move);
|
|
2277
|
-
el.removeEventListener("touchend",
|
|
2273
|
+
el.removeEventListener("touchend", _end);
|
|
2278
2274
|
if (onMouseUp) onMouseUp(e);
|
|
2279
2275
|
e.preventDefault();
|
|
2280
2276
|
});
|
|
2281
2277
|
};
|
|
2282
2278
|
el.addEventListener("touchmove", move);
|
|
2283
|
-
el.addEventListener("touchend",
|
|
2279
|
+
el.addEventListener("touchend", _end);
|
|
2284
2280
|
e.stopPropagation();
|
|
2285
2281
|
} else
|
|
2286
2282
|
captureMouse2(e, {
|
|
@@ -2721,7 +2717,7 @@ function notifyDragMove(e, captureData) {
|
|
|
2721
2717
|
}
|
|
2722
2718
|
if (scrollY || scrollX) {
|
|
2723
2719
|
if (!scrollTimer) {
|
|
2724
|
-
var
|
|
2720
|
+
var _cb = function cb() {
|
|
2725
2721
|
if (scrollY) {
|
|
2726
2722
|
var current = vscrollParent.scrollTop;
|
|
2727
2723
|
var next = Math.min(
|
|
@@ -2738,9 +2734,9 @@ function notifyDragMove(e, captureData) {
|
|
|
2738
2734
|
); //60 FPS
|
|
2739
2735
|
hscrollParent.scrollLeft = _next;
|
|
2740
2736
|
}
|
|
2741
|
-
scrollTimer = requestAnimationFrame(
|
|
2737
|
+
scrollTimer = requestAnimationFrame(_cb);
|
|
2742
2738
|
};
|
|
2743
|
-
scrollTimer = requestAnimationFrame(
|
|
2739
|
+
scrollTimer = requestAnimationFrame(_cb);
|
|
2744
2740
|
}
|
|
2745
2741
|
} else {
|
|
2746
2742
|
clearScrollTimer();
|
|
@@ -7141,7 +7137,8 @@ var Input$2 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
7141
7137
|
autoFocus(this.input, this);
|
|
7142
7138
|
};
|
|
7143
7139
|
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
7144
|
-
if (this.input == getActiveElement()
|
|
7140
|
+
if (this.input == getActiveElement() && this.input.value != this.props.data.value)
|
|
7141
|
+
this.onChange(this.input.value, "blur");
|
|
7145
7142
|
tooltipParentWillUnmount$1(this.props.instance);
|
|
7146
7143
|
};
|
|
7147
7144
|
_proto2.onKeyDown = function onKeyDown(e) {
|
|
@@ -10150,7 +10147,7 @@ var Input$1 = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
10150
10147
|
autoFocus(this.input, this);
|
|
10151
10148
|
};
|
|
10152
10149
|
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
10153
|
-
if (this.input == getActiveElement()) {
|
|
10150
|
+
if (this.input == getActiveElement() && this.input.value != this.props.data.formatted) {
|
|
10154
10151
|
this.onChange(
|
|
10155
10152
|
{
|
|
10156
10153
|
target: {
|
|
@@ -12420,7 +12417,7 @@ var MonthInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12420
12417
|
autoFocus(this.input, this);
|
|
12421
12418
|
};
|
|
12422
12419
|
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
12423
|
-
if (this.input == getActiveElement()) {
|
|
12420
|
+
if (this.input == getActiveElement() && this.input.value != this.props.data.formatted) {
|
|
12424
12421
|
this.onChange(this.input.value, "blur");
|
|
12425
12422
|
}
|
|
12426
12423
|
tooltipParentWillUnmount$1(this.props.instance);
|
|
@@ -12805,7 +12802,7 @@ var ColorInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
12805
12802
|
if (this.props.instance.widget.autoFocus && !isTouchDevice()) this.input.focus();
|
|
12806
12803
|
};
|
|
12807
12804
|
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
12808
|
-
if (this.input == getActiveElement()) {
|
|
12805
|
+
if (this.input == getActiveElement() && this.input.value != this.props.data.value) {
|
|
12809
12806
|
this.onChange(this.input.value, "blur");
|
|
12810
12807
|
}
|
|
12811
12808
|
tooltipParentWillUnmount$1(this.props.instance);
|
|
@@ -13894,7 +13891,7 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13894
13891
|
_proto2.scrollTo = function scrollTo() {
|
|
13895
13892
|
var _this4 = this;
|
|
13896
13893
|
var size = this.props.size;
|
|
13897
|
-
var
|
|
13894
|
+
var _callback = function callback() {
|
|
13898
13895
|
if (!_this4.scrolling) return;
|
|
13899
13896
|
var x = (_this4.index * _this4.state.wheelHeight) / size;
|
|
13900
13897
|
var delta = Math.round(x - _this4.scrollEl.scrollTop);
|
|
@@ -13906,11 +13903,11 @@ var WheelComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
13906
13903
|
delta = Math.abs(delta) / 10;
|
|
13907
13904
|
if (delta < 1) delta = 1;
|
|
13908
13905
|
_this4.scrollEl.scrollTop += sign * delta;
|
|
13909
|
-
requestAnimationFrame(
|
|
13906
|
+
requestAnimationFrame(_callback);
|
|
13910
13907
|
};
|
|
13911
13908
|
if (!this.scrolling) {
|
|
13912
13909
|
this.scrolling = true;
|
|
13913
|
-
requestAnimationFrame(
|
|
13910
|
+
requestAnimationFrame(_callback);
|
|
13914
13911
|
}
|
|
13915
13912
|
};
|
|
13916
13913
|
return WheelComponent;
|
|
@@ -14952,7 +14949,7 @@ var DateTimeInput = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
14952
14949
|
autoFocus(this.input, this);
|
|
14953
14950
|
};
|
|
14954
14951
|
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
14955
|
-
if (this.input == getActiveElement()) {
|
|
14952
|
+
if (this.input == getActiveElement() && this.input.value != this.props.data.formatted) {
|
|
14956
14953
|
this.onChange(this.input.value, "blur");
|
|
14957
14954
|
}
|
|
14958
14955
|
tooltipParentWillUnmount$1(this.props.instance);
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cx",
|
|
3
|
-
"version": "24.9.
|
|
4
|
-
"description": "Advanced JavaScript UI framework for admin and dashboard applications with ready to use grid, form and chart components.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"jsnext:main": "src/index.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "node build/index"
|
|
9
|
-
},
|
|
10
|
-
"author": "Codaxy",
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/codaxy/cxjs"
|
|
14
|
-
},
|
|
15
|
-
"homepage": "https://cxjs.io",
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"intl-io": "^0.4.3",
|
|
18
|
-
"route-parser": "^0.0.5"
|
|
19
|
-
},
|
|
20
|
-
"peerDependencies": {
|
|
21
|
-
"@types/react": "*",
|
|
22
|
-
"react": "*",
|
|
23
|
-
"react-dom": "*"
|
|
24
|
-
},
|
|
25
|
-
"repository": {
|
|
26
|
-
"type": "git",
|
|
27
|
-
"url": "git@github.com:codaxy/cxjs.git"
|
|
28
|
-
},
|
|
29
|
-
"devDependencies": {
|
|
30
|
-
"react-test-renderer": "^18.3.1"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "cx",
|
|
3
|
+
"version": "24.9.2",
|
|
4
|
+
"description": "Advanced JavaScript UI framework for admin and dashboard applications with ready to use grid, form and chart components.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"jsnext:main": "src/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "node build/index"
|
|
9
|
+
},
|
|
10
|
+
"author": "Codaxy",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/codaxy/cxjs"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://cxjs.io",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"intl-io": "^0.4.3",
|
|
18
|
+
"route-parser": "^0.0.5"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@types/react": "*",
|
|
22
|
+
"react": "*",
|
|
23
|
+
"react-dom": "*"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git@github.com:codaxy/cxjs.git"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"react-test-renderer": "^18.3.1"
|
|
31
|
+
}
|
|
32
|
+
}
|