xmlui 0.11.4 → 0.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (690) hide show
  1. package/dist/bin/index.cjs +8836 -0
  2. package/dist/bin/index.js +8825 -0
  3. package/dist/lib/{apiInterceptorWorker-QiltRtq1.js → apiInterceptorWorker-dwrAyq6l.js} +126 -151
  4. package/dist/lib/{index-Cq0EMm3L.js → index-CwYK6iB4.js} +2502 -2675
  5. package/dist/lib/index.css +1 -1
  6. package/dist/lib/{initMock-DCigV4Zh.js → initMock-CvmWAkGr.js} +19 -22
  7. package/dist/lib/language-server-web-worker.js +13 -5
  8. package/dist/lib/language-server.js +11 -3
  9. package/dist/lib/{metadata-utils-BiolWMg9.js → metadata-utils-2bsMr4Gd.js} +58 -26
  10. package/dist/lib/{server-common-DyCHOk-z.js → server-common-DI3W4cob.js} +6297 -5930
  11. package/dist/lib/syntax-textmate.js +8 -2472
  12. package/dist/lib/testing.d.ts +1 -0
  13. package/dist/lib/testing.js +20 -23
  14. package/dist/lib/{transform-DHf9tQF7.js → transform-CQ_6R-43.js} +159 -126
  15. package/dist/lib/vite-xmlui-plugin.d.ts +10 -0
  16. package/dist/lib/vite-xmlui-plugin.js +8316 -0
  17. package/dist/lib/{xmlui-parser-CHN3mADy.js → xmlui-parser-CW8YmGjO.js} +10 -11
  18. package/dist/lib/xmlui-parser.js +2 -2
  19. package/dist/lib/{xmlui-serializer-CYNSHAlP.js → xmlui-serializer-CeCcgdVR.js} +19 -19
  20. package/dist/lib/xmlui.d.ts +122 -1
  21. package/dist/lib/xmlui.js +8 -3
  22. package/dist/metadata/{apiInterceptorWorker-Dql7QGw2.js → apiInterceptorWorker-Wgm2_zjg.js} +124 -149
  23. package/dist/metadata/{collectedComponentMetadata-CLaDZhmc.js → collectedComponentMetadata-CSFNLstl.js} +3169 -3302
  24. package/dist/metadata/{initMock-Buqah4JF.js → initMock-CyTd5aE8.js} +19 -22
  25. package/dist/metadata/xmlui-metadata.css +1 -0
  26. package/dist/metadata/xmlui-metadata.js +1 -1
  27. package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
  28. package/dist/standalone/xmlui-standalone.es.d.ts +171 -2
  29. package/dist/standalone/xmlui-standalone.umd.js +36 -37
  30. package/package.json +20 -50
  31. package/dist/lib/vite-xmlui-plugin/index.js +0 -13985
  32. package/dist/lib/vite-xmlui-plugin/package.json +0 -3
  33. package/dist/metadata/style.css +0 -1
  34. package/dist/scripts/bin/bootstrap.cjs +0 -4
  35. package/dist/scripts/bin/build-lib.js +0 -126
  36. package/dist/scripts/bin/build.js +0 -266
  37. package/dist/scripts/bin/index.js +0 -167
  38. package/dist/scripts/bin/preview.js +0 -44
  39. package/dist/scripts/bin/start.js +0 -52
  40. package/dist/scripts/bin/vite-xmlui-plugin.js +0 -109
  41. package/dist/scripts/bin/viteConfig.js +0 -144
  42. package/dist/scripts/package.json +0 -285
  43. package/dist/scripts/src/abstractions/ActionDefs.js +0 -2
  44. package/dist/scripts/src/abstractions/AppContextDefs.js +0 -4
  45. package/dist/scripts/src/abstractions/ComponentDefs.js +0 -2
  46. package/dist/scripts/src/abstractions/ContainerDefs.js +0 -2
  47. package/dist/scripts/src/abstractions/ExtensionDefs.js +0 -2
  48. package/dist/scripts/src/abstractions/FunctionDefs.js +0 -2
  49. package/dist/scripts/src/abstractions/RendererDefs.js +0 -2
  50. package/dist/scripts/src/abstractions/ThemingDefs.js +0 -2
  51. package/dist/scripts/src/abstractions/scripting/BlockScope.js +0 -2
  52. package/dist/scripts/src/abstractions/scripting/Compilation.js +0 -2
  53. package/dist/scripts/src/abstractions/scripting/LogicalThread.js +0 -2
  54. package/dist/scripts/src/abstractions/scripting/LoopScope.js +0 -2
  55. package/dist/scripts/src/abstractions/scripting/ScriptParserError.js +0 -2
  56. package/dist/scripts/src/abstractions/scripting/Token.js +0 -2
  57. package/dist/scripts/src/abstractions/scripting/TryScope.js +0 -2
  58. package/dist/scripts/src/abstractions/scripting/TryScopeExp.js +0 -2
  59. package/dist/scripts/src/abstractions/scripting/modules.js +0 -2
  60. package/dist/scripts/src/components/APICall/APICall.js +0 -130
  61. package/dist/scripts/src/components/APICall/APICall.spec.js +0 -910
  62. package/dist/scripts/src/components/APICall/APICallNative.js +0 -36
  63. package/dist/scripts/src/components/Accordion/Accordion.js +0 -97
  64. package/dist/scripts/src/components/Accordion/Accordion.spec.js +0 -969
  65. package/dist/scripts/src/components/Accordion/AccordionContext.js +0 -20
  66. package/dist/scripts/src/components/Accordion/AccordionItem.js +0 -35
  67. package/dist/scripts/src/components/Accordion/AccordionItemNative.js +0 -95
  68. package/dist/scripts/src/components/Accordion/AccordionNative.js +0 -141
  69. package/dist/scripts/src/components/Animation/AnimationNative.js +0 -263
  70. package/dist/scripts/src/components/App/App.js +0 -581
  71. package/dist/scripts/src/components/App/App.spec.js +0 -331
  72. package/dist/scripts/src/components/App/AppLayoutContext.js +0 -49
  73. package/dist/scripts/src/components/App/AppNative.js +0 -308
  74. package/dist/scripts/src/components/App/AppStateContext.js +0 -9
  75. package/dist/scripts/src/components/App/IndexerContext.js +0 -44
  76. package/dist/scripts/src/components/App/LinkInfoContext.js +0 -9
  77. package/dist/scripts/src/components/App/SearchContext.js +0 -35
  78. package/dist/scripts/src/components/App/Sheet.js +0 -99
  79. package/dist/scripts/src/components/AppHeader/AppHeader.js +0 -58
  80. package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +0 -169
  81. package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +0 -72
  82. package/dist/scripts/src/components/AppState/AppState.js +0 -75
  83. package/dist/scripts/src/components/AppState/AppState.spec.js +0 -292
  84. package/dist/scripts/src/components/AppState/AppStateNative.js +0 -51
  85. package/dist/scripts/src/components/AutoComplete/AutoComplete.js +0 -109
  86. package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +0 -546
  87. package/dist/scripts/src/components/AutoComplete/AutoCompleteContext.js +0 -19
  88. package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +0 -498
  89. package/dist/scripts/src/components/Avatar/Avatar.js +0 -55
  90. package/dist/scripts/src/components/Avatar/Avatar.spec.js +0 -1514
  91. package/dist/scripts/src/components/Avatar/AvatarNative.js +0 -58
  92. package/dist/scripts/src/components/Backdrop/Backdrop.js +0 -40
  93. package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +0 -131
  94. package/dist/scripts/src/components/Backdrop/BackdropNative.js +0 -25
  95. package/dist/scripts/src/components/Badge/Badge.js +0 -81
  96. package/dist/scripts/src/components/Badge/Badge.spec.js +0 -2214
  97. package/dist/scripts/src/components/Badge/BadgeNative.js +0 -46
  98. package/dist/scripts/src/components/Bookmark/Bookmark.js +0 -48
  99. package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +0 -230
  100. package/dist/scripts/src/components/Bookmark/BookmarkNative.js +0 -55
  101. package/dist/scripts/src/components/Breakout/Breakout.js +0 -17
  102. package/dist/scripts/src/components/Breakout/Breakout.spec.js +0 -56
  103. package/dist/scripts/src/components/Breakout/BreakoutNative.js +0 -24
  104. package/dist/scripts/src/components/Button/Button-style.spec.js +0 -274
  105. package/dist/scripts/src/components/Button/Button.js +0 -171
  106. package/dist/scripts/src/components/Button/Button.spec.js +0 -425
  107. package/dist/scripts/src/components/Button/ButtonNative.js +0 -109
  108. package/dist/scripts/src/components/Card/Card.js +0 -89
  109. package/dist/scripts/src/components/Card/Card.spec.js +0 -150
  110. package/dist/scripts/src/components/Card/CardNative.js +0 -41
  111. package/dist/scripts/src/components/Carousel/Carousel.js +0 -133
  112. package/dist/scripts/src/components/Carousel/Carousel.spec.js +0 -557
  113. package/dist/scripts/src/components/Carousel/CarouselContext.js +0 -57
  114. package/dist/scripts/src/components/Carousel/CarouselItem.js +0 -15
  115. package/dist/scripts/src/components/Carousel/CarouselItemNative.js +0 -40
  116. package/dist/scripts/src/components/Carousel/CarouselNative.js +0 -195
  117. package/dist/scripts/src/components/ChangeListener/ChangeListener.js +0 -34
  118. package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +0 -169
  119. package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +0 -30
  120. package/dist/scripts/src/components/Charts/AreaChart/AreaChart.js +0 -92
  121. package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +0 -999
  122. package/dist/scripts/src/components/Charts/AreaChart/AreaChartNative.js +0 -127
  123. package/dist/scripts/src/components/Charts/BarChart/BarChart.js +0 -97
  124. package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +0 -597
  125. package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +0 -317
  126. package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +0 -60
  127. package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +0 -608
  128. package/dist/scripts/src/components/Charts/LabelList/LabelList.js +0 -41
  129. package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +0 -539
  130. package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +0 -25
  131. package/dist/scripts/src/components/Charts/Legend/Legend.js +0 -33
  132. package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +0 -558
  133. package/dist/scripts/src/components/Charts/Legend/LegendNative.js +0 -64
  134. package/dist/scripts/src/components/Charts/LineChart/LineChart.js +0 -94
  135. package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +0 -450
  136. package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +0 -192
  137. package/dist/scripts/src/components/Charts/PieChart/PieChart.js +0 -64
  138. package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +0 -584
  139. package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +0 -167
  140. package/dist/scripts/src/components/Charts/RadarChart/RadarChart.js +0 -92
  141. package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +0 -571
  142. package/dist/scripts/src/components/Charts/RadarChart/RadarChartNative.js +0 -125
  143. package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.js +0 -27
  144. package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +0 -451
  145. package/dist/scripts/src/components/Charts/utils/ChartProvider.js +0 -65
  146. package/dist/scripts/src/components/Charts/utils/abstractions.js +0 -26
  147. package/dist/scripts/src/components/Checkbox/Checkbox.js +0 -81
  148. package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +0 -900
  149. package/dist/scripts/src/components/CodeBlock/CodeBlock.js +0 -42
  150. package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +0 -196
  151. package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +0 -127
  152. package/dist/scripts/src/components/CodeBlock/highlight-code.js +0 -273
  153. package/dist/scripts/src/components/ColorPicker/ColorPicker.js +0 -54
  154. package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +0 -355
  155. package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +0 -86
  156. package/dist/scripts/src/components/Column/Column.js +0 -89
  157. package/dist/scripts/src/components/Column/ColumnNative.js +0 -49
  158. package/dist/scripts/src/components/Column/TableContext.js +0 -12
  159. package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +0 -53
  160. package/dist/scripts/src/components/ComponentProvider.js +0 -811
  161. package/dist/scripts/src/components/ComponentRegistryContext.js +0 -44
  162. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +0 -51
  163. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +0 -531
  164. package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +0 -31
  165. package/dist/scripts/src/components/DataSource/DataSource.js +0 -124
  166. package/dist/scripts/src/components/DateInput/DateInput.js +0 -197
  167. package/dist/scripts/src/components/DateInput/DateInput.spec.js +0 -1023
  168. package/dist/scripts/src/components/DateInput/DateInputNative.js +0 -734
  169. package/dist/scripts/src/components/DatePicker/DatePicker.js +0 -146
  170. package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +0 -394
  171. package/dist/scripts/src/components/DatePicker/DatePickerNative.js +0 -326
  172. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +0 -196
  173. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +0 -331
  174. package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +0 -146
  175. package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +0 -26
  176. package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +0 -29
  177. package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +0 -71
  178. package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +0 -101
  179. package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +0 -435
  180. package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +0 -109
  181. package/dist/scripts/src/components/FileInput/FileInput.js +0 -80
  182. package/dist/scripts/src/components/FileInput/FileInput.spec.js +0 -285
  183. package/dist/scripts/src/components/FileInput/FileInputNative.js +0 -161
  184. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +0 -58
  185. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +0 -296
  186. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +0 -134
  187. package/dist/scripts/src/components/FlowLayout/FlowLayout.js +0 -65
  188. package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +0 -518
  189. package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +0 -153
  190. package/dist/scripts/src/components/Footer/Footer.js +0 -45
  191. package/dist/scripts/src/components/Footer/Footer.spec.js +0 -991
  192. package/dist/scripts/src/components/Footer/FooterNative.js +0 -35
  193. package/dist/scripts/src/components/Form/Form.js +0 -161
  194. package/dist/scripts/src/components/Form/Form.spec.js +0 -1719
  195. package/dist/scripts/src/components/Form/FormContext.js +0 -124
  196. package/dist/scripts/src/components/Form/FormNative.js +0 -463
  197. package/dist/scripts/src/components/Form/formActions.js +0 -115
  198. package/dist/scripts/src/components/FormItem/FormItem.js +0 -231
  199. package/dist/scripts/src/components/FormItem/FormItem.spec.js +0 -1022
  200. package/dist/scripts/src/components/FormItem/FormItemNative.js +0 -255
  201. package/dist/scripts/src/components/FormItem/HelperText.js +0 -27
  202. package/dist/scripts/src/components/FormItem/ItemWithLabel.js +0 -52
  203. package/dist/scripts/src/components/FormItem/Validations.js +0 -389
  204. package/dist/scripts/src/components/FormSection/FormSection.js +0 -56
  205. package/dist/scripts/src/components/Fragment/Fragment.js +0 -24
  206. package/dist/scripts/src/components/Fragment/Fragment.spec.js +0 -50
  207. package/dist/scripts/src/components/Heading/H1.spec.js +0 -66
  208. package/dist/scripts/src/components/Heading/H2.spec.js +0 -66
  209. package/dist/scripts/src/components/Heading/H3.spec.js +0 -66
  210. package/dist/scripts/src/components/Heading/H4.spec.js +0 -66
  211. package/dist/scripts/src/components/Heading/H5.spec.js +0 -66
  212. package/dist/scripts/src/components/Heading/H6.spec.js +0 -66
  213. package/dist/scripts/src/components/Heading/Heading.js +0 -396
  214. package/dist/scripts/src/components/Heading/Heading.spec.js +0 -966
  215. package/dist/scripts/src/components/Heading/HeadingNative.js +0 -98
  216. package/dist/scripts/src/components/Heading/abstractions.js +0 -4
  217. package/dist/scripts/src/components/HoverCard/HoverCard.js +0 -18
  218. package/dist/scripts/src/components/HoverCard/HovercardNative.js +0 -44
  219. package/dist/scripts/src/components/HtmlTags/HtmlTags.js +0 -1441
  220. package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +0 -69
  221. package/dist/scripts/src/components/IFrame/IFrame.js +0 -77
  222. package/dist/scripts/src/components/IFrame/IFrame.spec.js +0 -527
  223. package/dist/scripts/src/components/IFrame/IFrameNative.js +0 -46
  224. package/dist/scripts/src/components/Icon/AdmonitionDanger.js +0 -10
  225. package/dist/scripts/src/components/Icon/AdmonitionInfo.js +0 -10
  226. package/dist/scripts/src/components/Icon/AdmonitionNote.js +0 -10
  227. package/dist/scripts/src/components/Icon/AdmonitionTip.js +0 -10
  228. package/dist/scripts/src/components/Icon/AdmonitionWarning.js +0 -10
  229. package/dist/scripts/src/components/Icon/ApiIcon.js +0 -10
  230. package/dist/scripts/src/components/Icon/ArrowDropDown.js +0 -11
  231. package/dist/scripts/src/components/Icon/ArrowDropUp.js +0 -11
  232. package/dist/scripts/src/components/Icon/ArrowLeft.js +0 -11
  233. package/dist/scripts/src/components/Icon/ArrowRight.js +0 -11
  234. package/dist/scripts/src/components/Icon/Attach.js +0 -10
  235. package/dist/scripts/src/components/Icon/Binding.js +0 -11
  236. package/dist/scripts/src/components/Icon/BoardIcon.js +0 -7
  237. package/dist/scripts/src/components/Icon/BoxIcon.js +0 -10
  238. package/dist/scripts/src/components/Icon/CheckIcon.js +0 -7
  239. package/dist/scripts/src/components/Icon/ChevronDownIcon.js +0 -7
  240. package/dist/scripts/src/components/Icon/ChevronLeft.js +0 -7
  241. package/dist/scripts/src/components/Icon/ChevronRight.js +0 -7
  242. package/dist/scripts/src/components/Icon/ChevronUpIcon.js +0 -7
  243. package/dist/scripts/src/components/Icon/CodeFileIcon.js +0 -10
  244. package/dist/scripts/src/components/Icon/CodeSandbox.js +0 -10
  245. package/dist/scripts/src/components/Icon/CompactListIcon.js +0 -7
  246. package/dist/scripts/src/components/Icon/ContentCopyIcon.js +0 -7
  247. package/dist/scripts/src/components/Icon/DarkToLightIcon.js +0 -10
  248. package/dist/scripts/src/components/Icon/DatabaseIcon.js +0 -11
  249. package/dist/scripts/src/components/Icon/DocFileIcon.js +0 -10
  250. package/dist/scripts/src/components/Icon/DocIcon.js +0 -10
  251. package/dist/scripts/src/components/Icon/DotMenuHorizontalIcon.js +0 -7
  252. package/dist/scripts/src/components/Icon/DotMenuIcon.js +0 -7
  253. package/dist/scripts/src/components/Icon/EmailIcon.js +0 -7
  254. package/dist/scripts/src/components/Icon/EmptyFolderIcon.js +0 -10
  255. package/dist/scripts/src/components/Icon/ErrorIcon.js +0 -7
  256. package/dist/scripts/src/components/Icon/ExpressionIcon.js +0 -10
  257. package/dist/scripts/src/components/Icon/FillPlusCricleIcon.js +0 -7
  258. package/dist/scripts/src/components/Icon/FilterIcon.js +0 -10
  259. package/dist/scripts/src/components/Icon/FolderIcon.js +0 -10
  260. package/dist/scripts/src/components/Icon/GlobeIcon.js +0 -7
  261. package/dist/scripts/src/components/Icon/HomeIcon.js +0 -7
  262. package/dist/scripts/src/components/Icon/HyperLinkIcon.js +0 -7
  263. package/dist/scripts/src/components/Icon/Icon.js +0 -42
  264. package/dist/scripts/src/components/Icon/Icon.spec.js +0 -527
  265. package/dist/scripts/src/components/Icon/IconNative.js +0 -127
  266. package/dist/scripts/src/components/Icon/ImageFileIcon.js +0 -10
  267. package/dist/scripts/src/components/Icon/Inspect.js +0 -10
  268. package/dist/scripts/src/components/Icon/LightToDark.js +0 -10
  269. package/dist/scripts/src/components/Icon/LinkIcon.js +0 -7
  270. package/dist/scripts/src/components/Icon/ListIcon.js +0 -7
  271. package/dist/scripts/src/components/Icon/LooseListIcon.js +0 -7
  272. package/dist/scripts/src/components/Icon/MoonIcon.js +0 -10
  273. package/dist/scripts/src/components/Icon/MoreOptionsIcon.js +0 -7
  274. package/dist/scripts/src/components/Icon/NoSortIcon.js +0 -8
  275. package/dist/scripts/src/components/Icon/PDFIcon.js +0 -10
  276. package/dist/scripts/src/components/Icon/PenIcon.js +0 -7
  277. package/dist/scripts/src/components/Icon/PhoneIcon.js +0 -7
  278. package/dist/scripts/src/components/Icon/PhotoIcon.js +0 -10
  279. package/dist/scripts/src/components/Icon/PlusIcon.js +0 -7
  280. package/dist/scripts/src/components/Icon/SearchIcon.js +0 -7
  281. package/dist/scripts/src/components/Icon/ShareIcon.js +0 -10
  282. package/dist/scripts/src/components/Icon/SortAscendingIcon.js +0 -8
  283. package/dist/scripts/src/components/Icon/SortDescendingIcon.js +0 -8
  284. package/dist/scripts/src/components/Icon/StarsIcon.js +0 -10
  285. package/dist/scripts/src/components/Icon/SunIcon.js +0 -10
  286. package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +0 -7
  287. package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +0 -7
  288. package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +0 -7
  289. package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +0 -7
  290. package/dist/scripts/src/components/Icon/TrashIcon.js +0 -7
  291. package/dist/scripts/src/components/Icon/TrendingDownIcon.js +0 -10
  292. package/dist/scripts/src/components/Icon/TrendingLevelIcon.js +0 -10
  293. package/dist/scripts/src/components/Icon/TrendingUpIcon.js +0 -10
  294. package/dist/scripts/src/components/Icon/TxtIcon.js +0 -10
  295. package/dist/scripts/src/components/Icon/UnknownFileIcon.js +0 -10
  296. package/dist/scripts/src/components/Icon/UnlinkIcon.js +0 -10
  297. package/dist/scripts/src/components/Icon/UserIcon.js +0 -7
  298. package/dist/scripts/src/components/Icon/WarningIcon.js +0 -7
  299. package/dist/scripts/src/components/Icon/XlsIcon.js +0 -10
  300. package/dist/scripts/src/components/IconProvider.js +0 -300
  301. package/dist/scripts/src/components/IconRegistryContext.js +0 -318
  302. package/dist/scripts/src/components/Image/Image.js +0 -52
  303. package/dist/scripts/src/components/Image/Image.spec.js +0 -198
  304. package/dist/scripts/src/components/Image/ImageNative.js +0 -73
  305. package/dist/scripts/src/components/Input/InputAdornment.js +0 -28
  306. package/dist/scripts/src/components/Input/InputDivider.js +0 -35
  307. package/dist/scripts/src/components/Input/InputLabel.js +0 -25
  308. package/dist/scripts/src/components/Input/PartialInput.js +0 -155
  309. package/dist/scripts/src/components/Input/index.js +0 -5
  310. package/dist/scripts/src/components/InspectButton/InspectButton.js +0 -35
  311. package/dist/scripts/src/components/Items/Items.js +0 -39
  312. package/dist/scripts/src/components/Items/Items.spec.js +0 -397
  313. package/dist/scripts/src/components/Items/ItemsNative.js +0 -33
  314. package/dist/scripts/src/components/Link/Link.js +0 -82
  315. package/dist/scripts/src/components/Link/Link.spec.js +0 -894
  316. package/dist/scripts/src/components/Link/LinkNative.js +0 -48
  317. package/dist/scripts/src/components/List/List.js +0 -130
  318. package/dist/scripts/src/components/List/List.spec.js +0 -927
  319. package/dist/scripts/src/components/List/ListNative.js +0 -433
  320. package/dist/scripts/src/components/List/doc-resources/list-component-data.js +0 -53
  321. package/dist/scripts/src/components/Logo/Logo.js +0 -30
  322. package/dist/scripts/src/components/Logo/LogoNative.js +0 -32
  323. package/dist/scripts/src/components/Markdown/CodeText.js +0 -38
  324. package/dist/scripts/src/components/Markdown/Markdown.js +0 -143
  325. package/dist/scripts/src/components/Markdown/Markdown.spec.js +0 -188
  326. package/dist/scripts/src/components/Markdown/MarkdownNative.js +0 -476
  327. package/dist/scripts/src/components/Markdown/parse-binding-expr.js +0 -60
  328. package/dist/scripts/src/components/Markdown/utils.js +0 -389
  329. package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +0 -111
  330. package/dist/scripts/src/components/ModalDialog/Dialog.js +0 -20
  331. package/dist/scripts/src/components/ModalDialog/ModalDialog.js +0 -83
  332. package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +0 -181
  333. package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +0 -217
  334. package/dist/scripts/src/components/ModalDialog/ModalVisibilityContext.js +0 -60
  335. package/dist/scripts/src/components/NavGroup/NavGroup.js +0 -70
  336. package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +0 -304
  337. package/dist/scripts/src/components/NavGroup/NavGroupContext.js +0 -13
  338. package/dist/scripts/src/components/NavGroup/NavGroupNative.js +0 -133
  339. package/dist/scripts/src/components/NavLink/NavLink.js +0 -86
  340. package/dist/scripts/src/components/NavLink/NavLink.spec.js +0 -864
  341. package/dist/scripts/src/components/NavLink/NavLinkNative.js +0 -73
  342. package/dist/scripts/src/components/NavPanel/NavPanel.js +0 -53
  343. package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +0 -864
  344. package/dist/scripts/src/components/NavPanel/NavPanelNative.js +0 -222
  345. package/dist/scripts/src/components/NestedApp/AppWithCodeView.js +0 -91
  346. package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +0 -84
  347. package/dist/scripts/src/components/NestedApp/NestedApp.js +0 -86
  348. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +0 -231
  349. package/dist/scripts/src/components/NestedApp/Tooltip.js +0 -46
  350. package/dist/scripts/src/components/NestedApp/defaultProps.js +0 -12
  351. package/dist/scripts/src/components/NestedApp/utils.js +0 -67
  352. package/dist/scripts/src/components/NoResult/NoResult.js +0 -46
  353. package/dist/scripts/src/components/NoResult/NoResult.spec.js +0 -863
  354. package/dist/scripts/src/components/NoResult/NoResultNative.js +0 -31
  355. package/dist/scripts/src/components/NumberBox/NumberBox.js +0 -123
  356. package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +0 -979
  357. package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +0 -513
  358. package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +0 -109
  359. package/dist/scripts/src/components/Option/Option.js +0 -44
  360. package/dist/scripts/src/components/Option/Option.spec.js +0 -474
  361. package/dist/scripts/src/components/Option/OptionNative.js +0 -29
  362. package/dist/scripts/src/components/Option/OptionTypeProvider.js +0 -16
  363. package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +0 -13
  364. package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +0 -22
  365. package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +0 -80
  366. package/dist/scripts/src/components/Pages/Pages.js +0 -54
  367. package/dist/scripts/src/components/Pages/PagesNative.js +0 -57
  368. package/dist/scripts/src/components/Pagination/Pagination.js +0 -107
  369. package/dist/scripts/src/components/Pagination/Pagination.spec.js +0 -1008
  370. package/dist/scripts/src/components/Pagination/PaginationNative.js +0 -157
  371. package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +0 -24
  372. package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +0 -14
  373. package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +0 -20
  374. package/dist/scripts/src/components/ProgressBar/ProgressBar.js +0 -38
  375. package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +0 -166
  376. package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +0 -28
  377. package/dist/scripts/src/components/Queue/Queue.js +0 -85
  378. package/dist/scripts/src/components/Queue/Queue.spec.js +0 -624
  379. package/dist/scripts/src/components/Queue/QueueNative.js +0 -342
  380. package/dist/scripts/src/components/Queue/queueActions.js +0 -87
  381. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +0 -61
  382. package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +0 -490
  383. package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +0 -158
  384. package/dist/scripts/src/components/RadioGroup/RadioItem.js +0 -28
  385. package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +0 -62
  386. package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +0 -24
  387. package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +0 -135
  388. package/dist/scripts/src/components/Redirect/Redirect.js +0 -31
  389. package/dist/scripts/src/components/Redirect/Redirect.spec.js +0 -527
  390. package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.js +0 -60
  391. package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +0 -76
  392. package/dist/scripts/src/components/ResponsiveBar/ResponsiveBarNative.js +0 -313
  393. package/dist/scripts/src/components/Select/HiddenOption.js +0 -20
  394. package/dist/scripts/src/components/Select/OptionContext.js +0 -12
  395. package/dist/scripts/src/components/Select/Select.js +0 -131
  396. package/dist/scripts/src/components/Select/Select.spec.js +0 -763
  397. package/dist/scripts/src/components/Select/SelectContext.js +0 -16
  398. package/dist/scripts/src/components/Select/SelectNative.js +0 -440
  399. package/dist/scripts/src/components/SelectionStore/SelectionStore.js +0 -25
  400. package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +0 -103
  401. package/dist/scripts/src/components/Slider/Slider.js +0 -115
  402. package/dist/scripts/src/components/Slider/Slider.spec.js +0 -677
  403. package/dist/scripts/src/components/Slider/SliderNative.js +0 -237
  404. package/dist/scripts/src/components/Slot/Slot.js +0 -17
  405. package/dist/scripts/src/components/Slot/Slot.spec.js +0 -368
  406. package/dist/scripts/src/components/SlotItem.js +0 -32
  407. package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +0 -20
  408. package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +0 -184
  409. package/dist/scripts/src/components/SpaceFiller/SpaceFillerNative.js +0 -10
  410. package/dist/scripts/src/components/Spinner/Spinner.js +0 -39
  411. package/dist/scripts/src/components/Spinner/Spinner.spec.js +0 -161
  412. package/dist/scripts/src/components/Spinner/SpinnerNative.js +0 -48
  413. package/dist/scripts/src/components/Splitter/HSplitter.spec.js +0 -104
  414. package/dist/scripts/src/components/Splitter/Splitter.js +0 -163
  415. package/dist/scripts/src/components/Splitter/Splitter.spec.js +0 -856
  416. package/dist/scripts/src/components/Splitter/SplitterNative.js +0 -205
  417. package/dist/scripts/src/components/Splitter/VSplitter.spec.js +0 -104
  418. package/dist/scripts/src/components/Splitter/utils.js +0 -22
  419. package/dist/scripts/src/components/Stack/CHStack.spec.js +0 -86
  420. package/dist/scripts/src/components/Stack/CVStack.spec.js +0 -86
  421. package/dist/scripts/src/components/Stack/HStack.spec.js +0 -67
  422. package/dist/scripts/src/components/Stack/Stack.js +0 -156
  423. package/dist/scripts/src/components/Stack/Stack.spec.js +0 -654
  424. package/dist/scripts/src/components/Stack/StackNative.js +0 -45
  425. package/dist/scripts/src/components/Stack/VStack.spec.js +0 -67
  426. package/dist/scripts/src/components/StickyBox/StickyBox.js +0 -34
  427. package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +0 -42
  428. package/dist/scripts/src/components/Switch/Switch.js +0 -80
  429. package/dist/scripts/src/components/Switch/Switch.spec.js +0 -834
  430. package/dist/scripts/src/components/Table/Table.js +0 -268
  431. package/dist/scripts/src/components/Table/Table.spec.js +0 -827
  432. package/dist/scripts/src/components/Table/TableNative.js +0 -670
  433. package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +0 -53
  434. package/dist/scripts/src/components/Table/useRowSelection.js +0 -454
  435. package/dist/scripts/src/components/TableOfContents/TableOfContents.js +0 -76
  436. package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +0 -838
  437. package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +0 -81
  438. package/dist/scripts/src/components/Tabs/TabContext.js +0 -58
  439. package/dist/scripts/src/components/Tabs/TabItem.js +0 -44
  440. package/dist/scripts/src/components/Tabs/TabItemNative.js +0 -53
  441. package/dist/scripts/src/components/Tabs/Tabs.js +0 -95
  442. package/dist/scripts/src/components/Tabs/Tabs.spec.js +0 -1237
  443. package/dist/scripts/src/components/Tabs/TabsNative.js +0 -137
  444. package/dist/scripts/src/components/Text/Text.js +0 -181
  445. package/dist/scripts/src/components/Text/Text.spec.js +0 -1676
  446. package/dist/scripts/src/components/Text/TextNative.js +0 -244
  447. package/dist/scripts/src/components/TextArea/TextArea.js +0 -103
  448. package/dist/scripts/src/components/TextArea/TextArea.spec.js +0 -886
  449. package/dist/scripts/src/components/TextArea/TextAreaNative.js +0 -196
  450. package/dist/scripts/src/components/TextArea/TextAreaResizable.js +0 -73
  451. package/dist/scripts/src/components/TextArea/useComposedRef.js +0 -60
  452. package/dist/scripts/src/components/TextBox/TextBox.js +0 -133
  453. package/dist/scripts/src/components/TextBox/TextBox.spec.js +0 -758
  454. package/dist/scripts/src/components/TextBox/TextBoxNative.js +0 -142
  455. package/dist/scripts/src/components/Theme/NotificationToast.js +0 -64
  456. package/dist/scripts/src/components/Theme/Theme.js +0 -47
  457. package/dist/scripts/src/components/Theme/Theme.spec.js +0 -390
  458. package/dist/scripts/src/components/Theme/ThemeNative.js +0 -162
  459. package/dist/scripts/src/components/TimeInput/TimeInput.js +0 -149
  460. package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +0 -1236
  461. package/dist/scripts/src/components/TimeInput/TimeInputNative.js +0 -650
  462. package/dist/scripts/src/components/TimeInput/utils.js +0 -197
  463. package/dist/scripts/src/components/Timer/Timer.js +0 -62
  464. package/dist/scripts/src/components/Timer/Timer.spec.js +0 -328
  465. package/dist/scripts/src/components/Timer/TimerNative.js +0 -178
  466. package/dist/scripts/src/components/Toggle/Toggle.js +0 -172
  467. package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +0 -63
  468. package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +0 -414
  469. package/dist/scripts/src/components/ToneSwitch/ToneSwitch.js +0 -51
  470. package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +0 -89
  471. package/dist/scripts/src/components/ToneSwitch/ToneSwitchNative.js +0 -42
  472. package/dist/scripts/src/components/Tooltip/Tooltip.js +0 -118
  473. package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +0 -418
  474. package/dist/scripts/src/components/Tooltip/TooltipNative.js +0 -160
  475. package/dist/scripts/src/components/Tree/Tree-dynamic.spec.js +0 -2894
  476. package/dist/scripts/src/components/Tree/Tree-icons.spec.js +0 -206
  477. package/dist/scripts/src/components/Tree/Tree.spec.js +0 -2839
  478. package/dist/scripts/src/components/Tree/TreeComponent.js +0 -324
  479. package/dist/scripts/src/components/Tree/TreeNative.js +0 -1129
  480. package/dist/scripts/src/components/Tree/testData.js +0 -296
  481. package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +0 -49
  482. package/dist/scripts/src/components/TreeDisplay/TreeDisplayNative.js +0 -104
  483. package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +0 -64
  484. package/dist/scripts/src/components/VisuallyHidden.js +0 -21
  485. package/dist/scripts/src/components/abstractions.js +0 -341
  486. package/dist/scripts/src/components/chart-color-schemes.js +0 -43
  487. package/dist/scripts/src/components/collectedComponentMetadata.js +0 -316
  488. package/dist/scripts/src/components/component-utils.js +0 -29
  489. package/dist/scripts/src/components/container-helpers.js +0 -26
  490. package/dist/scripts/src/components/metadata-helpers.js +0 -269
  491. package/dist/scripts/src/components-core/ApiBoundComponent.js +0 -227
  492. package/dist/scripts/src/components-core/AppContext.js +0 -16
  493. package/dist/scripts/src/components-core/ComponentDecorator.js +0 -74
  494. package/dist/scripts/src/components-core/ComponentViewer.js +0 -69
  495. package/dist/scripts/src/components-core/CompoundComponent.js +0 -145
  496. package/dist/scripts/src/components-core/DebugViewProvider.js +0 -43
  497. package/dist/scripts/src/components-core/EngineError.js +0 -91
  498. package/dist/scripts/src/components-core/InspectorContext.js +0 -248
  499. package/dist/scripts/src/components-core/LoaderComponent.js +0 -109
  500. package/dist/scripts/src/components-core/RestApiProxy.js +0 -468
  501. package/dist/scripts/src/components-core/StandaloneApp.js +0 -821
  502. package/dist/scripts/src/components-core/StandaloneExtensionManager.js +0 -44
  503. package/dist/scripts/src/components-core/TableOfContentsContext.js +0 -168
  504. package/dist/scripts/src/components-core/abstractions/ComponentRenderer.js +0 -2
  505. package/dist/scripts/src/components-core/abstractions/LoaderRenderer.js +0 -2
  506. package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
  507. package/dist/scripts/src/components-core/abstractions/treeAbstractions.js +0 -2
  508. package/dist/scripts/src/components-core/action/APICall.js +0 -284
  509. package/dist/scripts/src/components-core/action/FileDownloadAction.js +0 -80
  510. package/dist/scripts/src/components-core/action/FileUploadAction.js +0 -88
  511. package/dist/scripts/src/components-core/action/NavigateAction.js +0 -20
  512. package/dist/scripts/src/components-core/action/TimedAction.js +0 -21
  513. package/dist/scripts/src/components-core/action/actions.js +0 -15
  514. package/dist/scripts/src/components-core/appContext/date-functions.js +0 -24
  515. package/dist/scripts/src/components-core/appContext/math-function.js +0 -27
  516. package/dist/scripts/src/components-core/appContext/misc-utils.js +0 -14
  517. package/dist/scripts/src/components-core/behaviors/Behavior.js +0 -2
  518. package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +0 -201
  519. package/dist/scripts/src/components-core/component-hooks.js +0 -25
  520. package/dist/scripts/src/components-core/constants.js +0 -18
  521. package/dist/scripts/src/components-core/descriptorHelper.js +0 -96
  522. package/dist/scripts/src/components-core/devtools/InspectorDialog.js +0 -135
  523. package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +0 -8
  524. package/dist/scripts/src/components-core/event-handlers.js +0 -46
  525. package/dist/scripts/src/components-core/interception/ApiInterceptor.js +0 -247
  526. package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +0 -167
  527. package/dist/scripts/src/components-core/interception/Backend.js +0 -141
  528. package/dist/scripts/src/components-core/interception/Errors.js +0 -129
  529. package/dist/scripts/src/components-core/interception/InMemoryDb.js +0 -41
  530. package/dist/scripts/src/components-core/interception/IndexedDb.js +0 -205
  531. package/dist/scripts/src/components-core/interception/ReadonlyCollection.js +0 -145
  532. package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
  533. package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +0 -44
  534. package/dist/scripts/src/components-core/interception/initMock.js +0 -20
  535. package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +0 -9
  536. package/dist/scripts/src/components-core/loader/ApiLoader.js +0 -54
  537. package/dist/scripts/src/components-core/loader/DataLoader.js +0 -330
  538. package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +0 -60
  539. package/dist/scripts/src/components-core/loader/Loader.js +0 -159
  540. package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +0 -43
  541. package/dist/scripts/src/components-core/loader/PageableLoader.js +0 -272
  542. package/dist/scripts/src/components-core/markup-check.js +0 -279
  543. package/dist/scripts/src/components-core/parts.js +0 -11
  544. package/dist/scripts/src/components-core/renderers.js +0 -76
  545. package/dist/scripts/src/components-core/rendering/AppContent.js +0 -400
  546. package/dist/scripts/src/components-core/rendering/AppRoot.js +0 -87
  547. package/dist/scripts/src/components-core/rendering/AppWrapper.js +0 -49
  548. package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +0 -380
  549. package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +0 -166
  550. package/dist/scripts/src/components-core/rendering/Container.js +0 -621
  551. package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +0 -94
  552. package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +0 -65
  553. package/dist/scripts/src/components-core/rendering/InvalidComponent.js +0 -17
  554. package/dist/scripts/src/components-core/rendering/StandaloneComponent.js +0 -39
  555. package/dist/scripts/src/components-core/rendering/StateContainer.js +0 -350
  556. package/dist/scripts/src/components-core/rendering/UnknownComponent.js +0 -15
  557. package/dist/scripts/src/components-core/rendering/buildProxy.js +0 -58
  558. package/dist/scripts/src/components-core/rendering/collectFnVarDeps.js +0 -49
  559. package/dist/scripts/src/components-core/rendering/containers.js +0 -19
  560. package/dist/scripts/src/components-core/rendering/nodeUtils.js +0 -6
  561. package/dist/scripts/src/components-core/rendering/reducer.js +0 -160
  562. package/dist/scripts/src/components-core/rendering/renderChild.js +0 -82
  563. package/dist/scripts/src/components-core/rendering/valueExtractor.js +0 -216
  564. package/dist/scripts/src/components-core/reportEngineError.js +0 -62
  565. package/dist/scripts/src/components-core/script-runner/AttributeValueParser.js +0 -117
  566. package/dist/scripts/src/components-core/script-runner/BindingTreeEvaluationContext.js +0 -33
  567. package/dist/scripts/src/components-core/script-runner/ParameterParser.js +0 -117
  568. package/dist/scripts/src/components-core/script-runner/ScriptingSourceTree.js +0 -45
  569. package/dist/scripts/src/components-core/script-runner/asyncProxy.js +0 -96
  570. package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +0 -34
  571. package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +0 -613
  572. package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +0 -439
  573. package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +0 -522
  574. package/dist/scripts/src/components-core/script-runner/process-statement-async.js +0 -761
  575. package/dist/scripts/src/components-core/script-runner/process-statement-common.js +0 -208
  576. package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +0 -746
  577. package/dist/scripts/src/components-core/script-runner/simplify-expression.js +0 -386
  578. package/dist/scripts/src/components-core/script-runner/statement-queue.js +0 -63
  579. package/dist/scripts/src/components-core/script-runner/visitors.js +0 -369
  580. package/dist/scripts/src/components-core/theming/StyleContext.js +0 -133
  581. package/dist/scripts/src/components-core/theming/StyleRegistry.js +0 -171
  582. package/dist/scripts/src/components-core/theming/ThemeContext.js +0 -53
  583. package/dist/scripts/src/components-core/theming/ThemeProvider.js +0 -342
  584. package/dist/scripts/src/components-core/theming/component-layout-resolver.js +0 -153
  585. package/dist/scripts/src/components-core/theming/extendThemeUtils.js +0 -47
  586. package/dist/scripts/src/components-core/theming/hvar.js +0 -105
  587. package/dist/scripts/src/components-core/theming/layout-resolver.js +0 -388
  588. package/dist/scripts/src/components-core/theming/parse-layout-props.js +0 -136
  589. package/dist/scripts/src/components-core/theming/themeVars.js +0 -62
  590. package/dist/scripts/src/components-core/theming/themes/base-utils.js +0 -15
  591. package/dist/scripts/src/components-core/theming/themes/palette.js +0 -57
  592. package/dist/scripts/src/components-core/theming/themes/root.js +0 -434
  593. package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
  594. package/dist/scripts/src/components-core/theming/themes/theme-colors.js +0 -561
  595. package/dist/scripts/src/components-core/theming/themes/xmlui.js +0 -57
  596. package/dist/scripts/src/components-core/theming/transformThemeVars.js +0 -733
  597. package/dist/scripts/src/components-core/theming/utils.js +0 -31
  598. package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +0 -41
  599. package/dist/scripts/src/components-core/utils/LruCache.js +0 -184
  600. package/dist/scripts/src/components-core/utils/actionUtils.js +0 -32
  601. package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
  602. package/dist/scripts/src/components-core/utils/base64-utils.js +0 -124
  603. package/dist/scripts/src/components-core/utils/compound-utils.js +0 -11
  604. package/dist/scripts/src/components-core/utils/css-utils.js +0 -179
  605. package/dist/scripts/src/components-core/utils/date-utils.js +0 -186
  606. package/dist/scripts/src/components-core/utils/extractParam.js +0 -281
  607. package/dist/scripts/src/components-core/utils/hooks.js +0 -400
  608. package/dist/scripts/src/components-core/utils/mergeProps.js +0 -45
  609. package/dist/scripts/src/components-core/utils/misc.js +0 -539
  610. package/dist/scripts/src/components-core/utils/request-params.js +0 -70
  611. package/dist/scripts/src/components-core/utils/statementUtils.js +0 -224
  612. package/dist/scripts/src/components-core/utils/treeUtils.js +0 -226
  613. package/dist/scripts/src/components-core/xmlui-parser.js +0 -548
  614. package/dist/scripts/src/index-standalone.js +0 -61
  615. package/dist/scripts/src/index.js +0 -158
  616. package/dist/scripts/src/language-server/server-common.js +0 -152
  617. package/dist/scripts/src/language-server/server-web-worker.js +0 -47
  618. package/dist/scripts/src/language-server/server.js +0 -42
  619. package/dist/scripts/src/language-server/services/common/docs-generation.js +0 -73
  620. package/dist/scripts/src/language-server/services/common/lsp-utils.js +0 -9
  621. package/dist/scripts/src/language-server/services/common/metadata-utils.js +0 -157
  622. package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +0 -127
  623. package/dist/scripts/src/language-server/services/completion.js +0 -288
  624. package/dist/scripts/src/language-server/services/diagnostic.js +0 -19
  625. package/dist/scripts/src/language-server/services/format.js +0 -569
  626. package/dist/scripts/src/language-server/services/hover.js +0 -164
  627. package/dist/scripts/src/language-server/xmlui-metadata-generated.js +0 -16276
  628. package/dist/scripts/src/logging/LoggerContext.js +0 -22
  629. package/dist/scripts/src/logging/LoggerInitializer.js +0 -14
  630. package/dist/scripts/src/logging/LoggerService.js +0 -60
  631. package/dist/scripts/src/logging/xmlui.js +0 -21
  632. package/dist/scripts/src/parsers/common/GenericToken.js +0 -2
  633. package/dist/scripts/src/parsers/common/InputStream.js +0 -59
  634. package/dist/scripts/src/parsers/common/utils.js +0 -19
  635. package/dist/scripts/src/parsers/scripting/Lexer.js +0 -1097
  636. package/dist/scripts/src/parsers/scripting/Parser.js +0 -2638
  637. package/dist/scripts/src/parsers/scripting/ParserError.js +0 -47
  638. package/dist/scripts/src/parsers/scripting/ScriptingNodeTypes.js +0 -50
  639. package/dist/scripts/src/parsers/scripting/TokenTrait.js +0 -108
  640. package/dist/scripts/src/parsers/scripting/TokenType.js +0 -109
  641. package/dist/scripts/src/parsers/scripting/code-behind-collect.js +0 -101
  642. package/dist/scripts/src/parsers/scripting/modules.js +0 -105
  643. package/dist/scripts/src/parsers/scripting/tree-visitor.js +0 -601
  644. package/dist/scripts/src/parsers/style-parser/StyleInputStream.js +0 -39
  645. package/dist/scripts/src/parsers/style-parser/StyleLexer.js +0 -623
  646. package/dist/scripts/src/parsers/style-parser/StyleParser.js +0 -453
  647. package/dist/scripts/src/parsers/style-parser/errors.js +0 -37
  648. package/dist/scripts/src/parsers/style-parser/source-tree.js +0 -2
  649. package/dist/scripts/src/parsers/style-parser/tokens.js +0 -43
  650. package/dist/scripts/src/parsers/xmlui-parser/CharacterCodes.js +0 -136
  651. package/dist/scripts/src/parsers/xmlui-parser/ParserError.js +0 -60
  652. package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +0 -172
  653. package/dist/scripts/src/parsers/xmlui-parser/fileExtensions.js +0 -6
  654. package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
  655. package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -165
  656. package/dist/scripts/src/parsers/xmlui-parser/parser.js +0 -627
  657. package/dist/scripts/src/parsers/xmlui-parser/scanner.js +0 -415
  658. package/dist/scripts/src/parsers/xmlui-parser/syntax-kind.js +0 -123
  659. package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +0 -83
  660. package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -1131
  661. package/dist/scripts/src/parsers/xmlui-parser/utils.js +0 -83
  662. package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
  663. package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
  664. package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
  665. package/dist/scripts/src/syntax/monaco/index.js +0 -14
  666. package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -25
  667. package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -25
  668. package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
  669. package/dist/scripts/src/syntax/textMate/index.js +0 -14
  670. package/dist/scripts/src/syntax/textMate/xmlui-dark.json +0 -631
  671. package/dist/scripts/src/syntax/textMate/xmlui-light.json +0 -565
  672. package/dist/scripts/src/syntax/textMate/xmlui.json +0 -564
  673. package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +0 -341
  674. package/dist/scripts/src/testing/ComponentDrivers.js +0 -1380
  675. package/dist/scripts/src/testing/assertions.js +0 -444
  676. package/dist/scripts/src/testing/component-test-helpers.js +0 -373
  677. package/dist/scripts/src/testing/drivers/DateInputDriver.js +0 -19
  678. package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +0 -10
  679. package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +0 -44
  680. package/dist/scripts/src/testing/drivers/TextBoxDriver.js +0 -20
  681. package/dist/scripts/src/testing/drivers/TimeInputDriver.js +0 -22
  682. package/dist/scripts/src/testing/drivers/TimerDriver.js +0 -64
  683. package/dist/scripts/src/testing/drivers/TreeDriver.js +0 -13
  684. package/dist/scripts/src/testing/drivers/index.js +0 -9
  685. package/dist/scripts/src/testing/fixtures.js +0 -519
  686. package/dist/scripts/src/testing/index.js +0 -69
  687. package/dist/scripts/src/testing/infrastructure/TestBed.js +0 -17
  688. package/dist/scripts/src/testing/infrastructure/main.js +0 -9
  689. package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +0 -266
  690. package/dist/scripts/src/testing/themed-app-test-helpers.js +0 -133
