xmlui 0.10.8 → 0.10.11
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/{metadata/apiInterceptorWorker-Bb5-fQup.mjs → lib/apiInterceptorWorker-DPgtUtdA.mjs} +5870 -3195
- package/dist/lib/index-BuIblMfO.mjs +50034 -0
- package/dist/lib/index.css +1 -1
- package/dist/lib/initMock-CV-9AUzP.mjs +843 -0
- package/dist/lib/language-server-web-worker.mjs +8 -7
- package/dist/lib/language-server.mjs +6 -6
- package/dist/lib/{metadata-utils-DrEexTX9.mjs → metadata-utils-DzONZF-e.mjs} +161 -111
- package/dist/lib/scss/components-core/theming/_themes.scss +6 -7
- package/dist/lib/{server-common-ddmPKhK6.mjs → server-common-Dsyp3-Ro.mjs} +14949 -10880
- package/dist/lib/syntax-monaco.mjs +14 -11
- package/dist/lib/syntax-textmate.d.ts +2 -2
- package/dist/lib/syntax-textmate.mjs +128 -109
- package/dist/lib/transform-CBz7TQJh.mjs +7375 -0
- package/dist/lib/xmlui-parser.d.ts +3 -3
- package/dist/lib/xmlui-parser.mjs +49 -49
- package/dist/lib/xmlui-serializer-Bf9bdvlV.mjs +667 -0
- package/dist/lib/xmlui.d.ts +16 -11
- package/dist/lib/xmlui.mjs +44 -44
- package/dist/{lib/apiInterceptorWorker-DH8wqOVq.mjs → metadata/apiInterceptorWorker-BmKP8bnq.mjs} +5432 -3502
- package/dist/metadata/collectedComponentMetadata-Cdi6AFD3.mjs +55851 -0
- package/dist/metadata/initMock-B7OlSKKb.mjs +843 -0
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/xmlui-metadata.mjs +3 -3
- package/dist/metadata/xmlui-metadata.umd.js +207 -419
- package/dist/scripts/package.json +3 -1
- package/dist/scripts/src/components/APICall/APICall.js +4 -4
- package/dist/scripts/src/components/Accordion/Accordion.js +1 -1
- package/dist/scripts/src/components/Accordion/AccordionItemNative.js +2 -2
- package/dist/scripts/src/components/Animation/AnimationNative.js +259 -0
- package/dist/scripts/src/components/App/App.js +10 -0
- package/dist/scripts/src/components/App/AppNative.js +29 -9
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +1 -1
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +5 -4
- package/dist/scripts/src/components/Breakout/BreakoutNative.js +2 -2
- package/dist/scripts/src/components/Button/Button.js +1 -1
- package/dist/scripts/src/components/Button/ButtonNative.js +4 -0
- package/dist/scripts/src/components/Carousel/Carousel.js +13 -20
- package/dist/scripts/src/components/Carousel/CarouselContext.js +11 -2
- package/dist/scripts/src/components/Carousel/CarouselItemNative.js +2 -2
- package/dist/scripts/src/components/Carousel/CarouselNative.js +2 -2
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.js +92 -0
- package/dist/scripts/src/components/Charts/AreaChart/AreaChartNative.js +127 -0
- package/dist/scripts/src/components/Charts/BarChart/BarChart.js +4 -4
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +90 -82
- package/dist/scripts/src/components/Charts/LineChart/LineChart.js +3 -3
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +5 -1
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.js +92 -0
- package/dist/scripts/src/components/Charts/RadarChart/RadarChartNative.js +125 -0
- package/dist/scripts/src/components/Checkbox/Checkbox.js +2 -1
- package/dist/scripts/src/components/ComponentProvider.js +4 -0
- package/dist/scripts/src/components/DataSource/DataSource.js +124 -0
- package/dist/scripts/src/components/DateInput/DateInput.js +7 -9
- package/dist/scripts/src/components/DateInput/DateInputNative.js +101 -38
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +18 -12
- package/dist/scripts/src/components/Footer/Footer.js +1 -1
- package/dist/scripts/src/components/FormItem/FormItem.js +1 -1
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +3 -3
- package/dist/scripts/src/components/Heading/Heading.js +83 -28
- package/dist/scripts/src/components/Heading/HeadingNative.js +10 -1
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +1 -1
- package/dist/scripts/src/components/Image/ImageNative.js +13 -0
- package/dist/scripts/src/components/Input/PartialInput.js +28 -3
- package/dist/scripts/src/components/List/ListNative.js +6 -5
- package/dist/scripts/src/components/NavLink/NavLink.js +1 -1
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +3 -8
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +2 -2
- package/dist/scripts/src/components/Option/Option.js +2 -2
- package/dist/scripts/src/components/Option/OptionNative.js +12 -1
- package/dist/scripts/src/components/Pagination/Pagination.js +2 -1
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +7 -3
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +20 -5
- package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +2 -1
- package/dist/scripts/src/components/Select/Select.js +1 -1
- package/dist/scripts/src/components/Select/SelectNative.js +1 -1
- package/dist/scripts/src/components/Slider/Slider.js +10 -8
- package/dist/scripts/src/components/Slider/SliderNative.js +24 -21
- package/dist/scripts/src/components/Switch/Switch.js +2 -1
- package/dist/scripts/src/components/Table/Table.js +1 -1
- package/dist/scripts/src/components/Table/TableNative.js +18 -13
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +1 -1
- package/dist/scripts/src/components/Text/Text.js +32 -14
- package/dist/scripts/src/components/Text/TextNative.js +17 -5
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +3 -3
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +3 -3
- package/dist/scripts/src/components/TimeInput/TimeInput.js +10 -10
- package/dist/scripts/src/components/TimeInput/TimeInputNative.js +87 -38
- package/dist/scripts/src/components/Toggle/Toggle.js +2 -2
- package/dist/scripts/src/components/Tooltip/Tooltip.js +9 -9
- package/dist/scripts/src/components/Tooltip/TooltipNative.js +4 -4
- package/dist/scripts/src/components/abstractions.js +7 -3
- package/dist/scripts/src/components/collectedComponentMetadata.js +316 -0
- package/dist/scripts/src/components-core/RestApiProxy.js +3 -1
- package/dist/scripts/src/components-core/StandaloneApp.js +823 -0
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +4 -1
- package/dist/scripts/src/components-core/interception/Backend.js +13 -7
- package/dist/scripts/src/components-core/markup-check.js +279 -0
- package/dist/scripts/src/components-core/parts.js +0 -4
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +36 -16
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +4 -1
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +4 -1
- package/dist/scripts/src/components-core/theming/themes/root.js +30 -17
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +14 -7
- package/dist/scripts/src/components-core/xmlui-parser.js +60 -43
- package/dist/scripts/src/index.js +120 -0
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +15 -4
- package/dist/standalone/xmlui-standalone.es.d.ts +23 -15
- package/dist/standalone/xmlui-standalone.umd.js +319 -823
- package/package.json +3 -1
- package/src/syntax/textMate/xmlui.tmLanguage.json +2 -2
- package/dist/lib/index-CqzCWOUw.mjs +0 -38579
- package/dist/lib/initMock-C5CXs0-5.mjs +0 -568
- package/dist/lib/transform-SMWeyMoq.mjs +0 -5391
- package/dist/lib/xmlui-serializer-a0O0jFY-.mjs +0 -497
- package/dist/metadata/collectedComponentMetadata-DIT5VbaH.mjs +0 -42985
- package/dist/metadata/initMock-D6Vi9kU_.mjs +0 -568
- package/dist/scripts/src/components-core/ScrollContext.js +0 -11
- package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
|
@@ -24,11 +24,11 @@ exports.LineChartMd = (0, metadata_helpers_1.createMetadata)({
|
|
|
24
24
|
description: "The data to be displayed in the line chart." +
|
|
25
25
|
"It needs to be an array of objects, where each object represents a data point.",
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
xKeys: {
|
|
28
28
|
description: "This property specifies the keys in the data objects that should be used for rendering the lines.",
|
|
29
29
|
valueType: "string",
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
yKey: {
|
|
32
32
|
description: "The key in the data objects used for labeling different data series.",
|
|
33
33
|
valueType: "string",
|
|
34
34
|
},
|
|
@@ -84,7 +84,7 @@ exports.LineChartMd = (0, metadata_helpers_1.createMetadata)({
|
|
|
84
84
|
});
|
|
85
85
|
exports.lineChartComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.LineChartMd, ({ extractValue, node, className, lookupSyncCallback, renderChild }) => {
|
|
86
86
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
87
|
-
return ((0, jsx_runtime_1.jsx)(LineChartNative_1.LineChart, { tickFormatterX: lookupSyncCallback((_a = node.props) === null || _a === void 0 ? void 0 : _a.tickFormatterX), tickFormatterY: lookupSyncCallback((_b = node.props) === null || _b === void 0 ? void 0 : _b.tickFormatterY), hideTickX: extractValue((_c = node.props) === null || _c === void 0 ? void 0 : _c.hideTickX), hideTickY: extractValue((_d = node.props) === null || _d === void 0 ? void 0 : _d.hideTickY), data: extractValue((_e = node.props) === null || _e === void 0 ? void 0 : _e.data), className: className, dataKeys: extractValue((_f = node.props) === null || _f === void 0 ? void 0 : _f.
|
|
87
|
+
return ((0, jsx_runtime_1.jsx)(LineChartNative_1.LineChart, { tickFormatterX: lookupSyncCallback((_a = node.props) === null || _a === void 0 ? void 0 : _a.tickFormatterX), tickFormatterY: lookupSyncCallback((_b = node.props) === null || _b === void 0 ? void 0 : _b.tickFormatterY), hideTickX: extractValue((_c = node.props) === null || _c === void 0 ? void 0 : _c.hideTickX), hideTickY: extractValue((_d = node.props) === null || _d === void 0 ? void 0 : _d.hideTickY), data: extractValue((_e = node.props) === null || _e === void 0 ? void 0 : _e.data), className: className, dataKeys: extractValue((_f = node.props) === null || _f === void 0 ? void 0 : _f.xKeys), nameKey: extractValue((_g = node.props) === null || _g === void 0 ? void 0 : _g.yKey), hideX: extractValue((_h = node.props) === null || _h === void 0 ? void 0 : _h.hideX), hideY: extractValue((_j = node.props) === null || _j === void 0 ? void 0 : _j.hideY), hideTooltip: extractValue((_k = node.props) === null || _k === void 0 ? void 0 : _k.hideTooltip), showLegend: extractValue.asOptionalBoolean((_l = node.props) === null || _l === void 0 ? void 0 : _l.showLegend), marginTop: extractValue.asOptionalNumber((_m = node.props) === null || _m === void 0 ? void 0 : _m.marginTop), marginRight: extractValue.asOptionalNumber((_o = node.props) === null || _o === void 0 ? void 0 : _o.marginRight), marginBottom: extractValue.asOptionalNumber((_p = node.props) === null || _p === void 0 ? void 0 : _p.marginBottom), marginLeft: extractValue.asOptionalNumber((_q = node.props) === null || _q === void 0 ? void 0 : _q.marginLeft), tooltipRenderer: node.props.tooltipTemplate
|
|
88
88
|
? (tooltipData) => {
|
|
89
89
|
return ((0, jsx_runtime_1.jsx)(container_helpers_1.MemoizedItem, { node: node.props.tooltipTemplate, item: tooltipData, contextVars: {
|
|
90
90
|
$tooltip: tooltipData,
|
|
@@ -114,10 +114,14 @@ exports.LineChart = (0, react_1.forwardRef)(function LineChart({ data, dataKeys
|
|
|
114
114
|
const safeTooltipRenderer = (0, react_1.useCallback)((props) => {
|
|
115
115
|
if (!tooltipRenderer)
|
|
116
116
|
return (0, jsx_runtime_1.jsx)(TooltipContent_1.TooltipContent, Object.assign({}, props));
|
|
117
|
+
const payloadObject = {};
|
|
118
|
+
if (props.payload && props.payload.length > 0 && props.payload[0].payload) {
|
|
119
|
+
Object.assign(payloadObject, props.payload[0].payload);
|
|
120
|
+
}
|
|
117
121
|
// Extract tooltip data from Recharts props
|
|
118
122
|
const tooltipData = {
|
|
119
123
|
label: props.label,
|
|
120
|
-
payload:
|
|
124
|
+
payload: payloadObject,
|
|
121
125
|
active: props.active,
|
|
122
126
|
};
|
|
123
127
|
return tooltipRenderer(tooltipData);
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.radarChartComponentRenderer = exports.RadarChartMd = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const RadarChartNative_1 = require("./RadarChartNative");
|
|
6
|
+
const renderers_1 = require("../../../components-core/renderers");
|
|
7
|
+
const metadata_helpers_1 = require("../../metadata-helpers");
|
|
8
|
+
const container_helpers_1 = require("../../container-helpers");
|
|
9
|
+
const COMP = "RadarChart";
|
|
10
|
+
exports.RadarChartMd = (0, metadata_helpers_1.createMetadata)({
|
|
11
|
+
status: "experimental",
|
|
12
|
+
description: "Interactive radar chart for displaying multivariate data in a two-dimensional chart of three or more quantitative variables",
|
|
13
|
+
docFolder: "Charts/RadarChart",
|
|
14
|
+
props: {
|
|
15
|
+
data: {
|
|
16
|
+
description: "This property is used to provide the component with data to display. " +
|
|
17
|
+
"The data needs to be an array of objects.",
|
|
18
|
+
},
|
|
19
|
+
dataKeys: {
|
|
20
|
+
description: "This property specifies the keys in the data objects that should be used for rendering the chart elements. " +
|
|
21
|
+
"E.g. 'value' or 'amount'.",
|
|
22
|
+
valueType: "string",
|
|
23
|
+
},
|
|
24
|
+
nameKey: {
|
|
25
|
+
description: "Specifies the key in the data objects that will be used to label the different data series.",
|
|
26
|
+
valueType: "string",
|
|
27
|
+
},
|
|
28
|
+
hideGrid: {
|
|
29
|
+
description: "Determines whether the polar grid should be hidden. If set to `true`, the grid will not be rendered.",
|
|
30
|
+
valueType: "boolean",
|
|
31
|
+
defaultValue: RadarChartNative_1.defaultProps.hideGrid,
|
|
32
|
+
},
|
|
33
|
+
hideAngleAxis: {
|
|
34
|
+
description: "Determines whether the angle axis should be hidden. If set to `true`, the angle axis will not be rendered.",
|
|
35
|
+
valueType: "boolean",
|
|
36
|
+
defaultValue: RadarChartNative_1.defaultProps.hideAngleAxis,
|
|
37
|
+
},
|
|
38
|
+
hideRadiusAxis: {
|
|
39
|
+
description: "Determines whether the radius axis should be hidden. If set to `true`, the radius axis will not be rendered.",
|
|
40
|
+
valueType: "boolean",
|
|
41
|
+
defaultValue: RadarChartNative_1.defaultProps.hideRadiusAxis,
|
|
42
|
+
},
|
|
43
|
+
hideTooltip: {
|
|
44
|
+
description: "Determines whether the tooltip should be hidden. If set to `true`, the tooltip will not be rendered.",
|
|
45
|
+
valueType: "boolean",
|
|
46
|
+
defaultValue: RadarChartNative_1.defaultProps.hideTooltip,
|
|
47
|
+
},
|
|
48
|
+
showLegend: {
|
|
49
|
+
description: "Determines whether the legend should be shown. If set to `true`, the legend will be rendered.",
|
|
50
|
+
valueType: "boolean",
|
|
51
|
+
defaultValue: RadarChartNative_1.defaultProps.showLegend,
|
|
52
|
+
},
|
|
53
|
+
filled: {
|
|
54
|
+
description: "Determines whether the radar areas should be filled. If set to `true`, areas will be filled with color.",
|
|
55
|
+
valueType: "boolean",
|
|
56
|
+
defaultValue: RadarChartNative_1.defaultProps.filled,
|
|
57
|
+
},
|
|
58
|
+
strokeWidth: {
|
|
59
|
+
description: "Sets the stroke width for the radar lines. Higher values create thicker lines.",
|
|
60
|
+
valueType: "number",
|
|
61
|
+
defaultValue: RadarChartNative_1.defaultProps.strokeWidth,
|
|
62
|
+
},
|
|
63
|
+
fillOpacity: {
|
|
64
|
+
description: "Sets the fill opacity for the radar areas when filled is true. Value between 0 and 1.",
|
|
65
|
+
valueType: "number",
|
|
66
|
+
defaultValue: RadarChartNative_1.defaultProps.fillOpacity,
|
|
67
|
+
},
|
|
68
|
+
tooltipTemplate: {
|
|
69
|
+
description: "This property allows replacing the default template to display a tooltip.",
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
events: {
|
|
73
|
+
// Standard chart events - customize based on chart type
|
|
74
|
+
},
|
|
75
|
+
apis: {
|
|
76
|
+
// Chart-specific APIs if needed
|
|
77
|
+
},
|
|
78
|
+
contextVars: {
|
|
79
|
+
// Add context variables if needed
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
// Component renderer
|
|
83
|
+
exports.radarChartComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.RadarChartMd, ({ extractValue, node, className, renderChild }) => {
|
|
84
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
85
|
+
return ((0, jsx_runtime_1.jsx)(RadarChartNative_1.RadarChart, { className: className, data: extractValue((_a = node.props) === null || _a === void 0 ? void 0 : _a.data), nameKey: extractValue((_b = node.props) === null || _b === void 0 ? void 0 : _b.nameKey), dataKeys: extractValue((_c = node.props) === null || _c === void 0 ? void 0 : _c.dataKeys), hideGrid: extractValue.asOptionalBoolean((_d = node.props) === null || _d === void 0 ? void 0 : _d.hideGrid), hideAngleAxis: extractValue.asOptionalBoolean((_e = node.props) === null || _e === void 0 ? void 0 : _e.hideAngleAxis), hideRadiusAxis: extractValue.asOptionalBoolean((_f = node.props) === null || _f === void 0 ? void 0 : _f.hideRadiusAxis), hideTooltip: extractValue.asOptionalBoolean((_g = node.props) === null || _g === void 0 ? void 0 : _g.hideTooltip), showLegend: extractValue.asOptionalBoolean((_h = node.props) === null || _h === void 0 ? void 0 : _h.showLegend), filled: extractValue.asOptionalBoolean((_j = node.props) === null || _j === void 0 ? void 0 : _j.filled), strokeWidth: extractValue.asOptionalNumber((_k = node.props) === null || _k === void 0 ? void 0 : _k.strokeWidth), fillOpacity: extractValue.asOptionalNumber((_l = node.props) === null || _l === void 0 ? void 0 : _l.fillOpacity), tooltipRenderer: node.props.tooltipTemplate
|
|
86
|
+
? (tooltipData) => {
|
|
87
|
+
return ((0, jsx_runtime_1.jsx)(container_helpers_1.MemoizedItem, { node: node.props.tooltipTemplate, item: tooltipData, contextVars: {
|
|
88
|
+
$tooltip: tooltipData,
|
|
89
|
+
}, renderChild: renderChild }));
|
|
90
|
+
}
|
|
91
|
+
: undefined, children: renderChild(node.children) }));
|
|
92
|
+
});
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.defaultProps = void 0;
|
|
37
|
+
exports.RadarChart = RadarChart;
|
|
38
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
+
const recharts_1 = require("recharts");
|
|
40
|
+
const react_1 = require("react");
|
|
41
|
+
const react_2 = require("react");
|
|
42
|
+
const ChartProvider_1 = __importStar(require("../utils/ChartProvider"));
|
|
43
|
+
const TooltipContent_1 = require("../Tooltip/TooltipContent");
|
|
44
|
+
const ThemeContext_1 = require("../../../components-core/theming/ThemeContext");
|
|
45
|
+
exports.defaultProps = {
|
|
46
|
+
hideGrid: false,
|
|
47
|
+
hideAngleAxis: false,
|
|
48
|
+
hideRadiusAxis: false,
|
|
49
|
+
hideTooltip: false,
|
|
50
|
+
showLegend: false,
|
|
51
|
+
filled: true,
|
|
52
|
+
strokeWidth: 2,
|
|
53
|
+
fillOpacity: 0.3,
|
|
54
|
+
};
|
|
55
|
+
function RadarChart({ data = [], nameKey, dataKeys = [], hideGrid = exports.defaultProps.hideGrid, hideAngleAxis = exports.defaultProps.hideAngleAxis, hideRadiusAxis = exports.defaultProps.hideRadiusAxis, hideTooltip = exports.defaultProps.hideTooltip, className, children, showLegend = exports.defaultProps.showLegend, filled = exports.defaultProps.filled, strokeWidth = exports.defaultProps.strokeWidth, fillOpacity = exports.defaultProps.fillOpacity, tooltipRenderer, }) {
|
|
56
|
+
// Validate and normalize data
|
|
57
|
+
const validData = Array.isArray(data) ? data : [];
|
|
58
|
+
const { getThemeVar } = (0, ThemeContext_1.useTheme)();
|
|
59
|
+
const colorValues = (0, react_2.useMemo)(() => {
|
|
60
|
+
return [
|
|
61
|
+
getThemeVar("color-primary-500"),
|
|
62
|
+
getThemeVar("color-primary-300"),
|
|
63
|
+
getThemeVar("color-success-500"),
|
|
64
|
+
getThemeVar("color-success-300"),
|
|
65
|
+
getThemeVar("color-warn-500"),
|
|
66
|
+
getThemeVar("color-warn-300"),
|
|
67
|
+
getThemeVar("color-danger-500"),
|
|
68
|
+
getThemeVar("color-danger-300"),
|
|
69
|
+
getThemeVar("color-info-500"),
|
|
70
|
+
getThemeVar("color-info-300"),
|
|
71
|
+
getThemeVar("color-secondary-500"),
|
|
72
|
+
getThemeVar("color-secondary-300"),
|
|
73
|
+
];
|
|
74
|
+
}, [getThemeVar]);
|
|
75
|
+
const config = (0, react_2.useMemo)(() => {
|
|
76
|
+
return Object.assign({}, ...dataKeys.map((key, index) => {
|
|
77
|
+
return {
|
|
78
|
+
[key]: {
|
|
79
|
+
label: key,
|
|
80
|
+
color: colorValues[index % colorValues.length],
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
}));
|
|
84
|
+
}, [colorValues, dataKeys]);
|
|
85
|
+
const chartContextValue = (0, ChartProvider_1.useChartContextValue)({ dataKeys, nameKey });
|
|
86
|
+
// Process data and create radar elements based on dataKeys
|
|
87
|
+
const radarElements = (0, react_2.useMemo)(() => {
|
|
88
|
+
return dataKeys.map((key, index) => {
|
|
89
|
+
const color = colorValues[index % colorValues.length];
|
|
90
|
+
return ((0, jsx_runtime_1.jsx)(recharts_1.Radar, { name: key, dataKey: key, stroke: color, fill: filled ? color : "none", fillOpacity: filled ? fillOpacity : 0, strokeWidth: strokeWidth }, key));
|
|
91
|
+
});
|
|
92
|
+
}, [dataKeys, colorValues, filled, fillOpacity, strokeWidth]);
|
|
93
|
+
// Handle responsive behavior
|
|
94
|
+
const [containerSize, setContainerSize] = (0, react_1.useState)({ width: 0, height: 0 });
|
|
95
|
+
const containerRef = (0, react_1.useRef)(null);
|
|
96
|
+
(0, react_1.useEffect)(() => {
|
|
97
|
+
const updateSize = () => {
|
|
98
|
+
if (containerRef.current) {
|
|
99
|
+
const { width, height } = containerRef.current.getBoundingClientRect();
|
|
100
|
+
setContainerSize({ width, height });
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
updateSize();
|
|
104
|
+
window.addEventListener('resize', updateSize);
|
|
105
|
+
return () => window.removeEventListener('resize', updateSize);
|
|
106
|
+
}, []);
|
|
107
|
+
// Determine if we're in mini mode (very small container)
|
|
108
|
+
const isMiniMode = containerSize.height < 150;
|
|
109
|
+
const safeTooltipRenderer = (0, react_1.useCallback)((props) => {
|
|
110
|
+
if (!tooltipRenderer)
|
|
111
|
+
return (0, jsx_runtime_1.jsx)(TooltipContent_1.TooltipContent, Object.assign({}, props));
|
|
112
|
+
const payloadObject = {};
|
|
113
|
+
if (props.payload && props.payload.length > 0 && props.payload[0].payload) {
|
|
114
|
+
Object.assign(payloadObject, props.payload[0].payload);
|
|
115
|
+
}
|
|
116
|
+
// Extract tooltip data from Recharts props
|
|
117
|
+
const tooltipData = {
|
|
118
|
+
label: props.label,
|
|
119
|
+
payload: payloadObject,
|
|
120
|
+
active: props.active,
|
|
121
|
+
};
|
|
122
|
+
return tooltipRenderer(tooltipData);
|
|
123
|
+
}, [tooltipRenderer]);
|
|
124
|
+
return ((0, jsx_runtime_1.jsx)(ChartProvider_1.default, { value: chartContextValue, children: (0, jsx_runtime_1.jsx)("div", { ref: containerRef, className: className, children: (0, jsx_runtime_1.jsx)(recharts_1.ResponsiveContainer, { width: "100%", height: "100%", children: (0, jsx_runtime_1.jsxs)(recharts_1.RadarChart, { data: validData, children: [!hideGrid && (0, jsx_runtime_1.jsx)(recharts_1.PolarGrid, {}), !hideAngleAxis && ((0, jsx_runtime_1.jsx)(recharts_1.PolarAngleAxis, { dataKey: nameKey, hide: isMiniMode })), !hideRadiusAxis && ((0, jsx_runtime_1.jsx)(recharts_1.PolarRadiusAxis, { hide: isMiniMode })), !isMiniMode && !hideTooltip && ((0, jsx_runtime_1.jsx)(recharts_1.Tooltip, { content: safeTooltipRenderer })), showLegend && !isMiniMode && (0, jsx_runtime_1.jsx)(recharts_1.Legend, {}), radarElements, children] }) }) }) }));
|
|
125
|
+
}
|
|
@@ -44,6 +44,7 @@ exports.CheckboxMd = (0, metadata_helpers_1.createMetadata)({
|
|
|
44
44
|
},
|
|
45
45
|
childrenAsTemplate: "inputTemplate",
|
|
46
46
|
events: {
|
|
47
|
+
click: (0, metadata_helpers_1.dClick)(COMP),
|
|
47
48
|
gotFocus: (0, metadata_helpers_1.dGotFocus)(COMP),
|
|
48
49
|
lostFocus: (0, metadata_helpers_1.dLostFocus)(COMP),
|
|
49
50
|
didChange: (0, metadata_helpers_1.dDidChange)(COMP),
|
|
@@ -80,5 +81,5 @@ exports.checkboxComponentRenderer = (0, renderers_1.createComponentRenderer)(COM
|
|
|
80
81
|
const inputTemplate = node.props.inputTemplate;
|
|
81
82
|
return ((0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { inputRenderer: inputTemplate
|
|
82
83
|
? (contextVars) => ((0, jsx_runtime_1.jsx)(container_helpers_1.MemoizedItem, { contextVars: contextVars, node: inputTemplate, renderChild: renderChild, layoutContext: layoutContext }))
|
|
83
|
-
: undefined, enabled: extractValue.asOptionalBoolean(node.props.enabled), className: className, initialValue: extractValue.asOptionalBoolean(node.props.initialValue, exports.defaultProps.initialValue), value: state === null || state === void 0 ? void 0 : state.value, readOnly: extractValue.asOptionalBoolean(node.props.readOnly), validationStatus: extractValue(node.props.validationStatus), updateState: updateState, onDidChange: lookupEventHandler("didChange"), onFocus: lookupEventHandler("gotFocus"), onBlur: lookupEventHandler("lostFocus"), label: extractValue(node.props.label), labelPosition: extractValue(node.props.labelPosition), labelWidth: extractValue(node.props.labelWidth), labelBreak: extractValue.asOptionalBoolean(node.props.labelBreak), required: extractValue.asOptionalBoolean(node.props.required), indeterminate: extractValue.asOptionalBoolean(node.props.indeterminate), registerComponentApi: registerComponentApi, autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus) }));
|
|
84
|
+
: undefined, enabled: extractValue.asOptionalBoolean(node.props.enabled), className: className, initialValue: extractValue.asOptionalBoolean(node.props.initialValue, exports.defaultProps.initialValue), value: state === null || state === void 0 ? void 0 : state.value, readOnly: extractValue.asOptionalBoolean(node.props.readOnly), validationStatus: extractValue(node.props.validationStatus), updateState: updateState, onClick: lookupEventHandler("click"), onDidChange: lookupEventHandler("didChange"), onFocus: lookupEventHandler("gotFocus"), onBlur: lookupEventHandler("lostFocus"), label: extractValue(node.props.label), labelPosition: extractValue(node.props.labelPosition), labelWidth: extractValue(node.props.labelWidth), labelBreak: extractValue.asOptionalBoolean(node.props.labelBreak), required: extractValue.asOptionalBoolean(node.props.required), indeterminate: extractValue.asOptionalBoolean(node.props.indeterminate), registerComponentApi: registerComponentApi, autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus) }));
|
|
84
85
|
});
|
|
@@ -108,12 +108,14 @@ const InspectButton_1 = require("./InspectButton/InspectButton");
|
|
|
108
108
|
const NestedApp_1 = require("./NestedApp/NestedApp");
|
|
109
109
|
const AppWithCodeView_1 = require("./NestedApp/AppWithCodeView");
|
|
110
110
|
const CodeBlock_1 = require("./CodeBlock/CodeBlock");
|
|
111
|
+
const AreaChart_1 = require("./Charts/AreaChart/AreaChart");
|
|
111
112
|
const BarChart_1 = require("./Charts/BarChart/BarChart");
|
|
112
113
|
const DonutChart_1 = require("./Charts/DonutChart/DonutChart");
|
|
113
114
|
const LabelList_1 = require("./Charts/LabelList/LabelList");
|
|
114
115
|
const Legend_1 = require("./Charts/Legend/Legend");
|
|
115
116
|
const LineChart_1 = require("./Charts/LineChart/LineChart");
|
|
116
117
|
const PieChart_1 = require("./Charts/PieChart/PieChart");
|
|
118
|
+
const RadarChart_1 = require("./Charts/RadarChart/RadarChart");
|
|
117
119
|
const Pagination_1 = require("./Pagination/Pagination");
|
|
118
120
|
const Tooltip_1 = require("./Tooltip/Tooltip");
|
|
119
121
|
/**
|
|
@@ -377,12 +379,14 @@ class ComponentRegistry {
|
|
|
377
379
|
this.registerCoreComponent(Pagination_1.paginationComponentRenderer);
|
|
378
380
|
}
|
|
379
381
|
if (process.env.VITE_USED_COMPONENTS_Charts !== "false") {
|
|
382
|
+
this.registerCoreComponent(AreaChart_1.areaChartComponentRenderer);
|
|
380
383
|
this.registerCoreComponent(BarChart_1.barChartComponentRenderer);
|
|
381
384
|
this.registerCoreComponent(DonutChart_1.donutChartComponentRenderer);
|
|
382
385
|
this.registerCoreComponent(LabelList_1.labelListComponentRenderer);
|
|
383
386
|
this.registerCoreComponent(Legend_1.legendComponentRenderer);
|
|
384
387
|
this.registerCoreComponent(LineChart_1.lineChartComponentRenderer);
|
|
385
388
|
this.registerCoreComponent(PieChart_1.pieChartComponentRenderer);
|
|
389
|
+
this.registerCoreComponent(RadarChart_1.radarChartComponentRenderer);
|
|
386
390
|
}
|
|
387
391
|
if (process.env.VITE_USED_COMPONENTS_EmojiSelector !== "false") {
|
|
388
392
|
this.registerCoreComponent(EmojiSelector_1.emojiSelectorRenderer);
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataSourceMd = void 0;
|
|
4
|
+
const abstractions_1 = require("../abstractions");
|
|
5
|
+
const metadata_helpers_1 = require("../metadata-helpers");
|
|
6
|
+
// NOTE: Original component this is based on is the `Loader` component
|
|
7
|
+
const COMP = "DataSource";
|
|
8
|
+
exports.DataSourceMd = (0, metadata_helpers_1.createMetadata)({
|
|
9
|
+
status: "stable",
|
|
10
|
+
description: "`DataSource` fetches and caches data from API endpoints, versus " +
|
|
11
|
+
"[`APICall`](/components/APICall) which creates, updates or deletes data.",
|
|
12
|
+
props: {
|
|
13
|
+
method: {
|
|
14
|
+
description: `Set the HTTP method.`,
|
|
15
|
+
defaultValue: "get",
|
|
16
|
+
availableValues: abstractions_1.httpMethodNames,
|
|
17
|
+
},
|
|
18
|
+
id: {
|
|
19
|
+
description: `Set the ID used by other components to access the retrieved data in the \`value\`` +
|
|
20
|
+
"property of a \`DataSource\`, or status info in the \`loaded\` and \`error\` properties." +
|
|
21
|
+
"When no `id` is set, the component cannot be used programmatically.",
|
|
22
|
+
isRequired: true,
|
|
23
|
+
valueType: "string",
|
|
24
|
+
},
|
|
25
|
+
url: {
|
|
26
|
+
description: `Set the URL.`,
|
|
27
|
+
isRequired: true,
|
|
28
|
+
valueType: "string",
|
|
29
|
+
},
|
|
30
|
+
body: {
|
|
31
|
+
description: `Set the optional request body. The object you pass is serialized as a JSON string.`,
|
|
32
|
+
valueType: "any",
|
|
33
|
+
},
|
|
34
|
+
rawBody: {
|
|
35
|
+
description: `Set the request body with no serialization. Use it to send a payload ` +
|
|
36
|
+
`that has already been serialized to a JSON string.`,
|
|
37
|
+
valueType: "string",
|
|
38
|
+
},
|
|
39
|
+
queryParams: {
|
|
40
|
+
description: `Append optional key-value pairs to the URL.`,
|
|
41
|
+
valueType: "any",
|
|
42
|
+
},
|
|
43
|
+
headers: {
|
|
44
|
+
description: `Set request headers. Pass an object whose keys are header names and values are header values.`,
|
|
45
|
+
valueType: "any",
|
|
46
|
+
},
|
|
47
|
+
pollIntervalInSeconds: {
|
|
48
|
+
description: "Set the interval for periodic data fetching. If the data changes on refresh, " +
|
|
49
|
+
"XMLUI will re-render components that refer directly or indirectly to the \`DataSource\`. " +
|
|
50
|
+
"If not set or set to zero, the component does not poll for data.",
|
|
51
|
+
valueType: "number",
|
|
52
|
+
},
|
|
53
|
+
inProgressNotificationMessage: {
|
|
54
|
+
description: "Set the message to display when the data fetch is in progress. " +
|
|
55
|
+
"If the property value is not set, no progress message is displayed.",
|
|
56
|
+
valueType: "string",
|
|
57
|
+
},
|
|
58
|
+
completedNotificationMessage: {
|
|
59
|
+
description: "Set the message to display when the data fetch completes." +
|
|
60
|
+
"If the property value is not set, no completion message is displayed.",
|
|
61
|
+
valueType: "string",
|
|
62
|
+
},
|
|
63
|
+
errorNotificationMessage: {
|
|
64
|
+
description: "Set the message to display when the there is an error. " +
|
|
65
|
+
"You can use the `$error` context value in an expression to " +
|
|
66
|
+
"refer to the original error message.",
|
|
67
|
+
valueType: "string",
|
|
68
|
+
},
|
|
69
|
+
resultSelector: {
|
|
70
|
+
description: "Set an optional object key to extract a subset of the response data. If this " +
|
|
71
|
+
"value is not set, the entire response body is considered the result.",
|
|
72
|
+
valueType: "string",
|
|
73
|
+
},
|
|
74
|
+
transformResult: {
|
|
75
|
+
description: "Set an optional function to perform a final transformation of the " +
|
|
76
|
+
"response data. If this value is not set, the result is not transformed.",
|
|
77
|
+
},
|
|
78
|
+
prevPageSelector: {
|
|
79
|
+
description: `When using \`${COMP}\` with paging, the response may contain information about the ` +
|
|
80
|
+
`previous and next page. This property defines the selector that extracts the ` +
|
|
81
|
+
`previous page information from the response deserialized to an object.`,
|
|
82
|
+
},
|
|
83
|
+
nextPageSelector: {
|
|
84
|
+
description: `When using \`${COMP}\` with paging, the response may contain information about ` +
|
|
85
|
+
`the previous and next page. This property defines the selector that extracts ` +
|
|
86
|
+
`the next page information from the response deserialized to an object.`,
|
|
87
|
+
},
|
|
88
|
+
structuralSharing: {
|
|
89
|
+
description: "This property allows structural sharing. When turned on, `DataSource` will keep " +
|
|
90
|
+
"the original reference if nothing has changed in the data. If a subset has " +
|
|
91
|
+
"changed, `DataSource` will keep the unchanged parts and only replace the changed " +
|
|
92
|
+
"parts. If you do not need this behavior, set this property to `false`.",
|
|
93
|
+
defaultValue: "true",
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
events: {
|
|
97
|
+
loaded: (0, metadata_helpers_1.d)("The component triggers this event when the fetch operation has been completed " +
|
|
98
|
+
"and the data is loaded. The event has two arguments. The first is the data " +
|
|
99
|
+
"loaded; the second indicates if the event is a result of a refetch."),
|
|
100
|
+
error: (0, metadata_helpers_1.d)(`This event fires when a request results in an error.`),
|
|
101
|
+
},
|
|
102
|
+
apis: {
|
|
103
|
+
value: {
|
|
104
|
+
description: `This property retrieves the data queried from the source after optional transformations.`,
|
|
105
|
+
signature: "get value(): any",
|
|
106
|
+
},
|
|
107
|
+
inProgress: {
|
|
108
|
+
description: "This property indicates if the data is being fetched.",
|
|
109
|
+
signature: "get inProgress(): boolean",
|
|
110
|
+
},
|
|
111
|
+
isRefetching: {
|
|
112
|
+
description: "This property indicates if the data is being re-fetched.",
|
|
113
|
+
signature: "get isRefetching(): boolean",
|
|
114
|
+
},
|
|
115
|
+
loaded: {
|
|
116
|
+
description: "This property indicates if the data has been loaded.",
|
|
117
|
+
signature: "get loaded(): boolean",
|
|
118
|
+
},
|
|
119
|
+
refetch: {
|
|
120
|
+
description: "This method requests the re-fetch of the data.",
|
|
121
|
+
signature: "refetch(): void",
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
});
|
|
@@ -143,19 +143,11 @@ exports.DateInputMd = (0, metadata_helpers_1.createMetadata)({
|
|
|
143
143
|
startIcon: (0, metadata_helpers_1.dStartIcon)(),
|
|
144
144
|
endText: (0, metadata_helpers_1.dEndText)(),
|
|
145
145
|
endIcon: (0, metadata_helpers_1.dEndIcon)(),
|
|
146
|
-
mute: {
|
|
147
|
-
description: "Whether to mute the beep sound while still firing the beep event",
|
|
148
|
-
valueType: "boolean",
|
|
149
|
-
defaultValue: DateInputNative_1.defaultProps.mute,
|
|
150
|
-
},
|
|
151
146
|
},
|
|
152
147
|
events: {
|
|
153
148
|
didChange: (0, metadata_helpers_1.dDidChange)(COMP),
|
|
154
149
|
gotFocus: (0, metadata_helpers_1.dGotFocus)(COMP),
|
|
155
150
|
lostFocus: (0, metadata_helpers_1.dLostFocus)(COMP),
|
|
156
|
-
beep: {
|
|
157
|
-
description: "Event triggered when a beep should occur due to invalid input auto-tab prevention",
|
|
158
|
-
},
|
|
159
151
|
},
|
|
160
152
|
apis: {
|
|
161
153
|
focus: {
|
|
@@ -173,10 +165,16 @@ exports.DateInputMd = (0, metadata_helpers_1.createMetadata)({
|
|
|
173
165
|
value: "The new value to set for the date input.",
|
|
174
166
|
},
|
|
175
167
|
},
|
|
168
|
+
isoValue: {
|
|
169
|
+
description: `Get the current date value formatted in ISO standard (YYYY-MM-DD) format, suitable for JSON serialization.`,
|
|
170
|
+
signature: "isoValue(): string | null",
|
|
171
|
+
},
|
|
176
172
|
},
|
|
177
173
|
themeVars: (0, themeVars_1.parseScssVar)(DateInput_module_scss_1.default.themeVars),
|
|
178
174
|
defaultThemeVars: {
|
|
179
175
|
// DateInput specific theme variables (matching TimeInput structure)
|
|
176
|
+
[`paddingHorizontal-${COMP}`]: "$space-2",
|
|
177
|
+
[`paddingVertical-${COMP}`]: "$space-2",
|
|
180
178
|
[`color-divider-${COMP}`]: "$textColor-secondary",
|
|
181
179
|
[`spacing-divider-${COMP}`]: "1px 0",
|
|
182
180
|
[`width-input-${COMP}`]: "1.8em",
|
|
@@ -199,5 +197,5 @@ exports.DateInputMd = (0, metadata_helpers_1.createMetadata)({
|
|
|
199
197
|
});
|
|
200
198
|
exports.dateInputComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.DateInputMd, ({ node, state, updateState, extractValue, className, lookupEventHandler, registerComponentApi, }) => {
|
|
201
199
|
var _a;
|
|
202
|
-
return ((0, jsx_runtime_1.jsx)(DateInputNative_1.DateInput, { id: node.uid, className: className, mode: extractValue((_a = node.props) === null || _a === void 0 ? void 0 : _a.mode), value: state === null || state === void 0 ? void 0 : state.value, initialValue: extractValue(node.props.initialValue), enabled: extractValue.asOptionalBoolean(node.props.enabled), validationStatus: extractValue(node.props.validationStatus), updateState: updateState, onDidChange: lookupEventHandler("didChange"), onFocus: lookupEventHandler("gotFocus"), onBlur: lookupEventHandler("lostFocus"),
|
|
200
|
+
return ((0, jsx_runtime_1.jsx)(DateInputNative_1.DateInput, { id: node.uid, className: className, mode: extractValue((_a = node.props) === null || _a === void 0 ? void 0 : _a.mode), value: state === null || state === void 0 ? void 0 : state.value, initialValue: extractValue(node.props.initialValue), enabled: extractValue.asOptionalBoolean(node.props.enabled), validationStatus: extractValue(node.props.validationStatus), updateState: updateState, onDidChange: lookupEventHandler("didChange"), onFocus: lookupEventHandler("gotFocus"), onBlur: lookupEventHandler("lostFocus"), registerComponentApi: registerComponentApi, dateFormat: extractValue(node.props.dateFormat), showWeekNumber: extractValue.asOptionalBoolean(node.props.showWeekNumber), weekStartsOn: extractValue.asOptionalNumber(node.props.weekStartsOn), minValue: extractValue.asOptionalString(node.props.minValue), maxValue: extractValue.asOptionalString(node.props.maxValue), disabledDates: extractValue(node.props.disabledDates), inline: extractValue.asOptionalBoolean(node.props.inline, DateInputNative_1.defaultProps.inline), startText: extractValue.asOptionalString(node.props.startText), startIcon: extractValue.asOptionalString(node.props.startIcon), endText: extractValue.asOptionalString(node.props.endText), endIcon: extractValue.asOptionalString(node.props.endIcon), label: extractValue.asOptionalString(node.props.label), labelPosition: extractValue.asOptionalString(node.props.labelPosition), labelWidth: extractValue.asOptionalString(node.props.labelWidth), labelBreak: extractValue.asOptionalBoolean(node.props.labelBreak), readOnly: extractValue.asOptionalBoolean(node.props.readOnly), autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus), required: extractValue.asOptionalBoolean(node.props.required), clearable: extractValue.asOptionalBoolean(node.props.clearable, DateInputNative_1.defaultProps.clearable), clearIcon: extractValue.asOptionalString(node.props.clearIcon), clearToInitialValue: extractValue.asOptionalBoolean(node.props.clearToInitialValue, DateInputNative_1.defaultProps.clearToInitialValue), gap: extractValue.asOptionalString(node.props.gap), emptyCharacter: extractValue.asOptionalString(node.props.emptyCharacter) }));
|
|
203
201
|
});
|