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
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "xmlui",
|
|
3
|
-
"version": "0.7.20",
|
|
4
|
-
"sideEffects": false,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"start-test-bed": "cd src/testing/infrastructure && xmlui start",
|
|
7
|
-
"build:test-bed": "cd src/testing/infrastructure && xmlui build --build-mode=INLINE_ALL --withHostingMetaFiles",
|
|
8
|
-
"build:bin": "tsc -p tsconfig.bin.json",
|
|
9
|
-
"build:xmlui": "vite build --mode lib",
|
|
10
|
-
"build:xmlui-standalone": "vite build --mode standalone",
|
|
11
|
-
"build:xmlui-metadata": "vite build --mode metadata",
|
|
12
|
-
"build": "rimraf dist && tsc && npm run build:bin && npm run build:xmlui-metadata && npm run build:xmlui && npm run build:xmlui-standalone",
|
|
13
|
-
"test": "npm run test:unit",
|
|
14
|
-
"test:unit": "vitest run",
|
|
15
|
-
"test:e2e": "playwright test",
|
|
16
|
-
"test:e2e-smoke": "playwright test --project smoke",
|
|
17
|
-
"test:e2e-ui": "npm run test:e2e -- --ui",
|
|
18
|
-
"prepublishOnly": "clean-package && npm run build",
|
|
19
|
-
"postpublish": "clean-package restore",
|
|
20
|
-
"prepare-docs-data": "npm run build:xmlui-metadata",
|
|
21
|
-
"generate-docs": "node scripts/generate-docs/get-docs.mjs"
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@azure/msal-browser": "2.30.0",
|
|
25
|
-
"@azure/msal-react": "1.4.9",
|
|
26
|
-
"@eslint-community/regexpp": "4.10.0",
|
|
27
|
-
"@formkit/auto-animate": "0.7.0",
|
|
28
|
-
"@headlessui/react": "1.7.16",
|
|
29
|
-
"@microsoft/tsdoc-config": "0.17.0",
|
|
30
|
-
"@modyfi/vite-plugin-yaml": "1.1.0",
|
|
31
|
-
"@monaco-editor/react": "4.4.6",
|
|
32
|
-
"@nivo/bar": "0.87.0",
|
|
33
|
-
"@nivo/core": "0.87.0",
|
|
34
|
-
"@nivo/geo": "0.87.0",
|
|
35
|
-
"@nivo/pie": "0.87.0",
|
|
36
|
-
"@popperjs/core": "2.11.6",
|
|
37
|
-
"@radix-ui/react-accordion": "^1.2.0",
|
|
38
|
-
"@radix-ui/react-alert-dialog": "^1.1.2",
|
|
39
|
-
"@radix-ui/react-dialog": "1.0.5",
|
|
40
|
-
"@radix-ui/react-dropdown-menu": "2.0.6",
|
|
41
|
-
"@radix-ui/react-hover-card": "1.0.7",
|
|
42
|
-
"@radix-ui/react-popover": "^1.1.2",
|
|
43
|
-
"@radix-ui/react-radio-group": "1.1.3",
|
|
44
|
-
"@radix-ui/react-select": "^2.1.2",
|
|
45
|
-
"@radix-ui/react-tabs": "1.1.0",
|
|
46
|
-
"@radix-ui/react-visually-hidden": "1.0.3",
|
|
47
|
-
"@remix-run/react": "2.9.1",
|
|
48
|
-
"@tanstack/react-query": "4.32.6",
|
|
49
|
-
"@tanstack/react-query-devtools": "4.32.6",
|
|
50
|
-
"@tanstack/react-table": "8.17.3",
|
|
51
|
-
"@tanstack/react-virtual": "3.10.8",
|
|
52
|
-
"@types/color": "3.0.6",
|
|
53
|
-
"@vitejs/plugin-react": "4.3.0",
|
|
54
|
-
"adm-zip": "0.5.10",
|
|
55
|
-
"apexcharts": "3.44.0",
|
|
56
|
-
"axios": "1.7.7",
|
|
57
|
-
"cmdk": "^1.0.4",
|
|
58
|
-
"color": "4.2.3",
|
|
59
|
-
"date-fns": "2.30.0",
|
|
60
|
-
"dexie": "3.2.4",
|
|
61
|
-
"dotenv": "16.3.1",
|
|
62
|
-
"downshift": "8.2.3",
|
|
63
|
-
"embla-carousel-autoplay": "^8.3.0",
|
|
64
|
-
"embla-carousel-react": "^8.3.0",
|
|
65
|
-
"emoji-picker-react": "4.4.10",
|
|
66
|
-
"glob": "7.2.0",
|
|
67
|
-
"immer": "9.0.16",
|
|
68
|
-
"lodash-es": "4.17.21",
|
|
69
|
-
"memoize-one": "6.0.0",
|
|
70
|
-
"monaco-editor": "0.34.1",
|
|
71
|
-
"msw": "2.0.1",
|
|
72
|
-
"oidc-client-ts": "2.1.0",
|
|
73
|
-
"react": "18.2.0",
|
|
74
|
-
"react-apexcharts": "1.4.1",
|
|
75
|
-
"react-currency-input-field": "3.6.9",
|
|
76
|
-
"react-datepicker": "4.25.0",
|
|
77
|
-
"react-day-picker": "8.10.1",
|
|
78
|
-
"react-dom": "18.2.0",
|
|
79
|
-
"react-dropzone": "14.2.3",
|
|
80
|
-
"react-helmet-async": "1.3.0",
|
|
81
|
-
"react-hot-toast": "2.4.1",
|
|
82
|
-
"react-icons": "4.8.0",
|
|
83
|
-
"react-imask": "7.1.3",
|
|
84
|
-
"react-markdown": "9.0.1",
|
|
85
|
-
"react-measure": "2.5.2",
|
|
86
|
-
"react-oidc-context": "2.2.0",
|
|
87
|
-
"react-popper": "2.3.0",
|
|
88
|
-
"react-resizable-panels": "2.0.19",
|
|
89
|
-
"react-router-dom": "6.23.0",
|
|
90
|
-
"react-select": "5.7.4",
|
|
91
|
-
"react-textarea-autosize": "8.5.3",
|
|
92
|
-
"react-virtualized-auto-sizer": "1.0.24",
|
|
93
|
-
"react-window": "1.8.10",
|
|
94
|
-
"sass": "1.55.0",
|
|
95
|
-
"scroll-into-view-if-needed": "^3.1.0",
|
|
96
|
-
"shiki": "^1.14.1",
|
|
97
|
-
"ts-node": "10.9.1",
|
|
98
|
-
"use-context-selector": "1.4.1",
|
|
99
|
-
"vite-plugin-lib-inject-css": "1.3.0",
|
|
100
|
-
"vite-plugin-svgr": "4.2.0",
|
|
101
|
-
"yargs": "17.7.2"
|
|
102
|
-
},
|
|
103
|
-
"devDependencies": {
|
|
104
|
-
"@babel/core": "7.19.6",
|
|
105
|
-
"@babel/preset-env": "7.19.4",
|
|
106
|
-
"@babel/preset-typescript": "7.18.6",
|
|
107
|
-
"@playwright/test": "^1.49.0",
|
|
108
|
-
"@types/adm-zip": "0.5.4",
|
|
109
|
-
"@types/glob": "7.2.0",
|
|
110
|
-
"@types/lodash-es": "4.17.6",
|
|
111
|
-
"@types/node": "18.11.5",
|
|
112
|
-
"@types/react": "18.2.23",
|
|
113
|
-
"@types/react-datepicker": "4.19.5",
|
|
114
|
-
"@types/react-dom": "18.2.8",
|
|
115
|
-
"@types/react-measure": "^2.0.8",
|
|
116
|
-
"@types/react-pdf": "5.7.2",
|
|
117
|
-
"@types/react-window": "1.8.8",
|
|
118
|
-
"@types/yargs": "17.0.31",
|
|
119
|
-
"@typescript-eslint/eslint-plugin": "6.7.4",
|
|
120
|
-
"@typescript-eslint/parser": "6.19.0",
|
|
121
|
-
"babel-loader": "8.2.5",
|
|
122
|
-
"clean-package": "2.2.0",
|
|
123
|
-
"eslint": "^8.57.0",
|
|
124
|
-
"eslint-import-resolver-typescript": "3.6.1",
|
|
125
|
-
"eslint-plugin-import": "2.28.1",
|
|
126
|
-
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
127
|
-
"eslint-plugin-react": "7.33.2",
|
|
128
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
129
|
-
"prettier": "^3.3.3",
|
|
130
|
-
"rimraf": "6.0.1",
|
|
131
|
-
"rollup-plugin-visualizer": "5.8.3",
|
|
132
|
-
"serve": "14.2.0",
|
|
133
|
-
"typedoc": "^0.26.2",
|
|
134
|
-
"typescript": "5.7.3",
|
|
135
|
-
"vite": "5.4.9",
|
|
136
|
-
"vite-plugin-dts": "4.5.0",
|
|
137
|
-
"vitest": "^3.0.3"
|
|
138
|
-
},
|
|
139
|
-
"optionalDependencies": {
|
|
140
|
-
"@rollup/rollup-linux-x64-gnu": "4.20.0",
|
|
141
|
-
"@rollup/rollup-win32-x64-msvc": "4.20.0"
|
|
142
|
-
},
|
|
143
|
-
"files": [
|
|
144
|
-
"dist",
|
|
145
|
-
"src/styles"
|
|
146
|
-
],
|
|
147
|
-
"bin": {
|
|
148
|
-
"xmlui": "dist/scripts/bin/bootstrap.js"
|
|
149
|
-
},
|
|
150
|
-
"clean-package": {
|
|
151
|
-
"replace": {
|
|
152
|
-
"bin": {
|
|
153
|
-
"xmlui": "dist/scripts/bin/bootstrap.js"
|
|
154
|
-
},
|
|
155
|
-
"main": "./dist/xmlui.umd.js",
|
|
156
|
-
"module": "./dist/xmlui.mjs",
|
|
157
|
-
"types": "./dist/xmlui.d.ts",
|
|
158
|
-
"exports": {
|
|
159
|
-
".": {
|
|
160
|
-
"import": "./dist/xmlui.mjs",
|
|
161
|
-
"require": "./dist/xmlui.umd.js"
|
|
162
|
-
},
|
|
163
|
-
"./*.css": {
|
|
164
|
-
"import": "./dist/*.css",
|
|
165
|
-
"require": "./dist/*.css"
|
|
166
|
-
},
|
|
167
|
-
"./index.scss": {
|
|
168
|
-
"import": "./src/index.scss",
|
|
169
|
-
"require": "./src/index.scss"
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
"main": "./dist/xmlui.umd.js",
|
|
175
|
-
"exports": {
|
|
176
|
-
".": {
|
|
177
|
-
"import": "./dist/xmlui.mjs",
|
|
178
|
-
"require": "./dist/xmlui.umd.js"
|
|
179
|
-
},
|
|
180
|
-
"./*.css": {
|
|
181
|
-
"import": "./dist/*.css",
|
|
182
|
-
"require": "./dist/*.css"
|
|
183
|
-
},
|
|
184
|
-
"./index.scss": {
|
|
185
|
-
"import": "./src/index.scss",
|
|
186
|
-
"require": "./src/index.scss"
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
"browserslist": {
|
|
190
|
-
"production": [
|
|
191
|
-
">0.2%",
|
|
192
|
-
"not dead",
|
|
193
|
-
"not op_mini all"
|
|
194
|
-
],
|
|
195
|
-
"development": [
|
|
196
|
-
"last 1 chrome version",
|
|
197
|
-
"last 1 firefox version",
|
|
198
|
-
"last 1 safari version"
|
|
199
|
-
]
|
|
200
|
-
},
|
|
201
|
-
"repository": {
|
|
202
|
-
"url": "https://github.com/xmlui-com/xmlui.git"
|
|
203
|
-
},
|
|
204
|
-
"msw": {
|
|
205
|
-
"workerDirectory": "src/testing/infrastructure"
|
|
206
|
-
},
|
|
207
|
-
"module": "./dist/xmlui.mjs",
|
|
208
|
-
"types": "./dist/xmlui.d.ts"
|
|
209
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.barChartComponentRenderer = exports.BarChartMd = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const PieChart_module_scss_1 = __importDefault(require("@components/PieChart/PieChart.module.scss"));
|
|
9
|
-
const ComponentDefs_1 = require("@abstractions/ComponentDefs");
|
|
10
|
-
const themeVars_1 = require("@components-core/theming/themeVars");
|
|
11
|
-
const renderers_1 = require("@components-core/renderers");
|
|
12
|
-
const BarChartNative_1 = require("./BarChartNative");
|
|
13
|
-
const COMP = "BarChart";
|
|
14
|
-
exports.BarChartMd = (0, ComponentDefs_1.createMetadata)({
|
|
15
|
-
status: "deprecated",
|
|
16
|
-
description: `The \`BarChart\` component represents a bar chart.`,
|
|
17
|
-
props: {
|
|
18
|
-
data: (0, ComponentDefs_1.d)(`This property is used to provide the component with data to display. The data itself needs ` +
|
|
19
|
-
`to be an array of objects.`),
|
|
20
|
-
keys: (0, ComponentDefs_1.d)(`This property specifies what the label texts are for each bar.`),
|
|
21
|
-
groupMode: (0, ComponentDefs_1.d)(`This property determines how the bars are layed out. The \`grouped\` variant lays out the ` +
|
|
22
|
-
`bars next to each other on the primary axis. The \`stacked\` variant stacks the bars on ` +
|
|
23
|
-
`top of each other.`),
|
|
24
|
-
layout: (0, ComponentDefs_1.d)(`This property determines the orientation of the bar chart. The \`vertical\` variant ` +
|
|
25
|
-
`specifies the horizontal axis as the primary and lays out the bars from left to right. ` +
|
|
26
|
-
`The \`horizontal\` variant specifies the vertical axis as the primary and has the bars ` +
|
|
27
|
-
`spread from top to bottom.`),
|
|
28
|
-
indexBy: (0, ComponentDefs_1.d)(`Determines which attribute groups the bars together.`),
|
|
29
|
-
},
|
|
30
|
-
themeVars: (0, themeVars_1.parseScssVar)(PieChart_module_scss_1.default.themeVars),
|
|
31
|
-
defaultThemeVars: {
|
|
32
|
-
"scheme-BarChart": "pastel1",
|
|
33
|
-
"color-text-BarChart": "$color-text-secondary",
|
|
34
|
-
"color-ticks-BarChart": "$color-text-primary",
|
|
35
|
-
"color-bg-tooltip-BarChart": "$color-bg-primary",
|
|
36
|
-
"color-text-tooltip-BarChart": "$color-text-primary",
|
|
37
|
-
"color-axis-BarChart": "$color-text-primary",
|
|
38
|
-
light: {
|
|
39
|
-
"scheme-BarChart": "set3",
|
|
40
|
-
},
|
|
41
|
-
dark: {
|
|
42
|
-
"scheme-BarChart": "dark2",
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
exports.barChartComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.BarChartMd, ({ extractValue, node, layoutCss }) => {
|
|
47
|
-
var _a, _b, _c, _d, _e;
|
|
48
|
-
return ((0, jsx_runtime_1.jsx)(BarChartNative_1.BarChart, { style: layoutCss, data: extractValue((_a = node.props) === null || _a === void 0 ? void 0 : _a.data), keys: extractValue((_b = node.props) === null || _b === void 0 ? void 0 : _b.keys), groupMode: extractValue((_c = node.props) === null || _c === void 0 ? void 0 : _c.groupMode), layout: extractValue((_d = node.props) === null || _d === void 0 ? void 0 : _d.layout), indexBy: extractValue((_e = node.props) === null || _e === void 0 ? void 0 : _e.indexBy) }));
|
|
49
|
-
});
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.BarChart = void 0;
|
|
40
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
|
-
const react_1 = __importStar(require("react"));
|
|
42
|
-
const ThemeContext_1 = require("@components-core/theming/ThemeContext");
|
|
43
|
-
const chart_color_schemes_1 = __importDefault(require("@components/chart-color-schemes"));
|
|
44
|
-
const hooks_1 = require("@components-core/utils/hooks");
|
|
45
|
-
const ResponsiveBar = react_1.default.lazy(() => Promise.resolve().then(() => __importStar(require("@nivo/bar"))).then((module) => ({ default: module.ResponsiveBar })));
|
|
46
|
-
const BarChart = ({ data, keys = [], groupMode = "grouped", layout = "vertical", indexBy = "id", style, }) => {
|
|
47
|
-
console.log(keys, data);
|
|
48
|
-
const { getThemeVar } = (0, ThemeContext_1.useTheme)();
|
|
49
|
-
const colors = (0, hooks_1.useColors)({
|
|
50
|
-
name: "color-text-BarChart",
|
|
51
|
-
format: "hex",
|
|
52
|
-
}, {
|
|
53
|
-
name: "color-ticks-BarChart",
|
|
54
|
-
format: "hex",
|
|
55
|
-
}, {
|
|
56
|
-
name: "color-bg-tooltip-BarChart",
|
|
57
|
-
format: "hex",
|
|
58
|
-
}, {
|
|
59
|
-
name: "color-text-tooltip-BarChart",
|
|
60
|
-
format: "hex",
|
|
61
|
-
}, {
|
|
62
|
-
name: "color-axis-BarChart",
|
|
63
|
-
format: "hex",
|
|
64
|
-
});
|
|
65
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: style, children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { children: (0, jsx_runtime_1.jsx)(ResponsiveBar, { data: data, keys: keys, layout: layout, groupMode: groupMode, theme: {
|
|
66
|
-
background: "transparent",
|
|
67
|
-
text: {
|
|
68
|
-
fontSize: 11,
|
|
69
|
-
fill: colors["color-text-BarChart"],
|
|
70
|
-
outlineWidth: 0,
|
|
71
|
-
outlineColor: "transparent",
|
|
72
|
-
},
|
|
73
|
-
axis: {
|
|
74
|
-
domain: {
|
|
75
|
-
line: {
|
|
76
|
-
stroke: colors["color-axis-BarChart"],
|
|
77
|
-
strokeWidth: 1,
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
legend: {
|
|
81
|
-
text: {
|
|
82
|
-
fontSize: 12,
|
|
83
|
-
fill: colors["border-color-BarChart"],
|
|
84
|
-
outlineWidth: 0,
|
|
85
|
-
outlineColor: "transparent",
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
ticks: {
|
|
89
|
-
line: {
|
|
90
|
-
stroke: "#777777",
|
|
91
|
-
strokeWidth: 1,
|
|
92
|
-
},
|
|
93
|
-
text: {
|
|
94
|
-
fontSize: 11,
|
|
95
|
-
fill: colors["color-ticks-BarChart"],
|
|
96
|
-
outlineWidth: 0,
|
|
97
|
-
outlineColor: "transparent",
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
grid: {
|
|
102
|
-
line: {
|
|
103
|
-
stroke: "#dddddd",
|
|
104
|
-
strokeWidth: 1,
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
legends: {
|
|
108
|
-
title: {
|
|
109
|
-
text: {
|
|
110
|
-
fontSize: 11,
|
|
111
|
-
fill: "#333333",
|
|
112
|
-
outlineWidth: 0,
|
|
113
|
-
outlineColor: "transparent",
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
text: {
|
|
117
|
-
fontSize: 11,
|
|
118
|
-
fill: "#333333",
|
|
119
|
-
outlineWidth: 0,
|
|
120
|
-
outlineColor: "transparent",
|
|
121
|
-
},
|
|
122
|
-
ticks: {
|
|
123
|
-
line: {},
|
|
124
|
-
text: {
|
|
125
|
-
fontSize: 10,
|
|
126
|
-
fill: "#333333",
|
|
127
|
-
outlineWidth: 0,
|
|
128
|
-
outlineColor: "transparent",
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
annotations: {
|
|
133
|
-
text: {
|
|
134
|
-
fontSize: 13,
|
|
135
|
-
fill: "#333333",
|
|
136
|
-
outlineWidth: 2,
|
|
137
|
-
outlineColor: "#ffffff",
|
|
138
|
-
outlineOpacity: 1,
|
|
139
|
-
},
|
|
140
|
-
link: {
|
|
141
|
-
stroke: "#000000",
|
|
142
|
-
strokeWidth: 1,
|
|
143
|
-
outlineWidth: 2,
|
|
144
|
-
outlineColor: "#ffffff",
|
|
145
|
-
outlineOpacity: 1,
|
|
146
|
-
},
|
|
147
|
-
outline: {
|
|
148
|
-
stroke: "#000000",
|
|
149
|
-
strokeWidth: 2,
|
|
150
|
-
outlineWidth: 2,
|
|
151
|
-
outlineColor: "#ffffff",
|
|
152
|
-
outlineOpacity: 1,
|
|
153
|
-
},
|
|
154
|
-
symbol: {
|
|
155
|
-
fill: "#000000",
|
|
156
|
-
outlineWidth: 2,
|
|
157
|
-
outlineColor: "#ffffff",
|
|
158
|
-
outlineOpacity: 1,
|
|
159
|
-
},
|
|
160
|
-
},
|
|
161
|
-
tooltip: {
|
|
162
|
-
wrapper: {},
|
|
163
|
-
container: {
|
|
164
|
-
background: colors["color-bg-tooltip-BarChart"],
|
|
165
|
-
color: colors["color-text-tooltip-BarChart"],
|
|
166
|
-
fontSize: 12,
|
|
167
|
-
},
|
|
168
|
-
basic: {},
|
|
169
|
-
chip: {},
|
|
170
|
-
table: {},
|
|
171
|
-
tableCell: {},
|
|
172
|
-
tableCellValue: {},
|
|
173
|
-
},
|
|
174
|
-
}, borderWidth: 1, borderColor: { from: "color", modifiers: [["darker", 0.2]] }, indexBy: indexBy, margin: { top: 10, bottom: 40, left: 60 }, padding: 0.3, valueScale: { type: "linear" }, indexScale: { type: "band", round: true }, colors: { scheme: chart_color_schemes_1.default[getThemeVar("scheme-BarChart") || "nivo"] }, axisTop: null, axisRight: null, labelSkipWidth: 12, labelSkipHeight: 12, role: "application" }) }) }));
|
|
175
|
-
};
|
|
176
|
-
exports.BarChart = BarChart;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.mapComponentRenderer = void 0;
|
|
40
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
|
-
const ComponentDefs_1 = require("@abstractions/ComponentDefs");
|
|
42
|
-
const themeVars_1 = require("@components-core/theming/themeVars");
|
|
43
|
-
const PieChart_module_scss_1 = __importDefault(require("@components/PieChart/PieChart.module.scss"));
|
|
44
|
-
const renderers_1 = require("@components-core/renderers");
|
|
45
|
-
const react_1 = __importStar(require("react"));
|
|
46
|
-
const world_countries_json_1 = __importDefault(require("./world_countries.json"));
|
|
47
|
-
const lodash_es_1 = require("lodash-es");
|
|
48
|
-
const ResponsiveChoropleth = react_1.default.lazy(() => Promise.resolve().then(() => __importStar(require("@nivo/geo"))).then((module) => ({ default: module.ResponsiveChoropleth })));
|
|
49
|
-
const Map = ({ data = [], style }) => {
|
|
50
|
-
// lot of extra props, the issue is here: https://github.com/plouc/nivo/issues/2634
|
|
51
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: style, children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { children: (0, jsx_runtime_1.jsx)(ResponsiveChoropleth, { data: data, margin: { top: 0, right: 0, bottom: 0, left: 0 }, colors: "blues", domain: [0, 1000000], unknownColor: "transparent", label: "properties.name", valueFormat: ".2s", projectionTranslation: [0.5, 0.6], projectionRotation: [0, 0, 0], enableGraticule: true, graticuleLineColor: "#dddddd", borderWidth: 0.1, borderColor: "#152538", features: world_countries_json_1.default.features,
|
|
52
|
-
// projectionType={"mercator"}
|
|
53
|
-
projectionType: "equirectangular", projectionScale: 100, fillColor: "transparent", graticuleLineWidth: 0, isInteractive: true, onMouseEnter: lodash_es_1.noop, onMouseMove: lodash_es_1.noop, onMouseLeave: lodash_es_1.noop, onClick: lodash_es_1.noop, role: "", match: "id", value: "value",
|
|
54
|
-
// @ts-ignore
|
|
55
|
-
layers: ["graticule", "features"] }) }) }));
|
|
56
|
-
};
|
|
57
|
-
const MapMd = (0, ComponentDefs_1.createMetadata)({
|
|
58
|
-
description: "(*** OBSOLETE ***) A simple map component",
|
|
59
|
-
props: {
|
|
60
|
-
data: (0, ComponentDefs_1.d)("The data to be displayed in the map"),
|
|
61
|
-
},
|
|
62
|
-
themeVars: (0, themeVars_1.parseScssVar)(PieChart_module_scss_1.default.themeVars),
|
|
63
|
-
defaultThemeVars: {
|
|
64
|
-
light: {
|
|
65
|
-
///
|
|
66
|
-
},
|
|
67
|
-
dark: {
|
|
68
|
-
///
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
exports.mapComponentRenderer = (0, renderers_1.createComponentRenderer)("Map", MapMd, ({ extractValue, node, layoutCss }) => {
|
|
73
|
-
var _a;
|
|
74
|
-
return (0, jsx_runtime_1.jsx)(Map, { data: extractValue((_a = node.props) === null || _a === void 0 ? void 0 : _a.data), style: layoutCss });
|
|
75
|
-
});
|