cx 23.12.2 → 23.12.3
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 +8 -1
- package/dist/data.js +15 -0
- package/dist/manifest.js +615 -615
- package/dist/ui.js +2 -0
- package/dist/widgets.js +22 -16
- package/package.json +1 -1
- package/src/charts/PieLabel.js +71 -72
- package/src/charts/axis/Axis.d.ts +96 -96
- package/src/charts/axis/Axis.js +252 -252
- package/src/data/StringTemplate.spec.js +105 -105
- package/src/svg/Text.d.ts +40 -40
- package/src/ui/Controller.d.ts +182 -182
- package/src/ui/FocusManager.js +171 -171
- package/src/ui/Instance.d.ts +72 -72
- package/src/ui/Restate.d.ts +18 -15
- package/src/ui/Restate.js +160 -158
- package/src/widgets/form/ColorPicker.scss +275 -275
- package/src/widgets/form/ColorPicker.variables.scss +22 -22
- package/src/widgets/form/DateTimeField.d.ts +86 -86
- package/src/widgets/form/DateTimeField.js +572 -572
- package/src/widgets/form/Label.js +88 -88
- package/src/widgets/form/LookupField.d.ts +174 -174
- package/src/widgets/form/LookupField.js +1131 -1131
- package/src/widgets/form/UploadButton.d.ts +34 -34
package/dist/charts.js
CHANGED
|
@@ -974,7 +974,6 @@ var PieLabel = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
974
974
|
_BoundedObject.prototype.prepare.call(this, context, instance);
|
|
975
975
|
if (!context.registerPieLabel)
|
|
976
976
|
throw new Error("PieLabel components are allowed only within PieLabelsContainer components.");
|
|
977
|
-
console.log(instance.actualBounds, instance.originalBounds, instance.parentRect);
|
|
978
977
|
var right = instance.parentRect.r > instance.parentRect.l;
|
|
979
978
|
context.push("textDirection", right ? "right" : "left");
|
|
980
979
|
context.registerPieLabel(instance);
|
|
@@ -1115,6 +1114,7 @@ var ColumnBarBase = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
1115
1114
|
stack: undefined,
|
|
1116
1115
|
offset: undefined,
|
|
1117
1116
|
hoverId: undefined,
|
|
1117
|
+
borderRadius: undefined,
|
|
1118
1118
|
},
|
|
1119
1119
|
])
|
|
1120
1120
|
);
|
|
@@ -1207,6 +1207,7 @@ var ColumnBarBase = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
1207
1207
|
y: bounds.t,
|
|
1208
1208
|
width: Math.max(0.0001, bounds.width()),
|
|
1209
1209
|
height: Math.max(0.0001, bounds.height()),
|
|
1210
|
+
rx: data.borderRadius,
|
|
1210
1211
|
onMouseMove: function onMouseMove(e) {
|
|
1211
1212
|
_onMouseMove(e, instance);
|
|
1212
1213
|
tooltipMouseMove(e, instance, _this2.tooltip);
|
|
@@ -1248,6 +1249,7 @@ ColumnBarBase.prototype.stack = "stack";
|
|
|
1248
1249
|
ColumnBarBase.prototype.legendShape = "rect";
|
|
1249
1250
|
ColumnBarBase.prototype.styled = true;
|
|
1250
1251
|
ColumnBarBase.prototype.hoverChannel = "default";
|
|
1252
|
+
ColumnBarBase.prototype.borderRadius = 0;
|
|
1251
1253
|
|
|
1252
1254
|
var Column = /*#__PURE__*/ (function (_ColumnBarBase) {
|
|
1253
1255
|
_inheritsLoose(Column, _ColumnBarBase);
|
|
@@ -2815,6 +2817,7 @@ var ColumnBarGraphBase = /*#__PURE__*/ (function (_Widget) {
|
|
|
2815
2817
|
active: true,
|
|
2816
2818
|
stacked: undefined,
|
|
2817
2819
|
stack: undefined,
|
|
2820
|
+
borderRadius: undefined,
|
|
2818
2821
|
},
|
|
2819
2822
|
])
|
|
2820
2823
|
);
|
|
@@ -2896,6 +2899,7 @@ ColumnBarGraphBase.prototype.stacked = false;
|
|
|
2896
2899
|
ColumnBarGraphBase.prototype.autoSize = 0;
|
|
2897
2900
|
ColumnBarGraphBase.prototype.offset = 0;
|
|
2898
2901
|
ColumnBarGraphBase.prototype.styled = true;
|
|
2902
|
+
ColumnBarGraphBase.prototype.borderRadius = 0;
|
|
2899
2903
|
|
|
2900
2904
|
var ColumnGraph = /*#__PURE__*/ (function (_ColumnBarGraphBase) {
|
|
2901
2905
|
_inheritsLoose(ColumnGraph, _ColumnBarGraphBase);
|
|
@@ -2994,6 +2998,7 @@ var ColumnGraph = /*#__PURE__*/ (function (_ColumnBarGraphBase) {
|
|
|
2994
2998
|
style: data.style,
|
|
2995
2999
|
onMouseMove: mmove,
|
|
2996
3000
|
onMouseLeave: mleave,
|
|
3001
|
+
rx: data.borderRadius,
|
|
2997
3002
|
},
|
|
2998
3003
|
i
|
|
2999
3004
|
);
|
|
@@ -3104,6 +3109,7 @@ var BarGraph = /*#__PURE__*/ (function (_ColumnBarGraphBase) {
|
|
|
3104
3109
|
style: data.style,
|
|
3105
3110
|
onMouseMove: mmove,
|
|
3106
3111
|
onMouseLeave: mleave,
|
|
3112
|
+
rx: data.borderRadius,
|
|
3107
3113
|
},
|
|
3108
3114
|
i
|
|
3109
3115
|
);
|
|
@@ -3116,6 +3122,7 @@ BarGraph.prototype.x0Field = false;
|
|
|
3116
3122
|
BarGraph.prototype.x0 = 0;
|
|
3117
3123
|
BarGraph.prototype.legendShape = "bar";
|
|
3118
3124
|
BarGraph.prototype.hiddenBase = false;
|
|
3125
|
+
BarGraph.prototype.borderRadius = 0;
|
|
3119
3126
|
Widget.alias("bargraph", BarGraph);
|
|
3120
3127
|
|
|
3121
3128
|
var ScatterGraph = /*#__PURE__*/ (function (_Widget) {
|
package/dist/data.js
CHANGED
|
@@ -1418,6 +1418,9 @@ var AggregateFunction = /*#__PURE__*/ (function () {
|
|
|
1418
1418
|
AggregateFunction.max = function max() {
|
|
1419
1419
|
return new Max();
|
|
1420
1420
|
};
|
|
1421
|
+
AggregateFunction.last = function last() {
|
|
1422
|
+
return new LastValue();
|
|
1423
|
+
};
|
|
1421
1424
|
return AggregateFunction;
|
|
1422
1425
|
})();
|
|
1423
1426
|
var Sum = /*#__PURE__*/ (function () {
|
|
@@ -1525,6 +1528,18 @@ var Min = /*#__PURE__*/ (function () {
|
|
|
1525
1528
|
})();
|
|
1526
1529
|
Min.prototype.result = 0;
|
|
1527
1530
|
Min.prototype.empty = true;
|
|
1531
|
+
var LastValue = /*#__PURE__*/ (function () {
|
|
1532
|
+
function LastValue() {}
|
|
1533
|
+
var _proto7 = LastValue.prototype;
|
|
1534
|
+
_proto7.process = function process(value) {
|
|
1535
|
+
this.result = value;
|
|
1536
|
+
};
|
|
1537
|
+
_proto7.getResult = function getResult() {
|
|
1538
|
+
return this.result;
|
|
1539
|
+
};
|
|
1540
|
+
return LastValue;
|
|
1541
|
+
})();
|
|
1542
|
+
LastValue.prototype.result = null;
|
|
1528
1543
|
|
|
1529
1544
|
/*
|
|
1530
1545
|
'column': {
|