@cloudscape-design/components 3.0.215 → 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 (352) hide show
  1. package/internal/components/option/highlight-match.js +3 -3
  2. package/internal/components/option/highlight-match.js.map +1 -1
  3. package/internal/environment.js +1 -1
  4. package/internal/manifest.json +1 -1
  5. package/package.json +1 -1
  6. package/select/parts/item.js +1 -1
  7. package/select/parts/item.js.map +1 -1
  8. package/test-utils/dom/alert/index.js +20 -40
  9. package/test-utils/dom/alert/index.js.map +1 -1
  10. package/test-utils/dom/annotation/index.js +24 -44
  11. package/test-utils/dom/annotation/index.js.map +1 -1
  12. package/test-utils/dom/app-layout/index.js +27 -47
  13. package/test-utils/dom/app-layout/index.js.map +1 -1
  14. package/test-utils/dom/area-chart/index.js +12 -32
  15. package/test-utils/dom/area-chart/index.js.map +1 -1
  16. package/test-utils/dom/attribute-editor/index.js +32 -57
  17. package/test-utils/dom/attribute-editor/index.js.map +1 -1
  18. package/test-utils/dom/autosuggest/index.js +76 -114
  19. package/test-utils/dom/autosuggest/index.js.map +1 -1
  20. package/test-utils/dom/badge/index.js +5 -25
  21. package/test-utils/dom/badge/index.js.map +1 -1
  22. package/test-utils/dom/bar-chart/index.js +5 -25
  23. package/test-utils/dom/bar-chart/index.js.map +1 -1
  24. package/test-utils/dom/box/index.js +5 -25
  25. package/test-utils/dom/box/index.js.map +1 -1
  26. package/test-utils/dom/breadcrumb-group/index.js +17 -37
  27. package/test-utils/dom/breadcrumb-group/index.js.map +1 -1
  28. package/test-utils/dom/button/index.js +16 -36
  29. package/test-utils/dom/button/index.js.map +1 -1
  30. package/test-utils/dom/button-dropdown/index.js +38 -59
  31. package/test-utils/dom/button-dropdown/index.js.map +1 -1
  32. package/test-utils/dom/calendar/index.js +20 -40
  33. package/test-utils/dom/calendar/index.js.map +1 -1
  34. package/test-utils/dom/cards/index.js +55 -83
  35. package/test-utils/dom/cards/index.js.map +1 -1
  36. package/test-utils/dom/checkbox/index.js +14 -34
  37. package/test-utils/dom/checkbox/index.js.map +1 -1
  38. package/test-utils/dom/code-editor/index.js +33 -53
  39. package/test-utils/dom/code-editor/index.js.map +1 -1
  40. package/test-utils/dom/collection-preferences/index.js +40 -65
  41. package/test-utils/dom/collection-preferences/index.js.map +1 -1
  42. package/test-utils/dom/collection-preferences/page-size-preference.js +12 -32
  43. package/test-utils/dom/collection-preferences/page-size-preference.js.map +1 -1
  44. package/test-utils/dom/collection-preferences/visible-content-preference.js +18 -38
  45. package/test-utils/dom/collection-preferences/visible-content-preference.js.map +1 -1
  46. package/test-utils/dom/column-layout/index.js +5 -25
  47. package/test-utils/dom/column-layout/index.js.map +1 -1
  48. package/test-utils/dom/container/index.js +11 -31
  49. package/test-utils/dom/container/index.js.map +1 -1
  50. package/test-utils/dom/content-layout/index.js +9 -29
  51. package/test-utils/dom/content-layout/index.js.map +1 -1
  52. package/test-utils/dom/date-input/index.js +5 -25
  53. package/test-utils/dom/date-input/index.js.map +1 -1
  54. package/test-utils/dom/date-picker/index.js +26 -47
  55. package/test-utils/dom/date-picker/index.js.map +1 -1
  56. package/test-utils/dom/date-range-picker/index.js +87 -119
  57. package/test-utils/dom/date-range-picker/index.js.map +1 -1
  58. package/test-utils/dom/expandable-section/index.js +15 -35
  59. package/test-utils/dom/expandable-section/index.js.map +1 -1
  60. package/test-utils/dom/flashbar/flash.js +18 -38
  61. package/test-utils/dom/flashbar/flash.js.map +1 -1
  62. package/test-utils/dom/flashbar/index.js +9 -29
  63. package/test-utils/dom/flashbar/index.js.map +1 -1
  64. package/test-utils/dom/form/index.js +15 -35
  65. package/test-utils/dom/form/index.js.map +1 -1
  66. package/test-utils/dom/form-field/index.js +21 -41
  67. package/test-utils/dom/form-field/index.js.map +1 -1
  68. package/test-utils/dom/grid/index.js +8 -28
  69. package/test-utils/dom/grid/index.js.map +1 -1
  70. package/test-utils/dom/header/index.js +15 -35
  71. package/test-utils/dom/header/index.js.map +1 -1
  72. package/test-utils/dom/help-panel/index.js +11 -31
  73. package/test-utils/dom/help-panel/index.js.map +1 -1
  74. package/test-utils/dom/hotspot/index.js +12 -32
  75. package/test-utils/dom/hotspot/index.js.map +1 -1
  76. package/test-utils/dom/icon/index.js +5 -25
  77. package/test-utils/dom/icon/index.js.map +1 -1
  78. package/test-utils/dom/index.js +133 -134
  79. package/test-utils/dom/index.js.map +1 -1
  80. package/test-utils/dom/input/base-input.js +35 -57
  81. package/test-utils/dom/input/base-input.js.map +1 -1
  82. package/test-utils/dom/input/index.js +7 -27
  83. package/test-utils/dom/input/index.js.map +1 -1
  84. package/test-utils/dom/internal/abstract-switch.js +12 -32
  85. package/test-utils/dom/internal/abstract-switch.js.map +1 -1
  86. package/test-utils/dom/internal/autosuggest-input.js +14 -34
  87. package/test-utils/dom/internal/autosuggest-input.js.map +1 -1
  88. package/test-utils/dom/internal/chart-filter.js +11 -31
  89. package/test-utils/dom/internal/chart-filter.js.map +1 -1
  90. package/test-utils/dom/internal/chart-legend.js +13 -33
  91. package/test-utils/dom/internal/chart-legend.js.map +1 -1
  92. package/test-utils/dom/internal/chart-popover.js +14 -34
  93. package/test-utils/dom/internal/chart-popover.js.map +1 -1
  94. package/test-utils/dom/internal/charts.js +20 -40
  95. package/test-utils/dom/internal/charts.js.map +1 -1
  96. package/test-utils/dom/internal/dropdown-host.js +89 -125
  97. package/test-utils/dom/internal/dropdown-host.js.map +1 -1
  98. package/test-utils/dom/internal/dropdown.js +7 -27
  99. package/test-utils/dom/internal/dropdown.js.map +1 -1
  100. package/test-utils/dom/internal/filtering-token.js +13 -33
  101. package/test-utils/dom/internal/filtering-token.js.map +1 -1
  102. package/test-utils/dom/internal/option.js +13 -33
  103. package/test-utils/dom/internal/option.js.map +1 -1
  104. package/test-utils/dom/internal/options-list.js +5 -25
  105. package/test-utils/dom/internal/options-list.js.map +1 -1
  106. package/test-utils/dom/line-chart/index.js +5 -25
  107. package/test-utils/dom/line-chart/index.js.map +1 -1
  108. package/test-utils/dom/link/index.js +5 -25
  109. package/test-utils/dom/link/index.js.map +1 -1
  110. package/test-utils/dom/mixed-line-bar-chart/index.js +29 -54
  111. package/test-utils/dom/mixed-line-bar-chart/index.js.map +1 -1
  112. package/test-utils/dom/modal/index.js +18 -38
  113. package/test-utils/dom/modal/index.js.map +1 -1
  114. package/test-utils/dom/multiselect/index.js +38 -61
  115. package/test-utils/dom/multiselect/index.js.map +1 -1
  116. package/test-utils/dom/pagination/index.js +19 -39
  117. package/test-utils/dom/pagination/index.js.map +1 -1
  118. package/test-utils/dom/pie-chart/index.js +22 -42
  119. package/test-utils/dom/pie-chart/index.js.map +1 -1
  120. package/test-utils/dom/popover/index.js +16 -39
  121. package/test-utils/dom/popover/index.js.map +1 -1
  122. package/test-utils/dom/progress-bar/index.js +13 -33
  123. package/test-utils/dom/progress-bar/index.js.map +1 -1
  124. package/test-utils/dom/property-filter/index.js +15 -35
  125. package/test-utils/dom/property-filter/index.js.map +1 -1
  126. package/test-utils/dom/radio-group/index.js +13 -33
  127. package/test-utils/dom/radio-group/index.js.map +1 -1
  128. package/test-utils/dom/radio-group/radio-button.js +12 -32
  129. package/test-utils/dom/radio-group/radio-button.js.map +1 -1
  130. package/test-utils/dom/s3-resource-selector/index.js +40 -70
  131. package/test-utils/dom/s3-resource-selector/index.js.map +1 -1
  132. package/test-utils/dom/segmented-control/index.js +9 -29
  133. package/test-utils/dom/segmented-control/index.js.map +1 -1
  134. package/test-utils/dom/select/index.js +28 -51
  135. package/test-utils/dom/select/index.js.map +1 -1
  136. package/test-utils/dom/side-navigation/index.js +41 -66
  137. package/test-utils/dom/side-navigation/index.js.map +1 -1
  138. package/test-utils/dom/space-between/index.js +5 -25
  139. package/test-utils/dom/space-between/index.js.map +1 -1
  140. package/test-utils/dom/spinner/index.js +5 -25
  141. package/test-utils/dom/spinner/index.js.map +1 -1
  142. package/test-utils/dom/split-panel/index.js +25 -45
  143. package/test-utils/dom/split-panel/index.js.map +1 -1
  144. package/test-utils/dom/status-indicator/index.js +5 -25
  145. package/test-utils/dom/status-indicator/index.js.map +1 -1
  146. package/test-utils/dom/table/index.js +76 -94
  147. package/test-utils/dom/table/index.js.map +1 -1
  148. package/test-utils/dom/tabs/index.js +19 -39
  149. package/test-utils/dom/tabs/index.js.map +1 -1
  150. package/test-utils/dom/tag-editor/index.js +19 -44
  151. package/test-utils/dom/tag-editor/index.js.map +1 -1
  152. package/test-utils/dom/text-content/index.js +5 -25
  153. package/test-utils/dom/text-content/index.js.map +1 -1
  154. package/test-utils/dom/text-filter/index.js +10 -30
  155. package/test-utils/dom/text-filter/index.js.map +1 -1
  156. package/test-utils/dom/textarea/index.js +16 -36
  157. package/test-utils/dom/textarea/index.js.map +1 -1
  158. package/test-utils/dom/tiles/index.js +17 -37
  159. package/test-utils/dom/tiles/index.js.map +1 -1
  160. package/test-utils/dom/tiles/tile.js +16 -36
  161. package/test-utils/dom/tiles/tile.js.map +1 -1
  162. package/test-utils/dom/time-input/index.js +5 -25
  163. package/test-utils/dom/time-input/index.js.map +1 -1
  164. package/test-utils/dom/toggle/index.js +14 -34
  165. package/test-utils/dom/toggle/index.js.map +1 -1
  166. package/test-utils/dom/token-group/index.js +14 -34
  167. package/test-utils/dom/token-group/index.js.map +1 -1
  168. package/test-utils/dom/token-group/token.js +12 -32
  169. package/test-utils/dom/token-group/token.js.map +1 -1
  170. package/test-utils/dom/top-navigation/1.0-beta/index.js +56 -91
  171. package/test-utils/dom/top-navigation/1.0-beta/index.js.map +1 -1
  172. package/test-utils/dom/top-navigation/index.js +73 -108
  173. package/test-utils/dom/top-navigation/index.js.map +1 -1
  174. package/test-utils/dom/tutorial-panel/index.js +38 -63
  175. package/test-utils/dom/tutorial-panel/index.js.map +1 -1
  176. package/test-utils/dom/tutorial-panel/tutorial.js +29 -49
  177. package/test-utils/dom/tutorial-panel/tutorial.js.map +1 -1
  178. package/test-utils/dom/wizard/index.js +33 -53
  179. package/test-utils/dom/wizard/index.js.map +1 -1
  180. package/test-utils/selectors/alert/index.js +20 -40
  181. package/test-utils/selectors/alert/index.js.map +1 -1
  182. package/test-utils/selectors/annotation/index.js +24 -44
  183. package/test-utils/selectors/annotation/index.js.map +1 -1
  184. package/test-utils/selectors/app-layout/index.js +27 -47
  185. package/test-utils/selectors/app-layout/index.js.map +1 -1
  186. package/test-utils/selectors/area-chart/index.js +12 -32
  187. package/test-utils/selectors/area-chart/index.js.map +1 -1
  188. package/test-utils/selectors/attribute-editor/index.js +32 -57
  189. package/test-utils/selectors/attribute-editor/index.js.map +1 -1
  190. package/test-utils/selectors/autosuggest/index.js +69 -103
  191. package/test-utils/selectors/autosuggest/index.js.map +1 -1
  192. package/test-utils/selectors/badge/index.js +5 -25
  193. package/test-utils/selectors/badge/index.js.map +1 -1
  194. package/test-utils/selectors/bar-chart/index.js +5 -25
  195. package/test-utils/selectors/bar-chart/index.js.map +1 -1
  196. package/test-utils/selectors/box/index.js +5 -25
  197. package/test-utils/selectors/box/index.js.map +1 -1
  198. package/test-utils/selectors/breadcrumb-group/index.js +17 -37
  199. package/test-utils/selectors/breadcrumb-group/index.js.map +1 -1
  200. package/test-utils/selectors/button/index.js +11 -31
  201. package/test-utils/selectors/button/index.js.map +1 -1
  202. package/test-utils/selectors/button-dropdown/index.js +30 -50
  203. package/test-utils/selectors/button-dropdown/index.js.map +1 -1
  204. package/test-utils/selectors/calendar/index.js +20 -40
  205. package/test-utils/selectors/calendar/index.js.map +1 -1
  206. package/test-utils/selectors/cards/index.js +55 -83
  207. package/test-utils/selectors/cards/index.js.map +1 -1
  208. package/test-utils/selectors/checkbox/index.js +14 -34
  209. package/test-utils/selectors/checkbox/index.js.map +1 -1
  210. package/test-utils/selectors/code-editor/index.js +25 -45
  211. package/test-utils/selectors/code-editor/index.js.map +1 -1
  212. package/test-utils/selectors/collection-preferences/index.js +40 -65
  213. package/test-utils/selectors/collection-preferences/index.js.map +1 -1
  214. package/test-utils/selectors/collection-preferences/page-size-preference.js +12 -32
  215. package/test-utils/selectors/collection-preferences/page-size-preference.js.map +1 -1
  216. package/test-utils/selectors/collection-preferences/visible-content-preference.js +18 -38
  217. package/test-utils/selectors/collection-preferences/visible-content-preference.js.map +1 -1
  218. package/test-utils/selectors/column-layout/index.js +5 -25
  219. package/test-utils/selectors/column-layout/index.js.map +1 -1
  220. package/test-utils/selectors/container/index.js +11 -31
  221. package/test-utils/selectors/container/index.js.map +1 -1
  222. package/test-utils/selectors/content-layout/index.js +9 -29
  223. package/test-utils/selectors/content-layout/index.js.map +1 -1
  224. package/test-utils/selectors/date-input/index.js +5 -25
  225. package/test-utils/selectors/date-input/index.js.map +1 -1
  226. package/test-utils/selectors/date-picker/index.js +22 -43
  227. package/test-utils/selectors/date-picker/index.js.map +1 -1
  228. package/test-utils/selectors/date-range-picker/index.js +81 -112
  229. package/test-utils/selectors/date-range-picker/index.js.map +1 -1
  230. package/test-utils/selectors/expandable-section/index.js +15 -35
  231. package/test-utils/selectors/expandable-section/index.js.map +1 -1
  232. package/test-utils/selectors/flashbar/flash.js +18 -38
  233. package/test-utils/selectors/flashbar/flash.js.map +1 -1
  234. package/test-utils/selectors/flashbar/index.js +9 -29
  235. package/test-utils/selectors/flashbar/index.js.map +1 -1
  236. package/test-utils/selectors/form/index.js +15 -35
  237. package/test-utils/selectors/form/index.js.map +1 -1
  238. package/test-utils/selectors/form-field/index.js +21 -41
  239. package/test-utils/selectors/form-field/index.js.map +1 -1
  240. package/test-utils/selectors/grid/index.js +8 -28
  241. package/test-utils/selectors/grid/index.js.map +1 -1
  242. package/test-utils/selectors/header/index.js +15 -35
  243. package/test-utils/selectors/header/index.js.map +1 -1
  244. package/test-utils/selectors/help-panel/index.js +11 -31
  245. package/test-utils/selectors/help-panel/index.js.map +1 -1
  246. package/test-utils/selectors/hotspot/index.js +12 -32
  247. package/test-utils/selectors/hotspot/index.js.map +1 -1
  248. package/test-utils/selectors/icon/index.js +5 -25
  249. package/test-utils/selectors/icon/index.js.map +1 -1
  250. package/test-utils/selectors/index.js +133 -134
  251. package/test-utils/selectors/index.js.map +1 -1
  252. package/test-utils/selectors/input/base-input.js +7 -27
  253. package/test-utils/selectors/input/base-input.js.map +1 -1
  254. package/test-utils/selectors/input/index.js +7 -27
  255. package/test-utils/selectors/input/index.js.map +1 -1
  256. package/test-utils/selectors/internal/abstract-switch.js +12 -32
  257. package/test-utils/selectors/internal/abstract-switch.js.map +1 -1
  258. package/test-utils/selectors/internal/autosuggest-input.js +14 -34
  259. package/test-utils/selectors/internal/autosuggest-input.js.map +1 -1
  260. package/test-utils/selectors/internal/chart-filter.js +11 -31
  261. package/test-utils/selectors/internal/chart-filter.js.map +1 -1
  262. package/test-utils/selectors/internal/chart-legend.js +13 -33
  263. package/test-utils/selectors/internal/chart-legend.js.map +1 -1
  264. package/test-utils/selectors/internal/chart-popover.js +14 -34
  265. package/test-utils/selectors/internal/chart-popover.js.map +1 -1
  266. package/test-utils/selectors/internal/charts.js +20 -40
  267. package/test-utils/selectors/internal/charts.js.map +1 -1
  268. package/test-utils/selectors/internal/dropdown-host.js +59 -91
  269. package/test-utils/selectors/internal/dropdown-host.js.map +1 -1
  270. package/test-utils/selectors/internal/dropdown.js +7 -27
  271. package/test-utils/selectors/internal/dropdown.js.map +1 -1
  272. package/test-utils/selectors/internal/filtering-token.js +13 -33
  273. package/test-utils/selectors/internal/filtering-token.js.map +1 -1
  274. package/test-utils/selectors/internal/option.js +13 -33
  275. package/test-utils/selectors/internal/option.js.map +1 -1
  276. package/test-utils/selectors/internal/options-list.js +5 -25
  277. package/test-utils/selectors/internal/options-list.js.map +1 -1
  278. package/test-utils/selectors/line-chart/index.js +5 -25
  279. package/test-utils/selectors/line-chart/index.js.map +1 -1
  280. package/test-utils/selectors/link/index.js +5 -25
  281. package/test-utils/selectors/link/index.js.map +1 -1
  282. package/test-utils/selectors/mixed-line-bar-chart/index.js +29 -54
  283. package/test-utils/selectors/mixed-line-bar-chart/index.js.map +1 -1
  284. package/test-utils/selectors/modal/index.js +13 -33
  285. package/test-utils/selectors/modal/index.js.map +1 -1
  286. package/test-utils/selectors/multiselect/index.js +38 -61
  287. package/test-utils/selectors/multiselect/index.js.map +1 -1
  288. package/test-utils/selectors/pagination/index.js +19 -39
  289. package/test-utils/selectors/pagination/index.js.map +1 -1
  290. package/test-utils/selectors/pie-chart/index.js +22 -42
  291. package/test-utils/selectors/pie-chart/index.js.map +1 -1
  292. package/test-utils/selectors/popover/index.js +22 -45
  293. package/test-utils/selectors/popover/index.js.map +1 -1
  294. package/test-utils/selectors/progress-bar/index.js +13 -33
  295. package/test-utils/selectors/progress-bar/index.js.map +1 -1
  296. package/test-utils/selectors/property-filter/index.js +15 -35
  297. package/test-utils/selectors/property-filter/index.js.map +1 -1
  298. package/test-utils/selectors/radio-group/index.js +13 -33
  299. package/test-utils/selectors/radio-group/index.js.map +1 -1
  300. package/test-utils/selectors/radio-group/radio-button.js +12 -32
  301. package/test-utils/selectors/radio-group/radio-button.js.map +1 -1
  302. package/test-utils/selectors/s3-resource-selector/index.js +40 -70
  303. package/test-utils/selectors/s3-resource-selector/index.js.map +1 -1
  304. package/test-utils/selectors/segmented-control/index.js +9 -29
  305. package/test-utils/selectors/segmented-control/index.js.map +1 -1
  306. package/test-utils/selectors/select/index.js +28 -51
  307. package/test-utils/selectors/select/index.js.map +1 -1
  308. package/test-utils/selectors/side-navigation/index.js +41 -66
  309. package/test-utils/selectors/side-navigation/index.js.map +1 -1
  310. package/test-utils/selectors/space-between/index.js +5 -25
  311. package/test-utils/selectors/space-between/index.js.map +1 -1
  312. package/test-utils/selectors/spinner/index.js +5 -25
  313. package/test-utils/selectors/spinner/index.js.map +1 -1
  314. package/test-utils/selectors/split-panel/index.js +25 -45
  315. package/test-utils/selectors/split-panel/index.js.map +1 -1
  316. package/test-utils/selectors/status-indicator/index.js +5 -25
  317. package/test-utils/selectors/status-indicator/index.js.map +1 -1
  318. package/test-utils/selectors/table/index.js +76 -94
  319. package/test-utils/selectors/table/index.js.map +1 -1
  320. package/test-utils/selectors/tabs/index.js +19 -39
  321. package/test-utils/selectors/tabs/index.js.map +1 -1
  322. package/test-utils/selectors/tag-editor/index.js +19 -44
  323. package/test-utils/selectors/tag-editor/index.js.map +1 -1
  324. package/test-utils/selectors/text-content/index.js +5 -25
  325. package/test-utils/selectors/text-content/index.js.map +1 -1
  326. package/test-utils/selectors/text-filter/index.js +10 -30
  327. package/test-utils/selectors/text-filter/index.js.map +1 -1
  328. package/test-utils/selectors/textarea/index.js +7 -27
  329. package/test-utils/selectors/textarea/index.js.map +1 -1
  330. package/test-utils/selectors/tiles/index.js +17 -37
  331. package/test-utils/selectors/tiles/index.js.map +1 -1
  332. package/test-utils/selectors/tiles/tile.js +16 -36
  333. package/test-utils/selectors/tiles/tile.js.map +1 -1
  334. package/test-utils/selectors/time-input/index.js +5 -25
  335. package/test-utils/selectors/time-input/index.js.map +1 -1
  336. package/test-utils/selectors/toggle/index.js +14 -34
  337. package/test-utils/selectors/toggle/index.js.map +1 -1
  338. package/test-utils/selectors/token-group/index.js +14 -34
  339. package/test-utils/selectors/token-group/index.js.map +1 -1
  340. package/test-utils/selectors/token-group/token.js +12 -32
  341. package/test-utils/selectors/token-group/token.js.map +1 -1
  342. package/test-utils/selectors/top-navigation/1.0-beta/index.js +56 -91
  343. package/test-utils/selectors/top-navigation/1.0-beta/index.js.map +1 -1
  344. package/test-utils/selectors/top-navigation/index.js +73 -108
  345. package/test-utils/selectors/top-navigation/index.js.map +1 -1
  346. package/test-utils/selectors/tutorial-panel/index.js +38 -63
  347. package/test-utils/selectors/tutorial-panel/index.js.map +1 -1
  348. package/test-utils/selectors/tutorial-panel/tutorial.js +29 -49
  349. package/test-utils/selectors/tutorial-panel/tutorial.js.map +1 -1
  350. package/test-utils/selectors/wizard/index.js +33 -53
  351. package/test-utils/selectors/wizard/index.js.map +1 -1
  352. package/test-utils/tsconfig.tsbuildinfo +1 -1
