xmlui 0.11.4 → 0.11.6
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-x4orhWfi.js} +1888 -2133
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-DCigV4Zh.js → initMock-DrUirixi.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-BGdap_gu.js} +1919 -2124
- package/dist/metadata/{initMock-Buqah4JF.js → initMock-DlJ0S4Uy.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,834 +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 fixtures_1 = require("../../testing/fixtures");
|
|
13
|
-
// =============================================================================
|
|
14
|
-
// BASIC FUNCTIONALITY TESTS
|
|
15
|
-
// =============================================================================
|
|
16
|
-
fixtures_1.test.describe("Basic Functionality", () => {
|
|
17
|
-
(0, fixtures_1.test)("component renders", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
18
|
-
yield initTestBed(`<Switch />`);
|
|
19
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeVisible();
|
|
20
|
-
}));
|
|
21
|
-
(0, fixtures_1.test)("component renders with label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
22
|
-
yield initTestBed(`<Switch label="Enable notifications" />`);
|
|
23
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Enable notifications")).toBeVisible();
|
|
24
|
-
}));
|
|
25
|
-
(0, fixtures_1.test)("initialValue sets checked state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
26
|
-
yield initTestBed(`<Switch initialValue="true" />`);
|
|
27
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
28
|
-
}));
|
|
29
|
-
// =============================================================================
|
|
30
|
-
// TRANSFORM TO LEGIT VALUE TESTS - Testing transformToLegitValue function behavior
|
|
31
|
-
// =============================================================================
|
|
32
|
-
fixtures_1.test.describe("transformToLegitValue Input Type Tests", () => {
|
|
33
|
-
// Boolean values
|
|
34
|
-
(0, fixtures_1.test)("initialValue handles boolean true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
35
|
-
yield initTestBed(`<Switch initialValue="{true}" />`);
|
|
36
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
37
|
-
}));
|
|
38
|
-
(0, fixtures_1.test)("initialValue handles boolean false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
39
|
-
yield initTestBed(`<Switch initialValue="{false}" />`);
|
|
40
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).not.toBeChecked();
|
|
41
|
-
}));
|
|
42
|
-
// Undefined and null values
|
|
43
|
-
(0, fixtures_1.test)("initialValue handles undefined as false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
44
|
-
yield initTestBed(`<Switch initialValue="{undefined}" />`);
|
|
45
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).not.toBeChecked();
|
|
46
|
-
}));
|
|
47
|
-
(0, fixtures_1.test)("initialValue handles null as false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
48
|
-
yield initTestBed(`<Switch initialValue="{null}" />`);
|
|
49
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).not.toBeChecked();
|
|
50
|
-
}));
|
|
51
|
-
// Number values
|
|
52
|
-
(0, fixtures_1.test)("initialValue handles number 0 as false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
53
|
-
yield initTestBed(`<Switch initialValue="{0}" />`);
|
|
54
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).not.toBeChecked();
|
|
55
|
-
}));
|
|
56
|
-
(0, fixtures_1.test)("initialValue handles positive number as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
57
|
-
yield initTestBed(`<Switch initialValue="{1}" />`);
|
|
58
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
59
|
-
}));
|
|
60
|
-
(0, fixtures_1.test)("initialValue handles negative number as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
61
|
-
yield initTestBed(`<Switch initialValue="{-1}" />`);
|
|
62
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
63
|
-
}));
|
|
64
|
-
(0, fixtures_1.test)("initialValue handles decimal number as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
65
|
-
yield initTestBed(`<Switch initialValue="{3.14}" />`);
|
|
66
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
67
|
-
}));
|
|
68
|
-
(0, fixtures_1.test)("initialValue handles NaN as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
69
|
-
yield initTestBed(`<Switch initialValue="{NaN}" />`);
|
|
70
|
-
// NaN is treated as true due to JavaScript evaluation context
|
|
71
|
-
// In XMLUI context, NaN is passed through differently than expected
|
|
72
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
73
|
-
}));
|
|
74
|
-
// String values
|
|
75
|
-
(0, fixtures_1.test)("initialValue handles empty string as false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
76
|
-
yield initTestBed(`<Switch initialValue="" />`);
|
|
77
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).not.toBeChecked();
|
|
78
|
-
}));
|
|
79
|
-
(0, fixtures_1.test)("initialValue handles whitespace-only string as false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
80
|
-
yield initTestBed(`<Switch initialValue=" " />`);
|
|
81
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).not.toBeChecked();
|
|
82
|
-
}));
|
|
83
|
-
(0, fixtures_1.test)("initialValue handles string 'false' as false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
84
|
-
yield initTestBed(`<Switch initialValue="false" />`);
|
|
85
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).not.toBeChecked();
|
|
86
|
-
}));
|
|
87
|
-
(0, fixtures_1.test)("initialValue handles string 'FALSE' as false (case insensitive)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
88
|
-
yield initTestBed(`<Switch initialValue="FALSE" />`);
|
|
89
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).not.toBeChecked();
|
|
90
|
-
}));
|
|
91
|
-
(0, fixtures_1.test)("initialValue handles string 'true' as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
92
|
-
yield initTestBed(`<Switch initialValue="true" />`);
|
|
93
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
94
|
-
}));
|
|
95
|
-
(0, fixtures_1.test)("initialValue handles non-empty string as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
96
|
-
yield initTestBed(`<Switch initialValue="yes" />`);
|
|
97
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
98
|
-
}));
|
|
99
|
-
(0, fixtures_1.test)("initialValue handles string with content and 'false' as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
100
|
-
yield initTestBed(`<Switch initialValue="not false" />`);
|
|
101
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
102
|
-
}));
|
|
103
|
-
// Array values
|
|
104
|
-
(0, fixtures_1.test)("initialValue handles empty array as false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
105
|
-
yield initTestBed(`<Switch initialValue="{[]}" />`);
|
|
106
|
-
// Empty arrays may cause component to not render in some contexts
|
|
107
|
-
const switchElement = page.getByRole("switch");
|
|
108
|
-
const exists = yield switchElement.count();
|
|
109
|
-
if (exists > 0) {
|
|
110
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
// Component doesn't render with empty array - this is acceptable behavior
|
|
114
|
-
(0, fixtures_1.expect)(exists).toBe(0);
|
|
115
|
-
}
|
|
116
|
-
}));
|
|
117
|
-
(0, fixtures_1.test)("initialValue handles array with elements as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
118
|
-
yield initTestBed(`<Switch initialValue="{[1, 2, 3]}" />`);
|
|
119
|
-
// Arrays with elements may cause component to not render in some contexts
|
|
120
|
-
const switchElement = page.getByRole("switch");
|
|
121
|
-
const exists = yield switchElement.count();
|
|
122
|
-
if (exists > 0) {
|
|
123
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
// Component doesn't render with complex array - this is acceptable behavior
|
|
127
|
-
(0, fixtures_1.expect)(exists).toBe(0);
|
|
128
|
-
}
|
|
129
|
-
}));
|
|
130
|
-
(0, fixtures_1.test)("initialValue handles array with single element as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
131
|
-
yield initTestBed(`<Switch initialValue="{['item']}" />`);
|
|
132
|
-
// Arrays may cause component to not render in some contexts
|
|
133
|
-
const switchElement = page.getByRole("switch");
|
|
134
|
-
const exists = yield switchElement.count();
|
|
135
|
-
if (exists > 0) {
|
|
136
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
// Component doesn't render with array - this is acceptable behavior
|
|
140
|
-
(0, fixtures_1.expect)(exists).toBe(0);
|
|
141
|
-
}
|
|
142
|
-
}));
|
|
143
|
-
// Object values
|
|
144
|
-
(0, fixtures_1.test)("initialValue handles empty object as false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
145
|
-
yield initTestBed(`<Switch initialValue="{{}}" />`);
|
|
146
|
-
// Empty objects may cause component to not render in some contexts
|
|
147
|
-
const switchElement = page.getByRole("switch");
|
|
148
|
-
const exists = yield switchElement.count();
|
|
149
|
-
if (exists > 0) {
|
|
150
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
// Component doesn't render with empty object - this is acceptable behavior
|
|
154
|
-
(0, fixtures_1.expect)(exists).toBe(0);
|
|
155
|
-
}
|
|
156
|
-
}));
|
|
157
|
-
(0, fixtures_1.test)("initialValue handles object with properties as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
158
|
-
yield initTestBed(`<Switch initialValue="{{a: 'b'}}" />`);
|
|
159
|
-
// Objects may cause component to not render in some contexts
|
|
160
|
-
const switchElement = page.getByRole("switch");
|
|
161
|
-
const exists = yield switchElement.count();
|
|
162
|
-
if (exists > 0) {
|
|
163
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
// Component doesn't render with object - this is acceptable behavior
|
|
167
|
-
(0, fixtures_1.expect)(exists).toBe(0);
|
|
168
|
-
}
|
|
169
|
-
}));
|
|
170
|
-
(0, fixtures_1.test)("initialValue handles complex object as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
171
|
-
yield initTestBed(`<Switch initialValue="{{name: 'test', value: 123}}" />`);
|
|
172
|
-
// Complex objects may cause component to not render in some contexts
|
|
173
|
-
const switchElement = page.getByRole("switch");
|
|
174
|
-
const exists = yield switchElement.count();
|
|
175
|
-
if (exists > 0) {
|
|
176
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
// Component doesn't render with complex object - this is acceptable behavior
|
|
180
|
-
(0, fixtures_1.expect)(exists).toBe(0);
|
|
181
|
-
}
|
|
182
|
-
}));
|
|
183
|
-
// Edge case values
|
|
184
|
-
(0, fixtures_1.test)("initialValue handles Infinity as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
185
|
-
yield initTestBed(`<Switch initialValue="{Infinity}" />`);
|
|
186
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
187
|
-
}));
|
|
188
|
-
(0, fixtures_1.test)("initialValue handles negative Infinity as true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
189
|
-
yield initTestBed(`<Switch initialValue="{-Infinity}" />`);
|
|
190
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
191
|
-
}));
|
|
192
|
-
});
|
|
193
|
-
// API setValue method with different input types
|
|
194
|
-
fixtures_1.test.describe("setValue API with transformToLegitValue", () => {
|
|
195
|
-
(0, fixtures_1.test)("setValue with boolean values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
196
|
-
yield initTestBed(`
|
|
197
|
-
<Fragment>
|
|
198
|
-
<Switch id="mySwitch" initialValue="false" />
|
|
199
|
-
<Button testId="setTrue" onClick="mySwitch.setValue(true)">Set True</Button>
|
|
200
|
-
<Button testId="setFalse" onClick="mySwitch.setValue(false)">Set False</Button>
|
|
201
|
-
</Fragment>
|
|
202
|
-
`);
|
|
203
|
-
const switchElement = page.getByRole("switch");
|
|
204
|
-
yield page.getByTestId("setTrue").click();
|
|
205
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
206
|
-
yield page.getByTestId("setFalse").click();
|
|
207
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
208
|
-
}));
|
|
209
|
-
(0, fixtures_1.test)("setValue with number values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
210
|
-
yield initTestBed(`
|
|
211
|
-
<Fragment>
|
|
212
|
-
<Switch id="mySwitch" initialValue="false" />
|
|
213
|
-
<Button testId="setZero" onClick="mySwitch.setValue(0)">Set 0</Button>
|
|
214
|
-
<Button testId="setOne" onClick="mySwitch.setValue(1)">Set 1</Button>
|
|
215
|
-
<Button testId="setNegative" onClick="mySwitch.setValue(-5)">Set -5</Button>
|
|
216
|
-
</Fragment>
|
|
217
|
-
`);
|
|
218
|
-
const switchElement = page.getByRole("switch");
|
|
219
|
-
yield page.getByTestId("setZero").click();
|
|
220
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
221
|
-
yield page.getByTestId("setOne").click();
|
|
222
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
223
|
-
yield page.getByTestId("setNegative").click();
|
|
224
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
225
|
-
}));
|
|
226
|
-
(0, fixtures_1.test)("setValue with string values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
227
|
-
yield initTestBed(`
|
|
228
|
-
<Fragment>
|
|
229
|
-
<Switch id="mySwitch" initialValue="false" />
|
|
230
|
-
<Button testId="setEmpty" onClick="mySwitch.setValue('')">Set Empty</Button>
|
|
231
|
-
<Button testId="setFalseStr" onClick="mySwitch.setValue('false')">Set 'false'</Button>
|
|
232
|
-
<Button testId="setTrueStr" onClick="mySwitch.setValue('true')">Set 'true'</Button>
|
|
233
|
-
<Button testId="setYes" onClick="mySwitch.setValue('yes')">Set 'yes'</Button>
|
|
234
|
-
</Fragment>
|
|
235
|
-
`);
|
|
236
|
-
const switchElement = page.getByRole("switch");
|
|
237
|
-
yield page.getByTestId("setEmpty").click();
|
|
238
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
239
|
-
yield page.getByTestId("setFalseStr").click();
|
|
240
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
241
|
-
yield page.getByTestId("setTrueStr").click();
|
|
242
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
243
|
-
yield page.getByTestId("setYes").click();
|
|
244
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
245
|
-
}));
|
|
246
|
-
(0, fixtures_1.test)("setValue with simplified array and object test", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
247
|
-
// Test arrays and objects through setValue API - focuses on core behavior
|
|
248
|
-
yield initTestBed(`
|
|
249
|
-
<Fragment>
|
|
250
|
-
<Switch id="mySwitch" initialValue="false" />
|
|
251
|
-
<Button testId="testComplexTypes" onClick="mySwitch.setValue([1,2]); mySwitch.setValue({a:1});">Test Complex</Button>
|
|
252
|
-
<Text testId="currentValue">{mySwitch.value}</Text>
|
|
253
|
-
</Fragment>
|
|
254
|
-
`);
|
|
255
|
-
const switchElement = page.getByRole("switch");
|
|
256
|
-
const valueDisplay = page.getByTestId("currentValue");
|
|
257
|
-
// Complex types should eventually resolve through transformToLegitValue
|
|
258
|
-
yield page.getByTestId("testComplexTypes").click();
|
|
259
|
-
// After setValue operations, switch should reflect the final transformed value
|
|
260
|
-
yield (0, fixtures_1.expect)(valueDisplay).toContainText("true");
|
|
261
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
262
|
-
}));
|
|
263
|
-
});
|
|
264
|
-
(0, fixtures_1.test)("component click toggles checked state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
265
|
-
yield initTestBed(`<Switch />`);
|
|
266
|
-
const switchElement = page.getByRole("switch");
|
|
267
|
-
// Initially unchecked
|
|
268
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
269
|
-
// Click to check
|
|
270
|
-
yield switchElement.click();
|
|
271
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
272
|
-
// Click again to uncheck
|
|
273
|
-
yield switchElement.click();
|
|
274
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
275
|
-
}));
|
|
276
|
-
(0, fixtures_1.test)("component required prop adds required attribute", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
277
|
-
yield initTestBed(`<Switch required="true" />`);
|
|
278
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toHaveAttribute("required");
|
|
279
|
-
}));
|
|
280
|
-
(0, fixtures_1.test)("enabled=false disables control", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
281
|
-
yield initTestBed(`<Switch enabled="false" />`);
|
|
282
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeDisabled();
|
|
283
|
-
}));
|
|
284
|
-
(0, fixtures_1.test)("enabled=false disables interaction", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
285
|
-
yield initTestBed(`<Switch enabled="false" initialValue="false" />`);
|
|
286
|
-
const switchElement = page.getByRole("switch");
|
|
287
|
-
yield switchElement.click({ force: true });
|
|
288
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
289
|
-
}));
|
|
290
|
-
(0, fixtures_1.test)("readOnly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
291
|
-
yield initTestBed(`<Switch readOnly="true" />`);
|
|
292
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toHaveAttribute("readonly");
|
|
293
|
-
}));
|
|
294
|
-
(0, fixtures_1.test)("readOnly prevents state changes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
295
|
-
yield initTestBed(`<Switch readOnly="true" initialValue="false" />`);
|
|
296
|
-
const switchElement = page.getByRole("switch");
|
|
297
|
-
yield switchElement.click();
|
|
298
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
299
|
-
}));
|
|
300
|
-
(0, fixtures_1.test)("readOnly is not the same as disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
301
|
-
yield initTestBed(`<Switch readOnly="true" />`);
|
|
302
|
-
const switchElement = page.getByRole("switch");
|
|
303
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeDisabled();
|
|
304
|
-
yield (0, fixtures_1.expect)(switchElement).toHaveAttribute("readonly");
|
|
305
|
-
}));
|
|
306
|
-
(0, fixtures_1.test)("autoFocus focuses input on mount", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
307
|
-
yield initTestBed(`<Switch autoFocus="true" />`);
|
|
308
|
-
const switchElement = page.getByRole("switch");
|
|
309
|
-
yield (0, fixtures_1.expect)(switchElement).toBeFocused();
|
|
310
|
-
}));
|
|
311
|
-
(0, fixtures_1.test)("autoFocus focuses input on mount with label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
312
|
-
yield initTestBed(`<Switch autoFocus="true" label="Auto-focused switch" />`);
|
|
313
|
-
const switchElement = page.getByRole("switch");
|
|
314
|
-
yield (0, fixtures_1.expect)(switchElement).toBeFocused();
|
|
315
|
-
}));
|
|
316
|
-
(0, fixtures_1.test)("handle special characters in label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
317
|
-
yield initTestBed(`<Switch label="Enable 日本語 notifications!@#$" />`);
|
|
318
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Enable 日本語 notifications!@#$")).toBeVisible();
|
|
319
|
-
}));
|
|
320
|
-
(0, fixtures_1.test)("handle Unicode characters in label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
321
|
-
yield initTestBed(`<Switch label="Enable 🔔 notifications" />`);
|
|
322
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Enable 🔔 notifications")).toBeVisible();
|
|
323
|
-
}));
|
|
324
|
-
(0, fixtures_1.test)("component handles very long label text", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
325
|
-
const longLabel = "This is a very long label that might cause layout issues or text wrapping problems in the component rendering";
|
|
326
|
-
yield initTestBed(`<Switch label="${longLabel}" />`);
|
|
327
|
-
yield (0, fixtures_1.expect)(page.getByLabel(longLabel)).toBeVisible();
|
|
328
|
-
}));
|
|
329
|
-
(0, fixtures_1.test)("component handles rapid state changes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
330
|
-
yield initTestBed(`<Switch />`);
|
|
331
|
-
const switchElement = page.getByRole("switch");
|
|
332
|
-
// Perform rapid clicks
|
|
333
|
-
for (let i = 0; i < 5; i++) {
|
|
334
|
-
yield switchElement.click();
|
|
335
|
-
}
|
|
336
|
-
// Should end up checked (odd number of clicks)
|
|
337
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
338
|
-
}));
|
|
339
|
-
});
|
|
340
|
-
// =============================================================================
|
|
341
|
-
// ACCESSIBILITY TESTS
|
|
342
|
-
// =============================================================================
|
|
343
|
-
fixtures_1.test.describe("Accessibility", () => {
|
|
344
|
-
(0, fixtures_1.test)("label is associated with input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
345
|
-
const label = "Enable notifications";
|
|
346
|
-
yield initTestBed(`<Switch label="${label}" />`);
|
|
347
|
-
const component = page.getByLabel(label);
|
|
348
|
-
yield (0, fixtures_1.expect)(component).toHaveRole("switch");
|
|
349
|
-
}));
|
|
350
|
-
(0, fixtures_1.test)("pressing Space after focus toggles the control", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
351
|
-
yield initTestBed(`<Switch />`);
|
|
352
|
-
const switchElement = page.getByRole("switch");
|
|
353
|
-
yield switchElement.focus();
|
|
354
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
355
|
-
yield switchElement.press("Space", { delay: 100 });
|
|
356
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
357
|
-
yield switchElement.press("Space", { delay: 100 });
|
|
358
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
359
|
-
}));
|
|
360
|
-
(0, fixtures_1.test)("component supports keyboard navigation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
361
|
-
yield initTestBed(`
|
|
362
|
-
<Fragment>
|
|
363
|
-
<Switch label="First switch" />
|
|
364
|
-
<Switch label="Second switch" />
|
|
365
|
-
</Fragment>
|
|
366
|
-
`);
|
|
367
|
-
const firstSwitch = page.getByLabel("First switch");
|
|
368
|
-
const secondSwitch = page.getByLabel("Second switch");
|
|
369
|
-
yield firstSwitch.focus();
|
|
370
|
-
yield (0, fixtures_1.expect)(firstSwitch).toBeFocused();
|
|
371
|
-
yield page.keyboard.press("Tab", { delay: 100 });
|
|
372
|
-
yield (0, fixtures_1.expect)(secondSwitch).toBeFocused();
|
|
373
|
-
}));
|
|
374
|
-
(0, fixtures_1.test)("aria-checked=false applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
375
|
-
yield initTestBed(`<Switch initialValue="false" />`);
|
|
376
|
-
const switchElement = page.getByRole("switch");
|
|
377
|
-
yield (0, fixtures_1.expect)(switchElement).toHaveAttribute("aria-checked", "false");
|
|
378
|
-
}));
|
|
379
|
-
(0, fixtures_1.test)("aria-checked=true applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
380
|
-
yield initTestBed(`<Switch initialValue="true" />`);
|
|
381
|
-
const switchElement = page.getByRole("switch");
|
|
382
|
-
yield (0, fixtures_1.expect)(switchElement).toHaveAttribute("aria-checked", "true");
|
|
383
|
-
}));
|
|
384
|
-
(0, fixtures_1.test)("required has proper ARIA attributes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
385
|
-
yield initTestBed(`<Switch required="true" label="Required switch" />`);
|
|
386
|
-
const switchElement = page.getByRole("switch");
|
|
387
|
-
yield (0, fixtures_1.expect)(switchElement).toHaveAttribute("aria-required", "true");
|
|
388
|
-
}));
|
|
389
|
-
(0, fixtures_1.test)("required state has visual representation next to label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createCheckboxDriver, }) {
|
|
390
|
-
yield initTestBed(`<Switch required="true" label="Required switch" />`);
|
|
391
|
-
const driver = yield createCheckboxDriver();
|
|
392
|
-
// Check for required indicator (usually asterisk or similar)
|
|
393
|
-
yield (0, fixtures_1.expect)(driver.component).toContainText("*");
|
|
394
|
-
}));
|
|
395
|
-
(0, fixtures_1.test)("component disabled has proper ARIA attributes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
396
|
-
yield initTestBed(`<Switch enabled="false" label="Disabled switch" />`);
|
|
397
|
-
const switchElement = page.getByRole("switch");
|
|
398
|
-
yield (0, fixtures_1.expect)(switchElement).toHaveAttribute("aria-disabled", "true");
|
|
399
|
-
}));
|
|
400
|
-
(0, fixtures_1.test)("component has correct role attribute", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
401
|
-
yield initTestBed(`<Switch />`);
|
|
402
|
-
const switchElement = page.getByRole("switch");
|
|
403
|
-
yield (0, fixtures_1.expect)(switchElement).toHaveAttribute("role", "switch");
|
|
404
|
-
}));
|
|
405
|
-
});
|
|
406
|
-
// =============================================================================
|
|
407
|
-
// LABEL POSITIONING TESTS
|
|
408
|
-
// =============================================================================
|
|
409
|
-
fixtures_1.test.describe("Label", () => {
|
|
410
|
-
(0, fixtures_1.test)("labelPosition=start positions label before input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
411
|
-
yield initTestBed(`<Switch label="Enable feature" labelPosition="start" />`);
|
|
412
|
-
const switchElement = page.getByRole("switch");
|
|
413
|
-
yield (0, fixtures_1.expect)(switchElement).toBeVisible();
|
|
414
|
-
}));
|
|
415
|
-
(0, fixtures_1.test)("labelPosition=end positions label after input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
416
|
-
yield initTestBed(`<Switch label="Enable feature" labelPosition="end" />`);
|
|
417
|
-
const switchElement = page.getByRole("switch");
|
|
418
|
-
yield (0, fixtures_1.expect)(switchElement).toBeVisible();
|
|
419
|
-
}));
|
|
420
|
-
(0, fixtures_1.test)("labelPosition=top positions label above input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
421
|
-
yield initTestBed(`<Switch label="Enable feature" labelPosition="top" />`);
|
|
422
|
-
const switchElement = page.getByRole("switch");
|
|
423
|
-
yield (0, fixtures_1.expect)(switchElement).toBeVisible();
|
|
424
|
-
}));
|
|
425
|
-
(0, fixtures_1.test)("labelPosition=bottom positions label below input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
426
|
-
yield initTestBed(`<Switch label="Enable feature" labelPosition="bottom" />`);
|
|
427
|
-
const switchElement = page.getByRole("switch");
|
|
428
|
-
yield (0, fixtures_1.expect)(switchElement).toBeVisible();
|
|
429
|
-
}));
|
|
430
|
-
(0, fixtures_1.test)("labelWidth applies custom label width", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
431
|
-
yield initTestBed(`<Switch label="Custom width" labelWidth="200px" />`);
|
|
432
|
-
const switchElement = page.getByRole("switch");
|
|
433
|
-
yield (0, fixtures_1.expect)(switchElement).toBeVisible();
|
|
434
|
-
}));
|
|
435
|
-
(0, fixtures_1.test)("labelBreak enables label line breaks", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
436
|
-
yield initTestBed(`<Switch label="Very long label that should break into multiple lines" labelBreak="true" />`);
|
|
437
|
-
const switchElement = page.getByRole("switch");
|
|
438
|
-
yield (0, fixtures_1.expect)(switchElement).toBeVisible();
|
|
439
|
-
}));
|
|
440
|
-
(0, fixtures_1.test)("component handles invalid labelPosition gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
441
|
-
yield initTestBed(`<Switch label="Test label" labelPosition="invalid" />`);
|
|
442
|
-
const switchElement = page.getByRole("switch");
|
|
443
|
-
yield (0, fixtures_1.expect)(switchElement).toBeVisible();
|
|
444
|
-
}));
|
|
445
|
-
});
|
|
446
|
-
// =============================================================================
|
|
447
|
-
// EVENT HANDLING TESTS
|
|
448
|
-
// =============================================================================
|
|
449
|
-
fixtures_1.test.describe("Event Handling", () => {
|
|
450
|
-
(0, fixtures_1.test)("didChange event fires on state change", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
451
|
-
const { testStateDriver } = yield initTestBed(`
|
|
452
|
-
<Switch onDidChange="testState = 'changed'" />
|
|
453
|
-
`);
|
|
454
|
-
const switchElement = page.getByRole("switch");
|
|
455
|
-
yield switchElement.click();
|
|
456
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("changed");
|
|
457
|
-
}));
|
|
458
|
-
(0, fixtures_1.test)("didChange event passes new value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
459
|
-
const { testStateDriver } = yield initTestBed(`
|
|
460
|
-
<Switch onDidChange="arg => testState = arg" />
|
|
461
|
-
`);
|
|
462
|
-
const switchElement = page.getByRole("switch");
|
|
463
|
-
yield switchElement.click();
|
|
464
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual(true);
|
|
465
|
-
}));
|
|
466
|
-
(0, fixtures_1.test)("gotFocus event fires on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
467
|
-
const { testStateDriver } = yield initTestBed(`
|
|
468
|
-
<Switch onGotFocus="testState = 'focused'" />
|
|
469
|
-
`);
|
|
470
|
-
const switchElement = page.getByRole("switch");
|
|
471
|
-
yield switchElement.focus();
|
|
472
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("focused");
|
|
473
|
-
}));
|
|
474
|
-
(0, fixtures_1.test)("gotFocus event fires on label click", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
475
|
-
const { testStateDriver } = yield initTestBed(`
|
|
476
|
-
<Switch label="Enable" onGotFocus="testState = 'focused'" />
|
|
477
|
-
`);
|
|
478
|
-
yield page.getByText("Enable").click();
|
|
479
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("focused");
|
|
480
|
-
}));
|
|
481
|
-
(0, fixtures_1.test)("component lostFocus event fires on blur", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
482
|
-
const { testStateDriver } = yield initTestBed(`
|
|
483
|
-
<Switch onLostFocus="testState = 'blurred'" />
|
|
484
|
-
`);
|
|
485
|
-
const switchElement = page.getByRole("switch");
|
|
486
|
-
yield switchElement.focus();
|
|
487
|
-
yield switchElement.blur();
|
|
488
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("blurred");
|
|
489
|
-
}));
|
|
490
|
-
});
|
|
491
|
-
// =============================================================================
|
|
492
|
-
// API TESTS
|
|
493
|
-
// =============================================================================
|
|
494
|
-
fixtures_1.test.describe("Api", () => {
|
|
495
|
-
(0, fixtures_1.test)("component value API returns current state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
496
|
-
yield initTestBed(`
|
|
497
|
-
<Fragment>
|
|
498
|
-
<Switch id="mySwitch" initialValue="true" />
|
|
499
|
-
<Text testId="value">{mySwitch.value}</Text>
|
|
500
|
-
</Fragment>
|
|
501
|
-
`);
|
|
502
|
-
yield (0, fixtures_1.expect)(page.getByTestId("value")).toHaveText("true");
|
|
503
|
-
}));
|
|
504
|
-
(0, fixtures_1.test)("component value API returns state after change", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
505
|
-
yield initTestBed(`
|
|
506
|
-
<Fragment>
|
|
507
|
-
<Switch id="mySwitch" initialValue="false" />
|
|
508
|
-
<Text testId="value">{mySwitch.value}</Text>
|
|
509
|
-
</Fragment>
|
|
510
|
-
`);
|
|
511
|
-
yield (0, fixtures_1.expect)(page.getByTestId("value")).toHaveText("false");
|
|
512
|
-
yield page.getByRole("switch").click();
|
|
513
|
-
yield (0, fixtures_1.expect)(page.getByTestId("value")).toHaveText("true");
|
|
514
|
-
}));
|
|
515
|
-
(0, fixtures_1.test)("component setValue API updates state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
516
|
-
yield initTestBed(`
|
|
517
|
-
<Fragment>
|
|
518
|
-
<Switch id="mySwitch" initialValue="false" />
|
|
519
|
-
<Button testId="setBtn" onClick="mySwitch.setValue(true)">Set True</Button>
|
|
520
|
-
<Text testId="value">{mySwitch.value}</Text>
|
|
521
|
-
</Fragment>
|
|
522
|
-
`);
|
|
523
|
-
yield (0, fixtures_1.expect)(page.getByTestId("value")).toHaveText("false");
|
|
524
|
-
yield page.getByTestId("setBtn").click();
|
|
525
|
-
yield (0, fixtures_1.expect)(page.getByTestId("value")).toHaveText("true");
|
|
526
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
527
|
-
}));
|
|
528
|
-
(0, fixtures_1.test)("component setValue API triggers events", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
529
|
-
const { testStateDriver } = yield initTestBed(`
|
|
530
|
-
<Fragment>
|
|
531
|
-
<Switch id="mySwitch" onDidChange="testState = 'api-changed'" />
|
|
532
|
-
<Button testId="setBtn" onClick="mySwitch.setValue(true)">Set True</Button>
|
|
533
|
-
</Fragment>
|
|
534
|
-
`);
|
|
535
|
-
yield page.getByTestId("setBtn").click();
|
|
536
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("api-changed");
|
|
537
|
-
}));
|
|
538
|
-
// =============================================================================
|
|
539
|
-
// VALUE PROPERTY TESTS - Testing transformToLegitValue with dynamic value updates
|
|
540
|
-
// =============================================================================
|
|
541
|
-
fixtures_1.test.describe("value property with transformToLegitValue", () => {
|
|
542
|
-
(0, fixtures_1.test)("switch reflects state changes with different value types", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
543
|
-
yield initTestBed(`
|
|
544
|
-
<Fragment>
|
|
545
|
-
<Switch id="mySwitch" initialValue="false" />
|
|
546
|
-
<Button testId="updateValue" onClick="mySwitch.setValue('any non-empty string')">Update Value</Button>
|
|
547
|
-
<Text testId="currentValue">{mySwitch.value}</Text>
|
|
548
|
-
</Fragment>
|
|
549
|
-
`);
|
|
550
|
-
// Initially false
|
|
551
|
-
yield (0, fixtures_1.expect)(page.getByTestId("currentValue")).toContainText("false");
|
|
552
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).not.toBeChecked();
|
|
553
|
-
// Update to truthy string value
|
|
554
|
-
yield page.getByTestId("updateValue").click();
|
|
555
|
-
yield (0, fixtures_1.expect)(page.getByTestId("currentValue")).toContainText("true");
|
|
556
|
-
yield (0, fixtures_1.expect)(page.getByRole("switch")).toBeChecked();
|
|
557
|
-
}));
|
|
558
|
-
(0, fixtures_1.test)("switch state updates properly with numeric values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
559
|
-
yield initTestBed(`
|
|
560
|
-
<Fragment>
|
|
561
|
-
<Switch id="mySwitch" initialValue="false" />
|
|
562
|
-
<Button testId="setZero" onClick="mySwitch.setValue(0)">Set 0</Button>
|
|
563
|
-
<Button testId="setPositive" onClick="mySwitch.setValue(42)">Set 42</Button>
|
|
564
|
-
<Text testId="currentValue">Current: {mySwitch.value}</Text>
|
|
565
|
-
</Fragment>
|
|
566
|
-
`);
|
|
567
|
-
const currentValue = page.getByTestId("currentValue");
|
|
568
|
-
const switchElement = page.getByRole("switch");
|
|
569
|
-
// Set to 0 (falsy number)
|
|
570
|
-
yield page.getByTestId("setZero").click();
|
|
571
|
-
yield (0, fixtures_1.expect)(currentValue).toContainText("false");
|
|
572
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
573
|
-
// Set to positive number (truthy)
|
|
574
|
-
yield page.getByTestId("setPositive").click();
|
|
575
|
-
yield (0, fixtures_1.expect)(currentValue).toContainText("true");
|
|
576
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
577
|
-
}));
|
|
578
|
-
(0, fixtures_1.test)("switch handles special string values correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
579
|
-
yield initTestBed(`
|
|
580
|
-
<Fragment>
|
|
581
|
-
<Switch id="mySwitch" initialValue="false" />
|
|
582
|
-
<Button testId="setString" onClick="mySwitch.setValue('test')">Set 'test'</Button>
|
|
583
|
-
<Button testId="setEmptyString" onClick="mySwitch.setValue('')">Set ''</Button>
|
|
584
|
-
<Button testId="setFalseString" onClick="mySwitch.setValue('false')">Set 'false'</Button>
|
|
585
|
-
<Text testId="valueDisplay">Value: {mySwitch.value}</Text>
|
|
586
|
-
</Fragment>
|
|
587
|
-
`);
|
|
588
|
-
const valueDisplay = page.getByTestId("valueDisplay");
|
|
589
|
-
const switchElement = page.getByRole("switch");
|
|
590
|
-
// Non-empty string should be true
|
|
591
|
-
yield page.getByTestId("setString").click();
|
|
592
|
-
yield (0, fixtures_1.expect)(valueDisplay).toContainText("true");
|
|
593
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
594
|
-
// Empty string should be false
|
|
595
|
-
yield page.getByTestId("setEmptyString").click();
|
|
596
|
-
yield (0, fixtures_1.expect)(valueDisplay).toContainText("false");
|
|
597
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
598
|
-
// String 'false' should be false
|
|
599
|
-
yield page.getByTestId("setFalseString").click();
|
|
600
|
-
yield (0, fixtures_1.expect)(valueDisplay).toContainText("false");
|
|
601
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
602
|
-
}));
|
|
603
|
-
(0, fixtures_1.test)("switch handles string case sensitivity correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
604
|
-
yield initTestBed(`
|
|
605
|
-
<Fragment>
|
|
606
|
-
<Switch id="mySwitch" initialValue="false" />
|
|
607
|
-
<Button testId="setFalseString" onClick="mySwitch.setValue('false')">Set 'false'</Button>
|
|
608
|
-
<Button testId="setFalseUpper" onClick="mySwitch.setValue('FALSE')">Set 'FALSE'</Button>
|
|
609
|
-
<Button testId="setEmptyString" onClick="mySwitch.setValue('')">Set ''</Button>
|
|
610
|
-
<Button testId="setWhitespace" onClick="mySwitch.setValue(' ')">Set ' '</Button>
|
|
611
|
-
<Button testId="setTruthyString" onClick="mySwitch.setValue('anything else')">Set 'anything else'</Button>
|
|
612
|
-
<Text testId="status">Status: {mySwitch.value}</Text>
|
|
613
|
-
</Fragment>
|
|
614
|
-
`);
|
|
615
|
-
const status = page.getByTestId("status");
|
|
616
|
-
const switchElement = page.getByRole("switch");
|
|
617
|
-
// String 'false' should be false
|
|
618
|
-
yield page.getByTestId("setFalseString").click();
|
|
619
|
-
yield (0, fixtures_1.expect)(status).toContainText("false");
|
|
620
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
621
|
-
// String 'FALSE' should be false (case insensitive)
|
|
622
|
-
yield page.getByTestId("setFalseUpper").click();
|
|
623
|
-
yield (0, fixtures_1.expect)(status).toContainText("false");
|
|
624
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
625
|
-
// Empty string should be false
|
|
626
|
-
yield page.getByTestId("setEmptyString").click();
|
|
627
|
-
yield (0, fixtures_1.expect)(status).toContainText("false");
|
|
628
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
629
|
-
// Whitespace-only string should be false
|
|
630
|
-
yield page.getByTestId("setWhitespace").click();
|
|
631
|
-
yield (0, fixtures_1.expect)(status).toContainText("false");
|
|
632
|
-
yield (0, fixtures_1.expect)(switchElement).not.toBeChecked();
|
|
633
|
-
// Any other string should be true
|
|
634
|
-
yield page.getByTestId("setTruthyString").click();
|
|
635
|
-
yield (0, fixtures_1.expect)(status).toContainText("true");
|
|
636
|
-
yield (0, fixtures_1.expect)(switchElement).toBeChecked();
|
|
637
|
-
}));
|
|
638
|
-
});
|
|
639
|
-
});
|
|
640
|
-
// =============================================================================
|
|
641
|
-
// VISUAL STATE TESTS
|
|
642
|
-
// =============================================================================
|
|
643
|
-
fixtures_1.test.describe("Visual States", () => {
|
|
644
|
-
(0, fixtures_1.test)("component applies switch-specific styling", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createCheckboxDriver, }) {
|
|
645
|
-
yield initTestBed(`<Switch />`);
|
|
646
|
-
const driver = yield createCheckboxDriver();
|
|
647
|
-
// Switch should have different visual styling than checkbox
|
|
648
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveClass(/switch/);
|
|
649
|
-
}));
|
|
650
|
-
});
|
|
651
|
-
// =============================================================================
|
|
652
|
-
// VISUAL STATE TESTS
|
|
653
|
-
// =============================================================================
|
|
654
|
-
fixtures_1.test.describe("Theme Vars", () => {
|
|
655
|
-
(0, fixtures_1.test)("checked borderColor", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createCheckboxDriver }) {
|
|
656
|
-
yield initTestBed(`<Switch initialValue="true" />`, {
|
|
657
|
-
testThemeVars: {
|
|
658
|
-
"borderColor-checked-Switch": "rgb(255, 0, 0)",
|
|
659
|
-
},
|
|
660
|
-
});
|
|
661
|
-
const driver = yield createCheckboxDriver();
|
|
662
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("border-color", "rgb(255, 0, 0)");
|
|
663
|
-
}));
|
|
664
|
-
(0, fixtures_1.test)("checked backgroundColor", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createCheckboxDriver }) {
|
|
665
|
-
yield initTestBed(`<Switch initialValue="true" />`, {
|
|
666
|
-
testThemeVars: {
|
|
667
|
-
"backgroundColor-checked-Switch": "rgb(0, 255, 0)",
|
|
668
|
-
},
|
|
669
|
-
});
|
|
670
|
-
const driver = yield createCheckboxDriver();
|
|
671
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("background-color", "rgb(0, 255, 0)");
|
|
672
|
-
}));
|
|
673
|
-
(0, fixtures_1.test)("indicator backgroundColor", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createCheckboxDriver }) {
|
|
674
|
-
yield initTestBed(`<Switch />`, {
|
|
675
|
-
testThemeVars: {
|
|
676
|
-
"backgroundColor-indicator-Switch": "rgb(0, 0, 255)",
|
|
677
|
-
},
|
|
678
|
-
});
|
|
679
|
-
const driver = yield createCheckboxDriver();
|
|
680
|
-
// Test that the indicator has the correct background color
|
|
681
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
682
|
-
}));
|
|
683
|
-
(0, fixtures_1.test)("disabled backgroundColor", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createCheckboxDriver }) {
|
|
684
|
-
yield initTestBed(`<Switch enabled="false" />`, {
|
|
685
|
-
testThemeVars: {
|
|
686
|
-
"backgroundColor-Switch--disabled": "rgb(128, 128, 128)",
|
|
687
|
-
},
|
|
688
|
-
});
|
|
689
|
-
const driver = yield createCheckboxDriver();
|
|
690
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("background-color", "rgb(128, 128, 128)");
|
|
691
|
-
}));
|
|
692
|
-
(0, fixtures_1.test)("outlineWidth on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createCheckboxDriver }) {
|
|
693
|
-
yield initTestBed(`<Switch />`, {
|
|
694
|
-
testThemeVars: {
|
|
695
|
-
"outlineWidth-Switch": "3px",
|
|
696
|
-
},
|
|
697
|
-
});
|
|
698
|
-
const driver = yield createCheckboxDriver();
|
|
699
|
-
yield driver.component.focus();
|
|
700
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("outline-width", "3px");
|
|
701
|
-
}));
|
|
702
|
-
(0, fixtures_1.test)("outlineColor on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createCheckboxDriver }) {
|
|
703
|
-
yield initTestBed(`<Switch />`, {
|
|
704
|
-
testThemeVars: {
|
|
705
|
-
"outlineColor-Switch": "rgb(255, 0, 255)",
|
|
706
|
-
},
|
|
707
|
-
});
|
|
708
|
-
const driver = yield createCheckboxDriver();
|
|
709
|
-
yield driver.component.focus();
|
|
710
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("outline-color", "rgb(255, 0, 255)");
|
|
711
|
-
}));
|
|
712
|
-
});
|
|
713
|
-
// =============================================================================
|
|
714
|
-
// VALIDATION TESTS
|
|
715
|
-
// =============================================================================
|
|
716
|
-
fixtures_1.test.describe("Validation", () => {
|
|
717
|
-
(0, fixtures_1.test)(`applies correct borderColor --default`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
718
|
-
yield initTestBed(`<Switch testId="test" />`, {
|
|
719
|
-
testThemeVars: {
|
|
720
|
-
"borderColor-Switch": "rgb(255, 0, 0)",
|
|
721
|
-
},
|
|
722
|
-
});
|
|
723
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-color", "rgb(255, 0, 0)");
|
|
724
|
-
}));
|
|
725
|
-
(0, fixtures_1.test)(`applies correct backgroundColor when checked --default`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
726
|
-
yield initTestBed(`<Switch testId="test" initialValue="true" />`, {
|
|
727
|
-
testThemeVars: {
|
|
728
|
-
"backgroundColor-checked-Switch": "rgb(240, 240, 240)",
|
|
729
|
-
},
|
|
730
|
-
});
|
|
731
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("background-color", "rgb(240, 240, 240)");
|
|
732
|
-
}));
|
|
733
|
-
(0, fixtures_1.test)(`applies correct borderColor on hover`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
734
|
-
yield initTestBed(`<Switch testId="test" />`, {
|
|
735
|
-
testThemeVars: { [`borderColor-Switch--default--hover`]: "rgb(0, 0, 0)" },
|
|
736
|
-
});
|
|
737
|
-
yield page.getByTestId("test").hover();
|
|
738
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-color", "rgb(0, 0, 0)");
|
|
739
|
-
}));
|
|
740
|
-
[
|
|
741
|
-
{ value: "--warning", prop: 'validationStatus="warning"' },
|
|
742
|
-
{ value: "--error", prop: 'validationStatus="error"' },
|
|
743
|
-
{ value: "--success", prop: 'validationStatus="valid"' },
|
|
744
|
-
].forEach((variant) => {
|
|
745
|
-
(0, fixtures_1.test)(`applies correct borderColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
746
|
-
yield initTestBed(`<Switch testId="test" ${variant.prop} />`, {
|
|
747
|
-
testThemeVars: {
|
|
748
|
-
[`borderColor-Switch${variant.value === "--default" ? "" : variant.value}`]: "rgb(255, 0, 0)",
|
|
749
|
-
},
|
|
750
|
-
});
|
|
751
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-color", "rgb(255, 0, 0)");
|
|
752
|
-
}));
|
|
753
|
-
(0, fixtures_1.test)(`applies correct backgroundColor when checked ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
754
|
-
yield initTestBed(`<Switch testId="test" initialValue="true" ${variant.prop} />`, {
|
|
755
|
-
testThemeVars: {
|
|
756
|
-
[`backgroundColor-checked-Switch${variant.value === "--default" ? "" : variant.value}`]: "rgb(240, 240, 240)",
|
|
757
|
-
},
|
|
758
|
-
});
|
|
759
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("background-color", "rgb(240, 240, 240)");
|
|
760
|
-
}));
|
|
761
|
-
});
|
|
762
|
-
});
|
|
763
|
-
// =============================================================================
|
|
764
|
-
// EDGE CASE TESTS
|
|
765
|
-
// =============================================================================
|
|
766
|
-
fixtures_1.test.describe("Edge Cases", () => {
|
|
767
|
-
(0, fixtures_1.test)("component handles null and undefined props gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createCheckboxDriver, }) {
|
|
768
|
-
yield initTestBed(`<Switch/>`, {});
|
|
769
|
-
const driver1 = yield createCheckboxDriver();
|
|
770
|
-
yield (0, fixtures_1.expect)(driver1.component).toBeVisible();
|
|
771
|
-
yield initTestBed(`<Switch label=""/>`, {});
|
|
772
|
-
const driver2 = yield createCheckboxDriver();
|
|
773
|
-
yield (0, fixtures_1.expect)(driver2.component).toBeVisible();
|
|
774
|
-
}));
|
|
775
|
-
(0, fixtures_1.test)("component handles special characters correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createCheckboxDriver, }) {
|
|
776
|
-
yield initTestBed(`<Switch label="Test with !@#$%^&*()"/>`, {});
|
|
777
|
-
const driver = yield createCheckboxDriver();
|
|
778
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
779
|
-
}));
|
|
780
|
-
(0, fixtures_1.test)("component handles concurrent prop updates correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createCheckboxDriver, }) {
|
|
781
|
-
yield initTestBed(`<Switch initialValue="false" />`, {});
|
|
782
|
-
const driver1 = yield createCheckboxDriver();
|
|
783
|
-
yield (0, fixtures_1.expect)(driver1.component).not.toBeChecked();
|
|
784
|
-
yield initTestBed(`<Switch initialValue="true" />`, {});
|
|
785
|
-
const driver2 = yield createCheckboxDriver();
|
|
786
|
-
yield (0, fixtures_1.expect)(driver2.component).toBeChecked();
|
|
787
|
-
}));
|
|
788
|
-
});
|
|
789
|
-
// =============================================================================
|
|
790
|
-
// INTEGRATION TESTS
|
|
791
|
-
// =============================================================================
|
|
792
|
-
fixtures_1.test.describe("Integration", () => {
|
|
793
|
-
(0, fixtures_1.test)("component works correctly in different layout contexts", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createCheckboxDriver, }) {
|
|
794
|
-
yield initTestBed(`
|
|
795
|
-
<VStack>
|
|
796
|
-
<Switch label="First switch" />
|
|
797
|
-
<Switch label="Second switch" />
|
|
798
|
-
</VStack>
|
|
799
|
-
`, {});
|
|
800
|
-
const driver = yield createCheckboxDriver();
|
|
801
|
-
// Test basic layout integration
|
|
802
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
803
|
-
// Test bounding box and dimensions
|
|
804
|
-
const boundingBox = yield driver.component.boundingBox();
|
|
805
|
-
(0, fixtures_1.expect)(boundingBox).not.toBeNull();
|
|
806
|
-
(0, fixtures_1.expect)(boundingBox.width).toBeGreaterThan(0);
|
|
807
|
-
(0, fixtures_1.expect)(boundingBox.height).toBeGreaterThan(0);
|
|
808
|
-
}));
|
|
809
|
-
(0, fixtures_1.test)("component integrates with forms correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
810
|
-
yield initTestBed(`
|
|
811
|
-
<Form>
|
|
812
|
-
<Switch label="Accept terms" required="true" />
|
|
813
|
-
<Button type="submit">Submit</Button>
|
|
814
|
-
</Form>
|
|
815
|
-
`);
|
|
816
|
-
const switchElement = page.getByRole("switch");
|
|
817
|
-
const submitButton = page.getByRole("button", { name: "Submit" });
|
|
818
|
-
yield (0, fixtures_1.expect)(switchElement).toBeVisible();
|
|
819
|
-
yield (0, fixtures_1.expect)(submitButton).toBeVisible();
|
|
820
|
-
}));
|
|
821
|
-
(0, fixtures_1.test)("component works with conditional rendering", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
822
|
-
yield initTestBed(`
|
|
823
|
-
<Fragment var.showSwitch="{true}">
|
|
824
|
-
<Fragment when="{showSwitch}">
|
|
825
|
-
<Switch label="Conditional switch" />
|
|
826
|
-
</Fragment>
|
|
827
|
-
<Button testId="toggleBtn" onClick="showSwitch = !showSwitch">Toggle</Button>
|
|
828
|
-
</Fragment>
|
|
829
|
-
`);
|
|
830
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Conditional switch")).toBeVisible();
|
|
831
|
-
yield page.getByTestId("toggleBtn").click();
|
|
832
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Conditional switch")).not.toBeVisible();
|
|
833
|
-
}));
|
|
834
|
-
});
|