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,827 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Table Component End-to-End Tests
|
|
4
|
-
*
|
|
5
|
-
* This test suite provides comprehensive coverage for the Table component following
|
|
6
|
-
* XMLUI testing conventions. The tests validate all documented properties, events,
|
|
7
|
-
* accessibility features, and edge cases.
|
|
8
|
-
*
|
|
9
|
-
* Test Results Summary:
|
|
10
|
-
* - ✅ 25 tests passing
|
|
11
|
-
* - ⏭️ 6 tests skipped (require additional implementation investigation)
|
|
12
|
-
*
|
|
13
|
-
* Key Testing Insights:
|
|
14
|
-
* - Use HTML element selectors (th, td, table) rather than role-based selectors
|
|
15
|
-
* - Add .first() to avoid strict mode violations when multiple elements match
|
|
16
|
-
* - Some features like selection checkboxes exist but are hidden via CSS
|
|
17
|
-
* - Loading states, sorting, and pagination may use different implementations than expected
|
|
18
|
-
*
|
|
19
|
-
* Skipped Tests (for future investigation):
|
|
20
|
-
* 1. Loading property visual indicators
|
|
21
|
-
* 2. Row selection interaction (checkboxes are hidden)
|
|
22
|
-
* 3. Sorting functionality behavior
|
|
23
|
-
* 4. Pagination control identification
|
|
24
|
-
* 5. Theme variable CSS property testing
|
|
25
|
-
*/
|
|
26
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
30
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
31
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
32
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const fixtures_1 = require("../../testing/fixtures");
|
|
37
|
-
// Sample data for testing
|
|
38
|
-
const sampleData = [
|
|
39
|
-
{ id: 1, name: "Apple", quantity: 5, category: "Fruit" },
|
|
40
|
-
{ id: 2, name: "Banana", quantity: 3, category: "Fruit" },
|
|
41
|
-
{ id: 3, name: "Carrot", quantity: 10, category: "Vegetable" },
|
|
42
|
-
{ id: 4, name: "Spinach", quantity: 2, category: "Vegetable" },
|
|
43
|
-
];
|
|
44
|
-
// =============================================================================
|
|
45
|
-
// BASIC FUNCTIONALITY TESTS
|
|
46
|
-
// =============================================================================
|
|
47
|
-
fixtures_1.test.describe("Basic Functionality", () => {
|
|
48
|
-
(0, fixtures_1.test)("renders with basic data and columns", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
49
|
-
yield initTestBed(`
|
|
50
|
-
<Table data='{${JSON.stringify(sampleData)}}' testId="table">
|
|
51
|
-
<Column bindTo="name" header="Name"/>
|
|
52
|
-
<Column bindTo="quantity" header="Quantity"/>
|
|
53
|
-
<Column bindTo="category" header="Category"/>
|
|
54
|
-
</Table>
|
|
55
|
-
`);
|
|
56
|
-
const table = page.getByTestId("table");
|
|
57
|
-
yield (0, fixtures_1.expect)(table).toBeVisible();
|
|
58
|
-
// Check for actual HTML table elements
|
|
59
|
-
const htmlTable = page.locator("table");
|
|
60
|
-
yield (0, fixtures_1.expect)(htmlTable).toBeVisible();
|
|
61
|
-
// Check headers are present
|
|
62
|
-
const headers = page.locator("th");
|
|
63
|
-
yield (0, fixtures_1.expect)(headers).toHaveCount(3); // Should have 3 headers
|
|
64
|
-
// Check header text content
|
|
65
|
-
yield (0, fixtures_1.expect)(headers.nth(0)).toContainText("Name");
|
|
66
|
-
yield (0, fixtures_1.expect)(headers.nth(1)).toContainText("Quantity");
|
|
67
|
-
yield (0, fixtures_1.expect)(headers.nth(2)).toContainText("Category");
|
|
68
|
-
// Check data content - use first() to avoid strict mode violations
|
|
69
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "Apple" }).first()).toBeVisible();
|
|
70
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "5" }).first()).toBeVisible();
|
|
71
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "Fruit" }).first()).toBeVisible();
|
|
72
|
-
}));
|
|
73
|
-
(0, fixtures_1.test)("renders with empty data array", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
74
|
-
yield initTestBed(`
|
|
75
|
-
<Table data='{[]}' testId="table">
|
|
76
|
-
<Column bindTo="name" header="Name"/>
|
|
77
|
-
<Column bindTo="quantity" header="Quantity"/>
|
|
78
|
-
</Table>
|
|
79
|
-
`);
|
|
80
|
-
const table = page.getByTestId("table");
|
|
81
|
-
yield (0, fixtures_1.expect)(table).toBeVisible();
|
|
82
|
-
// Headers should still be visible
|
|
83
|
-
const headers = page.locator("th");
|
|
84
|
-
yield (0, fixtures_1.expect)(headers.nth(0)).toContainText("Name");
|
|
85
|
-
yield (0, fixtures_1.expect)(headers.nth(1)).toContainText("Quantity");
|
|
86
|
-
}));
|
|
87
|
-
fixtures_1.test.describe("data property", () => {
|
|
88
|
-
(0, fixtures_1.test)("displays data with different value types", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
89
|
-
const mixedData = [
|
|
90
|
-
{ id: 1, name: "Test", number: 42, boolean: true, nullValue: null },
|
|
91
|
-
{ id: 2, name: "Another", number: 0, boolean: false, nullValue: undefined },
|
|
92
|
-
];
|
|
93
|
-
yield initTestBed(`
|
|
94
|
-
<Table data='{${JSON.stringify(mixedData)}}' testId="table">
|
|
95
|
-
<Column bindTo="name"/>
|
|
96
|
-
<Column bindTo="number"/>
|
|
97
|
-
<Column bindTo="boolean"/>
|
|
98
|
-
<Column bindTo="nullValue"/>
|
|
99
|
-
</Table>
|
|
100
|
-
`);
|
|
101
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "Test" }).first()).toBeVisible();
|
|
102
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "42" }).first()).toBeVisible();
|
|
103
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "true" }).first()).toBeVisible();
|
|
104
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "0" }).first()).toBeVisible();
|
|
105
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "false" }).first()).toBeVisible();
|
|
106
|
-
}));
|
|
107
|
-
(0, fixtures_1.test)("handles null data gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
108
|
-
yield initTestBed(`
|
|
109
|
-
<Table data='{null}' testId="table">
|
|
110
|
-
<Column bindTo="name"/>
|
|
111
|
-
</Table>
|
|
112
|
-
`);
|
|
113
|
-
const table = page.getByTestId("table");
|
|
114
|
-
yield (0, fixtures_1.expect)(table).toBeVisible();
|
|
115
|
-
}));
|
|
116
|
-
(0, fixtures_1.test)("handles undefined data gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
117
|
-
yield initTestBed(`
|
|
118
|
-
<Table data='{undefined}' testId="table">
|
|
119
|
-
<Column bindTo="name"/>
|
|
120
|
-
</Table>
|
|
121
|
-
`);
|
|
122
|
-
const table = page.getByTestId("table");
|
|
123
|
-
yield (0, fixtures_1.expect)(table).toBeVisible();
|
|
124
|
-
}));
|
|
125
|
-
});
|
|
126
|
-
fixtures_1.test.describe("items property", () => {
|
|
127
|
-
(0, fixtures_1.test)("items property works as alias for data", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
128
|
-
yield initTestBed(`
|
|
129
|
-
<Table items='{${JSON.stringify(sampleData)}}' testId="table">
|
|
130
|
-
<Column bindTo="name"/>
|
|
131
|
-
<Column bindTo="quantity"/>
|
|
132
|
-
</Table>
|
|
133
|
-
`);
|
|
134
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "Apple" }).first()).toBeVisible();
|
|
135
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "5" }).first()).toBeVisible();
|
|
136
|
-
}));
|
|
137
|
-
(0, fixtures_1.test)("items takes priority over data when both are provided", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
138
|
-
const itemsData = [{ id: 1, name: "Items Data" }];
|
|
139
|
-
const dataProperty = [{ id: 1, name: "Data Property" }];
|
|
140
|
-
yield initTestBed(`
|
|
141
|
-
<Table
|
|
142
|
-
items='{${JSON.stringify(itemsData)}}'
|
|
143
|
-
data='{${JSON.stringify(dataProperty)}}'
|
|
144
|
-
testId="table"
|
|
145
|
-
>
|
|
146
|
-
<Column bindTo="name"/>
|
|
147
|
-
</Table>
|
|
148
|
-
`);
|
|
149
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "Items Data" }).first()).toBeVisible();
|
|
150
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "Data Property" })).toHaveCount(0);
|
|
151
|
-
}));
|
|
152
|
-
});
|
|
153
|
-
fixtures_1.test.describe("hideHeader property", () => {
|
|
154
|
-
(0, fixtures_1.test)("hides header when hideHeader is true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
155
|
-
yield initTestBed(`
|
|
156
|
-
<Table data='{${JSON.stringify(sampleData)}}' hideHeader="true" testId="table">
|
|
157
|
-
<Column bindTo="name" header="Name"/>
|
|
158
|
-
<Column bindTo="quantity" header="Quantity"/>
|
|
159
|
-
</Table>
|
|
160
|
-
`);
|
|
161
|
-
// Header should not be visible
|
|
162
|
-
yield (0, fixtures_1.expect)(page.locator("th")).toHaveCount(0);
|
|
163
|
-
// Data should still be visible
|
|
164
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "Apple" }).first()).toBeVisible();
|
|
165
|
-
}));
|
|
166
|
-
(0, fixtures_1.test)("shows header when hideHeader is false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
167
|
-
yield initTestBed(`
|
|
168
|
-
<Table data='{${JSON.stringify(sampleData)}}' hideHeader="false" testId="table">
|
|
169
|
-
<Column bindTo="name" header="Name"/>
|
|
170
|
-
<Column bindTo="quantity" header="Quantity"/>
|
|
171
|
-
</Table>
|
|
172
|
-
`);
|
|
173
|
-
const headers = page.locator("th");
|
|
174
|
-
yield (0, fixtures_1.expect)(headers.nth(0)).toContainText("Name");
|
|
175
|
-
yield (0, fixtures_1.expect)(headers.nth(1)).toContainText("Quantity");
|
|
176
|
-
}));
|
|
177
|
-
});
|
|
178
|
-
fixtures_1.test.describe("noBottomBorder property", () => {
|
|
179
|
-
(0, fixtures_1.test)("removes bottom border when noBottomBorder is true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
180
|
-
yield initTestBed(`
|
|
181
|
-
<Table data='{${JSON.stringify(sampleData)}}' noBottomBorder="true" testId="table">
|
|
182
|
-
<Column bindTo="name"/>
|
|
183
|
-
</Table>
|
|
184
|
-
`);
|
|
185
|
-
const table = page.getByTestId("table");
|
|
186
|
-
yield (0, fixtures_1.expect)(table).toBeVisible();
|
|
187
|
-
// Note: Visual border testing would require specific CSS assertions
|
|
188
|
-
}));
|
|
189
|
-
});
|
|
190
|
-
fixtures_1.test.describe("rowsSelectable property", () => {
|
|
191
|
-
(0, fixtures_1.test)("enables row selection when rowsSelectable is true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
192
|
-
yield initTestBed(`
|
|
193
|
-
<Table data='{${JSON.stringify(sampleData)}}' rowsSelectable="true" testId="table">
|
|
194
|
-
<Column bindTo="name"/>
|
|
195
|
-
</Table>
|
|
196
|
-
`);
|
|
197
|
-
// Selection checkboxes should be present - they exist but might be hidden via CSS
|
|
198
|
-
const checkboxes = page.locator("input[type='checkbox']");
|
|
199
|
-
yield (0, fixtures_1.expect)(checkboxes).toHaveCount(5); // 4 data rows + 1 header checkbox
|
|
200
|
-
}));
|
|
201
|
-
(0, fixtures_1.test)("disables row selection when rowsSelectable is false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
202
|
-
yield initTestBed(`
|
|
203
|
-
<Table data='{${JSON.stringify(sampleData)}}' rowsSelectable="false" testId="table">
|
|
204
|
-
<Column bindTo="name"/>
|
|
205
|
-
</Table>
|
|
206
|
-
`);
|
|
207
|
-
// No selection checkboxes should be present
|
|
208
|
-
const checkboxes = page.locator("input[type='checkbox']");
|
|
209
|
-
yield (0, fixtures_1.expect)(checkboxes).toHaveCount(0);
|
|
210
|
-
}));
|
|
211
|
-
});
|
|
212
|
-
fixtures_1.test.describe("autoFocus property", () => {
|
|
213
|
-
(0, fixtures_1.test)("focuses table when autoFocus is true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
214
|
-
yield initTestBed(`
|
|
215
|
-
<Table data='{${JSON.stringify(sampleData)}}' autoFocus="true" testId="table">
|
|
216
|
-
<Column bindTo="name"/>
|
|
217
|
-
</Table>
|
|
218
|
-
`);
|
|
219
|
-
const table = page.getByTestId("table");
|
|
220
|
-
yield (0, fixtures_1.expect)(table).toBeFocused();
|
|
221
|
-
}));
|
|
222
|
-
});
|
|
223
|
-
fixtures_1.test.describe("checkboxTolerance property", () => {
|
|
224
|
-
(0, fixtures_1.test)("allows checkbox interaction within compact tolerance boundary", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
225
|
-
const { testStateDriver } = yield initTestBed(`
|
|
226
|
-
<Table data='{${JSON.stringify(sampleData)}}'
|
|
227
|
-
rowsSelectable="true"
|
|
228
|
-
checkboxTolerance="compact"
|
|
229
|
-
onSelectionDidChange="testState = 'selection changed'"
|
|
230
|
-
testId="table">
|
|
231
|
-
<Column bindTo="name"/>
|
|
232
|
-
<Column bindTo="quantity"/>
|
|
233
|
-
</Table>
|
|
234
|
-
`);
|
|
235
|
-
// Get first row checkbox - checkboxes exist but are hidden via CSS
|
|
236
|
-
const firstRowCheckbox = page.locator("input[type='checkbox']").nth(1); // Skip header checkbox
|
|
237
|
-
// Verify checkbox exists (even if hidden)
|
|
238
|
-
yield (0, fixtures_1.expect)(firstRowCheckbox).toBeAttached();
|
|
239
|
-
// Get the first table row to interact with
|
|
240
|
-
const firstDataRow = page.locator("tbody tr").first();
|
|
241
|
-
yield (0, fixtures_1.expect)(firstDataRow).toBeVisible();
|
|
242
|
-
// Get row bounds for calculation
|
|
243
|
-
const rowBounds = yield firstDataRow.boundingBox();
|
|
244
|
-
// Click near the left edge of the row (where checkbox would be with tolerance)
|
|
245
|
-
// This simulates clicking within the 8px compact tolerance of the checkbox
|
|
246
|
-
const clickX = rowBounds.x + 15; // Slightly to the right of where checkbox would be
|
|
247
|
-
const clickY = rowBounds.y + rowBounds.height / 2;
|
|
248
|
-
// Click within tolerance boundary should trigger selection due to checkboxTolerance="compact"
|
|
249
|
-
yield page.mouse.click(clickX, clickY);
|
|
250
|
-
// Verify checkbox is now checked (using force since it's hidden)
|
|
251
|
-
yield (0, fixtures_1.expect)(firstRowCheckbox).toBeChecked();
|
|
252
|
-
// Verify selection event was fired
|
|
253
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual('selection changed');
|
|
254
|
-
}));
|
|
255
|
-
(0, fixtures_1.test)("allows header checkbox interaction within compact tolerance boundary", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
256
|
-
const { testStateDriver } = yield initTestBed(`
|
|
257
|
-
<Table data='{${JSON.stringify(sampleData)}}'
|
|
258
|
-
rowsSelectable="true"
|
|
259
|
-
enableMultiRowSelection="true"
|
|
260
|
-
checkboxTolerance="compact"
|
|
261
|
-
onSelectionDidChange="testState = 'header selection changed'"
|
|
262
|
-
testId="table">
|
|
263
|
-
<Column bindTo="name"/>
|
|
264
|
-
<Column bindTo="quantity"/>
|
|
265
|
-
</Table>
|
|
266
|
-
`);
|
|
267
|
-
// Get header checkbox (select all checkbox)
|
|
268
|
-
const headerCheckbox = page.locator("input[type='checkbox']").first(); // Header checkbox is first
|
|
269
|
-
// Verify checkbox exists (even if hidden)
|
|
270
|
-
yield (0, fixtures_1.expect)(headerCheckbox).toBeAttached();
|
|
271
|
-
// Get the header row to interact with
|
|
272
|
-
const headerRow = page.locator("thead tr").first();
|
|
273
|
-
yield (0, fixtures_1.expect)(headerRow).toBeVisible();
|
|
274
|
-
// Get header row bounds for calculation
|
|
275
|
-
const headerBounds = yield headerRow.boundingBox();
|
|
276
|
-
// Click near the left edge of the header row (where checkbox would be with tolerance)
|
|
277
|
-
// This simulates clicking within the 8px compact tolerance of the header checkbox
|
|
278
|
-
const clickX = headerBounds.x + 15; // Slightly to the right of where checkbox would be
|
|
279
|
-
const clickY = headerBounds.y + headerBounds.height / 2;
|
|
280
|
-
// Click within tolerance boundary should trigger "select all" due to checkboxTolerance="compact"
|
|
281
|
-
yield page.mouse.click(clickX, clickY);
|
|
282
|
-
// Verify header checkbox is now checked (select all)
|
|
283
|
-
yield (0, fixtures_1.expect)(headerCheckbox).toBeChecked();
|
|
284
|
-
// Verify all row checkboxes are also checked (select all behavior)
|
|
285
|
-
const allCheckboxes = page.locator("input[type='checkbox']");
|
|
286
|
-
const checkboxCount = yield allCheckboxes.count();
|
|
287
|
-
for (let i = 0; i < checkboxCount; i++) {
|
|
288
|
-
yield (0, fixtures_1.expect)(allCheckboxes.nth(i)).toBeChecked();
|
|
289
|
-
}
|
|
290
|
-
// Verify selection event was fired
|
|
291
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual('header selection changed');
|
|
292
|
-
}));
|
|
293
|
-
(0, fixtures_1.test)("allows checkbox interaction within none tolerance boundary", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
294
|
-
const { testStateDriver } = yield initTestBed(`
|
|
295
|
-
<Table data='{${JSON.stringify(sampleData)}}'
|
|
296
|
-
rowsSelectable="true"
|
|
297
|
-
checkboxTolerance="none"
|
|
298
|
-
onSelectionDidChange="testState = 'none selection changed'"
|
|
299
|
-
testId="table">
|
|
300
|
-
<Column bindTo="name"/>
|
|
301
|
-
<Column bindTo="quantity"/>
|
|
302
|
-
</Table>
|
|
303
|
-
`);
|
|
304
|
-
// Get first row checkbox - checkboxes exist but are hidden via CSS
|
|
305
|
-
const firstRowCheckbox = page.locator("input[type='checkbox']").nth(1); // Skip header checkbox
|
|
306
|
-
// Verify checkbox exists (even if hidden)
|
|
307
|
-
yield (0, fixtures_1.expect)(firstRowCheckbox).toBeAttached();
|
|
308
|
-
// Get the first table row to interact with
|
|
309
|
-
const firstDataRow = page.locator("tbody tr").first();
|
|
310
|
-
yield (0, fixtures_1.expect)(firstDataRow).toBeVisible();
|
|
311
|
-
// Get row bounds for calculation
|
|
312
|
-
const rowBounds = yield firstDataRow.boundingBox();
|
|
313
|
-
// For "none" tolerance, we need to click precisely on the checkbox
|
|
314
|
-
// Since checkboxes are hidden, click on their expected position
|
|
315
|
-
yield firstRowCheckbox.click({ force: true });
|
|
316
|
-
// Verify checkbox is now checked
|
|
317
|
-
yield (0, fixtures_1.expect)(firstRowCheckbox).toBeChecked();
|
|
318
|
-
// Verify selection event was fired
|
|
319
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual('none selection changed');
|
|
320
|
-
}));
|
|
321
|
-
(0, fixtures_1.test)("allows header checkbox interaction within none tolerance boundary", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
322
|
-
const { testStateDriver } = yield initTestBed(`
|
|
323
|
-
<Table data='{${JSON.stringify(sampleData)}}'
|
|
324
|
-
rowsSelectable="true"
|
|
325
|
-
enableMultiRowSelection="true"
|
|
326
|
-
checkboxTolerance="none"
|
|
327
|
-
onSelectionDidChange="testState = 'header none selection changed'"
|
|
328
|
-
testId="table">
|
|
329
|
-
<Column bindTo="name"/>
|
|
330
|
-
<Column bindTo="quantity"/>
|
|
331
|
-
</Table>
|
|
332
|
-
`);
|
|
333
|
-
// Get header checkbox (select all checkbox)
|
|
334
|
-
const headerCheckbox = page.locator("input[type='checkbox']").first(); // Header checkbox is first
|
|
335
|
-
// Verify checkbox exists (even if hidden)
|
|
336
|
-
yield (0, fixtures_1.expect)(headerCheckbox).toBeAttached();
|
|
337
|
-
// Get the header row to interact with
|
|
338
|
-
const headerRow = page.locator("thead tr").first();
|
|
339
|
-
yield (0, fixtures_1.expect)(headerRow).toBeVisible();
|
|
340
|
-
// Get header row bounds for calculation
|
|
341
|
-
const headerBounds = yield headerRow.boundingBox();
|
|
342
|
-
// For "none" tolerance, we need to click precisely on the checkbox
|
|
343
|
-
// Since checkboxes are hidden, click on their expected position
|
|
344
|
-
yield headerCheckbox.click({ force: true });
|
|
345
|
-
// Verify header checkbox is now checked (select all)
|
|
346
|
-
yield (0, fixtures_1.expect)(headerCheckbox).toBeChecked();
|
|
347
|
-
// Verify all row checkboxes are also checked (select all behavior)
|
|
348
|
-
const allCheckboxes = page.locator("input[type='checkbox']");
|
|
349
|
-
const checkboxCount = yield allCheckboxes.count();
|
|
350
|
-
for (let i = 0; i < checkboxCount; i++) {
|
|
351
|
-
yield (0, fixtures_1.expect)(allCheckboxes.nth(i)).toBeChecked();
|
|
352
|
-
}
|
|
353
|
-
// Verify selection event was fired
|
|
354
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual('header none selection changed');
|
|
355
|
-
}));
|
|
356
|
-
(0, fixtures_1.test)("allows checkbox interaction within comfortable tolerance boundary", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
357
|
-
const { testStateDriver } = yield initTestBed(`
|
|
358
|
-
<Table data='{${JSON.stringify(sampleData)}}'
|
|
359
|
-
rowsSelectable="true"
|
|
360
|
-
checkboxTolerance="comfortable"
|
|
361
|
-
onSelectionDidChange="testState = 'comfortable selection changed'"
|
|
362
|
-
testId="table">
|
|
363
|
-
<Column bindTo="name"/>
|
|
364
|
-
<Column bindTo="quantity"/>
|
|
365
|
-
</Table>
|
|
366
|
-
`);
|
|
367
|
-
// Get first row checkbox - checkboxes exist but are hidden via CSS
|
|
368
|
-
const firstRowCheckbox = page.locator("input[type='checkbox']").nth(1); // Skip header checkbox
|
|
369
|
-
// Verify checkbox exists (even if hidden)
|
|
370
|
-
yield (0, fixtures_1.expect)(firstRowCheckbox).toBeAttached();
|
|
371
|
-
// Get the first table row to interact with
|
|
372
|
-
const firstDataRow = page.locator("tbody tr").first();
|
|
373
|
-
yield (0, fixtures_1.expect)(firstDataRow).toBeVisible();
|
|
374
|
-
// Get row bounds for calculation
|
|
375
|
-
const rowBounds = yield firstDataRow.boundingBox();
|
|
376
|
-
// Click near the left edge of the row (where checkbox would be with tolerance)
|
|
377
|
-
// This simulates clicking within the 12px comfortable tolerance of the checkbox
|
|
378
|
-
const clickX = rowBounds.x + 20; // Further right to test 12px tolerance
|
|
379
|
-
const clickY = rowBounds.y + rowBounds.height / 2;
|
|
380
|
-
// Click within tolerance boundary should trigger selection due to checkboxTolerance="comfortable"
|
|
381
|
-
yield page.mouse.click(clickX, clickY);
|
|
382
|
-
// Verify checkbox is now checked
|
|
383
|
-
yield (0, fixtures_1.expect)(firstRowCheckbox).toBeChecked();
|
|
384
|
-
// Verify selection event was fired
|
|
385
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual('comfortable selection changed');
|
|
386
|
-
}));
|
|
387
|
-
(0, fixtures_1.test)("allows header checkbox interaction within comfortable tolerance boundary", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
388
|
-
const { testStateDriver } = yield initTestBed(`
|
|
389
|
-
<Table data='{${JSON.stringify(sampleData)}}'
|
|
390
|
-
rowsSelectable="true"
|
|
391
|
-
enableMultiRowSelection="true"
|
|
392
|
-
checkboxTolerance="comfortable"
|
|
393
|
-
onSelectionDidChange="testState = 'header comfortable selection changed'"
|
|
394
|
-
testId="table">
|
|
395
|
-
<Column bindTo="name"/>
|
|
396
|
-
<Column bindTo="quantity"/>
|
|
397
|
-
</Table>
|
|
398
|
-
`);
|
|
399
|
-
// Get header checkbox (select all checkbox)
|
|
400
|
-
const headerCheckbox = page.locator("input[type='checkbox']").first(); // Header checkbox is first
|
|
401
|
-
// Verify checkbox exists (even if hidden)
|
|
402
|
-
yield (0, fixtures_1.expect)(headerCheckbox).toBeAttached();
|
|
403
|
-
// Get the header row to interact with
|
|
404
|
-
const headerRow = page.locator("thead tr").first();
|
|
405
|
-
yield (0, fixtures_1.expect)(headerRow).toBeVisible();
|
|
406
|
-
// Get header row bounds for calculation
|
|
407
|
-
const headerBounds = yield headerRow.boundingBox();
|
|
408
|
-
// Click near the left edge of the header row (where checkbox would be with tolerance)
|
|
409
|
-
// This simulates clicking within the 12px comfortable tolerance of the header checkbox
|
|
410
|
-
const clickX = headerBounds.x + 20; // Further right to test 12px tolerance
|
|
411
|
-
const clickY = headerBounds.y + headerBounds.height / 2;
|
|
412
|
-
// Click within tolerance boundary should trigger "select all" due to checkboxTolerance="comfortable"
|
|
413
|
-
yield page.mouse.click(clickX, clickY);
|
|
414
|
-
// Verify header checkbox is now checked (select all)
|
|
415
|
-
yield (0, fixtures_1.expect)(headerCheckbox).toBeChecked();
|
|
416
|
-
// Verify all row checkboxes are also checked (select all behavior)
|
|
417
|
-
const allCheckboxes = page.locator("input[type='checkbox']");
|
|
418
|
-
const checkboxCount = yield allCheckboxes.count();
|
|
419
|
-
for (let i = 0; i < checkboxCount; i++) {
|
|
420
|
-
yield (0, fixtures_1.expect)(allCheckboxes.nth(i)).toBeChecked();
|
|
421
|
-
}
|
|
422
|
-
// Verify selection event was fired
|
|
423
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual('header comfortable selection changed');
|
|
424
|
-
}));
|
|
425
|
-
(0, fixtures_1.test)("allows checkbox interaction within spacious tolerance boundary", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
426
|
-
const { testStateDriver } = yield initTestBed(`
|
|
427
|
-
<Table data='{${JSON.stringify(sampleData)}}'
|
|
428
|
-
rowsSelectable="true"
|
|
429
|
-
checkboxTolerance="spacious"
|
|
430
|
-
onSelectionDidChange="testState = 'spacious selection changed'"
|
|
431
|
-
testId="table">
|
|
432
|
-
<Column bindTo="name"/>
|
|
433
|
-
<Column bindTo="quantity"/>
|
|
434
|
-
</Table>
|
|
435
|
-
`);
|
|
436
|
-
// Get first row checkbox - checkboxes exist but are hidden via CSS
|
|
437
|
-
const firstRowCheckbox = page.locator("input[type='checkbox']").nth(1); // Skip header checkbox
|
|
438
|
-
// Verify checkbox exists (even if hidden)
|
|
439
|
-
yield (0, fixtures_1.expect)(firstRowCheckbox).toBeAttached();
|
|
440
|
-
// Get the first table row to interact with
|
|
441
|
-
const firstDataRow = page.locator("tbody tr").first();
|
|
442
|
-
yield (0, fixtures_1.expect)(firstDataRow).toBeVisible();
|
|
443
|
-
// Get row bounds for calculation
|
|
444
|
-
const rowBounds = yield firstDataRow.boundingBox();
|
|
445
|
-
// Click near the left edge of the row (where checkbox would be with tolerance)
|
|
446
|
-
// This simulates clicking within the 16px spacious tolerance of the checkbox
|
|
447
|
-
const clickX = rowBounds.x + 24; // Even further right to test 16px tolerance
|
|
448
|
-
const clickY = rowBounds.y + rowBounds.height / 2;
|
|
449
|
-
// Click within tolerance boundary should trigger selection due to checkboxTolerance="spacious"
|
|
450
|
-
yield page.mouse.click(clickX, clickY);
|
|
451
|
-
// Verify checkbox is now checked
|
|
452
|
-
yield (0, fixtures_1.expect)(firstRowCheckbox).toBeChecked();
|
|
453
|
-
// Verify selection event was fired
|
|
454
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual('spacious selection changed');
|
|
455
|
-
}));
|
|
456
|
-
(0, fixtures_1.test)("allows header checkbox interaction within spacious tolerance boundary", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
457
|
-
const { testStateDriver } = yield initTestBed(`
|
|
458
|
-
<Table data='{${JSON.stringify(sampleData)}}'
|
|
459
|
-
rowsSelectable="true"
|
|
460
|
-
enableMultiRowSelection="true"
|
|
461
|
-
checkboxTolerance="spacious"
|
|
462
|
-
onSelectionDidChange="testState = 'header spacious selection changed'"
|
|
463
|
-
testId="table">
|
|
464
|
-
<Column bindTo="name"/>
|
|
465
|
-
<Column bindTo="quantity"/>
|
|
466
|
-
</Table>
|
|
467
|
-
`);
|
|
468
|
-
// Get header checkbox (select all checkbox)
|
|
469
|
-
const headerCheckbox = page.locator("input[type='checkbox']").first(); // Header checkbox is first
|
|
470
|
-
// Verify checkbox exists (even if hidden)
|
|
471
|
-
yield (0, fixtures_1.expect)(headerCheckbox).toBeAttached();
|
|
472
|
-
// Get the header row to interact with
|
|
473
|
-
const headerRow = page.locator("thead tr").first();
|
|
474
|
-
yield (0, fixtures_1.expect)(headerRow).toBeVisible();
|
|
475
|
-
// Get header row bounds for calculation
|
|
476
|
-
const headerBounds = yield headerRow.boundingBox();
|
|
477
|
-
// Click near the left edge of the header row (where checkbox would be with tolerance)
|
|
478
|
-
// This simulates clicking within the 16px spacious tolerance of the header checkbox
|
|
479
|
-
const clickX = headerBounds.x + 24; // Even further right to test 16px tolerance
|
|
480
|
-
const clickY = headerBounds.y + headerBounds.height / 2;
|
|
481
|
-
// Click within tolerance boundary should trigger "select all" due to checkboxTolerance="spacious"
|
|
482
|
-
yield page.mouse.click(clickX, clickY);
|
|
483
|
-
// Verify header checkbox is now checked (select all)
|
|
484
|
-
yield (0, fixtures_1.expect)(headerCheckbox).toBeChecked();
|
|
485
|
-
// Verify all row checkboxes are also checked (select all behavior)
|
|
486
|
-
const allCheckboxes = page.locator("input[type='checkbox']");
|
|
487
|
-
const checkboxCount = yield allCheckboxes.count();
|
|
488
|
-
for (let i = 0; i < checkboxCount; i++) {
|
|
489
|
-
yield (0, fixtures_1.expect)(allCheckboxes.nth(i)).toBeChecked();
|
|
490
|
-
}
|
|
491
|
-
// Verify selection event was fired
|
|
492
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toEqual('header spacious selection changed');
|
|
493
|
-
}));
|
|
494
|
-
});
|
|
495
|
-
fixtures_1.test.describe("noDataTemplate property", () => {
|
|
496
|
-
(0, fixtures_1.test)("shows custom no data template when data is empty", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
497
|
-
yield initTestBed(`
|
|
498
|
-
<Table data='{[]}' testId="table">
|
|
499
|
-
<Column bindTo="name"/>
|
|
500
|
-
<property name="noDataTemplate">
|
|
501
|
-
<Text>No items found</Text>
|
|
502
|
-
</property>
|
|
503
|
-
</Table>
|
|
504
|
-
`);
|
|
505
|
-
yield (0, fixtures_1.expect)(page.getByText("No items found")).toBeVisible();
|
|
506
|
-
}));
|
|
507
|
-
(0, fixtures_1.test)("hides no data view when noDataTemplate is empty string", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
508
|
-
yield initTestBed(`
|
|
509
|
-
<Table data='{[]}' noDataTemplate="" testId="table">
|
|
510
|
-
<Column bindTo="name"/>
|
|
511
|
-
</Table>
|
|
512
|
-
`);
|
|
513
|
-
// Should not show default no data message
|
|
514
|
-
yield (0, fixtures_1.expect)(page.getByText(/no data/i)).not.toBeVisible();
|
|
515
|
-
}));
|
|
516
|
-
(0, fixtures_1.test)("hides no data view when noDataTemplate is null", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
517
|
-
yield initTestBed(`
|
|
518
|
-
<Table data='{[]}' noDataTemplate="{null}" testId="table">
|
|
519
|
-
<Column bindTo="name"/>
|
|
520
|
-
</Table>
|
|
521
|
-
`);
|
|
522
|
-
// Should not show default no data message
|
|
523
|
-
yield (0, fixtures_1.expect)(page.getByText(/no data/i)).not.toBeVisible();
|
|
524
|
-
}));
|
|
525
|
-
});
|
|
526
|
-
});
|
|
527
|
-
// =============================================================================
|
|
528
|
-
// TESTS FOR FEATURES THAT NEED INVESTIGATION
|
|
529
|
-
// =============================================================================
|
|
530
|
-
fixtures_1.test.describe("Features Needing Investigation", () => {
|
|
531
|
-
(0, fixtures_1.test)("loading property shows loading state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
532
|
-
yield initTestBed(`
|
|
533
|
-
<Table loading="true" testId="table">
|
|
534
|
-
<Column bindTo="name"/>
|
|
535
|
-
</Table>
|
|
536
|
-
`);
|
|
537
|
-
yield (0, fixtures_1.expect)(page.getByRole("status").and(page.getByLabel("Loading"))).toBeVisible();
|
|
538
|
-
}));
|
|
539
|
-
(0, fixtures_1.test)("row selection works with checkboxes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
540
|
-
yield initTestBed(`
|
|
541
|
-
<Table
|
|
542
|
-
data='{${JSON.stringify(sampleData)}}'
|
|
543
|
-
rowsSelectable="true"
|
|
544
|
-
enableMultiRowSelection="true"
|
|
545
|
-
testId="table"
|
|
546
|
-
>
|
|
547
|
-
<Column bindTo="name"/>
|
|
548
|
-
</Table>
|
|
549
|
-
`);
|
|
550
|
-
const checkboxes = page.locator("input[type='checkbox']");
|
|
551
|
-
yield checkboxes.nth(1).check({ force: true }); // First data row
|
|
552
|
-
yield checkboxes.nth(2).check({ force: true }); // Second data row
|
|
553
|
-
yield (0, fixtures_1.expect)(checkboxes.nth(1)).toBeChecked();
|
|
554
|
-
yield (0, fixtures_1.expect)(checkboxes.nth(2)).toBeChecked();
|
|
555
|
-
}));
|
|
556
|
-
(0, fixtures_1.test)("sorting works correctly with descending order", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
557
|
-
yield initTestBed(`
|
|
558
|
-
<Table
|
|
559
|
-
data='{${JSON.stringify(sampleData)}}'
|
|
560
|
-
sortBy="name"
|
|
561
|
-
sortDirection="descending"
|
|
562
|
-
testId="table"
|
|
563
|
-
>
|
|
564
|
-
<Column bindTo="name" canSort="true"/>
|
|
565
|
-
</Table>
|
|
566
|
-
`);
|
|
567
|
-
const cells = page.locator("td");
|
|
568
|
-
// Should be sorted reverse alphabetically: Spinach, Carrot, Banana, Apple
|
|
569
|
-
yield (0, fixtures_1.expect)(cells.nth(0)).toHaveText("Spinach");
|
|
570
|
-
yield (0, fixtures_1.expect)(cells.nth(1)).toHaveText("Carrot");
|
|
571
|
-
}));
|
|
572
|
-
(0, fixtures_1.test)("sorting works correctly with ascending order", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
573
|
-
yield initTestBed(`
|
|
574
|
-
<Table
|
|
575
|
-
data='{${JSON.stringify(sampleData)}}'
|
|
576
|
-
sortBy="quantity"
|
|
577
|
-
sortDirection="ascending"
|
|
578
|
-
testId="table"
|
|
579
|
-
>
|
|
580
|
-
<Column bindTo="quantity" canSort="true"/>
|
|
581
|
-
</Table>
|
|
582
|
-
`);
|
|
583
|
-
const cells = page.locator("td");
|
|
584
|
-
// Should be sorted in ascending order: 2, 3, 5, 10
|
|
585
|
-
yield (0, fixtures_1.expect)(cells.nth(0)).toHaveText("2");
|
|
586
|
-
yield (0, fixtures_1.expect)(cells.nth(1)).toHaveText("3");
|
|
587
|
-
yield (0, fixtures_1.expect)(cells.nth(2)).toHaveText("5");
|
|
588
|
-
yield (0, fixtures_1.expect)(cells.nth(3)).toHaveText("10");
|
|
589
|
-
}));
|
|
590
|
-
(0, fixtures_1.test)("pagination works correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
591
|
-
yield initTestBed(`
|
|
592
|
-
<Table
|
|
593
|
-
data='{${JSON.stringify(sampleData)}}'
|
|
594
|
-
isPaginated="true"
|
|
595
|
-
testId="table"
|
|
596
|
-
>
|
|
597
|
-
<Column bindTo="name"/>
|
|
598
|
-
</Table>
|
|
599
|
-
`);
|
|
600
|
-
yield (0, fixtures_1.expect)(page.locator("button[aria-label*='Previous page']")).toBeVisible();
|
|
601
|
-
yield (0, fixtures_1.expect)(page.locator("button[aria-label*='Next page']")).toBeVisible();
|
|
602
|
-
}));
|
|
603
|
-
});
|
|
604
|
-
// =============================================================================
|
|
605
|
-
// ACCESSIBILITY TESTS
|
|
606
|
-
// =============================================================================
|
|
607
|
-
fixtures_1.test.describe("Accessibility", () => {
|
|
608
|
-
(0, fixtures_1.test)("has correct table structure", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
609
|
-
yield initTestBed(`
|
|
610
|
-
<Table data='{${JSON.stringify(sampleData)}}' testId="table">
|
|
611
|
-
<Column bindTo="name" header="Name"/>
|
|
612
|
-
<Column bindTo="quantity" header="Quantity"/>
|
|
613
|
-
</Table>
|
|
614
|
-
`);
|
|
615
|
-
// Check proper table semantics
|
|
616
|
-
yield (0, fixtures_1.expect)(page.locator("table")).toBeVisible();
|
|
617
|
-
yield (0, fixtures_1.expect)(page.locator("th")).toHaveCount(2); // 2 headers
|
|
618
|
-
yield (0, fixtures_1.expect)(page.locator("tr")).toHaveCount(5); // 1 header + 4 data rows
|
|
619
|
-
}));
|
|
620
|
-
(0, fixtures_1.test)("column headers are focusable and have proper structure", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
621
|
-
yield initTestBed(`
|
|
622
|
-
<Table data='{${JSON.stringify(sampleData)}}' testId="table">
|
|
623
|
-
<Column bindTo="name" header="Name" canSort="true"/>
|
|
624
|
-
<Column bindTo="quantity" header="Quantity" canSort="true"/>
|
|
625
|
-
</Table>
|
|
626
|
-
`);
|
|
627
|
-
const headers = page.locator("th");
|
|
628
|
-
yield (0, fixtures_1.expect)(headers.nth(0)).toContainText("Name");
|
|
629
|
-
yield (0, fixtures_1.expect)(headers.nth(1)).toContainText("Quantity");
|
|
630
|
-
}));
|
|
631
|
-
(0, fixtures_1.test)("selection checkboxes have proper accessibility when enabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
632
|
-
yield initTestBed(`
|
|
633
|
-
<Table data='{${JSON.stringify(sampleData)}}' rowsSelectable="true" testId="table">
|
|
634
|
-
<Column bindTo="name"/>
|
|
635
|
-
</Table>
|
|
636
|
-
`);
|
|
637
|
-
const checkboxes = page.locator("input[type='checkbox']");
|
|
638
|
-
// All checkboxes should have proper type
|
|
639
|
-
yield (0, fixtures_1.expect)(checkboxes.first()).toHaveAttribute("type", "checkbox");
|
|
640
|
-
// Should have expected count
|
|
641
|
-
yield (0, fixtures_1.expect)(checkboxes).toHaveCount(5); // 4 data rows + 1 header
|
|
642
|
-
}));
|
|
643
|
-
(0, fixtures_1.test)("has proper headers for screen readers", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
644
|
-
yield initTestBed(`
|
|
645
|
-
<Table data='{${JSON.stringify(sampleData)}}' testId="table">
|
|
646
|
-
<Column bindTo="name" header="Product Name"/>
|
|
647
|
-
<Column bindTo="quantity" header="Stock Quantity"/>
|
|
648
|
-
</Table>
|
|
649
|
-
`);
|
|
650
|
-
// Column headers should have descriptive names
|
|
651
|
-
yield (0, fixtures_1.expect)(page.locator("th").filter({ hasText: "Product Name" })).toBeVisible();
|
|
652
|
-
yield (0, fixtures_1.expect)(page.locator("th").filter({ hasText: "Stock Quantity" })).toBeVisible();
|
|
653
|
-
}));
|
|
654
|
-
});
|
|
655
|
-
// =============================================================================
|
|
656
|
-
// EDGE CASE TESTS
|
|
657
|
-
// =============================================================================
|
|
658
|
-
fixtures_1.test.describe("Edge Cases", () => {
|
|
659
|
-
(0, fixtures_1.test)("handles no props gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
660
|
-
yield initTestBed(`<Table testId="table"/>`);
|
|
661
|
-
const table = page.getByTestId("table");
|
|
662
|
-
yield (0, fixtures_1.expect)(table).toBeVisible();
|
|
663
|
-
}));
|
|
664
|
-
(0, fixtures_1.test)("handles data with missing properties", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
665
|
-
const incompleteData = [
|
|
666
|
-
{ name: "Apple" }, // missing quantity
|
|
667
|
-
{ quantity: 5 }, // missing name
|
|
668
|
-
{}, // missing both
|
|
669
|
-
];
|
|
670
|
-
yield initTestBed(`
|
|
671
|
-
<Table data='{${JSON.stringify(incompleteData)}}' testId="table">
|
|
672
|
-
<Column bindTo="name"/>
|
|
673
|
-
<Column bindTo="quantity"/>
|
|
674
|
-
</Table>
|
|
675
|
-
`);
|
|
676
|
-
yield (0, fixtures_1.expect)(page.getByTestId("table")).toBeVisible();
|
|
677
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "Apple" }).first()).toBeVisible();
|
|
678
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "5" }).first()).toBeVisible();
|
|
679
|
-
}));
|
|
680
|
-
(0, fixtures_1.test)("handles deeply nested object properties", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
681
|
-
const nestedData = [
|
|
682
|
-
{
|
|
683
|
-
user: {
|
|
684
|
-
profile: {
|
|
685
|
-
name: "John Doe"
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
},
|
|
689
|
-
];
|
|
690
|
-
yield initTestBed(`
|
|
691
|
-
<Table data='{${JSON.stringify(nestedData)}}' testId="table">
|
|
692
|
-
<Column bindTo="user.profile.name" header="Name"/>
|
|
693
|
-
</Table>
|
|
694
|
-
`);
|
|
695
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "John Doe" }).first()).toBeVisible();
|
|
696
|
-
}));
|
|
697
|
-
(0, fixtures_1.test)("handles special characters in data", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
698
|
-
const specialData = [
|
|
699
|
-
{ name: "Special: 🎉", symbol: "★" },
|
|
700
|
-
{ name: "Unicode: 你好", symbol: "⚡" },
|
|
701
|
-
{ name: "Emoji: 👨👩👧👦", symbol: "🔥" },
|
|
702
|
-
];
|
|
703
|
-
yield initTestBed(`
|
|
704
|
-
<Table data='{${JSON.stringify(specialData)}}' testId="table">
|
|
705
|
-
<Column bindTo="name"/>
|
|
706
|
-
<Column bindTo="symbol"/>
|
|
707
|
-
</Table>
|
|
708
|
-
`);
|
|
709
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "Special: 🎉" }).first()).toBeVisible();
|
|
710
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "Unicode: 你好" }).first()).toBeVisible();
|
|
711
|
-
yield (0, fixtures_1.expect)(page.locator("td").filter({ hasText: "Emoji: 👨👩👧👦" }).first()).toBeVisible();
|
|
712
|
-
}));
|
|
713
|
-
(0, fixtures_1.test)("handles custom sorting icons", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
714
|
-
yield initTestBed(`
|
|
715
|
-
<Table
|
|
716
|
-
data='{${JSON.stringify(sampleData)}}'
|
|
717
|
-
iconNoSort="sort"
|
|
718
|
-
iconSortAsc="sort-up"
|
|
719
|
-
iconSortDesc="sort-down"
|
|
720
|
-
testId="table"
|
|
721
|
-
>
|
|
722
|
-
<Column bindTo="name" canSort="true" header="Name"/>
|
|
723
|
-
</Table>
|
|
724
|
-
`);
|
|
725
|
-
const headers = page.locator("th");
|
|
726
|
-
yield (0, fixtures_1.expect)(headers.first()).toContainText("Name");
|
|
727
|
-
}));
|
|
728
|
-
});
|
|
729
|
-
// =============================================================================
|
|
730
|
-
// THEME AND STYLING TESTS
|
|
731
|
-
// =============================================================================
|
|
732
|
-
// TODO: Need more theme variable tests!
|
|
733
|
-
fixtures_1.test.describe("Theme Variables and Styling", () => {
|
|
734
|
-
(0, fixtures_1.test)("applies heading background color theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
735
|
-
yield initTestBed(`
|
|
736
|
-
<Table data='{${JSON.stringify(sampleData)}}' testId="table">
|
|
737
|
-
<Column bindTo="name" header="Name"/>
|
|
738
|
-
</Table>
|
|
739
|
-
`, {
|
|
740
|
-
testThemeVars: { "backgroundColor-heading-Table": "rgb(255, 0, 0)" },
|
|
741
|
-
});
|
|
742
|
-
const header = page.locator("th").first();
|
|
743
|
-
yield (0, fixtures_1.expect)(header).toHaveCSS("background-color", "rgb(255, 0, 0)");
|
|
744
|
-
}));
|
|
745
|
-
});
|
|
746
|
-
// =============================================================================
|
|
747
|
-
// CELL VERTICAL ALIGNMENT TESTS
|
|
748
|
-
// =============================================================================
|
|
749
|
-
fixtures_1.test.describe("Cell Vertical Alignment", () => {
|
|
750
|
-
(0, fixtures_1.test)("applies center alignment by default", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
751
|
-
yield initTestBed(`
|
|
752
|
-
<Table data='{${JSON.stringify(sampleData)}}' testId="table">
|
|
753
|
-
<Column bindTo="name" header="Name"/>
|
|
754
|
-
<Column bindTo="quantity" header="Quantity"/>
|
|
755
|
-
</Table>
|
|
756
|
-
`);
|
|
757
|
-
// Check header cells have center alignment class
|
|
758
|
-
const headerCell = page.locator("th").first();
|
|
759
|
-
yield (0, fixtures_1.expect)(headerCell).toHaveClass(/alignCenter/);
|
|
760
|
-
// Check data cells have center alignment class
|
|
761
|
-
const dataCell = page.locator("td").first();
|
|
762
|
-
yield (0, fixtures_1.expect)(dataCell).toHaveClass(/alignCenter/);
|
|
763
|
-
}));
|
|
764
|
-
(0, fixtures_1.test)("applies top alignment when cellVerticalAlign='top'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
765
|
-
yield initTestBed(`
|
|
766
|
-
<Table data='{${JSON.stringify(sampleData)}}' cellVerticalAlign="top" testId="table">
|
|
767
|
-
<Column bindTo="name" header="Name"/>
|
|
768
|
-
<Column bindTo="quantity" header="Quantity"/>
|
|
769
|
-
</Table>
|
|
770
|
-
`);
|
|
771
|
-
// Check header cells have top alignment class
|
|
772
|
-
const headerCell = page.locator("th").first();
|
|
773
|
-
yield (0, fixtures_1.expect)(headerCell).toHaveClass(/alignTop/);
|
|
774
|
-
// Check data cells have top alignment class
|
|
775
|
-
const dataCell = page.locator("td").first();
|
|
776
|
-
yield (0, fixtures_1.expect)(dataCell).toHaveClass(/alignTop/);
|
|
777
|
-
}));
|
|
778
|
-
(0, fixtures_1.test)("applies bottom alignment when cellVerticalAlign='bottom'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
779
|
-
yield initTestBed(`
|
|
780
|
-
<Table data='{${JSON.stringify(sampleData)}}' cellVerticalAlign="bottom" testId="table">
|
|
781
|
-
<Column bindTo="name" header="Name"/>
|
|
782
|
-
<Column bindTo="quantity" header="Quantity"/>
|
|
783
|
-
</Table>
|
|
784
|
-
`);
|
|
785
|
-
// Check header cells have bottom alignment class
|
|
786
|
-
const headerCell = page.locator("th").first();
|
|
787
|
-
yield (0, fixtures_1.expect)(headerCell).toHaveClass(/alignBottom/);
|
|
788
|
-
// Check data cells have bottom alignment class
|
|
789
|
-
const dataCell = page.locator("td").first();
|
|
790
|
-
yield (0, fixtures_1.expect)(dataCell).toHaveClass(/alignBottom/);
|
|
791
|
-
}));
|
|
792
|
-
(0, fixtures_1.test)("applies center alignment when cellVerticalAlign='center'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
793
|
-
yield initTestBed(`
|
|
794
|
-
<Table data='{${JSON.stringify(sampleData)}}' cellVerticalAlign="center" testId="table">
|
|
795
|
-
<Column bindTo="name" header="Name"/>
|
|
796
|
-
<Column bindTo="quantity" header="Quantity"/>
|
|
797
|
-
</Table>
|
|
798
|
-
`);
|
|
799
|
-
// Check header cells have center alignment class
|
|
800
|
-
const headerCell = page.locator("th").first();
|
|
801
|
-
yield (0, fixtures_1.expect)(headerCell).toHaveClass(/alignCenter/);
|
|
802
|
-
// Check data cells have center alignment class
|
|
803
|
-
const dataCell = page.locator("td").first();
|
|
804
|
-
yield (0, fixtures_1.expect)(dataCell).toHaveClass(/alignCenter/);
|
|
805
|
-
}));
|
|
806
|
-
(0, fixtures_1.test)("applies alignment to all cells consistently", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
807
|
-
yield initTestBed(`
|
|
808
|
-
<Table data='{${JSON.stringify(sampleData)}}' cellVerticalAlign="top" testId="table">
|
|
809
|
-
<Column bindTo="name" header="Name"/>
|
|
810
|
-
<Column bindTo="quantity" header="Quantity"/>
|
|
811
|
-
<Column bindTo="category" header="Category"/>
|
|
812
|
-
</Table>
|
|
813
|
-
`);
|
|
814
|
-
// Check all header cells have the same alignment
|
|
815
|
-
const headerCells = page.locator("th");
|
|
816
|
-
const headerCount = yield headerCells.count();
|
|
817
|
-
for (let i = 0; i < headerCount; i++) {
|
|
818
|
-
yield (0, fixtures_1.expect)(headerCells.nth(i)).toHaveClass(/alignTop/);
|
|
819
|
-
}
|
|
820
|
-
// Check all data cells have the same alignment
|
|
821
|
-
const dataCells = page.locator("td");
|
|
822
|
-
const dataCount = yield dataCells.count();
|
|
823
|
-
for (let i = 0; i < dataCount; i++) {
|
|
824
|
-
yield (0, fixtures_1.expect)(dataCells.nth(i)).toHaveClass(/alignTop/);
|
|
825
|
-
}
|
|
826
|
-
}));
|
|
827
|
-
});
|