@slotted/angular 0.1.0-beta.29 → 0.1.0-beta.30

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 (397) hide show
  1. package/docs/AGENTS.snippet.md +1 -1
  2. package/docs/accordion.json +5 -5
  3. package/docs/accordion.md +12 -12
  4. package/docs/action-bar.json +20 -20
  5. package/docs/action-bar.md +28 -28
  6. package/docs/action-sheet.json +4 -4
  7. package/docs/action-sheet.md +12 -12
  8. package/docs/alert.json +10 -10
  9. package/docs/alert.md +16 -16
  10. package/docs/app-shell.examples.md +7 -7
  11. package/docs/app-shell.json +13 -13
  12. package/docs/app-shell.md +3 -3
  13. package/docs/avatar-group.json +1 -1
  14. package/docs/avatar-group.md +1 -1
  15. package/docs/avatar.json +10 -10
  16. package/docs/avatar.md +9 -9
  17. package/docs/badge.json +3 -3
  18. package/docs/badge.md +3 -3
  19. package/docs/breadcrumb.json +2 -2
  20. package/docs/breadcrumb.md +2 -2
  21. package/docs/button-group.json +1 -1
  22. package/docs/button-group.md +1 -1
  23. package/docs/button.json +11 -11
  24. package/docs/button.md +7 -7
  25. package/docs/calendar.json +4 -4
  26. package/docs/calendar.md +3 -3
  27. package/docs/card.json +2 -2
  28. package/docs/card.md +2 -2
  29. package/docs/carousel.json +10 -10
  30. package/docs/carousel.md +11 -11
  31. package/docs/chart.examples.md +32 -32
  32. package/docs/chart.json +33 -33
  33. package/docs/chart.md +4 -4
  34. package/docs/checkbox-group.examples.md +13 -13
  35. package/docs/checkbox-group.json +7 -7
  36. package/docs/checkbox-group.md +2 -2
  37. package/docs/checkbox.examples.md +7 -7
  38. package/docs/checkbox.json +6 -6
  39. package/docs/checkbox.md +3 -3
  40. package/docs/code-block.json +1 -1
  41. package/docs/code-block.md +1 -1
  42. package/docs/collapsible.json +11 -11
  43. package/docs/collapsible.md +19 -19
  44. package/docs/color-picker.json +26 -26
  45. package/docs/color-picker.md +16 -16
  46. package/docs/combobox.json +2 -2
  47. package/docs/combobox.md +2 -2
  48. package/docs/context-menu.json +1 -1
  49. package/docs/context-menu.md +1 -1
  50. package/docs/currency-field.examples.md +3 -3
  51. package/docs/currency-field.json +6 -6
  52. package/docs/currency-field.md +4 -4
  53. package/docs/dashboard-grid.json +1 -1
  54. package/docs/data-grid.examples.md +1 -1
  55. package/docs/data-grid.json +2 -2
  56. package/docs/data-grid.props.md +1 -1
  57. package/docs/date-field.json +3 -3
  58. package/docs/date-field.md +5 -5
  59. package/docs/date-picker.json +1 -1
  60. package/docs/date-range-picker.json +1 -1
  61. package/docs/datetime-field.json +4 -4
  62. package/docs/datetime-field.md +9 -9
  63. package/docs/datetime-picker.json +1 -1
  64. package/docs/datetime-range-picker.examples.md +3 -3
  65. package/docs/datetime-range-picker.json +4 -4
  66. package/docs/datetime-range-picker.md +2 -2
  67. package/docs/description-list.json +5 -5
  68. package/docs/description-list.md +4 -4
  69. package/docs/detail-panel.json +10 -10
  70. package/docs/detail-panel.md +12 -12
  71. package/docs/dialog.examples.md +5 -5
  72. package/docs/dialog.json +10 -10
  73. package/docs/dialog.md +2 -2
  74. package/docs/dialog.props.md +2 -2
  75. package/docs/drawer.examples.md +13 -13
  76. package/docs/drawer.json +6 -6
  77. package/docs/event-calendar.examples.md +3 -3
  78. package/docs/event-calendar.json +5 -5
  79. package/docs/event-calendar.md +2 -2
  80. package/docs/field-group.json +6 -6
  81. package/docs/field-group.md +11 -11
  82. package/docs/field.examples.md +3 -3
  83. package/docs/field.json +4 -4
  84. package/docs/field.md +1 -1
  85. package/docs/form.json +8 -8
  86. package/docs/form.md +12 -12
  87. package/docs/fullscreen.json +4 -4
  88. package/docs/fullscreen.md +7 -7
  89. package/docs/guidelines/async-feedback.md +2 -2
  90. package/docs/guidelines/builders.md +1 -1
  91. package/docs/guidelines/composition.md +4 -4
  92. package/docs/guidelines/conversations.md +1 -1
  93. package/docs/guidelines/index.md +2 -2
  94. package/docs/guidelines/layout-alignment.md +5 -5
  95. package/docs/guidelines/overviews.md +3 -3
  96. package/docs/guidelines/own-elements.md +7 -7
  97. package/docs/guidelines/record-pages.md +1 -1
  98. package/docs/highlight.json +9 -9
  99. package/docs/highlight.md +14 -14
  100. package/docs/icon.json +2 -2
  101. package/docs/icon.md +2 -2
  102. package/docs/image.json +3 -3
  103. package/docs/image.md +3 -3
  104. package/docs/import-export-center.json +23 -23
  105. package/docs/import-export-center.md +17 -17
  106. package/docs/inline-message.json +15 -15
  107. package/docs/inline-message.md +22 -22
  108. package/docs/inline.json +1 -1
  109. package/docs/inline.md +1 -1
  110. package/docs/kbd.json +2 -2
  111. package/docs/kbd.md +2 -2
  112. package/docs/link.json +6 -6
  113. package/docs/link.md +6 -6
  114. package/docs/list-item.json +1 -1
  115. package/docs/list-item.md +1 -1
  116. package/docs/list.json +1 -1
  117. package/docs/listbox.json +1 -1
  118. package/docs/listbox.md +1 -1
  119. package/docs/loading-overlay.json +3 -3
  120. package/docs/loading-overlay.md +3 -3
  121. package/docs/message-scroller.json +1 -1
  122. package/docs/message-scroller.md +1 -1
  123. package/docs/message.json +11 -11
  124. package/docs/message.md +17 -17
  125. package/docs/multi-select.json +1 -1
  126. package/docs/notification-center.json +16 -16
  127. package/docs/notification-center.md +18 -22
  128. package/docs/number-field.examples.md +3 -3
  129. package/docs/number-field.json +3 -3
  130. package/docs/otp-input.json +10 -10
  131. package/docs/otp-input.md +13 -13
  132. package/docs/page-header.json +9 -9
  133. package/docs/page-header.md +20 -22
  134. package/docs/pagination.json +2 -2
  135. package/docs/pagination.md +1 -1
  136. package/docs/popover.examples.md +1 -1
  137. package/docs/popover.json +3 -3
  138. package/docs/popover.md +1 -1
  139. package/docs/progress-indicator.json +4 -4
  140. package/docs/progress-indicator.md +4 -4
  141. package/docs/prompt-composer.json +4 -4
  142. package/docs/prompt-composer.md +5 -5
  143. package/docs/prose.json +1 -1
  144. package/docs/prose.md +1 -1
  145. package/docs/radio-group.examples.md +19 -19
  146. package/docs/radio-group.json +12 -12
  147. package/docs/radio-group.md +3 -3
  148. package/docs/rating.json +23 -23
  149. package/docs/rating.md +25 -34
  150. package/docs/result-state.json +12 -12
  151. package/docs/result-state.md +17 -17
  152. package/docs/saved-views.json +1 -1
  153. package/docs/scroll-area.json +5 -5
  154. package/docs/scroll-area.md +6 -6
  155. package/docs/section.json +6 -6
  156. package/docs/section.md +12 -12
  157. package/docs/segmented-control.json +14 -14
  158. package/docs/segmented-control.md +32 -32
  159. package/docs/skeleton.json +1 -1
  160. package/docs/skeleton.md +1 -1
  161. package/docs/skills/build-own-element/SKILL.md +3 -3
  162. package/docs/skills/compose-screen/SKILL.md +2 -2
  163. package/docs/skills/index.md +2 -2
  164. package/docs/skills/review-screen/SKILL.md +3 -3
  165. package/docs/skills/theme-app/SKILL.md +9 -9
  166. package/docs/skills/waiting-states/SKILL.md +1 -1
  167. package/docs/slider.json +8 -8
  168. package/docs/slider.md +12 -12
  169. package/docs/sparkline.json +8 -8
  170. package/docs/sparkline.md +6 -6
  171. package/docs/split-button.json +11 -11
  172. package/docs/split-button.md +25 -27
  173. package/docs/stack.json +1 -1
  174. package/docs/stack.md +1 -1
  175. package/docs/stat-card.json +3 -3
  176. package/docs/stat-card.md +2 -2
  177. package/docs/status-indicator.json +8 -8
  178. package/docs/status-indicator.md +5 -5
  179. package/docs/stepper.json +4 -4
  180. package/docs/stepper.md +4 -4
  181. package/docs/switch.json +5 -5
  182. package/docs/switch.md +7 -7
  183. package/docs/table-of-contents.json +11 -11
  184. package/docs/table-of-contents.md +12 -12
  185. package/docs/table.examples.md +1 -1
  186. package/docs/table.json +1 -1
  187. package/docs/tabs.json +1 -1
  188. package/docs/tabs.md +1 -1
  189. package/docs/tag.json +17 -17
  190. package/docs/tag.md +14 -14
  191. package/docs/tags-input.json +1 -1
  192. package/docs/tags-input.md +1 -1
  193. package/docs/text-field.examples.md +6 -6
  194. package/docs/text-field.json +4 -4
  195. package/docs/textarea.examples.md +7 -7
  196. package/docs/textarea.json +3 -3
  197. package/docs/time-field.json +3 -3
  198. package/docs/time-field.md +6 -6
  199. package/docs/time-picker.json +5 -5
  200. package/docs/time-picker.md +6 -6
  201. package/docs/time-range-picker.examples.md +5 -5
  202. package/docs/time-range-picker.json +5 -5
  203. package/docs/time-range-picker.md +1 -1
  204. package/docs/toast.json +6 -6
  205. package/docs/toast.md +6 -6
  206. package/docs/toggle-group.json +12 -12
  207. package/docs/toggle-group.md +28 -28
  208. package/docs/toggle.json +8 -8
  209. package/docs/toggle.md +7 -7
  210. package/docs/tokens.md +15 -15
  211. package/docs/toolbar.json +11 -11
  212. package/docs/toolbar.md +23 -23
  213. package/docs/tooltip.json +3 -3
  214. package/docs/tooltip.md +3 -3
  215. package/docs/top-navigation.examples.md +11 -15
  216. package/docs/top-navigation.json +9 -9
  217. package/docs/top-navigation.md +7 -7
  218. package/docs/tour.json +9 -9
  219. package/docs/tour.md +6 -6
  220. package/docs/typography.json +2 -2
  221. package/docs/typography.md +2 -2
  222. package/docs/upload.examples.md +3 -3
  223. package/docs/upload.json +9 -9
  224. package/docs/upload.md +4 -4
  225. package/fesm2022/slotted-angular-alert.mjs +2 -2
  226. package/fesm2022/slotted-angular-alert.mjs.map +1 -1
  227. package/fesm2022/slotted-angular-app-shell.mjs +10 -10
  228. package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
  229. package/fesm2022/slotted-angular-avatar-group.mjs +4 -4
  230. package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
  231. package/fesm2022/slotted-angular-avatar.mjs +3 -3
  232. package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
  233. package/fesm2022/slotted-angular-badge.mjs +1 -1
  234. package/fesm2022/slotted-angular-badge.mjs.map +1 -1
  235. package/fesm2022/slotted-angular-breadcrumb.mjs +1 -1
  236. package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
  237. package/fesm2022/slotted-angular-button-group.mjs +1 -1
  238. package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
  239. package/fesm2022/slotted-angular-button.mjs +2 -2
  240. package/fesm2022/slotted-angular-button.mjs.map +1 -1
  241. package/fesm2022/slotted-angular-card.mjs +1 -1
  242. package/fesm2022/slotted-angular-card.mjs.map +1 -1
  243. package/fesm2022/slotted-angular-chart.mjs +2 -2
  244. package/fesm2022/slotted-angular-chart.mjs.map +1 -1
  245. package/fesm2022/slotted-angular-checkbox.mjs +1 -1
  246. package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
  247. package/fesm2022/slotted-angular-code-block.mjs +1 -1
  248. package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
  249. package/fesm2022/slotted-angular-collapsible.mjs +1 -1
  250. package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
  251. package/fesm2022/slotted-angular-color-picker.mjs +6 -6
  252. package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
  253. package/fesm2022/slotted-angular-column-manager.mjs +3 -1
  254. package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
  255. package/fesm2022/slotted-angular-currency-field.mjs +2 -2
  256. package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
  257. package/fesm2022/slotted-angular-data-grid.mjs +1 -1
  258. package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
  259. package/fesm2022/slotted-angular-datetime-field.mjs +1 -1
  260. package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
  261. package/fesm2022/slotted-angular-datetime-range-picker.mjs +6 -6
  262. package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
  263. package/fesm2022/slotted-angular-description-list.mjs +3 -3
  264. package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
  265. package/fesm2022/slotted-angular-dialog.mjs +3 -3
  266. package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
  267. package/fesm2022/slotted-angular-drawer.mjs +1 -1
  268. package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
  269. package/fesm2022/slotted-angular-event-calendar.mjs +3 -3
  270. package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
  271. package/fesm2022/slotted-angular-field.mjs +2 -2
  272. package/fesm2022/slotted-angular-field.mjs.map +1 -1
  273. package/fesm2022/slotted-angular-form.mjs +6 -6
  274. package/fesm2022/slotted-angular-form.mjs.map +1 -1
  275. package/fesm2022/slotted-angular-grid.mjs +2 -2
  276. package/fesm2022/slotted-angular-grid.mjs.map +1 -1
  277. package/fesm2022/slotted-angular-highlight.mjs +1 -1
  278. package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
  279. package/fesm2022/slotted-angular-icon.mjs +3 -3
  280. package/fesm2022/slotted-angular-icon.mjs.map +1 -1
  281. package/fesm2022/slotted-angular-import-export-center.mjs +10 -10
  282. package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
  283. package/fesm2022/slotted-angular-inline-message.mjs +4 -4
  284. package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
  285. package/fesm2022/slotted-angular-inline.mjs +3 -3
  286. package/fesm2022/slotted-angular-inline.mjs.map +1 -1
  287. package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
  288. package/fesm2022/slotted-angular-list.mjs +1 -1
  289. package/fesm2022/slotted-angular-list.mjs.map +1 -1
  290. package/fesm2022/slotted-angular-listbox.mjs +2 -2
  291. package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
  292. package/fesm2022/slotted-angular-loading-overlay.mjs +3 -3
  293. package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
  294. package/fesm2022/slotted-angular-menu.mjs +2 -2
  295. package/fesm2022/slotted-angular-menu.mjs.map +1 -1
  296. package/fesm2022/slotted-angular-message-scroller.mjs +1 -1
  297. package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
  298. package/fesm2022/slotted-angular-notification-center.mjs +3 -3
  299. package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
  300. package/fesm2022/slotted-angular-number-field.mjs +1 -1
  301. package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
  302. package/fesm2022/slotted-angular-otp-input.mjs +1 -1
  303. package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
  304. package/fesm2022/slotted-angular-popover.mjs +2 -2
  305. package/fesm2022/slotted-angular-popover.mjs.map +1 -1
  306. package/fesm2022/slotted-angular-progress-indicator.mjs +2 -2
  307. package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
  308. package/fesm2022/slotted-angular-radio-group.mjs +2 -2
  309. package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
  310. package/fesm2022/slotted-angular-rating.mjs +5 -5
  311. package/fesm2022/slotted-angular-rating.mjs.map +1 -1
  312. package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
  313. package/fesm2022/slotted-angular-segmented-control.mjs +1 -1
  314. package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
  315. package/fesm2022/slotted-angular-slider.mjs +3 -3
  316. package/fesm2022/slotted-angular-slider.mjs.map +1 -1
  317. package/fesm2022/slotted-angular-stack.mjs +2 -2
  318. package/fesm2022/slotted-angular-stack.mjs.map +1 -1
  319. package/fesm2022/slotted-angular-status-indicator.mjs +1 -1
  320. package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
  321. package/fesm2022/slotted-angular-switch.mjs.map +1 -1
  322. package/fesm2022/slotted-angular-table.mjs +2 -2
  323. package/fesm2022/slotted-angular-table.mjs.map +1 -1
  324. package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
  325. package/fesm2022/slotted-angular-tag.mjs +1 -1
  326. package/fesm2022/slotted-angular-tag.mjs.map +1 -1
  327. package/fesm2022/slotted-angular-tags-input.mjs +1 -1
  328. package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
  329. package/fesm2022/slotted-angular-theme.mjs.map +1 -1
  330. package/fesm2022/slotted-angular-time-range-picker.mjs +6 -6
  331. package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
  332. package/fesm2022/slotted-angular-toast.mjs +2 -2
  333. package/fesm2022/slotted-angular-toast.mjs.map +1 -1
  334. package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
  335. package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
  336. package/fesm2022/slotted-angular-tour.mjs +3 -3
  337. package/fesm2022/slotted-angular-tour.mjs.map +1 -1
  338. package/fesm2022/slotted-angular-typography.mjs +1 -1
  339. package/fesm2022/slotted-angular-typography.mjs.map +1 -1
  340. package/fesm2022/slotted-angular-upload.mjs +2 -2
  341. package/fesm2022/slotted-angular-upload.mjs.map +1 -1
  342. package/fesm2022/slotted-angular-wizard.mjs +6 -6
  343. package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
  344. package/package.json +15 -3
  345. package/types/slotted-angular-alert.d.ts +3 -3
  346. package/types/slotted-angular-app-shell.d.ts +4 -4
  347. package/types/slotted-angular-avatar-group.d.ts +3 -3
  348. package/types/slotted-angular-avatar.d.ts +6 -6
  349. package/types/slotted-angular-badge.d.ts +3 -3
  350. package/types/slotted-angular-breadcrumb.d.ts +1 -1
  351. package/types/slotted-angular-button-group.d.ts +1 -1
  352. package/types/slotted-angular-button.d.ts +2 -2
  353. package/types/slotted-angular-card.d.ts +1 -1
  354. package/types/slotted-angular-chart.d.ts +2 -2
  355. package/types/slotted-angular-checkbox.d.ts +1 -1
  356. package/types/slotted-angular-code-block.d.ts +1 -1
  357. package/types/slotted-angular-collapsible.d.ts +1 -1
  358. package/types/slotted-angular-color-picker.d.ts +6 -6
  359. package/types/slotted-angular-column-manager.d.ts +1 -1
  360. package/types/slotted-angular-column-manager.d.ts.map +1 -1
  361. package/types/slotted-angular-currency-field.d.ts +1 -1
  362. package/types/slotted-angular-data-grid.d.ts +1 -1
  363. package/types/slotted-angular-datetime-range-picker.d.ts +1 -1
  364. package/types/slotted-angular-description-list.d.ts +1 -1
  365. package/types/slotted-angular-field.d.ts +2 -2
  366. package/types/slotted-angular-form.d.ts +1 -1
  367. package/types/slotted-angular-highlight.d.ts +1 -1
  368. package/types/slotted-angular-icon.d.ts +2 -2
  369. package/types/slotted-angular-import-export-center.d.ts +9 -9
  370. package/types/slotted-angular-inline-message.d.ts +3 -3
  371. package/types/slotted-angular-inline.d.ts +1 -1
  372. package/types/slotted-angular-kbd.d.ts +1 -1
  373. package/types/slotted-angular-list.d.ts +1 -1
  374. package/types/slotted-angular-listbox.d.ts +2 -2
  375. package/types/slotted-angular-loading-overlay.d.ts +3 -3
  376. package/types/slotted-angular-menu.d.ts +1 -1
  377. package/types/slotted-angular-message-scroller.d.ts +1 -1
  378. package/types/slotted-angular-notification-center.d.ts +4 -4
  379. package/types/slotted-angular-otp-input.d.ts +1 -1
  380. package/types/slotted-angular-progress-indicator.d.ts +2 -2
  381. package/types/slotted-angular-radio-group.d.ts +2 -2
  382. package/types/slotted-angular-rating.d.ts +2 -2
  383. package/types/slotted-angular-result-state.d.ts +1 -1
  384. package/types/slotted-angular-segmented-control.d.ts +2 -2
  385. package/types/slotted-angular-status-indicator.d.ts +2 -2
  386. package/types/slotted-angular-switch.d.ts +1 -1
  387. package/types/slotted-angular-table.d.ts +1 -1
  388. package/types/slotted-angular-tabs.d.ts +1 -1
  389. package/types/slotted-angular-tag.d.ts +3 -3
  390. package/types/slotted-angular-tags-input.d.ts +1 -1
  391. package/types/slotted-angular-theme.d.ts +1 -1
  392. package/types/slotted-angular-time-range-picker.d.ts +1 -1
  393. package/types/slotted-angular-toast.d.ts +4 -4
  394. package/types/slotted-angular-toggle-group.d.ts +1 -1
  395. package/types/slotted-angular-toggle.d.ts +1 -1
  396. package/types/slotted-angular-tour.d.ts +2 -2
  397. package/types/slotted-angular-wizard.d.ts +1 -1
