@cloudscape-design/components 3.0.216 → 3.0.218

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 (351) hide show
  1. package/internal/environment.js +1 -1
  2. package/internal/manifest.json +1 -1
  3. package/package.json +1 -1
  4. package/popover/styles.css.js +50 -50
  5. package/popover/styles.scoped.css +64 -63
  6. package/popover/styles.selectors.js +50 -50
  7. package/test-utils/dom/alert/index.js +20 -40
  8. package/test-utils/dom/alert/index.js.map +1 -1
  9. package/test-utils/dom/annotation/index.js +24 -44
  10. package/test-utils/dom/annotation/index.js.map +1 -1
  11. package/test-utils/dom/app-layout/index.js +27 -47
  12. package/test-utils/dom/app-layout/index.js.map +1 -1
  13. package/test-utils/dom/area-chart/index.js +12 -32
  14. package/test-utils/dom/area-chart/index.js.map +1 -1
  15. package/test-utils/dom/attribute-editor/index.js +32 -57
  16. package/test-utils/dom/attribute-editor/index.js.map +1 -1
  17. package/test-utils/dom/autosuggest/index.js +76 -114
  18. package/test-utils/dom/autosuggest/index.js.map +1 -1
  19. package/test-utils/dom/badge/index.js +5 -25
  20. package/test-utils/dom/badge/index.js.map +1 -1
  21. package/test-utils/dom/bar-chart/index.js +5 -25
  22. package/test-utils/dom/bar-chart/index.js.map +1 -1
  23. package/test-utils/dom/box/index.js +5 -25
  24. package/test-utils/dom/box/index.js.map +1 -1
  25. package/test-utils/dom/breadcrumb-group/index.js +17 -37
  26. package/test-utils/dom/breadcrumb-group/index.js.map +1 -1
  27. package/test-utils/dom/button/index.js +16 -36
  28. package/test-utils/dom/button/index.js.map +1 -1
  29. package/test-utils/dom/button-dropdown/index.js +38 -59
  30. package/test-utils/dom/button-dropdown/index.js.map +1 -1
  31. package/test-utils/dom/calendar/index.js +20 -40
  32. package/test-utils/dom/calendar/index.js.map +1 -1
  33. package/test-utils/dom/cards/index.js +55 -83
  34. package/test-utils/dom/cards/index.js.map +1 -1
  35. package/test-utils/dom/checkbox/index.js +14 -34
  36. package/test-utils/dom/checkbox/index.js.map +1 -1
  37. package/test-utils/dom/code-editor/index.js +33 -53
  38. package/test-utils/dom/code-editor/index.js.map +1 -1
  39. package/test-utils/dom/collection-preferences/index.js +40 -65
  40. package/test-utils/dom/collection-preferences/index.js.map +1 -1
  41. package/test-utils/dom/collection-preferences/page-size-preference.js +12 -32
  42. package/test-utils/dom/collection-preferences/page-size-preference.js.map +1 -1
  43. package/test-utils/dom/collection-preferences/visible-content-preference.js +18 -38
  44. package/test-utils/dom/collection-preferences/visible-content-preference.js.map +1 -1
  45. package/test-utils/dom/column-layout/index.js +5 -25
  46. package/test-utils/dom/column-layout/index.js.map +1 -1
  47. package/test-utils/dom/container/index.js +11 -31
  48. package/test-utils/dom/container/index.js.map +1 -1
  49. package/test-utils/dom/content-layout/index.js +9 -29
  50. package/test-utils/dom/content-layout/index.js.map +1 -1
  51. package/test-utils/dom/date-input/index.js +5 -25
  52. package/test-utils/dom/date-input/index.js.map +1 -1
  53. package/test-utils/dom/date-picker/index.js +26 -47
  54. package/test-utils/dom/date-picker/index.js.map +1 -1
  55. package/test-utils/dom/date-range-picker/index.js +87 -119
  56. package/test-utils/dom/date-range-picker/index.js.map +1 -1
  57. package/test-utils/dom/expandable-section/index.js +15 -35
  58. package/test-utils/dom/expandable-section/index.js.map +1 -1
  59. package/test-utils/dom/flashbar/flash.js +18 -38
  60. package/test-utils/dom/flashbar/flash.js.map +1 -1
  61. package/test-utils/dom/flashbar/index.js +9 -29
  62. package/test-utils/dom/flashbar/index.js.map +1 -1
  63. package/test-utils/dom/form/index.js +15 -35
  64. package/test-utils/dom/form/index.js.map +1 -1
  65. package/test-utils/dom/form-field/index.js +21 -41
  66. package/test-utils/dom/form-field/index.js.map +1 -1
  67. package/test-utils/dom/grid/index.js +8 -28
  68. package/test-utils/dom/grid/index.js.map +1 -1
  69. package/test-utils/dom/header/index.js +15 -35
  70. package/test-utils/dom/header/index.js.map +1 -1
  71. package/test-utils/dom/help-panel/index.js +11 -31
  72. package/test-utils/dom/help-panel/index.js.map +1 -1
  73. package/test-utils/dom/hotspot/index.js +12 -32
  74. package/test-utils/dom/hotspot/index.js.map +1 -1
  75. package/test-utils/dom/icon/index.js +5 -25
  76. package/test-utils/dom/icon/index.js.map +1 -1
  77. package/test-utils/dom/index.js +133 -134
  78. package/test-utils/dom/index.js.map +1 -1
  79. package/test-utils/dom/input/base-input.js +35 -57
  80. package/test-utils/dom/input/base-input.js.map +1 -1
  81. package/test-utils/dom/input/index.js +7 -27
  82. package/test-utils/dom/input/index.js.map +1 -1
  83. package/test-utils/dom/internal/abstract-switch.js +12 -32
  84. package/test-utils/dom/internal/abstract-switch.js.map +1 -1
  85. package/test-utils/dom/internal/autosuggest-input.js +14 -34
  86. package/test-utils/dom/internal/autosuggest-input.js.map +1 -1
  87. package/test-utils/dom/internal/chart-filter.js +11 -31
  88. package/test-utils/dom/internal/chart-filter.js.map +1 -1
  89. package/test-utils/dom/internal/chart-legend.js +13 -33
  90. package/test-utils/dom/internal/chart-legend.js.map +1 -1
  91. package/test-utils/dom/internal/chart-popover.js +14 -34
  92. package/test-utils/dom/internal/chart-popover.js.map +1 -1
  93. package/test-utils/dom/internal/charts.js +20 -40
  94. package/test-utils/dom/internal/charts.js.map +1 -1
  95. package/test-utils/dom/internal/dropdown-host.js +89 -125
  96. package/test-utils/dom/internal/dropdown-host.js.map +1 -1
  97. package/test-utils/dom/internal/dropdown.js +7 -27
  98. package/test-utils/dom/internal/dropdown.js.map +1 -1
  99. package/test-utils/dom/internal/filtering-token.js +13 -33
  100. package/test-utils/dom/internal/filtering-token.js.map +1 -1
  101. package/test-utils/dom/internal/option.js +13 -33
  102. package/test-utils/dom/internal/option.js.map +1 -1
  103. package/test-utils/dom/internal/options-list.js +5 -25
  104. package/test-utils/dom/internal/options-list.js.map +1 -1
  105. package/test-utils/dom/line-chart/index.js +5 -25
  106. package/test-utils/dom/line-chart/index.js.map +1 -1
  107. package/test-utils/dom/link/index.js +5 -25
  108. package/test-utils/dom/link/index.js.map +1 -1
  109. package/test-utils/dom/mixed-line-bar-chart/index.js +29 -54
  110. package/test-utils/dom/mixed-line-bar-chart/index.js.map +1 -1
  111. package/test-utils/dom/modal/index.js +18 -38
  112. package/test-utils/dom/modal/index.js.map +1 -1
  113. package/test-utils/dom/multiselect/index.js +38 -61
  114. package/test-utils/dom/multiselect/index.js.map +1 -1
  115. package/test-utils/dom/pagination/index.js +19 -39
  116. package/test-utils/dom/pagination/index.js.map +1 -1
  117. package/test-utils/dom/pie-chart/index.js +22 -42
  118. package/test-utils/dom/pie-chart/index.js.map +1 -1
  119. package/test-utils/dom/popover/index.js +16 -39
  120. package/test-utils/dom/popover/index.js.map +1 -1
  121. package/test-utils/dom/progress-bar/index.js +13 -33
  122. package/test-utils/dom/progress-bar/index.js.map +1 -1
  123. package/test-utils/dom/property-filter/index.js +15 -35
  124. package/test-utils/dom/property-filter/index.js.map +1 -1
  125. package/test-utils/dom/radio-group/index.js +13 -33
  126. package/test-utils/dom/radio-group/index.js.map +1 -1
  127. package/test-utils/dom/radio-group/radio-button.js +12 -32
  128. package/test-utils/dom/radio-group/radio-button.js.map +1 -1
  129. package/test-utils/dom/s3-resource-selector/index.js +40 -70
  130. package/test-utils/dom/s3-resource-selector/index.js.map +1 -1
  131. package/test-utils/dom/segmented-control/index.js +9 -29
  132. package/test-utils/dom/segmented-control/index.js.map +1 -1
  133. package/test-utils/dom/select/index.js +28 -51
  134. package/test-utils/dom/select/index.js.map +1 -1
  135. package/test-utils/dom/side-navigation/index.js +41 -66
  136. package/test-utils/dom/side-navigation/index.js.map +1 -1
  137. package/test-utils/dom/space-between/index.js +5 -25
  138. package/test-utils/dom/space-between/index.js.map +1 -1
  139. package/test-utils/dom/spinner/index.js +5 -25
  140. package/test-utils/dom/spinner/index.js.map +1 -1
  141. package/test-utils/dom/split-panel/index.js +25 -45
  142. package/test-utils/dom/split-panel/index.js.map +1 -1
  143. package/test-utils/dom/status-indicator/index.js +5 -25
  144. package/test-utils/dom/status-indicator/index.js.map +1 -1
  145. package/test-utils/dom/table/index.js +76 -94
  146. package/test-utils/dom/table/index.js.map +1 -1
  147. package/test-utils/dom/tabs/index.js +19 -39
  148. package/test-utils/dom/tabs/index.js.map +1 -1
  149. package/test-utils/dom/tag-editor/index.js +19 -44
  150. package/test-utils/dom/tag-editor/index.js.map +1 -1
  151. package/test-utils/dom/text-content/index.js +5 -25
  152. package/test-utils/dom/text-content/index.js.map +1 -1
  153. package/test-utils/dom/text-filter/index.js +10 -30
  154. package/test-utils/dom/text-filter/index.js.map +1 -1
  155. package/test-utils/dom/textarea/index.js +16 -36
  156. package/test-utils/dom/textarea/index.js.map +1 -1
  157. package/test-utils/dom/tiles/index.js +17 -37
  158. package/test-utils/dom/tiles/index.js.map +1 -1
  159. package/test-utils/dom/tiles/tile.js +16 -36
  160. package/test-utils/dom/tiles/tile.js.map +1 -1
  161. package/test-utils/dom/time-input/index.js +5 -25
  162. package/test-utils/dom/time-input/index.js.map +1 -1
  163. package/test-utils/dom/toggle/index.js +14 -34
  164. package/test-utils/dom/toggle/index.js.map +1 -1
  165. package/test-utils/dom/token-group/index.js +14 -34
  166. package/test-utils/dom/token-group/index.js.map +1 -1
  167. package/test-utils/dom/token-group/token.js +12 -32
  168. package/test-utils/dom/token-group/token.js.map +1 -1
  169. package/test-utils/dom/top-navigation/1.0-beta/index.js +56 -91
  170. package/test-utils/dom/top-navigation/1.0-beta/index.js.map +1 -1
  171. package/test-utils/dom/top-navigation/index.js +73 -108
  172. package/test-utils/dom/top-navigation/index.js.map +1 -1
  173. package/test-utils/dom/tutorial-panel/index.js +38 -63
  174. package/test-utils/dom/tutorial-panel/index.js.map +1 -1
  175. package/test-utils/dom/tutorial-panel/tutorial.js +29 -49
  176. package/test-utils/dom/tutorial-panel/tutorial.js.map +1 -1
  177. package/test-utils/dom/wizard/index.js +33 -53
  178. package/test-utils/dom/wizard/index.js.map +1 -1
  179. package/test-utils/selectors/alert/index.js +20 -40
  180. package/test-utils/selectors/alert/index.js.map +1 -1
  181. package/test-utils/selectors/annotation/index.js +24 -44
  182. package/test-utils/selectors/annotation/index.js.map +1 -1
  183. package/test-utils/selectors/app-layout/index.js +27 -47
  184. package/test-utils/selectors/app-layout/index.js.map +1 -1
  185. package/test-utils/selectors/area-chart/index.js +12 -32
  186. package/test-utils/selectors/area-chart/index.js.map +1 -1
  187. package/test-utils/selectors/attribute-editor/index.js +32 -57
  188. package/test-utils/selectors/attribute-editor/index.js.map +1 -1
  189. package/test-utils/selectors/autosuggest/index.js +69 -103
  190. package/test-utils/selectors/autosuggest/index.js.map +1 -1
  191. package/test-utils/selectors/badge/index.js +5 -25
  192. package/test-utils/selectors/badge/index.js.map +1 -1
  193. package/test-utils/selectors/bar-chart/index.js +5 -25
  194. package/test-utils/selectors/bar-chart/index.js.map +1 -1
  195. package/test-utils/selectors/box/index.js +5 -25
  196. package/test-utils/selectors/box/index.js.map +1 -1
  197. package/test-utils/selectors/breadcrumb-group/index.js +17 -37
  198. package/test-utils/selectors/breadcrumb-group/index.js.map +1 -1
  199. package/test-utils/selectors/button/index.js +11 -31
  200. package/test-utils/selectors/button/index.js.map +1 -1
  201. package/test-utils/selectors/button-dropdown/index.js +30 -50
  202. package/test-utils/selectors/button-dropdown/index.js.map +1 -1
  203. package/test-utils/selectors/calendar/index.js +20 -40
  204. package/test-utils/selectors/calendar/index.js.map +1 -1
  205. package/test-utils/selectors/cards/index.js +55 -83
  206. package/test-utils/selectors/cards/index.js.map +1 -1
  207. package/test-utils/selectors/checkbox/index.js +14 -34
  208. package/test-utils/selectors/checkbox/index.js.map +1 -1
  209. package/test-utils/selectors/code-editor/index.js +25 -45
  210. package/test-utils/selectors/code-editor/index.js.map +1 -1
  211. package/test-utils/selectors/collection-preferences/index.js +40 -65
  212. package/test-utils/selectors/collection-preferences/index.js.map +1 -1
  213. package/test-utils/selectors/collection-preferences/page-size-preference.js +12 -32
  214. package/test-utils/selectors/collection-preferences/page-size-preference.js.map +1 -1
  215. package/test-utils/selectors/collection-preferences/visible-content-preference.js +18 -38
  216. package/test-utils/selectors/collection-preferences/visible-content-preference.js.map +1 -1
  217. package/test-utils/selectors/column-layout/index.js +5 -25
  218. package/test-utils/selectors/column-layout/index.js.map +1 -1
  219. package/test-utils/selectors/container/index.js +11 -31
  220. package/test-utils/selectors/container/index.js.map +1 -1
  221. package/test-utils/selectors/content-layout/index.js +9 -29
  222. package/test-utils/selectors/content-layout/index.js.map +1 -1
  223. package/test-utils/selectors/date-input/index.js +5 -25
  224. package/test-utils/selectors/date-input/index.js.map +1 -1
  225. package/test-utils/selectors/date-picker/index.js +22 -43
  226. package/test-utils/selectors/date-picker/index.js.map +1 -1
  227. package/test-utils/selectors/date-range-picker/index.js +81 -112
  228. package/test-utils/selectors/date-range-picker/index.js.map +1 -1
  229. package/test-utils/selectors/expandable-section/index.js +15 -35
  230. package/test-utils/selectors/expandable-section/index.js.map +1 -1
  231. package/test-utils/selectors/flashbar/flash.js +18 -38
  232. package/test-utils/selectors/flashbar/flash.js.map +1 -1
  233. package/test-utils/selectors/flashbar/index.js +9 -29
  234. package/test-utils/selectors/flashbar/index.js.map +1 -1
  235. package/test-utils/selectors/form/index.js +15 -35
  236. package/test-utils/selectors/form/index.js.map +1 -1
  237. package/test-utils/selectors/form-field/index.js +21 -41
  238. package/test-utils/selectors/form-field/index.js.map +1 -1
  239. package/test-utils/selectors/grid/index.js +8 -28
  240. package/test-utils/selectors/grid/index.js.map +1 -1
  241. package/test-utils/selectors/header/index.js +15 -35
  242. package/test-utils/selectors/header/index.js.map +1 -1
  243. package/test-utils/selectors/help-panel/index.js +11 -31
  244. package/test-utils/selectors/help-panel/index.js.map +1 -1
  245. package/test-utils/selectors/hotspot/index.js +12 -32
  246. package/test-utils/selectors/hotspot/index.js.map +1 -1
  247. package/test-utils/selectors/icon/index.js +5 -25
  248. package/test-utils/selectors/icon/index.js.map +1 -1
  249. package/test-utils/selectors/index.js +133 -134
  250. package/test-utils/selectors/index.js.map +1 -1
  251. package/test-utils/selectors/input/base-input.js +7 -27
  252. package/test-utils/selectors/input/base-input.js.map +1 -1
  253. package/test-utils/selectors/input/index.js +7 -27
  254. package/test-utils/selectors/input/index.js.map +1 -1
  255. package/test-utils/selectors/internal/abstract-switch.js +12 -32
  256. package/test-utils/selectors/internal/abstract-switch.js.map +1 -1
  257. package/test-utils/selectors/internal/autosuggest-input.js +14 -34
  258. package/test-utils/selectors/internal/autosuggest-input.js.map +1 -1
  259. package/test-utils/selectors/internal/chart-filter.js +11 -31
  260. package/test-utils/selectors/internal/chart-filter.js.map +1 -1
  261. package/test-utils/selectors/internal/chart-legend.js +13 -33
  262. package/test-utils/selectors/internal/chart-legend.js.map +1 -1
  263. package/test-utils/selectors/internal/chart-popover.js +14 -34
  264. package/test-utils/selectors/internal/chart-popover.js.map +1 -1
  265. package/test-utils/selectors/internal/charts.js +20 -40
  266. package/test-utils/selectors/internal/charts.js.map +1 -1
  267. package/test-utils/selectors/internal/dropdown-host.js +59 -91
  268. package/test-utils/selectors/internal/dropdown-host.js.map +1 -1
  269. package/test-utils/selectors/internal/dropdown.js +7 -27
  270. package/test-utils/selectors/internal/dropdown.js.map +1 -1
  271. package/test-utils/selectors/internal/filtering-token.js +13 -33
  272. package/test-utils/selectors/internal/filtering-token.js.map +1 -1
  273. package/test-utils/selectors/internal/option.js +13 -33
  274. package/test-utils/selectors/internal/option.js.map +1 -1
  275. package/test-utils/selectors/internal/options-list.js +5 -25
  276. package/test-utils/selectors/internal/options-list.js.map +1 -1
  277. package/test-utils/selectors/line-chart/index.js +5 -25
  278. package/test-utils/selectors/line-chart/index.js.map +1 -1
  279. package/test-utils/selectors/link/index.js +5 -25
  280. package/test-utils/selectors/link/index.js.map +1 -1
  281. package/test-utils/selectors/mixed-line-bar-chart/index.js +29 -54
  282. package/test-utils/selectors/mixed-line-bar-chart/index.js.map +1 -1
  283. package/test-utils/selectors/modal/index.js +13 -33
  284. package/test-utils/selectors/modal/index.js.map +1 -1
  285. package/test-utils/selectors/multiselect/index.js +38 -61
  286. package/test-utils/selectors/multiselect/index.js.map +1 -1
  287. package/test-utils/selectors/pagination/index.js +19 -39
  288. package/test-utils/selectors/pagination/index.js.map +1 -1
  289. package/test-utils/selectors/pie-chart/index.js +22 -42
  290. package/test-utils/selectors/pie-chart/index.js.map +1 -1
  291. package/test-utils/selectors/popover/index.js +22 -45
  292. package/test-utils/selectors/popover/index.js.map +1 -1
  293. package/test-utils/selectors/progress-bar/index.js +13 -33
  294. package/test-utils/selectors/progress-bar/index.js.map +1 -1
  295. package/test-utils/selectors/property-filter/index.js +15 -35
  296. package/test-utils/selectors/property-filter/index.js.map +1 -1
  297. package/test-utils/selectors/radio-group/index.js +13 -33
  298. package/test-utils/selectors/radio-group/index.js.map +1 -1
  299. package/test-utils/selectors/radio-group/radio-button.js +12 -32
  300. package/test-utils/selectors/radio-group/radio-button.js.map +1 -1
  301. package/test-utils/selectors/s3-resource-selector/index.js +40 -70
  302. package/test-utils/selectors/s3-resource-selector/index.js.map +1 -1
  303. package/test-utils/selectors/segmented-control/index.js +9 -29
  304. package/test-utils/selectors/segmented-control/index.js.map +1 -1
  305. package/test-utils/selectors/select/index.js +28 -51
  306. package/test-utils/selectors/select/index.js.map +1 -1
  307. package/test-utils/selectors/side-navigation/index.js +41 -66
  308. package/test-utils/selectors/side-navigation/index.js.map +1 -1
  309. package/test-utils/selectors/space-between/index.js +5 -25
  310. package/test-utils/selectors/space-between/index.js.map +1 -1
  311. package/test-utils/selectors/spinner/index.js +5 -25
  312. package/test-utils/selectors/spinner/index.js.map +1 -1
  313. package/test-utils/selectors/split-panel/index.js +25 -45
  314. package/test-utils/selectors/split-panel/index.js.map +1 -1
  315. package/test-utils/selectors/status-indicator/index.js +5 -25
  316. package/test-utils/selectors/status-indicator/index.js.map +1 -1
  317. package/test-utils/selectors/table/index.js +76 -94
  318. package/test-utils/selectors/table/index.js.map +1 -1
  319. package/test-utils/selectors/tabs/index.js +19 -39
  320. package/test-utils/selectors/tabs/index.js.map +1 -1
  321. package/test-utils/selectors/tag-editor/index.js +19 -44
  322. package/test-utils/selectors/tag-editor/index.js.map +1 -1
  323. package/test-utils/selectors/text-content/index.js +5 -25
  324. package/test-utils/selectors/text-content/index.js.map +1 -1
  325. package/test-utils/selectors/text-filter/index.js +10 -30
  326. package/test-utils/selectors/text-filter/index.js.map +1 -1
  327. package/test-utils/selectors/textarea/index.js +7 -27
  328. package/test-utils/selectors/textarea/index.js.map +1 -1
  329. package/test-utils/selectors/tiles/index.js +17 -37
  330. package/test-utils/selectors/tiles/index.js.map +1 -1
  331. package/test-utils/selectors/tiles/tile.js +16 -36
  332. package/test-utils/selectors/tiles/tile.js.map +1 -1
  333. package/test-utils/selectors/time-input/index.js +5 -25
  334. package/test-utils/selectors/time-input/index.js.map +1 -1
  335. package/test-utils/selectors/toggle/index.js +14 -34
  336. package/test-utils/selectors/toggle/index.js.map +1 -1
  337. package/test-utils/selectors/token-group/index.js +14 -34
  338. package/test-utils/selectors/token-group/index.js.map +1 -1
  339. package/test-utils/selectors/token-group/token.js +12 -32
  340. package/test-utils/selectors/token-group/token.js.map +1 -1
  341. package/test-utils/selectors/top-navigation/1.0-beta/index.js +56 -91
  342. package/test-utils/selectors/top-navigation/1.0-beta/index.js.map +1 -1
  343. package/test-utils/selectors/top-navigation/index.js +73 -108
  344. package/test-utils/selectors/top-navigation/index.js.map +1 -1
  345. package/test-utils/selectors/tutorial-panel/index.js +38 -63
  346. package/test-utils/selectors/tutorial-panel/index.js.map +1 -1
  347. package/test-utils/selectors/tutorial-panel/tutorial.js +29 -49
  348. package/test-utils/selectors/tutorial-panel/tutorial.js.map +1 -1
  349. package/test-utils/selectors/wizard/index.js +33 -53
  350. package/test-utils/selectors/wizard/index.js.map +1 -1
  351. package/test-utils/tsconfig.tsbuildinfo +1 -1
