@salesforce/design-system-react 11.0.0-alpha.2 → 11.0.0-alpha.4

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 (503) hide show
  1. package/dist/cjs/components/combobox/combobox.cjs +1 -1
  2. package/dist/cjs/components/combobox/combobox.cjs.map +1 -1
  3. package/dist/cjs/components/date-picker/date-picker.cjs +1 -1
  4. package/dist/cjs/components/date-picker/date-picker.cjs.map +1 -1
  5. package/dist/cjs/components/date-picker/index.cjs +1 -1
  6. package/dist/cjs/components/date-picker/index.cjs.map +1 -1
  7. package/dist/cjs/components/illustration/check-props.cjs +2 -0
  8. package/dist/cjs/components/illustration/check-props.cjs.map +1 -0
  9. package/dist/cjs/components/illustration/index.cjs +1 -1
  10. package/dist/cjs/components/illustration/index.cjs.map +1 -1
  11. package/dist/cjs/components/index.cjs +1 -1
  12. package/dist/cjs/components/modal/trigger.cjs +1 -1
  13. package/dist/cjs/components/page-header/index.cjs.map +1 -1
  14. package/dist/cjs/components/pill/index.cjs +1 -1
  15. package/dist/cjs/components/pill/index.cjs.map +1 -1
  16. package/dist/cjs/components/pill-container/index.cjs +1 -1
  17. package/dist/cjs/components/pill-container/index.cjs.map +1 -1
  18. package/dist/cjs/components/pill-container/private/selected-listbox.cjs +1 -1
  19. package/dist/cjs/components/pill-container/private/selected-listbox.cjs.map +1 -1
  20. package/dist/cjs/components/{data-table → simple-data-table}/cell.cjs +1 -1
  21. package/dist/cjs/components/simple-data-table/cell.cjs.map +1 -0
  22. package/dist/cjs/components/{data-table → simple-data-table}/check-props.cjs +1 -1
  23. package/dist/cjs/components/simple-data-table/check-props.cjs.map +1 -0
  24. package/dist/cjs/components/simple-data-table/column-check-props.cjs.map +1 -0
  25. package/dist/cjs/components/simple-data-table/column.cjs +2 -0
  26. package/dist/cjs/components/simple-data-table/column.cjs.map +1 -0
  27. package/dist/cjs/components/simple-data-table/component.cjs +2 -0
  28. package/dist/cjs/components/simple-data-table/component.cjs.map +1 -0
  29. package/dist/cjs/components/simple-data-table/highlight-cell.cjs +2 -0
  30. package/dist/cjs/components/simple-data-table/highlight-cell.cjs.map +1 -0
  31. package/dist/cjs/components/simple-data-table/index.cjs +2 -0
  32. package/dist/cjs/components/simple-data-table/index.cjs.map +1 -0
  33. package/dist/cjs/components/simple-data-table/interactive-element.cjs.map +1 -0
  34. package/dist/cjs/components/simple-data-table/interactive-link.cjs.map +1 -0
  35. package/dist/cjs/components/simple-data-table/private/cell-context.cjs.map +1 -0
  36. package/dist/cjs/components/simple-data-table/private/cell-fixed.cjs.map +1 -0
  37. package/dist/cjs/components/simple-data-table/private/context-helper.cjs.map +1 -0
  38. package/dist/cjs/components/{data-table → simple-data-table}/private/head.cjs +1 -1
  39. package/dist/cjs/components/simple-data-table/private/head.cjs.map +1 -0
  40. package/dist/cjs/components/simple-data-table/private/header-cell.cjs +2 -0
  41. package/dist/cjs/components/simple-data-table/private/header-cell.cjs.map +1 -0
  42. package/dist/cjs/components/simple-data-table/private/link.cjs.map +1 -0
  43. package/dist/cjs/components/simple-data-table/private/mode.cjs.map +1 -0
  44. package/dist/cjs/components/simple-data-table/private/row.cjs +2 -0
  45. package/dist/cjs/components/simple-data-table/private/row.cjs.map +1 -0
  46. package/dist/cjs/components/simple-data-table/private/table-context.cjs.map +1 -0
  47. package/dist/cjs/components/{data-table → simple-data-table}/row-actions.cjs +1 -1
  48. package/dist/cjs/components/simple-data-table/row-actions.cjs.map +1 -0
  49. package/dist/cjs/components/simple-data-table.cjs +1 -0
  50. package/dist/cjs/components/tree/private/item.cjs +1 -1
  51. package/dist/cjs/components/tree/private/render-branch.cjs +1 -1
  52. package/dist/cjs/components/utilities/dialog/index.cjs +1 -1
  53. package/dist/cjs/components/utilities/dialog/index.cjs.map +1 -1
  54. package/dist/cjs/utilities/constants.cjs +1 -1
  55. package/dist/cjs/utilities/constants.cjs.map +1 -1
  56. package/dist/es/components/combobox/combobox.js +131 -117
  57. package/dist/es/components/combobox/combobox.js.map +1 -1
  58. package/dist/es/components/date-picker/date-picker.js +150 -145
  59. package/dist/es/components/date-picker/date-picker.js.map +1 -1
  60. package/dist/es/components/date-picker/index.js +6 -18
  61. package/dist/es/components/date-picker/index.js.map +1 -1
  62. package/dist/es/components/illustration/check-props.js +11 -0
  63. package/dist/es/components/illustration/check-props.js.map +1 -0
  64. package/dist/es/components/illustration/index.js +37 -25
  65. package/dist/es/components/illustration/index.js.map +1 -1
  66. package/dist/es/components/index.js +95 -121
  67. package/dist/es/components/modal/trigger.js +4 -4
  68. package/dist/es/components/page-header/index.js.map +1 -1
  69. package/dist/es/components/pill/index.js +32 -30
  70. package/dist/es/components/pill/index.js.map +1 -1
  71. package/dist/es/components/pill-container/index.js +1 -0
  72. package/dist/es/components/pill-container/index.js.map +1 -1
  73. package/dist/es/components/pill-container/private/selected-listbox.js +3 -1
  74. package/dist/es/components/pill-container/private/selected-listbox.js.map +1 -1
  75. package/dist/es/components/{data-table → simple-data-table}/cell.js +2 -2
  76. package/dist/es/components/simple-data-table/cell.js.map +1 -0
  77. package/dist/es/components/{data-table → simple-data-table}/check-props.js +2 -2
  78. package/dist/es/components/simple-data-table/check-props.js.map +1 -0
  79. package/dist/es/components/{data-table → simple-data-table}/column-check-props.js +1 -1
  80. package/dist/es/components/simple-data-table/column-check-props.js.map +1 -0
  81. package/dist/es/components/simple-data-table/column.js +8 -0
  82. package/dist/es/components/simple-data-table/column.js.map +1 -0
  83. package/dist/es/components/{data-table → simple-data-table}/component.js +6 -10
  84. package/dist/es/components/simple-data-table/component.js.map +1 -0
  85. package/dist/es/components/simple-data-table/highlight-cell.js +18 -0
  86. package/dist/es/components/simple-data-table/highlight-cell.js.map +1 -0
  87. package/dist/es/components/{data-table → simple-data-table}/index.js +78 -183
  88. package/dist/es/components/simple-data-table/index.js.map +1 -0
  89. package/dist/es/components/{data-table → simple-data-table}/interactive-element.js +1 -1
  90. package/dist/es/components/simple-data-table/interactive-element.js.map +1 -0
  91. package/dist/es/components/{data-table → simple-data-table}/interactive-link.js +1 -1
  92. package/dist/es/components/simple-data-table/interactive-link.js.map +1 -0
  93. package/dist/es/components/{data-table → simple-data-table}/private/cell-context.js +1 -1
  94. package/dist/es/components/simple-data-table/private/cell-context.js.map +1 -0
  95. package/dist/es/components/{data-table → simple-data-table}/private/cell-fixed.js +1 -1
  96. package/dist/es/components/simple-data-table/private/cell-fixed.js.map +1 -0
  97. package/dist/es/components/{data-table → simple-data-table}/private/context-helper.js +1 -1
  98. package/dist/es/components/simple-data-table/private/context-helper.js.map +1 -0
  99. package/dist/es/components/{data-table → simple-data-table}/private/head.js +2 -2
  100. package/dist/es/components/simple-data-table/private/head.js.map +1 -0
  101. package/dist/es/components/{data-table → simple-data-table}/private/header-cell.js +2 -2
  102. package/dist/es/components/simple-data-table/private/header-cell.js.map +1 -0
  103. package/dist/es/components/{data-table → simple-data-table}/private/link.js +1 -1
  104. package/dist/es/components/simple-data-table/private/link.js.map +1 -0
  105. package/dist/es/components/{data-table → simple-data-table}/private/mode.js +1 -1
  106. package/dist/es/components/simple-data-table/private/mode.js.map +1 -0
  107. package/dist/es/components/{data-table → simple-data-table}/private/row.js +6 -6
  108. package/dist/es/components/simple-data-table/private/row.js.map +1 -0
  109. package/dist/es/components/{data-table → simple-data-table}/private/table-context.js +1 -1
  110. package/dist/es/components/simple-data-table/private/table-context.js.map +1 -0
  111. package/dist/es/components/{data-table → simple-data-table}/row-actions.js +2 -2
  112. package/dist/es/components/simple-data-table/row-actions.js.map +1 -0
  113. package/dist/es/components/simple-data-table.js +2 -0
  114. package/dist/es/components/tree/private/item.js +4 -4
  115. package/dist/es/components/tree/private/render-branch.js +9 -9
  116. package/dist/es/components/utilities/dialog/index.js +2 -2
  117. package/dist/es/components/utilities/dialog/index.js.map +1 -1
  118. package/dist/es/utilities/constants.js +2 -2
  119. package/dist/es/utilities/constants.js.map +1 -1
  120. package/dist/types/components/combobox/combobox.d.ts.map +1 -1
  121. package/dist/types/components/date-picker/date-picker.d.ts.map +1 -1
  122. package/dist/types/components/date-picker/index.d.ts +6 -2
  123. package/dist/types/components/date-picker/index.d.ts.map +1 -1
  124. package/dist/types/components/illustration/index.d.ts.map +1 -1
  125. package/dist/types/components/index.d.ts +14 -66
  126. package/dist/types/components/index.d.ts.map +1 -1
  127. package/dist/types/components/page-header/index.d.ts +1 -1
  128. package/dist/types/components/page-header/index.d.ts.map +1 -1
  129. package/dist/types/components/pill/index.d.ts +4 -0
  130. package/dist/types/components/pill/index.d.ts.map +1 -1
  131. package/dist/types/components/pill-container/index.d.ts.map +1 -1
  132. package/dist/types/components/pill-container/private/selected-listbox.d.ts +7 -1
  133. package/dist/types/components/pill-container/private/selected-listbox.d.ts.map +1 -1
  134. package/dist/types/components/{data-table → simple-data-table}/cell.d.ts +5 -5
  135. package/dist/types/components/simple-data-table/cell.d.ts.map +1 -0
  136. package/dist/types/components/simple-data-table/check-props.d.ts.map +1 -0
  137. package/dist/types/components/simple-data-table/column-check-props.d.ts.map +1 -0
  138. package/dist/types/components/{data-table → simple-data-table}/column.d.ts +6 -6
  139. package/dist/types/components/simple-data-table/column.d.ts.map +1 -0
  140. package/dist/types/components/simple-data-table/highlight-cell.d.ts +14 -0
  141. package/dist/types/components/simple-data-table/highlight-cell.d.ts.map +1 -0
  142. package/dist/types/components/{data-table → simple-data-table}/index.d.ts +13 -40
  143. package/dist/types/components/simple-data-table/index.d.ts.map +1 -0
  144. package/dist/types/components/simple-data-table/interactive-element.d.ts.map +1 -0
  145. package/dist/types/components/simple-data-table/interactive-link.d.ts.map +1 -0
  146. package/dist/types/components/simple-data-table/private/cell-context.d.ts.map +1 -0
  147. package/dist/types/components/simple-data-table/private/cell-fixed.d.ts.map +1 -0
  148. package/dist/types/components/simple-data-table/private/context-helper.d.ts.map +1 -0
  149. package/dist/types/components/{data-table → simple-data-table}/private/head.d.ts +6 -6
  150. package/dist/types/components/simple-data-table/private/head.d.ts.map +1 -0
  151. package/dist/types/components/{data-table → simple-data-table}/private/header-cell.d.ts +3 -3
  152. package/dist/types/components/simple-data-table/private/header-cell.d.ts.map +1 -0
  153. package/dist/types/components/simple-data-table/private/link.d.ts.map +1 -0
  154. package/dist/types/components/simple-data-table/private/mode.d.ts.map +1 -0
  155. package/dist/types/components/{data-table → simple-data-table}/private/row.d.ts +11 -11
  156. package/dist/types/components/simple-data-table/private/row.d.ts.map +1 -0
  157. package/dist/types/components/simple-data-table/private/table-context.d.ts.map +1 -0
  158. package/dist/types/components/{data-table → simple-data-table}/row-actions.d.ts +5 -5
  159. package/dist/types/components/simple-data-table/row-actions.d.ts.map +1 -0
  160. package/dist/types/components/simple-data-table/simple-data-table.d.ts +15 -0
  161. package/dist/types/components/simple-data-table/simple-data-table.d.ts.map +1 -0
  162. package/dist/types/components/{data-table → simple-data-table}/types.d.ts +56 -71
  163. package/dist/types/components/simple-data-table/types.d.ts.map +1 -0
  164. package/dist/types/components/simple-data-table.d.ts +2 -0
  165. package/dist/types/utilities/constants.d.ts +7 -7
  166. package/dist/types/utilities/constants.d.ts.map +1 -1
  167. package/package.json +6 -2
  168. package/dist/cjs/components/app-launcher/check-props.cjs +0 -2
  169. package/dist/cjs/components/app-launcher/check-props.cjs.map +0 -1
  170. package/dist/cjs/components/app-launcher/component.cjs +0 -2
  171. package/dist/cjs/components/app-launcher/component.cjs.map +0 -1
  172. package/dist/cjs/components/app-launcher/expandable-section.cjs +0 -2
  173. package/dist/cjs/components/app-launcher/expandable-section.cjs.map +0 -1
  174. package/dist/cjs/components/app-launcher/index.cjs +0 -2
  175. package/dist/cjs/components/app-launcher/index.cjs.map +0 -1
  176. package/dist/cjs/components/app-launcher/link.cjs +0 -2
  177. package/dist/cjs/components/app-launcher/link.cjs.map +0 -1
  178. package/dist/cjs/components/app-launcher/tile.cjs +0 -2
  179. package/dist/cjs/components/app-launcher/tile.cjs.map +0 -1
  180. package/dist/cjs/components/app-launcher.cjs +0 -1
  181. package/dist/cjs/components/brand-band/index.cjs +0 -2
  182. package/dist/cjs/components/brand-band/index.cjs.map +0 -1
  183. package/dist/cjs/components/brand-band.cjs +0 -1
  184. package/dist/cjs/components/data-table/cell.cjs.map +0 -1
  185. package/dist/cjs/components/data-table/check-props.cjs.map +0 -1
  186. package/dist/cjs/components/data-table/column-check-props.cjs.map +0 -1
  187. package/dist/cjs/components/data-table/column.cjs +0 -2
  188. package/dist/cjs/components/data-table/column.cjs.map +0 -1
  189. package/dist/cjs/components/data-table/component.cjs +0 -2
  190. package/dist/cjs/components/data-table/component.cjs.map +0 -1
  191. package/dist/cjs/components/data-table/highlight-cell.cjs +0 -2
  192. package/dist/cjs/components/data-table/highlight-cell.cjs.map +0 -1
  193. package/dist/cjs/components/data-table/index.cjs +0 -2
  194. package/dist/cjs/components/data-table/index.cjs.map +0 -1
  195. package/dist/cjs/components/data-table/interactive-element.cjs.map +0 -1
  196. package/dist/cjs/components/data-table/interactive-link.cjs.map +0 -1
  197. package/dist/cjs/components/data-table/private/cell-context.cjs.map +0 -1
  198. package/dist/cjs/components/data-table/private/cell-fixed.cjs.map +0 -1
  199. package/dist/cjs/components/data-table/private/context-helper.cjs.map +0 -1
  200. package/dist/cjs/components/data-table/private/head.cjs.map +0 -1
  201. package/dist/cjs/components/data-table/private/header-cell.cjs +0 -2
  202. package/dist/cjs/components/data-table/private/header-cell.cjs.map +0 -1
  203. package/dist/cjs/components/data-table/private/link.cjs.map +0 -1
  204. package/dist/cjs/components/data-table/private/mode.cjs.map +0 -1
  205. package/dist/cjs/components/data-table/private/row.cjs +0 -2
  206. package/dist/cjs/components/data-table/private/row.cjs.map +0 -1
  207. package/dist/cjs/components/data-table/private/table-context.cjs.map +0 -1
  208. package/dist/cjs/components/data-table/row-actions.cjs.map +0 -1
  209. package/dist/cjs/components/data-table.cjs +0 -1
  210. package/dist/cjs/components/expression/condition.cjs +0 -2
  211. package/dist/cjs/components/expression/condition.cjs.map +0 -1
  212. package/dist/cjs/components/expression/formula.cjs +0 -2
  213. package/dist/cjs/components/expression/formula.cjs.map +0 -1
  214. package/dist/cjs/components/expression/group.cjs +0 -2
  215. package/dist/cjs/components/expression/group.cjs.map +0 -1
  216. package/dist/cjs/components/expression/index.cjs +0 -2
  217. package/dist/cjs/components/expression/index.cjs.map +0 -1
  218. package/dist/cjs/components/expression.cjs +0 -1
  219. package/dist/cjs/components/global-header/button.cjs +0 -2
  220. package/dist/cjs/components/global-header/button.cjs.map +0 -1
  221. package/dist/cjs/components/global-header/check-props.cjs +0 -2
  222. package/dist/cjs/components/global-header/check-props.cjs.map +0 -1
  223. package/dist/cjs/components/global-header/dropdown.cjs +0 -2
  224. package/dist/cjs/components/global-header/dropdown.cjs.map +0 -1
  225. package/dist/cjs/components/global-header/favorites.cjs +0 -2
  226. package/dist/cjs/components/global-header/favorites.cjs.map +0 -1
  227. package/dist/cjs/components/global-header/help.cjs +0 -2
  228. package/dist/cjs/components/global-header/help.cjs.map +0 -1
  229. package/dist/cjs/components/global-header/index.cjs +0 -2
  230. package/dist/cjs/components/global-header/index.cjs.map +0 -1
  231. package/dist/cjs/components/global-header/notifications.cjs +0 -2
  232. package/dist/cjs/components/global-header/notifications.cjs.map +0 -1
  233. package/dist/cjs/components/global-header/private/dropdown-trigger.cjs +0 -2
  234. package/dist/cjs/components/global-header/private/dropdown-trigger.cjs.map +0 -1
  235. package/dist/cjs/components/global-header/profile.cjs +0 -2
  236. package/dist/cjs/components/global-header/profile.cjs.map +0 -1
  237. package/dist/cjs/components/global-header/search.cjs +0 -2
  238. package/dist/cjs/components/global-header/search.cjs.map +0 -1
  239. package/dist/cjs/components/global-header/setup.cjs +0 -2
  240. package/dist/cjs/components/global-header/setup.cjs.map +0 -1
  241. package/dist/cjs/components/global-header/task.cjs +0 -2
  242. package/dist/cjs/components/global-header/task.cjs.map +0 -1
  243. package/dist/cjs/components/global-header.cjs +0 -1
  244. package/dist/cjs/components/global-navigation-bar/button.cjs +0 -2
  245. package/dist/cjs/components/global-navigation-bar/button.cjs.map +0 -1
  246. package/dist/cjs/components/global-navigation-bar/check-props.cjs +0 -2
  247. package/dist/cjs/components/global-navigation-bar/check-props.cjs.map +0 -1
  248. package/dist/cjs/components/global-navigation-bar/component.cjs +0 -2
  249. package/dist/cjs/components/global-navigation-bar/component.cjs.map +0 -1
  250. package/dist/cjs/components/global-navigation-bar/dropdown-trigger.cjs +0 -2
  251. package/dist/cjs/components/global-navigation-bar/dropdown-trigger.cjs.map +0 -1
  252. package/dist/cjs/components/global-navigation-bar/dropdown.cjs +0 -2
  253. package/dist/cjs/components/global-navigation-bar/dropdown.cjs.map +0 -1
  254. package/dist/cjs/components/global-navigation-bar/index.cjs +0 -2
  255. package/dist/cjs/components/global-navigation-bar/index.cjs.map +0 -1
  256. package/dist/cjs/components/global-navigation-bar/label.cjs +0 -2
  257. package/dist/cjs/components/global-navigation-bar/label.cjs.map +0 -1
  258. package/dist/cjs/components/global-navigation-bar/link.cjs +0 -2
  259. package/dist/cjs/components/global-navigation-bar/link.cjs.map +0 -1
  260. package/dist/cjs/components/global-navigation-bar/region.cjs +0 -2
  261. package/dist/cjs/components/global-navigation-bar/region.cjs.map +0 -1
  262. package/dist/cjs/components/global-navigation-bar.cjs +0 -1
  263. package/dist/cjs/components/location-map/index.cjs +0 -2
  264. package/dist/cjs/components/location-map/index.cjs.map +0 -1
  265. package/dist/cjs/components/location-map.cjs +0 -1
  266. package/dist/cjs/components/utilities/truncate/index.cjs +0 -2
  267. package/dist/cjs/components/utilities/truncate/index.cjs.map +0 -1
  268. package/dist/cjs/components/utilities/truncate.cjs +0 -1
  269. package/dist/cjs/utilities/warning/one-of-component.cjs +0 -2
  270. package/dist/cjs/utilities/warning/one-of-component.cjs.map +0 -1
  271. package/dist/es/components/app-launcher/check-props.js +0 -17
  272. package/dist/es/components/app-launcher/check-props.js.map +0 -1
  273. package/dist/es/components/app-launcher/component.js +0 -31
  274. package/dist/es/components/app-launcher/component.js.map +0 -1
  275. package/dist/es/components/app-launcher/expandable-section.js +0 -42
  276. package/dist/es/components/app-launcher/expandable-section.js.map +0 -1
  277. package/dist/es/components/app-launcher/index.js +0 -96
  278. package/dist/es/components/app-launcher/index.js.map +0 -1
  279. package/dist/es/components/app-launcher/link.js +0 -29
  280. package/dist/es/components/app-launcher/link.js.map +0 -1
  281. package/dist/es/components/app-launcher/tile.js +0 -101
  282. package/dist/es/components/app-launcher/tile.js.map +0 -1
  283. package/dist/es/components/app-launcher.js +0 -2
  284. package/dist/es/components/brand-band/index.js +0 -27
  285. package/dist/es/components/brand-band/index.js.map +0 -1
  286. package/dist/es/components/brand-band.js +0 -2
  287. package/dist/es/components/data-table/cell.js.map +0 -1
  288. package/dist/es/components/data-table/check-props.js.map +0 -1
  289. package/dist/es/components/data-table/column-check-props.js.map +0 -1
  290. package/dist/es/components/data-table/column.js +0 -8
  291. package/dist/es/components/data-table/column.js.map +0 -1
  292. package/dist/es/components/data-table/component.js.map +0 -1
  293. package/dist/es/components/data-table/highlight-cell.js +0 -18
  294. package/dist/es/components/data-table/highlight-cell.js.map +0 -1
  295. package/dist/es/components/data-table/index.js.map +0 -1
  296. package/dist/es/components/data-table/interactive-element.js.map +0 -1
  297. package/dist/es/components/data-table/interactive-link.js.map +0 -1
  298. package/dist/es/components/data-table/private/cell-context.js.map +0 -1
  299. package/dist/es/components/data-table/private/cell-fixed.js.map +0 -1
  300. package/dist/es/components/data-table/private/context-helper.js.map +0 -1
  301. package/dist/es/components/data-table/private/head.js.map +0 -1
  302. package/dist/es/components/data-table/private/header-cell.js.map +0 -1
  303. package/dist/es/components/data-table/private/link.js.map +0 -1
  304. package/dist/es/components/data-table/private/mode.js.map +0 -1
  305. package/dist/es/components/data-table/private/row.js.map +0 -1
  306. package/dist/es/components/data-table/private/table-context.js.map +0 -1
  307. package/dist/es/components/data-table/row-actions.js.map +0 -1
  308. package/dist/es/components/data-table.js +0 -2
  309. package/dist/es/components/expression/condition.js +0 -124
  310. package/dist/es/components/expression/condition.js.map +0 -1
  311. package/dist/es/components/expression/formula.js +0 -105
  312. package/dist/es/components/expression/formula.js.map +0 -1
  313. package/dist/es/components/expression/group.js +0 -153
  314. package/dist/es/components/expression/group.js.map +0 -1
  315. package/dist/es/components/expression/index.js +0 -33
  316. package/dist/es/components/expression/index.js.map +0 -1
  317. package/dist/es/components/expression.js +0 -2
  318. package/dist/es/components/global-header/button.js +0 -19
  319. package/dist/es/components/global-header/button.js.map +0 -1
  320. package/dist/es/components/global-header/check-props.js +0 -20
  321. package/dist/es/components/global-header/check-props.js.map +0 -1
  322. package/dist/es/components/global-header/dropdown.js +0 -33
  323. package/dist/es/components/global-header/dropdown.js.map +0 -1
  324. package/dist/es/components/global-header/favorites.js +0 -74
  325. package/dist/es/components/global-header/favorites.js.map +0 -1
  326. package/dist/es/components/global-header/help.js +0 -39
  327. package/dist/es/components/global-header/help.js.map +0 -1
  328. package/dist/es/components/global-header/index.js +0 -90
  329. package/dist/es/components/global-header/index.js.map +0 -1
  330. package/dist/es/components/global-header/notifications.js +0 -51
  331. package/dist/es/components/global-header/notifications.js.map +0 -1
  332. package/dist/es/components/global-header/private/dropdown-trigger.js +0 -50
  333. package/dist/es/components/global-header/private/dropdown-trigger.js.map +0 -1
  334. package/dist/es/components/global-header/profile.js +0 -47
  335. package/dist/es/components/global-header/profile.js.map +0 -1
  336. package/dist/es/components/global-header/search.js +0 -12
  337. package/dist/es/components/global-header/search.js.map +0 -1
  338. package/dist/es/components/global-header/setup.js +0 -39
  339. package/dist/es/components/global-header/setup.js.map +0 -1
  340. package/dist/es/components/global-header/task.js +0 -38
  341. package/dist/es/components/global-header/task.js.map +0 -1
  342. package/dist/es/components/global-header.js +0 -2
  343. package/dist/es/components/global-navigation-bar/button.js +0 -22
  344. package/dist/es/components/global-navigation-bar/button.js.map +0 -1
  345. package/dist/es/components/global-navigation-bar/check-props.js +0 -13
  346. package/dist/es/components/global-navigation-bar/check-props.js.map +0 -1
  347. package/dist/es/components/global-navigation-bar/component.js +0 -43
  348. package/dist/es/components/global-navigation-bar/component.js.map +0 -1
  349. package/dist/es/components/global-navigation-bar/dropdown-trigger.js +0 -66
  350. package/dist/es/components/global-navigation-bar/dropdown-trigger.js.map +0 -1
  351. package/dist/es/components/global-navigation-bar/dropdown.js +0 -34
  352. package/dist/es/components/global-navigation-bar/dropdown.js.map +0 -1
  353. package/dist/es/components/global-navigation-bar/index.js +0 -27
  354. package/dist/es/components/global-navigation-bar/index.js.map +0 -1
  355. package/dist/es/components/global-navigation-bar/label.js +0 -25
  356. package/dist/es/components/global-navigation-bar/label.js.map +0 -1
  357. package/dist/es/components/global-navigation-bar/link.js +0 -50
  358. package/dist/es/components/global-navigation-bar/link.js.map +0 -1
  359. package/dist/es/components/global-navigation-bar/region.js +0 -50
  360. package/dist/es/components/global-navigation-bar/region.js.map +0 -1
  361. package/dist/es/components/global-navigation-bar.js +0 -2
  362. package/dist/es/components/location-map/index.js +0 -75
  363. package/dist/es/components/location-map/index.js.map +0 -1
  364. package/dist/es/components/location-map.js +0 -2
  365. package/dist/es/components/utilities/truncate/index.js +0 -91
  366. package/dist/es/components/utilities/truncate/index.js.map +0 -1
  367. package/dist/es/components/utilities/truncate.js +0 -2
  368. package/dist/es/utilities/warning/one-of-component.js +0 -15
  369. package/dist/es/utilities/warning/one-of-component.js.map +0 -1
  370. package/dist/types/components/app-launcher/check-props.d.ts.map +0 -1
  371. package/dist/types/components/app-launcher/expandable-section.d.ts +0 -62
  372. package/dist/types/components/app-launcher/expandable-section.d.ts.map +0 -1
  373. package/dist/types/components/app-launcher/index.d.ts +0 -48
  374. package/dist/types/components/app-launcher/index.d.ts.map +0 -1
  375. package/dist/types/components/app-launcher/link.d.ts +0 -39
  376. package/dist/types/components/app-launcher/link.d.ts.map +0 -1
  377. package/dist/types/components/app-launcher/section.d.ts +0 -55
  378. package/dist/types/components/app-launcher/section.d.ts.map +0 -1
  379. package/dist/types/components/app-launcher/tile.d.ts +0 -74
  380. package/dist/types/components/app-launcher/tile.d.ts.map +0 -1
  381. package/dist/types/components/app-launcher.d.ts +0 -2
  382. package/dist/types/components/brand-band/check-props.d.ts +0 -3
  383. package/dist/types/components/brand-band/check-props.d.ts.map +0 -1
  384. package/dist/types/components/brand-band/index.d.ts +0 -39
  385. package/dist/types/components/brand-band/index.d.ts.map +0 -1
  386. package/dist/types/components/brand-band.d.ts +0 -2
  387. package/dist/types/components/bread-crumb/index.d.ts +0 -3
  388. package/dist/types/components/bread-crumb/index.d.ts.map +0 -1
  389. package/dist/types/components/bread-crumb.d.ts +0 -2
  390. package/dist/types/components/data-table/cell.d.ts.map +0 -1
  391. package/dist/types/components/data-table/check-props.d.ts +0 -3
  392. package/dist/types/components/data-table/check-props.d.ts.map +0 -1
  393. package/dist/types/components/data-table/column-check-props.d.ts.map +0 -1
  394. package/dist/types/components/data-table/column.d.ts.map +0 -1
  395. package/dist/types/components/data-table/data-table.d.ts +0 -15
  396. package/dist/types/components/data-table/data-table.d.ts.map +0 -1
  397. package/dist/types/components/data-table/highlight-cell.d.ts +0 -14
  398. package/dist/types/components/data-table/highlight-cell.d.ts.map +0 -1
  399. package/dist/types/components/data-table/index.d.ts.map +0 -1
  400. package/dist/types/components/data-table/interactive-element.d.ts.map +0 -1
  401. package/dist/types/components/data-table/interactive-link.d.ts.map +0 -1
  402. package/dist/types/components/data-table/private/cell-context.d.ts.map +0 -1
  403. package/dist/types/components/data-table/private/cell-fixed.d.ts.map +0 -1
  404. package/dist/types/components/data-table/private/context-helper.d.ts.map +0 -1
  405. package/dist/types/components/data-table/private/head.d.ts.map +0 -1
  406. package/dist/types/components/data-table/private/header-cell.d.ts.map +0 -1
  407. package/dist/types/components/data-table/private/link.d.ts.map +0 -1
  408. package/dist/types/components/data-table/private/mode.d.ts.map +0 -1
  409. package/dist/types/components/data-table/private/row.d.ts.map +0 -1
  410. package/dist/types/components/data-table/private/table-context.d.ts.map +0 -1
  411. package/dist/types/components/data-table/row-actions.d.ts.map +0 -1
  412. package/dist/types/components/data-table/types.d.ts.map +0 -1
  413. package/dist/types/components/data-table.d.ts +0 -2
  414. package/dist/types/components/expression/condition.d.ts +0 -105
  415. package/dist/types/components/expression/condition.d.ts.map +0 -1
  416. package/dist/types/components/expression/formula.d.ts +0 -88
  417. package/dist/types/components/expression/formula.d.ts.map +0 -1
  418. package/dist/types/components/expression/group.d.ts +0 -114
  419. package/dist/types/components/expression/group.d.ts.map +0 -1
  420. package/dist/types/components/expression/index.d.ts +0 -72
  421. package/dist/types/components/expression/index.d.ts.map +0 -1
  422. package/dist/types/components/expression.d.ts +0 -2
  423. package/dist/types/components/forms/input/index.d.ts +0 -3
  424. package/dist/types/components/forms/input/index.d.ts.map +0 -1
  425. package/dist/types/components/forms/input/search.d.ts +0 -3
  426. package/dist/types/components/forms/input/search.d.ts.map +0 -1
  427. package/dist/types/components/forms/input.d.ts +0 -2
  428. package/dist/types/components/forms/radio/index.d.ts +0 -3
  429. package/dist/types/components/forms/radio/index.d.ts.map +0 -1
  430. package/dist/types/components/forms/radio.d.ts +0 -2
  431. package/dist/types/components/forms/textarea/index.d.ts +0 -3
  432. package/dist/types/components/forms/textarea/index.d.ts.map +0 -1
  433. package/dist/types/components/forms/textarea.d.ts +0 -2
  434. package/dist/types/components/global-header/button.d.ts +0 -15
  435. package/dist/types/components/global-header/button.d.ts.map +0 -1
  436. package/dist/types/components/global-header/check-props.d.ts +0 -3
  437. package/dist/types/components/global-header/check-props.d.ts.map +0 -1
  438. package/dist/types/components/global-header/dropdown.d.ts +0 -59
  439. package/dist/types/components/global-header/dropdown.d.ts.map +0 -1
  440. package/dist/types/components/global-header/favorites.d.ts +0 -42
  441. package/dist/types/components/global-header/favorites.d.ts.map +0 -1
  442. package/dist/types/components/global-header/help.d.ts +0 -25
  443. package/dist/types/components/global-header/help.d.ts.map +0 -1
  444. package/dist/types/components/global-header/index.d.ts +0 -38
  445. package/dist/types/components/global-header/index.d.ts.map +0 -1
  446. package/dist/types/components/global-header/notifications.d.ts +0 -33
  447. package/dist/types/components/global-header/notifications.d.ts.map +0 -1
  448. package/dist/types/components/global-header/private/dropdown-trigger.d.ts +0 -78
  449. package/dist/types/components/global-header/private/dropdown-trigger.d.ts.map +0 -1
  450. package/dist/types/components/global-header/profile.d.ts +0 -38
  451. package/dist/types/components/global-header/profile.d.ts.map +0 -1
  452. package/dist/types/components/global-header/search.d.ts +0 -14
  453. package/dist/types/components/global-header/search.d.ts.map +0 -1
  454. package/dist/types/components/global-header/setup.d.ts +0 -25
  455. package/dist/types/components/global-header/setup.d.ts.map +0 -1
  456. package/dist/types/components/global-header/task.d.ts +0 -25
  457. package/dist/types/components/global-header/task.d.ts.map +0 -1
  458. package/dist/types/components/global-header.d.ts +0 -2
  459. package/dist/types/components/global-navigation-bar/button.d.ts +0 -18
  460. package/dist/types/components/global-navigation-bar/button.d.ts.map +0 -1
  461. package/dist/types/components/global-navigation-bar/check-props.d.ts +0 -3
  462. package/dist/types/components/global-navigation-bar/check-props.d.ts.map +0 -1
  463. package/dist/types/components/global-navigation-bar/dropdown-trigger.d.ts +0 -88
  464. package/dist/types/components/global-navigation-bar/dropdown-trigger.d.ts.map +0 -1
  465. package/dist/types/components/global-navigation-bar/dropdown.d.ts +0 -64
  466. package/dist/types/components/global-navigation-bar/dropdown.d.ts.map +0 -1
  467. package/dist/types/components/global-navigation-bar/index.d.ts +0 -35
  468. package/dist/types/components/global-navigation-bar/index.d.ts.map +0 -1
  469. package/dist/types/components/global-navigation-bar/label.d.ts +0 -25
  470. package/dist/types/components/global-navigation-bar/label.d.ts.map +0 -1
  471. package/dist/types/components/global-navigation-bar/link.d.ts +0 -84
  472. package/dist/types/components/global-navigation-bar/link.d.ts.map +0 -1
  473. package/dist/types/components/global-navigation-bar/region.d.ts +0 -36
  474. package/dist/types/components/global-navigation-bar/region.d.ts.map +0 -1
  475. package/dist/types/components/global-navigation-bar.d.ts +0 -2
  476. package/dist/types/components/location-map/index.d.ts +0 -49
  477. package/dist/types/components/location-map/index.d.ts.map +0 -1
  478. package/dist/types/components/location-map.d.ts +0 -2
  479. package/dist/types/components/navigation/index.d.ts +0 -3
  480. package/dist/types/components/navigation/index.d.ts.map +0 -1
  481. package/dist/types/components/navigation.d.ts +0 -2
  482. package/dist/types/components/popover-tooltip/index.d.ts +0 -3
  483. package/dist/types/components/popover-tooltip/index.d.ts.map +0 -1
  484. package/dist/types/components/popover-tooltip.d.ts +0 -2
  485. /package/dist/cjs/components/{data-table → simple-data-table}/column-check-props.cjs +0 -0
  486. /package/dist/cjs/components/{data-table → simple-data-table}/interactive-element.cjs +0 -0
  487. /package/dist/cjs/components/{data-table → simple-data-table}/interactive-link.cjs +0 -0
  488. /package/dist/cjs/components/{data-table → simple-data-table}/private/cell-context.cjs +0 -0
  489. /package/dist/cjs/components/{data-table → simple-data-table}/private/cell-fixed.cjs +0 -0
  490. /package/dist/cjs/components/{data-table → simple-data-table}/private/context-helper.cjs +0 -0
  491. /package/dist/cjs/components/{data-table → simple-data-table}/private/link.cjs +0 -0
  492. /package/dist/cjs/components/{data-table → simple-data-table}/private/mode.cjs +0 -0
  493. /package/dist/cjs/components/{data-table → simple-data-table}/private/table-context.cjs +0 -0
  494. /package/dist/types/components/{app-launcher → simple-data-table}/check-props.d.ts +0 -0
  495. /package/dist/types/components/{data-table → simple-data-table}/column-check-props.d.ts +0 -0
  496. /package/dist/types/components/{data-table → simple-data-table}/interactive-element.d.ts +0 -0
  497. /package/dist/types/components/{data-table → simple-data-table}/interactive-link.d.ts +0 -0
  498. /package/dist/types/components/{data-table → simple-data-table}/private/cell-context.d.ts +0 -0
  499. /package/dist/types/components/{data-table → simple-data-table}/private/cell-fixed.d.ts +0 -0
  500. /package/dist/types/components/{data-table → simple-data-table}/private/context-helper.d.ts +0 -0
  501. /package/dist/types/components/{data-table → simple-data-table}/private/link.d.ts +0 -0
  502. /package/dist/types/components/{data-table → simple-data-table}/private/mode.d.ts +0 -0
  503. /package/dist/types/components/{data-table → simple-data-table}/private/table-context.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-helper.js","names":[],"sources":["../../../../../components/simple-data-table/private/context-helper.ts"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport { useCallback } from 'react';\nimport { TableContextValue } from './table-context';\nimport { CellContextValue } from './cell-context';\n\ninterface ContextHelperResult {\n\ttabIndex: number | undefined;\n\thasFocus: boolean;\n\thandleFocus: () => void;\n\thandleKeyDown: (event: React.KeyboardEvent) => void;\n}\n\n/**\n * Calculates data table keyboard navigation state based on currently selected cell\n */\nexport default function useTableContextHelper(\n\ttableContext: TableContextValue,\n\tcellContext: CellContextValue,\n\tfixedLayout?: boolean\n): ContextHelperResult {\n\tconst isActive =\n\t\ttableContext.activeCell.rowIndex === cellContext.rowIndex &&\n\t\ttableContext.activeCell.columnIndex === cellContext.columnIndex;\n\n\tconst hasFocus = Boolean(\n\t\tfixedLayout && tableContext.tableHasFocus && isActive\n\t);\n\tconst { changeActiveCell, handleKeyDown: handleTableKeyDown } = tableContext;\n\n\tconst handleFocus = useCallback(() => {\n\t\tif (fixedLayout && tableContext.allowKeyboardNavigation) {\n\t\t\tchangeActiveCell(cellContext.rowIndex, cellContext.columnIndex);\n\t\t}\n\t}, [\n\t\tfixedLayout,\n\t\ttableContext.allowKeyboardNavigation,\n\t\tchangeActiveCell,\n\t\tcellContext.rowIndex,\n\t\tcellContext.columnIndex,\n\t]);\n\n\tconst handleKeyDown = useCallback(\n\t\t(event: React.KeyboardEvent) => {\n\t\t\tif (fixedLayout && tableContext.allowKeyboardNavigation) {\n\t\t\t\thandleTableKeyDown(event);\n\t\t\t}\n\t\t},\n\t\t[fixedLayout, tableContext.allowKeyboardNavigation, handleTableKeyDown]\n\t);\n\n\tconst tabIndex =\n\t\tfixedLayout &&\n\t\tisActive &&\n\t\t!tableContext.activeElement &&\n\t\ttableContext.allowKeyboardNavigation\n\t\t\t? 0\n\t\t\t: undefined;\n\n\treturn { tabIndex, hasFocus, handleFocus, handleKeyDown };\n}\n"],"mappings":";;AAiBA,SAAwB,EACvB,GACA,GACA,GACsB;CACtB,IAAM,IACL,EAAa,WAAW,aAAa,EAAY,YACjD,EAAa,WAAW,gBAAgB,EAAY,aAE/C,IAAW,GAChB,KAAe,EAAa,iBAAiB,IAExC,EAAE,qBAAkB,eAAe,MAAuB,GAE1D,IAAc,QAAkB;EACrC,AAAI,KAAe,EAAa,2BAC/B,EAAiB,EAAY,UAAU,EAAY,WAAW;CAEhE,GAAG;EACF;EACA,EAAa;EACb;EACA,EAAY;EACZ,EAAY;CACb,CAAC,GAEK,IAAgB,GACpB,MAA+B;EAC/B,AAAI,KAAe,EAAa,2BAC/B,EAAmB,CAAK;CAE1B,GACA;EAAC;EAAa,EAAa;EAAyB;CAAkB,CACvE;CAUA,OAAO;EAAE,UAPR,KACA,KACA,CAAC,EAAa,iBACd,EAAa,0BACV,IACA,KAAA;EAEe;EAAU;EAAa;CAAc;AACzD"}
