cx 24.0.1 → 24.0.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 +169 -235
- package/dist/data.js +42 -85
- package/dist/hooks.js +1 -1
- package/dist/manifest.js +763 -760
- package/dist/svg.js +47 -97
- package/dist/ui.js +180 -242
- package/dist/util.js +9 -7
- package/dist/widgets.js +1296 -1517
- package/locale/de-de.js +6 -1
- package/locale/en-us.js +5 -1
- package/locale/es-es.js +6 -1
- package/locale/fr-fr.js +7 -2
- package/locale/nl-nl.js +4 -5
- package/locale/pt-pt.js +12 -1
- package/locale/sr-latn-ba.js +6 -2
- package/package.json +1 -1
- package/src/data/StructuredSelector.d.ts +1 -1
- package/src/data/ops/updateTree.js +1 -1
- package/src/data/ops/updateTree.spec.js +16 -14
- package/src/ui/Culture.d.ts +0 -3
- package/src/ui/DataProxy.d.ts +1 -0
- package/src/ui/DataProxy.js +2 -2
- package/src/ui/Localization.js +0 -2
- package/src/ui/Rescope.js +2 -2
- package/src/ui/Text.js +2 -4
- package/src/ui/adapter/DataAdapter.js +7 -12
- package/src/ui/adapter/GroupAdapter.d.ts +22 -3
- package/src/ui/adapter/TreeAdapter.d.ts +23 -3
- package/src/widgets/form/DateTimeField.d.ts +86 -86
- package/src/widgets/form/DateTimeField.js +569 -572
- package/src/widgets/form/Field.js +24 -9
- package/src/widgets/form/FieldIcon.js +42 -0
- package/src/widgets/form/LookupField.d.ts +174 -174
- package/src/widgets/form/LookupField.js +1130 -1131
- package/src/widgets/form/MonthField.d.ts +37 -38
- package/src/widgets/form/MonthField.js +6 -9
- package/src/widgets/form/NumberField.d.ts +2 -2
- package/src/widgets/form/NumberField.js +5 -9
- package/src/widgets/form/Select.d.ts +31 -35
- package/src/widgets/form/Select.js +7 -12
- package/src/widgets/form/TextField.d.ts +2 -2
- package/src/widgets/form/TextField.js +6 -5
- package/src/widgets/grid/Grid.d.ts +9 -6
- package/src/widgets/grid/Grid.js +3277 -3276
- package/src/widgets/overlay/Dropdown.d.ts +1 -0
package/dist/svg.js
CHANGED
|
@@ -91,46 +91,21 @@ 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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
i % 2
|
|
110
|
-
? ownKeys(Object(source), !0).forEach(function (key) {
|
|
111
|
-
_defineProperty(target, key, source[key]);
|
|
112
|
-
})
|
|
113
|
-
: Object.getOwnPropertyDescriptors
|
|
114
|
-
? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source))
|
|
115
|
-
: ownKeys(Object(source)).forEach(function (key) {
|
|
116
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
return target;
|
|
120
|
-
}
|
|
121
|
-
function _defineProperty(obj, key, value) {
|
|
122
|
-
key = _toPropertyKey(key);
|
|
123
|
-
if (key in obj) {
|
|
124
|
-
Object.defineProperty(obj, key, {
|
|
125
|
-
value: value,
|
|
126
|
-
enumerable: true,
|
|
127
|
-
configurable: true,
|
|
128
|
-
writable: true,
|
|
129
|
-
});
|
|
130
|
-
} else {
|
|
131
|
-
obj[key] = value;
|
|
132
|
-
}
|
|
133
|
-
return obj;
|
|
94
|
+
function _extends() {
|
|
95
|
+
_extends = Object.assign
|
|
96
|
+
? Object.assign.bind()
|
|
97
|
+
: function (target) {
|
|
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);
|
|
134
109
|
}
|
|
135
110
|
function _inheritsLoose(subClass, superClass) {
|
|
136
111
|
subClass.prototype = Object.create(superClass.prototype);
|
|
@@ -143,7 +118,7 @@ function _setPrototypeOf(o, p) {
|
|
|
143
118
|
: function _setPrototypeOf(o, p) {
|
|
144
119
|
o.__proto__ = p;
|
|
145
120
|
return o;
|
|
146
|
-
|
|
121
|
+
};
|
|
147
122
|
return _setPrototypeOf(o, p);
|
|
148
123
|
}
|
|
149
124
|
function _unsupportedIterableToArray(o, minLen) {
|
|
@@ -181,23 +156,9 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
|
181
156
|
};
|
|
182
157
|
}
|
|
183
158
|
throw new TypeError(
|
|
184
|
-
"Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
|
|
159
|
+
"Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",
|
|
185
160
|
);
|
|
186
161
|
}
|
|
187
|
-
function _toPrimitive(input, hint) {
|
|
188
|
-
if (typeof input !== "object" || input === null) return input;
|
|
189
|
-
var prim = input[Symbol.toPrimitive];
|
|
190
|
-
if (prim !== undefined) {
|
|
191
|
-
var res = prim.call(input, hint || "default");
|
|
192
|
-
if (typeof res !== "object") return res;
|
|
193
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
194
|
-
}
|
|
195
|
-
return (hint === "string" ? String : Number)(input);
|
|
196
|
-
}
|
|
197
|
-
function _toPropertyKey(arg) {
|
|
198
|
-
var key = _toPrimitive(arg, "string");
|
|
199
|
-
return typeof key === "symbol" ? key : String(key);
|
|
200
|
-
}
|
|
201
162
|
|
|
202
163
|
var BoundedObject = /*#__PURE__*/ (function (_PureContainer) {
|
|
203
164
|
_inheritsLoose(BoundedObject, _PureContainer);
|
|
@@ -217,7 +178,7 @@ var BoundedObject = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
217
178
|
margin: undefined,
|
|
218
179
|
padding: undefined,
|
|
219
180
|
},
|
|
220
|
-
].concat(Array.prototype.slice.call(arguments))
|
|
181
|
+
].concat(Array.prototype.slice.call(arguments)),
|
|
221
182
|
);
|
|
222
183
|
};
|
|
223
184
|
_proto.prepareData = function prepareData(context, instance) {
|
|
@@ -283,7 +244,7 @@ var Text = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
283
244
|
fill: undefined,
|
|
284
245
|
stroke: undefined,
|
|
285
246
|
},
|
|
286
|
-
])
|
|
247
|
+
]),
|
|
287
248
|
);
|
|
288
249
|
};
|
|
289
250
|
_proto.init = function init() {
|
|
@@ -330,7 +291,7 @@ var Text = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
330
291
|
stroke: data.stroke,
|
|
331
292
|
children: [data.value, this.renderChildren(context, instance)],
|
|
332
293
|
},
|
|
333
|
-
key
|
|
294
|
+
key,
|
|
334
295
|
);
|
|
335
296
|
};
|
|
336
297
|
return Text;
|
|
@@ -421,7 +382,7 @@ var Svg = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
421
382
|
eventHandlers: eventHandlers,
|
|
422
383
|
children: this.renderChildren(context, instance),
|
|
423
384
|
},
|
|
424
|
-
key
|
|
385
|
+
key,
|
|
425
386
|
);
|
|
426
387
|
};
|
|
427
388
|
return Svg;
|
|
@@ -465,44 +426,33 @@ var SvgComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
465
426
|
height: Math.max(0, cr.height()),
|
|
466
427
|
}),
|
|
467
428
|
},
|
|
468
|
-
k
|
|
469
|
-
)
|
|
429
|
+
k,
|
|
430
|
+
),
|
|
470
431
|
);
|
|
471
432
|
}
|
|
472
433
|
var style = data.style;
|
|
473
434
|
if (widget.autoHeight)
|
|
474
|
-
style =
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
{
|
|
478
|
-
height: size.height + "px",
|
|
479
|
-
}
|
|
480
|
-
);
|
|
435
|
+
style = _extends({}, style, {
|
|
436
|
+
height: size.height + "px",
|
|
437
|
+
});
|
|
481
438
|
if (widget.autoWidth)
|
|
482
|
-
style =
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
{
|
|
486
|
-
width: size.width + "px",
|
|
487
|
-
}
|
|
488
|
-
);
|
|
439
|
+
style = _extends({}, style, {
|
|
440
|
+
width: size.width + "px",
|
|
441
|
+
});
|
|
489
442
|
|
|
490
443
|
//parent div is needed because clientWidth doesn't work on the svg element in FF
|
|
491
444
|
|
|
492
445
|
return /*#__PURE__*/ jsx(
|
|
493
446
|
"div",
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
{
|
|
497
|
-
|
|
498
|
-
_this.el = el;
|
|
499
|
-
},
|
|
500
|
-
className: data.classNames,
|
|
501
|
-
style: style,
|
|
447
|
+
_extends(
|
|
448
|
+
{
|
|
449
|
+
ref: function ref(el) {
|
|
450
|
+
_this.el = el;
|
|
502
451
|
},
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
452
|
+
className: data.classNames,
|
|
453
|
+
style: style,
|
|
454
|
+
},
|
|
455
|
+
eventHandlers,
|
|
506
456
|
{
|
|
507
457
|
children:
|
|
508
458
|
size.width > 0 &&
|
|
@@ -515,8 +465,8 @@ var SvgComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
515
465
|
children,
|
|
516
466
|
],
|
|
517
467
|
}),
|
|
518
|
-
}
|
|
519
|
-
)
|
|
468
|
+
},
|
|
469
|
+
),
|
|
520
470
|
);
|
|
521
471
|
};
|
|
522
472
|
_proto2.onResize = function onResize() {
|
|
@@ -547,7 +497,7 @@ var SvgComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
547
497
|
},
|
|
548
498
|
{
|
|
549
499
|
passive: false,
|
|
550
|
-
}
|
|
500
|
+
},
|
|
551
501
|
);
|
|
552
502
|
}
|
|
553
503
|
};
|
|
@@ -578,7 +528,7 @@ var Rectangle = /*#__PURE__*/ (function (_TextualBoundedObject) {
|
|
|
578
528
|
fill: undefined,
|
|
579
529
|
stroke: undefined,
|
|
580
530
|
},
|
|
581
|
-
])
|
|
531
|
+
]),
|
|
582
532
|
);
|
|
583
533
|
};
|
|
584
534
|
_proto.render = function render(context, instance, key) {
|
|
@@ -604,7 +554,7 @@ var Rectangle = /*#__PURE__*/ (function (_TextualBoundedObject) {
|
|
|
604
554
|
this.renderChildren(context, instance),
|
|
605
555
|
],
|
|
606
556
|
},
|
|
607
|
-
key
|
|
557
|
+
key,
|
|
608
558
|
);
|
|
609
559
|
};
|
|
610
560
|
return Rectangle;
|
|
@@ -632,7 +582,7 @@ var ClipRect = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
632
582
|
clipPath: "url(#" + data.clipId + ")",
|
|
633
583
|
children: this.renderChildren(context, instance),
|
|
634
584
|
},
|
|
635
|
-
key
|
|
585
|
+
key,
|
|
636
586
|
);
|
|
637
587
|
};
|
|
638
588
|
return ClipRect;
|
|
@@ -655,7 +605,7 @@ var Ellipse = /*#__PURE__*/ (function (_TextualBoundedObject) {
|
|
|
655
605
|
fill: undefined,
|
|
656
606
|
stroke: undefined,
|
|
657
607
|
},
|
|
658
|
-
])
|
|
608
|
+
]),
|
|
659
609
|
);
|
|
660
610
|
};
|
|
661
611
|
_proto.render = function render(context, instance, key) {
|
|
@@ -681,7 +631,7 @@ var Ellipse = /*#__PURE__*/ (function (_TextualBoundedObject) {
|
|
|
681
631
|
this.renderChildren(context, instance),
|
|
682
632
|
],
|
|
683
633
|
},
|
|
684
|
-
key
|
|
634
|
+
key,
|
|
685
635
|
);
|
|
686
636
|
};
|
|
687
637
|
return Ellipse;
|
|
@@ -705,7 +655,7 @@ var Line = /*#__PURE__*/ (function (_TextualBoundedObject) {
|
|
|
705
655
|
colorIndex: undefined,
|
|
706
656
|
stroke: undefined,
|
|
707
657
|
},
|
|
708
|
-
])
|
|
658
|
+
]),
|
|
709
659
|
);
|
|
710
660
|
};
|
|
711
661
|
_proto.render = function render(context, instance, key) {
|
|
@@ -729,7 +679,7 @@ var Line = /*#__PURE__*/ (function (_TextualBoundedObject) {
|
|
|
729
679
|
this.renderChildren(context, instance),
|
|
730
680
|
],
|
|
731
681
|
},
|
|
732
|
-
key
|
|
682
|
+
key,
|
|
733
683
|
);
|
|
734
684
|
};
|
|
735
685
|
return Line;
|