@cloudscape-design/components 3.0.216 → 3.0.217

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 (348) hide show
  1. package/internal/environment.js +1 -1
  2. package/internal/manifest.json +1 -1
  3. package/package.json +1 -1
  4. package/test-utils/dom/alert/index.js +20 -40
  5. package/test-utils/dom/alert/index.js.map +1 -1
  6. package/test-utils/dom/annotation/index.js +24 -44
  7. package/test-utils/dom/annotation/index.js.map +1 -1
  8. package/test-utils/dom/app-layout/index.js +27 -47
  9. package/test-utils/dom/app-layout/index.js.map +1 -1
  10. package/test-utils/dom/area-chart/index.js +12 -32
  11. package/test-utils/dom/area-chart/index.js.map +1 -1
  12. package/test-utils/dom/attribute-editor/index.js +32 -57
  13. package/test-utils/dom/attribute-editor/index.js.map +1 -1
  14. package/test-utils/dom/autosuggest/index.js +76 -114
  15. package/test-utils/dom/autosuggest/index.js.map +1 -1
  16. package/test-utils/dom/badge/index.js +5 -25
  17. package/test-utils/dom/badge/index.js.map +1 -1
  18. package/test-utils/dom/bar-chart/index.js +5 -25
  19. package/test-utils/dom/bar-chart/index.js.map +1 -1
  20. package/test-utils/dom/box/index.js +5 -25
  21. package/test-utils/dom/box/index.js.map +1 -1
  22. package/test-utils/dom/breadcrumb-group/index.js +17 -37
  23. package/test-utils/dom/breadcrumb-group/index.js.map +1 -1
  24. package/test-utils/dom/button/index.js +16 -36
  25. package/test-utils/dom/button/index.js.map +1 -1
  26. package/test-utils/dom/button-dropdown/index.js +38 -59
  27. package/test-utils/dom/button-dropdown/index.js.map +1 -1
  28. package/test-utils/dom/calendar/index.js +20 -40
  29. package/test-utils/dom/calendar/index.js.map +1 -1
  30. package/test-utils/dom/cards/index.js +55 -83
  31. package/test-utils/dom/cards/index.js.map +1 -1
  32. package/test-utils/dom/checkbox/index.js +14 -34
  33. package/test-utils/dom/checkbox/index.js.map +1 -1
  34. package/test-utils/dom/code-editor/index.js +33 -53
  35. package/test-utils/dom/code-editor/index.js.map +1 -1
  36. package/test-utils/dom/collection-preferences/index.js +40 -65
  37. package/test-utils/dom/collection-preferences/index.js.map +1 -1
  38. package/test-utils/dom/collection-preferences/page-size-preference.js +12 -32
  39. package/test-utils/dom/collection-preferences/page-size-preference.js.map +1 -1
  40. package/test-utils/dom/collection-preferences/visible-content-preference.js +18 -38
  41. package/test-utils/dom/collection-preferences/visible-content-preference.js.map +1 -1
  42. package/test-utils/dom/column-layout/index.js +5 -25
  43. package/test-utils/dom/column-layout/index.js.map +1 -1
  44. package/test-utils/dom/container/index.js +11 -31
  45. package/test-utils/dom/container/index.js.map +1 -1
  46. package/test-utils/dom/content-layout/index.js +9 -29
  47. package/test-utils/dom/content-layout/index.js.map +1 -1
  48. package/test-utils/dom/date-input/index.js +5 -25
  49. package/test-utils/dom/date-input/index.js.map +1 -1
  50. package/test-utils/dom/date-picker/index.js +26 -47
  51. package/test-utils/dom/date-picker/index.js.map +1 -1
  52. package/test-utils/dom/date-range-picker/index.js +87 -119
  53. package/test-utils/dom/date-range-picker/index.js.map +1 -1
  54. package/test-utils/dom/expandable-section/index.js +15 -35
  55. package/test-utils/dom/expandable-section/index.js.map +1 -1
  56. package/test-utils/dom/flashbar/flash.js +18 -38
  57. package/test-utils/dom/flashbar/flash.js.map +1 -1
  58. package/test-utils/dom/flashbar/index.js +9 -29
  59. package/test-utils/dom/flashbar/index.js.map +1 -1
  60. package/test-utils/dom/form/index.js +15 -35
  61. package/test-utils/dom/form/index.js.map +1 -1
  62. package/test-utils/dom/form-field/index.js +21 -41
  63. package/test-utils/dom/form-field/index.js.map +1 -1
  64. package/test-utils/dom/grid/index.js +8 -28
  65. package/test-utils/dom/grid/index.js.map +1 -1
  66. package/test-utils/dom/header/index.js +15 -35
  67. package/test-utils/dom/header/index.js.map +1 -1
  68. package/test-utils/dom/help-panel/index.js +11 -31
  69. package/test-utils/dom/help-panel/index.js.map +1 -1
  70. package/test-utils/dom/hotspot/index.js +12 -32
  71. package/test-utils/dom/hotspot/index.js.map +1 -1
  72. package/test-utils/dom/icon/index.js +5 -25
  73. package/test-utils/dom/icon/index.js.map +1 -1
  74. package/test-utils/dom/index.js +133 -134
  75. package/test-utils/dom/index.js.map +1 -1
  76. package/test-utils/dom/input/base-input.js +35 -57
  77. package/test-utils/dom/input/base-input.js.map +1 -1
  78. package/test-utils/dom/input/index.js +7 -27
  79. package/test-utils/dom/input/index.js.map +1 -1
  80. package/test-utils/dom/internal/abstract-switch.js +12 -32
  81. package/test-utils/dom/internal/abstract-switch.js.map +1 -1
  82. package/test-utils/dom/internal/autosuggest-input.js +14 -34
  83. package/test-utils/dom/internal/autosuggest-input.js.map +1 -1
  84. package/test-utils/dom/internal/chart-filter.js +11 -31
  85. package/test-utils/dom/internal/chart-filter.js.map +1 -1
  86. package/test-utils/dom/internal/chart-legend.js +13 -33
  87. package/test-utils/dom/internal/chart-legend.js.map +1 -1
  88. package/test-utils/dom/internal/chart-popover.js +14 -34
  89. package/test-utils/dom/internal/chart-popover.js.map +1 -1
  90. package/test-utils/dom/internal/charts.js +20 -40
  91. package/test-utils/dom/internal/charts.js.map +1 -1
  92. package/test-utils/dom/internal/dropdown-host.js +89 -125
  93. package/test-utils/dom/internal/dropdown-host.js.map +1 -1
  94. package/test-utils/dom/internal/dropdown.js +7 -27
  95. package/test-utils/dom/internal/dropdown.js.map +1 -1
  96. package/test-utils/dom/internal/filtering-token.js +13 -33
  97. package/test-utils/dom/internal/filtering-token.js.map +1 -1
  98. package/test-utils/dom/internal/option.js +13 -33
  99. package/test-utils/dom/internal/option.js.map +1 -1
  100. package/test-utils/dom/internal/options-list.js +5 -25
  101. package/test-utils/dom/internal/options-list.js.map +1 -1
  102. package/test-utils/dom/line-chart/index.js +5 -25
  103. package/test-utils/dom/line-chart/index.js.map +1 -1
  104. package/test-utils/dom/link/index.js +5 -25
  105. package/test-utils/dom/link/index.js.map +1 -1
  106. package/test-utils/dom/mixed-line-bar-chart/index.js +29 -54
  107. package/test-utils/dom/mixed-line-bar-chart/index.js.map +1 -1
  108. package/test-utils/dom/modal/index.js +18 -38
  109. package/test-utils/dom/modal/index.js.map +1 -1
  110. package/test-utils/dom/multiselect/index.js +38 -61
  111. package/test-utils/dom/multiselect/index.js.map +1 -1
  112. package/test-utils/dom/pagination/index.js +19 -39
  113. package/test-utils/dom/pagination/index.js.map +1 -1
  114. package/test-utils/dom/pie-chart/index.js +22 -42
  115. package/test-utils/dom/pie-chart/index.js.map +1 -1
  116. package/test-utils/dom/popover/index.js +16 -39
  117. package/test-utils/dom/popover/index.js.map +1 -1
  118. package/test-utils/dom/progress-bar/index.js +13 -33
  119. package/test-utils/dom/progress-bar/index.js.map +1 -1
  120. package/test-utils/dom/property-filter/index.js +15 -35
  121. package/test-utils/dom/property-filter/index.js.map +1 -1
  122. package/test-utils/dom/radio-group/index.js +13 -33
  123. package/test-utils/dom/radio-group/index.js.map +1 -1
  124. package/test-utils/dom/radio-group/radio-button.js +12 -32
  125. package/test-utils/dom/radio-group/radio-button.js.map +1 -1
  126. package/test-utils/dom/s3-resource-selector/index.js +40 -70
  127. package/test-utils/dom/s3-resource-selector/index.js.map +1 -1
  128. package/test-utils/dom/segmented-control/index.js +9 -29
  129. package/test-utils/dom/segmented-control/index.js.map +1 -1
  130. package/test-utils/dom/select/index.js +28 -51
  131. package/test-utils/dom/select/index.js.map +1 -1
  132. package/test-utils/dom/side-navigation/index.js +41 -66
  133. package/test-utils/dom/side-navigation/index.js.map +1 -1
  134. package/test-utils/dom/space-between/index.js +5 -25
  135. package/test-utils/dom/space-between/index.js.map +1 -1
  136. package/test-utils/dom/spinner/index.js +5 -25
  137. package/test-utils/dom/spinner/index.js.map +1 -1
  138. package/test-utils/dom/split-panel/index.js +25 -45
  139. package/test-utils/dom/split-panel/index.js.map +1 -1
  140. package/test-utils/dom/status-indicator/index.js +5 -25
  141. package/test-utils/dom/status-indicator/index.js.map +1 -1
  142. package/test-utils/dom/table/index.js +76 -94
  143. package/test-utils/dom/table/index.js.map +1 -1
  144. package/test-utils/dom/tabs/index.js +19 -39
  145. package/test-utils/dom/tabs/index.js.map +1 -1
  146. package/test-utils/dom/tag-editor/index.js +19 -44
  147. package/test-utils/dom/tag-editor/index.js.map +1 -1
  148. package/test-utils/dom/text-content/index.js +5 -25
  149. package/test-utils/dom/text-content/index.js.map +1 -1
  150. package/test-utils/dom/text-filter/index.js +10 -30
  151. package/test-utils/dom/text-filter/index.js.map +1 -1
  152. package/test-utils/dom/textarea/index.js +16 -36
  153. package/test-utils/dom/textarea/index.js.map +1 -1
  154. package/test-utils/dom/tiles/index.js +17 -37
  155. package/test-utils/dom/tiles/index.js.map +1 -1
  156. package/test-utils/dom/tiles/tile.js +16 -36
  157. package/test-utils/dom/tiles/tile.js.map +1 -1
  158. package/test-utils/dom/time-input/index.js +5 -25
  159. package/test-utils/dom/time-input/index.js.map +1 -1
  160. package/test-utils/dom/toggle/index.js +14 -34
  161. package/test-utils/dom/toggle/index.js.map +1 -1
  162. package/test-utils/dom/token-group/index.js +14 -34
  163. package/test-utils/dom/token-group/index.js.map +1 -1
  164. package/test-utils/dom/token-group/token.js +12 -32
  165. package/test-utils/dom/token-group/token.js.map +1 -1
  166. package/test-utils/dom/top-navigation/1.0-beta/index.js +56 -91
  167. package/test-utils/dom/top-navigation/1.0-beta/index.js.map +1 -1
  168. package/test-utils/dom/top-navigation/index.js +73 -108
  169. package/test-utils/dom/top-navigation/index.js.map +1 -1
  170. package/test-utils/dom/tutorial-panel/index.js +38 -63
  171. package/test-utils/dom/tutorial-panel/index.js.map +1 -1
  172. package/test-utils/dom/tutorial-panel/tutorial.js +29 -49
  173. package/test-utils/dom/tutorial-panel/tutorial.js.map +1 -1
  174. package/test-utils/dom/wizard/index.js +33 -53
  175. package/test-utils/dom/wizard/index.js.map +1 -1
  176. package/test-utils/selectors/alert/index.js +20 -40
  177. package/test-utils/selectors/alert/index.js.map +1 -1
  178. package/test-utils/selectors/annotation/index.js +24 -44
  179. package/test-utils/selectors/annotation/index.js.map +1 -1
  180. package/test-utils/selectors/app-layout/index.js +27 -47
  181. package/test-utils/selectors/app-layout/index.js.map +1 -1
  182. package/test-utils/selectors/area-chart/index.js +12 -32
  183. package/test-utils/selectors/area-chart/index.js.map +1 -1
  184. package/test-utils/selectors/attribute-editor/index.js +32 -57
  185. package/test-utils/selectors/attribute-editor/index.js.map +1 -1
  186. package/test-utils/selectors/autosuggest/index.js +69 -103
  187. package/test-utils/selectors/autosuggest/index.js.map +1 -1
  188. package/test-utils/selectors/badge/index.js +5 -25
  189. package/test-utils/selectors/badge/index.js.map +1 -1
  190. package/test-utils/selectors/bar-chart/index.js +5 -25
  191. package/test-utils/selectors/bar-chart/index.js.map +1 -1
  192. package/test-utils/selectors/box/index.js +5 -25
  193. package/test-utils/selectors/box/index.js.map +1 -1
  194. package/test-utils/selectors/breadcrumb-group/index.js +17 -37
  195. package/test-utils/selectors/breadcrumb-group/index.js.map +1 -1
  196. package/test-utils/selectors/button/index.js +11 -31
  197. package/test-utils/selectors/button/index.js.map +1 -1
  198. package/test-utils/selectors/button-dropdown/index.js +30 -50
  199. package/test-utils/selectors/button-dropdown/index.js.map +1 -1
  200. package/test-utils/selectors/calendar/index.js +20 -40
  201. package/test-utils/selectors/calendar/index.js.map +1 -1
  202. package/test-utils/selectors/cards/index.js +55 -83
  203. package/test-utils/selectors/cards/index.js.map +1 -1
  204. package/test-utils/selectors/checkbox/index.js +14 -34
  205. package/test-utils/selectors/checkbox/index.js.map +1 -1
  206. package/test-utils/selectors/code-editor/index.js +25 -45
  207. package/test-utils/selectors/code-editor/index.js.map +1 -1
  208. package/test-utils/selectors/collection-preferences/index.js +40 -65
  209. package/test-utils/selectors/collection-preferences/index.js.map +1 -1
  210. package/test-utils/selectors/collection-preferences/page-size-preference.js +12 -32
  211. package/test-utils/selectors/collection-preferences/page-size-preference.js.map +1 -1
  212. package/test-utils/selectors/collection-preferences/visible-content-preference.js +18 -38
  213. package/test-utils/selectors/collection-preferences/visible-content-preference.js.map +1 -1
  214. package/test-utils/selectors/column-layout/index.js +5 -25
  215. package/test-utils/selectors/column-layout/index.js.map +1 -1
  216. package/test-utils/selectors/container/index.js +11 -31
  217. package/test-utils/selectors/container/index.js.map +1 -1
  218. package/test-utils/selectors/content-layout/index.js +9 -29
  219. package/test-utils/selectors/content-layout/index.js.map +1 -1
  220. package/test-utils/selectors/date-input/index.js +5 -25
  221. package/test-utils/selectors/date-input/index.js.map +1 -1
  222. package/test-utils/selectors/date-picker/index.js +22 -43
  223. package/test-utils/selectors/date-picker/index.js.map +1 -1
  224. package/test-utils/selectors/date-range-picker/index.js +81 -112
  225. package/test-utils/selectors/date-range-picker/index.js.map +1 -1
  226. package/test-utils/selectors/expandable-section/index.js +15 -35
  227. package/test-utils/selectors/expandable-section/index.js.map +1 -1
  228. package/test-utils/selectors/flashbar/flash.js +18 -38
  229. package/test-utils/selectors/flashbar/flash.js.map +1 -1
  230. package/test-utils/selectors/flashbar/index.js +9 -29
  231. package/test-utils/selectors/flashbar/index.js.map +1 -1
  232. package/test-utils/selectors/form/index.js +15 -35
  233. package/test-utils/selectors/form/index.js.map +1 -1
  234. package/test-utils/selectors/form-field/index.js +21 -41
  235. package/test-utils/selectors/form-field/index.js.map +1 -1
  236. package/test-utils/selectors/grid/index.js +8 -28
  237. package/test-utils/selectors/grid/index.js.map +1 -1
  238. package/test-utils/selectors/header/index.js +15 -35
  239. package/test-utils/selectors/header/index.js.map +1 -1
  240. package/test-utils/selectors/help-panel/index.js +11 -31
  241. package/test-utils/selectors/help-panel/index.js.map +1 -1
  242. package/test-utils/selectors/hotspot/index.js +12 -32
  243. package/test-utils/selectors/hotspot/index.js.map +1 -1
  244. package/test-utils/selectors/icon/index.js +5 -25
  245. package/test-utils/selectors/icon/index.js.map +1 -1
  246. package/test-utils/selectors/index.js +133 -134
  247. package/test-utils/selectors/index.js.map +1 -1
  248. package/test-utils/selectors/input/base-input.js +7 -27
  249. package/test-utils/selectors/input/base-input.js.map +1 -1
  250. package/test-utils/selectors/input/index.js +7 -27
  251. package/test-utils/selectors/input/index.js.map +1 -1
  252. package/test-utils/selectors/internal/abstract-switch.js +12 -32
  253. package/test-utils/selectors/internal/abstract-switch.js.map +1 -1
  254. package/test-utils/selectors/internal/autosuggest-input.js +14 -34
  255. package/test-utils/selectors/internal/autosuggest-input.js.map +1 -1
  256. package/test-utils/selectors/internal/chart-filter.js +11 -31
  257. package/test-utils/selectors/internal/chart-filter.js.map +1 -1
  258. package/test-utils/selectors/internal/chart-legend.js +13 -33
  259. package/test-utils/selectors/internal/chart-legend.js.map +1 -1
  260. package/test-utils/selectors/internal/chart-popover.js +14 -34
  261. package/test-utils/selectors/internal/chart-popover.js.map +1 -1
  262. package/test-utils/selectors/internal/charts.js +20 -40
  263. package/test-utils/selectors/internal/charts.js.map +1 -1
  264. package/test-utils/selectors/internal/dropdown-host.js +59 -91
  265. package/test-utils/selectors/internal/dropdown-host.js.map +1 -1
  266. package/test-utils/selectors/internal/dropdown.js +7 -27
  267. package/test-utils/selectors/internal/dropdown.js.map +1 -1
  268. package/test-utils/selectors/internal/filtering-token.js +13 -33
  269. package/test-utils/selectors/internal/filtering-token.js.map +1 -1
  270. package/test-utils/selectors/internal/option.js +13 -33
  271. package/test-utils/selectors/internal/option.js.map +1 -1
  272. package/test-utils/selectors/internal/options-list.js +5 -25
  273. package/test-utils/selectors/internal/options-list.js.map +1 -1
  274. package/test-utils/selectors/line-chart/index.js +5 -25
  275. package/test-utils/selectors/line-chart/index.js.map +1 -1
  276. package/test-utils/selectors/link/index.js +5 -25
  277. package/test-utils/selectors/link/index.js.map +1 -1
  278. package/test-utils/selectors/mixed-line-bar-chart/index.js +29 -54
  279. package/test-utils/selectors/mixed-line-bar-chart/index.js.map +1 -1
  280. package/test-utils/selectors/modal/index.js +13 -33
  281. package/test-utils/selectors/modal/index.js.map +1 -1
  282. package/test-utils/selectors/multiselect/index.js +38 -61
  283. package/test-utils/selectors/multiselect/index.js.map +1 -1
  284. package/test-utils/selectors/pagination/index.js +19 -39
  285. package/test-utils/selectors/pagination/index.js.map +1 -1
  286. package/test-utils/selectors/pie-chart/index.js +22 -42
  287. package/test-utils/selectors/pie-chart/index.js.map +1 -1
  288. package/test-utils/selectors/popover/index.js +22 -45
  289. package/test-utils/selectors/popover/index.js.map +1 -1
  290. package/test-utils/selectors/progress-bar/index.js +13 -33
  291. package/test-utils/selectors/progress-bar/index.js.map +1 -1
  292. package/test-utils/selectors/property-filter/index.js +15 -35
  293. package/test-utils/selectors/property-filter/index.js.map +1 -1
  294. package/test-utils/selectors/radio-group/index.js +13 -33
  295. package/test-utils/selectors/radio-group/index.js.map +1 -1
  296. package/test-utils/selectors/radio-group/radio-button.js +12 -32
  297. package/test-utils/selectors/radio-group/radio-button.js.map +1 -1
  298. package/test-utils/selectors/s3-resource-selector/index.js +40 -70
  299. package/test-utils/selectors/s3-resource-selector/index.js.map +1 -1
  300. package/test-utils/selectors/segmented-control/index.js +9 -29
  301. package/test-utils/selectors/segmented-control/index.js.map +1 -1
  302. package/test-utils/selectors/select/index.js +28 -51
  303. package/test-utils/selectors/select/index.js.map +1 -1
  304. package/test-utils/selectors/side-navigation/index.js +41 -66
  305. package/test-utils/selectors/side-navigation/index.js.map +1 -1
  306. package/test-utils/selectors/space-between/index.js +5 -25
  307. package/test-utils/selectors/space-between/index.js.map +1 -1
  308. package/test-utils/selectors/spinner/index.js +5 -25
  309. package/test-utils/selectors/spinner/index.js.map +1 -1
  310. package/test-utils/selectors/split-panel/index.js +25 -45
  311. package/test-utils/selectors/split-panel/index.js.map +1 -1
  312. package/test-utils/selectors/status-indicator/index.js +5 -25
  313. package/test-utils/selectors/status-indicator/index.js.map +1 -1
  314. package/test-utils/selectors/table/index.js +76 -94
  315. package/test-utils/selectors/table/index.js.map +1 -1
  316. package/test-utils/selectors/tabs/index.js +19 -39
  317. package/test-utils/selectors/tabs/index.js.map +1 -1
  318. package/test-utils/selectors/tag-editor/index.js +19 -44
  319. package/test-utils/selectors/tag-editor/index.js.map +1 -1
  320. package/test-utils/selectors/text-content/index.js +5 -25
  321. package/test-utils/selectors/text-content/index.js.map +1 -1
  322. package/test-utils/selectors/text-filter/index.js +10 -30
  323. package/test-utils/selectors/text-filter/index.js.map +1 -1
  324. package/test-utils/selectors/textarea/index.js +7 -27
  325. package/test-utils/selectors/textarea/index.js.map +1 -1
  326. package/test-utils/selectors/tiles/index.js +17 -37
  327. package/test-utils/selectors/tiles/index.js.map +1 -1
  328. package/test-utils/selectors/tiles/tile.js +16 -36
  329. package/test-utils/selectors/tiles/tile.js.map +1 -1
  330. package/test-utils/selectors/time-input/index.js +5 -25
  331. package/test-utils/selectors/time-input/index.js.map +1 -1
  332. package/test-utils/selectors/toggle/index.js +14 -34
  333. package/test-utils/selectors/toggle/index.js.map +1 -1
  334. package/test-utils/selectors/token-group/index.js +14 -34
  335. package/test-utils/selectors/token-group/index.js.map +1 -1
  336. package/test-utils/selectors/token-group/token.js +12 -32
  337. package/test-utils/selectors/token-group/token.js.map +1 -1
  338. package/test-utils/selectors/top-navigation/1.0-beta/index.js +56 -91
  339. package/test-utils/selectors/top-navigation/1.0-beta/index.js.map +1 -1
  340. package/test-utils/selectors/top-navigation/index.js +73 -108
  341. package/test-utils/selectors/top-navigation/index.js.map +1 -1
  342. package/test-utils/selectors/tutorial-panel/index.js +38 -63
  343. package/test-utils/selectors/tutorial-panel/index.js.map +1 -1
  344. package/test-utils/selectors/tutorial-panel/tutorial.js +29 -49
  345. package/test-utils/selectors/tutorial-panel/tutorial.js.map +1 -1
  346. package/test-utils/selectors/wizard/index.js +33 -53
  347. package/test-utils/selectors/wizard/index.js.map +1 -1
  348. package/test-utils/tsconfig.tsbuildinfo +1 -1
