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
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { m as
|
|
2
|
-
var
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
console.log("Received message from main thread:",
|
|
1
|
+
import { m as main, s as start } from "./server-common-Dsyp3-Ro.mjs";
|
|
2
|
+
var browser = main;
|
|
3
|
+
const messageReader = new browser.BrowserMessageReader(self);
|
|
4
|
+
messageReader.listen((message) => {
|
|
5
|
+
console.log("Received message from main thread:", message);
|
|
6
6
|
});
|
|
7
|
-
const
|
|
7
|
+
const messageWriter = new browser.BrowserMessageWriter(self);
|
|
8
|
+
const connection = browser.createConnection(messageReader, messageWriter);
|
|
8
9
|
console.log("starting lang server");
|
|
9
|
-
|
|
10
|
+
start(connection);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as
|
|
2
|
-
var
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import { m as main, s as start$1 } from "./server-common-Dsyp3-Ro.mjs";
|
|
2
|
+
var node = main;
|
|
3
|
+
function start() {
|
|
4
|
+
const connection = node.createConnection(node.ProposedFeatures.all);
|
|
5
|
+
start$1(connection);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
start
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
const
|
|
1
|
+
import { u as onPrefixRegex, x as stripOnPrefix } from "./transform-CBz7TQJh.mjs";
|
|
2
|
+
const LinkTargetMd = [
|
|
3
3
|
{
|
|
4
4
|
value: "_self",
|
|
5
5
|
description: "The link will open in the same frame as it was clicked."
|
|
@@ -20,7 +20,8 @@ const M = [
|
|
|
20
20
|
value: "_unfencedTop",
|
|
21
21
|
description: "Allows embedded fenced frames to navigate the top-level frame, i.e. traversing beyond the root of the fenced frame."
|
|
22
22
|
}
|
|
23
|
-
]
|
|
23
|
+
];
|
|
24
|
+
const viewportSizeMd = [
|
|
24
25
|
{
|
|
25
26
|
value: "xs",
|
|
26
27
|
description: "Extra small devices (e.g., a small smartphone with low screen resolution)"
|
|
@@ -30,16 +31,27 @@ const M = [
|
|
|
30
31
|
{ value: "lg", description: "Large devices (e.g., a laptop)" },
|
|
31
32
|
{ value: "xl", description: 'Extra large devices (e.g., a standard 20" monitor)' },
|
|
32
33
|
{ value: "xxl", description: 'Extra extra large devices (e.g., a large 29" monitor)' }
|
|
33
|
-
]
|
|
34
|
+
];
|
|
35
|
+
const viewportSizeNames = Object.keys(viewportSizeMd);
|
|
36
|
+
const sizeValues = ["xs", "sm", "md", "lg", "xl"];
|
|
37
|
+
const sizeMd = [
|
|
34
38
|
{ value: "xs", description: "Extra small" },
|
|
35
39
|
{ value: "sm", description: "Small" },
|
|
36
40
|
{ value: "md", description: "Medium" },
|
|
37
|
-
{ value: "lg", description: "Large" }
|
|
38
|
-
|
|
41
|
+
{ value: "lg", description: "Large" },
|
|
42
|
+
{ value: "xl", description: "Extra large" }
|
|
43
|
+
];
|
|
44
|
+
function isSizeType(value) {
|
|
45
|
+
return sizeValues.includes(value);
|
|
46
|
+
}
|
|
47
|
+
const buttonThemeValues = ["attention", "primary", "secondary"];
|
|
48
|
+
const buttonThemeNames = [...buttonThemeValues];
|
|
49
|
+
const buttonThemeMd = [
|
|
39
50
|
{ value: "attention", description: "Attention state theme color" },
|
|
40
51
|
{ value: "primary", description: "Primary theme color" },
|
|
41
52
|
{ value: "secondary", description: "Secondary theme color" }
|
|
42
|
-
]
|
|
53
|
+
];
|
|
54
|
+
const buttonTypesMd = [
|
|
43
55
|
{
|
|
44
56
|
value: "button",
|
|
45
57
|
description: "Regular behavior that only executes logic if explicitly determined."
|
|
@@ -52,7 +64,10 @@ const M = [
|
|
|
52
64
|
value: "reset",
|
|
53
65
|
description: "Resets all the controls to their initial values. Using it is ill advised for UX reasons."
|
|
54
66
|
}
|
|
55
|
-
]
|
|
67
|
+
];
|
|
68
|
+
const buttonVariantValues = ["solid", "outlined", "ghost"];
|
|
69
|
+
const buttonVariantNames = [...buttonVariantValues];
|
|
70
|
+
const buttonVariantMd = [
|
|
56
71
|
{ value: "solid", description: "A button with a border and a filled background." },
|
|
57
72
|
{
|
|
58
73
|
value: "outlined",
|
|
@@ -62,9 +77,10 @@ const M = [
|
|
|
62
77
|
value: "ghost",
|
|
63
78
|
description: "A button with no border and fill. Only the label is visible; the background is colored when hovered or clicked."
|
|
64
79
|
}
|
|
65
|
-
]
|
|
66
|
-
[
|
|
67
|
-
|
|
80
|
+
];
|
|
81
|
+
const alignmentOptionValues = ["start", "center", "end"];
|
|
82
|
+
[...alignmentOptionValues];
|
|
83
|
+
const alignmentOptionMd = [
|
|
68
84
|
{ value: "center", description: "Place the content in the middle" },
|
|
69
85
|
{
|
|
70
86
|
value: "start",
|
|
@@ -74,10 +90,15 @@ const D = [
|
|
|
74
90
|
value: "end",
|
|
75
91
|
description: "Justify the content to the right (to the left if in right-to-left)"
|
|
76
92
|
}
|
|
77
|
-
]
|
|
93
|
+
];
|
|
94
|
+
const orientationOptionValues = ["horizontal", "vertical"];
|
|
95
|
+
const orientationOptionMd = [
|
|
78
96
|
{ value: "horizontal", description: "The component will fill the available space horizontally" },
|
|
79
97
|
{ value: "vertical", description: "The component will fill the available space vertically" }
|
|
80
|
-
]
|
|
98
|
+
];
|
|
99
|
+
const iconPositionValues = ["start", "end"];
|
|
100
|
+
const iconPositionNames = [...iconPositionValues];
|
|
101
|
+
const iconPositionMd = [
|
|
81
102
|
{
|
|
82
103
|
value: "start",
|
|
83
104
|
description: "The icon will appear at the start (left side when the left-to-right direction is set)"
|
|
@@ -86,7 +107,8 @@ const D = [
|
|
|
86
107
|
value: "end",
|
|
87
108
|
description: "The icon will appear at the end (right side when the left-to-right direction is set)"
|
|
88
109
|
}
|
|
89
|
-
]
|
|
110
|
+
];
|
|
111
|
+
const labelPositionMd = [
|
|
90
112
|
{
|
|
91
113
|
value: "start",
|
|
92
114
|
description: "The left side of the input (left-to-right) or the right side of the input (right-to-left)"
|
|
@@ -97,14 +119,18 @@ const D = [
|
|
|
97
119
|
},
|
|
98
120
|
{ value: "top", description: "The top of the input" },
|
|
99
121
|
{ value: "bottom", description: "The bottom of the input" }
|
|
100
|
-
]
|
|
122
|
+
];
|
|
123
|
+
const triggerPositionValues = ["start", "end"];
|
|
124
|
+
const triggerPositionNames = [...triggerPositionValues];
|
|
125
|
+
const validationStatusMd = [
|
|
101
126
|
// { value: "none", description: "No indicator" },
|
|
102
127
|
{ value: "valid", description: "Visual indicator for an input that is accepted" },
|
|
103
128
|
{ value: "warning", description: "Visual indicator for an input that produced a warning" },
|
|
104
129
|
{ value: "error", description: "Visual indicator for an input that produced an error" }
|
|
105
|
-
]
|
|
106
|
-
[
|
|
107
|
-
|
|
130
|
+
];
|
|
131
|
+
const scrollAnchoringValues = ["top", "bottom"];
|
|
132
|
+
[...scrollAnchoringValues];
|
|
133
|
+
const TextVariantElement = {
|
|
108
134
|
abbr: "abbr",
|
|
109
135
|
cite: "cite",
|
|
110
136
|
code: "code",
|
|
@@ -129,7 +155,8 @@ const E = {
|
|
|
129
155
|
subheading: "h6",
|
|
130
156
|
tableheading: "h6",
|
|
131
157
|
secondary: "span"
|
|
132
|
-
}
|
|
158
|
+
};
|
|
159
|
+
const variantOptionsMd = [
|
|
133
160
|
{ value: "abbr", description: "Represents an abbreviation or acronym" },
|
|
134
161
|
{ value: "caption", description: "Represents the caption (or title) of a table" },
|
|
135
162
|
{ value: "cite", description: "Is used to mark up the title of a cited work" },
|
|
@@ -172,7 +199,11 @@ const E = {
|
|
|
172
199
|
{ value: "tableheading", description: "Indicates that the text is a table heading" },
|
|
173
200
|
{ value: "title", description: "Indicates that the text is the title of some other content" },
|
|
174
201
|
{ value: "var", description: "Represents the name of a variable in a mathematical expression" }
|
|
175
|
-
]
|
|
202
|
+
];
|
|
203
|
+
const AbbreviationKeys = ["title"];
|
|
204
|
+
const InsertedKeys = ["cite", "dateTime"];
|
|
205
|
+
const VariantPropsKeys = [...AbbreviationKeys, ...InsertedKeys];
|
|
206
|
+
const httpMethodNames = [
|
|
176
207
|
"get",
|
|
177
208
|
"post",
|
|
178
209
|
"put",
|
|
@@ -182,7 +213,8 @@ const E = {
|
|
|
182
213
|
"options",
|
|
183
214
|
"trace",
|
|
184
215
|
"connect"
|
|
185
|
-
]
|
|
216
|
+
];
|
|
217
|
+
const layoutOptionKeys = [
|
|
186
218
|
"horizontalAlignment",
|
|
187
219
|
"verticalAlignment",
|
|
188
220
|
"orientation",
|
|
@@ -273,81 +305,96 @@ const E = {
|
|
|
273
305
|
"writingMode",
|
|
274
306
|
"transition"
|
|
275
307
|
];
|
|
276
|
-
class
|
|
277
|
-
constructor(
|
|
278
|
-
this.metadataCollection =
|
|
308
|
+
class MetadataProvider {
|
|
309
|
+
constructor(metadataCollection) {
|
|
310
|
+
this.metadataCollection = metadataCollection;
|
|
279
311
|
}
|
|
280
312
|
componentNames() {
|
|
281
313
|
return Object.keys(this.metadataCollection);
|
|
282
314
|
}
|
|
283
|
-
getComponent(
|
|
284
|
-
const
|
|
285
|
-
|
|
315
|
+
getComponent(componentName) {
|
|
316
|
+
const providerData = this.metadataCollection[componentName];
|
|
317
|
+
if (!providerData) {
|
|
318
|
+
return null;
|
|
319
|
+
}
|
|
320
|
+
return new ComponentMetadataProvider(providerData);
|
|
286
321
|
}
|
|
287
322
|
}
|
|
288
|
-
class
|
|
289
|
-
constructor(
|
|
290
|
-
this.metadata =
|
|
323
|
+
class ComponentMetadataProvider {
|
|
324
|
+
constructor(metadata) {
|
|
325
|
+
this.metadata = metadata;
|
|
291
326
|
}
|
|
292
327
|
/**
|
|
293
328
|
* Retrieves the metadata for a given property, explicit or implicit.
|
|
294
329
|
* @param name The name of the property.
|
|
295
330
|
* @returns The metadata for the property, or `undefined` if not found.
|
|
296
331
|
*/
|
|
297
|
-
getProp(
|
|
298
|
-
return this.metadata.props[
|
|
332
|
+
getProp(name) {
|
|
333
|
+
return this.metadata.props[name] ?? implicitPropsMetadata[name];
|
|
299
334
|
}
|
|
300
|
-
getAttr(
|
|
301
|
-
var
|
|
302
|
-
if (
|
|
303
|
-
const
|
|
304
|
-
|
|
305
|
-
|
|
335
|
+
getAttr(name) {
|
|
336
|
+
var _a, _b, _c;
|
|
337
|
+
if (onPrefixRegex.test(name)) {
|
|
338
|
+
const eventName = stripOnPrefix(name);
|
|
339
|
+
const event = (_a = this.metadata.events) == null ? void 0 : _a[eventName];
|
|
340
|
+
if (event) {
|
|
341
|
+
return event;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
const explicitProp = (_b = this.metadata.props) == null ? void 0 : _b[name];
|
|
345
|
+
if (explicitProp) {
|
|
346
|
+
return explicitProp;
|
|
347
|
+
}
|
|
348
|
+
const api = (_c = this.metadata.apis) == null ? void 0 : _c[name];
|
|
349
|
+
if (api) {
|
|
350
|
+
return api;
|
|
351
|
+
}
|
|
352
|
+
const layout = layoutMdForKey(name);
|
|
353
|
+
if (layout) {
|
|
354
|
+
return layout;
|
|
306
355
|
}
|
|
307
|
-
|
|
308
|
-
if (e)
|
|
309
|
-
return e;
|
|
310
|
-
const a = (d = this.metadata.apis) == null ? void 0 : d[t];
|
|
311
|
-
if (a)
|
|
312
|
-
return a;
|
|
313
|
-
const o = p(t);
|
|
314
|
-
return o || n[t];
|
|
356
|
+
return implicitPropsMetadata[name];
|
|
315
357
|
}
|
|
316
|
-
getAttrForKind({ name
|
|
317
|
-
switch (
|
|
358
|
+
getAttrForKind({ name, kind }) {
|
|
359
|
+
switch (kind) {
|
|
318
360
|
case "api":
|
|
319
|
-
return this.metadata.apis[
|
|
361
|
+
return this.metadata.apis[name];
|
|
320
362
|
case "event":
|
|
321
|
-
return this.metadata.events[
|
|
363
|
+
return this.metadata.events[name];
|
|
322
364
|
case "prop":
|
|
323
|
-
return this.metadata.props[
|
|
365
|
+
return this.metadata.props[name];
|
|
324
366
|
case "implicit":
|
|
325
|
-
return
|
|
367
|
+
return implicitPropsMetadata[name];
|
|
326
368
|
case "layout":
|
|
327
|
-
return
|
|
369
|
+
return layoutMdForKey(name);
|
|
328
370
|
}
|
|
329
371
|
}
|
|
330
372
|
getAllAttributes() {
|
|
331
|
-
const
|
|
332
|
-
for (const
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
for (const
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
373
|
+
const attrNames = [];
|
|
374
|
+
for (const key of Object.keys(this.metadata.props ?? {})) {
|
|
375
|
+
attrNames.push({ name: key, kind: "prop" });
|
|
376
|
+
}
|
|
377
|
+
for (const key of Object.keys(this.metadata.events ?? {})) {
|
|
378
|
+
attrNames.push({ name: key, kind: "event" });
|
|
379
|
+
}
|
|
380
|
+
for (const key of Object.keys(this.metadata.apis ?? {})) {
|
|
381
|
+
attrNames.push({ name: key, kind: "api" });
|
|
382
|
+
}
|
|
383
|
+
for (const layoutKey of layoutOptionKeys) {
|
|
384
|
+
attrNames.push({ name: layoutKey, kind: "layout" });
|
|
385
|
+
}
|
|
386
|
+
for (const implicitPropKey of Object.keys(implicitPropsMetadata)) {
|
|
387
|
+
attrNames.push({ name: implicitPropKey, kind: "implicit" });
|
|
388
|
+
}
|
|
389
|
+
return attrNames;
|
|
343
390
|
}
|
|
344
|
-
getEvent(
|
|
345
|
-
var
|
|
346
|
-
return (
|
|
391
|
+
getEvent(name) {
|
|
392
|
+
var _a;
|
|
393
|
+
return (_a = this.metadata.events) == null ? void 0 : _a[name];
|
|
347
394
|
}
|
|
348
|
-
getApi(
|
|
349
|
-
var
|
|
350
|
-
return (
|
|
395
|
+
getApi(name) {
|
|
396
|
+
var _a;
|
|
397
|
+
return (_a = this.metadata.apis) == null ? void 0 : _a[name];
|
|
351
398
|
}
|
|
352
399
|
get events() {
|
|
353
400
|
return this.metadata.events;
|
|
@@ -368,26 +415,28 @@ class S {
|
|
|
368
415
|
return this.metadata;
|
|
369
416
|
}
|
|
370
417
|
}
|
|
371
|
-
function
|
|
372
|
-
const
|
|
418
|
+
function layoutMdForKey(name) {
|
|
419
|
+
const metadata = {
|
|
373
420
|
description: "Layout property. Not yet documented"
|
|
374
421
|
};
|
|
375
|
-
if (
|
|
376
|
-
return
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
422
|
+
if (layoutOptionKeys.includes(name)) {
|
|
423
|
+
return metadata;
|
|
424
|
+
}
|
|
425
|
+
for (const size of viewportSizeMd) {
|
|
426
|
+
const suffix = "-" + size.value;
|
|
427
|
+
if (name.endsWith(suffix)) {
|
|
428
|
+
const nameWithoutSize = name.slice(0, -suffix.length);
|
|
429
|
+
if (layoutOptionKeys.includes(nameWithoutSize)) {
|
|
430
|
+
return metadata;
|
|
431
|
+
}
|
|
383
432
|
}
|
|
384
433
|
}
|
|
385
434
|
return null;
|
|
386
435
|
}
|
|
387
|
-
const
|
|
436
|
+
const implicitPropsMetadata = {
|
|
388
437
|
inspect: {
|
|
389
438
|
description: "Determines whether the component can be inspected or not",
|
|
390
|
-
defaultValue:
|
|
439
|
+
defaultValue: false,
|
|
391
440
|
valueType: "boolean"
|
|
392
441
|
},
|
|
393
442
|
data: {
|
|
@@ -395,37 +444,38 @@ const n = {
|
|
|
395
444
|
},
|
|
396
445
|
when: {
|
|
397
446
|
description: "Specifies a condition that must be met for the component to be displayed",
|
|
398
|
-
defaultValue:
|
|
447
|
+
defaultValue: true,
|
|
399
448
|
valueType: "boolean"
|
|
400
449
|
}
|
|
401
450
|
};
|
|
402
|
-
function
|
|
403
|
-
return "on" +
|
|
451
|
+
function addOnPrefix(name) {
|
|
452
|
+
return "on" + name[0].toUpperCase() + name.substring(1);
|
|
404
453
|
}
|
|
405
454
|
export {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
b,
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
455
|
+
LinkTargetMd as L,
|
|
456
|
+
MetadataProvider as M,
|
|
457
|
+
TextVariantElement as T,
|
|
458
|
+
VariantPropsKeys as V,
|
|
459
|
+
addOnPrefix as a,
|
|
460
|
+
alignmentOptionValues as b,
|
|
461
|
+
alignmentOptionMd as c,
|
|
462
|
+
iconPositionMd as d,
|
|
463
|
+
buttonTypesMd as e,
|
|
464
|
+
buttonThemeMd as f,
|
|
465
|
+
buttonVariantMd as g,
|
|
466
|
+
layoutOptionKeys as h,
|
|
467
|
+
isSizeType as i,
|
|
468
|
+
variantOptionsMd as j,
|
|
469
|
+
scrollAnchoringValues as k,
|
|
470
|
+
labelPositionMd as l,
|
|
471
|
+
buttonThemeNames as m,
|
|
472
|
+
iconPositionNames as n,
|
|
473
|
+
orientationOptionMd as o,
|
|
474
|
+
buttonVariantNames as p,
|
|
475
|
+
httpMethodNames as q,
|
|
476
|
+
orientationOptionValues as r,
|
|
477
|
+
sizeMd as s,
|
|
478
|
+
triggerPositionNames as t,
|
|
479
|
+
viewportSizeNames as u,
|
|
480
|
+
validationStatusMd as v
|
|
431
481
|
};
|
|
@@ -61,7 +61,7 @@ $THEME-VAR-PREFIX: xmlui;
|
|
|
61
61
|
@if ($num > 1) {
|
|
62
62
|
$offset: (-1 * $num) - 1;
|
|
63
63
|
}
|
|
64
|
-
//@if(string.index(#{$fallbackValue}, 'fontSize-
|
|
64
|
+
//@if(string.index(#{$fallbackValue}, 'fontSize-sm')) {
|
|
65
65
|
// @debug 'original: ' + #{$componentVariable} + ", varcount: " + $num;
|
|
66
66
|
// @debug 'concatet:' + var(#{str-slice($componentVariable, 5, -2)}, #{$fallbackValue});
|
|
67
67
|
// @debug 'concat 2:' + var(#{str-slice($componentVariable, 5, $offset)}, #{$fallbackValue});
|
|
@@ -771,12 +771,11 @@ $borderColor--disabled: createVar(borderColor--disabled);
|
|
|
771
771
|
$backgroundColor--selected: createVar(backgroundColor--selected);
|
|
772
772
|
$fontFamily: createVar(fontFamily);
|
|
773
773
|
$fontSize-tiny: createVar(fontSize-tiny);
|
|
774
|
-
$fontSize-
|
|
775
|
-
$fontSize-
|
|
776
|
-
$fontSize-
|
|
777
|
-
$fontSize-
|
|
778
|
-
$fontSize-
|
|
779
|
-
$fontSize-larger: createVar(fontSize-larger);
|
|
774
|
+
$fontSize-xs: createVar(fontSize-xs);
|
|
775
|
+
$fontSize-sm: createVar(fontSize-sm);
|
|
776
|
+
$fontSize-base: createVar(fontSize-base);
|
|
777
|
+
$fontSize-xl: createVar(fontSize-xl);
|
|
778
|
+
$fontSize-2xl: createVar(fontSize-2xl);
|
|
780
779
|
|
|
781
780
|
$backgroundColor-overlay: createVar(backgroundColor-overlay);
|
|
782
781
|
$color-info: createVar(color-info);
|