@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,63 +1,43 @@
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("../../../alert/styles.selectors.js");
22
- var button_1 = require("../button");
23
- var AlertWrapper = /** @class */ (function (_super) {
24
- __extends(AlertWrapper, _super);
25
- function AlertWrapper() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
5
+ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
6
+ const styles_selectors_js_1 = require("../../../alert/styles.selectors.js");
7
+ const button_1 = require("../button");
8
+ class AlertWrapper extends selectors_1.ComponentWrapper {
28
9
  /**
29
10
  * Returns the container node of the component.
30
11
  */
31
- AlertWrapper.prototype.findRootElement = function () {
12
+ findRootElement() {
32
13
  return this.findByClassName(styles_selectors_js_1.default.alert);
33
- };
14
+ }
34
15
  /**
35
16
  * Returns the dismiss button.
36
17
  *
37
18
  * The dismiss button is only rendered when the `dismissible` property is set to `true`.
38
19
  */
39
- AlertWrapper.prototype.findDismissButton = function () {
40
- return this.findComponent(".".concat(styles_selectors_js_1.default['dismiss-button']), button_1.default);
41
- };
20
+ findDismissButton() {
21
+ return this.findComponent(`.${styles_selectors_js_1.default['dismiss-button']}`, button_1.default);
22
+ }
42
23
  /**
43
24
  * Returns the action button.
44
25
  *
45
26
  * The action button is only rendered when the `buttonText` property is set.
46
27
  */
47
- AlertWrapper.prototype.findActionButton = function () {
48
- return this.findComponent(".".concat(styles_selectors_js_1.default['action-button']), button_1.default);
49
- };
50
- AlertWrapper.prototype.findHeader = function () {
28
+ findActionButton() {
29
+ return this.findComponent(`.${styles_selectors_js_1.default['action-button']}`, button_1.default);
30
+ }
31
+ findHeader() {
51
32
  return this.findByClassName(styles_selectors_js_1.default.header);
52
- };
53
- AlertWrapper.prototype.findContent = function () {
33
+ }
34
+ findContent() {
54
35
  return this.findByClassName(styles_selectors_js_1.default.content);
55
- };
56
- AlertWrapper.prototype.findActionSlot = function () {
36
+ }
37
+ findActionSlot() {
57
38
  return this.findByClassName(styles_selectors_js_1.default.action);
58
- };
59
- AlertWrapper.rootSelector = styles_selectors_js_1.default.root;
60
- return AlertWrapper;
61
- }(selectors_1.ComponentWrapper));
39
+ }
40
+ }
62
41
  exports.default = AlertWrapper;
