@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,124 +1,89 @@
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.TopNavigationMenuDropdownWrapper = exports.TopNavigationUtilityWrapper = exports.OverflowMenu = void 0;
19
4
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
20
5
  // SPDX-License-Identifier: Apache-2.0
21
- var dom_1 = require("@cloudscape-design/test-utils-core/dom");
22
- var link_1 = require("../link");
23
- var button_1 = require("../button");
24
- var button_dropdown_1 = require("../button-dropdown");
25
- var styles_selectors_js_1 = require("../../../top-navigation/styles.selectors.js");
26
- var styles_selectors_js_2 = require("../../../button-dropdown/styles.selectors.js");
27
- var styles_selectors_js_3 = require("../../../internal/components/menu-dropdown/styles.selectors.js");
28
- var TopNavigationWrapper = /** @class */ (function (_super) {
29
- __extends(TopNavigationWrapper, _super);
30
- function TopNavigationWrapper() {
31
- return _super !== null && _super.apply(this, arguments) || this;
32
- }
33
- TopNavigationWrapper.prototype.findIdentityLink = function () {
34
- return this.find(".".concat(styles_selectors_js_1.default.identity, " a"));
35
- };
36
- TopNavigationWrapper.prototype.findLogo = function () {
37
- return this.find(".".concat(styles_selectors_js_1.default.logo));
38
- };
39
- TopNavigationWrapper.prototype.findTitle = function () {
40
- return this.find(".".concat(styles_selectors_js_1.default.title));
41
- };
42
- TopNavigationWrapper.prototype.findSearch = function () {
43
- return this.find(".".concat(styles_selectors_js_1.default.search));
44
- };
45
- TopNavigationWrapper.prototype.findUtilities = function () {
46
- return this.findAll(".".concat(styles_selectors_js_1.default['utility-wrapper'], "[data-utility-index]")).map(function (i) { return new TopNavigationUtilityWrapper(i.getElement()); });
47
- };
48
- TopNavigationWrapper.prototype.findUtility = function (index) {
49
- return this.findComponent(".".concat(styles_selectors_js_1.default['utility-wrapper'], "[data-utility-index=\"").concat(index - 1, "\"]"), TopNavigationUtilityWrapper);
50
- };
51
- TopNavigationWrapper.prototype.findSearchButton = function () {
52
- return this.find(".".concat(styles_selectors_js_1.default['utility-wrapper'], "[data-utility-special=\"search\"] a"));
53
- };
54
- TopNavigationWrapper.prototype.findOverflowMenuButton = function () {
55
- return this.findComponent("[data-utility-special=\"menu-trigger\"] > button", button_1.default);
56
- };
57
- TopNavigationWrapper.prototype.findOverflowMenu = function () {
58
- return (0, dom_1.createWrapper)().findComponent(".".concat(styles_selectors_js_1.default['overflow-menu-drawer']), OverflowMenu);
59
- };
60
- TopNavigationWrapper.rootSelector = "".concat(styles_selectors_js_1.default['top-navigation'], ":not(.").concat(styles_selectors_js_1.default.hidden, ")");
61
- return TopNavigationWrapper;
62
- }(dom_1.ComponentWrapper));
63
- exports.default = TopNavigationWrapper;
64
- var OverflowMenu = /** @class */ (function (_super) {
65
- __extends(OverflowMenu, _super);
66
- function OverflowMenu() {
67
- return _super !== null && _super.apply(this, arguments) || this;
6
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
7
+ const link_1 = require("../link");
8
+ const button_1 = require("../button");
9
+ const button_dropdown_1 = require("../button-dropdown");
10
+ const styles_selectors_js_1 = require("../../../top-navigation/styles.selectors.js");
11
+ const styles_selectors_js_2 = require("../../../button-dropdown/styles.selectors.js");
12
+ const styles_selectors_js_3 = require("../../../internal/components/menu-dropdown/styles.selectors.js");
13
+ class TopNavigationWrapper extends dom_1.ComponentWrapper {
14
+ findIdentityLink() {
15
+ return this.find(`.${styles_selectors_js_1.default.identity} a`);
16
+ }
17
+ findLogo() {
18
+ return this.find(`.${styles_selectors_js_1.default.logo}`);
19
+ }
20
+ findTitle() {
21
+ return this.find(`.${styles_selectors_js_1.default.title}`);
22
+ }
23
+ findSearch() {
24
+ return this.find(`.${styles_selectors_js_1.default.search}`);
25
+ }
26
+ findUtilities() {
27
+ return this.findAll(`.${styles_selectors_js_1.default['utility-wrapper']}[data-utility-index]`).map(i => new TopNavigationUtilityWrapper(i.getElement()));
28
+ }
29
+ findUtility(index) {
30
+ return this.findComponent(`.${styles_selectors_js_1.default['utility-wrapper']}[data-utility-index="${index - 1}"]`, TopNavigationUtilityWrapper);
68
31
  }
69
- OverflowMenu.prototype.findDismissButton = function () {
32
+ findSearchButton() {
33
+ return this.find(`.${styles_selectors_js_1.default['utility-wrapper']}[data-utility-special="search"] a`);
34
+ }
35
+ findOverflowMenuButton() {
36
+ return this.findComponent(`[data-utility-special="menu-trigger"] > button`, button_1.default);
37
+ }
38
+ findOverflowMenu() {
39
+ return (0, dom_1.createWrapper)().findComponent(`.${styles_selectors_js_1.default['overflow-menu-drawer']}`, OverflowMenu);
40
+ }
41
+ }
42
+ exports.default = TopNavigationWrapper;
43
+ TopNavigationWrapper.rootSelector = `${styles_selectors_js_1.default['top-navigation']}:not(.${styles_selectors_js_1.default.hidden})`;
44
+ class OverflowMenu extends dom_1.ComponentWrapper {
45
+ findDismissButton() {
70
46
  return this.findByClassName(styles_selectors_js_1.default['overflow-menu-dismiss-button']);
71
- };
72
- OverflowMenu.prototype.findBackButton = function () {
47
+ }
48
+ findBackButton() {
73
49
  return this.findByClassName(styles_selectors_js_1.default['overflow-menu-back-button']);
74
- };
75
- OverflowMenu.prototype.findTitle = function () {
50
+ }
51
+ findTitle() {
76
52
  return this.findByClassName(styles_selectors_js_1.default['overflow-menu-header-text--title']);
77
- };
78
- OverflowMenu.prototype.findDescription = function () {
53
+ }
54
+ findDescription() {
79
55
  return this.findByClassName(styles_selectors_js_1.default['overflow-menu-header-text--secondary']);
80
- };
81
- OverflowMenu.prototype.findUtility = function (index) {
82
- return this.find("[data-testid=\"__".concat(index - 1, "\"]"));
83
- };
84
- OverflowMenu.prototype.findMenuDropdownItemById = function (id) {
85
- return this.find("[data-testid=\"".concat(id, "\"]"));
86
- };
87
- return OverflowMenu;
88
- }(dom_1.ComponentWrapper));
56
+ }
57
+ findUtility(index) {
58
+ return this.find(`[data-testid="__${index - 1}"]`);
59
+ }
60
+ findMenuDropdownItemById(id) {
61
+ return this.find(`[data-testid="${id}"]`);
62
+ }
63
+ }
89
64
  exports.OverflowMenu = OverflowMenu;
90
- var TopNavigationUtilityWrapper = /** @class */ (function (_super) {
91
- __extends(TopNavigationUtilityWrapper, _super);
92
- function TopNavigationUtilityWrapper() {
93
- return _super !== null && _super.apply(this, arguments) || this;
94
- }
95
- TopNavigationUtilityWrapper.prototype.findButtonLinkType = function () {
96
- return this.findComponent(".".concat(link_1.default.rootSelector), link_1.default);
97
- };
98
- TopNavigationUtilityWrapper.prototype.findPrimaryButtonType = function () {
99
- return this.findComponent(".".concat(button_1.default.rootSelector), button_1.default);
100
- };
101
- TopNavigationUtilityWrapper.prototype.findMenuDropdownType = function () {
102
- return this.findComponent(".".concat(button_dropdown_1.default.rootSelector), TopNavigationMenuDropdownWrapper);
103
- };
104
- return TopNavigationUtilityWrapper;
105
- }(dom_1.ComponentWrapper));
65
+ class TopNavigationUtilityWrapper extends dom_1.ComponentWrapper {
66
+ findButtonLinkType() {
67
+ return this.findComponent(`.${link_1.default.rootSelector}`, link_1.default);
68
+ }
69
+ findPrimaryButtonType() {
70
+ return this.findComponent(`.${button_1.default.rootSelector}`, button_1.default);
71
+ }
72
+ findMenuDropdownType() {
73
+ return this.findComponent(`.${button_dropdown_1.default.rootSelector}`, TopNavigationMenuDropdownWrapper);
74
+ }
75
+ }
106
76
  exports.TopNavigationUtilityWrapper = TopNavigationUtilityWrapper;
107
- var TopNavigationMenuDropdownWrapper = /** @class */ (function (_super) {
108
- __extends(TopNavigationMenuDropdownWrapper, _super);
109
- function TopNavigationMenuDropdownWrapper() {
110
- return _super !== null && _super.apply(this, arguments) || this;
111
- }
112
- TopNavigationMenuDropdownWrapper.prototype.findNativeButton = function () {
113
- return this.find(".".concat(styles_selectors_js_3.default.button));
114
- };
115
- TopNavigationMenuDropdownWrapper.prototype.findTitle = function () {
77
+ class TopNavigationMenuDropdownWrapper extends button_dropdown_1.default {
78
+ findNativeButton() {
79
+ return this.find(`.${styles_selectors_js_3.default.button}`);
80
+ }
81
+ findTitle() {
116
82
  return this.findByClassName(styles_selectors_js_2.default.title);
117
- };
118
- TopNavigationMenuDropdownWrapper.prototype.findDescription = function () {
83
+ }
84
+ findDescription() {
119
85
  return this.findByClassName(styles_selectors_js_2.default.description);
120
- };
121
- return TopNavigationMenuDropdownWrapper;
122
- }(button_dropdown_1.default));
86
+ }
87
+ }
123
88
  exports.TopNavigationMenuDropdownWrapper = TopNavigationMenuDropdownWrapper;
124
89
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/top-navigation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAAyG;AACzG,gCAAkC;AAClC,oCAAsC;AACtC,sDAAuD;AAEvD,mFAAiE;AACjE,oFAAgF;AAChF,sGAAgG;AAEhG;IAAkD,wCAAgB;IAAlE;;IA2CA,CAAC;IAxCC,+CAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAM,CAAC,QAAQ,OAAI,CAAE,CAAC;IAC7C,CAAC;IAED,uCAAQ,GAAR;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAM,CAAC,IAAI,CAAE,CAAC,CAAC;IACtC,CAAC;IAED,wCAAS,GAAT;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAM,CAAC,KAAK,CAAE,CAAC,CAAC;IACvC,CAAC;IAED,yCAAU,GAAV;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAM,CAAC,MAAM,CAAE,CAAC,CAAC;IACxC,CAAC;IAED,4CAAa,GAAb;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAI,6BAAM,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,CAAC,CAAC;IAChE,CAAC;IACH,uCAAC;AAAD,CAAC,AAZD,CAAsD,yBAAqB,GAY1E;AAZY,4EAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/top-navigation/index.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAAyG;AACzG,kCAAkC;AAClC,sCAAsC;AACtC,wDAAuD;AAEvD,qFAAiE;AACjE,sFAAgF;AAChF,wGAAgG;AAEhG,MAAqB,oBAAqB,SAAQ,sBAAgB;IAGhE,gBAAgB;QACd,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,QAAQ,IAAI,CAAE,CAAC;IAC7C,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,IAAI,EAAE,CAAC,CAAC;IACtC,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IACvC,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IACxC,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAC1E,CAAC,CAAC,EAAE,CAAC,IAAI,2BAA2B,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CACrD,CAAC;IACJ,CAAC;IAED,WAAW,CAAC,KAAa;QACvB,OAAO,IAAI,CAAC,aAAa,CACvB,IAAI,6BAAM,CAAC,iBAAiB,CAAC,wBAAwB,KAAK,GAAG,CAAC,IAAI,EAClE,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,mCAAmC,CA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aAAa,CAAC,IAAI,gBAAa,CAAC,YAAY,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC7E,CAAC;IAED,oBAAoB;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,yBAAqB,CAAC,YAAY,EAAE,EAAE,gCAAgC,CAAC,CAAC;IACxG,CAAC;CACF;AAZD,kEAYC;AAED,MAAa,gCAAiC,SAAQ,yBAAqB;IACzE,gBAAgB;QACd,OAAO,IAAI,CAAC,IAAI,CAAoB,IAAI,6BAAkB,CAAC,MAAM,EAAE,CAAE,CAAC;IACxE,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAoB,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAoB,CAAC,WAAW,CAAC,CAAC;IAChE,CAAC;CACF;AAZD,4EAYC"}
@@ -1,74 +1,49 @@
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("../../../tutorial-panel/styles.selectors.js");
22
- var styles_selectors_js_2 = require("../../../tutorial-panel/components/tutorial-list/styles.selectors.js");
23
- var styles_selectors_js_3 = require("../../../tutorial-panel/components/tutorial-detail-view/styles.selectors.js");
24
- var link_1 = require("../link");
25
- var tutorial_1 = require("./tutorial");
26
- var button_1 = require("../button");
27
- var expandable_section_1 = require("../expandable-section");
28
- var TutorialPanelWrapper = /** @class */ (function (_super) {
29
- __extends(TutorialPanelWrapper, _super);
30
- function TutorialPanelWrapper() {
31
- 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("../../../tutorial-panel/styles.selectors.js");
7
+ const styles_selectors_js_2 = require("../../../tutorial-panel/components/tutorial-list/styles.selectors.js");
8
+ const styles_selectors_js_3 = require("../../../tutorial-panel/components/tutorial-detail-view/styles.selectors.js");
9
+ const link_1 = require("../link");
10
+ const tutorial_1 = require("./tutorial");
11
+ const button_1 = require("../button");
12
+ const expandable_section_1 = require("../expandable-section");
13
+ class TutorialPanelWrapper extends dom_1.ComponentWrapper {
14
+ findTutorials() {
15
+ return this.findAllByClassName(styles_selectors_js_2.default['tutorial-box']).map(item => new tutorial_1.default(item.getElement()));
32
16
  }
33
- TutorialPanelWrapper.prototype.findTutorials = function () {
34
- return this.findAllByClassName(styles_selectors_js_2.default['tutorial-box']).map(function (item) { return new tutorial_1.default(item.getElement()); });
35
- };
36
- TutorialPanelWrapper.prototype.findDownloadLink = function () {
37
- return this.findComponent(".".concat(styles_selectors_js_2.default['download-link']), link_1.default);
38
- };
39
- TutorialPanelWrapper.prototype.findTaskList = function () {
40
- return this.findAllByClassName(styles_selectors_js_3.default.task).map(function (item) { return new TutorialTaskWrapper(item.getElement()); });
41
- };
42
- TutorialPanelWrapper.prototype.findDismissButton = function () {
43
- return this.findComponent(".".concat(styles_selectors_js_3.default['dismiss-button']), button_1.default);
44
- };
45
- TutorialPanelWrapper.prototype.findCompletionScreenTitle = function () {
17
+ findDownloadLink() {
18
+ return this.findComponent(`.${styles_selectors_js_2.default['download-link']}`, link_1.default);
19
+ }
20
+ findTaskList() {
21
+ return this.findAllByClassName(styles_selectors_js_3.default.task).map(item => new TutorialTaskWrapper(item.getElement()));
22
+ }
23
+ findDismissButton() {
24
+ return this.findComponent(`.${styles_selectors_js_3.default['dismiss-button']}`, button_1.default);
25
+ }
26
+ findCompletionScreenTitle() {
46
27
  return this.findByClassName(styles_selectors_js_3.default['completion-screen-title']);
47
- };
48
- TutorialPanelWrapper.prototype.findCompletionScreenDescription = function () {
28
+ }
29
+ findCompletionScreenDescription() {
49
30
  return this.findByClassName(styles_selectors_js_3.default['completion-screen-description']);
50
- };
51
- TutorialPanelWrapper.prototype.findFeedbackLink = function () {
52
- return this.findComponent(".".concat(styles_selectors_js_3.default['feedback-link']), link_1.default);
53
- };
54
- TutorialPanelWrapper.rootSelector = styles_selectors_js_1.default['tutorial-panel'];
55
- return TutorialPanelWrapper;
56
- }(dom_1.ComponentWrapper));
57
- exports.default = TutorialPanelWrapper;
58
- var TutorialTaskWrapper = /** @class */ (function (_super) {
59
- __extends(TutorialTaskWrapper, _super);
60
- function TutorialTaskWrapper() {
61
- return _super !== null && _super.apply(this, arguments) || this;
62
31
  }
63
- TutorialTaskWrapper.prototype.findTitle = function () {
32
+ findFeedbackLink() {
33
+ return this.findComponent(`.${styles_selectors_js_3.default['feedback-link']}`, link_1.default);
34
+ }
35
+ }
36
+ exports.default = TutorialPanelWrapper;
37
+ TutorialPanelWrapper.rootSelector = styles_selectors_js_1.default['tutorial-panel'];
38
+ class TutorialTaskWrapper extends dom_1.ComponentWrapper {
39
+ findTitle() {
64
40
  return this.findByClassName(styles_selectors_js_3.default['task-title']);
65
- };
66
- TutorialTaskWrapper.prototype.findStepsTitle = function () {
67
- return this.findComponent(".".concat(styles_selectors_js_3.default['expandable-section-wrapper']), expandable_section_1.default).findHeader();
68
- };
69
- TutorialTaskWrapper.prototype.findSteps = function () {
41
+ }
42
+ findStepsTitle() {
43
+ return this.findComponent(`.${styles_selectors_js_3.default['expandable-section-wrapper']}`, expandable_section_1.default).findHeader();
44
+ }
45
+ findSteps() {
70
46
  return this.findAllByClassName(styles_selectors_js_3.default['step-title']);
71
- };
72
- return TutorialTaskWrapper;
73
- }(dom_1.ComponentWrapper));
47
+ }
48
+ }
74
49
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tutorial-panel/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0F;AAC1F,mFAAiE;AACjE,4GAA8F;AAC9F,mHAAuG;AACvG,gCAAkC;AAClC,uCAA6C;AAC7C,oCAAsC;AACtC,4DAA6D;AAE7D;IAAkD,wCAAgB;IAAlE;;IA8BA,CAAC;IA3BC,4CAAa,GAAb;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAU,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,kBAAmB,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,EAA1C,CAA0C,CAAC,CAAC;IACrH,CAAC;IAED,+CAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAU,CAAC,eAAe,CAAC,CAAE,EAAE,cAAW,CAAC,CAAC;IAC5E,CAAC;IAED,2CAAY,GAAZ;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAY,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,mBAAmB,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,EAA1C,CAA0C,CAAC,CAAC;IAC5G,CAAC;IAED,gDAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAY,CAAC,gBAAgB,CAAC,CAAE,EAAE,gBAAa,CAAC,CAAC;IACjF,CAAC;IAED,wDAAyB,GAAzB;QACE,OAAO,IAAI,CAAC,e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tH,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAY,CAAC,YAAY,CAAC,CAAC,CAAC;IAC7D,CAAC;CACF"}
@@ -1,58 +1,38 @@
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("../../../tutorial-panel/components/tutorial-list/styles.selectors.js");
22
- var button_1 = require("../button");
23
- var index_js_1 = require("../index.js");
24
- var link_1 = require("../link");
25
- var TutorialItemWrapper = /** @class */ (function (_super) {
26
- __extends(TutorialItemWrapper, _super);
27
- function TutorialItemWrapper() {
28
- return _super !== null && _super.apply(this, arguments) || this;
29
- }
30
- TutorialItemWrapper.prototype.findStartButton = function () {
31
- return this.findComponent(".".concat(styles_selectors_js_1.default.start), button_1.default);
32
- };
33
- TutorialItemWrapper.prototype.findLearnMoreLink = function () {
34
- return this.findComponent(".".concat(styles_selectors_js_1.default['learn-more-link']), link_1.default);
35
- };
36
- TutorialItemWrapper.prototype.findExpandButton = function () {
37
- return this.findComponent(".".concat(styles_selectors_js_1.default['expand-button']), button_1.default);
38
- };
39
- TutorialItemWrapper.prototype.findCollapseButton = function () {
40
- return this.findComponent(".".concat(styles_selectors_js_1.default['collapse-button']), button_1.default);
41
- };
42
- TutorialItemWrapper.prototype.findDescription = function () {
5
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
6
+ const styles_selectors_js_1 = require("../../../tutorial-panel/components/tutorial-list/styles.selectors.js");
7
+ const button_1 = require("../button");
8
+ const index_js_1 = require("../index.js");
9
+ const link_1 = require("../link");
10
+ class TutorialItemWrapper extends dom_1.ComponentWrapper {
11
+ findStartButton() {
12
+ return this.findComponent(`.${styles_selectors_js_1.default.start}`, button_1.default);
13
+ }
14
+ findLearnMoreLink() {
15
+ return this.findComponent(`.${styles_selectors_js_1.default['learn-more-link']}`, link_1.default);
16
+ }
17
+ findExpandButton() {
18
+ return this.findComponent(`.${styles_selectors_js_1.default['expand-button']}`, button_1.default);
19
+ }
20
+ findCollapseButton() {
21
+ return this.findComponent(`.${styles_selectors_js_1.default['collapse-button']}`, button_1.default);
22
+ }
23
+ findDescription() {
43
24
  return this.findByClassName(styles_selectors_js_1.default['tutorial-description']);
44
- };
45
- TutorialItemWrapper.prototype.findTitle = function () {
25
+ }
26
+ findTitle() {
46
27
  return this.findByClassName(styles_selectors_js_1.default.title);
47
- };
48
- TutorialItemWrapper.prototype.findCompleted = function () {
28
+ }
29
+ findCompleted() {
49
30
  return this.findByClassName(styles_selectors_js_1.default.completed);
50
- };
51
- TutorialItemWrapper.prototype.findPrerequisitesAlert = function () {
52
- return this.findComponent(".".concat(styles_selectors_js_1.default['prerequisites-alert']), index_js_1.AlertWrapper);
53
- };
54
- TutorialItemWrapper.rootSelector = styles_selectors_js_1.default['tutorial-box'];
55
- return TutorialItemWrapper;
56
- }(dom_1.ComponentWrapper));
31
+ }
32
+ findPrerequisitesAlert() {
33
+ return this.findComponent(`.${styles_selectors_js_1.default['prerequisites-alert']}`, index_js_1.AlertWrapper);
34
+ }
35
+ }
57
36
  exports.default = TutorialItemWrapper;
37
+ TutorialItemWrapper.rootSelector = styles_selectors_js_1.default['tutorial-box'];
58
38
  //# sourceMappingURL=tutorial.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tutorial.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tutorial-panel/tutorial.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0F;AAC1F,4GAA0F;AAC1F,oCAAsC;AACtC,wCAA2C;AAC3C,gCAAkC;AAElC;IAAiD,uCAAgB;IAAjE;;IAkCA,CAAC;IA/BC,6CAAe,GAAf;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,KAAK,CAAE,EAAE,gBAAa,CAAC,CAAC;IAC/D,CAAC;IAED,+CAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,iBAAiB,CAAC,CAAE,EAAE,cAAW,CAAC,CAAC;IAC1E,CAAC;IAED,8CAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,eAAe,CAAC,CAAE,EAAE,gBAAa,CAAC,CAAC;IAC1E,CAAC;IAED,gDAAkB,GAAlB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,iBAAiB,CAAC,CAAE,EAAE,gBAAa,CAAC,CAAC;IAC5E,CAAC;IAED,6CAAe,GAAf;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,uCAAS,GAAT;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAE,CAAC;IAC7C,CAAC;IAED,2CAAa,GAAb;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,SAAS,CAAC,CAAC;IAChD,CAAC;IAED,oDAAsB,GAAtB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,qBAAqB,CAAC,C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BAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,uBAAY,CAAC,CAAC;IAC/E,CAAC;;AAjCH,sCAkCC;AAjCQ,gCAAY,GAAW,6BAAM,CAAC,cAAc,CAAC,CAAC"}
@@ -1,51 +1,32 @@
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("../../../form/styles.selectors.js");
19
- var styles_selectors_js_2 = require("../../../wizard/styles.selectors.js");
20
- var button_1 = require("../button");
21
- var form_1 = require("../form");
22
- var header_1 = require("../header");
23
- var WizardWrapper = /** @class */ (function (_super) {
24
- __extends(WizardWrapper, _super);
25
- function WizardWrapper() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- WizardWrapper.prototype.findHeader = function () {
3
+ const styles_selectors_js_1 = require("../../../form/styles.selectors.js");
4
+ const styles_selectors_js_2 = require("../../../wizard/styles.selectors.js");
5
+ const button_1 = require("../button");
6
+ const form_1 = require("../form");
7
+ const header_1 = require("../header");
8
+ class WizardWrapper extends form_1.default {
9
+ findHeader() {
29
10
  return this.findByClassName(styles_selectors_js_2.default['form-header-component']);
30
- };
31
- WizardWrapper.prototype.findInfo = function () {
32
- return this.findComponent(".".concat(styles_selectors_js_2.default['form-header']), header_1.default).findInfo();
33
- };
34
- WizardWrapper.prototype.findCancelButton = function () {
35
- return this.findComponent(".".concat(styles_selectors_js_2.default['cancel-button']), button_1.default);
36
- };
37
- WizardWrapper.prototype.findSkipToButton = function () {
38
- return this.findComponent(".".concat(styles_selectors_js_2.default['skip-to-button']), button_1.default);
39
- };
40
- WizardWrapper.prototype.findPreviousButton = function () {
41
- return this.findComponent(".".concat(styles_selectors_js_2.default['previous-button']), button_1.default);
42
- };
43
- WizardWrapper.prototype.findPrimaryButton = function () {
44
- return this.findComponent(".".concat(styles_selectors_js_2.default['primary-button']), button_1.default);
45
- };
46
- WizardWrapper.prototype.findMenuNavigationLinks = function () {
11
+ }
12
+ findInfo() {
13
+ return this.findComponent(`.${styles_selectors_js_2.default['form-header']}`, header_1.default).findInfo();
14
+ }
15
+ findCancelButton() {
16
+ return this.findComponent(`.${styles_selectors_js_2.default['cancel-button']}`, button_1.default);
17
+ }
18
+ findSkipToButton() {
19
+ return this.findComponent(`.${styles_selectors_js_2.default['skip-to-button']}`, button_1.default);
20
+ }
21
+ findPreviousButton() {
22
+ return this.findComponent(`.${styles_selectors_js_2.default['previous-button']}`, button_1.default);
23
+ }
24
+ findPrimaryButton() {
25
+ return this.findComponent(`.${styles_selectors_js_2.default['primary-button']}`, button_1.default);
26
+ }
27
+ findMenuNavigationLinks() {
47
28
  return this.findAllByClassName(styles_selectors_js_2.default['navigation-link']);
48
- };
29
+ }
49
30
  /**
50
31
  * Returns a link for a given step number.
51
32
  *
@@ -57,15 +38,14 @@ var WizardWrapper = /** @class */ (function (_super) {
57
38
  * - "active": for the active menu entry
58
39
  * - undefined: for any entry
59
40
  */
60
- WizardWrapper.prototype.findMenuNavigationLink = function (stepNumber, state) {
61
- var additionalClassName = state ? ".".concat(styles_selectors_js_2.default["navigation-link-".concat(state)]) : '';
62
- return this.find(".".concat(styles_selectors_js_2.default['navigation-link-item'], ":nth-child(").concat(stepNumber, ") .").concat(styles_selectors_js_2.default['navigation-link']).concat(additionalClassName));
63
- };
64
- WizardWrapper.prototype.findSecondaryActions = function () {
41
+ findMenuNavigationLink(stepNumber, state) {
42
+ const additionalClassName = state ? `.${styles_selectors_js_2.default[`navigation-link-${state}`]}` : '';
43
+ return this.find(`.${styles_selectors_js_2.default['navigation-link-item']}:nth-child(${stepNumber}) .${styles_selectors_js_2.default['navigation-link']}${additionalClassName}`);
44
+ }
45
+ findSecondaryActions() {
65
46
  return this.findByClassName(styles_selectors_js_1.default['secondary-actions']);
66
- };
67
- WizardWrapper.rootSelector = styles_selectors_js_2.default.root;
68
- return WizardWrapper;
69
- }(form_1.default));
47
+ }
48
+ }
70
49
  exports.default = WizardWrapper;
50
+ WizardWrapper.rootSelector = styles_selectors_js_2.default.root;
71
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/wizard/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA,yEAA2D;AAC3D,2EAAyD;AACzD,oCAAsC;AACtC,gCAAkC;AAClC,oCAAsC;AAEtC;IAA2C,iCAAW;IAAtD;;IAoDA,CAAC;IAjDC,kCAAU,GAAV;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAC/D,CAAC;IAED,gCAAQ,GAAR;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,aAAa,CAAC,CAAE,EAAE,gBAAa,CAAE,CAAC,QAAQ,EAAE,CAAC;IACpF,CAAC;IAED,wCAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,eAAe,CAAC,CAAE,EAAE,gBAAa,CAAE,CAAC;IAC3E,CAAC;IAED,wCAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,gBAAgB,CAAC,CAAE,EAAE,gBAAa,CAAE,CAAC;IAC5E,CAAC;IAED,0CAAkB,GAAlB;QACE,OAAO,IAAI,CAAC,aAAa,CAA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