Skip to content

Commit a1cc052

Browse files
Merge branch 'dev' into plugin-duckdb
2 parents b0340a0 + 3ecf1ac commit a1cc052

File tree

6 files changed

+532
-5
lines changed

6 files changed

+532
-5
lines changed

client/packages/lowcoder-comps/src/comps/calendarComp/calendarComp.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {
3131
StringControl,
3232
hiddenPropertyView,
3333
ChangeEventHandlerControl,
34+
DragEventHandlerControl,
3435
Section,
3536
sectionNames,
3637
dropdownControl,
@@ -74,6 +75,7 @@ const childrenMap = {
7475
resources: jsonValueExposingStateControl("resources", resourcesDefaultData),
7576
resourceName: withDefault(StringControl, trans("calendar.resourcesDefault")),
7677
onEvent: ChangeEventHandlerControl,
78+
onDropEvent: DragEventHandlerControl,
7779
editable: withDefault(BoolControl, true),
7880
showEventTime: withDefault(BoolControl, true),
7981
showWeekends: withDefault(BoolControl, true),
@@ -95,6 +97,7 @@ let CalendarBasicComp = (function () {
9597
resources: any;
9698
resourceName : string
9799
onEvent?: any;
100+
onEventDrop?: any;
98101
editable?: boolean;
99102
showEventTime?: boolean;
100103
showWeekends?: boolean;
@@ -521,6 +524,11 @@ let CalendarBasicComp = (function () {
521524
props.onEvent("change");
522525
}
523526
}}
527+
eventDragStop={(info) => {
528+
if (info.view) {
529+
props.onEventDrop("dropEvent");
530+
}
531+
}}
524532
/>
525533
</ErrorBoundary>
526534
</Wrapper>
@@ -533,6 +541,7 @@ let CalendarBasicComp = (function () {
533541
resources: { propertyView: (arg0: {}) => any; };
534542
resourceName: { propertyView: (arg0: {}) => any; };
535543
onEvent: { getPropertyView: () => any; };
544+
onDropEvent: { getPropertyView: () => any; };
536545
editable: { propertyView: (arg0: { label: string; }) => any; };
537546
showEventTime: { propertyView: (arg0: { label: string; tooltip: string; }) => any; };
538547
showWeekends: { propertyView: (arg0: { label: string; }) => any; };
@@ -565,6 +574,7 @@ let CalendarBasicComp = (function () {
565574
<Section name={sectionNames.interaction}>
566575
{hiddenPropertyView(children)}
567576
{children.onEvent.getPropertyView()}
577+
{children.onDropEvent.getPropertyView()}
568578
{children.editable.propertyView({ label: trans("calendar.editable"), })}
569579
</Section>
570580
<Section name={sectionNames.advanced}>

client/packages/lowcoder-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lowcoder-sdk",
3-
"version": "2.4.0-beta-2",
3+
"version": "2.4.0-beta-4",
44
"type": "module",
55
"files": [
66
"src",

client/packages/lowcoder/src/comps/comps/meetingComp/videoMeetingControllerComp.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { PositionControl } from "comps/controls/dropdownControl";
1717
import {
1818
closeEvent,
1919
eventHandlerControl,
20+
MeetingEventHandlerControl,
2021
} from "comps/controls/eventHandlerControl";
2122
import { styleControl } from "comps/controls/styleControl";
2223
import { DrawerStyle } from "comps/controls/styleControlConstants";
@@ -226,6 +227,7 @@ const rtmInit = async (appId: any, uid: any, token: any, channel: any) => {
226227
const meetingControllerChildren = {
227228
visible: withDefault(BooleanStateControl, "false"),
228229
onEvent: eventHandlerControl(EventOptions),
230+
onMeetingEvent: MeetingEventHandlerControl,
229231
width: StringControl,
230232
height: StringControl,
231233
autoHeight: AutoHeightControl,
@@ -589,6 +591,7 @@ let MTComp = (function () {
589591
</Section>
590592
<Section name={sectionNames.interaction}>
591593
{children.onEvent.getPropertyView()}
594+
{children.onMeetingEvent.getPropertyView()}
592595
</Section>
593596
</>
594597
)}

0 commit comments

Comments
 (0)