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,1676 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const component_test_helpers_1 = require("../../testing/component-test-helpers");
13
- const fixtures_1 = require("../../testing/fixtures");
14
- const abstractions_1 = require("../abstractions");
15
- // =============================================================================
16
- // BASIC FUNCTIONALITY TESTS
17
- // =============================================================================
18
- fixtures_1.test.describe("Basic Functionality", () => {
19
- (0, fixtures_1.test)("component renders", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
20
- yield initTestBed(`<Text />`);
21
- const driver = yield createTextDriver();
22
- yield (0, fixtures_1.expect)(driver.component).toBeAttached();
23
- yield (0, fixtures_1.expect)(driver.component).toBeEmpty();
24
- }));
25
- (0, fixtures_1.test)("component renders with value prop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
26
- yield initTestBed(`<Text value="test content" />`);
27
- const driver = yield createTextDriver();
28
- yield (0, fixtures_1.expect)(driver.component).toHaveText("test content");
29
- }));
30
- (0, fixtures_1.test)("component renders with text content", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
31
- yield initTestBed(`<Text>test content</Text>`);
32
- const driver = yield createTextDriver();
33
- yield (0, fixtures_1.expect)(driver.component).toHaveText("test content");
34
- }));
35
- (0, fixtures_1.test)("text content overrides value prop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
36
- const EXPECTED = "this test text is the value of the heading";
37
- yield initTestBed(`
38
- <Text value="${EXPECTED}">
39
- This is a child
40
- </Text>
41
- `);
42
- const driver = yield createTextDriver();
43
- yield (0, fixtures_1.expect)(driver.component).toHaveText(EXPECTED);
44
- }));
45
- Object.entries(abstractions_1.TextVariantElement).forEach(([variant, htmlElement]) => {
46
- (0, fixtures_1.test)(`variant=${variant} renders correct HTML element: ${htmlElement}`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
47
- yield initTestBed(`<Text variant="${variant}" />`);
48
- const driver = yield createTextDriver();
49
- const tagName = yield driver.getComponentTagName();
50
- (0, fixtures_1.expect)(tagName).toEqual(htmlElement);
51
- }));
52
- });
53
- Array.from(new Set(Object.values(abstractions_1.TextVariantElement)))
54
- .filter((variant) => !["h6", "span"].includes(variant))
55
- .forEach((htmlElement) => {
56
- (0, fixtures_1.test)(`HtmlTag component '${htmlElement}' renders correctly`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
57
- yield initTestBed(`<${htmlElement} />`);
58
- const driver = yield createTextDriver();
59
- yield (0, fixtures_1.expect)(driver.component).toBeAttached();
60
- }));
61
- });
62
- [
63
- { label: "undefined", value: "'{undefined}'", toExpected: "" },
64
- { label: "undefined with string", value: "'abc{undefined}def'", toExpected: "abcdef" },
65
- { label: "null", value: "'{null}'", toExpected: "" },
66
- { label: "null with string", value: "'abc{null}def'", toExpected: "abcdef" },
67
- { label: "empty string", value: "''", toExpected: "" },
68
- { label: "string", value: "'test'", toExpected: "test" },
69
- { label: "integer", value: "'{1}'", toExpected: "1" },
70
- { label: "float", value: "'{1.2}'", toExpected: "1.2" },
71
- { label: "boolean", value: "'{true}'", toExpected: "true" },
72
- { label: "empty object", value: "'{{}}'", toExpected: {}.toString() },
73
- { label: "object", value: "\"{{ a: 1, b: 'hi' }}\"", toExpected: { a: 1, b: "hi" }.toString() },
74
- { label: "empty array", value: "'{[]}'", toExpected: "" },
75
- { label: "array", value: "'{[1, 2, 3]}'", toExpected: [1, 2, 3].toString() },
76
- ].forEach(({ label, value, toExpected }) => {
77
- (0, fixtures_1.test)(`handles ${label} value prop correctly`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
78
- yield initTestBed(`<Text value=${value} />`);
79
- const driver = yield createTextDriver();
80
- yield (0, fixtures_1.expect)(driver.component).toHaveText(toExpected);
81
- }));
82
- });
83
- (0, fixtures_1.test)("removes leading whitespace", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
84
- yield initTestBed(`<Text testId="text"> {123}</Text>`);
85
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("123");
86
- }));
87
- (0, fixtures_1.test)("removes trailing whitespace", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
88
- yield initTestBed(`<Text testId="text">{123} </Text>`);
89
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveText("123");
90
- }));
91
- (0, fixtures_1.test)("preserves whitespace when using value prop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
92
- const expected = "test content";
93
- yield initTestBed(`<Text value="${expected}" />`);
94
- const driver = yield createTextDriver();
95
- yield (0, fixtures_1.expect)(driver.component).toHaveText(expected);
96
- }));
97
- (0, fixtures_1.test)("supports preserveLinebreaks prop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
98
- yield initTestBed(`
99
- <VStack>
100
- <Text testId="textShort">Short</Text>
101
- <Text testId="textLong" preserveLinebreaks="true"
102
- value="Though this long
103
- text does not fit into a single line,
104
- please do not break it!"
105
- />
106
- </VStack>
107
- `);
108
- const { height: heightTextShort } = yield (0, component_test_helpers_1.getBounds)(yield createTextDriver("textShort"));
109
- const { height: heightTextLong } = yield (0, component_test_helpers_1.getBounds)(yield createTextDriver("textLong"));
110
- (0, fixtures_1.expect)(heightTextLong).toEqualWithTolerance(heightTextShort * 3, 0.01);
111
- }));
112
- });
113
- // =============================================================================
114
- // API TESTS
115
- // =============================================================================
116
- fixtures_1.test.describe("API", () => {
117
- (0, fixtures_1.test)("hasOverflow returns true when text overflows horizontally", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
118
- const { testStateDriver } = yield initTestBed(`
119
- <Fragment>
120
- <Stack width="200px">
121
- <Text id="overflowText" maxLines="{1}"
122
- value="This is a very long text that should definitely overflow when constrained to a small width"
123
- />
124
- <Button onClick="testState = overflowText.hasOverflow()" />
125
- </Stack>
126
- </Fragment>
127
- `);
128
- yield page.getByRole("button").click();
129
- yield fixtures_1.expect.poll(testStateDriver.testState).toBe(true);
130
- }));
131
- (0, fixtures_1.test)("hasOverflow returns true when text overflows with maxLines constraint", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
132
- const { testStateDriver } = yield initTestBed(`
133
- <Fragment>
134
- <Stack width="200px">
135
- <Text id="overflowText" maxLines="{2}" value="This is a very long text that will wrap to multiple lines and should overflow beyond the maxLines constraint when the container is wide enough to allow wrapping" />
136
- <Button onClick="testState = overflowText.hasOverflow()" />
137
- </Stack>
138
- </Fragment>
139
- `);
140
- yield page.getByRole("button").click();
141
- yield fixtures_1.expect.poll(testStateDriver.testState).toBe(true);
142
- }));
143
- (0, fixtures_1.test)("hasOverflow returns false when text fits within container", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
144
- const { testStateDriver } = yield initTestBed(`
145
- <Fragment>
146
- <Stack width="300px" height="100px">
147
- <Text id="normalText" value="Short text" />
148
- <Button onClick="testState = normalText.hasOverflow()" />
149
- </Stack>
150
- </Fragment>
151
- `);
152
- yield page.getByRole("button").click();
153
- yield fixtures_1.expect.poll(testStateDriver.testState).toBe(false);
154
- }));
155
- (0, fixtures_1.test)("hasOverflow returns false for empty text", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
156
- const { testStateDriver } = yield initTestBed(`
157
- <Fragment>
158
- <Stack width="100px" height="50px">
159
- <Text id="emptyText" value="" />
160
- <Button onClick="testState = emptyText.hasOverflow()" />
161
- </Stack>
162
- </Fragment>
163
- `);
164
- yield page.getByRole("button").click();
165
- yield fixtures_1.expect.poll(testStateDriver.testState).toBe(false);
166
- }));
167
- (0, fixtures_1.test)("hasOverflow returns false for text with no size constraints", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
168
- const { testStateDriver } = yield initTestBed(`
169
- <Fragment>
170
- <Text id="unconstrainedText" value="This text has no width or height constraints so it should not overflow" />
171
- <Button onClick="testState = unconstrainedText.hasOverflow()" />
172
- </Fragment>
173
- `);
174
- yield page.getByRole("button").click();
175
- yield fixtures_1.expect.poll(testStateDriver.testState).toBe(false);
176
- }));
177
- (0, fixtures_1.test)("hasOverflow works with different overflow modes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
178
- const { testStateDriver } = yield initTestBed(`
179
- <Fragment>
180
- <Stack width="100px">
181
- <Text id="ellipsisText" overflowMode="ellipsis" maxLines="{1}" value="This is a very long text that should overflow" />
182
- <Button onClick="testState = { ellipsis: ellipsisText.hasOverflow() }" />
183
- </Stack>
184
- </Fragment>
185
- `);
186
- yield page.getByRole("button").click();
187
- const result = yield testStateDriver.testState();
188
- (0, fixtures_1.expect)(result.ellipsis).toBe(true);
189
- }));
190
- (0, fixtures_1.test)("hasOverflow works with scroll overflow mode", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
191
- const { testStateDriver } = yield initTestBed(`
192
- <Fragment>
193
- <Stack width="100px">
194
- <Text id="scrollText" overflowMode="scroll" value="This is a very long text that should create horizontal scroll" />
195
- <Button onClick="testState = scrollText.hasOverflow()" />
196
- </Stack>
197
- </Fragment>
198
- `);
199
- yield page.getByRole("button").click();
200
- yield fixtures_1.expect.poll(testStateDriver.testState).toBe(true);
201
- }));
202
- (0, fixtures_1.test)("hasOverflow returns correct result after content changes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
203
- const { testStateDriver } = yield initTestBed(`
204
- <Fragment var.text="short">
205
- <Stack width="100px">
206
- <Text id="dynamicText" value="{text}" maxLines="{1}" />
207
- <Button testId="checkBtn" onClick="testState = dynamicText.hasOverflow()" />
208
- <Button testId="changeBtn" onClick="text = 'This is a very long text that will definitely overflow the container'" />
209
- </Stack>
210
- </Fragment>
211
- `);
212
- // Check initial state (should not overflow)
213
- yield page.getByTestId("checkBtn").click();
214
- yield fixtures_1.expect.poll(testStateDriver.testState).toBe(false);
215
- // Change content to overflow
216
- yield page.getByTestId("changeBtn").click();
217
- yield page.getByTestId("checkBtn").click();
218
- yield fixtures_1.expect.poll(testStateDriver.testState).toBe(true);
219
- }));
220
- (0, fixtures_1.test)("hasOverflow handles null/undefined values gracefully", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
221
- const { testStateDriver } = yield initTestBed(`
222
- <Fragment>
223
- <Stack width="100px">
224
- <Text id="nullText" value="{null}" />
225
- <Button onClick="testState = nullText.hasOverflow()" />
226
- </Stack>
227
- </Fragment>
228
- `);
229
- yield page.getByRole("button").click();
230
- yield fixtures_1.expect.poll(testStateDriver.testState).toBe(false);
231
- }));
232
- (0, fixtures_1.test)("hasOverflow works with unicode characters", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
233
- const { testStateDriver } = yield initTestBed(`
234
- <Fragment>
235
- <Stack width="100px">
236
- <Text id="unicodeText" maxLines="{1}" value="👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦" />
237
- <Button onClick="testState = unicodeText.hasOverflow()" />
238
- </Stack>
239
- </Fragment>
240
- `);
241
- yield page.getByRole("button").click();
242
- yield fixtures_1.expect.poll(testStateDriver.testState).toBe(true);
243
- }));
244
- (0, fixtures_1.test)("hasOverflow works with Chinese characters", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
245
- const { testStateDriver } = yield initTestBed(`
246
- <Fragment>
247
- <Stack width="100px">
248
- <Text id="chineseText" maxLines="{1}" value="这是一个非常长的中文文本,应该会在小容器中溢出显示区域超出边界限制" />
249
- <Button onClick="testState = chineseText.hasOverflow()" />
250
- </Stack>
251
- </Fragment>
252
- `);
253
- yield page.getByRole("button").click();
254
- yield fixtures_1.expect.poll(testStateDriver.testState).toBe(true);
255
- }));
256
- (0, fixtures_1.test)("hasOverflow API can be called multiple times", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
257
- const { testStateDriver } = yield initTestBed(`
258
- <Fragment>
259
- <Stack width="200px">
260
- <Text id="multiCallText" value="Test content" />
261
- <Button onClick="testState = testState == null ? 1 : testState + 1; multiCallText.hasOverflow()" />
262
- </Stack>
263
- </Fragment>
264
- `);
265
- // Call API multiple times
266
- yield page.getByRole("button").click();
267
- yield page.getByRole("button").click();
268
- yield page.getByRole("button").click();
269
- // Should have been called 3 times without errors
270
- yield fixtures_1.expect.poll(testStateDriver.testState).toBe(3);
271
- }));
272
- });
273
- // =============================================================================
274
- // ACCESSIBILITY TESTS
275
- // =============================================================================
276
- fixtures_1.test.describe("Accessibility", () => {
277
- (0, fixtures_1.test)("non-breaking space entities are rendered correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
278
- const content = "4 spaces here [&nbsp;&nbsp;&nbsp;&nbsp;], &amp;nbsp; written out.";
279
- const expected = "4 spaces here [ ], &nbsp; written out.";
280
- yield initTestBed(`<Text>${content}</Text>`);
281
- const driver = yield createTextDriver();
282
- yield (0, fixtures_1.expect)(driver.component).toHaveText(expected);
283
- }));
284
- (0, fixtures_1.test)("supports proper semantic HTML variants", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
285
- yield initTestBed(`<Text variant="strong">Important text</Text>`);
286
- const driver = yield createTextDriver();
287
- const tagName = yield driver.getComponentTagName();
288
- (0, fixtures_1.expect)(tagName).toEqual("strong");
289
- yield (0, fixtures_1.expect)(driver.component).toHaveText("Important text");
290
- }));
291
- (0, fixtures_1.test)("maintains text content readability", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
292
- yield initTestBed(`<Text>This is readable text content</Text>`);
293
- const driver = yield createTextDriver();
294
- yield (0, fixtures_1.expect)(driver.component).toBeVisible();
295
- yield (0, fixtures_1.expect)(driver.component).toHaveText("This is readable text content");
296
- }));
297
- });
298
- // =============================================================================
299
- // VISUAL STATES TESTS
300
- // =============================================================================
301
- fixtures_1.test.describe("Visual States", () => {
302
- (0, fixtures_1.test)("handles text overflow with ellipses", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
303
- yield initTestBed(`
304
- <Fragment>
305
- <Text testId="textShort" width="200">Short</Text>
306
- <Text testId="textLong" width="200" maxLines="1">
307
- Though this long text does not fit into a single line, please do not break it!
308
- </Text>
309
- </Fragment>
310
- `);
311
- const shortTextDriver = yield createTextDriver("textShort");
312
- const longTextDriver = yield createTextDriver("textLong");
313
- const { height: heightTextShort } = yield (0, component_test_helpers_1.getBounds)(shortTextDriver);
314
- const { height: heightTextLong } = yield (0, component_test_helpers_1.getBounds)(longTextDriver);
315
- (0, fixtures_1.expect)(heightTextShort).toEqual(heightTextLong);
316
- yield (0, fixtures_1.expect)(longTextDriver.component).toHaveCSS("text-overflow", "ellipsis");
317
- }));
318
- (0, fixtures_1.test)("disables ellipses when specified", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
319
- yield initTestBed(`
320
- <Fragment>
321
- <Text testId="textShort" width="200">Short</Text>
322
- <Text testId="textLong" width="200" maxLines="1" ellipses="false">
323
- Though this long text does not fit into a single line, please do not break it!
324
- </Text>
325
- </Fragment>
326
- `);
327
- const shortTextDriver = yield createTextDriver("textShort");
328
- const longTextDriver = yield createTextDriver("textLong");
329
- const { height: heightTextShort } = yield (0, component_test_helpers_1.getBounds)(shortTextDriver);
330
- const { height: heightTextLong } = yield (0, component_test_helpers_1.getBounds)(longTextDriver);
331
- (0, fixtures_1.expect)(heightTextShort).toEqual(heightTextLong);
332
- yield (0, fixtures_1.expect)(longTextDriver.component).not.toHaveCSS("text-overflow", "ellipsis");
333
- }));
334
- (0, fixtures_1.test)("constrains text to maxLines", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
335
- yield initTestBed(`
336
- <VStack>
337
- <Text testId="textShort" width="200px">Short</Text>
338
- <Text testId="textLong" width="200px" maxLines="2">
339
- Though this long text does not fit into a single line, please do not break it!
340
- </Text>
341
- </VStack>
342
- `);
343
- const shortText = yield createTextDriver("textShort");
344
- const longText = yield createTextDriver("textLong");
345
- const { height: heightTextShort } = yield (0, component_test_helpers_1.getBounds)(shortText);
346
- const { height: heightTextLong } = yield (0, component_test_helpers_1.getBounds)(longText);
347
- (0, fixtures_1.expect)(heightTextLong).toEqual(heightTextShort * 2);
348
- }));
349
- (0, fixtures_1.test)("breaks long text when constrained by width", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
350
- yield initTestBed(`
351
- <VStack>
352
- <Text testId="textShort" width="200px">Short</Text>
353
- <Text testId="textLong" width="200px">
354
- This long text does not fit into a viewport with a 200-pixel width.
355
- </Text>
356
- </VStack>
357
- `);
358
- const shortText = yield createTextDriver("textShort");
359
- const longText = yield createTextDriver("textLong");
360
- yield (0, fixtures_1.expect)(longText.component).toBeVisible();
361
- const { height: heightTextShort } = yield (0, component_test_helpers_1.getBounds)(shortText);
362
- const { height: heightTextLong } = yield (0, component_test_helpers_1.getBounds)(longText);
363
- (0, fixtures_1.expect)(heightTextShort).toBeLessThan(heightTextLong);
364
- }));
365
- (0, fixtures_1.test)("text overflows container when explicitly sized larger", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createVStackDriver, createTextDriver, }) {
366
- const widthLayoutExpected = 300;
367
- const widthTextExpected = 400;
368
- yield initTestBed(`
369
- <VStack height="40px" width="${widthLayoutExpected}px" border="1px solid red">
370
- <Text testId="text" width="${widthTextExpected}px">
371
- This text sets its size explicitly bigger than its container.
372
- As it does not fit into the container's viewport, it overflows.
373
- </Text>
374
- </VStack>
375
- `);
376
- const { width: widthLayout } = yield (0, component_test_helpers_1.getBounds)(yield createVStackDriver());
377
- const { width: widthText } = yield (0, component_test_helpers_1.getBounds)(yield createTextDriver("text"));
378
- (0, fixtures_1.expect)(widthText).toEqual(widthTextExpected);
379
- (0, fixtures_1.expect)(widthLayout).toEqual(widthLayoutExpected);
380
- }));
381
- (0, fixtures_1.test)("collapses nested text whitespace correctly", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
382
- yield initTestBed(`
383
- <Text>
384
- test content
385
- here
386
- </Text>
387
- `);
388
- const driver = yield createTextDriver();
389
- yield (0, fixtures_1.expect)(driver.component).toHaveText("test content here");
390
- }));
391
- });
392
- // =============================================================================
393
- // OVERFLOW MODE TESTS
394
- // =============================================================================
395
- fixtures_1.test.describe("Overflow Mode", () => {
396
- (0, fixtures_1.test)('overflowMode="none" allows wrapping with no overflow indicator', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
397
- yield initTestBed(`
398
- <Text testId="text" width="200px" overflowMode="none">
399
- This is a very long text that should wrap naturally and show no ellipsis.
400
- </Text>
401
- `);
402
- const driver = yield createTextDriver("text");
403
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("white-space", "nowrap");
404
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("text-overflow", "clip");
405
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("overflow", "hidden");
406
- }));
407
- (0, fixtures_1.test)('overflowMode="none" ignores maxLines and clips text cleanly', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
408
- yield initTestBed(`
409
- <Text testId="text" width="200px" overflowMode="none" maxLines="2">
410
- This is a long-long-long text that should be simply cut at the end without any ellipsis or other overflow indicator.
411
- </Text>
412
- `);
413
- const driver = yield createTextDriver("text");
414
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("white-space", "nowrap");
415
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("text-overflow", "clip");
416
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("overflow", "hidden");
417
- // Should NOT use webkit-line-clamp for "none" behavior - it ignores maxLines
418
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("-webkit-line-clamp", "none");
419
- // Should not apply maxLines styles since none mode ignores maxLines
420
- const maxHeight = yield driver.component.evaluate((el) => getComputedStyle(el).maxHeight);
421
- (0, fixtures_1.expect)(maxHeight).toBe("none"); // Should be "none" since maxLines is ignored
422
- // Verify the element is visible and has content
423
- yield (0, fixtures_1.expect)(driver.component).toBeVisible();
424
- yield (0, fixtures_1.expect)(driver.component).toContainText("This is a long-long-long text");
425
- }));
426
- (0, fixtures_1.test)('overflowMode="ellipsis" shows ellipsis when text overflows (default)', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
427
- yield initTestBed(`
428
- <Text testId="text" width="200px" overflowMode="ellipsis" maxLines="1">
429
- This is a very long text that should show ellipsis when it overflows.
430
- </Text>
431
- `);
432
- const driver = yield createTextDriver("text");
433
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("text-overflow", "ellipsis");
434
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("overflow", "hidden");
435
- }));
436
- (0, fixtures_1.test)('overflowMode="scroll" enables horizontal scrolling', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
437
- yield initTestBed(`
438
- <Text testId="text" width="200px" overflowMode="scroll">
439
- This is a very long text that should enable horizontal scrolling when it overflows the container width.
440
- </Text>
441
- `);
442
- const driver = yield createTextDriver("text");
443
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("white-space", "nowrap");
444
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("overflow-x", "auto");
445
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("overflow-y", "hidden");
446
- }));
447
- (0, fixtures_1.test)('overflowMode="flow" allows multi-line wrapping with vertical scrolling', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
448
- yield initTestBed(`
449
- <Text testId="text" width="200px" height="60px" overflowMode="flow">
450
- This is a very long text that should wrap to multiple lines and show a vertical scrollbar when the content exceeds the container height.
451
- </Text>
452
- `);
453
- const driver = yield createTextDriver("text");
454
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("white-space", "normal");
455
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("overflow-x", "hidden");
456
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("overflow-y", "auto");
457
- }));
458
- (0, fixtures_1.test)('overflowMode="flow" ignores maxLines property', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
459
- yield initTestBed(`
460
- <Text testId="text" width="200px" overflowMode="flow" maxLines="3">
461
- This is a very long text that should wrap to multiple lines and completely ignore the maxLines property when using flow mode.
462
- </Text>
463
- `);
464
- const driver = yield createTextDriver("text");
465
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("white-space", "normal");
466
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("overflow-y", "auto");
467
- // Check that line-clamp is NOT applied when flow mode ignores maxLines
468
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("-webkit-line-clamp", "none");
469
- yield (0, fixtures_1.expect)(driver.component).not.toHaveCSS("display", "-webkit-box");
470
- }));
471
- (0, fixtures_1.test)("overflowMode works with maxLines", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
472
- yield initTestBed(`
473
- <VStack>
474
- <Text testId="ellipsisText" width="200px" overflowMode="ellipsis" maxLines="2">
475
- This is a very long text that should be limited to 2 lines with line-clamp and show ellipsis.
476
- </Text>
477
- </VStack>
478
- `);
479
- const ellipsisDriver = yield createTextDriver("ellipsisText");
480
- // Ellipsis should respect maxLines with line-clamp
481
- yield (0, fixtures_1.expect)(ellipsisDriver.component).toHaveCSS("-webkit-line-clamp", "2");
482
- // Should show ellipsis behavior
483
- yield (0, fixtures_1.expect)(ellipsisDriver.component).toHaveCSS("text-overflow", "ellipsis");
484
- }));
485
- (0, fixtures_1.test)("overflowMode='scroll' ignores maxLines", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
486
- yield initTestBed(`
487
- <VStack>
488
- <Text testId="scrollWithMaxLines" width="150px" overflowMode="scroll" maxLines="2">
489
- This is a very long text that should scroll horizontally and completely ignore the maxLines property.
490
- </Text>
491
- <Text testId="scrollWithoutMaxLines" width="150px" overflowMode="scroll">
492
- This is a very long text that should scroll horizontally without any maxLines property.
493
- </Text>
494
- </VStack>
495
- `);
496
- const scrollWithMaxLinesDriver = yield createTextDriver("scrollWithMaxLines");
497
- const scrollWithoutMaxLinesDriver = yield createTextDriver("scrollWithoutMaxLines");
498
- // Both should have the same behavior - no line-clamp applied
499
- yield (0, fixtures_1.expect)(scrollWithMaxLinesDriver.component).toHaveCSS("-webkit-line-clamp", "none");
500
- yield (0, fixtures_1.expect)(scrollWithoutMaxLinesDriver.component).toHaveCSS("-webkit-line-clamp", "none");
501
- // Both should have scroll behavior
502
- yield (0, fixtures_1.expect)(scrollWithMaxLinesDriver.component).toHaveCSS("overflow-x", "auto");
503
- yield (0, fixtures_1.expect)(scrollWithoutMaxLinesDriver.component).toHaveCSS("overflow-x", "auto");
504
- yield (0, fixtures_1.expect)(scrollWithMaxLinesDriver.component).toHaveCSS("white-space", "nowrap");
505
- yield (0, fixtures_1.expect)(scrollWithoutMaxLinesDriver.component).toHaveCSS("white-space", "nowrap");
506
- // Neither should use text-overflow ellipsis
507
- yield (0, fixtures_1.expect)(scrollWithMaxLinesDriver.component).toHaveCSS("text-overflow", "clip");
508
- yield (0, fixtures_1.expect)(scrollWithoutMaxLinesDriver.component).toHaveCSS("text-overflow", "clip");
509
- }));
510
- (0, fixtures_1.test)("overflowMode='flow' ignores maxLines for unrestricted wrapping", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
511
- yield initTestBed(`
512
- <VStack>
513
- <Text testId="flowWithMaxLines" width="150px" overflowMode="flow" maxLines="2">
514
- This is a very long text that should wrap to multiple lines and completely ignore the maxLines property when using flow mode.
515
- </Text>
516
- <Text testId="flowWithoutMaxLines" width="150px" overflowMode="flow">
517
- This is a very long text that should wrap to multiple lines without any line limit when using flow mode.
518
- </Text>
519
- </VStack>
520
- `);
521
- const flowWithMaxLinesDriver = yield createTextDriver("flowWithMaxLines");
522
- const flowWithoutMaxLinesDriver = yield createTextDriver("flowWithoutMaxLines");
523
- // Both should behave identically - flow mode ignores maxLines
524
- yield (0, fixtures_1.expect)(flowWithMaxLinesDriver.component).toHaveCSS("-webkit-line-clamp", "none");
525
- yield (0, fixtures_1.expect)(flowWithoutMaxLinesDriver.component).toHaveCSS("-webkit-line-clamp", "none");
526
- // Both should have flow behavior
527
- yield (0, fixtures_1.expect)(flowWithMaxLinesDriver.component).toHaveCSS("overflow-y", "auto");
528
- yield (0, fixtures_1.expect)(flowWithoutMaxLinesDriver.component).toHaveCSS("overflow-y", "auto");
529
- yield (0, fixtures_1.expect)(flowWithMaxLinesDriver.component).toHaveCSS("overflow-x", "hidden");
530
- yield (0, fixtures_1.expect)(flowWithoutMaxLinesDriver.component).toHaveCSS("overflow-x", "hidden");
531
- yield (0, fixtures_1.expect)(flowWithMaxLinesDriver.component).toHaveCSS("white-space", "normal");
532
- yield (0, fixtures_1.expect)(flowWithoutMaxLinesDriver.component).toHaveCSS("white-space", "normal");
533
- // Neither should use webkit-box display
534
- yield (0, fixtures_1.expect)(flowWithMaxLinesDriver.component).not.toHaveCSS("display", "-webkit-box");
535
- yield (0, fixtures_1.expect)(flowWithoutMaxLinesDriver.component).not.toHaveCSS("display", "-webkit-box");
536
- }));
537
- (0, fixtures_1.test)("overflowMode respects ellipses property for ellipsis behavior", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
538
- yield initTestBed(`
539
- <VStack>
540
- <Text testId="withEllipses" width="200px" overflowMode="ellipsis" ellipses="true" maxLines="1">
541
- This text should show ellipses.
542
- </Text>
543
- <Text testId="withoutEllipses" width="200px" overflowMode="ellipsis" ellipses="false" maxLines="1">
544
- This text should not show ellipses.
545
- </Text>
546
- </VStack>
547
- `);
548
- const withEllipsesDriver = yield createTextDriver("withEllipses");
549
- const withoutEllipsesDriver = yield createTextDriver("withoutEllipses");
550
- yield (0, fixtures_1.expect)(withEllipsesDriver.component).toHaveCSS("text-overflow", "ellipsis");
551
- yield (0, fixtures_1.expect)(withoutEllipsesDriver.component).toHaveCSS("text-overflow", "clip");
552
- }));
553
- (0, fixtures_1.test)('overflowMode="ellipsis" works with multi-line text (maxLines > 1)', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
554
- yield initTestBed(`
555
- <VStack>
556
- <Text testId="singleLine" width="150px" overflowMode="ellipsis" maxLines="1">
557
- This is a very long text that should be truncated to a single line with ellipsis.
558
- </Text>
559
- <Text testId="multiLine" width="150px" overflowMode="ellipsis" maxLines="2">
560
- This is a very long text that should wrap to exactly two lines and then be truncated with ellipsis if there's more content that doesn't fit.
561
- </Text>
562
- </VStack>
563
- `);
564
- const singleLineDriver = yield createTextDriver("singleLine");
565
- const multiLineDriver = yield createTextDriver("multiLine");
566
- // Both should have ellipsis behavior
567
- yield (0, fixtures_1.expect)(singleLineDriver.component).toHaveCSS("text-overflow", "ellipsis");
568
- yield (0, fixtures_1.expect)(multiLineDriver.component).toHaveCSS("text-overflow", "ellipsis");
569
- // Single line should use nowrap
570
- yield (0, fixtures_1.expect)(singleLineDriver.component).toHaveCSS("white-space", "nowrap");
571
- // Multi-line should have line-clamp applied
572
- yield (0, fixtures_1.expect)(multiLineDriver.component).toHaveCSS("-webkit-line-clamp", "2");
573
- // Verify heights: multi-line should be approximately 2x single line height
574
- const { height: heightSingle } = yield (0, component_test_helpers_1.getBounds)(singleLineDriver);
575
- const { height: heightMulti } = yield (0, component_test_helpers_1.getBounds)(multiLineDriver);
576
- // Multi-line should be taller than single line
577
- (0, fixtures_1.expect)(heightMulti).toBeGreaterThan(heightSingle);
578
- // And should be roughly 2x the height (allowing for some tolerance)
579
- (0, fixtures_1.expect)(heightMulti).toBeGreaterThan(heightSingle * 1.5);
580
- (0, fixtures_1.expect)(heightMulti).toBeLessThan(heightSingle * 2.5);
581
- }));
582
- });
583
- // =============================================================================
584
- // BREAK MODE TESTS
585
- // =============================================================================
586
- fixtures_1.test.describe("Break Mode", () => {
587
- (0, fixtures_1.test)('breakMode="normal" uses standard word boundaries', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
588
- yield initTestBed(`
589
- <Text testId="text" width="150px" breakMode="normal">
590
- This is a verylongwordthatshouldbreakatwordboundaries normally.
591
- </Text>
592
- `);
593
- const driver = yield createTextDriver("text");
594
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("word-break", "normal");
595
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("overflow-wrap", "normal");
596
- }));
597
- (0, fixtures_1.test)('breakMode="word" breaks long words to prevent overflow', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
598
- yield initTestBed(`
599
- <Text testId="text" width="150px" breakMode="word">
600
- This is a verylongwordthatexceedsthecontainerwidthandshouldbreak.
601
- </Text>
602
- `);
603
- const driver = yield createTextDriver("text");
604
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("overflow-wrap", "break-word");
605
- }));
606
- (0, fixtures_1.test)('breakMode="anywhere" breaks at any character', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
607
- yield initTestBed(`
608
- <Text testId="text" width="100px" breakMode="anywhere">
609
- Verylongwordwithnobreaks
610
- </Text>
611
- `);
612
- const driver = yield createTextDriver("text");
613
- // Should have word-break: break-all or overflow-wrap: anywhere
614
- const wordBreak = yield driver.component.evaluate((el) => getComputedStyle(el).wordBreak);
615
- const overflowWrap = yield driver.component.evaluate((el) => getComputedStyle(el).overflowWrap);
616
- (0, fixtures_1.expect)(wordBreak === "break-all" || overflowWrap === "anywhere").toBe(true);
617
- }));
618
- (0, fixtures_1.test)('breakMode="keep" prevents breaking within words', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
619
- yield initTestBed(`
620
- <Text testId="text" width="100px" breakMode="keep">
621
- This text should keep words intact
622
- </Text>
623
- `);
624
- const driver = yield createTextDriver("text");
625
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("word-break", "keep-all");
626
- }));
627
- (0, fixtures_1.test)('breakMode="hyphenate" uses automatic hyphenation', (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
628
- yield initTestBed(`
629
- <Text testId="text" width="150px" breakMode="hyphenate" lang="en">
630
- This is a supercalifragilisticexpialidocious word that should be hyphenated.
631
- </Text>
632
- `);
633
- const driver = yield createTextDriver("text");
634
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("hyphens", "auto");
635
- yield (0, fixtures_1.expect)(driver.component).toHaveCSS("overflow-wrap", "break-word");
636
- }));
637
- (0, fixtures_1.test)("breakMode works with different overflow modes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
638
- yield initTestBed(`
639
- <VStack>
640
- <Text testId="ellipsisWord" width="150px" overflowMode="ellipsis" breakMode="word" maxLines="1">
641
- This superlongwordwithoutbreaks should be handled properly.
642
- </Text>
643
- <Text testId="scrollAnywhere" width="150px" overflowMode="scroll" breakMode="anywhere">
644
- This verylongwordwithoutanybreaks should break anywhere and scroll.
645
- </Text>
646
- </VStack>
647
- `);
648
- const ellipsisDriver = yield createTextDriver("ellipsisWord");
649
- const scrollDriver = yield createTextDriver("scrollAnywhere");
650
- // Check overflow mode styles
651
- yield (0, fixtures_1.expect)(ellipsisDriver.component).toHaveCSS("text-overflow", "ellipsis");
652
- yield (0, fixtures_1.expect)(scrollDriver.component).toHaveCSS("overflow-x", "auto");
653
- // Check break mode styles
654
- yield (0, fixtures_1.expect)(ellipsisDriver.component).toHaveCSS("overflow-wrap", "break-word");
655
- const scrollWordBreak = yield scrollDriver.component.evaluate((el) => getComputedStyle(el).wordBreak);
656
- const scrollOverflowWrap = yield scrollDriver.component.evaluate((el) => getComputedStyle(el).overflowWrap);
657
- (0, fixtures_1.expect)(scrollWordBreak === "break-all" || scrollOverflowWrap === "anywhere").toBe(true);
658
- }));
659
- (0, fixtures_1.test)("default breakMode allows theme variables to work", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
660
- yield initTestBed(`
661
- <Text testId="text" width="200px">
662
- This text should use the default browser behavior and allow theme variables to override.
663
- </Text>
664
- `);
665
- const driver = yield createTextDriver("text");
666
- // Should not have any break mode classes when no breakMode is specified
667
- const className = yield driver.component.getAttribute("class");
668
- (0, fixtures_1.expect)(className).not.toContain("breakWord");
669
- (0, fixtures_1.expect)(className).not.toContain("breakAnywhere");
670
- (0, fixtures_1.expect)(className).not.toContain("breakKeep");
671
- (0, fixtures_1.expect)(className).not.toContain("breakHyphenate");
672
- }));
673
- });
674
- // =============================================================================
675
- // EDGE CASES TESTS
676
- // =============================================================================
677
- fixtures_1.test.describe("Edge Cases", () => {
678
- [
679
- { label: "empty object", value: "'{{}}'", toExpected: {}.toString() },
680
- { label: "object", value: "\"{{ a: 1, b: 'hi' }}\"", toExpected: { a: 1, b: "hi" }.toString() },
681
- { label: "empty array", value: "'{[]}'", toExpected: "" },
682
- { label: "array", value: "'{[1, 2, 3]}'", toExpected: [1, 2, 3].toString() },
683
- ].forEach(({ label, value, toExpected }) => {
684
- (0, fixtures_1.test)(`handles ${label} value prop gracefully`, (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
685
- yield initTestBed(`<Text value=${value} />`);
686
- const driver = yield createTextDriver();
687
- yield (0, fixtures_1.expect)(driver.component).toHaveText(toExpected);
688
- }));
689
- });
690
- (0, fixtures_1.test)("handles extremely long text content", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
691
- const longText = "Very long text content ".repeat(1000);
692
- yield initTestBed(`<Text value="${longText}" />`);
693
- const driver = yield createTextDriver();
694
- yield (0, fixtures_1.expect)(driver.component).toBeVisible();
695
- yield (0, fixtures_1.expect)(driver.component).toContainText("Very long text content");
696
- }));
697
- (0, fixtures_1.test)("handles special characters and symbols", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
698
- const specialText = "Special chars: !@#$%^&*()[]|\\:;'<>?,./ αβγδε 中文 🚀✨";
699
- yield initTestBed(`<Text value="${specialText}" />`);
700
- const driver = yield createTextDriver();
701
- yield (0, fixtures_1.expect)(driver.component).toHaveText(specialText);
702
- }));
703
- (0, fixtures_1.test)("handles mixed content types", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
704
- yield initTestBed(`<Text>Mixed content: {123} {"string"} {true}</Text>`);
705
- const driver = yield createTextDriver();
706
- yield (0, fixtures_1.expect)(driver.component).toBeVisible();
707
- yield (0, fixtures_1.expect)(driver.component).toContainText("Mixed content:");
708
- }));
709
- (0, fixtures_1.test)("nested Texts", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
710
- yield initTestBed(`<Text>abc<Text>def</Text>ghi</Text>`);
711
- // Check if the page displays the combined text "abcdefghi"
712
- yield (0, fixtures_1.expect)(page.locator("body")).toContainText("abcdefghi");
713
- }));
714
- });
715
- // =============================================================================
716
- // PERFORMANCE TESTS
717
- // =============================================================================
718
- fixtures_1.test.describe("Performance", () => {
719
- (0, fixtures_1.test)("renders multiple text components efficiently", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
720
- const textElements = Array.from({ length: 100 }, (_, i) => `<Text testId="text-${i}">Text content ${i}</Text>`).join("");
721
- yield initTestBed(`<VStack>${textElements}</VStack>`);
722
- // Test a few random elements to ensure they render correctly
723
- const driver1 = yield createTextDriver("text-0");
724
- const driver50 = yield createTextDriver("text-49");
725
- const driver100 = yield createTextDriver("text-99");
726
- yield (0, fixtures_1.expect)(driver1.component).toHaveText("Text content 0");
727
- yield (0, fixtures_1.expect)(driver50.component).toHaveText("Text content 49");
728
- yield (0, fixtures_1.expect)(driver100.component).toHaveText("Text content 99");
729
- }));
730
- (0, fixtures_1.test)("handles rapid text content changes", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
731
- yield initTestBed(`<Text value="Initial content" />`);
732
- const driver = yield createTextDriver();
733
- const textValues = ["Content 1", "Content 2", "Content 3", "Content 4", "Content 5"];
734
- for (const value of textValues) {
735
- yield initTestBed(`<Text value="${value}" />`);
736
- yield (0, fixtures_1.expect)(driver.component).toHaveText(value);
737
- }
738
- }));
739
- (0, fixtures_1.test)("maintains performance with complex theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
740
- yield initTestBed('<Text value="Performance test" />', {
741
- testThemeVars: {
742
- "textColor-Text": "rgb(255, 0, 0)",
743
- "fontSize-Text": "16px",
744
- "fontWeight-Text": "bold",
745
- "lineHeight-Text": "1.5",
746
- "textShadow-Text": "1px 1px 2px rgba(0,0,0,0.5)",
747
- },
748
- });
749
- const driver = yield createTextDriver();
750
- yield (0, fixtures_1.expect)(driver.component).toBeVisible();
751
- yield (0, fixtures_1.expect)(driver.component).toHaveText("Performance test");
752
- }));
753
- });
754
- // =============================================================================
755
- // INTEGRATION TESTS
756
- // =============================================================================
757
- fixtures_1.test.describe("Integration", () => {
758
- (0, fixtures_1.test)("renders implicit text in other components", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createStackDriver }) {
759
- const expected = "test content";
760
- yield initTestBed(`<Stack>${expected}</Stack>`);
761
- const driver = yield createStackDriver();
762
- yield (0, fixtures_1.expect)(driver.component).toHaveText(expected);
763
- }));
764
- (0, fixtures_1.test)("maintains inline behavior in HStack layout", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, createIconDriver, }) {
765
- yield initTestBed(`
766
- <HStack>
767
- <Text testId="text0" >Show me a trash</Text>
768
- <Icon testId="icon0" name="trash"/>
769
- <Text testId="text1" >icon!</Text>
770
- </HStack>
771
- `);
772
- const { top: topText0 } = yield (0, component_test_helpers_1.getBounds)(yield createTextDriver("text0"));
773
- const { top: topIcon0 } = yield (0, component_test_helpers_1.getBounds)(yield createIconDriver("icon0"));
774
- const { top: topText1 } = yield (0, component_test_helpers_1.getBounds)(yield createTextDriver("text1"));
775
- (0, fixtures_1.expect)(topText0).toEqual(topIcon0);
776
- (0, fixtures_1.expect)(topIcon0).toEqual(topText1);
777
- }));
778
- (0, fixtures_1.test)("maintains block behavior in VStack layout", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, createIconDriver, }) {
779
- yield initTestBed(`
780
- <VStack>
781
- <Text testId="text0" >Show me a trash</Text>
782
- <Icon testId="icon0" name="trash"/>
783
- <Text testId="text1" >icon!</Text>
784
- </VStack>
785
- `);
786
- const { top: topText0 } = yield (0, component_test_helpers_1.getBounds)(yield createTextDriver("text0"));
787
- const { top: topIcon0 } = yield (0, component_test_helpers_1.getBounds)((yield createIconDriver("icon0")).svgIcon);
788
- const { top: topText1 } = yield (0, component_test_helpers_1.getBounds)(yield createTextDriver("text1"));
789
- (0, fixtures_1.expect)(topText0).toBeLessThan(topIcon0);
790
- (0, fixtures_1.expect)(topIcon0).toBeLessThan(topText1);
791
- }));
792
- (0, fixtures_1.test)("integrates with complex component hierarchies", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
793
- yield initTestBed(`
794
- <VStack>
795
- <HStack>
796
- <Text testId="header">Header Text</Text>
797
- </HStack>
798
- <Text testId="content">Main content text with longer description</Text>
799
- <HStack>
800
- <Text testId="footer1">Footer</Text>
801
- <Text testId="footer2">Text</Text>
802
- </HStack>
803
- </VStack>
804
- `);
805
- const headerDriver = yield createTextDriver("header");
806
- const contentDriver = yield createTextDriver("content");
807
- const footer1Driver = yield createTextDriver("footer1");
808
- const footer2Driver = yield createTextDriver("footer2");
809
- yield (0, fixtures_1.expect)(headerDriver.component).toHaveText("Header Text");
810
- yield (0, fixtures_1.expect)(contentDriver.component).toHaveText("Main content text with longer description");
811
- yield (0, fixtures_1.expect)(footer1Driver.component).toHaveText("Footer");
812
- yield (0, fixtures_1.expect)(footer2Driver.component).toHaveText("Text");
813
- }));
814
- (0, fixtures_1.test)("works correctly with dynamic content", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
815
- yield initTestBed(`<Text value="{123 + 456}" />`);
816
- const driver = yield createTextDriver();
817
- yield (0, fixtures_1.expect)(driver.component).toHaveText("579");
818
- }));
819
- });
820
- // =============================================================================
821
- // THEME VARIABLE TESTS
822
- // =============================================================================
823
- fixtures_1.test.describe("Theme Variables", () => {
824
- (0, fixtures_1.test)("textColor theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
825
- const EXPECTED = "rgb(255, 0, 0)";
826
- yield initTestBed('<Text value="Hello, World" />', {
827
- testThemeVars: {
828
- "textColor-Text": EXPECTED,
829
- },
830
- });
831
- const component = (yield createTextDriver()).component;
832
- yield (0, fixtures_1.expect)(component).toHaveCSS("color", EXPECTED);
833
- }));
834
- (0, fixtures_1.test)("fontFamily theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
835
- const EXPECTED = "sans-serif";
836
- yield initTestBed('<Text value="Hello, World" />', {
837
- testThemeVars: {
838
- "fontFamily-Text": EXPECTED,
839
- },
840
- });
841
- const component = (yield createTextDriver()).component;
842
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-family", EXPECTED);
843
- }));
844
- (0, fixtures_1.test)("fontSize theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
845
- const EXPECTED = "48px";
846
- yield initTestBed('<Text value="Hello, World" />', {
847
- testThemeVars: {
848
- "fontSize-Text": EXPECTED,
849
- },
850
- });
851
- const component = (yield createTextDriver()).component;
852
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", EXPECTED);
853
- }));
854
- (0, fixtures_1.test)("fontStyle theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
855
- const EXPECTED = "italic";
856
- yield initTestBed('<Text value="Hello, World" />', {
857
- testThemeVars: {
858
- "fontStyle-Text": EXPECTED,
859
- },
860
- });
861
- const component = (yield createTextDriver()).component;
862
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-style", EXPECTED);
863
- }));
864
- (0, fixtures_1.test)("fontWeight theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
865
- const EXPECTED = "900";
866
- yield initTestBed('<Text value="Hello, World" />', {
867
- testThemeVars: {
868
- "fontWeight-Text": EXPECTED,
869
- },
870
- });
871
- const component = (yield createTextDriver()).component;
872
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-weight", EXPECTED);
873
- }));
874
- (0, fixtures_1.test)("fontStretch theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
875
- const EXPECTED = "125%";
876
- yield initTestBed('<Text value="Hello, World" />', {
877
- testThemeVars: {
878
- "fontStretch-Text": EXPECTED,
879
- },
880
- });
881
- const component = (yield createTextDriver()).component;
882
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-stretch", EXPECTED);
883
- }));
884
- (0, fixtures_1.test)("textDecorationLine theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
885
- const EXPECTED = "underline";
886
- yield initTestBed('<Text value="Hello, World" />', {
887
- testThemeVars: {
888
- "textDecorationLine-Text": EXPECTED,
889
- },
890
- });
891
- const component = (yield createTextDriver()).component;
892
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-decoration-line", EXPECTED);
893
- }));
894
- (0, fixtures_1.test)("textDecorationColor theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
895
- const EXPECTED = "rgb(255, 0, 0)";
896
- yield initTestBed('<Text value="Hello, World" />', {
897
- testThemeVars: {
898
- "textDecorationColor-Text": EXPECTED,
899
- },
900
- });
901
- const component = (yield createTextDriver()).component;
902
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-decoration-color", EXPECTED);
903
- }));
904
- (0, fixtures_1.test)("textDecorationStyle theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
905
- const EXPECTED = "dotted";
906
- yield initTestBed('<Text value="Hello, World" />', {
907
- testThemeVars: {
908
- "textDecorationStyle-Text": EXPECTED,
909
- },
910
- });
911
- const component = (yield createTextDriver()).component;
912
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-decoration-style", EXPECTED);
913
- }));
914
- (0, fixtures_1.test)("textDecorationThickness theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
915
- const EXPECTED = "12px";
916
- yield initTestBed('<Text value="Hello, World" />', {
917
- testThemeVars: {
918
- "textDecorationThickness-Text": EXPECTED,
919
- },
920
- });
921
- const component = (yield createTextDriver()).component;
922
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-decoration-thickness", EXPECTED);
923
- }));
924
- (0, fixtures_1.test)("textUnderlineOffset theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
925
- const EXPECTED = "12px";
926
- yield initTestBed('<Text value="Hello, World" />', {
927
- testThemeVars: {
928
- "textUnderlineOffset-Text": EXPECTED,
929
- },
930
- });
931
- const component = (yield createTextDriver()).component;
932
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-underline-offset", EXPECTED);
933
- }));
934
- (0, fixtures_1.test)("lineHeight theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
935
- const EXPECTED = "24px";
936
- yield initTestBed('<Text value="Hello, World" />', {
937
- testThemeVars: {
938
- "lineHeight-Text": EXPECTED,
939
- },
940
- });
941
- const component = (yield createTextDriver()).component;
942
- yield (0, fixtures_1.expect)(component).toHaveCSS("line-height", EXPECTED);
943
- }));
944
- (0, fixtures_1.test)("backgroundColor theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
945
- const EXPECTED = "rgb(255, 0, 0)";
946
- yield initTestBed('<Text value="Hello, World" />', {
947
- testThemeVars: {
948
- "backgroundColor-Text": EXPECTED,
949
- },
950
- });
951
- const component = (yield createTextDriver()).component;
952
- yield (0, fixtures_1.expect)(component).toHaveCSS("background-color", EXPECTED);
953
- }));
954
- (0, fixtures_1.test)("textTransform theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
955
- const EXPECTED = "uppercase";
956
- yield initTestBed('<Text value="Hello, World" />', {
957
- testThemeVars: {
958
- "textTransform-Text": EXPECTED,
959
- },
960
- });
961
- const component = (yield createTextDriver()).component;
962
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-transform", EXPECTED);
963
- }));
964
- (0, fixtures_1.test)("letterSpacing theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
965
- const EXPECTED = "12px";
966
- yield initTestBed('<Text value="Hello, World" />', {
967
- testThemeVars: {
968
- "letterSpacing-Text": EXPECTED,
969
- },
970
- });
971
- const component = (yield createTextDriver()).component;
972
- yield (0, fixtures_1.expect)(component).toHaveCSS("letter-spacing", EXPECTED);
973
- }));
974
- (0, fixtures_1.test)("wordSpacing theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
975
- const EXPECTED = "12px";
976
- yield initTestBed('<Text value="Hello, World" />', {
977
- testThemeVars: {
978
- "wordSpacing-Text": EXPECTED,
979
- },
980
- });
981
- const component = (yield createTextDriver()).component;
982
- yield (0, fixtures_1.expect)(component).toHaveCSS("word-spacing", EXPECTED);
983
- }));
984
- (0, fixtures_1.test)("textShadow theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
985
- const EXPECTED = "rgba(0, 0, 0, 0.5) 2px 2px 2px";
986
- yield initTestBed('<Text value="Hello, World" />', {
987
- testThemeVars: {
988
- "textShadow-Text": EXPECTED,
989
- },
990
- });
991
- const component = (yield createTextDriver()).component;
992
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-shadow", EXPECTED);
993
- }));
994
- (0, fixtures_1.test)("textIndent theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
995
- const EXPECTED = "12px";
996
- yield initTestBed('<Text value="Hello, World" />', {
997
- testThemeVars: {
998
- "textIndent-Text": EXPECTED,
999
- },
1000
- });
1001
- const component = (yield createTextDriver()).component;
1002
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-indent", EXPECTED);
1003
- }));
1004
- (0, fixtures_1.test)("textAlign theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
1005
- const EXPECTED = "center";
1006
- yield initTestBed('<Text value="Hello, World" />', {
1007
- testThemeVars: {
1008
- "textAlign-Text": EXPECTED,
1009
- },
1010
- });
1011
- const component = (yield createTextDriver()).component;
1012
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-align", EXPECTED);
1013
- }));
1014
- (0, fixtures_1.test)("textAlignLast theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
1015
- const EXPECTED = "center";
1016
- yield initTestBed('<Text value="Hello, World" />', {
1017
- testThemeVars: {
1018
- "textAlignLast-Text": EXPECTED,
1019
- },
1020
- });
1021
- const component = (yield createTextDriver()).component;
1022
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-align-last", EXPECTED);
1023
- }));
1024
- (0, fixtures_1.test)("wordBreak theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
1025
- const EXPECTED = "normal";
1026
- yield initTestBed('<Text value="Hello, World" />', {
1027
- testThemeVars: {
1028
- "wordBreak-Text": EXPECTED,
1029
- },
1030
- });
1031
- const component = (yield createTextDriver()).component;
1032
- yield (0, fixtures_1.expect)(component).toHaveCSS("word-break", EXPECTED);
1033
- }));
1034
- (0, fixtures_1.test)("direction theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
1035
- const EXPECTED = "rtl";
1036
- yield initTestBed('<Text value="Hello, World" />', {
1037
- testThemeVars: {
1038
- "direction-Text": EXPECTED,
1039
- },
1040
- });
1041
- const component = (yield createTextDriver()).component;
1042
- yield (0, fixtures_1.expect)(component).toHaveCSS("direction", EXPECTED);
1043
- }));
1044
- (0, fixtures_1.test)("writingMode theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
1045
- const EXPECTED = "vertical-rl";
1046
- yield initTestBed('<Text value="Hello, World" />', {
1047
- testThemeVars: {
1048
- "writingMode-Text": EXPECTED,
1049
- },
1050
- });
1051
- const component = (yield createTextDriver()).component;
1052
- yield (0, fixtures_1.expect)(component).toHaveCSS("writing-mode", EXPECTED);
1053
- }));
1054
- (0, fixtures_1.test)("lineBreak theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
1055
- const EXPECTED = "normal";
1056
- yield initTestBed('<Text value="Hello, World" />', {
1057
- testThemeVars: {
1058
- "lineBreak-Text": EXPECTED,
1059
- },
1060
- });
1061
- const component = (yield createTextDriver()).component;
1062
- yield (0, fixtures_1.expect)(component).toHaveCSS("line-break", EXPECTED);
1063
- }));
1064
- // =============================================================================
1065
- // PREDEFINED VARIANT TESTS
1066
- // =============================================================================
1067
- (0, fixtures_1.test)("variant='secondary' applies secondary theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver, }) {
1068
- yield initTestBed(`
1069
- <Theme fontSize-Text-secondary="14px" textColor-Text-secondary="rgb(100, 100, 100)">
1070
- <Text variant="secondary" testId="text">Secondary text</Text>
1071
- </Theme>
1072
- `);
1073
- const component = (yield createTextDriver("text")).component;
1074
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", "14px");
1075
- yield (0, fixtures_1.expect)(component).toHaveCSS("color", "rgb(100, 100, 100)");
1076
- }));
1077
- (0, fixtures_1.test)("variant='abbr' applies abbreviation theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1078
- yield initTestBed(`
1079
- <Theme fontWeight-Text-abbr="700" textTransform-Text-abbr="uppercase">
1080
- <Text variant="abbr" testId="text">HTML</Text>
1081
- </Theme>
1082
- `);
1083
- const component = page.getByTestId("text");
1084
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-weight", "700");
1085
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-transform", "uppercase");
1086
- }));
1087
- (0, fixtures_1.test)("variant='cite' applies citation theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1088
- yield initTestBed(`
1089
- <Theme fontStyle-Text-cite="italic">
1090
- <Text variant="cite" testId="text">Citation</Text>
1091
- </Theme>
1092
- `);
1093
- const component = page.getByTestId("text");
1094
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-style", "italic");
1095
- }));
1096
- (0, fixtures_1.test)("variant='code' applies inline code theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1097
- yield initTestBed(`
1098
- <Theme
1099
- fontFamily-Text-code="monospace"
1100
- fontSize-Text-code="14px"
1101
- borderWidth-Text-code="1px"
1102
- borderStyle-Text-code="solid"
1103
- borderRadius-Text-code="4px"
1104
- paddingHorizontal-Text-code="4px"
1105
- paddingBottom-Text-code="2px"
1106
- backgroundColor-Text-code="rgb(240, 240, 240)"
1107
- borderColor-Text-code="rgb(200, 200, 200)"
1108
- >
1109
- <Text variant="code" testId="text">code</Text>
1110
- </Theme>
1111
- `);
1112
- const component = page.getByTestId("text");
1113
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-family", "monospace");
1114
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", "14px");
1115
- yield (0, fixtures_1.expect)(component).toHaveCSS("border-width", "1px");
1116
- yield (0, fixtures_1.expect)(component).toHaveCSS("border-style", "solid");
1117
- yield (0, fixtures_1.expect)(component).toHaveCSS("border-radius", "4px");
1118
- yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", "4px");
1119
- yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", "4px");
1120
- yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", "2px");
1121
- yield (0, fixtures_1.expect)(component).toHaveCSS("background-color", "rgb(240, 240, 240)");
1122
- yield (0, fixtures_1.expect)(component).toHaveCSS("border-color", "rgb(200, 200, 200)");
1123
- }));
1124
- (0, fixtures_1.test)("variant='deleted' applies deleted text theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1125
- yield initTestBed(`
1126
- <Theme textDecorationLine-Text-deleted="line-through">
1127
- <Text variant="deleted" testId="text">Deleted text</Text>
1128
- </Theme>
1129
- `);
1130
- const component = page.getByTestId("text");
1131
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-decoration-line", "line-through");
1132
- }));
1133
- (0, fixtures_1.test)("variant='inserted' applies inserted text theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
1134
- yield initTestBed(`
1135
- <Theme textDecorationLine-Text-inserted="underline">
1136
- <Text variant="inserted" testId="text">Inserted text</Text>
1137
- </Theme>
1138
- `);
1139
- const component = page.getByTestId("text");
1140
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-decoration-line", "underline");
1141
- }));
1142
- (0, fixtures_1.test)("variant='keyboard' applies keyboard theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1143
- yield initTestBed(`
1144
- <Theme
1145
- fontFamily-Text-keyboard="monospace"
1146
- fontSize-Text-keyboard="14px"
1147
- fontWeight-Text-keyboard="700"
1148
- borderWidth-Text-keyboard="1px"
1149
- paddingHorizontal-Text-keyboard="4px"
1150
- backgroundColor-Text-keyboard="rgb(245, 245, 245)"
1151
- borderColor-Text-keyboard="rgb(180, 180, 180)"
1152
- >
1153
- <Text variant="keyboard" testId="text">Ctrl+C</Text>
1154
- </Theme>
1155
- `);
1156
- const component = page.getByTestId("text");
1157
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-family", "monospace");
1158
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", "14px");
1159
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-weight", "700");
1160
- yield (0, fixtures_1.expect)(component).toHaveCSS("border-width", "1px");
1161
- yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", "4px");
1162
- yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", "4px");
1163
- yield (0, fixtures_1.expect)(component).toHaveCSS("background-color", "rgb(245, 245, 245)");
1164
- yield (0, fixtures_1.expect)(component).toHaveCSS("border-color", "rgb(180, 180, 180)");
1165
- }));
1166
- (0, fixtures_1.test)("variant='sample' applies sample theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1167
- yield initTestBed(`
1168
- <Theme
1169
- fontFamily-Text-sample="monospace"
1170
- fontSize-Text-sample="14px"
1171
- >
1172
- <Text variant="sample" testId="text">Sample output</Text>
1173
- </Theme>
1174
- `);
1175
- const component = page.getByTestId("text");
1176
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-family", "monospace");
1177
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", "14px");
1178
- }));
1179
- (0, fixtures_1.test)("variant='sup' applies superscript theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1180
- yield initTestBed(`
1181
- <Theme
1182
- fontSize-Text-sup="12px"
1183
- verticalAlignment-Text-sup="super"
1184
- >
1185
- <Text variant="sup" testId="text">2</Text>
1186
- </Theme>
1187
- `);
1188
- const component = page.getByTestId("text");
1189
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", "12px");
1190
- yield (0, fixtures_1.expect)(component).toHaveCSS("vertical-align", "super");
1191
- }));
1192
- (0, fixtures_1.test)("variant='sub' applies subscript theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1193
- yield initTestBed(`
1194
- <Theme
1195
- fontSize-Text-sub="12px"
1196
- verticalAlignment-Text-sub="sub"
1197
- >
1198
- <Text variant="sub" testId="text">2</Text>
1199
- </Theme>
1200
- `);
1201
- const component = page.getByTestId("text");
1202
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", "12px");
1203
- yield (0, fixtures_1.expect)(component).toHaveCSS("vertical-align", "sub");
1204
- }));
1205
- (0, fixtures_1.test)("variant='var' applies variable theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1206
- yield initTestBed(`
1207
- <Theme fontStyle-Text-var="italic">
1208
- <Text variant="var" testId="text">variable</Text>
1209
- </Theme>
1210
- `);
1211
- const component = page.getByTestId("text");
1212
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-style", "italic");
1213
- }));
1214
- (0, fixtures_1.test)("variant='em' applies emphasis theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1215
- yield initTestBed(`
1216
- <Theme fontStyle-Text-em="italic">
1217
- <Text variant="em" testId="text">Emphasized</Text>
1218
- </Theme>
1219
- `);
1220
- const component = page.getByTestId("text");
1221
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-style", "italic");
1222
- }));
1223
- (0, fixtures_1.test)("variant='mono' applies monospace theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1224
- yield initTestBed(`
1225
- <Theme fontFamily-Text-mono="monospace">
1226
- <Text variant="mono" testId="text">Monospace text</Text>
1227
- </Theme>
1228
- `);
1229
- const component = page.getByTestId("text");
1230
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-family", "monospace");
1231
- }));
1232
- (0, fixtures_1.test)("variant='title' applies title theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1233
- yield initTestBed(`
1234
- <Theme fontSize-Text-title="32px">
1235
- <Text variant="title" testId="text">Main Title</Text>
1236
- </Theme>
1237
- `);
1238
- const component = page.getByTestId("text");
1239
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", "32px");
1240
- }));
1241
- (0, fixtures_1.test)("variant='subtitle' applies subtitle theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1242
- yield initTestBed(`
1243
- <Theme fontSize-Text-subtitle="24px">
1244
- <Text variant="subtitle" testId="text">Subtitle</Text>
1245
- </Theme>
1246
- `);
1247
- const component = page.getByTestId("text");
1248
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", "24px");
1249
- }));
1250
- (0, fixtures_1.test)("variant='small' applies small text theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1251
- yield initTestBed(`
1252
- <Theme fontSize-Text-small="14px">
1253
- <Text variant="small" testId="text">Small text</Text>
1254
- </Theme>
1255
- `);
1256
- const component = page.getByTestId("text");
1257
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", "14px");
1258
- }));
1259
- (0, fixtures_1.test)("variant='caption' applies caption theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1260
- yield initTestBed(`
1261
- <Theme letterSpacing-Text-caption="0.8px">
1262
- <Text variant="caption" testId="text">Caption text</Text>
1263
- </Theme>
1264
- `);
1265
- const component = page.getByTestId("text");
1266
- yield (0, fixtures_1.expect)(component).toHaveCSS("letter-spacing", "0.8px");
1267
- }));
1268
- (0, fixtures_1.test)("variant='placeholder' applies placeholder theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
1269
- yield initTestBed(`
1270
- <Theme
1271
- fontSize-Text-placeholder="12px"
1272
- textColor-Text-placeholder="rgb(150, 150, 150)"
1273
- >
1274
- <Text variant="placeholder" testId="text">Placeholder text</Text>
1275
- </Theme>
1276
- `);
1277
- const component = page.getByTestId("text");
1278
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", "12px");
1279
- yield (0, fixtures_1.expect)(component).toHaveCSS("color", "rgb(150, 150, 150)");
1280
- }));
1281
- (0, fixtures_1.test)("variant='paragraph' applies paragraph theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1282
- yield initTestBed(`
1283
- <Theme paddingVertical-Text-paragraph="4px">
1284
- <Text variant="paragraph" testId="text">Paragraph text</Text>
1285
- </Theme>
1286
- `);
1287
- const component = page.getByTestId("text");
1288
- yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", "4px");
1289
- yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", "4px");
1290
- }));
1291
- (0, fixtures_1.test)("variant='subheading' applies subheading theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1292
- yield initTestBed(`
1293
- <Theme
1294
- fontSize-Text-subheading="18px"
1295
- fontWeight-Text-subheading="700"
1296
- letterSpacing-Text-subheading="0.8px"
1297
- textTransform-Text-subheading="uppercase"
1298
- textColor-Text-subheading="rgb(80, 80, 80)"
1299
- >
1300
- <Text variant="subheading" testId="text">Subheading</Text>
1301
- </Theme>
1302
- `);
1303
- const component = page.getByTestId("text");
1304
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", "18px");
1305
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-weight", "700");
1306
- yield (0, fixtures_1.expect)(component).toHaveCSS("letter-spacing", "0.8px");
1307
- yield (0, fixtures_1.expect)(component).toHaveCSS("text-transform", "uppercase");
1308
- yield (0, fixtures_1.expect)(component).toHaveCSS("color", "rgb(80, 80, 80)");
1309
- }));
1310
- (0, fixtures_1.test)("variant='tableheading' applies table heading theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page, }) {
1311
- yield initTestBed(`
1312
- <Theme
1313
- marginTop-Text-tableheading="4px"
1314
- marginBottom-Text-tableheading="16px"
1315
- paddingHorizontal-Text-tableheading="4px"
1316
- fontSize-Text-tableheading="18px"
1317
- fontWeight-Text-tableheading="700"
1318
- >
1319
- <Text variant="tableheading" testId="text">Table Header</Text>
1320
- </Theme>
1321
- `);
1322
- const component = page.getByTestId("text");
1323
- yield (0, fixtures_1.expect)(component).toHaveCSS("margin-top", "4px");
1324
- yield (0, fixtures_1.expect)(component).toHaveCSS("margin-bottom", "16px");
1325
- yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", "4px");
1326
- yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", "4px");
1327
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", "18px");
1328
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-weight", "700");
1329
- }));
1330
- (0, fixtures_1.test)("variant='strong' applies strong theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1331
- yield initTestBed(`
1332
- <Theme fontWeight-Text-strong="700">
1333
- <Text variant="strong" testId="text">Strong text</Text>
1334
- </Theme>
1335
- `);
1336
- const component = page.getByTestId("text");
1337
- yield (0, fixtures_1.expect)(component).toHaveCSS("font-weight", "700");
1338
- }));
1339
- (0, fixtures_1.test)("variant='marked' applies marked theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1340
- yield initTestBed(`
1341
- <Theme backgroundColor-Text-marked="rgb(255, 255, 0)">
1342
- <Text variant="marked" testId="text">Highlighted text</Text>
1343
- </Theme>
1344
- `);
1345
- const component = page.getByTestId("text");
1346
- yield (0, fixtures_1.expect)(component).toHaveCSS("background-color", "rgb(255, 255, 0)");
1347
- }));
1348
- });
1349
- // =============================================================================
1350
- // CUSTOM VARIANT TESTS
1351
- // =============================================================================
1352
- fixtures_1.test.describe("Custom Variants", () => {
1353
- (0, fixtures_1.test)("custom variant textColor theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1354
- const EXPECTED = "rgb(255, 0, 0)";
1355
- yield initTestBed(`
1356
- <App>
1357
- <Theme textColor-Text-customRed="${EXPECTED}">
1358
- <Text variant="customRed" testId="text">Hello Custom!</Text>
1359
- </Theme>
1360
- </App>
1361
- `);
1362
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("color", EXPECTED);
1363
- }));
1364
- (0, fixtures_1.test)("custom variant fontFamily theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1365
- const EXPECTED = "monospace";
1366
- yield initTestBed(`
1367
- <App>
1368
- <Theme fontFamily-Text-customMono="${EXPECTED}">
1369
- <Text variant="customMono" testId="text">Hello Custom!</Text>
1370
- </Theme>
1371
- </App>
1372
- `);
1373
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("font-family", EXPECTED);
1374
- }));
1375
- (0, fixtures_1.test)("custom variant fontSize theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1376
- const EXPECTED = "24px";
1377
- yield initTestBed(`
1378
- <App>
1379
- <Theme fontSize-Text-customLarge="${EXPECTED}">
1380
- <Text variant="customLarge" testId="text">Hello Custom!</Text>
1381
- </Theme>
1382
- </App>
1383
- `);
1384
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("font-size", EXPECTED);
1385
- }));
1386
- (0, fixtures_1.test)("custom variant fontStyle theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1387
- const EXPECTED = "italic";
1388
- yield initTestBed(`
1389
- <App>
1390
- <Theme fontStyle-Text-customItalic="${EXPECTED}">
1391
- <Text variant="customItalic" testId="text">Hello Custom!</Text>
1392
- </Theme>
1393
- </App>
1394
- `);
1395
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("font-style", EXPECTED);
1396
- }));
1397
- (0, fixtures_1.test)("custom variant fontWeight theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1398
- const EXPECTED = "700";
1399
- yield initTestBed(`
1400
- <App>
1401
- <Theme fontWeight-Text-customBold="bold">
1402
- <Text variant="customBold" testId="text">Hello Custom!</Text>
1403
- </Theme>
1404
- </App>
1405
- `);
1406
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("font-weight", EXPECTED);
1407
- }));
1408
- (0, fixtures_1.test)("custom variant fontStretch theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1409
- const EXPECTED = "125%";
1410
- yield initTestBed(`
1411
- <App>
1412
- <Theme fontStretch-Text-customExpanded="expanded">
1413
- <Text variant="customExpanded" testId="text">Hello Custom!</Text>
1414
- </Theme>
1415
- </App>
1416
- `);
1417
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("font-stretch", EXPECTED);
1418
- }));
1419
- (0, fixtures_1.test)("custom variant textDecorationLine theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1420
- const EXPECTED = "underline";
1421
- yield initTestBed(`
1422
- <App>
1423
- <Theme textDecorationLine-Text-customUnderline="${EXPECTED}">
1424
- <Text variant="customUnderline" testId="text">Hello Custom!</Text>
1425
- </Theme>
1426
- </App>
1427
- `);
1428
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("text-decoration-line", EXPECTED);
1429
- }));
1430
- (0, fixtures_1.test)("custom variant textDecorationColor theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1431
- const EXPECTED = "rgb(255, 0, 0)";
1432
- yield initTestBed(`
1433
- <App>
1434
- <Theme
1435
- textDecorationLine-Text-customDeco="underline"
1436
- textDecorationColor-Text-customDeco="${EXPECTED}"
1437
- >
1438
- <Text variant="customDeco" testId="text">Hello Custom!</Text>
1439
- </Theme>
1440
- </App>
1441
- `);
1442
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("text-decoration-color", EXPECTED);
1443
- }));
1444
- (0, fixtures_1.test)("custom variant textDecorationStyle theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1445
- const EXPECTED = "wavy";
1446
- yield initTestBed(`
1447
- <App>
1448
- <Theme
1449
- textDecorationLine-Text-customWavy="underline"
1450
- textDecorationStyle-Text-customWavy="${EXPECTED}"
1451
- >
1452
- <Text variant="customWavy" testId="text">Hello Custom!</Text>
1453
- </Theme>
1454
- </App>
1455
- `);
1456
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("text-decoration-style", EXPECTED);
1457
- }));
1458
- (0, fixtures_1.test)("custom variant textDecorationThickness theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1459
- const EXPECTED = "3px";
1460
- yield initTestBed(`
1461
- <App>
1462
- <Theme
1463
- textDecorationLine-Text-customThick="underline"
1464
- textDecorationThickness-Text-customThick="${EXPECTED}"
1465
- >
1466
- <Text variant="customThick" testId="text">Hello Custom!</Text>
1467
- </Theme>
1468
- </App>
1469
- `);
1470
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("text-decoration-thickness", EXPECTED);
1471
- }));
1472
- (0, fixtures_1.test)("custom variant textUnderlineOffset theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1473
- const EXPECTED = "5px";
1474
- yield initTestBed(`
1475
- <App>
1476
- <Theme
1477
- textDecorationLine-Text-customOffset="underline"
1478
- textUnderlineOffset-Text-customOffset="${EXPECTED}"
1479
- >
1480
- <Text variant="customOffset" testId="text">Hello Custom!</Text>
1481
- </Theme>
1482
- </App>
1483
- `);
1484
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("text-underline-offset", EXPECTED);
1485
- }));
1486
- (0, fixtures_1.test)("custom variant lineHeight theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1487
- const EXPECTED = "32px";
1488
- yield initTestBed(`
1489
- <App>
1490
- <Theme lineHeight-Text-customLineHeight="${EXPECTED}">
1491
- <Text variant="customLineHeight" testId="text">Hello Custom!</Text>
1492
- </Theme>
1493
- </App>
1494
- `);
1495
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("line-height", EXPECTED);
1496
- }));
1497
- (0, fixtures_1.test)("custom variant backgroundColor theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1498
- const EXPECTED = "rgb(255, 255, 0)";
1499
- yield initTestBed(`
1500
- <App>
1501
- <Theme backgroundColor-Text-customBg="${EXPECTED}">
1502
- <Text variant="customBg" testId="text">Hello Custom!</Text>
1503
- </Theme>
1504
- </App>
1505
- `);
1506
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("background-color", EXPECTED);
1507
- }));
1508
- (0, fixtures_1.test)("custom variant textTransform theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1509
- const EXPECTED = "uppercase";
1510
- yield initTestBed(`
1511
- <App>
1512
- <Theme textTransform-Text-customUpper="${EXPECTED}">
1513
- <Text variant="customUpper" testId="text">Hello Custom!</Text>
1514
- </Theme>
1515
- </App>
1516
- `);
1517
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("text-transform", EXPECTED);
1518
- }));
1519
- (0, fixtures_1.test)("custom variant letterSpacing theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1520
- const EXPECTED = "5px";
1521
- yield initTestBed(`
1522
- <App>
1523
- <Theme letterSpacing-Text-customSpaced="${EXPECTED}">
1524
- <Text variant="customSpaced" testId="text">Hello Custom!</Text>
1525
- </Theme>
1526
- </App>
1527
- `);
1528
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("letter-spacing", EXPECTED);
1529
- }));
1530
- (0, fixtures_1.test)("custom variant wordSpacing theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1531
- const EXPECTED = "10px";
1532
- yield initTestBed(`
1533
- <App>
1534
- <Theme wordSpacing-Text-customWordSpace="${EXPECTED}">
1535
- <Text variant="customWordSpace" testId="text">Hello Custom!</Text>
1536
- </Theme>
1537
- </App>
1538
- `);
1539
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("word-spacing", EXPECTED);
1540
- }));
1541
- (0, fixtures_1.test)("custom variant textShadow theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1542
- const EXPECTED = "rgb(255, 0, 0) 2px 2px 4px";
1543
- yield initTestBed(`
1544
- <App>
1545
- <Theme textShadow-Text-customShadow="${EXPECTED}">
1546
- <Text variant="customShadow" testId="text">Hello Custom!</Text>
1547
- </Theme>
1548
- </App>
1549
- `);
1550
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("text-shadow", EXPECTED);
1551
- }));
1552
- (0, fixtures_1.test)("custom variant textIndent theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1553
- const EXPECTED = "20px";
1554
- yield initTestBed(`
1555
- <App>
1556
- <Theme textIndent-Text-customIndent="${EXPECTED}">
1557
- <Text variant="customIndent" testId="text">Hello Custom!</Text>
1558
- </Theme>
1559
- </App>
1560
- `);
1561
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("text-indent", EXPECTED);
1562
- }));
1563
- (0, fixtures_1.test)("custom variant textAlign theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1564
- const EXPECTED = "center";
1565
- yield initTestBed(`
1566
- <App>
1567
- <Theme textAlign-Text-customCenter="${EXPECTED}">
1568
- <Text variant="customCenter" testId="text">Hello Custom!</Text>
1569
- </Theme>
1570
- </App>
1571
- `);
1572
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("text-align", EXPECTED);
1573
- }));
1574
- (0, fixtures_1.test)("custom variant textAlignLast theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1575
- const EXPECTED = "right";
1576
- yield initTestBed(`
1577
- <App>
1578
- <Theme textAlignLast-Text-customAlignLast="${EXPECTED}">
1579
- <Text variant="customAlignLast" testId="text">Hello Custom!</Text>
1580
- </Theme>
1581
- </App>
1582
- `);
1583
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("text-align-last", EXPECTED);
1584
- }));
1585
- (0, fixtures_1.test)("custom variant wordBreak theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1586
- const EXPECTED = "break-all";
1587
- yield initTestBed(`
1588
- <App>
1589
- <Theme wordBreak-Text-customBreak="${EXPECTED}">
1590
- <Text variant="customBreak" breakMode="'{undefined}'" testId="text">Hello Custom!</Text>
1591
- </Theme>
1592
- </App>
1593
- `);
1594
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("word-break", EXPECTED);
1595
- }));
1596
- (0, fixtures_1.test)("custom variant wordWrap theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1597
- const EXPECTED = "break-word";
1598
- yield initTestBed(`
1599
- <App>
1600
- <Theme wordWrap-Text-customWrap="${EXPECTED}">
1601
- <Text variant="customWrap" breakMode="'{undefined}'" testId="text">Hello Custom!</Text>
1602
- </Theme>
1603
- </App>
1604
- `);
1605
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("word-wrap", EXPECTED);
1606
- }));
1607
- (0, fixtures_1.test)("custom variant direction theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1608
- const EXPECTED = "rtl";
1609
- yield initTestBed(`
1610
- <App>
1611
- <Theme direction-Text-customRtl="${EXPECTED}">
1612
- <Text variant="customRtl" testId="text">Hello Custom!</Text>
1613
- </Theme>
1614
- </App>
1615
- `);
1616
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("direction", EXPECTED);
1617
- }));
1618
- (0, fixtures_1.test)("custom variant writingMode theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1619
- const EXPECTED = "vertical-rl";
1620
- yield initTestBed(`
1621
- <App>
1622
- <Theme writingMode-Text-customVertical="${EXPECTED}">
1623
- <Text variant="customVertical" testId="text">Hello Custom!</Text>
1624
- </Theme>
1625
- </App>
1626
- `);
1627
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("writing-mode", EXPECTED);
1628
- }));
1629
- (0, fixtures_1.test)("custom variant lineBreak theme variable", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1630
- const EXPECTED = "strict";
1631
- yield initTestBed(`
1632
- <App>
1633
- <Theme lineBreak-Text-customLineBreak="${EXPECTED}">
1634
- <Text variant="customLineBreak" testId="text">Hello Custom!</Text>
1635
- </Theme>
1636
- </App>
1637
- `);
1638
- yield (0, fixtures_1.expect)(page.getByTestId("text")).toHaveCSS("line-break", EXPECTED);
1639
- }));
1640
- (0, fixtures_1.test)("custom variant with multiple theme variables", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
1641
- yield initTestBed(`
1642
- <App>
1643
- <Theme
1644
- textColor-Text-pinkElephant="rgb(255, 192, 203)"
1645
- fontWeight-Text-pinkElephant="bold"
1646
- textColor-Text-greenDog="rgb(0, 128, 0)"
1647
- fontStyle-Text-greenDog="italic"
1648
- >
1649
- <Text variant="pinkElephant" testId="pink">
1650
- Hello Pink Elephant!
1651
- </Text>
1652
- <Text variant="greenDog" testId="green">
1653
- Hello Green Dog!
1654
- </Text>
1655
- </Theme>
1656
- </App>
1657
- `);
1658
- const pinkText = page.getByTestId("pink");
1659
- const greenText = page.getByTestId("green");
1660
- yield (0, fixtures_1.expect)(pinkText).toHaveCSS("color", "rgb(255, 192, 203)");
1661
- yield (0, fixtures_1.expect)(pinkText).toHaveCSS("font-weight", "700");
1662
- yield (0, fixtures_1.expect)(greenText).toHaveCSS("color", "rgb(0, 128, 0)");
1663
- yield (0, fixtures_1.expect)(greenText).toHaveCSS("font-style", "italic");
1664
- }));
1665
- });
1666
- // =============================================================================
1667
- // SMOKE TESTS (kept for compatibility)
1668
- // =============================================================================
1669
- fixtures_1.test.describe("smoke tests", { tag: "@smoke" }, () => {
1670
- (0, fixtures_1.test)("basic smoke test", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createTextDriver }) {
1671
- yield initTestBed(`<Text value="Smoke test" />`);
1672
- const driver = yield createTextDriver();
1673
- yield (0, fixtures_1.expect)(driver.component).toBeVisible();
1674
- yield (0, fixtures_1.expect)(driver.component).toHaveText("Smoke test");
1675
- }));
1676
- });