xmlui 0.9.80 → 0.9.82

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 (25) hide show
  1. package/dist/lib/{index-DO8H2Odv.mjs → index-z40PVcrw.mjs} +14902 -19634
  2. package/dist/lib/index.css +1 -1
  3. package/dist/lib/{initMock-CYAkCVnp.mjs → initMock-BPsXM5rg.mjs} +1 -1
  4. package/dist/lib/xmlui-parser.d.ts +46 -46
  5. package/dist/lib/xmlui.d.ts +22 -1
  6. package/dist/lib/xmlui.mjs +8 -7
  7. package/dist/metadata/{collectedComponentMetadata-uE4L7cM3.mjs → collectedComponentMetadata-DMqRnWLT.mjs} +19857 -24564
  8. package/dist/metadata/{initMock-CqvnqrIU.mjs → initMock-qDOHn1cO.mjs} +1 -1
  9. package/dist/metadata/style.css +1 -1
  10. package/dist/metadata/xmlui-metadata.mjs +1 -1
  11. package/dist/metadata/xmlui-metadata.umd.js +131 -139
  12. package/dist/scripts/package.json +2 -1
  13. package/dist/scripts/src/components/FormItem/FormItem.js +7 -39
  14. package/dist/scripts/src/components/FormItem/FormItemNative.js +24 -1
  15. package/dist/scripts/src/components/Markdown/MarkdownNative.js +1 -2
  16. package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +6 -2
  17. package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +21 -8
  18. package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +6 -4
  19. package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +18 -4
  20. package/dist/scripts/src/components-core/ComponentViewer.js +4 -1
  21. package/dist/scripts/src/components-core/rendering/AppContent.js +2 -1
  22. package/dist/scripts/src/syntax/grammar.tmLanguage.json +1 -1
  23. package/dist/standalone/xmlui-standalone.es.d.ts +37 -14
  24. package/dist/standalone/xmlui-standalone.umd.js +243 -251
  25. package/package.json +2 -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-DO8H2Odv.mjs";
