xmlui 0.9.57 → 0.9.58
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/lib/{apiInterceptorWorker-B1gPLO_w.mjs → apiInterceptorWorker-uyd3MlHU.mjs} +1 -1
- package/dist/lib/{index-CT_r2BBM.mjs → index-BqBDeBdn.mjs} +11430 -11136
- package/dist/lib/index.css +1 -1
- package/dist/lib/language-server-web-worker.mjs +1 -1
- package/dist/lib/language-server.mjs +1 -1
- package/dist/lib/{metadata-utils-4EQ6kQIM.mjs → metadata-utils-BXdiMJQN.mjs} +40 -31
- package/dist/lib/{server-common-C0cF2UTg.mjs → server-common-CN44QquQ.mjs} +1318 -739
- package/dist/lib/{transform-CgRMkbb0.mjs → transform-BboeJCuA.mjs} +798 -733
- package/dist/lib/xmlui-parser.d.ts +31 -6
- package/dist/lib/xmlui-parser.mjs +49 -42
- package/dist/lib/{xmlui-serializer-EDw51UFN.mjs → xmlui-serializer-D0p6Hyum.mjs} +1 -1
- package/dist/lib/xmlui.d.ts +5 -4
- package/dist/lib/xmlui.mjs +2 -2
- package/dist/metadata/{apiInterceptorWorker-aMnSPA-u.mjs → apiInterceptorWorker-B4dqtAX9.mjs} +1 -1
- package/dist/metadata/{collectedComponentMetadata-C0kcXW_l.mjs → collectedComponentMetadata-DFcuGgT_.mjs} +10731 -10349
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +110 -110
- package/dist/scripts/package.json +5 -4
- package/dist/scripts/src/components/APICall/APICall.js +12 -11
- package/dist/scripts/src/components/Accordion/Accordion.js +1 -1
- package/dist/scripts/src/components/App/App.js +3 -3
- package/dist/scripts/src/components/AppHeader/AppHeader.js +3 -1
- package/dist/scripts/src/components/AppState/AppState.js +4 -2
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +4 -2
- package/dist/scripts/src/components/Avatar/Avatar.js +4 -1
- package/dist/scripts/src/components/Badge/Badge.js +3 -1
- package/dist/scripts/src/components/Button/Button.js +3 -1
- package/dist/scripts/src/components/Card/Card.js +5 -2
- package/dist/scripts/src/components/Card/CardNative.js +2 -1
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +4 -2
- package/dist/scripts/src/components/Charts/BarChart/BarChart.js +4 -2
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +6 -5
- package/dist/scripts/src/components/Charts/LabelList/LabelList.js +4 -1
- package/dist/scripts/src/components/Charts/Legend/Legend.js +4 -1
- package/dist/scripts/src/components/Charts/LineChart/LineChart.js +4 -1
- package/dist/scripts/src/components/Charts/PieChart/PieChart.js +13 -7
- package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +9 -4
- package/dist/scripts/src/components/Checkbox/Checkbox.js +3 -2
- package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +1 -1
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +1 -1
- package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +2 -2
- package/dist/scripts/src/components/Column/Column.js +14 -12
- package/dist/scripts/src/components/ComponentProvider.js +4 -0
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +4 -3
- package/dist/scripts/src/components/DatePicker/DatePicker.js +4 -1
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +18 -6
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +2 -2
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +6 -5
- package/dist/scripts/src/components/FileInput/FileInput.js +8 -3
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +2 -2
- package/dist/scripts/src/components/FlowLayout/FlowLayout.js +2 -2
- package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +35 -6
- package/dist/scripts/src/components/Footer/Footer.js +4 -2
- package/dist/scripts/src/components/Form/Form.js +8 -2
- package/dist/scripts/src/components/Form/FormNative.js +12 -4
- package/dist/scripts/src/components/FormItem/FormItem.js +7 -8
- package/dist/scripts/src/components/FormSection/FormSection.js +2 -3
- package/dist/scripts/src/components/Heading/Heading.js +6 -3
- package/dist/scripts/src/components/HelloWorld/HelloWorld.js +103 -0
- package/dist/scripts/src/components/HelloWorld/HelloWorldNative.js +92 -0
- package/dist/scripts/src/components/Icon/Icon.js +3 -1
- package/dist/scripts/src/components/Image/Image.js +3 -2
- package/dist/scripts/src/components/Items/Items.js +7 -6
- package/dist/scripts/src/components/Link/Link.js +4 -2
- package/dist/scripts/src/components/Link/LinkNative.js +46 -1
- package/dist/scripts/src/components/List/List.js +9 -7
- package/dist/scripts/src/components/Logo/Logo.js +6 -4
- package/dist/scripts/src/components/Markdown/Markdown.js +6 -4
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +6 -7
- package/dist/scripts/src/components/NavGroup/NavGroup.js +4 -2
- package/dist/scripts/src/components/NavLink/NavLink.js +4 -2
- package/dist/scripts/src/components/NavPanel/NavPanel.js +5 -2
- package/dist/scripts/src/components/NestedApp/NestedApp.js +2 -2
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +3 -4
- package/dist/scripts/src/components/NoResult/NoResult.js +1 -2
- package/dist/scripts/src/components/NumberBox/NumberBox.js +4 -2
- package/dist/scripts/src/components/Option/Option.js +5 -3
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +2 -2
- package/dist/scripts/src/components/Pages/Pages.js +7 -5
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +4 -1
- package/dist/scripts/src/components/Queue/Queue.js +2 -2
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +4 -3
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +1 -1
- package/dist/scripts/src/components/Redirect/Redirect.js +3 -3
- package/dist/scripts/src/components/Select/Select.js +6 -3
- package/dist/scripts/src/components/Select/SelectNative.js +1 -1
- package/dist/scripts/src/components/Slider/Slider.js +4 -2
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +2 -2
- package/dist/scripts/src/components/Spinner/Spinner.js +2 -2
- package/dist/scripts/src/components/Splitter/Splitter.js +3 -2
- package/dist/scripts/src/components/Stack/Stack.js +4 -1
- package/dist/scripts/src/components/StickyBox/StickyBox.js +1 -2
- package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +2 -0
- package/dist/scripts/src/components/Switch/Switch.js +1 -3
- package/dist/scripts/src/components/Table/Table.js +1 -2
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +2 -3
- package/dist/scripts/src/components/Tabs/TabItem.js +5 -2
- package/dist/scripts/src/components/Tabs/Tabs.js +9 -3
- package/dist/scripts/src/components/Text/Text.js +2 -2
- package/dist/scripts/src/components/TextArea/TextArea.js +1 -1
- package/dist/scripts/src/components/TextBox/TextBox.js +4 -3
- package/dist/scripts/src/components/Theme/NotificationToast.js +11 -0
- package/dist/scripts/src/components/Theme/Theme.js +2 -4
- package/dist/scripts/src/components/Theme/ThemeNative.js +4 -4
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +4 -4
- package/dist/scripts/src/components-core/Fragment.js +2 -1
- package/dist/scripts/src/components-core/RestApiProxy.js +10 -7
- package/dist/scripts/src/components-core/descriptorHelper.js +9 -0
- package/dist/scripts/src/components-core/rendering/AppContent.js +6 -2
- package/dist/scripts/src/components-core/theming/layout-resolver.js +18 -0
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +42 -39
- package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +65 -0
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +10 -8
- package/dist/scripts/src/parsers/xmlui-parser/utils.js +1 -2
- package/dist/standalone/xmlui-standalone.es.d.ts +5 -4
- package/dist/standalone/xmlui-standalone.umd.js +221 -221
- package/package.json +5 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as m, x as f } from "./transform-BboeJCuA.mjs";
|
|
2
2
|
const P = [
|
|
3
3
|
{
|
|
4
4
|
value: "_self",
|
|
@@ -30,13 +30,13 @@ const P = [
|
|
|
30
30
|
{ value: "lg", description: "Large devices (e.g., a laptop)" },
|
|
31
31
|
{ value: "xl", description: 'Extra large devices (e.g., a standard 20" monitor)' },
|
|
32
32
|
{ value: "xxl", description: 'Extra extra large devices (e.g., a large 29" monitor)' }
|
|
33
|
-
], A = Object.keys(u),
|
|
33
|
+
], A = Object.keys(u), g = [
|
|
34
34
|
{ value: "xs", description: "Extra small button" },
|
|
35
35
|
{ value: "sm", description: "Small button" },
|
|
36
36
|
{ value: "md", description: "Medium button" },
|
|
37
37
|
{ value: "lg", description: "Large button" }
|
|
38
|
-
],
|
|
39
|
-
[...
|
|
38
|
+
], v = Object.keys(g);
|
|
39
|
+
[...v];
|
|
40
40
|
const b = ["attention", "primary", "secondary"], O = [...b], z = [
|
|
41
41
|
{ value: "attention", description: "Attention state theme color" },
|
|
42
42
|
{ value: "primary", description: "Primary theme color" },
|
|
@@ -66,7 +66,7 @@ const b = ["attention", "primary", "secondary"], O = [...b], z = [
|
|
|
66
66
|
}
|
|
67
67
|
], x = ["start", "center", "end"];
|
|
68
68
|
[...x];
|
|
69
|
-
const
|
|
69
|
+
const I = [
|
|
70
70
|
{ value: "center", description: "Place the content in the middle" },
|
|
71
71
|
{
|
|
72
72
|
value: "start",
|
|
@@ -76,10 +76,10 @@ const N = [
|
|
|
76
76
|
value: "end",
|
|
77
77
|
description: "Justify the content to the right (to the left if in right-to-left)"
|
|
78
78
|
}
|
|
79
|
-
],
|
|
79
|
+
], N = [
|
|
80
80
|
{ value: "horizontal", description: "The component will fill the available space horizontally" },
|
|
81
81
|
{ value: "vertical", description: "The component will fill the available space vertically" }
|
|
82
|
-
], w = ["start", "end"],
|
|
82
|
+
], w = ["start", "end"], W = [...w], j = [
|
|
83
83
|
{
|
|
84
84
|
value: "start",
|
|
85
85
|
description: "The icon will appear at the start (left side when the left-to-right direction is set)"
|
|
@@ -88,7 +88,7 @@ const N = [
|
|
|
88
88
|
value: "end",
|
|
89
89
|
description: "The icon will appear at the end (right side when the left-to-right direction is set)"
|
|
90
90
|
}
|
|
91
|
-
],
|
|
91
|
+
], K = [
|
|
92
92
|
{
|
|
93
93
|
value: "start",
|
|
94
94
|
description: "The left side of the input (left-to-right) or the right side of the input (right-to-left)"
|
|
@@ -99,14 +99,14 @@ const N = [
|
|
|
99
99
|
},
|
|
100
100
|
{ value: "top", description: "The top of the input" },
|
|
101
101
|
{ value: "bottom", description: "The bottom of the input" }
|
|
102
|
-
], k = ["start", "end"],
|
|
102
|
+
], k = ["start", "end"], B = [...k], H = [
|
|
103
103
|
// { value: "none", description: "No indicator" },
|
|
104
104
|
{ value: "valid", description: "Visual indicator for an input that is accepted" },
|
|
105
105
|
{ value: "warning", description: "Visual indicator for an input that produced a warning" },
|
|
106
106
|
{ value: "error", description: "Visual indicator for an input that produced an error" }
|
|
107
107
|
], T = ["top", "bottom"];
|
|
108
108
|
[...T];
|
|
109
|
-
const
|
|
109
|
+
const _ = {
|
|
110
110
|
abbr: "abbr",
|
|
111
111
|
cite: "cite",
|
|
112
112
|
code: "code",
|
|
@@ -132,7 +132,7 @@ const E = {
|
|
|
132
132
|
subheading: "h6",
|
|
133
133
|
tableheading: "h6",
|
|
134
134
|
secondary: "span"
|
|
135
|
-
},
|
|
135
|
+
}, E = [
|
|
136
136
|
{ value: "abbr", description: "Represents an abbreviation or acronym" },
|
|
137
137
|
{ value: "caption", description: "Represents the caption (or title) of a table" },
|
|
138
138
|
{ value: "cite", description: "Is used to mark up the title of a cited work" },
|
|
@@ -179,7 +179,7 @@ const E = {
|
|
|
179
179
|
{ value: "tableheading", description: "Indicates that the text is a table heading" },
|
|
180
180
|
{ value: "title", description: "Indicates that the text is the title of some other content" },
|
|
181
181
|
{ value: "var", description: "Represents the name of a variable in a mathematical expression" }
|
|
182
|
-
],
|
|
182
|
+
], S = ["title"], V = ["cite", "dateTime"], U = [...S, ...V], F = [
|
|
183
183
|
"get",
|
|
184
184
|
"post",
|
|
185
185
|
"put",
|
|
@@ -189,7 +189,7 @@ const E = {
|
|
|
189
189
|
"options",
|
|
190
190
|
"trace",
|
|
191
191
|
"connect"
|
|
192
|
-
],
|
|
192
|
+
], r = [
|
|
193
193
|
"horizontalAlignment",
|
|
194
194
|
"verticalAlignment",
|
|
195
195
|
"orientation",
|
|
@@ -269,7 +269,16 @@ const E = {
|
|
|
269
269
|
"outlineWidth",
|
|
270
270
|
"outlineColor",
|
|
271
271
|
"outlineStyle",
|
|
272
|
-
"outlineOffset"
|
|
272
|
+
"outlineOffset",
|
|
273
|
+
"fontVariant",
|
|
274
|
+
"lineBreak",
|
|
275
|
+
"textIndent",
|
|
276
|
+
"textShadow",
|
|
277
|
+
"wordBreak",
|
|
278
|
+
"wordSpacing",
|
|
279
|
+
"wordWrap",
|
|
280
|
+
"writingMode",
|
|
281
|
+
"transition"
|
|
273
282
|
];
|
|
274
283
|
class q {
|
|
275
284
|
constructor(t) {
|
|
@@ -296,9 +305,9 @@ class M {
|
|
|
296
305
|
return this.metadata.props[t] ?? n[t];
|
|
297
306
|
}
|
|
298
307
|
getAttr(t) {
|
|
299
|
-
var
|
|
308
|
+
var s, l, d;
|
|
300
309
|
if (m.test(t)) {
|
|
301
|
-
const h = f(t), c = (
|
|
310
|
+
const h = f(t), c = (s = this.metadata.events) == null ? void 0 : s[h];
|
|
302
311
|
if (c)
|
|
303
312
|
return c;
|
|
304
313
|
}
|
|
@@ -333,7 +342,7 @@ class M {
|
|
|
333
342
|
t.push({ name: e, kind: "event" });
|
|
334
343
|
for (const e of Object.keys(this.metadata.apis ?? {}))
|
|
335
344
|
t.push({ name: e, kind: "api" });
|
|
336
|
-
for (const e of
|
|
345
|
+
for (const e of r)
|
|
337
346
|
t.push({ name: e, kind: "layout" });
|
|
338
347
|
for (const e of Object.keys(n))
|
|
339
348
|
t.push({ name: e, kind: "implicit" });
|
|
@@ -370,13 +379,13 @@ function p(i) {
|
|
|
370
379
|
const t = {
|
|
371
380
|
description: "Layout property. Not yet documented"
|
|
372
381
|
};
|
|
373
|
-
if (
|
|
382
|
+
if (r.includes(i))
|
|
374
383
|
return t;
|
|
375
384
|
for (const e of u) {
|
|
376
385
|
const a = "-" + e.value;
|
|
377
386
|
if (i.endsWith(a)) {
|
|
378
387
|
const o = i.slice(0, -a.length);
|
|
379
|
-
if (
|
|
388
|
+
if (r.includes(o))
|
|
380
389
|
return t;
|
|
381
390
|
}
|
|
382
391
|
}
|
|
@@ -403,26 +412,26 @@ function J(i) {
|
|
|
403
412
|
export {
|
|
404
413
|
P as L,
|
|
405
414
|
q as M,
|
|
406
|
-
|
|
407
|
-
|
|
415
|
+
_ as T,
|
|
416
|
+
U as V,
|
|
408
417
|
J as a,
|
|
409
418
|
x as b,
|
|
410
|
-
|
|
419
|
+
I as c,
|
|
411
420
|
C as d,
|
|
412
421
|
z as e,
|
|
413
422
|
D as f,
|
|
414
|
-
|
|
423
|
+
E as g,
|
|
415
424
|
T as h,
|
|
416
|
-
|
|
425
|
+
j as i,
|
|
417
426
|
O as j,
|
|
418
|
-
|
|
419
|
-
|
|
427
|
+
W as k,
|
|
428
|
+
K as l,
|
|
420
429
|
L as m,
|
|
421
430
|
F as n,
|
|
422
|
-
|
|
423
|
-
|
|
431
|
+
N as o,
|
|
432
|
+
r as p,
|
|
424
433
|
A as q,
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
434
|
+
g as s,
|
|
435
|
+
B as t,
|
|
436
|
+
H as v
|
|
428
437
|
};
|