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.
Files changed (691) 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-DSUDwtWN.js → index-x4orhWfi.js} +2054 -2285
  5. package/dist/lib/index.css +1 -1
  6. package/dist/lib/{initMock-DdH1iCH-.js → initMock-DrUirixi.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-D27cn-XB.js → metadata-utils-2bsMr4Gd.js} +57 -26
  10. package/dist/lib/{server-common-hq0poDwA.js → server-common-DI3W4cob.js} +4140 -3741
  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-Tooy42EB.js → transform-CQ_6R-43.js} +174 -127
  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-BZZ430Wm.js → xmlui-parser-CW8YmGjO.js} +10 -11
  18. package/dist/lib/xmlui-parser.d.ts +2 -0
  19. package/dist/lib/xmlui-parser.js +2 -2
  20. package/dist/lib/{xmlui-serializer-D9D2mQ8m.js → xmlui-serializer-CeCcgdVR.js} +19 -19
  21. package/dist/lib/xmlui.d.ts +124 -2
  22. package/dist/lib/xmlui.js +8 -3
  23. package/dist/metadata/{apiInterceptorWorker-Dql7QGw2.js → apiInterceptorWorker-Wgm2_zjg.js} +124 -149
  24. package/dist/metadata/{collectedComponentMetadata-C8Lr9TFe.js → collectedComponentMetadata-BGdap_gu.js} +2100 -2276
  25. package/dist/metadata/{initMock-CWwgOjW_.js → initMock-DlJ0S4Uy.js} +19 -22
  26. package/dist/metadata/xmlui-metadata.css +1 -0
  27. package/dist/metadata/xmlui-metadata.js +1 -1
  28. package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
  29. package/dist/standalone/xmlui-standalone.es.d.ts +175 -4
  30. package/dist/standalone/xmlui-standalone.umd.js +36 -37
  31. package/package.json +20 -50
  32. package/dist/lib/vite-xmlui-plugin/index.js +0 -13968
  33. package/dist/lib/vite-xmlui-plugin/package.json +0 -3
  34. package/dist/metadata/style.css +0 -1
  35. package/dist/scripts/bin/bootstrap.cjs +0 -4
  36. package/dist/scripts/bin/build-lib.js +0 -126
  37. package/dist/scripts/bin/build.js +0 -266
  38. package/dist/scripts/bin/index.js +0 -167
  39. package/dist/scripts/bin/preview.js +0 -44
  40. package/dist/scripts/bin/start.js +0 -52
  41. package/dist/scripts/bin/vite-xmlui-plugin.js +0 -109
  42. package/dist/scripts/bin/viteConfig.js +0 -144
  43. package/dist/scripts/package.json +0 -285
  44. package/dist/scripts/src/abstractions/ActionDefs.js +0 -2
  45. package/dist/scripts/src/abstractions/AppContextDefs.js +0 -4
  46. package/dist/scripts/src/abstractions/ComponentDefs.js +0 -2
  47. package/dist/scripts/src/abstractions/ContainerDefs.js +0 -2
  48. package/dist/scripts/src/abstractions/ExtensionDefs.js +0 -2
  49. package/dist/scripts/src/abstractions/FunctionDefs.js +0 -2
  50. package/dist/scripts/src/abstractions/RendererDefs.js +0 -2
  51. package/dist/scripts/src/abstractions/ThemingDefs.js +0 -2
  52. package/dist/scripts/src/abstractions/scripting/BlockScope.js +0 -2
  53. package/dist/scripts/src/abstractions/scripting/Compilation.js +0 -2
  54. package/dist/scripts/src/abstractions/scripting/LogicalThread.js +0 -2
  55. package/dist/scripts/src/abstractions/scripting/LoopScope.js +0 -2
  56. package/dist/scripts/src/abstractions/scripting/ScriptParserError.js +0 -2
  57. package/dist/scripts/src/abstractions/scripting/Token.js +0 -2
  58. package/dist/scripts/src/abstractions/scripting/TryScope.js +0 -2
  59. package/dist/scripts/src/abstractions/scripting/TryScopeExp.js +0 -2
  60. package/dist/scripts/src/abstractions/scripting/modules.js +0 -2
  61. package/dist/scripts/src/components/APICall/APICall.js +0 -130
  62. package/dist/scripts/src/components/APICall/APICall.spec.js +0 -910
  63. package/dist/scripts/src/components/APICall/APICallNative.js +0 -36
  64. package/dist/scripts/src/components/Accordion/Accordion.js +0 -97
  65. package/dist/scripts/src/components/Accordion/Accordion.spec.js +0 -969
  66. package/dist/scripts/src/components/Accordion/AccordionContext.js +0 -20
  67. package/dist/scripts/src/components/Accordion/AccordionItem.js +0 -35
  68. package/dist/scripts/src/components/Accordion/AccordionItemNative.js +0 -95
  69. package/dist/scripts/src/components/Accordion/AccordionNative.js +0 -141
  70. package/dist/scripts/src/components/Animation/AnimationNative.js +0 -263
  71. package/dist/scripts/src/components/App/App.js +0 -581
  72. package/dist/scripts/src/components/App/App.spec.js +0 -331
  73. package/dist/scripts/src/components/App/AppLayoutContext.js +0 -49
  74. package/dist/scripts/src/components/App/AppNative.js +0 -308
  75. package/dist/scripts/src/components/App/AppStateContext.js +0 -9
  76. package/dist/scripts/src/components/App/IndexerContext.js +0 -44
  77. package/dist/scripts/src/components/App/LinkInfoContext.js +0 -9
  78. package/dist/scripts/src/components/App/SearchContext.js +0 -35
  79. package/dist/scripts/src/components/App/Sheet.js +0 -99
  80. package/dist/scripts/src/components/AppHeader/AppHeader.js +0 -58
  81. package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +0 -169
  82. package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +0 -72
  83. package/dist/scripts/src/components/AppState/AppState.js +0 -75
  84. package/dist/scripts/src/components/AppState/AppState.spec.js +0 -292
  85. package/dist/scripts/src/components/AppState/AppStateNative.js +0 -51
  86. package/dist/scripts/src/components/AutoComplete/AutoComplete.js +0 -109
  87. package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +0 -433
  88. package/dist/scripts/src/components/AutoComplete/AutoCompleteContext.js +0 -19
  89. package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +0 -498
  90. package/dist/scripts/src/components/Avatar/Avatar.js +0 -55
  91. package/dist/scripts/src/components/Avatar/Avatar.spec.js +0 -1514
  92. package/dist/scripts/src/components/Avatar/AvatarNative.js +0 -58
  93. package/dist/scripts/src/components/Backdrop/Backdrop.js +0 -40
  94. package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +0 -131
  95. package/dist/scripts/src/components/Backdrop/BackdropNative.js +0 -25
  96. package/dist/scripts/src/components/Badge/Badge.js +0 -81
  97. package/dist/scripts/src/components/Badge/Badge.spec.js +0 -2214
  98. package/dist/scripts/src/components/Badge/BadgeNative.js +0 -46
  99. package/dist/scripts/src/components/Bookmark/Bookmark.js +0 -48
  100. package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +0 -230
  101. package/dist/scripts/src/components/Bookmark/BookmarkNative.js +0 -55
  102. package/dist/scripts/src/components/Breakout/Breakout.js +0 -17
  103. package/dist/scripts/src/components/Breakout/Breakout.spec.js +0 -56
  104. package/dist/scripts/src/components/Breakout/BreakoutNative.js +0 -24
  105. package/dist/scripts/src/components/Button/Button-style.spec.js +0 -274
  106. package/dist/scripts/src/components/Button/Button.js +0 -171
  107. package/dist/scripts/src/components/Button/Button.spec.js +0 -425
  108. package/dist/scripts/src/components/Button/ButtonNative.js +0 -109
  109. package/dist/scripts/src/components/Card/Card.js +0 -89
  110. package/dist/scripts/src/components/Card/Card.spec.js +0 -150
  111. package/dist/scripts/src/components/Card/CardNative.js +0 -41
  112. package/dist/scripts/src/components/Carousel/Carousel.js +0 -133
  113. package/dist/scripts/src/components/Carousel/Carousel.spec.js +0 -557
  114. package/dist/scripts/src/components/Carousel/CarouselContext.js +0 -57
  115. package/dist/scripts/src/components/Carousel/CarouselItem.js +0 -15
  116. package/dist/scripts/src/components/Carousel/CarouselItemNative.js +0 -40
  117. package/dist/scripts/src/components/Carousel/CarouselNative.js +0 -195
  118. package/dist/scripts/src/components/ChangeListener/ChangeListener.js +0 -34
  119. package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +0 -169
  120. package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +0 -30
  121. package/dist/scripts/src/components/Charts/AreaChart/AreaChart.js +0 -92
  122. package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +0 -999
  123. package/dist/scripts/src/components/Charts/AreaChart/AreaChartNative.js +0 -127
  124. package/dist/scripts/src/components/Charts/BarChart/BarChart.js +0 -97
  125. package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +0 -597
  126. package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +0 -317
  127. package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +0 -60
  128. package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +0 -608
  129. package/dist/scripts/src/components/Charts/LabelList/LabelList.js +0 -41
  130. package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +0 -539
  131. package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +0 -25
  132. package/dist/scripts/src/components/Charts/Legend/Legend.js +0 -33
  133. package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +0 -558
  134. package/dist/scripts/src/components/Charts/Legend/LegendNative.js +0 -64
  135. package/dist/scripts/src/components/Charts/LineChart/LineChart.js +0 -94
  136. package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +0 -450
  137. package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +0 -192
  138. package/dist/scripts/src/components/Charts/PieChart/PieChart.js +0 -64
  139. package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +0 -584
  140. package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +0 -167
  141. package/dist/scripts/src/components/Charts/RadarChart/RadarChart.js +0 -92
  142. package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +0 -571
  143. package/dist/scripts/src/components/Charts/RadarChart/RadarChartNative.js +0 -125
  144. package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.js +0 -27
  145. package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +0 -451
  146. package/dist/scripts/src/components/Charts/utils/ChartProvider.js +0 -65
  147. package/dist/scripts/src/components/Charts/utils/abstractions.js +0 -26
  148. package/dist/scripts/src/components/Checkbox/Checkbox.js +0 -81
  149. package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +0 -969
  150. package/dist/scripts/src/components/CodeBlock/CodeBlock.js +0 -42
  151. package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +0 -196
  152. package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +0 -127
  153. package/dist/scripts/src/components/CodeBlock/highlight-code.js +0 -273
  154. package/dist/scripts/src/components/ColorPicker/ColorPicker.js +0 -54
  155. package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +0 -312
  156. package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +0 -86
  157. package/dist/scripts/src/components/Column/Column.js +0 -89
  158. package/dist/scripts/src/components/Column/ColumnNative.js +0 -49
  159. package/dist/scripts/src/components/Column/TableContext.js +0 -12
  160. package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +0 -53
  161. package/dist/scripts/src/components/ComponentProvider.js +0 -811
  162. package/dist/scripts/src/components/ComponentRegistryContext.js +0 -44
  163. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +0 -51
  164. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +0 -531
  165. package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +0 -31
  166. package/dist/scripts/src/components/DataSource/DataSource.js +0 -124
  167. package/dist/scripts/src/components/DateInput/DateInput.js +0 -197
  168. package/dist/scripts/src/components/DateInput/DateInput.spec.js +0 -952
  169. package/dist/scripts/src/components/DateInput/DateInputNative.js +0 -734
  170. package/dist/scripts/src/components/DatePicker/DatePicker.js +0 -146
  171. package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +0 -394
  172. package/dist/scripts/src/components/DatePicker/DatePickerNative.js +0 -326
  173. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +0 -196
  174. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +0 -331
  175. package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +0 -146
  176. package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +0 -26
  177. package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +0 -29
  178. package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +0 -71
  179. package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +0 -101
  180. package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +0 -435
  181. package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +0 -109
  182. package/dist/scripts/src/components/FileInput/FileInput.js +0 -80
  183. package/dist/scripts/src/components/FileInput/FileInput.spec.js +0 -285
  184. package/dist/scripts/src/components/FileInput/FileInputNative.js +0 -161
  185. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +0 -58
  186. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +0 -296
  187. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +0 -134
  188. package/dist/scripts/src/components/FlowLayout/FlowLayout.js +0 -65
  189. package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +0 -518
  190. package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +0 -153
  191. package/dist/scripts/src/components/Footer/Footer.js +0 -45
  192. package/dist/scripts/src/components/Footer/Footer.spec.js +0 -991
  193. package/dist/scripts/src/components/Footer/FooterNative.js +0 -35
  194. package/dist/scripts/src/components/Form/Form.js +0 -161
  195. package/dist/scripts/src/components/Form/Form.spec.js +0 -1719
  196. package/dist/scripts/src/components/Form/FormContext.js +0 -124
  197. package/dist/scripts/src/components/Form/FormNative.js +0 -463
  198. package/dist/scripts/src/components/Form/formActions.js +0 -115
  199. package/dist/scripts/src/components/FormItem/FormItem.js +0 -231
  200. package/dist/scripts/src/components/FormItem/FormItem.spec.js +0 -1022
  201. package/dist/scripts/src/components/FormItem/FormItemNative.js +0 -255
  202. package/dist/scripts/src/components/FormItem/HelperText.js +0 -27
  203. package/dist/scripts/src/components/FormItem/ItemWithLabel.js +0 -52
  204. package/dist/scripts/src/components/FormItem/Validations.js +0 -389
  205. package/dist/scripts/src/components/FormSection/FormSection.js +0 -56
  206. package/dist/scripts/src/components/Fragment/Fragment.js +0 -24
  207. package/dist/scripts/src/components/Fragment/Fragment.spec.js +0 -50
  208. package/dist/scripts/src/components/Heading/H1.spec.js +0 -66
  209. package/dist/scripts/src/components/Heading/H2.spec.js +0 -66
  210. package/dist/scripts/src/components/Heading/H3.spec.js +0 -66
  211. package/dist/scripts/src/components/Heading/H4.spec.js +0 -66
  212. package/dist/scripts/src/components/Heading/H5.spec.js +0 -66
  213. package/dist/scripts/src/components/Heading/H6.spec.js +0 -66
  214. package/dist/scripts/src/components/Heading/Heading.js +0 -396
  215. package/dist/scripts/src/components/Heading/Heading.spec.js +0 -966
  216. package/dist/scripts/src/components/Heading/HeadingNative.js +0 -98
  217. package/dist/scripts/src/components/Heading/abstractions.js +0 -4
  218. package/dist/scripts/src/components/HoverCard/HoverCard.js +0 -18
  219. package/dist/scripts/src/components/HoverCard/HovercardNative.js +0 -44
  220. package/dist/scripts/src/components/HtmlTags/HtmlTags.js +0 -1441
  221. package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +0 -69
  222. package/dist/scripts/src/components/IFrame/IFrame.js +0 -77
  223. package/dist/scripts/src/components/IFrame/IFrame.spec.js +0 -527
  224. package/dist/scripts/src/components/IFrame/IFrameNative.js +0 -46
  225. package/dist/scripts/src/components/Icon/AdmonitionDanger.js +0 -10
  226. package/dist/scripts/src/components/Icon/AdmonitionInfo.js +0 -10
  227. package/dist/scripts/src/components/Icon/AdmonitionNote.js +0 -10
  228. package/dist/scripts/src/components/Icon/AdmonitionTip.js +0 -10
  229. package/dist/scripts/src/components/Icon/AdmonitionWarning.js +0 -10
  230. package/dist/scripts/src/components/Icon/ApiIcon.js +0 -10
  231. package/dist/scripts/src/components/Icon/ArrowDropDown.js +0 -11
  232. package/dist/scripts/src/components/Icon/ArrowDropUp.js +0 -11
  233. package/dist/scripts/src/components/Icon/ArrowLeft.js +0 -11
  234. package/dist/scripts/src/components/Icon/ArrowRight.js +0 -11
  235. package/dist/scripts/src/components/Icon/Attach.js +0 -10
  236. package/dist/scripts/src/components/Icon/Binding.js +0 -11
  237. package/dist/scripts/src/components/Icon/BoardIcon.js +0 -7
  238. package/dist/scripts/src/components/Icon/BoxIcon.js +0 -10
  239. package/dist/scripts/src/components/Icon/CheckIcon.js +0 -7
  240. package/dist/scripts/src/components/Icon/ChevronDownIcon.js +0 -7
  241. package/dist/scripts/src/components/Icon/ChevronLeft.js +0 -7
  242. package/dist/scripts/src/components/Icon/ChevronRight.js +0 -7
  243. package/dist/scripts/src/components/Icon/ChevronUpIcon.js +0 -7
  244. package/dist/scripts/src/components/Icon/CodeFileIcon.js +0 -10
  245. package/dist/scripts/src/components/Icon/CodeSandbox.js +0 -10
  246. package/dist/scripts/src/components/Icon/CompactListIcon.js +0 -7
  247. package/dist/scripts/src/components/Icon/ContentCopyIcon.js +0 -7
  248. package/dist/scripts/src/components/Icon/DarkToLightIcon.js +0 -10
  249. package/dist/scripts/src/components/Icon/DatabaseIcon.js +0 -11
  250. package/dist/scripts/src/components/Icon/DocFileIcon.js +0 -10
  251. package/dist/scripts/src/components/Icon/DocIcon.js +0 -10
  252. package/dist/scripts/src/components/Icon/DotMenuHorizontalIcon.js +0 -7
  253. package/dist/scripts/src/components/Icon/DotMenuIcon.js +0 -7
  254. package/dist/scripts/src/components/Icon/EmailIcon.js +0 -7
  255. package/dist/scripts/src/components/Icon/EmptyFolderIcon.js +0 -10
  256. package/dist/scripts/src/components/Icon/ErrorIcon.js +0 -7
  257. package/dist/scripts/src/components/Icon/ExpressionIcon.js +0 -10
  258. package/dist/scripts/src/components/Icon/FillPlusCricleIcon.js +0 -7
  259. package/dist/scripts/src/components/Icon/FilterIcon.js +0 -10
  260. package/dist/scripts/src/components/Icon/FolderIcon.js +0 -10
  261. package/dist/scripts/src/components/Icon/GlobeIcon.js +0 -7
  262. package/dist/scripts/src/components/Icon/HomeIcon.js +0 -7
  263. package/dist/scripts/src/components/Icon/HyperLinkIcon.js +0 -7
  264. package/dist/scripts/src/components/Icon/Icon.js +0 -42
  265. package/dist/scripts/src/components/Icon/Icon.spec.js +0 -527
  266. package/dist/scripts/src/components/Icon/IconNative.js +0 -127
  267. package/dist/scripts/src/components/Icon/ImageFileIcon.js +0 -10
  268. package/dist/scripts/src/components/Icon/Inspect.js +0 -10
  269. package/dist/scripts/src/components/Icon/LightToDark.js +0 -10
  270. package/dist/scripts/src/components/Icon/LinkIcon.js +0 -7
  271. package/dist/scripts/src/components/Icon/ListIcon.js +0 -7
  272. package/dist/scripts/src/components/Icon/LooseListIcon.js +0 -7
  273. package/dist/scripts/src/components/Icon/MoonIcon.js +0 -10
  274. package/dist/scripts/src/components/Icon/MoreOptionsIcon.js +0 -7
  275. package/dist/scripts/src/components/Icon/NoSortIcon.js +0 -8
  276. package/dist/scripts/src/components/Icon/PDFIcon.js +0 -10
  277. package/dist/scripts/src/components/Icon/PenIcon.js +0 -7
  278. package/dist/scripts/src/components/Icon/PhoneIcon.js +0 -7
  279. package/dist/scripts/src/components/Icon/PhotoIcon.js +0 -10
  280. package/dist/scripts/src/components/Icon/PlusIcon.js +0 -7
  281. package/dist/scripts/src/components/Icon/SearchIcon.js +0 -7
  282. package/dist/scripts/src/components/Icon/ShareIcon.js +0 -10
  283. package/dist/scripts/src/components/Icon/SortAscendingIcon.js +0 -8
  284. package/dist/scripts/src/components/Icon/SortDescendingIcon.js +0 -8
  285. package/dist/scripts/src/components/Icon/StarsIcon.js +0 -10
  286. package/dist/scripts/src/components/Icon/SunIcon.js +0 -10
  287. package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +0 -7
  288. package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +0 -7
  289. package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +0 -7
  290. package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +0 -7
  291. package/dist/scripts/src/components/Icon/TrashIcon.js +0 -7
  292. package/dist/scripts/src/components/Icon/TrendingDownIcon.js +0 -10
  293. package/dist/scripts/src/components/Icon/TrendingLevelIcon.js +0 -10
  294. package/dist/scripts/src/components/Icon/TrendingUpIcon.js +0 -10
  295. package/dist/scripts/src/components/Icon/TxtIcon.js +0 -10
  296. package/dist/scripts/src/components/Icon/UnknownFileIcon.js +0 -10
  297. package/dist/scripts/src/components/Icon/UnlinkIcon.js +0 -10
  298. package/dist/scripts/src/components/Icon/UserIcon.js +0 -7
  299. package/dist/scripts/src/components/Icon/WarningIcon.js +0 -7
  300. package/dist/scripts/src/components/Icon/XlsIcon.js +0 -10
  301. package/dist/scripts/src/components/IconProvider.js +0 -300
  302. package/dist/scripts/src/components/IconRegistryContext.js +0 -318
  303. package/dist/scripts/src/components/Image/Image.js +0 -52
  304. package/dist/scripts/src/components/Image/Image.spec.js +0 -198
  305. package/dist/scripts/src/components/Image/ImageNative.js +0 -73
  306. package/dist/scripts/src/components/Input/InputAdornment.js +0 -28
  307. package/dist/scripts/src/components/Input/InputDivider.js +0 -35
  308. package/dist/scripts/src/components/Input/InputLabel.js +0 -25
  309. package/dist/scripts/src/components/Input/PartialInput.js +0 -155
  310. package/dist/scripts/src/components/Input/index.js +0 -5
  311. package/dist/scripts/src/components/InspectButton/InspectButton.js +0 -35
  312. package/dist/scripts/src/components/Items/Items.js +0 -39
  313. package/dist/scripts/src/components/Items/Items.spec.js +0 -397
  314. package/dist/scripts/src/components/Items/ItemsNative.js +0 -33
  315. package/dist/scripts/src/components/Link/Link.js +0 -82
  316. package/dist/scripts/src/components/Link/Link.spec.js +0 -894
  317. package/dist/scripts/src/components/Link/LinkNative.js +0 -48
  318. package/dist/scripts/src/components/List/List.js +0 -130
  319. package/dist/scripts/src/components/List/List.spec.js +0 -927
  320. package/dist/scripts/src/components/List/ListNative.js +0 -433
  321. package/dist/scripts/src/components/List/doc-resources/list-component-data.js +0 -53
  322. package/dist/scripts/src/components/Logo/Logo.js +0 -30
  323. package/dist/scripts/src/components/Logo/LogoNative.js +0 -32
  324. package/dist/scripts/src/components/Markdown/CodeText.js +0 -38
  325. package/dist/scripts/src/components/Markdown/Markdown.js +0 -143
  326. package/dist/scripts/src/components/Markdown/Markdown.spec.js +0 -188
  327. package/dist/scripts/src/components/Markdown/MarkdownNative.js +0 -476
  328. package/dist/scripts/src/components/Markdown/parse-binding-expr.js +0 -60
  329. package/dist/scripts/src/components/Markdown/utils.js +0 -389
  330. package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +0 -111
  331. package/dist/scripts/src/components/ModalDialog/Dialog.js +0 -20
  332. package/dist/scripts/src/components/ModalDialog/ModalDialog.js +0 -83
  333. package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +0 -181
  334. package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +0 -217
  335. package/dist/scripts/src/components/ModalDialog/ModalVisibilityContext.js +0 -60
  336. package/dist/scripts/src/components/NavGroup/NavGroup.js +0 -70
  337. package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +0 -304
  338. package/dist/scripts/src/components/NavGroup/NavGroupContext.js +0 -13
  339. package/dist/scripts/src/components/NavGroup/NavGroupNative.js +0 -133
  340. package/dist/scripts/src/components/NavLink/NavLink.js +0 -86
  341. package/dist/scripts/src/components/NavLink/NavLink.spec.js +0 -864
  342. package/dist/scripts/src/components/NavLink/NavLinkNative.js +0 -73
  343. package/dist/scripts/src/components/NavPanel/NavPanel.js +0 -53
  344. package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +0 -864
  345. package/dist/scripts/src/components/NavPanel/NavPanelNative.js +0 -222
  346. package/dist/scripts/src/components/NestedApp/AppWithCodeView.js +0 -91
  347. package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +0 -84
  348. package/dist/scripts/src/components/NestedApp/NestedApp.js +0 -86
  349. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +0 -231
  350. package/dist/scripts/src/components/NestedApp/Tooltip.js +0 -46
  351. package/dist/scripts/src/components/NestedApp/defaultProps.js +0 -12
  352. package/dist/scripts/src/components/NestedApp/utils.js +0 -67
  353. package/dist/scripts/src/components/NoResult/NoResult.js +0 -46
  354. package/dist/scripts/src/components/NoResult/NoResult.spec.js +0 -863
  355. package/dist/scripts/src/components/NoResult/NoResultNative.js +0 -31
  356. package/dist/scripts/src/components/NumberBox/NumberBox.js +0 -123
  357. package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +0 -954
  358. package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +0 -513
  359. package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +0 -109
  360. package/dist/scripts/src/components/Option/Option.js +0 -44
  361. package/dist/scripts/src/components/Option/Option.spec.js +0 -474
  362. package/dist/scripts/src/components/Option/OptionNative.js +0 -29
  363. package/dist/scripts/src/components/Option/OptionTypeProvider.js +0 -16
  364. package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +0 -13
  365. package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +0 -22
  366. package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +0 -80
  367. package/dist/scripts/src/components/Pages/Pages.js +0 -54
  368. package/dist/scripts/src/components/Pages/PagesNative.js +0 -57
  369. package/dist/scripts/src/components/Pagination/Pagination.js +0 -107
  370. package/dist/scripts/src/components/Pagination/Pagination.spec.js +0 -1008
  371. package/dist/scripts/src/components/Pagination/PaginationNative.js +0 -157
  372. package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +0 -24
  373. package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +0 -14
  374. package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +0 -20
  375. package/dist/scripts/src/components/ProgressBar/ProgressBar.js +0 -38
  376. package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +0 -166
  377. package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +0 -28
  378. package/dist/scripts/src/components/Queue/Queue.js +0 -85
  379. package/dist/scripts/src/components/Queue/Queue.spec.js +0 -624
  380. package/dist/scripts/src/components/Queue/QueueNative.js +0 -342
  381. package/dist/scripts/src/components/Queue/queueActions.js +0 -87
  382. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +0 -61
  383. package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +0 -488
  384. package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +0 -158
  385. package/dist/scripts/src/components/RadioGroup/RadioItem.js +0 -28
  386. package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +0 -62
  387. package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +0 -24
  388. package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +0 -135
  389. package/dist/scripts/src/components/Redirect/Redirect.js +0 -31
  390. package/dist/scripts/src/components/Redirect/Redirect.spec.js +0 -527
  391. package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.js +0 -60
  392. package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +0 -76
  393. package/dist/scripts/src/components/ResponsiveBar/ResponsiveBarNative.js +0 -313
  394. package/dist/scripts/src/components/Select/HiddenOption.js +0 -20
  395. package/dist/scripts/src/components/Select/OptionContext.js +0 -12
  396. package/dist/scripts/src/components/Select/Select.js +0 -131
  397. package/dist/scripts/src/components/Select/Select.spec.js +0 -671
  398. package/dist/scripts/src/components/Select/SelectContext.js +0 -16
  399. package/dist/scripts/src/components/Select/SelectNative.js +0 -440
  400. package/dist/scripts/src/components/SelectionStore/SelectionStore.js +0 -25
  401. package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +0 -103
  402. package/dist/scripts/src/components/Slider/Slider.js +0 -115
  403. package/dist/scripts/src/components/Slider/Slider.spec.js +0 -643
  404. package/dist/scripts/src/components/Slider/SliderNative.js +0 -237
  405. package/dist/scripts/src/components/Slot/Slot.js +0 -17
  406. package/dist/scripts/src/components/Slot/Slot.spec.js +0 -368
  407. package/dist/scripts/src/components/SlotItem.js +0 -32
  408. package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +0 -20
  409. package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +0 -184
  410. package/dist/scripts/src/components/SpaceFiller/SpaceFillerNative.js +0 -10
  411. package/dist/scripts/src/components/Spinner/Spinner.js +0 -39
  412. package/dist/scripts/src/components/Spinner/Spinner.spec.js +0 -161
  413. package/dist/scripts/src/components/Spinner/SpinnerNative.js +0 -48
  414. package/dist/scripts/src/components/Splitter/HSplitter.spec.js +0 -104
  415. package/dist/scripts/src/components/Splitter/Splitter.js +0 -114
  416. package/dist/scripts/src/components/Splitter/Splitter.spec.js +0 -631
  417. package/dist/scripts/src/components/Splitter/SplitterNative.js +0 -203
  418. package/dist/scripts/src/components/Splitter/VSplitter.spec.js +0 -104
  419. package/dist/scripts/src/components/Splitter/utils.js +0 -22
  420. package/dist/scripts/src/components/Stack/CHStack.spec.js +0 -86
  421. package/dist/scripts/src/components/Stack/CVStack.spec.js +0 -86
  422. package/dist/scripts/src/components/Stack/HStack.spec.js +0 -67
  423. package/dist/scripts/src/components/Stack/Stack.js +0 -156
  424. package/dist/scripts/src/components/Stack/Stack.spec.js +0 -654
  425. package/dist/scripts/src/components/Stack/StackNative.js +0 -45
  426. package/dist/scripts/src/components/Stack/VStack.spec.js +0 -67
  427. package/dist/scripts/src/components/StickyBox/StickyBox.js +0 -34
  428. package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +0 -42
  429. package/dist/scripts/src/components/Switch/Switch.js +0 -80
  430. package/dist/scripts/src/components/Switch/Switch.spec.js +0 -836
  431. package/dist/scripts/src/components/Table/Table.js +0 -268
  432. package/dist/scripts/src/components/Table/Table.spec.js +0 -827
  433. package/dist/scripts/src/components/Table/TableNative.js +0 -670
  434. package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +0 -53
  435. package/dist/scripts/src/components/Table/useRowSelection.js +0 -454
  436. package/dist/scripts/src/components/TableOfContents/TableOfContents.js +0 -76
  437. package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +0 -838
  438. package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +0 -81
  439. package/dist/scripts/src/components/Tabs/TabContext.js +0 -58
  440. package/dist/scripts/src/components/Tabs/TabItem.js +0 -44
  441. package/dist/scripts/src/components/Tabs/TabItemNative.js +0 -53
  442. package/dist/scripts/src/components/Tabs/Tabs.js +0 -95
  443. package/dist/scripts/src/components/Tabs/Tabs.spec.js +0 -1237
  444. package/dist/scripts/src/components/Tabs/TabsNative.js +0 -137
  445. package/dist/scripts/src/components/Text/Text.js +0 -181
  446. package/dist/scripts/src/components/Text/Text.spec.js +0 -1676
  447. package/dist/scripts/src/components/Text/TextNative.js +0 -244
  448. package/dist/scripts/src/components/TextArea/TextArea.js +0 -103
  449. package/dist/scripts/src/components/TextArea/TextArea.spec.js +0 -794
  450. package/dist/scripts/src/components/TextArea/TextAreaNative.js +0 -196
  451. package/dist/scripts/src/components/TextArea/TextAreaResizable.js +0 -73
  452. package/dist/scripts/src/components/TextArea/useComposedRef.js +0 -60
  453. package/dist/scripts/src/components/TextBox/TextBox.js +0 -131
  454. package/dist/scripts/src/components/TextBox/TextBox.spec.js +0 -725
  455. package/dist/scripts/src/components/TextBox/TextBoxNative.js +0 -142
  456. package/dist/scripts/src/components/Theme/NotificationToast.js +0 -64
  457. package/dist/scripts/src/components/Theme/Theme.js +0 -47
  458. package/dist/scripts/src/components/Theme/Theme.spec.js +0 -390
  459. package/dist/scripts/src/components/Theme/ThemeNative.js +0 -162
  460. package/dist/scripts/src/components/TimeInput/TimeInput.js +0 -149
  461. package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +0 -1160
  462. package/dist/scripts/src/components/TimeInput/TimeInputNative.js +0 -650
  463. package/dist/scripts/src/components/TimeInput/utils.js +0 -197
  464. package/dist/scripts/src/components/Timer/Timer.js +0 -62
  465. package/dist/scripts/src/components/Timer/Timer.spec.js +0 -328
  466. package/dist/scripts/src/components/Timer/TimerNative.js +0 -178
  467. package/dist/scripts/src/components/Toggle/Toggle.js +0 -172
  468. package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +0 -63
  469. package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +0 -414
  470. package/dist/scripts/src/components/ToneSwitch/ToneSwitch.js +0 -51
  471. package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +0 -89
  472. package/dist/scripts/src/components/ToneSwitch/ToneSwitchNative.js +0 -42
  473. package/dist/scripts/src/components/Tooltip/Tooltip.js +0 -118
  474. package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +0 -418
  475. package/dist/scripts/src/components/Tooltip/TooltipNative.js +0 -160
  476. package/dist/scripts/src/components/Tree/Tree-dynamic.spec.js +0 -2894
  477. package/dist/scripts/src/components/Tree/Tree-icons.spec.js +0 -206
  478. package/dist/scripts/src/components/Tree/Tree.spec.js +0 -2839
  479. package/dist/scripts/src/components/Tree/TreeComponent.js +0 -324
  480. package/dist/scripts/src/components/Tree/TreeNative.js +0 -1129
  481. package/dist/scripts/src/components/Tree/testData.js +0 -296
  482. package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +0 -49
  483. package/dist/scripts/src/components/TreeDisplay/TreeDisplayNative.js +0 -104
  484. package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +0 -64
  485. package/dist/scripts/src/components/VisuallyHidden.js +0 -21
  486. package/dist/scripts/src/components/abstractions.js +0 -341
  487. package/dist/scripts/src/components/chart-color-schemes.js +0 -43
  488. package/dist/scripts/src/components/collectedComponentMetadata.js +0 -316
  489. package/dist/scripts/src/components/component-utils.js +0 -29
  490. package/dist/scripts/src/components/container-helpers.js +0 -26
  491. package/dist/scripts/src/components/metadata-helpers.js +0 -269
  492. package/dist/scripts/src/components-core/ApiBoundComponent.js +0 -227
  493. package/dist/scripts/src/components-core/AppContext.js +0 -16
  494. package/dist/scripts/src/components-core/ComponentDecorator.js +0 -74
  495. package/dist/scripts/src/components-core/ComponentViewer.js +0 -69
  496. package/dist/scripts/src/components-core/CompoundComponent.js +0 -145
  497. package/dist/scripts/src/components-core/DebugViewProvider.js +0 -43
  498. package/dist/scripts/src/components-core/EngineError.js +0 -91
  499. package/dist/scripts/src/components-core/InspectorContext.js +0 -248
  500. package/dist/scripts/src/components-core/LoaderComponent.js +0 -109
  501. package/dist/scripts/src/components-core/RestApiProxy.js +0 -468
  502. package/dist/scripts/src/components-core/StandaloneApp.js +0 -821
  503. package/dist/scripts/src/components-core/StandaloneExtensionManager.js +0 -44
  504. package/dist/scripts/src/components-core/TableOfContentsContext.js +0 -168
  505. package/dist/scripts/src/components-core/abstractions/ComponentRenderer.js +0 -2
  506. package/dist/scripts/src/components-core/abstractions/LoaderRenderer.js +0 -2
  507. package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
  508. package/dist/scripts/src/components-core/abstractions/treeAbstractions.js +0 -2
  509. package/dist/scripts/src/components-core/action/APICall.js +0 -284
  510. package/dist/scripts/src/components-core/action/FileDownloadAction.js +0 -80
  511. package/dist/scripts/src/components-core/action/FileUploadAction.js +0 -88
  512. package/dist/scripts/src/components-core/action/NavigateAction.js +0 -20
  513. package/dist/scripts/src/components-core/action/TimedAction.js +0 -21
  514. package/dist/scripts/src/components-core/action/actions.js +0 -15
  515. package/dist/scripts/src/components-core/appContext/date-functions.js +0 -24
  516. package/dist/scripts/src/components-core/appContext/math-function.js +0 -27
  517. package/dist/scripts/src/components-core/appContext/misc-utils.js +0 -14
  518. package/dist/scripts/src/components-core/behaviors/Behavior.js +0 -2
  519. package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +0 -200
  520. package/dist/scripts/src/components-core/component-hooks.js +0 -25
  521. package/dist/scripts/src/components-core/constants.js +0 -18
  522. package/dist/scripts/src/components-core/descriptorHelper.js +0 -96
  523. package/dist/scripts/src/components-core/devtools/InspectorDialog.js +0 -135
  524. package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +0 -8
  525. package/dist/scripts/src/components-core/event-handlers.js +0 -46
  526. package/dist/scripts/src/components-core/interception/ApiInterceptor.js +0 -247
  527. package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +0 -167
  528. package/dist/scripts/src/components-core/interception/Backend.js +0 -141
  529. package/dist/scripts/src/components-core/interception/Errors.js +0 -129
  530. package/dist/scripts/src/components-core/interception/InMemoryDb.js +0 -41
  531. package/dist/scripts/src/components-core/interception/IndexedDb.js +0 -205
  532. package/dist/scripts/src/components-core/interception/ReadonlyCollection.js +0 -145
  533. package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
  534. package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +0 -44
  535. package/dist/scripts/src/components-core/interception/initMock.js +0 -20
  536. package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +0 -9
  537. package/dist/scripts/src/components-core/loader/ApiLoader.js +0 -54
  538. package/dist/scripts/src/components-core/loader/DataLoader.js +0 -330
  539. package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +0 -60
  540. package/dist/scripts/src/components-core/loader/Loader.js +0 -159
  541. package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +0 -43
  542. package/dist/scripts/src/components-core/loader/PageableLoader.js +0 -272
  543. package/dist/scripts/src/components-core/markup-check.js +0 -279
  544. package/dist/scripts/src/components-core/parts.js +0 -11
  545. package/dist/scripts/src/components-core/renderers.js +0 -76
  546. package/dist/scripts/src/components-core/rendering/AppContent.js +0 -400
  547. package/dist/scripts/src/components-core/rendering/AppRoot.js +0 -87
  548. package/dist/scripts/src/components-core/rendering/AppWrapper.js +0 -49
  549. package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +0 -380
  550. package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +0 -166
  551. package/dist/scripts/src/components-core/rendering/Container.js +0 -621
  552. package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +0 -94
  553. package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +0 -65
  554. package/dist/scripts/src/components-core/rendering/InvalidComponent.js +0 -17
  555. package/dist/scripts/src/components-core/rendering/StandaloneComponent.js +0 -39
  556. package/dist/scripts/src/components-core/rendering/StateContainer.js +0 -350
  557. package/dist/scripts/src/components-core/rendering/UnknownComponent.js +0 -15
  558. package/dist/scripts/src/components-core/rendering/buildProxy.js +0 -58
  559. package/dist/scripts/src/components-core/rendering/collectFnVarDeps.js +0 -49
  560. package/dist/scripts/src/components-core/rendering/containers.js +0 -19
  561. package/dist/scripts/src/components-core/rendering/nodeUtils.js +0 -6
  562. package/dist/scripts/src/components-core/rendering/reducer.js +0 -160
  563. package/dist/scripts/src/components-core/rendering/renderChild.js +0 -82
  564. package/dist/scripts/src/components-core/rendering/valueExtractor.js +0 -216
  565. package/dist/scripts/src/components-core/reportEngineError.js +0 -62
  566. package/dist/scripts/src/components-core/script-runner/AttributeValueParser.js +0 -117
  567. package/dist/scripts/src/components-core/script-runner/BindingTreeEvaluationContext.js +0 -33
  568. package/dist/scripts/src/components-core/script-runner/ParameterParser.js +0 -117
  569. package/dist/scripts/src/components-core/script-runner/ScriptingSourceTree.js +0 -45
  570. package/dist/scripts/src/components-core/script-runner/asyncProxy.js +0 -96
  571. package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +0 -34
  572. package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +0 -613
  573. package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +0 -439
  574. package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +0 -522
  575. package/dist/scripts/src/components-core/script-runner/process-statement-async.js +0 -761
  576. package/dist/scripts/src/components-core/script-runner/process-statement-common.js +0 -208
  577. package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +0 -746
  578. package/dist/scripts/src/components-core/script-runner/simplify-expression.js +0 -386
  579. package/dist/scripts/src/components-core/script-runner/statement-queue.js +0 -63
  580. package/dist/scripts/src/components-core/script-runner/visitors.js +0 -369
  581. package/dist/scripts/src/components-core/theming/StyleContext.js +0 -133
  582. package/dist/scripts/src/components-core/theming/StyleRegistry.js +0 -171
  583. package/dist/scripts/src/components-core/theming/ThemeContext.js +0 -53
  584. package/dist/scripts/src/components-core/theming/ThemeProvider.js +0 -342
  585. package/dist/scripts/src/components-core/theming/component-layout-resolver.js +0 -153
  586. package/dist/scripts/src/components-core/theming/extendThemeUtils.js +0 -47
  587. package/dist/scripts/src/components-core/theming/hvar.js +0 -105
  588. package/dist/scripts/src/components-core/theming/layout-resolver.js +0 -388
  589. package/dist/scripts/src/components-core/theming/parse-layout-props.js +0 -136
  590. package/dist/scripts/src/components-core/theming/themeVars.js +0 -62
  591. package/dist/scripts/src/components-core/theming/themes/base-utils.js +0 -15
  592. package/dist/scripts/src/components-core/theming/themes/palette.js +0 -57
  593. package/dist/scripts/src/components-core/theming/themes/root.js +0 -434
  594. package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
  595. package/dist/scripts/src/components-core/theming/themes/theme-colors.js +0 -561
  596. package/dist/scripts/src/components-core/theming/themes/xmlui.js +0 -57
  597. package/dist/scripts/src/components-core/theming/transformThemeVars.js +0 -733
  598. package/dist/scripts/src/components-core/theming/utils.js +0 -31
  599. package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +0 -41
  600. package/dist/scripts/src/components-core/utils/LruCache.js +0 -184
  601. package/dist/scripts/src/components-core/utils/actionUtils.js +0 -32
  602. package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
  603. package/dist/scripts/src/components-core/utils/base64-utils.js +0 -124
  604. package/dist/scripts/src/components-core/utils/compound-utils.js +0 -11
  605. package/dist/scripts/src/components-core/utils/css-utils.js +0 -179
  606. package/dist/scripts/src/components-core/utils/date-utils.js +0 -186
  607. package/dist/scripts/src/components-core/utils/extractParam.js +0 -281
  608. package/dist/scripts/src/components-core/utils/hooks.js +0 -400
  609. package/dist/scripts/src/components-core/utils/mergeProps.js +0 -45
  610. package/dist/scripts/src/components-core/utils/misc.js +0 -539
  611. package/dist/scripts/src/components-core/utils/request-params.js +0 -70
  612. package/dist/scripts/src/components-core/utils/statementUtils.js +0 -224
  613. package/dist/scripts/src/components-core/utils/treeUtils.js +0 -226
  614. package/dist/scripts/src/components-core/xmlui-parser.js +0 -548
  615. package/dist/scripts/src/index-standalone.js +0 -61
  616. package/dist/scripts/src/index.js +0 -158
  617. package/dist/scripts/src/language-server/server-common.js +0 -152
  618. package/dist/scripts/src/language-server/server-web-worker.js +0 -47
  619. package/dist/scripts/src/language-server/server.js +0 -42
  620. package/dist/scripts/src/language-server/services/common/docs-generation.js +0 -73
  621. package/dist/scripts/src/language-server/services/common/lsp-utils.js +0 -9
  622. package/dist/scripts/src/language-server/services/common/metadata-utils.js +0 -157
  623. package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +0 -135
  624. package/dist/scripts/src/language-server/services/completion.js +0 -288
  625. package/dist/scripts/src/language-server/services/diagnostic.js +0 -19
  626. package/dist/scripts/src/language-server/services/format.js +0 -430
  627. package/dist/scripts/src/language-server/services/hover.js +0 -164
  628. package/dist/scripts/src/language-server/xmlui-metadata-generated.js +0 -16276
  629. package/dist/scripts/src/logging/LoggerContext.js +0 -22
  630. package/dist/scripts/src/logging/LoggerInitializer.js +0 -14
  631. package/dist/scripts/src/logging/LoggerService.js +0 -60
  632. package/dist/scripts/src/logging/xmlui.js +0 -21
  633. package/dist/scripts/src/parsers/common/GenericToken.js +0 -2
  634. package/dist/scripts/src/parsers/common/InputStream.js +0 -59
  635. package/dist/scripts/src/parsers/common/utils.js +0 -19
  636. package/dist/scripts/src/parsers/scripting/Lexer.js +0 -1097
  637. package/dist/scripts/src/parsers/scripting/Parser.js +0 -2638
  638. package/dist/scripts/src/parsers/scripting/ParserError.js +0 -47
  639. package/dist/scripts/src/parsers/scripting/ScriptingNodeTypes.js +0 -50
  640. package/dist/scripts/src/parsers/scripting/TokenTrait.js +0 -108
  641. package/dist/scripts/src/parsers/scripting/TokenType.js +0 -109
  642. package/dist/scripts/src/parsers/scripting/code-behind-collect.js +0 -101
  643. package/dist/scripts/src/parsers/scripting/modules.js +0 -105
  644. package/dist/scripts/src/parsers/scripting/tree-visitor.js +0 -601
  645. package/dist/scripts/src/parsers/style-parser/StyleInputStream.js +0 -39
  646. package/dist/scripts/src/parsers/style-parser/StyleLexer.js +0 -623
  647. package/dist/scripts/src/parsers/style-parser/StyleParser.js +0 -453
  648. package/dist/scripts/src/parsers/style-parser/errors.js +0 -37
  649. package/dist/scripts/src/parsers/style-parser/source-tree.js +0 -2
  650. package/dist/scripts/src/parsers/style-parser/tokens.js +0 -43
  651. package/dist/scripts/src/parsers/xmlui-parser/CharacterCodes.js +0 -136
  652. package/dist/scripts/src/parsers/xmlui-parser/ParserError.js +0 -60
  653. package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +0 -172
  654. package/dist/scripts/src/parsers/xmlui-parser/fileExtensions.js +0 -6
  655. package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
  656. package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -165
  657. package/dist/scripts/src/parsers/xmlui-parser/parser.js +0 -626
  658. package/dist/scripts/src/parsers/xmlui-parser/scanner.js +0 -415
  659. package/dist/scripts/src/parsers/xmlui-parser/syntax-kind.js +0 -123
  660. package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +0 -67
  661. package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -1131
  662. package/dist/scripts/src/parsers/xmlui-parser/utils.js +0 -83
  663. package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
  664. package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
  665. package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
  666. package/dist/scripts/src/syntax/monaco/index.js +0 -14
  667. package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -25
  668. package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -25
  669. package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
  670. package/dist/scripts/src/syntax/textMate/index.js +0 -14
  671. package/dist/scripts/src/syntax/textMate/xmlui-dark.json +0 -631
  672. package/dist/scripts/src/syntax/textMate/xmlui-light.json +0 -565
  673. package/dist/scripts/src/syntax/textMate/xmlui.json +0 -564
  674. package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +0 -341
  675. package/dist/scripts/src/testing/ComponentDrivers.js +0 -1380
  676. package/dist/scripts/src/testing/assertions.js +0 -444
  677. package/dist/scripts/src/testing/component-test-helpers.js +0 -373
  678. package/dist/scripts/src/testing/drivers/DateInputDriver.js +0 -19
  679. package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +0 -10
  680. package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +0 -44
  681. package/dist/scripts/src/testing/drivers/TextBoxDriver.js +0 -20
  682. package/dist/scripts/src/testing/drivers/TimeInputDriver.js +0 -22
  683. package/dist/scripts/src/testing/drivers/TimerDriver.js +0 -64
  684. package/dist/scripts/src/testing/drivers/TreeDriver.js +0 -13
  685. package/dist/scripts/src/testing/drivers/index.js +0 -9
  686. package/dist/scripts/src/testing/fixtures.js +0 -519
  687. package/dist/scripts/src/testing/index.js +0 -69
  688. package/dist/scripts/src/testing/infrastructure/TestBed.js +0 -17
  689. package/dist/scripts/src/testing/infrastructure/main.js +0 -9
  690. package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +0 -266
  691. package/dist/scripts/src/testing/themed-app-test-helpers.js +0 -133
