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,954 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const component_test_helpers_1 = require("../../testing/component-test-helpers");
|
|
13
|
-
const fixtures_1 = require("../../testing/fixtures");
|
|
14
|
-
// =============================================================================
|
|
15
|
-
// BASIC FUNCTIONALITY TESTS
|
|
16
|
-
// =============================================================================
|
|
17
|
-
fixtures_1.test.describe("Basic Functionality", () => {
|
|
18
|
-
(0, fixtures_1.test)("component renders", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
19
|
-
yield initTestBed(`<NumberBox />`);
|
|
20
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
21
|
-
}));
|
|
22
|
-
(0, fixtures_1.test)("component renders with label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
23
|
-
yield initTestBed(`<NumberBox label="Amount" />`);
|
|
24
|
-
yield (0, fixtures_1.expect)(page.getByText("Amount")).toBeVisible();
|
|
25
|
-
}));
|
|
26
|
-
// --- initialValue prop
|
|
27
|
-
(0, fixtures_1.test)("initialValue sets field value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
28
|
-
yield initTestBed(`<NumberBox initialValue="123" />`);
|
|
29
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("123");
|
|
30
|
-
}));
|
|
31
|
-
(0, fixtures_1.test)("initialValue ignores non-numeric string", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
32
|
-
yield initTestBed(`
|
|
33
|
-
<NumberBox initialValue="can't be this" />
|
|
34
|
-
`);
|
|
35
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("");
|
|
36
|
-
}));
|
|
37
|
-
(0, fixtures_1.test)("initialValue accepts various types", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
38
|
-
yield initTestBed(`
|
|
39
|
-
<Stack>
|
|
40
|
-
<NumberBox testId="integer" initialValue="{1}" />
|
|
41
|
-
<NumberBox testId="float" initialValue="{1.2}" />
|
|
42
|
-
<NumberBox testId="undefined" initialValue="{undefined}" />
|
|
43
|
-
<NumberBox testId="null" initialValue="{null}" />
|
|
44
|
-
<NumberBox testId="empty-string" initialValue="" />
|
|
45
|
-
<NumberBox testId="string-integer" initialValue="1" />
|
|
46
|
-
<NumberBox testId="string-float" initialValue="1.2" />
|
|
47
|
-
</Stack>
|
|
48
|
-
`);
|
|
49
|
-
yield (0, fixtures_1.expect)(page.getByTestId("integer").getByRole("textbox")).toHaveValue("1");
|
|
50
|
-
yield (0, fixtures_1.expect)(page.getByTestId("float").getByRole("textbox")).toHaveValue("1.2");
|
|
51
|
-
yield (0, fixtures_1.expect)(page.getByTestId("undefined").getByRole("textbox")).toHaveValue("");
|
|
52
|
-
yield (0, fixtures_1.expect)(page.getByTestId("null").getByRole("textbox")).toHaveValue("");
|
|
53
|
-
yield (0, fixtures_1.expect)(page.getByTestId("empty-string").getByRole("textbox")).toHaveValue("");
|
|
54
|
-
yield (0, fixtures_1.expect)(page.getByTestId("string-integer").getByRole("textbox")).toHaveValue("1");
|
|
55
|
-
yield (0, fixtures_1.expect)(page.getByTestId("string-float").getByRole("textbox")).toHaveValue("1.2");
|
|
56
|
-
}));
|
|
57
|
-
// --- enabled prop
|
|
58
|
-
(0, fixtures_1.test)("enabled=false disables control", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
59
|
-
yield initTestBed(`<NumberBox enabled="false" />`);
|
|
60
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeDisabled();
|
|
61
|
-
}));
|
|
62
|
-
(0, fixtures_1.test)("enabled=true enables control", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
63
|
-
yield initTestBed(`<NumberBox enabled="true" />`);
|
|
64
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).not.toBeDisabled();
|
|
65
|
-
}));
|
|
66
|
-
(0, fixtures_1.test)("disabled input field stops user interaction for spinbox", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createNumberBoxDriver, }) {
|
|
67
|
-
yield initTestBed(`<NumberBox enabled="false" initialValue="5" />`);
|
|
68
|
-
const driver = yield createNumberBoxDriver();
|
|
69
|
-
yield driver.increment();
|
|
70
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("5");
|
|
71
|
-
yield (0, fixtures_1.expect)(driver.spinnerUp).toBeDisabled();
|
|
72
|
-
yield driver.decrement();
|
|
73
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("5");
|
|
74
|
-
yield (0, fixtures_1.expect)(driver.spinnerDown).toBeDisabled();
|
|
75
|
-
}));
|
|
76
|
-
// --- readOnly prop
|
|
77
|
-
(0, fixtures_1.test)("readOnly adds readonly attribute", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
78
|
-
yield initTestBed(`<NumberBox readOnly="true" initialValue="123" />`);
|
|
79
|
-
const input = page.getByRole("textbox");
|
|
80
|
-
yield (0, fixtures_1.expect)(input).toHaveAttribute("readonly");
|
|
81
|
-
}));
|
|
82
|
-
(0, fixtures_1.test)("readOnly input is not editable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
83
|
-
yield initTestBed(`<NumberBox readOnly="true" initialValue="123" />`);
|
|
84
|
-
const input = page.getByRole("textbox");
|
|
85
|
-
yield (0, fixtures_1.expect)(input).not.toBeEditable();
|
|
86
|
-
}));
|
|
87
|
-
(0, fixtures_1.test)("readOnly input has value and can be focused", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
88
|
-
yield initTestBed(`<NumberBox readOnly="true" initialValue="123" />`);
|
|
89
|
-
const input = page.getByRole("textbox");
|
|
90
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("123");
|
|
91
|
-
yield input.focus();
|
|
92
|
-
yield (0, fixtures_1.expect)(input).toBeFocused();
|
|
93
|
-
}));
|
|
94
|
-
// --- required prop
|
|
95
|
-
(0, fixtures_1.test)("required prop adds required attribute", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
96
|
-
yield initTestBed(`<NumberBox required="true" />`);
|
|
97
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveAttribute("required");
|
|
98
|
-
}));
|
|
99
|
-
(0, fixtures_1.test)("empty required NumberBox shows visual indicator", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
100
|
-
yield initTestBed(`<NumberBox label="test" required="{true}" />`);
|
|
101
|
-
yield (0, fixtures_1.expect)(page.getByText("test")).toContainText("*");
|
|
102
|
-
}));
|
|
103
|
-
// --- autoFocus prop
|
|
104
|
-
(0, fixtures_1.test)("autoFocus focuses input on mount", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createNumberBoxDriver }) {
|
|
105
|
-
yield initTestBed(`<NumberBox autoFocus="true" />`);
|
|
106
|
-
const driver = yield createNumberBoxDriver();
|
|
107
|
-
yield (0, fixtures_1.expect)(driver.input).toBeFocused();
|
|
108
|
-
}));
|
|
109
|
-
// --- placeholder prop
|
|
110
|
-
(0, fixtures_1.test)("placeholder shows when input is empty", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
111
|
-
yield initTestBed(`<NumberBox placeholder="Enter number..." />`);
|
|
112
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveAttribute("placeholder", "Enter number...");
|
|
113
|
-
}));
|
|
114
|
-
(0, fixtures_1.test)("placeholder does not appear if input is filled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
115
|
-
yield initTestBed(`<NumberBox placeholder="placeholder text" initialValue="123" />`);
|
|
116
|
-
yield (0, fixtures_1.expect)(page.getByText("placeholder text")).not.toBeVisible();
|
|
117
|
-
}));
|
|
118
|
-
// --- maxLength prop
|
|
119
|
-
(0, fixtures_1.test)("maxLength limits input length", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
120
|
-
yield initTestBed(`<NumberBox maxLength="3" />`);
|
|
121
|
-
yield page.getByRole("textbox").fill("12345");
|
|
122
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("123");
|
|
123
|
-
}));
|
|
124
|
-
// --- User input testing
|
|
125
|
-
(0, fixtures_1.test)("component accepts user input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
126
|
-
yield initTestBed(`<NumberBox />`);
|
|
127
|
-
yield page.getByRole("textbox").fill("456");
|
|
128
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("456");
|
|
129
|
-
}));
|
|
130
|
-
(0, fixtures_1.test)("component clears input correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
131
|
-
yield initTestBed(`<NumberBox initialValue="123" />`);
|
|
132
|
-
const input = page.getByRole("textbox");
|
|
133
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("123");
|
|
134
|
-
yield input.clear();
|
|
135
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("");
|
|
136
|
-
}));
|
|
137
|
-
// --- hasSpinBox prop
|
|
138
|
-
(0, fixtures_1.test)("hasSpinBox=true renders spinbox", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
139
|
-
yield initTestBed(`<NumberBox hasSpinBox="true" />`);
|
|
140
|
-
// Look for spinner container or buttons
|
|
141
|
-
const spinnerContainer = page.locator(".spinnerBox, .spinner, [class*='spin']").first();
|
|
142
|
-
const spinButtons = page.locator("button");
|
|
143
|
-
const hasSpinnerContainer = yield spinnerContainer.isVisible().catch(() => false);
|
|
144
|
-
const hasSpinButtons = (yield spinButtons.count()) > 0;
|
|
145
|
-
(0, fixtures_1.expect)(hasSpinnerContainer || hasSpinButtons).toBe(true);
|
|
146
|
-
}));
|
|
147
|
-
(0, fixtures_1.test)("hasSpinBox=false hides spinbox", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
148
|
-
yield initTestBed(`<NumberBox hasSpinBox="false" />`);
|
|
149
|
-
// When hasSpinBox is false, spinner should not be visible
|
|
150
|
-
const spinnerContainer = page.locator(".spinnerBox, .spinner, [class*='spin']").first();
|
|
151
|
-
const spinButtons = page.locator("button");
|
|
152
|
-
const hasSpinnerContainer = yield spinnerContainer.isVisible().catch(() => false);
|
|
153
|
-
const spinButtonCount = yield spinButtons.count();
|
|
154
|
-
(0, fixtures_1.expect)(hasSpinnerContainer).toBe(false);
|
|
155
|
-
(0, fixtures_1.expect)(spinButtonCount).toBe(0);
|
|
156
|
-
}));
|
|
157
|
-
// --- step prop with spinbox
|
|
158
|
-
(0, fixtures_1.test)("clicking spinbox up-arrow adds step value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createNumberBoxDriver, }) {
|
|
159
|
-
yield initTestBed(`<NumberBox initialValue="5" step="2" />`);
|
|
160
|
-
const driver = yield createNumberBoxDriver();
|
|
161
|
-
yield driver.increment();
|
|
162
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("7");
|
|
163
|
-
}));
|
|
164
|
-
(0, fixtures_1.test)("clicking spinbox down-arrow subtracts step value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createNumberBoxDriver, }) {
|
|
165
|
-
yield initTestBed(`<NumberBox initialValue="5" step="2" />`);
|
|
166
|
-
const driver = yield createNumberBoxDriver();
|
|
167
|
-
yield driver.decrement();
|
|
168
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("3");
|
|
169
|
-
}));
|
|
170
|
-
(0, fixtures_1.test)("invalid step values use default step", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createNumberBoxDriver }) {
|
|
171
|
-
yield initTestBed(`<NumberBox initialValue="10" step="3.5" />`);
|
|
172
|
-
const driver = yield createNumberBoxDriver();
|
|
173
|
-
yield driver.increment();
|
|
174
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("11");
|
|
175
|
-
}));
|
|
176
|
-
// --- Arrow key navigation
|
|
177
|
-
(0, fixtures_1.test)("pressing up arrow adds step value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
178
|
-
yield initTestBed(`<NumberBox initialValue="5" />`);
|
|
179
|
-
const input = page.getByRole("textbox");
|
|
180
|
-
yield input.focus();
|
|
181
|
-
yield page.keyboard.press("ArrowUp");
|
|
182
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("6");
|
|
183
|
-
}));
|
|
184
|
-
(0, fixtures_1.test)("pressing down arrow subtracts step value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
185
|
-
yield initTestBed(`<NumberBox initialValue="5" />`);
|
|
186
|
-
const input = page.getByRole("textbox");
|
|
187
|
-
yield input.focus();
|
|
188
|
-
yield page.keyboard.press("ArrowDown");
|
|
189
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("4");
|
|
190
|
-
}));
|
|
191
|
-
// --- integersOnly prop
|
|
192
|
-
(0, fixtures_1.test)("integersOnly=true prevents decimal input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
193
|
-
yield initTestBed(`<NumberBox integersOnly="true" />`);
|
|
194
|
-
const input = page.getByRole("textbox");
|
|
195
|
-
yield input.fill("123.45");
|
|
196
|
-
// Should not allow decimal point
|
|
197
|
-
yield (0, fixtures_1.expect)(input).not.toHaveValue("123.45");
|
|
198
|
-
}));
|
|
199
|
-
// --- zeroOrPositive prop
|
|
200
|
-
(0, fixtures_1.test)("zeroOrPositive=true prevents negative values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createNumberBoxDriver, }) {
|
|
201
|
-
yield initTestBed(`<NumberBox zeroOrPositive="true" initialValue="1" />`);
|
|
202
|
-
const driver = yield createNumberBoxDriver();
|
|
203
|
-
yield driver.decrement();
|
|
204
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("0");
|
|
205
|
-
yield driver.decrement();
|
|
206
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("0");
|
|
207
|
-
}));
|
|
208
|
-
// --- Range validation (min/max)
|
|
209
|
-
(0, fixtures_1.test)("minValue prevents values below minimum spinner button", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createNumberBoxDriver, }) {
|
|
210
|
-
yield initTestBed(`<NumberBox minValue="10" initialValue="11" />`);
|
|
211
|
-
const driver = yield createNumberBoxDriver();
|
|
212
|
-
yield driver.decrement();
|
|
213
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("10");
|
|
214
|
-
yield driver.decrement();
|
|
215
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("10");
|
|
216
|
-
}));
|
|
217
|
-
(0, fixtures_1.test)("minValue prevents typing values below minimum", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
218
|
-
yield initTestBed(`<NumberBox minValue="10" initialValue="11" />`);
|
|
219
|
-
const textbox = page.getByRole("textbox");
|
|
220
|
-
yield textbox.fill("2");
|
|
221
|
-
yield textbox.blur();
|
|
222
|
-
yield (0, fixtures_1.expect)(textbox).toHaveValue("10");
|
|
223
|
-
}));
|
|
224
|
-
(0, fixtures_1.test)("maxValue prevents values above maximum spinner button", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createNumberBoxDriver, }) {
|
|
225
|
-
yield initTestBed(`<NumberBox maxValue="11" initialValue="10" />`);
|
|
226
|
-
const driver = yield createNumberBoxDriver();
|
|
227
|
-
yield driver.increment();
|
|
228
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("11");
|
|
229
|
-
yield driver.increment();
|
|
230
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("11");
|
|
231
|
-
}));
|
|
232
|
-
(0, fixtures_1.test)("maxValue prevents typing values above maximum", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
233
|
-
yield initTestBed(`<NumberBox maxValue="11" initialValue="10" />`);
|
|
234
|
-
const textbox = page.getByRole("textbox");
|
|
235
|
-
yield textbox.fill("200");
|
|
236
|
-
yield textbox.blur();
|
|
237
|
-
yield (0, fixtures_1.expect)(textbox).toHaveValue("11");
|
|
238
|
-
}));
|
|
239
|
-
});
|
|
240
|
-
// =============================================================================
|
|
241
|
-
// ACCESSIBILITY TESTS
|
|
242
|
-
// =============================================================================
|
|
243
|
-
fixtures_1.test.describe("Accessibility", () => {
|
|
244
|
-
(0, fixtures_1.test)("has correct role", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
245
|
-
yield initTestBed(`<NumberBox testId="input" hasSpinBox="true" />`);
|
|
246
|
-
yield (0, fixtures_1.expect)(page.getByRole("spinbutton")).toHaveCount(2);
|
|
247
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
248
|
-
}));
|
|
249
|
-
(0, fixtures_1.test)("component supports keyboard navigation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
250
|
-
yield initTestBed(`<NumberBox label="Amount" />`);
|
|
251
|
-
yield page.keyboard.press("Tab");
|
|
252
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeFocused();
|
|
253
|
-
}));
|
|
254
|
-
(0, fixtures_1.test)("required has proper ARIA attributes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
255
|
-
yield initTestBed(`<NumberBox required="true" label="Required field" />`);
|
|
256
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveAttribute("required");
|
|
257
|
-
}));
|
|
258
|
-
});
|
|
259
|
-
// =============================================================================
|
|
260
|
-
// LABEL POSITIONING TESTS
|
|
261
|
-
// =============================================================================
|
|
262
|
-
fixtures_1.test.describe("Label", () => {
|
|
263
|
-
(0, fixtures_1.test)("component handles invalid labelPosition gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
264
|
-
yield initTestBed(`<NumberBox label="Label" labelPosition="invalid" />`);
|
|
265
|
-
yield (0, fixtures_1.expect)(page.getByText("Label")).toBeVisible();
|
|
266
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
267
|
-
}));
|
|
268
|
-
(0, fixtures_1.test)("empty string label is not rendered", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
269
|
-
yield initTestBed(`<NumberBox label="" initialValue="" />`);
|
|
270
|
-
// No specific label should be visible, just the input
|
|
271
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
272
|
-
}));
|
|
273
|
-
(0, fixtures_1.test)("clicking on the label focuses input field", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
274
|
-
yield initTestBed(`<NumberBox label="Input Field Label" />`);
|
|
275
|
-
yield page.getByText("Input Field Label").click();
|
|
276
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeFocused();
|
|
277
|
-
}));
|
|
278
|
-
(0, fixtures_1.test)("labelPosition=start positions label before input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
279
|
-
yield initTestBed(`<NumberBox direction="ltr" label="Label" labelPosition="start" />`);
|
|
280
|
-
const labelBox = yield (0, component_test_helpers_1.getBounds)(page.getByText("Label"));
|
|
281
|
-
const inputBox = yield (0, component_test_helpers_1.getBounds)(page.getByRole("textbox"));
|
|
282
|
-
(0, fixtures_1.expect)(labelBox.right).toBeLessThan(inputBox.left);
|
|
283
|
-
}));
|
|
284
|
-
(0, fixtures_1.test)("labelPosition=end positions label after input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
285
|
-
yield initTestBed(`<NumberBox direction="ltr" label="Label" labelPosition="end" />`);
|
|
286
|
-
const labelBox = yield (0, component_test_helpers_1.getBounds)(page.getByText("Label"));
|
|
287
|
-
const inputBox = yield (0, component_test_helpers_1.getBounds)(page.getByRole("textbox"));
|
|
288
|
-
(0, fixtures_1.expect)(labelBox.left).toBeGreaterThan(inputBox.right);
|
|
289
|
-
}));
|
|
290
|
-
(0, fixtures_1.test)("labelPosition=start positions label before input (rtl)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
291
|
-
yield initTestBed(`<NumberBox direction="rtl" label="Label" labelPosition="start" />`);
|
|
292
|
-
const labelBox = yield (0, component_test_helpers_1.getBounds)(page.getByText("Label"));
|
|
293
|
-
const inputBox = yield (0, component_test_helpers_1.getBounds)(page.getByRole("textbox"));
|
|
294
|
-
(0, fixtures_1.expect)(labelBox.left).toBeGreaterThan(inputBox.right);
|
|
295
|
-
}));
|
|
296
|
-
(0, fixtures_1.test)("labelPosition=end positions label after input (rtl)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
297
|
-
yield initTestBed(`<NumberBox direction="rtl" label="Label" labelPosition="end" />`);
|
|
298
|
-
const labelBox = yield (0, component_test_helpers_1.getBounds)(page.getByText("Label"));
|
|
299
|
-
const inputBox = yield (0, component_test_helpers_1.getBounds)(page.getByRole("textbox"));
|
|
300
|
-
(0, fixtures_1.expect)(labelBox.right).toBeLessThan(inputBox.left);
|
|
301
|
-
}));
|
|
302
|
-
(0, fixtures_1.test)("labelPosition=top positions label above input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
303
|
-
yield initTestBed(`<NumberBox label="Label" labelPosition="top" />`);
|
|
304
|
-
const labelBox = yield (0, component_test_helpers_1.getBounds)(page.getByText("Label"));
|
|
305
|
-
const inputBox = yield (0, component_test_helpers_1.getBounds)(page.getByRole("textbox"));
|
|
306
|
-
(0, fixtures_1.expect)(labelBox.bottom).toBeLessThan(inputBox.top);
|
|
307
|
-
}));
|
|
308
|
-
(0, fixtures_1.test)("labelPosition=bottom positions label below input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
309
|
-
yield initTestBed(`<NumberBox label="Label" labelPosition="bottom" />`);
|
|
310
|
-
const labelBox = yield (0, component_test_helpers_1.getBounds)(page.getByText("Label"));
|
|
311
|
-
const inputBox = yield (0, component_test_helpers_1.getBounds)(page.getByRole("textbox"));
|
|
312
|
-
(0, fixtures_1.expect)(labelBox.top).toBeGreaterThan(inputBox.bottom);
|
|
313
|
-
}));
|
|
314
|
-
(0, fixtures_1.test)("labelWidth applies custom label width", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
315
|
-
yield initTestBed(`<NumberBox label="Label" labelWidth="200px" />`);
|
|
316
|
-
const label = page.getByText("Label");
|
|
317
|
-
yield (0, fixtures_1.expect)(label).toBeVisible();
|
|
318
|
-
yield (0, fixtures_1.expect)(label).toHaveCSS("width", "200px");
|
|
319
|
-
}));
|
|
320
|
-
(0, fixtures_1.test)("labelBreak enables label line breaks", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
321
|
-
yield initTestBed(`<NumberBox label="Very long label text" labelBreak="true" labelWidth="50px" />`);
|
|
322
|
-
const label = page.getByText("Very long label text");
|
|
323
|
-
yield (0, fixtures_1.expect)(label).toBeVisible();
|
|
324
|
-
}));
|
|
325
|
-
});
|
|
326
|
-
// =============================================================================
|
|
327
|
-
// EVENT HANDLING TESTS
|
|
328
|
-
// =============================================================================
|
|
329
|
-
fixtures_1.test.describe("Event Handling", () => {
|
|
330
|
-
(0, fixtures_1.test)("didChange event fires on input change", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
331
|
-
const { testStateDriver } = yield initTestBed(`<NumberBox onDidChange="testState = 'changed'" />`);
|
|
332
|
-
yield page.getByRole("textbox").fill("123");
|
|
333
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe("changed");
|
|
334
|
-
}));
|
|
335
|
-
(0, fixtures_1.test)("didChange event passes new value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
336
|
-
const { testStateDriver } = yield initTestBed(`<NumberBox onDidChange="arg => testState = arg" />`);
|
|
337
|
-
yield page.getByRole("textbox").fill("123");
|
|
338
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe("123");
|
|
339
|
-
}));
|
|
340
|
-
(0, fixtures_1.test)("gotFocus event fires on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
341
|
-
const { testStateDriver } = yield initTestBed(`<NumberBox onGotFocus="testState = 'focused'" />`);
|
|
342
|
-
yield page.getByRole("textbox").focus();
|
|
343
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe("focused");
|
|
344
|
-
}));
|
|
345
|
-
(0, fixtures_1.test)("gotFocus event fires on label focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
346
|
-
const { testStateDriver } = yield initTestBed(`<NumberBox onGotFocus="testState = 'focused'" label="test" />`);
|
|
347
|
-
yield page.getByText("test").click();
|
|
348
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe("focused");
|
|
349
|
-
}));
|
|
350
|
-
(0, fixtures_1.test)("lostFocus event fires on blur", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
351
|
-
const { testStateDriver } = yield initTestBed(`<NumberBox onLostFocus="testState = 'blurred'" />`);
|
|
352
|
-
const input = page.getByRole("textbox");
|
|
353
|
-
yield input.focus();
|
|
354
|
-
yield input.blur();
|
|
355
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe("blurred");
|
|
356
|
-
}));
|
|
357
|
-
(0, fixtures_1.test)("events do not fire when component is disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
358
|
-
const { testStateDriver } = yield initTestBed(`
|
|
359
|
-
<NumberBox enabled="false" onDidChange="testState = 'changed'" onGotFocus="testState = 'focused'" />
|
|
360
|
-
`);
|
|
361
|
-
const input = page.getByRole("textbox");
|
|
362
|
-
yield input.focus();
|
|
363
|
-
yield input.fill("123", { force: true }); // Should not allow input
|
|
364
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(null);
|
|
365
|
-
}));
|
|
366
|
-
});
|
|
367
|
-
// =============================================================================
|
|
368
|
-
// API TESTS
|
|
369
|
-
// =============================================================================
|
|
370
|
-
fixtures_1.test.describe("API", () => {
|
|
371
|
-
(0, fixtures_1.test)("value API returns current state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
372
|
-
const { testStateDriver } = yield initTestBed(`
|
|
373
|
-
<Fragment>
|
|
374
|
-
<NumberBox id="numberbox" initialValue="123" />
|
|
375
|
-
<Button label="test" onClick="testState = numberbox.value" />
|
|
376
|
-
</Fragment>
|
|
377
|
-
`);
|
|
378
|
-
yield page.getByRole("button", { name: "test" }).click();
|
|
379
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(123);
|
|
380
|
-
}));
|
|
381
|
-
(0, fixtures_1.test)("value API returns state after change", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
382
|
-
const { testStateDriver } = yield initTestBed(`
|
|
383
|
-
<Fragment>
|
|
384
|
-
<NumberBox id="numberbox" />
|
|
385
|
-
<Button label="test" onClick="testState = numberbox.value" />
|
|
386
|
-
</Fragment>
|
|
387
|
-
`);
|
|
388
|
-
yield page.getByRole("textbox").fill("456");
|
|
389
|
-
yield page.getByRole("button", { name: "test" }).click();
|
|
390
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe("456");
|
|
391
|
-
}));
|
|
392
|
-
(0, fixtures_1.test)("setValue API updates state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
393
|
-
yield initTestBed(`
|
|
394
|
-
<Fragment>
|
|
395
|
-
<NumberBox id="numberbox" />
|
|
396
|
-
<Button label="test" onClick="numberbox.setValue(789)" />
|
|
397
|
-
</Fragment>
|
|
398
|
-
`);
|
|
399
|
-
yield page.getByRole("button", { name: "test" }).click();
|
|
400
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("789");
|
|
401
|
-
}));
|
|
402
|
-
(0, fixtures_1.test)("setValue API triggers events", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
403
|
-
const { testStateDriver } = yield initTestBed(`
|
|
404
|
-
<Fragment>
|
|
405
|
-
<NumberBox id="numberbox" onDidChange="testState = 'changed'" />
|
|
406
|
-
<Button label="test" onClick="numberbox.setValue(123)" />
|
|
407
|
-
</Fragment>
|
|
408
|
-
`);
|
|
409
|
-
yield page.getByRole("button", { name: "test" }).click();
|
|
410
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe("changed");
|
|
411
|
-
}));
|
|
412
|
-
(0, fixtures_1.test)("focus API focuses the input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
413
|
-
yield initTestBed(`
|
|
414
|
-
<Fragment>
|
|
415
|
-
<NumberBox id="numberbox" />
|
|
416
|
-
<Button label="test" onClick="numberbox.focus()" />
|
|
417
|
-
</Fragment>
|
|
418
|
-
`);
|
|
419
|
-
yield page.getByRole("button", { name: "test" }).click();
|
|
420
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeFocused();
|
|
421
|
-
}));
|
|
422
|
-
(0, fixtures_1.test)("focus API does nothing when component is disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
423
|
-
yield initTestBed(`
|
|
424
|
-
<Fragment>
|
|
425
|
-
<NumberBox id="numberbox" enabled="false" />
|
|
426
|
-
<Button label="test" onClick="numberbox.focus()" />
|
|
427
|
-
</Fragment>
|
|
428
|
-
`);
|
|
429
|
-
yield page.getByRole("button", { name: "test" }).click();
|
|
430
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).not.toBeFocused();
|
|
431
|
-
}));
|
|
432
|
-
});
|
|
433
|
-
// =============================================================================
|
|
434
|
-
// INPUT ADORNMENTS TESTS (From TextBox pattern)
|
|
435
|
-
// =============================================================================
|
|
436
|
-
fixtures_1.test.describe("Input Adornments", () => {
|
|
437
|
-
(0, fixtures_1.test)("startText displays at beginning of input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
438
|
-
yield initTestBed(`<NumberBox testId="input" direction="ltr" startText="$" />`);
|
|
439
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(page.getByTestId("input"));
|
|
440
|
-
const { left: textLeft, right: textRight } = yield (0, component_test_helpers_1.getBounds)(page.getByText("$"));
|
|
441
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toContainText("$");
|
|
442
|
-
(0, fixtures_1.expect)(textRight - compLeft).toBeLessThanOrEqual(compRight - textLeft);
|
|
443
|
-
}));
|
|
444
|
-
(0, fixtures_1.test)("startText displays at beginning of input (rtl)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
445
|
-
yield initTestBed(`<NumberBox testId="input" direction="rtl" startText="$" />`);
|
|
446
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(page.getByTestId("input"));
|
|
447
|
-
const { left: textLeft, right: textRight } = yield (0, component_test_helpers_1.getBounds)(page.getByText("$"));
|
|
448
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toContainText("$");
|
|
449
|
-
(0, fixtures_1.expect)(textRight - compLeft).toBeLessThanOrEqual(compRight - textLeft);
|
|
450
|
-
}));
|
|
451
|
-
(0, fixtures_1.test)("endText displays at end of input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
452
|
-
yield initTestBed(`<NumberBox testId="input" direction="ltr" endText="USD" />`);
|
|
453
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(page.getByTestId("input"));
|
|
454
|
-
const { left: textLeft, right: textRight } = yield (0, component_test_helpers_1.getBounds)(page.getByText("USD"));
|
|
455
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toContainText("USD");
|
|
456
|
-
(0, fixtures_1.expect)(textRight - compLeft).toBeGreaterThanOrEqual(compRight - textLeft);
|
|
457
|
-
}));
|
|
458
|
-
(0, fixtures_1.test)("endText displays at end of input (rtl)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
459
|
-
yield initTestBed(`<NumberBox testId="input" direction="rtl" endText="USD" />`);
|
|
460
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(page.getByTestId("input"));
|
|
461
|
-
const { left: textLeft, right: textRight } = yield (0, component_test_helpers_1.getBounds)(page.getByText("USD"));
|
|
462
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toContainText("USD");
|
|
463
|
-
(0, fixtures_1.expect)(textRight - compLeft).toBeGreaterThanOrEqual(compRight - textLeft);
|
|
464
|
-
}));
|
|
465
|
-
(0, fixtures_1.test)("startIcon displays at beginning of input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
466
|
-
yield initTestBed(`<NumberBox testId="input" direction="ltr" startIcon="search" />`);
|
|
467
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(page.getByTestId("input"));
|
|
468
|
-
const { left: iconLeft, right: iconRight } = yield (0, component_test_helpers_1.getBounds)(page.getByRole("img").first());
|
|
469
|
-
(0, fixtures_1.expect)(iconRight - compLeft).toBeLessThanOrEqual(compRight - iconLeft);
|
|
470
|
-
}));
|
|
471
|
-
(0, fixtures_1.test)("startIcon displays at beginning of input (rtl)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
472
|
-
yield initTestBed(`<NumberBox testId="input" direction="rtl" startIcon="search" />`);
|
|
473
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(page.getByTestId("input"));
|
|
474
|
-
const { left: iconLeft, right: iconRight } = yield (0, component_test_helpers_1.getBounds)(page.getByRole("img").first());
|
|
475
|
-
(0, fixtures_1.expect)(iconRight - compLeft).toBeLessThanOrEqual(compRight - iconLeft);
|
|
476
|
-
}));
|
|
477
|
-
(0, fixtures_1.test)("endIcon displays at end of input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
478
|
-
yield initTestBed(`<NumberBox testId="input" endIcon="search" />`);
|
|
479
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(page.getByTestId("input"));
|
|
480
|
-
const { left: iconLeft, right: iconRight } = yield (0, component_test_helpers_1.getBounds)(page.getByRole("img").first());
|
|
481
|
-
(0, fixtures_1.expect)(iconRight - compLeft).toBeGreaterThanOrEqual(compRight - iconLeft);
|
|
482
|
-
}));
|
|
483
|
-
(0, fixtures_1.test)("endIcon displays at end of input (rtl)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
484
|
-
yield initTestBed(`<NumberBox testId="input" direction="rtl" endIcon="search" />`);
|
|
485
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(page.getByTestId("input"));
|
|
486
|
-
const { left: iconLeft, right: iconRight } = yield (0, component_test_helpers_1.getBounds)(page.getByRole("img").first());
|
|
487
|
-
(0, fixtures_1.expect)(iconRight - compLeft).toBeGreaterThanOrEqual(compRight - iconLeft);
|
|
488
|
-
}));
|
|
489
|
-
(0, fixtures_1.test)("multiple adornments can be combined", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
490
|
-
yield initTestBed(`
|
|
491
|
-
<NumberBox testId="input" startText="$" endText="USD" startIcon="search" endIcon="search" />
|
|
492
|
-
`);
|
|
493
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toContainText("$");
|
|
494
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toContainText("USD");
|
|
495
|
-
yield (0, fixtures_1.expect)(page.getByRole("img").first()).toBeVisible();
|
|
496
|
-
yield (0, fixtures_1.expect)(page.getByRole("img").nth(1)).toBeVisible();
|
|
497
|
-
}));
|
|
498
|
-
(0, fixtures_1.test)("all adornments appear in the right place", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
499
|
-
yield initTestBed(`
|
|
500
|
-
<NumberBox testId="input" startText="$" endText="USD" startIcon="search" endIcon="search" direction="ltr" />
|
|
501
|
-
`);
|
|
502
|
-
const { left: compLeft, right: compRight } = yield (0, component_test_helpers_1.getBounds)(page.getByTestId("input"));
|
|
503
|
-
const { left: startTextLeft, right: startTextRight } = yield (0, component_test_helpers_1.getBounds)(page.getByText("$"));
|
|
504
|
-
const { left: endTextLeft, right: endTextRight } = yield (0, component_test_helpers_1.getBounds)(page.getByText("USD"));
|
|
505
|
-
const { left: startIconLeft, right: startIconRight } = yield (0, component_test_helpers_1.getBounds)(page.getByRole("img").first());
|
|
506
|
-
const { left: endIconLeft, right: endIconRight } = yield (0, component_test_helpers_1.getBounds)(page.getByRole("img").nth(1));
|
|
507
|
-
// Check order of adornments
|
|
508
|
-
(0, fixtures_1.expect)(startTextRight - compLeft).toBeLessThanOrEqual(compRight - startTextLeft);
|
|
509
|
-
(0, fixtures_1.expect)(startIconRight - compLeft).toBeLessThanOrEqual(compRight - startIconLeft);
|
|
510
|
-
(0, fixtures_1.expect)(endTextRight - compLeft).toBeGreaterThanOrEqual(compRight - endTextLeft);
|
|
511
|
-
(0, fixtures_1.expect)(endIconRight - compLeft).toBeGreaterThanOrEqual(compRight - endIconLeft);
|
|
512
|
-
}));
|
|
513
|
-
});
|
|
514
|
-
// =============================================================================
|
|
515
|
-
// THEME VARIABLE TESTS
|
|
516
|
-
// =============================================================================
|
|
517
|
-
fixtures_1.test.describe("Theme Variables", () => {
|
|
518
|
-
(0, fixtures_1.test)("backgroundColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
519
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
520
|
-
testThemeVars: { "backgroundColor-NumberBox-default": "rgb(255, 0, 0)" },
|
|
521
|
-
});
|
|
522
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("background-color", "rgb(255, 0, 0)");
|
|
523
|
-
}));
|
|
524
|
-
(0, fixtures_1.test)("borderColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
525
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
526
|
-
testThemeVars: { "borderColor-NumberBox-default": "rgb(0, 255, 0)" },
|
|
527
|
-
});
|
|
528
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(0, 255, 0)");
|
|
529
|
-
}));
|
|
530
|
-
(0, fixtures_1.test)("textColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
531
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
532
|
-
testThemeVars: { "textColor-NumberBox-default": "rgb(0, 0, 255)" },
|
|
533
|
-
});
|
|
534
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("color", "rgb(0, 0, 255)");
|
|
535
|
-
}));
|
|
536
|
-
(0, fixtures_1.test)("focus borderColor applies on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
537
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
538
|
-
testThemeVars: { "borderColor-NumberBox-default--focus": "rgb(255, 255, 0)" },
|
|
539
|
-
});
|
|
540
|
-
yield page.getByRole("textbox").focus();
|
|
541
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(255, 255, 0)");
|
|
542
|
-
}));
|
|
543
|
-
(0, fixtures_1.test)("disabled backgroundColor applies when disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
544
|
-
yield initTestBed(`<NumberBox testId="input" enabled="false" />`, {
|
|
545
|
-
testThemeVars: { "backgroundColor-NumberBox--disabled": "rgb(128, 128, 128)" },
|
|
546
|
-
});
|
|
547
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("background-color", "rgb(128, 128, 128)");
|
|
548
|
-
}));
|
|
549
|
-
(0, fixtures_1.test)("borderRadius applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
550
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
551
|
-
testThemeVars: { "borderRadius-NumberBox-default": "10px" },
|
|
552
|
-
});
|
|
553
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-radius", "10px");
|
|
554
|
-
}));
|
|
555
|
-
(0, fixtures_1.test)("padding applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
556
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
557
|
-
testThemeVars: { "padding-NumberBox": "15px" },
|
|
558
|
-
});
|
|
559
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("padding", "15px");
|
|
560
|
-
}));
|
|
561
|
-
// Additional variant mixin theme variable tests
|
|
562
|
-
(0, fixtures_1.test)("borderWidth applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
563
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
564
|
-
testThemeVars: { "borderWidth-NumberBox-default": "3px" },
|
|
565
|
-
});
|
|
566
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-width", "3px");
|
|
567
|
-
}));
|
|
568
|
-
(0, fixtures_1.test)("borderStyle applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
569
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
570
|
-
testThemeVars: { "borderStyle-NumberBox-default": "dashed" },
|
|
571
|
-
});
|
|
572
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-style", "dashed");
|
|
573
|
-
}));
|
|
574
|
-
(0, fixtures_1.test)("fontSize applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
575
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
576
|
-
testThemeVars: { "fontSize-NumberBox-default": "18px" },
|
|
577
|
-
});
|
|
578
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("font-size", "18px");
|
|
579
|
-
}));
|
|
580
|
-
(0, fixtures_1.test)("boxShadow applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
581
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
582
|
-
testThemeVars: { "boxShadow-NumberBox-default": "rgba(0, 0, 0, 0.2) 0px 2px 4px 0px" },
|
|
583
|
-
});
|
|
584
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("box-shadow", "rgba(0, 0, 0, 0.2) 0px 2px 4px 0px");
|
|
585
|
-
}));
|
|
586
|
-
(0, fixtures_1.test)("hover borderColor applies on hover", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
587
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
588
|
-
testThemeVars: { "borderColor-NumberBox-default--hover": "rgb(255, 100, 100)" },
|
|
589
|
-
});
|
|
590
|
-
yield page.getByTestId("input").hover();
|
|
591
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(255, 100, 100)");
|
|
592
|
-
}));
|
|
593
|
-
(0, fixtures_1.test)("hover backgroundColor applies on hover", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
594
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
595
|
-
testThemeVars: { "backgroundColor-NumberBox-default--hover": "rgb(240, 240, 240)" },
|
|
596
|
-
});
|
|
597
|
-
yield page.getByTestId("input").hover();
|
|
598
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("background-color", "rgb(240, 240, 240)");
|
|
599
|
-
}));
|
|
600
|
-
(0, fixtures_1.test)("hover boxShadow applies on hover", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
601
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
602
|
-
testThemeVars: { "boxShadow-NumberBox-default--hover": "rgba(0, 0, 0, 0.3) 0px 4px 8px 0px" },
|
|
603
|
-
});
|
|
604
|
-
yield page.getByTestId("input").hover();
|
|
605
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("box-shadow", "rgba(0, 0, 0, 0.3) 0px 4px 8px 0px");
|
|
606
|
-
}));
|
|
607
|
-
(0, fixtures_1.test)("hover textColor applies on hover", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
608
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
609
|
-
testThemeVars: { "textColor-NumberBox-default--hover": "rgb(50, 50, 50)" },
|
|
610
|
-
});
|
|
611
|
-
yield page.getByTestId("input").hover();
|
|
612
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("color", "rgb(50, 50, 50)");
|
|
613
|
-
}));
|
|
614
|
-
(0, fixtures_1.test)("focus backgroundColor applies on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
615
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
616
|
-
testThemeVars: { "backgroundColor-NumberBox-default--focus": "rgb(250, 250, 250)" },
|
|
617
|
-
});
|
|
618
|
-
yield page.getByRole("textbox").focus();
|
|
619
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("background-color", "rgb(250, 250, 250)");
|
|
620
|
-
}));
|
|
621
|
-
(0, fixtures_1.test)("focus boxShadow applies on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
622
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
623
|
-
testThemeVars: {
|
|
624
|
-
"boxShadow-NumberBox-default--focus": "rgba(0, 100, 255, 0.4) 0px 0px 0px 3px",
|
|
625
|
-
},
|
|
626
|
-
});
|
|
627
|
-
yield page.getByRole("textbox").focus();
|
|
628
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("box-shadow", "rgba(0, 100, 255, 0.4) 0px 0px 0px 3px");
|
|
629
|
-
}));
|
|
630
|
-
(0, fixtures_1.test)("focus textColor applies on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
631
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
632
|
-
testThemeVars: { "textColor-NumberBox-default--focus": "rgb(20, 20, 20)" },
|
|
633
|
-
});
|
|
634
|
-
yield page.getByRole("textbox").focus();
|
|
635
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("color", "rgb(20, 20, 20)");
|
|
636
|
-
}));
|
|
637
|
-
(0, fixtures_1.test)("focus outline properties apply on focus", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
638
|
-
yield initTestBed(`<NumberBox testId="input" />`, {
|
|
639
|
-
testThemeVars: {
|
|
640
|
-
"outlineWidth-NumberBox-default--focus": "2px",
|
|
641
|
-
"outlineColor-NumberBox-default--focus": "rgb(0, 123, 255)",
|
|
642
|
-
"outlineStyle-NumberBox-default--focus": "solid",
|
|
643
|
-
"outlineOffset-NumberBox-default--focus": "2px",
|
|
644
|
-
},
|
|
645
|
-
});
|
|
646
|
-
yield page.getByRole("textbox").focus();
|
|
647
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("outline-width", "2px");
|
|
648
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("outline-color", "rgb(0, 123, 255)");
|
|
649
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("outline-style", "solid");
|
|
650
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("outline-offset", "2px");
|
|
651
|
-
}));
|
|
652
|
-
(0, fixtures_1.test)("placeholder textColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
653
|
-
yield initTestBed(`<NumberBox testId="input" placeholder="Enter number" />`, {
|
|
654
|
-
testThemeVars: { "textColor-placeholder-NumberBox-default": "rgb(150, 150, 150)" },
|
|
655
|
-
});
|
|
656
|
-
const input = page.getByRole("textbox");
|
|
657
|
-
const placeholderColor = yield input.evaluate((el) => {
|
|
658
|
-
return window.getComputedStyle(el, "::placeholder").color;
|
|
659
|
-
});
|
|
660
|
-
(0, fixtures_1.expect)(placeholderColor).toBe("rgb(150, 150, 150)");
|
|
661
|
-
}));
|
|
662
|
-
(0, fixtures_1.test)("placeholder fontSize applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
663
|
-
yield initTestBed(`<NumberBox testId="input" placeholder="Enter number" />`, {
|
|
664
|
-
testThemeVars: { "fontSize-placeholder-NumberBox-default": "14px" },
|
|
665
|
-
});
|
|
666
|
-
const input = page.getByRole("textbox");
|
|
667
|
-
const placeholderFontSize = yield input.evaluate((el) => {
|
|
668
|
-
return window.getComputedStyle(el, "::placeholder").fontSize;
|
|
669
|
-
});
|
|
670
|
-
(0, fixtures_1.expect)(placeholderFontSize).toBe("14px");
|
|
671
|
-
}));
|
|
672
|
-
(0, fixtures_1.test)("gap between adornments applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
673
|
-
yield initTestBed(`<NumberBox testId="input" startText="$" endText="USD" />`, {
|
|
674
|
-
testThemeVars: { "gap-adornment-NumberBox": "8px" },
|
|
675
|
-
});
|
|
676
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("gap", "8px");
|
|
677
|
-
}));
|
|
678
|
-
(0, fixtures_1.test)("disabled textColor applies when disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
679
|
-
yield initTestBed(`<NumberBox testId="input" enabled="false" />`, {
|
|
680
|
-
testThemeVars: { "textColor-NumberBox--disabled": "rgb(160, 160, 160)" },
|
|
681
|
-
});
|
|
682
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("color", "rgb(160, 160, 160)");
|
|
683
|
-
}));
|
|
684
|
-
(0, fixtures_1.test)("disabled borderColor applies when disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
685
|
-
yield initTestBed(`<NumberBox testId="input" enabled="false" />`, {
|
|
686
|
-
testThemeVars: { "borderColor-NumberBox--disabled": "rgb(200, 200, 200)" },
|
|
687
|
-
});
|
|
688
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(200, 200, 200)");
|
|
689
|
-
}));
|
|
690
|
-
// Error variant theme variables
|
|
691
|
-
(0, fixtures_1.test)("error variant borderRadius applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
692
|
-
yield initTestBed(`<NumberBox testId="input" validationStatus="error" />`, {
|
|
693
|
-
testThemeVars: { "borderRadius-NumberBox-error": "8px" },
|
|
694
|
-
});
|
|
695
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-radius", "8px");
|
|
696
|
-
}));
|
|
697
|
-
(0, fixtures_1.test)("error variant fontSize applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
698
|
-
yield initTestBed(`<NumberBox testId="input" validationStatus="error" />`, {
|
|
699
|
-
testThemeVars: { "fontSize-NumberBox-error": "16px" },
|
|
700
|
-
});
|
|
701
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("font-size", "16px");
|
|
702
|
-
}));
|
|
703
|
-
(0, fixtures_1.test)("error variant backgroundColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
704
|
-
yield initTestBed(`<NumberBox testId="input" validationStatus="error" />`, {
|
|
705
|
-
testThemeVars: { "backgroundColor-NumberBox-error": "rgb(255, 240, 240)" },
|
|
706
|
-
});
|
|
707
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("background-color", "rgb(255, 240, 240)");
|
|
708
|
-
}));
|
|
709
|
-
(0, fixtures_1.test)("warning variant textColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
710
|
-
yield initTestBed(`<NumberBox testId="input" validationStatus="warning" />`, {
|
|
711
|
-
testThemeVars: { "textColor-NumberBox-warning": "rgb(133, 100, 4)" },
|
|
712
|
-
});
|
|
713
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("color", "rgb(133, 100, 4)");
|
|
714
|
-
}));
|
|
715
|
-
(0, fixtures_1.test)("success variant backgroundColor applies correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
716
|
-
yield initTestBed(`<NumberBox testId="input" validationStatus="valid" />`, {
|
|
717
|
-
testThemeVars: { "backgroundColor-NumberBox-success": "rgb(240, 255, 240)" },
|
|
718
|
-
});
|
|
719
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("background-color", "rgb(240, 255, 240)");
|
|
720
|
-
}));
|
|
721
|
-
(0, fixtures_1.test)("input text adornment colors apply correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
722
|
-
yield initTestBed(`<NumberBox testId="input" startText="$" endText="€" />`, {
|
|
723
|
-
testThemeVars: { "color-adornment-NumberBox-default": "rgb(0, 123, 255)" },
|
|
724
|
-
});
|
|
725
|
-
yield (0, fixtures_1.expect)(page.getByText("$")).toHaveCSS("color", "rgb(0, 123, 255)");
|
|
726
|
-
yield (0, fixtures_1.expect)(page.getByText("€")).toHaveCSS("color", "rgb(0, 123, 255)");
|
|
727
|
-
}));
|
|
728
|
-
(0, fixtures_1.test)("input icon adornment colors apply correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
729
|
-
yield initTestBed(`<NumberBox testId="input" startIcon="search" endIcon="search" />`, {
|
|
730
|
-
testThemeVars: { "color-adornment-NumberBox-default": "rgb(0, 123, 255)" },
|
|
731
|
-
});
|
|
732
|
-
yield (0, fixtures_1.expect)(page.getByRole("img").first()).toHaveCSS("color", "rgb(0, 123, 255)");
|
|
733
|
-
yield (0, fixtures_1.expect)(page.getByRole("img").nth(1)).toHaveCSS("color", "rgb(0, 123, 255)");
|
|
734
|
-
}));
|
|
735
|
-
});
|
|
736
|
-
// =============================================================================
|
|
737
|
-
// VALIDATION STATUS TESTS
|
|
738
|
-
// =============================================================================
|
|
739
|
-
fixtures_1.test.describe("Validation", () => {
|
|
740
|
-
(0, fixtures_1.test)("error borderColor applies with error validation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
741
|
-
yield initTestBed(`<NumberBox testId="input" validationStatus="error" />`, {
|
|
742
|
-
testThemeVars: { "borderColor-NumberBox-error": "rgb(255, 0, 0)" },
|
|
743
|
-
});
|
|
744
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(255, 0, 0)");
|
|
745
|
-
}));
|
|
746
|
-
(0, fixtures_1.test)("warning borderColor applies with warning validation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
747
|
-
yield initTestBed(`<NumberBox testId="input" validationStatus="warning" />`, {
|
|
748
|
-
testThemeVars: { "borderColor-NumberBox-warning": "rgb(255, 165, 0)" },
|
|
749
|
-
});
|
|
750
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(255, 165, 0)");
|
|
751
|
-
}));
|
|
752
|
-
(0, fixtures_1.test)("success borderColor applies with valid validation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
753
|
-
yield initTestBed(`<NumberBox testId="input" validationStatus="valid" />`, {
|
|
754
|
-
testThemeVars: { "borderColor-NumberBox-success": "rgb(0, 128, 0)" },
|
|
755
|
-
});
|
|
756
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(0, 128, 0)");
|
|
757
|
-
}));
|
|
758
|
-
(0, fixtures_1.test)("handles invalid validationStatus gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
759
|
-
yield initTestBed(`<NumberBox testId="input" validationStatus="invalid-status" />`, {
|
|
760
|
-
testThemeVars: {
|
|
761
|
-
"borderColor-NumberBox": "rgb(0, 0, 0)",
|
|
762
|
-
},
|
|
763
|
-
});
|
|
764
|
-
yield (0, fixtures_1.expect)(page.getByTestId("input")).toHaveCSS("border-color", "rgb(0, 0, 0)");
|
|
765
|
-
}));
|
|
766
|
-
});
|
|
767
|
-
// =============================================================================
|
|
768
|
-
// OTHER EDGE CASE TESTS
|
|
769
|
-
// =============================================================================
|
|
770
|
-
fixtures_1.test.describe("Other Edge Cases", () => {
|
|
771
|
-
(0, fixtures_1.test)("placeholder is hidden if input field is filled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
772
|
-
yield initTestBed(`<NumberBox placeholder="123" />`);
|
|
773
|
-
const input = page.getByRole("textbox");
|
|
774
|
-
yield input.fill("456");
|
|
775
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("456");
|
|
776
|
-
yield (0, fixtures_1.expect)(input).toHaveAttribute("placeholder", "123");
|
|
777
|
-
}));
|
|
778
|
-
(0, fixtures_1.test)("invalid initialValue types are handled gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
779
|
-
// Test various invalid types
|
|
780
|
-
yield initTestBed(`<NumberBox initialValue="{true}" />`);
|
|
781
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("");
|
|
782
|
-
}));
|
|
783
|
-
// Complex edge cases
|
|
784
|
-
(0, fixtures_1.test)("handle special characters in input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
785
|
-
yield initTestBed(`<NumberBox />`);
|
|
786
|
-
const input = page.getByRole("textbox");
|
|
787
|
-
// Should filter out special characters
|
|
788
|
-
yield input.fill("!@#$123%^&");
|
|
789
|
-
yield (0, fixtures_1.expect)(input).not.toHaveValue("!@#$123%^&");
|
|
790
|
-
}));
|
|
791
|
-
(0, fixtures_1.test)("handle Unicode characters in input", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
792
|
-
yield initTestBed(`<NumberBox />`);
|
|
793
|
-
const input = page.getByRole("textbox");
|
|
794
|
-
// Should filter out Unicode characters
|
|
795
|
-
yield input.fill("👨👩👧👦123");
|
|
796
|
-
yield (0, fixtures_1.expect)(input).not.toHaveValue("👨👩👧👦123");
|
|
797
|
-
}));
|
|
798
|
-
(0, fixtures_1.test)("component handles very long input text", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
799
|
-
yield initTestBed(`<NumberBox />`);
|
|
800
|
-
const input = page.getByRole("textbox");
|
|
801
|
-
const longNumber = "1".repeat(100);
|
|
802
|
-
yield input.fill(longNumber);
|
|
803
|
-
// Should handle or truncate appropriately
|
|
804
|
-
yield (0, fixtures_1.expect)(input).toBeVisible();
|
|
805
|
-
}));
|
|
806
|
-
(0, fixtures_1.test)("component handles rapid input changes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
807
|
-
yield initTestBed(`<NumberBox />`);
|
|
808
|
-
const input = page.getByRole("textbox");
|
|
809
|
-
yield input.pressSequentially("123", { delay: 50 });
|
|
810
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("123");
|
|
811
|
-
yield input.clear();
|
|
812
|
-
yield input.pressSequentially("456", { delay: 25 });
|
|
813
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("456");
|
|
814
|
-
}));
|
|
815
|
-
(0, fixtures_1.test)("component works with conditional rendering", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
816
|
-
yield initTestBed(`
|
|
817
|
-
<Fragment>
|
|
818
|
-
<NumberBox when="{testState}" />
|
|
819
|
-
<Button label="test" onClick="testState = true" />
|
|
820
|
-
</Fragment>
|
|
821
|
-
`);
|
|
822
|
-
// Initially not visible
|
|
823
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).not.toBeVisible();
|
|
824
|
-
// Click to show
|
|
825
|
-
yield page.getByRole("button", { name: "test" }).click();
|
|
826
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toBeVisible();
|
|
827
|
-
}));
|
|
828
|
-
(0, fixtures_1.test)("spinner buttons work with long press", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createNumberBoxDriver, page, }) {
|
|
829
|
-
yield initTestBed(`<NumberBox initialValue="0" />`);
|
|
830
|
-
const driver = yield createNumberBoxDriver();
|
|
831
|
-
// Hold down the button (simulate long press)
|
|
832
|
-
yield driver.spinnerUp.hover();
|
|
833
|
-
yield page.mouse.down();
|
|
834
|
-
yield page.waitForTimeout(600); // Wait longer than initial delay
|
|
835
|
-
yield page.mouse.up();
|
|
836
|
-
// Should have incremented multiple times
|
|
837
|
-
yield (0, fixtures_1.expect)(driver.input).not.toHaveValue("0");
|
|
838
|
-
}));
|
|
839
|
-
(0, fixtures_1.test)("integersOnly with zeroOrPositive combination works", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createNumberBoxDriver, page, }) {
|
|
840
|
-
yield initTestBed(`<NumberBox integersOnly="true" zeroOrPositive="true" initialValue="1" />`);
|
|
841
|
-
const driver = yield createNumberBoxDriver();
|
|
842
|
-
yield driver.decrement();
|
|
843
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("0");
|
|
844
|
-
yield driver.decrement();
|
|
845
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("0");
|
|
846
|
-
yield driver.input.type(".5");
|
|
847
|
-
yield (0, fixtures_1.expect)(driver.input).toHaveValue("5");
|
|
848
|
-
}));
|
|
849
|
-
// Special numeric formats
|
|
850
|
-
(0, fixtures_1.test)("handle special numeric input formats", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
851
|
-
yield initTestBed(`<NumberBox />`);
|
|
852
|
-
const input = page.getByRole("textbox");
|
|
853
|
-
// Test scientific notation
|
|
854
|
-
yield input.fill("1e5");
|
|
855
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("1e5");
|
|
856
|
-
// Test negative numbers
|
|
857
|
-
yield input.clear();
|
|
858
|
-
yield input.fill("-123");
|
|
859
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("-123");
|
|
860
|
-
}));
|
|
861
|
-
(0, fixtures_1.test)("entering multiple 0s only results in one 0", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
862
|
-
yield initTestBed(`<NumberBox />`);
|
|
863
|
-
yield page.getByRole("textbox").pressSequentially("0000000000000000");
|
|
864
|
-
yield page.getByRole("textbox").blur();
|
|
865
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("0");
|
|
866
|
-
}));
|
|
867
|
-
(0, fixtures_1.test)("copying multiple 0s only results in one 0", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
868
|
-
const { clipboard } = yield initTestBed(`<NumberBox />`);
|
|
869
|
-
yield clipboard.write("0000000000000000");
|
|
870
|
-
yield clipboard.paste(page.getByRole("textbox"));
|
|
871
|
-
yield page.getByRole("textbox").blur();
|
|
872
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("0");
|
|
873
|
-
}));
|
|
874
|
-
(0, fixtures_1.test)("standalone minus sign is permitted if field is not blurred yet", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
875
|
-
yield initTestBed(`<NumberBox />`);
|
|
876
|
-
yield page.getByRole("textbox").fill("-");
|
|
877
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("-");
|
|
878
|
-
}));
|
|
879
|
-
(0, fixtures_1.test)("minus sign is applied correctly if it comes after number", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
880
|
-
yield initTestBed(`<NumberBox />`);
|
|
881
|
-
yield page.getByRole("textbox").pressSequentially("123-");
|
|
882
|
-
yield (0, fixtures_1.expect)(page.getByRole("textbox")).toHaveValue("-123");
|
|
883
|
-
}));
|
|
884
|
-
(0, fixtures_1.test)("placing decimal separator between the numbers of an integer results in a float", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
885
|
-
yield initTestBed(`<NumberBox />`);
|
|
886
|
-
const input = page.getByRole("textbox");
|
|
887
|
-
yield input.fill("123456");
|
|
888
|
-
yield input.press("ArrowLeft");
|
|
889
|
-
yield input.press("ArrowLeft");
|
|
890
|
-
yield input.press("ArrowLeft");
|
|
891
|
-
yield input.press(".");
|
|
892
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("123.456");
|
|
893
|
-
}));
|
|
894
|
-
(0, fixtures_1.test)("placing second decimal separator is not permitted", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
895
|
-
yield initTestBed(`<NumberBox />`);
|
|
896
|
-
const input = page.getByRole("textbox");
|
|
897
|
-
yield input.fill("1.23456");
|
|
898
|
-
yield input.press("ArrowLeft");
|
|
899
|
-
yield input.press(".");
|
|
900
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("1.23456");
|
|
901
|
-
}));
|
|
902
|
-
(0, fixtures_1.test)("placing decimal separator before an integer adds a leading 0 (#1)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
903
|
-
yield initTestBed(`<NumberBox />`);
|
|
904
|
-
const input = page.getByRole("textbox");
|
|
905
|
-
yield input.fill("12");
|
|
906
|
-
yield input.press("ArrowLeft");
|
|
907
|
-
yield input.press("ArrowLeft");
|
|
908
|
-
yield input.press(".");
|
|
909
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("0.12");
|
|
910
|
-
}));
|
|
911
|
-
(0, fixtures_1.test)("placing decimal separator before an integer adds a leading 0 (#2)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
912
|
-
yield initTestBed(`<NumberBox />`);
|
|
913
|
-
const input = page.getByRole("textbox");
|
|
914
|
-
yield input.fill("");
|
|
915
|
-
yield input.press(".");
|
|
916
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("0.");
|
|
917
|
-
}));
|
|
918
|
-
(0, fixtures_1.test)("adding floating point to the end adds a trailing 0 when blurred", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
919
|
-
yield initTestBed(`<NumberBox />`);
|
|
920
|
-
const input = page.getByRole("textbox");
|
|
921
|
-
yield input.pressSequentially("123.");
|
|
922
|
-
yield input.blur();
|
|
923
|
-
yield (0, fixtures_1.expect)(input).toHaveValue("123.0");
|
|
924
|
-
}));
|
|
925
|
-
});
|
|
926
|
-
// =============================================================================
|
|
927
|
-
// VISUAL STATE TESTS
|
|
928
|
-
// =============================================================================
|
|
929
|
-
(0, fixtures_1.test)("input has correct width in px", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
930
|
-
yield initTestBed(`<NumberBox width="200px" testId="test"/>`, {});
|
|
931
|
-
const input = page.getByTestId("test");
|
|
932
|
-
const { width } = yield input.boundingBox();
|
|
933
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
934
|
-
}));
|
|
935
|
-
(0, fixtures_1.test)("input with label has correct width in px", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
936
|
-
yield initTestBed(`<NumberBox width="200px" label="test" testId="test"/>`, {});
|
|
937
|
-
const input = page.getByTestId("test");
|
|
938
|
-
const { width } = yield input.boundingBox();
|
|
939
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
940
|
-
}));
|
|
941
|
-
(0, fixtures_1.test)("input has correct width in %", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
942
|
-
yield page.setViewportSize({ width: 400, height: 300 });
|
|
943
|
-
yield initTestBed(`<NumberBox width="50%" testId="test"/>`, {});
|
|
944
|
-
const input = page.getByTestId("test");
|
|
945
|
-
const { width } = yield input.boundingBox();
|
|
946
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
947
|
-
}));
|
|
948
|
-
(0, fixtures_1.test)("input with label has correct width in %", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
949
|
-
yield page.setViewportSize({ width: 400, height: 300 });
|
|
950
|
-
yield initTestBed(`<NumberBox width="50%" label="test" testId="test"/>`, {});
|
|
951
|
-
const input = page.getByTestId("test");
|
|
952
|
-
const { width } = yield input.boundingBox();
|
|
953
|
-
(0, fixtures_1.expect)(width).toBe(200);
|
|
954
|
-
}));
|