@@ -12,19 +12,19 @@ A drawer opened inside the scene rather than over the page. Press the trigger, t
12
12
  Excerpt — not a complete module
13
13
 
14
14
  ```html
15
- <button slButton [slDrawerTrigger]="d">Abrir detalhes</button>
15
+ <button slButton [slDrawerTrigger]="d">Open details</button>
16
16
  <sl-drawer #d="slDrawer">
17
17
  <header slDrawerHeader>
18
- <h2 slDrawerTitle>Fatura 4471</h2>
19
- <p slDrawerDescription>Emitida em 12 de agosto.</p>
18
+ <h2 slDrawerTitle>Invoice 4471</h2>
19
+ <p slDrawerDescription>Issued on August 12.</p>
20
20
  <button slDrawerClose></button>
21
21
  </header>
22
22
  <div slDrawerBody>
23
- <input slTextField aria-label="Observação" />
23
+ <input slTextField aria-label="Note" />
24
24
  </div>
25
25
  <footer slDrawerFooter>
26
- <button slButton size="sm" variant="ghost" tone="secondary">Cancelar</button>
27
- <button slButton size="sm">Salvar</button>
26
+ <button slButton size="sm" variant="ghost" tone="secondary">Cancel</button>
27
+ <button slButton size="sm">Save</button>
28
28
  </footer>
29
29
  </sl-drawer>
30
30
  ```
