xmlui 0.9.90 → 0.9.92
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/{index-Bs4hp2dn.mjs → index-C5eOg7bB.mjs} +1908 -1904
- package/dist/lib/{initMock-DwAYhsKb.mjs → initMock-DLD4GmW7.mjs} +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-DJhOKFL6.mjs → metadata-utils-BE5_Lmoa.mjs} +46 -48
- package/dist/lib/{server-common-CIqrGYx-.mjs → server-common-xCK0Af2K.mjs} +4446 -4476
- package/dist/lib/xmlui.mjs +1 -1
- package/dist/metadata/{collectedComponentMetadata-fh2ak2QN.mjs → collectedComponentMetadata-iKGyD6r3.mjs} +2061 -2057
- package/dist/metadata/{initMock-8hLEm7iV.mjs → initMock-CZGAyfXr.mjs} +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +41 -41
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/components/ComponentProvider.js +2 -2
- package/dist/scripts/src/{components-core → components/Fragment}/Fragment.js +2 -2
- package/dist/scripts/src/{components-core → components/Slot}/Slot.js +2 -2
- package/dist/scripts/src/components/abstractions.js +25 -6
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +4 -5
- package/dist/standalone/xmlui-standalone.umd.js +185 -185
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { delay as D, HttpResponse as g, matchRequestUrl as E } from "msw";
|
|
2
2
|
import { isArray as N, isObject as U, mapValues as T } from "lodash-es";
|
|
3
|
-
import { r as M, g as $, d as F, m as O, a as B, o as A, T as x } from "./index-
|
|
3
|
+
import { r as M, g as $, d as F, m as O, a as B, o as A, T as x } from "./index-C5eOg7bB.mjs";
|
|
4
4
|
import q from "dexie";
|
|
5
5
|
var k = /* @__PURE__ */ ((e) => (e[e.Continue = 100] = "Continue", e[e.SwitchingProtocols = 101] = "SwitchingProtocols", e[e.Processing = 102] = "Processing", e[e.EarlyHints = 103] = "EarlyHints", e[e.Ok = 200] = "Ok", e[e.Created = 201] = "Created", e[e.Accepted = 202] = "Accepted", e[e.NonAuthoritativeInformation = 203] = "NonAuthoritativeInformation", e[e.NoContent = 204] = "NoContent", e[e.ResetContent = 205] = "ResetContent", e[e.PartialContent = 206] = "PartialContent", e[e.MultiStatus = 207] = "MultiStatus", e[e.AlreadyReported = 208] = "AlreadyReported", e[e.ImUsed = 226] = "ImUsed", e[e.MultipleChoices = 300] = "MultipleChoices", e[e.MovedPermanently = 301] = "MovedPermanently", e[e.Found = 302] = "Found", e[e.SeeOther = 303] = "SeeOther", e[e.NotModified = 304] = "NotModified", e[e.UseProxy = 305] = "UseProxy", e[e.Unused = 306] = "Unused", e[e.TemporaryRedirect = 307] = "TemporaryRedirect", e[e.PermanentRedirect = 308] = "PermanentRedirect", e[e.BadRequest = 400] = "BadRequest", e[e.Unauthorized = 401] = "Unauthorized", e[e.PaymentRequired = 402] = "PaymentRequired", e[e.Forbidden = 403] = "Forbidden", e[e.NotFound = 404] = "NotFound", e[e.MethodNotAllowed = 405] = "MethodNotAllowed", e[e.NotAcceptable = 406] = "NotAcceptable", e[e.ProxyAuthenticationRequired = 407] = "ProxyAuthenticationRequired", e[e.RequestTimeout = 408] = "RequestTimeout", e[e.Conflict = 409] = "Conflict", e[e.Gone = 410] = "Gone", e[e.LengthRequired = 411] = "LengthRequired", e[e.PreconditionFailed = 412] = "PreconditionFailed", e[e.PayloadTooLarge = 413] = "PayloadTooLarge", e[e.UriTooLong = 414] = "UriTooLong", e[e.UnsupportedMediaType = 415] = "UnsupportedMediaType", e[e.RangeNotSatisfiable = 416] = "RangeNotSatisfiable", e[e.ExpectationFailed = 417] = "ExpectationFailed", e[e.ImATeapot = 418] = "ImATeapot", e[e.MisdirectedRequest = 421] = "MisdirectedRequest", e[e.UnprocessableEntity = 422] = "UnprocessableEntity", e[e.Locked = 423] = "Locked", e[e.FailedDependency = 424] = "FailedDependency", e[e.TooEarly = 425] = "TooEarly", e[e.UpgradeRequired = 426] = "UpgradeRequired", e[e.PreconditionRequired = 428] = "PreconditionRequired", e[e.TooManyRequests = 429] = "TooManyRequests", e[e.RequestHeaderFieldsTooLarge = 431] = "RequestHeaderFieldsTooLarge", e[e.UnavailableForLegalReasons = 451] = "UnavailableForLegalReasons", e[e.InternalServerError = 500] = "InternalServerError", e[e.NotImplemented = 501] = "NotImplemented", e[e.BadGateway = 502] = "BadGateway", e[e.ServiceUnavailable = 503] = "ServiceUnavailable", e[e.GatewayTimeout = 504] = "GatewayTimeout", e[e.HttpVersionNotSupported = 505] = "HttpVersionNotSupported", e[e.VariantAlsoNegotiates = 506] = "VariantAlsoNegotiates", e[e.InsufficientStorage = 507] = "InsufficientStorage", e[e.LoopDetected = 508] = "LoopDetected", e[e.NotExtended = 510] = "NotExtended", e[e.NetworkAuthenticationRequired = 511] = "NetworkAuthenticationRequired", e))(k || {});
|
|
6
6
|
class m extends Error {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as m, x as f } from "./transform-bUuxPyao.mjs";
|
|
2
|
-
const
|
|
2
|
+
const R = [
|
|
3
3
|
{
|
|
4
4
|
value: "_self",
|
|
5
5
|
description: "The link will open in the same frame as it was clicked."
|
|
@@ -30,18 +30,16 @@ 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
|
-
],
|
|
34
|
-
{ value: "xs", description: "Extra small
|
|
35
|
-
{ value: "sm", description: "Small
|
|
36
|
-
{ value: "md", description: "Medium
|
|
37
|
-
{ value: "lg", description: "Large
|
|
38
|
-
],
|
|
39
|
-
[...v];
|
|
40
|
-
const b = ["attention", "primary", "secondary"], O = [...b], z = [
|
|
33
|
+
], V = Object.keys(u), P = [
|
|
34
|
+
{ value: "xs", description: "Extra small" },
|
|
35
|
+
{ value: "sm", description: "Small" },
|
|
36
|
+
{ value: "md", description: "Medium" },
|
|
37
|
+
{ value: "lg", description: "Large" }
|
|
38
|
+
], g = ["attention", "primary", "secondary"], A = [...g], O = [
|
|
41
39
|
{ value: "attention", description: "Attention state theme color" },
|
|
42
40
|
{ value: "primary", description: "Primary theme color" },
|
|
43
41
|
{ value: "secondary", description: "Secondary theme color" }
|
|
44
|
-
],
|
|
42
|
+
], z = [
|
|
45
43
|
{
|
|
46
44
|
value: "button",
|
|
47
45
|
description: "Regular behavior that only executes logic if explicitly determined."
|
|
@@ -54,7 +52,7 @@ const b = ["attention", "primary", "secondary"], O = [...b], z = [
|
|
|
54
52
|
value: "reset",
|
|
55
53
|
description: "Resets all the controls to their initial values. Using it is ill advised for UX reasons."
|
|
56
54
|
}
|
|
57
|
-
],
|
|
55
|
+
], v = ["solid", "outlined", "ghost"], C = [...v], L = [
|
|
58
56
|
{ value: "solid", description: "A button with a border and a filled background." },
|
|
59
57
|
{
|
|
60
58
|
value: "outlined",
|
|
@@ -64,9 +62,9 @@ const b = ["attention", "primary", "secondary"], O = [...b], z = [
|
|
|
64
62
|
value: "ghost",
|
|
65
63
|
description: "A button with no border and fill. Only the label is visible; the background is colored when hovered or clicked."
|
|
66
64
|
}
|
|
67
|
-
],
|
|
68
|
-
[...
|
|
69
|
-
const
|
|
65
|
+
], b = ["start", "center", "end"];
|
|
66
|
+
[...b];
|
|
67
|
+
const D = [
|
|
70
68
|
{ value: "center", description: "Place the content in the middle" },
|
|
71
69
|
{
|
|
72
70
|
value: "start",
|
|
@@ -76,10 +74,10 @@ const I = [
|
|
|
76
74
|
value: "end",
|
|
77
75
|
description: "Justify the content to the right (to the left if in right-to-left)"
|
|
78
76
|
}
|
|
79
|
-
],
|
|
77
|
+
], I = [
|
|
80
78
|
{ value: "horizontal", description: "The component will fill the available space horizontally" },
|
|
81
79
|
{ value: "vertical", description: "The component will fill the available space vertically" }
|
|
82
|
-
],
|
|
80
|
+
], y = ["start", "end"], N = [...y], W = [
|
|
83
81
|
{
|
|
84
82
|
value: "start",
|
|
85
83
|
description: "The icon will appear at the start (left side when the left-to-right direction is set)"
|
|
@@ -99,14 +97,14 @@ const I = [
|
|
|
99
97
|
},
|
|
100
98
|
{ value: "top", description: "The top of the input" },
|
|
101
99
|
{ value: "bottom", description: "The bottom of the input" }
|
|
102
|
-
],
|
|
100
|
+
], x = ["start", "end"], j = [...x], B = [
|
|
103
101
|
// { value: "none", description: "No indicator" },
|
|
104
102
|
{ value: "valid", description: "Visual indicator for an input that is accepted" },
|
|
105
103
|
{ value: "warning", description: "Visual indicator for an input that produced a warning" },
|
|
106
104
|
{ value: "error", description: "Visual indicator for an input that produced an error" }
|
|
107
|
-
],
|
|
108
|
-
[...
|
|
109
|
-
const
|
|
105
|
+
], w = ["top", "bottom"];
|
|
106
|
+
[...w];
|
|
107
|
+
const H = {
|
|
110
108
|
abbr: "abbr",
|
|
111
109
|
cite: "cite",
|
|
112
110
|
code: "code",
|
|
@@ -132,7 +130,7 @@ const _ = {
|
|
|
132
130
|
subheading: "h6",
|
|
133
131
|
tableheading: "h6",
|
|
134
132
|
secondary: "span"
|
|
135
|
-
},
|
|
133
|
+
}, _ = [
|
|
136
134
|
{ value: "abbr", description: "Represents an abbreviation or acronym" },
|
|
137
135
|
{ value: "caption", description: "Represents the caption (or title) of a table" },
|
|
138
136
|
{ value: "cite", description: "Is used to mark up the title of a cited work" },
|
|
@@ -179,7 +177,7 @@ const _ = {
|
|
|
179
177
|
{ value: "tableheading", description: "Indicates that the text is a table heading" },
|
|
180
178
|
{ value: "title", description: "Indicates that the text is the title of some other content" },
|
|
181
179
|
{ value: "var", description: "Represents the name of a variable in a mathematical expression" }
|
|
182
|
-
],
|
|
180
|
+
], k = ["title"], T = ["cite", "dateTime"], E = [...k, ...T], U = [
|
|
183
181
|
"get",
|
|
184
182
|
"post",
|
|
185
183
|
"put",
|
|
@@ -280,7 +278,7 @@ const _ = {
|
|
|
280
278
|
"writingMode",
|
|
281
279
|
"transition"
|
|
282
280
|
];
|
|
283
|
-
class
|
|
281
|
+
class F {
|
|
284
282
|
constructor(t) {
|
|
285
283
|
this.metadataCollection = t;
|
|
286
284
|
}
|
|
@@ -289,10 +287,10 @@ class q {
|
|
|
289
287
|
}
|
|
290
288
|
getComponent(t) {
|
|
291
289
|
const e = this.metadataCollection[t];
|
|
292
|
-
return e ? new
|
|
290
|
+
return e ? new S(e) : null;
|
|
293
291
|
}
|
|
294
292
|
}
|
|
295
|
-
class
|
|
293
|
+
class S {
|
|
296
294
|
constructor(t) {
|
|
297
295
|
this.metadata = t;
|
|
298
296
|
}
|
|
@@ -406,32 +404,32 @@ const n = {
|
|
|
406
404
|
valueType: "boolean"
|
|
407
405
|
}
|
|
408
406
|
};
|
|
409
|
-
function
|
|
407
|
+
function q(i) {
|
|
410
408
|
return "on" + i[0].toUpperCase() + i.substring(1);
|
|
411
409
|
}
|
|
412
410
|
export {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
411
|
+
R as L,
|
|
412
|
+
F as M,
|
|
413
|
+
H as T,
|
|
414
|
+
E as V,
|
|
415
|
+
q as a,
|
|
416
|
+
b,
|
|
417
|
+
D as c,
|
|
418
|
+
z as d,
|
|
419
|
+
O as e,
|
|
420
|
+
L as f,
|
|
421
|
+
_ as g,
|
|
422
|
+
w as h,
|
|
423
|
+
W as i,
|
|
424
|
+
A as j,
|
|
425
|
+
N as k,
|
|
428
426
|
K as l,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
427
|
+
C as m,
|
|
428
|
+
U as n,
|
|
429
|
+
I as o,
|
|
432
430
|
r as p,
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
431
|
+
V as q,
|
|
432
|
+
P as s,
|
|
433
|
+
j as t,
|
|
434
|
+
B as v
|
|
437
435
|
};
|