@@ -1,527 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const fixtures_1 = require("../../testing/fixtures");
13
- // =============================================================================
14
- // BASIC FUNCTIONALITY TESTS
15
- // =============================================================================
16
- fixtures_1.test.describe("Basic Functionality", () => {
17
- (0, fixtures_1.test)("component renders with valid icon name", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
18
- yield initTestBed(`<Icon name="home"/>`);
19
- const icon = page.getByTestId("test-id-component");
20
- yield (0, fixtures_1.expect)(icon).toBeVisible();
21
- }));
22
- (0, fixtures_1.test)("component does not render without name prop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
23
- yield initTestBed(`<Icon/>`);
24
- const icon = page.getByTestId("test-id-component");
25
- const exists = yield icon.count();
26
- (0, fixtures_1.expect)(exists).toBe(0); // Icon doesn't render without a valid name
27
- }));
28
- });
29
- // =============================================================================
30
- // NAME PROPERTY TESTS
31
- // =============================================================================
32
- fixtures_1.test.describe("name Property", () => {
33
- (0, fixtures_1.test)("displays icon when valid name is provided", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
34
- yield initTestBed(`<Icon name="home"/>`);
35
- const icon = page.getByTestId("test-id-component");
36
- yield (0, fixtures_1.expect)(icon).toBeVisible();
37
- }));
38
- (0, fixtures_1.test)("handles non-existent icon name gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
39
- yield initTestBed(`<Icon name="non-existent-icon"/>`);
40
- const icon = page.getByTestId("test-id-component");
41
- // Component doesn't render when icon name doesn't exist
42
- const exists = yield icon.count();
43
- (0, fixtures_1.expect)(exists).toBe(0);
44
- }));
45
- (0, fixtures_1.test)("handles empty string name", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
46
- yield initTestBed(`<Icon name=""/>`);
47
- const icon = page.getByTestId("test-id-component");
48
- // Component doesn't render with empty string name
49
- const exists = yield icon.count();
50
- (0, fixtures_1.expect)(exists).toBe(0);
51
- }));
52
- (0, fixtures_1.test)("handles null name value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
53
- yield initTestBed(`<Icon name="{null}"/>`);
54
- const icon = page.getByTestId("test-id-component");
55
- // Component doesn't render with null name
56
- const exists = yield icon.count();
57
- (0, fixtures_1.expect)(exists).toBe(0);
58
- }));
59
- (0, fixtures_1.test)("handles undefined name value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
60
- yield initTestBed(`<Icon name="{undefined}"/>`);
61
- const icon = page.getByTestId("test-id-component");
62
- // Component doesn't render with undefined name
63
- const exists = yield icon.count();
64
- (0, fixtures_1.expect)(exists).toBe(0);
65
- }));
66
- (0, fixtures_1.test)("handles special characters in name", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
67
- yield initTestBed(`<Icon name="test-icon_with$pecial@chars"/>`);
68
- const icon = page.getByTestId("test-id-component");
69
- // Component doesn't render with non-existent special character name
70
- const exists = yield icon.count();
71
- (0, fixtures_1.expect)(exists).toBe(0);
72
- }));
73
- (0, fixtures_1.test)("handles unicode characters in name", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
74
- yield initTestBed(`<Icon name="测试图标"/>`);
75
- const icon = page.getByTestId("test-id-component");
76
- // Component doesn't render with non-existent unicode name
77
- const exists = yield icon.count();
78
- (0, fixtures_1.expect)(exists).toBe(0);
79
- }));
80
- (0, fixtures_1.test)("handles emoji in name", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
81
- yield initTestBed(`<Icon name="🏠"/>`);
82
- const icon = page.getByTestId("test-id-component");
83
- // Component doesn't render with non-existent emoji name
84
- const exists = yield icon.count();
85
- (0, fixtures_1.expect)(exists).toBe(0);
86
- }));
87
- (0, fixtures_1.test)("handles component-specific icon name syntax", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
88
- yield initTestBed(`<Icon name="component:specific-icon"/>`);
89
- const icon = page.getByTestId("test-id-component");
90
- // Component doesn't render with non-existent component-specific name
91
- const exists = yield icon.count();
92
- (0, fixtures_1.expect)(exists).toBe(0);
93
- }));
94
- (0, fixtures_1.test)("handles very long icon name", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
95
- const longName = "a".repeat(1000);
96
- yield initTestBed(`<Icon name="${longName}"/>`);
97
- const icon = page.getByTestId("test-id-component");
98
- // Component doesn't render with non-existent long name
99
- const exists = yield icon.count();
100
- (0, fixtures_1.expect)(exists).toBe(0);
101
- }));
102
- });
103
- // =============================================================================
104
- // SIZE PROPERTY TESTS
105
- // =============================================================================
106
- fixtures_1.test.describe("size Property", () => {
107
- (0, fixtures_1.test)("renders with predefined size 'xs'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
108
- yield initTestBed(`<Icon testId="icon" name="home" size="xs"/>`);
109
- const iconDrv = yield createIconDriver("icon");
110
- const icon = iconDrv.svgIcon;
111
- yield (0, fixtures_1.expect)(icon).toBeVisible();
112
- // Check computed width/height using CSS
113
- const computedStyle = yield icon.evaluate((el) => {
114
- const style = window.getComputedStyle(el);
115
- return { width: style.width, height: style.height };
116
- });
117
- (0, fixtures_1.expect)(computedStyle.width).toBe("12px"); // 0.75em calculated
118
- }));
119
- (0, fixtures_1.test)("renders with predefined size 'sm'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
120
- yield initTestBed(`<Icon testId="icon" name="home" size="sm"/>`);
121
- const iconDrv = yield createIconDriver("icon");
122
- const icon = iconDrv.svgIcon;
123
- yield (0, fixtures_1.expect)(icon).toBeVisible();
124
- const computedStyle = yield icon.evaluate((el) => {
125
- const style = window.getComputedStyle(el);
126
- return { width: style.width, height: style.height };
127
- });
128
- (0, fixtures_1.expect)(computedStyle.width).toBe("16px"); // 1em calculated
129
- }));
130
- (0, fixtures_1.test)("renders with predefined size 'md'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
131
- yield initTestBed(`<Icon testId="icon" name="home" size="md"/>`);
132
- const iconDrv = yield createIconDriver("icon");
133
- const icon = iconDrv.svgIcon;
134
- yield (0, fixtures_1.expect)(icon).toBeVisible();
135
- const computedStyle = yield icon.evaluate((el) => {
136
- const style = window.getComputedStyle(el);
137
- return { width: style.width, height: style.height };
138
- });
139
- (0, fixtures_1.expect)(computedStyle.width).toBe("24px"); // 1.5rem calculated
140
- }));
141
- (0, fixtures_1.test)("renders with predefined size 'lg'", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
142
- yield initTestBed(`<Icon testId="icon" name="home" size="lg"/>`);
143
- const iconDrv = yield createIconDriver("icon");
144
- const icon = iconDrv.svgIcon;
145
- yield (0, fixtures_1.expect)(icon).toBeVisible();
146
- const computedStyle = yield icon.evaluate((el) => {
147
- const style = window.getComputedStyle(el);
148
- return { width: style.width, height: style.height };
149
- });
150
- (0, fixtures_1.expect)(computedStyle.width).toBe("32px"); // 2em calculated
151
- }));
152
- (0, fixtures_1.test)("renders with custom pixel size", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
153
- yield initTestBed(`<Icon testId="icon" name="home" size="48px"/>`);
154
- const iconDrv = yield createIconDriver("icon");
155
- const icon = iconDrv.svgIcon;
156
- yield (0, fixtures_1.expect)(icon).toBeVisible();
157
- const computedStyle = yield icon.evaluate((el) => {
158
- const style = window.getComputedStyle(el);
159
- return { width: style.width, height: style.height };
160
- });
161
- (0, fixtures_1.expect)(computedStyle.width).toBe("48px");
162
- }));
163
- (0, fixtures_1.test)("renders with custom em size", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
164
- yield initTestBed(`<Icon testId="icon" name="home" size="3em"/>`);
165
- const iconDrv = yield createIconDriver("icon");
166
- const icon = iconDrv.svgIcon;
167
- yield (0, fixtures_1.expect)(icon).toBeVisible();
168
- const computedStyle = yield icon.evaluate((el) => {
169
- const style = window.getComputedStyle(el);
170
- return { width: style.width, height: style.height };
171
- });
172
- (0, fixtures_1.expect)(computedStyle.width).toBe("48px"); // 3em calculated at 16px base
173
- }));
174
- (0, fixtures_1.test)("renders with custom rem size", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
175
- yield initTestBed(`<Icon testId="icon" name="home" size="2rem"/>`);
176
- const iconDrv = yield createIconDriver("icon");
177
- const icon = iconDrv.svgIcon;
178
- yield (0, fixtures_1.expect)(icon).toBeVisible();
179
- const computedStyle = yield icon.evaluate((el) => {
180
- const style = window.getComputedStyle(el);
181
- return { width: style.width, height: style.height };
182
- });
183
- (0, fixtures_1.expect)(computedStyle.width).toBe("32px"); // 2rem calculated
184
- }));
185
- (0, fixtures_1.test)("handles invalid size gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
186
- yield initTestBed(`<Icon testId="icon" name="home" size="invalid-size"/>`);
187
- const iconDrv = yield createIconDriver("icon");
188
- const icon = iconDrv.svgIcon;
189
- yield (0, fixtures_1.expect)(icon).not.toBeVisible();
190
- }));
191
- (0, fixtures_1.test)("handles negative size value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
192
- yield initTestBed(`<Icon testId="icon" name="home" size="-20px"/>`);
193
- const iconDrv = yield createIconDriver("icon");
194
- const icon = iconDrv.svgIcon;
195
- // With negative size, element exists but browser normalizes to 0px
196
- const exists = yield icon.count();
197
- (0, fixtures_1.expect)(exists).toBe(1);
198
- const computedStyle = yield icon.evaluate((el) => {
199
- const style = window.getComputedStyle(el);
200
- return { width: style.width, height: style.height };
201
- });
202
- // Browser normalizes negative values to 0px
203
- (0, fixtures_1.expect)(computedStyle.width).toBe("0px");
204
- }));
205
- (0, fixtures_1.test)("handles zero size value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
206
- yield initTestBed(`<Icon testId="icon" name="home" size="0px"/>`);
207
- const iconDrv = yield createIconDriver("icon");
208
- const icon = iconDrv.svgIcon;
209
- // Zero-size elements might not be "visible" but should exist
210
- const exists = yield icon.count();
211
- (0, fixtures_1.expect)(exists).toBe(1);
212
- const computedStyle = yield icon.evaluate((el) => {
213
- const style = window.getComputedStyle(el);
214
- return { width: style.width, height: style.height };
215
- });
216
- (0, fixtures_1.expect)(computedStyle.width).toBe("0px");
217
- }));
218
- (0, fixtures_1.test)("handles null size value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
219
- yield initTestBed(`<Icon testId="icon" name="home" size="{null}"/>`);
220
- const iconDrv = yield createIconDriver("icon");
221
- const icon = iconDrv.svgIcon;
222
- yield (0, fixtures_1.expect)(icon).toBeVisible();
223
- }));
224
- (0, fixtures_1.test)("handles undefined size value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
225
- yield initTestBed(`<Icon testId="icon" name="home" size="{undefined}"/>`);
226
- const iconDrv = yield createIconDriver("icon");
227
- const icon = iconDrv.svgIcon;
228
- yield (0, fixtures_1.expect)(icon).toBeVisible();
229
- }));
230
- });
231
- // =============================================================================
232
- // FALLBACK PROPERTY TESTS
233
- // =============================================================================
234
- fixtures_1.test.describe("fallback Property", () => {
235
- (0, fixtures_1.test)("displays fallback icon when primary icon doesn't exist", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
236
- yield initTestBed(`<Icon name="non-existent-icon" fallback="trash"/>`);
237
- const icon = page.getByTestId("test-id-component");
238
- yield (0, fixtures_1.expect)(icon).toBeVisible();
239
- }));
240
- (0, fixtures_1.test)("ignores fallback when primary icon exists", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
241
- yield initTestBed(`<Icon name="home" fallback="trash"/>`);
242
- const icon = page.getByTestId("test-id-component");
243
- yield (0, fixtures_1.expect)(icon).toBeVisible();
244
- }));
245
- (0, fixtures_1.test)("handles empty string fallback", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
246
- yield initTestBed(`<Icon name="non-existent-icon" fallback=""/>`);
247
- const icon = page.getByTestId("test-id-component");
248
- // Empty fallback means no icon renders
249
- const exists = yield icon.count();
250
- (0, fixtures_1.expect)(exists).toBe(0);
251
- }));
252
- (0, fixtures_1.test)("handles null fallback value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
253
- yield initTestBed(`<Icon name="non-existent-icon" fallback="{null}"/>`);
254
- const icon = page.getByTestId("test-id-component");
255
- // Null fallback means no icon renders
256
- const exists = yield icon.count();
257
- (0, fixtures_1.expect)(exists).toBe(0);
258
- }));
259
- (0, fixtures_1.test)("handles undefined fallback value", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
260
- yield initTestBed(`<Icon name="non-existent-icon" fallback="{undefined}"/>`);
261
- const icon = page.getByTestId("test-id-component");
262
- // Undefined fallback means no icon renders
263
- const exists = yield icon.count();
264
- (0, fixtures_1.expect)(exists).toBe(0);
265
- }));
266
- (0, fixtures_1.test)("handles special characters in fallback", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
267
- yield initTestBed(`<Icon name="non-existent-icon" fallback="test-icon_with$pecial@chars"/>`);
268
- const icon = page.getByTestId("test-id-component");
269
- // Non-existent fallback means no icon renders
270
- const exists = yield icon.count();
271
- (0, fixtures_1.expect)(exists).toBe(0);
272
- }));
273
- (0, fixtures_1.test)("handles non-existent fallback icon", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
274
- yield initTestBed(`<Icon name="non-existent-icon" fallback="also-non-existent"/>`);
275
- const icon = page.getByTestId("test-id-component");
276
- // Non-existent fallback means no icon renders
277
- const exists = yield icon.count();
278
- (0, fixtures_1.expect)(exists).toBe(0);
279
- }));
280
- });
281
- // =============================================================================
282
- // CLICK EVENT TESTS
283
- // =============================================================================
284
- fixtures_1.test.describe("click Event", () => {
285
- (0, fixtures_1.test)("fires click event when icon is clicked", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
286
- const { testStateDriver } = yield initTestBed(`
287
- <Icon testId="icon" name="home" onClick="testState = 'clicked'"/>
288
- `);
289
- const iconDrv = yield createIconDriver("icon");
290
- const icon = iconDrv.svgIcon;
291
- yield icon.click();
292
- yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("clicked");
293
- }));
294
- (0, fixtures_1.test)("applies clickable cursor when click handler is present", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver, }) {
295
- yield initTestBed(`<Icon testId="icon" name="home" onClick="testState = 'clicked'"/>`);
296
- const iconDrv = yield createIconDriver("icon");
297
- const icon = iconDrv.svgIcon;
298
- yield (0, fixtures_1.expect)(icon).toHaveCSS("cursor", "pointer");
299
- }));
300
- (0, fixtures_1.test)("does not apply clickable cursor when no click handler", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
301
- yield initTestBed(`<Icon testId="icon" name="home"/>`);
302
- const iconDrv = yield createIconDriver("icon");
303
- const icon = iconDrv.svgIcon;
304
- const cursor = yield icon.evaluate((el) => window.getComputedStyle(el).cursor);
305
- (0, fixtures_1.expect)(cursor).not.toBe("pointer");
306
- }));
307
- (0, fixtures_1.test)("click event provides event object", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
308
- const { testStateDriver } = yield initTestBed(`
309
- <Icon testId="icon" name="home" onClick="event => testState = event.type"/>
310
- `);
311
- const iconDrv = yield createIconDriver("icon");
312
- const icon = iconDrv.svgIcon;
313
- yield icon.click();
314
- yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("click");
315
- }));
316
- (0, fixtures_1.test)("multiple clicks increment counter", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
317
- const { testStateDriver } = yield initTestBed(`
318
- <Icon testId="icon" name="home" onClick="testState = (testState || 0) + 1"/>
319
- `);
320
- const iconDrv = yield createIconDriver("icon");
321
- const icon = iconDrv.svgIcon;
322
- yield icon.click();
323
- yield fixtures_1.expect.poll(testStateDriver.testState).toEqual(1);
324
- yield icon.click();
325
- yield fixtures_1.expect.poll(testStateDriver.testState).toEqual(2);
326
- yield icon.click();
327
- yield fixtures_1.expect.poll(testStateDriver.testState).toEqual(3);
328
- }));
329
- });
330
- // =============================================================================
331
- // ACCESSIBILITY TESTS
332
- // =============================================================================
333
- fixtures_1.test.describe("Accessibility", () => {
334
- (0, fixtures_1.test)("icon renders as inline element by default", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
335
- yield initTestBed(`<Icon testId="icon" name="home"/>`);
336
- const icon = yield createIconDriver("icon");
337
- const display = yield icon.svgIcon.evaluate((el) => window.getComputedStyle(el).display);
338
- (0, fixtures_1.expect)(display).toBe("inline-block");
339
- }));
340
- (0, fixtures_1.test)("icon has correct vertical alignment", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
341
- yield initTestBed(`<Icon testId="icon" name="home"/>`);
342
- const icon = yield createIconDriver("icon");
343
- yield (0, fixtures_1.expect)(icon.svgIcon).toHaveCSS("vertical-align", "text-bottom");
344
- }));
345
- (0, fixtures_1.test)("icon inherits color from parent", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
346
- yield initTestBed(`
347
- <Text color="red">
348
- <Icon testId="icon" name="home"/>
349
- </Text>
350
- `);
351
- const icon = yield createIconDriver("icon");
352
- const color = yield icon.svgIcon.evaluate((el) => window.getComputedStyle(el).color);
353
- // Should inherit red color or have some computed red value
354
- (0, fixtures_1.expect)(color).not.toBe(""); // Should have some color value
355
- }));
356
- (0, fixtures_1.test)("icon is clickable when click handler is present", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
357
- const { testStateDriver } = yield initTestBed(`
358
- <Icon testId="icon" name="home" onClick="testState = 'activated'"/>
359
- `);
360
- const icon = yield createIconDriver("icon");
361
- yield icon.click();
362
- yield fixtures_1.expect.poll(testStateDriver.testState).toEqual("activated");
363
- }));
364
- (0, fixtures_1.test)("icon can receive focus via tabIndex when clickable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
365
- yield initTestBed(`<Icon testId="icon" name="home" onClick="testState = 'clicked'" />`);
366
- const icon = (yield createIconDriver("icon")).svgIcon;
367
- // For SVG elements, we test focus capability by checking if it can be found after focus
368
- yield (0, fixtures_1.expect)(icon).toBeVisible();
369
- yield icon.focus();
370
- yield (0, fixtures_1.expect)(icon).toBeFocused();
371
- }));
372
- (0, fixtures_1.test)("icon supports keyboard activation with Enter", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
373
- const testBed = yield initTestBed(`<Icon testId="icon" name="home" onClick="testState = 'clicked';" />`);
374
- const { testStateDriver } = testBed;
375
- const driver = yield createIconDriver("icon");
376
- const icon = driver.svgIcon;
377
- // For SVG elements, we test focus capability by checking if it can be found after focus
378
- yield (0, fixtures_1.expect)(icon).toBeVisible();
379
- yield icon.press("Enter");
380
- (0, fixtures_1.expect)(yield testStateDriver.testState()).toBe("clicked");
381
- }));
382
- (0, fixtures_1.test)("icon supports keyboard activation with Space", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
383
- const testBed = yield initTestBed(`<Icon testId="icon" name="home" onClick="testState = 'clicked';" />`);
384
- const { testStateDriver } = testBed;
385
- const driver = yield createIconDriver("icon");
386
- const icon = driver.svgIcon;
387
- // For SVG elements, we test focus capability by checking if it can be found after focus
388
- yield (0, fixtures_1.expect)(icon).toBeVisible();
389
- yield icon.press("Space");
390
- (0, fixtures_1.expect)(yield testStateDriver.testState()).toBe("clicked");
391
- }));
392
- });
393
- // =============================================================================
394
- // THEME VARIABLE TESTS
395
- // =============================================================================
396
- fixtures_1.test.describe("Theme Variables", () => {
397
- (0, fixtures_1.test)("applies theme variable for size", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
398
- yield initTestBed(`<Icon testId="icon" name="home"/>`, {
399
- testThemeVars: {
400
- "size-Icon": "3rem",
401
- },
402
- });
403
- const iconDrv = yield createIconDriver("icon");
404
- const icon = iconDrv.svgIcon;
405
- const computedStyle = yield icon.evaluate((el) => {
406
- const style = window.getComputedStyle(el);
407
- return { width: style.width, height: style.height };
408
- });
409
- (0, fixtures_1.expect)(computedStyle.width).toBe("48px"); // 3rem calculated
410
- (0, fixtures_1.expect)(computedStyle.height).toBe("48px");
411
- }));
412
- (0, fixtures_1.test)("size prop overrides theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
413
- yield initTestBed(`<Icon testId="icon" name="home" size="2rem"/>`, {
414
- testThemeVars: {
415
- "size-Icon": "4rem",
416
- },
417
- });
418
- const icon = yield createIconDriver("icon");
419
- const computedStyle = yield icon.svgIcon.evaluate((el) => {
420
- const style = window.getComputedStyle(el);
421
- return { width: style.width, height: style.height };
422
- });
423
- (0, fixtures_1.expect)(computedStyle.width).toBe("32px"); // 2rem calculated, not 4rem from theme
424
- (0, fixtures_1.expect)(computedStyle.height).toBe("32px");
425
- }));
426
- (0, fixtures_1.test)("applies theme variable with custom CSS variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
427
- yield initTestBed(`<Icon testId="icon" name="home"/>`, {
428
- testThemeVars: {
429
- "size-Icon": "var(--custom-icon-size, 40px)",
430
- },
431
- });
432
- const icon = yield createIconDriver("icon");
433
- const computedStyle = yield icon.svgIcon.evaluate((el) => {
434
- const style = window.getComputedStyle(el);
435
- return { width: style.width, height: style.height };
436
- });
437
- (0, fixtures_1.expect)(computedStyle.width).toBe("40px"); // Fallback value used
438
- (0, fixtures_1.expect)(computedStyle.height).toBe("40px");
439
- }));
440
- });
441
- // =============================================================================
442
- // OTHER EDGE CASE TESTS
443
- // =============================================================================
444
- fixtures_1.test.describe("Other Edge Cases", () => {
445
- (0, fixtures_1.test)("handles null and undefined props gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
446
- yield initTestBed(`<Icon testId="icon" name="home"/>`);
447
- const icon = yield createIconDriver("icon");
448
- yield (0, fixtures_1.expect)(icon.svgIcon).toBeVisible();
449
- }));
450
- (0, fixtures_1.test)("handles component with all invalid props gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
451
- yield initTestBed(`<Icon testId="icon" invalidProp="invalid" anotherInvalid="{123}"/>`);
452
- // Component with invalid props may not be visible, but should not crash
453
- const icon = yield createIconDriver("icon");
454
- const isVisible = yield icon.svgIcon.isVisible();
455
- // Either it's visible with fallback behavior or gracefully hidden
456
- if (isVisible) {
457
- // If visible, it should have fallback behavior
458
- yield (0, fixtures_1.expect)(icon.svgIcon).toBeVisible();
459
- }
460
- else {
461
- // It's acceptable for component to be hidden with invalid props
462
- (0, fixtures_1.expect)(isVisible).toBe(false);
463
- }
464
- }));
465
- (0, fixtures_1.test)("handles mixed valid and invalid props", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
466
- yield initTestBed(`<Icon testId="icon" name="home" invalidProp="invalid" size="lg"/>`);
467
- const iconDrv = yield createIconDriver("icon");
468
- const icon = iconDrv.svgIcon;
469
- yield (0, fixtures_1.expect)(icon).toBeVisible();
470
- // Valid props should still work
471
- const computedStyle = yield icon.evaluate((el) => {
472
- const style = window.getComputedStyle(el);
473
- return { width: style.width, height: style.height };
474
- });
475
- (0, fixtures_1.expect)(computedStyle.width).toBe("32px"); // lg size should apply
476
- }));
477
- (0, fixtures_1.test)("handles object value for name prop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
478
- yield initTestBed(`<Icon testId="icon" name="{{}}" />`);
479
- const icon = yield createIconDriver("icon");
480
- const isVisible = yield icon.svgIcon.isVisible();
481
- if (isVisible) {
482
- yield (0, fixtures_1.expect)(icon.svgIcon).toBeVisible();
483
- }
484
- else {
485
- (0, fixtures_1.expect)(isVisible).toBe(false);
486
- }
487
- }));
488
- (0, fixtures_1.test)("handles array value for size prop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
489
- yield initTestBed(`<Icon testId="icon" name="home" size="{[]}" />`);
490
- const icon = yield createIconDriver("icon");
491
- const isVisible = yield icon.svgIcon.isVisible();
492
- if (isVisible) {
493
- yield (0, fixtures_1.expect)(icon.svgIcon).toBeVisible();
494
- }
495
- else {
496
- (0, fixtures_1.expect)(isVisible).toBe(false);
497
- }
498
- }));
499
- (0, fixtures_1.test)("handles very long Unicode string in fallback", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
500
- const longUnicodeString = "👨‍👩‍👧‍👦".repeat(100);
501
- yield initTestBed(`<Icon testId="icon" name="home" fallback="${longUnicodeString}"/>`);
502
- const icon = yield createIconDriver("icon");
503
- yield (0, fixtures_1.expect)(icon.svgIcon).toBeVisible(); // Icon renders with valid primary name, fallback ignored
504
- }));
505
- (0, fixtures_1.test)("handles concurrent property changes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
506
- yield initTestBed(`<Icon testId="icon" name="home" size="sm"/>`);
507
- const icon = yield createIconDriver("icon");
508
- yield (0, fixtures_1.expect)(icon.svgIcon).toBeVisible();
509
- // Test that initial state is correct
510
- let computedStyle = yield icon.svgIcon.evaluate((el) => {
511
- const style = window.getComputedStyle(el);
512
- return { width: style.width, height: style.height };
513
- });
514
- (0, fixtures_1.expect)(computedStyle.width).toBe("16px"); // sm size
515
- }));
516
- (0, fixtures_1.test)("handles rapid sequential clicks", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createIconDriver }) {
517
- const { testStateDriver } = yield initTestBed(`
518
- <Icon testId="icon" name="home" onClick="testState = (testState || 0) + 1"/>
519
- `);
520
- const iconDrv = yield createIconDriver("icon");
521
- const icon = iconDrv.svgIcon;
522
- // Rapid sequential clicks
523
- yield Promise.all([icon.click(), icon.click(), icon.click(), icon.click(), icon.click()]);
524
- // Should eventually reach 5 (all clicks processed)
525
- yield fixtures_1.expect.poll(testStateDriver.testState).toEqual(5);
526
- }));
527
- });
@@ -1,127 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Icon = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const react_1 = require("react");
20
- const Icon_module_scss_1 = __importDefault(require("./Icon.module.scss"));
21
- const IconRegistryContext_1 = require("../IconRegistryContext");
22
- const classnames_1 = __importDefault(require("classnames"));
23
- const ThemeContext_1 = require("../../components-core/theming/ThemeContext");
24
- const StyleParser_1 = require("../../parsers/style-parser/StyleParser");
25
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
26
- exports.Icon = (0, react_1.forwardRef)(function Icon(_a, ref) {
27
- var _b;
28
- var { name, fallback, style, className, size, onClick, tabIndex, onKeyDown } = _a, restProps = __rest(_a, ["name", "fallback", "style", "className", "size", "onClick", "tabIndex", "onKeyDown"]);
29
- const { iconRenderer, iconName } = useFindIconRenderer(name, fallback);
30
- // Handle keyboard events for clickable icons
31
- const handleKeyDown = (event) => {
32
- if (onClick && (event.key === "Enter" || event.key === " ")) {
33
- event.preventDefault();
34
- onClick(event);
35
- }
36
- onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
37
- };
38
- const computedSize = typeof size === "string" ? mapSizeToIconPack(size) : size;
39
- const width = computedSize || restProps.width;
40
- const height = computedSize || restProps.height;
41
- const computedProps = Object.assign(Object.assign({
42
- // className is needed to apply a default color to the icon, thus other component classes can override this one
43
- className: (0, classnames_1.default)(Icon_module_scss_1.default.base, className, { [Icon_module_scss_1.default.clickable]: !!onClick }) }, restProps), { size: computedSize, width: width, height: height, style: Object.assign(Object.assign({}, style), { "--icon-width": width, "--icon-height": height }), "data-icon-name": iconName, onClick, onKeyDown: handleKeyDown, tabIndex: onClick ? (tabIndex !== null && tabIndex !== void 0 ? tabIndex : 0) : tabIndex });
44
- // ---
45
- const customIconUrl = useCustomIconUrl(name);
46
- if (customIconUrl) {
47
- return (0, jsx_runtime_1.jsx)(CustomIcon, Object.assign({}, computedProps, { url: customIconUrl, name: name, ref: ref }));
48
- }
49
- const renderedIcon = (_b = iconRenderer === null || iconRenderer === void 0 ? void 0 : iconRenderer.renderer) === null || _b === void 0 ? void 0 : _b.call(iconRenderer, computedProps, ref);
50
- if (!renderedIcon) {
51
- return null;
52
- }
53
- return ((0, jsx_runtime_1.jsx)("span", { ref: ref, style: { display: "inline-block" }, children: renderedIcon }));
54
- });
55
- const CustomIcon = (0, react_1.forwardRef)(function CustomIcon(props, ref) {
56
- var _a;
57
- const { url, width, height, name, style, className, onClick, onKeyDown, tabIndex } = props, rest = __rest(props, ["url", "width", "height", "name", "style", "className", "onClick", "onKeyDown", "tabIndex"]);
58
- // Handle keyboard events for clickable icons
59
- const handleKeyDown = (event) => {
60
- if (onClick && (event.key === "Enter" || event.key === " ")) {
61
- event.preventDefault();
62
- onClick(event);
63
- }
64
- onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
65
- };
66
- const resourceUrl = (0, ThemeContext_1.useResourceUrl)(url);
67
- const isSvgIcon = (_a = resourceUrl === null || resourceUrl === void 0 ? void 0 : resourceUrl.toLowerCase()) === null || _a === void 0 ? void 0 : _a.endsWith(".svg");
68
- const customSvgIconRenderer = (0, IconRegistryContext_1.useCustomSvgIconRenderer)(resourceUrl);
69
- if (resourceUrl && isSvgIcon) {
70
- const renderedIcon = customSvgIconRenderer === null || customSvgIconRenderer === void 0 ? void 0 : customSvgIconRenderer(Object.assign({ style,
71
- className,
72
- onClick, onKeyDown: handleKeyDown, tabIndex: onClick ? (tabIndex !== null && tabIndex !== void 0 ? tabIndex : 0) : tabIndex, "data-icon-name": name }, rest));
73
- if (!renderedIcon) {
74
- //to prevent layout shift
75
- return ((0, jsx_runtime_1.jsx)("span", Object.assign({}, rest, { "data-icon-name": name, ref: ref, style: style, className: className, onClick: onClick, onKeyDown: handleKeyDown, tabIndex: onClick ? (tabIndex !== null && tabIndex !== void 0 ? tabIndex : 0) : tabIndex })));
76
- }
77
- return renderedIcon;
78
- }
79
- return ((0, jsx_runtime_1.jsx)("img", Object.assign({ ref: ref, src: resourceUrl, "data-icon-name": name, style: Object.assign({ width, height }, style), alt: name, onClick: onClick, onKeyDown: handleKeyDown, tabIndex: onClick ? (tabIndex !== null && tabIndex !== void 0 ? tabIndex : 0) : tabIndex }, rest)));
80
- });
81
- function useCustomIconUrl(iconName) {
82
- const { getResourceUrl } = (0, ThemeContext_1.useTheme)();
83
- if (!iconName) {
84
- return iconName;
85
- }
86
- return getResourceUrl(`resource:icon.${iconName}`);
87
- }
88
- function mapSizeToIconPack(size) {
89
- if (/^\$[a-zA-Z0-9_$-]+$/g.test(size)) {
90
- return (0, StyleParser_1.toCssVar)(size);
91
- }
92
- return ({
93
- xs: "0.75em",
94
- sm: "1em",
95
- md: "1.5rem",
96
- lg: "2em",
97
- }[size] || size);
98
- }
99
- function useFindIconRenderer(name, fallback) {
100
- const iconRegistry = (0, IconRegistryContext_1.useIconRegistry)();
101
- if (name && typeof name === "string") {
102
- const separator = ":";
103
- const parts = name.split(separator);
104
- // Component specific icon
105
- if (parts.length > 1) {
106
- const iconRenderer = iconRegistry.lookupIconRenderer(`${parts[0].toLowerCase()}${separator}${parts[1]}`);
107
- if (iconRenderer) {
108
- return { iconRenderer, iconName: name };
109
- }
110
- }
111
- // General icon
112
- if (parts.length === 1) {
113
- const iconRenderer = iconRegistry.lookupIconRenderer(parts[0]);
114
- if (iconRenderer) {
115
- return { iconRenderer, iconName: name };
116
- }
117
- }
118
- }
119
- if (fallback && typeof fallback === "string") {
120
- const iconRenderer = iconRegistry.lookupIconRenderer(fallback.toLowerCase());
121
- if (iconRenderer) {
122
- return { iconRenderer, iconName: fallback };
123
- }
124
- }
125
- return { iconRenderer: null, iconName: null };
126
- }
127
- exports.default = exports.Icon;