xmlui 0.10.10 → 0.10.12
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-CDOoBf2R.mjs +49626 -0
- package/dist/lib/index.css +1 -1
- package/dist/lib/initMock-BAV9RKui.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-gIOZMGG7.mjs → metadata-utils-D90qqMGc.mjs} +159 -114
- package/dist/lib/scss/components-core/theming/_themes.scss +6 -7
- package/dist/lib/{server-common-BfCSNpXG.mjs → server-common-lmBDLpUh.mjs} +14848 -10785
- 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-bHBjkKSL.mjs +7376 -0
- package/dist/lib/xmlui-parser.d.ts +17 -8
- package/dist/lib/xmlui-parser.mjs +49 -49
- package/dist/lib/xmlui-serializer-DB6BLiXK.mjs +667 -0
- package/dist/lib/xmlui.d.ts +5 -2
- package/dist/lib/xmlui.mjs +43 -43
- package/dist/{lib/apiInterceptorWorker-DH8wqOVq.mjs → metadata/apiInterceptorWorker-BmKP8bnq.mjs} +5432 -3502
- package/dist/metadata/collectedComponentMetadata-Dp8BqWQO.mjs +55444 -0
- package/dist/metadata/initMock-BvEO8W8r.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/Animation/AnimationNative.js +259 -0
- package/dist/scripts/src/components/App/App.js +10 -0
- package/dist/scripts/src/components/App/AppNative.js +23 -2
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +1 -1
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +6 -2
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +11 -7
- package/dist/scripts/src/components/Avatar/Avatar.js +1 -1
- package/dist/scripts/src/components/Button/Button.js +1 -1
- 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 +6 -6
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +110 -96
- package/dist/scripts/src/components/Charts/LineChart/LineChart.js +5 -5
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +14 -4
- 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 -2
- package/dist/scripts/src/components/DataSource/DataSource.js +124 -0
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/scripts/src/components/Footer/Footer.js +1 -1
- package/dist/scripts/src/components/Footer/FooterNative.js +1 -1
- package/dist/scripts/src/components/Form/FormNative.js +5 -3
- package/dist/scripts/src/components/FormItem/FormItem.js +1 -1
- package/dist/scripts/src/components/FormItem/FormItemNative.js +0 -9
- 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/Icon/IconNative.js +24 -6
- package/dist/scripts/src/components/Image/ImageNative.js +13 -0
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +8 -0
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +5 -3
- package/dist/scripts/src/components/NavLink/NavLink.js +1 -1
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +208 -78
- 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/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/Spinner/SpinnerNative.js +3 -2
- 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/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/TextBox/TextBoxNative.js +1 -1
- package/dist/scripts/src/components/Toggle/Toggle.js +2 -2
- package/dist/scripts/src/components/abstractions.js +2 -1
- 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/markup-check.js +279 -0
- 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/syntax-kind.js +9 -0
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +17 -5
- package/dist/standalone/xmlui-standalone.es.d.ts +6 -2
- 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-C71PAj7E.mjs +0 -38677
- package/dist/lib/initMock-Bvbl2Pa3.mjs +0 -571
- package/dist/lib/transform-SMWeyMoq.mjs +0 -5391
- package/dist/lib/xmlui-serializer-a0O0jFY-.mjs +0 -497
- package/dist/metadata/collectedComponentMetadata-Dn91__HO.mjs +0 -43087
- package/dist/metadata/initMock-ghNfStAu.mjs +0 -571
- package/dist/scripts/src/components/NumberBox/NumberBox2.js +0 -99
- package/dist/scripts/src/components/NumberBox/NumberBox2Native.js +0 -420
|
@@ -43,7 +43,7 @@ exports.TableOfContentsMd = (0, metadata_helpers_1.createMetadata)({
|
|
|
43
43
|
[`padding-${COMP}`]: "$space-2",
|
|
44
44
|
[`textColor-${COMP_CHILD}`]: "$color-secondary-500",
|
|
45
45
|
[`textColor-${COMP_CHILD}--hover`]: "$textColor-primary",
|
|
46
|
-
[`fontSize-${COMP_CHILD}`]: "$fontSize-
|
|
46
|
+
[`fontSize-${COMP_CHILD}`]: "$fontSize-sm",
|
|
47
47
|
[`wordWrap-${COMP_CHILD}`]: "break-word",
|
|
48
48
|
[`paddingVertical-${COMP_CHILD}`]: "$space-1",
|
|
49
49
|
[`paddingLeft-${COMP_CHILD}`]: "$space-1",
|
|
@@ -91,23 +91,32 @@ exports.TextMd = (0, metadata_helpers_1.createMetadata)({
|
|
|
91
91
|
],
|
|
92
92
|
},
|
|
93
93
|
},
|
|
94
|
+
apis: {
|
|
95
|
+
hasOverflow: {
|
|
96
|
+
description: "Returns true when the displayed text overflows its container boundaries.",
|
|
97
|
+
signature: "hasOverflow(): boolean",
|
|
98
|
+
},
|
|
99
|
+
},
|
|
94
100
|
themeVars: (0, themeVars_1.parseScssVar)(Text_module_scss_1.default.themeVars),
|
|
95
101
|
defaultThemeVars: {
|
|
96
102
|
[`borderRadius-${COMP}`]: "$borderRadius",
|
|
97
103
|
[`borderStyle-${COMP}`]: "solid",
|
|
98
|
-
[`fontSize-${COMP}`]: "$fontSize-
|
|
104
|
+
[`fontSize-${COMP}`]: "$fontSize-sm",
|
|
105
|
+
[`lineHeight-${COMP}`]: "$lineHeight-sm",
|
|
99
106
|
[`borderWidth-${COMP}`]: "$space-0",
|
|
100
107
|
[`lineHeight-${COMP}-codefence`]: "1.5",
|
|
101
108
|
[`fontWeight-${COMP}-abbr`]: "$fontWeight-bold",
|
|
102
109
|
[`textTransform-${COMP}-abbr`]: "uppercase",
|
|
103
|
-
[`fontSize-${COMP}-secondary`]: "$fontSize-
|
|
110
|
+
[`fontSize-${COMP}-secondary`]: "$fontSize-sm",
|
|
111
|
+
[`lineHeight-${COMP}-secondary`]: "$lineHeight-sm",
|
|
104
112
|
[`fontStyle-${COMP}-cite`]: "italic",
|
|
105
113
|
[`textColor-${COMP}`]: "$textColor-primary",
|
|
106
114
|
[`fontFamily-${COMP}`]: "$fontFamily",
|
|
107
115
|
[`fontWeight-${COMP}`]: "$fontWeight-normal",
|
|
108
116
|
[`fontSize-${COMP}-codefence`]: "$fontSize-code",
|
|
109
117
|
[`fontFamily-${COMP}-code`]: "$fontFamily-monospace",
|
|
110
|
-
[`fontSize-${COMP}-code`]: "$fontSize-
|
|
118
|
+
[`fontSize-${COMP}-code`]: "$fontSize-sm",
|
|
119
|
+
[`lineHeight-${COMP}-code`]: "$lineHeight-xs",
|
|
111
120
|
[`borderWidth-${COMP}-code`]: "1px",
|
|
112
121
|
[`borderStyle-${COMP}-code`]: "solid",
|
|
113
122
|
[`borderRadius-${COMP}-code`]: "4px",
|
|
@@ -116,30 +125,38 @@ exports.TextMd = (0, metadata_helpers_1.createMetadata)({
|
|
|
116
125
|
[`textDecorationLine-${COMP}-deleted`]: "line-through",
|
|
117
126
|
[`textDecorationLine-${COMP}-inserted`]: "underline",
|
|
118
127
|
[`fontFamily-${COMP}-keyboard`]: "$fontFamily-monospace",
|
|
119
|
-
[`fontSize-${COMP}-keyboard`]: "$fontSize-
|
|
128
|
+
[`fontSize-${COMP}-keyboard`]: "$fontSize-sm",
|
|
129
|
+
[`lineHeight-${COMP}-keyboard`]: "$lineHeight-sm",
|
|
120
130
|
[`fontWeight-${COMP}-keyboard`]: "$fontWeight-bold",
|
|
121
131
|
[`borderWidth-${COMP}-keyboard`]: "1px",
|
|
122
132
|
[`paddingHorizontal-${COMP}-keyboard`]: "$space-1",
|
|
123
133
|
[`fontFamily-${COMP}-sample`]: "$fontFamily-monospace",
|
|
124
|
-
[`fontSize-${COMP}-sample`]: "$fontSize-
|
|
125
|
-
[`
|
|
134
|
+
[`fontSize-${COMP}-sample`]: "$fontSize-sm",
|
|
135
|
+
[`lineHeight-${COMP}-sample`]: "$lineHeight-sm",
|
|
136
|
+
[`fontSize-${COMP}-sup`]: "$fontSize-xs",
|
|
137
|
+
[`lineHeight-${COMP}-sup`]: "$lineHeight-xs",
|
|
126
138
|
[`verticalAlignment-${COMP}-sup`]: "super",
|
|
127
|
-
[`fontSize-${COMP}-sub`]: "$fontSize-
|
|
139
|
+
[`fontSize-${COMP}-sub`]: "$fontSize-xs",
|
|
140
|
+
[`lineHeight-${COMP}-sub`]: "$lineHeight-xs",
|
|
128
141
|
[`verticalAlignment-${COMP}-sub`]: "sub",
|
|
129
142
|
[`fontStyle-${COMP}-var`]: "italic",
|
|
130
143
|
[`fontStyle-${COMP}-em`]: "italic",
|
|
131
144
|
[`fontFamily-${COMP}-mono`]: "$fontFamily-monospace",
|
|
132
|
-
[`fontSize-${COMP}-title`]: "$fontSize-
|
|
133
|
-
[`
|
|
134
|
-
[`fontSize-${COMP}-
|
|
135
|
-
[`lineHeight-${COMP}-
|
|
145
|
+
[`fontSize-${COMP}-title`]: "$fontSize-2xl",
|
|
146
|
+
[`lineHeight-${COMP}-title`]: "$lineHeight-2xl",
|
|
147
|
+
[`fontSize-${COMP}-subtitle`]: "$fontSize-xl",
|
|
148
|
+
[`lineHeight-${COMP}-subtitle`]: "$lineHeight-xl",
|
|
149
|
+
[`fontSize-${COMP}-small`]: "$fontSize-sm",
|
|
150
|
+
[`lineHeight-${COMP}-small`]: "$lineHeight-sm",
|
|
136
151
|
[`letterSpacing-${COMP}-caption`]: "0.05rem",
|
|
137
|
-
[`fontSize-${COMP}-placeholder`]: "$fontSize-
|
|
152
|
+
[`fontSize-${COMP}-placeholder`]: "$fontSize-xs",
|
|
153
|
+
[`lineHeight-${COMP}-placeholder`]: "$lineHeight-xs",
|
|
138
154
|
[`fontFamily-${COMP}-codefence`]: "$fontFamily-monospace",
|
|
139
155
|
[`paddingHorizontal-${COMP}-codefence`]: "$space-4",
|
|
140
156
|
[`paddingVertical-${COMP}-codefence`]: "$space-3",
|
|
141
157
|
[`paddingVertical-${COMP}-paragraph`]: "$space-1",
|
|
142
158
|
[`fontSize-${COMP}-subheading`]: "$fontSize-H6",
|
|
159
|
+
[`lineHeight-${COMP}-subheading`]: "$lineHeight-sm",
|
|
143
160
|
[`fontWeight-${COMP}-subheading`]: "$fontWeight-bold",
|
|
144
161
|
[`letterSpacing-${COMP}-subheading`]: "0.04em",
|
|
145
162
|
[`textTransform-${COMP}-subheading`]: "uppercase",
|
|
@@ -147,6 +164,7 @@ exports.TextMd = (0, metadata_helpers_1.createMetadata)({
|
|
|
147
164
|
[`marginBottom-${COMP}-tableheading`]: "$space-4",
|
|
148
165
|
[`paddingHorizontal-${COMP}-tableheading`]: "$space-1",
|
|
149
166
|
[`fontSize-${COMP}-tableheading`]: "$fontSize-H6",
|
|
167
|
+
[`lineHeight-${COMP}-tableheading`]: "$lineHeight-sm",
|
|
150
168
|
[`fontWeight-${COMP}-tableheading`]: "$fontWeight-bold",
|
|
151
169
|
[`backgroundColor-${COMP}-code`]: "rgb(from $color-surface-100 r g b / 0.4)",
|
|
152
170
|
[`borderColor-${COMP}-code`]: "$color-surface-100",
|
|
@@ -162,10 +180,10 @@ exports.TextMd = (0, metadata_helpers_1.createMetadata)({
|
|
|
162
180
|
},
|
|
163
181
|
},
|
|
164
182
|
});
|
|
165
|
-
exports.textComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.TextMd, ({ node, extractValue, className, renderChild }) => {
|
|
183
|
+
exports.textComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.TextMd, ({ node, extractValue, className, renderChild, registerComponentApi }) => {
|
|
166
184
|
const _a = node.props, { variant, maxLines, preserveLinebreaks, ellipses, overflowMode, breakMode, value } = _a, variantSpecific = __rest(_a, ["variant", "maxLines", "preserveLinebreaks", "ellipses", "overflowMode", "breakMode", "value"]);
|
|
167
185
|
const variantSpecificProps = Object.fromEntries(Object.entries(variantSpecific)
|
|
168
186
|
.filter(([key, _]) => abstractions_1.VariantPropsKeys.includes(key))
|
|
169
187
|
.map(([key, value]) => [key, extractValue(value)]));
|
|
170
|
-
return ((0, jsx_runtime_1.jsx)(TextNative_1.Text, Object.assign({ variant: extractValue(variant), maxLines: extractValue.asOptionalNumber(maxLines), className: className, preserveLinebreaks: extractValue.asOptionalBoolean(preserveLinebreaks, TextNative_1.defaultProps.preserveLinebreaks), ellipses: extractValue.asOptionalBoolean(ellipses, TextNative_1.defaultProps.ellipses), overflowMode: extractValue(overflowMode), breakMode: extractValue(breakMode) }, variantSpecificProps, { children: extractValue.asDisplayText(value) || renderChild(node.children) })));
|
|
188
|
+
return ((0, jsx_runtime_1.jsx)(TextNative_1.Text, Object.assign({ variant: extractValue(variant), maxLines: extractValue.asOptionalNumber(maxLines), className: className, preserveLinebreaks: extractValue.asOptionalBoolean(preserveLinebreaks, TextNative_1.defaultProps.preserveLinebreaks), ellipses: extractValue.asOptionalBoolean(ellipses, TextNative_1.defaultProps.ellipses), overflowMode: extractValue(overflowMode), breakMode: extractValue(breakMode), registerComponentApi: registerComponentApi }, variantSpecificProps, { children: extractValue.asDisplayText(value) || renderChild(node.children) })));
|
|
171
189
|
});
|
|
@@ -30,13 +30,25 @@ exports.defaultProps = {
|
|
|
30
30
|
breakMode: "normal",
|
|
31
31
|
};
|
|
32
32
|
exports.Text = (0, react_1.forwardRef)(function Text(_a, forwardedRef) {
|
|
33
|
-
var { uid, variant, maxLines = exports.defaultProps.maxLines, style, className, children, preserveLinebreaks = exports.defaultProps.preserveLinebreaks, ellipses = exports.defaultProps.ellipses, overflowMode = exports.defaultProps.overflowMode, breakMode = exports.defaultProps.breakMode } = _a, variantSpecificProps = __rest(_a, ["uid", "variant", "maxLines", "style", "className", "children", "preserveLinebreaks", "ellipses", "overflowMode", "breakMode"]);
|
|
33
|
+
var { uid, variant, maxLines = exports.defaultProps.maxLines, style, className, children, preserveLinebreaks = exports.defaultProps.preserveLinebreaks, ellipses = exports.defaultProps.ellipses, overflowMode = exports.defaultProps.overflowMode, breakMode = exports.defaultProps.breakMode, registerComponentApi } = _a, variantSpecificProps = __rest(_a, ["uid", "variant", "maxLines", "style", "className", "children", "preserveLinebreaks", "ellipses", "overflowMode", "breakMode", "registerComponentApi"]);
|
|
34
34
|
const innerRef = (0, react_1.useRef)(null);
|
|
35
35
|
const ref = forwardedRef ? (0, react_compose_refs_1.composeRefs)(innerRef, forwardedRef) : innerRef;
|
|
36
|
-
//
|
|
37
|
-
(0, react_1.
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
// Implement hasOverflow function
|
|
37
|
+
const hasOverflow = (0, react_1.useCallback)(() => {
|
|
38
|
+
const element = innerRef.current;
|
|
39
|
+
if (!element)
|
|
40
|
+
return false;
|
|
41
|
+
// Check both horizontal and vertical overflow
|
|
42
|
+
const hasHorizontalOverflow = element.scrollWidth > element.clientWidth;
|
|
43
|
+
const hasVerticalOverflow = element.scrollHeight > element.clientHeight;
|
|
44
|
+
return hasHorizontalOverflow || hasVerticalOverflow;
|
|
45
|
+
}, []);
|
|
46
|
+
// Register API with XMLUI if provided
|
|
47
|
+
(0, react_1.useEffect)(() => {
|
|
48
|
+
if (registerComponentApi) {
|
|
49
|
+
registerComponentApi({ hasOverflow });
|
|
50
|
+
}
|
|
51
|
+
}, [registerComponentApi, hasOverflow]);
|
|
40
52
|
// NOTE: This is to accept syntax highlight classes coming from shiki
|
|
41
53
|
// classes need not to be added to the rendered html element, so we remove them from props
|
|
42
54
|
const { syntaxHighlightClasses } = variantSpecificProps, restVariantSpecificProps = __rest(variantSpecificProps, ["syntaxHighlightClasses"]);
|
|
@@ -92,7 +92,7 @@ exports.TextBox = (0, react_1.forwardRef)(function TextBox(_a, ref) {
|
|
|
92
92
|
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
93
93
|
}, 0);
|
|
94
94
|
}
|
|
95
|
-
}, [autoFocus, inputRef
|
|
95
|
+
}, [autoFocus, inputRef]);
|
|
96
96
|
// --- NOTE: This is a workaround for the jumping caret issue.
|
|
97
97
|
// --- Local state can sync up values that can get set asynchronously outside the component.
|
|
98
98
|
const [localValue, setLocalValue] = react_2.default.useState(value);
|
|
@@ -66,7 +66,7 @@ exports.defaultProps = {
|
|
|
66
66
|
indeterminate: false,
|
|
67
67
|
};
|
|
68
68
|
exports.Toggle = (0, react_3.forwardRef)(function Toggle(_a, forwardedRef) {
|
|
69
|
-
var { id, initialValue = exports.defaultProps.initialValue, value = exports.defaultProps.value, enabled = exports.defaultProps.enabled, style, readOnly, validationStatus = exports.defaultProps.validationStatus, updateState = constants_1.noop, onDidChange = constants_1.noop, onFocus = constants_1.noop, onBlur = constants_1.noop, variant = "checkbox", indeterminate = exports.defaultProps.indeterminate, className, label, labelPosition = "end", labelWidth, labelBreak, required, autoFocus, registerComponentApi, inputRenderer } = _a, rest = __rest(_a, ["id", "initialValue", "value", "enabled", "style", "readOnly", "validationStatus", "updateState", "onDidChange", "onFocus", "onBlur", "variant", "indeterminate", "className", "label", "labelPosition", "labelWidth", "labelBreak", "required", "autoFocus", "registerComponentApi", "inputRenderer"]);
|
|
69
|
+
var { id, initialValue = exports.defaultProps.initialValue, value = exports.defaultProps.value, enabled = exports.defaultProps.enabled, style, readOnly, validationStatus = exports.defaultProps.validationStatus, updateState = constants_1.noop, onClick = constants_1.noop, onDidChange = constants_1.noop, onFocus = constants_1.noop, onBlur = constants_1.noop, variant = "checkbox", indeterminate = exports.defaultProps.indeterminate, className, label, labelPosition = "end", labelWidth, labelBreak, required, autoFocus, registerComponentApi, inputRenderer } = _a, rest = __rest(_a, ["id", "initialValue", "value", "enabled", "style", "readOnly", "validationStatus", "updateState", "onClick", "onDidChange", "onFocus", "onBlur", "variant", "indeterminate", "className", "label", "labelPosition", "labelWidth", "labelBreak", "required", "autoFocus", "registerComponentApi", "inputRenderer"]);
|
|
70
70
|
const generatedId = (0, react_1.useId)();
|
|
71
71
|
const inputId = id || generatedId;
|
|
72
72
|
const innerRef = react_3.default.useRef(null);
|
|
@@ -139,7 +139,7 @@ exports.Toggle = (0, react_3.forwardRef)(function Toggle(_a, forwardedRef) {
|
|
|
139
139
|
}, [focus, registerComponentApi, setValue]);
|
|
140
140
|
const input = (0, react_2.useMemo)(() => {
|
|
141
141
|
const legitValue = transformToLegitValue(value);
|
|
142
|
-
return ((0, jsx_runtime_1.jsx)("input", { id: inputId, "data-part-id": parts_1.PART_INPUT, ref: innerRef, type: "checkbox", role: variant, checked: legitValue, disabled: !enabled, required: required, readOnly: readOnly, "aria-readonly": readOnly, "aria-checked": indeterminate ? "mixed" : legitValue, "aria-required": required, "aria-disabled": !enabled, onChange: onInputChange, onFocus: handleOnFocus, onBlur: handleOnBlur, autoFocus: autoFocus, className: (0, classnames_1.default)(Toggle_module_scss_1.default.resetAppearance, {
|
|
142
|
+
return ((0, jsx_runtime_1.jsx)("input", { id: inputId, "data-part-id": parts_1.PART_INPUT, ref: innerRef, type: "checkbox", role: variant, checked: legitValue, disabled: !enabled, required: required, readOnly: readOnly, "aria-readonly": readOnly, "aria-checked": indeterminate ? "mixed" : legitValue, "aria-required": required, "aria-disabled": !enabled, onClick: onClick, onChange: onInputChange, onFocus: handleOnFocus, onBlur: handleOnBlur, autoFocus: autoFocus, className: (0, classnames_1.default)(Toggle_module_scss_1.default.resetAppearance, {
|
|
143
143
|
[Toggle_module_scss_1.default.checkbox]: variant === "checkbox",
|
|
144
144
|
[Toggle_module_scss_1.default.switch]: variant === "switch",
|
|
145
145
|
[Toggle_module_scss_1.default.error]: validationStatus === "error",
|
|
@@ -39,12 +39,13 @@ exports.viewportSizeMd = [
|
|
|
39
39
|
];
|
|
40
40
|
exports.viewportSizeNames = Object.keys(exports.viewportSizeMd);
|
|
41
41
|
// --- Available button sizes
|
|
42
|
-
exports.sizeValues = ["xs", "sm", "md", "lg"];
|
|
42
|
+
exports.sizeValues = ["xs", "sm", "md", "lg", "xl"];
|
|
43
43
|
exports.sizeMd = [
|
|
44
44
|
{ value: "xs", description: "Extra small" },
|
|
45
45
|
{ value: "sm", description: "Small" },
|
|
46
46
|
{ value: "md", description: "Medium" },
|
|
47
47
|
{ value: "lg", description: "Large" },
|
|
48
|
+
{ value: "xl", description: "Extra large" },
|
|
48
49
|
];
|
|
49
50
|
function isSizeType(value) {
|
|
50
51
|
return exports.sizeValues.includes(value);
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.collectedThemes = exports.collectedComponentMetadata = void 0;
|
|
4
|
+
const Button_1 = require("./Button/Button");
|
|
5
|
+
const Stack_1 = require("./Stack/Stack");
|
|
6
|
+
const TextBox_1 = require("./TextBox/TextBox");
|
|
7
|
+
const Theme_1 = require("./Theme/Theme");
|
|
8
|
+
const App_1 = require("./App/App");
|
|
9
|
+
const AppHeader_1 = require("./AppHeader/AppHeader");
|
|
10
|
+
const AppState_1 = require("./AppState/AppState");
|
|
11
|
+
const Avatar_1 = require("./Avatar/Avatar");
|
|
12
|
+
const Badge_1 = require("./Badge/Badge");
|
|
13
|
+
const Bookmark_1 = require("./Bookmark/Bookmark");
|
|
14
|
+
const Card_1 = require("./Card/Card");
|
|
15
|
+
const ChangeListener_1 = require("./ChangeListener/ChangeListener");
|
|
16
|
+
const Checkbox_1 = require("./Checkbox/Checkbox");
|
|
17
|
+
const ContentSeparator_1 = require("./ContentSeparator/ContentSeparator");
|
|
18
|
+
const DatePicker_1 = require("./DatePicker/DatePicker");
|
|
19
|
+
const DropdownMenu_1 = require("./DropdownMenu/DropdownMenu");
|
|
20
|
+
const EmojiSelector_1 = require("./EmojiSelector/EmojiSelector");
|
|
21
|
+
const FileInput_1 = require("./FileInput/FileInput");
|
|
22
|
+
const FileUploadDropZone_1 = require("./FileUploadDropZone/FileUploadDropZone");
|
|
23
|
+
const FlowLayout_1 = require("./FlowLayout/FlowLayout");
|
|
24
|
+
const Footer_1 = require("./Footer/Footer");
|
|
25
|
+
const Form_1 = require("./Form/Form");
|
|
26
|
+
const FormItem_1 = require("./FormItem/FormItem");
|
|
27
|
+
const Heading_1 = require("./Heading/Heading");
|
|
28
|
+
const HoverCard_1 = require("./HoverCard/HoverCard");
|
|
29
|
+
const Icon_1 = require("./Icon/Icon");
|
|
30
|
+
const IFrame_1 = require("./IFrame/IFrame");
|
|
31
|
+
const Image_1 = require("./Image/Image");
|
|
32
|
+
const Items_1 = require("./Items/Items");
|
|
33
|
+
const Link_1 = require("./Link/Link");
|
|
34
|
+
const List_1 = require("./List/List");
|
|
35
|
+
const Logo_1 = require("./Logo/Logo");
|
|
36
|
+
const Markdown_1 = require("./Markdown/Markdown");
|
|
37
|
+
const ModalDialog_1 = require("./ModalDialog/ModalDialog");
|
|
38
|
+
const NavGroup_1 = require("./NavGroup/NavGroup");
|
|
39
|
+
const NavLink_1 = require("./NavLink/NavLink");
|
|
40
|
+
const NavPanel_1 = require("./NavPanel/NavPanel");
|
|
41
|
+
const NoResult_1 = require("./NoResult/NoResult");
|
|
42
|
+
const NumberBox_1 = require("./NumberBox/NumberBox");
|
|
43
|
+
const PageMetaTitle_1 = require("./PageMetaTitle/PageMetaTitle");
|
|
44
|
+
const Pages_1 = require("./Pages/Pages");
|
|
45
|
+
const PositionedContainer_1 = require("./PositionedContainer/PositionedContainer");
|
|
46
|
+
const ProgressBar_1 = require("./ProgressBar/ProgressBar");
|
|
47
|
+
const Queue_1 = require("./Queue/Queue");
|
|
48
|
+
const RadioGroup_1 = require("./RadioGroup/RadioGroup");
|
|
49
|
+
const RealTimeAdapter_1 = require("./RealTimeAdapter/RealTimeAdapter");
|
|
50
|
+
const Redirect_1 = require("./Redirect/Redirect");
|
|
51
|
+
const Select_1 = require("./Select/Select");
|
|
52
|
+
const SelectionStore_1 = require("./SelectionStore/SelectionStore");
|
|
53
|
+
const SpaceFiller_1 = require("./SpaceFiller/SpaceFiller");
|
|
54
|
+
const Spinner_1 = require("./Spinner/Spinner");
|
|
55
|
+
const Splitter_1 = require("./Splitter/Splitter");
|
|
56
|
+
const StickyBox_1 = require("./StickyBox/StickyBox");
|
|
57
|
+
const Switch_1 = require("./Switch/Switch");
|
|
58
|
+
const Table_1 = require("./Table/Table");
|
|
59
|
+
const Column_1 = require("./Column/Column");
|
|
60
|
+
const TableOfContents_1 = require("./TableOfContents/TableOfContents");
|
|
61
|
+
const Tabs_1 = require("./Tabs/Tabs");
|
|
62
|
+
const Text_1 = require("./Text/Text");
|
|
63
|
+
const TextArea_1 = require("./TextArea/TextArea");
|
|
64
|
+
const Accordion_1 = require("./Accordion/Accordion");
|
|
65
|
+
const TabItem_1 = require("./Tabs/TabItem");
|
|
66
|
+
const Fragment_1 = require("./Fragment/Fragment");
|
|
67
|
+
const TreeComponent_1 = require("./Tree/TreeComponent");
|
|
68
|
+
const APICall_1 = require("./APICall/APICall");
|
|
69
|
+
const DataSource_1 = require("./DataSource/DataSource");
|
|
70
|
+
const FormSection_1 = require("./FormSection/FormSection");
|
|
71
|
+
const Breakout_1 = require("./Breakout/Breakout");
|
|
72
|
+
const Carousel_1 = require("./Carousel/Carousel");
|
|
73
|
+
const ToneChangerButton_1 = require("./ToneChangerButton/ToneChangerButton");
|
|
74
|
+
const ToneSwitch_1 = require("./ToneSwitch/ToneSwitch");
|
|
75
|
+
const Option_1 = require("./Option/Option");
|
|
76
|
+
const AutoComplete_1 = require("./AutoComplete/AutoComplete");
|
|
77
|
+
const Backdrop_1 = require("./Backdrop/Backdrop");
|
|
78
|
+
const HtmlTags_1 = require("./HtmlTags/HtmlTags");
|
|
79
|
+
const Slider_1 = require("./Slider/Slider");
|
|
80
|
+
const ColorPicker_1 = require("./ColorPicker/ColorPicker");
|
|
81
|
+
const root_1 = require("../components-core/theming/themes/root");
|
|
82
|
+
const xmlui_1 = require("../components-core/theming/themes/xmlui");
|
|
83
|
+
const BarChart_1 = require("./Charts/BarChart/BarChart");
|
|
84
|
+
const DonutChart_1 = require("./Charts/DonutChart/DonutChart");
|
|
85
|
+
const LabelList_1 = require("./Charts/LabelList/LabelList");
|
|
86
|
+
const Legend_1 = require("./Charts/Legend/Legend");
|
|
87
|
+
const LineChart_1 = require("./Charts/LineChart/LineChart");
|
|
88
|
+
const PieChart_1 = require("./Charts/PieChart/PieChart");
|
|
89
|
+
const ExpandableItem_1 = require("./ExpandableItem/ExpandableItem");
|
|
90
|
+
const Slot_1 = require("./Slot/Slot");
|
|
91
|
+
const Tooltip_1 = require("./Tooltip/Tooltip");
|
|
92
|
+
const TimeInput_1 = require("./TimeInput/TimeInput");
|
|
93
|
+
const Timer_1 = require("./Timer/Timer");
|
|
94
|
+
const DateInput_1 = require("./DateInput/DateInput");
|
|
95
|
+
const Pagination_1 = require("./Pagination/Pagination");
|
|
96
|
+
exports.collectedComponentMetadata = {
|
|
97
|
+
// --- HTML tags
|
|
98
|
+
a: HtmlTags_1.HtmlAMd,
|
|
99
|
+
address: HtmlTags_1.HtmlAddressMd,
|
|
100
|
+
area: HtmlTags_1.HtmlAreaMd,
|
|
101
|
+
article: HtmlTags_1.HtmlArticleMd,
|
|
102
|
+
aside: HtmlTags_1.HtmlAsideMd,
|
|
103
|
+
audio: HtmlTags_1.HtmlAudioMd,
|
|
104
|
+
b: HtmlTags_1.HtmlBMd,
|
|
105
|
+
bdi: HtmlTags_1.HtmlBdiMd,
|
|
106
|
+
bdo: HtmlTags_1.HtmlBdoMd,
|
|
107
|
+
blockquote: HtmlTags_1.HtmlBlockquoteMd,
|
|
108
|
+
br: HtmlTags_1.HtmlBrMd,
|
|
109
|
+
button: HtmlTags_1.HtmlButtonMd,
|
|
110
|
+
canvas: HtmlTags_1.HtmlCanvasMd,
|
|
111
|
+
caption: HtmlTags_1.HtmlCaptionMd,
|
|
112
|
+
cite: HtmlTags_1.HtmlCiteMd,
|
|
113
|
+
code: HtmlTags_1.HtmlCodeMd,
|
|
114
|
+
col: HtmlTags_1.HtmlColMd,
|
|
115
|
+
colgroup: HtmlTags_1.HtmlColgroupMd,
|
|
116
|
+
data: HtmlTags_1.HtmlDataMd,
|
|
117
|
+
datalist: HtmlTags_1.HtmlDatalistMd,
|
|
118
|
+
dd: HtmlTags_1.HtmlDdMd,
|
|
119
|
+
del: HtmlTags_1.HtmlDelMd,
|
|
120
|
+
details: HtmlTags_1.HtmlDetailsMd,
|
|
121
|
+
dfn: HtmlTags_1.HtmlDfnMd,
|
|
122
|
+
dialog: HtmlTags_1.HtmlDialogMd,
|
|
123
|
+
div: HtmlTags_1.HtmlDivMd,
|
|
124
|
+
dl: HtmlTags_1.HtmlDlMd,
|
|
125
|
+
dt: HtmlTags_1.HtmlDtMd,
|
|
126
|
+
em: HtmlTags_1.HtmlEMMd,
|
|
127
|
+
embed: HtmlTags_1.HtmlEmbedMd,
|
|
128
|
+
fieldset: HtmlTags_1.HtmlFieldsetMd,
|
|
129
|
+
figcaption: HtmlTags_1.HtmlFigcaptionMd,
|
|
130
|
+
figure: HtmlTags_1.HtmlFigureMd,
|
|
131
|
+
footer: HtmlTags_1.HtmlFooterMd,
|
|
132
|
+
form: HtmlTags_1.HtmlFormMd,
|
|
133
|
+
h1: HtmlTags_1.HtmlH1Md,
|
|
134
|
+
h2: HtmlTags_1.HtmlH2Md,
|
|
135
|
+
h3: HtmlTags_1.HtmlH3Md,
|
|
136
|
+
h4: HtmlTags_1.HtmlH4Md,
|
|
137
|
+
h5: HtmlTags_1.HtmlH5Md,
|
|
138
|
+
h6: HtmlTags_1.HtmlH6Md,
|
|
139
|
+
header: HtmlTags_1.HtmlHeaderMd,
|
|
140
|
+
hr: HtmlTags_1.HtmlHrMd,
|
|
141
|
+
i: HtmlTags_1.HtmlIMd,
|
|
142
|
+
iframe: HtmlTags_1.HtmlIframeMd,
|
|
143
|
+
img: HtmlTags_1.HtmlImgMd,
|
|
144
|
+
input: HtmlTags_1.HtmlInputMd,
|
|
145
|
+
ins: HtmlTags_1.HtmlInsMd,
|
|
146
|
+
kbd: HtmlTags_1.HtmlKbdMd,
|
|
147
|
+
label: HtmlTags_1.HtmlLabelMd,
|
|
148
|
+
legend: HtmlTags_1.HtmlLegendMd,
|
|
149
|
+
li: HtmlTags_1.HtmlLiMd,
|
|
150
|
+
main: HtmlTags_1.HtmlMainMd,
|
|
151
|
+
map: HtmlTags_1.HtmlMapMd,
|
|
152
|
+
mark: HtmlTags_1.HtmlMarkMd,
|
|
153
|
+
menu: HtmlTags_1.HtmlMenuMd,
|
|
154
|
+
meter: HtmlTags_1.HtmlMeterMd,
|
|
155
|
+
nav: HtmlTags_1.HtmlNavMd,
|
|
156
|
+
object: HtmlTags_1.HtmlObjectMd,
|
|
157
|
+
ol: HtmlTags_1.HtmlOlMd,
|
|
158
|
+
optgroup: HtmlTags_1.HtmlOptgroupMd,
|
|
159
|
+
option: HtmlTags_1.HtmlOptionMd,
|
|
160
|
+
output: HtmlTags_1.HtmlOutputMd,
|
|
161
|
+
p: HtmlTags_1.HtmlPMd,
|
|
162
|
+
param: HtmlTags_1.HtmlParamMd,
|
|
163
|
+
picture: HtmlTags_1.HtmlPictureMd,
|
|
164
|
+
pre: HtmlTags_1.HtmlPreMd,
|
|
165
|
+
progress: HtmlTags_1.HtmlProgressMd,
|
|
166
|
+
q: HtmlTags_1.HtmlQMd,
|
|
167
|
+
rp: HtmlTags_1.HtmlRpMd,
|
|
168
|
+
rt: HtmlTags_1.HtmlRtMd,
|
|
169
|
+
ruby: HtmlTags_1.HtmlRubyMd,
|
|
170
|
+
s: HtmlTags_1.HtmlSMd,
|
|
171
|
+
samp: HtmlTags_1.HtmlSampMd,
|
|
172
|
+
section: HtmlTags_1.HtmlSectionMd,
|
|
173
|
+
select: HtmlTags_1.HtmlSelectMd,
|
|
174
|
+
small: HtmlTags_1.HtmlSmallMd,
|
|
175
|
+
source: HtmlTags_1.HtmlSourceMd,
|
|
176
|
+
span: HtmlTags_1.HtmlSpanMd,
|
|
177
|
+
strong: HtmlTags_1.HtmlStrongMd,
|
|
178
|
+
sub: HtmlTags_1.HtmlSubMd,
|
|
179
|
+
summary: HtmlTags_1.HtmlSummaryMd,
|
|
180
|
+
sup: HtmlTags_1.HtmlSupMd,
|
|
181
|
+
table: HtmlTags_1.HtmlTableMd,
|
|
182
|
+
tbody: HtmlTags_1.HtmlTbodyMd,
|
|
183
|
+
td: HtmlTags_1.HtmlTdMd,
|
|
184
|
+
template: HtmlTags_1.HtmlTemplateMd,
|
|
185
|
+
textarea: HtmlTags_1.HtmlTextareaMd,
|
|
186
|
+
tfoot: HtmlTags_1.HtmlTfootMd,
|
|
187
|
+
th: HtmlTags_1.HtmlThMd,
|
|
188
|
+
thead: HtmlTags_1.HtmlTheadMd,
|
|
189
|
+
time: HtmlTags_1.HtmlTimeMd,
|
|
190
|
+
tr: HtmlTags_1.HtmlTrMd,
|
|
191
|
+
track: HtmlTags_1.HtmlTrackMd,
|
|
192
|
+
u: HtmlTags_1.HtmlUMd,
|
|
193
|
+
ul: HtmlTags_1.HtmlUlMd,
|
|
194
|
+
var: HtmlTags_1.HtmlVarMd,
|
|
195
|
+
video: HtmlTags_1.HtmlVideoMd,
|
|
196
|
+
wbr: HtmlTags_1.HtmlWbrMd,
|
|
197
|
+
// --- Heavy xmlui components
|
|
198
|
+
Accordion: Accordion_1.AccordionMd,
|
|
199
|
+
APICall: APICall_1.APICallMd,
|
|
200
|
+
App: App_1.AppMd,
|
|
201
|
+
AppHeader: AppHeader_1.AppHeaderMd,
|
|
202
|
+
AppState: AppState_1.AppStateMd,
|
|
203
|
+
AutoComplete: AutoComplete_1.AutoCompleteMd,
|
|
204
|
+
Avatar: Avatar_1.AvatarMd,
|
|
205
|
+
Backdrop: Backdrop_1.BackdropMd,
|
|
206
|
+
Badge: Badge_1.BadgeMd,
|
|
207
|
+
Bookmark: Bookmark_1.BookmarkMd,
|
|
208
|
+
Breakout: Breakout_1.BreakoutMd,
|
|
209
|
+
Button: Button_1.ButtonMd,
|
|
210
|
+
Card: Card_1.CardMd,
|
|
211
|
+
Carousel: Carousel_1.CarouselMd,
|
|
212
|
+
ChangeListener: ChangeListener_1.ChangeListenerMd,
|
|
213
|
+
Checkbox: Checkbox_1.CheckboxMd,
|
|
214
|
+
CODE: HtmlTags_1.HtmlCodeMd,
|
|
215
|
+
ColorPicker: ColorPicker_1.ColorPickerMd,
|
|
216
|
+
Column: Column_1.ColumnMd,
|
|
217
|
+
ContentSeparator: ContentSeparator_1.ContentSeparatorMd,
|
|
218
|
+
DataSource: DataSource_1.DataSourceMd,
|
|
219
|
+
DatePicker: DatePicker_1.DatePickerMd,
|
|
220
|
+
DateInput: DateInput_1.DateInputMd,
|
|
221
|
+
DropdownMenu: DropdownMenu_1.DropdownMenuMd,
|
|
222
|
+
EM: HtmlTags_1.HtmlEMMd,
|
|
223
|
+
Fragment: Fragment_1.FragmentMd,
|
|
224
|
+
MenuItem: DropdownMenu_1.MenuItemMd,
|
|
225
|
+
SubMenuItem: DropdownMenu_1.SubMenuItemMd,
|
|
226
|
+
EmojiSelector: EmojiSelector_1.EmojiSelectorMd,
|
|
227
|
+
ExpandableItem: ExpandableItem_1.ExpandableItemMd,
|
|
228
|
+
FileInput: FileInput_1.FileInputMd,
|
|
229
|
+
FileUploadDropZone: FileUploadDropZone_1.FileUploadDropZoneMd,
|
|
230
|
+
FlowLayout: FlowLayout_1.FlowLayoutMd,
|
|
231
|
+
Footer: Footer_1.FooterMd,
|
|
232
|
+
Form: Form_1.FormMd,
|
|
233
|
+
FormItem: FormItem_1.FormItemMd,
|
|
234
|
+
FormSection: FormSection_1.FormSectionMd,
|
|
235
|
+
Heading: Heading_1.HeadingMd,
|
|
236
|
+
H1: Heading_1.H1Md,
|
|
237
|
+
H2: Heading_1.H2Md,
|
|
238
|
+
H3: Heading_1.H3Md,
|
|
239
|
+
H4: Heading_1.H4Md,
|
|
240
|
+
H5: Heading_1.H5Md,
|
|
241
|
+
H6: Heading_1.H6Md,
|
|
242
|
+
HoverCard: HoverCard_1.HoverCardMd,
|
|
243
|
+
Icon: Icon_1.IconMd,
|
|
244
|
+
IFrame: IFrame_1.IFrameMd,
|
|
245
|
+
Image: Image_1.ImageMd,
|
|
246
|
+
Items: Items_1.ItemsMd,
|
|
247
|
+
Link: Link_1.LinkMd,
|
|
248
|
+
List: List_1.ListMd,
|
|
249
|
+
Logo: Logo_1.LogoMd,
|
|
250
|
+
Markdown: Markdown_1.MarkdownMd,
|
|
251
|
+
MenuSeparator: DropdownMenu_1.MenuSeparatorMd,
|
|
252
|
+
ModalDialog: ModalDialog_1.ModalDialogMd,
|
|
253
|
+
NavGroup: NavGroup_1.NavGroupMd,
|
|
254
|
+
NavLink: NavLink_1.NavLinkMd,
|
|
255
|
+
NavPanel: NavPanel_1.NavPanelMd,
|
|
256
|
+
NoResult: NoResult_1.NoResultMd,
|
|
257
|
+
NumberBox: NumberBox_1.NumberBoxMd,
|
|
258
|
+
Option: Option_1.OptionMd,
|
|
259
|
+
PageMetaTitle: PageMetaTitle_1.PageMetaTitleMd,
|
|
260
|
+
Page: Pages_1.PageMd,
|
|
261
|
+
Pages: Pages_1.PagesMd,
|
|
262
|
+
Pagination: Pagination_1.PaginationMd,
|
|
263
|
+
PositionedContainer: PositionedContainer_1.PositionedContainerMd,
|
|
264
|
+
ProgressBar: ProgressBar_1.ProgressBarMd,
|
|
265
|
+
Queue: Queue_1.QueueMd,
|
|
266
|
+
RadioGroup: RadioGroup_1.RadioGroupMd,
|
|
267
|
+
RealTimeAdapter: RealTimeAdapter_1.RealTimeAdapterMd,
|
|
268
|
+
Redirect: Redirect_1.RedirectMd,
|
|
269
|
+
Select: Select_1.SelectMd,
|
|
270
|
+
SelectionStore: SelectionStore_1.SelectionStoreMd,
|
|
271
|
+
Slider: Slider_1.SliderMd,
|
|
272
|
+
Slot: Slot_1.SlotMd,
|
|
273
|
+
SpaceFiller: SpaceFiller_1.SpaceFillerMd,
|
|
274
|
+
Spinner: Spinner_1.SpinnerMd,
|
|
275
|
+
Splitter: Splitter_1.SplitterMd,
|
|
276
|
+
Tooltip: Tooltip_1.TooltipMd,
|
|
277
|
+
HSplitter: Splitter_1.HSplitterMd,
|
|
278
|
+
VSplitter: Splitter_1.VSplitterMd,
|
|
279
|
+
Stack: Stack_1.StackMd,
|
|
280
|
+
CHStack: Stack_1.CHStackMd,
|
|
281
|
+
CVStack: Stack_1.CVStackMd,
|
|
282
|
+
HStack: Stack_1.HStackMd,
|
|
283
|
+
VStack: Stack_1.VStackMd,
|
|
284
|
+
StickyBox: StickyBox_1.StickyBoxMd,
|
|
285
|
+
Switch: Switch_1.SwitchMd,
|
|
286
|
+
Table: Table_1.TableMd,
|
|
287
|
+
TableOfContents: TableOfContents_1.TableOfContentsMd,
|
|
288
|
+
TabItem: TabItem_1.TabItemMd,
|
|
289
|
+
Tabs: Tabs_1.TabsMd,
|
|
290
|
+
Text: Text_1.TextMd,
|
|
291
|
+
TextArea: TextArea_1.TextAreaMd,
|
|
292
|
+
TextBox: TextBox_1.TextBoxMd,
|
|
293
|
+
PasswordInput: TextBox_1.PasswordMd,
|
|
294
|
+
Theme: Theme_1.ThemeMd,
|
|
295
|
+
TimeInput: TimeInput_1.TimeInputMd,
|
|
296
|
+
Timer: Timer_1.TimerMd,
|
|
297
|
+
ToneChangerButton: ToneChangerButton_1.ToneChangerButtonMd,
|
|
298
|
+
ToneSwitch: ToneSwitch_1.ToneSwitchMd,
|
|
299
|
+
Tree: TreeComponent_1.TreeMd,
|
|
300
|
+
BarChart: BarChart_1.BarChartMd,
|
|
301
|
+
DonutChart: DonutChart_1.DonutChartMd,
|
|
302
|
+
LabelList: LabelList_1.LabelListMd,
|
|
303
|
+
Legend: Legend_1.LegendMd,
|
|
304
|
+
LineChart: LineChart_1.LineChartMd,
|
|
305
|
+
PieChart: PieChart_1.PieChartMd,
|
|
306
|
+
};
|
|
307
|
+
exports.collectedThemes = {
|
|
308
|
+
root: root_1.RootThemeDefinition,
|
|
309
|
+
xmlui: xmlui_1.XmlUiThemeDefinition,
|
|
310
|
+
xmluiGreen: xmlui_1.XmlUiGreenThemeDefinition,
|
|
311
|
+
xmluiGray: xmlui_1.XmlUiGrayThemeDefinition,
|
|
312
|
+
xmluiOrange: xmlui_1.XmlUiOrangeThemeDefinition,
|
|
313
|
+
xmluiPurple: xmlui_1.XmlUiPurpleThemeDefinition,
|
|
314
|
+
xmluiCyan: xmlui_1.XmlUiCyanThemeDefinition,
|
|
315
|
+
xmluiRed: xmlui_1.XmlUiRedThemeDefinition,
|
|
316
|
+
};
|
|
@@ -345,7 +345,9 @@ class RestApiProxy {
|
|
|
345
345
|
? this.extractParam(true, this.config.errorResponseTransform, { $response: respObject })
|
|
346
346
|
: respObject, response.status);
|
|
347
347
|
}
|
|
348
|
-
catch (_b) {
|
|
348
|
+
catch (_b) {
|
|
349
|
+
return new EngineError_1.GenericBackendError("<No error description>", response.status);
|
|
350
|
+
}
|
|
349
351
|
}
|
|
350
352
|
return new Error(`[!] Server responded with an error: ${response.status} - ${response.statusText}`);
|
|
351
353
|
});
|