@@ -38,7 +38,7 @@ Excerpt — not a complete module
38
38
  ```html
39
39
  <div style="display: grid; grid-template-columns: auto minmax(0, 1fr)">
40
40
  <sl-drawer [mode]="wide() ? 'inline' : 'overlay'" [(open)]="open" side="start">
41
- <nav slDrawerBody aria-label="Seções">…</nav>
41
+ <nav slDrawerBody aria-label="Sections">…</nav>
42
42
  </sl-drawer>
43
43
  <main>…</main>
44
44
  </div>
@@ -297,9 +297,9 @@ Excerpt — not a complete module
297
297
 
298
298
  ```html
299
299
  <sl-drawer side="bottom" [(open)]="reminding">
300
- <header slDrawerHeader><h2 slDrawerTitle>Enviar lembrete</h2></header>
300
+ <header slDrawerHeader><h2 slDrawerTitle>Send reminder</h2></header>
301
301
  <div slDrawerBody>
302
- <input slTextField aria-label="Nota para o cliente" />
302
+ <input slTextField aria-label="Note for the customer" />
303
303
  </div>
304
304
  <footer slDrawerFooter>…</footer>
305
305
  </sl-drawer>
@@ -590,7 +590,7 @@ Excerpt — not a complete module
590
590
  <h2 slDrawerTitle>{{ fileName }}</h2>
591
591
  </header>
592
592
  <div slDrawerBody>{{ longText }}</div>
593
- <footer slDrawerFooter><button slButton>Salvar</button></footer>
593
+ <footer slDrawerFooter><button slButton>Save</button></footer>
594
594
  </sl-drawer>
595
595
  ```
596
596
 
@@ -601,9 +601,9 @@ Every part is a directive on an element the consumer wrote, so the trigger is th
601
601
  Excerpt — not a complete module
602
602
 
603
603
  ```html
604
- <button slButton variant="outline" [slDrawerTrigger]="d">Abrir</button>
604
+ <button slButton variant="outline" [slDrawerTrigger]="d">Open</button>
605
605
  <sl-drawer #d="slDrawer" mode="inline" side="start">
606
- <nav slDrawerBody aria-label="Seções">…</nav>
606
+ <nav slDrawerBody aria-label="Sections">…</nav>
607
607
  </sl-drawer>
608
608
  ```
609
609
 
@@ -684,7 +684,7 @@ Excerpt — not a complete module
684
684
 
685
685
  ```html
686
686
  <sl-drawer mode="inline" side="start">
687
- <header slDrawerHeader><h2 slDrawerTitle>Coleções</h2></header>
687
+ <header slDrawerHeader><h2 slDrawerTitle>Collections</h2></header>
688
688
  <div slDrawerResizer></div>
689
689
  </sl-drawer>
