xmlui 0.11.3 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/index.cjs +8836 -0
- package/dist/bin/index.js +8825 -0
- package/dist/lib/{apiInterceptorWorker-QiltRtq1.js → apiInterceptorWorker-dwrAyq6l.js} +126 -151
- package/dist/lib/{index-DSUDwtWN.js → index-x4orhWfi.js} +2054 -2285
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-DdH1iCH-.js → initMock-DrUirixi.js} +19 -22
- package/dist/lib/language-server-web-worker.js +13 -5
- package/dist/lib/language-server.js +11 -3
- package/dist/lib/{metadata-utils-D27cn-XB.js → metadata-utils-2bsMr4Gd.js} +57 -26
- package/dist/lib/{server-common-hq0poDwA.js → server-common-DI3W4cob.js} +4140 -3741
- package/dist/lib/syntax-textmate.js +8 -2472
- package/dist/lib/testing.d.ts +1 -0
- package/dist/lib/testing.js +20 -23
- package/dist/lib/{transform-Tooy42EB.js → transform-CQ_6R-43.js} +174 -127
- package/dist/lib/vite-xmlui-plugin.d.ts +10 -0
- package/dist/lib/vite-xmlui-plugin.js +8316 -0
- package/dist/lib/{xmlui-parser-BZZ430Wm.js → xmlui-parser-CW8YmGjO.js} +10 -11
- package/dist/lib/xmlui-parser.d.ts +2 -0
- package/dist/lib/xmlui-parser.js +2 -2
- package/dist/lib/{xmlui-serializer-D9D2mQ8m.js → xmlui-serializer-CeCcgdVR.js} +19 -19
- package/dist/lib/xmlui.d.ts +124 -2
- package/dist/lib/xmlui.js +8 -3
- package/dist/metadata/{apiInterceptorWorker-Dql7QGw2.js → apiInterceptorWorker-Wgm2_zjg.js} +124 -149
- package/dist/metadata/{collectedComponentMetadata-C8Lr9TFe.js → collectedComponentMetadata-BGdap_gu.js} +2100 -2276
- package/dist/metadata/{initMock-CWwgOjW_.js → initMock-DlJ0S4Uy.js} +19 -22
- package/dist/metadata/xmlui-metadata.css +1 -0
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +175 -4
- package/dist/standalone/xmlui-standalone.umd.js +36 -37
- package/package.json +20 -50
- package/dist/lib/vite-xmlui-plugin/index.js +0 -13968
- package/dist/lib/vite-xmlui-plugin/package.json +0 -3
- package/dist/metadata/style.css +0 -1
- package/dist/scripts/bin/bootstrap.cjs +0 -4
- package/dist/scripts/bin/build-lib.js +0 -126
- package/dist/scripts/bin/build.js +0 -266
- package/dist/scripts/bin/index.js +0 -167
- package/dist/scripts/bin/preview.js +0 -44
- package/dist/scripts/bin/start.js +0 -52
- package/dist/scripts/bin/vite-xmlui-plugin.js +0 -109
- package/dist/scripts/bin/viteConfig.js +0 -144
- package/dist/scripts/package.json +0 -285
- package/dist/scripts/src/abstractions/ActionDefs.js +0 -2
- package/dist/scripts/src/abstractions/AppContextDefs.js +0 -4
- package/dist/scripts/src/abstractions/ComponentDefs.js +0 -2
- package/dist/scripts/src/abstractions/ContainerDefs.js +0 -2
- package/dist/scripts/src/abstractions/ExtensionDefs.js +0 -2
- package/dist/scripts/src/abstractions/FunctionDefs.js +0 -2
- package/dist/scripts/src/abstractions/RendererDefs.js +0 -2
- package/dist/scripts/src/abstractions/ThemingDefs.js +0 -2
- package/dist/scripts/src/abstractions/scripting/BlockScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Compilation.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LogicalThread.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LoopScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/ScriptParserError.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Token.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScopeExp.js +0 -2
- package/dist/scripts/src/abstractions/scripting/modules.js +0 -2
- package/dist/scripts/src/components/APICall/APICall.js +0 -130
- package/dist/scripts/src/components/APICall/APICall.spec.js +0 -910
- package/dist/scripts/src/components/APICall/APICallNative.js +0 -36
- package/dist/scripts/src/components/Accordion/Accordion.js +0 -97
- package/dist/scripts/src/components/Accordion/Accordion.spec.js +0 -969
- package/dist/scripts/src/components/Accordion/AccordionContext.js +0 -20
- package/dist/scripts/src/components/Accordion/AccordionItem.js +0 -35
- package/dist/scripts/src/components/Accordion/AccordionItemNative.js +0 -95
- package/dist/scripts/src/components/Accordion/AccordionNative.js +0 -141
- package/dist/scripts/src/components/Animation/AnimationNative.js +0 -263
- package/dist/scripts/src/components/App/App.js +0 -581
- package/dist/scripts/src/components/App/App.spec.js +0 -331
- package/dist/scripts/src/components/App/AppLayoutContext.js +0 -49
- package/dist/scripts/src/components/App/AppNative.js +0 -308
- package/dist/scripts/src/components/App/AppStateContext.js +0 -9
- package/dist/scripts/src/components/App/IndexerContext.js +0 -44
- package/dist/scripts/src/components/App/LinkInfoContext.js +0 -9
- package/dist/scripts/src/components/App/SearchContext.js +0 -35
- package/dist/scripts/src/components/App/Sheet.js +0 -99
- package/dist/scripts/src/components/AppHeader/AppHeader.js +0 -58
- package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +0 -169
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +0 -72
- package/dist/scripts/src/components/AppState/AppState.js +0 -75
- package/dist/scripts/src/components/AppState/AppState.spec.js +0 -292
- package/dist/scripts/src/components/AppState/AppStateNative.js +0 -51
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +0 -109
- package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +0 -433
- package/dist/scripts/src/components/AutoComplete/AutoCompleteContext.js +0 -19
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +0 -498
- package/dist/scripts/src/components/Avatar/Avatar.js +0 -55
- package/dist/scripts/src/components/Avatar/Avatar.spec.js +0 -1514
- package/dist/scripts/src/components/Avatar/AvatarNative.js +0 -58
- package/dist/scripts/src/components/Backdrop/Backdrop.js +0 -40
- package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +0 -131
- package/dist/scripts/src/components/Backdrop/BackdropNative.js +0 -25
- package/dist/scripts/src/components/Badge/Badge.js +0 -81
- package/dist/scripts/src/components/Badge/Badge.spec.js +0 -2214
- package/dist/scripts/src/components/Badge/BadgeNative.js +0 -46
- package/dist/scripts/src/components/Bookmark/Bookmark.js +0 -48
- package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +0 -230
- package/dist/scripts/src/components/Bookmark/BookmarkNative.js +0 -55
- package/dist/scripts/src/components/Breakout/Breakout.js +0 -17
- package/dist/scripts/src/components/Breakout/Breakout.spec.js +0 -56
- package/dist/scripts/src/components/Breakout/BreakoutNative.js +0 -24
- package/dist/scripts/src/components/Button/Button-style.spec.js +0 -274
- package/dist/scripts/src/components/Button/Button.js +0 -171
- package/dist/scripts/src/components/Button/Button.spec.js +0 -425
- package/dist/scripts/src/components/Button/ButtonNative.js +0 -109
- package/dist/scripts/src/components/Card/Card.js +0 -89
- package/dist/scripts/src/components/Card/Card.spec.js +0 -150
- package/dist/scripts/src/components/Card/CardNative.js +0 -41
- package/dist/scripts/src/components/Carousel/Carousel.js +0 -133
- package/dist/scripts/src/components/Carousel/Carousel.spec.js +0 -557
- package/dist/scripts/src/components/Carousel/CarouselContext.js +0 -57
- package/dist/scripts/src/components/Carousel/CarouselItem.js +0 -15
- package/dist/scripts/src/components/Carousel/CarouselItemNative.js +0 -40
- package/dist/scripts/src/components/Carousel/CarouselNative.js +0 -195
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +0 -34
- package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +0 -169
- package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +0 -30
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.js +0 -92
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +0 -999
- package/dist/scripts/src/components/Charts/AreaChart/AreaChartNative.js +0 -127
- package/dist/scripts/src/components/Charts/BarChart/BarChart.js +0 -97
- package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +0 -597
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +0 -317
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +0 -60
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +0 -608
- package/dist/scripts/src/components/Charts/LabelList/LabelList.js +0 -41
- package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +0 -539
- package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +0 -25
- package/dist/scripts/src/components/Charts/Legend/Legend.js +0 -33
- package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +0 -558
- package/dist/scripts/src/components/Charts/Legend/LegendNative.js +0 -64
- package/dist/scripts/src/components/Charts/LineChart/LineChart.js +0 -94
- package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +0 -450
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +0 -192
- package/dist/scripts/src/components/Charts/PieChart/PieChart.js +0 -64
- package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +0 -584
- package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +0 -167
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.js +0 -92
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +0 -571
- package/dist/scripts/src/components/Charts/RadarChart/RadarChartNative.js +0 -125
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.js +0 -27
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +0 -451
- package/dist/scripts/src/components/Charts/utils/ChartProvider.js +0 -65
- package/dist/scripts/src/components/Charts/utils/abstractions.js +0 -26
- package/dist/scripts/src/components/Checkbox/Checkbox.js +0 -81
- package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +0 -969
- package/dist/scripts/src/components/CodeBlock/CodeBlock.js +0 -42
- package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +0 -196
- package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +0 -127
- package/dist/scripts/src/components/CodeBlock/highlight-code.js +0 -273
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +0 -54
- package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +0 -312
- package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +0 -86
- package/dist/scripts/src/components/Column/Column.js +0 -89
- package/dist/scripts/src/components/Column/ColumnNative.js +0 -49
- package/dist/scripts/src/components/Column/TableContext.js +0 -12
- package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/ComponentProvider.js +0 -811
- package/dist/scripts/src/components/ComponentRegistryContext.js +0 -44
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +0 -51
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +0 -531
- package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +0 -31
- package/dist/scripts/src/components/DataSource/DataSource.js +0 -124
- package/dist/scripts/src/components/DateInput/DateInput.js +0 -197
- package/dist/scripts/src/components/DateInput/DateInput.spec.js +0 -952
- package/dist/scripts/src/components/DateInput/DateInputNative.js +0 -734
- package/dist/scripts/src/components/DatePicker/DatePicker.js +0 -146
- package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +0 -394
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +0 -326
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +0 -196
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +0 -331
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +0 -146
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +0 -26
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +0 -29
- package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +0 -71
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +0 -101
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +0 -435
- package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +0 -109
- package/dist/scripts/src/components/FileInput/FileInput.js +0 -80
- package/dist/scripts/src/components/FileInput/FileInput.spec.js +0 -285
- package/dist/scripts/src/components/FileInput/FileInputNative.js +0 -161
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +0 -58
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +0 -296
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +0 -134
- package/dist/scripts/src/components/FlowLayout/FlowLayout.js +0 -65
- package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +0 -518
- package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +0 -153
- package/dist/scripts/src/components/Footer/Footer.js +0 -45
- package/dist/scripts/src/components/Footer/Footer.spec.js +0 -991
- package/dist/scripts/src/components/Footer/FooterNative.js +0 -35
- package/dist/scripts/src/components/Form/Form.js +0 -161
- package/dist/scripts/src/components/Form/Form.spec.js +0 -1719
- package/dist/scripts/src/components/Form/FormContext.js +0 -124
- package/dist/scripts/src/components/Form/FormNative.js +0 -463
- package/dist/scripts/src/components/Form/formActions.js +0 -115
- package/dist/scripts/src/components/FormItem/FormItem.js +0 -231
- package/dist/scripts/src/components/FormItem/FormItem.spec.js +0 -1022
- package/dist/scripts/src/components/FormItem/FormItemNative.js +0 -255
- package/dist/scripts/src/components/FormItem/HelperText.js +0 -27
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +0 -52
- package/dist/scripts/src/components/FormItem/Validations.js +0 -389
- package/dist/scripts/src/components/FormSection/FormSection.js +0 -56
- package/dist/scripts/src/components/Fragment/Fragment.js +0 -24
- package/dist/scripts/src/components/Fragment/Fragment.spec.js +0 -50
- package/dist/scripts/src/components/Heading/H1.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H2.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H3.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H4.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H5.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H6.spec.js +0 -66
- package/dist/scripts/src/components/Heading/Heading.js +0 -396
- package/dist/scripts/src/components/Heading/Heading.spec.js +0 -966
- package/dist/scripts/src/components/Heading/HeadingNative.js +0 -98
- package/dist/scripts/src/components/Heading/abstractions.js +0 -4
- package/dist/scripts/src/components/HoverCard/HoverCard.js +0 -18
- package/dist/scripts/src/components/HoverCard/HovercardNative.js +0 -44
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +0 -1441
- package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +0 -69
- package/dist/scripts/src/components/IFrame/IFrame.js +0 -77
- package/dist/scripts/src/components/IFrame/IFrame.spec.js +0 -527
- package/dist/scripts/src/components/IFrame/IFrameNative.js +0 -46
- package/dist/scripts/src/components/Icon/AdmonitionDanger.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionInfo.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionNote.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionTip.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionWarning.js +0 -10
- package/dist/scripts/src/components/Icon/ApiIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ArrowDropDown.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowDropUp.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowLeft.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowRight.js +0 -11
- package/dist/scripts/src/components/Icon/Attach.js +0 -10
- package/dist/scripts/src/components/Icon/Binding.js +0 -11
- package/dist/scripts/src/components/Icon/BoardIcon.js +0 -7
- package/dist/scripts/src/components/Icon/BoxIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CheckIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronDownIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronLeft.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronRight.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronUpIcon.js +0 -7
- package/dist/scripts/src/components/Icon/CodeFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CodeSandbox.js +0 -10
- package/dist/scripts/src/components/Icon/CompactListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ContentCopyIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DarkToLightIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DatabaseIcon.js +0 -11
- package/dist/scripts/src/components/Icon/DocFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DocIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DotMenuHorizontalIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DotMenuIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmailIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmptyFolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ErrorIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ExpressionIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FillPlusCricleIcon.js +0 -7
- package/dist/scripts/src/components/Icon/FilterIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/GlobeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HomeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HyperLinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/Icon.js +0 -42
- package/dist/scripts/src/components/Icon/Icon.spec.js +0 -527
- package/dist/scripts/src/components/Icon/IconNative.js +0 -127
- package/dist/scripts/src/components/Icon/ImageFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/Inspect.js +0 -10
- package/dist/scripts/src/components/Icon/LightToDark.js +0 -10
- package/dist/scripts/src/components/Icon/LinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/LooseListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/MoonIcon.js +0 -10
- package/dist/scripts/src/components/Icon/MoreOptionsIcon.js +0 -7
- package/dist/scripts/src/components/Icon/NoSortIcon.js +0 -8
- package/dist/scripts/src/components/Icon/PDFIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PenIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhoneIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhotoIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PlusIcon.js +0 -7
- package/dist/scripts/src/components/Icon/SearchIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ShareIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SortAscendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/SortDescendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/StarsIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SunIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrashIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrendingDownIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingLevelIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingUpIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TxtIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnknownFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnlinkIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UserIcon.js +0 -7
- package/dist/scripts/src/components/Icon/WarningIcon.js +0 -7
- package/dist/scripts/src/components/Icon/XlsIcon.js +0 -10
- package/dist/scripts/src/components/IconProvider.js +0 -300
- package/dist/scripts/src/components/IconRegistryContext.js +0 -318
- package/dist/scripts/src/components/Image/Image.js +0 -52
- package/dist/scripts/src/components/Image/Image.spec.js +0 -198
- package/dist/scripts/src/components/Image/ImageNative.js +0 -73
- package/dist/scripts/src/components/Input/InputAdornment.js +0 -28
- package/dist/scripts/src/components/Input/InputDivider.js +0 -35
- package/dist/scripts/src/components/Input/InputLabel.js +0 -25
- package/dist/scripts/src/components/Input/PartialInput.js +0 -155
- package/dist/scripts/src/components/Input/index.js +0 -5
- package/dist/scripts/src/components/InspectButton/InspectButton.js +0 -35
- package/dist/scripts/src/components/Items/Items.js +0 -39
- package/dist/scripts/src/components/Items/Items.spec.js +0 -397
- package/dist/scripts/src/components/Items/ItemsNative.js +0 -33
- package/dist/scripts/src/components/Link/Link.js +0 -82
- package/dist/scripts/src/components/Link/Link.spec.js +0 -894
- package/dist/scripts/src/components/Link/LinkNative.js +0 -48
- package/dist/scripts/src/components/List/List.js +0 -130
- package/dist/scripts/src/components/List/List.spec.js +0 -927
- package/dist/scripts/src/components/List/ListNative.js +0 -433
- package/dist/scripts/src/components/List/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Logo/Logo.js +0 -30
- package/dist/scripts/src/components/Logo/LogoNative.js +0 -32
- package/dist/scripts/src/components/Markdown/CodeText.js +0 -38
- package/dist/scripts/src/components/Markdown/Markdown.js +0 -143
- package/dist/scripts/src/components/Markdown/Markdown.spec.js +0 -188
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +0 -476
- package/dist/scripts/src/components/Markdown/parse-binding-expr.js +0 -60
- package/dist/scripts/src/components/Markdown/utils.js +0 -389
- package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +0 -111
- package/dist/scripts/src/components/ModalDialog/Dialog.js +0 -20
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +0 -83
- package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +0 -181
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +0 -217
- package/dist/scripts/src/components/ModalDialog/ModalVisibilityContext.js +0 -60
- package/dist/scripts/src/components/NavGroup/NavGroup.js +0 -70
- package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +0 -304
- package/dist/scripts/src/components/NavGroup/NavGroupContext.js +0 -13
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +0 -133
- package/dist/scripts/src/components/NavLink/NavLink.js +0 -86
- package/dist/scripts/src/components/NavLink/NavLink.spec.js +0 -864
- package/dist/scripts/src/components/NavLink/NavLinkNative.js +0 -73
- package/dist/scripts/src/components/NavPanel/NavPanel.js +0 -53
- package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +0 -864
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +0 -222
- package/dist/scripts/src/components/NestedApp/AppWithCodeView.js +0 -91
- package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +0 -84
- package/dist/scripts/src/components/NestedApp/NestedApp.js +0 -86
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +0 -231
- package/dist/scripts/src/components/NestedApp/Tooltip.js +0 -46
- package/dist/scripts/src/components/NestedApp/defaultProps.js +0 -12
- package/dist/scripts/src/components/NestedApp/utils.js +0 -67
- package/dist/scripts/src/components/NoResult/NoResult.js +0 -46
- package/dist/scripts/src/components/NoResult/NoResult.spec.js +0 -863
- package/dist/scripts/src/components/NoResult/NoResultNative.js +0 -31
- package/dist/scripts/src/components/NumberBox/NumberBox.js +0 -123
- package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +0 -954
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +0 -513
- package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +0 -109
- package/dist/scripts/src/components/Option/Option.js +0 -44
- package/dist/scripts/src/components/Option/Option.spec.js +0 -474
- package/dist/scripts/src/components/Option/OptionNative.js +0 -29
- package/dist/scripts/src/components/Option/OptionTypeProvider.js +0 -16
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +0 -13
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +0 -22
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +0 -80
- package/dist/scripts/src/components/Pages/Pages.js +0 -54
- package/dist/scripts/src/components/Pages/PagesNative.js +0 -57
- package/dist/scripts/src/components/Pagination/Pagination.js +0 -107
- package/dist/scripts/src/components/Pagination/Pagination.spec.js +0 -1008
- package/dist/scripts/src/components/Pagination/PaginationNative.js +0 -157
- package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +0 -24
- package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +0 -14
- package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +0 -20
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +0 -38
- package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +0 -166
- package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +0 -28
- package/dist/scripts/src/components/Queue/Queue.js +0 -85
- package/dist/scripts/src/components/Queue/Queue.spec.js +0 -624
- package/dist/scripts/src/components/Queue/QueueNative.js +0 -342
- package/dist/scripts/src/components/Queue/queueActions.js +0 -87
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +0 -61
- package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +0 -488
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +0 -158
- package/dist/scripts/src/components/RadioGroup/RadioItem.js +0 -28
- package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +0 -62
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +0 -24
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +0 -135
- package/dist/scripts/src/components/Redirect/Redirect.js +0 -31
- package/dist/scripts/src/components/Redirect/Redirect.spec.js +0 -527
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.js +0 -60
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +0 -76
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBarNative.js +0 -313
- package/dist/scripts/src/components/Select/HiddenOption.js +0 -20
- package/dist/scripts/src/components/Select/OptionContext.js +0 -12
- package/dist/scripts/src/components/Select/Select.js +0 -131
- package/dist/scripts/src/components/Select/Select.spec.js +0 -671
- package/dist/scripts/src/components/Select/SelectContext.js +0 -16
- package/dist/scripts/src/components/Select/SelectNative.js +0 -440
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +0 -25
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +0 -103
- package/dist/scripts/src/components/Slider/Slider.js +0 -115
- package/dist/scripts/src/components/Slider/Slider.spec.js +0 -643
- package/dist/scripts/src/components/Slider/SliderNative.js +0 -237
- package/dist/scripts/src/components/Slot/Slot.js +0 -17
- package/dist/scripts/src/components/Slot/Slot.spec.js +0 -368
- package/dist/scripts/src/components/SlotItem.js +0 -32
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +0 -20
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +0 -184
- package/dist/scripts/src/components/SpaceFiller/SpaceFillerNative.js +0 -10
- package/dist/scripts/src/components/Spinner/Spinner.js +0 -39
- package/dist/scripts/src/components/Spinner/Spinner.spec.js +0 -161
- package/dist/scripts/src/components/Spinner/SpinnerNative.js +0 -48
- package/dist/scripts/src/components/Splitter/HSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/Splitter.js +0 -114
- package/dist/scripts/src/components/Splitter/Splitter.spec.js +0 -631
- package/dist/scripts/src/components/Splitter/SplitterNative.js +0 -203
- package/dist/scripts/src/components/Splitter/VSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/utils.js +0 -22
- package/dist/scripts/src/components/Stack/CHStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/CVStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/HStack.spec.js +0 -67
- package/dist/scripts/src/components/Stack/Stack.js +0 -156
- package/dist/scripts/src/components/Stack/Stack.spec.js +0 -654
- package/dist/scripts/src/components/Stack/StackNative.js +0 -45
- package/dist/scripts/src/components/Stack/VStack.spec.js +0 -67
- package/dist/scripts/src/components/StickyBox/StickyBox.js +0 -34
- package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +0 -42
- package/dist/scripts/src/components/Switch/Switch.js +0 -80
- package/dist/scripts/src/components/Switch/Switch.spec.js +0 -836
- package/dist/scripts/src/components/Table/Table.js +0 -268
- package/dist/scripts/src/components/Table/Table.spec.js +0 -827
- package/dist/scripts/src/components/Table/TableNative.js +0 -670
- package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Table/useRowSelection.js +0 -454
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +0 -76
- package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +0 -838
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +0 -81
- package/dist/scripts/src/components/Tabs/TabContext.js +0 -58
- package/dist/scripts/src/components/Tabs/TabItem.js +0 -44
- package/dist/scripts/src/components/Tabs/TabItemNative.js +0 -53
- package/dist/scripts/src/components/Tabs/Tabs.js +0 -95
- package/dist/scripts/src/components/Tabs/Tabs.spec.js +0 -1237
- package/dist/scripts/src/components/Tabs/TabsNative.js +0 -137
- package/dist/scripts/src/components/Text/Text.js +0 -181
- package/dist/scripts/src/components/Text/Text.spec.js +0 -1676
- package/dist/scripts/src/components/Text/TextNative.js +0 -244
- package/dist/scripts/src/components/TextArea/TextArea.js +0 -103
- package/dist/scripts/src/components/TextArea/TextArea.spec.js +0 -794
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +0 -196
- package/dist/scripts/src/components/TextArea/TextAreaResizable.js +0 -73
- package/dist/scripts/src/components/TextArea/useComposedRef.js +0 -60
- package/dist/scripts/src/components/TextBox/TextBox.js +0 -131
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +0 -725
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +0 -142
- package/dist/scripts/src/components/Theme/NotificationToast.js +0 -64
- package/dist/scripts/src/components/Theme/Theme.js +0 -47
- package/dist/scripts/src/components/Theme/Theme.spec.js +0 -390
- package/dist/scripts/src/components/Theme/ThemeNative.js +0 -162
- package/dist/scripts/src/components/TimeInput/TimeInput.js +0 -149
- package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +0 -1160
- package/dist/scripts/src/components/TimeInput/TimeInputNative.js +0 -650
- package/dist/scripts/src/components/TimeInput/utils.js +0 -197
- package/dist/scripts/src/components/Timer/Timer.js +0 -62
- package/dist/scripts/src/components/Timer/Timer.spec.js +0 -328
- package/dist/scripts/src/components/Timer/TimerNative.js +0 -178
- package/dist/scripts/src/components/Toggle/Toggle.js +0 -172
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +0 -63
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +0 -414
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.js +0 -51
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +0 -89
- package/dist/scripts/src/components/ToneSwitch/ToneSwitchNative.js +0 -42
- package/dist/scripts/src/components/Tooltip/Tooltip.js +0 -118
- package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +0 -418
- package/dist/scripts/src/components/Tooltip/TooltipNative.js +0 -160
- package/dist/scripts/src/components/Tree/Tree-dynamic.spec.js +0 -2894
- package/dist/scripts/src/components/Tree/Tree-icons.spec.js +0 -206
- package/dist/scripts/src/components/Tree/Tree.spec.js +0 -2839
- package/dist/scripts/src/components/Tree/TreeComponent.js +0 -324
- package/dist/scripts/src/components/Tree/TreeNative.js +0 -1129
- package/dist/scripts/src/components/Tree/testData.js +0 -296
- package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +0 -49
- package/dist/scripts/src/components/TreeDisplay/TreeDisplayNative.js +0 -104
- package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +0 -64
- package/dist/scripts/src/components/VisuallyHidden.js +0 -21
- package/dist/scripts/src/components/abstractions.js +0 -341
- package/dist/scripts/src/components/chart-color-schemes.js +0 -43
- package/dist/scripts/src/components/collectedComponentMetadata.js +0 -316
- package/dist/scripts/src/components/component-utils.js +0 -29
- package/dist/scripts/src/components/container-helpers.js +0 -26
- package/dist/scripts/src/components/metadata-helpers.js +0 -269
- package/dist/scripts/src/components-core/ApiBoundComponent.js +0 -227
- package/dist/scripts/src/components-core/AppContext.js +0 -16
- package/dist/scripts/src/components-core/ComponentDecorator.js +0 -74
- package/dist/scripts/src/components-core/ComponentViewer.js +0 -69
- package/dist/scripts/src/components-core/CompoundComponent.js +0 -145
- package/dist/scripts/src/components-core/DebugViewProvider.js +0 -43
- package/dist/scripts/src/components-core/EngineError.js +0 -91
- package/dist/scripts/src/components-core/InspectorContext.js +0 -248
- package/dist/scripts/src/components-core/LoaderComponent.js +0 -109
- package/dist/scripts/src/components-core/RestApiProxy.js +0 -468
- package/dist/scripts/src/components-core/StandaloneApp.js +0 -821
- package/dist/scripts/src/components-core/StandaloneExtensionManager.js +0 -44
- package/dist/scripts/src/components-core/TableOfContentsContext.js +0 -168
- package/dist/scripts/src/components-core/abstractions/ComponentRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/LoaderRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
- package/dist/scripts/src/components-core/abstractions/treeAbstractions.js +0 -2
- package/dist/scripts/src/components-core/action/APICall.js +0 -284
- package/dist/scripts/src/components-core/action/FileDownloadAction.js +0 -80
- package/dist/scripts/src/components-core/action/FileUploadAction.js +0 -88
- package/dist/scripts/src/components-core/action/NavigateAction.js +0 -20
- package/dist/scripts/src/components-core/action/TimedAction.js +0 -21
- package/dist/scripts/src/components-core/action/actions.js +0 -15
- package/dist/scripts/src/components-core/appContext/date-functions.js +0 -24
- package/dist/scripts/src/components-core/appContext/math-function.js +0 -27
- package/dist/scripts/src/components-core/appContext/misc-utils.js +0 -14
- package/dist/scripts/src/components-core/behaviors/Behavior.js +0 -2
- package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +0 -200
- package/dist/scripts/src/components-core/component-hooks.js +0 -25
- package/dist/scripts/src/components-core/constants.js +0 -18
- package/dist/scripts/src/components-core/descriptorHelper.js +0 -96
- package/dist/scripts/src/components-core/devtools/InspectorDialog.js +0 -135
- package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +0 -8
- package/dist/scripts/src/components-core/event-handlers.js +0 -46
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +0 -247
- package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +0 -167
- package/dist/scripts/src/components-core/interception/Backend.js +0 -141
- package/dist/scripts/src/components-core/interception/Errors.js +0 -129
- package/dist/scripts/src/components-core/interception/InMemoryDb.js +0 -41
- package/dist/scripts/src/components-core/interception/IndexedDb.js +0 -205
- package/dist/scripts/src/components-core/interception/ReadonlyCollection.js +0 -145
- package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
- package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +0 -44
- package/dist/scripts/src/components-core/interception/initMock.js +0 -20
- package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +0 -9
- package/dist/scripts/src/components-core/loader/ApiLoader.js +0 -54
- package/dist/scripts/src/components-core/loader/DataLoader.js +0 -330
- package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +0 -60
- package/dist/scripts/src/components-core/loader/Loader.js +0 -159
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +0 -43
- package/dist/scripts/src/components-core/loader/PageableLoader.js +0 -272
- package/dist/scripts/src/components-core/markup-check.js +0 -279
- package/dist/scripts/src/components-core/parts.js +0 -11
- package/dist/scripts/src/components-core/renderers.js +0 -76
- package/dist/scripts/src/components-core/rendering/AppContent.js +0 -400
- package/dist/scripts/src/components-core/rendering/AppRoot.js +0 -87
- package/dist/scripts/src/components-core/rendering/AppWrapper.js +0 -49
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +0 -380
- package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +0 -166
- package/dist/scripts/src/components-core/rendering/Container.js +0 -621
- package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +0 -94
- package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +0 -65
- package/dist/scripts/src/components-core/rendering/InvalidComponent.js +0 -17
- package/dist/scripts/src/components-core/rendering/StandaloneComponent.js +0 -39
- package/dist/scripts/src/components-core/rendering/StateContainer.js +0 -350
- package/dist/scripts/src/components-core/rendering/UnknownComponent.js +0 -15
- package/dist/scripts/src/components-core/rendering/buildProxy.js +0 -58
- package/dist/scripts/src/components-core/rendering/collectFnVarDeps.js +0 -49
- package/dist/scripts/src/components-core/rendering/containers.js +0 -19
- package/dist/scripts/src/components-core/rendering/nodeUtils.js +0 -6
- package/dist/scripts/src/components-core/rendering/reducer.js +0 -160
- package/dist/scripts/src/components-core/rendering/renderChild.js +0 -82
- package/dist/scripts/src/components-core/rendering/valueExtractor.js +0 -216
- package/dist/scripts/src/components-core/reportEngineError.js +0 -62
- package/dist/scripts/src/components-core/script-runner/AttributeValueParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/BindingTreeEvaluationContext.js +0 -33
- package/dist/scripts/src/components-core/script-runner/ParameterParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/ScriptingSourceTree.js +0 -45
- package/dist/scripts/src/components-core/script-runner/asyncProxy.js +0 -96
- package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +0 -34
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +0 -613
- package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +0 -439
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +0 -522
- package/dist/scripts/src/components-core/script-runner/process-statement-async.js +0 -761
- package/dist/scripts/src/components-core/script-runner/process-statement-common.js +0 -208
- package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +0 -746
- package/dist/scripts/src/components-core/script-runner/simplify-expression.js +0 -386
- package/dist/scripts/src/components-core/script-runner/statement-queue.js +0 -63
- package/dist/scripts/src/components-core/script-runner/visitors.js +0 -369
- package/dist/scripts/src/components-core/theming/StyleContext.js +0 -133
- package/dist/scripts/src/components-core/theming/StyleRegistry.js +0 -171
- package/dist/scripts/src/components-core/theming/ThemeContext.js +0 -53
- package/dist/scripts/src/components-core/theming/ThemeProvider.js +0 -342
- package/dist/scripts/src/components-core/theming/component-layout-resolver.js +0 -153
- package/dist/scripts/src/components-core/theming/extendThemeUtils.js +0 -47
- package/dist/scripts/src/components-core/theming/hvar.js +0 -105
- package/dist/scripts/src/components-core/theming/layout-resolver.js +0 -388
- package/dist/scripts/src/components-core/theming/parse-layout-props.js +0 -136
- package/dist/scripts/src/components-core/theming/themeVars.js +0 -62
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +0 -15
- package/dist/scripts/src/components-core/theming/themes/palette.js +0 -57
- package/dist/scripts/src/components-core/theming/themes/root.js +0 -434
- package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
- package/dist/scripts/src/components-core/theming/themes/theme-colors.js +0 -561
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +0 -57
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +0 -733
- package/dist/scripts/src/components-core/theming/utils.js +0 -31
- package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +0 -41
- package/dist/scripts/src/components-core/utils/LruCache.js +0 -184
- package/dist/scripts/src/components-core/utils/actionUtils.js +0 -32
- package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
- package/dist/scripts/src/components-core/utils/base64-utils.js +0 -124
- package/dist/scripts/src/components-core/utils/compound-utils.js +0 -11
- package/dist/scripts/src/components-core/utils/css-utils.js +0 -179
- package/dist/scripts/src/components-core/utils/date-utils.js +0 -186
- package/dist/scripts/src/components-core/utils/extractParam.js +0 -281
- package/dist/scripts/src/components-core/utils/hooks.js +0 -400
- package/dist/scripts/src/components-core/utils/mergeProps.js +0 -45
- package/dist/scripts/src/components-core/utils/misc.js +0 -539
- package/dist/scripts/src/components-core/utils/request-params.js +0 -70
- package/dist/scripts/src/components-core/utils/statementUtils.js +0 -224
- package/dist/scripts/src/components-core/utils/treeUtils.js +0 -226
- package/dist/scripts/src/components-core/xmlui-parser.js +0 -548
- package/dist/scripts/src/index-standalone.js +0 -61
- package/dist/scripts/src/index.js +0 -158
- package/dist/scripts/src/language-server/server-common.js +0 -152
- package/dist/scripts/src/language-server/server-web-worker.js +0 -47
- package/dist/scripts/src/language-server/server.js +0 -42
- package/dist/scripts/src/language-server/services/common/docs-generation.js +0 -73
- package/dist/scripts/src/language-server/services/common/lsp-utils.js +0 -9
- package/dist/scripts/src/language-server/services/common/metadata-utils.js +0 -157
- package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +0 -135
- package/dist/scripts/src/language-server/services/completion.js +0 -288
- package/dist/scripts/src/language-server/services/diagnostic.js +0 -19
- package/dist/scripts/src/language-server/services/format.js +0 -430
- package/dist/scripts/src/language-server/services/hover.js +0 -164
- package/dist/scripts/src/language-server/xmlui-metadata-generated.js +0 -16276
- package/dist/scripts/src/logging/LoggerContext.js +0 -22
- package/dist/scripts/src/logging/LoggerInitializer.js +0 -14
- package/dist/scripts/src/logging/LoggerService.js +0 -60
- package/dist/scripts/src/logging/xmlui.js +0 -21
- package/dist/scripts/src/parsers/common/GenericToken.js +0 -2
- package/dist/scripts/src/parsers/common/InputStream.js +0 -59
- package/dist/scripts/src/parsers/common/utils.js +0 -19
- package/dist/scripts/src/parsers/scripting/Lexer.js +0 -1097
- package/dist/scripts/src/parsers/scripting/Parser.js +0 -2638
- package/dist/scripts/src/parsers/scripting/ParserError.js +0 -47
- package/dist/scripts/src/parsers/scripting/ScriptingNodeTypes.js +0 -50
- package/dist/scripts/src/parsers/scripting/TokenTrait.js +0 -108
- package/dist/scripts/src/parsers/scripting/TokenType.js +0 -109
- package/dist/scripts/src/parsers/scripting/code-behind-collect.js +0 -101
- package/dist/scripts/src/parsers/scripting/modules.js +0 -105
- package/dist/scripts/src/parsers/scripting/tree-visitor.js +0 -601
- package/dist/scripts/src/parsers/style-parser/StyleInputStream.js +0 -39
- package/dist/scripts/src/parsers/style-parser/StyleLexer.js +0 -623
- package/dist/scripts/src/parsers/style-parser/StyleParser.js +0 -453
- package/dist/scripts/src/parsers/style-parser/errors.js +0 -37
- package/dist/scripts/src/parsers/style-parser/source-tree.js +0 -2
- package/dist/scripts/src/parsers/style-parser/tokens.js +0 -43
- package/dist/scripts/src/parsers/xmlui-parser/CharacterCodes.js +0 -136
- package/dist/scripts/src/parsers/xmlui-parser/ParserError.js +0 -60
- package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +0 -172
- package/dist/scripts/src/parsers/xmlui-parser/fileExtensions.js +0 -6
- package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
- package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -165
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +0 -626
- package/dist/scripts/src/parsers/xmlui-parser/scanner.js +0 -415
- package/dist/scripts/src/parsers/xmlui-parser/syntax-kind.js +0 -123
- package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +0 -67
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -1131
- package/dist/scripts/src/parsers/xmlui-parser/utils.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
- package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
- package/dist/scripts/src/syntax/monaco/index.js +0 -14
- package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
- package/dist/scripts/src/syntax/textMate/index.js +0 -14
- package/dist/scripts/src/syntax/textMate/xmlui-dark.json +0 -631
- package/dist/scripts/src/syntax/textMate/xmlui-light.json +0 -565
- package/dist/scripts/src/syntax/textMate/xmlui.json +0 -564
- package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +0 -341
- package/dist/scripts/src/testing/ComponentDrivers.js +0 -1380
- package/dist/scripts/src/testing/assertions.js +0 -444
- package/dist/scripts/src/testing/component-test-helpers.js +0 -373
- package/dist/scripts/src/testing/drivers/DateInputDriver.js +0 -19
- package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +0 -10
- package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +0 -44
- package/dist/scripts/src/testing/drivers/TextBoxDriver.js +0 -20
- package/dist/scripts/src/testing/drivers/TimeInputDriver.js +0 -22
- package/dist/scripts/src/testing/drivers/TimerDriver.js +0 -64
- package/dist/scripts/src/testing/drivers/TreeDriver.js +0 -13
- package/dist/scripts/src/testing/drivers/index.js +0 -9
- package/dist/scripts/src/testing/fixtures.js +0 -519
- package/dist/scripts/src/testing/index.js +0 -69
- package/dist/scripts/src/testing/infrastructure/TestBed.js +0 -17
- package/dist/scripts/src/testing/infrastructure/main.js +0 -9
- package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +0 -266
- package/dist/scripts/src/testing/themed-app-test-helpers.js +0 -133
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.ComponentRegistryContext = void 0;
|
|
37
|
-
exports.useComponentRegistry = useComponentRegistry;
|
|
38
|
-
const react_1 = __importStar(require("react"));
|
|
39
|
-
// Context object that makes the component registry available
|
|
40
|
-
exports.ComponentRegistryContext = react_1.default.createContext(null);
|
|
41
|
-
// Use this hook within a component to access the component registry
|
|
42
|
-
function useComponentRegistry() {
|
|
43
|
-
return (0, react_1.useContext)(exports.ComponentRegistryContext);
|
|
44
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.contentSeparatorComponentRenderer = exports.ContentSeparatorMd = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const ContentSeparator_module_scss_1 = __importDefault(require("./ContentSeparator.module.scss"));
|
|
9
|
-
const renderers_1 = require("../../components-core/renderers");
|
|
10
|
-
const themeVars_1 = require("../../components-core/theming/themeVars");
|
|
11
|
-
const abstractions_1 = require("../abstractions");
|
|
12
|
-
const ContentSeparatorNative_1 = require("./ContentSeparatorNative");
|
|
13
|
-
const metadata_helpers_1 = require("../metadata-helpers");
|
|
14
|
-
const COMP = "ContentSeparator";
|
|
15
|
-
exports.ContentSeparatorMd = (0, metadata_helpers_1.createMetadata)({
|
|
16
|
-
status: "stable",
|
|
17
|
-
description: "`ContentSeparator` creates visual dividers between content sections using " +
|
|
18
|
-
"horizontal or vertical lines. It's essential for improving readability by " +
|
|
19
|
-
"breaking up dense content, separating list items, or creating clear boundaries " +
|
|
20
|
-
"between different UI sections.",
|
|
21
|
-
props: {
|
|
22
|
-
size: {
|
|
23
|
-
description: "This property defines the component's height (if the \`orientation\` is horizontal) " +
|
|
24
|
-
"or the width (if the \`orientation\` is vertical). " +
|
|
25
|
-
"If not defined, the component uses the entire available width or height.",
|
|
26
|
-
valueType: "any",
|
|
27
|
-
},
|
|
28
|
-
orientation: {
|
|
29
|
-
description: "Sets the main axis of the component",
|
|
30
|
-
availableValues: abstractions_1.orientationOptionMd,
|
|
31
|
-
defaultValue: ContentSeparatorNative_1.defaultProps.orientation,
|
|
32
|
-
valueType: "string",
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
themeVars: (0, themeVars_1.parseScssVar)(ContentSeparator_module_scss_1.default.themeVars),
|
|
36
|
-
defaultThemeVars: {
|
|
37
|
-
[`backgroundColor-${COMP}`]: "$color-surface-200",
|
|
38
|
-
[`size-${COMP}`]: "1px",
|
|
39
|
-
[`marginVertical-${COMP}`]: "0",
|
|
40
|
-
[`marginHorizontal-${COMP}`]: "0",
|
|
41
|
-
light: {
|
|
42
|
-
// --- No light-specific theme vars
|
|
43
|
-
},
|
|
44
|
-
dark: {
|
|
45
|
-
// --- No dark-specific theme vars
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
exports.contentSeparatorComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.ContentSeparatorMd, ({ node, className, extractValue }) => {
|
|
50
|
-
return ((0, jsx_runtime_1.jsx)(ContentSeparatorNative_1.ContentSeparator, { orientation: extractValue(node.props.orientation), size: extractValue.asSize(node.props.size), className: className }));
|
|
51
|
-
});
|
|
@@ -1,531 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const fixtures_1 = require("../../testing/fixtures");
|
|
13
|
-
// =============================================================================
|
|
14
|
-
// BASIC FUNCTIONALITY TESTS
|
|
15
|
-
// =============================================================================
|
|
16
|
-
fixtures_1.test.describe("Basic Functionality", () => {
|
|
17
|
-
(0, fixtures_1.test)("component renders with default props", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
18
|
-
yield initTestBed(`<ContentSeparator />`);
|
|
19
|
-
const driver = yield createContentSeparatorDriver();
|
|
20
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
21
|
-
yield (0, fixtures_1.expect)(driver.separator).toBeVisible();
|
|
22
|
-
// Default orientation should be horizontal
|
|
23
|
-
const orientation = yield driver.getOrientation();
|
|
24
|
-
(0, fixtures_1.expect)(orientation).toBe('horizontal');
|
|
25
|
-
}));
|
|
26
|
-
(0, fixtures_1.test)("component renders with horizontal orientation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
27
|
-
yield initTestBed(`<ContentSeparator orientation="horizontal" />`);
|
|
28
|
-
const driver = yield createContentSeparatorDriver();
|
|
29
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
30
|
-
const orientation = yield driver.getOrientation();
|
|
31
|
-
(0, fixtures_1.expect)(orientation).toBe('horizontal');
|
|
32
|
-
// Horizontal should span full width
|
|
33
|
-
const width = yield driver.getComputedWidth();
|
|
34
|
-
(0, fixtures_1.expect)(width).not.toBe('0px');
|
|
35
|
-
}));
|
|
36
|
-
(0, fixtures_1.test)("component renders with vertical orientation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
37
|
-
yield initTestBed(`<ContentSeparator orientation="vertical" />`);
|
|
38
|
-
const driver = yield createContentSeparatorDriver();
|
|
39
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
40
|
-
const orientation = yield driver.getOrientation();
|
|
41
|
-
(0, fixtures_1.expect)(orientation).toBe('vertical');
|
|
42
|
-
}));
|
|
43
|
-
(0, fixtures_1.test)("component respects custom size prop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
44
|
-
yield initTestBed(`<ContentSeparator size="5px" orientation="horizontal" />`);
|
|
45
|
-
const driver = yield createContentSeparatorDriver();
|
|
46
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
47
|
-
const height = yield driver.getComputedHeight();
|
|
48
|
-
(0, fixtures_1.expect)(height).toBe('5px');
|
|
49
|
-
}));
|
|
50
|
-
(0, fixtures_1.test)("component handles numeric size values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
51
|
-
yield initTestBed(`<ContentSeparator size="10px" orientation="horizontal" />`);
|
|
52
|
-
const driver = yield createContentSeparatorDriver();
|
|
53
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
54
|
-
const height = yield driver.getComputedHeight();
|
|
55
|
-
(0, fixtures_1.expect)(height).toBe('10px');
|
|
56
|
-
}));
|
|
57
|
-
(0, fixtures_1.test)("vertical separator respects size for width", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
58
|
-
yield initTestBed(`<ContentSeparator size="3px" orientation="vertical" />`);
|
|
59
|
-
const driver = yield createContentSeparatorDriver();
|
|
60
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
61
|
-
const width = yield driver.getComputedWidth();
|
|
62
|
-
(0, fixtures_1.expect)(width).toBe('3px');
|
|
63
|
-
}));
|
|
64
|
-
});
|
|
65
|
-
// =============================================================================
|
|
66
|
-
// ACCESSIBILITY TESTS
|
|
67
|
-
// =============================================================================
|
|
68
|
-
fixtures_1.test.describe("Accessibility", () => {
|
|
69
|
-
(0, fixtures_1.test)("component has appropriate semantic role", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
70
|
-
yield initTestBed(`<ContentSeparator />`);
|
|
71
|
-
const driver = yield createContentSeparatorDriver();
|
|
72
|
-
// ContentSeparator is a visual element, should be a div without specific role
|
|
73
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
74
|
-
const tagName = yield driver.getComponentTagName();
|
|
75
|
-
(0, fixtures_1.expect)(tagName).toBe('div');
|
|
76
|
-
}));
|
|
77
|
-
(0, fixtures_1.test)("component is focusable when needed", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
78
|
-
yield initTestBed(`<ContentSeparator />`);
|
|
79
|
-
const driver = yield createContentSeparatorDriver();
|
|
80
|
-
// ContentSeparator should not be focusable as it's a visual separator
|
|
81
|
-
yield (0, fixtures_1.expect)(driver.separator).not.toBeFocused();
|
|
82
|
-
// Try to focus and ensure it doesn't receive focus
|
|
83
|
-
yield driver.separator.focus({ timeout: 1000 }).catch(() => {
|
|
84
|
-
// Expected to fail - separator should not be focusable
|
|
85
|
-
});
|
|
86
|
-
}));
|
|
87
|
-
(0, fixtures_1.test)("component provides proper visual separation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
88
|
-
yield initTestBed(`
|
|
89
|
-
<VStack>
|
|
90
|
-
<Text>Content above</Text>
|
|
91
|
-
<ContentSeparator />
|
|
92
|
-
<Text>Content below</Text>
|
|
93
|
-
</VStack>
|
|
94
|
-
`);
|
|
95
|
-
const separator = page.getByTestId("test-id-component");
|
|
96
|
-
yield (0, fixtures_1.expect)(separator).toBeVisible();
|
|
97
|
-
// Check that the separator exists and is rendered
|
|
98
|
-
const separatorExists = yield separator.count();
|
|
99
|
-
(0, fixtures_1.expect)(separatorExists).toBe(1);
|
|
100
|
-
// It should have some visual properties (height for horizontal separator)
|
|
101
|
-
const height = yield separator.evaluate((el) => window.getComputedStyle(el).height);
|
|
102
|
-
(0, fixtures_1.expect)(parseInt(height)).toBeGreaterThan(0);
|
|
103
|
-
}));
|
|
104
|
-
});
|
|
105
|
-
// =============================================================================
|
|
106
|
-
// VISUAL STATE TESTS
|
|
107
|
-
// =============================================================================
|
|
108
|
-
fixtures_1.test.describe("Visual States & Themes", () => {
|
|
109
|
-
(0, fixtures_1.test)("component applies theme variables correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
110
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
111
|
-
testThemeVars: {
|
|
112
|
-
"backgroundColor-ContentSeparator": "rgb(255, 0, 0)",
|
|
113
|
-
"size-ContentSeparator": "5px",
|
|
114
|
-
},
|
|
115
|
-
});
|
|
116
|
-
const driver = yield createContentSeparatorDriver();
|
|
117
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("background-color", "rgb(255, 0, 0)");
|
|
118
|
-
const height = yield driver.getComputedHeight();
|
|
119
|
-
(0, fixtures_1.expect)(height).toBe('5px');
|
|
120
|
-
}));
|
|
121
|
-
(0, fixtures_1.test)("horizontal separator uses theme size for height", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
122
|
-
yield initTestBed(`<ContentSeparator orientation="horizontal" />`, {
|
|
123
|
-
testThemeVars: {
|
|
124
|
-
"size-ContentSeparator": "3px",
|
|
125
|
-
},
|
|
126
|
-
});
|
|
127
|
-
const driver = yield createContentSeparatorDriver();
|
|
128
|
-
const height = yield driver.getComputedHeight();
|
|
129
|
-
(0, fixtures_1.expect)(height).toBe('3px');
|
|
130
|
-
// Width should still be 100%
|
|
131
|
-
const width = yield driver.getComputedWidth();
|
|
132
|
-
(0, fixtures_1.expect)(width).not.toBe('3px');
|
|
133
|
-
}));
|
|
134
|
-
(0, fixtures_1.test)("vertical separator uses theme size for width", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
135
|
-
yield initTestBed(`<ContentSeparator orientation="vertical" />`, {
|
|
136
|
-
testThemeVars: {
|
|
137
|
-
"size-ContentSeparator": "2px",
|
|
138
|
-
},
|
|
139
|
-
});
|
|
140
|
-
const driver = yield createContentSeparatorDriver();
|
|
141
|
-
const width = yield driver.getComputedWidth();
|
|
142
|
-
(0, fixtures_1.expect)(width).toBe('2px');
|
|
143
|
-
}));
|
|
144
|
-
(0, fixtures_1.test)("prop size overrides theme size", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
145
|
-
yield initTestBed(`<ContentSeparator size="10px" orientation="horizontal" />`, {
|
|
146
|
-
testThemeVars: {
|
|
147
|
-
"size-ContentSeparator": "3px",
|
|
148
|
-
},
|
|
149
|
-
});
|
|
150
|
-
const driver = yield createContentSeparatorDriver();
|
|
151
|
-
// Prop should override theme
|
|
152
|
-
const height = yield driver.getComputedHeight();
|
|
153
|
-
(0, fixtures_1.expect)(height).toBe('10px');
|
|
154
|
-
}));
|
|
155
|
-
});
|
|
156
|
-
// =============================================================================
|
|
157
|
-
// THEME VARIABLE TESTS
|
|
158
|
-
// =============================================================================
|
|
159
|
-
fixtures_1.test.describe("Theme Variables", () => {
|
|
160
|
-
(0, fixtures_1.test)("applies basic theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
161
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
162
|
-
testThemeVars: {
|
|
163
|
-
"backgroundColor-ContentSeparator": "rgb(255, 0, 0)",
|
|
164
|
-
"size-ContentSeparator": "5px",
|
|
165
|
-
},
|
|
166
|
-
});
|
|
167
|
-
const driver = yield createContentSeparatorDriver();
|
|
168
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("background-color", "rgb(255, 0, 0)");
|
|
169
|
-
const height = yield driver.getComputedHeight();
|
|
170
|
-
(0, fixtures_1.expect)(height).toBe('5px');
|
|
171
|
-
}));
|
|
172
|
-
(0, fixtures_1.test)("applies vertical margin theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
173
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
174
|
-
testThemeVars: {
|
|
175
|
-
"marginVertical-ContentSeparator": "10px",
|
|
176
|
-
},
|
|
177
|
-
});
|
|
178
|
-
const driver = yield createContentSeparatorDriver();
|
|
179
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-top", "10px");
|
|
180
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-bottom", "10px");
|
|
181
|
-
}));
|
|
182
|
-
(0, fixtures_1.test)("applies horizontal margin theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
183
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
184
|
-
testThemeVars: {
|
|
185
|
-
"marginHorizontal-ContentSeparator": "15px",
|
|
186
|
-
},
|
|
187
|
-
});
|
|
188
|
-
const driver = yield createContentSeparatorDriver();
|
|
189
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-left", "15px");
|
|
190
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-right", "15px");
|
|
191
|
-
}));
|
|
192
|
-
(0, fixtures_1.test)("specific margin-top overrides vertical margin", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
193
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
194
|
-
testThemeVars: {
|
|
195
|
-
"marginVertical-ContentSeparator": "10px",
|
|
196
|
-
"marginTop-ContentSeparator": "20px",
|
|
197
|
-
},
|
|
198
|
-
});
|
|
199
|
-
const driver = yield createContentSeparatorDriver();
|
|
200
|
-
// Specific margin-top should override vertical margin
|
|
201
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-top", "20px");
|
|
202
|
-
// Bottom should still use vertical margin
|
|
203
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-bottom", "10px");
|
|
204
|
-
}));
|
|
205
|
-
(0, fixtures_1.test)("specific margin-bottom overrides vertical margin", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
206
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
207
|
-
testThemeVars: {
|
|
208
|
-
"marginVertical-ContentSeparator": "10px",
|
|
209
|
-
"marginBottom-ContentSeparator": "25px",
|
|
210
|
-
},
|
|
211
|
-
});
|
|
212
|
-
const driver = yield createContentSeparatorDriver();
|
|
213
|
-
// Top should use vertical margin
|
|
214
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-top", "10px");
|
|
215
|
-
// Specific margin-bottom should override vertical margin
|
|
216
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-bottom", "25px");
|
|
217
|
-
}));
|
|
218
|
-
(0, fixtures_1.test)("specific margin-left overrides horizontal margin", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
219
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
220
|
-
testThemeVars: {
|
|
221
|
-
"marginHorizontal-ContentSeparator": "15px",
|
|
222
|
-
"marginLeft-ContentSeparator": "30px",
|
|
223
|
-
},
|
|
224
|
-
});
|
|
225
|
-
const driver = yield createContentSeparatorDriver();
|
|
226
|
-
// Specific margin-left should override horizontal margin
|
|
227
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-left", "30px");
|
|
228
|
-
// Right should still use horizontal margin
|
|
229
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-right", "15px");
|
|
230
|
-
}));
|
|
231
|
-
(0, fixtures_1.test)("specific margin-right overrides horizontal margin", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
232
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
233
|
-
testThemeVars: {
|
|
234
|
-
"marginHorizontal-ContentSeparator": "15px",
|
|
235
|
-
"marginRight-ContentSeparator": "35px",
|
|
236
|
-
},
|
|
237
|
-
});
|
|
238
|
-
const driver = yield createContentSeparatorDriver();
|
|
239
|
-
// Left should use horizontal margin
|
|
240
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-left", "15px");
|
|
241
|
-
// Specific margin-right should override horizontal margin
|
|
242
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-right", "35px");
|
|
243
|
-
}));
|
|
244
|
-
(0, fixtures_1.test)("all specific margins override general margins", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
245
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
246
|
-
testThemeVars: {
|
|
247
|
-
"marginVertical-ContentSeparator": "10px",
|
|
248
|
-
"marginHorizontal-ContentSeparator": "15px",
|
|
249
|
-
"marginTop-ContentSeparator": "5px",
|
|
250
|
-
"marginBottom-ContentSeparator": "8px",
|
|
251
|
-
"marginLeft-ContentSeparator": "12px",
|
|
252
|
-
"marginRight-ContentSeparator": "18px",
|
|
253
|
-
},
|
|
254
|
-
});
|
|
255
|
-
const driver = yield createContentSeparatorDriver();
|
|
256
|
-
// All specific margins should be used instead of general ones
|
|
257
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-top", "5px");
|
|
258
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-bottom", "8px");
|
|
259
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-left", "12px");
|
|
260
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-right", "18px");
|
|
261
|
-
}));
|
|
262
|
-
(0, fixtures_1.test)("fallback to vertical margin when specific margins not defined", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
263
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
264
|
-
testThemeVars: {
|
|
265
|
-
"marginVertical-ContentSeparator": "20px",
|
|
266
|
-
// No specific marginTop or marginBottom defined
|
|
267
|
-
},
|
|
268
|
-
});
|
|
269
|
-
const driver = yield createContentSeparatorDriver();
|
|
270
|
-
// Should fall back to vertical margin values
|
|
271
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-top", "20px");
|
|
272
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-bottom", "20px");
|
|
273
|
-
}));
|
|
274
|
-
(0, fixtures_1.test)("fallback to horizontal margin when specific margins not defined", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
275
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
276
|
-
testThemeVars: {
|
|
277
|
-
"marginHorizontal-ContentSeparator": "25px",
|
|
278
|
-
// No specific marginLeft or marginRight defined
|
|
279
|
-
},
|
|
280
|
-
});
|
|
281
|
-
const driver = yield createContentSeparatorDriver();
|
|
282
|
-
// Should fall back to horizontal margin values
|
|
283
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-left", "25px");
|
|
284
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-right", "25px");
|
|
285
|
-
}));
|
|
286
|
-
(0, fixtures_1.test)("handles zero margin values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
287
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
288
|
-
testThemeVars: {
|
|
289
|
-
"marginTop-ContentSeparator": "0px",
|
|
290
|
-
"marginBottom-ContentSeparator": "0px",
|
|
291
|
-
"marginLeft-ContentSeparator": "0px",
|
|
292
|
-
"marginRight-ContentSeparator": "0px",
|
|
293
|
-
},
|
|
294
|
-
});
|
|
295
|
-
const driver = yield createContentSeparatorDriver();
|
|
296
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-top", "0px");
|
|
297
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-bottom", "0px");
|
|
298
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-left", "0px");
|
|
299
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-right", "0px");
|
|
300
|
-
}));
|
|
301
|
-
(0, fixtures_1.test)("handles negative margin values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
302
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
303
|
-
testThemeVars: {
|
|
304
|
-
"marginTop-ContentSeparator": "-5px",
|
|
305
|
-
"marginLeft-ContentSeparator": "-10px",
|
|
306
|
-
},
|
|
307
|
-
});
|
|
308
|
-
const driver = yield createContentSeparatorDriver();
|
|
309
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-top", "-5px");
|
|
310
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-left", "-10px");
|
|
311
|
-
}));
|
|
312
|
-
(0, fixtures_1.test)("handles different unit types for margins", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
313
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
314
|
-
testThemeVars: {
|
|
315
|
-
"marginTop-ContentSeparator": "1rem",
|
|
316
|
-
"marginBottom-ContentSeparator": "2em",
|
|
317
|
-
"marginLeft-ContentSeparator": "10px",
|
|
318
|
-
"marginRight-ContentSeparator": "10px",
|
|
319
|
-
},
|
|
320
|
-
});
|
|
321
|
-
const driver = yield createContentSeparatorDriver();
|
|
322
|
-
// Browser computes rem/em to px values, so we check that margins are applied (not zero)
|
|
323
|
-
const marginTop = yield driver.separator.evaluate((el) => window.getComputedStyle(el).marginTop);
|
|
324
|
-
const marginBottom = yield driver.separator.evaluate((el) => window.getComputedStyle(el).marginBottom);
|
|
325
|
-
// rem and em should resolve to non-zero pixel values
|
|
326
|
-
(0, fixtures_1.expect)(parseFloat(marginTop)).toBeGreaterThan(0);
|
|
327
|
-
(0, fixtures_1.expect)(parseFloat(marginBottom)).toBeGreaterThan(0);
|
|
328
|
-
// px values should be exact
|
|
329
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-left", "10px");
|
|
330
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-right", "10px");
|
|
331
|
-
}));
|
|
332
|
-
(0, fixtures_1.test)("mixed general and specific margins work correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
333
|
-
yield initTestBed(`<ContentSeparator />`, {
|
|
334
|
-
testThemeVars: {
|
|
335
|
-
"marginVertical-ContentSeparator": "8px",
|
|
336
|
-
"marginHorizontal-ContentSeparator": "12px",
|
|
337
|
-
"marginTop-ContentSeparator": "16px", // Override top
|
|
338
|
-
"marginRight-ContentSeparator": "20px", // Override right
|
|
339
|
-
// marginBottom and marginLeft should use general values
|
|
340
|
-
},
|
|
341
|
-
});
|
|
342
|
-
const driver = yield createContentSeparatorDriver();
|
|
343
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-top", "16px"); // Specific
|
|
344
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-bottom", "8px"); // Fallback to vertical
|
|
345
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-left", "12px"); // Fallback to horizontal
|
|
346
|
-
yield (0, fixtures_1.expect)(driver.separator).toHaveCSS("margin-right", "20px"); // Specific
|
|
347
|
-
}));
|
|
348
|
-
});
|
|
349
|
-
// =============================================================================
|
|
350
|
-
// EDGE CASE TESTS
|
|
351
|
-
// =============================================================================
|
|
352
|
-
fixtures_1.test.describe("Edge Cases", () => {
|
|
353
|
-
(0, fixtures_1.test)("component handles null and undefined props gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
354
|
-
yield initTestBed(`<ContentSeparator />`);
|
|
355
|
-
const driver = yield createContentSeparatorDriver();
|
|
356
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
357
|
-
yield (0, fixtures_1.expect)(driver.separator).toBeVisible();
|
|
358
|
-
}));
|
|
359
|
-
(0, fixtures_1.test)("component handles empty size prop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
360
|
-
yield initTestBed(`<ContentSeparator size="" />`);
|
|
361
|
-
const driver = yield createContentSeparatorDriver();
|
|
362
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
363
|
-
// Should fall back to theme size or default behavior
|
|
364
|
-
const height = yield driver.getComputedHeight();
|
|
365
|
-
(0, fixtures_1.expect)(height).toBeTruthy();
|
|
366
|
-
}));
|
|
367
|
-
(0, fixtures_1.test)("component handles invalid orientation gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
368
|
-
yield initTestBed(`<ContentSeparator orientation="invalid" />`);
|
|
369
|
-
// Component with invalid orientation may not be visible, but should not crash
|
|
370
|
-
const separator = page.getByTestId("test-id-component");
|
|
371
|
-
const isVisible = yield separator.isVisible();
|
|
372
|
-
// Either it's visible with fallback behavior or gracefully hidden
|
|
373
|
-
if (isVisible) {
|
|
374
|
-
const orientation = yield separator.evaluate((el) => {
|
|
375
|
-
const classList = el.className;
|
|
376
|
-
if (classList.includes('horizontal'))
|
|
377
|
-
return 'horizontal';
|
|
378
|
-
if (classList.includes('vertical'))
|
|
379
|
-
return 'vertical';
|
|
380
|
-
return 'unknown';
|
|
381
|
-
});
|
|
382
|
-
(0, fixtures_1.expect)(['horizontal', 'vertical', 'unknown']).toContain(orientation);
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
// It's acceptable for component to be hidden with invalid props
|
|
386
|
-
(0, fixtures_1.expect)(isVisible).toBe(false);
|
|
387
|
-
}
|
|
388
|
-
}));
|
|
389
|
-
(0, fixtures_1.test)("component handles zero size", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
390
|
-
yield initTestBed(`<ContentSeparator size="0px" orientation="horizontal" />`);
|
|
391
|
-
const separator = page.getByTestId("test-id-component");
|
|
392
|
-
// Zero-height elements might not be "visible" but should exist
|
|
393
|
-
const exists = yield separator.count();
|
|
394
|
-
(0, fixtures_1.expect)(exists).toBe(1);
|
|
395
|
-
// Should have zero height
|
|
396
|
-
const height = yield separator.evaluate((el) => window.getComputedStyle(el).height);
|
|
397
|
-
(0, fixtures_1.expect)(height).toBe('0px');
|
|
398
|
-
}));
|
|
399
|
-
(0, fixtures_1.test)("component handles very large size values", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
400
|
-
yield initTestBed(`<ContentSeparator size="1000px" orientation="horizontal" />`);
|
|
401
|
-
const driver = yield createContentSeparatorDriver();
|
|
402
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
403
|
-
const height = yield driver.getComputedHeight();
|
|
404
|
-
(0, fixtures_1.expect)(height).toBe('1000px');
|
|
405
|
-
}));
|
|
406
|
-
(0, fixtures_1.test)("component handles special characters in size (should be graceful)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createContentSeparatorDriver }) {
|
|
407
|
-
yield initTestBed(`<ContentSeparator size="abc" orientation="horizontal" />`);
|
|
408
|
-
const driver = yield createContentSeparatorDriver();
|
|
409
|
-
// Should render without crashing, may fall back to default size
|
|
410
|
-
yield (0, fixtures_1.expect)(driver.component).toBeVisible();
|
|
411
|
-
const height = yield driver.getComputedHeight();
|
|
412
|
-
(0, fixtures_1.expect)(height).toBeTruthy(); // Should have some height value
|
|
413
|
-
}));
|
|
414
|
-
});
|
|
415
|
-
// =============================================================================
|
|
416
|
-
// INTEGRATION TESTS
|
|
417
|
-
// =============================================================================
|
|
418
|
-
fixtures_1.test.describe("Integration", () => {
|
|
419
|
-
(0, fixtures_1.test)("component works correctly in VStack layout", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
420
|
-
yield initTestBed(`
|
|
421
|
-
<VStack>
|
|
422
|
-
<Text>First item</Text>
|
|
423
|
-
<ContentSeparator />
|
|
424
|
-
<Text>Second item</Text>
|
|
425
|
-
<ContentSeparator />
|
|
426
|
-
<Text>Third item</Text>
|
|
427
|
-
</VStack>
|
|
428
|
-
`);
|
|
429
|
-
// Check that separators are properly positioned
|
|
430
|
-
const separators = page.locator('[class*="separator"]');
|
|
431
|
-
yield (0, fixtures_1.expect)(separators).toHaveCount(2);
|
|
432
|
-
const separatorElements = yield separators.all();
|
|
433
|
-
for (const separator of separatorElements) {
|
|
434
|
-
yield (0, fixtures_1.expect)(separator).toBeVisible();
|
|
435
|
-
}
|
|
436
|
-
}));
|
|
437
|
-
(0, fixtures_1.test)("component works correctly in HStack layout with vertical orientation", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
438
|
-
yield initTestBed(`
|
|
439
|
-
<HStack height="100px" alignItems="stretch">
|
|
440
|
-
<Text>Left</Text>
|
|
441
|
-
<ContentSeparator orientation="vertical" size="3px" />
|
|
442
|
-
<Text>Right</Text>
|
|
443
|
-
</HStack>
|
|
444
|
-
`);
|
|
445
|
-
const separator = page.getByTestId("test-id-component");
|
|
446
|
-
yield (0, fixtures_1.expect)(separator).toBeVisible();
|
|
447
|
-
// Check the class name to see if vertical orientation is applied
|
|
448
|
-
const className = yield separator.getAttribute("class");
|
|
449
|
-
const styles = yield separator.evaluate((el) => {
|
|
450
|
-
const computedStyle = window.getComputedStyle(el);
|
|
451
|
-
return {
|
|
452
|
-
width: computedStyle.width,
|
|
453
|
-
height: computedStyle.height,
|
|
454
|
-
};
|
|
455
|
-
});
|
|
456
|
-
// Test should pass if separator is rendered (regardless of exact styling)
|
|
457
|
-
(0, fixtures_1.expect)(separator).toBeTruthy();
|
|
458
|
-
}));
|
|
459
|
-
(0, fixtures_1.test)("component integrates with custom styling", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
460
|
-
yield initTestBed(`
|
|
461
|
-
<ContentSeparator
|
|
462
|
-
testId="styled-separator"
|
|
463
|
-
style="margin: 10px 0; border-radius: 2px;"
|
|
464
|
-
size="3px"
|
|
465
|
-
/>
|
|
466
|
-
`);
|
|
467
|
-
const separator = page.getByTestId("styled-separator");
|
|
468
|
-
yield (0, fixtures_1.expect)(separator).toBeVisible();
|
|
469
|
-
// Check the size is applied
|
|
470
|
-
const height = yield separator.evaluate((el) => window.getComputedStyle(el).height);
|
|
471
|
-
(0, fixtures_1.expect)(height).toBe('3px');
|
|
472
|
-
// Check custom styles - Note: XMLUI may apply styles differently
|
|
473
|
-
const styles = yield separator.evaluate((el) => {
|
|
474
|
-
const computedStyle = window.getComputedStyle(el);
|
|
475
|
-
return {
|
|
476
|
-
marginTop: computedStyle.marginTop,
|
|
477
|
-
marginBottom: computedStyle.marginBottom,
|
|
478
|
-
borderRadius: computedStyle.borderRadius,
|
|
479
|
-
};
|
|
480
|
-
});
|
|
481
|
-
// Check if custom styles are applied (they might be "0px" if not supported)
|
|
482
|
-
(0, fixtures_1.expect)(styles).toBeDefined();
|
|
483
|
-
}));
|
|
484
|
-
(0, fixtures_1.test)("component works in complex nested layouts", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
485
|
-
yield initTestBed(`
|
|
486
|
-
<VStack>
|
|
487
|
-
<HStack height="50px">
|
|
488
|
-
<Text>Header Left</Text>
|
|
489
|
-
<ContentSeparator orientation="vertical" size="2px" />
|
|
490
|
-
<Text>Header Right</Text>
|
|
491
|
-
</HStack>
|
|
492
|
-
<ContentSeparator size="3px" />
|
|
493
|
-
<VStack>
|
|
494
|
-
<Text>Body content</Text>
|
|
495
|
-
<ContentSeparator />
|
|
496
|
-
<Text>More content</Text>
|
|
497
|
-
</VStack>
|
|
498
|
-
</VStack>
|
|
499
|
-
`);
|
|
500
|
-
const separators = page.locator('[class*="separator"]');
|
|
501
|
-
yield (0, fixtures_1.expect)(separators).toHaveCount(3);
|
|
502
|
-
// At least some separators should be visible
|
|
503
|
-
const separatorElements = yield separators.all();
|
|
504
|
-
let visibleCount = 0;
|
|
505
|
-
for (const separator of separatorElements) {
|
|
506
|
-
if (yield separator.isVisible()) {
|
|
507
|
-
visibleCount++;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
(0, fixtures_1.expect)(visibleCount).toBeGreaterThan(0);
|
|
511
|
-
}));
|
|
512
|
-
(0, fixtures_1.test)("component maintains visual consistency across orientations", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
513
|
-
yield initTestBed(`
|
|
514
|
-
<Fragment>
|
|
515
|
-
<ContentSeparator orientation="horizontal" testId="horizontal-sep" />
|
|
516
|
-
<ContentSeparator orientation="vertical" testId="vertical-sep" />
|
|
517
|
-
</Fragment>
|
|
518
|
-
`, {
|
|
519
|
-
testThemeVars: {
|
|
520
|
-
"backgroundColor-ContentSeparator": "rgb(100, 100, 100)",
|
|
521
|
-
},
|
|
522
|
-
});
|
|
523
|
-
const horizontalSep = page.getByTestId("horizontal-sep");
|
|
524
|
-
const verticalSep = page.getByTestId("vertical-sep");
|
|
525
|
-
yield (0, fixtures_1.expect)(horizontalSep).toBeVisible();
|
|
526
|
-
yield (0, fixtures_1.expect)(verticalSep).toBeVisible();
|
|
527
|
-
// Both should have the same background color
|
|
528
|
-
yield (0, fixtures_1.expect)(horizontalSep).toHaveCSS("background-color", "rgb(100, 100, 100)");
|
|
529
|
-
yield (0, fixtures_1.expect)(verticalSep).toHaveCSS("background-color", "rgb(100, 100, 100)");
|
|
530
|
-
}));
|
|
531
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ContentSeparator = exports.defaultProps = void 0;
|
|
18
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
const react_1 = require("react");
|
|
20
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
21
|
-
const ContentSeparator_module_scss_1 = __importDefault(require("./ContentSeparator.module.scss"));
|
|
22
|
-
exports.defaultProps = {
|
|
23
|
-
orientation: "horizontal",
|
|
24
|
-
};
|
|
25
|
-
exports.ContentSeparator = (0, react_1.forwardRef)((_a, ref) => {
|
|
26
|
-
var { orientation = exports.defaultProps.orientation, size, style, className } = _a, rest = __rest(_a, ["orientation", "size", "style", "className"]);
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)("div", Object.assign({}, rest, { ref: ref, className: (0, classnames_1.default)(ContentSeparator_module_scss_1.default.separator, {
|
|
28
|
-
[ContentSeparator_module_scss_1.default.horizontal]: orientation === "horizontal",
|
|
29
|
-
[ContentSeparator_module_scss_1.default.vertical]: orientation === "vertical",
|
|
30
|
-
}, className), style: Object.assign({ height: orientation === "horizontal" ? size : undefined, width: orientation === "horizontal" ? "100%" : size }, style) })));
|
|
31
|
-
});
|