xmlui 0.9.66 → 0.9.69

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 (105) hide show
  1. package/dist/lib/{apiInterceptorWorker-DSCdWyUK.mjs → apiInterceptorWorker-UGlauegS.mjs} +1 -1
  2. package/dist/lib/{index-oT3hI265.mjs → index-D4XP6T9c.mjs} +16165 -26197
  3. package/dist/lib/index.css +1 -1
  4. package/dist/lib/xmlui.d.ts +3 -27
  5. package/dist/lib/xmlui.mjs +1 -1
  6. package/dist/metadata/{apiInterceptorWorker-DZEO3I9-.mjs → apiInterceptorWorker-CNbJTzxw.mjs} +1 -1
  7. package/dist/metadata/{collectedComponentMetadata-BrcObxPh.mjs → collectedComponentMetadata-BJTdYg2J.mjs} +18207 -27024
  8. package/dist/metadata/style.css +1 -1
  9. package/dist/metadata/xmlui-metadata.mjs +1 -1
  10. package/dist/metadata/xmlui-metadata.umd.js +130 -137
  11. package/dist/scripts/package.json +7 -4
  12. package/dist/scripts/src/components/APICall/APICall.js +9 -8
  13. package/dist/scripts/src/components/Accordion/AccordionItem.js +1 -0
  14. package/dist/scripts/src/components/App/App.js +1 -1
  15. package/dist/scripts/src/components/App/AppNative.js +10 -7
  16. package/dist/scripts/src/components/App/LinkInfoContext.js +9 -0
  17. package/dist/scripts/src/components/AppState/AppState.js +1 -0
  18. package/dist/scripts/src/components/AutoComplete/AutoComplete.js +2 -2
  19. package/dist/scripts/src/components/Avatar/Avatar.js +1 -0
  20. package/dist/scripts/src/components/Bookmark/Bookmark.js +1 -0
  21. package/dist/scripts/src/components/Breakout/Breakout.js +1 -0
  22. package/dist/scripts/src/components/Button/Button.js +1 -1
  23. package/dist/scripts/src/components/Card/Card.js +1 -0
  24. package/dist/scripts/src/components/Carousel/CarouselItem.js +3 -1
  25. package/dist/scripts/src/components/ChangeListener/ChangeListener.js +1 -0
  26. package/dist/scripts/src/components/Charts/BarChart/BarChart.js +1 -1
  27. package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +2 -2
  28. package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +1 -1
  29. package/dist/scripts/src/components/Charts/LabelList/LabelList.js +1 -1
  30. package/dist/scripts/src/components/Charts/Legend/Legend.js +1 -1
  31. package/dist/scripts/src/components/Charts/LineChart/LineChart.js +1 -1
  32. package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +2 -2
  33. package/dist/scripts/src/components/Charts/PieChart/PieChart.js +1 -1
  34. package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +2 -2
  35. package/dist/scripts/src/components/Checkbox/Checkbox.js +9 -6
  36. package/dist/scripts/src/components/CodeBlock/CodeBlock.js +1 -2
  37. package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +2 -25
  38. package/dist/scripts/src/components/CodeBlock/highlight-code.js +102 -69
  39. package/dist/scripts/src/components/ColorPicker/ColorPicker.js +1 -0
  40. package/dist/scripts/src/components/Column/Column.js +1 -0
  41. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +1 -0
  42. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +4 -0
  43. package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +1 -0
  44. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +1 -0
  45. package/dist/scripts/src/components/FlowLayout/FlowLayout.js +1 -0
  46. package/dist/scripts/src/components/Footer/Footer.js +1 -0
  47. package/dist/scripts/src/components/FormItem/FormItem.js +1 -3
  48. package/dist/scripts/src/components/Heading/Heading.js +7 -0
  49. package/dist/scripts/src/components/HelloWorld/HelloWorld.js +1 -1
  50. package/dist/scripts/src/components/HtmlTags/HtmlTags.js +114 -100
  51. package/dist/scripts/src/components/Image/Image.js +1 -0
  52. package/dist/scripts/src/components/Items/Items.js +1 -0
  53. package/dist/scripts/src/components/Link/Link.js +3 -2
  54. package/dist/scripts/src/components/List/ListNative.js +1 -1
  55. package/dist/scripts/src/components/Markdown/Markdown.js +1 -0
  56. package/dist/scripts/src/components/ModalDialog/ModalDialog.js +1 -0
  57. package/dist/scripts/src/components/NavGroup/NavGroup.js +1 -0
  58. package/dist/scripts/src/components/NavLink/NavLink.js +1 -0
  59. package/dist/scripts/src/components/NavPanel/NavPanel.js +9 -2
  60. package/dist/scripts/src/components/NavPanel/NavPanelNative.js +10 -9
  61. package/dist/scripts/src/components/NestedApp/AppWithCodeView.js +1 -1
  62. package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +5 -5
  63. package/dist/scripts/src/components/NestedApp/NestedApp.js +3 -2
  64. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +15 -5
  65. package/dist/scripts/src/components/NoResult/NoResult.js +1 -0
  66. package/dist/scripts/src/components/Option/Option.js +7 -1
  67. package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +1 -0
  68. package/dist/scripts/src/components/Pages/Pages.js +1 -0
  69. package/dist/scripts/src/components/Pages/PagesNative.js +0 -5
  70. package/dist/scripts/src/components/ProgressBar/ProgressBar.js +1 -0
  71. package/dist/scripts/src/components/Queue/Queue.js +1 -0
  72. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +1 -0
  73. package/dist/scripts/src/components/Redirect/Redirect.js +1 -0
  74. package/dist/scripts/src/components/Select/HiddenOption.js +1 -1
  75. package/dist/scripts/src/components/Select/Select.js +2 -2
  76. package/dist/scripts/src/components/Select/SelectNative.js +15 -9
  77. package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +1 -0
  78. package/dist/scripts/src/components/Spinner/Spinner.js +1 -0
  79. package/dist/scripts/src/components/Splitter/Splitter.js +1 -0
  80. package/dist/scripts/src/components/Stack/Stack.js +1 -0
  81. package/dist/scripts/src/components/Switch/Switch.js +3 -2
  82. package/dist/scripts/src/components/Table/Table.js +1 -0
  83. package/dist/scripts/src/components/TableEditor/TableEditor.js +1 -1
  84. package/dist/scripts/src/components/TableOfContents/TableOfContents.js +1 -1
  85. package/dist/scripts/src/components/Tabs/TabItem.js +1 -0
  86. package/dist/scripts/src/components/Tabs/TabItemNative.js +1 -2
  87. package/dist/scripts/src/components/Tabs/Tabs.js +1 -5
  88. package/dist/scripts/src/components/Text/Text.js +5 -2
  89. package/dist/scripts/src/components/Theme/Theme.js +1 -0
  90. package/dist/scripts/src/components/Toggle/Toggle.js +11 -8
  91. package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +62 -3
  92. package/dist/scripts/src/components-core/Fragment.js +1 -0
  93. package/dist/scripts/src/components-core/XmluiCodeHighlighter.js +3 -1
  94. package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +13 -7
  95. package/dist/scripts/src/components-core/loader/ApiLoader.js +1 -0
  96. package/dist/scripts/src/components-core/loader/DataLoader.js +1 -0
  97. package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +1 -0
  98. package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +1 -0
  99. package/dist/scripts/src/components-core/rendering/AppContent.js +9 -0
  100. package/dist/scripts/src/components-core/rendering/StateContainer.js +11 -7
  101. package/dist/scripts/src/components-core/theming/themes/root.js +1 -1
  102. package/dist/standalone/xmlui-standalone.es.d.ts +3 -27
  103. package/dist/standalone/xmlui-standalone.umd.js +239 -239
  104. package/package.json +7 -4
  105. package/dist/scripts/src/components/ValidationSummary/ValidationSummaryNative.js +0 -64
