xmlui 0.7.33 → 0.8.0

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 (90) hide show
  1. package/dist/_commonjsHelpers-BkfeUUK-.mjs +28 -0
  2. package/dist/{apiInterceptorWorker-CE7NtDJI.mjs → apiInterceptorWorker-C5K2aqZR.mjs} +1 -1
  3. package/dist/index-DG5iykVX.mjs +28210 -0
  4. package/dist/index.css +1 -1
  5. package/dist/language-server.d.ts +24 -0
  6. package/dist/language-server.mjs +14331 -0
  7. package/dist/lint-BN6SMVda.mjs +4902 -0
  8. package/dist/parser-Bko8vvFS.mjs +746 -0
  9. package/dist/scripts/src/abstractions/ComponentDefs.js +2 -1
  10. package/dist/scripts/src/components/Accordion/Accordion.js +14 -14
  11. package/dist/scripts/src/components/App/App.js +3 -3
  12. package/dist/scripts/src/components/App/AppNative.js +2 -2
  13. package/dist/scripts/src/components/AppHeader/AppHeader.js +6 -3
  14. package/dist/scripts/src/components/AutoComplete/AutoComplete.js +19 -19
  15. package/dist/scripts/src/components/Avatar/Avatar.js +7 -7
  16. package/dist/scripts/src/components/Badge/Badge.js +8 -8
  17. package/dist/scripts/src/components/Button/Button.js +79 -79
  18. package/dist/scripts/src/components/Card/Card.js +5 -5
  19. package/dist/scripts/src/components/Carousel/Carousel.js +18 -15
  20. package/dist/scripts/src/components/Checkbox/Checkbox.js +14 -14
  21. package/dist/scripts/src/components/ComponentProvider.js +2 -1
  22. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +1 -1
  23. package/dist/scripts/src/components/DatePicker/DatePicker.js +9 -9
  24. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +17 -17
  25. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +3 -3
  26. package/dist/scripts/src/components/Footer/Footer.js +5 -5
  27. package/dist/scripts/src/components/Form/Form.js +16 -16
  28. package/dist/scripts/src/components/FormItem/FormItem.js +5 -5
  29. package/dist/scripts/src/components/Heading/Heading.js +22 -28
  30. package/dist/scripts/src/components/Heading/HeadingNative.js +2 -1
  31. package/dist/scripts/src/components/HtmlTags/HtmlTags.js +68 -31
  32. package/dist/scripts/src/components/IconRegistryContext.js +243 -242
  33. package/dist/scripts/src/components/Link/Link.js +22 -19
  34. package/dist/scripts/src/components/List/ListNative.js +53 -39
  35. package/dist/scripts/src/components/Markdown/Markdown.js +6 -6
  36. package/dist/scripts/src/components/Markdown/MarkdownNative.js +73 -17
  37. package/dist/scripts/src/components/ModalDialog/ModalDialog.js +2 -2
  38. package/dist/scripts/src/components/NavGroup/NavGroup.js +3 -3
  39. package/dist/scripts/src/components/NavLink/NavLink.js +26 -23
  40. package/dist/scripts/src/components/NavPanel/NavPanel.js +8 -8
  41. package/dist/scripts/src/components/NoResult/NoResult.js +2 -2
  42. package/dist/scripts/src/components/OffCanvas/OffCanvas.js +5 -5
  43. package/dist/scripts/src/components/ProgressBar/ProgressBar.js +4 -4
  44. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +18 -18
  45. package/dist/scripts/src/components/Select/Select.js +21 -21
  46. package/dist/scripts/src/components/Select/SelectNative.js +16 -15
  47. package/dist/scripts/src/components/Slider/Slider.js +11 -11
  48. package/dist/scripts/src/components/Spinner/Spinner.js +2 -2
  49. package/dist/scripts/src/components/Splitter/Splitter.js +1 -1
  50. package/dist/scripts/src/components/StickyBox/StickyBox.js +1 -1
  51. package/dist/scripts/src/components/Switch/Switch.js +18 -18
  52. package/dist/scripts/src/components/Table/Table.js +29 -29
  53. package/dist/scripts/src/components/TableOfContents/TableOfContents.js +27 -27
  54. package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +2 -1
  55. package/dist/scripts/src/components/Tabs/Tabs.js +12 -12
  56. package/dist/scripts/src/components/Text/Text.js +60 -61
  57. package/dist/scripts/src/components/TextBox/TextBox.js +17 -17
  58. package/dist/scripts/src/components/Theme/ThemeNative.js +1 -1
  59. package/dist/scripts/src/components-core/descriptorHelper.js +7 -7
  60. package/dist/scripts/src/components-core/theming/layout-resolver.js +26 -26
  61. package/dist/scripts/src/components-core/theming/themes/base-utils.js +7 -23
  62. package/dist/scripts/src/components-core/theming/themes/root.js +101 -114
  63. package/dist/scripts/src/components-core/theming/themes/solid.js +3 -3
  64. package/dist/scripts/src/components-core/theming/themes/xmlui.js +4 -4
  65. package/dist/scripts/src/components-core/theming/transformThemeVars.js +189 -189
  66. package/dist/scripts/src/components-core/utils/hooks.js +2 -2
  67. package/dist/scripts/src/parsers/scripting/Parser.js +2 -2
  68. package/dist/style.css +1 -1
  69. package/dist/xmlui-metadata.mjs +8534 -8204
  70. package/dist/xmlui-metadata.umd.js +11 -11
  71. package/dist/xmlui-parser.d.ts +1 -0
  72. package/dist/xmlui-parser.mjs +53 -52
  73. package/dist/xmlui-standalone.umd.js +174 -174
  74. package/dist/xmlui.d.ts +5 -4
  75. package/dist/xmlui.mjs +13 -12
  76. package/package.json +11 -5
  77. package/dist/index-lMqf6HyK.mjs +0 -27841
  78. package/dist/lint-DgP_MIP6.mjs +0 -5645
  79. package/dist/scripts/bin/language-server.js +0 -11
  80. package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
  81. package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
  82. package/dist/scripts/src/language-server/metadata.js +0 -8206
  83. package/dist/scripts/src/language-server/server.js +0 -135
  84. package/dist/scripts/src/language-server/services/completion.js +0 -100
  85. package/dist/scripts/src/language-server/services/hover.js +0 -170
  86. package/dist/scripts/src/language-server/services/syntax-node-utilities.js +0 -22
  87. package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
  88. package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -177
  89. package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
  90. package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
