xmlui 0.11.3 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/index.cjs +8836 -0
- package/dist/bin/index.js +8825 -0
- package/dist/lib/{apiInterceptorWorker-QiltRtq1.js → apiInterceptorWorker-dwrAyq6l.js} +126 -151
- package/dist/lib/{index-DSUDwtWN.js → index-x4orhWfi.js} +2054 -2285
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-DdH1iCH-.js → initMock-DrUirixi.js} +19 -22
- package/dist/lib/language-server-web-worker.js +13 -5
- package/dist/lib/language-server.js +11 -3
- package/dist/lib/{metadata-utils-D27cn-XB.js → metadata-utils-2bsMr4Gd.js} +57 -26
- package/dist/lib/{server-common-hq0poDwA.js → server-common-DI3W4cob.js} +4140 -3741
- package/dist/lib/syntax-textmate.js +8 -2472
- package/dist/lib/testing.d.ts +1 -0
- package/dist/lib/testing.js +20 -23
- package/dist/lib/{transform-Tooy42EB.js → transform-CQ_6R-43.js} +174 -127
- package/dist/lib/vite-xmlui-plugin.d.ts +10 -0
- package/dist/lib/vite-xmlui-plugin.js +8316 -0
- package/dist/lib/{xmlui-parser-BZZ430Wm.js → xmlui-parser-CW8YmGjO.js} +10 -11
- package/dist/lib/xmlui-parser.d.ts +2 -0
- package/dist/lib/xmlui-parser.js +2 -2
- package/dist/lib/{xmlui-serializer-D9D2mQ8m.js → xmlui-serializer-CeCcgdVR.js} +19 -19
- package/dist/lib/xmlui.d.ts +124 -2
- package/dist/lib/xmlui.js +8 -3
- package/dist/metadata/{apiInterceptorWorker-Dql7QGw2.js → apiInterceptorWorker-Wgm2_zjg.js} +124 -149
- package/dist/metadata/{collectedComponentMetadata-C8Lr9TFe.js → collectedComponentMetadata-BGdap_gu.js} +2100 -2276
- package/dist/metadata/{initMock-CWwgOjW_.js → initMock-DlJ0S4Uy.js} +19 -22
- package/dist/metadata/xmlui-metadata.css +1 -0
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +175 -4
- package/dist/standalone/xmlui-standalone.umd.js +36 -37
- package/package.json +20 -50
- package/dist/lib/vite-xmlui-plugin/index.js +0 -13968
- package/dist/lib/vite-xmlui-plugin/package.json +0 -3
- package/dist/metadata/style.css +0 -1
- package/dist/scripts/bin/bootstrap.cjs +0 -4
- package/dist/scripts/bin/build-lib.js +0 -126
- package/dist/scripts/bin/build.js +0 -266
- package/dist/scripts/bin/index.js +0 -167
- package/dist/scripts/bin/preview.js +0 -44
- package/dist/scripts/bin/start.js +0 -52
- package/dist/scripts/bin/vite-xmlui-plugin.js +0 -109
- package/dist/scripts/bin/viteConfig.js +0 -144
- package/dist/scripts/package.json +0 -285
- package/dist/scripts/src/abstractions/ActionDefs.js +0 -2
- package/dist/scripts/src/abstractions/AppContextDefs.js +0 -4
- package/dist/scripts/src/abstractions/ComponentDefs.js +0 -2
- package/dist/scripts/src/abstractions/ContainerDefs.js +0 -2
- package/dist/scripts/src/abstractions/ExtensionDefs.js +0 -2
- package/dist/scripts/src/abstractions/FunctionDefs.js +0 -2
- package/dist/scripts/src/abstractions/RendererDefs.js +0 -2
- package/dist/scripts/src/abstractions/ThemingDefs.js +0 -2
- package/dist/scripts/src/abstractions/scripting/BlockScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Compilation.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LogicalThread.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LoopScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/ScriptParserError.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Token.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScopeExp.js +0 -2
- package/dist/scripts/src/abstractions/scripting/modules.js +0 -2
- package/dist/scripts/src/components/APICall/APICall.js +0 -130
- package/dist/scripts/src/components/APICall/APICall.spec.js +0 -910
- package/dist/scripts/src/components/APICall/APICallNative.js +0 -36
- package/dist/scripts/src/components/Accordion/Accordion.js +0 -97
- package/dist/scripts/src/components/Accordion/Accordion.spec.js +0 -969
- package/dist/scripts/src/components/Accordion/AccordionContext.js +0 -20
- package/dist/scripts/src/components/Accordion/AccordionItem.js +0 -35
- package/dist/scripts/src/components/Accordion/AccordionItemNative.js +0 -95
- package/dist/scripts/src/components/Accordion/AccordionNative.js +0 -141
- package/dist/scripts/src/components/Animation/AnimationNative.js +0 -263
- package/dist/scripts/src/components/App/App.js +0 -581
- package/dist/scripts/src/components/App/App.spec.js +0 -331
- package/dist/scripts/src/components/App/AppLayoutContext.js +0 -49
- package/dist/scripts/src/components/App/AppNative.js +0 -308
- package/dist/scripts/src/components/App/AppStateContext.js +0 -9
- package/dist/scripts/src/components/App/IndexerContext.js +0 -44
- package/dist/scripts/src/components/App/LinkInfoContext.js +0 -9
- package/dist/scripts/src/components/App/SearchContext.js +0 -35
- package/dist/scripts/src/components/App/Sheet.js +0 -99
- package/dist/scripts/src/components/AppHeader/AppHeader.js +0 -58
- package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +0 -169
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +0 -72
- package/dist/scripts/src/components/AppState/AppState.js +0 -75
- package/dist/scripts/src/components/AppState/AppState.spec.js +0 -292
- package/dist/scripts/src/components/AppState/AppStateNative.js +0 -51
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +0 -109
- package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +0 -433
- package/dist/scripts/src/components/AutoComplete/AutoCompleteContext.js +0 -19
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +0 -498
- package/dist/scripts/src/components/Avatar/Avatar.js +0 -55
- package/dist/scripts/src/components/Avatar/Avatar.spec.js +0 -1514
- package/dist/scripts/src/components/Avatar/AvatarNative.js +0 -58
- package/dist/scripts/src/components/Backdrop/Backdrop.js +0 -40
- package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +0 -131
- package/dist/scripts/src/components/Backdrop/BackdropNative.js +0 -25
- package/dist/scripts/src/components/Badge/Badge.js +0 -81
- package/dist/scripts/src/components/Badge/Badge.spec.js +0 -2214
- package/dist/scripts/src/components/Badge/BadgeNative.js +0 -46
- package/dist/scripts/src/components/Bookmark/Bookmark.js +0 -48
- package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +0 -230
- package/dist/scripts/src/components/Bookmark/BookmarkNative.js +0 -55
- package/dist/scripts/src/components/Breakout/Breakout.js +0 -17
- package/dist/scripts/src/components/Breakout/Breakout.spec.js +0 -56
- package/dist/scripts/src/components/Breakout/BreakoutNative.js +0 -24
- package/dist/scripts/src/components/Button/Button-style.spec.js +0 -274
- package/dist/scripts/src/components/Button/Button.js +0 -171
- package/dist/scripts/src/components/Button/Button.spec.js +0 -425
- package/dist/scripts/src/components/Button/ButtonNative.js +0 -109
- package/dist/scripts/src/components/Card/Card.js +0 -89
- package/dist/scripts/src/components/Card/Card.spec.js +0 -150
- package/dist/scripts/src/components/Card/CardNative.js +0 -41
- package/dist/scripts/src/components/Carousel/Carousel.js +0 -133
- package/dist/scripts/src/components/Carousel/Carousel.spec.js +0 -557
- package/dist/scripts/src/components/Carousel/CarouselContext.js +0 -57
- package/dist/scripts/src/components/Carousel/CarouselItem.js +0 -15
- package/dist/scripts/src/components/Carousel/CarouselItemNative.js +0 -40
- package/dist/scripts/src/components/Carousel/CarouselNative.js +0 -195
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +0 -34
- package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +0 -169
- package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +0 -30
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.js +0 -92
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +0 -999
- package/dist/scripts/src/components/Charts/AreaChart/AreaChartNative.js +0 -127
- package/dist/scripts/src/components/Charts/BarChart/BarChart.js +0 -97
- package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +0 -597
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +0 -317
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +0 -60
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +0 -608
- package/dist/scripts/src/components/Charts/LabelList/LabelList.js +0 -41
- package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +0 -539
- package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +0 -25
- package/dist/scripts/src/components/Charts/Legend/Legend.js +0 -33
- package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +0 -558
- package/dist/scripts/src/components/Charts/Legend/LegendNative.js +0 -64
- package/dist/scripts/src/components/Charts/LineChart/LineChart.js +0 -94
- package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +0 -450
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +0 -192
- package/dist/scripts/src/components/Charts/PieChart/PieChart.js +0 -64
- package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +0 -584
- package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +0 -167
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.js +0 -92
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +0 -571
- package/dist/scripts/src/components/Charts/RadarChart/RadarChartNative.js +0 -125
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.js +0 -27
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +0 -451
- package/dist/scripts/src/components/Charts/utils/ChartProvider.js +0 -65
- package/dist/scripts/src/components/Charts/utils/abstractions.js +0 -26
- package/dist/scripts/src/components/Checkbox/Checkbox.js +0 -81
- package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +0 -969
- package/dist/scripts/src/components/CodeBlock/CodeBlock.js +0 -42
- package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +0 -196
- package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +0 -127
- package/dist/scripts/src/components/CodeBlock/highlight-code.js +0 -273
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +0 -54
- package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +0 -312
- package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +0 -86
- package/dist/scripts/src/components/Column/Column.js +0 -89
- package/dist/scripts/src/components/Column/ColumnNative.js +0 -49
- package/dist/scripts/src/components/Column/TableContext.js +0 -12
- package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/ComponentProvider.js +0 -811
- package/dist/scripts/src/components/ComponentRegistryContext.js +0 -44
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +0 -51
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +0 -531
- package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +0 -31
- package/dist/scripts/src/components/DataSource/DataSource.js +0 -124
- package/dist/scripts/src/components/DateInput/DateInput.js +0 -197
- package/dist/scripts/src/components/DateInput/DateInput.spec.js +0 -952
- package/dist/scripts/src/components/DateInput/DateInputNative.js +0 -734
- package/dist/scripts/src/components/DatePicker/DatePicker.js +0 -146
- package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +0 -394
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +0 -326
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +0 -196
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +0 -331
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +0 -146
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +0 -26
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +0 -29
- package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +0 -71
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +0 -101
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +0 -435
- package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +0 -109
- package/dist/scripts/src/components/FileInput/FileInput.js +0 -80
- package/dist/scripts/src/components/FileInput/FileInput.spec.js +0 -285
- package/dist/scripts/src/components/FileInput/FileInputNative.js +0 -161
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +0 -58
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +0 -296
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +0 -134
- package/dist/scripts/src/components/FlowLayout/FlowLayout.js +0 -65
- package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +0 -518
- package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +0 -153
- package/dist/scripts/src/components/Footer/Footer.js +0 -45
- package/dist/scripts/src/components/Footer/Footer.spec.js +0 -991
- package/dist/scripts/src/components/Footer/FooterNative.js +0 -35
- package/dist/scripts/src/components/Form/Form.js +0 -161
- package/dist/scripts/src/components/Form/Form.spec.js +0 -1719
- package/dist/scripts/src/components/Form/FormContext.js +0 -124
- package/dist/scripts/src/components/Form/FormNative.js +0 -463
- package/dist/scripts/src/components/Form/formActions.js +0 -115
- package/dist/scripts/src/components/FormItem/FormItem.js +0 -231
- package/dist/scripts/src/components/FormItem/FormItem.spec.js +0 -1022
- package/dist/scripts/src/components/FormItem/FormItemNative.js +0 -255
- package/dist/scripts/src/components/FormItem/HelperText.js +0 -27
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +0 -52
- package/dist/scripts/src/components/FormItem/Validations.js +0 -389
- package/dist/scripts/src/components/FormSection/FormSection.js +0 -56
- package/dist/scripts/src/components/Fragment/Fragment.js +0 -24
- package/dist/scripts/src/components/Fragment/Fragment.spec.js +0 -50
- package/dist/scripts/src/components/Heading/H1.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H2.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H3.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H4.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H5.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H6.spec.js +0 -66
- package/dist/scripts/src/components/Heading/Heading.js +0 -396
- package/dist/scripts/src/components/Heading/Heading.spec.js +0 -966
- package/dist/scripts/src/components/Heading/HeadingNative.js +0 -98
- package/dist/scripts/src/components/Heading/abstractions.js +0 -4
- package/dist/scripts/src/components/HoverCard/HoverCard.js +0 -18
- package/dist/scripts/src/components/HoverCard/HovercardNative.js +0 -44
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +0 -1441
- package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +0 -69
- package/dist/scripts/src/components/IFrame/IFrame.js +0 -77
- package/dist/scripts/src/components/IFrame/IFrame.spec.js +0 -527
- package/dist/scripts/src/components/IFrame/IFrameNative.js +0 -46
- package/dist/scripts/src/components/Icon/AdmonitionDanger.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionInfo.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionNote.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionTip.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionWarning.js +0 -10
- package/dist/scripts/src/components/Icon/ApiIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ArrowDropDown.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowDropUp.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowLeft.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowRight.js +0 -11
- package/dist/scripts/src/components/Icon/Attach.js +0 -10
- package/dist/scripts/src/components/Icon/Binding.js +0 -11
- package/dist/scripts/src/components/Icon/BoardIcon.js +0 -7
- package/dist/scripts/src/components/Icon/BoxIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CheckIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronDownIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronLeft.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronRight.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronUpIcon.js +0 -7
- package/dist/scripts/src/components/Icon/CodeFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CodeSandbox.js +0 -10
- package/dist/scripts/src/components/Icon/CompactListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ContentCopyIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DarkToLightIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DatabaseIcon.js +0 -11
- package/dist/scripts/src/components/Icon/DocFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DocIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DotMenuHorizontalIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DotMenuIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmailIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmptyFolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ErrorIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ExpressionIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FillPlusCricleIcon.js +0 -7
- package/dist/scripts/src/components/Icon/FilterIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/GlobeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HomeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HyperLinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/Icon.js +0 -42
- package/dist/scripts/src/components/Icon/Icon.spec.js +0 -527
- package/dist/scripts/src/components/Icon/IconNative.js +0 -127
- package/dist/scripts/src/components/Icon/ImageFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/Inspect.js +0 -10
- package/dist/scripts/src/components/Icon/LightToDark.js +0 -10
- package/dist/scripts/src/components/Icon/LinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/LooseListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/MoonIcon.js +0 -10
- package/dist/scripts/src/components/Icon/MoreOptionsIcon.js +0 -7
- package/dist/scripts/src/components/Icon/NoSortIcon.js +0 -8
- package/dist/scripts/src/components/Icon/PDFIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PenIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhoneIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhotoIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PlusIcon.js +0 -7
- package/dist/scripts/src/components/Icon/SearchIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ShareIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SortAscendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/SortDescendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/StarsIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SunIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrashIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrendingDownIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingLevelIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingUpIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TxtIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnknownFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnlinkIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UserIcon.js +0 -7
- package/dist/scripts/src/components/Icon/WarningIcon.js +0 -7
- package/dist/scripts/src/components/Icon/XlsIcon.js +0 -10
- package/dist/scripts/src/components/IconProvider.js +0 -300
- package/dist/scripts/src/components/IconRegistryContext.js +0 -318
- package/dist/scripts/src/components/Image/Image.js +0 -52
- package/dist/scripts/src/components/Image/Image.spec.js +0 -198
- package/dist/scripts/src/components/Image/ImageNative.js +0 -73
- package/dist/scripts/src/components/Input/InputAdornment.js +0 -28
- package/dist/scripts/src/components/Input/InputDivider.js +0 -35
- package/dist/scripts/src/components/Input/InputLabel.js +0 -25
- package/dist/scripts/src/components/Input/PartialInput.js +0 -155
- package/dist/scripts/src/components/Input/index.js +0 -5
- package/dist/scripts/src/components/InspectButton/InspectButton.js +0 -35
- package/dist/scripts/src/components/Items/Items.js +0 -39
- package/dist/scripts/src/components/Items/Items.spec.js +0 -397
- package/dist/scripts/src/components/Items/ItemsNative.js +0 -33
- package/dist/scripts/src/components/Link/Link.js +0 -82
- package/dist/scripts/src/components/Link/Link.spec.js +0 -894
- package/dist/scripts/src/components/Link/LinkNative.js +0 -48
- package/dist/scripts/src/components/List/List.js +0 -130
- package/dist/scripts/src/components/List/List.spec.js +0 -927
- package/dist/scripts/src/components/List/ListNative.js +0 -433
- package/dist/scripts/src/components/List/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Logo/Logo.js +0 -30
- package/dist/scripts/src/components/Logo/LogoNative.js +0 -32
- package/dist/scripts/src/components/Markdown/CodeText.js +0 -38
- package/dist/scripts/src/components/Markdown/Markdown.js +0 -143
- package/dist/scripts/src/components/Markdown/Markdown.spec.js +0 -188
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +0 -476
- package/dist/scripts/src/components/Markdown/parse-binding-expr.js +0 -60
- package/dist/scripts/src/components/Markdown/utils.js +0 -389
- package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +0 -111
- package/dist/scripts/src/components/ModalDialog/Dialog.js +0 -20
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +0 -83
- package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +0 -181
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +0 -217
- package/dist/scripts/src/components/ModalDialog/ModalVisibilityContext.js +0 -60
- package/dist/scripts/src/components/NavGroup/NavGroup.js +0 -70
- package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +0 -304
- package/dist/scripts/src/components/NavGroup/NavGroupContext.js +0 -13
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +0 -133
- package/dist/scripts/src/components/NavLink/NavLink.js +0 -86
- package/dist/scripts/src/components/NavLink/NavLink.spec.js +0 -864
- package/dist/scripts/src/components/NavLink/NavLinkNative.js +0 -73
- package/dist/scripts/src/components/NavPanel/NavPanel.js +0 -53
- package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +0 -864
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +0 -222
- package/dist/scripts/src/components/NestedApp/AppWithCodeView.js +0 -91
- package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +0 -84
- package/dist/scripts/src/components/NestedApp/NestedApp.js +0 -86
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +0 -231
- package/dist/scripts/src/components/NestedApp/Tooltip.js +0 -46
- package/dist/scripts/src/components/NestedApp/defaultProps.js +0 -12
- package/dist/scripts/src/components/NestedApp/utils.js +0 -67
- package/dist/scripts/src/components/NoResult/NoResult.js +0 -46
- package/dist/scripts/src/components/NoResult/NoResult.spec.js +0 -863
- package/dist/scripts/src/components/NoResult/NoResultNative.js +0 -31
- package/dist/scripts/src/components/NumberBox/NumberBox.js +0 -123
- package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +0 -954
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +0 -513
- package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +0 -109
- package/dist/scripts/src/components/Option/Option.js +0 -44
- package/dist/scripts/src/components/Option/Option.spec.js +0 -474
- package/dist/scripts/src/components/Option/OptionNative.js +0 -29
- package/dist/scripts/src/components/Option/OptionTypeProvider.js +0 -16
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +0 -13
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +0 -22
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +0 -80
- package/dist/scripts/src/components/Pages/Pages.js +0 -54
- package/dist/scripts/src/components/Pages/PagesNative.js +0 -57
- package/dist/scripts/src/components/Pagination/Pagination.js +0 -107
- package/dist/scripts/src/components/Pagination/Pagination.spec.js +0 -1008
- package/dist/scripts/src/components/Pagination/PaginationNative.js +0 -157
- package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +0 -24
- package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +0 -14
- package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +0 -20
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +0 -38
- package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +0 -166
- package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +0 -28
- package/dist/scripts/src/components/Queue/Queue.js +0 -85
- package/dist/scripts/src/components/Queue/Queue.spec.js +0 -624
- package/dist/scripts/src/components/Queue/QueueNative.js +0 -342
- package/dist/scripts/src/components/Queue/queueActions.js +0 -87
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +0 -61
- package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +0 -488
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +0 -158
- package/dist/scripts/src/components/RadioGroup/RadioItem.js +0 -28
- package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +0 -62
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +0 -24
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +0 -135
- package/dist/scripts/src/components/Redirect/Redirect.js +0 -31
- package/dist/scripts/src/components/Redirect/Redirect.spec.js +0 -527
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.js +0 -60
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +0 -76
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBarNative.js +0 -313
- package/dist/scripts/src/components/Select/HiddenOption.js +0 -20
- package/dist/scripts/src/components/Select/OptionContext.js +0 -12
- package/dist/scripts/src/components/Select/Select.js +0 -131
- package/dist/scripts/src/components/Select/Select.spec.js +0 -671
- package/dist/scripts/src/components/Select/SelectContext.js +0 -16
- package/dist/scripts/src/components/Select/SelectNative.js +0 -440
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +0 -25
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +0 -103
- package/dist/scripts/src/components/Slider/Slider.js +0 -115
- package/dist/scripts/src/components/Slider/Slider.spec.js +0 -643
- package/dist/scripts/src/components/Slider/SliderNative.js +0 -237
- package/dist/scripts/src/components/Slot/Slot.js +0 -17
- package/dist/scripts/src/components/Slot/Slot.spec.js +0 -368
- package/dist/scripts/src/components/SlotItem.js +0 -32
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +0 -20
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +0 -184
- package/dist/scripts/src/components/SpaceFiller/SpaceFillerNative.js +0 -10
- package/dist/scripts/src/components/Spinner/Spinner.js +0 -39
- package/dist/scripts/src/components/Spinner/Spinner.spec.js +0 -161
- package/dist/scripts/src/components/Spinner/SpinnerNative.js +0 -48
- package/dist/scripts/src/components/Splitter/HSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/Splitter.js +0 -114
- package/dist/scripts/src/components/Splitter/Splitter.spec.js +0 -631
- package/dist/scripts/src/components/Splitter/SplitterNative.js +0 -203
- package/dist/scripts/src/components/Splitter/VSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/utils.js +0 -22
- package/dist/scripts/src/components/Stack/CHStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/CVStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/HStack.spec.js +0 -67
- package/dist/scripts/src/components/Stack/Stack.js +0 -156
- package/dist/scripts/src/components/Stack/Stack.spec.js +0 -654
- package/dist/scripts/src/components/Stack/StackNative.js +0 -45
- package/dist/scripts/src/components/Stack/VStack.spec.js +0 -67
- package/dist/scripts/src/components/StickyBox/StickyBox.js +0 -34
- package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +0 -42
- package/dist/scripts/src/components/Switch/Switch.js +0 -80
- package/dist/scripts/src/components/Switch/Switch.spec.js +0 -836
- package/dist/scripts/src/components/Table/Table.js +0 -268
- package/dist/scripts/src/components/Table/Table.spec.js +0 -827
- package/dist/scripts/src/components/Table/TableNative.js +0 -670
- package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Table/useRowSelection.js +0 -454
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +0 -76
- package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +0 -838
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +0 -81
- package/dist/scripts/src/components/Tabs/TabContext.js +0 -58
- package/dist/scripts/src/components/Tabs/TabItem.js +0 -44
- package/dist/scripts/src/components/Tabs/TabItemNative.js +0 -53
- package/dist/scripts/src/components/Tabs/Tabs.js +0 -95
- package/dist/scripts/src/components/Tabs/Tabs.spec.js +0 -1237
- package/dist/scripts/src/components/Tabs/TabsNative.js +0 -137
- package/dist/scripts/src/components/Text/Text.js +0 -181
- package/dist/scripts/src/components/Text/Text.spec.js +0 -1676
- package/dist/scripts/src/components/Text/TextNative.js +0 -244
- package/dist/scripts/src/components/TextArea/TextArea.js +0 -103
- package/dist/scripts/src/components/TextArea/TextArea.spec.js +0 -794
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +0 -196
- package/dist/scripts/src/components/TextArea/TextAreaResizable.js +0 -73
- package/dist/scripts/src/components/TextArea/useComposedRef.js +0 -60
- package/dist/scripts/src/components/TextBox/TextBox.js +0 -131
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +0 -725
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +0 -142
- package/dist/scripts/src/components/Theme/NotificationToast.js +0 -64
- package/dist/scripts/src/components/Theme/Theme.js +0 -47
- package/dist/scripts/src/components/Theme/Theme.spec.js +0 -390
- package/dist/scripts/src/components/Theme/ThemeNative.js +0 -162
- package/dist/scripts/src/components/TimeInput/TimeInput.js +0 -149
- package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +0 -1160
- package/dist/scripts/src/components/TimeInput/TimeInputNative.js +0 -650
- package/dist/scripts/src/components/TimeInput/utils.js +0 -197
- package/dist/scripts/src/components/Timer/Timer.js +0 -62
- package/dist/scripts/src/components/Timer/Timer.spec.js +0 -328
- package/dist/scripts/src/components/Timer/TimerNative.js +0 -178
- package/dist/scripts/src/components/Toggle/Toggle.js +0 -172
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +0 -63
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +0 -414
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.js +0 -51
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +0 -89
- package/dist/scripts/src/components/ToneSwitch/ToneSwitchNative.js +0 -42
- package/dist/scripts/src/components/Tooltip/Tooltip.js +0 -118
- package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +0 -418
- package/dist/scripts/src/components/Tooltip/TooltipNative.js +0 -160
- package/dist/scripts/src/components/Tree/Tree-dynamic.spec.js +0 -2894
- package/dist/scripts/src/components/Tree/Tree-icons.spec.js +0 -206
- package/dist/scripts/src/components/Tree/Tree.spec.js +0 -2839
- package/dist/scripts/src/components/Tree/TreeComponent.js +0 -324
- package/dist/scripts/src/components/Tree/TreeNative.js +0 -1129
- package/dist/scripts/src/components/Tree/testData.js +0 -296
- package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +0 -49
- package/dist/scripts/src/components/TreeDisplay/TreeDisplayNative.js +0 -104
- package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +0 -64
- package/dist/scripts/src/components/VisuallyHidden.js +0 -21
- package/dist/scripts/src/components/abstractions.js +0 -341
- package/dist/scripts/src/components/chart-color-schemes.js +0 -43
- package/dist/scripts/src/components/collectedComponentMetadata.js +0 -316
- package/dist/scripts/src/components/component-utils.js +0 -29
- package/dist/scripts/src/components/container-helpers.js +0 -26
- package/dist/scripts/src/components/metadata-helpers.js +0 -269
- package/dist/scripts/src/components-core/ApiBoundComponent.js +0 -227
- package/dist/scripts/src/components-core/AppContext.js +0 -16
- package/dist/scripts/src/components-core/ComponentDecorator.js +0 -74
- package/dist/scripts/src/components-core/ComponentViewer.js +0 -69
- package/dist/scripts/src/components-core/CompoundComponent.js +0 -145
- package/dist/scripts/src/components-core/DebugViewProvider.js +0 -43
- package/dist/scripts/src/components-core/EngineError.js +0 -91
- package/dist/scripts/src/components-core/InspectorContext.js +0 -248
- package/dist/scripts/src/components-core/LoaderComponent.js +0 -109
- package/dist/scripts/src/components-core/RestApiProxy.js +0 -468
- package/dist/scripts/src/components-core/StandaloneApp.js +0 -821
- package/dist/scripts/src/components-core/StandaloneExtensionManager.js +0 -44
- package/dist/scripts/src/components-core/TableOfContentsContext.js +0 -168
- package/dist/scripts/src/components-core/abstractions/ComponentRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/LoaderRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
- package/dist/scripts/src/components-core/abstractions/treeAbstractions.js +0 -2
- package/dist/scripts/src/components-core/action/APICall.js +0 -284
- package/dist/scripts/src/components-core/action/FileDownloadAction.js +0 -80
- package/dist/scripts/src/components-core/action/FileUploadAction.js +0 -88
- package/dist/scripts/src/components-core/action/NavigateAction.js +0 -20
- package/dist/scripts/src/components-core/action/TimedAction.js +0 -21
- package/dist/scripts/src/components-core/action/actions.js +0 -15
- package/dist/scripts/src/components-core/appContext/date-functions.js +0 -24
- package/dist/scripts/src/components-core/appContext/math-function.js +0 -27
- package/dist/scripts/src/components-core/appContext/misc-utils.js +0 -14
- package/dist/scripts/src/components-core/behaviors/Behavior.js +0 -2
- package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +0 -200
- package/dist/scripts/src/components-core/component-hooks.js +0 -25
- package/dist/scripts/src/components-core/constants.js +0 -18
- package/dist/scripts/src/components-core/descriptorHelper.js +0 -96
- package/dist/scripts/src/components-core/devtools/InspectorDialog.js +0 -135
- package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +0 -8
- package/dist/scripts/src/components-core/event-handlers.js +0 -46
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +0 -247
- package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +0 -167
- package/dist/scripts/src/components-core/interception/Backend.js +0 -141
- package/dist/scripts/src/components-core/interception/Errors.js +0 -129
- package/dist/scripts/src/components-core/interception/InMemoryDb.js +0 -41
- package/dist/scripts/src/components-core/interception/IndexedDb.js +0 -205
- package/dist/scripts/src/components-core/interception/ReadonlyCollection.js +0 -145
- package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
- package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +0 -44
- package/dist/scripts/src/components-core/interception/initMock.js +0 -20
- package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +0 -9
- package/dist/scripts/src/components-core/loader/ApiLoader.js +0 -54
- package/dist/scripts/src/components-core/loader/DataLoader.js +0 -330
- package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +0 -60
- package/dist/scripts/src/components-core/loader/Loader.js +0 -159
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +0 -43
- package/dist/scripts/src/components-core/loader/PageableLoader.js +0 -272
- package/dist/scripts/src/components-core/markup-check.js +0 -279
- package/dist/scripts/src/components-core/parts.js +0 -11
- package/dist/scripts/src/components-core/renderers.js +0 -76
- package/dist/scripts/src/components-core/rendering/AppContent.js +0 -400
- package/dist/scripts/src/components-core/rendering/AppRoot.js +0 -87
- package/dist/scripts/src/components-core/rendering/AppWrapper.js +0 -49
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +0 -380
- package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +0 -166
- package/dist/scripts/src/components-core/rendering/Container.js +0 -621
- package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +0 -94
- package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +0 -65
- package/dist/scripts/src/components-core/rendering/InvalidComponent.js +0 -17
- package/dist/scripts/src/components-core/rendering/StandaloneComponent.js +0 -39
- package/dist/scripts/src/components-core/rendering/StateContainer.js +0 -350
- package/dist/scripts/src/components-core/rendering/UnknownComponent.js +0 -15
- package/dist/scripts/src/components-core/rendering/buildProxy.js +0 -58
- package/dist/scripts/src/components-core/rendering/collectFnVarDeps.js +0 -49
- package/dist/scripts/src/components-core/rendering/containers.js +0 -19
- package/dist/scripts/src/components-core/rendering/nodeUtils.js +0 -6
- package/dist/scripts/src/components-core/rendering/reducer.js +0 -160
- package/dist/scripts/src/components-core/rendering/renderChild.js +0 -82
- package/dist/scripts/src/components-core/rendering/valueExtractor.js +0 -216
- package/dist/scripts/src/components-core/reportEngineError.js +0 -62
- package/dist/scripts/src/components-core/script-runner/AttributeValueParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/BindingTreeEvaluationContext.js +0 -33
- package/dist/scripts/src/components-core/script-runner/ParameterParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/ScriptingSourceTree.js +0 -45
- package/dist/scripts/src/components-core/script-runner/asyncProxy.js +0 -96
- package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +0 -34
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +0 -613
- package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +0 -439
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +0 -522
- package/dist/scripts/src/components-core/script-runner/process-statement-async.js +0 -761
- package/dist/scripts/src/components-core/script-runner/process-statement-common.js +0 -208
- package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +0 -746
- package/dist/scripts/src/components-core/script-runner/simplify-expression.js +0 -386
- package/dist/scripts/src/components-core/script-runner/statement-queue.js +0 -63
- package/dist/scripts/src/components-core/script-runner/visitors.js +0 -369
- package/dist/scripts/src/components-core/theming/StyleContext.js +0 -133
- package/dist/scripts/src/components-core/theming/StyleRegistry.js +0 -171
- package/dist/scripts/src/components-core/theming/ThemeContext.js +0 -53
- package/dist/scripts/src/components-core/theming/ThemeProvider.js +0 -342
- package/dist/scripts/src/components-core/theming/component-layout-resolver.js +0 -153
- package/dist/scripts/src/components-core/theming/extendThemeUtils.js +0 -47
- package/dist/scripts/src/components-core/theming/hvar.js +0 -105
- package/dist/scripts/src/components-core/theming/layout-resolver.js +0 -388
- package/dist/scripts/src/components-core/theming/parse-layout-props.js +0 -136
- package/dist/scripts/src/components-core/theming/themeVars.js +0 -62
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +0 -15
- package/dist/scripts/src/components-core/theming/themes/palette.js +0 -57
- package/dist/scripts/src/components-core/theming/themes/root.js +0 -434
- package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
- package/dist/scripts/src/components-core/theming/themes/theme-colors.js +0 -561
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +0 -57
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +0 -733
- package/dist/scripts/src/components-core/theming/utils.js +0 -31
- package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +0 -41
- package/dist/scripts/src/components-core/utils/LruCache.js +0 -184
- package/dist/scripts/src/components-core/utils/actionUtils.js +0 -32
- package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
- package/dist/scripts/src/components-core/utils/base64-utils.js +0 -124
- package/dist/scripts/src/components-core/utils/compound-utils.js +0 -11
- package/dist/scripts/src/components-core/utils/css-utils.js +0 -179
- package/dist/scripts/src/components-core/utils/date-utils.js +0 -186
- package/dist/scripts/src/components-core/utils/extractParam.js +0 -281
- package/dist/scripts/src/components-core/utils/hooks.js +0 -400
- package/dist/scripts/src/components-core/utils/mergeProps.js +0 -45
- package/dist/scripts/src/components-core/utils/misc.js +0 -539
- package/dist/scripts/src/components-core/utils/request-params.js +0 -70
- package/dist/scripts/src/components-core/utils/statementUtils.js +0 -224
- package/dist/scripts/src/components-core/utils/treeUtils.js +0 -226
- package/dist/scripts/src/components-core/xmlui-parser.js +0 -548
- package/dist/scripts/src/index-standalone.js +0 -61
- package/dist/scripts/src/index.js +0 -158
- package/dist/scripts/src/language-server/server-common.js +0 -152
- package/dist/scripts/src/language-server/server-web-worker.js +0 -47
- package/dist/scripts/src/language-server/server.js +0 -42
- package/dist/scripts/src/language-server/services/common/docs-generation.js +0 -73
- package/dist/scripts/src/language-server/services/common/lsp-utils.js +0 -9
- package/dist/scripts/src/language-server/services/common/metadata-utils.js +0 -157
- package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +0 -135
- package/dist/scripts/src/language-server/services/completion.js +0 -288
- package/dist/scripts/src/language-server/services/diagnostic.js +0 -19
- package/dist/scripts/src/language-server/services/format.js +0 -430
- package/dist/scripts/src/language-server/services/hover.js +0 -164
- package/dist/scripts/src/language-server/xmlui-metadata-generated.js +0 -16276
- package/dist/scripts/src/logging/LoggerContext.js +0 -22
- package/dist/scripts/src/logging/LoggerInitializer.js +0 -14
- package/dist/scripts/src/logging/LoggerService.js +0 -60
- package/dist/scripts/src/logging/xmlui.js +0 -21
- package/dist/scripts/src/parsers/common/GenericToken.js +0 -2
- package/dist/scripts/src/parsers/common/InputStream.js +0 -59
- package/dist/scripts/src/parsers/common/utils.js +0 -19
- package/dist/scripts/src/parsers/scripting/Lexer.js +0 -1097
- package/dist/scripts/src/parsers/scripting/Parser.js +0 -2638
- package/dist/scripts/src/parsers/scripting/ParserError.js +0 -47
- package/dist/scripts/src/parsers/scripting/ScriptingNodeTypes.js +0 -50
- package/dist/scripts/src/parsers/scripting/TokenTrait.js +0 -108
- package/dist/scripts/src/parsers/scripting/TokenType.js +0 -109
- package/dist/scripts/src/parsers/scripting/code-behind-collect.js +0 -101
- package/dist/scripts/src/parsers/scripting/modules.js +0 -105
- package/dist/scripts/src/parsers/scripting/tree-visitor.js +0 -601
- package/dist/scripts/src/parsers/style-parser/StyleInputStream.js +0 -39
- package/dist/scripts/src/parsers/style-parser/StyleLexer.js +0 -623
- package/dist/scripts/src/parsers/style-parser/StyleParser.js +0 -453
- package/dist/scripts/src/parsers/style-parser/errors.js +0 -37
- package/dist/scripts/src/parsers/style-parser/source-tree.js +0 -2
- package/dist/scripts/src/parsers/style-parser/tokens.js +0 -43
- package/dist/scripts/src/parsers/xmlui-parser/CharacterCodes.js +0 -136
- package/dist/scripts/src/parsers/xmlui-parser/ParserError.js +0 -60
- package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +0 -172
- package/dist/scripts/src/parsers/xmlui-parser/fileExtensions.js +0 -6
- package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
- package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -165
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +0 -626
- package/dist/scripts/src/parsers/xmlui-parser/scanner.js +0 -415
- package/dist/scripts/src/parsers/xmlui-parser/syntax-kind.js +0 -123
- package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +0 -67
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -1131
- package/dist/scripts/src/parsers/xmlui-parser/utils.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
- package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
- package/dist/scripts/src/syntax/monaco/index.js +0 -14
- package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
- package/dist/scripts/src/syntax/textMate/index.js +0 -14
- package/dist/scripts/src/syntax/textMate/xmlui-dark.json +0 -631
- package/dist/scripts/src/syntax/textMate/xmlui-light.json +0 -565
- package/dist/scripts/src/syntax/textMate/xmlui.json +0 -564
- package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +0 -341
- package/dist/scripts/src/testing/ComponentDrivers.js +0 -1380
- package/dist/scripts/src/testing/assertions.js +0 -444
- package/dist/scripts/src/testing/component-test-helpers.js +0 -373
- package/dist/scripts/src/testing/drivers/DateInputDriver.js +0 -19
- package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +0 -10
- package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +0 -44
- package/dist/scripts/src/testing/drivers/TextBoxDriver.js +0 -20
- package/dist/scripts/src/testing/drivers/TimeInputDriver.js +0 -22
- package/dist/scripts/src/testing/drivers/TimerDriver.js +0 -64
- package/dist/scripts/src/testing/drivers/TreeDriver.js +0 -13
- package/dist/scripts/src/testing/drivers/index.js +0 -9
- package/dist/scripts/src/testing/fixtures.js +0 -519
- package/dist/scripts/src/testing/index.js +0 -69
- package/dist/scripts/src/testing/infrastructure/TestBed.js +0 -17
- package/dist/scripts/src/testing/infrastructure/main.js +0 -9
- package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +0 -266
- package/dist/scripts/src/testing/themed-app-test-helpers.js +0 -133
|
@@ -183,8 +183,7 @@ class InputStream {
|
|
|
183
183
|
}
|
|
184
184
|
// Gets the tail of the input stream
|
|
185
185
|
getTail(start) {
|
|
186
|
-
|
|
187
|
-
return ((_a = this.source) == null ? void 0 : _a.substring(start)) ?? "";
|
|
186
|
+
return this.source?.substring(start) ?? "";
|
|
188
187
|
}
|
|
189
188
|
}
|
|
190
189
|
var TokenType = /* @__PURE__ */ ((TokenType2) => {
|
|
@@ -415,8 +414,11 @@ class Lexer {
|
|
|
415
414
|
tokenType = TokenType.Unknown;
|
|
416
415
|
}
|
|
417
416
|
phaseSwitch: switch (phase) {
|
|
417
|
+
// ====================================================================
|
|
418
|
+
// Process the first character
|
|
418
419
|
case 0:
|
|
419
420
|
switch (ch) {
|
|
421
|
+
// --- Go on with whitespaces
|
|
420
422
|
case " ":
|
|
421
423
|
case " ":
|
|
422
424
|
case "\n":
|
|
@@ -424,6 +426,7 @@ class Lexer {
|
|
|
424
426
|
phase = 1;
|
|
425
427
|
tokenType = TokenType.Ws;
|
|
426
428
|
break;
|
|
429
|
+
// --- Divide, BlockComment, or EolComment
|
|
427
430
|
case "/":
|
|
428
431
|
phase = 5;
|
|
429
432
|
tokenType = TokenType.Divide;
|
|
@@ -452,14 +455,17 @@ class Lexer {
|
|
|
452
455
|
phase = 58;
|
|
453
456
|
tokenType = TokenType.BitwiseXor;
|
|
454
457
|
break;
|
|
458
|
+
// --- BitwiseOr, LogicalOr
|
|
455
459
|
case "|":
|
|
456
460
|
phase = 7;
|
|
457
461
|
tokenType = TokenType.BitwiseOr;
|
|
458
462
|
break;
|
|
463
|
+
// --- BitwiseAnd, LogicalAnd
|
|
459
464
|
case "&":
|
|
460
465
|
phase = 9;
|
|
461
466
|
tokenType = TokenType.BitwiseAnd;
|
|
462
467
|
break;
|
|
468
|
+
// --- "?", "?", or "?."
|
|
463
469
|
case "?":
|
|
464
470
|
phase = 22;
|
|
465
471
|
tokenType = TokenType.QuestionMark;
|
|
@@ -472,6 +478,7 @@ class Lexer {
|
|
|
472
478
|
return completeToken(TokenType.LParent);
|
|
473
479
|
case ")":
|
|
474
480
|
return completeToken(TokenType.RParent);
|
|
481
|
+
// --- ":" or "::"
|
|
475
482
|
case ":":
|
|
476
483
|
phase = 20;
|
|
477
484
|
tokenType = TokenType.Colon;
|
|
@@ -488,22 +495,27 @@ class Lexer {
|
|
|
488
495
|
return completeToken(TokenType.LBrace);
|
|
489
496
|
case "}":
|
|
490
497
|
return completeToken(TokenType.RBrace);
|
|
498
|
+
// --- "=","==", "===", or "=>"
|
|
491
499
|
case "=":
|
|
492
500
|
phase = 10;
|
|
493
501
|
tokenType = TokenType.Assignment;
|
|
494
502
|
break;
|
|
503
|
+
// --- "!", "!=", or "!=="
|
|
495
504
|
case "!":
|
|
496
505
|
phase = 13;
|
|
497
506
|
tokenType = TokenType.LogicalNot;
|
|
498
507
|
break;
|
|
508
|
+
// --- "<", "<=", or "<<"
|
|
499
509
|
case "<":
|
|
500
510
|
phase = 14;
|
|
501
511
|
tokenType = TokenType.LessThan;
|
|
502
512
|
break;
|
|
513
|
+
// --- ">", ">=", ">>", or ">>>"
|
|
503
514
|
case ">":
|
|
504
515
|
phase = 15;
|
|
505
516
|
tokenType = TokenType.GreaterThan;
|
|
506
517
|
break;
|
|
518
|
+
// --- Decimal or Real literal
|
|
507
519
|
case "0":
|
|
508
520
|
phase = 21;
|
|
509
521
|
tokenType = TokenType.DecimalLiteral;
|
|
@@ -512,6 +524,7 @@ class Lexer {
|
|
|
512
524
|
phase = 18;
|
|
513
525
|
tokenType = TokenType.Dot;
|
|
514
526
|
break;
|
|
527
|
+
// --- String (both " and ' are accepted as string wrappers
|
|
515
528
|
case '"':
|
|
516
529
|
case "'":
|
|
517
530
|
stringState = ch;
|
|
@@ -531,16 +544,21 @@ class Lexer {
|
|
|
531
544
|
break;
|
|
532
545
|
}
|
|
533
546
|
break;
|
|
547
|
+
// ====================================================================
|
|
548
|
+
// Process comments
|
|
549
|
+
// --- Looking for the end of whitespace
|
|
534
550
|
case 1:
|
|
535
551
|
if (ch !== " " && ch !== " " && ch !== "\r" && ch !== "\n") {
|
|
536
552
|
return makeToken();
|
|
537
553
|
}
|
|
538
554
|
break;
|
|
555
|
+
// --- Wait for an "*" that may complete a block comment
|
|
539
556
|
case 3:
|
|
540
557
|
if (ch === "*") {
|
|
541
558
|
phase = 4;
|
|
542
559
|
}
|
|
543
560
|
break;
|
|
561
|
+
// --- Wait for a "/" that may complete a block comment
|
|
544
562
|
case 4:
|
|
545
563
|
if (ch === "/") {
|
|
546
564
|
return completeToken(TokenType.BlockComment);
|
|
@@ -551,11 +569,15 @@ class Lexer {
|
|
|
551
569
|
return completeToken();
|
|
552
570
|
}
|
|
553
571
|
break;
|
|
572
|
+
// ====================================================================
|
|
573
|
+
// Process identifiers
|
|
554
574
|
case 17:
|
|
555
575
|
if (!isIdContinuation(ch)) {
|
|
556
576
|
return makeToken();
|
|
557
577
|
}
|
|
558
578
|
break;
|
|
579
|
+
// ====================================================================
|
|
580
|
+
// Process miscellaneous tokens
|
|
559
581
|
case 20:
|
|
560
582
|
return ch === ":" ? completeToken(TokenType.Global) : makeToken();
|
|
561
583
|
case 5:
|
|
@@ -686,6 +708,8 @@ class Lexer {
|
|
|
686
708
|
return makeToken();
|
|
687
709
|
case 56:
|
|
688
710
|
return ch === "=" ? completeToken(TokenType.ShiftRightAssignment) : makeToken();
|
|
711
|
+
// ====================================================================
|
|
712
|
+
// --- Literals
|
|
689
713
|
case 21:
|
|
690
714
|
if (ch === "x") {
|
|
691
715
|
phase = 23;
|
|
@@ -804,6 +828,7 @@ class Lexer {
|
|
|
804
828
|
return makeToken();
|
|
805
829
|
}
|
|
806
830
|
break;
|
|
831
|
+
// A dollar sign is also a valid variable name. When it isn't a dollar left brace, we continue as if it was an identifier
|
|
807
832
|
case 6:
|
|
808
833
|
if (ch === "{") {
|
|
809
834
|
return completeToken(TokenType.DollarLBrace);
|
|
@@ -856,6 +881,7 @@ class Lexer {
|
|
|
856
881
|
tokenType = TokenType.Unknown;
|
|
857
882
|
}
|
|
858
883
|
break;
|
|
884
|
+
// Start of string character escape
|
|
859
885
|
case 36:
|
|
860
886
|
switch (ch) {
|
|
861
887
|
case "b":
|
|
@@ -883,6 +909,7 @@ class Lexer {
|
|
|
883
909
|
break;
|
|
884
910
|
}
|
|
885
911
|
break;
|
|
912
|
+
// --- First hexadecimal digit of string character escape
|
|
886
913
|
case 37:
|
|
887
914
|
if (isHexadecimalDigit(ch)) {
|
|
888
915
|
phase = 38;
|
|
@@ -890,6 +917,7 @@ class Lexer {
|
|
|
890
917
|
return completeToken(TokenType.Unknown);
|
|
891
918
|
}
|
|
892
919
|
break;
|
|
920
|
+
// --- Second hexadecimal digit of character escape
|
|
893
921
|
case 38:
|
|
894
922
|
if (isHexadecimalDigit(ch)) {
|
|
895
923
|
phase = 35;
|
|
@@ -897,6 +925,7 @@ class Lexer {
|
|
|
897
925
|
return completeToken(TokenType.Unknown);
|
|
898
926
|
}
|
|
899
927
|
break;
|
|
928
|
+
// --- First hexadecimal digit of Unicode string character escape
|
|
900
929
|
case 39:
|
|
901
930
|
if (ch === "{") {
|
|
902
931
|
phase = 43;
|
|
@@ -908,6 +937,7 @@ class Lexer {
|
|
|
908
937
|
return completeToken(TokenType.Unknown);
|
|
909
938
|
}
|
|
910
939
|
break;
|
|
940
|
+
// --- Second hexadecimal digit of Unicode string character escape
|
|
911
941
|
case 40:
|
|
912
942
|
if (isHexadecimalDigit(ch)) {
|
|
913
943
|
phase = 41;
|
|
@@ -915,6 +945,7 @@ class Lexer {
|
|
|
915
945
|
return completeToken(TokenType.Unknown);
|
|
916
946
|
}
|
|
917
947
|
break;
|
|
948
|
+
// --- Third hexadecimal digit of Unicode string character escape
|
|
918
949
|
case 41:
|
|
919
950
|
if (isHexadecimalDigit(ch)) {
|
|
920
951
|
phase = 42;
|
|
@@ -922,6 +953,7 @@ class Lexer {
|
|
|
922
953
|
return completeToken(TokenType.Unknown);
|
|
923
954
|
}
|
|
924
955
|
break;
|
|
956
|
+
// --- Fourth hexadecimal digit of Unicode string character escape
|
|
925
957
|
case 42:
|
|
926
958
|
if (isHexadecimalDigit(ch)) {
|
|
927
959
|
phase = 35;
|
|
@@ -929,6 +961,7 @@ class Lexer {
|
|
|
929
961
|
return completeToken(TokenType.Unknown);
|
|
930
962
|
}
|
|
931
963
|
break;
|
|
964
|
+
// --- First hexadecimal digit of Unicode codepoint string character escape
|
|
932
965
|
case 43:
|
|
933
966
|
if (isHexadecimalDigit(ch)) {
|
|
934
967
|
phase = 44;
|
|
@@ -936,6 +969,7 @@ class Lexer {
|
|
|
936
969
|
return completeToken(TokenType.Unknown);
|
|
937
970
|
}
|
|
938
971
|
break;
|
|
972
|
+
// --- Second hexadecimal digit of Unicode codepoint string character escape
|
|
939
973
|
case 44:
|
|
940
974
|
if (ch === "}") {
|
|
941
975
|
phase = 35;
|
|
@@ -945,6 +979,7 @@ class Lexer {
|
|
|
945
979
|
return completeToken(TokenType.Unknown);
|
|
946
980
|
}
|
|
947
981
|
break;
|
|
982
|
+
// --- Third hexadecimal digit of Unicode codepoint string character escape
|
|
948
983
|
case 45:
|
|
949
984
|
if (ch === "}") {
|
|
950
985
|
phase = 35;
|
|
@@ -954,6 +989,7 @@ class Lexer {
|
|
|
954
989
|
return completeToken(TokenType.Unknown);
|
|
955
990
|
}
|
|
956
991
|
break;
|
|
992
|
+
// --- Fourth hexadecimal digit of Unicode codepoint string character escape
|
|
957
993
|
case 46:
|
|
958
994
|
if (ch === "}") {
|
|
959
995
|
phase = 35;
|
|
@@ -963,6 +999,7 @@ class Lexer {
|
|
|
963
999
|
return completeToken(TokenType.Unknown);
|
|
964
1000
|
}
|
|
965
1001
|
break;
|
|
1002
|
+
// --- Fifth hexadecimal digit of Unicode codepoint string character escape
|
|
966
1003
|
case 47:
|
|
967
1004
|
if (ch === "}") {
|
|
968
1005
|
phase = 35;
|
|
@@ -972,6 +1009,7 @@ class Lexer {
|
|
|
972
1009
|
return completeToken(TokenType.Unknown);
|
|
973
1010
|
}
|
|
974
1011
|
break;
|
|
1012
|
+
// --- Sixth hexadecimal digit of Unicode codepoint string character escape
|
|
975
1013
|
case 48:
|
|
976
1014
|
if (ch === "}") {
|
|
977
1015
|
phase = 35;
|
|
@@ -981,6 +1019,7 @@ class Lexer {
|
|
|
981
1019
|
return completeToken(TokenType.Unknown);
|
|
982
1020
|
}
|
|
983
1021
|
break;
|
|
1022
|
+
// --- Closing bracket of Unicode codepoint string character escape
|
|
984
1023
|
case 49:
|
|
985
1024
|
if (ch === "}") {
|
|
986
1025
|
phase = 35;
|
|
@@ -988,6 +1027,8 @@ class Lexer {
|
|
|
988
1027
|
return completeToken(TokenType.Unknown);
|
|
989
1028
|
}
|
|
990
1029
|
break;
|
|
1030
|
+
// ====================================================================
|
|
1031
|
+
// --- We cannot continue
|
|
991
1032
|
default:
|
|
992
1033
|
return makeToken();
|
|
993
1034
|
}
|
|
@@ -3931,7 +3972,6 @@ class Parser {
|
|
|
3931
3972
|
}
|
|
3932
3973
|
}
|
|
3933
3974
|
convertToArrayDestructure(seq) {
|
|
3934
|
-
var _a;
|
|
3935
3975
|
const items = seq.type === T_SEQUENCE_EXPRESSION ? seq.exprs : seq.items;
|
|
3936
3976
|
const result = this.createExpressionNode(
|
|
3937
3977
|
T_DESTRUCTURE,
|
|
@@ -4006,12 +4046,11 @@ class Parser {
|
|
|
4006
4046
|
this.reportError("W017");
|
|
4007
4047
|
return null;
|
|
4008
4048
|
}
|
|
4009
|
-
if (arrayD)
|
|
4049
|
+
if (arrayD) result.aDestr?.push(arrayD);
|
|
4010
4050
|
}
|
|
4011
4051
|
return result;
|
|
4012
4052
|
}
|
|
4013
4053
|
convertToObjectDestructure(objLit) {
|
|
4014
|
-
var _a;
|
|
4015
4054
|
const result = this.createExpressionNode(
|
|
4016
4055
|
T_DESTRUCTURE,
|
|
4017
4056
|
{ oDestr: [] },
|
|
@@ -4100,7 +4139,7 @@ class Parser {
|
|
|
4100
4139
|
this.reportError("W018");
|
|
4101
4140
|
return null;
|
|
4102
4141
|
}
|
|
4103
|
-
if (objD)
|
|
4142
|
+
if (objD) result.oDestr?.push(objD);
|
|
4104
4143
|
}
|
|
4105
4144
|
return result;
|
|
4106
4145
|
}
|
|
@@ -4108,8 +4147,7 @@ class Parser {
|
|
|
4108
4147
|
* Tests if the specified token can be the start of an expression
|
|
4109
4148
|
*/
|
|
4110
4149
|
isExpressionStart(token) {
|
|
4111
|
-
|
|
4112
|
-
return ((_a = tokenTraits[token.type]) == null ? void 0 : _a.expressionStart) ?? false;
|
|
4150
|
+
return tokenTraits[token.type]?.expressionStart ?? false;
|
|
4113
4151
|
}
|
|
4114
4152
|
}
|
|
4115
4153
|
var SyntaxKind = /* @__PURE__ */ ((SyntaxKind2) => {
|
|
@@ -4214,7 +4252,6 @@ function assertUnreachable(x) {
|
|
|
4214
4252
|
throw new Error("Didn't expect to get here");
|
|
4215
4253
|
}
|
|
4216
4254
|
function toDbgString(node, getText, indentationLvl = 0) {
|
|
4217
|
-
var _a;
|
|
4218
4255
|
const prefix = `${" ".repeat(indentationLvl)} ${getSyntaxKindStrRepr(node.kind)} @${node.start}..${node.end}`;
|
|
4219
4256
|
if (!isInnerNode(node.kind)) {
|
|
4220
4257
|
let tokenText = getText(node);
|
|
@@ -4223,13 +4260,12 @@ function toDbgString(node, getText, indentationLvl = 0) {
|
|
|
4223
4260
|
}
|
|
4224
4261
|
return prefix + ` "${tokenText}"`;
|
|
4225
4262
|
} else {
|
|
4226
|
-
return prefix + "\n" +
|
|
4263
|
+
return prefix + "\n" + node.children?.map((c) => toDbgString(c, getText, indentationLvl + 1)).join("\n");
|
|
4227
4264
|
}
|
|
4228
4265
|
}
|
|
4229
4266
|
function tagNameNodesWithoutErrorsMatch(name1, name2, getText) {
|
|
4230
|
-
|
|
4231
|
-
const
|
|
4232
|
-
const children2 = ((_b = name2.children) == null ? void 0 : _b.filter((c) => c.kind !== SyntaxKind.ErrorNode)) ?? [];
|
|
4267
|
+
const children1 = name1.children?.filter((c) => c.kind !== SyntaxKind.ErrorNode) ?? [];
|
|
4268
|
+
const children2 = name2.children?.filter((c) => c.kind !== SyntaxKind.ErrorNode) ?? [];
|
|
4233
4269
|
if (children1.length !== children2.length) {
|
|
4234
4270
|
return false;
|
|
4235
4271
|
}
|
|
@@ -4288,16 +4324,15 @@ function findLastToken(node) {
|
|
|
4288
4324
|
}
|
|
4289
4325
|
class Node {
|
|
4290
4326
|
constructor(kind, pos, end, triviaBefore, children) {
|
|
4291
|
-
var _a, _b;
|
|
4292
4327
|
this.kind = kind;
|
|
4293
4328
|
this.pos = pos;
|
|
4294
4329
|
this.end = end;
|
|
4295
4330
|
this.triviaBefore = triviaBefore;
|
|
4296
4331
|
this.children = children;
|
|
4297
4332
|
if (triviaBefore) {
|
|
4298
|
-
this.start =
|
|
4333
|
+
this.start = triviaBefore[0]?.start ?? pos;
|
|
4299
4334
|
} else if (children) {
|
|
4300
|
-
this.start =
|
|
4335
|
+
this.start = children[0]?.start ?? pos;
|
|
4301
4336
|
} else {
|
|
4302
4337
|
this.start = pos;
|
|
4303
4338
|
}
|
|
@@ -4308,6 +4343,9 @@ class Node {
|
|
|
4308
4343
|
isAttributeNode() {
|
|
4309
4344
|
return this.kind === SyntaxKind.AttributeNode;
|
|
4310
4345
|
}
|
|
4346
|
+
isTagLike() {
|
|
4347
|
+
return this.kind === SyntaxKind.ElementNode || this.kind === SyntaxKind.CData || this.kind == SyntaxKind.Script;
|
|
4348
|
+
}
|
|
4311
4349
|
isAttributeKeyNode() {
|
|
4312
4350
|
return this.kind === SyntaxKind.AttributeKeyNode;
|
|
4313
4351
|
}
|
|
@@ -4323,6 +4361,15 @@ class Node {
|
|
|
4323
4361
|
findTokenAtPos(position) {
|
|
4324
4362
|
return findTokenAtPos(this, position);
|
|
4325
4363
|
}
|
|
4364
|
+
getTriviaNodes() {
|
|
4365
|
+
if (this.pos === this.start) {
|
|
4366
|
+
return null;
|
|
4367
|
+
} else if (this.triviaBefore) {
|
|
4368
|
+
return this.triviaBefore;
|
|
4369
|
+
} else {
|
|
4370
|
+
return this.children[0].getTriviaNodes();
|
|
4371
|
+
}
|
|
4372
|
+
}
|
|
4326
4373
|
}
|
|
4327
4374
|
class ElementNode extends Node {
|
|
4328
4375
|
getAttributeListNode() {
|
|
@@ -4688,6 +4735,7 @@ function createScanner(skipTrivia, textInitial, onError, start, length) {
|
|
|
4688
4735
|
}
|
|
4689
4736
|
const ch = codePointUnchecked(pos);
|
|
4690
4737
|
switch (ch) {
|
|
4738
|
+
// --- Collect line break
|
|
4691
4739
|
case CharacterCodes.lineFeed:
|
|
4692
4740
|
case CharacterCodes.carriageReturn:
|
|
4693
4741
|
if (skipTrivia) {
|
|
@@ -4701,6 +4749,7 @@ function createScanner(skipTrivia, textInitial, onError, start, length) {
|
|
|
4701
4749
|
}
|
|
4702
4750
|
return token = SyntaxKind.NewLineTrivia;
|
|
4703
4751
|
}
|
|
4752
|
+
// --- Collect whitespace
|
|
4704
4753
|
case CharacterCodes.tab:
|
|
4705
4754
|
case CharacterCodes.verticalTab:
|
|
4706
4755
|
case CharacterCodes.formFeed:
|
|
@@ -4732,11 +4781,13 @@ function createScanner(skipTrivia, textInitial, onError, start, length) {
|
|
|
4732
4781
|
}
|
|
4733
4782
|
return token = SyntaxKind.WhitespaceTrivia;
|
|
4734
4783
|
}
|
|
4784
|
+
// --- Collect string literal
|
|
4735
4785
|
case CharacterCodes.doubleQuote:
|
|
4736
4786
|
case CharacterCodes.singleQuote:
|
|
4737
4787
|
case CharacterCodes.backtick:
|
|
4738
4788
|
tokenValue = scanString();
|
|
4739
4789
|
return token = SyntaxKind.StringLiteral;
|
|
4790
|
+
// --- Collext XML entities
|
|
4740
4791
|
case CharacterCodes.ampersand:
|
|
4741
4792
|
if (charCodeUnchecked(pos + 1) === CharacterCodes.a && charCodeUnchecked(pos + 2) === CharacterCodes.m && charCodeUnchecked(pos + 3) === CharacterCodes.p && charCodeUnchecked(pos + 4) === CharacterCodes.semicolon) {
|
|
4742
4793
|
pos += 5;
|
|
@@ -4757,12 +4808,15 @@ function createScanner(skipTrivia, textInitial, onError, start, length) {
|
|
|
4757
4808
|
pos++;
|
|
4758
4809
|
error(Diag_Invalid_Character, 1);
|
|
4759
4810
|
return token = SyntaxKind.Unknown;
|
|
4811
|
+
// --- Collect equal token
|
|
4760
4812
|
case CharacterCodes.equals:
|
|
4761
4813
|
pos++;
|
|
4762
4814
|
return token = SyntaxKind.Equal;
|
|
4815
|
+
// --- Collect colon token
|
|
4763
4816
|
case CharacterCodes.colon:
|
|
4764
4817
|
pos++;
|
|
4765
4818
|
return token = SyntaxKind.Colon;
|
|
4819
|
+
// --- Collect tokens starting with '<'
|
|
4766
4820
|
case CharacterCodes.lessThan:
|
|
4767
4821
|
if (charCodeUnchecked(pos + 1) === CharacterCodes.slash) {
|
|
4768
4822
|
pos += 2;
|
|
@@ -4820,6 +4874,7 @@ function createScanner(skipTrivia, textInitial, onError, start, length) {
|
|
|
4820
4874
|
pos++;
|
|
4821
4875
|
error(Diag_Invalid_Character, 1);
|
|
4822
4876
|
return token = SyntaxKind.Unknown;
|
|
4877
|
+
// --- Collect node closing token
|
|
4823
4878
|
case CharacterCodes.greaterThan:
|
|
4824
4879
|
pos++;
|
|
4825
4880
|
return token = SyntaxKind.NodeEnd;
|
|
@@ -5029,6 +5084,9 @@ function parseXmlUiMarkup(text) {
|
|
|
5029
5084
|
case SyntaxKind.OpenNodeStart:
|
|
5030
5085
|
parseOpeningTag();
|
|
5031
5086
|
break;
|
|
5087
|
+
case SyntaxKind.TextNode:
|
|
5088
|
+
bumpAny();
|
|
5089
|
+
break;
|
|
5032
5090
|
case SyntaxKind.CloseNodeStart: {
|
|
5033
5091
|
const errNode2 = errNodeUntil(RECOVER_FILE);
|
|
5034
5092
|
errorAt(DIAGS.unexpectedCloseTag, errNode2.pos, errNode2.end);
|
|
@@ -5133,6 +5191,7 @@ function parseXmlUiMarkup(text) {
|
|
|
5133
5191
|
loop: while (true) {
|
|
5134
5192
|
switch (peek().kind) {
|
|
5135
5193
|
case SyntaxKind.EndOfFileToken:
|
|
5194
|
+
// same as RECOVER_OPEN_TAG
|
|
5136
5195
|
case SyntaxKind.OpenNodeStart:
|
|
5137
5196
|
case SyntaxKind.NodeEnd:
|
|
5138
5197
|
case SyntaxKind.NodeClose:
|
|
@@ -5375,7 +5434,7 @@ function parseXmlUiMarkup(text) {
|
|
|
5375
5434
|
return token;
|
|
5376
5435
|
}
|
|
5377
5436
|
const trivia = token.triviaBefore;
|
|
5378
|
-
const triviaLength =
|
|
5437
|
+
const triviaLength = trivia?.length ?? 0;
|
|
5379
5438
|
let i = 0;
|
|
5380
5439
|
let leadingComments = [];
|
|
5381
5440
|
let firstNonCommentTriviaIdx = -1;
|
|
@@ -5414,7 +5473,6 @@ function parseXmlUiMarkup(text) {
|
|
|
5414
5473
|
let triviaBefore = void 0;
|
|
5415
5474
|
if (leadingComments.length > 0) {
|
|
5416
5475
|
triviaBefore = leadingComments;
|
|
5417
|
-
leadingComments[0].pos;
|
|
5418
5476
|
}
|
|
5419
5477
|
let kind = SyntaxKind.TextNode;
|
|
5420
5478
|
let end = -1;
|
|
@@ -5554,7 +5612,7 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5554
5612
|
}
|
|
5555
5613
|
switch (subject.type) {
|
|
5556
5614
|
case T_BLOCK_STATEMENT: {
|
|
5557
|
-
state =
|
|
5615
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5558
5616
|
if (state.cancel) return state;
|
|
5559
5617
|
if (!state.skipChildren) {
|
|
5560
5618
|
for (const statement of subject.stmts) {
|
|
@@ -5562,28 +5620,28 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5562
5620
|
if (state.cancel) return state;
|
|
5563
5621
|
}
|
|
5564
5622
|
}
|
|
5565
|
-
state =
|
|
5623
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5566
5624
|
return state;
|
|
5567
5625
|
}
|
|
5568
5626
|
case T_EMPTY_STATEMENT: {
|
|
5569
|
-
state =
|
|
5627
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5570
5628
|
return state;
|
|
5571
5629
|
}
|
|
5572
5630
|
case T_EXPRESSION_STATEMENT: {
|
|
5573
|
-
state =
|
|
5631
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5574
5632
|
if (state.cancel) return state;
|
|
5575
5633
|
if (!state.skipChildren) {
|
|
5576
5634
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "expression");
|
|
5577
5635
|
if (state.cancel) return state;
|
|
5578
5636
|
}
|
|
5579
|
-
state =
|
|
5637
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5580
5638
|
return state;
|
|
5581
5639
|
}
|
|
5582
5640
|
case T_ARROW_EXPRESSION_STATEMENT: {
|
|
5583
5641
|
return state;
|
|
5584
5642
|
}
|
|
5585
5643
|
case T_LET_STATEMENT: {
|
|
5586
|
-
state =
|
|
5644
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5587
5645
|
if (state.cancel) return state;
|
|
5588
5646
|
if (!state.skipChildren) {
|
|
5589
5647
|
for (const declaration of subject.decls) {
|
|
@@ -5591,11 +5649,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5591
5649
|
if (state.cancel) return state;
|
|
5592
5650
|
}
|
|
5593
5651
|
}
|
|
5594
|
-
state =
|
|
5652
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5595
5653
|
return state;
|
|
5596
5654
|
}
|
|
5597
5655
|
case T_CONST_STATEMENT: {
|
|
5598
|
-
state =
|
|
5656
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5599
5657
|
if (state.cancel) return state;
|
|
5600
5658
|
if (!state.skipChildren) {
|
|
5601
5659
|
for (const declaration of subject.decls) {
|
|
@@ -5603,11 +5661,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5603
5661
|
if (state.cancel) return state;
|
|
5604
5662
|
}
|
|
5605
5663
|
}
|
|
5606
|
-
state =
|
|
5664
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5607
5665
|
return state;
|
|
5608
5666
|
}
|
|
5609
5667
|
case T_VAR_STATEMENT: {
|
|
5610
|
-
state =
|
|
5668
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5611
5669
|
if (state.cancel) return state;
|
|
5612
5670
|
if (!state.skipChildren) {
|
|
5613
5671
|
for (const declaration of subject.decls) {
|
|
@@ -5615,11 +5673,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5615
5673
|
if (state.cancel) return state;
|
|
5616
5674
|
}
|
|
5617
5675
|
}
|
|
5618
|
-
state =
|
|
5676
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5619
5677
|
return state;
|
|
5620
5678
|
}
|
|
5621
5679
|
case T_IF_STATEMENT: {
|
|
5622
|
-
state =
|
|
5680
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5623
5681
|
if (state.cancel) return state;
|
|
5624
5682
|
if (!state.skipChildren) {
|
|
5625
5683
|
state = visitNode(subject.cond, state, stmtVisitor, exprVisitor, subject, "condition");
|
|
@@ -5633,11 +5691,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5633
5691
|
}
|
|
5634
5692
|
if (state.cancel) return state;
|
|
5635
5693
|
}
|
|
5636
|
-
state =
|
|
5694
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5637
5695
|
return state;
|
|
5638
5696
|
}
|
|
5639
5697
|
case T_RETURN_STATEMENT: {
|
|
5640
|
-
state =
|
|
5698
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5641
5699
|
if (state.cancel) return state;
|
|
5642
5700
|
if (!state.skipChildren) {
|
|
5643
5701
|
if (subject.expr) {
|
|
@@ -5645,19 +5703,19 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5645
5703
|
}
|
|
5646
5704
|
if (state.cancel) return state;
|
|
5647
5705
|
}
|
|
5648
|
-
state =
|
|
5706
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5649
5707
|
return state;
|
|
5650
5708
|
}
|
|
5651
5709
|
case T_BREAK_STATEMENT: {
|
|
5652
|
-
state =
|
|
5710
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5653
5711
|
return state;
|
|
5654
5712
|
}
|
|
5655
5713
|
case T_CONTINUE_STATEMENT: {
|
|
5656
|
-
state =
|
|
5714
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5657
5715
|
return state;
|
|
5658
5716
|
}
|
|
5659
5717
|
case T_WHILE_STATEMENT: {
|
|
5660
|
-
state =
|
|
5718
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5661
5719
|
if (state.cancel) return state;
|
|
5662
5720
|
if (!state.skipChildren) {
|
|
5663
5721
|
state = visitNode(subject.cond, state, stmtVisitor, exprVisitor, subject, "condition");
|
|
@@ -5665,11 +5723,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5665
5723
|
state = visitNode(subject.body, state, stmtVisitor, exprVisitor, subject, "body");
|
|
5666
5724
|
if (state.cancel) return state;
|
|
5667
5725
|
}
|
|
5668
|
-
state =
|
|
5726
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5669
5727
|
return state;
|
|
5670
5728
|
}
|
|
5671
5729
|
case T_DO_WHILE_STATEMENT: {
|
|
5672
|
-
state =
|
|
5730
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5673
5731
|
if (state.cancel) return state;
|
|
5674
5732
|
if (!state.skipChildren) {
|
|
5675
5733
|
state = visitNode(subject.body, state, stmtVisitor, exprVisitor, subject, "body");
|
|
@@ -5677,11 +5735,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5677
5735
|
state = visitNode(subject.cond, state, stmtVisitor, exprVisitor, subject, "condition");
|
|
5678
5736
|
if (state.cancel) return state;
|
|
5679
5737
|
}
|
|
5680
|
-
state =
|
|
5738
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5681
5739
|
return state;
|
|
5682
5740
|
}
|
|
5683
5741
|
case T_FOR_STATEMENT: {
|
|
5684
|
-
state =
|
|
5742
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5685
5743
|
if (state.cancel) return state;
|
|
5686
5744
|
if (!state.skipChildren) {
|
|
5687
5745
|
if (subject.init) {
|
|
@@ -5699,11 +5757,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5699
5757
|
state = visitNode(subject.body, state, stmtVisitor, exprVisitor, subject, "body");
|
|
5700
5758
|
if (state.cancel) return state;
|
|
5701
5759
|
}
|
|
5702
|
-
state =
|
|
5760
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5703
5761
|
return state;
|
|
5704
5762
|
}
|
|
5705
5763
|
case T_FOR_IN_STATEMENT: {
|
|
5706
|
-
state =
|
|
5764
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5707
5765
|
if (state.cancel) return state;
|
|
5708
5766
|
if (!state.skipChildren) {
|
|
5709
5767
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "expression");
|
|
@@ -5711,11 +5769,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5711
5769
|
state = visitNode(subject.body, state, stmtVisitor, exprVisitor, subject, "body");
|
|
5712
5770
|
if (state.cancel) return state;
|
|
5713
5771
|
}
|
|
5714
|
-
state =
|
|
5772
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5715
5773
|
return state;
|
|
5716
5774
|
}
|
|
5717
5775
|
case T_FOR_OF_STATEMENT: {
|
|
5718
|
-
state =
|
|
5776
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5719
5777
|
if (state.cancel) return state;
|
|
5720
5778
|
if (!state.skipChildren) {
|
|
5721
5779
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "expression");
|
|
@@ -5723,21 +5781,21 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5723
5781
|
state = visitNode(subject.body, state, stmtVisitor, exprVisitor, subject, "body");
|
|
5724
5782
|
if (state.cancel) return state;
|
|
5725
5783
|
}
|
|
5726
|
-
state =
|
|
5784
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5727
5785
|
return state;
|
|
5728
5786
|
}
|
|
5729
5787
|
case T_THROW_STATEMENT: {
|
|
5730
|
-
state =
|
|
5788
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5731
5789
|
if (state.cancel) return state;
|
|
5732
5790
|
if (!state.skipChildren) {
|
|
5733
5791
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "expression");
|
|
5734
5792
|
if (state.cancel) return state;
|
|
5735
5793
|
}
|
|
5736
|
-
state =
|
|
5794
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5737
5795
|
return state;
|
|
5738
5796
|
}
|
|
5739
5797
|
case T_TRY_STATEMENT: {
|
|
5740
|
-
state =
|
|
5798
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5741
5799
|
if (state.cancel) return state;
|
|
5742
5800
|
if (!state.skipChildren) {
|
|
5743
5801
|
if (subject.tryB) {
|
|
@@ -5760,11 +5818,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5760
5818
|
}
|
|
5761
5819
|
if (state.cancel) return state;
|
|
5762
5820
|
}
|
|
5763
|
-
state =
|
|
5821
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5764
5822
|
return state;
|
|
5765
5823
|
}
|
|
5766
5824
|
case T_SWITCH_STATEMENT: {
|
|
5767
|
-
state =
|
|
5825
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5768
5826
|
if (state.cancel) return state;
|
|
5769
5827
|
if (!state.skipChildren) {
|
|
5770
5828
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "expression");
|
|
@@ -5794,11 +5852,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5794
5852
|
}
|
|
5795
5853
|
}
|
|
5796
5854
|
}
|
|
5797
|
-
state =
|
|
5855
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5798
5856
|
return state;
|
|
5799
5857
|
}
|
|
5800
5858
|
case T_FUNCTION_DECLARATION: {
|
|
5801
|
-
state =
|
|
5859
|
+
state = stmtVisitor?.(true, subject, state, parent, tag) || state;
|
|
5802
5860
|
if (state.cancel) return state;
|
|
5803
5861
|
if (!state.skipChildren) {
|
|
5804
5862
|
for (const expr of subject.args) {
|
|
@@ -5808,21 +5866,22 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5808
5866
|
state = visitNode(subject.stmt, state, stmtVisitor, exprVisitor, subject, "statement");
|
|
5809
5867
|
if (state.cancel) return state;
|
|
5810
5868
|
}
|
|
5811
|
-
state =
|
|
5869
|
+
state = stmtVisitor?.(false, subject, state, parent, tag) || state;
|
|
5812
5870
|
return state;
|
|
5813
5871
|
}
|
|
5872
|
+
// ================= Expressions =================
|
|
5814
5873
|
case T_UNARY_EXPRESSION: {
|
|
5815
|
-
state =
|
|
5874
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5816
5875
|
if (state.cancel) return state;
|
|
5817
5876
|
if (!state.skipChildren) {
|
|
5818
5877
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "operand");
|
|
5819
5878
|
if (state.cancel) return state;
|
|
5820
5879
|
}
|
|
5821
|
-
state =
|
|
5880
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5822
5881
|
return state;
|
|
5823
5882
|
}
|
|
5824
5883
|
case T_BINARY_EXPRESSION: {
|
|
5825
|
-
state =
|
|
5884
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5826
5885
|
if (state.cancel) return state;
|
|
5827
5886
|
if (!state.skipChildren) {
|
|
5828
5887
|
state = visitNode(subject.left, state, stmtVisitor, exprVisitor, subject, "left");
|
|
@@ -5830,11 +5889,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5830
5889
|
state = visitNode(subject.right, state, stmtVisitor, exprVisitor, subject, "right");
|
|
5831
5890
|
if (state.cancel) return state;
|
|
5832
5891
|
}
|
|
5833
|
-
state =
|
|
5892
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5834
5893
|
return state;
|
|
5835
5894
|
}
|
|
5836
5895
|
case T_SEQUENCE_EXPRESSION: {
|
|
5837
|
-
state =
|
|
5896
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5838
5897
|
if (state.cancel) return state;
|
|
5839
5898
|
if (!state.skipChildren) {
|
|
5840
5899
|
for (const expr of subject.exprs) {
|
|
@@ -5842,11 +5901,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5842
5901
|
if (state.cancel) return state;
|
|
5843
5902
|
}
|
|
5844
5903
|
}
|
|
5845
|
-
state =
|
|
5904
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5846
5905
|
return state;
|
|
5847
5906
|
}
|
|
5848
5907
|
case T_CONDITIONAL_EXPRESSION: {
|
|
5849
|
-
state =
|
|
5908
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5850
5909
|
if (state.cancel) return state;
|
|
5851
5910
|
if (!state.skipChildren) {
|
|
5852
5911
|
state = visitNode(subject.cond, state, stmtVisitor, exprVisitor, subject, "condition");
|
|
@@ -5856,11 +5915,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5856
5915
|
state = visitNode(subject.elseE, state, stmtVisitor, exprVisitor, subject, "alternate");
|
|
5857
5916
|
if (state.cancel) return state;
|
|
5858
5917
|
}
|
|
5859
|
-
state =
|
|
5918
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5860
5919
|
return state;
|
|
5861
5920
|
}
|
|
5862
5921
|
case T_FUNCTION_INVOCATION_EXPRESSION: {
|
|
5863
|
-
state =
|
|
5922
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5864
5923
|
if (state.cancel) return state;
|
|
5865
5924
|
if (!state.skipChildren) {
|
|
5866
5925
|
for (const arg of subject.arguments) {
|
|
@@ -5870,21 +5929,21 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5870
5929
|
state = visitNode(subject.obj, state, stmtVisitor, exprVisitor, subject, "object");
|
|
5871
5930
|
if (state.cancel) return state;
|
|
5872
5931
|
}
|
|
5873
|
-
state =
|
|
5932
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5874
5933
|
return state;
|
|
5875
5934
|
}
|
|
5876
5935
|
case T_MEMBER_ACCESS_EXPRESSION: {
|
|
5877
|
-
state =
|
|
5936
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5878
5937
|
if (state.cancel) return state;
|
|
5879
5938
|
if (!state.skipChildren) {
|
|
5880
5939
|
state = visitNode(subject.obj, state, stmtVisitor, exprVisitor, subject, "object");
|
|
5881
5940
|
if (state.cancel) return state;
|
|
5882
5941
|
}
|
|
5883
|
-
state =
|
|
5942
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5884
5943
|
return state;
|
|
5885
5944
|
}
|
|
5886
5945
|
case T_CALCULATED_MEMBER_ACCESS_EXPRESSION: {
|
|
5887
|
-
state =
|
|
5946
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5888
5947
|
if (state.cancel) return state;
|
|
5889
5948
|
if (!state.skipChildren) {
|
|
5890
5949
|
state = visitNode(subject.obj, state, stmtVisitor, exprVisitor, subject, "object");
|
|
@@ -5892,19 +5951,19 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5892
5951
|
state = visitNode(subject.member, state, stmtVisitor, exprVisitor, subject, "member");
|
|
5893
5952
|
if (state.cancel) return state;
|
|
5894
5953
|
}
|
|
5895
|
-
state =
|
|
5954
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5896
5955
|
return state;
|
|
5897
5956
|
}
|
|
5898
5957
|
case T_IDENTIFIER: {
|
|
5899
|
-
state =
|
|
5958
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5900
5959
|
return state;
|
|
5901
5960
|
}
|
|
5902
5961
|
case T_LITERAL: {
|
|
5903
|
-
state =
|
|
5962
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5904
5963
|
return state;
|
|
5905
5964
|
}
|
|
5906
5965
|
case T_ARRAY_LITERAL: {
|
|
5907
|
-
state =
|
|
5966
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5908
5967
|
if (state.cancel) return state;
|
|
5909
5968
|
if (!state.skipChildren) {
|
|
5910
5969
|
for (const item of subject.items) {
|
|
@@ -5912,11 +5971,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5912
5971
|
if (state.cancel) return state;
|
|
5913
5972
|
}
|
|
5914
5973
|
}
|
|
5915
|
-
state =
|
|
5974
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5916
5975
|
return state;
|
|
5917
5976
|
}
|
|
5918
5977
|
case T_OBJECT_LITERAL: {
|
|
5919
|
-
state =
|
|
5978
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5920
5979
|
if (state.cancel) return state;
|
|
5921
5980
|
if (!state.skipChildren) {
|
|
5922
5981
|
for (const prop of subject.props) {
|
|
@@ -5932,21 +5991,21 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5932
5991
|
}
|
|
5933
5992
|
}
|
|
5934
5993
|
}
|
|
5935
|
-
state =
|
|
5994
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5936
5995
|
return state;
|
|
5937
5996
|
}
|
|
5938
5997
|
case T_SPREAD_EXPRESSION: {
|
|
5939
|
-
state =
|
|
5998
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5940
5999
|
if (state.cancel) return state;
|
|
5941
6000
|
if (!state.skipChildren) {
|
|
5942
6001
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "operand");
|
|
5943
6002
|
if (state.cancel) return state;
|
|
5944
6003
|
}
|
|
5945
|
-
state =
|
|
6004
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5946
6005
|
return state;
|
|
5947
6006
|
}
|
|
5948
6007
|
case T_ASSIGNMENT_EXPRESSION: {
|
|
5949
|
-
state =
|
|
6008
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5950
6009
|
if (state.cancel) return state;
|
|
5951
6010
|
if (!state.skipChildren) {
|
|
5952
6011
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "operand");
|
|
@@ -5954,15 +6013,15 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5954
6013
|
state = visitNode(subject.leftValue, state, stmtVisitor, exprVisitor, subject, "leftValue");
|
|
5955
6014
|
if (state.cancel) return state;
|
|
5956
6015
|
}
|
|
5957
|
-
state =
|
|
6016
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5958
6017
|
return state;
|
|
5959
6018
|
}
|
|
5960
6019
|
case T_NO_ARG_EXPRESSION: {
|
|
5961
|
-
state =
|
|
6020
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5962
6021
|
return state;
|
|
5963
6022
|
}
|
|
5964
6023
|
case T_ARROW_EXPRESSION: {
|
|
5965
|
-
state =
|
|
6024
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5966
6025
|
if (state.cancel) return state;
|
|
5967
6026
|
if (!state.skipChildren) {
|
|
5968
6027
|
for (const expr of subject.args) {
|
|
@@ -5972,22 +6031,22 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
5972
6031
|
state = visitNode(subject.statement, state, stmtVisitor, exprVisitor, subject, "statement");
|
|
5973
6032
|
if (state.cancel) return state;
|
|
5974
6033
|
}
|
|
5975
|
-
state =
|
|
6034
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5976
6035
|
return state;
|
|
5977
6036
|
}
|
|
5978
6037
|
case T_PREFIX_OP_EXPRESSION:
|
|
5979
6038
|
case T_POSTFIX_OP_EXPRESSION: {
|
|
5980
|
-
state =
|
|
6039
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5981
6040
|
if (state.cancel) return state;
|
|
5982
6041
|
if (!state.skipChildren) {
|
|
5983
6042
|
state = visitNode(subject.expr, state, stmtVisitor, exprVisitor, subject, "operand");
|
|
5984
6043
|
if (state.cancel) return state;
|
|
5985
6044
|
}
|
|
5986
|
-
state =
|
|
6045
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
5987
6046
|
return state;
|
|
5988
6047
|
}
|
|
5989
6048
|
case T_VAR_DECLARATION: {
|
|
5990
|
-
state =
|
|
6049
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
5991
6050
|
if (state.cancel) return state;
|
|
5992
6051
|
if (!state.skipChildren) {
|
|
5993
6052
|
if (subject.aDestr !== void 0) {
|
|
@@ -6007,13 +6066,13 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
6007
6066
|
}
|
|
6008
6067
|
if (state.cancel) return state;
|
|
6009
6068
|
}
|
|
6010
|
-
state =
|
|
6069
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
6011
6070
|
return state;
|
|
6012
6071
|
}
|
|
6013
6072
|
case T_DESTRUCTURE:
|
|
6014
6073
|
case T_OBJECT_DESTRUCTURE:
|
|
6015
6074
|
case T_ARRAY_DESTRUCTURE: {
|
|
6016
|
-
state =
|
|
6075
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
6017
6076
|
if (state.cancel) return state;
|
|
6018
6077
|
if (!state.skipChildren) {
|
|
6019
6078
|
if (subject.aDestr !== void 0) {
|
|
@@ -6029,11 +6088,11 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
6029
6088
|
}
|
|
6030
6089
|
}
|
|
6031
6090
|
}
|
|
6032
|
-
state =
|
|
6091
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
6033
6092
|
return state;
|
|
6034
6093
|
}
|
|
6035
6094
|
case T_REACTIVE_VAR_DECLARATION: {
|
|
6036
|
-
state =
|
|
6095
|
+
state = exprVisitor?.(true, subject, state, parent, tag) || state;
|
|
6037
6096
|
if (state.cancel) return state;
|
|
6038
6097
|
if (!state.skipChildren) {
|
|
6039
6098
|
if (subject.expr) {
|
|
@@ -6041,7 +6100,7 @@ function visitNode(subject, state, stmtVisitor, exprVisitor, parent, tag) {
|
|
|
6041
6100
|
}
|
|
6042
6101
|
if (state.cancel) return state;
|
|
6043
6102
|
}
|
|
6044
|
-
state =
|
|
6103
|
+
state = exprVisitor?.(false, subject, state, parent, tag) || state;
|
|
6045
6104
|
return state;
|
|
6046
6105
|
}
|
|
6047
6106
|
case T_TEMPLATE_LITERAL_EXPRESSION:
|
|
@@ -6108,7 +6167,6 @@ function parseScriptModule(moduleName, source) {
|
|
|
6108
6167
|
}
|
|
6109
6168
|
return parsedModule2;
|
|
6110
6169
|
function addErrorMessage(code, stmt, ...args) {
|
|
6111
|
-
var _a, _b, _c;
|
|
6112
6170
|
let errorText = errorMessages$1[code];
|
|
6113
6171
|
if (args) {
|
|
6114
6172
|
args.forEach(
|
|
@@ -6118,9 +6176,9 @@ function parseScriptModule(moduleName, source) {
|
|
|
6118
6176
|
errors.push({
|
|
6119
6177
|
code,
|
|
6120
6178
|
text: errorMessages$1[code].replace(/\{(\d+)}/g, (_, index) => args[index]),
|
|
6121
|
-
position:
|
|
6122
|
-
line:
|
|
6123
|
-
column:
|
|
6179
|
+
position: stmt.startToken?.startPosition,
|
|
6180
|
+
line: stmt.startToken?.startLine,
|
|
6181
|
+
column: stmt.startToken?.startColumn
|
|
6124
6182
|
});
|
|
6125
6183
|
}
|
|
6126
6184
|
}
|
|
@@ -6159,7 +6217,7 @@ function collectCodeBehindFromSource(moduleName, source) {
|
|
|
6159
6217
|
});
|
|
6160
6218
|
return result;
|
|
6161
6219
|
function addFunctionDeclaration(stmt) {
|
|
6162
|
-
if (
|
|
6220
|
+
if (collectedFunctions?.[stmt.id.name] !== void 0) {
|
|
6163
6221
|
return;
|
|
6164
6222
|
}
|
|
6165
6223
|
if (stmt.id.name in result.functions) {
|
|
@@ -6420,7 +6478,6 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6420
6478
|
return component;
|
|
6421
6479
|
}
|
|
6422
6480
|
function collectTraits(usesStack2, comp, element2) {
|
|
6423
|
-
var _a;
|
|
6424
6481
|
const isCompound = !isComponent(comp);
|
|
6425
6482
|
const attributes = getAttributes(element2);
|
|
6426
6483
|
namespaceStack.push(/* @__PURE__ */ new Map());
|
|
@@ -6474,10 +6531,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6474
6531
|
usesStack2,
|
|
6475
6532
|
comp,
|
|
6476
6533
|
child,
|
|
6477
|
-
(name) =>
|
|
6478
|
-
var _a2;
|
|
6479
|
-
return isComponent(comp) ? (_a2 = comp.props) == null ? void 0 : _a2[name] : void 0;
|
|
6480
|
-
},
|
|
6534
|
+
(name) => isComponent(comp) ? comp.props?.[name] : void 0,
|
|
6481
6535
|
(name, value) => {
|
|
6482
6536
|
if (!isComponent(comp)) return;
|
|
6483
6537
|
comp.props ?? (comp.props = {});
|
|
@@ -6490,10 +6544,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6490
6544
|
usesStack2,
|
|
6491
6545
|
comp,
|
|
6492
6546
|
child,
|
|
6493
|
-
(name) =>
|
|
6494
|
-
var _a2;
|
|
6495
|
-
return isComponent(comp) ? (_a2 = comp.events) == null ? void 0 : _a2[name] : void 0;
|
|
6496
|
-
},
|
|
6547
|
+
(name) => isComponent(comp) ? comp.events?.[name] : void 0,
|
|
6497
6548
|
(name, value) => {
|
|
6498
6549
|
if (!isComponent(comp)) return;
|
|
6499
6550
|
comp.events ?? (comp.events = {});
|
|
@@ -6511,10 +6562,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6511
6562
|
usesStack2,
|
|
6512
6563
|
comp,
|
|
6513
6564
|
child,
|
|
6514
|
-
(name) =>
|
|
6515
|
-
var _a2;
|
|
6516
|
-
return isComponent(comp) ? (_a2 = comp.vars) == null ? void 0 : _a2[name] : void 0;
|
|
6517
|
-
},
|
|
6565
|
+
(name) => isComponent(comp) ? comp.vars?.[name] : void 0,
|
|
6518
6566
|
(name, value) => {
|
|
6519
6567
|
if (!isComponent(comp)) return;
|
|
6520
6568
|
comp.vars ?? (comp.vars = {});
|
|
@@ -6533,10 +6581,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6533
6581
|
usesStack2,
|
|
6534
6582
|
comp,
|
|
6535
6583
|
child,
|
|
6536
|
-
(name) =>
|
|
6537
|
-
var _a2;
|
|
6538
|
-
return isComponent(comp) ? (_a2 = comp.api) == null ? void 0 : _a2[name] : void 0;
|
|
6539
|
-
},
|
|
6584
|
+
(name) => isComponent(comp) ? comp.api?.[name] : void 0,
|
|
6540
6585
|
(name, value) => {
|
|
6541
6586
|
comp.api ?? (comp.api = {});
|
|
6542
6587
|
comp.api[name] = value;
|
|
@@ -6564,7 +6609,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6564
6609
|
comp.scriptError = err;
|
|
6565
6610
|
}
|
|
6566
6611
|
}
|
|
6567
|
-
const moduleErrors =
|
|
6612
|
+
const moduleErrors = comp.scriptCollected?.moduleErrors ?? {};
|
|
6568
6613
|
if (Object.keys(moduleErrors).length > 0) {
|
|
6569
6614
|
comp.scriptError = moduleErrors;
|
|
6570
6615
|
}
|
|
@@ -6686,7 +6731,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6686
6731
|
}
|
|
6687
6732
|
const nameAttr = attrProps.find((attr) => attr.name === "name");
|
|
6688
6733
|
if (allowName) {
|
|
6689
|
-
if (!
|
|
6734
|
+
if (!nameAttr?.value) {
|
|
6690
6735
|
reportError$1("T012", elementName);
|
|
6691
6736
|
return null;
|
|
6692
6737
|
}
|
|
@@ -6696,7 +6741,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6696
6741
|
return null;
|
|
6697
6742
|
}
|
|
6698
6743
|
}
|
|
6699
|
-
const name = nameAttr
|
|
6744
|
+
const name = nameAttr?.value;
|
|
6700
6745
|
const valueAttr = attrProps.find((attr) => attr.name === "value");
|
|
6701
6746
|
if (valueAttr && valueAttr.value === void 0) {
|
|
6702
6747
|
reportError$1("T019", elementName);
|
|
@@ -6713,7 +6758,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6713
6758
|
value: nestedComps.length === 1 ? nestedComps[0] : nestedComps
|
|
6714
6759
|
};
|
|
6715
6760
|
}
|
|
6716
|
-
let value = valueAttr
|
|
6761
|
+
let value = valueAttr?.value;
|
|
6717
6762
|
if (value === null) {
|
|
6718
6763
|
return null;
|
|
6719
6764
|
}
|
|
@@ -6723,7 +6768,6 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6723
6768
|
return { name, value: collectObjectOrArray(usesStack2, childNodes) };
|
|
6724
6769
|
}
|
|
6725
6770
|
function collectLoadersElements(usesStack2, comp, loaders) {
|
|
6726
|
-
var _a;
|
|
6727
6771
|
if (!isComponent(comp)) {
|
|
6728
6772
|
reportError$1("T009", "loaders");
|
|
6729
6773
|
return;
|
|
@@ -6732,7 +6776,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6732
6776
|
if (children.length === 0) {
|
|
6733
6777
|
comp.loaders ?? (comp.loaders = []);
|
|
6734
6778
|
}
|
|
6735
|
-
const hasAttribute =
|
|
6779
|
+
const hasAttribute = loaders.children?.some((c) => c.kind === SyntaxKind.AttributeListNode);
|
|
6736
6780
|
if (hasAttribute) {
|
|
6737
6781
|
reportError$1("T014", "attributes");
|
|
6738
6782
|
return;
|
|
@@ -6768,10 +6812,10 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6768
6812
|
if (!valueInfo) {
|
|
6769
6813
|
return;
|
|
6770
6814
|
}
|
|
6771
|
-
nameValidator
|
|
6815
|
+
nameValidator?.(valueInfo?.name ?? "");
|
|
6772
6816
|
const name = valueInfo.name;
|
|
6773
6817
|
const value = valueInfo.value;
|
|
6774
|
-
if (
|
|
6818
|
+
if (valueInfo?.value !== void 0) {
|
|
6775
6819
|
setter(name, mergeValue(getter(name), value));
|
|
6776
6820
|
} else {
|
|
6777
6821
|
const children = getChildNodes(child);
|
|
@@ -6788,7 +6832,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6788
6832
|
}
|
|
6789
6833
|
const attributes = getAttributes(usesNode).map(segmentAttr);
|
|
6790
6834
|
const valueAttr = attributes.find((attr) => attr.name === "value");
|
|
6791
|
-
if (!
|
|
6835
|
+
if (!valueAttr?.value || attributes.length !== 1) {
|
|
6792
6836
|
reportError$1("T015", "uses");
|
|
6793
6837
|
return;
|
|
6794
6838
|
}
|
|
@@ -6935,8 +6979,10 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6935
6979
|
for (let i = 0; i < text.length; ++i) {
|
|
6936
6980
|
if (text.charCodeAt(i) === CharacterCodes.ampersand) {
|
|
6937
6981
|
switch (text.charCodeAt(i + 1)) {
|
|
6982
|
+
//&a
|
|
6938
6983
|
case CharacterCodes.a:
|
|
6939
6984
|
switch (text.charCodeAt(i + 2)) {
|
|
6985
|
+
//am
|
|
6940
6986
|
case CharacterCodes.m:
|
|
6941
6987
|
if (text.charCodeAt(i + 3) === CharacterCodes.p && text.charCodeAt(i + 4) === CharacterCodes.semicolon) {
|
|
6942
6988
|
newText = newText + text.substring(startOfSubstr, i) + "&";
|
|
@@ -6944,6 +6990,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6944
6990
|
startOfSubstr = i + 1;
|
|
6945
6991
|
}
|
|
6946
6992
|
break;
|
|
6993
|
+
//ap
|
|
6947
6994
|
case CharacterCodes.p:
|
|
6948
6995
|
if (text.charCodeAt(i + 3) === CharacterCodes.o && text.charCodeAt(i + 4) === CharacterCodes.s && text.charCodeAt(i + 5) === CharacterCodes.semicolon) {
|
|
6949
6996
|
newText = newText + text.substring(startOfSubstr, i) + "'";
|
|
@@ -6953,6 +7000,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6953
7000
|
break;
|
|
6954
7001
|
}
|
|
6955
7002
|
break;
|
|
7003
|
+
//&g
|
|
6956
7004
|
case CharacterCodes.g:
|
|
6957
7005
|
if (text.charCodeAt(i + 2) === CharacterCodes.t && text.charCodeAt(i + 3) === CharacterCodes.semicolon) {
|
|
6958
7006
|
newText = newText + text.substring(startOfSubstr, i) + ">";
|
|
@@ -6960,6 +7008,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6960
7008
|
startOfSubstr = i + 1;
|
|
6961
7009
|
}
|
|
6962
7010
|
break;
|
|
7011
|
+
//&l
|
|
6963
7012
|
case CharacterCodes.l:
|
|
6964
7013
|
if (text.charCodeAt(i + 2) === CharacterCodes.t && text.charCodeAt(i + 3) === CharacterCodes.semicolon) {
|
|
6965
7014
|
newText = newText + text.substring(startOfSubstr, i) + "<";
|
|
@@ -6967,6 +7016,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6967
7016
|
startOfSubstr = i + 1;
|
|
6968
7017
|
}
|
|
6969
7018
|
break;
|
|
7019
|
+
//&q
|
|
6970
7020
|
case CharacterCodes.q:
|
|
6971
7021
|
if (text.charCodeAt(i + 2) === CharacterCodes.u && text.charCodeAt(i + 3) === CharacterCodes.o && text.charCodeAt(i + 4) === CharacterCodes.t && text.charCodeAt(i + 5) === CharacterCodes.semicolon) {
|
|
6972
7022
|
newText = newText + text.substring(startOfSubstr, i) + '"';
|
|
@@ -6974,6 +7024,7 @@ function nodeToComponentDef(node, originalGetText, fileId) {
|
|
|
6974
7024
|
startOfSubstr = i + 1;
|
|
6975
7025
|
}
|
|
6976
7026
|
break;
|
|
7027
|
+
//&n
|
|
6977
7028
|
case CharacterCodes.n:
|
|
6978
7029
|
if (text.charCodeAt(i + 2) === CharacterCodes.b && text.charCodeAt(i + 3) === CharacterCodes.s && text.charCodeAt(i + 4) === CharacterCodes.p && text.charCodeAt(i + 5) === CharacterCodes.semicolon) {
|
|
6979
7030
|
newText = newText + text.substring(startOfSubstr, i) + " ";
|
|
@@ -7174,16 +7225,13 @@ function wrapWithFragment(wrappedChildren) {
|
|
|
7174
7225
|
};
|
|
7175
7226
|
}
|
|
7176
7227
|
function getAttributes(node) {
|
|
7177
|
-
|
|
7178
|
-
return ((_b = (_a = node.children) == null ? void 0 : _a.find((c) => c.kind === SyntaxKind.AttributeListNode)) == null ? void 0 : _b.children) ?? [];
|
|
7228
|
+
return node.children?.find((c) => c.kind === SyntaxKind.AttributeListNode)?.children ?? [];
|
|
7179
7229
|
}
|
|
7180
7230
|
function getChildNodes(node) {
|
|
7181
|
-
|
|
7182
|
-
return ((_b = (_a = node.children) == null ? void 0 : _a.find((c) => c.kind === SyntaxKind.ContentListNode)) == null ? void 0 : _b.children) ?? [];
|
|
7231
|
+
return node.children?.find((c) => c.kind === SyntaxKind.ContentListNode)?.children ?? [];
|
|
7183
7232
|
}
|
|
7184
7233
|
function withNewChildNodes(node, newChildren) {
|
|
7185
|
-
|
|
7186
|
-
const childrenListIdx = (_a = node.children) == null ? void 0 : _a.findIndex((c) => c.kind === SyntaxKind.ContentListNode);
|
|
7234
|
+
const childrenListIdx = node.children?.findIndex((c) => c.kind === SyntaxKind.ContentListNode);
|
|
7187
7235
|
if (childrenListIdx === void 0 || childrenListIdx === -1) {
|
|
7188
7236
|
return node;
|
|
7189
7237
|
}
|
|
@@ -7201,9 +7249,8 @@ function withNewChildNodes(node, newChildren) {
|
|
|
7201
7249
|
]);
|
|
7202
7250
|
}
|
|
7203
7251
|
function desugarKeyOnlyAttrs(attrs) {
|
|
7204
|
-
var _a;
|
|
7205
7252
|
for (let attr of attrs) {
|
|
7206
|
-
if (
|
|
7253
|
+
if (attr.children?.length === 1) {
|
|
7207
7254
|
const eq = {
|
|
7208
7255
|
kind: SyntaxKind.Equal
|
|
7209
7256
|
};
|