xmlui 0.9.51 → 0.9.53
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/{apiInterceptorWorker-BtGYrMWj.mjs → apiInterceptorWorker-CZW6DSTB.mjs} +3 -3
- package/dist/lib/{index-hS5S81ba.mjs → index-qpGKk07J.mjs} +13827 -12206
- package/dist/lib/index.css +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-QekhOD-W.mjs → metadata-utils-4EQ6kQIM.mjs} +7 -7
- package/dist/lib/{server-common-CtY73qos.mjs → server-common-SNl_47nE.mjs} +2 -2
- package/dist/lib/{transform-DXcw0gGl.mjs → transform-CgRMkbb0.mjs} +1472 -1440
- package/dist/lib/xmlui-parser.d.ts +84 -62
- package/dist/lib/xmlui-parser.mjs +41 -49
- package/dist/lib/{xmlui-serializer-CAZCkpXP.mjs → xmlui-serializer-EDw51UFN.mjs} +10 -10
- package/dist/lib/xmlui.d.ts +17 -7
- package/dist/lib/xmlui.mjs +19 -18
- package/dist/metadata/apiInterceptorWorker-CC40OeUC.mjs +15414 -0
- package/dist/metadata/collectedComponentMetadata-C5DVNC6p.mjs +41262 -0
- package/dist/metadata/core-D3puiNN6.mjs +5771 -0
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/wasm-DQxwEHae.mjs +7 -0
- package/dist/metadata/xmlui-metadata.mjs +3 -18398
- package/dist/metadata/xmlui-metadata.umd.js +549 -10
- package/dist/scripts/package.json +5 -6
- package/dist/scripts/src/components/APICall/APICall.js +13 -12
- package/dist/scripts/src/components/APICall/APICallNative.js +5 -0
- package/dist/scripts/src/components/Accordion/Accordion.js +4 -2
- package/dist/scripts/src/components/Accordion/AccordionItem.js +2 -2
- package/dist/scripts/src/components/Accordion/AccordionItemNative.js +6 -2
- package/dist/scripts/src/components/App/App.js +22 -9
- package/dist/scripts/src/components/App/AppNative.js +9 -1
- package/dist/scripts/src/components/AppHeader/AppHeader.js +2 -2
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +5 -2
- package/dist/scripts/src/components/AppState/AppState.js +2 -2
- package/dist/scripts/src/components/AppState/AppStateNative.js +5 -1
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +8 -8
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +16 -2
- package/dist/scripts/src/components/Avatar/Avatar.js +4 -2
- package/dist/scripts/src/components/Backdrop/Backdrop.js +2 -2
- package/dist/scripts/src/components/Badge/Badge.js +7 -5
- package/dist/scripts/src/components/Bookmark/Bookmark.js +5 -4
- package/dist/scripts/src/components/Card/Card.js +6 -4
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +2 -1
- package/dist/scripts/src/components/Charts/BarChart/BarChart.js +76 -0
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +108 -0
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +59 -0
- package/dist/scripts/src/components/Charts/LabelList/LabelList.js +38 -0
- package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +24 -0
- package/dist/scripts/src/components/Charts/Legend/Legend.js +30 -0
- package/dist/scripts/src/components/Charts/Legend/LegendNative.js +64 -0
- package/dist/scripts/src/components/Charts/LineChart/LineChart.js +53 -0
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +103 -0
- package/dist/scripts/src/components/Charts/PieChart/PieChart.js +58 -0
- package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +127 -0
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.js +27 -0
- package/dist/scripts/src/components/Charts/utils/ChartProvider.js +65 -0
- package/dist/scripts/src/components/Charts/utils/abstractions.js +26 -0
- package/dist/scripts/src/components/CodeBlock/CodeBlock.js +4 -4
- package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +5 -1
- package/dist/scripts/src/components/Column/Column.js +15 -9
- package/dist/scripts/src/components/Column/ColumnNative.js +5 -0
- package/dist/scripts/src/components/ComponentProvider.js +14 -6
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +4 -3
- package/dist/scripts/src/components/DatePicker/DatePicker.js +5 -3
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +1 -1
- package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +7 -2
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +88 -0
- package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +91 -0
- package/dist/scripts/src/components/FileInput/FileInput.js +8 -9
- package/dist/scripts/src/components/FileInput/FileInputNative.js +14 -2
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +2 -2
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +9 -2
- package/dist/scripts/src/components/Footer/Footer.js +1 -0
- package/dist/scripts/src/components/Footer/FooterNative.js +4 -1
- package/dist/scripts/src/components/Form/Form.js +9 -5
- package/dist/scripts/src/components/Form/FormNative.js +2 -1
- package/dist/scripts/src/components/FormItem/FormItem.js +25 -15
- package/dist/scripts/src/components/FormItem/FormItemNative.js +1 -0
- package/dist/scripts/src/components/Heading/Heading.js +12 -6
- package/dist/scripts/src/components/Heading/HeadingNative.js +7 -0
- package/dist/scripts/src/components/Icon/Icon.js +7 -5
- package/dist/scripts/src/components/Image/Image.js +19 -9
- package/dist/scripts/src/components/Image/ImageNative.js +7 -2
- package/dist/scripts/src/components/Items/Items.js +2 -0
- package/dist/scripts/src/components/Items/ItemsNative.js +5 -1
- package/dist/scripts/src/components/Link/Link.js +3 -4
- package/dist/scripts/src/components/Link/LinkNative.js +6 -2
- package/dist/scripts/src/components/List/List.js +12 -11
- package/dist/scripts/src/components/List/ListNative.js +10 -2
- package/dist/scripts/src/components/Logo/Logo.js +7 -0
- package/dist/scripts/src/components/Logo/LogoNative.js +6 -2
- package/dist/scripts/src/components/Markdown/Markdown.js +5 -4
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +64 -21
- package/dist/scripts/src/components/Markdown/utils.js +23 -1
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +2 -2
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +7 -2
- package/dist/scripts/src/components/NavGroup/NavGroup.js +2 -1
- package/dist/scripts/src/components/NavLink/NavLink.js +5 -7
- package/dist/scripts/src/components/NavLink/NavLinkNative.js +7 -2
- package/dist/scripts/src/components/NavPanel/NavPanel.js +6 -0
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +6 -2
- package/dist/scripts/src/components/NestedApp/NestedApp.js +16 -4
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +37 -34
- package/dist/scripts/src/components/NestedApp/defaultProps.js +10 -0
- package/dist/scripts/src/components/NoResult/NoResult.js +6 -2
- package/dist/scripts/src/components/NoResult/NoResultNative.js +8 -3
- package/dist/scripts/src/components/NumberBox/NumberBox.js +8 -6
- package/dist/scripts/src/components/NumberBox/NumberBox2.js +6 -6
- package/dist/scripts/src/components/NumberBox/NumberBox2Native.js +15 -2
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +16 -2
- package/dist/scripts/src/components/Option/Option.js +10 -15
- package/dist/scripts/src/components/Option/OptionNative.js +18 -0
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +6 -2
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +4 -1
- package/dist/scripts/src/components/Pages/Pages.js +7 -3
- package/dist/scripts/src/components/Pages/PagesNative.js +5 -0
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +5 -2
- package/dist/scripts/src/components/Queue/Queue.js +11 -6
- package/dist/scripts/src/components/Queue/QueueNative.js +7 -1
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +5 -5
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +9 -2
- package/dist/scripts/src/components/RadioGroup/RadioItem.js +8 -2
- package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +6 -2
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +4 -1
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +4 -0
- package/dist/scripts/src/components/Redirect/Redirect.js +8 -2
- package/dist/scripts/src/components/Select/Select.js +21 -12
- package/dist/scripts/src/components/Select/SelectNative.js +15 -2
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +6 -3
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +6 -2
- package/dist/scripts/src/components/Slider/Slider.js +28 -9
- package/dist/scripts/src/components/Slider/SliderNative.js +14 -3
- package/dist/scripts/src/components/Spinner/Spinner.js +2 -2
- package/dist/scripts/src/components/Spinner/SpinnerNative.js +6 -2
- package/dist/scripts/src/components/Splitter/Splitter.js +6 -6
- package/dist/scripts/src/components/Splitter/SplitterNative.js +10 -2
- package/dist/scripts/src/components/Stack/Stack.js +4 -4
- package/dist/scripts/src/components/Stack/StackNative.js +8 -2
- package/dist/scripts/src/components/StickyBox/StickyBox.js +1 -1
- package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +7 -1
- package/dist/scripts/src/components/Table/Table.js +15 -14
- package/dist/scripts/src/components/Table/TableNative.js +25 -9
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +12 -3
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +6 -2
- package/dist/scripts/src/components/Tabs/Tabs.js +2 -2
- package/dist/scripts/src/components/Tabs/TabsNative.js +7 -2
- package/dist/scripts/src/components/Text/Text.js +14 -13
- package/dist/scripts/src/components/Text/TextNative.js +7 -2
- package/dist/scripts/src/components/TextArea/TextArea.js +8 -5
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +19 -2
- package/dist/scripts/src/components/TextBox/TextBox.js +5 -4
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +14 -2
- package/dist/scripts/src/components/Theme/Theme.js +1 -1
- package/dist/scripts/src/components/Theme/ThemeNative.js +10 -14
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +18 -8
- package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +1 -1
- package/dist/scripts/src/components/TreeDisplay/TreeDisplayNative.js +2 -1
- package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +3 -57
- package/dist/scripts/src/components/ValidationSummary/ValidationSummaryNative.js +64 -0
- package/dist/scripts/src/components/metadata-helpers.js +11 -8
- package/dist/scripts/src/components-core/InspectorContext.js +2 -7
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +1 -1
- package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +6 -2
- package/dist/scripts/src/components-core/loader/DataLoader.js +1 -1
- package/dist/scripts/src/components-core/loader/Loader.js +7 -3
- package/dist/scripts/src/components-core/theming/themes/palette.js +5 -4
- package/dist/scripts/src/components-core/theming/themes/root.js +5 -4
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +1 -17
- package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +92 -48
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +179 -189
- package/dist/standalone/xmlui-standalone.es.d.ts +235 -223
- package/dist/standalone/xmlui-standalone.umd.js +288 -316
- package/package.json +5 -6
|
@@ -54,61 +54,6 @@ declare type AlignmentOptions = (typeof alignmentOptionValues)[number];
|
|
|
54
54
|
|
|
55
55
|
declare const alignmentOptionValues: readonly ["start", "center", "end"];
|
|
56
56
|
|
|
57
|
-
declare namespace all {
|
|
58
|
-
export {
|
|
59
|
-
ThemeDefinition,
|
|
60
|
-
ComponentDef,
|
|
61
|
-
ComponentRendererDef,
|
|
62
|
-
CompoundComponentDef,
|
|
63
|
-
ComponentLike,
|
|
64
|
-
StandaloneAppDescription,
|
|
65
|
-
StandaloneJsonConfig,
|
|
66
|
-
ApiInterceptorDefinition,
|
|
67
|
-
RegisterComponentApiFn,
|
|
68
|
-
TreeNode,
|
|
69
|
-
RendererContext,
|
|
70
|
-
ComponentMetadata,
|
|
71
|
-
ThemeTone,
|
|
72
|
-
XmlUiNode,
|
|
73
|
-
StandaloneApp,
|
|
74
|
-
StandaloneExtensionManager,
|
|
75
|
-
createComponentRenderer,
|
|
76
|
-
createMetadata,
|
|
77
|
-
d,
|
|
78
|
-
parseScssVar,
|
|
79
|
-
startApp,
|
|
80
|
-
useTheme,
|
|
81
|
-
AppRoot,
|
|
82
|
-
ErrorBoundary,
|
|
83
|
-
Icon,
|
|
84
|
-
Stack,
|
|
85
|
-
Button,
|
|
86
|
-
Splitter,
|
|
87
|
-
getColor,
|
|
88
|
-
TabItemComponent as TabItem,
|
|
89
|
-
Tabs,
|
|
90
|
-
useColors,
|
|
91
|
-
toCssVar,
|
|
92
|
-
useDevTools,
|
|
93
|
-
useLogger,
|
|
94
|
-
errReportComponent,
|
|
95
|
-
xmlUiMarkupToComponent,
|
|
96
|
-
ApiInterceptorProvider,
|
|
97
|
-
Spinner,
|
|
98
|
-
builtInThemes,
|
|
99
|
-
XmlUiHelper,
|
|
100
|
-
Text_2 as Text,
|
|
101
|
-
TextBox,
|
|
102
|
-
NestedApp,
|
|
103
|
-
VisuallyHidden,
|
|
104
|
-
LinkNative,
|
|
105
|
-
ToneChangerButton,
|
|
106
|
-
Logo,
|
|
107
|
-
useSearchContextContent,
|
|
108
|
-
useAppLayoutContext
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
57
|
declare type ApiInterceptorDefinition = {
|
|
113
58
|
type?: string;
|
|
114
59
|
config?: Record<string, any>;
|
|
@@ -527,6 +472,8 @@ declare interface CalculatedMemberAccessExpression extends ExpressionBase {
|
|
|
527
472
|
member: Expression;
|
|
528
473
|
}
|
|
529
474
|
|
|
475
|
+
declare type callbackType = (...args: Array<any>) => any;
|
|
476
|
+
|
|
530
477
|
declare type CodeDeclaration = {
|
|
531
478
|
source?: string;
|
|
532
479
|
tree: Expression;
|
|
@@ -866,167 +813,6 @@ declare function createMetadata<TProps extends Record<string, ComponentPropertyM
|
|
|
866
813
|
|
|
867
814
|
declare function d(description: string, availableValues?: readonly PropertyValueDescription[], valueType?: PropertyValueType, defaultValue?: any, isValid?: IsValidFunction<any>, isRequired?: boolean): ComponentPropertyMetadata;
|
|
868
815
|
|
|
869
|
-
declare const _default: {
|
|
870
|
-
standalone: StandaloneExtensionManager;
|
|
871
|
-
StandaloneApp: typeof all.StandaloneApp;
|
|
872
|
-
StandaloneExtensionManager: typeof StandaloneExtensionManager;
|
|
873
|
-
createComponentRenderer: typeof all.createComponentRenderer;
|
|
874
|
-
createMetadata: typeof all.createMetadata;
|
|
875
|
-
d: typeof all.d;
|
|
876
|
-
parseScssVar: typeof all.parseScssVar;
|
|
877
|
-
startApp: typeof startApp;
|
|
878
|
-
useTheme: typeof all.useTheme;
|
|
879
|
-
AppRoot: typeof all.AppRoot;
|
|
880
|
-
ErrorBoundary: typeof all.ErrorBoundary;
|
|
881
|
-
Icon: default_2.ForwardRefExoticComponent<IconBaseProps & default_2.RefAttributes<unknown>>;
|
|
882
|
-
Stack: default_2.ForwardRefExoticComponent<{
|
|
883
|
-
children: default_2.ReactNode;
|
|
884
|
-
orientation?: string;
|
|
885
|
-
uid?: string;
|
|
886
|
-
horizontalAlignment?: string;
|
|
887
|
-
verticalAlignment?: string;
|
|
888
|
-
style?: default_2.CSSProperties;
|
|
889
|
-
reverse?: boolean;
|
|
890
|
-
hoverContainer?: boolean;
|
|
891
|
-
visibleOnHover?: boolean;
|
|
892
|
-
onClick?: any;
|
|
893
|
-
onMount?: any;
|
|
894
|
-
} & default_2.RefAttributes<any>>;
|
|
895
|
-
Button: default_2.ForwardRefExoticComponent<{
|
|
896
|
-
id?: string;
|
|
897
|
-
type?: "button" | "reset" | "submit";
|
|
898
|
-
variant?: "solid" | "outlined" | "ghost";
|
|
899
|
-
themeColor?: "primary" | "secondary" | "attention";
|
|
900
|
-
size?: string;
|
|
901
|
-
disabled?: boolean;
|
|
902
|
-
children?: default_2.ReactNode | default_2.ReactNode[];
|
|
903
|
-
icon?: default_2.ReactNode;
|
|
904
|
-
iconPosition?: "start" | "end";
|
|
905
|
-
contentPosition?: "center" | "start" | "end";
|
|
906
|
-
orientation?: "vertical" | "horizontal";
|
|
907
|
-
formId?: string;
|
|
908
|
-
style?: default_2.CSSProperties;
|
|
909
|
-
gap?: string | number;
|
|
910
|
-
accessibilityProps?: any;
|
|
911
|
-
autoFocus?: boolean;
|
|
912
|
-
contextualLabel?: string;
|
|
913
|
-
} & Pick<default_2.HTMLAttributes<HTMLButtonElement>, "className" | "aria-disabled" | "aria-label" | "aria-controls" | "aria-expanded" | "onClick" | "onFocus" | "onBlur" | "tabIndex" | "onMouseEnter" | "onMouseLeave"> & default_2.RefAttributes<HTMLButtonElement>>;
|
|
914
|
-
Splitter: ({ initialPrimarySize, minPrimarySize, maxPrimarySize, orientation, children, style, swapped, floating, splitterTemplate, resize, }: {
|
|
915
|
-
children: default_2.ReactNode | default_2.ReactNode[];
|
|
916
|
-
style?: default_2.CSSProperties;
|
|
917
|
-
splitterTemplate?: default_2.ReactNode;
|
|
918
|
-
orientation?: "vertical" | "horizontal";
|
|
919
|
-
floating?: boolean;
|
|
920
|
-
resize?: (sizes: [number, number]) => void;
|
|
921
|
-
swapped?: boolean;
|
|
922
|
-
initialPrimarySize?: string;
|
|
923
|
-
minPrimarySize?: string;
|
|
924
|
-
maxPrimarySize?: string;
|
|
925
|
-
}) => default_3.JSX.Element;
|
|
926
|
-
getColor: typeof all.getColor;
|
|
927
|
-
TabItem: default_2.ForwardRefExoticComponent<Tab & default_2.RefAttributes<HTMLDivElement>>;
|
|
928
|
-
Tabs: default_2.ForwardRefExoticComponent<{
|
|
929
|
-
activeTab?: number;
|
|
930
|
-
orientation?: "vertical" | "horizontal";
|
|
931
|
-
tabRenderer?: (item: {
|
|
932
|
-
label: string;
|
|
933
|
-
isActive: boolean;
|
|
934
|
-
}) => default_2.ReactNode;
|
|
935
|
-
style?: default_2.CSSProperties;
|
|
936
|
-
children?: default_2.ReactNode;
|
|
937
|
-
registerComponentApi?: all.RegisterComponentApiFn;
|
|
938
|
-
className?: string;
|
|
939
|
-
distributeEvenly?: boolean;
|
|
940
|
-
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
941
|
-
useColors: typeof all.useColors;
|
|
942
|
-
toCssVar: typeof all.toCssVar;
|
|
943
|
-
useDevTools: typeof all.useDevTools;
|
|
944
|
-
useLogger: () => {
|
|
945
|
-
logs: {
|
|
946
|
-
timestamp: Date;
|
|
947
|
-
args: any[];
|
|
948
|
-
}[];
|
|
949
|
-
addLog: (args: any[]) => void;
|
|
950
|
-
};
|
|
951
|
-
errReportComponent: typeof all.errReportComponent;
|
|
952
|
-
xmlUiMarkupToComponent: typeof all.xmlUiMarkupToComponent;
|
|
953
|
-
ApiInterceptorProvider: typeof all.ApiInterceptorProvider;
|
|
954
|
-
Spinner: default_2.ForwardRefExoticComponent<{
|
|
955
|
-
delay?: number;
|
|
956
|
-
fullScreen?: boolean;
|
|
957
|
-
style?: default_2.CSSProperties;
|
|
958
|
-
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
959
|
-
builtInThemes: all.ThemeDefinition[];
|
|
960
|
-
XmlUiHelper: typeof all.XmlUiHelper;
|
|
961
|
-
Text: default_2.ForwardRefExoticComponent<Omit<{
|
|
962
|
-
[variantSpecificProps: string]: any;
|
|
963
|
-
uid?: string;
|
|
964
|
-
children?: default_2.ReactNode;
|
|
965
|
-
variant?: "small" | "sub" | "sup" | "abbr" | "caption" | "cite" | "code" | "em" | "strong" | "title" | "var" | "inherit" | "mono" | "secondary" | "codefence" | "deleted" | "inserted" | "keyboard" | "marked" | "sample" | "subtitle" | "placeholder" | "paragraph" | "subheading" | "tableheading";
|
|
966
|
-
maxLines?: number;
|
|
967
|
-
preserveLinebreaks?: boolean;
|
|
968
|
-
ellipses?: boolean;
|
|
969
|
-
style?: default_2.CSSProperties;
|
|
970
|
-
}, "ref"> & default_2.RefAttributes<unknown>>;
|
|
971
|
-
TextBox: default_2.ForwardRefExoticComponent<{
|
|
972
|
-
id?: string;
|
|
973
|
-
type?: "search" | "text" | "password";
|
|
974
|
-
value?: string;
|
|
975
|
-
updateState?: UpdateStateFn;
|
|
976
|
-
initialValue?: string;
|
|
977
|
-
style?: default_2.CSSProperties;
|
|
978
|
-
maxLength?: number;
|
|
979
|
-
enabled?: boolean;
|
|
980
|
-
placeholder?: string;
|
|
981
|
-
validationStatus?: "none" | "error" | "warning" | "valid";
|
|
982
|
-
onDidChange?: (newValue: string) => void;
|
|
983
|
-
onFocus?: () => void;
|
|
984
|
-
onBlur?: () => void;
|
|
985
|
-
onKeyDown?: (event: default_2.KeyboardEvent<HTMLInputElement>) => void;
|
|
986
|
-
registerComponentApi?: all.RegisterComponentApiFn;
|
|
987
|
-
startText?: string;
|
|
988
|
-
startIcon?: string;
|
|
989
|
-
endText?: string;
|
|
990
|
-
endIcon?: string;
|
|
991
|
-
gap?: string;
|
|
992
|
-
autoFocus?: boolean;
|
|
993
|
-
readOnly?: boolean;
|
|
994
|
-
tabIndex?: number;
|
|
995
|
-
label?: string;
|
|
996
|
-
labelPosition?: string;
|
|
997
|
-
labelWidth?: string;
|
|
998
|
-
labelBreak?: boolean;
|
|
999
|
-
required?: boolean;
|
|
1000
|
-
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
1001
|
-
NestedApp: typeof all.NestedApp;
|
|
1002
|
-
VisuallyHidden: ({ children, ...props }: {
|
|
1003
|
-
children: default_2.ReactNode;
|
|
1004
|
-
}) => default_3.JSX.Element;
|
|
1005
|
-
LinkNative: default_2.ForwardRefExoticComponent<{
|
|
1006
|
-
to: string | {
|
|
1007
|
-
pathname: string;
|
|
1008
|
-
queryParams?: Record<string, any>;
|
|
1009
|
-
};
|
|
1010
|
-
children: default_2.ReactNode;
|
|
1011
|
-
icon?: string;
|
|
1012
|
-
active?: boolean;
|
|
1013
|
-
disabled?: boolean;
|
|
1014
|
-
onClick?: () => void;
|
|
1015
|
-
style?: default_2.CSSProperties;
|
|
1016
|
-
} & Partial<Pick<HTMLAnchorElement, "type" | "target" | "rel" | "download" | "ping" | "referrerPolicy" | "hreflang">> & default_2.RefAttributes<HTMLDivElement>>;
|
|
1017
|
-
ToneChangerButton: typeof all.ToneChangerButton;
|
|
1018
|
-
Logo: default_2.ForwardRefExoticComponent<{
|
|
1019
|
-
style?: default_2.CSSProperties;
|
|
1020
|
-
} & default_2.RefAttributes<HTMLImageElement>>;
|
|
1021
|
-
useSearchContextContent: () => Record<string, {
|
|
1022
|
-
path: string;
|
|
1023
|
-
title: string;
|
|
1024
|
-
content: string;
|
|
1025
|
-
}>;
|
|
1026
|
-
useAppLayoutContext: typeof all.useAppLayoutContext;
|
|
1027
|
-
};
|
|
1028
|
-
export default _default;
|
|
1029
|
-
|
|
1030
816
|
declare type DefaultThemeVars = Record<string | ThemeTone, string | Record<string, string>>;
|
|
1031
817
|
|
|
1032
818
|
declare type DefaultValueDescriptor = (string | ThemeIdDescriptor)[];
|
|
@@ -1099,12 +885,14 @@ declare enum ErrCodes {
|
|
|
1099
885
|
expEndOrClose = "U006",
|
|
1100
886
|
tagNameMismatch = "U007",
|
|
1101
887
|
expEnd = "U008",
|
|
1102
|
-
|
|
888
|
+
expAttrName = "U009",
|
|
1103
889
|
expEq = "U010",
|
|
1104
890
|
expAttrValue = "U011",
|
|
1105
891
|
duplAttr = "U012",
|
|
1106
892
|
uppercaseAttr = "U013",
|
|
1107
|
-
|
|
893
|
+
expTagNameAfterNamespace = "U014",
|
|
894
|
+
expCloseStartWithName = "U015",
|
|
895
|
+
expAttrNameAfterNamespace = "U016",
|
|
1108
896
|
invalidChar = "W001",
|
|
1109
897
|
untermStr = "W002",
|
|
1110
898
|
untermComment = "W007",
|
|
@@ -1285,6 +1073,8 @@ declare type GlobalProps = Record<string, any>;
|
|
|
1285
1073
|
|
|
1286
1074
|
declare interface IApiInterceptorContext {
|
|
1287
1075
|
isMocked: (url: string) => boolean;
|
|
1076
|
+
initialized: boolean;
|
|
1077
|
+
interceptorWorker: SetupWorker | null;
|
|
1288
1078
|
}
|
|
1289
1079
|
|
|
1290
1080
|
declare interface IAppLayoutContext {
|
|
@@ -1513,7 +1303,7 @@ declare type Message = ValueOrFunction<Renderable, Toast>;
|
|
|
1513
1303
|
*/
|
|
1514
1304
|
declare type ModuleErrors = Record<string, ScriptParserErrorMessage[]>;
|
|
1515
1305
|
|
|
1516
|
-
declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, withFrame, }: NestedAppProps): JSX_2.Element;
|
|
1306
|
+
declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, withFrame, playgroundId, }: NestedAppProps): JSX_2.Element;
|
|
1517
1307
|
|
|
1518
1308
|
declare type NestedAppProps = {
|
|
1519
1309
|
api?: any;
|
|
@@ -1526,6 +1316,7 @@ declare type NestedAppProps = {
|
|
|
1526
1316
|
height?: string | number;
|
|
1527
1317
|
allowPlaygroundPopup?: boolean;
|
|
1528
1318
|
withFrame?: boolean;
|
|
1319
|
+
playgroundId?: string;
|
|
1529
1320
|
};
|
|
1530
1321
|
|
|
1531
1322
|
declare type NO_ARG_EXPRESSION = typeof T_NO_ARG_EXPRESSION;
|
|
@@ -1859,6 +1650,168 @@ declare type StandaloneAppProps = {
|
|
|
1859
1650
|
extensionManager?: StandaloneExtensionManager;
|
|
1860
1651
|
};
|
|
1861
1652
|
|
|
1653
|
+
declare const standaloneExports: {
|
|
1654
|
+
standalone: StandaloneExtensionManager;
|
|
1655
|
+
StandaloneApp: typeof xmluiExports.StandaloneApp;
|
|
1656
|
+
StandaloneExtensionManager: typeof StandaloneExtensionManager;
|
|
1657
|
+
createComponentRenderer: typeof xmluiExports.createComponentRenderer;
|
|
1658
|
+
createMetadata: typeof xmluiExports.createMetadata;
|
|
1659
|
+
d: typeof xmluiExports.d;
|
|
1660
|
+
parseScssVar: typeof xmluiExports.parseScssVar;
|
|
1661
|
+
startApp: typeof startApp;
|
|
1662
|
+
useTheme: typeof xmluiExports.useTheme;
|
|
1663
|
+
AppRoot: typeof xmluiExports.AppRoot;
|
|
1664
|
+
ErrorBoundary: typeof xmluiExports.ErrorBoundary;
|
|
1665
|
+
Icon: default_2.ForwardRefExoticComponent<IconBaseProps & default_2.RefAttributes<unknown>>;
|
|
1666
|
+
Stack: default_2.ForwardRefExoticComponent<{
|
|
1667
|
+
children: default_2.ReactNode;
|
|
1668
|
+
orientation?: string;
|
|
1669
|
+
uid?: string;
|
|
1670
|
+
horizontalAlignment?: string;
|
|
1671
|
+
verticalAlignment?: string;
|
|
1672
|
+
style?: default_2.CSSProperties;
|
|
1673
|
+
reverse?: boolean;
|
|
1674
|
+
hoverContainer?: boolean;
|
|
1675
|
+
visibleOnHover?: boolean;
|
|
1676
|
+
onClick?: any;
|
|
1677
|
+
onMount?: any;
|
|
1678
|
+
} & default_2.RefAttributes<any>>;
|
|
1679
|
+
Button: default_2.ForwardRefExoticComponent<{
|
|
1680
|
+
id?: string;
|
|
1681
|
+
type?: "button" | "reset" | "submit";
|
|
1682
|
+
variant?: "solid" | "outlined" | "ghost";
|
|
1683
|
+
themeColor?: "primary" | "secondary" | "attention";
|
|
1684
|
+
size?: string;
|
|
1685
|
+
disabled?: boolean;
|
|
1686
|
+
children?: default_2.ReactNode | default_2.ReactNode[];
|
|
1687
|
+
icon?: default_2.ReactNode;
|
|
1688
|
+
iconPosition?: "start" | "end";
|
|
1689
|
+
contentPosition?: "center" | "start" | "end";
|
|
1690
|
+
orientation?: "vertical" | "horizontal";
|
|
1691
|
+
formId?: string;
|
|
1692
|
+
style?: default_2.CSSProperties;
|
|
1693
|
+
gap?: string | number;
|
|
1694
|
+
accessibilityProps?: any;
|
|
1695
|
+
autoFocus?: boolean;
|
|
1696
|
+
contextualLabel?: string;
|
|
1697
|
+
} & Pick<default_2.HTMLAttributes<HTMLButtonElement>, "className" | "aria-disabled" | "aria-label" | "aria-controls" | "aria-expanded" | "onClick" | "onFocus" | "onBlur" | "tabIndex" | "onMouseEnter" | "onMouseLeave"> & default_2.RefAttributes<HTMLButtonElement>>;
|
|
1698
|
+
Splitter: ({ initialPrimarySize, minPrimarySize, maxPrimarySize, orientation, children, style, swapped, floating, splitterTemplate, resize, }: {
|
|
1699
|
+
children: default_2.ReactNode | default_2.ReactNode[];
|
|
1700
|
+
style?: default_2.CSSProperties;
|
|
1701
|
+
splitterTemplate?: default_2.ReactNode;
|
|
1702
|
+
orientation?: "vertical" | "horizontal";
|
|
1703
|
+
floating?: boolean;
|
|
1704
|
+
resize?: (sizes: [number, number]) => void;
|
|
1705
|
+
swapped?: boolean;
|
|
1706
|
+
initialPrimarySize?: string;
|
|
1707
|
+
minPrimarySize?: string;
|
|
1708
|
+
maxPrimarySize?: string;
|
|
1709
|
+
}) => default_3.JSX.Element;
|
|
1710
|
+
getColor: typeof xmluiExports.getColor;
|
|
1711
|
+
TabItem: default_2.ForwardRefExoticComponent<Tab & default_2.RefAttributes<HTMLDivElement>>;
|
|
1712
|
+
Tabs: default_2.ForwardRefExoticComponent<{
|
|
1713
|
+
activeTab?: number;
|
|
1714
|
+
orientation?: "vertical" | "horizontal";
|
|
1715
|
+
tabRenderer?: (item: {
|
|
1716
|
+
label: string;
|
|
1717
|
+
isActive: boolean;
|
|
1718
|
+
}) => default_2.ReactNode;
|
|
1719
|
+
style?: default_2.CSSProperties;
|
|
1720
|
+
children?: default_2.ReactNode;
|
|
1721
|
+
registerComponentApi?: xmluiExports.RegisterComponentApiFn;
|
|
1722
|
+
className?: string;
|
|
1723
|
+
distributeEvenly?: boolean;
|
|
1724
|
+
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
1725
|
+
useColors: typeof xmluiExports.useColors;
|
|
1726
|
+
toCssVar: typeof xmluiExports.toCssVar;
|
|
1727
|
+
useDevTools: typeof xmluiExports.useDevTools;
|
|
1728
|
+
useLogger: () => {
|
|
1729
|
+
logs: {
|
|
1730
|
+
timestamp: Date;
|
|
1731
|
+
args: any[];
|
|
1732
|
+
}[];
|
|
1733
|
+
addLog: (args: any[]) => void;
|
|
1734
|
+
};
|
|
1735
|
+
errReportComponent: typeof xmluiExports.errReportComponent;
|
|
1736
|
+
xmlUiMarkupToComponent: typeof xmluiExports.xmlUiMarkupToComponent;
|
|
1737
|
+
ApiInterceptorProvider: typeof xmluiExports.ApiInterceptorProvider;
|
|
1738
|
+
Spinner: default_2.ForwardRefExoticComponent<{
|
|
1739
|
+
delay?: number;
|
|
1740
|
+
fullScreen?: boolean;
|
|
1741
|
+
style?: default_2.CSSProperties;
|
|
1742
|
+
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
1743
|
+
builtInThemes: xmluiExports.ThemeDefinition[];
|
|
1744
|
+
XmlUiHelper: typeof xmluiExports.XmlUiHelper;
|
|
1745
|
+
Text: default_2.ForwardRefExoticComponent<Omit<{
|
|
1746
|
+
[variantSpecificProps: string]: any;
|
|
1747
|
+
uid?: string;
|
|
1748
|
+
children?: default_2.ReactNode;
|
|
1749
|
+
variant?: "small" | "sub" | "sup" | "abbr" | "caption" | "cite" | "code" | "em" | "strong" | "title" | "var" | "inherit" | "mono" | "secondary" | "codefence" | "deleted" | "inserted" | "keyboard" | "marked" | "sample" | "subtitle" | "placeholder" | "paragraph" | "subheading" | "tableheading";
|
|
1750
|
+
maxLines?: number;
|
|
1751
|
+
preserveLinebreaks?: boolean;
|
|
1752
|
+
ellipses?: boolean;
|
|
1753
|
+
style?: default_2.CSSProperties;
|
|
1754
|
+
}, "ref"> & default_2.RefAttributes<unknown>>;
|
|
1755
|
+
TextBox: default_2.ForwardRefExoticComponent<{
|
|
1756
|
+
id?: string;
|
|
1757
|
+
type?: "search" | "text" | "password";
|
|
1758
|
+
value?: string;
|
|
1759
|
+
updateState?: UpdateStateFn;
|
|
1760
|
+
initialValue?: string;
|
|
1761
|
+
style?: default_2.CSSProperties;
|
|
1762
|
+
maxLength?: number;
|
|
1763
|
+
enabled?: boolean;
|
|
1764
|
+
placeholder?: string;
|
|
1765
|
+
validationStatus?: "none" | "error" | "warning" | "valid";
|
|
1766
|
+
onDidChange?: (newValue: string) => void;
|
|
1767
|
+
onFocus?: () => void;
|
|
1768
|
+
onBlur?: () => void;
|
|
1769
|
+
onKeyDown?: (event: default_2.KeyboardEvent<HTMLInputElement>) => void;
|
|
1770
|
+
registerComponentApi?: xmluiExports.RegisterComponentApiFn;
|
|
1771
|
+
startText?: string;
|
|
1772
|
+
startIcon?: string;
|
|
1773
|
+
endText?: string;
|
|
1774
|
+
endIcon?: string;
|
|
1775
|
+
gap?: string;
|
|
1776
|
+
autoFocus?: boolean;
|
|
1777
|
+
readOnly?: boolean;
|
|
1778
|
+
tabIndex?: number;
|
|
1779
|
+
label?: string;
|
|
1780
|
+
labelPosition?: string;
|
|
1781
|
+
labelWidth?: string;
|
|
1782
|
+
labelBreak?: boolean;
|
|
1783
|
+
required?: boolean;
|
|
1784
|
+
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
1785
|
+
NestedApp: typeof xmluiExports.NestedApp;
|
|
1786
|
+
VisuallyHidden: ({ children, ...props }: {
|
|
1787
|
+
children: default_2.ReactNode;
|
|
1788
|
+
}) => default_3.JSX.Element;
|
|
1789
|
+
LinkNative: default_2.ForwardRefExoticComponent<{
|
|
1790
|
+
to: string | {
|
|
1791
|
+
pathname: string;
|
|
1792
|
+
queryParams?: Record<string, any>;
|
|
1793
|
+
};
|
|
1794
|
+
children: default_2.ReactNode;
|
|
1795
|
+
icon?: string;
|
|
1796
|
+
active?: boolean;
|
|
1797
|
+
disabled?: boolean;
|
|
1798
|
+
onClick?: () => void;
|
|
1799
|
+
style?: default_2.CSSProperties;
|
|
1800
|
+
} & Partial<Pick<HTMLAnchorElement, "type" | "target" | "rel" | "download" | "ping" | "referrerPolicy" | "hreflang">> & default_2.RefAttributes<HTMLDivElement>>;
|
|
1801
|
+
ToneChangerButton: typeof xmluiExports.ToneChangerButton;
|
|
1802
|
+
Logo: default_2.ForwardRefExoticComponent<{
|
|
1803
|
+
style?: default_2.CSSProperties;
|
|
1804
|
+
} & default_2.RefAttributes<HTMLImageElement>>;
|
|
1805
|
+
useSearchContextContent: () => Record<string, {
|
|
1806
|
+
path: string;
|
|
1807
|
+
title: string;
|
|
1808
|
+
content: string;
|
|
1809
|
+
}>;
|
|
1810
|
+
useAppLayoutContext: typeof xmluiExports.useAppLayoutContext;
|
|
1811
|
+
useEvent: UseEventOverload;
|
|
1812
|
+
};
|
|
1813
|
+
export default standaloneExports;
|
|
1814
|
+
|
|
1862
1815
|
/**
|
|
1863
1816
|
* This class allows external component libraries to add their components to
|
|
1864
1817
|
* the xmlui component registry. The framework resolves the components used
|
|
@@ -2336,14 +2289,17 @@ declare function useDevTools(): {
|
|
|
2336
2289
|
inspectedNode: any;
|
|
2337
2290
|
sources: Record<string, string>;
|
|
2338
2291
|
setIsOpen: (isOpen: boolean) => void;
|
|
2339
|
-
devToolsSize: number;
|
|
2340
|
-
setDevToolsSize: (size: number) => void;
|
|
2341
|
-
devToolsSide: "left" | "right" | "bottom";
|
|
2342
|
-
setDevToolsSide: (side: "left" | "right" | "bottom") => void;
|
|
2343
2292
|
devToolsEnabled: boolean;
|
|
2344
2293
|
mockApi: any;
|
|
2345
2294
|
};
|
|
2346
2295
|
|
|
2296
|
+
declare const useEvent: UseEventOverload;
|
|
2297
|
+
|
|
2298
|
+
declare interface UseEventOverload {
|
|
2299
|
+
<TF extends callbackType>(callback: TF): TF;
|
|
2300
|
+
<TF extends callbackType>(callback: TF): any;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2347
2303
|
declare const useLogger: () => LogContextType;
|
|
2348
2304
|
|
|
2349
2305
|
declare const useSearchContextContent: () => Record<string, SearchEntry>;
|
|
@@ -2467,6 +2423,62 @@ declare interface XmlUiElement extends XmlUiNodeBase {
|
|
|
2467
2423
|
childNodes?: XmlUiNode[];
|
|
2468
2424
|
}
|
|
2469
2425
|
|
|
2426
|
+
declare namespace xmluiExports {
|
|
2427
|
+
export {
|
|
2428
|
+
ThemeDefinition,
|
|
2429
|
+
ComponentDef,
|
|
2430
|
+
ComponentRendererDef,
|
|
2431
|
+
CompoundComponentDef,
|
|
2432
|
+
ComponentLike,
|
|
2433
|
+
StandaloneAppDescription,
|
|
2434
|
+
StandaloneJsonConfig,
|
|
2435
|
+
ApiInterceptorDefinition,
|
|
2436
|
+
RegisterComponentApiFn,
|
|
2437
|
+
TreeNode,
|
|
2438
|
+
RendererContext,
|
|
2439
|
+
ComponentMetadata,
|
|
2440
|
+
ThemeTone,
|
|
2441
|
+
XmlUiNode,
|
|
2442
|
+
StandaloneApp,
|
|
2443
|
+
StandaloneExtensionManager,
|
|
2444
|
+
createComponentRenderer,
|
|
2445
|
+
createMetadata,
|
|
2446
|
+
d,
|
|
2447
|
+
parseScssVar,
|
|
2448
|
+
startApp,
|
|
2449
|
+
useTheme,
|
|
2450
|
+
AppRoot,
|
|
2451
|
+
ErrorBoundary,
|
|
2452
|
+
Icon,
|
|
2453
|
+
Stack,
|
|
2454
|
+
Button,
|
|
2455
|
+
Splitter,
|
|
2456
|
+
getColor,
|
|
2457
|
+
TabItemComponent as TabItem,
|
|
2458
|
+
Tabs,
|
|
2459
|
+
useColors,
|
|
2460
|
+
toCssVar,
|
|
2461
|
+
useDevTools,
|
|
2462
|
+
useLogger,
|
|
2463
|
+
errReportComponent,
|
|
2464
|
+
xmlUiMarkupToComponent,
|
|
2465
|
+
ApiInterceptorProvider,
|
|
2466
|
+
Spinner,
|
|
2467
|
+
builtInThemes,
|
|
2468
|
+
XmlUiHelper,
|
|
2469
|
+
Text_2 as Text,
|
|
2470
|
+
TextBox,
|
|
2471
|
+
NestedApp,
|
|
2472
|
+
VisuallyHidden,
|
|
2473
|
+
LinkNative,
|
|
2474
|
+
ToneChangerButton,
|
|
2475
|
+
Logo,
|
|
2476
|
+
useSearchContextContent,
|
|
2477
|
+
useAppLayoutContext,
|
|
2478
|
+
useEvent
|
|
2479
|
+
}
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2470
2482
|
declare type XmlUiFragment = XmlUiNode | XmlUiNode[];
|
|
2471
2483
|
|
|
2472
2484
|
/**
|