@@ -1,79 +1,54 @@
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
  exports.BaseCartesianChartWrapper = void 0;
19
- var charts_1 = require("../internal/charts");
20
- var styles_selectors_js_1 = require("../../../mixed-line-bar-chart/styles.selectors.js");
21
- var styles_selectors_js_2 = require("../../../internal/components/chart-plot/styles.selectors.js");
22
- var styles_selectors_js_3 = require("../../../internal/components/cartesian-chart/styles.selectors.js");
23
- var BaseCartesianChartWrapper = /** @class */ (function (_super) {
24
- __extends(BaseCartesianChartWrapper, _super);
25
- function BaseCartesianChartWrapper() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- BaseCartesianChartWrapper.prototype.findFilterContainer = function () {
4
+ const charts_1 = require("../internal/charts");
5
+ const styles_selectors_js_1 = require("../../../mixed-line-bar-chart/styles.selectors.js");
6
+ const styles_selectors_js_2 = require("../../../internal/components/chart-plot/styles.selectors.js");
7
+ const styles_selectors_js_3 = require("../../../internal/components/cartesian-chart/styles.selectors.js");
8
+ class BaseCartesianChartWrapper extends charts_1.default {
9
+ findFilterContainer() {
29
10
  return this.findByClassName(styles_selectors_js_3.default['filter-container']);
30
- };
31
- BaseCartesianChartWrapper.prototype.findChart = function () {
11
+ }
12
+ findChart() {
32
13
  return this.findByClassName(styles_selectors_js_2.default.root);
33
- };
14
+ }
34
15
  /**
35
16
  * Returns a focusable element that controls keyboard interactions.
36
17
  */
37
- BaseCartesianChartWrapper.prototype.findApplication = function () {
18
+ findApplication() {
38
19
  return this.findByClassName(styles_selectors_js_2.default.application);
39
- };
20
+ }
40
21
  /**
41
22
  * Returns an array of chart series. Note that thresholds count as series as well.
42
23
  */
43
- BaseCartesianChartWrapper.prototype.findSeries = function () {
24
+ findSeries() {
44
25
  return this.findAllByClassName(styles_selectors_js_1.default.series);
45
- };
46
- BaseCartesianChartWrapper.prototype.findHighlightedSeries = function () {
26
+ }
27
+ findHighlightedSeries() {
47
28
  return this.findByClassName(styles_selectors_js_1.default['series--highlighted']);
48
- };
49
- BaseCartesianChartWrapper.prototype.findXAxisTitle = function () {
29
+ }
30
+ findXAxisTitle() {
50
31
  return this.findByClassName(styles_selectors_js_3.default['axis-label--x']);
51
- };
52
- BaseCartesianChartWrapper.prototype.findYAxisTitle = function () {
32
+ }
33
+ findYAxisTitle() {
53
34
  return this.findByClassName(styles_selectors_js_3.default['axis-label--y']);
54
- };
55
- BaseCartesianChartWrapper.prototype.findXTicks = function () {
35
+ }
36
+ findXTicks() {
56
37
  return this.findAllByClassName(styles_selectors_js_3.default['ticks--x']);
57
- };
58
- BaseCartesianChartWrapper.prototype.findYTicks = function () {
38
+ }
39
+ findYTicks() {
59
40
  return this.findAllByClassName(styles_selectors_js_3.default['ticks--y']);
60
- };
61
- return BaseCartesianChartWrapper;
62
- }(charts_1.default));
63
- exports.BaseCartesianChartWrapper = BaseCartesianChartWrapper;
64
- var MixedLineBarChartWrapper = /** @class */ (function (_super) {
65
- __extends(MixedLineBarChartWrapper, _super);
66
- function MixedLineBarChartWrapper() {
67
- return _super !== null && _super.apply(this, arguments) || this;
68
41
  }
42
+ }
43
+ exports.BaseCartesianChartWrapper = BaseCartesianChartWrapper;
44
+ class MixedLineBarChartWrapper extends BaseCartesianChartWrapper {
69
45
  /**
70
46
  * Returns an array of bar groups, which are used for mouse navigation if a chart contains bar series.
71
47
  */
72
- MixedLineBarChartWrapper.prototype.findBarGroups = function () {
48
+ findBarGroups() {
73
49
  return this.findAllByClassName(styles_selectors_js_1.default['bar-group']);
74
- };
75
- MixedLineBarChartWrapper.rootSelector = styles_selectors_js_1.default.root;
76
- return MixedLineBarChartWrapper;
77
- }(BaseCartesianChartWrapper));
50
+ }
51
+ }
78
52
  exports.default = MixedLineBarChartWrapper;
53
+ MixedLineBarChartWrapper.rootSelector = styles_selectors_js_1.default.root;
79
54
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/mixed-line-bar-chart/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAGA,6CAA8C;AAC9C,yFAAuE;AACvE,mGAA0F;AAC1F,wGAA+F;AAC/F;IAA+C,6CAAY;IAA3D;;IAoCA,CAAC;IAnCC,uDAAmB,GAAnB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACnE,CAAC;IACD,6CAAS,GAAT;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,mDAAe,GAAf;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,WAAW,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,8CAAU,GAAV;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;IACD,yDAAqB,GAArB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC7D,CAAC;IACD,kDAAc,GAAd;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,eAAe,CAAC,CAAC,CAAC;IAChE,CAAC;IACD,kDAAc,GAAd;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,eAAe,CAAC,CAAC,CAAC;IAChE,CAAC;IACD,8CAAU,GAAV;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAe,CAAC,UAAU,CAAC,CAAC,CAAC;IAC9D,CAAC;IACD,8CAAU,GAAV;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAe,CAAC,UAAU,CAAC,CAAC,CAAC;IAC9D,CAAC;IACH,gCAAC;AAAD,CAAC,AApCD,CAA+C,gBAAY,GAoC1D;AApCY,8DAAyB;AAqCtC;IAAsD,4CAAyB;IAA/E;;IASA,CAAC;IANC;;OAEG;IACH,gDAAa,GAAb;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IACtD,CAAC;IAPM,qCAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;IAQ5C,+BAAC;CAAA,AATD,CAAsD,yBAAyB,GAS9E;kBAToB,wBAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/mixed-line-bar-chart/index.ts"],"names":[],"mappings":";;;AAGA,+CAA8C;AAC9C,2FAAuE;AACvE,qGAA0F;AAC1F,0GAA+F;AAC/F,MAAa,yBAA0B,SAAQ,gBAAY;IACzD,mBAAmB;QACjB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACnE,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,WAAW,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;IACD,qBAAqB;QACnB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC7D,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,eAAe,CAAC,CAAC,CAAC;IAChE,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,eAAe,CAAC,CAAC,CAAC;IAChE,CAAC;IACD,UAAU;QACR,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAe,CAAC,UAAU,CAAC,CAAC,CAAC;IAC9D,CAAC;IACD,UAAU;QACR,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAe,CAAC,UAAU,CAAC,CAAC,CAAC;IAC9D,CAAC;CACF;AApCD,8DAoCC;AACD,MAAqB,wBAAyB,SAAQ,yBAAyB;IAG7E;;OAEG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IACtD,CAAC;;AARH,2CASC;AARQ,qCAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
@@ -1,43 +1,23 @@
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 selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
21
- var styles_selectors_js_1 = require("../../../modal/styles.selectors.js");
22
- var ModalWrapper = /** @class */ (function (_super) {
23
- __extends(ModalWrapper, _super);
24
- function ModalWrapper() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- ModalWrapper.prototype.findHeader = function () {
5
+ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
6
+ const styles_selectors_js_1 = require("../../../modal/styles.selectors.js");
7
+ class ModalWrapper extends selectors_1.ComponentWrapper {
8
+ findHeader() {
28
9
  return this.findByClassName(styles_selectors_js_1.default.header);
29
- };
30
- ModalWrapper.prototype.findContent = function () {
10
+ }
11
+ findContent() {
31
12
  return this.findByClassName(styles_selectors_js_1.default.content);
32
- };
33
- ModalWrapper.prototype.findFooter = function () {
13
+ }
14
+ findFooter() {
34
15
  return this.findByClassName(styles_selectors_js_1.default.footer);
35
- };
36
- ModalWrapper.prototype.findDismissButton = function () {
16
+ }
17
+ findDismissButton() {
37
18
  return this.findByClassName(styles_selectors_js_1.default['dismiss-control']);
38
- };
39
- ModalWrapper.rootSelector = styles_selectors_js_1.default.root;
40
- return ModalWrapper;
41
- }(selectors_1.ComponentWrapper));
19
+ }
20
+ }
42
21
  exports.default = ModalWrapper;
22
+ ModalWrapper.rootSelector = styles_selectors_js_1.default.root;
43
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/modal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,0EAAwD;AACxD;IAA0C,gCAAgB;IAA1D;;IAcA,CAAC;IAZC,iCAAU,GAAV;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAE,CAAC;IAC9C,CAAC;IACD,kCAAW,GAAX;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IACD,iCAAU,GAAV;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IACD,wCAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAE,CAAC;IAC1D,CAAC;IAZM,yBAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;IAa5C,mBAAC;CAAA,AAdD,CAA0C,4BAAgB,GAczD;kBAdoB,YAAY"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/modal/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,4EAAwD;AACxD,MAAqB,YAAa,SAAQ,4BAAgB;IAExD,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAE,CAAC;IAC9C,CAAC;IACD,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IACD,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAE,CAAC;IAC1D,CAAC;;AAbH,+BAcC;AAbQ,yBAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
@@ -1,93 +1,70 @@
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
- var styles_selectors_js_1 = require("../../../multiselect/styles.selectors.js");
19
- var styles_selectors_js_2 = require("../../../token-group/styles.selectors.js");
20
- var styles_selectors_js_3 = require("../../../input/styles.selectors.js");
21
- var styles_selectors_js_4 = require("../../../internal/components/button-trigger/styles.selectors.js");
22
- var styles_selectors_js_5 = require("../../../internal/components/dropdown-status/styles.selectors.js");
23
- var styles_selectors_js_6 = require("../../../internal/components/dropdown-status/styles.selectors.js");
24
- var input_1 = require("../input");
25
- var token_group_1 = require("../token-group");
26
- var dropdown_host_1 = require("../internal/dropdown-host");
27
- var MultiselectWrapper = /** @class */ (function (_super) {
28
- __extends(MultiselectWrapper, _super);
29
- function MultiselectWrapper() {
30
- return _super !== null && _super.apply(this, arguments) || this;
31
- }
3
+ const styles_selectors_js_1 = require("../../../multiselect/styles.selectors.js");
4
+ const styles_selectors_js_2 = require("../../../token-group/styles.selectors.js");
5
+ const styles_selectors_js_3 = require("../../../input/styles.selectors.js");
6
+ const styles_selectors_js_4 = require("../../../internal/components/button-trigger/styles.selectors.js");
7
+ const styles_selectors_js_5 = require("../../../internal/components/dropdown-status/styles.selectors.js");
8
+ const styles_selectors_js_6 = require("../../../internal/components/dropdown-status/styles.selectors.js");
9
+ const input_1 = require("../input");
10
+ const token_group_1 = require("../token-group");
11
+ const dropdown_host_1 = require("../internal/dropdown-host");
12
+ class MultiselectWrapper extends dropdown_host_1.default {
32
13
  /**
33
14
  * @param options
34
15
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
35
16
  */
36
- MultiselectWrapper.prototype.findErrorRecoveryButton = function (options) {
37
- if (options === void 0) { options = {
38
- expandToViewport: false
39
- }; }
17
+ findErrorRecoveryButton(options = {
18
+ expandToViewport: false
19
+ }) {
40
20
  return this.findDropdown(options).findByClassName(styles_selectors_js_6.default.recovery);
41
- };
21
+ }
42
22
  /**
43
23
  * Returns the input that is used for filtering. Returns `null` if `enableFiltering` is not set to `true`.
44
24
  * @param options
45
25
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
46
26
  */
47
- MultiselectWrapper.prototype.findFilteringInput = function (options) {
48
- if (options === void 0) { options = {
49
- expandToViewport: false
50
- }; }
51
- return this.findDropdown(options).findComponent(".".concat(styles_selectors_js_3.default['input-container']), input_1.default);
52
- };
53
- MultiselectWrapper.prototype.findPlaceholder = function () {
27
+ findFilteringInput(options = {
28
+ expandToViewport: false
29
+ }) {
30
+ return this.findDropdown(options).findComponent(`.${styles_selectors_js_3.default['input-container']}`, input_1.default);
31
+ }
32
+ findPlaceholder() {
54
33
  return this.findByClassName(styles_selectors_js_4.default.placeholder);
55
- };
34
+ }
56
35
  /**
57
36
  * @param options
58
37
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
59
38
  */
60
- MultiselectWrapper.prototype.findStatusIndicator = function (options) {
61
- if (options === void 0) { options = {
62
- expandToViewport: false
63
- }; }
39
+ findStatusIndicator(options = {
40
+ expandToViewport: false
41
+ }) {
64
42
  return this.findDropdown(options).findByClassName(styles_selectors_js_5.default.root);
65
- };
43
+ }
66
44
  /**
67
45
  * Returns a token.
68
46
  *
69
47
  * @param tokenIndex 1-based index of the token to return
70
48
  */
71
- MultiselectWrapper.prototype.findToken = function (tokenIndex) {
72
- var tokenGroup = this.findComponent(".".concat(styles_selectors_js_2.default.root), token_group_1.default);
49
+ findToken(tokenIndex) {
50
+ const tokenGroup = this.findComponent(`.${styles_selectors_js_2.default.root}`, token_group_1.default);
73
51
  return tokenGroup.findToken(tokenIndex);
74
- };
52
+ }
75
53
  /**
76
54
  * Returns a token toggle button.
77
55
  */
78
- MultiselectWrapper.prototype.findTokenToggle = function () {
79
- var tokenGroup = this.findComponent(".".concat(styles_selectors_js_2.default.root), token_group_1.default);
56
+ findTokenToggle() {
57
+ const tokenGroup = this.findComponent(`.${styles_selectors_js_2.default.root}`, token_group_1.default);
80
58
  return tokenGroup.findTokenToggle();
81
- };
82
- MultiselectWrapper.prototype.findTokens = function () {
83
- var tokenGroup = this.findComponent(".".concat(styles_selectors_js_2.default.root), token_group_1.default);
59
+ }
60
+ findTokens() {
61
+ const tokenGroup = this.findComponent(`.${styles_selectors_js_2.default.root}`, token_group_1.default);
84
62
  return (tokenGroup === null || tokenGroup === void 0 ? void 0 : tokenGroup.findTokens()) || [];
85
- };
86
- MultiselectWrapper.prototype.findTrigger = function () {
63
+ }
64
+ findTrigger() {
87
65
  return this.findByClassName(styles_selectors_js_4.default['button-trigger']);
88
- };
89
- MultiselectWrapper.rootSelector = styles_selectors_js_1.default.root;
90
- return MultiselectWrapper;
91
- }(dropdown_host_1.default));
66
+ }
67
+ }
92
68
  exports.default = MultiselectWrapper;
69
+ MultiselectWrapper.rootSelector = styles_selectors_js_1.default.root;
93
70
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/multiselect/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA,gFAAyE;AACzE,gFAAwE;AACxE,0EAA6D;AAC7D,uGAAkG;AAClG,wGAAoG;AACpG,wGAA4F;AAE5F,kCAAoC;AACpC,8CAA+C;AAC/C,2DAAqE;AACrE;IAAgD,sCAA4B;IAA5E;;IA6DA,CAAC;IA1DC;;;OAGG;IACH,oDAAuB,GAAvB,UAAwB,OAEvB;QAFuB,wBAAA,EAAA;YACtB,gBAAgB,EAAE,KAAK;SACxB;QACC,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,6BAAY,CAAC,QAAQ,CAAC,CAAC;IAC3E,CAAC;IAED;;;;OAIG;IACH,+CAAkB,GAAlB,UAAmB,OAElB;QAFkB,wBAAA,EAAA;YACjB,gBAAgB,EAAE,KAAK;SACxB;QACC,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,WAAI,6BAAW,CAAC,iBAAiB,CAAC,CAAE,EAAE,eAAY,CAAC,CAAC;IACtG,CAAC;IACD,4CAAe,GAAf;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAmB,CAAC,WAAW,CAAC,CAAC;IAC/D,CAAC;IAED;;;OAGG;IACH,gDAAmB,GAAnB,UAAoB,OAEnB;QAFmB,wBAAA,EAAA;YAClB,gBAAgB,EAAE,KAAK;SACxB;QACC,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,6BAAoB,CAAC,IAAI,CAAC,CAAC;IAC/E,CAAC;IAED;;;;OAIG;IACH,sCAAS,GAAT,UAAU,UAAkB;QAC1B,IAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAgB,CAAC,IAAI,CAAE,EAAE,qBAAiB,CAAC,CAAC;QACtF,OAAO,UAAW,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC;IAED;;OAEG;IACH,4CAAe,GAAf;QACE,IAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAgB,CAAC,IAAI,CAAE,EAAE,qBAAiB,CAAC,CAAC;QACtF,OAAO,UAAW,CAAC,eAAe,EAAE,CAAC;IACvC,CAAC;IACD,uCAAU,GAAV;QACE,IAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAgB,CAAC,IAAI,CAAE,EAAE,qBAAiB,CAAC,CAAC;QACtF,OAAO,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,UAAU,EAAE,KAAI,EAAE,CAAC;IACxC,CAAC;IACD,wCAAW,GAAX;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAmB,CAAC,gBAAgB,CAAC,CAAE,CAAC;IACtE,CAAC;IA3DM,+BAAY,GAAW,6BAAiB,CAAC,IAAI,CAAC;IA4DvD,yBAAC;CAAA,AA7DD,CAAgD,uBAA4B,GA6D3E;kBA7DoB,kBAAkB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/multiselect/index.ts"],"names":[],"mappings":";;AAGA,kFAAyE;AACzE,kFAAwE;AACxE,4EAA6D;AAC7D,yGAAkG;AAClG,0GAAoG;AACpG,0GAA4F;AAE5F,oCAAoC;AACpC,gDAA+C;AAC/C,6DAAqE;AACrE,MAAqB,kBAAmB,SAAQ,uBAA4B;IAG1E;;;OAGG;IACH,uBAAuB,CAAC,OAAO,GAAG;QAChC,gBAAgB,EAAE,KAAK;KACxB;QACC,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,6BAAY,CAAC,QAAQ,CAAC,CAAC;IAC3E,CAAC;IAED;;;;OAIG;IACH,kBAAkB,CAAC,OAAO,GAAG;QAC3B,gBAAgB,EAAE,KAAK;KACxB;QACC,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,iBAAiB,CAAC,EAAE,EAAE,eAAY,CAAC,CAAC;IACtG,CAAC;IACD,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAmB,CAAC,WAAW,CAAC,CAAC;IAC/D,CAAC;IAED;;;OAGG;IACH,mBAAmB,CAAC,OAAO,GAAG;QAC5B,gBAAgB,EAAE,KAAK;KACxB;QACC,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,6BAAoB,CAAC,IAAI,CAAC,CAAC;IAC/E,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,UAAkB;QAC1B,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAgB,CAAC,IAAI,EAAE,EAAE,qBAAiB,CAAC,CAAC;QACtF,OAAO,UAAW,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC;IAED;;OAEG;IACH,eAAe;QACb,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAgB,CAAC,IAAI,EAAE,EAAE,qBAAiB,CAAC,CAAC;QACtF,OAAO,UAAW,CAAC,eAAe,EAAE,CAAC;IACvC,CAAC;IACD,UAAU;QACR,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAgB,CAAC,IAAI,EAAE,EAAE,qBAAiB,CAAC,CAAC;QACtF,OAAO,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,UAAU,EAAE,KAAI,EAAE,CAAC;IACxC,CAAC;IACD,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAmB,CAAC,gBAAgB,CAAC,CAAE,CAAC;IACtE,CAAC;;AA5DH,qCA6DC;AA5DQ,+BAAY,GAAW,6BAAiB,CAAC,IAAI,CAAC"}
@@ -1,53 +1,33 @@
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 selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
21
- var styles_selectors_js_1 = require("../../../pagination/styles.selectors.js");
22
- var PaginationWrapper = /** @class */ (function (_super) {
23
- __extends(PaginationWrapper, _super);
24
- function PaginationWrapper() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- PaginationWrapper.prototype.findCurrentPage = function () {
5
+ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
6
+ const styles_selectors_js_1 = require("../../../pagination/styles.selectors.js");
7
+ class PaginationWrapper extends selectors_1.ComponentWrapper {
8
+ findCurrentPage() {
28
9
  return this.findByClassName(styles_selectors_js_1.default['button-current']);
29
- };
30
- PaginationWrapper.prototype.findPageNumbers = function () {
10
+ }
11
+ findPageNumbers() {
31
12
  return this.findAllByClassName(styles_selectors_js_1.default['page-number']);
32
- };
13
+ }
33
14
  /**
34
15
  * Returns a page number for a given index.
35
16
  *
36
17
  * @param index 1-based index of the page number to return.
37
18
  */
38
- PaginationWrapper.prototype.findPageNumberByIndex = function (index) {
19
+ findPageNumberByIndex(index) {
39
20
  // we need to skip the "previous page" button
40
- var pageIndex = index + 1;
41
- return this.find("li:nth-child(".concat(pageIndex, ") .").concat(styles_selectors_js_1.default.button));
42
- };
43
- PaginationWrapper.prototype.findPreviousPageButton = function () {
44
- return this.find("li:first-child .".concat(styles_selectors_js_1.default.button));
45
- };
46
- PaginationWrapper.prototype.findNextPageButton = function () {
47
- return this.find("li:last-child .".concat(styles_selectors_js_1.default.button));
48
- };
49
- PaginationWrapper.rootSelector = styles_selectors_js_1.default.root;
50
- return PaginationWrapper;
51
- }(selectors_1.ComponentWrapper));
21
+ const pageIndex = index + 1;
22
+ return this.find(`li:nth-child(${pageIndex}) .${styles_selectors_js_1.default.button}`);
23
+ }
24
+ findPreviousPageButton() {
25
+ return this.find(`li:first-child .${styles_selectors_js_1.default.button}`);
26
+ }
27
+ findNextPageButton() {
28
+ return this.find(`li:last-child .${styles_selectors_js_1.default.button}`);
29
+ }
30
+ }
52
31
  exports.default = PaginationWrapper;
32
+ PaginationWrapper.rootSelector = styles_selectors_js_1.default.root;
53
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/pagination/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,+EAA6D;AAC7D;IAA+C,qCAAgB;IAA/D;;IAyBA,CAAC;IAvBC,2CAAe,GAAf;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,gBAAgB,CAAC,CAAE,CAAC;IACzD,CAAC;IACD,2CAAe,GAAf;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACH,iDAAqB,GAArB,UAAsB,KAAa;QACjC,6CAA6C;QAC7C,IAAM,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAgB,SAAS,gBAAM,6BAAM,CAAC,MAAM,CAAE,CAAC,CAAC;IACnE,CAAC;IACD,kDAAsB,GAAtB;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,0BAAmB,6BAAM,CAAC,MAAM,CAAE,CAAE,CAAC;IACxD,CAAC;IACD,8CAAkB,GAAlB;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,yBAAkB,6BAAM,CAAC,MAAM,CAAE,CAAE,CAAC;IACvD,CAAC;IAvBM,8BAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;IAwBpC,wBAAC;CAAA,AAzBD,CAA+C,4BAAgB,GAyB9D;kBAzBoB,iBAAiB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/pagination/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,iFAA6D;AAC7D,MAAqB,iBAAkB,SAAQ,4BAAgB;IAE7D,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,gBAAgB,CAAC,CAAE,CAAC;IACzD,CAAC;IACD,eAAe;QACb,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACH,qBAAqB,CAAC,KAAa;QACjC,6CAA6C;QAC7C,MAAM,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,gBAAgB,SAAS,MAAM,6BAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IACD,sBAAsB;QACpB,OAAO,IAAI,CAAC,IAAI,CAAC,mBAAmB,6BAAM,CAAC,MAAM,EAAE,CAAE,CAAC;IACxD,CAAC;IACD,kBAAkB;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,6BAAM,CAAC,MAAM,EAAE,CAAE,CAAC;IACvD,CAAC;;AAxBH,oCAyBC;AAxBQ,8BAAY,GAAG,6BAAM,CAAC,IAAI,CAAC"}
@@ -1,57 +1,37 @@
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
- var charts_1 = require("../internal/charts");
19
- var styles_selectors_js_1 = require("../../../pie-chart/styles.selectors.js");
20
- var styles_selectors_js_2 = require("../../../internal/components/chart-plot/styles.selectors.js");
21
- var PieChartWrapper = /** @class */ (function (_super) {
22
- __extends(PieChartWrapper, _super);
23
- function PieChartWrapper() {
24
- return _super !== null && _super.apply(this, arguments) || this;
25
- }
26
- PieChartWrapper.prototype.findFilterContainer = function () {
3
+ const charts_1 = require("../internal/charts");
4
+ const styles_selectors_js_1 = require("../../../pie-chart/styles.selectors.js");
5
+ const styles_selectors_js_2 = require("../../../internal/components/chart-plot/styles.selectors.js");
6
+ class PieChartWrapper extends charts_1.default {
7
+ findFilterContainer() {
27
8
  return this.findByClassName(styles_selectors_js_1.default['filter-container']);
28
- };
29
- PieChartWrapper.prototype.findSegments = function () {
9
+ }
10
+ findSegments() {
30
11
  return this.findAllByClassName(styles_selectors_js_1.default.segment);
31
- };
32
- PieChartWrapper.prototype.findHighlightedSegment = function () {
12
+ }
13
+ findHighlightedSegment() {
33
14
  return this.findByClassName(styles_selectors_js_1.default['segment--highlighted']);
34
- };
35
- PieChartWrapper.prototype.findChart = function () {
15
+ }
16
+ findChart() {
36
17
  return this.findByClassName(styles_selectors_js_2.default.root);
37
- };
18
+ }
38
19
  /**
39
20
  * Returns a focusable element that controls keyboard interactions.
40
21
  */
41
- PieChartWrapper.prototype.findApplication = function () {
22
+ findApplication() {
42
23
  return this.findByClassName(styles_selectors_js_2.default.application);
43
- };
44
- PieChartWrapper.prototype.findInnerContent = function () {
24
+ }
25
+ findInnerContent() {
45
26
  return this.findByClassName(styles_selectors_js_1.default['inner-content']);
46
- };
47
- PieChartWrapper.prototype.findSegmentLabels = function () {
27
+ }
28
+ findSegmentLabels() {
48
29
  return this.findAllByClassName(styles_selectors_js_1.default.label);
49
- };
50
- PieChartWrapper.prototype.findHighlightedSegmentLabel = function () {
30
+ }
31
+ findHighlightedSegmentLabel() {
51
32
  return this.findByClassName(styles_selectors_js_1.default['label--highlighted']);
52
- };
53
- PieChartWrapper.rootSelector = styles_selectors_js_1.default.root;
54
- return PieChartWrapper;
55
- }(charts_1.default));
33
+ }
34
+ }
56
35
  exports.default = PieChartWrapper;
36
+ PieChartWrapper.rootSelector = styles_selectors_js_1.default.root;
57
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/pie-chart/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA,6CAAoD;AACpD,8EAA4D;AAC5D,mGAA0F;AAC1F;IAA6C,mCAAkB;IAA/D;;IA8BA,CAAC;IA5BC,6CAAmB,GAAnB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC1D,CAAC;IACD,sCAAY,GAAZ;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IACD,gDAAsB,GAAtB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC9D,CAAC;IACD,mCAAS,GAAT;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,yCAAe,GAAf;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,WAAW,CAAC,CAAC;IAC3D,CAAC;IACD,0CAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAC,CAAC;IACvD,CAAC;IACD,2CAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IACD,qDAA2B,GAA3B;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAC5D,CAAC;IA5BM,4BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;IA6B5C,sBAAC;CAAA,AA9BD,CAA6C,gBAAkB,GA8B9D;kBA9BoB,eAAe"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/pie-chart/index.ts"],"names":[],"mappings":";;AAGA,+CAAoD;AACpD,gFAA4D;AAC5D,qGAA0F;AAC1F,MAAqB,eAAgB,SAAQ,gBAAkB;IAE7D,mBAAmB;QACjB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC1D,CAAC;IACD,YAAY;QACV,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IACD,sBAAsB;QACpB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC9D,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,WAAW,CAAC,CAAC;IAC3D,CAAC;IACD,gBAAgB;QACd,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAC,CAAC;IACvD,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IACD,2BAA2B;QACzB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAC5D,CAAC;;AA7BH,kCA8BC;AA7BQ,4BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
@@ -1,74 +1,51 @@
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 selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
21
- var styles_selectors_js_1 = require("../../../popover/styles.selectors.js");
22
- var index_js_1 = require("../index.js");
23
- var PopoverWrapper = /** @class */ (function (_super) {
24
- __extends(PopoverWrapper, _super);
25
- function PopoverWrapper() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- PopoverWrapper.prototype.findTrigger = function () {
5
+ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
6
+ const styles_selectors_js_1 = require("../../../popover/styles.selectors.js");
7
+ const index_js_1 = require("../index.js");
8
+ class PopoverWrapper extends selectors_1.ComponentWrapper {
9
+ findTrigger() {
29
10
  return this.findByClassName(styles_selectors_js_1.default.trigger);
30
- };
11
+ }
31
12
  /**
32
13
  * @param options
33
14
  * * renderWithPortal (boolean) - Flag to find the header when the popover is rendered with a portal
34
15
  */
35
- PopoverWrapper.prototype.findHeader = function (options) {
36
- if (options === void 0) { options = {
37
- renderWithPortal: false
38
- }; }
16
+ findHeader(options = {
17
+ renderWithPortal: false
18
+ }) {
39
19
  if (options.renderWithPortal) {
40
20
  return (0, index_js_1.default)().findByClassName(styles_selectors_js_1.default.header);
41
21
  }
42
22
  return this.findByClassName(styles_selectors_js_1.default.header);
43
- };
23
+ }
44
24
  /**
45
25
  * @param options
46
26
  * * renderWithPortal (boolean) - Flag to find the content when the popover is rendered with a portal
47
27
  */
48
- PopoverWrapper.prototype.findContent = function (options) {
49
- if (options === void 0) { options = {
50
- renderWithPortal: false
51
- }; }
28
+ findContent(options = {
29
+ renderWithPortal: false
30
+ }) {
52
31
  if (options.renderWithPortal) {
53
32
  return (0, index_js_1.default)().findByClassName(styles_selectors_js_1.default.content);
54
33
  }
55
34
  return this.findByClassName(styles_selectors_js_1.default.content);
56
- };
35
+ }
57
36
  /**
58
37
  * @param options
59
38
  * * renderWithPortal (boolean) - Flag to find the dismiss button when the popover is rendered with a portal
60
39
  */
61
- PopoverWrapper.prototype.findDismissButton = function (options) {
62
- if (options === void 0) { options = {
63
- renderWithPortal: false
64
- }; }
40
+ findDismissButton(options = {
41
+ renderWithPortal: false
42
+ }) {
65
43
  if (options.renderWithPortal) {
66
- return (0, index_js_1.default)().findComponent(".".concat(styles_selectors_js_1.default['dismiss-control']), index_js_1.ButtonWrapper);
44
+ return (0, index_js_1.default)().findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`, index_js_1.ButtonWrapper);
67
45
  }
68
- return this.findComponent(".".concat(styles_selectors_js_1.default['dismiss-control']), index_js_1.ButtonWrapper);
69
- };
70
- PopoverWrapper.rootSelector = styles_selectors_js_1.default.root;
71
- return PopoverWrapper;
72
- }(selectors_1.ComponentWrapper));
46
+ return this.findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`, index_js_1.ButtonWrapper);
47
+ }
48
+ }
73
49
  exports.default = PopoverWrapper;
50
+ PopoverWrapper.rootSelector = styles_selectors_js_1.default.root;
74
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/popover/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,4EAA0D;AAC1D,wCAA2D;AAC3D;IAA4C,kCAAgB;IAA5D;;IA4CA,CAAC;IA1CC,oCAAW,GAAX;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACH,mCAAU,GAAV,UAAW,OAEV;QAFU,wBAAA,EAAA;YACT,gBAAgB,EAAE,KAAK;SACxB;QACC,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAC5B,OAAO,IAAA,kBAAa,GAAE,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;SACvD;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACH,oCAAW,GAAX,UAAY,OAEX;QAFW,wBAAA,EAAA;YACV,gBAAgB,EAAE,KAAK;SACxB;QACC,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAC5B,OAAO,IAAA,kBAAa,GAAE,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;SACxD;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,0CAAiB,GAAjB,UAAkB,OAEjB;QAFiB,wBAAA,EAAA;YAChB,gBAAgB,EAAE,KAAK;SACxB;QACC,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAC5B,OAAO,IAAA,kBAAa,GAAE,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,iBAAiB,CAAC,CAAE,EAAE,wBAAa,CAAC,CAAC;SACtF;QACD,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,iBAAiB,CAAC,CAAE,EAAE,wBAAa,CAAC,CAAC;IAC5E,CAAC;IA1CM,2BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;IA2C5C,qBAAC;CAAA,AA5CD,CAA4C,4BAAgB,GA4C3D;kBA5CoB,cAAc"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/popover/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,8EAA0D;AAC1D,0CAA2D;AAC3D,MAAqB,cAAe,SAAQ,4BAAgB;IAE1D,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,OAAO,GAAG;QACnB,gBAAgB,EAAE,KAAK;KACxB;QACC,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAC5B,OAAO,IAAA,kBAAa,GAAE,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;SACvD;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACH,WAAW,CAAC,OAAO,GAAG;QACpB,gBAAgB,EAAE,KAAK;KACxB;QACC,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAC5B,OAAO,IAAA,kBAAa,GAAE,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;SACxD;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,iBAAiB,CAAC,OAAO,GAAG;QAC1B,gBAAgB,EAAE,KAAK;KACxB;QACC,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAC5B,OAAO,IAAA,kBAAa,GAAE,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,wBAAa,CAAC,CAAC;SACtF;QACD,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,wBAAa,CAAC,CAAC;IAC5E,CAAC;;AA3CH,iCA4CC;AA3CQ,2BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}