xmlui 0.11.3 → 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-DSUDwtWN.js → index-x4orhWfi.js} +2054 -2285
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-DdH1iCH-.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-D27cn-XB.js → metadata-utils-2bsMr4Gd.js} +57 -26
- package/dist/lib/{server-common-hq0poDwA.js → server-common-DI3W4cob.js} +4140 -3741
- 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-Tooy42EB.js → transform-CQ_6R-43.js} +174 -127
- package/dist/lib/vite-xmlui-plugin.d.ts +10 -0
- package/dist/lib/vite-xmlui-plugin.js +8316 -0
- package/dist/lib/{xmlui-parser-BZZ430Wm.js → xmlui-parser-CW8YmGjO.js} +10 -11
- package/dist/lib/xmlui-parser.d.ts +2 -0
- package/dist/lib/xmlui-parser.js +2 -2
- package/dist/lib/{xmlui-serializer-D9D2mQ8m.js → xmlui-serializer-CeCcgdVR.js} +19 -19
- package/dist/lib/xmlui.d.ts +124 -2
- package/dist/lib/xmlui.js +8 -3
- package/dist/metadata/{apiInterceptorWorker-Dql7QGw2.js → apiInterceptorWorker-Wgm2_zjg.js} +124 -149
- package/dist/metadata/{collectedComponentMetadata-C8Lr9TFe.js → collectedComponentMetadata-BGdap_gu.js} +2100 -2276
- package/dist/metadata/{initMock-CWwgOjW_.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 +175 -4
- package/dist/standalone/xmlui-standalone.umd.js +36 -37
- package/package.json +20 -50
- package/dist/lib/vite-xmlui-plugin/index.js +0 -13968
- 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 -433
- 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 -969
- 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 -312
- 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 -952
- 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 -954
- 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 -488
- 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 -671
- 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 -643
- 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 -114
- package/dist/scripts/src/components/Splitter/Splitter.spec.js +0 -631
- package/dist/scripts/src/components/Splitter/SplitterNative.js +0 -203
- 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 -836
- 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 -794
- 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 -131
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +0 -725
- 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 -1160
- 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 -200
- 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 -135
- 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 -430
- 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 -626
- 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 -67
- 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,671 +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
|
-
// --- Component rendering
|
|
18
|
-
(0, fixtures_1.test)("dynamic options displayed with Items component", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createSelectDriver, page, }) {
|
|
19
|
-
yield initTestBed(`
|
|
20
|
-
<Select>
|
|
21
|
-
<Items data="{['One', 'Two', 'Three']}" >
|
|
22
|
-
<Option value="{$itemIndex}" label="{$item}" />
|
|
23
|
-
</Items>
|
|
24
|
-
</Select>`);
|
|
25
|
-
const driver = yield createSelectDriver();
|
|
26
|
-
yield driver.click();
|
|
27
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "One" })).toBeVisible();
|
|
28
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "Two" })).toBeVisible();
|
|
29
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "Three" })).toBeVisible();
|
|
30
|
-
}));
|
|
31
|
-
(0, fixtures_1.test)("changing selected option in form", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createSelectDriver }) {
|
|
32
|
-
yield initTestBed(`
|
|
33
|
-
<Form data="{{sel: 'opt1'}}">
|
|
34
|
-
<FormItem testId="mySelect" type="select" bindTo="sel">
|
|
35
|
-
<Option value="opt1" label="first"/>
|
|
36
|
-
<Option value="opt2" label="second"/>
|
|
37
|
-
<Option value="opt3" label="third"/>
|
|
38
|
-
</FormItem>
|
|
39
|
-
</Form>`);
|
|
40
|
-
const driver = yield createSelectDriver("mySelect");
|
|
41
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveText("first");
|
|
42
|
-
yield driver.toggleOptionsVisibility();
|
|
43
|
-
yield driver.selectLabel("second");
|
|
44
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveText("second");
|
|
45
|
-
}));
|
|
46
|
-
// --- initialValue prop
|
|
47
|
-
(0, fixtures_1.test)("initialValue set to first valid value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
48
|
-
yield initTestBed(`
|
|
49
|
-
<Fragment>
|
|
50
|
-
<Select id="mySelect" initialValue="{0}">
|
|
51
|
-
<Option value="{0}" label="Zero"/>
|
|
52
|
-
<Option value="{1}" label="One"/>
|
|
53
|
-
<Option value="{2}" label="Two"/>
|
|
54
|
-
</Select>
|
|
55
|
-
<Text testId="text">Selected value: {mySelect.value}</Text>
|
|
56
|
-
</Fragment>
|
|
57
|
-
`);
|
|
58
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("Selected value: 0");
|
|
59
|
-
yield (0, fixtures_1.expect)(page.getByText("Zero", { exact: true })).toBeVisible();
|
|
60
|
-
yield (0, fixtures_1.expect)(page.getByText("One", { exact: true })).not.toBeVisible();
|
|
61
|
-
}));
|
|
62
|
-
(0, fixtures_1.test)("initialValue set to non-existant option", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
63
|
-
yield initTestBed(`
|
|
64
|
-
<Fragment>
|
|
65
|
-
<Select id="mySelect" initialValue="{42}">
|
|
66
|
-
<Option value="{0}" label="Zero"/>
|
|
67
|
-
<Option value="{1}" label="One"/>
|
|
68
|
-
<Option value="{2}" label="Two"/>
|
|
69
|
-
</Select>
|
|
70
|
-
<Text testId="text">Selected value: {mySelect.value}</Text>
|
|
71
|
-
</Fragment>
|
|
72
|
-
`);
|
|
73
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("Selected value: 42");
|
|
74
|
-
}));
|
|
75
|
-
(0, fixtures_1.test)("reset works with initialValue", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed, createSelectDriver, createButtonDriver, }) {
|
|
76
|
-
yield initTestBed(`
|
|
77
|
-
<Fragment>
|
|
78
|
-
<Select id="mySelect" initialValue="{0}">
|
|
79
|
-
<Option value="{0}" label="Zero"/>
|
|
80
|
-
<Option value="{1}" label="One"/>
|
|
81
|
-
<Option value="{2}" label="Two"/>
|
|
82
|
-
</Select>
|
|
83
|
-
<Button id="resetBtn" label="reset" onClick="mySelect.reset()"/>
|
|
84
|
-
<Text testId="text">Selected value: {mySelect.value}</Text>
|
|
85
|
-
</Fragment>
|
|
86
|
-
`);
|
|
87
|
-
const selectDrv = yield createSelectDriver("mySelect");
|
|
88
|
-
yield selectDrv.toggleOptionsVisibility();
|
|
89
|
-
yield selectDrv.selectLabel("One");
|
|
90
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("Selected value: 1");
|
|
91
|
-
const btnDriver = yield createButtonDriver("resetBtn");
|
|
92
|
-
yield btnDriver.click();
|
|
93
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("Selected value: 0");
|
|
94
|
-
}));
|
|
95
|
-
(0, fixtures_1.test)("reset works with no intialValue", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed, createSelectDriver, createButtonDriver, }) {
|
|
96
|
-
yield initTestBed(`
|
|
97
|
-
<Fragment>
|
|
98
|
-
<Select id="mySelect">
|
|
99
|
-
<Option value="{0}" label="Zero"/>
|
|
100
|
-
<Option value="{1}" label="One"/>
|
|
101
|
-
<Option value="{2}" label="Two"/>
|
|
102
|
-
</Select>
|
|
103
|
-
<Button id="resetBtn" label="reset" onClick="mySelect.reset()"/>
|
|
104
|
-
<Text testId="text">Selected value: {mySelect.value}</Text>
|
|
105
|
-
</Fragment>
|
|
106
|
-
`);
|
|
107
|
-
const selectDrv = yield createSelectDriver("mySelect");
|
|
108
|
-
yield selectDrv.toggleOptionsVisibility();
|
|
109
|
-
yield selectDrv.selectLabel("One");
|
|
110
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("Selected value: 1");
|
|
111
|
-
const btnDriver = yield createButtonDriver("resetBtn");
|
|
112
|
-
yield btnDriver.click();
|
|
113
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).not.toContainText("1");
|
|
114
|
-
}));
|
|
115
|
-
// --- enabled prop
|
|
116
|
-
(0, fixtures_1.test)("disabled Select cannot be opened", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, createSelectDriver, initTestBed }) {
|
|
117
|
-
yield initTestBed(`
|
|
118
|
-
<Select enabled="{false}">
|
|
119
|
-
<Option value="1" label="One"/>
|
|
120
|
-
<Option value="2" label="Two"/>
|
|
121
|
-
</Select>
|
|
122
|
-
`);
|
|
123
|
-
const driver = yield createSelectDriver();
|
|
124
|
-
yield driver.click({ force: true });
|
|
125
|
-
yield (0, fixtures_1.expect)(page.getByText("One")).not.toBeVisible();
|
|
126
|
-
}));
|
|
127
|
-
// --- readOnly prop
|
|
128
|
-
(0, fixtures_1.test)("readOnly Select shows options, but value cannot be changed", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed, createSelectDriver, }) {
|
|
129
|
-
yield initTestBed(`
|
|
130
|
-
<Select readOnly initialValue="1">
|
|
131
|
-
<Option value="1" label="One"/>
|
|
132
|
-
<Option value="2" label="Two"/>
|
|
133
|
-
</Select>
|
|
134
|
-
`);
|
|
135
|
-
const driver = yield createSelectDriver();
|
|
136
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveText("One");
|
|
137
|
-
yield driver.toggleOptionsVisibility();
|
|
138
|
-
yield driver.selectLabel("Two");
|
|
139
|
-
yield (0, fixtures_1.expect)(driver.component).toHaveText("One");
|
|
140
|
-
// verify dropdown is not visible but value is shown
|
|
141
|
-
}));
|
|
142
|
-
(0, fixtures_1.test)("readOnly multi-Select shows options, but value cannot be changed", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed, createSelectDriver, }) {
|
|
143
|
-
yield initTestBed(`
|
|
144
|
-
<Select readOnly initialValue="{[1, 2]}" multiSelect>
|
|
145
|
-
<Option value="1" label="One"/>
|
|
146
|
-
<Option value="2" label="Two"/>
|
|
147
|
-
<Option value="3" label="Three"/>
|
|
148
|
-
</Select>
|
|
149
|
-
`);
|
|
150
|
-
const driver = yield createSelectDriver();
|
|
151
|
-
yield (0, fixtures_1.expect)(page.getByText("Three")).not.toBeVisible();
|
|
152
|
-
yield (0, fixtures_1.expect)(page.getByText("One")).toBeVisible();
|
|
153
|
-
yield (0, fixtures_1.expect)(page.getByText("Two")).toBeVisible();
|
|
154
|
-
yield driver.toggleOptionsVisibility();
|
|
155
|
-
yield driver.selectLabel("Three");
|
|
156
|
-
yield (0, fixtures_1.expect)(page.getByText("Three")).not.toBeVisible();
|
|
157
|
-
yield (0, fixtures_1.expect)(page.getByText("One")).toBeVisible();
|
|
158
|
-
yield (0, fixtures_1.expect)(page.getByText("Two")).toBeVisible();
|
|
159
|
-
}));
|
|
160
|
-
(0, fixtures_1.test)("disabled Option cannot be selected", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createSelectDriver, page }) {
|
|
161
|
-
yield initTestBed(`
|
|
162
|
-
<Select>
|
|
163
|
-
<Option value="1" label="One"/>
|
|
164
|
-
<Option value="2" label="Two" enabled="{false}"/>
|
|
165
|
-
</Select>
|
|
166
|
-
`);
|
|
167
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "One" })).not.toBeVisible();
|
|
168
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "Two" })).not.toBeVisible();
|
|
169
|
-
const driver = yield createSelectDriver();
|
|
170
|
-
yield driver.toggleOptionsVisibility();
|
|
171
|
-
yield driver.selectLabel("Two");
|
|
172
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "One" })).toBeVisible();
|
|
173
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "Two" })).toBeVisible();
|
|
174
|
-
}));
|
|
175
|
-
(0, fixtures_1.test)("clicking label brings up the options", { tag: "@smoke" }, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver }) {
|
|
176
|
-
yield initTestBed(`
|
|
177
|
-
<Select label="Choose an option">
|
|
178
|
-
<Option value="1" label="One"/>
|
|
179
|
-
<Option value="2" label="Two"/>
|
|
180
|
-
</Select>
|
|
181
|
-
`);
|
|
182
|
-
yield page.getByLabel("Choose an option").click();
|
|
183
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "One" })).toBeVisible();
|
|
184
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "Two" })).toBeVisible();
|
|
185
|
-
}));
|
|
186
|
-
(0, fixtures_1.test)("label displayed for selected numeric value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
187
|
-
yield initTestBed(`
|
|
188
|
-
<Fragment>
|
|
189
|
-
<Select initialValue="{0}" >
|
|
190
|
-
<Option value="{0}" label="Zero"/>
|
|
191
|
-
<Option value="{1}" label="One"/>
|
|
192
|
-
<Option value="{2}" label="Two"/>
|
|
193
|
-
</Select>
|
|
194
|
-
</Fragment>
|
|
195
|
-
`);
|
|
196
|
-
yield (0, fixtures_1.expect)(page.getByText("Zero")).toBeVisible();
|
|
197
|
-
}));
|
|
198
|
-
// --- autoFocus prop
|
|
199
|
-
(0, fixtures_1.test)("autoFocus brings the focus to component", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver, }) {
|
|
200
|
-
yield initTestBed(`
|
|
201
|
-
<Select>
|
|
202
|
-
<Option value="1" label="One"/>
|
|
203
|
-
<Option value="2" label="Two"/>
|
|
204
|
-
</Select>
|
|
205
|
-
<Select testId="focused-select" autoFocus>
|
|
206
|
-
<Option value="1" label="One"/>
|
|
207
|
-
<Option value="2" label="Two"/>
|
|
208
|
-
</Select>
|
|
209
|
-
`);
|
|
210
|
-
const driver = yield createSelectDriver("focused-select");
|
|
211
|
-
yield (0, fixtures_1.expect)(driver.component).toBeFocused();
|
|
212
|
-
}));
|
|
213
|
-
// --- Templates
|
|
214
|
-
(0, fixtures_1.test)("emptyListTemplate shown when wrapped inside an App component", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver, }) {
|
|
215
|
-
yield initTestBed(`
|
|
216
|
-
<App>
|
|
217
|
-
<Select testId="mySelect">
|
|
218
|
-
<property name="emptyListTemplate">
|
|
219
|
-
<Text value="Nothing to see here!" />
|
|
220
|
-
</property>
|
|
221
|
-
</Select>
|
|
222
|
-
</App>
|
|
223
|
-
`);
|
|
224
|
-
const driver = yield createSelectDriver("mySelect");
|
|
225
|
-
yield driver.click();
|
|
226
|
-
yield (0, fixtures_1.expect)(page.getByText("Nothing to see here!", { exact: true })).toBeVisible();
|
|
227
|
-
}));
|
|
228
|
-
(0, fixtures_1.test)("optionTemplate is shown", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver }) {
|
|
229
|
-
yield initTestBed(`
|
|
230
|
-
<Select>
|
|
231
|
-
<Items items="{[
|
|
232
|
-
{ value: 'opt1', label: 'first' },
|
|
233
|
-
{ value: 'opt2', label: 'second' },
|
|
234
|
-
{ value: 'opt3', label: 'third' },
|
|
235
|
-
]}">
|
|
236
|
-
<Option value="{$item.value}" label="{$item.label}">
|
|
237
|
-
<Text>Template for value {$item.value}</Text>
|
|
238
|
-
</Option>
|
|
239
|
-
</Items>
|
|
240
|
-
</Select>
|
|
241
|
-
`);
|
|
242
|
-
const driver = yield createSelectDriver();
|
|
243
|
-
yield driver.click();
|
|
244
|
-
yield (0, fixtures_1.expect)(page.getByText("Template for value opt1")).toBeVisible();
|
|
245
|
-
yield (0, fixtures_1.expect)(page.getByText("Template for value opt2")).toBeVisible();
|
|
246
|
-
yield (0, fixtures_1.expect)(page.getByText("Template for value opt3")).toBeVisible();
|
|
247
|
-
}));
|
|
248
|
-
// --- placeholder prop
|
|
249
|
-
(0, fixtures_1.test)("placeholder is shown", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver }) {
|
|
250
|
-
yield initTestBed(`
|
|
251
|
-
<Select placeholder="Please select an item">
|
|
252
|
-
<Option value="opt1" label="first"/>
|
|
253
|
-
<Option value="opt2" label="second"/>
|
|
254
|
-
<Option value="opt3" label="third"/>
|
|
255
|
-
</Select>
|
|
256
|
-
`);
|
|
257
|
-
yield (0, fixtures_1.expect)(page.getByText("Please select an item")).toBeVisible();
|
|
258
|
-
}));
|
|
259
|
-
(0, fixtures_1.test)("Option without label and value is not rendered", { tag: "@smoke" }, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver }) {
|
|
260
|
-
yield initTestBed(`
|
|
261
|
-
<Select placeholder="Please select an item">
|
|
262
|
-
<Option />
|
|
263
|
-
<Option />
|
|
264
|
-
<Option />
|
|
265
|
-
</Select>
|
|
266
|
-
`);
|
|
267
|
-
const driver = yield createSelectDriver();
|
|
268
|
-
yield driver.click();
|
|
269
|
-
yield (0, fixtures_1.expect)(page.getByRole("option")).not.toBeVisible();
|
|
270
|
-
}));
|
|
271
|
-
(0, fixtures_1.test)("Option value defaults to label", { tag: "@smoke" }, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver }) {
|
|
272
|
-
yield initTestBed(`
|
|
273
|
-
<Fragment>
|
|
274
|
-
<Select id="mySelect">
|
|
275
|
-
<Option label="Zero"/>
|
|
276
|
-
<Option label="One"/>
|
|
277
|
-
<Option label="Two"/>
|
|
278
|
-
</Select>
|
|
279
|
-
<Text testId="text">Selected value: {mySelect.value}</Text>
|
|
280
|
-
</Fragment>
|
|
281
|
-
`);
|
|
282
|
-
const driver = yield createSelectDriver("mySelect");
|
|
283
|
-
yield driver.toggleOptionsVisibility();
|
|
284
|
-
yield driver.selectLabel("Zero");
|
|
285
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("Selected value: Zero");
|
|
286
|
-
}));
|
|
287
|
-
});
|
|
288
|
-
// =============================================================================
|
|
289
|
-
// LABEL POSITIONING TESTS
|
|
290
|
-
// =============================================================================
|
|
291
|
-
fixtures_1.test.describe("Label", () => {
|
|
292
|
-
(0, fixtures_1.test)("labelBreak prop defaults to false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver }) {
|
|
293
|
-
yield page.setViewportSize({ width: 300, height: 720 });
|
|
294
|
-
yield initTestBed(`
|
|
295
|
-
<Select
|
|
296
|
-
label="Dignissimos esse quasi esse cupiditate qui qui. Ut provident ad voluptatem tenetur sit consequuntur. Aliquam nisi fugit ut temporibus itaque ducimus rerum. Dolorem reprehenderit qui adipisci. Ullam harum atque ipsa."
|
|
297
|
-
>
|
|
298
|
-
<Option value="1" label="One"/>
|
|
299
|
-
<Option value="2" label="Two"/>
|
|
300
|
-
</Select>
|
|
301
|
-
`);
|
|
302
|
-
const labelWidth = (yield page.getByText("Dignissimos esse quasi").boundingBox()).width;
|
|
303
|
-
const select = page.getByRole("button").or(page.getByRole("combobox")).first();
|
|
304
|
-
const { width: selectWidth } = yield select.boundingBox();
|
|
305
|
-
(0, fixtures_1.expect)(labelWidth).toBe(selectWidth);
|
|
306
|
-
}));
|
|
307
|
-
(0, fixtures_1.test)('labelWidth applies with labelPosition="start"', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
308
|
-
yield page.setViewportSize({ width: 300, height: 720 });
|
|
309
|
-
yield initTestBed(`
|
|
310
|
-
<Select label="Dignissimos esse quasi" labelWidth="200px" labelPosition="start" >
|
|
311
|
-
<Option value="opt1" label="first"/>
|
|
312
|
-
<Option value="opt2" label="second"/>
|
|
313
|
-
<Option value="opt3" label="third"/>
|
|
314
|
-
<Option value="opt4" label="fourth"/>
|
|
315
|
-
<Option value="opt5" label="fifth"/>
|
|
316
|
-
</Select>
|
|
317
|
-
`);
|
|
318
|
-
const labelWidth = (yield page.getByText("Dignissimos esse quasi").boundingBox()).width;
|
|
319
|
-
(0, fixtures_1.expect)(labelWidth).toBeGreaterThanOrEqual(200);
|
|
320
|
-
}));
|
|
321
|
-
});
|
|
322
|
-
// =============================================================================
|
|
323
|
-
// SEARCHABLE SELECT TESTS
|
|
324
|
-
// =============================================================================
|
|
325
|
-
fixtures_1.test.describe("searchable select", () => {
|
|
326
|
-
(0, fixtures_1.test)("placeholder is shown", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver }) {
|
|
327
|
-
yield initTestBed(`
|
|
328
|
-
<Select searchable placeholder="Please select an item">
|
|
329
|
-
<Option value="opt1" label="first"/>
|
|
330
|
-
<Option value="opt2" label="second"/>
|
|
331
|
-
<Option value="opt3" label="third"/>
|
|
332
|
-
</Select>
|
|
333
|
-
`);
|
|
334
|
-
yield (0, fixtures_1.expect)(page.getByText("Please select an item")).toBeVisible();
|
|
335
|
-
}));
|
|
336
|
-
(0, fixtures_1.test)("inProgressNotificationMessage shown when inProgress is true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver, }) {
|
|
337
|
-
yield initTestBed(`
|
|
338
|
-
<Select searchable inProgress inProgressNotificationMessage="in-progress-msg">
|
|
339
|
-
<Option value="opt1" label="first"/>
|
|
340
|
-
<Option value="opt2" label="second"/>
|
|
341
|
-
<Option value="opt3" label="third"/>
|
|
342
|
-
</Select>
|
|
343
|
-
`);
|
|
344
|
-
const driver = yield createSelectDriver();
|
|
345
|
-
yield driver.click();
|
|
346
|
-
yield (0, fixtures_1.expect)(page.getByText("in-progress-msg")).toBeVisible();
|
|
347
|
-
}));
|
|
348
|
-
(0, fixtures_1.test)("inProgressNotificationMessage not shown when inProgress is false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver, }) {
|
|
349
|
-
yield initTestBed(`
|
|
350
|
-
<Select searchable inProgress="false" inProgressNotificationMessage="in-progress-msg">
|
|
351
|
-
<Option value="opt1" label="first"/>
|
|
352
|
-
<Option value="opt2" label="second"/>
|
|
353
|
-
<Option value="opt3" label="third"/>
|
|
354
|
-
</Select>
|
|
355
|
-
`);
|
|
356
|
-
const driver = yield createSelectDriver();
|
|
357
|
-
yield driver.click();
|
|
358
|
-
yield (0, fixtures_1.expect)(page.getByText("in-progress-msg")).not.toBeVisible();
|
|
359
|
-
}));
|
|
360
|
-
(0, fixtures_1.test)("search filters option labels", { tag: "@smoke" }, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver }) {
|
|
361
|
-
yield initTestBed(`
|
|
362
|
-
<Select searchable>
|
|
363
|
-
<Option value="opt1" label="first"/>
|
|
364
|
-
<Option value="opt2" label="second"/>
|
|
365
|
-
<Option value="opt3" label="third"/>
|
|
366
|
-
</Select>
|
|
367
|
-
`);
|
|
368
|
-
const driver = yield createSelectDriver();
|
|
369
|
-
yield driver.toggleOptionsVisibility();
|
|
370
|
-
yield driver.searchFor("econd");
|
|
371
|
-
const options = yield page.getByRole("option").all();
|
|
372
|
-
(0, fixtures_1.expect)(options).toHaveLength(1);
|
|
373
|
-
yield (0, fixtures_1.expect)(options[0]).toHaveText("second");
|
|
374
|
-
}));
|
|
375
|
-
});
|
|
376
|
-
// =============================================================================
|
|
377
|
-
// MULTISELECT TESTS
|
|
378
|
-
// =============================================================================
|
|
379
|
-
fixtures_1.test.describe("multiSelect", () => {
|
|
380
|
-
(0, fixtures_1.test)("initialValue='{[0]}' works", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
381
|
-
yield initTestBed(`
|
|
382
|
-
<Fragment>
|
|
383
|
-
<Select id="mySelect" initialValue="{[0]}" multiSelect>
|
|
384
|
-
<Option value="{0}" label="Zero"/>
|
|
385
|
-
<Option value="{1}" label="One"/>
|
|
386
|
-
<Option value="{2}" label="Two"/>
|
|
387
|
-
</Select>
|
|
388
|
-
<Text testId="text">Selected value: {mySelect.value}</Text>
|
|
389
|
-
</Fragment>
|
|
390
|
-
`);
|
|
391
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("Selected value: 0");
|
|
392
|
-
}));
|
|
393
|
-
(0, fixtures_1.test)("initialValue='{[0,1]}' works", { tag: "@smoke" }, (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
394
|
-
yield initTestBed(`
|
|
395
|
-
<Fragment>
|
|
396
|
-
<Select id="mySelect" initialValue="{[0,1]}" multiSelect>
|
|
397
|
-
<Option value="{0}" label="Zero"/>
|
|
398
|
-
<Option value="{1}" label="One"/>
|
|
399
|
-
<Option value="{2}" label="Two"/>
|
|
400
|
-
</Select>
|
|
401
|
-
<Text testId="text">Selected value: {mySelect.value}</Text>
|
|
402
|
-
</Fragment>
|
|
403
|
-
`);
|
|
404
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("Selected value: 0,1");
|
|
405
|
-
}));
|
|
406
|
-
(0, fixtures_1.test)("select multiple items without closing listbox", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed, createSelectDriver, }) {
|
|
407
|
-
const { testStateDriver } = yield initTestBed(`
|
|
408
|
-
<Fragment>
|
|
409
|
-
<Select id="mySelect" multiSelect>
|
|
410
|
-
<Option value="{0}" label="Zero"/>
|
|
411
|
-
<Option value="{1}" label="One"/>
|
|
412
|
-
<Option value="{2}" label="Two"/>
|
|
413
|
-
</Select>
|
|
414
|
-
<Text testId="text">Selected value: {mySelect.value}</Text>
|
|
415
|
-
</Fragment>
|
|
416
|
-
`);
|
|
417
|
-
const selectDrv = yield createSelectDriver("mySelect");
|
|
418
|
-
yield selectDrv.toggleOptionsVisibility();
|
|
419
|
-
yield selectDrv.selectMultipleLabels(["Zero", "One"]);
|
|
420
|
-
/* problem is that the listbox closes after the 1st selection is made */
|
|
421
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("Selected value: 0,1");
|
|
422
|
-
}));
|
|
423
|
-
(0, fixtures_1.test)("clicking label brings up the options", { tag: "@smoke" }, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver }) {
|
|
424
|
-
yield initTestBed(`
|
|
425
|
-
<Select label="Choose an option" multiSelect>
|
|
426
|
-
<Option value="1" label="One"/>
|
|
427
|
-
<Option value="2" label="Two"/>
|
|
428
|
-
</Select>
|
|
429
|
-
`);
|
|
430
|
-
yield page.getByLabel("Choose an option").click();
|
|
431
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "One" })).toBeVisible();
|
|
432
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "Two" })).toBeVisible();
|
|
433
|
-
}));
|
|
434
|
-
(0, fixtures_1.test)("labelBreak prop defaults to false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver }) {
|
|
435
|
-
yield page.setViewportSize({ width: 300, height: 720 });
|
|
436
|
-
yield initTestBed(`
|
|
437
|
-
<Select
|
|
438
|
-
label="Dignissimos esse quasi esse cupiditate qui qui. Ut provident ad voluptatem tenetur sit consequuntur. Aliquam nisi fugit ut temporibus itaque ducimus rerum. Dolorem reprehenderit qui adipisci. Ullam harum atque ipsa."
|
|
439
|
-
multiSelect>
|
|
440
|
-
<Option value="1" label="One"/>
|
|
441
|
-
<Option value="2" label="Two"/>
|
|
442
|
-
</Select>
|
|
443
|
-
`);
|
|
444
|
-
const labelWidth = (yield page.getByText("Dignissimos esse quasi").boundingBox()).width;
|
|
445
|
-
const select = page.getByRole("button").or(page.getByRole("combobox")).first();
|
|
446
|
-
const { width: selectWidth } = yield select.boundingBox();
|
|
447
|
-
(0, fixtures_1.expect)(labelWidth).toBe(selectWidth);
|
|
448
|
-
}));
|
|
449
|
-
(0, fixtures_1.test)('labelPosition="start" is left in ltr language', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
450
|
-
yield initTestBed(`
|
|
451
|
-
<Select multiSelect label="hi there" labelPosition="start" labelBreak="false">
|
|
452
|
-
<Option value="1" label="One"/>
|
|
453
|
-
<Option value="2" label="Two"/>
|
|
454
|
-
</Select>
|
|
455
|
-
`);
|
|
456
|
-
const { x: labelX } = yield page.getByText("hi there").boundingBox();
|
|
457
|
-
const select = page.getByRole("button").or(page.getByRole("combobox")).first();
|
|
458
|
-
const { x: selectX } = yield select.boundingBox();
|
|
459
|
-
(0, fixtures_1.expect)(labelX).toBeLessThan(selectX);
|
|
460
|
-
}));
|
|
461
|
-
(0, fixtures_1.test)('labelPosition="start" is right in rtl language', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
462
|
-
yield initTestBed(`
|
|
463
|
-
<VStack direction="rtl">
|
|
464
|
-
<Select multiSelect label="hi there" labelPosition="start" labelBreak="false">
|
|
465
|
-
<Option value="1" label="One" />
|
|
466
|
-
<Option value="2" label="Two" />
|
|
467
|
-
</Select>
|
|
468
|
-
</VStack>
|
|
469
|
-
`);
|
|
470
|
-
const { x: labelX } = yield page.getByText("hi there").boundingBox();
|
|
471
|
-
const select = page.getByRole("button").or(page.getByRole("combobox")).first();
|
|
472
|
-
const { x: selectX } = yield select.boundingBox();
|
|
473
|
-
(0, fixtures_1.expect)(labelX).toBeGreaterThan(selectX);
|
|
474
|
-
}));
|
|
475
|
-
(0, fixtures_1.test)("multiSelect autoFocus brings the focus to component", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver, }) {
|
|
476
|
-
yield initTestBed(`
|
|
477
|
-
<Select multiSelect>
|
|
478
|
-
<Option value="1" label="One"/>
|
|
479
|
-
<Option value="2" label="Two"/>
|
|
480
|
-
</Select>
|
|
481
|
-
<Select testId="focused-select" multmultiSelect autoFocus>
|
|
482
|
-
<Option value="1" label="One"/>
|
|
483
|
-
<Option value="2" label="Two"/>
|
|
484
|
-
</Select>
|
|
485
|
-
`);
|
|
486
|
-
const driver = yield createSelectDriver("focused-select");
|
|
487
|
-
yield (0, fixtures_1.expect)(driver.component).toBeFocused();
|
|
488
|
-
}));
|
|
489
|
-
(0, fixtures_1.test)("autoFocus brings the focus to component", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver, }) {
|
|
490
|
-
yield initTestBed(`
|
|
491
|
-
<Select initialValue="opt1" placeholder="Select..." multiSelect>
|
|
492
|
-
<property name="valueTemplate">
|
|
493
|
-
<HStack>
|
|
494
|
-
<Text>{$item.value}={$item.label}</Text>
|
|
495
|
-
<Button
|
|
496
|
-
variant="ghost"
|
|
497
|
-
icon="close"
|
|
498
|
-
size="xs"
|
|
499
|
-
testId="remove-item-btn"
|
|
500
|
-
onClick="$itemContext.removeItem()"/>
|
|
501
|
-
</HStack>
|
|
502
|
-
</property>
|
|
503
|
-
<Option value="opt1" label="first"/>
|
|
504
|
-
<Option value="opt2" label="second"/>
|
|
505
|
-
<Option value="opt3" label="third"/>
|
|
506
|
-
</Select>
|
|
507
|
-
`);
|
|
508
|
-
const driver = yield createSelectDriver();
|
|
509
|
-
yield driver.toggleOptionsVisibility();
|
|
510
|
-
yield driver.selectLabel("first");
|
|
511
|
-
yield (0, fixtures_1.expect)(page.getByText("opt1=first", { exact: true })).toBeVisible();
|
|
512
|
-
yield page.getByTestId("remove-item-btn").click();
|
|
513
|
-
yield (0, fixtures_1.expect)(page.getByText("opt1=first", { exact: true })).not.toBeVisible();
|
|
514
|
-
}));
|
|
515
|
-
});
|
|
516
|
-
// =============================================================================
|
|
517
|
-
// SEARCHABLE MULTISELECT TESTS
|
|
518
|
-
// =============================================================================
|
|
519
|
-
fixtures_1.test.describe("searchable multiselect", { tag: "@smoke" }, () => {
|
|
520
|
-
(0, fixtures_1.test)("searching for and selecting 2 items works", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed, createSelectDriver, }) {
|
|
521
|
-
yield initTestBed(`
|
|
522
|
-
<Fragment>
|
|
523
|
-
<Select id="mySelect" testId="mySelect" multiSelect searchable>
|
|
524
|
-
<Option value="{0}" label="Zero"/>
|
|
525
|
-
<Option value="{1}" label="One"/>
|
|
526
|
-
<Option value="{2}" label="Two"/>
|
|
527
|
-
</Select>
|
|
528
|
-
<Text testId="text">Selected value: {mySelect.value}</Text>
|
|
529
|
-
</Fragment>
|
|
530
|
-
`);
|
|
531
|
-
const driver = yield createSelectDriver("mySelect");
|
|
532
|
-
yield driver.toggleOptionsVisibility();
|
|
533
|
-
yield driver.selectFirstLabelPostSearh("One");
|
|
534
|
-
yield driver.selectFirstLabelPostSearh("Two");
|
|
535
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("Selected value: 1,2");
|
|
536
|
-
}));
|
|
537
|
-
});
|
|
538
|
-
// =============================================================================
|
|
539
|
-
// EVENT HANDLING TESTS
|
|
540
|
-
// =============================================================================
|
|
541
|
-
fixtures_1.test.describe("Event Handling", () => {
|
|
542
|
-
(0, fixtures_1.test)("gotFocus event fires on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
543
|
-
const { testStateDriver } = yield initTestBed(`
|
|
544
|
-
<Select onGotFocus="testState = 'focused'">
|
|
545
|
-
<Option value="1" label="One"/>
|
|
546
|
-
<Option value="2" label="Two"/>
|
|
547
|
-
</Select>
|
|
548
|
-
`);
|
|
549
|
-
const selectButton = page.getByRole("combobox");
|
|
550
|
-
yield selectButton.focus();
|
|
551
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe("focused");
|
|
552
|
-
}));
|
|
553
|
-
(0, fixtures_1.test)("gotFocus event fires on label click", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
554
|
-
const { testStateDriver } = yield initTestBed(`
|
|
555
|
-
<Select label="Choose" onGotFocus="testState = 'focused'">
|
|
556
|
-
<Option value="1" label="One"/>
|
|
557
|
-
<Option value="2" label="Two"/>
|
|
558
|
-
</Select>
|
|
559
|
-
`);
|
|
560
|
-
yield page.getByText("Choose").click();
|
|
561
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe("focused");
|
|
562
|
-
}));
|
|
563
|
-
(0, fixtures_1.test)("lostFocus event fires on blur", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
564
|
-
const { testStateDriver } = yield initTestBed(`
|
|
565
|
-
<Select onLostFocus="testState = 'blurred'">
|
|
566
|
-
<Option value="1" label="One"/>
|
|
567
|
-
<Option value="2" label="Two"/>
|
|
568
|
-
</Select>
|
|
569
|
-
`);
|
|
570
|
-
const selectButton = page.getByRole("combobox");
|
|
571
|
-
yield selectButton.focus();
|
|
572
|
-
yield selectButton.blur();
|
|
573
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe("blurred");
|
|
574
|
-
}));
|
|
575
|
-
});
|
|
576
|
-
// =============================================================================
|
|
577
|
-
// FORM INTEGRATION TESTS
|
|
578
|
-
// =============================================================================
|
|
579
|
-
//this is an upstream issue: https://github.com/radix-ui/primitives/issues/3135
|
|
580
|
-
(0, fixtures_1.test)("initialValue honored when used within Form", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
581
|
-
yield initTestBed(`
|
|
582
|
-
<Form>
|
|
583
|
-
<Select id="mySelect" initialValue="opt3">
|
|
584
|
-
<Option value="opt1" label="first"/>
|
|
585
|
-
<Option value="opt2" label="second"/>
|
|
586
|
-
<Option value="opt3" label="third"/>
|
|
587
|
-
</Select>
|
|
588
|
-
<Text testId="text">Selected value: {mySelect.value}</Text>
|
|
589
|
-
</Form>`);
|
|
590
|
-
yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("Selected value: opt3");
|
|
591
|
-
}));
|
|
592
|
-
// =============================================================================
|
|
593
|
-
// VISUAL STATE TESTS
|
|
594
|
-
// =============================================================================
|
|
595
|
-
fixtures_1.test.describe("Visual State", () => {
|
|
596
|
-
(0, fixtures_1.test)("input has correct width in px", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
597
|
-
yield initTestBed(`<Select width="200px" testId="test"/>`, {});
|
|
598
|
-
const input = page.getByTestId("test");
|
|
599
|
-
const { width } = yield input.boundingBox();
|
|
600
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
601
|
-
}));
|
|
602
|
-
(0, fixtures_1.test)("input with label has correct width in px", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
603
|
-
yield initTestBed(`<Select width="200px" label="test" testId="test"/>`, {});
|
|
604
|
-
const input = page.getByTestId("test");
|
|
605
|
-
const { width } = yield input.boundingBox();
|
|
606
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
607
|
-
}));
|
|
608
|
-
(0, fixtures_1.test)("input has correct width in %", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
609
|
-
yield page.setViewportSize({ width: 400, height: 300 });
|
|
610
|
-
yield initTestBed(`<Select width="50%" testId="test"/>`, {});
|
|
611
|
-
const input = page.getByTestId("test");
|
|
612
|
-
const { width } = yield input.boundingBox();
|
|
613
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
614
|
-
}));
|
|
615
|
-
(0, fixtures_1.test)("input with label has correct width in %", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
616
|
-
yield page.setViewportSize({ width: 400, height: 300 });
|
|
617
|
-
yield initTestBed(`<Select width="50%" label="test" testId="test"/>`, {});
|
|
618
|
-
const input = page.getByTestId("test");
|
|
619
|
-
const { width } = yield input.boundingBox();
|
|
620
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
621
|
-
}));
|
|
622
|
-
});
|
|
623
|
-
// =============================================================================
|
|
624
|
-
// Z-INDEX AND MODAL LAYERING TESTS
|
|
625
|
-
// =============================================================================
|
|
626
|
-
fixtures_1.test.describe("Z-Index and Modal Layering", () => {
|
|
627
|
-
(0, fixtures_1.test)("Select dropdown in modal is visible and not covered by modal overlay", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, createSelectDriver, }) {
|
|
628
|
-
yield initTestBed(`
|
|
629
|
-
<Fragment>
|
|
630
|
-
<Select testId="select">
|
|
631
|
-
<Option value="stuff1">option 1</Option>
|
|
632
|
-
<Option value="stuff2">option 2</Option>
|
|
633
|
-
<Button onClick="modal.open()">BLOW UP</Button>
|
|
634
|
-
</Select>
|
|
635
|
-
<ModalDialog id="modal" title="Example Dialog">
|
|
636
|
-
<Form data="{{ firstName: 'Billy', lastName: 'Bob' }}">
|
|
637
|
-
<FormItem bindTo="firstName" required="true" />
|
|
638
|
-
<FormItem bindTo="lastName" required="true" />
|
|
639
|
-
<FormItem
|
|
640
|
-
label="Field to Update"
|
|
641
|
-
type="select"
|
|
642
|
-
width="200px"
|
|
643
|
-
bindTo="fieldToUpdate"
|
|
644
|
-
required
|
|
645
|
-
initialValue="rate"
|
|
646
|
-
testId="modal-select"
|
|
647
|
-
>
|
|
648
|
-
<Option value="rate">Price</Option>
|
|
649
|
-
<Option value="description">Item Description</Option>
|
|
650
|
-
<Option value="account_id">Account</Option>
|
|
651
|
-
</FormItem>
|
|
652
|
-
</Form>
|
|
653
|
-
</ModalDialog>
|
|
654
|
-
</Fragment>
|
|
655
|
-
`);
|
|
656
|
-
const selectDriver = yield createSelectDriver("select");
|
|
657
|
-
yield selectDriver.click();
|
|
658
|
-
// Click button to open modal
|
|
659
|
-
const blowUpButton = page.getByText("BLOW UP");
|
|
660
|
-
yield blowUpButton.click();
|
|
661
|
-
// Wait for modal to be visible
|
|
662
|
-
yield (0, fixtures_1.expect)(page.getByRole("dialog", { name: "Example Dialog" })).toBeVisible();
|
|
663
|
-
// Open the select in the modal
|
|
664
|
-
const modalSelectDriver = yield createSelectDriver("modal-select");
|
|
665
|
-
yield modalSelectDriver.click();
|
|
666
|
-
// Check that all options are visible
|
|
667
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "Price" })).toBeVisible();
|
|
668
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "Item Description" })).toBeVisible();
|
|
669
|
-
yield (0, fixtures_1.expect)(page.getByRole("option", { name: "Account" })).toBeVisible();
|
|
670
|
-
}));
|
|
671
|
-
});
|