690
690
  ```
package/docs/drawer.json CHANGED
@@ -540,7 +540,7 @@
540
540
  "title": "Playground",
541
541
  "note": "A drawer opened inside the scene rather than over the page. Press the trigger, then Tab: focus is contained, Escape closes, and focus returns to the button it came from.",
542
542
  "language": "html",
543
- "source": "<button slButton [slDrawerTrigger]=\"d\">Abrir detalhes</button>\n<sl-drawer #d=\"slDrawer\">\n <header slDrawerHeader>\n <h2 slDrawerTitle>Fatura 4471</h2>\n <p slDrawerDescription>Emitida em 12 de agosto.</p>\n <button slDrawerClose></button>\n </header>\n <div slDrawerBody>\n <input slTextField aria-label=\"Observação\" />\n </div>\n <footer slDrawerFooter>\n <button slButton size=\"sm\" variant=\"ghost\" tone=\"secondary\">Cancelar</button>\n <button slButton size=\"sm\">Salvar</button>\n </footer>\n</sl-drawer>\n",
543
+ "source": "<button slButton [slDrawerTrigger]=\"d\">Open details</button>\n<sl-drawer #d=\"slDrawer\">\n <header slDrawerHeader>\n <h2 slDrawerTitle>Invoice 4471</h2>\n <p slDrawerDescription>Issued on August 12.</p>\n <button slDrawerClose></button>\n </header>\n <div slDrawerBody>\n <input slTextField aria-label=\"Note\" />\n </div>\n <footer slDrawerFooter>\n <button slButton size=\"sm\" variant=\"ghost\" tone=\"secondary\">Cancel</button>\n <button slButton size=\"sm\">Save</button>\n </footer>\n</sl-drawer>\n",
544
544
  "verdict": "excerpt"
545
545
  },
546
546
  {
@@ -548,7 +548,7 @@
548
548
  "title": "A layer over the page, or a panel beside it",
549
549
  "note": "One axis rather than two components, because an application binds it to its own breakpoint: swapping one element for another there would take the panel’s scroll position, its focus and every uncontrolled control with it.",
550
550
  "language": "html",
551
- "source": "<div style=\"display: grid; grid-template-columns: auto minmax(0, 1fr)\">\n <sl-drawer [mode]=\"wide() ? 'inline' : 'overlay'\" [(open)]=\"open\" side=\"start\">\n <nav slDrawerBody aria-label=\"Seções\">…</nav>\n </sl-drawer>\n <main>…</main>\n</div>\n",
551
+ "source": "<div style=\"display: grid; grid-template-columns: auto minmax(0, 1fr)\">\n <sl-drawer [mode]=\"wide() ? 'inline' : 'overlay'\" [(open)]=\"open\" side=\"start\">\n <nav slDrawerBody aria-label=\"Sections\">…</nav>\n </sl-drawer>\n <main>…</main>\n</div>\n",
552
552
  "verdict": "excerpt"
553
553
  },
554
554
  {
@@ -604,7 +604,7 @@
604
604
  "title": "A sheet above the virtual keyboard",
605
605
  "note": "On a phone the keyboard shrinks the visual viewport and leaves fixed layers under the keys. The open layer reads what the keyboard covers and recedes by it, so the sheet — and its footer — land above the keys. The button beside the scene writes the same property the binding writes, 260 pixels, to show it on a screen without one.",
606
606
  "language": "html",
607
- "source": "<sl-drawer side=\"bottom\" [(open)]=\"reminding\">\n <header slDrawerHeader><h2 slDrawerTitle>Enviar lembrete</h2></header>\n <div slDrawerBody>\n <input slTextField aria-label=\"Nota para o cliente\" />\n </div>\n <footer slDrawerFooter>…</footer>\n</sl-drawer>\n",
607
+ "source": "<sl-drawer side=\"bottom\" [(open)]=\"reminding\">\n <header slDrawerHeader><h2 slDrawerTitle>Send reminder</h2></header>\n <div slDrawerBody>\n <input slTextField aria-label=\"Note for the customer\" />\n </div>\n <footer slDrawerFooter>…</footer>\n</sl-drawer>\n",
608
608
  "verdict": "excerpt"
609
609
  },
610
610
  {
@@ -652,7 +652,7 @@
652
652
  "title": "Content the family did not choose",
653
653
  "note": "A ninety-character token in a title breaks rather than widening the panel, and a body longer than the layer scrolls while the actions hold still. MUI and Angular Material ship no layout, so a footer past the fold is the default of following either.",
654
654
  "language": "html",
655
- "source": "<sl-drawer>\n <header slDrawerHeader>\n <h2 slDrawerTitle>{{ fileName }}</h2>\n </header>\n <div slDrawerBody>{{ longText }}</div>\n <footer slDrawerFooter><button slButton>Salvar</button></footer>\n</sl-drawer>\n",
655
+ "source": "<sl-drawer>\n <header slDrawerHeader>\n <h2 slDrawerTitle>{{ fileName }}</h2>\n </header>\n <div slDrawerBody>{{ longText }}</div>\n <footer slDrawerFooter><button slButton>Save</button></footer>\n</sl-drawer>\n",
656
656
  "verdict": "excerpt"
657
657
  },
658
658
  {
@@ -660,7 +660,7 @@
660
660
  "title": "The parts are the consumer’s own elements",
661
661
  "note": "Every part is a directive on an element the consumer wrote, so the trigger is the library’s button and an inline panel’s content is a nav — nothing is reimplemented and nothing is wrapped. An empty list inside the body is result-state, which owns that question.",
662
662
  "language": "html",
663
- "source": "<button slButton variant=\"outline\" [slDrawerTrigger]=\"d\">Abrir</button>\n<sl-drawer #d=\"slDrawer\" mode=\"inline\" side=\"start\">\n <nav slDrawerBody aria-label=\"Seções\">…</nav>\n</sl-drawer>\n",
663
+ "source": "<button slButton variant=\"outline\" [slDrawerTrigger]=\"d\">Open</button>\n<sl-drawer #d=\"slDrawer\" mode=\"inline\" side=\"start\">\n <nav slDrawerBody aria-label=\"Sections\">…</nav>\n</sl-drawer>\n",
664
664
  "verdict": "excerpt"
665
665
  },
666
666
  {
@@ -676,7 +676,7 @@
676
676
  "title": "What a reader hears, and what they can reach",
677
677
  "note": "The title names the panel and the separator; the trigger says expanded in both modes and haspopup in one. Tab wraps inside a modal panel, and the closed panel of an inline drawer is inert so the collapse the eye reads and the tab order agree.",
678
678
  "language": "html",
679
- "source": "<sl-drawer mode=\"inline\" side=\"start\">\n <header slDrawerHeader><h2 slDrawerTitle>Coleções</h2></header>\n <div slDrawerResizer></div>\n</sl-drawer>\n",
679
+ "source": "<sl-drawer mode=\"inline\" side=\"start\">\n <header slDrawerHeader><h2 slDrawerTitle>Collections</h2></header>\n <div slDrawerResizer></div>\n</sl-drawer>\n",
680
680
  "verdict": "excerpt"
681
681
  },
682
682
  {
@@ -101,9 +101,9 @@ Excerpt — not a complete module
101
101
  <div slEventCalendar [events]="shifts" [timeZone]="zone" defaultView="day"></div>
102
102
  ```
103
103
 
104
- ### Calendars and their colours
104
+ ### Calendars and their colors
105
105
 
106
- Each calendar takes a slot of the data palette in order and never cycles. The filter is a menu of checkboxes; a predicate composes a search on top. Colour is identity only: the calendar is also in every event’s name.
106
+ Each calendar takes a slot of the data palette in order and never cycles. The filter is a menu of checkboxes; a predicate composes a search on top. Color is identity only: the calendar is also in every event’s name.
107
107
 
108
108
  Excerpt — not a complete module
109
109
 
@@ -250,7 +250,7 @@ Excerpt — not a complete module
250
250
 
251
251
  ### On a phone
252
252
 
253
- Below 600 pixels the month and the week draw as a list of the same days and the view does not change. With compact="keep" the grid stays: events become marks of colour, the day is the target, and each keeps its name. At that width the “+N” panel and the detail are sheets from the bottom edge rather than popovers.
253
+ Below 600 pixels the month and the week draw as a list of the same days and the view does not change. With compact="keep" the grid stays: events become marks of color, the day is the target, and each keeps its name. At that width the “+N” panel and the detail are sheets from the bottom edge rather than popovers.
254
254
 
255
255
  Excerpt — not a complete module
256
256
 
@@ -543,7 +543,7 @@
543
543
  "type": "readonly EventCalendarCalendar[]",
544
544
  "defaultValue": "[]",
545
545
  "appliesTo": "slEventCalendar",
546
- "description": "Key, label and an optional colour slot 1–8"
546
+ "description": "Key, label and an optional color slot 1–8"
547
547
  },
548
548
  {
549
549
  "name": "date",
@@ -908,7 +908,7 @@
908
908
  ],
909
909
  "accessibility": [
910
910
  "No Authoring Practices pattern covers a calendar of events. The month and the week are the layout grid of the Grid pattern with the day as its cell: one cell holds the tab stop, arrows move the day, Enter goes into the day’s widgets and Escape or F2 comes back out.",
911
- "Every event is named by its own content and a visually hidden continuation: the whole range, the calendar, the status and whether it repeats. Position and colour state nothing the words do not; a multi-day bar is heard as continuing on each day it crosses.",
911
+ "Every event is named by its own content and a visually hidden continuation: the whole range, the calendar, the status and whether it repeats. Position and color state nothing the words do not; a multi-day bar is heard as continuing on each day it crosses.",
912
912
  "The title is a heading and a polite live region, so paging by key announces the new period; a chosen stretch is announced once through the shared live announcer, and a wait once when its indicator appears.",
913
913
  "The title and the list days are role=\"heading\" with aria-level from the level input, because an Angular template cannot choose an element’s tag at run time; the React binding writes h2 to h6. Both expose the same heading to a screen reader.",
914
914
  "Every move a pointer makes has a key: with an editable event focused, Alt and the arrows move it a slot or a day, and Alt with Shift moves its end. The request is announced once with the title and the new range, and focus stays on the event where it lands. A destination canDrop refuses is passed over for the next allowed one; with none in reach the event stays and the refusal is announced.",
@@ -1087,8 +1087,8 @@
1087
1087
  },
