xmlui 0.10.8 → 0.10.10

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.
Files changed (56) hide show
  1. package/dist/lib/{index-CqzCWOUw.mjs → index-C71PAj7E.mjs} +15143 -15045
  2. package/dist/lib/index.css +1 -1
  3. package/dist/lib/{initMock-C5CXs0-5.mjs → initMock-Bvbl2Pa3.mjs} +57 -54
  4. package/dist/lib/language-server-web-worker.mjs +1 -1
  5. package/dist/lib/language-server.mjs +1 -1
  6. package/dist/lib/{metadata-utils-DrEexTX9.mjs → metadata-utils-gIOZMGG7.mjs} +51 -46
  7. package/dist/lib/{server-common-ddmPKhK6.mjs → server-common-BfCSNpXG.mjs} +4467 -4437
  8. package/dist/lib/xmlui-parser.d.ts +3 -3
  9. package/dist/lib/xmlui.d.ts +14 -10
  10. package/dist/lib/xmlui.mjs +26 -26
  11. package/dist/metadata/{collectedComponentMetadata-DIT5VbaH.mjs → collectedComponentMetadata-Dn91__HO.mjs} +17636 -17534
  12. package/dist/metadata/{initMock-D6Vi9kU_.mjs → initMock-ghNfStAu.mjs} +57 -54
  13. package/dist/metadata/style.css +1 -1
  14. package/dist/metadata/xmlui-metadata.mjs +1 -1
  15. package/dist/metadata/xmlui-metadata.umd.js +93 -93
  16. package/dist/scripts/package.json +1 -1
  17. package/dist/scripts/src/components/Accordion/AccordionItemNative.js +2 -2
  18. package/dist/scripts/src/components/App/AppNative.js +6 -7
  19. package/dist/scripts/src/components/Breakout/BreakoutNative.js +2 -2
  20. package/dist/scripts/src/components/Button/ButtonNative.js +4 -0
  21. package/dist/scripts/src/components/Carousel/Carousel.js +13 -20
  22. package/dist/scripts/src/components/Carousel/CarouselContext.js +11 -2
  23. package/dist/scripts/src/components/Carousel/CarouselItemNative.js +2 -2
  24. package/dist/scripts/src/components/Carousel/CarouselNative.js +2 -2
  25. package/dist/scripts/src/components/Charts/BarChart/BarChart.js +4 -4
  26. package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +5 -1
  27. package/dist/scripts/src/components/Charts/LineChart/LineChart.js +3 -3
  28. package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +5 -1
  29. package/dist/scripts/src/components/DateInput/DateInput.js +7 -9
  30. package/dist/scripts/src/components/DateInput/DateInputNative.js +101 -38
  31. package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +18 -12
  32. package/dist/scripts/src/components/FormItem/ItemWithLabel.js +3 -3
  33. package/dist/scripts/src/components/Input/PartialInput.js +28 -3
  34. package/dist/scripts/src/components/List/ListNative.js +6 -5
  35. package/dist/scripts/src/components/NavPanel/NavPanelNative.js +3 -8
  36. package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +2 -2
  37. package/dist/scripts/src/components/Pagination/Pagination.js +2 -1
  38. package/dist/scripts/src/components/Slider/Slider.js +10 -8
  39. package/dist/scripts/src/components/Slider/SliderNative.js +24 -21
  40. package/dist/scripts/src/components/Table/TableNative.js +18 -13
  41. package/dist/scripts/src/components/TextArea/TextAreaNative.js +3 -3
  42. package/dist/scripts/src/components/TextBox/TextBoxNative.js +2 -2
  43. package/dist/scripts/src/components/TimeInput/TimeInput.js +10 -10
  44. package/dist/scripts/src/components/TimeInput/TimeInputNative.js +87 -38
  45. package/dist/scripts/src/components/Toggle/Toggle.js +1 -1
  46. package/dist/scripts/src/components/Tooltip/Tooltip.js +9 -9
  47. package/dist/scripts/src/components/Tooltip/TooltipNative.js +4 -4
  48. package/dist/scripts/src/components/abstractions.js +6 -3
  49. package/dist/scripts/src/components-core/interception/ApiInterceptor.js +4 -1
  50. package/dist/scripts/src/components-core/interception/Backend.js +13 -7
  51. package/dist/scripts/src/components-core/parts.js +0 -4
  52. package/dist/standalone/xmlui-standalone.es.d.ts +20 -14
  53. package/dist/standalone/xmlui-standalone.umd.js +254 -254
  54. package/package.json +1 -1
  55. package/dist/scripts/src/components-core/ScrollContext.js +0 -11
  56. package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