@@ -379,6 +379,7 @@ declare type ComponentMetadata<TProps extends Record<string, ComponentPropertyMe
379
379
  nonVisual?: boolean;
380
380
  opaque?: boolean;
381
381
  themeVars?: Array<string>;
382
+ themeVarDescriptions?: Record<string, string>;
382
383
  defaultThemeVars?: DefaultThemeVars;
383
384
  toneSpecificThemeVars?: Record<string, Record<string, string>>;
384
385
  allowArbitraryProps?: boolean;
@@ -1,7 +1,8 @@
1
- import { K as A } from "./lint-DgP_MIP6.mjs";
2
- import { ag as $, M as v, a2 as j, _ as O, Y as P, a1 as T, X as V, $ as L, O as I, a0 as w, Z as z, U as M, R as Q, W as k, Q as B, D as R, E as F, a4 as K, C as W, a7 as H, S as q, ae as G, A as Y, z as Z, a9 as J, n as ee, N as te, a8 as re, aj as ae, B as se, ad as ie, aa as ne, ac as le, ab as ce, a5 as de, F as me, H as he, a3 as ue, p as fe, af as oe, a6 as pe, G as Ee, ai as Ne, ah as ye } from "./lint-DgP_MIP6.mjs";
1
+ import { C as v, o as $, k as j, i as O, n as P, h as T, l as V, a as L, m as I, j as w, f as z, e as k, g as M, b as Q, D as B, E as R, S as F, q as K, c as W, d as q, x as H, u as J, r as G, t as Y, s as Z, p as ee, w as te, v as re } from "./parser-Bko8vvFS.mjs";
2
+ import { H as A } from "./lint-BN6SMVda.mjs";
3
+ import { Q as se, J as ie, B as ne, M as le, U as ce, z as de, y as me, N as he, A as ue, K as fe, C as oe, E as pe, I as Ee, n as ye, O as Ne, D as ge } from "./lint-BN6SMVda.mjs";
3
4
  const p = /[\r\n<>'"&]/;
4
- class D {
5
+ class U {
5
6
  /**
6
7
  * Serialize the specified XML fragment into a string
7
8
  * @param xml XML fragment to serialize
@@ -31,9 +32,9 @@ class D {
31
32
  return `${n(d)}<!--${i.text}-->`;
32
33
  }
33
34
  function h(i, d) {
34
- var y, g;
35
- let l = `${n(d)}<${N()}`;
36
- const E = (((y = i.attributes) == null ? void 0 : y.length) ?? 0) > 0, o = (((g = i.childNodes) == null ? void 0 : g.length) ?? 0) > 0;
35
+ var N, g;
36
+ let l = `${n(d)}<${y()}`;
37
+ const E = (((N = i.attributes) == null ? void 0 : N.length) ?? 0) > 0, o = (((g = i.childNodes) == null ? void 0 : g.length) ?? 0) > 0;
37
38
  if (i.text || E || o) {
38
39
  if (E) {
39
40
  const m = i.attributes.map((u) => b(u));
@@ -64,9 +65,9 @@ class D {
64
65
  } else
65
66
  l += ((e == null ? void 0 : e.useSpaceBeforeClose) ?? !1 ? " " : "") + "/>";
66
67
  } else
67
- l += ((e == null ? void 0 : e.useSpaceBeforeClose) ?? !1 ? " " : "") + "/>", i.text === "" && (l += `""</${N()}>`);
68
+ l += ((e == null ? void 0 : e.useSpaceBeforeClose) ?? !1 ? " " : "") + "/>", i.text === "" && (l += `""</${y()}>`);
68
69
  return l;
69
- function N() {
70
+ function y() {
70
71
  return i.namespace ? `${i.namespace}:${i.name}` : i.name;
71
72
  }
72
73
  }
@@ -359,49 +360,49 @@ class D {
359
360
  }
360
361
  export {
361
362
  A as COMPOUND_COMP_ID,
362
- $ as CORE_NAMESPACE_VALUE,
363
+ se as CORE_NAMESPACE_VALUE,
363
364
  v as CharacterCodes,
364
- j as Diag_Attr_Identifier_Expected,
365
- O as Diag_Attr_Value_Expected,
366
- P as Diag_CloseNodeStart_Token_Expected,
367
- T as Diag_End_Or_Close_Token_Expected,
368
- V as Diag_End_Token_Expected,
369
- L as Diag_Eq_Token_Expected,
370
- I as Diag_Invalid_Character,
371
- w as Diag_OpenNodeStart_Token_Expected,
372
- z as Diag_Tag_Identifier_Expected,
373
- M as Diag_Unterminated_CData,
374
- Q as Diag_Unterminated_Comment,
375
- k as Diag_Unterminated_Script,
376
- B as Diag_Unterminated_String_Literal,
377
- R as DiagnosticCategory,
378
- F as ErrCodes,
379
- K as LintDiagKind,
380
- W as LintSeverity,
381
- H as ParserError,
382
- q as SyntaxKind,
383
- G as UCRegex,
384
- D as XmlUiHelper,
385
- Y as codeBehindFileExtension,
386
- Z as componentFileExtension,
387
- J as createScanner,
388
- ee as createXmlUiParser,
389
- te as diagnosticCategoryName,
390
- re as errorMessages,
391
- ae as findTokenAtPos,
392
- se as getLintSeverity,
393
- ie as getSyntaxKindStrRepr,
394
- ne as isIdentifierStart,
395
- le as isInnerNode,
396
- ce as isTrivia,
397
- de as lint,
398
- me as lintApp,
399
- he as lintErrorsComponent,
400
- ue as moduleFileExtension,
401
- fe as nodeToComponentDef,
402
- oe as onPrefixRegex,
403
- pe as parseXmlUiMarkup,
404
- Ee as printComponentLints,
405
- Ne as tagNameNodesWithoutErrorsMatch,
406
- ye as toDbgString
365
+ $ as Diag_Attr_Identifier_Expected,
366
+ j as Diag_Attr_Value_Expected,
367
+ O as Diag_CloseNodeStart_Token_Expected,
368
+ P as Diag_End_Or_Close_Token_Expected,
369
+ T as Diag_End_Token_Expected,
370
+ V as Diag_Eq_Token_Expected,
371
+ L as Diag_Invalid_Character,
372
+ I as Diag_OpenNodeStart_Token_Expected,
373
+ w as Diag_Tag_Identifier_Expected,
374
+ z as Diag_Unterminated_CData,
375
+ k as Diag_Unterminated_Comment,
376
+ M as Diag_Unterminated_Script,
377
+ Q as Diag_Unterminated_String_Literal,
378
+ B as DiagnosticCategory,
379
+ R as ErrCodes,
380
+ ie as LintDiagKind,
381
+ ne as LintSeverity,
382
+ le as ParserError,
383
+ F as SyntaxKind,
384
+ ce as UCRegex,
385
+ U as XmlUiHelper,
386
+ de as codeBehindFileExtension,
387
+ me as componentFileExtension,
388
+ K as createScanner,
389
+ W as createXmlUiParser,
390
+ q as diagnosticCategoryName,
391
+ he as errorMessages,
392
+ H as findTokenAtPos,
393
+ ue as getLintSeverity,
394
+ J as getSyntaxKindStrRepr,
395
+ G as isIdentifierStart,
396
+ Y as isInnerNode,
397
+ Z as isTrivia,
398
+ fe as lint,
399
+ oe as lintApp,
400
+ pe as lintErrorsComponent,
401
+ Ee as moduleFileExtension,
402
+ ye as nodeToComponentDef,
403
+ Ne as onPrefixRegex,
404
+ ee as parseXmlUiMarkup,
405
+ ge as printComponentLints,
406
+ te as tagNameNodesWithoutErrorsMatch,
407
+ re as toDbgString
407
408
  };