@@ -1,19 +1,4 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -24,140 +9,122 @@ Object.defineProperty(exports, "__esModule", { value: true });
24
9
  exports.PortalAutosuggestDropdownWrapper = exports.AutosuggestDropdownWrapper = void 0;
25
10
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
26
11
  // SPDX-License-Identifier: Apache-2.0
27
- var test_utils_1 = require("react-dom/test-utils");
28
- var dom_1 = require("@cloudscape-design/test-utils-core/dom");
29
- var input_1 = require("../input");
30
- var utils_1 = require("@cloudscape-design/test-utils-core/utils");
31
- var option_1 = require("../internal/option");
32
- var options_list_1 = require("../internal/options-list");
33
- var dropdown_1 = require("../internal/dropdown");
34
- var styles_selectors_js_1 = require("../../../autosuggest/styles.selectors.js");
35
- var styles_selectors_js_2 = require("../../../internal/components/dropdown-status/styles.selectors.js");
36
- var styles_selectors_js_3 = require("../../../internal/components/selectable-item/styles.selectors.js");
37
- var styles_selectors_js_4 = require("../../../internal/components/dropdown-status/styles.selectors.js");
38
- var styles_selectors_js_5 = require("../../../internal/components/option/styles.selectors.js");
39
- var styles_selectors_js_6 = require("../../../internal/components/dropdown/styles.selectors.js");
40
- var AutosuggestDropdownWrapper = /** @class */ (function (_super) {
41
- __extends(AutosuggestDropdownWrapper, _super);
42
- function AutosuggestDropdownWrapper() {
43
- return _super !== null && _super.apply(this, arguments) || this;
44
- }
45
- AutosuggestDropdownWrapper.prototype.findOptions = function () {
46
- return this.findAll(".".concat(styles_selectors_js_3.default['selectable-item'], "[data-test-index]")).map(function (elementWrapper) { return new option_1.default(elementWrapper.getElement()); });
47
- };
12
+ const test_utils_1 = require("react-dom/test-utils");
13
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
14
+ const input_1 = require("../input");
15
+ const utils_1 = require("@cloudscape-design/test-utils-core/utils");
16
+ const option_1 = require("../internal/option");
17
+ const options_list_1 = require("../internal/options-list");
18
+ const dropdown_1 = require("../internal/dropdown");
19
+ const styles_selectors_js_1 = require("../../../autosuggest/styles.selectors.js");
20
+ const styles_selectors_js_2 = require("../../../internal/components/dropdown-status/styles.selectors.js");
21
+ const styles_selectors_js_3 = require("../../../internal/components/selectable-item/styles.selectors.js");
22
+ const styles_selectors_js_4 = require("../../../internal/components/dropdown-status/styles.selectors.js");
23
+ const styles_selectors_js_5 = require("../../../internal/components/option/styles.selectors.js");
24
+ const styles_selectors_js_6 = require("../../../internal/components/dropdown/styles.selectors.js");
25
+ class AutosuggestDropdownWrapper extends dom_1.ComponentWrapper {
26
+ findOptions() {
27
+ return this.findAll(`.${styles_selectors_js_3.default['selectable-item']}[data-test-index]`).map((elementWrapper) => new option_1.default(elementWrapper.getElement()));
28
+ }
48
29
  /**
49
30
  * Returns an option from the dropdown.
50
31
  *
51
32
  * @param optionIndex 1-based index of the option to select.
52
33
  */
53
- AutosuggestDropdownWrapper.prototype.findOption = function (optionIndex) {
54
- return this.findComponent(".".concat(styles_selectors_js_3.default['selectable-item'], "[data-test-index=\"").concat(optionIndex, "\"]"), option_1.default);
55
- };
34
+ findOption(optionIndex) {
35
+ return this.findComponent(`.${styles_selectors_js_3.default['selectable-item']}[data-test-index="${optionIndex}"]`, option_1.default);
36
+ }
56
37
  /**
57
38
  * Returns an option from the autosuggest by it's value
58
39
  *
59
40
  * @param value The 'value' of the option.
60
41
  */
61
- AutosuggestDropdownWrapper.prototype.findOptionByValue = function (value) {
62
- var toReplace = (0, utils_1.escapeSelector)(value);
63
- return this.findComponent(".".concat(option_1.default.rootSelector, "[data-value=\"").concat(toReplace, "\"]"), option_1.default);
64
- };
42
+ findOptionByValue(value) {
43
+ const toReplace = (0, utils_1.escapeSelector)(value);
44
+ return this.findComponent(`.${option_1.default.rootSelector}[data-value="${toReplace}"]`, option_1.default);
45
+ }
65
46
  /**
66
47
  * Returns an option from the dropdown.
67
48
  *
68
49
  * @param groupIndex 1-based index of the group to select an option in.
69
50
  * @param optionIndex 1-based index of the option to select.
70
51
  */
71
- AutosuggestDropdownWrapper.prototype.findOptionInGroup = function (groupIndex, optionIndex) {
72
- return this.findComponent(".".concat(styles_selectors_js_3.default['selectable-item'], "[data-group-index=\"").concat(groupIndex, "\"][data-in-group-index=\"").concat(optionIndex, "\"]"), option_1.default);
73
- };
52
+ findOptionInGroup(groupIndex, optionIndex) {
53
+ return this.findComponent(`.${styles_selectors_js_3.default['selectable-item']}[data-group-index="${groupIndex}"][data-in-group-index="${optionIndex}"]`, option_1.default);
54
+ }
74
55
  /**
75
56
  * Use this element to scroll through the list of options
76
57
  */
77
- AutosuggestDropdownWrapper.prototype.findOptionsContainer = function () {
58
+ findOptionsContainer() {
78
59
  return this.findByClassName(options_list_1.default.rootSelector);
79
- };
80
- AutosuggestDropdownWrapper.prototype.findFooterRegion = function () {
60
+ }
61
+ findFooterRegion() {
81
62
  return this.findByClassName(styles_selectors_js_4.default.root);
82
- };
83
- AutosuggestDropdownWrapper.prototype.findOpenDropdown = function () {
63
+ }
64
+ findOpenDropdown() {
84
65
  // Autosuggest always has a dropdown
85
66
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
86
- var dropdown = new dropdown_1.default(this.getElement());
67
+ const dropdown = new dropdown_1.default(this.getElement());
87
68
  return dropdown.findOpenDropdown();
88
- };
89
- AutosuggestDropdownWrapper.prototype.findHighlightedOption = function () {
90
- return this.findComponent(".".concat(styles_selectors_js_3.default.highlighted), option_1.default);
91
- };
69
+ }
70
+ findHighlightedOption() {
71
+ return this.findComponent(`.${styles_selectors_js_3.default.highlighted}`, option_1.default);
72
+ }
92
73
  /**
93
74
  * Returns all the selected options.
94
75
  */
95
- AutosuggestDropdownWrapper.prototype.findDisabledOptions = function () {
96
- return this.findAllByClassName(styles_selectors_js_3.default.disabled).map(function (elementWrapper) { return new option_1.default(elementWrapper.getElement()); });
97
- };
76
+ findDisabledOptions() {
77
+ return this.findAllByClassName(styles_selectors_js_3.default.disabled).map((elementWrapper) => new option_1.default(elementWrapper.getElement()));
78
+ }
98
79
  /**
99
80
  * Returns highlighted text fragments from all of the options.
100
81
  * Options get highlighted when they match the value of the input field.
101
82
  */
102
- AutosuggestDropdownWrapper.prototype.findHighlightedMatches = function () {
83
+ findHighlightedMatches() {
103
84
  return this.findAllByClassName(styles_selectors_js_5.default['filtering-match-highlight']);
104
- };
105
- AutosuggestDropdownWrapper.prototype.findHighlightedAriaLiveRegion = function () {
85
+ }
86
+ findHighlightedAriaLiveRegion() {
106
87
  return this.find('[aria-live]');
107
- };
108
- return AutosuggestDropdownWrapper;
109
- }(dom_1.ComponentWrapper));
88
+ }
89
+ }
110
90
  exports.AutosuggestDropdownWrapper = AutosuggestDropdownWrapper;
