xmlui 0.11.4 → 0.11.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/index.cjs +8836 -0
- package/dist/bin/index.js +8825 -0
- package/dist/lib/{apiInterceptorWorker-QiltRtq1.js → apiInterceptorWorker-dwrAyq6l.js} +126 -151
- package/dist/lib/{index-Cq0EMm3L.js → index-CwYK6iB4.js} +2502 -2675
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-DCigV4Zh.js → initMock-CvmWAkGr.js} +19 -22
- package/dist/lib/language-server-web-worker.js +13 -5
- package/dist/lib/language-server.js +11 -3
- package/dist/lib/{metadata-utils-BiolWMg9.js → metadata-utils-2bsMr4Gd.js} +58 -26
- package/dist/lib/{server-common-DyCHOk-z.js → server-common-DI3W4cob.js} +6297 -5930
- package/dist/lib/syntax-textmate.js +8 -2472
- package/dist/lib/testing.d.ts +1 -0
- package/dist/lib/testing.js +20 -23
- package/dist/lib/{transform-DHf9tQF7.js → transform-CQ_6R-43.js} +159 -126
- package/dist/lib/vite-xmlui-plugin.d.ts +10 -0
- package/dist/lib/vite-xmlui-plugin.js +8316 -0
- package/dist/lib/{xmlui-parser-CHN3mADy.js → xmlui-parser-CW8YmGjO.js} +10 -11
- package/dist/lib/xmlui-parser.js +2 -2
- package/dist/lib/{xmlui-serializer-CYNSHAlP.js → xmlui-serializer-CeCcgdVR.js} +19 -19
- package/dist/lib/xmlui.d.ts +122 -1
- package/dist/lib/xmlui.js +8 -3
- package/dist/metadata/{apiInterceptorWorker-Dql7QGw2.js → apiInterceptorWorker-Wgm2_zjg.js} +124 -149
- package/dist/metadata/{collectedComponentMetadata-CLaDZhmc.js → collectedComponentMetadata-CSFNLstl.js} +3169 -3302
- package/dist/metadata/{initMock-Buqah4JF.js → initMock-CyTd5aE8.js} +19 -22
- package/dist/metadata/xmlui-metadata.css +1 -0
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +171 -2
- package/dist/standalone/xmlui-standalone.umd.js +36 -37
- package/package.json +20 -50
- package/dist/lib/vite-xmlui-plugin/index.js +0 -13985
- package/dist/lib/vite-xmlui-plugin/package.json +0 -3
- package/dist/metadata/style.css +0 -1
- package/dist/scripts/bin/bootstrap.cjs +0 -4
- package/dist/scripts/bin/build-lib.js +0 -126
- package/dist/scripts/bin/build.js +0 -266
- package/dist/scripts/bin/index.js +0 -167
- package/dist/scripts/bin/preview.js +0 -44
- package/dist/scripts/bin/start.js +0 -52
- package/dist/scripts/bin/vite-xmlui-plugin.js +0 -109
- package/dist/scripts/bin/viteConfig.js +0 -144
- package/dist/scripts/package.json +0 -285
- package/dist/scripts/src/abstractions/ActionDefs.js +0 -2
- package/dist/scripts/src/abstractions/AppContextDefs.js +0 -4
- package/dist/scripts/src/abstractions/ComponentDefs.js +0 -2
- package/dist/scripts/src/abstractions/ContainerDefs.js +0 -2
- package/dist/scripts/src/abstractions/ExtensionDefs.js +0 -2
- package/dist/scripts/src/abstractions/FunctionDefs.js +0 -2
- package/dist/scripts/src/abstractions/RendererDefs.js +0 -2
- package/dist/scripts/src/abstractions/ThemingDefs.js +0 -2
- package/dist/scripts/src/abstractions/scripting/BlockScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Compilation.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LogicalThread.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LoopScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/ScriptParserError.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Token.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScopeExp.js +0 -2
- package/dist/scripts/src/abstractions/scripting/modules.js +0 -2
- package/dist/scripts/src/components/APICall/APICall.js +0 -130
- package/dist/scripts/src/components/APICall/APICall.spec.js +0 -910
- package/dist/scripts/src/components/APICall/APICallNative.js +0 -36
- package/dist/scripts/src/components/Accordion/Accordion.js +0 -97
- package/dist/scripts/src/components/Accordion/Accordion.spec.js +0 -969
- package/dist/scripts/src/components/Accordion/AccordionContext.js +0 -20
- package/dist/scripts/src/components/Accordion/AccordionItem.js +0 -35
- package/dist/scripts/src/components/Accordion/AccordionItemNative.js +0 -95
- package/dist/scripts/src/components/Accordion/AccordionNative.js +0 -141
- package/dist/scripts/src/components/Animation/AnimationNative.js +0 -263
- package/dist/scripts/src/components/App/App.js +0 -581
- package/dist/scripts/src/components/App/App.spec.js +0 -331
- package/dist/scripts/src/components/App/AppLayoutContext.js +0 -49
- package/dist/scripts/src/components/App/AppNative.js +0 -308
- package/dist/scripts/src/components/App/AppStateContext.js +0 -9
- package/dist/scripts/src/components/App/IndexerContext.js +0 -44
- package/dist/scripts/src/components/App/LinkInfoContext.js +0 -9
- package/dist/scripts/src/components/App/SearchContext.js +0 -35
- package/dist/scripts/src/components/App/Sheet.js +0 -99
- package/dist/scripts/src/components/AppHeader/AppHeader.js +0 -58
- package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +0 -169
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +0 -72
- package/dist/scripts/src/components/AppState/AppState.js +0 -75
- package/dist/scripts/src/components/AppState/AppState.spec.js +0 -292
- package/dist/scripts/src/components/AppState/AppStateNative.js +0 -51
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +0 -109
- package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +0 -546
- package/dist/scripts/src/components/AutoComplete/AutoCompleteContext.js +0 -19
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +0 -498
- package/dist/scripts/src/components/Avatar/Avatar.js +0 -55
- package/dist/scripts/src/components/Avatar/Avatar.spec.js +0 -1514
- package/dist/scripts/src/components/Avatar/AvatarNative.js +0 -58
- package/dist/scripts/src/components/Backdrop/Backdrop.js +0 -40
- package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +0 -131
- package/dist/scripts/src/components/Backdrop/BackdropNative.js +0 -25
- package/dist/scripts/src/components/Badge/Badge.js +0 -81
- package/dist/scripts/src/components/Badge/Badge.spec.js +0 -2214
- package/dist/scripts/src/components/Badge/BadgeNative.js +0 -46
- package/dist/scripts/src/components/Bookmark/Bookmark.js +0 -48
- package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +0 -230
- package/dist/scripts/src/components/Bookmark/BookmarkNative.js +0 -55
- package/dist/scripts/src/components/Breakout/Breakout.js +0 -17
- package/dist/scripts/src/components/Breakout/Breakout.spec.js +0 -56
- package/dist/scripts/src/components/Breakout/BreakoutNative.js +0 -24
- package/dist/scripts/src/components/Button/Button-style.spec.js +0 -274
- package/dist/scripts/src/components/Button/Button.js +0 -171
- package/dist/scripts/src/components/Button/Button.spec.js +0 -425
- package/dist/scripts/src/components/Button/ButtonNative.js +0 -109
- package/dist/scripts/src/components/Card/Card.js +0 -89
- package/dist/scripts/src/components/Card/Card.spec.js +0 -150
- package/dist/scripts/src/components/Card/CardNative.js +0 -41
- package/dist/scripts/src/components/Carousel/Carousel.js +0 -133
- package/dist/scripts/src/components/Carousel/Carousel.spec.js +0 -557
- package/dist/scripts/src/components/Carousel/CarouselContext.js +0 -57
- package/dist/scripts/src/components/Carousel/CarouselItem.js +0 -15
- package/dist/scripts/src/components/Carousel/CarouselItemNative.js +0 -40
- package/dist/scripts/src/components/Carousel/CarouselNative.js +0 -195
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +0 -34
- package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +0 -169
- package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +0 -30
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.js +0 -92
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +0 -999
- package/dist/scripts/src/components/Charts/AreaChart/AreaChartNative.js +0 -127
- package/dist/scripts/src/components/Charts/BarChart/BarChart.js +0 -97
- package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +0 -597
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +0 -317
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +0 -60
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +0 -608
- package/dist/scripts/src/components/Charts/LabelList/LabelList.js +0 -41
- package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +0 -539
- package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +0 -25
- package/dist/scripts/src/components/Charts/Legend/Legend.js +0 -33
- package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +0 -558
- package/dist/scripts/src/components/Charts/Legend/LegendNative.js +0 -64
- package/dist/scripts/src/components/Charts/LineChart/LineChart.js +0 -94
- package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +0 -450
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +0 -192
- package/dist/scripts/src/components/Charts/PieChart/PieChart.js +0 -64
- package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +0 -584
- package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +0 -167
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.js +0 -92
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +0 -571
- package/dist/scripts/src/components/Charts/RadarChart/RadarChartNative.js +0 -125
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.js +0 -27
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +0 -451
- package/dist/scripts/src/components/Charts/utils/ChartProvider.js +0 -65
- package/dist/scripts/src/components/Charts/utils/abstractions.js +0 -26
- package/dist/scripts/src/components/Checkbox/Checkbox.js +0 -81
- package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +0 -900
- package/dist/scripts/src/components/CodeBlock/CodeBlock.js +0 -42
- package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +0 -196
- package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +0 -127
- package/dist/scripts/src/components/CodeBlock/highlight-code.js +0 -273
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +0 -54
- package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +0 -355
- package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +0 -86
- package/dist/scripts/src/components/Column/Column.js +0 -89
- package/dist/scripts/src/components/Column/ColumnNative.js +0 -49
- package/dist/scripts/src/components/Column/TableContext.js +0 -12
- package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/ComponentProvider.js +0 -811
- package/dist/scripts/src/components/ComponentRegistryContext.js +0 -44
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +0 -51
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +0 -531
- package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +0 -31
- package/dist/scripts/src/components/DataSource/DataSource.js +0 -124
- package/dist/scripts/src/components/DateInput/DateInput.js +0 -197
- package/dist/scripts/src/components/DateInput/DateInput.spec.js +0 -1023
- package/dist/scripts/src/components/DateInput/DateInputNative.js +0 -734
- package/dist/scripts/src/components/DatePicker/DatePicker.js +0 -146
- package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +0 -394
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +0 -326
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +0 -196
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +0 -331
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +0 -146
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +0 -26
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +0 -29
- package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +0 -71
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +0 -101
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +0 -435
- package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +0 -109
- package/dist/scripts/src/components/FileInput/FileInput.js +0 -80
- package/dist/scripts/src/components/FileInput/FileInput.spec.js +0 -285
- package/dist/scripts/src/components/FileInput/FileInputNative.js +0 -161
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +0 -58
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +0 -296
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +0 -134
- package/dist/scripts/src/components/FlowLayout/FlowLayout.js +0 -65
- package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +0 -518
- package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +0 -153
- package/dist/scripts/src/components/Footer/Footer.js +0 -45
- package/dist/scripts/src/components/Footer/Footer.spec.js +0 -991
- package/dist/scripts/src/components/Footer/FooterNative.js +0 -35
- package/dist/scripts/src/components/Form/Form.js +0 -161
- package/dist/scripts/src/components/Form/Form.spec.js +0 -1719
- package/dist/scripts/src/components/Form/FormContext.js +0 -124
- package/dist/scripts/src/components/Form/FormNative.js +0 -463
- package/dist/scripts/src/components/Form/formActions.js +0 -115
- package/dist/scripts/src/components/FormItem/FormItem.js +0 -231
- package/dist/scripts/src/components/FormItem/FormItem.spec.js +0 -1022
- package/dist/scripts/src/components/FormItem/FormItemNative.js +0 -255
- package/dist/scripts/src/components/FormItem/HelperText.js +0 -27
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +0 -52
- package/dist/scripts/src/components/FormItem/Validations.js +0 -389
- package/dist/scripts/src/components/FormSection/FormSection.js +0 -56
- package/dist/scripts/src/components/Fragment/Fragment.js +0 -24
- package/dist/scripts/src/components/Fragment/Fragment.spec.js +0 -50
- package/dist/scripts/src/components/Heading/H1.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H2.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H3.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H4.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H5.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H6.spec.js +0 -66
- package/dist/scripts/src/components/Heading/Heading.js +0 -396
- package/dist/scripts/src/components/Heading/Heading.spec.js +0 -966
- package/dist/scripts/src/components/Heading/HeadingNative.js +0 -98
- package/dist/scripts/src/components/Heading/abstractions.js +0 -4
- package/dist/scripts/src/components/HoverCard/HoverCard.js +0 -18
- package/dist/scripts/src/components/HoverCard/HovercardNative.js +0 -44
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +0 -1441
- package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +0 -69
- package/dist/scripts/src/components/IFrame/IFrame.js +0 -77
- package/dist/scripts/src/components/IFrame/IFrame.spec.js +0 -527
- package/dist/scripts/src/components/IFrame/IFrameNative.js +0 -46
- package/dist/scripts/src/components/Icon/AdmonitionDanger.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionInfo.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionNote.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionTip.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionWarning.js +0 -10
- package/dist/scripts/src/components/Icon/ApiIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ArrowDropDown.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowDropUp.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowLeft.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowRight.js +0 -11
- package/dist/scripts/src/components/Icon/Attach.js +0 -10
- package/dist/scripts/src/components/Icon/Binding.js +0 -11
- package/dist/scripts/src/components/Icon/BoardIcon.js +0 -7
- package/dist/scripts/src/components/Icon/BoxIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CheckIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronDownIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronLeft.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronRight.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronUpIcon.js +0 -7
- package/dist/scripts/src/components/Icon/CodeFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CodeSandbox.js +0 -10
- package/dist/scripts/src/components/Icon/CompactListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ContentCopyIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DarkToLightIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DatabaseIcon.js +0 -11
- package/dist/scripts/src/components/Icon/DocFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DocIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DotMenuHorizontalIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DotMenuIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmailIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmptyFolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ErrorIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ExpressionIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FillPlusCricleIcon.js +0 -7
- package/dist/scripts/src/components/Icon/FilterIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/GlobeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HomeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HyperLinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/Icon.js +0 -42
- package/dist/scripts/src/components/Icon/Icon.spec.js +0 -527
- package/dist/scripts/src/components/Icon/IconNative.js +0 -127
- package/dist/scripts/src/components/Icon/ImageFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/Inspect.js +0 -10
- package/dist/scripts/src/components/Icon/LightToDark.js +0 -10
- package/dist/scripts/src/components/Icon/LinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/LooseListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/MoonIcon.js +0 -10
- package/dist/scripts/src/components/Icon/MoreOptionsIcon.js +0 -7
- package/dist/scripts/src/components/Icon/NoSortIcon.js +0 -8
- package/dist/scripts/src/components/Icon/PDFIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PenIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhoneIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhotoIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PlusIcon.js +0 -7
- package/dist/scripts/src/components/Icon/SearchIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ShareIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SortAscendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/SortDescendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/StarsIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SunIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrashIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrendingDownIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingLevelIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingUpIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TxtIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnknownFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnlinkIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UserIcon.js +0 -7
- package/dist/scripts/src/components/Icon/WarningIcon.js +0 -7
- package/dist/scripts/src/components/Icon/XlsIcon.js +0 -10
- package/dist/scripts/src/components/IconProvider.js +0 -300
- package/dist/scripts/src/components/IconRegistryContext.js +0 -318
- package/dist/scripts/src/components/Image/Image.js +0 -52
- package/dist/scripts/src/components/Image/Image.spec.js +0 -198
- package/dist/scripts/src/components/Image/ImageNative.js +0 -73
- package/dist/scripts/src/components/Input/InputAdornment.js +0 -28
- package/dist/scripts/src/components/Input/InputDivider.js +0 -35
- package/dist/scripts/src/components/Input/InputLabel.js +0 -25
- package/dist/scripts/src/components/Input/PartialInput.js +0 -155
- package/dist/scripts/src/components/Input/index.js +0 -5
- package/dist/scripts/src/components/InspectButton/InspectButton.js +0 -35
- package/dist/scripts/src/components/Items/Items.js +0 -39
- package/dist/scripts/src/components/Items/Items.spec.js +0 -397
- package/dist/scripts/src/components/Items/ItemsNative.js +0 -33
- package/dist/scripts/src/components/Link/Link.js +0 -82
- package/dist/scripts/src/components/Link/Link.spec.js +0 -894
- package/dist/scripts/src/components/Link/LinkNative.js +0 -48
- package/dist/scripts/src/components/List/List.js +0 -130
- package/dist/scripts/src/components/List/List.spec.js +0 -927
- package/dist/scripts/src/components/List/ListNative.js +0 -433
- package/dist/scripts/src/components/List/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Logo/Logo.js +0 -30
- package/dist/scripts/src/components/Logo/LogoNative.js +0 -32
- package/dist/scripts/src/components/Markdown/CodeText.js +0 -38
- package/dist/scripts/src/components/Markdown/Markdown.js +0 -143
- package/dist/scripts/src/components/Markdown/Markdown.spec.js +0 -188
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +0 -476
- package/dist/scripts/src/components/Markdown/parse-binding-expr.js +0 -60
- package/dist/scripts/src/components/Markdown/utils.js +0 -389
- package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +0 -111
- package/dist/scripts/src/components/ModalDialog/Dialog.js +0 -20
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +0 -83
- package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +0 -181
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +0 -217
- package/dist/scripts/src/components/ModalDialog/ModalVisibilityContext.js +0 -60
- package/dist/scripts/src/components/NavGroup/NavGroup.js +0 -70
- package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +0 -304
- package/dist/scripts/src/components/NavGroup/NavGroupContext.js +0 -13
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +0 -133
- package/dist/scripts/src/components/NavLink/NavLink.js +0 -86
- package/dist/scripts/src/components/NavLink/NavLink.spec.js +0 -864
- package/dist/scripts/src/components/NavLink/NavLinkNative.js +0 -73
- package/dist/scripts/src/components/NavPanel/NavPanel.js +0 -53
- package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +0 -864
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +0 -222
- package/dist/scripts/src/components/NestedApp/AppWithCodeView.js +0 -91
- package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +0 -84
- package/dist/scripts/src/components/NestedApp/NestedApp.js +0 -86
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +0 -231
- package/dist/scripts/src/components/NestedApp/Tooltip.js +0 -46
- package/dist/scripts/src/components/NestedApp/defaultProps.js +0 -12
- package/dist/scripts/src/components/NestedApp/utils.js +0 -67
- package/dist/scripts/src/components/NoResult/NoResult.js +0 -46
- package/dist/scripts/src/components/NoResult/NoResult.spec.js +0 -863
- package/dist/scripts/src/components/NoResult/NoResultNative.js +0 -31
- package/dist/scripts/src/components/NumberBox/NumberBox.js +0 -123
- package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +0 -979
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +0 -513
- package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +0 -109
- package/dist/scripts/src/components/Option/Option.js +0 -44
- package/dist/scripts/src/components/Option/Option.spec.js +0 -474
- package/dist/scripts/src/components/Option/OptionNative.js +0 -29
- package/dist/scripts/src/components/Option/OptionTypeProvider.js +0 -16
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +0 -13
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +0 -22
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +0 -80
- package/dist/scripts/src/components/Pages/Pages.js +0 -54
- package/dist/scripts/src/components/Pages/PagesNative.js +0 -57
- package/dist/scripts/src/components/Pagination/Pagination.js +0 -107
- package/dist/scripts/src/components/Pagination/Pagination.spec.js +0 -1008
- package/dist/scripts/src/components/Pagination/PaginationNative.js +0 -157
- package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +0 -24
- package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +0 -14
- package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +0 -20
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +0 -38
- package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +0 -166
- package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +0 -28
- package/dist/scripts/src/components/Queue/Queue.js +0 -85
- package/dist/scripts/src/components/Queue/Queue.spec.js +0 -624
- package/dist/scripts/src/components/Queue/QueueNative.js +0 -342
- package/dist/scripts/src/components/Queue/queueActions.js +0 -87
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +0 -61
- package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +0 -490
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +0 -158
- package/dist/scripts/src/components/RadioGroup/RadioItem.js +0 -28
- package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +0 -62
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +0 -24
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +0 -135
- package/dist/scripts/src/components/Redirect/Redirect.js +0 -31
- package/dist/scripts/src/components/Redirect/Redirect.spec.js +0 -527
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.js +0 -60
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +0 -76
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBarNative.js +0 -313
- package/dist/scripts/src/components/Select/HiddenOption.js +0 -20
- package/dist/scripts/src/components/Select/OptionContext.js +0 -12
- package/dist/scripts/src/components/Select/Select.js +0 -131
- package/dist/scripts/src/components/Select/Select.spec.js +0 -763
- package/dist/scripts/src/components/Select/SelectContext.js +0 -16
- package/dist/scripts/src/components/Select/SelectNative.js +0 -440
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +0 -25
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +0 -103
- package/dist/scripts/src/components/Slider/Slider.js +0 -115
- package/dist/scripts/src/components/Slider/Slider.spec.js +0 -677
- package/dist/scripts/src/components/Slider/SliderNative.js +0 -237
- package/dist/scripts/src/components/Slot/Slot.js +0 -17
- package/dist/scripts/src/components/Slot/Slot.spec.js +0 -368
- package/dist/scripts/src/components/SlotItem.js +0 -32
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +0 -20
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +0 -184
- package/dist/scripts/src/components/SpaceFiller/SpaceFillerNative.js +0 -10
- package/dist/scripts/src/components/Spinner/Spinner.js +0 -39
- package/dist/scripts/src/components/Spinner/Spinner.spec.js +0 -161
- package/dist/scripts/src/components/Spinner/SpinnerNative.js +0 -48
- package/dist/scripts/src/components/Splitter/HSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/Splitter.js +0 -163
- package/dist/scripts/src/components/Splitter/Splitter.spec.js +0 -856
- package/dist/scripts/src/components/Splitter/SplitterNative.js +0 -205
- package/dist/scripts/src/components/Splitter/VSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/utils.js +0 -22
- package/dist/scripts/src/components/Stack/CHStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/CVStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/HStack.spec.js +0 -67
- package/dist/scripts/src/components/Stack/Stack.js +0 -156
- package/dist/scripts/src/components/Stack/Stack.spec.js +0 -654
- package/dist/scripts/src/components/Stack/StackNative.js +0 -45
- package/dist/scripts/src/components/Stack/VStack.spec.js +0 -67
- package/dist/scripts/src/components/StickyBox/StickyBox.js +0 -34
- package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +0 -42
- package/dist/scripts/src/components/Switch/Switch.js +0 -80
- package/dist/scripts/src/components/Switch/Switch.spec.js +0 -834
- package/dist/scripts/src/components/Table/Table.js +0 -268
- package/dist/scripts/src/components/Table/Table.spec.js +0 -827
- package/dist/scripts/src/components/Table/TableNative.js +0 -670
- package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Table/useRowSelection.js +0 -454
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +0 -76
- package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +0 -838
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +0 -81
- package/dist/scripts/src/components/Tabs/TabContext.js +0 -58
- package/dist/scripts/src/components/Tabs/TabItem.js +0 -44
- package/dist/scripts/src/components/Tabs/TabItemNative.js +0 -53
- package/dist/scripts/src/components/Tabs/Tabs.js +0 -95
- package/dist/scripts/src/components/Tabs/Tabs.spec.js +0 -1237
- package/dist/scripts/src/components/Tabs/TabsNative.js +0 -137
- package/dist/scripts/src/components/Text/Text.js +0 -181
- package/dist/scripts/src/components/Text/Text.spec.js +0 -1676
- package/dist/scripts/src/components/Text/TextNative.js +0 -244
- package/dist/scripts/src/components/TextArea/TextArea.js +0 -103
- package/dist/scripts/src/components/TextArea/TextArea.spec.js +0 -886
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +0 -196
- package/dist/scripts/src/components/TextArea/TextAreaResizable.js +0 -73
- package/dist/scripts/src/components/TextArea/useComposedRef.js +0 -60
- package/dist/scripts/src/components/TextBox/TextBox.js +0 -133
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +0 -758
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +0 -142
- package/dist/scripts/src/components/Theme/NotificationToast.js +0 -64
- package/dist/scripts/src/components/Theme/Theme.js +0 -47
- package/dist/scripts/src/components/Theme/Theme.spec.js +0 -390
- package/dist/scripts/src/components/Theme/ThemeNative.js +0 -162
- package/dist/scripts/src/components/TimeInput/TimeInput.js +0 -149
- package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +0 -1236
- package/dist/scripts/src/components/TimeInput/TimeInputNative.js +0 -650
- package/dist/scripts/src/components/TimeInput/utils.js +0 -197
- package/dist/scripts/src/components/Timer/Timer.js +0 -62
- package/dist/scripts/src/components/Timer/Timer.spec.js +0 -328
- package/dist/scripts/src/components/Timer/TimerNative.js +0 -178
- package/dist/scripts/src/components/Toggle/Toggle.js +0 -172
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +0 -63
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +0 -414
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.js +0 -51
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +0 -89
- package/dist/scripts/src/components/ToneSwitch/ToneSwitchNative.js +0 -42
- package/dist/scripts/src/components/Tooltip/Tooltip.js +0 -118
- package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +0 -418
- package/dist/scripts/src/components/Tooltip/TooltipNative.js +0 -160
- package/dist/scripts/src/components/Tree/Tree-dynamic.spec.js +0 -2894
- package/dist/scripts/src/components/Tree/Tree-icons.spec.js +0 -206
- package/dist/scripts/src/components/Tree/Tree.spec.js +0 -2839
- package/dist/scripts/src/components/Tree/TreeComponent.js +0 -324
- package/dist/scripts/src/components/Tree/TreeNative.js +0 -1129
- package/dist/scripts/src/components/Tree/testData.js +0 -296
- package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +0 -49
- package/dist/scripts/src/components/TreeDisplay/TreeDisplayNative.js +0 -104
- package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +0 -64
- package/dist/scripts/src/components/VisuallyHidden.js +0 -21
- package/dist/scripts/src/components/abstractions.js +0 -341
- package/dist/scripts/src/components/chart-color-schemes.js +0 -43
- package/dist/scripts/src/components/collectedComponentMetadata.js +0 -316
- package/dist/scripts/src/components/component-utils.js +0 -29
- package/dist/scripts/src/components/container-helpers.js +0 -26
- package/dist/scripts/src/components/metadata-helpers.js +0 -269
- package/dist/scripts/src/components-core/ApiBoundComponent.js +0 -227
- package/dist/scripts/src/components-core/AppContext.js +0 -16
- package/dist/scripts/src/components-core/ComponentDecorator.js +0 -74
- package/dist/scripts/src/components-core/ComponentViewer.js +0 -69
- package/dist/scripts/src/components-core/CompoundComponent.js +0 -145
- package/dist/scripts/src/components-core/DebugViewProvider.js +0 -43
- package/dist/scripts/src/components-core/EngineError.js +0 -91
- package/dist/scripts/src/components-core/InspectorContext.js +0 -248
- package/dist/scripts/src/components-core/LoaderComponent.js +0 -109
- package/dist/scripts/src/components-core/RestApiProxy.js +0 -468
- package/dist/scripts/src/components-core/StandaloneApp.js +0 -821
- package/dist/scripts/src/components-core/StandaloneExtensionManager.js +0 -44
- package/dist/scripts/src/components-core/TableOfContentsContext.js +0 -168
- package/dist/scripts/src/components-core/abstractions/ComponentRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/LoaderRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
- package/dist/scripts/src/components-core/abstractions/treeAbstractions.js +0 -2
- package/dist/scripts/src/components-core/action/APICall.js +0 -284
- package/dist/scripts/src/components-core/action/FileDownloadAction.js +0 -80
- package/dist/scripts/src/components-core/action/FileUploadAction.js +0 -88
- package/dist/scripts/src/components-core/action/NavigateAction.js +0 -20
- package/dist/scripts/src/components-core/action/TimedAction.js +0 -21
- package/dist/scripts/src/components-core/action/actions.js +0 -15
- package/dist/scripts/src/components-core/appContext/date-functions.js +0 -24
- package/dist/scripts/src/components-core/appContext/math-function.js +0 -27
- package/dist/scripts/src/components-core/appContext/misc-utils.js +0 -14
- package/dist/scripts/src/components-core/behaviors/Behavior.js +0 -2
- package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +0 -201
- package/dist/scripts/src/components-core/component-hooks.js +0 -25
- package/dist/scripts/src/components-core/constants.js +0 -18
- package/dist/scripts/src/components-core/descriptorHelper.js +0 -96
- package/dist/scripts/src/components-core/devtools/InspectorDialog.js +0 -135
- package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +0 -8
- package/dist/scripts/src/components-core/event-handlers.js +0 -46
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +0 -247
- package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +0 -167
- package/dist/scripts/src/components-core/interception/Backend.js +0 -141
- package/dist/scripts/src/components-core/interception/Errors.js +0 -129
- package/dist/scripts/src/components-core/interception/InMemoryDb.js +0 -41
- package/dist/scripts/src/components-core/interception/IndexedDb.js +0 -205
- package/dist/scripts/src/components-core/interception/ReadonlyCollection.js +0 -145
- package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
- package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +0 -44
- package/dist/scripts/src/components-core/interception/initMock.js +0 -20
- package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +0 -9
- package/dist/scripts/src/components-core/loader/ApiLoader.js +0 -54
- package/dist/scripts/src/components-core/loader/DataLoader.js +0 -330
- package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +0 -60
- package/dist/scripts/src/components-core/loader/Loader.js +0 -159
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +0 -43
- package/dist/scripts/src/components-core/loader/PageableLoader.js +0 -272
- package/dist/scripts/src/components-core/markup-check.js +0 -279
- package/dist/scripts/src/components-core/parts.js +0 -11
- package/dist/scripts/src/components-core/renderers.js +0 -76
- package/dist/scripts/src/components-core/rendering/AppContent.js +0 -400
- package/dist/scripts/src/components-core/rendering/AppRoot.js +0 -87
- package/dist/scripts/src/components-core/rendering/AppWrapper.js +0 -49
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +0 -380
- package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +0 -166
- package/dist/scripts/src/components-core/rendering/Container.js +0 -621
- package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +0 -94
- package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +0 -65
- package/dist/scripts/src/components-core/rendering/InvalidComponent.js +0 -17
- package/dist/scripts/src/components-core/rendering/StandaloneComponent.js +0 -39
- package/dist/scripts/src/components-core/rendering/StateContainer.js +0 -350
- package/dist/scripts/src/components-core/rendering/UnknownComponent.js +0 -15
- package/dist/scripts/src/components-core/rendering/buildProxy.js +0 -58
- package/dist/scripts/src/components-core/rendering/collectFnVarDeps.js +0 -49
- package/dist/scripts/src/components-core/rendering/containers.js +0 -19
- package/dist/scripts/src/components-core/rendering/nodeUtils.js +0 -6
- package/dist/scripts/src/components-core/rendering/reducer.js +0 -160
- package/dist/scripts/src/components-core/rendering/renderChild.js +0 -82
- package/dist/scripts/src/components-core/rendering/valueExtractor.js +0 -216
- package/dist/scripts/src/components-core/reportEngineError.js +0 -62
- package/dist/scripts/src/components-core/script-runner/AttributeValueParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/BindingTreeEvaluationContext.js +0 -33
- package/dist/scripts/src/components-core/script-runner/ParameterParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/ScriptingSourceTree.js +0 -45
- package/dist/scripts/src/components-core/script-runner/asyncProxy.js +0 -96
- package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +0 -34
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +0 -613
- package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +0 -439
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +0 -522
- package/dist/scripts/src/components-core/script-runner/process-statement-async.js +0 -761
- package/dist/scripts/src/components-core/script-runner/process-statement-common.js +0 -208
- package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +0 -746
- package/dist/scripts/src/components-core/script-runner/simplify-expression.js +0 -386
- package/dist/scripts/src/components-core/script-runner/statement-queue.js +0 -63
- package/dist/scripts/src/components-core/script-runner/visitors.js +0 -369
- package/dist/scripts/src/components-core/theming/StyleContext.js +0 -133
- package/dist/scripts/src/components-core/theming/StyleRegistry.js +0 -171
- package/dist/scripts/src/components-core/theming/ThemeContext.js +0 -53
- package/dist/scripts/src/components-core/theming/ThemeProvider.js +0 -342
- package/dist/scripts/src/components-core/theming/component-layout-resolver.js +0 -153
- package/dist/scripts/src/components-core/theming/extendThemeUtils.js +0 -47
- package/dist/scripts/src/components-core/theming/hvar.js +0 -105
- package/dist/scripts/src/components-core/theming/layout-resolver.js +0 -388
- package/dist/scripts/src/components-core/theming/parse-layout-props.js +0 -136
- package/dist/scripts/src/components-core/theming/themeVars.js +0 -62
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +0 -15
- package/dist/scripts/src/components-core/theming/themes/palette.js +0 -57
- package/dist/scripts/src/components-core/theming/themes/root.js +0 -434
- package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
- package/dist/scripts/src/components-core/theming/themes/theme-colors.js +0 -561
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +0 -57
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +0 -733
- package/dist/scripts/src/components-core/theming/utils.js +0 -31
- package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +0 -41
- package/dist/scripts/src/components-core/utils/LruCache.js +0 -184
- package/dist/scripts/src/components-core/utils/actionUtils.js +0 -32
- package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
- package/dist/scripts/src/components-core/utils/base64-utils.js +0 -124
- package/dist/scripts/src/components-core/utils/compound-utils.js +0 -11
- package/dist/scripts/src/components-core/utils/css-utils.js +0 -179
- package/dist/scripts/src/components-core/utils/date-utils.js +0 -186
- package/dist/scripts/src/components-core/utils/extractParam.js +0 -281
- package/dist/scripts/src/components-core/utils/hooks.js +0 -400
- package/dist/scripts/src/components-core/utils/mergeProps.js +0 -45
- package/dist/scripts/src/components-core/utils/misc.js +0 -539
- package/dist/scripts/src/components-core/utils/request-params.js +0 -70
- package/dist/scripts/src/components-core/utils/statementUtils.js +0 -224
- package/dist/scripts/src/components-core/utils/treeUtils.js +0 -226
- package/dist/scripts/src/components-core/xmlui-parser.js +0 -548
- package/dist/scripts/src/index-standalone.js +0 -61
- package/dist/scripts/src/index.js +0 -158
- package/dist/scripts/src/language-server/server-common.js +0 -152
- package/dist/scripts/src/language-server/server-web-worker.js +0 -47
- package/dist/scripts/src/language-server/server.js +0 -42
- package/dist/scripts/src/language-server/services/common/docs-generation.js +0 -73
- package/dist/scripts/src/language-server/services/common/lsp-utils.js +0 -9
- package/dist/scripts/src/language-server/services/common/metadata-utils.js +0 -157
- package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +0 -127
- package/dist/scripts/src/language-server/services/completion.js +0 -288
- package/dist/scripts/src/language-server/services/diagnostic.js +0 -19
- package/dist/scripts/src/language-server/services/format.js +0 -569
- package/dist/scripts/src/language-server/services/hover.js +0 -164
- package/dist/scripts/src/language-server/xmlui-metadata-generated.js +0 -16276
- package/dist/scripts/src/logging/LoggerContext.js +0 -22
- package/dist/scripts/src/logging/LoggerInitializer.js +0 -14
- package/dist/scripts/src/logging/LoggerService.js +0 -60
- package/dist/scripts/src/logging/xmlui.js +0 -21
- package/dist/scripts/src/parsers/common/GenericToken.js +0 -2
- package/dist/scripts/src/parsers/common/InputStream.js +0 -59
- package/dist/scripts/src/parsers/common/utils.js +0 -19
- package/dist/scripts/src/parsers/scripting/Lexer.js +0 -1097
- package/dist/scripts/src/parsers/scripting/Parser.js +0 -2638
- package/dist/scripts/src/parsers/scripting/ParserError.js +0 -47
- package/dist/scripts/src/parsers/scripting/ScriptingNodeTypes.js +0 -50
- package/dist/scripts/src/parsers/scripting/TokenTrait.js +0 -108
- package/dist/scripts/src/parsers/scripting/TokenType.js +0 -109
- package/dist/scripts/src/parsers/scripting/code-behind-collect.js +0 -101
- package/dist/scripts/src/parsers/scripting/modules.js +0 -105
- package/dist/scripts/src/parsers/scripting/tree-visitor.js +0 -601
- package/dist/scripts/src/parsers/style-parser/StyleInputStream.js +0 -39
- package/dist/scripts/src/parsers/style-parser/StyleLexer.js +0 -623
- package/dist/scripts/src/parsers/style-parser/StyleParser.js +0 -453
- package/dist/scripts/src/parsers/style-parser/errors.js +0 -37
- package/dist/scripts/src/parsers/style-parser/source-tree.js +0 -2
- package/dist/scripts/src/parsers/style-parser/tokens.js +0 -43
- package/dist/scripts/src/parsers/xmlui-parser/CharacterCodes.js +0 -136
- package/dist/scripts/src/parsers/xmlui-parser/ParserError.js +0 -60
- package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +0 -172
- package/dist/scripts/src/parsers/xmlui-parser/fileExtensions.js +0 -6
- package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
- package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -165
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +0 -627
- package/dist/scripts/src/parsers/xmlui-parser/scanner.js +0 -415
- package/dist/scripts/src/parsers/xmlui-parser/syntax-kind.js +0 -123
- package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -1131
- package/dist/scripts/src/parsers/xmlui-parser/utils.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
- package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
- package/dist/scripts/src/syntax/monaco/index.js +0 -14
- package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
- package/dist/scripts/src/syntax/textMate/index.js +0 -14
- package/dist/scripts/src/syntax/textMate/xmlui-dark.json +0 -631
- package/dist/scripts/src/syntax/textMate/xmlui-light.json +0 -565
- package/dist/scripts/src/syntax/textMate/xmlui.json +0 -564
- package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +0 -341
- package/dist/scripts/src/testing/ComponentDrivers.js +0 -1380
- package/dist/scripts/src/testing/assertions.js +0 -444
- package/dist/scripts/src/testing/component-test-helpers.js +0 -373
- package/dist/scripts/src/testing/drivers/DateInputDriver.js +0 -19
- package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +0 -10
- package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +0 -44
- package/dist/scripts/src/testing/drivers/TextBoxDriver.js +0 -20
- package/dist/scripts/src/testing/drivers/TimeInputDriver.js +0 -22
- package/dist/scripts/src/testing/drivers/TimerDriver.js +0 -64
- package/dist/scripts/src/testing/drivers/TreeDriver.js +0 -13
- package/dist/scripts/src/testing/drivers/index.js +0 -9
- package/dist/scripts/src/testing/fixtures.js +0 -519
- package/dist/scripts/src/testing/index.js +0 -69
- package/dist/scripts/src/testing/infrastructure/TestBed.js +0 -17
- package/dist/scripts/src/testing/infrastructure/main.js +0 -9
- package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +0 -266
- package/dist/scripts/src/testing/themed-app-test-helpers.js +0 -133
|
@@ -1,758 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const component_test_helpers_1 = require("../../testing/component-test-helpers");
|
|
13
|
-
const fixtures_1 = require("../../testing/fixtures");
|
|
14
|
-
// =============================================================================
|
|
15
|
-
// BASIC FUNCTIONALITY TESTS
|
|
16
|
-
// =============================================================================
|
|
17
|
-
fixtures_1.test.describe("Basic Functionality", () => {
|
|
18
|
-
(0, fixtures_1.test)("component renders", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
19
|
-
yield initTestBed(`<TextBox testId="test" />`);
|
|
20
|
-
const driver = yield createTextBoxDriver("test");
|
|
21
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
22
|
-
}));
|
|
23
|
-
(0, fixtures_1.test)("component renders with label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
24
|
-
yield initTestBed(`<TextBox testId="test" label="Username" />`);
|
|
25
|
-
const driver = yield createTextBoxDriver("test");
|
|
26
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
27
|
-
yield (0, fixtures_1.expect)(driver.label).toBeVisible();
|
|
28
|
-
}));
|
|
29
|
-
(0, fixtures_1.test)("initialValue sets field value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
30
|
-
yield initTestBed(`<TextBox testId="test" initialValue="test value" />`);
|
|
31
|
-
const driver = yield createTextBoxDriver("test");
|
|
32
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("test value");
|
|
33
|
-
}));
|
|
34
|
-
(0, fixtures_1.test)("initialValue accepts empty as empty string", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
35
|
-
yield initTestBed(`<TextBox testId="test" initialValue="" />`);
|
|
36
|
-
const driver = yield createTextBoxDriver("test");
|
|
37
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("");
|
|
38
|
-
}));
|
|
39
|
-
(0, fixtures_1.test)("initialValue accepts different data types", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
40
|
-
// Test string
|
|
41
|
-
yield initTestBed(`<TextBox testId="test" initialValue="hello" />`);
|
|
42
|
-
const driver1 = yield createTextBoxDriver("test");
|
|
43
|
-
yield (0, fixtures_1.expect)(driver1.input).toHaveValue("hello");
|
|
44
|
-
// Test number
|
|
45
|
-
yield initTestBed(`<TextBox testId="test" initialValue="{123}" />`);
|
|
46
|
-
const driver2 = yield createTextBoxDriver("test");
|
|
47
|
-
yield (0, fixtures_1.expect)(driver2.input).toHaveValue("123");
|
|
48
|
-
// Test boolean
|
|
49
|
-
yield initTestBed(`<TextBox testId="test" initialValue="{true}" />`);
|
|
50
|
-
const driver3 = yield createTextBoxDriver("test");
|
|
51
|
-
yield (0, fixtures_1.expect)(driver3.input).toHaveValue("true");
|
|
52
|
-
}));
|
|
53
|
-
(0, fixtures_1.test)("initialValue handles null", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
54
|
-
yield initTestBed(`<TextBox testId="test" initialValue="{null}" />`);
|
|
55
|
-
const driver = yield createTextBoxDriver("test");
|
|
56
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("");
|
|
57
|
-
}));
|
|
58
|
-
(0, fixtures_1.test)("initialValue handles undefined", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
59
|
-
yield initTestBed(`<TextBox testId="test" initialValue="{undefined}" />`);
|
|
60
|
-
const driver = yield createTextBoxDriver("test");
|
|
61
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("");
|
|
62
|
-
}));
|
|
63
|
-
(0, fixtures_1.test)("component accepts user input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
64
|
-
yield initTestBed(`<TextBox testId="test" />`);
|
|
65
|
-
const driver = yield createTextBoxDriver("test");
|
|
66
|
-
yield driver.input.fill("user input");
|
|
67
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("user input");
|
|
68
|
-
}));
|
|
69
|
-
(0, fixtures_1.test)("component clears input correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
70
|
-
yield initTestBed(`<TextBox testId="test" initialValue="initial text" />`);
|
|
71
|
-
const driver = yield createTextBoxDriver("test");
|
|
72
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("initial text");
|
|
73
|
-
yield driver.input.clear();
|
|
74
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("");
|
|
75
|
-
}));
|
|
76
|
-
(0, fixtures_1.test)("component required prop adds required attribute", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
77
|
-
yield initTestBed(`<TextBox testId="test" required="true" />`);
|
|
78
|
-
const driver = yield createTextBoxDriver("test");
|
|
79
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveAttribute("required");
|
|
80
|
-
}));
|
|
81
|
-
(0, fixtures_1.test)("enabled=false disables control", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
82
|
-
yield initTestBed(`<TextBox testId="test" enabled="false" />`);
|
|
83
|
-
const driver = yield createTextBoxDriver("test");
|
|
84
|
-
yield (0, fixtures_1.expect)(driver.input).toBeDisabled();
|
|
85
|
-
}));
|
|
86
|
-
(0, fixtures_1.test)("enabled=false prevents user input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
87
|
-
yield initTestBed(`<TextBox testId="test" enabled="false" />`);
|
|
88
|
-
const driver = yield createTextBoxDriver("test");
|
|
89
|
-
yield (0, fixtures_1.expect)(driver.input).not.toBeEditable();
|
|
90
|
-
}));
|
|
91
|
-
(0, fixtures_1.test)("readOnly prevents editing but allows focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
92
|
-
yield initTestBed(`<TextBox testId="test" readOnly="true" initialValue="read only text" />`);
|
|
93
|
-
const driver = yield createTextBoxDriver("test");
|
|
94
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveAttribute("readonly");
|
|
95
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("read only text");
|
|
96
|
-
yield (0, fixtures_1.expect)(driver.input).not.toBeEditable();
|
|
97
|
-
yield driver.input.focus();
|
|
98
|
-
yield (0, fixtures_1.expect)(driver.input).toBeFocused();
|
|
99
|
-
}));
|
|
100
|
-
(0, fixtures_1.test)("autoFocus focuses input on mount", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
101
|
-
yield initTestBed(`<TextBox testId="test" autoFocus="true" />`);
|
|
102
|
-
const driver = yield createTextBoxDriver("test");
|
|
103
|
-
yield (0, fixtures_1.expect)(driver.input).toBeFocused();
|
|
104
|
-
}));
|
|
105
|
-
(0, fixtures_1.test)("autoFocus focuses input on mount with label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
106
|
-
yield initTestBed(`<TextBox testId="test" autoFocus="true" label="Auto-focused input" />`);
|
|
107
|
-
const driver = yield createTextBoxDriver("test");
|
|
108
|
-
yield (0, fixtures_1.expect)(driver.input).toBeFocused();
|
|
109
|
-
}));
|
|
110
|
-
(0, fixtures_1.test)("placeholder shows when input is empty", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
111
|
-
yield initTestBed(`<TextBox testId="test" placeholder="Enter text here..." />`);
|
|
112
|
-
const driver = yield createTextBoxDriver("test");
|
|
113
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveAttribute("placeholder", "Enter text here...");
|
|
114
|
-
}));
|
|
115
|
-
(0, fixtures_1.test)("maxLength limits input length", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
116
|
-
yield initTestBed(`<TextBox testId="test" maxLength="5" />`);
|
|
117
|
-
const driver = yield createTextBoxDriver("test");
|
|
118
|
-
yield driver.input.fill("12345678");
|
|
119
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("12345");
|
|
120
|
-
}));
|
|
121
|
-
(0, fixtures_1.test)("can render startIcon", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
122
|
-
yield initTestBed(`<TextBox testId="test" startIcon="search" />`);
|
|
123
|
-
const driver = yield createTextBoxDriver("test");
|
|
124
|
-
yield (0, fixtures_1.expect)(driver.startAdornment).toBeVisible();
|
|
125
|
-
}));
|
|
126
|
-
(0, fixtures_1.test)("can render endIcon", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
127
|
-
yield initTestBed(`<TextBox testId="test" endIcon="search" />`);
|
|
128
|
-
const driver = yield createTextBoxDriver("test");
|
|
129
|
-
yield (0, fixtures_1.expect)(driver.endAdornment).toBeVisible();
|
|
130
|
-
}));
|
|
131
|
-
});
|
|
132
|
-
// =============================================================================
|
|
133
|
-
// ACCESSIBILITY TESTS
|
|
134
|
-
// =============================================================================
|
|
135
|
-
fixtures_1.test.describe("Accessibility", () => {
|
|
136
|
-
(0, fixtures_1.test)("label is properly associated with input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
137
|
-
yield initTestBed(`<TextBox testId="test" label="Username" />`);
|
|
138
|
-
const driver = yield createTextBoxDriver("test");
|
|
139
|
-
yield (0, fixtures_1.expect)(driver.label).toBeVisible();
|
|
140
|
-
}));
|
|
141
|
-
(0, fixtures_1.test)("component supports keyboard navigation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
142
|
-
yield initTestBed(`<TextBox testId="test" label="Input" />`);
|
|
143
|
-
const driver = yield createTextBoxDriver("test");
|
|
144
|
-
yield driver.input.focus();
|
|
145
|
-
yield (0, fixtures_1.expect)(driver.input).toBeFocused();
|
|
146
|
-
}));
|
|
147
|
-
(0, fixtures_1.test)("component supports keyboard navigation from other elements", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTextBoxDriver, }) {
|
|
148
|
-
yield initTestBed(`
|
|
149
|
-
<Fragment>
|
|
150
|
-
<TextBox testId="first-input" label="First input" />
|
|
151
|
-
<TextBox testId="second-input" label="Second input" />
|
|
152
|
-
</Fragment>
|
|
153
|
-
`);
|
|
154
|
-
const firstInput = yield createTextBoxDriver("first-input");
|
|
155
|
-
const secondInput = yield createTextBoxDriver("second-input");
|
|
156
|
-
yield firstInput.input.focus();
|
|
157
|
-
yield (0, fixtures_1.expect)(firstInput.input).toBeFocused();
|
|
158
|
-
yield page.keyboard.press("Tab", { delay: 100 });
|
|
159
|
-
yield (0, fixtures_1.expect)(secondInput.input).toBeFocused();
|
|
160
|
-
}));
|
|
161
|
-
(0, fixtures_1.test)("required has proper ARIA attributes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
162
|
-
yield initTestBed(`<TextBox testId="test" required="true" label="Required input" />`);
|
|
163
|
-
const driver = yield createTextBoxDriver("test");
|
|
164
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveAttribute("required");
|
|
165
|
-
yield (0, fixtures_1.expect)(driver.label).toContainText("*");
|
|
166
|
-
}));
|
|
167
|
-
(0, fixtures_1.test)("disabled component has proper attribute", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
168
|
-
yield initTestBed(`<TextBox testId="test" enabled="false" />`);
|
|
169
|
-
const driver = yield createTextBoxDriver("test");
|
|
170
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveAttribute("disabled");
|
|
171
|
-
}));
|
|
172
|
-
(0, fixtures_1.test)("readOnly has proper ARIA attributes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
173
|
-
yield initTestBed(`<TextBox testId="test" readOnly="true" label="Read-only input" />`);
|
|
174
|
-
const driver = yield createTextBoxDriver("test");
|
|
175
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveAttribute("readonly");
|
|
176
|
-
yield (0, fixtures_1.expect)(driver.label).toContainText("Read-only input");
|
|
177
|
-
yield (0, fixtures_1.expect)(driver.input).not.toBeEditable();
|
|
178
|
-
}));
|
|
179
|
-
});
|
|
180
|
-
// =============================================================================
|
|
181
|
-
// LABEL POSITIONING TESTS
|
|
182
|
-
// =============================================================================
|
|
183
|
-
fixtures_1.test.describe("Label", () => {
|
|
184
|
-
(0, fixtures_1.test)("labelPosition=start positions label before input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
185
|
-
yield initTestBed(`<TextBox testId="test" direction="ltr" label="test" labelPosition="start" />`);
|
|
186
|
-
const driver = yield createTextBoxDriver("test");
|
|
187
|
-
const { left: textboxLeft } = yield (0, component_test_helpers_1.getBounds)(driver.input);
|
|
188
|
-
const { right: labelRight } = yield (0, component_test_helpers_1.getBounds)(driver.label);
|
|
189
|
-
(0, fixtures_1.expect)(labelRight).toBeLessThan(textboxLeft);
|
|
190
|
-
}));
|
|
191
|
-
(0, fixtures_1.test)("labelPosition=end positions label after input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
192
|
-
yield initTestBed(`<TextBox testId="test" direction="ltr" label="test" labelPosition="end" />`);
|
|
193
|
-
const driver = yield createTextBoxDriver("test");
|
|
194
|
-
const { right: textboxRight } = yield (0, component_test_helpers_1.getBounds)(driver.input);
|
|
195
|
-
const { left: labelLeft } = yield (0, component_test_helpers_1.getBounds)(driver.label);
|
|
196
|
-
(0, fixtures_1.expect)(labelLeft).toBeGreaterThan(textboxRight);
|
|
197
|
-
}));
|
|
198
|
-
(0, fixtures_1.test)("labelPosition=top positions label above input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
199
|
-
yield initTestBed(`<TextBox testId="test" label="test" labelPosition="top" />`);
|
|
200
|
-
const driver = yield createTextBoxDriver("test");
|
|
201
|
-
const { top: textboxTop } = yield (0, component_test_helpers_1.getBounds)(driver.input);
|
|
202
|
-
const { bottom: labelBottom } = yield (0, component_test_helpers_1.getBounds)(driver.label);
|
|
203
|
-
(0, fixtures_1.expect)(labelBottom).toBeLessThan(textboxTop);
|
|
204
|
-
}));
|
|
205
|
-
(0, fixtures_1.test)("labelPosition=bottom positions label below input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
206
|
-
yield initTestBed(`<TextBox testId="test" label="test" labelPosition="bottom" />`);
|
|
207
|
-
const driver = yield createTextBoxDriver("test");
|
|
208
|
-
const { bottom: textboxBottom } = yield (0, component_test_helpers_1.getBounds)(driver.input);
|
|
209
|
-
const { top: labelTop } = yield (0, component_test_helpers_1.getBounds)(driver.label);
|
|
210
|
-
(0, fixtures_1.expect)(labelTop).toBeGreaterThan(textboxBottom);
|
|
211
|
-
}));
|
|
212
|
-
(0, fixtures_1.test)("labelBreak enables label line breaks", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
213
|
-
const labelText = "Very long label text that should break";
|
|
214
|
-
const commonProps = `label="${labelText}" labelWidth="100px"`;
|
|
215
|
-
yield initTestBed(`<Fragment>
|
|
216
|
-
<TextBox ${commonProps} testId="break" labelBreak="{true}" />
|
|
217
|
-
<TextBox ${commonProps} testId="oneLine" labelBreak="{false}" />
|
|
218
|
-
</Fragment>`);
|
|
219
|
-
const driverBreak = yield createTextBoxDriver("break");
|
|
220
|
-
const driverOneLine = yield createTextBoxDriver("oneLine");
|
|
221
|
-
const { height: heightBreak } = yield (0, component_test_helpers_1.getBounds)(driverBreak.label);
|
|
222
|
-
const { height: heightOneLine } = yield (0, component_test_helpers_1.getBounds)(driverOneLine.label);
|
|
223
|
-
(0, fixtures_1.expect)(heightBreak).toBeGreaterThan(heightOneLine);
|
|
224
|
-
}));
|
|
225
|
-
(0, fixtures_1.test)("component handles invalid labelPosition gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
226
|
-
yield initTestBed(`<TextBox testId="test" labelPosition="invalid" label="test" />`);
|
|
227
|
-
const driver = yield createTextBoxDriver("test");
|
|
228
|
-
yield (0, fixtures_1.expect)(driver.label).toBeVisible();
|
|
229
|
-
yield (0, fixtures_1.expect)(driver.input).toBeVisible();
|
|
230
|
-
}));
|
|
231
|
-
});
|
|
232
|
-
// =============================================================================
|
|
233
|
-
// EVENT HANDLING TESTS
|
|
234
|
-
// =============================================================================
|
|
235
|
-
fixtures_1.test.describe("Event Handling", () => {
|
|
236
|
-
(0, fixtures_1.test)("didChange event fires on input change", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
237
|
-
const { testStateDriver } = yield initTestBed(`
|
|
238
|
-
<TextBox testId="test" onDidChange="testState = 'changed'" />
|
|
239
|
-
`);
|
|
240
|
-
const driver = yield createTextBoxDriver("test");
|
|
241
|
-
yield driver.input.fill("test");
|
|
242
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("changed");
|
|
243
|
-
}));
|
|
244
|
-
(0, fixtures_1.test)("didChange event passes new value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
245
|
-
const { testStateDriver } = yield initTestBed(`
|
|
246
|
-
<TextBox testId="test" onDidChange="arg => testState = arg" />
|
|
247
|
-
`);
|
|
248
|
-
const driver = yield createTextBoxDriver("test");
|
|
249
|
-
yield driver.input.fill("test value");
|
|
250
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("test value");
|
|
251
|
-
}));
|
|
252
|
-
(0, fixtures_1.test)("gotFocus event fires on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
253
|
-
const { testStateDriver } = yield initTestBed(`
|
|
254
|
-
<TextBox testId="test" onGotFocus="testState = 'focused'" />
|
|
255
|
-
`);
|
|
256
|
-
const driver = yield createTextBoxDriver("test");
|
|
257
|
-
yield driver.input.focus();
|
|
258
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("focused");
|
|
259
|
-
}));
|
|
260
|
-
(0, fixtures_1.test)("gotFocus event fires on label click", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
261
|
-
const { testStateDriver } = yield initTestBed(`
|
|
262
|
-
<TextBox label="Username" onGotFocus="testState = 'focused'" />
|
|
263
|
-
`);
|
|
264
|
-
yield page.getByText("Username").click();
|
|
265
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("focused");
|
|
266
|
-
}));
|
|
267
|
-
(0, fixtures_1.test)("component lostFocus event fires on blur", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
268
|
-
const { testStateDriver } = yield initTestBed(`
|
|
269
|
-
<TextBox testId="test" onLostFocus="testState = 'blurred'" />
|
|
270
|
-
`);
|
|
271
|
-
const driver = yield createTextBoxDriver("test");
|
|
272
|
-
yield driver.input.focus();
|
|
273
|
-
yield driver.input.blur();
|
|
274
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("blurred");
|
|
275
|
-
}));
|
|
276
|
-
(0, fixtures_1.test)("events do not fire when component is disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
277
|
-
const { testStateDriver } = yield initTestBed(`
|
|
278
|
-
<TextBox testId="test" enabled="false" didChange="testState = 'changed'" gotFocus="testState = 'focused'" />
|
|
279
|
-
`);
|
|
280
|
-
const driver = yield createTextBoxDriver("test");
|
|
281
|
-
yield driver.input.focus();
|
|
282
|
-
yield driver.input.fill("test", { force: true });
|
|
283
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual(null);
|
|
284
|
-
}));
|
|
285
|
-
});
|
|
286
|
-
// =============================================================================
|
|
287
|
-
// API TESTS
|
|
288
|
-
// =============================================================================
|
|
289
|
-
fixtures_1.test.describe("Api", () => {
|
|
290
|
-
(0, fixtures_1.test)("component value API returns current state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
291
|
-
yield initTestBed(`
|
|
292
|
-
<Fragment>
|
|
293
|
-
<TextBox id="myTextBox" initialValue="initial" />
|
|
294
|
-
<Text testId="value">{myTextBox.value}</Text>
|
|
295
|
-
</Fragment>
|
|
296
|
-
`);
|
|
297
|
-
yield (0, fixtures_1.expect)(page.getByTestId("value")).toHaveText("initial");
|
|
298
|
-
}));
|
|
299
|
-
(0, fixtures_1.test)("component value API returns state after change", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTextBoxDriver }) {
|
|
300
|
-
yield initTestBed(`
|
|
301
|
-
<Fragment>
|
|
302
|
-
<TextBox id="myTextBox" testId="myTextBox" />
|
|
303
|
-
<Text testId="value">{myTextBox.value}</Text>
|
|
304
|
-
</Fragment>
|
|
305
|
-
`);
|
|
306
|
-
const driver = yield createTextBoxDriver("myTextBox");
|
|
307
|
-
yield (0, fixtures_1.expect)(page.getByTestId("value")).toHaveText("");
|
|
308
|
-
yield driver.input.fill("new value");
|
|
309
|
-
yield (0, fixtures_1.expect)(page.getByTestId("value")).toHaveText("new value");
|
|
310
|
-
}));
|
|
311
|
-
(0, fixtures_1.test)("component setValue API updates state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTextBoxDriver }) {
|
|
312
|
-
yield initTestBed(`
|
|
313
|
-
<Fragment>
|
|
314
|
-
<TextBox id="myTextBox" testId="myTextBox" />
|
|
315
|
-
<Button testId="setBtn" onClick="myTextBox.setValue('api value')" />
|
|
316
|
-
</Fragment>
|
|
317
|
-
`);
|
|
318
|
-
const driver = yield createTextBoxDriver("myTextBox");
|
|
319
|
-
yield page.getByTestId("setBtn").click();
|
|
320
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("api value");
|
|
321
|
-
}));
|
|
322
|
-
(0, fixtures_1.test)("component setValue API triggers events", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
323
|
-
const { testStateDriver } = yield initTestBed(`
|
|
324
|
-
<Fragment>
|
|
325
|
-
<TextBox id="myTextBox" onDidChange="testState = 'api-changed'" />
|
|
326
|
-
<Button testId="setBtn" onClick="myTextBox.setValue('test')">Set Value</Button>
|
|
327
|
-
</Fragment>
|
|
328
|
-
`);
|
|
329
|
-
yield page.getByTestId("setBtn").click();
|
|
330
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("api-changed");
|
|
331
|
-
}));
|
|
332
|
-
(0, fixtures_1.test)("focus API focuses the input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTextBoxDriver }) {
|
|
333
|
-
yield initTestBed(`
|
|
334
|
-
<Fragment>
|
|
335
|
-
<TextBox id="myTextBox" />
|
|
336
|
-
<Button testId="focusBtn" onClick="myTextBox.focus()">Focus</Button>
|
|
337
|
-
</Fragment>
|
|
338
|
-
`);
|
|
339
|
-
const driver = yield createTextBoxDriver("myTextBox");
|
|
340
|
-
yield (0, fixtures_1.expect)(driver.input).not.toBeFocused();
|
|
341
|
-
yield page.getByTestId("focusBtn").click();
|
|
342
|
-
yield (0, fixtures_1.expect)(driver.input).toBeFocused();
|
|
343
|
-
}));
|
|
344
|
-
(0, fixtures_1.test)("focus API does nothing when component is disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTextBoxDriver }) {
|
|
345
|
-
yield initTestBed(`
|
|
346
|
-
<Fragment>
|
|
347
|
-
<TextBox id="myTextBox" enabled="false" />
|
|
348
|
-
<Button testId="focusBtn" onClick="myTextBox.focus()">Focus</Button>
|
|
349
|
-
</Fragment>
|
|
350
|
-
`);
|
|
351
|
-
const driver = yield createTextBoxDriver("myTextBox");
|
|
352
|
-
yield page.getByTestId("focusBtn").click();
|
|
353
|
-
yield (0, fixtures_1.expect)(driver.input).not.toBeFocused();
|
|
354
|
-
}));
|
|
355
|
-
});
|
|
356
|
-
// =============================================================================
|
|
357
|
-
// INPUT ADORNMENTS TESTS
|
|
358
|
-
// =============================================================================
|
|
359
|
-
fixtures_1.test.describe("Input Adornments", () => {
|
|
360
|
-
(0, fixtures_1.test)("startText displays at beginning of input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
361
|
-
yield initTestBed(`<TextBox testId="input" startText="$" />`);
|
|
362
|
-
const driver = yield createTextBoxDriver("input");
|
|
363
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(driver.input);
|
|
364
|
-
const { left: textLeft, right: textRight } = yield (0, component_test_helpers_1.getBounds)(driver.startAdornment);
|
|
365
|
-
yield (0, fixtures_1.expect)(driver.startAdornment).toContainText("$");
|
|
366
|
-
(0, fixtures_1.expect)(textRight - compLeft).toBeLessThanOrEqual(compRight - textLeft);
|
|
367
|
-
}));
|
|
368
|
-
(0, fixtures_1.test)("endText displays at end of input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
369
|
-
yield initTestBed(`<TextBox testId="input" endText="USD" />`);
|
|
370
|
-
const driver = yield createTextBoxDriver("input");
|
|
371
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(driver.input);
|
|
372
|
-
const { left: textLeft, right: textRight } = yield (0, component_test_helpers_1.getBounds)(driver.endAdornment);
|
|
373
|
-
yield (0, fixtures_1.expect)(driver.endAdornment).toContainText("USD");
|
|
374
|
-
(0, fixtures_1.expect)(textRight - compLeft).toBeGreaterThanOrEqual(compRight - textLeft);
|
|
375
|
-
}));
|
|
376
|
-
(0, fixtures_1.test)("startIcon displays at beginning of input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
377
|
-
yield initTestBed(`<TextBox testId="input" startIcon="search" />`);
|
|
378
|
-
const driver = yield createTextBoxDriver("input");
|
|
379
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(driver.input);
|
|
380
|
-
const { left: iconLeft, right: iconRight } = yield (0, component_test_helpers_1.getBounds)(driver.startAdornment);
|
|
381
|
-
(0, fixtures_1.expect)(iconRight - compLeft).toBeLessThanOrEqual(compRight - iconLeft);
|
|
382
|
-
}));
|
|
383
|
-
(0, fixtures_1.test)("endIcon displays at end of input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
384
|
-
yield initTestBed(`<TextBox testId="input" endIcon="search" />`);
|
|
385
|
-
const driver = yield createTextBoxDriver("input");
|
|
386
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(driver.input);
|
|
387
|
-
const { left: iconLeft, right: iconRight } = yield (0, component_test_helpers_1.getBounds)(driver.endAdornment);
|
|
388
|
-
(0, fixtures_1.expect)(iconRight - compLeft).toBeGreaterThanOrEqual(compRight - iconLeft);
|
|
389
|
-
}));
|
|
390
|
-
(0, fixtures_1.test)("multiple adornments can be combined", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
391
|
-
yield initTestBed(`
|
|
392
|
-
<TextBox testId="input" startText="$" endText="USD" startIcon="search" endIcon="search" />`);
|
|
393
|
-
const driver = yield createTextBoxDriver("input");
|
|
394
|
-
yield (0, fixtures_1.expect)(driver.startAdornment).toContainText("$");
|
|
395
|
-
yield (0, fixtures_1.expect)(driver.endAdornment).toContainText("USD");
|
|
396
|
-
yield (0, fixtures_1.expect)(driver.startAdornment).toBeVisible();
|
|
397
|
-
yield (0, fixtures_1.expect)(driver.endAdornment).toBeVisible();
|
|
398
|
-
}));
|
|
399
|
-
(0, fixtures_1.test)("all adornments appear in the right place", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
400
|
-
yield initTestBed(`
|
|
401
|
-
<TextBox testId="input" startText="$" endText="USD" startIcon="search" endIcon="search" direction="ltr" />
|
|
402
|
-
`);
|
|
403
|
-
const driver = yield createTextBoxDriver("input");
|
|
404
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(driver.input);
|
|
405
|
-
const { left: startTextLeft, right: startTextRight } = yield (0, component_test_helpers_1.getBounds)(driver.startAdornment);
|
|
406
|
-
const { left: endTextLeft, right: endTextRight } = yield (0, component_test_helpers_1.getBounds)(driver.endAdornment);
|
|
407
|
-
const { left: startIconLeft, right: startIconRight } = yield (0, component_test_helpers_1.getBounds)(driver.startAdornment);
|
|
408
|
-
const { left: endIconLeft, right: endIconRight } = yield (0, component_test_helpers_1.getBounds)(driver.endAdornment);
|
|
409
|
-
// Check order of adornments
|
|
410
|
-
(0, fixtures_1.expect)(startTextRight - compLeft).toBeLessThanOrEqual(compRight - startTextLeft);
|
|
411
|
-
(0, fixtures_1.expect)(startIconRight - compLeft).toBeLessThanOrEqual(compRight - startIconLeft);
|
|
412
|
-
(0, fixtures_1.expect)(endTextRight - compLeft).toBeGreaterThanOrEqual(compRight - endTextLeft);
|
|
413
|
-
(0, fixtures_1.expect)(endIconRight - compLeft).toBeGreaterThanOrEqual(compRight - endIconLeft);
|
|
414
|
-
}));
|
|
415
|
-
});
|
|
416
|
-
// =============================================================================
|
|
417
|
-
// PASSWORD INPUT TESTS
|
|
418
|
-
// =============================================================================
|
|
419
|
-
fixtures_1.test.describe("Password Input", () => {
|
|
420
|
-
(0, fixtures_1.test)("component renders", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
421
|
-
yield initTestBed(`<PasswordInput testId="input" />`);
|
|
422
|
-
const driver = yield createTextBoxDriver("input");
|
|
423
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
424
|
-
}));
|
|
425
|
-
(0, fixtures_1.test)("component has password type", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
426
|
-
yield initTestBed(`<PasswordInput testId="input" />`);
|
|
427
|
-
const driver = yield createTextBoxDriver("input");
|
|
428
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveAttribute("type", "password");
|
|
429
|
-
}));
|
|
430
|
-
(0, fixtures_1.test)("component has initial value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
431
|
-
yield initTestBed(`<PasswordInput testId="input" initialValue="secret" />`);
|
|
432
|
-
const driver = yield createTextBoxDriver("input");
|
|
433
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("secret");
|
|
434
|
-
}));
|
|
435
|
-
(0, fixtures_1.test)("showPasswordToggle displays visibility toggle", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
436
|
-
yield initTestBed(`<PasswordInput testId="input" showPasswordToggle="true" />`);
|
|
437
|
-
const driver = yield createTextBoxDriver("input");
|
|
438
|
-
yield (0, fixtures_1.expect)(driver.input).toBeVisible();
|
|
439
|
-
}));
|
|
440
|
-
(0, fixtures_1.test)("password toggle switches between visible and hidden", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
441
|
-
yield initTestBed(`<PasswordInput testId="input" showPasswordToggle="true" />`);
|
|
442
|
-
const driver = yield createTextBoxDriver("input");
|
|
443
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveAttribute("type", "password");
|
|
444
|
-
yield driver.button.click();
|
|
445
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveAttribute("type", "text");
|
|
446
|
-
}));
|
|
447
|
-
(0, fixtures_1.test)("custom password icons work correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
448
|
-
yield initTestBed(`
|
|
449
|
-
<PasswordInput
|
|
450
|
-
testId="input"
|
|
451
|
-
showPasswordToggle="true"
|
|
452
|
-
passwordVisibleIcon="test"
|
|
453
|
-
passwordHiddenIcon="test"
|
|
454
|
-
/>`, {
|
|
455
|
-
resources: {
|
|
456
|
-
"icon.test": "resources/bell.svg",
|
|
457
|
-
},
|
|
458
|
-
});
|
|
459
|
-
const driver = yield createTextBoxDriver("input");
|
|
460
|
-
const icon = driver.button;
|
|
461
|
-
yield (0, fixtures_1.expect)(icon).toBeVisible();
|
|
462
|
-
yield icon.click();
|
|
463
|
-
yield (0, fixtures_1.expect)(icon).toBeVisible();
|
|
464
|
-
}));
|
|
465
|
-
});
|
|
466
|
-
// =============================================================================
|
|
467
|
-
// VISUAL STATE TESTS
|
|
468
|
-
// =============================================================================
|
|
469
|
-
fixtures_1.test.describe("Theme Vars", () => {
|
|
470
|
-
(0, fixtures_1.test)("backgroundColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
471
|
-
yield initTestBed(`<TextBox testId="input" />`, {
|
|
472
|
-
testThemeVars: {
|
|
473
|
-
"backgroundColor-TextBox": "rgb(255, 240, 240)",
|
|
474
|
-
},
|
|
475
|
-
});
|
|
476
|
-
const driver = yield createTextBoxDriver("input");
|
|
477
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("background-color", "rgb(255, 240, 240)");
|
|
478
|
-
}));
|
|
479
|
-
(0, fixtures_1.test)("borderColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
480
|
-
yield initTestBed(`<TextBox testId="input" />`, {
|
|
481
|
-
testThemeVars: {
|
|
482
|
-
"borderColor-TextBox": "rgb(255, 0, 0)",
|
|
483
|
-
},
|
|
484
|
-
});
|
|
485
|
-
const driver = yield createTextBoxDriver("input");
|
|
486
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("border-color", "rgb(255, 0, 0)");
|
|
487
|
-
}));
|
|
488
|
-
(0, fixtures_1.test)("textColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
489
|
-
yield initTestBed(`<TextBox testId="input" />`, {
|
|
490
|
-
testThemeVars: {
|
|
491
|
-
"textColor-TextBox": "rgb(0, 0, 255)",
|
|
492
|
-
},
|
|
493
|
-
});
|
|
494
|
-
const driver = yield createTextBoxDriver("input");
|
|
495
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("color", "rgb(0, 0, 255)");
|
|
496
|
-
}));
|
|
497
|
-
(0, fixtures_1.test)("focus borderColor applies on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
498
|
-
yield initTestBed(`<TextBox testId="input" />`, {
|
|
499
|
-
testThemeVars: {
|
|
500
|
-
"borderColor-TextBox--focus": "rgb(0, 255, 0)",
|
|
501
|
-
},
|
|
502
|
-
});
|
|
503
|
-
const driver = yield createTextBoxDriver("input");
|
|
504
|
-
yield driver.input.focus();
|
|
505
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("border-color", "rgb(0, 255, 0)");
|
|
506
|
-
}));
|
|
507
|
-
(0, fixtures_1.test)("disabled backgroundColor applies when disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
508
|
-
yield initTestBed(`<TextBox testId="input" enabled="false" />`, {
|
|
509
|
-
testThemeVars: {
|
|
510
|
-
"backgroundColor-TextBox--disabled": "rgb(240, 240, 240)",
|
|
511
|
-
},
|
|
512
|
-
});
|
|
513
|
-
const driver = yield createTextBoxDriver("input");
|
|
514
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("background-color", "rgb(240, 240, 240)");
|
|
515
|
-
}));
|
|
516
|
-
(0, fixtures_1.test)("borderRadius applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
517
|
-
yield initTestBed(`<TextBox testId="input" />`, {
|
|
518
|
-
testThemeVars: {
|
|
519
|
-
"borderRadius-TextBox": "8px",
|
|
520
|
-
},
|
|
521
|
-
});
|
|
522
|
-
const driver = yield createTextBoxDriver("input");
|
|
523
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("border-radius", "8px");
|
|
524
|
-
}));
|
|
525
|
-
(0, fixtures_1.test)("padding applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
526
|
-
yield initTestBed(`<TextBox testId="input" />`, {
|
|
527
|
-
testThemeVars: {
|
|
528
|
-
"padding-TextBox": "12px",
|
|
529
|
-
},
|
|
530
|
-
});
|
|
531
|
-
const driver = yield createTextBoxDriver("input");
|
|
532
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("padding", "12px");
|
|
533
|
-
}));
|
|
534
|
-
});
|
|
535
|
-
// =============================================================================
|
|
536
|
-
// VALIDATION STATUS TESTS
|
|
537
|
-
// =============================================================================
|
|
538
|
-
fixtures_1.test.describe("Validation", () => {
|
|
539
|
-
(0, fixtures_1.test)("handles invalid validationStatus gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
540
|
-
yield initTestBed(`<TextBox testId="input" validationStatus="invalid" />`, {
|
|
541
|
-
testThemeVars: {
|
|
542
|
-
"borderColor-TextBox--default": "rgb(0, 0, 0)",
|
|
543
|
-
"borderColor-TextBox--error": "rgb(255, 0, 0)",
|
|
544
|
-
"borderColor-TextBox--warning": "rgb(255, 165, 0)",
|
|
545
|
-
"borderColor-TextBox--success": "rgb(0, 255, 0)",
|
|
546
|
-
},
|
|
547
|
-
});
|
|
548
|
-
const driver = yield createTextBoxDriver("input");
|
|
549
|
-
yield (0, fixtures_1.expect)(driver.component).not.toHaveCSS("border-color", "rgb(255, 0, 0)");
|
|
550
|
-
yield (0, fixtures_1.expect)(driver.component).not.toHaveCSS("border-color", "rgb(255, 165, 0)");
|
|
551
|
-
yield (0, fixtures_1.expect)(driver.component).not.toHaveCSS("border-color", "rgb(0, 255, 0)");
|
|
552
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveCSS("border-color", "rgb(0, 0, 0)");
|
|
553
|
-
}));
|
|
554
|
-
[
|
|
555
|
-
{ value: "--default", prop: "" },
|
|
556
|
-
{ value: "--warning", prop: 'validationStatus="warning"' },
|
|
557
|
-
{ value: "--error", prop: 'validationStatus="error"' },
|
|
558
|
-
{ value: "--success", prop: 'validationStatus="valid"' },
|
|
559
|
-
].forEach((variant) => {
|
|
560
|
-
(0, fixtures_1.test)(`applies correct borderRadius ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
561
|
-
yield initTestBed(`<TextBox testId="test" ${variant.prop} />`, {
|
|
562
|
-
testThemeVars: { [`borderRadius-TextBox${variant.value}`]: "12px" },
|
|
563
|
-
});
|
|
564
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-radius", "12px");
|
|
565
|
-
}));
|
|
566
|
-
(0, fixtures_1.test)(`applies correct borderColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
567
|
-
yield initTestBed(`<TextBox testId="test" ${variant.prop} />`, {
|
|
568
|
-
testThemeVars: { [`borderColor-TextBox${variant.value}`]: "rgb(255, 0, 0)" },
|
|
569
|
-
});
|
|
570
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-color", "rgb(255, 0, 0)");
|
|
571
|
-
}));
|
|
572
|
-
(0, fixtures_1.test)(`applies correct borderWidth ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
573
|
-
yield initTestBed(`<TextBox testId="test" ${variant.prop} />`, {
|
|
574
|
-
testThemeVars: { [`borderWidth-TextBox${variant.value}`]: "1px" },
|
|
575
|
-
});
|
|
576
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-width", "1px");
|
|
577
|
-
}));
|
|
578
|
-
(0, fixtures_1.test)(`applies correct borderStyle ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
579
|
-
yield initTestBed(`<TextBox testId="test" ${variant.prop} />`, {
|
|
580
|
-
testThemeVars: { [`borderStyle-TextBox${variant.value}`]: "dashed" },
|
|
581
|
-
});
|
|
582
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-style", "dashed");
|
|
583
|
-
}));
|
|
584
|
-
(0, fixtures_1.test)(`applies correct fontSize ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
585
|
-
yield initTestBed(`<TextBox testId="test" ${variant.prop} />`, {
|
|
586
|
-
testThemeVars: { [`fontSize-TextBox${variant.value}`]: "14px" },
|
|
587
|
-
});
|
|
588
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("font-size", "14px");
|
|
589
|
-
}));
|
|
590
|
-
(0, fixtures_1.test)(`applies correct backgroundColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
591
|
-
yield initTestBed(`<TextBox testId="test" ${variant.prop} />`, {
|
|
592
|
-
testThemeVars: { [`backgroundColor-TextBox${variant.value}`]: "rgb(240, 240, 240)" },
|
|
593
|
-
});
|
|
594
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("background-color", "rgb(240, 240, 240)");
|
|
595
|
-
}));
|
|
596
|
-
(0, fixtures_1.test)(`applies correct boxShadow ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
597
|
-
yield initTestBed(`<TextBox testId="test" ${variant.prop} />`, {
|
|
598
|
-
testThemeVars: {
|
|
599
|
-
[`boxShadow-TextBox${variant.value}`]: "0 2px 8px rgba(0, 0, 0, 0.1)",
|
|
600
|
-
},
|
|
601
|
-
});
|
|
602
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("box-shadow", "rgba(0, 0, 0, 0.1) 0px 2px 8px 0px");
|
|
603
|
-
}));
|
|
604
|
-
(0, fixtures_1.test)(`applies correct textColor ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
605
|
-
yield initTestBed(`<TextBox testId="test" ${variant.prop} />`, {
|
|
606
|
-
testThemeVars: { [`textColor-TextBox${variant.value}`]: "rgb(0, 0, 0)" },
|
|
607
|
-
});
|
|
608
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("color", "rgb(0, 0, 0)");
|
|
609
|
-
}));
|
|
610
|
-
(0, fixtures_1.test)(`applies correct borderColor on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
611
|
-
yield initTestBed(`<TextBox testId="test" ${variant.prop} />`, {
|
|
612
|
-
testThemeVars: { [`borderColor-TextBox${variant.value}--hover`]: "rgb(0, 0, 0)" },
|
|
613
|
-
});
|
|
614
|
-
yield page.getByTestId("test").hover();
|
|
615
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("border-color", "rgb(0, 0, 0)");
|
|
616
|
-
}));
|
|
617
|
-
(0, fixtures_1.test)(`applies correct backgroundColor on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
618
|
-
yield initTestBed(`<TextBox testId="test" ${variant.prop} />`, {
|
|
619
|
-
testThemeVars: { [`backgroundColor-TextBox${variant.value}--hover`]: "rgb(0, 0, 0)" },
|
|
620
|
-
});
|
|
621
|
-
yield page.getByTestId("test").hover();
|
|
622
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("background-color", "rgb(0, 0, 0)");
|
|
623
|
-
}));
|
|
624
|
-
(0, fixtures_1.test)(`applies correct boxShadow on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
625
|
-
yield initTestBed(`<TextBox testId="test" ${variant.prop} />`, {
|
|
626
|
-
testThemeVars: {
|
|
627
|
-
[`boxShadow-TextBox${variant.value}--hover`]: "0 2px 8px rgba(0, 0, 0, 0.1)",
|
|
628
|
-
},
|
|
629
|
-
});
|
|
630
|
-
yield page.getByTestId("test").hover();
|
|
631
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("box-shadow", "rgba(0, 0, 0, 0.1) 0px 2px 8px 0px");
|
|
632
|
-
}));
|
|
633
|
-
(0, fixtures_1.test)(`applies correct textColor on hover ${variant.value}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
634
|
-
yield initTestBed(`<TextBox testId="test" ${variant.prop} />`, {
|
|
635
|
-
testThemeVars: { [`textColor-TextBox${variant.value}--hover`]: "rgb(0, 0, 0)" },
|
|
636
|
-
});
|
|
637
|
-
yield page.getByTestId("test").hover();
|
|
638
|
-
yield (0, fixtures_1.expect)(page.getByTestId("test")).toHaveCSS("color", "rgb(0, 0, 0)");
|
|
639
|
-
}));
|
|
640
|
-
});
|
|
641
|
-
});
|
|
642
|
-
// =============================================================================
|
|
643
|
-
// EDGE CASE TESTS
|
|
644
|
-
// =============================================================================
|
|
645
|
-
fixtures_1.test.describe("Edge Cases", () => {
|
|
646
|
-
(0, fixtures_1.test)("handle special characters in input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
647
|
-
yield initTestBed(`<TextBox testId="input"/>`);
|
|
648
|
-
const driver = yield createTextBoxDriver("input");
|
|
649
|
-
yield driver.input.fill("Hello 日本語 @#$%!");
|
|
650
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("Hello 日本語 @#$%!");
|
|
651
|
-
}));
|
|
652
|
-
(0, fixtures_1.test)("handle Unicode characters in input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
653
|
-
yield initTestBed(`<TextBox testId="input"/>`);
|
|
654
|
-
const driver = yield createTextBoxDriver("input");
|
|
655
|
-
yield driver.input.fill("🚀 Unicode test 🎉");
|
|
656
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("🚀 Unicode test 🎉");
|
|
657
|
-
}));
|
|
658
|
-
(0, fixtures_1.test)("component handles very long input text", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
659
|
-
const longText = "This is a very long text that might cause layout or performance issues in the component".repeat(10);
|
|
660
|
-
yield initTestBed(`<TextBox testId="input"/>`);
|
|
661
|
-
const driver = yield createTextBoxDriver("input");
|
|
662
|
-
yield driver.input.fill(longText);
|
|
663
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue(longText);
|
|
664
|
-
}));
|
|
665
|
-
(0, fixtures_1.test)("component handles special characters correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
666
|
-
yield initTestBed(`<TextBox testId="input" label="Input with !@#$%^&*()"/>`, {});
|
|
667
|
-
const driver = yield createTextBoxDriver("input");
|
|
668
|
-
yield (0, fixtures_1.expect)(driver.label).toBeVisible();
|
|
669
|
-
}));
|
|
670
|
-
(0, fixtures_1.test)("component handles extremely long input values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
671
|
-
yield initTestBed(`<TextBox testId="input"/>`);
|
|
672
|
-
const driver = yield createTextBoxDriver("input");
|
|
673
|
-
const veryLongText = "A".repeat(10000);
|
|
674
|
-
yield driver.input.fill(veryLongText);
|
|
675
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue(veryLongText);
|
|
676
|
-
}));
|
|
677
|
-
});
|
|
678
|
-
// =============================================================================
|
|
679
|
-
// INTEGRATION TESTS
|
|
680
|
-
// =============================================================================
|
|
681
|
-
fixtures_1.test.describe("Integration", () => {
|
|
682
|
-
(0, fixtures_1.test)("component works correctly in Stack layout contexts", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
683
|
-
yield initTestBed(`<Stack><TextBox testId="input" /></Stack>`);
|
|
684
|
-
const driver = yield createTextBoxDriver("input");
|
|
685
|
-
const { width, height } = yield (0, component_test_helpers_1.getBounds)(driver.input);
|
|
686
|
-
yield (0, fixtures_1.expect)(driver.input).toBeVisible();
|
|
687
|
-
(0, fixtures_1.expect)(width).toBeGreaterThan(0);
|
|
688
|
-
(0, fixtures_1.expect)(height).toBeGreaterThan(0);
|
|
689
|
-
}));
|
|
690
|
-
(0, fixtures_1.test)("component works correctly in FlowLayout layout contexts", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
691
|
-
yield initTestBed(`<FlowLayout><TextBox testId="input" /></FlowLayout>`);
|
|
692
|
-
const driver = yield createTextBoxDriver("input");
|
|
693
|
-
const { width, height } = yield (0, component_test_helpers_1.getBounds)(driver.input);
|
|
694
|
-
yield (0, fixtures_1.expect)(driver.input).toBeVisible();
|
|
695
|
-
(0, fixtures_1.expect)(width).toBeGreaterThan(0);
|
|
696
|
-
(0, fixtures_1.expect)(height).toBeGreaterThan(0);
|
|
697
|
-
}));
|
|
698
|
-
(0, fixtures_1.test)("component integrates with forms correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
699
|
-
yield initTestBed(`<Form><TextBox testId="input" label="Username" /></Form>`);
|
|
700
|
-
const driver = yield createTextBoxDriver("input");
|
|
701
|
-
const { width, height } = yield (0, component_test_helpers_1.getBounds)(driver.input);
|
|
702
|
-
yield (0, fixtures_1.expect)(driver.input).toBeVisible();
|
|
703
|
-
(0, fixtures_1.expect)(width).toBeGreaterThan(0);
|
|
704
|
-
(0, fixtures_1.expect)(height).toBeGreaterThan(0);
|
|
705
|
-
}));
|
|
706
|
-
(0, fixtures_1.test)("component works with conditional rendering", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createTextBoxDriver }) {
|
|
707
|
-
yield initTestBed(`
|
|
708
|
-
<Fragment var.showInput="{true}">
|
|
709
|
-
<Fragment when="{showInput}">
|
|
710
|
-
<TextBox testId="input" label="Conditional input" />
|
|
711
|
-
</Fragment>
|
|
712
|
-
<Button testId="toggleBtn" onClick="showInput = !showInput">Toggle</Button>
|
|
713
|
-
</Fragment>
|
|
714
|
-
`);
|
|
715
|
-
const driver = yield createTextBoxDriver("input");
|
|
716
|
-
yield (0, fixtures_1.expect)(driver.label).toBeVisible();
|
|
717
|
-
yield page.getByTestId("toggleBtn").click();
|
|
718
|
-
yield (0, fixtures_1.expect)(driver.label).not.toBeVisible();
|
|
719
|
-
}));
|
|
720
|
-
});
|
|
721
|
-
(0, fixtures_1.test)("labelWidth applies custom label width", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextBoxDriver }) {
|
|
722
|
-
const expected = 200;
|
|
723
|
-
yield initTestBed(`<TextBox testId="test" label="test test" labelWidth="${expected}px" />`);
|
|
724
|
-
const driver = yield createTextBoxDriver("test");
|
|
725
|
-
const { width } = yield (0, component_test_helpers_1.getBounds)(driver.label);
|
|
726
|
-
(0, fixtures_1.expect)(width).toEqual(expected);
|
|
727
|
-
}));
|
|
728
|
-
// =============================================================================
|
|
729
|
-
// VISUAL STATE TESTS
|
|
730
|
-
// =============================================================================
|
|
731
|
-
(0, fixtures_1.test)("input has correct width", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
732
|
-
yield initTestBed(`
|
|
733
|
-
<TextBox width="200px" testId="test"/>
|
|
734
|
-
`);
|
|
735
|
-
const { width } = yield page.getByTestId("test").boundingBox();
|
|
736
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
737
|
-
}));
|
|
738
|
-
(0, fixtures_1.test)("input with label has correct width", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
739
|
-
yield initTestBed(`
|
|
740
|
-
<TextBox width="200px" label="test" testId="test"/>
|
|
741
|
-
`);
|
|
742
|
-
const { width } = yield page.getByTestId("test").boundingBox();
|
|
743
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
744
|
-
}));
|
|
745
|
-
(0, fixtures_1.test)("input has correct width in %", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
746
|
-
yield page.setViewportSize({ width: 400, height: 300 });
|
|
747
|
-
yield initTestBed(`<TextBox width="50%" testId="test"/>`, {});
|
|
748
|
-
const input = page.getByTestId("test");
|
|
749
|
-
const { width } = yield input.boundingBox();
|
|
750
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
751
|
-
}));
|
|
752
|
-
(0, fixtures_1.test)("input with label has correct width in %", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
753
|
-
yield page.setViewportSize({ width: 400, height: 300 });
|
|
754
|
-
yield initTestBed(`<TextBox width="50%" label="test" testId="test"/>`, {});
|
|
755
|
-
const input = page.getByTestId("test");
|
|
756
|
-
const { width } = yield input.boundingBox();
|
|
757
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
758
|
-
}));
|