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,886 +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 with basic props", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
19
|
-
yield initTestBed(`<TextArea />`);
|
|
20
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
21
|
-
}));
|
|
22
|
-
(0, fixtures_1.test)("component renders with label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
23
|
-
yield initTestBed(`<TextArea label="Comments" />`);
|
|
24
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
25
|
-
yield (0, fixtures_1.expect)(page.getByText("Comments")).toBeVisible();
|
|
26
|
-
}));
|
|
27
|
-
(0, fixtures_1.test)("initialValue sets textarea value correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
28
|
-
yield initTestBed(`<TextArea initialValue="Initial text content" />`);
|
|
29
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("Initial text content");
|
|
30
|
-
}));
|
|
31
|
-
(0, fixtures_1.test)("initialValue accepts different data types", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
32
|
-
// Test string
|
|
33
|
-
yield initTestBed(`<TextArea initialValue="hello world" />`);
|
|
34
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("hello world");
|
|
35
|
-
// Test number
|
|
36
|
-
yield initTestBed(`<TextArea initialValue="{123}" />`);
|
|
37
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("123");
|
|
38
|
-
// Test boolean
|
|
39
|
-
yield initTestBed(`<TextArea initialValue="{true}" />`);
|
|
40
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("true");
|
|
41
|
-
}));
|
|
42
|
-
(0, fixtures_1.test)("component handles null and undefined props gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
43
|
-
yield initTestBed(`<TextArea initialValue="{null}" />`);
|
|
44
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("");
|
|
45
|
-
yield initTestBed(`<TextArea initialValue="{undefined}" />`);
|
|
46
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("");
|
|
47
|
-
yield initTestBed(`<TextArea />`);
|
|
48
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("");
|
|
49
|
-
}));
|
|
50
|
-
(0, fixtures_1.test)("component accepts user input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
51
|
-
yield initTestBed(`<TextArea />`);
|
|
52
|
-
yield page.getByRole("textbox").fill("user input");
|
|
53
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("user input");
|
|
54
|
-
}));
|
|
55
|
-
(0, fixtures_1.test)("component accepts multiline input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
56
|
-
yield initTestBed(`<TextArea />`);
|
|
57
|
-
const multilineText = "First line\nSecond line\nThird line";
|
|
58
|
-
yield page.getByRole("textbox").fill(multilineText);
|
|
59
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue(multilineText);
|
|
60
|
-
}));
|
|
61
|
-
(0, fixtures_1.test)("component clears input correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
62
|
-
yield initTestBed(`<TextArea initialValue="Initial content" />`);
|
|
63
|
-
const textarea = page.getByRole("textbox");
|
|
64
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("Initial content");
|
|
65
|
-
yield textarea.clear();
|
|
66
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("");
|
|
67
|
-
}));
|
|
68
|
-
(0, fixtures_1.test)("required prop adds required attribute", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
69
|
-
yield initTestBed(`<TextArea required="true" />`);
|
|
70
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveAttribute("required");
|
|
71
|
-
}));
|
|
72
|
-
(0, fixtures_1.test)("enabled=false disables control", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
73
|
-
yield initTestBed(`<TextArea enabled="false" />`);
|
|
74
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).not.toBeEditable();
|
|
75
|
-
}));
|
|
76
|
-
(0, fixtures_1.test)("readOnly prevents editing but allows focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
77
|
-
yield initTestBed(`<TextArea readOnly="true" initialValue="Read only content" />`);
|
|
78
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveAttribute("readonly");
|
|
79
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("Read only content");
|
|
80
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).not.toBeEditable();
|
|
81
|
-
yield page.getByRole("textbox").focus();
|
|
82
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeFocused();
|
|
83
|
-
}));
|
|
84
|
-
(0, fixtures_1.test)("autoFocus focuses textarea on mount", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
85
|
-
yield initTestBed(`<TextArea autoFocus="true" />`);
|
|
86
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeFocused();
|
|
87
|
-
}));
|
|
88
|
-
(0, fixtures_1.test)("autoFocus focuses input on mount with label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
89
|
-
yield initTestBed(`<TextArea autoFocus="true" label="Auto-focused input" />`);
|
|
90
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Auto-focused input")).toBeFocused();
|
|
91
|
-
}));
|
|
92
|
-
(0, fixtures_1.test)("placeholder shows when textarea is empty", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
93
|
-
yield initTestBed(`<TextArea placeholder="Enter your comments here..." />`);
|
|
94
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveAttribute("placeholder", "Enter your comments here...");
|
|
95
|
-
}));
|
|
96
|
-
(0, fixtures_1.test)("placeholder is hidden when textarea has content", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
97
|
-
yield initTestBed(`<TextArea placeholder="Enter comments" />`);
|
|
98
|
-
const textarea = page.getByRole("textbox");
|
|
99
|
-
yield textarea.fill("Some content");
|
|
100
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("Some content");
|
|
101
|
-
yield (0, fixtures_1.expect)(textarea).toHaveAttribute("placeholder", "Enter comments");
|
|
102
|
-
}));
|
|
103
|
-
(0, fixtures_1.test)("maxLength limits input length", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
104
|
-
yield initTestBed(`<TextArea maxLength="10" />`);
|
|
105
|
-
yield page.getByRole("textbox").fill("12345678901234567890");
|
|
106
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("1234567890");
|
|
107
|
-
}));
|
|
108
|
-
(0, fixtures_1.test)("rows prop sets textarea height", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
109
|
-
yield initTestBed(`<TextArea rows="5" />`);
|
|
110
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveAttribute("rows", "5");
|
|
111
|
-
}));
|
|
112
|
-
(0, fixtures_1.test)("component handles special characters correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
113
|
-
yield initTestBed(`<TextArea />`);
|
|
114
|
-
const specialText = "Hello 日本語 @#$%! 🚀 Unicode test 🎉";
|
|
115
|
-
yield page.getByRole("textbox").fill(specialText);
|
|
116
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue(specialText);
|
|
117
|
-
}));
|
|
118
|
-
(0, fixtures_1.test)("component handles very long input values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
119
|
-
const longText = "This is a very long text that might cause issues with component rendering or processing. ".repeat(50);
|
|
120
|
-
yield initTestBed(`<TextArea />`);
|
|
121
|
-
yield page.getByRole("textbox").fill(longText);
|
|
122
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue(longText);
|
|
123
|
-
}));
|
|
124
|
-
(0, fixtures_1.test)("component prop changes update display correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
125
|
-
yield initTestBed(`
|
|
126
|
-
<Fragment var.rows="{3}">
|
|
127
|
-
<TextArea rows="{rows}" />
|
|
128
|
-
<Button onClick="rows = 5">Set Rows to 5</Button>
|
|
129
|
-
</Fragment>`);
|
|
130
|
-
const textarea = page.getByRole("textbox");
|
|
131
|
-
yield (0, fixtures_1.expect)(textarea).toHaveAttribute("rows", "3");
|
|
132
|
-
yield page.getByRole("button", { name: "Set Rows to 5" }).click();
|
|
133
|
-
yield (0, fixtures_1.expect)(textarea).toHaveAttribute("rows", "5");
|
|
134
|
-
}));
|
|
135
|
-
(0, fixtures_1.test)("autoSize enables automatic height adjustment", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
136
|
-
yield initTestBed(`<TextArea testId="input" autoSize="true" />`);
|
|
137
|
-
const textarea = page.getByTestId("input");
|
|
138
|
-
const areaField = page.getByRole("textbox");
|
|
139
|
-
// Get initial height with single line
|
|
140
|
-
yield areaField.fill("Single line");
|
|
141
|
-
const initialHeight = yield textarea.evaluate((el) => el.scrollHeight);
|
|
142
|
-
// Add multiple lines and verify height increases
|
|
143
|
-
yield areaField.fill("Line 1\nLine 2\nLine 3\nLine 4");
|
|
144
|
-
const expandedHeight = yield textarea.evaluate((el) => el.scrollHeight);
|
|
145
|
-
// Height should increase when more lines are added
|
|
146
|
-
(0, fixtures_1.expect)(expandedHeight).toBeGreaterThan(initialHeight);
|
|
147
|
-
// Verify content is correct
|
|
148
|
-
yield (0, fixtures_1.expect)(areaField).toHaveValue("Line 1\nLine 2\nLine 3\nLine 4");
|
|
149
|
-
// Test reduction - go back to fewer lines
|
|
150
|
-
yield areaField.fill("Line 1\nLine 2");
|
|
151
|
-
const reducedHeight = yield areaField.evaluate((el) => el.scrollHeight);
|
|
152
|
-
// Height should decrease when lines are removed
|
|
153
|
-
(0, fixtures_1.expect)(reducedHeight).toBeLessThan(expandedHeight);
|
|
154
|
-
(0, fixtures_1.expect)(reducedHeight).toBeGreaterThanOrEqual(initialHeight);
|
|
155
|
-
}));
|
|
156
|
-
(0, fixtures_1.test)("maxRows limits auto-size height", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
157
|
-
yield initTestBed(`<TextArea testId="input" autoSize="true" maxRows="3" />`);
|
|
158
|
-
const textarea = page.getByTestId("input");
|
|
159
|
-
const areaField = page.getByRole("textbox");
|
|
160
|
-
// Fill with more content than maxRows should allow
|
|
161
|
-
const manyLines = Array(10).fill("Line content").join("\n");
|
|
162
|
-
yield areaField.fill(manyLines);
|
|
163
|
-
// Content should still be there - the key is that maxRows is applied
|
|
164
|
-
yield (0, fixtures_1.expect)(areaField).toHaveValue(manyLines);
|
|
165
|
-
// Verify the component is still visible and functional with large content
|
|
166
|
-
yield (0, fixtures_1.expect)(areaField).toBeVisible();
|
|
167
|
-
yield (0, fixtures_1.expect)(areaField).toBeEditable();
|
|
168
|
-
// The textarea should have some form of height constraint applied
|
|
169
|
-
// (exact implementation may vary, but component should remain functional)
|
|
170
|
-
const boundingRect = yield (0, component_test_helpers_1.getBounds)(textarea);
|
|
171
|
-
(0, fixtures_1.expect)(boundingRect).not.toBeNull();
|
|
172
|
-
(0, fixtures_1.expect)(boundingRect.height).toBeGreaterThan(0);
|
|
173
|
-
}));
|
|
174
|
-
(0, fixtures_1.test)("minRows sets minimum auto-size height", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
175
|
-
yield initTestBed(`<TextArea testId="input" autoSize="true" minRows="4" />`);
|
|
176
|
-
const textarea = page.getByTestId("input");
|
|
177
|
-
const areaField = page.getByRole("textbox");
|
|
178
|
-
yield (0, fixtures_1.expect)(textarea).toBeVisible();
|
|
179
|
-
yield (0, fixtures_1.expect)(areaField).toBeVisible();
|
|
180
|
-
// Even with no content, component should be functional
|
|
181
|
-
yield (0, fixtures_1.expect)(areaField).toHaveValue("");
|
|
182
|
-
// Fill with single line (less than minRows)
|
|
183
|
-
yield areaField.fill("Single line");
|
|
184
|
-
yield (0, fixtures_1.expect)(areaField).toHaveValue("Single line");
|
|
185
|
-
// Fill with content that matches minRows
|
|
186
|
-
yield areaField.fill("Line 1\nLine 2\nLine 3\nLine 4");
|
|
187
|
-
yield (0, fixtures_1.expect)(areaField).toHaveValue("Line 1\nLine 2\nLine 3\nLine 4");
|
|
188
|
-
// Verify the component remains functional with different content lengths
|
|
189
|
-
yield (0, fixtures_1.expect)(areaField).toBeVisible();
|
|
190
|
-
yield (0, fixtures_1.expect)(areaField).toBeEditable();
|
|
191
|
-
}));
|
|
192
|
-
(0, fixtures_1.test)("enterSubmits enables form submission on Enter", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
193
|
-
const { testStateDriver } = yield initTestBed(`
|
|
194
|
-
<Form onSubmit="testState = 'submitted'">
|
|
195
|
-
<TextArea enterSubmits="true" />
|
|
196
|
-
<Button type="submit" testId="submitBtn">Submit</Button>
|
|
197
|
-
</Form>
|
|
198
|
-
`);
|
|
199
|
-
const textarea = page.getByRole("textbox");
|
|
200
|
-
yield textarea.focus();
|
|
201
|
-
yield textarea.fill("Some content");
|
|
202
|
-
yield textarea.press("Enter");
|
|
203
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("submitted");
|
|
204
|
-
}));
|
|
205
|
-
(0, fixtures_1.test)("enterSubmits=false prevents form submission on Enter", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
206
|
-
const { testStateDriver } = yield initTestBed(`
|
|
207
|
-
<Form onSubmit="testState = 'submitted'">
|
|
208
|
-
<TextArea enterSubmits="false" />
|
|
209
|
-
<Button type="submit" testId="submitBtn">Submit</Button>
|
|
210
|
-
</Form>
|
|
211
|
-
`);
|
|
212
|
-
const textarea = page.getByRole("textbox");
|
|
213
|
-
yield textarea.focus();
|
|
214
|
-
yield textarea.fill("Some content");
|
|
215
|
-
yield textarea.press("Enter");
|
|
216
|
-
// Should not submit, so testState should remain null
|
|
217
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual(null);
|
|
218
|
-
// But should allow new line in textarea
|
|
219
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("Some content\n");
|
|
220
|
-
}));
|
|
221
|
-
(0, fixtures_1.test)("Shift+Enter creates new line even with enterSubmits=true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
222
|
-
const { testStateDriver } = yield initTestBed(`
|
|
223
|
-
<Form onSubmit="testState = 'submitted'">
|
|
224
|
-
<TextArea enterSubmits="true" />
|
|
225
|
-
</Form>
|
|
226
|
-
`);
|
|
227
|
-
const textarea = page.getByRole("textbox");
|
|
228
|
-
yield textarea.focus();
|
|
229
|
-
yield textarea.fill("Line 1");
|
|
230
|
-
yield textarea.press("Shift+Enter");
|
|
231
|
-
yield textarea.type("Line 2");
|
|
232
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("Line 1\nLine 2");
|
|
233
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual(null); // Should not have submitted
|
|
234
|
-
}));
|
|
235
|
-
(0, fixtures_1.test)("escResets enables form reset on Escape", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
236
|
-
yield initTestBed(`
|
|
237
|
-
<Form>
|
|
238
|
-
<TextArea id="myTextarea" initialValue="Initial value" escResets="true" />
|
|
239
|
-
</Form>
|
|
240
|
-
`);
|
|
241
|
-
const textarea = page.getByRole("textbox");
|
|
242
|
-
yield textarea.fill("Changed content");
|
|
243
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("Changed content");
|
|
244
|
-
yield textarea.press("Escape");
|
|
245
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("Initial value");
|
|
246
|
-
}));
|
|
247
|
-
(0, fixtures_1.test)("escResets=false does not reset on Escape", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
248
|
-
yield initTestBed(`<TextArea escResets="false" initialValue="Initial value" />`);
|
|
249
|
-
const textarea = page.getByRole("textbox");
|
|
250
|
-
yield textarea.fill("Changed content");
|
|
251
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("Changed content");
|
|
252
|
-
yield textarea.press("Escape");
|
|
253
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("Changed content"); // Should remain unchanged
|
|
254
|
-
}));
|
|
255
|
-
(0, fixtures_1.test)("component handles readOnly and enabled=false together", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
256
|
-
yield initTestBed(`<TextArea readOnly="true" enabled="false" />`);
|
|
257
|
-
const textarea = page.getByRole("textbox");
|
|
258
|
-
yield (0, fixtures_1.expect)(textarea).toBeDisabled();
|
|
259
|
-
yield (0, fixtures_1.expect)(textarea).toHaveAttribute("readonly");
|
|
260
|
-
}));
|
|
261
|
-
(0, fixtures_1.test)("component handles autoFocus with enabled=false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
262
|
-
yield initTestBed(`<TextArea autoFocus="true" enabled="false" />`);
|
|
263
|
-
const textarea = page.getByRole("textbox");
|
|
264
|
-
yield (0, fixtures_1.expect)(textarea).toBeDisabled();
|
|
265
|
-
yield (0, fixtures_1.expect)(textarea).not.toBeFocused();
|
|
266
|
-
}));
|
|
267
|
-
});
|
|
268
|
-
// =============================================================================
|
|
269
|
-
// ACCESSIBILITY TESTS
|
|
270
|
-
// =============================================================================
|
|
271
|
-
fixtures_1.test.describe("Accessibility", () => {
|
|
272
|
-
(0, fixtures_1.test)("component has correct accessibility attributes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
273
|
-
yield initTestBed(`<TextArea label="Comments" />`);
|
|
274
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveAttribute("aria-multiline", "true");
|
|
275
|
-
}));
|
|
276
|
-
(0, fixtures_1.test)("component is keyboard accessible when interactive", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
277
|
-
const { testStateDriver } = yield initTestBed(`
|
|
278
|
-
<TextArea
|
|
279
|
-
label="Comments"
|
|
280
|
-
onGotFocus="testState = 'keyboard-focused'"
|
|
281
|
-
/>
|
|
282
|
-
`);
|
|
283
|
-
const textarea = page.getByRole("textbox");
|
|
284
|
-
yield textarea.focus();
|
|
285
|
-
yield (0, fixtures_1.expect)(textarea).toBeFocused();
|
|
286
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("keyboard-focused");
|
|
287
|
-
}));
|
|
288
|
-
(0, fixtures_1.test)("non-interactive component is not focusable when disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
289
|
-
yield initTestBed(`<TextArea enabled="false" />`);
|
|
290
|
-
const textarea = page.getByRole("textbox");
|
|
291
|
-
yield (0, fixtures_1.expect)(textarea).toBeDisabled();
|
|
292
|
-
yield (0, fixtures_1.expect)(textarea).not.toBeFocused();
|
|
293
|
-
}));
|
|
294
|
-
(0, fixtures_1.test)("label is properly associated with textarea", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
295
|
-
yield initTestBed(`<TextArea label="User Comments" />`);
|
|
296
|
-
const component = page.getByLabel("User Comments");
|
|
297
|
-
yield (0, fixtures_1.expect)(component).toHaveRole("textbox");
|
|
298
|
-
}));
|
|
299
|
-
(0, fixtures_1.test)("required has proper ARIA attributes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
300
|
-
yield initTestBed(`<TextArea required="true" label="Required Comments" />`);
|
|
301
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveAttribute("required");
|
|
302
|
-
yield (0, fixtures_1.expect)(page.getByText("Required Comments")).toContainText("*");
|
|
303
|
-
}));
|
|
304
|
-
(0, fixtures_1.test)("readOnly has proper ARIA attributes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
305
|
-
yield initTestBed(`<TextArea readOnly="true" label="Read-only textarea" />`);
|
|
306
|
-
const textarea = page.getByRole("textbox");
|
|
307
|
-
yield (0, fixtures_1.expect)(textarea).toHaveAttribute("aria-readonly", "true");
|
|
308
|
-
yield (0, fixtures_1.expect)(textarea).toHaveAttribute("readonly");
|
|
309
|
-
}));
|
|
310
|
-
(0, fixtures_1.test)("placeholder provides accessible description", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
311
|
-
yield initTestBed(`<TextArea placeholder="Describe your feedback in detail" />`);
|
|
312
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveAttribute("placeholder", "Describe your feedback in detail");
|
|
313
|
-
}));
|
|
314
|
-
(0, fixtures_1.test)("component supports multiple textareas with keyboard navigation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
315
|
-
yield initTestBed(`
|
|
316
|
-
<Fragment>
|
|
317
|
-
<TextArea label="First textarea" />
|
|
318
|
-
<TextArea label="Second textarea" />
|
|
319
|
-
</Fragment>
|
|
320
|
-
`);
|
|
321
|
-
const firstTextarea = page.getByLabel("First textarea");
|
|
322
|
-
const secondTextarea = page.getByLabel("Second textarea");
|
|
323
|
-
yield firstTextarea.focus();
|
|
324
|
-
yield (0, fixtures_1.expect)(firstTextarea).toBeFocused();
|
|
325
|
-
yield page.keyboard.press("Tab");
|
|
326
|
-
yield (0, fixtures_1.expect)(secondTextarea).toBeFocused();
|
|
327
|
-
}));
|
|
328
|
-
});
|
|
329
|
-
// =============================================================================
|
|
330
|
-
// EVENT HANDLING TESTS
|
|
331
|
-
// =============================================================================
|
|
332
|
-
fixtures_1.test.describe("Event Handling", () => {
|
|
333
|
-
(0, fixtures_1.test)("didChange event fires on input change", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
334
|
-
const { testStateDriver } = yield initTestBed(`
|
|
335
|
-
<TextArea onDidChange="testState = 'changed'" />
|
|
336
|
-
`);
|
|
337
|
-
yield page.getByRole("textbox").fill("test");
|
|
338
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("changed");
|
|
339
|
-
}));
|
|
340
|
-
(0, fixtures_1.test)("didChange event passes new value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
341
|
-
const { testStateDriver } = yield initTestBed(`
|
|
342
|
-
<TextArea onDidChange="arg => testState = arg" />
|
|
343
|
-
`);
|
|
344
|
-
yield page.getByRole("textbox").fill("test value");
|
|
345
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("test value");
|
|
346
|
-
}));
|
|
347
|
-
(0, fixtures_1.test)("gotFocus event fires on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
348
|
-
const { testStateDriver } = yield initTestBed(`
|
|
349
|
-
<TextArea onGotFocus="testState = 'focused'" />
|
|
350
|
-
`);
|
|
351
|
-
yield page.getByRole("textbox").focus();
|
|
352
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("focused");
|
|
353
|
-
}));
|
|
354
|
-
(0, fixtures_1.test)("gotFocus event fires on label click", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
355
|
-
const { testStateDriver } = yield initTestBed(`
|
|
356
|
-
<TextArea label="Comments" onGotFocus="testState = 'focused'" />
|
|
357
|
-
`);
|
|
358
|
-
yield page.getByText("Comments").click();
|
|
359
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("focused");
|
|
360
|
-
}));
|
|
361
|
-
(0, fixtures_1.test)("lostFocus event fires on blur", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
362
|
-
const { testStateDriver } = yield initTestBed(`
|
|
363
|
-
<TextArea onLostFocus="testState = 'blurred'" />
|
|
364
|
-
`);
|
|
365
|
-
const textarea = page.getByRole("textbox");
|
|
366
|
-
yield textarea.focus();
|
|
367
|
-
yield textarea.blur();
|
|
368
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("blurred");
|
|
369
|
-
}));
|
|
370
|
-
(0, fixtures_1.test)("events do not fire when component is disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
371
|
-
const { testStateDriver } = yield initTestBed(`
|
|
372
|
-
<TextArea enabled="false" onDidChange="testState = 'changed'" onGotFocus="testState = 'focused'" />
|
|
373
|
-
`);
|
|
374
|
-
const textarea = page.getByRole("textbox");
|
|
375
|
-
yield textarea.focus();
|
|
376
|
-
yield textarea.fill("test", { force: true });
|
|
377
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual(null);
|
|
378
|
-
}));
|
|
379
|
-
});
|
|
380
|
-
// =============================================================================
|
|
381
|
-
// VISUAL STATE TESTS
|
|
382
|
-
// =============================================================================
|
|
383
|
-
fixtures_1.test.describe("Visual States", () => {
|
|
384
|
-
(0, fixtures_1.test)("component applies theme variables correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
385
|
-
yield initTestBed(`<TextArea testId="input" />`, {
|
|
386
|
-
testThemeVars: {
|
|
387
|
-
"backgroundColor-TextArea--default": "rgb(255, 0, 0)",
|
|
388
|
-
"textColor-TextArea--default": "rgb(0, 255, 0)",
|
|
389
|
-
},
|
|
390
|
-
});
|
|
391
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("background-color", "rgb(255, 0, 0)");
|
|
392
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("color", "rgb(0, 255, 0)");
|
|
393
|
-
}));
|
|
394
|
-
(0, fixtures_1.test)("component handles horizontal resize option", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
395
|
-
yield initTestBed(`<TextArea resize="horizontal" />`);
|
|
396
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveCSS("resize", "horizontal");
|
|
397
|
-
}));
|
|
398
|
-
(0, fixtures_1.test)("component handles vertical resize option", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
399
|
-
yield initTestBed(`<TextArea resize="vertical" />`);
|
|
400
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveCSS("resize", "vertical");
|
|
401
|
-
}));
|
|
402
|
-
(0, fixtures_1.test)("component handles both resize option", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
403
|
-
yield initTestBed(`<TextArea resize="both" />`);
|
|
404
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveCSS("resize", "both");
|
|
405
|
-
}));
|
|
406
|
-
(0, fixtures_1.test)("component handles disabled visual state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
407
|
-
yield initTestBed(`<TextArea enabled="false" />`, {
|
|
408
|
-
testThemeVars: {
|
|
409
|
-
"backgroundColor-TextArea--disabled": "rgb(255, 0, 0)",
|
|
410
|
-
"textColor-TextArea--disabled": "rgb(0, 255, 0)",
|
|
411
|
-
"borderColor-TextArea--disabled": "rgb(0, 0, 255)",
|
|
412
|
-
},
|
|
413
|
-
});
|
|
414
|
-
const textarea = page.getByRole("textbox");
|
|
415
|
-
yield (0, fixtures_1.expect)(textarea).toBeDisabled();
|
|
416
|
-
yield (0, fixtures_1.expect)(textarea).toHaveCSS("background-color", "rgb(255, 0, 0)");
|
|
417
|
-
yield (0, fixtures_1.expect)(textarea).toHaveCSS("color", "rgb(0, 255, 0)");
|
|
418
|
-
yield (0, fixtures_1.expect)(textarea).toHaveCSS("border-color", "rgb(0, 0, 255)");
|
|
419
|
-
}));
|
|
420
|
-
(0, fixtures_1.test)("component handles focus state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
421
|
-
yield initTestBed(`<TextArea />`, {
|
|
422
|
-
testThemeVars: {
|
|
423
|
-
"borderColor-TextArea--focus": "rgb(255, 0, 0)",
|
|
424
|
-
"backgroundColor-TextArea--focus": "rgb(0, 255, 0)",
|
|
425
|
-
"textColor-TextArea--focus": "rgb(0, 0, 255)",
|
|
426
|
-
},
|
|
427
|
-
});
|
|
428
|
-
const textarea = page.getByRole("textbox");
|
|
429
|
-
// Test focus state
|
|
430
|
-
yield textarea.focus();
|
|
431
|
-
yield (0, fixtures_1.expect)(textarea).toHaveCSS("border-color", "rgb(255, 0, 0)");
|
|
432
|
-
yield (0, fixtures_1.expect)(textarea).toHaveCSS("background-color", "rgb(0, 255, 0)");
|
|
433
|
-
yield (0, fixtures_1.expect)(textarea).toHaveCSS("color", "rgb(0, 0, 255)");
|
|
434
|
-
}));
|
|
435
|
-
(0, fixtures_1.test)("component handles hover state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
436
|
-
yield initTestBed(`<TextArea />`, {
|
|
437
|
-
testThemeVars: {
|
|
438
|
-
"borderColor-TextArea--hover": "rgb(255, 0, 0)",
|
|
439
|
-
"backgroundColor-TextArea--hover": "rgb(0, 255, 0)",
|
|
440
|
-
"textColor-TextArea--hover": "rgb(0, 0, 255)",
|
|
441
|
-
},
|
|
442
|
-
});
|
|
443
|
-
const textarea = page.getByRole("textbox");
|
|
444
|
-
// Test hover state (simulated through interaction)
|
|
445
|
-
yield textarea.hover();
|
|
446
|
-
yield (0, fixtures_1.expect)(textarea).toHaveCSS("border-color", "rgb(255, 0, 0)");
|
|
447
|
-
yield (0, fixtures_1.expect)(textarea).toHaveCSS("background-color", "rgb(0, 255, 0)");
|
|
448
|
-
yield (0, fixtures_1.expect)(textarea).toHaveCSS("color", "rgb(0, 0, 255)");
|
|
449
|
-
}));
|
|
450
|
-
});
|
|
451
|
-
// =============================================================================
|
|
452
|
-
// EDGE CASE TESTS
|
|
453
|
-
// =============================================================================
|
|
454
|
-
fixtures_1.test.describe("Edge Cases", () => {
|
|
455
|
-
(0, fixtures_1.test)("component handles special characters correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
456
|
-
yield initTestBed(`<TextArea label="José María's Comments" placeholder="Введите текст здесь" />`);
|
|
457
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
458
|
-
yield (0, fixtures_1.expect)(page.getByText("José María's Comments")).toBeVisible();
|
|
459
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveAttribute("placeholder", "Введите текст здесь");
|
|
460
|
-
}));
|
|
461
|
-
(0, fixtures_1.test)("component handles empty array as initialValue", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
462
|
-
yield initTestBed(`<TextArea initialValue="{[]}" />`);
|
|
463
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("");
|
|
464
|
-
}));
|
|
465
|
-
(0, fixtures_1.test)("component handles empty object as initialValue", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
466
|
-
yield initTestBed(`<TextArea initialValue="{{}}" />`);
|
|
467
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("[object Object]");
|
|
468
|
-
}));
|
|
469
|
-
(0, fixtures_1.test)("component handles function as initialValue", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
470
|
-
yield initTestBed(`<TextArea initialValue="{() => {}}" />`);
|
|
471
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("[object Object]");
|
|
472
|
-
}));
|
|
473
|
-
(0, fixtures_1.test)("component handles negative maxLength gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
474
|
-
yield initTestBed(`<TextArea maxLength="{-1}" />`);
|
|
475
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
476
|
-
}));
|
|
477
|
-
(0, fixtures_1.test)("component handles zero maxLength gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
478
|
-
yield initTestBed(`<TextArea maxLength="0" />`);
|
|
479
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
480
|
-
}));
|
|
481
|
-
(0, fixtures_1.test)("component handles very large maxLength gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
482
|
-
yield initTestBed(`<TextArea maxLength="999999" />`);
|
|
483
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
484
|
-
}));
|
|
485
|
-
(0, fixtures_1.test)("component handles invalid resize values gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
486
|
-
yield initTestBed(`<TextArea resize="invalid" />`);
|
|
487
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveCSS("resize", "none");
|
|
488
|
-
}));
|
|
489
|
-
(0, fixtures_1.test)("component handles empty value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
490
|
-
yield initTestBed(`<TextArea initialValue="" />`);
|
|
491
|
-
const textarea = page.getByRole("textbox");
|
|
492
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("");
|
|
493
|
-
}));
|
|
494
|
-
(0, fixtures_1.test)("component handles whitespace-only value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
495
|
-
yield initTestBed(`<TextArea initialValue=" " />`);
|
|
496
|
-
const whitespaceTextarea = page.getByRole("textbox");
|
|
497
|
-
yield (0, fixtures_1.expect)(whitespaceTextarea).toHaveValue(" ");
|
|
498
|
-
}));
|
|
499
|
-
(0, fixtures_1.test)("component handles tab and newline characters in value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
500
|
-
yield initTestBed(`<TextArea initialValue="\t\n" />`);
|
|
501
|
-
const tabNewlineTextarea = page.getByRole("textbox");
|
|
502
|
-
const value = yield tabNewlineTextarea.inputValue();
|
|
503
|
-
(0, fixtures_1.expect)(value).toContain("\t");
|
|
504
|
-
(0, fixtures_1.expect)(value).toContain("\n");
|
|
505
|
-
}));
|
|
506
|
-
(0, fixtures_1.test)("component handles very long input values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
507
|
-
const longValue = "Very long value that might cause issues with component rendering or processing. ".repeat(100);
|
|
508
|
-
yield initTestBed(`<TextArea initialValue="${longValue}" />`);
|
|
509
|
-
const textarea = page.getByRole("textbox");
|
|
510
|
-
yield (0, fixtures_1.expect)(textarea).toBeVisible();
|
|
511
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue(longValue);
|
|
512
|
-
}));
|
|
513
|
-
(0, fixtures_1.test)("component handles invalid maxRows/minRows combinations with autoSize", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
514
|
-
yield initTestBed(`<TextArea autoSize="true" maxRows="2" minRows="5" />`);
|
|
515
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
516
|
-
}));
|
|
517
|
-
(0, fixtures_1.test)("component handles zero maxRows/minRows values with autoSize", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
518
|
-
yield initTestBed(`<TextArea autoSize="true" maxRows="0" minRows="0" />`);
|
|
519
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
520
|
-
}));
|
|
521
|
-
(0, fixtures_1.test)("component handles negative maxRows/minRows values with autoSize", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
522
|
-
yield initTestBed(`<TextArea autoSize="true" maxRows="{-1}" minRows="{-1}" />`);
|
|
523
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
524
|
-
}));
|
|
525
|
-
});
|
|
526
|
-
// =============================================================================
|
|
527
|
-
// PERFORMANCE TESTS
|
|
528
|
-
// =============================================================================
|
|
529
|
-
fixtures_1.test.describe("Performance", () => {
|
|
530
|
-
(0, fixtures_1.test)("component memoization prevents unnecessary re-renders", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
531
|
-
const { testStateDriver } = yield initTestBed(`
|
|
532
|
-
<TextArea
|
|
533
|
-
label="Performance Test"
|
|
534
|
-
onDidChange="testState = ++testState || 1"
|
|
535
|
-
/>
|
|
536
|
-
`);
|
|
537
|
-
const textarea = page.getByRole("textbox");
|
|
538
|
-
// Test that memoization works through stable behavior
|
|
539
|
-
yield textarea.fill("a");
|
|
540
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual(1);
|
|
541
|
-
yield textarea.fill("ab");
|
|
542
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual(2);
|
|
543
|
-
// Component should maintain consistent behavior
|
|
544
|
-
yield (0, fixtures_1.expect)(textarea).toBeVisible();
|
|
545
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("ab");
|
|
546
|
-
}));
|
|
547
|
-
(0, fixtures_1.test)("component handles large content efficiently", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
548
|
-
const largeContent = "Large content line.\n".repeat(1000);
|
|
549
|
-
yield initTestBed(`<TextArea />`);
|
|
550
|
-
const textarea = page.getByRole("textbox");
|
|
551
|
-
// Fill with large content
|
|
552
|
-
yield textarea.fill(largeContent);
|
|
553
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue(largeContent);
|
|
554
|
-
// Verify component still responsive
|
|
555
|
-
yield textarea.clear();
|
|
556
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("");
|
|
557
|
-
}));
|
|
558
|
-
(0, fixtures_1.test)("component performs well with rapid user input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
559
|
-
const { testStateDriver } = yield initTestBed(`
|
|
560
|
-
<TextArea onDidChange="testState = (testState || 0) + 1" />
|
|
561
|
-
`);
|
|
562
|
-
const textarea = page.getByRole("textbox");
|
|
563
|
-
// Simulate rapid typing
|
|
564
|
-
yield textarea.pressSequentially("rapid input test", { delay: 10 });
|
|
565
|
-
// Should have received multiple change events efficiently
|
|
566
|
-
const changeCount = yield testStateDriver.testState();
|
|
567
|
-
(0, fixtures_1.expect)(changeCount).toBeGreaterThan(10);
|
|
568
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("rapid input test");
|
|
569
|
-
}));
|
|
570
|
-
});
|
|
571
|
-
// =============================================================================
|
|
572
|
-
// INTEGRATION TESTS
|
|
573
|
-
// =============================================================================
|
|
574
|
-
fixtures_1.test.describe("Integration", () => {
|
|
575
|
-
(0, fixtures_1.test)("component works correctly in different layout contexts", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
576
|
-
yield initTestBed(`<TextArea label="Layout Test" />`);
|
|
577
|
-
const textarea = page.getByRole("textbox");
|
|
578
|
-
// Test basic layout integration
|
|
579
|
-
yield (0, fixtures_1.expect)(textarea).toBeVisible();
|
|
580
|
-
// Test bounding box and dimensions
|
|
581
|
-
const boundingBox = yield (0, component_test_helpers_1.getBounds)(textarea);
|
|
582
|
-
(0, fixtures_1.expect)(boundingBox).not.toBeNull();
|
|
583
|
-
(0, fixtures_1.expect)(boundingBox.width).toBeGreaterThan(0);
|
|
584
|
-
(0, fixtures_1.expect)(boundingBox.height).toBeGreaterThan(0);
|
|
585
|
-
}));
|
|
586
|
-
(0, fixtures_1.test)("component integrates with Form components", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
587
|
-
yield initTestBed(`
|
|
588
|
-
<Fragment>
|
|
589
|
-
<TextArea id="comments" label="Comments" required="true" />
|
|
590
|
-
<Button testId="submit">Submit</Button>
|
|
591
|
-
</Fragment>
|
|
592
|
-
`);
|
|
593
|
-
const textarea = page.getByLabel("Comments");
|
|
594
|
-
const submitButton = page.getByTestId("submit");
|
|
595
|
-
yield (0, fixtures_1.expect)(textarea).toBeVisible();
|
|
596
|
-
yield (0, fixtures_1.expect)(submitButton).toBeVisible();
|
|
597
|
-
// Test form interaction
|
|
598
|
-
yield textarea.fill("User feedback");
|
|
599
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("User feedback");
|
|
600
|
-
}));
|
|
601
|
-
(0, fixtures_1.test)("component state synchronization with other components", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
602
|
-
yield initTestBed(`
|
|
603
|
-
<Fragment>
|
|
604
|
-
<TextArea id="textarea" initialValue="Initial text" />
|
|
605
|
-
<Text testId="display">{textarea.value}</Text>
|
|
606
|
-
<Button testId="clear" onClick="textarea.setValue('')">Clear</Button>
|
|
607
|
-
</Fragment>
|
|
608
|
-
`);
|
|
609
|
-
// Initial state sync
|
|
610
|
-
yield (0, fixtures_1.expect)(page.getByTestId("display")).toHaveText("Initial text");
|
|
611
|
-
// Manual input sync
|
|
612
|
-
const textarea = page.getByRole("textbox");
|
|
613
|
-
yield textarea.fill("Updated text");
|
|
614
|
-
yield (0, fixtures_1.expect)(page.getByTestId("display")).toHaveText("Updated text");
|
|
615
|
-
// API call sync
|
|
616
|
-
yield page.getByTestId("clear").click();
|
|
617
|
-
yield (0, fixtures_1.expect)(page.getByTestId("display")).toHaveText("");
|
|
618
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("");
|
|
619
|
-
}));
|
|
620
|
-
(0, fixtures_1.test)("component works with event handling chain", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
621
|
-
const { testStateDriver } = yield initTestBed(`
|
|
622
|
-
<Fragment>
|
|
623
|
-
<TextArea
|
|
624
|
-
onGotFocus="testState = 'focused'"
|
|
625
|
-
onLostFocus="testState = 'blurred'"
|
|
626
|
-
onDidChange="(value) => testState = 'changed: ' + value"
|
|
627
|
-
/>
|
|
628
|
-
<Button testId="otherElement">Other Element</Button>
|
|
629
|
-
</Fragment>
|
|
630
|
-
`);
|
|
631
|
-
const textarea = page.getByRole("textbox");
|
|
632
|
-
const button = page.getByTestId("otherElement");
|
|
633
|
-
// Test focus event
|
|
634
|
-
yield textarea.focus();
|
|
635
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("focused");
|
|
636
|
-
// Test change event (use fill for reliable event triggering)
|
|
637
|
-
yield textarea.fill("test input");
|
|
638
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("changed: test input");
|
|
639
|
-
// Test blur event
|
|
640
|
-
yield button.focus();
|
|
641
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("blurred");
|
|
642
|
-
}));
|
|
643
|
-
(0, fixtures_1.test)("component API methods work in integrated scenarios", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
644
|
-
yield initTestBed(`
|
|
645
|
-
<Fragment>
|
|
646
|
-
<TextArea id="textarea1" />
|
|
647
|
-
<TextArea id="textarea2" />
|
|
648
|
-
<Button testId="copyBtn" onClick="textarea2.setValue(textarea1.value)">Copy</Button>
|
|
649
|
-
<Button testId="focusBtn" onClick="textarea1.focus()">Focus First</Button>
|
|
650
|
-
</Fragment>
|
|
651
|
-
`);
|
|
652
|
-
const textarea1 = page.getByRole("textbox").first();
|
|
653
|
-
const textarea2 = page.getByRole("textbox").nth(1);
|
|
654
|
-
const copyBtn = page.getByTestId("copyBtn");
|
|
655
|
-
const focusBtn = page.getByTestId("focusBtn");
|
|
656
|
-
// Setup initial content
|
|
657
|
-
yield textarea1.fill("Content to copy");
|
|
658
|
-
// Test setValue API integration
|
|
659
|
-
yield copyBtn.click();
|
|
660
|
-
yield (0, fixtures_1.expect)(textarea2).toHaveValue("Content to copy");
|
|
661
|
-
// Test focus API integration
|
|
662
|
-
yield focusBtn.click();
|
|
663
|
-
yield (0, fixtures_1.expect)(textarea1).toBeFocused();
|
|
664
|
-
}));
|
|
665
|
-
(0, fixtures_1.test)("component works in nested component structures", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
666
|
-
yield initTestBed(`
|
|
667
|
-
<Fragment>
|
|
668
|
-
<VStack>
|
|
669
|
-
<TextArea label="Nested Textarea 1" />
|
|
670
|
-
<HStack>
|
|
671
|
-
<TextArea label="Nested Textarea 2" />
|
|
672
|
-
<Button testId="nestedBtn">Button</Button>
|
|
673
|
-
</HStack>
|
|
674
|
-
</VStack>
|
|
675
|
-
</Fragment>
|
|
676
|
-
`);
|
|
677
|
-
const textarea1 = page.getByLabel("Nested Textarea 1");
|
|
678
|
-
const textarea2 = page.getByLabel("Nested Textarea 2");
|
|
679
|
-
const button = page.getByTestId("nestedBtn");
|
|
680
|
-
yield (0, fixtures_1.expect)(textarea1).toBeVisible();
|
|
681
|
-
yield (0, fixtures_1.expect)(textarea2).toBeVisible();
|
|
682
|
-
yield (0, fixtures_1.expect)(button).toBeVisible();
|
|
683
|
-
// Test interaction in nested structure
|
|
684
|
-
yield textarea1.fill("Content in nested structure");
|
|
685
|
-
yield (0, fixtures_1.expect)(textarea1).toHaveValue("Content in nested structure");
|
|
686
|
-
}));
|
|
687
|
-
(0, fixtures_1.test)("programmatic control works", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
688
|
-
yield initTestBed(`
|
|
689
|
-
<Fragment>
|
|
690
|
-
<TextArea id="input" />
|
|
691
|
-
<Button testId="focusBtn" onClick="input.focus()">Focus</Button>
|
|
692
|
-
<Button testId="setBtn" onClick="input.setValue('API Value')">Set Value</Button>
|
|
693
|
-
<Button testId="insertBtn" onClick="input.insert(' inserted')">Insert Text</Button>
|
|
694
|
-
</Fragment>
|
|
695
|
-
`);
|
|
696
|
-
const textarea = page.getByRole("textbox");
|
|
697
|
-
// Test focus API
|
|
698
|
-
yield page.getByTestId("focusBtn").click();
|
|
699
|
-
yield (0, fixtures_1.expect)(textarea).toBeFocused();
|
|
700
|
-
// Test setValue API
|
|
701
|
-
yield page.getByTestId("setBtn").click();
|
|
702
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("API Value");
|
|
703
|
-
// Test insert API
|
|
704
|
-
yield textarea.click(); // Focus and position cursor at end
|
|
705
|
-
yield page.getByTestId("insertBtn").click();
|
|
706
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("API Value inserted");
|
|
707
|
-
}));
|
|
708
|
-
(0, fixtures_1.test)("insert API method works at cursor position", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
709
|
-
yield initTestBed(`
|
|
710
|
-
<Fragment>
|
|
711
|
-
<TextArea id="textarea" initialValue="Hello World" />
|
|
712
|
-
<Button testId="insertBtn" onClick="textarea.insert(' Beautiful')">Insert</Button>
|
|
713
|
-
</Fragment>
|
|
714
|
-
`);
|
|
715
|
-
const textarea = page.getByRole("textbox");
|
|
716
|
-
// Position cursor between "Hello" and " World" (after "Hello")
|
|
717
|
-
yield textarea.focus();
|
|
718
|
-
yield page.evaluate(() => {
|
|
719
|
-
const textarea = document.querySelector("textarea");
|
|
720
|
-
if (textarea) {
|
|
721
|
-
textarea.setSelectionRange(5, 5); // Position after "Hello"
|
|
722
|
-
}
|
|
723
|
-
});
|
|
724
|
-
yield page.getByTestId("insertBtn").click();
|
|
725
|
-
yield (0, fixtures_1.expect)(textarea).toHaveValue("Hello Beautiful World");
|
|
726
|
-
}));
|
|
727
|
-
(0, fixtures_1.test)("component value API reflects current content", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
728
|
-
yield initTestBed(`
|
|
729
|
-
<Fragment>
|
|
730
|
-
<TextArea id="myTextArea" initialValue="Initial content" />
|
|
731
|
-
<Text testId="valueDisplay">{myTextArea.value}</Text>
|
|
732
|
-
</Fragment>
|
|
733
|
-
`);
|
|
734
|
-
const textarea = page.getByRole("textbox");
|
|
735
|
-
const valueDisplay = page.getByTestId("valueDisplay");
|
|
736
|
-
yield (0, fixtures_1.expect)(valueDisplay).toHaveText("Initial content");
|
|
737
|
-
yield textarea.fill("Updated content");
|
|
738
|
-
yield (0, fixtures_1.expect)(valueDisplay).toHaveText("Updated content");
|
|
739
|
-
}));
|
|
740
|
-
});
|
|
741
|
-
// =============================================================================
|
|
742
|
-
// REGRESSION TESTS
|
|
743
|
-
// =============================================================================
|
|
744
|
-
fixtures_1.test.describe("Regression", () => {
|
|
745
|
-
(0, fixtures_1.test)("component does not loose focus #1", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextAreaDriver, createTextBoxDriver, }) {
|
|
746
|
-
yield initTestBed(`
|
|
747
|
-
<Fragment var.value="">
|
|
748
|
-
<TextBox testId="myTextBox" initialValue="{value}" onDidChange="{(val) => {value = val}}"/>
|
|
749
|
-
<TextArea testId="myTextArea" initialValue="{value}" onDidChange="{(val) => {value = val}}"/>
|
|
750
|
-
</Fragment>
|
|
751
|
-
`);
|
|
752
|
-
const tbDriver = yield createTextBoxDriver("myTextBox");
|
|
753
|
-
const driver = yield createTextAreaDriver("myTextArea");
|
|
754
|
-
// Test basic layout integration
|
|
755
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
756
|
-
yield driver.focus();
|
|
757
|
-
yield (0, fixtures_1.expect)(driver.component).toBeFocused();
|
|
758
|
-
yield driver.component.fill("a");
|
|
759
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveValue("a");
|
|
760
|
-
yield driver.component.fill("abc");
|
|
761
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveValue("abc");
|
|
762
|
-
yield driver.component.fill("abcde");
|
|
763
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveValue("abcde");
|
|
764
|
-
}));
|
|
765
|
-
});
|
|
766
|
-
// =============================================================================
|
|
767
|
-
// VISUAL STATE TESTS
|
|
768
|
-
// =============================================================================
|
|
769
|
-
(0, fixtures_1.test)("input has correct width in px", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
770
|
-
yield initTestBed(`<TextArea width="200px" testId="test"/>`, {});
|
|
771
|
-
const input = page.getByTestId("test");
|
|
772
|
-
const { width } = yield input.boundingBox();
|
|
773
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
774
|
-
}));
|
|
775
|
-
(0, fixtures_1.test)("input with label has correct width in px", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
776
|
-
yield initTestBed(`<TextArea width="200px" label="test" testId="test"/>`, {});
|
|
777
|
-
const input = page.getByTestId("test");
|
|
778
|
-
const { width } = yield input.boundingBox();
|
|
779
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
780
|
-
}));
|
|
781
|
-
(0, fixtures_1.test)("input has correct width in %", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
782
|
-
yield page.setViewportSize({ width: 400, height: 300 });
|
|
783
|
-
yield initTestBed(`<TextArea width="50%" testId="test"/>`, {});
|
|
784
|
-
const input = page.getByTestId("test");
|
|
785
|
-
const { width } = yield input.boundingBox();
|
|
786
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
787
|
-
}));
|
|
788
|
-
(0, fixtures_1.test)("input with label has correct width in %", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
789
|
-
yield page.setViewportSize({ width: 400, height: 300 });
|
|
790
|
-
yield initTestBed(`<TextArea width="50%" label="test" testId="test"/>`, {});
|
|
791
|
-
const input = page.getByTestId("test");
|
|
792
|
-
const { width } = yield input.boundingBox();
|
|
793
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
794
|
-
}));
|
|
795
|
-
// =============================================================================
|
|
796
|
-
// THEME VARIABLE TESTS
|
|
797
|
-
// =============================================================================
|
|
798
|
-
fixtures_1.test.describe("Theme Variables", () => {
|
|
799
|
-
[
|
|
800
|
-
{ value: "--default", prop: "" },
|
|
801
|
-
{ value: "--warning", prop: 'validationStatus="warning"' },
|
|
802
|
-
{ value: "--error", prop: 'validationStatus="error"' },
|
|
803
|
-
{ value: "--success", prop: 'validationStatus="valid"' },
|
|
804
|
-
].forEach((variant) => {
|
|
805
|
-
(0, fixtures_1.test)(`applies correct borderRadius ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
806
|
-
yield initTestBed(`<TextArea testId="test" ${variant.prop} />`, {
|
|
807
|
-
testThemeVars: { [`borderRadius-TextArea${variant.value}`]: "12px" },
|
|
808
|
-
});
|
|
809
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-radius", "12px");
|
|
810
|
-
}));
|
|
811
|
-
(0, fixtures_1.test)(`applies correct borderColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
812
|
-
yield initTestBed(`<TextArea testId="test" ${variant.prop} />`, {
|
|
813
|
-
testThemeVars: { [`borderColor-TextArea${variant.value}`]: "rgb(255, 0, 0)" },
|
|
814
|
-
});
|
|
815
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-color", "rgb(255, 0, 0)");
|
|
816
|
-
}));
|
|
817
|
-
(0, fixtures_1.test)(`applies correct borderWidth ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
818
|
-
yield initTestBed(`<TextArea testId="test" ${variant.prop} />`, {
|
|
819
|
-
testThemeVars: { [`borderWidth-TextArea${variant.value}`]: "1px" },
|
|
820
|
-
});
|
|
821
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-width", "1px");
|
|
822
|
-
}));
|
|
823
|
-
(0, fixtures_1.test)(`applies correct borderStyle ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
824
|
-
yield initTestBed(`<TextArea testId="test" ${variant.prop} />`, {
|
|
825
|
-
testThemeVars: { [`borderStyle-TextArea${variant.value}`]: "dashed" },
|
|
826
|
-
});
|
|
827
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-style", "dashed");
|
|
828
|
-
}));
|
|
829
|
-
(0, fixtures_1.test)(`applies correct fontSize ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
830
|
-
yield initTestBed(`<TextArea testId="test" ${variant.prop} />`, {
|
|
831
|
-
testThemeVars: { [`fontSize-TextArea${variant.value}`]: "14px" },
|
|
832
|
-
});
|
|
833
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("font-size", "14px");
|
|
834
|
-
}));
|
|
835
|
-
(0, fixtures_1.test)(`applies correct backgroundColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
836
|
-
yield initTestBed(`<TextArea testId="test" ${variant.prop} />`, {
|
|
837
|
-
testThemeVars: { [`backgroundColor-TextArea${variant.value}`]: "rgb(240, 240, 240)" },
|
|
838
|
-
});
|
|
839
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("background-color", "rgb(240, 240, 240)");
|
|
840
|
-
}));
|
|
841
|
-
(0, fixtures_1.test)(`applies correct boxShadow ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
842
|
-
yield initTestBed(`<TextArea testId="test" ${variant.prop} />`, {
|
|
843
|
-
testThemeVars: {
|
|
844
|
-
[`boxShadow-TextArea${variant.value}`]: "0 2px 8px rgba(0, 0, 0, 0.1)",
|
|
845
|
-
},
|
|
846
|
-
});
|
|
847
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("box-shadow", "rgba(0, 0, 0, 0.1) 0px 2px 8px 0px");
|
|
848
|
-
}));
|
|
849
|
-
(0, fixtures_1.test)(`applies correct textColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
850
|
-
yield initTestBed(`<TextArea testId="test" ${variant.prop} />`, {
|
|
851
|
-
testThemeVars: { [`textColor-TextArea${variant.value}`]: "rgb(0, 0, 0)" },
|
|
852
|
-
});
|
|
853
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("color", "rgb(0, 0, 0)");
|
|
854
|
-
}));
|
|
855
|
-
(0, fixtures_1.test)(`applies correct borderColor on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
856
|
-
yield initTestBed(`<TextArea testId="test" ${variant.prop} />`, {
|
|
857
|
-
testThemeVars: { [`borderColor-TextArea${variant.value}--hover`]: "rgb(0, 0, 0)" },
|
|
858
|
-
});
|
|
859
|
-
yield page.getByTestId("test").hover();
|
|
860
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-color", "rgb(0, 0, 0)");
|
|
861
|
-
}));
|
|
862
|
-
(0, fixtures_1.test)(`applies correct backgroundColor on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
863
|
-
yield initTestBed(`<TextArea testId="test" ${variant.prop} />`, {
|
|
864
|
-
testThemeVars: { [`backgroundColor-TextArea${variant.value}--hover`]: "rgb(0, 0, 0)" },
|
|
865
|
-
});
|
|
866
|
-
yield page.getByTestId("test").hover();
|
|
867
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("background-color", "rgb(0, 0, 0)");
|
|
868
|
-
}));
|
|
869
|
-
(0, fixtures_1.test)(`applies correct boxShadow on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
870
|
-
yield initTestBed(`<TextArea testId="test" ${variant.prop} />`, {
|
|
871
|
-
testThemeVars: {
|
|
872
|
-
[`boxShadow-TextArea${variant.value}--hover`]: "0 2px 8px rgba(0, 0, 0, 0.1)",
|
|
873
|
-
},
|
|
874
|
-
});
|
|
875
|
-
yield page.getByTestId("test").hover();
|
|
876
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("box-shadow", "rgba(0, 0, 0, 0.1) 0px 2px 8px 0px");
|
|
877
|
-
}));
|
|
878
|
-
(0, fixtures_1.test)(`applies correct textColor on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
879
|
-
yield initTestBed(`<TextArea testId="test" ${variant.prop} />`, {
|
|
880
|
-
testThemeVars: { [`textColor-TextArea${variant.value}--hover`]: "rgb(0, 0, 0)" },
|
|
881
|
-
});
|
|
882
|
-
yield page.getByTestId("test").hover();
|
|
883
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("color", "rgb(0, 0, 0)");
|
|
884
|
-
}));
|
|
885
|
-
});
|
|
886
|
-
});
|