xmlui 0.7.20 → 0.7.22
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/{apiInterceptorWorker-D3L7dpSV.mjs → apiInterceptorWorker-D8M55a0M.mjs} +25 -10
- package/dist/{grammar.tmLanguage-69iP6c5d.mjs → grammar.tmLanguage-JAlHWPqw.mjs} +2 -2
- package/dist/index-BLoqesEB.mjs +32822 -0
- package/dist/index.css +1 -1
- package/dist/scripts/bin/build-lib.js +11 -5
- package/dist/scripts/bin/build.js +1 -4
- package/dist/scripts/bin/index.js +7 -7
- package/dist/scripts/bin/preview.js +19 -2
- package/dist/scripts/bin/start.js +23 -8
- package/dist/scripts/bin/viteConfig.js +2 -10
- package/dist/scripts/src/abstractions/ComponentDefs.js +2 -1
- package/dist/scripts/src/components/APICall/APICall.js +3 -3
- package/dist/scripts/src/components/APICall/APICallNative.js +2 -2
- package/dist/scripts/src/components/Accordion/Accordion.js +5 -5
- package/dist/scripts/src/components/Accordion/AccordionContext.js +1 -1
- package/dist/scripts/src/components/Accordion/AccordionItem.js +5 -5
- package/dist/scripts/src/components/Accordion/AccordionItemNative.js +3 -3
- package/dist/scripts/src/components/Accordion/AccordionNative.js +3 -3
- package/dist/scripts/src/components/Alert/Alert.js +4 -4
- package/dist/scripts/src/components/App/App.js +5 -5
- package/dist/scripts/src/components/App/AppNative.js +33 -34
- package/dist/scripts/src/components/App/Sheet.js +4 -4
- package/dist/scripts/src/components/AppHeader/AppHeader.js +6 -6
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +9 -9
- package/dist/scripts/src/components/AppState/AppState.js +2 -2
- package/dist/scripts/src/components/AppState/AppStateNative.js +2 -2
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +7 -7
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +29 -31
- package/dist/scripts/src/components/Avatar/Avatar.js +4 -4
- package/dist/scripts/src/components/Avatar/AvatarNative.js +1 -1
- package/dist/scripts/src/components/Backdrop/Backdrop.js +4 -4
- package/dist/scripts/src/components/Badge/Badge.js +3 -3
- package/dist/scripts/src/components/Badge/BadgeNative.js +2 -2
- package/dist/scripts/src/components/Bookmark/Bookmark.js +2 -2
- package/dist/scripts/src/components/Bookmark/BookmarkNative.js +1 -1
- package/dist/scripts/src/components/Breakout/Breakout.js +2 -2
- package/dist/scripts/src/components/Button/Button.js +6 -6
- package/dist/scripts/src/components/Button/ButtonNative.js +3 -3
- package/dist/scripts/src/components/ButtonGroup/ButtonGroup.js +5 -5
- package/dist/scripts/src/components/Card/Card.js +5 -5
- package/dist/scripts/src/components/Card/CardNative.js +7 -7
- package/dist/scripts/src/components/Carousel/Carousel.js +5 -5
- package/dist/scripts/src/components/Carousel/CarouselItem.js +3 -3
- package/dist/scripts/src/components/Carousel/CarouselItemNative.js +3 -3
- package/dist/scripts/src/components/Carousel/CarouselNative.js +6 -6
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +3 -3
- package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +1 -1
- package/dist/scripts/src/components/Chart/Chart.js +2 -2
- package/dist/scripts/src/components/Chart/ChartNative.js +5 -6
- package/dist/scripts/src/components/Checkbox/Checkbox.js +6 -6
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +43 -0
- package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +54 -0
- package/dist/scripts/src/components/Column/Column.js +2 -2
- package/dist/scripts/src/components/Column/ColumnNative.js +2 -2
- package/dist/scripts/src/components/ComponentProvider.js +357 -236
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +4 -4
- package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +1 -1
- package/dist/scripts/src/components/DatePicker/DatePicker.js +4 -4
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +18 -19
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +6 -6
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +5 -5
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +4 -4
- package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +1 -1
- package/dist/scripts/src/components/FileInput/FileInput.js +6 -6
- package/dist/scripts/src/components/FileInput/FileInputNative.js +6 -6
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +3 -3
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +6 -7
- package/dist/scripts/src/components/FlowLayout/FlowLayout.js +8 -6
- package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +27 -16
- package/dist/scripts/src/components/Footer/Footer.js +4 -4
- package/dist/scripts/src/components/Footer/FooterNative.js +2 -2
- package/dist/scripts/src/components/Form/Form.js +5 -5
- package/dist/scripts/src/components/Form/FormNative.js +29 -29
- package/dist/scripts/src/components/FormItem/FormItem.js +4 -4
- package/dist/scripts/src/components/FormItem/FormItemNative.js +26 -16
- package/dist/scripts/src/components/FormItem/HelperText.js +3 -3
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +5 -6
- package/dist/scripts/src/components/FormItem/Validations.js +5 -5
- package/dist/scripts/src/components/FormSection/FormSection.js +2 -2
- package/dist/scripts/src/components/Heading/Heading.js +3 -3
- package/dist/scripts/src/components/Heading/HeadingNative.js +10 -11
- package/dist/scripts/src/components/HoverCard/HoverCard.js +3 -3
- package/dist/scripts/src/components/HoverCard/HovercardNative.js +1 -1
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +1240 -0
- package/dist/scripts/src/components/Icon/Icon.js +3 -3
- package/dist/scripts/src/components/Icon/IconNative.js +3 -3
- package/dist/scripts/src/components/IconInfoCard/IconInfoCard.js +5 -4
- package/dist/scripts/src/components/IconProvider.js +49 -49
- package/dist/scripts/src/components/Image/Image.js +4 -4
- package/dist/scripts/src/components/Image/ImageNative.js +2 -2
- package/dist/scripts/src/components/Input/InputAdornment.js +3 -3
- package/dist/scripts/src/components/Items/Items.js +3 -3
- package/dist/scripts/src/components/Link/Link.js +6 -6
- package/dist/scripts/src/components/Link/LinkNative.js +29 -11
- package/dist/scripts/src/components/List/List.js +14 -16
- package/dist/scripts/src/components/List/ListNative.js +97 -218
- package/dist/scripts/src/components/Logo/Logo.js +2 -2
- package/dist/scripts/src/components/Logo/LogoNative.js +2 -2
- package/dist/scripts/src/components/Markdown/Markdown.js +3 -3
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +4 -4
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +5 -5
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +8 -8
- package/dist/scripts/src/components/NavGroup/NavGroup.js +6 -6
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +8 -8
- package/dist/scripts/src/components/NavLink/NavLink.js +5 -5
- package/dist/scripts/src/components/NavLink/NavLinkNative.js +6 -6
- package/dist/scripts/src/components/NavPanel/NavPanel.js +5 -5
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +6 -6
- package/dist/scripts/src/components/NoResult/NoResult.js +4 -4
- package/dist/scripts/src/components/NoResult/NoResultNative.js +2 -2
- package/dist/scripts/src/components/NumberBox/NumberBox.js +4 -4
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +7 -7
- package/dist/scripts/src/components/OffCanvas/OffCanvas.js +5 -5
- package/dist/scripts/src/components/OffCanvas/OffCanvasNative.js +2 -2
- package/dist/scripts/src/components/Option/Option.js +4 -4
- package/dist/scripts/src/components/PageHeader/PageHeader.js +2 -2
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +2 -2
- package/dist/scripts/src/components/Pages/Pages.js +3 -3
- package/dist/scripts/src/components/Pages/PagesNative.js +2 -2
- package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +3 -3
- package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +1 -1
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +3 -3
- package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +1 -1
- package/dist/scripts/src/components/Queue/Queue.js +3 -3
- package/dist/scripts/src/components/Queue/QueueNative.js +5 -5
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +4 -4
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +6 -6
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +2 -2
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +3 -3
- package/dist/scripts/src/components/Redirect/Redirect.js +2 -2
- package/dist/scripts/src/components/Select/Select.js +7 -7
- package/dist/scripts/src/components/Select/SelectNative.js +36 -37
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +2 -2
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +2 -2
- package/dist/scripts/src/components/Slider/Slider.js +39 -24
- package/dist/scripts/src/components/Slider/SliderNative.js +98 -3
- package/dist/scripts/src/components/SlotItem.js +2 -2
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +3 -3
- package/dist/scripts/src/components/Spinner/Spinner.js +3 -3
- package/dist/scripts/src/components/Spinner/SpinnerNative.js +3 -4
- package/dist/scripts/src/components/Splitter/Splitter.js +6 -6
- package/dist/scripts/src/components/Splitter/SplitterNative.js +3 -3
- package/dist/scripts/src/components/Stack/Stack.js +6 -6
- package/dist/scripts/src/components/Stack/StackNative.js +3 -3
- package/dist/scripts/src/components/StickyBox/StickyBox.js +3 -3
- package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +1 -1
- package/dist/scripts/src/components/Switch/Switch.js +6 -6
- package/dist/scripts/src/components/Table/Table.js +9 -9
- package/dist/scripts/src/components/Table/TableNative.js +15 -15
- package/dist/scripts/src/components/Table/useRowSelection.js +4 -4
- package/dist/scripts/src/components/TableHeader/TableHeader.js +2 -2
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +3 -3
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +3 -3
- package/dist/scripts/src/components/Tabs/TabContext.js +1 -1
- package/dist/scripts/src/components/Tabs/TabItem.js +3 -3
- package/dist/scripts/src/components/Tabs/TabItemNative.js +2 -2
- package/dist/scripts/src/components/Tabs/Tabs.js +5 -5
- package/dist/scripts/src/components/Tabs/TabsNative.js +2 -2
- package/dist/scripts/src/components/Text/Text.js +4 -4
- package/dist/scripts/src/components/Text/TextNative.js +6 -7
- package/dist/scripts/src/components/TextArea/TextArea.js +4 -4
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +6 -6
- package/dist/scripts/src/components/TextBox/TextBox.js +4 -4
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +5 -5
- package/dist/scripts/src/components/Theme/Theme.js +2 -2
- package/dist/scripts/src/components/Theme/ThemeNative.js +7 -7
- package/dist/scripts/src/components/ThemeChanger/ThemeChanger.js +11 -11
- package/dist/scripts/src/components/ThemeChanger/ToneChangerButton.js +5 -5
- package/dist/scripts/src/components/Toggle/Toggle.js +4 -4
- package/dist/scripts/src/components/Toolbar/Toolbar.js +2 -2
- package/dist/scripts/src/components/ToolbarButton/ToolbarButton.js +2 -2
- package/dist/scripts/src/components/Tree/TreeComponent.js +4 -4
- package/dist/scripts/src/components/Tree/TreeNative.js +2 -2
- package/dist/scripts/src/components/TrendLabel/TrendLabel.js +2 -2
- package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +8 -8
- package/dist/scripts/src/components/abstractions.js +6 -2
- package/dist/scripts/src/components/container-helpers.js +2 -2
- package/dist/scripts/src/components-core/CompoundComponent.js +2 -2
- package/dist/scripts/src/components-core/Fragment.js +2 -2
- package/dist/scripts/src/components-core/InspectorContext.js +5 -5
- package/dist/scripts/src/components-core/LoaderComponent.js +3 -3
- package/dist/scripts/src/components-core/RestApiProxy.js +5 -5
- package/dist/scripts/src/components-core/Slot.js +2 -2
- package/dist/scripts/src/components-core/{StandaloneComponentManager.js → StandaloneExtensionManager.js} +6 -13
- package/dist/scripts/src/components-core/TableOfContentsContext.js +1 -1
- package/dist/scripts/src/components-core/XmluiCodeHighlighter.js +2 -2
- package/dist/scripts/src/components-core/action/APICall.js +5 -5
- package/dist/scripts/src/components-core/action/FileDownloadAction.js +1 -1
- package/dist/scripts/src/components-core/action/FileUploadAction.js +3 -3
- package/dist/scripts/src/components-core/action/NavigateAction.js +1 -1
- package/dist/scripts/src/components-core/action/TimedAction.js +1 -1
- package/dist/scripts/src/components-core/component-hooks.js +2 -2
- package/dist/scripts/src/components-core/descriptorHelper.js +1 -0
- package/dist/scripts/src/components-core/loader/ApiLoader.js +5 -5
- package/dist/scripts/src/components-core/loader/DataLoader.js +18 -10
- package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +5 -5
- package/dist/scripts/src/components-core/loader/Loader.js +3 -3
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +5 -5
- package/dist/scripts/src/components-core/loader/PageableLoader.js +7 -7
- package/dist/scripts/src/components-core/{ComponentBed.js → rendering/ComponentAdapter.js} +26 -20
- package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +147 -0
- package/dist/scripts/src/components-core/rendering/Container.js +576 -0
- package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +82 -0
- package/dist/scripts/src/components-core/{ErrorBoundary.js → rendering/ErrorBoundary.js} +9 -3
- package/dist/scripts/src/components-core/{InvalidComponent.js → rendering/InvalidComponent.js} +1 -1
- package/dist/scripts/src/components-core/rendering/StateContainer.js +331 -0
- package/dist/scripts/src/components-core/{container → rendering}/buildProxy.js +11 -7
- package/dist/scripts/src/components-core/{container → rendering}/collectFnVarDeps.js +2 -2
- package/dist/scripts/src/components-core/{container → rendering}/reducer.js +4 -1
- package/dist/scripts/src/components-core/rendering/renderChild.js +81 -0
- package/dist/scripts/src/components-core/{container → rendering}/valueExtractor.js +4 -4
- package/dist/scripts/src/components-core/script-runner/asyncProxy.js +1 -1
- package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +1 -1
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +1 -1
- package/dist/scripts/src/components-core/script-runner/process-statement-async.js +2 -2
- package/dist/scripts/src/components-core/script-runner/process-statement-common.js +1 -1
- package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +3 -3
- package/dist/scripts/src/components-core/script-runner/syncProxy.js +1 -1
- package/dist/scripts/src/components-core/script-runner/visitors.js +1 -1
- package/dist/scripts/src/components-core/theming/ThemeProvider.js +10 -10
- package/dist/scripts/src/components-core/theming/extendThemeUtils.js +1 -1
- package/dist/scripts/src/components-core/theming/layout-resolver.js +356 -0
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +1 -1
- package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +9 -3
- package/dist/scripts/src/components-core/utils/actionUtils.js +3 -3
- package/dist/scripts/src/components-core/utils/compound-utils.js +1 -1
- package/dist/scripts/src/components-core/utils/css-utils.js +2 -2
- package/dist/scripts/src/components-core/utils/extractParam.js +3 -3
- package/dist/scripts/src/components-core/utils/hooks.js +3 -3
- package/dist/scripts/src/parsers/scripting/modules.js +1 -1
- package/dist/scripts/src/parsers/style-parser/style-compiler.js +6 -2
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +194 -166
- package/dist/scripts/src/syntax/grammar.tmLanguage.json +2 -2
- package/dist/scripts/src/syntax/textMate/xmlui.json +27 -93
- package/dist/style.css +1 -1
- package/dist/xmlui-metadata.mjs +5183 -4375
- package/dist/xmlui-metadata.umd.js +23 -18
- package/dist/xmlui-standalone.umd.js +266 -293
- package/dist/xmlui.d.ts +39 -63
- package/dist/xmlui.mjs +1 -1
- package/package.json +4 -3
- package/dist/index-BYjaMGrD.mjs +0 -76804
- package/dist/scripts/package.json +0 -209
- package/dist/scripts/src/components/BarChart/BarChart.js +0 -49
- package/dist/scripts/src/components/BarChart/BarChartNative.js +0 -176
- package/dist/scripts/src/components/Map/Map.js +0 -75
- package/dist/scripts/src/components/Map/world_countries.json +0 -45307
- package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +0 -116
- package/dist/scripts/src/components/ModalDialog/Dialog.js +0 -20
- package/dist/scripts/src/components/PieChart/PieChart.js +0 -45
- package/dist/scripts/src/components/PieChart/PieChartNative.js +0 -165
- package/dist/scripts/src/components/Range/Range.js +0 -56
- package/dist/scripts/src/components/Range/RangeNative.js +0 -8
- package/dist/scripts/src/components/chart-color-schemes.js +0 -43
- package/dist/scripts/src/components-core/AppRoot.js +0 -424
- package/dist/scripts/src/components-core/StandaloneApp.js +0 -589
- package/dist/scripts/src/components-core/appContext/date-functions.js +0 -19
- package/dist/scripts/src/components-core/appContext/math-function.js +0 -27
- package/dist/scripts/src/components-core/appContext/misc-utils.js +0 -13
- package/dist/scripts/src/components-core/container/Container.js +0 -1186
- package/dist/scripts/src/components-core/container/ContainerComponentDef.js +0 -15
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +0 -198
- package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +0 -94
- package/dist/scripts/src/components-core/interception/Backend.js +0 -129
- package/dist/scripts/src/components-core/interception/Errors.js +0 -129
- package/dist/scripts/src/components-core/interception/InMemoryDb.js +0 -41
- package/dist/scripts/src/components-core/interception/IndexedDb.js +0 -205
- package/dist/scripts/src/components-core/interception/ReadonlyCollection.js +0 -145
- package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
- package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +0 -46
- package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +0 -9
- package/dist/scripts/src/components-core/markup-check.js +0 -279
- package/dist/scripts/src/components-core/utils/classnames.js +0 -58
- package/dist/scripts/src/components-core/utils/date-utils.js +0 -78
- package/dist/scripts/src/components-core/utils/request-params.js +0 -70
- package/dist/scripts/src/index.js +0 -69
- /package/dist/scripts/src/{components-core/abstractions/standalone.js → abstractions/ExtensionDefs.js} +0 -0
- /package/dist/scripts/src/components-core/{UnknownComponent.js → rendering/UnknownComponent.js} +0 -0
|
@@ -4,110 +4,108 @@ exports.ComponentRegistry = void 0;
|
|
|
4
4
|
exports.ComponentProvider = ComponentProvider;
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
-
const Stack_1 = require("
|
|
8
|
-
const SpaceFiller_1 = require("
|
|
9
|
-
const TextArea_1 = require("
|
|
10
|
-
const NavLink_1 = require("
|
|
11
|
-
const Link_1 = require("
|
|
12
|
-
const TreeComponent_1 = require("
|
|
13
|
-
const Button_1 = require("
|
|
14
|
-
const Heading_1 = require("
|
|
15
|
-
const Text_1 = require("
|
|
16
|
-
const Fragment_1 = require("
|
|
17
|
-
const Table_1 = require("
|
|
18
|
-
const StickyBox_1 = require("
|
|
19
|
-
const Badge_1 = require("
|
|
20
|
-
const Avatar_1 = require("
|
|
21
|
-
const ContentSeparator_1 = require("
|
|
22
|
-
const Card_1 = require("
|
|
23
|
-
const FlowLayout_1 = require("
|
|
24
|
-
const ModalDialog_1 = require("
|
|
25
|
-
const NoResult_1 = require("
|
|
26
|
-
const FileUploadDropZone_1 = require("
|
|
27
|
-
const Icon_1 = require("
|
|
28
|
-
const Items_1 = require("
|
|
29
|
-
const SelectionStore_1 = require("
|
|
30
|
-
const Image_1 = require("
|
|
31
|
-
const PageMetaTitle_1 = require("
|
|
32
|
-
const ProgressBar_1 = require("
|
|
33
|
-
const Splitter_1 = require("
|
|
34
|
-
const Queue_1 = require("
|
|
35
|
-
const CompoundComponent_1 = require("
|
|
36
|
-
const List_1 = require("
|
|
37
|
-
const PositionedContainer_1 = require("
|
|
38
|
-
const ChangeListener_1 = require("
|
|
39
|
-
const FormItem_1 = require("
|
|
40
|
-
const TextBox_1 = require("
|
|
41
|
-
const RealTimeAdapter_1 = require("
|
|
42
|
-
const Form_1 = require("
|
|
43
|
-
const EmojiSelector_1 = require("
|
|
44
|
-
const NumberBox_1 = require("
|
|
45
|
-
const HoverCard_1 = require("
|
|
46
|
-
const App_1 = require("
|
|
47
|
-
const NavPanel_1 = require("
|
|
48
|
-
const Pages_1 = require("
|
|
49
|
-
const Footer_1 = require("
|
|
50
|
-
const NavGroup_1 = require("
|
|
51
|
-
const Logo_1 = require("
|
|
52
|
-
const RadioGroup_1 = require("
|
|
53
|
-
const Slot_1 = require("
|
|
54
|
-
const FileInput_1 = require("
|
|
55
|
-
const Chart_1 = require("
|
|
56
|
-
const Spinner_1 = require("
|
|
57
|
-
const Markdown_1 = require("
|
|
58
|
-
const Select_1 = require("
|
|
59
|
-
const ThemeChanger_1 = require("
|
|
60
|
-
const FormSection_1 = require("
|
|
61
|
-
const Checkbox_1 = require("
|
|
62
|
-
const Switch_1 = require("
|
|
63
|
-
const AppHeader_1 = require("
|
|
64
|
-
const DropdownMenu_1 = require("
|
|
65
|
-
const Theme_1 = require("
|
|
7
|
+
const Stack_1 = require("./Stack/Stack");
|
|
8
|
+
const SpaceFiller_1 = require("./SpaceFiller/SpaceFiller");
|
|
9
|
+
const TextArea_1 = require("./TextArea/TextArea");
|
|
10
|
+
const NavLink_1 = require("./NavLink/NavLink");
|
|
11
|
+
const Link_1 = require("./Link/Link");
|
|
12
|
+
const TreeComponent_1 = require("./Tree/TreeComponent");
|
|
13
|
+
const Button_1 = require("./Button/Button");
|
|
14
|
+
const Heading_1 = require("./Heading/Heading");
|
|
15
|
+
const Text_1 = require("./Text/Text");
|
|
16
|
+
const Fragment_1 = require("../components-core/Fragment");
|
|
17
|
+
const Table_1 = require("./Table/Table");
|
|
18
|
+
const StickyBox_1 = require("./StickyBox/StickyBox");
|
|
19
|
+
const Badge_1 = require("./Badge/Badge");
|
|
20
|
+
const Avatar_1 = require("./Avatar/Avatar");
|
|
21
|
+
const ContentSeparator_1 = require("./ContentSeparator/ContentSeparator");
|
|
22
|
+
const Card_1 = require("./Card/Card");
|
|
23
|
+
const FlowLayout_1 = require("./FlowLayout/FlowLayout");
|
|
24
|
+
const ModalDialog_1 = require("./ModalDialog/ModalDialog");
|
|
25
|
+
const NoResult_1 = require("./NoResult/NoResult");
|
|
26
|
+
const FileUploadDropZone_1 = require("./FileUploadDropZone/FileUploadDropZone");
|
|
27
|
+
const Icon_1 = require("./Icon/Icon");
|
|
28
|
+
const Items_1 = require("./Items/Items");
|
|
29
|
+
const SelectionStore_1 = require("./SelectionStore/SelectionStore");
|
|
30
|
+
const Image_1 = require("./Image/Image");
|
|
31
|
+
const PageMetaTitle_1 = require("./PageMetaTitle/PageMetaTitle");
|
|
32
|
+
const ProgressBar_1 = require("./ProgressBar/ProgressBar");
|
|
33
|
+
const Splitter_1 = require("./Splitter/Splitter");
|
|
34
|
+
const Queue_1 = require("./Queue/Queue");
|
|
35
|
+
const CompoundComponent_1 = require("../components-core/CompoundComponent");
|
|
36
|
+
const List_1 = require("./List/List");
|
|
37
|
+
const PositionedContainer_1 = require("./PositionedContainer/PositionedContainer");
|
|
38
|
+
const ChangeListener_1 = require("./ChangeListener/ChangeListener");
|
|
39
|
+
const FormItem_1 = require("./FormItem/FormItem");
|
|
40
|
+
const TextBox_1 = require("./TextBox/TextBox");
|
|
41
|
+
const RealTimeAdapter_1 = require("./RealTimeAdapter/RealTimeAdapter");
|
|
42
|
+
const Form_1 = require("./Form/Form");
|
|
43
|
+
const EmojiSelector_1 = require("./EmojiSelector/EmojiSelector");
|
|
44
|
+
const NumberBox_1 = require("./NumberBox/NumberBox");
|
|
45
|
+
const HoverCard_1 = require("./HoverCard/HoverCard");
|
|
46
|
+
const App_1 = require("./App/App");
|
|
47
|
+
const NavPanel_1 = require("./NavPanel/NavPanel");
|
|
48
|
+
const Pages_1 = require("./Pages/Pages");
|
|
49
|
+
const Footer_1 = require("./Footer/Footer");
|
|
50
|
+
const NavGroup_1 = require("./NavGroup/NavGroup");
|
|
51
|
+
const Logo_1 = require("./Logo/Logo");
|
|
52
|
+
const RadioGroup_1 = require("./RadioGroup/RadioGroup");
|
|
53
|
+
const Slot_1 = require("../components-core/Slot");
|
|
54
|
+
const FileInput_1 = require("./FileInput/FileInput");
|
|
55
|
+
const Chart_1 = require("./Chart/Chart");
|
|
56
|
+
const Spinner_1 = require("./Spinner/Spinner");
|
|
57
|
+
const Markdown_1 = require("./Markdown/Markdown");
|
|
58
|
+
const Select_1 = require("./Select/Select");
|
|
59
|
+
const ThemeChanger_1 = require("./ThemeChanger/ThemeChanger");
|
|
60
|
+
const FormSection_1 = require("./FormSection/FormSection");
|
|
61
|
+
const Checkbox_1 = require("./Checkbox/Checkbox");
|
|
62
|
+
const Switch_1 = require("./Switch/Switch");
|
|
63
|
+
const AppHeader_1 = require("./AppHeader/AppHeader");
|
|
64
|
+
const DropdownMenu_1 = require("./DropdownMenu/DropdownMenu");
|
|
65
|
+
const Theme_1 = require("./Theme/Theme");
|
|
66
66
|
const lodash_es_1 = require("lodash-es");
|
|
67
|
-
const ComponentRegistryContext_1 = require("
|
|
68
|
-
const Column_1 = require("
|
|
69
|
-
const APICall_1 = require("
|
|
70
|
-
const FileDownloadAction_1 = require("
|
|
71
|
-
const FileUploadAction_1 = require("
|
|
72
|
-
const NavigateAction_1 = require("
|
|
73
|
-
const TimedAction_1 = require("
|
|
74
|
-
const ApiLoader_1 = require("
|
|
75
|
-
const ExternalDataLoader_1 = require("
|
|
76
|
-
const MockLoaderRenderer_1 = require("
|
|
77
|
-
const DataLoader_1 = require("
|
|
78
|
-
const DatePicker_1 = require("
|
|
79
|
-
const Redirect_1 = require("
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
const Tabs_1 = require("@components/Tabs/Tabs");
|
|
84
|
-
const Bookmark_1 = require("@components/Bookmark/Bookmark");
|
|
85
|
-
const AppState_1 = require("@components/AppState/AppState");
|
|
67
|
+
const ComponentRegistryContext_1 = require("./ComponentRegistryContext");
|
|
68
|
+
const Column_1 = require("./Column/Column");
|
|
69
|
+
const APICall_1 = require("../components-core/action/APICall");
|
|
70
|
+
const FileDownloadAction_1 = require("../components-core/action/FileDownloadAction");
|
|
71
|
+
const FileUploadAction_1 = require("../components-core/action/FileUploadAction");
|
|
72
|
+
const NavigateAction_1 = require("../components-core/action/NavigateAction");
|
|
73
|
+
const TimedAction_1 = require("../components-core/action/TimedAction");
|
|
74
|
+
const ApiLoader_1 = require("../components-core/loader/ApiLoader");
|
|
75
|
+
const ExternalDataLoader_1 = require("../components-core/loader/ExternalDataLoader");
|
|
76
|
+
const MockLoaderRenderer_1 = require("../components-core/loader/MockLoaderRenderer");
|
|
77
|
+
const DataLoader_1 = require("../components-core/loader/DataLoader");
|
|
78
|
+
const DatePicker_1 = require("./DatePicker/DatePicker");
|
|
79
|
+
const Redirect_1 = require("./Redirect/Redirect");
|
|
80
|
+
const Tabs_1 = require("./Tabs/Tabs");
|
|
81
|
+
const Bookmark_1 = require("./Bookmark/Bookmark");
|
|
82
|
+
const AppState_1 = require("./AppState/AppState");
|
|
86
83
|
const PageHeader_1 = require("./PageHeader/PageHeader");
|
|
87
84
|
const TrendLabel_1 = require("./TrendLabel/TrendLabel");
|
|
88
85
|
const IconInfoCard_1 = require("./IconInfoCard/IconInfoCard");
|
|
89
86
|
const TableHeader_1 = require("./TableHeader/TableHeader");
|
|
90
87
|
const Toolbar_1 = require("./Toolbar/Toolbar");
|
|
91
88
|
const ToolbarButton_1 = require("./ToolbarButton/ToolbarButton");
|
|
92
|
-
const TableOfContents_1 = require("
|
|
89
|
+
const TableOfContents_1 = require("./TableOfContents/TableOfContents");
|
|
93
90
|
const Accordion_1 = require("./Accordion/Accordion");
|
|
94
91
|
const Alert_1 = require("./Alert/Alert");
|
|
95
92
|
const OffCanvas_1 = require("./OffCanvas/OffCanvas");
|
|
96
|
-
const XmluiCodeHighlighter_1 = require("
|
|
97
|
-
const TabItem_1 = require("
|
|
98
|
-
const
|
|
99
|
-
const AccordionItem_1 = require("@components/Accordion/AccordionItem");
|
|
93
|
+
const XmluiCodeHighlighter_1 = require("../components-core/XmluiCodeHighlighter");
|
|
94
|
+
const TabItem_1 = require("./Tabs/TabItem");
|
|
95
|
+
const AccordionItem_1 = require("./Accordion/AccordionItem");
|
|
100
96
|
const Slider_1 = require("./Slider/Slider");
|
|
101
97
|
const ButtonGroup_1 = require("./ButtonGroup/ButtonGroup");
|
|
102
|
-
const Carousel_1 = require("
|
|
103
|
-
const CarouselItem_1 = require("
|
|
104
|
-
const renderers_1 = require("
|
|
105
|
-
const Breakout_1 = require("
|
|
106
|
-
const ToneChangerButton_1 = require("
|
|
107
|
-
const APICall_2 = require("
|
|
108
|
-
const Option_1 = require("
|
|
109
|
-
const AutoComplete_1 = require("
|
|
98
|
+
const Carousel_1 = require("./Carousel/Carousel");
|
|
99
|
+
const CarouselItem_1 = require("./Carousel/CarouselItem");
|
|
100
|
+
const renderers_1 = require("../components-core/renderers");
|
|
101
|
+
const Breakout_1 = require("./Breakout/Breakout");
|
|
102
|
+
const ToneChangerButton_1 = require("./ThemeChanger/ToneChangerButton");
|
|
103
|
+
const APICall_2 = require("./APICall/APICall");
|
|
104
|
+
const Option_1 = require("./Option/Option");
|
|
105
|
+
const AutoComplete_1 = require("./AutoComplete/AutoComplete");
|
|
110
106
|
const Backdrop_1 = require("./Backdrop/Backdrop");
|
|
107
|
+
const HtmlTags_1 = require("./HtmlTags/HtmlTags");
|
|
108
|
+
const ColorPicker_1 = require("./ColorPicker/ColorPicker");
|
|
111
109
|
/**
|
|
112
110
|
* The framework has a specialized component concept, the "property holder
|
|
113
111
|
* component." These components only hold property values but do not render
|
|
@@ -133,12 +131,12 @@ class ComponentRegistry {
|
|
|
133
131
|
* `contributes` argument with information about accompanying (app-specific)
|
|
134
132
|
* components that come with a particular app using the registry.
|
|
135
133
|
* @param contributes Information about the components that come with the app
|
|
136
|
-
* @param
|
|
134
|
+
* @param extensionManager Optional manager object that receives a notification
|
|
137
135
|
* about component registrations
|
|
138
136
|
*/
|
|
139
|
-
constructor(contributes = {},
|
|
140
|
-
var _a, _b, _c
|
|
141
|
-
this.
|
|
137
|
+
constructor(contributes = {}, extensionManager) {
|
|
138
|
+
var _a, _b, _c;
|
|
139
|
+
this.extensionManager = extensionManager;
|
|
142
140
|
// --- The pool of available components
|
|
143
141
|
this.pool = new Map();
|
|
144
142
|
// --- The pool of available theme variable names
|
|
@@ -149,10 +147,39 @@ class ComponentRegistry {
|
|
|
149
147
|
this.actionFns = new Map();
|
|
150
148
|
// --- The pool of available loader renderers
|
|
151
149
|
this.loaders = new Map();
|
|
150
|
+
this.extensionRegistered = (extension) => {
|
|
151
|
+
extension.components.forEach((c) => {
|
|
152
|
+
if ("type" in c) {
|
|
153
|
+
//we handle just the js components for now
|
|
154
|
+
this.registerComponentRenderer(c, extension.namespace);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
this.registerCoreComponent = (component) => {
|
|
159
|
+
const coreNamespaces = ["#xmlui-core-ns", ""];
|
|
160
|
+
if ("compoundComponentDef" in component) {
|
|
161
|
+
this.registerCompoundComponentRenderer(component, ...coreNamespaces);
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
this.registerComponentRenderer(component, ...coreNamespaces);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
this.registerAppComponent = (component) => {
|
|
168
|
+
const appNamespaces = ["#app-ns", ""];
|
|
169
|
+
if ("compoundComponentDef" in component) {
|
|
170
|
+
this.registerCompoundComponentRenderer(component, ...appNamespaces);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
this.registerComponentRenderer(component, ...appNamespaces);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
152
176
|
// --- Registers a renderable component using its renderer function
|
|
153
177
|
// --- and metadata
|
|
154
|
-
this.registerComponentRenderer = ({ type, renderer, metadata,
|
|
155
|
-
|
|
178
|
+
this.registerComponentRenderer = ({ type, renderer, metadata }, ...namespaces) => {
|
|
179
|
+
const component = { renderer, descriptor: metadata };
|
|
180
|
+
namespaces.forEach((ns) => {
|
|
181
|
+
this.pool.set((ns ? ns + "." : "") + type, component);
|
|
182
|
+
});
|
|
156
183
|
if (metadata === null || metadata === void 0 ? void 0 : metadata.themeVars) {
|
|
157
184
|
Object.keys(metadata.themeVars).forEach((key) => this.themeVars.add(key));
|
|
158
185
|
}
|
|
@@ -160,229 +187,326 @@ class ComponentRegistry {
|
|
|
160
187
|
(0, lodash_es_1.merge)(this.defaultThemeVars, metadata === null || metadata === void 0 ? void 0 : metadata.defaultThemeVars);
|
|
161
188
|
}
|
|
162
189
|
};
|
|
163
|
-
this.
|
|
190
|
+
this.extensionManager = extensionManager;
|
|
191
|
+
// we register these first, so that core components with the same name can override them (without namespace)
|
|
192
|
+
(_a = contributes.components) === null || _a === void 0 ? void 0 : _a.forEach((renderer) => {
|
|
193
|
+
this.registerAppComponent(renderer);
|
|
194
|
+
});
|
|
195
|
+
(_b = contributes.compoundComponents) === null || _b === void 0 ? void 0 : _b.forEach((def) => {
|
|
196
|
+
this.registerAppComponent({ compoundComponentDef: def });
|
|
197
|
+
});
|
|
164
198
|
if (process.env.VITE_USED_COMPONENTS_Stack !== "false") {
|
|
165
|
-
this.
|
|
166
|
-
this.
|
|
167
|
-
this.
|
|
168
|
-
this.
|
|
169
|
-
this.
|
|
170
|
-
}
|
|
171
|
-
this.
|
|
172
|
-
this.
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
199
|
+
this.registerCoreComponent(Stack_1.stackComponentRenderer);
|
|
200
|
+
this.registerCoreComponent(Stack_1.vStackComponentRenderer);
|
|
201
|
+
this.registerCoreComponent(Stack_1.hStackComponentRenderer);
|
|
202
|
+
this.registerCoreComponent(Stack_1.cvStackComponentRenderer);
|
|
203
|
+
this.registerCoreComponent(Stack_1.chStackComponentRenderer);
|
|
204
|
+
}
|
|
205
|
+
this.registerCoreComponent(Slot_1.SlotHolder);
|
|
206
|
+
this.registerCoreComponent(dataSourcePropHolder);
|
|
207
|
+
this.registerCoreComponent(textNodePropHolder);
|
|
208
|
+
this.registerCoreComponent(textNodeCDataPropHolder);
|
|
175
209
|
if (process.env.VITE_USED_COMPONENTS_SpaceFiller !== "false") {
|
|
176
|
-
this.
|
|
210
|
+
this.registerCoreComponent(SpaceFiller_1.spaceFillerComponentRenderer);
|
|
177
211
|
}
|
|
178
212
|
if (process.env.VITE_USED_COMPONENTS_Textarea !== "false") {
|
|
179
|
-
this.
|
|
213
|
+
this.registerCoreComponent(TextArea_1.textAreaComponentRenderer);
|
|
180
214
|
}
|
|
181
215
|
if (process.env.VITE_USED_COMPONENTS_AppHeader !== "false") {
|
|
182
|
-
this.
|
|
216
|
+
this.registerCoreComponent(AppHeader_1.appHeaderComponentRenderer);
|
|
183
217
|
}
|
|
184
218
|
if (process.env.VITE_USED_COMPONENTS_Footer !== "false") {
|
|
185
|
-
this.
|
|
219
|
+
this.registerCoreComponent(Footer_1.footerRenderer);
|
|
186
220
|
}
|
|
187
221
|
if (process.env.VITE_USED_COMPONENTS_Logo !== "false") {
|
|
188
|
-
this.
|
|
222
|
+
this.registerCoreComponent(Logo_1.logoComponentRenderer);
|
|
189
223
|
}
|
|
190
224
|
if (process.env.VITE_USED_COMPONENTS_NavLink !== "false") {
|
|
191
|
-
this.
|
|
225
|
+
this.registerCoreComponent(NavLink_1.navLinkComponentRenderer);
|
|
192
226
|
}
|
|
193
227
|
if (process.env.VITE_USED_COMPONENTS_NavGroup !== "false") {
|
|
194
|
-
this.
|
|
228
|
+
this.registerCoreComponent(NavGroup_1.navGroupComponentRenderer);
|
|
195
229
|
}
|
|
196
230
|
if (process.env.VITE_USED_COMPONENTS_Link !== "false") {
|
|
197
|
-
this.
|
|
231
|
+
this.registerCoreComponent(Link_1.localLinkComponentRenderer);
|
|
198
232
|
}
|
|
199
233
|
if (process.env.VITE_USED_COMPONENTS_Form !== "false") {
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
234
|
+
this.registerCoreComponent(Form_1.formComponentRenderer);
|
|
235
|
+
this.registerCoreComponent(FormItem_1.formItemComponentRenderer);
|
|
202
236
|
}
|
|
203
237
|
if (process.env.VITE_USED_COMPONENTS_Tree !== "false") {
|
|
204
|
-
this.
|
|
238
|
+
this.registerCoreComponent(TreeComponent_1.treeComponentRenderer);
|
|
205
239
|
}
|
|
206
240
|
if (process.env.VITE_USED_COMPONENTS_Button !== "false") {
|
|
207
|
-
this.
|
|
241
|
+
this.registerCoreComponent(Button_1.buttonComponentRenderer);
|
|
208
242
|
}
|
|
209
243
|
if (process.env.VITE_USED_COMPONENTS_Checkbox !== "false") {
|
|
210
|
-
this.
|
|
244
|
+
this.registerCoreComponent(Checkbox_1.checkboxComponentRenderer);
|
|
211
245
|
}
|
|
212
246
|
if (process.env.VITE_USED_COMPONENTS_Switch !== "false") {
|
|
213
|
-
this.
|
|
247
|
+
this.registerCoreComponent(Switch_1.switchComponentRenderer);
|
|
214
248
|
}
|
|
215
249
|
if (process.env.VITE_USED_COMPONENTS_Heading !== "false") {
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
219
|
-
this.
|
|
220
|
-
this.
|
|
221
|
-
this.
|
|
222
|
-
this.
|
|
250
|
+
this.registerCoreComponent(Heading_1.headingComponentRenderer);
|
|
251
|
+
this.registerCoreComponent(Heading_1.h1ComponentRenderer);
|
|
252
|
+
this.registerCoreComponent(Heading_1.h2ComponentRenderer);
|
|
253
|
+
this.registerCoreComponent(Heading_1.h3ComponentRenderer);
|
|
254
|
+
this.registerCoreComponent(Heading_1.h4ComponentRenderer);
|
|
255
|
+
this.registerCoreComponent(Heading_1.h5ComponentRenderer);
|
|
256
|
+
this.registerCoreComponent(Heading_1.h6ComponentRenderer);
|
|
223
257
|
}
|
|
224
258
|
if (process.env.VITE_USED_COMPONENTS_Text !== "false") {
|
|
225
|
-
this.
|
|
259
|
+
this.registerCoreComponent(Text_1.textComponentRenderer);
|
|
226
260
|
}
|
|
227
261
|
if (process.env.VITE_USED_COMPONENTS_Fragment !== "false") {
|
|
228
|
-
this.
|
|
262
|
+
this.registerCoreComponent(Fragment_1.fragmentComponentRenderer);
|
|
229
263
|
}
|
|
230
264
|
if (process.env.VITE_USED_COMPONENTS_Table !== "false") {
|
|
231
|
-
this.
|
|
232
|
-
this.
|
|
265
|
+
this.registerCoreComponent(Table_1.tableComponentRenderer);
|
|
266
|
+
this.registerCoreComponent(Column_1.columnComponentRenderer);
|
|
233
267
|
}
|
|
234
268
|
if (process.env.VITE_USED_COMPONENTS_List !== "false") {
|
|
235
|
-
this.
|
|
269
|
+
this.registerCoreComponent(List_1.dynamicHeightListComponentRenderer);
|
|
236
270
|
}
|
|
237
271
|
if (process.env.VITE_USED_COMPONENTS_App !== "false") {
|
|
238
|
-
this.
|
|
272
|
+
this.registerCoreComponent(App_1.appRenderer);
|
|
239
273
|
}
|
|
240
274
|
if (process.env.VITE_USED_COMPONENTS_NavPanel !== "false") {
|
|
241
|
-
this.
|
|
275
|
+
this.registerCoreComponent(NavPanel_1.navPanelRenderer);
|
|
242
276
|
}
|
|
243
277
|
if (process.env.VITE_USED_COMPONENTS_Pages !== "false") {
|
|
244
|
-
this.
|
|
245
|
-
this.
|
|
278
|
+
this.registerCoreComponent(Pages_1.pagesRenderer);
|
|
279
|
+
this.registerCoreComponent(Pages_1.pageRenderer);
|
|
246
280
|
}
|
|
247
281
|
if (process.env.VITE_USED_COMPONENTS_Redirect !== "false") {
|
|
248
|
-
this.
|
|
282
|
+
this.registerCoreComponent(Redirect_1.redirectRenderer);
|
|
249
283
|
}
|
|
250
284
|
if (process.env.VITE_USED_COMPONENTS_StickyBox !== "false") {
|
|
251
|
-
this.
|
|
285
|
+
this.registerCoreComponent(StickyBox_1.stickyBoxComponentRenderer);
|
|
252
286
|
}
|
|
253
287
|
if (process.env.VITE_USED_COMPONENTS_Badge !== "false") {
|
|
254
|
-
this.
|
|
288
|
+
this.registerCoreComponent(Badge_1.badgeComponentRenderer);
|
|
255
289
|
}
|
|
256
290
|
if (process.env.VITE_USED_COMPONENTS_Avatar !== "false") {
|
|
257
|
-
this.
|
|
291
|
+
this.registerCoreComponent(Avatar_1.avatarComponentRenderer);
|
|
258
292
|
}
|
|
259
293
|
if (process.env.VITE_USED_COMPONENTS_ContentSeparator !== "false") {
|
|
260
|
-
this.
|
|
294
|
+
this.registerCoreComponent(ContentSeparator_1.contentSeparatorComponentRenderer);
|
|
261
295
|
}
|
|
262
296
|
if (process.env.VITE_USED_COMPONENTS_Card !== "false") {
|
|
263
|
-
this.
|
|
297
|
+
this.registerCoreComponent(Card_1.cardComponentRenderer);
|
|
298
|
+
}
|
|
299
|
+
if (process.env.VITE_USED_COMPONENTS_ColorPicker !== "false") {
|
|
300
|
+
this.registerCoreComponent(ColorPicker_1.colorPickerComponentRenderer);
|
|
264
301
|
}
|
|
265
302
|
if (process.env.VITE_USED_COMPONENTS_FlowLayout !== "false") {
|
|
266
|
-
this.
|
|
303
|
+
this.registerCoreComponent(FlowLayout_1.flowLayoutComponentRenderer);
|
|
267
304
|
}
|
|
268
305
|
if (process.env.VITE_USED_COMPONENTS_ModalDialog !== "false") {
|
|
269
|
-
this.
|
|
306
|
+
this.registerCoreComponent(ModalDialog_1.modalViewComponentRenderer);
|
|
270
307
|
}
|
|
271
308
|
if (process.env.VITE_USED_COMPONENTS_NoResult !== "false") {
|
|
272
|
-
this.
|
|
309
|
+
this.registerCoreComponent(NoResult_1.noResultComponentRenderer);
|
|
273
310
|
}
|
|
274
311
|
if (process.env.VITE_USED_COMPONENTS_Option !== "false") {
|
|
275
|
-
this.
|
|
312
|
+
this.registerCoreComponent(Option_1.optionComponentRenderer);
|
|
276
313
|
}
|
|
277
314
|
if (process.env.VITE_USED_COMPONENTS_TabItem !== "false") {
|
|
278
|
-
this.
|
|
315
|
+
this.registerCoreComponent(TabItem_1.tabItemComponentRenderer);
|
|
279
316
|
}
|
|
280
317
|
if (process.env.VITE_USED_COMPONENTS_AccordionItem !== "false") {
|
|
281
|
-
this.
|
|
318
|
+
this.registerCoreComponent(AccordionItem_1.accordionItemComponentRenderer);
|
|
282
319
|
}
|
|
283
320
|
if (process.env.VITE_USED_COMPONENTS_CarouselItem !== "false") {
|
|
284
|
-
this.
|
|
321
|
+
this.registerCoreComponent(CarouselItem_1.carouselItemComponentRenderer);
|
|
285
322
|
}
|
|
286
323
|
if (process.env.VITE_USED_COMPONENTS_FileUploadDropZone !== "false") {
|
|
287
|
-
this.
|
|
324
|
+
this.registerCoreComponent(FileUploadDropZone_1.fileUploadDropZoneComponentRenderer);
|
|
288
325
|
}
|
|
289
326
|
if (process.env.VITE_USED_COMPONENTS_Icon !== "false") {
|
|
290
|
-
this.
|
|
327
|
+
this.registerCoreComponent(Icon_1.iconComponentRenderer);
|
|
291
328
|
}
|
|
292
329
|
if (process.env.VITE_USED_COMPONENTS_Items !== "false") {
|
|
293
|
-
this.
|
|
330
|
+
this.registerCoreComponent(Items_1.itemsComponentRenderer);
|
|
294
331
|
}
|
|
295
332
|
if (process.env.VITE_USED_COMPONENTS_SelectionStore !== "false") {
|
|
296
|
-
this.
|
|
333
|
+
this.registerCoreComponent(SelectionStore_1.selectionStoreComponentRenderer);
|
|
297
334
|
}
|
|
298
335
|
if (process.env.VITE_USED_COMPONENTS_Image !== "false") {
|
|
299
|
-
this.
|
|
336
|
+
this.registerCoreComponent(Image_1.imageComponentRenderer);
|
|
300
337
|
}
|
|
301
338
|
if (process.env.VITE_USER_COMPONENTS_XmluiCodeHightlighter !== "false") {
|
|
302
|
-
this.
|
|
339
|
+
this.registerCoreComponent(XmluiCodeHighlighter_1.codeComponentRenderer);
|
|
303
340
|
}
|
|
304
341
|
if (process.env.VITE_USER_COMPONENTS_Markdown !== "false") {
|
|
305
|
-
this.
|
|
342
|
+
this.registerCoreComponent(Markdown_1.markdownComponentRenderer);
|
|
306
343
|
}
|
|
307
344
|
if (process.env.VITE_INCLUDE_REST_COMPONENTS !== "false") {
|
|
308
345
|
//TODO, if it proves to be a working solution, make these components skippable, too
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
314
|
-
this.
|
|
315
|
-
this.
|
|
316
|
-
this.
|
|
317
|
-
this.
|
|
318
|
-
this.
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
324
|
-
this.
|
|
325
|
-
this.
|
|
326
|
-
this.
|
|
327
|
-
this.
|
|
328
|
-
this.
|
|
329
|
-
this.
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
339
|
-
this.
|
|
340
|
-
this.
|
|
341
|
-
}
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
346
|
+
this.registerCoreComponent(PageMetaTitle_1.pageMetaTitleComponentRenderer);
|
|
347
|
+
this.registerCoreComponent(ProgressBar_1.progressBarComponentRenderer);
|
|
348
|
+
this.registerCoreComponent(Splitter_1.splitterComponentRenderer);
|
|
349
|
+
this.registerCoreComponent(Splitter_1.vSplitterComponentRenderer);
|
|
350
|
+
this.registerCoreComponent(Splitter_1.hSplitterComponentRenderer);
|
|
351
|
+
this.registerCoreComponent(Queue_1.queueComponentRenderer);
|
|
352
|
+
this.registerCoreComponent(PositionedContainer_1.positionedContainerComponentRenderer);
|
|
353
|
+
this.registerCoreComponent(ChangeListener_1.changeListenerComponentRenderer);
|
|
354
|
+
this.registerCoreComponent(RealTimeAdapter_1.realTimeAdapterComponentRenderer);
|
|
355
|
+
this.registerCoreComponent(TextBox_1.textBoxComponentRenderer);
|
|
356
|
+
this.registerCoreComponent(TextBox_1.passwordInputComponentRenderer);
|
|
357
|
+
this.registerCoreComponent(EmojiSelector_1.emojiSelectorRenderer);
|
|
358
|
+
this.registerCoreComponent(NumberBox_1.numberBoxComponentRenderer);
|
|
359
|
+
this.registerCoreComponent(HoverCard_1.hoverCardComponentRenderer);
|
|
360
|
+
this.registerCoreComponent(RadioGroup_1.radioGroupRenderer);
|
|
361
|
+
this.registerCoreComponent(FileInput_1.fileInputRenderer);
|
|
362
|
+
this.registerCoreComponent(DatePicker_1.datePickerComponentRenderer);
|
|
363
|
+
this.registerCoreComponent(Spinner_1.spinnerComponentRenderer);
|
|
364
|
+
this.registerCoreComponent(Select_1.selectComponentRenderer);
|
|
365
|
+
this.registerCoreComponent(AutoComplete_1.autoCompleteComponentRenderer);
|
|
366
|
+
this.registerCoreComponent(DropdownMenu_1.dropdownMenuComponentRenderer);
|
|
367
|
+
this.registerCoreComponent(ThemeChanger_1.themeChangerButtonComponentRenderer);
|
|
368
|
+
this.registerCoreComponent(ToneChangerButton_1.toneChangerButtonComponentRenderer);
|
|
369
|
+
this.registerCoreComponent(FormSection_1.formSectionRenderer);
|
|
370
|
+
this.registerCoreComponent(DropdownMenu_1.dropdownMenuComponentRenderer);
|
|
371
|
+
this.registerCoreComponent(DropdownMenu_1.menuItemRenderer);
|
|
372
|
+
this.registerCoreComponent(DropdownMenu_1.subMenuItemRenderer);
|
|
373
|
+
this.registerCoreComponent(DropdownMenu_1.menuSeparatorRenderer);
|
|
374
|
+
this.registerCoreComponent(Tabs_1.tabsComponentRenderer);
|
|
375
|
+
this.registerCoreComponent(Bookmark_1.bookmarkComponentRenderer);
|
|
376
|
+
this.registerCoreComponent(TableOfContents_1.tableOfContentsRenderer);
|
|
377
|
+
this.registerCoreComponent(Breakout_1.breakoutComponentRenderer);
|
|
378
|
+
}
|
|
379
|
+
this.registerCoreComponent(Theme_1.themeComponentRenderer);
|
|
380
|
+
this.registerCoreComponent(AppState_1.appStateComponentRenderer);
|
|
381
|
+
this.registerCoreComponent(APICall_2.apiCallRenderer);
|
|
345
382
|
// --- Added after tabler-clone review
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
348
|
-
this.
|
|
349
|
-
this.
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
383
|
+
this.registerCoreComponent(PageHeader_1.pageHeaderRenderer);
|
|
384
|
+
this.registerCoreComponent(TrendLabel_1.trendLabelRenderer);
|
|
385
|
+
this.registerCoreComponent(IconInfoCard_1.iconInfoCardRenderer);
|
|
386
|
+
this.registerCoreComponent(TableHeader_1.tableHeaderRenderer);
|
|
387
|
+
this.registerCoreComponent(Toolbar_1.toolbarRenderer);
|
|
388
|
+
this.registerCoreComponent(ToolbarButton_1.toolbarButtonRenderer);
|
|
352
389
|
// --- New Bootstrap-inspired components
|
|
353
|
-
this.
|
|
354
|
-
this.
|
|
355
|
-
this.
|
|
356
|
-
this.
|
|
357
|
-
this.
|
|
358
|
-
this.
|
|
359
|
-
this.
|
|
360
|
-
this.
|
|
390
|
+
this.registerCoreComponent(Carousel_1.carouselComponentRenderer);
|
|
391
|
+
this.registerCoreComponent(Accordion_1.accordionComponentRenderer);
|
|
392
|
+
this.registerCoreComponent(Alert_1.alertComponentRenderer);
|
|
393
|
+
this.registerCoreComponent(OffCanvas_1.offCanvasComponentRenderer);
|
|
394
|
+
this.registerCoreComponent(Slider_1.sliderComponentRenderer);
|
|
395
|
+
this.registerCoreComponent(ButtonGroup_1.buttonGroupComponentRenderer);
|
|
396
|
+
this.registerCoreComponent(Backdrop_1.backdropComponentRenderer);
|
|
397
|
+
this.registerCoreComponent(HtmlTags_1.htmlATagRenderer);
|
|
398
|
+
this.registerCoreComponent(HtmlTags_1.htmlAbbrTagRenderer);
|
|
399
|
+
this.registerCoreComponent(HtmlTags_1.htmlAddressTagRenderer);
|
|
400
|
+
this.registerCoreComponent(HtmlTags_1.htmlAreaTagRenderer);
|
|
401
|
+
this.registerCoreComponent(HtmlTags_1.htmlArticleTagRenderer);
|
|
402
|
+
this.registerCoreComponent(HtmlTags_1.htmlAsideTagRenderer);
|
|
403
|
+
this.registerCoreComponent(HtmlTags_1.htmlAudioTagRenderer);
|
|
404
|
+
this.registerCoreComponent(HtmlTags_1.htmlBTagRenderer);
|
|
405
|
+
this.registerCoreComponent(HtmlTags_1.htmlBdiTagRenderer);
|
|
406
|
+
this.registerCoreComponent(HtmlTags_1.htmlBdoTagRenderer);
|
|
407
|
+
this.registerCoreComponent(HtmlTags_1.htmlBlockquoteTagRenderer);
|
|
408
|
+
this.registerCoreComponent(HtmlTags_1.htmlBrTagRenderer);
|
|
409
|
+
this.registerCoreComponent(HtmlTags_1.htmlButtonTagRenderer);
|
|
410
|
+
this.registerCoreComponent(HtmlTags_1.htmlCanvasTagRenderer);
|
|
411
|
+
this.registerCoreComponent(HtmlTags_1.htmlCaptionTagRenderer);
|
|
412
|
+
this.registerCoreComponent(HtmlTags_1.htmlCiteTagRenderer);
|
|
413
|
+
this.registerCoreComponent(HtmlTags_1.htmlCodeTagRenderer);
|
|
414
|
+
this.registerCoreComponent(HtmlTags_1.htmlColTagRenderer);
|
|
415
|
+
this.registerCoreComponent(HtmlTags_1.htmlColgroupTagRenderer);
|
|
416
|
+
this.registerCoreComponent(HtmlTags_1.htmlDataTagRenderer);
|
|
417
|
+
this.registerCoreComponent(HtmlTags_1.htmlDatalistTagRenderer);
|
|
418
|
+
this.registerCoreComponent(HtmlTags_1.htmlDdTagRenderer);
|
|
419
|
+
this.registerCoreComponent(HtmlTags_1.htmlDelTagRenderer);
|
|
420
|
+
this.registerCoreComponent(HtmlTags_1.htmlDetailsTagRenderer);
|
|
421
|
+
this.registerCoreComponent(HtmlTags_1.htmlDfnTagRenderer);
|
|
422
|
+
this.registerCoreComponent(HtmlTags_1.htmlDialogTagRenderer);
|
|
423
|
+
this.registerCoreComponent(HtmlTags_1.htmlDivTagRenderer);
|
|
424
|
+
this.registerCoreComponent(HtmlTags_1.htmlDlTagRenderer);
|
|
425
|
+
this.registerCoreComponent(HtmlTags_1.htmlDtTagRenderer);
|
|
426
|
+
this.registerCoreComponent(HtmlTags_1.htmlEMTagRenderer);
|
|
427
|
+
this.registerCoreComponent(HtmlTags_1.htmlEmbedTagRenderer);
|
|
428
|
+
this.registerCoreComponent(HtmlTags_1.htmlFieldsetTagRenderer);
|
|
429
|
+
this.registerCoreComponent(HtmlTags_1.htmlFigcaptionTagRenderer);
|
|
430
|
+
this.registerCoreComponent(HtmlTags_1.htmlFigureTagRenderer);
|
|
431
|
+
this.registerCoreComponent(HtmlTags_1.htmlFooterTagRenderer);
|
|
432
|
+
this.registerCoreComponent(HtmlTags_1.htmlFormTagRenderer);
|
|
433
|
+
this.registerCoreComponent(HtmlTags_1.htmlH1TagRenderer);
|
|
434
|
+
this.registerCoreComponent(HtmlTags_1.htmlH2TagRenderer);
|
|
435
|
+
this.registerCoreComponent(HtmlTags_1.htmlH3TagRenderer);
|
|
436
|
+
this.registerCoreComponent(HtmlTags_1.htmlH4TagRenderer);
|
|
437
|
+
this.registerCoreComponent(HtmlTags_1.htmlH5TagRenderer);
|
|
438
|
+
this.registerCoreComponent(HtmlTags_1.htmlH6TagRenderer);
|
|
439
|
+
this.registerCoreComponent(HtmlTags_1.htmlHeaderTagRenderer);
|
|
440
|
+
this.registerCoreComponent(HtmlTags_1.htmlHrTagRenderer);
|
|
441
|
+
this.registerCoreComponent(HtmlTags_1.htmlITagRenderer);
|
|
442
|
+
this.registerCoreComponent(HtmlTags_1.htmlIframeTagRenderer);
|
|
443
|
+
this.registerCoreComponent(HtmlTags_1.htmlImgTagRenderer);
|
|
444
|
+
this.registerCoreComponent(HtmlTags_1.htmlInputTagRenderer);
|
|
445
|
+
this.registerCoreComponent(HtmlTags_1.htmlInsTagRenderer);
|
|
446
|
+
this.registerCoreComponent(HtmlTags_1.htmlKbdTagRenderer);
|
|
447
|
+
this.registerCoreComponent(HtmlTags_1.htmlLabelTagRenderer);
|
|
448
|
+
this.registerCoreComponent(HtmlTags_1.htmlLegendTagRenderer);
|
|
449
|
+
this.registerCoreComponent(HtmlTags_1.htmlLiTagRenderer);
|
|
450
|
+
this.registerCoreComponent(HtmlTags_1.htmlMainTagRenderer);
|
|
451
|
+
this.registerCoreComponent(HtmlTags_1.htmlMapTagRenderer);
|
|
452
|
+
this.registerCoreComponent(HtmlTags_1.htmlMarkTagRenderer);
|
|
453
|
+
this.registerCoreComponent(HtmlTags_1.htmlMenuTagRenderer);
|
|
454
|
+
this.registerCoreComponent(HtmlTags_1.htmlMeterTagRenderer);
|
|
455
|
+
this.registerCoreComponent(HtmlTags_1.htmlNavTagRenderer);
|
|
456
|
+
this.registerCoreComponent(HtmlTags_1.htmlObjectTagRenderer);
|
|
457
|
+
this.registerCoreComponent(HtmlTags_1.htmlOlTagRenderer);
|
|
458
|
+
this.registerCoreComponent(HtmlTags_1.htmlOptgroupTagRenderer);
|
|
459
|
+
this.registerCoreComponent(HtmlTags_1.htmlOptionTagRenderer);
|
|
460
|
+
this.registerCoreComponent(HtmlTags_1.htmlOutputTagRenderer);
|
|
461
|
+
this.registerCoreComponent(HtmlTags_1.htmlPTagRenderer);
|
|
462
|
+
this.registerCoreComponent(HtmlTags_1.htmlParamTagRenderer);
|
|
463
|
+
this.registerCoreComponent(HtmlTags_1.htmlPictureTagRenderer);
|
|
464
|
+
this.registerCoreComponent(HtmlTags_1.htmlPreTagRenderer);
|
|
465
|
+
this.registerCoreComponent(HtmlTags_1.htmlProgressTagRenderer);
|
|
466
|
+
this.registerCoreComponent(HtmlTags_1.htmlQTagRenderer);
|
|
467
|
+
this.registerCoreComponent(HtmlTags_1.htmlRpTagRenderer);
|
|
468
|
+
this.registerCoreComponent(HtmlTags_1.htmlRtTagRenderer);
|
|
469
|
+
this.registerCoreComponent(HtmlTags_1.htmlRubyTagRenderer);
|
|
470
|
+
this.registerCoreComponent(HtmlTags_1.htmlSTagRenderer);
|
|
471
|
+
this.registerCoreComponent(HtmlTags_1.htmlSampTagRenderer);
|
|
472
|
+
this.registerCoreComponent(HtmlTags_1.htmlSectionTagRenderer);
|
|
473
|
+
this.registerCoreComponent(HtmlTags_1.htmlSelectTagRenderer);
|
|
474
|
+
this.registerCoreComponent(HtmlTags_1.htmlSmallTagRenderer);
|
|
475
|
+
this.registerCoreComponent(HtmlTags_1.htmlSourceTagRenderer);
|
|
476
|
+
this.registerCoreComponent(HtmlTags_1.htmlSpanTagRenderer);
|
|
477
|
+
this.registerCoreComponent(HtmlTags_1.htmlStrongTagRenderer);
|
|
478
|
+
this.registerCoreComponent(HtmlTags_1.htmlSubTagRenderer);
|
|
479
|
+
this.registerCoreComponent(HtmlTags_1.htmlSummaryTagRenderer);
|
|
480
|
+
this.registerCoreComponent(HtmlTags_1.htmlSupTagRenderer);
|
|
481
|
+
this.registerCoreComponent(HtmlTags_1.htmlTableTagRenderer);
|
|
482
|
+
this.registerCoreComponent(HtmlTags_1.htmlTbodyTagRenderer);
|
|
483
|
+
this.registerCoreComponent(HtmlTags_1.htmlTdTagRenderer);
|
|
484
|
+
this.registerCoreComponent(HtmlTags_1.htmlTemplateTagRenderer);
|
|
485
|
+
this.registerCoreComponent(HtmlTags_1.htmlTextareaTagRenderer);
|
|
486
|
+
this.registerCoreComponent(HtmlTags_1.htmlTfootTagRenderer);
|
|
487
|
+
this.registerCoreComponent(HtmlTags_1.htmlThTagRenderer);
|
|
488
|
+
this.registerCoreComponent(HtmlTags_1.htmlTheadTagRenderer);
|
|
489
|
+
this.registerCoreComponent(HtmlTags_1.htmlTimeTagRenderer);
|
|
490
|
+
this.registerCoreComponent(HtmlTags_1.htmlTrTagRenderer);
|
|
491
|
+
this.registerCoreComponent(HtmlTags_1.htmlTrackTagRenderer);
|
|
492
|
+
this.registerCoreComponent(HtmlTags_1.htmlUTagRenderer);
|
|
493
|
+
this.registerCoreComponent(HtmlTags_1.htmlUlTagRenderer);
|
|
494
|
+
this.registerCoreComponent(HtmlTags_1.htmlVarTagRenderer);
|
|
495
|
+
this.registerCoreComponent(HtmlTags_1.htmlVideoTagRenderer);
|
|
496
|
+
this.registerCoreComponent(HtmlTags_1.htmlWbrTagRenderer);
|
|
361
497
|
if (process.env.VITE_USED_COMPONENTS_Chart !== "false") {
|
|
362
|
-
this.
|
|
363
|
-
this.registerComponentRenderer(PieChart_1.pieChartComponentRenderer);
|
|
364
|
-
this.registerComponentRenderer(BarChart_1.barChartComponentRenderer);
|
|
365
|
-
this.registerComponentRenderer(Map_1.mapComponentRenderer);
|
|
498
|
+
this.registerCoreComponent(Chart_1.chartRenderer);
|
|
366
499
|
}
|
|
367
|
-
(_a = contributes.components) === null || _a === void 0 ? void 0 : _a.forEach((renderer) => {
|
|
368
|
-
this.registerComponentRenderer(renderer);
|
|
369
|
-
});
|
|
370
|
-
(_b = contributes.compoundComponents) === null || _b === void 0 ? void 0 : _b.forEach((def) => {
|
|
371
|
-
this.registerCompoundComponentRenderer({ compoundComponentDef: def });
|
|
372
|
-
});
|
|
373
500
|
this.registerActionFn(APICall_1.apiAction);
|
|
374
501
|
this.registerActionFn(FileDownloadAction_1.downloadAction);
|
|
375
502
|
this.registerActionFn(FileUploadAction_1.uploadAction);
|
|
376
503
|
this.registerActionFn(NavigateAction_1.navigateAction);
|
|
377
504
|
this.registerActionFn(TimedAction_1.timedAction);
|
|
378
|
-
(_c = contributes.actions) === null || _c === void 0 ? void 0 : _c.forEach((actionRenderer) => {
|
|
379
|
-
this.registerActionFn(actionRenderer);
|
|
380
|
-
});
|
|
381
505
|
this.registerLoaderRenderer(ApiLoader_1.apiLoaderRenderer);
|
|
382
506
|
this.registerLoaderRenderer(ExternalDataLoader_1.externalDataLoaderRenderer);
|
|
383
507
|
this.registerLoaderRenderer(MockLoaderRenderer_1.mockLoaderRenderer);
|
|
384
508
|
this.registerLoaderRenderer(DataLoader_1.dataLoaderRenderer);
|
|
385
|
-
(
|
|
509
|
+
(_c = this.extensionManager) === null || _c === void 0 ? void 0 : _c.subscribeToRegistrations(this.extensionRegistered);
|
|
386
510
|
}
|
|
387
511
|
/**
|
|
388
512
|
* All theme variables used by the registered components.
|
|
@@ -447,19 +571,16 @@ class ComponentRegistry {
|
|
|
447
571
|
this.actionFns.get(componentName) !== undefined);
|
|
448
572
|
}
|
|
449
573
|
// --- Registers a compound component using its definition and metadata
|
|
450
|
-
registerCompoundComponentRenderer({ compoundComponentDef, metadata,
|
|
451
|
-
|
|
574
|
+
registerCompoundComponentRenderer({ compoundComponentDef, metadata }, ...namespaces) {
|
|
575
|
+
const component = {
|
|
576
|
+
type: compoundComponentDef.name,
|
|
452
577
|
renderer: (rendererContext) => {
|
|
453
578
|
return ((0, jsx_runtime_1.jsx)(CompoundComponent_1.CompoundComponent, Object.assign({ api: compoundComponentDef.api, scriptCollected: compoundComponentDef.scriptCollected, compound: compoundComponentDef.component }, rendererContext)));
|
|
454
579
|
},
|
|
455
580
|
isCompoundComponent: true,
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
}
|
|
460
|
-
if (metadata === null || metadata === void 0 ? void 0 : metadata.defaultThemeVars) {
|
|
461
|
-
(0, lodash_es_1.merge)(this.defaultThemeVars, metadata === null || metadata === void 0 ? void 0 : metadata.defaultThemeVars);
|
|
462
|
-
}
|
|
581
|
+
metadata,
|
|
582
|
+
};
|
|
583
|
+
this.registerComponentRenderer(component, ...namespaces);
|
|
463
584
|
}
|
|
464
585
|
// --- Registers an action function using its definition
|
|
465
586
|
registerActionFn({ actionName: functionName, actionFn }) {
|
|
@@ -476,7 +597,7 @@ class ComponentRegistry {
|
|
|
476
597
|
*/
|
|
477
598
|
destroy() {
|
|
478
599
|
var _a;
|
|
479
|
-
(_a = this.
|
|
600
|
+
(_a = this.extensionManager) === null || _a === void 0 ? void 0 : _a.unSubscribeFromRegistrations(this.extensionRegistered);
|
|
480
601
|
}
|
|
481
602
|
}
|
|
482
603
|
exports.ComponentRegistry = ComponentRegistry;
|
|
@@ -485,15 +606,15 @@ exports.ComponentRegistry = ComponentRegistry;
|
|
|
485
606
|
* component registry. The component ensures that child components are not
|
|
486
607
|
* rendered before the component registry is initialized.
|
|
487
608
|
*/
|
|
488
|
-
function ComponentProvider({ children, contributes,
|
|
489
|
-
const [componentRegistry, setComponentRegistry] = (0, react_1.useState)(() => new ComponentRegistry(contributes,
|
|
609
|
+
function ComponentProvider({ children, contributes, extensionManager, }) {
|
|
610
|
+
const [componentRegistry, setComponentRegistry] = (0, react_1.useState)(() => new ComponentRegistry(contributes, extensionManager));
|
|
490
611
|
// --- Make sure the component registry is updated when the contributes or
|
|
491
612
|
// --- component manager changes (e.g., due to HMR).
|
|
492
613
|
(0, react_1.useEffect)(() => {
|
|
493
614
|
setComponentRegistry((prev) => {
|
|
494
615
|
prev.destroy();
|
|
495
|
-
return new ComponentRegistry(contributes,
|
|
616
|
+
return new ComponentRegistry(contributes, extensionManager);
|
|
496
617
|
});
|
|
497
|
-
}, [
|
|
618
|
+
}, [extensionManager, contributes]);
|
|
498
619
|
return ((0, jsx_runtime_1.jsx)(ComponentRegistryContext_1.ComponentRegistryContext.Provider, { value: componentRegistry, children: children }));
|
|
499
620
|
}
|