@@ -1,6 +1,6 @@
1
1
  import { delay as D, HttpResponse as g, matchRequestUrl as E } from "msw";
2
- import { isArray as N, isObject as U, mapValues as B } from "lodash-es";
3
- import { r as T, g as M, d as $, m as F, a as O, o as p, T as x } from "./index-CqzCWOUw.mjs";
2
+ import { isArray as T, isObject as R, mapValues as F } from "lodash-es";
3
+ import { r as B, g as M, d as O, m as $, a as x, o as b, T as L } from "./index-C71PAj7E.mjs";
4
4
  import q from "dexie";
5
5
  var A = /* @__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))(A || {});
6
6
  class m extends Error {
@@ -29,15 +29,15 @@ function k(e) {
29
29
  message: e
30
30
  } : r = e), r;
31
31
  }
32
- const L = {
32
+ const j = {
33
33
  NotFound404: (e) => new I(k(e)),
34
34
  Unauthorized401: (e) => new v(k(e)),
35
35
  HttpError: (e, r) => new m(e, k(r)),
36
36
  Conflict409: (e) => new P(k(e))
37
- }, j = {
37
+ }, z = {
38
38
  getDate: (e) => e ? new Date(e) : /* @__PURE__ */ new Date()
39
- }, b = (e, r) => N(e) ? e.map((n) => b(n, r)) : U(e) ? B(e, (n) => b(n, r)) : r(e);
40
- class z {
39
+ }, p = (e, r) => T(e) ? e.map((n) => p(n, r)) : R(e) ? F(e, (n) => p(n, r)) : r(e);
40
+ class V {
41
41
  constructor() {
42
42
  this.cookies = {};
43
43
  }
@@ -51,7 +51,7 @@ class z {
51
51
  }), new Headers(r);
52
52
  }
53
53
  }
54
- class V {
54
+ class G {
55
55
  constructor() {
56
56
  this.headers = {};
57
57
  }
@@ -65,9 +65,9 @@ class V {
65
65
  }), new Headers(r);
66
66
  }
67
67
  }
