@apexcura/core 0.0.17-Beta131 → 0.0.17-Beta133
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.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -6
- package/dist/index.mjs +7 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -33,9 +33,9 @@ type SchemaField = {
|
|
|
33
33
|
value?: string | number | boolean | null | object | undefined | string[] | UploadFile[] | pagenationType;
|
|
34
34
|
message?: string;
|
|
35
35
|
description?: string;
|
|
36
|
-
notificationType?:
|
|
36
|
+
notificationType?: "error" | "warning" | "success" | "info" | undefined;
|
|
37
37
|
showProgress?: boolean;
|
|
38
|
-
picker?:
|
|
38
|
+
picker?: "date" | "week" | "month" | "quarter" | "year";
|
|
39
39
|
weekrange?: boolean;
|
|
40
40
|
img?: string;
|
|
41
41
|
primaryText?: string;
|
|
@@ -102,7 +102,7 @@ type SchemaField = {
|
|
|
102
102
|
suffix?: React.ReactNode;
|
|
103
103
|
addonBefore?: React.ReactNode;
|
|
104
104
|
defaultValue?: string;
|
|
105
|
-
status?:
|
|
105
|
+
status?: "error" | "warning";
|
|
106
106
|
style?: React.CSSProperties;
|
|
107
107
|
fieldClassName?: string;
|
|
108
108
|
elementClassName?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -33,9 +33,9 @@ type SchemaField = {
|
|
|
33
33
|
value?: string | number | boolean | null | object | undefined | string[] | UploadFile[] | pagenationType;
|
|
34
34
|
message?: string;
|
|
35
35
|
description?: string;
|
|
36
|
-
notificationType?:
|
|
36
|
+
notificationType?: "error" | "warning" | "success" | "info" | undefined;
|
|
37
37
|
showProgress?: boolean;
|
|
38
|
-
picker?:
|
|
38
|
+
picker?: "date" | "week" | "month" | "quarter" | "year";
|
|
39
39
|
weekrange?: boolean;
|
|
40
40
|
img?: string;
|
|
41
41
|
primaryText?: string;
|
|
@@ -102,7 +102,7 @@ type SchemaField = {
|
|
|
102
102
|
suffix?: React.ReactNode;
|
|
103
103
|
addonBefore?: React.ReactNode;
|
|
104
104
|
defaultValue?: string;
|
|
105
|
-
status?:
|
|
105
|
+
status?: "error" | "warning";
|
|
106
106
|
style?: React.CSSProperties;
|
|
107
107
|
fieldClassName?: string;
|
|
108
108
|
elementClassName?: string;
|
package/dist/index.js
CHANGED
|
@@ -97,6 +97,7 @@ function postService(url, method, data) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
// src/libraries/element-executor.tsx
|
|
100
|
+
var import_antd = require("antd");
|
|
100
101
|
var ElementExecutor = (props) => {
|
|
101
102
|
const [data, setData] = (0, import_react.useState)([]);
|
|
102
103
|
const [schema, setSchema] = (0, import_react.useState)(props.data.schema);
|
|
@@ -417,12 +418,11 @@ var ElementExecutor = (props) => {
|
|
|
417
418
|
}
|
|
418
419
|
);
|
|
419
420
|
case "tooltip":
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
);
|
|
421
|
+
console.log(elementProps);
|
|
422
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Tooltip, { title: elementProps.tooltip_title }, renderElement({
|
|
423
|
+
...elementProps,
|
|
424
|
+
element: elementProps.child_element
|
|
425
|
+
}));
|
|
426
426
|
default:
|
|
427
427
|
return null;
|
|
428
428
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -35,8 +35,7 @@ import {
|
|
|
35
35
|
ColorPickerElement,
|
|
36
36
|
NotificationAlert,
|
|
37
37
|
Editor,
|
|
38
|
-
SwitchElement
|
|
39
|
-
TooltipElement
|
|
38
|
+
SwitchElement
|
|
40
39
|
} from "@apexcura/ui-components";
|
|
41
40
|
import moment from "moment";
|
|
42
41
|
|
|
@@ -98,6 +97,7 @@ function postService(url, method, data) {
|
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
// src/libraries/element-executor.tsx
|
|
100
|
+
import { Tooltip } from "antd";
|
|
101
101
|
var ElementExecutor = (props) => {
|
|
102
102
|
const [data, setData] = useState([]);
|
|
103
103
|
const [schema, setSchema] = useState(props.data.schema);
|
|
@@ -418,12 +418,11 @@ var ElementExecutor = (props) => {
|
|
|
418
418
|
}
|
|
419
419
|
);
|
|
420
420
|
case "tooltip":
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
);
|
|
421
|
+
console.log(elementProps);
|
|
422
|
+
return /* @__PURE__ */ React.createElement(Tooltip, { title: elementProps.tooltip_title }, renderElement({
|
|
423
|
+
...elementProps,
|
|
424
|
+
element: elementProps.child_element
|
|
425
|
+
}));
|
|
427
426
|
default:
|
|
428
427
|
return null;
|
|
429
428
|
}
|