xmlui 0.11.4 → 0.11.7
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-CwYK6iB4.js} +2502 -2675
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-DCigV4Zh.js → initMock-CvmWAkGr.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-CSFNLstl.js} +3169 -3302
- package/dist/metadata/{initMock-Buqah4JF.js → initMock-CyTd5aE8.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,197 +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.getFormatter = getFormatter;
|
|
7
|
-
exports.getNumberFormatter = getNumberFormatter;
|
|
8
|
-
exports.getHours = getHours;
|
|
9
|
-
exports.getMinutes = getMinutes;
|
|
10
|
-
exports.getSeconds = getSeconds;
|
|
11
|
-
exports.getHoursMinutes = getHoursMinutes;
|
|
12
|
-
exports.getHoursMinutesSeconds = getHoursMinutesSeconds;
|
|
13
|
-
exports.convert12to24 = convert12to24;
|
|
14
|
-
exports.convert24to12 = convert24to12;
|
|
15
|
-
exports.getAmPmLabels = getAmPmLabels;
|
|
16
|
-
exports.safeMin = safeMin;
|
|
17
|
-
exports.safeMax = safeMax;
|
|
18
|
-
// Merged utility functions for TimeInput component
|
|
19
|
-
const get_user_locale_1 = __importDefault(require("get-user-locale"));
|
|
20
|
-
// ============================================================================
|
|
21
|
-
// Date Formatter utilities (from dateFormatter.ts)
|
|
22
|
-
// ============================================================================
|
|
23
|
-
const formatterCache = new Map();
|
|
24
|
-
function getFormatter(options) {
|
|
25
|
-
return function formatter(locale, date) {
|
|
26
|
-
const localeWithDefault = locale || (0, get_user_locale_1.default)();
|
|
27
|
-
if (!formatterCache.has(localeWithDefault)) {
|
|
28
|
-
formatterCache.set(localeWithDefault, new Map());
|
|
29
|
-
}
|
|
30
|
-
const formatterCacheLocale = formatterCache.get(localeWithDefault);
|
|
31
|
-
if (!formatterCacheLocale.has(options)) {
|
|
32
|
-
formatterCacheLocale.set(options, new Intl.DateTimeFormat(localeWithDefault || undefined, options).format);
|
|
33
|
-
}
|
|
34
|
-
return formatterCacheLocale.get(options)(date);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
const numberFormatterCache = new Map();
|
|
38
|
-
function getNumberFormatter(options) {
|
|
39
|
-
return (locale, number) => {
|
|
40
|
-
const localeWithDefault = locale || (0, get_user_locale_1.default)();
|
|
41
|
-
if (!numberFormatterCache.has(localeWithDefault)) {
|
|
42
|
-
numberFormatterCache.set(localeWithDefault, new Map());
|
|
43
|
-
}
|
|
44
|
-
const numberFormatterCacheLocale = numberFormatterCache.get(localeWithDefault);
|
|
45
|
-
if (!numberFormatterCacheLocale.has(options)) {
|
|
46
|
-
numberFormatterCacheLocale.set(options, new Intl.NumberFormat(localeWithDefault || undefined, options).format);
|
|
47
|
-
}
|
|
48
|
-
return numberFormatterCacheLocale.get(options)(number);
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
// ============================================================================
|
|
52
|
-
// Date utilities (from dateUtils.ts)
|
|
53
|
-
// ============================================================================
|
|
54
|
-
function getHours(dateOrTimeString) {
|
|
55
|
-
if (!dateOrTimeString)
|
|
56
|
-
return 0;
|
|
57
|
-
if (dateOrTimeString instanceof Date) {
|
|
58
|
-
return dateOrTimeString.getHours();
|
|
59
|
-
}
|
|
60
|
-
// Handle time string format like "14:30:45" or "14:30"
|
|
61
|
-
const timeString = String(dateOrTimeString);
|
|
62
|
-
const timeParts = timeString.split(':');
|
|
63
|
-
if (timeParts.length >= 1) {
|
|
64
|
-
const hours = parseInt(timeParts[0], 10);
|
|
65
|
-
return isNaN(hours) ? 0 : hours;
|
|
66
|
-
}
|
|
67
|
-
return 0;
|
|
68
|
-
}
|
|
69
|
-
function getMinutes(dateOrTimeString) {
|
|
70
|
-
if (!dateOrTimeString)
|
|
71
|
-
return 0;
|
|
72
|
-
if (dateOrTimeString instanceof Date) {
|
|
73
|
-
return dateOrTimeString.getMinutes();
|
|
74
|
-
}
|
|
75
|
-
// Handle time string format like "14:30:45" or "14:30"
|
|
76
|
-
const timeString = String(dateOrTimeString);
|
|
77
|
-
const timeParts = timeString.split(':');
|
|
78
|
-
if (timeParts.length >= 2) {
|
|
79
|
-
const minutes = parseInt(timeParts[1], 10);
|
|
80
|
-
return isNaN(minutes) ? 0 : minutes;
|
|
81
|
-
}
|
|
82
|
-
return 0;
|
|
83
|
-
}
|
|
84
|
-
function getSeconds(dateOrTimeString) {
|
|
85
|
-
if (!dateOrTimeString)
|
|
86
|
-
return 0;
|
|
87
|
-
if (dateOrTimeString instanceof Date) {
|
|
88
|
-
return dateOrTimeString.getSeconds();
|
|
89
|
-
}
|
|
90
|
-
// Handle time string format like "14:30:45"
|
|
91
|
-
const timeString = String(dateOrTimeString);
|
|
92
|
-
const timeParts = timeString.split(':');
|
|
93
|
-
if (timeParts.length >= 3) {
|
|
94
|
-
const seconds = parseInt(timeParts[2], 10);
|
|
95
|
-
return isNaN(seconds) ? 0 : seconds;
|
|
96
|
-
}
|
|
97
|
-
return 0;
|
|
98
|
-
}
|
|
99
|
-
function getHoursMinutes(dateOrTimeString) {
|
|
100
|
-
if (!dateOrTimeString)
|
|
101
|
-
return '';
|
|
102
|
-
if (dateOrTimeString instanceof Date) {
|
|
103
|
-
const hours = dateOrTimeString.getHours().toString().padStart(2, '0');
|
|
104
|
-
const minutes = dateOrTimeString.getMinutes().toString().padStart(2, '0');
|
|
105
|
-
return `${hours}:${minutes}`;
|
|
106
|
-
}
|
|
107
|
-
// Handle time string - return first two components
|
|
108
|
-
const timeString = String(dateOrTimeString);
|
|
109
|
-
const timeParts = timeString.split(':');
|
|
110
|
-
if (timeParts.length >= 2) {
|
|
111
|
-
const hours = parseInt(timeParts[0], 10);
|
|
112
|
-
const minutes = parseInt(timeParts[1], 10);
|
|
113
|
-
if (!isNaN(hours) && !isNaN(minutes)) {
|
|
114
|
-
return `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}`;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return timeString;
|
|
118
|
-
}
|
|
119
|
-
function getHoursMinutesSeconds(dateOrTimeString) {
|
|
120
|
-
if (!dateOrTimeString)
|
|
121
|
-
return '';
|
|
122
|
-
if (dateOrTimeString instanceof Date) {
|
|
123
|
-
const hours = dateOrTimeString.getHours().toString().padStart(2, '0');
|
|
124
|
-
const minutes = dateOrTimeString.getMinutes().toString().padStart(2, '0');
|
|
125
|
-
const seconds = dateOrTimeString.getSeconds().toString().padStart(2, '0');
|
|
126
|
-
return `${hours}:${minutes}:${seconds}`;
|
|
127
|
-
}
|
|
128
|
-
// Handle time string - ensure it has three components
|
|
129
|
-
const timeString = String(dateOrTimeString);
|
|
130
|
-
const timeParts = timeString.split(':');
|
|
131
|
-
if (timeParts.length >= 3) {
|
|
132
|
-
const hours = parseInt(timeParts[0], 10);
|
|
133
|
-
const minutes = parseInt(timeParts[1], 10);
|
|
134
|
-
const seconds = parseInt(timeParts[2], 10);
|
|
135
|
-
if (!isNaN(hours) && !isNaN(minutes) && !isNaN(seconds)) {
|
|
136
|
-
return `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
else if (timeParts.length === 2) {
|
|
140
|
-
// Add seconds if missing
|
|
141
|
-
const hours = parseInt(timeParts[0], 10);
|
|
142
|
-
const minutes = parseInt(timeParts[1], 10);
|
|
143
|
-
if (!isNaN(hours) && !isNaN(minutes)) {
|
|
144
|
-
return `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:00`;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return timeString;
|
|
148
|
-
}
|
|
149
|
-
// ============================================================================
|
|
150
|
-
// Date conversion utilities (from dates.ts)
|
|
151
|
-
// ============================================================================
|
|
152
|
-
function convert12to24(hour12, amPm) {
|
|
153
|
-
let hour24 = Number(hour12);
|
|
154
|
-
if (amPm === 'am' && hour24 === 12) {
|
|
155
|
-
hour24 = 0;
|
|
156
|
-
}
|
|
157
|
-
else if (amPm === 'pm' && hour24 < 12) {
|
|
158
|
-
hour24 += 12;
|
|
159
|
-
}
|
|
160
|
-
return hour24;
|
|
161
|
-
}
|
|
162
|
-
function convert24to12(hour24) {
|
|
163
|
-
const hour12 = Number(hour24) % 12 || 12;
|
|
164
|
-
return [hour12, Number(hour24) < 12 ? 'am' : 'pm'];
|
|
165
|
-
}
|
|
166
|
-
// ============================================================================
|
|
167
|
-
// General utilities (from utils.ts)
|
|
168
|
-
// ============================================================================
|
|
169
|
-
const nines = ['9', '٩'];
|
|
170
|
-
const ninesRegExp = new RegExp(`[${nines.join('')}]`);
|
|
171
|
-
const amPmFormatter = getFormatter({ hour: 'numeric' });
|
|
172
|
-
function getAmPmLabels(locale) {
|
|
173
|
-
const amString = amPmFormatter(locale, new Date(2017, 0, 1, 9));
|
|
174
|
-
const pmString = amPmFormatter(locale, new Date(2017, 0, 1, 21));
|
|
175
|
-
const [am1, am2] = amString.split(ninesRegExp);
|
|
176
|
-
const [pm1, pm2] = pmString.split(ninesRegExp);
|
|
177
|
-
if (pm2 !== undefined) {
|
|
178
|
-
// If pm2 is undefined, nine was not found in pmString - this locale is not using 12-hour time
|
|
179
|
-
if (am1 !== pm1) {
|
|
180
|
-
return [am1, pm1].map((el) => el.trim());
|
|
181
|
-
}
|
|
182
|
-
if (am2 !== pm2) {
|
|
183
|
-
return [am2, pm2].map((el) => el.trim());
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
// Fallback
|
|
187
|
-
return ['AM', 'PM'];
|
|
188
|
-
}
|
|
189
|
-
function isValidNumber(num) {
|
|
190
|
-
return num !== null && num !== false && !Number.isNaN(Number(num));
|
|
191
|
-
}
|
|
192
|
-
function safeMin(...args) {
|
|
193
|
-
return Math.min(...args.filter(isValidNumber));
|
|
194
|
-
}
|
|
195
|
-
function safeMax(...args) {
|
|
196
|
-
return Math.max(...args.filter(isValidNumber));
|
|
197
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.timerComponentRenderer = exports.TimerMd = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const renderers_1 = require("../../components-core/renderers");
|
|
6
|
-
const TimerNative_1 = require("./TimerNative");
|
|
7
|
-
const metadata_helpers_1 = require("../metadata-helpers");
|
|
8
|
-
const COMP = "Timer";
|
|
9
|
-
exports.TimerMd = (0, metadata_helpers_1.createMetadata)({
|
|
10
|
-
status: "stable",
|
|
11
|
-
description: "`Timer` is a non-visual component that fires events at regular intervals. " +
|
|
12
|
-
"It can be enabled or disabled and ensures that the timer event handler " +
|
|
13
|
-
"completes before firing the next event.",
|
|
14
|
-
props: {
|
|
15
|
-
enabled: {
|
|
16
|
-
description: "Whether the timer is enabled and should fire events.",
|
|
17
|
-
valueType: "boolean",
|
|
18
|
-
defaultValue: TimerNative_1.defaultProps.enabled,
|
|
19
|
-
},
|
|
20
|
-
interval: {
|
|
21
|
-
description: "The interval in milliseconds between timer events.",
|
|
22
|
-
valueType: "number",
|
|
23
|
-
defaultValue: TimerNative_1.defaultProps.interval,
|
|
24
|
-
},
|
|
25
|
-
initialDelay: {
|
|
26
|
-
description: "The delay in milliseconds before the first timer event.",
|
|
27
|
-
valueType: "number",
|
|
28
|
-
defaultValue: TimerNative_1.defaultProps.initialDelay,
|
|
29
|
-
},
|
|
30
|
-
once: {
|
|
31
|
-
description: "Whether the timer should stop after firing its first tick event.",
|
|
32
|
-
valueType: "boolean",
|
|
33
|
-
defaultValue: TimerNative_1.defaultProps.once,
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
events: {
|
|
37
|
-
tick: {
|
|
38
|
-
description: "This event is triggered at each interval when the ${COMP} is enabled.",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
apis: {
|
|
42
|
-
pause: {
|
|
43
|
-
description: "Pauses the timer. The timer can be resumed later from where it left off.",
|
|
44
|
-
signature: "pause()",
|
|
45
|
-
},
|
|
46
|
-
resume: {
|
|
47
|
-
description: "Resumes a paused timer. If the timer is not paused, this method has no effect.",
|
|
48
|
-
signature: "resume()",
|
|
49
|
-
},
|
|
50
|
-
isPaused: {
|
|
51
|
-
description: "Returns whether the timer is currently paused.",
|
|
52
|
-
signature: "isPaused(): boolean",
|
|
53
|
-
},
|
|
54
|
-
isRunning: {
|
|
55
|
-
description: "Returns whether the timer is currently running (enabled and not paused).",
|
|
56
|
-
signature: "isRunning(): boolean",
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
exports.timerComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.TimerMd, ({ node, extractValue, lookupEventHandler, registerComponentApi }) => {
|
|
61
|
-
return ((0, jsx_runtime_1.jsx)(TimerNative_1.Timer, { enabled: extractValue.asOptionalBoolean(node.props.enabled), interval: extractValue.asOptionalNumber(node.props.interval), initialDelay: extractValue.asOptionalNumber(node.props.initialDelay), once: extractValue.asOptionalBoolean(node.props.once), onTick: lookupEventHandler("tick"), registerComponentApi: registerComponentApi }));
|
|
62
|
-
});
|
|
@@ -1,328 +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
|
-
fixtures_1.test.describe("Basic Functionality", () => {
|
|
15
|
-
(0, fixtures_1.test)("component renders with default props", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
16
|
-
yield initTestBed(`<Timer testId="timer" />`);
|
|
17
|
-
const timer = page.getByTestId("timer");
|
|
18
|
-
yield (0, fixtures_1.expect)(timer).toHaveAttribute("data-timer-enabled", "true");
|
|
19
|
-
yield (0, fixtures_1.expect)(timer).toHaveAttribute("data-timer-interval", "1000");
|
|
20
|
-
}));
|
|
21
|
-
(0, fixtures_1.test)("component renders with enabled=false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
22
|
-
yield initTestBed(`<Timer testId="timer" enabled="false" />`);
|
|
23
|
-
const timer = page.getByTestId("timer");
|
|
24
|
-
yield (0, fixtures_1.expect)(timer).toHaveAttribute("data-timer-enabled", "false");
|
|
25
|
-
yield (0, fixtures_1.expect)(timer).toHaveAttribute("data-timer-running", "false");
|
|
26
|
-
}));
|
|
27
|
-
(0, fixtures_1.test)("component renders with custom interval", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
28
|
-
yield initTestBed(`<Timer testId="timer" interval="500" />`);
|
|
29
|
-
const timer = page.getByTestId("timer");
|
|
30
|
-
yield (0, fixtures_1.expect)(timer).toHaveAttribute("data-timer-interval", "500");
|
|
31
|
-
}));
|
|
32
|
-
(0, fixtures_1.test)("component renders with once=true", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
33
|
-
yield initTestBed(`<Timer testId="timer" once="true" />`);
|
|
34
|
-
const timer = page.getByTestId("timer");
|
|
35
|
-
yield (0, fixtures_1.expect)(timer).toHaveAttribute("data-timer-once", "true");
|
|
36
|
-
}));
|
|
37
|
-
(0, fixtures_1.test)("component renders with initial delay", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
38
|
-
yield initTestBed(`<Timer testId="timer" initialDelay="500" />`);
|
|
39
|
-
const timer = page.getByTestId("timer");
|
|
40
|
-
yield (0, fixtures_1.expect)(timer).toHaveAttribute("data-timer-initial-delay", "500");
|
|
41
|
-
}));
|
|
42
|
-
(0, fixtures_1.test)("component is not visible (non-visual component)", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
43
|
-
yield initTestBed(`<Timer testId="timer" />`);
|
|
44
|
-
const timer = page.getByTestId("timer");
|
|
45
|
-
yield (0, fixtures_1.expect)(timer).not.toBeVisible();
|
|
46
|
-
}));
|
|
47
|
-
});
|
|
48
|
-
fixtures_1.test.describe.fixme("Event Handling", () => {
|
|
49
|
-
(0, fixtures_1.test)("timer tick event is called", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
50
|
-
yield initTestBed(`
|
|
51
|
-
<Fragment var.tickCount="{0}">
|
|
52
|
-
<Timer interval="800" enabled="true" onTick="tickCount++" />
|
|
53
|
-
<Text testId="counter">{tickCount}</Text>
|
|
54
|
-
</Fragment>
|
|
55
|
-
`);
|
|
56
|
-
const counter = page.getByTestId("counter");
|
|
57
|
-
// Wait for a few ticks
|
|
58
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("0");
|
|
59
|
-
// Wait for the first tick (1000ms + some buffer)
|
|
60
|
-
yield page.waitForTimeout(1200);
|
|
61
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("1");
|
|
62
|
-
// Wait for the second tick
|
|
63
|
-
yield page.waitForTimeout(1000);
|
|
64
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("2");
|
|
65
|
-
}));
|
|
66
|
-
(0, fixtures_1.test)("timer stops when enabled is false", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
67
|
-
yield initTestBed(`
|
|
68
|
-
<Fragment var.tickCount="{0}" var.timerEnabled="{true}">
|
|
69
|
-
<Timer interval="800" enabled="{timerEnabled}" onTick="tickCount++" />
|
|
70
|
-
<Button testId="stopButton" onClick="timerEnabled = false">Stop Timer</Button>
|
|
71
|
-
<Text testId="counter">{tickCount}</Text>
|
|
72
|
-
</Fragment>
|
|
73
|
-
`);
|
|
74
|
-
const counter = page.getByTestId("counter");
|
|
75
|
-
const stopButton = page.getByTestId("stopButton");
|
|
76
|
-
// Wait for the first tick
|
|
77
|
-
yield page.waitForTimeout(1200);
|
|
78
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("1");
|
|
79
|
-
// Stop the timer
|
|
80
|
-
yield stopButton.click();
|
|
81
|
-
// Wait and verify it doesn't increment
|
|
82
|
-
yield page.waitForTimeout(1500);
|
|
83
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("1");
|
|
84
|
-
}));
|
|
85
|
-
fixtures_1.test.fixme("timer prevents overlapping events", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
86
|
-
// This test verifies that a new tick event doesn't fire if the previous one hasn't completed
|
|
87
|
-
yield initTestBed(`
|
|
88
|
-
<Fragment var.tickStr="" var.processingTime="{2000}">
|
|
89
|
-
<Timer
|
|
90
|
-
interval="800"
|
|
91
|
-
enabled="true"
|
|
92
|
-
onTick="
|
|
93
|
-
tickStr += '+';
|
|
94
|
-
delay(processingTime);
|
|
95
|
-
"
|
|
96
|
-
/>
|
|
97
|
-
<Text testId="counter">{tickStr}</Text>
|
|
98
|
-
</Fragment>
|
|
99
|
-
`);
|
|
100
|
-
const counter = page.getByTestId("counter");
|
|
101
|
-
// First tick should start and take 2000ms to complete
|
|
102
|
-
// but interval is 1000ms, so second tick should not start until first completes
|
|
103
|
-
yield page.waitForTimeout(1500); // Wait for first tick to complete
|
|
104
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("+");
|
|
105
|
-
// Wait a bit more to see if overlapping was prevented
|
|
106
|
-
yield page.waitForTimeout(1500); // Should be enough for second tick to start
|
|
107
|
-
yield (0, fixtures_1.expect)(counter).toContainText("++");
|
|
108
|
-
}));
|
|
109
|
-
});
|
|
110
|
-
fixtures_1.test.describe.fixme("Initial Delay Functionality", () => {
|
|
111
|
-
(0, fixtures_1.test)("timer waits for initial delay before first tick", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
112
|
-
yield initTestBed(`
|
|
113
|
-
<Fragment var.tickStr="">
|
|
114
|
-
<Timer interval="800" initialDelay="1600" onTick="tickStr += '+'"/>
|
|
115
|
-
<Text testId="counter">{tickStr}</Text>
|
|
116
|
-
</Fragment>
|
|
117
|
-
`);
|
|
118
|
-
const counter = page.getByTestId("counter");
|
|
119
|
-
// Should not tick immediately
|
|
120
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("");
|
|
121
|
-
// Should not tick before initial delay
|
|
122
|
-
yield page.waitForTimeout(1200);
|
|
123
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("");
|
|
124
|
-
// Should tick after initial delay
|
|
125
|
-
yield page.waitForTimeout(800); // Total 2500ms, past the 2000ms initial delay + 1000ms interval
|
|
126
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("+");
|
|
127
|
-
// Should continue ticking at interval
|
|
128
|
-
yield page.waitForTimeout(800);
|
|
129
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("++");
|
|
130
|
-
}));
|
|
131
|
-
(0, fixtures_1.test)("initial delay only applies to first execution, not restarts", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
132
|
-
yield initTestBed(`
|
|
133
|
-
<Fragment var.tickStr="" var.timerEnabled="{true}">
|
|
134
|
-
<Timer
|
|
135
|
-
interval="400"
|
|
136
|
-
initialDelay="800"
|
|
137
|
-
enabled="{timerEnabled}"
|
|
138
|
-
onTick="tickStr += '+'"
|
|
139
|
-
/>
|
|
140
|
-
<Button testId="restartButton" onClick="timerEnabled = false; timerEnabled = true">Restart</Button>
|
|
141
|
-
<Text testId="counter">{tickStr}</Text>
|
|
142
|
-
</Fragment>
|
|
143
|
-
`);
|
|
144
|
-
const counter = page.getByTestId("counter");
|
|
145
|
-
const restartButton = page.getByTestId("restartButton");
|
|
146
|
-
// Wait for initial delay + first tick
|
|
147
|
-
yield page.waitForTimeout(1300);
|
|
148
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("+");
|
|
149
|
-
// Restart the timer
|
|
150
|
-
yield restartButton.click();
|
|
151
|
-
// After restart, should tick immediately without initial delay
|
|
152
|
-
yield page.waitForTimeout(500);
|
|
153
|
-
yield (0, fixtures_1.expect)(counter).toContainText("++");
|
|
154
|
-
}));
|
|
155
|
-
(0, fixtures_1.test)("initial delay works with once timer", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
156
|
-
yield initTestBed(`
|
|
157
|
-
<Fragment var.tickStr="">
|
|
158
|
-
<Timer interval="800" initialDelay="1600" once="true" onTick="tickStr += '+'"/>
|
|
159
|
-
<Text testId="counter">{tickStr}</Text>
|
|
160
|
-
</Fragment>
|
|
161
|
-
`);
|
|
162
|
-
const counter = page.getByTestId("counter");
|
|
163
|
-
// Should not tick before initial delay
|
|
164
|
-
yield page.waitForTimeout(1200);
|
|
165
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("");
|
|
166
|
-
// Should tick once after initial delay
|
|
167
|
-
yield page.waitForTimeout(1000);
|
|
168
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("+");
|
|
169
|
-
// Should not tick again
|
|
170
|
-
yield page.waitForTimeout(1000);
|
|
171
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("+");
|
|
172
|
-
}));
|
|
173
|
-
});
|
|
174
|
-
fixtures_1.test.describe.fixme("Pause and Resume API", () => {
|
|
175
|
-
(0, fixtures_1.test)("timer can be paused and resumed via API", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
176
|
-
yield initTestBed(`
|
|
177
|
-
<Fragment var.tickStr="">
|
|
178
|
-
<Timer
|
|
179
|
-
id="myTimer"
|
|
180
|
-
interval="800"
|
|
181
|
-
onTick="tickStr += '+'"
|
|
182
|
-
/>
|
|
183
|
-
<Button testId="pauseButton" onClick="myTimer.pause()">Pause</Button>
|
|
184
|
-
<Button testId="resumeButton" onClick="myTimer.resume()">Resume</Button>
|
|
185
|
-
<Text testId="counter">{tickStr}</Text>
|
|
186
|
-
</Fragment>
|
|
187
|
-
`);
|
|
188
|
-
const counter = page.getByTestId("counter");
|
|
189
|
-
const pauseButton = page.getByTestId("pauseButton");
|
|
190
|
-
const resumeButton = page.getByTestId("resumeButton");
|
|
191
|
-
// Wait for first tick
|
|
192
|
-
yield page.waitForTimeout(1000);
|
|
193
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("+");
|
|
194
|
-
// Pause the timer
|
|
195
|
-
yield pauseButton.click();
|
|
196
|
-
// Should not tick while paused
|
|
197
|
-
yield page.waitForTimeout(1000);
|
|
198
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("+");
|
|
199
|
-
// Resume the timer
|
|
200
|
-
yield resumeButton.click();
|
|
201
|
-
// Should continue ticking after resume
|
|
202
|
-
yield page.waitForTimeout(1000);
|
|
203
|
-
yield (0, fixtures_1.expect)(counter).toContainText("++");
|
|
204
|
-
}));
|
|
205
|
-
(0, fixtures_1.test)("pause state is reset when timer is disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
206
|
-
yield initTestBed(`
|
|
207
|
-
<Fragment var.tickStr="" var.timerEnabled="{true}">
|
|
208
|
-
<Timer
|
|
209
|
-
id="myTimer"
|
|
210
|
-
interval="1000"
|
|
211
|
-
enabled="{timerEnabled}"
|
|
212
|
-
onTick="tickStr += '+'"
|
|
213
|
-
/>
|
|
214
|
-
<Button testId="pauseButton" onClick="myTimer.pause()">Pause</Button>
|
|
215
|
-
<Button testId="disableButton" onClick="timerEnabled = false">Disable</Button>
|
|
216
|
-
<Button testId="enableButton" onClick="timerEnabled = true">Enable</Button>
|
|
217
|
-
<Text testId="counter">{tickStr}</Text>
|
|
218
|
-
<Text testId="paused">{myTimer.isPaused() ? 'Paused' : 'Running'}</Text>
|
|
219
|
-
</Fragment>
|
|
220
|
-
`);
|
|
221
|
-
const pauseButton = page.getByTestId("pauseButton");
|
|
222
|
-
const disableButton = page.getByTestId("disableButton");
|
|
223
|
-
const enableButton = page.getByTestId("enableButton");
|
|
224
|
-
const pausedStatus = page.getByTestId("paused");
|
|
225
|
-
// Pause the timer
|
|
226
|
-
yield pauseButton.click();
|
|
227
|
-
yield (0, fixtures_1.expect)(pausedStatus).toHaveText("Paused");
|
|
228
|
-
// Disable the timer
|
|
229
|
-
yield disableButton.click();
|
|
230
|
-
// Re-enable the timer - pause state should be reset
|
|
231
|
-
yield enableButton.click();
|
|
232
|
-
yield (0, fixtures_1.expect)(pausedStatus).toHaveText("Running");
|
|
233
|
-
}));
|
|
234
|
-
});
|
|
235
|
-
fixtures_1.test.describe("Once Functionality", () => {
|
|
236
|
-
fixtures_1.test.fixme("timer with once=true fires only once", component_test_helpers_1.SKIP_REASON.TEST_NOT_WORKING("Waiting for timeouts are bad practice because they are flaky."), (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
237
|
-
yield initTestBed(`
|
|
238
|
-
<Fragment var.tickCount="{0}">
|
|
239
|
-
<Timer interval="1000" once="true" onTick="tickCount++" />
|
|
240
|
-
<Text testId="counter">{tickCount}</Text>
|
|
241
|
-
</Fragment>
|
|
242
|
-
`);
|
|
243
|
-
const counter = page.getByTestId("counter");
|
|
244
|
-
// Wait for the first tick
|
|
245
|
-
yield page.waitForTimeout(1200);
|
|
246
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("1");
|
|
247
|
-
// Wait longer to ensure it doesn't tick again
|
|
248
|
-
yield page.waitForTimeout(2000);
|
|
249
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("1");
|
|
250
|
-
}));
|
|
251
|
-
fixtures_1.test.fixme("timer with once=true can be restarted by re-enabling", component_test_helpers_1.SKIP_REASON.TEST_NOT_WORKING("Waiting for timeouts are bad practice because they are flaky."), (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
252
|
-
yield initTestBed(`
|
|
253
|
-
<Fragment var.tickCount="{0}" var.timerEnabled="{true}">
|
|
254
|
-
<Timer interval="1000" once="true" enabled="{timerEnabled}" onTick="tickCount++" />
|
|
255
|
-
<Button testId="restartButton" onClick="timerEnabled = false; timerEnabled = true">Restart</Button>
|
|
256
|
-
<Text testId="counter">{tickCount}</Text>
|
|
257
|
-
</Fragment>
|
|
258
|
-
`);
|
|
259
|
-
const counter = page.getByTestId("counter");
|
|
260
|
-
const restartButton = page.getByTestId("restartButton");
|
|
261
|
-
// Wait for the first tick
|
|
262
|
-
yield page.waitForTimeout(1200);
|
|
263
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("1");
|
|
264
|
-
// Restart the timer
|
|
265
|
-
yield restartButton.click();
|
|
266
|
-
// Wait for another tick
|
|
267
|
-
yield page.waitForTimeout(1200);
|
|
268
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("2");
|
|
269
|
-
}));
|
|
270
|
-
fixtures_1.test.fixme("once timer doesn't interfere with regular timer functionality", component_test_helpers_1.SKIP_REASON.TEST_NOT_WORKING("Waiting for timeouts are bad practice because they are flaky."), (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
271
|
-
yield initTestBed(`
|
|
272
|
-
<Fragment var.tickStr="">
|
|
273
|
-
<Timer interval="1000" once="false" onTick="tickStr += '+'" />
|
|
274
|
-
<Text testId="counter">{tickStr}</Text>
|
|
275
|
-
</Fragment>
|
|
276
|
-
`);
|
|
277
|
-
const counter = page.getByTestId("counter");
|
|
278
|
-
// Wait for multiple ticks
|
|
279
|
-
yield page.waitForTimeout(2000);
|
|
280
|
-
yield (0, fixtures_1.expect)(counter).toContainText("+");
|
|
281
|
-
}));
|
|
282
|
-
});
|
|
283
|
-
fixtures_1.test.describe.fixme("State Management", () => {
|
|
284
|
-
(0, fixtures_1.test)("timer can be dynamically enabled and disabled", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
285
|
-
yield initTestBed(`
|
|
286
|
-
<Fragment var.tickCount="{0}" var.timerEnabled="{false}">
|
|
287
|
-
<Timer interval="800" enabled="{timerEnabled}" onTick="tickCount++" />
|
|
288
|
-
<Button testId="startButton" onClick="timerEnabled = true">Start Timer</Button>
|
|
289
|
-
<Button testId="stopButton" onClick="timerEnabled = false">Stop Timer</Button>
|
|
290
|
-
<Text testId="counter">{tickCount}</Text>
|
|
291
|
-
</Fragment>
|
|
292
|
-
`);
|
|
293
|
-
const counter = page.getByTestId("counter");
|
|
294
|
-
const startButton = page.getByTestId("startButton");
|
|
295
|
-
const stopButton = page.getByTestId("stopButton");
|
|
296
|
-
// Initially disabled - should not increment
|
|
297
|
-
yield page.waitForTimeout(1000);
|
|
298
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("0");
|
|
299
|
-
// Start the timer
|
|
300
|
-
yield startButton.click();
|
|
301
|
-
yield page.waitForTimeout(1000);
|
|
302
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("1");
|
|
303
|
-
// Stop the timer again
|
|
304
|
-
yield stopButton.click();
|
|
305
|
-
const currentCount = yield counter.textContent();
|
|
306
|
-
yield page.waitForTimeout(1000);
|
|
307
|
-
yield (0, fixtures_1.expect)(counter).toHaveText(currentCount || "1");
|
|
308
|
-
}));
|
|
309
|
-
(0, fixtures_1.test)("timer interval can be changed dynamically", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
310
|
-
yield initTestBed(`
|
|
311
|
-
<Fragment var.tickCount="{0}" var.timerInterval="{2000}">
|
|
312
|
-
<Timer interval="{timerInterval}" enabled="true" onTick="tickCount++" />
|
|
313
|
-
<Button testId="fasterButton" onClick="timerInterval = 500">Faster</Button>
|
|
314
|
-
<Text testId="counter">{tickCount}</Text>
|
|
315
|
-
</Fragment>
|
|
316
|
-
`);
|
|
317
|
-
const counter = page.getByTestId("counter");
|
|
318
|
-
const fasterButton = page.getByTestId("fasterButton");
|
|
319
|
-
// Start with 2000ms interval
|
|
320
|
-
yield page.waitForTimeout(2500);
|
|
321
|
-
yield (0, fixtures_1.expect)(counter).toHaveText("1");
|
|
322
|
-
// Change to 500ms interval
|
|
323
|
-
yield fasterButton.click();
|
|
324
|
-
yield page.waitForTimeout(1500); // Should get multiple ticks quickly
|
|
325
|
-
const finalCount = parseInt((yield counter.textContent()) || "0");
|
|
326
|
-
(0, fixtures_1.expect)(finalCount).toBeGreaterThan(1);
|
|
327
|
-
}));
|
|
328
|
-
});
|