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,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const data = [
|
|
4
|
-
{
|
|
5
|
-
id: 0,
|
|
6
|
-
name: "Apples",
|
|
7
|
-
quantity: 5,
|
|
8
|
-
unit: "pieces",
|
|
9
|
-
category: "fruits",
|
|
10
|
-
key: 5,
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
id: 1,
|
|
14
|
-
name: "Bananas",
|
|
15
|
-
quantity: 6,
|
|
16
|
-
unit: "pieces",
|
|
17
|
-
category: "fruits",
|
|
18
|
-
key: 4,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
id: 2,
|
|
22
|
-
name: "Carrots",
|
|
23
|
-
quantity: 100,
|
|
24
|
-
unit: "grams",
|
|
25
|
-
category: "vegetables",
|
|
26
|
-
key: 3,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: 3,
|
|
30
|
-
name: "Spinach",
|
|
31
|
-
quantity: 1,
|
|
32
|
-
unit: "bunch",
|
|
33
|
-
category: "vegetables",
|
|
34
|
-
key: 2,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
id: 4,
|
|
38
|
-
name: "Milk",
|
|
39
|
-
quantity: 10,
|
|
40
|
-
unit: "liter",
|
|
41
|
-
category: "dairy",
|
|
42
|
-
key: 1,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
id: 5,
|
|
46
|
-
name: "Cheese",
|
|
47
|
-
quantity: 200,
|
|
48
|
-
unit: "grams",
|
|
49
|
-
category: "dairy",
|
|
50
|
-
key: 0,
|
|
51
|
-
},
|
|
52
|
-
];
|
|
53
|
-
exports.default = data;
|
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = useRowSelection;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const lodash_es_1 = require("lodash-es");
|
|
6
|
-
const misc_1 = require("../../components-core/utils/misc");
|
|
7
|
-
const constants_1 = require("../../components-core/constants");
|
|
8
|
-
const hooks_1 = require("../../components-core/utils/hooks");
|
|
9
|
-
const SelectionStoreNative_1 = require("../SelectionStore/SelectionStoreNative");
|
|
10
|
-
/**
|
|
11
|
-
* Hook for managing table row selection with optional bidirectional AppState synchronization.
|
|
12
|
-
*
|
|
13
|
-
* ## AppState Synchronization Mechanism
|
|
14
|
-
*
|
|
15
|
-
* When `syncWithAppState` is provided, this hook implements a robust bidirectional synchronization
|
|
16
|
-
* between the table's selection state and an AppState instance. The synchronization prevents
|
|
17
|
-
* infinite loops using a state machine approach.
|
|
18
|
-
*
|
|
19
|
-
* ### State Machine Design
|
|
20
|
-
*
|
|
21
|
-
* The sync operates through three states:
|
|
22
|
-
* - `idle`: Normal state, ready to respond to changes from either side
|
|
23
|
-
* - `updating_to_appstate`: Currently propagating table selection → AppState (blocks AppState → table)
|
|
24
|
-
* - `updating_from_appstate`: Currently propagating AppState → table selection (blocks table → AppState)
|
|
25
|
-
*
|
|
26
|
-
* ### Synchronization Flow
|
|
27
|
-
*
|
|
28
|
-
* **AppState → Table (External Updates)**:
|
|
29
|
-
* 1. AppState.value.selectedIds changes externally (e.g., from another component)
|
|
30
|
-
* 2. Effect detects change and validates it's not from our own update (using source tracking)
|
|
31
|
-
* 3. Sets state to `updating_from_appstate` to block reverse sync
|
|
32
|
-
* 4. Updates table selection via setSelectedRowIds()
|
|
33
|
-
* 5. Uses requestAnimationFrame to reset state to `idle` after update completes
|
|
34
|
-
*
|
|
35
|
-
* **Table → AppState (User Interaction)**:
|
|
36
|
-
* 1. User interacts with table (clicks, keyboard navigation)
|
|
37
|
-
* 2. selectedItems changes through normal table selection logic
|
|
38
|
-
* 3. Effect detects change and validates it's different from AppState
|
|
39
|
-
* 4. Sets state to `updating_to_appstate` to block reverse sync
|
|
40
|
-
* 5. Calls syncWithAppState.update({ selectedIds: [...] })
|
|
41
|
-
* 6. Uses requestAnimationFrame to reset state to `idle` after update completes
|
|
42
|
-
*
|
|
43
|
-
* ### Loop Prevention Strategy
|
|
44
|
-
*
|
|
45
|
-
* Multiple mechanisms prevent infinite loops:
|
|
46
|
-
* - **State Machine**: Directional blocking prevents simultaneous updates
|
|
47
|
-
* - **Source Tracking**: lastUpdateSourceRef tracks whether the last change came from 'table' or 'appstate'
|
|
48
|
-
* - **Value Tracking**: lastAppStateSelectionRef and lastTableSelectionRef track last known values
|
|
49
|
-
* - **Change Detection**: Only triggers updates when values actually differ using JSON.stringify comparison
|
|
50
|
-
* - **Frame-Based Reset**: Uses requestAnimationFrame instead of setTimeout for deterministic timing
|
|
51
|
-
*
|
|
52
|
-
* ### Usage with AppState
|
|
53
|
-
*
|
|
54
|
-
* ```typescript
|
|
55
|
-
* // In your component
|
|
56
|
-
* const appState = useAppState('myBucket');
|
|
57
|
-
*
|
|
58
|
-
* // Pass to Table
|
|
59
|
-
* <Table
|
|
60
|
-
* items={data}
|
|
61
|
-
* syncWithAppState={appState}
|
|
62
|
-
* // ... other props
|
|
63
|
-
* />
|
|
64
|
-
*
|
|
65
|
-
* // AppState will contain: { selectedIds: ['id1', 'id2', ...] }
|
|
66
|
-
* // Changes from either side are automatically synchronized
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* ### Precedence Rules
|
|
70
|
-
*
|
|
71
|
-
* - When both `initiallySelected` and `syncWithAppState` are provided, `syncWithAppState` takes precedence
|
|
72
|
-
* - Multi-row selection limits are respected (single selection truncates to first ID)
|
|
73
|
-
* - Only valid item IDs (present in current `items` array) are synchronized
|
|
74
|
-
*
|
|
75
|
-
* @param options Configuration object for row selection behavior
|
|
76
|
-
* @returns Row selection operations and state management interface
|
|
77
|
-
*/
|
|
78
|
-
function useRowSelection({ items = constants_1.EMPTY_ARRAY, visibleItems = items, rowsSelectable, enableMultiRowSelection, rowDisabledPredicate, onSelectionDidChange, initiallySelected = constants_1.EMPTY_ARRAY, syncWithAppState, }) {
|
|
79
|
-
var _a;
|
|
80
|
-
// --- The focused index in the row source (if there is any)
|
|
81
|
-
const [focusedIndex, setFocusedIndex] = (0, react_1.useState)(-1);
|
|
82
|
-
// --- The current selection interval
|
|
83
|
-
const [selectionInterval, setSelectionInterval] = (0, react_1.useState)(null);
|
|
84
|
-
// --- Access the selection context that stores the current state of selection
|
|
85
|
-
const { selectedItems, setSelectedRowIds, refreshSelection, idKey } = (0, SelectionStoreNative_1.useSelectionContext)();
|
|
86
|
-
// --- Refresh the list of item IDs whenever the items in the selection change
|
|
87
|
-
const walkableList = (0, react_1.useMemo)(() => {
|
|
88
|
-
return visibleItems.map((item) => item[idKey]);
|
|
89
|
-
}, [idKey, visibleItems]);
|
|
90
|
-
// --- Track if initial selection has been applied
|
|
91
|
-
const [initialSelectionApplied, setInitialSelectionApplied] = (0, react_1.useState)(false);
|
|
92
|
-
// --- If the items change, refresh the selectable items (if the rows are selectable)
|
|
93
|
-
(0, react_1.useEffect)(() => {
|
|
94
|
-
refreshSelection(rowsSelectable ? items : constants_1.EMPTY_ARRAY);
|
|
95
|
-
}, [refreshSelection, items, rowsSelectable]);
|
|
96
|
-
// --- Handle AppState synchronization
|
|
97
|
-
// This implements bidirectional sync between Table selection and AppState.
|
|
98
|
-
// The approach uses React's useEffect pattern which is appropriate for React-to-React communication.
|
|
99
|
-
// The new AppState didUpdate event is more useful for non-React integrations.
|
|
100
|
-
const appStateSelection = (_a = syncWithAppState === null || syncWithAppState === void 0 ? void 0 : syncWithAppState.value) === null || _a === void 0 ? void 0 : _a.selectedIds;
|
|
101
|
-
const prevAppStateSelection = (0, hooks_1.usePrevious)(appStateSelection);
|
|
102
|
-
// --- State machine for sync direction control
|
|
103
|
-
const [syncState, setSyncState] = (0, react_1.useState)("idle");
|
|
104
|
-
// --- Use refs to track the last known selections to prevent update loops
|
|
105
|
-
const lastAppStateSelectionRef = (0, react_1.useRef)();
|
|
106
|
-
const lastTableSelectionRef = (0, react_1.useRef)();
|
|
107
|
-
// --- Track the source of the last update to prevent echoing
|
|
108
|
-
const lastUpdateSourceRef = (0, react_1.useRef)(null);
|
|
109
|
-
// --- Sync from AppState to table selection (when AppState changes externally)
|
|
110
|
-
(0, react_1.useEffect)(() => {
|
|
111
|
-
// Skip if not selectable, no sync, no selection, or we're currently updating to AppState
|
|
112
|
-
if (!rowsSelectable ||
|
|
113
|
-
!syncWithAppState ||
|
|
114
|
-
!appStateSelection ||
|
|
115
|
-
syncState === "updating_to_appstate") {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
// Only update if AppState selection actually changed and this wasn't caused by our own table update
|
|
119
|
-
const appStateChanged = appStateSelection !== prevAppStateSelection;
|
|
120
|
-
const isDifferentFromLastKnown = JSON.stringify([...(appStateSelection || [])].sort()) !==
|
|
121
|
-
JSON.stringify([...(lastAppStateSelectionRef.current || [])].sort());
|
|
122
|
-
const wasNotOurUpdate = lastUpdateSourceRef.current !== "table";
|
|
123
|
-
if (appStateChanged && isDifferentFromLastKnown && wasNotOurUpdate && items.length > 0) {
|
|
124
|
-
// Set state machine to indicate we're updating from AppState
|
|
125
|
-
setSyncState("updating_from_appstate");
|
|
126
|
-
const validIds = appStateSelection.filter((id) => items.some((item) => item[idKey] === id));
|
|
127
|
-
const idsToSelect = enableMultiRowSelection ? validIds : validIds.slice(0, 1);
|
|
128
|
-
// Track what we're setting to prevent loop
|
|
129
|
-
lastAppStateSelectionRef.current = [...appStateSelection];
|
|
130
|
-
lastTableSelectionRef.current = [...idsToSelect];
|
|
131
|
-
lastUpdateSourceRef.current = "appstate";
|
|
132
|
-
setSelectedRowIds(idsToSelect);
|
|
133
|
-
setInitialSelectionApplied(true);
|
|
134
|
-
}
|
|
135
|
-
}, [
|
|
136
|
-
appStateSelection,
|
|
137
|
-
prevAppStateSelection,
|
|
138
|
-
items,
|
|
139
|
-
rowsSelectable,
|
|
140
|
-
syncWithAppState,
|
|
141
|
-
idKey,
|
|
142
|
-
enableMultiRowSelection,
|
|
143
|
-
setSelectedRowIds,
|
|
144
|
-
syncState,
|
|
145
|
-
]);
|
|
146
|
-
// --- Sync from table selection to AppState (when user interacts with table)
|
|
147
|
-
(0, react_1.useEffect)(() => {
|
|
148
|
-
var _a;
|
|
149
|
-
// Skip if not selectable, no sync, or currently updating from AppState
|
|
150
|
-
if (!rowsSelectable || !syncWithAppState || syncState === "updating_from_appstate") {
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
const currentSelectionIds = selectedItems.map((item) => item[idKey]);
|
|
154
|
-
const appStateSelectionIds = appStateSelection || [];
|
|
155
|
-
// Only update if table selection is different from AppState, different from our last update, and wasn't caused by AppState
|
|
156
|
-
const tableChanged = JSON.stringify([...currentSelectionIds].sort()) !==
|
|
157
|
-
JSON.stringify([...(lastTableSelectionRef.current || [])].sort());
|
|
158
|
-
const isDifferentFromAppState = JSON.stringify([...currentSelectionIds].sort()) !==
|
|
159
|
-
JSON.stringify([...appStateSelectionIds].sort());
|
|
160
|
-
const wasNotAppStateUpdate = lastUpdateSourceRef.current !== "appstate";
|
|
161
|
-
if (tableChanged && isDifferentFromAppState && wasNotAppStateUpdate) {
|
|
162
|
-
// Set state machine to indicate we're updating to AppState
|
|
163
|
-
setSyncState("updating_to_appstate");
|
|
164
|
-
// Track what we're updating to prevent loop
|
|
165
|
-
lastTableSelectionRef.current = [...currentSelectionIds];
|
|
166
|
-
lastAppStateSelectionRef.current = [...currentSelectionIds];
|
|
167
|
-
lastUpdateSourceRef.current = "table";
|
|
168
|
-
(_a = syncWithAppState.update) === null || _a === void 0 ? void 0 : _a.call(syncWithAppState, { selectedIds: currentSelectionIds });
|
|
169
|
-
}
|
|
170
|
-
}, [selectedItems, syncWithAppState, appStateSelection, idKey, rowsSelectable, syncState]);
|
|
171
|
-
// --- Reset sync state machine to idle when updates are complete
|
|
172
|
-
(0, react_1.useEffect)(() => {
|
|
173
|
-
if (syncState !== "idle") {
|
|
174
|
-
// Reset to idle state in the next tick to allow the current update to complete
|
|
175
|
-
const resetTimer = requestAnimationFrame(() => {
|
|
176
|
-
setSyncState("idle");
|
|
177
|
-
});
|
|
178
|
-
return () => cancelAnimationFrame(resetTimer);
|
|
179
|
-
}
|
|
180
|
-
}, [syncState, appStateSelection, selectedItems]);
|
|
181
|
-
// --- Clear update source when sync state becomes idle
|
|
182
|
-
(0, react_1.useEffect)(() => {
|
|
183
|
-
if (syncState === "idle") {
|
|
184
|
-
// Use a separate frame to clear the source after the sync state is reset
|
|
185
|
-
const clearTimer = requestAnimationFrame(() => {
|
|
186
|
-
lastUpdateSourceRef.current = null;
|
|
187
|
-
});
|
|
188
|
-
return () => cancelAnimationFrame(clearTimer);
|
|
189
|
-
}
|
|
190
|
-
}, [syncState]);
|
|
191
|
-
// --- Set initial selection when component mounts and items are available
|
|
192
|
-
// Use a separate effect that runs after the refresh to ensure timing is correct
|
|
193
|
-
(0, react_1.useEffect)(() => {
|
|
194
|
-
// If we have AppState sync, don't use initiallySelected
|
|
195
|
-
if (syncWithAppState) {
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
if (!rowsSelectable ||
|
|
199
|
-
!initiallySelected ||
|
|
200
|
-
initiallySelected.length === 0 ||
|
|
201
|
-
initialSelectionApplied) {
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
// Only set initial selection when items are available and we haven't applied it yet
|
|
205
|
-
if (items.length > 0) {
|
|
206
|
-
// Use requestAnimationFrame to ensure this runs after the refreshSelection effect
|
|
207
|
-
const frameId = requestAnimationFrame(() => {
|
|
208
|
-
// Filter initiallySelected to only include IDs that exist in current items
|
|
209
|
-
const validIds = initiallySelected.filter((id) => items.some((item) => item[idKey] === id));
|
|
210
|
-
if (validIds.length > 0) {
|
|
211
|
-
// If multi-row selection is disabled, only select the first valid ID
|
|
212
|
-
const idsToSelect = enableMultiRowSelection ? validIds : [validIds[0]];
|
|
213
|
-
setSelectedRowIds(idsToSelect);
|
|
214
|
-
setInitialSelectionApplied(true);
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
return () => cancelAnimationFrame(frameId);
|
|
218
|
-
}
|
|
219
|
-
}, [
|
|
220
|
-
items,
|
|
221
|
-
initiallySelected,
|
|
222
|
-
rowsSelectable,
|
|
223
|
-
idKey,
|
|
224
|
-
enableMultiRowSelection,
|
|
225
|
-
setSelectedRowIds,
|
|
226
|
-
initialSelectionApplied,
|
|
227
|
-
selectedItems,
|
|
228
|
-
syncWithAppState,
|
|
229
|
-
]);
|
|
230
|
-
// --- If the multi-row selection switches to disabled, keep only the first selected item
|
|
231
|
-
const prevEnableMultiRowSelection = (0, hooks_1.usePrevious)(enableMultiRowSelection);
|
|
232
|
-
(0, react_1.useEffect)(() => {
|
|
233
|
-
if (prevEnableMultiRowSelection && !enableMultiRowSelection) {
|
|
234
|
-
if (selectedItems.length > 1) {
|
|
235
|
-
setSelectedRowIds([selectedItems[0][idKey]]);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}, [
|
|
239
|
-
enableMultiRowSelection,
|
|
240
|
-
idKey,
|
|
241
|
-
prevEnableMultiRowSelection,
|
|
242
|
-
selectedItems,
|
|
243
|
-
setSelectedRowIds,
|
|
244
|
-
]);
|
|
245
|
-
// --- If the focused item is not available set the focus to the first item
|
|
246
|
-
(0, react_1.useEffect)(() => {
|
|
247
|
-
if (!rowsSelectable) {
|
|
248
|
-
return;
|
|
249
|
-
}
|
|
250
|
-
if (focusedIndex !== -1 && !walkableList[focusedIndex] && walkableList[0]) {
|
|
251
|
-
setFocusedIndex(0);
|
|
252
|
-
}
|
|
253
|
-
}, [focusedIndex, rowsSelectable, setFocusedIndex, walkableList]);
|
|
254
|
-
// --- Handle the user event to change the current selection. The event function handles the SHIFT, CTRL,
|
|
255
|
-
// --- and META keys to decide how to change or extend the existing selection
|
|
256
|
-
const toggleRowIndex = (0, misc_1.useEvent)(
|
|
257
|
-
// targetIndex: the item affected by an event
|
|
258
|
-
// options: key event options
|
|
259
|
-
(targetIndex, options = {}) => {
|
|
260
|
-
if (!rowsSelectable) {
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
263
|
-
const targetId = walkableList[targetIndex];
|
|
264
|
-
const { shiftKey, metaKey, ctrlKey } = options;
|
|
265
|
-
const singleItem = !enableMultiRowSelection || (!shiftKey && !metaKey && !ctrlKey);
|
|
266
|
-
// --- This variable will hold the newest selection interval
|
|
267
|
-
let newSelectionInterval;
|
|
268
|
-
let newSelectedRowsIdsInOrder = [...selectedItems.map((item) => item[idKey])];
|
|
269
|
-
if (singleItem) {
|
|
270
|
-
newSelectionInterval = {
|
|
271
|
-
from: targetId,
|
|
272
|
-
to: targetId,
|
|
273
|
-
};
|
|
274
|
-
newSelectedRowsIdsInOrder = [targetId];
|
|
275
|
-
}
|
|
276
|
-
else {
|
|
277
|
-
if (shiftKey) {
|
|
278
|
-
// --- SHIFT is pressed, extend the current selection
|
|
279
|
-
let normalizedFromIdx;
|
|
280
|
-
let normalizedToIdx;
|
|
281
|
-
let from;
|
|
282
|
-
let to;
|
|
283
|
-
if (selectionInterval) {
|
|
284
|
-
// --- Get the selection boundaries and normalize them (from is less than or equal than to)
|
|
285
|
-
let oldFromIdx = walkableList.indexOf(selectionInterval.from);
|
|
286
|
-
let oldToIdx = walkableList.indexOf(selectionInterval.to);
|
|
287
|
-
let normalizedOldFromIdx = Math.min(oldFromIdx, oldToIdx);
|
|
288
|
-
let normalizedOldToIdx = Math.max(oldFromIdx, oldToIdx);
|
|
289
|
-
// --- Get the slice of selected IDs
|
|
290
|
-
const slice = walkableList.slice(normalizedOldFromIdx, normalizedOldToIdx + 1);
|
|
291
|
-
newSelectedRowsIdsInOrder = newSelectedRowsIdsInOrder.filter((item) => !slice.includes(item));
|
|
292
|
-
from = selectionInterval.from;
|
|
293
|
-
to = targetId;
|
|
294
|
-
let fromIdx = walkableList.indexOf(from);
|
|
295
|
-
let toIdx = walkableList.indexOf(to);
|
|
296
|
-
normalizedFromIdx = Math.min(fromIdx, toIdx);
|
|
297
|
-
normalizedToIdx = Math.max(fromIdx, toIdx);
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
from = targetId;
|
|
301
|
-
to = targetId;
|
|
302
|
-
normalizedFromIdx = targetIndex;
|
|
303
|
-
normalizedToIdx = targetIndex;
|
|
304
|
-
}
|
|
305
|
-
const sl = walkableList.slice(normalizedFromIdx, normalizedToIdx + 1);
|
|
306
|
-
newSelectedRowsIdsInOrder = (0, lodash_es_1.union)(newSelectedRowsIdsInOrder, sl);
|
|
307
|
-
newSelectionInterval = {
|
|
308
|
-
from: from,
|
|
309
|
-
to: to,
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
// --- SHIFT is not pressed, set the new interval to the newly focused item
|
|
314
|
-
newSelectionInterval = {
|
|
315
|
-
from: targetId,
|
|
316
|
-
to: targetId,
|
|
317
|
-
};
|
|
318
|
-
if (metaKey || ctrlKey) {
|
|
319
|
-
// --- If META key (Mac) or CTRL (Windows) is pressed, toggle the selection of the targeted item
|
|
320
|
-
if (newSelectedRowsIdsInOrder.includes(targetId)) {
|
|
321
|
-
newSelectedRowsIdsInOrder = newSelectedRowsIdsInOrder.filter((item) => item !== targetId);
|
|
322
|
-
}
|
|
323
|
-
else {
|
|
324
|
-
newSelectedRowsIdsInOrder.push(targetId);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
else {
|
|
328
|
-
// --- The targeted item remains the only selection
|
|
329
|
-
newSelectedRowsIdsInOrder = [targetId];
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
// --- Update the state variables of the selection
|
|
334
|
-
setFocusedIndex(targetIndex);
|
|
335
|
-
setSelectedRowIds((0, lodash_es_1.uniq)(newSelectedRowsIdsInOrder));
|
|
336
|
-
setSelectionInterval(newSelectionInterval);
|
|
337
|
-
});
|
|
338
|
-
// --- This function handles the user event to change the current selection according to the row ID
|
|
339
|
-
// --- affected by the event
|
|
340
|
-
const toggleRow = (0, misc_1.useEvent)((item, options) => {
|
|
341
|
-
if (!rowsSelectable) {
|
|
342
|
-
return;
|
|
343
|
-
}
|
|
344
|
-
const targetIndex = walkableList.indexOf(item[idKey]);
|
|
345
|
-
toggleRowIndex(targetIndex, options);
|
|
346
|
-
});
|
|
347
|
-
// --- Handle the key events that may change the current selection
|
|
348
|
-
const onKeyDown = (0, misc_1.useEvent)((event) => {
|
|
349
|
-
if (!rowsSelectable) {
|
|
350
|
-
return;
|
|
351
|
-
}
|
|
352
|
-
if (event.key === "ArrowDown") {
|
|
353
|
-
// --- Move/extend the selection to the item below the focused one
|
|
354
|
-
event.preventDefault();
|
|
355
|
-
let newFocusIndex = Math.min(visibleItems.length - 1, focusedIndex + 1);
|
|
356
|
-
if (focusedIndex !== visibleItems.length - 1) {
|
|
357
|
-
toggleRowIndex(newFocusIndex, event);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
if (event.key === "PageDown") {
|
|
361
|
-
// --- Move/extend the selection to the item 8 items below the focused one
|
|
362
|
-
event.preventDefault();
|
|
363
|
-
const newFocusIndex = Math.min(visibleItems.length - 1, focusedIndex + 8);
|
|
364
|
-
toggleRowIndex(newFocusIndex, event);
|
|
365
|
-
}
|
|
366
|
-
if (event.key === "ArrowUp") {
|
|
367
|
-
// --- Move/extend the selection to the item above the focused one
|
|
368
|
-
event.preventDefault();
|
|
369
|
-
let newFocusIndex = Math.max(0, focusedIndex - 1);
|
|
370
|
-
if (focusedIndex >= 0) {
|
|
371
|
-
toggleRowIndex(newFocusIndex, event);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
if (event.key === "PageUp") {
|
|
375
|
-
// --- Move/extend the selection to the item 8 items above the focused one
|
|
376
|
-
event.preventDefault();
|
|
377
|
-
const newFocusIndex = Math.max(0, focusedIndex - 8);
|
|
378
|
-
toggleRowIndex(newFocusIndex, event);
|
|
379
|
-
}
|
|
380
|
-
});
|
|
381
|
-
(0, react_1.useEffect)(() => {
|
|
382
|
-
// console.log("selection DID CHANGE?");
|
|
383
|
-
void (onSelectionDidChange === null || onSelectionDidChange === void 0 ? void 0 : onSelectionDidChange(selectedItems));
|
|
384
|
-
}, [selectedItems, onSelectionDidChange]);
|
|
385
|
-
/**
|
|
386
|
-
* This operation checks or clears all rows
|
|
387
|
-
*/
|
|
388
|
-
const checkAllRows = (0, misc_1.useEvent)((checked) => {
|
|
389
|
-
if (!rowsSelectable) {
|
|
390
|
-
return;
|
|
391
|
-
}
|
|
392
|
-
if (!enableMultiRowSelection && checked) {
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
setSelectedRowIds(checked
|
|
396
|
-
? items
|
|
397
|
-
.filter((item) => (rowDisabledPredicate ? !rowDisabledPredicate(item) : true))
|
|
398
|
-
.map((item) => item[idKey])
|
|
399
|
-
: []);
|
|
400
|
-
});
|
|
401
|
-
/**
|
|
402
|
-
* This operation creates a hash object that indicates the selected status of selected row IDs
|
|
403
|
-
*/
|
|
404
|
-
const selectedRowIdMap = (0, react_1.useMemo)(() => {
|
|
405
|
-
let rows = {};
|
|
406
|
-
selectedItems.forEach((item) => {
|
|
407
|
-
rows[item[idKey]] = true;
|
|
408
|
-
});
|
|
409
|
-
return rows;
|
|
410
|
-
}, [idKey, selectedItems]);
|
|
411
|
-
const getSelectedItems = (0, react_1.useCallback)(() => {
|
|
412
|
-
return selectedItems;
|
|
413
|
-
}, [selectedItems]);
|
|
414
|
-
const getSelectedIds = (0, react_1.useCallback)(() => {
|
|
415
|
-
return selectedItems.map((item) => item[idKey]);
|
|
416
|
-
}, [idKey, selectedItems]);
|
|
417
|
-
const clearSelection = (0, react_1.useCallback)(() => {
|
|
418
|
-
checkAllRows(false);
|
|
419
|
-
}, [checkAllRows]);
|
|
420
|
-
const selectAll = (0, react_1.useCallback)(() => {
|
|
421
|
-
checkAllRows(true);
|
|
422
|
-
}, [checkAllRows]);
|
|
423
|
-
const selectId = (0, react_1.useCallback)((id) => {
|
|
424
|
-
if (!rowsSelectable) {
|
|
425
|
-
return;
|
|
426
|
-
}
|
|
427
|
-
let ids = Array.isArray(id) ? id : [id];
|
|
428
|
-
if (ids.length > 1 && !enableMultiRowSelection) {
|
|
429
|
-
ids = [ids[0]];
|
|
430
|
-
}
|
|
431
|
-
setSelectedRowIds(ids);
|
|
432
|
-
}, [enableMultiRowSelection, rowsSelectable, setSelectedRowIds]);
|
|
433
|
-
const api = (0, react_1.useMemo)(() => {
|
|
434
|
-
return {
|
|
435
|
-
getSelectedItems,
|
|
436
|
-
getSelectedIds,
|
|
437
|
-
clearSelection,
|
|
438
|
-
selectAll,
|
|
439
|
-
selectId,
|
|
440
|
-
};
|
|
441
|
-
}, [clearSelection, getSelectedIds, getSelectedItems, selectAll, selectId]);
|
|
442
|
-
// --- Retrieve the selection management object
|
|
443
|
-
return {
|
|
444
|
-
onKeyDown,
|
|
445
|
-
focusedIndex,
|
|
446
|
-
toggleRowIndex,
|
|
447
|
-
toggleRow,
|
|
448
|
-
checkAllRows,
|
|
449
|
-
selectedRowIdMap,
|
|
450
|
-
selectedItems,
|
|
451
|
-
idKey,
|
|
452
|
-
selectionApi: api,
|
|
453
|
-
};
|
|
454
|
-
}
|
|
@@ -1,76 +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.tableOfContentsRenderer = exports.TableOfContentsMd = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const TableOfContents_module_scss_1 = __importDefault(require("./TableOfContents.module.scss"));
|
|
9
|
-
const renderers_1 = require("../../components-core/renderers");
|
|
10
|
-
const themeVars_1 = require("../../components-core/theming/themeVars");
|
|
11
|
-
const TableOfContentsNative_1 = require("./TableOfContentsNative");
|
|
12
|
-
const IndexerContext_1 = require("../App/IndexerContext");
|
|
13
|
-
const metadata_helpers_1 = require("../metadata-helpers");
|
|
14
|
-
const COMP = "TableOfContents";
|
|
15
|
-
const COMP_CHILD = "TableOfContentsItem";
|
|
16
|
-
exports.TableOfContentsMd = (0, metadata_helpers_1.createMetadata)({
|
|
17
|
-
status: "stable",
|
|
18
|
-
description: "`TableOfContents` component collects [Heading](/components/Heading) and " +
|
|
19
|
-
"[Bookmark](/components/Bookmark) within the current page and displays them in a navigable tree.",
|
|
20
|
-
props: {
|
|
21
|
-
smoothScrolling: {
|
|
22
|
-
description: `This property indicates that smooth scrolling is used while scrolling the selected table ` +
|
|
23
|
-
`of contents items into view.`,
|
|
24
|
-
valueType: "boolean",
|
|
25
|
-
defaultValue: TableOfContentsNative_1.defaultProps.smoothScrolling,
|
|
26
|
-
},
|
|
27
|
-
maxHeadingLevel: {
|
|
28
|
-
description: "Defines the maximum heading level (1 to 6) to include in the table of contents. " +
|
|
29
|
-
"For example, if it is 2, then `H1` and `H2` are displayed, but lower levels " +
|
|
30
|
-
"(`H3` to `H6`) are not.",
|
|
31
|
-
valueType: "number",
|
|
32
|
-
defaultValue: TableOfContentsNative_1.defaultProps.maxHeadingLevel,
|
|
33
|
-
},
|
|
34
|
-
omitH1: {
|
|
35
|
-
description: "If true, the `H1` heading is not included in the table of contents. " +
|
|
36
|
-
"This is useful when the `H1` is used for the page title and you want to avoid duplication.",
|
|
37
|
-
valueType: "boolean",
|
|
38
|
-
defaultValue: false,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
themeVars: (0, themeVars_1.parseScssVar)(TableOfContents_module_scss_1.default.themeVars),
|
|
42
|
-
defaultThemeVars: {
|
|
43
|
-
[`padding-${COMP}`]: "$space-2",
|
|
44
|
-
[`textColor-${COMP_CHILD}`]: "$color-secondary-500",
|
|
45
|
-
[`textColor-${COMP_CHILD}--hover`]: "$textColor-primary",
|
|
46
|
-
[`fontSize-${COMP_CHILD}`]: "$fontSize-sm",
|
|
47
|
-
[`wordWrap-${COMP_CHILD}`]: "break-word",
|
|
48
|
-
[`paddingVertical-${COMP_CHILD}`]: "$space-1",
|
|
49
|
-
[`paddingLeft-${COMP_CHILD}`]: "$space-1",
|
|
50
|
-
[`paddingLeft-${COMP_CHILD}-level-2`]: "$space-3",
|
|
51
|
-
[`paddingLeft-${COMP_CHILD}-level-3`]: "$space-5",
|
|
52
|
-
[`paddingLeft-${COMP_CHILD}-level-4`]: "$space-6",
|
|
53
|
-
[`paddingLeft-${COMP_CHILD}-level-5`]: "$space-6",
|
|
54
|
-
[`paddingLeft-${COMP_CHILD}-level-6`]: "$space-6",
|
|
55
|
-
[`fontWeight-${COMP_CHILD}`]: "$fontWeight-bold",
|
|
56
|
-
[`fontWeight-${COMP_CHILD}-level-2`]: "$fontWeight-medium",
|
|
57
|
-
[`fontWeight-${COMP_CHILD}-level-3`]: "$fontWeight-normal",
|
|
58
|
-
[`fontWeight-${COMP_CHILD}-level-4`]: "$fontWeight-normal",
|
|
59
|
-
[`fontWeight-${COMP_CHILD}-level-5`]: "$fontWeight-normal",
|
|
60
|
-
[`fontWeight-${COMP_CHILD}-level-6`]: "$fontWeight-normal",
|
|
61
|
-
[`fontStyle-${COMP_CHILD}-level-6`]: "italic",
|
|
62
|
-
[`textColor-${COMP_CHILD}--active`]: "$color-primary-400",
|
|
63
|
-
[`fontWeight-${COMP_CHILD}--active`]: "$fontWeight-bold",
|
|
64
|
-
},
|
|
65
|
-
});
|
|
66
|
-
function IndexAwareTableOfContents(props) {
|
|
67
|
-
const { indexing } = (0, IndexerContext_1.useIndexerContext)();
|
|
68
|
-
if (indexing) {
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
return (0, jsx_runtime_1.jsx)(TableOfContentsNative_1.TableOfContents, Object.assign({}, props));
|
|
72
|
-
}
|
|
73
|
-
exports.tableOfContentsRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.TableOfContentsMd, ({ className, node, extractValue }) => {
|
|
74
|
-
var _a, _b, _c;
|
|
75
|
-
return ((0, jsx_runtime_1.jsx)(IndexAwareTableOfContents, { className: className, smoothScrolling: extractValue.asOptionalBoolean((_a = node.props) === null || _a === void 0 ? void 0 : _a.smoothScrolling), maxHeadingLevel: extractValue.asOptionalNumber((_b = node.props) === null || _b === void 0 ? void 0 : _b.maxHeadingLevel), omitH1: extractValue.asOptionalBoolean((_c = node.props) === null || _c === void 0 ? void 0 : _c.omitH1) }));
|
|
76
|
-
});
|