xmlui 0.11.4 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/index.cjs +8836 -0
- package/dist/bin/index.js +8825 -0
- package/dist/lib/{apiInterceptorWorker-QiltRtq1.js → apiInterceptorWorker-dwrAyq6l.js} +126 -151
- package/dist/lib/{index-Cq0EMm3L.js → index-x4orhWfi.js} +1888 -2133
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-DCigV4Zh.js → initMock-DrUirixi.js} +19 -22
- package/dist/lib/language-server-web-worker.js +13 -5
- package/dist/lib/language-server.js +11 -3
- package/dist/lib/{metadata-utils-BiolWMg9.js → metadata-utils-2bsMr4Gd.js} +58 -26
- package/dist/lib/{server-common-DyCHOk-z.js → server-common-DI3W4cob.js} +6297 -5930
- package/dist/lib/syntax-textmate.js +8 -2472
- package/dist/lib/testing.d.ts +1 -0
- package/dist/lib/testing.js +20 -23
- package/dist/lib/{transform-DHf9tQF7.js → transform-CQ_6R-43.js} +159 -126
- package/dist/lib/vite-xmlui-plugin.d.ts +10 -0
- package/dist/lib/vite-xmlui-plugin.js +8316 -0
- package/dist/lib/{xmlui-parser-CHN3mADy.js → xmlui-parser-CW8YmGjO.js} +10 -11
- package/dist/lib/xmlui-parser.js +2 -2
- package/dist/lib/{xmlui-serializer-CYNSHAlP.js → xmlui-serializer-CeCcgdVR.js} +19 -19
- package/dist/lib/xmlui.d.ts +122 -1
- package/dist/lib/xmlui.js +8 -3
- package/dist/metadata/{apiInterceptorWorker-Dql7QGw2.js → apiInterceptorWorker-Wgm2_zjg.js} +124 -149
- package/dist/metadata/{collectedComponentMetadata-CLaDZhmc.js → collectedComponentMetadata-BGdap_gu.js} +1919 -2124
- package/dist/metadata/{initMock-Buqah4JF.js → initMock-DlJ0S4Uy.js} +19 -22
- package/dist/metadata/xmlui-metadata.css +1 -0
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +171 -2
- package/dist/standalone/xmlui-standalone.umd.js +36 -37
- package/package.json +20 -50
- package/dist/lib/vite-xmlui-plugin/index.js +0 -13985
- package/dist/lib/vite-xmlui-plugin/package.json +0 -3
- package/dist/metadata/style.css +0 -1
- package/dist/scripts/bin/bootstrap.cjs +0 -4
- package/dist/scripts/bin/build-lib.js +0 -126
- package/dist/scripts/bin/build.js +0 -266
- package/dist/scripts/bin/index.js +0 -167
- package/dist/scripts/bin/preview.js +0 -44
- package/dist/scripts/bin/start.js +0 -52
- package/dist/scripts/bin/vite-xmlui-plugin.js +0 -109
- package/dist/scripts/bin/viteConfig.js +0 -144
- package/dist/scripts/package.json +0 -285
- package/dist/scripts/src/abstractions/ActionDefs.js +0 -2
- package/dist/scripts/src/abstractions/AppContextDefs.js +0 -4
- package/dist/scripts/src/abstractions/ComponentDefs.js +0 -2
- package/dist/scripts/src/abstractions/ContainerDefs.js +0 -2
- package/dist/scripts/src/abstractions/ExtensionDefs.js +0 -2
- package/dist/scripts/src/abstractions/FunctionDefs.js +0 -2
- package/dist/scripts/src/abstractions/RendererDefs.js +0 -2
- package/dist/scripts/src/abstractions/ThemingDefs.js +0 -2
- package/dist/scripts/src/abstractions/scripting/BlockScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Compilation.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LogicalThread.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LoopScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/ScriptParserError.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Token.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScopeExp.js +0 -2
- package/dist/scripts/src/abstractions/scripting/modules.js +0 -2
- package/dist/scripts/src/components/APICall/APICall.js +0 -130
- package/dist/scripts/src/components/APICall/APICall.spec.js +0 -910
- package/dist/scripts/src/components/APICall/APICallNative.js +0 -36
- package/dist/scripts/src/components/Accordion/Accordion.js +0 -97
- package/dist/scripts/src/components/Accordion/Accordion.spec.js +0 -969
- package/dist/scripts/src/components/Accordion/AccordionContext.js +0 -20
- package/dist/scripts/src/components/Accordion/AccordionItem.js +0 -35
- package/dist/scripts/src/components/Accordion/AccordionItemNative.js +0 -95
- package/dist/scripts/src/components/Accordion/AccordionNative.js +0 -141
- package/dist/scripts/src/components/Animation/AnimationNative.js +0 -263
- package/dist/scripts/src/components/App/App.js +0 -581
- package/dist/scripts/src/components/App/App.spec.js +0 -331
- package/dist/scripts/src/components/App/AppLayoutContext.js +0 -49
- package/dist/scripts/src/components/App/AppNative.js +0 -308
- package/dist/scripts/src/components/App/AppStateContext.js +0 -9
- package/dist/scripts/src/components/App/IndexerContext.js +0 -44
- package/dist/scripts/src/components/App/LinkInfoContext.js +0 -9
- package/dist/scripts/src/components/App/SearchContext.js +0 -35
- package/dist/scripts/src/components/App/Sheet.js +0 -99
- package/dist/scripts/src/components/AppHeader/AppHeader.js +0 -58
- package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +0 -169
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +0 -72
- package/dist/scripts/src/components/AppState/AppState.js +0 -75
- package/dist/scripts/src/components/AppState/AppState.spec.js +0 -292
- package/dist/scripts/src/components/AppState/AppStateNative.js +0 -51
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +0 -109
- package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +0 -546
- package/dist/scripts/src/components/AutoComplete/AutoCompleteContext.js +0 -19
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +0 -498
- package/dist/scripts/src/components/Avatar/Avatar.js +0 -55
- package/dist/scripts/src/components/Avatar/Avatar.spec.js +0 -1514
- package/dist/scripts/src/components/Avatar/AvatarNative.js +0 -58
- package/dist/scripts/src/components/Backdrop/Backdrop.js +0 -40
- package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +0 -131
- package/dist/scripts/src/components/Backdrop/BackdropNative.js +0 -25
- package/dist/scripts/src/components/Badge/Badge.js +0 -81
- package/dist/scripts/src/components/Badge/Badge.spec.js +0 -2214
- package/dist/scripts/src/components/Badge/BadgeNative.js +0 -46
- package/dist/scripts/src/components/Bookmark/Bookmark.js +0 -48
- package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +0 -230
- package/dist/scripts/src/components/Bookmark/BookmarkNative.js +0 -55
- package/dist/scripts/src/components/Breakout/Breakout.js +0 -17
- package/dist/scripts/src/components/Breakout/Breakout.spec.js +0 -56
- package/dist/scripts/src/components/Breakout/BreakoutNative.js +0 -24
- package/dist/scripts/src/components/Button/Button-style.spec.js +0 -274
- package/dist/scripts/src/components/Button/Button.js +0 -171
- package/dist/scripts/src/components/Button/Button.spec.js +0 -425
- package/dist/scripts/src/components/Button/ButtonNative.js +0 -109
- package/dist/scripts/src/components/Card/Card.js +0 -89
- package/dist/scripts/src/components/Card/Card.spec.js +0 -150
- package/dist/scripts/src/components/Card/CardNative.js +0 -41
- package/dist/scripts/src/components/Carousel/Carousel.js +0 -133
- package/dist/scripts/src/components/Carousel/Carousel.spec.js +0 -557
- package/dist/scripts/src/components/Carousel/CarouselContext.js +0 -57
- package/dist/scripts/src/components/Carousel/CarouselItem.js +0 -15
- package/dist/scripts/src/components/Carousel/CarouselItemNative.js +0 -40
- package/dist/scripts/src/components/Carousel/CarouselNative.js +0 -195
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +0 -34
- package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +0 -169
- package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +0 -30
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.js +0 -92
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +0 -999
- package/dist/scripts/src/components/Charts/AreaChart/AreaChartNative.js +0 -127
- package/dist/scripts/src/components/Charts/BarChart/BarChart.js +0 -97
- package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +0 -597
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +0 -317
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +0 -60
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +0 -608
- package/dist/scripts/src/components/Charts/LabelList/LabelList.js +0 -41
- package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +0 -539
- package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +0 -25
- package/dist/scripts/src/components/Charts/Legend/Legend.js +0 -33
- package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +0 -558
- package/dist/scripts/src/components/Charts/Legend/LegendNative.js +0 -64
- package/dist/scripts/src/components/Charts/LineChart/LineChart.js +0 -94
- package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +0 -450
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +0 -192
- package/dist/scripts/src/components/Charts/PieChart/PieChart.js +0 -64
- package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +0 -584
- package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +0 -167
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.js +0 -92
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +0 -571
- package/dist/scripts/src/components/Charts/RadarChart/RadarChartNative.js +0 -125
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.js +0 -27
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +0 -451
- package/dist/scripts/src/components/Charts/utils/ChartProvider.js +0 -65
- package/dist/scripts/src/components/Charts/utils/abstractions.js +0 -26
- package/dist/scripts/src/components/Checkbox/Checkbox.js +0 -81
- package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +0 -900
- package/dist/scripts/src/components/CodeBlock/CodeBlock.js +0 -42
- package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +0 -196
- package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +0 -127
- package/dist/scripts/src/components/CodeBlock/highlight-code.js +0 -273
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +0 -54
- package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +0 -355
- package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +0 -86
- package/dist/scripts/src/components/Column/Column.js +0 -89
- package/dist/scripts/src/components/Column/ColumnNative.js +0 -49
- package/dist/scripts/src/components/Column/TableContext.js +0 -12
- package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/ComponentProvider.js +0 -811
- package/dist/scripts/src/components/ComponentRegistryContext.js +0 -44
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +0 -51
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +0 -531
- package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +0 -31
- package/dist/scripts/src/components/DataSource/DataSource.js +0 -124
- package/dist/scripts/src/components/DateInput/DateInput.js +0 -197
- package/dist/scripts/src/components/DateInput/DateInput.spec.js +0 -1023
- package/dist/scripts/src/components/DateInput/DateInputNative.js +0 -734
- package/dist/scripts/src/components/DatePicker/DatePicker.js +0 -146
- package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +0 -394
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +0 -326
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +0 -196
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +0 -331
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +0 -146
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +0 -26
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +0 -29
- package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +0 -71
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +0 -101
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +0 -435
- package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +0 -109
- package/dist/scripts/src/components/FileInput/FileInput.js +0 -80
- package/dist/scripts/src/components/FileInput/FileInput.spec.js +0 -285
- package/dist/scripts/src/components/FileInput/FileInputNative.js +0 -161
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +0 -58
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +0 -296
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +0 -134
- package/dist/scripts/src/components/FlowLayout/FlowLayout.js +0 -65
- package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +0 -518
- package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +0 -153
- package/dist/scripts/src/components/Footer/Footer.js +0 -45
- package/dist/scripts/src/components/Footer/Footer.spec.js +0 -991
- package/dist/scripts/src/components/Footer/FooterNative.js +0 -35
- package/dist/scripts/src/components/Form/Form.js +0 -161
- package/dist/scripts/src/components/Form/Form.spec.js +0 -1719
- package/dist/scripts/src/components/Form/FormContext.js +0 -124
- package/dist/scripts/src/components/Form/FormNative.js +0 -463
- package/dist/scripts/src/components/Form/formActions.js +0 -115
- package/dist/scripts/src/components/FormItem/FormItem.js +0 -231
- package/dist/scripts/src/components/FormItem/FormItem.spec.js +0 -1022
- package/dist/scripts/src/components/FormItem/FormItemNative.js +0 -255
- package/dist/scripts/src/components/FormItem/HelperText.js +0 -27
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +0 -52
- package/dist/scripts/src/components/FormItem/Validations.js +0 -389
- package/dist/scripts/src/components/FormSection/FormSection.js +0 -56
- package/dist/scripts/src/components/Fragment/Fragment.js +0 -24
- package/dist/scripts/src/components/Fragment/Fragment.spec.js +0 -50
- package/dist/scripts/src/components/Heading/H1.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H2.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H3.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H4.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H5.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H6.spec.js +0 -66
- package/dist/scripts/src/components/Heading/Heading.js +0 -396
- package/dist/scripts/src/components/Heading/Heading.spec.js +0 -966
- package/dist/scripts/src/components/Heading/HeadingNative.js +0 -98
- package/dist/scripts/src/components/Heading/abstractions.js +0 -4
- package/dist/scripts/src/components/HoverCard/HoverCard.js +0 -18
- package/dist/scripts/src/components/HoverCard/HovercardNative.js +0 -44
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +0 -1441
- package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +0 -69
- package/dist/scripts/src/components/IFrame/IFrame.js +0 -77
- package/dist/scripts/src/components/IFrame/IFrame.spec.js +0 -527
- package/dist/scripts/src/components/IFrame/IFrameNative.js +0 -46
- package/dist/scripts/src/components/Icon/AdmonitionDanger.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionInfo.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionNote.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionTip.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionWarning.js +0 -10
- package/dist/scripts/src/components/Icon/ApiIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ArrowDropDown.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowDropUp.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowLeft.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowRight.js +0 -11
- package/dist/scripts/src/components/Icon/Attach.js +0 -10
- package/dist/scripts/src/components/Icon/Binding.js +0 -11
- package/dist/scripts/src/components/Icon/BoardIcon.js +0 -7
- package/dist/scripts/src/components/Icon/BoxIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CheckIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronDownIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronLeft.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronRight.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronUpIcon.js +0 -7
- package/dist/scripts/src/components/Icon/CodeFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CodeSandbox.js +0 -10
- package/dist/scripts/src/components/Icon/CompactListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ContentCopyIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DarkToLightIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DatabaseIcon.js +0 -11
- package/dist/scripts/src/components/Icon/DocFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DocIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DotMenuHorizontalIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DotMenuIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmailIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmptyFolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ErrorIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ExpressionIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FillPlusCricleIcon.js +0 -7
- package/dist/scripts/src/components/Icon/FilterIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/GlobeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HomeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HyperLinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/Icon.js +0 -42
- package/dist/scripts/src/components/Icon/Icon.spec.js +0 -527
- package/dist/scripts/src/components/Icon/IconNative.js +0 -127
- package/dist/scripts/src/components/Icon/ImageFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/Inspect.js +0 -10
- package/dist/scripts/src/components/Icon/LightToDark.js +0 -10
- package/dist/scripts/src/components/Icon/LinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/LooseListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/MoonIcon.js +0 -10
- package/dist/scripts/src/components/Icon/MoreOptionsIcon.js +0 -7
- package/dist/scripts/src/components/Icon/NoSortIcon.js +0 -8
- package/dist/scripts/src/components/Icon/PDFIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PenIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhoneIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhotoIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PlusIcon.js +0 -7
- package/dist/scripts/src/components/Icon/SearchIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ShareIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SortAscendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/SortDescendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/StarsIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SunIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrashIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrendingDownIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingLevelIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingUpIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TxtIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnknownFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnlinkIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UserIcon.js +0 -7
- package/dist/scripts/src/components/Icon/WarningIcon.js +0 -7
- package/dist/scripts/src/components/Icon/XlsIcon.js +0 -10
- package/dist/scripts/src/components/IconProvider.js +0 -300
- package/dist/scripts/src/components/IconRegistryContext.js +0 -318
- package/dist/scripts/src/components/Image/Image.js +0 -52
- package/dist/scripts/src/components/Image/Image.spec.js +0 -198
- package/dist/scripts/src/components/Image/ImageNative.js +0 -73
- package/dist/scripts/src/components/Input/InputAdornment.js +0 -28
- package/dist/scripts/src/components/Input/InputDivider.js +0 -35
- package/dist/scripts/src/components/Input/InputLabel.js +0 -25
- package/dist/scripts/src/components/Input/PartialInput.js +0 -155
- package/dist/scripts/src/components/Input/index.js +0 -5
- package/dist/scripts/src/components/InspectButton/InspectButton.js +0 -35
- package/dist/scripts/src/components/Items/Items.js +0 -39
- package/dist/scripts/src/components/Items/Items.spec.js +0 -397
- package/dist/scripts/src/components/Items/ItemsNative.js +0 -33
- package/dist/scripts/src/components/Link/Link.js +0 -82
- package/dist/scripts/src/components/Link/Link.spec.js +0 -894
- package/dist/scripts/src/components/Link/LinkNative.js +0 -48
- package/dist/scripts/src/components/List/List.js +0 -130
- package/dist/scripts/src/components/List/List.spec.js +0 -927
- package/dist/scripts/src/components/List/ListNative.js +0 -433
- package/dist/scripts/src/components/List/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Logo/Logo.js +0 -30
- package/dist/scripts/src/components/Logo/LogoNative.js +0 -32
- package/dist/scripts/src/components/Markdown/CodeText.js +0 -38
- package/dist/scripts/src/components/Markdown/Markdown.js +0 -143
- package/dist/scripts/src/components/Markdown/Markdown.spec.js +0 -188
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +0 -476
- package/dist/scripts/src/components/Markdown/parse-binding-expr.js +0 -60
- package/dist/scripts/src/components/Markdown/utils.js +0 -389
- package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +0 -111
- package/dist/scripts/src/components/ModalDialog/Dialog.js +0 -20
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +0 -83
- package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +0 -181
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +0 -217
- package/dist/scripts/src/components/ModalDialog/ModalVisibilityContext.js +0 -60
- package/dist/scripts/src/components/NavGroup/NavGroup.js +0 -70
- package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +0 -304
- package/dist/scripts/src/components/NavGroup/NavGroupContext.js +0 -13
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +0 -133
- package/dist/scripts/src/components/NavLink/NavLink.js +0 -86
- package/dist/scripts/src/components/NavLink/NavLink.spec.js +0 -864
- package/dist/scripts/src/components/NavLink/NavLinkNative.js +0 -73
- package/dist/scripts/src/components/NavPanel/NavPanel.js +0 -53
- package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +0 -864
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +0 -222
- package/dist/scripts/src/components/NestedApp/AppWithCodeView.js +0 -91
- package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +0 -84
- package/dist/scripts/src/components/NestedApp/NestedApp.js +0 -86
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +0 -231
- package/dist/scripts/src/components/NestedApp/Tooltip.js +0 -46
- package/dist/scripts/src/components/NestedApp/defaultProps.js +0 -12
- package/dist/scripts/src/components/NestedApp/utils.js +0 -67
- package/dist/scripts/src/components/NoResult/NoResult.js +0 -46
- package/dist/scripts/src/components/NoResult/NoResult.spec.js +0 -863
- package/dist/scripts/src/components/NoResult/NoResultNative.js +0 -31
- package/dist/scripts/src/components/NumberBox/NumberBox.js +0 -123
- package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +0 -979
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +0 -513
- package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +0 -109
- package/dist/scripts/src/components/Option/Option.js +0 -44
- package/dist/scripts/src/components/Option/Option.spec.js +0 -474
- package/dist/scripts/src/components/Option/OptionNative.js +0 -29
- package/dist/scripts/src/components/Option/OptionTypeProvider.js +0 -16
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +0 -13
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +0 -22
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +0 -80
- package/dist/scripts/src/components/Pages/Pages.js +0 -54
- package/dist/scripts/src/components/Pages/PagesNative.js +0 -57
- package/dist/scripts/src/components/Pagination/Pagination.js +0 -107
- package/dist/scripts/src/components/Pagination/Pagination.spec.js +0 -1008
- package/dist/scripts/src/components/Pagination/PaginationNative.js +0 -157
- package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +0 -24
- package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +0 -14
- package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +0 -20
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +0 -38
- package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +0 -166
- package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +0 -28
- package/dist/scripts/src/components/Queue/Queue.js +0 -85
- package/dist/scripts/src/components/Queue/Queue.spec.js +0 -624
- package/dist/scripts/src/components/Queue/QueueNative.js +0 -342
- package/dist/scripts/src/components/Queue/queueActions.js +0 -87
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +0 -61
- package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +0 -490
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +0 -158
- package/dist/scripts/src/components/RadioGroup/RadioItem.js +0 -28
- package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +0 -62
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +0 -24
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +0 -135
- package/dist/scripts/src/components/Redirect/Redirect.js +0 -31
- package/dist/scripts/src/components/Redirect/Redirect.spec.js +0 -527
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.js +0 -60
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +0 -76
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBarNative.js +0 -313
- package/dist/scripts/src/components/Select/HiddenOption.js +0 -20
- package/dist/scripts/src/components/Select/OptionContext.js +0 -12
- package/dist/scripts/src/components/Select/Select.js +0 -131
- package/dist/scripts/src/components/Select/Select.spec.js +0 -763
- package/dist/scripts/src/components/Select/SelectContext.js +0 -16
- package/dist/scripts/src/components/Select/SelectNative.js +0 -440
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +0 -25
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +0 -103
- package/dist/scripts/src/components/Slider/Slider.js +0 -115
- package/dist/scripts/src/components/Slider/Slider.spec.js +0 -677
- package/dist/scripts/src/components/Slider/SliderNative.js +0 -237
- package/dist/scripts/src/components/Slot/Slot.js +0 -17
- package/dist/scripts/src/components/Slot/Slot.spec.js +0 -368
- package/dist/scripts/src/components/SlotItem.js +0 -32
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +0 -20
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +0 -184
- package/dist/scripts/src/components/SpaceFiller/SpaceFillerNative.js +0 -10
- package/dist/scripts/src/components/Spinner/Spinner.js +0 -39
- package/dist/scripts/src/components/Spinner/Spinner.spec.js +0 -161
- package/dist/scripts/src/components/Spinner/SpinnerNative.js +0 -48
- package/dist/scripts/src/components/Splitter/HSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/Splitter.js +0 -163
- package/dist/scripts/src/components/Splitter/Splitter.spec.js +0 -856
- package/dist/scripts/src/components/Splitter/SplitterNative.js +0 -205
- package/dist/scripts/src/components/Splitter/VSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/utils.js +0 -22
- package/dist/scripts/src/components/Stack/CHStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/CVStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/HStack.spec.js +0 -67
- package/dist/scripts/src/components/Stack/Stack.js +0 -156
- package/dist/scripts/src/components/Stack/Stack.spec.js +0 -654
- package/dist/scripts/src/components/Stack/StackNative.js +0 -45
- package/dist/scripts/src/components/Stack/VStack.spec.js +0 -67
- package/dist/scripts/src/components/StickyBox/StickyBox.js +0 -34
- package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +0 -42
- package/dist/scripts/src/components/Switch/Switch.js +0 -80
- package/dist/scripts/src/components/Switch/Switch.spec.js +0 -834
- package/dist/scripts/src/components/Table/Table.js +0 -268
- package/dist/scripts/src/components/Table/Table.spec.js +0 -827
- package/dist/scripts/src/components/Table/TableNative.js +0 -670
- package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Table/useRowSelection.js +0 -454
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +0 -76
- package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +0 -838
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +0 -81
- package/dist/scripts/src/components/Tabs/TabContext.js +0 -58
- package/dist/scripts/src/components/Tabs/TabItem.js +0 -44
- package/dist/scripts/src/components/Tabs/TabItemNative.js +0 -53
- package/dist/scripts/src/components/Tabs/Tabs.js +0 -95
- package/dist/scripts/src/components/Tabs/Tabs.spec.js +0 -1237
- package/dist/scripts/src/components/Tabs/TabsNative.js +0 -137
- package/dist/scripts/src/components/Text/Text.js +0 -181
- package/dist/scripts/src/components/Text/Text.spec.js +0 -1676
- package/dist/scripts/src/components/Text/TextNative.js +0 -244
- package/dist/scripts/src/components/TextArea/TextArea.js +0 -103
- package/dist/scripts/src/components/TextArea/TextArea.spec.js +0 -886
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +0 -196
- package/dist/scripts/src/components/TextArea/TextAreaResizable.js +0 -73
- package/dist/scripts/src/components/TextArea/useComposedRef.js +0 -60
- package/dist/scripts/src/components/TextBox/TextBox.js +0 -133
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +0 -758
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +0 -142
- package/dist/scripts/src/components/Theme/NotificationToast.js +0 -64
- package/dist/scripts/src/components/Theme/Theme.js +0 -47
- package/dist/scripts/src/components/Theme/Theme.spec.js +0 -390
- package/dist/scripts/src/components/Theme/ThemeNative.js +0 -162
- package/dist/scripts/src/components/TimeInput/TimeInput.js +0 -149
- package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +0 -1236
- package/dist/scripts/src/components/TimeInput/TimeInputNative.js +0 -650
- package/dist/scripts/src/components/TimeInput/utils.js +0 -197
- package/dist/scripts/src/components/Timer/Timer.js +0 -62
- package/dist/scripts/src/components/Timer/Timer.spec.js +0 -328
- package/dist/scripts/src/components/Timer/TimerNative.js +0 -178
- package/dist/scripts/src/components/Toggle/Toggle.js +0 -172
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +0 -63
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +0 -414
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.js +0 -51
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +0 -89
- package/dist/scripts/src/components/ToneSwitch/ToneSwitchNative.js +0 -42
- package/dist/scripts/src/components/Tooltip/Tooltip.js +0 -118
- package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +0 -418
- package/dist/scripts/src/components/Tooltip/TooltipNative.js +0 -160
- package/dist/scripts/src/components/Tree/Tree-dynamic.spec.js +0 -2894
- package/dist/scripts/src/components/Tree/Tree-icons.spec.js +0 -206
- package/dist/scripts/src/components/Tree/Tree.spec.js +0 -2839
- package/dist/scripts/src/components/Tree/TreeComponent.js +0 -324
- package/dist/scripts/src/components/Tree/TreeNative.js +0 -1129
- package/dist/scripts/src/components/Tree/testData.js +0 -296
- package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +0 -49
- package/dist/scripts/src/components/TreeDisplay/TreeDisplayNative.js +0 -104
- package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +0 -64
- package/dist/scripts/src/components/VisuallyHidden.js +0 -21
- package/dist/scripts/src/components/abstractions.js +0 -341
- package/dist/scripts/src/components/chart-color-schemes.js +0 -43
- package/dist/scripts/src/components/collectedComponentMetadata.js +0 -316
- package/dist/scripts/src/components/component-utils.js +0 -29
- package/dist/scripts/src/components/container-helpers.js +0 -26
- package/dist/scripts/src/components/metadata-helpers.js +0 -269
- package/dist/scripts/src/components-core/ApiBoundComponent.js +0 -227
- package/dist/scripts/src/components-core/AppContext.js +0 -16
- package/dist/scripts/src/components-core/ComponentDecorator.js +0 -74
- package/dist/scripts/src/components-core/ComponentViewer.js +0 -69
- package/dist/scripts/src/components-core/CompoundComponent.js +0 -145
- package/dist/scripts/src/components-core/DebugViewProvider.js +0 -43
- package/dist/scripts/src/components-core/EngineError.js +0 -91
- package/dist/scripts/src/components-core/InspectorContext.js +0 -248
- package/dist/scripts/src/components-core/LoaderComponent.js +0 -109
- package/dist/scripts/src/components-core/RestApiProxy.js +0 -468
- package/dist/scripts/src/components-core/StandaloneApp.js +0 -821
- package/dist/scripts/src/components-core/StandaloneExtensionManager.js +0 -44
- package/dist/scripts/src/components-core/TableOfContentsContext.js +0 -168
- package/dist/scripts/src/components-core/abstractions/ComponentRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/LoaderRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
- package/dist/scripts/src/components-core/abstractions/treeAbstractions.js +0 -2
- package/dist/scripts/src/components-core/action/APICall.js +0 -284
- package/dist/scripts/src/components-core/action/FileDownloadAction.js +0 -80
- package/dist/scripts/src/components-core/action/FileUploadAction.js +0 -88
- package/dist/scripts/src/components-core/action/NavigateAction.js +0 -20
- package/dist/scripts/src/components-core/action/TimedAction.js +0 -21
- package/dist/scripts/src/components-core/action/actions.js +0 -15
- package/dist/scripts/src/components-core/appContext/date-functions.js +0 -24
- package/dist/scripts/src/components-core/appContext/math-function.js +0 -27
- package/dist/scripts/src/components-core/appContext/misc-utils.js +0 -14
- package/dist/scripts/src/components-core/behaviors/Behavior.js +0 -2
- package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +0 -201
- package/dist/scripts/src/components-core/component-hooks.js +0 -25
- package/dist/scripts/src/components-core/constants.js +0 -18
- package/dist/scripts/src/components-core/descriptorHelper.js +0 -96
- package/dist/scripts/src/components-core/devtools/InspectorDialog.js +0 -135
- package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +0 -8
- package/dist/scripts/src/components-core/event-handlers.js +0 -46
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +0 -247
- package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +0 -167
- package/dist/scripts/src/components-core/interception/Backend.js +0 -141
- package/dist/scripts/src/components-core/interception/Errors.js +0 -129
- package/dist/scripts/src/components-core/interception/InMemoryDb.js +0 -41
- package/dist/scripts/src/components-core/interception/IndexedDb.js +0 -205
- package/dist/scripts/src/components-core/interception/ReadonlyCollection.js +0 -145
- package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
- package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +0 -44
- package/dist/scripts/src/components-core/interception/initMock.js +0 -20
- package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +0 -9
- package/dist/scripts/src/components-core/loader/ApiLoader.js +0 -54
- package/dist/scripts/src/components-core/loader/DataLoader.js +0 -330
- package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +0 -60
- package/dist/scripts/src/components-core/loader/Loader.js +0 -159
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +0 -43
- package/dist/scripts/src/components-core/loader/PageableLoader.js +0 -272
- package/dist/scripts/src/components-core/markup-check.js +0 -279
- package/dist/scripts/src/components-core/parts.js +0 -11
- package/dist/scripts/src/components-core/renderers.js +0 -76
- package/dist/scripts/src/components-core/rendering/AppContent.js +0 -400
- package/dist/scripts/src/components-core/rendering/AppRoot.js +0 -87
- package/dist/scripts/src/components-core/rendering/AppWrapper.js +0 -49
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +0 -380
- package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +0 -166
- package/dist/scripts/src/components-core/rendering/Container.js +0 -621
- package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +0 -94
- package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +0 -65
- package/dist/scripts/src/components-core/rendering/InvalidComponent.js +0 -17
- package/dist/scripts/src/components-core/rendering/StandaloneComponent.js +0 -39
- package/dist/scripts/src/components-core/rendering/StateContainer.js +0 -350
- package/dist/scripts/src/components-core/rendering/UnknownComponent.js +0 -15
- package/dist/scripts/src/components-core/rendering/buildProxy.js +0 -58
- package/dist/scripts/src/components-core/rendering/collectFnVarDeps.js +0 -49
- package/dist/scripts/src/components-core/rendering/containers.js +0 -19
- package/dist/scripts/src/components-core/rendering/nodeUtils.js +0 -6
- package/dist/scripts/src/components-core/rendering/reducer.js +0 -160
- package/dist/scripts/src/components-core/rendering/renderChild.js +0 -82
- package/dist/scripts/src/components-core/rendering/valueExtractor.js +0 -216
- package/dist/scripts/src/components-core/reportEngineError.js +0 -62
- package/dist/scripts/src/components-core/script-runner/AttributeValueParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/BindingTreeEvaluationContext.js +0 -33
- package/dist/scripts/src/components-core/script-runner/ParameterParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/ScriptingSourceTree.js +0 -45
- package/dist/scripts/src/components-core/script-runner/asyncProxy.js +0 -96
- package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +0 -34
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +0 -613
- package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +0 -439
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +0 -522
- package/dist/scripts/src/components-core/script-runner/process-statement-async.js +0 -761
- package/dist/scripts/src/components-core/script-runner/process-statement-common.js +0 -208
- package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +0 -746
- package/dist/scripts/src/components-core/script-runner/simplify-expression.js +0 -386
- package/dist/scripts/src/components-core/script-runner/statement-queue.js +0 -63
- package/dist/scripts/src/components-core/script-runner/visitors.js +0 -369
- package/dist/scripts/src/components-core/theming/StyleContext.js +0 -133
- package/dist/scripts/src/components-core/theming/StyleRegistry.js +0 -171
- package/dist/scripts/src/components-core/theming/ThemeContext.js +0 -53
- package/dist/scripts/src/components-core/theming/ThemeProvider.js +0 -342
- package/dist/scripts/src/components-core/theming/component-layout-resolver.js +0 -153
- package/dist/scripts/src/components-core/theming/extendThemeUtils.js +0 -47
- package/dist/scripts/src/components-core/theming/hvar.js +0 -105
- package/dist/scripts/src/components-core/theming/layout-resolver.js +0 -388
- package/dist/scripts/src/components-core/theming/parse-layout-props.js +0 -136
- package/dist/scripts/src/components-core/theming/themeVars.js +0 -62
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +0 -15
- package/dist/scripts/src/components-core/theming/themes/palette.js +0 -57
- package/dist/scripts/src/components-core/theming/themes/root.js +0 -434
- package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
- package/dist/scripts/src/components-core/theming/themes/theme-colors.js +0 -561
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +0 -57
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +0 -733
- package/dist/scripts/src/components-core/theming/utils.js +0 -31
- package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +0 -41
- package/dist/scripts/src/components-core/utils/LruCache.js +0 -184
- package/dist/scripts/src/components-core/utils/actionUtils.js +0 -32
- package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
- package/dist/scripts/src/components-core/utils/base64-utils.js +0 -124
- package/dist/scripts/src/components-core/utils/compound-utils.js +0 -11
- package/dist/scripts/src/components-core/utils/css-utils.js +0 -179
- package/dist/scripts/src/components-core/utils/date-utils.js +0 -186
- package/dist/scripts/src/components-core/utils/extractParam.js +0 -281
- package/dist/scripts/src/components-core/utils/hooks.js +0 -400
- package/dist/scripts/src/components-core/utils/mergeProps.js +0 -45
- package/dist/scripts/src/components-core/utils/misc.js +0 -539
- package/dist/scripts/src/components-core/utils/request-params.js +0 -70
- package/dist/scripts/src/components-core/utils/statementUtils.js +0 -224
- package/dist/scripts/src/components-core/utils/treeUtils.js +0 -226
- package/dist/scripts/src/components-core/xmlui-parser.js +0 -548
- package/dist/scripts/src/index-standalone.js +0 -61
- package/dist/scripts/src/index.js +0 -158
- package/dist/scripts/src/language-server/server-common.js +0 -152
- package/dist/scripts/src/language-server/server-web-worker.js +0 -47
- package/dist/scripts/src/language-server/server.js +0 -42
- package/dist/scripts/src/language-server/services/common/docs-generation.js +0 -73
- package/dist/scripts/src/language-server/services/common/lsp-utils.js +0 -9
- package/dist/scripts/src/language-server/services/common/metadata-utils.js +0 -157
- package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +0 -127
- package/dist/scripts/src/language-server/services/completion.js +0 -288
- package/dist/scripts/src/language-server/services/diagnostic.js +0 -19
- package/dist/scripts/src/language-server/services/format.js +0 -569
- package/dist/scripts/src/language-server/services/hover.js +0 -164
- package/dist/scripts/src/language-server/xmlui-metadata-generated.js +0 -16276
- package/dist/scripts/src/logging/LoggerContext.js +0 -22
- package/dist/scripts/src/logging/LoggerInitializer.js +0 -14
- package/dist/scripts/src/logging/LoggerService.js +0 -60
- package/dist/scripts/src/logging/xmlui.js +0 -21
- package/dist/scripts/src/parsers/common/GenericToken.js +0 -2
- package/dist/scripts/src/parsers/common/InputStream.js +0 -59
- package/dist/scripts/src/parsers/common/utils.js +0 -19
- package/dist/scripts/src/parsers/scripting/Lexer.js +0 -1097
- package/dist/scripts/src/parsers/scripting/Parser.js +0 -2638
- package/dist/scripts/src/parsers/scripting/ParserError.js +0 -47
- package/dist/scripts/src/parsers/scripting/ScriptingNodeTypes.js +0 -50
- package/dist/scripts/src/parsers/scripting/TokenTrait.js +0 -108
- package/dist/scripts/src/parsers/scripting/TokenType.js +0 -109
- package/dist/scripts/src/parsers/scripting/code-behind-collect.js +0 -101
- package/dist/scripts/src/parsers/scripting/modules.js +0 -105
- package/dist/scripts/src/parsers/scripting/tree-visitor.js +0 -601
- package/dist/scripts/src/parsers/style-parser/StyleInputStream.js +0 -39
- package/dist/scripts/src/parsers/style-parser/StyleLexer.js +0 -623
- package/dist/scripts/src/parsers/style-parser/StyleParser.js +0 -453
- package/dist/scripts/src/parsers/style-parser/errors.js +0 -37
- package/dist/scripts/src/parsers/style-parser/source-tree.js +0 -2
- package/dist/scripts/src/parsers/style-parser/tokens.js +0 -43
- package/dist/scripts/src/parsers/xmlui-parser/CharacterCodes.js +0 -136
- package/dist/scripts/src/parsers/xmlui-parser/ParserError.js +0 -60
- package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +0 -172
- package/dist/scripts/src/parsers/xmlui-parser/fileExtensions.js +0 -6
- package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
- package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -165
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +0 -627
- package/dist/scripts/src/parsers/xmlui-parser/scanner.js +0 -415
- package/dist/scripts/src/parsers/xmlui-parser/syntax-kind.js +0 -123
- package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -1131
- package/dist/scripts/src/parsers/xmlui-parser/utils.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
- package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
- package/dist/scripts/src/syntax/monaco/index.js +0 -14
- package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
- package/dist/scripts/src/syntax/textMate/index.js +0 -14
- package/dist/scripts/src/syntax/textMate/xmlui-dark.json +0 -631
- package/dist/scripts/src/syntax/textMate/xmlui-light.json +0 -565
- package/dist/scripts/src/syntax/textMate/xmlui.json +0 -564
- package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +0 -341
- package/dist/scripts/src/testing/ComponentDrivers.js +0 -1380
- package/dist/scripts/src/testing/assertions.js +0 -444
- package/dist/scripts/src/testing/component-test-helpers.js +0 -373
- package/dist/scripts/src/testing/drivers/DateInputDriver.js +0 -19
- package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +0 -10
- package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +0 -44
- package/dist/scripts/src/testing/drivers/TextBoxDriver.js +0 -20
- package/dist/scripts/src/testing/drivers/TimeInputDriver.js +0 -22
- package/dist/scripts/src/testing/drivers/TimerDriver.js +0 -64
- package/dist/scripts/src/testing/drivers/TreeDriver.js +0 -13
- package/dist/scripts/src/testing/drivers/index.js +0 -9
- package/dist/scripts/src/testing/fixtures.js +0 -519
- package/dist/scripts/src/testing/index.js +0 -69
- package/dist/scripts/src/testing/infrastructure/TestBed.js +0 -17
- package/dist/scripts/src/testing/infrastructure/main.js +0 -9
- package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +0 -266
- package/dist/scripts/src/testing/themed-app-test-helpers.js +0 -133
|
@@ -1,1008 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const component_test_helpers_1 = require("../../testing/component-test-helpers");
|
|
13
|
-
const fixtures_1 = require("../../testing/fixtures");
|
|
14
|
-
// =============================================================================
|
|
15
|
-
// BASIC FUNCTIONALITY TESTS
|
|
16
|
-
// =============================================================================
|
|
17
|
-
fixtures_1.test.describe("Basic Functionality", () => {
|
|
18
|
-
(0, fixtures_1.test)("renders basic controls with no props", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
19
|
-
yield initTestBed(`<Pagination />`);
|
|
20
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeVisible();
|
|
21
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next page" })).toBeVisible();
|
|
22
|
-
}));
|
|
23
|
-
(0, fixtures_1.test)("controls are disabled if enabled=false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
24
|
-
yield initTestBed(`<Pagination enabled="false" itemCount="100" pageSize="10" pageIndex="0" />`);
|
|
25
|
-
// Should not show navigation buttons
|
|
26
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeDisabled();
|
|
27
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeDisabled();
|
|
28
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next page" })).toBeDisabled();
|
|
29
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Last page" })).toBeDisabled();
|
|
30
|
-
}));
|
|
31
|
-
(0, fixtures_1.test)("controls are disabled if enabled=false #2", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
32
|
-
yield initTestBed(`<Pagination enabled="false" itemCount="100" pageSize="10" pageIndex="0" maxVisiblePages="3" />`);
|
|
33
|
-
// Should not show navigation buttons
|
|
34
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeDisabled();
|
|
35
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 1" })).toBeDisabled();
|
|
36
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 2" })).toBeDisabled();
|
|
37
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 3" })).toBeDisabled();
|
|
38
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Last page" })).toBeDisabled();
|
|
39
|
-
}));
|
|
40
|
-
(0, fixtures_1.test)("renders with basic props", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
41
|
-
yield initTestBed(`<Pagination itemCount="100" pageSize="10" pageIndex="0" />`);
|
|
42
|
-
// Should show navigation buttons
|
|
43
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeVisible();
|
|
44
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeVisible();
|
|
45
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next page" })).toBeVisible();
|
|
46
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Last page" })).toBeVisible();
|
|
47
|
-
// Should show page info by default
|
|
48
|
-
yield (0, fixtures_1.expect)(page.getByText("Page 1 of 10 (100 items)")).toBeVisible();
|
|
49
|
-
}));
|
|
50
|
-
(0, fixtures_1.test)("renders when itemCount is zero", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
51
|
-
yield initTestBed(`<Pagination itemCount="0"/>`);
|
|
52
|
-
// Component should not be visible
|
|
53
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeVisible();
|
|
54
|
-
yield (0, fixtures_1.expect)(page.getByText(/Page \d+ of \d+/)).toBeVisible();
|
|
55
|
-
}));
|
|
56
|
-
(0, fixtures_1.test)("handles itemCount property correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
57
|
-
yield initTestBed(`<Pagination itemCount="25" pageSize="5"/>`);
|
|
58
|
-
// Should calculate correct total pages (25 items / 5 per page = 5 pages)
|
|
59
|
-
yield (0, fixtures_1.expect)(page.getByText("Page 1 of 5 (25 items)")).toBeVisible();
|
|
60
|
-
}));
|
|
61
|
-
(0, fixtures_1.test)("handles pageSize property correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
62
|
-
yield initTestBed(`<Pagination itemCount="100" pageSize="20"/>`);
|
|
63
|
-
// Should calculate correct total pages (100 items / 20 per page = 5 pages)
|
|
64
|
-
yield (0, fixtures_1.expect)(page.getByText("Page 1 of 5 (100 items)")).toBeVisible();
|
|
65
|
-
}));
|
|
66
|
-
(0, fixtures_1.test)("handles showPageInfo property correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
67
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" showPageInfo="false"/>`);
|
|
68
|
-
// Should not show page info when showPageInfo is false
|
|
69
|
-
yield (0, fixtures_1.expect)(page.getByText(/Page \d+ of \d+/)).not.toBeVisible();
|
|
70
|
-
// But should still show navigation buttons
|
|
71
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeVisible();
|
|
72
|
-
}));
|
|
73
|
-
(0, fixtures_1.test)("handles pageIndex property correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
74
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageIndex="2" showPageInfo="false" />`);
|
|
75
|
-
// Should show page 3 (0-based index 2)
|
|
76
|
-
yield (0, fixtures_1.expect)(page.getByText("3", { exact: true })).toBeVisible();
|
|
77
|
-
}));
|
|
78
|
-
(0, fixtures_1.test)("handles maxVisiblePages property correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
79
|
-
yield initTestBed(`<Pagination itemCount="100" pageSize="10" maxVisiblePages="3"/>`);
|
|
80
|
-
// With maxVisiblePages=3, should only show 3 page buttons
|
|
81
|
-
const pageButtons = page.getByRole("button").filter({ hasText: /^\d+$/ });
|
|
82
|
-
yield (0, fixtures_1.expect)(pageButtons).toHaveCount(3);
|
|
83
|
-
// Should show pages 1, 2, 3
|
|
84
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 1" })).toBeVisible();
|
|
85
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 2" })).toBeVisible();
|
|
86
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 3" })).toBeVisible();
|
|
87
|
-
}));
|
|
88
|
-
(0, fixtures_1.test)("handles maxVisiblePages when there's only one page", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
89
|
-
yield initTestBed(`<Pagination itemCount="5" pageSize="10" maxVisiblePages="1"/>`);
|
|
90
|
-
// Should show just the page number as text, not a button
|
|
91
|
-
yield (0, fixtures_1.expect)(page.getByText("1", { exact: true })).toBeVisible();
|
|
92
|
-
// Should not have clickable page buttons
|
|
93
|
-
const pageButtons = page.getByRole("button").filter({ hasText: /^\d+$/ });
|
|
94
|
-
yield (0, fixtures_1.expect)(pageButtons).toHaveCount(0);
|
|
95
|
-
}));
|
|
96
|
-
(0, fixtures_1.test)("navigation buttons are disabled correctly on first page", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
97
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageIndex="0"/>`);
|
|
98
|
-
// First and Previous buttons should be disabled
|
|
99
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeDisabled();
|
|
100
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeDisabled();
|
|
101
|
-
// Next and Last buttons should be enabled
|
|
102
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next page" })).toBeEnabled();
|
|
103
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Last page" })).toBeEnabled();
|
|
104
|
-
}));
|
|
105
|
-
(0, fixtures_1.test)("navigation buttons are disabled correctly on last page", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
106
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageIndex="4"/>`);
|
|
107
|
-
// Next and Last buttons should be disabled
|
|
108
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next page" })).toBeDisabled();
|
|
109
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Last page" })).toBeDisabled();
|
|
110
|
-
// First and Previous buttons should be enabled
|
|
111
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeEnabled();
|
|
112
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeEnabled();
|
|
113
|
-
}));
|
|
114
|
-
(0, fixtures_1.test)("handles edge case with single item", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
115
|
-
yield initTestBed(`<Pagination itemCount="1" pageSize="10"/>`);
|
|
116
|
-
yield (0, fixtures_1.expect)(page.getByText("Page 1 of 1 (1 items)")).toBeVisible();
|
|
117
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First Page" })).toBeDisabled();
|
|
118
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous Page" })).toBeDisabled();
|
|
119
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next Page" })).toBeDisabled();
|
|
120
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Last Page" })).toBeDisabled();
|
|
121
|
-
}));
|
|
122
|
-
(0, fixtures_1.test)("handles negative itemCount gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
123
|
-
yield initTestBed(`<Pagination itemCount="-5" pageSize="10" pageIndex="0"/>`);
|
|
124
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous Page" })).toBeVisible();
|
|
125
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next Page" })).toBeVisible();
|
|
126
|
-
}));
|
|
127
|
-
(0, fixtures_1.test)("handles negative pageIndex gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
128
|
-
yield initTestBed(`<Pagination itemCount="10" pageSize="5" pageIndex="-1"/>`);
|
|
129
|
-
// Should clamp pageIndex to 0 and render first page
|
|
130
|
-
yield (0, fixtures_1.expect)(page.getByText("Page 1 of 2 (10 items)")).toBeVisible();
|
|
131
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeDisabled();
|
|
132
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeDisabled();
|
|
133
|
-
}));
|
|
134
|
-
(0, fixtures_1.test)("handles negative pageSize gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
135
|
-
yield initTestBed(`<Pagination itemCount="10" pageSize="-5" pageIndex="0"/>`);
|
|
136
|
-
// Should clamp pageSize to 1 and render first page
|
|
137
|
-
yield (0, fixtures_1.expect)(page.getByText("Page 1 of 1 (10 items)")).toBeVisible();
|
|
138
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeDisabled();
|
|
139
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeDisabled();
|
|
140
|
-
}));
|
|
141
|
-
(0, fixtures_1.test)("displays minimal layout if no itemCount provided", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
142
|
-
yield initTestBed(`<Pagination />`);
|
|
143
|
-
// Should show minimal layout
|
|
144
|
-
yield (0, fixtures_1.expect)(page.getByText("Page 1 of 1 (1 items)")).not.toBeAttached();
|
|
145
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First Page" })).not.toBeAttached();
|
|
146
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous Page" })).toBeDisabled();
|
|
147
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next Page" })).toBeDisabled();
|
|
148
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Last Page" })).not.toBeAttached();
|
|
149
|
-
}));
|
|
150
|
-
(0, fixtures_1.test)("hasPrevPage modifies Previous button enabled state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
151
|
-
yield initTestBed(`<Pagination hasPrevPage="true" />`);
|
|
152
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeEnabled();
|
|
153
|
-
}));
|
|
154
|
-
(0, fixtures_1.test)("hasPrevPage does not interfere with Next button state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
155
|
-
yield initTestBed(`<Pagination hasPrevPage="true" hasNextPage="false" />`);
|
|
156
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next page" })).toBeDisabled();
|
|
157
|
-
}));
|
|
158
|
-
(0, fixtures_1.test)("hasNextPage modifies Next button enabled state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
159
|
-
yield initTestBed(`<Pagination hasNextPage="true" />`);
|
|
160
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next page" })).toBeEnabled();
|
|
161
|
-
}));
|
|
162
|
-
(0, fixtures_1.test)("hasNextPage does not interfere with Previous button state", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
163
|
-
yield initTestBed(`<Pagination hasNextPage="true" hasPrevPage="false" />`);
|
|
164
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeDisabled();
|
|
165
|
-
}));
|
|
166
|
-
(0, fixtures_1.test)("hasPrevPage and hasNextPage have no effect if itemCount >= 0", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
167
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageIndex="2" hasPrevPage="false" hasNextPage="false" />`);
|
|
168
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeEnabled();
|
|
169
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next page" })).toBeEnabled();
|
|
170
|
-
}));
|
|
171
|
-
(0, fixtures_1.test)("shows page size selector by default when pageSizeOptions are provided", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
172
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}"/>`);
|
|
173
|
-
yield (0, fixtures_1.expect)(page.locator("select")).toBeVisible();
|
|
174
|
-
}));
|
|
175
|
-
(0, fixtures_1.test)("hides page size selector when showPageSizeSelector is false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
176
|
-
yield initTestBed(`
|
|
177
|
-
<Pagination
|
|
178
|
-
itemCount="50"
|
|
179
|
-
pageSize="10"
|
|
180
|
-
pageSizeOptions="{[5, 10, 20]}"
|
|
181
|
-
showPageSizeSelector="false"
|
|
182
|
-
/>
|
|
183
|
-
`);
|
|
184
|
-
yield (0, fixtures_1.expect)(page.locator("select")).not.toBeVisible();
|
|
185
|
-
}));
|
|
186
|
-
(0, fixtures_1.test)("shows page size selector when showPageSizeSelector is true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
187
|
-
yield initTestBed(`
|
|
188
|
-
<Pagination
|
|
189
|
-
itemCount="50"
|
|
190
|
-
pageSize="10"
|
|
191
|
-
pageSizeOptions="{[5, 10, 20]}"
|
|
192
|
-
showPageSizeSelector="true"
|
|
193
|
-
/>
|
|
194
|
-
`);
|
|
195
|
-
yield (0, fixtures_1.expect)(page.locator("select")).toBeVisible();
|
|
196
|
-
}));
|
|
197
|
-
(0, fixtures_1.test)("showPageSizeSelector has no effect when pageSizeOptions is empty", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
198
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" showPageSizeSelector="true"/>`);
|
|
199
|
-
yield (0, fixtures_1.expect)(page.locator("select")).not.toBeVisible();
|
|
200
|
-
}));
|
|
201
|
-
(0, fixtures_1.test)("showPageSizeSelector has no effect when pageSizeOptions has only one option", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
202
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[10]}" showPageSizeSelector="true"/>`);
|
|
203
|
-
yield (0, fixtures_1.expect)(page.locator("select")).not.toBeVisible();
|
|
204
|
-
}));
|
|
205
|
-
(0, fixtures_1.test)("does not show page size selector when pageSizeOptions is not provided", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
206
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10"/>`);
|
|
207
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).not.toBeVisible();
|
|
208
|
-
yield (0, fixtures_1.expect)(page.locator("select")).not.toBeVisible();
|
|
209
|
-
}));
|
|
210
|
-
(0, fixtures_1.test)("shows page size selector when multiple pageSizeOptions are provided", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
211
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}"/>`);
|
|
212
|
-
// Should show page size selector
|
|
213
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).toBeVisible();
|
|
214
|
-
// Should show select dropdown with current value
|
|
215
|
-
const select = page.locator("select");
|
|
216
|
-
yield (0, fixtures_1.expect)(select).toBeVisible();
|
|
217
|
-
yield (0, fixtures_1.expect)(select).toHaveValue("10");
|
|
218
|
-
// Check that all options exist in the DOM (even if not visible)
|
|
219
|
-
yield (0, fixtures_1.expect)(select.locator('option[value="5"]')).toHaveCount(1);
|
|
220
|
-
yield (0, fixtures_1.expect)(select.locator('option[value="10"]')).toHaveCount(1);
|
|
221
|
-
yield (0, fixtures_1.expect)(select.locator('option[value="20"]')).toHaveCount(1);
|
|
222
|
-
}));
|
|
223
|
-
(0, fixtures_1.test)("page size selector is disabled when component is disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
224
|
-
yield initTestBed(`<Pagination enabled="false" itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}"/>`);
|
|
225
|
-
// Select should be disabled
|
|
226
|
-
const select = page.locator("select");
|
|
227
|
-
yield (0, fixtures_1.expect)(select).toBeDisabled();
|
|
228
|
-
}));
|
|
229
|
-
(0, fixtures_1.test)("page size selector allows changing selection", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
230
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}"/>`);
|
|
231
|
-
// Should show page size selector
|
|
232
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).toBeVisible();
|
|
233
|
-
// Should start with correct value
|
|
234
|
-
const select = page.locator("select");
|
|
235
|
-
yield (0, fixtures_1.expect)(select).toHaveValue("10");
|
|
236
|
-
// Should be able to interact with the select (this triggers the event)
|
|
237
|
-
yield select.selectOption("20");
|
|
238
|
-
// Note: In a real application, the parent would update the pageSize prop
|
|
239
|
-
// which would cause the select to show the new value. For this test,
|
|
240
|
-
// we're just verifying the interaction is possible.
|
|
241
|
-
}));
|
|
242
|
-
(0, fixtures_1.test)("page size selector reflects current pageSize", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
243
|
-
yield initTestBed(`<Pagination itemCount="100" pageSize="20" pageSizeOptions="{[5, 10, 20, 50]}"/>`);
|
|
244
|
-
// Select should show current page size
|
|
245
|
-
const select = page.locator("select");
|
|
246
|
-
yield (0, fixtures_1.expect)(select).toHaveValue("20");
|
|
247
|
-
}));
|
|
248
|
-
(0, fixtures_1.test)("handles pageSize not in pageSizeOptions gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
249
|
-
yield initTestBed(`<Pagination itemCount="100" pageSize="15" pageSizeOptions="{[5, 10, 20]}"/>`);
|
|
250
|
-
// Should show page size selector since multiple options are provided
|
|
251
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).toBeVisible();
|
|
252
|
-
const select = page.locator("select");
|
|
253
|
-
yield (0, fixtures_1.expect)(select).toBeVisible();
|
|
254
|
-
// When pageSize (15) is not in pageSizeOptions, component defaults to first option (5)
|
|
255
|
-
// This tests how the component handles mismatched pageSize vs pageSizeOptions
|
|
256
|
-
yield (0, fixtures_1.expect)(select).toHaveValue("5");
|
|
257
|
-
// All original options should still be available
|
|
258
|
-
yield (0, fixtures_1.expect)(select.locator('option[value="5"]')).toHaveCount(1);
|
|
259
|
-
yield (0, fixtures_1.expect)(select.locator('option[value="10"]')).toHaveCount(1);
|
|
260
|
-
yield (0, fixtures_1.expect)(select.locator('option[value="20"]')).toHaveCount(1);
|
|
261
|
-
// Page calculations should use the actual pageSize (15), not the selected option (5)
|
|
262
|
-
// 100 items / 15 per page = 6.67 -> 7 pages
|
|
263
|
-
yield (0, fixtures_1.expect)(page.getByText("Page 1 of 7 (100 items)")).toBeVisible();
|
|
264
|
-
}));
|
|
265
|
-
// Edge cases for showPageSizeSelector property
|
|
266
|
-
(0, fixtures_1.test)("handles null showPageSizeSelector property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
267
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="{null}"/>`);
|
|
268
|
-
// Should fall back to default behavior (true) when null
|
|
269
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).toBeVisible();
|
|
270
|
-
yield (0, fixtures_1.expect)(page.locator("select")).toBeVisible();
|
|
271
|
-
}));
|
|
272
|
-
(0, fixtures_1.test)("handles undefined showPageSizeSelector property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
273
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="{undefined}"/>`);
|
|
274
|
-
// Should fall back to default behavior (true) when undefined
|
|
275
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).toBeVisible();
|
|
276
|
-
yield (0, fixtures_1.expect)(page.locator("select")).toBeVisible();
|
|
277
|
-
}));
|
|
278
|
-
(0, fixtures_1.test)("handles string 'false' for showPageSizeSelector property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
279
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="false"/>`);
|
|
280
|
-
// Should treat string 'false' as false
|
|
281
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).not.toBeVisible();
|
|
282
|
-
yield (0, fixtures_1.expect)(page.locator("select")).not.toBeVisible();
|
|
283
|
-
}));
|
|
284
|
-
(0, fixtures_1.test)("handles string 'true' for showPageSizeSelector property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
285
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="true"/>`);
|
|
286
|
-
// Should treat string 'true' as true
|
|
287
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).toBeVisible();
|
|
288
|
-
yield (0, fixtures_1.expect)(page.locator("select")).toBeVisible();
|
|
289
|
-
}));
|
|
290
|
-
(0, fixtures_1.test)("handles numeric 0 for showPageSizeSelector property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
291
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="{0}"/>`);
|
|
292
|
-
// Should treat 0 as false
|
|
293
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).not.toBeVisible();
|
|
294
|
-
yield (0, fixtures_1.expect)(page.locator("select")).not.toBeVisible();
|
|
295
|
-
}));
|
|
296
|
-
(0, fixtures_1.test)("handles numeric 1 for showPageSizeSelector property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
297
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="{1}"/>`);
|
|
298
|
-
// Should treat 1 as true
|
|
299
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).toBeVisible();
|
|
300
|
-
yield (0, fixtures_1.expect)(page.locator("select")).toBeVisible();
|
|
301
|
-
}));
|
|
302
|
-
(0, fixtures_1.test)("handles object for showPageSizeSelector property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
303
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector="{{a: 'b'}}" />`);
|
|
304
|
-
// Objects may cause component to not render properly in some contexts
|
|
305
|
-
const pageSizeText = page.getByText("Items per page");
|
|
306
|
-
const exists = yield pageSizeText.count();
|
|
307
|
-
if (exists > 0) {
|
|
308
|
-
// Should treat object as truthy (true) when it renders
|
|
309
|
-
yield (0, fixtures_1.expect)(pageSizeText).toBeVisible();
|
|
310
|
-
yield (0, fixtures_1.expect)(page.locator("select")).toBeVisible();
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
// Component may not render page size selector with invalid object input
|
|
314
|
-
yield (0, fixtures_1.expect)(pageSizeText).not.toBeVisible();
|
|
315
|
-
}
|
|
316
|
-
}));
|
|
317
|
-
(0, fixtures_1.test)("handles empty string for showPageSizeSelector property", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
318
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}" showPageSizeSelector=""/>`);
|
|
319
|
-
// Should treat empty string as false
|
|
320
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).not.toBeVisible();
|
|
321
|
-
yield (0, fixtures_1.expect)(page.locator("select")).not.toBeVisible();
|
|
322
|
-
}));
|
|
323
|
-
(0, fixtures_1.test)("defaults to horizontal orientation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
324
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10"/>`);
|
|
325
|
-
// Should have horizontal class by default
|
|
326
|
-
const nav = page.locator('nav[aria-label="Pagination"]');
|
|
327
|
-
const prevButton = nav.getByRole("button", { name: "Previous page" });
|
|
328
|
-
const nextButton = nav.getByRole("button", { name: "Next page" });
|
|
329
|
-
const { top: prevTop, bottom: prevBottom } = yield (0, component_test_helpers_1.getBounds)(prevButton);
|
|
330
|
-
const { top: nextTop, bottom: nextBottom } = yield (0, component_test_helpers_1.getBounds)(nextButton);
|
|
331
|
-
(0, fixtures_1.expect)(prevBottom).toEqualWithTolerance(nextBottom, 1);
|
|
332
|
-
(0, fixtures_1.expect)(prevTop).toEqualWithTolerance(nextTop, 1);
|
|
333
|
-
}));
|
|
334
|
-
(0, fixtures_1.test)("applies horizontal orientation when specified", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
335
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" orientation="horizontal"/>`);
|
|
336
|
-
// Should have horizontal class
|
|
337
|
-
const nav = page.locator('nav[aria-label="Pagination"]');
|
|
338
|
-
const prevButton = nav.getByRole("button", { name: "Previous page" });
|
|
339
|
-
const nextButton = nav.getByRole("button", { name: "Next page" });
|
|
340
|
-
const { top: prevTop, bottom: prevBottom } = yield (0, component_test_helpers_1.getBounds)(prevButton);
|
|
341
|
-
const { top: nextTop, bottom: nextBottom } = yield (0, component_test_helpers_1.getBounds)(nextButton);
|
|
342
|
-
(0, fixtures_1.expect)(prevBottom).toEqualWithTolerance(nextBottom, 1);
|
|
343
|
-
(0, fixtures_1.expect)(prevTop).toEqualWithTolerance(nextTop, 1);
|
|
344
|
-
}));
|
|
345
|
-
(0, fixtures_1.test)("applies vertical orientation when specified", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
346
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" orientation="vertical"/>`);
|
|
347
|
-
// Should have vertical class
|
|
348
|
-
const nav = page.locator('nav[aria-label="Pagination"]');
|
|
349
|
-
const prevButton = nav.getByRole("button", { name: "Previous page" });
|
|
350
|
-
const nextButton = nav.getByRole("button", { name: "Next page" });
|
|
351
|
-
const { bottom: prevBottom } = yield (0, component_test_helpers_1.getBounds)(prevButton);
|
|
352
|
-
const { top: nextTop } = yield (0, component_test_helpers_1.getBounds)(nextButton);
|
|
353
|
-
(0, fixtures_1.expect)(prevBottom).toBeLessThan(nextTop);
|
|
354
|
-
}));
|
|
355
|
-
(0, fixtures_1.test)("falls back to default orientation for invalid values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
356
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" orientation="invalid"/>`);
|
|
357
|
-
// Should fall back to horizontal (default)
|
|
358
|
-
const nav = page.locator('nav[aria-label="Pagination"]');
|
|
359
|
-
const prevButton = nav.getByRole("button", { name: "Previous page" });
|
|
360
|
-
const nextButton = nav.getByRole("button", { name: "Next page" });
|
|
361
|
-
const { top: prevTop, bottom: prevBottom } = yield (0, component_test_helpers_1.getBounds)(prevButton);
|
|
362
|
-
const { top: nextTop, bottom: nextBottom } = yield (0, component_test_helpers_1.getBounds)(nextButton);
|
|
363
|
-
(0, fixtures_1.expect)(prevBottom).toEqualWithTolerance(nextBottom, 1);
|
|
364
|
-
(0, fixtures_1.expect)(prevTop).toEqualWithTolerance(nextTop, 1);
|
|
365
|
-
}));
|
|
366
|
-
(0, fixtures_1.test)("vertical orientation works with page size selector", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
367
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" orientation="vertical" pageSizeOptions="{[5, 10, 20]}"/>`);
|
|
368
|
-
// Should have vertical class and show page size selector
|
|
369
|
-
const nav = page.locator('nav[aria-label="Pagination"]');
|
|
370
|
-
const prevButton = nav.getByRole("button", { name: "Previous page" });
|
|
371
|
-
const nextButton = nav.getByRole("button", { name: "Next page" });
|
|
372
|
-
const { bottom: prevBottom } = yield (0, component_test_helpers_1.getBounds)(prevButton);
|
|
373
|
-
const { top: nextTop } = yield (0, component_test_helpers_1.getBounds)(nextButton);
|
|
374
|
-
(0, fixtures_1.expect)(prevBottom).toBeLessThan(nextTop);
|
|
375
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).toBeVisible();
|
|
376
|
-
}));
|
|
377
|
-
(0, fixtures_1.test)("applies buttonRowPosition correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
378
|
-
yield initTestBed(`<Pagination
|
|
379
|
-
itemCount="50"
|
|
380
|
-
pageSize="10"
|
|
381
|
-
buttonRowPosition="start"
|
|
382
|
-
pageSizeOptions="{[5, 10, 20]}"
|
|
383
|
-
pageSizeSelectorPosition="end"
|
|
384
|
-
pageInfoPosition="center"
|
|
385
|
-
/>`);
|
|
386
|
-
// Check that pagination controls exist and are rendered
|
|
387
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="pagination-controls"]')).toBeVisible();
|
|
388
|
-
// Check the structure shows proper positioning (buttons should be rendered before page size selector)
|
|
389
|
-
const nav = page.locator('nav[aria-label="Pagination"]');
|
|
390
|
-
yield (0, fixtures_1.expect)(nav).toBeVisible();
|
|
391
|
-
}));
|
|
392
|
-
(0, fixtures_1.test)("applies pageSizeSelectorPosition correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
393
|
-
yield initTestBed(`<Pagination
|
|
394
|
-
itemCount="50"
|
|
395
|
-
pageSize="10"
|
|
396
|
-
buttonRowPosition="center"
|
|
397
|
-
pageSizeOptions="{[5, 10, 20]}"
|
|
398
|
-
pageSizeSelectorPosition="start"
|
|
399
|
-
pageInfoPosition="end"
|
|
400
|
-
/>`);
|
|
401
|
-
// Check that page size selector exists and is rendered
|
|
402
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
|
|
403
|
-
yield (0, fixtures_1.expect)(page.getByText("Items per page")).toBeVisible();
|
|
404
|
-
}));
|
|
405
|
-
(0, fixtures_1.test)("applies pageInfoPosition correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
406
|
-
yield initTestBed(`<Pagination
|
|
407
|
-
itemCount="50"
|
|
408
|
-
pageSize="10"
|
|
409
|
-
buttonRowPosition="start"
|
|
410
|
-
pageSizeSelectorPosition="center"
|
|
411
|
-
pageInfoPosition="end"
|
|
412
|
-
/>`);
|
|
413
|
-
// Check that page info exists and is rendered
|
|
414
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-info"]')).toBeVisible();
|
|
415
|
-
yield (0, fixtures_1.expect)(page.getByText("Page 1 of 5 (50 items)")).toBeVisible();
|
|
416
|
-
}));
|
|
417
|
-
(0, fixtures_1.test)("renders only necessary components based on props", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
418
|
-
yield initTestBed(`<Pagination
|
|
419
|
-
itemCount="50"
|
|
420
|
-
pageSize="10"
|
|
421
|
-
buttonRowPosition="start"
|
|
422
|
-
showPageInfo="false"
|
|
423
|
-
showPageSizeSelector="false"
|
|
424
|
-
/>`);
|
|
425
|
-
// Button row should be rendered
|
|
426
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="pagination-controls"]')).toBeVisible();
|
|
427
|
-
// Page info and size selector should not be rendered
|
|
428
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-info"]')).not.toBeVisible();
|
|
429
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-size-selector-container"]')).not.toBeVisible();
|
|
430
|
-
}));
|
|
431
|
-
(0, fixtures_1.test)("renders multiple components when in different positions", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
432
|
-
yield initTestBed(`<Pagination
|
|
433
|
-
itemCount="50"
|
|
434
|
-
pageSize="10"
|
|
435
|
-
buttonRowPosition="start"
|
|
436
|
-
pageSizeOptions="{[5, 10, 20]}"
|
|
437
|
-
pageSizeSelectorPosition="center"
|
|
438
|
-
pageInfoPosition="end"
|
|
439
|
-
/>`);
|
|
440
|
-
// All components should be rendered
|
|
441
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="pagination-controls"]')).toBeVisible();
|
|
442
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
|
|
443
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-info"]')).toBeVisible();
|
|
444
|
-
}));
|
|
445
|
-
(0, fixtures_1.test)("positions work correctly with vertical orientation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
446
|
-
yield initTestBed(`<Pagination
|
|
447
|
-
itemCount="50"
|
|
448
|
-
pageSize="10"
|
|
449
|
-
orientation="vertical"
|
|
450
|
-
buttonRowPosition="start"
|
|
451
|
-
pageSizeOptions="{[5, 10, 20]}"
|
|
452
|
-
pageSizeSelectorPosition="center"
|
|
453
|
-
pageInfoPosition="end"
|
|
454
|
-
/>`);
|
|
455
|
-
const nav = page.locator('nav[aria-label="Pagination"]');
|
|
456
|
-
yield (0, fixtures_1.expect)(nav).toHaveClass(/paginationVertical/);
|
|
457
|
-
// All components should still be positioned correctly
|
|
458
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="pagination-controls"]')).toBeVisible();
|
|
459
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
|
|
460
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-info"]')).toBeVisible();
|
|
461
|
-
}));
|
|
462
|
-
(0, fixtures_1.test)("grid layout maintains accessibility", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
463
|
-
yield initTestBed(`<Pagination
|
|
464
|
-
itemCount="50"
|
|
465
|
-
pageSize="10"
|
|
466
|
-
buttonRowPosition="center"
|
|
467
|
-
pageSizeOptions="{[5, 10, 20]}"
|
|
468
|
-
pageSizeSelectorPosition="start"
|
|
469
|
-
pageInfoPosition="end"
|
|
470
|
-
/>`);
|
|
471
|
-
// All accessibility features should still work
|
|
472
|
-
const nav = page.getByRole("navigation");
|
|
473
|
-
yield (0, fixtures_1.expect)(nav).toBeVisible();
|
|
474
|
-
yield (0, fixtures_1.expect)(nav).toHaveAttribute("aria-label", "Pagination");
|
|
475
|
-
// The buttons here don't have explicit labels, but they are still targetable because of accessible aria-label props
|
|
476
|
-
yield (0, fixtures_1.expect)(page.getByLabel("First page")).toBeVisible();
|
|
477
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Previous page")).toBeVisible();
|
|
478
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Next page")).toBeVisible();
|
|
479
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Last page")).toBeVisible();
|
|
480
|
-
}));
|
|
481
|
-
});
|
|
482
|
-
// =============================================================================
|
|
483
|
-
// GRID LAYOUT AND POSITIONING TESTS
|
|
484
|
-
// =============================================================================
|
|
485
|
-
fixtures_1.test.describe("Grid Layout and Positioning", () => {
|
|
486
|
-
(0, fixtures_1.test)("default positions work correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
487
|
-
yield initTestBed(`<Pagination
|
|
488
|
-
itemCount="50"
|
|
489
|
-
pageSize="10"
|
|
490
|
-
pageSizeOptions="{[5, 10, 20]}"
|
|
491
|
-
/>`);
|
|
492
|
-
// Default: pageSizeSelectorPosition="start", buttonRowPosition="center", pageInfoPosition="end"
|
|
493
|
-
// All components should be visible with default positioning
|
|
494
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
|
|
495
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="pagination-controls"]')).toBeVisible();
|
|
496
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-info"]')).toBeVisible();
|
|
497
|
-
}));
|
|
498
|
-
(0, fixtures_1.test)("multiple components can be positioned in same location", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
499
|
-
yield initTestBed(`<Pagination
|
|
500
|
-
itemCount="50"
|
|
501
|
-
pageSize="10"
|
|
502
|
-
buttonRowPosition="start"
|
|
503
|
-
pageSizeOptions="{[5, 10, 20]}"
|
|
504
|
-
pageSizeSelectorPosition="start"
|
|
505
|
-
pageInfoPosition="end"
|
|
506
|
-
/>`);
|
|
507
|
-
// Both button row and page size selector should be rendered (both in start position)
|
|
508
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="pagination-controls"]')).toBeVisible();
|
|
509
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
|
|
510
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-info"]')).toBeVisible();
|
|
511
|
-
}));
|
|
512
|
-
(0, fixtures_1.test)("handles invalid position values gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
513
|
-
yield initTestBed(`<Pagination
|
|
514
|
-
itemCount="50"
|
|
515
|
-
pageSize="10"
|
|
516
|
-
buttonRowPosition="invalid"
|
|
517
|
-
pageSizeOptions="{[5, 10, 20]}"
|
|
518
|
-
pageSizeSelectorPosition="invalid"
|
|
519
|
-
pageInfoPosition="invalid"
|
|
520
|
-
/>`);
|
|
521
|
-
// Should still render the nav container even with invalid positions
|
|
522
|
-
const nav = page.locator('nav[aria-label="Pagination"]');
|
|
523
|
-
yield (0, fixtures_1.expect)(nav).toBeVisible();
|
|
524
|
-
// With invalid positions, components may not be placed in slots, but the nav should exist
|
|
525
|
-
// The component should handle this gracefully by either falling back to defaults or not rendering slots
|
|
526
|
-
}));
|
|
527
|
-
(0, fixtures_1.test)("components are not rendered when disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
528
|
-
yield initTestBed(`<Pagination
|
|
529
|
-
itemCount="50"
|
|
530
|
-
pageSize="10"
|
|
531
|
-
buttonRowPosition="center"
|
|
532
|
-
showPageInfo="false"
|
|
533
|
-
showPageSizeSelector="false"
|
|
534
|
-
/>`);
|
|
535
|
-
// Only button row should be rendered
|
|
536
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="pagination-controls"]')).toBeVisible();
|
|
537
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-size-selector-container"]')).not.toBeVisible();
|
|
538
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-info"]')).not.toBeVisible();
|
|
539
|
-
}));
|
|
540
|
-
(0, fixtures_1.test)("grid adapts to content in vertical orientation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
541
|
-
yield initTestBed(`<Pagination
|
|
542
|
-
itemCount="50"
|
|
543
|
-
pageSize="10"
|
|
544
|
-
orientation="vertical"
|
|
545
|
-
buttonRowPosition="start"
|
|
546
|
-
pageSizeOptions="{[5, 10, 20]}"
|
|
547
|
-
pageSizeSelectorPosition="end"
|
|
548
|
-
showPageInfo="false"
|
|
549
|
-
/>`);
|
|
550
|
-
const nav = page.locator('nav[aria-label="Pagination"]');
|
|
551
|
-
yield (0, fixtures_1.expect)(nav).toHaveClass(/paginationVertical/);
|
|
552
|
-
// Should have button row and page size selector
|
|
553
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="pagination-controls"]')).toBeVisible();
|
|
554
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
|
|
555
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-info"]')).not.toBeVisible();
|
|
556
|
-
}));
|
|
557
|
-
(0, fixtures_1.test)("component order reflects positioning", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
558
|
-
yield initTestBed(`<Pagination
|
|
559
|
-
itemCount="50"
|
|
560
|
-
pageSize="10"
|
|
561
|
-
buttonRowPosition="end"
|
|
562
|
-
pageSizeOptions="{[5, 10, 20]}"
|
|
563
|
-
pageSizeSelectorPosition="start"
|
|
564
|
-
pageInfoPosition="center"
|
|
565
|
-
/>`);
|
|
566
|
-
// All components should be rendered
|
|
567
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="pagination-controls"]')).toBeVisible();
|
|
568
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-size-selector-container"]')).toBeVisible();
|
|
569
|
-
yield (0, fixtures_1.expect)(page.locator('[data-component="page-info"]')).toBeVisible();
|
|
570
|
-
}));
|
|
571
|
-
(0, fixtures_1.test)("position properties work with minimal pagination", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
572
|
-
yield initTestBed(`<Pagination
|
|
573
|
-
buttonRowPosition="center"
|
|
574
|
-
hasPrevPage="true"
|
|
575
|
-
hasNextPage="true"
|
|
576
|
-
/>`);
|
|
577
|
-
// Even without itemCount, minimal layout should work
|
|
578
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeVisible();
|
|
579
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next page" })).toBeVisible();
|
|
580
|
-
}));
|
|
581
|
-
});
|
|
582
|
-
// =============================================================================
|
|
583
|
-
// ACCESSIBILITY TESTS
|
|
584
|
-
// =============================================================================
|
|
585
|
-
fixtures_1.test.describe("Accessibility", () => {
|
|
586
|
-
(0, fixtures_1.test)("component container has correct role", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
587
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" />`);
|
|
588
|
-
yield (0, fixtures_1.expect)(page.getByRole("navigation")).toBeVisible();
|
|
589
|
-
}));
|
|
590
|
-
(0, fixtures_1.test)("navigation buttons have correct accessibility attributes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
591
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10"/>`);
|
|
592
|
-
// Check button roles and labels
|
|
593
|
-
yield (0, fixtures_1.expect)(page.getByLabel("First page")).toBeVisible();
|
|
594
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Previous page")).toBeVisible();
|
|
595
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Next page")).toBeVisible();
|
|
596
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Last page")).toBeVisible();
|
|
597
|
-
}));
|
|
598
|
-
(0, fixtures_1.test)("page indicator has correct aria attribute if maxVisiblePages=1", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
599
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" maxVisiblePages="1"/>`);
|
|
600
|
-
yield (0, fixtures_1.expect)(page.getByText("1", { exact: true })).toHaveAttribute("aria-current", "true");
|
|
601
|
-
}));
|
|
602
|
-
(0, fixtures_1.test)("page buttons have correct accessibility attributes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
603
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" maxVisiblePages="5"/>`);
|
|
604
|
-
// Page buttons should have appropriate labels
|
|
605
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Page 1")).toBeVisible();
|
|
606
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Page 2")).toBeVisible();
|
|
607
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Page 3")).toBeVisible();
|
|
608
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Page 4")).toBeVisible();
|
|
609
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Page 5")).toBeVisible();
|
|
610
|
-
}));
|
|
611
|
-
(0, fixtures_1.test)("current page button has correct aria attribute if maxVisiblePages>1", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
612
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" maxVisiblePages="5"/>`);
|
|
613
|
-
yield (0, fixtures_1.expect)(page.getByLabel("Page 1 (current)", { exact: true })).toBeVisible();
|
|
614
|
-
}));
|
|
615
|
-
(0, fixtures_1.test)("disabled buttons are properly marked as disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
616
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageIndex="0"/>`);
|
|
617
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeDisabled();
|
|
618
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeDisabled();
|
|
619
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next page" })).toBeEnabled();
|
|
620
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Last page" })).toBeEnabled();
|
|
621
|
-
}));
|
|
622
|
-
(0, fixtures_1.test)("disabled buttons are properly marked as disabled #2", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
623
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageIndex="5"/>`);
|
|
624
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeEnabled();
|
|
625
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Previous page" })).toBeEnabled();
|
|
626
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next page" })).toBeDisabled();
|
|
627
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Last page" })).toBeDisabled();
|
|
628
|
-
}));
|
|
629
|
-
(0, fixtures_1.test)("buttons are focusable and keyboard navigable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
630
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" maxVisiblePages="3"/>`);
|
|
631
|
-
// Test tab navigation through buttons
|
|
632
|
-
yield page.keyboard.press("Tab");
|
|
633
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 1" })).toBeFocused();
|
|
634
|
-
yield page.keyboard.press("Tab");
|
|
635
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 2" })).toBeFocused();
|
|
636
|
-
}));
|
|
637
|
-
(0, fixtures_1.test)("page size selector is focused when label is clicked", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
638
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" pageSizeOptions="{[5, 10, 20]}"/>`);
|
|
639
|
-
yield page.getByText("Items per page").click();
|
|
640
|
-
yield (0, fixtures_1.expect)(page.locator("select")).toBeFocused();
|
|
641
|
-
}));
|
|
642
|
-
});
|
|
643
|
-
// =============================================================================
|
|
644
|
-
// INTERACTION TESTS
|
|
645
|
-
// =============================================================================
|
|
646
|
-
fixtures_1.test.describe("User Interactions", () => {
|
|
647
|
-
(0, fixtures_1.test)("page button click triggers pageDidChange event", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
648
|
-
const { testStateDriver } = yield initTestBed(`
|
|
649
|
-
<Pagination
|
|
650
|
-
itemCount="50"
|
|
651
|
-
pageSize="10"
|
|
652
|
-
pageIndex="0"
|
|
653
|
-
maxVisiblePages="5"
|
|
654
|
-
onPageDidChange="arg => testState = arg"
|
|
655
|
-
/>
|
|
656
|
-
`);
|
|
657
|
-
yield page.getByRole("button", { name: "Page 3" }).click();
|
|
658
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(2); // 0-based index
|
|
659
|
-
}));
|
|
660
|
-
(0, fixtures_1.test)("next button click triggers pageDidChange event", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
661
|
-
const { testStateDriver } = yield initTestBed(`
|
|
662
|
-
<Pagination
|
|
663
|
-
itemCount="50"
|
|
664
|
-
pageSize="10"
|
|
665
|
-
pageIndex="0"
|
|
666
|
-
onPageDidChange="arg => testState = arg"
|
|
667
|
-
/>
|
|
668
|
-
`);
|
|
669
|
-
yield page.getByRole("button", { name: "Next page" }).click();
|
|
670
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(1);
|
|
671
|
-
}));
|
|
672
|
-
(0, fixtures_1.test)("previous button click triggers pageDidChange event", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
673
|
-
const { testStateDriver } = yield initTestBed(`
|
|
674
|
-
<Pagination
|
|
675
|
-
itemCount="50"
|
|
676
|
-
pageSize="10"
|
|
677
|
-
pageIndex="2"
|
|
678
|
-
onPageDidChange="arg => testState = arg"
|
|
679
|
-
/>
|
|
680
|
-
`);
|
|
681
|
-
yield page.getByRole("button", { name: "Previous page" }).click();
|
|
682
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(1);
|
|
683
|
-
}));
|
|
684
|
-
(0, fixtures_1.test)("first page button click triggers pageDidChange event", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
685
|
-
const { testStateDriver } = yield initTestBed(`
|
|
686
|
-
<Pagination
|
|
687
|
-
itemCount="50"
|
|
688
|
-
pageSize="10"
|
|
689
|
-
pageIndex="3"
|
|
690
|
-
onPageDidChange="arg => testState = arg"
|
|
691
|
-
/>
|
|
692
|
-
`);
|
|
693
|
-
yield page.getByRole("button", { name: "First page" }).click();
|
|
694
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(0);
|
|
695
|
-
}));
|
|
696
|
-
(0, fixtures_1.test)("last page button click triggers pageDidChange event", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
697
|
-
const { testStateDriver } = yield initTestBed(`
|
|
698
|
-
<Pagination
|
|
699
|
-
itemCount="50"
|
|
700
|
-
pageSize="10"
|
|
701
|
-
pageIndex="0"
|
|
702
|
-
onPageDidChange="arg => testState = arg"
|
|
703
|
-
/>
|
|
704
|
-
`);
|
|
705
|
-
yield page.getByRole("button", { name: "Last page" }).click();
|
|
706
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(4); // Last page index
|
|
707
|
-
}));
|
|
708
|
-
(0, fixtures_1.test)("keyboard navigation works on page buttons", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
709
|
-
yield initTestBed(`
|
|
710
|
-
<Pagination
|
|
711
|
-
var.current="0"
|
|
712
|
-
pageIndex="{current}"
|
|
713
|
-
onPageDidChange="(next) => current = next"
|
|
714
|
-
itemCount="50"
|
|
715
|
-
pageSize="10"
|
|
716
|
-
maxVisiblePages="5" />
|
|
717
|
-
`);
|
|
718
|
-
const pageButton = page.getByRole("button", { name: "Page 2" });
|
|
719
|
-
yield pageButton.click();
|
|
720
|
-
// Should navigate to page 2 (button should become active)
|
|
721
|
-
yield (0, fixtures_1.expect)(pageButton).toHaveAttribute("aria-label", "Page 2 (current)");
|
|
722
|
-
yield (0, fixtures_1.expect)(pageButton).toHaveAttribute("aria-current", "true");
|
|
723
|
-
}));
|
|
724
|
-
(0, fixtures_1.test)("space key activates page buttons", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
725
|
-
const { testStateDriver } = yield initTestBed(`
|
|
726
|
-
<Pagination
|
|
727
|
-
itemCount="50"
|
|
728
|
-
pageSize="10"
|
|
729
|
-
pageIndex="0"
|
|
730
|
-
maxVisiblePages="5"
|
|
731
|
-
onPageDidChange="arg => testState = arg"
|
|
732
|
-
/>
|
|
733
|
-
`);
|
|
734
|
-
const pageButton = page.getByRole("button", { name: "Page 3" });
|
|
735
|
-
yield pageButton.focus();
|
|
736
|
-
yield pageButton.press("Space");
|
|
737
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(2);
|
|
738
|
-
}));
|
|
739
|
-
(0, fixtures_1.test)("enter key activates page buttons", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
740
|
-
const { testStateDriver } = yield initTestBed(`
|
|
741
|
-
<Pagination
|
|
742
|
-
itemCount="50"
|
|
743
|
-
pageSize="10"
|
|
744
|
-
pageIndex="0"
|
|
745
|
-
maxVisiblePages="5"
|
|
746
|
-
onPageDidChange="arg => testState = arg"
|
|
747
|
-
/>
|
|
748
|
-
`);
|
|
749
|
-
const pageButton = page.getByRole("button", { name: "Page 3" });
|
|
750
|
-
yield pageButton.focus();
|
|
751
|
-
yield pageButton.press("Enter");
|
|
752
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(2);
|
|
753
|
-
}));
|
|
754
|
-
(0, fixtures_1.test)("pageDidChange fires correctly if itemCount is undefined", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
755
|
-
const { testStateDriver } = yield initTestBed(`
|
|
756
|
-
<Pagination
|
|
757
|
-
itemCount="{undefined}"
|
|
758
|
-
hasNextPage="{true}"
|
|
759
|
-
pageSize="10"
|
|
760
|
-
pageIndex="0"
|
|
761
|
-
onPageDidChange="page => testState = page"
|
|
762
|
-
/>
|
|
763
|
-
`);
|
|
764
|
-
const pageButton = page.getByRole("button", { name: "Next page" });
|
|
765
|
-
yield pageButton.click();
|
|
766
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(1);
|
|
767
|
-
}));
|
|
768
|
-
});
|
|
769
|
-
// =============================================================================
|
|
770
|
-
// API TESTS
|
|
771
|
-
// =============================================================================
|
|
772
|
-
fixtures_1.test.describe("Component APIs", () => {
|
|
773
|
-
(0, fixtures_1.test)("moveFirst API method works correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
774
|
-
const { testStateDriver } = yield initTestBed(`
|
|
775
|
-
<Fragment>
|
|
776
|
-
<Pagination
|
|
777
|
-
id="pagination"
|
|
778
|
-
itemCount="50"
|
|
779
|
-
pageSize="10"
|
|
780
|
-
pageIndex="3"
|
|
781
|
-
onPageDidChange="arg => testState = arg"
|
|
782
|
-
/>
|
|
783
|
-
<Button onClick="pagination.moveFirst()">Move First</Button>
|
|
784
|
-
</Fragment>
|
|
785
|
-
`);
|
|
786
|
-
yield page.getByRole("button", { name: "Move First" }).click();
|
|
787
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(0);
|
|
788
|
-
}));
|
|
789
|
-
(0, fixtures_1.test)("moveLast API method works correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
790
|
-
const { testStateDriver } = yield initTestBed(`
|
|
791
|
-
<Fragment>
|
|
792
|
-
<Pagination
|
|
793
|
-
id="pagination"
|
|
794
|
-
itemCount="50"
|
|
795
|
-
pageSize="10"
|
|
796
|
-
pageIndex="0"
|
|
797
|
-
onPageDidChange="arg => testState = arg"
|
|
798
|
-
/>
|
|
799
|
-
<Button onClick="pagination.moveLast()">Move Last</Button>
|
|
800
|
-
</Fragment>
|
|
801
|
-
`);
|
|
802
|
-
yield page.getByRole("button", { name: "Move Last" }).click();
|
|
803
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(4);
|
|
804
|
-
}));
|
|
805
|
-
(0, fixtures_1.test)("movePrev API method works correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
806
|
-
const { testStateDriver } = yield initTestBed(`
|
|
807
|
-
<Fragment>
|
|
808
|
-
<Pagination
|
|
809
|
-
id="pagination"
|
|
810
|
-
itemCount="50"
|
|
811
|
-
pageSize="10"
|
|
812
|
-
pageIndex="2"
|
|
813
|
-
onPageDidChange="arg => testState = arg"
|
|
814
|
-
/>
|
|
815
|
-
<Button onClick="pagination.movePrev()">Move Previous</Button>
|
|
816
|
-
</Fragment>
|
|
817
|
-
`);
|
|
818
|
-
yield page.getByRole("button", { name: "Move Previous" }).click();
|
|
819
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(1);
|
|
820
|
-
}));
|
|
821
|
-
(0, fixtures_1.test)("moveNext API method works correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
822
|
-
const { testStateDriver } = yield initTestBed(`
|
|
823
|
-
<Fragment>
|
|
824
|
-
<Pagination
|
|
825
|
-
id="pagination"
|
|
826
|
-
itemCount="50"
|
|
827
|
-
pageSize="10"
|
|
828
|
-
pageIndex="1"
|
|
829
|
-
onPageDidChange="arg => testState = arg"
|
|
830
|
-
/>
|
|
831
|
-
<Button onClick="pagination.moveNext()">Move Next</Button>
|
|
832
|
-
</Fragment>
|
|
833
|
-
`);
|
|
834
|
-
yield page.getByRole("button", { name: "Move Next" }).click();
|
|
835
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(2);
|
|
836
|
-
}));
|
|
837
|
-
(0, fixtures_1.test)("currentPage API method returns correct value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
838
|
-
const { testStateDriver } = yield initTestBed(`
|
|
839
|
-
<Fragment>
|
|
840
|
-
<Pagination
|
|
841
|
-
id="pagination"
|
|
842
|
-
itemCount="50"
|
|
843
|
-
pageSize="10"
|
|
844
|
-
pageIndex="2"
|
|
845
|
-
/>
|
|
846
|
-
<Button onClick="testState = pagination.currentPage">Get Current Page</Button>
|
|
847
|
-
</Fragment>
|
|
848
|
-
`);
|
|
849
|
-
yield page.getByRole("button", { name: "Get Current Page" }).click();
|
|
850
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(3); // 1-based page number
|
|
851
|
-
}));
|
|
852
|
-
(0, fixtures_1.test)("currentPageSize API method returns correct value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
853
|
-
const { testStateDriver } = yield initTestBed(`
|
|
854
|
-
<Fragment>
|
|
855
|
-
<Pagination
|
|
856
|
-
id="pagination"
|
|
857
|
-
itemCount="50"
|
|
858
|
-
pageSize="15"
|
|
859
|
-
/>
|
|
860
|
-
<Button onClick="testState = pagination.currentPageSize">Get Page Size</Button>
|
|
861
|
-
</Fragment>
|
|
862
|
-
`);
|
|
863
|
-
yield page.getByRole("button", { name: "Get Page Size" }).click();
|
|
864
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBe(15);
|
|
865
|
-
}));
|
|
866
|
-
(0, fixtures_1.test)("API methods handle boundary conditions correctly (moveFirst, movePrev)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
867
|
-
const { testStateDriver } = yield initTestBed(`
|
|
868
|
-
<Fragment>
|
|
869
|
-
<Pagination
|
|
870
|
-
id="pagination"
|
|
871
|
-
itemCount="50"
|
|
872
|
-
pageSize="10"
|
|
873
|
-
pageIndex="0"
|
|
874
|
-
onPageDidChange="arg => testState = testState == null ? [arg] : [...testState, arg]"
|
|
875
|
-
/>
|
|
876
|
-
<Button onClick="pagination.movePrev()">Move Previous From First</Button>
|
|
877
|
-
<Button onClick="pagination.moveFirst()">Move First From First</Button>
|
|
878
|
-
</Fragment>
|
|
879
|
-
`);
|
|
880
|
-
// Try to move previous from first page - should not trigger event
|
|
881
|
-
yield page.getByRole("button", { name: "Move Previous From First" }).click();
|
|
882
|
-
yield page.getByRole("button", { name: "Move First From First" }).click();
|
|
883
|
-
// Should not have triggered any page changes since we're already on first page
|
|
884
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBeNull();
|
|
885
|
-
}));
|
|
886
|
-
(0, fixtures_1.test)("API methods handle boundary conditions correctly (moveLast, moveNext)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
887
|
-
const { testStateDriver } = yield initTestBed(`
|
|
888
|
-
<Fragment>
|
|
889
|
-
<Pagination
|
|
890
|
-
id="pagination"
|
|
891
|
-
itemCount="50"
|
|
892
|
-
pageSize="10"
|
|
893
|
-
pageIndex="5"
|
|
894
|
-
onPageDidChange="arg => testState = testState == null ? [arg] : [...testState, arg]"
|
|
895
|
-
/>
|
|
896
|
-
<Button onClick="pagination.moveNext()">Move Next From Last</Button>
|
|
897
|
-
<Button onClick="pagination.moveLast()">Move Last From Last</Button>
|
|
898
|
-
</Fragment>
|
|
899
|
-
`);
|
|
900
|
-
// Try to move next from last page - should not trigger event
|
|
901
|
-
yield page.getByRole("button", { name: "Move Next From Last" }).click();
|
|
902
|
-
yield page.getByRole("button", { name: "Move Last From Last" }).click();
|
|
903
|
-
// Should not have triggered any page changes since we're already on last page
|
|
904
|
-
yield fixtures_1.expect.poll(testStateDriver.testState).toBeNull();
|
|
905
|
-
}));
|
|
906
|
-
});
|
|
907
|
-
// =============================================================================
|
|
908
|
-
// OTHER EDGE CASE TESTS
|
|
909
|
-
// =============================================================================
|
|
910
|
-
fixtures_1.test.describe("Other Edge Cases", () => {
|
|
911
|
-
(0, fixtures_1.test)("visible pages adjust correctly when navigating", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
912
|
-
yield initTestBed(`
|
|
913
|
-
<Pagination
|
|
914
|
-
itemCount="100"
|
|
915
|
-
pageSize="10"
|
|
916
|
-
pageIndex="5"
|
|
917
|
-
maxVisiblePages="3"
|
|
918
|
-
/>
|
|
919
|
-
`);
|
|
920
|
-
// Should show pages around current page (page 6: index 5)
|
|
921
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 5" })).toBeVisible();
|
|
922
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 6" })).toBeVisible();
|
|
923
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 7" })).toBeVisible();
|
|
924
|
-
}));
|
|
925
|
-
(0, fixtures_1.test)("visible pages handle edge case near beginning", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
926
|
-
yield initTestBed(`
|
|
927
|
-
<Pagination
|
|
928
|
-
itemCount="100"
|
|
929
|
-
pageSize="10"
|
|
930
|
-
pageIndex="0"
|
|
931
|
-
maxVisiblePages="3"
|
|
932
|
-
/>
|
|
933
|
-
`);
|
|
934
|
-
// Should show first 3 pages when on first page
|
|
935
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 1" })).toBeVisible();
|
|
936
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 2" })).toBeVisible();
|
|
937
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 3" })).toBeVisible();
|
|
938
|
-
}));
|
|
939
|
-
(0, fixtures_1.test)("visible pages handle edge case near end", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
940
|
-
yield initTestBed(`
|
|
941
|
-
<Pagination
|
|
942
|
-
itemCount="100"
|
|
943
|
-
pageSize="10"
|
|
944
|
-
pageIndex="9"
|
|
945
|
-
maxVisiblePages="3"
|
|
946
|
-
/>
|
|
947
|
-
`);
|
|
948
|
-
// Should show last 3 pages when on last page
|
|
949
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 8" })).toBeVisible();
|
|
950
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 9" })).toBeVisible();
|
|
951
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 10" })).toBeVisible();
|
|
952
|
-
}));
|
|
953
|
-
(0, fixtures_1.test)("shows all pages when total pages less than maxVisiblePages", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
|
|
954
|
-
yield initTestBed(`
|
|
955
|
-
<Pagination
|
|
956
|
-
itemCount="30"
|
|
957
|
-
pageSize="10"
|
|
958
|
-
maxVisiblePages="5"
|
|
959
|
-
/>
|
|
960
|
-
`);
|
|
961
|
-
// Should show all 3 pages since 3 < 5
|
|
962
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 1" })).toBeVisible();
|
|
963
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 2" })).toBeVisible();
|
|
964
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 3" })).toBeVisible();
|
|
965
|
-
// Should not show page 4 or 5
|
|
966
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 4" })).not.toBeVisible();
|
|
967
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 5" })).not.toBeVisible();
|
|
968
|
-
}));
|
|
969
|
-
(0, fixtures_1.test)("handles extremely large numbers", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
970
|
-
yield initTestBed(`<Pagination itemCount="9999999" pageSize="1000"/>`);
|
|
971
|
-
// Should handle large numbers without crashing
|
|
972
|
-
yield (0, fixtures_1.expect)(page.getByText(/Page 1 of \d+/)).toBeVisible();
|
|
973
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeVisible();
|
|
974
|
-
}));
|
|
975
|
-
(0, fixtures_1.test)("handles page size larger than item count", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
976
|
-
yield initTestBed(`<Pagination itemCount="5" pageSize="20"/>`);
|
|
977
|
-
// Should show only 1 page when page size exceeds item count
|
|
978
|
-
yield (0, fixtures_1.expect)(page.getByText("Page 1 of 1 (5 items)")).toBeVisible();
|
|
979
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeDisabled();
|
|
980
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Last page" })).toBeDisabled();
|
|
981
|
-
}));
|
|
982
|
-
(0, fixtures_1.test)("handles pageIndex beyond valid range", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
983
|
-
yield initTestBed(`<Pagination itemCount="30" pageSize="10" pageIndex="999"/>`);
|
|
984
|
-
// Should clamp to valid range - last page should be shown
|
|
985
|
-
yield (0, fixtures_1.expect)(page.getByText("Page 3 of 3 (30 items)")).toBeVisible();
|
|
986
|
-
}));
|
|
987
|
-
(0, fixtures_1.test)("handles maxVisiblePages of 1 correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
988
|
-
yield initTestBed(`<Pagination itemCount="50" pageSize="10" maxVisiblePages="1"/>`);
|
|
989
|
-
// Should show only current page as text, not as button
|
|
990
|
-
yield (0, fixtures_1.expect)(page.getByText("1", { exact: true })).toBeVisible();
|
|
991
|
-
// Should still show navigation buttons
|
|
992
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "First page" })).toBeVisible();
|
|
993
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Next page" })).toBeVisible();
|
|
994
|
-
}));
|
|
995
|
-
(0, fixtures_1.test)("handles maxVisiblePages larger than total pages", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
996
|
-
yield initTestBed(`<Pagination itemCount="20" pageSize="10" maxVisiblePages="10"/>`);
|
|
997
|
-
// Invalid maxVisiblePages (10) should fall back to default (1)
|
|
998
|
-
// With maxVisiblePages=1, should show current page as text, not buttons
|
|
999
|
-
yield (0, fixtures_1.expect)(page.getByText("1", { exact: true })).toBeVisible();
|
|
1000
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 1" })).not.toBeVisible();
|
|
1001
|
-
yield (0, fixtures_1.expect)(page.getByRole("button", { name: "Page 2" })).not.toBeVisible();
|
|
1002
|
-
}));
|
|
1003
|
-
(0, fixtures_1.test)("works correctly with fractional page calculations", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
1004
|
-
yield initTestBed(`<Pagination itemCount="17" pageSize="5"/>`);
|
|
1005
|
-
// 17 items / 5 per page = 3.4 -> should round up to 4 pages
|
|
1006
|
-
yield (0, fixtures_1.expect)(page.getByText("Page 1 of 4 (17 items)")).toBeVisible();
|
|
1007
|
-
}));
|
|
1008
|
-
});
|