@@ -1,117 +1,87 @@
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.DrpDropdownWrapper = exports.SelectionModeSwitchWrapper = void 0;
19
- var selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
20
- var styles_selectors_js_1 = require("../../../date-range-picker/styles.selectors.js");
21
- var styles_selectors_js_2 = require("../../../date-range-picker/calendar/grids/styles.selectors.js");
22
- var styles_selectors_js_3 = require("../../../date-range-picker/relative-range/styles.selectors.js");
23
- var select_1 = require("../select");
24
- var button_1 = require("../button");
25
- var radio_group_1 = require("../radio-group");
26
- var input_1 = require("../input");
27
- var segmented_control_1 = require("../segmented-control");
28
- var DateRangePickerWrapper = /** @class */ (function (_super) {
29
- __extends(DateRangePickerWrapper, _super);
30
- function DateRangePickerWrapper() {
31
- return _super !== null && _super.apply(this, arguments) || this;
32
- }
4
+ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
5
+ const styles_selectors_js_1 = require("../../../date-range-picker/styles.selectors.js");
6
+ const styles_selectors_js_2 = require("../../../date-range-picker/calendar/grids/styles.selectors.js");
7
+ const styles_selectors_js_3 = require("../../../date-range-picker/relative-range/styles.selectors.js");
8
+ const select_1 = require("../select");
9
+ const button_1 = require("../button");
10
+ const radio_group_1 = require("../radio-group");
11
+ const input_1 = require("../input");
12
+ const segmented_control_1 = require("../segmented-control");
13
+ class DateRangePickerWrapper extends selectors_1.ComponentWrapper {
33
14
  /**
34
15
  * Alias for `findTrigger`
35
16
  * @deprecated
36
17
  */
37
- DateRangePickerWrapper.prototype.findLabel = function () {
18
+ findLabel() {
38
19
  return this.findTrigger();
39
- };
20
+ }
40
21
  /**
41
22
  * Returns the trigger element that can be used to open the picker dropdown.
42
23
  */
43
- DateRangePickerWrapper.prototype.findTrigger = function () {
24
+ findTrigger() {
44
25
  return this.findByClassName(styles_selectors_js_1.default.label);
45
- };
26
+ }
46
27
  /**
47
28
  * @param options
48
29
  * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
49
30
  */
50
- DateRangePickerWrapper.prototype.findDropdown = function (options) {
51
- if (options === void 0) { options = {
52
- expandToViewport: false
53
- }; }
54
- var wrapper = options.expandToViewport ? (0, selectors_1.createWrapper)() : this;
55
- return wrapper.findComponent(".".concat(styles_selectors_js_1.default.dropdown), DrpDropdownWrapper);
56
- };
57
- DateRangePickerWrapper.rootSelector = styles_selectors_js_1.default.root;
58
- return DateRangePickerWrapper;
59
- }(selectors_1.ComponentWrapper));
60
- exports.default = DateRangePickerWrapper;
61
- var SelectionModeSwitchWrapper = /** @class */ (function (_super) {
62
- __extends(SelectionModeSwitchWrapper, _super);
63
- function SelectionModeSwitchWrapper() {
64
- return _super !== null && _super.apply(this, arguments) || this;
31
+ findDropdown(options = {
32
+ expandToViewport: false
33
+ }) {
34
+ const wrapper = options.expandToViewport ? (0, selectors_1.createWrapper)() : this;
35
+ return wrapper.findComponent(`.${styles_selectors_js_1.default.dropdown}`, DrpDropdownWrapper);
65
36
  }
37
+ }
38
+ exports.default = DateRangePickerWrapper;
39
+ DateRangePickerWrapper.rootSelector = styles_selectors_js_1.default.root;
40
+ class SelectionModeSwitchWrapper extends selectors_1.ElementWrapper {
66
41
  /**
67
42
  * Returns the mode selector as a SegmentedControl wrapper.
68
43
  *
69
44
  * The mode selector is only rendered as a SegmentedControl on wide viewports. On narrow viewports, use `findModesAsSelect()` instead.
70
45
  */
71
- SelectionModeSwitchWrapper.prototype.findModesAsSegments = function () {
46
+ findModesAsSegments() {
72
47
  return new segmented_control_1.default(this.getElement());
73
- };
48
+ }
74
49
  /**
75
50
  * Returns the mode selector as a Select wrapper.
76
51
  * The mode selector is only rendered as a Select on narrow viewports. On wide viewports, use `findModesAsSegments()` instead.
77
52
  */
78
- SelectionModeSwitchWrapper.prototype.findModesAsSelect = function () {
53
+ findModesAsSelect() {
79
54
  return new select_1.default(this.getElement());
80
- };
81
- return SelectionModeSwitchWrapper;
82
- }(selectors_1.ElementWrapper));
55
+ }
56
+ }
83
57
  exports.SelectionModeSwitchWrapper = SelectionModeSwitchWrapper;
84
- var DrpDropdownWrapper = /** @class */ (function (_super) {
85
- __extends(DrpDropdownWrapper, _super);
86
- function DrpDropdownWrapper() {
87
- return _super !== null && _super.apply(this, arguments) || this;
88
- }
89
- DrpDropdownWrapper.prototype.findSelectionModeSwitch = function () {
90
- return this.findComponent(".".concat(styles_selectors_js_1.default['mode-switch']), SelectionModeSwitchWrapper);
91
- };
92
- DrpDropdownWrapper.prototype.findValidationError = function () {
58
+ class DrpDropdownWrapper extends selectors_1.ComponentWrapper {
59
+ findSelectionModeSwitch() {
60
+ return this.findComponent(`.${styles_selectors_js_1.default['mode-switch']}`, SelectionModeSwitchWrapper);
61
+ }
62
+ findValidationError() {
93
63
  return this.findByClassName(styles_selectors_js_1.default['validation-error']);
94
- };
64
+ }
95
65
  // -- Relative mode --
96
- DrpDropdownWrapper.prototype.findRelativeRangeRadioGroup = function () {
97
- return this.findComponent(".".concat(styles_selectors_js_3.default['relative-range-radio-group']), radio_group_1.default);
98
- };
99
- DrpDropdownWrapper.prototype.findCustomRelativeRangeDuration = function () {
100
- return this.findComponent(".".concat(styles_selectors_js_3.default['custom-range-duration-input']), input_1.default);
101
- };
102
- DrpDropdownWrapper.prototype.findCustomRelativeRangeUnit = function () {
103
- return this.findComponent(".".concat(styles_selectors_js_3.default['custom-range-unit-select']), select_1.default);
104
- };
66
+ findRelativeRangeRadioGroup() {
67
+ return this.findComponent(`.${styles_selectors_js_3.default['relative-range-radio-group']}`, radio_group_1.default);
68
+ }
69
+ findCustomRelativeRangeDuration() {
70
+ return this.findComponent(`.${styles_selectors_js_3.default['custom-range-duration-input']}`, input_1.default);
71
+ }
72
+ findCustomRelativeRangeUnit() {
73
+ return this.findComponent(`.${styles_selectors_js_3.default['custom-range-unit-select']}`, select_1.default);
74
+ }
105
75
  // -- Absolute mode --
106
- DrpDropdownWrapper.prototype.findHeader = function () {
76
+ findHeader() {
107
77
  return this.findByClassName(styles_selectors_js_1.default['calendar-header']);
108
- };
109
- DrpDropdownWrapper.prototype.findPreviousMonthButton = function () {
110
- return this.findComponent(".".concat(styles_selectors_js_1.default['calendar-prev-month-btn']), button_1.default);
111
- };
112
- DrpDropdownWrapper.prototype.findNextMonthButton = function () {
113
- return this.findComponent(".".concat(styles_selectors_js_1.default['calendar-next-month-btn']), button_1.default);
114
- };
78
+ }
79
+ findPreviousMonthButton() {
80
+ return this.findComponent(`.${styles_selectors_js_1.default['calendar-prev-month-btn']}`, button_1.default);
81
+ }
82
+ findNextMonthButton() {
83
+ return this.findComponent(`.${styles_selectors_js_1.default['calendar-next-month-btn']}`, button_1.default);
84
+ }
115
85
  /**
116
86
  * Returns a day container on the calendar.
117
87
  *
@@ -119,39 +89,38 @@ var DrpDropdownWrapper = /** @class */ (function (_super) {
119
89
  * @param row 1-based row index of the day.
120
90
  * @param column 1-based column index of the day.
121
91
  */
122
- DrpDropdownWrapper.prototype.findDateAt = function (grid, row, column) {
123
- var gridClassName = grid === 'right' ? styles_selectors_js_1.default['second-grid'] : styles_selectors_js_1.default['first-grid'];
124
- return this.find(".".concat(gridClassName, " .").concat(styles_selectors_js_2.default.week, ":nth-child(").concat(row, ") .").concat(styles_selectors_js_2.default.day, ":nth-child(").concat(column, ")"));
125
- };
126
- DrpDropdownWrapper.prototype.findSelectedStartDate = function () {
92
+ findDateAt(grid, row, column) {
93
+ const gridClassName = grid === 'right' ? styles_selectors_js_1.default['second-grid'] : styles_selectors_js_1.default['first-grid'];
94
+ return this.find(`.${gridClassName} .${styles_selectors_js_2.default.week}:nth-child(${row}) .${styles_selectors_js_2.default.day}:nth-child(${column})`);
95
+ }
96
+ findSelectedStartDate() {
127
97
  return this.findByClassName(styles_selectors_js_2.default['start-date']);
128
- };
129
- DrpDropdownWrapper.prototype.findSelectedEndDate = function () {
98
+ }
99
+ findSelectedEndDate() {
130
100
  return this.findByClassName(styles_selectors_js_2.default['end-date']);
131
- };
132
- DrpDropdownWrapper.prototype.findStartDateInput = function () {
133
- return this.findComponent(".".concat(styles_selectors_js_1.default['start-date-input']), input_1.default);
134
- };
135
- DrpDropdownWrapper.prototype.findStartTimeInput = function () {
136
- return this.findComponent(".".concat(styles_selectors_js_1.default['start-time-input']), input_1.default);
137
- };
138
- DrpDropdownWrapper.prototype.findEndDateInput = function () {
139
- return this.findComponent(".".concat(styles_selectors_js_1.default['end-date-input']), input_1.default);
140
- };
141
- DrpDropdownWrapper.prototype.findEndTimeInput = function () {
142
- return this.findComponent(".".concat(styles_selectors_js_1.default['end-time-input']), input_1.default);
143
- };
101
+ }
102
+ findStartDateInput() {
103
+ return this.findComponent(`.${styles_selectors_js_1.default['start-date-input']}`, input_1.default);
104
+ }
105
+ findStartTimeInput() {
106
+ return this.findComponent(`.${styles_selectors_js_1.default['start-time-input']}`, input_1.default);
107
+ }
108
+ findEndDateInput() {
109
+ return this.findComponent(`.${styles_selectors_js_1.default['end-date-input']}`, input_1.default);
110
+ }
111
+ findEndTimeInput() {
112
+ return this.findComponent(`.${styles_selectors_js_1.default['end-time-input']}`, input_1.default);
113
+ }
144
114
  // -- Footer --
145
- DrpDropdownWrapper.prototype.findClearButton = function () {
146
- return this.findComponent(".".concat(styles_selectors_js_1.default['clear-button']), button_1.default);
147
- };
148
- DrpDropdownWrapper.prototype.findCancelButton = function () {
149
- return this.findComponent(".".concat(styles_selectors_js_1.default['cancel-button']), button_1.default);
150
- };
151
- DrpDropdownWrapper.prototype.findApplyButton = function () {
152
- return this.findComponent(".".concat(styles_selectors_js_1.default['apply-button']), button_1.default);
153
- };
154
- return DrpDropdownWrapper;
155
- }(selectors_1.ComponentWrapper));
115
+ findClearButton() {
116
+ return this.findComponent(`.${styles_selectors_js_1.default['clear-button']}`, button_1.default);
117
+ }
118
+ findCancelButton() {
119
+ return this.findComponent(`.${styles_selectors_js_1.default['cancel-button']}`, button_1.default);
120
+ }
121
+ findApplyButton() {
122
+ return this.findComponent(`.${styles_selectors_js_1.default['apply-button']}`, button_1.default);
123
+ }
124
+ }
156
125
  exports.DrpDropdownWrapper = DrpDropdownWrapper;
157
126
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/date-range-picker/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAGA,0EAA+G;AAC/G,sFAAoE;AACpE,qGAAuF;AACvF,qGAAgG;AAChG,oCAAsC;AACtC,oCAAsC;AACtC,8CAA+C;AAC/C,kCAAoC;AACpC,0DAA2D;AAC3D;IAAoD,0CAAgB;IAApE;;IA0BA,CAAC;IAvBC;;;OAGG;IACH,0CAAS,GAAT;QACE,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC5B,CAAC;IACD;;OAEG;IACH,4CAAW,GAAX;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAE,CAAC;IAC7C,CAAC;IACD;;;OAGG;IACH,6CAAY,GAAZ,UAAa,OAEZ;QAFY,wBAAA,EAAA;YACX,gBAAgB,EAAE,KAAK;SACxB;QACC,IAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAA,yBAAa,GAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QAClE,OAAO,OAAO,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,QAAQ,CAAE,EAAE,kBAAkB,CAAC,CAAC;IAC1E,CAAC;IAxBM,mCAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;IAyB5C,6BAAC;CAAA,AA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B,GAAhB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,gBAAgB,CAAC,CAAE,EAAE,eAAY,CAAC,CAAC;IAC1E,CAAC;IAED,eAAe;IAEf,4CAAe,GAAf;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,cAAc,CAAC,CAAE,EAAE,gBAAa,CAAC,CAAC;IACzE,CAAC;IACD,6CAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,eAAe,CAAC,CAAE,EAAE,gBAAa,CAAE,CAAC;IAC3E,CAAC;IACD,4CAAe,GAAf;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,cAAc,CAAC,CAAE,EAAE,gBAAa,CAAE,CAAC;IAC1E,CAAC;IACH,yBAAC;AAAD,CAAC,AAzED,CAAwC,4BAAgB,GAyEvD;AAzEY,gDAAkB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/date-range-picker/index.ts"],"names":[],"mappings":";;;AAGA,4EAA+G;AAC/G,wFAAoE;AACpE,uGAAuF;AACvF,uGAAgG;AAChG,sCAAsC;AACtC,sCAAsC;AACtC,gDAA+C;AAC/C,oCAAoC;AACpC,4DAA2D;AAC3D,MAAqB,sBAAuB,SAAQ,4BAAgB;IAGlE;;;OAGG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC5B,CAAC;IACD;;OAEG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAE,CAAC;IAC7C,CAAC;IACD;;;OAGG;IACH,YAAY,CAAC,OAAO,GAAG;QACrB,gBAAgB,EAAE,KAAK;KACxB;QACC,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAA,yBAAa,GAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QAClE,OAAO,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BAAgB,CAAC,EAAE,EAAE,eAAY,CAAC,CAAC;IAC1E,CAAC;IAED,eAAe;IAEf,eAAe;QACb,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,cAAc,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IACzE,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,aAAa,CAAC,IAAI,6BAAM,CAAC,cAAc,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAC1E,CAAC;CACF;AAzED,gDAyEC"}
@@ -1,44 +1,24 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
19
4
  // SPDX-License-Identifier: Apache-2.0
20
- var selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
21
- var styles_selectors_js_1 = require("../../../expandable-section/styles.selectors.js");
22
- var styles_selectors_js_2 = require("../../../container/styles.selectors.js");
23
- var ExpandableSectionWrapper = /** @class */ (function (_super) {
24
- __extends(ExpandableSectionWrapper, _super);
25
- function ExpandableSectionWrapper() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- ExpandableSectionWrapper.prototype.findHeader = function () {
5
+ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
6
+ const styles_selectors_js_1 = require("../../../expandable-section/styles.selectors.js");
7
+ const styles_selectors_js_2 = require("../../../container/styles.selectors.js");
8
+ class ExpandableSectionWrapper extends selectors_1.ComponentWrapper {
9
+ findHeader() {
29
10
  return this.findByClassName(styles_selectors_js_1.default.header);
30
- };
31
- ExpandableSectionWrapper.prototype.findContent = function () {
11
+ }
12
+ findContent() {
32
13
  return this.findByClassName(styles_selectors_js_1.default.content);
33
- };
34
- ExpandableSectionWrapper.prototype.findExpandedContent = function () {
35
- return this.find(":scope > .".concat(styles_selectors_js_1.default['content-expanded'], ", :scope > .").concat(styles_selectors_js_2.default.content, " > .").concat(styles_selectors_js_1.default['content-expanded']));
36
- };
37
- ExpandableSectionWrapper.prototype.findExpandIcon = function () {
14
+ }
15
+ findExpandedContent() {
16
+ return this.find(`:scope > .${styles_selectors_js_1.default['content-expanded']}, :scope > .${styles_selectors_js_2.default.content} > .${styles_selectors_js_1.default['content-expanded']}`);
17
+ }
18
+ findExpandIcon() {
38
19
  return this.findByClassName(styles_selectors_js_1.default['icon-container']);
39
- };
40
- ExpandableSectionWrapper.rootSelector = styles_selectors_js_1.default.root;
41
- return ExpandableSectionWrapper;
42
- }(selectors_1.ComponentWrapper));
20
+ }
21
+ }
43
22
  exports.default = ExpandableSectionWrapper;
23
+ ExpandableSectionWrapper.rootSelector = styles_selectors_js_1.default.root;
44
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/expandable-section/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,uFAAqE;AACrE,8EAAqE;AACrE;IAAsD,4CAAgB;IAAtE;;IAcA,CAAC;IAZC,6CAAU,GAAV;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAE,CAAC;IAC9C,CAAC;IACD,8CAAW,GAAX;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IACD,sDAAmB,GAAnB;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,oBAAa,6BAAM,CAAC,kBAAkB,CAAC,yBAAe,6BAAe,CAAC,OAAO,iBAAO,6BAAM,CAAC,kBAAkB,CAAC,CAAE,CAAC,CAAC;IACrI,CAAC;IACD,iDAAc,GAAd;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,gBAAgB,CAAC,CAAE,CAAC;IACzD,CAAC;IAZM,qCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;IAapC,+BAAC;CAAA,AAdD,CAAsD,4BAAgB,GAcrE;kBAdoB,wBAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/expandable-section/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,yFAAqE;AACrE,gFAAqE;AACrE,MAAqB,wBAAyB,SAAQ,4BAAgB;IAEpE,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,mBAAmB;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,6BAAM,CAAC,kBAAkB,CAAC,eAAe,6BAAe,CAAC,OAAO,OAAO,6BAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;IACrI,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,gBAAgB,CAAC,CAAE,CAAC;IACzD,CAAC;;AAbH,2CAcC;AAbQ,qCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC"}
@@ -1,60 +1,40 @@
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("../../../flashbar/styles.selectors.js");
22
- var button_1 = require("../button");
23
- var FlashWrapper = /** @class */ (function (_super) {
24
- __extends(FlashWrapper, _super);
25
- function FlashWrapper() {
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("../../../flashbar/styles.selectors.js");
7
+ const button_1 = require("../button");
8
+ class FlashWrapper extends selectors_1.ComponentWrapper {
28
9
  /**
29
10
  * Returns the dismiss button.
30
11
  *
31
12
  * The dismiss button is only rendered when the `dismissible` property is set to `true`.
32
13
  */
33
- FlashWrapper.prototype.findDismissButton = function () {
34
- return this.findComponent(".".concat(styles_selectors_js_1.default['dismiss-button']), button_1.default);
35
- };
14
+ findDismissButton() {
15
+ return this.findComponent(`.${styles_selectors_js_1.default['dismiss-button']}`, button_1.default);
16
+ }
36
17
  /**
37
18
  * Returns the action slot.
38
19
  */
39
- FlashWrapper.prototype.findAction = function () {
20
+ findAction() {
40
21
  return this.findByClassName(styles_selectors_js_1.default['action-button-wrapper']);
41
- };
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
- FlashWrapper.prototype.findActionButton = function () {
48
- return this.findComponent(".".concat(styles_selectors_js_1.default['action-button']), button_1.default);
49
- };
50
- FlashWrapper.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['flash-header']);
52
- };
53
- FlashWrapper.prototype.findContent = function () {
33
+ }
34
+ findContent() {
54
35
  return this.findByClassName(styles_selectors_js_1.default['flash-content']);
55
- };
56
- FlashWrapper.rootSelector = styles_selectors_js_1.default['flash-list-item'];
57
- return FlashWrapper;
58
- }(selectors_1.ComponentWrapper));
36
+ }
37
+ }
59
38
  exports.default = FlashWrapper;
39
+ FlashWrapper.rootSelector = styles_selectors_js_1.default['flash-list-item'];
60
40
  //# sourceMappingURL=flash.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flash.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/flashbar/flash.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,6EAA2D;AAC3D,oCAAsC;AACtC;IAA0C,gCAAgB;IAA1D;;IAiCA,CAAC;IA9BC;;;;OAIG;IACH,wCAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,aAAa,CAAC,WAAI,6BAAM,CAAC,gBAAgB,CAAC,CAAE,EAAE,gBAAa,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,iCAAU,GAAV;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAC/D,CAAC;IAED;;;;OAIG;IACH,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;;AAhCH,+BAiCC;AAhCQ,yBAAY,GAAW,6BAAM,CAAC,iBAAiB,CAAC,CAAC"}
@@ -1,40 +1,20 @@
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("../../../flashbar/styles.selectors.js");
22
- var flash_1 = require("./flash");
23
- var FlashbarWrapper = /** @class */ (function (_super) {
24
- __extends(FlashbarWrapper, _super);
25
- function FlashbarWrapper() {
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("../../../flashbar/styles.selectors.js");
7
+ const flash_1 = require("./flash");
8
+ class FlashbarWrapper extends selectors_1.ComponentWrapper {
28
9
  /**
29
10
  * Returns the individual flashes of this flashbar.
30
11
  *
31
12
  * If the items are stacked, only the item at the top of the stack is returned.
32
13
  */
33
- FlashbarWrapper.prototype.findItems = function () {
34
- return this.findAllByClassName(styles_selectors_js_1.default['flash-list-item']).map(function (item) { return new flash_1.default(item.getElement()); });
35
- };
36
- FlashbarWrapper.rootSelector = styles_selectors_js_1.default.flashbar;
37
- return FlashbarWrapper;
38
- }(selectors_1.ComponentWrapper));
14
+ findItems() {
15
+ return this.findAllByClassName(styles_selectors_js_1.default['flash-list-item']).map(item => new flash_1.default(item.getElement()));
16
+ }
17
+ }
39
18
  exports.default = FlashbarWrapper;
19
+ FlashbarWrapper.rootSelector = styles_selectors_js_1.default.flashbar;
40
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/flashbar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgF;AAChF,6EAA2D;AAC3D,iCAAmC;AACnC;IAA6C,mCAAgB;IAA7D;;IAWA,CAAC;IARC;;;;OAIG;IACH,mCAAS,GAAT;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,eAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,EAAnC,CAAmC,CAAC,CAAC;IAC7G,CAAC;IATM,4BAAY,GAAW,6BAAM,CAAC,QAAQ,CAAC;IAUhD,sBAAC;CAAA,AAXD,CAA6C,4BAAgB,GAW5D;kBAXoB,eAAe"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/flashbar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgF;AAChF,+EAA2D;AAC3D,mCAAmC;AACnC,MAAqB,eAAgB,SAAQ,4BAAgB;IAG3D;;;;OAIG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,eAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC7G,CAAC;;AAVH,kCAWC;AAVQ,4BAAY,GAAW,6BAAM,CAAC,QAAQ,CAAC"}
@@ -1,46 +1,26 @@
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("../../../form/styles.selectors.js");
22
- var FormWrapper = /** @class */ (function (_super) {
23
- __extends(FormWrapper, _super);
24
- function FormWrapper() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- FormWrapper.prototype.findHeader = function () {
5
+ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
6
+ const styles_selectors_js_1 = require("../../../form/styles.selectors.js");
7
+ class FormWrapper extends selectors_1.ComponentWrapper {
8
+ findHeader() {
28
9
  return this.findByClassName(styles_selectors_js_1.default.header);
29
- };
30
- FormWrapper.prototype.findContent = function () {
10
+ }
11
+ findContent() {
31
12
  return this.findByClassName(styles_selectors_js_1.default.content);
32
- };
33
- FormWrapper.prototype.findError = function () {
13
+ }
14
+ findError() {
34
15
  return this.findByClassName(styles_selectors_js_1.default.error);
35
- };
36
- FormWrapper.prototype.findActions = function () {
16
+ }
17
+ findActions() {
37
18
  return this.findByClassName(styles_selectors_js_1.default.actions);
38
- };
39
- FormWrapper.prototype.findSecondaryActions = function () {
19
+ }
20
+ findSecondaryActions() {
40
21
  return this.findByClassName(styles_selectors_js_1.default['secondary-actions']);
41
- };
42
- FormWrapper.rootSelector = styles_selectors_js_1.default.root;
43
- return FormWrapper;
44
- }(selectors_1.ComponentWrapper));
22
+ }
23
+ }
45
24
  exports.default = FormWrapper;
25
+ FormWrapper.rootSelector = styles_selectors_js_1.default.root;
46
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/form/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,yEAAuD;AACvD;IAAyC,+BAAgB;IAAzD;;IAiBA,CAAC;IAfC,gCAAU,GAAV;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IACD,iCAAW,GAAX;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IACD,+BAAS,GAAT;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IACD,iCAAW,GAAX;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IACD,0CAAoB,GAApB;QACE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC3D,CAAC;IAfM,wBAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;IAgB5C,kBAAC;CAAA,AAjBD,CAAyC,4BAAgB,GAiBxD;kBAjBoB,WAAW"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/form/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,2EAAuD;AACvD,MAAqB,WAAY,SAAQ,4BAAgB;IAEvD,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IACD,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IACD,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IACD,oBAAoB;QAClB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC3D,CAAC;;AAhBH,8BAiBC;AAhBQ,wBAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
@@ -1,52 +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
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("../../../form-field/styles.selectors.js");
22
- var FormFieldWrapper = /** @class */ (function (_super) {
23
- __extends(FormFieldWrapper, _super);
24
- function FormFieldWrapper() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- FormFieldWrapper.prototype.findControl = function () {
5
+ const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
6
+ const styles_selectors_js_1 = require("../../../form-field/styles.selectors.js");
7
+ class FormFieldWrapper extends selectors_1.ComponentWrapper {
8
+ findControl() {
28
9
  return this.findByClassName(styles_selectors_js_1.default.control);
29
- };
30
- FormFieldWrapper.prototype.findLabel = function () {
10
+ }
11
+ findLabel() {
31
12
  return this.findByClassName(styles_selectors_js_1.default.label);
32
- };
33
- FormFieldWrapper.prototype.findInfo = function () {
13
+ }
14
+ findInfo() {
34
15
  return this.findByClassName(styles_selectors_js_1.default.info);
35
- };
36
- FormFieldWrapper.prototype.findConstraint = function () {
37
- return this.find(":scope > .".concat(styles_selectors_js_1.default.hints, " .").concat(styles_selectors_js_1.default.constraint));
38
- };
39
- FormFieldWrapper.prototype.findError = function () {
40
- return this.find(":scope > .".concat(styles_selectors_js_1.default.hints, " .").concat(styles_selectors_js_1.default.error, " .").concat(styles_selectors_js_1.default.error__message));
41
- };
42
- FormFieldWrapper.prototype.findDescription = function () {
16
+ }
17
+ findConstraint() {
18
+ return this.find(`:scope > .${styles_selectors_js_1.default.hints} .${styles_selectors_js_1.default.constraint}`);
19
+ }
20
+ findError() {
21
+ return this.find(`:scope > .${styles_selectors_js_1.default.hints} .${styles_selectors_js_1.default.error} .${styles_selectors_js_1.default.error__message}`);
22
+ }
23
+ findDescription() {
43
24
  return this.findByClassName(styles_selectors_js_1.default.description);
44
- };
45
- FormFieldWrapper.prototype.findSecondaryControl = function () {
25
+ }
26
+ findSecondaryControl() {
46
27
  return this.findByClassName(styles_selectors_js_1.default['secondary-control']);
47
- };
48
- FormFieldWrapper.rootSelector = styles_selectors_js_1.default.root;
49
- return FormFieldWrapper;
50
- }(selectors_1.ComponentWrapper));
28
+ }
29
+ }
51
30
  exports.default = FormFieldWrapper;
31
+ FormFieldWrapper.rootSelector = styles_selectors_js_1.default.root;
52
32
  //# sourceMappingURL=index.js.map