@@ -1,761 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.processStatementQueueAsync = processStatementQueueAsync;
13
- exports.processDeclarationsAsync = processDeclarationsAsync;
14
- const ScriptingSourceTree_1 = require("./ScriptingSourceTree");
15
- const EngineError_1 = require("../EngineError");
16
- const reportEngineError_1 = require("../reportEngineError");
17
- const statement_queue_1 = require("./statement-queue");
18
- const eval_tree_async_1 = require("./eval-tree-async");
19
- const process_statement_common_1 = require("./process-statement-common");
20
- const Parser_1 = require("../../parsers/scripting/Parser");
21
- // --- Helper function to process the entire queue asynchronously
22
- function processStatementQueueAsync(statements, evalContext, thread) {
23
- return __awaiter(this, void 0, void 0, function* () {
24
- var _a, _b, _c, _d;
25
- if (!thread) {
26
- // --- Create the main thread for the queue
27
- thread = (0, process_statement_common_1.ensureMainThread)(evalContext);
28
- }
29
- // --- Hoist function declarations to the top scope
30
- (0, process_statement_common_1.hoistFunctionDeclarations)(thread, statements);
31
- // --- Fill the queue with items
32
- const queue = new statement_queue_1.StatementQueue();
33
- queue.push((0, statement_queue_1.mapStatementsToQueueItems)((0, process_statement_common_1.toStatementItems)(statements)));
34
- // --- Prepare queue diagnostics information
35
- const diagInfo = {
36
- processedStatements: 0,
37
- maxQueueLength: queue.length,
38
- unshiftedItems: 0,
39
- clearToLabels: 0,
40
- maxBlocks: 0,
41
- maxLoops: 0,
42
- };
43
- // --- Consume the queue
44
- let startTime = new Date().getTime();
45
- while (queue.length > 0 && !((_a = evalContext.cancellationToken) === null || _a === void 0 ? void 0 : _a.cancelled)) {
46
- // --- Allow time to break from infinite loops
47
- if (evalContext.timeout && new Date().getTime() - startTime > evalContext.timeout) {
48
- throw new Error("Script execution timeout");
49
- }
50
- // --- Process the first item
51
- const queueItem = queue.dequeue();
52
- thread.breakLabelValue = queue.length > 0 ? queue.peek().label : -1;
53
- let outcome;
54
- try {
55
- // --- Sign that the statement is about to start
56
- yield ((_b = evalContext === null || evalContext === void 0 ? void 0 : evalContext.onStatementStarted) === null || _b === void 0 ? void 0 : _b.call(evalContext, evalContext, queueItem.statement));
57
- // --- Execute the statement
58
- outcome = yield processStatementAsync(queueItem.statement, (_c = queueItem === null || queueItem === void 0 ? void 0 : queueItem.execInfo) !== null && _c !== void 0 ? _c : {}, evalContext, thread);
59
- }
60
- catch (err) {
61
- if (thread.tryBlocks && thread.tryBlocks.length > 0) {
62
- // --- We have a try block to handle this error
63
- const tryScope = thread.tryBlocks[thread.tryBlocks.length - 1];
64
- // --- Sign the error to raise. Next time the guarded try block will execute the catch block, if there is any
65
- tryScope.errorToThrow = err;
66
- tryScope.errorSource = tryScope.processingPhase;
67
- tryScope.processingPhase = "error";
68
- // --- Let's skip the remaining parts of the current block (try/catch/finally)
69
- outcome = {
70
- clearToLabel: tryScope.tryLabel,
71
- };
72
- }
73
- else {
74
- if (err instanceof EngineError_1.ThrowStatementError) {
75
- (0, reportEngineError_1.reportEngineError)(err);
76
- }
77
- else {
78
- // TODO: Provide source code information
79
- (0, reportEngineError_1.reportEngineError)(new EngineError_1.StatementExecutionError(err /* queueItem!.statement?.source */), err);
80
- }
81
- }
82
- }
83
- // --- Modify the queue's content according to the outcome
84
- if (outcome) {
85
- if (outcome.toUnshift) {
86
- queue.unshift(outcome.toUnshift);
87
- diagInfo.unshiftedItems += outcome.toUnshift.length;
88
- }
89
- if (outcome.clearToLabel !== undefined) {
90
- queue.clearToLabel(outcome.clearToLabel);
91
- diagInfo.clearToLabels++;
92
- }
93
- }
94
- // --- Sign that the statement has been completed
95
- yield ((_d = evalContext === null || evalContext === void 0 ? void 0 : evalContext.onStatementCompleted) === null || _d === void 0 ? void 0 : _d.call(evalContext, evalContext, queueItem.statement));
96
- // --- Provide diagnostics
97
- if (queue.length > diagInfo.maxQueueLength) {
98
- diagInfo.maxQueueLength = queue.length;
99
- }
100
- if (thread.blocks && thread.blocks.length > diagInfo.maxBlocks) {
101
- diagInfo.maxBlocks = thread.blocks.length;
102
- }
103
- if (thread.loops && thread.loops.length > diagInfo.maxLoops) {
104
- diagInfo.maxLoops = thread.loops.length;
105
- }
106
- diagInfo.processedStatements++;
107
- }
108
- // --- Done.
109
- return diagInfo;
110
- });
111
- }
112
- /**
113
- * Process the specified statement asynchronously
114
- * @param statement Statement to process
115
- * @param execInfo Execution information
116
- * @param evalContext Evaluation context used for processing
117
- * @param thread Logical thread to use for statement processing
118
- * @param onStatementCompleted
119
- * @returns Items to put back into the queue of statements
120
- */
121
- function processStatementAsync(statement, execInfo, evalContext, thread) {
122
- return __awaiter(this, void 0, void 0, function* () {
123
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
124
- // --- These items should be put in the statement queue after return
125
- let toUnshift = [];
126
- let clearToLabel;
127
- // --- Process the statement according to its type
128
- switch (statement.type) {
129
- case ScriptingSourceTree_1.T_FUNCTION_DECLARATION:
130
- // --- Function declarations are already hoisted, nothing to do
131
- break;
132
- case ScriptingSourceTree_1.T_VAR_STATEMENT:
133
- if (thread !== evalContext.mainThread) {
134
- throw new Error("'var' declarations are not allowed within functions");
135
- }
136
- break;
137
- case ScriptingSourceTree_1.T_EMPTY_STATEMENT:
138
- // --- Nothing to do
139
- break;
140
- case ScriptingSourceTree_1.T_BLOCK_STATEMENT:
141
- // --- No statement, nothing to process
142
- if (statement.stmts.length === 0)
143
- break;
144
- // --- Create a new block scope
145
- (_a = thread.blocks) !== null && _a !== void 0 ? _a : (thread.blocks = []);
146
- thread.blocks.push({ vars: {} });
147
- // --- Hoist function declarations to the innermost block scope
148
- (0, process_statement_common_1.hoistFunctionDeclarations)(thread, statement.stmts);
149
- // --- Queue the block scope's body...
150
- toUnshift = (0, statement_queue_1.mapStatementsToQueueItems)([
151
- ...(0, process_statement_common_1.toStatementItems)(statement.stmts),
152
- // --- ...and an empty statement to remove the block scope
153
- (0, process_statement_common_1.closing)(),
154
- ]);
155
- break;
156
- case ScriptingSourceTree_1.T_EXPRESSION_STATEMENT:
157
- // --- Just evaluate it
158
- const statementValue = yield (0, eval_tree_async_1.evalBindingAsync)(statement.expr, evalContext, thread);
159
- if (thread.blocks && thread.blocks.length !== 0) {
160
- thread.blocks[thread.blocks.length - 1].returnValue = statementValue;
161
- }
162
- break;
163
- case ScriptingSourceTree_1.T_ARROW_EXPRESSION_STATEMENT:
164
- // --- Compile the arrow expression
165
- const arrowFuncValue = yield (0, eval_tree_async_1.executeArrowExpression)(statement.expr, evalContext, thread, ...((_b = evalContext.eventArgs) !== null && _b !== void 0 ? _b : []));
166
- if (thread.blocks && thread.blocks.length !== 0) {
167
- thread.blocks[thread.blocks.length - 1].returnValue = arrowFuncValue;
168
- }
169
- break;
170
- case ScriptingSourceTree_1.T_LET_STATEMENT: {
171
- // --- Create a new variable in the innermost scope
172
- const block = (0, process_statement_common_1.innermostBlockScope)(thread);
173
- if (!block) {
174
- throw new Error("Missing block scope");
175
- }
176
- yield processDeclarationsAsync(block, evalContext, thread, statement.decls);
177
- break;
178
- }
179
- case ScriptingSourceTree_1.T_CONST_STATEMENT: {
180
- // --- Create a new variable in the innermost scope
181
- const block = (0, process_statement_common_1.innermostBlockScope)(thread);
182
- if (!block) {
183
- throw new Error("Missing block scope");
184
- }
185
- yield processDeclarationsAsync(block, evalContext, thread, statement.decls, true);
186
- break;
187
- }
188
- case ScriptingSourceTree_1.T_IF_STATEMENT:
189
- // --- Evaluate the condition
190
- const condition = !!(yield (0, eval_tree_async_1.evalBindingAsync)(statement.cond, evalContext, thread));
191
- if (condition) {
192
- toUnshift = (0, statement_queue_1.mapToItem)(statement.thenB);
193
- }
194
- else if (statement.elseB) {
195
- toUnshift = (0, statement_queue_1.mapToItem)(statement.elseB);
196
- }
197
- break;
198
- case ScriptingSourceTree_1.T_RETURN_STATEMENT: {
199
- // --- Check if return is valid here
200
- let blockScope = (0, process_statement_common_1.innermostBlockScope)(thread);
201
- if (blockScope === undefined) {
202
- throw new Error("Return requires a block scope");
203
- }
204
- // --- Store the return value
205
- thread.returnValue = statement.expr
206
- ? yield (0, eval_tree_async_1.evalBindingAsync)(statement.expr, evalContext, thread)
207
- : undefined;
208
- // --- Check for try blocks
209
- if (((_c = thread.tryBlocks) !== null && _c !== void 0 ? _c : []).length > 0) {
210
- // --- Mark the loop's try scope to exit with "return"
211
- const returnTryScope = thread.tryBlocks[0];
212
- returnTryScope.exitType = "return";
213
- // --- Remove the try/catch/finally block's scope
214
- if (returnTryScope.processingPhase !== "postFinally") {
215
- thread.blocks.pop();
216
- }
217
- // --- Clear the last part of the try/catch/finally block
218
- const tryScope = (0, process_statement_common_1.innermostTryScope)(thread);
219
- clearToLabel = tryScope.tryLabel;
220
- }
221
- else {
222
- // --- Delete the remaining part of the queue
223
- clearToLabel = -1;
224
- }
225
- break;
226
- }
227
- case ScriptingSourceTree_1.T_WHILE_STATEMENT: {
228
- // --- Create or get the loop's scope (guard is falsy for the first execution)
229
- let loopScope = execInfo.guard ? (0, process_statement_common_1.innermostLoopScope)(thread) : (0, process_statement_common_1.createLoopScope)(thread);
230
- // --- Evaluate the loop condition
231
- const condition = !!(yield (0, eval_tree_async_1.evalBindingAsync)(statement.cond, evalContext, thread));
232
- if (condition) {
233
- toUnshift = (0, process_statement_common_1.provideLoopBody)(loopScope, statement, thread.breakLabelValue);
234
- }
235
- else {
236
- // --- When the condition is not met, we're done.
237
- (0, process_statement_common_1.releaseLoopScope)(thread);
238
- }
239
- break;
240
- }
241
- case ScriptingSourceTree_1.T_DO_WHILE_STATEMENT: {
242
- if (!execInfo.guard) {
243
- // --- First loop execution (do-while is a post-test loop)
244
- toUnshift = (0, process_statement_common_1.provideLoopBody)((0, process_statement_common_1.createLoopScope)(thread), statement, thread.breakLabelValue);
245
- break;
246
- }
247
- // --- Evaluate the loop condition
248
- const condition = !!(yield (0, eval_tree_async_1.evalBindingAsync)(statement.cond, evalContext, thread));
249
- if (condition) {
250
- toUnshift = (0, process_statement_common_1.provideLoopBody)((0, process_statement_common_1.innermostLoopScope)(thread), statement, thread.breakLabelValue);
251
- }
252
- else {
253
- // --- When the condition is not met, we're done.
254
- (0, process_statement_common_1.releaseLoopScope)(thread);
255
- }
256
- break;
257
- }
258
- case ScriptingSourceTree_1.T_CONTINUE_STATEMENT: {
259
- // --- Search for the innermost non-switch loop scope, release the switch scopes
260
- if (!thread.loops || thread.loops.length === 0) {
261
- throw new Error("Missing loop scope");
262
- }
263
- let loopScope;
264
- while (thread.loops.length > 0) {
265
- loopScope = (0, process_statement_common_1.innermostLoopScope)(thread);
266
- if (!loopScope.isSwitch) {
267
- break;
268
- }
269
- thread.loops.pop();
270
- }
271
- if (!loopScope) {
272
- throw new Error("Missing loop scope");
273
- }
274
- if (loopScope.tryBlockDepth >= 0 &&
275
- loopScope.tryBlockDepth < ((_d = thread.tryBlocks) !== null && _d !== void 0 ? _d : []).length) {
276
- // --- Mark the loop's try scope to exit with "continue"
277
- for (let i = loopScope.tryBlockDepth; i < thread.tryBlocks.length; i++) {
278
- thread.tryBlocks[loopScope.tryBlockDepth].exitType = "continue";
279
- }
280
- // --- Clear the last part of the try/catch/finally block
281
- const tryScope = (0, process_statement_common_1.innermostTryScope)(thread);
282
- clearToLabel = tryScope.tryLabel;
283
- }
284
- else {
285
- clearToLabel = loopScope.continueLabel;
286
- (0, process_statement_common_1.releaseLoopScope)(thread, false);
287
- }
288
- break;
289
- }
290
- case ScriptingSourceTree_1.T_BREAK_STATEMENT: {
291
- const loopScope = (0, process_statement_common_1.innermostLoopScope)(thread);
292
- if (loopScope === undefined) {
293
- throw new Error("Missing loop scope");
294
- }
295
- if (!!loopScope.isSwitch) {
296
- // --- Break is in a switch case
297
- clearToLabel = loopScope.breakLabel;
298
- break;
299
- }
300
- // --- Break is in a loop construct
301
- if (loopScope.tryBlockDepth >= 0 &&
302
- loopScope.tryBlockDepth < ((_e = thread.tryBlocks) !== null && _e !== void 0 ? _e : []).length) {
303
- // --- Mark the loop's try scope to exit with "break"
304
- for (let i = loopScope.tryBlockDepth; i < thread.tryBlocks.length; i++) {
305
- thread.tryBlocks[loopScope.tryBlockDepth].exitType = "break";
306
- }
307
- // --- Clear the last part of the try/catch/finally block
308
- const tryScope = (0, process_statement_common_1.innermostTryScope)(thread);
309
- clearToLabel = tryScope.tryLabel;
310
- }
311
- else {
312
- clearToLabel = loopScope.breakLabel;
313
- (0, process_statement_common_1.releaseLoopScope)(thread);
314
- }
315
- break;
316
- }
317
- case ScriptingSourceTree_1.T_FOR_STATEMENT:
318
- if (!execInfo.guard) {
319
- // --- Init the loop with a new scope
320
- (0, process_statement_common_1.createLoopScope)(thread, 1);
321
- // --- Create a new block for the loop variables
322
- (_f = thread.blocks) !== null && _f !== void 0 ? _f : (thread.blocks = []);
323
- thread.blocks.push({
324
- vars: {},
325
- });
326
- const guardStatement = (0, process_statement_common_1.guard)(statement);
327
- if (statement.init) {
328
- // --- Unshift the initialization part and the guarded for-loop
329
- toUnshift = (0, statement_queue_1.mapStatementsToQueueItems)([{ statement: statement.init }, guardStatement]);
330
- }
331
- else {
332
- // --- No init, unshift only the guard statement
333
- toUnshift = (0, statement_queue_1.mapStatementsToQueueItems)([guardStatement]);
334
- }
335
- }
336
- else {
337
- // --- Initialization already done. Evaluate the condition
338
- if (!statement.cond || !!(yield (0, eval_tree_async_1.evalBindingAsync)(statement.cond, evalContext, thread))) {
339
- // --- Stay in the loop, inject the body, the update expression, and the loop guard
340
- const loopScope = (0, process_statement_common_1.innermostLoopScope)(thread);
341
- if (statement.upd) {
342
- const updateStmt = {
343
- statement: {
344
- type: ScriptingSourceTree_1.T_EXPRESSION_STATEMENT,
345
- nodeId: (0, Parser_1.createXmlUiTreeNodeId)(),
346
- expr: statement.upd,
347
- },
348
- };
349
- toUnshift = (0, statement_queue_1.mapStatementsToQueueItems)([
350
- { statement: statement.body },
351
- updateStmt,
352
- { statement, execInfo },
353
- ]);
354
- }
355
- else {
356
- toUnshift = (0, statement_queue_1.mapStatementsToQueueItems)([
357
- { statement: statement.body },
358
- { statement, execInfo },
359
- ]);
360
- }
361
- // --- The next queue label is for "break"
362
- loopScope.breakLabel = (_g = thread.breakLabelValue) !== null && _g !== void 0 ? _g : -1;
363
- // --- The guard action's label is for "continue"
364
- loopScope.continueLabel = toUnshift[1].label;
365
- }
366
- else {
367
- // --- The condition is not met, we're done. Remove the loop's scope from the evaluation context
368
- (0, process_statement_common_1.releaseLoopScope)(thread);
369
- }
370
- }
371
- break;
372
- case ScriptingSourceTree_1.T_FOR_IN_STATEMENT:
373
- if (!execInfo.guard) {
374
- // --- Get the object keys
375
- const keyedObject = yield (0, eval_tree_async_1.evalBindingAsync)(statement.expr, evalContext, thread);
376
- if (keyedObject == undefined) {
377
- // --- Nothing to do, no object to traverse
378
- break;
379
- }
380
- // --- Init the loop with a new scope
381
- (0, process_statement_common_1.createLoopScope)(thread, 1);
382
- // --- Create a new block for the loop variables
383
- (_h = thread.blocks) !== null && _h !== void 0 ? _h : (thread.blocks = []);
384
- thread.blocks.push({ vars: {} });
385
- toUnshift = (0, statement_queue_1.mapStatementsToQueueItems)([
386
- { statement, execInfo: { guard: true, keys: Object.keys(keyedObject), keyIndex: 0 } },
387
- ]);
388
- }
389
- else {
390
- // --- Just for the sake of extra safety
391
- if (execInfo.keyIndex === undefined || execInfo.keys === undefined) {
392
- throw new Error("Keys information expected in for..in loop");
393
- }
394
- // --- Any key left?
395
- if (execInfo.keyIndex < execInfo.keys.length) {
396
- // --- Set the binding variable to the next key
397
- const propValue = execInfo.keys[execInfo.keyIndex++];
398
- switch (statement.varB) {
399
- case "none": {
400
- const assigmentExpr = {
401
- type: ScriptingSourceTree_1.T_ASSIGNMENT_EXPRESSION,
402
- leftValue: {
403
- type: ScriptingSourceTree_1.T_IDENTIFIER,
404
- name: statement.id.name,
405
- },
406
- op: "=",
407
- expr: {
408
- type: ScriptingSourceTree_1.T_LITERAL,
409
- value: propValue,
410
- },
411
- };
412
- yield (0, eval_tree_async_1.evalBindingAsync)(assigmentExpr, evalContext, thread);
413
- break;
414
- }
415
- case "const":
416
- case "let":
417
- {
418
- // --- Create a new variable in the innermost scope
419
- const block = (0, process_statement_common_1.innermostBlockScope)(thread);
420
- if (!block) {
421
- throw new Error("Missing block scope");
422
- }
423
- block.vars[statement.id.name] = propValue;
424
- if (statement.varB === "const") {
425
- (_j = block.constVars) !== null && _j !== void 0 ? _j : (block.constVars = new Set());
426
- block.constVars.add(statement.id.name);
427
- }
428
- }
429
- break;
430
- }
431
- // --- Inject the loop body
432
- const loopScope = (0, process_statement_common_1.innermostLoopScope)(thread);
433
- toUnshift = (0, statement_queue_1.mapStatementsToQueueItems)([
434
- { statement: statement.body },
435
- { statement, execInfo },
436
- ]);
437
- // --- The next queue label is for "break"
438
- loopScope.breakLabel = (_k = thread.breakLabelValue) !== null && _k !== void 0 ? _k : -1;
439
- // --- The guard action's label is for "continue"
440
- loopScope.continueLabel = toUnshift[1].label;
441
- }
442
- else {
443
- // --- The condition is not met, we're done. Remove the loop's scope from the evaluation context
444
- (0, process_statement_common_1.releaseLoopScope)(thread);
445
- }
446
- }
447
- break;
448
- case ScriptingSourceTree_1.T_FOR_OF_STATEMENT:
449
- if (!execInfo.guard) {
450
- // --- Get the object keys
451
- const iteratorObject = yield (0, eval_tree_async_1.evalBindingAsync)(statement.expr, evalContext, thread);
452
- if (iteratorObject == null || typeof iteratorObject[Symbol.iterator] !== "function") {
453
- // --- The object is not an iterator
454
- throw new Error("Object in for..of is not iterable");
455
- }
456
- // --- Init the loop with a new scope
457
- (0, process_statement_common_1.createLoopScope)(thread, 1);
458
- // --- Create a new block for the loop variables
459
- (_l = thread.blocks) !== null && _l !== void 0 ? _l : (thread.blocks = []);
460
- thread.blocks.push({ vars: {} });
461
- toUnshift = (0, statement_queue_1.mapStatementsToQueueItems)([
462
- { statement, execInfo: { guard: true, iterator: iteratorObject[Symbol.iterator]() } },
463
- ]);
464
- }
465
- else {
466
- // --- Just for the sake of extra safety
467
- if (execInfo.iterator === undefined) {
468
- throw new Error("Iterator expected in for..of loop");
469
- }
470
- // --- Any iteration left?
471
- const nextIteration = execInfo.iterator.next();
472
- if (nextIteration.done) {
473
- // --- The for..of loop is complete. Remove the loop's scope from the evaluation context
474
- (0, process_statement_common_1.releaseLoopScope)(thread);
475
- break;
476
- }
477
- // --- Set the binding variable to the next key
478
- const propValue = nextIteration.value;
479
- switch (statement.varB) {
480
- case "none": {
481
- const assigmentExpr = {
482
- type: ScriptingSourceTree_1.T_ASSIGNMENT_EXPRESSION,
483
- leftValue: {
484
- type: ScriptingSourceTree_1.T_IDENTIFIER,
485
- name: statement.id.name,
486
- },
487
- op: "=",
488
- expr: {
489
- type: ScriptingSourceTree_1.T_LITERAL,
490
- value: propValue,
491
- },
492
- };
493
- yield (0, eval_tree_async_1.evalBindingAsync)(assigmentExpr, evalContext, thread);
494
- break;
495
- }
496
- case "const":
497
- case "let":
498
- {
499
- // --- Create a new variable in the innermost scope
500
- const block = (0, process_statement_common_1.innermostBlockScope)(thread);
501
- if (!block) {
502
- throw new Error("Missing block scope");
503
- }
504
- block.vars[statement.id.name] = propValue;
505
- if (statement.varB === "const") {
506
- (_m = block.constVars) !== null && _m !== void 0 ? _m : (block.constVars = new Set());
507
- block.constVars.add(statement.id.name);
508
- }
509
- }
510
- break;
511
- }
512
- // --- Inject the loop body
513
- const loopScope = (0, process_statement_common_1.innermostLoopScope)(thread);
514
- toUnshift = (0, statement_queue_1.mapStatementsToQueueItems)([
515
- { statement: statement.body },
516
- { statement, execInfo },
517
- ]);
518
- // --- The next queue label is for "break"
519
- loopScope.breakLabel = (_o = thread.breakLabelValue) !== null && _o !== void 0 ? _o : -1;
520
- // --- The guard action's label is for "continue"
521
- loopScope.continueLabel = toUnshift[1].label;
522
- }
523
- break;
524
- case ScriptingSourceTree_1.T_THROW_STATEMENT: {
525
- throw new EngineError_1.ThrowStatementError(yield (0, eval_tree_async_1.evalBindingAsync)(statement.expr, evalContext, thread));
526
- }
527
- case ScriptingSourceTree_1.T_TRY_STATEMENT: {
528
- if (!execInfo.guard) {
529
- // --- Execute the try block
530
- toUnshift = (0, process_statement_common_1.provideTryBody)(thread, (0, process_statement_common_1.createTryScope)(thread, statement));
531
- break;
532
- }
533
- // --- Evaluate try
534
- const tryScope = (0, process_statement_common_1.innermostTryScope)(thread);
535
- switch (tryScope.processingPhase) {
536
- case "error":
537
- // --- There was an error we may handle with catch
538
- switch (tryScope.errorSource) {
539
- case "try":
540
- // --- Remove the "try" block's scope
541
- thread.blocks.pop();
542
- // --- Go on with catch or finally
543
- if (statement.catchB) {
544
- if (tryScope.statement.catchV) {
545
- const block = (0, process_statement_common_1.innermostBlockScope)(thread);
546
- block.vars[tryScope.statement.catchV.name] =
547
- tryScope.errorToThrow instanceof EngineError_1.ThrowStatementError
548
- ? tryScope.errorToThrow.errorObject
549
- : tryScope.errorToThrow;
550
- }
551
- delete tryScope.errorToThrow;
552
- tryScope.processingPhase = "catch";
553
- toUnshift = (0, process_statement_common_1.provideCatchBody)(thread, tryScope);
554
- }
555
- else if (tryScope.statement.finallyB) {
556
- // --- No catch, move on finally
557
- tryScope.processingPhase = "finally";
558
- toUnshift = (0, process_statement_common_1.provideFinallyBody)(thread, tryScope);
559
- }
560
- break;
561
- case "catch":
562
- // --- Remove the "catch" block's scope
563
- thread.blocks.pop();
564
- // --- Move to the finally block
565
- tryScope.processingPhase = "finally";
566
- toUnshift = (0, process_statement_common_1.provideFinallyBody)(thread, tryScope);
567
- break;
568
- case "finally":
569
- // --- Remove the "finally" block's scope
570
- thread.blocks.pop();
571
- // --- Move to the post finally execution
572
- tryScope.processingPhase = "postFinally";
573
- toUnshift = (0, process_statement_common_1.provideFinallyErrorBody)(tryScope);
574
- break;
575
- }
576
- break;
577
- case "try":
578
- // --- We completed the try block successfully
579
- tryScope.processingPhase = "finally";
580
- if (statement.finallyB) {
581
- toUnshift = (0, process_statement_common_1.provideFinallyBody)(thread, tryScope);
582
- }
583
- break;
584
- case "catch":
585
- // --- We completed the catch block successfully, remove the handled error
586
- tryScope.processingPhase = "finally";
587
- if (statement.finallyB) {
588
- toUnshift = (0, process_statement_common_1.provideFinallyBody)(thread, tryScope);
589
- }
590
- break;
591
- case "finally":
592
- tryScope.processingPhase = "postFinally";
593
- toUnshift = (0, process_statement_common_1.provideFinallyErrorBody)(tryScope);
594
- break;
595
- case "postFinally":
596
- // --- We completed the finally block successfully
597
- const innermostTry = thread.tryBlocks.pop();
598
- // --- Is there any special exit type?
599
- switch (innermostTry.exitType) {
600
- case "break": {
601
- const loopScope = (0, process_statement_common_1.innermostLoopScope)(thread);
602
- if (loopScope === undefined) {
603
- throw new Error("Missing loop scope");
604
- }
605
- (0, process_statement_common_1.releaseLoopScope)(thread);
606
- clearToLabel = loopScope.breakLabel;
607
- break;
608
- }
609
- case "continue": {
610
- const loopScope = (0, process_statement_common_1.innermostLoopScope)(thread);
611
- if (loopScope === undefined) {
612
- throw new Error("Missing loop scope");
613
- }
614
- clearToLabel = loopScope.continueLabel;
615
- (0, process_statement_common_1.releaseLoopScope)(thread, false);
616
- break;
617
- }
618
- case "return":
619
- clearToLabel = -1;
620
- break;
621
- }
622
- // --- Should we raise an error?
623
- if (innermostTry.errorToThrow) {
624
- throw innermostTry.errorToThrow;
625
- }
626
- break;
627
- }
628
- break;
629
- }
630
- case ScriptingSourceTree_1.T_SWITCH_STATEMENT: {
631
- // --- Create or get the loop's scope (guard is falsy for the first execution)
632
- if (execInfo.guard) {
633
- // --- Complete the switch
634
- (0, process_statement_common_1.releaseLoopScope)(thread);
635
- }
636
- else {
637
- let loopScope = (0, process_statement_common_1.createLoopScope)(thread);
638
- loopScope.isSwitch = true;
639
- thread.blocks.push({ vars: {} });
640
- // --- Evaluate the switch value
641
- const switchValue = yield (0, eval_tree_async_1.evalBindingAsync)(statement.expr, evalContext, thread);
642
- // --- Find the matching label
643
- let matchingIndex = -1;
644
- for (let i = 0; i < statement.cases.length; i++) {
645
- const currentCase = statement.cases[i];
646
- // --- Check for default case
647
- if (currentCase.caseE === undefined) {
648
- matchingIndex = i;
649
- break;
650
- }
651
- // --- Check for matching case
652
- const caseValue = yield (0, eval_tree_async_1.evalBindingAsync)(currentCase.caseE, evalContext, thread);
653
- if (caseValue === switchValue) {
654
- matchingIndex = i;
655
- break;
656
- }
657
- }
658
- // --- Merge all statements from the matching label
659
- const statementFlow = [];
660
- if (matchingIndex >= 0) {
661
- for (let i = matchingIndex; i < statement.cases.length; i++) {
662
- statementFlow.push(...statement.cases[i].stmts);
663
- }
664
- }
665
- // --- Queue the statement flow and the guard
666
- toUnshift = (0, statement_queue_1.mapStatementsToQueueItems)([
667
- ...(0, process_statement_common_1.toStatementItems)(statementFlow),
668
- (0, process_statement_common_1.guard)(statement),
669
- ]);
670
- loopScope.breakLabel = toUnshift[toUnshift.length - 1].label;
671
- }
672
- break;
673
- }
674
- }
675
- // --- The statement may remove the innermost scope
676
- if (execInfo.removeBlockScope) {
677
- if (thread.blocks && thread.blocks.length > 0) {
678
- thread.blocks.pop();
679
- }
680
- }
681
- // --- Done.
682
- return { toUnshift, clearToLabel };
683
- });
684
- }
685
- // --- Process a variable declaration
686
- function processDeclarationsAsync(block_1, evalContext_1, thread_1, declarations_1) {
687
- return __awaiter(this, arguments, void 0, function* (block, evalContext, thread, declarations, addConst = false, useValue = false, baseValue = undefined) {
688
- for (let i = 0; i < declarations.length; i++) {
689
- let value;
690
- const decl = declarations[i];
691
- if (useValue) {
692
- value = baseValue;
693
- }
694
- else if (decl.expr) {
695
- value = yield (0, eval_tree_async_1.evalBindingAsync)(decl.expr, evalContext, thread);
696
- }
697
- visitDeclaration(block, decl, value, addConst);
698
- }
699
- // --- Visit a variable
700
- function visitDeclaration(block, decl, baseValue, addConst) {
701
- // --- Process each declaration
702
- if (decl.id) {
703
- visitIdDeclaration(block, decl.id, baseValue, addConst);
704
- }
705
- else if (decl.aDestr) {
706
- visitArrayDestruct(block, decl.aDestr, baseValue, addConst);
707
- }
708
- else if (decl.oDestr) {
709
- visitObjectDestruct(block, decl.oDestr, baseValue, addConst);
710
- }
711
- else {
712
- throw new Error("Unknown declaration specifier");
713
- }
714
- }
715
- // --- Visits a single ID declaration
716
- function visitIdDeclaration(block, id, baseValue, addConst) {
717
- var _a;
718
- if (block.vars[id]) {
719
- throw new Error(`Variable ${id} is already declared in the current scope.`);
720
- }
721
- block.vars[id] = baseValue;
722
- if (addConst) {
723
- (_a = block.constVars) !== null && _a !== void 0 ? _a : (block.constVars = new Set());
724
- block.constVars.add(id);
725
- }
726
- }
727
- // --- Visits an array destructure declaration
728
- function visitArrayDestruct(block, arrayD, baseValue, addConst) {
729
- for (let i = 0; i < arrayD.length; i++) {
730
- const arrDecl = arrayD[i];
731
- const value = baseValue === null || baseValue === void 0 ? void 0 : baseValue[i];
732
- if (arrDecl.id) {
733
- visitIdDeclaration(block, arrDecl.id, value, addConst);
734
- }
735
- else if (arrDecl.aDestr) {
736
- visitArrayDestruct(block, arrDecl.aDestr, value, addConst);
737
- }
738
- else if (arrDecl.oDestr) {
739
- visitObjectDestruct(block, arrDecl.oDestr, value, addConst);
740
- }
741
- }
742
- }
743
- // --- Visits an object destructure declaration
744
- function visitObjectDestruct(block, objectD, baseValue, addConst) {
745
- var _a;
746
- for (let i = 0; i < objectD.length; i++) {
747
- const objDecl = objectD[i];
748
- const value = baseValue === null || baseValue === void 0 ? void 0 : baseValue[objDecl.id];
749
- if (objDecl.aDestr) {
750
- visitArrayDestruct(block, objDecl.aDestr, value, addConst);
751
- }
752
- else if (objDecl.oDestr) {
753
- visitObjectDestruct(block, objDecl.oDestr, value, addConst);
754
- }
755
- else {
756
- visitIdDeclaration(block, (_a = objDecl.alias) !== null && _a !== void 0 ? _a : objDecl.id, value, addConst);
757
- }
758
- }
759
- }
760
- });
761
- }