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,856 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const component_test_helpers_1 = require("../../testing/component-test-helpers");
|
|
13
|
-
const fixtures_1 = require("../../testing/fixtures");
|
|
14
|
-
const utils_1 = require("./utils");
|
|
15
|
-
// =============================================================================
|
|
16
|
-
// BASIC FUNCTIONALITY TESTS
|
|
17
|
-
// =============================================================================
|
|
18
|
-
fixtures_1.test.describe("Basic Functionality", () => {
|
|
19
|
-
(0, fixtures_1.test)("renders with basic setup", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
20
|
-
yield initTestBed(`
|
|
21
|
-
<Splitter height="200px" testId="splitter">
|
|
22
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
23
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
24
|
-
</Splitter>
|
|
25
|
-
`);
|
|
26
|
-
yield (0, fixtures_1.expect)(page.getByTestId("splitter")).toBeVisible();
|
|
27
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
28
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).toBeVisible();
|
|
29
|
-
}));
|
|
30
|
-
(0, fixtures_1.test)("renders with single child", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
31
|
-
yield initTestBed(`
|
|
32
|
-
<Splitter height="200px" testId="splitter">
|
|
33
|
-
<Stack backgroundColor="lightblue" height="100%" testId="single-child"/>
|
|
34
|
-
</Splitter>
|
|
35
|
-
`);
|
|
36
|
-
yield (0, fixtures_1.expect)(page.getByTestId("splitter")).toBeVisible();
|
|
37
|
-
yield (0, fixtures_1.expect)(page.getByTestId("single-child")).toBeVisible();
|
|
38
|
-
}));
|
|
39
|
-
fixtures_1.test.describe("conditional rendering behavior", () => {
|
|
40
|
-
(0, fixtures_1.test)("hides resizer and stretches single panel when second child has when=false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
41
|
-
yield initTestBed(`
|
|
42
|
-
<Splitter height="200px" width="400px" testId="splitter">
|
|
43
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary">Primary</Stack>
|
|
44
|
-
<Stack when="{false}" backgroundColor="darksalmon" height="100%" testId="secondary">Secondary</Stack>
|
|
45
|
-
</Splitter>
|
|
46
|
-
`);
|
|
47
|
-
// Primary panel should be visible
|
|
48
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
49
|
-
// Secondary panel should not be visible (filtered out by when=false)
|
|
50
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).not.toBeVisible();
|
|
51
|
-
// Resizer should not be visible when only one child is rendered
|
|
52
|
-
const resizer = page.locator('[class*="resizer"]');
|
|
53
|
-
const isResizerVisible = yield resizer.isVisible().catch(() => false);
|
|
54
|
-
(0, fixtures_1.expect)(isResizerVisible).toBe(false);
|
|
55
|
-
// Primary panel should stretch to fill the entire splitter container
|
|
56
|
-
const splitter = page.getByTestId("splitter");
|
|
57
|
-
const primary = page.getByTestId("primary");
|
|
58
|
-
const splitterBounds = yield (0, component_test_helpers_1.getBounds)(splitter);
|
|
59
|
-
const primaryBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
60
|
-
// Allow small tolerance for borders/padding
|
|
61
|
-
const tolerance = 5;
|
|
62
|
-
(0, fixtures_1.expect)(Math.abs(primaryBounds.width - splitterBounds.width)).toBeLessThan(tolerance);
|
|
63
|
-
(0, fixtures_1.expect)(Math.abs(primaryBounds.height - splitterBounds.height)).toBeLessThan(tolerance);
|
|
64
|
-
}));
|
|
65
|
-
(0, fixtures_1.test)("hides resizer and stretches single panel when first child has when=false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
66
|
-
yield initTestBed(`
|
|
67
|
-
<Splitter height="200px" width="400px" testId="splitter">
|
|
68
|
-
<Stack when="{false}" backgroundColor="lightblue" height="100%" testId="primary">Primary</Stack>
|
|
69
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary">Secondary</Stack>
|
|
70
|
-
</Splitter>
|
|
71
|
-
`);
|
|
72
|
-
// Primary panel should not be visible (filtered out by when=false)
|
|
73
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).not.toBeVisible();
|
|
74
|
-
// Secondary panel should be visible
|
|
75
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).toBeVisible();
|
|
76
|
-
// Resizer should not be visible when only one child is rendered
|
|
77
|
-
const resizer = page.locator('[class*="resizer"]');
|
|
78
|
-
const isResizerVisible = yield resizer.isVisible().catch(() => false);
|
|
79
|
-
(0, fixtures_1.expect)(isResizerVisible).toBe(false);
|
|
80
|
-
// Secondary panel should stretch to fill the entire splitter container
|
|
81
|
-
const splitter = page.getByTestId("splitter");
|
|
82
|
-
const secondary = page.getByTestId("secondary");
|
|
83
|
-
const splitterBounds = yield (0, component_test_helpers_1.getBounds)(splitter);
|
|
84
|
-
const secondaryBounds = yield (0, component_test_helpers_1.getBounds)(secondary);
|
|
85
|
-
// Allow small tolerance for borders/padding
|
|
86
|
-
const tolerance = 5;
|
|
87
|
-
(0, fixtures_1.expect)(Math.abs(secondaryBounds.width - splitterBounds.width)).toBeLessThan(tolerance);
|
|
88
|
-
(0, fixtures_1.expect)(Math.abs(secondaryBounds.height - splitterBounds.height)).toBeLessThan(tolerance);
|
|
89
|
-
}));
|
|
90
|
-
(0, fixtures_1.test)("shows resizer when both children are visible", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
91
|
-
yield initTestBed(`
|
|
92
|
-
<Splitter height="200px" width="400px" testId="splitter">
|
|
93
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary">Primary</Stack>
|
|
94
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary">Secondary</Stack>
|
|
95
|
-
</Splitter>
|
|
96
|
-
`);
|
|
97
|
-
// Both panels should be visible
|
|
98
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
99
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).toBeVisible();
|
|
100
|
-
// Resizer should be visible when both children are rendered
|
|
101
|
-
const resizer = page.locator('[class*="resizer"]');
|
|
102
|
-
yield (0, fixtures_1.expect)(resizer).toBeVisible();
|
|
103
|
-
}));
|
|
104
|
-
(0, fixtures_1.test)("dynamically updates when child visibility changes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
105
|
-
const { testStateDriver } = yield initTestBed(`
|
|
106
|
-
<Fragment var.showSecondary="{true}">
|
|
107
|
-
<Splitter height="200px" width="400px" testId="splitter">
|
|
108
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary">Primary</Stack>
|
|
109
|
-
<Stack when="{showSecondary}" backgroundColor="darksalmon" height="100%" testId="secondary">Secondary</Stack>
|
|
110
|
-
</Splitter>
|
|
111
|
-
<Button testId="toggle" onClick="showSecondary = !showSecondary">Toggle Secondary</Button>
|
|
112
|
-
</Fragment>
|
|
113
|
-
`);
|
|
114
|
-
// Initially both panels should be visible
|
|
115
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
116
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).toBeVisible();
|
|
117
|
-
// Resizer should be visible
|
|
118
|
-
const resizer = page.locator('[class*="resizer"]');
|
|
119
|
-
yield (0, fixtures_1.expect)(resizer).toBeVisible();
|
|
120
|
-
// Click toggle to hide secondary panel
|
|
121
|
-
yield page.getByTestId("toggle").click();
|
|
122
|
-
// Primary should still be visible, secondary should be hidden
|
|
123
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
124
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).not.toBeVisible();
|
|
125
|
-
// Resizer should now be hidden
|
|
126
|
-
const isResizerVisible = yield resizer.isVisible().catch(() => false);
|
|
127
|
-
(0, fixtures_1.expect)(isResizerVisible).toBe(false);
|
|
128
|
-
// Primary panel should stretch to fill container
|
|
129
|
-
const splitter = page.getByTestId("splitter");
|
|
130
|
-
const primary = page.getByTestId("primary");
|
|
131
|
-
const splitterBounds = yield (0, component_test_helpers_1.getBounds)(splitter);
|
|
132
|
-
const primaryBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
133
|
-
const tolerance = 5;
|
|
134
|
-
(0, fixtures_1.expect)(Math.abs(primaryBounds.width - splitterBounds.width)).toBeLessThan(tolerance);
|
|
135
|
-
// Click toggle again to show secondary panel
|
|
136
|
-
yield page.getByTestId("toggle").click();
|
|
137
|
-
// Both panels should be visible again
|
|
138
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
139
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).toBeVisible();
|
|
140
|
-
// Resizer should be visible again
|
|
141
|
-
yield (0, fixtures_1.expect)(resizer).toBeVisible();
|
|
142
|
-
}));
|
|
143
|
-
(0, fixtures_1.test)("handles when condition with complex expressions", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
144
|
-
const { testStateDriver } = yield initTestBed(`
|
|
145
|
-
<Fragment var.count="{0}">
|
|
146
|
-
<Splitter height="200px" width="400px" testId="splitter">
|
|
147
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary">Primary</Stack>
|
|
148
|
-
<Stack when="{count > 5}" backgroundColor="darksalmon" height="100%" testId="secondary">Secondary</Stack>
|
|
149
|
-
</Splitter>
|
|
150
|
-
<Button testId="increment" onClick="count = count + 1">Increment</Button>
|
|
151
|
-
<Text testId="count-display">{count}</Text>
|
|
152
|
-
</Fragment>
|
|
153
|
-
`);
|
|
154
|
-
// Initially only primary should be visible (count = 0, which is not > 5)
|
|
155
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
156
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).not.toBeVisible();
|
|
157
|
-
// Resizer should be hidden
|
|
158
|
-
const resizer = page.locator('[class*="resizer"]');
|
|
159
|
-
const isResizerVisible1 = yield resizer.isVisible().catch(() => false);
|
|
160
|
-
(0, fixtures_1.expect)(isResizerVisible1).toBe(false);
|
|
161
|
-
// Click increment 6 times to make count > 5
|
|
162
|
-
for (let i = 0; i < 6; i++) {
|
|
163
|
-
yield page.getByTestId("increment").click();
|
|
164
|
-
}
|
|
165
|
-
yield (0, fixtures_1.expect)(page.getByTestId("count-display")).toHaveText("6");
|
|
166
|
-
// Now both panels should be visible
|
|
167
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
168
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).toBeVisible();
|
|
169
|
-
// Resizer should be visible
|
|
170
|
-
yield (0, fixtures_1.expect)(resizer).toBeVisible();
|
|
171
|
-
}));
|
|
172
|
-
(0, fixtures_1.test)("works with multiple conditionally hidden children", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
173
|
-
yield initTestBed(`
|
|
174
|
-
<Splitter height="200px" width="400px" testId="splitter">
|
|
175
|
-
<Stack when="{false}" backgroundColor="lightblue" height="100%" testId="child1">Child 1</Stack>
|
|
176
|
-
<Stack when="{false}" backgroundColor="darksalmon" height="100%" testId="child2">Child 2</Stack>
|
|
177
|
-
<Stack backgroundColor="lightgreen" height="100%" testId="child3">Child 3</Stack>
|
|
178
|
-
</Splitter>
|
|
179
|
-
`);
|
|
180
|
-
// Only child3 should be visible
|
|
181
|
-
yield (0, fixtures_1.expect)(page.getByTestId("child1")).not.toBeVisible();
|
|
182
|
-
yield (0, fixtures_1.expect)(page.getByTestId("child2")).not.toBeVisible();
|
|
183
|
-
yield (0, fixtures_1.expect)(page.getByTestId("child3")).toBeVisible();
|
|
184
|
-
// Resizer should be hidden (only one visible child)
|
|
185
|
-
const resizer = page.locator('[class*="resizer"]');
|
|
186
|
-
const isResizerVisible = yield resizer.isVisible().catch(() => false);
|
|
187
|
-
(0, fixtures_1.expect)(isResizerVisible).toBe(false);
|
|
188
|
-
// Child3 should stretch to fill container
|
|
189
|
-
const splitter = page.getByTestId("splitter");
|
|
190
|
-
const child3 = page.getByTestId("child3");
|
|
191
|
-
const splitterBounds = yield (0, component_test_helpers_1.getBounds)(splitter);
|
|
192
|
-
const child3Bounds = yield (0, component_test_helpers_1.getBounds)(child3);
|
|
193
|
-
const tolerance = 5;
|
|
194
|
-
(0, fixtures_1.expect)(Math.abs(child3Bounds.width - splitterBounds.width)).toBeLessThan(tolerance);
|
|
195
|
-
}));
|
|
196
|
-
(0, fixtures_1.test)("handles all children being conditionally hidden", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
197
|
-
yield initTestBed(`
|
|
198
|
-
<Splitter height="200px" width="400px" testId="splitter">
|
|
199
|
-
<Stack when="{false}" backgroundColor="lightblue" height="100%" testId="child1">Child 1</Stack>
|
|
200
|
-
<Stack when="{false}" backgroundColor="darksalmon" height="100%" testId="child2">Child 2</Stack>
|
|
201
|
-
</Splitter>
|
|
202
|
-
`);
|
|
203
|
-
// No children should be visible
|
|
204
|
-
yield (0, fixtures_1.expect)(page.getByTestId("child1")).not.toBeVisible();
|
|
205
|
-
yield (0, fixtures_1.expect)(page.getByTestId("child2")).not.toBeVisible();
|
|
206
|
-
// Splitter should still be visible but empty
|
|
207
|
-
yield (0, fixtures_1.expect)(page.getByTestId("splitter")).toBeVisible();
|
|
208
|
-
// Resizer should not be visible
|
|
209
|
-
const resizer = page.locator('[class*="resizer"]');
|
|
210
|
-
const isResizerVisible = yield resizer.isVisible().catch(() => false);
|
|
211
|
-
(0, fixtures_1.expect)(isResizerVisible).toBe(false);
|
|
212
|
-
}));
|
|
213
|
-
(0, fixtures_1.test)("works with different orientations", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
214
|
-
yield initTestBed(`
|
|
215
|
-
<Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
|
|
216
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary">Primary</Stack>
|
|
217
|
-
<Stack when="{false}" backgroundColor="darksalmon" height="100%" testId="secondary">Secondary</Stack>
|
|
218
|
-
</Splitter>
|
|
219
|
-
`);
|
|
220
|
-
// Primary should be visible, secondary should not
|
|
221
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
222
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).not.toBeVisible();
|
|
223
|
-
// Resizer should be hidden
|
|
224
|
-
const resizer = page.locator('[class*="resizer"]');
|
|
225
|
-
const isResizerVisible = yield resizer.isVisible().catch(() => false);
|
|
226
|
-
(0, fixtures_1.expect)(isResizerVisible).toBe(false);
|
|
227
|
-
// Primary should stretch horizontally to fill container
|
|
228
|
-
const splitter = page.getByTestId("splitter");
|
|
229
|
-
const primary = page.getByTestId("primary");
|
|
230
|
-
const splitterBounds = yield (0, component_test_helpers_1.getBounds)(splitter);
|
|
231
|
-
const primaryBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
232
|
-
const tolerance = 5;
|
|
233
|
-
(0, fixtures_1.expect)(Math.abs(primaryBounds.width - splitterBounds.width)).toBeLessThan(tolerance);
|
|
234
|
-
}));
|
|
235
|
-
});
|
|
236
|
-
fixtures_1.test.describe("orientation property", () => {
|
|
237
|
-
(0, fixtures_1.test)("orientation='horizontal' arranges sections left to right", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
238
|
-
yield initTestBed(`
|
|
239
|
-
<Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
|
|
240
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
241
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
242
|
-
</Splitter>
|
|
243
|
-
`);
|
|
244
|
-
const primary = page.getByTestId("primary");
|
|
245
|
-
const secondary = page.getByTestId("secondary");
|
|
246
|
-
const primaryBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
247
|
-
const secondaryBounds = yield (0, component_test_helpers_1.getBounds)(secondary);
|
|
248
|
-
// In horizontal orientation, primary should be to the left of secondary
|
|
249
|
-
(0, fixtures_1.expect)(primaryBounds.right).toBeLessThanOrEqual(secondaryBounds.left + 10); // Allow for small overlap due to resizer
|
|
250
|
-
}));
|
|
251
|
-
(0, fixtures_1.test)("orientation='vertical' arranges sections top to bottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
252
|
-
yield initTestBed(`
|
|
253
|
-
<Splitter height="200px" width="400px" orientation="vertical" testId="splitter">
|
|
254
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
255
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
256
|
-
</Splitter>
|
|
257
|
-
`);
|
|
258
|
-
const primary = page.getByTestId("primary");
|
|
259
|
-
const secondary = page.getByTestId("secondary");
|
|
260
|
-
const primaryBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
261
|
-
const secondaryBounds = yield (0, component_test_helpers_1.getBounds)(secondary);
|
|
262
|
-
// In vertical orientation, primary should be above secondary
|
|
263
|
-
(0, fixtures_1.expect)(primaryBounds.bottom).toBeLessThanOrEqual(secondaryBounds.top + 10); // Allow for small overlap due to resizer
|
|
264
|
-
}));
|
|
265
|
-
(0, fixtures_1.test)("defaults to vertical orientation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
266
|
-
yield initTestBed(`
|
|
267
|
-
<Splitter height="200px" width="400px" testId="splitter">
|
|
268
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
269
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
270
|
-
</Splitter>
|
|
271
|
-
`);
|
|
272
|
-
const primary = page.getByTestId("primary");
|
|
273
|
-
const secondary = page.getByTestId("secondary");
|
|
274
|
-
const primaryBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
275
|
-
const secondaryBounds = yield (0, component_test_helpers_1.getBounds)(secondary);
|
|
276
|
-
// Default should be vertical (primary above secondary)
|
|
277
|
-
(0, fixtures_1.expect)(primaryBounds.bottom).toBeLessThanOrEqual(secondaryBounds.top + 10);
|
|
278
|
-
}));
|
|
279
|
-
});
|
|
280
|
-
fixtures_1.test.describe("swapped property", () => {
|
|
281
|
-
[
|
|
282
|
-
{ swapped: false, orientation: "horizontal", description: "primary left, secondary right" },
|
|
283
|
-
{ swapped: true, orientation: "horizontal", description: "secondary left, primary right" },
|
|
284
|
-
{ swapped: false, orientation: "vertical", description: "primary top, secondary bottom" },
|
|
285
|
-
{ swapped: true, orientation: "vertical", description: "secondary top, primary bottom" },
|
|
286
|
-
].forEach(({ swapped, orientation, description }) => {
|
|
287
|
-
(0, fixtures_1.test)(`swapped=${swapped} with orientation=${orientation} renders ${description}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
288
|
-
yield initTestBed(`
|
|
289
|
-
<Splitter height="200px" width="400px" orientation="${orientation}" swapped="${swapped}" testId="splitter">
|
|
290
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
291
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
292
|
-
</Splitter>
|
|
293
|
-
`);
|
|
294
|
-
const primary = page.getByTestId("primary");
|
|
295
|
-
const secondary = page.getByTestId("secondary");
|
|
296
|
-
const primaryBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
297
|
-
const secondaryBounds = yield (0, component_test_helpers_1.getBounds)(secondary);
|
|
298
|
-
if (orientation === "horizontal") {
|
|
299
|
-
if (swapped) {
|
|
300
|
-
// Secondary should be to the left of primary
|
|
301
|
-
(0, fixtures_1.expect)(secondaryBounds.right).toBeLessThanOrEqual(primaryBounds.left + 10);
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
// Primary should be to the left of secondary
|
|
305
|
-
(0, fixtures_1.expect)(primaryBounds.right).toBeLessThanOrEqual(secondaryBounds.left + 10);
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
else {
|
|
309
|
-
if (swapped) {
|
|
310
|
-
// Secondary should be above primary
|
|
311
|
-
(0, fixtures_1.expect)(secondaryBounds.bottom).toBeLessThanOrEqual(primaryBounds.top + 10);
|
|
312
|
-
}
|
|
313
|
-
else {
|
|
314
|
-
// Primary should be above secondary
|
|
315
|
-
(0, fixtures_1.expect)(primaryBounds.bottom).toBeLessThanOrEqual(secondaryBounds.top + 10);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}));
|
|
319
|
-
});
|
|
320
|
-
});
|
|
321
|
-
fixtures_1.test.describe("initialPrimarySize property", () => {
|
|
322
|
-
(0, fixtures_1.test)("sets initial size with percentage", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
323
|
-
yield initTestBed(`
|
|
324
|
-
<Splitter height="200px" width="400px" orientation="horizontal" initialPrimarySize="25%" testId="splitter">
|
|
325
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
326
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
327
|
-
</Splitter>
|
|
328
|
-
`);
|
|
329
|
-
const splitter = page.getByTestId("splitter");
|
|
330
|
-
const primary = page.getByTestId("primary");
|
|
331
|
-
const splitterBounds = yield (0, component_test_helpers_1.getBounds)(splitter);
|
|
332
|
-
const primaryBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
333
|
-
const expectedWidth = splitterBounds.width * 0.25;
|
|
334
|
-
const tolerance = 10; // Allow some tolerance for rounding/margins
|
|
335
|
-
(0, fixtures_1.expect)(Math.abs(primaryBounds.width - expectedWidth)).toBeLessThan(tolerance);
|
|
336
|
-
}));
|
|
337
|
-
(0, fixtures_1.test)("sets initial size with pixels", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
338
|
-
yield initTestBed(`
|
|
339
|
-
<Splitter height="200px" width="400px" orientation="horizontal" initialPrimarySize="100px" testId="splitter">
|
|
340
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
341
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
342
|
-
</Splitter>
|
|
343
|
-
`);
|
|
344
|
-
const primary = page.getByTestId("primary");
|
|
345
|
-
const primaryBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
346
|
-
const tolerance = 10;
|
|
347
|
-
(0, fixtures_1.expect)(Math.abs(primaryBounds.width - 100)).toBeLessThan(tolerance);
|
|
348
|
-
}));
|
|
349
|
-
(0, fixtures_1.test)("defaults to 50%", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
350
|
-
yield initTestBed(`
|
|
351
|
-
<Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
|
|
352
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
353
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
354
|
-
</Splitter>
|
|
355
|
-
`);
|
|
356
|
-
const splitter = page.getByTestId("splitter");
|
|
357
|
-
const primary = page.getByTestId("primary");
|
|
358
|
-
const splitterBounds = yield (0, component_test_helpers_1.getBounds)(splitter);
|
|
359
|
-
const primaryBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
360
|
-
const expectedWidth = splitterBounds.width * 0.5;
|
|
361
|
-
const tolerance = 15; // Allow some tolerance for default behavior
|
|
362
|
-
(0, fixtures_1.expect)(Math.abs(primaryBounds.width - expectedWidth)).toBeLessThan(tolerance);
|
|
363
|
-
}));
|
|
364
|
-
});
|
|
365
|
-
fixtures_1.test.describe("floating property", () => {
|
|
366
|
-
(0, fixtures_1.test)("floating=false shows resizer permanently", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
367
|
-
yield initTestBed(`
|
|
368
|
-
<Splitter height="200px" width="400px" orientation="horizontal" floating="false" testId="splitter">
|
|
369
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
370
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
371
|
-
</Splitter>
|
|
372
|
-
`);
|
|
373
|
-
const splitter = page.getByTestId("splitter");
|
|
374
|
-
const driver = yield createSplitterDriver(splitter);
|
|
375
|
-
const resizer = yield driver.getResizer();
|
|
376
|
-
yield (0, fixtures_1.expect)(resizer).toBeVisible();
|
|
377
|
-
}));
|
|
378
|
-
(0, fixtures_1.test)("floating=true hides resizer until hover", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
379
|
-
yield initTestBed(`
|
|
380
|
-
<Splitter height="200px" width="400px" orientation="horizontal" floating="true" testId="splitter">
|
|
381
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
382
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
383
|
-
</Splitter>
|
|
384
|
-
`);
|
|
385
|
-
const splitter = page.getByTestId("splitter");
|
|
386
|
-
// When floating=true, the regular resizer should not be visible
|
|
387
|
-
const regularResizer = splitter.locator('[class*="resizer"]:not([class*="floating"])');
|
|
388
|
-
const isRegularResizerVisible = yield regularResizer.isVisible().catch(() => false);
|
|
389
|
-
(0, fixtures_1.expect)(isRegularResizerVisible).toBe(false);
|
|
390
|
-
// The floating resizer should exist but be initially hidden (opacity 0)
|
|
391
|
-
const floatingResizer = splitter.locator('[class*="floating"]');
|
|
392
|
-
if ((yield floatingResizer.count()) > 0) {
|
|
393
|
-
const initialOpacity = yield floatingResizer.evaluate(el => window.getComputedStyle(el).opacity);
|
|
394
|
-
(0, fixtures_1.expect)(parseFloat(initialOpacity)).toBe(0);
|
|
395
|
-
}
|
|
396
|
-
}));
|
|
397
|
-
});
|
|
398
|
-
fixtures_1.test.describe("splitterTemplate property", () => {
|
|
399
|
-
(0, fixtures_1.test)("renders custom splitter template", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
400
|
-
yield initTestBed(`
|
|
401
|
-
<Splitter height="200px" width="400px" testId="splitter">
|
|
402
|
-
<property name="splitterTemplate">
|
|
403
|
-
<ContentSeparator backgroundColor="green" height="4px" testId="custom-separator"/>
|
|
404
|
-
</property>
|
|
405
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
406
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
407
|
-
</Splitter>
|
|
408
|
-
`);
|
|
409
|
-
yield (0, fixtures_1.expect)(page.getByTestId("custom-separator")).toBeVisible();
|
|
410
|
-
}));
|
|
411
|
-
});
|
|
412
|
-
fixtures_1.test.describe("resize functionality", () => {
|
|
413
|
-
(0, fixtures_1.test)("drag resizer changes panel sizes in horizontal orientation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
414
|
-
yield initTestBed(`
|
|
415
|
-
<Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
|
|
416
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
417
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
418
|
-
</Splitter>
|
|
419
|
-
`);
|
|
420
|
-
const splitter = page.getByTestId("splitter");
|
|
421
|
-
const primary = page.getByTestId("primary");
|
|
422
|
-
const driver = yield createSplitterDriver(splitter);
|
|
423
|
-
// Get initial size
|
|
424
|
-
const initialBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
425
|
-
// Drag resizer to the right by 50 pixels
|
|
426
|
-
yield driver.dragResizer(50, 0);
|
|
427
|
-
// Get new size and verify it changed
|
|
428
|
-
const newBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
429
|
-
(0, fixtures_1.expect)(newBounds.width).toBeGreaterThan(initialBounds.width + 30); // Allow some tolerance
|
|
430
|
-
}));
|
|
431
|
-
(0, fixtures_1.test)("drag resizer changes panel sizes in vertical orientation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
432
|
-
yield initTestBed(`
|
|
433
|
-
<Splitter height="200px" width="400px" orientation="vertical" testId="splitter">
|
|
434
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
435
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
436
|
-
</Splitter>
|
|
437
|
-
`);
|
|
438
|
-
const splitter = page.getByTestId("splitter");
|
|
439
|
-
const primary = page.getByTestId("primary");
|
|
440
|
-
const driver = yield createSplitterDriver(splitter);
|
|
441
|
-
// Get initial size
|
|
442
|
-
const initialBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
443
|
-
// Drag resizer down by 30 pixels
|
|
444
|
-
yield driver.dragResizer(0, 30);
|
|
445
|
-
// Get new size and verify it changed
|
|
446
|
-
const newBounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
447
|
-
(0, fixtures_1.expect)(newBounds.height).toBeGreaterThan(initialBounds.height + 15); // Allow some tolerance
|
|
448
|
-
}));
|
|
449
|
-
});
|
|
450
|
-
fixtures_1.test.describe("size constraint properties", () => {
|
|
451
|
-
(0, fixtures_1.test)("minPrimarySize constrains minimum size", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
452
|
-
yield initTestBed(`
|
|
453
|
-
<Splitter height="200px" width="400px" orientation="horizontal" minPrimarySize="100px" testId="splitter">
|
|
454
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
455
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
456
|
-
</Splitter>
|
|
457
|
-
`);
|
|
458
|
-
const splitter = page.getByTestId("splitter");
|
|
459
|
-
const primary = page.getByTestId("primary");
|
|
460
|
-
const driver = yield createSplitterDriver(splitter);
|
|
461
|
-
// Try to drag resizer far to the left
|
|
462
|
-
yield driver.dragResizer(-300, 0);
|
|
463
|
-
// Primary should not be smaller than minimum
|
|
464
|
-
const bounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
465
|
-
(0, fixtures_1.expect)(bounds.width).toBeGreaterThanOrEqual(90); // Allow small tolerance
|
|
466
|
-
}));
|
|
467
|
-
(0, fixtures_1.test)("maxPrimarySize constrains maximum size", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
468
|
-
yield initTestBed(`
|
|
469
|
-
<Splitter height="200px" width="400px" orientation="horizontal" maxPrimarySize="300px" testId="splitter">
|
|
470
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
471
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
472
|
-
</Splitter>
|
|
473
|
-
`);
|
|
474
|
-
const splitter = page.getByTestId("splitter");
|
|
475
|
-
const primary = page.getByTestId("primary");
|
|
476
|
-
const driver = yield createSplitterDriver(splitter);
|
|
477
|
-
// Try to drag resizer far to the right
|
|
478
|
-
yield driver.dragResizer(300, 0);
|
|
479
|
-
// Primary should not be larger than maximum
|
|
480
|
-
const bounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
481
|
-
(0, fixtures_1.expect)(bounds.width).toBeLessThanOrEqual(310); // Allow small tolerance
|
|
482
|
-
}));
|
|
483
|
-
(0, fixtures_1.test)("negative maxPrimarySize in pixels constrains from end", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
484
|
-
yield initTestBed(`
|
|
485
|
-
<Splitter height="200px" width="400px" orientation="horizontal" maxPrimarySize="-100px" testId="splitter">
|
|
486
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
487
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
488
|
-
</Splitter>
|
|
489
|
-
`);
|
|
490
|
-
const splitter = page.getByTestId("splitter");
|
|
491
|
-
const primary = page.getByTestId("primary");
|
|
492
|
-
const driver = yield createSplitterDriver(splitter);
|
|
493
|
-
// Try to drag resizer far to the right
|
|
494
|
-
yield driver.dragResizer(350, 0);
|
|
495
|
-
// Primary should not be larger than 400 - 100 = 300px
|
|
496
|
-
const bounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
497
|
-
(0, fixtures_1.expect)(bounds.width).toBeLessThanOrEqual(310); // Allow small tolerance for 300px max
|
|
498
|
-
}));
|
|
499
|
-
(0, fixtures_1.test)("negative maxPrimarySize in percentage constrains from end", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
500
|
-
yield initTestBed(`
|
|
501
|
-
<Splitter height="200px" width="400px" orientation="horizontal" maxPrimarySize="-25%" testId="splitter">
|
|
502
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
503
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
504
|
-
</Splitter>
|
|
505
|
-
`);
|
|
506
|
-
const splitter = page.getByTestId("splitter");
|
|
507
|
-
const primary = page.getByTestId("primary");
|
|
508
|
-
const driver = yield createSplitterDriver(splitter);
|
|
509
|
-
// Try to drag resizer far to the right
|
|
510
|
-
yield driver.dragResizer(350, 0);
|
|
511
|
-
// Primary should not be larger than 75% of 400px = 300px
|
|
512
|
-
const bounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
513
|
-
(0, fixtures_1.expect)(bounds.width).toBeLessThanOrEqual(310); // Allow small tolerance for 300px max
|
|
514
|
-
}));
|
|
515
|
-
(0, fixtures_1.test)("negative maxPrimarySize works in vertical orientation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
516
|
-
yield initTestBed(`
|
|
517
|
-
<Splitter height="400px" width="200px" orientation="vertical" maxPrimarySize="-100px" testId="splitter">
|
|
518
|
-
<Stack backgroundColor="lightblue" width="100%" testId="primary"/>
|
|
519
|
-
<Stack backgroundColor="darksalmon" width="100%" testId="secondary"/>
|
|
520
|
-
</Splitter>
|
|
521
|
-
`);
|
|
522
|
-
const splitter = page.getByTestId("splitter");
|
|
523
|
-
const primary = page.getByTestId("primary");
|
|
524
|
-
const driver = yield createSplitterDriver(splitter);
|
|
525
|
-
// Try to drag resizer far down
|
|
526
|
-
yield driver.dragResizer(0, 350);
|
|
527
|
-
// Primary should not be larger than 400 - 100 = 300px height
|
|
528
|
-
const bounds = yield (0, component_test_helpers_1.getBounds)(primary);
|
|
529
|
-
(0, fixtures_1.expect)(bounds.height).toBeLessThanOrEqual(310); // Allow small tolerance for 300px max
|
|
530
|
-
}));
|
|
531
|
-
});
|
|
532
|
-
fixtures_1.test.describe("resize event", () => {
|
|
533
|
-
(0, fixtures_1.test)("fires resize event when dragging", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
534
|
-
const { testStateDriver } = yield initTestBed(`
|
|
535
|
-
<Splitter height="200px" width="400px" orientation="horizontal" onResize="arg => testState = arg" testId="splitter">
|
|
536
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
537
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
538
|
-
</Splitter>
|
|
539
|
-
`);
|
|
540
|
-
const splitter = page.getByTestId("splitter");
|
|
541
|
-
const driver = yield createSplitterDriver(splitter);
|
|
542
|
-
// Drag resizer
|
|
543
|
-
yield driver.dragResizer(50, 0);
|
|
544
|
-
// Verify resize event was called with array of percentages
|
|
545
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBeDefined();
|
|
546
|
-
const resizeData = yield testStateDriver.testState();
|
|
547
|
-
(0, fixtures_1.expect)(Array.isArray(resizeData)).toBe(true);
|
|
548
|
-
(0, fixtures_1.expect)(resizeData).toHaveLength(2);
|
|
549
|
-
(0, fixtures_1.expect)(typeof resizeData[0]).toBe("number");
|
|
550
|
-
(0, fixtures_1.expect)(typeof resizeData[1]).toBe("number");
|
|
551
|
-
}));
|
|
552
|
-
});
|
|
553
|
-
fixtures_1.test.describe("edge cases", () => {
|
|
554
|
-
(0, fixtures_1.test)("handles null properties gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
555
|
-
yield initTestBed(`
|
|
556
|
-
<Splitter
|
|
557
|
-
height="200px"
|
|
558
|
-
initialPrimarySize="50px"
|
|
559
|
-
minPrimarySize="10px"
|
|
560
|
-
maxPrimarySize="180px"
|
|
561
|
-
testId="splitter"
|
|
562
|
-
>
|
|
563
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
564
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
565
|
-
</Splitter>
|
|
566
|
-
`);
|
|
567
|
-
yield (0, fixtures_1.expect)(page.getByTestId("splitter")).toBeVisible();
|
|
568
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
569
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).toBeVisible();
|
|
570
|
-
}));
|
|
571
|
-
(0, fixtures_1.test)("handles undefined properties gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
572
|
-
yield initTestBed(`
|
|
573
|
-
<Splitter
|
|
574
|
-
height="200px"
|
|
575
|
-
width="400px"
|
|
576
|
-
testId="splitter"
|
|
577
|
-
>
|
|
578
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
579
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
580
|
-
</Splitter>
|
|
581
|
-
`);
|
|
582
|
-
yield (0, fixtures_1.expect)(page.getByTestId("splitter")).toBeVisible();
|
|
583
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
584
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).toBeVisible();
|
|
585
|
-
}));
|
|
586
|
-
(0, fixtures_1.test)("handles invalid size values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
587
|
-
yield initTestBed(`
|
|
588
|
-
<Splitter
|
|
589
|
-
height="200px"
|
|
590
|
-
width="400px"
|
|
591
|
-
initialPrimarySize="50%"
|
|
592
|
-
testId="splitter"
|
|
593
|
-
>
|
|
594
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
595
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
596
|
-
</Splitter>
|
|
597
|
-
`);
|
|
598
|
-
yield (0, fixtures_1.expect)(page.getByTestId("splitter")).toBeVisible();
|
|
599
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
600
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).toBeVisible();
|
|
601
|
-
}));
|
|
602
|
-
(0, fixtures_1.test)("handles object values for string properties", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
603
|
-
yield initTestBed(`
|
|
604
|
-
<Splitter
|
|
605
|
-
height="200px"
|
|
606
|
-
width="400px"
|
|
607
|
-
orientation="horizontal"
|
|
608
|
-
initialPrimarySize="50%"
|
|
609
|
-
testId="splitter"
|
|
610
|
-
>
|
|
611
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
612
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
613
|
-
</Splitter>
|
|
614
|
-
`);
|
|
615
|
-
yield (0, fixtures_1.expect)(page.getByTestId("splitter")).toBeVisible();
|
|
616
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
617
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).toBeVisible();
|
|
618
|
-
}));
|
|
619
|
-
});
|
|
620
|
-
});
|
|
621
|
-
// =============================================================================
|
|
622
|
-
// ACCESSIBILITY TESTS
|
|
623
|
-
// =============================================================================
|
|
624
|
-
fixtures_1.test.describe("Accessibility", () => {
|
|
625
|
-
(0, fixtures_1.test)("resizer has appropriate cursor styles", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
626
|
-
yield initTestBed(`
|
|
627
|
-
<Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
|
|
628
|
-
<Stack backgroundColor="lightblue" height="100%"/>
|
|
629
|
-
<Stack backgroundColor="darksalmon" height="100%"/>
|
|
630
|
-
</Splitter>
|
|
631
|
-
`);
|
|
632
|
-
const splitter = page.getByTestId("splitter");
|
|
633
|
-
const driver = yield createSplitterDriver(splitter);
|
|
634
|
-
const resizer = yield driver.getResizer();
|
|
635
|
-
yield (0, fixtures_1.expect)(resizer).toHaveCSS("cursor", "ew-resize");
|
|
636
|
-
}));
|
|
637
|
-
(0, fixtures_1.test)("vertical resizer has appropriate cursor style", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
638
|
-
yield initTestBed(`
|
|
639
|
-
<Splitter height="200px" width="400px" orientation="vertical" testId="splitter">
|
|
640
|
-
<Stack backgroundColor="lightblue" height="100%"/>
|
|
641
|
-
<Stack backgroundColor="darksalmon" height="100%"/>
|
|
642
|
-
</Splitter>
|
|
643
|
-
`);
|
|
644
|
-
const splitter = page.getByTestId("splitter");
|
|
645
|
-
const driver = yield createSplitterDriver(splitter);
|
|
646
|
-
const resizer = yield driver.getResizer();
|
|
647
|
-
yield (0, fixtures_1.expect)(resizer).toHaveCSS("cursor", "ns-resize");
|
|
648
|
-
}));
|
|
649
|
-
(0, fixtures_1.test)("splitter prevents text selection during drag", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
650
|
-
yield initTestBed(`
|
|
651
|
-
<Splitter height="200px" width="400px" testId="splitter">
|
|
652
|
-
<Stack backgroundColor="lightblue" height="100%"/>
|
|
653
|
-
<Stack backgroundColor="darksalmon" height="100%"/>
|
|
654
|
-
</Splitter>
|
|
655
|
-
`);
|
|
656
|
-
const splitter = page.getByTestId("splitter");
|
|
657
|
-
yield (0, fixtures_1.expect)(splitter).toHaveCSS("user-select", "none");
|
|
658
|
-
}));
|
|
659
|
-
});
|
|
660
|
-
// =============================================================================
|
|
661
|
-
// THEME VARIABLE TESTS
|
|
662
|
-
// =============================================================================
|
|
663
|
-
fixtures_1.test.describe("Theme Variables", () => {
|
|
664
|
-
(0, fixtures_1.test)("applies backgroundColor-resizer-Splitter theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
665
|
-
yield initTestBed(`
|
|
666
|
-
<Splitter height="200px" width="400px" testId="splitter">
|
|
667
|
-
<Stack backgroundColor="lightblue" height="100%"/>
|
|
668
|
-
<Stack backgroundColor="darksalmon" height="100%"/>
|
|
669
|
-
</Splitter>
|
|
670
|
-
`, {
|
|
671
|
-
testThemeVars: { "backgroundColor-resizer-Splitter": "rgb(255, 0, 0)" },
|
|
672
|
-
});
|
|
673
|
-
const splitter = page.getByTestId("splitter");
|
|
674
|
-
const driver = yield createSplitterDriver(splitter);
|
|
675
|
-
const resizer = yield driver.getResizer();
|
|
676
|
-
yield (0, fixtures_1.expect)(resizer).toHaveCSS("background-color", "rgb(255, 0, 0)");
|
|
677
|
-
}));
|
|
678
|
-
(0, fixtures_1.test)("applies thickness-resizer-Splitter theme variable for horizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
679
|
-
yield initTestBed(`
|
|
680
|
-
<Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
|
|
681
|
-
<Stack backgroundColor="lightblue" height="100%"/>
|
|
682
|
-
<Stack backgroundColor="darksalmon" height="100%"/>
|
|
683
|
-
</Splitter>
|
|
684
|
-
`, {
|
|
685
|
-
testThemeVars: { "thickness-resizer-Splitter": "10px" },
|
|
686
|
-
});
|
|
687
|
-
const splitter = page.getByTestId("splitter");
|
|
688
|
-
const driver = yield createSplitterDriver(splitter);
|
|
689
|
-
const resizer = yield driver.getResizer();
|
|
690
|
-
yield (0, fixtures_1.expect)(resizer).toHaveCSS("width", "10px");
|
|
691
|
-
}));
|
|
692
|
-
(0, fixtures_1.test)("applies thickness-resizer-Splitter theme variable for vertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
693
|
-
yield initTestBed(`
|
|
694
|
-
<Splitter height="200px" width="400px" orientation="vertical" testId="splitter">
|
|
695
|
-
<Stack backgroundColor="lightblue" height="100%"/>
|
|
696
|
-
<Stack backgroundColor="darksalmon" height="100%"/>
|
|
697
|
-
</Splitter>
|
|
698
|
-
`, {
|
|
699
|
-
testThemeVars: { "thickness-resizer-Splitter": "10px" },
|
|
700
|
-
});
|
|
701
|
-
const splitter = page.getByTestId("splitter");
|
|
702
|
-
const driver = yield createSplitterDriver(splitter);
|
|
703
|
-
const resizer = yield driver.getResizer();
|
|
704
|
-
yield (0, fixtures_1.expect)(resizer).toHaveCSS("height", "10px");
|
|
705
|
-
}));
|
|
706
|
-
(0, fixtures_1.test)("applies cursor-resizer-horizontal-Splitter theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
707
|
-
yield initTestBed(`
|
|
708
|
-
<Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
|
|
709
|
-
<Stack backgroundColor="lightblue" height="100%"/>
|
|
710
|
-
<Stack backgroundColor="darksalmon" height="100%"/>
|
|
711
|
-
</Splitter>
|
|
712
|
-
`, {
|
|
713
|
-
testThemeVars: { "cursor-resizer-horizontal-Splitter": "col-resize" },
|
|
714
|
-
});
|
|
715
|
-
const splitter = page.getByTestId("splitter");
|
|
716
|
-
const driver = yield createSplitterDriver(splitter);
|
|
717
|
-
const resizer = yield driver.getResizer();
|
|
718
|
-
yield (0, fixtures_1.expect)(resizer).toHaveCSS("cursor", "col-resize");
|
|
719
|
-
}));
|
|
720
|
-
(0, fixtures_1.test)("applies cursor-resizer-vertical-Splitter theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
721
|
-
yield initTestBed(`
|
|
722
|
-
<Splitter height="200px" width="400px" orientation="vertical" testId="splitter">
|
|
723
|
-
<Stack backgroundColor="lightblue" height="100%"/>
|
|
724
|
-
<Stack backgroundColor="darksalmon" height="100%"/>
|
|
725
|
-
</Splitter>
|
|
726
|
-
`, {
|
|
727
|
-
testThemeVars: { "cursor-resizer-vertical-Splitter": "row-resize" },
|
|
728
|
-
});
|
|
729
|
-
const splitter = page.getByTestId("splitter");
|
|
730
|
-
const driver = yield createSplitterDriver(splitter);
|
|
731
|
-
const resizer = yield driver.getResizer();
|
|
732
|
-
yield (0, fixtures_1.expect)(resizer).toHaveCSS("cursor", "row-resize");
|
|
733
|
-
}));
|
|
734
|
-
});
|
|
735
|
-
// =============================================================================
|
|
736
|
-
// OTHER EDGE CASE TESTS
|
|
737
|
-
// =============================================================================
|
|
738
|
-
fixtures_1.test.describe("Other Edge Cases", () => {
|
|
739
|
-
(0, fixtures_1.test)("handles very small container dimensions", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
740
|
-
yield initTestBed(`
|
|
741
|
-
<Splitter height="20px" width="20px" testId="splitter">
|
|
742
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
743
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
744
|
-
</Splitter>
|
|
745
|
-
`);
|
|
746
|
-
yield (0, fixtures_1.expect)(page.getByTestId("splitter")).toBeVisible();
|
|
747
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
748
|
-
// Secondary might be hidden in very small containers due to space constraints
|
|
749
|
-
const secondary = page.getByTestId("secondary");
|
|
750
|
-
const isSecondaryVisible = yield secondary.isVisible();
|
|
751
|
-
if (isSecondaryVisible) {
|
|
752
|
-
yield (0, fixtures_1.expect)(secondary).toBeVisible();
|
|
753
|
-
}
|
|
754
|
-
}));
|
|
755
|
-
(0, fixtures_1.test)("handles very large initial size values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
756
|
-
yield initTestBed(`
|
|
757
|
-
<Splitter height="200px" width="400px" initialPrimarySize="90%" testId="splitter">
|
|
758
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
759
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
760
|
-
</Splitter>
|
|
761
|
-
`);
|
|
762
|
-
yield (0, fixtures_1.expect)(page.getByTestId("splitter")).toBeVisible();
|
|
763
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
764
|
-
// Secondary might be very small but should still be visible
|
|
765
|
-
const secondary = page.getByTestId("secondary");
|
|
766
|
-
const isSecondaryVisible = yield secondary.isVisible();
|
|
767
|
-
if (isSecondaryVisible) {
|
|
768
|
-
yield (0, fixtures_1.expect)(secondary).toBeVisible();
|
|
769
|
-
}
|
|
770
|
-
}));
|
|
771
|
-
(0, fixtures_1.test)("handles rapid resize operations", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSplitterDriver }) {
|
|
772
|
-
yield initTestBed(`
|
|
773
|
-
<Splitter height="200px" width="400px" orientation="horizontal" testId="splitter">
|
|
774
|
-
<Stack backgroundColor="lightblue" height="100%" testId="primary"/>
|
|
775
|
-
<Stack backgroundColor="darksalmon" height="100%" testId="secondary"/>
|
|
776
|
-
</Splitter>
|
|
777
|
-
`);
|
|
778
|
-
const splitter = page.getByTestId("splitter");
|
|
779
|
-
const driver = yield createSplitterDriver(splitter);
|
|
780
|
-
// Perform multiple rapid drag operations
|
|
781
|
-
yield driver.dragResizer(20, 0);
|
|
782
|
-
yield driver.dragResizer(-30, 0);
|
|
783
|
-
yield driver.dragResizer(40, 0);
|
|
784
|
-
yield driver.dragResizer(-10, 0);
|
|
785
|
-
// Should still be functional
|
|
786
|
-
yield (0, fixtures_1.expect)(page.getByTestId("primary")).toBeVisible();
|
|
787
|
-
yield (0, fixtures_1.expect)(page.getByTestId("secondary")).toBeVisible();
|
|
788
|
-
}));
|
|
789
|
-
(0, fixtures_1.test)("conditional rendering works with different child component types", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
790
|
-
yield initTestBed(`
|
|
791
|
-
<Splitter height="200px" width="400px" testId="splitter">
|
|
792
|
-
<VStack when="{false}" backgroundColor="lightblue" height="100%" testId="vstack">
|
|
793
|
-
<Text>VStack Content</Text>
|
|
794
|
-
</VStack>
|
|
795
|
-
<Text backgroundColor="darksalmon" height="100%" testId="text">Just Text</Text>
|
|
796
|
-
<Fragment when="{false}" testId="fragment">
|
|
797
|
-
<Stack backgroundColor="lightgreen" height="100%">Fragment Content</Stack>
|
|
798
|
-
</Fragment>
|
|
799
|
-
</Splitter>
|
|
800
|
-
`);
|
|
801
|
-
// Only the Text component should be visible
|
|
802
|
-
yield (0, fixtures_1.expect)(page.getByTestId("vstack")).not.toBeVisible();
|
|
803
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).toBeVisible();
|
|
804
|
-
yield (0, fixtures_1.expect)(page.getByTestId("fragment")).not.toBeVisible();
|
|
805
|
-
// Resizer should be hidden since only one child is visible
|
|
806
|
-
const resizer = page.locator('[class*="resizer"]');
|
|
807
|
-
const isResizerVisible = yield resizer.isVisible().catch(() => false);
|
|
808
|
-
(0, fixtures_1.expect)(isResizerVisible).toBe(false);
|
|
809
|
-
// Text component should stretch to fill container
|
|
810
|
-
const splitter = page.getByTestId("splitter");
|
|
811
|
-
const text = page.getByTestId("text");
|
|
812
|
-
const splitterBounds = yield (0, component_test_helpers_1.getBounds)(splitter);
|
|
813
|
-
const textBounds = yield (0, component_test_helpers_1.getBounds)(text);
|
|
814
|
-
const tolerance = 5;
|
|
815
|
-
(0, fixtures_1.expect)(Math.abs(textBounds.width - splitterBounds.width)).toBeLessThan(tolerance);
|
|
816
|
-
}));
|
|
817
|
-
});
|
|
818
|
-
// =============================================================================
|
|
819
|
-
// UTILITY FUNCTION TESTS
|
|
820
|
-
// =============================================================================
|
|
821
|
-
fixtures_1.test.describe("Utility Functions", () => {
|
|
822
|
-
fixtures_1.test.describe("parseSize", () => {
|
|
823
|
-
(0, fixtures_1.test)("parses positive pixel values", () => {
|
|
824
|
-
(0, fixtures_1.expect)((0, utils_1.parseSize)("100px", 400)).toBe(100);
|
|
825
|
-
(0, fixtures_1.expect)((0, utils_1.parseSize)("200px", 400)).toBe(200);
|
|
826
|
-
});
|
|
827
|
-
(0, fixtures_1.test)("parses positive percentage values", () => {
|
|
828
|
-
(0, fixtures_1.expect)((0, utils_1.parseSize)("50%", 400)).toBe(200);
|
|
829
|
-
(0, fixtures_1.expect)((0, utils_1.parseSize)("25%", 400)).toBe(100);
|
|
830
|
-
(0, fixtures_1.expect)((0, utils_1.parseSize)("100%", 400)).toBe(400);
|
|
831
|
-
});
|
|
832
|
-
(0, fixtures_1.test)("parses negative pixel values (calculated from end)", () => {
|
|
833
|
-
(0, fixtures_1.expect)((0, utils_1.parseSize)("-100px", 400)).toBe(300); // 400 - 100
|
|
834
|
-
(0, fixtures_1.expect)((0, utils_1.parseSize)("-50px", 400)).toBe(350); // 400 - 50
|
|
835
|
-
(0, fixtures_1.expect)((0, utils_1.parseSize)("-200px", 600)).toBe(400); // 600 - 200
|
|
836
|
-
});
|
|
837
|
-
(0, fixtures_1.test)("parses negative percentage values (calculated from end)", () => {
|
|
838
|
-
(0, fixtures_1.expect)((0, utils_1.parseSize)("-20%", 400)).toBe(320); // 80% of 400
|
|
839
|
-
(0, fixtures_1.expect)((0, utils_1.parseSize)("-50%", 400)).toBe(200); // 50% of 400
|
|
840
|
-
(0, fixtures_1.expect)((0, utils_1.parseSize)("-10%", 600)).toBe(540); // 90% of 600
|
|
841
|
-
});
|
|
842
|
-
(0, fixtures_1.test)("throws error for invalid format", () => {
|
|
843
|
-
(0, fixtures_1.expect)(() => (0, utils_1.parseSize)("100", 400)).toThrow("Invalid size format. Use px or %.");
|
|
844
|
-
(0, fixtures_1.expect)(() => (0, utils_1.parseSize)("100em", 400)).toThrow("Invalid size format. Use px or %.");
|
|
845
|
-
(0, fixtures_1.expect)(() => (0, utils_1.parseSize)("invalid", 400)).toThrow("Invalid size format. Use px or %.");
|
|
846
|
-
});
|
|
847
|
-
});
|
|
848
|
-
fixtures_1.test.describe("toPercentage", () => {
|
|
849
|
-
(0, fixtures_1.test)("converts pixel size to percentage", () => {
|
|
850
|
-
(0, fixtures_1.expect)((0, utils_1.toPercentage)(200, 400)).toBe(50);
|
|
851
|
-
(0, fixtures_1.expect)((0, utils_1.toPercentage)(100, 400)).toBe(25);
|
|
852
|
-
(0, fixtures_1.expect)((0, utils_1.toPercentage)(400, 400)).toBe(100);
|
|
853
|
-
(0, fixtures_1.expect)((0, utils_1.toPercentage)(0, 400)).toBe(0);
|
|
854
|
-
});
|
|
855
|
-
});
|
|
856
|
-
});
|