@apexcura/core 0.0.17-Beta100 → 0.0.17-Beta101
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/index.js +8 -0
- package/dist/index.mjs +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -408,6 +408,14 @@ var ElementExecutor = (props) => {
|
|
|
408
408
|
onChange: (value) => onHandleChange(elementProps.name || "", value)
|
|
409
409
|
}
|
|
410
410
|
);
|
|
411
|
+
case "switch":
|
|
412
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
413
|
+
import_ui_components.SwitchElement,
|
|
414
|
+
{
|
|
415
|
+
...elementProps,
|
|
416
|
+
onChange: (value) => onHandleChange(elementProps.name || "", value)
|
|
417
|
+
}
|
|
418
|
+
);
|
|
411
419
|
default:
|
|
412
420
|
return null;
|
|
413
421
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -34,7 +34,8 @@ import {
|
|
|
34
34
|
DivContainer,
|
|
35
35
|
ColorPickerElement,
|
|
36
36
|
NotificationAlert,
|
|
37
|
-
Editor
|
|
37
|
+
Editor,
|
|
38
|
+
SwitchElement
|
|
38
39
|
} from "@apexcura/ui-components";
|
|
39
40
|
import moment from "moment";
|
|
40
41
|
|
|
@@ -407,6 +408,14 @@ var ElementExecutor = (props) => {
|
|
|
407
408
|
onChange: (value) => onHandleChange(elementProps.name || "", value)
|
|
408
409
|
}
|
|
409
410
|
);
|
|
411
|
+
case "switch":
|
|
412
|
+
return /* @__PURE__ */ React.createElement(
|
|
413
|
+
SwitchElement,
|
|
414
|
+
{
|
|
415
|
+
...elementProps,
|
|
416
|
+
onChange: (value) => onHandleChange(elementProps.name || "", value)
|
|
417
|
+
}
|
|
418
|
+
);
|
|
410
419
|
default:
|
|
411
420
|
return null;
|
|
412
421
|
}
|