42
+ AlertWrapper.rootSelector = styles_selectors_js_1.default.root;
63
43
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/alert/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,0EAAwD;AACxD,oCAAsC;AACtC;IAA0C,gCAAgB;IAA1D;;IAoCA,CAAC;IAjCC;;OAEG;IACH,sCAAe,GAAf;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAE,CAAC;IAC7C,CAAC;IAED;;;;OAIG;IACH,wCAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,gBAAgB,CAAC,CAAE,EAAE,gBAAa,CAAC,CAAC;IAC3E,CAAC;IAED;;;;OAIG;IACH,uCAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,eAAe,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,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;;AAnCH,+BAoCC;AAnCQ,yBAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
@@ -1,54 +1,34 @@
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("../../../annotation-context/annotation/styles.selectors.js");
22
- var styles_selectors_js_2 = require("../../../popover/styles.selectors.js");
23
- var button_1 = require("../button");
24
- var AnnotationWrapper = /** @class */ (function (_super) {
25
- __extends(AnnotationWrapper, _super);
26
- function AnnotationWrapper() {
27
- return _super !== null && _super.apply(this, arguments) || this;
5
+ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
6
+ const styles_selectors_js_1 = require("../../../annotation-context/annotation/styles.selectors.js");
7
+ const styles_selectors_js_2 = require("../../../popover/styles.selectors.js");
8
+ const button_1 = require("../button");
9
+ class AnnotationWrapper extends selectors_1.ComponentWrapper {
10
+ findNextButton() {
11
+ return this.findComponent(`.${styles_selectors_js_1.default['next-button']}`, button_1.default);
28
12
  }
29
- AnnotationWrapper.prototype.findNextButton = function () {
30
- return this.findComponent(".".concat(styles_selectors_js_1.default['next-button']), button_1.default);
31
- };
32
- AnnotationWrapper.prototype.findPreviousButton = function () {
33
- return this.findComponent(".".concat(styles_selectors_js_1.default['previous-button']), button_1.default);
34
- };
35
- AnnotationWrapper.prototype.findFinishButton = function () {
36
- return this.findComponent(".".concat(styles_selectors_js_1.default['finish-button']), button_1.default);
37
- };
38
- AnnotationWrapper.prototype.findStepCounter = function () {
13
+ findPreviousButton() {
14
+ return this.findComponent(`.${styles_selectors_js_1.default['previous-button']}`, button_1.default);
15
+ }
16
+ findFinishButton() {
17
+ return this.findComponent(`.${styles_selectors_js_1.default['finish-button']}`, button_1.default);
18
+ }
19
+ findStepCounter() {
39
20
  return this.findByClassName(styles_selectors_js_1.default['step-counter-content']);
40
- };
41
- AnnotationWrapper.prototype.findHeader = function () {
21
+ }
22
+ findHeader() {
42
23
  return this.findByClassName(styles_selectors_js_1.default.header);
43
- };
44
- AnnotationWrapper.prototype.findContent = function () {
24
+ }
25
+ findContent() {
45
26
  return this.findByClassName(styles_selectors_js_1.default.content);
46
- };
47
- AnnotationWrapper.prototype.findDismissButton = function () {
48
- return this.findComponent(".".concat(styles_selectors_js_2.default['dismiss-control']), button_1.default);
49
- };
50
- AnnotationWrapper.rootSelector = styles_selectors_js_1.default.annotation;
51
- return AnnotationWrapper;
52
- }(selectors_1.ComponentWrapper));
27
+ }
28
+ findDismissButton() {
29
+ return this.findComponent(`.${styles_selectors_js_2.default['dismiss-control']}`, button_1.default);
30
+ }
31
+ }
53
32
  exports.default = AnnotationWrapper;
33
+ AnnotationWrapper.rootSelector = styles_selectors_js_1.default.annotation;
54
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/annotation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,kGAAgF;AAChF,4EAAiE;AACjE,oCAAsC;AACtC;IAA+C,qCAAgB;IAA/D;;IAuBA,CAAC;IArBC,0CAAc,GAAd;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,aAAa,CAAC,CAAE,EAAE,gBAAa,CAAE,CAAC;IACzE,CAAC;IACD,8CAAkB,GAAlB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,iBAAiB,CAAC,CAAE,EAAE,gBAAa,CAAE,CAAC;IAC7E,CAAC;IACD,4CAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,eAAe,CAAC,CAAE,EAAE,gBAAa,CAAE,CAAC;IAC3E,CAAC;IACD,2CAAe,GAAf;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,sBAAsB,CAAC,CAAE,CAAC;IAC/D,CAAC;IACD,sCAAU,GAAV;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAE,CAAC;IAC9C,CAAC;IACD,uCAAW,GAAX;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IACD,6CAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAa,CAAC,iBAAiB,CAAC,CAAE,EAAE,gBAAa,CAAE,CAAC;IACpF,CAAC;IArBM,8BAAY,GAAW,6BAAM,CAAC,UAAU,CAAC;IAsBlD,wBAAC;CAAA,AAvBD,CAA+C,4BAAgB,GAuB9D;kBAvBoB,iBAAiB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/annotation/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,oGAAgF;AAChF,8EAAiE;AACjE,sCAAsC;AACtC,MAAqB,iBAAkB,SAAQ,4BAAgB;IAE7D,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,aAAa,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IACzE,CAAC;IACD,kBAAkB;QAChB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAC7E,CAAC;IACD,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAC3E,CAAC;IACD,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,sBAAsB,CAAC,CAAE,CAAC;IAC/D,CAAC;IACD,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,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAa,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IACpF,CAAC;;AAtBH,oCAuBC;AAtBQ,8BAAY,GAAW,6BAAM,CAAC,UAAU,CAAC"}
@@ -1,62 +1,42 @@
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 split_panel_1 = require("../split-panel");
22
- var styles_selectors_js_1 = require("../../../app-layout/test-classes/styles.selectors.js");
23
- var AppLayoutWrapper = /** @class */ (function (_super) {
24
- __extends(AppLayoutWrapper, _super);
25
- function AppLayoutWrapper() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- AppLayoutWrapper.prototype.findNavigation = function () {
5
+ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
6
+ const split_panel_1 = require("../split-panel");
7
+ const styles_selectors_js_1 = require("../../../app-layout/test-classes/styles.selectors.js");
8
+ class AppLayoutWrapper extends selectors_1.ComponentWrapper {
9
+ findNavigation() {
29
10
  return this.findByClassName(styles_selectors_js_1.default.navigation);
30
- };
31
- AppLayoutWrapper.prototype.findNavigationToggle = function () {
11
+ }
12
+ findNavigationToggle() {
32
13
  return this.findByClassName(styles_selectors_js_1.default['navigation-toggle']);
33
- };
34
- AppLayoutWrapper.prototype.findNavigationClose = function () {
14
+ }
15
+ findNavigationClose() {
35
16
  return this.findByClassName(styles_selectors_js_1.default['navigation-close']);
36
- };
37
- AppLayoutWrapper.prototype.findContentRegion = function () {
17
+ }
18
+ findContentRegion() {
38
19
  return this.findByClassName(styles_selectors_js_1.default.content);
39
- };
40
- AppLayoutWrapper.prototype.findNotifications = function () {
20
+ }
21
+ findNotifications() {
41
22
  return this.findByClassName(styles_selectors_js_1.default.notifications);
42
- };
43
- AppLayoutWrapper.prototype.findBreadcrumbs = function () {
23
+ }
24
+ findBreadcrumbs() {
44
25
  return this.findByClassName(styles_selectors_js_1.default.breadcrumbs);
45
- };
46
- AppLayoutWrapper.prototype.findTools = function () {
26
+ }
27
+ findTools() {
47
28
  return this.findByClassName(styles_selectors_js_1.default.tools);
48
- };
49
- AppLayoutWrapper.prototype.findToolsClose = function () {
29
+ }
30
+ findToolsClose() {
50
31
  return this.findByClassName(styles_selectors_js_1.default['tools-close']);
51
- };
52
- AppLayoutWrapper.prototype.findToolsToggle = function () {
32
+ }
33
+ findToolsToggle() {
53
34
  return this.findByClassName(styles_selectors_js_1.default['tools-toggle']);
54
- };
55
- AppLayoutWrapper.prototype.findSplitPanel = function () {
56
- return this.findComponent(".".concat(split_panel_1.default.rootSelector), split_panel_1.default);
57
- };
58
- AppLayoutWrapper.rootSelector = styles_selectors_js_1.default.root;
59
- return AppLayoutWrapper;
60
- }(selectors_1.ComponentWrapper));
35
+ }
36
+ findSplitPanel() {
37
+ return this.findComponent(`.${split_panel_1.default.rootSelector}`, split_panel_1.default);
38
+ }
39
+ }
61
40
  exports.default = AppLayoutWrapper;
41
+ AppLayoutWrapper.rootSelector = styles_selectors_js_1.default.root;
62
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/app-layout/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,8CAA+C;AAC/C,4FAAkF;AAClF;IAA8C,oCAAgB;IAA9D;;IAgCA,CAAC;IA9BC,yCAAc,GAAd;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,UAAU,CAAE,CAAC;IAC1D,CAAC;IACD,+CAAoB,GAApB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,mBAAmB,CAAC,CAAE,CAAC;IACpE,CAAC;IACD,8CAAmB,GAAnB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,kBAAkB,CAAC,CAAE,CAAC;IACnE,CAAC;IACD,4CAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,OAAO,CAAE,CAAC;IACvD,CAAC;IACD,4CAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,aAAa,CAAC,CAAC;IAC5D,CAAC;IACD,0CAAe,GAAf;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,WAAW,CAAC,CAAC;IAC1D,CAAC;IACD,oCAAS,GAAT;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,KAAK,CAAE,CAAC;IACrD,CAAC;IACD,yCAAc,GAAd;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,aAAa,CAAC,CAAE,CAAC;IAC9D,CAAC;IACD,0CAAe,GAAf;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,cAAc,CAAC,CAAE,CAAC;IAC/D,CAAC;IACD,yCAAc,GAAd;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,qBAAiB,CAAC,YAAY,CAAE,EAAE,qBAAiB,CAAC,CAAC;IACrF,CAAC;IA9BM,6BAAY,GAAG,6BAAc,CAAC,IAAI,CAAC;IA+B5C,uBAAC;CAAA,AAhCD,CAA8C,4BAAgB,GAgC7D;kBAhCoB,gBAAgB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/app-layout/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,gDAA+C;AAC/C,8FAAkF;AAClF,MAAqB,gBAAiB,SAAQ,4BAAgB;IAE5D,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,UAAU,CAAE,CAAC;IAC1D,CAAC;IACD,oBAAoB;QAClB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,mBAAmB,CAAC,CAAE,CAAC;IACpE,CAAC;IACD,mBAAmB;QACjB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,kBAAkB,CAAC,CAAE,CAAC;IACnE,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,OAAO,CAAE,CAAC;IACvD,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,aAAa,CAAC,CAAC;IAC5D,CAAC;IACD,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,WAAW,CAAC,CAAC;IAC1D,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,KAAK,CAAE,CAAC;IACrD,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,aAAa,CAAC,CAAE,CAAC;IAC9D,CAAC;IACD,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,cAAc,CAAC,CAAE,CAAC;IAC/D,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,qBAAiB,CAAC,YAAY,EAAE,EAAE,qBAAiB,CAAC,CAAC;IACrF,CAAC;;AA/BH,mCAgCC;AA/BQ,6BAAY,GAAG,6BAAc,CAAC,IAAI,CAAC"}
@@ -1,42 +1,22 @@
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("../../../area-chart/styles.selectors.js");
19
- var styles_selectors_js_2 = require("../../../internal/components/chart-plot/styles.selectors.js");
20
- var index_js_1 = require("../mixed-line-bar-chart/index.js");
21
- var AreaChartWrapper = /** @class */ (function (_super) {
22
- __extends(AreaChartWrapper, _super);
23
- function AreaChartWrapper() {
24
- return _super !== null && _super.apply(this, arguments) || this;
25
- }
26
- AreaChartWrapper.prototype.findChart = function () {
3
+ const styles_selectors_js_1 = require("../../../area-chart/styles.selectors.js");
4
+ const styles_selectors_js_2 = require("../../../internal/components/chart-plot/styles.selectors.js");
5
+ const index_js_1 = require("../mixed-line-bar-chart/index.js");
6
+ class AreaChartWrapper extends index_js_1.BaseCartesianChartWrapper {
7
+ findChart() {
27
8
  return this.findByClassName(styles_selectors_js_2.default.root);
28
- };
9
+ }
29
10
  /**
30
11
  * Returns an array of chart series. Note that thresholds count as series as well.
31
12
  */
32
- AreaChartWrapper.prototype.findSeries = function () {
13
+ findSeries() {
33
14
  return this.findAllByClassName(styles_selectors_js_1.default.series);
34
- };
35
- AreaChartWrapper.prototype.findHighlightedSeries = function () {
15
+ }
16
+ findHighlightedSeries() {
36
17
  return this.findByClassName(styles_selectors_js_1.default['series--highlighted']);
37
- };
38
- AreaChartWrapper.rootSelector = styles_selectors_js_1.default.root;
39
- return AreaChartWrapper;
40
- }(index_js_1.BaseCartesianChartWrapper));
18
+ }
19
+ }
41
20
  exports.default = AreaChartWrapper;
21
+ AreaChartWrapper.rootSelector = styles_selectors_js_1.default.root;
42
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/area-chart/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA,+EAA6D;AAC7D,mGAA0F;AAC1F,6DAA6E;AAC7E;IAA8C,oCAAyB;IAAvE;;IAeA,CAAC;IAbC,oCAAS,GAAT;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,qCAAU,GAAV;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;IACD,gDAAqB,GAArB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC7D,CAAC;IAbM,6BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;IAc5C,uBAAC;CAAA,AAfD,CAA8C,oCAAyB,GAetE;kBAfoB,gBAAgB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/area-chart/index.ts"],"names":[],"mappings":";;AAGA,iFAA6D;AAC7D,qGAA0F;AAC1F,+DAA6E;AAC7E,MAAqB,gBAAiB,SAAQ,oCAAyB;IAErE,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,IAAI,CAAC,CAAC;IACpD,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;;AAdH,mCAeC;AAdQ,6BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
@@ -1,86 +1,61 @@
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.AttributeEditorRowWrapper = void 0;
19
4
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
20
5
  // SPDX-License-Identifier: Apache-2.0
21
- var selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
22
- var styles_selectors_js_1 = require("../../../attribute-editor/styles.selectors.js");
23
- var styles_selectors_js_2 = require("../../../grid/styles.selectors.js");
24
- var button_1 = require("../button");
25
- var form_field_1 = require("../form-field");
26
- var AttributeEditorRowWrapper = /** @class */ (function (_super) {
27
- __extends(AttributeEditorRowWrapper, _super);
28
- function AttributeEditorRowWrapper() {
29
- return _super !== null && _super.apply(this, arguments) || this;
30
- }
6
+ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
7
+ const styles_selectors_js_1 = require("../../../attribute-editor/styles.selectors.js");
8
+ const styles_selectors_js_2 = require("../../../grid/styles.selectors.js");
9
+ const button_1 = require("../button");
10
+ const form_field_1 = require("../form-field");
11
+ class AttributeEditorRowWrapper extends selectors_1.ElementWrapper {
31
12
  /**
32
13
  * Returns all fields. Fields are supplied in the `definition` property of the component.
33
14
  */
34
- AttributeEditorRowWrapper.prototype.findFields = function () {
35
- return this.findAllByClassName(styles_selectors_js_1.default.field).map(function (f) { return new form_field_1.default(f.getElement()); });
36
- };
15
+ findFields() {
16
+ return this.findAllByClassName(styles_selectors_js_1.default.field).map(f => new form_field_1.default(f.getElement()));
17
+ }
37
18
  /**
38
19
  * Returns a field for a given index
39
20
  *
40
21
  * @param column 1-based column index
41
22
  */
42
- AttributeEditorRowWrapper.prototype.findField = function (column) {
43
- return this.findComponent(".".concat(styles_selectors_js_1.default['row-control'], " > .").concat(styles_selectors_js_2.default.grid, " > .").concat(styles_selectors_js_2.default['grid-column'], ":nth-child(").concat(column, ") > div > .").concat(styles_selectors_js_1.default.field), form_field_1.default);
44
- };
45
- AttributeEditorRowWrapper.prototype.findRemoveButton = function () {
46
- return this.findComponent(".".concat(styles_selectors_js_1.default['remove-button']), button_1.default);
47
- };
48
- return AttributeEditorRowWrapper;
49
- }(selectors_1.ElementWrapper));
50
- exports.AttributeEditorRowWrapper = AttributeEditorRowWrapper;
51
- var AttributeEditorWrapper = /** @class */ (function (_super) {
52
- __extends(AttributeEditorWrapper, _super);
53
- function AttributeEditorWrapper() {
54
- return _super !== null && _super.apply(this, arguments) || this;
23
+ findField(column) {
24
+ return this.findComponent(`.${styles_selectors_js_1.default['row-control']} > .${styles_selectors_js_2.default.grid} > .${styles_selectors_js_2.default['grid-column']}:nth-child(${column}) > div > .${styles_selectors_js_1.default.field}`, form_field_1.default);
55
25
  }
56
- AttributeEditorWrapper.prototype.findEmptySlot = function () {
26
+ findRemoveButton() {
27
+ return this.findComponent(`.${styles_selectors_js_1.default['remove-button']}`, button_1.default);
28
+ }
29
+ }
30
+ exports.AttributeEditorRowWrapper = AttributeEditorRowWrapper;
31
+ class AttributeEditorWrapper extends selectors_1.ComponentWrapper {
32
+ findEmptySlot() {
57
33
  return this.findByClassName(styles_selectors_js_1.default.empty);
58
- };
34
+ }
59
35
  /**
60
36
  * Returns a row for a given index.
61
37
  *
62
38
  * @param row 1-based row index
63
39
  */
64
- AttributeEditorWrapper.prototype.findRow = function (row) {
65
- return this.findComponent(".".concat(styles_selectors_js_1.default.row, ":nth-child(").concat(row, ")"), AttributeEditorRowWrapper);
66
- };
40
+ findRow(row) {
41
+ return this.findComponent(`.${styles_selectors_js_1.default.row}:nth-child(${row})`, AttributeEditorRowWrapper);
42
+ }
67
43
  /**
68
44
  * Returns all rows.
69
45
  *
70
46
  * To find a specific row use the `findRow(n)` function as chaining `findRows().get(n)` can return unexpected results.
71
47
  * @see findRow
72
48
  */
73
- AttributeEditorWrapper.prototype.findRows = function () {
74
- return this.findAllByClassName(styles_selectors_js_1.default.row).map(function (i) { return new AttributeEditorRowWrapper(i.getElement()); });
75
- };
76
- AttributeEditorWrapper.prototype.findAddButton = function () {
77
- return this.findComponent(".".concat(styles_selectors_js_1.default['add-button']), button_1.default);
78
- };
79
- AttributeEditorWrapper.prototype.findAdditionalInfo = function () {
49
+ findRows() {
50
+ return this.findAllByClassName(styles_selectors_js_1.default.row).map(i => new AttributeEditorRowWrapper(i.getElement()));
51
+ }
52
+ findAddButton() {
53
+ return this.findComponent(`.${styles_selectors_js_1.default['add-button']}`, button_1.default);
54
+ }
55
+ findAdditionalInfo() {
80
56
  return this.findByClassName(styles_selectors_js_1.default['additional-info']);
81
- };
82
- AttributeEditorWrapper.rootSelector = styles_selectors_js_1.default.root;
83
- return AttributeEditorWrapper;
84
- }(selectors_1.ComponentWrapper));
57
+ }
58
+ }
85
59
  exports.default = AttributeEditorWrapper;
60
+ AttributeEditorWrapper.rootSelector = styles_selectors_js_1.default.root;
86
61
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/attribute-editor/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,qFAAmE;AACnE,yEAA2D;AAC3D,oCAAsC;AACtC,4CAA6C;AAC7C;IAA+C,6CAAc;IAA7D;;IAmBA,CAAC;IAlBC;;OAEG;IACH,8CAAU,GAAV;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,IAAI,oBAAgB,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,EAApC,CAAoC,CAAC,CAAC;IAC9F,CAAC;IAED;;;;OAIG;IACH,6CAAS,GAAT,UAAU,MAAc;QACtB,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,aAAa,CAAC,iBAAO,6BAAU,CAAC,IAAI,iBAAO,6BAAU,CAAC,aAAa,CAAC,w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