@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,48 +1,28 @@
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 chart_legend_1 = require("./chart-legend");
22
- var chart_filter_1 = require("./chart-filter");
23
- var chart_popover_1 = require("./chart-popover");
24
- var styles_selectors_js_1 = require("../../../internal/components/chart-legend/styles.selectors.js");
25
- var styles_selectors_js_2 = require("../../../internal/components/chart-filter/styles.selectors.js");
26
- var styles_selectors_js_3 = require("../../../internal/components/chart-popover/styles.selectors.js");
27
- var styles_selectors_js_4 = require("../../../internal/components/chart-status-container/styles.selectors.js");
28
- var CommonChartWrapper = /** @class */ (function (_super) {
29
- __extends(CommonChartWrapper, _super);
30
- function CommonChartWrapper() {
31
- return _super !== null && _super.apply(this, arguments) || this;
5
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
6
+ const chart_legend_1 = require("./chart-legend");
7
+ const chart_filter_1 = require("./chart-filter");
8
+ const chart_popover_1 = require("./chart-popover");
9
+ const styles_selectors_js_1 = require("../../../internal/components/chart-legend/styles.selectors.js");
10
+ const styles_selectors_js_2 = require("../../../internal/components/chart-filter/styles.selectors.js");
11
+ const styles_selectors_js_3 = require("../../../internal/components/chart-popover/styles.selectors.js");
12
+ const styles_selectors_js_4 = require("../../../internal/components/chart-status-container/styles.selectors.js");
13
+ class CommonChartWrapper extends dom_1.ComponentWrapper {
14
+ findDefaultFilter() {
15
+ return this.findComponent(`.${styles_selectors_js_2.default['chart-filter']}`, chart_filter_1.default);
32
16
  }
33
- CommonChartWrapper.prototype.findDefaultFilter = function () {
34
- return this.findComponent(".".concat(styles_selectors_js_2.default['chart-filter']), chart_filter_1.default);
35
- };
36
- CommonChartWrapper.prototype.findStatusContainer = function () {
17
+ findStatusContainer() {
37
18
  return this.findByClassName(styles_selectors_js_4.default.root);
38
- };
39
- CommonChartWrapper.prototype.findLegend = function () {
40
- return this.findComponent(".".concat(styles_selectors_js_1.default.root), chart_legend_1.default);
41
- };
42
- CommonChartWrapper.prototype.findDetailPopover = function () {
43
- return this.findComponent(".".concat(styles_selectors_js_3.default.root), chart_popover_1.default);
44
- };
45
- return CommonChartWrapper;
46
- }(dom_1.ComponentWrapper));
19
+ }
20
+ findLegend() {
21
+ return this.findComponent(`.${styles_selectors_js_1.default.root}`, chart_legend_1.default);
22
+ }
23
+ findDetailPopover() {
24
+ return this.findComponent(`.${styles_selectors_js_3.default.root}`, chart_popover_1.default);
25
+ }
26
+ }
47
27
  exports.default = CommonChartWrapper;
48
28
  //# sourceMappingURL=charts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"charts.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/charts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0F;AAC1F,+CAAgD;AAChD,+CAAgD;AAChD,iDAAkD;AAClD,qGAAyF;AACzF,qGAAyF;AACzF,sGAA2F;AAC3F,+GAA4G;AAE5G;IAAgD,sCAAgB;IAAhE;;IAgBA,CAAC;IAfC,8CAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAY,CAAC,cAAc,CAAC,CAAE,EAAE,sBAAkB,CAAC,CAAC;IACpF,CAAC;IAED,gDAAmB,GAAnB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAqB,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,uCAAU,GAAV;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAY,CAAC,IAAI,CAAE,EAAE,sBAAkB,CAAC,CAAC;IACzE,CAAC;IAED,8CAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAa,CAAC,IAAI,CAAE,EAAE,uBAAmB,CAAC,CAAC;IAC3E,CAAC;IACH,yBAAC;AAAD,CAAC,AAhBD,CAAgD,sBAAgB,GAgB/D"}
1
+ {"version":3,"file":"charts.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/charts.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,iDAAgD;AAChD,iDAAgD;AAChD,mDAAkD;AAClD,uGAAyF;AACzF,uGAAyF;AACzF,wGAA2F;AAC3F,iHAA4G;AAE5G,MAAqB,kBAAmB,SAAQ,sBAAgB;IAC9D,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAY,CAAC,cAAc,CAAC,EAAE,EAAE,sBAAkB,CAAC,CAAC;IACpF,CAAC;IAED,mBAAmB;QACjB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAqB,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAY,CAAC,IAAI,EAAE,EAAE,sBAAkB,CAAC,CAAC;IACzE,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAa,CAAC,IAAI,EAAE,EAAE,uBAAmB,CAAC,CAAC;IAC3E,CAAC;CACF;AAhBD,qCAgBC"}
@@ -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,65 +9,57 @@ Object.defineProperty(exports, "__esModule", { value: true });
24
9
  exports.PortalDropdownContentWrapper = exports.DropdownContentWrapper = 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 utils_1 = require("@cloudscape-design/test-utils-core/utils");
30
- var dropdown_1 = require("./dropdown");
31
- var options_list_1 = require("./options-list");
32
- var option_1 = require("./option");
33
- var styles_selectors_js_1 = require("../../../internal/components/selectable-item/styles.selectors.js");
34
- var styles_selectors_js_2 = require("../../../internal/components/dropdown/styles.selectors.js");
35
- var styles_selectors_js_3 = require("../../../internal/components/dropdown-status/styles.selectors.js");
36
- var styles_selectors_js_4 = require("../../../internal/components/option/styles.selectors.js");
37
- var DropdownHostComponentWrapper = /** @class */ (function (_super) {
38
- __extends(DropdownHostComponentWrapper, _super);
39
- function DropdownHostComponentWrapper() {
40
- return _super !== null && _super.apply(this, arguments) || this;
41
- }
12
+ const test_utils_1 = require("react-dom/test-utils");
13
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
14
+ const utils_1 = require("@cloudscape-design/test-utils-core/utils");
15
+ const dropdown_1 = require("./dropdown");
16
+ const options_list_1 = require("./options-list");
17
+ const option_1 = require("./option");
18
+ const styles_selectors_js_1 = require("../../../internal/components/selectable-item/styles.selectors.js");
19
+ const styles_selectors_js_2 = require("../../../internal/components/dropdown/styles.selectors.js");
20
+ const styles_selectors_js_3 = require("../../../internal/components/dropdown-status/styles.selectors.js");
21
+ const styles_selectors_js_4 = require("../../../internal/components/option/styles.selectors.js");
22
+ class DropdownHostComponentWrapper extends dom_1.ComponentWrapper {
42
23
  /**
43
24
  * @param options
44
25
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
45
26
  */
46
- DropdownHostComponentWrapper.prototype.assertOpenDropdown = function (options) {
27
+ assertOpenDropdown(options = { expandToViewport: false }) {
47
28
  var _a;
48
- if (options === void 0) { options = { expandToViewport: false }; }
49
- var isOpen = !!((_a = this.findDropdown(options)) === null || _a === void 0 ? void 0 : _a.findOpenDropdown());
29
+ const isOpen = !!((_a = this.findDropdown(options)) === null || _a === void 0 ? void 0 : _a.findOpenDropdown());
50
30
  if (!isOpen) {
51
31
  throw new Error('Unable to select an option when dropdown is closed');
52
32
  }
53
- };
33
+ }
54
34
  /**
55
35
  * @param options
56
36
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
57
37
  */
58
- DropdownHostComponentWrapper.prototype.findDropdown = function (options) {
59
- if (options === void 0) { options = { expandToViewport: false }; }
38
+ findDropdown(options = { expandToViewport: false }) {
60
39
  return options.expandToViewport
61
- ? (0, dom_1.createWrapper)().findComponent(".".concat(styles_selectors_js_2.default.dropdown, "[data-open=true]"), PortalDropdownContentWrapper)
40
+ ? (0, dom_1.createWrapper)().findComponent(`.${styles_selectors_js_2.default.dropdown}[data-open=true]`, PortalDropdownContentWrapper)
62
41
  : new DropdownContentWrapper(this.getElement());
63
- };
64
- DropdownHostComponentWrapper.prototype.openDropdown = function () {
65
- var _this = this;
66
- (0, test_utils_1.act)(function () {
67
- _this.findTrigger().fireEvent(new MouseEvent('mousedown', { bubbles: true }));
42
+ }
43
+ openDropdown() {
44
+ (0, test_utils_1.act)(() => {
45
+ this.findTrigger().fireEvent(new MouseEvent('mousedown', { bubbles: true }));
68
46
  });
69
- };
47
+ }
70
48
  /**
71
49
  * @param options
72
50
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
73
51
  */
74
- DropdownHostComponentWrapper.prototype.closeDropdown = function (options) {
75
- if (options === void 0) { options = { expandToViewport: false }; }
52
+ closeDropdown(options = { expandToViewport: false }) {
76
53
  if (document.activeElement &&
77
54
  (this.element.contains(document.activeElement) ||
78
55
  this.findDropdown(options).getElement().contains(document.activeElement)) &&
79
56
  document.activeElement instanceof HTMLElement) {
80
- var element_1 = document.activeElement;
81
- (0, test_utils_1.act)(function () {
82
- element_1.blur();
57
+ const element = document.activeElement;
58
+ (0, test_utils_1.act)(() => {
59
+ element.blur();
83
60
  });
84
61
  }
85
- };
62
+ }
86
63
  /**
87
64
  * Selects an option for the given index by triggering corresponding events.
88
65
  *
@@ -99,20 +76,19 @@ var DropdownHostComponentWrapper = /** @class */ (function (_super) {
99
76
  * @param options
100
77
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
101
78
  */
102
- DropdownHostComponentWrapper.prototype.selectOption = function (index, options) {
103
- if (options === void 0) { options = { expandToViewport: false }; }
79
+ selectOption(index, options = { expandToViewport: false }) {
104
80
  if (index < 1) {
105
81
  throw new Error('Option index should be a 1-based integer number');
106
82
  }
107
83
  this.assertOpenDropdown(options);
108
- var option = this.findDropdown(options).findOption(index);
84
+ const option = this.findDropdown(options).findOption(index);
109
85
  if (!option) {
110
- throw new Error("Can't select the option, because there is no option with the index ".concat(index, "."));
86
+ throw new Error(`Can't select the option, because there is no option with the index ${index}.`);
111
87
  }
112
- (0, test_utils_1.act)(function () {
88
+ (0, test_utils_1.act)(() => {
113
89
  option.fireEvent(new MouseEvent('mouseup', { bubbles: true }));
114
90
  });
115
- };
91
+ }
116
92
  /**
117
93
  * Selects an option for the given value by triggering corresponding events.
118
94
  *
@@ -129,105 +105,93 @@ var DropdownHostComponentWrapper = /** @class */ (function (_super) {
129
105
  * @param options
130
106
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
131
107
  */
132
- DropdownHostComponentWrapper.prototype.selectOptionByValue = function (value, options) {
133
- if (options === void 0) { options = { expandToViewport: false }; }
108
+ selectOptionByValue(value, options = { expandToViewport: false }) {
134
109
  this.assertOpenDropdown(options);
135
- var option = this.findDropdown(options).findOptionByValue(value);
110
+ const option = this.findDropdown(options).findOptionByValue(value);
136
111
  if (!option) {
137
- throw new Error("Can't select the option, because there is no option with the value ".concat(JSON.stringify(value), "."));
112
+ throw new Error(`Can't select the option, because there is no option with the value ${JSON.stringify(value)}.`);
138
113
  }
139
- (0, test_utils_1.act)(function () {
114
+ (0, test_utils_1.act)(() => {
140
115
  option.fireEvent(new MouseEvent('mouseup', { bubbles: true }));
141
116
  });
142
- };
143
- __decorate([
144
- dom_1.usesDom
145
- ], DropdownHostComponentWrapper.prototype, "openDropdown", null);
146
- __decorate([
147
- dom_1.usesDom
148
- ], DropdownHostComponentWrapper.prototype, "closeDropdown", null);
149
- __decorate([
150
- dom_1.usesDom
151
- ], DropdownHostComponentWrapper.prototype, "selectOption", null);
152
- __decorate([
153
- dom_1.usesDom
154
- ], DropdownHostComponentWrapper.prototype, "selectOptionByValue", null);
155
- return DropdownHostComponentWrapper;
156
- }(dom_1.ComponentWrapper));
117
+ }
118
+ }
119
+ __decorate([
120
+ dom_1.usesDom
121
+ ], DropdownHostComponentWrapper.prototype, "openDropdown", null);
122
+ __decorate([
123
+ dom_1.usesDom
124
+ ], DropdownHostComponentWrapper.prototype, "closeDropdown", null);
125
+ __decorate([
126
+ dom_1.usesDom
127
+ ], DropdownHostComponentWrapper.prototype, "selectOption", null);
128
+ __decorate([
129
+ dom_1.usesDom
130
+ ], DropdownHostComponentWrapper.prototype, "selectOptionByValue", null);
157
131
  exports.default = DropdownHostComponentWrapper;
158
- var DropdownContentWrapper = /** @class */ (function (_super) {
159
- __extends(DropdownContentWrapper, _super);
160
- function DropdownContentWrapper() {
161
- return _super !== null && _super.apply(this, arguments) || this;
162
- }
163
- DropdownContentWrapper.prototype.findDisabledOptions = function () {
164
- return this.findAllByClassName(styles_selectors_js_1.default.disabled).map(function (elementWrapper) { return new option_1.default(elementWrapper.getElement()); });
165
- };
166
- DropdownContentWrapper.prototype.findFooterRegion = function () {
132
+ class DropdownContentWrapper extends dom_1.ComponentWrapper {
133
+ findDisabledOptions() {
134
+ return this.findAllByClassName(styles_selectors_js_1.default.disabled).map((elementWrapper) => new option_1.default(elementWrapper.getElement()));
135
+ }
136
+ findFooterRegion() {
167
137
  return this.findByClassName(styles_selectors_js_3.default.root);
168
- };
169
- DropdownContentWrapper.prototype.findHighlightedAriaLiveRegion = function () {
138
+ }
139
+ findHighlightedAriaLiveRegion() {
170
140
  return this.find('[aria-live]');
171
- };
141
+ }
172
142
  /**
173
143
  * Returns highlighted text fragments from all of the options.
174
144
  * Options get highlighted when they match the value of the input field.
175
145
  */
176
- DropdownContentWrapper.prototype.findHighlightedMatches = function () {
146
+ findHighlightedMatches() {
177
147
  return this.findAllByClassName(styles_selectors_js_4.default['filtering-match-highlight']);
178
- };
179
- DropdownContentWrapper.prototype.findHighlightedOption = function () {
180
- return this.findComponent(".".concat(styles_selectors_js_1.default.highlighted), option_1.default);
181
- };
182
- DropdownContentWrapper.prototype.findOpenDropdown = function () {
183
- var dropdown = new dropdown_1.default(this.getElement());
148
+ }
149
+ findHighlightedOption() {
150
+ return this.findComponent(`.${styles_selectors_js_1.default.highlighted}`, option_1.default);
151
+ }
152
+ findOpenDropdown() {
153
+ const dropdown = new dropdown_1.default(this.getElement());
184
154
  return dropdown.findOpenDropdown();
185
- };
155
+ }
186
156
  /**
187
157
  * Returns an option from the dropdown.
188
158
  *
189
159
  * @param optionIndex 1-based index of the option to select.
190
160
  */
191
- DropdownContentWrapper.prototype.findOption = function (optionIndex) {
192
- return this.findComponent(".".concat(styles_selectors_js_1.default['selectable-item'], "[data-test-index=\"").concat(optionIndex, "\"] .").concat(option_1.default.rootSelector), option_1.default);
193
- };
194
- DropdownContentWrapper.prototype.findOptionByValue = function (value) {
195
- var toReplace = (0, utils_1.escapeSelector)(value);
196
- return this.findComponent(".".concat(option_1.default.rootSelector, "[data-value=\"").concat(toReplace, "\"]"), option_1.default);
197
- };
161
+ findOption(optionIndex) {
162
+ return this.findComponent(`.${styles_selectors_js_1.default['selectable-item']}[data-test-index="${optionIndex}"] .${option_1.default.rootSelector}`, option_1.default);
163
+ }
164
+ findOptionByValue(value) {
165
+ const toReplace = (0, utils_1.escapeSelector)(value);
166
+ return this.findComponent(`.${option_1.default.rootSelector}[data-value="${toReplace}"]`, option_1.default);
167
+ }
198
168
  /**
199
169
  * Returns an option from the dropdown.
200
170
  *
201
171
  * @param groupIndex 1-based index of the group to select an option in.
202
172
  * @param optionIndex 1-based index of the option to select.
203
173
  */
204
- DropdownContentWrapper.prototype.findOptionInGroup = function (groupIndex, optionIndex) {
205
- return this.findComponent(".".concat(styles_selectors_js_1.default['selectable-item'], "[data-group-index=\"").concat(groupIndex, "\"][data-child-index=\"").concat(optionIndex, "\"] .").concat(option_1.default.rootSelector), option_1.default);
206
- };
207
- DropdownContentWrapper.prototype.findOptions = function () {
208
- return this.findAll(".".concat(styles_selectors_js_1.default['selectable-item'], "[data-test-index] .").concat(option_1.default.rootSelector)).map(function (elementWrapper) { return new option_1.default(elementWrapper.getElement()); });
209
- };
174
+ findOptionInGroup(groupIndex, optionIndex) {
175
+ return this.findComponent(`.${styles_selectors_js_1.default['selectable-item']}[data-group-index="${groupIndex}"][data-child-index="${optionIndex}"] .${option_1.default.rootSelector}`, option_1.default);
176
+ }
177
+ findOptions() {
178
+ return this.findAll(`.${styles_selectors_js_1.default['selectable-item']}[data-test-index] .${option_1.default.rootSelector}`).map((elementWrapper) => new option_1.default(elementWrapper.getElement()));
179
+ }
210
180
  /**
211
181
  * Use this element to scroll through the list of options
212
182
  */
213
- DropdownContentWrapper.prototype.findOptionsContainer = function () {
183
+ findOptionsContainer() {
214
184
  return this.findByClassName(options_list_1.default.rootSelector);
215
- };
216
- DropdownContentWrapper.prototype.findSelectedOptions = function () {
217
- return this.findAllByClassName(styles_selectors_js_1.default.selected).map(function (elementWrapper) { return new option_1.default(elementWrapper.getElement()); });
218
- };
219
- return DropdownContentWrapper;
220
- }(dom_1.ComponentWrapper));
185
+ }
186
+ findSelectedOptions() {
187
+ return this.findAllByClassName(styles_selectors_js_1.default.selected).map((elementWrapper) => new option_1.default(elementWrapper.getElement()));
188
+ }
189
+ }
221
190
  exports.DropdownContentWrapper = DropdownContentWrapper;
222
- var PortalDropdownContentWrapper = /** @class */ (function (_super) {
223
- __extends(PortalDropdownContentWrapper, _super);
224
- function PortalDropdownContentWrapper() {
225
- return _super !== null && _super.apply(this, arguments) || this;
226
- }
227
- PortalDropdownContentWrapper.prototype.findOpenDropdown = function () {
228
- return (0, dom_1.createWrapper)().findComponent(".".concat(styles_selectors_js_2.default.dropdown, "[data-open=true]"), dropdown_1.default);
229
- };
230
- return PortalDropdownContentWrapper;
231
- }(DropdownContentWrapper));
191
+ class PortalDropdownContentWrapper extends DropdownContentWrapper {
192
+ findOpenDropdown() {
193
+ return (0, dom_1.createWrapper)().findComponent(`.${styles_selectors_js_2.default.dropdown}[data-open=true]`, dropdown_1.default);
194
+ }
195
+ }
232
196
  exports.PortalDropdownContentWrapper = PortalDropdownContentWrapper;
233
197
  //# sourceMappingURL=dropdown-host.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-host.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/dropdown-host.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,mDAA2C;AAC3C,8DAAkH;AAClH,kEAA0E;AAE1E,uCAAyC;AACzC,+CAAgD;AAChD,mCAAqC;AACrC,wGAAgG;AAChG,iGAAuF;AACvF,wGAA4F;AAC5F,+FAAm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AC,eAAe,CAAC,sBAAkB,CAAC,YAAY,CAAC,CAAC;IAC/D,CAAC;IAED,mBAAmB;QACjB,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAgB,CAAC,QAAQ,CAAC,CAAC,GAAG,CAC3D,CAAC,cAA8B,EAAE,EAAE,CAAC,IAAI,gBAAa,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CACnF,CAAC;IACJ,CAAC;CACF;AAhFD,wDAgFC;AAED,MAAa,4BAA6B,SAAQ,sBAAsB;IACtE,gBAAgB;QACd,OAAO,IAAA,mBAAa,GAAE,CAAC,aAAa,CAAC,IAAI,6BAAc,CAAC,QAAQ,kBAAkB,EAAE,kBAAe,CAAC,CAAC;IACvG,CAAC;CACF;AAJD,oEAIC"}
@@ -1,34 +1,14 @@
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("../../../internal/components/dropdown/styles.selectors.js");
22
- var DropdownWrapper = /** @class */ (function (_super) {
23
- __extends(DropdownWrapper, _super);
24
- function DropdownWrapper() {
25
- return _super !== null && _super.apply(this, arguments) || this;
5
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
6
+ const styles_selectors_js_1 = require("../../../internal/components/dropdown/styles.selectors.js");
7
+ class DropdownWrapper extends dom_1.ElementWrapper {
8
+ findOpenDropdown() {
9
+ return this.find(`.${styles_selectors_js_1.default.dropdown}[data-open=true]`);
26
10
  }
27
- DropdownWrapper.prototype.findOpenDropdown = function () {
28
- return this.find(".".concat(styles_selectors_js_1.default.dropdown, "[data-open=true]"));
29
- };
30
- DropdownWrapper.rootSelector = styles_selectors_js_1.default.root;
31
- return DropdownWrapper;
32
- }(dom_1.ElementWrapper));
11
+ }
33
12
  exports.default = DropdownWrapper;
13
+ DropdownWrapper.rootSelector = styles_selectors_js_1.default.root;
34
14
  //# sourceMappingURL=dropdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/dropdown.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAAwE;AACxE,iGAA+E;AAC/E;IAA6C,mCAAc;IAA3D;;IAMA,CAAC;IAHC,0CAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAM,CAAC,QAAQ,qBAAkB,CAAC,CAAC;IAC1D,CAAC;IAJM,4BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;IAK5C,sBAAC;CAAA,AAND,CAA6C,oBAAc,GAM1D;kBANoB,eAAe"}
1
+ {"version":3,"file":"dropdown.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/dropdown.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAAwE;AACxE,mGAA+E;AAC/E,MAAqB,eAAgB,SAAQ,oBAAc;IAGzD,gBAAgB;QACd,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,QAAQ,kBAAkB,CAAC,CAAC;IAC1D,CAAC;;AALH,kCAMC;AALQ,4BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
@@ -1,41 +1,21 @@
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 select_1 = require("../select");
22
- var styles_selectors_js_1 = require("../../../internal/components/filtering-token/styles.selectors.js");
23
- var FilteringTokenWrapper = /** @class */ (function (_super) {
24
- __extends(FilteringTokenWrapper, _super);
25
- function FilteringTokenWrapper() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- FilteringTokenWrapper.prototype.findLabel = function () {
5
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
6
+ const select_1 = require("../select");
7
+ const styles_selectors_js_1 = require("../../../internal/components/filtering-token/styles.selectors.js");
8
+ class FilteringTokenWrapper extends dom_1.ComponentWrapper {
9
+ findLabel() {
29
10
  return this.findByClassName(styles_selectors_js_1.default['token-content']);
30
- };
31
- FilteringTokenWrapper.prototype.findRemoveButton = function () {
11
+ }
12
+ findRemoveButton() {
32
13
  return this.findByClassName(styles_selectors_js_1.default['dismiss-button']);
33
- };
34
- FilteringTokenWrapper.prototype.findTokenOperation = function () {
35
- return this.findComponent(".".concat(styles_selectors_js_1.default.select), select_1.default);
36
- };
37
- FilteringTokenWrapper.rootSelector = styles_selectors_js_1.default.root;
38
- return FilteringTokenWrapper;
39
- }(dom_1.ComponentWrapper));
14
+ }
15
+ findTokenOperation() {
16
+ return this.findComponent(`.${styles_selectors_js_1.default.select}`, select_1.default);
17
+ }
18
+ }
40
19
  exports.default = FilteringTokenWrapper;
20
+ FilteringTokenWrapper.rootSelector = styles_selectors_js_1.default.root;
41
21
  //# sourceMappingURL=filtering-token.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"filtering-token.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/filtering-token.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0F;AAC1F,oCAAsC;AACtC,wGAAsF;AAEtF;IAAmD,yCAAgB;IAAnE;;IAcA,CAAC;IAXC,yCAAS,GAAT;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAE,CAAC;IACxD,CAAC;IAED,gDAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,eAAe,CAAoB,6BAAM,CAAC,gBAAgB,CAAC,CAAE,CAAC;IAC5E,CAAC;IAED,kDAAkB,GAAlB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,MAAM,CAAE,EAAE,gBAAa,CAAC,CAAC;IAChE,CAAC;IAZM,kCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;IAapC,4BAAC;CAAA,AAdD,CAAmD,sBAAgB,GAclE;kBAdoB,qBAAqB"}
1
+ {"version":3,"file":"filtering-token.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/filtering-token.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,sCAAsC;AACtC,0GAAsF;AAEtF,MAAqB,qBAAsB,SAAQ,sBAAgB;IAGjE,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAE,CAAC;IACxD,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,eAAe,CAAoB,6BAAM,CAAC,gBAAgB,CAAC,CAAE,CAAC;IAC5E,CAAC;IAED,kBAAkB;QAChB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,MAAM,EAAE,EAAE,gBAAa,CAAC,CAAC;IAChE,CAAC;;AAbH,wCAcC;AAbQ,kCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC"}
@@ -1,44 +1,24 @@
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("../../../internal/components/option/styles.selectors.js");
22
- var OptionWrapper = /** @class */ (function (_super) {
23
- __extends(OptionWrapper, _super);
24
- function OptionWrapper() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- OptionWrapper.prototype.findLabel = function () {
5
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
6
+ const styles_selectors_js_1 = require("../../../internal/components/option/styles.selectors.js");
7
+ class OptionWrapper extends dom_1.ComponentWrapper {
8
+ findLabel() {
28
9
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
29
10
  return this.findByClassName(styles_selectors_js_1.default.label);
30
- };
31
- OptionWrapper.prototype.findDescription = function () {
11
+ }
12
+ findDescription() {
32
13
  return this.findByClassName(styles_selectors_js_1.default.description);
33
- };
34
- OptionWrapper.prototype.findLabelTag = function () {
14
+ }
15
+ findLabelTag() {
35
16
  return this.findByClassName(styles_selectors_js_1.default['label-tag']);
36
- };
37
- OptionWrapper.prototype.findTags = function () {
17
+ }
18
+ findTags() {
38
19
  return this.findAllByClassName(styles_selectors_js_1.default.tag);
39
- };
40
- OptionWrapper.rootSelector = styles_selectors_js_1.default.option;
41
- return OptionWrapper;
42
- }(dom_1.ComponentWrapper));
20
+ }
21
+ }
43
22
  exports.default = OptionWrapper;
23
+ OptionWrapper.rootSelector = styles_selectors_js_1.default.option;
44
24
  //# sourceMappingURL=option.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"option.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/option.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0F;AAC1F,+FAA6E;AAE7E;IAA2C,iCAAgB;IAA3D;;IAmBA,CAAC;IAhBC,iCAAS,GAAT;QACE,oEAAoE;QACpE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAE,CAAC;IAC7C,CAAC;IAED,uCAAe,GAAf;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;IAED,oCAAY,GAAZ;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,gCAAQ,GAAR;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,GAAG,CAAC,CAAC;IAC7C,CAAC;IAjBM,0BAAY,GAAW,6BAAM,CAAC,MAAM,CAAC;IAkB9C,oBAAC;CAAA,AAnB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