xmlui 0.11.4 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/index.cjs +8836 -0
- package/dist/bin/index.js +8825 -0
- package/dist/lib/{apiInterceptorWorker-QiltRtq1.js → apiInterceptorWorker-dwrAyq6l.js} +126 -151
- package/dist/lib/{index-Cq0EMm3L.js → index-x4orhWfi.js} +1888 -2133
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-DCigV4Zh.js → initMock-DrUirixi.js} +19 -22
- package/dist/lib/language-server-web-worker.js +13 -5
- package/dist/lib/language-server.js +11 -3
- package/dist/lib/{metadata-utils-BiolWMg9.js → metadata-utils-2bsMr4Gd.js} +58 -26
- package/dist/lib/{server-common-DyCHOk-z.js → server-common-DI3W4cob.js} +6297 -5930
- package/dist/lib/syntax-textmate.js +8 -2472
- package/dist/lib/testing.d.ts +1 -0
- package/dist/lib/testing.js +20 -23
- package/dist/lib/{transform-DHf9tQF7.js → transform-CQ_6R-43.js} +159 -126
- package/dist/lib/vite-xmlui-plugin.d.ts +10 -0
- package/dist/lib/vite-xmlui-plugin.js +8316 -0
- package/dist/lib/{xmlui-parser-CHN3mADy.js → xmlui-parser-CW8YmGjO.js} +10 -11
- package/dist/lib/xmlui-parser.js +2 -2
- package/dist/lib/{xmlui-serializer-CYNSHAlP.js → xmlui-serializer-CeCcgdVR.js} +19 -19
- package/dist/lib/xmlui.d.ts +122 -1
- package/dist/lib/xmlui.js +8 -3
- package/dist/metadata/{apiInterceptorWorker-Dql7QGw2.js → apiInterceptorWorker-Wgm2_zjg.js} +124 -149
- package/dist/metadata/{collectedComponentMetadata-CLaDZhmc.js → collectedComponentMetadata-BGdap_gu.js} +1919 -2124
- package/dist/metadata/{initMock-Buqah4JF.js → initMock-DlJ0S4Uy.js} +19 -22
- package/dist/metadata/xmlui-metadata.css +1 -0
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +171 -2
- package/dist/standalone/xmlui-standalone.umd.js +36 -37
- package/package.json +20 -50
- package/dist/lib/vite-xmlui-plugin/index.js +0 -13985
- package/dist/lib/vite-xmlui-plugin/package.json +0 -3
- package/dist/metadata/style.css +0 -1
- package/dist/scripts/bin/bootstrap.cjs +0 -4
- package/dist/scripts/bin/build-lib.js +0 -126
- package/dist/scripts/bin/build.js +0 -266
- package/dist/scripts/bin/index.js +0 -167
- package/dist/scripts/bin/preview.js +0 -44
- package/dist/scripts/bin/start.js +0 -52
- package/dist/scripts/bin/vite-xmlui-plugin.js +0 -109
- package/dist/scripts/bin/viteConfig.js +0 -144
- package/dist/scripts/package.json +0 -285
- package/dist/scripts/src/abstractions/ActionDefs.js +0 -2
- package/dist/scripts/src/abstractions/AppContextDefs.js +0 -4
- package/dist/scripts/src/abstractions/ComponentDefs.js +0 -2
- package/dist/scripts/src/abstractions/ContainerDefs.js +0 -2
- package/dist/scripts/src/abstractions/ExtensionDefs.js +0 -2
- package/dist/scripts/src/abstractions/FunctionDefs.js +0 -2
- package/dist/scripts/src/abstractions/RendererDefs.js +0 -2
- package/dist/scripts/src/abstractions/ThemingDefs.js +0 -2
- package/dist/scripts/src/abstractions/scripting/BlockScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Compilation.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LogicalThread.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LoopScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/ScriptParserError.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Token.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScopeExp.js +0 -2
- package/dist/scripts/src/abstractions/scripting/modules.js +0 -2
- package/dist/scripts/src/components/APICall/APICall.js +0 -130
- package/dist/scripts/src/components/APICall/APICall.spec.js +0 -910
- package/dist/scripts/src/components/APICall/APICallNative.js +0 -36
- package/dist/scripts/src/components/Accordion/Accordion.js +0 -97
- package/dist/scripts/src/components/Accordion/Accordion.spec.js +0 -969
- package/dist/scripts/src/components/Accordion/AccordionContext.js +0 -20
- package/dist/scripts/src/components/Accordion/AccordionItem.js +0 -35
- package/dist/scripts/src/components/Accordion/AccordionItemNative.js +0 -95
- package/dist/scripts/src/components/Accordion/AccordionNative.js +0 -141
- package/dist/scripts/src/components/Animation/AnimationNative.js +0 -263
- package/dist/scripts/src/components/App/App.js +0 -581
- package/dist/scripts/src/components/App/App.spec.js +0 -331
- package/dist/scripts/src/components/App/AppLayoutContext.js +0 -49
- package/dist/scripts/src/components/App/AppNative.js +0 -308
- package/dist/scripts/src/components/App/AppStateContext.js +0 -9
- package/dist/scripts/src/components/App/IndexerContext.js +0 -44
- package/dist/scripts/src/components/App/LinkInfoContext.js +0 -9
- package/dist/scripts/src/components/App/SearchContext.js +0 -35
- package/dist/scripts/src/components/App/Sheet.js +0 -99
- package/dist/scripts/src/components/AppHeader/AppHeader.js +0 -58
- package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +0 -169
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +0 -72
- package/dist/scripts/src/components/AppState/AppState.js +0 -75
- package/dist/scripts/src/components/AppState/AppState.spec.js +0 -292
- package/dist/scripts/src/components/AppState/AppStateNative.js +0 -51
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +0 -109
- package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +0 -546
- package/dist/scripts/src/components/AutoComplete/AutoCompleteContext.js +0 -19
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +0 -498
- package/dist/scripts/src/components/Avatar/Avatar.js +0 -55
- package/dist/scripts/src/components/Avatar/Avatar.spec.js +0 -1514
- package/dist/scripts/src/components/Avatar/AvatarNative.js +0 -58
- package/dist/scripts/src/components/Backdrop/Backdrop.js +0 -40
- package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +0 -131
- package/dist/scripts/src/components/Backdrop/BackdropNative.js +0 -25
- package/dist/scripts/src/components/Badge/Badge.js +0 -81
- package/dist/scripts/src/components/Badge/Badge.spec.js +0 -2214
- package/dist/scripts/src/components/Badge/BadgeNative.js +0 -46
- package/dist/scripts/src/components/Bookmark/Bookmark.js +0 -48
- package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +0 -230
- package/dist/scripts/src/components/Bookmark/BookmarkNative.js +0 -55
- package/dist/scripts/src/components/Breakout/Breakout.js +0 -17
- package/dist/scripts/src/components/Breakout/Breakout.spec.js +0 -56
- package/dist/scripts/src/components/Breakout/BreakoutNative.js +0 -24
- package/dist/scripts/src/components/Button/Button-style.spec.js +0 -274
- package/dist/scripts/src/components/Button/Button.js +0 -171
- package/dist/scripts/src/components/Button/Button.spec.js +0 -425
- package/dist/scripts/src/components/Button/ButtonNative.js +0 -109
- package/dist/scripts/src/components/Card/Card.js +0 -89
- package/dist/scripts/src/components/Card/Card.spec.js +0 -150
- package/dist/scripts/src/components/Card/CardNative.js +0 -41
- package/dist/scripts/src/components/Carousel/Carousel.js +0 -133
- package/dist/scripts/src/components/Carousel/Carousel.spec.js +0 -557
- package/dist/scripts/src/components/Carousel/CarouselContext.js +0 -57
- package/dist/scripts/src/components/Carousel/CarouselItem.js +0 -15
- package/dist/scripts/src/components/Carousel/CarouselItemNative.js +0 -40
- package/dist/scripts/src/components/Carousel/CarouselNative.js +0 -195
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +0 -34
- package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +0 -169
- package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +0 -30
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.js +0 -92
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +0 -999
- package/dist/scripts/src/components/Charts/AreaChart/AreaChartNative.js +0 -127
- package/dist/scripts/src/components/Charts/BarChart/BarChart.js +0 -97
- package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +0 -597
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +0 -317
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +0 -60
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +0 -608
- package/dist/scripts/src/components/Charts/LabelList/LabelList.js +0 -41
- package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +0 -539
- package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +0 -25
- package/dist/scripts/src/components/Charts/Legend/Legend.js +0 -33
- package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +0 -558
- package/dist/scripts/src/components/Charts/Legend/LegendNative.js +0 -64
- package/dist/scripts/src/components/Charts/LineChart/LineChart.js +0 -94
- package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +0 -450
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +0 -192
- package/dist/scripts/src/components/Charts/PieChart/PieChart.js +0 -64
- package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +0 -584
- package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +0 -167
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.js +0 -92
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +0 -571
- package/dist/scripts/src/components/Charts/RadarChart/RadarChartNative.js +0 -125
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.js +0 -27
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +0 -451
- package/dist/scripts/src/components/Charts/utils/ChartProvider.js +0 -65
- package/dist/scripts/src/components/Charts/utils/abstractions.js +0 -26
- package/dist/scripts/src/components/Checkbox/Checkbox.js +0 -81
- package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +0 -900
- package/dist/scripts/src/components/CodeBlock/CodeBlock.js +0 -42
- package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +0 -196
- package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +0 -127
- package/dist/scripts/src/components/CodeBlock/highlight-code.js +0 -273
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +0 -54
- package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +0 -355
- package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +0 -86
- package/dist/scripts/src/components/Column/Column.js +0 -89
- package/dist/scripts/src/components/Column/ColumnNative.js +0 -49
- package/dist/scripts/src/components/Column/TableContext.js +0 -12
- package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/ComponentProvider.js +0 -811
- package/dist/scripts/src/components/ComponentRegistryContext.js +0 -44
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +0 -51
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +0 -531
- package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +0 -31
- package/dist/scripts/src/components/DataSource/DataSource.js +0 -124
- package/dist/scripts/src/components/DateInput/DateInput.js +0 -197
- package/dist/scripts/src/components/DateInput/DateInput.spec.js +0 -1023
- package/dist/scripts/src/components/DateInput/DateInputNative.js +0 -734
- package/dist/scripts/src/components/DatePicker/DatePicker.js +0 -146
- package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +0 -394
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +0 -326
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +0 -196
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +0 -331
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +0 -146
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +0 -26
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +0 -29
- package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +0 -71
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +0 -101
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +0 -435
- package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +0 -109
- package/dist/scripts/src/components/FileInput/FileInput.js +0 -80
- package/dist/scripts/src/components/FileInput/FileInput.spec.js +0 -285
- package/dist/scripts/src/components/FileInput/FileInputNative.js +0 -161
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +0 -58
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +0 -296
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +0 -134
- package/dist/scripts/src/components/FlowLayout/FlowLayout.js +0 -65
- package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +0 -518
- package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +0 -153
- package/dist/scripts/src/components/Footer/Footer.js +0 -45
- package/dist/scripts/src/components/Footer/Footer.spec.js +0 -991
- package/dist/scripts/src/components/Footer/FooterNative.js +0 -35
- package/dist/scripts/src/components/Form/Form.js +0 -161
- package/dist/scripts/src/components/Form/Form.spec.js +0 -1719
- package/dist/scripts/src/components/Form/FormContext.js +0 -124
- package/dist/scripts/src/components/Form/FormNative.js +0 -463
- package/dist/scripts/src/components/Form/formActions.js +0 -115
- package/dist/scripts/src/components/FormItem/FormItem.js +0 -231
- package/dist/scripts/src/components/FormItem/FormItem.spec.js +0 -1022
- package/dist/scripts/src/components/FormItem/FormItemNative.js +0 -255
- package/dist/scripts/src/components/FormItem/HelperText.js +0 -27
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +0 -52
- package/dist/scripts/src/components/FormItem/Validations.js +0 -389
- package/dist/scripts/src/components/FormSection/FormSection.js +0 -56
- package/dist/scripts/src/components/Fragment/Fragment.js +0 -24
- package/dist/scripts/src/components/Fragment/Fragment.spec.js +0 -50
- package/dist/scripts/src/components/Heading/H1.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H2.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H3.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H4.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H5.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H6.spec.js +0 -66
- package/dist/scripts/src/components/Heading/Heading.js +0 -396
- package/dist/scripts/src/components/Heading/Heading.spec.js +0 -966
- package/dist/scripts/src/components/Heading/HeadingNative.js +0 -98
- package/dist/scripts/src/components/Heading/abstractions.js +0 -4
- package/dist/scripts/src/components/HoverCard/HoverCard.js +0 -18
- package/dist/scripts/src/components/HoverCard/HovercardNative.js +0 -44
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +0 -1441
- package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +0 -69
- package/dist/scripts/src/components/IFrame/IFrame.js +0 -77
- package/dist/scripts/src/components/IFrame/IFrame.spec.js +0 -527
- package/dist/scripts/src/components/IFrame/IFrameNative.js +0 -46
- package/dist/scripts/src/components/Icon/AdmonitionDanger.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionInfo.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionNote.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionTip.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionWarning.js +0 -10
- package/dist/scripts/src/components/Icon/ApiIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ArrowDropDown.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowDropUp.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowLeft.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowRight.js +0 -11
- package/dist/scripts/src/components/Icon/Attach.js +0 -10
- package/dist/scripts/src/components/Icon/Binding.js +0 -11
- package/dist/scripts/src/components/Icon/BoardIcon.js +0 -7
- package/dist/scripts/src/components/Icon/BoxIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CheckIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronDownIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronLeft.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronRight.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronUpIcon.js +0 -7
- package/dist/scripts/src/components/Icon/CodeFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CodeSandbox.js +0 -10
- package/dist/scripts/src/components/Icon/CompactListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ContentCopyIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DarkToLightIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DatabaseIcon.js +0 -11
- package/dist/scripts/src/components/Icon/DocFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DocIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DotMenuHorizontalIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DotMenuIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmailIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmptyFolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ErrorIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ExpressionIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FillPlusCricleIcon.js +0 -7
- package/dist/scripts/src/components/Icon/FilterIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/GlobeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HomeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HyperLinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/Icon.js +0 -42
- package/dist/scripts/src/components/Icon/Icon.spec.js +0 -527
- package/dist/scripts/src/components/Icon/IconNative.js +0 -127
- package/dist/scripts/src/components/Icon/ImageFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/Inspect.js +0 -10
- package/dist/scripts/src/components/Icon/LightToDark.js +0 -10
- package/dist/scripts/src/components/Icon/LinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/LooseListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/MoonIcon.js +0 -10
- package/dist/scripts/src/components/Icon/MoreOptionsIcon.js +0 -7
- package/dist/scripts/src/components/Icon/NoSortIcon.js +0 -8
- package/dist/scripts/src/components/Icon/PDFIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PenIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhoneIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhotoIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PlusIcon.js +0 -7
- package/dist/scripts/src/components/Icon/SearchIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ShareIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SortAscendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/SortDescendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/StarsIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SunIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrashIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrendingDownIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingLevelIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingUpIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TxtIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnknownFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnlinkIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UserIcon.js +0 -7
- package/dist/scripts/src/components/Icon/WarningIcon.js +0 -7
- package/dist/scripts/src/components/Icon/XlsIcon.js +0 -10
- package/dist/scripts/src/components/IconProvider.js +0 -300
- package/dist/scripts/src/components/IconRegistryContext.js +0 -318
- package/dist/scripts/src/components/Image/Image.js +0 -52
- package/dist/scripts/src/components/Image/Image.spec.js +0 -198
- package/dist/scripts/src/components/Image/ImageNative.js +0 -73
- package/dist/scripts/src/components/Input/InputAdornment.js +0 -28
- package/dist/scripts/src/components/Input/InputDivider.js +0 -35
- package/dist/scripts/src/components/Input/InputLabel.js +0 -25
- package/dist/scripts/src/components/Input/PartialInput.js +0 -155
- package/dist/scripts/src/components/Input/index.js +0 -5
- package/dist/scripts/src/components/InspectButton/InspectButton.js +0 -35
- package/dist/scripts/src/components/Items/Items.js +0 -39
- package/dist/scripts/src/components/Items/Items.spec.js +0 -397
- package/dist/scripts/src/components/Items/ItemsNative.js +0 -33
- package/dist/scripts/src/components/Link/Link.js +0 -82
- package/dist/scripts/src/components/Link/Link.spec.js +0 -894
- package/dist/scripts/src/components/Link/LinkNative.js +0 -48
- package/dist/scripts/src/components/List/List.js +0 -130
- package/dist/scripts/src/components/List/List.spec.js +0 -927
- package/dist/scripts/src/components/List/ListNative.js +0 -433
- package/dist/scripts/src/components/List/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Logo/Logo.js +0 -30
- package/dist/scripts/src/components/Logo/LogoNative.js +0 -32
- package/dist/scripts/src/components/Markdown/CodeText.js +0 -38
- package/dist/scripts/src/components/Markdown/Markdown.js +0 -143
- package/dist/scripts/src/components/Markdown/Markdown.spec.js +0 -188
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +0 -476
- package/dist/scripts/src/components/Markdown/parse-binding-expr.js +0 -60
- package/dist/scripts/src/components/Markdown/utils.js +0 -389
- package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +0 -111
- package/dist/scripts/src/components/ModalDialog/Dialog.js +0 -20
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +0 -83
- package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +0 -181
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +0 -217
- package/dist/scripts/src/components/ModalDialog/ModalVisibilityContext.js +0 -60
- package/dist/scripts/src/components/NavGroup/NavGroup.js +0 -70
- package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +0 -304
- package/dist/scripts/src/components/NavGroup/NavGroupContext.js +0 -13
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +0 -133
- package/dist/scripts/src/components/NavLink/NavLink.js +0 -86
- package/dist/scripts/src/components/NavLink/NavLink.spec.js +0 -864
- package/dist/scripts/src/components/NavLink/NavLinkNative.js +0 -73
- package/dist/scripts/src/components/NavPanel/NavPanel.js +0 -53
- package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +0 -864
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +0 -222
- package/dist/scripts/src/components/NestedApp/AppWithCodeView.js +0 -91
- package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +0 -84
- package/dist/scripts/src/components/NestedApp/NestedApp.js +0 -86
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +0 -231
- package/dist/scripts/src/components/NestedApp/Tooltip.js +0 -46
- package/dist/scripts/src/components/NestedApp/defaultProps.js +0 -12
- package/dist/scripts/src/components/NestedApp/utils.js +0 -67
- package/dist/scripts/src/components/NoResult/NoResult.js +0 -46
- package/dist/scripts/src/components/NoResult/NoResult.spec.js +0 -863
- package/dist/scripts/src/components/NoResult/NoResultNative.js +0 -31
- package/dist/scripts/src/components/NumberBox/NumberBox.js +0 -123
- package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +0 -979
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +0 -513
- package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +0 -109
- package/dist/scripts/src/components/Option/Option.js +0 -44
- package/dist/scripts/src/components/Option/Option.spec.js +0 -474
- package/dist/scripts/src/components/Option/OptionNative.js +0 -29
- package/dist/scripts/src/components/Option/OptionTypeProvider.js +0 -16
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +0 -13
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +0 -22
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +0 -80
- package/dist/scripts/src/components/Pages/Pages.js +0 -54
- package/dist/scripts/src/components/Pages/PagesNative.js +0 -57
- package/dist/scripts/src/components/Pagination/Pagination.js +0 -107
- package/dist/scripts/src/components/Pagination/Pagination.spec.js +0 -1008
- package/dist/scripts/src/components/Pagination/PaginationNative.js +0 -157
- package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +0 -24
- package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +0 -14
- package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +0 -20
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +0 -38
- package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +0 -166
- package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +0 -28
- package/dist/scripts/src/components/Queue/Queue.js +0 -85
- package/dist/scripts/src/components/Queue/Queue.spec.js +0 -624
- package/dist/scripts/src/components/Queue/QueueNative.js +0 -342
- package/dist/scripts/src/components/Queue/queueActions.js +0 -87
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +0 -61
- package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +0 -490
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +0 -158
- package/dist/scripts/src/components/RadioGroup/RadioItem.js +0 -28
- package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +0 -62
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +0 -24
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +0 -135
- package/dist/scripts/src/components/Redirect/Redirect.js +0 -31
- package/dist/scripts/src/components/Redirect/Redirect.spec.js +0 -527
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.js +0 -60
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +0 -76
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBarNative.js +0 -313
- package/dist/scripts/src/components/Select/HiddenOption.js +0 -20
- package/dist/scripts/src/components/Select/OptionContext.js +0 -12
- package/dist/scripts/src/components/Select/Select.js +0 -131
- package/dist/scripts/src/components/Select/Select.spec.js +0 -763
- package/dist/scripts/src/components/Select/SelectContext.js +0 -16
- package/dist/scripts/src/components/Select/SelectNative.js +0 -440
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +0 -25
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +0 -103
- package/dist/scripts/src/components/Slider/Slider.js +0 -115
- package/dist/scripts/src/components/Slider/Slider.spec.js +0 -677
- package/dist/scripts/src/components/Slider/SliderNative.js +0 -237
- package/dist/scripts/src/components/Slot/Slot.js +0 -17
- package/dist/scripts/src/components/Slot/Slot.spec.js +0 -368
- package/dist/scripts/src/components/SlotItem.js +0 -32
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +0 -20
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +0 -184
- package/dist/scripts/src/components/SpaceFiller/SpaceFillerNative.js +0 -10
- package/dist/scripts/src/components/Spinner/Spinner.js +0 -39
- package/dist/scripts/src/components/Spinner/Spinner.spec.js +0 -161
- package/dist/scripts/src/components/Spinner/SpinnerNative.js +0 -48
- package/dist/scripts/src/components/Splitter/HSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/Splitter.js +0 -163
- package/dist/scripts/src/components/Splitter/Splitter.spec.js +0 -856
- package/dist/scripts/src/components/Splitter/SplitterNative.js +0 -205
- package/dist/scripts/src/components/Splitter/VSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/utils.js +0 -22
- package/dist/scripts/src/components/Stack/CHStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/CVStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/HStack.spec.js +0 -67
- package/dist/scripts/src/components/Stack/Stack.js +0 -156
- package/dist/scripts/src/components/Stack/Stack.spec.js +0 -654
- package/dist/scripts/src/components/Stack/StackNative.js +0 -45
- package/dist/scripts/src/components/Stack/VStack.spec.js +0 -67
- package/dist/scripts/src/components/StickyBox/StickyBox.js +0 -34
- package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +0 -42
- package/dist/scripts/src/components/Switch/Switch.js +0 -80
- package/dist/scripts/src/components/Switch/Switch.spec.js +0 -834
- package/dist/scripts/src/components/Table/Table.js +0 -268
- package/dist/scripts/src/components/Table/Table.spec.js +0 -827
- package/dist/scripts/src/components/Table/TableNative.js +0 -670
- package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Table/useRowSelection.js +0 -454
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +0 -76
- package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +0 -838
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +0 -81
- package/dist/scripts/src/components/Tabs/TabContext.js +0 -58
- package/dist/scripts/src/components/Tabs/TabItem.js +0 -44
- package/dist/scripts/src/components/Tabs/TabItemNative.js +0 -53
- package/dist/scripts/src/components/Tabs/Tabs.js +0 -95
- package/dist/scripts/src/components/Tabs/Tabs.spec.js +0 -1237
- package/dist/scripts/src/components/Tabs/TabsNative.js +0 -137
- package/dist/scripts/src/components/Text/Text.js +0 -181
- package/dist/scripts/src/components/Text/Text.spec.js +0 -1676
- package/dist/scripts/src/components/Text/TextNative.js +0 -244
- package/dist/scripts/src/components/TextArea/TextArea.js +0 -103
- package/dist/scripts/src/components/TextArea/TextArea.spec.js +0 -886
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +0 -196
- package/dist/scripts/src/components/TextArea/TextAreaResizable.js +0 -73
- package/dist/scripts/src/components/TextArea/useComposedRef.js +0 -60
- package/dist/scripts/src/components/TextBox/TextBox.js +0 -133
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +0 -758
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +0 -142
- package/dist/scripts/src/components/Theme/NotificationToast.js +0 -64
- package/dist/scripts/src/components/Theme/Theme.js +0 -47
- package/dist/scripts/src/components/Theme/Theme.spec.js +0 -390
- package/dist/scripts/src/components/Theme/ThemeNative.js +0 -162
- package/dist/scripts/src/components/TimeInput/TimeInput.js +0 -149
- package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +0 -1236
- package/dist/scripts/src/components/TimeInput/TimeInputNative.js +0 -650
- package/dist/scripts/src/components/TimeInput/utils.js +0 -197
- package/dist/scripts/src/components/Timer/Timer.js +0 -62
- package/dist/scripts/src/components/Timer/Timer.spec.js +0 -328
- package/dist/scripts/src/components/Timer/TimerNative.js +0 -178
- package/dist/scripts/src/components/Toggle/Toggle.js +0 -172
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +0 -63
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +0 -414
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.js +0 -51
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +0 -89
- package/dist/scripts/src/components/ToneSwitch/ToneSwitchNative.js +0 -42
- package/dist/scripts/src/components/Tooltip/Tooltip.js +0 -118
- package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +0 -418
- package/dist/scripts/src/components/Tooltip/TooltipNative.js +0 -160
- package/dist/scripts/src/components/Tree/Tree-dynamic.spec.js +0 -2894
- package/dist/scripts/src/components/Tree/Tree-icons.spec.js +0 -206
- package/dist/scripts/src/components/Tree/Tree.spec.js +0 -2839
- package/dist/scripts/src/components/Tree/TreeComponent.js +0 -324
- package/dist/scripts/src/components/Tree/TreeNative.js +0 -1129
- package/dist/scripts/src/components/Tree/testData.js +0 -296
- package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +0 -49
- package/dist/scripts/src/components/TreeDisplay/TreeDisplayNative.js +0 -104
- package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +0 -64
- package/dist/scripts/src/components/VisuallyHidden.js +0 -21
- package/dist/scripts/src/components/abstractions.js +0 -341
- package/dist/scripts/src/components/chart-color-schemes.js +0 -43
- package/dist/scripts/src/components/collectedComponentMetadata.js +0 -316
- package/dist/scripts/src/components/component-utils.js +0 -29
- package/dist/scripts/src/components/container-helpers.js +0 -26
- package/dist/scripts/src/components/metadata-helpers.js +0 -269
- package/dist/scripts/src/components-core/ApiBoundComponent.js +0 -227
- package/dist/scripts/src/components-core/AppContext.js +0 -16
- package/dist/scripts/src/components-core/ComponentDecorator.js +0 -74
- package/dist/scripts/src/components-core/ComponentViewer.js +0 -69
- package/dist/scripts/src/components-core/CompoundComponent.js +0 -145
- package/dist/scripts/src/components-core/DebugViewProvider.js +0 -43
- package/dist/scripts/src/components-core/EngineError.js +0 -91
- package/dist/scripts/src/components-core/InspectorContext.js +0 -248
- package/dist/scripts/src/components-core/LoaderComponent.js +0 -109
- package/dist/scripts/src/components-core/RestApiProxy.js +0 -468
- package/dist/scripts/src/components-core/StandaloneApp.js +0 -821
- package/dist/scripts/src/components-core/StandaloneExtensionManager.js +0 -44
- package/dist/scripts/src/components-core/TableOfContentsContext.js +0 -168
- package/dist/scripts/src/components-core/abstractions/ComponentRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/LoaderRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
- package/dist/scripts/src/components-core/abstractions/treeAbstractions.js +0 -2
- package/dist/scripts/src/components-core/action/APICall.js +0 -284
- package/dist/scripts/src/components-core/action/FileDownloadAction.js +0 -80
- package/dist/scripts/src/components-core/action/FileUploadAction.js +0 -88
- package/dist/scripts/src/components-core/action/NavigateAction.js +0 -20
- package/dist/scripts/src/components-core/action/TimedAction.js +0 -21
- package/dist/scripts/src/components-core/action/actions.js +0 -15
- package/dist/scripts/src/components-core/appContext/date-functions.js +0 -24
- package/dist/scripts/src/components-core/appContext/math-function.js +0 -27
- package/dist/scripts/src/components-core/appContext/misc-utils.js +0 -14
- package/dist/scripts/src/components-core/behaviors/Behavior.js +0 -2
- package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +0 -201
- package/dist/scripts/src/components-core/component-hooks.js +0 -25
- package/dist/scripts/src/components-core/constants.js +0 -18
- package/dist/scripts/src/components-core/descriptorHelper.js +0 -96
- package/dist/scripts/src/components-core/devtools/InspectorDialog.js +0 -135
- package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +0 -8
- package/dist/scripts/src/components-core/event-handlers.js +0 -46
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +0 -247
- package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +0 -167
- package/dist/scripts/src/components-core/interception/Backend.js +0 -141
- package/dist/scripts/src/components-core/interception/Errors.js +0 -129
- package/dist/scripts/src/components-core/interception/InMemoryDb.js +0 -41
- package/dist/scripts/src/components-core/interception/IndexedDb.js +0 -205
- package/dist/scripts/src/components-core/interception/ReadonlyCollection.js +0 -145
- package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
- package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +0 -44
- package/dist/scripts/src/components-core/interception/initMock.js +0 -20
- package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +0 -9
- package/dist/scripts/src/components-core/loader/ApiLoader.js +0 -54
- package/dist/scripts/src/components-core/loader/DataLoader.js +0 -330
- package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +0 -60
- package/dist/scripts/src/components-core/loader/Loader.js +0 -159
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +0 -43
- package/dist/scripts/src/components-core/loader/PageableLoader.js +0 -272
- package/dist/scripts/src/components-core/markup-check.js +0 -279
- package/dist/scripts/src/components-core/parts.js +0 -11
- package/dist/scripts/src/components-core/renderers.js +0 -76
- package/dist/scripts/src/components-core/rendering/AppContent.js +0 -400
- package/dist/scripts/src/components-core/rendering/AppRoot.js +0 -87
- package/dist/scripts/src/components-core/rendering/AppWrapper.js +0 -49
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +0 -380
- package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +0 -166
- package/dist/scripts/src/components-core/rendering/Container.js +0 -621
- package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +0 -94
- package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +0 -65
- package/dist/scripts/src/components-core/rendering/InvalidComponent.js +0 -17
- package/dist/scripts/src/components-core/rendering/StandaloneComponent.js +0 -39
- package/dist/scripts/src/components-core/rendering/StateContainer.js +0 -350
- package/dist/scripts/src/components-core/rendering/UnknownComponent.js +0 -15
- package/dist/scripts/src/components-core/rendering/buildProxy.js +0 -58
- package/dist/scripts/src/components-core/rendering/collectFnVarDeps.js +0 -49
- package/dist/scripts/src/components-core/rendering/containers.js +0 -19
- package/dist/scripts/src/components-core/rendering/nodeUtils.js +0 -6
- package/dist/scripts/src/components-core/rendering/reducer.js +0 -160
- package/dist/scripts/src/components-core/rendering/renderChild.js +0 -82
- package/dist/scripts/src/components-core/rendering/valueExtractor.js +0 -216
- package/dist/scripts/src/components-core/reportEngineError.js +0 -62
- package/dist/scripts/src/components-core/script-runner/AttributeValueParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/BindingTreeEvaluationContext.js +0 -33
- package/dist/scripts/src/components-core/script-runner/ParameterParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/ScriptingSourceTree.js +0 -45
- package/dist/scripts/src/components-core/script-runner/asyncProxy.js +0 -96
- package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +0 -34
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +0 -613
- package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +0 -439
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +0 -522
- package/dist/scripts/src/components-core/script-runner/process-statement-async.js +0 -761
- package/dist/scripts/src/components-core/script-runner/process-statement-common.js +0 -208
- package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +0 -746
- package/dist/scripts/src/components-core/script-runner/simplify-expression.js +0 -386
- package/dist/scripts/src/components-core/script-runner/statement-queue.js +0 -63
- package/dist/scripts/src/components-core/script-runner/visitors.js +0 -369
- package/dist/scripts/src/components-core/theming/StyleContext.js +0 -133
- package/dist/scripts/src/components-core/theming/StyleRegistry.js +0 -171
- package/dist/scripts/src/components-core/theming/ThemeContext.js +0 -53
- package/dist/scripts/src/components-core/theming/ThemeProvider.js +0 -342
- package/dist/scripts/src/components-core/theming/component-layout-resolver.js +0 -153
- package/dist/scripts/src/components-core/theming/extendThemeUtils.js +0 -47
- package/dist/scripts/src/components-core/theming/hvar.js +0 -105
- package/dist/scripts/src/components-core/theming/layout-resolver.js +0 -388
- package/dist/scripts/src/components-core/theming/parse-layout-props.js +0 -136
- package/dist/scripts/src/components-core/theming/themeVars.js +0 -62
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +0 -15
- package/dist/scripts/src/components-core/theming/themes/palette.js +0 -57
- package/dist/scripts/src/components-core/theming/themes/root.js +0 -434
- package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
- package/dist/scripts/src/components-core/theming/themes/theme-colors.js +0 -561
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +0 -57
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +0 -733
- package/dist/scripts/src/components-core/theming/utils.js +0 -31
- package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +0 -41
- package/dist/scripts/src/components-core/utils/LruCache.js +0 -184
- package/dist/scripts/src/components-core/utils/actionUtils.js +0 -32
- package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
- package/dist/scripts/src/components-core/utils/base64-utils.js +0 -124
- package/dist/scripts/src/components-core/utils/compound-utils.js +0 -11
- package/dist/scripts/src/components-core/utils/css-utils.js +0 -179
- package/dist/scripts/src/components-core/utils/date-utils.js +0 -186
- package/dist/scripts/src/components-core/utils/extractParam.js +0 -281
- package/dist/scripts/src/components-core/utils/hooks.js +0 -400
- package/dist/scripts/src/components-core/utils/mergeProps.js +0 -45
- package/dist/scripts/src/components-core/utils/misc.js +0 -539
- package/dist/scripts/src/components-core/utils/request-params.js +0 -70
- package/dist/scripts/src/components-core/utils/statementUtils.js +0 -224
- package/dist/scripts/src/components-core/utils/treeUtils.js +0 -226
- package/dist/scripts/src/components-core/xmlui-parser.js +0 -548
- package/dist/scripts/src/index-standalone.js +0 -61
- package/dist/scripts/src/index.js +0 -158
- package/dist/scripts/src/language-server/server-common.js +0 -152
- package/dist/scripts/src/language-server/server-web-worker.js +0 -47
- package/dist/scripts/src/language-server/server.js +0 -42
- package/dist/scripts/src/language-server/services/common/docs-generation.js +0 -73
- package/dist/scripts/src/language-server/services/common/lsp-utils.js +0 -9
- package/dist/scripts/src/language-server/services/common/metadata-utils.js +0 -157
- package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +0 -127
- package/dist/scripts/src/language-server/services/completion.js +0 -288
- package/dist/scripts/src/language-server/services/diagnostic.js +0 -19
- package/dist/scripts/src/language-server/services/format.js +0 -569
- package/dist/scripts/src/language-server/services/hover.js +0 -164
- package/dist/scripts/src/language-server/xmlui-metadata-generated.js +0 -16276
- package/dist/scripts/src/logging/LoggerContext.js +0 -22
- package/dist/scripts/src/logging/LoggerInitializer.js +0 -14
- package/dist/scripts/src/logging/LoggerService.js +0 -60
- package/dist/scripts/src/logging/xmlui.js +0 -21
- package/dist/scripts/src/parsers/common/GenericToken.js +0 -2
- package/dist/scripts/src/parsers/common/InputStream.js +0 -59
- package/dist/scripts/src/parsers/common/utils.js +0 -19
- package/dist/scripts/src/parsers/scripting/Lexer.js +0 -1097
- package/dist/scripts/src/parsers/scripting/Parser.js +0 -2638
- package/dist/scripts/src/parsers/scripting/ParserError.js +0 -47
- package/dist/scripts/src/parsers/scripting/ScriptingNodeTypes.js +0 -50
- package/dist/scripts/src/parsers/scripting/TokenTrait.js +0 -108
- package/dist/scripts/src/parsers/scripting/TokenType.js +0 -109
- package/dist/scripts/src/parsers/scripting/code-behind-collect.js +0 -101
- package/dist/scripts/src/parsers/scripting/modules.js +0 -105
- package/dist/scripts/src/parsers/scripting/tree-visitor.js +0 -601
- package/dist/scripts/src/parsers/style-parser/StyleInputStream.js +0 -39
- package/dist/scripts/src/parsers/style-parser/StyleLexer.js +0 -623
- package/dist/scripts/src/parsers/style-parser/StyleParser.js +0 -453
- package/dist/scripts/src/parsers/style-parser/errors.js +0 -37
- package/dist/scripts/src/parsers/style-parser/source-tree.js +0 -2
- package/dist/scripts/src/parsers/style-parser/tokens.js +0 -43
- package/dist/scripts/src/parsers/xmlui-parser/CharacterCodes.js +0 -136
- package/dist/scripts/src/parsers/xmlui-parser/ParserError.js +0 -60
- package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +0 -172
- package/dist/scripts/src/parsers/xmlui-parser/fileExtensions.js +0 -6
- package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
- package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -165
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +0 -627
- package/dist/scripts/src/parsers/xmlui-parser/scanner.js +0 -415
- package/dist/scripts/src/parsers/xmlui-parser/syntax-kind.js +0 -123
- package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -1131
- package/dist/scripts/src/parsers/xmlui-parser/utils.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
- package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
- package/dist/scripts/src/syntax/monaco/index.js +0 -14
- package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
- package/dist/scripts/src/syntax/textMate/index.js +0 -14
- package/dist/scripts/src/syntax/textMate/xmlui-dark.json +0 -631
- package/dist/scripts/src/syntax/textMate/xmlui-light.json +0 -565
- package/dist/scripts/src/syntax/textMate/xmlui.json +0 -564
- package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +0 -341
- package/dist/scripts/src/testing/ComponentDrivers.js +0 -1380
- package/dist/scripts/src/testing/assertions.js +0 -444
- package/dist/scripts/src/testing/component-test-helpers.js +0 -373
- package/dist/scripts/src/testing/drivers/DateInputDriver.js +0 -19
- package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +0 -10
- package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +0 -44
- package/dist/scripts/src/testing/drivers/TextBoxDriver.js +0 -20
- package/dist/scripts/src/testing/drivers/TimeInputDriver.js +0 -22
- package/dist/scripts/src/testing/drivers/TimerDriver.js +0 -64
- package/dist/scripts/src/testing/drivers/TreeDriver.js +0 -13
- package/dist/scripts/src/testing/drivers/index.js +0 -9
- package/dist/scripts/src/testing/fixtures.js +0 -519
- package/dist/scripts/src/testing/index.js +0 -69
- package/dist/scripts/src/testing/infrastructure/TestBed.js +0 -17
- package/dist/scripts/src/testing/infrastructure/main.js +0 -9
- package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +0 -266
- package/dist/scripts/src/testing/themed-app-test-helpers.js +0 -133
|
@@ -1,1022 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const fixtures_1 = require("../../testing/fixtures");
|
|
13
|
-
// =============================================================================
|
|
14
|
-
// BASIC FUNCTIONALITY TESTS
|
|
15
|
-
// =============================================================================
|
|
16
|
-
fixtures_1.test.describe("Basic Functionality", () => {
|
|
17
|
-
(0, fixtures_1.test)("renders with default properties", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
18
|
-
yield initTestBed(`
|
|
19
|
-
<Form>
|
|
20
|
-
<FormItem testId="formItem" />
|
|
21
|
-
</Form>
|
|
22
|
-
`);
|
|
23
|
-
const driver = yield createFormItemDriver("formItem");
|
|
24
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
25
|
-
}));
|
|
26
|
-
(0, fixtures_1.test)("renders with label property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
27
|
-
yield initTestBed(`
|
|
28
|
-
<Form>
|
|
29
|
-
<FormItem testId="formItem" label="Test Label" />
|
|
30
|
-
</Form>
|
|
31
|
-
`);
|
|
32
|
-
const driver = yield createFormItemDriver("formItem");
|
|
33
|
-
yield (0, fixtures_1.expect)(driver.label).toHaveText("Test Label");
|
|
34
|
-
}));
|
|
35
|
-
(0, fixtures_1.test)("renders with enabled property set to true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
36
|
-
yield initTestBed(`
|
|
37
|
-
<Form>
|
|
38
|
-
<FormItem testId="formItem" type="text" enabled="true" />
|
|
39
|
-
</Form>
|
|
40
|
-
`);
|
|
41
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
42
|
-
const inputDriver = yield createTextBoxDriver(formItemDriver.input);
|
|
43
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toBeEnabled();
|
|
44
|
-
}));
|
|
45
|
-
(0, fixtures_1.test)("renders with enabled property set to false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
46
|
-
yield initTestBed(`
|
|
47
|
-
<Form>
|
|
48
|
-
<FormItem testId="formItem" type="text" enabled="false" />
|
|
49
|
-
</Form>
|
|
50
|
-
`);
|
|
51
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
52
|
-
const inputDriver = yield createTextBoxDriver(formItemDriver.input);
|
|
53
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toBeDisabled();
|
|
54
|
-
}));
|
|
55
|
-
(0, fixtures_1.test)("renders with required property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
56
|
-
yield initTestBed(`
|
|
57
|
-
<Form>
|
|
58
|
-
<FormItem testId="formItem" label="Required Field" required="true" />
|
|
59
|
-
</Form>
|
|
60
|
-
`);
|
|
61
|
-
const driver = yield createFormItemDriver("formItem");
|
|
62
|
-
yield (0, fixtures_1.expect)(driver.label).toContainText("Required Field");
|
|
63
|
-
}));
|
|
64
|
-
(0, fixtures_1.test)("renders with autoFocus property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
65
|
-
yield initTestBed(`
|
|
66
|
-
<Form>
|
|
67
|
-
<FormItem testId="formItem" type="text" autoFocus="true" />
|
|
68
|
-
</Form>
|
|
69
|
-
`);
|
|
70
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
71
|
-
const inputDriver = yield createTextBoxDriver(formItemDriver.input);
|
|
72
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toBeFocused();
|
|
73
|
-
}));
|
|
74
|
-
(0, fixtures_1.test)("renders with bindTo property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
75
|
-
yield initTestBed(`
|
|
76
|
-
<Form data="{{ testField: 'initial value' }}">
|
|
77
|
-
<FormItem testId="formItem" type="text" bindTo="testField" />
|
|
78
|
-
</Form>
|
|
79
|
-
`);
|
|
80
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
81
|
-
const inputDriver = yield createTextBoxDriver(formItemDriver.input);
|
|
82
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toHaveValue("initial value");
|
|
83
|
-
}));
|
|
84
|
-
(0, fixtures_1.test)("renders with initialValue property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
85
|
-
yield initTestBed(`
|
|
86
|
-
<Form>
|
|
87
|
-
<FormItem testId="formItem" type="text" initialValue="default text" />
|
|
88
|
-
</Form>
|
|
89
|
-
`);
|
|
90
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
91
|
-
const inputDriver = yield createTextBoxDriver(formItemDriver.input);
|
|
92
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toHaveValue("default text");
|
|
93
|
-
}));
|
|
94
|
-
(0, fixtures_1.test)("renders with labelPosition property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
95
|
-
yield initTestBed(`
|
|
96
|
-
<Form>
|
|
97
|
-
<FormItem testId="formItem" label="Positioned Label" labelPosition="top" />
|
|
98
|
-
</Form>
|
|
99
|
-
`);
|
|
100
|
-
const driver = yield createFormItemDriver("formItem");
|
|
101
|
-
yield (0, fixtures_1.expect)(driver.label).toHaveText("Positioned Label");
|
|
102
|
-
}));
|
|
103
|
-
(0, fixtures_1.test)("renders with labelWidth property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
104
|
-
yield initTestBed(`
|
|
105
|
-
<Form>
|
|
106
|
-
<FormItem testId="formItem" label="Wide Label" labelWidth="200px" />
|
|
107
|
-
</Form>
|
|
108
|
-
`);
|
|
109
|
-
const driver = yield createFormItemDriver("formItem");
|
|
110
|
-
yield (0, fixtures_1.expect)(driver.label).toHaveText("Wide Label");
|
|
111
|
-
}));
|
|
112
|
-
(0, fixtures_1.test)("renders with labelBreak property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
113
|
-
yield initTestBed(`
|
|
114
|
-
<Form>
|
|
115
|
-
<FormItem testId="formItem" label="Very Long Label That Should Break" labelBreak="true" />
|
|
116
|
-
</Form>
|
|
117
|
-
`);
|
|
118
|
-
const driver = yield createFormItemDriver("formItem");
|
|
119
|
-
yield (0, fixtures_1.expect)(driver.label).toHaveText("Very Long Label That Should Break");
|
|
120
|
-
}));
|
|
121
|
-
(0, fixtures_1.test)("renders with gap property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
122
|
-
yield initTestBed(`
|
|
123
|
-
<Form>
|
|
124
|
-
<FormItem testId="formItem" label="Gapped Item" gap="20px" />
|
|
125
|
-
</Form>
|
|
126
|
-
`);
|
|
127
|
-
const driver = yield createFormItemDriver("formItem");
|
|
128
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
129
|
-
}));
|
|
130
|
-
});
|
|
131
|
-
fixtures_1.test.describe("Type Property", () => {
|
|
132
|
-
(0, fixtures_1.test)("renders with type 'text'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
133
|
-
yield initTestBed(`
|
|
134
|
-
<Form>
|
|
135
|
-
<FormItem testId="formItem" type="text" />
|
|
136
|
-
</Form>
|
|
137
|
-
`);
|
|
138
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
139
|
-
const inputDriver = yield createTextBoxDriver(formItemDriver.input);
|
|
140
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toBeVisible();
|
|
141
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toHaveAttribute("type", "text");
|
|
142
|
-
}));
|
|
143
|
-
(0, fixtures_1.test)("renders with type 'password'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
144
|
-
yield initTestBed(`
|
|
145
|
-
<Form>
|
|
146
|
-
<FormItem testId="formItem" type="password" />
|
|
147
|
-
</Form>
|
|
148
|
-
`);
|
|
149
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
150
|
-
const inputDriver = yield createTextBoxDriver(formItemDriver.input);
|
|
151
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toBeVisible();
|
|
152
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toHaveAttribute("type", "password");
|
|
153
|
-
}));
|
|
154
|
-
(0, fixtures_1.test)("renders with type 'number'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createNumberBoxDriver, }) {
|
|
155
|
-
yield initTestBed(`
|
|
156
|
-
<Form>
|
|
157
|
-
<FormItem testId="formItem" type="number" />
|
|
158
|
-
</Form>
|
|
159
|
-
`);
|
|
160
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
161
|
-
const inputDriver = yield createNumberBoxDriver(formItemDriver.input);
|
|
162
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toBeVisible();
|
|
163
|
-
// XMLUI number inputs use type="text" with inputmode="numeric"
|
|
164
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toHaveAttribute("type", "text");
|
|
165
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toHaveAttribute("inputmode", "numeric");
|
|
166
|
-
}));
|
|
167
|
-
(0, fixtures_1.test)("renders with type 'integer'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createNumberBoxDriver, }) {
|
|
168
|
-
yield initTestBed(`
|
|
169
|
-
<Form>
|
|
170
|
-
<FormItem testId="formItem" type="integer" />
|
|
171
|
-
</Form>
|
|
172
|
-
`);
|
|
173
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
174
|
-
const inputDriver = yield createNumberBoxDriver(formItemDriver.input);
|
|
175
|
-
yield (0, fixtures_1.expect)(inputDriver.field).toBeVisible();
|
|
176
|
-
}));
|
|
177
|
-
(0, fixtures_1.test)("renders with type 'textarea'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
178
|
-
yield initTestBed(`
|
|
179
|
-
<Form>
|
|
180
|
-
<FormItem testId="formItem" type="textarea" />
|
|
181
|
-
</Form>
|
|
182
|
-
`);
|
|
183
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
184
|
-
yield (0, fixtures_1.expect)(formItemDriver.input.getByRole("textbox")).toBeVisible();
|
|
185
|
-
}));
|
|
186
|
-
(0, fixtures_1.test)("renders with type 'checkbox'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
187
|
-
yield initTestBed(`
|
|
188
|
-
<Form>
|
|
189
|
-
<FormItem testId="formItem" type="checkbox" />
|
|
190
|
-
</Form>
|
|
191
|
-
`);
|
|
192
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
193
|
-
yield (0, fixtures_1.expect)(formItemDriver.checkbox).toBeVisible();
|
|
194
|
-
}));
|
|
195
|
-
(0, fixtures_1.test)("renders with type 'select'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
196
|
-
yield initTestBed(`
|
|
197
|
-
<Form>
|
|
198
|
-
<FormItem testId="formItem" type="select" />
|
|
199
|
-
</Form>
|
|
200
|
-
`);
|
|
201
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
202
|
-
yield (0, fixtures_1.expect)(formItemDriver.component).toBeVisible();
|
|
203
|
-
}));
|
|
204
|
-
(0, fixtures_1.test)("renders with type 'radio'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
205
|
-
yield initTestBed(`
|
|
206
|
-
<Form>
|
|
207
|
-
<FormItem testId="formItem" type="radio" />
|
|
208
|
-
</Form>
|
|
209
|
-
`);
|
|
210
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
211
|
-
// Radio FormItems may render as hidden without radio options
|
|
212
|
-
const isVisible = yield formItemDriver.component.isVisible();
|
|
213
|
-
if (isVisible) {
|
|
214
|
-
yield (0, fixtures_1.expect)(formItemDriver.component).toBeVisible();
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
// It's acceptable for radio FormItem to be hidden without options
|
|
218
|
-
(0, fixtures_1.expect)(isVisible).toBe(false);
|
|
219
|
-
}
|
|
220
|
-
}));
|
|
221
|
-
});
|
|
222
|
-
fixtures_1.test.describe("Validation Properties", () => {
|
|
223
|
-
(0, fixtures_1.test)("renders with minLength property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
224
|
-
yield initTestBed(`
|
|
225
|
-
<Form>
|
|
226
|
-
<FormItem testId="formItem" type="text" minLength="5" />
|
|
227
|
-
</Form>
|
|
228
|
-
`);
|
|
229
|
-
const driver = yield createFormItemDriver("formItem");
|
|
230
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
231
|
-
}));
|
|
232
|
-
(0, fixtures_1.test)("renders with maxLength property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
233
|
-
yield initTestBed(`
|
|
234
|
-
<Form>
|
|
235
|
-
<FormItem testId="formItem" type="text" maxLength="10" />
|
|
236
|
-
</Form>
|
|
237
|
-
`);
|
|
238
|
-
const driver = yield createFormItemDriver("formItem");
|
|
239
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
240
|
-
}));
|
|
241
|
-
(0, fixtures_1.test)("renders with minValue property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
242
|
-
yield initTestBed(`
|
|
243
|
-
<Form>
|
|
244
|
-
<FormItem testId="formItem" type="number" minValue="0" />
|
|
245
|
-
</Form>
|
|
246
|
-
`);
|
|
247
|
-
const driver = yield createFormItemDriver("formItem");
|
|
248
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
249
|
-
}));
|
|
250
|
-
(0, fixtures_1.test)("renders with maxValue property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
251
|
-
yield initTestBed(`
|
|
252
|
-
<Form>
|
|
253
|
-
<FormItem testId="formItem" type="number" maxValue="100" />
|
|
254
|
-
</Form>
|
|
255
|
-
`);
|
|
256
|
-
const driver = yield createFormItemDriver("formItem");
|
|
257
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
258
|
-
}));
|
|
259
|
-
(0, fixtures_1.test)("renders with pattern property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
260
|
-
yield initTestBed(`
|
|
261
|
-
<Form>
|
|
262
|
-
<FormItem testId="formItem" type="text" pattern="email" />
|
|
263
|
-
</Form>
|
|
264
|
-
`);
|
|
265
|
-
const driver = yield createFormItemDriver("formItem");
|
|
266
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
267
|
-
}));
|
|
268
|
-
(0, fixtures_1.test)("renders with regex property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
269
|
-
yield initTestBed(`
|
|
270
|
-
<Form>
|
|
271
|
-
<FormItem testId="formItem" type="text" regex="^[a-zA-Z]+$" />
|
|
272
|
-
</Form>
|
|
273
|
-
`);
|
|
274
|
-
const driver = yield createFormItemDriver("formItem");
|
|
275
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
276
|
-
}));
|
|
277
|
-
(0, fixtures_1.test)("renders with custom validation messages", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
278
|
-
yield initTestBed(`
|
|
279
|
-
<Form>
|
|
280
|
-
<FormItem
|
|
281
|
-
testId="formItem"
|
|
282
|
-
type="text"
|
|
283
|
-
required="true"
|
|
284
|
-
requiredInvalidMessage="This field is mandatory"
|
|
285
|
-
lengthInvalidMessage="Invalid length"
|
|
286
|
-
rangeInvalidMessage="Out of range"
|
|
287
|
-
patternInvalidMessage="Invalid format"
|
|
288
|
-
regexInvalidMessage="Does not match pattern"
|
|
289
|
-
/>
|
|
290
|
-
</Form>
|
|
291
|
-
`);
|
|
292
|
-
const driver = yield createFormItemDriver("formItem");
|
|
293
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
294
|
-
}));
|
|
295
|
-
(0, fixtures_1.test)("renders with validation severity settings", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
296
|
-
yield initTestBed(`
|
|
297
|
-
<Form>
|
|
298
|
-
<FormItem
|
|
299
|
-
testId="formItem"
|
|
300
|
-
type="text"
|
|
301
|
-
lengthInvalidSeverity="warning"
|
|
302
|
-
rangeInvalidSeverity="error"
|
|
303
|
-
patternInvalidSeverity="warning"
|
|
304
|
-
regexInvalidSeverity="error"
|
|
305
|
-
/>
|
|
306
|
-
</Form>
|
|
307
|
-
`);
|
|
308
|
-
const driver = yield createFormItemDriver("formItem");
|
|
309
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
310
|
-
}));
|
|
311
|
-
(0, fixtures_1.test)("renders with validationMode property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
312
|
-
yield initTestBed(`
|
|
313
|
-
<Form>
|
|
314
|
-
<FormItem testId="formItem" type="text" validationMode="onChanged" />
|
|
315
|
-
</Form>
|
|
316
|
-
`);
|
|
317
|
-
const driver = yield createFormItemDriver("formItem");
|
|
318
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
319
|
-
}));
|
|
320
|
-
(0, fixtures_1.test)("renders with customValidationsDebounce property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
321
|
-
yield initTestBed(`
|
|
322
|
-
<Form>
|
|
323
|
-
<FormItem testId="formItem" type="text" customValidationsDebounce="500" />
|
|
324
|
-
</Form>
|
|
325
|
-
`);
|
|
326
|
-
const driver = yield createFormItemDriver("formItem");
|
|
327
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
328
|
-
}));
|
|
329
|
-
});
|
|
330
|
-
fixtures_1.test.describe("Template Properties", () => {
|
|
331
|
-
(0, fixtures_1.test)("renders with custom inputTemplate", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
332
|
-
yield initTestBed(`
|
|
333
|
-
<Form>
|
|
334
|
-
<FormItem testId="formItem">
|
|
335
|
-
<property name="inputTemplate">
|
|
336
|
-
<TextBox placeholder="Custom input" />
|
|
337
|
-
</property>
|
|
338
|
-
</FormItem>
|
|
339
|
-
</Form>
|
|
340
|
-
`);
|
|
341
|
-
const driver = yield createFormItemDriver("formItem");
|
|
342
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
343
|
-
}));
|
|
344
|
-
});
|
|
345
|
-
fixtures_1.test.describe("Event Handling", () => {
|
|
346
|
-
(0, fixtures_1.test)("fires onValidate event", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
347
|
-
const { testStateDriver } = yield initTestBed(`
|
|
348
|
-
<Form>
|
|
349
|
-
<FormItem
|
|
350
|
-
testId="formItem"
|
|
351
|
-
type="text"
|
|
352
|
-
required="true"
|
|
353
|
-
onValidate="result => testState = result ? 'valid' : 'invalid'"
|
|
354
|
-
/>
|
|
355
|
-
</Form>
|
|
356
|
-
`);
|
|
357
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
358
|
-
const inputDriver = yield createTextBoxDriver(formItemDriver.input);
|
|
359
|
-
// Type some text to trigger validation
|
|
360
|
-
yield inputDriver.field.fill("test value");
|
|
361
|
-
yield inputDriver.field.blur();
|
|
362
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("valid");
|
|
363
|
-
}));
|
|
364
|
-
});
|
|
365
|
-
// =============================================================================
|
|
366
|
-
// ACCESSIBILITY TESTS
|
|
367
|
-
// =============================================================================
|
|
368
|
-
fixtures_1.test.describe("Accessibility", () => {
|
|
369
|
-
(0, fixtures_1.test)("associates label with input using proper labeling", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
370
|
-
yield initTestBed(`
|
|
371
|
-
<Form>
|
|
372
|
-
<FormItem label="Email Address" type="text" />
|
|
373
|
-
</Form>
|
|
374
|
-
`);
|
|
375
|
-
const input = page.getByRole("textbox");
|
|
376
|
-
const label = page.getByText("Email Address");
|
|
377
|
-
yield (0, fixtures_1.expect)(input).toBeVisible();
|
|
378
|
-
yield (0, fixtures_1.expect)(label).toBeVisible();
|
|
379
|
-
}));
|
|
380
|
-
(0, fixtures_1.test)("associates label with checkbox input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
381
|
-
yield initTestBed(`
|
|
382
|
-
<Form>
|
|
383
|
-
<FormItem label="Accept Terms" type="checkbox" />
|
|
384
|
-
</Form>
|
|
385
|
-
`);
|
|
386
|
-
const checkbox = page.getByRole("checkbox");
|
|
387
|
-
const label = page.getByText("Accept Terms");
|
|
388
|
-
yield (0, fixtures_1.expect)(checkbox).toBeVisible();
|
|
389
|
-
yield (0, fixtures_1.expect)(label).toBeVisible();
|
|
390
|
-
}));
|
|
391
|
-
(0, fixtures_1.test)("indicates required fields with aria-required", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
392
|
-
yield initTestBed(`
|
|
393
|
-
<Form>
|
|
394
|
-
<FormItem label="Required Field" type="text" required="true" />
|
|
395
|
-
</Form>
|
|
396
|
-
`);
|
|
397
|
-
const input = page.getByRole("textbox");
|
|
398
|
-
const label = page.getByText("Required Field");
|
|
399
|
-
yield (0, fixtures_1.expect)(input).toBeVisible();
|
|
400
|
-
yield (0, fixtures_1.expect)(label).toBeVisible();
|
|
401
|
-
// FormItem's required functionality may be implemented differently
|
|
402
|
-
// Just verify the component renders properly with required=true
|
|
403
|
-
}));
|
|
404
|
-
(0, fixtures_1.test)("associates validation messages with input using aria-describedby", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormDriver, createFormItemDriver, createTextBoxDriver, }) {
|
|
405
|
-
yield initTestBed(`
|
|
406
|
-
<Form>
|
|
407
|
-
<FormItem
|
|
408
|
-
testId="formItem"
|
|
409
|
-
label="Test Field"
|
|
410
|
-
type="text"
|
|
411
|
-
required="true"
|
|
412
|
-
requiredInvalidMessage="This field is required"
|
|
413
|
-
/>
|
|
414
|
-
</Form>
|
|
415
|
-
`);
|
|
416
|
-
const formDriver = yield createFormDriver();
|
|
417
|
-
const formItemDriver = yield createFormItemDriver("formItem");
|
|
418
|
-
// Submit form to trigger validation
|
|
419
|
-
yield formDriver.submitForm();
|
|
420
|
-
// Check that validation message appears in the component
|
|
421
|
-
yield (0, fixtures_1.expect)(formItemDriver.component).toContainText("This field is required");
|
|
422
|
-
}));
|
|
423
|
-
(0, fixtures_1.test)("supports keyboard navigation for text input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
424
|
-
yield initTestBed(`
|
|
425
|
-
<Form>
|
|
426
|
-
<FormItem label="Text Field" type="text" />
|
|
427
|
-
</Form>
|
|
428
|
-
`);
|
|
429
|
-
const input = page.getByRole("textbox");
|
|
430
|
-
yield input.focus();
|
|
431
|
-
yield (0, fixtures_1.expect)(input).toBeFocused();
|
|
432
|
-
yield input.press("Tab");
|
|
433
|
-
yield (0, fixtures_1.expect)(input).not.toBeFocused();
|
|
434
|
-
}));
|
|
435
|
-
(0, fixtures_1.test)("supports keyboard navigation for checkbox", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
436
|
-
yield initTestBed(`
|
|
437
|
-
<Form>
|
|
438
|
-
<FormItem label="Checkbox Field" type="checkbox" />
|
|
439
|
-
</Form>
|
|
440
|
-
`);
|
|
441
|
-
const checkbox = page.getByRole("checkbox");
|
|
442
|
-
yield checkbox.focus();
|
|
443
|
-
yield (0, fixtures_1.expect)(checkbox).toBeFocused();
|
|
444
|
-
yield checkbox.press("Space");
|
|
445
|
-
yield (0, fixtures_1.expect)(checkbox).toBeChecked();
|
|
446
|
-
yield checkbox.press("Space");
|
|
447
|
-
yield (0, fixtures_1.expect)(checkbox).not.toBeChecked();
|
|
448
|
-
}));
|
|
449
|
-
(0, fixtures_1.test)("provides accessible validation state announcements", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormDriver, page, }) {
|
|
450
|
-
yield initTestBed(`
|
|
451
|
-
<Form>
|
|
452
|
-
<FormItem
|
|
453
|
-
label="Required Field"
|
|
454
|
-
type="text"
|
|
455
|
-
required="true"
|
|
456
|
-
requiredInvalidMessage="This field is required"
|
|
457
|
-
/>
|
|
458
|
-
</Form>
|
|
459
|
-
`);
|
|
460
|
-
const formDriver = yield createFormDriver();
|
|
461
|
-
// Submit form to trigger validation
|
|
462
|
-
yield formDriver.submitForm();
|
|
463
|
-
// Check that validation message appears somewhere on the page
|
|
464
|
-
yield (0, fixtures_1.expect)(page.getByText("This field is required")).toBeVisible();
|
|
465
|
-
}));
|
|
466
|
-
(0, fixtures_1.test)("maintains correct role for different input types", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
467
|
-
yield initTestBed(`
|
|
468
|
-
<Form>
|
|
469
|
-
<FormItem label="Text Field" type="text" />
|
|
470
|
-
<FormItem label="Checkbox Field" type="checkbox" />
|
|
471
|
-
<FormItem label="Number Field" type="number" />
|
|
472
|
-
</Form>
|
|
473
|
-
`);
|
|
474
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox").first()).toBeVisible();
|
|
475
|
-
yield (0, fixtures_1.expect)(page.getByRole("checkbox")).toBeVisible();
|
|
476
|
-
// Number inputs in XMLUI appear as textbox with inputmode="numeric"
|
|
477
|
-
const numberInputs = page.getByRole("textbox");
|
|
478
|
-
yield (0, fixtures_1.expect)(numberInputs).toHaveCount(2); // text and number both use textbox role
|
|
479
|
-
}));
|
|
480
|
-
});
|
|
481
|
-
// =============================================================================
|
|
482
|
-
// THEME VARIABLE TESTS
|
|
483
|
-
// =============================================================================
|
|
484
|
-
fixtures_1.test.describe("Theme Variables", () => {
|
|
485
|
-
(0, fixtures_1.test)("applies textColor-FormItemLabel theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
486
|
-
yield initTestBed(`
|
|
487
|
-
<Form>
|
|
488
|
-
<FormItem testId="formItem" label="Themed Label" />
|
|
489
|
-
</Form>
|
|
490
|
-
`, {
|
|
491
|
-
testThemeVars: {
|
|
492
|
-
"textColor-FormItemLabel": "rgb(255, 0, 0)",
|
|
493
|
-
},
|
|
494
|
-
});
|
|
495
|
-
const driver = yield createFormItemDriver("formItem");
|
|
496
|
-
yield (0, fixtures_1.expect)(driver.label).toHaveCSS("color", "rgb(255, 0, 0)");
|
|
497
|
-
}));
|
|
498
|
-
(0, fixtures_1.test)("applies fontSize-FormItemLabel theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
499
|
-
yield initTestBed(`
|
|
500
|
-
<Form>
|
|
501
|
-
<FormItem testId="formItem" label="Sized Label" />
|
|
502
|
-
</Form>
|
|
503
|
-
`, {
|
|
504
|
-
testThemeVars: {
|
|
505
|
-
"fontSize-FormItemLabel": "18px",
|
|
506
|
-
},
|
|
507
|
-
});
|
|
508
|
-
const driver = yield createFormItemDriver("formItem");
|
|
509
|
-
yield (0, fixtures_1.expect)(driver.label).toHaveCSS("font-size", "18px");
|
|
510
|
-
}));
|
|
511
|
-
(0, fixtures_1.test)("applies fontWeight-FormItemLabel theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
512
|
-
yield initTestBed(`
|
|
513
|
-
<Form>
|
|
514
|
-
<FormItem testId="formItem" label="Bold Label" />
|
|
515
|
-
</Form>
|
|
516
|
-
`, {
|
|
517
|
-
testThemeVars: {
|
|
518
|
-
"fontWeight-FormItemLabel": "700",
|
|
519
|
-
},
|
|
520
|
-
});
|
|
521
|
-
const driver = yield createFormItemDriver("formItem");
|
|
522
|
-
yield (0, fixtures_1.expect)(driver.label).toHaveCSS("font-weight", "700");
|
|
523
|
-
}));
|
|
524
|
-
(0, fixtures_1.test)("applies fontStyle-FormItemLabel theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
525
|
-
yield initTestBed(`
|
|
526
|
-
<Form>
|
|
527
|
-
<FormItem testId="formItem" label="Italic Label" />
|
|
528
|
-
</Form>
|
|
529
|
-
`, {
|
|
530
|
-
testThemeVars: {
|
|
531
|
-
"fontStyle-FormItemLabel": "italic",
|
|
532
|
-
},
|
|
533
|
-
});
|
|
534
|
-
const driver = yield createFormItemDriver("formItem");
|
|
535
|
-
yield (0, fixtures_1.expect)(driver.label).toHaveCSS("font-style", "italic");
|
|
536
|
-
}));
|
|
537
|
-
(0, fixtures_1.test)("applies textTransform-FormItemLabel theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
538
|
-
yield initTestBed(`
|
|
539
|
-
<Form>
|
|
540
|
-
<FormItem testId="formItem" label="uppercase label" />
|
|
541
|
-
</Form>
|
|
542
|
-
`, {
|
|
543
|
-
testThemeVars: {
|
|
544
|
-
"textTransform-FormItemLabel": "uppercase",
|
|
545
|
-
},
|
|
546
|
-
});
|
|
547
|
-
const driver = yield createFormItemDriver("formItem");
|
|
548
|
-
yield (0, fixtures_1.expect)(driver.label).toHaveCSS("text-transform", "uppercase");
|
|
549
|
-
}));
|
|
550
|
-
(0, fixtures_1.test)("applies textColor-FormItemLabel-requiredMark theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
551
|
-
yield initTestBed(`
|
|
552
|
-
<Form>
|
|
553
|
-
<FormItem testId="formItem" label="Required Field" required="true" />
|
|
554
|
-
</Form>
|
|
555
|
-
`, {
|
|
556
|
-
testThemeVars: {
|
|
557
|
-
"textColor-FormItemLabel-requiredMark": "rgb(0, 255, 0)",
|
|
558
|
-
},
|
|
559
|
-
});
|
|
560
|
-
const driver = yield createFormItemDriver("formItem");
|
|
561
|
-
// The required mark styling should be applied
|
|
562
|
-
yield (0, fixtures_1.expect)(driver.label).toBeVisible();
|
|
563
|
-
}));
|
|
564
|
-
});
|
|
565
|
-
// =============================================================================
|
|
566
|
-
// OTHER EDGE CASE TESTS
|
|
567
|
-
// =============================================================================
|
|
568
|
-
fixtures_1.test.describe("Other Edge Cases", () => {
|
|
569
|
-
(0, fixtures_1.test)("handles null and undefined properties gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
570
|
-
yield initTestBed(`
|
|
571
|
-
<Form>
|
|
572
|
-
<FormItem testId="formItem" label="{null}" type="{undefined}" />
|
|
573
|
-
</Form>
|
|
574
|
-
`);
|
|
575
|
-
const driver = yield createFormItemDriver("formItem");
|
|
576
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
577
|
-
}));
|
|
578
|
-
(0, fixtures_1.test)("handles empty string properties gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
579
|
-
yield initTestBed(`
|
|
580
|
-
<Form>
|
|
581
|
-
<FormItem testId="formItem" label="" bindTo="" />
|
|
582
|
-
</Form>
|
|
583
|
-
`);
|
|
584
|
-
const driver = yield createFormItemDriver("formItem");
|
|
585
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
586
|
-
}));
|
|
587
|
-
(0, fixtures_1.test)("handles special characters in label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
588
|
-
yield initTestBed(`
|
|
589
|
-
<Form>
|
|
590
|
-
<FormItem testId="formItem" label="Test with émojis 🚀 & quotes and unicode 👨👩👧👦" />
|
|
591
|
-
</Form>
|
|
592
|
-
`);
|
|
593
|
-
const driver = yield createFormItemDriver("formItem");
|
|
594
|
-
yield (0, fixtures_1.expect)(driver.label).toHaveText("Test with émojis 🚀 & quotes and unicode 👨👩👧👦");
|
|
595
|
-
}));
|
|
596
|
-
(0, fixtures_1.test)("handles Chinese characters in label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
597
|
-
yield initTestBed(`
|
|
598
|
-
<Form>
|
|
599
|
-
<FormItem testId="formItem" label="测试中文标签" />
|
|
600
|
-
</Form>
|
|
601
|
-
`);
|
|
602
|
-
const driver = yield createFormItemDriver("formItem");
|
|
603
|
-
yield (0, fixtures_1.expect)(driver.label).toHaveText("测试中文标签");
|
|
604
|
-
}));
|
|
605
|
-
(0, fixtures_1.test)("handles invalid type gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
606
|
-
yield initTestBed(`
|
|
607
|
-
<Form>
|
|
608
|
-
<FormItem testId="formItem" type="invalidType" />
|
|
609
|
-
</Form>
|
|
610
|
-
`);
|
|
611
|
-
const driver = yield createFormItemDriver("formItem");
|
|
612
|
-
// Component may be hidden with invalid type - test for graceful handling
|
|
613
|
-
const isVisible = yield driver.component.isVisible();
|
|
614
|
-
if (isVisible) {
|
|
615
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
616
|
-
}
|
|
617
|
-
else {
|
|
618
|
-
// It's acceptable for component to be hidden with invalid type
|
|
619
|
-
(0, fixtures_1.expect)(isVisible).toBe(false);
|
|
620
|
-
}
|
|
621
|
-
}));
|
|
622
|
-
(0, fixtures_1.test)("handles negative values for numeric properties", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
623
|
-
yield initTestBed(`
|
|
624
|
-
<Form>
|
|
625
|
-
<FormItem
|
|
626
|
-
testId="formItem"
|
|
627
|
-
type="text"
|
|
628
|
-
minLength="-5"
|
|
629
|
-
maxLength="-1"
|
|
630
|
-
minValue="-100"
|
|
631
|
-
maxValue="-10"
|
|
632
|
-
/>
|
|
633
|
-
</Form>
|
|
634
|
-
`);
|
|
635
|
-
const driver = yield createFormItemDriver("formItem");
|
|
636
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
637
|
-
}));
|
|
638
|
-
(0, fixtures_1.test)("handles very large numbers for properties", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
639
|
-
yield initTestBed(`
|
|
640
|
-
<Form>
|
|
641
|
-
<FormItem
|
|
642
|
-
testId="formItem"
|
|
643
|
-
type="number"
|
|
644
|
-
minValue="999999999"
|
|
645
|
-
maxValue="9999999999"
|
|
646
|
-
customValidationsDebounce="999999"
|
|
647
|
-
/>
|
|
648
|
-
</Form>
|
|
649
|
-
`);
|
|
650
|
-
const driver = yield createFormItemDriver("formItem");
|
|
651
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
652
|
-
}));
|
|
653
|
-
(0, fixtures_1.test)("handles object values for string properties gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
654
|
-
yield initTestBed(`
|
|
655
|
-
<Form>
|
|
656
|
-
<FormItem testId="formItem" label="Object Label" />
|
|
657
|
-
</Form>
|
|
658
|
-
`);
|
|
659
|
-
const driver = yield createFormItemDriver("formItem");
|
|
660
|
-
// Component should handle this gracefully
|
|
661
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
662
|
-
}));
|
|
663
|
-
(0, fixtures_1.test)("handles extremely long label text", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver }) {
|
|
664
|
-
const longLabel = "This is an extremely long label that contains a lot of text and should test how the component handles very long strings that might cause layout issues or performance problems in the user interface";
|
|
665
|
-
yield initTestBed(`
|
|
666
|
-
<Form>
|
|
667
|
-
<FormItem testId="formItem" label="${longLabel}" />
|
|
668
|
-
</Form>
|
|
669
|
-
`);
|
|
670
|
-
const driver = yield createFormItemDriver("formItem");
|
|
671
|
-
yield (0, fixtures_1.expect)(driver.label).toHaveText(longLabel);
|
|
672
|
-
}));
|
|
673
|
-
(0, fixtures_1.test)("handles validation with conflicting min/max values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, }) {
|
|
674
|
-
yield initTestBed(`
|
|
675
|
-
<Form>
|
|
676
|
-
<FormItem
|
|
677
|
-
testId="formItem"
|
|
678
|
-
type="number"
|
|
679
|
-
minValue="100"
|
|
680
|
-
maxValue="50"
|
|
681
|
-
minLength="10"
|
|
682
|
-
maxLength="5"
|
|
683
|
-
/>
|
|
684
|
-
</Form>
|
|
685
|
-
`);
|
|
686
|
-
const driver = yield createFormItemDriver("formItem");
|
|
687
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
688
|
-
}));
|
|
689
|
-
(0, fixtures_1.test)("handles multiple FormItems without bindTo independently", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
690
|
-
yield initTestBed(`
|
|
691
|
-
<Form>
|
|
692
|
-
<FormItem testId="formItem1" type="text" initialValue="First" />
|
|
693
|
-
<FormItem testId="formItem2" type="text" initialValue="Second" />
|
|
694
|
-
</Form>
|
|
695
|
-
`);
|
|
696
|
-
const driver1 = yield createFormItemDriver("formItem1");
|
|
697
|
-
const driver2 = yield createFormItemDriver("formItem2");
|
|
698
|
-
const input1 = yield createTextBoxDriver(driver1.input);
|
|
699
|
-
const input2 = yield createTextBoxDriver(driver2.input);
|
|
700
|
-
yield (0, fixtures_1.expect)(input1.field).toHaveValue("First");
|
|
701
|
-
yield (0, fixtures_1.expect)(input2.field).toHaveValue("Second");
|
|
702
|
-
// Modify one and ensure the other is unaffected
|
|
703
|
-
yield input1.field.fill("Modified First");
|
|
704
|
-
yield (0, fixtures_1.expect)(input1.field).toHaveValue("Modified First");
|
|
705
|
-
yield (0, fixtures_1.expect)(input2.field).toHaveValue("Second");
|
|
706
|
-
}));
|
|
707
|
-
["onChange", "onLostFocus", "errorLate"].forEach((mode) => (0, fixtures_1.test)(`validationMode=${mode}: handle empty input & focus`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
708
|
-
yield initTestBed(`
|
|
709
|
-
<Form>
|
|
710
|
-
<FormItem testId="formItem" label="Test Label" validationMode="${mode}" minLength="3" />
|
|
711
|
-
</Form>
|
|
712
|
-
`);
|
|
713
|
-
const driver = yield createFormItemDriver("formItem");
|
|
714
|
-
const input = yield createTextBoxDriver(driver.input);
|
|
715
|
-
yield input.field.focus({ timeout: 500 });
|
|
716
|
-
yield input.field.blur();
|
|
717
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).not.toBeVisible();
|
|
718
|
-
})));
|
|
719
|
-
(0, fixtures_1.test)("validationMode=onChanged: validates input on change", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
720
|
-
yield initTestBed(`
|
|
721
|
-
<Form>
|
|
722
|
-
<FormItem testId="formItem" label="Test Label" validationMode="onChanged" minLength="3" />
|
|
723
|
-
</Form>
|
|
724
|
-
`);
|
|
725
|
-
const driver = yield createFormItemDriver("formItem");
|
|
726
|
-
const input = yield createTextBoxDriver(driver.input);
|
|
727
|
-
yield input.field.fill("v");
|
|
728
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).toBeVisible();
|
|
729
|
-
yield input.field.fill("va");
|
|
730
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).toBeVisible();
|
|
731
|
-
yield input.field.fill("val");
|
|
732
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).not.toBeVisible();
|
|
733
|
-
yield input.field.fill("va");
|
|
734
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).toBeVisible();
|
|
735
|
-
}));
|
|
736
|
-
(0, fixtures_1.test)("validationMode=onChanged: error still displayed on blur", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
737
|
-
yield initTestBed(`
|
|
738
|
-
<Form>
|
|
739
|
-
<FormItem testId="formItem" label="Test Label" validationMode="onChanged" minLength="3" />
|
|
740
|
-
</Form>
|
|
741
|
-
`);
|
|
742
|
-
const driver = yield createFormItemDriver("formItem");
|
|
743
|
-
const input = yield createTextBoxDriver(driver.input);
|
|
744
|
-
yield input.field.fill("v");
|
|
745
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).toBeVisible();
|
|
746
|
-
yield input.field.blur();
|
|
747
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).toBeVisible();
|
|
748
|
-
}));
|
|
749
|
-
(0, fixtures_1.test)("validationMode=onLostFocus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, page, }) {
|
|
750
|
-
yield initTestBed(`
|
|
751
|
-
<Form>
|
|
752
|
-
<FormItem testId="formItem" label="Test Label" validationMode="onLostFocus" minLength="2" />
|
|
753
|
-
</Form>
|
|
754
|
-
`);
|
|
755
|
-
const driver = yield createFormItemDriver("formItem");
|
|
756
|
-
const input = yield createTextBoxDriver(driver.input);
|
|
757
|
-
yield input.field.focus({ timeout: 500 });
|
|
758
|
-
yield page.keyboard.type("v");
|
|
759
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).not.toBeVisible();
|
|
760
|
-
yield input.field.blur();
|
|
761
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).toBeVisible();
|
|
762
|
-
yield input.field.focus({ timeout: 500 });
|
|
763
|
-
yield page.keyboard.type("a");
|
|
764
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).not.toBeVisible();
|
|
765
|
-
yield input.field.blur();
|
|
766
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).not.toBeVisible();
|
|
767
|
-
}));
|
|
768
|
-
(0, fixtures_1.test)("validationMode=errorLate: handle multiple focus & blur", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
769
|
-
yield initTestBed(`
|
|
770
|
-
<Form>
|
|
771
|
-
<FormItem testId="formItem" label="Test Label" validationMode="errorLate" minLength="3" />
|
|
772
|
-
</Form>
|
|
773
|
-
`);
|
|
774
|
-
const driver = yield createFormItemDriver("formItem");
|
|
775
|
-
const input = yield createTextBoxDriver(driver.input);
|
|
776
|
-
yield input.field.focus({ timeout: 500 });
|
|
777
|
-
yield input.field.blur({ timeout: 500 });
|
|
778
|
-
yield input.field.focus({ timeout: 500 });
|
|
779
|
-
yield input.field.blur();
|
|
780
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).not.toBeVisible();
|
|
781
|
-
}));
|
|
782
|
-
(0, fixtures_1.test)("validationMode=errorLate: does not display error for first input until blur", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, page, }) {
|
|
783
|
-
yield initTestBed(`
|
|
784
|
-
<Form>
|
|
785
|
-
<FormItem testId="formItem" label="Test Label" validationMode="errorLate" minLength="3" />
|
|
786
|
-
</Form>
|
|
787
|
-
`);
|
|
788
|
-
const driver = yield createFormItemDriver("formItem");
|
|
789
|
-
const input = yield createTextBoxDriver(driver.input);
|
|
790
|
-
yield input.field.focus({ timeout: 500 });
|
|
791
|
-
yield page.keyboard.type("v");
|
|
792
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).not.toBeVisible();
|
|
793
|
-
yield input.field.blur();
|
|
794
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).toBeVisible();
|
|
795
|
-
}));
|
|
796
|
-
(0, fixtures_1.test)("validationMode=errorLate: no error displayed on invalid -> valid -> invalid until first blur", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
797
|
-
yield initTestBed(`
|
|
798
|
-
<Form>
|
|
799
|
-
<FormItem testId="formItem" label="Test Label" validationMode="errorLate" minLength="3" />
|
|
800
|
-
</Form>
|
|
801
|
-
`);
|
|
802
|
-
const driver = yield createFormItemDriver("formItem");
|
|
803
|
-
const input = yield createTextBoxDriver(driver.input);
|
|
804
|
-
yield input.field.fill("value");
|
|
805
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).not.toBeVisible();
|
|
806
|
-
yield input.field.fill("va");
|
|
807
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).not.toBeVisible();
|
|
808
|
-
yield input.field.blur();
|
|
809
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).toBeVisible();
|
|
810
|
-
}));
|
|
811
|
-
(0, fixtures_1.test)("validationMode=errorLate: still display error on refocus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
812
|
-
yield initTestBed(`
|
|
813
|
-
<Form>
|
|
814
|
-
<FormItem testId="formItem" label="Test Label" validationMode="errorLate" minLength="3" />
|
|
815
|
-
</Form>
|
|
816
|
-
`);
|
|
817
|
-
const driver = yield createFormItemDriver("formItem");
|
|
818
|
-
const input = yield createTextBoxDriver(driver.input);
|
|
819
|
-
yield input.field.fill("va");
|
|
820
|
-
yield input.field.blur({ timeout: 500 });
|
|
821
|
-
yield input.field.focus();
|
|
822
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).toBeVisible();
|
|
823
|
-
}));
|
|
824
|
-
(0, fixtures_1.test)("validationMode=errorLate: invalid -> valid removes error", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
825
|
-
yield initTestBed(`
|
|
826
|
-
<Form>
|
|
827
|
-
<FormItem testId="formItem" label="Test Label" validationMode="errorLate" minLength="3" />
|
|
828
|
-
</Form>
|
|
829
|
-
`);
|
|
830
|
-
const driver = yield createFormItemDriver("formItem");
|
|
831
|
-
const input = yield createTextBoxDriver(driver.input);
|
|
832
|
-
yield input.field.fill("va");
|
|
833
|
-
yield input.field.blur({ timeout: 500 });
|
|
834
|
-
yield input.field.focus({ timeout: 500 });
|
|
835
|
-
yield input.field.fill("val");
|
|
836
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).not.toBeVisible();
|
|
837
|
-
yield input.field.blur();
|
|
838
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).not.toBeVisible();
|
|
839
|
-
}));
|
|
840
|
-
(0, fixtures_1.test)("validationMode=errorLate: after invalid -> valid, show error on blur", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createFormItemDriver, createTextBoxDriver, }) {
|
|
841
|
-
yield initTestBed(`
|
|
842
|
-
<Form>
|
|
843
|
-
<FormItem testId="formItem" label="Test Label" validationMode="errorLate" minLength="3" />
|
|
844
|
-
</Form>
|
|
845
|
-
`);
|
|
846
|
-
const driver = yield createFormItemDriver("formItem");
|
|
847
|
-
const input = yield createTextBoxDriver(driver.input);
|
|
848
|
-
yield input.field.fill("va");
|
|
849
|
-
yield input.field.blur({ timeout: 500 });
|
|
850
|
-
yield input.field.focus({ timeout: 500 });
|
|
851
|
-
yield input.field.fill("val", { timeout: 500 });
|
|
852
|
-
yield input.field.fill("va");
|
|
853
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).not.toBeVisible();
|
|
854
|
-
yield input.field.blur();
|
|
855
|
-
yield (0, fixtures_1.expect)(driver.validationStatusIndicator).toBeVisible();
|
|
856
|
-
}));
|
|
857
|
-
(0, fixtures_1.test)("handles FormItem with no Form parent gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
858
|
-
yield initTestBed(`<FormItem label="Standalone FormItem" type="text" />`);
|
|
859
|
-
const field = page.getByRole("textbox");
|
|
860
|
-
yield (0, fixtures_1.expect)(field).not.toBeVisible();
|
|
861
|
-
yield (0, fixtures_1.expect)(page.locator("[data-error-boundary]")).toBeVisible();
|
|
862
|
-
}));
|
|
863
|
-
// =============================================================================
|
|
864
|
-
// NOSUBMIT PROPERTY TESTS
|
|
865
|
-
// =============================================================================
|
|
866
|
-
fixtures_1.test.describe("noSubmit property", () => {
|
|
867
|
-
(0, fixtures_1.test)("excludes field from submission when noSubmit is true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createFormItemDriver, createTextBoxDriver, }) {
|
|
868
|
-
const { testStateDriver } = yield initTestBed(`
|
|
869
|
-
<Form onSubmit="data => testState = data">
|
|
870
|
-
<FormItem testId="field1" label="Included Field" bindTo="included" initialValue="visible" />
|
|
871
|
-
<FormItem testId="field2" label="Excluded Field" bindTo="excluded" initialValue="hidden" noSubmit="true" />
|
|
872
|
-
</Form>
|
|
873
|
-
`);
|
|
874
|
-
const driver1 = yield createFormItemDriver("field1");
|
|
875
|
-
const input1 = yield createTextBoxDriver(driver1.input);
|
|
876
|
-
yield input1.field.fill("submitted value");
|
|
877
|
-
const driver2 = yield createFormItemDriver("field2");
|
|
878
|
-
const input2 = yield createTextBoxDriver(driver2.input);
|
|
879
|
-
yield input2.field.fill("not submitted");
|
|
880
|
-
yield page.getByRole("button", { name: "Save" }).click();
|
|
881
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual({
|
|
882
|
-
included: "submitted value",
|
|
883
|
-
});
|
|
884
|
-
}));
|
|
885
|
-
(0, fixtures_1.test)("includes field in submission when noSubmit is false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createFormItemDriver, createTextBoxDriver, }) {
|
|
886
|
-
const { testStateDriver } = yield initTestBed(`
|
|
887
|
-
<Form onSubmit="data => testState = data">
|
|
888
|
-
<FormItem testId="field1" label="Field 1" bindTo="field1" initialValue="value1" noSubmit="false" />
|
|
889
|
-
<FormItem testId="field2" label="Field 2" bindTo="field2" initialValue="value2" />
|
|
890
|
-
</Form>
|
|
891
|
-
`);
|
|
892
|
-
yield page.getByRole("button", { name: "Save" }).click();
|
|
893
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual({
|
|
894
|
-
field1: "value1",
|
|
895
|
-
field2: "value2",
|
|
896
|
-
});
|
|
897
|
-
}));
|
|
898
|
-
(0, fixtures_1.test)("includes field by default when noSubmit is not specified", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createFormItemDriver, createTextBoxDriver, }) {
|
|
899
|
-
const { testStateDriver } = yield initTestBed(`
|
|
900
|
-
<Form onSubmit="data => testState = data">
|
|
901
|
-
<FormItem testId="field1" label="Field 1" bindTo="field1" initialValue="value1" />
|
|
902
|
-
<FormItem testId="field2" label="Field 2" bindTo="field2" initialValue="value2" />
|
|
903
|
-
</Form>
|
|
904
|
-
`);
|
|
905
|
-
yield page.getByRole("button", { name: "Save" }).click();
|
|
906
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual({
|
|
907
|
-
field1: "value1",
|
|
908
|
-
field2: "value2",
|
|
909
|
-
});
|
|
910
|
-
}));
|
|
911
|
-
(0, fixtures_1.test)("excludes field when multiple FormItems with same bindTo all have noSubmit true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createFormItemDriver, createTextBoxDriver, }) {
|
|
912
|
-
const { testStateDriver } = yield initTestBed(`
|
|
913
|
-
<Form onSubmit="data => testState = data">
|
|
914
|
-
<FormItem testId="field1" label="FormItem 1" bindTo="shared" initialValue="first" noSubmit="true" />
|
|
915
|
-
<FormItem testId="field2" label="FormItem 2" bindTo="shared" initialValue="second" noSubmit="true" />
|
|
916
|
-
<FormItem testId="field3" label="Other Field" bindTo="other" initialValue="included" />
|
|
917
|
-
</Form>
|
|
918
|
-
`);
|
|
919
|
-
yield page.getByRole("button", { name: "Save" }).click();
|
|
920
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual({
|
|
921
|
-
other: "included",
|
|
922
|
-
});
|
|
923
|
-
}));
|
|
924
|
-
(0, fixtures_1.test)("excludes field when any FormItem with same bindTo has noSubmit true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createFormItemDriver, createTextBoxDriver, }) {
|
|
925
|
-
const { testStateDriver } = yield initTestBed(`
|
|
926
|
-
<Form onSubmit="data => testState = data">
|
|
927
|
-
<FormItem testId="field1" label="FormItem 1" bindTo="shared" initialValue="first" noSubmit="true" />
|
|
928
|
-
<FormItem testId="field2" label="FormItem 2" bindTo="shared" initialValue="second" noSubmit="false" />
|
|
929
|
-
<FormItem testId="field3" label="Other Field" bindTo="other" initialValue="included" />
|
|
930
|
-
</Form>
|
|
931
|
-
`);
|
|
932
|
-
yield page.getByRole("button", { name: "Save" }).click();
|
|
933
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual({
|
|
934
|
-
other: "included",
|
|
935
|
-
});
|
|
936
|
-
}));
|
|
937
|
-
(0, fixtures_1.test)("excludes field when any FormItem with same bindTo has noSubmit true (mixed order)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createFormItemDriver, createTextBoxDriver, }) {
|
|
938
|
-
const { testStateDriver } = yield initTestBed(`
|
|
939
|
-
<Form onSubmit="data => testState = data">
|
|
940
|
-
<FormItem testId="field1" label="FormItem 1" bindTo="shared" initialValue="first" noSubmit="false" />
|
|
941
|
-
<FormItem testId="field2" label="FormItem 2" bindTo="shared" initialValue="second" noSubmit="true" />
|
|
942
|
-
<FormItem testId="field3" label="Other Field" bindTo="other" initialValue="included" />
|
|
943
|
-
</Form>
|
|
944
|
-
`);
|
|
945
|
-
yield page.getByRole("button", { name: "Save" }).click();
|
|
946
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual({
|
|
947
|
-
other: "included",
|
|
948
|
-
});
|
|
949
|
-
}));
|
|
950
|
-
(0, fixtures_1.test)("field still participates in validation when noSubmit is true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createFormItemDriver, createTextBoxDriver, }) {
|
|
951
|
-
const { testStateDriver } = yield initTestBed(`
|
|
952
|
-
<Form onSubmit="data => testState = data">
|
|
953
|
-
<FormItem
|
|
954
|
-
testId="field1"
|
|
955
|
-
label="Required No Submit"
|
|
956
|
-
bindTo="excluded"
|
|
957
|
-
required="true"
|
|
958
|
-
noSubmit="true"
|
|
959
|
-
/>
|
|
960
|
-
</Form>
|
|
961
|
-
`);
|
|
962
|
-
// Try to submit with empty required field
|
|
963
|
-
yield page.getByRole("button", { name: "Save" }).click();
|
|
964
|
-
// Form should not submit due to validation error
|
|
965
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBeNull();
|
|
966
|
-
// Fill the required field
|
|
967
|
-
const driver = yield createFormItemDriver("field1");
|
|
968
|
-
const input = yield createTextBoxDriver(driver.input);
|
|
969
|
-
yield input.field.fill("value");
|
|
970
|
-
// Now submit should succeed but field should not be in data
|
|
971
|
-
yield page.getByRole("button", { name: "Save" }).click();
|
|
972
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual({});
|
|
973
|
-
}));
|
|
974
|
-
(0, fixtures_1.test)("noSubmit works with different input types", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createFormItemDriver, }) {
|
|
975
|
-
const { testStateDriver } = yield initTestBed(`
|
|
976
|
-
<Form onSubmit="data => testState = data">
|
|
977
|
-
<FormItem testId="text" label="Text" type="text" bindTo="text" initialValue="text" noSubmit="true" />
|
|
978
|
-
<FormItem testId="number" label="Number" type="number" bindTo="number" initialValue="42" noSubmit="true" />
|
|
979
|
-
<FormItem testId="checkbox" label="Checkbox" type="checkbox" bindTo="checkbox" initialValue="true" noSubmit="true" />
|
|
980
|
-
<FormItem testId="included" label="Included" bindTo="included" initialValue="visible" />
|
|
981
|
-
</Form>
|
|
982
|
-
`);
|
|
983
|
-
yield page.getByRole("button", { name: "Save" }).click();
|
|
984
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual({
|
|
985
|
-
included: "visible",
|
|
986
|
-
});
|
|
987
|
-
}));
|
|
988
|
-
(0, fixtures_1.test)("noSubmit works with select type", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
989
|
-
const { testStateDriver } = yield initTestBed(`
|
|
990
|
-
<Form onSubmit="data => testState = data">
|
|
991
|
-
<FormItem testId="select" label="Select" type="select" bindTo="select" initialValue="opt1" noSubmit="true">
|
|
992
|
-
<Option value="opt1" label="Option 1" />
|
|
993
|
-
<Option value="opt2" label="Option 2" />
|
|
994
|
-
</FormItem>
|
|
995
|
-
<FormItem testId="included" label="Included" bindTo="included" initialValue="visible" />
|
|
996
|
-
</Form>
|
|
997
|
-
`);
|
|
998
|
-
yield page.getByRole("button", { name: "Save" }).click();
|
|
999
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual({
|
|
1000
|
-
included: "visible",
|
|
1001
|
-
});
|
|
1002
|
-
}));
|
|
1003
|
-
(0, fixtures_1.test)("noSubmit field value changes do not affect submission data", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createFormItemDriver, createTextBoxDriver, }) {
|
|
1004
|
-
const { testStateDriver } = yield initTestBed(`
|
|
1005
|
-
<Form onSubmit="data => testState = data">
|
|
1006
|
-
<FormItem testId="excluded" label="Excluded" bindTo="excluded" initialValue="initial" noSubmit="true" />
|
|
1007
|
-
<FormItem testId="included" label="Included" bindTo="included" initialValue="value" />
|
|
1008
|
-
</Form>
|
|
1009
|
-
`);
|
|
1010
|
-
const excludedDriver = yield createFormItemDriver("excluded");
|
|
1011
|
-
const excludedInput = yield createTextBoxDriver(excludedDriver.input);
|
|
1012
|
-
yield excludedInput.field.fill("changed value");
|
|
1013
|
-
const includedDriver = yield createFormItemDriver("included");
|
|
1014
|
-
const includedInput = yield createTextBoxDriver(includedDriver.input);
|
|
1015
|
-
yield includedInput.field.fill("modified");
|
|
1016
|
-
yield page.getByRole("button", { name: "Save" }).click();
|
|
1017
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual({
|
|
1018
|
-
included: "modified",
|
|
1019
|
-
});
|
|
1020
|
-
}));
|
|
1021
|
-
});
|
|
1022
|
-
});
|