111
- var PortalAutosuggestDropdownWrapper = /** @class */ (function (_super) {
112
- __extends(PortalAutosuggestDropdownWrapper, _super);
113
- function PortalAutosuggestDropdownWrapper() {
114
- return _super !== null && _super.apply(this, arguments) || this;
115
- }
116
- PortalAutosuggestDropdownWrapper.prototype.findOpenDropdown = function () {
117
- return (0, dom_1.createWrapper)().find(".".concat(styles_selectors_js_6.default.dropdown, "[data-open=true]"));
118
- };
119
- return PortalAutosuggestDropdownWrapper;
120
- }(AutosuggestDropdownWrapper));
121
- exports.PortalAutosuggestDropdownWrapper = PortalAutosuggestDropdownWrapper;
122
- var AutosuggestWrapper = /** @class */ (function (_super) {
123
- __extends(AutosuggestWrapper, _super);
124
- function AutosuggestWrapper() {
125
- return _super !== null && _super.apply(this, arguments) || this;
91
+ class PortalAutosuggestDropdownWrapper extends AutosuggestDropdownWrapper {
92
+ findOpenDropdown() {
93
+ return (0, dom_1.createWrapper)().find(`.${styles_selectors_js_6.default.dropdown}[data-open=true]`);
126
94
  }
95
+ }
96
+ exports.PortalAutosuggestDropdownWrapper = PortalAutosuggestDropdownWrapper;
97
+ class AutosuggestWrapper extends input_1.default {
127
98
  /**
128
99
  * @param options
129
100
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
130
101
  */
131
- AutosuggestWrapper.prototype.findDropdown = function (options) {
132
- if (options === void 0) { options = { expandToViewport: false }; }
102
+ findDropdown(options = { expandToViewport: false }) {
133
103
  return options.expandToViewport
134
- ? (0, dom_1.createWrapper)().findComponent(".".concat(styles_selectors_js_6.default.dropdown, "[data-open=true]"), PortalAutosuggestDropdownWrapper)
104
+ ? (0, dom_1.createWrapper)().findComponent(`.${styles_selectors_js_6.default.dropdown}[data-open=true]`, PortalAutosuggestDropdownWrapper)
135
105
  : new AutosuggestDropdownWrapper(this.getElement());
136
- };
106
+ }
137
107
  /**
138
108
  * @param options
139
109
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
140
110
  */
141
- AutosuggestWrapper.prototype.findStatusIndicator = function (options) {
142
- if (options === void 0) { options = { expandToViewport: false }; }
111
+ findStatusIndicator(options = { expandToViewport: false }) {
143
112
  return this.findDropdown(options).findByClassName(styles_selectors_js_2.default.root);
144
- };
113
+ }
145
114
  /**
146
115
  * @param options
147
116
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
148
117
  */
149
- AutosuggestWrapper.prototype.findErrorRecoveryButton = function (options) {
150
- if (options === void 0) { options = { expandToViewport: false }; }
118
+ findErrorRecoveryButton(options = { expandToViewport: false }) {
151
119
  return this.findDropdown(options).findByClassName(styles_selectors_js_4.default.recovery);
152
- };
120
+ }
153
121
  /**
154
122
  * @param options
155
123
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
156
124
  */
157
- AutosuggestWrapper.prototype.findEnteredTextOption = function (options) {
158
- if (options === void 0) { options = { expandToViewport: false }; }
125
+ findEnteredTextOption(options = { expandToViewport: false }) {
159
126
  return this.findDropdown(options).findByClassName(styles_selectors_js_3.default['has-background']);
160
- };
127
+ }
161
128
  /**
162
129
  * Selects a suggestion from the dropdown by simulating mouse events.
163
130
  *
@@ -165,14 +132,12 @@ var AutosuggestWrapper = /** @class */ (function (_super) {
165
132
  * @param options
166
133
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
167
134
  */
168
- AutosuggestWrapper.prototype.selectSuggestion = function (index, options) {
169
- var _this = this;
170
- if (options === void 0) { options = { expandToViewport: false }; }
171
- (0, test_utils_1.act)(function () {
135
+ selectSuggestion(index, options = { expandToViewport: false }) {
136
+ (0, test_utils_1.act)(() => {
172
137
  var _a;
173
- (_a = _this.findDropdown(options)) === null || _a === void 0 ? void 0 : _a.findOption(index).fireEvent(new MouseEvent('mouseup', { bubbles: true }));
138
+ (_a = this.findDropdown(options)) === null || _a === void 0 ? void 0 : _a.findOption(index).fireEvent(new MouseEvent('mouseup', { bubbles: true }));
174
139
  });
175
- };
140
+ }
176
141
  /**
177
142
  * Selects a suggestion from the dropdown by simulating mouse events.
178
143
  *
@@ -180,22 +145,19 @@ var AutosuggestWrapper = /** @class */ (function (_super) {
180
145
  * @param options
181
146
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
182
147
  */
183
- AutosuggestWrapper.prototype.selectSuggestionByValue = function (value, options) {
184
- var _this = this;
185
- if (options === void 0) { options = { expandToViewport: false }; }
186
- (0, test_utils_1.act)(function () {
148
+ selectSuggestionByValue(value, options = { expandToViewport: false }) {
149
+ (0, test_utils_1.act)(() => {
187
150
  var _a;
188
- (_a = _this.findDropdown(options)) === null || _a === void 0 ? void 0 : _a.findOptionByValue(value).fireEvent(new MouseEvent('mouseup', { bubbles: true }));
151
+ (_a = this.findDropdown(options)) === null || _a === void 0 ? void 0 : _a.findOptionByValue(value).fireEvent(new MouseEvent('mouseup', { bubbles: true }));
189
152
  });
190
- };
191
- AutosuggestWrapper.rootSelector = styles_selectors_js_1.default.root;
192
- __decorate([
193
- dom_1.usesDom
194
- ], AutosuggestWrapper.prototype, "selectSuggestion", null);
195
- __decorate([
196
- dom_1.usesDom
197
- ], AutosuggestWrapper.prototype, "selectSuggestionByValue", null);
198
- return AutosuggestWrapper;
199
- }(input_1.default));
153
+ }
154
+ }
155
+ AutosuggestWrapper.rootSelector = styles_selectors_js_1.default.root;
156
+ __decorate([
157
+ dom_1.usesDom
158
+ ], AutosuggestWrapper.prototype, "selectSuggestion", null);
159
+ __decorate([
160
+ dom_1.usesDom
161
+ ], AutosuggestWrapper.prototype, "selectSuggestionByValue", null);
200
162
  exports.default = AutosuggestWrapper;
201
163
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/autosuggest/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,mDAA2C;AAC3C,8DAAkH;AAClH,kCAAoC;AAEpC,kEAA0E;AAC1E,6CAA+C;AAC/C,yDAA0D;AAC1D,iDAAmD;AACnD,gFAAkE;AAClE,wGAAoG;AACpG,wGAAgG;AAChG,wGAA4F;AAC5F,+FAAmF;AACnF,iGAAuF;AAEvF;IAAgD,8CAAgB;IAAhE;;IAoFA,CAAC;IAnFC,gDAAW,GAAX;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAI,6BAAgB,CAAC,iBAAiB,CAAC,sBAAmB,CAAC,CAAC,GAAG,CACjF,UAAC,cAA8B,IAAK,OAAA,IAAI,gBAAa,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,EAA9C,CAA8C,CACnF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,+CAAU,GAAV,UAAW,WAAmB;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AApED,CAAgD,eAAY,GAoE3D;kBApEoB,kBAAkB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/autosuggest/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,qDAA2C;AAC3C,gEAAkH;AAClH,oCAAoC;AAEpC,oEAA0E;AAC1E,+CAA+C;AAC/C,2DAA0D;AAC1D,mDAAmD;AACnD,kFAAkE;AAClE,0GAAoG;AACpG,0GAAgG;AAChG,0GAA4F;AAC5F,iGAAmF;AACnF,mGAAuF;AAEvF,MAAa,0BAA2B,SAAQ,sBAAgB;IAC9D,WAAW;QACT,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,6BAAgB,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,GAAG,CACjF,CAAC,cAA8B,EAAE,EAAE,CAAC,IAAI,gBAAa,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CACnF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,WAAmB;QAC5B,OAAO,IAAI,CAAC,aAAa,CACvB,IAAI,6BAAgB,CAAC,iBAAiB,CAAC,qBAAqB,WAAW,IAAI,EAC3E,gBAAa,CACd,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAAC,KAAa;QAC7B,MAAM,SAAS,GAAG,IAAA,sBAAc,EAAC,KAAK,CAAC,CAAC;QACxC,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,gBAAa,CAAC,YAAY,gBAAgB,SAAS,IAAI,EAAE,gBAAa,CAAC,CAAC;IACxG,CAAC;IAED;;;;;OAKG;IACH,iBAAiB,CAAC,UAAkB,EAAE,WAAmB;QACvD,OAAO,IAAI,CAAC,aAAa,CACvB,IAAI,6BAAgB,CAAC,iBAAiB,CAAC,sBAAsB,UAAU,2BAA2B,WAAW,IAAI,EACjH,gBAAa,CACd,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,oBAAoB;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AAE;;YACP,MAAA,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,0CACtB,iBAAiB,CAAC,KAAK,EACxB,SAAS,CAAC,IAAI,UAAU,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;IACL,CAAC;;AAlEM,+BAAY,GAAW,6BAAU,CAAC,IAAI,CAAC;AA4C9C;IADC,aAAO;0DAOP;AAUD;IADC,aAAO;iEAOP;AAnEH,qCAoEC"}
@@ -1,31 +1,11 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
19
4
  // SPDX-License-Identifier: Apache-2.0
20
- var dom_1 = require("@cloudscape-design/test-utils-core/dom");
21
- var styles_selectors_js_1 = require("../../../badge/styles.selectors.js");
22
- var BadgeWrapper = /** @class */ (function (_super) {
23
- __extends(BadgeWrapper, _super);
24
- function BadgeWrapper() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- BadgeWrapper.rootSelector = styles_selectors_js_1.default.badge;
28
- return BadgeWrapper;
29
- }(dom_1.ComponentWrapper));
5
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
6
+ const styles_selectors_js_1 = require("../../../badge/styles.selectors.js");
7
+ class BadgeWrapper extends dom_1.ComponentWrapper {
8
+ }
30
9
  exports.default = BadgeWrapper;
10
+ BadgeWrapper.rootSelector = styles_selectors_js_1.default.badge;
31
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/badge/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0E;AAC1E,0EAAwD;AAExD;IAA0C,gCAAiC;IAA3E;;IAEA,CAAC;IADQ,yBAAY,GAAW,6BAAM,CAAC,KAAK,CAAC;IAC7C,mBAAC;CAAA,AAFD,CAA0C,sBAAgB,GAEzD;kBAFoB,YAAY"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/badge/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0E;AAC1E,4EAAwD;AAExD,MAAqB,YAAa,SAAQ,sBAAiC;;AAA3E,+BAEC;AADQ,yBAAY,GAAW,6BAAM,CAAC,KAAK,CAAC"}
@@ -1,31 +1,11 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
19
4
  // SPDX-License-Identifier: Apache-2.0
20
- var mixed_line_bar_chart_1 = require("../mixed-line-bar-chart");
21
- var styles_selectors_js_1 = require("../../../bar-chart/styles.selectors.js");
22
- var BarChartWrapper = /** @class */ (function (_super) {
23
- __extends(BarChartWrapper, _super);
24
- function BarChartWrapper() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- BarChartWrapper.rootSelector = styles_selectors_js_1.default.root;
28
- return BarChartWrapper;
29
- }(mixed_line_bar_chart_1.default));
5
+ const mixed_line_bar_chart_1 = require("../mixed-line-bar-chart");
6
+ const styles_selectors_js_1 = require("../../../bar-chart/styles.selectors.js");
7
+ class BarChartWrapper extends mixed_line_bar_chart_1.default {
8
+ }
30
9
  exports.default = BarChartWrapper;
10
+ BarChartWrapper.rootSelector = styles_selectors_js_1.default.root;
31
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/bar-chart/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA+D;AAC/D,8EAA4D;AAE5D;IAA6C,mCAAwB;IAArE;;IAEA,CAAC;IADQ,4BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;IAC5C,sBAAC;CAAA,AAFD,CAA6C,8BAAwB,GAEpE;kBAFoB,eAAe"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/bar-chart/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,kEAA+D;AAC/D,gFAA4D;AAE5D,MAAqB,eAAgB,SAAQ,8BAAwB;;AAArE,kCAEC;AADQ,4BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
@@ -1,31 +1,11 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
19
4
  // SPDX-License-Identifier: Apache-2.0
20
- var dom_1 = require("@cloudscape-design/test-utils-core/dom");
21
- var styles_selectors_js_1 = require("../../../box/styles.selectors.js");
22
- var BoxWrapper = /** @class */ (function (_super) {
23
- __extends(BoxWrapper, _super);
24
- function BoxWrapper() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- BoxWrapper.rootSelector = styles_selectors_js_1.default.root;
28
- return BoxWrapper;
29
- }(dom_1.ComponentWrapper));
5
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
6
+ const styles_selectors_js_1 = require("../../../box/styles.selectors.js");
7
+ class BoxWrapper extends dom_1.ComponentWrapper {
8
+ }
30
9
  exports.default = BoxWrapper;
10
+ BoxWrapper.rootSelector = styles_selectors_js_1.default.root;
31
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/box/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0E;AAC1E,wEAAsD;AAEtD;IAAwC,8BAAiC;IAAzE;;IAEA,CAAC;IADQ,uBAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;IAC5C,iBAAC;CAAA,AAFD,CAAwC,sBAAgB,GAEvD;kBAFoB,UAAU"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/box/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0E;AAC1E,0EAAsD;AAEtD,MAAqB,UAAW,SAAQ,sBAAiC;;AAAzE,6BAEC;AADQ,uBAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
@@ -1,32 +1,13 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
19
4
  // SPDX-License-Identifier: Apache-2.0
20
- var dom_1 = require("@cloudscape-design/test-utils-core/dom");
21
- var button_dropdown_1 = require("../button-dropdown");
22
- var styles_selectors_js_1 = require("../../../breadcrumb-group/styles.selectors.js");
23
- var styles_selectors_js_2 = require("../../../breadcrumb-group/item/styles.selectors.js");
24
- var styles_selectors_js_3 = require("../../../button-dropdown/styles.selectors.js");
25
- var BreadcrumbGroupWrapper = /** @class */ (function (_super) {
26
- __extends(BreadcrumbGroupWrapper, _super);
27
- function BreadcrumbGroupWrapper() {
28
- return _super !== null && _super.apply(this, arguments) || this;
29
- }
5
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
6
+ const button_dropdown_1 = require("../button-dropdown");
7
+ const styles_selectors_js_1 = require("../../../breadcrumb-group/styles.selectors.js");
8
+ const styles_selectors_js_2 = require("../../../breadcrumb-group/item/styles.selectors.js");
9
+ const styles_selectors_js_3 = require("../../../button-dropdown/styles.selectors.js");
10
+ class BreadcrumbGroupWrapper extends dom_1.ComponentWrapper {
30
11
  /**
31
12
  * Returns all breadcrumb items. Note that this includes the 'current' page item for backwards compatibility,
32
13
  * even though it is not technically a link.
@@ -34,30 +15,29 @@ var BreadcrumbGroupWrapper = /** @class */ (function (_super) {
34
15
  * To find a specific item use the `findBreadcrumbLink(n)` function as chaining `findBreadcrumbLinks().get(n)` can return unexpected results.
35
16
  * @see findBreadcrumbLink
36
17
  */
37
- BreadcrumbGroupWrapper.prototype.findBreadcrumbLinks = function () {
38
- return this.findAll(".".concat(styles_selectors_js_2.default.breadcrumb, " .").concat(styles_selectors_js_2.default.anchor));
39
- };
18
+ findBreadcrumbLinks() {
19
+ return this.findAll(`.${styles_selectors_js_2.default.breadcrumb} .${styles_selectors_js_2.default.anchor}`);
20
+ }
40
21
  /**
41
22
  * Returns an item for a given index. Note that this may return the 'current' page item for backwards compatibility,
42
23
  * even though it is not technically a link.
43
24
  *
44
25
  * @param index 1-based item index
45
26
  */
46
- BreadcrumbGroupWrapper.prototype.findBreadcrumbLink = function (index) {
27
+ findBreadcrumbLink(index) {
47
28
  // We insert the breadcrumb-ellipsis as the second element so we have to filter it out.
48
29
  // Unfortunately, there is no efficient CSS selector for it in CSS Selectors-3 spec.
49
30
  // In the future we can use li:nth-child(n of .awsui-breadcrumb-item) when Selectors-4 spec is supported https://caniuse.com/#feat=css-nth-child-of
50
31
  if (index > 1) {
51
32
  index++;
52
33
  }
53
- return this.find(".".concat(styles_selectors_js_1.default.item, ":nth-child(").concat(index, ") .").concat(styles_selectors_js_2.default.anchor));
54
- };
55
- BreadcrumbGroupWrapper.prototype.findDropdown = function () {
56
- var buttonDropdown = this.find(".".concat(styles_selectors_js_3.default['button-dropdown']));
34
+ return this.find(`.${styles_selectors_js_1.default.item}:nth-child(${index}) .${styles_selectors_js_2.default.anchor}`);
35
+ }
36
+ findDropdown() {
37
+ const buttonDropdown = this.find(`.${styles_selectors_js_3.default['button-dropdown']}`);
57
38
  return buttonDropdown && new button_dropdown_1.default(buttonDropdown.getElement());
58
- };
59
- BreadcrumbGroupWrapper.rootSelector = styles_selectors_js_1.default['breadcrumb-group'];
60
- return BreadcrumbGroupWrapper;
61
- }(dom_1.ComponentWrapper));
39
+ }
40
+ }
62
41
  exports.default = BreadcrumbGroupWrapper;
42
+ BreadcrumbGroupWrapper.rootSelector = styles_selectors_js_1.default['breadcrumb-group'];
63
43
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/breadcrumb-group/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0F;AAC1F,sDAAuD;AACvD,qFAAmE;AACnE,0FAA4E;AAC5E,oFAAgF;AAEhF;IAAoD,0CAAgB;IAApE;;IAgCA,CAAC;IA9BC;;;;;;OAMG;IACH,oDAAmB,GAAnB;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAI,6BAAU,CAAC,UAAU,eAAK,6BAAU,CAAC,MAAM,CAAE,CAAC,CAAC;IACzE,CAAC;IACD;;;;;OAKG;IACH,mDAAkB,GAAlB,UAAmB,KAAa;QAC9B,uFAAuF;QACvF,oFAAoF;QACpF,mJAAmJ;QACnJ,IAAI,KAAK,GAAG,CAAC,EAAE;YACb,KAAK,EAAE,CAAC;SACT;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAM,CAAC,IAAI,wBAAc,KAAK,gBAAM,6BAAU,CAAC,MAAM,CAAE,CAAC,CAAC;IAChF,CAAC;IAED,6CAAY,GAAZ;QACE,IAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAoB,CAAC,iBAAiB,CAAC,CAAE,CAAC,CAAC;QAChF,OAAO,cAAc,IAAI,IAAI,yBAAqB,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC;IAClF,CAAC;IA9BM,mCAAY,GAAW,6BAAM,CAAC,kBAAkB,CAAC,CAAC;IA+B3D,6BAAC;CAAA,AAhCD,CAAoD,sBAAgB,GAgCnE;kBAhCoB,sBAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/breadcrumb-group/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,wDAAuD;AACvD,uFAAmE;AACnE,4FAA4E;AAC5E,sFAAgF;AAEhF,MAAqB,sBAAuB,SAAQ,sBAAgB;IAElE;;;;;;OAMG;IACH,mBAAmB;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,6BAAU,CAAC,UAAU,KAAK,6BAAU,CAAC,MAAM,EAAE,CAAC,CAAC;IACzE,CAAC;IACD;;;;;OAKG;IACH,kBAAkB,CAAC,KAAa;QAC9B,uFAAuF;QACvF,oFAAoF;QACpF,mJAAmJ;QACnJ,IAAI,KAAK,GAAG,CAAC,EAAE;YACb,KAAK,EAAE,CAAC;SACT;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,IAAI,cAAc,KAAK,MAAM,6BAAU,CAAC,MAAM,EAAE,CAAC,CAAC;IAChF,CAAC;IAED,YAAY;QACV,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAoB,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;QAChF,OAAO,cAAc,IAAI,IAAI,yBAAqB,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC;IAClF,CAAC;;AA/BH,yCAgCC;AA/BQ,mCAAY,GAAW,6BAAM,CAAC,kBAAkB,CAAC,CAAC"}
@@ -1,19 +1,4 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -23,33 +8,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
23
8
  Object.defineProperty(exports, "__esModule", { value: true });
24
9
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
25
10
  // SPDX-License-Identifier: Apache-2.0
26
- var dom_1 = require("@cloudscape-design/test-utils-core/dom");
27
- var styles_selectors_js_1 = require("../../../button/styles.selectors.js");
28
- var styles_selectors_js_2 = require("../../../spinner/styles.selectors.js");
29
- var ButtonWrapper = /** @class */ (function (_super) {
30
- __extends(ButtonWrapper, _super);
31
- function ButtonWrapper() {
32
- return _super !== null && _super.apply(this, arguments) || this;
11
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
12
+ const styles_selectors_js_1 = require("../../../button/styles.selectors.js");
13
+ const styles_selectors_js_2 = require("../../../spinner/styles.selectors.js");
14
+ class ButtonWrapper extends dom_1.ComponentWrapper {
15
+ findLoadingIndicator() {
16
+ return this.find(`.${styles_selectors_js_1.default['icon-left']}.${styles_selectors_js_2.default.root}`);
33
17
  }
34
- ButtonWrapper.prototype.findLoadingIndicator = function () {
35
- return this.find(".".concat(styles_selectors_js_1.default['icon-left'], ".").concat(styles_selectors_js_2.default.root));
36
- };
37
- ButtonWrapper.prototype.findTextRegion = function () {
38
- return this.find(".".concat(styles_selectors_js_1.default.content));
39
- };
40
- ButtonWrapper.prototype.isDisabled = function () {
18
+ findTextRegion() {
19
+ return this.find(`.${styles_selectors_js_1.default.content}`);
20
+ }
21
+ isDisabled() {
41
22
  if (this.element.tagName === 'A') {
42
23
  return this.element.getAttribute('aria-disabled') === 'true';
43
24
  }
44
25
  else {
45
26
  return this.element.disabled;
46
27
  }
47
- };
48
- ButtonWrapper.rootSelector = styles_selectors_js_1.default.button;
49
- __decorate([
50
- dom_1.usesDom
51
- ], ButtonWrapper.prototype, "isDisabled", null);
52
- return ButtonWrapper;
53
- }(dom_1.ComponentWrapper));
28
+ }
29
+ }
30
+ ButtonWrapper.rootSelector = styles_selectors_js_1.default.button;
31
+ __decorate([
32
+ dom_1.usesDom
33
+ ], ButtonWrapper.prototype, "isDisabled", null);
54
34
  exports.default = ButtonWrapper;
55
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/button/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAAmG;AACnG,2EAAyD;AACzD,4EAAiE;AAEjE;IAA2C,iCAAmC;IAA9E;;IAmBA,CAAC;IAhBC,4CAAoB,GAApB;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAM,CAAC,WAAW,CAAC,cAAI,6BAAa,CAAC,IAAI,CAAE,CAAC,CAAC;IACpE,CAAC;IAED,sCAAc,GAAd;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAM,CAAC,OAAO,CAAE,CAAC,CAAC;IACzC,CAAC;IAGD,kCAAU,GAAV;QACE,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,KAAK,GAAG,EAAE;YAChC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,MAA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