@@ -46,7 +46,7 @@ export declare type ApiInterceptorDefinition = {
46
46
  auth?: AuthDefinition;
47
47
  };
48
48
 
49
- export declare function ApiInterceptorProvider({ interceptor, children, apiWorker, useHashBasedRouting, waitForApiInterceptor }: {
49
+ export declare function ApiInterceptorProvider({ interceptor, children, apiWorker, useHashBasedRouting, waitForApiInterceptor, }: {
50
50
  interceptor?: ApiInterceptorDefinition;
51
51
  children: ReactNode;
52
52
  apiWorker?: SetupWorker;
@@ -738,6 +738,7 @@ declare type GlobalProps = Record<string, any>;
738
738
  declare interface IApiInterceptorContext {
739
739
  isMocked: (url: string) => boolean;
740
740
  initialized: boolean;
741
+ forceInitialize: () => void;
741
742
  interceptorWorker: SetupWorker | null;
742
743
  }
743
744
 
@@ -760,8 +761,6 @@ declare interface IAppLayoutContext {
760
761
  scrollWholePage?: boolean;
761
762
  isFullVerticalWidth?: boolean;
762
763
  isNested?: boolean;
763
- linkMap?: Map<string, NavHierarchyNode>;
764
- registerLinkMap?: (linkMap: Map<string, NavHierarchyNode>) => void;
765
764
  }
766
765
 
767
766
  export declare const Icon: default_2.ForwardRefExoticComponent<IconBaseProps & default_2.RefAttributes<unknown>>;
@@ -916,29 +915,6 @@ declare type Message = ValueOrFunction<Renderable, Toast>;
916
915
  */
917
916
  declare type ModuleErrors = Record<string, ScriptParserErrorMessage[]>;
918
917
 
919
- declare interface NavHierarchyNode {
920
- /** The type of navigation node - either a clickable link or a grouping container */
921
- type: "NavLink" | "NavGroup";
922
- /** The display label/text for this navigation item */
923
- label: string;
924
- /** The URL/route path for navigation (only present for NavLink types) */
925
- to?: string;
926
- /** Child navigation nodes nested under this node (only present for NavGroup types) */
927
- children?: NavHierarchyNode[];
928
- /** Reference to the immediate parent node in the hierarchy (undefined for root-level nodes) */
929
- parent?: NavHierarchyNode;
930
- /** Array of ancestor nodes from root to this node, excluding this node itself (empty for root-level nodes) */
931
- pathSegments?: NavHierarchyNode[];
932
- /** Reference to the previous NavLink in the flattened navigation order */
933
- prevLink?: NavHierarchyNode;
934
- /** Reference to the next NavLink in the flattened navigation order */
935
- nextLink?: NavHierarchyNode;
936
- /** True if this is the first NavLink within its immediate parent container */
937
- firstLink?: boolean;
938
- /** True if this is the last NavLink within its immediate parent container */
939
- lastLink?: boolean;
940
- }
941
-
942
918
  export declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, popOutUrl, withFrame, noHeader, style, refVersion, }: NestedAppProps): JSX_2.Element;
943
919
 
944
920
  declare type NestedAppProps = {
@@ -1218,7 +1194,7 @@ export declare const Stack: ForwardRefExoticComponent<Props_2 & RefAttributes<an
1218
1194
  * representation); ApiInterceptor can emulate some backend functionality
1219
1195
  * running in the browser.
1220
1196
  */
1221
- export declare function StandaloneApp({ appDef, decorateComponentsWithTestId, debugEnabled, runtime, extensionManager, }: StandaloneAppProps): JSX_2.Element;
1197
+ export declare function StandaloneApp({ appDef, decorateComponentsWithTestId, debugEnabled, runtime, extensionManager, waitForApiInterceptor, }: StandaloneAppProps): JSX_2.Element;
1222
1198
 
1223
1199
  export declare type StandaloneAppDescription = {
1224
1200
  name?: string;
@@ -1,4 +1,4 @@
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-oT3hI265.mjs";
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-D4XP6T9c.mjs";
2
2
  import { X as q } from "./xmlui-serializer-jEIItW8v.mjs";
3
3
  export {
4
4
  e as ApiInterceptorProvider,
@@ -7,7 +7,7 @@ var F = (e, a, o) => Go(e, typeof a != "symbol" ? a + "" : a, o), ka = (e, a, o)
7
7
  var ge = (e, a, o) => (ka(e, a, "read from private field"), o ? o.call(e) : a.get(e)), _e = (e, a, o) => a.has(e) ? Wa("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, o), fa = (e, a, o, t) => (ka(e, a, "write to private field"), t ? t.call(e, o) : a.set(e, o), o), ze = (e, a, o) => (ka(e, a, "access private method"), o);
8
8
  import { delay as Ho, HttpResponse as Be, http as Vo } from "msw";
9
9
  import { isArray as co, isObject as lo, mapValues as Jo } from "lodash-es";
10
- import { r as Xo, g as Ko, d as Yo, m as Qo, a as Zo, o as ba, T as et } from "./collectedComponentMetadata-BrcObxPh.mjs";
10
+ import { r as Xo, g as Ko, d as Yo, m as Qo, a as Zo, o as ba, T as et } from "./collectedComponentMetadata-BJTdYg2J.mjs";
11
11
  import Ga from "dexie";
12
12
  var at = /(%?)(%([sdijo]))/g;
13
13
  function ot(e, a) {