1088
1088
  {
1089
1089
  "id": "calendars",
1090
- "title": "Calendars and their colours",
1091
- "note": "Each calendar takes a slot of the data palette in order and never cycles. The filter is a menu of checkboxes; a predicate composes a search on top. Colour is identity only: the calendar is also in every event’s name.",
1090
+ "title": "Calendars and their colors",
1091
+ "note": "Each calendar takes a slot of the data palette in order and never cycles. The filter is a menu of checkboxes; a predicate composes a search on top. Color is identity only: the calendar is also in every event’s name.",
1092
1092
  "language": "html",
1093
1093
  "source": "<div\n slEventCalendar\n [calendars]=\"calendars\"\n [events]=\"events\"\n [(visibleCalendars)]=\"visible\"\n [filter]=\"matches\"\n>\n <div slTextField slEventCalendarActions size=\"sm\">\n <input slTextFieldInput type=\"search\" aria-label=\"Search events\" (input)=\"search($event)\" />\n </div>\n</div>\n",
1094
1094
  "verdict": "excerpt"
@@ -1168,7 +1168,7 @@
1168
1168
  {
1169
1169
  "id": "compact",
1170
1170
  "title": "On a phone",
1171
- "note": "Below 600 pixels the month and the week draw as a list of the same days and the view does not change. With compact=\"keep\" the grid stays: events become marks of colour, the day is the target, and each keeps its name. At that width the “+N” panel and the detail are sheets from the bottom edge rather than popovers.",
1171
+ "note": "Below 600 pixels the month and the week draw as a list of the same days and the view does not change. With compact=\"keep\" the grid stays: events become marks of color, the day is the target, and each keeps its name. At that width the “+N” panel and the detail are sheets from the bottom edge rather than popovers.",
1172
1172
  "language": "html",
1173
1173
  "source": "<div slEventCalendar [events]=\"events\" compact=\"keep\"></div>\n",
1174
1174
  "verdict": "excerpt"
@@ -109,7 +109,7 @@ Excerpt — not a complete module
109
109
  | Name | Type | Default | Applies to | Description |
110
110
  | --- | --- | --- | --- | --- |
111
111
  | `events` | `readonly CalendarEvent[]` | [] | slEventCalendar | The consumer’s events; a start without a time is all-day |
112
- | `calendars` | `readonly EventCalendarCalendar[]` | [] | slEventCalendar | Key, label and an optional colour slot 1–8 |
112
+ | `calendars` | `readonly EventCalendarCalendar[]` | [] | slEventCalendar | Key, label and an optional color slot 1–8 |
113
113
  | `date` | `model<PlainDate \| undefined>` | — | slEventCalendar | The day the calendar is on; [(date)] two-way |
114
114
  | `defaultDate` | `PlainDate` | today in timeZone | slEventCalendar | Read once; pass it when rendering on a server |
115
115
  | `now` | `PlainDateTime` | the clock in timeZone, ticked each minute | slEventCalendar | Present means the consumer owns it: the clock is no longer read, and today and the now line follow it. A page dated by its content passes it. |
@@ -186,7 +186,7 @@ Excerpt — not a complete module
186
186
  ## Rules
187
187
 
188
188
  - No Authoring Practices pattern covers a calendar of events. The month and the week are the layout grid of the Grid pattern with the day as its cell: one cell holds the tab stop, arrows move the day, Enter goes into the day’s widgets and Escape or F2 comes back out.
189
- - Every event is named by its own content and a visually hidden continuation: the whole range, the calendar, the status and whether it repeats. Position and colour state nothing the words do not; a multi-day bar is heard as continuing on each day it crosses.
189
+ - Every event is named by its own content and a visually hidden continuation: the whole range, the calendar, the status and whether it repeats. Position and color state nothing the words do not; a multi-day bar is heard as continuing on each day it crosses.
190
190
  - The title is a heading and a polite live region, so paging by key announces the new period; a chosen stretch is announced once through the shared live announcer, and a wait once when its indicator appears.
191
191
  - The title and the list days are role="heading" with aria-level from the level input, because an Angular template cannot choose an element’s tag at run time; the React binding writes h2 to h6. Both expose the same heading to a screen reader.
192
192
  - Every move a pointer makes has a key: with an editable event focused, Alt and the arrows move it a slot or a day, and Alt with Shift moves its end. The request is announced once with the title and the new range, and focus stays on the event where it lands. A destination canDrop refuses is passed over for the next allowed one; with none in reach the event stays and the refusal is announced.
@@ -285,7 +285,7 @@
285
285
  "title": "Playground",
286
286
  "note": "A group with its legend, its help and two fields, driven by the controls below the canvas. Switch orientation to horizontal and narrow the window to see the row wrap rather than squeeze.",
287
287
  "language": "html",
288
- "source": "<fieldset slFieldGroup>\n <legend slFieldGroupLegend>Endereço de cobrança</legend>\n <span slFieldGroupDescription>Precisamos dele para emitir a nota fiscal.</span>\n <div slField>\n <label slFieldLabel>Logradouro</label>\n <input slFieldControl />\n </div>\n</fieldset>\n",
288
+ "source": "<fieldset slFieldGroup>\n <legend slFieldGroupLegend>Billing address</legend>\n <span slFieldGroupDescription>We need it to issue the invoice.</span>\n <div slField>\n <label slFieldLabel>Street</label>\n <input slFieldControl />\n </div>\n</fieldset>\n",
289
289
  "verdict": "excerpt"
290
290
  },
291
291
  {
@@ -293,7 +293,7 @@
293
293
  "title": "A column of fields, or a row",
294
294
  "note": "A row wraps rather than squeezing: each field keeps enough width to hold a date or a document number, and drops to the next line instead of clipping what is being typed into it.",
295
295
  "language": "html",
296
- "source": "<fieldset slFieldGroup orientation=\"horizontal\">\n <legend slFieldGroupLegend>Vigência do contrato</legend>\n <div slField>…</div>\n <div slField>…</div>\n</fieldset>\n",
296
+ "source": "<fieldset slFieldGroup orientation=\"horizontal\">\n <legend slFieldGroupLegend>Contract term</legend>\n <div slField>…</div>\n <div slField>…</div>\n</fieldset>\n",
297
297
  "verdict": "excerpt"
298
298
  },
299
299
  {
@@ -301,7 +301,7 @@
301
301
  "title": "Disabled by the platform, invalid by the group",
302
302
  "note": "Nothing is passed down for disabled: the browser disables every control inside a disabled fieldset. What the family adds is the muting of the words — a legend is not a control, and a section that turned off while keeping its name at full strength reads as available.",
303
303
  "language": "html",
304
- "source": "<fieldset slFieldGroup disabled>\n <legend slFieldGroupLegend>Repasse automático</legend>\n <div slField>…</div>\n</fieldset>\n",
304
+ "source": "<fieldset slFieldGroup disabled>\n <legend slFieldGroupLegend>Automatic payout</legend>\n <div slField>…</div>\n</fieldset>\n",
305
305
  "verdict": "excerpt"
306
306
  },
307
307
  {
@@ -309,7 +309,7 @@
309
309
  "title": "What is said about the set, before the set",
310
310
  "note": "The description and the error come between the legend and the fields — where GOV.UK’s fieldset example puts them, and the opposite of where a single field puts its own. Both ids go on the fieldset, so a reader entering any control hears them once.",
311
311
  "language": "html",
312
- "source": "<fieldset slFieldGroup invalid required>\n <legend slFieldGroupLegend>Nacionalidade</legend>\n <span slFieldGroupDescription>Marque todas as que se aplicam.</span>\n <span slFieldGroupError>Escolha ao menos uma nacionalidade.</span>\n <label for=\"nat-br\"><input id=\"nat-br\" type=\"checkbox\" /> Brasileira</label>\n</fieldset>\n",
312
+ "source": "<fieldset slFieldGroup invalid required>\n <legend slFieldGroupLegend>Nationality</legend>\n <span slFieldGroupDescription>Check all that apply.</span>\n <span slFieldGroupError>Choose at least one nationality.</span>\n <label for=\"nat-us\"><input id=\"nat-us\" type=\"checkbox\" /> American</label>\n</fieldset>\n",
313
313
  "verdict": "excerpt"
314
314
  },
315
315
  {
@@ -325,7 +325,7 @@
325
325
  "title": "A legend that is also the page heading",
326
326
  "note": "GOV.UK recommends it on a page asking one question, so a reader hears the question once rather than twice. The heading keeps its own type and loses only the block break that would drop the necessity words onto a line of their own.",
327
327
  "language": "html",
328
- "source": "<fieldset slFieldGroup required necessity=\"words\">\n <legend slFieldGroupLegend><h1>Qual é a sua nacionalidade?</h1></legend>\n</fieldset>\n",
328
+ "source": "<fieldset slFieldGroup required necessity=\"words\">\n <legend slFieldGroupLegend><h1>What is your nationality?</h1></legend>\n</fieldset>\n",
329
329
  "verdict": "excerpt"
330
330
  },
331
331
  {
@@ -333,7 +333,7 @@
333
333
  "title": "Composition and escape hatches",
334
334
  "note": "A group inside a group inherits what the outer one decided and restates the rest; exportAs hands the template the identifiers the group derived, and the content slot holds anything — checkboxes written directly, not one field each.",
335
335
  "language": "html",
336
- "source": "<fieldset slFieldGroup size=\"sm\">\n <fieldset slFieldGroup necessity=\"none\" orientation=\"horizontal\">\n <legend slFieldGroupLegend>Vigência</legend>\n <div slField>…</div>\n </fieldset>\n</fieldset>\n",
336
+ "source": "<fieldset slFieldGroup size=\"sm\">\n <fieldset slFieldGroup necessity=\"none\" orientation=\"horizontal\">\n <legend slFieldGroupLegend>Term</legend>\n <div slField>…</div>\n </fieldset>\n</fieldset>\n",
337
337
  "verdict": "excerpt"
338
338
  },
339
339
  {
@@ -22,10 +22,10 @@ Excerpt — not a complete module
22
22
 
23
23
  ```html
24
24
  <fieldset slFieldGroup>
25
- <legend slFieldGroupLegend>Endereço de cobrança</legend>
26
- <span slFieldGroupDescription>Precisamos dele para emitir a nota fiscal.</span>
25
+ <legend slFieldGroupLegend>Billing address</legend>
26
+ <span slFieldGroupDescription>We need it to issue the invoice.</span>
27
27
  <div slField>
28
- <label slFieldLabel>Logradouro</label>
28
+ <label slFieldLabel>Street</label>
29
29
  <input slFieldControl />
30
30
  </div>
31
31
  </fieldset>
@@ -96,7 +96,7 @@ Excerpt — not a complete module
96
96
 
97
97
  ```html
98
98
  <fieldset slFieldGroup orientation="horizontal">
99
- <legend slFieldGroupLegend>Vigência do contrato</legend>
99
+ <legend slFieldGroupLegend>Contract term</legend>
100
100
  <div slField>…</div>
101
101
  <div slField>…</div>
102
102
  </fieldset>
@@ -110,7 +110,7 @@ Excerpt — not a complete module
110
110
 
111
111
  ```html
112
112
  <fieldset slFieldGroup disabled>
113
- <legend slFieldGroupLegend>Repasse automático</legend>
113
+ <legend slFieldGroupLegend>Automatic payout</legend>
114
114
  <div slField>…</div>
115
115
  </fieldset>
116
116
  ```
@@ -123,10 +123,10 @@ Excerpt — not a complete module
123
123
 
124
124
  ```html
125
125
  <fieldset slFieldGroup invalid required>
126
- <legend slFieldGroupLegend>Nacionalidade</legend>
127
- <span slFieldGroupDescription>Marque todas as que se aplicam.</span>
128
- <span slFieldGroupError>Escolha ao menos uma nacionalidade.</span>
129
- <label for="nat-br"><input id="nat-br" type="checkbox" /> Brasileira</label>
126
+ <legend slFieldGroupLegend>Nationality</legend>
127
+ <span slFieldGroupDescription>Check all that apply.</span>
128
+ <span slFieldGroupError>Choose at least one nationality.</span>
129
+ <label for="nat-us"><input id="nat-us" type="checkbox" /> American</label>
130
130
  </fieldset>
131
131
  ```
132
132
 
@@ -151,7 +151,7 @@ Excerpt — not a complete module
151
151
 
152
152
  ```html
153
153
  <fieldset slFieldGroup required necessity="words">
154
- <legend slFieldGroupLegend><h1>Qual é a sua nacionalidade?</h1></legend>
154
+ <legend slFieldGroupLegend><h1>What is your nationality?</h1></legend>
155
155
  </fieldset>
156
156
  ```
157
157
 
@@ -164,7 +164,7 @@ Excerpt — not a complete module
164
164
  ```html
165
165
  <fieldset slFieldGroup size="sm">
166
166
  <fieldset slFieldGroup necessity="none" orientation="horizontal">
167
- <legend slFieldGroupLegend>Vigência</legend>
167
+ <legend slFieldGroupLegend>Term</legend>
168
168
  <div slField>…</div>
169
169
  </fieldset>
170
170
  </fieldset>
@@ -129,7 +129,7 @@ export class FieldSizes {}
129
129
 
130
130
  ### The four states a field can be in
131
131
 
132
- The label never turns red when the field is invalid: the error already says so in words and in colour, and a red marker on a red label is a marker nobody can see. Read-only stays legible and focusable; disabled is muted to a measured colour rather than faded.
132
+ The label never turns red when the field is invalid: the error already says so in words and in color, and a red marker on a red label is a marker nobody can see. Read-only stays legible and focusable; disabled is muted to a measured color rather than faded.
133
133
 
134
134
  Example
135
135
 
@@ -482,7 +482,7 @@ import { SlField, SlFieldControl, SlFieldDescription, SlFieldLabel } from '@slot
482
482
  imports: [SlField, SlFieldControl, SlFieldDescription, SlFieldLabel],
483
483
  template: `
484
484
  <div slField>
485
- <label slFieldLabel>Brand colour</label>
485
+ <label slFieldLabel>Brand color</label>
486
486
  <input slFieldControl type="color" value="#2f6fde" />
487
487
  <span slFieldDescription>Used on invoices and in the customer portal.</span>
488
488
  </div>
@@ -550,7 +550,7 @@ import { SlTextField, SlTextFieldInput } from '@slotted/angular/text-field';
550
550
  <div slStack [gap]="5">
551
551
  <div slField required>
552
552
  <div slFieldHeader>
553
- <label slFieldLabel>Cost centre</label>
553
+ <label slFieldLabel>Cost center</label>
554
554
  <button
555
555
  slFieldHelp="The four-digit code finance assigns to your team. It appears on every invoice line."
556
556
  ></button>
package/docs/field.json CHANGED
@@ -184,7 +184,7 @@
184
184
  "type": "boolean",
185
185
  "defaultValue": "—",
186
186
  "appliesTo": "slField, slFieldCounter",
187
- "description": "On slField: unset rather than false; writes aria-invalid on the control and data-invalid on the field, and leaves the label’s colour unchanged. On slFieldCounter: the count has passed its limit, which can happen before validation runs, so it is the counter’s own state and defaults to false."
187
+ "description": "On slField: unset rather than false; writes aria-invalid on the control and data-invalid on the field, and leaves the label’s color unchanged. On slFieldCounter: the count has passed its limit, which can happen before validation runs, so it is the counter’s own state and defaults to false."
188
188
  },
189
189
  {
190
190
  "name": "disabled",
@@ -430,7 +430,7 @@
430
430
  {
431
431
  "id": "states",
432
432
  "title": "The four states a field can be in",
433
- "note": "The label never turns red when the field is invalid: the error already says so in words and in colour, and a red marker on a red label is a marker nobody can see. Read-only stays legible and focusable; disabled is muted to a measured colour rather than faded.",
433
+ "note": "The label never turns red when the field is invalid: the error already says so in words and in color, and a red marker on a red label is a marker nobody can see. Read-only stays legible and focusable; disabled is muted to a measured color rather than faded.",
434
434
  "language": "ts",
435
435
  "source": "import { Component } from '@angular/core';\nimport { SlField, SlFieldDescription, SlFieldError, SlFieldLabel } from '@slotted/angular/field';\nimport { SlStack } from '@slotted/angular/stack';\nimport { SlTextField, SlTextFieldInput } from '@slotted/angular/text-field';\n\n@Component({\n selector: 'app-field-states',\n imports: [\n SlField,\n SlFieldDescription,\n SlFieldError,\n SlFieldLabel,\n SlStack,\n SlTextField,\n SlTextFieldInput,\n ],\n template: `\n <div slStack [gap]=\"5\">\n <div slField invalid required>\n <label slFieldLabel>Card number</label>\n <div slTextField>\n <input slTextFieldInput inputmode=\"numeric\" defaultValue=\"4242 4242 42\" />\n </div>\n <span slFieldError>Six digits are missing.</span>\n </div>\n <div slField readOnly>\n <label slFieldLabel>Account ID</label>\n <div slTextField><input slTextFieldInput defaultValue=\"acct_9f2c41\" /></div>\n <span slFieldDescription>Quote this ID when you contact support.</span>\n </div>\n <div slField disabled>\n <label slFieldLabel>Workspace URL</label>\n <div slTextField><input slTextFieldInput defaultValue=\"northwind.slotted.app\" /></div>\n <span slFieldDescription>Only the workspace owner can change the URL.</span>\n </div>\n </div>\n `,\n})\nexport class FieldStates {}\n",
436
436
  "verdict": "example"
@@ -504,7 +504,7 @@
504
504
  "title": "custom-control.ts",
505
505
  "note": null,
506
506
  "language": "ts",
507
- "source": "import { Component } from '@angular/core';\nimport { SlField, SlFieldControl, SlFieldDescription, SlFieldLabel } from '@slotted/angular/field';\n\n@Component({\n selector: 'app-field-custom-control',\n imports: [SlField, SlFieldControl, SlFieldDescription, SlFieldLabel],\n template: `\n <div slField>\n <label slFieldLabel>Brand colour</label>\n <input slFieldControl type=\"color\" value=\"#2f6fde\" />\n <span slFieldDescription>Used on invoices and in the customer portal.</span>\n </div>\n `,\n})\nexport class FieldCustomControl {}\n",
507
+ "source": "import { Component } from '@angular/core';\nimport { SlField, SlFieldControl, SlFieldDescription, SlFieldLabel } from '@slotted/angular/field';\n\n@Component({\n selector: 'app-field-custom-control',\n imports: [SlField, SlFieldControl, SlFieldDescription, SlFieldLabel],\n template: `\n <div slField>\n <label slFieldLabel>Brand color</label>\n <input slFieldControl type=\"color\" value=\"#2f6fde\" />\n <span slFieldDescription>Used on invoices and in the customer portal.</span>\n </div>\n `,\n})\nexport class FieldCustomControl {}\n",
508
508
  "verdict": "example"
509
509
  },
510
510
  {
@@ -520,7 +520,7 @@
520
520
  "title": "help.ts",
521
521
  "note": null,
522
522
  "language": "ts",
523
- "source": "import { Component } from '@angular/core';\nimport { SlField, SlFieldHeader, SlFieldHelp, SlFieldLabel } from '@slotted/angular/field';\nimport { SlStack } from '@slotted/angular/stack';\nimport { SlTextField, SlTextFieldInput } from '@slotted/angular/text-field';\n\n@Component({\n selector: 'app-field-help',\n imports: [\n SlField,\n SlFieldHeader,\n SlFieldHelp,\n SlFieldLabel,\n SlStack,\n SlTextField,\n SlTextFieldInput,\n ],\n template: `\n <div slStack [gap]=\"5\">\n <div slField required>\n <div slFieldHeader>\n <label slFieldLabel>Cost centre</label>\n <button\n slFieldHelp=\"The four-digit code finance assigns to your team. It appears on every invoice line.\"\n ></button>\n </div>\n <div slTextField><input slTextFieldInput inputmode=\"numeric\" defaultValue=\"4120\" /></div>\n </div>\n <div slField disabled>\n <div slFieldHeader>\n <label slFieldLabel>Billing currency</label>\n <button\n slFieldHelp=\"Set when the workspace was created. Contact support to change it.\"\n ></button>\n </div>\n <div slTextField><input slTextFieldInput defaultValue=\"USD — US dollar\" /></div>\n </div>\n </div>\n `,\n})\nexport class FieldHelp {}\n",
523
+ "source": "import { Component } from '@angular/core';\nimport { SlField, SlFieldHeader, SlFieldHelp, SlFieldLabel } from '@slotted/angular/field';\nimport { SlStack } from '@slotted/angular/stack';\nimport { SlTextField, SlTextFieldInput } from '@slotted/angular/text-field';\n\n@Component({\n selector: 'app-field-help',\n imports: [\n SlField,\n SlFieldHeader,\n SlFieldHelp,\n SlFieldLabel,\n SlStack,\n SlTextField,\n SlTextFieldInput,\n ],\n template: `\n <div slStack [gap]=\"5\">\n <div slField required>\n <div slFieldHeader>\n <label slFieldLabel>Cost center</label>\n <button\n slFieldHelp=\"The four-digit code finance assigns to your team. It appears on every invoice line.\"\n ></button>\n </div>\n <div slTextField><input slTextFieldInput inputmode=\"numeric\" defaultValue=\"4120\" /></div>\n </div>\n <div slField disabled>\n <div slFieldHeader>\n <label slFieldLabel>Billing currency</label>\n <button\n slFieldHelp=\"Set when the workspace was created. Contact support to change it.\"\n ></button>\n </div>\n <div slTextField><input slTextFieldInput defaultValue=\"USD — US dollar\" /></div>\n </div>\n </div>\n `,\n})\nexport class FieldHelp {}\n",
524
524
  "verdict": "example"
525
525
  },
526
526
  {
package/docs/field.md CHANGED
@@ -72,7 +72,7 @@ export class FieldBasic {}
72
72
  | `width` | `'short' \| 'medium' \| 'full'` | full | slField | The longest the control stands, as a cue to the length of its answer: short (--slotted-field-width-short, 6rem) for an integer of up to four digits, medium (--slotted-field-width-medium, 15rem) for an amount, a code or a short word, full for free text, a name or a picker of records. The control still shrinks below the bound in a narrower field. |
73
73
  | `messages` | `Partial<FieldMessages>` | — | slField | Words that replace the active language’s, key by key: the necessity words (optional, required) and the help button’s name (help). |
74
74
  | `required` | `boolean` | — | slField | Unset rather than false. Reaches the control as aria-required, never as the native required, which would turn on browser constraint validation and change how the form submits. |
75
- | `invalid` | `boolean` | — | slField, slFieldCounter | On slField: unset rather than false; writes aria-invalid on the control and data-invalid on the field, and leaves the label’s colour unchanged. On slFieldCounter: the count has passed its limit, which can happen before validation runs, so it is the counter’s own state and defaults to false. |
75
+ | `invalid` | `boolean` | — | slField, slFieldCounter | On slField: unset rather than false; writes aria-invalid on the control and data-invalid on the field, and leaves the label’s color unchanged. On slFieldCounter: the count has passed its limit, which can happen before validation runs, so it is the counter’s own state and defaults to false. |
76
76
  | `disabled` | `boolean` | from the group, then the token | slField, provideFieldDefaults | Unset rather than false, so a field follows the slFieldGroup around it. A stated value wins, and it reaches the control as the native attribute. |
77
77
  | `readOnly` | `boolean` | from the group, then the token | slField, provideFieldDefaults | Unset rather than false. Reaches the control as the native readonly, which keeps the value focusable and copyable. |
78
78
  | `id` | `string` | generated | slField | A static attribute, read with HostAttributeToken, that is the base of <id>-control, <id>-label, <id>-indicator, <id>-help, <id>-description, <id>-counter and <id>-error. When unset, an application-scoped factory generates it, so two applications in one server process do not collide. |
package/docs/form.json CHANGED
@@ -311,7 +311,7 @@
311
311
  "title": "Playground",
312
312
  "note": "A form of two fields with the family’s whole lifecycle on it. Submit it empty: the platform’s own messages appear in the summary, focus moves there, and each link jumps to the field it names. Two fields written one after the other inside the form stand apart by --slotted-form-field-gap (space-6 by default), and two field groups by --slotted-form-section-gap (space-9 by default); a layout the page draws itself — a Grid, a Stack — keeps its own gap.",
313
313
  "language": "html",
314
- "source": "<form slForm (formSubmit)=\"save($event.values)\">\n <div slField>\n <label slFieldLabel>Nome completo</label>\n <div slTextField><input slTextFieldInput name=\"nome\" required /></div>\n </div>\n <div slFormActions>\n <button slButton type=\"submit\">Salvar</button>\n </div>\n</form>\n",
314
+ "source": "<form slForm (formSubmit)=\"save($event.values)\">\n <div slField>\n <label slFieldLabel>Nome completo</label>\n <div slTextField><input slTextFieldInput name=\"nome\" required /></div>\n </div>\n <div slFormActions>\n <button slButton type=\"submit\">Save</button>\n </div>\n</form>\n",
315
315
  "verdict": "excerpt"
316
316
  },
317
317
  {
@@ -335,7 +335,7 @@
335
335
  "title": "The region a reader is sent to",
336
336
  "note": "The four things the sourced error summary states a summary must do: focus moves to it, it carries a heading, it links to each answer in error, and its messages are the same strings the fields show. errorFocus=\"control\" skips it and goes to the first field instead.",
337
337
  "language": "html",
338
- "source": "<form slForm [messages]=\"{ summaryTitle: 'Corrija estes campos' }\">…</form>\n\n<!-- Somewhere else on the page, under a heading of your own. -->\n<form slForm summary=\"none\">\n <h1>Pedido</h1>\n <div slFormSummary></div>\n</form>\n",
338
+ "source": "<form slForm [messages]=\"{ summaryTitle: 'Corrija estes campos' }\">…</form>\n\n<!-- Somewhere else on the page, under a heading of your own. -->\n<form slForm summary=\"none\">\n <h1>Order</h1>\n <div slFormSummary></div>\n</form>\n",
339
339
  "verdict": "excerpt"
340
340
  },
341
341
  {
@@ -343,7 +343,7 @@
343
343
  "title": "Submission, and the second press that does nothing",
344
344
  "note": "The submit event hands back a pending() for work that takes time and an errors() for what the server answered. A second submit while one is pending is refused — the defect a double-clicked button produces in a bare form.",
345
345
  "language": "ts",
346
- "source": "class CheckoutPage {\n save(request: { values: Record<string, unknown>; pending: (work: Promise<unknown>) => void }) {\n request.pending(\n firstValueFrom(this.pedidos.criar(request.values)).then((answer) => answer.errors),\n );\n }\n}\n",
346
+ "source": "class CheckoutPage {\n save(request: { values: Record<string, unknown>; pending: (work: Promise<unknown>) => void }) {\n request.pending(\n firstValueFrom(this.orders.create(request.values)).then((answer) => answer.errors),\n );\n }\n}\n",
347
347
  "verdict": "excerpt"
348
348
  },
349
349
  {
@@ -351,7 +351,7 @@
351
351
  "title": "The row the actions stand in",
352
352
  "note": "end is the default, between pushes a destructive action away from the one beside it, and stretch shares the row. Narrow the column below 360 pixels and every alignment becomes the same column of full-width actions, primary first.",
353
353
  "language": "html",
354
- "source": "<div slFormActions>\n <button slButton type=\"button\" tone=\"secondary\" variant=\"ghost\">Cancelar</button>\n <button slButton type=\"submit\">Salvar alterações</button>\n</div>\n\n<div slFormActions align=\"between\">…</div>\n",
354
+ "source": "<div slFormActions>\n <button slButton type=\"button\" tone=\"secondary\" variant=\"ghost\">Cancel</button>\n <button slButton type=\"submit\">Save changes</button>\n</div>\n\n<div slFormActions align=\"between\">…</div>\n",
355
355
  "verdict": "excerpt"
356
356
  },
357
357
  {
@@ -359,7 +359,7 @@
359
359
  "title": "Every state the family carries",
360
360
  "note": "data-invalid while anything is wrong, data-loading and aria-busy while a submit is in flight, data-disabled when the consumer says so. The form does not dim itself while it saves: a form that hid its own values would hide what the reader is waiting on.",
361
361
  "language": "html",
362
- "source": "<form slForm [loading]=\"saving()\" #checkout=\"slForm\">\n <div slFormActions>\n <button slButton type=\"submit\" [loading]=\"saving()\">Salvar</button>\n </div>\n</form>\n",
362
+ "source": "<form slForm [loading]=\"saving()\" #checkout=\"slForm\">\n <div slFormActions>\n <button slButton type=\"submit\" [loading]=\"saving()\">Save</button>\n </div>\n</form>\n",
363
363
  "verdict": "excerpt"
364
364
  },
365
365
  {
@@ -367,7 +367,7 @@
367
367
  "title": "Eleven errors, and one for a field that is not there",
368
368
  "note": "The list scrolls past twelve lines rather than truncating, and an error naming a control the form does not hold keeps its place without a link. Both are cases a real server produces and none of the surveyed implementations answers.",
369
369
  "language": "html",
370
- "source": "<form slForm [errors]=\"{ cupom: 'O cupom informado expirou', email: 'Endereço inválido' }\">\n <div slField>\n <label slFieldLabel>E-mail</label>\n <div slTextField><input slTextFieldInput name=\"email\" /></div>\n </div>\n</form>\n",
370
+ "source": "<form slForm [errors]=\"{ cupom: 'The coupon provided has expired', email: 'Invalid address' }\">\n <div slField>\n <label slFieldLabel>Email</label>\n <div slTextField><input slTextFieldInput name=\"email\" /></div>\n </div>\n</form>\n",
371
371
  "verdict": "excerpt"
372
372
  },
373
373
  {
@@ -375,7 +375,7 @@
375
375
  "title": "Setting it once, reaching past it, and guarding it",
376
376
  "note": "Two injection tokens carry what an application decides once: how its forms behave, and the sentence of a validator the application adds. exportAs reaches the four actions a value cannot express, and guardUnsaved registers a beforeunload nothing surveyed ships.",
377
377
  "language": "ts",
378
- "source": "providers: [\n provideFormDefaults({ validate: 'blur' }),\n provideFormErrorMessages({\n cnpj: () => 'CNPJ inválido.',\n }),\n];\n",
378
+ "source": "providers: [\n provideFormDefaults({ validate: 'blur' }),\n provideFormErrorMessages({\n cnpj: () => 'Invalid EIN.',\n }),\n];\n",
379
379
  "verdict": "excerpt"
380
380
  },
381
381
  {
@@ -383,7 +383,7 @@
383
383
  "title": "What a reader hears, and where focus goes",
384
384
  "note": "Tab into the form, submit it empty, and follow what happens: the region announces itself, takes focus, and each link moves focus to the control it names without changing the address bar. Every message in the summary is the same string the field shows.",
385
385
  "language": "html",
386
- "source": "<form slForm [errors]=\"{ email: 'O endereço precisa conter um arroba' }\">\n <div slField [invalid]=\"true\">\n <label slFieldLabel>E-mail</label>\n <div slTextField><input slTextFieldInput name=\"email\" /></div>\n <p slFieldError>O endereço precisa conter um arroba</p>\n </div>\n</form>\n",
386
+ "source": "<form slForm [errors]=\"{ email: 'The address must contain an at sign' }\">\n <div slField [invalid]=\"true\">\n <label slFieldLabel>Email</label>\n <div slTextField><input slTextFieldInput name=\"email\" /></div>\n <p slFieldError>The address must contain an at sign</p>\n </div>\n</form>\n",
387
387
  "verdict": "excerpt"
388
388
  }
389
389
  ]
package/docs/form.md CHANGED
@@ -29,7 +29,7 @@ Excerpt — not a complete module
29
29
  <div slTextField><input slTextFieldInput name="nome" required /></div>
30
30
  </div>
31
31
  <div slFormActions>
32
- <button slButton type="submit">Salvar</button>
32
+ <button slButton type="submit">Save</button>
33
33
  </div>
34
34
  </form>
35
35
  ```
@@ -140,7 +140,7 @@ Excerpt — not a complete module
140
140
 
141
141
  <!-- Somewhere else on the page, under a heading of your own. -->
142
142
  <form slForm summary="none">
143
- <h1>Pedido</h1>
143
+ <h1>Order</h1>
144
144
  <div slFormSummary></div>
145
145
  </form>
146
146
  ```
@@ -155,7 +155,7 @@ Excerpt — not a complete module
155
155
  class CheckoutPage {
156
156
  save(request: { values: Record<string, unknown>; pending: (work: Promise<unknown>) => void }) {
157
157
  request.pending(
158
- firstValueFrom(this.pedidos.criar(request.values)).then((answer) => answer.errors),
158
+ firstValueFrom(this.orders.create(request.values)).then((answer) => answer.errors),
159
159
  );
160
160
  }
161
161
  }
@@ -169,8 +169,8 @@ Excerpt — not a complete module
169
169
 
170
170
  ```html
171
171
  <div slFormActions>
172
- <button slButton type="button" tone="secondary" variant="ghost">Cancelar</button>
173
- <button slButton type="submit">Salvar alterações</button>
172
+ <button slButton type="button" tone="secondary" variant="ghost">Cancel</button>
173
+ <button slButton type="submit">Save changes</button>
174
174
  </div>
175
175
 
176
176
  <div slFormActions align="between">…</div>
@@ -185,7 +185,7 @@ Excerpt — not a complete module
185
185
  ```html
186
186
  <form slForm [loading]="saving()" #checkout="slForm">
187
187
  <div slFormActions>
188
- <button slButton type="submit" [loading]="saving()">Salvar</button>
188
+ <button slButton type="submit" [loading]="saving()">Save</button>
189
189
  </div>
190
190
  </form>
191
191
  ```
@@ -197,9 +197,9 @@ The list scrolls past twelve lines rather than truncating, and an error naming a
197
197
  Excerpt — not a complete module
198
198
 
199
199
  ```html
200
- <form slForm [errors]="{ cupom: 'O cupom informado expirou', email: 'Endereço inválido' }">
200
+ <form slForm [errors]="{ cupom: 'The coupon provided has expired', email: 'Invalid address' }">
201
201
  <div slField>
202
- <label slFieldLabel>E-mail</label>
202
+ <label slFieldLabel>Email</label>
203
203
  <div slTextField><input slTextFieldInput name="email" /></div>
204
204
  </div>
205
205
  </form>
@@ -215,7 +215,7 @@ Excerpt — not a complete module
215
215
  providers: [
216
216
  provideFormDefaults({ validate: 'blur' }),
217
217
  provideFormErrorMessages({
218
- cnpj: () => 'CNPJ inválido.',
218
+ cnpj: () => 'Invalid EIN.',
219
219
  }),
220
220
  ];
221
221
  ```
@@ -227,11 +227,11 @@ Tab into the form, submit it empty, and follow what happens: the region announce
227
227
  Excerpt — not a complete module
228
228
 
229
229
  ```html
230
- <form slForm [errors]="{ email: 'O endereço precisa conter um arroba' }">
230
+ <form slForm [errors]="{ email: 'The address must contain an at sign' }">
231
231
  <div slField [invalid]="true">
232
- <label slFieldLabel>E-mail</label>
232
+ <label slFieldLabel>Email</label>
233
233
  <div slTextField><input slTextFieldInput name="email" /></div>
234
- <p slFieldError>O endereço precisa conter um arroba</p>
234
+ <p slFieldError>The address must contain an at sign</p>
235
235
  </div>
236
236
  </form>
237
237
  ```