cx 26.2.4 → 26.3.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/build/charts/helpers/ValueAtFinder.d.ts +2 -2
- package/build/charts/helpers/ValueAtFinder.d.ts.map +1 -1
- package/build/widgets/form/Calendar.d.ts +1 -0
- package/build/widgets/form/Calendar.d.ts.map +1 -1
- package/build/widgets/form/Calendar.js +14 -22
- package/build/widgets/overlay/Overlay.d.ts +1 -1
- package/build/widgets/overlay/Overlay.d.ts.map +1 -1
- package/build/widgets/overlay/Overlay.js +10 -19
- package/build/widgets/overlay/Window.d.ts.map +1 -1
- package/build/widgets/overlay/Window.js +5 -11
- package/dist/manifest.js +791 -791
- package/dist/widgets.js +16 -12
- package/package.json +1 -1
- package/src/widgets/form/Calendar.tsx +772 -862
- package/src/widgets/overlay/Overlay.tsx +1028 -1096
- package/src/widgets/overlay/Window.tsx +320 -354
package/dist/widgets.js
CHANGED
|
@@ -3340,13 +3340,13 @@ class OverlayBeacon extends VDOM.Component {
|
|
|
3340
3340
|
display: "none",
|
|
3341
3341
|
},
|
|
3342
3342
|
}),
|
|
3343
|
-
this.
|
|
3343
|
+
this.el && this.props.childrenFactory(this.el),
|
|
3344
3344
|
],
|
|
3345
3345
|
});
|
|
3346
3346
|
}
|
|
3347
3347
|
componentDidMount() {
|
|
3348
3348
|
this.setState({
|
|
3349
|
-
|
|
3349
|
+
beaconRendered: true,
|
|
3350
3350
|
});
|
|
3351
3351
|
}
|
|
3352
3352
|
}
|
|
@@ -4255,11 +4255,11 @@ class Window extends OverlayBase {
|
|
|
4255
4255
|
render(context, instance, key) {
|
|
4256
4256
|
var header = this.renderHeader(context, instance, "header");
|
|
4257
4257
|
var footer = this.renderFooter(context, instance, "footer");
|
|
4258
|
-
return jsx(
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
{
|
|
4258
|
+
return jsx(
|
|
4259
|
+
OverlayBeacon,
|
|
4260
|
+
{
|
|
4261
|
+
childrenFactory: (beaconEl) =>
|
|
4262
|
+
jsx(WindowComponent, {
|
|
4263
4263
|
beaconEl: beaconEl,
|
|
4264
4264
|
instance: instance,
|
|
4265
4265
|
header: header,
|
|
@@ -4267,10 +4267,10 @@ class Window extends OverlayBase {
|
|
|
4267
4267
|
subscribeToBeforeDismiss: context.options.subscribeToBeforeDismiss,
|
|
4268
4268
|
parentEl: context.options.parentEl,
|
|
4269
4269
|
children: this.renderContents(context, instance),
|
|
4270
|
-
},
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4270
|
+
}),
|
|
4271
|
+
},
|
|
4272
|
+
key,
|
|
4273
|
+
);
|
|
4274
4274
|
}
|
|
4275
4275
|
}
|
|
4276
4276
|
Window.prototype.baseClass = "window";
|
|
@@ -7933,6 +7933,7 @@ const validationCheck = (date, data, disabledDaysOfWeek) => {
|
|
|
7933
7933
|
};
|
|
7934
7934
|
class CalendarCmp extends VDOM.Component {
|
|
7935
7935
|
el = null;
|
|
7936
|
+
unsubscribeWheel;
|
|
7936
7937
|
constructor(props) {
|
|
7937
7938
|
super(props);
|
|
7938
7939
|
let { data } = props.instance;
|
|
@@ -8111,7 +8112,9 @@ class CalendarCmp extends VDOM.Component {
|
|
|
8111
8112
|
if (calendarWidget.autoFocus && this.el) this.el.focus();
|
|
8112
8113
|
if (this.el) {
|
|
8113
8114
|
tooltipParentDidMount$1(this.el, ...getFieldTooltip(this.props.instance));
|
|
8114
|
-
this.el
|
|
8115
|
+
this.unsubscribeWheel = addEventListenerWithOptions(this.el, "wheel", (e) => this.handleWheel(e), {
|
|
8116
|
+
passive: false,
|
|
8117
|
+
});
|
|
8115
8118
|
}
|
|
8116
8119
|
}
|
|
8117
8120
|
UNSAFE_componentWillReceiveProps(props) {
|
|
@@ -8127,6 +8130,7 @@ class CalendarCmp extends VDOM.Component {
|
|
|
8127
8130
|
componentWillUnmount() {
|
|
8128
8131
|
offFocusOut(this);
|
|
8129
8132
|
tooltipParentWillUnmount$1(this.props.instance);
|
|
8133
|
+
this.unsubscribeWheel?.();
|
|
8130
8134
|
}
|
|
8131
8135
|
showYearDropdown() {
|
|
8132
8136
|
if (this.el && this.el.firstChild) {
|