xmlui 0.11.4 → 0.11.7
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/bin/index.cjs +8836 -0
- package/dist/bin/index.js +8825 -0
- package/dist/lib/{apiInterceptorWorker-QiltRtq1.js → apiInterceptorWorker-dwrAyq6l.js} +126 -151
- package/dist/lib/{index-Cq0EMm3L.js → index-CwYK6iB4.js} +2502 -2675
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-DCigV4Zh.js → initMock-CvmWAkGr.js} +19 -22
- package/dist/lib/language-server-web-worker.js +13 -5
- package/dist/lib/language-server.js +11 -3
- package/dist/lib/{metadata-utils-BiolWMg9.js → metadata-utils-2bsMr4Gd.js} +58 -26
- package/dist/lib/{server-common-DyCHOk-z.js → server-common-DI3W4cob.js} +6297 -5930
- package/dist/lib/syntax-textmate.js +8 -2472
- package/dist/lib/testing.d.ts +1 -0
- package/dist/lib/testing.js +20 -23
- package/dist/lib/{transform-DHf9tQF7.js → transform-CQ_6R-43.js} +159 -126
- package/dist/lib/vite-xmlui-plugin.d.ts +10 -0
- package/dist/lib/vite-xmlui-plugin.js +8316 -0
- package/dist/lib/{xmlui-parser-CHN3mADy.js → xmlui-parser-CW8YmGjO.js} +10 -11
- package/dist/lib/xmlui-parser.js +2 -2
- package/dist/lib/{xmlui-serializer-CYNSHAlP.js → xmlui-serializer-CeCcgdVR.js} +19 -19
- package/dist/lib/xmlui.d.ts +122 -1
- package/dist/lib/xmlui.js +8 -3
- package/dist/metadata/{apiInterceptorWorker-Dql7QGw2.js → apiInterceptorWorker-Wgm2_zjg.js} +124 -149
- package/dist/metadata/{collectedComponentMetadata-CLaDZhmc.js → collectedComponentMetadata-CSFNLstl.js} +3169 -3302
- package/dist/metadata/{initMock-Buqah4JF.js → initMock-CyTd5aE8.js} +19 -22
- package/dist/metadata/xmlui-metadata.css +1 -0
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +171 -2
- package/dist/standalone/xmlui-standalone.umd.js +36 -37
- package/package.json +20 -50
- package/dist/lib/vite-xmlui-plugin/index.js +0 -13985
- package/dist/lib/vite-xmlui-plugin/package.json +0 -3
- package/dist/metadata/style.css +0 -1
- package/dist/scripts/bin/bootstrap.cjs +0 -4
- package/dist/scripts/bin/build-lib.js +0 -126
- package/dist/scripts/bin/build.js +0 -266
- package/dist/scripts/bin/index.js +0 -167
- package/dist/scripts/bin/preview.js +0 -44
- package/dist/scripts/bin/start.js +0 -52
- package/dist/scripts/bin/vite-xmlui-plugin.js +0 -109
- package/dist/scripts/bin/viteConfig.js +0 -144
- package/dist/scripts/package.json +0 -285
- package/dist/scripts/src/abstractions/ActionDefs.js +0 -2
- package/dist/scripts/src/abstractions/AppContextDefs.js +0 -4
- package/dist/scripts/src/abstractions/ComponentDefs.js +0 -2
- package/dist/scripts/src/abstractions/ContainerDefs.js +0 -2
- package/dist/scripts/src/abstractions/ExtensionDefs.js +0 -2
- package/dist/scripts/src/abstractions/FunctionDefs.js +0 -2
- package/dist/scripts/src/abstractions/RendererDefs.js +0 -2
- package/dist/scripts/src/abstractions/ThemingDefs.js +0 -2
- package/dist/scripts/src/abstractions/scripting/BlockScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Compilation.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LogicalThread.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LoopScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/ScriptParserError.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Token.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScopeExp.js +0 -2
- package/dist/scripts/src/abstractions/scripting/modules.js +0 -2
- package/dist/scripts/src/components/APICall/APICall.js +0 -130
- package/dist/scripts/src/components/APICall/APICall.spec.js +0 -910
- package/dist/scripts/src/components/APICall/APICallNative.js +0 -36
- package/dist/scripts/src/components/Accordion/Accordion.js +0 -97
- package/dist/scripts/src/components/Accordion/Accordion.spec.js +0 -969
- package/dist/scripts/src/components/Accordion/AccordionContext.js +0 -20
- package/dist/scripts/src/components/Accordion/AccordionItem.js +0 -35
- package/dist/scripts/src/components/Accordion/AccordionItemNative.js +0 -95
- package/dist/scripts/src/components/Accordion/AccordionNative.js +0 -141
- package/dist/scripts/src/components/Animation/AnimationNative.js +0 -263
- package/dist/scripts/src/components/App/App.js +0 -581
- package/dist/scripts/src/components/App/App.spec.js +0 -331
- package/dist/scripts/src/components/App/AppLayoutContext.js +0 -49
- package/dist/scripts/src/components/App/AppNative.js +0 -308
- package/dist/scripts/src/components/App/AppStateContext.js +0 -9
- package/dist/scripts/src/components/App/IndexerContext.js +0 -44
- package/dist/scripts/src/components/App/LinkInfoContext.js +0 -9
- package/dist/scripts/src/components/App/SearchContext.js +0 -35
- package/dist/scripts/src/components/App/Sheet.js +0 -99
- package/dist/scripts/src/components/AppHeader/AppHeader.js +0 -58
- package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +0 -169
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +0 -72
- package/dist/scripts/src/components/AppState/AppState.js +0 -75
- package/dist/scripts/src/components/AppState/AppState.spec.js +0 -292
- package/dist/scripts/src/components/AppState/AppStateNative.js +0 -51
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +0 -109
- package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +0 -546
- package/dist/scripts/src/components/AutoComplete/AutoCompleteContext.js +0 -19
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +0 -498
- package/dist/scripts/src/components/Avatar/Avatar.js +0 -55
- package/dist/scripts/src/components/Avatar/Avatar.spec.js +0 -1514
- package/dist/scripts/src/components/Avatar/AvatarNative.js +0 -58
- package/dist/scripts/src/components/Backdrop/Backdrop.js +0 -40
- package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +0 -131
- package/dist/scripts/src/components/Backdrop/BackdropNative.js +0 -25
- package/dist/scripts/src/components/Badge/Badge.js +0 -81
- package/dist/scripts/src/components/Badge/Badge.spec.js +0 -2214
- package/dist/scripts/src/components/Badge/BadgeNative.js +0 -46
- package/dist/scripts/src/components/Bookmark/Bookmark.js +0 -48
- package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +0 -230
- package/dist/scripts/src/components/Bookmark/BookmarkNative.js +0 -55
- package/dist/scripts/src/components/Breakout/Breakout.js +0 -17
- package/dist/scripts/src/components/Breakout/Breakout.spec.js +0 -56
- package/dist/scripts/src/components/Breakout/BreakoutNative.js +0 -24
- package/dist/scripts/src/components/Button/Button-style.spec.js +0 -274
- package/dist/scripts/src/components/Button/Button.js +0 -171
- package/dist/scripts/src/components/Button/Button.spec.js +0 -425
- package/dist/scripts/src/components/Button/ButtonNative.js +0 -109
- package/dist/scripts/src/components/Card/Card.js +0 -89
- package/dist/scripts/src/components/Card/Card.spec.js +0 -150
- package/dist/scripts/src/components/Card/CardNative.js +0 -41
- package/dist/scripts/src/components/Carousel/Carousel.js +0 -133
- package/dist/scripts/src/components/Carousel/Carousel.spec.js +0 -557
- package/dist/scripts/src/components/Carousel/CarouselContext.js +0 -57
- package/dist/scripts/src/components/Carousel/CarouselItem.js +0 -15
- package/dist/scripts/src/components/Carousel/CarouselItemNative.js +0 -40
- package/dist/scripts/src/components/Carousel/CarouselNative.js +0 -195
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +0 -34
- package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +0 -169
- package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +0 -30
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.js +0 -92
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +0 -999
- package/dist/scripts/src/components/Charts/AreaChart/AreaChartNative.js +0 -127
- package/dist/scripts/src/components/Charts/BarChart/BarChart.js +0 -97
- package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +0 -597
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +0 -317
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +0 -60
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +0 -608
- package/dist/scripts/src/components/Charts/LabelList/LabelList.js +0 -41
- package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +0 -539
- package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +0 -25
- package/dist/scripts/src/components/Charts/Legend/Legend.js +0 -33
- package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +0 -558
- package/dist/scripts/src/components/Charts/Legend/LegendNative.js +0 -64
- package/dist/scripts/src/components/Charts/LineChart/LineChart.js +0 -94
- package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +0 -450
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +0 -192
- package/dist/scripts/src/components/Charts/PieChart/PieChart.js +0 -64
- package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +0 -584
- package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +0 -167
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.js +0 -92
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +0 -571
- package/dist/scripts/src/components/Charts/RadarChart/RadarChartNative.js +0 -125
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.js +0 -27
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +0 -451
- package/dist/scripts/src/components/Charts/utils/ChartProvider.js +0 -65
- package/dist/scripts/src/components/Charts/utils/abstractions.js +0 -26
- package/dist/scripts/src/components/Checkbox/Checkbox.js +0 -81
- package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +0 -900
- package/dist/scripts/src/components/CodeBlock/CodeBlock.js +0 -42
- package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +0 -196
- package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +0 -127
- package/dist/scripts/src/components/CodeBlock/highlight-code.js +0 -273
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +0 -54
- package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +0 -355
- package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +0 -86
- package/dist/scripts/src/components/Column/Column.js +0 -89
- package/dist/scripts/src/components/Column/ColumnNative.js +0 -49
- package/dist/scripts/src/components/Column/TableContext.js +0 -12
- package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/ComponentProvider.js +0 -811
- package/dist/scripts/src/components/ComponentRegistryContext.js +0 -44
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +0 -51
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +0 -531
- package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +0 -31
- package/dist/scripts/src/components/DataSource/DataSource.js +0 -124
- package/dist/scripts/src/components/DateInput/DateInput.js +0 -197
- package/dist/scripts/src/components/DateInput/DateInput.spec.js +0 -1023
- package/dist/scripts/src/components/DateInput/DateInputNative.js +0 -734
- package/dist/scripts/src/components/DatePicker/DatePicker.js +0 -146
- package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +0 -394
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +0 -326
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +0 -196
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +0 -331
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +0 -146
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +0 -26
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +0 -29
- package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +0 -71
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +0 -101
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +0 -435
- package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +0 -109
- package/dist/scripts/src/components/FileInput/FileInput.js +0 -80
- package/dist/scripts/src/components/FileInput/FileInput.spec.js +0 -285
- package/dist/scripts/src/components/FileInput/FileInputNative.js +0 -161
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +0 -58
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +0 -296
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +0 -134
- package/dist/scripts/src/components/FlowLayout/FlowLayout.js +0 -65
- package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +0 -518
- package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +0 -153
- package/dist/scripts/src/components/Footer/Footer.js +0 -45
- package/dist/scripts/src/components/Footer/Footer.spec.js +0 -991
- package/dist/scripts/src/components/Footer/FooterNative.js +0 -35
- package/dist/scripts/src/components/Form/Form.js +0 -161
- package/dist/scripts/src/components/Form/Form.spec.js +0 -1719
- package/dist/scripts/src/components/Form/FormContext.js +0 -124
- package/dist/scripts/src/components/Form/FormNative.js +0 -463
- package/dist/scripts/src/components/Form/formActions.js +0 -115
- package/dist/scripts/src/components/FormItem/FormItem.js +0 -231
- package/dist/scripts/src/components/FormItem/FormItem.spec.js +0 -1022
- package/dist/scripts/src/components/FormItem/FormItemNative.js +0 -255
- package/dist/scripts/src/components/FormItem/HelperText.js +0 -27
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +0 -52
- package/dist/scripts/src/components/FormItem/Validations.js +0 -389
- package/dist/scripts/src/components/FormSection/FormSection.js +0 -56
- package/dist/scripts/src/components/Fragment/Fragment.js +0 -24
- package/dist/scripts/src/components/Fragment/Fragment.spec.js +0 -50
- package/dist/scripts/src/components/Heading/H1.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H2.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H3.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H4.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H5.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H6.spec.js +0 -66
- package/dist/scripts/src/components/Heading/Heading.js +0 -396
- package/dist/scripts/src/components/Heading/Heading.spec.js +0 -966
- package/dist/scripts/src/components/Heading/HeadingNative.js +0 -98
- package/dist/scripts/src/components/Heading/abstractions.js +0 -4
- package/dist/scripts/src/components/HoverCard/HoverCard.js +0 -18
- package/dist/scripts/src/components/HoverCard/HovercardNative.js +0 -44
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +0 -1441
- package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +0 -69
- package/dist/scripts/src/components/IFrame/IFrame.js +0 -77
- package/dist/scripts/src/components/IFrame/IFrame.spec.js +0 -527
- package/dist/scripts/src/components/IFrame/IFrameNative.js +0 -46
- package/dist/scripts/src/components/Icon/AdmonitionDanger.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionInfo.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionNote.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionTip.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionWarning.js +0 -10
- package/dist/scripts/src/components/Icon/ApiIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ArrowDropDown.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowDropUp.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowLeft.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowRight.js +0 -11
- package/dist/scripts/src/components/Icon/Attach.js +0 -10
- package/dist/scripts/src/components/Icon/Binding.js +0 -11
- package/dist/scripts/src/components/Icon/BoardIcon.js +0 -7
- package/dist/scripts/src/components/Icon/BoxIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CheckIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronDownIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronLeft.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronRight.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronUpIcon.js +0 -7
- package/dist/scripts/src/components/Icon/CodeFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CodeSandbox.js +0 -10
- package/dist/scripts/src/components/Icon/CompactListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ContentCopyIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DarkToLightIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DatabaseIcon.js +0 -11
- package/dist/scripts/src/components/Icon/DocFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DocIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DotMenuHorizontalIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DotMenuIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmailIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmptyFolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ErrorIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ExpressionIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FillPlusCricleIcon.js +0 -7
- package/dist/scripts/src/components/Icon/FilterIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/GlobeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HomeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HyperLinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/Icon.js +0 -42
- package/dist/scripts/src/components/Icon/Icon.spec.js +0 -527
- package/dist/scripts/src/components/Icon/IconNative.js +0 -127
- package/dist/scripts/src/components/Icon/ImageFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/Inspect.js +0 -10
- package/dist/scripts/src/components/Icon/LightToDark.js +0 -10
- package/dist/scripts/src/components/Icon/LinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/LooseListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/MoonIcon.js +0 -10
- package/dist/scripts/src/components/Icon/MoreOptionsIcon.js +0 -7
- package/dist/scripts/src/components/Icon/NoSortIcon.js +0 -8
- package/dist/scripts/src/components/Icon/PDFIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PenIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhoneIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhotoIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PlusIcon.js +0 -7
- package/dist/scripts/src/components/Icon/SearchIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ShareIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SortAscendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/SortDescendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/StarsIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SunIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrashIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrendingDownIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingLevelIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingUpIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TxtIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnknownFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnlinkIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UserIcon.js +0 -7
- package/dist/scripts/src/components/Icon/WarningIcon.js +0 -7
- package/dist/scripts/src/components/Icon/XlsIcon.js +0 -10
- package/dist/scripts/src/components/IconProvider.js +0 -300
- package/dist/scripts/src/components/IconRegistryContext.js +0 -318
- package/dist/scripts/src/components/Image/Image.js +0 -52
- package/dist/scripts/src/components/Image/Image.spec.js +0 -198
- package/dist/scripts/src/components/Image/ImageNative.js +0 -73
- package/dist/scripts/src/components/Input/InputAdornment.js +0 -28
- package/dist/scripts/src/components/Input/InputDivider.js +0 -35
- package/dist/scripts/src/components/Input/InputLabel.js +0 -25
- package/dist/scripts/src/components/Input/PartialInput.js +0 -155
- package/dist/scripts/src/components/Input/index.js +0 -5
- package/dist/scripts/src/components/InspectButton/InspectButton.js +0 -35
- package/dist/scripts/src/components/Items/Items.js +0 -39
- package/dist/scripts/src/components/Items/Items.spec.js +0 -397
- package/dist/scripts/src/components/Items/ItemsNative.js +0 -33
- package/dist/scripts/src/components/Link/Link.js +0 -82
- package/dist/scripts/src/components/Link/Link.spec.js +0 -894
- package/dist/scripts/src/components/Link/LinkNative.js +0 -48
- package/dist/scripts/src/components/List/List.js +0 -130
- package/dist/scripts/src/components/List/List.spec.js +0 -927
- package/dist/scripts/src/components/List/ListNative.js +0 -433
- package/dist/scripts/src/components/List/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Logo/Logo.js +0 -30
- package/dist/scripts/src/components/Logo/LogoNative.js +0 -32
- package/dist/scripts/src/components/Markdown/CodeText.js +0 -38
- package/dist/scripts/src/components/Markdown/Markdown.js +0 -143
- package/dist/scripts/src/components/Markdown/Markdown.spec.js +0 -188
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +0 -476
- package/dist/scripts/src/components/Markdown/parse-binding-expr.js +0 -60
- package/dist/scripts/src/components/Markdown/utils.js +0 -389
- package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +0 -111
- package/dist/scripts/src/components/ModalDialog/Dialog.js +0 -20
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +0 -83
- package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +0 -181
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +0 -217
- package/dist/scripts/src/components/ModalDialog/ModalVisibilityContext.js +0 -60
- package/dist/scripts/src/components/NavGroup/NavGroup.js +0 -70
- package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +0 -304
- package/dist/scripts/src/components/NavGroup/NavGroupContext.js +0 -13
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +0 -133
- package/dist/scripts/src/components/NavLink/NavLink.js +0 -86
- package/dist/scripts/src/components/NavLink/NavLink.spec.js +0 -864
- package/dist/scripts/src/components/NavLink/NavLinkNative.js +0 -73
- package/dist/scripts/src/components/NavPanel/NavPanel.js +0 -53
- package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +0 -864
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +0 -222
- package/dist/scripts/src/components/NestedApp/AppWithCodeView.js +0 -91
- package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +0 -84
- package/dist/scripts/src/components/NestedApp/NestedApp.js +0 -86
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +0 -231
- package/dist/scripts/src/components/NestedApp/Tooltip.js +0 -46
- package/dist/scripts/src/components/NestedApp/defaultProps.js +0 -12
- package/dist/scripts/src/components/NestedApp/utils.js +0 -67
- package/dist/scripts/src/components/NoResult/NoResult.js +0 -46
- package/dist/scripts/src/components/NoResult/NoResult.spec.js +0 -863
- package/dist/scripts/src/components/NoResult/NoResultNative.js +0 -31
- package/dist/scripts/src/components/NumberBox/NumberBox.js +0 -123
- package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +0 -979
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +0 -513
- package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +0 -109
- package/dist/scripts/src/components/Option/Option.js +0 -44
- package/dist/scripts/src/components/Option/Option.spec.js +0 -474
- package/dist/scripts/src/components/Option/OptionNative.js +0 -29
- package/dist/scripts/src/components/Option/OptionTypeProvider.js +0 -16
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +0 -13
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +0 -22
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +0 -80
- package/dist/scripts/src/components/Pages/Pages.js +0 -54
- package/dist/scripts/src/components/Pages/PagesNative.js +0 -57
- package/dist/scripts/src/components/Pagination/Pagination.js +0 -107
- package/dist/scripts/src/components/Pagination/Pagination.spec.js +0 -1008
- package/dist/scripts/src/components/Pagination/PaginationNative.js +0 -157
- package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +0 -24
- package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +0 -14
- package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +0 -20
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +0 -38
- package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +0 -166
- package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +0 -28
- package/dist/scripts/src/components/Queue/Queue.js +0 -85
- package/dist/scripts/src/components/Queue/Queue.spec.js +0 -624
- package/dist/scripts/src/components/Queue/QueueNative.js +0 -342
- package/dist/scripts/src/components/Queue/queueActions.js +0 -87
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +0 -61
- package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +0 -490
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +0 -158
- package/dist/scripts/src/components/RadioGroup/RadioItem.js +0 -28
- package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +0 -62
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +0 -24
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +0 -135
- package/dist/scripts/src/components/Redirect/Redirect.js +0 -31
- package/dist/scripts/src/components/Redirect/Redirect.spec.js +0 -527
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.js +0 -60
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +0 -76
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBarNative.js +0 -313
- package/dist/scripts/src/components/Select/HiddenOption.js +0 -20
- package/dist/scripts/src/components/Select/OptionContext.js +0 -12
- package/dist/scripts/src/components/Select/Select.js +0 -131
- package/dist/scripts/src/components/Select/Select.spec.js +0 -763
- package/dist/scripts/src/components/Select/SelectContext.js +0 -16
- package/dist/scripts/src/components/Select/SelectNative.js +0 -440
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +0 -25
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +0 -103
- package/dist/scripts/src/components/Slider/Slider.js +0 -115
- package/dist/scripts/src/components/Slider/Slider.spec.js +0 -677
- package/dist/scripts/src/components/Slider/SliderNative.js +0 -237
- package/dist/scripts/src/components/Slot/Slot.js +0 -17
- package/dist/scripts/src/components/Slot/Slot.spec.js +0 -368
- package/dist/scripts/src/components/SlotItem.js +0 -32
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +0 -20
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +0 -184
- package/dist/scripts/src/components/SpaceFiller/SpaceFillerNative.js +0 -10
- package/dist/scripts/src/components/Spinner/Spinner.js +0 -39
- package/dist/scripts/src/components/Spinner/Spinner.spec.js +0 -161
- package/dist/scripts/src/components/Spinner/SpinnerNative.js +0 -48
- package/dist/scripts/src/components/Splitter/HSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/Splitter.js +0 -163
- package/dist/scripts/src/components/Splitter/Splitter.spec.js +0 -856
- package/dist/scripts/src/components/Splitter/SplitterNative.js +0 -205
- package/dist/scripts/src/components/Splitter/VSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/utils.js +0 -22
- package/dist/scripts/src/components/Stack/CHStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/CVStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/HStack.spec.js +0 -67
- package/dist/scripts/src/components/Stack/Stack.js +0 -156
- package/dist/scripts/src/components/Stack/Stack.spec.js +0 -654
- package/dist/scripts/src/components/Stack/StackNative.js +0 -45
- package/dist/scripts/src/components/Stack/VStack.spec.js +0 -67
- package/dist/scripts/src/components/StickyBox/StickyBox.js +0 -34
- package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +0 -42
- package/dist/scripts/src/components/Switch/Switch.js +0 -80
- package/dist/scripts/src/components/Switch/Switch.spec.js +0 -834
- package/dist/scripts/src/components/Table/Table.js +0 -268
- package/dist/scripts/src/components/Table/Table.spec.js +0 -827
- package/dist/scripts/src/components/Table/TableNative.js +0 -670
- package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Table/useRowSelection.js +0 -454
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +0 -76
- package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +0 -838
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +0 -81
- package/dist/scripts/src/components/Tabs/TabContext.js +0 -58
- package/dist/scripts/src/components/Tabs/TabItem.js +0 -44
- package/dist/scripts/src/components/Tabs/TabItemNative.js +0 -53
- package/dist/scripts/src/components/Tabs/Tabs.js +0 -95
- package/dist/scripts/src/components/Tabs/Tabs.spec.js +0 -1237
- package/dist/scripts/src/components/Tabs/TabsNative.js +0 -137
- package/dist/scripts/src/components/Text/Text.js +0 -181
- package/dist/scripts/src/components/Text/Text.spec.js +0 -1676
- package/dist/scripts/src/components/Text/TextNative.js +0 -244
- package/dist/scripts/src/components/TextArea/TextArea.js +0 -103
- package/dist/scripts/src/components/TextArea/TextArea.spec.js +0 -886
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +0 -196
- package/dist/scripts/src/components/TextArea/TextAreaResizable.js +0 -73
- package/dist/scripts/src/components/TextArea/useComposedRef.js +0 -60
- package/dist/scripts/src/components/TextBox/TextBox.js +0 -133
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +0 -758
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +0 -142
- package/dist/scripts/src/components/Theme/NotificationToast.js +0 -64
- package/dist/scripts/src/components/Theme/Theme.js +0 -47
- package/dist/scripts/src/components/Theme/Theme.spec.js +0 -390
- package/dist/scripts/src/components/Theme/ThemeNative.js +0 -162
- package/dist/scripts/src/components/TimeInput/TimeInput.js +0 -149
- package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +0 -1236
- package/dist/scripts/src/components/TimeInput/TimeInputNative.js +0 -650
- package/dist/scripts/src/components/TimeInput/utils.js +0 -197
- package/dist/scripts/src/components/Timer/Timer.js +0 -62
- package/dist/scripts/src/components/Timer/Timer.spec.js +0 -328
- package/dist/scripts/src/components/Timer/TimerNative.js +0 -178
- package/dist/scripts/src/components/Toggle/Toggle.js +0 -172
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +0 -63
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +0 -414
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.js +0 -51
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +0 -89
- package/dist/scripts/src/components/ToneSwitch/ToneSwitchNative.js +0 -42
- package/dist/scripts/src/components/Tooltip/Tooltip.js +0 -118
- package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +0 -418
- package/dist/scripts/src/components/Tooltip/TooltipNative.js +0 -160
- package/dist/scripts/src/components/Tree/Tree-dynamic.spec.js +0 -2894
- package/dist/scripts/src/components/Tree/Tree-icons.spec.js +0 -206
- package/dist/scripts/src/components/Tree/Tree.spec.js +0 -2839
- package/dist/scripts/src/components/Tree/TreeComponent.js +0 -324
- package/dist/scripts/src/components/Tree/TreeNative.js +0 -1129
- package/dist/scripts/src/components/Tree/testData.js +0 -296
- package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +0 -49
- package/dist/scripts/src/components/TreeDisplay/TreeDisplayNative.js +0 -104
- package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +0 -64
- package/dist/scripts/src/components/VisuallyHidden.js +0 -21
- package/dist/scripts/src/components/abstractions.js +0 -341
- package/dist/scripts/src/components/chart-color-schemes.js +0 -43
- package/dist/scripts/src/components/collectedComponentMetadata.js +0 -316
- package/dist/scripts/src/components/component-utils.js +0 -29
- package/dist/scripts/src/components/container-helpers.js +0 -26
- package/dist/scripts/src/components/metadata-helpers.js +0 -269
- package/dist/scripts/src/components-core/ApiBoundComponent.js +0 -227
- package/dist/scripts/src/components-core/AppContext.js +0 -16
- package/dist/scripts/src/components-core/ComponentDecorator.js +0 -74
- package/dist/scripts/src/components-core/ComponentViewer.js +0 -69
- package/dist/scripts/src/components-core/CompoundComponent.js +0 -145
- package/dist/scripts/src/components-core/DebugViewProvider.js +0 -43
- package/dist/scripts/src/components-core/EngineError.js +0 -91
- package/dist/scripts/src/components-core/InspectorContext.js +0 -248
- package/dist/scripts/src/components-core/LoaderComponent.js +0 -109
- package/dist/scripts/src/components-core/RestApiProxy.js +0 -468
- package/dist/scripts/src/components-core/StandaloneApp.js +0 -821
- package/dist/scripts/src/components-core/StandaloneExtensionManager.js +0 -44
- package/dist/scripts/src/components-core/TableOfContentsContext.js +0 -168
- package/dist/scripts/src/components-core/abstractions/ComponentRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/LoaderRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
- package/dist/scripts/src/components-core/abstractions/treeAbstractions.js +0 -2
- package/dist/scripts/src/components-core/action/APICall.js +0 -284
- package/dist/scripts/src/components-core/action/FileDownloadAction.js +0 -80
- package/dist/scripts/src/components-core/action/FileUploadAction.js +0 -88
- package/dist/scripts/src/components-core/action/NavigateAction.js +0 -20
- package/dist/scripts/src/components-core/action/TimedAction.js +0 -21
- package/dist/scripts/src/components-core/action/actions.js +0 -15
- package/dist/scripts/src/components-core/appContext/date-functions.js +0 -24
- package/dist/scripts/src/components-core/appContext/math-function.js +0 -27
- package/dist/scripts/src/components-core/appContext/misc-utils.js +0 -14
- package/dist/scripts/src/components-core/behaviors/Behavior.js +0 -2
- package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +0 -201
- package/dist/scripts/src/components-core/component-hooks.js +0 -25
- package/dist/scripts/src/components-core/constants.js +0 -18
- package/dist/scripts/src/components-core/descriptorHelper.js +0 -96
- package/dist/scripts/src/components-core/devtools/InspectorDialog.js +0 -135
- package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +0 -8
- package/dist/scripts/src/components-core/event-handlers.js +0 -46
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +0 -247
- package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +0 -167
- package/dist/scripts/src/components-core/interception/Backend.js +0 -141
- 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 -44
- package/dist/scripts/src/components-core/interception/initMock.js +0 -20
- package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +0 -9
- package/dist/scripts/src/components-core/loader/ApiLoader.js +0 -54
- package/dist/scripts/src/components-core/loader/DataLoader.js +0 -330
- package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +0 -60
- package/dist/scripts/src/components-core/loader/Loader.js +0 -159
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +0 -43
- package/dist/scripts/src/components-core/loader/PageableLoader.js +0 -272
- package/dist/scripts/src/components-core/markup-check.js +0 -279
- package/dist/scripts/src/components-core/parts.js +0 -11
- package/dist/scripts/src/components-core/renderers.js +0 -76
- package/dist/scripts/src/components-core/rendering/AppContent.js +0 -400
- package/dist/scripts/src/components-core/rendering/AppRoot.js +0 -87
- package/dist/scripts/src/components-core/rendering/AppWrapper.js +0 -49
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +0 -380
- package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +0 -166
- package/dist/scripts/src/components-core/rendering/Container.js +0 -621
- package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +0 -94
- package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +0 -65
- package/dist/scripts/src/components-core/rendering/InvalidComponent.js +0 -17
- package/dist/scripts/src/components-core/rendering/StandaloneComponent.js +0 -39
- package/dist/scripts/src/components-core/rendering/StateContainer.js +0 -350
- package/dist/scripts/src/components-core/rendering/UnknownComponent.js +0 -15
- package/dist/scripts/src/components-core/rendering/buildProxy.js +0 -58
- package/dist/scripts/src/components-core/rendering/collectFnVarDeps.js +0 -49
- package/dist/scripts/src/components-core/rendering/containers.js +0 -19
- package/dist/scripts/src/components-core/rendering/nodeUtils.js +0 -6
- package/dist/scripts/src/components-core/rendering/reducer.js +0 -160
- package/dist/scripts/src/components-core/rendering/renderChild.js +0 -82
- package/dist/scripts/src/components-core/rendering/valueExtractor.js +0 -216
- package/dist/scripts/src/components-core/reportEngineError.js +0 -62
- package/dist/scripts/src/components-core/script-runner/AttributeValueParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/BindingTreeEvaluationContext.js +0 -33
- package/dist/scripts/src/components-core/script-runner/ParameterParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/ScriptingSourceTree.js +0 -45
- package/dist/scripts/src/components-core/script-runner/asyncProxy.js +0 -96
- package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +0 -34
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +0 -613
- package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +0 -439
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +0 -522
- package/dist/scripts/src/components-core/script-runner/process-statement-async.js +0 -761
- package/dist/scripts/src/components-core/script-runner/process-statement-common.js +0 -208
- package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +0 -746
- package/dist/scripts/src/components-core/script-runner/simplify-expression.js +0 -386
- package/dist/scripts/src/components-core/script-runner/statement-queue.js +0 -63
- package/dist/scripts/src/components-core/script-runner/visitors.js +0 -369
- package/dist/scripts/src/components-core/theming/StyleContext.js +0 -133
- package/dist/scripts/src/components-core/theming/StyleRegistry.js +0 -171
- package/dist/scripts/src/components-core/theming/ThemeContext.js +0 -53
- package/dist/scripts/src/components-core/theming/ThemeProvider.js +0 -342
- package/dist/scripts/src/components-core/theming/component-layout-resolver.js +0 -153
- package/dist/scripts/src/components-core/theming/extendThemeUtils.js +0 -47
- package/dist/scripts/src/components-core/theming/hvar.js +0 -105
- package/dist/scripts/src/components-core/theming/layout-resolver.js +0 -388
- package/dist/scripts/src/components-core/theming/parse-layout-props.js +0 -136
- package/dist/scripts/src/components-core/theming/themeVars.js +0 -62
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +0 -15
- package/dist/scripts/src/components-core/theming/themes/palette.js +0 -57
- package/dist/scripts/src/components-core/theming/themes/root.js +0 -434
- package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
- package/dist/scripts/src/components-core/theming/themes/theme-colors.js +0 -561
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +0 -57
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +0 -733
- package/dist/scripts/src/components-core/theming/utils.js +0 -31
- package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +0 -41
- package/dist/scripts/src/components-core/utils/LruCache.js +0 -184
- package/dist/scripts/src/components-core/utils/actionUtils.js +0 -32
- package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
- package/dist/scripts/src/components-core/utils/base64-utils.js +0 -124
- package/dist/scripts/src/components-core/utils/compound-utils.js +0 -11
- package/dist/scripts/src/components-core/utils/css-utils.js +0 -179
- package/dist/scripts/src/components-core/utils/date-utils.js +0 -186
- package/dist/scripts/src/components-core/utils/extractParam.js +0 -281
- package/dist/scripts/src/components-core/utils/hooks.js +0 -400
- package/dist/scripts/src/components-core/utils/mergeProps.js +0 -45
- package/dist/scripts/src/components-core/utils/misc.js +0 -539
- package/dist/scripts/src/components-core/utils/request-params.js +0 -70
- package/dist/scripts/src/components-core/utils/statementUtils.js +0 -224
- package/dist/scripts/src/components-core/utils/treeUtils.js +0 -226
- package/dist/scripts/src/components-core/xmlui-parser.js +0 -548
- package/dist/scripts/src/index-standalone.js +0 -61
- package/dist/scripts/src/index.js +0 -158
- package/dist/scripts/src/language-server/server-common.js +0 -152
- package/dist/scripts/src/language-server/server-web-worker.js +0 -47
- package/dist/scripts/src/language-server/server.js +0 -42
- package/dist/scripts/src/language-server/services/common/docs-generation.js +0 -73
- package/dist/scripts/src/language-server/services/common/lsp-utils.js +0 -9
- package/dist/scripts/src/language-server/services/common/metadata-utils.js +0 -157
- package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +0 -127
- package/dist/scripts/src/language-server/services/completion.js +0 -288
- package/dist/scripts/src/language-server/services/diagnostic.js +0 -19
- package/dist/scripts/src/language-server/services/format.js +0 -569
- package/dist/scripts/src/language-server/services/hover.js +0 -164
- package/dist/scripts/src/language-server/xmlui-metadata-generated.js +0 -16276
- package/dist/scripts/src/logging/LoggerContext.js +0 -22
- package/dist/scripts/src/logging/LoggerInitializer.js +0 -14
- package/dist/scripts/src/logging/LoggerService.js +0 -60
- package/dist/scripts/src/logging/xmlui.js +0 -21
- package/dist/scripts/src/parsers/common/GenericToken.js +0 -2
- package/dist/scripts/src/parsers/common/InputStream.js +0 -59
- package/dist/scripts/src/parsers/common/utils.js +0 -19
- package/dist/scripts/src/parsers/scripting/Lexer.js +0 -1097
- package/dist/scripts/src/parsers/scripting/Parser.js +0 -2638
- package/dist/scripts/src/parsers/scripting/ParserError.js +0 -47
- package/dist/scripts/src/parsers/scripting/ScriptingNodeTypes.js +0 -50
- package/dist/scripts/src/parsers/scripting/TokenTrait.js +0 -108
- package/dist/scripts/src/parsers/scripting/TokenType.js +0 -109
- package/dist/scripts/src/parsers/scripting/code-behind-collect.js +0 -101
- package/dist/scripts/src/parsers/scripting/modules.js +0 -105
- package/dist/scripts/src/parsers/scripting/tree-visitor.js +0 -601
- package/dist/scripts/src/parsers/style-parser/StyleInputStream.js +0 -39
- package/dist/scripts/src/parsers/style-parser/StyleLexer.js +0 -623
- package/dist/scripts/src/parsers/style-parser/StyleParser.js +0 -453
- package/dist/scripts/src/parsers/style-parser/errors.js +0 -37
- package/dist/scripts/src/parsers/style-parser/source-tree.js +0 -2
- package/dist/scripts/src/parsers/style-parser/tokens.js +0 -43
- package/dist/scripts/src/parsers/xmlui-parser/CharacterCodes.js +0 -136
- package/dist/scripts/src/parsers/xmlui-parser/ParserError.js +0 -60
- package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +0 -172
- package/dist/scripts/src/parsers/xmlui-parser/fileExtensions.js +0 -6
- package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
- package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -165
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +0 -627
- package/dist/scripts/src/parsers/xmlui-parser/scanner.js +0 -415
- package/dist/scripts/src/parsers/xmlui-parser/syntax-kind.js +0 -123
- package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -1131
- package/dist/scripts/src/parsers/xmlui-parser/utils.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
- package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
- package/dist/scripts/src/syntax/monaco/index.js +0 -14
- package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
- package/dist/scripts/src/syntax/textMate/index.js +0 -14
- package/dist/scripts/src/syntax/textMate/xmlui-dark.json +0 -631
- package/dist/scripts/src/syntax/textMate/xmlui-light.json +0 -565
- package/dist/scripts/src/syntax/textMate/xmlui.json +0 -564
- package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +0 -341
- package/dist/scripts/src/testing/ComponentDrivers.js +0 -1380
- package/dist/scripts/src/testing/assertions.js +0 -444
- package/dist/scripts/src/testing/component-test-helpers.js +0 -373
- package/dist/scripts/src/testing/drivers/DateInputDriver.js +0 -19
- package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +0 -10
- package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +0 -44
- package/dist/scripts/src/testing/drivers/TextBoxDriver.js +0 -20
- package/dist/scripts/src/testing/drivers/TimeInputDriver.js +0 -22
- package/dist/scripts/src/testing/drivers/TimerDriver.js +0 -64
- package/dist/scripts/src/testing/drivers/TreeDriver.js +0 -13
- package/dist/scripts/src/testing/drivers/index.js +0 -9
- package/dist/scripts/src/testing/fixtures.js +0 -519
- package/dist/scripts/src/testing/index.js +0 -69
- package/dist/scripts/src/testing/infrastructure/TestBed.js +0 -17
- package/dist/scripts/src/testing/infrastructure/main.js +0 -9
- package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +0 -266
- package/dist/scripts/src/testing/themed-app-test-helpers.js +0 -133
|
@@ -1,670 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.defaultProps = exports.Table = exports.CheckboxToleranceValues = exports.TablePaginationControlsLocationValues = void 0;
|
|
27
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
const react_1 = require("react");
|
|
29
|
-
const react_dom_1 = require("react-dom");
|
|
30
|
-
const react_table_1 = require("@tanstack/react-table");
|
|
31
|
-
const react_compose_refs_1 = require("@radix-ui/react-compose-refs");
|
|
32
|
-
const react_virtual_1 = require("@tanstack/react-virtual");
|
|
33
|
-
const lodash_es_1 = require("lodash-es");
|
|
34
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
35
|
-
const Table_module_scss_1 = __importDefault(require("./Table.module.scss"));
|
|
36
|
-
require("./react-table-config.d.ts");
|
|
37
|
-
const constants_1 = require("../../components-core/constants");
|
|
38
|
-
const misc_1 = require("../../components-core/utils/misc");
|
|
39
|
-
const hooks_1 = require("../../components-core/utils/hooks");
|
|
40
|
-
const ThemeContext_1 = require("../../components-core/theming/ThemeContext");
|
|
41
|
-
const transformThemeVars_1 = require("../../components-core/theming/transformThemeVars");
|
|
42
|
-
const SpinnerNative_1 = require("../Spinner/SpinnerNative");
|
|
43
|
-
const Toggle_1 = require("../Toggle/Toggle");
|
|
44
|
-
const IconNative_1 = require("../Icon/IconNative");
|
|
45
|
-
const useRowSelection_1 = __importDefault(require("./useRowSelection"));
|
|
46
|
-
const PaginationNative_1 = require("../Pagination/PaginationNative");
|
|
47
|
-
exports.TablePaginationControlsLocationValues = ["top", "bottom", "both"];
|
|
48
|
-
exports.CheckboxToleranceValues = ["none", "compact", "comfortable", "spacious"];
|
|
49
|
-
function defaultIsRowDisabled(_) {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
const SELECT_COLUMN_WIDTH = 42;
|
|
53
|
-
const DEFAULT_PAGE_SIZES = [10];
|
|
54
|
-
/**
|
|
55
|
-
* Maps checkbox tolerance values to pixel values
|
|
56
|
-
* @param tolerance - The tolerance level
|
|
57
|
-
* @returns The number of pixels for the tolerance
|
|
58
|
-
*/
|
|
59
|
-
const getCheckboxTolerancePixels = (tolerance) => {
|
|
60
|
-
switch (tolerance) {
|
|
61
|
-
case "none":
|
|
62
|
-
return 0;
|
|
63
|
-
case "compact":
|
|
64
|
-
return 8;
|
|
65
|
-
case "comfortable":
|
|
66
|
-
return 12;
|
|
67
|
-
case "spacious":
|
|
68
|
-
return 16;
|
|
69
|
-
default:
|
|
70
|
-
return 8; // fallback to compact
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Helper function to check if a point is within the checkbox boundary
|
|
75
|
-
* @param pointX - X coordinate of the point to check
|
|
76
|
-
* @param pointY - Y coordinate of the point to check
|
|
77
|
-
* @param checkboxRect - Bounding rectangle of the checkbox
|
|
78
|
-
* @param tolerancePixels - Number of pixels to extend the boundary
|
|
79
|
-
* @returns true if the point is within the checkbox or within tolerancePixels of its boundary
|
|
80
|
-
*/
|
|
81
|
-
const isWithinCheckboxBoundary = (pointX, pointY, checkboxRect, tolerancePixels) => {
|
|
82
|
-
// Calculate distance from point to checkbox boundaries
|
|
83
|
-
const distanceToLeft = Math.abs(pointX - checkboxRect.left);
|
|
84
|
-
const distanceToRight = Math.abs(pointX - checkboxRect.right);
|
|
85
|
-
const distanceToTop = Math.abs(pointY - checkboxRect.top);
|
|
86
|
-
const distanceToBottom = Math.abs(pointY - checkboxRect.bottom);
|
|
87
|
-
// Check if point is within the checkbox bounds or within boundary pixels of any edge
|
|
88
|
-
const withinHorizontalBounds = pointX >= checkboxRect.left && pointX <= checkboxRect.right;
|
|
89
|
-
const withinVerticalBounds = pointY >= checkboxRect.top && pointY <= checkboxRect.bottom;
|
|
90
|
-
const withinCheckbox = withinHorizontalBounds && withinVerticalBounds;
|
|
91
|
-
const nearHorizontalBoundary = (withinVerticalBounds && (distanceToLeft <= tolerancePixels || distanceToRight <= tolerancePixels));
|
|
92
|
-
const nearVerticalBoundary = (withinHorizontalBounds && (distanceToTop <= tolerancePixels || distanceToBottom <= tolerancePixels));
|
|
93
|
-
return withinCheckbox || nearHorizontalBoundary || nearVerticalBoundary;
|
|
94
|
-
};
|
|
95
|
-
//These are the important styles to make sticky column pinning work!
|
|
96
|
-
//Apply styles like this using your CSS strategy of choice with this kind of logic to head cells, data cells, footer cells, etc.
|
|
97
|
-
//View the index.css file for more needed styles such as border-collapse: separate
|
|
98
|
-
const getCommonPinningStyles = (column) => {
|
|
99
|
-
const isPinned = column.getIsPinned();
|
|
100
|
-
// const isLastLeftPinnedColumn = isPinned === "left" && column.getIsLastColumn("left");
|
|
101
|
-
// const isFirstRightPinnedColumn = isPinned === "right" && column.getIsFirstColumn("right");
|
|
102
|
-
return {
|
|
103
|
-
// boxShadow: isLastLeftPinnedColumn
|
|
104
|
-
// ? "-4px 0 4px -4px gray inset"
|
|
105
|
-
// : isFirstRightPinnedColumn
|
|
106
|
-
// ? "4px 0 4px -4px gray inset"
|
|
107
|
-
// : undefined,
|
|
108
|
-
left: isPinned === "left" ? `${column.getStart("left")}px` : undefined,
|
|
109
|
-
right: isPinned === "right" ? `${column.getAfter("right")}px` : undefined,
|
|
110
|
-
opacity: isPinned ? 0.95 : undefined,
|
|
111
|
-
position: isPinned ? "sticky" : "relative",
|
|
112
|
-
backgroundColor: isPinned ? "inherit" : undefined,
|
|
113
|
-
zIndex: isPinned ? 1 : undefined,
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
// eslint-disable-next-line react/display-name
|
|
117
|
-
exports.Table = (0, react_1.forwardRef)((_a, forwardedRef) => {
|
|
118
|
-
var _b, _c, _d, _e, _f;
|
|
119
|
-
var { data = exports.defaultProps.data, columns = exports.defaultProps.columns, isPaginated = exports.defaultProps.isPaginated, loading = exports.defaultProps.loading, headerHeight, rowsSelectable = exports.defaultProps.rowsSelectable, enableMultiRowSelection = exports.defaultProps.enableMultiRowSelection, initiallySelected = exports.defaultProps.initiallySelected, syncWithAppState, pageSizeOptions = exports.defaultProps.pageSizeOptions, pageSize = (pageSizeOptions === null || pageSizeOptions === void 0 ? void 0 : pageSizeOptions[0]) || DEFAULT_PAGE_SIZES[0], currentPageIndex = 0, rowDisabledPredicate = defaultIsRowDisabled, sortBy, sortingDirection = exports.defaultProps.sortingDirection, iconSortAsc, iconSortDesc, iconNoSort, sortingDidChange, willSort, style, className, noDataRenderer, autoFocus = exports.defaultProps.autoFocus, hideHeader = exports.defaultProps.hideHeader, hideNoDataView = exports.defaultProps.hideNoDataView, alwaysShowSelectionHeader = exports.defaultProps.alwaysShowSelectionHeader, registerComponentApi, onSelectionDidChange, noBottomBorder = exports.defaultProps.noBottomBorder, paginationControlsLocation = exports.defaultProps.paginationControlsLocation, cellVerticalAlign = exports.defaultProps.cellVerticalAlign, buttonRowPosition = exports.defaultProps.buttonRowPosition, pageSizeSelectorPosition = exports.defaultProps.pageSizeSelectorPosition, pageInfoPosition = exports.defaultProps.pageInfoPosition, showCurrentPage = exports.defaultProps.showCurrentPage, showPageInfo = exports.defaultProps.showPageInfo, showPageSizeSelector = exports.defaultProps.showPageSizeSelector, checkboxTolerance = exports.defaultProps.checkboxTolerance } = _a, rest = __rest(_a, ["data", "columns", "isPaginated", "loading", "headerHeight", "rowsSelectable", "enableMultiRowSelection", "initiallySelected", "syncWithAppState", "pageSizeOptions", "pageSize", "currentPageIndex", "rowDisabledPredicate", "sortBy", "sortingDirection", "iconSortAsc", "iconSortDesc", "iconNoSort", "sortingDidChange", "willSort", "style", "className", "noDataRenderer", "autoFocus", "hideHeader", "hideNoDataView", "alwaysShowSelectionHeader", "registerComponentApi", "onSelectionDidChange", "noBottomBorder", "paginationControlsLocation", "cellVerticalAlign", "buttonRowPosition", "pageSizeSelectorPosition", "pageInfoPosition", "showCurrentPage", "showPageInfo", "showPageSizeSelector", "checkboxTolerance"])
|
|
120
|
-
// cols
|
|
121
|
-
;
|
|
122
|
-
const { getThemeVar } = (0, ThemeContext_1.useTheme)();
|
|
123
|
-
const safeData = Array.isArray(data) ? data : constants_1.EMPTY_ARRAY;
|
|
124
|
-
const wrapperRef = (0, react_1.useRef)(null);
|
|
125
|
-
const ref = forwardedRef ? (0, react_compose_refs_1.composeRefs)(wrapperRef, forwardedRef) : wrapperRef;
|
|
126
|
-
const tableRef = (0, react_1.useRef)(null);
|
|
127
|
-
const estimatedHeightRef = (0, react_1.useRef)(null);
|
|
128
|
-
const safeColumns = (0, react_1.useMemo)(() => {
|
|
129
|
-
if (columns) {
|
|
130
|
-
return columns;
|
|
131
|
-
}
|
|
132
|
-
if (!safeData.length) {
|
|
133
|
-
return constants_1.EMPTY_ARRAY;
|
|
134
|
-
}
|
|
135
|
-
return Object.keys(safeData[0]).map((key) => ({ header: key, accessorKey: key }));
|
|
136
|
-
}, [columns, safeData]);
|
|
137
|
-
(0, react_1.useEffect)(() => {
|
|
138
|
-
if (autoFocus) {
|
|
139
|
-
wrapperRef.current.focus();
|
|
140
|
-
}
|
|
141
|
-
}, [autoFocus]);
|
|
142
|
-
// --- Keep track of visible table rows
|
|
143
|
-
const [visibleItems, setVisibleItems] = (0, react_1.useState)(constants_1.EMPTY_ARRAY);
|
|
144
|
-
// --- Track which row should show forced hover for checkbox
|
|
145
|
-
const [hoveredRowId, setHoveredRowId] = (0, react_1.useState)(null);
|
|
146
|
-
// --- Track if the header checkbox should show forced hover
|
|
147
|
-
const [headerCheckboxHovered, setHeaderCheckboxHovered] = (0, react_1.useState)(false);
|
|
148
|
-
// --- Calculate tolerance pixels from the prop
|
|
149
|
-
const tolerancePixels = getCheckboxTolerancePixels(checkboxTolerance);
|
|
150
|
-
// --- Get the operations to manage selected rows in a table
|
|
151
|
-
const { toggleRow, checkAllRows, focusedIndex, onKeyDown, selectedRowIdMap, idKey, selectionApi, } = (0, useRowSelection_1.default)({
|
|
152
|
-
items: safeData,
|
|
153
|
-
visibleItems,
|
|
154
|
-
rowsSelectable,
|
|
155
|
-
enableMultiRowSelection,
|
|
156
|
-
rowDisabledPredicate,
|
|
157
|
-
onSelectionDidChange,
|
|
158
|
-
initiallySelected,
|
|
159
|
-
syncWithAppState,
|
|
160
|
-
});
|
|
161
|
-
// --- Create data with order information whenever the items in the table change
|
|
162
|
-
const dataWithOrder = (0, react_1.useMemo)(() => {
|
|
163
|
-
return safeData.map((item, index) => {
|
|
164
|
-
return Object.assign(Object.assign({}, item), { order: index + 1 });
|
|
165
|
-
});
|
|
166
|
-
}, [safeData]);
|
|
167
|
-
// --- Local or external sorting of data
|
|
168
|
-
const [_sortBy, _setSortBy] = (0, react_1.useState)(sortBy);
|
|
169
|
-
const [_sortingDirection, _setSortingDirection] = (0, react_1.useState)(sortingDirection);
|
|
170
|
-
(0, react_1.useLayoutEffect)(() => {
|
|
171
|
-
_setSortBy(sortBy);
|
|
172
|
-
}, [sortBy]);
|
|
173
|
-
(0, react_1.useLayoutEffect)(() => {
|
|
174
|
-
_setSortingDirection(sortingDirection);
|
|
175
|
-
}, [sortingDirection]);
|
|
176
|
-
const sortedData = (0, react_1.useMemo)(() => {
|
|
177
|
-
if (!_sortBy) {
|
|
178
|
-
return dataWithOrder;
|
|
179
|
-
}
|
|
180
|
-
return (0, lodash_es_1.orderBy)(dataWithOrder, _sortBy, _sortingDirection === "ascending" ? "asc" : "desc");
|
|
181
|
-
}, [_sortBy, _sortingDirection, dataWithOrder]);
|
|
182
|
-
const _updateSorting = (0, react_1.useCallback)((accessorKey) => __awaiter(void 0, void 0, void 0, function* () {
|
|
183
|
-
let newDirection = "ascending";
|
|
184
|
-
let newSortBy = accessorKey;
|
|
185
|
-
// The current key is the same as the last -> the user clicked on the same header twice
|
|
186
|
-
if (_sortBy === accessorKey) {
|
|
187
|
-
// The last sorting direction was ascending -> make it descending
|
|
188
|
-
if (_sortingDirection === "ascending") {
|
|
189
|
-
newDirection = "descending";
|
|
190
|
-
// The last sorting direction was descending -> remove the sorting from the current key
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
newSortBy = undefined;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
// --- Check if sorting is allowed
|
|
197
|
-
const result = yield (willSort === null || willSort === void 0 ? void 0 : willSort(newSortBy, newDirection));
|
|
198
|
-
if (result === false) {
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
_setSortingDirection(newDirection);
|
|
202
|
-
_setSortBy(newSortBy);
|
|
203
|
-
// External callback function is always called.
|
|
204
|
-
// Even if sorting is internal, we can notify other components through this callback
|
|
205
|
-
sortingDidChange === null || sortingDidChange === void 0 ? void 0 : sortingDidChange(newSortBy, newDirection);
|
|
206
|
-
}), [_sortBy, willSort, sortingDidChange, _sortingDirection]);
|
|
207
|
-
// --- Prepare column renderers according to columns defined in the table
|
|
208
|
-
const columnsWithCustomCell = (0, react_1.useMemo)(() => {
|
|
209
|
-
return safeColumns.map((col, idx) => {
|
|
210
|
-
var _a, _b;
|
|
211
|
-
// --- Obtain column width information
|
|
212
|
-
const { width, starSizedWidth } = getColumnWidth(col.width, true, "width");
|
|
213
|
-
const { width: minWidth } = getColumnWidth(col.minWidth, false, "minWidth");
|
|
214
|
-
const { width: maxWidth } = getColumnWidth(col.maxWidth, false, "maxWidth");
|
|
215
|
-
const customColumn = Object.assign(Object.assign({}, col), { header: (_b = (_a = col.header) !== null && _a !== void 0 ? _a : col.accessorKey) !== null && _b !== void 0 ? _b : " ", id: "col_" + idx, size: width, minSize: minWidth, maxSize: maxWidth, enableResizing: col.canResize, enableSorting: col.canSort && !!col.accessorKey, enablePinning: col.pinTo !== undefined, meta: {
|
|
216
|
-
starSizedWidth,
|
|
217
|
-
pinTo: col.pinTo,
|
|
218
|
-
style: col.style,
|
|
219
|
-
className: col.className,
|
|
220
|
-
accessorKey: col.accessorKey,
|
|
221
|
-
cellRenderer: col.cellRenderer,
|
|
222
|
-
} });
|
|
223
|
-
return customColumn;
|
|
224
|
-
function getColumnWidth(colWidth, allowStarSize, propName) {
|
|
225
|
-
let starSizedWidth;
|
|
226
|
-
let width;
|
|
227
|
-
const resolvedWidth = (0, transformThemeVars_1.isThemeVarName)(colWidth) ? getThemeVar(colWidth) : colWidth;
|
|
228
|
-
if (typeof resolvedWidth === "number") {
|
|
229
|
-
width = resolvedWidth;
|
|
230
|
-
}
|
|
231
|
-
else if (typeof resolvedWidth === "string") {
|
|
232
|
-
const oneStarSizedWidthMatch = resolvedWidth.match(/^\s*\*\s*$/);
|
|
233
|
-
if (allowStarSize && oneStarSizedWidthMatch) {
|
|
234
|
-
starSizedWidth = "1*";
|
|
235
|
-
}
|
|
236
|
-
else {
|
|
237
|
-
const starSizedWidthMatch = resolvedWidth.match(/^\s*(\d+)\s*\*\s*$/);
|
|
238
|
-
if (allowStarSize && starSizedWidthMatch) {
|
|
239
|
-
starSizedWidth = starSizedWidthMatch[1] + "*";
|
|
240
|
-
}
|
|
241
|
-
else {
|
|
242
|
-
const pixelWidthMatch = resolvedWidth.match(/^\s*(\d+)\s*(px)?\s*$/);
|
|
243
|
-
if (pixelWidthMatch) {
|
|
244
|
-
width = Number(pixelWidthMatch[1]);
|
|
245
|
-
}
|
|
246
|
-
else {
|
|
247
|
-
throw new Error(`Invalid TableColumnDef '${propName}' value: ${resolvedWidth}`);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
if (width === undefined && starSizedWidth === undefined && allowStarSize) {
|
|
253
|
-
starSizedWidth = "1*";
|
|
254
|
-
}
|
|
255
|
-
return { width, starSizedWidth };
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
}, [getThemeVar, safeColumns]);
|
|
259
|
-
// --- Prepare column renderers according to columns defined in the table supporting optional row selection
|
|
260
|
-
const columnsWithSelectColumn = (0, react_1.useMemo)(() => {
|
|
261
|
-
// --- Extend the columns with a selection checkbox (indeterminate)
|
|
262
|
-
const selectColumn = {
|
|
263
|
-
id: "select",
|
|
264
|
-
size: SELECT_COLUMN_WIDTH,
|
|
265
|
-
enableResizing: false,
|
|
266
|
-
enablePinning: true,
|
|
267
|
-
meta: {
|
|
268
|
-
pinTo: "left",
|
|
269
|
-
},
|
|
270
|
-
header: ({ table }) => enableMultiRowSelection ? ((0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { className: (0, classnames_1.default)(Table_module_scss_1.default.checkBoxWrapper, {
|
|
271
|
-
[Table_module_scss_1.default.showInHeader]: alwaysShowSelectionHeader,
|
|
272
|
-
[Table_module_scss_1.default.forceHoverWrapper]: headerCheckboxHovered,
|
|
273
|
-
}),
|
|
274
|
-
value: table.getIsAllRowsSelected(),
|
|
275
|
-
indeterminate: table.getIsSomeRowsSelected(),
|
|
276
|
-
forceHover: headerCheckboxHovered,
|
|
277
|
-
onDidChange: () => {
|
|
278
|
-
const allSelected = table
|
|
279
|
-
.getRowModel()
|
|
280
|
-
.rows.every((row) => rowDisabledPredicate(row.original) || row.getIsSelected());
|
|
281
|
-
checkAllRows(!allSelected);
|
|
282
|
-
} })) : null,
|
|
283
|
-
cell: ({ row }) => ((0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { className: (0, classnames_1.default)(Table_module_scss_1.default.checkBoxWrapper, {
|
|
284
|
-
[Table_module_scss_1.default.forceHoverWrapper]: hoveredRowId === row.id,
|
|
285
|
-
}),
|
|
286
|
-
value: row.getIsSelected(),
|
|
287
|
-
indeterminate: row.getIsSomeSelected(),
|
|
288
|
-
forceHover: hoveredRowId === row.id,
|
|
289
|
-
onDidChange: () => {
|
|
290
|
-
toggleRow(row.original, { metaKey: true });
|
|
291
|
-
} })),
|
|
292
|
-
};
|
|
293
|
-
return rowsSelectable ? [selectColumn, ...columnsWithCustomCell] : columnsWithCustomCell;
|
|
294
|
-
}, [
|
|
295
|
-
rowsSelectable,
|
|
296
|
-
columnsWithCustomCell,
|
|
297
|
-
enableMultiRowSelection,
|
|
298
|
-
alwaysShowSelectionHeader,
|
|
299
|
-
checkAllRows,
|
|
300
|
-
toggleRow,
|
|
301
|
-
rowDisabledPredicate,
|
|
302
|
-
hoveredRowId,
|
|
303
|
-
headerCheckboxHovered,
|
|
304
|
-
]);
|
|
305
|
-
// --- Set up page information (using the first page size option)
|
|
306
|
-
// const [pagination, setPagination] = useState<PaginationState>();
|
|
307
|
-
const [pagination, setPagination] = (0, react_1.useState)({
|
|
308
|
-
pageSize: isPaginated ? pageSize : Number.MAX_VALUE,
|
|
309
|
-
pageIndex: currentPageIndex,
|
|
310
|
-
});
|
|
311
|
-
const prevIsPaginated = (0, hooks_1.usePrevious)(isPaginated);
|
|
312
|
-
(0, react_1.useEffect)(() => {
|
|
313
|
-
if (!prevIsPaginated && isPaginated) {
|
|
314
|
-
setPagination((prev) => {
|
|
315
|
-
return Object.assign(Object.assign({}, prev), { pageSize: pageSize, pageIndex: 0 });
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
if (prevIsPaginated && !isPaginated) {
|
|
319
|
-
setPagination(() => {
|
|
320
|
-
return {
|
|
321
|
-
pageIndex: 0,
|
|
322
|
-
pageSize: Number.MAX_VALUE,
|
|
323
|
-
};
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
}, [isPaginated, pageSizeOptions, prevIsPaginated, pageSize]);
|
|
327
|
-
const [columnSizing, setColumnSizing] = (0, react_1.useState)({});
|
|
328
|
-
const columnPinning = (0, react_1.useMemo)(() => {
|
|
329
|
-
const left = [];
|
|
330
|
-
const right = [];
|
|
331
|
-
columnsWithSelectColumn.forEach((col) => {
|
|
332
|
-
var _a, _b;
|
|
333
|
-
if (((_a = col.meta) === null || _a === void 0 ? void 0 : _a.pinTo) === "right") {
|
|
334
|
-
right.push(col.id);
|
|
335
|
-
}
|
|
336
|
-
if (((_b = col.meta) === null || _b === void 0 ? void 0 : _b.pinTo) === "left") {
|
|
337
|
-
left.push(col.id);
|
|
338
|
-
}
|
|
339
|
-
});
|
|
340
|
-
return {
|
|
341
|
-
left,
|
|
342
|
-
right,
|
|
343
|
-
};
|
|
344
|
-
}, [columnsWithSelectColumn]);
|
|
345
|
-
// --- Use the @tanstack/core-table component that manages a table
|
|
346
|
-
const table = (0, react_table_1.useReactTable)({
|
|
347
|
-
columns: columnsWithSelectColumn,
|
|
348
|
-
data: sortedData,
|
|
349
|
-
getCoreRowModel: (0, react_table_1.getCoreRowModel)(),
|
|
350
|
-
getPaginationRowModel: isPaginated ? (0, react_table_1.getPaginationRowModel)() : undefined,
|
|
351
|
-
enableRowSelection: rowsSelectable,
|
|
352
|
-
enableMultiRowSelection,
|
|
353
|
-
columnResizeMode: "onChange",
|
|
354
|
-
getRowId: (0, react_1.useCallback)((originalRow) => {
|
|
355
|
-
return originalRow[idKey] + "";
|
|
356
|
-
}, [idKey]),
|
|
357
|
-
state: (0, react_1.useMemo)(() => ({
|
|
358
|
-
pagination,
|
|
359
|
-
rowSelection: selectedRowIdMap,
|
|
360
|
-
columnSizing,
|
|
361
|
-
columnPinning,
|
|
362
|
-
}), [columnPinning, columnSizing, pagination, selectedRowIdMap]),
|
|
363
|
-
onColumnSizingChange: setColumnSizing,
|
|
364
|
-
onPaginationChange: setPagination,
|
|
365
|
-
});
|
|
366
|
-
// --- Select the set of visible rows whenever the table rows change
|
|
367
|
-
const rows = table.getRowModel().rows;
|
|
368
|
-
(0, react_1.useEffect)(() => {
|
|
369
|
-
setVisibleItems(rows.map((row) => row.original));
|
|
370
|
-
}, [rows]);
|
|
371
|
-
const scrollParent = (0, hooks_1.useScrollParent)((_b = wrapperRef.current) === null || _b === void 0 ? void 0 : _b.parentElement);
|
|
372
|
-
const scrollRef = (0, react_1.useRef)(scrollParent);
|
|
373
|
-
scrollRef.current = scrollParent;
|
|
374
|
-
const hasHeight = (0, hooks_1.useHasExplicitHeight)(wrapperRef);
|
|
375
|
-
const hasOutsideScroll = scrollRef.current && !hasHeight;
|
|
376
|
-
const startMargin = (0, hooks_1.useStartMargin)(hasOutsideScroll, wrapperRef, scrollRef);
|
|
377
|
-
const rowVirtualizer = (0, react_virtual_1.useVirtualizer)({
|
|
378
|
-
count: rows.length,
|
|
379
|
-
getScrollElement: (0, react_1.useCallback)(() => {
|
|
380
|
-
return hasOutsideScroll && (scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) ? scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current : wrapperRef.current;
|
|
381
|
-
}, [scrollRef, hasOutsideScroll]),
|
|
382
|
-
scrollMargin: startMargin,
|
|
383
|
-
estimateSize: (0, react_1.useCallback)(() => {
|
|
384
|
-
return estimatedHeightRef.current || 30;
|
|
385
|
-
}, []),
|
|
386
|
-
overscan: 5,
|
|
387
|
-
});
|
|
388
|
-
const paddingTop = rowVirtualizer.getVirtualItems().length > 0
|
|
389
|
-
? ((_d = (_c = rowVirtualizer.getVirtualItems()) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.start) - startMargin || 0
|
|
390
|
-
: 0;
|
|
391
|
-
const paddingBottom = rowVirtualizer.getVirtualItems().length > 0
|
|
392
|
-
? rowVirtualizer.getTotalSize() -
|
|
393
|
-
(((_f = (_e = rowVirtualizer.getVirtualItems()) === null || _e === void 0 ? void 0 : _e[rowVirtualizer.getVirtualItems().length - 1]) === null || _f === void 0 ? void 0 : _f.end) -
|
|
394
|
-
startMargin || 0)
|
|
395
|
-
: 0;
|
|
396
|
-
const hasData = safeData.length !== 0;
|
|
397
|
-
const touchedSizesRef = (0, react_1.useRef)({});
|
|
398
|
-
const columnSizeTouched = (0, react_1.useCallback)((id) => {
|
|
399
|
-
touchedSizesRef.current[id] = true;
|
|
400
|
-
}, []);
|
|
401
|
-
const recalculateStarSizes = (0, misc_1.useEvent)(() => {
|
|
402
|
-
if (!tableRef.current) {
|
|
403
|
-
return;
|
|
404
|
-
}
|
|
405
|
-
let availableWidth = tableRef.current.clientWidth - 1;
|
|
406
|
-
// -1 to prevent horizontal scroll in scaled browsers (when you zoom in)
|
|
407
|
-
const widths = {};
|
|
408
|
-
const columnsWithoutSize = [];
|
|
409
|
-
const numberOfUnitsById = {};
|
|
410
|
-
table.getAllColumns().forEach((column) => {
|
|
411
|
-
var _a, _b;
|
|
412
|
-
if (column.columnDef.size !== undefined || touchedSizesRef.current[column.id]) {
|
|
413
|
-
availableWidth -= columnSizing[column.id] || column.columnDef.size || 0;
|
|
414
|
-
}
|
|
415
|
-
else {
|
|
416
|
-
columnsWithoutSize.push(column);
|
|
417
|
-
let units;
|
|
418
|
-
if ((_a = column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.starSizedWidth) {
|
|
419
|
-
units = Number((_b = column.columnDef.meta) === null || _b === void 0 ? void 0 : _b.starSizedWidth.replace("*", "").trim()) || 1;
|
|
420
|
-
}
|
|
421
|
-
else {
|
|
422
|
-
units = 1;
|
|
423
|
-
}
|
|
424
|
-
numberOfUnitsById[column.id] = units;
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
const numberOfAllUnits = Object.values(numberOfUnitsById).reduce((acc, val) => acc + val, 0);
|
|
428
|
-
columnsWithoutSize.forEach((column) => {
|
|
429
|
-
widths[column.id] = Math.floor(availableWidth * (numberOfUnitsById[column.id] / numberOfAllUnits));
|
|
430
|
-
});
|
|
431
|
-
(0, react_dom_1.flushSync)(() => {
|
|
432
|
-
setColumnSizing((prev) => {
|
|
433
|
-
return Object.assign(Object.assign({}, prev), widths);
|
|
434
|
-
});
|
|
435
|
-
});
|
|
436
|
-
});
|
|
437
|
-
(0, hooks_1.useResizeObserver)(tableRef, recalculateStarSizes);
|
|
438
|
-
(0, hooks_1.useIsomorphicLayoutEffect)(() => {
|
|
439
|
-
queueMicrotask(() => {
|
|
440
|
-
recalculateStarSizes();
|
|
441
|
-
});
|
|
442
|
-
}, [recalculateStarSizes, safeColumns]);
|
|
443
|
-
(0, hooks_1.useIsomorphicLayoutEffect)(() => {
|
|
444
|
-
registerComponentApi(selectionApi);
|
|
445
|
-
}, [registerComponentApi, selectionApi]);
|
|
446
|
-
const paginationControls = ((0, jsx_runtime_1.jsx)(PaginationNative_1.PaginationNative, { pageIndex: pagination.pageIndex, pageSize: pagination.pageSize, itemCount: safeData.length, pageSizeOptions: pageSizeOptions, onPageDidChange: (page) => table.setPageIndex(page), onPageSizeDidChange: (size) => table.setPageSize(size), showCurrentPage: showCurrentPage, showPageInfo: showPageInfo, showPageSizeSelector: showPageSizeSelector, buttonRowPosition: buttonRowPosition, pageInfoPosition: pageInfoPosition, pageSizeSelectorPosition: pageSizeSelectorPosition }));
|
|
447
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: (0, classnames_1.default)(Table_module_scss_1.default.wrapper, className, { [Table_module_scss_1.default.noScroll]: hasOutsideScroll }), tabIndex: -1, onKeyDown: onKeyDown, ref: ref, style: style, children: [isPaginated &&
|
|
448
|
-
hasData &&
|
|
449
|
-
rows.length > 0 &&
|
|
450
|
-
pagination &&
|
|
451
|
-
(paginationControlsLocation === "top" || paginationControlsLocation === "both") &&
|
|
452
|
-
paginationControls, (0, jsx_runtime_1.jsxs)("table", { className: Table_module_scss_1.default.table, ref: tableRef, children: [!hideHeader && ((0, jsx_runtime_1.jsx)("thead", { style: { height: headerHeight }, className: Table_module_scss_1.default.headerWrapper, children: table.getHeaderGroups().map((headerGroup, headerGroupIndex) => ((0, jsx_runtime_1.jsx)("tr", { className: (0, classnames_1.default)(Table_module_scss_1.default.headerRow, {
|
|
453
|
-
[Table_module_scss_1.default.allSelected]: table.getIsAllRowsSelected(),
|
|
454
|
-
}), onClick: (event) => {
|
|
455
|
-
const target = event.target;
|
|
456
|
-
const headerCell = target.closest('th');
|
|
457
|
-
// Only handle clicks for the select column header
|
|
458
|
-
if (headerCell && rowsSelectable && enableMultiRowSelection) {
|
|
459
|
-
const header = headerGroup.headers.find(h => {
|
|
460
|
-
const headerElement = headerCell;
|
|
461
|
-
return (headerElement === null || headerElement === void 0 ? void 0 : headerElement.getAttribute('data-column-id')) === h.id || h.id === 'select';
|
|
462
|
-
});
|
|
463
|
-
if (header && header.id === 'select') {
|
|
464
|
-
const clickX = event.clientX;
|
|
465
|
-
const clickY = event.clientY;
|
|
466
|
-
const checkbox = headerCell.querySelector('input[type=\"checkbox\"]');
|
|
467
|
-
if (checkbox) {
|
|
468
|
-
const checkboxRect = checkbox.getBoundingClientRect();
|
|
469
|
-
if (isWithinCheckboxBoundary(clickX, clickY, checkboxRect, tolerancePixels)) {
|
|
470
|
-
// Prevent the default click and manually trigger the checkbox
|
|
471
|
-
event.preventDefault();
|
|
472
|
-
event.stopPropagation();
|
|
473
|
-
const allSelected = table
|
|
474
|
-
.getRowModel()
|
|
475
|
-
.rows.every((row) => rowDisabledPredicate(row.original) || row.getIsSelected());
|
|
476
|
-
checkAllRows(!allSelected);
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}, onMouseMove: (event) => {
|
|
482
|
-
if (rowsSelectable && enableMultiRowSelection) {
|
|
483
|
-
const target = event.target;
|
|
484
|
-
const headerCell = target.closest('th');
|
|
485
|
-
if (headerCell) {
|
|
486
|
-
const header = headerGroup.headers.find(h => {
|
|
487
|
-
const headerElement = headerCell;
|
|
488
|
-
return (headerElement === null || headerElement === void 0 ? void 0 : headerElement.getAttribute('data-column-id')) === h.id || h.id === 'select';
|
|
489
|
-
});
|
|
490
|
-
if (header && header.id === 'select') {
|
|
491
|
-
const mouseX = event.clientX;
|
|
492
|
-
const mouseY = event.clientY;
|
|
493
|
-
const checkbox = headerCell.querySelector('input[type=\"checkbox\"]');
|
|
494
|
-
if (checkbox) {
|
|
495
|
-
const checkboxRect = checkbox.getBoundingClientRect();
|
|
496
|
-
const shouldShowHover = isWithinCheckboxBoundary(mouseX, mouseY, checkboxRect, tolerancePixels);
|
|
497
|
-
if (shouldShowHover && !headerCheckboxHovered) {
|
|
498
|
-
setHeaderCheckboxHovered(true);
|
|
499
|
-
event.currentTarget.style.cursor = 'pointer';
|
|
500
|
-
}
|
|
501
|
-
else if (!shouldShowHover && headerCheckboxHovered) {
|
|
502
|
-
setHeaderCheckboxHovered(false);
|
|
503
|
-
event.currentTarget.style.cursor = '';
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
else if (headerCheckboxHovered) {
|
|
508
|
-
setHeaderCheckboxHovered(false);
|
|
509
|
-
event.currentTarget.style.cursor = '';
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
}, onMouseLeave: (event) => {
|
|
514
|
-
if (headerCheckboxHovered) {
|
|
515
|
-
setHeaderCheckboxHovered(false);
|
|
516
|
-
event.currentTarget.style.cursor = '';
|
|
517
|
-
}
|
|
518
|
-
}, children: headerGroup.headers.map((header, headerIndex) => {
|
|
519
|
-
var _a, _b, _c;
|
|
520
|
-
const _d = ((_a = header.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.style) || {}, { width } = _d, style = __rest(_d, ["width"]);
|
|
521
|
-
const size = header.getSize();
|
|
522
|
-
const alignmentClass = cellVerticalAlign === "top"
|
|
523
|
-
? Table_module_scss_1.default.alignTop
|
|
524
|
-
: cellVerticalAlign === "bottom"
|
|
525
|
-
? Table_module_scss_1.default.alignBottom
|
|
526
|
-
: Table_module_scss_1.default.alignCenter;
|
|
527
|
-
return ((0, jsx_runtime_1.jsxs)("th", { "data-column-id": header.id, className: (0, classnames_1.default)(Table_module_scss_1.default.columnCell, alignmentClass), colSpan: header.colSpan, style: Object.assign({ position: "relative", width: size }, getCommonPinningStyles(header.column)), children: [(0, jsx_runtime_1.jsx)(ClickableHeader, { hasSorting: header.column.columnDef.enableSorting &&
|
|
528
|
-
!!((_b = header.column.columnDef.meta) === null || _b === void 0 ? void 0 : _b.accessorKey), updateSorting: () => { var _a; return _updateSorting((_a = header.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.accessorKey); }, children: (0, jsx_runtime_1.jsxs)("div", { className: Table_module_scss_1.default.headerContent, style: style, children: [(0, react_table_1.flexRender)(header.column.columnDef.header, header.getContext()), header.column.columnDef.enableSorting && ((0, jsx_runtime_1.jsx)("span", { style: { display: "inline-flex", maxWidth: 16 }, children: (0, jsx_runtime_1.jsx)(ColumnOrderingIndicator, { iconSortAsc: iconSortAsc, iconSortDesc: iconSortDesc, iconNoSort: iconNoSort, direction: ((_c = header.column.columnDef.meta) === null || _c === void 0 ? void 0 : _c.accessorKey) === _sortBy
|
|
529
|
-
? _sortingDirection
|
|
530
|
-
: undefined }) }))] }) }), header.column.getCanResize() && ((0, jsx_runtime_1.jsx)("div", { onDoubleClick: () => {
|
|
531
|
-
touchedSizesRef.current[header.column.id] = false;
|
|
532
|
-
if (header.column.columnDef.size !== undefined) {
|
|
533
|
-
header.column.resetSize();
|
|
534
|
-
}
|
|
535
|
-
else {
|
|
536
|
-
recalculateStarSizes();
|
|
537
|
-
}
|
|
538
|
-
},
|
|
539
|
-
onMouseDown: (event) => {
|
|
540
|
-
columnSizeTouched(header.column.id);
|
|
541
|
-
header.getResizeHandler()(event);
|
|
542
|
-
},
|
|
543
|
-
onTouchStart: (event) => {
|
|
544
|
-
columnSizeTouched(header.column.id);
|
|
545
|
-
header.getResizeHandler()(event);
|
|
546
|
-
},
|
|
547
|
-
className: (0, classnames_1.default)(Table_module_scss_1.default.resizer, {
|
|
548
|
-
[Table_module_scss_1.default.isResizing]: header.column.getIsResizing(),
|
|
549
|
-
}) }))] }, `${header.id}-${headerIndex}`));
|
|
550
|
-
}) }, `${headerGroup.id}-${headerGroupIndex}`))) })), hasData && ((0, jsx_runtime_1.jsxs)("tbody", { className: Table_module_scss_1.default.tableBody, children: [paddingTop > 0 && ((0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)("td", { style: { height: `${paddingTop}px` } }) })), rowVirtualizer.getVirtualItems().map((virtualRow) => {
|
|
551
|
-
const rowIndex = virtualRow.index;
|
|
552
|
-
const row = rows[rowIndex];
|
|
553
|
-
return ((0, jsx_runtime_1.jsx)("tr", { "data-index": rowIndex, className: (0, classnames_1.default)(Table_module_scss_1.default.row, {
|
|
554
|
-
[Table_module_scss_1.default.selected]: row.getIsSelected(),
|
|
555
|
-
[Table_module_scss_1.default.focused]: focusedIndex === rowIndex,
|
|
556
|
-
[Table_module_scss_1.default.disabled]: rowDisabledPredicate(row.original),
|
|
557
|
-
[Table_module_scss_1.default.noBottomBorder]: noBottomBorder,
|
|
558
|
-
}), ref: (el) => {
|
|
559
|
-
if (el && estimatedHeightRef.current === null) {
|
|
560
|
-
estimatedHeightRef.current = Math.round(el.getBoundingClientRect().height);
|
|
561
|
-
}
|
|
562
|
-
rowVirtualizer.measureElement(el);
|
|
563
|
-
}, onClick: (event) => {
|
|
564
|
-
if (event === null || event === void 0 ? void 0 : event.defaultPrevented) {
|
|
565
|
-
return;
|
|
566
|
-
}
|
|
567
|
-
const target = event.target;
|
|
568
|
-
if (target.tagName.toLowerCase() === "input") {
|
|
569
|
-
return;
|
|
570
|
-
}
|
|
571
|
-
// Check if click is within checkbox boundary
|
|
572
|
-
const currentRow = event.currentTarget;
|
|
573
|
-
const checkbox = currentRow.querySelector('input[type="checkbox"]');
|
|
574
|
-
if (checkbox) {
|
|
575
|
-
const checkboxRect = checkbox.getBoundingClientRect();
|
|
576
|
-
const clickX = event.clientX;
|
|
577
|
-
const clickY = event.clientY;
|
|
578
|
-
if (isWithinCheckboxBoundary(clickX, clickY, checkboxRect, tolerancePixels)) {
|
|
579
|
-
// Toggle the checkbox when clicking within the boundary
|
|
580
|
-
toggleRow(row.original, { metaKey: true });
|
|
581
|
-
return;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
toggleRow(row.original, event);
|
|
585
|
-
}, onMouseMove: (event) => {
|
|
586
|
-
// Change cursor and hover state when within checkbox boundary
|
|
587
|
-
const currentRow = event.currentTarget;
|
|
588
|
-
const checkbox = currentRow.querySelector('input[type="checkbox"]');
|
|
589
|
-
if (checkbox) {
|
|
590
|
-
const checkboxRect = checkbox.getBoundingClientRect();
|
|
591
|
-
const mouseX = event.clientX;
|
|
592
|
-
const mouseY = event.clientY;
|
|
593
|
-
const shouldShowHover = isWithinCheckboxBoundary(mouseX, mouseY, checkboxRect, tolerancePixels);
|
|
594
|
-
// Update hover state and cursor based on proximity to checkbox
|
|
595
|
-
if (shouldShowHover) {
|
|
596
|
-
setHoveredRowId(row.id);
|
|
597
|
-
currentRow.style.cursor = 'pointer';
|
|
598
|
-
}
|
|
599
|
-
else {
|
|
600
|
-
setHoveredRowId(null);
|
|
601
|
-
currentRow.style.cursor = '';
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
}, onMouseLeave: (event) => {
|
|
605
|
-
// Reset cursor and hover state when leaving the row
|
|
606
|
-
const currentRow = event.currentTarget;
|
|
607
|
-
currentRow.style.cursor = '';
|
|
608
|
-
setHoveredRowId(null);
|
|
609
|
-
}, children: row.getVisibleCells().map((cell, i) => {
|
|
610
|
-
var _a, _b;
|
|
611
|
-
const cellRenderer = (_b = (_a = cell.column.columnDef) === null || _a === void 0 ? void 0 : _a.meta) === null || _b === void 0 ? void 0 : _b.cellRenderer;
|
|
612
|
-
const size = cell.column.getSize();
|
|
613
|
-
const alignmentClass = cellVerticalAlign === "top"
|
|
614
|
-
? Table_module_scss_1.default.alignTop
|
|
615
|
-
: cellVerticalAlign === "bottom"
|
|
616
|
-
? Table_module_scss_1.default.alignBottom
|
|
617
|
-
: Table_module_scss_1.default.alignCenter;
|
|
618
|
-
return ((0, jsx_runtime_1.jsx)("td", { className: (0, classnames_1.default)(Table_module_scss_1.default.cell, alignmentClass), style: Object.assign({
|
|
619
|
-
// width: size,
|
|
620
|
-
width: size }, getCommonPinningStyles(cell.column)), children: (0, jsx_runtime_1.jsx)("div", { className: Table_module_scss_1.default.cellContent, children: cellRenderer
|
|
621
|
-
? cellRenderer(cell.row.original, rowIndex, i, cell === null || cell === void 0 ? void 0 : cell.getValue())
|
|
622
|
-
: (0, react_table_1.flexRender)(cell.column.columnDef.cell, cell.getContext()) }) }, `${cell.id}-${i}`));
|
|
623
|
-
}) }, `${row.id}-${rowIndex}`));
|
|
624
|
-
}), paddingBottom > 0 && ((0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)("td", { style: { height: `${paddingBottom}px` } }) }))] }))] }), loading && !hasData && ((0, jsx_runtime_1.jsx)("div", { className: Table_module_scss_1.default.loadingWrapper, children: (0, jsx_runtime_1.jsx)(SpinnerNative_1.Spinner, {}) })), !hideNoDataView &&
|
|
625
|
-
!loading &&
|
|
626
|
-
!hasData &&
|
|
627
|
-
(noDataRenderer ? (noDataRenderer()) : ((0, jsx_runtime_1.jsx)("div", { className: Table_module_scss_1.default.noRows, children: "No data available" }))), isPaginated &&
|
|
628
|
-
hasData &&
|
|
629
|
-
rows.length > 0 &&
|
|
630
|
-
pagination &&
|
|
631
|
-
(paginationControlsLocation === "bottom" || paginationControlsLocation === "both") &&
|
|
632
|
-
paginationControls] })));
|
|
633
|
-
});
|
|
634
|
-
function ClickableHeader({ hasSorting, updateSorting, children }) {
|
|
635
|
-
return hasSorting ? ((0, jsx_runtime_1.jsx)("button", { type: "button", className: Table_module_scss_1.default.clickableHeader, onClick: updateSorting, children: children })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children }));
|
|
636
|
-
}
|
|
637
|
-
function ColumnOrderingIndicator({ direction, iconSortAsc = "sortasc:Table", iconSortDesc = "sortdesc:Table", iconNoSort = "nosort:Table", }) {
|
|
638
|
-
if (direction === "ascending") {
|
|
639
|
-
return (0, jsx_runtime_1.jsx)(IconNative_1.Icon, { name: iconSortAsc, fallback: "sortasc", size: "12" }); //sortasc
|
|
640
|
-
}
|
|
641
|
-
else if (direction === "descending") {
|
|
642
|
-
return (0, jsx_runtime_1.jsx)(IconNative_1.Icon, { name: iconSortDesc, fallback: "sortdesc", size: "12" }); //sortdesc
|
|
643
|
-
}
|
|
644
|
-
return iconNoSort !== "-" ? ((0, jsx_runtime_1.jsx)(IconNative_1.Icon, { name: iconNoSort, fallback: "nosort", size: "12" })) : ((0, jsx_runtime_1.jsx)(IconNative_1.Icon, { name: iconNoSort, size: "12" })); //nosort
|
|
645
|
-
}
|
|
646
|
-
exports.defaultProps = {
|
|
647
|
-
data: constants_1.EMPTY_ARRAY,
|
|
648
|
-
columns: constants_1.EMPTY_ARRAY,
|
|
649
|
-
isPaginated: false,
|
|
650
|
-
loading: false,
|
|
651
|
-
rowsSelectable: false,
|
|
652
|
-
enableMultiRowSelection: true,
|
|
653
|
-
initiallySelected: constants_1.EMPTY_ARRAY,
|
|
654
|
-
pageSizeOptions: [5, 10, 15],
|
|
655
|
-
sortingDirection: "ascending",
|
|
656
|
-
autoFocus: false,
|
|
657
|
-
hideHeader: false,
|
|
658
|
-
hideNoDataView: false,
|
|
659
|
-
alwaysShowSelectionHeader: false,
|
|
660
|
-
noBottomBorder: false,
|
|
661
|
-
paginationControlsLocation: "bottom",
|
|
662
|
-
cellVerticalAlign: "center",
|
|
663
|
-
showPageInfo: true,
|
|
664
|
-
showPageSizeSelector: true,
|
|
665
|
-
showCurrentPage: true,
|
|
666
|
-
buttonRowPosition: "center",
|
|
667
|
-
pageSizeSelectorPosition: "start",
|
|
668
|
-
pageInfoPosition: "end",
|
|
669
|
-
checkboxTolerance: "compact",
|
|
670
|
-
};
|