@@ -1,4 +1,4 @@
1
- import { DATA_TABLE_HEAD as e } from "../../../utilities/constants.js";
1
+ import { SIMPLE_DATA_TABLE_HEAD as e } from "../../../utilities/constants.js";
2
2
  import t from "../../checkbox/index.js";
3
3
  import n from "./cell-context.js";
4
4
  import r from "./table-context.js";
@@ -9,7 +9,7 @@ import s from "./header-cell.js";
9
9
  import { useContext as c } from "react";
10
10
  import l from "classnames";
11
11
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
12
- //#region components/data-table/private/head.tsx
12
+ //#region components/simple-data-table/private/head.tsx
13
13
  var f = o(t), p = (e) => {
14
14
  let t = c(r), n = {
15
15
  columnIndex: e.columnIndex,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"head.js","names":[],"sources":["../../../../../components/simple-data-table/private/head.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useContext, SyntheticEvent, ReactNode } from 'react';\nimport classNames from 'classnames';\n\nimport CellFixed from './cell-fixed';\nimport Checkbox from '../../checkbox';\nimport HeaderCell from './header-cell';\nimport InteractiveElement from '../interactive-element';\nimport CellContext from './cell-context';\nimport TableContext from './table-context';\nimport useContextHelper from './context-helper';\n\nimport { SIMPLE_DATA_TABLE_HEAD } from '../../../utilities/constants';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\nconst InteractiveCheckbox = InteractiveElement(\n\tCheckbox as any\n) as React.ComponentType<any>;\n/* eslint-enable @typescript-eslint/no-explicit-any */\n\ninterface SimpleDataTableColumnConfig {\n\tCell: React.ComponentType<Record<string, unknown>>;\n\tprops: Record<string, unknown>;\n}\n\ninterface AssistiveText {\n\tactionsHeader?: string;\n\tselectAllRows?: string;\n\tselectRowGroup?: string;\n\tcolumnSort?: string;\n\tcolumnSortedAscending?: string;\n\tcolumnSortedDescending?: string;\n}\n\ninterface ActionsHeaderProps {\n\tassistiveText?: string;\n\tcolumnIndex: number;\n\tfixedLayout?: boolean;\n\tfixedHeader?: boolean;\n\theaderRefs?: (\n\t\tref: HTMLElement | null,\n\t\tindex: 'action' | 'select' | number\n\t) => void;\n}\n\nconst ActionsHeader: React.FC<ActionsHeaderProps> = (props) => {\n\tconst tableContext = useContext(TableContext);\n\tconst cellContext = { columnIndex: props.columnIndex, rowIndex: 0 };\n\tconst { tabIndex, hasFocus, handleFocus, handleKeyDown } = useContextHelper(\n\t\ttableContext,\n\t\tcellContext,\n\t\tprops.fixedLayout\n\t);\n\tconst { fixedHeader } = props;\n\n\tconst getContent = (style?: React.CSSProperties) => (\n\t\t<div className=\"slds-th__action\" style={style}>\n\t\t\t<span className=\"slds-assistive-text\">{props.assistiveText}</span>\n\t\t</div>\n\t);\n\n\treturn (\n\t\t<th\n\t\t\tclassName={classNames({ 'slds-has-focus': hasFocus })}\n\t\t\tref={(ref) => {\n\t\t\t\tif (props.headerRefs) {\n\t\t\t\t\tprops.headerRefs(ref, 'action');\n\t\t\t\t}\n\t\t\t\tif (ref && hasFocus) {\n\t\t\t\t\tref.focus();\n\t\t\t\t}\n\t\t\t}}\n\t\t\tscope=\"col\"\n\t\t\tstyle={{\n\t\t\t\theight: fixedHeader ? 0 : undefined,\n\t\t\t\tlineHeight: fixedHeader ? 0 : undefined,\n\t\t\t\twidth: '3.25rem',\n\t\t\t}}\n\t\t\tonFocus={handleFocus}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t\ttabIndex={tabIndex}\n\t\t>\n\t\t\t{getContent(\n\t\t\t\tfixedHeader\n\t\t\t\t\t? {\n\t\t\t\t\t\t\theight: 0,\n\t\t\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t\t\t\tpaddingBottom: 0,\n\t\t\t\t\t\t\tpaddingTop: 0,\n\t\t\t\t\t\t\tvisibility: 'hidden',\n\t\t\t\t\t\t}\n\t\t\t\t\t: undefined\n\t\t\t)}\n\t\t\t{fixedHeader ? (\n\t\t\t\t<CellFixed>\n\t\t\t\t\t{getContent({\n\t\t\t\t\t\tlineHeight: 1,\n\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t})}\n\t\t\t\t</CellFixed>\n\t\t\t) : null}\n\t\t</th>\n\t);\n};\n\ninterface SelectHeaderProps {\n\tallSelected?: boolean;\n\tassistiveText?: {\n\t\tselectAllRows?: string;\n\t\tselectRowGroup?: string;\n\t};\n\tcanSelectRows?: boolean | 'checkbox' | 'radio';\n\tfixedHeader?: boolean;\n\tfixedLayout?: boolean;\n\theaderRefs?: (\n\t\tref: HTMLElement | null,\n\t\tindex: 'action' | 'select' | number\n\t) => void;\n\tid?: string;\n\tindeterminateSelected?: boolean;\n\tonToggleAll?: (event: SyntheticEvent, data: { checked: boolean }) => void;\n}\n\nconst SelectHeader: React.FC<SelectHeaderProps> = (props) => {\n\tconst tableContext = useContext(TableContext);\n\tconst cellContext = { columnIndex: 0, rowIndex: 0 };\n\tconst { tabIndex, hasFocus, handleFocus, handleKeyDown } = useContextHelper(\n\t\ttableContext,\n\t\tcellContext,\n\t\tprops.fixedLayout\n\t);\n\tconst { fixedHeader, canSelectRows } = props;\n\n\tconst getContent = (\n\t\tidSuffix: string,\n\t\tstyle?: React.CSSProperties,\n\t\tariaHidden?: boolean\n\t): ReactNode => {\n\t\tif (canSelectRows === 'radio') {\n\t\t\tif (!ariaHidden) {\n\t\t\t\treturn (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName=\"slds-truncate slds-assistive-text\"\n\t\t\t\t\t\tid={`${props.id}-column-group-header-row-select`}\n\t\t\t\t\t\ttitle={props.assistiveText?.selectRowGroup}\n\t\t\t\t\t>\n\t\t\t\t\t\t{props.assistiveText?.selectRowGroup}\n\t\t\t\t\t</div>\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\n\t\tif (canSelectRows === true || canSelectRows === 'checkbox') {\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"slds-th__action slds-th__action_form\"\n\t\t\t\t\taria-hidden={ariaHidden ? true : undefined}\n\t\t\t\t\tstyle={style}\n\t\t\t\t>\n\t\t\t\t\t{!ariaHidden ? (\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\tid={`${props.id}-column-group-header-row-select`}\n\t\t\t\t\t\t\tclassName=\"slds-assistive-text\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{props.assistiveText?.selectAllRows}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t) : null}\n\t\t\t\t\t<InteractiveCheckbox\n\t\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\t\tlabel: props.assistiveText?.selectAllRows,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tchecked={props.allSelected}\n\t\t\t\t\t\tindeterminate={props.indeterminateSelected}\n\t\t\t\t\t\tid={`${props.id}-${idSuffix}`}\n\t\t\t\t\t\tname={!ariaHidden ? 'SelectAll' : undefined}\n\t\t\t\t\t\tonChange={props.onToggleAll}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t\treturn null;\n\t};\n\n\treturn (\n\t\t<th\n\t\t\tclassName={classNames('slds-text-align_right', {\n\t\t\t\t'slds-has-focus': hasFocus,\n\t\t\t})}\n\t\t\tref={(ref) => {\n\t\t\t\tif (props.headerRefs) {\n\t\t\t\t\tprops.headerRefs(ref, 'select');\n\t\t\t\t}\n\t\t\t\tif (ref && hasFocus) {\n\t\t\t\t\tref.focus();\n\t\t\t\t}\n\t\t\t}}\n\t\t\tscope=\"col\"\n\t\t\tstyle={{\n\t\t\t\theight: fixedHeader ? 0 : undefined,\n\t\t\t\tlineHeight: fixedHeader ? 0 : undefined,\n\t\t\t\twidth: '3.25rem',\n\t\t\t}}\n\t\t\tonFocus={handleFocus}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t\ttabIndex={tabIndex}\n\t\t>\n\t\t\t<CellContext.Provider value={cellContext}>\n\t\t\t\t{getContent(\n\t\t\t\t\t'SelectAll-fixed-header',\n\t\t\t\t\tfixedHeader\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\theight: 0,\n\t\t\t\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t\t\t\t\tpaddingBottom: 0,\n\t\t\t\t\t\t\t\tpaddingTop: 0,\n\t\t\t\t\t\t\t\tvisibility: 'hidden',\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: undefined,\n\t\t\t\t\tfixedHeader\n\t\t\t\t)}\n\t\t\t\t{fixedHeader ? (\n\t\t\t\t\t<CellFixed>\n\t\t\t\t\t\t{getContent('SelectAll', {\n\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\tjustifyContent: 'flex-end',\n\t\t\t\t\t\t\tlineHeight: 1,\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t})}\n\t\t\t\t\t</CellFixed>\n\t\t\t\t) : null}\n\t\t\t</CellContext.Provider>\n\t\t</th>\n\t);\n};\n\nexport interface SimpleDataTableHeadProps {\n\tassistiveText?: AssistiveText;\n\tallSelected?: boolean;\n\theaderRefs?: (\n\t\tref: HTMLElement | null,\n\t\tindex: 'action' | 'select' | number\n\t) => void;\n\tisHidden?: boolean;\n\tindeterminateSelected?: boolean;\n\tcanSelectRows?: boolean | 'checkbox' | 'radio';\n\tcolumns?: SimpleDataTableColumnConfig[];\n\tfixedHeader?: boolean;\n\tfixedLayout?: boolean;\n\tid?: string;\n\tonToggleAll?: (event: SyntheticEvent, data: { checked: boolean }) => void;\n\tonSort?: (\n\t\tdata: { property: string; sortDirection: 'asc' | 'desc' },\n\t\tevent: SyntheticEvent\n\t) => void;\n\tshowRowActions?: boolean;\n}\n\n/**\n * Used internally, provides header row rendering to the SimpleDataTable.\n */\nconst SimpleDataTableHead: React.FC<SimpleDataTableHeadProps> = (props) => {\n\tconst getActionsHeader = () => {\n\t\tif (props.showRowActions) {\n\t\t\treturn (\n\t\t\t\t<ActionsHeader\n\t\t\t\t\tassistiveText={props.assistiveText?.actionsHeader}\n\t\t\t\t\tcolumnIndex={\n\t\t\t\t\t\tprops.canSelectRows\n\t\t\t\t\t\t\t? (props.columns?.length ?? 0) + 1\n\t\t\t\t\t\t\t: (props.columns?.length ?? 0)\n\t\t\t\t\t}\n\t\t\t\t\tfixedLayout={props.fixedLayout}\n\t\t\t\t\tfixedHeader={props.fixedHeader}\n\t\t\t\t\theaderRefs={props.headerRefs}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t\treturn null;\n\t};\n\n\tconst getSelectHeader = () => {\n\t\tif (props.canSelectRows) {\n\t\t\treturn (\n\t\t\t\t<SelectHeader\n\t\t\t\t\tallSelected={props.allSelected}\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\tselectAllRows: props.assistiveText?.selectAllRows,\n\t\t\t\t\t\tselectRowGroup: props.assistiveText?.selectRowGroup,\n\t\t\t\t\t}}\n\t\t\t\t\tcanSelectRows={props.canSelectRows}\n\t\t\t\t\tfixedHeader={props.fixedHeader}\n\t\t\t\t\tfixedLayout={props.fixedLayout}\n\t\t\t\t\theaderRefs={props.headerRefs}\n\t\t\t\t\tid={props.id}\n\t\t\t\t\tindeterminateSelected={props.indeterminateSelected}\n\t\t\t\t\tonToggleAll={props.onToggleAll}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t\treturn null;\n\t};\n\n\tconst actionsHeader = getActionsHeader();\n\tconst selectHeader = getSelectHeader();\n\n\treturn (\n\t\t<thead\n\t\t\tclassName={classNames({\n\t\t\t\t'slds-assistive-text': props.isHidden,\n\t\t\t})}\n\t\t>\n\t\t\t<tr className=\"slds-line-height_reset\">\n\t\t\t\t{selectHeader}\n\t\t\t\t{props.columns?.map((column, index) => (\n\t\t\t\t\t<CellContext.Provider\n\t\t\t\t\t\tkey={`${props.id}-${column.props.property}`}\n\t\t\t\t\t\tvalue={{\n\t\t\t\t\t\t\tcolumnIndex: props.canSelectRows ? index + 1 : index,\n\t\t\t\t\t\t\trowIndex: 0,\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<HeaderCell\n\t\t\t\t\t\t\tassistiveText={props.assistiveText}\n\t\t\t\t\t\t\tcellRef={(ref) => {\n\t\t\t\t\t\t\t\tif (props.headerRefs) {\n\t\t\t\t\t\t\t\t\tprops.headerRefs(ref, index);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tfixedHeader={props.fixedHeader}\n\t\t\t\t\t\t\tfixedLayout={props.fixedLayout}\n\t\t\t\t\t\t\tid={`${props.id}-${column.props.property}`}\n\t\t\t\t\t\t\tonSort={props.onSort}\n\t\t\t\t\t\t\t{...column.props}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</CellContext.Provider>\n\t\t\t\t))}\n\t\t\t\t{actionsHeader}\n\t\t\t</tr>\n\t\t</thead>\n\t);\n};\n\nSimpleDataTableHead.displayName = SIMPLE_DATA_TABLE_HEAD;\n\nexport default SimpleDataTableHead;\n"],"mappings":";;;;;;;;;;;;AAiBA,IAAM,IAAsB,EAC3B,CACD,GA4BM,KAA+C,MAAU;CAC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,GAAD;EACC,aAAa,EAAM;EACnB,eAAe;GACd,eAAe,EAAM,eAAe;GACpC,gBAAgB,EAAM,eAAe;EACtC;EACA,eAAe,EAAM;EACrB,aAAa,EAAM;EACnB,aAAa,EAAM;EACnB,YAAY,EAAM;EAClB,IAAI,EAAM;EACV,uBAAuB,EAAM;EAC7B,aAAa,EAAM;CACnB,CAAA,IAGI,MAGF,IAAgB,EAAiB,GACjC,IAAe,EAAgB;CAErC,OACC,kBAAC,SAAD;EACC,WAAW,EAAW,EACrB,uBAAuB,EAAM,SAC9B,CAAC;EAED,UAAA,kBAAC,MAAD;GAAI,WAAU;GAAd,UAAA;IACE;IACA,EAAM,SAAS,KAAK,GAAQ,MAC5B,kBAAC,EAAY,UAAb;KAEC,OAAO;MACN,aAAa,EAAM,gBAAgB,IAAQ,IAAI;MAC/C,UAAU;KACX;KAEA,UAAA,kBAAC,GAAD;MACC,eAAe,EAAM;MACrB,UAAU,MAAQ;OACjB,AAAI,EAAM,cACT,EAAM,WAAW,GAAK,CAAK;MAE7B;MACA,aAAa,EAAM;MACnB,aAAa,EAAM;MACnB,IAAI,GAAG,EAAM,GAAG,GAAG,EAAO,MAAM;MAChC,QAAQ,EAAM;MACd,GAAI,EAAO;KACX,CAAA;IACoB,GAnBhB,GAAG,EAAM,GAAG,GAAG,EAAO,MAAM,UAmBZ,CACtB;IACA;GACE;;CACE,CAAA;AAET;AAEA,EAAoB,cAAc"}
@@ -1,4 +1,4 @@
1
- import { DATA_TABLE_COLUMN as e, DATA_TABLE_HEADER_CELL as t } from "../../../utilities/constants.js";
1
+ import { SIMPLE_DATA_TABLE_COLUMN as e, SIMPLE_DATA_TABLE_HEADER_CELL as t } from "../../../utilities/constants.js";
2
2
  import n from "../../icon/index.js";
3
3
  import r from "./cell-context.js";
4
4
  import i from "./table-context.js";
@@ -11,7 +11,7 @@ import u, { useContext as d, useEffect as f, useRef as p, useState as m } from "
11
11
  import h from "classnames";
12
12
  import { jsx as g, jsxs as _ } from "react/jsx-runtime";
13
13
  import v from "lodash.isfunction";
14
- //#region components/data-table/private/header-cell.tsx
14
+ //#region components/simple-data-table/private/header-cell.tsx
15
15
  var y = (t) => {
16
16
  let [y, b] = m(null), x = p(null), S = d(i), C = d(r), { tabIndex: w, hasFocus: T, handleFocus: E, handleKeyDown: D } = a(S, C, t.fixedLayout);
17
17
  f(() => {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-cell.js","names":[],"sources":["../../../../../components/simple-data-table/private/header-cell.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseContext,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\tSyntheticEvent,\n\tReactNode,\n} from 'react';\nimport classNames from 'classnames';\nimport isFunction from 'lodash.isfunction';\n\nimport CellFixed from './cell-fixed';\nimport Icon from '../../icon';\n\nimport checkProps from '../column-check-props';\n\nimport Link from './link';\nimport InteractiveLink from '../interactive-link';\nimport CellContext from './cell-context';\nimport TableContext from './table-context';\nimport useContextHelper from './context-helper';\n\nimport {\n\tSIMPLE_DATA_TABLE_HEADER_CELL,\n\tSIMPLE_DATA_TABLE_COLUMN,\n} from '../../../utilities/constants';\n\ninterface AssistiveText {\n\tactionsHeader?: string;\n\tcolumnSort?: string;\n\tcolumnSortedAscending?: string;\n\tcolumnSortedDescending?: string;\n\tselectAllRows?: string;\n\tselectRow?: string;\n}\n\nexport interface SimpleDataTableHeaderCellProps {\n\tassistiveText?: AssistiveText;\n\tcellRef?: (ref: HTMLElement | null) => void;\n\tfixedHeader?: boolean;\n\tfixedLayout?: boolean;\n\tid: string;\n\tisDefaultSortDescending?: boolean;\n\tisSorted?: boolean;\n\tlabel?: string | ReactNode;\n\tonSort?: (\n\t\tdata: { property: string; sortDirection: 'asc' | 'desc' },\n\t\tevent: SyntheticEvent\n\t) => void;\n\tproperty?: string;\n\tsortable?: boolean;\n\tsortDirection?: 'desc' | 'asc';\n\twidth?: string;\n\t/** @deprecated */\n\tassistiveTextForColumnSort?: string;\n\t/** @deprecated */\n\tassistiveTextForColumnSortedAscending?: string;\n\t/** @deprecated */\n\tassistiveTextForColumnSortedDescending?: string;\n}\n\n/**\n * Used internally, renders each individual column heading.\n */\nconst SimpleDataTableHeaderCell: React.FC<SimpleDataTableHeaderCellProps> = (\n\tprops\n) => {\n\tconst [sortDirection, setSortDirection] = useState<'asc' | 'desc' | null>(\n\t\tnull\n\t);\n\tconst prevIsSorted = useRef<boolean | null>(null);\n\tconst tableContext = useContext(TableContext);\n\tconst cellContext = useContext(CellContext);\n\tconst { tabIndex, hasFocus, handleFocus, handleKeyDown } = useContextHelper(\n\t\ttableContext,\n\t\tcellContext,\n\t\tprops.fixedLayout\n\t);\n\n\tuseEffect(() => {\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t(checkProps as any)(SIMPLE_DATA_TABLE_COLUMN, props);\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, []);\n\n\tuseEffect(() => {\n\t\tif (prevIsSorted.current === true && props.isSorted === false) {\n\t\t\tsetSortDirection(null);\n\t\t}\n\t\tprevIsSorted.current = props.isSorted ?? null;\n\t}, [props.isSorted]);\n\n\tconst handleSort = (e: SyntheticEvent) => {\n\t\te.preventDefault();\n\n\t\tconst oldSortDirection = props.sortDirection || sortDirection;\n\t\tconst newSortDirection = (function sortDirectionFunction(\n\t\t\tdirection: 'asc' | 'desc' | null,\n\t\t\tisDefaultSortDescending?: boolean\n\t\t): 'asc' | 'desc' {\n\t\t\tswitch (direction) {\n\t\t\t\tcase 'asc':\n\t\t\t\t\treturn 'desc';\n\t\t\t\tcase 'desc':\n\t\t\t\t\treturn 'asc';\n\t\t\t\tcase null:\n\t\t\t\t\treturn isDefaultSortDescending ? 'desc' : 'asc';\n\t\t\t\tdefault:\n\t\t\t\t\treturn 'asc';\n\t\t\t}\n\t\t})(oldSortDirection, props.isDefaultSortDescending);\n\n\t\tconst data = {\n\t\t\tproperty: props.property || '',\n\t\t\tsortDirection: newSortDirection,\n\t\t};\n\n\t\tsetSortDirection(newSortDirection);\n\n\t\tif (isFunction(props.onSort)) {\n\t\t\tprops.onSort(data, e);\n\t\t}\n\t};\n\n\tconst { fixedHeader, isSorted, label, sortable, width, property } = props;\n\n\tconst labelType = typeof label;\n\tconst effectiveSortDirection =\n\t\tprops.sortDirection ||\n\t\tsortDirection ||\n\t\t(props.isDefaultSortDescending ? 'desc' : undefined);\n\tconst expandedSortDirection =\n\t\teffectiveSortDirection === 'desc' ? 'descending' : 'ascending';\n\tconst ariaSort = isSorted ? expandedSortDirection : 'none';\n\n\tconst getFixedLayoutSubRenders = (isHidden?: boolean) => {\n\t\tif (sortable) {\n\t\t\tconst SortLink = isHidden ? Link : InteractiveLink;\n\t\t\treturn (\n\t\t\t\t<SortLink\n\t\t\t\t\thref=\"#\"\n\t\t\t\t\tclassName=\"slds-th__action slds-text-link_reset\"\n\t\t\t\t\tonClick={handleSort}\n\t\t\t\t\trole=\"button\"\n\t\t\t\t>\n\t\t\t\t\t<span className=\"slds-assistive-text\">\n\t\t\t\t\t\t{props.assistiveTextForColumnSort ||\n\t\t\t\t\t\t\tprops.assistiveText?.columnSort}{' '}\n\t\t\t\t\t</span>\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName=\"slds-truncate\"\n\t\t\t\t\t\ttitle={labelType === 'string' ? (label as string) : undefined}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</span>\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tclassName=\"slds-is-sortable__icon\"\n\t\t\t\t\t\tcategory=\"utility\"\n\t\t\t\t\t\tname={effectiveSortDirection === 'desc' ? 'arrowdown' : 'arrowup'}\n\t\t\t\t\t\tsize=\"x-small\"\n\t\t\t\t\t/>\n\t\t\t\t\t{effectiveSortDirection ? (\n\t\t\t\t\t\t<span className=\"slds-assistive-text\" aria-atomic=\"true\">\n\t\t\t\t\t\t\t{effectiveSortDirection === 'asc'\n\t\t\t\t\t\t\t\t? props.assistiveTextForColumnSortedAscending ||\n\t\t\t\t\t\t\t\t\tprops.assistiveText?.columnSortedAscending\n\t\t\t\t\t\t\t\t: props.assistiveTextForColumnSortedDescending ||\n\t\t\t\t\t\t\t\t\tprops.assistiveText?.columnSortedDescending}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t) : null}\n\t\t\t\t</SortLink>\n\t\t\t);\n\t\t}\n\t\treturn (\n\t\t\t<span\n\t\t\t\tclassName=\"slds-p-horizontal_x-small slds-th__action\"\n\t\t\t\tstyle={{ display: 'flex' }}\n\t\t\t>\n\t\t\t\t<span\n\t\t\t\t\tclassName=\"slds-truncate\"\n\t\t\t\t\ttitle={labelType === 'string' ? (label as string) : undefined}\n\t\t\t\t>\n\t\t\t\t\t{label}\n\t\t\t\t</span>\n\t\t\t</span>\n\t\t);\n\t};\n\n\t// `getFixedLayoutSubRenders` already returns a single element (a sort link or a\n\t// span), so return it directly rather than wrapping it in a Fragment. The\n\t// callers below `cloneElement` this result to inject `style`, which React only\n\t// applies to real elements — a Fragment silently drops it (and warns).\n\tconst getHeaderCellContent = (isHidden?: boolean): React.ReactElement =>\n\t\tprops.fixedLayout ? (\n\t\t\tgetFixedLayoutSubRenders(isHidden)\n\t\t) : (\n\t\t\t<div\n\t\t\t\tclassName=\"slds-truncate\"\n\t\t\t\ttitle={labelType === 'string' ? (label as string) : undefined}\n\t\t\t>\n\t\t\t\t{label}\n\t\t\t</div>\n\t\t);\n\n\treturn (\n\t\t<th\n\t\t\tid={`${props.id}-${property}-th`}\n\t\t\taria-label={labelType === 'string' ? (label as string) : undefined}\n\t\t\taria-sort={ariaSort}\n\t\t\tclassName={classNames({\n\t\t\t\t'slds-is-sortable': sortable,\n\t\t\t\t'slds-is-sorted': isSorted,\n\t\t\t\t[`slds-is-sorted_${effectiveSortDirection}`]: effectiveSortDirection,\n\t\t\t\t'slds-is-sorted_asc': isSorted && !effectiveSortDirection,\n\t\t\t\t'slds-has-focus': hasFocus,\n\t\t\t})}\n\t\t\tonFocus={handleFocus}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t\tref={(ref) => {\n\t\t\t\tif (props.cellRef) {\n\t\t\t\t\tprops.cellRef(ref);\n\t\t\t\t}\n\t\t\t\tif (ref && hasFocus) {\n\t\t\t\t\tref.focus();\n\t\t\t\t}\n\t\t\t}}\n\t\t\tscope=\"col\"\n\t\t\tstyle={\n\t\t\t\tfixedHeader || width\n\t\t\t\t\t? {\n\t\t\t\t\t\t\theight: fixedHeader ? 0 : undefined,\n\t\t\t\t\t\t\tlineHeight: fixedHeader ? 0 : undefined,\n\t\t\t\t\t\t\twidth: width || undefined,\n\t\t\t\t\t\t}\n\t\t\t\t\t: undefined\n\t\t\t}\n\t\t\ttabIndex={tabIndex}\n\t\t>\n\t\t\t{fixedHeader\n\t\t\t\t? React.cloneElement(\n\t\t\t\t\t\tgetHeaderCellContent(true) as React.ReactElement<{\n\t\t\t\t\t\t\tstyle?: React.CSSProperties;\n\t\t\t\t\t\t}>,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\theight: 0,\n\t\t\t\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t\t\t\t\tpaddingBottom: 0,\n\t\t\t\t\t\t\t\tpaddingTop: 0,\n\t\t\t\t\t\t\t\tvisibility: 'hidden' as const,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}\n\t\t\t\t\t)\n\t\t\t\t: getHeaderCellContent()}\n\t\t\t{fixedHeader ? (\n\t\t\t\t<CellFixed>\n\t\t\t\t\t{React.cloneElement(\n\t\t\t\t\t\tgetHeaderCellContent() as React.ReactElement<{\n\t\t\t\t\t\t\tstyle?: React.CSSProperties;\n\t\t\t\t\t\t\ttabIndex?: number;\n\t\t\t\t\t\t}>,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\tflex: '1 1 auto',\n\t\t\t\t\t\t\t\tlineHeight: 1.25,\n\t\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ttabIndex: sortable ? 0 : undefined,\n\t\t\t\t\t\t}\n\t\t\t\t\t)}\n\t\t\t\t</CellFixed>\n\t\t\t) : null}\n\t\t</th>\n\t);\n};\n\nSimpleDataTableHeaderCell.displayName = SIMPLE_DATA_TABLE_HEADER_CELL;\n\nexport default SimpleDataTableHeaderCell;\n"],"mappings":";;;;;;;;;;;;;;AAmEA,IAAM,KACL,MACI;CACJ,IAAM,CAAC,GAAe,KAAoB,EACzC,IACD,GACM,IAAe,EAAuB,IAAI,GAC1C,IAAe,EAAW,CAAY,GACtC,IAAc,EAAW,CAAW,GACpC,EAAE,aAAU,aAAU,gBAAa,qBAAkB,EAC1D,GACA,GACA,EAAM,WACP;CAQA,AANA,QAAgB;EAEf,EAAoB,GAA0B,CAAK;CAEpD,GAAG,CAAC,CAAC,GAEL,QAAgB;EAIf,AAHI,EAAa,YAAY,MAAQ,EAAM,aAAa,MACvD,EAAiB,IAAI,GAEtB,EAAa,UAAU,EAAM,YAAY;CAC1C,GAAG,CAAC,EAAM,QAAQ,CAAC;CAEnB,IAAM,KAAc,MAAsB;EACzC,EAAE,eAAe;EAGjB,IAAM,KAAoB,SACzB,GACA,GACiB;GACjB,QAAQ,GAAR;IACC,KAAK,OACJ,OAAO;IACR,KAAK,QACJ,OAAO;IACR,KAAK,MACJ,OAAO,IAA0B,SAAS;IAC3C,SACC,OAAO;GACT;EACD,EAAA,CAfyB,EAAM,iBAAiB,GAe3B,EAAM,uBAAuB,GAE5C,IAAO;GACZ,UAAU,EAAM,YAAY;GAC5B,eAAe;EAChB;EAIA,AAFA,EAAiB,CAAgB,GAE7B,EAAW,EAAM,MAAM,KAC1B,EAAM,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AAC;GACnC,kBAAkB;EACnB,CAAC;EACD,SAAS;EACT,WAAW;EACX,MAAM,MAAQ;GAIb,AAHI,EAAM,WACT,EAAM,QAAQ,CAAG,GAEd,KAAO,KACV,EAAI,MAAM;EAEZ;EACA,OAAM;EACN,OACC,KAAe,IACZ;GACA,QAAQ,IAAc,IAAI,KAAA;GAC1B,YAAY,IAAc,IAAI,KAAA;GAC9B,OAAO,KAAS,KAAA;EACjB,IACC,KAAA;EAEM;EA/BX,UAAA,CAiCE,IACE,EAAM,aACN,EAAqB,EAAI,GAGzB,EACC,OAAO;GACN,SAAS;GACT,QAAQ;GACR,UAAU;GACV,eAAe;GACf,YAAY;GACZ,YAAY;EACb,EACD,CACD,IACC,EAAqB,GACvB,IACA,kBAAC,GAAD,EAAA,UACE,EAAM,aACN,EAAqB,GAIrB;GACC,OAAO;IACN,YAAY;IACZ,SAAS;IACT,MAAM;IACN,YAAY;IACZ,OAAO;GACR;GACA,UAAU,IAAW,IAAI,KAAA;EAC1B,CACD,EACU,CAAA,IACR,IACD;;AAEN;AAEA,EAA0B,cAAc"}
@@ -1,7 +1,7 @@
1
1
  import e from "../../../utilities/key-code.js";
2
2
  import "react";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
- //#region components/data-table/private/link.tsx
4
+ //#region components/simple-data-table/private/link.tsx
5
5
  var n = (n) => {
6
6
  let { onRequestFocus: r, onOpen: i, onClose: a, requestFocus: o, children: s, onClick: c, ...l } = n;
7
7
  return /* @__PURE__ */ t("a", {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.js","names":[],"sources":["../../../../../components/simple-data-table/private/link.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { ReactNode, AnchorHTMLAttributes } from 'react';\nimport KEYS from '../../../utilities/key-code';\n\ninterface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n\tchildren?: ReactNode;\n\tonRequestFocus?: (node: HTMLAnchorElement) => void;\n\tonOpen?: () => void;\n\tonClose?: () => void;\n\trequestFocus?: boolean;\n}\n\nconst Link: React.FC<LinkProps> = (props) => {\n\t// Avoid passing props to <a> that it doesn't understand\n\tconst {\n\t\tonRequestFocus,\n\t\tonOpen,\n\t\tonClose,\n\t\trequestFocus,\n\t\tchildren,\n\t\tonClick,\n\t\t...passThroughProps\n\t} = props;\n\n\treturn (\n\t\t<a\n\t\t\tref={(node) => {\n\t\t\t\tif (node && requestFocus && onRequestFocus) {\n\t\t\t\t\tonRequestFocus(node);\n\t\t\t\t}\n\t\t\t}}\n\t\t\tonKeyDown={(event) => {\n\t\t\t\tif (event.keyCode === KEYS.ENTER && onClick) {\n\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t\t\t\tonClick(event as any);\n\t\t\t\t}\n\t\t\t}}\n\t\t\tonClick={onClick}\n\t\t\t{...passThroughProps}\n\t\t>\n\t\t\t{children}\n\t\t</a>\n\t);\n};\n\nexport default Link;\n"],"mappings":";;;;AAcA,IAAM,KAA6B,MAAU;CAE5C,IAAM,EACL,mBACA,WACA,YACA,iBACA,aACA,YACA,GAAG,MACA;CAEJ,OACC,kBAAC,KAAD;EACC,MAAM,MAAS;GACd,AAAI,KAAQ,KAAgB,KAC3B,EAAe,CAAI;EAErB;EACA,YAAY,MAAU;GACrB,AAAI,EAAM,YAAY,EAAK,SAAS,KAEnC,EAAQ,CAAY;EAEtB;EACS;EACT,GAAI;EAEH;CACC,CAAA;AAEL"}
@@ -1,4 +1,4 @@
1
- //#region components/data-table/private/mode.ts
1
+ //#region components/simple-data-table/private/mode.ts
2
2
  var e = Object.freeze({
3
3
  NAVIGATION: "navigation",
4
4
  ACTIONABLE: "actionable"
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mode.js","names":[],"sources":["../../../../../components/simple-data-table/private/mode.ts"],"sourcesContent":["const Mode = Object.freeze({\n\tNAVIGATION: 'navigation' as const,\n\tACTIONABLE: 'actionable' as const,\n});\n\nexport type ModeType = (typeof Mode)[keyof typeof Mode];\n\nexport default Mode;\n"],"mappings":";AAAA,IAAM,IAAO,OAAO,OAAO;CAC1B,YAAY;CACZ,YAAY;AACb,CAAC"}
@@ -1,4 +1,4 @@
1
- import { DATA_TABLE_CELL as e, DATA_TABLE_ROW as t, DATA_TABLE_ROW_ACTIONS as n } from "../../../utilities/constants.js";
1
+ import { SIMPLE_DATA_TABLE_CELL as e, SIMPLE_DATA_TABLE_ROW as t, SIMPLE_DATA_TABLE_ROW_ACTIONS as n } from "../../../utilities/constants.js";
2
2
  import r from "../../checkbox/index.js";
3
3
  import i from "../../radio/index.js";
4
4
  import a from "./cell-context.js";
@@ -9,7 +9,7 @@ import l, { useCallback as u, useContext as d, useMemo as f } from "react";
9
9
  import p from "classnames";
10
10
  import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
11
11
  import _ from "lodash.find";
12
- //#region components/data-table/private/row.tsx
12
+ //#region components/simple-data-table/private/row.tsx
13
13
  var v = c(r), y = c(i), b = (t) => {
14
14
  let c = d(o), b = f(() => ({
15
15
  rowIndex: t.rowIndex ?? 0,
@@ -21,7 +21,7 @@ var v = c(r), y = c(i), b = (t) => {
21
21
  return t.canSelectRows && (e["aria-selected"] = O ? "true" : "false"), e;
22
22
  }, [O, t.canSelectRows]), j = f(() => k ? /* @__PURE__ */ h(i, {
23
23
  assistiveText: { label: `${t.assistiveText?.selectRow} ${Number(t.index) + 1}` },
24
- "aria-labelledby": `${t.id}-SelectRow-label ${t.tableId}-SLDSDataTableHead-column-group-header-row-select`,
24
+ "aria-labelledby": `${t.id}-SelectRow-label ${t.tableId}-SLDSSimpleDataTableHead-column-group-header-row-select`,
25
25
  checked: O,
26
26
  className: "slds-m-right_x-small",
27
27
  id: `${t.id}-SelectRow`,
@@ -30,7 +30,7 @@ var v = c(r), y = c(i), b = (t) => {
30
30
  disabled: k
31
31
  }) : /* @__PURE__ */ h(y, {
32
32
  assistiveText: { label: `${t.assistiveText?.selectRow} ${Number(t.index) + 1}` },
33
- "aria-labelledby": `${t.id}-SelectRow-label ${t.tableId}-SLDSDataTableHead-column-group-header-row-select`,
33
+ "aria-labelledby": `${t.id}-SelectRow-label ${t.tableId}-SLDSSimpleDataTableHead-column-group-header-row-select`,
34
34
  checked: O,
35
35
  className: "slds-m-right_x-small",
36
36
  id: `${t.id}-SelectRow`,
@@ -48,7 +48,7 @@ var v = c(r), y = c(i), b = (t) => {
48
48
  t.tableId
49
49
  ]), M = f(() => k ? /* @__PURE__ */ h(r, {
50
50
  assistiveText: { label: `${t.assistiveText?.selectRow} ${Number(t.index) + 1}` },
51
- "aria-labelledby": `${t.id}-SelectRow-label ${t.tableId}-SLDSDataTableHead-column-group-header-row-select`,
51
+ "aria-labelledby": `${t.id}-SelectRow-label ${t.tableId}-SLDSSimpleDataTableHead-column-group-header-row-select`,
52
52
  checked: O,
53
53
  id: `${t.id}-SelectRow`,
54
54
  labelId: `${t.id}-SelectRow-label`,
@@ -56,7 +56,7 @@ var v = c(r), y = c(i), b = (t) => {
56
56
  disabled: k
57
57
  }) : /* @__PURE__ */ h(v, {
58
58
  assistiveText: { label: `${t.assistiveText?.selectRow} ${Number(t.index) + 1}` },
59
- "aria-labelledby": `${t.id}-SelectRow-label ${t.tableId}-SLDSDataTableHead-column-group-header-row-select`,
59
+ "aria-labelledby": `${t.id}-SelectRow-label ${t.tableId}-SLDSSimpleDataTableHead-column-group-header-row-select`,
60
60
  checked: O,
61
61
  id: `${t.id}-SelectRow`,
62
62
  labelId: `${t.id}-SelectRow-label`,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row.js","names":[],"sources":["../../../../../components/simple-data-table/private/row.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, {\n\tuseCallback,\n\tuseContext,\n\tuseMemo,\n\tSyntheticEvent,\n\tReactNode,\n} from 'react';\nimport classNames from 'classnames';\nimport find from 'lodash.find';\n\nimport Checkbox from '../../checkbox';\nimport Radio from '../../radio';\n\nimport {\n\tSIMPLE_DATA_TABLE_ROW,\n\tSIMPLE_DATA_TABLE_ROW_ACTIONS,\n\tSIMPLE_DATA_TABLE_CELL,\n} from '../../../utilities/constants';\n\nimport InteractiveElement from '../interactive-element';\nimport CellContext from './cell-context';\nimport TableContext from './table-context';\nimport useContextHelper from './context-helper';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\nconst InteractiveCheckbox = InteractiveElement(\n\tCheckbox as any\n) as React.ComponentType<any>;\nconst InteractiveRadio = InteractiveElement(\n\tRadio as any\n) as React.ComponentType<any>;\n/* eslint-enable @typescript-eslint/no-explicit-any */\n\ninterface SimpleDataTableItem {\n\tid: string;\n\t[key: string]: unknown;\n}\n\ninterface SimpleDataTableColumnConfig {\n\tCell: React.ComponentType<Record<string, unknown>>;\n\tprops: {\n\t\tproperty?: string;\n\t\ttruncate?: boolean;\n\t\tprimaryColumn?: boolean;\n\t\twidth?: string;\n\t\t[key: string]: unknown;\n\t};\n}\n\ninterface AssistiveText {\n\tselectRow?: string;\n\t[key: string]: unknown;\n}\n\nexport interface SimpleDataTableRowProps {\n\tassistiveText?: AssistiveText;\n\tcanSelectRows?: boolean | 'checkbox' | 'radio';\n\tclassName?: string;\n\tcolumns?: SimpleDataTableColumnConfig[];\n\tfixedLayout?: boolean;\n\tid: string;\n\tindex?: number;\n\titem: SimpleDataTableItem;\n\tonToggle?: (\n\t\titem: SimpleDataTableItem,\n\t\tselected: boolean,\n\t\tevent: SyntheticEvent\n\t) => void;\n\trowActions?: ReactNode;\n\tselection?: SimpleDataTableItem[];\n\tdisabledSelection?: SimpleDataTableItem[];\n\ttableId?: string;\n\trowIndex?: number;\n\tstacked?: boolean;\n}\n\n/**\n * Used internally, provides row rendering to the SimpleDataTable.\n */\nconst SimpleDataTableRow: React.FC<SimpleDataTableRowProps> = (props) => {\n\tconst tableContext = useContext(TableContext);\n\tconst selectRowCellContext = useMemo(\n\t\t() => ({\n\t\t\trowIndex: props.rowIndex ?? 0,\n\t\t\tcolumnIndex: 0,\n\t\t}),\n\t\t[props.rowIndex]\n\t);\n\tconst { tabIndex, hasFocus, handleFocus, handleKeyDown } = useContextHelper(\n\t\ttableContext,\n\t\tselectRowCellContext,\n\t\tprops.fixedLayout\n\t);\n\n\tconst { item, onToggle } = props;\n\tconst handleToggle = useCallback(\n\t\t(_e: SyntheticEvent, { checked }: { checked: boolean }) => {\n\t\t\tif (onToggle) {\n\t\t\t\tonToggle(item, checked, _e);\n\t\t\t}\n\t\t},\n\t\t[item, onToggle]\n\t);\n\n\tconst isSelected = !!find(props.selection, item);\n\tconst isDisabled =\n\t\tprops.disabledSelection && !!find(props.disabledSelection, item);\n\n\tconst ariaProps = useMemo(() => {\n\t\tconst result: { 'aria-selected'?: 'true' | 'false' } = {};\n\n\t\tif (props.canSelectRows) {\n\t\t\tresult['aria-selected'] = isSelected ? 'true' : 'false';\n\t\t}\n\t\treturn result;\n\t}, [isSelected, props.canSelectRows]);\n\n\tconst radioSelection = useMemo(\n\t\t() =>\n\t\t\tisDisabled ? (\n\t\t\t\t<Radio\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\tlabel: `${props.assistiveText?.selectRow} ${\n\t\t\t\t\t\t\tNumber(props.index) + 1\n\t\t\t\t\t\t}`,\n\t\t\t\t\t}}\n\t\t\t\t\taria-labelledby={`${props.id}-SelectRow-label ${props.tableId}-SLDSSimpleDataTableHead-column-group-header-row-select`}\n\t\t\t\t\tchecked={isSelected}\n\t\t\t\t\tclassName=\"slds-m-right_x-small\"\n\t\t\t\t\tid={`${props.id}-SelectRow`}\n\t\t\t\t\tlabelId={`${props.id}-SelectRow-label`}\n\t\t\t\t\tname={`${props.tableId}-SelectRow`}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<InteractiveRadio\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\tlabel: `${props.assistiveText?.selectRow} ${\n\t\t\t\t\t\t\tNumber(props.index) + 1\n\t\t\t\t\t\t}`,\n\t\t\t\t\t}}\n\t\t\t\t\taria-labelledby={`${props.id}-SelectRow-label ${props.tableId}-SLDSSimpleDataTableHead-column-group-header-row-select`}\n\t\t\t\t\tchecked={isSelected}\n\t\t\t\t\tclassName=\"slds-m-right_x-small\"\n\t\t\t\t\tid={`${props.id}-SelectRow`}\n\t\t\t\t\tlabelId={`${props.id}-SelectRow-label`}\n\t\t\t\t\tname={`${props.tableId}-SelectRow`}\n\t\t\t\t\tonChange={handleToggle}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t/>\n\t\t\t),\n\t\t[\n\t\t\thandleToggle,\n\t\t\tisSelected,\n\t\t\tisDisabled,\n\t\t\tprops.assistiveText?.selectRow,\n\t\t\tprops.id,\n\t\t\tprops.index,\n\t\t\tprops.tableId,\n\t\t]\n\t);\n\n\tconst checkboxSelection = useMemo(\n\t\t() =>\n\t\t\tisDisabled ? (\n\t\t\t\t<Checkbox\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\tlabel: `${props.assistiveText?.selectRow} ${\n\t\t\t\t\t\t\tNumber(props.index) + 1\n\t\t\t\t\t\t}`,\n\t\t\t\t\t}}\n\t\t\t\t\taria-labelledby={`${props.id}-SelectRow-label ${props.tableId}-SLDSSimpleDataTableHead-column-group-header-row-select`}\n\t\t\t\t\tchecked={isSelected}\n\t\t\t\t\tid={`${props.id}-SelectRow`}\n\t\t\t\t\tlabelId={`${props.id}-SelectRow-label`}\n\t\t\t\t\tname={`SelectRow${(props.index ?? 0) + 1}`}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<InteractiveCheckbox\n\t\t\t\t\tassistiveText={{\n\t\t\t\t\t\tlabel: `${props.assistiveText?.selectRow} ${\n\t\t\t\t\t\t\tNumber(props.index) + 1\n\t\t\t\t\t\t}`,\n\t\t\t\t\t}}\n\t\t\t\t\taria-labelledby={`${props.id}-SelectRow-label ${props.tableId}-SLDSSimpleDataTableHead-column-group-header-row-select`}\n\t\t\t\t\tchecked={isSelected}\n\t\t\t\t\tid={`${props.id}-SelectRow`}\n\t\t\t\t\tlabelId={`${props.id}-SelectRow-label`}\n\t\t\t\t\tname={`SelectRow${(props.index ?? 0) + 1}`}\n\t\t\t\t\tonChange={handleToggle}\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t/>\n\t\t\t),\n\t\t[\n\t\t\thandleToggle,\n\t\t\tisSelected,\n\t\t\tisDisabled,\n\t\t\tprops.assistiveText?.selectRow,\n\t\t\tprops.id,\n\t\t\tprops.index,\n\t\t\tprops.tableId,\n\t\t]\n\t);\n\n\treturn (\n\t\t<tr\n\t\t\t{...ariaProps}\n\t\t\tclassName={classNames(props.className, {\n\t\t\t\t'slds-hint-parent': props.rowActions,\n\t\t\t\t'slds-is-selected': props.canSelectRows && isSelected,\n\t\t\t\t'slds-has-focus': hasFocus,\n\t\t\t})}\n\t\t>\n\t\t\t{useMemo(\n\t\t\t\t() => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{props.canSelectRows ? (\n\t\t\t\t\t\t\t<td\n\t\t\t\t\t\t\t\trole={props.fixedLayout ? 'gridcell' : undefined}\n\t\t\t\t\t\t\t\tclassName=\"slds-text-align_right\"\n\t\t\t\t\t\t\t\tdata-label={props.stacked ? 'Select Row' : undefined}\n\t\t\t\t\t\t\t\tstyle={{ width: '3.25rem' }}\n\t\t\t\t\t\t\t\tonFocus={handleFocus}\n\t\t\t\t\t\t\t\tonKeyDown={handleKeyDown}\n\t\t\t\t\t\t\t\tref={(ref) => {\n\t\t\t\t\t\t\t\t\tif (ref && hasFocus) {\n\t\t\t\t\t\t\t\t\t\tref.focus();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\ttabIndex={tabIndex}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<CellContext.Provider value={selectRowCellContext}>\n\t\t\t\t\t\t\t\t\t{props.canSelectRows === 'radio'\n\t\t\t\t\t\t\t\t\t\t? radioSelection\n\t\t\t\t\t\t\t\t\t\t: checkboxSelection}\n\t\t\t\t\t\t\t\t</CellContext.Provider>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t{props.columns?.map((column, index) => {\n\t\t\t\t\t\t\tconst { Cell } = column;\n\t\t\t\t\t\t\tconst cellId = `${props.id}-${SIMPLE_DATA_TABLE_CELL}-${column.props.property}`;\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<CellContext.Provider\n\t\t\t\t\t\t\t\t\tkey={cellId}\n\t\t\t\t\t\t\t\t\tvalue={{\n\t\t\t\t\t\t\t\t\t\tcolumnIndex: props.canSelectRows ? index + 1 : index,\n\t\t\t\t\t\t\t\t\t\trowIndex: props.rowIndex ?? 0,\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Cell\n\t\t\t\t\t\t\t\t\t\t{...column.props}\n\t\t\t\t\t\t\t\t\t\tclassName={\n\t\t\t\t\t\t\t\t\t\t\tcolumn.props.truncate ? 'slds-truncate' : undefined\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tfixedLayout={props.fixedLayout}\n\t\t\t\t\t\t\t\t\t\trowHeader={column.props.primaryColumn}\n\t\t\t\t\t\t\t\t\t\tid={cellId}\n\t\t\t\t\t\t\t\t\t\titem={item}\n\t\t\t\t\t\t\t\t\t\twidth={column.props.width}\n\t\t\t\t\t\t\t\t\t\theaderId={item.headerId}\n\t\t\t\t\t\t\t\t\t\tcolumns={props.columns}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{item[column.props.property || '']}\n\t\t\t\t\t\t\t\t\t</Cell>\n\t\t\t\t\t\t\t\t</CellContext.Provider>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t})}\n\t\t\t\t\t\t<CellContext.Provider\n\t\t\t\t\t\t\tvalue={{\n\t\t\t\t\t\t\t\tcolumnIndex: props.canSelectRows\n\t\t\t\t\t\t\t\t\t? (props.columns?.length ?? 0) + 1\n\t\t\t\t\t\t\t\t\t: (props.columns?.length ?? 0),\n\t\t\t\t\t\t\t\trowIndex: props.rowIndex ?? 0,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{props.rowActions\n\t\t\t\t\t\t\t\t? React.cloneElement(\n\t\t\t\t\t\t\t\t\t\tprops.rowActions as React.ReactElement<{\n\t\t\t\t\t\t\t\t\t\t\tid?: string;\n\t\t\t\t\t\t\t\t\t\t\titem?: SimpleDataTableItem;\n\t\t\t\t\t\t\t\t\t\t\tfixedLayout?: boolean;\n\t\t\t\t\t\t\t\t\t\t}>,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tid: `${props.id}-${SIMPLE_DATA_TABLE_ROW_ACTIONS}`,\n\t\t\t\t\t\t\t\t\t\t\titem,\n\t\t\t\t\t\t\t\t\t\t\tfixedLayout: props.fixedLayout,\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t: null}\n\t\t\t\t\t\t</CellContext.Provider>\n\t\t\t\t\t</>\n\t\t\t\t),\n\t\t\t\t[\n\t\t\t\t\thandleFocus,\n\t\t\t\t\thandleKeyDown,\n\t\t\t\t\thasFocus,\n\t\t\t\t\titem,\n\t\t\t\t\ttabIndex,\n\t\t\t\t\tprops.canSelectRows,\n\t\t\t\t\tprops.columns,\n\t\t\t\t\tprops.fixedLayout,\n\t\t\t\t\tprops.id,\n\t\t\t\t\tprops.rowActions,\n\t\t\t\t\tprops.rowIndex,\n\t\t\t\t\tprops.stacked,\n\t\t\t\t\tselectRowCellContext,\n\t\t\t\t\tcheckboxSelection,\n\t\t\t\t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,5 +1,5 @@
1
1
  import e from "react";
2
- //#region components/data-table/private/table-context.tsx
2
+ //#region components/simple-data-table/private/table-context.tsx
3
3
  var t = e.createContext({
4
4
  activeCell: {
5
5
  rowIndex: 0,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-context.js","names":[],"sources":["../../../../../components/simple-data-table/private/table-context.tsx"],"sourcesContent":["import React from 'react';\n\nexport interface ActiveCell {\n\trowIndex: number;\n\tcolumnIndex: number;\n}\n\nexport interface TableContextValue {\n\tactiveCell: ActiveCell;\n\tactiveElement: string | null;\n\tmode: 'navigation' | 'actionable' | null;\n\ttableHasFocus: boolean;\n\tchangeActiveCell: (rowIndex: number, columnIndex: number) => void;\n\tchangeActiveElement: (elementId: string | null) => void;\n\thandleKeyDown: (event: React.KeyboardEvent) => void;\n\tregisterInteractiveElement: (\n\t\trowIndex: number,\n\t\tcolumnIndex: number,\n\t\telementId: string\n\t) => void;\n\tallowKeyboardNavigation: boolean;\n\tsetAllowKeyboardNavigation: (allow: boolean) => void;\n}\n\nconst defaultValue: TableContextValue = {\n\tactiveCell: { rowIndex: 0, columnIndex: 0 },\n\tactiveElement: null,\n\tmode: null,\n\ttableHasFocus: false,\n\tchangeActiveCell: () => {},\n\tchangeActiveElement: () => {},\n\thandleKeyDown: () => {},\n\tregisterInteractiveElement: () => {},\n\tallowKeyboardNavigation: true,\n\tsetAllowKeyboardNavigation: () => {},\n};\n\nconst TableContext = React.createContext<TableContextValue>(defaultValue);\n\nexport default TableContext;\n"],"mappings":";;AAqCA,IAAM,IAAe,EAAM,cAAiC;CAZ3D,YAAY;EAAE,UAAU;EAAG,aAAa;CAAE;CAC1C,eAAe;CACf,MAAM;CACN,eAAe;CACf,wBAAwB,CAAC;CACzB,2BAA2B,CAAC;CAC5B,qBAAqB,CAAC;CACtB,kCAAkC,CAAC;CACnC,yBAAyB;CACzB,kCAAkC,CAAC;AAGwB,CAAY"}
@@ -1,4 +1,4 @@
1
- import { DATA_TABLE_ROW_ACTIONS as e } from "../../utilities/constants.js";
1
+ import { SIMPLE_DATA_TABLE_ROW_ACTIONS as e } from "../../utilities/constants.js";
2
2
  import t from "../../utilities/event.js";
3
3
  import n from "../menu-dropdown/index.js";
4
4
  import r from "./private/cell-context.js";
@@ -9,7 +9,7 @@ import { useContext as s } from "react";
9
9
  import c from "classnames";
10
10
  import { jsx as l } from "react/jsx-runtime";
11
11
  import u from "lodash.isfunction";
12
- //#region components/data-table/row-actions.tsx
12
+ //#region components/simple-data-table/row-actions.tsx
13
13
  var d = o(n), f = ({ assistiveText: e = { icon: "Actions" }, noHint: n = !1, options: o = [], className: f, id: p, item: m, onAction: h, dropdown: g, fixedLayout: _ }) => {
14
14
  let v = s(i), y = s(r), { tabIndex: b, hasFocus: x, handleFocus: S, handleKeyDown: C } = a(v, y, _), w = (e) => {
15
15
  t.trap(e);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-actions.js","names":[],"sources":["../../../../components/simple-data-table/row-actions.tsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\nimport React, { useContext, ReactNode } from 'react';\nimport classNames from 'classnames';\nimport isFunction from 'lodash.isfunction';\n\nimport Dropdown from '../menu-dropdown';\n\nimport EventUtil from '../../utilities/event';\n\nimport InteractiveElement from './interactive-element';\nimport CellContext from './private/cell-context';\nimport TableContext from './private/table-context';\nimport useContextHelper from './private/context-helper';\n\nimport { SIMPLE_DATA_TABLE_ROW_ACTIONS } from '../../utilities/constants';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\nconst InteractiveDropdown = InteractiveElement(\n\tDropdown as any\n) as React.ComponentType<any>;\n/* eslint-enable @typescript-eslint/no-explicit-any */\n\nexport interface SimpleDataTableRowActionsProps {\n\t/** Description of the menu for screenreaders */\n\tassistiveText?: { icon?: string };\n\t/** Class names to be added to the actions menu */\n\tclassName?: string;\n\t/** HTML ID to be added to the actions menu */\n\tid?: string;\n\t/** SimpleDataTable row item */\n\titem?: Record<string, unknown>;\n\t/** Disable hint styling which changes the color of the dropdown svg on hover */\n\tnoHint?: boolean;\n\t/** Triggered when an item is selected */\n\tonAction?: (item: Record<string, unknown>, selection: unknown) => void;\n\t/** Dropdown options. See Dropdown. */\n\toptions?: unknown[];\n\t/** A Dropdown component. Props from this will be merged and override defaults. */\n\tdropdown?: ReactNode;\n\t/** Fixed layout mode */\n\tfixedLayout?: boolean;\n}\n\n/**\n * RowActions provide a mechanism for defining a menu to display alongside\n * each row in the SimpleDataTable.\n */\nconst SimpleDataTableRowActions: React.FC<SimpleDataTableRowActionsProps> = ({\n\tassistiveText = { icon: 'Actions' },\n\tnoHint = false,\n\toptions = [],\n\tclassName,\n\tid,\n\titem,\n\tonAction,\n\tdropdown,\n\tfixedLayout,\n}) => {\n\tconst tableContext = useContext(TableContext);\n\tconst cellContext = useContext(CellContext);\n\tconst { tabIndex, hasFocus, handleFocus, handleKeyDown } = useContextHelper(\n\t\ttableContext,\n\t\tcellContext,\n\t\tfixedLayout\n\t);\n\n\tconst handleClick = (e: React.MouseEvent) => {\n\t\tEventUtil.trap(e);\n\t};\n\n\tconst handleSelect = (selection: unknown) => {\n\t\tif (isFunction(onAction) && item) {\n\t\t\tonAction(item, selection);\n\t\t}\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\tif (dropdown && isFunction((dropdown as any).props?.onSelect)) {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t\t(dropdown as any).props.onSelect(selection);\n\t\t}\n\t};\n\n\tconst defaultDropdownProps = {\n\t\talign: 'right',\n\t\tbuttonClassName: 'slds-button_icon-x-small',\n\t\tbuttonVariant: 'icon',\n\t\ticonCategory: 'utility',\n\t\ticonName: 'down',\n\t\ticonSize: 'small',\n\t\ticonVariant: 'border-filled',\n\t\tassistiveText,\n\t\tclassName,\n\t\toptions,\n\t\thint: !noHint,\n\t\tid,\n\t};\n\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tlet dropdownProps: Record<string, any> = dropdown\n\t\t? // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t\t(dropdown as any).props\n\t\t: {};\n\tdropdownProps = {\n\t\t...defaultDropdownProps,\n\t\t...dropdownProps,\n\t\tonSelect: handleSelect,\n\t};\n\n\treturn (\n\t\t<td\n\t\t\tclassName={classNames({ 'slds-has-focus': hasFocus })}\n\t\t\tdata-label=\"Actions\"\n\t\t\tonClick={handleClick}\n\t\t\tstyle={{ width: '3.25rem' }}\n\t\t\tonFocus={handleFocus}\n\t\t\tonKeyDown={handleKeyDown}\n\t\t\tref={(ref) => {\n\t\t\t\tif (ref && hasFocus) {\n\t\t\t\t\tref.focus();\n\t\t\t\t}\n\t\t\t}}\n\t\t\trole={fixedLayout ? 'gridcell' : undefined}\n\t\t\ttabIndex={tabIndex}\n\t\t>\n\t\t\t<InteractiveDropdown {...dropdownProps} />\n\t\t</td>\n\t);\n};\n\nSimpleDataTableRowActions.displayName = SIMPLE_DATA_TABLE_ROW_ACTIONS;\n\nexport default SimpleDataTableRowActions;\n"],"mappings":";;;;;;;;;;;;AAmBA,IAAM,IAAsB,EAC3B,CACD,GA4BM,KAAuE,EAC5E,mBAAgB,EAAE,MAAM,UAAU,GAClC,YAAS,IACT,aAAU,CAAC,GACX,cACA,OACA,SACA,aACA,aACA,qBACK;CACL,IAAM,IAAe,EAAW,CAAY,GACtC,IAAc,EAAW,CAAW,GACpC,EAAE,aAAU,aAAU,gBAAa,qBAAkB,EAC1D,GACA,GACA,CACD,GAEM,KAAe,MAAwB;EAC5C,EAAU,KAAK,CAAC;CACjB,GAEM,KAAgB,MAAuB;EAK5C,AAJI,EAAW,CAAQ,KAAK,KAC3B,EAAS,GAAM,CAAS,GAGrB,KAAY,EAAY,EAAiB,OAAO,QAAQ,KAE3D,EAAkB,MAAM,SAAS,CAAS;CAE5C,GAEM,IAAuB;EAC5B,OAAO;EACP,iBAAiB;EACjB,eAAe;EACf,cAAc;EACd,UAAU;EACV,UAAU;EACV,aAAa;EACb;EACA;EACA;EACA,MAAM,CAAC;EACP;CACD,GAGI,IAAqC,IAEtC,EAAiB,QACjB,CAAC;CAOJ,OANA,IAAgB;EACf,GAAG;EACH,GAAG;EACH,UAAU;CACX,GAGC,kBAAC,MAAD;EACC,WAAW,EAAW,EAAE,kBAAkB,EAAS,CAAC;EACpD,cAAW;EACX,SAAS;EACT,OAAO,EAAE,OAAO,UAAU;EAC1B,SAAS;EACT,WAAW;EACX,MAAM,MAAQ;GACb,AAAI,KAAO,KACV,EAAI,MAAM;EAEZ;EACA,MAAM,IAAc,aAAa,KAAA;EACvB;EAEV,UAAA,kBAAC,GAAD,EAAqB,GAAI,EAAgB,CAAA;CACtC,CAAA;AAEN;AAEA,EAA0B,cAAc"}
@@ -0,0 +1,2 @@
1
+ export * from './simple-data-table/index.js';
2
+ export { default } from './simple-data-table/index.js';
@@ -2,8 +2,8 @@ import { TREE_ITEM as e } from "../../../utilities/constants.js";
2
2
  import t from "../../../utilities/event.js";
3
3
  import n from "../../../utilities/key-code.js";
4
4
  import r from "../../button/index.js";
5
- import i from "../../utilities/highlighter/index.js";
6
- import a from "../../../utilities/key-callbacks.js";
5
+ import i from "../../../utilities/key-callbacks.js";
6
+ import a from "../../utilities/highlighter/index.js";
7
7
  import "react";
8
8
  import o from "classnames";
9
9
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
@@ -69,7 +69,7 @@ var d = ({ event: e, props: n, fromFocus: r }) => {
69
69
  props: t
70
70
  });
71
71
  }, v = (e, t) => {
72
- a(e, { callbacks: {
72
+ i(e, { callbacks: {
73
73
  [n.DOWN]: { callback: (e) => m(e, t) },
74
74
  [n.UP]: { callback: (e) => h(e, t) },
75
75
  [n.LEFT]: { callback: (e) => g(e, t) },
@@ -114,7 +114,7 @@ var d = ({ event: e, props: n, fromFocus: r }) => {
114
114
  disabled: !0
115
115
  }), /* @__PURE__ */ s("span", {
116
116
  className: "slds-size_1-of-1",
117
- children: /* @__PURE__ */ s(i, {
117
+ children: /* @__PURE__ */ s(a, {
118
118
  search: e.searchTerm,
119
119
  className: "slds-tree__item-label slds-truncate",
120
120
  children: e.label
@@ -1,8 +1,8 @@
1
1
  import e from "../../../utilities/event.js";
2
2
  import t from "../../../utilities/key-code.js";
3
3
  import n from "../../button/index.js";
4
- import r from "../../utilities/highlighter/index.js";
5
- import i from "../../../utilities/key-callbacks.js";
4
+ import r from "../../../utilities/key-callbacks.js";
5
+ import i from "../../utilities/highlighter/index.js";
6
6
  import "react";
7
7
  import a from "classnames";
8
8
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
@@ -85,7 +85,7 @@ var u = (t, n) => {
85
85
  props: t
86
86
  });
87
87
  }, y = (e, n) => {
88
- i(e, { callbacks: {
88
+ r(e, { callbacks: {
89
89
  [t.DOWN]: { callback: (e) => m(e, n) },
90
90
  [t.UP]: { callback: (e) => h(e, n) },
91
91
  [t.RIGHT]: { callback: (e) => g(e, n) },
@@ -102,7 +102,7 @@ var u = (t, n) => {
102
102
  let t = e.selectedNodeIndexes.length === 0 && e.treeIndex === e.flattenedNodes[0]?.treeIndex;
103
103
  return e.treeIndex === e.focusedNodeIndex || t ? 0 : -1;
104
104
  }, S = (e, t) => {
105
- let i = t.node.expanded, c = t.node.selected, l = t.treeIndex === t.focusedNodeIndex, f = t.node.loading, p = /* @__PURE__ */ s("div", {
105
+ let r = t.node.expanded, c = t.node.selected, l = t.treeIndex === t.focusedNodeIndex, f = t.node.loading, p = /* @__PURE__ */ s("div", {
106
106
  style: {
107
107
  display: "block",
108
108
  paddingLeft: `${1.5 * t.level + 1.5}rem`,
@@ -136,7 +136,7 @@ var u = (t, n) => {
136
136
  ]
137
137
  }), m = t.node.assistiveText || (typeof t.node.label == "string" ? t.node.label : null), h = {
138
138
  "aria-level": t.level,
139
- "aria-expanded": i ? "true" : "false",
139
+ "aria-expanded": r ? "true" : "false",
140
140
  "aria-label": t.node.nodes && t.node.nodes.length > 0 ? m : void 0
141
141
  };
142
142
  return /* @__PURE__ */ s("li", {
@@ -169,7 +169,7 @@ var u = (t, n) => {
169
169
  }), /* @__PURE__ */ o("span", {
170
170
  className: "slds-size_1-of-1",
171
171
  id: `${t.htmlId}__label`,
172
- children: /* @__PURE__ */ o(r, {
172
+ children: /* @__PURE__ */ o(i, {
173
173
  search: t.searchTerm,
174
174
  className: "slds-tree__item-label slds-truncate",
175
175
  children: t.label
@@ -179,12 +179,12 @@ var u = (t, n) => {
179
179
  f ? p : null,
180
180
  /* @__PURE__ */ o("ul", {
181
181
  className: a({
182
- "slds-is-expanded": i,
183
- "slds-is-collapsed": !i
182
+ "slds-is-expanded": r,
183
+ "slds-is-collapsed": !r
184
184
  }),
185
185
  role: "group",
186
186
  "aria-labelledby": `${t.htmlId}__label`,
187
- children: i && !f ? e : null
187
+ children: r && !f ? e : null
188
188
  })
189
189
  ]
190
190
  });
@@ -87,7 +87,7 @@ var S = class extends p.Component {
87
87
  (this.props.position === "absolute" || this.props.position === "relative") && this.handleOpen();
88
88
  }
89
89
  componentDidUpdate(e, t) {
90
- this.floatingUpdate && this.floatingUpdate(), this.state.triggerPopperJS === !0 && t.triggerPopperJS === !1 && (this.props.position === "absolute" || this.props.position === "overflowBoundaryElement") && this.dialogContent && this.props.onRequestTargetElement() && this.createPopper();
90
+ this.floatingUpdate && (e.align !== this.props.align || e.direction !== this.props.direction || e.hasStaticAlignment !== this.props.hasStaticAlignment) && this.floatingUpdate(), this.state.triggerPopperJS === !0 && t.triggerPopperJS === !1 && (this.props.position === "absolute" || this.props.position === "overflowBoundaryElement") && this.dialogContent && this.props.onRequestTargetElement() && this.createPopper();
91
91
  }
92
92
  componentWillUnmount() {
93
93
  this.props.variant === "popover" && (l.teardownScopedFocus(), l.returnFocusToStoredElement()), (this.props.position === "absolute" || this.props.position === "overflowBoundaryElement") && this.destroyPopper(), this.handleClose(void 0, { componentWillUnmount: !0 });
@@ -169,7 +169,7 @@ var S = class extends p.Component {
169
169
  (!this.state.popperData || !x(e.offsets, this.state.popperData.offsets) || e.placement !== this.state.popperData.placement) && this.setState({ popperData: e });
170
170
  });
171
171
  };
172
- this.cleanupFloating = _(e, t, n), this.floatingUpdate = n, n();
172
+ this.cleanupFloating = _(e, t, n), this.floatingUpdate = n;
173
173
  };
174
174
  destroyPopper = () => {
175
175
  this.cleanupFloating &&= (this.cleanupFloating(), null), this.floatingUpdate = null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../components/utilities/dialog/index.jsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\nimport React from 'react';\n\nimport PropTypes from 'prop-types';\n\nimport { computePosition, autoUpdate, flip, shift } from '@floating-ui/dom';\nimport { dequal as isEqual } from 'dequal';\n\n// ### classNames\n// [github.com/JedWatson/classnames](https://github.com/JedWatson/classnames)\n// This project uses `classnames`, \"a simple javascript utility for conditionally\n// joining classNames together.\"\nimport classNames from 'classnames';\n\nimport Portal from './portal';\nimport EventUtil from '../../../utilities/event';\nimport KEYS from '../../../utilities/key-code';\nimport DOMElementFocus from '../../../utilities/dom-element-focus';\nimport {\n\tgetNubbinMargins,\n\tgetNubbinClassName,\n\tmapPropToPopperPlacement,\n} from '../../../utilities/dialog-helpers';\n\nimport { DIALOG } from '../../../utilities/constants';\n\n// #### Dialog doesn't pass down <IconSettings> context so repassing it here.\nimport IconSettings, { IconSettingsContext } from '../../icon-settings';\n// eslint-disable-next-line camelcase\nimport UNSAFE_DirectionSettings, { DIRECTIONS } from '../UNSAFE_direction';\nimport LanguageDirection from '../UNSAFE_direction/private/language-direction';\n\n/*\n * A Dialog is content that is separate from the typical flow of a page. It typically overlays other elements in the document flow. This is achieved with elevation (`z-index`) and one of the following: relative position, absolute position, or a new top-level React render tree (portal). A boundary element is a scrolling ancestor element or the edge of the browser (window/viewport). This element typically has an overflow (overflow-y/overflow-x) style that is scroll, hidden, or auto. Inverted placement is the flipping of the overlay element from top to bottom or left to right in order stay within a boundary element.\n *\n * * Dropdown menu (Combobox, DatePicker, et al.) placement is typically bottom-aligned and should be allowed to invert its placement when inside a boundary element this often happens within a modal. Dropdowns should not overflow boundary elements , since most boundary elements scroll vertically and have space for the menu.\n *\n * * If they are hidden, left and right placed overlay elements (such as Popover and Tooltip) should be placed within a portal element attached to the DOM <body>, but styled to align to its target/trigger. Since scrolling typically occurs on the vertical axis, this allows them to overflow boundary elements and still allow scrolling of content, yet still invert placement for the browser viewport. Portal elements are only necessary if an original ancestor boundary element exists. **No portals are created by default.**\n *\n * * Nubbins/arrows should be repositioned for any new placement/alignment.\n *\n * Allow Overflowing of Boundary Element: Allow applications to create a portal element attached to the DOM <body> to be outside of boundary elements if manual testing shows confusing alignment/poor usability/readability. This should be exception and not the default.\n *\n * Allow Inverted placement: Allow applications to prevent inverted placement if manual testing shows confusing alignment/poor usability/readability.\n *\n * ### How this new Dialog component works\n * * There is no longer an inline render within components. All overlays should go through `Dialog`. `position: relative` just passes on the markup with some additional event listeners. No positional library is used.\n * * The default `position: absolute` will run through three renders. It will first render the overlay at `0px/0px` offset of its parent. It will then store the target DOM node, once the DOM node is set, a state change will occur and tell a PopperJS instance to be created on update, once it is created, a third render is done to update the styles created by PopperJS.\n * * `position: overflowBoundaryElement` will do the same three renders as `absolute` except that the initial render will create a disconnected render tree (portal) on the `body`. Then, the position will change once the target is stored. The portal itself will be rendered multiple times. The first will result in `onOpen` executing. Each update will result in a re-render of the disconnected render-tree.\n *\n * This component is private.\n */\nclass Dialog extends React.Component {\n\tstatic displayName = DIALOG;\n\n\tstatic propTypes = {\n\t\t/**\n\t\t * Alignment of the dialog with respect to the target (assuming left-to-right language direction). For example,\n\t\t * a value of 'left bottom' indicates that the dialog will be rendered below and left-aligned with the target.\n\t\t * Note that setting the direction prop to \"rtl\" will flip the resulting dialog alignment.\n\t\t */\n\t\talign: PropTypes.oneOf([\n\t\t\t'top',\n\t\t\t'top left',\n\t\t\t'top right',\n\t\t\t'right',\n\t\t\t'right top',\n\t\t\t'right bottom',\n\t\t\t'bottom',\n\t\t\t'bottom left',\n\t\t\t'bottom right',\n\t\t\t'left',\n\t\t\t'left top',\n\t\t\t'left bottom',\n\t\t]),\n\t\t/**\n\t\t * CSS classes to be added to the absolutely positioned element.\n\t\t */\n\t\tclassName: PropTypes.oneOfType([\n\t\t\tPropTypes.array,\n\t\t\tPropTypes.object,\n\t\t\tPropTypes.string,\n\t\t]),\n\t\t/**\n\t\t * CSS classes to be added to the wrapping `div` of the contents of the dialog.\n\t\t */\n\t\tcontentsClassName: PropTypes.oneOfType([\n\t\t\tPropTypes.array,\n\t\t\tPropTypes.object,\n\t\t\tPropTypes.string,\n\t\t]),\n\t\t/**\n\t\t * Contents of dialog\n\t\t */\n\t\tchildren: PropTypes.node.isRequired,\n\t\t/**\n\t\t * Closes dialog when tab key is pressed\n\t\t */\n\t\tcloseOnTabKey: PropTypes.bool,\n\t\t/**\n\t\t * Props passed along to wrapping div. This allows one less wrapping `div` to be in the markup. dialog children are expected to be wrapper in a single `div`.\n\t\t */\n\t\tcontainerProps: PropTypes.object,\n\t\t/**\n\t\t * Establishes directional context for component. Defaults to left-to-right.\n\t\t */\n\t\tdirection: PropTypes.oneOf([DIRECTIONS.LTR, DIRECTIONS.RTL]),\n\t\t/**\n\t\t * Will show the nubbin pointing from the dialog to the reference element. Positioning and offsets will be handled.\n\t\t */\n\t\thasNubbin: PropTypes.bool,\n\t\t/**\n\t\t * By default, dialogs will flip their alignment (such as bottom to top) if they extend beyond a boundary element such as a scrolling parent or a window/viewpoint. `hasStaticAlignment` disables this behavior and allows this component to extend beyond boundary elements.\n\t\t */\n\t\thasStaticAlignment: PropTypes.bool,\n\t\t/**\n\t\t * Sets the dialog width to the width of either 'target' (Menus attached to `input` typically follow this UX pattern), 'menu' or 'none.\n\t\t */\n\t\tinheritWidthOf: PropTypes.oneOf(['target', 'menu', 'none']),\n\t\t/**\n\t\t * DEPRECATED - do not add checkProp deprecation message at this level. It is handled at higher level components.\n\t\t * TODO - to be removed.\n\t\t * Offset adds pixels to the absolutely positioned dropdown menu in the format: ([vertical]px [horizontal]px). SHOULD BE OBJECT -----------\n\t\t */\n\t\toffset: PropTypes.string,\n\t\t/**\n\t\t * Called when dialog closes and unmounts.\n\t\t */\n\t\tonClose: PropTypes.func,\n\t\t/**\n\t\t * Called when a key pressed.\n\t\t */\n\t\tonKeyDown: PropTypes.func,\n\t\t/**\n\t\t * Called when mouse hovers over the trigger button. This is only called if `this.props.openOn` is set to `hover`.\n\t\t */\n\t\tonMouseEnter: PropTypes.func,\n\t\t/**\n\t\t * Called when mouse hover leaves the trigger button. This is only called if `this.props.openOn` is set to `hover`.\n\t\t */\n\t\tonMouseLeave: PropTypes.func,\n\t\t/**\n\t\t * Called when dialog opens (that is mounts). The parameters are `undefined, { portal: this.portal }`.\n\t\t */\n\t\tonOpen: PropTypes.func,\n\t\t/**\n\t\t * React component to be aligned with. Function should return a DOM `ref` from the parent component.\n\t\t */\n\t\tonRequestTargetElement: PropTypes.func.isRequired,\n\t\t/**\n\t\t * Triggered when an item in the menu is clicked.\n\t\t */\n\t\toutsideClickIgnoreClass: PropTypes.string,\n\t\t/**\n\t\t * If a dialog is `positione=\"overflowBoundaryElement\"`, it will be rendered in a portal or separate render tree. This `portalMount` callback will be triggered instead of the the default `ReactDOM.unstable_renderSubtreeIntoContainer` and the function will mount the portal itself. Consider the following code that bypasses the internal mount and uses an Enzyme wrapper to mount the React root tree to the DOM.\n\t\t *\n\t\t * ```\n\t\t * <Popover\n\t\t * isOpen\n\t\t * portalMount={({ instance, reactElement, domContainerNode }) => {\n\t\t * portalWrapper = Enzyme.mount(reactElement, { attachTo: domContainerNode });\n\t\t * }}\n\t\t * onOpen={() => {\n\t\t * expect(portalWrapper.find(`#my-heading`)).to.exist;\n\t\t * done();\n\t\t * }}\n\t\t * />\n\t\t * ```\n\t\t */\n\t\tportalMount: PropTypes.func,\n\t\t/**\n\t\t * Please select one of the following:\n\t\t * * `absolute` - (default) The dialog will use `position: absolute` and style attributes to position itself. This allows inverted placement or flipping of the dialog.\n\t\t * * `overflowBoundaryElement` - The dialog will overflow scrolling parents. Use on elements that are aligned to the left or right of their target and don't care about the target being within a scrolling parent. Typically this is a popover or tooltip. Dropdown menus can usually open up and down if no room exists. In order to achieve this a portal element will be created and attached to `body`. This element will render into that detached render tree.\n\t\t * * `relative` - No styling or portals will be used. Menus will be positioned relative to their triggers. This is a great choice for HTML snapshot testing.\n\t\t */\n\t\tposition: PropTypes.oneOf([\n\t\t\t'absolute',\n\t\t\t'overflowBoundaryElement',\n\t\t\t'relative',\n\t\t]).isRequired,\n\t\t/**\n\t\t * An object of CSS styles that are applied to the immediate parent `div` of the contents. Use this instead of margin props.\n\t\t */\n\t\tstyle: PropTypes.object,\n\n\t\t/**\n\t\t * Sets which focus UX pattern to follow. For instance, popovers trap focus and must be exited to regain focus. Dropdowns and Tooltips never have focus.\n\t\t */\n\t\tvariant: PropTypes.oneOf(['dropdown', 'popover', 'tooltip']),\n\t};\n\n\tstatic defaultProps = {\n\t\talign: 'bottom left',\n\t\tdirection: DIRECTIONS.LTR,\n\t\toffset: '0px 0px',\n\t\toutsideClickIgnoreClass: 'ignore-react-onclickoutside',\n\t};\n\n\tstate = {\n\t\ttriggerPopperJS: false,\n\t\tisOpen: false,\n\t};\n\n\tcomponentDidMount() {\n\t\tif (\n\t\t\tthis.props.position === 'absolute' ||\n\t\t\tthis.props.position === 'relative'\n\t\t) {\n\t\t\tthis.handleOpen();\n\t\t}\n\t}\n\n\tcomponentDidUpdate(prevProps, prevState) {\n\t\tif (this.floatingUpdate) {\n\t\t\tthis.floatingUpdate();\n\t\t}\n\t\tif (\n\t\t\tthis.state.triggerPopperJS === true &&\n\t\t\tprevState.triggerPopperJS === false &&\n\t\t\t(this.props.position === 'absolute' ||\n\t\t\t\tthis.props.position === 'overflowBoundaryElement') &&\n\t\t\tthis.dialogContent &&\n\t\t\tthis.props.onRequestTargetElement()\n\t\t) {\n\t\t\tthis.createPopper();\n\t\t}\n\t}\n\n\tcomponentWillUnmount() {\n\t\tif (this.props.variant === 'popover') {\n\t\t\tDOMElementFocus.teardownScopedFocus();\n\t\t\tDOMElementFocus.returnFocusToStoredElement();\n\t\t}\n\n\t\tif (\n\t\t\tthis.props.position === 'absolute' ||\n\t\t\tthis.props.position === 'overflowBoundaryElement'\n\t\t) {\n\t\t\tthis.destroyPopper();\n\t\t}\n\n\t\tthis.handleClose(undefined, { componentWillUnmount: true });\n\t}\n\n\tgetPropOffsetsInPixels = (offsetString) => {\n\t\tconst offsetArray = offsetString.split(' ');\n\t\treturn {\n\t\t\tvertical: parseInt(offsetArray[0], 10),\n\t\t\thorizontal: parseInt(offsetArray[1], 10),\n\t\t};\n\t};\n\n\tgetPopperStyles = () => {\n\t\tconst { popperData } = this.state;\n\t\tif (!this.floatingUpdate || !popperData) {\n\t\t\treturn {\n\t\t\t\tposition: 'absolute',\n\t\t\t\tpointerEvents: 'none',\n\t\t\t};\n\t\t}\n\n\t\tconst { position } = popperData.offsets.popper;\n\t\tconst propOffsets = this.getPropOffsetsInPixels(this.props.offset);\n\n\t\t// FIXME before merge - gotta rename from margin to offset\n\t\tconst nubbinOffsets = this.props.hasNubbin\n\t\t\t? getNubbinMargins(this.state.popperData)\n\t\t\t: { left: 0, top: 0 };\n\n\t\tconst left =\n\t\t\tpopperData.offsets.popper.left +\n\t\t\tnubbinOffsets.left +\n\t\t\tpropOffsets.horizontal;\n\t\tconst top =\n\t\t\tpopperData.offsets.popper.top + nubbinOffsets.top + propOffsets.vertical;\n\n\t\t// A Dropdown with overflowBoundaryElement position and 'align=right' uses max-width instead of inherited children width\n\t\tconst right = 'inherit';\n\n\t\treturn {\n\t\t\t...popperData.style,\n\t\t\tleft: isNaN(left) ? 0 : left,\n\t\t\ttop: isNaN(top) ? 0 : top,\n\t\t\tright,\n\t\t\tposition,\n\t\t};\n\t};\n\n\t// Render\n\tsetDialogContent = (component) => {\n\t\tthis.dialogContent = component;\n\t\tif (!this.state.triggerPopperJS) {\n\t\t\tthis.setState({ triggerPopperJS: true });\n\t\t}\n\t};\n\n\t/**\n\t * Events\n\t */\n\thandleClickOutside = () => {\n\t\tthis.handleClose();\n\t};\n\n\thandleClose = (event, data = {}) => {\n\t\tif (!data.componentWillUnmount) {\n\t\t\tthis.setState({ triggerPopperJS: true });\n\t\t}\n\t\tif (this.props.onClose) {\n\t\t\tthis.props.onClose(event, data);\n\t\t}\n\t};\n\n\thandleClick = (event) => {\n\t\tif (event.nativeEvent) {\n\t\t\tevent.nativeEvent.preventDefault();\n\t\t\tevent.nativeEvent.stopPropagation();\n\t\t}\n\t};\n\n\thandleKeyDown = (event) => {\n\t\tif (event.keyCode === KEYS.TAB) {\n\t\t\tif (this.props.closeOnTabKey) {\n\t\t\t\tEventUtil.trap(event);\n\t\t\t\tthis.handleClose(event);\n\t\t\t}\n\t\t}\n\n\t\tif (this.props.onKeyDown) {\n\t\t\tthis.props.onKeyDown(event);\n\t\t}\n\t};\n\n\thandleOpen = () => {\n\t\tif (this.props.variant === 'popover' && this.dialogContent) {\n\t\t\tDOMElementFocus.storeActiveElement();\n\t\t\tDOMElementFocus.setupScopedFocus({\n\t\t\t\tancestorElement: this.dialogContent,\n\t\t\t}); // eslint-disable-line react/no-find-dom-node\n\t\t\t// Don't steal focus from inner elements\n\t\t\tif (!DOMElementFocus.hasOrAncestorHasFocus()) {\n\t\t\t\tDOMElementFocus.focusAncestor({\n\t\t\t\t\tisPortal: this.props.position === 'overflowBoundaryElement',\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tif (this.props.onOpen) {\n\t\t\tthis.props.onOpen(undefined, { portal: this.dialogContent });\n\t\t}\n\t};\n\n\t/**\n\t * Positioning API and helper functions\n\t *\n\t * Uses `@floating-ui/dom` for positioning. Floating UI shares popper v1's\n\t * placement vocabulary (`bottom-start`, etc.) and its offset-parent\n\t * positioning model, so `mapPropToPopperPlacement` and the nubbin/offset math\n\t * in `dialog-helpers` carry over unchanged. `computeFloatingData` reshapes\n\t * Floating UI's output into the `popperData` object the rest of this\n\t * component and the helpers already consume (`offsets.popper`,\n\t * `offsets.reference`, `placement`, `flipped`, `style`).\n\t */\n\n\tcomputeFloatingData = (reference, floating) => {\n\t\tconst requestedPlacement = mapPropToPopperPlacement(\n\t\t\tthis.props.align,\n\t\t\tthis.props.direction\n\t\t);\n\n\t\t// `strategy: 'absolute'` matches popper v1, which positioned relative to\n\t\t// the offset parent. Floating UI returns `x`/`y` in that same coordinate\n\t\t// space, so the downstream nubbin/offset math is unaffected.\n\t\treturn computePosition(reference, floating, {\n\t\t\tplacement: requestedPlacement,\n\t\t\tstrategy: 'absolute',\n\t\t\t// Flip (invert placement) and shift (nudge to stay in view) replace\n\t\t\t// popper v1's `flip` + `preventOverflow` modifiers. Both are disabled\n\t\t\t// when `hasStaticAlignment` is set, matching the prior behavior.\n\t\t\tmiddleware: this.props.hasStaticAlignment ? [] : [flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tconst referenceRect = reference.getBoundingClientRect();\n\t\t\treturn {\n\t\t\t\tplacement,\n\t\t\t\t// Floating UI resolves flips into the final `placement`; a flip\n\t\t\t\t// occurred whenever it differs from what we requested. The nubbin\n\t\t\t\t// class helper keys off this.\n\t\t\t\tflipped: placement !== requestedPlacement,\n\t\t\t\toffsets: {\n\t\t\t\t\tpopper: { left: x, top: y, position: 'absolute' },\n\t\t\t\t\treference: {\n\t\t\t\t\t\twidth: referenceRect.width,\n\t\t\t\t\t\theight: referenceRect.height,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tstyle: {},\n\t\t\t};\n\t\t});\n\t};\n\n\tcreatePopper = () => {\n\t\tconst reference = this.props.onRequestTargetElement(); // eslint-disable-line react/no-find-dom-node\n\t\tconst floating = this.dialogContent;\n\n\t\tif (!reference) {\n\t\t\tconsole.error('Target node not found!', reference); // eslint-disable-line no-console\n\t\t}\n\t\tif (!floating) {\n\t\t\tconsole.error('Popper node not found!', floating); // eslint-disable-line no-console\n\t\t}\n\t\tif (!reference || !floating) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst update = () => {\n\t\t\tthis.computeFloatingData(reference, floating).then((popperData) => {\n\t\t\t\tif (\n\t\t\t\t\t!this.state.popperData ||\n\t\t\t\t\t!isEqual(popperData.offsets, this.state.popperData.offsets) ||\n\t\t\t\t\tpopperData.placement !== this.state.popperData.placement\n\t\t\t\t) {\n\t\t\t\t\tthis.setState({ popperData });\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\n\t\t// `autoUpdate` re-runs positioning on scroll, resize, and layout shifts —\n\t\t// the equivalent of popper v1's `eventsEnabled`. It returns a cleanup\n\t\t// function stored for teardown.\n\t\tthis.cleanupFloating = autoUpdate(reference, floating, update);\n\t\tthis.floatingUpdate = update;\n\t\tupdate();\n\t};\n\n\tdestroyPopper = () => {\n\t\tif (this.cleanupFloating) {\n\t\t\tthis.cleanupFloating();\n\t\t\tthis.cleanupFloating = null;\n\t\t}\n\t\tthis.floatingUpdate = null;\n\t};\n\n\trender() {\n\t\tlet style = {};\n\t\tconst role =\n\t\t\tthis.props.variant === 'popover' ? 'dialog' : this.props.variant;\n\t\tif (\n\t\t\tthis.props.position === 'absolute' ||\n\t\t\tthis.props.position === 'overflowBoundaryElement'\n\t\t) {\n\t\t\tstyle = {\n\t\t\t\t...style,\n\t\t\t\toutline: 0,\n\t\t\t\t...this.getPopperStyles(),\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\tthis.props.inheritWidthOf === 'target' &&\n\t\t\tthis.props.onRequestTargetElement()\n\t\t) {\n\t\t\tstyle.width = this.props\n\t\t\t\t.onRequestTargetElement()\n\t\t\t\t.getBoundingClientRect().width;\n\t\t} else if (\n\t\t\tthis.props.inheritWidthOf === 'menu' &&\n\t\t\tthis.dialogContent &&\n\t\t\tthis.dialogContent.querySelector('.slds-listbox')\n\t\t) {\n\t\t\t// inherit menu renderer width\n\t\t\tstyle.width = this.dialogContent\n\t\t\t\t.querySelector('.slds-listbox')\n\t\t\t\t.getBoundingClientRect().width;\n\t\t}\n\n\t\tstyle = {\n\t\t\t...style,\n\t\t\t...this.props.style,\n\t\t};\n\n\t\tconst outerTag = this.props.variant === 'popover' ? 'section' : 'div';\n\n\t\tconst contents = React.createElement(\n\t\t\touterTag,\n\t\t\t{\n\t\t\t\tclassName:\n\t\t\t\t\tclassNames(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'absolute-positioned': this.props.position === 'absolute',\n\t\t\t\t\t\t\t'portal-positioned':\n\t\t\t\t\t\t\t\tthis.props.position === 'overflowBoundaryElement',\n\t\t\t\t\t\t\t[`${this.props.outsideClickIgnoreClass}`]:\n\t\t\t\t\t\t\t\tthis.props.position === 'overflowBoundaryElement',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tthis.props.hasNubbin &&\n\t\t\t\t\t\t\tgetNubbinClassName(this.props.align, this.state.popperData),\n\t\t\t\t\t\tthis.props.contentsClassName\n\t\t\t\t\t) || undefined,\n\n\t\t\t\tstyle,\n\t\t\t\tonMouseDown: this.props.onMouseDown,\n\t\t\t\tonKeyDown: this.handleKeyDown,\n\t\t\t\tonMouseEnter: this.props.onMouseEnter,\n\t\t\t\tonMouseLeave: this.props.onMouseLeave,\n\t\t\t\tref: this.setDialogContent,\n\t\t\t\trole,\n\t\t\t\ttabIndex: this.props.variant === 'popover' ? '-1' : undefined,\n\t\t\t\t...this.props.containerProps,\n\t\t\t},\n\n\t\t\tthis.props.children\n\t\t);\n\n\t\tconst subRenders = {\n\t\t\tabsolute: () => contents,\n\t\t\trelative: () => contents,\n\t\t\toverflowBoundaryElement: () => {\n\t\t\t\t// Cycle through current context, create object of\n\t\t\t\t// truthy values, and pass into Portal's context.\n\n\t\t\t\t// TODO: Add test when switched to `ReactDOM.createPortal`\n\t\t\t\tconst truthyIconSettingsContext = Object.keys(this.context)\n\t\t\t\t\t.filter((key) => Boolean(this.context[key]))\n\t\t\t\t\t.reduce(\n\t\t\t\t\t\t(accumulatedContext, key) => ({\n\t\t\t\t\t\t\t...accumulatedContext,\n\t\t\t\t\t\t\t...{ [key]: this.context[key] },\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t{}\n\t\t\t\t\t);\n\t\t\t\tconst wrapped = (\n\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\t<UNSAFE_DirectionSettings.Provider value={this.props.direction}>\n\t\t\t\t\t\t<IconSettings {...truthyIconSettingsContext}>\n\t\t\t\t\t\t\t{contents}\n\t\t\t\t\t\t</IconSettings>\n\t\t\t\t\t</UNSAFE_DirectionSettings.Provider>\n\t\t\t\t);\n\t\t\t\treturn (\n\t\t\t\t\t<Portal onOpen={this.handleOpen} portalMount={this.props.portalMount}>\n\t\t\t\t\t\t{wrapped}\n\t\t\t\t\t</Portal>\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\n\t\treturn subRenders[this.props.position] && subRenders[this.props.position]();\n\t}\n}\n\nDialog.contextType = IconSettingsContext;\n\nexport default LanguageDirection(Dialog);\n"],"mappings":";;;;;;;;;;;;;;;;AAqDA,IAAM,IAAN,cAAqB,EAAM,UAAU;CACpC,OAAO,cAAc;CAErB,OAAO,YAAY;EAMlB,OAAO,EAAU,MAAM;GACtB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,CAAC;EAID,WAAW,EAAU,UAAU;GAC9B,EAAU;GACV,EAAU;GACV,EAAU;EACX,CAAC;EAID,mBAAmB,EAAU,UAAU;GACtC,EAAU;GACV,EAAU;GACV,EAAU;EACX,CAAC;EAID,UAAU,EAAU,KAAK;EAIzB,eAAe,EAAU;EAIzB,gBAAgB,EAAU;EAI1B,WAAW,EAAU,MAAM,CAAC,EAAW,KAAK,EAAW,GAAG,CAAC;EAI3D,WAAW,EAAU;EAIrB,oBAAoB,EAAU;EAI9B,gBAAgB,EAAU,MAAM;GAAC;GAAU;GAAQ;EAAM,CAAC;EAM1D,QAAQ,EAAU;EAIlB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ACC,GAAoB,OAAS;KAC7B,GAAG;MACG,IAAM,KAAK,QAAQ;IAC1B,IACA,CAAC,CACF,GACK,IAEL,kBAAC,EAAyB,UAA1B;KAAmC,OAAO,KAAK,MAAM;KACpD,UAAA,kBAAC,GAAD;MAAc,GAAI;MAChB,UAAA;KACY,CAAA;IACoB,CAAA;IAEpC,OACC,kBAAC,GAAD;KAAQ,QAAQ,KAAK;KAAY,aAAa,KAAK,MAAM;KACvD,UAAA;IACM,CAAA;GAEV;EACD;EAEA,OAAO,EAAW,KAAK,MAAM,aAAa,EAAW,KAAK,MAAM,SAAS,CAAC;CAC3E;AACD;AAEA,EAAO,cAAc;AAErB,IAAA,IAAe,EAAkB,CAAM"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../components/utilities/dialog/index.jsx"],"sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\nimport React from 'react';\n\nimport PropTypes from 'prop-types';\n\nimport { computePosition, autoUpdate, flip, shift } from '@floating-ui/dom';\nimport { dequal as isEqual } from 'dequal';\n\n// ### classNames\n// [github.com/JedWatson/classnames](https://github.com/JedWatson/classnames)\n// This project uses `classnames`, \"a simple javascript utility for conditionally\n// joining classNames together.\"\nimport classNames from 'classnames';\n\nimport Portal from './portal';\nimport EventUtil from '../../../utilities/event';\nimport KEYS from '../../../utilities/key-code';\nimport DOMElementFocus from '../../../utilities/dom-element-focus';\nimport {\n\tgetNubbinMargins,\n\tgetNubbinClassName,\n\tmapPropToPopperPlacement,\n} from '../../../utilities/dialog-helpers';\n\nimport { DIALOG } from '../../../utilities/constants';\n\n// #### Dialog doesn't pass down <IconSettings> context so repassing it here.\nimport IconSettings, { IconSettingsContext } from '../../icon-settings';\n// eslint-disable-next-line camelcase\nimport UNSAFE_DirectionSettings, { DIRECTIONS } from '../UNSAFE_direction';\nimport LanguageDirection from '../UNSAFE_direction/private/language-direction';\n\n/*\n * A Dialog is content that is separate from the typical flow of a page. It typically overlays other elements in the document flow. This is achieved with elevation (`z-index`) and one of the following: relative position, absolute position, or a new top-level React render tree (portal). A boundary element is a scrolling ancestor element or the edge of the browser (window/viewport). This element typically has an overflow (overflow-y/overflow-x) style that is scroll, hidden, or auto. Inverted placement is the flipping of the overlay element from top to bottom or left to right in order stay within a boundary element.\n *\n * * Dropdown menu (Combobox, DatePicker, et al.) placement is typically bottom-aligned and should be allowed to invert its placement when inside a boundary element this often happens within a modal. Dropdowns should not overflow boundary elements , since most boundary elements scroll vertically and have space for the menu.\n *\n * * If they are hidden, left and right placed overlay elements (such as Popover and Tooltip) should be placed within a portal element attached to the DOM <body>, but styled to align to its target/trigger. Since scrolling typically occurs on the vertical axis, this allows them to overflow boundary elements and still allow scrolling of content, yet still invert placement for the browser viewport. Portal elements are only necessary if an original ancestor boundary element exists. **No portals are created by default.**\n *\n * * Nubbins/arrows should be repositioned for any new placement/alignment.\n *\n * Allow Overflowing of Boundary Element: Allow applications to create a portal element attached to the DOM <body> to be outside of boundary elements if manual testing shows confusing alignment/poor usability/readability. This should be exception and not the default.\n *\n * Allow Inverted placement: Allow applications to prevent inverted placement if manual testing shows confusing alignment/poor usability/readability.\n *\n * ### How this new Dialog component works\n * * There is no longer an inline render within components. All overlays should go through `Dialog`. `position: relative` just passes on the markup with some additional event listeners. No positional library is used.\n * * The default `position: absolute` will run through three renders. It will first render the overlay at `0px/0px` offset of its parent. It will then store the target DOM node, once the DOM node is set, a state change will occur and tell a PopperJS instance to be created on update, once it is created, a third render is done to update the styles created by PopperJS.\n * * `position: overflowBoundaryElement` will do the same three renders as `absolute` except that the initial render will create a disconnected render tree (portal) on the `body`. Then, the position will change once the target is stored. The portal itself will be rendered multiple times. The first will result in `onOpen` executing. Each update will result in a re-render of the disconnected render-tree.\n *\n * This component is private.\n */\nclass Dialog extends React.Component {\n\tstatic displayName = DIALOG;\n\n\tstatic propTypes = {\n\t\t/**\n\t\t * Alignment of the dialog with respect to the target (assuming left-to-right language direction). For example,\n\t\t * a value of 'left bottom' indicates that the dialog will be rendered below and left-aligned with the target.\n\t\t * Note that setting the direction prop to \"rtl\" will flip the resulting dialog alignment.\n\t\t */\n\t\talign: PropTypes.oneOf([\n\t\t\t'top',\n\t\t\t'top left',\n\t\t\t'top right',\n\t\t\t'right',\n\t\t\t'right top',\n\t\t\t'right bottom',\n\t\t\t'bottom',\n\t\t\t'bottom left',\n\t\t\t'bottom right',\n\t\t\t'left',\n\t\t\t'left top',\n\t\t\t'left bottom',\n\t\t]),\n\t\t/**\n\t\t * CSS classes to be added to the absolutely positioned element.\n\t\t */\n\t\tclassName: PropTypes.oneOfType([\n\t\t\tPropTypes.array,\n\t\t\tPropTypes.object,\n\t\t\tPropTypes.string,\n\t\t]),\n\t\t/**\n\t\t * CSS classes to be added to the wrapping `div` of the contents of the dialog.\n\t\t */\n\t\tcontentsClassName: PropTypes.oneOfType([\n\t\t\tPropTypes.array,\n\t\t\tPropTypes.object,\n\t\t\tPropTypes.string,\n\t\t]),\n\t\t/**\n\t\t * Contents of dialog\n\t\t */\n\t\tchildren: PropTypes.node.isRequired,\n\t\t/**\n\t\t * Closes dialog when tab key is pressed\n\t\t */\n\t\tcloseOnTabKey: PropTypes.bool,\n\t\t/**\n\t\t * Props passed along to wrapping div. This allows one less wrapping `div` to be in the markup. dialog children are expected to be wrapper in a single `div`.\n\t\t */\n\t\tcontainerProps: PropTypes.object,\n\t\t/**\n\t\t * Establishes directional context for component. Defaults to left-to-right.\n\t\t */\n\t\tdirection: PropTypes.oneOf([DIRECTIONS.LTR, DIRECTIONS.RTL]),\n\t\t/**\n\t\t * Will show the nubbin pointing from the dialog to the reference element. Positioning and offsets will be handled.\n\t\t */\n\t\thasNubbin: PropTypes.bool,\n\t\t/**\n\t\t * By default, dialogs will flip their alignment (such as bottom to top) if they extend beyond a boundary element such as a scrolling parent or a window/viewpoint. `hasStaticAlignment` disables this behavior and allows this component to extend beyond boundary elements.\n\t\t */\n\t\thasStaticAlignment: PropTypes.bool,\n\t\t/**\n\t\t * Sets the dialog width to the width of either 'target' (Menus attached to `input` typically follow this UX pattern), 'menu' or 'none.\n\t\t */\n\t\tinheritWidthOf: PropTypes.oneOf(['target', 'menu', 'none']),\n\t\t/**\n\t\t * DEPRECATED - do not add checkProp deprecation message at this level. It is handled at higher level components.\n\t\t * TODO - to be removed.\n\t\t * Offset adds pixels to the absolutely positioned dropdown menu in the format: ([vertical]px [horizontal]px). SHOULD BE OBJECT -----------\n\t\t */\n\t\toffset: PropTypes.string,\n\t\t/**\n\t\t * Called when dialog closes and unmounts.\n\t\t */\n\t\tonClose: PropTypes.func,\n\t\t/**\n\t\t * Called when a key pressed.\n\t\t */\n\t\tonKeyDown: PropTypes.func,\n\t\t/**\n\t\t * Called when mouse hovers over the trigger button. This is only called if `this.props.openOn` is set to `hover`.\n\t\t */\n\t\tonMouseEnter: PropTypes.func,\n\t\t/**\n\t\t * Called when mouse hover leaves the trigger button. This is only called if `this.props.openOn` is set to `hover`.\n\t\t */\n\t\tonMouseLeave: PropTypes.func,\n\t\t/**\n\t\t * Called when dialog opens (that is mounts). The parameters are `undefined, { portal: this.portal }`.\n\t\t */\n\t\tonOpen: PropTypes.func,\n\t\t/**\n\t\t * React component to be aligned with. Function should return a DOM `ref` from the parent component.\n\t\t */\n\t\tonRequestTargetElement: PropTypes.func.isRequired,\n\t\t/**\n\t\t * Triggered when an item in the menu is clicked.\n\t\t */\n\t\toutsideClickIgnoreClass: PropTypes.string,\n\t\t/**\n\t\t * If a dialog is `positione=\"overflowBoundaryElement\"`, it will be rendered in a portal or separate render tree. This `portalMount` callback will be triggered instead of the the default `ReactDOM.unstable_renderSubtreeIntoContainer` and the function will mount the portal itself. Consider the following code that bypasses the internal mount and uses an Enzyme wrapper to mount the React root tree to the DOM.\n\t\t *\n\t\t * ```\n\t\t * <Popover\n\t\t * isOpen\n\t\t * portalMount={({ instance, reactElement, domContainerNode }) => {\n\t\t * portalWrapper = Enzyme.mount(reactElement, { attachTo: domContainerNode });\n\t\t * }}\n\t\t * onOpen={() => {\n\t\t * expect(portalWrapper.find(`#my-heading`)).to.exist;\n\t\t * done();\n\t\t * }}\n\t\t * />\n\t\t * ```\n\t\t */\n\t\tportalMount: PropTypes.func,\n\t\t/**\n\t\t * Please select one of the following:\n\t\t * * `absolute` - (default) The dialog will use `position: absolute` and style attributes to position itself. This allows inverted placement or flipping of the dialog.\n\t\t * * `overflowBoundaryElement` - The dialog will overflow scrolling parents. Use on elements that are aligned to the left or right of their target and don't care about the target being within a scrolling parent. Typically this is a popover or tooltip. Dropdown menus can usually open up and down if no room exists. In order to achieve this a portal element will be created and attached to `body`. This element will render into that detached render tree.\n\t\t * * `relative` - No styling or portals will be used. Menus will be positioned relative to their triggers. This is a great choice for HTML snapshot testing.\n\t\t */\n\t\tposition: PropTypes.oneOf([\n\t\t\t'absolute',\n\t\t\t'overflowBoundaryElement',\n\t\t\t'relative',\n\t\t]).isRequired,\n\t\t/**\n\t\t * An object of CSS styles that are applied to the immediate parent `div` of the contents. Use this instead of margin props.\n\t\t */\n\t\tstyle: PropTypes.object,\n\n\t\t/**\n\t\t * Sets which focus UX pattern to follow. For instance, popovers trap focus and must be exited to regain focus. Dropdowns and Tooltips never have focus.\n\t\t */\n\t\tvariant: PropTypes.oneOf(['dropdown', 'popover', 'tooltip']),\n\t};\n\n\tstatic defaultProps = {\n\t\talign: 'bottom left',\n\t\tdirection: DIRECTIONS.LTR,\n\t\toffset: '0px 0px',\n\t\toutsideClickIgnoreClass: 'ignore-react-onclickoutside',\n\t};\n\n\tstate = {\n\t\ttriggerPopperJS: false,\n\t\tisOpen: false,\n\t};\n\n\tcomponentDidMount() {\n\t\tif (\n\t\t\tthis.props.position === 'absolute' ||\n\t\t\tthis.props.position === 'relative'\n\t\t) {\n\t\t\tthis.handleOpen();\n\t\t}\n\t}\n\n\tcomponentDidUpdate(prevProps, prevState) {\n\t\t// Re-run positioning only when a prop that actually feeds the position\n\t\t// calculation changes. `autoUpdate` (set up in `createPopper`) already\n\t\t// re-runs on scroll/resize/layout shifts, so calling `floatingUpdate()`\n\t\t// on *every* render — including the re-renders our own `setState`\n\t\t// triggers — just recomputes the same position repeatedly. Under jsdom\n\t\t// (where each recompute is pure overhead) this multiplied menu-open cost\n\t\t// several-fold; in real browsers it was redundant work.\n\t\tif (\n\t\t\tthis.floatingUpdate &&\n\t\t\t(prevProps.align !== this.props.align ||\n\t\t\t\tprevProps.direction !== this.props.direction ||\n\t\t\t\tprevProps.hasStaticAlignment !== this.props.hasStaticAlignment)\n\t\t) {\n\t\t\tthis.floatingUpdate();\n\t\t}\n\t\tif (\n\t\t\tthis.state.triggerPopperJS === true &&\n\t\t\tprevState.triggerPopperJS === false &&\n\t\t\t(this.props.position === 'absolute' ||\n\t\t\t\tthis.props.position === 'overflowBoundaryElement') &&\n\t\t\tthis.dialogContent &&\n\t\t\tthis.props.onRequestTargetElement()\n\t\t) {\n\t\t\tthis.createPopper();\n\t\t}\n\t}\n\n\tcomponentWillUnmount() {\n\t\tif (this.props.variant === 'popover') {\n\t\t\tDOMElementFocus.teardownScopedFocus();\n\t\t\tDOMElementFocus.returnFocusToStoredElement();\n\t\t}\n\n\t\tif (\n\t\t\tthis.props.position === 'absolute' ||\n\t\t\tthis.props.position === 'overflowBoundaryElement'\n\t\t) {\n\t\t\tthis.destroyPopper();\n\t\t}\n\n\t\tthis.handleClose(undefined, { componentWillUnmount: true });\n\t}\n\n\tgetPropOffsetsInPixels = (offsetString) => {\n\t\tconst offsetArray = offsetString.split(' ');\n\t\treturn {\n\t\t\tvertical: parseInt(offsetArray[0], 10),\n\t\t\thorizontal: parseInt(offsetArray[1], 10),\n\t\t};\n\t};\n\n\tgetPopperStyles = () => {\n\t\tconst { popperData } = this.state;\n\t\tif (!this.floatingUpdate || !popperData) {\n\t\t\treturn {\n\t\t\t\tposition: 'absolute',\n\t\t\t\tpointerEvents: 'none',\n\t\t\t};\n\t\t}\n\n\t\tconst { position } = popperData.offsets.popper;\n\t\tconst propOffsets = this.getPropOffsetsInPixels(this.props.offset);\n\n\t\t// FIXME before merge - gotta rename from margin to offset\n\t\tconst nubbinOffsets = this.props.hasNubbin\n\t\t\t? getNubbinMargins(this.state.popperData)\n\t\t\t: { left: 0, top: 0 };\n\n\t\tconst left =\n\t\t\tpopperData.offsets.popper.left +\n\t\t\tnubbinOffsets.left +\n\t\t\tpropOffsets.horizontal;\n\t\tconst top =\n\t\t\tpopperData.offsets.popper.top + nubbinOffsets.top + propOffsets.vertical;\n\n\t\t// A Dropdown with overflowBoundaryElement position and 'align=right' uses max-width instead of inherited children width\n\t\tconst right = 'inherit';\n\n\t\treturn {\n\t\t\t...popperData.style,\n\t\t\tleft: isNaN(left) ? 0 : left,\n\t\t\ttop: isNaN(top) ? 0 : top,\n\t\t\tright,\n\t\t\tposition,\n\t\t};\n\t};\n\n\t// Render\n\tsetDialogContent = (component) => {\n\t\tthis.dialogContent = component;\n\t\tif (!this.state.triggerPopperJS) {\n\t\t\tthis.setState({ triggerPopperJS: true });\n\t\t}\n\t};\n\n\t/**\n\t * Events\n\t */\n\thandleClickOutside = () => {\n\t\tthis.handleClose();\n\t};\n\n\thandleClose = (event, data = {}) => {\n\t\tif (!data.componentWillUnmount) {\n\t\t\tthis.setState({ triggerPopperJS: true });\n\t\t}\n\t\tif (this.props.onClose) {\n\t\t\tthis.props.onClose(event, data);\n\t\t}\n\t};\n\n\thandleClick = (event) => {\n\t\tif (event.nativeEvent) {\n\t\t\tevent.nativeEvent.preventDefault();\n\t\t\tevent.nativeEvent.stopPropagation();\n\t\t}\n\t};\n\n\thandleKeyDown = (event) => {\n\t\tif (event.keyCode === KEYS.TAB) {\n\t\t\tif (this.props.closeOnTabKey) {\n\t\t\t\tEventUtil.trap(event);\n\t\t\t\tthis.handleClose(event);\n\t\t\t}\n\t\t}\n\n\t\tif (this.props.onKeyDown) {\n\t\t\tthis.props.onKeyDown(event);\n\t\t}\n\t};\n\n\thandleOpen = () => {\n\t\tif (this.props.variant === 'popover' && this.dialogContent) {\n\t\t\tDOMElementFocus.storeActiveElement();\n\t\t\tDOMElementFocus.setupScopedFocus({\n\t\t\t\tancestorElement: this.dialogContent,\n\t\t\t}); // eslint-disable-line react/no-find-dom-node\n\t\t\t// Don't steal focus from inner elements\n\t\t\tif (!DOMElementFocus.hasOrAncestorHasFocus()) {\n\t\t\t\tDOMElementFocus.focusAncestor({\n\t\t\t\t\tisPortal: this.props.position === 'overflowBoundaryElement',\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tif (this.props.onOpen) {\n\t\t\tthis.props.onOpen(undefined, { portal: this.dialogContent });\n\t\t}\n\t};\n\n\t/**\n\t * Positioning API and helper functions\n\t *\n\t * Uses `@floating-ui/dom` for positioning. Floating UI shares popper v1's\n\t * placement vocabulary (`bottom-start`, etc.) and its offset-parent\n\t * positioning model, so `mapPropToPopperPlacement` and the nubbin/offset math\n\t * in `dialog-helpers` carry over unchanged. `computeFloatingData` reshapes\n\t * Floating UI's output into the `popperData` object the rest of this\n\t * component and the helpers already consume (`offsets.popper`,\n\t * `offsets.reference`, `placement`, `flipped`, `style`).\n\t */\n\n\tcomputeFloatingData = (reference, floating) => {\n\t\tconst requestedPlacement = mapPropToPopperPlacement(\n\t\t\tthis.props.align,\n\t\t\tthis.props.direction\n\t\t);\n\n\t\t// `strategy: 'absolute'` matches popper v1, which positioned relative to\n\t\t// the offset parent. Floating UI returns `x`/`y` in that same coordinate\n\t\t// space, so the downstream nubbin/offset math is unaffected.\n\t\treturn computePosition(reference, floating, {\n\t\t\tplacement: requestedPlacement,\n\t\t\tstrategy: 'absolute',\n\t\t\t// Flip (invert placement) and shift (nudge to stay in view) replace\n\t\t\t// popper v1's `flip` + `preventOverflow` modifiers. Both are disabled\n\t\t\t// when `hasStaticAlignment` is set, matching the prior behavior.\n\t\t\tmiddleware: this.props.hasStaticAlignment ? [] : [flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tconst referenceRect = reference.getBoundingClientRect();\n\t\t\treturn {\n\t\t\t\tplacement,\n\t\t\t\t// Floating UI resolves flips into the final `placement`; a flip\n\t\t\t\t// occurred whenever it differs from what we requested. The nubbin\n\t\t\t\t// class helper keys off this.\n\t\t\t\tflipped: placement !== requestedPlacement,\n\t\t\t\toffsets: {\n\t\t\t\t\tpopper: { left: x, top: y, position: 'absolute' },\n\t\t\t\t\treference: {\n\t\t\t\t\t\twidth: referenceRect.width,\n\t\t\t\t\t\theight: referenceRect.height,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tstyle: {},\n\t\t\t};\n\t\t});\n\t};\n\n\tcreatePopper = () => {\n\t\tconst reference = this.props.onRequestTargetElement(); // eslint-disable-line react/no-find-dom-node\n\t\tconst floating = this.dialogContent;\n\n\t\tif (!reference) {\n\t\t\tconsole.error('Target node not found!', reference); // eslint-disable-line no-console\n\t\t}\n\t\tif (!floating) {\n\t\t\tconsole.error('Popper node not found!', floating); // eslint-disable-line no-console\n\t\t}\n\t\tif (!reference || !floating) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst update = () => {\n\t\t\tthis.computeFloatingData(reference, floating).then((popperData) => {\n\t\t\t\tif (\n\t\t\t\t\t!this.state.popperData ||\n\t\t\t\t\t!isEqual(popperData.offsets, this.state.popperData.offsets) ||\n\t\t\t\t\tpopperData.placement !== this.state.popperData.placement\n\t\t\t\t) {\n\t\t\t\t\tthis.setState({ popperData });\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\n\t\t// `autoUpdate` re-runs positioning on scroll, resize, and layout shifts —\n\t\t// the equivalent of popper v1's `eventsEnabled`. It also invokes `update`\n\t\t// once synchronously to establish the initial position, so no separate\n\t\t// `update()` call is needed here (a manual call would just recompute the\n\t\t// same position a second time). It returns a cleanup function stored for\n\t\t// teardown.\n\t\tthis.cleanupFloating = autoUpdate(reference, floating, update);\n\t\tthis.floatingUpdate = update;\n\t};\n\n\tdestroyPopper = () => {\n\t\tif (this.cleanupFloating) {\n\t\t\tthis.cleanupFloating();\n\t\t\tthis.cleanupFloating = null;\n\t\t}\n\t\tthis.floatingUpdate = null;\n\t};\n\n\trender() {\n\t\tlet style = {};\n\t\tconst role =\n\t\t\tthis.props.variant === 'popover' ? 'dialog' : this.props.variant;\n\t\tif (\n\t\t\tthis.props.position === 'absolute' ||\n\t\t\tthis.props.position === 'overflowBoundaryElement'\n\t\t) {\n\t\t\tstyle = {\n\t\t\t\t...style,\n\t\t\t\toutline: 0,\n\t\t\t\t...this.getPopperStyles(),\n\t\t\t};\n\t\t}\n\n\t\tif (\n\t\t\tthis.props.inheritWidthOf === 'target' &&\n\t\t\tthis.props.onRequestTargetElement()\n\t\t) {\n\t\t\tstyle.width = this.props\n\t\t\t\t.onRequestTargetElement()\n\t\t\t\t.getBoundingClientRect().width;\n\t\t} else if (\n\t\t\tthis.props.inheritWidthOf === 'menu' &&\n\t\t\tthis.dialogContent &&\n\t\t\tthis.dialogContent.querySelector('.slds-listbox')\n\t\t) {\n\t\t\t// inherit menu renderer width\n\t\t\tstyle.width = this.dialogContent\n\t\t\t\t.querySelector('.slds-listbox')\n\t\t\t\t.getBoundingClientRect().width;\n\t\t}\n\n\t\tstyle = {\n\t\t\t...style,\n\t\t\t...this.props.style,\n\t\t};\n\n\t\tconst outerTag = this.props.variant === 'popover' ? 'section' : 'div';\n\n\t\tconst contents = React.createElement(\n\t\t\touterTag,\n\t\t\t{\n\t\t\t\tclassName:\n\t\t\t\t\tclassNames(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'absolute-positioned': this.props.position === 'absolute',\n\t\t\t\t\t\t\t'portal-positioned':\n\t\t\t\t\t\t\t\tthis.props.position === 'overflowBoundaryElement',\n\t\t\t\t\t\t\t[`${this.props.outsideClickIgnoreClass}`]:\n\t\t\t\t\t\t\t\tthis.props.position === 'overflowBoundaryElement',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tthis.props.hasNubbin &&\n\t\t\t\t\t\t\tgetNubbinClassName(this.props.align, this.state.popperData),\n\t\t\t\t\t\tthis.props.contentsClassName\n\t\t\t\t\t) || undefined,\n\n\t\t\t\tstyle,\n\t\t\t\tonMouseDown: this.props.onMouseDown,\n\t\t\t\tonKeyDown: this.handleKeyDown,\n\t\t\t\tonMouseEnter: this.props.onMouseEnter,\n\t\t\t\tonMouseLeave: this.props.onMouseLeave,\n\t\t\t\tref: this.setDialogContent,\n\t\t\t\trole,\n\t\t\t\ttabIndex: this.props.variant === 'popover' ? '-1' : undefined,\n\t\t\t\t...this.props.containerProps,\n\t\t\t},\n\n\t\t\tthis.props.children\n\t\t);\n\n\t\tconst subRenders = {\n\t\t\tabsolute: () => contents,\n\t\t\trelative: () => contents,\n\t\t\toverflowBoundaryElement: () => {\n\t\t\t\t// Cycle through current context, create object of\n\t\t\t\t// truthy values, and pass into Portal's context.\n\n\t\t\t\t// TODO: Add test when switched to `ReactDOM.createPortal`\n\t\t\t\tconst truthyIconSettingsContext = Object.keys(this.context)\n\t\t\t\t\t.filter((key) => Boolean(this.context[key]))\n\t\t\t\t\t.reduce(\n\t\t\t\t\t\t(accumulatedContext, key) => ({\n\t\t\t\t\t\t\t...accumulatedContext,\n\t\t\t\t\t\t\t...{ [key]: this.context[key] },\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t{}\n\t\t\t\t\t);\n\t\t\t\tconst wrapped = (\n\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\t<UNSAFE_DirectionSettings.Provider value={this.props.direction}>\n\t\t\t\t\t\t<IconSettings {...truthyIconSettingsContext}>\n\t\t\t\t\t\t\t{contents}\n\t\t\t\t\t\t</IconSettings>\n\t\t\t\t\t</UNSAFE_DirectionSettings.Provider>\n\t\t\t\t);\n\t\t\t\treturn (\n\t\t\t\t\t<Portal onOpen={this.handleOpen} portalMount={this.props.portalMount}>\n\t\t\t\t\t\t{wrapped}\n\t\t\t\t\t</Portal>\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\n\t\treturn subRenders[this.props.position] && subRenders[this.props.position]();\n\t}\n}\n\nD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anel", n = "SLDSAlert", r = "SLDSAlertContainer", i = "SLDSAppLauncher", a = "SLDSAppLauncherExpandableSection", o = "SLDSAppLauncherSection", s = "SLDSAppLauncherLink", c = "SLDSAppLauncherTile", l = "SLDSAvatar", u = "SLDSBadge", d = "SLDSBrandBand", f = "SLDSBreadcrumb", p = "SLDSBuilderHeader", m = "SLDSBuilderHeaderMisc", h = "SLDSBuilderHeaderUtilities", g = "SLDSBuilderHeaderNav", _ = "SLDSBuilderHeaderNavDropdown", v = "SLDSBuilderHeaderNavLink", y = "SLDSBuilderHeaderToolbar", b = "SLDSButton", x = "SLDSButtonGroup", S = "SLDSButtonStateful", C = "SLDSButtonIcon", w = "SLDSCard", T = "SLDSCardBody", E = "SLDSCardEmpty", D = "SLDSCardFilter", O = "SLDSCardFooter", k = "SLDSCardHeader", A = "SLDSCarousel", j = "SLDSCarouselIndicators", M = "SLDSCarouselItem", N = "SLDSCarouselNavigators", P = "SLDSCarouselAutoplayButton", F = "SLDSColorPicker", I = "SLDSCombobox", L = "SLDSDataTable", R = "SLDSDataTableCell", z = "SLDSDataTableColumn", B = "SLDSDataTableHead", V = "SLDSDataTableHeaderCell", H = "SLDSDataTableRowActions", U = "SLDSDataTableRow", W = "SLDSDatePicker", G = "SLDSDynamicIcon", K = "SLDSDialog", q = "SLDSFiles", J = "SLDSFilesFile", Y = "SLDSFilesMore", X = "SLDSFilesFigure", Z = "SLDSFilesActions", Q = "SLDSExpandableSection", $ = "SLDSExpression", ee = "SLDSExpressionGroup", te = "SLDSExpressionCondition", ne = "SLDSExpressionFormula", re = "SLDSFilter", ie = "SLDSCheckbox", ae = "SLDSInlineEdit", oe = "SLDSInput", se = "SLDSTextarea", ce = "SLDSSearch", le = "SLDSGlobalHeader", ue = "SLDSGlobalHeaderButton", de = "SLDSGlobalHeaderDropdown", fe = "SLDSGlobalHeaderFavorites", pe = "SLDSGlobalHeaderHelp", me = "SLDSGlobalHeaderNotifications", he = "SLDSGlobalHeaderProfile", ge = "SLDSGlobalHeaderSearch", _e = "SLDSGlobalHeaderSetup", ve = "SLDSGlobalHeaderTask", ye = "SLDSGlobalHeaderTool", be = "SLDSGlobalNavigationBar", xe = "SLDSGlobalNavigationBarButton", Se = "SLDSGlobalNavigationBarDropdown", Ce = "SLDSGlobalNavigationBarLabel", we = "SLDSGlobalNavigationBarLink", Te = "SLDSGlobalNavigationBarRegion", Ee = "SLDSHighlighter", De = "SLDSIcon", Oe = "SLDSIconSettings", ke = "SLDSIconInput", Ae = "SLDSIllustration", je = "SLDSList", Me = "SLDSListItem", Ne = "SLDSListItemLabel", Pe = "SLDSLocationMap", Fe = "SLDSLookup", Ie = "SLDSMediaObject", Le = "SLDSMenuDropdown", Re = "SLDSMenuDropdownTrigger", ze = "SLDSModal", Be = "SLDSPanel", Ve = "SLDSFilterGroup", He = "SLDSFilterList", Ue = "SLDSPanelFilterListHeading", We = "SLDSPageHeader", Ge = "SLDSPageHeaderControl", Ke = "SLDSPill", qe = "SLDSPillContainer", Je = "SLDSPortalSettings", Ye = "SLDSPopover", Xe = "SLDSPopoverEditDialog", Ze = "SLDSPopoverTooltip", Qe = "SLDSProgressIndicator", $e = "SLDSProgressIndicatorProgress", et = "SLDSProgressIndicatorStep", tt = "SLDSProgressIndicatorStepVertical", nt = "SLDSProgressRing", rt = "SLDSProgressBar", it = "SLDSSetupAssistant", at = "SLDSSetupAssistantStep", ot = "SLDSScopedNotification", st = "SLDSSlider", ct = "SLDSSpinner", lt = "SLDSSplitView", ut = "SLDSSplitViewHeader", dt = "SLDSSplitViewListbox", ft = "SLDSRadio", pt = "SLDSRadioGroup", mt = "SLDSRadioButtonGroup", ht = "SLDSTab", gt = "SLDSTabPanel", _t = "SLDSTabs", vt = "SLDSTabsList", yt = "SLDSTabsPanel", bt = "SLDSTimepicker", xt = "SLDSToast", St = "SLDSToastContainer", Ct = "SLDSTree", wt = "SLDSTreeBranch", Tt = "SLDSTreeItem", Et = "SLDSTrialBar", Dt = "SLDSTrialBarDropdown", Ot = "SLDSTrialBarButton", kt = "SLDSVerticalNavigation", At = "SLDSVerticalNavigationItem", jt = "SLDSVisualPicker", Mt = "SLDSVisualPickerLink", Nt = "SLDSWelcomeMat", Pt = "SLDSWelcomeMatTile", Ft = "SLDSWelcomeMatBadge";
2
+ var e = "SLDSAccordion", t = "SLDSAccordionPanel", n = "SLDSAlert", r = "SLDSAlertContainer", i = "SLDSAvatar", a = "SLDSBadge", o = "SLDSBreadcrumb", s = "SLDSBuilderHeader", c = "SLDSBuilderHeaderMisc", l = "SLDSBuilderHeaderUtilities", u = "SLDSBuilderHeaderNav", d = "SLDSBuilderHeaderNavDropdown", f = "SLDSBuilderHeaderNavLink", p = "SLDSBuilderHeaderToolbar", m = "SLDSButton", h = "SLDSButtonGroup", g = "SLDSButtonStateful", _ = "SLDSButtonIcon", v = "SLDSCard", y = "SLDSCardBody", b = "SLDSCardEmpty", x = "SLDSCardFilter", S = "SLDSCardFooter", C = "SLDSCardHeader", w = "SLDSCarousel", T = "SLDSCarouselIndicators", E = "SLDSCarouselItem", D = "SLDSCarouselNavigators", O = "SLDSCarouselAutoplayButton", k = "SLDSColorPicker", A = "SLDSCombobox", j = "SLDSSimpleDataTable", M = "SLDSSimpleDataTableCell", N = "SLDSSimpleDataTableColumn", P = "SLDSSimpleDataTableHead", F = "SLDSSimpleDataTableHeaderCell", I = "SLDSSimpleDataTableRowActions", L = "SLDSSimpleDataTableRow", R = "SLDSDatePicker", z = "SLDSDynamicIcon", B = "SLDSDialog", V = "SLDSFiles", H = "SLDSFilesFile", U = "SLDSFilesMore", W = "SLDSFilesFigure", G = "SLDSFilesActions", K = "SLDSExpandableSection", q = "SLDSFilter", J = "SLDSCheckbox", Y = "SLDSInlineEdit", X = "SLDSInput", Z = "SLDSTextarea", Q = "SLDSSearch", $ = "SLDSHighlighter", ee = "SLDSIcon", te = "SLDSIconSettings", ne = "SLDSIconInput", re = "SLDSIllustration", ie = "SLDSList", ae = "SLDSListItem", oe = "SLDSListItemLabel", se = "SLDSLookup", ce = "SLDSMediaObject", le = "SLDSMenuDropdown", ue = "SLDSMenuDropdownTrigger", de = "SLDSModal", fe = "SLDSPanel", pe = "SLDSFilterGroup", me = "SLDSFilterList", he = "SLDSPanelFilterListHeading", ge = "SLDSPageHeader", _e = "SLDSPageHeaderControl", ve = "SLDSPill", ye = "SLDSPillContainer", be = "SLDSPortalSettings", xe = "SLDSPopover", Se = "SLDSPopoverEditDialog", Ce = "SLDSPopoverTooltip", we = "SLDSProgressIndicator", Te = "SLDSProgressIndicatorProgress", Ee = "SLDSProgressIndicatorStep", De = "SLDSProgressIndicatorStepVertical", Oe = "SLDSProgressRing", ke = "SLDSProgressBar", Ae = "SLDSSetupAssistant", je = "SLDSSetupAssistantStep", Me = "SLDSScopedNotification", Ne = "SLDSSlider", Pe = "SLDSSpinner", Fe = "SLDSSplitView", Ie = "SLDSSplitViewHeader", Le = "SLDSSplitViewListbox", Re = "SLDSRadio", ze = "SLDSRadioGroup", Be = "SLDSRadioButtonGroup", Ve = "SLDSTab", He = "SLDSTabPanel", Ue = "SLDSTabs", We = "SLDSTabsList", Ge = "SLDSTabsPanel", Ke = "SLDSTimepicker", qe = "SLDSToast", Je = "SLDSToastContainer", Ye = "SLDSTree", Xe = "SLDSTreeBranch", Ze = "SLDSTreeItem", Qe = "SLDSTrialBar", $e = "SLDSTrialBarDropdown", et = "SLDSTrialBarButton", tt = "SLDSVerticalNavigation", nt = "SLDSVerticalNavigationItem", rt = "SLDSVisualPicker", it = "SLDSVisualPickerLink", at = "SLDSWelcomeMat", ot = "SLDSWelcomeMatTile", st = "SLDSWelcomeMatBadge";
3
3
  //#endregion
4
- export { e as ACCORDION, t as ACCORDION_PANEL, n as ALERT, r as ALERT_CONTAINER, i as APP_LAUNCHER, a as APP_LAUNCHER_EXPANDABLE_SECTION, s as APP_LAUNCHER_LINK, o as APP_LAUNCHER_SECTION, c as APP_LAUNCHER_TILE, l as AVATAR, u as BADGE, d as BRAND_BAND, f as BREADCRUMB, p as BUILDER_HEADER, m as BUILDER_HEADER_MISC, g as BUILDER_HEADER_NAV, _ as BUILDER_HEADER_NAV_DROPDOWN, v as BUILDER_HEADER_NAV_LINK, y as BUILDER_HEADER_TOOLBAR, h as BUILDER_HEADER_UTILITIES, b as BUTTON, x as BUTTON_GROUP, C as BUTTON_ICON, S as BUTTON_STATEFUL, w as CARD, T as CARD_BODY, E as CARD_EMPTY, D as CARD_FILTER, O as CARD_FOOTER, k as CARD_HEADER, A as CAROUSEL, P as CAROUSEL_AUTOPLAY_BUTTON, j as CAROUSEL_INDICATORS, M as CAROUSEL_ITEM, N as CAROUSEL_NAVIGATORS, ie as CHECKBOX, F as COLOR_PICKER, I as COMBOBOX, L as DATA_TABLE, R as DATA_TABLE_CELL, z as DATA_TABLE_COLUMN, B as DATA_TABLE_HEAD, V as DATA_TABLE_HEADER_CELL, U as DATA_TABLE_ROW, H as DATA_TABLE_ROW_ACTIONS, W as DATE_PICKER, K as DIALOG, G as DYNAMIC_ICON, Q as EXPANDABLE_SECTION, $ as EXPRESSION, te as EXPRESSION_CONDITION, ne as EXPRESSION_FORMULA, ee as EXPRESSION_GROUP, q as FILES, Z as FILES_ACTIONS, X as FILES_FIGURE, J as FILES_FILE, Y as FILES_MORE, re as FILTER, ae as FORMS_INLINE_EDIT, le as GLOBAL_HEADER, ue as GLOBAL_HEADER_BUTTON, de as GLOBAL_HEADER_DROPDOWN, fe as GLOBAL_HEADER_FAVORITES, pe as GLOBAL_HEADER_HELP, me as GLOBAL_HEADER_NOTIFICATIONS, he as GLOBAL_HEADER_PROFILE, ge as GLOBAL_HEADER_SEARCH, _e as GLOBAL_HEADER_SETUP, ve as GLOBAL_HEADER_TASK, ye as GLOBAL_HEADER_TOOL, be as GLOBAL_NAVIGATION_BAR, xe as GLOBAL_NAVIGATION_BAR_BUTTON, Se as GLOBAL_NAVIGATION_BAR_DROPDOWN, Ce as GLOBAL_NAVIGATION_BAR_LABEL, we as GLOBAL_NAVIGATION_BAR_LINK, Te as GLOBAL_NAVIGATION_BAR_REGION, Ee as HIGHLIGHTER, De as ICON, ke as ICON_INPUT, Oe as ICON_SETTINGS, Ae as ILLUSTRATION, oe as INPUT, je as LIST, Me as LIST_ITEM, Ne as LIST_ITEM_LABEL, Pe as LOCATION_MAP, Fe as LOOKUP, Ie as MEDIA_OBJECT, Le as MENU_DROPDOWN, Re as MENU_DROPDOWN_TRIGGER, ze as MODAL, We as PAGE_HEADER, Ge as PAGE_HEADER_CONTROL, Be as PANEL, Ve as PANEL_FILTER_GROUP, He as PANEL_FILTER_LIST, Ue as PANEL_FILTER_LIST_HEADING, Ke as PILL, qe as PILL_CONTAINER, Ye as POPOVER, Xe as POPOVER_EDIT_DIALOG, Ze as POPOVER_TOOLTIP, Je as PORTAL_SETTINGS, rt as PROGRESS_BAR, Qe as PROGRESS_INDICATOR, $e as PROGRESS_INDICATOR_PROGRESS, et as PROGRESS_INDICATOR_STEP, tt as PROGRESS_INDICATOR_STEP_VERTICAL, nt as PROGRESS_RING, ft as RADIO, mt as RADIO_BUTTON_GROUP, pt as RADIO_GROUP, ot as SCOPED_NOTIFICATION, ce as SEARCH, it as SETUP_ASSISTANT, at as SETUP_ASSISTANT_STEP, st as SLIDER, ct as SPINNER, lt as SPLIT_VIEW, ut as SPLIT_VIEW_HEADER, dt as SPLIT_VIEW_LISTBOX, ht as TAB, _t as TABS, vt as TABS_LIST, yt as TABS_PANEL, gt as TAB_PANEL, se as TEXTAREA, bt as TIME_PICKER, xt as TOAST, St as TOAST_CONTAINER, Ct as TREE, wt as TREE_BRANCH, Tt as TREE_ITEM, Et as TRIAL_BAR, Ot as TRIAL_BAR_BUTTON, Dt as TRIAL_BAR_DROPDOWN, kt as VERTICAL_NAVIGATION, At as VERTICAL_NAVIGATION_ITEM, jt as VISUAL_PICKER, Mt as VISUAL_PICKER_LINK, Nt as WELCOME_MAT, Ft as WELCOME_MAT_BADGE, Pt as WELCOME_MAT_TILE };
4
+ export { e as ACCORDION, t as ACCORDION_PANEL, n as ALERT, r as ALERT_CONTAINER, i as AVATAR, a as BADGE, o as BREADCRUMB, s as BUILDER_HEADER, c as BUILDER_HEADER_MISC, u as BUILDER_HEADER_NAV, d as BUILDER_HEADER_NAV_DROPDOWN, f as BUILDER_HEADER_NAV_LINK, p as BUILDER_HEADER_TOOLBAR, l as BUILDER_HEADER_UTILITIES, m as BUTTON, h as BUTTON_GROUP, _ as BUTTON_ICON, g as BUTTON_STATEFUL, v as CARD, y as CARD_BODY, b as CARD_EMPTY, x as CARD_FILTER, S as CARD_FOOTER, C as CARD_HEADER, w as CAROUSEL, O as CAROUSEL_AUTOPLAY_BUTTON, T as CAROUSEL_INDICATORS, E as CAROUSEL_ITEM, D as CAROUSEL_NAVIGATORS, J as CHECKBOX, k as COLOR_PICKER, A as COMBOBOX, R as DATE_PICKER, B as DIALOG, z as DYNAMIC_ICON, K as EXPANDABLE_SECTION, V as FILES, G as FILES_ACTIONS, W as FILES_FIGURE, H as FILES_FILE, U as FILES_MORE, q as FILTER, Y as FORMS_INLINE_EDIT, $ as HIGHLIGHTER, ee as ICON, ne as ICON_INPUT, te as ICON_SETTINGS, re as ILLUSTRATION, X as INPUT, ie as LIST, ae as LIST_ITEM, oe as LIST_ITEM_LABEL, se as LOOKUP, ce as MEDIA_OBJECT, le as MENU_DROPDOWN, ue as MENU_DROPDOWN_TRIGGER, de as MODAL, ge as PAGE_HEADER, _e as PAGE_HEADER_CONTROL, fe as PANEL, pe as PANEL_FILTER_GROUP, me as PANEL_FILTER_LIST, he as PANEL_FILTER_LIST_HEADING, ve as PILL, ye as PILL_CONTAINER, xe as POPOVER, Se as POPOVER_EDIT_DIALOG, Ce as POPOVER_TOOLTIP, be as PORTAL_SETTINGS, ke as PROGRESS_BAR, we as PROGRESS_INDICATOR, Te as PROGRESS_INDICATOR_PROGRESS, Ee as PROGRESS_INDICATOR_STEP, De as PROGRESS_INDICATOR_STEP_VERTICAL, Oe as PROGRESS_RING, Re as RADIO, Be as RADIO_BUTTON_GROUP, ze as RADIO_GROUP, Me as SCOPED_NOTIFICATION, Q as SEARCH, Ae as SETUP_ASSISTANT, je as SETUP_ASSISTANT_STEP, j as SIMPLE_DATA_TABLE, M as SIMPLE_DATA_TABLE_CELL, N as SIMPLE_DATA_TABLE_COLUMN, P as SIMPLE_DATA_TABLE_HEAD, F as SIMPLE_DATA_TABLE_HEADER_CELL, L as SIMPLE_DATA_TABLE_ROW, I as SIMPLE_DATA_TABLE_ROW_ACTIONS, Ne as SLIDER, Pe as SPINNER, Fe as SPLIT_VIEW, Ie as SPLIT_VIEW_HEADER, Le as SPLIT_VIEW_LISTBOX, Ve as TAB, Ue as TABS, We as TABS_LIST, Ge as TABS_PANEL, He as TAB_PANEL, Z as TEXTAREA, Ke as TIME_PICKER, qe as TOAST, Je as TOAST_CONTAINER, Ye as TREE, Xe as TREE_BRANCH, Ze as TREE_ITEM, Qe as TRIAL_BAR, et as TRIAL_BAR_BUTTON, $e as TRIAL_BAR_DROPDOWN, tt as VERTICAL_NAVIGATION, nt as VERTICAL_NAVIGATION_ITEM, rt as VISUAL_PICKER, it as VISUAL_PICKER_LINK, at as WELCOME_MAT, st as WELCOME_MAT_BADGE, ot as WELCOME_MAT_TILE };
5
5
 
6
6
  //# sourceMappingURL=constants.js.map