68
- class G {
68
+ class J {
69
69
  constructor(r, n, i) {
70
- this.definition = r, this.db = n, this.authService = i, this.apiStateHash = {}, this.resolvedHelpers = b(r.helpers, (s) => typeof s == "string" ? (...a) => this.runFn(s, ...a) : s), r.initialize && this.runFn(r.initialize);
70
+ this.definition = r, this.db = n, this.authService = i, this.apiStateHash = {}, this.resolvedHelpers = p(r.helpers, (s) => typeof s == "string" ? (...a) => this.runFn(s, ...a) : s), r.initialize && this.runFn(r.initialize);
71
71
  }
72
72
  async executeOperation(r, n, i, s) {
73
73
  var t;
@@ -83,7 +83,7 @@ class G {
83
83
  $db: this.db,
84
84
  $state: this.apiStateHash,
85
85
  $authService: this.authService,
86
- $env: j,
86
+ $env: z,
87
87
  $loggedInUser: this.authService.getLoggedInUser(),
88
88
  $pathParams: (a = n[0]) == null ? void 0 : a.pathParams,
89
89
  $queryParams: (t = n[0]) == null ? void 0 : t.queryParams,
@@ -95,25 +95,23 @@ class G {
95
95
  $headerService: n[2]
96
96
  //TODO really ugly, temporary solution
97
97
  };
98
- const s = J({
98
+ const s = K({
99
99
  localContext: i,
100
100
  eventArgs: n,
101
101
  appContext: {
102
- ...O,
103
- ...F,
104
- delay: $,
105
- Errors: L,
102
+ ...x,
103
+ ...$,
104
+ delay: O,
105
+ Errors: j,
106
106
  createFile: (...l) => new File(l[0], l[1], l[2]),
107
- appendBlob: (l, u) => !l && !u ? void 0 : new Blob([l, u], {
108
- type: (l == null ? void 0 : l.type) || (u == null ? void 0 : u.type) || "application/octet-stream"
109
- }),
107
+ appendBlob: (l, u) => l && u ? new Blob([l, u], { type: l.type || u.type }) : l || u || null,
110
108
  getDate: M
111
109
  }
112
110
  });
113
- return await T(r, s), (o = (d = s.mainThread) == null ? void 0 : d.blocks) != null && o.length ? s.mainThread.blocks[s.mainThread.blocks.length - 1].returnValue : void 0;
111
+ return await B(r, s), (o = (d = s.mainThread) == null ? void 0 : d.blocks) != null && o.length ? s.mainThread.blocks[s.mainThread.blocks.length - 1].returnValue : void 0;
114
112
  }
115
113
  }
116
- function J(e) {
114
+ function K(e) {
117
115
  return {
118
116
  mainThread: {
119
117
  childThreads: [],
@@ -168,10 +166,10 @@ class h {
168
166
  return this.list.filter((i, s) => n[s]);
169
167
  }
170
168
  async orderBy(...r) {
171
- return new h(await p(this.list, ...r));
169
+ return new h(await b(this.list, ...r));
172
170
  }
173
171
  async orderByAsArray(...r) {
174
- return await p(this.list, ...r);
172
+ return await b(this.list, ...r);
175
173
  }
176
174
  async groupBy(r) {
177
175
  return new h(await this.groupByAsArray(r));
@@ -199,7 +197,7 @@ class h {
199
197
  }
200
198
  async maxValue(r = "id", n) {
201
199
  let i = n ? (await new h(this.list).where(n)).toArray() : this.list;
202
- return i = await p(i, (s) => s[r], !0), i.length === 0 ? void 0 : i[0][r];
200
+ return i = await b(i, (s) => s[r], !0), i.length === 0 ? void 0 : i[0][r];
203
201
  }
204
202
  async skip(r) {
205
203
  return new h(this.list.slice(r));
@@ -211,7 +209,7 @@ class h {
211
209
  return new h(this.list.slice(r, n + r));
212
210
  }
213
211
  }
214
- class K {
212
+ class W {
215
213
  constructor(r, n = {}, i) {
216
214
  this.tables = r, this.initialData = n, this.config = i, this.db = null, this.getItems = (s) => this.getDb().table(s).toArray(), this.findItems = async (s, a) => {
217
215
  const t = await this.getItems(s), w = await Promise.all(t.map(a));
@@ -249,7 +247,7 @@ class K {
249
247
  }
250
248
  })
251
249
  ), i.forEach((c) => {
252
- this[`$${c}`] = W(this.getDb().table(c));
250
+ this[`$${c}`] = Q(this.getDb().table(c));
253
251
  });
254
252
  }
255
253
  createDbInstance() {
@@ -267,7 +265,7 @@ class K {
267
265
  await this.db.transaction("rw", n, r);
268
266
  }
269
267
  }
270
- async function W(e) {
268
+ async function Q(e) {
271
269
  const r = () => e.db.table(e.name), n = async (i) => {
272
270
  const s = await e.toArray(), a = await Promise.all(s.map(i ?? (async () => !0)));
273
271
  return s.filter((t, w) => a[w]);
@@ -312,7 +310,7 @@ async function W(e) {
312
310
  skipTake: async (i, s) => await new h(await e.toArray()).skipTake(i, s)
313
311
  };
314
312
  }
315
- function R(e, r) {
313
+ function U(e, r) {
316
314
  if (!r) return e;
317
315
  const n = { ...e };
318
316
  return Object.keys(e).forEach((i) => {
@@ -371,7 +369,7 @@ function R(e, r) {
371
369
  }
372
370
  }), n;
373
371
  }
374
- class Q {
372
+ class X {
375
373
  constructor(r, n = {}, i) {
376
374
  this.tables = r, this.initialData = n, this.config = i;
377
375
  }
@@ -396,10 +394,10 @@ class Q {
396
394
  async initialize() {
397
395
  }
398
396
  }
399
- function X(...e) {
397
+ function Y(...e) {
400
398
  const r = {};
401
399
  for (const n of e) {
402
- if (!U(n))
400
+ if (!R(n))
403
401
  throw new TypeError("All arguments must be of type object");
404
402
  const i = new Headers(n);
405
403
  for (const [s, a] of i.entries())
@@ -407,7 +405,7 @@ function X(...e) {
407
405
  }
408
406
  return new Headers(r);
409
407
  }
410
- class Y {
408
+ class Z {
411
409
  constructor(r) {
412
410
  const n = JSON.parse(sessionStorage.getItem("session-logged-in-user"));
413
411
  this.loggedInUser = n || (r == null ? void 0 : r.defaultLoggedInUser);
@@ -428,13 +426,13 @@ class Y {
428
426
  return this.loggedInUser;
429
427
  }
430
428
  }
431
- async function Z(e) {
429
+ async function _(e) {
432
430
  var r, n;
433
431
  switch (e.type) {
434
432
  case "in-memory":
435
- return new Q((r = e.schemaDescriptor) == null ? void 0 : r.tables, e.initialData, e.config);
433
+ return new X((r = e.schemaDescriptor) == null ? void 0 : r.tables, e.initialData, e.config);
436
434
  default:
437
- const i = new K(
435
+ const i = new W(
438
436
  (n = e.schemaDescriptor) == null ? void 0 : n.tables,
439
437
  e.initialData,
440
438
  e.config
@@ -442,7 +440,7 @@ async function Z(e) {
442
440
  return await i.initialize(), i;
443
441
  }
444
442
  }
445
- class _ {
443
+ class S {
446
444
  // public id = crypto.randomUUID();
447
445
  constructor(r) {
448
446
  this.apiDef = r, this.backend = null;
@@ -452,12 +450,12 @@ class _ {
452
450
  Object.entries(this.apiDef.operations || {}).forEach(([a, t]) => {
453
451
  r[a] = t.handler;
454
452
  });
455
- const n = await Z(this.apiDef), i = new Y(this.apiDef.auth), s = {
453
+ const n = await _(this.apiDef), i = new Z(this.apiDef.auth), s = {
456
454
  operations: r,
457
455
  initialize: this.apiDef.initialize,
458
456
  helpers: this.apiDef.helpers
459
457
  };
460
- this.backend = new G(s, n, i);
458
+ this.backend = new J(s, n, i);
461
459
  }
462
460
  getOperations() {
463
461
  return this.apiDef.operations || {};
@@ -496,21 +494,26 @@ class _ {
496
494
  a
497
495
  );
498
496
  this.apiDef.artificialDelay === void 0 ? await D("real") : this.apiDef.artificialDelay !== 0 && await D(this.apiDef.artificialDelay);
499
- const y = new z(), c = new V();
497
+ const y = new V(), c = new G();
500
498
  try {
501
499
  const o = await this.backend.executeOperation(
502
500
  r,
503
501
  w,
504
502
  y,
505
503
  c
506
- ), l = o == null, u = a.successStatusCode ?? (l ? A.NoContent : A.Ok), f = X(y.getCookieHeader(), c.getHeaders());
507
- return o instanceof File ? (f.append("Content-type", o.type), f.append("Content-Length", o.size + ""), f.append(
508
- "Content-Disposition",
509
- `attachment; filename="${o.name}"; filename*=utf-8''${o.name}`
510
- ), g.arrayBuffer(await o.arrayBuffer(), {
511
- headers: f,
512
- status: u
513
- })) : l ? new g(null, {
504
+ ), l = o == null, u = a.successStatusCode ?? (l ? A.NoContent : A.Ok), f = Y(y.getCookieHeader(), c.getHeaders());
505
+ if (o instanceof File) {
506
+ f.append("Content-type", o.type), f.append("Content-Length", o.size + "");
507
+ const N = encodeURIComponent(o.name);
508
+ return f.append(
509
+ "Content-Disposition",
510
+ `attachment; filename*=UTF-8''${N}`
511
+ ), g.arrayBuffer(await o.arrayBuffer(), {
512
+ headers: f,
513
+ status: u
514
+ });
515
+ }
516
+ return l ? new g(null, {
514
517
  headers: f,
515
518
  status: u
516
519
  }) : g.json(o, {
@@ -518,7 +521,7 @@ class _ {
518
521
  status: u
519
522
  });
520
523
  } catch (o) {
521
- return console.error(o), o instanceof x && o.errorObject instanceof m ? g.json(o.errorObject.details, {
524
+ return console.error(o), o instanceof L && o.errorObject instanceof m ? g.json(o.errorObject.details, {
522
525
  headers: y.getCookieHeader(),
523
526
  status: o.errorObject.status
524
527
  }) : g.json(
@@ -534,8 +537,8 @@ class _ {
534
537
  convertRequestParams(r, n) {
535
538
  return {
536
539
  ...r,
537
- pathParams: R(r.pathParams, n.pathParamTypes),
538
- queryParams: R(r.queryParams, n.queryParamTypes)
540
+ pathParams: U(r.pathParams, n.pathParamTypes),
541
+ queryParams: U(r.queryParams, n.queryParamTypes)
539
542
  };
540
543
  }
541
544
  hasMockForRequest(r, n) {
@@ -549,20 +552,20 @@ class _ {
549
552
  if (!i)
550
553
  throw new Error(`No mock found for request: ${r} with options: ${JSON.stringify(n)}`);
551
554
  const [s, a] = i, t = E(new URL(r, window.location.href), `${this.getApiUrl()}${a.url}`, `${window.location.href}`);
552
- return this.executeOperation(s, new Request(r, n), S(), t.params);
555
+ return this.executeOperation(s, new Request(r, n), C(), t.params);
553
556
  }
554
557
  }
555
- function S() {
558
+ function C() {
556
559
  const e = document.cookie;
557
560
  return e === "" ? {} : e.split("; ").reduce((i, s) => {
558
561
  const [a, t] = s.split("=");
559
562
  return i[decodeURIComponent(a)] = decodeURIComponent(t), i;
560
563
  }, {});
561
564
  }
562
- const ne = async (e) => {
563
- const r = new _(e);
565
+ const ie = async (e) => {
566
+ const r = new S(e);
564
567
  return await r.initialize(), r;
565
568
  };
566
569
  export {
567
- ne as initMock
570
+ ie as initMock
568
571
  };
@@ -1,4 +1,4 @@
1
- import { m as o, s as n } from "./server-common-ddmPKhK6.mjs";
1
+ import { m as o, s as n } from "./server-common-BfCSNpXG.mjs";
2
2
  var e = o;
3
3
  const s = new e.BrowserMessageReader(self);
4
4
  s.listen((r) => {
@@ -1,4 +1,4 @@
1
- import { m as n, s as a } from "./server-common-ddmPKhK6.mjs";
1
+ import { m as n, s as a } from "./server-common-BfCSNpXG.mjs";
2
2
  var o = n;
3
3
  function r() {
4
4
  const t = o.createConnection(o.ProposedFeatures.all);
@@ -1,5 +1,5 @@
1
1
  import { u as m, x as f } from "./transform-SMWeyMoq.mjs";
2
- const M = [
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,16 +30,20 @@ const M = [
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
- ], R = Object.keys(u), P = [
33
+ ], P = Object.keys(u), g = ["xs", "sm", "md", "lg"], z = [
34
34
  { value: "xs", description: "Extra small" },
35
35
  { value: "sm", description: "Small" },
36
36
  { value: "md", description: "Medium" },
37
37
  { value: "lg", description: "Large" }
38
- ], g = ["attention", "primary", "secondary"], A = [...g], O = [
38
+ ];
39
+ function A(i) {
40
+ return g.includes(i);
41
+ }
42
+ const v = ["attention", "primary", "secondary"], O = [...v], C = [
39
43
  { value: "attention", description: "Attention state theme color" },
40
44
  { value: "primary", description: "Primary theme color" },
41
45
  { value: "secondary", description: "Secondary theme color" }
42
- ], z = [
46
+ ], L = [
43
47
  {
44
48
  value: "button",
45
49
  description: "Regular behavior that only executes logic if explicitly determined."
@@ -52,7 +56,7 @@ const M = [
52
56
  value: "reset",
53
57
  description: "Resets all the controls to their initial values. Using it is ill advised for UX reasons."
54
58
  }
55
- ], v = ["solid", "outlined", "ghost"], C = [...v], L = [
59
+ ], b = ["solid", "outlined", "ghost"], D = [...b], I = [
56
60
  { value: "solid", description: "A button with a border and a filled background." },
57
61
  {
58
62
  value: "outlined",
@@ -62,9 +66,9 @@ const M = [
62
66
  value: "ghost",
63
67
  description: "A button with no border and fill. Only the label is visible; the background is colored when hovered or clicked."
64
68
  }
65
- ], b = ["start", "center", "end"];
66
- [...b];
67
- const D = [
69
+ ], y = ["start", "center", "end"];
70
+ [...y];
71
+ const N = [
68
72
  { value: "center", description: "Place the content in the middle" },
69
73
  {
70
74
  value: "start",
@@ -74,10 +78,10 @@ const D = [
74
78
  value: "end",
75
79
  description: "Justify the content to the right (to the left if in right-to-left)"
76
80
  }
77
- ], I = ["horizontal", "vertical"], N = [
81
+ ], W = ["horizontal", "vertical"], K = [
78
82
  { value: "horizontal", description: "The component will fill the available space horizontally" },
79
83
  { value: "vertical", description: "The component will fill the available space vertically" }
80
- ], y = ["start", "end"], W = [...y], K = [
84
+ ], x = ["start", "end"], j = [...x], B = [
81
85
  {
82
86
  value: "start",
83
87
  description: "The icon will appear at the start (left side when the left-to-right direction is set)"
@@ -86,7 +90,7 @@ const D = [
86
90
  value: "end",
87
91
  description: "The icon will appear at the end (right side when the left-to-right direction is set)"
88
92
  }
89
- ], j = [
93
+ ], _ = [
90
94
  {
91
95
  value: "start",
92
96
  description: "The left side of the input (left-to-right) or the right side of the input (right-to-left)"
@@ -97,14 +101,14 @@ const D = [
97
101
  },
98
102
  { value: "top", description: "The top of the input" },
99
103
  { value: "bottom", description: "The bottom of the input" }
100
- ], x = ["start", "end"], B = [...x], _ = [
104
+ ], w = ["start", "end"], E = [...w], H = [
101
105
  // { value: "none", description: "No indicator" },
102
106
  { value: "valid", description: "Visual indicator for an input that is accepted" },
103
107
  { value: "warning", description: "Visual indicator for an input that produced a warning" },
104
108
  { value: "error", description: "Visual indicator for an input that produced an error" }
105
- ], w = ["top", "bottom"];
106
- [...w];
107
- const E = {
109
+ ], k = ["top", "bottom"];
110
+ [...k];
111
+ const U = {
108
112
  abbr: "abbr",
109
113
  cite: "cite",
110
114
  code: "code",
@@ -129,7 +133,7 @@ const E = {
129
133
  subheading: "h6",
130
134
  tableheading: "h6",
131
135
  secondary: "span"
132
- }, H = [
136
+ }, F = [
133
137
  { value: "abbr", description: "Represents an abbreviation or acronym" },
134
138
  { value: "caption", description: "Represents the caption (or title) of a table" },
135
139
  { value: "cite", description: "Is used to mark up the title of a cited work" },
@@ -172,7 +176,7 @@ const E = {
172
176
  { value: "tableheading", description: "Indicates that the text is a table heading" },
173
177
  { value: "title", description: "Indicates that the text is the title of some other content" },
174
178
  { value: "var", description: "Represents the name of a variable in a mathematical expression" }
175
- ], k = ["title"], T = ["cite", "dateTime"], U = [...k, ...T], F = [
179
+ ], T = ["title"], S = ["cite", "dateTime"], q = [...T, ...S], J = [
176
180
  "get",
177
181
  "post",
178
182
  "put",
@@ -273,7 +277,7 @@ const E = {
273
277
  "writingMode",
274
278
  "transition"
275
279
  ];
276
- class q {
280
+ class X {
277
281
  constructor(t) {
278
282
  this.metadataCollection = t;
279
283
  }
@@ -282,10 +286,10 @@ class q {
282
286
  }
283
287
  getComponent(t) {
284
288
  const e = this.metadataCollection[t];
285
- return e ? new S(e) : null;
289
+ return e ? new V(e) : null;
286
290
  }
287
291
  }
288
- class S {
292
+ class V {
289
293
  constructor(t) {
290
294
  this.metadata = t;
291
295
  }
@@ -399,33 +403,34 @@ const n = {
399
403
  valueType: "boolean"
400
404
  }
401
405
  };
402
- function J(i) {
406
+ function Y(i) {
403
407
  return "on" + i[0].toUpperCase() + i.substring(1);
404
408
  }
405
409
  export {
406
- M as L,
407
- q as M,
408
- E as T,
409
- U as V,
410
- J as a,
411
- b,
412
- D as c,
413
- z as d,
414
- O as e,
415
- L as f,
416
- r as g,
417
- H as h,
418
- K as i,
419
- w as j,
420
- A as k,
421
- j as l,
422
- W as m,
423
- C as n,
424
- N as o,
425
- F as p,
426
- I as q,
427
- R as r,
428
- P as s,
429
- B as t,
430
- _ as v
410
+ R as L,
411
+ X as M,
412
+ U as T,
413
+ q as V,
414
+ Y as a,
415
+ y as b,
416
+ N as c,
417
+ B as d,
418
+ L as e,
419
+ C as f,
420
+ I as g,
421
+ r as h,
422
+ A as i,
423
+ F as j,
424
+ k,
425
+ _ as l,
426
+ O as m,
427
+ j as n,
428
+ K as o,
429
+ D as p,
430
+ J as q,
431
+ W as r,
432
+ z as s,
433
+ E as t,
434
+ P as u,
435
+ H as v
431
436
  };