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