cx 24.6.3 → 24.6.5
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 +27 -29
- package/dist/data.js +26 -29
- package/dist/manifest.js +748 -742
- package/dist/svg.js +59 -56
- package/dist/ui.js +51 -52
- package/dist/util.js +56 -10
- package/dist/widgets.js +69 -69
- package/package.json +1 -1
- package/src/charts/Legend.js +151 -151
- package/src/charts/Marker.d.ts +96 -96
- package/src/charts/Marker.js +299 -299
- package/src/charts/axis/Axis.d.ts +96 -96
- package/src/charts/axis/NumericAxis.js +347 -347
- package/src/charts/axis/Stack.js +55 -55
- package/src/charts/axis/TimeAxis.js +7 -6
- 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/ui/Controller.d.ts +182 -182
- package/src/ui/FocusManager.js +171 -171
- package/src/ui/Format.js +3 -3
- package/src/ui/Instance.d.ts +72 -72
- package/src/ui/index.d.ts +42 -42
- package/src/util/Format.js +6 -5
- 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/drag-drop/DropZone.js +214 -214
- package/src/widgets/form/Calendar.js +7 -6
- package/src/widgets/form/DateTimeField.js +8 -5
- package/src/widgets/form/DateTimePicker.js +9 -8
- package/src/widgets/form/MonthField.js +8 -8
- package/src/widgets/form/MonthPicker.js +17 -16
- package/src/widgets/form/TextField.js +1 -0
- package/src/widgets/form/UploadButton.d.ts +34 -34
- package/src/widgets/grid/variables.scss +88 -88
- package/src/widgets/overlay/Dropdown.js +612 -612
package/dist/charts.js
CHANGED
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
closest,
|
|
22
22
|
getTopLevelBoundingClientRect,
|
|
23
23
|
Format,
|
|
24
|
+
parseDateInvariant,
|
|
24
25
|
zeroTime,
|
|
25
26
|
} from "cx/util";
|
|
26
27
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -36,34 +37,31 @@ import {
|
|
|
36
37
|
} from "cx/widgets";
|
|
37
38
|
|
|
38
39
|
function _extends() {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
target[key] = source[key];
|
|
47
|
-
}
|
|
40
|
+
return (
|
|
41
|
+
(_extends = Object.assign
|
|
42
|
+
? Object.assign.bind()
|
|
43
|
+
: function (n) {
|
|
44
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
45
|
+
var t = arguments[e];
|
|
46
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
48
47
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
return n;
|
|
49
|
+
}),
|
|
50
|
+
_extends.apply(null, arguments)
|
|
51
|
+
);
|
|
53
52
|
}
|
|
54
|
-
function _inheritsLoose(
|
|
55
|
-
|
|
56
|
-
subClass.prototype.constructor = subClass;
|
|
57
|
-
_setPrototypeOf(subClass, superClass);
|
|
53
|
+
function _inheritsLoose(t, o) {
|
|
54
|
+
(t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o);
|
|
58
55
|
}
|
|
59
|
-
function _setPrototypeOf(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
56
|
+
function _setPrototypeOf(t, e) {
|
|
57
|
+
return (
|
|
58
|
+
(_setPrototypeOf = Object.setPrototypeOf
|
|
59
|
+
? Object.setPrototypeOf.bind()
|
|
60
|
+
: function (t, e) {
|
|
61
|
+
return (t.__proto__ = e), t;
|
|
62
|
+
}),
|
|
63
|
+
_setPrototypeOf(t, e)
|
|
64
|
+
);
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
var Rect = /*#__PURE__*/ (function () {
|
|
@@ -4680,7 +4678,7 @@ Format$1.registerFactory("yearOrMonth", function (format) {
|
|
|
4680
4678
|
var year = Format$1.parse("datetime;yyyy");
|
|
4681
4679
|
var month = Format$1.parse("datetime;MMM");
|
|
4682
4680
|
return function (date) {
|
|
4683
|
-
var d =
|
|
4681
|
+
var d = parseDateInvariant(date);
|
|
4684
4682
|
if (d.getMonth() == 0) return year(d);
|
|
4685
4683
|
else return month(d);
|
|
4686
4684
|
};
|
|
@@ -4689,7 +4687,7 @@ Format$1.registerFactory("monthOrDay", function (format) {
|
|
|
4689
4687
|
var month = Format$1.parse("datetime;MMM");
|
|
4690
4688
|
var day = Format$1.parse("datetime;dd");
|
|
4691
4689
|
return function (date) {
|
|
4692
|
-
var d =
|
|
4690
|
+
var d = parseDateInvariant(date);
|
|
4693
4691
|
if (d.getDate() == 1) return month(d);
|
|
4694
4692
|
else return day(d);
|
|
4695
4693
|
};
|
|
@@ -4855,11 +4853,11 @@ var TimeScale = /*#__PURE__*/ (function () {
|
|
|
4855
4853
|
var v = this.dateCache[date];
|
|
4856
4854
|
if (!v) {
|
|
4857
4855
|
if (this.decode) date = this.decode(date);
|
|
4858
|
-
v = this.dateCache[date] =
|
|
4856
|
+
v = this.dateCache[date] = parseDateInvariant(date).getTime();
|
|
4859
4857
|
}
|
|
4860
4858
|
return v;
|
|
4861
4859
|
case "number":
|
|
4862
|
-
return date;
|
|
4860
|
+
return parseDateInvariant(date).getTime();
|
|
4863
4861
|
}
|
|
4864
4862
|
};
|
|
4865
4863
|
_proto2.encodeValue = function encodeValue(v) {
|
package/dist/data.js
CHANGED
|
@@ -118,6 +118,23 @@ function _construct(t, e, r) {
|
|
|
118
118
|
var p = new (t.bind.apply(t, o))();
|
|
119
119
|
return p;
|
|
120
120
|
}
|
|
121
|
+
function _extends() {
|
|
122
|
+
return (
|
|
123
|
+
(_extends = Object.assign
|
|
124
|
+
? Object.assign.bind()
|
|
125
|
+
: function (n) {
|
|
126
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
127
|
+
var t = arguments[e];
|
|
128
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
129
|
+
}
|
|
130
|
+
return n;
|
|
131
|
+
}),
|
|
132
|
+
_extends.apply(null, arguments)
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
function _inheritsLoose(t, o) {
|
|
136
|
+
(t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o);
|
|
137
|
+
}
|
|
121
138
|
function _isNativeReflectConstruct() {
|
|
122
139
|
try {
|
|
123
140
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -126,35 +143,15 @@ function _isNativeReflectConstruct() {
|
|
|
126
143
|
return !!t;
|
|
127
144
|
})();
|
|
128
145
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return target;
|
|
142
|
-
};
|
|
143
|
-
return _extends.apply(this, arguments);
|
|
144
|
-
}
|
|
145
|
-
function _inheritsLoose(subClass, superClass) {
|
|
146
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
147
|
-
subClass.prototype.constructor = subClass;
|
|
148
|
-
_setPrototypeOf(subClass, superClass);
|
|
149
|
-
}
|
|
150
|
-
function _setPrototypeOf(o, p) {
|
|
151
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
152
|
-
? Object.setPrototypeOf.bind()
|
|
153
|
-
: function _setPrototypeOf(o, p) {
|
|
154
|
-
o.__proto__ = p;
|
|
155
|
-
return o;
|
|
156
|
-
};
|
|
157
|
-
return _setPrototypeOf(o, p);
|
|
146
|
+
function _setPrototypeOf(t, e) {
|
|
147
|
+
return (
|
|
148
|
+
(_setPrototypeOf = Object.setPrototypeOf
|
|
149
|
+
? Object.setPrototypeOf.bind()
|
|
150
|
+
: function (t, e) {
|
|
151
|
+
return (t.__proto__ = e), t;
|
|
152
|
+
}),
|
|
153
|
+
_setPrototypeOf(t, e)
|
|
154
|
+
);
|
|
158
155
|
}
|
|
159
156
|
|
|
160
157
|
function computable() {
|