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,613 +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
|
-
exports.evalBindingAsync = evalBindingAsync;
|
|
13
|
-
exports.executeArrowExpression = executeArrowExpression;
|
|
14
|
-
exports.completeExprValue = completeExprValue;
|
|
15
|
-
const lodash_es_1 = require("lodash-es");
|
|
16
|
-
const ScriptingSourceTree_1 = require("./ScriptingSourceTree");
|
|
17
|
-
const process_statement_async_1 = require("./process-statement-async");
|
|
18
|
-
const eval_tree_common_1 = require("./eval-tree-common");
|
|
19
|
-
const process_statement_common_1 = require("./process-statement-common");
|
|
20
|
-
const asyncProxy_1 = require("./asyncProxy");
|
|
21
|
-
const bannedFunctions_1 = require("./bannedFunctions");
|
|
22
|
-
/**
|
|
23
|
-
* Evaluates a binding represented by the specified expression
|
|
24
|
-
* @param expr Expression to evaluate
|
|
25
|
-
* @param evalContext Evaluation context to use
|
|
26
|
-
* @param thread The logical thread to use for evaluation
|
|
27
|
-
* @param onStatementCompleted Execute this function when a statement is completed
|
|
28
|
-
*/
|
|
29
|
-
function evalBindingAsync(expr, evalContext, thread) {
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
// --- Prepare the evaluation context
|
|
32
|
-
const thisStack = [];
|
|
33
|
-
(0, process_statement_common_1.ensureMainThread)(evalContext);
|
|
34
|
-
thread !== null && thread !== void 0 ? thread : (thread = evalContext.mainThread);
|
|
35
|
-
// --- Evaluate the expression using the context
|
|
36
|
-
return yield evalBindingExpressionTreeAsync(thisStack, expr, evalContext, thread !== null && thread !== void 0 ? thread : evalContext.mainThread);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Executes the specified arrow function
|
|
41
|
-
* @param expr Arrow function expression to run
|
|
42
|
-
* @param evalContext Evaluation context to use
|
|
43
|
-
* @param onStatementCompleted Execute this function when a statement is completed
|
|
44
|
-
* @param thread The logical thread to use for evaluation
|
|
45
|
-
* @param args Arguments of the arrow function to execute
|
|
46
|
-
*/
|
|
47
|
-
function executeArrowExpression(expr, evalContext, thread, ...args) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
// --- Just an extra safety check
|
|
50
|
-
if (expr.type !== ScriptingSourceTree_1.T_ARROW_EXPRESSION) {
|
|
51
|
-
throw new Error("executeArrowExpression expects an 'ArrowExpression' object.");
|
|
52
|
-
}
|
|
53
|
-
// --- This is the evaluator that an arrow expression uses internally
|
|
54
|
-
const evaluator = evalBindingExpressionTreeAsync;
|
|
55
|
-
// --- Compiles the Arrow function to a JavaScript function
|
|
56
|
-
const nativeFunction = yield createArrowFunctionAsync(evaluator, expr);
|
|
57
|
-
// --- Run the compiled arrow function. Note, we have two prefix arguments:
|
|
58
|
-
// --- #1: The names of arrow function arguments
|
|
59
|
-
// --- #2: The evaluation context the arrow function runs in
|
|
60
|
-
// --- #others: The real arguments of the arrow function
|
|
61
|
-
return yield nativeFunction(expr.args, evalContext, thread !== null && thread !== void 0 ? thread : evalContext.mainThread, ...args);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Evaluates the specified binding expression tree and retrieves the evaluated value
|
|
66
|
-
* @param expr Binding tree expression
|
|
67
|
-
* @param thisStack Stack of "this" object to use with function calls
|
|
68
|
-
* @param evalContext Evaluation context
|
|
69
|
-
* @param thread The logical thread to use for evaluation
|
|
70
|
-
* @param onStatementCompleted Execute this function when a statement is completed
|
|
71
|
-
* This code uses the JavaScript semantics and errors when evaluating the code.
|
|
72
|
-
* We use `thisStack` to keep track of the partial results of the evaluation tree so that we can set
|
|
73
|
-
* the real `this` context when invoking a function.
|
|
74
|
-
*/
|
|
75
|
-
function evalBindingExpressionTreeAsync(thisStack, expr, evalContext, thread) {
|
|
76
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
if (!evalContext.options) {
|
|
78
|
-
evalContext.options = { defaultToOptionalMemberAccess: true };
|
|
79
|
-
}
|
|
80
|
-
// --- Prepare evaluation
|
|
81
|
-
const evaluator = evalBindingExpressionTreeAsync;
|
|
82
|
-
// --- Process the expression according to its type
|
|
83
|
-
try {
|
|
84
|
-
switch (expr.type) {
|
|
85
|
-
case ScriptingSourceTree_1.T_TEMPLATE_LITERAL_EXPRESSION:
|
|
86
|
-
return evalTemplateLiteralAsync(evaluator, thisStack, expr, evalContext, thread);
|
|
87
|
-
case ScriptingSourceTree_1.T_LITERAL:
|
|
88
|
-
return (0, eval_tree_common_1.evalLiteral)(thisStack, expr, thread);
|
|
89
|
-
case ScriptingSourceTree_1.T_IDENTIFIER:
|
|
90
|
-
return (0, eval_tree_common_1.evalIdentifier)(thisStack, expr, evalContext, thread);
|
|
91
|
-
case ScriptingSourceTree_1.T_MEMBER_ACCESS_EXPRESSION:
|
|
92
|
-
return yield evalMemberAccessAsync(evaluator, thisStack, expr, evalContext, thread);
|
|
93
|
-
case ScriptingSourceTree_1.T_CALCULATED_MEMBER_ACCESS_EXPRESSION:
|
|
94
|
-
return yield evalCalculatedMemberAccessAsync(evaluator, thisStack, expr, evalContext, thread);
|
|
95
|
-
case ScriptingSourceTree_1.T_SEQUENCE_EXPRESSION:
|
|
96
|
-
return yield evalSequenceAsync(evaluator, thisStack, expr, evalContext, thread);
|
|
97
|
-
case ScriptingSourceTree_1.T_ARRAY_LITERAL:
|
|
98
|
-
return yield evalArrayLiteralAsync(evaluator, thisStack, expr, evalContext, thread);
|
|
99
|
-
case ScriptingSourceTree_1.T_OBJECT_LITERAL:
|
|
100
|
-
return yield evalObjectLiteralAsync(evaluator, thisStack, expr, evalContext, thread);
|
|
101
|
-
case ScriptingSourceTree_1.T_UNARY_EXPRESSION:
|
|
102
|
-
return yield evalUnaryAsync(evaluator, thisStack, expr, evalContext, thread);
|
|
103
|
-
case ScriptingSourceTree_1.T_BINARY_EXPRESSION:
|
|
104
|
-
return yield evalBinaryAsync(evaluator, thisStack, expr, evalContext, thread);
|
|
105
|
-
case ScriptingSourceTree_1.T_CONDITIONAL_EXPRESSION:
|
|
106
|
-
return yield evalConditionalAsync(evaluator, thisStack, expr, evalContext, thread);
|
|
107
|
-
case ScriptingSourceTree_1.T_ASSIGNMENT_EXPRESSION:
|
|
108
|
-
return yield evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thread);
|
|
109
|
-
case ScriptingSourceTree_1.T_PREFIX_OP_EXPRESSION:
|
|
110
|
-
case ScriptingSourceTree_1.T_POSTFIX_OP_EXPRESSION:
|
|
111
|
-
return yield evalPreOrPostAsync(evaluator, thisStack, expr, evalContext, thread);
|
|
112
|
-
case ScriptingSourceTree_1.T_FUNCTION_INVOCATION_EXPRESSION:
|
|
113
|
-
// --- Special async handling
|
|
114
|
-
return yield evalFunctionInvocationAsync(evaluator, thisStack, expr, evalContext, thread);
|
|
115
|
-
case ScriptingSourceTree_1.T_ARROW_EXPRESSION:
|
|
116
|
-
return (0, eval_tree_common_1.evalArrow)(thisStack, expr, thread);
|
|
117
|
-
case ScriptingSourceTree_1.T_SPREAD_EXPRESSION:
|
|
118
|
-
throw new Error("Cannot use spread expression (...) with the current intermediate value.");
|
|
119
|
-
default:
|
|
120
|
-
throw new Error(`Unknown expression tree node: ${expr.type}`);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
catch (e) {
|
|
124
|
-
//TODO decorate error with expression details (startColumn, startLine, startPosition, etc.)
|
|
125
|
-
throw e;
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function evalMemberAccessAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
130
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
-
yield evaluator(thisStack, expr.obj, evalContext, thread);
|
|
132
|
-
yield completeExprValue(expr.obj, thread);
|
|
133
|
-
// --- At this point we definitely keep the parent object on `thisStack`, as it will be the context object
|
|
134
|
-
// --- of a FunctionInvocationExpression, if that follows the MemberAccess. Other operations would call
|
|
135
|
-
// --- `thisStack.pop()` to remove the result from the previous `evalBindingExpressionTree` call.
|
|
136
|
-
return (0, eval_tree_common_1.evalMemberAccessCore)(thisStack, expr, evalContext, thread);
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
function evalCalculatedMemberAccessAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
140
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
141
|
-
yield evaluator(thisStack, expr.obj, evalContext, thread);
|
|
142
|
-
yield completeExprValue(expr.obj, thread);
|
|
143
|
-
yield evaluator(thisStack, expr.member, evalContext, thread);
|
|
144
|
-
thisStack.pop();
|
|
145
|
-
yield completeExprValue(expr.member, thread);
|
|
146
|
-
return (0, eval_tree_common_1.evalCalculatedMemberAccessCore)(thisStack, expr, evalContext, thread);
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
function evalSequenceAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
150
|
-
if (!expr.exprs || expr.exprs.length === 0) {
|
|
151
|
-
throw new Error(`Missing expression sequence`);
|
|
152
|
-
}
|
|
153
|
-
const result = expr.exprs.map((e) => __awaiter(this, void 0, void 0, function* () {
|
|
154
|
-
const value = yield evaluator(thisStack, e, evalContext, thread);
|
|
155
|
-
(0, eval_tree_common_1.setExprValue)(e, { value }, thread);
|
|
156
|
-
thisStack.pop();
|
|
157
|
-
return value;
|
|
158
|
-
}));
|
|
159
|
-
const lastObj = result[result.length - 1];
|
|
160
|
-
thisStack.push(lastObj);
|
|
161
|
-
return lastObj;
|
|
162
|
-
}
|
|
163
|
-
function evalArrayLiteralAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
164
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
-
const value = [];
|
|
166
|
-
for (const item of expr.items) {
|
|
167
|
-
if (item.type === ScriptingSourceTree_1.T_SPREAD_EXPRESSION) {
|
|
168
|
-
const spreadArray = yield evaluator(thisStack, item.expr, evalContext, thread);
|
|
169
|
-
thisStack.pop();
|
|
170
|
-
if (!Array.isArray(spreadArray)) {
|
|
171
|
-
throw new Error("Spread operator within an array literal expects an array operand.");
|
|
172
|
-
}
|
|
173
|
-
value.push(...spreadArray);
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
value.push(yield evaluator(thisStack, item, evalContext, thread));
|
|
177
|
-
thisStack.pop();
|
|
178
|
-
thisStack.push(value);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
// --- Done.
|
|
182
|
-
(0, eval_tree_common_1.setExprValue)(expr, { value }, thread);
|
|
183
|
-
thisStack.push(value);
|
|
184
|
-
return value;
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
function evalObjectLiteralAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
188
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
-
const objectHash = {};
|
|
190
|
-
for (const prop of expr.props) {
|
|
191
|
-
if (!Array.isArray(prop)) {
|
|
192
|
-
// --- We're using a spread expression
|
|
193
|
-
const spreadItems = yield evaluator(thisStack, prop.expr, evalContext, thread);
|
|
194
|
-
thisStack.pop();
|
|
195
|
-
if (Array.isArray(spreadItems)) {
|
|
196
|
-
// --- Spread of an array
|
|
197
|
-
for (let i = 0; i < spreadItems.length; i++) {
|
|
198
|
-
objectHash[i] = spreadItems[i];
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
else if (typeof spreadItems === "object") {
|
|
202
|
-
// --- Spread of a hash object
|
|
203
|
-
for (const [key, value] of Object.entries(spreadItems)) {
|
|
204
|
-
objectHash[key] = value;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
continue;
|
|
208
|
-
}
|
|
209
|
-
// --- We're using key/[value] pairs
|
|
210
|
-
let key;
|
|
211
|
-
switch (prop[0].type) {
|
|
212
|
-
case ScriptingSourceTree_1.T_LITERAL:
|
|
213
|
-
key = prop[0].value;
|
|
214
|
-
break;
|
|
215
|
-
case ScriptingSourceTree_1.T_IDENTIFIER:
|
|
216
|
-
key = prop[0].name;
|
|
217
|
-
break;
|
|
218
|
-
default:
|
|
219
|
-
key = yield evaluator(thisStack, prop[0], evalContext, thread);
|
|
220
|
-
thisStack.pop();
|
|
221
|
-
break;
|
|
222
|
-
}
|
|
223
|
-
objectHash[key] = yield evaluator(thisStack, prop[1], evalContext, thread);
|
|
224
|
-
thisStack.pop();
|
|
225
|
-
}
|
|
226
|
-
// --- Done.
|
|
227
|
-
(0, eval_tree_common_1.setExprValue)(expr, { value: objectHash }, thread);
|
|
228
|
-
thisStack.push(objectHash);
|
|
229
|
-
return objectHash;
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
function evalUnaryAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
233
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
-
yield evaluator(thisStack, expr.expr, evalContext, thread);
|
|
235
|
-
thisStack.pop();
|
|
236
|
-
yield completeExprValue(expr.expr, thread);
|
|
237
|
-
return (0, eval_tree_common_1.evalUnaryCore)(expr, thisStack, evalContext, thread);
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
function evalBinaryAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
241
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
242
|
-
yield evaluator(thisStack, expr.left, evalContext, thread);
|
|
243
|
-
thisStack.pop();
|
|
244
|
-
const l = yield completeExprValue(expr.left, thread);
|
|
245
|
-
if (expr.op === "&&" && !l) {
|
|
246
|
-
(0, eval_tree_common_1.setExprValue)(expr, { value: l }, thread);
|
|
247
|
-
thisStack.push(l);
|
|
248
|
-
return l;
|
|
249
|
-
}
|
|
250
|
-
if (expr.op === "||" && l) {
|
|
251
|
-
(0, eval_tree_common_1.setExprValue)(expr, { value: l }, thread);
|
|
252
|
-
thisStack.push(l);
|
|
253
|
-
return l;
|
|
254
|
-
}
|
|
255
|
-
yield evaluator(thisStack, expr.right, evalContext, thread);
|
|
256
|
-
thisStack.pop();
|
|
257
|
-
yield completeExprValue(expr.right, thread);
|
|
258
|
-
return (0, eval_tree_common_1.evalBinaryCore)(expr, thisStack, evalContext, thread);
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
function evalConditionalAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
262
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
263
|
-
yield evaluator(thisStack, expr.cond, evalContext, thread);
|
|
264
|
-
thisStack.pop();
|
|
265
|
-
const condition = yield completeExprValue(expr.cond, thread);
|
|
266
|
-
const value = yield evaluator(thisStack, condition ? expr.thenE : expr.elseE, evalContext, thread);
|
|
267
|
-
(0, eval_tree_common_1.setExprValue)(expr, { value }, thread);
|
|
268
|
-
return value;
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
function evalAssignmentAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
272
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
-
const leftValue = expr.leftValue;
|
|
274
|
-
const rootScope = (0, eval_tree_common_1.getRootIdScope)(leftValue, evalContext, thread);
|
|
275
|
-
const updatesState = rootScope && rootScope.type !== "block";
|
|
276
|
-
if (updatesState && evalContext.onWillUpdate) {
|
|
277
|
-
void evalContext.onWillUpdate(rootScope, rootScope.name, "assignment");
|
|
278
|
-
}
|
|
279
|
-
yield evaluator(thisStack, leftValue, evalContext, thread);
|
|
280
|
-
thisStack.pop();
|
|
281
|
-
yield completeExprValue(leftValue, thread);
|
|
282
|
-
yield evaluator(thisStack, expr.expr, evalContext, thread);
|
|
283
|
-
thisStack.pop();
|
|
284
|
-
yield completeExprValue(expr.expr, thread);
|
|
285
|
-
const value = (0, eval_tree_common_1.evalAssignmentCore)(thisStack, expr, evalContext, thread);
|
|
286
|
-
if (updatesState && evalContext.onDidUpdate) {
|
|
287
|
-
void evalContext.onDidUpdate(rootScope, rootScope.name, "assignment");
|
|
288
|
-
}
|
|
289
|
-
return value;
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
function evalPreOrPostAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
293
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
-
const rootScope = (0, eval_tree_common_1.getRootIdScope)(expr.expr, evalContext, thread);
|
|
295
|
-
const updatesState = rootScope && rootScope.type !== "block";
|
|
296
|
-
if (updatesState && evalContext.onWillUpdate) {
|
|
297
|
-
void evalContext.onWillUpdate(rootScope, rootScope.name, "pre-post");
|
|
298
|
-
}
|
|
299
|
-
yield evaluator(thisStack, expr.expr, evalContext, thread);
|
|
300
|
-
thisStack.pop();
|
|
301
|
-
yield completeExprValue(expr.expr, thread);
|
|
302
|
-
const value = (0, eval_tree_common_1.evalPreOrPostCore)(thisStack, expr, evalContext, thread);
|
|
303
|
-
if (updatesState && evalContext.onDidUpdate) {
|
|
304
|
-
void evalContext.onDidUpdate(rootScope, rootScope.name, "pre-post");
|
|
305
|
-
}
|
|
306
|
-
return value;
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
310
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
-
var _a, _b, _c, _d;
|
|
312
|
-
let functionObj;
|
|
313
|
-
let implicitContextObject = null;
|
|
314
|
-
// --- Check for contexted object
|
|
315
|
-
if (expr.obj.type === ScriptingSourceTree_1.T_MEMBER_ACCESS_EXPRESSION) {
|
|
316
|
-
const hostObject = yield evaluator(thisStack, expr.obj.obj, evalContext, thread);
|
|
317
|
-
yield completeExprValue(expr.obj.obj, thread);
|
|
318
|
-
functionObj = (0, eval_tree_common_1.evalMemberAccessCore)(thisStack, expr.obj, evalContext, thread);
|
|
319
|
-
if (expr.obj.obj.type === ScriptingSourceTree_1.T_IDENTIFIER && (hostObject === null || hostObject === void 0 ? void 0 : hostObject._SUPPORT_IMPLICIT_CONTEXT)) {
|
|
320
|
-
implicitContextObject = hostObject;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
else {
|
|
324
|
-
// --- Get the object on which to invoke the function
|
|
325
|
-
yield evaluator(thisStack, expr.obj, evalContext, thread);
|
|
326
|
-
functionObj = yield completeExprValue(expr.obj, thread);
|
|
327
|
-
}
|
|
328
|
-
thisStack.pop();
|
|
329
|
-
// --- Keep function arguments here, we pass it to the function later
|
|
330
|
-
const functionArgs = [];
|
|
331
|
-
// --- The functionObj may be an ArrowExpression. In this care we need to create the invokable arrow function
|
|
332
|
-
if (functionObj === null || functionObj === void 0 ? void 0 : functionObj._ARROW_EXPR_) {
|
|
333
|
-
functionArgs.push(functionObj.args, evalContext, thread, ...expr.arguments.map((a) => (Object.assign(Object.assign({}, a), { _EXPRESSION_: true }))));
|
|
334
|
-
functionObj = yield createArrowFunctionAsync(evaluator, functionObj);
|
|
335
|
-
}
|
|
336
|
-
else if (expr.obj.type === ScriptingSourceTree_1.T_ARROW_EXPRESSION) {
|
|
337
|
-
// --- We delay evaluating expression values. We pass the argument names as the first parameter, and then
|
|
338
|
-
// --- all parameter expressions
|
|
339
|
-
functionArgs.push(expr.obj.args.map((a) => a.name), evalContext, thread, ...expr.arguments.map((a) => (Object.assign(Object.assign({}, a), { _EXPRESSION_: true }))));
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
// --- We evaluate the argument values to pass to a JavaScript function
|
|
343
|
-
for (let i = 0; i < expr.arguments.length; i++) {
|
|
344
|
-
const arg = expr.arguments[i];
|
|
345
|
-
if (arg.type === ScriptingSourceTree_1.T_SPREAD_EXPRESSION) {
|
|
346
|
-
yield evaluator([], arg.expr, evalContext, thread);
|
|
347
|
-
const funcArg = yield completeExprValue(arg.expr, thread);
|
|
348
|
-
if (!Array.isArray(funcArg)) {
|
|
349
|
-
throw new Error("Spread operator within a function invocation expects an array operand.");
|
|
350
|
-
}
|
|
351
|
-
functionArgs.push(...funcArg);
|
|
352
|
-
}
|
|
353
|
-
else {
|
|
354
|
-
if (arg.type === ScriptingSourceTree_1.T_ARROW_EXPRESSION) {
|
|
355
|
-
const funcArg = createArrowFunctionAsync(evaluator, arg);
|
|
356
|
-
const wrappedFunc = (...args) => {
|
|
357
|
-
return funcArg(arg.args, evalContext, thread, ...args);
|
|
358
|
-
};
|
|
359
|
-
functionArgs.push(wrappedFunc);
|
|
360
|
-
}
|
|
361
|
-
else {
|
|
362
|
-
yield evaluator([], arg, evalContext, thread);
|
|
363
|
-
const funcArg = yield completeExprValue(arg, thread);
|
|
364
|
-
if (funcArg === null || funcArg === void 0 ? void 0 : funcArg._ARROW_EXPR_) {
|
|
365
|
-
const wrappedFuncArg = createArrowFunctionAsync(evaluator, funcArg);
|
|
366
|
-
const wrappedFunc = (...args) => wrappedFuncArg(funcArg.args, evalContext, thread, ...args);
|
|
367
|
-
functionArgs.push(wrappedFunc);
|
|
368
|
-
}
|
|
369
|
-
else {
|
|
370
|
-
functionArgs.push(funcArg);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
// --- We can pass implicit arguments to JavaScript function
|
|
376
|
-
if (implicitContextObject) {
|
|
377
|
-
// --- Let's obtain the implicit context
|
|
378
|
-
if (evalContext.implicitContextGetter) {
|
|
379
|
-
const implicitContext = evalContext.implicitContextGetter(implicitContextObject);
|
|
380
|
-
functionArgs.unshift(implicitContext);
|
|
381
|
-
}
|
|
382
|
-
else {
|
|
383
|
-
throw new Error("Cannot use implicitContextGetter, it is undefined");
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
// --- Check if the function is banned from running
|
|
388
|
-
const bannedInfo = (0, bannedFunctions_1.isBannedFunction)(functionObj);
|
|
389
|
-
if (bannedInfo.banned) {
|
|
390
|
-
throw new Error(`Function ${(_b = (_a = bannedInfo.func) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "unknown"} is not allowed to call. ${(_c = bannedInfo === null || bannedInfo === void 0 ? void 0 : bannedInfo.help) !== null && _c !== void 0 ? _c : ""}`);
|
|
391
|
-
}
|
|
392
|
-
// --- We use context for "this"
|
|
393
|
-
const currentContext = thisStack.length > 0 ? thisStack.pop() : evalContext.localContext;
|
|
394
|
-
// --- We need to use proxies for JavaScript functions (such as Array.prototype.filter) not supporting
|
|
395
|
-
// --- async arguments
|
|
396
|
-
functionObj = (0, asyncProxy_1.getAsyncProxy)(functionObj, functionArgs, currentContext);
|
|
397
|
-
// --- Now, invoke the function
|
|
398
|
-
const rootScope = (0, eval_tree_common_1.getRootIdScope)(expr.obj, evalContext, thread);
|
|
399
|
-
const updatesState = rootScope && rootScope.type !== "block";
|
|
400
|
-
if (updatesState && evalContext.onWillUpdate) {
|
|
401
|
-
void evalContext.onWillUpdate(rootScope, rootScope.name, "function-call");
|
|
402
|
-
}
|
|
403
|
-
const value = ((_d = evalContext.options) === null || _d === void 0 ? void 0 : _d.defaultToOptionalMemberAccess)
|
|
404
|
-
? functionObj === null || functionObj === void 0 ? void 0 : functionObj.call(currentContext, ...functionArgs)
|
|
405
|
-
: functionObj.call(currentContext, ...functionArgs);
|
|
406
|
-
let returnValue = yield completePromise(value);
|
|
407
|
-
if (updatesState && evalContext.onDidUpdate) {
|
|
408
|
-
void evalContext.onDidUpdate(rootScope, rootScope.name, "function-call");
|
|
409
|
-
}
|
|
410
|
-
// --- Done.
|
|
411
|
-
(0, eval_tree_common_1.setExprValue)(expr, { value: returnValue }, thread);
|
|
412
|
-
thisStack.push(returnValue);
|
|
413
|
-
return returnValue;
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
function createArrowFunctionAsync(evaluator, expr) {
|
|
417
|
-
// --- Use this function, it evaluates the arrow function
|
|
418
|
-
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
419
|
-
var _a, _b;
|
|
420
|
-
// --- Prepare the variables to pass
|
|
421
|
-
const runTimeEvalContext = args[1];
|
|
422
|
-
const runtimeThread = args[2];
|
|
423
|
-
// --- Create the thread that runs the arrow function
|
|
424
|
-
const workingThread = {
|
|
425
|
-
parent: runtimeThread,
|
|
426
|
-
childThreads: [],
|
|
427
|
-
blocks: [{ vars: {} }],
|
|
428
|
-
loops: [],
|
|
429
|
-
breakLabelValue: -1,
|
|
430
|
-
closures: expr.closureContext,
|
|
431
|
-
};
|
|
432
|
-
runtimeThread.childThreads.push(workingThread);
|
|
433
|
-
// --- Create a block for a named arrow function
|
|
434
|
-
if (expr.name) {
|
|
435
|
-
const functionBlock = { vars: {} };
|
|
436
|
-
(_a = workingThread.blocks) !== null && _a !== void 0 ? _a : (workingThread.blocks = []);
|
|
437
|
-
workingThread.blocks.push(functionBlock);
|
|
438
|
-
functionBlock.vars[expr.name] = expr;
|
|
439
|
-
functionBlock.constVars = new Set([expr.name]);
|
|
440
|
-
}
|
|
441
|
-
// --- Assign argument values to names
|
|
442
|
-
const arrowBlock = { vars: {} };
|
|
443
|
-
(_b = workingThread.blocks) !== null && _b !== void 0 ? _b : (workingThread.blocks = []);
|
|
444
|
-
workingThread.blocks.push(arrowBlock);
|
|
445
|
-
const argSpecs = args[0];
|
|
446
|
-
let restFound = false;
|
|
447
|
-
for (let i = 0; i < argSpecs.length; i++) {
|
|
448
|
-
// --- Turn argument specification into processable variable declarations
|
|
449
|
-
const argSpec = argSpecs[i];
|
|
450
|
-
let decl;
|
|
451
|
-
switch (argSpec.type) {
|
|
452
|
-
case ScriptingSourceTree_1.T_IDENTIFIER: {
|
|
453
|
-
decl = {
|
|
454
|
-
type: ScriptingSourceTree_1.T_VAR_DECLARATION,
|
|
455
|
-
id: argSpec.name,
|
|
456
|
-
};
|
|
457
|
-
break;
|
|
458
|
-
}
|
|
459
|
-
case ScriptingSourceTree_1.T_DESTRUCTURE: {
|
|
460
|
-
decl = {
|
|
461
|
-
type: ScriptingSourceTree_1.T_VAR_DECLARATION,
|
|
462
|
-
id: argSpec.id,
|
|
463
|
-
aDestr: argSpec.aDestr,
|
|
464
|
-
oDestr: argSpec.oDestr,
|
|
465
|
-
};
|
|
466
|
-
break;
|
|
467
|
-
}
|
|
468
|
-
case ScriptingSourceTree_1.T_SPREAD_EXPRESSION: {
|
|
469
|
-
restFound = true;
|
|
470
|
-
decl = {
|
|
471
|
-
type: ScriptingSourceTree_1.T_VAR_DECLARATION,
|
|
472
|
-
id: argSpec.expr.name,
|
|
473
|
-
};
|
|
474
|
-
break;
|
|
475
|
-
}
|
|
476
|
-
default:
|
|
477
|
-
throw new Error("Unexpected arrow argument specification");
|
|
478
|
-
}
|
|
479
|
-
if (decl) {
|
|
480
|
-
if (restFound) {
|
|
481
|
-
// --- Get the rest of the arguments
|
|
482
|
-
const restArgs = args.slice(i + 3);
|
|
483
|
-
let argVals = [];
|
|
484
|
-
for (const arg of restArgs) {
|
|
485
|
-
if (arg === null || arg === void 0 ? void 0 : arg._EXPRESSION_) {
|
|
486
|
-
argVals.push(yield evaluator([], arg, runTimeEvalContext, runtimeThread));
|
|
487
|
-
}
|
|
488
|
-
else {
|
|
489
|
-
argVals.push(arg);
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
yield (0, process_statement_async_1.processDeclarationsAsync)(arrowBlock, runTimeEvalContext, runtimeThread, [decl], false, true, argVals);
|
|
493
|
-
}
|
|
494
|
-
else {
|
|
495
|
-
// --- Get the actual value to work with
|
|
496
|
-
let argVal = args[i + 3];
|
|
497
|
-
if (argVal === null || argVal === void 0 ? void 0 : argVal._EXPRESSION_) {
|
|
498
|
-
argVal = yield evaluator([], argVal, runTimeEvalContext, runtimeThread);
|
|
499
|
-
}
|
|
500
|
-
yield (0, process_statement_async_1.processDeclarationsAsync)(arrowBlock, runTimeEvalContext, runtimeThread, [decl], false, true, argVal);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
// --- Evaluate the arrow expression body
|
|
505
|
-
let returnValue;
|
|
506
|
-
let statements;
|
|
507
|
-
switch (expr.statement.type) {
|
|
508
|
-
case ScriptingSourceTree_1.T_EMPTY_STATEMENT:
|
|
509
|
-
statements = [];
|
|
510
|
-
break;
|
|
511
|
-
case ScriptingSourceTree_1.T_EXPRESSION_STATEMENT:
|
|
512
|
-
// --- Create a new thread for the call
|
|
513
|
-
statements = [
|
|
514
|
-
{
|
|
515
|
-
type: ScriptingSourceTree_1.T_RETURN_STATEMENT,
|
|
516
|
-
expr: expr.statement.expr,
|
|
517
|
-
},
|
|
518
|
-
];
|
|
519
|
-
break;
|
|
520
|
-
case ScriptingSourceTree_1.T_BLOCK_STATEMENT:
|
|
521
|
-
// --- Create a new thread for the call
|
|
522
|
-
statements = expr.statement.stmts;
|
|
523
|
-
break;
|
|
524
|
-
default:
|
|
525
|
-
throw new Error(`Arrow expression with a body of '${expr.statement.type}' is not supported yet.`);
|
|
526
|
-
}
|
|
527
|
-
// --- Process the statement with a new processor
|
|
528
|
-
yield (0, process_statement_async_1.processStatementQueueAsync)(statements, runTimeEvalContext, workingThread);
|
|
529
|
-
// --- Return value is in a return value slot
|
|
530
|
-
returnValue = workingThread.returnValue;
|
|
531
|
-
// --- Remove the current working thread
|
|
532
|
-
const workingIndex = runtimeThread.childThreads.indexOf(workingThread);
|
|
533
|
-
if (workingIndex < 0) {
|
|
534
|
-
throw new Error("Cannot find thread to remove.");
|
|
535
|
-
}
|
|
536
|
-
runtimeThread.childThreads.splice(workingIndex, 1);
|
|
537
|
-
// --- Remove the function level block
|
|
538
|
-
workingThread.blocks.pop();
|
|
539
|
-
// --- Return the function value
|
|
540
|
-
return returnValue;
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
// --- Completes all promises within the input
|
|
544
|
-
function completePromise(input) {
|
|
545
|
-
const visited = new Map();
|
|
546
|
-
return completePromiseInternal(input);
|
|
547
|
-
function completePromiseInternal(input) {
|
|
548
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
549
|
-
// --- No need to resolve undefined or null
|
|
550
|
-
if (input === undefined || input === null)
|
|
551
|
-
return input;
|
|
552
|
-
// --- Already visited?
|
|
553
|
-
const resolved = visited.get(input);
|
|
554
|
-
if (resolved)
|
|
555
|
-
return resolved;
|
|
556
|
-
// --- Resolve the chain of promises
|
|
557
|
-
if ((0, eval_tree_common_1.isPromise)(input)) {
|
|
558
|
-
const awaited = yield input;
|
|
559
|
-
visited.set(input, awaited);
|
|
560
|
-
return completePromiseInternal(awaited);
|
|
561
|
-
}
|
|
562
|
-
// --- In any other cases, we keep the input reference
|
|
563
|
-
visited.set(input, input);
|
|
564
|
-
// --- Resolve promises within an array
|
|
565
|
-
if (Array.isArray(input)) {
|
|
566
|
-
for (let i = 0; i < input.length; i++) {
|
|
567
|
-
const completedPromise = yield completePromiseInternal(input[i]);
|
|
568
|
-
if (input[i] !== completedPromise) {
|
|
569
|
-
//prevent write if it's the same reference (can cause problems in frozen objects)
|
|
570
|
-
input.splice(i, 1, completedPromise);
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
return input;
|
|
574
|
-
}
|
|
575
|
-
// --- Resolve promises in object properties
|
|
576
|
-
if ((0, lodash_es_1.isPlainObject)(input)) {
|
|
577
|
-
for (const key of Object.keys(input)) {
|
|
578
|
-
let completedPromise = yield completePromiseInternal(input[key]);
|
|
579
|
-
if (input[key] !== completedPromise) {
|
|
580
|
-
//prevent write if it's the same reference (can cause problems in frozen objects)
|
|
581
|
-
input[key] = completedPromise;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
return input;
|
|
585
|
-
}
|
|
586
|
-
// --- Done.
|
|
587
|
-
return input;
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
function evalTemplateLiteralAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
592
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
593
|
-
const segmentValues = new Array(expr.segments.length);
|
|
594
|
-
for (let i = 0; i < expr.segments.length; ++i) {
|
|
595
|
-
yield evaluator(thisStack, expr.segments[i], evalContext, thread);
|
|
596
|
-
thisStack.pop();
|
|
597
|
-
const evaledValue = yield completeExprValue(expr.segments[i], thread);
|
|
598
|
-
segmentValues[i] = evaledValue;
|
|
599
|
-
}
|
|
600
|
-
const value = (0, eval_tree_common_1.evalTemplateLiteralCore)(segmentValues);
|
|
601
|
-
(0, eval_tree_common_1.setExprValue)(expr, { value }, thread);
|
|
602
|
-
thisStack.push(value);
|
|
603
|
-
return value;
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
function completeExprValue(expr, thread) {
|
|
607
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
608
|
-
const exprValue = (0, eval_tree_common_1.getExprValue)(expr, thread);
|
|
609
|
-
const awaited = yield completePromise(exprValue === null || exprValue === void 0 ? void 0 : exprValue.value);
|
|
610
|
-
(0, eval_tree_common_1.setExprValue)(expr, Object.assign(Object.assign({}, exprValue), { value: awaited }), thread);
|
|
611
|
-
return awaited;
|
|
612
|
-
});
|
|
613
|
-
}
|