3
+ import { r as M, g as $, d as F, m as O, a as B, o as A, T as x } from "./index-z40PVcrw.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 {
@@ -106,13 +106,13 @@ export declare const enum CharacterCodes {
106
106
  EOF = -1,
107
107
  nullCharacter = 0,
108
108
  maxAsciiCharacter = 127,
109
- lineFeed = 10,
110
- carriageReturn = 13,
109
+ lineFeed = 10,// \n
110
+ carriageReturn = 13,// \r
111
111
  lineSeparator = 8232,
112
112
  paragraphSeparator = 8233,
113
113
  nextLine = 133,
114
- space = 32,
115
- nonBreakingSpace = 160,
114
+ space = 32,// " "
115
+ nonBreakingSpace = 160,//
116
116
  enQuad = 8192,
117
117
  emQuad = 8193,
118
118
  enSpace = 8194,
@@ -194,40 +194,40 @@ export declare const enum CharacterCodes {
194
194
  X = 88,
195
195
  Y = 89,
196
196
  Z = 90,
197
- ampersand = 38,
198
- asterisk = 42,
199
- at = 64,
200
- backslash = 92,
201
- backtick = 96,
202
- bar = 124,
203
- caret = 94,
204
- closeBrace = 125,
205
- closeBracket = 93,
206
- closeParen = 41,
207
- colon = 58,
208
- comma = 44,
209
- dot = 46,
210
- doubleQuote = 34,
211
- equals = 61,
212
- exclamation = 33,
213
- greaterThan = 62,
214
- hash = 35,
215
- lessThan = 60,
216
- minus = 45,
217
- openBrace = 123,
218
- openBracket = 91,
219
- openParen = 40,
220
- percent = 37,
221
- plus = 43,
222
- question = 63,
223
- semicolon = 59,
224
- singleQuote = 39,
225
- slash = 47,
226
- tilde = 126,
227
- backspace = 8,
228
- formFeed = 12,
197
+ ampersand = 38,// &
198
+ asterisk = 42,// *
199
+ at = 64,// @
200
+ backslash = 92,// \
201
+ backtick = 96,// `
202
+ bar = 124,// |
203
+ caret = 94,// ^
204
+ closeBrace = 125,// }
205
+ closeBracket = 93,// ]
206
+ closeParen = 41,// )
207
+ colon = 58,// :
208
+ comma = 44,// ,
209
+ dot = 46,// .
210
+ doubleQuote = 34,// "
211
+ equals = 61,// =
212
+ exclamation = 33,// !
213
+ greaterThan = 62,// >
214
+ hash = 35,// #
215
+ lessThan = 60,// <
216
+ minus = 45,// -
217
+ openBrace = 123,// {
218
+ openBracket = 91,// [
219
+ openParen = 40,// (
220
+ percent = 37,// %
221
+ plus = 43,// +
222
+ question = 63,// ?
223
+ semicolon = 59,// ;
224
+ singleQuote = 39,// '
225
+ slash = 47,// /
226
+ tilde = 126,// ~
227
+ backspace = 8,// \b
228
+ formFeed = 12,// \f
229
229
  byteOrderMark = 65279,
230
- tab = 9,
230
+ tab = 9,// \t
231
231
  verticalTab = 11
232
232
  }
233
233
 
@@ -801,7 +801,7 @@ declare type LintDiagnostic = {
801
801
  kind: LintDiagKind;
802
802
  };
803
803
 
804
- export declare function lintErrorsComponent(lints: ComponentLints[]): ComponentDef<ComponentMetadata<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>;
804
+ export declare function lintErrorsComponent(lints: ComponentLints[]): ComponentDef;
805
805
 
806
806
  export declare enum LintSeverity {
807
807
  Skip = 0,
@@ -1065,15 +1065,15 @@ export declare const enum SyntaxKind {
1065
1065
  NewLineTrivia = 3,
1066
1066
  WhitespaceTrivia = 4,
1067
1067
  Identifier = 5,
1068
- OpenNodeStart = 6,
1069
- CloseNodeStart = 7,
1070
- NodeEnd = 8,
1071
- NodeClose = 9,
1072
- Colon = 10,
1073
- Equal = 11,
1068
+ OpenNodeStart = 6,// "<"
1069
+ CloseNodeStart = 7,// "</"
1070
+ NodeEnd = 8,// ">"
1071
+ NodeClose = 9,// "/>"
1072
+ Colon = 10,// ":"
1073
+ Equal = 11,// "="
1074
1074
  StringLiteral = 12,
1075
- CData = 13,
1076
- Script = 14,
1075
+ CData = 13,// "<![CDATA[" ... "]]>"
1076
+ Script = 14,// <script>...</script>
1077
1077
  TextNode = 15,
1078
1078
  AmpersandEntity = 16,
1079
1079
  LessThanEntity = 17,
@@ -2,6 +2,7 @@ import { CSSProperties } from 'react';
2
2
  import { default as default_2 } from 'react';
3
3
  import { DefaultToastOptions } from 'react-hot-toast';
4
4
  import { DelayMode } from 'msw';
5
+ import { Dispatch } from 'react';
5
6
  import { ErrorInfo } from 'react';
6
7
  import { ForwardedRef } from 'react';
7
8
  import { ForwardRefExoticComponent } from 'react';
@@ -14,6 +15,7 @@ import { RefAttributes } from 'react';
14
15
  import { RefObject } from 'react';
15
16
  import { Renderable } from 'react-hot-toast';
16
17
  import { Root } from 'react-dom/client';
18
+ import { SetStateAction } from 'react';
17
19
  import { SetupWorker } from 'msw/browser';
18
20
  import { StrictRequest } from 'msw';
19
21
  import { To } from 'react-router-dom';
@@ -82,6 +84,7 @@ declare type AppContextObject = {
82
84
  mediaSize: MediaSize;
83
85
  queryClient: QueryClient | null;
84
86
  standalone?: boolean;
87
+ appIsInShadowDom?: boolean;
85
88
  formatDate: (date: string | Date) => string | undefined;
86
89
  formatDateTime: (date: any) => string | undefined;
87
90
  formatDateWithoutYear: (date: string | Date) => string | undefined;
@@ -157,6 +160,21 @@ export declare function AppRoot({ apiInterceptor, contributes, node, decorateCom
157
160
  isNested?: boolean;
158
161
  }): JSX_2.Element;
159
162
 
163
+ declare type AppThemes = {
164
+ root: HTMLElement | undefined;
165
+ setRoot: Dispatch<SetStateAction<HTMLElement | undefined>>;
166
+ setActiveThemeId: (newThemeId: string) => void;
167
+ setActiveThemeTone: (newTone: ThemeTone) => void;
168
+ toggleThemeTone: () => void;
169
+ activeThemeId: string;
170
+ activeThemeTone: ThemeTone;
171
+ themes: Array<ThemeDefinition>;
172
+ resources: Record<string, string>;
173
+ resourceMap: Record<string, string>;
174
+ availableThemeIds: Array<string>;
175
+ activeTheme: ThemeDefinition;
176
+ };
177
+
160
178
  declare type AppWrapperProps = {
161
179
  node: ComponentLike;
162
180
  previewMode?: boolean;
@@ -1619,9 +1637,10 @@ declare enum TokenType {
1619
1637
  From = 97
1620
1638
  }
1621
1639
 
1622
- export declare function ToneChangerButton({ lightToDarkIcon, darkToLightIcon, }: {
1640
+ export declare function ToneChangerButton({ lightToDarkIcon, darkToLightIcon, onClick, }: {
1623
1641
  lightToDarkIcon?: string;
1624
1642
  darkToLightIcon?: string;
1643
+ onClick?: (...args: any[]) => void;
1625
1644
  }): JSX_2.Element;
1626
1645
 
1627
1646
  declare type TrackContainerHeight = "auto" | "fixed";
@@ -1692,6 +1711,8 @@ export declare const useSearchContextContent: () => Record<string, SearchEntry>;
1692
1711
 
1693
1712
  export declare function useTheme(): ThemeScope;
1694
1713
 
1714
+ export declare function useThemes(): AppThemes;
1715
+
1695
1716
  declare type ValidationStatus = (typeof validationStatusValues)[number];
1696
1717
 
1697
1718
  declare const validationStatusValues: readonly ["none", "error", "warning", "valid"];
@@ -1,5 +1,5 @@
1
- import { y as e, A as t, B as o, E as r, I as n, L as p, H as u, N as i, z as l, i as C, h as d, S as m, b as x, k as T, l as c, D as S, F as A, G as g, V as h, C as v, c as B, e as I, f as L, w as b, j as k, p as y, s as E, t as M, K as V, n as f, q as H, M as N, v as R, J as D, u as U, x as X } from "./index-DO8H2Odv.mjs";
2
- import { X as q } from "./xmlui-serializer-jEIItW8v.mjs";
1
+ import { y as e, A as t, B as o, E as r, I as n, L as p, J as u, N as i, z as l, i as m, h as C, S as d, b as x, k as T, l as c, F as S, G as A, H as g, V as h, D as v, c as B, e as I, f as L, w as b, j as k, p as y, s as E, t as M, M as V, n as f, q as H, O as N, v as R, K as D, u as U, C as X, x as j } from "./index-z40PVcrw.mjs";
2
+ import { X as w } from "./xmlui-serializer-jEIItW8v.mjs";
3
3
  export {
4
4
  e as ApiInterceptorProvider,
5
5
  t as AppRoot,
@@ -10,9 +10,9 @@ export {
10
10
  u as Logo,
11
11
  i as NestedApp,
12
12
  l as Spinner,
13
- C as Splitter,
14
- d as Stack,
15
- m as StandaloneApp,
13
+ m as Splitter,
14
+ C as Stack,
15
+ d as StandaloneApp,
16
16
  x as StandaloneExtensionManager,
17
17
  T as TabItem,
18
18
  c as Tabs,
@@ -20,7 +20,7 @@ export {
20
20
  A as TextBox,
21
21
  g as ToneChangerButton,
22
22
  h as VisuallyHidden,
23
- q as XmlUiHelper,
23
+ w as XmlUiHelper,
24
24
  v as builtInThemes,
25
25
  B as createComponentRenderer,
26
26
  I as createMetadata,
@@ -37,5 +37,6 @@ export {
37
37
  R as useLogger,
38
38
  D as useSearchContextContent,
39
39
  U as useTheme,
40
- X as xmlUiMarkupToComponent
40
+ X as useThemes,
41
+ j as xmlUiMarkupToComponent
41
42
  };